sqllogictest
Artifact Content
Not logged in

Artifact cc4507004d4e0b133fbeaa435253e962f135b2a1:


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)

onlyif mysql # DIV for integer division: 
query II rowsort label-0
SELECT 78, + 75 DIV + 81 + - 26 col0
----
78
-26

skipif mysql # not compatible
query II rowsort label-0
SELECT 78, + 75 / + 81 + - 26 col0
----
78
-26

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

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

query I rowsort
SELECT - - COALESCE ( - 39, - - 96 * + 69 - + + 83 + + 76, 24 )
----
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3
SELECT CASE - 23 WHEN - MIN( DISTINCT - 35 ) THEN - 97 WHEN 9 * 47 DIV + + 59 THEN NULL ELSE + + 94 * + + 6 DIV + 33 + - COUNT( * ) END DIV + 40
----
0

skipif mysql # not compatible
query I rowsort label-3
SELECT CASE - 23 WHEN - MIN ( DISTINCT - 35 ) THEN - 97 WHEN 9 * 47 / + + 59 THEN NULL ELSE + + 94 * + + 6 / + 33 + - COUNT ( * ) END / + 40
----
0

query I rowsort
SELECT + 98 * - - ( 81 )
----
7938

query I rowsort
SELECT 22 * + + 12 * - 71
----
-18744

onlyif mysql # aggregate syntax: 
query II rowsort label-6
SELECT NULLIF ( 4, ( + 65 ) / + 13 ) - - - 42, COALESCE ( - 86, + 53 ) * 23 + COUNT( * ) + 68 * - 86 AS col0
----
-38
-7825

skipif mysql # not compatible
query II rowsort label-6
SELECT NULLIF ( 4, ( + 65 ) / + 13 ) - - - 42, COALESCE ( - 86, + 53 ) * 23 + COUNT ( * ) + 68 * - 86 AS col0
----
-38
-7825

query II rowsort
SELECT + 66 col1, - 6 * - 13 * - 25 * 65
----
66
-126750

query I rowsort
SELECT 22 * - + 92 + 32 + + + 52
----
-1940

onlyif mysql # aggregate syntax: 
query I rowsort label-9
SELECT ALL - - COUNT( * ) * - ( - 49 ) * - 77 + - - 98 * + + 76 - COUNT( DISTINCT + 96 ) AS col2
----
3674

skipif mysql # not compatible
query I rowsort label-9
SELECT ALL - - COUNT ( * ) * - ( - 49 ) * - 77 + - - 98 * + + 76 - COUNT ( DISTINCT + 96 ) AS col2
----
3674

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-12
SELECT DISTINCT - 67 / + CAST( NULL AS SIGNED ) * + + 13 + - 17 + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-12
SELECT DISTINCT - 67 / + CAST ( NULL AS INTEGER ) * + + 13 + - 17 + + COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-13
SELECT 94 DIV + + 69 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-13
SELECT 94 / + + 69 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-14
SELECT ALL + MIN( ALL + + 39 ) * + + 54
----
2106

skipif mysql # not compatible
query I rowsort label-14
SELECT ALL + MIN ( ALL + + 39 ) * + + 54
----
2106

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-15
SELECT + 45 AS col0, 31 + - CAST( - 90 AS SIGNED )
----
45
121

skipif mysql # not compatible
query II rowsort label-15
SELECT + 45 AS col0, 31 + - CAST ( - 90 AS INTEGER )
----
45
121

query II rowsort
SELECT + + 4, - 20 - - - 76 * + 54 * 27 AS col2
----
4
-110828

onlyif mysql # aggregate syntax: 
query I rowsort label-17
SELECT + 34 * MIN( - 87 ) col1
----
-2958

skipif mysql # not compatible
query I rowsort label-17
SELECT + 34 * MIN ( - 87 ) col1
----
-2958

query I rowsort
SELECT DISTINCT - 85 * + 5 col2
----
-425

onlyif mysql # aggregate syntax: 
query I rowsort label-19
SELECT - COALESCE ( 45, - - COUNT( * ), - 44 ) - MAX( ALL 58 )
----
-103

skipif mysql # not compatible
query I rowsort label-19
SELECT - COALESCE ( 45, - - COUNT ( * ), - 44 ) - MAX ( ALL 58 )
----
-103

query I rowsort
SELECT + 98 * ( + 28 ) * 18 * - 72 * + 40 AS col2
----
-142248960

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

skipif mysql # not compatible
query I rowsort label-21
SELECT ALL - 67 + - + COUNT ( * ) AS col2
----
-68

query I rowsort
SELECT DISTINCT + 13 + - 18 + + 17
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-23
SELECT - 62 DIV + ( - - 72 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-23
SELECT - 62 / + ( - - 72 ) AS col0
----
0

query I rowsort
SELECT - 80 + 76 AS col0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-25
SELECT ALL CASE - + 76 WHEN 48 THEN - 30 * - 72 END + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-25
SELECT ALL CASE - + 76 WHEN 48 THEN - 30 * - 72 END + COUNT ( * )
----
NULL

query I rowsort
SELECT + 24 * + 20 + + 36
----
516

query I rowsort
SELECT ALL 26 * ( 34 )
----
884

onlyif mysql # aggregate syntax: 
query I rowsort label-28
SELECT + 32 + SUM( DISTINCT 59 ) + 50 col1
----
141

skipif mysql # not compatible
query I rowsort label-28
SELECT + 32 + SUM ( DISTINCT 59 ) + 50 col1
----
141

onlyif mysql # aggregate syntax: 
query II rowsort label-29
SELECT ALL 44 + - 20 * - 8 * + 55 * - ( COUNT( * ) ) * + + 7 AS col2, 43 + + - 7
----
-61556
36

skipif mysql # not compatible
query II rowsort label-29
SELECT ALL 44 + - 20 * - 8 * + 55 * - ( COUNT ( * ) ) * + + 7 AS col2, 43 + + - 7
----
-61556
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-30
SELECT ALL CAST( NULL AS SIGNED ) + + + 59 * + ( AVG ( DISTINCT + - 0 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-30
SELECT ALL CAST ( NULL AS INTEGER ) + + + 59 * + ( AVG ( DISTINCT + - 0 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-31
SELECT DISTINCT ( - COUNT( * ) ) + - - NULLIF ( - ( 30 ), + - 11 )
----
-31

skipif mysql # not compatible
query I rowsort label-31
SELECT DISTINCT ( - COUNT ( * ) ) + - - NULLIF ( - ( 30 ), + - 11 )
----
-31

onlyif mysql # aggregate syntax: 
query II rowsort label-32
SELECT + + 86 + + - 40 col0, - CASE + CASE + COUNT( * ) WHEN - COALESCE ( - COUNT( * ), + 12, - 4, - 41 ) THEN NULL WHEN + AVG ( - 74 ) THEN NULL ELSE COUNT( * ) + - 74 END WHEN + 2 THEN 51 WHEN + 14 / + AVG ( DISTINCT 11 ) + + 94 THEN NULL END AS col2
----
46
NULL

skipif mysql # not compatible
query II rowsort label-32
SELECT + + 86 + + - 40 col0, - CASE + CASE + COUNT ( * ) WHEN - COALESCE ( - COUNT ( * ), + 12, - 4, - 41 ) THEN NULL WHEN + AVG ( - 74 ) THEN NULL ELSE COUNT ( * ) + - 74 END WHEN + 2 THEN 51 WHEN + 14 / + AVG ( DISTINCT 11 ) + + 94 THEN NULL END AS col2
----
46
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-33
SELECT ALL + ( CAST( NULL AS DECIMAL ) ) - 16 * + ( - AVG ( + + 1 ) ) * + - 4 * - 39 + + + ( NULLIF ( - - COUNT( * ), SUM( CAST( NULL AS SIGNED ) ) + + 33 * 29 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-33
SELECT ALL + ( CAST ( NULL AS REAL ) ) - 16 * + ( - AVG ( + + 1 ) ) * + - 4 * - 39 + + + ( NULLIF ( - - COUNT ( * ), SUM ( CAST ( NULL AS INTEGER ) ) + + 33 * 29 ) ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-34
SELECT DISTINCT - 22 DIV + 33
----
0

skipif mysql # not compatible
query I rowsort label-34
SELECT DISTINCT - 22 / + 33
----
0

query I rowsort
SELECT + - 11 + + 55 + - 36 col1
----
8

query I rowsort
SELECT + 96 + + + 56
----
152

onlyif mysql # aggregate syntax: 
query I rowsort label-37
SELECT - 66 * 59 * + COUNT( * )
----
-3894

skipif mysql # not compatible
query I rowsort label-37
SELECT - 66 * 59 * + COUNT ( * )
----
-3894

query II rowsort
SELECT - ( 98 ) AS col1, 37 AS col2
----
-98
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-39
SELECT ALL - CASE + 41 WHEN + COUNT( * ) THEN NULL WHEN - CAST( NULL AS SIGNED ) * + MAX( DISTINCT - ( + 26 ) ) THEN NULL ELSE - 17 END - 40 * - + 85 * 42 + + ( - 97 )
----
142720

skipif mysql # not compatible
query I rowsort label-39
SELECT ALL - CASE + 41 WHEN + COUNT ( * ) THEN NULL WHEN - CAST ( NULL AS INTEGER ) * + MAX ( DISTINCT - ( + 26 ) ) THEN NULL ELSE - 17 END - 40 * - + 85 * 42 + + ( - 97 )
----
142720

query I rowsort
SELECT + - 59 * 17 AS col0
----
-1003

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-42
SELECT DISTINCT CAST( NULL AS SIGNED ) * - + 68 col1, - 25
----
NULL
-25

skipif mysql # not compatible
query II rowsort label-42
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - + 68 col1, - 25
----
NULL
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-43
SELECT 10 DIV COUNT( * ) + COALESCE ( 65, - + CASE 8 WHEN ( - - COALESCE ( - + CAST( NULL AS SIGNED ), - 66 ) ) THEN + 2 WHEN + CAST( NULL AS SIGNED ) + + 83 * 22 THEN NULL END DIV 66 ) + 47 * 85 + 26 DIV - 93 AS col1
----
4070

skipif mysql # not compatible
query I rowsort label-43
SELECT 10 / COUNT ( * ) + COALESCE ( 65, - + CASE 8 WHEN ( - - COALESCE ( - + CAST ( NULL AS INTEGER ), - 66 ) ) THEN + 2 WHEN + CAST ( NULL AS INTEGER ) + + 83 * 22 THEN NULL END / 66 ) + 47 * 85 + 26 / - 93 AS col1
----
4070

onlyif mysql # DIV for integer division: 
query I rowsort label-44
SELECT ALL + 4 * 15 DIV - 98 * - 93 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-44
SELECT ALL + 4 * 15 / - 98 * - 93 AS col2
----
0

query I rowsort
SELECT + ( 67 ) * + 7
----
469

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-47
SELECT + + 7 + - 56 DIV + - COUNT( + 72 ) - 70
----
-7

skipif mysql # not compatible
query I rowsort label-47
SELECT + + 7 + - 56 / + - COUNT ( + 72 ) - 70
----
-7

query II rowsort
SELECT + 96 AS col1, - 21
----
96
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-49
SELECT ALL SUM( NULLIF ( - 73, - 61 ) ) * + 18 * - 50 + - ( - + 42 ) DIV + - 55 AS col0
----
65700

skipif mysql # not compatible
query I rowsort label-49
SELECT ALL SUM ( NULLIF ( - 73, - 61 ) ) * + 18 * - 50 + - ( - + 42 ) / + - 55 AS col0
----
65700

query I rowsort
SELECT + 3 * + + 66 + 35 * 9 + - ( ( 83 ) ) AS col1
----
430

onlyif mysql # aggregate syntax: 
query I rowsort label-51
SELECT ( - - MIN( ALL + 12 ) ) AS col1
----
12

skipif mysql # not compatible
query I rowsort label-51
SELECT ( - - MIN ( ALL + 12 ) ) AS col1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-52
SELECT - COALESCE ( - 93, - COALESCE ( - 14, + - NULLIF ( - COUNT( * ), 4 - 0 ) - COALESCE ( + ( + 17 ), MIN( 52 ) - 98 * + 70, 49 ) + CASE - 79 WHEN 11 THEN 97 + - 71 ELSE NULL END * 20, 57 - AVG ( DISTINCT 94 ), + 74 + + 26 ), 31 - - 74 ) + CASE + 82 WHEN + 49 THEN - COUNT( * ) - 91 END * 87
----
NULL

skipif mysql # not compatible
query I rowsort label-52
SELECT - COALESCE ( - 93, - COALESCE ( - 14, + - NULLIF ( - COUNT ( * ), 4 - 0 ) - COALESCE ( + ( + 17 ), MIN ( 52 ) - 98 * + 70, 49 ) + CASE - 79 WHEN 11 THEN 97 + - 71 ELSE NULL END * 20, 57 - AVG ( DISTINCT 94 ), + 74 + + 26 ), 31 - - 74 ) + CASE + 82 WHEN + 49 THEN - COUNT ( * ) - 91 END * 87
----
NULL

query I rowsort
SELECT ALL 21 * 66 + + 76
----
1462

query II rowsort
SELECT - 92 + + 0 - 12 AS col2, 12
----
-104
12

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-56
SELECT COALESCE ( - NULLIF ( + 94, - 48 DIV - 51 - 42 + - 81 + 99 DIV 1 * - + MIN( ALL 43 ) * + 69 * + 10 * - 99 ), 93 + + ( 2 ) DIV + ( + 23 * + 89 ) )
----
-94

skipif mysql # not compatible
query I rowsort label-56
SELECT COALESCE ( - NULLIF ( + 94, - 48 / - 51 - 42 + - 81 + 99 / 1 * - + MIN ( ALL 43 ) * + 69 * + 10 * - 99 ), 93 + + ( 2 ) / + ( + 23 * + 89 ) )
----
-94

query I rowsort
SELECT - 86 * 38 col2
----
-3268

query I rowsort
SELECT NULLIF ( - + 20, - - 67 * + 64 ) AS col2
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-59
SELECT 64 * - MAX( + 84 ) + - 6
----
-5382

skipif mysql # not compatible
query I rowsort label-59
SELECT 64 * - MAX ( + 84 ) + - 6
----
-5382

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-60
SELECT DISTINCT + 65 * + CAST( NULL AS SIGNED ) / - 2 + + 85
----
NULL

skipif mysql # not compatible
query I rowsort label-60
SELECT DISTINCT + 65 * + CAST ( NULL AS INTEGER ) / - 2 + + 85
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-62
SELECT ALL - COUNT( * ) * - 25 * - + 36 + - MIN( ALL - + 0 ) * - 73 + - CASE + 19 WHEN - 60 + + 88 * COUNT( * ) THEN 67 END
----
NULL

skipif mysql # not compatible
query I rowsort label-62
SELECT ALL - COUNT ( * ) * - 25 * - + 36 + - MIN ( ALL - + 0 ) * - 73 + - CASE + 19 WHEN - 60 + + 88 * COUNT ( * ) THEN 67 END
----
NULL

query I rowsort
SELECT - 26 * - 30 * + 34
----
26520

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

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

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

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

query I rowsort
SELECT - 90 * - 68
----
6120

onlyif mysql # DIV for integer division: 
query I rowsort label-67
SELECT DISTINCT - 92 DIV + 3
----
-30

skipif mysql # not compatible
query I rowsort label-67
SELECT DISTINCT - 92 / + 3
----
-30

query I rowsort
SELECT ALL 11 * + 10 AS col1
----
110

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-70
SELECT - COUNT( * ), 97 / + CAST( CASE 39 WHEN CAST( NULL AS SIGNED ) THEN 48 * 52 WHEN 42 THEN COUNT( * ) + 89 / CAST( - 47 AS SIGNED ) END AS SIGNED ) col1
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-70
SELECT - COUNT ( * ), 97 / + CAST ( CASE 39 WHEN CAST ( NULL AS INTEGER ) THEN 48 * 52 WHEN 42 THEN COUNT ( * ) + 89 / CAST ( - 47 AS INTEGER ) END AS INTEGER ) col1
----
-1
NULL

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

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-75
SELECT - 53 DIV 17 + - + SUM( + 60 ) AS col0
----
-63

skipif mysql # not compatible
query I rowsort label-75
SELECT - 53 / 17 + - + SUM ( + 60 ) AS col0
----
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-76
SELECT ALL - 17 DIV - - 62 * - 49 * 88 * + + 35
----
0

skipif mysql # not compatible
query I rowsort label-76
SELECT ALL - 17 / - - 62 * - 49 * 88 * + + 35
----
0

query I rowsort
SELECT DISTINCT 40 + + 15 AS col1
----
55

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

query I rowsort
SELECT DISTINCT - 23 + + 84
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-80
SELECT DISTINCT - COUNT( * ) * + NULLIF ( + + 20, - + 71 - - COUNT( * ) ) AS col2
----
-20

skipif mysql # not compatible
query I rowsort label-80
SELECT DISTINCT - COUNT ( * ) * + NULLIF ( + + 20, - + 71 - - COUNT ( * ) ) AS col2
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-81
SELECT ALL + 67 + + + SUM( DISTINCT - 41 )
----
26

skipif mysql # not compatible
query I rowsort label-81
SELECT ALL + 67 + + + SUM ( DISTINCT - 41 )
----
26

query II rowsort
SELECT DISTINCT - COALESCE ( - + 47, - 5, 73 ) + 7 AS col0, 30 AS col2
----
54
30

onlyif mysql # aggregate syntax: 
query I rowsort label-83
SELECT ALL 81 * NULLIF ( - 43, - COUNT( * ) ) AS col1
----
-3483

skipif mysql # not compatible
query I rowsort label-83
SELECT ALL 81 * NULLIF ( - 43, - COUNT ( * ) ) AS col1
----
-3483

query I rowsort
SELECT DISTINCT 16 * - 22
----
-352

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-85
SELECT ALL 75 + - MAX( + 25 ) + + 22 + COUNT( * ) DIV 88 * + + 1 + - COUNT( + - 35 ) * - 12 col0
----
84

skipif mysql # not compatible
query I rowsort label-85
SELECT ALL 75 + - MAX ( + 25 ) + + 22 + COUNT ( * ) / 88 * + + 1 + - COUNT ( + - 35 ) * - 12 col0
----
84

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-87
SELECT ALL + 78 DIV + + 30
----
2

skipif mysql # not compatible
query I rowsort label-87
SELECT ALL + 78 / + + 30
----
2

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

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

query I rowsort
SELECT ALL - 33 - 86
----
-119

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

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

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

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

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

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

query I rowsort
SELECT ALL - COALESCE ( - 47, - + 51 + - + 38, + 68 ) * - 61
----
-2867

query I rowsort
SELECT 20 + + - 48 * - 65
----
3140

query I rowsort
SELECT DISTINCT - + 52 * - 53 * + 94 AS col2
----
259064

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-96
SELECT 7 * + - CAST( + 43 AS SIGNED ) * + 75 * + 3 * - 23 * - 50, 47 + - COUNT( * ) + + ( ( 48 ) ) AS col2
----
-77883750
94

skipif mysql # not compatible
query II rowsort label-96
SELECT 7 * + - CAST ( + 43 AS INTEGER ) * + 75 * + 3 * - 23 * - 50, 47 + - COUNT ( * ) + + ( ( 48 ) ) AS col2
----
-77883750
94

onlyif mysql # aggregate syntax: 
query I rowsort label-97
SELECT DISTINCT + SUM( DISTINCT 6 ) AS col1
----
6

skipif mysql # not compatible
query I rowsort label-97
SELECT DISTINCT + SUM ( DISTINCT 6 ) AS col1
----
6

query I rowsort
SELECT 0 + + 15 - + 19 AS col0
----
-4

query I rowsort
SELECT 87 * - 10 col0
----
-870

query I rowsort
SELECT 46 + 0 - NULLIF ( - 86, - 46 ) AS col2
----
132

query I rowsort
SELECT CASE + 72 WHEN + + ( - 51 ) + + 1 + - 4 THEN + + 50 * - - 54 WHEN - ( - + 56 ) THEN + 95 END col2
----
NULL

query I rowsort
SELECT ALL - 46 + - 50 col2
----
-96

query II rowsort
SELECT ALL + 88 + - 85 col0, - 43 AS col1
----
3
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-104
SELECT 79 + - + 59 DIV - COUNT( + 77 ) - + 68 AS col1
----
70

skipif mysql # not compatible
query I rowsort label-104
SELECT 79 + - + 59 / - COUNT ( + 77 ) - + 68 AS col1
----
70

query I rowsort
SELECT - 90 * - 8 + - 14 AS col0
----
706

query I rowsort
SELECT ( - 48 ) + + COALESCE ( + 15, + 94, 81 )
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-107
SELECT ALL - 85 + + ( 0 ) - - 3 - + COUNT( * ) DIV + CAST( + COUNT( * ) AS SIGNED ) - 87 + + COUNT( * ) * - COUNT( * ) * - MIN( ALL COALESCE ( + 21, + - 89, + 1 * - 2 ) ) DIV 2 AS col2
----
-160

skipif mysql # not compatible
query I rowsort label-107
SELECT ALL - 85 + + ( 0 ) - - 3 - + COUNT ( * ) / + CAST ( + COUNT ( * ) AS INTEGER ) - 87 + + COUNT ( * ) * - COUNT ( * ) * - MIN ( ALL COALESCE ( + 21, + - 89, + 1 * - 2 ) ) / 2 AS col2
----
-160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-108
SELECT DISTINCT + CASE - 63 WHEN 96 * ( - 29 ) THEN ( 91 ) WHEN - CAST( + 2 AS SIGNED ) * + 17 + + 56 + - COUNT( ALL + + 89 ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-108
SELECT DISTINCT + CASE - 63 WHEN 96 * ( - 29 ) THEN ( 91 ) WHEN - CAST ( + 2 AS INTEGER ) * + 17 + + 56 + - COUNT ( ALL + + 89 ) THEN NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-109
SELECT DISTINCT + CAST( NULLIF ( 2, - 80 + - - 36 * - - 85 ) AS SIGNED ) + COUNT( * ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-109
SELECT DISTINCT + CAST ( NULLIF ( 2, - 80 + - - 36 * - - 85 ) AS INTEGER ) + COUNT ( * ) AS col1
----
3

query I rowsort
SELECT ALL - 30 + 61 + - NULLIF ( - + 61, - - 4 + - + 34 )
----
92

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-112
SELECT + - CASE - ( 58 ) WHEN - 34 THEN NULL ELSE + 56 DIV - - CAST( 2 AS SIGNED ) + + + COUNT( * ) + CASE + CAST( - CAST( ( - 64 ) AS SIGNED ) AS DECIMAL ) WHEN - COUNT( DISTINCT - 44 ) + 45 * + COUNT( * ) THEN - SUM( ALL 54 ) - + 91 ELSE + 75 END END * 71 + - 9 * 85
----
-8149

skipif mysql # not compatible
query I rowsort label-112
SELECT + - CASE - ( 58 ) WHEN - 34 THEN NULL ELSE + 56 / - - CAST ( 2 AS INTEGER ) + + + COUNT ( * ) + CASE + CAST ( - CAST ( ( - 64 ) AS INTEGER ) AS REAL ) WHEN - COUNT ( DISTINCT - 44 ) + 45 * + COUNT ( * ) THEN - SUM ( ALL 54 ) - + 91 ELSE + 75 END END * 71 + - 9 * 85
----
-8149

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

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

query I rowsort
SELECT ALL 75 + - 76 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-115
SELECT 86 + + COUNT( * ) + - 22 AS col2
----
65

skipif mysql # not compatible
query I rowsort label-115
SELECT 86 + + COUNT ( * ) + - 22 AS col2
----
65

query I rowsort
SELECT 89 * - 42 * 64 * + - 66
----
15789312

onlyif mysql # aggregate syntax: 
query I rowsort label-117
SELECT 25 * - NULLIF ( 46, + SUM( ALL + 28 ) ) AS col1
----
-1150

skipif mysql # not compatible
query I rowsort label-117
SELECT 25 * - NULLIF ( 46, + SUM ( ALL + 28 ) ) AS col1
----
-1150

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-118
SELECT NULLIF ( + - 36, + 44 ) * - COUNT( * ) DIV - MIN( + 87 ) * + - 51 * + 11 - - 93 + + 63 + - + COUNT( * )
----
155

skipif mysql # not compatible
query I rowsort label-118
SELECT NULLIF ( + - 36, + 44 ) * - COUNT ( * ) / - MIN ( + 87 ) * + - 51 * + 11 - - 93 + + 63 + - + COUNT ( * )
----
155

query II rowsort
SELECT DISTINCT - 37 col1, CASE WHEN ( NULL ) IS NULL THEN NULL ELSE + 86 END
----
-37
NULL

query I rowsort
SELECT ( + + 37 ) + - 40 AS col1
----
-3

query I rowsort
SELECT DISTINCT COALESCE ( + 20, + + 63 ) * - + 75 * - 93 AS col0
----
139500

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-122
SELECT ALL - SUM( DISTINCT + + CAST( ( - 53 ) AS SIGNED ) ) AS col0
----
53

skipif mysql # not compatible
query I rowsort label-122
SELECT ALL - SUM ( DISTINCT + + CAST ( ( - 53 ) AS INTEGER ) ) AS col0
----
53

query I rowsort
SELECT 56 * - + 96
----
-5376

query II rowsort
SELECT ALL - 1 AS col0, 20 * - 27
----
-1
-540

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-125
SELECT ALL - NULLIF ( CAST( NULL AS SIGNED ), - 24 / 98 + - COALESCE ( - + 8, - 99 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-125
SELECT ALL - NULLIF ( CAST ( NULL AS INTEGER ), - 24 / 98 + - COALESCE ( - + 8, - 99 ) ) AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-127
SELECT SUM( - 41 ) DIV 11
----
-3

skipif mysql # not compatible
query I rowsort label-127
SELECT SUM ( - 41 ) / 11
----
-3

query I rowsort
SELECT ALL - - 4 * - + 93 AS col2
----
-372

onlyif mysql # aggregate syntax: 
query I rowsort label-129
SELECT DISTINCT - SUM( 98 ) + + 10 + - 99 + + 35
----
-152

skipif mysql # not compatible
query I rowsort label-129
SELECT DISTINCT - SUM ( 98 ) + + 10 + - 99 + + 35
----
-152

query I rowsort
SELECT - 21 * + - 27 + 36
----
603

onlyif mysql # DIV for integer division: 
query I rowsort label-131
SELECT - + 22 DIV 57 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-131
SELECT - + 22 / 57 AS col2
----
0

query I rowsort
SELECT ALL - - 12 + - 77 col2
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-133
SELECT + + COUNT( * ) - + + ( CASE 4 WHEN - - 98 THEN NULL WHEN 9 THEN NULL WHEN - 24 + - 10 THEN + 77 + - 8 + + 31 ELSE + MIN( - 42 ) END ) AS col1
----
43

skipif mysql # not compatible
query I rowsort label-133
SELECT + + COUNT ( * ) - + + ( CASE 4 WHEN - - 98 THEN NULL WHEN 9 THEN NULL WHEN - 24 + - 10 THEN + 77 + - 8 + + 31 ELSE + MIN ( - 42 ) END ) AS col1
----
43

query I rowsort
SELECT DISTINCT - + 37 + ( + + 62 )
----
25

query II rowsort
SELECT - 86, - 53 AS col0
----
-86
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-136
SELECT ALL CAST( - COUNT( * ) AS SIGNED ) + + 13 AS col2
----
12

skipif mysql # not compatible
query I rowsort label-136
SELECT ALL CAST ( - COUNT ( * ) AS INTEGER ) + + 13 AS col2
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-137
SELECT DISTINCT - 34 + SUM( 19 ) AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-137
SELECT DISTINCT - 34 + SUM ( 19 ) AS col1
----
-15

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-139
SELECT - + AVG ( - + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ) + + - 77
----
NULL

skipif mysql # not compatible
query I rowsort label-139
SELECT - + AVG ( - + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) + + - 77
----
NULL

query I rowsort
SELECT DISTINCT - - 95 + - - 86
----
181

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

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

query I rowsort
SELECT ALL - 50 - - - 44 AS col1
----
-94

query II rowsort
SELECT - 50 AS col1, 42
----
-50
42

query I rowsort
SELECT - 16 + + + 68
----
52

query I rowsort
SELECT ALL 28 * - 87 col2
----
-2436

query II rowsort
SELECT DISTINCT + 73 AS col0, - 55 * 66
----
73
-3630

query I rowsort
SELECT + 86 * - 62 AS col0
----
-5332

onlyif mysql # aggregate syntax: 
query II rowsort label-148
SELECT + 62 - + COUNT( * ) col2, 13
----
61
13

skipif mysql # not compatible
query II rowsort label-148
SELECT + 62 - + COUNT ( * ) col2, 13
----
61
13

onlyif mysql # aggregate syntax: 
query I rowsort label-149
SELECT COALESCE ( 43, SUM( - ( 84 ) ) ) AS col1
----
43

skipif mysql # not compatible
query I rowsort label-149
SELECT COALESCE ( 43, SUM ( - ( 84 ) ) ) AS col1
----
43

onlyif mysql # aggregate syntax: 
query II rowsort label-150
SELECT CASE - - COUNT( * ) WHEN ( - + 57 ) * - - COUNT( * ) / - + 71 + - - 90 * + + 33 + - COUNT( * ) THEN + 28 WHEN + 93 THEN NULL END, - 14 AS col2
----
NULL
-14

skipif mysql # not compatible
query II rowsort label-150
SELECT CASE - - COUNT ( * ) WHEN ( - + 57 ) * - - COUNT ( * ) / - + 71 + - - 90 * + + 33 + - COUNT ( * ) THEN + 28 WHEN + 93 THEN NULL END, - 14 AS col2
----
NULL
-14

query I rowsort
SELECT - 91 - + 45 AS col1
----
-136

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-153
SELECT 6 * COALESCE ( ( + + 95 ), - - 28 ) - - COUNT( * ) + 52 + 86 * + 0 * 15 * - 66 AS col0, ( 8 )
----
623
8

skipif mysql # not compatible
query II rowsort label-153
SELECT 6 * COALESCE ( ( + + 95 ), - - 28 ) - - COUNT ( * ) + 52 + 86 * + 0 * 15 * - 66 AS col0, ( 8 )
----
623
8

onlyif mysql # aggregate syntax: 
query I rowsort label-154
SELECT + MAX( + 21 ) col1
----
21

skipif mysql # not compatible
query I rowsort label-154
SELECT + MAX ( + 21 ) col1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-155
SELECT CASE 3 WHEN + - 51 THEN - COUNT( * ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-155
SELECT CASE 3 WHEN + - 51 THEN - COUNT ( * ) ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-156
SELECT + CASE + CASE - 5 WHEN - CAST( CASE - + 56 WHEN - 39 + + - 84 THEN + - 1 * - COUNT( * ) * - 39 + - ( + - CAST( + 45 AS DECIMAL ) ) - + COUNT( * ) ELSE - - 33 END AS DECIMAL ) THEN CAST( + 31 AS SIGNED ) ELSE CAST( 78 AS SIGNED ) DIV - ( + 11 ) END WHEN 59 + 44 THEN - ( - 26 ) DIV ( 65 ) ELSE COUNT( * ) * - 52 END * 50 AS col1
----
-2600

skipif mysql # not compatible
query I rowsort label-156
SELECT + CASE + CASE - 5 WHEN - CAST ( CASE - + 56 WHEN - 39 + + - 84 THEN + - 1 * - COUNT ( * ) * - 39 + - ( + - CAST ( + 45 AS REAL ) ) - + COUNT ( * ) ELSE - - 33 END AS REAL ) THEN CAST ( + 31 AS INTEGER ) ELSE CAST ( 78 AS INTEGER ) / - ( + 11 ) END WHEN 59 + 44 THEN - ( - 26 ) / ( 65 ) ELSE COUNT ( * ) * - 52 END * 50 AS col1
----
-2600

query I rowsort
SELECT ALL 8 * + 53
----
424

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-158
SELECT + + ( 34 ) - + + 19 * ( - - 41 ) + + COALESCE ( + CAST( + - 75 AS SIGNED ), 58, + COALESCE ( - - 4, - + COUNT( * ), COUNT( - 38 ), - 90 ) * 53 + - 50 * + 97 ) * 5 col0
----
-1120

skipif mysql # not compatible
query I rowsort label-158
SELECT + + ( 34 ) - + + 19 * ( - - 41 ) + + COALESCE ( + CAST ( + - 75 AS INTEGER ), 58, + COALESCE ( - - 4, - + COUNT ( * ), COUNT ( - 38 ), - 90 ) * 53 + - 50 * + 97 ) * 5 col0
----
-1120

query I rowsort
SELECT - - 7 + + 27
----
34

query II rowsort
SELECT + + 32 + + - 84 + 21 + - 22 AS col1, 72 AS col0
----
-53
72

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-162
SELECT ALL 60 * + 56 + - + COUNT( * ) col2
----
3359

skipif mysql # not compatible
query I rowsort label-162
SELECT ALL 60 * + 56 + - + COUNT ( * ) col2
----
3359

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

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

query II rowsort
SELECT - 70 AS col2, 9 + - 92 col2
----
-70
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-165
SELECT + 76 + - 86 DIV + + 11
----
69

skipif mysql # not compatible
query I rowsort label-165
SELECT + 76 + - 86 / + + 11
----
69

onlyif mysql # aggregate syntax: 
query II rowsort label-166
SELECT ALL + 85 + - + COUNT( * ) * - 39 + 99 AS col2, + SUM( DISTINCT - 9 ) AS col1
----
223
-9

skipif mysql # not compatible
query II rowsort label-166
SELECT ALL + 85 + - + COUNT ( * ) * - 39 + 99 AS col2, + SUM ( DISTINCT - 9 ) AS col1
----
223
-9

query I rowsort
SELECT ALL - 5 + - 44 col2
----
-49

query II rowsort
SELECT ALL 37, 58 + - 85 col1
----
37
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-169
SELECT - NULLIF ( - 63, - - 18 * + - COUNT( * ) ) col2
----
63

skipif mysql # not compatible
query I rowsort label-169
SELECT - NULLIF ( - 63, - - 18 * + - COUNT ( * ) ) col2
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-170
SELECT - - 50 + + - 98 + CASE + 91 WHEN SUM( + + 32 ) THEN + + 53 WHEN - 84 THEN NULL END - - NULLIF ( - COUNT( * ), + + 61 ) * - 88 * + 75 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-170
SELECT - - 50 + + - 98 + CASE + 91 WHEN SUM ( + + 32 ) THEN + + 53 WHEN - 84 THEN NULL END - - NULLIF ( - COUNT ( * ), + + 61 ) * - 88 * + 75 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-171
SELECT ALL 96 - - + NULLIF ( + 35, - - CASE - + 26 WHEN NULLIF ( - 18, - 13 * + CASE - COALESCE ( 86, - + 13 + + - 47 + ( - + COUNT( * ) ) / - 43 - - 70 ) WHEN 84 THEN NULL WHEN COUNT( * ) THEN + 36 WHEN - 29 THEN NULL END + COUNT( * ) ) * - 0 THEN NULL WHEN 95 THEN + 6 WHEN + ( - 41 ) / 70 THEN NULL END ) * - 11
----
-289

skipif mysql # not compatible
query I rowsort label-171
SELECT ALL 96 - - + NULLIF ( + 35, - - CASE - + 26 WHEN NULLIF ( - 18, - 13 * + CASE - COALESCE ( 86, - + 13 + + - 47 + ( - + COUNT ( * ) ) / - 43 - - 70 ) WHEN 84 THEN NULL WHEN COUNT ( * ) THEN + 36 WHEN - 29 THEN NULL END + COUNT ( * ) ) * - 0 THEN NULL WHEN 95 THEN + 6 WHEN + ( - 41 ) / 70 THEN NULL END ) * - 11
----
-289

onlyif mysql # aggregate syntax: 
query I rowsort label-172
SELECT + MAX( ALL - 36 ) * + - 24 * - - 82 col0
----
70848

skipif mysql # not compatible
query I rowsort label-172
SELECT + MAX ( ALL - 36 ) * + - 24 * - - 82 col0
----
70848

query I rowsort
SELECT - 35 * 84 * + + 85 + - 41 + + NULLIF ( + 44, + 24 )
----
-249897

query II rowsort
SELECT + 79 * + 11 AS col2, + 23
----
869
23

onlyif mysql # aggregate syntax: 
query II rowsort label-175
SELECT 36, - 91 + + MIN( + - COALESCE ( + - 57, 47 * - 14 - + + NULLIF ( + 91, + 33 ) * 28 + + 62 + 52, - 70 ) ) * + CASE + 10 WHEN - 5 THEN 60 END * 47 AS col1
----
36
NULL

skipif mysql # not compatible
query II rowsort label-175
SELECT 36, - 91 + + MIN ( + - COALESCE ( + - 57, 47 * - 14 - + + NULLIF ( + 91, + 33 ) * 28 + + 62 + 52, - 70 ) ) * + CASE + 10 WHEN - 5 THEN 60 END * 47 AS col1
----
36
NULL

query I rowsort
SELECT ALL + 53 * - + 14
----
-742

query I rowsort
SELECT - 34 * + 33 AS col1
----
-1122

onlyif mysql # aggregate syntax: 
query I rowsort label-178
SELECT DISTINCT MIN( DISTINCT - + 22 )
----
-22

skipif mysql # not compatible
query I rowsort label-178
SELECT DISTINCT MIN ( DISTINCT - + 22 )
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-179
SELECT + CASE - COUNT( * ) WHEN + + 45 THEN - + 79 END + - MAX( ALL - 82 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-179
SELECT + CASE - COUNT ( * ) WHEN + + 45 THEN - + 79 END + - MAX ( ALL - 82 ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-180
SELECT - 4 + - 94, + CASE + + 25 WHEN - 56 + COUNT( * ) - + 5 + + 47 * - 0 DIV + + CASE + AVG ( 34 ) WHEN - 6 * 70 + 87 * + - CAST( NULL AS SIGNED ) THEN NULL ELSE - CAST( 79 AS SIGNED ) END + 63 THEN NULL ELSE - ( + 31 ) * + COALESCE ( 59, 36 + + 52 ) END - 70 DIV - COALESCE ( - MAX( DISTINCT 12 ) * + 51, 16 DIV ( - 74 * 0 ), - 56, + 87 ) col1
----
-98
-1829

skipif mysql # not compatible
query II rowsort label-180
SELECT - 4 + - 94, + CASE + + 25 WHEN - 56 + COUNT ( * ) - + 5 + + 47 * - 0 / + + CASE + AVG ( 34 ) WHEN - 6 * 70 + 87 * + - CAST ( NULL AS INTEGER ) THEN NULL ELSE - CAST ( 79 AS INTEGER ) END + 63 THEN NULL ELSE - ( + 31 ) * + COALESCE ( 59, 36 + + 52 ) END - 70 / - COALESCE ( - MAX ( DISTINCT 12 ) * + 51, 16 / ( - 74 * 0 ), - 56, + 87 ) col1
----
-98
-1829

query II rowsort
SELECT + 74 * 23 AS col1, - 44 * 12 AS col0
----
1702
-528

onlyif mysql # aggregate syntax: 
query I rowsort label-182
SELECT + MIN( ALL + 48 ) AS col1
----
48

skipif mysql # not compatible
query I rowsort label-182
SELECT + MIN ( ALL + 48 ) AS col1
----
48

query I rowsort
SELECT - 68 + 70 + 10 * - - 49 * - + 23
----
-11268

onlyif mysql # aggregate syntax: 
query II rowsort label-184
SELECT DISTINCT + ( - 40 ) AS col0, - 81 + - + 12 - + - COUNT( * ) + + 18 * - ( - ( 30 ) ) * + - 55 * 67
----
-40
-1989992

skipif mysql # not compatible
query II rowsort label-184
SELECT DISTINCT + ( - 40 ) AS col0, - 81 + - + 12 - + - COUNT ( * ) + + 18 * - ( - ( 30 ) ) * + - 55 * 67
----
-40
-1989992

onlyif mysql # aggregate syntax: 
query III rowsort label-185
SELECT ALL - COUNT( * ) * 52 * + 85, 81 - COUNT( * ) AS col2, - 60 * + 30 AS col1
----
-4420
80
-1800

skipif mysql # not compatible
query III rowsort label-185
SELECT ALL - COUNT ( * ) * 52 * + 85, 81 - COUNT ( * ) AS col2, - 60 * + 30 AS col1
----
-4420
80
-1800

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-186
SELECT 10 * + CAST( - 75 AS SIGNED ) + - 26
----
-776

skipif mysql # not compatible
query I rowsort label-186
SELECT 10 * + CAST ( - 75 AS INTEGER ) + - 26
----
-776

query I rowsort
SELECT DISTINCT - ( + 80 ) * - - 99 AS col2
----
-7920

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-188
SELECT 75 / 99 + + CASE + 83 WHEN + 99 / ( - COUNT( * ) ) + + + ( CASE + + ( + 30 ) WHEN 33 / - 29 THEN - 68 * 17 * - + CAST( + 98 AS SIGNED ) WHEN - COUNT( * ) THEN NULL WHEN + 55 + 28 THEN NULL WHEN - CAST( NULL AS SIGNED ) + - COUNT( DISTINCT + ( + 4 ) ) THEN 88 - - COALESCE ( ( + 1 ) + 42, + 21, + 86 ) ELSE NULL END ) + 10 THEN 10 WHEN 17 THEN - COUNT( * ) - 56 END + ( COUNT( * ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-188
SELECT 75 / 99 + + CASE + 83 WHEN + 99 / ( - COUNT ( * ) ) + + + ( CASE + + ( + 30 ) WHEN 33 / - 29 THEN - 68 * 17 * - + CAST ( + 98 AS INTEGER ) WHEN - COUNT ( * ) THEN NULL WHEN + 55 + 28 THEN NULL WHEN - CAST ( NULL AS INTEGER ) + - COUNT ( DISTINCT + ( + 4 ) ) THEN 88 - - COALESCE ( ( + 1 ) + 42, + 21, + 86 ) ELSE NULL END ) + 10 THEN 10 WHEN 17 THEN - COUNT ( * ) - 56 END + ( COUNT ( * ) ) col0
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-190
SELECT DISTINCT - COUNT( * ) + + + COUNT( - 50 ) * + ( COALESCE ( - COUNT( * ), - 43, + 77 - - 21 DIV COALESCE ( - - 30, - - 47, - 64 + + 90 + ( + 7 ) * - + 74 ) ) ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-190
SELECT DISTINCT - COUNT ( * ) + + + COUNT ( - 50 ) * + ( COALESCE ( - COUNT ( * ), - 43, + 77 - - 21 / COALESCE ( - - 30, - - 47, - 64 + + 90 + ( + 7 ) * - + 74 ) ) ) AS col0
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-191
SELECT - 11 DIV - - 68 + - 68 + 65 - 2 AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-191
SELECT - 11 / - - 68 + - 68 + 65 - 2 AS col2
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-192
SELECT MAX( - 26 ) * + 81 + 28 + + 67 * 2 AS col1
----
-1944

skipif mysql # not compatible
query I rowsort label-192
SELECT MAX ( - 26 ) * + 81 + 28 + + 67 * 2 AS col1
----
-1944

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-193
SELECT + CAST( NULL AS SIGNED ) * ( - 82 ) + + + 2 * 58
----
NULL

skipif mysql # not compatible
query I rowsort label-193
SELECT + CAST ( NULL AS INTEGER ) * ( - 82 ) + + + 2 * 58
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-194
SELECT 31 DIV - 15 + - ( + + 84 ) AS col0
----
-86

skipif mysql # not compatible
query I rowsort label-194
SELECT 31 / - 15 + - ( + + 84 ) AS col0
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-195
SELECT ALL + + 28 + 16 + + COUNT( * ) AS col1
----
45

skipif mysql # not compatible
query I rowsort label-195
SELECT ALL + + 28 + 16 + + COUNT ( * ) AS col1
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-196
SELECT DISTINCT - - ( - 95 ), - CAST( + 89 AS SIGNED ) col0
----
-95
-89

skipif mysql # not compatible
query II rowsort label-196
SELECT DISTINCT - - ( - 95 ), - CAST ( + 89 AS INTEGER ) col0
----
-95
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-197
SELECT + CAST( - 88 AS SIGNED ) * - 12 + + 98 + + 96 * + 25 AS col1
----
3554

skipif mysql # not compatible
query I rowsort label-197
SELECT + CAST ( - 88 AS INTEGER ) * - 12 + + 98 + + 96 * + 25 AS col1
----
3554

onlyif mysql # aggregate syntax: 
query I rowsort label-198
SELECT ALL - 9 + + 72 - 89 + - COUNT( * ) * + 15 AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-198
SELECT ALL - 9 + + 72 - 89 + - COUNT ( * ) * + 15 AS col0
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-199
SELECT DISTINCT + 76 * - - 78 + + + COUNT( * ) + 0 AS col0
----
5929

skipif mysql # not compatible
query I rowsort label-199
SELECT DISTINCT + 76 * - - 78 + + + COUNT ( * ) + 0 AS col0
----
5929

query II rowsort
SELECT DISTINCT - 7 - - 63 AS col2, ( + - 72 ) AS col2
----
56
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-201
SELECT SUM( + 35 ) AS col2
----
35

skipif mysql # not compatible
query I rowsort label-201
SELECT SUM ( + 35 ) AS col2
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-202
SELECT DISTINCT 84 * + COUNT( * ) - 72 AS col2
----
12

skipif mysql # not compatible
query I rowsort label-202
SELECT DISTINCT 84 * + COUNT ( * ) - 72 AS col2
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-203
SELECT COUNT( * ) * 60 + + 72 * - - 64 + - 20 - 31 AS col1
----
4617

skipif mysql # not compatible
query I rowsort label-203
SELECT COUNT ( * ) * 60 + + 72 * - - 64 + - 20 - 31 AS col1
----
4617

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

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

query II rowsort
SELECT DISTINCT 42 * - COALESCE ( - - 55, + - 30, - 56 ) col2, - 77 col2
----
-2310
-77

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-207
SELECT DISTINCT MIN( DISTINCT + 98 ) * - 23
----
-2254

skipif mysql # not compatible
query I rowsort label-207
SELECT DISTINCT MIN ( DISTINCT + 98 ) * - 23
----
-2254

onlyif mysql # aggregate syntax: 
query I rowsort label-208
SELECT COUNT( * ) * - CASE 19 WHEN - COUNT( * ) THEN COUNT( * ) * + + 27 * - - 98 + + 27 * - 56 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-208
SELECT COUNT ( * ) * - CASE 19 WHEN - COUNT ( * ) THEN COUNT ( * ) * + + 27 * - - 98 + + 27 * - 56 ELSE NULL END AS col0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-210
SELECT 30 + 97 + + COUNT( 10 )
----
128

skipif mysql # not compatible
query I rowsort label-210
SELECT 30 + 97 + + COUNT ( 10 )
----
128

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

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

query I rowsort
SELECT 14 * + + 62 AS col0
----
868

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-213
SELECT NULLIF ( + COALESCE ( - MIN( DISTINCT + CASE 86 WHEN 38 * - 32 + + NULLIF ( + CAST( + 26 AS SIGNED ), - 57 ) + - 20 * 11 THEN - - 39 END ), + 64, 22 ), + COUNT( * ) ) + - COALESCE ( 93, + ( 21 ) * COALESCE ( + 48, 82 ), - 16 * - 94 ) + 7 AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-213
SELECT NULLIF ( + COALESCE ( - MIN ( DISTINCT + CASE 86 WHEN 38 * - 32 + + NULLIF ( + CAST ( + 26 AS INTEGER ), - 57 ) + - 20 * 11 THEN - - 39 END ), + 64, 22 ), + COUNT ( * ) ) + - COALESCE ( 93, + ( 21 ) * COALESCE ( + 48, 82 ), - 16 * - 94 ) + 7 AS col0
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-214
SELECT 59 / - ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-214
SELECT 59 / - ( - CAST ( NULL AS INTEGER ) )
----
NULL

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

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

query I rowsort
SELECT ALL - 43 + - 53
----
-96

query II rowsort
SELECT + 32 col0, 19
----
32
19

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

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

query I rowsort
SELECT 65 * + + 15 * + + 42
----
40950

query I rowsort
SELECT ALL - 43 + - 24
----
-67

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

onlyif mysql # aggregate syntax: 
query I rowsort label-222
SELECT + CASE + 76 WHEN + + 46 + + 2 THEN + - 99 WHEN + 6 + - 53 + - - 86 THEN - SUM( ALL + - ( + 60 ) ) * 23 WHEN - 54 + ( - 84 ) THEN - 94 ELSE - + 58 END
----
-58

skipif mysql # not compatible
query I rowsort label-222
SELECT + CASE + 76 WHEN + + 46 + + 2 THEN + - 99 WHEN + 6 + - 53 + - - 86 THEN - SUM ( ALL + - ( + 60 ) ) * 23 WHEN - 54 + ( - 84 ) THEN - 94 ELSE - + 58 END
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-223
SELECT DISTINCT + CASE + - ( - 94 ) WHEN + 28 THEN NULL WHEN - 80 + - - CASE - + ( + 84 ) WHEN 9 THEN 76 ELSE MIN( 65 ) + - + 79 END * + NULLIF ( ( 51 ), - 68 - + 92 + 56 ) * - CASE ( 91 ) WHEN + 42 * 64 THEN + COALESCE ( - CASE 64 WHEN 99 + + COUNT( * ) THEN NULL WHEN + ( 91 ) - + 94 THEN NULL ELSE 85 END, - COUNT( * ) - + 26 ) + 73 * NULLIF ( 11 * ( + 37 / COALESCE ( + COUNT( * ), 50 + - COALESCE ( + COUNT( 91 ), - 46 * - 3, - 24 ) ) ), 39 * 51 ) WHEN 87 * - 78 THEN NULL END THEN + CAST( NULL AS SIGNED ) * 79 WHEN + 39 THEN NULL END + 90 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-223
SELECT DISTINCT + CASE + - ( - 94 ) WHEN + 28 THEN NULL WHEN - 80 + - - CASE - + ( + 84 ) WHEN 9 THEN 76 ELSE MIN ( 65 ) + - + 79 END * + NULLIF ( ( 51 ), - 68 - + 92 + 56 ) * - CASE ( 91 ) WHEN + 42 * 64 THEN + COALESCE ( - CASE 64 WHEN 99 + + COUNT ( * ) THEN NULL WHEN + ( 91 ) - + 94 THEN NULL ELSE 85 END, - COUNT ( * ) - + 26 ) + 73 * NULLIF ( 11 * ( + 37 / COALESCE ( + COUNT ( * ), 50 + - COALESCE ( + COUNT ( 91 ), - 46 * - 3, - 24 ) ) ), 39 * 51 ) WHEN 87 * - 78 THEN NULL END THEN + CAST ( NULL AS INTEGER ) * 79 WHEN + 39 THEN NULL END + 90 AS col1
----
NULL

query I rowsort
SELECT 77 * - + 14 + + 56 * - 71 * + 57
----
-227710

query I rowsort
SELECT DISTINCT + - 76 * - - 20 AS col1
----
-1520

onlyif mysql # aggregate syntax: 
query II rowsort label-226
SELECT - 67 - + MAX( + 45 ) - + CASE 66 WHEN 9 THEN - 59 END + + - 64 * + + 97 AS col0, 36
----
NULL
36

skipif mysql # not compatible
query II rowsort label-226
SELECT - 67 - + MAX ( + 45 ) - + CASE 66 WHEN 9 THEN - 59 END + + - 64 * + + 97 AS col0, 36
----
NULL
36

query I rowsort
SELECT - 11 + - 94
----
-105

query I rowsort
SELECT + + 41 * + 76 - + 80
----
3036

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

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

query I rowsort
SELECT 56 * 8 - 71 * + 9 col2
----
-191

onlyif mysql # aggregate syntax: 
query II rowsort label-231
SELECT - 25 + + MAX( 18 ) AS col0, - 62 * + - 17
----
-7
1054

skipif mysql # not compatible
query II rowsort label-231
SELECT - 25 + + MAX ( 18 ) AS col0, - 62 * + - 17
----
-7
1054

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-234
SELECT 48 + MIN( - 29 ) col1, - 38 * - 64 AS col0
----
19
2432

skipif mysql # not compatible
query II rowsort label-234
SELECT 48 + MIN ( - 29 ) col1, - 38 * - 64 AS col0
----
19
2432

onlyif mysql # DIV for integer division: 
query I rowsort label-235
SELECT + 17 DIV 67 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-235
SELECT + 17 / 67 AS col1
----
0

query II rowsort
SELECT DISTINCT 6 AS col2, - 69 AS col2
----
6
-69

query I rowsort
SELECT 95 * - - 33
----
3135

onlyif mysql # aggregate syntax: 
query I rowsort label-238
SELECT DISTINCT COUNT( * ) * + NULLIF ( 66, - - 0 ) * - 98 + - 65 AS col1
----
-6533

skipif mysql # not compatible
query I rowsort label-238
SELECT DISTINCT COUNT ( * ) * + NULLIF ( 66, - - 0 ) * - 98 + - 65 AS col1
----
-6533

onlyif mysql # aggregate syntax: 
query I rowsort label-239
SELECT COUNT( * ) + - 41 * - MAX( ALL + + COALESCE ( 60, 30 + - 19 ) )
----
2461

skipif mysql # not compatible
query I rowsort label-239
SELECT COUNT ( * ) + - 41 * - MAX ( ALL + + COALESCE ( 60, 30 + - 19 ) )
----
2461

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-240
SELECT DISTINCT ( - 59 ) + - AVG ( ALL - 34 ) + + 76 - + - 55 + - + COALESCE ( - - 28, - 33, + - 59 / 6 + + + CAST( NULL AS SIGNED ) ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-240
SELECT DISTINCT ( - 59 ) + - AVG ( ALL - 34 ) + + 76 - + - 55 + - + COALESCE ( - - 28, - 33, + - 59 / 6 + + + CAST ( NULL AS INTEGER ) ) * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 56 * - 72 * - 92 AS col2
----
370944

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-242
SELECT NULLIF ( - CASE + 88 WHEN + - 49 THEN - 19 WHEN 15 THEN - AVG ( - 91 ) ELSE NULL END, AVG ( DISTINCT + 18 ) * 34 + 3 + - + 12 ) / CASE MIN( 18 ) WHEN + 66 THEN COUNT( * ) * + 97 + COUNT( * ) WHEN ( 74 ) * - 13 + + CAST( 27 AS SIGNED ) THEN NULL END + + 50
----
NULL

skipif mysql # not compatible
query I rowsort label-242
SELECT NULLIF ( - CASE + 88 WHEN + - 49 THEN - 19 WHEN 15 THEN - AVG ( - 91 ) ELSE NULL END, AVG ( DISTINCT + 18 ) * 34 + 3 + - + 12 ) / CASE MIN ( 18 ) WHEN + 66 THEN COUNT ( * ) * + 97 + COUNT ( * ) WHEN ( 74 ) * - 13 + + CAST ( 27 AS INTEGER ) THEN NULL END + + 50
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-243
SELECT ALL NULLIF ( COALESCE ( 75, - 15 ), CAST( NULL AS SIGNED ) ) + 19 * + ( - 24 )
----
-381

skipif mysql # not compatible
query I rowsort label-243
SELECT ALL NULLIF ( COALESCE ( 75, - 15 ), CAST ( NULL AS INTEGER ) ) + 19 * + ( - 24 )
----
-381

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-244
SELECT DISTINCT ( - - 24 ) + - + ( - COALESCE ( - + 44, + - 76, - COUNT( * ) * + 20 + + 65, + 35 ) ) * ( + COUNT( * ) ) DIV + - 95 * + + 14 * COUNT( * ) - - + 89 AS col2
----
113

skipif mysql # not compatible
query I rowsort label-244
SELECT DISTINCT ( - - 24 ) + - + ( - COALESCE ( - + 44, + - 76, - COUNT ( * ) * + 20 + + 65, + 35 ) ) * ( + COUNT ( * ) ) / + - 95 * + + 14 * COUNT ( * ) - - + 89 AS col2
----
113

query I rowsort
SELECT + CASE 98 WHEN - 63 THEN + 30 + - 4 END + - - 41 + - 86 + - 15 * + 68 AS col2
----
NULL

query I rowsort
SELECT DISTINCT 96 + + - 87 AS col2
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-247
SELECT + 67 * + 64 AS col0, COUNT( * ) - COUNT( * ) * COUNT( ALL - - 39 ) * - 87 + + 37 AS col0
----
4288
125

skipif mysql # not compatible
query II rowsort label-247
SELECT + 67 * + 64 AS col0, COUNT ( * ) - COUNT ( * ) * COUNT ( ALL - - 39 ) * - 87 + + 37 AS col0
----
4288
125

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-248
SELECT COUNT( * ) / CAST( + 7 AS DECIMAL ) + CAST( NULL AS SIGNED ) - 83 - - + ( COUNT( * ) ) * - 15 + - 28 * + 39 * + ( - - 41 ) + - 50
----
NULL

skipif mysql # not compatible
query I rowsort label-248
SELECT COUNT ( * ) / CAST ( + 7 AS REAL ) + CAST ( NULL AS INTEGER ) - 83 - - + ( COUNT ( * ) ) * - 15 + - 28 * + 39 * + ( - - 41 ) + - 50
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-249
SELECT + 20 DIV CASE - + ( - 13 ) WHEN + 57 THEN NULL ELSE + CASE WHEN ( - 21 IS NOT NULL ) THEN - 16 * + SUM( ALL + 89 ) + 0 + - 15 + + 49 + COUNT( * ) END + 33 - + COALESCE ( + 80, + 13 + + 52 ) END - 2
----
-2

skipif mysql # not compatible
query I rowsort label-249
SELECT + 20 / CASE - + ( - 13 ) WHEN + 57 THEN NULL ELSE + CASE WHEN ( - 21 IS NOT NULL ) THEN - 16 * + SUM ( ALL + 89 ) + 0 + - 15 + + 49 + COUNT ( * ) END + 33 - + COALESCE ( + 80, + 13 + + 52 ) END - 2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-250
SELECT + 57 * + - 96 * - 0 + SUM( ALL + + 44 ) col1
----
44

skipif mysql # not compatible
query I rowsort label-250
SELECT + 57 * + - 96 * - 0 + SUM ( ALL + + 44 ) col1
----
44

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-251
SELECT ALL + 66 * - - CAST( NULL AS DECIMAL ) + - 48 - - + 57 + + 37
----
NULL

skipif mysql # not compatible
query I rowsort label-251
SELECT ALL + 66 * - - CAST ( NULL AS REAL ) + - 48 - - + 57 + + 37
----
NULL

query I rowsort
SELECT 62 * 37 + + 88
----
2382

query I rowsort
SELECT DISTINCT + COALESCE ( - 20, - 82 )
----
-20

query I rowsort
SELECT DISTINCT 11 * - 89 - 19 AS col0
----
-998

onlyif mysql # aggregate syntax: 
query I rowsort label-255
SELECT - - 12 + - 63 * - + COUNT( * )
----
75

skipif mysql # not compatible
query I rowsort label-255
SELECT - - 12 + - 63 * - + COUNT ( * )
----
75

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

onlyif mysql # aggregate syntax: 
query I rowsort label-257
SELECT - 88 * MAX( DISTINCT - + 47 )
----
4136

skipif mysql # not compatible
query I rowsort label-257
SELECT - 88 * MAX ( DISTINCT - + 47 )
----
4136

query I rowsort
SELECT + NULLIF ( + 37, 36 )
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-259
SELECT + 69 * 74 + + 31 * COUNT( * ) AS col1
----
5137

skipif mysql # not compatible
query I rowsort label-259
SELECT + 69 * 74 + + 31 * COUNT ( * ) AS col1
----
5137

onlyif mysql # aggregate syntax: 
query I rowsort label-260
SELECT ALL + CASE - 66 WHEN 36 * 67 * + COUNT( * ) - - 78 THEN 61 END * - 35
----
NULL

skipif mysql # not compatible
query I rowsort label-260
SELECT ALL + CASE - 66 WHEN 36 * 67 * + COUNT ( * ) - - 78 THEN 61 END * - 35
----
NULL

query I rowsort
SELECT DISTINCT + 33 * - 99 + + 14
----
-3253

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-262
SELECT - 72 * + CASE + 76 WHEN - 33 + 29 THEN + 31 WHEN + COUNT( * ) THEN NULL ELSE 6 - + - COUNT( * ) + 10 + - + 74 END * - + 41 * + 84 / - COALESCE ( - + 27, + 65, COUNT( * ) ) * + + COUNT( * ) + + 32 - CASE 39 WHEN + 29 THEN - 34 + 96 * CAST( NULL AS DECIMAL ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-262
SELECT - 72 * + CASE + 76 WHEN - 33 + 29 THEN + 31 WHEN + COUNT ( * ) THEN NULL ELSE 6 - + - COUNT ( * ) + 10 + - + 74 END * - + 41 * + 84 / - COALESCE ( - + 27, + 65, COUNT ( * ) ) * + + COUNT ( * ) + + 32 - CASE 39 WHEN + 29 THEN - 34 + 96 * CAST ( NULL AS REAL ) END AS col1
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-264
SELECT CAST( - - COUNT( * ) AS SIGNED ), + 53 + + 29 AS col2
----
1
82

skipif mysql # not compatible
query II rowsort label-264
SELECT CAST ( - - COUNT ( * ) AS INTEGER ), + 53 + + 29 AS col2
----
1
82

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

query II rowsort
SELECT - 41 AS col1, + ( 54 ) col2
----
-41
54

query I rowsort
SELECT DISTINCT + 33 * 5 * - + 41
----
-6765

query I rowsort
SELECT - 34 * + 16 AS col1
----
-544

onlyif mysql # aggregate syntax: 
query I rowsort label-269
SELECT ALL - NULLIF ( MIN( ALL - 80 ), - 81 ) + + - 88
----
-8

skipif mysql # not compatible
query I rowsort label-269
SELECT ALL - NULLIF ( MIN ( ALL - 80 ), - 81 ) + + - 88
----
-8

query I rowsort
SELECT ALL + 60 + + - 57 AS col0
----
3

query I rowsort
SELECT - 27 - 56 AS col2
----
-83

query I rowsort
SELECT - 4 * - 26
----
104

onlyif mysql # DIV for integer division: 
query I rowsort label-273
SELECT ALL 15 DIV - 61
----
0

skipif mysql # not compatible
query I rowsort label-273
SELECT ALL 15 / - 61
----
0

query I rowsort
SELECT DISTINCT 50 * - + 81
----
-4050

query I rowsort
SELECT ALL 9 + - + 46 + - 86 * - - 28 + 44 AS col0
----
-2401

onlyif mysql # aggregate syntax: 
query I rowsort label-276
SELECT + 91 + - COUNT( * ) AS col2
----
90

skipif mysql # not compatible
query I rowsort label-276
SELECT + 91 + - COUNT ( * ) AS col2
----
90

query I rowsort
SELECT ALL + 25 * + + 72
----
1800

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-280
SELECT ALL - 22 DIV 82 - COUNT( * ) DIV + - 77 * + 14
----
0

skipif mysql # not compatible
query I rowsort label-280
SELECT ALL - 22 / 82 - COUNT ( * ) / + - 77 * + 14
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-281
SELECT COALESCE ( - SUM( ALL + 85 ), + 48 ) AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-281
SELECT COALESCE ( - SUM ( ALL + 85 ), + 48 ) AS col1
----
-85

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

onlyif mysql # DIV for integer division: 
query I rowsort label-283
SELECT ALL 90 DIV ( + 3 ) AS col2
----
30

skipif mysql # not compatible
query I rowsort label-283
SELECT ALL 90 / ( + 3 ) AS col2
----
30

onlyif mysql # aggregate syntax: 
query II rowsort label-284
SELECT ALL + ( + COUNT( ALL - 45 ) ) AS col0, - 56 + 94 + - + ( + 13 ) col1
----
1
25

skipif mysql # not compatible
query II rowsort label-284
SELECT ALL + ( + COUNT ( ALL - 45 ) ) AS col0, - 56 + 94 + - + ( + 13 ) col1
----
1
25

onlyif mysql # aggregate syntax: 
query II rowsort label-285
SELECT ALL 73 * CASE - - 36 WHEN - 46 THEN COALESCE ( + 25, - 20 ) WHEN COUNT( * ) - NULLIF ( - 1, + + 47 ) THEN + 4 WHEN - COUNT( * ) / 88 + + - 24 THEN - 17 END + + - ( 47 ) AS col1, + 94
----
NULL
94

skipif mysql # not compatible
query II rowsort label-285
SELECT ALL 73 * CASE - - 36 WHEN - 46 THEN COALESCE ( + 25, - 20 ) WHEN COUNT ( * ) - NULLIF ( - 1, + + 47 ) THEN + 4 WHEN - COUNT ( * ) / 88 + + - 24 THEN - 17 END + + - ( 47 ) AS col1, + 94
----
NULL
94

query I rowsort
SELECT DISTINCT 17 * + - 76 - + + 99 AS col0
----
-1391

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

skipif mysql # not compatible
query I rowsort label-287
SELECT + + 56 / + + COUNT ( * ) + 34
----
90

onlyif mysql # aggregate syntax: 
query II rowsort label-288
SELECT DISTINCT 31 * - COUNT( * ) * - + 91 - - COUNT( DISTINCT 3 ) * + 91 AS col2, 75 * 73 * + 62 AS col1
----
2912
339450

skipif mysql # not compatible
query II rowsort label-288
SELECT DISTINCT 31 * - COUNT ( * ) * - + 91 - - COUNT ( DISTINCT 3 ) * + 91 AS col2, 75 * 73 * + 62 AS col1
----
2912
339450

query I rowsort
SELECT + - 70 + + - 73 * + 51 AS col1
----
-3793

onlyif mysql # aggregate syntax: 
query I rowsort label-290
SELECT DISTINCT + ( - + NULLIF ( + + 63, ( + 20 ) + + SUM( DISTINCT + 31 ) + + 56 ) )
----
-63

skipif mysql # not compatible
query I rowsort label-290
SELECT DISTINCT + ( - + NULLIF ( + + 63, ( + 20 ) + + SUM ( DISTINCT + 31 ) + + 56 ) )
----
-63

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

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

query I rowsort
SELECT NULLIF ( 9, - 37 ) col1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-293
SELECT + 51 + - ( COALESCE ( - ( - ( 39 ) ), 52 * - + ( + COUNT( * ) ) + - 56, + - 70 - + + 80, COUNT( * ) ) )
----
12

skipif mysql # not compatible
query I rowsort label-293
SELECT + 51 + - ( COALESCE ( - ( - ( 39 ) ), 52 * - + ( + COUNT ( * ) ) + - 56, + - 70 - + + 80, COUNT ( * ) ) )
----
12

onlyif mysql # aggregate syntax: 
query III rowsort label-294
SELECT NULLIF ( - + 4, + + AVG ( ALL + 10 ) ) AS col2, + 13 - + COUNT( * ) + + + 55 AS col1, - 30
----
-4
67
-30

skipif mysql # not compatible
query III rowsort label-294
SELECT NULLIF ( - + 4, + + AVG ( ALL + 10 ) ) AS col2, + 13 - + COUNT ( * ) + + + 55 AS col1, - 30
----
-4
67
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-295
SELECT - 32 * + COUNT( * ) * - CAST( NULL AS SIGNED ) * + 96 * + - COUNT( * ) + - - 41 - + 57 * + + MIN( + + 98 ) * - - NULLIF ( - COUNT( * ), - 10 ) + + 33 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-295
SELECT - 32 * + COUNT ( * ) * - CAST ( NULL AS INTEGER ) * + 96 * + - COUNT ( * ) + - - 41 - + 57 * + + MIN ( + + 98 ) * - - NULLIF ( - COUNT ( * ), - 10 ) + + 33 AS col0
----
NULL

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

query II rowsort
SELECT DISTINCT - 1 * 41 AS col1, 58
----
-41
58

query I rowsort
SELECT - 80 + + 59 + - + 30
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-299
SELECT ALL + 92 * SUM( ALL - 65 ) + 75
----
-5905

skipif mysql # not compatible
query I rowsort label-299
SELECT ALL + 92 * SUM ( ALL - 65 ) + 75
----
-5905

query II rowsort
SELECT 14, + 7 AS col1
----
14
7

onlyif mysql # aggregate syntax: 
query I rowsort label-301
SELECT ALL - 84 * + SUM( - 8 ) AS col1
----
672

skipif mysql # not compatible
query I rowsort label-301
SELECT ALL - 84 * + SUM ( - 8 ) AS col1
----
672

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-302
SELECT 59 + - ( - ( 47 ) ) + - CAST( NULL AS SIGNED ) / ( - 31 ) / - - 7 * - ( + 56 )
----
NULL

skipif mysql # not compatible
query I rowsort label-302
SELECT 59 + - ( - ( 47 ) ) + - CAST ( NULL AS INTEGER ) / ( - 31 ) / - - 7 * - ( + 56 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-303
SELECT ALL 64 AS col0, 22 * - COALESCE ( + 63, - 10 - - COUNT( * ) + - - 70 DIV + 34 + 87 )
----
64
-1386

skipif mysql # not compatible
query II rowsort label-303
SELECT ALL 64 AS col0, 22 * - COALESCE ( + 63, - 10 - - COUNT ( * ) + - - 70 / + 34 + 87 )
----
64
-1386

onlyif mysql # DIV for integer division: 
query I rowsort label-304
SELECT 33 DIV 30 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-304
SELECT 33 / 30 AS col2
----
1

query I rowsort
SELECT 68 + - + 74
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-306
SELECT ALL 22, + ( + 44 ) + COALESCE ( + - ( + COUNT( * ) ), 33 + + + 65 ) AS col2
----
22
43

skipif mysql # not compatible
query II rowsort label-306
SELECT ALL 22, + ( + 44 ) + COALESCE ( + - ( + COUNT ( * ) ), 33 + + + 65 ) AS col2
----
22
43

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-308
SELECT 58 DIV - 69 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-308
SELECT 58 / - 69 AS col0
----
0

query I rowsort
SELECT 65 + + - ( + - 22 )
----
87

query II rowsort
SELECT ALL 33, 28 AS col2
----
33
28

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

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

query I rowsort
SELECT + ( + 4 ) * + + 61 AS col0
----
244

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-313
SELECT ALL CAST( - 80 AS SIGNED ) * 88 AS col2
----
-7040

skipif mysql # not compatible
query I rowsort label-313
SELECT ALL CAST ( - 80 AS INTEGER ) * 88 AS col2
----
-7040

onlyif mysql # aggregate syntax: 
query I rowsort label-314
SELECT - 20 + + 29 * - COUNT( * ) * + - 25 AS col2
----
705

skipif mysql # not compatible
query I rowsort label-314
SELECT - 20 + + 29 * - COUNT ( * ) * + - 25 AS col2
----
705

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-315
SELECT DISTINCT - ( + - 26 ) - + - 74 + COUNT( * ) * - CAST( + 68 AS SIGNED ) + + 80 * - 80
----
-6368

skipif mysql # not compatible
query I rowsort label-315
SELECT DISTINCT - ( + - 26 ) - + - 74 + COUNT ( * ) * - CAST ( + 68 AS INTEGER ) + + 80 * - 80
----
-6368

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

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

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

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

query I rowsort
SELECT DISTINCT - 48 * + - 25
----
1200

onlyif mysql # aggregate syntax: 
query II rowsort label-319
SELECT ALL - 64, 11 * - COUNT( * ) AS col1
----
-64
-11

skipif mysql # not compatible
query II rowsort label-319
SELECT ALL - 64, 11 * - COUNT ( * ) AS col1
----
-64
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-320
SELECT + CAST( - NULLIF ( 75, - + CAST( COUNT( * ) AS DECIMAL ) ) AS SIGNED ) DIV - 71 + - 94 + - 30 + + 79 * 69 + - 44
----
5284

skipif mysql # not compatible
query I rowsort label-320
SELECT + CAST ( - NULLIF ( 75, - + CAST ( COUNT ( * ) AS REAL ) ) AS INTEGER ) / - 71 + - 94 + - 30 + + 79 * 69 + - 44
----
5284

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-321
SELECT + - 14 DIV 69 DIV - 6 - COUNT( DISTINCT + 75 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-321
SELECT + - 14 / 69 / - 6 - COUNT ( DISTINCT + 75 ) col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-322
SELECT DISTINCT - 88 * - 33 + - + COUNT( * ) + - SUM( ALL - 54 ) AS col1
----
2957

skipif mysql # not compatible
query I rowsort label-322
SELECT DISTINCT - 88 * - 33 + - + COUNT ( * ) + - SUM ( ALL - 54 ) AS col1
----
2957

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

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

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

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

query II rowsort
SELECT 79, 13 AS col2
----
79
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-326
SELECT ALL SUM( 3 ) + + CAST( - NULLIF ( - 20, - COUNT( * ) ) AS SIGNED ) + + COUNT( + 9 )
----
24

skipif mysql # not compatible
query I rowsort label-326
SELECT ALL SUM ( 3 ) + + CAST ( - NULLIF ( - 20, - COUNT ( * ) ) AS INTEGER ) + + COUNT ( + 9 )
----
24

query I rowsort
SELECT 23 + - + 92 * + 31 col0
----
-2829

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-328
SELECT ALL - - COALESCE ( 5, + 46 DIV - CAST( NULL AS SIGNED ) ) AS col0
----
5

skipif mysql # not compatible
query I rowsort label-328
SELECT ALL - - COALESCE ( 5, + 46 / - CAST ( NULL AS INTEGER ) ) AS col0
----
5

onlyif mysql # aggregate syntax: 
query II rowsort label-329
SELECT - 63 + - 6, - SUM( - 45 ) * - COUNT( ALL + 18 ) + 12 * - 2
----
-69
-69

skipif mysql # not compatible
query II rowsort label-329
SELECT - 63 + - 6, - SUM ( - 45 ) * - COUNT ( ALL + 18 ) + 12 * - 2
----
-69
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-330
SELECT - 35 * COUNT( * ) + - 30 AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-330
SELECT - 35 * COUNT ( * ) + - 30 AS col2
----
-65

query I rowsort
SELECT ALL NULLIF ( + 41, + 15 ) + 21
----
62

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-334
SELECT 62 DIV - + 15 AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-334
SELECT 62 / - + 15 AS col1
----
-4

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

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

query I rowsort
SELECT DISTINCT 33 + 72
----
105

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-337
SELECT ALL COALESCE ( - 33, - 18 + - 86 ) * - CAST( NULL AS SIGNED ) + 96 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-337
SELECT ALL COALESCE ( - 33, - 18 + - 86 ) * - CAST ( NULL AS INTEGER ) + 96 AS col2
----
NULL

query II rowsort
SELECT 59 * + - 93 AS col1, 3 AS col1
----
-5487
3

query I rowsort
SELECT ALL 80 * - ( - 65 )
----
5200

onlyif mysql # aggregate syntax: 
query I rowsort label-340
SELECT 49 * + COUNT( * ) * - SUM( + 70 )
----
-3430

skipif mysql # not compatible
query I rowsort label-340
SELECT 49 * + COUNT ( * ) * - SUM ( + 70 )
----
-3430

onlyif mysql # DIV for integer division: 
query I rowsort label-341
SELECT ALL 96 - 38 + 73 DIV + 54 AS col2
----
59

skipif mysql # not compatible
query I rowsort label-341
SELECT ALL 96 - 38 + 73 / + 54 AS col2
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-342
SELECT DISTINCT - 53 * MAX( CAST( - 3 AS SIGNED ) )
----
159

skipif mysql # not compatible
query I rowsort label-342
SELECT DISTINCT - 53 * MAX ( CAST ( - 3 AS INTEGER ) )
----
159

query I rowsort
SELECT 93 - + 86 * 24
----
-1971

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

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

query I rowsort
SELECT 0 * 76 * - - 60 * 98 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-346
SELECT DISTINCT - CAST( SUM( ALL + COALESCE ( + 6, + 42 ) ) AS SIGNED ) * - - 18 * - 23
----
2484

skipif mysql # not compatible
query I rowsort label-346
SELECT DISTINCT - CAST ( SUM ( ALL + COALESCE ( + 6, + 42 ) ) AS INTEGER ) * - - 18 * - 23
----
2484

query I rowsort
SELECT ALL + NULLIF ( + + 25, 30 )
----
25

query I rowsort
SELECT - COALESCE ( + 8, - + 18 )
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-349
SELECT + 45 DIV + 60 AS col0, - 95 + CASE - 18 WHEN - 24 * + 23 + COUNT( * ) THEN + 59 + + COUNT( * ) * + - 39 * + CASE ( - - 14 ) WHEN ( - 62 ) THEN NULL WHEN - CAST( - ( + - 95 ) AS SIGNED ) THEN + 2 + COUNT( ALL - - 2 ) END + 5 END AS col1
----
0
NULL

skipif mysql # not compatible
query II rowsort label-349
SELECT + 45 / + 60 AS col0, - 95 + CASE - 18 WHEN - 24 * + 23 + COUNT ( * ) THEN + 59 + + COUNT ( * ) * + - 39 * + CASE ( - - 14 ) WHEN ( - 62 ) THEN NULL WHEN - CAST ( - ( + - 95 ) AS INTEGER ) THEN + 2 + COUNT ( ALL - - 2 ) END + 5 END AS col1
----
0
NULL

query I rowsort
SELECT + 84 * ( + 81 ) + + 47 AS col0
----
6851

query I rowsort
SELECT ALL CASE + 54 WHEN 47 THEN NULL ELSE + 27 END
----
27

query I rowsort
SELECT ALL + 38 * + + 14 + 43 AS col0
----
575

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-354
SELECT + 61 * - 24 - 3 * NULLIF ( - COUNT( * ), - AVG ( DISTINCT - 22 ) ) AS col0
----
-1461

skipif mysql # not compatible
query I rowsort label-354
SELECT + 61 * - 24 - 3 * NULLIF ( - COUNT ( * ), - AVG ( DISTINCT - 22 ) ) AS col0
----
-1461

onlyif mysql # aggregate syntax: 
query I rowsort label-355
SELECT ALL - COUNT( * ) * + 68 * - NULLIF ( + + 88, - 66 ) + 26 * 22
----
6556

skipif mysql # not compatible
query I rowsort label-355
SELECT ALL - COUNT ( * ) * + 68 * - NULLIF ( + + 88, - 66 ) + 26 * 22
----
6556

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-356
SELECT 37 * + ( + - 33 ) + - - MIN( DISTINCT + 80 ) - - 59 + - 37 / AVG ( ALL CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-356
SELECT 37 * + ( + - 33 ) + - - MIN ( DISTINCT + 80 ) - - 59 + - 37 / AVG ( ALL CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-357
SELECT DISTINCT + - 17 * COUNT( * ) * - 20 + + COUNT( * )
----
341

skipif mysql # not compatible
query I rowsort label-357
SELECT DISTINCT + - 17 * COUNT ( * ) * - 20 + + COUNT ( * )
----
341

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

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

query I rowsort
SELECT ALL - 54 * - 28 + - 98
----
1414

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-361
SELECT COUNT( + + 2 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-361
SELECT COUNT ( + + 2 ) AS col2
----
1

query I rowsort
SELECT - 69 + - 27
----
-96

query I rowsort
SELECT - 45 + 28 AS col1
----
-17

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-364
SELECT ALL 56 - CAST( NULL AS DECIMAL ) + 74 * 9
----
NULL

skipif mysql # not compatible
query I rowsort label-364
SELECT ALL 56 - CAST ( NULL AS REAL ) + 74 * 9
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-365
SELECT + COUNT( * ) AS col2, 31 * - COUNT( * ) - - + 8
----
1
-23

skipif mysql # not compatible
query II rowsort label-365
SELECT + COUNT ( * ) AS col2, 31 * - COUNT ( * ) - - + 8
----
1
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-366
SELECT + NULLIF ( 49, 16 ) + SUM( + 5 )
----
54

skipif mysql # not compatible
query I rowsort label-366
SELECT + NULLIF ( 49, 16 ) + SUM ( + 5 )
----
54

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-368
SELECT + COALESCE ( - 87, + + CAST( NULL AS SIGNED ) * 62 + + 74, + 6 * + 64 )
----
-87

skipif mysql # not compatible
query I rowsort label-368
SELECT + COALESCE ( - 87, + + CAST ( NULL AS INTEGER ) * 62 + + 74, + 6 * + 64 )
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-369
SELECT - COUNT( * ) AS col0, COUNT( + - 65 ) / - 37 * 54 + + - 3 + + 81 + + 50 * CASE + 20 WHEN - + CAST( - + 89 AS SIGNED ) THEN COUNT( * ) * + 32 + + 60 END * + 89
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-369
SELECT - COUNT ( * ) AS col0, COUNT ( + - 65 ) / - 37 * 54 + + - 3 + + 81 + + 50 * CASE + 20 WHEN - + CAST ( - + 89 AS INTEGER ) THEN COUNT ( * ) * + 32 + + 60 END * + 89
----
-1
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-370
SELECT DISTINCT NULLIF ( - CAST( NULL AS SIGNED ), - 89 )
----
NULL

skipif mysql # not compatible
query I rowsort label-370
SELECT DISTINCT NULLIF ( - CAST ( NULL AS INTEGER ), - 89 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-371
SELECT ALL + 66 DIV 89
----
0

skipif mysql # not compatible
query I rowsort label-371
SELECT ALL + 66 / 89
----
0

query I rowsort
SELECT + 84 * 84
----
7056

onlyif mysql # aggregate syntax: 
query II rowsort label-373
SELECT ALL 90 * - ( + 86 ) AS col0, - 24 + + ( MIN( DISTINCT + + 62 ) )
----
-7740
38

skipif mysql # not compatible
query II rowsort label-373
SELECT ALL 90 * - ( + 86 ) AS col0, - 24 + + ( MIN ( DISTINCT + + 62 ) )
----
-7740
38

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

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

query I rowsort
SELECT + 37 + - - 25
----
62

query II rowsort
SELECT ALL 46, - CASE + 37 WHEN - CASE + - 80 WHEN - CASE - + AVG ( DISTINCT - 94 ) WHEN 40 THEN NULL WHEN - + 24 * - 28 THEN 7 ELSE NULL END THEN + 59 WHEN - - 39 THEN NULL END THEN - 2 / - 76 * + 32 END col1
----
46
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-377
SELECT + CAST( + + 80 AS SIGNED ) + - CAST( - 4 AS SIGNED )
----
84

skipif mysql # not compatible
query I rowsort label-377
SELECT + CAST ( + + 80 AS INTEGER ) + - CAST ( - 4 AS INTEGER )
----
84

query I rowsort
SELECT + 82 + + 73 AS col1
----
155

query I rowsort
SELECT ALL - 7 + - 1 AS col0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-380
SELECT ALL + COUNT( * ) + - 27 + - - 3 * + + 60 + + - CASE - - COUNT( * ) WHEN - - COUNT( * ) THEN - 36 END * 90 + - 63
----
3331

skipif mysql # not compatible
query I rowsort label-380
SELECT ALL + COUNT ( * ) + - 27 + - - 3 * + + 60 + + - CASE - - COUNT ( * ) WHEN - - COUNT ( * ) THEN - 36 END * 90 + - 63
----
3331

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-382
SELECT ALL MAX( - 94 ) + - 86 AS col2
----
-180

skipif mysql # not compatible
query I rowsort label-382
SELECT ALL MAX ( - 94 ) + - 86 AS col2
----
-180

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

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

query I rowsort
SELECT DISTINCT 97 + 92 + 29 * + 10
----
479

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

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

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

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

query II rowsort
SELECT 76, + 52 AS col2
----
76
52

onlyif mysql # DIV for integer division: 
query I rowsort label-388
SELECT ALL - + 74 DIV + 94 + - + 34 + + + 67
----
33

skipif mysql # not compatible
query I rowsort label-388
SELECT ALL - + 74 / + 94 + - + 34 + + + 67
----
33

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

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

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

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

query I rowsort
SELECT NULLIF ( + 50, 73 * - - 4 * - 18 + + NULLIF ( + 28, - 37 ) )
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-392
SELECT 70 * - COUNT( * ) + + - NULLIF ( - 78, 27 * + + 31 + CASE - ( - CASE - 29 WHEN + COALESCE ( + + 2, + 86, - MIN( ALL - 11 ) ) * - - COUNT( * ) THEN ( - 63 ) WHEN 1 THEN + - ( COALESCE ( + 67, - + 29 + + COALESCE ( + 27, 82 / - ( 41 ) ) + 86, - 48 * 34 ) ) + - 24 ELSE NULL END ) WHEN 14 * + 42 THEN NULL ELSE 67 END * - 26 )
----
8

skipif mysql # not compatible
query I rowsort label-392
SELECT 70 * - COUNT ( * ) + + - NULLIF ( - 78, 27 * + + 31 + CASE - ( - CASE - 29 WHEN + COALESCE ( + + 2, + 86, - MIN ( ALL - 11 ) ) * - - COUNT ( * ) THEN ( - 63 ) WHEN 1 THEN + - ( COALESCE ( + 67, - + 29 + + COALESCE ( + 27, 82 / - ( 41 ) ) + 86, - 48 * 34 ) ) + - 24 ELSE NULL END ) WHEN 14 * + 42 THEN NULL ELSE 67 END * - 26 )
----
8

query I rowsort
SELECT COALESCE ( - + 94, 80 ) AS col2
----
-94

query I rowsort
SELECT ALL - 17 * 89 - + 32 AS col2
----
-1545

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

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

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

skipif mysql # not compatible
query I rowsort label-396
SELECT + COUNT ( DISTINCT + 15 ) AS col0
----
1

query I rowsort
SELECT ALL + 62 * + + 11 * 20 * + 87
----
1186680

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

skipif mysql # not compatible
query I rowsort label-398
SELECT - MAX ( DISTINCT - + 0 ) * + + COUNT ( * ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-399
SELECT MAX( DISTINCT + 2 ) AS col2, - 49
----
2
-49

skipif mysql # not compatible
query II rowsort label-399
SELECT MAX ( DISTINCT + 2 ) AS col2, - 49
----
2
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-400
SELECT COUNT( - 7 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-400
SELECT COUNT ( - 7 ) AS col0
----
1

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

skipif mysql # not compatible
query I rowsort label-401
SELECT - SUM ( + 21 )
----
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-402
SELECT + 55 * - - 0, ( 55 ) + + COUNT( * ) AS col2
----
0
56

skipif mysql # not compatible
query II rowsort label-402
SELECT + 55 * - - 0, ( 55 ) + + COUNT ( * ) AS col2
----
0
56

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

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

query I rowsort
SELECT DISTINCT - - 71 + ( 38 ) + - 80 col2
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-405
SELECT ALL + - 8 DIV + 38
----
0

skipif mysql # not compatible
query I rowsort label-405
SELECT ALL + - 8 / + 38
----
0

query I rowsort
SELECT + 71 + + 35 + + - 92 AS col2
----
14

query I rowsort
SELECT ALL - 59 + - 98 + - 49 AS col2
----
-206

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

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

query I rowsort
SELECT ALL + + 95 + ( - - 74 ) AS col1
----
169

onlyif mysql # aggregate syntax: 
query I rowsort label-410
SELECT ALL COALESCE ( + 22, + + 7 + ( 12 ) - - MAX( DISTINCT + - 23 ), COUNT( * ) ) + + 94 AS col1
----
116

skipif mysql # not compatible
query I rowsort label-410
SELECT ALL COALESCE ( + 22, + + 7 + ( 12 ) - - MAX ( DISTINCT + - 23 ), COUNT ( * ) ) + + 94 AS col1
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-411
SELECT ALL - 67 * COALESCE ( + 12, + 68 * + 51 * + 61 - 16 * + + 48, - - COUNT( * ) ) AS col2
----
-804

skipif mysql # not compatible
query I rowsort label-411
SELECT ALL - 67 * COALESCE ( + 12, + 68 * + 51 * + 61 - 16 * + + 48, - - COUNT ( * ) ) AS col2
----
-804

onlyif mysql # DIV for integer division: 
query I rowsort label-412
SELECT + - 56 DIV + - 29 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-412
SELECT + - 56 / + - 29 AS col2
----
1

query I rowsort
SELECT + ( + 58 ) * - - 76
----
4408

query I rowsort
SELECT ALL - NULLIF ( + + 12, - 68 ) + - 93
----
-105

query I rowsort
SELECT ( + 65 ) + - 1
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-416
SELECT - 90 * ( 22 ) + + 35 + 46 * COUNT( * ) * - - 21
----
-979

skipif mysql # not compatible
query I rowsort label-416
SELECT - 90 * ( 22 ) + + 35 + 46 * COUNT ( * ) * - - 21
----
-979

query I rowsort
SELECT ALL 57 * - 0 col0
----
0

query I rowsort
SELECT DISTINCT 74 * + 2 AS col2
----
148

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-421
SELECT ALL - NULLIF ( - COUNT( * ), + CASE - - 7 WHEN - + 88 THEN 17 - + 58 - + + ( 22 ) + + AVG ( ALL + 37 ) * - ( - + 38 ) WHEN 49 THEN NULL WHEN - 98 THEN - 67 ELSE + + 28 * COUNT( * ) END ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-421
SELECT ALL - NULLIF ( - COUNT ( * ), + CASE - - 7 WHEN - + 88 THEN 17 - + 58 - + + ( 22 ) + + AVG ( ALL + 37 ) * - ( - + 38 ) WHEN 49 THEN NULL WHEN - 98 THEN - 67 ELSE + + 28 * COUNT ( * ) END ) AS col0
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-423
SELECT 84 - - - 6 + 82 * 20 * - + COUNT( * ) AS col1
----
-1562

skipif mysql # not compatible
query I rowsort label-423
SELECT 84 - - - 6 + 82 * 20 * - + COUNT ( * ) AS col1
----
-1562

onlyif mysql # DIV for integer division: 
query I rowsort label-424
SELECT + 95 * 15 - + - 45 + + 67 DIV + 82 * - 28 * + 95
----
1470

skipif mysql # not compatible
query I rowsort label-424
SELECT + 95 * 15 - + - 45 + + 67 / + 82 * - 28 * + 95
----
1470

onlyif mysql # DIV for integer division: 
query I rowsort label-425
SELECT 67 DIV 84
----
0

skipif mysql # not compatible
query I rowsort label-425
SELECT 67 / 84
----
0

query I rowsort
SELECT ALL - 4 * + 31
----
-124

query I rowsort
SELECT DISTINCT - 95 + + 96 col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-428
SELECT 83 + 57 - + 81 + + - 68 * 41 AS col1, NULLIF ( + MAX( DISTINCT 46 ), + 37 + + + 14 )
----
-2729
46

skipif mysql # not compatible
query II rowsort label-428
SELECT 83 + 57 - + 81 + + - 68 * 41 AS col1, NULLIF ( + MAX ( DISTINCT 46 ), + 37 + + + 14 )
----
-2729
46

query I rowsort
SELECT ALL + 31 * + + 58 AS col1
----
1798

query I rowsort
SELECT 40 * + 31 + + ( 24 )
----
1264

query I rowsort
SELECT DISTINCT + 50 * 4 AS col1
----
200

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

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

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

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

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

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

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

query I rowsort
SELECT 54 + + + ( - 92 ) + + 61 AS col2
----
23

query I rowsort
SELECT + ( - - 53 ) * + 82
----
4346

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-439
SELECT ALL + - MIN( ALL 59 ) + - 87 AS col0, COALESCE ( - - 48, - 70 * 78, + CAST( 16 AS SIGNED ) )
----
-146
48

skipif mysql # not compatible
query II rowsort label-439
SELECT ALL + - MIN ( ALL 59 ) + - 87 AS col0, COALESCE ( - - 48, - 70 * 78, + CAST ( 16 AS INTEGER ) )
----
-146
48

query II rowsort
SELECT 25 AS col1, 89 col0
----
25
89

query I rowsort
SELECT 92 * + 34 - + 12
----
3116

query II rowsort
SELECT DISTINCT - + 63 - - 65 + + 1 AS col2, - ( - 81 )
----
3
81

onlyif mysql # DIV for integer division: 
query I rowsort label-443
SELECT DISTINCT + 39 - + + 78 * 96 * 12 DIV 60 * - ( - 1 ) * + 67 + + + 19 - 83 * 54
----
-104723

skipif mysql # not compatible
query I rowsort label-443
SELECT DISTINCT + 39 - + + 78 * 96 * 12 / 60 * - ( - 1 ) * + 67 + + + 19 - 83 * 54
----
-104723

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-444
SELECT DISTINCT - NULLIF ( - 72, + 17 + - + 76 ) DIV + COUNT( * )
----
72

skipif mysql # not compatible
query I rowsort label-444
SELECT DISTINCT - NULLIF ( - 72, + 17 + - + 76 ) / + COUNT ( * )
----
72

query I rowsort
SELECT ALL - 6 * + 53 AS col2
----
-318

query I rowsort
SELECT DISTINCT - 62 * - 3 * + 69 + - - 65
----
12899

onlyif mysql # DIV for integer division: 
query I rowsort label-447
SELECT ALL 86 - + + 91 + 83 DIV - 96 AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-447
SELECT ALL 86 - + + 91 + 83 / - 96 AS col0
----
-5

query I rowsort
SELECT 95 * - + 41
----
-3895

onlyif mysql # DIV for integer division: 
query I rowsort label-449
SELECT 39 DIV + ( + 68 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-449
SELECT 39 / + ( + 68 ) AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-450
SELECT NULLIF ( - SUM( - + 44 ), - COUNT( * ) * CAST( NULL AS SIGNED ) + 61 ) + + CAST( NULL AS SIGNED ) + 3 + - + 55 * - COALESCE ( 18, - + MAX( + 40 ) - - CAST( 95 AS SIGNED ) ) * - 15 + + 0 + + + 91 / + 28
----
NULL

skipif mysql # not compatible
query I rowsort label-450
SELECT NULLIF ( - SUM ( - + 44 ), - COUNT ( * ) * CAST ( NULL AS INTEGER ) + 61 ) + + CAST ( NULL AS INTEGER ) + 3 + - + 55 * - COALESCE ( 18, - + MAX ( + 40 ) - - CAST ( 95 AS INTEGER ) ) * - 15 + + 0 + + + 91 / + 28
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-451
SELECT + COUNT( 74 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-451
SELECT + COUNT ( 74 ) AS col1
----
1

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

skipif mysql # not compatible
query I rowsort label-452
SELECT MIN ( ALL - - 49 )
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-453
SELECT 68 * - - CASE - 90 WHEN - 77 + - 84 THEN NULL WHEN - MAX( DISTINCT + 40 ) THEN + 26 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-453
SELECT 68 * - - CASE - 90 WHEN - 77 + - 84 THEN NULL WHEN - MAX ( DISTINCT + 40 ) THEN + 26 END AS col1
----
NULL

query II rowsort
SELECT ALL - 42 col0, - 81 AS col0
----
-42
-81

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

skipif mysql # not compatible
query I rowsort label-455
SELECT MIN ( DISTINCT 29 )
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-456
SELECT ALL 74 + 45 + - AVG ( ALL CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-456
SELECT ALL 74 + 45 + - AVG ( ALL CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT 58 * - 76 * + 48
----
-211584

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

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

query I rowsort
SELECT ALL 67 * 42
----
2814

query I rowsort
SELECT - 29 * - + 16 + + - 41
----
423

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-461
SELECT DISTINCT 2 * + ( + CASE + - CAST( MIN( - ( - 12 ) ) AS SIGNED ) WHEN ( + ( COUNT( * ) ) ) + - + 85 + + 46 / + + 92 * + 28 + COALESCE ( 99, + - 90 * 88 * 55 ) THEN NULL WHEN + 1 * - - 15 + + 61 * - MAX( ALL + 59 ) THEN - - 67 END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-461
SELECT DISTINCT 2 * + ( + CASE + - CAST ( MIN ( - ( - 12 ) ) AS INTEGER ) WHEN ( + ( COUNT ( * ) ) ) + - + 85 + + 46 / + + 92 * + 28 + COALESCE ( 99, + - 90 * 88 * 55 ) THEN NULL WHEN + 1 * - - 15 + + 61 * - MAX ( ALL + 59 ) THEN - - 67 END ) AS col0
----
NULL

query I rowsort
SELECT ALL 20 + 6 AS col1
----
26

query I rowsort
SELECT 83 * 51
----
4233

onlyif mysql # DIV for integer division: 
query I rowsort label-464
SELECT ALL + COALESCE ( 49, + - 19 DIV + - 9 ) + - + 11 + - 22 + COALESCE ( - 96, + 57 ) - + 68 + + ( + - 61 ) - 37 * - ( 41 ) * - NULLIF ( + 9, + 18 )
----
-13862

skipif mysql # not compatible
query I rowsort label-464
SELECT ALL + COALESCE ( 49, + - 19 / + - 9 ) + - + 11 + - 22 + COALESCE ( - 96, + 57 ) - + 68 + + ( + - 61 ) - 37 * - ( 41 ) * - NULLIF ( + 9, + 18 )
----
-13862

query I rowsort
SELECT ALL 8 + + - 66 * + 62 AS col2
----
-4084

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-466
SELECT ALL - CASE 84 WHEN + + 54 * + - 57 * 67 THEN 14 + 52 + + - ( - AVG ( - 42 ) ) * + 63 * + MAX( + 73 ) * 23 + 90 WHEN + - 32 - + CAST( NULL AS SIGNED ) THEN - + 19 END
----
NULL

skipif mysql # not compatible
query I rowsort label-466
SELECT ALL - CASE 84 WHEN + + 54 * + - 57 * 67 THEN 14 + 52 + + - ( - AVG ( - 42 ) ) * + 63 * + MAX ( + 73 ) * 23 + 90 WHEN + - 32 - + CAST ( NULL AS INTEGER ) THEN - + 19 END
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-468
SELECT + 36, ( - - 72 ) + + 7 - - COUNT( * ) + - ( 16 ) AS col2
----
36
64

skipif mysql # not compatible
query II rowsort label-468
SELECT + 36, ( - - 72 ) + + 7 - - COUNT ( * ) + - ( 16 ) AS col2
----
36
64

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

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

query I rowsort
SELECT DISTINCT - 84 + + + 45
----
-39

query I rowsort
SELECT 38 + - 77
----
-39

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

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

query I rowsort
SELECT 28 * + - 32 AS col2
----
-896

onlyif mysql # DIV for integer division: 
query I rowsort label-474
SELECT ALL + - 65 - - + 95 DIV - - 94 AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-474
SELECT ALL + - 65 - - + 95 / - - 94 AS col0
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-475
SELECT CASE + CAST( NULL AS DECIMAL ) WHEN - 61 THEN + CAST( NULL AS SIGNED ) WHEN - CAST( NULL AS SIGNED ) / COUNT( * ) THEN - - 69 * 89 * + 96 + - - 38 * + 12 ELSE + 80 END - - + CAST( - + 94 AS SIGNED ) * + 70 AS col2
----
-6500

skipif mysql # not compatible
query I rowsort label-475
SELECT CASE + CAST ( NULL AS REAL ) WHEN - 61 THEN + CAST ( NULL AS INTEGER ) WHEN - CAST ( NULL AS INTEGER ) / COUNT ( * ) THEN - - 69 * 89 * + 96 + - - 38 * + 12 ELSE + 80 END - - + CAST ( - + 94 AS INTEGER ) * + 70 AS col2
----
-6500

query II rowsort
SELECT - 16 AS col0, 38 + - 99 col2
----
-16
-61

query I rowsort
SELECT - - 21 - + 36 AS col1
----
-15

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

skipif mysql # not compatible
query I rowsort label-478
SELECT ALL - MAX ( ( - 95 ) )
----
95

query I rowsort
SELECT ALL - + 53 * + COALESCE ( - ( - - 2 ), + 94, 56 - - - 5 * - 56 ) AS col1
----
106

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-481
SELECT - + 84 AS col1, + COUNT( * ) * + 35 AS col0
----
-84
35

skipif mysql # not compatible
query II rowsort label-481
SELECT - + 84 AS col1, + COUNT ( * ) * + 35 AS col0
----
-84
35

onlyif mysql # aggregate syntax: 
query I rowsort label-482
SELECT - 92 * + + COUNT( * ) * + 30 * COUNT( + 78 )
----
-2760

skipif mysql # not compatible
query I rowsort label-482
SELECT - 92 * + + COUNT ( * ) * + 30 * COUNT ( + 78 )
----
-2760

query I rowsort
SELECT - 5 - - 64 + 14 * - 50 + + + 26 + 98 * - - 45
----
3795

onlyif mysql # aggregate syntax: 
query II rowsort label-484
SELECT COUNT( * ), + CASE + 23 WHEN + ( + 67 ) THEN 47 END AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-484
SELECT COUNT ( * ), + CASE + 23 WHEN + ( + 67 ) THEN 47 END AS col0
----
1
NULL

query I rowsort
SELECT - + 94 * + 73
----
-6862

query II rowsort
SELECT - 23, 60 AS col1
----
-23
60

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

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

query I rowsort
SELECT DISTINCT 69 * - 66
----
-4554

query I rowsort
SELECT ALL 86 * ( ( - - 16 ) )
----
1376

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-490
SELECT ALL - 39 + + COUNT( * ) AS col0, ( CASE + ( ( - + 87 ) ) WHEN 69 THEN CAST( NULL AS SIGNED ) END )
----
-38
NULL

skipif mysql # not compatible
query II rowsort label-490
SELECT ALL - 39 + + COUNT ( * ) AS col0, ( CASE + ( ( - + 87 ) ) WHEN 69 THEN CAST ( NULL AS INTEGER ) END )
----
-38
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-492
SELECT - SUM( + + 57 ) + + 1 * + - 81 + 76 AS col2, - 34
----
-62
-34

skipif mysql # not compatible
query II rowsort label-492
SELECT - SUM ( + + 57 ) + + 1 * + - 81 + 76 AS col2, - 34
----
-62
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-493
SELECT ALL 63 * + COUNT( * ) * + COUNT( * ) * MIN( DISTINCT + - 19 ) + 24
----
-1173

skipif mysql # not compatible
query I rowsort label-493
SELECT ALL 63 * + COUNT ( * ) * + COUNT ( * ) * MIN ( DISTINCT + - 19 ) + 24
----
-1173

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

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

query I rowsort
SELECT + 38 * + - 80 * + 48 AS col2
----
-145920

onlyif mysql # DIV for integer division: 
query I rowsort label-496
SELECT + 14 DIV 78 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-496
SELECT + 14 / 78 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-497
SELECT ALL 75 * + + 77 * + - CAST( - 35 AS SIGNED ) / - CAST( NULL AS DECIMAL ) + SUM( ALL 14 ) + - - 10 * - 96 - 96 + COUNT( ALL - 38 ) + - 30 + - - MIN( - 76 ) - + 80 + + ( 98 ) / - 29 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-497
SELECT ALL 75 * + + 77 * + - CAST ( - 35 AS INTEGER ) / - CAST ( NULL AS REAL ) + SUM ( ALL 14 ) + - - 10 * - 96 - 96 + COUNT ( ALL - 38 ) + - 30 + - - MIN ( - 76 ) - + 80 + + ( 98 ) / - 29 AS col0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-499
SELECT ALL - 49 * - CASE + 29 WHEN + 5 * - + 79 THEN - + COUNT( * ) * 10 + + 31 + 75 + + COUNT( * ) + + 60 * - NULLIF ( - 26, COUNT( 66 ) ) WHEN 3 THEN + COUNT( * ) WHEN + COUNT( * ) * + + 98 + + + COALESCE ( - 95, - COUNT( * ) ) * - 36 * + + 63 / - MIN( - 12 ) THEN NULL ELSE + 67 END
----
3283

skipif mysql # not compatible
query I rowsort label-499
SELECT ALL - 49 * - CASE + 29 WHEN + 5 * - + 79 THEN - + COUNT ( * ) * 10 + + 31 + 75 + + COUNT ( * ) + + 60 * - NULLIF ( - 26, COUNT ( 66 ) ) WHEN 3 THEN + COUNT ( * ) WHEN + COUNT ( * ) * + + 98 + + + COALESCE ( - 95, - COUNT ( * ) ) * - 36 * + + 63 / - MIN ( - 12 ) THEN NULL ELSE + 67 END
----
3283

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-500
SELECT 77 DIV - + 15 + + COUNT( + 10 ) AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-500
SELECT 77 / - + 15 + + COUNT ( + 10 ) AS col2
----
-4

query I rowsort
SELECT + 78 + - + ( - 83 )
----
161

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-502
SELECT ALL 18 * COUNT( * ) + + + 11, COALESCE ( ( - - CASE 59 WHEN + 8 / 83 * CAST( NULL AS SIGNED ) + - 53 * - - 54 + - 91 THEN + 82 + COUNT( * ) END ), + 32 + 11 - - 44 + - 75 + 16, ( + 80 ) ) AS col2
----
29
28

skipif mysql # not compatible
query II rowsort label-502
SELECT ALL 18 * COUNT ( * ) + + + 11, COALESCE ( ( - - CASE 59 WHEN + 8 / 83 * CAST ( NULL AS INTEGER ) + - 53 * - - 54 + - 91 THEN + 82 + COUNT ( * ) END ), + 32 + 11 - - 44 + - 75 + 16, ( + 80 ) ) AS col2
----
29
28

onlyif mysql # aggregate syntax: 
query I rowsort label-503
SELECT - + 96 * + 17 * - 20 + - 98 * 88 + - COUNT( * )
----
24015

skipif mysql # not compatible
query I rowsort label-503
SELECT - + 96 * + 17 * - 20 + - 98 * 88 + - COUNT ( * )
----
24015

query I rowsort
SELECT DISTINCT 34 * 20 * - - 6 * + 92 * - + 47 col2
----
-17641920

onlyif mysql # aggregate syntax: 
query II rowsort label-505
SELECT DISTINCT + ( + - 46 ) col0, COALESCE ( - + ( - + COUNT( * ) ), + + 2 ) AS col2
----
-46
1

skipif mysql # not compatible
query II rowsort label-505
SELECT DISTINCT + ( + - 46 ) col0, COALESCE ( - + ( - + COUNT ( * ) ), + + 2 ) AS col2
----
-46
1

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-507
SELECT + + 94 * - 65 AS col1, + 3 AS col1, + - 21 * 47 + + 62 + CAST( NULL AS SIGNED ) - + 11
----
-6110
3
NULL

skipif mysql # not compatible
query III rowsort label-507
SELECT + + 94 * - 65 AS col1, + 3 AS col1, + - 21 * 47 + + 62 + CAST ( NULL AS INTEGER ) - + 11
----
-6110
3
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-508
SELECT DISTINCT + 61 * ( SUM( + ( + 52 ) ) ) AS col0
----
3172

skipif mysql # not compatible
query I rowsort label-508
SELECT DISTINCT + 61 * ( SUM ( + ( + 52 ) ) ) AS col0
----
3172

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-509
SELECT - - 60 * + ( 13 ) + - 80 + - ( - COUNT( * ) ) * - COUNT( * ) + + 12 * ( - 8 ) / COUNT( * ) + - - CAST( NULL AS SIGNED ) + + CASE - 37 WHEN + 75 * + + 72 THEN 6 / - 24 + - 86 + - 96 * COUNT( * ) - + + 95 / + - ( - COUNT( * ) ) + + 75 WHEN MIN( DISTINCT + ( - 28 ) ) / - 15 THEN + 39 + + 67 END * - NULLIF ( ( - CAST( NULL AS SIGNED ) ) * 40, + NULLIF ( 54, 37 ) ) * COUNT( * ) - + 75 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-509
SELECT - - 60 * + ( 13 ) + - 80 + - ( - COUNT ( * ) ) * - COUNT ( * ) + + 12 * ( - 8 ) / COUNT ( * ) + - - CAST ( NULL AS INTEGER ) + + CASE - 37 WHEN + 75 * + + 72 THEN 6 / - 24 + - 86 + - 96 * COUNT ( * ) - + + 95 / + - ( - COUNT ( * ) ) + + 75 WHEN MIN ( DISTINCT + ( - 28 ) ) / - 15 THEN + 39 + + 67 END * - NULLIF ( ( - CAST ( NULL AS INTEGER ) ) * 40, + NULLIF ( 54, 37 ) ) * COUNT ( * ) - + 75 AS col0
----
NULL

query I rowsort
SELECT ALL 18 * - 38
----
-684

onlyif mysql # DIV for integer division: 
query I rowsort label-511
SELECT DISTINCT + - 63 DIV - 60
----
1

skipif mysql # not compatible
query I rowsort label-511
SELECT DISTINCT + - 63 / - 60
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-512
SELECT - 76 DIV - COUNT( * ) + - 27 - SUM( + - 43 ) * ( + + 49 )
----
2156

skipif mysql # not compatible
query I rowsort label-512
SELECT - 76 / - COUNT ( * ) + - 27 - SUM ( + - 43 ) * ( + + 49 )
----
2156

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-513
SELECT + - 73 + + + 18 + + + 99 - + + COUNT( * ) + + 16 DIV 3 * + 99 + - - 39 + - + 64 * - - 98 * + - 88
----
552513

skipif mysql # not compatible
query I rowsort label-513
SELECT + - 73 + + + 18 + + + 99 - + + COUNT ( * ) + + 16 / 3 * + 99 + - - 39 + - + 64 * - - 98 * + - 88
----
552513

query I rowsort
SELECT - + 67 * 39
----
-2613

onlyif mysql # DIV for integer division: 
query I rowsort label-515
SELECT DISTINCT 64 DIV + 95 + 56 AS col1
----
56

skipif mysql # not compatible
query I rowsort label-515
SELECT DISTINCT 64 / + 95 + 56 AS col1
----
56

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

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

query II rowsort
SELECT ALL + + 21 * 22, 76 AS col2
----
462
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-518
SELECT - + SUM( DISTINCT - - 44 ) AS col0, - 72 * 30 / CAST( NULL AS SIGNED ) * ( + + 47 )
----
-44
NULL

skipif mysql # not compatible
query II rowsort label-518
SELECT - + SUM ( DISTINCT - - 44 ) AS col0, - 72 * 30 / CAST ( NULL AS INTEGER ) * ( + + 47 )
----
-44
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-519
SELECT - ( + 85 ) + + 69 AS col0, 0 - - ( + - 93 ) * + - 99 DIV COUNT( * )
----
-16
9207

skipif mysql # not compatible
query II rowsort label-519
SELECT - ( + 85 ) + + 69 AS col0, 0 - - ( + - 93 ) * + - 99 / COUNT ( * )
----
-16
9207

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-520
SELECT 18, 5 DIV - 99 * - COUNT( * ) AS col2
----
18
0

skipif mysql # not compatible
query II rowsort label-520
SELECT 18, 5 / - 99 * - COUNT ( * ) AS col2
----
18
0

query I rowsort
SELECT DISTINCT + 89 + + 64 AS col1
----
153

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-522
SELECT + COALESCE ( - COUNT( * ), - COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) + + - 43 ) - 18 + + COUNT( * ) - + 12 * + MAX( + ( + + 15 ) ) * - 82 * - 15, 58 AS col0
----
-221418
58

skipif mysql # not compatible
query II rowsort label-522
SELECT + COALESCE ( - COUNT ( * ), - COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) + + - 43 ) - 18 + + COUNT ( * ) - + 12 * + MAX ( + ( + + 15 ) ) * - 82 * - 15, 58 AS col0
----
-221418
58

onlyif mysql # aggregate syntax: 
query I rowsort label-523
SELECT ALL CASE 29 WHEN - COUNT( * ) THEN NULL WHEN + 12 THEN + 75 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-523
SELECT ALL CASE 29 WHEN - COUNT ( * ) THEN NULL WHEN + 12 THEN + 75 ELSE NULL END
----
NULL

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

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

query I rowsort
SELECT - 62 + + 60 AS col1
----
-2

query II rowsort
SELECT 4 AS col2, - 13 AS col2
----
4
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-527
SELECT - 38 + 43 * + SUM( DISTINCT + ( - 47 ) )
----
-2059

skipif mysql # not compatible
query I rowsort label-527
SELECT - 38 + 43 * + SUM ( DISTINCT + ( - 47 ) )
----
-2059

onlyif mysql # DIV for integer division: 
query I rowsort label-528
SELECT ALL + 8 + 62 DIV - 15 col0
----
4

skipif mysql # not compatible
query I rowsort label-528
SELECT ALL + 8 + 62 / - 15 col0
----
4

onlyif mysql # DIV for integer division: 
query II rowsort label-529
SELECT 81 DIV - - 65 + - 8, 77 * 72 AS col2
----
-7
5544

skipif mysql # not compatible
query II rowsort label-529
SELECT 81 / - - 65 + - 8, 77 * 72 AS col2
----
-7
5544

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

skipif mysql # not compatible
query I rowsort label-530
SELECT DISTINCT + ( - 54 ) / - COUNT ( * ) + - 10
----
44

onlyif mysql # aggregate syntax: 
query II rowsort label-531
SELECT ALL + COUNT( * ) AS col1, CASE 2 WHEN - - ( 46 ) THEN - - 13 ELSE NULL END AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-531
SELECT ALL + COUNT ( * ) AS col1, CASE 2 WHEN - - ( 46 ) THEN - - 13 ELSE NULL END AS col1
----
1
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-532
SELECT DISTINCT COUNT( DISTINCT + 91 ) DIV + 89 + 42
----
42

skipif mysql # not compatible
query I rowsort label-532
SELECT DISTINCT COUNT ( DISTINCT + 91 ) / + 89 + 42
----
42

query I rowsort
SELECT ALL + 72 * 5 AS col1
----
360

onlyif mysql # aggregate syntax: 
query I rowsort label-534
SELECT DISTINCT + NULLIF ( 4, + MIN( 3 ) )
----
4

skipif mysql # not compatible
query I rowsort label-534
SELECT DISTINCT + NULLIF ( 4, + MIN ( 3 ) )
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-535
SELECT DISTINCT COALESCE ( 1, - 74 + MAX( DISTINCT - 81 ) + 21 + + COUNT( * ), MAX( + 96 ) ) * + + 68 * 38 col2, + COUNT( * ) + + 45
----
2584
46

skipif mysql # not compatible
query II rowsort label-535
SELECT DISTINCT COALESCE ( 1, - 74 + MAX ( DISTINCT - 81 ) + 21 + + COUNT ( * ), MAX ( + 96 ) ) * + + 68 * 38 col2, + COUNT ( * ) + + 45
----
2584
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-536
SELECT DISTINCT COUNT( * ) DIV + 77 * 92 + + 18 + + 16 * 41
----
674

skipif mysql # not compatible
query I rowsort label-536
SELECT DISTINCT COUNT ( * ) / + 77 * 92 + + 18 + + 16 * 41
----
674

query I rowsort
SELECT DISTINCT 8 * - 12
----
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-538
SELECT ALL + 10 DIV - 85 - - - COUNT( * ) col2, - 85 * + + 63
----
-1
-5355

skipif mysql # not compatible
query II rowsort label-538
SELECT ALL + 10 / - 85 - - - COUNT ( * ) col2, - 85 * + + 63
----
-1
-5355

query II rowsort
SELECT + 31 AS col1, - NULLIF ( - 55, + AVG ( - 70 ) ) - + 29 + - - 55
----
31
81

onlyif mysql # aggregate syntax: 
query II rowsort label-540
SELECT DISTINCT + 55 * + + 70 * - + 14 AS col2, - 53 * COUNT( ALL - 89 ) * - + 28
----
-53900
1484

skipif mysql # not compatible
query II rowsort label-540
SELECT DISTINCT + 55 * + + 70 * - + 14 AS col2, - 53 * COUNT ( ALL - 89 ) * - + 28
----
-53900
1484

onlyif mysql # DIV for integer division: 
query I rowsort label-541
SELECT - 97 DIV - 30
----
3

skipif mysql # not compatible
query I rowsort label-541
SELECT - 97 / - 30
----
3

query I rowsort
SELECT ALL + - COALESCE ( - 59, - 50 + - - ( - ( COALESCE ( + 24, + + 70 * + 66, - 19 ) ) ) )
----
59

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-544
SELECT DISTINCT - ( + - 22 ) * + - COUNT( * ) * - - NULLIF ( - - 67, - COALESCE ( - MAX( ALL + 24 ), + 39 * + ( - 67 ) + 94, ( + ( + - 2 ) ) * + ( CAST( + 96 AS SIGNED ) ) + 93 * MAX( + ( - 30 ) ) * + 7 - + 39 ) ) * 43 AS col1
----
-63382

skipif mysql # not compatible
query I rowsort label-544
SELECT DISTINCT - ( + - 22 ) * + - COUNT ( * ) * - - NULLIF ( - - 67, - COALESCE ( - MAX ( ALL + 24 ), + 39 * + ( - 67 ) + 94, ( + ( + - 2 ) ) * + ( CAST ( + 96 AS INTEGER ) ) + 93 * MAX ( + ( - 30 ) ) * + 7 - + 39 ) ) * 43 AS col1
----
-63382

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-545
SELECT DISTINCT - 62 AS col0, CASE - + 30 WHEN COUNT( * ) THEN CASE 25 WHEN - 26 THEN NULL WHEN - - CAST( - CAST( - + 54 AS SIGNED ) AS DECIMAL ) THEN NULL ELSE + CAST( NULL AS SIGNED ) + + NULLIF ( + COUNT( * ), + 1 - - 51 ) + + COUNT( * ) END + + CASE + COUNT( * ) WHEN - + 14 THEN NULL WHEN + 83 / - NULLIF ( + - ( - 87 ), - 48 ) THEN - NULLIF ( - - 6, 20 - + NULLIF ( + 80, 94 / 60 + 97 ) ) + 71 WHEN 93 * + COUNT( * ) THEN NULL ELSE NULL END ELSE NULL END AS col1
----
-62
NULL

skipif mysql # not compatible
query II rowsort label-545
SELECT DISTINCT - 62 AS col0, CASE - + 30 WHEN COUNT ( * ) THEN CASE 25 WHEN - 26 THEN NULL WHEN - - CAST ( - CAST ( - + 54 AS INTEGER ) AS REAL ) THEN NULL ELSE + CAST ( NULL AS INTEGER ) + + NULLIF ( + COUNT ( * ), + 1 - - 51 ) + + COUNT ( * ) END + + CASE + COUNT ( * ) WHEN - + 14 THEN NULL WHEN + 83 / - NULLIF ( + - ( - 87 ), - 48 ) THEN - NULLIF ( - - 6, 20 - + NULLIF ( + 80, 94 / 60 + 97 ) ) + 71 WHEN 93 * + COUNT ( * ) THEN NULL ELSE NULL END ELSE NULL END AS col1
----
-62
NULL

query I rowsort
SELECT 21 * - 56 - - 2 * - 46 col1
----
-1268

query I rowsort
SELECT DISTINCT + 77 * - - 44 + - 80
----
3308

onlyif mysql # aggregate syntax: 
query I rowsort label-548
SELECT + SUM( ALL 31 ) AS col2
----
31

skipif mysql # not compatible
query I rowsort label-548
SELECT + SUM ( ALL 31 ) AS col2
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-549
SELECT CASE + - 15 WHEN + - CAST( + 91 AS SIGNED ) * + 29 THEN NULL ELSE - 64 END AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-549
SELECT CASE + - 15 WHEN + - CAST ( + 91 AS INTEGER ) * + 29 THEN NULL ELSE - 64 END AS col0
----
-64

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

skipif mysql # not compatible
query I rowsort label-550
SELECT 1 * + COUNT ( - 72 ) / - 81 AS col1
----
0

query I rowsort
SELECT - 83 + - 73 AS col2
----
-156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-552
SELECT - COALESCE ( - 73, - 73 ) - + 34 + + COUNT( * ) DIV - 60 DIV COALESCE ( - + CAST( NULL AS SIGNED ), COUNT( * ) ) AS col2
----
39

skipif mysql # not compatible
query I rowsort label-552
SELECT - COALESCE ( - 73, - 73 ) - + 34 + + COUNT ( * ) / - 60 / COALESCE ( - + CAST ( NULL AS INTEGER ), COUNT ( * ) ) AS col2
----
39

query II rowsort
SELECT ALL 74 col2, - 90 AS col1
----
74
-90

query I rowsort
SELECT - 49 * + 54
----
-2646

query I rowsort
SELECT DISTINCT 97 + 68
----
165

onlyif mysql # DIV for integer division: 
query I rowsort label-556
SELECT DISTINCT + 75 + + - 93 DIV - 72 AS col1
----
76

skipif mysql # not compatible
query I rowsort label-556
SELECT DISTINCT + 75 + + - 93 / - 72 AS col1
----
76

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

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

query I rowsort
SELECT DISTINCT 92 + - 0 + - 14
----
78

query I rowsort
SELECT 58 * - 32
----
-1856

query I rowsort
SELECT 97 - + + 13
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-561
SELECT 3 DIV 10
----
0

skipif mysql # not compatible
query I rowsort label-561
SELECT 3 / 10
----
0

query I rowsort
SELECT 74 - + 22
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-563
SELECT CASE - 71 WHEN CASE + 67 WHEN - COALESCE ( - 38, 25, - + 30 * - 92 / 37 ) + + CAST( COUNT( * ) AS SIGNED ) THEN + 94 WHEN 2 THEN 85 + + CASE + 64 WHEN 87 THEN + - COUNT( * ) ELSE NULL END + - ( 23 ) * + 18 + MAX( ALL + 74 ) + - 45 * - 66 * + CAST( NULL AS SIGNED ) / - CASE CAST( NULL AS SIGNED ) WHEN 29 THEN - CASE - 1 WHEN 37 THEN SUM( - ( 98 ) ) ELSE - 55 END END + + COUNT( * ) / - 94 END + 4 THEN - 42 END * 94 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-563
SELECT CASE - 71 WHEN CASE + 67 WHEN - COALESCE ( - 38, 25, - + 30 * - 92 / 37 ) + + CAST ( COUNT ( * ) AS INTEGER ) THEN + 94 WHEN 2 THEN 85 + + CASE + 64 WHEN 87 THEN + - COUNT ( * ) ELSE NULL END + - ( 23 ) * + 18 + MAX ( ALL + 74 ) + - 45 * - 66 * + CAST ( NULL AS INTEGER ) / - CASE CAST ( NULL AS INTEGER ) WHEN 29 THEN - CASE - 1 WHEN 37 THEN SUM ( - ( 98 ) ) ELSE - 55 END END + + COUNT ( * ) / - 94 END + 4 THEN - 42 END * 94 AS col2
----
NULL

query I rowsort
SELECT ALL 9 + 39 * + 27 * + 49 AS col2
----
51606

onlyif mysql # aggregate syntax: 
query I rowsort label-565
SELECT ALL + CASE - 65 WHEN + NULLIF ( + COUNT( * ), - - 22 ) THEN - 90 ELSE NULL END * + 38 * - 77 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-565
SELECT ALL + CASE - 65 WHEN + NULLIF ( + COUNT ( * ), - - 22 ) THEN - 90 ELSE NULL END * + 38 * - 77 AS col1
----
NULL

query I rowsort
SELECT ALL 85 * 93
----
7905

onlyif mysql # aggregate syntax: 
query I rowsort label-567
SELECT ALL + ( - + CASE 23 WHEN + COUNT( * ) - + + 89 / COALESCE ( - - 66, ( - 40 ) ) THEN NULL WHEN 62 THEN NULL ELSE + 94 END ) - + 62 + - 7 * + 10 * COUNT( * ) * 65 * + ( 44 ) * + COUNT( * ) * - 94
----
18818644

skipif mysql # not compatible
query I rowsort label-567
SELECT ALL + ( - + CASE 23 WHEN + COUNT ( * ) - + + 89 / COALESCE ( - - 66, ( - 40 ) ) THEN NULL WHEN 62 THEN NULL ELSE + 94 END ) - + 62 + - 7 * + 10 * COUNT ( * ) * 65 * + ( 44 ) * + COUNT ( * ) * - 94
----
18818644

query I rowsort
SELECT 9 * - - 55 AS col2
----
495

onlyif mysql # aggregate syntax: 
query II rowsort label-569
SELECT DISTINCT COUNT( * ) * + 23 col0, - COALESCE ( + SUM( ALL 94 ), - + 71 )
----
23
-94

skipif mysql # not compatible
query II rowsort label-569
SELECT DISTINCT COUNT ( * ) * + 23 col0, - COALESCE ( + SUM ( ALL 94 ), - + 71 )
----
23
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-570
SELECT 77 * + + COUNT( * ) - - - 1 + - ( + - 25 )
----
101

skipif mysql # not compatible
query I rowsort label-570
SELECT 77 * + + COUNT ( * ) - - - 1 + - ( + - 25 )
----
101

query I rowsort
SELECT ALL + 86 * - 79 AS col0
----
-6794

query I rowsort
SELECT ( + 24 ) + - + 79 AS col1
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-573
SELECT 78 * - MAX( ALL + - 66 ) * + 47 / - CASE 0 WHEN - + COUNT( * ) * NULLIF ( - 45, + 19 + + 59 + 32 * 82 + MAX( 55 ) - + 67 + - MIN( ALL - NULLIF ( CAST( NULL AS SIGNED ), + 44 ) ) + 43 * - - 87 ) THEN COUNT( * ) WHEN + MIN( - 50 ) THEN NULL END * + COUNT( * ) + + 5 * - + 65 + 3 + + 24 * - ( - 48 )
----
NULL

skipif mysql # not compatible
query I rowsort label-573
SELECT 78 * - MAX ( ALL + - 66 ) * + 47 / - CASE 0 WHEN - + COUNT ( * ) * NULLIF ( - 45, + 19 + + 59 + 32 * 82 + MAX ( 55 ) - + 67 + - MIN ( ALL - NULLIF ( CAST ( NULL AS INTEGER ), + 44 ) ) + 43 * - - 87 ) THEN COUNT ( * ) WHEN + MIN ( - 50 ) THEN NULL END * + COUNT ( * ) + + 5 * - + 65 + 3 + + 24 * - ( - 48 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-574
SELECT - + MIN( + - CAST( NULL AS SIGNED ) ) * - ( - COUNT( * ) ) + - 82 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-574
SELECT - + MIN ( + - CAST ( NULL AS INTEGER ) ) * - ( - COUNT ( * ) ) + - 82 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-575
SELECT ALL + + 21 DIV - NULLIF ( + + 67, - 62 )
----
0

skipif mysql # not compatible
query I rowsort label-575
SELECT ALL + + 21 / - NULLIF ( + + 67, - 62 )
----
0

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

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

query I rowsort
SELECT - 8 + + 50
----
42

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

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

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

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

query I rowsort
SELECT ALL + - 46 * 18
----
-828

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

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

query I rowsort
SELECT + 50 * - 70 + + 19 AS col2
----
-3481

onlyif mysql # aggregate syntax: 
query I rowsort label-583
SELECT + SUM( ALL - 65 ) * + - 53 + 12 + - - 18 * + - ( - 78 )
----
4861

skipif mysql # not compatible
query I rowsort label-583
SELECT + SUM ( ALL - 65 ) * + - 53 + 12 + - - 18 * + - ( - 78 )
----
4861

onlyif mysql # DIV for integer division: 
query I rowsort label-584
SELECT 13 DIV + - 83 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-584
SELECT 13 / + - 83 AS col1
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-586
SELECT DISTINCT - + NULLIF ( 74, - 80 - - + COUNT( * ) - 14 + - COALESCE ( + 90, - + 22 - - COUNT( * ) + - 81 / + + COUNT( * ) * - 68 - 89 * 95 ) + - 69 * + + 40 * + ( + 61 ) * - ( 24 ) - + + 12 * - 52 * - 7 * 70 * - 29 ) AS col0
----
-74

skipif mysql # not compatible
query I rowsort label-586
SELECT DISTINCT - + NULLIF ( 74, - 80 - - + COUNT ( * ) - 14 + - COALESCE ( + 90, - + 22 - - COUNT ( * ) + - 81 / + + COUNT ( * ) * - 68 - 89 * 95 ) + - 69 * + + 40 * + ( + 61 ) * - ( 24 ) - + + 12 * - 52 * - 7 * 70 * - 29 ) AS col0
----
-74

query I rowsort
SELECT 74 + - - ( - CASE + - 11 WHEN + - 64 THEN NULL WHEN - 32 THEN 23 WHEN 14 THEN NULL END )
----
NULL

query I rowsort
SELECT - 24 * 67
----
-1608

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-589
SELECT ALL - MIN( 91 ) DIV + 68 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-589
SELECT ALL - MIN ( 91 ) / + 68 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-590
SELECT DISTINCT MAX( DISTINCT - 98 ) + + + 87
----
-11

skipif mysql # not compatible
query I rowsort label-590
SELECT DISTINCT MAX ( DISTINCT - 98 ) + + + 87
----
-11

query I rowsort
SELECT - 38 + - 71 AS col0
----
-109

onlyif mysql # aggregate syntax: 
query I rowsort label-592
SELECT ALL + + 75 + - 28 * + - MAX( ALL 33 )
----
999

skipif mysql # not compatible
query I rowsort label-592
SELECT ALL + + 75 + - 28 * + - MAX ( ALL 33 )
----
999

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

skipif mysql # not compatible
query I rowsort label-593
SELECT DISTINCT 82 + - + COUNT ( * ) AS col2
----
81

query I rowsort
SELECT DISTINCT 86 + - 96
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-595
SELECT + ( 89 ) * - - SUM( ALL - - 67 )
----
5963

skipif mysql # not compatible
query I rowsort label-595
SELECT + ( 89 ) * - - SUM ( ALL - - 67 )
----
5963

onlyif mysql # aggregate syntax: 
query I rowsort label-596
SELECT MIN( ALL COALESCE ( - 11, 81 ) ) + + COUNT( * )
----
-10

skipif mysql # not compatible
query I rowsort label-596
SELECT MIN ( ALL COALESCE ( - 11, 81 ) ) + + COUNT ( * )
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-597
SELECT ( + + ( 69 ) ) * ( + - 79 ) DIV - 74 + 32 + + - 97 + + 16 * 35 + + 48 DIV + ( - 25 )
----
567

skipif mysql # not compatible
query I rowsort label-597
SELECT ( + + ( 69 ) ) * ( + - 79 ) / - 74 + 32 + + - 97 + + 16 * 35 + + 48 / + ( - 25 )
----
567

query I rowsort
SELECT DISTINCT 69 + 97 AS col0
----
166

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-599
SELECT ALL 45 + + - 88 + - 73 AS col1, COUNT( * ) / 7 * - CAST( NULL AS SIGNED ) + - 87 AS col2
----
-116
NULL

skipif mysql # not compatible
query II rowsort label-599
SELECT ALL 45 + + - 88 + - 73 AS col1, COUNT ( * ) / 7 * - CAST ( NULL AS INTEGER ) + - 87 AS col2
----
-116
NULL

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

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

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

query I rowsort
SELECT ALL 68 * + 96
----
6528

query I rowsort
SELECT 2 + - 69 AS col1
----
-67

query I rowsort
SELECT ALL 91 - - 78
----
169

query II rowsort
SELECT 80 AS col1, 91
----
80
91

query I rowsort
SELECT COALESCE ( 15, - 32, - 9 ) + - 62 AS col2
----
-47

query I rowsort
SELECT 22 * 5
----
110

query II rowsort
SELECT DISTINCT 69 AS col2, - 64
----
69
-64

query I rowsort
SELECT 37 + 45
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-610
SELECT 11 DIV + 9 col1
----
1

skipif mysql # not compatible
query I rowsort label-610
SELECT 11 / + 9 col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-611
SELECT CASE - + 75 WHEN 9 THEN NULL ELSE + + 99 * - CASE - 34 WHEN - 38 THEN NULL ELSE + 59 END * + 31 * + CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-611
SELECT CASE - + 75 WHEN 9 THEN NULL ELSE + + 99 * - CASE - 34 WHEN - 38 THEN NULL ELSE + 59 END * + 31 * + CAST ( NULL AS INTEGER ) END
----
NULL

query I rowsort
SELECT DISTINCT - 10 * - + 91
----
910

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-613
SELECT ALL + CAST( 39 AS SIGNED ) * CAST( NULL AS SIGNED ) AS col0, + 52 * - + 11 AS col2
----
NULL
-572

skipif mysql # not compatible
query II rowsort label-613
SELECT ALL + CAST ( 39 AS INTEGER ) * CAST ( NULL AS INTEGER ) AS col0, + 52 * - + 11 AS col2
----
NULL
-572

onlyif mysql # aggregate syntax: 
query II rowsort label-614
SELECT DISTINCT + COALESCE ( + + COUNT( * ), - 44 ), 53 + + 17 AS col0
----
1
70

skipif mysql # not compatible
query II rowsort label-614
SELECT DISTINCT + COALESCE ( + + COUNT ( * ), - 44 ), 53 + + 17 AS col0
----
1
70

query II rowsort
SELECT DISTINCT - ( - + 88 ) * 84 * + 71 * + 50, 53 col2
----
26241600
53

query I rowsort
SELECT ALL + 82 * 40 AS col1
----
3280

query I rowsort
SELECT + 68 * + - 77 col2
----
-5236

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-618
SELECT ALL + - COALESCE ( - COUNT( * ), 71 DIV 99 * - 3 * - 60 * - 50 - 13 * - COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-618
SELECT ALL + - COALESCE ( - COUNT ( * ), 71 / 99 * - 3 * - 60 * - 50 - 13 * - COUNT ( * ) ) AS col1
----
1

query II rowsort
SELECT + 63, 58 col1
----
63
58

query I rowsort
SELECT DISTINCT - + CASE - 41 WHEN ( COALESCE ( - 51, 56, + - 33 ) ) THEN + 80 END * 59 + 13 / - 87 * 76
----
NULL

query I rowsort
SELECT ALL + + 19 * - NULLIF ( + + ( + 34 ), - - 33 ) + 51
----
-595

query I rowsort
SELECT + + NULLIF ( - - 58, + 39 + + 5 * + - 6 )
----
58

query I rowsort
SELECT ALL NULLIF ( + + 64, + 13 ) * - 93 + - 51 + - NULLIF ( - + COALESCE ( + 37, - - 74 ), - 50 ) * 33 + - 69 * + CASE WHEN NOT - 41 <> - 26 + + 62 THEN NULLIF ( + + 61, + 20 ) END + - 54 AS col0
----
NULL

query I rowsort
SELECT + 89 + 19
----
108

onlyif mysql # aggregate syntax: 
query II rowsort label-625
SELECT + 70 col0, - 60 - - 55 + - 9 + - + COUNT( * ) * + + 82
----
70
-96

skipif mysql # not compatible
query II rowsort label-625
SELECT + 70 col0, - 60 - - 55 + - 9 + - + COUNT ( * ) * + + 82
----
70
-96

query I rowsort
SELECT DISTINCT - + 10 + - 2 + - 44
----
-56

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

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

query I rowsort
SELECT DISTINCT - 76 - - - ( - - 94 )
----
-170

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-629
SELECT ALL - 58 - + - 77 + + 1 + + 30 DIV - 93 + + - 52 DIV + + 33 AS col0, MIN( DISTINCT 56 ) * 19
----
19
1064

skipif mysql # not compatible
query II rowsort label-629
SELECT ALL - 58 - + - 77 + + 1 + + 30 / - 93 + + - 52 / + + 33 AS col0, MIN ( DISTINCT 56 ) * 19
----
19
1064

query I rowsort
SELECT DISTINCT NULLIF ( + 77, - 57 )
----
77

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query III rowsort label-634
SELECT ALL 15 AS col1, - COALESCE ( - 71, + 11 * + 37 * 99 * - 4 - 17 ) - 63 AS col2, + COUNT( * ) - + 73 - + 48 * 19 * 25 + + 96 + ( + 50 )
----
15
8
-22726

skipif mysql # not compatible
query III rowsort label-634
SELECT ALL 15 AS col1, - COALESCE ( - 71, + 11 * + 37 * 99 * - 4 - 17 ) - 63 AS col2, + COUNT ( * ) - + 73 - + 48 * 19 * 25 + + 96 + ( + 50 )
----
15
8
-22726

query I rowsort
SELECT - 20 * 31 AS col0
----
-620

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

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

query II rowsort
SELECT ALL 73 AS col2, 77 AS col1
----
73
77

query I rowsort
SELECT - 14 - - + 5 * - 36 col1
----
-194

query I rowsort
SELECT ALL 84 * + 98
----
8232

query I rowsort
SELECT + 90 * - 45 * + - 14
----
56700

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

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

query I rowsort
SELECT DISTINCT - 42 * + 56
----
-2352

query II rowsort
SELECT ALL + 84, 99 * + + 52 AS col1
----
84
5148

query II rowsort
SELECT 45 AS col2, 85
----
45
85

onlyif mysql # DIV for integer division: 
query I rowsort label-645
SELECT + 4 DIV 81 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-645
SELECT + 4 / 81 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-646
SELECT ALL 74 + + SUM( DISTINCT - + 82 )
----
-8

skipif mysql # not compatible
query I rowsort label-646
SELECT ALL 74 + + SUM ( DISTINCT - + 82 )
----
-8

query I rowsort
SELECT + ( + 73 ) + 78 col2
----
151

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-648
SELECT + CASE - CAST( NULL AS DECIMAL ) WHEN CAST( NULL AS SIGNED ) * - COALESCE ( + 26, - 91 ) THEN 11 + - - 52 * 5 WHEN ( + 64 ) THEN NULL ELSE - + 25 END col2
----
-25

skipif mysql # not compatible
query I rowsort label-648
SELECT + CASE - CAST ( NULL AS REAL ) WHEN CAST ( NULL AS INTEGER ) * - COALESCE ( + 26, - 91 ) THEN 11 + - - 52 * 5 WHEN ( + 64 ) THEN NULL ELSE - + 25 END col2
----
-25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-649
SELECT ALL - - ( + 3 ) DIV + 23 * 24 + - + ( - COUNT( ALL - 37 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-649
SELECT ALL - - ( + 3 ) / + 23 * 24 + - + ( - COUNT ( ALL - 37 ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-650
SELECT 56 * 60 * - - COUNT( * ) - COUNT( * ) + 56 + 1 - 14 AS col0, + 43 col1
----
3402
43

skipif mysql # not compatible
query II rowsort label-650
SELECT 56 * 60 * - - COUNT ( * ) - COUNT ( * ) + 56 + 1 - 14 AS col0, + 43 col1
----
3402
43

query II rowsort
SELECT - 81 AS col2, + ( + 53 )
----
-81
53

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

skipif mysql # not compatible
query I rowsort label-652
SELECT DISTINCT COUNT ( * ) / + ( - 53 ) AS col1
----
0

query II rowsort
SELECT ALL + - 62 col1, + 90
----
-62
90

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-655
SELECT ALL + - COUNT( * ) col0, NULLIF ( 24, CASE - NULLIF ( 2, + 90 ) WHEN - 4 THEN COUNT( + + 14 ) WHEN - + 74 THEN NULL END )
----
-1
24

skipif mysql # not compatible
query II rowsort label-655
SELECT ALL + - COUNT ( * ) col0, NULLIF ( 24, CASE - NULLIF ( 2, + 90 ) WHEN - 4 THEN COUNT ( + + 14 ) WHEN - + 74 THEN NULL END )
----
-1
24

query II rowsort
SELECT + - 76, + 54 * 3 AS col0
----
-76
162

onlyif mysql # aggregate syntax: 
query I rowsort label-657
SELECT ALL + 91 * + 51 + - SUM( ALL 71 ) + - - ( - + COALESCE ( 68, - 60 * - ( + 43 ) * ( - + 46 ) + - 97 * + 14 ) ) AS col2
----
4502

skipif mysql # not compatible
query I rowsort label-657
SELECT ALL + 91 * + 51 + - SUM ( ALL 71 ) + - - ( - + COALESCE ( 68, - 60 * - ( + 43 ) * ( - + 46 ) + - 97 * + 14 ) ) AS col2
----
4502

onlyif mysql # aggregate syntax: 
query I rowsort label-658
SELECT ALL + ( + COALESCE ( 39, + 90 + - 30 ) ) * - MIN( - - 18 ) + + 83
----
-619

skipif mysql # not compatible
query I rowsort label-658
SELECT ALL + ( + COALESCE ( 39, + 90 + - 30 ) ) * - MIN ( - - 18 ) + + 83
----
-619

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-661
SELECT - CAST( NULL AS SIGNED ) AS col0, + 80 * 52
----
NULL
4160

skipif mysql # not compatible
query II rowsort label-661
SELECT - CAST ( NULL AS INTEGER ) AS col0, + 80 * 52
----
NULL
4160

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-662
SELECT DISTINCT 36 * - COALESCE ( 63, - 93 + 6 DIV 28 * + - CASE 33 WHEN - 0 * - + 43 * - - AVG ( DISTINCT + ( 44 ) ) * + 96 THEN - + 27 END * 53, - 77 ) * + 33 - + 53 + - 26 * - COUNT( * ) - + 56 * 35 * - + ( 51 ) AS col2
----
25089

skipif mysql # not compatible
query I rowsort label-662
SELECT DISTINCT 36 * - COALESCE ( 63, - 93 + 6 / 28 * + - CASE 33 WHEN - 0 * - + 43 * - - AVG ( DISTINCT + ( 44 ) ) * + 96 THEN - + 27 END * 53, - 77 ) * + 33 - + 53 + - 26 * - COUNT ( * ) - + 56 * 35 * - + ( 51 ) AS col2
----
25089

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

query I rowsort
SELECT - 56 * - 92
----
5152

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-665
SELECT ALL + MIN( + 88 ) DIV 16 + + 93
----
98

skipif mysql # not compatible
query I rowsort label-665
SELECT ALL + MIN ( + 88 ) / 16 + + 93
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-666
SELECT + CASE + 70 WHEN + COUNT( * ) / MIN( + 24 ) - - 32 + - + 83 THEN + + 60 END + - 4 + + 58
----
NULL

skipif mysql # not compatible
query I rowsort label-666
SELECT + CASE + 70 WHEN + COUNT ( * ) / MIN ( + 24 ) - - 32 + - + 83 THEN + + 60 END + - 4 + + 58
----
NULL

query I rowsort
SELECT ALL + 27 * - NULLIF ( - 97, + 9 / + 36 + - 79 + - 57 )
----
2619

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

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

query I rowsort
SELECT - 26 * + 42 * + 82
----
-89544

onlyif mysql # aggregate syntax: 
query II rowsort label-670
SELECT 18 + 41, 57 + - 36 + - 98 + + 41 * NULLIF ( + - 9, - ( - SUM( ALL 42 ) ) * + 47 / + 46 * + + NULLIF ( COALESCE ( + 24, - 68 * + 11 ), 54 ) + + 38 - 81 + 43 * - 39 ) AS col2
----
59
-446

skipif mysql # not compatible
query II rowsort label-670
SELECT 18 + 41, 57 + - 36 + - 98 + + 41 * NULLIF ( + - 9, - ( - SUM ( ALL 42 ) ) * + 47 / + 46 * + + NULLIF ( COALESCE ( + 24, - 68 * + 11 ), 54 ) + + 38 - 81 + 43 * - 39 ) AS col2
----
59
-446

query I rowsort
SELECT ALL - 82 * 8 AS col2
----
-656

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-672
SELECT ALL + NULLIF ( + CAST( - COUNT( ALL - 33 ) AS SIGNED ), - 28 ) * - - 77 + + 11 AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-672
SELECT ALL + NULLIF ( + CAST ( - COUNT ( ALL - 33 ) AS INTEGER ), - 28 ) * - - 77 + + 11 AS col2
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-673
SELECT 27 + 19 + - + COUNT( * ) * 58 * COUNT( ALL ( + 69 ) ) * + + 69 + - 22
----
-3978

skipif mysql # not compatible
query I rowsort label-673
SELECT 27 + 19 + - + COUNT ( * ) * 58 * COUNT ( ALL ( + 69 ) ) * + + 69 + - 22
----
-3978

onlyif mysql # DIV for integer division: 
query I rowsort label-674
SELECT ALL + 83 DIV + - ( - 91 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-674
SELECT ALL + 83 / + - ( - 91 ) AS col0
----
0

query I rowsort
SELECT 37 * + - 0 * + 77 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-676
SELECT ALL + MIN( DISTINCT 12 ) + - ( + 7 )
----
5

skipif mysql # not compatible
query I rowsort label-676
SELECT ALL + MIN ( DISTINCT 12 ) + - ( + 7 )
----
5

query I rowsort
SELECT + COALESCE ( - 78, + 28 * 50 + + 86 * 24 ) + - 59 col0
----
-137

query I rowsort
SELECT ALL CASE + - 10 WHEN - ( + - 58 ) THEN NULL WHEN - - CASE - + AVG ( + ( 51 ) ) WHEN - 24 THEN - + 68 END - ( 96 ) + 77 THEN + + 73 ELSE + ( - 93 ) END
----
-93

onlyif mysql # aggregate syntax: 
query II rowsort label-679
SELECT DISTINCT - + COUNT( * ) + 13 + 23 * + - 39 + - 96 AS col2, + 20
----
-981
20

skipif mysql # not compatible
query II rowsort label-679
SELECT DISTINCT - + COUNT ( * ) + 13 + 23 * + - 39 + - 96 AS col2, + 20
----
-981
20

query I rowsort
SELECT ALL 7 + 2 * + 21 AS col0
----
49

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

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

query I rowsort
SELECT DISTINCT - 66 + - 44
----
-110

onlyif mysql # aggregate syntax: 
query I rowsort label-683
SELECT ALL + - COUNT( DISTINCT - 45 ) + + SUM( + + 3 ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-683
SELECT ALL + - COUNT ( DISTINCT - 45 ) + + SUM ( + + 3 ) AS col0
----
2

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-685
SELECT ALL - 73 - 79 + + + 84 DIV - + COALESCE ( - 85, 36 + 91 ) + + - COUNT( - 40 )
----
-153

skipif mysql # not compatible
query I rowsort label-685
SELECT ALL - 73 - 79 + + + 84 / - + COALESCE ( - 85, 36 + 91 ) + + - COUNT ( - 40 )
----
-153

query I rowsort
SELECT 70 * + - 44 AS col2
----
-3080

query I rowsort
SELECT - 49 * + 62 AS col2
----
-3038

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-688
SELECT DISTINCT COUNT( * ) DIV - + 83 * 36 AS col0, + COUNT( * ) AS col2
----
0
1

skipif mysql # not compatible
query II rowsort label-688
SELECT DISTINCT COUNT ( * ) / - + 83 * 36 AS col0, + COUNT ( * ) AS col2
----
0
1

query I rowsort
SELECT ALL - - 32 AS col0
----
32

query I rowsort
SELECT ALL 37 * + 30 - 52 AS col1
----
1058

query I rowsort
SELECT - 7 - - 15 col0
----
8

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

skipif mysql # not compatible
query I rowsort label-692
SELECT ALL 76 / 59 + + COUNT ( * )
----
2

query II rowsort
SELECT ( - + 95 ) * - 43 + + 2 AS col1, + ( - + 6 )
----
4087
-6

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-694
SELECT DISTINCT NULLIF ( 0, + - 22 ) * + + CAST( 17 AS SIGNED ) + + 4 DIV + - 75
----
0

skipif mysql # not compatible
query I rowsort label-694
SELECT DISTINCT NULLIF ( 0, + - 22 ) * + + CAST ( 17 AS INTEGER ) + + 4 / + - 75
----
0

query I rowsort
SELECT ALL 74 * + - 10 AS col0
----
-740

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-697
SELECT NULLIF ( + + 58, 34 * + + ( 10 ) - + SUM( - - 47 ) + - 21 - - 80 + + - 70 * + 92 ) - + 8 * + 22, MAX( + - 45 ) AS col2
----
-118
-45

skipif mysql # not compatible
query II rowsort label-697
SELECT NULLIF ( + + 58, 34 * + + ( 10 ) - + SUM ( - - 47 ) + - 21 - - 80 + + - 70 * + 92 ) - + 8 * + 22, MAX ( + - 45 ) AS col2
----
-118
-45

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-699
SELECT MIN( - - 88 ) * + - 34
----
-2992

skipif mysql # not compatible
query I rowsort label-699
SELECT MIN ( - - 88 ) * + - 34
----
-2992

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

skipif mysql # not compatible
query II rowsort label-700
SELECT DISTINCT 54 AS col1, CAST ( NULL AS INTEGER )
----
54
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-701
SELECT NULLIF ( + - 65, + SUM( ALL - - 11 ) + + - 15 + + + COUNT( * ) ) * - + 71 * CAST( + + 12 AS SIGNED ) col1
----
55380

skipif mysql # not compatible
query I rowsort label-701
SELECT NULLIF ( + - 65, + SUM ( ALL - - 11 ) + + - 15 + + + COUNT ( * ) ) * - + 71 * CAST ( + + 12 AS INTEGER ) col1
----
55380

onlyif mysql # aggregate syntax: 
query I rowsort label-702
SELECT DISTINCT - 51 + + 86 * COUNT( * ) * + 97 + + ( 29 ) * 28 * 99
----
88679

skipif mysql # not compatible
query I rowsort label-702
SELECT DISTINCT - 51 + + 86 * COUNT ( * ) * + 97 + + ( 29 ) * 28 * 99
----
88679

onlyif mysql # aggregate syntax: 
query I rowsort label-703
SELECT ALL + 96 * + + COALESCE ( - 53, - + 95 * + ( - + COUNT( * ) ) + - 28 )
----
-5088

skipif mysql # not compatible
query I rowsort label-703
SELECT ALL + 96 * + + COALESCE ( - 53, - + 95 * + ( - + COUNT ( * ) ) + - 28 )
----
-5088

onlyif mysql # DIV for integer division: 
query I rowsort label-704
SELECT 37 DIV + - 27
----
-1

skipif mysql # not compatible
query I rowsort label-704
SELECT 37 / + - 27
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-705
SELECT DISTINCT - ( + + CAST( NULL AS SIGNED ) ) + - NULLIF ( + - 51, - 65 + - ( 85 ) ) + - COALESCE ( - ( + 0 ), + + 82 / - CASE - 7 WHEN - - 37 THEN + 59 ELSE 30 END ) + + 46 * - 74 + + + COUNT( * ) + + 84 / - 9 * ( + + 23 ) * 37 + + 66 + 44 * - + COUNT( * ) + - 85
----
NULL

skipif mysql # not compatible
query I rowsort label-705
SELECT DISTINCT - ( + + CAST ( NULL AS INTEGER ) ) + - NULLIF ( + - 51, - 65 + - ( 85 ) ) + - COALESCE ( - ( + 0 ), + + 82 / - CASE - 7 WHEN - - 37 THEN + 59 ELSE 30 END ) + + 46 * - 74 + + + COUNT ( * ) + + 84 / - 9 * ( + + 23 ) * 37 + + 66 + 44 * - + COUNT ( * ) + - 85
----
NULL

query I rowsort
SELECT ALL + 97 * + - 9 AS col0
----
-873

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-708
SELECT 62 DIV + 16
----
3

skipif mysql # not compatible
query I rowsort label-708
SELECT 62 / + 16
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-709
SELECT DISTINCT + - CASE 69 WHEN 62 THEN NULL WHEN + - ( - 23 ) THEN + MAX( DISTINCT 58 ) * - SUM( - - 96 ) + + 93 END * + COUNT( * ) * 42 * + COALESCE ( + 94, + - 17 / + + 45, + + NULLIF ( 16, + 79 / - 50 * - 93 + 4 ) ) + - + 50 + 65 - + COUNT( * ) * + 37 * - SUM( ALL COALESCE ( + 17, + 55 ) ) + - - 23 * 77
----
NULL

skipif mysql # not compatible
query I rowsort label-709
SELECT DISTINCT + - CASE 69 WHEN 62 THEN NULL WHEN + - ( - 23 ) THEN + MAX ( DISTINCT 58 ) * - SUM ( - - 96 ) + + 93 END * + COUNT ( * ) * 42 * + COALESCE ( + 94, + - 17 / + + 45, + + NULLIF ( 16, + 79 / - 50 * - 93 + 4 ) ) + - + 50 + 65 - + COUNT ( * ) * + 37 * - SUM ( ALL COALESCE ( + 17, + 55 ) ) + - - 23 * 77
----
NULL

query I rowsort
SELECT ALL - - 8 + - 33 + - + 14 AS col1
----
-39

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

skipif mysql # not compatible
query I rowsort label-711
SELECT DISTINCT MAX ( 46 )
----
46

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

query I rowsort
SELECT DISTINCT + - 78 * + - 21 AS col0
----
1638

query I rowsort
SELECT ALL - 37 + - - 28
----
-9

query II rowsort
SELECT - + 28 AS col2, - 15
----
-28
-15

query I rowsort
SELECT DISTINCT + + 66 - + + COALESCE ( - 44, + - 87 ) + + 88 - 72
----
126

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-718
SELECT + 24 DIV 53 * + 43 + 72 + COUNT( * ) + + 35 - - COUNT( * ) * 30 * + 52
----
1668

skipif mysql # not compatible
query I rowsort label-718
SELECT + 24 / 53 * + 43 + 72 + COUNT ( * ) + + 35 - - COUNT ( * ) * 30 * + 52
----
1668

onlyif mysql # aggregate syntax: 
query II rowsort label-719
SELECT ALL - - 81 AS col1, 54 + + COUNT( * ) AS col0
----
81
55

skipif mysql # not compatible
query II rowsort label-719
SELECT ALL - - 81 AS col1, 54 + + COUNT ( * ) AS col0
----
81
55

onlyif mysql # aggregate syntax: 
query I rowsort label-720
SELECT - COUNT( * ) - 89 - - ( - - 69 )
----
-21

skipif mysql # not compatible
query I rowsort label-720
SELECT - COUNT ( * ) - 89 - - ( - - 69 )
----
-21

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

skipif mysql # not compatible
query I rowsort label-721
SELECT - MAX ( DISTINCT - 91 )
----
91

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

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

query I rowsort
SELECT ALL - - ( - + COALESCE ( 77, 5 ) )
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-724
SELECT ALL - CASE - ( + + CAST( + - 72 AS SIGNED ) ) WHEN 63 * - 5 + + - 43 + - 22 * - 13 + + 25 + + - 64 THEN NULL WHEN - + COUNT( * ) + CAST( - + AVG ( + 23 ) AS SIGNED ) THEN 86 * + 97 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-724
SELECT ALL - CASE - ( + + CAST ( + - 72 AS INTEGER ) ) WHEN 63 * - 5 + + - 43 + - 22 * - 13 + + 25 + + - 64 THEN NULL WHEN - + COUNT ( * ) + CAST ( - + AVG ( + 23 ) AS INTEGER ) THEN 86 * + 97 END AS col1
----
NULL

query I rowsort
SELECT + 13 * - + 89 col2
----
-1157

query I rowsort
SELECT DISTINCT + 45 * + 50 AS col1
----
2250

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-727
SELECT ( - 96 ) * - 84 + + - NULLIF ( - - 94, 4 + + CASE + 42 WHEN + MAX( DISTINCT 3 ) THEN NULL ELSE + ( - CAST( - + 58 AS SIGNED ) ) END / + 48 ) + - + COUNT( * )
----
7969

skipif mysql # not compatible
query I rowsort label-727
SELECT ( - 96 ) * - 84 + + - NULLIF ( - - 94, 4 + + CASE + 42 WHEN + MAX ( DISTINCT 3 ) THEN NULL ELSE + ( - CAST ( - + 58 AS INTEGER ) ) END / + 48 ) + - + COUNT ( * )
----
7969

onlyif mysql # aggregate syntax: 
query II rowsort label-728
SELECT - 3 * - 32 * - 50 + + + COUNT( * ) AS col1, + 80
----
-4799
80

skipif mysql # not compatible
query II rowsort label-728
SELECT - 3 * - 32 * - 50 + + + COUNT ( * ) AS col1, + 80
----
-4799
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-729
SELECT MIN( ALL + + 20 ) DIV + 40 * + - 13 AS col0, 31 + - COUNT( * ) * + 28 * - 9 + + 30 AS col0
----
0
313

skipif mysql # not compatible
query II rowsort label-729
SELECT MIN ( ALL + + 20 ) / + 40 * + - 13 AS col0, 31 + - COUNT ( * ) * + 28 * - 9 + + 30 AS col0
----
0
313

onlyif mysql # aggregate syntax: 
query II rowsort label-730
SELECT ALL COUNT( * ) + - - 39 AS col2, - 8 AS col0
----
40
-8

skipif mysql # not compatible
query II rowsort label-730
SELECT ALL COUNT ( * ) + - - 39 AS col2, - 8 AS col0
----
40
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-731
SELECT ALL 91 DIV + 28
----
3

skipif mysql # not compatible
query I rowsort label-731
SELECT ALL 91 / + 28
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-732
SELECT + 14 + - 74 * + 52 / - CAST( NULL AS SIGNED ) * 11
----
NULL

skipif mysql # not compatible
query I rowsort label-732
SELECT + 14 + - 74 * + 52 / - CAST ( NULL AS INTEGER ) * 11
----
NULL

query I rowsort
SELECT DISTINCT - 10 + + - 72 col0
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-734
SELECT ALL MIN( DISTINCT + + 83 ) + + 66 AS col0
----
149

skipif mysql # not compatible
query I rowsort label-734
SELECT ALL MIN ( DISTINCT + + 83 ) + + 66 AS col0
----
149

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-735
SELECT ALL 61 * + - 62 * - ( CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-735
SELECT ALL 61 * + - 62 * - ( CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-736
SELECT DISTINCT 20 + MIN( DISTINCT 51 ) + 7 + - COUNT( ALL + - 29 )
----
77

skipif mysql # not compatible
query I rowsort label-736
SELECT DISTINCT 20 + MIN ( DISTINCT 51 ) + 7 + - COUNT ( ALL + - 29 )
----
77

query I rowsort
SELECT ALL 78 + + - 0 + - - 5 * + 26
----
208

query I rowsort
SELECT - 83 * - - 37 - - + 44 AS col1
----
-3027

onlyif mysql # aggregate syntax: 
query I rowsort label-739
SELECT + 55 + 20 + + COUNT( * ) AS col1
----
76

skipif mysql # not compatible
query I rowsort label-739
SELECT + 55 + 20 + + COUNT ( * ) AS col1
----
76

query II rowsort
SELECT - COALESCE ( - - 28, - 69, + 64 ), 57 * 33 col0
----
-28
1881

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-741
SELECT DISTINCT CAST( - - 0 AS SIGNED ) * + 82
----
0

skipif mysql # not compatible
query I rowsort label-741
SELECT DISTINCT CAST ( - - 0 AS INTEGER ) * + 82
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-742
SELECT + CASE + - COUNT( * ) WHEN + + 11 * - + 64 + 22 THEN - NULLIF ( 68, - ( - + 76 ) ) * 79 ELSE NULL END * - ( - 60 ) AS col0, ( - - 54 )
----
NULL
54

skipif mysql # not compatible
query II rowsort label-742
SELECT + CASE + - COUNT ( * ) WHEN + + 11 * - + 64 + 22 THEN - NULLIF ( 68, - ( - + 76 ) ) * 79 ELSE NULL END * - ( - 60 ) AS col0, ( - - 54 )
----
NULL
54

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-743
SELECT DISTINCT - 22 * - 33 col1, + 39 + + CAST( + 58 AS SIGNED )
----
726
97

skipif mysql # not compatible
query II rowsort label-743
SELECT DISTINCT - 22 * - 33 col1, + 39 + + CAST ( + 58 AS INTEGER )
----
726
97

query I rowsort
SELECT + 50 - 78 AS col0
----
-28

query I rowsort
SELECT ALL - 92 - 99 AS col0
----
-191

query I rowsort
SELECT - 82 + - 49 * + COALESCE ( - 55, - - 11 + - 84 * 44 * ( 31 ), + 94 )
----
2613

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

skipif mysql # not compatible
query I rowsort label-747
SELECT - - COUNT ( * ) * - 26
----
-26

query I rowsort
SELECT + 53 * - - 45
----
2385

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-749
SELECT ALL - - COALESCE ( + 47, - + NULLIF ( - - 7, 27 DIV - + COUNT( * ) * - 68 + - 24 ) DIV + 35 * COUNT( + - 48 ) * - 39 + - COUNT( * ) + 21 ) * 76
----
3572

skipif mysql # not compatible
query I rowsort label-749
SELECT ALL - - COALESCE ( + 47, - + NULLIF ( - - 7, 27 / - + COUNT ( * ) * - 68 + - 24 ) / + 35 * COUNT ( + - 48 ) * - 39 + - COUNT ( * ) + 21 ) * 76
----
3572

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

onlyif mysql # aggregate syntax: 
query I rowsort label-751
SELECT ALL - COUNT( * ) * + NULLIF ( - + 39, COALESCE ( + - 14, 11 ) ) + + COUNT( * )
----
40

skipif mysql # not compatible
query I rowsort label-751
SELECT ALL - COUNT ( * ) * + NULLIF ( - + 39, COALESCE ( + - 14, 11 ) ) + + COUNT ( * )
----
40

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-753
SELECT ALL + ( + COALESCE ( - + 4, - COALESCE ( + 75, NULLIF ( - 98, + + 58 ) - + 86, + 87 * - 64 + - COUNT( * ) * 1 + + NULLIF ( + - 1, - 75 ) + + - 80 * + COALESCE ( + ( 13 ), - 74, + 92, + - 68 ) + + COUNT( * ) + + + 61 - 4 + + COUNT( * ) * 85 + 90 + + 55 * 57 DIV + - 77, + 18 ), - 5 ) )
----
-4

skipif mysql # not compatible
query I rowsort label-753
SELECT ALL + ( + COALESCE ( - + 4, - COALESCE ( + 75, NULLIF ( - 98, + + 58 ) - + 86, + 87 * - 64 + - COUNT ( * ) * 1 + + NULLIF ( + - 1, - 75 ) + + - 80 * + COALESCE ( + ( 13 ), - 74, + 92, + - 68 ) + + COUNT ( * ) + + + 61 - 4 + + COUNT ( * ) * 85 + 90 + + 55 * 57 / + - 77, + 18 ), - 5 ) )
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-754
SELECT - 98 DIV + - 80
----
1

skipif mysql # not compatible
query I rowsort label-754
SELECT - 98 / + - 80
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-755
SELECT DISTINCT - + 75 DIV COUNT( * ) DIV - 8
----
9

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

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

query I rowsort
SELECT ( 31 ) col2
----
31

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

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

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

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

query I rowsort
SELECT DISTINCT - 24 * - NULLIF ( - - 26, + 64 ) + 94 * 52
----
5512

onlyif mysql # aggregate syntax: 
query I rowsort label-761
SELECT ALL + COUNT( * ) * 2 + - 8
----
-6

skipif mysql # not compatible
query I rowsort label-761
SELECT ALL + COUNT ( * ) * 2 + - 8
----
-6

query II rowsort
SELECT - 97 - - 59 - - 76 * + + 35 * - + 39 AS col2, - 30 AS col2
----
-103778
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-763
SELECT DISTINCT + 80 * 54 + COUNT( * )
----
4321

skipif mysql # not compatible
query I rowsort label-763
SELECT DISTINCT + 80 * 54 + COUNT ( * )
----
4321

onlyif mysql # aggregate syntax: 
query I rowsort label-764
SELECT - 73 - - 41 + - COUNT( * ) * - 54 + - 54 + + - MIN( 9 )
----
-41

skipif mysql # not compatible
query I rowsort label-764
SELECT - 73 - - 41 + - COUNT ( * ) * - 54 + - 54 + + - MIN ( 9 )
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-765
SELECT ALL - CAST( + ( + 51 ) AS SIGNED ) * + + 26 * + - 19
----
25194

skipif mysql # not compatible
query I rowsort label-765
SELECT ALL - CAST ( + ( + 51 ) AS INTEGER ) * + + 26 * + - 19
----
25194

onlyif mysql # DIV for integer division: 
query I rowsort label-766
SELECT - 91 DIV - 80 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-766
SELECT - 91 / - 80 AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-767
SELECT DISTINCT + 47 * + + 57 * - MAX( + - 35 ) + - 49 AS col1, 52 * 14 * - NULLIF ( - 86, + 60 + - - 36 ) AS col0
----
93716
62608

skipif mysql # not compatible
query II rowsort label-767
SELECT DISTINCT + 47 * + + 57 * - MAX ( + - 35 ) + - 49 AS col1, 52 * 14 * - NULLIF ( - 86, + 60 + - - 36 ) AS col0
----
93716
62608

onlyif mysql # aggregate syntax: 
query I rowsort label-768
SELECT ALL + ( - MAX( DISTINCT - 23 ) ) * 66 + - - 42 + - MAX( DISTINCT - + 0 ) AS col2
----
1560

skipif mysql # not compatible
query I rowsort label-768
SELECT ALL + ( - MAX ( DISTINCT - 23 ) ) * 66 + - - 42 + - MAX ( DISTINCT - + 0 ) AS col2
----
1560

query I rowsort
SELECT DISTINCT 42 * 42 + 17 AS col1
----
1781

onlyif mysql # aggregate syntax: 
query I rowsort label-770
SELECT - 38 + 0 + 10 * + COUNT( * ) + - COUNT( * ) AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-770
SELECT - 38 + 0 + 10 * + COUNT ( * ) + - COUNT ( * ) AS col0
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-771
SELECT ALL - MAX( + - 83 ) * 5
----
415

skipif mysql # not compatible
query I rowsort label-771
SELECT ALL - MAX ( + - 83 ) * 5
----
415

onlyif mysql # aggregate syntax: 
query I rowsort label-772
SELECT NULLIF ( - 83, + 85 / MIN( 42 ) ) AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-772
SELECT NULLIF ( - 83, + 85 / MIN ( 42 ) ) AS col0
----
-83

query I rowsort
SELECT - 14 + - 47 + 36 AS col2
----
-25

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-775
SELECT COALESCE ( + 58, 15 + - - 3 - + - 35 * 65 * + 64 * - - 77 * 92 + + 96, - COUNT( * ) ) AS col0, - COALESCE ( - - COALESCE ( - - 87, + + 93 * + 14 * - 94 + + 64 + 84 ), + 28 * + 74 + 90, + 74 + 51 + + + 40 ) AS col2
----
58
-87

skipif mysql # not compatible
query II rowsort label-775
SELECT COALESCE ( + 58, 15 + - - 3 - + - 35 * 65 * + 64 * - - 77 * 92 + + 96, - COUNT ( * ) ) AS col0, - COALESCE ( - - COALESCE ( - - 87, + + 93 * + 14 * - 94 + + 64 + 84 ), + 28 * + 74 + 90, + 74 + 51 + + + 40 ) AS col2
----
58
-87

query I rowsort
SELECT CASE - 45 WHEN - + 44 THEN + 7 ELSE - 36 END
----
-36

query I rowsort
SELECT DISTINCT - 32 * + 80 + - 38 - - 85 * + 88 col2
----
4882

onlyif mysql # aggregate syntax: 
query I rowsort label-778
SELECT - 7 * - ( - - MIN( DISTINCT - 48 ) ) AS col2
----
-336

skipif mysql # not compatible
query I rowsort label-778
SELECT - 7 * - ( - - MIN ( DISTINCT - 48 ) ) AS col2
----
-336

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-780
SELECT - 25 DIV - 32 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-780
SELECT - 25 / - 32 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-781
SELECT DISTINCT 37 DIV - 67
----
0

skipif mysql # not compatible
query I rowsort label-781
SELECT DISTINCT 37 / - 67
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-782
SELECT - CASE - 15 WHEN + 34 * 64 * - + NULLIF ( - - 56, - ( + COUNT( * ) ) * + 38 ) + + 58 + 49 THEN - 94 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-782
SELECT - CASE - 15 WHEN + 34 * 64 * - + NULLIF ( - - 56, - ( + COUNT ( * ) ) * + 38 ) + + 58 + 49 THEN - 94 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-783
SELECT + 60 + + - CASE + - MIN( ALL - - 91 ) WHEN - CASE - 20 WHEN + 47 + MIN( - 74 ) THEN NULL ELSE + 34 * 70 END * + - COUNT( * ) / COUNT( DISTINCT + 17 ) THEN NULL ELSE - 52 END
----
112

skipif mysql # not compatible
query I rowsort label-783
SELECT + 60 + + - CASE + - MIN ( ALL - - 91 ) WHEN - CASE - 20 WHEN + 47 + MIN ( - 74 ) THEN NULL ELSE + 34 * 70 END * + - COUNT ( * ) / COUNT ( DISTINCT + 17 ) THEN NULL ELSE - 52 END
----
112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-784
SELECT ALL + 43 - - CAST( - SUM( + 20 ) AS SIGNED ) AS col0
----
23

skipif mysql # not compatible
query I rowsort label-784
SELECT ALL + 43 - - CAST ( - SUM ( + 20 ) AS INTEGER ) AS col0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-785
SELECT ALL MAX( + + 54 ) * - 60 * - 46 * 73
----
10879920

skipif mysql # not compatible
query I rowsort label-785
SELECT ALL MAX ( + + 54 ) * - 60 * - 46 * 73
----
10879920

onlyif mysql # aggregate syntax: 
query I rowsort label-786
SELECT + 84 * + - MAX( + NULLIF ( 77, + 24 ) ) + NULLIF ( NULLIF ( - 55, + + 91 + - 68 + - 56 * - 63 ), + ( - 76 ) )
----
-6523

skipif mysql # not compatible
query I rowsort label-786
SELECT + 84 * + - MAX ( + NULLIF ( 77, + 24 ) ) + NULLIF ( NULLIF ( - 55, + + 91 + - 68 + - 56 * - 63 ), + ( - 76 ) )
----
-6523

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

query I rowsort
SELECT ALL + 60 * 18
----
1080

onlyif mysql # aggregate syntax: 
query I rowsort label-789
SELECT + + 80 - + COUNT( * ) * - 10
----
90

skipif mysql # not compatible
query I rowsort label-789
SELECT + + 80 - + COUNT ( * ) * - 10
----
90

query I rowsort
SELECT + + 22 * - - 65
----
1430

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

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

query I rowsort
SELECT + 59 + + 40 + ( + - 7 ) AS col1
----
92

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

skipif mysql # not compatible
query I rowsort label-793
SELECT DISTINCT SUM ( 98 )
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-794
SELECT + 87 * + + 27 * + ( - 77 ) * - 12 + COUNT( * )
----
2170477

skipif mysql # not compatible
query I rowsort label-794
SELECT + 87 * + + 27 * + ( - 77 ) * - 12 + COUNT ( * )
----
2170477

query I rowsort
SELECT + 26 + 23 AS col0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-796
SELECT ALL SUM( DISTINCT + + 53 ) + 3 + 67 AS col0
----
123

skipif mysql # not compatible
query I rowsort label-796
SELECT ALL SUM ( DISTINCT + + 53 ) + 3 + 67 AS col0
----
123

query I rowsort
SELECT 31 + - + 51
----
-20

query II rowsort
SELECT 20 AS col2, ( + - 95 ) * + + 0
----
20
0

query I rowsort
SELECT - 95 * - 5 + - 69 AS col1
----
406

onlyif mysql # aggregate syntax: 
query I rowsort label-800
SELECT ALL - CASE - 9 WHEN - 40 THEN - COUNT( * ) + - 63 + - 14 * + 74 WHEN 92 + + COUNT( * ) / + COUNT( * ) * - NULLIF ( + 65, - ( - 27 ) ) THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-800
SELECT ALL - CASE - 9 WHEN - 40 THEN - COUNT ( * ) + - 63 + - 14 * + 74 WHEN 92 + + COUNT ( * ) / + COUNT ( * ) * - NULLIF ( + 65, - ( - 27 ) ) THEN NULL ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT 31 + COALESCE ( - 38, - 24 ) * + 58 * - 98 + 20
----
216043

query II rowsort
SELECT DISTINCT - 69, 47 - - 63 AS col2
----
-69
110

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

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

query II rowsort
SELECT - 75 * 47 * 84 + + 52 AS col2, 94 + + 49
----
-296048
143

query I rowsort
SELECT 21 * + 28
----
588

query II rowsort
SELECT + 13 AS col2, - 99 - - - 47 + - 24
----
13
-170

query I rowsort
SELECT ALL + 38 - 70
----
-32

query I rowsort
SELECT 46 * - 98
----
-4508

query I rowsort
SELECT ALL - 65 * 47
----
-3055

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-810
SELECT 53 + - 54 + - + CAST( - MAX( - + 87 ) AS SIGNED )
----
-88

skipif mysql # not compatible
query I rowsort label-810
SELECT 53 + - 54 + - + CAST ( - MAX ( - + 87 ) AS INTEGER )
----
-88

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-812
SELECT 21 + + 6 + 93 DIV 41 * - 91 * + - 57 - 31 + ( - NULLIF ( - 16, - ( - 7 ) + + ( + + 67 ) * + 29 ) ) * - - 31
----
10866

skipif mysql # not compatible
query I rowsort label-812
SELECT 21 + + 6 + 93 / 41 * - 91 * + - 57 - 31 + ( - NULLIF ( - 16, - ( - 7 ) + + ( + + 67 ) * + 29 ) ) * - - 31
----
10866

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-813
SELECT - CAST( NULL AS DECIMAL ) * + + AVG ( - COALESCE ( - + 71, - 48 - - 60, - 98 ) ) - + 45 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-813
SELECT - CAST ( NULL AS REAL ) * + + AVG ( - COALESCE ( - + 71, - 48 - - 60, - 98 ) ) - + 45 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-814
SELECT CAST( NULL AS SIGNED ) + COALESCE ( + 87, COUNT( * ), + 46, - + 42 )
----
NULL

skipif mysql # not compatible
query I rowsort label-814
SELECT CAST ( NULL AS INTEGER ) + COALESCE ( + 87, COUNT ( * ), + 46, - + 42 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-815
SELECT + 68 DIV 11 col0
----
6

skipif mysql # not compatible
query I rowsort label-815
SELECT + 68 / 11 col0
----
6

query I rowsort
SELECT 14 * + 60
----
840

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-817
SELECT ALL + COALESCE ( - COUNT( * ), + 68 DIV - - 76 + - 50 + - - 25 * - 91, - - 51 * - 34 ) col0, + MIN( ALL - 42 ) + + 37 + + + 69
----
-1
64

skipif mysql # not compatible
query II rowsort label-817
SELECT ALL + COALESCE ( - COUNT ( * ), + 68 / - - 76 + - 50 + - - 25 * - 91, - - 51 * - 34 ) col0, + MIN ( ALL - 42 ) + + 37 + + + 69
----
-1
64

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

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

query I rowsort
SELECT 90 + - COALESCE ( - 49, + - 52 ) AS col1
----
139

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

query I rowsort
SELECT DISTINCT - COALESCE ( 23, 77, + + 71 - + 29 + + 69 + 29 ) + - 2 * + 64 AS col0
----
-151

onlyif mysql # DIV for integer division: 
query I rowsort label-822
SELECT DISTINCT + 96 DIV - 98 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-822
SELECT DISTINCT + 96 / - 98 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-823
SELECT + 10 * - MIN( DISTINCT - COALESCE ( - 83, - 36 * - 22 ) ) * + 92 - + + 62
----
-76422

skipif mysql # not compatible
query I rowsort label-823
SELECT + 10 * - MIN ( DISTINCT - COALESCE ( - 83, - 36 * - 22 ) ) * + 92 - + + 62
----
-76422

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

skipif mysql # not compatible
query I rowsort label-824
SELECT CAST ( + 65 AS INTEGER ) + 92 AS col1
----
157

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

skipif mysql # not compatible
query I rowsort label-825
SELECT ALL - 4 + + ( + COUNT ( * ) ) AS col0
----
-3

query I rowsort
SELECT + 93 + + 52 * 98 col1
----
5189

query I rowsort
SELECT DISTINCT - 55 * - COALESCE ( 12, + + 56, - 0 )
----
660

query I rowsort
SELECT 12 * + + 8 * + 76 * - + 99 col2
----
-722304

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-829
SELECT ALL CAST( + + 94 AS DECIMAL ) + - MIN( 68 ) + - + 34 * - 5 * - CAST( NULL AS DECIMAL ) AS col2, COUNT( * ) AS col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-829
SELECT ALL CAST ( + + 94 AS REAL ) + - MIN ( 68 ) + - + 34 * - 5 * - CAST ( NULL AS REAL ) AS col2, COUNT ( * ) AS col1
----
NULL
1

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-832
SELECT ALL 62 + 37 + - - COUNT( - 53 ) * + + 28 AS col1
----
127

skipif mysql # not compatible
query I rowsort label-832
SELECT ALL 62 + 37 + - - COUNT ( - 53 ) * + + 28 AS col1
----
127

query I rowsort
SELECT NULLIF ( + - 42, 12 ) - - ( + 92 ) * - - 41
----
3730

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

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

query I rowsort
SELECT - 71 * + 63 * + 78 + 86 AS col1
----
-348808

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-836
SELECT 63 + 21 * 22 + + 63 * + CAST( NULL AS SIGNED ) AS col1, 11
----
NULL
11

skipif mysql # not compatible
query II rowsort label-836
SELECT 63 + 21 * 22 + + 63 * + CAST ( NULL AS INTEGER ) AS col1, 11
----
NULL
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-837
SELECT ALL 2 - + 73 AS col1, COUNT( * ) * + - ( + COUNT( * ) ) DIV + ( + 33 ) * + 60 + 41
----
-71
41

skipif mysql # not compatible
query II rowsort label-837
SELECT ALL 2 - + 73 AS col1, COUNT ( * ) * + - ( + COUNT ( * ) ) / + ( + 33 ) * + 60 + 41
----
-71
41

query I rowsort
SELECT DISTINCT 61 * + ( + 19 )
----
1159

onlyif mysql # aggregate syntax: 
query I rowsort label-839
SELECT COALESCE ( + 22, - 8 ) - + ( + 20 ) + + 37 * + 21 * + - 94 * COUNT( * ) col0
----
-73036

skipif mysql # not compatible
query I rowsort label-839
SELECT COALESCE ( + 22, - 8 ) - + ( + 20 ) + + 37 * + 21 * + - 94 * COUNT ( * ) col0
----
-73036

query I rowsort
SELECT ALL + 34 * + 24
----
816

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-841
SELECT ALL 66 - + + 23 + + MAX( + + 45 ) + + + 35 * + - 42 + 25 + 19 DIV NULLIF ( + COUNT( - 77 ), - + 11 ) + 7 AS col1
----
-1331

skipif mysql # not compatible
query I rowsort label-841
SELECT ALL 66 - + + 23 + + MAX ( + + 45 ) + + + 35 * + - 42 + 25 + 19 / NULLIF ( + COUNT ( - 77 ), - + 11 ) + 7 AS col1
----
-1331

query I rowsort
SELECT DISTINCT - NULLIF ( 51, - + 31 ) AS col0
----
-51

query I rowsort
SELECT ALL - NULLIF ( + 23, - - 39 + 17 )
----
-23

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-845
SELECT + MIN( DISTINCT + + ( - 6 ) )
----
-6

skipif mysql # not compatible
query I rowsort label-845
SELECT + MIN ( DISTINCT + + ( - 6 ) )
----
-6

query I rowsort
SELECT 46 + + 80 col0
----
126

query I rowsort
SELECT 81 * 74 AS col2
----
5994

onlyif mysql # aggregate syntax: 
query I rowsort label-848
SELECT SUM( + + 13 ) * 11 + 31 + - 0 AS col1
----
174

skipif mysql # not compatible
query I rowsort label-848
SELECT SUM ( + + 13 ) * 11 + 31 + - 0 AS col1
----
174

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

query I rowsort
SELECT + 66 - + CASE + COALESCE ( 37, + 55 ) WHEN + 28 THEN NULL WHEN + 16 THEN + 63 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-851
SELECT 28 * - 19 + + + 47 * - + MAX( DISTINCT + 89 )
----
-4715

skipif mysql # not compatible
query I rowsort label-851
SELECT 28 * - 19 + + + 47 * - + MAX ( DISTINCT + 89 )
----
-4715

onlyif mysql # aggregate syntax: 
query I rowsort label-852
SELECT + COUNT( * ) * + - SUM( DISTINCT + 71 )
----
-71

skipif mysql # not compatible
query I rowsort label-852
SELECT + COUNT ( * ) * + - SUM ( DISTINCT + 71 )
----
-71

onlyif mysql # aggregate syntax: 
query II rowsort label-853
SELECT ALL + - ( + + 67 ) + + ( - MIN( - - 80 ) ) col1, + ( COUNT( * ) ) col0
----
-147
1

skipif mysql # not compatible
query II rowsort label-853
SELECT ALL + - ( + + 67 ) + + ( - MIN ( - - 80 ) ) col1, + ( COUNT ( * ) ) col0
----
-147
1

query I rowsort
SELECT DISTINCT + 66 * - + 13 AS col1
----
-858

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

skipif mysql # not compatible
query I rowsort label-855
SELECT ALL - 8 + - COUNT ( * ) col1
----
-9

query I rowsort
SELECT - + 28 col2
----
-28

query II rowsort
SELECT - 8 + 86, - 1 AS col2
----
78
-1

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

skipif mysql # not compatible
query I rowsort label-858
SELECT ALL + 17 + + COUNT ( * ) AS col2
----
18

query I rowsort
SELECT - 74 + + + 49 * 31 AS col1
----
1445

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

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

query I rowsort
SELECT - 51 + 63
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-862
SELECT ALL 62 + COUNT( * )
----
63

skipif mysql # not compatible
query I rowsort label-862
SELECT ALL 62 + COUNT ( * )
----
63

query I rowsort
SELECT ALL COALESCE ( - + 32, + - 67 )
----
-32

query I rowsort
SELECT + 44 - + 70 col1
----
-26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-865
SELECT + 11 DIV + - 27 - + SUM( - 60 )
----
60

skipif mysql # not compatible
query I rowsort label-865
SELECT + 11 / + - 27 - + SUM ( - 60 )
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-866
SELECT + AVG ( 24 ) + 31 / - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-866
SELECT + AVG ( 24 ) + 31 / - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 8 * - 65 AS col1
----
520

onlyif mysql # aggregate syntax: 
query II rowsort label-868
SELECT DISTINCT 20 * + 77 * 62 AS col1, 75 * 16 * - + NULLIF ( - 86, - COUNT( DISTINCT 5 ) )
----
95480
103200

skipif mysql # not compatible
query II rowsort label-868
SELECT DISTINCT 20 * + 77 * 62 AS col1, 75 * 16 * - + NULLIF ( - 86, - COUNT ( DISTINCT 5 ) )
----
95480
103200

query I rowsort
SELECT DISTINCT + 92 * + ( - 25 ) * ( + 81 )
----
-186300

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

onlyif mysql # aggregate syntax: 
query I rowsort label-871
SELECT + MIN( + - 62 ) AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-871
SELECT + MIN ( + - 62 ) AS col1
----
-62

query I rowsort
SELECT CASE + - 19 WHEN + 55 THEN + ( + 20 ) END
----
NULL

query I rowsort
SELECT 12 * - 86 + 47 AS col2
----
-985

query II rowsort
SELECT - 35 AS col1, 82 * + 56
----
-35
4592

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

skipif mysql # not compatible
query I rowsort label-875
SELECT + COUNT ( DISTINCT + 38 ) AS col0
----
1

query I rowsort
SELECT + + 92 + - + 19
----
73

query I rowsort
SELECT + + 34 * + 71 AS col2
----
2414

onlyif mysql # aggregate syntax: 
query I rowsort label-878
SELECT ALL + COUNT( * ) * - + 38 col1
----
-38

skipif mysql # not compatible
query I rowsort label-878
SELECT ALL + COUNT ( * ) * - + 38 col1
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-879
SELECT ALL + - COUNT( * ) * + 23 + - + CAST( 38 AS SIGNED )
----
-61

skipif mysql # not compatible
query I rowsort label-879
SELECT ALL + - COUNT ( * ) * + 23 + - + CAST ( 38 AS INTEGER )
----
-61

query I rowsort
SELECT ALL + COALESCE ( 85, - 59 ) AS col0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-881
SELECT ALL 62 * 68 + + + COUNT( ALL - 72 ) * 95
----
4311

skipif mysql # not compatible
query I rowsort label-881
SELECT ALL 62 * 68 + + + COUNT ( ALL - 72 ) * 95
----
4311

query II rowsort
SELECT + 92 AS col1, 70 * 56 AS col2
----
92
3920

query I rowsort
SELECT - 48 + + 46 AS col2
----
-2

query I rowsort
SELECT - 62 + 6
----
-56

query I rowsort
SELECT ALL + 46 + 14
----
60

query I rowsort
SELECT - 75 + + 92 * + 47 - + + 77 AS col2
----
4172

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-887
SELECT - - AVG ( DISTINCT + 9 ) * CAST( NULL AS DECIMAL ) / - + 22 * 61 + + + 11 / - + 56
----
NULL

skipif mysql # not compatible
query I rowsort label-887
SELECT - - AVG ( DISTINCT + 9 ) * CAST ( NULL AS REAL ) / - + 22 * 61 + + + 11 / - + 56
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-888
SELECT + + 91 + - - CAST( + COUNT( * ) AS SIGNED ) * 45
----
136

skipif mysql # not compatible
query I rowsort label-888
SELECT + + 91 + - - CAST ( + COUNT ( * ) AS INTEGER ) * 45
----
136

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-889
SELECT ALL + ( - 78 ) + + SUM( 58 ) DIV 61
----
-78

skipif mysql # not compatible
query I rowsort label-889
SELECT ALL + ( - 78 ) + + SUM ( 58 ) / 61
----
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-890
SELECT ALL + COALESCE ( MIN( + CAST( 52 AS SIGNED ) ), - 92 DIV COUNT( * ) + - + 84 ) * + MAX( DISTINCT - 1 ) AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-890
SELECT ALL + COALESCE ( MIN ( + CAST ( 52 AS INTEGER ) ), - 92 / COUNT ( * ) + - + 84 ) * + MAX ( DISTINCT - 1 ) AS col0
----
-52

onlyif mysql # aggregate syntax: 
query II rowsort label-891
SELECT DISTINCT + 43, COUNT( * ) + 71 + + 85 AS col1
----
43
157

skipif mysql # not compatible
query II rowsort label-891
SELECT DISTINCT + 43, COUNT ( * ) + 71 + + 85 AS col1
----
43
157

query I rowsort
SELECT ALL - 5 - - 81 AS col2
----
76

query I rowsort
SELECT ALL + 51 * - 9 AS col0
----
-459

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

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

query I rowsort
SELECT - 21 + 91 + 46
----
116

query I rowsort
SELECT ALL - 6 - + 1 + + 33 AS col1
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-897
SELECT - ( 65 ) + - COUNT( * ) + - 75 + + 82 * - 31 * 94 * 49 * - + 4
----
46833667

skipif mysql # not compatible
query I rowsort label-897
SELECT - ( 65 ) + - COUNT ( * ) + - 75 + + 82 * - 31 * 94 * 49 * - + 4
----
46833667

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-898
SELECT - COUNT( * ) DIV + COALESCE ( 85, 12, + 56 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-898
SELECT - COUNT ( * ) / + COALESCE ( 85, 12, + 56 ) AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-899
SELECT DISTINCT CAST( + - 60 AS SIGNED ) AS col1, + ( + 92 )
----
-60
92

skipif mysql # not compatible
query II rowsort label-899
SELECT DISTINCT CAST ( + - 60 AS INTEGER ) AS col1, + ( + 92 )
----
-60
92

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-900
SELECT ALL CAST( + - 47 AS SIGNED ), 17 * + 35 AS col1
----
-47
595

skipif mysql # not compatible
query II rowsort label-900
SELECT ALL CAST ( + - 47 AS INTEGER ), 17 * + 35 AS col1
----
-47
595

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-901
SELECT ALL 73 DIV COUNT( * ) col1
----
73

skipif mysql # not compatible
query I rowsort label-901
SELECT ALL 73 / COUNT ( * ) col1
----
73

query I rowsort
SELECT - 78 * - + 20 AS col0
----
1560

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

skipif mysql # not compatible
query I rowsort label-903
SELECT + SUM ( - 49 )
----
-49

query I rowsort
SELECT - CASE - - 12 WHEN 76 + 53 * - - 63 THEN + 29 + + ( + 82 ) * + ( 35 ) END * + + 98 * - + 34 + - 40 - + 97 col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-905
SELECT - 13 * + + 85 DIV - 5 col2
----
221

skipif mysql # not compatible
query I rowsort label-905
SELECT - 13 * + + 85 / - 5 col2
----
221

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-906
SELECT ALL - 16 DIV - 46 * - ( SUM( ALL + 9 ) )
----
0

skipif mysql # not compatible
query I rowsort label-906
SELECT ALL - 16 / - 46 * - ( SUM ( ALL + 9 ) )
----
0

query I rowsort
SELECT 80 * 94 - + + 84 * - 64
----
12896

onlyif mysql # DIV for integer division: 
query I rowsort label-908
SELECT - 43 DIV + + 51 col0
----
0

skipif mysql # not compatible
query I rowsort label-908
SELECT - 43 / + + 51 col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-909
SELECT + 24 * + COALESCE ( + 43, + COUNT( - - ( 20 ) ) ) + 50 + + - CASE - ( COUNT( * ) ) WHEN + - 36 + 91 THEN + 60 + 97 - CAST( NULL AS SIGNED ) END * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-909
SELECT + 24 * + COALESCE ( + 43, + COUNT ( - - ( 20 ) ) ) + 50 + + - CASE - ( COUNT ( * ) ) WHEN + - 36 + 91 THEN + 60 + 97 - CAST ( NULL AS INTEGER ) END * COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-910
SELECT CAST( - NULLIF ( COUNT( * ), + 41 ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-910
SELECT CAST ( - NULLIF ( COUNT ( * ), + 41 ) AS INTEGER )
----
-1

query I rowsort
SELECT - NULLIF ( 5, - + 46 ) * - 12 * 53
----
3180

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-912
SELECT + CAST( NULL AS DECIMAL ) + 23 - + - NULLIF ( - + 58, + 60 * + COUNT( * ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-912
SELECT + CAST ( NULL AS REAL ) + 23 - + - NULLIF ( - + 58, + 60 * + COUNT ( * ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-913
SELECT ALL - 22 / - + NULLIF ( - CAST( NULL AS SIGNED ), + - 45 + + 32 - + - 90 ) - - 26 + NULLIF ( + 42, + COALESCE ( 46, - 89 * + 54 ) ) + + 27 + + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-913
SELECT ALL - 22 / - + NULLIF ( - CAST ( NULL AS INTEGER ), + - 45 + + 32 - + - 90 ) - - 26 + NULLIF ( + 42, + COALESCE ( 46, - 89 * + 54 ) ) + + 27 + + COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-914
SELECT ALL - 86 DIV 21 + + - 87 - + COUNT( * )
----
-92

skipif mysql # not compatible
query I rowsort label-914
SELECT ALL - 86 / 21 + + - 87 - + COUNT ( * )
----
-92

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

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

query I rowsort
SELECT + 96 * + 25 AS col1
----
2400

onlyif mysql # aggregate syntax: 
query I rowsort label-917
SELECT 63 * 52 - + 46 * + - 84 * - + COUNT( * )
----
-588

skipif mysql # not compatible
query I rowsort label-917
SELECT 63 * 52 - + 46 * + - 84 * - + COUNT ( * )
----
-588

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-918
SELECT DISTINCT + - CAST( + 41 AS SIGNED ) * - 86 + - - 32
----
3558

skipif mysql # not compatible
query I rowsort label-918
SELECT DISTINCT + - CAST ( + 41 AS INTEGER ) * - 86 + - - 32
----
3558

query I rowsort
SELECT - 63 * - + 88 AS col1
----
5544

query II rowsort
SELECT - 67 + + + 84 AS col1, - 63 AS col1
----
17
-63

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-921
SELECT + NULLIF ( ( + - SUM( - 86 ) ), - CAST( + 33 AS DECIMAL ) + + + 61 + - COUNT( ALL + 45 ) * + 22 ) AS col1
----
86

skipif mysql # not compatible
query I rowsort label-921
SELECT + NULLIF ( ( + - SUM ( - 86 ) ), - CAST ( + 33 AS REAL ) + + + 61 + - COUNT ( ALL + 45 ) * + 22 ) AS col1
----
86

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-923
SELECT ALL + CASE + 44 WHEN - - 83 THEN NULL WHEN + 0 THEN + 16 WHEN + 24 THEN ( - CASE + CASE 74 WHEN - - COUNT( * ) THEN - CASE - CASE + + 45 WHEN COALESCE ( - 12, - + 51 * 72 ) + - 43 * SUM( ALL + 76 ) * - 17 THEN 27 WHEN - + ( - ( + AVG ( DISTINCT - 52 ) ) ) * + + 4 + + + 8 / 46 * - COUNT( * ) - - 81 * - 53 + CAST( - 57 AS SIGNED ) THEN - - 32 - + ( - 92 ) END WHEN - COALESCE ( 55, 25 + - 25 * COUNT( * ) ) + + ( ( 57 ) ) THEN - COALESCE ( - 15, 19, 72 * + 39 ) WHEN - 6 / COUNT( * ) + + ( - 96 ) THEN - 25 * + CAST( NULL AS SIGNED ) ELSE NULL END * + 6 + - MAX( DISTINCT + 27 + 19 * 0 ) * 7 WHEN - 37 * + 85 - + 61 THEN - AVG ( ALL 91 ) END WHEN 16 + - COUNT( * ) * - 1 THEN 97 * - 42 WHEN 19 THEN COUNT( * ) ELSE NULL END ) * 20 WHEN - 99 THEN NULL END / 69
----
NULL

skipif mysql # not compatible
query I rowsort label-923
SELECT ALL + CASE + 44 WHEN - - 83 THEN NULL WHEN + 0 THEN + 16 WHEN + 24 THEN ( - CASE + CASE 74 WHEN - - COUNT ( * ) THEN - CASE - CASE + + 45 WHEN COALESCE ( - 12, - + 51 * 72 ) + - 43 * SUM ( ALL + 76 ) * - 17 THEN 27 WHEN - + ( - ( + AVG ( DISTINCT - 52 ) ) ) * + + 4 + + + 8 / 46 * - COUNT ( * ) - - 81 * - 53 + CAST ( - 57 AS INTEGER ) THEN - - 32 - + ( - 92 ) END WHEN - COALESCE ( 55, 25 + - 25 * COUNT ( * ) ) + + ( ( 57 ) ) THEN - COALESCE ( - 15, 19, 72 * + 39 ) WHEN - 6 / COUNT ( * ) + + ( - 96 ) THEN - 25 * + CAST ( NULL AS INTEGER ) ELSE NULL END * + 6 + - MAX ( DISTINCT + 27 + 19 * 0 ) * 7 WHEN - 37 * + 85 - + 61 THEN - AVG ( ALL 91 ) END WHEN 16 + - COUNT ( * ) * - 1 THEN 97 * - 42 WHEN 19 THEN COUNT ( * ) ELSE NULL END ) * 20 WHEN - 99 THEN NULL END / 69
----
NULL

query I rowsort
SELECT DISTINCT 65 - + 52 AS col1
----
13

onlyif mysql # DIV for integer division: 
query I rowsort label-925
SELECT DISTINCT - 23 * 41 DIV + 14 - + 51
----
-118

skipif mysql # not compatible
query I rowsort label-925
SELECT DISTINCT - 23 * 41 / + 14 - + 51
----
-118

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-926
SELECT 86 * - - 74 DIV - 74 + + COALESCE ( - + 35, - 21 ) * - 73, COALESCE ( + 94, - - SUM( DISTINCT + 27 ) ) AS col1
----
2469
94

skipif mysql # not compatible
query II rowsort label-926
SELECT 86 * - - 74 / - 74 + + COALESCE ( - + 35, - 21 ) * - 73, COALESCE ( + 94, - - SUM ( DISTINCT + 27 ) ) AS col1
----
2469
94

query II rowsort
SELECT - 53 * + + 58, ( - 63 ) AS col0
----
-3074
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-928
SELECT 16 + - 72 DIV + - 30 + - 28 - + 23 * + ( 88 ) * 81
----
-163954

skipif mysql # not compatible
query I rowsort label-928
SELECT 16 + - 72 / + - 30 + - 28 - + 23 * + ( 88 ) * 81
----
-163954

query I rowsort
SELECT ( - 94 ) + + - 91 * 35 AS col2
----
-3279

query II rowsort
SELECT 13, - 90 AS col2
----
13
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-931
SELECT COUNT( * ) - - 50 AS col0
----
51

skipif mysql # not compatible
query I rowsort label-931
SELECT COUNT ( * ) - - 50 AS col0
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-932
SELECT CAST( NULL AS SIGNED ) * + 43 * + CAST( - - 0 AS SIGNED ) * 11 * - + 81 * - 74 * 32 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-932
SELECT CAST ( NULL AS INTEGER ) * + 43 * + CAST ( - - 0 AS INTEGER ) * 11 * - + 81 * - 74 * 32 AS col1
----
NULL

query I rowsort
SELECT 56 + + 21 AS col2
----
77

query I rowsort
SELECT ALL - 20 * - 76
----
1520

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-935
SELECT 81 - + CAST( NULL AS SIGNED ) + + - 56
----
NULL

skipif mysql # not compatible
query I rowsort label-935
SELECT 81 - + CAST ( NULL AS INTEGER ) + + - 56
----
NULL

query I rowsort
SELECT 55 + - + 46
----
9

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

onlyif mysql # aggregate syntax: 
query I rowsort label-938
SELECT DISTINCT - COALESCE ( - + 77, - 52 * 51 + + MIN( ALL - COALESCE ( + 2, + + 91, + - 91 ) ) ) AS col2
----
77

skipif mysql # not compatible
query I rowsort label-938
SELECT DISTINCT - COALESCE ( - + 77, - 52 * 51 + + MIN ( ALL - COALESCE ( + 2, + + 91, + - 91 ) ) ) AS col2
----
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-939
SELECT ( + + 73 ) DIV 15 + + 39 + - 32, 30 * - - 6 + - NULLIF ( + ( - 64 ), COUNT( * ) ) * 96 AS col2
----
11
6324

skipif mysql # not compatible
query II rowsort label-939
SELECT ( + + 73 ) / 15 + + 39 + - 32, 30 * - - 6 + - NULLIF ( + ( - 64 ), COUNT ( * ) ) * 96 AS col2
----
11
6324

query I rowsort
SELECT DISTINCT - 23 * + 5
----
-115

query I rowsort
SELECT 72 + - 34
----
38

query I rowsort
SELECT ALL - - 8 + + - 82 + + - 97
----
-171

query I rowsort
SELECT 60 * 48 AS col2
----
2880

onlyif mysql # aggregate syntax: 
query II rowsort label-944
SELECT 51 AS col0, + 17 + - 2 + + + 19 + COUNT( * ) * 57
----
51
91

skipif mysql # not compatible
query II rowsort label-944
SELECT 51 AS col0, + 17 + - 2 + + + 19 + COUNT ( * ) * 57
----
51
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-945
SELECT DISTINCT - ( + CAST( + CAST( - + 38 AS SIGNED ) AS SIGNED ) ) + + 99 col0
----
137

skipif mysql # not compatible
query I rowsort label-945
SELECT DISTINCT - ( + CAST ( + CAST ( - + 38 AS INTEGER ) AS INTEGER ) ) + + 99 col0
----
137

onlyif mysql # aggregate syntax: 
query I rowsort label-946
SELECT ALL - COUNT( 63 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-946
SELECT ALL - COUNT ( 63 ) AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-947
SELECT + 87 * + 14 + + 28 * 83 + + 78 * + CAST( NULL AS SIGNED ) * - - 42 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-947
SELECT + 87 * + 14 + + 28 * 83 + + 78 * + CAST ( NULL AS INTEGER ) * - - 42 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-948
SELECT + 16 * - - 35 * 13 + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-948
SELECT + 16 * - - 35 * 13 + CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-949
SELECT ALL + 29 * - + 53 + - COUNT( * ) + - 38 + + COALESCE ( + COALESCE ( - 75, ( + 58 ) * + CAST( + - 57 AS SIGNED ) + 69 * + - CAST( NULL AS SIGNED ) + + COUNT( * ), - - 58 * - - COUNT( * ) + - 90, - 60 ), + - 15 - - 8 + 76 DIV - - 57 ) AS col2
----
-1651

skipif mysql # not compatible
query I rowsort label-949
SELECT ALL + 29 * - + 53 + - COUNT ( * ) + - 38 + + COALESCE ( + COALESCE ( - 75, ( + 58 ) * + CAST ( + - 57 AS INTEGER ) + 69 * + - CAST ( NULL AS INTEGER ) + + COUNT ( * ), - - 58 * - - COUNT ( * ) + - 90, - 60 ), + - 15 - - 8 + 76 / - - 57 ) AS col2
----
-1651

query I rowsort
SELECT DISTINCT - 27 * + - 74
----
1998

query I rowsort
SELECT 21 * 69 * - + 27
----
-39123

query I rowsort
SELECT + 11 * + 0 + + 41
----
41

query I rowsort
SELECT ( + 63 ) + + 85
----
148

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

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

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

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

query I rowsort
SELECT + 60 + - 20 + - 18 col1
----
22

query II rowsort
SELECT - 79 AS col1, 11 * - 32
----
-79
-352

query II rowsort
SELECT 48 AS col1, + 53
----
48
53

onlyif mysql # aggregate syntax: 
query II rowsort label-959
SELECT DISTINCT 97 * - COUNT( * ) AS col1, + 36
----
-97
36

skipif mysql # not compatible
query II rowsort label-959
SELECT DISTINCT 97 * - COUNT ( * ) AS col1, + 36
----
-97
36

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

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

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

skipif mysql # not compatible
query II rowsort label-961
SELECT ALL 47, - COUNT ( * ) col2
----
47
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-962
SELECT MAX( ALL 97 ) * MIN( DISTINCT 13 ), 70 + - + MIN( 73 ) AS col1
----
1261
-3

skipif mysql # not compatible
query II rowsort label-962
SELECT MAX ( ALL 97 ) * MIN ( DISTINCT 13 ), 70 + - + MIN ( 73 ) AS col1
----
1261
-3

query I rowsort
SELECT ALL 44 + + 43 AS col0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-964
SELECT - SUM( ALL 65 ) col0
----
-65

skipif mysql # not compatible
query I rowsort label-964
SELECT - SUM ( ALL 65 ) col0
----
-65

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-965
SELECT 75 * - 82 DIV - ( + COUNT( * ) ), + 36 + - NULLIF ( 59, COUNT( * ) * CASE 97 WHEN 85 THEN + - CASE COUNT( - - 26 ) WHEN COUNT( * ) * + 67 * - MAX( DISTINCT + 79 ) THEN - + MIN( - 69 ) WHEN + AVG ( - + 34 ) THEN NULL END WHEN + - 46 * - CASE - + COUNT( * ) WHEN + + COUNT( * ) THEN - ( + 93 ) * + 70 * - 74 WHEN - 35 THEN NULL ELSE + 37 END * + 85 - 54 THEN + 65 ELSE NULL END + + CAST( NULL AS DECIMAL ) ) - + 30 + + 40 AS col0
----
6150
-13

skipif mysql # not compatible
query II rowsort label-965
SELECT 75 * - 82 / - ( + COUNT ( * ) ), + 36 + - NULLIF ( 59, COUNT ( * ) * CASE 97 WHEN 85 THEN + - CASE COUNT ( - - 26 ) WHEN COUNT ( * ) * + 67 * - MAX ( DISTINCT + 79 ) THEN - + MIN ( - 69 ) WHEN + AVG ( - + 34 ) THEN NULL END WHEN + - 46 * - CASE - + COUNT ( * ) WHEN + + COUNT ( * ) THEN - ( + 93 ) * + 70 * - 74 WHEN - 35 THEN NULL ELSE + 37 END * + 85 - 54 THEN + 65 ELSE NULL END + + CAST ( NULL AS REAL ) ) - + 30 + + 40 AS col0
----
6150
-13

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

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

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

query I rowsort
SELECT ALL 60 + + - 19
----
41

query I rowsort
SELECT DISTINCT - 98 + - 41 + - - 51
----
-88

query I rowsort
SELECT DISTINCT 95 + 85 * - 16
----
-1265

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-971
SELECT + COUNT( * ), 68 DIV + CASE CASE + 15 WHEN 10 + + - 42 THEN NULL WHEN - - 84 + 62 THEN - CAST( NULL AS SIGNED ) * - + 11 + - 94 * - - 76 - - 41 WHEN - 36 THEN NULL END WHEN - + 41 THEN - + MIN( 33 ) WHEN - 90 THEN NULL WHEN 48 THEN + 95 ELSE 91 END * 21 + + 55 col1
----
1
55

skipif mysql # not compatible
query II rowsort label-971
SELECT + COUNT ( * ), 68 / + CASE CASE + 15 WHEN 10 + + - 42 THEN NULL WHEN - - 84 + 62 THEN - CAST ( NULL AS INTEGER ) * - + 11 + - 94 * - - 76 - - 41 WHEN - 36 THEN NULL END WHEN - + 41 THEN - + MIN ( 33 ) WHEN - 90 THEN NULL WHEN 48 THEN + 95 ELSE 91 END * 21 + + 55 col1
----
1
55

query I rowsort
SELECT 28 - + 83
----
-55

query I rowsort
SELECT - + 55 * - 93 AS col0
----
5115

query II rowsort
SELECT DISTINCT + 77 col1, - 90
----
77
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-975
SELECT CASE - + 71 WHEN 6 THEN - - SUM( ALL 41 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-975
SELECT CASE - + 71 WHEN 6 THEN - - SUM ( ALL 41 ) END AS col2
----
NULL

query I rowsort
SELECT - ( - - ( 16 ) ) + + - 56 + - + 23 AS col2
----
-95

query I rowsort
SELECT ALL + 56 * - 80 - + ( - 77 ) + 48 * 8
----
-4019

query I rowsort
SELECT - 72 * + 35
----
-2520

onlyif mysql # aggregate syntax: 
query II rowsort label-979
SELECT ALL + + 25, + SUM( DISTINCT + + ( + - 63 ) ) AS col2
----
25
-63

skipif mysql # not compatible
query II rowsort label-979
SELECT ALL + + 25, + SUM ( DISTINCT + + ( + - 63 ) ) AS col2
----
25
-63

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

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

query II rowsort
SELECT DISTINCT + 18 col1, CASE NULLIF ( 48, + 63 ) WHEN 83 THEN NULL ELSE - - 76 END
----
18
76

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

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

query I rowsort
SELECT ALL + - 55 * + 65 + + 29
----
-3546

query I rowsort
SELECT + + 59 * + 70 + - 91 AS col1
----
4039

onlyif mysql # aggregate syntax: 
query I rowsort label-985
SELECT - - 79 / + 33 + + CASE 86 WHEN - 27 + 41 THEN NULL WHEN COUNT( DISTINCT NULLIF ( 33, - 71 ) ) THEN NULL WHEN 44 THEN - - 59 * - - COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-985
SELECT - - 79 / + 33 + + CASE 86 WHEN - 27 + 41 THEN NULL WHEN COUNT ( DISTINCT NULLIF ( 33, - 71 ) ) THEN NULL WHEN 44 THEN - - 59 * - - COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-986
SELECT - 75 * + + NULLIF ( - - COUNT( - 66 ), + - 55 * + 71 - + + 99 * - + 82 * - 73 * + 98 + - 18 * 20 / + - 78 + - NULLIF ( - 75, + - ( 52 ) + + - 60 ) + - + 12 ) + COUNT( * )
----
-74

skipif mysql # not compatible
query I rowsort label-986
SELECT - 75 * + + NULLIF ( - - COUNT ( - 66 ), + - 55 * + 71 - + + 99 * - + 82 * - 73 * + 98 + - 18 * 20 / + - 78 + - NULLIF ( - 75, + - ( 52 ) + + - 60 ) + - + 12 ) + COUNT ( * )
----
-74

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-988
SELECT - + COUNT( * ) - - - 17 - - + 62 * + 81 col1, 45
----
5004
45

skipif mysql # not compatible
query II rowsort label-988
SELECT - + COUNT ( * ) - - - 17 - - + 62 * + 81 col1, 45
----
5004
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-989
SELECT - 88 * + + 96 DIV + 95 * + COUNT( * ) + - 46 + - ( - + 7 ) AS col0
----
-127

skipif mysql # not compatible
query I rowsort label-989
SELECT - 88 * + + 96 / + 95 * + COUNT ( * ) + - 46 + - ( - + 7 ) AS col0
----
-127

query I rowsort
SELECT ALL - 82 * + NULLIF ( + 10, - 68 + + AVG ( DISTINCT - 20 ) / + 61 )
----
-820

query I rowsort
SELECT ALL + 92 * 13 AS col1
----
1196

query I rowsort
SELECT - 44 + + 91
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-993
SELECT + ( + COUNT( * ) ) - 35 + - 21 + 7 + + COUNT( * ) * - COALESCE ( 49, COUNT( * ) + + 49 + - - 4 + - 85 + - - ( - ( + + 50 ) ), 86 ) + - 70 + + 79 DIV - 15 AS col2
----
-172

skipif mysql # not compatible
query I rowsort label-993
SELECT + ( + COUNT ( * ) ) - 35 + - 21 + 7 + + COUNT ( * ) * - COALESCE ( 49, COUNT ( * ) + + 49 + - - 4 + - 85 + - - ( - ( + + 50 ) ), 86 ) + - 70 + + 79 / - 15 AS col2
----
-172

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

query I rowsort
SELECT - COALESCE ( + 57, + 24 * 81 ) AS col0
----
-57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-996
SELECT + 84 * - 5 DIV COUNT( DISTINCT + 93 )
----
-420

skipif mysql # not compatible
query I rowsort label-996
SELECT + 84 * - 5 / COUNT ( DISTINCT + 93 )
----
-420

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

onlyif mysql # aggregate syntax: 
query I rowsort label-998
SELECT ALL COUNT( * ) * + + 18 * - 43
----
-774

skipif mysql # not compatible
query I rowsort label-998
SELECT ALL COUNT ( * ) * + + 18 * - 43
----
-774

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-999
SELECT + ( + - ( COUNT( * ) ) ) + - 24 + + - 15 + - 67 + + 55 + + 20 DIV + 29 + - 42 AS col1, 36
----
-94
36

skipif mysql # not compatible
query II rowsort label-999
SELECT + ( + - ( COUNT ( * ) ) ) + - 24 + + - 15 + - 67 + + 55 + + 20 / + 29 + - 42 AS col1, 36
----
-94
36

onlyif mysql # aggregate syntax: 
query I rowsort label-1000
SELECT + 24 + + COUNT( * ) * + 18 * + COUNT( * )
----
42

skipif mysql # not compatible
query I rowsort label-1000
SELECT + 24 + + COUNT ( * ) * + 18 * + COUNT ( * )
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-1001
SELECT + COUNT( * ) + + MIN( ALL + + 91 )
----
92

skipif mysql # not compatible
query I rowsort label-1001
SELECT + COUNT ( * ) + + MIN ( ALL + + 91 )
----
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1002
SELECT ALL + - 48 DIV COALESCE ( SUM( ALL + - 27 ), + - 13, CASE 32 WHEN + COUNT( * ) THEN NULL WHEN COUNT( * ) THEN NULL WHEN + 47 THEN - 81 - - + 54 * + - AVG ( ALL + + 84 ) ELSE NULL END ) - - COUNT( * ) - MIN( ALL - + 83 ) + - 95
----
-10

skipif mysql # not compatible
query I rowsort label-1002
SELECT ALL + - 48 / COALESCE ( SUM ( ALL + - 27 ), + - 13, CASE 32 WHEN + COUNT ( * ) THEN NULL WHEN COUNT ( * ) THEN NULL WHEN + 47 THEN - 81 - - + 54 * + - AVG ( ALL + + 84 ) ELSE NULL END ) - - COUNT ( * ) - MIN ( ALL - + 83 ) + - 95
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1003
SELECT DISTINCT + - NULLIF ( - CAST( - + 1 AS SIGNED ), - 40 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1003
SELECT DISTINCT + - NULLIF ( - CAST ( - + 1 AS INTEGER ), - 40 ) AS col2
----
-1

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

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

query II rowsort
SELECT ALL CASE - - 3 WHEN - 11 THEN + - 86 END * - 77, - 86 col0
----
NULL
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-1007
SELECT - COUNT( * ) * 75 + NULLIF ( + MIN( DISTINCT - 9 ), ( + 66 ) * + - 0 * - 26 ) + + - ( - + 35 ) AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-1007
SELECT - COUNT ( * ) * 75 + NULLIF ( + MIN ( DISTINCT - 9 ), ( + 66 ) * + - 0 * - 26 ) + + - ( - + 35 ) AS col1
----
-49

query II rowsort
SELECT ( - 84 ) AS col2, + 6 AS col0
----
-84
6

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1010
SELECT + 69 DIV 74 * + ( - 83 ) + + 20 AS col1, 51
----
20
51

skipif mysql # not compatible
query II rowsort label-1010
SELECT + 69 / 74 * + ( - 83 ) + + 20 AS col1, 51
----
20
51

onlyif mysql # aggregate syntax: 
query I rowsort label-1011
SELECT + 72 * + COUNT( ALL - + 26 ) * + 23 + - + 63 - 14
----
1579

skipif mysql # not compatible
query I rowsort label-1011
SELECT + 72 * + COUNT ( ALL - + 26 ) * + 23 + - + 63 - 14
----
1579

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-1012
SELECT DISTINCT - + 12 * 7 * + + CAST( NULL AS SIGNED ) + 68 + + - 77, 97 DIV - ( - ( - 98 ) ) * + - COUNT( * ) AS col1, - - CASE + COUNT( * ) WHEN MAX( 60 ) DIV - - 62 + 50 - 88 THEN + 2 END
----
NULL
0
NULL

skipif mysql # not compatible
query III rowsort label-1012
SELECT DISTINCT - + 12 * 7 * + + CAST ( NULL AS INTEGER ) + 68 + + - 77, 97 / - ( - ( - 98 ) ) * + - COUNT ( * ) AS col1, - - CASE + COUNT ( * ) WHEN MAX ( 60 ) / - - 62 + 50 - 88 THEN + 2 END
----
NULL
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1013
SELECT ALL + 19 * + + 28 * - 16 + - ( 85 ) - + 7 * - 35 * NULLIF ( - 64, ( - + COUNT( * ) ) ) * - 70 + - - 93 * - + 71 AS col0
----
1082400

skipif mysql # not compatible
query I rowsort label-1013
SELECT ALL + 19 * + + 28 * - 16 + - ( 85 ) - + 7 * - 35 * NULLIF ( - 64, ( - + COUNT ( * ) ) ) * - 70 + - - 93 * - + 71 AS col0
----
1082400

query II rowsort
SELECT ALL + 95, 73 - ( + 74 ) AS col2
----
95
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1015
SELECT NULLIF ( - + COUNT( * ), - 34 * + CAST( - - 5 AS SIGNED ) - - MAX( DISTINCT + 10 ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1015
SELECT NULLIF ( - + COUNT ( * ), - 34 * + CAST ( - - 5 AS INTEGER ) - - MAX ( DISTINCT + 10 ) ) AS col0
----
-1

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1017
SELECT COALESCE ( + 40, - 98 DIV - - 68 * 48 + - 64 * + + COUNT( * ) + + - 22 + + + 7 + + 49 )
----
40

skipif mysql # not compatible
query I rowsort label-1017
SELECT COALESCE ( + 40, - 98 / - - 68 * 48 + - 64 * + + COUNT ( * ) + + - 22 + + + 7 + + 49 )
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-1018
SELECT ALL 15 * - COUNT( * ) + + ( - + 75 )
----
-90

skipif mysql # not compatible
query I rowsort label-1018
SELECT ALL 15 * - COUNT ( * ) + + ( - + 75 )
----
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-1019
SELECT - COUNT( * ) col0, 41 * + + 14
----
-1
574

skipif mysql # not compatible
query II rowsort label-1019
SELECT - COUNT ( * ) col0, 41 * + + 14
----
-1
574

query I rowsort
SELECT - 2 * - + 8 AS col2
----
16

query I rowsort
SELECT - COALESCE ( - - 11, + 31 ) + 81 AS col2
----
70

query I rowsort
SELECT - 96 * 8
----
-768

query I rowsort
SELECT ALL CASE + - 89 WHEN + 84 THEN - 16 END
----
NULL

query I rowsort
SELECT DISTINCT 27 * + 11 + + ( + 81 )
----
378

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1025
SELECT ALL + 17 + + 12 + CAST( CASE + 40 WHEN + + AVG ( 27 ) * - + 26 THEN + 78 ELSE NULL END AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1025
SELECT ALL + 17 + + 12 + CAST ( CASE + 40 WHEN + + AVG ( 27 ) * - + 26 THEN + 78 ELSE NULL END AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 71 + + 74
----
145

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1028
SELECT 71 * + ( + 94 ), COUNT( * ) * 44 AS col1
----
6674
44

skipif mysql # not compatible
query II rowsort label-1028
SELECT 71 * + ( + 94 ), COUNT ( * ) * 44 AS col1
----
6674
44

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1030
SELECT ALL 71, + COUNT( * ) * 50 AS col0
----
71
50

skipif mysql # not compatible
query II rowsort label-1030
SELECT ALL 71, + COUNT ( * ) * 50 AS col0
----
71
50

query II rowsort
SELECT DISTINCT 44, 92 AS col1
----
44
92

query I rowsort
SELECT + 97 * + 33
----
3201

onlyif mysql # aggregate syntax: 
query II rowsort label-1033
SELECT ALL COUNT( + + NULLIF ( + + 65, + 95 ) ) AS col0, 92 AS col2
----
1
92

skipif mysql # not compatible
query II rowsort label-1033
SELECT ALL COUNT ( + + NULLIF ( + + 65, + 95 ) ) AS col0, 92 AS col2
----
1
92

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1034
SELECT ALL + CAST( NULL AS SIGNED ) AS col1, 60 * + 92
----
NULL
5520

skipif mysql # not compatible
query II rowsort label-1034
SELECT ALL + CAST ( NULL AS INTEGER ) AS col1, 60 * + 92
----
NULL
5520

query I rowsort
SELECT - 63 * + - 62
----
3906

query I rowsort
SELECT DISTINCT 2 * + - ( - + 28 ) AS col1
----
56

query I rowsort
SELECT - ( + 80 ) + 70 - 19 + 69 * - + 48 * - 94 * + - 56 AS col1
----
-17434397

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1038
SELECT ALL 60 * 52 + + CAST( NULL AS SIGNED ) * 1
----
NULL

skipif mysql # not compatible
query I rowsort label-1038
SELECT ALL 60 * 52 + + CAST ( NULL AS INTEGER ) * 1
----
NULL

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

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

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

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

query II rowsort
SELECT DISTINCT - 24 AS col1, 89 AS col1
----
-24
89

query II rowsort
SELECT ALL - + 87 AS col0, + 30 AS col1
----
-87
30

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

skipif mysql # not compatible
query I rowsort label-1043
SELECT + 57 / - - 42
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1044
SELECT COUNT( * ) / CASE 46 WHEN 23 THEN 22 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1044
SELECT COUNT ( * ) / CASE 46 WHEN 23 THEN 22 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL + - 42 + 15
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1046
SELECT DISTINCT 49 + - 98 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1046
SELECT DISTINCT 49 + - 98 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT 40 + 84
----
124

onlyif mysql # aggregate syntax: 
query II rowsort label-1048
SELECT DISTINCT 79 + + + COUNT( * ) - + ( 56 ) AS col0, 83
----
24
83

skipif mysql # not compatible
query II rowsort label-1048
SELECT DISTINCT 79 + + + COUNT ( * ) - + ( 56 ) AS col0, 83
----
24
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1049
SELECT ALL 14 + COUNT( * ) DIV - - ( + + 32 ) * - - NULLIF ( - + 52, + 22 ) AS col1
----
14

skipif mysql # not compatible
query I rowsort label-1049
SELECT ALL 14 + COUNT ( * ) / - - ( + + 32 ) * - - NULLIF ( - + 52, + 22 ) AS col1
----
14

query I rowsort
SELECT ALL 78 - + + ( 26 ) + - + ( - + 82 )
----
134

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1051
SELECT ALL + MIN( - 43 ) - 72 * 15 + + AVG ( ALL + 23 ) + - 52 * + CAST( NULL AS DECIMAL ) + + + 51 * + 98
----
NULL

skipif mysql # not compatible
query I rowsort label-1051
SELECT ALL + MIN ( - 43 ) - 72 * 15 + + AVG ( ALL + 23 ) + - 52 * + CAST ( NULL AS REAL ) + + + 51 * + 98
----
NULL

query I rowsort
SELECT 71 + 43 AS col0
----
114

query I rowsort
SELECT ( + 78 ) + 3
----
81

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1054
SELECT ALL - 22 * - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1054
SELECT ALL - 22 * - CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1055
SELECT 96 DIV 43 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-1055
SELECT 96 / 43 AS col2
----
2

onlyif mysql # DIV for integer division: 
query II rowsort label-1056
SELECT DISTINCT 90 DIV + 19, - 79 AS col2
----
4
-79

skipif mysql # not compatible
query II rowsort label-1056
SELECT DISTINCT 90 / + 19, - 79 AS col2
----
4
-79

query II rowsort
SELECT - 38 + 46 + ( - 86 ) AS col0, - 67
----
-78
-67

query I rowsort
SELECT + 61 * 34 * 9
----
18666

onlyif mysql # aggregate syntax: 
query I rowsort label-1059
SELECT ALL + - MIN( ALL + 73 ) + - - 8 AS col1
----
-65

skipif mysql # not compatible
query I rowsort label-1059
SELECT ALL + - MIN ( ALL + 73 ) + - - 8 AS col1
----
-65

query I rowsort
SELECT + 27 * + 49 AS col0
----
1323

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

query I rowsort
SELECT DISTINCT - COALESCE ( - 0, + 41 ) col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1063
SELECT DISTINCT - 85 * + CASE 92 WHEN COUNT( * ) THEN NULL WHEN - COUNT( + - 81 ) * - + 62 THEN + 4 * + + 18 + - - 75 + + - 68 ELSE NULL END + 82 * - 90 * - - 24 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1063
SELECT DISTINCT - 85 * + CASE 92 WHEN COUNT ( * ) THEN NULL WHEN - COUNT ( + - 81 ) * - + 62 THEN + 4 * + + 18 + - - 75 + + - 68 ELSE NULL END + 82 * - 90 * - - 24 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1064
SELECT ALL + ( + COUNT( * ) ) * NULLIF ( NULLIF ( + 5, - 60 ), ( - CAST( + 1 AS SIGNED ) ) + + 45 + + CAST( NULL AS SIGNED ) - - 53 / 26 * + ( + - 32 ) * + 15 ) + CAST( + - 24 AS SIGNED ) + - 36 + + - CASE + COALESCE ( + COUNT( * ), ( - 57 ) + + + 79 ) WHEN - COUNT( * ) * 43 THEN - COALESCE ( - 89, + MIN( ALL - - 21 ) + - - 21 / + - COUNT( * ) ) END * + ( - 31 ) + - 94 + 79
----
NULL

skipif mysql # not compatible
query I rowsort label-1064
SELECT ALL + ( + COUNT ( * ) ) * NULLIF ( NULLIF ( + 5, - 60 ), ( - CAST ( + 1 AS INTEGER ) ) + + 45 + + CAST ( NULL AS INTEGER ) - - 53 / 26 * + ( + - 32 ) * + 15 ) + CAST ( + - 24 AS INTEGER ) + - 36 + + - CASE + COALESCE ( + COUNT ( * ), ( - 57 ) + + + 79 ) WHEN - COUNT ( * ) * 43 THEN - COALESCE ( - 89, + MIN ( ALL - - 21 ) + - - 21 / + - COUNT ( * ) ) END * + ( - 31 ) + - 94 + 79
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1065
SELECT ALL COUNT ( * ) * - - 40 / + - 82 + 99 AS col2
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-1066
SELECT DISTINCT - 67 DIV + 17
----
-3

skipif mysql # not compatible
query I rowsort label-1066
SELECT DISTINCT - 67 / + 17
----
-3

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

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

query I rowsort
SELECT - 82 * - 46 * - - 14 + - 30 * + + COALESCE ( - - ( + 16 ), 75 - + + 17 ) AS col0
----
52328

query I rowsort
SELECT ( - 17 ) + - 78
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-1070
SELECT DISTINCT - 71 + + ( + MAX( DISTINCT - ( - 37 ) ) ) * + 35 * + 1 AS col1
----
1224

skipif mysql # not compatible
query I rowsort label-1070
SELECT DISTINCT - 71 + + ( + MAX ( DISTINCT - ( - 37 ) ) ) * + 35 * + 1 AS col1
----
1224

onlyif mysql # DIV for integer division: 
query I rowsort label-1071
SELECT ALL 67 DIV 65
----
1

skipif mysql # not compatible
query I rowsort label-1071
SELECT ALL 67 / 65
----
1

query II rowsort
SELECT DISTINCT - 23 AS col2, - 85 * - 33
----
-23
2805

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

query II rowsort
SELECT DISTINCT + 39 AS col1, 95 - - 51 + - + COALESCE ( + 0, - 7 + - 52 ) col1
----
39
146

query I rowsort
SELECT + 96 * - 22 AS col1
----
-2112

query I rowsort
SELECT + 2 * + CASE - + 55 WHEN 24 THEN + 42 * + 82 END AS col1
----
NULL

query I rowsort
SELECT ALL 25 - - 27 col2
----
52

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

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

query II rowsort
SELECT - 95 + - + 40 + + 52, 21 * + 59 * + 47 * + 71 AS col2
----
-83
4134543

query I rowsort
SELECT + 66 * + 32
----
2112

query I rowsort
SELECT ALL 71 * - 0 AS col2
----
0

query I rowsort
SELECT ALL 89 * - 2 AS col1
----
-178

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

skipif mysql # not compatible
query I rowsort label-1083
SELECT ALL COUNT ( DISTINCT + 29 ) AS col1
----
1

query I rowsort
SELECT ALL 97 * + 87 AS col0
----
8439

query I rowsort
SELECT + 36 * - 20 * - - 93 * + 64 * 2 * - 21 AS col0
----
179988480

onlyif mysql # aggregate syntax: 
query I rowsort label-1086
SELECT ALL + 81 + - CASE + ( - COUNT( * ) ) WHEN + 82 * - 4 / - 21 + + 27 THEN - 32 WHEN + + 14 * - + COUNT( ALL + 40 ) * - 80 THEN SUM( ALL - 46 ) * ( + 38 ) + 11 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1086
SELECT ALL + 81 + - CASE + ( - COUNT ( * ) ) WHEN + 82 * - 4 / - 21 + + 27 THEN - 32 WHEN + + 14 * - + COUNT ( ALL + 40 ) * - 80 THEN SUM ( ALL - 46 ) * ( + 38 ) + 11 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT - + ( - 93 ) * 21
----
1953

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1088
SELECT ALL - - COUNT( * ) DIV - 36 * - - 94 * + 68
----
0

skipif mysql # not compatible
query I rowsort label-1088
SELECT ALL - - COUNT ( * ) / - 36 * - - 94 * + 68
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1089
SELECT + + 51 DIV - - 94 - 49 AS col1, - COUNT( * ) * 20 * - NULLIF ( - + MAX( + 28 ), 57 ) - - 75 DIV - + 38
----
-49
-561

skipif mysql # not compatible
query II rowsort label-1089
SELECT + + 51 / - - 94 - 49 AS col1, - COUNT ( * ) * 20 * - NULLIF ( - + MAX ( + 28 ), 57 ) - - 75 / - + 38
----
-49
-561

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1091
SELECT ALL 8 DIV - 61 + + 2 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-1091
SELECT ALL 8 / - 61 + + 2 AS col0
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1092
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - CASE 78 WHEN - + 95 THEN - NULLIF ( 37, + + CAST( NULL AS SIGNED ) * + - ( - - 16 ) + - 70 ) WHEN + + 97 THEN + 0 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1092
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - CASE 78 WHEN - + 95 THEN - NULLIF ( 37, + + CAST ( NULL AS INTEGER ) * + - ( - - 16 ) + - 70 ) WHEN + + 97 THEN + 0 ELSE NULL END
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1094
SELECT ALL 74 * + - ( - + 71 ) + 89 DIV - - 9 + - - 5 * - - COUNT( * )
----
5268

skipif mysql # not compatible
query I rowsort label-1094
SELECT ALL 74 * + - ( - + 71 ) + 89 / - - 9 + - - 5 * - - COUNT ( * )
----
5268

query I rowsort
SELECT + + 99 + 94
----
193

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1097
SELECT - - 19 - ( - ( + 69 ) ) * + 6, - COALESCE ( - 67, + - COUNT( * ) + - + 95 ) AS col1
----
433
67

skipif mysql # not compatible
query II rowsort label-1097
SELECT - - 19 - ( - ( + 69 ) ) * + 6, - COALESCE ( - 67, + - COUNT ( * ) + - + 95 ) AS col1
----
433
67

query II rowsort
SELECT + 77 AS col0, + 66 AS col0
----
77
66

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

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

query I rowsort
SELECT - 80 * 9 AS col0
----
-720

query I rowsort
SELECT DISTINCT 72 * 84 - 2
----
6046

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1102
SELECT ALL + COALESCE ( + - 63, + + COUNT( * ), CASE CAST( + 39 AS SIGNED ) WHEN + ( - 9 ) THEN 10 + - + 74 + + - 69 * - 90 * + + 74 WHEN + + 56 THEN - - COUNT( * ) END * - 4 DIV - COUNT( * ) * + + COUNT( + 3 ) * - 21 + + CAST( NULL AS SIGNED ) * 19 + + 56, - 26 * + 21 + - 85 ) AS col0
----
-63

skipif mysql # not compatible
query I rowsort label-1102
SELECT ALL + COALESCE ( + - 63, + + COUNT ( * ), CASE CAST ( + 39 AS INTEGER ) WHEN + ( - 9 ) THEN 10 + - + 74 + + - 69 * - 90 * + + 74 WHEN + + 56 THEN - - COUNT ( * ) END * - 4 / - COUNT ( * ) * + + COUNT ( + 3 ) * - 21 + + CAST ( NULL AS INTEGER ) * 19 + + 56, - 26 * + 21 + - 85 ) AS col0
----
-63

query I rowsort
SELECT DISTINCT - 39 * + 5
----
-195

onlyif mysql # DIV for integer division: 
query I rowsort label-1104
SELECT 3 * 21 DIV - - 51 + + 77
----
78

skipif mysql # not compatible
query I rowsort label-1104
SELECT 3 * 21 / - - 51 + + 77
----
78

onlyif mysql # aggregate syntax: 
query II rowsort label-1105
SELECT ALL + COUNT( * ), - 32 + + 90 AS col2
----
1
58

skipif mysql # not compatible
query II rowsort label-1105
SELECT ALL + COUNT ( * ), - 32 + + 90 AS col2
----
1
58

query I rowsort
SELECT DISTINCT + ( + COALESCE ( - - 68, 86, - - 27 * + 77 + + 81 ) )
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1107
SELECT ALL + CAST( NULL AS SIGNED ) AS col2, 88 * SUM( ALL - + 75 )
----
NULL
-6600

skipif mysql # not compatible
query II rowsort label-1107
SELECT ALL + CAST ( NULL AS INTEGER ) AS col2, 88 * SUM ( ALL - + 75 )
----
NULL
-6600

onlyif mysql # aggregate syntax: 
query II rowsort label-1108
SELECT + 2 * + - CASE - - MIN( ALL 43 ) WHEN + COALESCE ( COUNT( ALL - 72 ), 60 * 92, - 1 ) * 41 THEN + 7 ELSE - - 25 + - COUNT( * ) END AS col1, COUNT( - 59 ) AS col2
----
-48
1

skipif mysql # not compatible
query II rowsort label-1108
SELECT + 2 * + - CASE - - MIN ( ALL 43 ) WHEN + COALESCE ( COUNT ( ALL - 72 ), 60 * 92, - 1 ) * 41 THEN + 7 ELSE - - 25 + - COUNT ( * ) END AS col1, COUNT ( - 59 ) AS col2
----
-48
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1109
SELECT CASE + SUM( 16 ) WHEN - 57 THEN 61 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1109
SELECT CASE + SUM ( 16 ) WHEN - 57 THEN 61 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1110
SELECT - NULLIF ( 12, COALESCE ( + 39, - - 55 ) * + MAX( ALL + + 94 ) + + + COALESCE ( - CASE - 88 WHEN AVG ( ALL + 10 ) THEN 79 - + 72 WHEN - 32 THEN NULL END, - COUNT( * ) / - 35 + + NULLIF ( - 3, 41 ) * + 70 ) * 94 ) col2
----
-12

skipif mysql # not compatible
query I rowsort label-1110
SELECT - NULLIF ( 12, COALESCE ( + 39, - - 55 ) * + MAX ( ALL + + 94 ) + + + COALESCE ( - CASE - 88 WHEN AVG ( ALL + 10 ) THEN 79 - + 72 WHEN - 32 THEN NULL END, - COUNT ( * ) / - 35 + + NULLIF ( - 3, 41 ) * + 70 ) * 94 ) col2
----
-12

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1112
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1, 43 - - 59 AS col1
----
NULL
102

skipif mysql # not compatible
query II rowsort label-1112
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1, 43 - - 59 AS col1
----
NULL
102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1113
SELECT ALL - + COALESCE ( - 62, + 60, 64 * - + CAST( - + 39 AS SIGNED ) * + 67 + 62, - ( 61 ) * - 15 DIV - - 4 * - - 80 * 14 + 69 + + ( - 11 ) + 49 * - 27 + + 37 * - - 32 ) * - 61 + COUNT( * ) + 73 col0
----
-3708

skipif mysql # not compatible
query I rowsort label-1113
SELECT ALL - + COALESCE ( - 62, + 60, 64 * - + CAST ( - + 39 AS INTEGER ) * + 67 + 62, - ( 61 ) * - 15 / - - 4 * - - 80 * 14 + 69 + + ( - 11 ) + 49 * - 27 + + 37 * - - 32 ) * - 61 + COUNT ( * ) + 73 col0
----
-3708

query I rowsort
SELECT + - 16 * + 10
----
-160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1115
SELECT + 94 * - - 74 / + CASE 44 WHEN CASE 17 WHEN 84 THEN + - ( + 86 ) WHEN + 43 / 29 * - - 81 THEN - 60 + COUNT( + + 39 ) ELSE NULL END THEN + - 25 * 16 * - + CAST( - 1 AS SIGNED ) - + 52 + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) + - 19 * - + COUNT( * ) + - 79 * + - 0 / - SUM( DISTINCT - - 16 ) - - 87 ELSE NULL END + 87 + + 16 col0, 85
----
NULL
85

skipif mysql # not compatible
query II rowsort label-1115
SELECT + 94 * - - 74 / + CASE 44 WHEN CASE 17 WHEN 84 THEN + - ( + 86 ) WHEN + 43 / 29 * - - 81 THEN - 60 + COUNT ( + + 39 ) ELSE NULL END THEN + - 25 * 16 * - + CAST ( - 1 AS INTEGER ) - + 52 + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) + - 19 * - + COUNT ( * ) + - 79 * + - 0 / - SUM ( DISTINCT - - 16 ) - - 87 ELSE NULL END + 87 + + 16 col0, 85
----
NULL
85

query II rowsort
SELECT DISTINCT 85 AS col2, CASE - + 48 WHEN + - 42 + + 27 THEN NULL ELSE - 50 + + - 2 END
----
85
-52

query I rowsort
SELECT + 87 + - + NULLIF ( ( 39 ), - 37 - 34 )
----
48

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-1119
SELECT ALL 36 AS col2, + 27 + + - 8 DIV + + 5, + COUNT( * ) + 55 AS col1
----
36
26
56

skipif mysql # not compatible
query III rowsort label-1119
SELECT ALL 36 AS col2, + 27 + + - 8 / + + 5, + COUNT ( * ) + 55 AS col1
----
36
26
56

onlyif mysql # aggregate syntax: 
query I rowsort label-1120
SELECT + COUNT( * ) + - 73 AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-1120
SELECT + COUNT ( * ) + - 73 AS col0
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1121
SELECT + 70 * - + MIN( + CAST( + 21 AS SIGNED ) )
----
-1470

skipif mysql # not compatible
query I rowsort label-1121
SELECT + 70 * - + MIN ( + CAST ( + 21 AS INTEGER ) )
----
-1470

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1122
SELECT CASE WHEN + MAX( + CAST( NULL AS SIGNED ) ) <> 76 THEN 25 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1122
SELECT CASE WHEN + MAX ( + CAST ( NULL AS INTEGER ) ) <> 76 THEN 25 END col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1123
SELECT - - 4, COUNT( * ) + + - COUNT( - 19 ) * + 91 + 36 DIV + 37 - + SUM( 71 ) + + + 28 DIV + 25 AS col1
----
4
-160

skipif mysql # not compatible
query II rowsort label-1123
SELECT - - 4, COUNT ( * ) + + - COUNT ( - 19 ) * + 91 + 36 / + 37 - + SUM ( 71 ) + + + 28 / + 25 AS col1
----
4
-160

onlyif mysql # aggregate syntax: 
query I rowsort label-1124
SELECT ALL SUM( - 79 ) + + + 27 * ( 59 ) * + 54 + + + 10 + - ( + 66 ) + - 5
----
85882

skipif mysql # not compatible
query I rowsort label-1124
SELECT ALL SUM ( - 79 ) + + + 27 * ( 59 ) * + 54 + + + 10 + - ( + 66 ) + - 5
----
85882

query I rowsort
SELECT + - 64 + + 40 + - + ( + 43 ) AS col1
----
-67

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

skipif mysql # not compatible
query I rowsort label-1126
SELECT ALL + COUNT ( DISTINCT + - 0 ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1127
SELECT ALL CAST( 15 AS SIGNED ) * - 44
----
-660

skipif mysql # not compatible
query I rowsort label-1127
SELECT ALL CAST ( 15 AS INTEGER ) * - 44
----
-660

query II rowsort
SELECT - - 12, - 80 + + 98 AS col1
----
12
18

onlyif mysql # aggregate syntax: 
query I rowsort label-1129
SELECT DISTINCT 15 * + COUNT( * ) * + 29 AS col1
----
435

skipif mysql # not compatible
query I rowsort label-1129
SELECT DISTINCT 15 * + COUNT ( * ) * + 29 AS col1
----
435

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1130
SELECT ALL + 9 + - - 52 + + 96 + - NULLIF ( + 31, + + CAST( NULL AS SIGNED ) / - 99 ) * 78 AS col2
----
-2261

skipif mysql # not compatible
query I rowsort label-1130
SELECT ALL + 9 + - - 52 + + 96 + - NULLIF ( + 31, + + CAST ( NULL AS INTEGER ) / - 99 ) * 78 AS col2
----
-2261

onlyif mysql # aggregate syntax: 
query I rowsort label-1131
SELECT + + NULLIF ( - MIN( DISTINCT - 9 ), - 90 ) + 16
----
25

skipif mysql # not compatible
query I rowsort label-1131
SELECT + + NULLIF ( - MIN ( DISTINCT - 9 ), - 90 ) + 16
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-1132
SELECT + 3 * - COUNT( 76 ) AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-1132
SELECT + 3 * - COUNT ( 76 ) AS col0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1133
SELECT - 73 * - 14 * COUNT( * ) AS col2
----
1022

skipif mysql # not compatible
query I rowsort label-1133
SELECT - 73 * - 14 * COUNT ( * ) AS col2
----
1022

query II rowsort
SELECT - 54 AS col0, + 91 AS col1
----
-54
91

onlyif mysql # aggregate syntax: 
query I rowsort label-1135
SELECT - MIN( + ( - + 64 ) ) + + 92 AS col1
----
156

skipif mysql # not compatible
query I rowsort label-1135
SELECT - MIN ( + ( - + 64 ) ) + + 92 AS col1
----
156

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1137
SELECT DISTINCT - 84 DIV - 21 + NULLIF ( - 64, - - ( + 70 ) ) * + 12
----
-764

skipif mysql # not compatible
query I rowsort label-1137
SELECT DISTINCT - 84 / - 21 + NULLIF ( - 64, - - ( + 70 ) ) * + 12
----
-764

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1139
SELECT - COUNT( * ) + + + 34 - + 10 * + 94
----
-907

skipif mysql # not compatible
query I rowsort label-1139
SELECT - COUNT ( * ) + + + 34 - + 10 * + 94
----
-907

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1142
SELECT - CAST( - CAST( - COUNT( * ) AS SIGNED ) AS SIGNED ) * 95 + - 35
----
-130

skipif mysql # not compatible
query I rowsort label-1142
SELECT - CAST ( - CAST ( - COUNT ( * ) AS INTEGER ) AS INTEGER ) * 95 + - 35
----
-130

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

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

query I rowsort
SELECT ALL 14 * + + 40 AS col1
----
560

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1146
SELECT + ( - + 50 ) DIV + - 37 - 40 AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-1146
SELECT + ( - + 50 ) / + - 37 - 40 AS col2
----
-39

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

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

query I rowsort
SELECT DISTINCT 13 * + 56 col0
----
728

query I rowsort
SELECT 6 + - + 38
----
-32

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

query I rowsort
SELECT DISTINCT - 82 + + - 34 col2
----
-116

query I rowsort
SELECT DISTINCT + ( - + 98 ) * + 34 col2
----
-3332

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1153
SELECT DISTINCT + NULLIF ( CAST( + 68 AS SIGNED ), - + 10 + COUNT( * ) + - 25 ) + - + 53 - - 77 * 57 DIV - + 62 AS col1, + 96 * + ( MAX( - - 54 ) )
----
-55
5184

skipif mysql # not compatible
query II rowsort label-1153
SELECT DISTINCT + NULLIF ( CAST ( + 68 AS INTEGER ), - + 10 + COUNT ( * ) + - 25 ) + - + 53 - - 77 * 57 / - + 62 AS col1, + 96 * + ( MAX ( - - 54 ) )
----
-55
5184

query I rowsort
SELECT ALL - 64 + 44
----
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-1155
SELECT DISTINCT + 9 DIV + - 67 * 41
----
0

skipif mysql # not compatible
query I rowsort label-1155
SELECT DISTINCT + 9 / + - 67 * 41
----
0

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

skipif mysql # not compatible
query I rowsort label-1156
SELECT COUNT ( * ) / + 62 * - + 9 AS col1
----
0

query I rowsort
SELECT 5 * - 32
----
-160

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1158
SELECT 78 + - 89, - CAST( - + 70 AS SIGNED ) * - + 50 + CAST( NULL AS SIGNED ) AS col2
----
-11
NULL

skipif mysql # not compatible
query II rowsort label-1158
SELECT 78 + - 89, - CAST ( - + 70 AS INTEGER ) * - + 50 + CAST ( NULL AS INTEGER ) AS col2
----
-11
NULL

query I rowsort
SELECT ALL - - 75 + 82 * 56 + 80
----
4747

onlyif mysql # aggregate syntax: 
query I rowsort label-1160
SELECT ALL + 90 * + + 51 + 86 + - 99 + COUNT( * )
----
4578

skipif mysql # not compatible
query I rowsort label-1160
SELECT ALL + 90 * + + 51 + 86 + - 99 + COUNT ( * )
----
4578

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1161
SELECT 27 DIV + - CAST( - 22 AS SIGNED ) AS col2, COUNT( * ) * SUM( 37 )
----
1
37

skipif mysql # not compatible
query II rowsort label-1161
SELECT 27 / + - CAST ( - 22 AS INTEGER ) AS col2, COUNT ( * ) * SUM ( 37 )
----
1
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1162
SELECT ALL + 73 + + 21 + COALESCE ( + + 95, + + 72 + - + CAST( - - 67 AS SIGNED ) * + 4 * + 26 - + 68 + + CAST( NULL AS SIGNED ) ) * + 31
----
3039

skipif mysql # not compatible
query I rowsort label-1162
SELECT ALL + 73 + + 21 + COALESCE ( + + 95, + + 72 + - + CAST ( - - 67 AS INTEGER ) * + 4 * + 26 - + 68 + + CAST ( NULL AS INTEGER ) ) * + 31
----
3039

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1164
SELECT ALL + 99 + + COUNT( * ) AS col2, - 45
----
100
-45

skipif mysql # not compatible
query II rowsort label-1164
SELECT ALL + 99 + + COUNT ( * ) AS col2, - 45
----
100
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-1165
SELECT ALL - MIN( DISTINCT - 2 ) * + + ( + COALESCE ( + COUNT( DISTINCT + + 28 ), + 8, + 92 + - 9, + 23 ) ) + - 95
----
-93

skipif mysql # not compatible
query I rowsort label-1165
SELECT ALL - MIN ( DISTINCT - 2 ) * + + ( + COALESCE ( + COUNT ( DISTINCT + + 28 ), + 8, + 92 + - 9, + 23 ) ) + - 95
----
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1166
SELECT ALL COALESCE ( - COUNT( * ), - 41 - - CAST( + 1 AS SIGNED ) )
----
-1

skipif mysql # not compatible
query I rowsort label-1166
SELECT ALL COALESCE ( - COUNT ( * ), - 41 - - CAST ( + 1 AS INTEGER ) )
----
-1

query I rowsort
SELECT DISTINCT - ( + + 63 ) + + 48 col0
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1168
SELECT ALL + 38 + + + COUNT( - - 44 ) + - 19 * - COALESCE ( 50, + SUM( 8 ) * 71 - - ( + 29 ) - - 74 + 74 + + 75 DIV + COUNT( * ) ) * - 48 * COUNT( * ) * + + 28 + - + 89 AS col2
----
-1276850

skipif mysql # not compatible
query I rowsort label-1168
SELECT ALL + 38 + + + COUNT ( - - 44 ) + - 19 * - COALESCE ( 50, + SUM ( 8 ) * 71 - - ( + 29 ) - - 74 + 74 + + 75 / + COUNT ( * ) ) * - 48 * COUNT ( * ) * + + 28 + - + 89 AS col2
----
-1276850

query I rowsort
SELECT 19 * + 97 + 54
----
1897

onlyif mysql # aggregate syntax: 
query II rowsort label-1170
SELECT + MAX( - 78 ), 34 AS col1
----
-78
34

skipif mysql # not compatible
query II rowsort label-1170
SELECT + MAX ( - 78 ), 34 AS col1
----
-78
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1171
SELECT ALL + COUNT( * ) * + CAST( NULL AS SIGNED ) + + + 55 AS col1, 22 + - + 90 * - + 63 + - - 6
----
NULL
5698

skipif mysql # not compatible
query II rowsort label-1171
SELECT ALL + COUNT ( * ) * + CAST ( NULL AS INTEGER ) + + + 55 AS col1, 22 + - + 90 * - + 63 + - - 6
----
NULL
5698

query I rowsort
SELECT ALL + 11 * + 46 + + 86 AS col1
----
592

query I rowsort
SELECT DISTINCT 80 * - + 50 AS col2
----
-4000

query II rowsort
SELECT 78, 28 + - 23 AS col0
----
78
5

query I rowsort
SELECT ALL 15 * - 87
----
-1305

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-1176
SELECT CAST( NULL AS SIGNED ) * 81 * 43 * + + COALESCE ( - + 55, - 67 * - 86 ) * - COUNT( * ) AS col2, COUNT( * ), 2 col0
----
NULL
1
2

skipif mysql # not compatible
query III rowsort label-1176
SELECT CAST ( NULL AS INTEGER ) * 81 * 43 * + + COALESCE ( - + 55, - 67 * - 86 ) * - COUNT ( * ) AS col2, COUNT ( * ), 2 col0
----
NULL
1
2

query II rowsort
SELECT ALL - 45, 76 + - + 93 AS col2
----
-45
-17

query I rowsort
SELECT 19 - 29 col0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-1179
SELECT 26 + - COUNT( DISTINCT + 66 ) col0
----
25

skipif mysql # not compatible
query I rowsort label-1179
SELECT 26 + - COUNT ( DISTINCT + 66 ) col0
----
25

query II rowsort
SELECT + 53, + 94 + + + 39 AS col0
----
53
133

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

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

query I rowsort
SELECT DISTINCT 7 + - 43
----
-36

query I rowsort
SELECT ALL 66 + + - 0 AS col0
----
66

query I rowsort
SELECT ALL + 4 * NULLIF ( 16, 12 + + 20 - + + 23 * + 48 )
----
64

query I rowsort
SELECT 25 * - 76 AS col0
----
-1900

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1187
SELECT DISTINCT CASE - 66 WHEN 2 * - 63 + + - COUNT( * ) + - 77 THEN NULL WHEN - COUNT( * ) THEN - + MIN( ALL 78 ) END * COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1187
SELECT DISTINCT CASE - 66 WHEN 2 * - 63 + + - COUNT ( * ) + - 77 THEN NULL WHEN - COUNT ( * ) THEN - + MIN ( ALL 78 ) END * COUNT ( * ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1188
SELECT 32 * + + 0 + + COUNT( * ) + - + 21 AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-1188
SELECT 32 * + + 0 + + COUNT ( * ) + - + 21 AS col0
----
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-1189
SELECT DISTINCT - 76, - 72 + COUNT( * ) AS col0
----
-76
-71

skipif mysql # not compatible
query II rowsort label-1189
SELECT DISTINCT - 76, - 72 + COUNT ( * ) AS col0
----
-76
-71

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1191
SELECT ( - CASE - 77 WHEN - 50 + 45 THEN + + 36 + 86 - - - 57 ELSE NULL END ) * - 99 - - ( + MAX( - + ( 65 ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1191
SELECT ( - CASE - 77 WHEN - 50 + 45 THEN + + 36 + 86 - - - 57 ELSE NULL END ) * - 99 - - ( + MAX ( - + ( 65 ) ) )
----
NULL

query II rowsort
SELECT 50 * 88 * - 1 AS col1, - ( - - 27 ) * + + 62
----
-4400
-1674

onlyif mysql # aggregate syntax: 
query I rowsort label-1193
SELECT + - CASE 73 WHEN 67 THEN NULL WHEN + ( 78 ) / + 5 * + 78 THEN MAX( - - 56 ) * 6 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1193
SELECT + - CASE 73 WHEN 67 THEN NULL WHEN + ( 78 ) / + 5 * + 78 THEN MAX ( - - 56 ) * 6 END
----
NULL

query I rowsort
SELECT ALL - + 22 + - - 57
----
35

query I rowsort
SELECT DISTINCT - - 48 AS col0
----
48

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

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

query II rowsort
SELECT 80 col1, + 60
----
80
60

onlyif mysql # aggregate syntax: 
query II rowsort label-1198
SELECT DISTINCT - + 70, 80 + - - ( COUNT( * ) ) * + 91 col0
----
-70
171

skipif mysql # not compatible
query II rowsort label-1198
SELECT DISTINCT - + 70, 80 + - - ( COUNT ( * ) ) * + 91 col0
----
-70
171

query I rowsort
SELECT ALL - NULLIF ( + + 8, + 98 ) - + 69 AS col0
----
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1200
SELECT ALL + 78 * - - MIN( ALL - 61 ) * + - 0 DIV 74 * 18 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1200
SELECT ALL + 78 * - - MIN ( ALL - 61 ) * + - 0 / 74 * 18 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1201
SELECT COUNT( * ) - - 90 * + 40 AS col0
----
3601

skipif mysql # not compatible
query I rowsort label-1201
SELECT COUNT ( * ) - - 90 * + 40 AS col0
----
3601

query I rowsort
SELECT ALL - - 68 * - 97 AS col1
----
-6596

onlyif mysql # aggregate syntax: 
query I rowsort label-1203
SELECT 90 + COUNT( * ) + - 16 * + 45
----
-629

skipif mysql # not compatible
query I rowsort label-1203
SELECT 90 + COUNT ( * ) + - 16 * + 45
----
-629

onlyif mysql # aggregate syntax: 
query II rowsort label-1204
SELECT ALL + 64 AS col0, + 51 * - COUNT( * ) * - 50 AS col2
----
64
2550

skipif mysql # not compatible
query II rowsort label-1204
SELECT ALL + 64 AS col0, + 51 * - COUNT ( * ) * - 50 AS col2
----
64
2550

query I rowsort
SELECT - 21 + + - 24 AS col0
----
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-1206
SELECT ALL 60 DIV + 60 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1206
SELECT ALL 60 / + 60 AS col2
----
1

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1208
SELECT ALL 3 DIV - - 61 AS col2, - 24 * + 90 * + 45
----
0
-97200

skipif mysql # not compatible
query II rowsort label-1208
SELECT ALL 3 / - - 61 AS col2, - 24 * + 90 * + 45
----
0
-97200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1209
SELECT + 9 + CAST( - 73 AS SIGNED )
----
-64

skipif mysql # not compatible
query I rowsort label-1209
SELECT + 9 + CAST ( - 73 AS INTEGER )
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-1210
SELECT + 79 + + - COALESCE ( + 90, + NULLIF ( + 40, MIN( - - 71 ) ) ) AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-1210
SELECT + 79 + + - COALESCE ( + 90, + NULLIF ( + 40, MIN ( - - 71 ) ) ) AS col1
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-1211
SELECT DISTINCT 84 * + - 98 + + COUNT( * ) * - 20 * + 5 - - - 60 AS col0
----
-8392

skipif mysql # not compatible
query I rowsort label-1211
SELECT DISTINCT 84 * + - 98 + + COUNT ( * ) * - 20 * + 5 - - - 60 AS col0
----
-8392

onlyif mysql # aggregate syntax: 
query I rowsort label-1212
SELECT - 46 * + 11 * - 60 * 17 + + COUNT( * )
----
516121

skipif mysql # not compatible
query I rowsort label-1212
SELECT - 46 * + 11 * - 60 * 17 + + COUNT ( * )
----
516121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1213
SELECT DISTINCT + COUNT( * ) * - 64 + + COUNT( * ) + COUNT( * ) + 39 + - CAST( NULL AS SIGNED ) + - + 82, 17 * - - 96 AS col0
----
NULL
1632

skipif mysql # not compatible
query II rowsort label-1213
SELECT DISTINCT + COUNT ( * ) * - 64 + + COUNT ( * ) + COUNT ( * ) + 39 + - CAST ( NULL AS INTEGER ) + - + 82, 17 * - - 96 AS col0
----
NULL
1632

query I rowsort
SELECT ALL 25 * + 21 AS col0
----
525

onlyif mysql # DIV for integer division: 
query II rowsort label-1215
SELECT ALL - 86 * - 30 + 84 DIV 83 AS col0, 85
----
2581
85

skipif mysql # not compatible
query II rowsort label-1215
SELECT ALL - 86 * - 30 + 84 / 83 AS col0, 85
----
2581
85

onlyif mysql # aggregate syntax: 
query I rowsort label-1216
SELECT CASE - 31 WHEN 21 * - + 39 THEN - 62 + - 37 * + 89 + + - 36 * + - 71 * + + COUNT( - 94 ) * MIN( 2 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1216
SELECT CASE - 31 WHEN 21 * - + 39 THEN - 62 + - 37 * + 89 + + - 36 * + - 71 * + + COUNT ( - 94 ) * MIN ( 2 ) END
----
NULL

query I rowsort
SELECT + NULLIF ( - 91, - + 88 )
----
-91

query I rowsort
SELECT DISTINCT + 87 * + 79 + - + 14
----
6859

query II rowsort
SELECT CASE - - 31 WHEN - 50 THEN NULL ELSE - - 77 + + 63 END AS col0, 6 * 91 AS col1
----
140
546

onlyif mysql # aggregate syntax: 
query I rowsort label-1220
SELECT + COUNT( * ) * - 24 * - 2 + COUNT( * )
----
49

skipif mysql # not compatible
query I rowsort label-1220
SELECT + COUNT ( * ) * - 24 * - 2 + COUNT ( * )
----
49

query I rowsort
SELECT ALL + 54 * + 45 + - - 48 * 19 + - 84 AS col1
----
3258

onlyif mysql # DIV for integer division: 
query I rowsort label-1222
SELECT ALL + ( + 81 ) DIV + 17 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-1222
SELECT ALL + ( + 81 ) / + 17 AS col0
----
4

query II rowsort
SELECT + 67 * - + 84 col2, 7
----
-5628
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1224
SELECT DISTINCT - 14 * + COUNT( + + CAST( NULL AS SIGNED ) ) * 17 + - + 95 - - 58 + 69 - - 49
----
81

skipif mysql # not compatible
query I rowsort label-1224
SELECT DISTINCT - 14 * + COUNT ( + + CAST ( NULL AS INTEGER ) ) * 17 + - + 95 - - 58 + 69 - - 49
----
81

query I rowsort
SELECT DISTINCT - 40 * - 29 AS col0
----
1160

query I rowsort
SELECT ALL + - 7 * + - 84
----
588

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1227
SELECT DISTINCT + 49 * - 26 + + 59 + + 16 - - - 37 * - 24 * - 41 * 10 * - + CAST( + 76 AS SIGNED ) * - + 1 * 10 AS col0
----
-276701999

skipif mysql # not compatible
query I rowsort label-1227
SELECT DISTINCT + 49 * - 26 + + 59 + + 16 - - - 37 * - 24 * - 41 * 10 * - + CAST ( + 76 AS INTEGER ) * - + 1 * 10 AS col0
----
-276701999

query I rowsort
SELECT ALL + 21 * 34
----
714

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

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

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

query I rowsort
SELECT ALL - 6 * 19 AS col1
----
-114

onlyif mysql # aggregate syntax: 
query I rowsort label-1232
SELECT - + 84 * ( + 74 ) * COUNT( * ) * + COUNT( * ) - + 7 AS col0
----
-6223

skipif mysql # not compatible
query I rowsort label-1232
SELECT - + 84 * ( + 74 ) * COUNT ( * ) * + COUNT ( * ) - + 7 AS col0
----
-6223

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1233
SELECT ALL ( + CAST( NULL AS DECIMAL ) ) AS col1, - 43 * - COUNT( * ) AS col1
----
NULL
43

skipif mysql # not compatible
query II rowsort label-1233
SELECT ALL ( + CAST ( NULL AS REAL ) ) AS col1, - 43 * - COUNT ( * ) AS col1
----
NULL
43

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1234
SELECT - 15 DIV - NULLIF ( - 22, + - CAST( NULL AS SIGNED ) ) col1
----
0

skipif mysql # not compatible
query I rowsort label-1234
SELECT - 15 / - NULLIF ( - 22, + - CAST ( NULL AS INTEGER ) ) col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1235
SELECT DISTINCT - 94 + - + MAX( 27 )
----
-121

skipif mysql # not compatible
query I rowsort label-1235
SELECT DISTINCT - 94 + - + MAX ( 27 )
----
-121

query I rowsort
SELECT DISTINCT ( + + COALESCE ( - 64, - 51 ) )
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-1237
SELECT DISTINCT - COUNT( 16 ) + + MIN( 5 )
----
4

skipif mysql # not compatible
query I rowsort label-1237
SELECT DISTINCT - COUNT ( 16 ) + + MIN ( 5 )
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1238
SELECT ALL CAST( 99 AS SIGNED ) AS col2
----
99

skipif mysql # not compatible
query I rowsort label-1238
SELECT ALL CAST ( 99 AS INTEGER ) AS col2
----
99

query II rowsort
SELECT ALL - 77 + + 42 * ( 27 ) * 44, + 64 AS col1
----
49819
64

query I rowsort
SELECT - 96 * - + 43
----
4128

query I rowsort
SELECT - 25 * - 73 AS col1
----
1825

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1242
SELECT + 29 DIV COUNT( * ) + 61 * - + 56 AS col1
----
-3387

skipif mysql # not compatible
query I rowsort label-1242
SELECT + 29 / COUNT ( * ) + 61 * - + 56 AS col1
----
-3387

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1243
SELECT DISTINCT - 59 DIV + - 72 * + 35 + - + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-1243
SELECT DISTINCT - 59 / + - 72 * + 35 + - + COUNT ( * )
----
-1

query II rowsort
SELECT ALL + 89 AS col2, 44 AS col0
----
89
44

onlyif mysql # DIV for integer division: 
query I rowsort label-1245
SELECT ALL - 26 DIV 62 - 25
----
-25

skipif mysql # not compatible
query I rowsort label-1245
SELECT ALL - 26 / 62 - 25
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-1246
SELECT ALL + CASE + 4 WHEN + + MAX( 75 ) * + - ( + 87 ) THEN NULL ELSE - - ( - + COUNT( ALL - - 31 ) ) END
----
-1

skipif mysql # not compatible
query I rowsort label-1246
SELECT ALL + CASE + 4 WHEN + + MAX ( 75 ) * + - ( + 87 ) THEN NULL ELSE - - ( - + COUNT ( ALL - - 31 ) ) END
----
-1

query II rowsort
SELECT ALL + 5 AS col1, + COALESCE ( - 25, - 49 * 10 + - + 83 )
----
5
-25

onlyif mysql # DIV for integer division: 
query II rowsort label-1248
SELECT DISTINCT + 82 DIV - + 15 - 32 AS col1, - 39 AS col1
----
-37
-39

skipif mysql # not compatible
query II rowsort label-1248
SELECT DISTINCT + 82 / - + 15 - 32 AS col1, - 39 AS col1
----
-37
-39

query I rowsort
SELECT ALL 41 * 12
----
492

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

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

query I rowsort
SELECT DISTINCT - ( - 61 ) * 48 AS col0
----
2928

query I rowsort
SELECT - 94 * 4
----
-376

query I rowsort
SELECT + 0 * + 1 col2
----
0

query I rowsort
SELECT - 11 + 45 AS col1
----
34

query I rowsort
SELECT + CASE 41 WHEN 97 THEN 24 * 9 ELSE NULL END + 24 * - 17
----
NULL

query I rowsort
SELECT + 64 * - 67 AS col1
----
-4288

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1257
SELECT ALL + CASE + 56 WHEN + COUNT( * ) + + 40 THEN NULL WHEN 86 / + 67 THEN NULL ELSE 7 - - CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1257
SELECT ALL + CASE + 56 WHEN + COUNT ( * ) + + 40 THEN NULL WHEN 86 / + 67 THEN NULL ELSE 7 - - CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1258
SELECT + SUM( DISTINCT 30 ) - 86
----
-56

skipif mysql # not compatible
query I rowsort label-1258
SELECT + SUM ( DISTINCT 30 ) - 86
----
-56

query I rowsort
SELECT DISTINCT 93 * + 15 AS col0
----
1395

query I rowsort
SELECT COALESCE ( - 82, - 76 + 12, 39 ) * 68 - - 87 AS col0
----
-5489

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1262
SELECT ALL 39 DIV CAST( 31 AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-1262
SELECT ALL 39 / CAST ( 31 AS INTEGER )
----
1

query I rowsort
SELECT DISTINCT 57 * - 82
----
-4674

query I rowsort
SELECT 65 + CASE - 8 WHEN 12 THEN 19 * + 79 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT DISTINCT 33 * 71 AS col0
----
2343

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1267
SELECT CASE 93 WHEN ( + 98 ) / 46 THEN MIN( ALL 47 ) * - NULLIF ( - 39 / CAST( + 92 AS SIGNED ), + COALESCE ( + ( + 25 ), + 83 + 15, 82 + 84 ) ) WHEN + COALESCE ( 73, - COALESCE ( 38, + 24 * 92 ) * + 98, + 35 ) THEN + 42 ELSE NULL END + NULLIF ( 19, - 39 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1267
SELECT CASE 93 WHEN ( + 98 ) / 46 THEN MIN ( ALL 47 ) * - NULLIF ( - 39 / CAST ( + 92 AS INTEGER ), + COALESCE ( + ( + 25 ), + 83 + 15, 82 + 84 ) ) WHEN + COALESCE ( 73, - COALESCE ( 38, + 24 * 92 ) * + 98, + 35 ) THEN + 42 ELSE NULL END + NULLIF ( 19, - 39 ) AS col1
----
NULL

query I rowsort
SELECT 10 - 39 col2
----
-29

query I rowsort
SELECT 84 + + 8 * 94
----
836

query I rowsort
SELECT 44 * 53 - + 94 col0
----
2238

query I rowsort
SELECT ALL 85 + + 96 AS col1
----
181

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1272
SELECT ALL 56 + NULLIF ( + MAX( ALL 86 ) + 36 * 61, CAST( NULL AS SIGNED ) ) AS col0
----
2338

skipif mysql # not compatible
query I rowsort label-1272
SELECT ALL 56 + NULLIF ( + MAX ( ALL 86 ) + 36 * 61, CAST ( NULL AS INTEGER ) ) AS col0
----
2338

query I rowsort
SELECT ALL - 81 + 86 * 87
----
7401

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

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

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

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

query I rowsort
SELECT 19 + - 53
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-1277
SELECT ALL NULLIF ( SUM( DISTINCT - 79 ), COALESCE ( - 94, - COALESCE ( 40, 13, + 84 * COALESCE ( 78, - 70 ) ) + 73 ) + - CASE 44 WHEN 70 THEN + 80 * 77 + 4 WHEN - 20 + ( + 76 ) THEN NULL END ) + 18
----
-61

skipif mysql # not compatible
query I rowsort label-1277
SELECT ALL NULLIF ( SUM ( DISTINCT - 79 ), COALESCE ( - 94, - COALESCE ( 40, 13, + 84 * COALESCE ( 78, - 70 ) ) + 73 ) + - CASE 44 WHEN 70 THEN + 80 * 77 + 4 WHEN - 20 + ( + 76 ) THEN NULL END ) + 18
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-1278
SELECT 28 + + MAX( - COALESCE ( - 28, - 19, 88 + + 79, 72 * - 44 ) ) AS col1
----
56

skipif mysql # not compatible
query I rowsort label-1278
SELECT 28 + + MAX ( - COALESCE ( - 28, - 19, 88 + + 79, 72 * - 44 ) ) AS col1
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-1279
SELECT ALL - 73 DIV 25 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-1279
SELECT ALL - 73 / 25 AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-1280
SELECT ALL - ( - MIN( ALL 82 ) ) + 9 AS col2
----
91

skipif mysql # not compatible
query I rowsort label-1280
SELECT ALL - ( - MIN ( ALL 82 ) ) + 9 AS col2
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-1281
SELECT DISTINCT + SUM( DISTINCT - 44 ) + 7 * + 34
----
194

skipif mysql # not compatible
query I rowsort label-1281
SELECT DISTINCT + SUM ( DISTINCT - 44 ) + 7 * + 34
----
194

query I rowsort
SELECT 15 + COALESCE ( + 5, 81 )
----
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1283
SELECT COALESCE ( MIN( ALL - 41 ), + 40, 27 ) DIV 5
----
-8

skipif mysql # not compatible
query I rowsort label-1283
SELECT COALESCE ( MIN ( ALL - 41 ), + 40, 27 ) / 5
----
-8

query I rowsort
SELECT 54 + 37 * 94
----
3532

query I rowsort
SELECT ALL + ( 36 ) * - 91 AS col2
----
-3276

query I rowsort
SELECT 25 * - 1
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-1287
SELECT ALL SUM( DISTINCT 14 ) * 15
----
210

skipif mysql # not compatible
query I rowsort label-1287
SELECT ALL SUM ( DISTINCT 14 ) * 15
----
210

query I rowsort
SELECT DISTINCT + 55 * 9 AS col1
----
495

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1290
SELECT + SUM( - 8 ) * 10 + 1 * + 28
----
-52

skipif mysql # not compatible
query I rowsort label-1290
SELECT + SUM ( - 8 ) * 10 + 1 * + 28
----
-52

query I rowsort
SELECT DISTINCT + 1 - 3
----
-2

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

skipif mysql # not compatible
query I rowsort label-1292
SELECT 58 + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1293
SELECT + COALESCE ( 59, ( - 61 ) ) DIV 71 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1293
SELECT + COALESCE ( 59, ( - 61 ) ) / 71 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1294
SELECT 17 DIV + 97 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1294
SELECT 17 / + 97 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1295
SELECT ALL + + NULLIF ( + 79, + COUNT( * ) ) DIV + 71 col1
----
1

skipif mysql # not compatible
query I rowsort label-1295
SELECT ALL + + NULLIF ( + 79, + COUNT ( * ) ) / + 71 col1
----
1

query I rowsort
SELECT - 28 * + 26 + 96 * - 81
----
-8504

query I rowsort
SELECT 47 + + 14 * 90 col1
----
1307

onlyif mysql # aggregate syntax: 
query I rowsort label-1298
SELECT ALL - COALESCE ( + COALESCE ( + COUNT( * ), 73, - COUNT( * ) ), + 19 * 8 + 12 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1298
SELECT ALL - COALESCE ( + COALESCE ( + COUNT ( * ), 73, - COUNT ( * ) ), + 19 * 8 + 12 ) AS col2
----
-1

query I rowsort
SELECT DISTINCT - ( + 88 ) * - 19 AS col1
----
1672

query I rowsort
SELECT + 65 * + NULLIF ( 39 + - 66 * 66, 86 ) AS col0
----
-280605

onlyif mysql # aggregate syntax: 
query I rowsort label-1301
SELECT ALL - - 32 * COUNT( * ) AS col1
----
32

skipif mysql # not compatible
query I rowsort label-1301
SELECT ALL - - 32 * COUNT ( * ) AS col1
----
32

query I rowsort
SELECT ALL + + ( + 85 ) * 6
----
510

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1304
SELECT ALL + - CASE MAX( DISTINCT 82 ) WHEN - 65 * + 4 + - 18 THEN 5 ELSE NULLIF ( 96, - 98 * + 83 - - 21 ) + + COALESCE ( NULLIF ( + ( CASE COUNT( * ) WHEN CAST( SUM( - 62 ) AS SIGNED ) THEN + 18 - COALESCE ( 48, - 63, + 69 / 29 ) * 0 END ), - 27 ) + 80 * - ( 66 + + 39 * - 10 ), CASE 97 WHEN 96 THEN 13 WHEN 11 + 8 THEN + 23 * + SUM( 77 ) + 39 * + 72 END ) END + 89 * COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1304
SELECT ALL + - CASE MAX ( DISTINCT 82 ) WHEN - 65 * + 4 + - 18 THEN 5 ELSE NULLIF ( 96, - 98 * + 83 - - 21 ) + + COALESCE ( NULLIF ( + ( CASE COUNT ( * ) WHEN CAST ( SUM ( - 62 ) AS INTEGER ) THEN + 18 - COALESCE ( 48, - 63, + 69 / 29 ) * 0 END ), - 27 ) + 80 * - ( 66 + + 39 * - 10 ), CASE 97 WHEN 96 THEN 13 WHEN 11 + 8 THEN + 23 * + SUM ( 77 ) + 39 * + 72 END ) END + 89 * COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT ALL 84 + 78
----
162

query I rowsort
SELECT DISTINCT + ( + 10 ) + 58
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-1307
SELECT 44 * - COUNT( * ) col2
----
-44

skipif mysql # not compatible
query I rowsort label-1307
SELECT 44 * - COUNT ( * ) col2
----
-44

query I rowsort
SELECT 88 + + 23 AS col0
----
111

query I rowsort
SELECT ALL - 12 + 98
----
86

query I rowsort
SELECT DISTINCT + 95 + + 6 AS col0
----
101

onlyif mysql # DIV for integer division: 
query I rowsort label-1311
SELECT ALL ( 50 ) + + 78 DIV 46
----
51

skipif mysql # not compatible
query I rowsort label-1311
SELECT ALL ( 50 ) + + 78 / 46
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1312
SELECT ALL SUM( - 14 ) DIV 71
----
0

skipif mysql # not compatible
query I rowsort label-1312
SELECT ALL SUM ( - 14 ) / 71
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1314
SELECT ALL COUNT( * ) * - - NULLIF ( - 58, 37 ) * - 47 AS col0
----
2726

skipif mysql # not compatible
query I rowsort label-1314
SELECT ALL COUNT ( * ) * - - NULLIF ( - 58, 37 ) * - 47 AS col0
----
2726

query I rowsort
SELECT ALL ( + 56 ) + - 84 AS col2
----
-28

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1317
SELECT 9 - + CASE + 57 WHEN - CAST( NULL AS SIGNED ) THEN 2 + + ( 93 + + 49 ) END * 11 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1317
SELECT 9 - + CASE + 57 WHEN - CAST ( NULL AS INTEGER ) THEN 2 + + ( 93 + + 49 ) END * 11 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1318
SELECT COALESCE ( 64, COUNT( * ) + CAST( + 84 - 9 AS SIGNED ), - 99 + 27 * COUNT( * ) ) * - 45
----
-2880

skipif mysql # not compatible
query I rowsort label-1318
SELECT COALESCE ( 64, COUNT ( * ) + CAST ( + 84 - 9 AS INTEGER ), - 99 + 27 * COUNT ( * ) ) * - 45
----
-2880

onlyif mysql # aggregate syntax: 
query I rowsort label-1319
SELECT ALL SUM( ALL + 97 ) * + 56 AS col1
----
5432

skipif mysql # not compatible
query I rowsort label-1319
SELECT ALL SUM ( ALL + 97 ) * + 56 AS col1
----
5432

query I rowsort
SELECT ( - 31 ) + - ( 6 ) AS col2
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1321
SELECT ALL COUNT( * ) * + - CASE WHEN + CASE + 69 WHEN NULLIF ( + COUNT( * ), - 80 ) THEN NULL WHEN + 18 THEN NULL WHEN 59 THEN COUNT( * ) + + 7 END <> NULL THEN + CAST( NULL AS SIGNED ) * COUNT( * ) ELSE NULL END * COALESCE ( - COUNT( * ) - 19, - 41 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1321
SELECT ALL COUNT ( * ) * + - CASE WHEN + CASE + 69 WHEN NULLIF ( + COUNT ( * ), - 80 ) THEN NULL WHEN + 18 THEN NULL WHEN 59 THEN COUNT ( * ) + + 7 END <> NULL THEN + CAST ( NULL AS INTEGER ) * COUNT ( * ) ELSE NULL END * COALESCE ( - COUNT ( * ) - 19, - 41 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1322
SELECT DISTINCT 1 - 58 + - CAST( NULL AS SIGNED ) / - 68
----
NULL

skipif mysql # not compatible
query I rowsort label-1322
SELECT DISTINCT 1 - 58 + - CAST ( NULL AS INTEGER ) / - 68
----
NULL

query I rowsort
SELECT 44 - - 15
----
59

query I rowsort
SELECT ( - 38 ) - + 10 * - 10 col1
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-1325
SELECT 34 + COUNT( * ) * CASE - 66 + 92 WHEN + 83 / 45 - - NULLIF ( 77 + AVG ( DISTINCT - COALESCE ( 59, 75 + + 44, - ( + 22 ) ) ), - 57 + 17 ) * 23 THEN NULL ELSE 48 + - 2 END AS col1
----
80

skipif mysql # not compatible
query I rowsort label-1325
SELECT 34 + COUNT ( * ) * CASE - 66 + 92 WHEN + 83 / 45 - - NULLIF ( 77 + AVG ( DISTINCT - COALESCE ( 59, 75 + + 44, - ( + 22 ) ) ), - 57 + 17 ) * 23 THEN NULL ELSE 48 + - 2 END AS col1
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-1326
SELECT DISTINCT 43 * - - COALESCE ( + 99, + COUNT( * ) )
----
4257

skipif mysql # not compatible
query I rowsort label-1326
SELECT DISTINCT 43 * - - COALESCE ( + 99, + COUNT ( * ) )
----
4257

query I rowsort
SELECT - - 1 * 68 + 94
----
162

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1330
SELECT CAST( 75 AS SIGNED ) * 27 - + COUNT( * )
----
2024

skipif mysql # not compatible
query I rowsort label-1330
SELECT CAST ( 75 AS INTEGER ) * 27 - + COUNT ( * )
----
2024

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1333
SELECT ALL + 1 * - - 30 + COALESCE ( 84 + 54 * 83, - COUNT( * ) ) DIV - COUNT( * ) + 75 col0
----
-4461

skipif mysql # not compatible
query I rowsort label-1333
SELECT ALL + 1 * - - 30 + COALESCE ( 84 + 54 * 83, - COUNT ( * ) ) / - COUNT ( * ) + 75 col0
----
-4461

onlyif mysql # aggregate syntax: 
query I rowsort label-1334
SELECT - 58 * - - MIN( DISTINCT 34 ) AS col0
----
-1972

skipif mysql # not compatible
query I rowsort label-1334
SELECT - 58 * - - MIN ( DISTINCT 34 ) AS col0
----
-1972

onlyif mysql # aggregate syntax: 
query I rowsort label-1335
SELECT DISTINCT COALESCE ( + ( 66 ), - 40 ) * + ( + 23 - - NULLIF ( + SUM( DISTINCT 39 ) + NULLIF ( COUNT( * ), + 10 ), 27 ) ) AS col2
----
4158

skipif mysql # not compatible
query I rowsort label-1335
SELECT DISTINCT COALESCE ( + ( 66 ), - 40 ) * + ( + 23 - - NULLIF ( + SUM ( DISTINCT 39 ) + NULLIF ( COUNT ( * ), + 10 ), 27 ) ) AS col2
----
4158

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1336
SELECT DISTINCT 67 * + 83 + 98 DIV COUNT( * ) AS col0
----
5659

skipif mysql # not compatible
query I rowsort label-1336
SELECT DISTINCT 67 * + 83 + 98 / COUNT ( * ) AS col0
----
5659

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

skipif mysql # not compatible
query I rowsort label-1337
SELECT - 85 / + 12
----
-7

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1339
SELECT - - 27 + + + COUNT( * ) + 33 * + 48
----
1612

skipif mysql # not compatible
query I rowsort label-1339
SELECT - - 27 + + + COUNT ( * ) + 33 * + 48
----
1612

onlyif mysql # aggregate syntax: 
query I rowsort label-1340
SELECT DISTINCT + SUM( 57 ) AS col0
----
57

skipif mysql # not compatible
query I rowsort label-1340
SELECT DISTINCT + SUM ( 57 ) AS col0
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1341
SELECT ALL - + COALESCE ( + COALESCE ( 1, SUM( 6 ) DIV 75 ), + 99 + + 74 ) DIV + 80
----
0

skipif mysql # not compatible
query I rowsort label-1341
SELECT ALL - + COALESCE ( + COALESCE ( 1, SUM ( 6 ) / 75 ), + 99 + + 74 ) / + 80
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1342
SELECT - + 52 + + 37 - ( 68 ) * + COALESCE ( - 10 * CAST( - 41 AS SIGNED ), + COUNT( - 34 ) * 93 + - 11 )
----
-27895

skipif mysql # not compatible
query I rowsort label-1342
SELECT - + 52 + + 37 - ( 68 ) * + COALESCE ( - 10 * CAST ( - 41 AS INTEGER ), + COUNT ( - 34 ) * 93 + - 11 )
----
-27895

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

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

query I rowsort
SELECT ALL - 45 + + 36 AS col1
----
-9

query I rowsort
SELECT ALL + 90 * - 69 AS col2
----
-6210

query I rowsort
SELECT - 20 + 29 AS col0
----
9

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

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

query I rowsort
SELECT DISTINCT + 73 * + + 61 AS col2
----
4453

onlyif mysql # aggregate syntax: 
query I rowsort label-1349
SELECT ALL COALESCE ( - 13, - + 99 * SUM( - 12 ), 96 )
----
-13

skipif mysql # not compatible
query I rowsort label-1349
SELECT ALL COALESCE ( - 13, - + 99 * SUM ( - 12 ), 96 )
----
-13

query I rowsort
SELECT 82 * - - 12 + + 12
----
996

query I rowsort
SELECT - 85 + + + 17 + NULLIF ( + 83, 21 )
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-1352
SELECT + COUNT( DISTINCT + 74 ) - - 59 AS col2
----
60

skipif mysql # not compatible
query I rowsort label-1352
SELECT + COUNT ( DISTINCT + 74 ) - - 59 AS col2
----
60

query II rowsort
SELECT ALL 90 AS col2, 59 * - + 38 AS col2
----
90
-2242

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1354
SELECT - 2 * 50 DIV - - ( + COUNT( * ) )
----
-100

skipif mysql # not compatible
query I rowsort label-1354
SELECT - 2 * 50 / - - ( + COUNT ( * ) )
----
-100

query I rowsort
SELECT - 61 + + + 65 + + + 19 * ( 99 )
----
1885

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1356
SELECT + 67 + CAST( + + COALESCE ( 67, - CAST( NULL AS SIGNED ) ) AS SIGNED )
----
134

skipif mysql # not compatible
query I rowsort label-1356
SELECT + 67 + CAST ( + + COALESCE ( 67, - CAST ( NULL AS INTEGER ) ) AS INTEGER )
----
134

query I rowsort
SELECT + 54 + + 71 AS col1
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-1358
SELECT ALL ( CASE - COUNT( * ) WHEN 88 THEN 34 WHEN COUNT( * ) THEN + 86 ELSE 17 + 48 END )
----
65

skipif mysql # not compatible
query I rowsort label-1358
SELECT ALL ( CASE - COUNT ( * ) WHEN 88 THEN 34 WHEN COUNT ( * ) THEN + 86 ELSE 17 + 48 END )
----
65

query I rowsort
SELECT + 31 + - - 27 AS col2
----
58

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

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

query I rowsort
SELECT + 7 + + 77
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-1362
SELECT + 24 DIV 42
----
0

skipif mysql # not compatible
query I rowsort label-1362
SELECT + 24 / 42
----
0

query I rowsort
SELECT ALL 30 * 31 AS col1
----
930

query II rowsort
SELECT ALL 64 col1, 20 * + 57
----
64
1140

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1366
SELECT + COALESCE ( + - COUNT( * ), + ( + ( - 58 ) ) ) * - 93
----
93

skipif mysql # not compatible
query I rowsort label-1366
SELECT + COALESCE ( + - COUNT ( * ), + ( + ( - 58 ) ) ) * - 93
----
93

query I rowsort
SELECT + 12 + - 93 + - - 77 AS col0
----
-4

query I rowsort
SELECT DISTINCT 24 * 99
----
2376

onlyif mysql # aggregate syntax: 
query I rowsort label-1369
SELECT ALL + NULLIF ( + + COUNT( ALL + 30 ), - NULLIF ( 51, 7 ) + 16 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1369
SELECT ALL + NULLIF ( + + COUNT ( ALL + 30 ), - NULLIF ( 51, 7 ) + 16 ) AS col2
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1371
SELECT + + COUNT( ALL 89 ) + - - 69
----
70

skipif mysql # not compatible
query I rowsort label-1371
SELECT + + COUNT ( ALL 89 ) + - - 69
----
70

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1373
SELECT ALL 59 + + 97 * + CAST( - COUNT( * ) AS SIGNED ) AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-1373
SELECT ALL 59 + + 97 * + CAST ( - COUNT ( * ) AS INTEGER ) AS col0
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-1374
SELECT - COUNT( DISTINCT + + 76 ) * - 67 + - NULLIF ( + 44, - 17 ) AS col0
----
23

skipif mysql # not compatible
query I rowsort label-1374
SELECT - COUNT ( DISTINCT + + 76 ) * - 67 + - NULLIF ( + 44, - 17 ) AS col0
----
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1375
SELECT DISTINCT - 60 DIV - 2 + + - COUNT( * ) + 79 AS col1
----
108

skipif mysql # not compatible
query I rowsort label-1375
SELECT DISTINCT - 60 / - 2 + + - COUNT ( * ) + 79 AS col1
----
108

onlyif mysql # DIV for integer division: 
query I rowsort label-1376
SELECT ALL 64 DIV + 87 + - 65 + - CASE + 73 WHEN 62 THEN NULL ELSE + 44 END DIV 8 + 40 * + NULLIF ( 70, 94 )
----
2730

skipif mysql # not compatible
query I rowsort label-1376
SELECT ALL 64 / + 87 + - 65 + - CASE + 73 WHEN 62 THEN NULL ELSE + 44 END / 8 + 40 * + NULLIF ( 70, 94 )
----
2730

onlyif mysql # aggregate syntax: 
query I rowsort label-1377
SELECT + + 42 + COUNT( * ) + - 64 * - MIN( DISTINCT 58 ) col0
----
3755

skipif mysql # not compatible
query I rowsort label-1377
SELECT + + 42 + COUNT ( * ) + - 64 * - MIN ( DISTINCT 58 ) col0
----
3755

onlyif mysql # aggregate syntax: 
query II rowsort label-1378
SELECT - 19 AS col2, COUNT( DISTINCT - 93 ) + 23 AS col2
----
-19
24

skipif mysql # not compatible
query II rowsort label-1378
SELECT - 19 AS col2, COUNT ( DISTINCT - 93 ) + 23 AS col2
----
-19
24

onlyif mysql # aggregate syntax: 
query II rowsort label-1379
SELECT 65, 26 + MIN( ALL 75 ) - - COUNT( * ) AS col2
----
65
102

skipif mysql # not compatible
query II rowsort label-1379
SELECT 65, 26 + MIN ( ALL 75 ) - - COUNT ( * ) AS col2
----
65
102

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1380
SELECT + + 56 * + + 70 * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1380
SELECT + + 56 * + + 70 * + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1381
SELECT - ( - + ( + + 68 ) ) + - 60 DIV - 49 AS col0
----
69

skipif mysql # not compatible
query I rowsort label-1381
SELECT - ( - + ( + + 68 ) ) + - 60 / - 49 AS col0
----
69

onlyif mysql # aggregate syntax: 
query II rowsort label-1382
SELECT ALL + 38 AS col0, + MIN( DISTINCT ( + 39 ) ) AS col0
----
38
39

skipif mysql # not compatible
query II rowsort label-1382
SELECT ALL + 38 AS col0, + MIN ( DISTINCT ( + 39 ) ) AS col0
----
38
39

onlyif mysql # aggregate syntax: 
query I rowsort label-1383
SELECT - 85 * + + CASE - 61 WHEN + 81 THEN - 43 ELSE - ( + 61 ) * + COALESCE ( 67, - 83, + 15 * - COUNT( DISTINCT - 46 ) - 41 ) END + - 28 * + 14
----
347003

skipif mysql # not compatible
query I rowsort label-1383
SELECT - 85 * + + CASE - 61 WHEN + 81 THEN - 43 ELSE - ( + 61 ) * + COALESCE ( 67, - 83, + 15 * - COUNT ( DISTINCT - 46 ) - 41 ) END + - 28 * + 14
----
347003

onlyif mysql # aggregate syntax: 
query I rowsort label-1384
SELECT ALL + + 53 * - - COUNT( * ) + 72 * + 45 AS col2
----
3293

skipif mysql # not compatible
query I rowsort label-1384
SELECT ALL + + 53 * - - COUNT ( * ) + 72 * + 45 AS col2
----
3293

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1385
SELECT + 58 + - 68 DIV 17 + + MAX( DISTINCT 24 ) DIV COUNT( * ) AS col1
----
78

skipif mysql # not compatible
query I rowsort label-1385
SELECT + 58 + - 68 / 17 + + MAX ( DISTINCT 24 ) / COUNT ( * ) AS col1
----
78

query I rowsort
SELECT DISTINCT - 84 * - 69 * - - 98
----
568008

query I rowsort
SELECT - 72 + - ( - 71 ) AS col1
----
-1

query I rowsort
SELECT DISTINCT + + ( + + 60 ) AS col0
----
60

query I rowsort
SELECT CASE WHEN ( 12 ) IS NULL THEN 6 END
----
NULL

query I rowsort
SELECT COALESCE ( + - 47, - 32 ) AS col0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-1391
SELECT ALL + CASE COUNT( * ) WHEN 28 + ( + 15 ) + + 62 THEN NULL ELSE 64 - - 82 END col2
----
146

skipif mysql # not compatible
query I rowsort label-1391
SELECT ALL + CASE COUNT ( * ) WHEN 28 + ( + 15 ) + + 62 THEN NULL ELSE 64 - - 82 END col2
----
146

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

skipif mysql # not compatible
query I rowsort label-1392
SELECT + CAST ( NULL AS INTEGER ) * + NULLIF ( 3, - 70 * 75 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1393
SELECT - 91 + - CASE + 98 WHEN - + AVG ( DISTINCT + 4 ) THEN 80 WHEN 82 + 75 THEN 63 + - COUNT( * ) * 32 ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1393
SELECT - 91 + - CASE + 98 WHEN - + AVG ( DISTINCT + 4 ) THEN 80 WHEN 82 + 75 THEN 63 + - COUNT ( * ) * 32 ELSE NULL END col2
----
NULL

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1396
SELECT DISTINCT - 5 DIV + 89 * - NULLIF ( - 91, COALESCE ( - 41, ( - 30 ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-1396
SELECT DISTINCT - 5 / + 89 * - NULLIF ( - 91, COALESCE ( - 41, ( - 30 ) ) )
----
0

query I rowsort
SELECT NULLIF ( 73, - 18 * - + ( 36 ) )
----
73

query I rowsort
SELECT DISTINCT + 32 * + 47 * - ( - - 81 ) AS col0
----
-121824

onlyif mysql # aggregate syntax: 
query I rowsort label-1399
SELECT ALL CASE - COUNT( * ) WHEN + + 52 THEN - ( 11 ) WHEN - NULLIF ( - 57, - 87 ) THEN - 23 ELSE + 40 * 34 END
----
1360

skipif mysql # not compatible
query I rowsort label-1399
SELECT ALL CASE - COUNT ( * ) WHEN + + 52 THEN - ( 11 ) WHEN - NULLIF ( - 57, - 87 ) THEN - 23 ELSE + 40 * 34 END
----
1360

query I rowsort
SELECT ALL - 15 * - 56
----
840

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1401
SELECT DISTINCT - COALESCE ( 37, - - COUNT( * ) / - MIN( ALL 53 ) * - COALESCE ( NULLIF ( 50, - 65 * - 40 ), 78 + 31 ) - + 92 ) * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1401
SELECT DISTINCT - COALESCE ( 37, - - COUNT ( * ) / - MIN ( ALL 53 ) * - COALESCE ( NULLIF ( 50, - 65 * - 40 ), 78 + 31 ) - + 92 ) * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1403
SELECT - SUM( + 88 ) AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-1403
SELECT - SUM ( + 88 ) AS col0
----
-88

query I rowsort
SELECT - 83 * + - 67
----
5561

onlyif mysql # DIV for integer division: 
query I rowsort label-1405
SELECT - 95 - + 77 DIV - + 8 + + 93 AS col2
----
7

skipif mysql # not compatible
query I rowsort label-1405
SELECT - 95 - + 77 / - + 8 + + 93 AS col2
----
7

query I rowsort
SELECT - COALESCE ( 22, - COALESCE ( + 87, ( 6 ) * - 32 ) ) AS col0
----
-22

query I rowsort
SELECT ALL - 15 * CASE - + 63 WHEN + AVG ( ALL ( + 76 ) ) THEN 84 ELSE - 32 + - 3 END AS col0
----
525

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

query I rowsort
SELECT DISTINCT - 97 + + 49 col1
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1410
SELECT - 47 + - 1 + + + 1 - COALESCE ( 55, 79 ) + AVG ( + 51 - - CAST( NULL AS SIGNED ) ) * 15
----
NULL

skipif mysql # not compatible
query I rowsort label-1410
SELECT - 47 + - 1 + + + 1 - COALESCE ( 55, 79 ) + AVG ( + 51 - - CAST ( NULL AS INTEGER ) ) * 15
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1412
SELECT DISTINCT + COUNT( * ) + COUNT( * ) + + 90
----
92

skipif mysql # not compatible
query I rowsort label-1412
SELECT DISTINCT + COUNT ( * ) + COUNT ( * ) + + 90
----
92

query I rowsort
SELECT ALL 48 + + 86 + 95
----
229

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1414
SELECT DISTINCT - 73 + - + NULLIF ( - - 76, + + 91 * COALESCE ( - COALESCE ( 94, 78 ) * - 65, CAST( + 49 AS SIGNED ) * 63 ) ) + CASE 87 WHEN ( - MAX( ALL 19 ) ) + - 20 THEN - 96 + - CAST( 2 - 39 AS SIGNED ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1414
SELECT DISTINCT - 73 + - + NULLIF ( - - 76, + + 91 * COALESCE ( - COALESCE ( 94, 78 ) * - 65, CAST ( + 49 AS INTEGER ) * 63 ) ) + CASE 87 WHEN ( - MAX ( ALL 19 ) ) + - 20 THEN - 96 + - CAST ( 2 - 39 AS INTEGER ) ELSE NULL END
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1416
SELECT 25 DIV - 63 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1416
SELECT 25 / - 63 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1417
SELECT ALL - 40 + - CASE - 0 WHEN 55 THEN 6 ELSE COUNT( * ) * 14 END AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-1417
SELECT ALL - 40 + - CASE - 0 WHEN 55 THEN 6 ELSE COUNT ( * ) * 14 END AS col1
----
-54

query II rowsort
SELECT ALL + 82 + - 28 AS col1, 13 AS col1
----
54
13

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

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

query II rowsort
SELECT ALL + 7 + 91, + 94 AS col1
----
98
94

query I rowsort
SELECT - + 17 col0
----
-17

query I rowsort
SELECT ALL 37 * + - 26
----
-962

query I rowsort
SELECT ALL 50 * 67 AS col0
----
3350

onlyif mysql # aggregate syntax: 
query I rowsort label-1424
SELECT COUNT( - 78 ) * + 64
----
64

skipif mysql # not compatible
query I rowsort label-1424
SELECT COUNT ( - 78 ) * + 64
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-1425
SELECT ALL COUNT( - + 10 ) + - 91 + + 14 * + COUNT( * )
----
-76

skipif mysql # not compatible
query I rowsort label-1425
SELECT ALL COUNT ( - + 10 ) + - 91 + + 14 * + COUNT ( * )
----
-76

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1427
SELECT ALL CAST( NULL AS SIGNED ) * - 65 - - - 40
----
NULL

skipif mysql # not compatible
query I rowsort label-1427
SELECT ALL CAST ( NULL AS INTEGER ) * - 65 - - - 40
----
NULL

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

query I rowsort
SELECT + 49 * - ( + + 53 ) + + - 42 + - 12 * - 76
----
-1727

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1430
SELECT CAST( NULL AS SIGNED ) * - 47 / 4 * - 23 + 99 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1430
SELECT CAST ( NULL AS INTEGER ) * - 47 / 4 * - 23 + 99 col1
----
NULL

query I rowsort
SELECT 35 * - 85 * - 66
----
196350

query I rowsort
SELECT 48 * + 71
----
3408

query I rowsort
SELECT ALL 56 * 60
----
3360

query I rowsort
SELECT 18 + 23 * 99 * 94 * - 43 * + 68 + + 50 AS col2
----
-625847044

onlyif mysql # DIV for integer division: 
query I rowsort label-1435
SELECT DISTINCT 85 DIV 6
----
14

skipif mysql # not compatible
query I rowsort label-1435
SELECT DISTINCT 85 / 6
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-1436
SELECT ALL - CASE - ( + 22 ) WHEN + 64 THEN + ( 54 ) WHEN + NULLIF ( 40, 87 * + MAX( 88 ) + - 85 ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1436
SELECT ALL - CASE - ( + 22 ) WHEN + 64 THEN + ( 54 ) WHEN + NULLIF ( 40, 87 * + MAX ( 88 ) + - 85 ) THEN NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1437
SELECT - 65 * - 77 + - - NULLIF ( + CAST( NULL AS SIGNED ), - COUNT( * ) ) + 27
----
NULL

skipif mysql # not compatible
query I rowsort label-1437
SELECT - 65 * - 77 + - - NULLIF ( + CAST ( NULL AS INTEGER ), - COUNT ( * ) ) + 27
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1439
SELECT 55 * + + 66 * - 82 + + + 76 + COUNT( - 11 )
----
-297583

skipif mysql # not compatible
query I rowsort label-1439
SELECT 55 * + + 66 * - 82 + + + 76 + COUNT ( - 11 )
----
-297583

query I rowsort
SELECT 53 + - - ( - 21 ) col1
----
32

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

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

query I rowsort
SELECT 72 * + 22 AS col2
----
1584

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1443
SELECT ALL - 29 + + + MIN( DISTINCT + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1443
SELECT ALL - 29 + + + MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT ALL + 65 + - + 30
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1445
SELECT 53 DIV 31 * - ( + - NULLIF ( - 37, + CASE - 42 WHEN - 96 THEN - 51 DIV + 5 + + COUNT( * ) ELSE 52 END * 67 ) ) * COUNT( * ) AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-1445
SELECT 53 / 31 * - ( + - NULLIF ( - 37, + CASE - 42 WHEN - 96 THEN - 51 / + 5 + + COUNT ( * ) ELSE 52 END * 67 ) ) * COUNT ( * ) AS col1
----
-37

query I rowsort
SELECT ALL + 56 + + 96
----
152

query I rowsort
SELECT 69 + + + 95
----
164

onlyif mysql # aggregate syntax: 
query I rowsort label-1448
SELECT ALL - - 89 * 7 + + COUNT( * ) AS col0
----
624

skipif mysql # not compatible
query I rowsort label-1448
SELECT ALL - - 89 * 7 + + COUNT ( * ) AS col0
----
624

onlyif mysql # DIV for integer division: 
query I rowsort label-1449
SELECT DISTINCT - + 39 + - ( - 81 ) DIV + 78 AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-1449
SELECT DISTINCT - + 39 + - ( - 81 ) / + 78 AS col0
----
-38

query I rowsort
SELECT ( - - 94 ) + + ( 24 ) * 9 + - 12 AS col0
----
298

query I rowsort
SELECT ALL - + 23 + 50 * - - 4
----
177

query I rowsort
SELECT 88 * + + 94 * 65 AS col2
----
537680

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1453
SELECT - 65 + - + CAST( - - 44 AS SIGNED ) + + NULLIF ( + 41, 50 + ( + 85 + - 98 ) ) * + 12 AS col2
----
383

skipif mysql # not compatible
query I rowsort label-1453
SELECT - 65 + - + CAST ( - - 44 AS INTEGER ) + + NULLIF ( + 41, 50 + ( + 85 + - 98 ) ) * + 12 AS col2
----
383

query I rowsort
SELECT DISTINCT - - 97 - 17
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-1455
SELECT ALL MAX( - COALESCE ( - 85, - CASE 57 WHEN 17 THEN NULL ELSE 45 + + 21 END ) )
----
85

skipif mysql # not compatible
query I rowsort label-1455
SELECT ALL MAX ( - COALESCE ( - 85, - CASE 57 WHEN 17 THEN NULL ELSE 45 + + 21 END ) )
----
85

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

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

query II rowsort
SELECT + 31 * - ( + 93 ), - ( + 82 ) AS col1
----
-2883
-82

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1459
SELECT DISTINCT - 94 * + 44 - CAST( + AVG ( DISTINCT + + 88 ) AS SIGNED ) AS col0
----
-4224

skipif mysql # not compatible
query I rowsort label-1459
SELECT DISTINCT - 94 * + 44 - CAST ( + AVG ( DISTINCT + + 88 ) AS INTEGER ) AS col0
----
-4224

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1460
SELECT ALL + 51 * CASE WHEN NOT NULL IN ( - 45 ) THEN 84 * - 5 WHEN ( COUNT( * ) - - 35 ) IS NOT NULL THEN NULL END - CAST( SUM( DISTINCT + 51 ) AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1460
SELECT ALL + 51 * CASE WHEN NOT NULL IN ( - 45 ) THEN 84 * - 5 WHEN ( COUNT ( * ) - - 35 ) IS NOT NULL THEN NULL END - CAST ( SUM ( DISTINCT + 51 ) AS REAL ) AS col2
----
NULL

query I rowsort
SELECT - CASE - + 55 WHEN - 23 THEN NULL WHEN + 80 THEN + + 32 ELSE NULL END * + AVG ( - 98 + + 60 ) AS col1
----
NULL

query I rowsort
SELECT - 68 * - 91
----
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-1463
SELECT - MAX( - 59 )
----
59

skipif mysql # not compatible
query I rowsort label-1463
SELECT - MAX ( - 59 )
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-1464
SELECT DISTINCT - 2 * MIN( ALL COALESCE ( + + 88, + + COALESCE ( 57, - 92 + 11 ), - 91 * + 89 ) ) col1
----
-176

skipif mysql # not compatible
query I rowsort label-1464
SELECT DISTINCT - 2 * MIN ( ALL COALESCE ( + + 88, + + COALESCE ( 57, - 92 + 11 ), - 91 * + 89 ) ) col1
----
-176

query I rowsort
SELECT DISTINCT - 85 * - 39
----
3315

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1467
SELECT + 62 * + 27 + - 86 + + 54 + - 59 + - 82 DIV - 2
----
1624

skipif mysql # not compatible
query I rowsort label-1467
SELECT + 62 * + 27 + - 86 + + 54 + - 59 + - 82 / - 2
----
1624

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1468
SELECT 28 * COALESCE ( - 76, - 97 + ( + - CAST( + 41 AS SIGNED ) ) - 94, + 37, + 89 * + COUNT( - 12 ) )
----
-2128

skipif mysql # not compatible
query I rowsort label-1468
SELECT 28 * COALESCE ( - 76, - 97 + ( + - CAST ( + 41 AS INTEGER ) ) - 94, + 37, + 89 * + COUNT ( - 12 ) )
----
-2128

query I rowsort
SELECT ALL - 60 * + 22 * 31 * + 88
----
-3600960

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

skipif mysql # not compatible
query I rowsort label-1470
SELECT MAX ( + + 30 )
----
30

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

skipif mysql # not compatible
query I rowsort label-1471
SELECT + MIN ( - 12 )
----
-12

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

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

query II rowsort
SELECT 89 AS col2, - 17
----
89
-17

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1475
SELECT CASE - 32 WHEN 56 * + 76 + 8 / + 92 * - MAX( - 45 ) THEN NULL WHEN AVG ( - 1 ) * + 81 THEN NULL WHEN CAST( + 42 AS SIGNED ) + - 79 THEN - 99 ELSE NULL END + + 85 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1475
SELECT CASE - 32 WHEN 56 * + 76 + 8 / + 92 * - MAX ( - 45 ) THEN NULL WHEN AVG ( - 1 ) * + 81 THEN NULL WHEN CAST ( + 42 AS INTEGER ) + - 79 THEN - 99 ELSE NULL END + + 85 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1476
SELECT + MIN( DISTINCT - 90 ) AS col1
----
-90

skipif mysql # not compatible
query I rowsort label-1476
SELECT + MIN ( DISTINCT - 90 ) AS col1
----
-90

query I rowsort
SELECT ALL 60 + + 45 AS col1
----
105

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

skipif mysql # not compatible
query II rowsort label-1478
SELECT - COUNT ( * ) col2, - 34 AS col1
----
-1
-34

query II rowsort
SELECT ALL 9 AS col2, - 31 * + 30 col1
----
9
-930

query I rowsort
SELECT + NULLIF ( + - 29, 24 * - 80 ) * - 45
----
1305

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1482
SELECT ALL - 98 + ( + + CAST( - CAST( - 74 AS DECIMAL ) AS DECIMAL ) ) + - CAST( NULL AS SIGNED ) - 68 * + ( COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1482
SELECT ALL - 98 + ( + + CAST ( - CAST ( - 74 AS REAL ) AS REAL ) ) + - CAST ( NULL AS INTEGER ) - 68 * + ( COUNT ( * ) )
----
NULL

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1484
SELECT + 13 / COALESCE ( 75, + - 51 ) - + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1484
SELECT + 13 / COALESCE ( 75, + - 51 ) - + CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT + 66 + + - 42 * + 27 AS col0
----
-1068

onlyif mysql # aggregate syntax: 
query I rowsort label-1486
SELECT + COUNT( DISTINCT 65 ) + + 27
----
28

skipif mysql # not compatible
query I rowsort label-1486
SELECT + COUNT ( DISTINCT 65 ) + + 27
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-1487
SELECT - + 80 DIV + + 14
----
-5

skipif mysql # not compatible
query I rowsort label-1487
SELECT - + 80 / + + 14
----
-5

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

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

query II rowsort
SELECT - + 63 + 69 AS col1, 52 col0
----
6
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1490
SELECT DISTINCT + 58 DIV + MIN( DISTINCT - + 75 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1490
SELECT DISTINCT + 58 / + MIN ( DISTINCT - + 75 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1491
SELECT ALL - COUNT( NULLIF ( 24, + - 56 ) ) - + + 72 AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-1491
SELECT ALL - COUNT ( NULLIF ( 24, + - 56 ) ) - + + 72 AS col1
----
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1492
SELECT ALL + CASE WHEN NOT SUM( - + 52 ) NOT BETWEEN 87 AND - + 97 + + ( - 49 ) THEN - 12 + - COUNT( DISTINCT - 8 + CASE NULLIF ( 26, + ( 89 ) * 5 ) WHEN - CAST( + 3 AS SIGNED ) THEN - 93 WHEN - 71 + ( 35 ) THEN NULL ELSE 89 END ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1492
SELECT ALL + CASE WHEN NOT SUM ( - + 52 ) NOT BETWEEN 87 AND - + 97 + + ( - 49 ) THEN - 12 + - COUNT ( DISTINCT - 8 + CASE NULLIF ( 26, + ( 89 ) * 5 ) WHEN - CAST ( + 3 AS INTEGER ) THEN - 93 WHEN - 71 + ( 35 ) THEN NULL ELSE 89 END ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1493
SELECT ALL + CAST( NULL AS SIGNED ) / - - MAX( - 32 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1493
SELECT ALL + CAST ( NULL AS INTEGER ) / - - MAX ( - 32 ) AS col0
----
NULL

query I rowsort
SELECT - - 44 - + 57 AS col1
----
-13

query I rowsort
SELECT DISTINCT + 6 * + 56 + - 6 AS col1
----
330

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1496
SELECT ALL NULLIF ( - + 3, CASE - - NULLIF ( - + 31, - 41 ) WHEN COUNT( - 90 ) THEN NULL WHEN - COUNT( * ) + + CAST( NULL AS SIGNED ) THEN + 78 END / + 44 )
----
-3

skipif mysql # not compatible
query I rowsort label-1496
SELECT ALL NULLIF ( - + 3, CASE - - NULLIF ( - + 31, - 41 ) WHEN COUNT ( - 90 ) THEN NULL WHEN - COUNT ( * ) + + CAST ( NULL AS INTEGER ) THEN + 78 END / + 44 )
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-1497
SELECT - COUNT( * ) AS col2, 25 * - COALESCE ( - + 55, - 54, COUNT( * ) ) AS col1
----
-1
1375

skipif mysql # not compatible
query II rowsort label-1497
SELECT - COUNT ( * ) AS col2, 25 * - COALESCE ( - + 55, - 54, COUNT ( * ) ) AS col1
----
-1
1375

query I rowsort
SELECT - 96 + + ( - 64 ) AS col1
----
-160

onlyif mysql # aggregate syntax: 
query I rowsort label-1499
SELECT - SUM( + + 49 ) * + 44 AS col1
----
-2156

skipif mysql # not compatible
query I rowsort label-1499
SELECT - SUM ( + + 49 ) * + 44 AS col1
----
-2156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1500
SELECT CAST( + 23 AS SIGNED ) AS col0, 95 * + - 11 * + CAST( NULL AS SIGNED ) + + - 76 + ( - COUNT( * ) )
----
23
NULL

skipif mysql # not compatible
query II rowsort label-1500
SELECT CAST ( + 23 AS INTEGER ) AS col0, 95 * + - 11 * + CAST ( NULL AS INTEGER ) + + - 76 + ( - COUNT ( * ) )
----
23
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1501
SELECT - 38 * + COALESCE ( + + 22, - 99 + - 50 + - 60 - - 12, 77 * MIN( 0 ) ) AS col0
----
-836

skipif mysql # not compatible
query I rowsort label-1501
SELECT - 38 * + COALESCE ( + + 22, - 99 + - 50 + - 60 - - 12, 77 * MIN ( 0 ) ) AS col0
----
-836

query I rowsort
SELECT ALL + 28 * - + 82 AS col1
----
-2296

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

skipif mysql # not compatible
query I rowsort label-1503
SELECT ALL + ( - CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1504
SELECT - NULLIF ( + 75, - 60 * - - 92 * + 11 * + 30 * COALESCE ( + ( COUNT( * ) ), + MAX( ALL - 8 ) / - NULLIF ( - 31, 16 ) ) * ( 79 + 48 ) + - 95 + 58 ) * 53
----
-3975

skipif mysql # not compatible
query I rowsort label-1504
SELECT - NULLIF ( + 75, - 60 * - - 92 * + 11 * + 30 * COALESCE ( + ( COUNT ( * ) ), + MAX ( ALL - 8 ) / - NULLIF ( - 31, 16 ) ) * ( 79 + 48 ) + - 95 + 58 ) * 53
----
-3975

query I rowsort
SELECT NULLIF ( - - 77, + 8 )
----
77

query I rowsort
SELECT + 84 * - - 31 * 92 * 14
----
3353952

query I rowsort
SELECT ALL + 91 * - 92 + + 31
----
-8341

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1508
SELECT SUM( - 71 ) DIV - 49 + 64 col2
----
65

skipif mysql # not compatible
query I rowsort label-1508
SELECT SUM ( - 71 ) / - 49 + 64 col2
----
65

query I rowsort
SELECT 56 * - - 42 - - 57
----
2409

onlyif mysql # aggregate syntax: 
query I rowsort label-1510
SELECT + CASE 61 WHEN 63 + + COUNT( * ) + - + 89 + 31 * - 8 * + NULLIF ( AVG ( ALL - 55 ) * 37, MIN( DISTINCT 84 ) + 2 / COUNT( * ) ) * 25 THEN 81 WHEN AVG ( ALL - 21 ) / - 20 - SUM( 94 + 91 / - 59 ) THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1510
SELECT + CASE 61 WHEN 63 + + COUNT ( * ) + - + 89 + 31 * - 8 * + NULLIF ( AVG ( ALL - 55 ) * 37, MIN ( DISTINCT 84 ) + 2 / COUNT ( * ) ) * 25 THEN 81 WHEN AVG ( ALL - 21 ) / - 20 - SUM ( 94 + 91 / - 59 ) THEN NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1511
SELECT ALL CASE COUNT( * ) WHEN - 54 THEN - COUNT( * ) + + + 82 * - CAST( - + 43 AS DECIMAL ) END * + 60 + + 15
----
NULL

skipif mysql # not compatible
query I rowsort label-1511
SELECT ALL CASE COUNT ( * ) WHEN - 54 THEN - COUNT ( * ) + + + 82 * - CAST ( - + 43 AS REAL ) END * + 60 + + 15
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1512
SELECT ALL CASE + 91 WHEN 92 * 13 + - 7 + + 98 THEN - AVG ( 67 ) WHEN - NULLIF ( + 74, - 0 ) * CASE 70 WHEN 41 * 63 THEN CASE + CAST( NULL AS SIGNED ) WHEN + 68 * 33 THEN 79 WHEN - CAST( NULL AS DECIMAL ) THEN NULL WHEN 29 * - 16 THEN NULL END END THEN 88 END * - 55 + + 8 * COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1512
SELECT ALL CASE + 91 WHEN 92 * 13 + - 7 + + 98 THEN - AVG ( 67 ) WHEN - NULLIF ( + 74, - 0 ) * CASE 70 WHEN 41 * 63 THEN CASE + CAST ( NULL AS INTEGER ) WHEN + 68 * 33 THEN 79 WHEN - CAST ( NULL AS REAL ) THEN NULL WHEN 29 * - 16 THEN NULL END END THEN 88 END * - 55 + + 8 * COUNT ( * ) col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1513
SELECT 65 * - MIN( + + 89 ) + + 60 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1513
SELECT 65 * - MIN ( + + 89 ) + + 60 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL NULLIF ( 96, + 32 + + - 20 / 44 + - 9 ) * - + NULLIF ( 95, - 1 ) * ( - 62 * 68 ) + + 23 AS col1
----
38449943

onlyif mysql # aggregate syntax: 
query II rowsort label-1515
SELECT DISTINCT 62 * + + COUNT( * ) + - 45 AS col2, COUNT( * )
----
17
1

skipif mysql # not compatible
query II rowsort label-1515
SELECT DISTINCT 62 * + + COUNT ( * ) + - 45 AS col2, COUNT ( * )
----
17
1

query I rowsort
SELECT + NULLIF ( - 23, + 68 * - 84 + - 29 ) + 3
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-1517
SELECT ALL 37 * - COUNT( ALL 84 ) + - 60 + + 97 - + - CASE - + 78 WHEN + 72 * - MAX( DISTINCT 50 / 27 ) - + COUNT( * ) THEN + 21 WHEN + 20 THEN NULL ELSE 35 END * - 84
----
-2940

skipif mysql # not compatible
query I rowsort label-1517
SELECT ALL 37 * - COUNT ( ALL 84 ) + - 60 + + 97 - + - CASE - + 78 WHEN + 72 * - MAX ( DISTINCT 50 / 27 ) - + COUNT ( * ) THEN + 21 WHEN + 20 THEN NULL ELSE 35 END * - 84
----
-2940

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1518
SELECT + 94 + - 23 - ( + + 77 ) + - + COUNT( * ) DIV - 39 - 48
----
-54

skipif mysql # not compatible
query I rowsort label-1518
SELECT + 94 + - 23 - ( + + 77 ) + - + COUNT ( * ) / - 39 - 48
----
-54

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1520
SELECT + + COUNT( * ) * - + COUNT( * ) + 73 + - CAST( NULL AS DECIMAL ) * + 68 + CAST( - + 12 AS SIGNED ) + + COUNT( * ) * 65 * 22
----
NULL

skipif mysql # not compatible
query I rowsort label-1520
SELECT + + COUNT ( * ) * - + COUNT ( * ) + 73 + - CAST ( NULL AS REAL ) * + 68 + CAST ( - + 12 AS INTEGER ) + + COUNT ( * ) * 65 * 22
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1521
SELECT + + 84 * + MIN( DISTINCT + 33 ) * - - 39 + + - 74 + + 28 + 7
----
108069

skipif mysql # not compatible
query I rowsort label-1521
SELECT + + 84 * + MIN ( DISTINCT + 33 ) * - - 39 + + - 74 + + 28 + 7
----
108069

query I rowsort
SELECT ALL - CASE - 72 WHEN 22 + + 6 THEN NULL ELSE + + 85 END
----
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1523
SELECT + NULLIF ( 1, + MAX( ALL + - 23 ) + + + COALESCE ( - 40, + 32 + 0 / - NULLIF ( 57 / 64, ( 25 ) ), + 75 ) - - 7 * CAST( NULL AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-1523
SELECT + NULLIF ( 1, + MAX ( ALL + - 23 ) + + + COALESCE ( - 40, + 32 + 0 / - NULLIF ( 57 / 64, ( 25 ) ), + 75 ) - - 7 * CAST ( NULL AS INTEGER ) )
----
1

query II rowsort
SELECT 9 * - 52 + - 97 AS col1, - 64 * - 43 + - 61
----
-565
2691

query I rowsort
SELECT ALL + 29 - + 89 * + + ( - 77 ) + - - 37 * + 98
----
10508

query I rowsort
SELECT + 86 * 90 * 5 * - + 26 AS col2
----
-1006200

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1527
SELECT DISTINCT - NULLIF ( - - 15, + 30 DIV + CASE - 0 WHEN + 54 * - 14 * - CAST( NULL AS SIGNED ) - 43 + + 35 THEN - 94 * ( 25 ) WHEN 27 THEN 20 + 68 ELSE NULL END + + COALESCE ( 13, 83 DIV + 64, - 11 ) - + 35 ) DIV 31
----
0

skipif mysql # not compatible
query I rowsort label-1527
SELECT DISTINCT - NULLIF ( - - 15, + 30 / + CASE - 0 WHEN + 54 * - 14 * - CAST ( NULL AS INTEGER ) - 43 + + 35 THEN - 94 * ( 25 ) WHEN 27 THEN 20 + 68 ELSE NULL END + + COALESCE ( 13, 83 / + 64, - 11 ) - + 35 ) / 31
----
0

query I rowsort
SELECT ALL 83 * + - 80 AS col0
----
-6640

onlyif mysql # aggregate syntax: 
query I rowsort label-1529
SELECT + - 57 * 23 * - 94 * - COUNT( DISTINCT + + 87 ) AS col0
----
-123234

skipif mysql # not compatible
query I rowsort label-1529
SELECT + - 57 * 23 * - 94 * - COUNT ( DISTINCT + + 87 ) AS col0
----
-123234

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1530
SELECT + 27 + + COALESCE ( + 59, + MIN( DISTINCT + - 25 ), - 30 ) DIV + 38 col1
----
28

skipif mysql # not compatible
query I rowsort label-1530
SELECT + 27 + + COALESCE ( + 59, + MIN ( DISTINCT + - 25 ), - 30 ) / + 38 col1
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1531
SELECT + - CASE - 21 WHEN - 57 + 65 THEN - - 83 WHEN - 82 * + + 43 THEN NULL ELSE NULL END + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1531
SELECT + - CASE - 21 WHEN - 57 + 65 THEN - - 83 WHEN - 82 * + + 43 THEN NULL ELSE NULL END + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1532
SELECT + 2 * 38 - + 8 + 53 + - 98 + - 18 * - 95 * + COUNT( * ) * ( - 87 * 27 )
----
-4016767

skipif mysql # not compatible
query I rowsort label-1532
SELECT + 2 * 38 - + 8 + 53 + - 98 + - 18 * - 95 * + COUNT ( * ) * ( - 87 * 27 )
----
-4016767

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

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

query I rowsort
SELECT + 25 + + 78 AS col0
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-1535
SELECT ALL + 96 + COUNT( * ) + - - 33
----
130

skipif mysql # not compatible
query I rowsort label-1535
SELECT ALL + 96 + COUNT ( * ) + - - 33
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-1536
SELECT - 53 * 46 * + 3 * + - 20 + - NULLIF ( + 76, 65 + - 42 - COUNT( * ) * - 6 ) + 98 AS col1
----
146302

skipif mysql # not compatible
query I rowsort label-1536
SELECT - 53 * 46 * + 3 * + - 20 + - NULLIF ( + 76, 65 + - 42 - COUNT ( * ) * - 6 ) + 98 AS col1
----
146302

query I rowsort
SELECT DISTINCT + 87 * + + 40 AS col1
----
3480

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1538
SELECT + CAST( NULLIF ( + + 77, - - 68 ) AS SIGNED )
----
77

skipif mysql # not compatible
query I rowsort label-1538
SELECT + CAST ( NULLIF ( + + 77, - - 68 ) AS INTEGER )
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1539
SELECT + SUM( DISTINCT + - 14 ) * - + 71 AS col1
----
994

skipif mysql # not compatible
query I rowsort label-1539
SELECT + SUM ( DISTINCT + - 14 ) * - + 71 AS col1
----
994

onlyif mysql # aggregate syntax: 
query I rowsort label-1540
SELECT - ( + COUNT( * ) ) + + 96 AS col2
----
95

skipif mysql # not compatible
query I rowsort label-1540
SELECT - ( + COUNT ( * ) ) + + 96 AS col2
----
95

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1541
SELECT ALL CAST( + 59 AS SIGNED ) + - CAST( + + CAST( NULL AS DECIMAL ) AS DECIMAL ) + - 17 / + - 18 + + ( + 59 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1541
SELECT ALL CAST ( + 59 AS INTEGER ) + - CAST ( + + CAST ( NULL AS REAL ) AS REAL ) + - 17 / + - 18 + + ( + 59 ) AS col1
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1543
SELECT ALL - 97 + + 59 + + 5 + - + 60 * + NULLIF ( + - 81, 36 - 82 - COUNT( * ) ) + 40 * CASE + 48 WHEN 89 THEN - ( + 65 ) + - CAST( + 32 AS SIGNED ) * NULLIF ( + 44 DIV 61, + 20 ) WHEN 83 THEN - 24 ELSE 24 END AS col1
----
5787

skipif mysql # not compatible
query I rowsort label-1543
SELECT ALL - 97 + + 59 + + 5 + - + 60 * + NULLIF ( + - 81, 36 - 82 - COUNT ( * ) ) + 40 * CASE + 48 WHEN 89 THEN - ( + 65 ) + - CAST ( + 32 AS INTEGER ) * NULLIF ( + 44 / 61, + 20 ) WHEN 83 THEN - 24 ELSE 24 END AS col1
----
5787

query I rowsort
SELECT 72 * + 72 AS col0
----
5184

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1545
SELECT ALL - 34 DIV - COALESCE ( 47, + CAST( NULL AS SIGNED ) DIV 26 ) DIV + 89 DIV - + 59 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1545
SELECT ALL - 34 / - COALESCE ( 47, + CAST ( NULL AS INTEGER ) / 26 ) / + 89 / - + 59 AS col2
----
0

query I rowsort
SELECT ALL 30 * + 11 AS col2
----
330

query I rowsort
SELECT 59 - + - 10 AS col1
----
69

onlyif mysql # aggregate syntax: 
query II rowsort label-1548
SELECT + 62 AS col2, - COUNT( - 53 ) AS col2
----
62
-1

skipif mysql # not compatible
query II rowsort label-1548
SELECT + 62 AS col2, - COUNT ( - 53 ) AS col2
----
62
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1549
SELECT ALL - 35 DIV - 20 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1549
SELECT ALL - 35 / - 20 AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1550
SELECT 68 DIV + 19
----
3

skipif mysql # not compatible
query I rowsort label-1550
SELECT 68 / + 19
----
3

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

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

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

query I rowsort
SELECT - 62 * - - 94 AS col1
----
-5828

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1554
SELECT - MIN( 64 ) DIV - + 96 * 77
----
0

skipif mysql # not compatible
query I rowsort label-1554
SELECT - MIN ( 64 ) / - + 96 * 77
----
0

query I rowsort
SELECT DISTINCT + CASE - 90 WHEN - 65 THEN NULL ELSE - 43 END AS col1
----
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-1556
SELECT - 50 AS col0, 77 + COUNT( * ) + + - 55 AS col1
----
-50
23

skipif mysql # not compatible
query II rowsort label-1556
SELECT - 50 AS col0, 77 + COUNT ( * ) + + - 55 AS col1
----
-50
23

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

query I rowsort
SELECT + 20 * - 84
----
-1680

query II rowsort
SELECT 25, - 49 AS col0
----
25
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-1560
SELECT + 78 + + 27 * COUNT( * )
----
105

skipif mysql # not compatible
query I rowsort label-1560
SELECT + 78 + + 27 * COUNT ( * )
----
105

query I rowsort
SELECT DISTINCT - 23 * + - ( + 67 ) AS col2
----
1541

query I rowsort
SELECT ALL - 65 + 28 AS col2
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-1563
SELECT 12 - - + 25 + - COUNT( * )
----
36

skipif mysql # not compatible
query I rowsort label-1563
SELECT 12 - - + 25 + - COUNT ( * )
----
36

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

skipif mysql # not compatible
query I rowsort label-1564
SELECT CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) * + 58 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1565
SELECT ALL ( + CASE COALESCE ( - + 14, COUNT( * ) + - COUNT( * ) * + - 45 * 52 ) WHEN - 28 THEN 23 WHEN - 16 THEN NULL ELSE NULL END ) + + 86 * - 80
----
NULL

skipif mysql # not compatible
query I rowsort label-1565
SELECT ALL ( + CASE COALESCE ( - + 14, COUNT ( * ) + - COUNT ( * ) * + - 45 * 52 ) WHEN - 28 THEN 23 WHEN - 16 THEN NULL ELSE NULL END ) + + 86 * - 80
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-1566
SELECT 34 DIV - 90, 90 AS col1
----
0
90

skipif mysql # not compatible
query II rowsort label-1566
SELECT 34 / - 90, 90 AS col1
----
0
90

query I rowsort
SELECT COALESCE ( + + 90, + 5 ) + + 12 AS col1
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-1568
SELECT AVG ( ALL 39 ) * + - 14 + - COUNT( * ) - + + ( 53 ) - - 4 - + NULLIF ( 47, 47 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1568
SELECT AVG ( ALL 39 ) * + - 14 + - COUNT ( * ) - + + ( 53 ) - - 4 - + NULLIF ( 47, 47 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1569
SELECT ALL 43 DIV - 52 * + CASE 4 WHEN + 68 + + 21 THEN + + COUNT( - 37 ) * + COUNT( * ) * + 35 WHEN 46 * COALESCE ( ( - 25 ), ( 8 ) ) + 49 THEN NULL ELSE 96 END
----
0

skipif mysql # not compatible
query I rowsort label-1569
SELECT ALL 43 / - 52 * + CASE 4 WHEN + 68 + + 21 THEN + + COUNT ( - 37 ) * + COUNT ( * ) * + 35 WHEN 46 * COALESCE ( ( - 25 ), ( 8 ) ) + 49 THEN NULL ELSE 96 END
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1571
SELECT ALL - NULLIF ( + 90, + - ( + - 40 ) / COUNT( * ) + - 66 )
----
-90

skipif mysql # not compatible
query I rowsort label-1571
SELECT ALL - NULLIF ( + 90, + - ( + - 40 ) / COUNT ( * ) + - 66 )
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-1572
SELECT + 73 DIV + + 87 - 24 AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-1572
SELECT + 73 / + + 87 - 24 AS col1
----
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-1573
SELECT DISTINCT 48 - 48 DIV 51
----
48

skipif mysql # not compatible
query I rowsort label-1573
SELECT DISTINCT 48 - 48 / 51
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1574
SELECT ALL 7 DIV MAX( DISTINCT + 8 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1574
SELECT ALL 7 / MAX ( DISTINCT + 8 ) AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1575
SELECT + COALESCE ( 52, - + 26 * - 30, + 87 ) DIV + + 65 * - COUNT( * ) + - 50 DIV + ( - 51 ) + - 6
----
-6

skipif mysql # not compatible
query I rowsort label-1575
SELECT + COALESCE ( 52, - + 26 * - 30, + 87 ) / + + 65 * - COUNT ( * ) + - 50 / + ( - 51 ) + - 6
----
-6

query I rowsort
SELECT 7 * + 65 AS col2
----
455

query I rowsort
SELECT 78 + + 26
----
104

query I rowsort
SELECT 84 * + 16 * - 94 col2
----
-126336

query I rowsort
SELECT DISTINCT 20 * 8 * 49 AS col2
----
7840

query I rowsort
SELECT - 59 * - 40 AS col1
----
2360

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1582
SELECT 32 + + NULLIF ( COUNT( * ), + NULLIF ( - 62, + - 60 + - CAST( - NULLIF ( + 42, 76 ) AS SIGNED ) + + MIN( + 26 + 70 ) ) ) AS col0
----
33

skipif mysql # not compatible
query I rowsort label-1582
SELECT 32 + + NULLIF ( COUNT ( * ), + NULLIF ( - 62, + - 60 + - CAST ( - NULLIF ( + 42, 76 ) AS INTEGER ) + + MIN ( + 26 + 70 ) ) ) AS col0
----
33

query I rowsort
SELECT + 26 * - 41 AS col1
----
-1066

onlyif mysql # aggregate syntax: 
query I rowsort label-1584
SELECT CASE WHEN 5 = NULL THEN + 80 ELSE NULL END + + 79 * ( + COUNT( * ) ) / 97 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1584
SELECT CASE WHEN 5 = NULL THEN + 80 ELSE NULL END + + 79 * ( + COUNT ( * ) ) / 97 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1585
SELECT - 17 * - - COUNT( * ) * + ( - + 62 ) * - 15 * - - 89 + - + CAST( NULL AS SIGNED ) - - - CAST( + 32 AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1585
SELECT - 17 * - - COUNT ( * ) * + ( - + 62 ) * - 15 * - - 89 + - + CAST ( NULL AS INTEGER ) - - - CAST ( + 32 AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 57 * + + 56 * + - 11 AS col1
----
-35112

onlyif mysql # aggregate syntax: 
query I rowsort label-1587
SELECT - COUNT( * ) * 62 + - + COUNT( * ) + 26
----
-37

skipif mysql # not compatible
query I rowsort label-1587
SELECT - COUNT ( * ) * 62 + - + COUNT ( * ) + 26
----
-37

query I rowsort
SELECT DISTINCT + 27 * 53 * + 10 col2
----
14310

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1590
SELECT DISTINCT + + SUM( - ( + + 40 ) ) * 94 AS col0
----
-3760

skipif mysql # not compatible
query I rowsort label-1590
SELECT DISTINCT + + SUM ( - ( + + 40 ) ) * 94 AS col0
----
-3760

onlyif mysql # aggregate syntax: 
query I rowsort label-1591
SELECT ALL + 94 + + ( + ( - 19 ) ) + 26 * COUNT( * ) * - 84
----
-2109

skipif mysql # not compatible
query I rowsort label-1591
SELECT ALL + 94 + + ( + ( - 19 ) ) + 26 * COUNT ( * ) * - 84
----
-2109

query II rowsort
SELECT ALL - 36 + - + 44 AS col2, - 32
----
-80
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-1593
SELECT 80 * - + ( - COUNT( * ) ) * - 63 AS col0
----
-5040

skipif mysql # not compatible
query I rowsort label-1593
SELECT 80 * - + ( - COUNT ( * ) ) * - 63 AS col0
----
-5040

query I rowsort
SELECT ALL + 25 * 99
----
2475

onlyif mysql # aggregate syntax: 
query I rowsort label-1595
SELECT DISTINCT - MIN( DISTINCT 76 ) + + 70 * - 87 + - 0
----
-6166

skipif mysql # not compatible
query I rowsort label-1595
SELECT DISTINCT - MIN ( DISTINCT 76 ) + + 70 * - 87 + - 0
----
-6166

query I rowsort
SELECT DISTINCT ( - 93 ) + - 17
----
-110

query II rowsort
SELECT ALL - 33 + + - ( - 74 ) * - 13, 79 * 76 AS col1
----
-995
6004

query I rowsort
SELECT ALL + 75 + - + 34 AS col2
----
41

query I rowsort
SELECT 37 * - - 17 AS col0
----
629

query I rowsort
SELECT 44 + - - 3
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1601
SELECT 79 * + 85 * - 51 * + COUNT( * )
----
-342465

skipif mysql # not compatible
query I rowsort label-1601
SELECT 79 * + 85 * - 51 * + COUNT ( * )
----
-342465

query I rowsort
SELECT + ( - + ( + 66 ) ) + + 1
----
-65

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1604
SELECT ALL 61 - - 92 DIV - 28
----
58

skipif mysql # not compatible
query I rowsort label-1604
SELECT ALL 61 - - 92 / - 28
----
58

query I rowsort
SELECT ALL 37 * 94 AS col2
----
3478

query I rowsort
SELECT + 43 + + - 50 AS col2
----
-7

query I rowsort
SELECT DISTINCT 66 * + + 35
----
2310

onlyif mysql # aggregate syntax: 
query I rowsort label-1608
SELECT DISTINCT 32 * + MIN( DISTINCT - - 90 ) - 78
----
2802

skipif mysql # not compatible
query I rowsort label-1608
SELECT DISTINCT 32 * + MIN ( DISTINCT - - 90 ) - 78
----
2802

query I rowsort
SELECT - 89 * - 70 AS col2
----
6230

query I rowsort
SELECT ALL 1 * - 5
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-1611
SELECT NULLIF ( + 21, SUM( + - 40 ) ) AS col0
----
21

skipif mysql # not compatible
query I rowsort label-1611
SELECT NULLIF ( + 21, SUM ( + - 40 ) ) AS col0
----
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-1612
SELECT + 99 AS col0, 29 DIV 44, - 72 - ( - + ( MIN( - 81 ) ) ) AS col2
----
99
0
-153

skipif mysql # not compatible
query III rowsort label-1612
SELECT + 99 AS col0, 29 / 44, - 72 - ( - + ( MIN ( - 81 ) ) ) AS col2
----
99
0
-153

query I rowsort
SELECT + 89 + + + 42 * 93 * - - 59 + - ( - - 45 )
----
230498

query I rowsort
SELECT + 48 * + 20 * - 62 AS col2
----
-59520

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1615
SELECT + CASE + 70 WHEN - 99 THEN + - 44 WHEN - 13 + - + 71 * + 84 - + 63 + CAST( - 4 AS SIGNED ) THEN + ( 66 ) END * + 22
----
NULL

skipif mysql # not compatible
query I rowsort label-1615
SELECT + CASE + 70 WHEN - 99 THEN + - 44 WHEN - 13 + - + 71 * + 84 - + 63 + CAST ( - 4 AS INTEGER ) THEN + ( 66 ) END * + 22
----
NULL

query I rowsort
SELECT - 62 * + - 31 + 1 + + + 30 + - - 41 + - 2
----
1992

onlyif mysql # DIV for integer division: 
query I rowsort label-1617
SELECT ALL - 41 DIV 7
----
-5

skipif mysql # not compatible
query I rowsort label-1617
SELECT ALL - 41 / 7
----
-5

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1619
SELECT DISTINCT 31 / CASE - 65 WHEN - 59 THEN - - ( 7 ) ELSE NULL END * + 11 * + CAST( + 79 AS SIGNED ) * - + 84 + ( 72 ) / + 93 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1619
SELECT DISTINCT 31 / CASE - 65 WHEN - 59 THEN - - ( 7 ) ELSE NULL END * + 11 * + CAST ( + 79 AS INTEGER ) * - + 84 + ( 72 ) / + 93 AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1621
SELECT + NULLIF ( + COUNT( DISTINCT + + 6 ), ( + ( - + 82 ) ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1621
SELECT + NULLIF ( + COUNT ( DISTINCT + + 6 ), ( + ( - + 82 ) ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1622
SELECT + 19 - 14 * ( COUNT( * ) )
----
5

skipif mysql # not compatible
query I rowsort label-1622
SELECT + 19 - 14 * ( COUNT ( * ) )
----
5

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

skipif mysql # not compatible
query I rowsort label-1623
SELECT + + MAX ( - 87 )
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1624
SELECT ALL - - COALESCE ( - COUNT( * ), - + COUNT( * ) DIV + CAST( NULL AS SIGNED ) - 61, + 61 ) * + - 96 + + 81
----
177

skipif mysql # not compatible
query I rowsort label-1624
SELECT ALL - - COALESCE ( - COUNT ( * ), - + COUNT ( * ) / + CAST ( NULL AS INTEGER ) - 61, + 61 ) * + - 96 + + 81
----
177

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

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

query I rowsort
SELECT ALL - - ( - 93 ) * - 78 + - CASE + 55 WHEN 2 + 4 THEN NULL ELSE - 25 END + + 3
----
7282

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1627
SELECT ALL 38 * 62 / - CAST( NULL AS SIGNED ) + + - 79 + 95 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1627
SELECT ALL 38 * 62 / - CAST ( NULL AS INTEGER ) + + - 79 + 95 AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1628
SELECT ALL - - 81 + COUNT ( * ) / - 75 * - 62
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1629
SELECT - + SUM( + 47 ) - + 16 * + SUM( - ( + 2 ) ) - - ( - 16 ) - + 72
----
-103

skipif mysql # not compatible
query I rowsort label-1629
SELECT - + SUM ( + 47 ) - + 16 * + SUM ( - ( + 2 ) ) - - ( - 16 ) - + 72
----
-103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1630
SELECT ALL - + 89 + + 26 - - CAST( + + 47 AS SIGNED ) + + 25 * COUNT( * ) * + - 52
----
-1316

skipif mysql # not compatible
query I rowsort label-1630
SELECT ALL - + 89 + + 26 - - CAST ( + + 47 AS INTEGER ) + + 25 * COUNT ( * ) * + - 52
----
-1316

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1631
SELECT + 49 + + - 5 DIV + COUNT( * ), + 37 - COUNT( * ) DIV - 38 AS col0
----
44
37

skipif mysql # not compatible
query II rowsort label-1631
SELECT + 49 + + - 5 / + COUNT ( * ), + 37 - COUNT ( * ) / - 38 AS col0
----
44
37

onlyif mysql # aggregate syntax: 
query II rowsort label-1632
SELECT - - 72, COUNT( - 78 ) + + + COALESCE ( - 15, - CASE ( 80 ) WHEN + COUNT( * ) + - 4 THEN COUNT( * ) * - 43 END, 58 ) AS col1
----
72
-14

skipif mysql # not compatible
query II rowsort label-1632
SELECT - - 72, COUNT ( - 78 ) + + + COALESCE ( - 15, - CASE ( 80 ) WHEN + COUNT ( * ) + - 4 THEN COUNT ( * ) * - 43 END, 58 ) AS col1
----
72
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1633
SELECT - MAX( DISTINCT + + CAST( NULL AS SIGNED ) ) + - + 42 + - 21 * + 47 * + + 63 * + - 51 + - - SUM( ALL - 27 ) * - 30 * + 42 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1633
SELECT - MAX ( DISTINCT + + CAST ( NULL AS INTEGER ) ) + - + 42 + - 21 * + 47 * + + 63 * + - 51 + - - SUM ( ALL - 27 ) * - 30 * + 42 AS col1
----
NULL

query I rowsort
SELECT - + 18 * - 61 * + 81 + - + 95
----
88843

query I rowsort
SELECT ALL + 38 * + - 5
----
-190

query II rowsort
SELECT 8 AS col0, - 41 col0
----
8
-41

query I rowsort
SELECT ALL - 65 * + 90 AS col2
----
-5850

query I rowsort
SELECT ALL + 11 - - 97 * + 49 AS col2
----
4764

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1639
SELECT - COALESCE ( - 21, - 68, + 41 * - COUNT( * ) / + 31 ) * + NULLIF ( 57, - - COUNT( + + 94 ) ) + - NULLIF ( + 4, - CAST( CAST( NULL AS SIGNED ) AS DECIMAL ) - - 99 ) + - CASE COUNT( * ) + ( 79 + + NULLIF ( + 11, CAST( + 83 AS SIGNED ) * CAST( NULL AS SIGNED ) ) * COUNT( * ) ) WHEN COUNT( 13 ) THEN ( + 72 ) END * - 3
----
NULL

skipif mysql # not compatible
query I rowsort label-1639
SELECT - COALESCE ( - 21, - 68, + 41 * - COUNT ( * ) / + 31 ) * + NULLIF ( 57, - - COUNT ( + + 94 ) ) + - NULLIF ( + 4, - CAST ( CAST ( NULL AS INTEGER ) AS REAL ) - - 99 ) + - CASE COUNT ( * ) + ( 79 + + NULLIF ( + 11, CAST ( + 83 AS INTEGER ) * CAST ( NULL AS INTEGER ) ) * COUNT ( * ) ) WHEN COUNT ( 13 ) THEN ( + 72 ) END * - 3
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1640
SELECT ALL + COUNT( * ) * COUNT( * ) * + + NULLIF ( - COALESCE ( + 80, 88 + ( + 0 ) ), COUNT( * ) * - 89 ) AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-1640
SELECT ALL + COUNT ( * ) * COUNT ( * ) * + + NULLIF ( - COALESCE ( + 80, 88 + ( + 0 ) ), COUNT ( * ) * - 89 ) AS col2
----
-80

query I rowsort
SELECT - 2 + - 63
----
-65

query I rowsort
SELECT DISTINCT + 20 * + + 15 AS col0
----
300

onlyif mysql # aggregate syntax: 
query I rowsort label-1643
SELECT ALL - 66 * + 50 * 40 * + COUNT( * )
----
-132000

skipif mysql # not compatible
query I rowsort label-1643
SELECT ALL - 66 * + 50 * 40 * + COUNT ( * )
----
-132000

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1645
SELECT - COALESCE ( + - 40, - - 18, + - COUNT( * ) - - COALESCE ( - COALESCE ( + 95, - 21, + 93 ), - - 63, + ( SUM( 76 ) ), CASE 15 WHEN + 94 THEN - 77 ELSE NULL END ) ) - NULLIF ( 80, 95 )
----
-40

skipif mysql # not compatible
query I rowsort label-1645
SELECT - COALESCE ( + - 40, - - 18, + - COUNT ( * ) - - COALESCE ( - COALESCE ( + 95, - 21, + 93 ), - - 63, + ( SUM ( 76 ) ), CASE 15 WHEN + 94 THEN - 77 ELSE NULL END ) ) - NULLIF ( 80, 95 )
----
-40

query II rowsort
SELECT - 66 * 20 AS col2, - 89 AS col0
----
-1320
-89

onlyif mysql # aggregate syntax: 
query II rowsort label-1647
SELECT 24, CASE 15 WHEN 65 THEN + 50 * 34 - COUNT( * ) - + 72 * + + 65 * 23 * - NULLIF ( - 67, 17 ) + - 16 END / + 79 + - NULLIF ( 48, - COUNT( * ) ) AS col0
----
24
NULL

skipif mysql # not compatible
query II rowsort label-1647
SELECT 24, CASE 15 WHEN 65 THEN + 50 * 34 - COUNT ( * ) - + 72 * + + 65 * 23 * - NULLIF ( - 67, 17 ) + - 16 END / + 79 + - NULLIF ( 48, - COUNT ( * ) ) AS col0
----
24
NULL

query I rowsort
SELECT - NULLIF ( - + 73, - 17 ) AS col1
----
73

onlyif mysql # aggregate syntax: 
query II rowsort label-1649
SELECT ALL + COUNT( * ), ( - 28 ) + + + 9 + + + 10 + + - ( - 41 ) * + COUNT( * ) AS col2
----
1
32

skipif mysql # not compatible
query II rowsort label-1649
SELECT ALL + COUNT ( * ), ( - 28 ) + + + 9 + + + 10 + + - ( - 41 ) * + COUNT ( * ) AS col2
----
1
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1650
SELECT - COALESCE ( - 68, COUNT( * ) + + CAST( - + ( 15 ) AS SIGNED ) ) * 0 * + 34 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1650
SELECT - COALESCE ( - 68, COUNT ( * ) + + CAST ( - + ( 15 ) AS INTEGER ) ) * 0 * + 34 AS col2
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1652
SELECT + COUNT( * ) * + CAST( - 90 AS SIGNED ) * 96 - + 20 AS col2
----
-8660

skipif mysql # not compatible
query I rowsort label-1652
SELECT + COUNT ( * ) * + CAST ( - 90 AS INTEGER ) * 96 - + 20 AS col2
----
-8660

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1653
SELECT 3 DIV ( - - 67 ) - - - MAX( 67 ) AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-1653
SELECT 3 / ( - - 67 ) - - - MAX ( 67 ) AS col0
----
-67

query I rowsort
SELECT + 51 * - 29 * - - 74 + + 27 AS col1
----
-109419

query I rowsort
SELECT ALL + 84 * - 45 AS col1
----
-3780

onlyif mysql # aggregate syntax: 
query II rowsort label-1656
SELECT - COUNT( * ) col2, MIN( + 77 ) * + + 94 + - 43 * + - 93 * - 50 - - 5
----
-1
-192707

skipif mysql # not compatible
query II rowsort label-1656
SELECT - COUNT ( * ) col2, MIN ( + 77 ) * + + 94 + - 43 * + - 93 * - 50 - - 5
----
-1
-192707

onlyif mysql # aggregate syntax: 
query I rowsort label-1657
SELECT - 8 * - + COUNT( * ) + CASE + - 69 WHEN 0 THEN NULLIF ( 81, + 22 ) WHEN - + 13 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1657
SELECT - 8 * - + COUNT ( * ) + CASE + - 69 WHEN 0 THEN NULLIF ( 81, + 22 ) WHEN - + 13 THEN NULL END
----
NULL

query II rowsort
SELECT DISTINCT + 89, 31 AS col1
----
89
31

query I rowsort
SELECT - - 29 + 43 AS col2
----
72

query I rowsort
SELECT - + 4 * - 55 * - - 30 - - 45 * + 95
----
10875

onlyif mysql # aggregate syntax: 
query II rowsort label-1661
SELECT 51 AS col1, - COUNT( * ) * + 56 * + 55 * 34
----
51
-104720

skipif mysql # not compatible
query II rowsort label-1661
SELECT 51 AS col1, - COUNT ( * ) * + 56 * + 55 * 34
----
51
-104720

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1662
SELECT ALL - + 52 / - - 35 + + CAST( + - 63 AS SIGNED ) + + + 4 + - + CASE - - COALESCE ( + 99, + 98 / 10 * + + 38 + 92 * COUNT( * ), + 29 + + 17 ) WHEN 30 THEN NULL WHEN SUM( - 24 ) - 12 THEN - 26 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1662
SELECT ALL - + 52 / - - 35 + + CAST ( + - 63 AS INTEGER ) + + + 4 + - + CASE - - COALESCE ( + 99, + 98 / 10 * + + 38 + 92 * COUNT ( * ), + 29 + + 17 ) WHEN 30 THEN NULL WHEN SUM ( - 24 ) - 12 THEN - 26 END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1663
SELECT + + MAX ( ALL 53 ) + - - 20 AS col2
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-1664
SELECT 49 DIV 11 DIV + NULLIF ( - - 80, - 42 ) - + 73 AS col2
----
-73

skipif mysql # not compatible
query I rowsort label-1664
SELECT 49 / 11 / + NULLIF ( - - 80, - 42 ) - + 73 AS col2
----
-73

query I rowsort
SELECT DISTINCT + 91 * + - 77 + + 38 AS col2
----
-6969

onlyif mysql # aggregate syntax: 
query I rowsort label-1666
SELECT ALL - + 20 * - - 61 * 13 * + - 52 - + ( - - 16 ) + + SUM( ALL 86 ) - + 1 AS col2
----
824789

skipif mysql # not compatible
query I rowsort label-1666
SELECT ALL - + 20 * - - 61 * 13 * + - 52 - + ( - - 16 ) + + SUM ( ALL 86 ) - + 1 AS col2
----
824789

onlyif mysql # aggregate syntax: 
query II rowsort label-1667
SELECT - + 75 * + 67 * 71 + + 4 AS col2, COUNT( * ) AS col0
----
-356771
1

skipif mysql # not compatible
query II rowsort label-1667
SELECT - + 75 * + 67 * 71 + + 4 AS col2, COUNT ( * ) AS col0
----
-356771
1

query II rowsort
SELECT ALL + - 23 AS col2, - 71 + - 19 + - + 40
----
-23
-130

query II rowsort
SELECT ALL + 30, 88 + 96 AS col0
----
30
184

query I rowsort
SELECT 88 * 43 + + 47 AS col0
----
3831

onlyif mysql # DIV for integer division: 
query II rowsort label-1671
SELECT ALL + + 6 AS col2, 44 + + 22 DIV - 7 + + + 31 AS col2
----
6
72

skipif mysql # not compatible
query II rowsort label-1671
SELECT ALL + + 6 AS col2, 44 + + 22 / - 7 + + + 31 AS col2
----
6
72

onlyif mysql # aggregate syntax: 
query II rowsort label-1672
SELECT ALL + - 54 * 16, ( - 9 ) - - + COUNT( * ) + SUM( - 98 ) AS col0
----
-864
-106

skipif mysql # not compatible
query II rowsort label-1672
SELECT ALL + - 54 * 16, ( - 9 ) - - + COUNT ( * ) + SUM ( - 98 ) AS col0
----
-864
-106

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1673
SELECT ALL + - 1 * - 49 * - - 36 * COUNT( * ) + + COALESCE ( - COUNT( 8 ), CAST( 26 AS SIGNED ) + + - 31, ( - 55 ), + 15 ) col1
----
1763

skipif mysql # not compatible
query I rowsort label-1673
SELECT ALL + - 1 * - 49 * - - 36 * COUNT ( * ) + + COALESCE ( - COUNT ( 8 ), CAST ( 26 AS INTEGER ) + + - 31, ( - 55 ), + 15 ) col1
----
1763

query I rowsort
SELECT + + 3 * 99 + + + 70
----
367

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1675
SELECT - COALESCE ( - 16, 89 * 78 * 16 * - 82 * + 42 * + COALESCE ( - COUNT( * ), + - COALESCE ( - + CAST( NULL AS SIGNED ), 32 ), - 37, - 78 ) - 67, 91 ) col0
----
16

skipif mysql # not compatible
query I rowsort label-1675
SELECT - COALESCE ( - 16, 89 * 78 * 16 * - 82 * + 42 * + COALESCE ( - COUNT ( * ), + - COALESCE ( - + CAST ( NULL AS INTEGER ), 32 ), - 37, - 78 ) - 67, 91 ) col0
----
16

query I rowsort
SELECT + 94 + - 12 AS col2
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-1677
SELECT - - 47 + - COUNT( ALL + 69 ) * + NULLIF ( + CASE COUNT( * ) WHEN ( COUNT( * ) ) + + - 95 THEN 16 * + 80 + 31 WHEN - 75 / - COUNT( * ) THEN 76 ELSE + COUNT( DISTINCT + 20 ) END, - 3 + - 99 )
----
46

skipif mysql # not compatible
query I rowsort label-1677
SELECT - - 47 + - COUNT ( ALL + 69 ) * + NULLIF ( + CASE COUNT ( * ) WHEN ( COUNT ( * ) ) + + - 95 THEN 16 * + 80 + 31 WHEN - 75 / - COUNT ( * ) THEN 76 ELSE + COUNT ( DISTINCT + 20 ) END, - 3 + - 99 )
----
46

query I rowsort
SELECT ALL - 79 - - 34 AS col0
----
-45

query I rowsort
SELECT DISTINCT 91 * + + COALESCE ( + 15, + 53 ) AS col1
----
1365

query I rowsort
SELECT 72 * - 62 col2
----
-4464

onlyif mysql # aggregate syntax: 
query II rowsort label-1681
SELECT 98 * - COUNT( * ) AS col0, + NULLIF ( - 74, - 47 - - 86 - 87 * - SUM( ALL 91 ) + + 76 ) + + - 69 + - + 72
----
-98
-215

skipif mysql # not compatible
query II rowsort label-1681
SELECT 98 * - COUNT ( * ) AS col0, + NULLIF ( - 74, - 47 - - 86 - 87 * - SUM ( ALL 91 ) + + 76 ) + + - 69 + - + 72
----
-98
-215

onlyif mysql # DIV for integer division: 
query II rowsort label-1682
SELECT ALL 25 DIV + 5, 69 AS col1
----
5
69

skipif mysql # not compatible
query II rowsort label-1682
SELECT ALL 25 / + 5, 69 AS col1
----
5
69

query I rowsort
SELECT DISTINCT - 90 + + 78 + - + 91
----
-103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-1684
SELECT ALL - 44 + + - COUNT( * ) AS col0, + CAST( + ( + + 93 ) AS SIGNED ), + - 47 AS col2
----
-45
93
-47

skipif mysql # not compatible
query III rowsort label-1684
SELECT ALL - 44 + + - COUNT ( * ) AS col0, + CAST ( + ( + + 93 ) AS INTEGER ), + - 47 AS col2
----
-45
93
-47

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1686
SELECT 23 * - NULLIF ( - 0, CAST( NULL AS DECIMAL ) ) * - + 52 * 93 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1686
SELECT 23 * - NULLIF ( - 0, CAST ( NULL AS REAL ) ) * - + 52 * 93 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1687
SELECT + - COUNT( ALL - 57 ) AS col1, 43 AS col0
----
-1
43

skipif mysql # not compatible
query II rowsort label-1687
SELECT + - COUNT ( ALL - 57 ) AS col1, 43 AS col0
----
-1
43

onlyif mysql # aggregate syntax: 
query I rowsort label-1688
SELECT ALL - + 89 + - 40 + - COUNT( * ) * + - 18 + 35
----
-76

skipif mysql # not compatible
query I rowsort label-1688
SELECT ALL - + 89 + - 40 + - COUNT ( * ) * + - 18 + 35
----
-76

onlyif mysql # aggregate syntax: 
query II rowsort label-1689
SELECT + - MAX( DISTINCT + 34 ) col1, + 18 AS col1
----
-34
18

skipif mysql # not compatible
query II rowsort label-1689
SELECT + - MAX ( DISTINCT + 34 ) col1, + 18 AS col1
----
-34
18

query I rowsort
SELECT DISTINCT 72 * - 0
----
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1692
SELECT DISTINCT - - 47 + + 15 + - 95 DIV + 43 - 61 col0
----
-1

skipif mysql # not compatible
query I rowsort label-1692
SELECT DISTINCT - - 47 + + 15 + - 95 / + 43 - 61 col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1693
SELECT ALL - 37 - - 22 * + CAST( - - 21 AS SIGNED ) + + 34 - 48 * - + 50 * + 35
----
84459

skipif mysql # not compatible
query I rowsort label-1693
SELECT ALL - 37 - - 22 * + CAST ( - - 21 AS INTEGER ) + + 34 - 48 * - + 50 * + 35
----
84459

query I rowsort
SELECT 66 - + 75
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-1695
SELECT - 87 * + - NULLIF ( - 25, - MIN( DISTINCT 35 ) )
----
-2175

skipif mysql # not compatible
query I rowsort label-1695
SELECT - 87 * + - NULLIF ( - 25, - MIN ( DISTINCT 35 ) )
----
-2175

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1696
SELECT ALL 57 * + 87 + - COUNT( * ) + 9 DIV + + COUNT( * ) AS col0, - 74
----
4967
-74

skipif mysql # not compatible
query II rowsort label-1696
SELECT ALL 57 * + 87 + - COUNT ( * ) + 9 / + + COUNT ( * ) AS col0, - 74
----
4967
-74

query I rowsort
SELECT - 14 * - + 13 - + 13 AS col0
----
169

query I rowsort
SELECT DISTINCT - + 79 col1
----
-79

query I rowsort
SELECT ALL - - 93 * 52
----
4836

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1700
SELECT COUNT( * ) * - + 20 * - 21 DIV + COUNT( * ) AS col1
----
420

skipif mysql # not compatible
query I rowsort label-1700
SELECT COUNT ( * ) * - + 20 * - 21 / + COUNT ( * ) AS col1
----
420

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1701
SELECT 72 - - + 36 + - COUNT( * ) + 47 * + 47 * + 69 col1, - 13 / CAST( NULL AS DECIMAL ) AS col1
----
152528
NULL

skipif mysql # not compatible
query II rowsort label-1701
SELECT 72 - - + 36 + - COUNT ( * ) + 47 * + 47 * + 69 col1, - 13 / CAST ( NULL AS REAL ) AS col1
----
152528
NULL

query I rowsort
SELECT 79 * - 53 col0
----
-4187

onlyif mysql # aggregate syntax: 
query I rowsort label-1703
SELECT COUNT( 79 ) * SUM( DISTINCT + - 64 ) * - + 28 AS col1
----
1792

skipif mysql # not compatible
query I rowsort label-1703
SELECT COUNT ( 79 ) * SUM ( DISTINCT + - 64 ) * - + 28 AS col1
----
1792

query I rowsort
SELECT ( - + 69 ) * + + 27 col0
----
-1863

query I rowsort
SELECT 91 * - + ( 75 )
----
-6825

query I rowsort
SELECT 62 + + + 75
----
137

onlyif mysql # DIV for integer division: 
query II rowsort label-1707
SELECT 63, 77 - - 32 DIV + 82 AS col0
----
63
77

skipif mysql # not compatible
query II rowsort label-1707
SELECT 63, 77 - - 32 / + 82 AS col0
----
63
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1708
SELECT 14 + 30 + + 1 + - - COUNT( * )
----
46

skipif mysql # not compatible
query I rowsort label-1708
SELECT 14 + 30 + + 1 + - - COUNT ( * )
----
46

onlyif mysql # aggregate syntax: 
query II rowsort label-1709
SELECT ALL 41 AS col0, ( - + SUM( ALL - - 40 ) )
----
41
-40

skipif mysql # not compatible
query II rowsort label-1709
SELECT ALL 41 AS col0, ( - + SUM ( ALL - - 40 ) )
----
41
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-1710
SELECT - 42 AS col1, + MIN( ALL + ( - + 45 ) ) AS col1
----
-42
-45

skipif mysql # not compatible
query II rowsort label-1710
SELECT - 42 AS col1, + MIN ( ALL + ( - + 45 ) ) AS col1
----
-42
-45

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1711
SELECT ALL 42 + - CAST( NULL AS DECIMAL ) * + 78 * - + 38 * - 49 + - 19 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1711
SELECT ALL 42 + - CAST ( NULL AS REAL ) * + 78 * - + 38 * - 49 + - 19 AS col2
----
NULL

query I rowsort
SELECT 16 + - 28
----
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1713
SELECT ALL 7 col2, 22 + COUNT( * ) + + + 34 DIV 75
----
7
23

skipif mysql # not compatible
query II rowsort label-1713
SELECT ALL 7 col2, 22 + COUNT ( * ) + + + 34 / 75
----
7
23

query I rowsort
SELECT 93 - - 20 + + 11 + + 8 * - 9 + + 54 * + 7
----
430

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

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

query I rowsort
SELECT - 41 * + - 8 - - 74
----
402

query I rowsort
SELECT - 26 * + + 60 AS col0
----
-1560

query I rowsort
SELECT DISTINCT + 38 * + ( - + 9 ) + - - 21 + 59 * + - 40 * - 58 col2
----
136559

query I rowsort
SELECT ALL - 3 * 2 - + 5 * + - 0 + - 17 + - 60
----
-83

query II rowsort
SELECT 86 AS col2, - 44 AS col2
----
86
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-1721
SELECT - + COUNT( * ) * 69 + - 74
----
-143

skipif mysql # not compatible
query I rowsort label-1721
SELECT - + COUNT ( * ) * 69 + - 74
----
-143

query I rowsort
SELECT + 93 * + 51 col0
----
4743

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

skipif mysql # not compatible
query II rowsort label-1723
SELECT + + COUNT ( * ) col1, - 64
----
1
-64

query I rowsort
SELECT - 62 * 66 + + 75 col2
----
-4017

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1725
SELECT ALL + - COUNT( * ), - COALESCE ( 12, + 38 * + + 13 - - 72 DIV + 45 + - - 77 ) col1
----
-1
-12

skipif mysql # not compatible
query II rowsort label-1725
SELECT ALL + - COUNT ( * ), - COALESCE ( 12, + 38 * + + 13 - - 72 / + 45 + - - 77 ) col1
----
-1
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-1726
SELECT - 15 + - COUNT( * )
----
-16

skipif mysql # not compatible
query I rowsort label-1726
SELECT - 15 + - COUNT ( * )
----
-16

query II rowsort
SELECT + 66 * - - 69 + ( - - 98 ) + 81 - - + 78 AS col0, 78 * - 0 * + - 90 AS col1
----
4811
0

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

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

skipif mysql # not compatible
query I rowsort label-1729
SELECT + MIN ( 46 )
----
46

query I rowsort
SELECT 45 * - 94 + - 65 - - 48 AS col0
----
-4247

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1731
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + 64 * + 71, + CAST( + 4 AS SIGNED ) AS col1
----
NULL
4

skipif mysql # not compatible
query II rowsort label-1731
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + 64 * + 71, + CAST ( + 4 AS INTEGER ) AS col1
----
NULL
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1732
SELECT + CASE + - 86 WHEN - 3 * - COALESCE ( - - 95, + + NULLIF ( + COUNT( * ), 1 * - 58 * ( - 19 ) + - MIN( ALL 98 ) ) * 81, - 88 / + NULLIF ( - 58, 37 ) ) * CAST( NULL AS SIGNED ) THEN NULL ELSE 3 END * - 50 + CAST( + COUNT( * ) - CAST( 39 AS SIGNED ) AS SIGNED ) AS col0
----
-188

skipif mysql # not compatible
query I rowsort label-1732
SELECT + CASE + - 86 WHEN - 3 * - COALESCE ( - - 95, + + NULLIF ( + COUNT ( * ), 1 * - 58 * ( - 19 ) + - MIN ( ALL 98 ) ) * 81, - 88 / + NULLIF ( - 58, 37 ) ) * CAST ( NULL AS INTEGER ) THEN NULL ELSE 3 END * - 50 + CAST ( + COUNT ( * ) - CAST ( 39 AS INTEGER ) AS INTEGER ) AS col0
----
-188

query I rowsort
SELECT ALL + + 34 col2
----
34

query I rowsort
SELECT DISTINCT - 7 * - 15 * - + 8
----
-840

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

skipif mysql # not compatible
query I rowsort label-1735
SELECT SUM ( DISTINCT 87 )
----
87

query I rowsort
SELECT ALL 37 + - 30 col1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-1737
SELECT 16 * - NULLIF ( 57, COUNT( * ) ) + - 83 - + + COALESCE ( + ( + + 93 ), 57, + 98, 11 ) * + NULLIF ( - 78, + - 86 * 36 + 44 )
----
6259

skipif mysql # not compatible
query I rowsort label-1737
SELECT 16 * - NULLIF ( 57, COUNT ( * ) ) + - 83 - + + COALESCE ( + ( + + 93 ), 57, + 98, 11 ) * + NULLIF ( - 78, + - 86 * 36 + 44 )
----
6259

onlyif mysql # DIV for integer division: 
query I rowsort label-1738
SELECT - 61 DIV 57 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1738
SELECT - 61 / 57 AS col0
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-1739
SELECT DISTINCT - 7 + 33 AS col2, - 71 * 2 DIV 56 - - + 56 AS col0
----
26
54

skipif mysql # not compatible
query II rowsort label-1739
SELECT DISTINCT - 7 + 33 AS col2, - 71 * 2 / 56 - - + 56 AS col0
----
26
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1740
SELECT ALL + 44 + + 78 + + CAST( - ( - 68 ) AS SIGNED ) * + 29 col1
----
2094

skipif mysql # not compatible
query I rowsort label-1740
SELECT ALL + 44 + + 78 + + CAST ( - ( - 68 ) AS INTEGER ) * + 29 col1
----
2094

onlyif mysql # aggregate syntax: 
query I rowsort label-1741
SELECT ALL - 89 + - SUM( - 30 ) * - ( + 65 )
----
-2039

skipif mysql # not compatible
query I rowsort label-1741
SELECT ALL - 89 + - SUM ( - 30 ) * - ( + 65 )
----
-2039

query I rowsort
SELECT DISTINCT - 72 + + 68 + - 30 + + 48
----
14

query I rowsort
SELECT + 7 + + 92
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1744
SELECT + 65 * + ( + CAST( - 50 AS SIGNED ) ) col0
----
-3250

skipif mysql # not compatible
query I rowsort label-1744
SELECT + 65 * + ( + CAST ( - 50 AS INTEGER ) ) col0
----
-3250

onlyif mysql # aggregate syntax: 
query I rowsort label-1745
SELECT ALL MIN( - 81 ) + - CASE WHEN - 63 IS NULL THEN + + 18 * + 29 ELSE 64 END
----
-145

skipif mysql # not compatible
query I rowsort label-1745
SELECT ALL MIN ( - 81 ) + - CASE WHEN - 63 IS NULL THEN + + 18 * + 29 ELSE 64 END
----
-145

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1746
SELECT + 71 + + 17 + + 65 + COUNT( * ) * + CAST( - ( + 40 ) AS SIGNED ) * 89 * + ( + COALESCE ( 7, + + COUNT( * ) ) ) * - 17
----
423793

skipif mysql # not compatible
query I rowsort label-1746
SELECT + 71 + + 17 + + 65 + COUNT ( * ) * + CAST ( - ( + 40 ) AS INTEGER ) * 89 * + ( + COALESCE ( 7, + + COUNT ( * ) ) ) * - 17
----
423793

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1747
SELECT + 77 + CAST( 17 AS SIGNED ) + - 9 * CAST( + - 15 AS SIGNED ) AS col2
----
229

skipif mysql # not compatible
query I rowsort label-1747
SELECT + 77 + CAST ( 17 AS INTEGER ) + - 9 * CAST ( + - 15 AS INTEGER ) AS col2
----
229

query I rowsort
SELECT DISTINCT 82 + - 66 * + + 43
----
-2756

query I rowsort
SELECT ALL + 45 + + 34 * - 25 AS col0
----
-805

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1750
SELECT ALL + 73 * COUNT( * ) DIV - 50 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1750
SELECT ALL + 73 * COUNT ( * ) / - 50 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-1751
SELECT DISTINCT 71 - - COUNT( * ) AS col2, CASE - 75 WHEN 53 THEN NULL WHEN - ( - 61 ) - + 68 THEN - - 15 END col2
----
72
NULL

skipif mysql # not compatible
query II rowsort label-1751
SELECT DISTINCT 71 - - COUNT ( * ) AS col2, CASE - 75 WHEN 53 THEN NULL WHEN - ( - 61 ) - + 68 THEN - - 15 END col2
----
72
NULL

query I rowsort
SELECT + 19 + 48 + 96 AS col2
----
163

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1755
SELECT + COUNT( * ) + + 71 + + 57
----
129

skipif mysql # not compatible
query I rowsort label-1755
SELECT + COUNT ( * ) + + 71 + + 57
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-1756
SELECT + COUNT( + 10 ) * - 17
----
-17

skipif mysql # not compatible
query I rowsort label-1756
SELECT + COUNT ( + 10 ) * - 17
----
-17

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1757
SELECT + 14 DIV + 82 + + COUNT( * ) * - 38 + 33 * + COUNT( * ) + + MIN( - + 77 ) - - ( + 80 ) * - - 85 * - + 36 AS col2, + 3 * - + 91 AS col2
----
-244882
-273

skipif mysql # not compatible
query II rowsort label-1757
SELECT + 14 / + 82 + + COUNT ( * ) * - 38 + 33 * + COUNT ( * ) + + MIN ( - + 77 ) - - ( + 80 ) * - - 85 * - + 36 AS col2, + 3 * - + 91 AS col2
----
-244882
-273

query I rowsort
SELECT - 60 * + + 67 - 18 - + + 27 AS col0
----
-4065

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

query II rowsort
SELECT + + 91 * + 99, ( 81 ) col0
----
9009
81

query I rowsort
SELECT + 93 * 87 AS col0
----
8091

onlyif mysql # DIV for integer division: 
query I rowsort label-1762
SELECT - - ( 58 ) DIV + 39
----
1

skipif mysql # not compatible
query I rowsort label-1762
SELECT - - ( 58 ) / + 39
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1763
SELECT NULLIF ( 80, - COUNT( * ) + + + COUNT( * ) ) AS col2
----
80

skipif mysql # not compatible
query I rowsort label-1763
SELECT NULLIF ( 80, - COUNT ( * ) + + + COUNT ( * ) ) AS col2
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-1764
SELECT ALL 31 * + ( + CASE MIN( + 54 ) WHEN + 75 * - 8 * + 55 THEN NULL ELSE 97 END ) + 20 * - 41 AS col1
----
2187

skipif mysql # not compatible
query I rowsort label-1764
SELECT ALL 31 * + ( + CASE MIN ( + 54 ) WHEN + 75 * - 8 * + 55 THEN NULL ELSE 97 END ) + 20 * - 41 AS col1
----
2187

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1765
SELECT + 67 - + 20 * - 55 * - CAST( + 30 AS SIGNED ) * - 94
----
3102067

skipif mysql # not compatible
query I rowsort label-1765
SELECT + 67 - + 20 * - 55 * - CAST ( + 30 AS INTEGER ) * - 94
----
3102067

query I rowsort
SELECT + 49 * + 80 * - 1 - + 36 AS col0
----
-3956

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1767
SELECT COALESCE ( + 67, + - 17 + + COUNT( DISTINCT 35 ) ) AS col0, - NULLIF ( - 49, + NULLIF ( - + ( - + CASE - MIN( DISTINCT + 19 ) WHEN - 12 * 90 THEN + SUM( CAST( NULL AS SIGNED ) ) END ), 64 + - ( 8 + 23 ) ) + + 51 / 52 ) * 16
----
67
784

skipif mysql # not compatible
query II rowsort label-1767
SELECT COALESCE ( + 67, + - 17 + + COUNT ( DISTINCT 35 ) ) AS col0, - NULLIF ( - 49, + NULLIF ( - + ( - + CASE - MIN ( DISTINCT + 19 ) WHEN - 12 * 90 THEN + SUM ( CAST ( NULL AS INTEGER ) ) END ), 64 + - ( 8 + 23 ) ) + + 51 / 52 ) * 16
----
67
784

onlyif mysql # aggregate syntax: 
query I rowsort label-1768
SELECT ALL + COALESCE ( + 42, - - COALESCE ( 73, 3 + 74, - SUM( - 91 ) ) )
----
42

skipif mysql # not compatible
query I rowsort label-1768
SELECT ALL + COALESCE ( + 42, - - COALESCE ( 73, 3 + 74, - SUM ( - 91 ) ) )
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-1769
SELECT ALL 68 * - + 6 * + + 89 + - MIN( ALL + ( 4 ) )
----
-36316

skipif mysql # not compatible
query I rowsort label-1769
SELECT ALL 68 * - + 6 * + + 89 + - MIN ( ALL + ( 4 ) )
----
-36316

query I rowsort
SELECT DISTINCT + ( + 94 ) col2
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1771
SELECT ALL + CASE + 29 WHEN 69 THEN - - ( + - 71 ) / - - CAST( 20 AS SIGNED ) WHEN + COALESCE ( 47, - SUM( - 84 ) + 55 / + COUNT( * ) + 1, + - 86 / + 96 ) * - 77 THEN NULL END * + COUNT( * ) + - 58 * 0
----
NULL

skipif mysql # not compatible
query I rowsort label-1771
SELECT ALL + CASE + 29 WHEN 69 THEN - - ( + - 71 ) / - - CAST ( 20 AS INTEGER ) WHEN + COALESCE ( 47, - SUM ( - 84 ) + 55 / + COUNT ( * ) + 1, + - 86 / + 96 ) * - 77 THEN NULL END * + COUNT ( * ) + - 58 * 0
----
NULL

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

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

query I rowsort
SELECT DISTINCT ( - 44 ) AS col0
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1775
SELECT - COUNT( * ) * + COUNT( DISTINCT CAST( NULL AS SIGNED ) ) * - - 29 * + 54 * + 95 - - - 77 AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-1775
SELECT - COUNT ( * ) * + COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) * - - 29 * + 54 * + 95 - - - 77 AS col2
----
-77

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1777
SELECT - CASE - 29 WHEN + 64 THEN NULL WHEN - COUNT( * ) THEN - COALESCE ( + 85, COUNT( * ) ) * + 39 END + 21 + + - 65 + - - 4 * - 41 + COUNT( * ) + 91 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1777
SELECT - CASE - 29 WHEN + 64 THEN NULL WHEN - COUNT ( * ) THEN - COALESCE ( + 85, COUNT ( * ) ) * + 39 END + 21 + + - 65 + - - 4 * - 41 + COUNT ( * ) + 91 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1778
SELECT - CASE + - 43 WHEN + - CAST( NULL AS SIGNED ) THEN 82 DIV - - 35 * - 11 ELSE ( + 8 ) END
----
-8

skipif mysql # not compatible
query I rowsort label-1778
SELECT - CASE + - 43 WHEN + - CAST ( NULL AS INTEGER ) THEN 82 / - - 35 * - 11 ELSE ( + 8 ) END
----
-8

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

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

query I rowsort
SELECT ALL + 59 - - 93
----
152

query I rowsort
SELECT + 8 + - 15
----
-7

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1783
SELECT CASE - 60 WHEN + 39 THEN - - 51 WHEN - COUNT( * ) THEN + 68 ELSE NULL END + - - COUNT( * ) + 7 * 70 * - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1783
SELECT CASE - 60 WHEN + 39 THEN - - 51 WHEN - COUNT ( * ) THEN + 68 ELSE NULL END + - - COUNT ( * ) + 7 * 70 * - - COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1784
SELECT 30 DIV - 8
----
-3

skipif mysql # not compatible
query I rowsort label-1784
SELECT 30 / - 8
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1785
SELECT + 84 + - 88 * + COUNT( * ) * 71
----
-6164

skipif mysql # not compatible
query I rowsort label-1785
SELECT + 84 + - 88 * + COUNT ( * ) * 71
----
-6164

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

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

query I rowsort
SELECT ALL + 0 * - 65 + - - 6
----
6

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

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

query I rowsort
SELECT DISTINCT 45 * + + 55
----
2475

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

query I rowsort
SELECT - 33 + 58
----
25

query II rowsort
SELECT ALL - - 7 AS col2, - NULLIF ( 92, 0 ) AS col1
----
7
-92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1793
SELECT DISTINCT + 6 + + 84 DIV + 7 + - - 89 + + 32 * - COUNT( * ) * - 91 col1
----
3019

skipif mysql # not compatible
query I rowsort label-1793
SELECT DISTINCT + 6 + + 84 / + 7 + - - 89 + + 32 * - COUNT ( * ) * - 91 col1
----
3019

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1796
SELECT + MAX( ALL - 93 ) AS col1
----
-93

skipif mysql # not compatible
query I rowsort label-1796
SELECT + MAX ( ALL - 93 ) AS col1
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-1797
SELECT 72 + COUNT( * ) * - + 80
----
-8

skipif mysql # not compatible
query I rowsort label-1797
SELECT 72 + COUNT ( * ) * - + 80
----
-8

query I rowsort
SELECT 53 * + 99 - + - 62
----
5309

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1799
SELECT ALL - 43 AS col0, CAST( - MIN( DISTINCT 99 ) AS SIGNED )
----
-43
-99

skipif mysql # not compatible
query II rowsort label-1799
SELECT ALL - 43 AS col0, CAST ( - MIN ( DISTINCT 99 ) AS INTEGER )
----
-43
-99

query II rowsort
SELECT 79, 51 AS col0
----
79
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1801
SELECT DISTINCT 67 + COUNT( * ) - + 73 + + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1801
SELECT DISTINCT 67 + COUNT ( * ) - + 73 + + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 89 + + + 7
----
-82

onlyif mysql # aggregate syntax: 
query II rowsort label-1803
SELECT ALL SUM( - 59 ) * - ( - 22 ), - 52 * - COUNT( * ) AS col0
----
-1298
52

skipif mysql # not compatible
query II rowsort label-1803
SELECT ALL SUM ( - 59 ) * - ( - 22 ), - 52 * - COUNT ( * ) AS col0
----
-1298
52

onlyif mysql # aggregate syntax: 
query II rowsort label-1804
SELECT 73 AS col0, + COUNT( * ) * - + 56 * - 97
----
73
5432

skipif mysql # not compatible
query II rowsort label-1804
SELECT 73 AS col0, + COUNT ( * ) * - + 56 * - 97
----
73
5432

query I rowsort
SELECT - 44 * + - 3 * NULLIF ( - - 80, 3 ) + 24
----
10584

onlyif mysql # aggregate syntax: 
query I rowsort label-1806
SELECT ALL + COUNT( * ) + + COUNT( * ) * + - 19 * + 41 AS col1
----
-778

skipif mysql # not compatible
query I rowsort label-1806
SELECT ALL + COUNT ( * ) + + COUNT ( * ) * + - 19 * + 41 AS col1
----
-778

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1807
SELECT CAST( 47 AS SIGNED ) DIV 29 + + - 58
----
-57

skipif mysql # not compatible
query I rowsort label-1807
SELECT CAST ( 47 AS INTEGER ) / 29 + + - 58
----
-57

query I rowsort
SELECT 32 * + - 72 AS col2
----
-2304

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1809
SELECT - ( 95 ) * - - CAST( NULL AS SIGNED ) + + + 46 - - 11 * + 37 + 92 * 90
----
NULL

skipif mysql # not compatible
query I rowsort label-1809
SELECT - ( 95 ) * - - CAST ( NULL AS INTEGER ) + + + 46 - - 11 * + 37 + 92 * 90
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1810
SELECT NULLIF ( 20, + 88 + + NULLIF ( + CAST( NULL AS SIGNED ), - 47 * + 79 / - + ( + 45 ) + COALESCE ( - + 91, - + 24 ) ) + - + SUM( ALL ( + 57 ) ) * + MAX( + 88 ) * 9 + 13 ) * - 34 AS col0
----
-680

skipif mysql # not compatible
query I rowsort label-1810
SELECT NULLIF ( 20, + 88 + + NULLIF ( + CAST ( NULL AS INTEGER ), - 47 * + 79 / - + ( + 45 ) + COALESCE ( - + 91, - + 24 ) ) + - + SUM ( ALL ( + 57 ) ) * + MAX ( + 88 ) * 9 + 13 ) * - 34 AS col0
----
-680

onlyif mysql # aggregate syntax: 
query II rowsort label-1811
SELECT ALL 49 AS col0, + MIN( - 9 )
----
49
-9

skipif mysql # not compatible
query II rowsort label-1811
SELECT ALL 49 AS col0, + MIN ( - 9 )
----
49
-9

query I rowsort
SELECT ALL 53 * - 78 AS col0
----
-4134

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

query II rowsort
SELECT ALL 7 AS col1, - 96
----
7
-96

query II rowsort
SELECT DISTINCT + 23 - 92, 95 col1
----
-69
95

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

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

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

query I rowsort
SELECT + 54 + - + 44
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-1819
SELECT MIN( + 65 ) - + 56 * - + 17
----
1017

skipif mysql # not compatible
query I rowsort label-1819
SELECT MIN ( + 65 ) - + 56 * - + 17
----
1017

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1820
SELECT - CAST( - COALESCE ( + 28, - + 2 ) AS SIGNED ) col2
----
28

skipif mysql # not compatible
query I rowsort label-1820
SELECT - CAST ( - COALESCE ( + 28, - + 2 ) AS INTEGER ) col2
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-1821
SELECT - 38 + - 22 * - COUNT( * ) AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-1821
SELECT - 38 + - 22 * - COUNT ( * ) AS col0
----
-16

query I rowsort
SELECT - 81 * - 1 * + 14 * + 67 + + 76 col1
----
76054

onlyif mysql # aggregate syntax: 
query I rowsort label-1823
SELECT ALL + COUNT( * ) * + - 9 + 53 + - + 90 * - + 40 AS col0
----
3644

skipif mysql # not compatible
query I rowsort label-1823
SELECT ALL + COUNT ( * ) * + - 9 + 53 + - + 90 * - + 40 AS col0
----
3644

query I rowsort
SELECT DISTINCT + - 34 * 17 AS col0
----
-578

query I rowsort
SELECT + 4 + + + 88 + - 56 + + - 2
----
34

query I rowsort
SELECT DISTINCT - + 21 + + 45 AS col2
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-1827
SELECT DISTINCT + 47 DIV + 7
----
6

skipif mysql # not compatible
query I rowsort label-1827
SELECT DISTINCT + 47 / + 7
----
6

query I rowsort
SELECT + 61 * + 47
----
2867

query II rowsort
SELECT ALL - 77 + + + 95, 96 AS col0
----
18
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1830
SELECT + COUNT( * ) / COUNT( * ) + + CASE + + 86 WHEN + + ( 56 ) THEN MAX( ( 70 ) ) WHEN COALESCE ( 7, - - COUNT( * ) * - 40 / + + 57 / - 22 ) THEN + COUNT( * ) + NULLIF ( + 71, 51 ) * + ( 67 * - 47 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1830
SELECT + COUNT ( * ) / COUNT ( * ) + + CASE + + 86 WHEN + + ( 56 ) THEN MAX ( ( 70 ) ) WHEN COALESCE ( 7, - - COUNT ( * ) * - 40 / + + 57 / - 22 ) THEN + COUNT ( * ) + NULLIF ( + 71, 51 ) * + ( 67 * - 47 ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1831
SELECT - CAST( + 55 AS SIGNED ) + + ( + 2 )
----
-53

skipif mysql # not compatible
query I rowsort label-1831
SELECT - CAST ( + 55 AS INTEGER ) + + ( + 2 )
----
-53

query I rowsort
SELECT DISTINCT 23 * + + 26
----
598

onlyif mysql # aggregate syntax: 
query I rowsort label-1833
SELECT 24 + + + 85 + 25 + + COUNT( - 87 ) + + + 99 AS col2
----
234

skipif mysql # not compatible
query I rowsort label-1833
SELECT 24 + + + 85 + 25 + + COUNT ( - 87 ) + + + 99 AS col2
----
234

onlyif mysql # aggregate syntax: 
query I rowsort label-1834
SELECT ALL - 57 + + + CASE 82 WHEN + 45 THEN - MAX( + ( + - 51 ) ) ELSE NULL END + + 97 + 63 + + 16 + - 40 * 22 * - 38 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1834
SELECT ALL - 57 + + + CASE 82 WHEN + 45 THEN - MAX ( + ( + - 51 ) ) ELSE NULL END + + 97 + 63 + + 16 + - 40 * 22 * - 38 col1
----
NULL

query I rowsort
SELECT DISTINCT + 3 + + + 67 AS col2
----
70

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

skipif mysql # not compatible
query I rowsort label-1836
SELECT SUM ( DISTINCT - 32 )
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-1837
SELECT ALL COALESCE ( - CASE - 28 WHEN - 8 / + + 84 * 73 / + - COUNT( DISTINCT - - 24 ) THEN NULL WHEN ( + COUNT( * ) ) * 80 / + 37 THEN 61 * - - COUNT( * ) END, - 62 + - + 9 ) + - 72
----
-143

skipif mysql # not compatible
query I rowsort label-1837
SELECT ALL COALESCE ( - CASE - 28 WHEN - 8 / + + 84 * 73 / + - COUNT ( DISTINCT - - 24 ) THEN NULL WHEN ( + COUNT ( * ) ) * 80 / + 37 THEN 61 * - - COUNT ( * ) END, - 62 + - + 9 ) + - 72
----
-143

query I rowsort
SELECT ALL + 85 * + 27 * - 84
----
-192780

onlyif mysql # aggregate syntax: 
query I rowsort label-1839
SELECT DISTINCT COUNT( * ) + 40
----
41

skipif mysql # not compatible
query I rowsort label-1839
SELECT DISTINCT COUNT ( * ) + 40
----
41

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1841
SELECT MAX( - - ( ( - 0 ) ) ) col0
----
0

skipif mysql # not compatible
query I rowsort label-1841
SELECT MAX ( - - ( ( - 0 ) ) ) col0
----
0

query I rowsort
SELECT 97 - - 35
----
132

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1843
SELECT - COUNT( * ) * + 57 + + 60 DIV - + NULLIF ( + - COUNT( * ), + 32 + + CAST( NULL AS SIGNED ) * - 20 * - 49 ) + - 99 - - 58 + - 9 + - 44 DIV + + 27 + + 52 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-1843
SELECT - COUNT ( * ) * + 57 + + 60 / - + NULLIF ( + - COUNT ( * ), + 32 + + CAST ( NULL AS INTEGER ) * - 20 * - 49 ) + - 99 - - 58 + - 9 + - 44 / + + 27 + + 52 AS col1
----
4

query I rowsort
SELECT 42 * - 99 AS col1
----
-4158

onlyif mysql # aggregate syntax: 
query I rowsort label-1845
SELECT ( + 68 ) * - SUM( - + NULLIF ( + 16, - ( + + 62 ) * 68 + + + 97 * 58 * + 77 ) ) * - 18 + + MIN( - 98 )
----
-19682

skipif mysql # not compatible
query I rowsort label-1845
SELECT ( + 68 ) * - SUM ( - + NULLIF ( + 16, - ( + + 62 ) * 68 + + + 97 * 58 * + 77 ) ) * - 18 + + MIN ( - 98 )
----
-19682

query I rowsort
SELECT 32 - - + 70 + + 0
----
102

query I rowsort
SELECT 32 * - 52 - + 4 * + 80
----
-1984

onlyif mysql # aggregate syntax: 
query I rowsort label-1848
SELECT ALL 58 * + COUNT( ALL + 87 )
----
58

skipif mysql # not compatible
query I rowsort label-1848
SELECT ALL 58 * + COUNT ( ALL + 87 )
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-1849
SELECT + + 19 DIV 29 * + - 13 * + 62 + 57 AS col2
----
57

skipif mysql # not compatible
query I rowsort label-1849
SELECT + + 19 / 29 * + - 13 * + 62 + 57 AS col2
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1850
SELECT - 99 DIV COUNT( ALL + 70 )
----
-99

skipif mysql # not compatible
query I rowsort label-1850
SELECT - 99 / COUNT ( ALL + 70 )
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1851
SELECT + 39 * NULLIF ( CAST( 85 AS SIGNED ), + 33 * + 42 / - 77 + + - 85 )
----
3315

skipif mysql # not compatible
query I rowsort label-1851
SELECT + 39 * NULLIF ( CAST ( 85 AS INTEGER ), + 33 * + 42 / - 77 + + - 85 )
----
3315

query I rowsort
SELECT - 13 * 23 AS col2
----
-299

query I rowsort
SELECT NULLIF ( - 84, + 26 )
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-1854
SELECT + SUM( DISTINCT - 10 ) + + 83
----
73

skipif mysql # not compatible
query I rowsort label-1854
SELECT + SUM ( DISTINCT - 10 ) + + 83
----
73

onlyif mysql # aggregate syntax: 
query II rowsort label-1855
SELECT ALL 40 * + COUNT( * ), 65 AS col1
----
40
65

skipif mysql # not compatible
query II rowsort label-1855
SELECT ALL 40 * + COUNT ( * ), 65 AS col1
----
40
65

onlyif mysql # aggregate syntax: 
query I rowsort label-1856
SELECT ALL - CASE 96 WHEN 97 * - ( + 38 ) + - 54 THEN 72 WHEN COALESCE ( + - COUNT( * ), - + 7 * 46 ) THEN - 64 ELSE NULL END + 70 / + 72 * - SUM( 47 ) * 29 + - 1
----
NULL

skipif mysql # not compatible
query I rowsort label-1856
SELECT ALL - CASE 96 WHEN 97 * - ( + 38 ) + - 54 THEN 72 WHEN COALESCE ( + - COUNT ( * ), - + 7 * 46 ) THEN - 64 ELSE NULL END + 70 / + 72 * - SUM ( 47 ) * 29 + - 1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1857
SELECT ALL + - 31 + 44 * + 99 + 64 - - 68 + - ( + COUNT( * ) ) * - 15 AS col1
----
4472

skipif mysql # not compatible
query I rowsort label-1857
SELECT ALL + - 31 + 44 * + 99 + 64 - - 68 + - ( + COUNT ( * ) ) * - 15 AS col1
----
4472

onlyif mysql # aggregate syntax: 
query II rowsort label-1858
SELECT + CASE - 56 WHEN - - 37 THEN - 73 END + + 10, - MAX( ALL - 31 ) + + + 33 col2
----
NULL
64

skipif mysql # not compatible
query II rowsort label-1858
SELECT + CASE - 56 WHEN - - 37 THEN - 73 END + + 10, - MAX ( ALL - 31 ) + + + 33 col2
----
NULL
64

onlyif mysql # aggregate syntax: 
query I rowsort label-1859
SELECT ALL - - 56 * - 95 + + + 92 * - COUNT( * )
----
-5412

skipif mysql # not compatible
query I rowsort label-1859
SELECT ALL - - 56 * - 95 + + + 92 * - COUNT ( * )
----
-5412

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1860
SELECT ALL - ( - ( COUNT( * ) ) ) * NULLIF ( - 65, - 68 + - 10 / - - 29 * + + CAST( - - 86 AS SIGNED ) + - NULLIF ( + 33, - 64 * - 78 * + 53 + - 37 ) * - 20 ) AS col0
----
-65

skipif mysql # not compatible
query I rowsort label-1860
SELECT ALL - ( - ( COUNT ( * ) ) ) * NULLIF ( - 65, - 68 + - 10 / - - 29 * + + CAST ( - - 86 AS INTEGER ) + - NULLIF ( + 33, - 64 * - 78 * + 53 + - 37 ) * - 20 ) AS col0
----
-65

query I rowsort
SELECT - 90 + - - 4
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-1862
SELECT ALL + 38 * 54 - + + MIN( ALL - 55 ) - + + 27 * + 61 * - - 89
----
-144476

skipif mysql # not compatible
query I rowsort label-1862
SELECT ALL + 38 * 54 - + + MIN ( ALL - 55 ) - + + 27 * + 61 * - - 89
----
-144476

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

skipif mysql # not compatible
query I rowsort label-1863
SELECT ( 15 ) * + 88 + - COUNT ( * ) / + + 41
----
1320

query I rowsort
SELECT + 84 * - 25 AS col1
----
-2100

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

skipif mysql # not compatible
query I rowsort label-1865
SELECT + MAX ( + 65 )
----
65

onlyif mysql # DIV for integer division: 
query I rowsort label-1866
SELECT + 24 DIV + 75 * 31 + + 26 AS col1
----
26

skipif mysql # not compatible
query I rowsort label-1866
SELECT + 24 / + 75 * 31 + + 26 AS col1
----
26

query I rowsort
SELECT + 60 * - + 56
----
-3360

query I rowsort
SELECT + 19 * + 59 * 66
----
73986

query I rowsort
SELECT - 31 + 11 AS col2
----
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-1870
SELECT 27 DIV 61 * + 63 - + 76
----
-76

skipif mysql # not compatible
query I rowsort label-1870
SELECT 27 / 61 * + 63 - + 76
----
-76

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1872
SELECT - 36 * 96 + + - NULLIF ( + 73, - 85 / + COALESCE ( + 69, + + 26 ) * 78 * + + 72 + + 3 / - - 34 * AVG ( ALL - 22 ) + - COUNT( * ) )
----
-3529

skipif mysql # not compatible
query I rowsort label-1872
SELECT - 36 * 96 + + - NULLIF ( + 73, - 85 / + COALESCE ( + 69, + + 26 ) * 78 * + + 72 + + 3 / - - 34 * AVG ( ALL - 22 ) + - COUNT ( * ) )
----
-3529

query I rowsort
SELECT + 24 * + + 87
----
2088

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

skipif mysql # not compatible
query I rowsort label-1874
SELECT ALL + CAST ( 68 AS INTEGER ) AS col2
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-1875
SELECT DISTINCT + COALESCE ( - 50, + 91 - + CASE + 29 WHEN - + ( + COUNT( * ) ) + - 37 THEN NULL ELSE + 95 END ) * + 33 AS col0
----
-1650

skipif mysql # not compatible
query I rowsort label-1875
SELECT DISTINCT + COALESCE ( - 50, + 91 - + CASE + 29 WHEN - + ( + COUNT ( * ) ) + - 37 THEN NULL ELSE + 95 END ) * + 33 AS col0
----
-1650

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1876
SELECT ALL 83 * CAST( - 48 AS SIGNED )
----
-3984

skipif mysql # not compatible
query I rowsort label-1876
SELECT ALL 83 * CAST ( - 48 AS INTEGER )
----
-3984

query I rowsort
SELECT - 88 * - - 17
----
-1496

onlyif mysql # aggregate syntax: 
query III rowsort label-1878
SELECT + 94 * - + ( + 34 ), - 2 AS col0, COUNT( * ) AS col2
----
-3196
-2
1

skipif mysql # not compatible
query III rowsort label-1878
SELECT + 94 * - + ( + 34 ), - 2 AS col0, COUNT ( * ) AS col2
----
-3196
-2
1

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

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

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

skipif mysql # not compatible
query I rowsort label-1880
SELECT MIN ( DISTINCT 21 )
----
21

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

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

query I rowsort
SELECT - 75 * + 11 + + + 19
----
-806

onlyif mysql # aggregate syntax: 
query I rowsort label-1883
SELECT MIN( DISTINCT + - 31 )
----
-31

skipif mysql # not compatible
query I rowsort label-1883
SELECT MIN ( DISTINCT + - 31 )
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1884
SELECT DISTINCT + NULLIF ( - + 45, 37 ) * + 99 + - + 25 + + CAST( + + ( - - 65 ) AS SIGNED )
----
-4415

skipif mysql # not compatible
query I rowsort label-1884
SELECT DISTINCT + NULLIF ( - + 45, 37 ) * + 99 + - + 25 + + CAST ( + + ( - - 65 ) AS INTEGER )
----
-4415

query I rowsort
SELECT ALL + ( ( - 61 ) ) * - 42
----
2562

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1886
SELECT ALL CAST( NULL AS SIGNED ), ( - NULLIF ( 94, 50 - - 99 ) ) AS col2
----
NULL
-94

skipif mysql # not compatible
query II rowsort label-1886
SELECT ALL CAST ( NULL AS INTEGER ), ( - NULLIF ( 94, 50 - - 99 ) ) AS col2
----
NULL
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-1887
SELECT DISTINCT - COUNT( * ) + - - 18 + - 12 + + 51 col0
----
56

skipif mysql # not compatible
query I rowsort label-1887
SELECT DISTINCT - COUNT ( * ) + - - 18 + - 12 + + 51 col0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-1888
SELECT - + SUM( - 43 ) AS col0
----
43

skipif mysql # not compatible
query I rowsort label-1888
SELECT - + SUM ( - 43 ) AS col0
----
43

query I rowsort
SELECT ALL + - 96 + + - 20 + 49 + 97 - + - 0 + - + ( - 23 )
----
53

query I rowsort
SELECT + ( 9 ) + - - 33 + 90
----
132

query I rowsort
SELECT + 0 + - 96
----
-96

query I rowsort
SELECT ALL CASE 69 WHEN - 41 THEN - 71 ELSE NULL END + - 10 AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 19 * - 28
----
-532

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1895
SELECT + 57 - - NULLIF ( - 26, - 1 ) + - - 41 + + ( - 10 ) + + + NULLIF ( + 3, - + COUNT( * ) ) DIV - CAST( + - 8 AS SIGNED ) AS col1
----
62

skipif mysql # not compatible
query I rowsort label-1895
SELECT + 57 - - NULLIF ( - 26, - 1 ) + - - 41 + + ( - 10 ) + + + NULLIF ( + 3, - + COUNT ( * ) ) / - CAST ( + - 8 AS INTEGER ) AS col1
----
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1896
SELECT + - 80 DIV 31 * NULLIF ( + 41, - + 65 ) DIV - 21 DIV + + COUNT( * )
----
3

skipif mysql # not compatible
query I rowsort label-1896
SELECT + - 80 / 31 * NULLIF ( + 41, - + 65 ) / - 21 / + + COUNT ( * )
----
3

query I rowsort
SELECT - + 75 + + 99
----
24

query II rowsort
SELECT ALL ( + - 79 ) * 23 AS col0, 65 col2
----
-1817
65

query II rowsort
SELECT DISTINCT - 92, 72 AS col0
----
-92
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1900
SELECT ALL - 95 + - + 57 - + 65 * 99 * - + CASE COUNT( * ) WHEN + 43 + CAST( - 24 AS SIGNED ) * - + 69 THEN NULL ELSE + - 44 END AS col2, - ( - 48 )
----
-283292
48

skipif mysql # not compatible
query II rowsort label-1900
SELECT ALL - 95 + - + 57 - + 65 * 99 * - + CASE COUNT ( * ) WHEN + 43 + CAST ( - 24 AS INTEGER ) * - + 69 THEN NULL ELSE + - 44 END AS col2, - ( - 48 )
----
-283292
48

onlyif mysql # aggregate syntax: 
query II rowsort label-1901
SELECT ALL 59 AS col0, 1 + + MAX( - - 84 )
----
59
85

skipif mysql # not compatible
query II rowsort label-1901
SELECT ALL 59 AS col0, 1 + + MAX ( - - 84 )
----
59
85

onlyif mysql # aggregate syntax: 
query II rowsort label-1902
SELECT DISTINCT + CASE - 25 WHEN + NULLIF ( 39, 49 * 48 ) * MIN( + 83 ) / + 56 * + 43 * 73 THEN NULL ELSE COUNT( * ) END - - 28 AS col0, + 95
----
29
95

skipif mysql # not compatible
query II rowsort label-1902
SELECT DISTINCT + CASE - 25 WHEN + NULLIF ( 39, 49 * 48 ) * MIN ( + 83 ) / + 56 * + 43 * 73 THEN NULL ELSE COUNT ( * ) END - - 28 AS col0, + 95
----
29
95

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1903
SELECT - - CAST( + + CASE + 59 WHEN + 86 THEN NULL WHEN + 44 THEN + - 47 END AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1903
SELECT - - CAST ( + + CASE + 59 WHEN + 86 THEN NULL WHEN + 44 THEN + - 47 END AS REAL )
----
NULL

query I rowsort
SELECT ALL - 45 * 49 - + 62 + - 16 col0
----
-2283

query I rowsort
SELECT + 2 * 46 * 49
----
4508

query I rowsort
SELECT DISTINCT - 40 * - ( - + 15 )
----
-600

query I rowsort
SELECT - 61 + + 57 * - 97 AS col0
----
-5590

onlyif mysql # aggregate syntax: 
query II rowsort label-1908
SELECT + MAX( COALESCE ( - 94, + - 7 ) ), - 73 * - + 7 * 34 AS col2
----
-94
17374

skipif mysql # not compatible
query II rowsort label-1908
SELECT + MAX ( COALESCE ( - 94, + - 7 ) ), - 73 * - + 7 * 34 AS col2
----
-94
17374

query I rowsort
SELECT DISTINCT - ( + 24 ) * 45 + + 58 AS col2
----
-1022

query I rowsort
SELECT DISTINCT 96 * 27 * - 67 * 47
----
-8162208

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

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

query I rowsort
SELECT ALL - 22 * 17
----
-374

query I rowsort
SELECT ALL + CASE WHEN NOT NULL > NULL THEN - 89 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1914
SELECT DISTINCT - COUNT( * ) * - 14 DIV 31
----
0

skipif mysql # not compatible
query I rowsort label-1914
SELECT DISTINCT - COUNT ( * ) * - 14 / 31
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1915
SELECT ALL 71 / - 22 * - + 76 / + + CASE + + CAST( NULL AS SIGNED ) WHEN 76 * + 45 + - 79 THEN + + NULLIF ( - - 96, + 36 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1915
SELECT ALL 71 / - 22 * - + 76 / + + CASE + + CAST ( NULL AS INTEGER ) WHEN 76 * + 45 + - 79 THEN + + NULLIF ( - - 96, + 36 ) END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1916
SELECT - 94 DIV 93 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1916
SELECT - 94 / 93 AS col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1917
SELECT 57 * + ( + + 74 ) * - 15 * - 16 - + + 6 DIV - - COUNT( * ) AS col1
----
1012314

skipif mysql # not compatible
query I rowsort label-1917
SELECT 57 * + ( + + 74 ) * - 15 * - 16 - + + 6 / - - COUNT ( * ) AS col1
----
1012314

onlyif mysql # aggregate syntax: 
query II rowsort label-1918
SELECT 31 - - - 28 AS col0, SUM( + 56 )
----
3
56

skipif mysql # not compatible
query II rowsort label-1918
SELECT 31 - - - 28 AS col0, SUM ( + 56 )
----
3
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1919
SELECT 38 / - - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1919
SELECT 38 / - - CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1920
SELECT 69 * + - 81 + + - 97 + + ( + 30 ) + 97 + + 52 * - COUNT( * ) AS col0
----
-5611

skipif mysql # not compatible
query I rowsort label-1920
SELECT 69 * + - 81 + + - 97 + + ( + 30 ) + 97 + + 52 * - COUNT ( * ) AS col0
----
-5611

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1923
SELECT 61 * - CAST( NULL AS SIGNED ), + 33 col0
----
NULL
33

skipif mysql # not compatible
query II rowsort label-1923
SELECT 61 * - CAST ( NULL AS INTEGER ), + 33 col0
----
NULL
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1924
SELECT DISTINCT - 39 + - 52 + ( - 86 ) + ( - CASE - ( - 75 ) WHEN + + 11 + + ( - ( + + COUNT( * ) ) ) THEN + 11 ELSE + + ( + 46 ) END ) * CASE + ( + 43 ) WHEN + 1 THEN - 68 + 52 WHEN 9 * 6 THEN - CAST( NULL AS SIGNED ) * + COALESCE ( + COUNT( * ) * + 30, 8 * CAST( + 50 AS DECIMAL ) ) ELSE NULL END * + 99 - 6 * + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1924
SELECT DISTINCT - 39 + - 52 + ( - 86 ) + ( - CASE - ( - 75 ) WHEN + + 11 + + ( - ( + + COUNT ( * ) ) ) THEN + 11 ELSE + + ( + 46 ) END ) * CASE + ( + 43 ) WHEN + 1 THEN - 68 + 52 WHEN 9 * 6 THEN - CAST ( NULL AS INTEGER ) * + COALESCE ( + COUNT ( * ) * + 30, 8 * CAST ( + 50 AS REAL ) ) ELSE NULL END * + 99 - 6 * + COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT - - 14 * - 89 AS col0
----
-1246

query I rowsort
SELECT - 98 * + + 12 * + 50 + 32 AS col0
----
-58768

query I rowsort
SELECT - - 79 col1
----
79

query I rowsort
SELECT ALL 30 * + ( + 87 )
----
2610

onlyif mysql # aggregate syntax: 
query II rowsort label-1929
SELECT ( + 51 ) AS col0, - COUNT( DISTINCT 45 ) * - + 15 col1
----
51
15

skipif mysql # not compatible
query II rowsort label-1929
SELECT ( + 51 ) AS col0, - COUNT ( DISTINCT 45 ) * - + 15 col1
----
51
15

query I rowsort
SELECT ALL + ( + 94 ) - - 72 + - 77 * 13
----
-835

query I rowsort
SELECT DISTINCT - 47 * 10 * + - 80 AS col1
----
37600

onlyif mysql # aggregate syntax: 
query I rowsort label-1932
SELECT MAX( ALL 83 ) * - 85
----
-7055

skipif mysql # not compatible
query I rowsort label-1932
SELECT MAX ( ALL 83 ) * - 85
----
-7055

query I rowsort
SELECT ( + 80 ) * 19 AS col2
----
1520

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1934
SELECT ALL COUNT( * ) * + - CASE - COALESCE ( + 88, - - 59, + 51 ) WHEN 46 / + ( - 68 ) * CAST( - COUNT( * ) AS SIGNED ) THEN + 99 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1934
SELECT ALL COUNT ( * ) * + - CASE - COALESCE ( + 88, - - 59, + 51 ) WHEN 46 / + ( - 68 ) * CAST ( - COUNT ( * ) AS INTEGER ) THEN + 99 END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1935
SELECT CASE - ( + 55 ) WHEN 22 + + ( + + 44 ) THEN + 13 WHEN + 63 THEN NULL END + + 96 * 68 * - - 54 - + 36 + 60 / - - 23 + - CAST( NULL AS SIGNED ) * - + AVG ( - 78 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1935
SELECT CASE - ( + 55 ) WHEN 22 + + ( + + 44 ) THEN + 13 WHEN + 63 THEN NULL END + + 96 * 68 * - - 54 - + 36 + 60 / - - 23 + - CAST ( NULL AS INTEGER ) * - + AVG ( - 78 ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1936
SELECT 7 + + ( CAST( 36 AS SIGNED ) ) + + 42 * + 51
----
2185

skipif mysql # not compatible
query I rowsort label-1936
SELECT 7 + + ( CAST ( 36 AS INTEGER ) ) + + 42 * + 51
----
2185

onlyif mysql # aggregate syntax: 
query I rowsort label-1937
SELECT DISTINCT 55 * - - COUNT( * ) AS col0
----
55

skipif mysql # not compatible
query I rowsort label-1937
SELECT DISTINCT 55 * - - COUNT ( * ) AS col0
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-1938
SELECT ( - 34 ) + - 96 DIV 85 + + + 7 AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-1938
SELECT ( - 34 ) + - 96 / 85 + + + 7 AS col1
----
-28

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

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

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

query I rowsort
SELECT 41 + 36
----
77

query I rowsort
SELECT 37 * 40 + + - 26 AS col1
----
1454

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1943
SELECT 64 * - 83 + + CASE - - 25 WHEN - - 91 THEN NULL WHEN - + 33 * 27 - - - COUNT( * ) + 54 - 99 * - CASE + 92 WHEN + - CAST( NULL AS SIGNED ) THEN NULL WHEN 95 THEN + ( NULLIF ( + ( + + 12 ), - 70 * - - 80 * 55 ) ) END THEN SUM( + 90 ) END * 69
----
NULL

skipif mysql # not compatible
query I rowsort label-1943
SELECT 64 * - 83 + + CASE - - 25 WHEN - - 91 THEN NULL WHEN - + 33 * 27 - - - COUNT ( * ) + 54 - 99 * - CASE + 92 WHEN + - CAST ( NULL AS INTEGER ) THEN NULL WHEN 95 THEN + ( NULLIF ( + ( + + 12 ), - 70 * - - 80 * 55 ) ) END THEN SUM ( + 90 ) END * 69
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1944
SELECT DISTINCT - CAST( - 76 AS SIGNED ) * + CAST( NULL AS SIGNED ) * 33 + + + 98 + + 85 col1, - 15 * 95 col0
----
NULL
-1425

skipif mysql # not compatible
query II rowsort label-1944
SELECT DISTINCT - CAST ( - 76 AS INTEGER ) * + CAST ( NULL AS INTEGER ) * 33 + + + 98 + + 85 col1, - 15 * 95 col0
----
NULL
-1425

onlyif mysql # aggregate syntax: 
query I rowsort label-1945
SELECT ALL + COUNT( * ) + COUNT( * ) * + 98 * + - 14
----
-1371

skipif mysql # not compatible
query I rowsort label-1945
SELECT ALL + COUNT ( * ) + COUNT ( * ) * + 98 * + - 14
----
-1371

onlyif mysql # aggregate syntax: 
query I rowsort label-1946
SELECT COUNT( DISTINCT - 3 ) * 19 - - + 92 AS col1
----
111

skipif mysql # not compatible
query I rowsort label-1946
SELECT COUNT ( DISTINCT - 3 ) * 19 - - + 92 AS col1
----
111

onlyif mysql # DIV for integer division: 
query I rowsort label-1947
SELECT NULLIF ( - - 79, + 19 ) + + 35 * - 94 + 12 DIV + - ( - 28 )
----
-3211

skipif mysql # not compatible
query I rowsort label-1947
SELECT NULLIF ( - - 79, + 19 ) + + 35 * - 94 + 12 / + - ( - 28 )
----
-3211

query I rowsort
SELECT ALL + 65 * 17
----
1105

query I rowsort
SELECT DISTINCT COALESCE ( + 95, + ( 29 ) ) + + 78 AS col1
----
173

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1950
SELECT ALL 0 + + - 33 - - CAST( NULL AS SIGNED ) - - 16 * SUM( 40 ) / COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1950
SELECT ALL 0 + + - 33 - - CAST ( NULL AS INTEGER ) - - 16 * SUM ( 40 ) / COUNT ( * )
----
NULL

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

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

query I rowsort
SELECT ALL - 10 + + - ( - 98 ) AS col2
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-1953
SELECT - CASE 28 WHEN - COUNT( * ) * + - 48 * - - 15 + + 62 * + 25 THEN 0 + - - 0 END + + COUNT( - 98 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1953
SELECT - CASE 28 WHEN - COUNT ( * ) * + - 48 * - - 15 + + 62 * + 25 THEN 0 + - - 0 END + + COUNT ( - 98 ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1954
SELECT CASE - 53 WHEN COUNT( * ) + COALESCE ( + + 40, - + AVG ( + CAST( NULL AS SIGNED ) ) * 36 ) THEN + 76 END * - 83, 13 col2
----
NULL
13

skipif mysql # not compatible
query II rowsort label-1954
SELECT CASE - 53 WHEN COUNT ( * ) + COALESCE ( + + 40, - + AVG ( + CAST ( NULL AS INTEGER ) ) * 36 ) THEN + 76 END * - 83, 13 col2
----
NULL
13

query I rowsort
SELECT + 82 * + 72 AS col2
----
5904

onlyif mysql # DIV for integer division: 
query I rowsort label-1956
SELECT ALL + + 25 DIV + 87 * + 41 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1956
SELECT ALL + + 25 / + 87 * + 41 AS col1
----
0

query I rowsort
SELECT - 21 + 33
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-1958
SELECT DISTINCT + ( + - 16 ) + 39 + 99 - + MAX( ALL - ( + + 77 ) ) + + 49 * 78
----
4021

skipif mysql # not compatible
query I rowsort label-1958
SELECT DISTINCT + ( + - 16 ) + 39 + 99 - + MAX ( ALL - ( + + 77 ) ) + + 49 * 78
----
4021

query I rowsort
SELECT ALL + + COALESCE ( + ( + - 58 ), + ( - + NULLIF ( 44, - 10 * - 0 ) ) ) * - 50 * 11 * + 78
----
2488200

onlyif mysql # DIV for integer division: 
query I rowsort label-1960
SELECT ALL + 58 DIV 91
----
0

skipif mysql # not compatible
query I rowsort label-1960
SELECT ALL + 58 / 91
----
0

query I rowsort
SELECT ALL - 0 - - 9
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-1962
SELECT DISTINCT + COALESCE ( - 94, ( - 91 ), - 36 - 43 + 91 DIV - 18 * + 55 )
----
-94

skipif mysql # not compatible
query I rowsort label-1962
SELECT DISTINCT + COALESCE ( - 94, ( - 91 ), - 36 - 43 + 91 / - 18 * + 55 )
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-1963
SELECT ALL + 78 * + 37 * + 76 * - - COUNT( * ) col1
----
219336

skipif mysql # not compatible
query I rowsort label-1963
SELECT ALL + 78 * + 37 * + 76 * - - COUNT ( * ) col1
----
219336

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1964
SELECT + CAST( + CAST( + + 16 AS SIGNED ) AS SIGNED ) + COUNT( * ) + - 0 + - + 85 + 64 * + 41 AS col1, - CAST( - 13 AS SIGNED ) AS col1
----
2556
13

skipif mysql # not compatible
query II rowsort label-1964
SELECT + CAST ( + CAST ( + + 16 AS INTEGER ) AS INTEGER ) + COUNT ( * ) + - 0 + - + 85 + 64 * + 41 AS col1, - CAST ( - 13 AS INTEGER ) AS col1
----
2556
13

query I rowsort
SELECT DISTINCT - 67 - 7 col0
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1966
SELECT COUNT( * ) AS col1, 26 + + ( 26 ) + - 92 - + 99 + 40 * CAST( NULL AS SIGNED ) / + 80 + + 43 * + 50 AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-1966
SELECT COUNT ( * ) AS col1, 26 + + ( 26 ) + - 92 - + 99 + 40 * CAST ( NULL AS INTEGER ) / + 80 + + 43 * + 50 AS col0
----
1
NULL

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

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

query I rowsort
SELECT NULLIF ( - 9, - 11 ) * + 14 - - - 10
----
-136

query I rowsort
SELECT ALL + 17 * - ( + 7 ) AS col0
----
-119

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1970
SELECT + 17 AS col1, - 8 * CAST( NULL AS SIGNED ) + - - 79 * + 99 AS col2
----
17
NULL

skipif mysql # not compatible
query II rowsort label-1970
SELECT + 17 AS col1, - 8 * CAST ( NULL AS INTEGER ) + - - 79 * + 99 AS col2
----
17
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1971
SELECT ALL + CASE + COUNT( 90 ) WHEN CAST( NULL AS DECIMAL ) THEN + COALESCE ( + 48, 13 * - + ( 64 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1971
SELECT ALL + CASE + COUNT ( 90 ) WHEN CAST ( NULL AS REAL ) THEN + COALESCE ( + 48, 13 * - + ( 64 ) ) END
----
NULL

query II rowsort
SELECT DISTINCT 62 AS col1, + 4
----
62
4

query I rowsort
SELECT NULLIF ( + - 84, - - 96 ) * - 90
----
7560

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

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

query II rowsort
SELECT ALL 19 AS col0, 44
----
19
44

onlyif mysql # aggregate syntax: 
query II rowsort label-1976
SELECT ALL COUNT( * ) AS col0, + COUNT( + 49 ) * - 84 AS col2
----
1
-84

skipif mysql # not compatible
query II rowsort label-1976
SELECT ALL COUNT ( * ) AS col0, + COUNT ( + 49 ) * - 84 AS col2
----
1
-84

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1978
SELECT ALL 30 AS col1, 13 DIV - - 17
----
30
0

skipif mysql # not compatible
query II rowsort label-1978
SELECT ALL 30 AS col1, 13 / - - 17
----
30
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1979
SELECT + 65 * + MIN( DISTINCT ( - 59 ) ) * 91 AS col1
----
-348985

skipif mysql # not compatible
query I rowsort label-1979
SELECT + 65 * + MIN ( DISTINCT ( - 59 ) ) * 91 AS col1
----
-348985

onlyif mysql # aggregate syntax: 
query I rowsort label-1980
SELECT + 30 * + COALESCE ( - - COUNT( * ), 72 + + - 14, - + 92 ) AS col0
----
30

skipif mysql # not compatible
query I rowsort label-1980
SELECT + 30 * + COALESCE ( - - COUNT ( * ), 72 + + - 14, - + 92 ) AS col0
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1981
SELECT + COUNT( * ), + 30 - + 63 - 35 DIV + - 72 AS col0
----
1
-33

skipif mysql # not compatible
query II rowsort label-1981
SELECT + COUNT ( * ), + 30 - + 63 - 35 / + - 72 AS col0
----
1
-33

query I rowsort
SELECT ALL 53 * - - 19
----
1007

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1983
SELECT ALL - 36 * - 64 / - - 2 + - 11 * 83 * - SUM( DISTINCT CAST( NULL AS SIGNED ) ) * ( - 62 ) * 56
----
NULL

skipif mysql # not compatible
query I rowsort label-1983
SELECT ALL - 36 * - 64 / - - 2 + - 11 * 83 * - SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) * ( - 62 ) * 56
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1984
SELECT DISTINCT + COUNT( * ), - COALESCE ( 3, + 67, AVG ( - CAST( NULL AS SIGNED ) ) ) + AVG ( - CAST( NULL AS SIGNED ) ) col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-1984
SELECT DISTINCT + COUNT ( * ), - COALESCE ( 3, + 67, AVG ( - CAST ( NULL AS INTEGER ) ) ) + AVG ( - CAST ( NULL AS INTEGER ) ) col0
----
1
NULL

query I rowsort
SELECT ALL 48 * - 93 + + + COALESCE ( + 25, 34 + - 93 * - + 78 * - 44 * + 74 ) + - 93 * - 51
----
304

query I rowsort
SELECT + - CASE - 7 WHEN - + 94 THEN + 10 * + 20 * + - 32 ELSE NULL END + - 25 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-1987
SELECT + + 45 * ( - 3 ) DIV + 72 AS col2, ( 57 ) * 58 + - 36 + - + 88 AS col2
----
-1
3182

skipif mysql # not compatible
query II rowsort label-1987
SELECT + + 45 * ( - 3 ) / + 72 AS col2, ( 57 ) * 58 + - 36 + - + 88 AS col2
----
-1
3182

query I rowsort
SELECT ALL 10 * - 89 * - 65 - + + 67
----
57783

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1989
SELECT + - CASE + - 34 WHEN - - 83 THEN - 18 ELSE + + 64 END - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1989
SELECT + - CASE + - 34 WHEN - - 83 THEN - 18 ELSE + + 64 END - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1990
SELECT + - 91 col2, COUNT( * ) + 41 - COUNT( * ) * + + 79 * 89 * + 90 * - 92 + + 82 + - + CAST( NULL AS SIGNED ) - - 91 - + COUNT( * ) * 79 AS col2
----
-91
NULL

skipif mysql # not compatible
query II rowsort label-1990
SELECT + - 91 col2, COUNT ( * ) + 41 - COUNT ( * ) * + + 79 * 89 * + 90 * - 92 + + 82 + - + CAST ( NULL AS INTEGER ) - - 91 - + COUNT ( * ) * 79 AS col2
----
-91
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1991
SELECT + - 32 * ( + - 88 ) * + COUNT( * ) + CAST( NULL AS SIGNED ) + 9 * - + 60 + - 34 / - ( - - COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1991
SELECT + - 32 * ( + - 88 ) * + COUNT ( * ) + CAST ( NULL AS INTEGER ) + 9 * - + 60 + - 34 / - ( - - COUNT ( * ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1992
SELECT - SUM( 8 ) * 70 DIV ( - - 62 )
----
-9

skipif mysql # not compatible
query I rowsort label-1992
SELECT - SUM ( 8 ) * 70 / ( - - 62 )
----
-9

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

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

query II rowsort
SELECT DISTINCT + + 88 AS col1, 45 AS col2
----
88
45

onlyif mysql # aggregate syntax: 
query II rowsort label-1995
SELECT ALL + - 63 AS col2, + ( - COUNT( ALL 74 ) )
----
-63
-1

skipif mysql # not compatible
query II rowsort label-1995
SELECT ALL + - 63 AS col2, + ( - COUNT ( ALL 74 ) )
----
-63
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-1996
SELECT + 66 AS col0, - CASE 82 WHEN - 57 THEN NULL WHEN - COUNT( * ) * + + COUNT( * ) * 74 - 80 + - 8 THEN + COUNT( * ) END
----
66
NULL

skipif mysql # not compatible
query II rowsort label-1996
SELECT + 66 AS col0, - CASE 82 WHEN - 57 THEN NULL WHEN - COUNT ( * ) * + + COUNT ( * ) * 74 - 80 + - 8 THEN + COUNT ( * ) END
----
66
NULL

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

query II rowsort
SELECT ALL + + 85, 72 AS col2
----
85
72

query II rowsort
SELECT ALL + 19 AS col2, 6 AS col1
----
19
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2000
SELECT - + COUNT( * ) - - - CASE - + COUNT( * ) WHEN - + 21 THEN + + 38 + - 95 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2000
SELECT - + COUNT ( * ) - - - CASE - + COUNT ( * ) WHEN - + 21 THEN + + 38 + - 95 END AS col2
----
NULL

query I rowsort
SELECT + - 58 * + ( - 19 )
----
1102

query I rowsort
SELECT - 82 * - - 14
----
-1148

onlyif mysql # aggregate syntax: 
query I rowsort label-2003
SELECT ALL COUNT( DISTINCT 17 )
----
1

skipif mysql # not compatible
query I rowsort label-2003
SELECT ALL COUNT ( DISTINCT 17 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2004
SELECT DISTINCT - COUNT( * ) DIV + 40 * - COALESCE ( 40, 36 * - + 52 + + MAX( DISTINCT + 41 ) DIV + + CAST( NULL AS SIGNED ), + - 67 * - + 78 * - 68 * - 30, - 65 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2004
SELECT DISTINCT - COUNT ( * ) / + 40 * - COALESCE ( 40, 36 * - + 52 + + MAX ( DISTINCT + 41 ) / + + CAST ( NULL AS INTEGER ), + - 67 * - + 78 * - 68 * - 30, - 65 ) AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2005
SELECT - COUNT( * ) + - 47 + - COUNT( * ) DIV - + 66 * COALESCE ( 98, + 76 ) * + 2
----
-48

skipif mysql # not compatible
query I rowsort label-2005
SELECT - COUNT ( * ) + - 47 + - COUNT ( * ) / - + 66 * COALESCE ( 98, + 76 ) * + 2
----
-48

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2006
SELECT - 9 DIV ( + CAST( 70 AS SIGNED ) ) col2
----
0

skipif mysql # not compatible
query I rowsort label-2006
SELECT - 9 / ( + CAST ( 70 AS INTEGER ) ) col2
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2008
SELECT - 48 * - - 68 * - COUNT( * )
----
3264

skipif mysql # not compatible
query I rowsort label-2008
SELECT - 48 * - - 68 * - COUNT ( * )
----
3264

query I rowsort
SELECT - 8 * - 83 AS col0
----
664

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

skipif mysql # not compatible
query I rowsort label-2010
SELECT ALL MIN ( - 8 )
----
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-2011
SELECT ALL 96 + + 78 AS col1, MAX( 17 ) + 85
----
174
102

skipif mysql # not compatible
query II rowsort label-2011
SELECT ALL 96 + + 78 AS col1, MAX ( 17 ) + 85
----
174
102

query I rowsort
SELECT DISTINCT 55 * - + 98
----
-5390

query I rowsort
SELECT ALL + COALESCE ( - + 44, - 44 ) * + 87 + + 97
----
-3731

query I rowsort
SELECT - 72 + 50 * + 54 AS col0
----
2628

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2015
SELECT DISTINCT + 91 + + - 17 AS col2, + CAST( 42 AS SIGNED ) + + + 48 AS col1
----
74
90

skipif mysql # not compatible
query II rowsort label-2015
SELECT DISTINCT + 91 + + - 17 AS col2, + CAST ( 42 AS INTEGER ) + + + 48 AS col1
----
74
90

query I rowsort
SELECT - 66 + 64 AS col0
----
-2

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

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

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

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

query I rowsort
SELECT ALL - 37 + - ( 3 ) AS col1
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-2020
SELECT ALL + 74 + - SUM( + 58 ) * COUNT( * ) + - ( - 97 ) AS col2
----
113

skipif mysql # not compatible
query I rowsort label-2020
SELECT ALL + 74 + - SUM ( + 58 ) * COUNT ( * ) + - ( - 97 ) AS col2
----
113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2021
SELECT DISTINCT - NULLIF ( - 74, - 44 ) + 12 + + - 40 AS col2, + 12 * + CASE - CAST( - 59 AS SIGNED ) WHEN + MIN( + + 15 ) * - 71 + COUNT( * ) THEN NULL ELSE - + ( - 95 ) END - COUNT( * ) col1
----
46
1139

skipif mysql # not compatible
query II rowsort label-2021
SELECT DISTINCT - NULLIF ( - 74, - 44 ) + 12 + + - 40 AS col2, + 12 * + CASE - CAST ( - 59 AS INTEGER ) WHEN + MIN ( + + 15 ) * - 71 + COUNT ( * ) THEN NULL ELSE - + ( - 95 ) END - COUNT ( * ) col1
----
46
1139

onlyif mysql # DIV for integer division: 
query I rowsort label-2022
SELECT ALL ( + 81 ) DIV 1 + + NULLIF ( 13, - + 55 ) - - 95 AS col2
----
189

skipif mysql # not compatible
query I rowsort label-2022
SELECT ALL ( + 81 ) / 1 + + NULLIF ( 13, - + 55 ) - - 95 AS col2
----
189

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

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

query II rowsort
SELECT + 82 * - 55 AS col2, - 47 * - 14
----
-4510
658

onlyif mysql # aggregate syntax: 
query I rowsort label-2025
SELECT DISTINCT COUNT( * ) * - - ( - 51 ) AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-2025
SELECT DISTINCT COUNT ( * ) * - - ( - 51 ) AS col1
----
-51

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

skipif mysql # not compatible
query I rowsort label-2026
SELECT ALL - ( + 53 ) / 15 + - COUNT ( * ) - + 27
----
-31

query I rowsort
SELECT DISTINCT + 36 * + 93 col0
----
3348

query I rowsort
SELECT 8 * - + 2 + + 82 AS col1
----
66

query I rowsort
SELECT + + 97 * - 96 AS col1
----
-9312

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2030
SELECT DISTINCT - - ( + 31 ) * NULLIF ( - ( CASE 34 WHEN + + 48 + - 22 THEN + - MAX( 26 ) WHEN - + COUNT( * ) / - CAST( - - 18 AS SIGNED ) * + NULLIF ( - + 37, - + 84 - - 77 ) + 63 THEN - CAST( - ( + - 84 ) AS SIGNED ) WHEN - 12 THEN NULL END ), - 21 * - 34 ) * 55
----
NULL

skipif mysql # not compatible
query I rowsort label-2030
SELECT DISTINCT - - ( + 31 ) * NULLIF ( - ( CASE 34 WHEN + + 48 + - 22 THEN + - MAX ( 26 ) WHEN - + COUNT ( * ) / - CAST ( - - 18 AS INTEGER ) * + NULLIF ( - + 37, - + 84 - - 77 ) + 63 THEN - CAST ( - ( + - 84 ) AS INTEGER ) WHEN - 12 THEN NULL END ), - 21 * - 34 ) * 55
----
NULL

query I rowsort
SELECT DISTINCT 28 * + 95 - - 90 col1
----
2750

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

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

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

query I rowsort
SELECT DISTINCT - 84 * + 2 AS col0
----
-168

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2035
SELECT - - 77 * 98 + CAST( + + CAST( + ( + NULLIF ( - 58, - CASE - - ( + - 58 ) WHEN 34 * + 66 THEN - 18 WHEN + 65 THEN NULL END ) ) AS SIGNED ) AS SIGNED ) + - 55 AS col0, + 21 - - 6 + + 41 * - + 81 + + 13
----
7433
-3281

skipif mysql # not compatible
query II rowsort label-2035
SELECT - - 77 * 98 + CAST ( + + CAST ( + ( + NULLIF ( - 58, - CASE - - ( + - 58 ) WHEN 34 * + 66 THEN - 18 WHEN + 65 THEN NULL END ) ) AS INTEGER ) AS INTEGER ) + - 55 AS col0, + 21 - - 6 + + 41 * - + 81 + + 13
----
7433
-3281

query I rowsort
SELECT + + 46 * + 5 AS col1
----
230

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2037
SELECT ALL - - COALESCE ( - - 31, CAST( NULL AS SIGNED ) * + MIN( ALL + 88 ), - - 97 + + + 87 ) * 11 + + COUNT( * ) * COUNT( 74 ) + - + 75 - 46 * - 8 * 24 AS col0
----
9099

skipif mysql # not compatible
query I rowsort label-2037
SELECT ALL - - COALESCE ( - - 31, CAST ( NULL AS INTEGER ) * + MIN ( ALL + 88 ), - - 97 + + + 87 ) * 11 + + COUNT ( * ) * COUNT ( 74 ) + - + 75 - 46 * - 8 * 24 AS col0
----
9099

query I rowsort
SELECT DISTINCT 32 * - - 69
----
2208

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2040
SELECT - 2 + - 17 + + + 73 * COUNT( * ) AS col2
----
54

skipif mysql # not compatible
query I rowsort label-2040
SELECT - 2 + - 17 + + + 73 * COUNT ( * ) AS col2
----
54

query II rowsort
SELECT ALL 67 * + 33 * - + 67, - 87 + + 85 AS col0
----
-148137
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-2042
SELECT 6 DIV - - 4 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2042
SELECT 6 / - - 4 AS col1
----
1

query I rowsort
SELECT 42 + + 9
----
51

query I rowsort
SELECT ALL 84 + 39
----
123

query I rowsort
SELECT 51 + 75 AS col1
----
126

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2046
SELECT ALL + NULLIF ( 63, 58 * - + CASE 42 WHEN + + 82 * + + 74 - + 16 THEN + 60 END / 56 * + - NULLIF ( + CASE COUNT( * ) WHEN - - CAST( NULL AS SIGNED ) * + 32 - - COALESCE ( - COUNT( * ), 53, - 44 ) THEN - 11 * - - COUNT( * ) + + - 47 WHEN - - 44 / COUNT( * ) THEN - 49 END, + 83 * - COALESCE ( ( - 96 ), CAST( NULL AS SIGNED ) + + 27 * - 19 ) + - 38 * 94 ) + ( 21 ) + - NULLIF ( - 97 - - 48 * 78, - 8 ) ) + 7 AS col2
----
70

skipif mysql # not compatible
query I rowsort label-2046
SELECT ALL + NULLIF ( 63, 58 * - + CASE 42 WHEN + + 82 * + + 74 - + 16 THEN + 60 END / 56 * + - NULLIF ( + CASE COUNT ( * ) WHEN - - CAST ( NULL AS INTEGER ) * + 32 - - COALESCE ( - COUNT ( * ), 53, - 44 ) THEN - 11 * - - COUNT ( * ) + + - 47 WHEN - - 44 / COUNT ( * ) THEN - 49 END, + 83 * - COALESCE ( ( - 96 ), CAST ( NULL AS INTEGER ) + + 27 * - 19 ) + - 38 * 94 ) + ( 21 ) + - NULLIF ( - 97 - - 48 * 78, - 8 ) ) + 7 AS col2
----
70

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

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

query I rowsort
SELECT 67 + - + 70 * - + 57 * + - 64
----
-255293

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

skipif mysql # not compatible
query I rowsort label-2049
SELECT DISTINCT - 32 / + COUNT ( * )
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-2050
SELECT DISTINCT - 23 + + COUNT( * ) + - 33 AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-2050
SELECT DISTINCT - 23 + + COUNT ( * ) + - 33 AS col2
----
-55

query II rowsort
SELECT 15, - 94 * - + ( - + 3 ) AS col0
----
15
-282

query I rowsort
SELECT ALL - 6 + - 44 * + 46
----
-2030

query I rowsort
SELECT 57 * NULLIF ( - + 66, - 0 ) * - 68
----
255816

onlyif mysql # DIV for integer division: 
query I rowsort label-2054
SELECT DISTINCT - 33 DIV - NULLIF ( + 84, + 15 )
----
0

skipif mysql # not compatible
query I rowsort label-2054
SELECT DISTINCT - 33 / - NULLIF ( + 84, + 15 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2055
SELECT 66 * - - COUNT( * ) col2
----
66

skipif mysql # not compatible
query I rowsort label-2055
SELECT 66 * - - COUNT ( * ) col2
----
66

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2057
SELECT ALL + 6 - + - CASE - + 48 WHEN + COUNT( * ) THEN + + 1 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2057
SELECT ALL + 6 - + - CASE - + 48 WHEN + COUNT ( * ) THEN + + 1 END AS col2
----
NULL

query II rowsort
SELECT 6 AS col2, - 7 AS col0
----
6
-7

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2060
SELECT 56 - - - 67 + - - 59 AS col2, COUNT( * ) AS col0
----
48
1

skipif mysql # not compatible
query II rowsort label-2060
SELECT 56 - - - 67 + - - 59 AS col2, COUNT ( * ) AS col0
----
48
1

query I rowsort
SELECT 92 * + 37
----
3404

query I rowsort
SELECT DISTINCT - 34 * + 76
----
-2584

query II rowsort
SELECT + 94, 43 + - 89 AS col0
----
94
-46

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

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

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

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

query I rowsort
SELECT - 1 * - + ( + 48 ) * + - 93
----
-4464

onlyif mysql # DIV for integer division: 
query I rowsort label-2067
SELECT DISTINCT - 24 DIV + + 15
----
-1

skipif mysql # not compatible
query I rowsort label-2067
SELECT DISTINCT - 24 / + + 15
----
-1

query II rowsort
SELECT ALL - COALESCE ( - - 48, ( + 30 ) ) AS col1, ( - 28 )
----
-48
-28

query I rowsort
SELECT - 67 * - 67 AS col1
----
4489

query I rowsort
SELECT 2 + + 81 AS col1
----
83

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

skipif mysql # not compatible
query I rowsort label-2071
SELECT + + MIN ( + 68 )
----
68

query I rowsort
SELECT 92 * + 99 AS col1
----
9108

query I rowsort
SELECT ALL - 30 * + 73 - - 6 + + - 28 * - 42 * - 62 + - 3
----
-75099

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2074
SELECT ALL + 55 * + 29 * - + SUM( - 44 ) + + COUNT( DISTINCT 18 ) * CAST( COALESCE ( - CASE 23 WHEN + - 19 DIV + + 27 - + 87 * + + 27 THEN NULL ELSE - 59 - - 9 END, + 54 ) AS SIGNED ) * 86 * + - COALESCE ( 89, + - 80 * - 22 DIV - + 50 + + 97 ) + - 88 AS col2
----
-312608

skipif mysql # not compatible
query I rowsort label-2074
SELECT ALL + 55 * + 29 * - + SUM ( - 44 ) + + COUNT ( DISTINCT 18 ) * CAST ( COALESCE ( - CASE 23 WHEN + - 19 / + + 27 - + 87 * + + 27 THEN NULL ELSE - 59 - - 9 END, + 54 ) AS INTEGER ) * 86 * + - COALESCE ( 89, + - 80 * - 22 / - + 50 + + 97 ) + - 88 AS col2
----
-312608

query I rowsort
SELECT + COALESCE ( - 6, + 19 ) * + 24
----
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-2076
SELECT ALL + + COUNT( * ) + + - 9 * + COUNT( * ) * - + 3 * - 89 + - 48
----
-2450

skipif mysql # not compatible
query I rowsort label-2076
SELECT ALL + + COUNT ( * ) + + - 9 * + COUNT ( * ) * - + 3 * - 89 + - 48
----
-2450

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2077
SELECT DISTINCT 56 + CAST( + 2 AS SIGNED ) + - - 58 AS col2, COUNT( * ) - + 85 * ( - + COALESCE ( - - 36, + 25, + 63 + + NULLIF ( 86, 36 ) * + 46 * COUNT( * ) DIV + 84 + - + CAST( NULL AS SIGNED ) ) ) - - - COUNT( * ) * NULLIF ( - + 34, - - ( 80 ) )
----
116
3095

skipif mysql # not compatible
query II rowsort label-2077
SELECT DISTINCT 56 + CAST ( + 2 AS INTEGER ) + - - 58 AS col2, COUNT ( * ) - + 85 * ( - + COALESCE ( - - 36, + 25, + 63 + + NULLIF ( 86, 36 ) * + 46 * COUNT ( * ) / + 84 + - + CAST ( NULL AS INTEGER ) ) ) - - - COUNT ( * ) * NULLIF ( - + 34, - - ( 80 ) )
----
116
3095

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2078
SELECT ALL + 6 + + CAST( + + 70 AS SIGNED ) * + - COUNT( DISTINCT 65 )
----
-64

skipif mysql # not compatible
query I rowsort label-2078
SELECT ALL + 6 + + CAST ( + + 70 AS INTEGER ) * + - COUNT ( DISTINCT 65 )
----
-64

query I rowsort
SELECT DISTINCT - 36 + - - 69
----
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2080
SELECT DISTINCT 26 + COUNT( * ) DIV + + 79 - + MAX( - + 12 ) AS col2
----
38

skipif mysql # not compatible
query I rowsort label-2080
SELECT DISTINCT 26 + COUNT ( * ) / + + 79 - + MAX ( - + 12 ) AS col2
----
38

query I rowsort
SELECT ALL 43 + + - 91
----
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-2082
SELECT 37 * - 45 - - COUNT( * ) - - 6, CASE + 18 WHEN + 55 THEN + - 18 + - - 99 * - + 92 ELSE + + 76 + 32 + - - ( - NULLIF ( + 50, + ( - - 26 ) ) ) END * MIN( ALL - - 49 ) AS col0
----
-1658
2842

skipif mysql # not compatible
query II rowsort label-2082
SELECT 37 * - 45 - - COUNT ( * ) - - 6, CASE + 18 WHEN + 55 THEN + - 18 + - - 99 * - + 92 ELSE + + 76 + 32 + - - ( - NULLIF ( + 50, + ( - - 26 ) ) ) END * MIN ( ALL - - 49 ) AS col0
----
-1658
2842

query I rowsort
SELECT 35 + - + 94
----
-59

query I rowsort
SELECT ALL 13 * + 29 AS col1
----
377

onlyif mysql # aggregate syntax: 
query I rowsort label-2085
SELECT ALL 25 + + MIN( DISTINCT 57 ) AS col0
----
82

skipif mysql # not compatible
query I rowsort label-2085
SELECT ALL 25 + + MIN ( DISTINCT 57 ) AS col0
----
82

query I rowsort
SELECT ALL 30 + - + 92 + - + 53 AS col1
----
-115

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2087
SELECT CAST( + - AVG ( ALL 79 ) AS SIGNED ) - + + ( - COUNT( * ) ) col0, COALESCE ( + - 95, 40, - + 84 ) AS col1
----
-78
-95

skipif mysql # not compatible
query II rowsort label-2087
SELECT CAST ( + - AVG ( ALL 79 ) AS INTEGER ) - + + ( - COUNT ( * ) ) col0, COALESCE ( + - 95, 40, - + 84 ) AS col1
----
-78
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2088
SELECT ( - 29 ) + + 5 * - 1 + - 98 + - CAST( - 49 AS SIGNED ) + - 36 * + 65 / - SUM( + CASE + 92 WHEN - 21 THEN + 44 / 69 END ) * + + 17 * - CAST( - - 67 AS SIGNED ) + - NULLIF ( + CAST( + + 59 AS SIGNED ), - 71 ) * + 70 + - 20 * + 48 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2088
SELECT ( - 29 ) + + 5 * - 1 + - 98 + - CAST ( - 49 AS INTEGER ) + - 36 * + 65 / - SUM ( + CASE + 92 WHEN - 21 THEN + 44 / 69 END ) * + + 17 * - CAST ( - - 67 AS INTEGER ) + - NULLIF ( + CAST ( + + 59 AS INTEGER ), - 71 ) * + 70 + - 20 * + 48 AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2090
SELECT MAX( ALL 24 ) * - - 42 * 29 AS col2
----
29232

skipif mysql # not compatible
query I rowsort label-2090
SELECT MAX ( ALL 24 ) * - - 42 * 29 AS col2
----
29232

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2091
SELECT CASE + - 5 WHEN - + 43 THEN + 81 END + CAST( NULL AS SIGNED ) + - 50 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2091
SELECT CASE + - 5 WHEN - + 43 THEN + 81 END + CAST ( NULL AS INTEGER ) + - 50 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2092
SELECT 92 DIV - 60
----
-1

skipif mysql # not compatible
query I rowsort label-2092
SELECT 92 / - 60
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2093
SELECT 66 + + + MIN( DISTINCT - 23 ) + + ( - - 42 )
----
85

skipif mysql # not compatible
query I rowsort label-2093
SELECT 66 + + + MIN ( DISTINCT - 23 ) + + ( - - 42 )
----
85

query I rowsort
SELECT 1 - + 22 AS col2
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2095
SELECT ALL + 86 / - ( + CAST( NULL AS SIGNED ) ) * + + COUNT( * ) * + ( + 65 ) + - NULLIF ( - 46, + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2095
SELECT ALL + 86 / - ( + CAST ( NULL AS INTEGER ) ) * + + COUNT ( * ) * + ( + 65 ) + - NULLIF ( - 46, + COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2096
SELECT DISTINCT 55 DIV + COUNT( * ) AS col2, - 13 * - 45 AS col1
----
55
585

skipif mysql # not compatible
query II rowsort label-2096
SELECT DISTINCT 55 / + COUNT ( * ) AS col2, - 13 * - 45 AS col1
----
55
585

query I rowsort
SELECT - 99 + - + 61 AS col2
----
-160

onlyif mysql # DIV for integer division: 
query I rowsort label-2098
SELECT ALL + ( - 23 ) DIV - ( + 68 )
----
0

skipif mysql # not compatible
query I rowsort label-2098
SELECT ALL + ( - 23 ) / - ( + 68 )
----
0

query I rowsort
SELECT DISTINCT - 96 col1
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2100
SELECT + SUM( DISTINCT + 3 ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-2100
SELECT + SUM ( DISTINCT + 3 ) AS col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2101
SELECT COUNT( * ) + - COALESCE ( + COUNT( * ), 87 + + 59 - 0 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2101
SELECT COUNT ( * ) + - COALESCE ( + COUNT ( * ), 87 + + 59 - 0 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2102
SELECT ALL - + NULLIF ( 31, - - ( - 10 ) ) * 33 + - ( - - 70 ) * 45 + 67 + - ( + MIN( ALL + ( - 82 ) ) )
----
-4024

skipif mysql # not compatible
query I rowsort label-2102
SELECT ALL - + NULLIF ( 31, - - ( - 10 ) ) * 33 + - ( - - 70 ) * 45 + 67 + - ( + MIN ( ALL + ( - 82 ) ) )
----
-4024

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2104
SELECT ALL - 97 * - 89 * - MAX( DISTINCT + 57 ) + + + 25, + CAST( - + 49 AS SIGNED ) + COALESCE ( + - 8, - 97 ) AS col0
----
-492056
-57

skipif mysql # not compatible
query II rowsort label-2104
SELECT ALL - 97 * - 89 * - MAX ( DISTINCT + 57 ) + + + 25, + CAST ( - + 49 AS INTEGER ) + COALESCE ( + - 8, - 97 ) AS col0
----
-492056
-57

query I rowsort
SELECT 24 * + 7 * + 92 AS col0
----
15456

onlyif mysql # aggregate syntax: 
query I rowsort label-2106
SELECT DISTINCT - ( + 84 ) * 31 + SUM( - 0 ) col0
----
-2604

skipif mysql # not compatible
query I rowsort label-2106
SELECT DISTINCT - ( + 84 ) * 31 + SUM ( - 0 ) col0
----
-2604

query II rowsort
SELECT ALL - + 82 * + 46 + + + ( + 81 ) AS col2, + 28
----
-3691
28

onlyif mysql # aggregate syntax: 
query I rowsort label-2108
SELECT ALL + - 5 * + 92 - ( - 12 ) * - + 23 + ( COUNT( * ) ) + - 54 col0
----
-789

skipif mysql # not compatible
query I rowsort label-2108
SELECT ALL + - 5 * + 92 - ( - 12 ) * - + 23 + ( COUNT ( * ) ) + - 54 col0
----
-789

onlyif mysql # aggregate syntax: 
query I rowsort label-2109
SELECT DISTINCT - + SUM( DISTINCT + 10 ) AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-2109
SELECT DISTINCT - + SUM ( DISTINCT + 10 ) AS col2
----
-10

query I rowsort
SELECT ALL + 18 * 99 * - 2 AS col2
----
-3564

onlyif mysql # aggregate syntax: 
query I rowsort label-2111
SELECT DISTINCT + 18 * + COUNT( * ) + 43
----
61

skipif mysql # not compatible
query I rowsort label-2111
SELECT DISTINCT + 18 * + COUNT ( * ) + 43
----
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2112
SELECT 50 * - - MIN( ALL 33 ) * 24 * - 81 - COALESCE ( - 43, - 55 * + COUNT( * ) - + 6 + + COUNT( * ) DIV 48 * 30 + + 89 ) AS col2
----
-3207557

skipif mysql # not compatible
query I rowsort label-2112
SELECT 50 * - - MIN ( ALL 33 ) * 24 * - 81 - COALESCE ( - 43, - 55 * + COUNT ( * ) - + 6 + + COUNT ( * ) / 48 * 30 + + 89 ) AS col2
----
-3207557

query I rowsort
SELECT 41 * 71 + + 13
----
2924

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2114
SELECT - 2 DIV + - COALESCE ( - COUNT( * ), CAST( NULL AS SIGNED ), + + NULLIF ( + 28, + 97 + - 84 + + + 93 + 26 ) * - 26 ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-2114
SELECT - 2 / + - COALESCE ( - COUNT ( * ), CAST ( NULL AS INTEGER ), + + NULLIF ( + 28, + 97 + - 84 + + + 93 + 26 ) * - 26 ) AS col2
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-2115
SELECT ALL + 51 DIV + + 97
----
0

skipif mysql # not compatible
query I rowsort label-2115
SELECT ALL + 51 / + + 97
----
0

query I rowsort
SELECT DISTINCT 31 - 66 AS col0
----
-35

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

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

query I rowsort
SELECT ALL - 78 * 46
----
-3588

query I rowsort
SELECT ALL 66 - + 16 + + - 51 AS col0
----
-1

query I rowsort
SELECT DISTINCT 95 - - NULLIF ( 45, + + 77 ) AS col1
----
140

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

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

query I rowsort
SELECT + 12 * + + 92 AS col1
----
1104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2123
SELECT + COALESCE ( - COALESCE ( + 12, + + 57 ), - CAST( NULL AS SIGNED ) * - 42 ) * + 88
----
-1056

skipif mysql # not compatible
query I rowsort label-2123
SELECT + COALESCE ( - COALESCE ( + 12, + + 57 ), - CAST ( NULL AS INTEGER ) * - 42 ) * + 88
----
-1056

onlyif mysql # DIV for integer division: 
query I rowsort label-2124
SELECT - COALESCE ( - - ( 39 ), + + 78 DIV - - 14 ) AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-2124
SELECT - COALESCE ( - - ( 39 ), + + 78 / - - 14 ) AS col0
----
-39

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

query I rowsort
SELECT + - 91 * + + 54 + + + 69
----
-4845

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2128
SELECT + MAX( DISTINCT - 1 ) * - 21 AS col2
----
21

skipif mysql # not compatible
query I rowsort label-2128
SELECT + MAX ( DISTINCT - 1 ) * - 21 AS col2
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2129
SELECT DISTINCT + CAST( NULL AS SIGNED ), 23 AS col2
----
NULL
23

skipif mysql # not compatible
query II rowsort label-2129
SELECT DISTINCT + CAST ( NULL AS INTEGER ), 23 AS col2
----
NULL
23

query I rowsort
SELECT NULLIF ( + 41, 88 - 48 )
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-2131
SELECT DISTINCT + - 21 * 90 DIV ( - 32 ) AS col1
----
59

skipif mysql # not compatible
query I rowsort label-2131
SELECT DISTINCT + - 21 * 90 / ( - 32 ) AS col1
----
59

query I rowsort
SELECT - + 58 - ( - 46 )
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-2133
SELECT ALL + 49 * + 68 + - COUNT( * )
----
3331

skipif mysql # not compatible
query I rowsort label-2133
SELECT ALL + 49 * + 68 + - COUNT ( * )
----
3331

onlyif mysql # aggregate syntax: 
query I rowsort label-2134
SELECT 84 * ( - - COUNT( * ) ) - 45
----
39

skipif mysql # not compatible
query I rowsort label-2134
SELECT 84 * ( - - COUNT ( * ) ) - 45
----
39

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

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

skipif mysql # not compatible
query I rowsort label-2136
SELECT + + 14 + COUNT ( * ) AS col2
----
15

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

skipif mysql # not compatible
query I rowsort label-2137
SELECT + SUM ( + 47 )
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2138
SELECT ALL - 28 * + 88 + SUM( 1 ) AS col0
----
-2463

skipif mysql # not compatible
query I rowsort label-2138
SELECT ALL - 28 * + 88 + SUM ( 1 ) AS col0
----
-2463

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

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

query I rowsort
SELECT - 92 + + CASE + 57 WHEN - 82 THEN - 47 * + + 62 / 58 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2141
SELECT ALL + COUNT( * ) * - ( 97 ) col1
----
-97

skipif mysql # not compatible
query I rowsort label-2141
SELECT ALL + COUNT ( * ) * - ( 97 ) col1
----
-97

query I rowsort
SELECT COALESCE ( - 37, + + 69 * - 19, + 60 )
----
-37

query I rowsort
SELECT ALL - 32 * - 89 - - 54 AS col1
----
2902

query I rowsort
SELECT DISTINCT CASE WHEN NOT NULLIF ( - 49, - ( + 78 ) ) IS NULL THEN + 13 * - - 58 END * - + 30 - + + 20 AS col2
----
-22640

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2146
SELECT - COUNT( ALL + 35 ) * 98 + - ( - - 55 ) col0
----
-153

skipif mysql # not compatible
query I rowsort label-2146
SELECT - COUNT ( ALL + 35 ) * 98 + - ( - - 55 ) col0
----
-153

query I rowsort
SELECT ALL + 46 * - 46 * - - 3
----
-6348

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2150
SELECT - COALESCE ( - SUM( 29 ), - + 85 ) + COUNT( * ) * + + 96
----
125

skipif mysql # not compatible
query I rowsort label-2150
SELECT - COALESCE ( - SUM ( 29 ), - + 85 ) + COUNT ( * ) * + + 96
----
125

query I rowsort
SELECT COALESCE ( + - 31, - 52 ) AS col2
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-2152
SELECT COUNT( * ) * 6 - 67
----
-61

skipif mysql # not compatible
query I rowsort label-2152
SELECT COUNT ( * ) * 6 - 67
----
-61

query I rowsort
SELECT ALL + 84 * 42
----
3528

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2154
SELECT DISTINCT COUNT( * ) * + - COALESCE ( - 45, - MAX( DISTINCT CAST( NULL AS SIGNED ) ) + - + 77 * - 37, + 45 * 42, + ( 80 ) DIV - COUNT( * ) )
----
45

skipif mysql # not compatible
query I rowsort label-2154
SELECT DISTINCT COUNT ( * ) * + - COALESCE ( - 45, - MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) + - + 77 * - 37, + 45 * 42, + ( 80 ) / - COUNT ( * ) )
----
45

query I rowsort
SELECT DISTINCT + 2 * - ( + 84 )
----
-168

onlyif mysql # DIV for integer division: 
query I rowsort label-2156
SELECT - 82 DIV - 17
----
4

skipif mysql # not compatible
query I rowsort label-2156
SELECT - 82 / - 17
----
4

query I rowsort
SELECT ALL - 84 * + - ( 54 )
----
4536

onlyif mysql # aggregate syntax: 
query I rowsort label-2158
SELECT DISTINCT + 30 * + MAX( ALL 22 ) AS col2
----
660

skipif mysql # not compatible
query I rowsort label-2158
SELECT DISTINCT + 30 * + MAX ( ALL 22 ) AS col2
----
660

query I rowsort
SELECT + - 89 - - 36
----
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-2160
SELECT ALL - 49 AS col0, 79 * 19 * - 76 * - - COUNT( * ) + - - 80 - 98
----
-49
-114094

skipif mysql # not compatible
query II rowsort label-2160
SELECT ALL - 49 AS col0, 79 * 19 * - 76 * - - COUNT ( * ) + - - 80 - 98
----
-49
-114094

onlyif mysql # aggregate syntax: 
query I rowsort label-2161
SELECT ALL CASE 72 WHEN - COUNT( * ) * 53 + - 69 THEN - 78 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2161
SELECT ALL CASE 72 WHEN - COUNT ( * ) * 53 + - 69 THEN - 78 ELSE NULL END
----
NULL

query I rowsort
SELECT + CASE - - 35 WHEN + 18 THEN + - 95 ELSE NULL END / + 59 / + - 58 - - ( + - 77 ) AS col2
----
NULL

query I rowsort
SELECT - 34 + 56 + + 44 - 78 AS col0
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2164
SELECT + NULLIF ( COUNT( * ), 91 ) * - - COALESCE ( + + 86, + + 80 - COUNT( * ) / - - 33, - - COUNT( * ) - CAST( NULL AS SIGNED ) + - 43 ) * - 83 + - + 30 * ( + - ( + + CAST( NULL AS SIGNED ) ) ) * 39 * + - SUM( + 17 ) * + ( + 66 ) * + 65 / - + AVG ( - + 61 ) + - 92 * - + 69 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2164
SELECT + NULLIF ( COUNT ( * ), 91 ) * - - COALESCE ( + + 86, + + 80 - COUNT ( * ) / - - 33, - - COUNT ( * ) - CAST ( NULL AS INTEGER ) + - 43 ) * - 83 + - + 30 * ( + - ( + + CAST ( NULL AS INTEGER ) ) ) * 39 * + - SUM ( + 17 ) * + ( + 66 ) * + 65 / - + AVG ( - + 61 ) + - 92 * - + 69 AS col0
----
NULL

query II rowsort
SELECT ALL 77 + + - 5 col2, - 57 * - 75 * - + 48
----
72
-205200

query I rowsort
SELECT ALL 91 + + 71 * - 9
----
-548

onlyif mysql # aggregate syntax: 
query I rowsort label-2167
SELECT + 61 + 69 + 45 + SUM( DISTINCT 41 ) * + 37
----
1692

skipif mysql # not compatible
query I rowsort label-2167
SELECT + 61 + 69 + 45 + SUM ( DISTINCT 41 ) * + 37
----
1692

query I rowsort
SELECT ALL + 68 + - 89 AS col2
----
-21

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2169
SELECT CAST( - 56 AS SIGNED ) DIV 26 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-2169
SELECT CAST ( - 56 AS INTEGER ) / 26 AS col0
----
-2

query I rowsort
SELECT + 10 + 59 + 22
----
91

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

skipif mysql # not compatible
query I rowsort label-2171
SELECT ALL 80 + - - COUNT ( * ) AS col0
----
81

query II rowsort
SELECT 19, ( 85 ) AS col0
----
19
85

query I rowsort
SELECT + NULLIF ( + 43, + 42 ) AS col0
----
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2174
SELECT - 72 * - COUNT( ALL - - 46 ) + + COUNT( * ) - + 31 + MAX( DISTINCT - + 49 ) DIV + + 55 + 67 + + + 32 AS col0
----
141

skipif mysql # not compatible
query I rowsort label-2174
SELECT - 72 * - COUNT ( ALL - - 46 ) + + COUNT ( * ) - + 31 + MAX ( DISTINCT - + 49 ) / + + 55 + 67 + + + 32 AS col0
----
141

query I rowsort
SELECT - 77 * + - 51
----
3927

query I rowsort
SELECT ALL - - COALESCE ( 3, - 90 - + 33, - 77 )
----
3

query II rowsort
SELECT 51 * + + 35 AS col2, 97 col2
----
1785
97

query I rowsort
SELECT ALL - 78 * + 71 * - 2 AS col2
----
11076

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2179
SELECT ALL + 15 * - NULLIF ( + 83, 37 * - - 87 ), - 67 * - 69 DIV - COUNT( * ) + - COUNT( * ) AS col1
----
-1245
-4624

skipif mysql # not compatible
query II rowsort label-2179
SELECT ALL + 15 * - NULLIF ( + 83, 37 * - - 87 ), - 67 * - 69 / - COUNT ( * ) + - COUNT ( * ) AS col1
----
-1245
-4624

onlyif mysql # aggregate syntax: 
query II rowsort label-2180
SELECT ALL 54 * - + 72 AS col0, MIN( - 83 )
----
-3888
-83

skipif mysql # not compatible
query II rowsort label-2180
SELECT ALL 54 * - + 72 AS col0, MIN ( - 83 )
----
-3888
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-2181
SELECT 41 DIV + + 63 * - 65 col1
----
0

skipif mysql # not compatible
query I rowsort label-2181
SELECT 41 / + + 63 * - 65 col1
----
0

query I rowsort
SELECT 76 * - 60
----
-4560

query I rowsort
SELECT ( + 95 ) * 41 AS col2
----
3895

query I rowsort
SELECT 86 * - 61
----
-5246

query I rowsort
SELECT ALL + 15 * + 48
----
720

onlyif mysql # aggregate syntax: 
query I rowsort label-2186
SELECT 24 * ( + - 41 ) - 70 + SUM( DISTINCT + 72 ) AS col0
----
-982

skipif mysql # not compatible
query I rowsort label-2186
SELECT 24 * ( + - 41 ) - 70 + SUM ( DISTINCT + 72 ) AS col0
----
-982

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2187
SELECT 16 * - + MIN( DISTINCT - 32 ) * + 16 + + CASE + ( + 2 ) WHEN 39 * ( + 49 ) THEN NULL ELSE + CAST( NULL AS SIGNED ) * + + 3 * - + COUNT( ALL + + 24 ) END + - + 33 + - + 53 * + 89, 91 DIV + + COUNT( * ) AS col1
----
NULL
91

skipif mysql # not compatible
query II rowsort label-2187
SELECT 16 * - + MIN ( DISTINCT - 32 ) * + 16 + + CASE + ( + 2 ) WHEN 39 * ( + 49 ) THEN NULL ELSE + CAST ( NULL AS INTEGER ) * + + 3 * - + COUNT ( ALL + + 24 ) END + - + 33 + - + 53 * + 89, 91 / + + COUNT ( * ) AS col1
----
NULL
91

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2189
SELECT 76 * - COUNT( * ) * + 66
----
-5016

skipif mysql # not compatible
query I rowsort label-2189
SELECT 76 * - COUNT ( * ) * + 66
----
-5016

onlyif mysql # aggregate syntax: 
query I rowsort label-2190
SELECT ALL 12 + + - SUM( ALL 47 ) - 20 AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-2190
SELECT ALL 12 + + - SUM ( ALL 47 ) - 20 AS col2
----
-55

query I rowsort
SELECT 92 + - 24 AS col2
----
68

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2193
SELECT ALL - MAX( 81 ) + 57
----
-24

skipif mysql # not compatible
query I rowsort label-2193
SELECT ALL - MAX ( 81 ) + 57
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2194
SELECT + CASE + COUNT( ALL - - 43 ) WHEN - COUNT( * ) THEN + + NULLIF ( NULLIF ( - + COUNT( * ), - CAST( NULL AS SIGNED ) + + - 87 ), + 22 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2194
SELECT + CASE + COUNT ( ALL - - 43 ) WHEN - COUNT ( * ) THEN + + NULLIF ( NULLIF ( - + COUNT ( * ), - CAST ( NULL AS INTEGER ) + + - 87 ), + 22 ) END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2195
SELECT DISTINCT - CAST( - - 46 AS SIGNED ) AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-2195
SELECT DISTINCT - CAST ( - - 46 AS INTEGER ) AS col1
----
-46

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2197
SELECT + COUNT( * ) + - 27 * CAST( + + 85 AS SIGNED ) DIV - + ( - 3 ) AS col1
----
-764

skipif mysql # not compatible
query I rowsort label-2197
SELECT + COUNT ( * ) + - 27 * CAST ( + + 85 AS INTEGER ) / - + ( - 3 ) AS col1
----
-764

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2198
SELECT ALL + + ( - 36 ) + + - NULLIF ( + 98, + + MAX( ALL + 45 ) ) + - COUNT( * ) AS col2, COUNT( * ) - + 62 DIV + COUNT( * ) AS col0
----
-135
-61

skipif mysql # not compatible
query II rowsort label-2198
SELECT ALL + + ( - 36 ) + + - NULLIF ( + 98, + + MAX ( ALL + 45 ) ) + - COUNT ( * ) AS col2, COUNT ( * ) - + 62 / + COUNT ( * ) AS col0
----
-135
-61

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

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

query II rowsort
SELECT ALL - 2 + - 67, - 77 AS col2
----
-69
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2201
SELECT - CASE WHEN 21 IS NULL THEN NULL WHEN + 22 IS NULL THEN CASE 22 WHEN + + 9 THEN NULL ELSE + CAST( - + 86 AS SIGNED ) + + - 15 END WHEN ( NOT + 78 BETWEEN + 98 AND + CAST( NULL AS SIGNED ) ) THEN + CAST( - 25 AS SIGNED ) END * CAST( NULL AS SIGNED ) * - - 15
----
NULL

skipif mysql # not compatible
query I rowsort label-2201
SELECT - CASE WHEN 21 IS NULL THEN NULL WHEN + 22 IS NULL THEN CASE 22 WHEN + + 9 THEN NULL ELSE + CAST ( - + 86 AS INTEGER ) + + - 15 END WHEN ( NOT + 78 BETWEEN + 98 AND + CAST ( NULL AS INTEGER ) ) THEN + CAST ( - 25 AS INTEGER ) END * CAST ( NULL AS INTEGER ) * - - 15
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2202
SELECT ALL CAST( NULL AS SIGNED ) + + 49 * + + 91 AS col0, 53 * + - COALESCE ( - - 21, - + 59, + + 10 * - - 99 ) AS col1
----
NULL
-1113

skipif mysql # not compatible
query II rowsort label-2202
SELECT ALL CAST ( NULL AS INTEGER ) + + 49 * + + 91 AS col0, 53 * + - COALESCE ( - - 21, - + 59, + + 10 * - - 99 ) AS col1
----
NULL
-1113

onlyif mysql # aggregate syntax: 
query I rowsort label-2203
SELECT ALL + COUNT( * ) * + CASE + 10 WHEN - 28 * + COUNT( * ) THEN - - 74 ELSE + 45 * - - COUNT( * ) END AS col2
----
45

skipif mysql # not compatible
query I rowsort label-2203
SELECT ALL + COUNT ( * ) * + CASE + 10 WHEN - 28 * + COUNT ( * ) THEN - - 74 ELSE + 45 * - - COUNT ( * ) END AS col2
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2204
SELECT - MIN( + 17 ) DIV 52 - 30 * 40 * - 64 * - + 98 AS col1
----
-7526400

skipif mysql # not compatible
query I rowsort label-2204
SELECT - MIN ( + 17 ) / 52 - 30 * 40 * - 64 * - + 98 AS col1
----
-7526400

query I rowsort
SELECT ALL - - 12 - + 99
----
-87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2206
SELECT - NULLIF ( - 43, + AVG ( + - 16 ) * + COUNT( * ) ) * - 9 + 28 - + 31 DIV ( 59 )
----
-359

skipif mysql # not compatible
query I rowsort label-2206
SELECT - NULLIF ( - 43, + AVG ( + - 16 ) * + COUNT ( * ) ) * - 9 + 28 - + 31 / ( 59 )
----
-359

query I rowsort
SELECT 2 - 59 AS col2
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-2208
SELECT + COUNT( + + 52 ) - 93
----
-92

skipif mysql # not compatible
query I rowsort label-2208
SELECT + COUNT ( + + 52 ) - 93
----
-92

query I rowsort
SELECT DISTINCT - - 9 col2
----
9

query I rowsort
SELECT ALL 67 * - 50
----
-3350

query I rowsort
SELECT 60 - 12 * - - 13
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2212
SELECT ALL 78 * 77 * - CAST( NULL AS SIGNED ) * 45 * + 98
----
NULL

skipif mysql # not compatible
query I rowsort label-2212
SELECT ALL 78 * 77 * - CAST ( NULL AS INTEGER ) * 45 * + 98
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2213
SELECT - 8 DIV - 49 * 11 + - 7 + - COUNT( * ) AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-2213
SELECT - 8 / - 49 * 11 + - 7 + - COUNT ( * ) AS col1
----
-8

query I rowsort
SELECT DISTINCT 13 * COALESCE ( + - 52, 32 ) AS col2
----
-676

onlyif mysql # aggregate syntax: 
query I rowsort label-2215
SELECT MAX( ALL - COALESCE ( 5, 90 + - 22 + - 53 * + ( - + 70 ) * + 3 + - NULLIF ( 86, 30 * - + 88 ) + + + 87 / - 51 * - 56 + + 41 * 53 + + 69 ) )
----
-5

skipif mysql # not compatible
query I rowsort label-2215
SELECT MAX ( ALL - COALESCE ( 5, 90 + - 22 + - 53 * + ( - + 70 ) * + 3 + - NULLIF ( 86, 30 * - + 88 ) + + + 87 / - 51 * - 56 + + 41 * 53 + + 69 ) )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2216
SELECT 86 * COUNT( 70 ) AS col0
----
86

skipif mysql # not compatible
query I rowsort label-2216
SELECT 86 * COUNT ( 70 ) AS col0
----
86

onlyif mysql # aggregate syntax: 
query II rowsort label-2217
SELECT + 57 * ( + MAX( - 65 ) ) + + 66 * + 12 - + - ( - 1 ) col1, - 68 + - 49 AS col2
----
-2914
-117

skipif mysql # not compatible
query II rowsort label-2217
SELECT + 57 * ( + MAX ( - 65 ) ) + + 66 * + 12 - + - ( - 1 ) col1, - 68 + - 49 AS col2
----
-2914
-117

onlyif mysql # aggregate syntax: 
query II rowsort label-2218
SELECT 99 AS col1, + MIN( + 4 ) + - + COUNT( * ) - - + COUNT( * ) AS col1
----
99
4

skipif mysql # not compatible
query II rowsort label-2218
SELECT 99 AS col1, + MIN ( + 4 ) + - + COUNT ( * ) - - + COUNT ( * ) AS col1
----
99
4

query I rowsort
SELECT ( 2 ) * - ( - 3 ) + 90 AS col1
----
96

query II rowsort
SELECT ALL - 40, - 29 AS col0
----
-40
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-2221
SELECT 76 DIV 46 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2221
SELECT 76 / 46 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2222
SELECT ALL 12 + 51 + + 88 + + COUNT( DISTINCT + 63 )
----
152

skipif mysql # not compatible
query I rowsort label-2222
SELECT ALL 12 + 51 + + 88 + + COUNT ( DISTINCT + 63 )
----
152

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2224
SELECT ALL - COUNT( * ) + + COALESCE ( 62, - 55, COUNT( * ) * - 5 ) + 16
----
77

skipif mysql # not compatible
query I rowsort label-2224
SELECT ALL - COUNT ( * ) + + COALESCE ( 62, - 55, COUNT ( * ) * - 5 ) + 16
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-2225
SELECT ALL 65 DIV - + 39
----
-1

skipif mysql # not compatible
query I rowsort label-2225
SELECT ALL 65 / - + 39
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2226
SELECT 4 + + CAST( NULL AS SIGNED ) + - 52 * 41 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2226
SELECT 4 + + CAST ( NULL AS INTEGER ) + - 52 * 41 col2
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2228
SELECT 11 * - - CAST( COUNT( * ) AS SIGNED ) * - - CAST( - CASE COUNT( DISTINCT + 29 ) WHEN + SUM( DISTINCT - + ( CAST( NULL AS SIGNED ) ) ) THEN - AVG ( ALL CAST( NULL AS SIGNED ) ) WHEN - - 21 THEN NULL END AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2228
SELECT 11 * - - CAST ( COUNT ( * ) AS INTEGER ) * - - CAST ( - CASE COUNT ( DISTINCT + 29 ) WHEN + SUM ( DISTINCT - + ( CAST ( NULL AS INTEGER ) ) ) THEN - AVG ( ALL CAST ( NULL AS INTEGER ) ) WHEN - - 21 THEN NULL END AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL + 21 + + 68 * + + 80 AS col0
----
5461

query I rowsort
SELECT + 16 + - 45 * - - 8 + + 49 + - 99 AS col1
----
-394

query II rowsort
SELECT DISTINCT - 9 AS col0, 46 AS col1
----
-9
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2232
SELECT DISTINCT - + 52 + + - 98 - + COUNT( ALL + CAST( + 16 AS SIGNED ) )
----
-151

skipif mysql # not compatible
query I rowsort label-2232
SELECT DISTINCT - + 52 + + - 98 - + COUNT ( ALL + CAST ( + 16 AS INTEGER ) )
----
-151

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2234
SELECT ALL NULLIF ( 81, + + 33 - + MAX( ALL + - 4 ) - + + 32 ) + - + 62 col1
----
19

skipif mysql # not compatible
query I rowsort label-2234
SELECT ALL NULLIF ( 81, + + 33 - + MAX ( ALL + - 4 ) - + + 32 ) + - + 62 col1
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-2235
SELECT DISTINCT - 73 + + COUNT( * ) col0
----
-72

skipif mysql # not compatible
query I rowsort label-2235
SELECT DISTINCT - 73 + + COUNT ( * ) col0
----
-72

query I rowsort
SELECT DISTINCT NULLIF ( + 60, 93 )
----
60

query II rowsort
SELECT ALL - 47 AS col2, + 35
----
-47
35

query I rowsort
SELECT - ( - 30 ) - 1
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2239
SELECT + 9 + - + 0 DIV - - 77 AS col2, - COUNT( * ) AS col0
----
9
-1

skipif mysql # not compatible
query II rowsort label-2239
SELECT + 9 + - + 0 / - - 77 AS col2, - COUNT ( * ) AS col0
----
9
-1

query I rowsort
SELECT - 79 + - 17 * - - CASE + 14 WHEN - 81 THEN - 75 * + - 86 END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2241
SELECT MAX ( - - 76 )
----
76

query I rowsort
SELECT - + 85 + + + 21
----
-64

query I rowsort
SELECT - + 80 * + 82 AS col0
----
-6560

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2244
SELECT ALL COALESCE ( - 0, + - CAST( + COUNT( * ) AS SIGNED ) * - SUM( + 95 ) + 60, + - 29 )
----
0

skipif mysql # not compatible
query I rowsort label-2244
SELECT ALL COALESCE ( - 0, + - CAST ( + COUNT ( * ) AS INTEGER ) * - SUM ( + 95 ) + 60, + - 29 )
----
0

query I rowsort
SELECT - - 5 - + 95 * - 95 * - 59
----
-532470

query II rowsort
SELECT ALL 61, + 57 AS col2
----
61
57

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

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

query I rowsort
SELECT - 68 * - 10
----
680

query I rowsort
SELECT - - 61 + + + 55 + + 67 * + 53 * + 71 - - - 46 col0
----
252191

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2250
SELECT DISTINCT + + COALESCE ( - CAST( NULL AS SIGNED ), - 42 + - 50 ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2250
SELECT DISTINCT + + COALESCE ( - CAST ( NULL AS INTEGER ), - 42 + - 50 ) * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2251
SELECT - 95 + + SUM( - CAST( NULL AS SIGNED ) ) + - COALESCE ( - SUM( 38 ), - 31 * + 36, 22 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2251
SELECT - 95 + + SUM ( - CAST ( NULL AS INTEGER ) ) + - COALESCE ( - SUM ( 38 ), - 31 * + 36, 22 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2252
SELECT - 84 DIV + + 98
----
0

skipif mysql # not compatible
query I rowsort label-2252
SELECT - 84 / + + 98
----
0

query I rowsort
SELECT - 49 + - 67
----
-116

query I rowsort
SELECT + 66 * + - 13 AS col0
----
-858

query I rowsort
SELECT + 54 * - 20 + + 11
----
-1069

onlyif mysql # DIV for integer division: 
query I rowsort label-2256
SELECT + ( 83 ) DIV + + 77
----
1

skipif mysql # not compatible
query I rowsort label-2256
SELECT + ( 83 ) / + + 77
----
1

query I rowsort
SELECT ALL 72 * + 73 + - 14 col2
----
5242

onlyif mysql # aggregate syntax: 
query I rowsort label-2258
SELECT + COALESCE ( ( 1 ), + 42 * 40 - + COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-2258
SELECT + COALESCE ( ( 1 ), + 42 * 40 - + COUNT ( * ) )
----
1

query I rowsort
SELECT ALL ( - 51 ) * - 18 + - 8 + + 96 AS col0
----
1006

onlyif mysql # aggregate syntax: 
query I rowsort label-2260
SELECT ALL + MAX( DISTINCT + + 68 ) * - 68 + - SUM( + + 52 ) * + 94 + - 34 * 30
----
-10532

skipif mysql # not compatible
query I rowsort label-2260
SELECT ALL + MAX ( DISTINCT + + 68 ) * - 68 + - SUM ( + + 52 ) * + 94 + - 34 * 30
----
-10532

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2263
SELECT NULLIF ( + SUM( ALL - 75 ), 27 ) AS col1, 56
----
-75
56

skipif mysql # not compatible
query II rowsort label-2263
SELECT NULLIF ( + SUM ( ALL - 75 ), 27 ) AS col1, 56
----
-75
56

onlyif mysql # DIV for integer division: 
query I rowsort label-2264
SELECT ALL 65 * - - 13 + 36 * + 30 * + COALESCE ( + - 4, - + 74 ) + + 36 + 32 + - 19 DIV - 65 AS col0
----
-3407

skipif mysql # not compatible
query I rowsort label-2264
SELECT ALL 65 * - - 13 + 36 * + 30 * + COALESCE ( + - 4, - + 74 ) + + 36 + 32 + - 19 / - 65 AS col0
----
-3407

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2265
SELECT CASE - - 81 WHEN - - CAST( - + COUNT( * ) AS SIGNED ) THEN - 24 + + - COALESCE ( - - 74, - + 19 ) WHEN 75 THEN + 94 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2265
SELECT CASE - - 81 WHEN - - CAST ( - + COUNT ( * ) AS INTEGER ) THEN - 24 + + - COALESCE ( - - 74, - + 19 ) WHEN 75 THEN + 94 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2266
SELECT + CASE AVG ( DISTINCT + CAST( + - 95 AS SIGNED ) ) WHEN + + 6 THEN + 48 WHEN - 55 THEN + COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2266
SELECT + CASE AVG ( DISTINCT + CAST ( + - 95 AS INTEGER ) ) WHEN + + 6 THEN + 48 WHEN - 55 THEN + COUNT ( * ) END AS col2
----
NULL

query I rowsort
SELECT ALL + - 57 AS col1
----
-57

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

skipif mysql # not compatible
query I rowsort label-2268
SELECT DISTINCT - COUNT ( * ) / + - 99 + + 79 AS col1
----
79

query I rowsort
SELECT ALL - + 17 * 92 - + 53
----
-1617

onlyif mysql # aggregate syntax: 
query II rowsort label-2270
SELECT DISTINCT ( - COUNT( * ) ), 55 * - 21 * + 98 AS col1
----
-1
-113190

skipif mysql # not compatible
query II rowsort label-2270
SELECT DISTINCT ( - COUNT ( * ) ), 55 * - 21 * + 98 AS col1
----
-1
-113190

onlyif mysql # aggregate syntax: 
query I rowsort label-2271
SELECT + - MAX( ALL - 59 ) + - 69
----
-10

skipif mysql # not compatible
query I rowsort label-2271
SELECT + - MAX ( ALL - 59 ) + - 69
----
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2272
SELECT + 16 DIV 44 * + 64 * + SUM( DISTINCT + - 13 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2272
SELECT + 16 / 44 * + 64 * + SUM ( DISTINCT + - 13 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2273
SELECT + + 56 * - 18 * COUNT( * ) * - COUNT( * ) AS col0
----
1008

skipif mysql # not compatible
query I rowsort label-2273
SELECT + + 56 * - 18 * COUNT ( * ) * - COUNT ( * ) AS col0
----
1008

query I rowsort
SELECT - 99 + + 7
----
-92

query I rowsort
SELECT DISTINCT 69 * 82 * - + 24 * ( 4 )
----
-543168

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2277
SELECT COALESCE ( + + 8, + 6, - - 98 + 84 + + COUNT( * ) ) col2
----
8

skipif mysql # not compatible
query I rowsort label-2277
SELECT COALESCE ( + + 8, + 6, - - 98 + 84 + + COUNT ( * ) ) col2
----
8

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

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

query II rowsort
SELECT + ( + 25 ) AS col1, + 25 * + 60 col1
----
25
1500

query I rowsort
SELECT + - 29 * - - 98 * + 94 AS col0
----
-267148

query I rowsort
SELECT DISTINCT + 83 + + 33 AS col1
----
116

query I rowsort
SELECT + 37 - 59
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-2283
SELECT ALL + 56 * 77 * - COUNT( DISTINCT + - 37 ) AS col0
----
-4312

skipif mysql # not compatible
query I rowsort label-2283
SELECT ALL + 56 * 77 * - COUNT ( DISTINCT + - 37 ) AS col0
----
-4312

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2285
SELECT - MAX( ALL CAST( NULL AS SIGNED ) ) - + + 14
----
NULL

skipif mysql # not compatible
query I rowsort label-2285
SELECT - MAX ( ALL CAST ( NULL AS INTEGER ) ) - + + 14
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-2286
SELECT DISTINCT + 39 * 87 * + 77 AS col0, NULLIF ( - - 62, - COUNT( * ) ) * - 26 + + + 43, MIN( - + ( 97 ) ) + 68 AS col1
----
261261
-1569
-29

skipif mysql # not compatible
query III rowsort label-2286
SELECT DISTINCT + 39 * 87 * + 77 AS col0, NULLIF ( - - 62, - COUNT ( * ) ) * - 26 + + + 43, MIN ( - + ( 97 ) ) + 68 AS col1
----
261261
-1569
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2287
SELECT DISTINCT + CAST( CAST( COUNT( * ) AS DECIMAL ) AS SIGNED ) col2, 28 AS col2
----
1
28

skipif mysql # not compatible
query II rowsort label-2287
SELECT DISTINCT + CAST ( CAST ( COUNT ( * ) AS REAL ) AS INTEGER ) col2, 28 AS col2
----
1
28

query I rowsort
SELECT + 11 * + 94 + + 39
----
1073

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

query I rowsort
SELECT ALL + 51 - - + COALESCE ( - - 49, 58 ) AS col1
----
100

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

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

query I rowsort
SELECT - 10 * - 37 + + + ( 81 ) AS col2
----
451

query II rowsort
SELECT ALL + 24 * + - 78 * + + 2 AS col2, - 20
----
-3744
-20

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

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

query I rowsort
SELECT - 5 * - + NULLIF ( + 73, - + 33 ) AS col2
----
365

query I rowsort
SELECT - 14 + - 58
----
-72

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

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

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

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

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

query I rowsort
SELECT ALL + 30 * + - 18 * - 68 AS col2
----
36720

onlyif mysql # DIV for integer division: 
query II rowsort label-2301
SELECT ALL + 8 DIV 93 + + + 61 AS col1, - 48 + + + 29
----
61
-19

skipif mysql # not compatible
query II rowsort label-2301
SELECT ALL + 8 / 93 + + + 61 AS col1, - 48 + + + 29
----
61
-19

query I rowsort
SELECT + 63 - + - 13
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-2303
SELECT ( + CASE + - 73 WHEN - 4 THEN + 7 WHEN - 26 - + - SUM( 71 ) THEN NULL END ) * 11
----
NULL

skipif mysql # not compatible
query I rowsort label-2303
SELECT ( + CASE + - 73 WHEN - 4 THEN + 7 WHEN - 26 - + - SUM ( 71 ) THEN NULL END ) * 11
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2304
SELECT ALL 47 DIV 71
----
0

skipif mysql # not compatible
query I rowsort label-2304
SELECT ALL 47 / 71
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2305
SELECT 15 + + 26 DIV + 52 * 68 AS col1
----
15

skipif mysql # not compatible
query I rowsort label-2305
SELECT 15 + + 26 / + 52 * 68 AS col1
----
15

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

skipif mysql # not compatible
query I rowsort label-2306
SELECT - 30 + + + 53 + - COUNT ( * ) AS col2
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-2307
SELECT 60 + MAX( ALL - 16 )
----
44

skipif mysql # not compatible
query I rowsort label-2307
SELECT 60 + MAX ( ALL - 16 )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-2308
SELECT 95 - - COUNT( ALL 92 ) AS col0
----
96

skipif mysql # not compatible
query I rowsort label-2308
SELECT 95 - - COUNT ( ALL 92 ) AS col0
----
96

query I rowsort
SELECT ALL 96 + + 0 * + 86
----
96

query II rowsort
SELECT 85 AS col0, 82
----
85
82

query I rowsort
SELECT 79 + - 73 * - 21 col1
----
1612

onlyif mysql # aggregate syntax: 
query II rowsort label-2312
SELECT ALL - SUM( - 73 ) + - 3 - - + 41 AS col2, 0 AS col1
----
111
0

skipif mysql # not compatible
query II rowsort label-2312
SELECT ALL - SUM ( - 73 ) + - 3 - - + 41 AS col2, 0 AS col1
----
111
0

query II rowsort
SELECT - 20 col2, + 40 AS col0
----
-20
40

onlyif mysql # DIV for integer division: 
query I rowsort label-2314
SELECT 95 + - 23 + - 41 * + 57 * - + 27 + + 11 - - 17 + - 48 DIV 59
----
63199

skipif mysql # not compatible
query I rowsort label-2314
SELECT 95 + - 23 + - 41 * + 57 * - + 27 + + 11 - - 17 + - 48 / 59
----
63199

onlyif mysql # aggregate syntax: 
query I rowsort label-2315
SELECT ALL 42 + - + COUNT( * ) + 88 * + - 11 AS col0
----
-927

skipif mysql # not compatible
query I rowsort label-2315
SELECT ALL 42 + - + COUNT ( * ) + 88 * + - 11 AS col0
----
-927

query II rowsort
SELECT 80, 92 + 13 AS col0
----
80
105

onlyif mysql # aggregate syntax: 
query I rowsort label-2317
SELECT - 7 * - - ( + MIN( 74 ) ) * + - 42 + + - 48 - - ( 15 ) + - 20 * + - 28 col1
----
22283

skipif mysql # not compatible
query I rowsort label-2317
SELECT - 7 * - - ( + MIN ( 74 ) ) * + - 42 + + - 48 - - ( 15 ) + - 20 * + - 28 col1
----
22283

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2318
SELECT CAST( + 37 AS SIGNED ) * + 6 + 65, 58 AS col2
----
287
58

skipif mysql # not compatible
query II rowsort label-2318
SELECT CAST ( + 37 AS INTEGER ) * + 6 + 65, 58 AS col2
----
287
58

onlyif mysql # DIV for integer division: 
query II rowsort label-2319
SELECT 26 DIV + + ( 53 ) * + - ( - 58 ) * + - 89 + + + 16 + - COALESCE ( - 73, - 91, 92 ), - 26 DIV 26 * + 20 AS col0
----
89
-20

skipif mysql # not compatible
query II rowsort label-2319
SELECT 26 / + + ( 53 ) * + - ( - 58 ) * + - 89 + + + 16 + - COALESCE ( - 73, - 91, 92 ), - 26 / 26 * + 20 AS col0
----
89
-20

query I rowsort
SELECT DISTINCT - 53 - - - 19 AS col1
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-2321
SELECT 10 * + SUM( DISTINCT + 38 )
----
380

skipif mysql # not compatible
query I rowsort label-2321
SELECT 10 * + SUM ( DISTINCT + 38 )
----
380

query I rowsort
SELECT DISTINCT + 90 * 1
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2323
SELECT NULLIF ( 72, - COUNT( * ) ) DIV - 32 AS col0, 32 * + 94 + 19 * - - 73 * + CASE + 68 WHEN + 93 * + - 68 * - - 10 THEN NULL WHEN - - 15 * + - COUNT( + + 92 ) THEN + 99 ELSE - SUM( ALL 39 ) END + 6 - + - 97 AS col2
----
-2
-50982

skipif mysql # not compatible
query II rowsort label-2323
SELECT NULLIF ( 72, - COUNT ( * ) ) / - 32 AS col0, 32 * + 94 + 19 * - - 73 * + CASE + 68 WHEN + 93 * + - 68 * - - 10 THEN NULL WHEN - - 15 * + - COUNT ( + + 92 ) THEN + 99 ELSE - SUM ( ALL 39 ) END + 6 - + - 97 AS col2
----
-2
-50982

onlyif mysql # aggregate syntax: 
query I rowsort label-2324
SELECT - 61 * + + COUNT( * ) * + - 51 * + 68 + + 22
----
211570

skipif mysql # not compatible
query I rowsort label-2324
SELECT - 61 * + + COUNT ( * ) * + - 51 * + 68 + + 22
----
211570

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2325
SELECT DISTINCT - + 53 * - COUNT( * ) * + 82 * + - 27, 65 * CAST( NULL AS SIGNED ) AS col1
----
-117342
NULL

skipif mysql # not compatible
query II rowsort label-2325
SELECT DISTINCT - + 53 * - COUNT ( * ) * + 82 * + - 27, 65 * CAST ( NULL AS INTEGER ) AS col1
----
-117342
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2326
SELECT 92 DIV - + 10
----
-9

skipif mysql # not compatible
query I rowsort label-2326
SELECT 92 / - + 10
----
-9

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

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

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

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

query II rowsort
SELECT DISTINCT - 43 AS col0, 43
----
-43
43

query I rowsort
SELECT ALL - 79 * 56 + 14 AS col1
----
-4410

query I rowsort
SELECT ALL - ( - 34 ) col0
----
34

query I rowsort
SELECT DISTINCT - - 36 + - + 82
----
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-2333
SELECT ALL - + 86 + + 75 DIV - 54
----
-87

skipif mysql # not compatible
query I rowsort label-2333
SELECT ALL - + 86 + + 75 / - 54
----
-87

onlyif mysql # aggregate syntax: 
query II rowsort label-2334
SELECT - + COUNT( * ), + 21 * + - NULLIF ( - 61, - ( - 51 ) + + 48 ) + + 12 * - 34 AS col2
----
-1
873

skipif mysql # not compatible
query II rowsort label-2334
SELECT - + COUNT ( * ), + 21 * + - NULLIF ( - 61, - ( - 51 ) + + 48 ) + + 12 * - 34 AS col2
----
-1
873

onlyif mysql # aggregate syntax: 
query II rowsort label-2335
SELECT SUM( + 19 ) * - NULLIF ( + 60, + - 40 * + - 25 ) AS col2, ( - - 71 )
----
-1140
71

skipif mysql # not compatible
query II rowsort label-2335
SELECT SUM ( + 19 ) * - NULLIF ( + 60, + - 40 * + - 25 ) AS col2, ( - - 71 )
----
-1140
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2336
SELECT - ( + CAST( NULL AS SIGNED ) ) AS col0, - ( MAX( ALL + CAST( NULL AS SIGNED ) ) ) * - - 52
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2336
SELECT - ( + CAST ( NULL AS INTEGER ) ) AS col0, - ( MAX ( ALL + CAST ( NULL AS INTEGER ) ) ) * - - 52
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2337
SELECT DISTINCT - SUM( - + 52 ) * - - 13 AS col1
----
676

skipif mysql # not compatible
query I rowsort label-2337
SELECT DISTINCT - SUM ( - + 52 ) * - - 13 AS col1
----
676

query I rowsort
SELECT ALL + NULLIF ( 88, - - 12 * 13 ) + - - 73
----
161

query I rowsort
SELECT 70 * - 88 AS col1
----
-6160

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2340
SELECT ALL 2 + 84 + - 1 * + - 76 * + 73 * ( NULLIF ( + CAST( NULL AS DECIMAL ), - 4 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2340
SELECT ALL 2 + 84 + - 1 * + - 76 * + 73 * ( NULLIF ( + CAST ( NULL AS REAL ), - 4 ) ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2341
SELECT DISTINCT 37 DIV 1
----
37

skipif mysql # not compatible
query I rowsort label-2341
SELECT DISTINCT 37 / 1
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-2342
SELECT DISTINCT 7 + - ( - + 53 ) * - + COUNT( * ) - - + 29
----
-17

skipif mysql # not compatible
query I rowsort label-2342
SELECT DISTINCT 7 + - ( - + 53 ) * - + COUNT ( * ) - - + 29
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-2343
SELECT MAX( - 15 ) + + 95 + COUNT( DISTINCT + - 34 )
----
81

skipif mysql # not compatible
query I rowsort label-2343
SELECT MAX ( - 15 ) + + 95 + COUNT ( DISTINCT + - 34 )
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2344
SELECT ALL COUNT( * ) - + COUNT( * ) + + COUNT( * ) + - 59 - - 25 * + 42 AS col1
----
992

skipif mysql # not compatible
query I rowsort label-2344
SELECT ALL COUNT ( * ) - + COUNT ( * ) + + COUNT ( * ) + - 59 - - 25 * + 42 AS col1
----
992

onlyif mysql # aggregate syntax: 
query I rowsort label-2345
SELECT DISTINCT 1 / CASE + 81 WHEN + + COUNT( * ) THEN 6 END * - COUNT( * ) * 73
----
NULL

skipif mysql # not compatible
query I rowsort label-2345
SELECT DISTINCT 1 / CASE + 81 WHEN + + COUNT ( * ) THEN 6 END * - COUNT ( * ) * 73
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2346
SELECT 85 - + - 47 col2, SUM( ALL 3 )
----
132
3

skipif mysql # not compatible
query II rowsort label-2346
SELECT 85 - + - 47 col2, SUM ( ALL 3 )
----
132
3

query I rowsort
SELECT 20 * 29
----
580

query II rowsort
SELECT ALL 36 * + 69 AS col1, 45
----
2484
45

query I rowsort
SELECT CASE 38 WHEN 5 THEN NULL ELSE - - ( + 20 ) END - - - 7
----
13

query I rowsort
SELECT ALL 6 - 1 * + - 8 AS col0
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2351
SELECT 40 DIV + COUNT( * ) * COUNT( * ) + + - SUM( - - 0 ) + ( - 35 ) + 99 AS col2
----
104

skipif mysql # not compatible
query I rowsort label-2351
SELECT 40 / + COUNT ( * ) * COUNT ( * ) + + - SUM ( - - 0 ) + ( - 35 ) + 99 AS col2
----
104

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2353
SELECT DISTINCT ( + - 31 ) * COUNT( * ), COUNT( * ) - + ( 81 ) + + 85 * + ( + 48 ) + 32 - + + 30 * + - MIN( + 60 ) * - 22 AS col0
----
-31
-35568

skipif mysql # not compatible
query II rowsort label-2353
SELECT DISTINCT ( + - 31 ) * COUNT ( * ), COUNT ( * ) - + ( 81 ) + + 85 * + ( + 48 ) + 32 - + + 30 * + - MIN ( + 60 ) * - 22 AS col0
----
-31
-35568

query I rowsort
SELECT 40 * + 18 - - ( + NULLIF ( + - 0, 72 ) )
----
720

query I rowsort
SELECT - + 13 * 77 col0
----
-1001

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2356
SELECT - 34 + - ( + AVG ( ALL - + CAST( NULL AS SIGNED ) ) ) + - COUNT( * ) + + 96 * 44 * 20 + - 65 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2356
SELECT - 34 + - ( + AVG ( ALL - + CAST ( NULL AS INTEGER ) ) ) + - COUNT ( * ) + + 96 * 44 * 20 + - 65 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2357
SELECT + NULLIF ( + CASE 3 WHEN - 2 + + COALESCE ( - 47, 4 ) - 13 THEN - 10 WHEN 23 + 66 + - - 31 + + 22 + - 6 + - + COUNT( * ) * - 74 * - 24 THEN NULL END, - 61 / + 30 * - 40 * + 11 * - - 73 - + - 89 - + CAST( NULL AS SIGNED ) + 35 ) col2, 45 - + 86 * + 67 * - + COALESCE ( 46, CASE 42 WHEN 35 THEN NULL WHEN + 52 - - 89 THEN + NULLIF ( + 64, - 29 ) * 68 + 71 * + 69 END * ( 86 * 39 ) + - 18 * + 86, + COUNT( * ) + + MAX( - 97 ) * MAX( 2 ) )
----
NULL
265097

skipif mysql # not compatible
query II rowsort label-2357
SELECT + NULLIF ( + CASE 3 WHEN - 2 + + COALESCE ( - 47, 4 ) - 13 THEN - 10 WHEN 23 + 66 + - - 31 + + 22 + - 6 + - + COUNT ( * ) * - 74 * - 24 THEN NULL END, - 61 / + 30 * - 40 * + 11 * - - 73 - + - 89 - + CAST ( NULL AS INTEGER ) + 35 ) col2, 45 - + 86 * + 67 * - + COALESCE ( 46, CASE 42 WHEN 35 THEN NULL WHEN + 52 - - 89 THEN + NULLIF ( + 64, - 29 ) * 68 + 71 * + 69 END * ( 86 * 39 ) + - 18 * + 86, + COUNT ( * ) + + MAX ( - 97 ) * MAX ( 2 ) )
----
NULL
265097

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2358
SELECT ALL - + 76 DIV 63 AS col1, + 77 * + 50 * + 18 * + SUM( ALL - 16 ) AS col0
----
-1
-1108800

skipif mysql # not compatible
query II rowsort label-2358
SELECT ALL - + 76 / 63 AS col1, + 77 * + 50 * + 18 * + SUM ( ALL - 16 ) AS col0
----
-1
-1108800

query I rowsort
SELECT - ( - 3 ) * + 78 + + - 67 + - 48 AS col0
----
119

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

query I rowsort
SELECT + 96 * - ( + - 8 ) + 86 AS col1
----
854

onlyif mysql # aggregate syntax: 
query I rowsort label-2362
SELECT DISTINCT - 41 * - COUNT( * ) * - 37
----
-1517

skipif mysql # not compatible
query I rowsort label-2362
SELECT DISTINCT - 41 * - COUNT ( * ) * - 37
----
-1517

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2363
SELECT ALL + NULLIF ( + COUNT( DISTINCT + ( CAST( + 46 AS SIGNED ) ) ), - 38 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2363
SELECT ALL + NULLIF ( + COUNT ( DISTINCT + ( CAST ( + 46 AS INTEGER ) ) ), - 38 ) AS col2
----
1

query I rowsort
SELECT DISTINCT + + 58 AS col0
----
58

query I rowsort
SELECT DISTINCT + 34 * 16 + ( + - 85 )
----
459

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2366
SELECT - + 41 * NULLIF ( 94, 90 * 3 + 90 ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2366
SELECT - + 41 * NULLIF ( 94, 90 * 3 + 90 ) + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2367
SELECT - 50 * - - COUNT( * ) + + 93
----
43

skipif mysql # not compatible
query I rowsort label-2367
SELECT - 50 * - - COUNT ( * ) + + 93
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2368
SELECT ALL + 56 + + SUM( ALL + 76 ) - - - 87 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2368
SELECT ALL + 56 + + SUM ( ALL + 76 ) - - - 87 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2369
SELECT - - 50 + ( + - 14 ) + 65 DIV - 70 * - 23 AS col1
----
36

skipif mysql # not compatible
query I rowsort label-2369
SELECT - - 50 + ( + - 14 ) + 65 / - 70 * - 23 AS col1
----
36

query II rowsort
SELECT ALL 81 + + - 72 col1, 3 + - 48
----
9
-45

query I rowsort
SELECT - 25 + - 63 * - 99
----
6212

query I rowsort
SELECT - 39 + 88
----
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2373
SELECT ALL COUNT( * ), 62 DIV + - 97 * - + 28 AS col0
----
1
0

skipif mysql # not compatible
query II rowsort label-2373
SELECT ALL COUNT ( * ), 62 / + - 97 * - + 28 AS col0
----
1
0

query I rowsort
SELECT - 48 * + - 6 col0
----
288

query I rowsort
SELECT DISTINCT - 25 * - 67 AS col1
----
1675

query II rowsort
SELECT 61 AS col2, + 3 * + 9
----
61
27

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

query I rowsort
SELECT ALL - 35 - + 64
----
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-2379
SELECT DISTINCT CASE COUNT( * ) WHEN NULLIF ( - 63, + COUNT( * ) ) THEN + + 33 - + - 56 WHEN - 38 THEN NULL END AS col2, - 89 * - 39 * + COUNT( * )
----
NULL
3471

skipif mysql # not compatible
query II rowsort label-2379
SELECT DISTINCT CASE COUNT ( * ) WHEN NULLIF ( - 63, + COUNT ( * ) ) THEN + + 33 - + - 56 WHEN - 38 THEN NULL END AS col2, - 89 * - 39 * + COUNT ( * )
----
NULL
3471

query I rowsort
SELECT - 77 + 62 col1
----
-15

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2383
SELECT DISTINCT CAST( NULL AS DECIMAL ) col2, - 71 - + 81
----
NULL
-152

skipif mysql # not compatible
query II rowsort label-2383
SELECT DISTINCT CAST ( NULL AS REAL ) col2, - 71 - + 81
----
NULL
-152

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2384
SELECT ALL CAST( + + CASE - COUNT( * ) WHEN + 67 THEN NULL ELSE - 63 DIV + - 5 END AS SIGNED )
----
12

skipif mysql # not compatible
query I rowsort label-2384
SELECT ALL CAST ( + + CASE - COUNT ( * ) WHEN + 67 THEN NULL ELSE - 63 / + - 5 END AS INTEGER )
----
12

query II rowsort
SELECT 34 AS col2, + 14
----
34
14

query I rowsort
SELECT + 23 + 8
----
31

onlyif mysql # DIV for integer division: 
query II rowsort label-2387
SELECT - 34 DIV 68 * 44 col0, 23
----
0
23

skipif mysql # not compatible
query II rowsort label-2387
SELECT - 34 / 68 * 44 col0, 23
----
0
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2388
SELECT + 40 DIV NULLIF ( - 88, MIN( 88 ) )
----
0

skipif mysql # not compatible
query I rowsort label-2388
SELECT + 40 / NULLIF ( - 88, MIN ( 88 ) )
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2390
SELECT + + 67 * + COUNT( * ) * 11 AS col0
----
737

skipif mysql # not compatible
query I rowsort label-2390
SELECT + + 67 * + COUNT ( * ) * 11 AS col0
----
737

onlyif mysql # aggregate syntax: 
query I rowsort label-2391
SELECT COUNT( ( + 42 ) ) * - 66 + + COUNT( * ) + - 84 + - - 49
----
-100

skipif mysql # not compatible
query I rowsort label-2391
SELECT COUNT ( ( + 42 ) ) * - 66 + + COUNT ( * ) + - 84 + - - 49
----
-100

onlyif mysql # DIV for integer division: 
query I rowsort label-2392
SELECT ALL + 92 DIV 73
----
1

skipif mysql # not compatible
query I rowsort label-2392
SELECT ALL + 92 / 73
----
1

query I rowsort
SELECT ALL 24 * + 74
----
1776

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2394
SELECT ALL + - 71 DIV - - 17 + MAX( + NULLIF ( 45, + + COALESCE ( CAST( NULL AS SIGNED ), - 89 ) ) ) DIV 75 + 86 * + MIN( + 24 ) * + 83 * + 56 AS col0, - 18 AS col2
----
9593468
-18

skipif mysql # not compatible
query II rowsort label-2394
SELECT ALL + - 71 / - - 17 + MAX ( + NULLIF ( 45, + + COALESCE ( CAST ( NULL AS INTEGER ), - 89 ) ) ) / 75 + 86 * + MIN ( + 24 ) * + 83 * + 56 AS col0, - 18 AS col2
----
9593468
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-2395
SELECT ALL - - 5 / - - 91 + - 85 - + - ( - + CASE - 73 WHEN - 69 + + + 94 * - COUNT( * ) * 56 + + + 32 THEN 11 WHEN + 93 THEN NULL END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2395
SELECT ALL - - 5 / - - 91 + - 85 - + - ( - + CASE - 73 WHEN - 69 + + + 94 * - COUNT ( * ) * 56 + + + 32 THEN 11 WHEN + 93 THEN NULL END ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2396
SELECT + 2 * - 77 * + + SUM( DISTINCT 64 ) + + + 1 + - 93 AS col0, - 79
----
-9948
-79

skipif mysql # not compatible
query II rowsort label-2396
SELECT + 2 * - 77 * + + SUM ( DISTINCT 64 ) + + + 1 + - 93 AS col0, - 79
----
-9948
-79

onlyif mysql # aggregate syntax: 
query II rowsort label-2397
SELECT + 15 * NULLIF ( 38, - 21 ) + 13 + + - 64 + COUNT( * ) * - 30 * + COUNT( * ) AS col1, COUNT( * ) * 13 AS col0
----
489
13

skipif mysql # not compatible
query II rowsort label-2397
SELECT + 15 * NULLIF ( 38, - 21 ) + 13 + + - 64 + COUNT ( * ) * - 30 * + COUNT ( * ) AS col1, COUNT ( * ) * 13 AS col0
----
489
13

onlyif mysql # aggregate syntax: 
query II rowsort label-2398
SELECT DISTINCT + - NULLIF ( + - ( - SUM( DISTINCT + - 54 ) ), MAX( ALL - 46 ) * + + 42 + + 74 ) col0, - ( COUNT( * ) ) AS col1
----
54
-1

skipif mysql # not compatible
query II rowsort label-2398
SELECT DISTINCT + - NULLIF ( + - ( - SUM ( DISTINCT + - 54 ) ), MAX ( ALL - 46 ) * + + 42 + + 74 ) col0, - ( COUNT ( * ) ) AS col1
----
54
-1

query I rowsort
SELECT ALL - 65 * 7 + - 14 + + + 37 AS col1
----
-432

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2401
SELECT + COUNT( 72 ) * + + 84
----
84

skipif mysql # not compatible
query I rowsort label-2401
SELECT + COUNT ( 72 ) * + + 84
----
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2402
SELECT + + 21 - 65 * 70 DIV - 67 - + 47 + + 44 + - 91 * + 83 * MAX( DISTINCT + + 98 ) AS col1
----
-740109

skipif mysql # not compatible
query I rowsort label-2402
SELECT + + 21 - 65 * 70 / - 67 - + 47 + + 44 + - 91 * + 83 * MAX ( DISTINCT + + 98 ) AS col1
----
-740109

query I rowsort
SELECT ALL - - 56 * + 68 + + 35 * + ( 38 )
----
5138

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2404
SELECT ALL CAST( 85 AS SIGNED ) DIV + 92 col1, 78 * + - 15 * 11 + + + 56 + + - 40
----
0
-12854

skipif mysql # not compatible
query II rowsort label-2404
SELECT ALL CAST ( 85 AS INTEGER ) / + 92 col1, 78 * + - 15 * 11 + + + 56 + + - 40
----
0
-12854

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2405
SELECT DISTINCT ( + 16 ) * - COUNT( * ) - - 56 + CASE + 11 WHEN 82 THEN NULL WHEN + ( 26 ) * - COALESCE ( - + CASE + MIN( ALL - 35 ) WHEN - 37 THEN - 96 END, + 76, - - 85 ) * + 59 - - - NULLIF ( + + 34, - - 51 ) + - 90 THEN - - COUNT( * ) WHEN + - ( - 59 ) * + 32 * - 5 + + ( + COALESCE ( - + 97, 49, 13 * 3 * 19 ) ) + ( + COUNT( * ) + + CAST( 93 AS DECIMAL ) * 38 ) THEN 34 * CASE - 33 / - 66 WHEN - 4 / - 14 THEN - 47 END ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2405
SELECT DISTINCT ( + 16 ) * - COUNT ( * ) - - 56 + CASE + 11 WHEN 82 THEN NULL WHEN + ( 26 ) * - COALESCE ( - + CASE + MIN ( ALL - 35 ) WHEN - 37 THEN - 96 END, + 76, - - 85 ) * + 59 - - - NULLIF ( + + 34, - - 51 ) + - 90 THEN - - COUNT ( * ) WHEN + - ( - 59 ) * + 32 * - 5 + + ( + COALESCE ( - + 97, 49, 13 * 3 * 19 ) ) + ( + COUNT ( * ) + + CAST ( 93 AS REAL ) * 38 ) THEN 34 * CASE - 33 / - 66 WHEN - 4 / - 14 THEN - 47 END ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2406
SELECT DISTINCT + NULLIF ( - 23, - MIN( ALL 55 ) ) * - 62
----
1426

skipif mysql # not compatible
query I rowsort label-2406
SELECT DISTINCT + NULLIF ( - 23, - MIN ( ALL 55 ) ) * - 62
----
1426

query I rowsort
SELECT - 61 + - 47
----
-108

onlyif mysql # aggregate syntax: 
query II rowsort label-2408
SELECT ALL 25 * + 17 col1, + 36 + - COUNT( * )
----
425
35

skipif mysql # not compatible
query II rowsort label-2408
SELECT ALL 25 * + 17 col1, + 36 + - COUNT ( * )
----
425
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2409
SELECT + COALESCE ( 35, - 77 + + - COUNT( * ) * - 4 ) DIV + 77 + - - 55
----
55

skipif mysql # not compatible
query I rowsort label-2409
SELECT + COALESCE ( 35, - 77 + + - COUNT ( * ) * - 4 ) / + 77 + - - 55
----
55

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

query I rowsort
SELECT - 30 * - + 54 * + 90 AS col2
----
145800

onlyif mysql # aggregate syntax: 
query I rowsort label-2412
SELECT - 89 * - 5 * - MAX( ALL + 46 )
----
-20470

skipif mysql # not compatible
query I rowsort label-2412
SELECT - 89 * - 5 * - MAX ( ALL + 46 )
----
-20470

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2413
SELECT 10 * + AVG ( + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2413
SELECT 10 * + AVG ( + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2414
SELECT MIN( DISTINCT CAST( NULL AS SIGNED ) ) + - + 62
----
NULL

skipif mysql # not compatible
query I rowsort label-2414
SELECT MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) + - + 62
----
NULL

query I rowsort
SELECT 0 * + + 44 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2416
SELECT DISTINCT + COUNT( * ) + 81 + + 84 * + 95 AS col1
----
8062

skipif mysql # not compatible
query I rowsort label-2416
SELECT DISTINCT + COUNT ( * ) + 81 + + 84 * + 95 AS col1
----
8062

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2417
SELECT 29 + 24 / CAST( 3 AS SIGNED ) + - 39 + CAST( NULL AS SIGNED ) - - 51 * - - 8 - - 49
----
NULL

skipif mysql # not compatible
query I rowsort label-2417
SELECT 29 + 24 / CAST ( 3 AS INTEGER ) + - 39 + CAST ( NULL AS INTEGER ) - - 51 * - - 8 - - 49
----
NULL

query II rowsort
SELECT DISTINCT + 63 * + 97, 2 * - 0 AS col2
----
6111
0

query I rowsort
SELECT DISTINCT - 5 + - + 61 AS col2
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-2420
SELECT + - COALESCE ( NULLIF ( + MAX( - 51 ), - + 76 ), + - 16 * - 33 )
----
51

skipif mysql # not compatible
query I rowsort label-2420
SELECT + - COALESCE ( NULLIF ( + MAX ( - 51 ), - + 76 ), + - 16 * - 33 )
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2421
SELECT DISTINCT + 24 + + COALESCE ( - COUNT( * ), 84 * MAX( 0 ) * + 4 + - 8 - + 36, + COUNT( * ) DIV + COUNT( - - 43 ) * - 82 ) + 49 + - + 0 * NULLIF ( 22, 49 ) * - COUNT( * ) * - COUNT( * ) * - 32 AS col2
----
72

skipif mysql # not compatible
query I rowsort label-2421
SELECT DISTINCT + 24 + + COALESCE ( - COUNT ( * ), 84 * MAX ( 0 ) * + 4 + - 8 - + 36, + COUNT ( * ) / + COUNT ( - - 43 ) * - 82 ) + 49 + - + 0 * NULLIF ( 22, 49 ) * - COUNT ( * ) * - COUNT ( * ) * - 32 AS col2
----
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2422
SELECT - - 4 DIV - 82 * + - 58 * + 76 + - 4 * - - COUNT( * ) AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-2422
SELECT - - 4 / - 82 * + - 58 * + 76 + - 4 * - - COUNT ( * ) AS col2
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-2423
SELECT + 0 * - 14 * + COALESCE ( - 29, + 84, - MAX( ALL 27 ) ) - + - 62
----
62

skipif mysql # not compatible
query I rowsort label-2423
SELECT + 0 * - 14 * + COALESCE ( - 29, + 84, - MAX ( ALL 27 ) ) - + - 62
----
62

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2424
SELECT - 14 DIV + - CAST( + 62 AS SIGNED ) + + 92
----
92

skipif mysql # not compatible
query I rowsort label-2424
SELECT - 14 / + - CAST ( + 62 AS INTEGER ) + + 92
----
92

query I rowsort
SELECT 36 * + 51 * + 89
----
163404

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2426
SELECT MAX( - CASE + 33 WHEN + 32 THEN 63 + - - 59 ELSE NULL END ) * 3 + + - CAST( NULL AS DECIMAL ) + + 67
----
NULL

skipif mysql # not compatible
query I rowsort label-2426
SELECT MAX ( - CASE + 33 WHEN + 32 THEN 63 + - - 59 ELSE NULL END ) * 3 + + - CAST ( NULL AS REAL ) + + 67
----
NULL

query I rowsort
SELECT ALL 24 * + 17 * 58
----
23664

query I rowsort
SELECT 15 * ( - 12 )
----
-180

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2430
SELECT 48 + - 17 * - COUNT( * )
----
65

skipif mysql # not compatible
query I rowsort label-2430
SELECT 48 + - 17 * - COUNT ( * )
----
65

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

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

query I rowsort
SELECT + 41 * 73 + - 3
----
2990

query I rowsort
SELECT 20 - + + 57
----
-37

query I rowsort
SELECT 95 + 73 AS col0
----
168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2435
SELECT ALL CASE - + SUM( ALL 74 ) WHEN + 97 THEN + 8 WHEN + 37 * - + 22 * + - 94 THEN NULL WHEN + COUNT( * ) THEN NULL ELSE NULL END * - ( - - 64 ) + - + CAST( + COUNT( * ) AS SIGNED ) + + 28
----
NULL

skipif mysql # not compatible
query I rowsort label-2435
SELECT ALL CASE - + SUM ( ALL 74 ) WHEN + 97 THEN + 8 WHEN + 37 * - + 22 * + - 94 THEN NULL WHEN + COUNT ( * ) THEN NULL ELSE NULL END * - ( - - 64 ) + - + CAST ( + COUNT ( * ) AS INTEGER ) + + 28
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2436
SELECT DISTINCT COUNT ( * ) / - - 53 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2437
SELECT CAST( NULL AS SIGNED ) / - - 66 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2437
SELECT CAST ( NULL AS INTEGER ) / - - 66 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2438
SELECT CASE + 37 WHEN - SUM( + COALESCE ( - 48, + + 36 / + 62 * CAST( ( 85 ) AS SIGNED ) + 42, 78 ) ) + + 17 - 20 * CASE - - 48 WHEN - + 56 - COUNT( * ) THEN CAST( + - 32 AS DECIMAL ) WHEN + CASE - 88 WHEN + - COUNT( + - 12 ) THEN NULL WHEN 85 THEN 18 END THEN 29 END THEN NULL WHEN - 31 * - - CAST( + 84 AS SIGNED ) + + COALESCE ( + 52, + COUNT( * ), - COUNT( * ) ) THEN - CASE 96 WHEN - 57 THEN + COUNT( * ) * SUM( - 22 ) ELSE NULL END END * - 19 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2438
SELECT CASE + 37 WHEN - SUM ( + COALESCE ( - 48, + + 36 / + 62 * CAST ( ( 85 ) AS INTEGER ) + 42, 78 ) ) + + 17 - 20 * CASE - - 48 WHEN - + 56 - COUNT ( * ) THEN CAST ( + - 32 AS REAL ) WHEN + CASE - 88 WHEN + - COUNT ( + - 12 ) THEN NULL WHEN 85 THEN 18 END THEN 29 END THEN NULL WHEN - 31 * - - CAST ( + 84 AS INTEGER ) + + COALESCE ( + 52, + COUNT ( * ), - COUNT ( * ) ) THEN - CASE 96 WHEN - 57 THEN + COUNT ( * ) * SUM ( - 22 ) ELSE NULL END END * - 19 col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2439
SELECT 29 + + 37 + - + 17 - - COUNT( + 89 ) + - MIN( 15 ) + - - 85 DIV - + 10
----
27

skipif mysql # not compatible
query I rowsort label-2439
SELECT 29 + + 37 + - + 17 - - COUNT ( + 89 ) + - MIN ( 15 ) + - - 85 / - + 10
----
27

query I rowsort
SELECT DISTINCT ( - ( 35 ) ) + - + 46 - - - 1
----
-82

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

skipif mysql # not compatible
query I rowsort label-2441
SELECT CAST ( NULL AS INTEGER ) / + 44 AS col2
----
NULL

query I rowsort
SELECT ALL + 45 + + 47
----
92

onlyif mysql # aggregate syntax: 
query III rowsort label-2443
SELECT ALL 48, + 58 - + COUNT( * ) AS col2, 65 AS col0
----
48
57
65

skipif mysql # not compatible
query III rowsort label-2443
SELECT ALL 48, + 58 - + COUNT ( * ) AS col2, 65 AS col0
----
48
57
65

onlyif mysql # aggregate syntax: 
query II rowsort label-2444
SELECT ALL + 18 + + + COUNT( * ) * + 72, + 20 col1
----
90
20

skipif mysql # not compatible
query II rowsort label-2444
SELECT ALL + 18 + + + COUNT ( * ) * + 72, + 20 col1
----
90
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2445
SELECT 38 DIV + + NULLIF ( - ( 38 ), + 15 * - + 4 + + COUNT( * ) DIV + 26 - + 93 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2445
SELECT 38 / + + NULLIF ( - ( 38 ), + 15 * - + 4 + + COUNT ( * ) / + 26 - + 93 ) AS col0
----
-1

query I rowsort
SELECT ALL 70 + 35 AS col0
----
105

query I rowsort
SELECT ( - 33 ) AS col2
----
-33

query I rowsort
SELECT 4 * - 27 + 16 + + + 17 + - NULLIF ( - ( 77 ), - 66 )
----
2

query I rowsort
SELECT ALL + + 56 + + + 55 AS col1
----
111

query I rowsort
SELECT 22 + 73 AS col2
----
95

query I rowsort
SELECT 81 + + + 64
----
145

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

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

query I rowsort
SELECT DISTINCT - + ( - ( 67 ) ) + 38 AS col0
----
105

query I rowsort
SELECT 65 * + + 14 * - 14 + 83
----
-12657

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2455
SELECT ALL CASE 63 WHEN 53 THEN - CAST( NULL AS SIGNED ) * - - 8 WHEN + 84 * - + 0 * + - 84 THEN + 39 * + SUM( + - 57 ) ELSE NULL END * + 96 * 82 - COALESCE ( + 64, 22 ) + COALESCE ( + 42, + + 46 ) + - + 73 - 38 + - CASE - 98 WHEN - + 76 * ( - 13 ) * - 27 + - 1 + + - 85 * + + 26 + - COUNT( * ) * 89 + + COUNT( * ) + MIN( DISTINCT - - 99 ) THEN 26 + CAST( + 76 AS SIGNED ) * 29 WHEN - CAST( + 74 AS SIGNED ) THEN NULL ELSE - 66 END * ( + 58 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2455
SELECT ALL CASE 63 WHEN 53 THEN - CAST ( NULL AS INTEGER ) * - - 8 WHEN + 84 * - + 0 * + - 84 THEN + 39 * + SUM ( + - 57 ) ELSE NULL END * + 96 * 82 - COALESCE ( + 64, 22 ) + COALESCE ( + 42, + + 46 ) + - + 73 - 38 + - CASE - 98 WHEN - + 76 * ( - 13 ) * - 27 + - 1 + + - 85 * + + 26 + - COUNT ( * ) * 89 + + COUNT ( * ) + MIN ( DISTINCT - - 99 ) THEN 26 + CAST ( + 76 AS INTEGER ) * 29 WHEN - CAST ( + 74 AS INTEGER ) THEN NULL ELSE - 66 END * ( + 58 ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + - 14 * + - 17 * 47 * 64 * 99 AS col0
----
70874496

query I rowsort
SELECT DISTINCT + - 97 * - 12
----
1164

query I rowsort
SELECT + 78 + + - 61 * 7 AS col1
----
-349

onlyif mysql # aggregate syntax: 
query I rowsort label-2459
SELECT ALL + MIN( + - 19 ) * + 3
----
-57

skipif mysql # not compatible
query I rowsort label-2459
SELECT ALL + MIN ( + - 19 ) * + 3
----
-57

query II rowsort
SELECT + 88 col2, 56 - - 11 - - + 8 * - 56 * - - ( - 93 ) AS col1
----
88
41731

query I rowsort
SELECT ALL - 27 * - 80 - + 94
----
2066

onlyif mysql # aggregate syntax: 
query I rowsort label-2462
SELECT COUNT( * ) * + 42 * + COUNT( - 93 ) AS col1
----
42

skipif mysql # not compatible
query I rowsort label-2462
SELECT COUNT ( * ) * + 42 * + COUNT ( - 93 ) AS col1
----
42

query II rowsort
SELECT ALL - 73 AS col0, + 25
----
-73
25

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

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

query I rowsort
SELECT 9 * + 64 * + 28 * 96 + + 78 AS col0
----
1548366

onlyif mysql # aggregate syntax: 
query II rowsort label-2466
SELECT ALL - COUNT( * ) AS col0, 5 + - + MAX( 59 ) col2
----
-1
-54

skipif mysql # not compatible
query II rowsort label-2466
SELECT ALL - COUNT ( * ) AS col0, 5 + - + MAX ( 59 ) col2
----
-1
-54

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

skipif mysql # not compatible
query I rowsort label-2467
SELECT DISTINCT - 94 / COUNT ( * ) AS col0
----
-94

query I rowsort
SELECT + 78 * + 56
----
4368

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

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

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

query I rowsort
SELECT + 54 * 32 AS col1
----
1728

onlyif mysql # DIV for integer division: 
query II rowsort label-2472
SELECT ALL + 85 AS col2, + 68 DIV - 79
----
85
0

skipif mysql # not compatible
query II rowsort label-2472
SELECT ALL + 85 AS col2, + 68 / - 79
----
85
0

query II rowsort
SELECT DISTINCT + NULLIF ( - 81, 97 ) * + - 13 * + ( + 55 ), 90 AS col0
----
57915
90

query I rowsort
SELECT - 18 * 49 * + ( 8 )
----
-7056

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

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

query I rowsort
SELECT ALL ( 37 ) + - + 14 - + 49 - - 86
----
60

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2478
SELECT ALL CASE - 11 WHEN - AVG ( + 77 ) + + COALESCE ( + 92, - - ( - - ( + ( - + 40 ) ) ) ) THEN - 15 ELSE NULL END AS col2, - 55 * - - COUNT( * ) + - 12 * 72 - + + 0 - + + 73 * + + 3 * + + ( - ( + 42 ) ) * - COALESCE ( - 62, - 64 + 50 )
----
NULL
569357

skipif mysql # not compatible
query II rowsort label-2478
SELECT ALL CASE - 11 WHEN - AVG ( + 77 ) + + COALESCE ( + 92, - - ( - - ( + ( - + 40 ) ) ) ) THEN - 15 ELSE NULL END AS col2, - 55 * - - COUNT ( * ) + - 12 * 72 - + + 0 - + + 73 * + + 3 * + + ( - ( + 42 ) ) * - COALESCE ( - 62, - 64 + 50 )
----
NULL
569357

query I rowsort
SELECT DISTINCT - 32 + 5 + 93 + + 82 - - - ( + + 85 ) * + 39
----
-3167

onlyif mysql # aggregate syntax: 
query II rowsort label-2480
SELECT ALL 43, + 9 / - - 53 / - 19 * + CASE + - ( 96 ) WHEN - COUNT( * ) + - 25 THEN - 27 WHEN + 76 THEN NULL WHEN - 50 * - 0 * - 50 * - ( - + 76 ) + COUNT( * ) THEN NULL END + 47 * - + 53 * + CASE + 48 WHEN 13 THEN - + ( - 34 ) END * AVG ( + 39 ) col0
----
43
NULL

skipif mysql # not compatible
query II rowsort label-2480
SELECT ALL 43, + 9 / - - 53 / - 19 * + CASE + - ( 96 ) WHEN - COUNT ( * ) + - 25 THEN - 27 WHEN + 76 THEN NULL WHEN - 50 * - 0 * - 50 * - ( - + 76 ) + COUNT ( * ) THEN NULL END + 47 * - + 53 * + CASE + 48 WHEN 13 THEN - + ( - 34 ) END * AVG ( + 39 ) col0
----
43
NULL

query II rowsort
SELECT 74, 15 AS col0
----
74
15

query II rowsort
SELECT DISTINCT 96 AS col1, 38 col1
----
96
38

query I rowsort
SELECT ALL - 14 + + - 36
----
-50

query I rowsort
SELECT + 58 * - 22 AS col1
----
-1276

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

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

query II rowsort
SELECT ALL 65 AS col1, 50 AS col2
----
65
50

query II rowsort
SELECT + 4 + + - 98 AS col2, 97
----
-94
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2488
SELECT + 17 + + - COUNT( * )
----
16

skipif mysql # not compatible
query I rowsort label-2488
SELECT + 17 + + - COUNT ( * )
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2489
SELECT - SUM( + 34 ) DIV + - 1 AS col0
----
34

skipif mysql # not compatible
query I rowsort label-2489
SELECT - SUM ( + 34 ) / + - 1 AS col0
----
34

query I rowsort
SELECT ALL 57 - - + 2 - + + 27 AS col1
----
32

query I rowsort
SELECT + + 58 * 69
----
4002

query I rowsort
SELECT - + 53 * 87 AS col2
----
-4611

onlyif mysql # aggregate syntax: 
query I rowsort label-2493
SELECT + MIN( COALESCE ( - NULLIF ( - 10, + 95 ), + ( + - 13 ) / + 95 + + 1 + 18, + 16 ) )
----
10

skipif mysql # not compatible
query I rowsort label-2493
SELECT + MIN ( COALESCE ( - NULLIF ( - 10, + 95 ), + ( + - 13 ) / + 95 + + 1 + 18, + 16 ) )
----
10

query I rowsort
SELECT + 62 * - ( 89 ) * + 54 + + 39 + + 85 AS col1
----
-297848

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2495
SELECT + - 34 + - AVG ( + 57 ) * CAST( NULL AS DECIMAL ) * 51 + + + 27 AS col0, 38 * - COUNT( * ) AS col0
----
NULL
-38

skipif mysql # not compatible
query II rowsort label-2495
SELECT + - 34 + - AVG ( + 57 ) * CAST ( NULL AS REAL ) * 51 + + + 27 AS col0, 38 * - COUNT ( * ) AS col0
----
NULL
-38

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

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

query I rowsort
SELECT ALL - + 49 * - 35 * - 96
----
-164640

query I rowsort
SELECT + 53 * 14 - + 77 + - + 18 AS col2
----
647

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2501
SELECT + ( - ( - COALESCE ( + SUM( ALL - - 58 ), + 30, + 9 ) ) ) col2
----
58

skipif mysql # not compatible
query I rowsort label-2501
SELECT + ( - ( - COALESCE ( + SUM ( ALL - - 58 ), + 30, + 9 ) ) ) col2
----
58

query I rowsort
SELECT + 61 * + - 5 + - + 0 AS col1
----
-305

query I rowsort
SELECT ALL - - 45 * + ( 14 )
----
630

query I rowsort
SELECT - 78 * - 92
----
7176

onlyif mysql # DIV for integer division: 
query I rowsort label-2505
SELECT - 54 DIV ( + 62 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2505
SELECT - 54 / ( + 62 ) AS col2
----
0

query I rowsort
SELECT ALL + CASE - 91 WHEN - 67 THEN + 2 + - CASE + 69 WHEN 32 THEN 85 ELSE NULL END WHEN + 17 * 78 * + - 48 / 65 * - 62 THEN NULL ELSE 45 * - 52 * + 58 END AS col1
----
-135720

query I rowsort
SELECT - ( + + 76 ) + 38
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-2508
SELECT COALESCE ( SUM( DISTINCT 37 ), 87 ) AS col0
----
37

skipif mysql # not compatible
query I rowsort label-2508
SELECT COALESCE ( SUM ( DISTINCT 37 ), 87 ) AS col0
----
37

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2510
SELECT - 18 DIV + 80
----
0

skipif mysql # not compatible
query I rowsort label-2510
SELECT - 18 / + 80
----
0

query I rowsort
SELECT - 24 * + - 70
----
1680

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2512
SELECT ALL - COUNT( * ) * 27 + + 98 AS col2, 29 * - 61 * 56 DIV 7
----
71
-14152

skipif mysql # not compatible
query II rowsort label-2512
SELECT ALL - COUNT ( * ) * 27 + + 98 AS col2, 29 * - 61 * 56 / 7
----
71
-14152

onlyif mysql # aggregate syntax: 
query I rowsort label-2513
SELECT COALESCE ( + - MIN( DISTINCT - - 29 ), + - 68 )
----
-29

skipif mysql # not compatible
query I rowsort label-2513
SELECT COALESCE ( + - MIN ( DISTINCT - - 29 ), + - 68 )
----
-29

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2515
SELECT - 95 * - COUNT( ALL - 96 ) * - 15 + - + ( - + CAST( NULL AS SIGNED ) ) + + - 43 AS col2, 23 AS col0
----
NULL
23

skipif mysql # not compatible
query II rowsort label-2515
SELECT - 95 * - COUNT ( ALL - 96 ) * - 15 + - + ( - + CAST ( NULL AS INTEGER ) ) + + - 43 AS col2, 23 AS col0
----
NULL
23

query I rowsort
SELECT - 88 + - 32
----
-120

onlyif mysql # DIV for integer division: 
query I rowsort label-2517
SELECT ALL + 70 * + - 49 + 48 DIV 55 AS col2
----
-3430

skipif mysql # not compatible
query I rowsort label-2517
SELECT ALL + 70 * + - 49 + 48 / 55 AS col2
----
-3430

onlyif mysql # aggregate syntax: 
query I rowsort label-2518
SELECT ALL COUNT( * ) * + 86 + + 7
----
93

skipif mysql # not compatible
query I rowsort label-2518
SELECT ALL COUNT ( * ) * + 86 + + 7
----
93

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2519
SELECT DISTINCT CAST( - - 82 AS SIGNED ) AS col1, - 90 DIV - 52 AS col0
----
82
1

skipif mysql # not compatible
query II rowsort label-2519
SELECT DISTINCT CAST ( - - 82 AS INTEGER ) AS col1, - 90 / - 52 AS col0
----
82
1

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

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

query I rowsort
SELECT ALL - 93 - + + 88
----
-181

query I rowsort
SELECT + - 24 + - 2 AS col0
----
-26

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

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

query I rowsort
SELECT + - 86 * - - 25
----
-2150

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2525
SELECT + CAST( + 32 AS SIGNED ), - 56 AS col2, + 41 AS col2
----
32
-56
41

skipif mysql # not compatible
query III rowsort label-2525
SELECT + CAST ( + 32 AS INTEGER ), - 56 AS col2, + 41 AS col2
----
32
-56
41

onlyif mysql # DIV for integer division: 
query I rowsort label-2526
SELECT - 96 DIV + 46 + 1
----
-1

skipif mysql # not compatible
query I rowsort label-2526
SELECT - 96 / + 46 + 1
----
-1

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

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

query I rowsort
SELECT 94 * 18 AS col2
----
1692

query I rowsort
SELECT 13 * - - 76 + - 1
----
987

onlyif mysql # DIV for integer division: 
query I rowsort label-2530
SELECT DISTINCT 54 + + ( + 31 ) DIV 26
----
55

skipif mysql # not compatible
query I rowsort label-2530
SELECT DISTINCT 54 + + ( + 31 ) / 26
----
55

query II rowsort
SELECT 83 AS col2, - 89 AS col1
----
83
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2532
SELECT - 91 DIV - 29 + COUNT( * )
----
4

skipif mysql # not compatible
query I rowsort label-2532
SELECT - 91 / - 29 + COUNT ( * )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2533
SELECT DISTINCT - MIN( - 37 ) AS col0
----
37

skipif mysql # not compatible
query I rowsort label-2533
SELECT DISTINCT - MIN ( - 37 ) AS col0
----
37

onlyif mysql # aggregate syntax: 
query II rowsort label-2534
SELECT 20 * 65 * + 88 AS col0, ( COUNT( - + 47 ) ) + + 35 col0
----
114400
36

skipif mysql # not compatible
query II rowsort label-2534
SELECT 20 * 65 * + 88 AS col0, ( COUNT ( - + 47 ) ) + + 35 col0
----
114400
36

query I rowsort
SELECT ALL 18 + - 83 AS col2
----
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2536
SELECT ALL CASE - 52 WHEN - 35 THEN NULL WHEN - + COUNT( * ) THEN - COUNT( * ) + - + 91 END + - CASE - 49 WHEN + SUM( DISTINCT + 51 ) + + + 47 * 97 / - - 98 * + + ( - - COUNT( * ) ) THEN - COUNT( * ) / + ( - - 68 ) * + + CAST( - CAST( + 31 AS DECIMAL ) AS SIGNED ) * - + 29 - - 73 WHEN + 9 + - 67 + - + 18 + + + COUNT( ALL + ( ( + + 89 ) ) ) * COUNT( * ) + NULLIF ( 78, 29 ) THEN NULL WHEN + ( 91 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2536
SELECT ALL CASE - 52 WHEN - 35 THEN NULL WHEN - + COUNT ( * ) THEN - COUNT ( * ) + - + 91 END + - CASE - 49 WHEN + SUM ( DISTINCT + 51 ) + + + 47 * 97 / - - 98 * + + ( - - COUNT ( * ) ) THEN - COUNT ( * ) / + ( - - 68 ) * + + CAST ( - CAST ( + 31 AS REAL ) AS INTEGER ) * - + 29 - - 73 WHEN + 9 + - 67 + - + 18 + + + COUNT ( ALL + ( ( + + 89 ) ) ) * COUNT ( * ) + NULLIF ( 78, 29 ) THEN NULL WHEN + ( 91 ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2537
SELECT ALL 53 * - - 26 * + COUNT( * ) AS col1
----
1378

skipif mysql # not compatible
query I rowsort label-2537
SELECT ALL 53 * - - 26 * + COUNT ( * ) AS col1
----
1378

onlyif mysql # aggregate syntax: 
query II rowsort label-2538
SELECT ALL - 14 + - + 78 * 23 AS col1, + MAX( - 65 )
----
-1808
-65

skipif mysql # not compatible
query II rowsort label-2538
SELECT ALL - 14 + - + 78 * 23 AS col1, + MAX ( - 65 )
----
-1808
-65

query I rowsort
SELECT ALL - CASE 92 WHEN + 75 * - - 35 * + 83 THEN NULL WHEN 70 THEN NULL WHEN + 2 THEN NULL ELSE - 59 END AS col0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2540
SELECT 58 * - 47 * + + MAX( DISTINCT - 88 )
----
239888

skipif mysql # not compatible
query I rowsort label-2540
SELECT 58 * - 47 * + + MAX ( DISTINCT - 88 )
----
239888

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2541
SELECT 64 DIV MAX( DISTINCT + 86 ) DIV - + 74 * 13
----
0

skipif mysql # not compatible
query I rowsort label-2541
SELECT 64 / MAX ( DISTINCT + 86 ) / - + 74 * 13
----
0

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

skipif mysql # not compatible
query I rowsort label-2542
SELECT ALL - COUNT ( * ) - + ( - 48 ) AS col0
----
47

query I rowsort
SELECT 35 * + 76
----
2660

query I rowsort
SELECT 44 - 21 AS col1
----
23

onlyif mysql # aggregate syntax: 
query II rowsort label-2545
SELECT - 0 AS col0, COUNT( * ) * - 90 AS col2
----
0
-90

skipif mysql # not compatible
query II rowsort label-2545
SELECT - 0 AS col0, COUNT ( * ) * - 90 AS col2
----
0
-90

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

skipif mysql # not compatible
query I rowsort label-2546
SELECT ALL + COUNT ( DISTINCT + 19 ) col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2547
SELECT DISTINCT + ( - MIN( + + 87 ) ) DIV 9 + + 43 AS col1
----
34

skipif mysql # not compatible
query I rowsort label-2547
SELECT DISTINCT + ( - MIN ( + + 87 ) ) / 9 + + 43 AS col1
----
34

query I rowsort
SELECT 59 * 78 - + - 78 * - + 40 * 66 AS col1
----
-201318

onlyif mysql # aggregate syntax: 
query I rowsort label-2549
SELECT ALL - MIN( DISTINCT 22 ) * + + 37 + 88 + MIN( DISTINCT 75 )
----
-651

skipif mysql # not compatible
query I rowsort label-2549
SELECT ALL - MIN ( DISTINCT 22 ) * + + 37 + 88 + MIN ( DISTINCT 75 )
----
-651

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

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

query I rowsort
SELECT + 58 - + 8
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-2552
SELECT - 97 * - MIN( - 34 ) * 1 AS col2
----
-3298

skipif mysql # not compatible
query I rowsort label-2552
SELECT - 97 * - MIN ( - 34 ) * 1 AS col2
----
-3298

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2553
SELECT - CAST( - + SUM( 0 ) AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-2553
SELECT - CAST ( - + SUM ( 0 ) AS INTEGER )
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2554
SELECT + CAST( NULL AS DECIMAL ) + + CAST( + 61 AS DECIMAL ) AS col2, 77 AS col1
----
NULL
77

skipif mysql # not compatible
query II rowsort label-2554
SELECT + CAST ( NULL AS REAL ) + + CAST ( + 61 AS REAL ) AS col2, 77 AS col1
----
NULL
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2555
SELECT 59 * - + COALESCE ( + 17, COUNT( * ) )
----
-1003

skipif mysql # not compatible
query I rowsort label-2555
SELECT 59 * - + COALESCE ( + 17, COUNT ( * ) )
----
-1003

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

skipif mysql # not compatible
query I rowsort label-2556
SELECT 7 + CAST ( NULL AS INTEGER ) * 94
----
NULL

query II rowsort
SELECT ALL + 51, - 37 AS col2
----
51
-37

query II rowsort
SELECT DISTINCT 57 AS col0, 30
----
57
30

query I rowsort
SELECT ALL - + 61 + - 93
----
-154

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2561
SELECT DISTINCT - 35 + + NULLIF ( + COUNT( ALL 36 ), + 44 + - 71 ) AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-2561
SELECT DISTINCT - 35 + + NULLIF ( + COUNT ( ALL 36 ), + 44 + - 71 ) AS col1
----
-34

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

skipif mysql # not compatible
query I rowsort label-2562
SELECT + MIN ( + - 92 )
----
-92

query I rowsort
SELECT DISTINCT 12 * - - 1
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2564
SELECT CAST( - ( 60 ) AS SIGNED ) * ( - 12 )
----
720

skipif mysql # not compatible
query I rowsort label-2564
SELECT CAST ( - ( 60 ) AS INTEGER ) * ( - 12 )
----
720

query I rowsort
SELECT DISTINCT - 10 * + 33 AS col2
----
-330

query I rowsort
SELECT ALL - COALESCE ( - 25, 79, + 55 * - 56 * 84 ) col0
----
25

query I rowsort
SELECT + 6 + - 23 AS col0
----
-17

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

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

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

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

query I rowsort
SELECT 74 * 38
----
2812

query I rowsort
SELECT - CASE + - 43 WHEN 36 THEN - 90 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT 4 + 43 + - 18 col2
----
29

query I rowsort
SELECT - 56 + + 26 AS col0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-2574
SELECT 53 * - 39 + + + COUNT( * ) + - + 23 + NULLIF ( + - 77, - 87 + - NULLIF ( + 12, - + 27 ) * + - 21 )
----
-2166

skipif mysql # not compatible
query I rowsort label-2574
SELECT 53 * - 39 + + + COUNT ( * ) + - + 23 + NULLIF ( + - 77, - 87 + - NULLIF ( + 12, - + 27 ) * + - 21 )
----
-2166

query I rowsort
SELECT - ( 87 ) + + + NULLIF ( + + 66, - - 51 * 50 * - 75 ) * + + ( + ( 31 ) ) col2
----
1959

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2576
SELECT ALL - COALESCE ( + 39, - 70 * + 2 * + - 91 + 90, - 5 ) + NULLIF ( - + CAST( + ( 32 ) AS SIGNED ), 69 + 42 + - + 83 ) * - + ( + 0 )
----
-39

skipif mysql # not compatible
query I rowsort label-2576
SELECT ALL - COALESCE ( + 39, - 70 * + 2 * + - 91 + 90, - 5 ) + NULLIF ( - + CAST ( + ( 32 ) AS INTEGER ), 69 + 42 + - + 83 ) * - + ( + 0 )
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-2577
SELECT - SUM( - 83 ) AS col0
----
83

skipif mysql # not compatible
query I rowsort label-2577
SELECT - SUM ( - 83 ) AS col0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-2578
SELECT - + 20 * - COUNT( * ) + + - 30 + - - 82 * COUNT( * ) * - 68
----
-5586

skipif mysql # not compatible
query I rowsort label-2578
SELECT - + 20 * - COUNT ( * ) + + - 30 + - - 82 * COUNT ( * ) * - 68
----
-5586

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2579
SELECT ALL + NULLIF ( + 65, 92 + + CASE 70 WHEN 3 THEN NULL WHEN + 56 / + 89 THEN + SUM( ALL - - 88 ) END * - 73 + 76 * - 90 + + 11 ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2579
SELECT ALL + NULLIF ( + 65, 92 + + CASE 70 WHEN 3 THEN NULL WHEN + 56 / + 89 THEN + SUM ( ALL - - 88 ) END * - 73 + 76 * - 90 + + 11 ) * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 98 + 84
----
182

query I rowsort
SELECT ALL - 39 + - 77 AS col1
----
-116

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

query I rowsort
SELECT - - 59 * + 7 AS col2
----
413

onlyif mysql # aggregate syntax: 
query I rowsort label-2584
SELECT - 72 * + - 98 * + - MIN( ALL - 94 )
----
663264

skipif mysql # not compatible
query I rowsort label-2584
SELECT - 72 * + - 98 * + - MIN ( ALL - 94 )
----
663264

onlyif mysql # aggregate syntax: 
query I rowsort label-2585
SELECT ALL + 58 * COUNT( * ) * + 60 AS col2
----
3480

skipif mysql # not compatible
query I rowsort label-2585
SELECT ALL + 58 * COUNT ( * ) * + 60 AS col2
----
3480

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2586
SELECT DISTINCT COALESCE ( - + 60, + - NULLIF ( + 73, + 1 / + NULLIF ( - 47, ( + 27 ) ) ) * + + 1 + + CAST( NULL AS SIGNED ), + 45 + + - 92 + 85 )
----
-60

skipif mysql # not compatible
query I rowsort label-2586
SELECT DISTINCT COALESCE ( - + 60, + - NULLIF ( + 73, + 1 / + NULLIF ( - 47, ( + 27 ) ) ) * + + 1 + + CAST ( NULL AS INTEGER ), + 45 + + - 92 + 85 )
----
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2587
SELECT ALL + 84, - 69 * + 89 + - COUNT( * ) + 27 DIV + + 52 AS col2
----
84
-6142

skipif mysql # not compatible
query II rowsort label-2587
SELECT ALL + 84, - 69 * + 89 + - COUNT ( * ) + 27 / + + 52 AS col2
----
84
-6142

query I rowsort
SELECT 50 * + 86 + 21 + 73 AS col0
----
4394

query I rowsort
SELECT DISTINCT - 87 * - + 71 * - 81 - + 30
----
-500367

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2590
SELECT - CAST( ( - + 95 ) AS SIGNED ) DIV ( - + 27 ) + + 15
----
12

skipif mysql # not compatible
query I rowsort label-2590
SELECT - CAST ( ( - + 95 ) AS INTEGER ) / ( - + 27 ) + + 15
----
12

query I rowsort
SELECT ALL - 4 * - + 69 - 63 AS col0
----
213

onlyif mysql # aggregate syntax: 
query II rowsort label-2592
SELECT + COUNT( * ) * + - 50 * + 80 AS col1, + SUM( + - 10 ) - - 21 AS col1
----
-4000
11

skipif mysql # not compatible
query II rowsort label-2592
SELECT + COUNT ( * ) * + - 50 * + 80 AS col1, + SUM ( + - 10 ) - - 21 AS col1
----
-4000
11

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

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

query I rowsort
SELECT 87 * - 18 + + + 78
----
-1488

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2595
SELECT + CASE + 67 WHEN 21 THEN NULL ELSE - 87 END DIV COUNT( * ) AS col0, 22 * - 52 AS col2
----
-87
-1144

skipif mysql # not compatible
query II rowsort label-2595
SELECT + CASE + 67 WHEN 21 THEN NULL ELSE - 87 END / COUNT ( * ) AS col0, 22 * - 52 AS col2
----
-87
-1144

onlyif mysql # DIV for integer division: 
query I rowsort label-2596
SELECT ALL 0 * - - 60 DIV - 3 * 51
----
0

skipif mysql # not compatible
query I rowsort label-2596
SELECT ALL 0 * - - 60 / - 3 * 51
----
0

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

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

query I rowsort
SELECT CASE 57 WHEN + 82 THEN 80 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2599
SELECT + ( - MIN( DISTINCT 67 ) ) * + 74
----
-4958

skipif mysql # not compatible
query I rowsort label-2599
SELECT + ( - MIN ( DISTINCT 67 ) ) * + 74
----
-4958

query II rowsort
SELECT ALL + 38, 11 AS col0
----
38
11

query I rowsort
SELECT + COALESCE ( - 37, 40 * + - 97 + 46 * - ( + 48 ) * - + 42, 68 )
----
-37

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2603
SELECT + + 76 DIV - 12
----
-6

skipif mysql # not compatible
query I rowsort label-2603
SELECT + + 76 / - 12
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-2604
SELECT DISTINCT - MIN( ALL ( - + 72 ) ) * - 1 * + 96 + - + 48 AS col0
----
-6960

skipif mysql # not compatible
query I rowsort label-2604
SELECT DISTINCT - MIN ( ALL ( - + 72 ) ) * - 1 * + 96 + - + 48 AS col0
----
-6960

query I rowsort
SELECT - 67 * - 24
----
1608

query I rowsort
SELECT ALL + 29 + + 85
----
114

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

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

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

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

query I rowsort
SELECT DISTINCT 85 + + 36 AS col2
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-2610
SELECT ALL - 69 + - COUNT( * )
----
-70

skipif mysql # not compatible
query I rowsort label-2610
SELECT ALL - 69 + - COUNT ( * )
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-2611
SELECT DISTINCT - 10 + ( - + COUNT( * ) )
----
-11

skipif mysql # not compatible
query I rowsort label-2611
SELECT DISTINCT - 10 + ( - + COUNT ( * ) )
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-2612
SELECT - CASE 43 WHEN + - ( - 25 ) THEN 95 * - + 21 WHEN + - 86 THEN NULL ELSE - SUM( 91 ) END - + 12 AS col2
----
79

skipif mysql # not compatible
query I rowsort label-2612
SELECT - CASE 43 WHEN + - ( - 25 ) THEN 95 * - + 21 WHEN + - 86 THEN NULL ELSE - SUM ( 91 ) END - + 12 AS col2
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-2613
SELECT - MIN( DISTINCT + 68 ) AS col0
----
-68

skipif mysql # not compatible
query I rowsort label-2613
SELECT - MIN ( DISTINCT + 68 ) AS col0
----
-68

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2615
SELECT - MIN( ( 58 ) ) AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-2615
SELECT - MIN ( ( 58 ) ) AS col2
----
-58

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

skipif mysql # not compatible
query I rowsort label-2616
SELECT ALL - ( - 29 ) / - COUNT ( * ) AS col1
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-2617
SELECT - 72 + COUNT( - 69 ) * + SUM( ALL + + 49 ) - + 87 + 65 * - 5 * + 21
----
-6935

skipif mysql # not compatible
query I rowsort label-2617
SELECT - 72 + COUNT ( - 69 ) * + SUM ( ALL + + 49 ) - + 87 + 65 * - 5 * + 21
----
-6935

onlyif mysql # aggregate syntax: 
query II rowsort label-2618
SELECT DISTINCT COUNT( * ) AS col0, 43 * + - 99
----
1
-4257

skipif mysql # not compatible
query II rowsort label-2618
SELECT DISTINCT COUNT ( * ) AS col0, 43 * + - 99
----
1
-4257

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2619
SELECT - 62, - 94 * - - CAST( + 75 AS SIGNED ) + + 97 + - 70 AS col2
----
-62
-7023

skipif mysql # not compatible
query II rowsort label-2619
SELECT - 62, - 94 * - - CAST ( + 75 AS INTEGER ) + + 97 + - 70 AS col2
----
-62
-7023

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2620
SELECT ALL CASE WHEN NOT ( NOT + - 84 NOT IN ( + CASE 46 WHEN + + NULLIF ( - CAST( NULL AS DECIMAL ), 17 ) * - 71 + + 72 * 51 * SUM( ALL CAST( NULL AS SIGNED ) ) THEN 34 ELSE NULL END - - ( 43 ) ) ) THEN NULL ELSE - 98 END AS col0
----
-98

skipif mysql # not compatible
query I rowsort label-2620
SELECT ALL CASE WHEN NOT ( NOT + - 84 NOT IN ( + CASE 46 WHEN + + NULLIF ( - CAST ( NULL AS REAL ), 17 ) * - 71 + + 72 * 51 * SUM ( ALL CAST ( NULL AS INTEGER ) ) THEN 34 ELSE NULL END - - ( 43 ) ) ) THEN NULL ELSE - 98 END AS col0
----
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-2621
SELECT ALL - 0 DIV + + NULLIF ( - 97, - - 78 + + 76 ) * - + 12 + - 3
----
-3

skipif mysql # not compatible
query I rowsort label-2621
SELECT ALL - 0 / + + NULLIF ( - 97, - - 78 + + 76 ) * - + 12 + - 3
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2622
SELECT DISTINCT + COUNT( - - 95 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2622
SELECT DISTINCT + COUNT ( - - 95 ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2623
SELECT CAST( NULL AS SIGNED ), 9 - - COUNT( * ) AS col2
----
NULL
10

skipif mysql # not compatible
query II rowsort label-2623
SELECT CAST ( NULL AS INTEGER ), 9 - - COUNT ( * ) AS col2
----
NULL
10

onlyif mysql # aggregate syntax: 
query I rowsort label-2624
SELECT + COALESCE ( COALESCE ( - + 37, - 3 + COUNT( * ) ), 31 + - 46 * - 23 )
----
-37

skipif mysql # not compatible
query I rowsort label-2624
SELECT + COALESCE ( COALESCE ( - + 37, - 3 + COUNT ( * ) ), 31 + - 46 * - 23 )
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-2625
SELECT + ( 21 ) * + ( + MIN( + 0 ) )
----
0

skipif mysql # not compatible
query I rowsort label-2625
SELECT + ( 21 ) * + ( + MIN ( + 0 ) )
----
0

query II rowsort
SELECT DISTINCT + 10 * - 59, + NULLIF ( - + 6, 88 ) * + 31 + 50 AS col0
----
-590
-136

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2627
SELECT - ( + 97 ) * - + MIN( ALL + 70 ) + CAST( NULL AS DECIMAL ) * 10 + + 22 * - 66 - + 7 + + 22
----
NULL

skipif mysql # not compatible
query I rowsort label-2627
SELECT - ( + 97 ) * - + MIN ( ALL + 70 ) + CAST ( NULL AS REAL ) * 10 + + 22 * - 66 - + 7 + + 22
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2628
SELECT ( - SUM ( DISTINCT 85 ) )
----
-85

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2630
SELECT ALL - 24 DIV + 12
----
-2

skipif mysql # not compatible
query I rowsort label-2630
SELECT ALL - 24 / + 12
----
-2

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

skipif mysql # not compatible
query I rowsort label-2631
SELECT + + SUM ( - - 78 )
----
78

query I rowsort
SELECT + - NULLIF ( + + 40, ( + 89 ) / 56 + + 91 - - - 47 ) AS col2
----
-40

query I rowsort
SELECT + 50 * 9 + - 33 * - 88 col1
----
3354

onlyif mysql # aggregate syntax: 
query II rowsort label-2634
SELECT 8, 73 * COUNT( * ) + + - 66 AS col0
----
8
7

skipif mysql # not compatible
query II rowsort label-2634
SELECT 8, 73 * COUNT ( * ) + + - 66 AS col0
----
8
7

query I rowsort
SELECT + + 80 col0
----
80

onlyif mysql # aggregate syntax: 
query II rowsort label-2636
SELECT - MIN( ALL + - 53 ) + 2 + - 82 AS col0, 57 + 72 AS col0
----
-27
129

skipif mysql # not compatible
query II rowsort label-2636
SELECT - MIN ( ALL + - 53 ) + 2 + - 82 AS col0, 57 + 72 AS col0
----
-27
129

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2637
SELECT DISTINCT - - 29 + - MAX( - 7 ) * COUNT( - 6 ) DIV - - SUM( DISTINCT - 87 ) AS col1, ( - ( - - NULLIF ( - 83, - - 29 + + COUNT( * ) ) ) )
----
29
83

skipif mysql # not compatible
query II rowsort label-2637
SELECT DISTINCT - - 29 + - MAX ( - 7 ) * COUNT ( - 6 ) / - - SUM ( DISTINCT - 87 ) AS col1, ( - ( - - NULLIF ( - 83, - - 29 + + COUNT ( * ) ) ) )
----
29
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2638
SELECT ALL 87 + - + 99 DIV + NULLIF ( - 31, COUNT( * ) + 96 + - 61 * + + 89 )
----
90

skipif mysql # not compatible
query I rowsort label-2638
SELECT ALL 87 + - + 99 / + NULLIF ( - 31, COUNT ( * ) + 96 + - 61 * + + 89 )
----
90

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

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

query II rowsort
SELECT ALL - ( + 17 ) col2, 27 + - 74 AS col2
----
-17
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-2641
SELECT ALL ( 59 ) DIV 24 * + 71 * - 47 AS col0
----
-6674

skipif mysql # not compatible
query I rowsort label-2641
SELECT ALL ( 59 ) / 24 * + 71 * - 47 AS col0
----
-6674

onlyif mysql # aggregate syntax: 
query I rowsort label-2642
SELECT - MAX( ALL 18 ) col1
----
-18

skipif mysql # not compatible
query I rowsort label-2642
SELECT - MAX ( ALL 18 ) col1
----
-18

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2643
SELECT CASE 10 WHEN + 15 THEN NULL WHEN + + CAST( NULL AS DECIMAL ) THEN NULL ELSE - - COUNT( * ) END + 31 / - + MAX( DISTINCT 81 ) * + CAST( NULL AS DECIMAL ) / CASE - + 97 WHEN + + 8 + - 9 * + COUNT( * ) + + - 52 * + COUNT( * ) THEN 53 * - 33 ELSE - 24 END AS col1, 68
----
NULL
68

skipif mysql # not compatible
query II rowsort label-2643
SELECT CASE 10 WHEN + 15 THEN NULL WHEN + + CAST ( NULL AS REAL ) THEN NULL ELSE - - COUNT ( * ) END + 31 / - + MAX ( DISTINCT 81 ) * + CAST ( NULL AS REAL ) / CASE - + 97 WHEN + + 8 + - 9 * + COUNT ( * ) + + - 52 * + COUNT ( * ) THEN 53 * - 33 ELSE - 24 END AS col1, 68
----
NULL
68

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2644
SELECT DISTINCT 33 / COUNT( * ) + + - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2644
SELECT DISTINCT 33 / COUNT ( * ) + + - CAST ( NULL AS REAL ) AS col1
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2646
SELECT + 7 * + ( + 52 ) DIV - ( 46 ) + - 24 - 98 AS col1
----
-129

skipif mysql # not compatible
query I rowsort label-2646
SELECT + 7 * + ( + 52 ) / - ( 46 ) + - 24 - 98 AS col1
----
-129

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2647
SELECT DISTINCT - 24 - - + CAST( - 25 AS SIGNED )
----
-49

skipif mysql # not compatible
query I rowsort label-2647
SELECT DISTINCT - 24 - - + CAST ( - 25 AS INTEGER )
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-2648
SELECT ALL 54 - + COUNT( + 52 ) AS col0
----
53

skipif mysql # not compatible
query I rowsort label-2648
SELECT ALL 54 - + COUNT ( + 52 ) AS col0
----
53

query I rowsort
SELECT 39 * + + 87
----
3393

query I rowsort
SELECT DISTINCT - 86 * - 25 * ( - 13 ) * - 58 * - 37
----
-59980700

onlyif mysql # aggregate syntax: 
query I rowsort label-2651
SELECT DISTINCT 89 * - CASE CASE - 69 WHEN + 29 THEN + COUNT( * ) + + 45 ELSE - 50 * + 13 + + + 28 - COUNT( * ) / - - 59 * 49 END WHEN + - 41 THEN MIN( + 43 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2651
SELECT DISTINCT 89 * - CASE CASE - 69 WHEN + 29 THEN + COUNT ( * ) + + 45 ELSE - 50 * + 13 + + + 28 - COUNT ( * ) / - - 59 * 49 END WHEN + - 41 THEN MIN ( + 43 ) END
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2652
SELECT 58 DIV - 22 AS col1, + 71
----
-2
71

skipif mysql # not compatible
query II rowsort label-2652
SELECT 58 / - 22 AS col1, + 71
----
-2
71

query I rowsort
SELECT ALL 24 * + - 38
----
-912

query I rowsort
SELECT 29 * 71
----
2059

query I rowsort
SELECT 64 + - + 66 + ( + 52 )
----
50

query I rowsort
SELECT 24 * + 29 + 24 AS col0
----
720

query I rowsort
SELECT 57 - + 98 * + 21 col0
----
-2001

onlyif mysql # DIV for integer division: 
query I rowsort label-2658
SELECT 73 DIV + 72
----
1

skipif mysql # not compatible
query I rowsort label-2658
SELECT 73 / + 72
----
1

query I rowsort
SELECT ALL + 97 + - 91
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-2660
SELECT 63 DIV 41 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2660
SELECT 63 / 41 AS col0
----
1

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2662
SELECT + 22 + - 14 col0, ( + 8 ) + + NULLIF ( - ( + 5 ), + + SUM( - - 65 ) )
----
8
3

skipif mysql # not compatible
query II rowsort label-2662
SELECT + 22 + - 14 col0, ( + 8 ) + + NULLIF ( - ( + 5 ), + + SUM ( - - 65 ) )
----
8
3

query I rowsort
SELECT DISTINCT - + 77 + - 24
----
-101

query II rowsort
SELECT ALL - 21 + - 37 AS col0, 81
----
-58
81

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

skipif mysql # not compatible
query I rowsort label-2665
SELECT + SUM ( 39 )
----
39

query I rowsort
SELECT + 25 * ( + - 6 )
----
-150

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2667
SELECT ALL + 61 - - COUNT( * ) * - 29 + - + 36 DIV + 55 - + + COUNT( * ) col2
----
31

skipif mysql # not compatible
query I rowsort label-2667
SELECT ALL + 61 - - COUNT ( * ) * - 29 + - + 36 / + 55 - + + COUNT ( * ) col2
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2668
SELECT ( - + MIN( CASE - + 11 WHEN - + ( - NULLIF ( - - 58, - CAST( + ( - COALESCE ( 99, - 74 ) ) AS SIGNED ) ) ) * 93 * - 61 + - 93 / + + ( + 43 ) + - 26 + 43 / + CAST( NULL AS SIGNED ) THEN 63 END ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2668
SELECT ( - + MIN ( CASE - + 11 WHEN - + ( - NULLIF ( - - 58, - CAST ( + ( - COALESCE ( 99, - 74 ) ) AS INTEGER ) ) ) * 93 * - 61 + - 93 / + + ( + 43 ) + - 26 + 43 / + CAST ( NULL AS INTEGER ) THEN 63 END ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2669
SELECT ALL COUNT( * ) * + 46 DIV ( - 32 ) - 41 DIV - - 93 * + + 54
----
-1

skipif mysql # not compatible
query I rowsort label-2669
SELECT ALL COUNT ( * ) * + 46 / ( - 32 ) - 41 / - - 93 * + + 54
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2670
SELECT - 91 - + CASE - + ( + COUNT( * ) ) WHEN + + 24 THEN - 4 * + COALESCE ( + 6, COUNT( * ) + + 43 ) * - 67 * 73 END + 6 / - 50 * - + 69 * + 66
----
NULL

skipif mysql # not compatible
query I rowsort label-2670
SELECT - 91 - + CASE - + ( + COUNT ( * ) ) WHEN + + 24 THEN - 4 * + COALESCE ( + 6, COUNT ( * ) + + 43 ) * - 67 * 73 END + 6 / - 50 * - + 69 * + 66
----
NULL

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

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

query I rowsort
SELECT ALL - NULLIF ( + 41, 50 ) col1
----
-41

query I rowsort
SELECT ALL - 25 * + 19 AS col0
----
-475

onlyif mysql # aggregate syntax: 
query I rowsort label-2674
SELECT DISTINCT SUM( + - 12 ) AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-2674
SELECT DISTINCT SUM ( + - 12 ) AS col0
----
-12

query II rowsort
SELECT DISTINCT 53 col0, 93 * - + 17 AS col0
----
53
-1581

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2676
SELECT 22 + - 55 + 77, 48 - + ( - CAST( + 5 AS SIGNED ) ) * - - 90 + + - 50 * + CAST( 76 AS SIGNED ) AS col0
----
44
-3302

skipif mysql # not compatible
query II rowsort label-2676
SELECT 22 + - 55 + 77, 48 - + ( - CAST ( + 5 AS INTEGER ) ) * - - 90 + + - 50 * + CAST ( 76 AS INTEGER ) AS col0
----
44
-3302

onlyif mysql # DIV for integer division: 
query I rowsort label-2677
SELECT 29 DIV - 59 * 13 * - 59 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2677
SELECT 29 / - 59 * 13 * - 59 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2678
SELECT CASE 66 WHEN - - 75 + - ( + + 54 ) * - 72 + ( - ( MIN( + 53 ) ) ) THEN NULL WHEN + 38 THEN NULL ELSE - + 62 END * + - COUNT( * ) * + 34 - - 79 AS col2
----
2187

skipif mysql # not compatible
query I rowsort label-2678
SELECT CASE 66 WHEN - - 75 + - ( + + 54 ) * - 72 + ( - ( MIN ( + 53 ) ) ) THEN NULL WHEN + 38 THEN NULL ELSE - + 62 END * + - COUNT ( * ) * + 34 - - 79 AS col2
----
2187

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

skipif mysql # not compatible
query I rowsort label-2679
SELECT DISTINCT 42 / - 43
----
0

query I rowsort
SELECT 38 * NULLIF ( + 90, - - 26 ) col2
----
3420

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2682
SELECT ( + + 71 ) * + CAST( NULL AS SIGNED ) AS col0, - 56 AS col0
----
NULL
-56

skipif mysql # not compatible
query II rowsort label-2682
SELECT ( + + 71 ) * + CAST ( NULL AS INTEGER ) AS col0, - 56 AS col0
----
NULL
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-2683
SELECT ALL 77 DIV NULLIF ( 83, 14 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2683
SELECT ALL 77 / NULLIF ( 83, 14 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2684
SELECT ALL COUNT( DISTINCT - 86 )
----
1

skipif mysql # not compatible
query I rowsort label-2684
SELECT ALL COUNT ( DISTINCT - 86 )
----
1

query I rowsort
SELECT DISTINCT 47 + - + 58 + 33 AS col2
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2686
SELECT DISTINCT ( + 17 ) + - CAST( 11 AS SIGNED ) * + 11 col0
----
-104

skipif mysql # not compatible
query I rowsort label-2686
SELECT DISTINCT ( + 17 ) + - CAST ( 11 AS INTEGER ) * + 11 col0
----
-104

query I rowsort
SELECT ALL 70 * + + 75 AS col0
----
5250

query I rowsort
SELECT 64 * - 93
----
-5952

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2689
SELECT ALL 82 + - 77 / + + COUNT( * ) * - 4 + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2689
SELECT ALL 82 + - 77 / + + COUNT ( * ) * - 4 + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL - 38 + 72
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-2691
SELECT CASE + + ( + 50 ) WHEN + + ( + ( + 27 ) ) + - 1 THEN NULL WHEN + 98 + - + 81 THEN NULL WHEN 19 THEN NULL WHEN AVG ( ( + 73 ) ) * - - 22 + - COUNT( * ) / + 7 THEN + COUNT( * ) + + 12 * + 50 * COALESCE ( - 30, + 63 / - 22 ) ELSE + COUNT( * ) END AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2691
SELECT CASE + + ( + 50 ) WHEN + + ( + ( + 27 ) ) + - 1 THEN NULL WHEN + 98 + - + 81 THEN NULL WHEN 19 THEN NULL WHEN AVG ( ( + 73 ) ) * - - 22 + - COUNT ( * ) / + 7 THEN + COUNT ( * ) + + 12 * + 50 * COALESCE ( - 30, + 63 / - 22 ) ELSE + COUNT ( * ) END AS col2
----
1

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2693
SELECT COALESCE ( + 68, + CAST( + - 5 AS SIGNED ) * + 54 ) col2
----
68

skipif mysql # not compatible
query I rowsort label-2693
SELECT COALESCE ( + 68, + CAST ( + - 5 AS INTEGER ) * + 54 ) col2
----
68

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

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

query II rowsort
SELECT COALESCE ( - 51, + - 32 ) AS col1, 72
----
-51
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2696
SELECT ALL 31 * 12 * + 13 * + 84 + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2696
SELECT ALL 31 * 12 * + 13 * + 84 + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT ALL + 37 AS col1, - 76 AS col0
----
37
-76

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

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

query I rowsort
SELECT ALL 75 * + 87 + + 92
----
6617

onlyif mysql # DIV for integer division: 
query I rowsort label-2700
SELECT ALL + - 4 DIV + 99 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2700
SELECT ALL + - 4 / + 99 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2701
SELECT ALL COUNT( * ) * + CASE WHEN - 72 IS NULL THEN NULL ELSE + - 70 END + + CAST( NULL AS DECIMAL ) + + 89 * + 8
----
NULL

skipif mysql # not compatible
query I rowsort label-2701
SELECT ALL COUNT ( * ) * + CASE WHEN - 72 IS NULL THEN NULL ELSE + - 70 END + + CAST ( NULL AS REAL ) + + 89 * + 8
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2702
SELECT + 59 col0, SUM( - - 35 )
----
59
35

skipif mysql # not compatible
query II rowsort label-2702
SELECT + 59 col0, SUM ( - - 35 )
----
59
35

query I rowsort
SELECT + - 76 + 20 AS col2
----
-56

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2705
SELECT + 16 * - - 84 + + - 65 + + COUNT( * ) + + MIN( 49 ) * + 66 + - - 50 * - SUM( + - 38 ) * 99 * 32 * - 56
----
-337070686

skipif mysql # not compatible
query I rowsort label-2705
SELECT + 16 * - - 84 + + - 65 + + COUNT ( * ) + + MIN ( 49 ) * + 66 + - - 50 * - SUM ( + - 38 ) * 99 * 32 * - 56
----
-337070686

onlyif mysql # aggregate syntax: 
query I rowsort label-2706
SELECT - 22 + COUNT( + 81 ) AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-2706
SELECT - 22 + COUNT ( + 81 ) AS col0
----
-21

query I rowsort
SELECT ALL - + COALESCE ( - 51, 46 ) * - 31 - 19
----
-1600

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2708
SELECT + 62 * + MIN( DISTINCT - - CASE 10 WHEN 44 + 46 THEN - + 45 * - + ( 96 ) + + CAST( NULL AS SIGNED ) END ) - + 25 * - - 69
----
NULL

skipif mysql # not compatible
query I rowsort label-2708
SELECT + 62 * + MIN ( DISTINCT - - CASE 10 WHEN 44 + 46 THEN - + 45 * - + ( 96 ) + + CAST ( NULL AS INTEGER ) END ) - + 25 * - - 69
----
NULL

query I rowsort
SELECT - 66 * + 2
----
-132

onlyif mysql # aggregate syntax: 
query I rowsort label-2710
SELECT - + 78 * - NULLIF ( 85, MAX( + 90 ) ) + + 24 + ( 33 ) + + ( - - 40 ) AS col0
----
6727

skipif mysql # not compatible
query I rowsort label-2710
SELECT - + 78 * - NULLIF ( 85, MAX ( + 90 ) ) + + 24 + ( 33 ) + + ( - - 40 ) AS col0
----
6727

query I rowsort
SELECT ALL 49 * + 3
----
147

onlyif mysql # aggregate syntax: 
query II rowsort label-2712
SELECT ALL - 29 * - NULLIF ( + 62, 67 ) AS col2, SUM( + 50 ) col1
----
1798
50

skipif mysql # not compatible
query II rowsort label-2712
SELECT ALL - 29 * - NULLIF ( + 62, 67 ) AS col2, SUM ( + 50 ) col1
----
1798
50

query I rowsort
SELECT - + 60 + - 74 AS col1
----
-134

query I rowsort
SELECT ALL ( 19 ) col0
----
19

query I rowsort
SELECT ALL COALESCE ( - 60, 33 * + + 98 ) col2
----
-60

query I rowsort
SELECT ALL + 69 * 22
----
1518

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

query I rowsort
SELECT + 71 + + 28 + + 34 AS col1
----
133

query I rowsort
SELECT DISTINCT + 51 * + 85 AS col1
----
4335

onlyif mysql # aggregate syntax: 
query I rowsort label-2720
SELECT DISTINCT + MAX( ALL - + 50 ) + 58 + - 53 + 80 * + 10 * - 90
----
-72045

skipif mysql # not compatible
query I rowsort label-2720
SELECT DISTINCT + MAX ( ALL - + 50 ) + 58 + - 53 + 80 * + 10 * - 90
----
-72045

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2721
SELECT DISTINCT - 24 + 75 DIV CAST( + 6 AS SIGNED )
----
-12

skipif mysql # not compatible
query I rowsort label-2721
SELECT DISTINCT - 24 + 75 / CAST ( + 6 AS INTEGER )
----
-12

query I rowsort
SELECT ALL + ( - + 58 ) * 34
----
-1972

query I rowsort
SELECT DISTINCT 88 + + 71
----
159

query I rowsort
SELECT DISTINCT + 51 * - COALESCE ( + - 42, - 44, 80 ) AS col0
----
2142

query II rowsort
SELECT ALL - 97 + 23, 96 AS col0
----
-74
96

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

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

query I rowsort
SELECT - CASE - + 77 WHEN + 22 THEN - 79 * - 92 / - - 95 * + 84 * + 85 WHEN - 31 THEN - 93 * + 20 + + - 58 ELSE NULL END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2728
SELECT - COALESCE ( + ( - + 23 ), 84 ) DIV 22 + 82 + - - 57 * + 10
----
653

skipif mysql # not compatible
query I rowsort label-2728
SELECT - COALESCE ( + ( - + 23 ), 84 ) / 22 + 82 + - - 57 * + 10
----
653

query I rowsort
SELECT - 99 - - 66 * 36
----
2277

onlyif mysql # aggregate syntax: 
query II rowsort label-2730
SELECT - COALESCE ( - - COUNT( * ), - 78, - 41 ) AS col1, + 75 AS col2
----
-1
75

skipif mysql # not compatible
query II rowsort label-2730
SELECT - COALESCE ( - - COUNT ( * ), - 78, - 41 ) AS col1, + 75 AS col2
----
-1
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2731
SELECT + COUNT( * ) + - 63 * - MIN( COALESCE ( 84, + 81 ) ) AS col1
----
5293

skipif mysql # not compatible
query I rowsort label-2731
SELECT + COUNT ( * ) + - 63 * - MIN ( COALESCE ( 84, + 81 ) ) AS col1
----
5293

query I rowsort
SELECT - ( + 99 ) * - 58 * + - 90 - - + 21 col0
----
-516759

query I rowsort
SELECT + COALESCE ( + 59, 40 ) col1
----
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2734
SELECT DISTINCT 35 DIV + - 36 - + - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-2734
SELECT DISTINCT 35 / + - 36 - + - COUNT ( * )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2735
SELECT DISTINCT + + 46 DIV - - 21 - - MAX( DISTINCT - + 20 ) - COUNT( * ) - + + 64
----
-83

skipif mysql # not compatible
query I rowsort label-2735
SELECT DISTINCT + + 46 / - - 21 - - MAX ( DISTINCT - + 20 ) - COUNT ( * ) - + + 64
----
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2736
SELECT ALL 40 * + + 7 * + CAST( 27 AS SIGNED ) + + 81 AS col2
----
7641

skipif mysql # not compatible
query I rowsort label-2736
SELECT ALL 40 * + + 7 * + CAST ( 27 AS INTEGER ) + + 81 AS col2
----
7641

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2737
SELECT ALL - + NULLIF ( - 96, 26 ) DIV 31 + 48 - + COUNT( * ) - COALESCE ( 12, - - 13, + - 43 * - 68 ) col1
----
38

skipif mysql # not compatible
query I rowsort label-2737
SELECT ALL - + NULLIF ( - 96, 26 ) / 31 + 48 - + COUNT ( * ) - COALESCE ( 12, - - 13, + - 43 * - 68 ) col1
----
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2738
SELECT + + COUNT( * ) * - + 92 AS col2, + 74 DIV + 99 * + 90
----
-92
0

skipif mysql # not compatible
query II rowsort label-2738
SELECT + + COUNT ( * ) * - + 92 AS col2, + 74 / + 99 * + 90
----
-92
0

query I rowsort
SELECT + 64 * - 3 + - 37 + + 40 AS col2
----
-189

query I rowsort
SELECT ALL + + 3 col0
----
3

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

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

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

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

query I rowsort
SELECT - + 14 * + 53
----
-742

onlyif mysql # aggregate syntax: 
query I rowsort label-2744
SELECT + 31 * + - NULLIF ( + 25, + MIN( ALL - 80 ) )
----
-775

skipif mysql # not compatible
query I rowsort label-2744
SELECT + 31 * + - NULLIF ( + 25, + MIN ( ALL - 80 ) )
----
-775

query I rowsort
SELECT - 95 * - 33 AS col0
----
3135

onlyif mysql # aggregate syntax: 
query I rowsort label-2746
SELECT ALL - 37 * - ( + 92 ) * MIN( 84 ) * + + 19 AS col1
----
5432784

skipif mysql # not compatible
query I rowsort label-2746
SELECT ALL - 37 * - ( + 92 ) * MIN ( 84 ) * + + 19 AS col1
----
5432784

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2748
SELECT ALL + COUNT( * ) * - 50 + + COUNT( * ) + + ( - - COUNT( - 8 ) ) - - 83
----
35

skipif mysql # not compatible
query I rowsort label-2748
SELECT ALL + COUNT ( * ) * - 50 + + COUNT ( * ) + + ( - - COUNT ( - 8 ) ) - - 83
----
35

query I rowsort
SELECT DISTINCT ( - 6 ) * 48 + + + 62
----
-226

onlyif mysql # aggregate syntax: 
query I rowsort label-2750
SELECT - NULLIF ( COUNT( * ), 25 ) + - 15 * + 92 AS col1
----
-1381

skipif mysql # not compatible
query I rowsort label-2750
SELECT - NULLIF ( COUNT ( * ), 25 ) + - 15 * + 92 AS col1
----
-1381

query I rowsort
SELECT ALL CASE + 12 WHEN + - 5 THEN 17 + + + 53 / - - 30 END col1
----
NULL

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

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

query I rowsort
SELECT ALL + 47 + + 73 AS col0
----
120

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

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

query I rowsort
SELECT 66 + + 23 - - 59 * + 23
----
1446

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

skipif mysql # not compatible
query I rowsort label-2756
SELECT 2 - 83 + COUNT ( * ) AS col2
----
-80

query I rowsort
SELECT DISTINCT - 93 - + 36 AS col2
----
-129

query I rowsort
SELECT ALL + COALESCE ( - + 56, + 5 + 98 + + 72 + - ( + 90 ), - 51 * 64 - - 78 ) * + 88 AS col1
----
-4928

onlyif mysql # aggregate syntax: 
query II rowsort label-2759
SELECT DISTINCT + 30 - + 34 + + 26 + + + 29 + + + ( + 39 ) * - - 30 + + 94 - COUNT( ALL - 73 ), - 59 AS col1
----
1314
-59

skipif mysql # not compatible
query II rowsort label-2759
SELECT DISTINCT + 30 - + 34 + + 26 + + + 29 + + + ( + 39 ) * - - 30 + + 94 - COUNT ( ALL - 73 ), - 59 AS col1
----
1314
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-2760
SELECT DISTINCT + 21 * - COUNT( DISTINCT 77 ) * - - 29 + + 6 col0
----
-603

skipif mysql # not compatible
query I rowsort label-2760
SELECT DISTINCT + 21 * - COUNT ( DISTINCT 77 ) * - - 29 + + 6 col0
----
-603

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2761
SELECT ALL - + 20 * - COALESCE ( + COALESCE ( + ( + 31 ), - COALESCE ( ( + 96 ), + 29 ) * 51 + - + 91 DIV 64 DIV + COUNT( * ) * + COUNT( * ) * - COUNT( * ) ), + + COUNT( * ) * + CASE + COALESCE ( + + 59, + COALESCE ( - + COUNT( * ), - 70 ) * + COUNT( * ) ) WHEN CAST( + 9 AS SIGNED ) THEN - 72 WHEN 82 THEN NULL END )
----
620

skipif mysql # not compatible
query I rowsort label-2761
SELECT ALL - + 20 * - COALESCE ( + COALESCE ( + ( + 31 ), - COALESCE ( ( + 96 ), + 29 ) * 51 + - + 91 / 64 / + COUNT ( * ) * + COUNT ( * ) * - COUNT ( * ) ), + + COUNT ( * ) * + CASE + COALESCE ( + + 59, + COALESCE ( - + COUNT ( * ), - 70 ) * + COUNT ( * ) ) WHEN CAST ( + 9 AS INTEGER ) THEN - 72 WHEN 82 THEN NULL END )
----
620

onlyif mysql # DIV for integer division: 
query II rowsort label-2762
SELECT - 10, 76 DIV - 56 AS col2
----
-10
-1

skipif mysql # not compatible
query II rowsort label-2762
SELECT - 10, 76 / - 56 AS col2
----
-10
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-2763
SELECT 29, - 15 DIV 68 + + 74 col2
----
29
74

skipif mysql # not compatible
query II rowsort label-2763
SELECT 29, - 15 / 68 + + 74 col2
----
29
74

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

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

query II rowsort
SELECT NULLIF ( + + 15, - 2 + ( + + 82 ) + + + 36 * 70 + + 13 ) * + - 74 * - + 75, - 78 col0
----
83250
-78

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2767
SELECT - - 70 DIV 34 + + + 8 + + COUNT( * ) + + + 67 * 84 AS col1
----
5639

skipif mysql # not compatible
query I rowsort label-2767
SELECT - - 70 / 34 + + + 8 + + COUNT ( * ) + + + 67 * 84 AS col1
----
5639

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2768
SELECT ( + COUNT( ALL 19 ) ) DIV - 53
----
0

skipif mysql # not compatible
query I rowsort label-2768
SELECT ( + COUNT ( ALL 19 ) ) / - 53
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2769
SELECT ALL - CAST( - - SUM( ALL + + 89 ) AS SIGNED ) * - - 8 - 74 AS col0
----
-786

skipif mysql # not compatible
query I rowsort label-2769
SELECT ALL - CAST ( - - SUM ( ALL + + 89 ) AS INTEGER ) * - - 8 - 74 AS col0
----
-786

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2770
SELECT 36 + - CAST( NULL AS SIGNED ) * - + 19 + - - ( - ( - 5 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2770
SELECT 36 + - CAST ( NULL AS INTEGER ) * - + 19 + - - ( - ( - 5 ) )
----
NULL

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

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

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

query I rowsort
SELECT 75 * + - 49
----
-3675

query I rowsort
SELECT 62 + - 83
----
-21

query I rowsort
SELECT 5 + 4
----
9

query I rowsort
SELECT DISTINCT 19 + ( - 17 )
----
2

query I rowsort
SELECT ALL 89 * - - 39 * 21 AS col2
----
72891

query II rowsort
SELECT DISTINCT - 96, 64 * + 44 AS col1
----
-96
2816

query I rowsort
SELECT ALL - 6 + - - 61
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-2780
SELECT ALL 18 + + + ( COUNT( * ) ) + 16 AS col2
----
35

skipif mysql # not compatible
query I rowsort label-2780
SELECT ALL 18 + + + ( COUNT ( * ) ) + 16 AS col2
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-2781
SELECT DISTINCT 77 + 54 - - 86 DIV 24 * + + ( - 41 )
----
8

skipif mysql # not compatible
query I rowsort label-2781
SELECT DISTINCT 77 + 54 - - 86 / 24 * + + ( - 41 )
----
8

query I rowsort
SELECT ALL 12 * + COALESCE ( + ( - - 78 ), - ( + - ( - 26 ) ), 94, ( + - 3 ) ) AS col2
----
936

query I rowsort
SELECT 2 + + 34 * + 72 AS col1
----
2450

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

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

query I rowsort
SELECT ALL + 34 * - 37 AS col1
----
-1258

onlyif mysql # aggregate syntax: 
query I rowsort label-2786
SELECT ALL - COUNT( ALL - 51 ) - + 26 AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-2786
SELECT ALL - COUNT ( ALL - 51 ) - + 26 AS col1
----
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2787
SELECT SUM( - ( + 75 ) ) DIV 51 col2
----
-1

skipif mysql # not compatible
query I rowsort label-2787
SELECT SUM ( - ( + 75 ) ) / 51 col2
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-2788
SELECT COUNT( - 46 ) + + COUNT( DISTINCT + 94 ), ( 62 ) col2
----
2
62

skipif mysql # not compatible
query II rowsort label-2788
SELECT COUNT ( - 46 ) + + COUNT ( DISTINCT + 94 ), ( 62 ) col2
----
2
62

query I rowsort
SELECT 92 * 3
----
276

query I rowsort
SELECT ALL 52 - + ( - 49 ) col1
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-2791
SELECT ALL MAX( DISTINCT 75 ) * + 50
----
3750

skipif mysql # not compatible
query I rowsort label-2791
SELECT ALL MAX ( DISTINCT 75 ) * + 50
----
3750

query II rowsort
SELECT ALL 44, + 92 * + 38 AS col1
----
44
3496

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2793
SELECT - 83 - - + 59 + + CAST( - 41 AS SIGNED ) + 43 DIV - 17 AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-2793
SELECT - 83 - - + 59 + + CAST ( - 41 AS INTEGER ) + 43 / - 17 AS col0
----
-67

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2796
SELECT - 75 + - NULLIF ( - CASE + 62 WHEN 95 THEN NULL WHEN - - 68 THEN - - 4 * - 5 WHEN COUNT( * ) THEN NULL ELSE NULL END, + COUNT( * ) + + + 95 + + + COUNT( * ) - - NULLIF ( - 78, 72 ) - CASE - + 21 WHEN - COUNT( ALL + 51 ) THEN NULL ELSE + ( - CASE 36 WHEN + 85 + + 28 THEN NULL ELSE 31 * - 41 * - - COALESCE ( + 81, - - COUNT( * ) * - - MAX( 44 ) + 48 * + 67, - 0 ) END ) END * + - 60 + 68 * - - 32 ) + - - 43 + + ( - - 88 ) / - CAST( + 93 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2796
SELECT - 75 + - NULLIF ( - CASE + 62 WHEN 95 THEN NULL WHEN - - 68 THEN - - 4 * - 5 WHEN COUNT ( * ) THEN NULL ELSE NULL END, + COUNT ( * ) + + + 95 + + + COUNT ( * ) - - NULLIF ( - 78, 72 ) - CASE - + 21 WHEN - COUNT ( ALL + 51 ) THEN NULL ELSE + ( - CASE 36 WHEN + 85 + + 28 THEN NULL ELSE 31 * - 41 * - - COALESCE ( + 81, - - COUNT ( * ) * - - MAX ( 44 ) + 48 * + 67, - 0 ) END ) END * + - 60 + 68 * - - 32 ) + - - 43 + + ( - - 88 ) / - CAST ( + 93 AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2797
SELECT 28 * 95 DIV - 4
----
-665

skipif mysql # not compatible
query I rowsort label-2797
SELECT 28 * 95 / - 4
----
-665

query I rowsort
SELECT 71 + 13
----
84

query I rowsort
SELECT DISTINCT NULLIF ( - 68, - 64 ) AS col0
----
-68

query II rowsort
SELECT ALL - 58 * 78 AS col0, 59 + + 72 + - + 2 - - 95 * + + 51 * + 25 * - 9 col2
----
-4524
-1089996

onlyif mysql # aggregate syntax: 
query I rowsort label-2801
SELECT ALL - 53 * + 20 + - NULLIF ( - 88, + - COUNT( * ) * - 59 ) AS col2
----
-972

skipif mysql # not compatible
query I rowsort label-2801
SELECT ALL - 53 * + 20 + - NULLIF ( - 88, + - COUNT ( * ) * - 59 ) AS col2
----
-972

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2804
SELECT ALL - - SUM( - 0 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2804
SELECT ALL - - SUM ( - 0 ) AS col0
----
0

query I rowsort
SELECT DISTINCT - 15 * 36 + + 42 - + 53 * - 60 AS col1
----
2682

query I rowsort
SELECT 28 + 46 + - 84 * 25 + + 64 col0
----
-1962

onlyif mysql # aggregate syntax: 
query I rowsort label-2807
SELECT DISTINCT - MIN( DISTINCT - + 95 ) AS col2
----
95

skipif mysql # not compatible
query I rowsort label-2807
SELECT DISTINCT - MIN ( DISTINCT - + 95 ) AS col2
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2808
SELECT + CAST( NULL AS SIGNED ) * + 32 + + + 19 * + 8 * 99 * + 59
----
NULL

skipif mysql # not compatible
query I rowsort label-2808
SELECT + CAST ( NULL AS INTEGER ) * + 32 + + + 19 * + 8 * 99 * + 59
----
NULL

query I rowsort
SELECT ALL - + 24 * + 41 + + 51 * + 75 * - ( 4 )
----
-16284

query I rowsort
SELECT + + NULLIF ( 98, 61 + + + 3 )
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-2811
SELECT 66 DIV - 2 col2
----
-33

skipif mysql # not compatible
query I rowsort label-2811
SELECT 66 / - 2 col2
----
-33

query I rowsort
SELECT ALL 88 + - 81
----
7

query I rowsort
SELECT ALL + 10 + + 52 AS col0
----
62

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2814
SELECT 10 * + + 83 + - 42 / + + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2814
SELECT 10 * + + 83 + - 42 / + + CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT 83 * 92 AS col2
----
7636

query I rowsort
SELECT ALL 36 * 67 * - 90 * 87
----
-18885960

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2817
SELECT + 78 * CAST( - + 50 AS SIGNED ) + + SUM( ALL + ( + 30 ) ) + 65, - 48 + 41 AS col2
----
-3805
-7

skipif mysql # not compatible
query II rowsort label-2817
SELECT + 78 * CAST ( - + 50 AS INTEGER ) + + SUM ( ALL + ( + 30 ) ) + 65, - 48 + 41 AS col2
----
-3805
-7

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

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

query I rowsort
SELECT DISTINCT 35 * + ( + 66 ) AS col0
----
2310

onlyif mysql # aggregate syntax: 
query I rowsort label-2820
SELECT + 46 - + + COUNT( + + 14 ) AS col2
----
45

skipif mysql # not compatible
query I rowsort label-2820
SELECT + 46 - + + COUNT ( + + 14 ) AS col2
----
45

onlyif mysql # aggregate syntax: 
query II rowsort label-2821
SELECT + MAX( ALL + 88 ) * + 7 AS col1, ( + 57 ) AS col0
----
616
57

skipif mysql # not compatible
query II rowsort label-2821
SELECT + MAX ( ALL + 88 ) * + 7 AS col1, ( + 57 ) AS col0
----
616
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2822
SELECT + 23 + 87 - 77 * CAST( - 60 AS SIGNED )
----
4730

skipif mysql # not compatible
query I rowsort label-2822
SELECT + 23 + 87 - 77 * CAST ( - 60 AS INTEGER )
----
4730

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2825
SELECT ALL 22 DIV + - 29
----
0

skipif mysql # not compatible
query I rowsort label-2825
SELECT ALL 22 / + - 29
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2827
SELECT DISTINCT - 65 * + ( - 60 ) + + COUNT( * ) + + COUNT( DISTINCT 31 ) + + - 94 AS col1
----
3808

skipif mysql # not compatible
query I rowsort label-2827
SELECT DISTINCT - 65 * + ( - 60 ) + + COUNT ( * ) + + COUNT ( DISTINCT 31 ) + + - 94 AS col1
----
3808

query I rowsort
SELECT - - 54 - - - 18 * + 89 AS col2
----
-1548

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2829
SELECT - 73 DIV COUNT( * ) + + 23 + + NULLIF ( + ( + 71 ), - 49 + AVG ( - ( 40 ) ) )
----
21

skipif mysql # not compatible
query I rowsort label-2829
SELECT - 73 / COUNT ( * ) + + 23 + + NULLIF ( + ( + 71 ), - 49 + AVG ( - ( 40 ) ) )
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-2830
SELECT ALL ( + + SUM( ALL 40 ) ) * + + COUNT( ALL - 83 ) col2
----
40

skipif mysql # not compatible
query I rowsort label-2830
SELECT ALL ( + + SUM ( ALL 40 ) ) * + + COUNT ( ALL - 83 ) col2
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-2831
SELECT + 17 + 34 * + ( + + COUNT( * ) ) * + 41 AS col0
----
1411

skipif mysql # not compatible
query I rowsort label-2831
SELECT + 17 + 34 * + ( + + COUNT ( * ) ) * + 41 AS col0
----
1411

query I rowsort
SELECT DISTINCT 91 + - 21
----
70

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2834
SELECT DISTINCT + COUNT( * ) + + 61 + 29 AS col1
----
91

skipif mysql # not compatible
query I rowsort label-2834
SELECT DISTINCT + COUNT ( * ) + + 61 + 29 AS col1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2835
SELECT - - 18 * + COALESCE ( - 99, + 87 * - - 97 - + 30 * 8 * + 2 ) + CASE COUNT( * ) WHEN MIN( ALL + + 6 ) THEN + + 83 / 43 + - 83 / + + 41 + + - 17 * - - 92 * + - ( - + 51 ) WHEN - COUNT( * ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2835
SELECT - - 18 * + COALESCE ( - 99, + 87 * - - 97 - + 30 * 8 * + 2 ) + CASE COUNT ( * ) WHEN MIN ( ALL + + 6 ) THEN + + 83 / 43 + - 83 / + + 41 + + - 17 * - - 92 * + - ( - + 51 ) WHEN - COUNT ( * ) THEN NULL ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2836
SELECT - 90 DIV 46 + 35 - + + ( 15 ) AS col2
----
19

skipif mysql # not compatible
query I rowsort label-2836
SELECT - 90 / 46 + 35 - + + ( 15 ) AS col2
----
19

query I rowsort
SELECT - ( - - 68 ) * + 18 + 32 AS col2
----
-1192

onlyif mysql # aggregate syntax: 
query I rowsort label-2838
SELECT ALL + CASE - 53 WHEN 25 THEN NULL WHEN 69 THEN + 14 END * - 75 + - + 53 - - COUNT( * ) + - 13
----
NULL

skipif mysql # not compatible
query I rowsort label-2838
SELECT ALL + CASE - 53 WHEN 25 THEN NULL WHEN 69 THEN + 14 END * - 75 + - + 53 - - COUNT ( * ) + - 13
----
NULL

query I rowsort
SELECT - - 50 + 1
----
51

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2842
SELECT DISTINCT - MAX( DISTINCT 14 ) * - COUNT( * ) AS col1
----
14

skipif mysql # not compatible
query I rowsort label-2842
SELECT DISTINCT - MAX ( DISTINCT 14 ) * - COUNT ( * ) AS col1
----
14

query II rowsort
SELECT + 50 AS col2, 88
----
50
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2844
SELECT - 24 + - CASE + AVG ( + 9 ) WHEN + CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) * + COUNT( * ) THEN - MIN( 31 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2844
SELECT - 24 + - CASE + AVG ( + 9 ) WHEN + CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) * + COUNT ( * ) THEN - MIN ( 31 ) END
----
NULL

query I rowsort
SELECT + 12 * 27 - + + 81 AS col1
----
243

onlyif mysql # aggregate syntax: 
query II rowsort label-2846
SELECT ALL + 22 AS col1, - 5 * COUNT( * )
----
22
-5

skipif mysql # not compatible
query II rowsort label-2846
SELECT ALL + 22 AS col1, - 5 * COUNT ( * )
----
22
-5

query II rowsort
SELECT + 7 AS col0, - 33 AS col0
----
7
-33

query I rowsort
SELECT - 6 + - 39 AS col0
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-2849
SELECT NULLIF ( + COUNT( * ), - - AVG ( - 47 ) - COUNT( * ) / + 86 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2849
SELECT NULLIF ( + COUNT ( * ), - - AVG ( - 47 ) - COUNT ( * ) / + 86 ) AS col2
----
1

query I rowsort
SELECT + 83 + 98 col1
----
181

query I rowsort
SELECT + 0 * CASE - 52 WHEN - + 38 THEN NULL ELSE + 38 + + ( + + 17 ) END
----
0

query I rowsort
SELECT - 70 + + 90 * - + 86
----
-7810

onlyif mysql # aggregate syntax: 
query II rowsort label-2853
SELECT DISTINCT + 24 AS col1, - MIN( - 61 ) + - + 6 AS col0
----
24
55

skipif mysql # not compatible
query II rowsort label-2853
SELECT DISTINCT + 24 AS col1, - MIN ( - 61 ) + - + 6 AS col0
----
24
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2854
SELECT ALL CASE + + ( 39 ) WHEN - COUNT( * ) THEN + - COUNT( * ) END * - COUNT( ALL - + 81 ) * - NULLIF ( + 13, + COUNT( DISTINCT - 80 ) * + 54 + + COUNT( * ) - + - 31 * + 80 + NULLIF ( + CAST( NULL AS SIGNED ), 33 ) / - + 86 / + + MIN( + 18 ) ) AS col2, ( 37 ) col0
----
NULL
37

skipif mysql # not compatible
query II rowsort label-2854
SELECT ALL CASE + + ( 39 ) WHEN - COUNT ( * ) THEN + - COUNT ( * ) END * - COUNT ( ALL - + 81 ) * - NULLIF ( + 13, + COUNT ( DISTINCT - 80 ) * + 54 + + COUNT ( * ) - + - 31 * + 80 + NULLIF ( + CAST ( NULL AS INTEGER ), 33 ) / - + 86 / + + MIN ( + 18 ) ) AS col2, ( 37 ) col0
----
NULL
37

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2856
SELECT COUNT( * ) AS col0, 37 * + ( 33 )
----
1
1221

skipif mysql # not compatible
query II rowsort label-2856
SELECT COUNT ( * ) AS col0, 37 * + ( 33 )
----
1
1221

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2857
SELECT - 11 * + + 64 + - 77 + + + 7 * + 9 * - CASE 27 WHEN - + CAST( 79 AS SIGNED ) THEN 66 * 10 * ( 9 ) - + COUNT( * ) ELSE 47 END AS col1
----
-3742

skipif mysql # not compatible
query I rowsort label-2857
SELECT - 11 * + + 64 + - 77 + + + 7 * + 9 * - CASE 27 WHEN - + CAST ( 79 AS INTEGER ) THEN 66 * 10 * ( 9 ) - + COUNT ( * ) ELSE 47 END AS col1
----
-3742

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

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

query II rowsort
SELECT ALL 81 * + + 17 * - 67 col0, + 25 AS col0
----
-92259
25

query II rowsort
SELECT DISTINCT 92 AS col2, - ( + 43 ) * - + 92 - + 30 + - - 11 + + 28
----
92
3965

onlyif mysql # aggregate syntax: 
query II rowsort label-2861
SELECT DISTINCT 68 AS col2, COUNT( * ) AS col1
----
68
1

skipif mysql # not compatible
query II rowsort label-2861
SELECT DISTINCT 68 AS col2, COUNT ( * ) AS col1
----
68
1

query I rowsort
SELECT ALL - ( 13 ) col0
----
-13

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2863
SELECT + + 80 + CASE 92 WHEN 53 THEN NULL ELSE - + CAST( NULL AS DECIMAL ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2863
SELECT + + 80 + CASE 92 WHEN 53 THEN NULL ELSE - + CAST ( NULL AS REAL ) END AS col2
----
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2865
SELECT DISTINCT + SUM( + 54 ) + 71 AS col0, 84
----
125
84

skipif mysql # not compatible
query II rowsort label-2865
SELECT DISTINCT + SUM ( + 54 ) + 71 AS col0, 84
----
125
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2866
SELECT DISTINCT CASE + 57 WHEN - - CAST( - - 34 AS SIGNED ) * 53 * 84 THEN + CAST( NULL AS SIGNED ) WHEN + 75 - - 91 THEN NULL ELSE - 91 END + 44
----
-47

skipif mysql # not compatible
query I rowsort label-2866
SELECT DISTINCT CASE + 57 WHEN - - CAST ( - - 34 AS INTEGER ) * 53 * 84 THEN + CAST ( NULL AS INTEGER ) WHEN + 75 - - 91 THEN NULL ELSE - 91 END + 44
----
-47

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2867
SELECT - 77 * - CAST( NULL AS DECIMAL ) * + 46 * + ( - 50 ) * + - 49
----
NULL

skipif mysql # not compatible
query I rowsort label-2867
SELECT - 77 * - CAST ( NULL AS REAL ) * + 46 * + ( - 50 ) * + - 49
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2868
SELECT DISTINCT + 92 + + + 24 DIV + - 36
----
92

skipif mysql # not compatible
query I rowsort label-2868
SELECT DISTINCT + 92 + + + 24 / + - 36
----
92

query I rowsort
SELECT + 64 * + + 79
----
5056

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

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

query I rowsort
SELECT ALL 47 + 89 AS col2
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-2872
SELECT + - 79 * + 57 + + ( - + SUM( + 54 ) ) + 44 * + 5 + + + 74 AS col0
----
-4263

skipif mysql # not compatible
query I rowsort label-2872
SELECT + - 79 * + 57 + + ( - + SUM ( + 54 ) ) + 44 * + 5 + + + 74 AS col0
----
-4263

onlyif mysql # aggregate syntax: 
query I rowsort label-2873
SELECT + - 20 * - ( - ( - - COALESCE ( - + SUM( - + 51 ), + NULLIF ( 56, + 73 ) ) ) ) - + 61
----
-1081

skipif mysql # not compatible
query I rowsort label-2873
SELECT + - 20 * - ( - ( - - COALESCE ( - + SUM ( - + 51 ), + NULLIF ( 56, + 73 ) ) ) ) - + 61
----
-1081

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2874
SELECT ALL - 15 * + 49 + - + CASE 83 WHEN - - CAST( NULL AS SIGNED ) + + 58 + - 26 THEN NULL WHEN - 56 THEN NULL ELSE MIN( ALL 49 ) END AS col1
----
-784

skipif mysql # not compatible
query I rowsort label-2874
SELECT ALL - 15 * + 49 + - + CASE 83 WHEN - - CAST ( NULL AS INTEGER ) + + 58 + - 26 THEN NULL WHEN - 56 THEN NULL ELSE MIN ( ALL 49 ) END AS col1
----
-784

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2875
SELECT ALL + COUNT( * ) DIV + 7 - 57 + + 44 + + 76 DIV + - 80
----
-13

skipif mysql # not compatible
query I rowsort label-2875
SELECT ALL + COUNT ( * ) / + 7 - 57 + + 44 + + 76 / + - 80
----
-13

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

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

query I rowsort
SELECT ALL 23 * - 81 AS col1
----
-1863

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2878
SELECT + CAST( AVG ( DISTINCT - 31 ) AS SIGNED )
----
-31

skipif mysql # not compatible
query I rowsort label-2878
SELECT + CAST ( AVG ( DISTINCT - 31 ) AS INTEGER )
----
-31

query I rowsort
SELECT 86 * + 13 * + 94
----
105092

query I rowsort
SELECT ( - 38 ) * - 93 AS col2
----
3534

query I rowsort
SELECT 2 * - 4 * + - 34
----
272

query I rowsort
SELECT ALL + 84 * + 34 AS col2
----
2856

onlyif mysql # aggregate syntax: 
query I rowsort label-2883
SELECT ALL - ( - + COALESCE ( 12, 11 - + 91 * + + COUNT( * ) ) ) AS col0
----
12

skipif mysql # not compatible
query I rowsort label-2883
SELECT ALL - ( - + COALESCE ( 12, 11 - + 91 * + + COUNT ( * ) ) ) AS col0
----
12

query I rowsort
SELECT DISTINCT + 75 * - 24 AS col0
----
-1800

query I rowsort
SELECT 92 + + 41 + 43
----
176

onlyif mysql # aggregate syntax: 
query I rowsort label-2886
SELECT DISTINCT + 40 + + - 58 * - + 22 + + 32 * + ( - + CASE - - ( - - 27 ) WHEN - CASE 24 WHEN 54 THEN 34 ELSE - 88 + + - 74 * 14 * + 99 END THEN NULL WHEN - - 28 THEN + 88 + - 95 - - COUNT( * ) ELSE NULL END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2886
SELECT DISTINCT + 40 + + - 58 * - + 22 + + 32 * + ( - + CASE - - ( - - 27 ) WHEN - CASE 24 WHEN 54 THEN 34 ELSE - 88 + + - 74 * 14 * + 99 END THEN NULL WHEN - - 28 THEN + 88 + - 95 - - COUNT ( * ) ELSE NULL END ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2887
SELECT 17 - + ( - MAX( - 70 ) ) * 9 AS col1
----
-613

skipif mysql # not compatible
query I rowsort label-2887
SELECT 17 - + ( - MAX ( - 70 ) ) * 9 AS col1
----
-613

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2888
SELECT ALL + 15 DIV - 17 * SUM( ALL + 26 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2888
SELECT ALL + 15 / - 17 * SUM ( ALL + 26 ) AS col1
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-2889
SELECT - 94 DIV 74 * - 54 + 93, 16 AS col0
----
147
16

skipif mysql # not compatible
query II rowsort label-2889
SELECT - 94 / 74 * - 54 + 93, 16 AS col0
----
147
16

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

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

query I rowsort
SELECT + 12 + 22
----
34

query I rowsort
SELECT ALL 52 + - + 30 AS col2
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-2893
SELECT - 79 + - SUM( + 19 ) + - 91 + - - 54 * 1 * - 17
----
-1107

skipif mysql # not compatible
query I rowsort label-2893
SELECT - 79 + - SUM ( + 19 ) + - 91 + - - 54 * 1 * - 17
----
-1107

query I rowsort
SELECT 95 - + 70 AS col1
----
25

query II rowsort
SELECT - + CASE WHEN NULL NOT BETWEEN + 74 AND NULL THEN + 8 + ( + 63 ) * + 32 END AS col2, 9
----
NULL
9

query I rowsort
SELECT - - ( 19 ) AS col2
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-2897
SELECT ALL - 30 + - NULLIF ( - - 61, + + 19 ) + - ( - COUNT( * ) ) * + 44
----
-47

skipif mysql # not compatible
query I rowsort label-2897
SELECT ALL - 30 + - NULLIF ( - - 61, + + 19 ) + - ( - COUNT ( * ) ) * + 44
----
-47

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2898
SELECT ALL + NULLIF ( + 35, - 10 ) * CAST( NULLIF ( - 24, - 22 ) AS SIGNED ) DIV - + 36 + 2 + + 93 col1
----
118

skipif mysql # not compatible
query I rowsort label-2898
SELECT ALL + NULLIF ( + 35, - 10 ) * CAST ( NULLIF ( - 24, - 22 ) AS INTEGER ) / - + 36 + 2 + + 93 col1
----
118

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2899
SELECT ( CASE + + CAST( + 80 AS SIGNED ) WHEN - 97 + - + 41 THEN - 77 * - + 25 - - 44 + + 36 + 36 / 69 + 89 WHEN - 1 * ( + 50 ) * + 37 THEN NULL ELSE NULL END ) + + 19 / + - 61 * 49 * - 18 - - 57 + 86
----
NULL

skipif mysql # not compatible
query I rowsort label-2899
SELECT ( CASE + + CAST ( + 80 AS INTEGER ) WHEN - 97 + - + 41 THEN - 77 * - + 25 - - 44 + + 36 + 36 / 69 + 89 WHEN - 1 * ( + 50 ) * + 37 THEN NULL ELSE NULL END ) + + 19 / + - 61 * 49 * - 18 - - 57 + 86
----
NULL

query I rowsort
SELECT ALL - NULLIF ( - - 78, - - 17 ) - - 69
----
-9

query I rowsort
SELECT ALL + ( - + 42 ) * - + ( + 29 ) + 14
----
1232

query I rowsort
SELECT DISTINCT - COALESCE ( + + 73, - 76 )
----
-73

onlyif mysql # DIV for integer division: 
query I rowsort label-2903
SELECT 85 + - - COALESCE ( 40, 86 * + 12 DIV - 98 DIV - 89 ) - + + 45 DIV 49 * 63
----
125

skipif mysql # not compatible
query I rowsort label-2903
SELECT 85 + - - COALESCE ( 40, 86 * + 12 / - 98 / - 89 ) - + + 45 / 49 * 63
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-2904
SELECT 44 * - COUNT( * ) + - 11
----
-55

skipif mysql # not compatible
query I rowsort label-2904
SELECT 44 * - COUNT ( * ) + - 11
----
-55

onlyif mysql # DIV for integer division: 
query II rowsort label-2905
SELECT ALL ( - ( 83 ) ) DIV - + 21 col2, 82 col0
----
3
82

skipif mysql # not compatible
query II rowsort label-2905
SELECT ALL ( - ( 83 ) ) / - + 21 col2, 82 col0
----
3
82

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2906
SELECT + 31 * + CAST( + 40 AS SIGNED ) + - CASE - 4 WHEN - 60 * - ( - 10 ) THEN 9 ELSE NULL END / - + CAST( NULL AS SIGNED ) AS col2, 87
----
NULL
87

skipif mysql # not compatible
query II rowsort label-2906
SELECT + 31 * + CAST ( + 40 AS INTEGER ) + - CASE - 4 WHEN - 60 * - ( - 10 ) THEN 9 ELSE NULL END / - + CAST ( NULL AS INTEGER ) AS col2, 87
----
NULL
87

query II rowsort
SELECT 85 AS col0, + 37
----
85
37

onlyif mysql # DIV for integer division: 
query I rowsort label-2908
SELECT ALL 13 DIV + 46 * + - 39 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2908
SELECT ALL 13 / + 46 * + - 39 AS col1
----
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2910
SELECT ALL 59 DIV + 89 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2910
SELECT ALL 59 / + 89 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2911
SELECT 83 + COUNT( * )
----
84

skipif mysql # not compatible
query I rowsort label-2911
SELECT 83 + COUNT ( * )
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2912
SELECT CASE + + 20 WHEN + 46 - + COALESCE ( + - 48, - ( + - 88 ), - CAST( NULL AS SIGNED ) ) THEN - 44 END * + - 74 * + 36 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2912
SELECT CASE + + 20 WHEN + 46 - + COALESCE ( + - 48, - ( + - 88 ), - CAST ( NULL AS INTEGER ) ) THEN - 44 END * + - 74 * + 36 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2913
SELECT ALL COUNT( * ) * - COALESCE ( 7, - - CASE 77 WHEN + + COUNT( * ) + + 34 THEN NULL WHEN + 25 + - 33 / - 62 * 61 THEN NULL WHEN - ( + COUNT( * ) ) + + 96 / 75 * + 76 * 60 THEN + - 80 - - 20 END * - 3, + 20 + + 6 ) * + 12 AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-2913
SELECT ALL COUNT ( * ) * - COALESCE ( 7, - - CASE 77 WHEN + + COUNT ( * ) + + 34 THEN NULL WHEN + 25 + - 33 / - 62 * 61 THEN NULL WHEN - ( + COUNT ( * ) ) + + 96 / 75 * + 76 * 60 THEN + - 80 - - 20 END * - 3, + 20 + + 6 ) * + 12 AS col0
----
-84

query I rowsort
SELECT DISTINCT 12 * + + ( 34 ) col0
----
408

onlyif mysql # DIV for integer division: 
query I rowsort label-2915
SELECT ALL - 16 DIV 67 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2915
SELECT ALL - 16 / 67 AS col2
----
0

query I rowsort
SELECT ( + 9 ) * + 96 AS col2
----
864

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2918
SELECT - 3 * + 17 + 87 col1, - 15 * - 33 * 17 - 77 + + 81 + + 42 + COUNT( * ) * - 35 + - - 41 * + ( 77 ) * - + ( + + 83 )
----
36
-253605

skipif mysql # not compatible
query II rowsort label-2918
SELECT - 3 * + 17 + 87 col1, - 15 * - 33 * 17 - 77 + + 81 + + 42 + COUNT ( * ) * - 35 + - - 41 * + ( 77 ) * - + ( + + 83 )
----
36
-253605

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2919
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + + 45 / + + 9 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2919
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + + 45 / + + 9 AS col1
----
NULL

query I rowsort
SELECT ALL + 26 + - 65 - - 12 col1
----
-27

query I rowsort
SELECT ALL ( + 71 ) + - - 50
----
121

query I rowsort
SELECT DISTINCT + 9 + - 26 * 69 AS col0
----
-1785

query I rowsort
SELECT ALL - 54 + + 27 * 55
----
1431

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

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

query I rowsort
SELECT 16 * + 74 AS col0
----
1184

query I rowsort
SELECT 54 * + 14 + 40 * 28
----
1876

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2927
SELECT 61 + - SUM( + 0 ) DIV 68 AS col0
----
61

skipif mysql # not compatible
query I rowsort label-2927
SELECT 61 + - SUM ( + 0 ) / 68 AS col0
----
61

query I rowsort
SELECT 71 + + 65
----
136

query I rowsort
SELECT 42 * + 97 AS col1
----
4074

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

skipif mysql # not compatible
query I rowsort label-2930
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - 82 * 78
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2932
SELECT DISTINCT + 10 - + COUNT( DISTINCT 36 ) * MIN( 24 )
----
-14

skipif mysql # not compatible
query I rowsort label-2932
SELECT DISTINCT + 10 - + COUNT ( DISTINCT 36 ) * MIN ( 24 )
----
-14

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2935
SELECT - 84 - NULLIF ( ( - 27 ), COUNT( * ) ) AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-2935
SELECT - 84 - NULLIF ( ( - 27 ), COUNT ( * ) ) AS col1
----
-57

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

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

query I rowsort
SELECT DISTINCT NULLIF ( 12, 78 ) AS col0
----
12

query I rowsort
SELECT ALL + 92 * + 57
----
5244

query I rowsort
SELECT - ( 19 ) * + 92
----
-1748

query I rowsort
SELECT + 84 + ( + 75 + 78 ) AS col0
----
237

onlyif mysql # aggregate syntax: 
query I rowsort label-2941
SELECT DISTINCT COALESCE ( - 89, 56 ) * + CASE + 70 * 36 WHEN 92 / COUNT( * ) THEN - COUNT( * ) + - 16 ELSE 91 END AS col1
----
-8099

skipif mysql # not compatible
query I rowsort label-2941
SELECT DISTINCT COALESCE ( - 89, 56 ) * + CASE + 70 * 36 WHEN 92 / COUNT ( * ) THEN - COUNT ( * ) + - 16 ELSE 91 END AS col1
----
-8099

query I rowsort
SELECT DISTINCT + 2 * + NULLIF ( 51, 54 ) AS col0
----
102

query I rowsort
SELECT - 48 * 69
----
-3312

query I rowsort
SELECT ALL + NULLIF ( 83, - 49 )
----
83

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

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

query I rowsort
SELECT ALL 68 * 31 + + 33 AS col1
----
2141

onlyif mysql # aggregate syntax: 
query I rowsort label-2947
SELECT DISTINCT + 51 * MAX( DISTINCT + 35 ) + 67
----
1852

skipif mysql # not compatible
query I rowsort label-2947
SELECT DISTINCT + 51 * MAX ( DISTINCT + 35 ) + 67
----
1852

query I rowsort
SELECT + CASE - 18 WHEN - 68 THEN 94 + 70 * 62 WHEN 27 THEN NULL ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT COALESCE ( - 96, + 35 + + 85 ) col0
----
-96

query I rowsort
SELECT ALL + 19 * + 82 + + 49 AS col2
----
1607

onlyif mysql # aggregate syntax: 
query I rowsort label-2951
SELECT COALESCE ( 98, + CASE - 4 WHEN - 92 THEN - 51 * - COUNT( * ) WHEN - 52 THEN NULL WHEN - MAX( + 39 ) THEN NULL END )
----
98

skipif mysql # not compatible
query I rowsort label-2951
SELECT COALESCE ( 98, + CASE - 4 WHEN - 92 THEN - 51 * - COUNT ( * ) WHEN - 52 THEN NULL WHEN - MAX ( + 39 ) THEN NULL END )
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-2952
SELECT + 64 DIV + 31 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-2952
SELECT + 64 / + 31 AS col1
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2953
SELECT + 70 DIV - COALESCE ( 13, 91 * SUM( + ( 94 ) ) )
----
-5

skipif mysql # not compatible
query I rowsort label-2953
SELECT + 70 / - COALESCE ( 13, 91 * SUM ( + ( 94 ) ) )
----
-5

query I rowsort
SELECT + 81 - + 11
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-2955
SELECT ALL + 19 * + MAX( ALL - 30 ) + + 9 AS col0
----
-561

skipif mysql # not compatible
query I rowsort label-2955
SELECT ALL + 19 * + MAX ( ALL - 30 ) + + 9 AS col0
----
-561

onlyif mysql # DIV for integer division: 
query I rowsort label-2956
SELECT + 34 DIV - CASE - 31 WHEN 16 * 43 THEN NULL WHEN - 91 * + 74 THEN NULL ELSE - 4 END AS col1
----
8

skipif mysql # not compatible
query I rowsort label-2956
SELECT + 34 / - CASE - 31 WHEN 16 * 43 THEN NULL WHEN - 91 * + 74 THEN NULL ELSE - 4 END AS col1
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2957
SELECT + NULLIF ( + 79, - COUNT( * ) * + 95 ) AS col0
----
79

skipif mysql # not compatible
query I rowsort label-2957
SELECT + NULLIF ( + 79, - COUNT ( * ) * + 95 ) AS col0
----
79

query I rowsort
SELECT DISTINCT 57 * 38
----
2166

onlyif mysql # DIV for integer division: 
query I rowsort label-2959
SELECT ALL 73 * + 31 + + 63 DIV + 81 AS col1
----
2263

skipif mysql # not compatible
query I rowsort label-2959
SELECT ALL 73 * + 31 + + 63 / + 81 AS col1
----
2263

query I rowsort
SELECT 49 * ( - 37 * ( 44 ) ) + 42
----
-79730

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

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

query I rowsort
SELECT - + 68 * 80
----
-5440

onlyif mysql # aggregate syntax: 
query I rowsort label-2963
SELECT ALL + + 72 * COUNT( * ) - - 28
----
100

skipif mysql # not compatible
query I rowsort label-2963
SELECT ALL + + 72 * COUNT ( * ) - - 28
----
100

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

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

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

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

query I rowsort
SELECT + 83 + + 90 AS col2
----
173

onlyif mysql # aggregate syntax: 
query I rowsort label-2967
SELECT ALL - CASE - 1 WHEN CASE + NULLIF ( + 34, AVG ( 25 ) ) WHEN - 45 THEN 95 * 78 END / ( 58 ) THEN NULL WHEN - 75 THEN NULL WHEN - COUNT( * ) THEN - 87 ELSE NULL END AS col0
----
87

skipif mysql # not compatible
query I rowsort label-2967
SELECT ALL - CASE - 1 WHEN CASE + NULLIF ( + 34, AVG ( 25 ) ) WHEN - 45 THEN 95 * 78 END / ( 58 ) THEN NULL WHEN - 75 THEN NULL WHEN - COUNT ( * ) THEN - 87 ELSE NULL END AS col0
----
87

query I rowsort
SELECT + + 72 * - 27 + + 11
----
-1933

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

skipif mysql # not compatible
query I rowsort label-2969
SELECT DISTINCT 71 / + ( + COUNT ( * ) * + COUNT ( * ) + + 94 ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2970
SELECT ALL CASE SUM( DISTINCT - 0 ) WHEN - 4 * - CASE + CAST( NULL AS SIGNED ) WHEN 47 THEN NULL WHEN - 57 THEN + 83 ELSE ( - 83 ) END - + 9 * + 9 THEN + COUNT( * ) - - 56 WHEN 9 THEN NULL ELSE CAST( NULL AS SIGNED ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2970
SELECT ALL CASE SUM ( DISTINCT - 0 ) WHEN - 4 * - CASE + CAST ( NULL AS INTEGER ) WHEN 47 THEN NULL WHEN - 57 THEN + 83 ELSE ( - 83 ) END - + 9 * + 9 THEN + COUNT ( * ) - - 56 WHEN 9 THEN NULL ELSE CAST ( NULL AS INTEGER ) END AS col0
----
NULL

query I rowsort
SELECT - - 42 * + 98 AS col1
----
4116

onlyif mysql # aggregate syntax: 
query I rowsort label-2972
SELECT DISTINCT - COUNT( DISTINCT 43 )
----
-1

skipif mysql # not compatible
query I rowsort label-2972
SELECT DISTINCT - COUNT ( DISTINCT 43 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2973
SELECT + + 72 + - COALESCE ( COUNT( * ), + 87, - ( 80 ) / + 7 ) * CASE COUNT( * ) WHEN - CASE - NULLIF ( 38, - 74 ) WHEN 28 THEN NULL WHEN - 85 * + 69 THEN NULL ELSE - 73 END * + COUNT( * ) + + 20 THEN CAST( NULL AS SIGNED ) * + 54 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2973
SELECT + + 72 + - COALESCE ( COUNT ( * ), + 87, - ( 80 ) / + 7 ) * CASE COUNT ( * ) WHEN - CASE - NULLIF ( 38, - 74 ) WHEN 28 THEN NULL WHEN - 85 * + 69 THEN NULL ELSE - 73 END * + COUNT ( * ) + + 20 THEN CAST ( NULL AS INTEGER ) * + 54 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2974
SELECT + CASE - NULLIF ( - COUNT( * ), 33 ) WHEN 32 + - 90 THEN + 82 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2974
SELECT + CASE - NULLIF ( - COUNT ( * ), 33 ) WHEN 32 + - 90 THEN + 82 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2975
SELECT - - 92 + - 2 * + CAST( - 3 AS SIGNED ) AS col1
----
98

skipif mysql # not compatible
query I rowsort label-2975
SELECT - - 92 + - 2 * + CAST ( - 3 AS INTEGER ) AS col1
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-2976
SELECT + 86 DIV + 75
----
1

skipif mysql # not compatible
query I rowsort label-2976
SELECT + 86 / + 75
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2977
SELECT DISTINCT - 34 DIV - 70
----
0

skipif mysql # not compatible
query I rowsort label-2977
SELECT DISTINCT - 34 / - 70
----
0

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2979
SELECT - COALESCE ( + + COALESCE ( 2, - COUNT( 64 ) * + CASE + 17 * COUNT( * ) - + 11 WHEN + 97 * + 27 THEN 26 + 59 DIV COUNT( ALL + 76 ) ELSE NULL END + + 29 ), - 69 ) * - 70
----
140

skipif mysql # not compatible
query I rowsort label-2979
SELECT - COALESCE ( + + COALESCE ( 2, - COUNT ( 64 ) * + CASE + 17 * COUNT ( * ) - + 11 WHEN + 97 * + 27 THEN 26 + 59 / COUNT ( ALL + 76 ) ELSE NULL END + + 29 ), - 69 ) * - 70
----
140

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2981
SELECT DISTINCT + 43 DIV 55
----
0

skipif mysql # not compatible
query I rowsort label-2981
SELECT DISTINCT + 43 / 55
----
0

query I rowsort
SELECT ALL - 89 + 65 * + 0
----
-89

query I rowsort
SELECT - COALESCE ( - - 81, + 37, + 72 * 83 ) + 94 AS col2
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2984
SELECT DISTINCT + 16 + COALESCE ( 17, COUNT( * ) DIV - 42 + + 46 )
----
33

skipif mysql # not compatible
query I rowsort label-2984
SELECT DISTINCT + 16 + COALESCE ( 17, COUNT ( * ) / - 42 + + 46 )
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2985
SELECT CAST( NULL AS SIGNED ) * - 33 + + 39 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2985
SELECT CAST ( NULL AS INTEGER ) * - 33 + + 39 AS col1
----
NULL

query I rowsort
SELECT - 94 * - + 94 * 49 AS col2
----
432964

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2988
SELECT DISTINCT - 44 * - - MAX( - NULLIF ( 77, - 85 + + 72 ) ) col2
----
3388

skipif mysql # not compatible
query I rowsort label-2988
SELECT DISTINCT - 44 * - - MAX ( - NULLIF ( 77, - 85 + + 72 ) ) col2
----
3388

onlyif mysql # DIV for integer division: 
query I rowsort label-2989
SELECT ALL + 75 DIV 74 + 49 AS col1
----
50

skipif mysql # not compatible
query I rowsort label-2989
SELECT ALL + 75 / 74 + 49 AS col1
----
50

query I rowsort
SELECT - 69 * 39 * - 12 + - 88 AS col1
----
32204

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2991
SELECT ALL - CASE - 90 WHEN 74 * 71 + - 70 THEN NULL ELSE - COUNT( ( 30 ) ) * COALESCE ( - 73 DIV 80, SUM( DISTINCT + 27 ) * - 84, 80 DIV - 22 ) END DIV + 41 + + 29 DIV - 1
----
-29

skipif mysql # not compatible
query I rowsort label-2991
SELECT ALL - CASE - 90 WHEN 74 * 71 + - 70 THEN NULL ELSE - COUNT ( ( 30 ) ) * COALESCE ( - 73 / 80, SUM ( DISTINCT + 27 ) * - 84, 80 / - 22 ) END / + 41 + + 29 / - 1
----
-29

query I rowsort
SELECT 63 * + 37 + 49
----
2380

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2993
SELECT ALL - 98 DIV 81 + CASE - 19 + + 47 * + 84 WHEN + 29 - - 48 * 96 THEN NULL ELSE CAST( 0 AS SIGNED ) END * - 6
----
-1

skipif mysql # not compatible
query I rowsort label-2993
SELECT ALL - 98 / 81 + CASE - 19 + + 47 * + 84 WHEN + 29 - - 48 * 96 THEN NULL ELSE CAST ( 0 AS INTEGER ) END * - 6
----
-1

query I rowsort
SELECT - 22 * - - 97 AS col1
----
-2134

query I rowsort
SELECT + 28 * - 82 * + ( + 75 * 48 )
----
-8265600

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

skipif mysql # not compatible
query I rowsort label-2996
SELECT ALL + CAST ( 49 AS INTEGER )
----
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2997
SELECT DISTINCT + 65 DIV + COUNT( * ) - 29 * - 40
----
1225

skipif mysql # not compatible
query I rowsort label-2997
SELECT DISTINCT + 65 / + COUNT ( * ) - 29 * - 40
----
1225

onlyif mysql # DIV for integer division: 
query I rowsort label-2998
SELECT + 1 + - 53 + - 59 DIV - 62
----
-52

skipif mysql # not compatible
query I rowsort label-2998
SELECT + 1 + - 53 + - 59 / - 62
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-2999
SELECT ALL + + 94 * + SUM( 33 ) - + SUM( DISTINCT 86 )
----
3016

skipif mysql # not compatible
query I rowsort label-2999
SELECT ALL + + 94 * + SUM ( 33 ) - + SUM ( DISTINCT 86 )
----
3016

onlyif mysql # aggregate syntax: 
query I rowsort label-3000
SELECT - - COUNT( + - 91 ) * + 80
----
80

skipif mysql # not compatible
query I rowsort label-3000
SELECT - - COUNT ( + - 91 ) * + 80
----
80

query I rowsort
SELECT DISTINCT + ( - 40 ) * 2 col1
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-3002
SELECT ALL - COUNT( * ) * 35 * - 32 - 35 * 56 AS col1
----
-840

skipif mysql # not compatible
query I rowsort label-3002
SELECT ALL - COUNT ( * ) * 35 * - 32 - 35 * 56 AS col1
----
-840

query I rowsort
SELECT DISTINCT - NULLIF ( - 15, 13 ) * 78 - + 15
----
1155

query I rowsort
SELECT + + 20 * + + 60
----
1200

onlyif mysql # aggregate syntax: 
query I rowsort label-3005
SELECT - CASE COUNT( * ) WHEN 24 THEN NULL ELSE 38 + - 1 END
----
-37

skipif mysql # not compatible
query I rowsort label-3005
SELECT - CASE COUNT ( * ) WHEN 24 THEN NULL ELSE 38 + - 1 END
----
-37

query I rowsort
SELECT ALL 60 * 60 - - 27 AS col2
----
3627

query I rowsort
SELECT ALL + 82 * 55 + 69
----
4579

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3008
SELECT - 57 * - - CAST( 55 AS SIGNED )
----
-3135

skipif mysql # not compatible
query I rowsort label-3008
SELECT - 57 * - - CAST ( 55 AS INTEGER )
----
-3135

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3009
SELECT - CAST( NULL AS SIGNED ) + ( - 25 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3009
SELECT - CAST ( NULL AS INTEGER ) + ( - 25 ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT COALESCE ( 68, - 38 ) AS col1
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3011
SELECT CAST( + + 37 AS SIGNED ) + - 23 AS col2
----
14

skipif mysql # not compatible
query I rowsort label-3011
SELECT CAST ( + + 37 AS INTEGER ) + - 23 AS col2
----
14

query I rowsort
SELECT + 6 + - ( 72 )
----
-66

query I rowsort
SELECT ALL - 30 * + 64 * + - 9 AS col0
----
17280

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3014
SELECT NULLIF ( - - CAST( + + 51 AS SIGNED ), - 66 * 64 ) DIV + 63 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3014
SELECT NULLIF ( - - CAST ( + + 51 AS INTEGER ), - 66 * 64 ) / + 63 AS col2
----
0

query II rowsort
SELECT - 2 AS col1, 7 AS col1
----
-2
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3016
SELECT 18 + MIN( 51 )
----
69

skipif mysql # not compatible
query I rowsort label-3016
SELECT 18 + MIN ( 51 )
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-3017
SELECT DISTINCT 24 + 44 * - 6 + MAX( 22 )
----
-218

skipif mysql # not compatible
query I rowsort label-3017
SELECT DISTINCT 24 + 44 * - 6 + MAX ( 22 )
----
-218

onlyif mysql # aggregate syntax: 
query I rowsort label-3018
SELECT ALL MAX( 49 ) * 64 * - 22 col0
----
-68992

skipif mysql # not compatible
query I rowsort label-3018
SELECT ALL MAX ( 49 ) * 64 * - 22 col0
----
-68992

onlyif mysql # aggregate syntax: 
query I rowsort label-3019
SELECT 27 + + - COUNT( 57 ) * 44 AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-3019
SELECT 27 + + - COUNT ( 57 ) * 44 AS col2
----
-17

query II rowsort
SELECT DISTINCT 15, - 24 + 50 AS col0
----
15
26

onlyif mysql # DIV for integer division: 
query I rowsort label-3021
SELECT 17 DIV + 56
----
0

skipif mysql # not compatible
query I rowsort label-3021
SELECT 17 / + 56
----
0

query I rowsort
SELECT 20 - + + 29
----
-9

query I rowsort
SELECT ALL + 95 / - CASE + + 54 WHEN + 81 + 5 * + 97 THEN + ( - 73 ) / + 27 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3024
SELECT 42 DIV 30 * - 81 AS col2
----
-81

skipif mysql # not compatible
query I rowsort label-3024
SELECT 42 / 30 * - 81 AS col2
----
-81

query II rowsort
SELECT + 34, - COALESCE ( + + 87, 92 - 36 ) AS col2
----
34
-87

query I rowsort
SELECT 52 * - 27
----
-1404

query II rowsort
SELECT + 89 col1, + 78
----
89
78

onlyif mysql # aggregate syntax: 
query II rowsort label-3028
SELECT 11 AS col0, - COUNT( * )
----
11
-1

skipif mysql # not compatible
query II rowsort label-3028
SELECT 11 AS col0, - COUNT ( * )
----
11
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-3029
SELECT + + 72, COUNT( * ) AS col0
----
72
1

skipif mysql # not compatible
query II rowsort label-3029
SELECT + + 72, COUNT ( * ) AS col0
----
72
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3030
SELECT ALL - COUNT( * ) * - COALESCE ( + - 81, 30 )
----
-81

skipif mysql # not compatible
query I rowsort label-3030
SELECT ALL - COUNT ( * ) * - COALESCE ( + - 81, 30 )
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3031
SELECT + 38 - - + CASE - 6 WHEN - ( 94 ) / + 75 THEN + 64 WHEN 38 * 54 THEN - 57 WHEN ( CAST( NULL AS SIGNED ) ) * MAX( DISTINCT + NULLIF ( + 92, - 14 ) ) THEN - 53 * 85 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3031
SELECT + 38 - - + CASE - 6 WHEN - ( 94 ) / + 75 THEN + 64 WHEN 38 * 54 THEN - 57 WHEN ( CAST ( NULL AS INTEGER ) ) * MAX ( DISTINCT + NULLIF ( + 92, - 14 ) ) THEN - 53 * 85 END
----
NULL

query I rowsort
SELECT ALL - ( - 14 ) AS col2
----
14

query I rowsort
SELECT ALL - ( 55 )
----
-55

query I rowsort
SELECT DISTINCT + 2 * 25 AS col1
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3035
SELECT ALL - - ( + CAST( 95 AS SIGNED ) ) AS col0
----
95

skipif mysql # not compatible
query I rowsort label-3035
SELECT ALL - - ( + CAST ( 95 AS INTEGER ) ) AS col0
----
95

query I rowsort
SELECT 26 * + 41 * + 44 + - 18
----
46886

query I rowsort
SELECT 5 * - - ( 10 ) + + 41
----
91

query II rowsort
SELECT - 34 AS col2, 66 * + + 81 AS col0
----
-34
5346

onlyif mysql # aggregate syntax: 
query I rowsort label-3039
SELECT - 2 - + - MAX( DISTINCT + 90 ) + 48
----
136

skipif mysql # not compatible
query I rowsort label-3039
SELECT - 2 - + - MAX ( DISTINCT + 90 ) + 48
----
136

query I rowsort
SELECT ALL - + ( + 64 ) AS col0
----
-64

query I rowsort
SELECT - 46 + 35
----
-11

query I rowsort
SELECT + - ( 81 )
----
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3043
SELECT DISTINCT MAX( ALL - 29 ) + 61 + 88 DIV 23
----
35

skipif mysql # not compatible
query I rowsort label-3043
SELECT DISTINCT MAX ( ALL - 29 ) + 61 + 88 / 23
----
35

query II rowsort
SELECT ALL + 41, - 37 col2
----
41
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-3045
SELECT ALL - 95 + + COUNT( * )
----
-94

skipif mysql # not compatible
query I rowsort label-3045
SELECT ALL - 95 + + COUNT ( * )
----
-94

query I rowsort
SELECT COALESCE ( - + 17, + + 35, + 77 - + 53 ) + - 89 AS col2
----
-106

query I rowsort
SELECT DISTINCT + - 38 * - 74 AS col1
----
2812

onlyif mysql # aggregate syntax: 
query I rowsort label-3048
SELECT DISTINCT - 68 + COUNT( * )
----
-67

skipif mysql # not compatible
query I rowsort label-3048
SELECT DISTINCT - 68 + COUNT ( * )
----
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3049
SELECT DISTINCT COUNT( * ) * 76 DIV - + COUNT( * )
----
-76

skipif mysql # not compatible
query I rowsort label-3049
SELECT DISTINCT COUNT ( * ) * 76 / - + COUNT ( * )
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-3050
SELECT 82 * - COUNT( * ) AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-3050
SELECT 82 * - COUNT ( * ) AS col2
----
-82

query I rowsort
SELECT COALESCE ( - 50, 64 ) + + 15 * - 13
----
-245

onlyif mysql # aggregate syntax: 
query I rowsort label-3052
SELECT ALL MAX( - 87 ) + - + 40
----
-127

skipif mysql # not compatible
query I rowsort label-3052
SELECT ALL MAX ( - 87 ) + - + 40
----
-127

query I rowsort
SELECT ALL 35 + - 2 + 22 * - 50
----
-1067

onlyif mysql # aggregate syntax: 
query I rowsort label-3054
SELECT NULLIF ( 4, 36 ) + + - COALESCE ( COUNT( * ), 52 ) + 64
----
67

skipif mysql # not compatible
query I rowsort label-3054
SELECT NULLIF ( 4, 36 ) + + - COALESCE ( COUNT ( * ), 52 ) + 64
----
67

query I rowsort
SELECT ALL ( - 53 ) * + 30
----
-1590

onlyif mysql # aggregate syntax: 
query I rowsort label-3056
SELECT - MAX( - COALESCE ( - + 26, 13 ) ) col2
----
-26

skipif mysql # not compatible
query I rowsort label-3056
SELECT - MAX ( - COALESCE ( - + 26, 13 ) ) col2
----
-26

onlyif mysql # DIV for integer division: 
query II rowsort label-3057
SELECT 7 + - 78 col0, COALESCE ( - + 16, 29 DIV 39, - 57 ) AS col1
----
-71
-16

skipif mysql # not compatible
query II rowsort label-3057
SELECT 7 + - 78 col0, COALESCE ( - + 16, 29 / 39, - 57 ) AS col1
----
-71
-16

query I rowsort
SELECT 43 - - - 87
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3059
SELECT CAST( NULL AS SIGNED ) * 10
----
NULL

skipif mysql # not compatible
query I rowsort label-3059
SELECT CAST ( NULL AS INTEGER ) * 10
----
NULL

query I rowsort
SELECT COALESCE ( - 8, 11 ) + + + 54 col2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3061
SELECT 52 - + SUM( 71 ) + COUNT( * ) AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-3061
SELECT 52 - + SUM ( 71 ) + COUNT ( * ) AS col2
----
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3062
SELECT 0 DIV - COUNT( * ) + + 53 - + 94 DIV + 1 AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-3062
SELECT 0 / - COUNT ( * ) + + 53 - + 94 / + 1 AS col2
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3063
SELECT 71 * - 64 / CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3063
SELECT 71 * - 64 / CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL - COALESCE ( - 10, 7 )
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3065
SELECT - 11 DIV 24 + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-3065
SELECT - 11 / 24 + COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3066
SELECT ALL ( + - 46 ) * + 37 * + + COUNT( * ) * + 81 AS col2
----
-137862

skipif mysql # not compatible
query I rowsort label-3066
SELECT ALL ( + - 46 ) * + 37 * + + COUNT ( * ) * + 81 AS col2
----
-137862

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3067
SELECT ALL + - 57 DIV - + COUNT( * ) + + + 16 * + + 53 + 97
----
1002

skipif mysql # not compatible
query I rowsort label-3067
SELECT ALL + - 57 / - + COUNT ( * ) + + + 16 * + + 53 + 97
----
1002

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-3068
SELECT + + 10 * 58 * + + COUNT( * ) DIV COUNT( * ) * CASE + 47 WHEN + COALESCE ( 90, NULLIF ( - 2, - 17 ) * + COUNT( * ), COUNT( * ) * 27 ) * 68 + + COUNT( * ) DIV - 29 THEN NULL WHEN 42 + 83 THEN NULL WHEN - CAST( - 52 AS DECIMAL ) THEN NULL ELSE 10 END + 63 + - ( + COUNT( * ) )
----
5862

skipif mysql # not compatible
query I rowsort label-3068
SELECT + + 10 * 58 * + + COUNT ( * ) / COUNT ( * ) * CASE + 47 WHEN + COALESCE ( 90, NULLIF ( - 2, - 17 ) * + COUNT ( * ), COUNT ( * ) * 27 ) * 68 + + COUNT ( * ) / - 29 THEN NULL WHEN 42 + 83 THEN NULL WHEN - CAST ( - 52 AS REAL ) THEN NULL ELSE 10 END + 63 + - ( + COUNT ( * ) )
----
5862

onlyif mysql # DIV for integer division: 
query I rowsort label-3069
SELECT + + 43 DIV + 33
----
1

skipif mysql # not compatible
query I rowsort label-3069
SELECT + + 43 / + 33
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-3070
SELECT + + 85 * + + 76, + 23 DIV ( 16 ) AS col2
----
6460
1

skipif mysql # not compatible
query II rowsort label-3070
SELECT + + 85 * + + 76, + 23 / ( 16 ) AS col2
----
6460
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3071
SELECT - + SUM( + 58 ) + COUNT( * ) + + COUNT( * ) * + COUNT( 31 ) AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-3071
SELECT - + SUM ( + 58 ) + COUNT ( * ) + + COUNT ( * ) * + COUNT ( 31 ) AS col1
----
-56

query I rowsort
SELECT - 8 * - 50
----
400

onlyif mysql # aggregate syntax: 
query I rowsort label-3073
SELECT DISTINCT COALESCE ( 70, + COUNT( * ) ) * + ( 73 ) + - 62 AS col1
----
5048

skipif mysql # not compatible
query I rowsort label-3073
SELECT DISTINCT COALESCE ( 70, + COUNT ( * ) ) * + ( 73 ) + - 62 AS col1
----
5048

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3074
SELECT ALL CAST( + - COUNT( * ) AS SIGNED ) * - 31 + + + 57 AS col1
----
88

skipif mysql # not compatible
query I rowsort label-3074
SELECT ALL CAST ( + - COUNT ( * ) AS INTEGER ) * - 31 + + + 57 AS col1
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-3075
SELECT DISTINCT + - COUNT( * ) * + 56 AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-3075
SELECT DISTINCT + - COUNT ( * ) * + 56 AS col1
----
-56

query I rowsort
SELECT ALL 86 * - 26 + - 42 - + 12 AS col1
----
-2290

onlyif mysql # aggregate syntax: 
query I rowsort label-3077
SELECT DISTINCT + 9 * 39 + - MIN( - 84 ) - + 92
----
343

skipif mysql # not compatible
query I rowsort label-3077
SELECT DISTINCT + 9 * 39 + - MIN ( - 84 ) - + 92
----
343

query I rowsort
SELECT ALL - - 73 + + + CASE 12 WHEN 93 THEN NULL WHEN + ( 51 ) * + 80 THEN ( 46 ) + + 78 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3079
SELECT - 93 * + 61 + + CASE - 58 WHEN ( + 87 ) THEN - 23 * + 69 - + CASE - 45 WHEN + 80 THEN NULL ELSE CAST( - SUM( + 47 ) AS SIGNED ) * + 75 END WHEN 9 * 45 + ( 32 - + 55 ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3079
SELECT - 93 * + 61 + + CASE - 58 WHEN ( + 87 ) THEN - 23 * + 69 - + CASE - 45 WHEN + 80 THEN NULL ELSE CAST ( - SUM ( + 47 ) AS INTEGER ) * + 75 END WHEN 9 * 45 + ( 32 - + 55 ) THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT - NULLIF ( 5, 14 ) AS col1
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3081
SELECT 20, CASE 89 WHEN - 54 + - ( + 5 ) + + 33 * - ( + AVG ( ALL 11 ) + - 94 * 44 ) THEN 13 WHEN - 54 * - SUM( + 68 * - 26 ) + - CAST( NULL AS SIGNED ) THEN + 58 WHEN 88 * COALESCE ( 27, 66 + - ( CAST( NULL AS SIGNED ) ), 55 + + 12 ) - - 4 * 15 THEN NULL END * - 74 col1
----
20
NULL

skipif mysql # not compatible
query II rowsort label-3081
SELECT 20, CASE 89 WHEN - 54 + - ( + 5 ) + + 33 * - ( + AVG ( ALL 11 ) + - 94 * 44 ) THEN 13 WHEN - 54 * - SUM ( + 68 * - 26 ) + - CAST ( NULL AS INTEGER ) THEN + 58 WHEN 88 * COALESCE ( 27, 66 + - ( CAST ( NULL AS INTEGER ) ), 55 + + 12 ) - - 4 * 15 THEN NULL END * - 74 col1
----
20
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3082
SELECT DISTINCT - 57 + + COUNT( * )
----
-56

skipif mysql # not compatible
query I rowsort label-3082
SELECT DISTINCT - 57 + + COUNT ( * )
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-3083
SELECT ALL COUNT( * ) - 12 * + - 73 + - 29
----
848

skipif mysql # not compatible
query I rowsort label-3083
SELECT ALL COUNT ( * ) - 12 * + - 73 + - 29
----
848

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3084
SELECT DISTINCT 94 * + ( + COALESCE ( - - CAST( - + 70 AS SIGNED ), 97 * - 48 + - 59, + SUM( DISTINCT + 28 ) ) )
----
-6580

skipif mysql # not compatible
query I rowsort label-3084
SELECT DISTINCT 94 * + ( + COALESCE ( - - CAST ( - + 70 AS INTEGER ), 97 * - 48 + - 59, + SUM ( DISTINCT + 28 ) ) )
----
-6580

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3085
SELECT DISTINCT - 12 DIV - + COUNT( * )
----
12

skipif mysql # not compatible
query I rowsort label-3085
SELECT DISTINCT - 12 / - + COUNT ( * )
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-3086
SELECT - 18 DIV 36 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3086
SELECT - 18 / 36 AS col1
----
0

query I rowsort
SELECT ALL 29 * - - 93
----
2697

query I rowsort
SELECT + 35 + - 36
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-3089
SELECT ALL + 40 - + MIN( ALL - 48 ) AS col1, 75 + + COUNT( * )
----
88
76

skipif mysql # not compatible
query II rowsort label-3089
SELECT ALL + 40 - + MIN ( ALL - 48 ) AS col1, 75 + + COUNT ( * )
----
88
76

onlyif mysql # aggregate syntax: 
query II rowsort label-3090
SELECT - 82 + + - 84 + - 22 AS col1, 86 * - - COUNT( DISTINCT 47 )
----
-188
86

skipif mysql # not compatible
query II rowsort label-3090
SELECT - 82 + + - 84 + - 22 AS col1, 86 * - - COUNT ( DISTINCT 47 )
----
-188
86

query I rowsort
SELECT + 88 * - 88 AS col1
----
-7744

onlyif mysql # aggregate syntax: 
query I rowsort label-3092
SELECT + 5 + ( + COUNT( DISTINCT + NULLIF ( - 76, 61 ) ) ) col1
----
6

skipif mysql # not compatible
query I rowsort label-3092
SELECT + 5 + ( + COUNT ( DISTINCT + NULLIF ( - 76, 61 ) ) ) col1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3093
SELECT + MIN( DISTINCT 20 ) * COUNT( * )
----
20

skipif mysql # not compatible
query I rowsort label-3093
SELECT + MIN ( DISTINCT 20 ) * COUNT ( * )
----
20

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3094
SELECT DISTINCT CAST( NULL AS DECIMAL ) AS col0, + 68 col2
----
NULL
68

skipif mysql # not compatible
query II rowsort label-3094
SELECT DISTINCT CAST ( NULL AS REAL ) AS col0, + 68 col2
----
NULL
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3095
SELECT - MAX( + - 43 )
----
43

skipif mysql # not compatible
query I rowsort label-3095
SELECT - MAX ( + - 43 )
----
43

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3096
SELECT ALL + CASE - - 33 WHEN + - CAST( + 44 AS DECIMAL ) / - COUNT( + 95 ) + + 67 THEN NULL ELSE 50 + + 1 END
----
51

skipif mysql # not compatible
query I rowsort label-3096
SELECT ALL + CASE - - 33 WHEN + - CAST ( + 44 AS REAL ) / - COUNT ( + 95 ) + + 67 THEN NULL ELSE 50 + + 1 END
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3097
SELECT + - MAX( - 64 ) * - 60
----
-3840

skipif mysql # not compatible
query I rowsort label-3097
SELECT + - MAX ( - 64 ) * - 60
----
-3840

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3098
SELECT - + 34 * 46 - - ( - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3098
SELECT - + 34 * 46 - - ( - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3099
SELECT ALL - 84 DIV 92 * + + COUNT( * ) + - + 62
----
-62

skipif mysql # not compatible
query I rowsort label-3099
SELECT ALL - 84 / 92 * + + COUNT ( * ) + - + 62
----
-62

query I rowsort
SELECT + - 14 * 8
----
-112

query I rowsort
SELECT - 84 * 70
----
-5880

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3102
SELECT ALL 13 DIV COUNT( ALL + 34 ) + - 63 * - COUNT( * ) + CAST( 21 AS SIGNED )
----
97

skipif mysql # not compatible
query I rowsort label-3102
SELECT ALL 13 / COUNT ( ALL + 34 ) + - 63 * - COUNT ( * ) + CAST ( 21 AS INTEGER )
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3103
SELECT + COUNT( - - 75 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3103
SELECT + COUNT ( - - 75 ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3104
SELECT ALL + 98 * - COUNT( ALL - + 82 ) + CASE - + 51 WHEN 35 THEN NULL WHEN 60 + - ( CAST( NULL AS SIGNED ) ) THEN - 99 * 87 END * - ( - 61 / - 44 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3104
SELECT ALL + 98 * - COUNT ( ALL - + 82 ) + CASE - + 51 WHEN 35 THEN NULL WHEN 60 + - ( CAST ( NULL AS INTEGER ) ) THEN - 99 * 87 END * - ( - 61 / - 44 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3105
SELECT DISTINCT 84 * 77 + - COUNT( * ) + 36 * + 84 * + 92 + - 92 col1
----
284583

skipif mysql # not compatible
query I rowsort label-3105
SELECT DISTINCT 84 * 77 + - COUNT ( * ) + 36 * + 84 * + 92 + - 92 col1
----
284583

onlyif mysql # aggregate syntax: 
query I rowsort label-3106
SELECT + NULLIF ( + + 9, - 40 - - 37 + COUNT( * ) / 66 ) AS col0
----
9

skipif mysql # not compatible
query I rowsort label-3106
SELECT + NULLIF ( + + 9, - 40 - - 37 + COUNT ( * ) / 66 ) AS col0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3107
SELECT DISTINCT + - MAX( - 17 ) * - - 89 + 31 AS col1
----
1544

skipif mysql # not compatible
query I rowsort label-3107
SELECT DISTINCT + - MAX ( - 17 ) * - - 89 + 31 AS col1
----
1544

onlyif mysql # aggregate syntax: 
query II rowsort label-3108
SELECT SUM( DISTINCT ( - 98 ) ) AS col2, 77 * + - 8 AS col1
----
-98
-616

skipif mysql # not compatible
query II rowsort label-3108
SELECT SUM ( DISTINCT ( - 98 ) ) AS col2, 77 * + - 8 AS col1
----
-98
-616

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3109
SELECT + 38 * CASE + 70 WHEN + MIN( - + 56 ) / COUNT( * ) THEN NULL WHEN CAST( - ( 73 ) AS SIGNED ) THEN - CAST( + 46 AS SIGNED ) + ( 9 + - 24 ) ELSE NULL END + - 32 + - ( - MIN( DISTINCT 78 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3109
SELECT + 38 * CASE + 70 WHEN + MIN ( - + 56 ) / COUNT ( * ) THEN NULL WHEN CAST ( - ( 73 ) AS INTEGER ) THEN - CAST ( + 46 AS INTEGER ) + ( 9 + - 24 ) ELSE NULL END + - 32 + - ( - MIN ( DISTINCT 78 ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3110
SELECT - - 82 * 52 + ( - + 89 ) * - 39 + NULLIF ( + 50, - CAST( NULL AS SIGNED ) * + COUNT( * ) ) AS col1
----
7785

skipif mysql # not compatible
query I rowsort label-3110
SELECT - - 82 * 52 + ( - + 89 ) * - 39 + NULLIF ( + 50, - CAST ( NULL AS INTEGER ) * + COUNT ( * ) ) AS col1
----
7785

onlyif mysql # DIV for integer division: 
query I rowsort label-3111
SELECT ALL 56 DIV - + 96 + - - 3 + - 80 + 54
----
-23

skipif mysql # not compatible
query I rowsort label-3111
SELECT ALL 56 / - + 96 + - - 3 + - 80 + 54
----
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-3112
SELECT ALL + 63 AS col1, - COUNT( * ) * + + 0 * - - COUNT( * ) AS col1
----
63
0

skipif mysql # not compatible
query II rowsort label-3112
SELECT ALL + 63 AS col1, - COUNT ( * ) * + + 0 * - - COUNT ( * ) AS col1
----
63
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3113
SELECT ALL + 15 * 76 * + 82 - - COUNT( * )
----
93481

skipif mysql # not compatible
query I rowsort label-3113
SELECT ALL + 15 * 76 * + 82 - - COUNT ( * )
----
93481

onlyif mysql # DIV for integer division: 
query I rowsort label-3114
SELECT ALL - 65 * + + 84 * - 39 - + 75 DIV + 33
----
212938

skipif mysql # not compatible
query I rowsort label-3114
SELECT ALL - 65 * + + 84 * - 39 - + 75 / + 33
----
212938

onlyif mysql # aggregate syntax: 
query I rowsort label-3115
SELECT - 42 + - + COUNT( * ) AS col2
----
-43

skipif mysql # not compatible
query I rowsort label-3115
SELECT - 42 + - + COUNT ( * ) AS col2
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-3116
SELECT ALL + CASE WHEN 49 IS NOT NULL THEN NULL ELSE + - COUNT( * ) END * - COUNT( ALL + + 68 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3116
SELECT ALL + CASE WHEN 49 IS NOT NULL THEN NULL ELSE + - COUNT ( * ) END * - COUNT ( ALL + + 68 ) col0
----
NULL

query II rowsort
SELECT NULLIF ( + - 33, + - 75 * 59 ) AS col2, - 60 + - 50 + 32 * + 22
----
-33
594

query II rowsort
SELECT DISTINCT 65 * 14, + ( - - 21 ) AS col0
----
910
21

onlyif mysql # aggregate syntax: 
query I rowsort label-3119
SELECT ALL - 88 * + COUNT( * ) - + 62 AS col0
----
-150

skipif mysql # not compatible
query I rowsort label-3119
SELECT ALL - 88 * + COUNT ( * ) - + 62 AS col0
----
-150

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3120
SELECT DISTINCT CASE 91 WHEN 15 THEN + - 57 - - CAST( - 40 AS DECIMAL ) / + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3120
SELECT DISTINCT CASE 91 WHEN 15 THEN + - 57 - - CAST ( - 40 AS REAL ) / + COUNT ( * ) END
----
NULL

query I rowsort
SELECT + 23 + 59 AS col2
----
82

onlyif mysql # aggregate syntax: 
query II rowsort label-3122
SELECT COUNT( * ) AS col2, + 13
----
1
13

skipif mysql # not compatible
query II rowsort label-3122
SELECT COUNT ( * ) AS col2, + 13
----
1
13

onlyif mysql # aggregate syntax: 
query II rowsort label-3123
SELECT COUNT( * ) AS col1, 88 * 58 * - + 14
----
1
-71456

skipif mysql # not compatible
query II rowsort label-3123
SELECT COUNT ( * ) AS col1, 88 * 58 * - + 14
----
1
-71456

query I rowsort
SELECT - 64 + 69 AS col0
----
5

query I rowsort
SELECT - 82 * 96 col0
----
-7872

onlyif mysql # aggregate syntax: 
query I rowsort label-3126
SELECT + NULLIF ( - - 38, + COUNT( * ) * + - 37 ) + - 44
----
-6

skipif mysql # not compatible
query I rowsort label-3126
SELECT + NULLIF ( - - 38, + COUNT ( * ) * + - 37 ) + - 44
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3127
SELECT ALL CAST( MIN( ALL + 58 ) AS SIGNED ) AS col2
----
58

skipif mysql # not compatible
query I rowsort label-3127
SELECT ALL CAST ( MIN ( ALL + 58 ) AS INTEGER ) AS col2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3128
SELECT ALL CASE COUNT( * ) WHEN + + 26 / + + SUM( 66 ) THEN + 61 + + 74 WHEN - 2 THEN COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3128
SELECT ALL CASE COUNT ( * ) WHEN + + 26 / + + SUM ( 66 ) THEN + 61 + + 74 WHEN - 2 THEN COUNT ( * ) ELSE NULL END
----
NULL

query I rowsort
SELECT ALL 40 * + ( + + 40 ) AS col2
----
1600

query I rowsort
SELECT - 46 + + - 71
----
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-3131
SELECT DISTINCT 75 + - 37 + + ( - MAX( DISTINCT - 26 ) ) * + COALESCE ( 7, 23 * COUNT( * ) ) + + 37 AS col1
----
257

skipif mysql # not compatible
query I rowsort label-3131
SELECT DISTINCT 75 + - 37 + + ( - MAX ( DISTINCT - 26 ) ) * + COALESCE ( 7, 23 * COUNT ( * ) ) + + 37 AS col1
----
257

onlyif mysql # aggregate syntax: 
query II rowsort label-3132
SELECT ALL - 46 * - 0, - COALESCE ( ( + COUNT( * ) ), - 20 ) col0
----
0
-1

skipif mysql # not compatible
query II rowsort label-3132
SELECT ALL - 46 * - 0, - COALESCE ( ( + COUNT ( * ) ), - 20 ) col0
----
0
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3133
SELECT 34 + + - CAST( NULL AS SIGNED ) / + + 36 / + 85 * COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3133
SELECT 34 + + - CAST ( NULL AS INTEGER ) / + + 36 / + 85 * COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3134
SELECT - 41 - + COUNT( * ) * 66 DIV - 30 AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-3134
SELECT - 41 - + COUNT ( * ) * 66 / - 30 AS col2
----
-39

onlyif mysql # aggregate syntax: 
query II rowsort label-3135
SELECT + 18 AS col2, COUNT( * ) * + 52 + + + 51 * 44 * + - 2 * COUNT( * )
----
18
-4436

skipif mysql # not compatible
query II rowsort label-3135
SELECT + 18 AS col2, COUNT ( * ) * + 52 + + + 51 * 44 * + - 2 * COUNT ( * )
----
18
-4436

query I rowsort
SELECT ALL + 24 + + - 55 + + 89 * + 30 * - 86 col1
----
-229651

query I rowsort
SELECT 80 + + - 26 + + ( - - 60 ) + + 77 * 70 * + 80
----
431314

onlyif mysql # aggregate syntax: 
query I rowsort label-3138
SELECT 24 - - + COALESCE ( - COUNT( * ), - + COUNT( * ), 72 ) AS col1
----
23

skipif mysql # not compatible
query I rowsort label-3138
SELECT 24 - - + COALESCE ( - COUNT ( * ), - + COUNT ( * ), 72 ) AS col1
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-3139
SELECT - 98 DIV - 46 + - 92 AS col2
----
-90

skipif mysql # not compatible
query I rowsort label-3139
SELECT - 98 / - 46 + - 92 AS col2
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-3140
SELECT 70 DIV - 27 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-3140
SELECT 70 / - 27 AS col1
----
-2

query I rowsort
SELECT ALL 38 + - + 20
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-3142
SELECT ALL - 83 + 4 * + + COUNT( * )
----
-79

skipif mysql # not compatible
query I rowsort label-3142
SELECT ALL - 83 + 4 * + + COUNT ( * )
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-3143
SELECT ALL + 72 + + 61 + - + 12 + + SUM( - 50 ) - COUNT( * ) + - COUNT( * ) AS col0
----
69

skipif mysql # not compatible
query I rowsort label-3143
SELECT ALL + 72 + + 61 + - + 12 + + SUM ( - 50 ) - COUNT ( * ) + - COUNT ( * ) AS col0
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3144
SELECT ALL CAST( + 17 AS SIGNED ) + + 25
----
42

skipif mysql # not compatible
query I rowsort label-3144
SELECT ALL CAST ( + 17 AS INTEGER ) + + 25
----
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3145
SELECT - + 93 * + + 25 * SUM( 49 ) + - 85 DIV - 69
----
-113924

skipif mysql # not compatible
query I rowsort label-3145
SELECT - + 93 * + + 25 * SUM ( 49 ) + - 85 / - 69
----
-113924

query I rowsort
SELECT ALL 45 * 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3147
SELECT + 23 * - COUNT( * ) * 25 * + 14 + + COALESCE ( - 72, 95 ) * + 46
----
-11362

skipif mysql # not compatible
query I rowsort label-3147
SELECT + 23 * - COUNT ( * ) * 25 * + 14 + + COALESCE ( - 72, 95 ) * + 46
----
-11362

query I rowsort
SELECT ALL 67 - + 93 + + + ( 87 ) * + 87 AS col2
----
7543

onlyif mysql # DIV for integer division: 
query I rowsort label-3149
SELECT 98 DIV + 18 AS col0
----
5

skipif mysql # not compatible
query I rowsort label-3149
SELECT 98 / + 18 AS col0
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3150
SELECT ALL - CASE 26 WHEN - 7 THEN + ( - + 42 ) * + COUNT( * ) * CAST( NULL AS SIGNED ) * 1 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3150
SELECT ALL - CASE 26 WHEN - 7 THEN + ( - + 42 ) * + COUNT ( * ) * CAST ( NULL AS INTEGER ) * 1 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3151
SELECT ALL NULLIF ( 63, 51 / - 62 + - 40 / - + 69 ) - - - COUNT( - 58 ) AS col0
----
62

skipif mysql # not compatible
query I rowsort label-3151
SELECT ALL NULLIF ( 63, 51 / - 62 + - 40 / - + 69 ) - - - COUNT ( - 58 ) AS col0
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3152
SELECT DISTINCT - CAST( NULL AS SIGNED ) / + 9 * COUNT( * ) * - + MAX( ALL + 11 ) * - 90
----
NULL

skipif mysql # not compatible
query I rowsort label-3152
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / + 9 * COUNT ( * ) * - + MAX ( ALL + 11 ) * - 90
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3153
SELECT ALL + 40 DIV 74 col2
----
0

skipif mysql # not compatible
query I rowsort label-3153
SELECT ALL + 40 / 74 col2
----
0

query I rowsort
SELECT 10 - + 46 * - 50
----
2310

onlyif mysql # aggregate syntax: 
query I rowsort label-3155
SELECT DISTINCT CASE + - 89 WHEN + + COUNT( * ) THEN NULL WHEN - - 38 THEN NULL ELSE - 12 END / - CASE 23 WHEN - 6 THEN - 61 WHEN 79 THEN - 20 END + + 95
----
NULL

skipif mysql # not compatible
query I rowsort label-3155
SELECT DISTINCT CASE + - 89 WHEN + + COUNT ( * ) THEN NULL WHEN - - 38 THEN NULL ELSE - 12 END / - CASE 23 WHEN - 6 THEN - 61 WHEN 79 THEN - 20 END + + 95
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3156
SELECT COALESCE ( 79, + + 22, + - 80 * COUNT( * ) ) DIV 22
----
3

skipif mysql # not compatible
query I rowsort label-3156
SELECT COALESCE ( 79, + + 22, + - 80 * COUNT ( * ) ) / 22
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3157
SELECT 52 + - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3157
SELECT 52 + - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 61 * 98 * + - 15
----
-89670

query I rowsort
SELECT ALL - 32 + - 32 AS col1
----
-64

onlyif mysql # aggregate syntax: 
query III rowsort label-3160
SELECT ALL + 5 + + + 17 AS col2, MAX( 62 ) + COUNT( * ) AS col2, 19
----
22
63
19

skipif mysql # not compatible
query III rowsort label-3160
SELECT ALL + 5 + + + 17 AS col2, MAX ( 62 ) + COUNT ( * ) AS col2, 19
----
22
63
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3161
SELECT 77 + NULLIF ( - CAST( + - 57 AS SIGNED ), 57 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3161
SELECT 77 + NULLIF ( - CAST ( + - 57 AS INTEGER ), 57 )
----
NULL

query I rowsort
SELECT + 39 + + 84 AS col1
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-3163
SELECT COUNT( * ) + - - ( + 23 ) * + 29 AS col0
----
668

skipif mysql # not compatible
query I rowsort label-3163
SELECT COUNT ( * ) + - - ( + 23 ) * + 29 AS col0
----
668

query I rowsort
SELECT - CASE + - 66 WHEN + 46 THEN + 40 * ( + 99 ) WHEN + 15 * - 45 THEN NULL WHEN + ( 33 ) * 99 THEN - 2 ELSE NULL END
----
NULL

query II rowsort
SELECT DISTINCT - 34 + 76, - 58 AS col2
----
42
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3166
SELECT ALL + CAST( NULL AS SIGNED ) / - 85 + + + 11 * + 53 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3166
SELECT ALL + CAST ( NULL AS INTEGER ) / - 85 + + + 11 * + 53 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3167
SELECT ALL - - 31 * + - COALESCE ( - + 28, - - SUM( + - 22 ) ) * 78 + - + 24 + COUNT( 28 ) DIV + 43 AS col1
----
67680

skipif mysql # not compatible
query I rowsort label-3167
SELECT ALL - - 31 * + - COALESCE ( - + 28, - - SUM ( + - 22 ) ) * 78 + - + 24 + COUNT ( 28 ) / + 43 AS col1
----
67680

onlyif mysql # aggregate syntax: 
query I rowsort label-3168
SELECT 95 * - MAX( + - 67 ) AS col1
----
6365

skipif mysql # not compatible
query I rowsort label-3168
SELECT 95 * - MAX ( + - 67 ) AS col1
----
6365

query I rowsort
SELECT DISTINCT + - 29 * - 24 AS col2
----
696

query I rowsort
SELECT 56 * + 90 * - - 28
----
141120

onlyif mysql # aggregate syntax: 
query II rowsort label-3171
SELECT DISTINCT - - 16 * - 62, - ( + COUNT( * ) ) AS col0
----
-992
-1

skipif mysql # not compatible
query II rowsort label-3171
SELECT DISTINCT - - 16 * - 62, - ( + COUNT ( * ) ) AS col0
----
-992
-1

query I rowsort
SELECT + 21 * + 11
----
231

query I rowsort
SELECT DISTINCT - - 61 AS col2
----
61

query I rowsort
SELECT 30 * + 76 - 78 AS col0
----
2202

onlyif mysql # aggregate syntax: 
query I rowsort label-3175
SELECT COUNT( + + 58 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3175
SELECT COUNT ( + + 58 ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3176
SELECT COUNT( * ) + + COALESCE ( - 1, + 51 * - - CAST( + 59 AS SIGNED ) + - - 95 )
----
0

skipif mysql # not compatible
query I rowsort label-3176
SELECT COUNT ( * ) + + COALESCE ( - 1, + 51 * - - CAST ( + 59 AS INTEGER ) + - - 95 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3177
SELECT COUNT( * ) * - - 21 AS col1
----
21

skipif mysql # not compatible
query I rowsort label-3177
SELECT COUNT ( * ) * - - 21 AS col1
----
21

query I rowsort
SELECT 45 * + NULLIF ( + + ( + 44 ), + + 21 ) + 65 - - 74 AS col2
----
2119

onlyif mysql # aggregate syntax: 
query I rowsort label-3179
SELECT MIN( + + 95 )
----
95

skipif mysql # not compatible
query I rowsort label-3179
SELECT MIN ( + + 95 )
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-3180
SELECT 17 * MIN( ALL + 88 )
----
1496

skipif mysql # not compatible
query I rowsort label-3180
SELECT 17 * MIN ( ALL + 88 )
----
1496

query I rowsort
SELECT 20 + + 84 * + - 43 * - 9 * + 76
----
2470628

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3182
SELECT COUNT( * ) * - 45 DIV + COALESCE ( 26, + 1, + COUNT( + - 13 ) ) - - 8 AS col2
----
7

skipif mysql # not compatible
query I rowsort label-3182
SELECT COUNT ( * ) * - 45 / + COALESCE ( 26, + 1, + COUNT ( + - 13 ) ) - - 8 AS col2
----
7

query I rowsort
SELECT ALL 64 + - 57 AS col0
----
7

query I rowsort
SELECT DISTINCT 99 + + - 29 AS col1
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3185
SELECT + COALESCE ( + + 99, + NULLIF ( + 66, + 22 ) * + 18 * + 51 + + COUNT( * ) DIV + 26 ) DIV + 1
----
99

skipif mysql # not compatible
query I rowsort label-3185
SELECT + COALESCE ( + + 99, + NULLIF ( + 66, + 22 ) * + 18 * + 51 + + COUNT ( * ) / + 26 ) / + 1
----
99

query I rowsort
SELECT DISTINCT + 1 + 64 AS col1
----
65

query I rowsort
SELECT ALL 4 + + - 17 * + 28
----
-472

query I rowsort
SELECT + 10 + - 16 AS col0
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3189
SELECT + COUNT( + 79 ) * + + 52 DIV - 29
----
-1

skipif mysql # not compatible
query I rowsort label-3189
SELECT + COUNT ( + 79 ) * + + 52 / - 29
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3190
SELECT - CAST( + - COUNT( * ) AS SIGNED ) DIV + - 60 * + ( + 86 )
----
0

skipif mysql # not compatible
query I rowsort label-3190
SELECT - CAST ( + - COUNT ( * ) AS INTEGER ) / + - 60 * + ( + 86 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3191
SELECT - SUM( ALL + 32 ) * - + COUNT( * )
----
32

skipif mysql # not compatible
query I rowsort label-3191
SELECT - SUM ( ALL + 32 ) * - + COUNT ( * )
----
32

query I rowsort
SELECT + + 27 * + ( + 86 )
----
2322

query I rowsort
SELECT ALL + + 6 * 95 + + + 42 * 6 + - 21 + + 82 - + - 24 * 46 AS col0
----
1987

onlyif mysql # aggregate syntax: 
query I rowsort label-3194
SELECT + COUNT( * ) + + 37 AS col1
----
38

skipif mysql # not compatible
query I rowsort label-3194
SELECT + COUNT ( * ) + + 37 AS col1
----
38

query I rowsort
SELECT DISTINCT + + 94 + + - ( + COALESCE ( 15, - 33 ) )
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-3196
SELECT DISTINCT + COALESCE ( - - NULLIF ( - - 3, - 74 ), - + 3 * + SUM( DISTINCT 26 ) + + 34 * 94, 21 ) * 76 AS col0
----
228

skipif mysql # not compatible
query I rowsort label-3196
SELECT DISTINCT + COALESCE ( - - NULLIF ( - - 3, - 74 ), - + 3 * + SUM ( DISTINCT 26 ) + + 34 * 94, 21 ) * 76 AS col0
----
228

onlyif mysql # aggregate syntax: 
query I rowsort label-3197
SELECT ALL - 50 - + + ( + MIN( + 41 ) ) + + 94 + - SUM( 12 ) AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-3197
SELECT ALL - 50 - + + ( + MIN ( + 41 ) ) + + 94 + - SUM ( 12 ) AS col1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3198
SELECT + 60 * - NULLIF ( ( + ( + 17 ) ), + CAST( NULL AS SIGNED ) ) * + 62 + - 50
----
-63290

skipif mysql # not compatible
query I rowsort label-3198
SELECT + 60 * - NULLIF ( ( + ( + 17 ) ), + CAST ( NULL AS INTEGER ) ) * + 62 + - 50
----
-63290

onlyif mysql # aggregate syntax: 
query I rowsort label-3199
SELECT ALL 0 * - - 28 + + + NULLIF ( + MAX( ALL + - 96 ), - - NULLIF ( 71, - 37 - ( 82 ) ) )
----
-96

skipif mysql # not compatible
query I rowsort label-3199
SELECT ALL 0 * - - 28 + + + NULLIF ( + MAX ( ALL + - 96 ), - - NULLIF ( 71, - 37 - ( 82 ) ) )
----
-96

query I rowsort
SELECT COALESCE ( - + ( - 39 ), + - 88 ) AS col1
----
39

onlyif mysql # aggregate syntax: 
query II rowsort label-3201
SELECT + - 0 + + + 40 + + 92, 58 - COUNT( * ) AS col1
----
132
57

skipif mysql # not compatible
query II rowsort label-3201
SELECT + - 0 + + + 40 + + 92, 58 - COUNT ( * ) AS col1
----
132
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3202
SELECT - - MAX( ALL CASE ( 86 ) WHEN - - 9 THEN 9 WHEN + - 49 * + 26 THEN NULL END ) - ( 35 ) * + MAX( DISTINCT + CAST( - 53 AS SIGNED ) - - 75 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3202
SELECT - - MAX ( ALL CASE ( 86 ) WHEN - - 9 THEN 9 WHEN + - 49 * + 26 THEN NULL END ) - ( 35 ) * + MAX ( DISTINCT + CAST ( - 53 AS INTEGER ) - - 75 )
----
NULL

query I rowsort
SELECT ALL - 89 - - 6 AS col2
----
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-3204
SELECT - - 56 DIV - 69 + + 22
----
22

skipif mysql # not compatible
query I rowsort label-3204
SELECT - - 56 / - 69 + + 22
----
22

query I rowsort
SELECT DISTINCT + + 84 AS col2
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3206
SELECT - - 41 * + 83 - - CASE + 61 WHEN + + 67 * + - 54 + - 10 * 47 THEN NULL WHEN - COUNT( * ) THEN 20 WHEN - 90 THEN NULLIF ( - 99, 58 ) * - 94 END * + 76 + 14 * - 86
----
NULL

skipif mysql # not compatible
query I rowsort label-3206
SELECT - - 41 * + 83 - - CASE + 61 WHEN + + 67 * + - 54 + - 10 * 47 THEN NULL WHEN - COUNT ( * ) THEN 20 WHEN - 90 THEN NULLIF ( - 99, 58 ) * - 94 END * + 76 + 14 * - 86
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3207
SELECT DISTINCT + 37 DIV COUNT( ALL - + 25 )
----
37

skipif mysql # not compatible
query I rowsort label-3207
SELECT DISTINCT + 37 / COUNT ( ALL - + 25 )
----
37

query I rowsort
SELECT - 13 * - ( 34 ) AS col0
----
442

onlyif mysql # aggregate syntax: 
query I rowsort label-3209
SELECT - COUNT( - 23 ) * - 36
----
36

skipif mysql # not compatible
query I rowsort label-3209
SELECT - COUNT ( - 23 ) * - 36
----
36

query I rowsort
SELECT ALL + ( + 89 ) * - 4
----
-356

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3211
SELECT COALESCE ( + 73, - + NULLIF ( - COUNT( * ), + ( 5 ) * + CASE + MIN( + - 65 ) WHEN - COUNT( * ) THEN 91 ELSE COALESCE ( 77, 61 * + COUNT( * ), + CAST( NULL AS SIGNED ) * 49 ) / + COUNT( * ) + + 91 END + 83 * - 20 ) ) AS col1
----
73

skipif mysql # not compatible
query I rowsort label-3211
SELECT COALESCE ( + 73, - + NULLIF ( - COUNT ( * ), + ( 5 ) * + CASE + MIN ( + - 65 ) WHEN - COUNT ( * ) THEN 91 ELSE COALESCE ( 77, 61 * + COUNT ( * ), + CAST ( NULL AS INTEGER ) * 49 ) / + COUNT ( * ) + + 91 END + 83 * - 20 ) ) AS col1
----
73

query I rowsort
SELECT + 65 + + - 9
----
56

query I rowsort
SELECT - 77 * 75
----
-5775

query I rowsort
SELECT ALL 35 * + + 27 + + - 91
----
854

onlyif mysql # DIV for integer division: 
query II rowsort label-3215
SELECT COALESCE ( - 80, - 62 DIV + + 92 - - + ( + 19 ) + + 45 ) AS col2, + 59 * 62 AS col1
----
-80
3658

skipif mysql # not compatible
query II rowsort label-3215
SELECT COALESCE ( - 80, - 62 / + + 92 - - + ( + 19 ) + + 45 ) AS col2, + 59 * 62 AS col1
----
-80
3658

query I rowsort
SELECT + 53 * 61 + + 77
----
3310

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3217
SELECT DISTINCT + CASE 38 WHEN + 26 * - CAST( - 80 AS SIGNED ) THEN SUM( ALL 37 ) * - + 69 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3217
SELECT DISTINCT + CASE 38 WHEN + 26 * - CAST ( - 80 AS INTEGER ) THEN SUM ( ALL 37 ) * - + 69 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3218
SELECT - COUNT( * ) * - 93 AS col1
----
93

skipif mysql # not compatible
query I rowsort label-3218
SELECT - COUNT ( * ) * - 93 AS col1
----
93

query I rowsort
SELECT - 69 - + + ( 51 ) AS col2
----
-120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3220
SELECT CAST( NULL AS SIGNED ) * 72 + - 43
----
NULL

skipif mysql # not compatible
query I rowsort label-3220
SELECT CAST ( NULL AS INTEGER ) * 72 + - 43
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3221
SELECT + CAST( 27 AS SIGNED ) * + 16 - - 11 + COUNT( * ) AS col0, CAST( NULL AS SIGNED ) - MIN( DISTINCT - 19 )
----
444
NULL

skipif mysql # not compatible
query II rowsort label-3221
SELECT + CAST ( 27 AS INTEGER ) * + 16 - - 11 + COUNT ( * ) AS col0, CAST ( NULL AS INTEGER ) - MIN ( DISTINCT - 19 )
----
444
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3222
SELECT - COALESCE ( + NULLIF ( - 4, + - 81 * - MAX( - 84 ) ), - 21 * + 84 * + CAST( 87 AS SIGNED ), 19 + - 65 * - 31 ) AS col2
----
4

skipif mysql # not compatible
query I rowsort label-3222
SELECT - COALESCE ( + NULLIF ( - 4, + - 81 * - MAX ( - 84 ) ), - 21 * + 84 * + CAST ( 87 AS INTEGER ), 19 + - 65 * - 31 ) AS col2
----
4

query I rowsort
SELECT + 74 + 50 AS col0
----
124

query I rowsort
SELECT DISTINCT - + 50 - - 87 * - 64
----
-5618

onlyif mysql # aggregate syntax: 
query I rowsort label-3225
SELECT ALL + + MAX( - 87 ) * + 8 AS col0
----
-696

skipif mysql # not compatible
query I rowsort label-3225
SELECT ALL + + MAX ( - 87 ) * + 8 AS col0
----
-696

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3226
SELECT + + CASE + - 97 WHEN - - 23 + + COUNT( * ) * CAST( ( + + 28 ) AS SIGNED ) THEN - 78 * 61 END + 83 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3226
SELECT + + CASE + - 97 WHEN - - 23 + + COUNT ( * ) * CAST ( ( + + 28 ) AS INTEGER ) THEN - 78 * 61 END + 83 AS col0
----
NULL

query I rowsort
SELECT + 92 - - + 28 AS col1
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-3228
SELECT ALL MIN( DISTINCT + + 69 )
----
69

skipif mysql # not compatible
query I rowsort label-3228
SELECT ALL MIN ( DISTINCT + + 69 )
----
69

query I rowsort
SELECT - + 20 * 98 AS col1
----
-1960

onlyif mysql # aggregate syntax: 
query I rowsort label-3230
SELECT + + 15 * - COUNT( * ) * - + 15
----
225

skipif mysql # not compatible
query I rowsort label-3230
SELECT + + 15 * - COUNT ( * ) * - + 15
----
225

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3231
SELECT + 23 + + CAST( - 36 AS SIGNED ) DIV - - CASE - + 53 WHEN - + 21 * 79 + - COUNT( * ) + 64 - COUNT( * ) * + MIN( - 73 + 17 ) DIV COUNT( * ) + AVG ( DISTINCT - 74 ) THEN + 15 * + NULLIF ( + NULLIF ( 62, 87 * + 99 ), + 77 * + 31 ) ELSE + 48 + + COUNT( * ) DIV 80 END + + CAST( 9 + - 21 * + 77 AS SIGNED )
----
-1585

skipif mysql # not compatible
query I rowsort label-3231
SELECT + 23 + + CAST ( - 36 AS INTEGER ) / - - CASE - + 53 WHEN - + 21 * 79 + - COUNT ( * ) + 64 - COUNT ( * ) * + MIN ( - 73 + 17 ) / COUNT ( * ) + AVG ( DISTINCT - 74 ) THEN + 15 * + NULLIF ( + NULLIF ( 62, 87 * + 99 ), + 77 * + 31 ) ELSE + 48 + + COUNT ( * ) / 80 END + + CAST ( 9 + - 21 * + 77 AS INTEGER )
----
-1585

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3232
SELECT + CAST( + 26 AS SIGNED )
----
26

skipif mysql # not compatible
query I rowsort label-3232
SELECT + CAST ( + 26 AS INTEGER )
----
26

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3233
SELECT + 81 * - - 32 + + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3233
SELECT + 81 * - - 32 + + CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3234
SELECT - 50 + 89 * - CAST( NULL AS SIGNED ) + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3234
SELECT - 50 + 89 * - CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3235
SELECT + CASE COUNT( * ) WHEN + - 27 THEN - - COUNT( * ) WHEN - - 20 THEN + 85 - CAST( NULL AS SIGNED ) + - 59 * - - ( 92 ) DIV 50 ELSE + 65 + - 34 END * 41 AS col2
----
1271

skipif mysql # not compatible
query I rowsort label-3235
SELECT + CASE COUNT ( * ) WHEN + - 27 THEN - - COUNT ( * ) WHEN - - 20 THEN + 85 - CAST ( NULL AS INTEGER ) + - 59 * - - ( 92 ) / 50 ELSE + 65 + - 34 END * 41 AS col2
----
1271

onlyif mysql # aggregate syntax: 
query I rowsort label-3236
SELECT ALL COALESCE ( - + COUNT( * ), 49, + COALESCE ( MIN( ALL - - NULLIF ( - 71, - + 92 ) ), + 29 ) ) * + 14 AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-3236
SELECT ALL COALESCE ( - + COUNT ( * ), 49, + COALESCE ( MIN ( ALL - - NULLIF ( - 71, - + 92 ) ), + 29 ) ) * + 14 AS col0
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3237
SELECT DISTINCT - COUNT( * ) * 64, 46 * - CAST( 53 AS SIGNED ) + - - 62 AS col0
----
-64
-2376

skipif mysql # not compatible
query II rowsort label-3237
SELECT DISTINCT - COUNT ( * ) * 64, 46 * - CAST ( 53 AS INTEGER ) + - - 62 AS col0
----
-64
-2376

onlyif mysql # aggregate syntax: 
query II rowsort label-3238
SELECT - MIN( - - 33 ) AS col2, + 7 + + 88
----
-33
95

skipif mysql # not compatible
query II rowsort label-3238
SELECT - MIN ( - - 33 ) AS col2, + 7 + + 88
----
-33
95

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3239
SELECT ALL + + 24 * + 90 AS col2, - ( CAST( NULL AS SIGNED ) ) * - - 6
----
2160
NULL

skipif mysql # not compatible
query II rowsort label-3239
SELECT ALL + + 24 * + 90 AS col2, - ( CAST ( NULL AS INTEGER ) ) * - - 6
----
2160
NULL

query I rowsort
SELECT ALL - 8 * 38 AS col1
----
-304

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3241
SELECT - 11 DIV - COUNT( * ) + 46
----
57

skipif mysql # not compatible
query I rowsort label-3241
SELECT - 11 / - COUNT ( * ) + 46
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3242
SELECT + 59 + 11 - - + 76, 67 + + COUNT( * ) DIV 56 AS col0
----
146
67

skipif mysql # not compatible
query II rowsort label-3242
SELECT + 59 + 11 - - + 76, 67 + + COUNT ( * ) / 56 AS col0
----
146
67

onlyif mysql # DIV for integer division: 
query I rowsort label-3243
SELECT ALL 31 DIV 31 + 95
----
96

skipif mysql # not compatible
query I rowsort label-3243
SELECT ALL 31 / 31 + 95
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3244
SELECT 82 * 27 - SUM( - COALESCE ( + 30, + + 31 ) )
----
2244

skipif mysql # not compatible
query I rowsort label-3244
SELECT 82 * 27 - SUM ( - COALESCE ( + 30, + + 31 ) )
----
2244

query I rowsort
SELECT DISTINCT - 91 * 19 * + 46 AS col1
----
-79534

onlyif mysql # aggregate syntax: 
query I rowsort label-3246
SELECT ALL - 19 + - 81 + - MAX( ALL + 15 ) * 2 - + - 9
----
-121

skipif mysql # not compatible
query I rowsort label-3246
SELECT ALL - 19 + - 81 + - MAX ( ALL + 15 ) * 2 - + - 9
----
-121

onlyif mysql # DIV for integer division: 
query I rowsort label-3247
SELECT 35 + + + 41 DIV 42 AS col2
----
35

skipif mysql # not compatible
query I rowsort label-3247
SELECT 35 + + + 41 / 42 AS col2
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-3248
SELECT - 87 * ( + 59 ) + - - COUNT( * ) + + 24
----
-5108

skipif mysql # not compatible
query I rowsort label-3248
SELECT - 87 * ( + 59 ) + - - COUNT ( * ) + + 24
----
-5108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3249
SELECT 54 + + ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3249
SELECT 54 + + ( - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3250
SELECT NULLIF ( + - 29, COUNT( * ) ) * - 91 - + + 81 - - CAST( - - COALESCE ( + + ( AVG ( ALL + 59 ) ), - 47 ) AS SIGNED )
----
2617

skipif mysql # not compatible
query I rowsort label-3250
SELECT NULLIF ( + - 29, COUNT ( * ) ) * - 91 - + + 81 - - CAST ( - - COALESCE ( + + ( AVG ( ALL + 59 ) ), - 47 ) AS INTEGER )
----
2617

query I rowsort
SELECT 61 * - - 79 AS col1
----
4819

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3252
SELECT DISTINCT - 32 AS col1, ( + CASE + COUNT( * ) WHEN CAST( NULL AS DECIMAL ) THEN NULL WHEN + MIN( ALL - - 8 ) THEN - 86 + + 58 ELSE NULL END )
----
-32
NULL

skipif mysql # not compatible
query II rowsort label-3252
SELECT DISTINCT - 32 AS col1, ( + CASE + COUNT ( * ) WHEN CAST ( NULL AS REAL ) THEN NULL WHEN + MIN ( ALL - - 8 ) THEN - 86 + + 58 ELSE NULL END )
----
-32
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3253
SELECT ALL - 56 - + COUNT( * )
----
-57

skipif mysql # not compatible
query I rowsort label-3253
SELECT ALL - 56 - + COUNT ( * )
----
-57

query I rowsort
SELECT 80 + - NULLIF ( + 79, ( 58 ) * - AVG ( ALL 47 ) )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3255
SELECT + 68 * 63 + + 47 + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3255
SELECT + 68 * 63 + + 47 + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3256
SELECT - SUM( ALL + 73 ) AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-3256
SELECT - SUM ( ALL + 73 ) AS col1
----
-73

onlyif mysql # aggregate syntax: 
query II rowsort label-3257
SELECT 3 + CASE - 77 WHEN + ( 98 ) THEN NULL ELSE - 60 - + COUNT( * ) + - 71 END AS col0, - 56 * + COUNT( * ) + COUNT( * )
----
-129
-55

skipif mysql # not compatible
query II rowsort label-3257
SELECT 3 + CASE - 77 WHEN + ( 98 ) THEN NULL ELSE - 60 - + COUNT ( * ) + - 71 END AS col0, - 56 * + COUNT ( * ) + COUNT ( * )
----
-129
-55

query I rowsort
SELECT DISTINCT + + 22 - - - 9 col0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-3259
SELECT 49 + - COUNT( * )
----
48

skipif mysql # not compatible
query I rowsort label-3259
SELECT 49 + - COUNT ( * )
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-3260
SELECT - 26 + 53 DIV + + 19
----
-24

skipif mysql # not compatible
query I rowsort label-3260
SELECT - 26 + 53 / + + 19
----
-24

query I rowsort
SELECT - + 96 col0
----
-96

query I rowsort
SELECT + 74 - + 63
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3263
SELECT 42 * - CAST( 20 AS SIGNED ) AS col2
----
-840

skipif mysql # not compatible
query I rowsort label-3263
SELECT 42 * - CAST ( 20 AS INTEGER ) AS col2
----
-840

onlyif mysql # aggregate syntax: 
query I rowsort label-3264
SELECT + COUNT( * ) + - 67 + 46 AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-3264
SELECT + COUNT ( * ) + - 67 + 46 AS col0
----
-20

query I rowsort
SELECT 52 + - + ( + 43 ) + - 45
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-3266
SELECT COUNT( DISTINCT - 90 )
----
1

skipif mysql # not compatible
query I rowsort label-3266
SELECT COUNT ( DISTINCT - 90 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3267
SELECT - COUNT( DISTINCT - 40 ) + + COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3267
SELECT - COUNT ( DISTINCT - 40 ) + + COUNT ( * ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3268
SELECT NULLIF ( + NULLIF ( 40, - 37 ), - 22 * - CAST( NULL AS SIGNED ) - + CASE + 4 WHEN COUNT( * ) * - - NULLIF ( + SUM( ALL 12 ), 10 * - CASE + COUNT( ALL + 28 ) WHEN - 96 * + 89 THEN 46 ELSE NULL END ) THEN ( + ( 4 ) ) * + 40 END ) * - COUNT( * ) AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-3268
SELECT NULLIF ( + NULLIF ( 40, - 37 ), - 22 * - CAST ( NULL AS INTEGER ) - + CASE + 4 WHEN COUNT ( * ) * - - NULLIF ( + SUM ( ALL 12 ), 10 * - CASE + COUNT ( ALL + 28 ) WHEN - 96 * + 89 THEN 46 ELSE NULL END ) THEN ( + ( 4 ) ) * + 40 END ) * - COUNT ( * ) AS col0
----
-40

query I rowsort
SELECT ALL 48 + + 64 AS col2
----
112

onlyif mysql # DIV for integer division: 
query I rowsort label-3270
SELECT - 65 DIV - 65 + - 17 + - + 7 AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-3270
SELECT - 65 / - 65 + - 17 + - + 7 AS col2
----
-23

query I rowsort
SELECT DISTINCT 83 + 17 AS col2
----
100

query I rowsort
SELECT ALL 41 * + + 12
----
492

query I rowsort
SELECT + 83 * - 22 + + 78
----
-1748

onlyif mysql # DIV for integer division: 
query I rowsort label-3274
SELECT ALL 88 + + 74 DIV + - 8
----
79

skipif mysql # not compatible
query I rowsort label-3274
SELECT ALL 88 + + 74 / + - 8
----
79

query II rowsort
SELECT DISTINCT 47 * 48 AS col0, 1 AS col0
----
2256
1

query II rowsort
SELECT 0, 75 * - 97 AS col2
----
0
-7275

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3277
SELECT ALL 82 * + CASE - ( - - 16 ) WHEN + + CAST( + 17 AS SIGNED ) / 31 + COUNT( * ) + - - 55 / + - 95 THEN + 57 - - 23 WHEN 81 THEN CASE + 46 WHEN 6 THEN 55 / + COUNT( * ) END WHEN 71 + + MIN( DISTINCT ( + 89 ) + 15 ) * COALESCE ( ( 76 ), 42 ) THEN COUNT( * ) * + CAST( 2 AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3277
SELECT ALL 82 * + CASE - ( - - 16 ) WHEN + + CAST ( + 17 AS INTEGER ) / 31 + COUNT ( * ) + - - 55 / + - 95 THEN + 57 - - 23 WHEN 81 THEN CASE + 46 WHEN 6 THEN 55 / + COUNT ( * ) END WHEN 71 + + MIN ( DISTINCT ( + 89 ) + 15 ) * COALESCE ( ( 76 ), 42 ) THEN COUNT ( * ) * + CAST ( 2 AS INTEGER ) END
----
NULL

query II rowsort
SELECT 19 col2, 11 - 63
----
19
-52

onlyif mysql # aggregate syntax: 
query II rowsort label-3279
SELECT DISTINCT - COUNT( * ) AS col2, 92 + + + 79 * + 26 + 32
----
-1
2178

skipif mysql # not compatible
query II rowsort label-3279
SELECT DISTINCT - COUNT ( * ) AS col2, 92 + + + 79 * + 26 + 32
----
-1
2178

query I rowsort
SELECT ALL - 88 - + + 27 AS col0
----
-115

query I rowsort
SELECT 70 * 88 AS col2
----
6160

query II rowsort
SELECT DISTINCT - 9, - 37 AS col0
----
-9
-37

onlyif mysql # aggregate syntax: 
query II rowsort label-3283
SELECT 0 AS col2, 58 * - COUNT( ALL 43 ) AS col1
----
0
-58

skipif mysql # not compatible
query II rowsort label-3283
SELECT 0 AS col2, 58 * - COUNT ( ALL 43 ) AS col1
----
0
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3284
SELECT 86 + - COUNT( * )
----
85

skipif mysql # not compatible
query I rowsort label-3284
SELECT 86 + - COUNT ( * )
----
85

query I rowsort
SELECT 96 * - 44 col0
----
-4224

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3286
SELECT ALL - CAST( 60 AS SIGNED ) AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-3286
SELECT ALL - CAST ( 60 AS INTEGER ) AS col2
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-3287
SELECT - COUNT( * ) - + + 17
----
-18

skipif mysql # not compatible
query I rowsort label-3287
SELECT - COUNT ( * ) - + + 17
----
-18

query II rowsort
SELECT + + 85 AS col2, 44 * 67 AS col1
----
85
2948

query I rowsort
SELECT 87 - - 26
----
113

query I rowsort
SELECT ALL - + ( - 85 ) * - 65 AS col1
----
-5525

onlyif mysql # aggregate syntax: 
query I rowsort label-3291
SELECT COUNT( * ) * 87
----
87

skipif mysql # not compatible
query I rowsort label-3291
SELECT COUNT ( * ) * 87
----
87

query I rowsort
SELECT + 3 * 52 * 36 + + COALESCE ( 38, + + 19 )
----
5654

onlyif mysql # DIV for integer division: 
query I rowsort label-3293
SELECT + 63 DIV - 62 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3293
SELECT + 63 / - 62 AS col2
----
-1

query I rowsort
SELECT ALL + + 28 * + 11 AS col0
----
308

query II rowsort
SELECT 56 - - 14 * - ( - + 16 ), + 86 AS col2
----
280
86

query I rowsort
SELECT ALL CASE 99 WHEN 67 THEN NULL WHEN + 72 - - ( + 61 ) THEN - - 58 END
----
NULL

query I rowsort
SELECT ALL - - 15 + + - 83
----
-68

query I rowsort
SELECT DISTINCT - ( + + 92 ) + + 31 AS col1
----
-61

query II rowsort
SELECT DISTINCT 57, 38 AS col0
----
57
38

onlyif mysql # aggregate syntax: 
query I rowsort label-3300
SELECT COUNT( DISTINCT + - 55 )
----
1

skipif mysql # not compatible
query I rowsort label-3300
SELECT COUNT ( DISTINCT + - 55 )
----
1

query II rowsort
SELECT ALL - 25 + - 38 AS col0, - 83 AS col0
----
-63
-83

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3302
SELECT DISTINCT - 14 DIV - 52 * + CAST( + 68 AS SIGNED ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3302
SELECT DISTINCT - 14 / - 52 * + CAST ( + 68 AS INTEGER ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3303
SELECT ALL SUM( + 66 ), 23 * 31 col2
----
66
713

skipif mysql # not compatible
query II rowsort label-3303
SELECT ALL SUM ( + 66 ), 23 * 31 col2
----
66
713

onlyif mysql # aggregate syntax: 
query I rowsort label-3304
SELECT DISTINCT - ( + - 25 ) + + COUNT( * )
----
26

skipif mysql # not compatible
query I rowsort label-3304
SELECT DISTINCT - ( + - 25 ) + + COUNT ( * )
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3305
SELECT DISTINCT CASE - 76 WHEN + 67 DIV NULLIF ( SUM( DISTINCT + - 72 ), + - 17 DIV + CAST( NULL AS SIGNED ) + - 27 ) THEN NULL ELSE - + 29 DIV 33 + - - 8 + - 32 * - CAST( + 33 + + 49 AS SIGNED ) END col2
----
2632

skipif mysql # not compatible
query I rowsort label-3305
SELECT DISTINCT CASE - 76 WHEN + 67 / NULLIF ( SUM ( DISTINCT + - 72 ), + - 17 / + CAST ( NULL AS INTEGER ) + - 27 ) THEN NULL ELSE - + 29 / 33 + - - 8 + - 32 * - CAST ( + 33 + + 49 AS INTEGER ) END col2
----
2632

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3306
SELECT COUNT( * ) * 26 * ( + - 8 ) - + + 16 AS col0, + ( CAST( 96 AS SIGNED ) ) * - MAX( DISTINCT 7 ) + + 86 DIV + CASE - MAX( 42 ) WHEN 58 * - 34 THEN NULL ELSE + 31 END AS col2
----
-224
-670

skipif mysql # not compatible
query II rowsort label-3306
SELECT COUNT ( * ) * 26 * ( + - 8 ) - + + 16 AS col0, + ( CAST ( 96 AS INTEGER ) ) * - MAX ( DISTINCT 7 ) + + 86 / + CASE - MAX ( 42 ) WHEN 58 * - 34 THEN NULL ELSE + 31 END AS col2
----
-224
-670

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3307
SELECT + CASE - 4 WHEN - CAST( NULL AS SIGNED ) / + 94 * + 46 THEN + 32 / 61 + + - 28 ELSE NULL END * - + MIN( - COALESCE ( + - 39, - 69 ) ) / - 16
----
NULL

skipif mysql # not compatible
query I rowsort label-3307
SELECT + CASE - 4 WHEN - CAST ( NULL AS INTEGER ) / + 94 * + 46 THEN + 32 / 61 + + - 28 ELSE NULL END * - + MIN ( - COALESCE ( + - 39, - 69 ) ) / - 16
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3308
SELECT - MIN( DISTINCT - ( + 11 ) ) * + - 52 AS col0
----
-572

skipif mysql # not compatible
query I rowsort label-3308
SELECT - MIN ( DISTINCT - ( + 11 ) ) * + - 52 AS col0
----
-572

onlyif mysql # aggregate syntax: 
query I rowsort label-3309
SELECT - 46 + - SUM( ALL + + 42 ) * + 41 * + 41 * + - 22
----
1553198

skipif mysql # not compatible
query I rowsort label-3309
SELECT - 46 + - SUM ( ALL + + 42 ) * + 41 * + 41 * + - 22
----
1553198

query I rowsort
SELECT + 52 * + + 73
----
3796

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3311
SELECT + COALESCE ( - - 42, - - 9 + - 84 - + CASE - 79 WHEN SUM( DISTINCT + - 77 ) THEN + 89 WHEN COUNT( * ) + - - 50 - - 47 + 46 THEN - COUNT( * ) DIV - AVG ( - 35 * - 37 ) WHEN - CAST( NULL AS SIGNED ) * + 94 THEN NULL END * + 55, - CAST( 11 AS SIGNED ) )
----
42

skipif mysql # not compatible
query I rowsort label-3311
SELECT + COALESCE ( - - 42, - - 9 + - 84 - + CASE - 79 WHEN SUM ( DISTINCT + - 77 ) THEN + 89 WHEN COUNT ( * ) + - - 50 - - 47 + 46 THEN - COUNT ( * ) / - AVG ( - 35 * - 37 ) WHEN - CAST ( NULL AS INTEGER ) * + 94 THEN NULL END * + 55, - CAST ( 11 AS INTEGER ) )
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-3312
SELECT ALL 34 DIV + + 88 col2
----
0

skipif mysql # not compatible
query I rowsort label-3312
SELECT ALL 34 / + + 88 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3313
SELECT + NULLIF ( - 37, COUNT( * ) * - 52 ) - + - 35 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-3313
SELECT + NULLIF ( - 37, COUNT ( * ) * - 52 ) - + - 35 AS col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3314
SELECT ALL 28 * - + 45 * - COUNT( * ) * + - 61
----
-76860

skipif mysql # not compatible
query I rowsort label-3314
SELECT ALL 28 * - + 45 * - COUNT ( * ) * + - 61
----
-76860

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3315
SELECT + COALESCE ( COUNT( * ), NULLIF ( + 86, + 34 ) DIV - 85 * + 7 + - ( 30 ) + + 42 + 92 - COUNT( * ) - - CAST( 82 + 73 AS SIGNED ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3315
SELECT + COALESCE ( COUNT ( * ), NULLIF ( + 86, + 34 ) / - 85 * + 7 + - ( 30 ) + + 42 + 92 - COUNT ( * ) - - CAST ( 82 + 73 AS INTEGER ) ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3316
SELECT CASE + - COUNT( * ) WHEN CASE - 23 WHEN 2 + - CAST( + ( 18 ) AS SIGNED ) THEN - + NULLIF ( + SUM( ALL + NULLIF ( + 77, + 36 * NULLIF ( + 98, - 19 ) ) ), 88 ) * 57 END * ( ( 73 ) ) THEN NULL WHEN - 27 * 87 THEN 21 / 81 + + NULLIF ( 10, 96 + 62 ) * + 45 END * 11 + + 77
----
NULL

skipif mysql # not compatible
query I rowsort label-3316
SELECT CASE + - COUNT ( * ) WHEN CASE - 23 WHEN 2 + - CAST ( + ( 18 ) AS INTEGER ) THEN - + NULLIF ( + SUM ( ALL + NULLIF ( + 77, + 36 * NULLIF ( + 98, - 19 ) ) ), 88 ) * 57 END * ( ( 73 ) ) THEN NULL WHEN - 27 * 87 THEN 21 / 81 + + NULLIF ( 10, 96 + 62 ) * + 45 END * 11 + + 77
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3317
SELECT + 86 * MIN( DISTINCT + 22 ) * + 73 * 15 + + 40 AS col0
----
2071780

skipif mysql # not compatible
query I rowsort label-3317
SELECT + 86 * MIN ( DISTINCT + 22 ) * + 73 * 15 + + 40 AS col0
----
2071780

onlyif mysql # DIV for integer division: 
query I rowsort label-3318
SELECT + NULLIF ( + - 23, 12 ) * + + 25 + - + 97 DIV 26
----
-578

skipif mysql # not compatible
query I rowsort label-3318
SELECT + NULLIF ( + - 23, 12 ) * + + 25 + - + 97 / 26
----
-578

query II rowsort
SELECT ALL + 36 * + + 63 AS col1, + NULLIF ( 48, ( - 79 ) * + + 59 * 84 ) AS col1
----
2268
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3320
SELECT DISTINCT 26 * ( + 98 ) + + + COUNT( * ) + + 13
----
2562

skipif mysql # not compatible
query I rowsort label-3320
SELECT DISTINCT 26 * ( + 98 ) + + + COUNT ( * ) + + 13
----
2562

query II rowsort
SELECT ALL + 81 * + - 13 AS col2, 2 - - 44 - - - ( - + 29 )
----
-1053
75

query II rowsort
SELECT + 70 * + + 33 AS col0, - ( 76 )
----
2310
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-3323
SELECT ALL COUNT( * ) + + + COUNT( * ) * - 21 AS col2
----
-20

skipif mysql # not compatible
query I rowsort label-3323
SELECT ALL COUNT ( * ) + + + COUNT ( * ) * - 21 AS col2
----
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-3324
SELECT + + 90 + - COUNT( * ), 84 AS col0
----
89
84

skipif mysql # not compatible
query II rowsort label-3324
SELECT + + 90 + - COUNT ( * ), 84 AS col0
----
89
84

query I rowsort
SELECT DISTINCT ( + + 53 ) col1
----
53

query I rowsort
SELECT ALL + ( + 46 ) + - 56
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-3327
SELECT - + 9 * - - COUNT( * )
----
-9

skipif mysql # not compatible
query I rowsort label-3327
SELECT - + 9 * - - COUNT ( * )
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3328
SELECT + + COUNT( * ) + + 52
----
53

skipif mysql # not compatible
query I rowsort label-3328
SELECT + + COUNT ( * ) + + 52
----
53

query I rowsort
SELECT ALL - ( + 86 ) + - + NULLIF ( - 36, - 25 + - 77 ) + 97
----
47

query I rowsort
SELECT ALL + 60 * - 42 AS col1
----
-2520

onlyif mysql # aggregate syntax: 
query I rowsort label-3331
SELECT - CASE + MAX( + - 71 ) WHEN 25 THEN NULL ELSE 90 + 29 + 76 - + COUNT( * ) * 52 * - 91 END + - + 98 + + - 36 + + ( 87 ) * 64 AS col1
----
507

skipif mysql # not compatible
query I rowsort label-3331
SELECT - CASE + MAX ( + - 71 ) WHEN 25 THEN NULL ELSE 90 + 29 + 76 - + COUNT ( * ) * 52 * - 91 END + - + 98 + + - 36 + + ( 87 ) * 64 AS col1
----
507

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3332
SELECT ALL + 59 DIV COUNT( ALL + + 33 )
----
59

skipif mysql # not compatible
query I rowsort label-3332
SELECT ALL + 59 / COUNT ( ALL + + 33 )
----
59

query I rowsort
SELECT ALL + 86 - - + 90 * 74 AS col1
----
6746

query II rowsort
SELECT DISTINCT COALESCE ( - 16, + 85 ) AS col1, 15 AS col1
----
-16
15

query I rowsort
SELECT - 83 + + 28 col1
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3336
SELECT - 94 + - - 35 * 73 * + COUNT( * ) + CAST( + 44 AS SIGNED ) * + 48 + SUM( DISTINCT 1 ) + + ( - 12 ) * 48 + + CASE + SUM( ALL + 60 ) WHEN - COUNT( * ) * - 13 THEN 42 ELSE NULL END + 71 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3336
SELECT - 94 + - - 35 * 73 * + COUNT ( * ) + CAST ( + 44 AS INTEGER ) * + 48 + SUM ( DISTINCT 1 ) + + ( - 12 ) * 48 + + CASE + SUM ( ALL + 60 ) WHEN - COUNT ( * ) * - 13 THEN 42 ELSE NULL END + 71 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3337
SELECT - COUNT( * ) * + 72 AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-3337
SELECT - COUNT ( * ) * + 72 AS col1
----
-72

query I rowsort
SELECT DISTINCT ( + 30 )
----
30

query I rowsort
SELECT ALL ( + - 19 ) col2
----
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3340
SELECT - 76 + + MAX( + 55 ) DIV 26
----
-74

skipif mysql # not compatible
query I rowsort label-3340
SELECT - 76 + + MAX ( + 55 ) / 26
----
-74

query II rowsort
SELECT - 53 AS col2, 34
----
-53
34

onlyif mysql # aggregate syntax: 
query I rowsort label-3342
SELECT ALL + 87 - - COUNT( + 8 ) AS col1
----
88

skipif mysql # not compatible
query I rowsort label-3342
SELECT ALL + 87 - - COUNT ( + 8 ) AS col1
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3343
SELECT ALL NULLIF ( + CAST( NULL AS SIGNED ), + 60 * + 62 ), 65 AS col2
----
NULL
65

skipif mysql # not compatible
query II rowsort label-3343
SELECT ALL NULLIF ( + CAST ( NULL AS INTEGER ), + 60 * + 62 ), 65 AS col2
----
NULL
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3344
SELECT ALL + 97 * + - COUNT( * ) col1
----
-97

skipif mysql # not compatible
query I rowsort label-3344
SELECT ALL + 97 * + - COUNT ( * ) col1
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3345
SELECT - NULLIF ( 20, + 86 + 71 * - 25 * + COUNT( * ) ) + - - COUNT( * )
----
-19

skipif mysql # not compatible
query I rowsort label-3345
SELECT - NULLIF ( 20, + 86 + 71 * - 25 * + COUNT ( * ) ) + - - COUNT ( * )
----
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-3346
SELECT ALL 37 DIV - 41 - 80
----
-80

skipif mysql # not compatible
query I rowsort label-3346
SELECT ALL 37 / - 41 - 80
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3347
SELECT CAST( + 89 AS SIGNED ) * - 99 - CAST( - CASE - - 29 WHEN 76 THEN + 97 * 80 WHEN - - 27 - + 73 * + 21 THEN - 93 WHEN COUNT( * ) THEN MIN( DISTINCT + 77 ) ELSE NULL END AS SIGNED ) + 12
----
NULL

skipif mysql # not compatible
query I rowsort label-3347
SELECT CAST ( + 89 AS INTEGER ) * - 99 - CAST ( - CASE - - 29 WHEN 76 THEN + 97 * 80 WHEN - - 27 - + 73 * + 21 THEN - 93 WHEN COUNT ( * ) THEN MIN ( DISTINCT + 77 ) ELSE NULL END AS INTEGER ) + 12
----
NULL

query II rowsort
SELECT ALL + 25 AS col1, - 18
----
25
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-3349
SELECT DISTINCT + 70 * + NULLIF ( - 76, + 21 * + COUNT( * ) * + MIN( ALL - - 26 ) ) AS col0
----
-5320

skipif mysql # not compatible
query I rowsort label-3349
SELECT DISTINCT + 70 * + NULLIF ( - 76, + 21 * + COUNT ( * ) * + MIN ( ALL - - 26 ) ) AS col0
----
-5320

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3350
SELECT CAST( NULL AS DECIMAL ) AS col0, NULLIF ( - NULLIF ( - - ( + 76 ), - 60 / + NULLIF ( + - 23, + - 69 * + - 68 + + 88 * + COUNT( * ) + + 32 * - 73 ) + + 43 ), 36 ) AS col0
----
NULL
-76

skipif mysql # not compatible
query II rowsort label-3350
SELECT CAST ( NULL AS REAL ) AS col0, NULLIF ( - NULLIF ( - - ( + 76 ), - 60 / + NULLIF ( + - 23, + - 69 * + - 68 + + 88 * + COUNT ( * ) + + 32 * - 73 ) + + 43 ), 36 ) AS col0
----
NULL
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3351
SELECT + 86 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3351
SELECT + 86 / + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3352
SELECT + 63 + + 80 + - COUNT( * ) AS col1
----
142

skipif mysql # not compatible
query I rowsort label-3352
SELECT + 63 + + 80 + - COUNT ( * ) AS col1
----
142

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3353
SELECT - CAST( NULL AS DECIMAL ) * + 15 * + + 39 AS col0, CAST( NULL AS SIGNED ) col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3353
SELECT - CAST ( NULL AS REAL ) * + 15 * + + 39 AS col0, CAST ( NULL AS INTEGER ) col0
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3354
SELECT + 39 + + - 43 + - - 96 * COUNT( ALL 42 ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-3354
SELECT + 39 + + - 43 + - - 96 * COUNT ( ALL 42 ) AS col2
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-3355
SELECT ALL - 76 DIV - 47
----
1

skipif mysql # not compatible
query I rowsort label-3355
SELECT ALL - 76 / - 47
----
1

query I rowsort
SELECT DISTINCT + 43 * + 21
----
903

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3357
SELECT ALL + - 61 / + + 79 + - 13 + 52 * - CAST( NULL AS SIGNED ) * + NULLIF ( + 45, + 97 * ( - MAX( - NULLIF ( 54, + 68 ) ) ) + - 40 * - COUNT( * ) + - 28 ) * 70
----
NULL

skipif mysql # not compatible
query I rowsort label-3357
SELECT ALL + - 61 / + + 79 + - 13 + 52 * - CAST ( NULL AS INTEGER ) * + NULLIF ( + 45, + 97 * ( - MAX ( - NULLIF ( 54, + 68 ) ) ) + - 40 * - COUNT ( * ) + - 28 ) * 70
----
NULL

query II rowsort
SELECT + + 40 AS col1, + 94 col1
----
40
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3359
SELECT ALL + SUM( DISTINCT - 98 ) * - 64 + - 77 AS col1
----
6195

skipif mysql # not compatible
query I rowsort label-3359
SELECT ALL + SUM ( DISTINCT - 98 ) * - 64 + - 77 AS col1
----
6195

onlyif mysql # aggregate syntax: 
query I rowsort label-3360
SELECT + - COALESCE ( + 91, - - COUNT( ALL + 25 ) * + 61 )
----
-91

skipif mysql # not compatible
query I rowsort label-3360
SELECT + - COALESCE ( + 91, - - COUNT ( ALL + 25 ) * + 61 )
----
-91

query I rowsort
SELECT + - 86 - - - 12 AS col2
----
-98

query I rowsort
SELECT NULLIF ( 52, - 74 ) AS col0
----
52

query I rowsort
SELECT ALL + + 0 * - 95 * 88 * - 24 + 78 + 93 col0
----
171

query I rowsort
SELECT ALL ( - 49 )
----
-49

query I rowsort
SELECT DISTINCT - 31 + + 85 AS col0
----
54

query I rowsort
SELECT - 61 * 30
----
-1830

onlyif mysql # aggregate syntax: 
query I rowsort label-3367
SELECT ALL MAX( - - 8 ) AS col0
----
8

skipif mysql # not compatible
query I rowsort label-3367
SELECT ALL MAX ( - - 8 ) AS col0
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-3368
SELECT ALL + 98 - - - 33 * 66 AS col2, - SUM( DISTINCT 29 ) * - 47 * + - 64 AS col0
----
-2080
-87232

skipif mysql # not compatible
query II rowsort label-3368
SELECT ALL + 98 - - - 33 * 66 AS col2, - SUM ( DISTINCT 29 ) * - 47 * + - 64 AS col0
----
-2080
-87232

onlyif mysql # aggregate syntax: 
query I rowsort label-3369
SELECT - NULLIF ( MAX( 72 ), + 59 + + 24 )
----
-72

skipif mysql # not compatible
query I rowsort label-3369
SELECT - NULLIF ( MAX ( 72 ), + 59 + + 24 )
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-3370
SELECT ALL - - 60 - + - 85 - MAX( - - 6 ) * 95 AS col1
----
-425

skipif mysql # not compatible
query I rowsort label-3370
SELECT ALL - - 60 - + - 85 - MAX ( - - 6 ) * 95 AS col1
----
-425

query I rowsort
SELECT + 27 * + - 26 * 77
----
-54054

query I rowsort
SELECT 71 * 62 AS col0
----
4402

query I rowsort
SELECT DISTINCT 24 * + 21
----
504

query I rowsort
SELECT ALL + 55 * + 84
----
4620

query I rowsort
SELECT DISTINCT 88 * + 63
----
5544

onlyif mysql # aggregate syntax: 
query I rowsort label-3376
SELECT DISTINCT 64 * + 93 * COUNT( * ) AS col1
----
5952

skipif mysql # not compatible
query I rowsort label-3376
SELECT DISTINCT 64 * + 93 * COUNT ( * ) AS col1
----
5952

query I rowsort
SELECT ALL 23 * + + 15
----
345

query I rowsort
SELECT ALL 81 * - 70
----
-5670

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3379
SELECT DISTINCT - 11 DIV - 55 * COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-3379
SELECT DISTINCT - 11 / - 55 * COUNT ( * )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3380
SELECT 64 DIV - - COUNT( * )
----
64

skipif mysql # not compatible
query I rowsort label-3380
SELECT 64 / - - COUNT ( * )
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3381
SELECT ( - - 19 ) * - 83 * + 95 + + 12 + + 29 + - 98 * + COUNT( * )
----
-149872

skipif mysql # not compatible
query I rowsort label-3381
SELECT ( - - 19 ) * - 83 * + 95 + + 12 + + 29 + - 98 * + COUNT ( * )
----
-149872

query I rowsort
SELECT 9 * 96
----
864

query I rowsort
SELECT ALL + 66 + - + 89
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-3384
SELECT + 95 DIV - 2 + - 19 AS col0
----
-66

skipif mysql # not compatible
query I rowsort label-3384
SELECT + 95 / - 2 + - 19 AS col0
----
-66

query II rowsort
SELECT 86 * - + 50 AS col2, ( - 75 ) AS col1
----
-4300
-75

query I rowsort
SELECT 89 + 51 AS col2
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-3387
SELECT DISTINCT + 39 * - COUNT( * )
----
-39

skipif mysql # not compatible
query I rowsort label-3387
SELECT DISTINCT + 39 * - COUNT ( * )
----
-39

query I rowsort
SELECT ALL + 66 + 8
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3389
SELECT DISTINCT - 12 + + MAX( 12 ) + + 67 - + 9 + 35 + + - 43 * 31 - + ( COALESCE ( - - 45, + - 51 + ( - 14 ) * 44, - 97 + - ( MAX( ALL - 79 ) - 64 ) * 84 ) ) AS col1
----
-1285

skipif mysql # not compatible
query I rowsort label-3389
SELECT DISTINCT - 12 + + MAX ( 12 ) + + 67 - + 9 + 35 + + - 43 * 31 - + ( COALESCE ( - - 45, + - 51 + ( - 14 ) * 44, - 97 + - ( MAX ( ALL - 79 ) - 64 ) * 84 ) ) AS col1
----
-1285

query II rowsort
SELECT ALL + - 1 + 44 * + + ( 20 ) AS col2, COALESCE ( + ( - 54 ), 8, + ( - 29 ) + - - 69 )
----
879
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-3391
SELECT ALL - - COUNT( * ) + - - COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-3391
SELECT ALL - - COUNT ( * ) + - - COUNT ( * )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3392
SELECT + 30 * + - 17 + + COUNT( * ) - - 73 + - NULLIF ( - 23, - 42 * - 87 / - + 91 + + - ( + 58 ) + + 31 * - - 96 )
----
-413

skipif mysql # not compatible
query I rowsort label-3392
SELECT + 30 * + - 17 + + COUNT ( * ) - - 73 + - NULLIF ( - 23, - 42 * - 87 / - + 91 + + - ( + 58 ) + + 31 * - - 96 )
----
-413

onlyif mysql # aggregate syntax: 
query I rowsort label-3393
SELECT DISTINCT + 87 * + + COUNT( * )
----
87

skipif mysql # not compatible
query I rowsort label-3393
SELECT DISTINCT + 87 * + + COUNT ( * )
----
87

query II rowsort
SELECT + 43 + + 96, - ( - 92 ) * + + 76 * 54 col0
----
139
377568

query I rowsort
SELECT ALL + + 9 * + 36 AS col0
----
324

query I rowsort
SELECT ALL + 95 + - 87
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3397
SELECT ( - MAX( - - 21 ) ) col2
----
-21

skipif mysql # not compatible
query I rowsort label-3397
SELECT ( - MAX ( - - 21 ) ) col2
----
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-3398
SELECT + 50 * + - 50 + - 5 * - COUNT( * ), + 59 * - COUNT( * ) AS col0
----
-2495
-59

skipif mysql # not compatible
query II rowsort label-3398
SELECT + 50 * + - 50 + - 5 * - COUNT ( * ), + 59 * - COUNT ( * ) AS col0
----
-2495
-59

query I rowsort
SELECT - 42 * + - 90 - 89 - 42 AS col1
----
3649

onlyif mysql # aggregate syntax: 
query I rowsort label-3400
SELECT + + 87 * + - 87 + + 93 - + COUNT( * ) AS col0
----
-7477

skipif mysql # not compatible
query I rowsort label-3400
SELECT + + 87 * + - 87 + + 93 - + COUNT ( * ) AS col0
----
-7477

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3401
SELECT DISTINCT + 71 DIV + + 5 + + COUNT( * ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-3401
SELECT DISTINCT + 71 / + + 5 + + COUNT ( * ) AS col0
----
15

query I rowsort
SELECT DISTINCT - - 67 + - 44 * 67 AS col2
----
-2881

query I rowsort
SELECT DISTINCT + - 4 - + + 41 + + + NULLIF ( 97, - 19 + - 36 / + 3 * + + 61 ) AS col0
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3404
SELECT DISTINCT - - 91 DIV + + COUNT( * ) AS col2
----
91

skipif mysql # not compatible
query I rowsort label-3404
SELECT DISTINCT - - 91 / + + COUNT ( * ) AS col2
----
91

query I rowsort
SELECT DISTINCT 7 - + 65 + - - 35
----
-23

query I rowsort
SELECT + 81 * + 60
----
4860

query I rowsort
SELECT 55 + + 82 * 4 AS col0
----
383

onlyif mysql # aggregate syntax: 
query I rowsort label-3408
SELECT ALL + 96 * + COUNT( * ) AS col1
----
96

skipif mysql # not compatible
query I rowsort label-3408
SELECT ALL + 96 * + COUNT ( * ) AS col1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3409
SELECT ( + + COUNT( 9 ) ) + + MAX( - + 22 ) - - - ( + 96 )
----
-117

skipif mysql # not compatible
query I rowsort label-3409
SELECT ( + + COUNT ( 9 ) ) + + MAX ( - + 22 ) - - - ( + 96 )
----
-117

query I rowsort
SELECT DISTINCT 47 * + 43
----
2021

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3411
SELECT AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) + 72
----
NULL

skipif mysql # not compatible
query I rowsort label-3411
SELECT AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) + 72
----
NULL

query II rowsort
SELECT ALL 5, + 14 * 66 * 10 + 42 AS col1
----
5
9282

query II rowsort
SELECT 58 AS col2, 2
----
58
2

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3414
SELECT ( + 63 ) + + - CAST( NULL AS DECIMAL ) + - - 13 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3414
SELECT ( + 63 ) + + - CAST ( NULL AS REAL ) + - - 13 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3415
SELECT 9 DIV - ( - 15 ) * + - 92
----
0

skipif mysql # not compatible
query I rowsort label-3415
SELECT 9 / - ( - 15 ) * + - 92
----
0

query I rowsort
SELECT 80 * + 91 * 0 * - ( - 88 ) AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3417
SELECT 15 + 6 * - CAST( - - 58 AS SIGNED ) - - ( 11 ) col1, 97
----
-322
97

skipif mysql # not compatible
query II rowsort label-3417
SELECT 15 + 6 * - CAST ( - - 58 AS INTEGER ) - - ( 11 ) col1, 97
----
-322
97

query I rowsort
SELECT ALL 69 * 26 AS col2
----
1794

onlyif mysql # aggregate syntax: 
query I rowsort label-3419
SELECT - COUNT( + 48 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3419
SELECT - COUNT ( + 48 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3420
SELECT - COUNT( ALL - 59 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3420
SELECT - COUNT ( ALL - 59 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3421
SELECT DISTINCT ( + 75 ) * + 46 + - ( - COUNT( * ) ) + 60
----
3511

skipif mysql # not compatible
query I rowsort label-3421
SELECT DISTINCT ( + 75 ) * + 46 + - ( - COUNT ( * ) ) + 60
----
3511

query I rowsort
SELECT ALL 33 * ( - + 42 )
----
-1386

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3423
SELECT ALL + 41 * - - 0 + + 59 - - CASE - 79 WHEN + 93 * - COUNT( * ) + ( 57 ) THEN + + 70 * - - 30 END * + - 60 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3423
SELECT ALL + 41 * - - 0 + + 59 - - CASE - 79 WHEN + 93 * - COUNT ( * ) + ( 57 ) THEN + + 70 * - - 30 END * + - 60 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 14 + + 37 AS col2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3425
SELECT DISTINCT - + 75 * + 60 + - + COUNT( * ) + 14 AS col0
----
-4487

skipif mysql # not compatible
query I rowsort label-3425
SELECT DISTINCT - + 75 * + 60 + - + COUNT ( * ) + 14 AS col0
----
-4487

onlyif mysql # aggregate syntax: 
query I rowsort label-3426
SELECT + + NULLIF ( - MAX( 97 ), - 35 * - 69 ) AS col1
----
-97

skipif mysql # not compatible
query I rowsort label-3426
SELECT + + NULLIF ( - MAX ( 97 ), - 35 * - 69 ) AS col1
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3427
SELECT ALL + 62 * 70 * - CAST( - - COALESCE ( 79, + AVG ( ALL - - 41 ) ) AS SIGNED ) * + 31 + + CASE - 76 WHEN ( - CAST( NULL AS SIGNED ) ) THEN + + ( + 38 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3427
SELECT ALL + 62 * 70 * - CAST ( - - COALESCE ( 79, + AVG ( ALL - - 41 ) ) AS INTEGER ) * + 31 + + CASE - 76 WHEN ( - CAST ( NULL AS INTEGER ) ) THEN + + ( + 38 ) END
----
NULL

query I rowsort
SELECT + 89 + 49 + - - 34
----
172

query I rowsort
SELECT - 63 + - 73 + + 78 AS col2
----
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3430
SELECT + + COALESCE ( - 2, - + 17 DIV + - 11 + - 31 + SUM( + NULLIF ( + - 71, + + 77 ) ), + - 40 )
----
-2

skipif mysql # not compatible
query I rowsort label-3430
SELECT + + COALESCE ( - 2, - + 17 / + - 11 + - 31 + SUM ( + NULLIF ( + - 71, + + 77 ) ), + - 40 )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3431
SELECT - 85 * 39 + - MAX( ALL 7 ) + - 76
----
-3398

skipif mysql # not compatible
query I rowsort label-3431
SELECT - 85 * 39 + - MAX ( ALL 7 ) + - 76
----
-3398

onlyif mysql # DIV for integer division: 
query I rowsort label-3432
SELECT - - 3 * 70 DIV + + 89
----
2

skipif mysql # not compatible
query I rowsort label-3432
SELECT - - 3 * 70 / + + 89
----
2

query I rowsort
SELECT ALL - 98 * + 77 AS col2
----
-7546

query I rowsort
SELECT ALL - - 89 * - - 69 * + ( 87 )
----
534267

query I rowsort
SELECT - 9 - + + 1
----
-10

query I rowsort
SELECT - + 26 * + 54 AS col2
----
-1404

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3437
SELECT + 97 * COUNT( * ) * + - 35 + 99 + - 10 * + + 37 - 9 DIV - 79 * CAST( 1 AS SIGNED )
----
-3666

skipif mysql # not compatible
query I rowsort label-3437
SELECT + 97 * COUNT ( * ) * + - 35 + 99 + - 10 * + + 37 - 9 / - 79 * CAST ( 1 AS INTEGER )
----
-3666

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3438
SELECT DISTINCT + + 58, CAST( 99 AS SIGNED ) - - - 79 AS col2
----
58
20

skipif mysql # not compatible
query II rowsort label-3438
SELECT DISTINCT + + 58, CAST ( 99 AS INTEGER ) - - - 79 AS col2
----
58
20

onlyif mysql # DIV for integer division: 
query I rowsort label-3439
SELECT - 24 DIV - 52 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3439
SELECT - 24 / - 52 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3440
SELECT ALL 35 DIV - CAST( + 33 AS SIGNED ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3440
SELECT ALL 35 / - CAST ( + 33 AS INTEGER ) AS col0
----
-1

query I rowsort
SELECT DISTINCT NULLIF ( 64, + 40 )
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3442
SELECT ALL CASE - MAX( ALL - + 21 ) WHEN MAX( ALL 1 ) THEN NULL ELSE 18 * + 61 * 93 END
----
102114

skipif mysql # not compatible
query I rowsort label-3442
SELECT ALL CASE - MAX ( ALL - + 21 ) WHEN MAX ( ALL 1 ) THEN NULL ELSE 18 * + 61 * 93 END
----
102114

onlyif mysql # aggregate syntax: 
query II rowsort label-3443
SELECT - COUNT( - 12 ) AS col1, 1 col0
----
-1
1

skipif mysql # not compatible
query II rowsort label-3443
SELECT - COUNT ( - 12 ) AS col1, 1 col0
----
-1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3444
SELECT ALL - 38 DIV + 90
----
0

skipif mysql # not compatible
query I rowsort label-3444
SELECT ALL - 38 / + 90
----
0

query I rowsort
SELECT ALL + 29 + + 13 AS col0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-3446
SELECT - COUNT( * ) - - 9 * 72 * - + MAX( ALL - 80 )
----
51839

skipif mysql # not compatible
query I rowsort label-3446
SELECT - COUNT ( * ) - - 9 * 72 * - + MAX ( ALL - 80 )
----
51839

onlyif mysql # aggregate syntax: 
query I rowsort label-3447
SELECT ALL - 65 + - MIN( DISTINCT + 80 ) AS col0
----
-145

skipif mysql # not compatible
query I rowsort label-3447
SELECT ALL - 65 + - MIN ( DISTINCT + 80 ) AS col0
----
-145

onlyif mysql # aggregate syntax: 
query I rowsort label-3448
SELECT DISTINCT 93 * + COUNT( * ) AS col0
----
93

skipif mysql # not compatible
query I rowsort label-3448
SELECT DISTINCT 93 * + COUNT ( * ) AS col0
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3449
SELECT ALL COUNT( ALL - 9 ) + 14 + - SUM( - 3 ) + - 83 * + 88 + - 78 * + 58 + + AVG ( DISTINCT + NULLIF ( - + CASE - + CAST( NULL AS SIGNED ) WHEN + 75 THEN ( 29 ) ELSE NULL END, + 30 * 56 + 48 ) ) + - 96 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3449
SELECT ALL COUNT ( ALL - 9 ) + 14 + - SUM ( - 3 ) + - 83 * + 88 + - 78 * + 58 + + AVG ( DISTINCT + NULLIF ( - + CASE - + CAST ( NULL AS INTEGER ) WHEN + 75 THEN ( 29 ) ELSE NULL END, + 30 * 56 + 48 ) ) + - 96 AS col2
----
NULL

query I rowsort
SELECT ALL 28 * + 40
----
1120

query I rowsort
SELECT DISTINCT + 11 + + 50
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-3452
SELECT - CASE - 16 WHEN + + 31 * ( SUM( ALL 10 ) ) THEN 66 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3452
SELECT - CASE - 16 WHEN + + 31 * ( SUM ( ALL 10 ) ) THEN 66 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3453
SELECT ALL ( + ( - - COUNT( * ) ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3453
SELECT ALL ( + ( - - COUNT ( * ) ) ) AS col0
----
1

query I rowsort
SELECT ALL 92 * ( - 13 )
----
-1196

query I rowsort
SELECT + 4 * - + 27 AS col2
----
-108

onlyif mysql # aggregate syntax: 
query II rowsort label-3456
SELECT ALL COUNT( * ) AS col0, + 35 col0
----
1
35

skipif mysql # not compatible
query II rowsort label-3456
SELECT ALL COUNT ( * ) AS col0, + 35 col0
----
1
35

onlyif mysql # DIV for integer division: 
query II rowsort label-3457
SELECT DISTINCT 32 AS col1, + 24 DIV + 88
----
32
0

skipif mysql # not compatible
query II rowsort label-3457
SELECT DISTINCT 32 AS col1, + 24 / + 88
----
32
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3458
SELECT ALL CASE + 52 WHEN SUM( - + CAST( NULL AS SIGNED ) ) THEN - COUNT( * ) WHEN + ( 33 ) * 76 + + 87 - 12 * COUNT( 31 ) * CASE - 36 WHEN 47 THEN NULL WHEN - 86 * 73 THEN 32 DIV 15 + + COUNT( * ) * + 87 END * 32 + 3 * - 29 THEN - CAST( NULL AS SIGNED ) * + 65 ELSE MAX( 24 ) DIV + COUNT( * ) END + NULLIF ( + 39 + - 42, - MIN( DISTINCT + 20 ) - 78 ) col2
----
21

skipif mysql # not compatible
query I rowsort label-3458
SELECT ALL CASE + 52 WHEN SUM ( - + CAST ( NULL AS INTEGER ) ) THEN - COUNT ( * ) WHEN + ( 33 ) * 76 + + 87 - 12 * COUNT ( 31 ) * CASE - 36 WHEN 47 THEN NULL WHEN - 86 * 73 THEN 32 / 15 + + COUNT ( * ) * + 87 END * 32 + 3 * - 29 THEN - CAST ( NULL AS INTEGER ) * + 65 ELSE MAX ( 24 ) / + COUNT ( * ) END + NULLIF ( + 39 + - 42, - MIN ( DISTINCT + 20 ) - 78 ) col2
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3459
SELECT - CAST( - 18 AS SIGNED ) + 31
----
49

skipif mysql # not compatible
query I rowsort label-3459
SELECT - CAST ( - 18 AS INTEGER ) + 31
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3460
SELECT ALL 94 + - 96 * COALESCE ( 4, + COALESCE ( 5, MIN( ALL 80 ) * 36 + + ( 13 ) + + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) + - 98 ) ) * - 82 AS col0
----
31582

skipif mysql # not compatible
query I rowsort label-3460
SELECT ALL 94 + - 96 * COALESCE ( 4, + COALESCE ( 5, MIN ( ALL 80 ) * 36 + + ( 13 ) + + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) + - 98 ) ) * - 82 AS col0
----
31582

onlyif mysql # aggregate syntax: 
query II rowsort label-3461
SELECT + 64 + - 5 + + MAX( - ( - 53 ) ) + - 72 AS col0, - MIN( + + 73 ) * - + 49 * + - 1 + - 46 * - 83
----
40
241

skipif mysql # not compatible
query II rowsort label-3461
SELECT + 64 + - 5 + + MAX ( - ( - 53 ) ) + - 72 AS col0, - MIN ( + + 73 ) * - + 49 * + - 1 + - 46 * - 83
----
40
241

query I rowsort
SELECT + - 42 * + 69 * ( + 53 )
----
-153594

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3463
SELECT ALL + 37 DIV - COUNT( + 33 ) AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-3463
SELECT ALL + 37 / - COUNT ( + 33 ) AS col0
----
-37

query I rowsort
SELECT + - ( + 34 ) + + 69
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3465
SELECT ALL - 93 DIV + - ( - 42 ) * - COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-3465
SELECT ALL - 93 / + - ( - 42 ) * - COUNT ( * )
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3466
SELECT DISTINCT CAST( NULL AS SIGNED ) * + 20 * - MIN( 6 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3466
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 20 * - MIN ( 6 ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + + 47 * + 36 - 56 col0
----
1636

query II rowsort
SELECT ALL + 92 AS col0, ( + + 40 ) AS col2
----
92
40

query I rowsort
SELECT DISTINCT + 68 * 30 AS col1
----
2040

onlyif mysql # aggregate syntax: 
query I rowsort label-3470
SELECT - 41 + + 64 * 33 * - COUNT( * )
----
-2153

skipif mysql # not compatible
query I rowsort label-3470
SELECT - 41 + + 64 * 33 * - COUNT ( * )
----
-2153

query I rowsort
SELECT - + ( - - 71 ) * 84 + + 61
----
-5903

onlyif mysql # DIV for integer division: 
query II rowsort label-3472
SELECT - - 66 DIV + 92 + + 41 + - 48 col0, 50
----
-7
50

skipif mysql # not compatible
query II rowsort label-3472
SELECT - - 66 / + 92 + + 41 + - 48 col0, 50
----
-7
50

query II rowsort
SELECT ALL + 61, 84 + + 78 AS col1
----
61
162

onlyif mysql # DIV for integer division: 
query I rowsort label-3474
SELECT 97 DIV 69 + + 11
----
12

skipif mysql # not compatible
query I rowsort label-3474
SELECT 97 / 69 + + 11
----
12

query II rowsort
SELECT + ( ( - 86 ) ) * 1 * + - 16 - 77, CASE + + ( - + ( + 58 ) ) WHEN - + 70 THEN NULL WHEN + 96 THEN NULL WHEN + 58 * - - 44 THEN - + COALESCE ( + 3, 29 * + 45 + + 84 ) ELSE NULL END AS col1
----
1299
NULL

query I rowsort
SELECT + + 80 * - 13 * + - COALESCE ( 15, - 3, + 83 )
----
15600

query II rowsort
SELECT ALL + 9 AS col1, + ( + 92 ) + + - 75
----
9
17

onlyif mysql # aggregate syntax: 
query I rowsort label-3478
SELECT ALL + - COUNT( ALL - 62 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3478
SELECT ALL + - COUNT ( ALL - 62 ) AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3479
SELECT - ( 67 ) - + 10 * ( CAST( + 6 AS SIGNED ) ) AS col0
----
-127

skipif mysql # not compatible
query I rowsort label-3479
SELECT - ( 67 ) - + 10 * ( CAST ( + 6 AS INTEGER ) ) AS col0
----
-127

query I rowsort
SELECT DISTINCT 77 * 91 + - + 57
----
6950

onlyif mysql # aggregate syntax: 
query I rowsort label-3481
SELECT + COUNT( * ) * 51 + - COUNT( * ) + + 61 AS col0
----
111

skipif mysql # not compatible
query I rowsort label-3481
SELECT + COUNT ( * ) * 51 + - COUNT ( * ) + + 61 AS col0
----
111

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3482
SELECT ALL + CAST( - 93 AS SIGNED ) AS col1
----
-93

skipif mysql # not compatible
query I rowsort label-3482
SELECT ALL + CAST ( - 93 AS INTEGER ) AS col1
----
-93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3483
SELECT ALL 52 * + - COUNT( * ) DIV + ( + COUNT( * ) ) + - COUNT( * )
----
-53

skipif mysql # not compatible
query I rowsort label-3483
SELECT ALL 52 * + - COUNT ( * ) / + ( + COUNT ( * ) ) + - COUNT ( * )
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3484
SELECT + 64 * - + 38 + - ( + - CAST( NULL AS SIGNED ) ) * + 55
----
NULL

skipif mysql # not compatible
query I rowsort label-3484
SELECT + 64 * - + 38 + - ( + - CAST ( NULL AS INTEGER ) ) * + 55
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3485
SELECT MIN( DISTINCT - - COALESCE ( - 57, 94 * - 54 ) )
----
-57

skipif mysql # not compatible
query I rowsort label-3485
SELECT MIN ( DISTINCT - - COALESCE ( - 57, 94 * - 54 ) )
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-3486
SELECT DISTINCT + COUNT( * ) * + 46 AS col2
----
46

skipif mysql # not compatible
query I rowsort label-3486
SELECT DISTINCT + COUNT ( * ) * + 46 AS col2
----
46

query I rowsort
SELECT - 58 + + + 87 AS col0
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3488
SELECT ALL CAST( 63 AS SIGNED ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-3488
SELECT ALL CAST ( 63 AS INTEGER ) AS col2
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3489
SELECT - COALESCE ( + 54, + 46 * + 67, + 66 * + 34 * + 0 + 88 ) + - - COUNT( * ) * - ( - 65 ) AS col0
----
11

skipif mysql # not compatible
query I rowsort label-3489
SELECT - COALESCE ( + 54, + 46 * + 67, + 66 * + 34 * + 0 + 88 ) + - - COUNT ( * ) * - ( - 65 ) AS col0
----
11

query II rowsort
SELECT ALL - 34 + + 58 AS col1, - 14 * 59
----
24
-826

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3491
SELECT - 28 + ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3491
SELECT - 28 + ( CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3492
SELECT DISTINCT - 53 + + NULLIF ( + 54, - 98 ) * COUNT( * ) + - 46 * 57
----
-2621

skipif mysql # not compatible
query I rowsort label-3492
SELECT DISTINCT - 53 + + NULLIF ( + 54, - 98 ) * COUNT ( * ) + - 46 * 57
----
-2621

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3493
SELECT ALL ( COALESCE ( - 98, + 68 - 1, + 13 DIV + - COUNT( * ) * 72 ) ) * + 28 + - 80 + + 77 + - 32 * - 7 AS col1
----
-2523

skipif mysql # not compatible
query I rowsort label-3493
SELECT ALL ( COALESCE ( - 98, + 68 - 1, + 13 / + - COUNT ( * ) * 72 ) ) * + 28 + - 80 + + 77 + - 32 * - 7 AS col1
----
-2523

onlyif mysql # DIV for integer division: 
query I rowsort label-3494
SELECT DISTINCT + 89 DIV - - 73
----
1

skipif mysql # not compatible
query I rowsort label-3494
SELECT DISTINCT + 89 / - - 73
----
1

query I rowsort
SELECT + 57 + + - ( - 71 )
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-3496
SELECT + COUNT( DISTINCT 40 ) + 28
----
29

skipif mysql # not compatible
query I rowsort label-3496
SELECT + COUNT ( DISTINCT 40 ) + 28
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3497
SELECT ALL - NULLIF ( - 71, - COALESCE ( - + COUNT( * ), - + 79 * CAST( 83 AS DECIMAL ) ) + CAST( NULL AS SIGNED ) ) * + 92
----
6532

skipif mysql # not compatible
query I rowsort label-3497
SELECT ALL - NULLIF ( - 71, - COALESCE ( - + COUNT ( * ), - + 79 * CAST ( 83 AS REAL ) ) + CAST ( NULL AS INTEGER ) ) * + 92
----
6532

onlyif mysql # aggregate syntax: 
query I rowsort label-3498
SELECT - COALESCE ( 53, + COUNT( DISTINCT - ( 55 ) ), + + 1 ) AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-3498
SELECT - COALESCE ( 53, + COUNT ( DISTINCT - ( 55 ) ), + + 1 ) AS col2
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-3499
SELECT ALL COUNT( + 78 )
----
1

skipif mysql # not compatible
query I rowsort label-3499
SELECT ALL COUNT ( + 78 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3500
SELECT DISTINCT 10 * + - COUNT( * ) / + + 29 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3500
SELECT DISTINCT 10 * + - COUNT ( * ) / + + 29 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3501
SELECT DISTINCT + ( + SUM( DISTINCT - 76 ) ) * - 45 * - 54 col0
----
-184680

skipif mysql # not compatible
query I rowsort label-3501
SELECT DISTINCT + ( + SUM ( DISTINCT - 76 ) ) * - 45 * - 54 col0
----
-184680

query I rowsort
SELECT DISTINCT - COALESCE ( ( 87 ), - 99, + 40 ) AS col0
----
-87

query I rowsort
SELECT + - ( + ( + + 75 ) )
----
-75

query I rowsort
SELECT 40 * + 54 col0
----
2160

onlyif mysql # aggregate syntax: 
query I rowsort label-3505
SELECT MIN( - + ( 43 ) )
----
-43

skipif mysql # not compatible
query I rowsort label-3505
SELECT MIN ( - + ( 43 ) )
----
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-3506
SELECT + - CASE + 33 WHEN + 45 THEN + COALESCE ( + 70, + - 77 + - 99 ) DIV 93 DIV - 80 ELSE - 92 END
----
92

skipif mysql # not compatible
query I rowsort label-3506
SELECT + - CASE + 33 WHEN + 45 THEN + COALESCE ( + 70, + - 77 + - 99 ) / 93 / - 80 ELSE - 92 END
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-3507
SELECT 19 DIV 54 * 30
----
0

skipif mysql # not compatible
query I rowsort label-3507
SELECT 19 / 54 * 30
----
0

query I rowsort
SELECT DISTINCT 40 * - + ( 6 ) AS col1
----
-240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3509
SELECT DISTINCT + CAST( - - ( COUNT( * ) ) AS SIGNED ) DIV + ( + 74 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3509
SELECT DISTINCT + CAST ( - - ( COUNT ( * ) ) AS INTEGER ) / + ( + 74 ) AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3510
SELECT ALL 58 + COALESCE ( - CAST( - 65 AS SIGNED ), + + ( 75 ) + - 70 * 1 ) * - - 20
----
1358

skipif mysql # not compatible
query I rowsort label-3510
SELECT ALL 58 + COALESCE ( - CAST ( - 65 AS INTEGER ), + + ( 75 ) + - 70 * 1 ) * - - 20
----
1358

query I rowsort
SELECT - 27 - ( - 31 ) * + 55 AS col0
----
1678

onlyif mysql # aggregate syntax: 
query I rowsort label-3512
SELECT DISTINCT COUNT( * ) + + CASE - 97 WHEN - 57 * - + 43 THEN AVG ( + COALESCE ( + 83, 99 ) ) END / + + 35 + 50
----
NULL

skipif mysql # not compatible
query I rowsort label-3512
SELECT DISTINCT COUNT ( * ) + + CASE - 97 WHEN - 57 * - + 43 THEN AVG ( + COALESCE ( + 83, 99 ) ) END / + + 35 + 50
----
NULL

query II rowsort
SELECT ALL - 54 AS col0, 38
----
-54
38

onlyif mysql # aggregate syntax: 
query I rowsort label-3514
SELECT COUNT( + + 16 ) * 6 - + + 43 + + COUNT( * ) + - - 93 + - + 44 + + + 31 * 84 AS col1
----
2617

skipif mysql # not compatible
query I rowsort label-3514
SELECT COUNT ( + + 16 ) * 6 - + + 43 + + COUNT ( * ) + - - 93 + - + 44 + + + 31 * 84 AS col1
----
2617

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3515
SELECT ALL 0 + + 0 * + 23 DIV + + COUNT( * ) AS col1, + 43
----
0
43

skipif mysql # not compatible
query II rowsort label-3515
SELECT ALL 0 + + 0 * + 23 / + + COUNT ( * ) AS col1, + 43
----
0
43

onlyif mysql # aggregate syntax: 
query I rowsort label-3516
SELECT ALL 59 + CASE + 96 WHEN 55 * NULLIF ( - + 37, + COUNT( * ) * + 63 - - 88 ) * + 4 * + - 5 THEN - 92 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3516
SELECT ALL 59 + CASE + 96 WHEN 55 * NULLIF ( - + 37, + COUNT ( * ) * + 63 - - 88 ) * + 4 * + - 5 THEN - 92 END
----
NULL

query II rowsort
SELECT + 91 AS col1, + 21 AS col2
----
91
21

onlyif mysql # aggregate syntax: 
query II rowsort label-3518
SELECT MIN( - + 96 ) + 10 * + COUNT( * ) col2, 38
----
-86
38

skipif mysql # not compatible
query II rowsort label-3518
SELECT MIN ( - + 96 ) + 10 * + COUNT ( * ) col2, 38
----
-86
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3519
SELECT + 47, 29 + MAX( ALL - - 4 ) + - 16 + - + MIN( + 12 ) DIV + 17 DIV + - CASE - 66 WHEN + COUNT( - - 68 ) * - 64 + + 25 DIV + 71 * + 6 + + + 25 + AVG ( 85 ) THEN NULL ELSE + COUNT( * ) END AS col1
----
47
17

skipif mysql # not compatible
query II rowsort label-3519
SELECT + 47, 29 + MAX ( ALL - - 4 ) + - 16 + - + MIN ( + 12 ) / + 17 / + - CASE - 66 WHEN + COUNT ( - - 68 ) * - 64 + + 25 / + 71 * + 6 + + + 25 + AVG ( 85 ) THEN NULL ELSE + COUNT ( * ) END AS col1
----
47
17

onlyif mysql # aggregate syntax: 
query I rowsort label-3520
SELECT - COUNT( * ) * 92 + + - 60 + - + 99 + - 42 * + 86
----
-3863

skipif mysql # not compatible
query I rowsort label-3520
SELECT - COUNT ( * ) * 92 + + - 60 + - + 99 + - 42 * + 86
----
-3863

query II rowsort
SELECT DISTINCT 54 AS col2, + 77 * 73 AS col0
----
54
5621

query I rowsort
SELECT ALL - 66 + - 47 AS col0
----
-113

query II rowsort
SELECT DISTINCT 7, 67 AS col0
----
7
67

query II rowsort
SELECT ALL + ( + 24 ) * 47 AS col1, 92 col2
----
1128
92

onlyif mysql # aggregate syntax: 
query I rowsort label-3525
SELECT ALL + COALESCE ( + 22, - - COUNT( ALL + 91 ) ) * - 65
----
-1430

skipif mysql # not compatible
query I rowsort label-3525
SELECT ALL + COALESCE ( + 22, - - COUNT ( ALL + 91 ) ) * - 65
----
-1430

onlyif mysql # aggregate syntax: 
query II rowsort label-3526
SELECT ( - 53 ) - COUNT( * ) AS col2, 15
----
-54
15

skipif mysql # not compatible
query II rowsort label-3526
SELECT ( - 53 ) - COUNT ( * ) AS col2, 15
----
-54
15

onlyif mysql # DIV for integer division: 
query I rowsort label-3527
SELECT DISTINCT + 94 * 28 * + + 44 DIV 11
----
10528

skipif mysql # not compatible
query I rowsort label-3527
SELECT DISTINCT + 94 * 28 * + + 44 / 11
----
10528

onlyif mysql # aggregate syntax: 
query I rowsort label-3528
SELECT ALL + COUNT( ALL + + 51 ) * 71 * COUNT( * ) + + 36 * - CASE + - 91 WHEN - + 43 * 68 + - 92 + + COUNT( * ) THEN NULL ELSE MIN( DISTINCT 34 ) END * 72
----
-88057

skipif mysql # not compatible
query I rowsort label-3528
SELECT ALL + COUNT ( ALL + + 51 ) * 71 * COUNT ( * ) + + 36 * - CASE + - 91 WHEN - + 43 * 68 + - 92 + + COUNT ( * ) THEN NULL ELSE MIN ( DISTINCT 34 ) END * 72
----
-88057

onlyif mysql # aggregate syntax: 
query II rowsort label-3529
SELECT DISTINCT 31 AS col1, + MIN( - + 61 )
----
31
-61

skipif mysql # not compatible
query II rowsort label-3529
SELECT DISTINCT 31 AS col1, + MIN ( - + 61 )
----
31
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-3530
SELECT DISTINCT + COUNT( + 24 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3530
SELECT DISTINCT + COUNT ( + 24 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3531
SELECT DISTINCT + + COUNT( * ) - - + 86
----
87

skipif mysql # not compatible
query I rowsort label-3531
SELECT DISTINCT + + COUNT ( * ) - - + 86
----
87

query I rowsort
SELECT 55 * + - 9 AS col0
----
-495

query II rowsort
SELECT ALL 5 AS col0, - 62 col1
----
5
-62

query I rowsort
SELECT 85 - 93 * - - 84
----
-7727

onlyif mysql # DIV for integer division: 
query I rowsort label-3535
SELECT ALL + + 74 DIV + 63 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3535
SELECT ALL + + 74 / + 63 AS col1
----
1

query I rowsort
SELECT - - COALESCE ( + + 68, 93, - 67 * 43, 56 )
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3537
SELECT + 9 * - COUNT( * )
----
-9

skipif mysql # not compatible
query I rowsort label-3537
SELECT + 9 * - COUNT ( * )
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-3538
SELECT ALL - 10 DIV 47
----
0

skipif mysql # not compatible
query I rowsort label-3538
SELECT ALL - 10 / 47
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3539
SELECT - 18 DIV + 84 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3539
SELECT - 18 / + 84 AS col1
----
0

query I rowsort
SELECT 11 + + 41
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3541
SELECT + - 55 * + 12 * COUNT( * ) * - CASE COUNT( * ) WHEN + 3 * + 25 - - 65 + - COUNT( * ) THEN + 99 END - - 54 + - CAST( NULL AS SIGNED ) * + + 99, MIN( ALL 56 ) col0
----
NULL
56

skipif mysql # not compatible
query II rowsort label-3541
SELECT + - 55 * + 12 * COUNT ( * ) * - CASE COUNT ( * ) WHEN + 3 * + 25 - - 65 + - COUNT ( * ) THEN + 99 END - - 54 + - CAST ( NULL AS INTEGER ) * + + 99, MIN ( ALL 56 ) col0
----
NULL
56

onlyif mysql # DIV for integer division: 
query II rowsort label-3542
SELECT ALL - - 1, 9 DIV 57 + ( + - 12 ) AS col1
----
1
-12

skipif mysql # not compatible
query II rowsort label-3542
SELECT ALL - - 1, 9 / 57 + ( + - 12 ) AS col1
----
1
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3543
SELECT + CAST( NULL AS SIGNED ) * + 94 + - 82
----
NULL

skipif mysql # not compatible
query I rowsort label-3543
SELECT + CAST ( NULL AS INTEGER ) * + 94 + - 82
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3544
SELECT ALL 29 * - COUNT( * ) - 98
----
-127

skipif mysql # not compatible
query I rowsort label-3544
SELECT ALL 29 * - COUNT ( * ) - 98
----
-127

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3545
SELECT ALL + CASE + 17 WHEN - 80 * + - CAST( NULL AS DECIMAL ) THEN NULL WHEN + 23 THEN NULL ELSE - + 86 END * - CAST( - + 73 AS SIGNED ) * - 69 - 20 AS col2
----
433162

skipif mysql # not compatible
query I rowsort label-3545
SELECT ALL + CASE + 17 WHEN - 80 * + - CAST ( NULL AS REAL ) THEN NULL WHEN + 23 THEN NULL ELSE - + 86 END * - CAST ( - + 73 AS INTEGER ) * - 69 - 20 AS col2
----
433162

onlyif mysql # aggregate syntax: 
query I rowsort label-3546
SELECT ALL - + 40 + + + 53 + - + 66 + COUNT( * ) * - 6 * + + 92 * - - COUNT( * ) AS col0
----
-605

skipif mysql # not compatible
query I rowsort label-3546
SELECT ALL - + 40 + + + 53 + - + 66 + COUNT ( * ) * - 6 * + + 92 * - - COUNT ( * ) AS col0
----
-605

query I rowsort
SELECT + 24 * + 6 - 33 + - 34
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3548
SELECT ALL + ( - + 82 ) + - COUNT( * ) * + 10 AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-3548
SELECT ALL + ( - + 82 ) + - COUNT ( * ) * + 10 AS col2
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-3549
SELECT CASE - 26 WHEN - 72 / + 43 + - + 2 THEN NULLIF ( + SUM( DISTINCT ( - 61 ) ), - - NULLIF ( + 50, - 90 * + - 77 ) + + 29 ) WHEN + 26 THEN NULL WHEN + 69 THEN NULL END + - + 21 * + 41 + - 50
----
NULL

skipif mysql # not compatible
query I rowsort label-3549
SELECT CASE - 26 WHEN - 72 / + 43 + - + 2 THEN NULLIF ( + SUM ( DISTINCT ( - 61 ) ), - - NULLIF ( + 50, - 90 * + - 77 ) + + 29 ) WHEN + 26 THEN NULL WHEN + 69 THEN NULL END + - + 21 * + 41 + - 50
----
NULL

query I rowsort
SELECT ALL 59 + - ( - 75 ) * 76 + - 23
----
5736

onlyif mysql # aggregate syntax: 
query I rowsort label-3551
SELECT MAX( DISTINCT 93 ) AS col2
----
93

skipif mysql # not compatible
query I rowsort label-3551
SELECT MAX ( DISTINCT 93 ) AS col2
----
93

query I rowsort
SELECT DISTINCT 12 + - ( - + ( 30 ) ) + + 73 * - 60 AS col0
----
-4338

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3553
SELECT ALL COUNT( * ) + + CAST( 95 AS SIGNED ) AS col1
----
96

skipif mysql # not compatible
query I rowsort label-3553
SELECT ALL COUNT ( * ) + + CAST ( 95 AS INTEGER ) AS col1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3554
SELECT ALL 5 + + - 35 + - - 58 * - 49 - - 55 + - 60 * 63 * + COUNT( * )
----
-6597

skipif mysql # not compatible
query I rowsort label-3554
SELECT ALL 5 + + - 35 + - - 58 * - 49 - - 55 + - 60 * 63 * + COUNT ( * )
----
-6597

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3555
SELECT ALL 17 / 53 / + ( + - 19 ) * - CAST( NULL AS DECIMAL ) * + 99 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3555
SELECT ALL 17 / 53 / + ( + - 19 ) * - CAST ( NULL AS REAL ) * + 99 AS col0
----
NULL

query II rowsort
SELECT 5 - - 13, + 31 AS col2
----
18
31

onlyif mysql # aggregate syntax: 
query I rowsort label-3557
SELECT ALL COUNT( * ) - 82 * - + 16
----
1313

skipif mysql # not compatible
query I rowsort label-3557
SELECT ALL COUNT ( * ) - 82 * - + 16
----
1313

onlyif mysql # DIV for integer division: 
query I rowsort label-3558
SELECT - 36 * CASE - 86 WHEN 71 THEN NULL ELSE - + NULLIF ( - - 92, + - 2 DIV AVG ( 3 ) + - 27 ) DIV + ( + 24 ) + + 47 END - + ( 47 ) AS col2
----
-1631

skipif mysql # not compatible
query I rowsort label-3558
SELECT - 36 * CASE - 86 WHEN 71 THEN NULL ELSE - + NULLIF ( - - 92, + - 2 / AVG ( 3 ) + - 27 ) / + ( + 24 ) + + 47 END - + ( 47 ) AS col2
----
-1631

onlyif mysql # DIV for integer division: 
query I rowsort label-3559
SELECT 43 DIV + ( + 70 )
----
0

skipif mysql # not compatible
query I rowsort label-3559
SELECT 43 / + ( + 70 )
----
0

query I rowsort
SELECT + 45 + + 35 col2
----
80

query I rowsort
SELECT - 51 - + + 27
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-3562
SELECT ALL 57 - - - COUNT( * ) + + 19 * 94 * + - 74 / 66 / + + CASE - + 40 WHEN + 68 * SUM( DISTINCT + + 69 ) THEN - 83 / 97 * 44 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3562
SELECT ALL 57 - - - COUNT ( * ) + + 19 * 94 * + - 74 / 66 / + + CASE - + 40 WHEN + 68 * SUM ( DISTINCT + + 69 ) THEN - 83 / 97 * 44 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3563
SELECT - MAX( + - 65 ) AS col1
----
65

skipif mysql # not compatible
query I rowsort label-3563
SELECT - MAX ( + - 65 ) AS col1
----
65

query I rowsort
SELECT + 39 + 90 AS col0
----
129

query I rowsort
SELECT ALL + 25 * - + 48 + - 78 + + 92 AS col0
----
-1186

query I rowsort
SELECT - - 20 + + 45 * - - 14 AS col0
----
650

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3567
SELECT ALL + COALESCE ( + + 66, SUM( - 47 ), + CAST( 72 AS SIGNED ) ) AS col0
----
66

skipif mysql # not compatible
query I rowsort label-3567
SELECT ALL + COALESCE ( + + 66, SUM ( - 47 ), + CAST ( 72 AS INTEGER ) ) AS col0
----
66

onlyif mysql # aggregate syntax: 
query II rowsort label-3568
SELECT DISTINCT - MIN( DISTINCT 85 ), 62 * - - 60 AS col2
----
-85
3720

skipif mysql # not compatible
query II rowsort label-3568
SELECT DISTINCT - MIN ( DISTINCT 85 ), 62 * - - 60 AS col2
----
-85
3720

query I rowsort
SELECT CASE 61 WHEN - - 52 THEN AVG ( ALL - + 17 ) * - 63 ELSE NULL END
----
NULL

query I rowsort
SELECT - + COALESCE ( 10, - 71 ) + + - 78 * + - 44 * + - ( + ( + 2 ) )
----
-6874

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3571
SELECT DISTINCT - 81 * 14 DIV - - COUNT( * ) - - + 83
----
-1051

skipif mysql # not compatible
query I rowsort label-3571
SELECT DISTINCT - 81 * 14 / - - COUNT ( * ) - - + 83
----
-1051

onlyif mysql # aggregate syntax: 
query I rowsort label-3572
SELECT ALL - 64 + + - COALESCE ( + COUNT( * ), - 23 * + 13 - - + CASE - SUM( 92 ) WHEN + SUM( ALL - 10 ) THEN - 20 ELSE NULL END ) col2
----
-65

skipif mysql # not compatible
query I rowsort label-3572
SELECT ALL - 64 + + - COALESCE ( + COUNT ( * ), - 23 * + 13 - - + CASE - SUM ( 92 ) WHEN + SUM ( ALL - 10 ) THEN - 20 ELSE NULL END ) col2
----
-65

onlyif mysql # aggregate syntax: 
query II rowsort label-3573
SELECT - 16 + + MIN( - 60 ) * + 77 AS col1, COUNT( * ) + + 10 AS col1
----
-4636
11

skipif mysql # not compatible
query II rowsort label-3573
SELECT - 16 + + MIN ( - 60 ) * + 77 AS col1, COUNT ( * ) + + 10 AS col1
----
-4636
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3574
SELECT ALL + + CAST( - 25 AS SIGNED ) + - 33 AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-3574
SELECT ALL + + CAST ( - 25 AS INTEGER ) + - 33 AS col0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3575
SELECT DISTINCT + 62 + - + ( + + SUM( 97 ) ) + + 66
----
31

skipif mysql # not compatible
query I rowsort label-3575
SELECT DISTINCT + 62 + - + ( + + SUM ( 97 ) ) + + 66
----
31

query I rowsort
SELECT ALL - + 80 + - + 68
----
-148

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3577
SELECT - CASE - - 42 WHEN 11 THEN NULL WHEN + 86 THEN + - SUM( + - 64 ) / - + 37 / - + 90 + + 99 * COUNT( * ) * - CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3577
SELECT - CASE - - 42 WHEN 11 THEN NULL WHEN + 86 THEN + - SUM ( + - 64 ) / - + 37 / - + 90 + + 99 * COUNT ( * ) * - CAST ( NULL AS INTEGER ) END
----
NULL

query I rowsort
SELECT ALL - 87 * - 9 AS col1
----
783

query I rowsort
SELECT DISTINCT - 82 + - 36 AS col0
----
-118

query I rowsort
SELECT - + 43 * + 41
----
-1763

onlyif mysql # aggregate syntax: 
query I rowsort label-3581
SELECT - - 68 * + COUNT( * )
----
68

skipif mysql # not compatible
query I rowsort label-3581
SELECT - - 68 * + COUNT ( * )
----
68

query I rowsort
SELECT ALL 13 * - - 5 + - + 65 AS col0
----
0

query I rowsort
SELECT - 47 * + ( + 48 )
----
-2256

query I rowsort
SELECT NULLIF ( - 78, - COALESCE ( + - 81, - 21 ) ) AS col1
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3585
SELECT - CAST( NULL AS SIGNED ) * - - 70
----
NULL

skipif mysql # not compatible
query I rowsort label-3585
SELECT - CAST ( NULL AS INTEGER ) * - - 70
----
NULL

query I rowsort
SELECT + 23 * + ( - 48 ) * + 68 AS col1
----
-75072

onlyif mysql # aggregate syntax: 
query II rowsort label-3587
SELECT ALL + 11 * + SUM( DISTINCT + 80 ), ( 45 ) col0
----
880
45

skipif mysql # not compatible
query II rowsort label-3587
SELECT ALL + 11 * + SUM ( DISTINCT + 80 ), ( 45 ) col0
----
880
45

onlyif mysql # aggregate syntax: 
query I rowsort label-3588
SELECT COALESCE ( + 53, - COUNT( * ) ) AS col1
----
53

skipif mysql # not compatible
query I rowsort label-3588
SELECT COALESCE ( + 53, - COUNT ( * ) ) AS col1
----
53

query I rowsort
SELECT ALL + NULLIF ( + - 57, - 35 )
----
-57

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3590
SELECT DISTINCT + COUNT( * ) * + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3590
SELECT DISTINCT + COUNT ( * ) * + CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3591
SELECT DISTINCT 21 * + COUNT( * ) - 48 * CAST( 61 AS SIGNED ) - - 80
----
-2827

skipif mysql # not compatible
query I rowsort label-3591
SELECT DISTINCT 21 * + COUNT ( * ) - 48 * CAST ( 61 AS INTEGER ) - - 80
----
-2827

query I rowsort
SELECT ALL - 3 * - 19 AS col1
----
57

onlyif mysql # aggregate syntax: 
query II rowsort label-3593
SELECT + 56 AS col0, COUNT( * ) AS col2
----
56
1

skipif mysql # not compatible
query II rowsort label-3593
SELECT + 56 AS col0, COUNT ( * ) AS col2
----
56
1

query I rowsort
SELECT - 52 * - 72
----
3744

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3595
SELECT + 57 * 59 * - + CAST( + 63 AS SIGNED ) * + 26 AS col1, - 92
----
-5508594
-92

skipif mysql # not compatible
query II rowsort label-3595
SELECT + 57 * 59 * - + CAST ( + 63 AS INTEGER ) * + 26 AS col1, - 92
----
-5508594
-92

query II rowsort
SELECT + 75 + + 6 + 69, + 83 AS col1
----
150
83

onlyif mysql # aggregate syntax: 
query I rowsort label-3597
SELECT + CASE 92 WHEN 11 + + COUNT( * ) * - 89 THEN + 77 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3597
SELECT + CASE 92 WHEN 11 + + COUNT ( * ) * - 89 THEN + 77 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3598
SELECT DISTINCT 98 DIV - - 70 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3598
SELECT DISTINCT 98 / - - 70 AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3599
SELECT + 10 - - CAST( + - 1 AS SIGNED ) * + 44 AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-3599
SELECT + 10 - - CAST ( + - 1 AS INTEGER ) * + 44 AS col1
----
-34

query I rowsort
SELECT + 21 * 15 col0
----
315

query I rowsort
SELECT ALL ( + 91 ) AS col2
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3602
SELECT MAX( + CAST( - + 15 AS SIGNED ) ) AS col2, - 19 * - - 19 AS col2
----
-15
-361

skipif mysql # not compatible
query II rowsort label-3602
SELECT MAX ( + CAST ( - + 15 AS INTEGER ) ) AS col2, - 19 * - - 19 AS col2
----
-15
-361

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3603
SELECT ALL CAST( 43 AS SIGNED ) col0
----
43

skipif mysql # not compatible
query I rowsort label-3603
SELECT ALL CAST ( 43 AS INTEGER ) col0
----
43

query I rowsort
SELECT DISTINCT - CASE - 61 WHEN 59 * + - 5 - - 63 + - 54 * 9 THEN - - 34 ELSE NULL END / + COALESCE ( + 64, 17 * - 20, - ( + 3 ) * 81 * 91, 38 - + - 1 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3605
SELECT ALL CAST( - + 59 AS SIGNED )
----
-59

skipif mysql # not compatible
query I rowsort label-3605
SELECT ALL CAST ( - + 59 AS INTEGER )
----
-59

query I rowsort
SELECT + ( + 83 ) * - ( + + 52 ) AS col2
----
-4316

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3607
SELECT DISTINCT - 27 * - - ( - + COUNT( * ) ) DIV 56
----
0

skipif mysql # not compatible
query I rowsort label-3607
SELECT DISTINCT - 27 * - - ( - + COUNT ( * ) ) / 56
----
0

query I rowsort
SELECT + 17 - 43 col0
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3609
SELECT + 73, ( - 97 ) + + CAST( NULL AS SIGNED ) AS col1
----
73
NULL

skipif mysql # not compatible
query II rowsort label-3609
SELECT + 73, ( - 97 ) + + CAST ( NULL AS INTEGER ) AS col1
----
73
NULL

query I rowsort
SELECT DISTINCT + ( + 80 )
----
80

query I rowsort
SELECT + - 88 - - 73 col0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-3612
SELECT + + COUNT( * ) * CASE + - 35 WHEN - COUNT( * ) THEN + 3 / 96 END * - 58 + - 99 + 21 * - 62 + - NULLIF ( - 43, + - ( - 6 ) / + 83 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3612
SELECT + + COUNT ( * ) * CASE + - 35 WHEN - COUNT ( * ) THEN + 3 / 96 END * - 58 + - 99 + 21 * - 62 + - NULLIF ( - 43, + - ( - 6 ) / + 83 ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3613
SELECT ALL + ( - CAST( NULL AS SIGNED ) ) + - 95 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3613
SELECT ALL + ( - CAST ( NULL AS INTEGER ) ) + - 95 col0
----
NULL

query II rowsort
SELECT - 96, + COALESCE ( + 63, + + 51 ) AS col0
----
-96
63

query I rowsort
SELECT ALL - 33 + - - 55
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-3616
SELECT + - NULLIF ( + 26, - COUNT( * ) + - 84 * COALESCE ( 75, 57 ) + 83 ) - 64 col1
----
-90

skipif mysql # not compatible
query I rowsort label-3616
SELECT + - NULLIF ( + 26, - COUNT ( * ) + - 84 * COALESCE ( 75, 57 ) + 83 ) - 64 col1
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3617
SELECT - + CASE - - AVG ( ALL 2 ) WHEN + 69 THEN NULL WHEN + 24 * 48 * + - 21 - CAST( - - COUNT( * ) AS SIGNED ) + + ( + 27 ) / 61 THEN 86 * 28 / - - 19 / 85 * 40 + 38 END, ( - - 19 ) AS col0
----
NULL
19

skipif mysql # not compatible
query II rowsort label-3617
SELECT - + CASE - - AVG ( ALL 2 ) WHEN + 69 THEN NULL WHEN + 24 * 48 * + - 21 - CAST ( - - COUNT ( * ) AS INTEGER ) + + ( + 27 ) / 61 THEN 86 * 28 / - - 19 / 85 * 40 + 38 END, ( - - 19 ) AS col0
----
NULL
19

query I rowsort
SELECT ALL - + 53 + + 50 AS col2
----
-3

query I rowsort
SELECT + 80 - 52 AS col1
----
28

query I rowsort
SELECT ALL + 78 + - - 29 * + 58
----
1760

query I rowsort
SELECT DISTINCT - - 2 + + - 19
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-3622
SELECT DISTINCT CASE 78 WHEN - - 85 THEN - 69 WHEN 92 * COUNT( * ) THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3622
SELECT DISTINCT CASE 78 WHEN - - 85 THEN - 69 WHEN 92 * COUNT ( * ) THEN NULL END AS col1
----
NULL

query II rowsort
SELECT + - 73 AS col0, + 17
----
-73
17

onlyif mysql # aggregate syntax: 
query I rowsort label-3624
SELECT 16 / - 58 - + + 14 / + CASE + + 6 WHEN - 57 THEN + - COALESCE ( - ( + 40 ), - - COUNT( * ) ) WHEN 23 * + - 37 * - 36 + 52 THEN + + 72 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3624
SELECT 16 / - 58 - + + 14 / + CASE + + 6 WHEN - 57 THEN + - COALESCE ( - ( + 40 ), - - COUNT ( * ) ) WHEN 23 * + - 37 * - 36 + 52 THEN + + 72 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3625
SELECT + COUNT( * ) * CASE 12 WHEN - ( ( - 48 ) ) THEN NULL WHEN - COUNT( ALL + 54 ) * 3 THEN - + 4 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3625
SELECT + COUNT ( * ) * CASE 12 WHEN - ( ( - 48 ) ) THEN NULL WHEN - COUNT ( ALL + 54 ) * 3 THEN - + 4 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3626
SELECT ALL 41 * COALESCE ( + 44, - + 0 ) * 1 DIV - + CAST( - 62 AS SIGNED ) AS col2, COUNT( * ) col0
----
29
1

skipif mysql # not compatible
query II rowsort label-3626
SELECT ALL 41 * COALESCE ( + 44, - + 0 ) * 1 / - + CAST ( - 62 AS INTEGER ) AS col2, COUNT ( * ) col0
----
29
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3627
SELECT ALL + COUNT( * ), COUNT( * ) col1
----
1
1

skipif mysql # not compatible
query II rowsort label-3627
SELECT ALL + COUNT ( * ), COUNT ( * ) col1
----
1
1

query I rowsort
SELECT ALL + ( - 13 ) AS col2
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-3629
SELECT 16 * + 89 + - + 51 * - - 72 + - 29 * + COUNT( * ) AS col2
----
-2277

skipif mysql # not compatible
query I rowsort label-3629
SELECT 16 * + 89 + - + 51 * - - 72 + - 29 * + COUNT ( * ) AS col2
----
-2277

query II rowsort
SELECT ALL + 44 AS col1, - 9 AS col2
----
44
-9

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3631
SELECT ALL + 16 / + 1 - 20 / - + CAST( NULL AS DECIMAL ) * - + 35 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3631
SELECT ALL + 16 / + 1 - 20 / - + CAST ( NULL AS REAL ) * - + 35 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3632
SELECT DISTINCT + MAX( DISTINCT - - 85 ) AS col1, + 35 AS col2
----
85
35

skipif mysql # not compatible
query II rowsort label-3632
SELECT DISTINCT + MAX ( DISTINCT - - 85 ) AS col1, + 35 AS col2
----
85
35

onlyif mysql # DIV for integer division: 
query I rowsort label-3633
SELECT - 58 DIV + + 50 col0
----
-1

skipif mysql # not compatible
query I rowsort label-3633
SELECT - 58 / + + 50 col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3634
SELECT ALL + COALESCE ( - 10, - 72, + 10 ) DIV - - SUM( DISTINCT 86 ) AS col2, + 37 * + 17 AS col2
----
0
629

skipif mysql # not compatible
query II rowsort label-3634
SELECT ALL + COALESCE ( - 10, - 72, + 10 ) / - - SUM ( DISTINCT 86 ) AS col2, + 37 * + 17 AS col2
----
0
629

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3635
SELECT DISTINCT + ( - - CAST( NULL AS DECIMAL ) ) * + - 54 * + - 33 * + 56 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3635
SELECT DISTINCT + ( - - CAST ( NULL AS REAL ) ) * + - 54 * + - 33 * + 56 AS col1
----
NULL

query I rowsort
SELECT ALL + 17 * - + 34 * 6
----
-3468

query I rowsort
SELECT ALL + 44 * - 10 AS col1
----
-440

query I rowsort
SELECT 33 * - + 64 AS col0
----
-2112

onlyif mysql # aggregate syntax: 
query II rowsort label-3639
SELECT DISTINCT - 7 col0, + MIN( DISTINCT 49 ) AS col1
----
-7
49

skipif mysql # not compatible
query II rowsort label-3639
SELECT DISTINCT - 7 col0, + MIN ( DISTINCT 49 ) AS col1
----
-7
49

onlyif mysql # aggregate syntax: 
query I rowsort label-3640
SELECT ALL - CASE + 38 WHEN + COUNT( * ) THEN NULL WHEN - 82 * + 99 THEN + - MIN( ALL 56 ) / - 52 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3640
SELECT ALL - CASE + 38 WHEN + COUNT ( * ) THEN NULL WHEN - 82 * + 99 THEN + - MIN ( ALL 56 ) / - 52 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3641
SELECT DISTINCT - 20, 1 + ( - + 75 ) * + - ( - CAST( - 60 AS SIGNED ) ) AS col2
----
-20
4501

skipif mysql # not compatible
query II rowsort label-3641
SELECT DISTINCT - 20, 1 + ( - + 75 ) * + - ( - CAST ( - 60 AS INTEGER ) ) AS col2
----
-20
4501

query I rowsort
SELECT DISTINCT - ( - 44 ) AS col0
----
44

query I rowsort
SELECT 71 + + + 33
----
104

query I rowsort
SELECT ALL + + 1 + 50 AS col0
----
51

query II rowsort
SELECT DISTINCT + 4 AS col1, 82 + - 93
----
4
-11

query I rowsort
SELECT + 28 + 95 AS col2
----
123

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3647
SELECT COUNT( * ) - + + CAST( NULL AS SIGNED ) + + 2 * - 42 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3647
SELECT COUNT ( * ) - + + CAST ( NULL AS INTEGER ) + + 2 * - 42 col2
----
NULL

query II rowsort
SELECT - 69, 76 AS col1
----
-69
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3649
SELECT + COALESCE ( + 60, + 29 + 68 DIV 49 DIV CAST( NULL AS SIGNED ) - + COUNT( * ) - + 30 * 94 * 75 )
----
60

skipif mysql # not compatible
query I rowsort label-3649
SELECT + COALESCE ( + 60, + 29 + 68 / 49 / CAST ( NULL AS INTEGER ) - + COUNT ( * ) - + 30 * 94 * 75 )
----
60

query I rowsort
SELECT ALL 95 + 40 + - + ( + + CASE + + 72 WHEN - AVG ( 69 ) THEN - - 36 END ) AS col2
----
NULL

query I rowsort
SELECT - 78 + - 2
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-3652
SELECT DISTINCT MAX( - 77 ) * + 44
----
-3388

skipif mysql # not compatible
query I rowsort label-3652
SELECT DISTINCT MAX ( - 77 ) * + 44
----
-3388

onlyif mysql # aggregate syntax: 
query I rowsort label-3653
SELECT DISTINCT - 79 * - - COUNT( * )
----
-79

skipif mysql # not compatible
query I rowsort label-3653
SELECT DISTINCT - 79 * - - COUNT ( * )
----
-79

query I rowsort
SELECT ALL + 21 + 69 AS col2
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3655
SELECT CAST( NULL AS SIGNED ) * - MAX( DISTINCT + 44 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3655
SELECT CAST ( NULL AS INTEGER ) * - MAX ( DISTINCT + 44 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3656
SELECT ALL 15 AS col1, SUM( ALL + + 85 )
----
15
85

skipif mysql # not compatible
query II rowsort label-3656
SELECT ALL 15 AS col1, SUM ( ALL + + 85 )
----
15
85

query I rowsort
SELECT + 44 * 2
----
88

query I rowsort
SELECT + 28 + - - 94 AS col1
----
122

query I rowsort
SELECT 88 * + ( - 0 )
----
0

query II rowsort
SELECT - + 4 AS col0, 97 AS col0
----
-4
97

query II rowsort
SELECT ALL 38, 33 AS col2
----
38
33

query I rowsort
SELECT DISTINCT 59 - 24 * 47 AS col0
----
-1069

onlyif mysql # aggregate syntax: 
query II rowsort label-3663
SELECT DISTINCT COUNT( * ) - 38 + - ( 40 ) * + 28 AS col0, 29
----
-1157
29

skipif mysql # not compatible
query II rowsort label-3663
SELECT DISTINCT COUNT ( * ) - 38 + - ( 40 ) * + 28 AS col0, 29
----
-1157
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3664
SELECT CAST( NULL AS SIGNED ) + + ( + + 12 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3664
SELECT CAST ( NULL AS INTEGER ) + + ( + + 12 )
----
NULL

query I rowsort
SELECT 89 * - 89
----
-7921

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3666
SELECT COUNT( * ) * - 78 AS col2, - 48 * - - ( COUNT( * ) ) + - ( - CAST( NULL AS SIGNED ) ) AS col2
----
-78
NULL

skipif mysql # not compatible
query II rowsort label-3666
SELECT COUNT ( * ) * - 78 AS col2, - 48 * - - ( COUNT ( * ) ) + - ( - CAST ( NULL AS INTEGER ) ) AS col2
----
-78
NULL

query I rowsort
SELECT ALL 88 * + ( + + ( - 37 ) ) AS col0
----
-3256

onlyif mysql # aggregate syntax: 
query I rowsort label-3668
SELECT ALL - MIN( + 62 ) AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-3668
SELECT ALL - MIN ( + 62 ) AS col1
----
-62

query I rowsort
SELECT ( + 0 ) - + - 55 AS col0
----
55

onlyif mysql # aggregate syntax: 
query II rowsort label-3670
SELECT COUNT( * ) - + + COUNT( * ) AS col2, + COUNT( * ) + + 9
----
0
10

skipif mysql # not compatible
query II rowsort label-3670
SELECT COUNT ( * ) - + + COUNT ( * ) AS col2, + COUNT ( * ) + + 9
----
0
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3671
SELECT NULLIF ( - MIN( + ( - + ( - 10 ) ) ), 78 * - - COUNT( * ) * 59 ) * + + 68 AS col2
----
-680

skipif mysql # not compatible
query I rowsort label-3671
SELECT NULLIF ( - MIN ( + ( - + ( - 10 ) ) ), 78 * - - COUNT ( * ) * 59 ) * + + 68 AS col2
----
-680

onlyif mysql # aggregate syntax: 
query I rowsort label-3672
SELECT ALL + 13 + 25 + - 10 + + 47 * + COUNT( * ) + + 17 * - COALESCE ( - COALESCE ( - 67, 33 - - COALESCE ( 41, + 9 + - 86 ) ), 93 * - COALESCE ( 0, - 25 * + + 1 + 3, - 41 ) + + 22, + 31 ) * 66 + 95 * - 21 AS col2
----
-77094

skipif mysql # not compatible
query I rowsort label-3672
SELECT ALL + 13 + 25 + - 10 + + 47 * + COUNT ( * ) + + 17 * - COALESCE ( - COALESCE ( - 67, 33 - - COALESCE ( 41, + 9 + - 86 ) ), 93 * - COALESCE ( 0, - 25 * + + 1 + 3, - 41 ) + + 22, + 31 ) * 66 + 95 * - 21 AS col2
----
-77094

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3673
SELECT - 61 * + 50 + CAST( NULL AS SIGNED ) * 92 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3673
SELECT - 61 * + 50 + CAST ( NULL AS INTEGER ) * 92 AS col1
----
NULL

query I rowsort
SELECT 43 - - 81 + - 26
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3675
SELECT 52 * + CAST( + 27 AS SIGNED ) AS col0
----
1404

skipif mysql # not compatible
query I rowsort label-3675
SELECT 52 * + CAST ( + 27 AS INTEGER ) AS col0
----
1404

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3676
SELECT 59 DIV + 31 AS col1, - CAST( NULL AS SIGNED )
----
1
NULL

skipif mysql # not compatible
query II rowsort label-3676
SELECT 59 / + 31 AS col1, - CAST ( NULL AS INTEGER )
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3677
SELECT ( ( - - 68 ) ) * - COUNT( * )
----
-68

skipif mysql # not compatible
query I rowsort label-3677
SELECT ( ( - - 68 ) ) * - COUNT ( * )
----
-68

query II rowsort
SELECT DISTINCT + 94 + - + 80 AS col0, 51 * - 2 AS col1
----
14
-102

onlyif mysql # DIV for integer division: 
query I rowsort label-3679
SELECT + 4 + + ( 90 ) DIV - NULLIF ( + 70, ( + 31 ) * - 65 - - ( - + 61 ) )
----
3

skipif mysql # not compatible
query I rowsort label-3679
SELECT + 4 + + ( 90 ) / - NULLIF ( + 70, ( + 31 ) * - 65 - - ( - + 61 ) )
----
3

query II rowsort
SELECT ALL - 2 * - 38, - ( 30 ) AS col2
----
76
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-3681
SELECT DISTINCT + COUNT( * ) * - 32 AS col2, + 65
----
-32
65

skipif mysql # not compatible
query II rowsort label-3681
SELECT DISTINCT + COUNT ( * ) * - 32 AS col2, + 65
----
-32
65

query I rowsort
SELECT ALL + COALESCE ( + + 44, + 90 + - + 69 - 55 ) AS col2
----
44

query I rowsort
SELECT ALL + 42 * - - 67
----
2814

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3684
SELECT + CAST( NULL AS SIGNED ) - 79 * 4 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3684
SELECT + CAST ( NULL AS INTEGER ) - 79 * 4 AS col2
----
NULL

query I rowsort
SELECT + ( + - 44 ) AS col1
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-3686
SELECT COUNT( * ) - + 54 AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-3686
SELECT COUNT ( * ) - + 54 AS col1
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-3687
SELECT 23 * + - SUM( ALL + ( + 62 ) )
----
-1426

skipif mysql # not compatible
query I rowsort label-3687
SELECT 23 * + - SUM ( ALL + ( + 62 ) )
----
-1426

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3688
SELECT DISTINCT 86 * + 52 DIV COUNT( * )
----
4472

skipif mysql # not compatible
query I rowsort label-3688
SELECT DISTINCT 86 * + 52 / COUNT ( * )
----
4472

onlyif mysql # aggregate syntax: 
query I rowsort label-3689
SELECT 3 - + COUNT( - 18 ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-3689
SELECT 3 - + COUNT ( - 18 ) AS col1
----
2

query I rowsort
SELECT ALL NULLIF ( - 96, ( 86 ) )
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3691
SELECT DISTINCT + 62 * - COUNT( * ) * + 97 * - 13 AS col2
----
78182

skipif mysql # not compatible
query I rowsort label-3691
SELECT DISTINCT + 62 * - COUNT ( * ) * + 97 * - 13 AS col2
----
78182

onlyif mysql # aggregate syntax: 
query II rowsort label-3692
SELECT DISTINCT COALESCE ( - + 33, - - 91, + 9 ), - COUNT( * ) + 9 * 62 * 34 AS col2
----
-33
18971

skipif mysql # not compatible
query II rowsort label-3692
SELECT DISTINCT COALESCE ( - + 33, - - 91, + 9 ), - COUNT ( * ) + 9 * 62 * 34 AS col2
----
-33
18971

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3693
SELECT 89 DIV - NULLIF ( CASE 82 WHEN 70 THEN - + CAST( - 12 AS SIGNED ) ELSE - CAST( + - 63 AS SIGNED ) + 61 END, - MIN( ( 29 ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-3693
SELECT 89 / - NULLIF ( CASE 82 WHEN 70 THEN - + CAST ( - 12 AS INTEGER ) ELSE - CAST ( + - 63 AS INTEGER ) + 61 END, - MIN ( ( 29 ) ) )
----
0

query II rowsort
SELECT COALESCE ( 46, + 81 ) * + + 67 AS col1, + 57
----
3082
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3695
SELECT ALL 47 * + 91 * CASE - ( + 97 ) WHEN - CAST( 48 AS SIGNED ) THEN + + 6 * 80 - 70 WHEN - 82 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3695
SELECT ALL 47 * + 91 * CASE - ( + 97 ) WHEN - CAST ( 48 AS INTEGER ) THEN + + 6 * 80 - 70 WHEN - 82 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT 98 + + 0 col1
----
98

query I rowsort
SELECT + 58 * + 75
----
4350

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3698
SELECT - 29 + COUNT( * ) + + - NULLIF ( CAST( NULL AS DECIMAL ), - COUNT( * ) + 84 ) + + + ( + 37 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3698
SELECT - 29 + COUNT ( * ) + + - NULLIF ( CAST ( NULL AS REAL ), - COUNT ( * ) + 84 ) + + + ( + 37 ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3699
SELECT + COUNT( * ) - - 45 AS col2
----
46

skipif mysql # not compatible
query I rowsort label-3699
SELECT + COUNT ( * ) - - 45 AS col2
----
46

query I rowsort
SELECT + 5 + - 97
----
-92

query I rowsort
SELECT ALL + 90 * 82
----
7380

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3702
SELECT CASE - + CAST( - 59 AS DECIMAL ) WHEN 26 + 17 THEN - + 27 + - CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3702
SELECT CASE - + CAST ( - 59 AS REAL ) WHEN 26 + 17 THEN - + 27 + - CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3703
SELECT DISTINCT - COUNT( * ) * 23 * 83 * - + 83 * - COALESCE ( + - 88, 95 ) + - 11 * + - COUNT( * ) AS col0
----
13943347

skipif mysql # not compatible
query I rowsort label-3703
SELECT DISTINCT - COUNT ( * ) * 23 * 83 * - + 83 * - COALESCE ( + - 88, 95 ) + - 11 * + - COUNT ( * ) AS col0
----
13943347

onlyif mysql # DIV for integer division: 
query I rowsort label-3704
SELECT ALL 93 DIV - 54
----
-1

skipif mysql # not compatible
query I rowsort label-3704
SELECT ALL 93 / - 54
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3705
SELECT ALL 45 * NULLIF ( 88, + - COUNT( * ) ) + - + 83 AS col2
----
3877

skipif mysql # not compatible
query I rowsort label-3705
SELECT ALL 45 * NULLIF ( 88, + - COUNT ( * ) ) + - + 83 AS col2
----
3877

query I rowsort
SELECT ALL 86 * 63 AS col2
----
5418

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3707
SELECT DISTINCT + 69 * COALESCE ( + 98, + + 68 * - 99 * + + 49 * + 66 * - + 51, ( + + 38 ) * + 44 + NULLIF ( + MAX( 53 ), - 0 ) - COUNT( * ) DIV COUNT( * ) ) + + CAST( + - 43 AS SIGNED ) AS col0
----
6719

skipif mysql # not compatible
query I rowsort label-3707
SELECT DISTINCT + 69 * COALESCE ( + 98, + + 68 * - 99 * + + 49 * + 66 * - + 51, ( + + 38 ) * + 44 + NULLIF ( + MAX ( 53 ), - 0 ) - COUNT ( * ) / COUNT ( * ) ) + + CAST ( + - 43 AS INTEGER ) AS col0
----
6719

query I rowsort
SELECT + 80 + 67 AS col0
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-3709
SELECT + MAX( - 47 )
----
-47

skipif mysql # not compatible
query I rowsort label-3709
SELECT + MAX ( - 47 )
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-3710
SELECT - ( + - COUNT( * ) ) * - MAX( - + 7 ) * + 87 AS col1
----
609

skipif mysql # not compatible
query I rowsort label-3710
SELECT - ( + - COUNT ( * ) ) * - MAX ( - + 7 ) * + 87 AS col1
----
609

onlyif mysql # aggregate syntax: 
query I rowsort label-3711
SELECT + NULLIF ( - CASE WHEN NULL > ( NULL ) THEN + 6 WHEN NOT - 33 * - 10 * 78 IS NULL THEN NULL END, COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3711
SELECT + NULLIF ( - CASE WHEN NULL > ( NULL ) THEN + 6 WHEN NOT - 33 * - 10 * 78 IS NULL THEN NULL END, COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3712
SELECT - COUNT( * ), 39 * - 75 col0
----
-1
-2925

skipif mysql # not compatible
query II rowsort label-3712
SELECT - COUNT ( * ), 39 * - 75 col0
----
-1
-2925

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3713
SELECT ALL + - 57 * 74 + - COUNT( * ) + NULLIF ( + ( CASE - 26 WHEN 20 THEN NULL WHEN 59 THEN + + 85 DIV + + 79 WHEN + 33 THEN - + 25 ELSE - 58 END ), COUNT( * ) * - + CASE WHEN NOT ( NULL ) NOT IN ( - 27 ) THEN - 32 ELSE + 16 END + - - 23 )
----
-4277

skipif mysql # not compatible
query I rowsort label-3713
SELECT ALL + - 57 * 74 + - COUNT ( * ) + NULLIF ( + ( CASE - 26 WHEN 20 THEN NULL WHEN 59 THEN + + 85 / + + 79 WHEN + 33 THEN - + 25 ELSE - 58 END ), COUNT ( * ) * - + CASE WHEN NOT ( NULL ) NOT IN ( - 27 ) THEN - 32 ELSE + 16 END + - - 23 )
----
-4277

onlyif mysql # aggregate syntax: 
query I rowsort label-3714
SELECT ALL 21 * - 22 + COUNT( DISTINCT 9 ) AS col0
----
-461

skipif mysql # not compatible
query I rowsort label-3714
SELECT ALL 21 * - 22 + COUNT ( DISTINCT 9 ) AS col0
----
-461

onlyif mysql # aggregate syntax: 
query I rowsort label-3715
SELECT + - 56 * 7 - + 84 - + NULLIF ( - + 93, + COUNT( * ) ) - + 68 * + 70 * - - ( - 99 ) * 8
----
3769537

skipif mysql # not compatible
query I rowsort label-3715
SELECT + - 56 * 7 - + 84 - + NULLIF ( - + 93, + COUNT ( * ) ) - + 68 * + 70 * - - ( - 99 ) * 8
----
3769537

onlyif mysql # aggregate syntax: 
query I rowsort label-3716
SELECT + + 35 + ( + MAX( ALL 58 ) ) - 73 AS col1
----
20

skipif mysql # not compatible
query I rowsort label-3716
SELECT + + 35 + ( + MAX ( ALL 58 ) ) - 73 AS col1
----
20

query I rowsort
SELECT + + 76 * - + 17
----
-1292

onlyif mysql # DIV for integer division: 
query I rowsort label-3718
SELECT ALL + 65 DIV 69 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3718
SELECT ALL + 65 / 69 AS col0
----
0

query II rowsort
SELECT ALL 29 * + - 29 - 58 AS col2, 51
----
-899
51

query I rowsort
SELECT + + 27 * - 86 + 73 AS col2
----
-2249

query I rowsort
SELECT + 99 + + 25 AS col2
----
124

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3722
SELECT - COALESCE ( - + NULLIF ( - - ( 47 ), + - NULLIF ( 84, + 57 / - + 67 + + MAX( + - 0 ) * - 74 ) / + 20 + - CAST( NULL AS SIGNED ) + + 72 / + 3 * CAST( NULL AS SIGNED ) / - - MIN( ALL + 26 ) / - - 60 ), + 25 + SUM( 43 ) + + 52 + 26 ) * + 86 - + 21 AS col1
----
4021

skipif mysql # not compatible
query I rowsort label-3722
SELECT - COALESCE ( - + NULLIF ( - - ( 47 ), + - NULLIF ( 84, + 57 / - + 67 + + MAX ( + - 0 ) * - 74 ) / + 20 + - CAST ( NULL AS INTEGER ) + + 72 / + 3 * CAST ( NULL AS INTEGER ) / - - MIN ( ALL + 26 ) / - - 60 ), + 25 + SUM ( 43 ) + + 52 + 26 ) * + 86 - + 21 AS col1
----
4021

query I rowsort
SELECT - 74 * - 52 AS col2
----
3848

query I rowsort
SELECT + 13 + - 15 * 89
----
-1322

query II rowsort
SELECT ALL 77 AS col2, 80 + 37 AS col0
----
77
117

onlyif mysql # aggregate syntax: 
query I rowsort label-3726
SELECT - 40 * + + 70 * - COUNT( * ) - - 97 + + + COUNT( * )
----
2898

skipif mysql # not compatible
query I rowsort label-3726
SELECT - 40 * + + 70 * - COUNT ( * ) - - 97 + + + COUNT ( * )
----
2898

onlyif mysql # aggregate syntax: 
query I rowsort label-3727
SELECT - + COUNT( * ) + - 83
----
-84

skipif mysql # not compatible
query I rowsort label-3727
SELECT - + COUNT ( * ) + - 83
----
-84

query I rowsort
SELECT ALL + 27 * 27
----
729

query II rowsort
SELECT ALL + 30, COALESCE ( - 58, - 32, + - 4, - 99 ) AS col1
----
30
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-3730
SELECT - - 58 + - 9 + 37 AS col2, + COUNT( * )
----
86
1

skipif mysql # not compatible
query II rowsort label-3730
SELECT - - 58 + - 9 + 37 AS col2, + COUNT ( * )
----
86
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3731
SELECT ALL - MAX( DISTINCT + ( 48 ) ) AS col2, 21 AS col1
----
-48
21

skipif mysql # not compatible
query II rowsort label-3731
SELECT ALL - MAX ( DISTINCT + ( 48 ) ) AS col2, 21 AS col1
----
-48
21

onlyif mysql # aggregate syntax: 
query I rowsort label-3732
SELECT ALL + NULLIF ( 80, + 52 + + - NULLIF ( + 77, + COUNT( * ) * - 64 + - - 95 ) + 57 * + 84 )
----
80

skipif mysql # not compatible
query I rowsort label-3732
SELECT ALL + NULLIF ( 80, + 52 + + - NULLIF ( + 77, + COUNT ( * ) * - 64 + - - 95 ) + 57 * + 84 )
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3733
SELECT - CAST( NULL AS SIGNED ) * + 93
----
NULL

skipif mysql # not compatible
query I rowsort label-3733
SELECT - CAST ( NULL AS INTEGER ) * + 93
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3734
SELECT - 41 + - 90 DIV - + 86 AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-3734
SELECT - 41 + - 90 / - + 86 AS col1
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-3735
SELECT ALL CASE + 74 WHEN + COUNT( * ) * + 22 THEN COUNT( * ) - + 76 * + - 24 * COUNT( * ) - + 33 + + ( + - 85 ) ELSE 59 * 40 * - COALESCE ( + 30, 25 ) END
----
-70800

skipif mysql # not compatible
query I rowsort label-3735
SELECT ALL CASE + 74 WHEN + COUNT ( * ) * + 22 THEN COUNT ( * ) - + 76 * + - 24 * COUNT ( * ) - + 33 + + ( + - 85 ) ELSE 59 * 40 * - COALESCE ( + 30, 25 ) END
----
-70800

query I rowsort
SELECT DISTINCT COALESCE ( - - 1, 43 )
----
1

query I rowsort
SELECT - 35 + 6
----
-29

query I rowsort
SELECT ALL + 58 + NULLIF ( - 37, + - 23 * - - AVG ( - 13 ) - 25 )
----
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3739
SELECT DISTINCT COALESCE ( + 70, + 39, + MIN( + - 74 ) DIV - 71 ) AS col2
----
70

skipif mysql # not compatible
query I rowsort label-3739
SELECT DISTINCT COALESCE ( + 70, + 39, + MIN ( + - 74 ) / - 71 ) AS col2
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3740
SELECT DISTINCT + COUNT( * ) + - 81 AS col1
----
-80

skipif mysql # not compatible
query I rowsort label-3740
SELECT DISTINCT + COUNT ( * ) + - 81 AS col1
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-3741
SELECT ALL CASE + + 31 WHEN + 7 THEN + - ( - + COUNT( * ) ) / 18 WHEN - + 10 * + ( 95 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3741
SELECT ALL CASE + + 31 WHEN + 7 THEN + - ( - + COUNT ( * ) ) / 18 WHEN - + 10 * + ( 95 ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3742
SELECT - 75 * + 7 DIV COUNT( * )
----
-525

skipif mysql # not compatible
query I rowsort label-3742
SELECT - 75 * + 7 / COUNT ( * )
----
-525

query I rowsort
SELECT - 93 + 12
----
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3744
SELECT DISTINCT + 24 DIV + 50 * + - 71 + - 80 col2, + COALESCE ( 68, - 34 DIV + + 0 DIV + COUNT( * ) + 12 * 92 ) DIV - 41 + 6 DIV + 26
----
-80
-1

skipif mysql # not compatible
query II rowsort label-3744
SELECT DISTINCT + 24 / + 50 * + - 71 + - 80 col2, + COALESCE ( 68, - 34 / + + 0 / + COUNT ( * ) + 12 * 92 ) / - 41 + 6 / + 26
----
-80
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3745
SELECT ALL + 41 DIV + 44 + + - 91 + - 9
----
-100

skipif mysql # not compatible
query I rowsort label-3745
SELECT ALL + 41 / + 44 + + - 91 + - 9
----
-100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3746
SELECT CAST( + - ( + 6 ) AS SIGNED ) AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-3746
SELECT CAST ( + - ( + 6 ) AS INTEGER ) AS col2
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3747
SELECT ALL - 92 DIV + 18 + - + 31 + - COALESCE ( + COUNT( * ), + 0 - + - MIN( ALL - 24 ), - 26 * COUNT( * ) - 40 + AVG ( + + 49 ) + + 57 ) DIV + 91 * - 8 + + ( 40 ) AS col1
----
4

skipif mysql # not compatible
query I rowsort label-3747
SELECT ALL - 92 / + 18 + - + 31 + - COALESCE ( + COUNT ( * ), + 0 - + - MIN ( ALL - 24 ), - 26 * COUNT ( * ) - 40 + AVG ( + + 49 ) + + 57 ) / + 91 * - 8 + + ( 40 ) AS col1
----
4

query I rowsort
SELECT - 39 - 79 + - 14 AS col1
----
-132

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3749
SELECT + COALESCE ( 40, + 96 + - 31 + 54 * 8, - 70, + 75 DIV - CAST( 69 AS SIGNED ) + - COUNT( + 1 ) + COUNT( * ) ) AS col0
----
40

skipif mysql # not compatible
query I rowsort label-3749
SELECT + COALESCE ( 40, + 96 + - 31 + 54 * 8, - 70, + 75 / - CAST ( 69 AS INTEGER ) + - COUNT ( + 1 ) + COUNT ( * ) ) AS col0
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3750
SELECT CAST( + - NULLIF ( + 85, + + SUM( DISTINCT - 27 ) ) AS SIGNED )
----
-85

skipif mysql # not compatible
query I rowsort label-3750
SELECT CAST ( + - NULLIF ( + 85, + + SUM ( DISTINCT - 27 ) ) AS INTEGER )
----
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3751
SELECT DISTINCT 90 / - CAST( - CASE CASE + 98 WHEN COUNT( * ) + + - 87 + - 57 + - 79 - + 86 * + - 42 THEN - COALESCE ( + 46, - 7 * - 4, + 37 ) * + 33 - - 59 - + 95 WHEN + COALESCE ( + - 99, 85 * + COUNT( - 13 ), CAST( NULL AS DECIMAL ) ) * - 70 THEN NULL END WHEN + 31 * 12 THEN NULL WHEN 5 THEN 11 / - 58 ELSE NULL END AS SIGNED ) + 23 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3751
SELECT DISTINCT 90 / - CAST ( - CASE CASE + 98 WHEN COUNT ( * ) + + - 87 + - 57 + - 79 - + 86 * + - 42 THEN - COALESCE ( + 46, - 7 * - 4, + 37 ) * + 33 - - 59 - + 95 WHEN + COALESCE ( + - 99, 85 * + COUNT ( - 13 ), CAST ( NULL AS REAL ) ) * - 70 THEN NULL END WHEN + 31 * 12 THEN NULL WHEN 5 THEN 11 / - 58 ELSE NULL END AS INTEGER ) + 23 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3752
SELECT DISTINCT + NULLIF ( - + COUNT( * ), + + 4 * + 78 + + 91 ) * 72 DIV - - 99 + + COUNT( - + ( + + 13 ) ), 31 AS col2
----
1
31

skipif mysql # not compatible
query II rowsort label-3752
SELECT DISTINCT + NULLIF ( - + COUNT ( * ), + + 4 * + 78 + + 91 ) * 72 / - - 99 + + COUNT ( - + ( + + 13 ) ), 31 AS col2
----
1
31

onlyif mysql # DIV for integer division: 
query I rowsort label-3753
SELECT ALL + 44 DIV + 8 AS col1
----
5

skipif mysql # not compatible
query I rowsort label-3753
SELECT ALL + 44 / + 8 AS col1
----
5

query I rowsort
SELECT + + ( + - 40 )
----
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3755
SELECT DISTINCT - 16 DIV - NULLIF ( - 76, - 66 * - - 14 * - - 37 ) + COUNT( * ) DIV 88 * 6
----
0

skipif mysql # not compatible
query I rowsort label-3755
SELECT DISTINCT - 16 / - NULLIF ( - 76, - 66 * - - 14 * - - 37 ) + COUNT ( * ) / 88 * 6
----
0

query I rowsort
SELECT + - 5 - + - 27 AS col0
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3757
SELECT DISTINCT + CASE - ( 96 ) WHEN - COUNT( * ) + + 41 THEN + 56 WHEN + 76 THEN - CASE + 7 WHEN - - 82 THEN 14 * 95 ELSE 22 / - 61 * + 96 + + 87 - + 13 END WHEN CAST( NULL AS SIGNED ) THEN NULL ELSE NULLIF ( - + CAST( + + 89 AS SIGNED ), + 36 * - 99 ) END AS col0
----
-89

skipif mysql # not compatible
query I rowsort label-3757
SELECT DISTINCT + CASE - ( 96 ) WHEN - COUNT ( * ) + + 41 THEN + 56 WHEN + 76 THEN - CASE + 7 WHEN - - 82 THEN 14 * 95 ELSE 22 / - 61 * + 96 + + 87 - + 13 END WHEN CAST ( NULL AS INTEGER ) THEN NULL ELSE NULLIF ( - + CAST ( + + 89 AS INTEGER ), + 36 * - 99 ) END AS col0
----
-89

query I rowsort
SELECT ALL + - ( 63 ) col0
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-3759
SELECT + CASE 42 WHEN COALESCE ( + + 38, 71 ) THEN CASE + 63 WHEN - 47 THEN - + 2 * - 1 * - 77 + - COUNT( * ) * 74 + + - 60 ELSE 68 END * + + 48 * - 84 ELSE - 4 END
----
-4

skipif mysql # not compatible
query I rowsort label-3759
SELECT + CASE 42 WHEN COALESCE ( + + 38, 71 ) THEN CASE + 63 WHEN - 47 THEN - + 2 * - 1 * - 77 + - COUNT ( * ) * 74 + + - 60 ELSE 68 END * + + 48 * - 84 ELSE - 4 END
----
-4

query I rowsort
SELECT ALL - 59 * - 69
----
4071

onlyif mysql # aggregate syntax: 
query I rowsort label-3761
SELECT ALL + 42 * - COUNT( ALL 73 ) AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-3761
SELECT ALL + 42 * - COUNT ( ALL 73 ) AS col2
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3762
SELECT DISTINCT MAX( ALL - 32 ) * + 35 - + 49 + - - CAST( 73 AS SIGNED ) * + 48, - COUNT( * ) AS col2
----
2335
-1

skipif mysql # not compatible
query II rowsort label-3762
SELECT DISTINCT MAX ( ALL - 32 ) * + 35 - + 49 + - - CAST ( 73 AS INTEGER ) * + 48, - COUNT ( * ) AS col2
----
2335
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3763
SELECT + - 4 * - COUNT( ALL - - 81 )
----
4

skipif mysql # not compatible
query I rowsort label-3763
SELECT + - 4 * - COUNT ( ALL - - 81 )
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3764
SELECT + 0 - CAST( NULL AS SIGNED ) + 43 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3764
SELECT + 0 - CAST ( NULL AS INTEGER ) + 43 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3765
SELECT + 4 DIV 78 * ( + - 89 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3765
SELECT + 4 / 78 * ( + - 89 ) AS col2
----
0

query I rowsort
SELECT - ( - 1 ) * - 10 col2
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-3767
SELECT ALL 65 DIV 37 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3767
SELECT ALL 65 / 37 AS col0
----
1

query I rowsort
SELECT ALL ( + 32 ) + - - 21
----
53

onlyif mysql # aggregate syntax: 
query II rowsort label-3769
SELECT ALL - 99 * + 79 * + + 82 AS col1, COUNT( * ) * 43 * - COUNT( ( - 21 ) ) * - COUNT( * )
----
-641322
43

skipif mysql # not compatible
query II rowsort label-3769
SELECT ALL - 99 * + 79 * + + 82 AS col1, COUNT ( * ) * 43 * - COUNT ( ( - 21 ) ) * - COUNT ( * )
----
-641322
43

query I rowsort
SELECT ALL - 90 + 65 + + 91 AS col2
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-3771
SELECT ALL 29 DIV - 42 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3771
SELECT ALL 29 / - 42 AS col0
----
0

query I rowsort
SELECT ALL + 17 * 13 AS col2
----
221

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3773
SELECT DISTINCT CAST( NULL AS SIGNED ) + 42
----
NULL

skipif mysql # not compatible
query I rowsort label-3773
SELECT DISTINCT CAST ( NULL AS INTEGER ) + 42
----
NULL

query I rowsort
SELECT 53 + - 98 AS col2
----
-45

query I rowsort
SELECT ( - 43 ) + - 60 + + 92
----
-11

query I rowsort
SELECT 42 + - - 68
----
110

query I rowsort
SELECT 78 - - 58 AS col0
----
136

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3778
SELECT 52 + + 92 + + CAST( NULL AS SIGNED ) / + + 29 + 96 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3778
SELECT 52 + + 92 + + CAST ( NULL AS INTEGER ) / + + 29 + 96 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3779
SELECT 21 AS col2, NULLIF ( - 10, - + 57 ) + + - 23 + COUNT( * ) * + - 42 + + 30 * + 76 + + + COUNT( * )
----
21
2206

skipif mysql # not compatible
query II rowsort label-3779
SELECT 21 AS col2, NULLIF ( - 10, - + 57 ) + + - 23 + COUNT ( * ) * + - 42 + + 30 * + 76 + + + COUNT ( * )
----
21
2206

onlyif mysql # aggregate syntax: 
query I rowsort label-3780
SELECT ALL - 64 - - + ( + + COUNT( * ) )
----
-63

skipif mysql # not compatible
query I rowsort label-3780
SELECT ALL - 64 - - + ( + + COUNT ( * ) )
----
-63

query I rowsort
SELECT 68 * - 81
----
-5508

query I rowsort
SELECT 9 * - 41 + ( - - 33 ) * + + 0
----
-369

query I rowsort
SELECT DISTINCT - 21 * - 86 col1
----
1806

query I rowsort
SELECT ALL - + 12 AS col1
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3785
SELECT + + COUNT( * ) * CASE CAST( NULL AS SIGNED ) WHEN 65 THEN + - 50 END - + 19 + 62 + - - 81 / + 28 * + ( + MIN( DISTINCT + 70 ) ) + + - CASE COUNT( * ) WHEN + ( - + COUNT( * ) ) / - AVG ( + 52 ) + + 99 - - - 22 + - NULLIF ( - COUNT( * ), 54 * + 61 ) * 26 * 65 THEN + CAST( 17 AS DECIMAL ) + 4 * + 81 WHEN + CASE WHEN NOT NULL NOT BETWEEN NULL AND CASE + MIN( + 28 ) WHEN COUNT( * ) THEN NULL ELSE 66 * 18 + + 51 END THEN + 92 END THEN NULL ELSE AVG ( 73 ) END / COUNT( * ) + 77 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3785
SELECT + + COUNT ( * ) * CASE CAST ( NULL AS INTEGER ) WHEN 65 THEN + - 50 END - + 19 + 62 + - - 81 / + 28 * + ( + MIN ( DISTINCT + 70 ) ) + + - CASE COUNT ( * ) WHEN + ( - + COUNT ( * ) ) / - AVG ( + 52 ) + + 99 - - - 22 + - NULLIF ( - COUNT ( * ), 54 * + 61 ) * 26 * 65 THEN + CAST ( 17 AS REAL ) + 4 * + 81 WHEN + CASE WHEN NOT NULL NOT BETWEEN NULL AND CASE + MIN ( + 28 ) WHEN COUNT ( * ) THEN NULL ELSE 66 * 18 + + 51 END THEN + 92 END THEN NULL ELSE AVG ( 73 ) END / COUNT ( * ) + 77 AS col1
----
NULL

query II rowsort
SELECT + 66, - 30 + + - 29 AS col0
----
66
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-3787
SELECT SUM( ALL + 81 ) * 32 * - 80 + - 50 * COUNT( * )
----
-207410

skipif mysql # not compatible
query I rowsort label-3787
SELECT SUM ( ALL + 81 ) * 32 * - 80 + - 50 * COUNT ( * )
----
-207410

query I rowsort
SELECT ALL - - 83 * 37 * - 7 AS col0
----
-21497

onlyif mysql # aggregate syntax: 
query I rowsort label-3789
SELECT COUNT( * ) + - 56 AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-3789
SELECT COUNT ( * ) + - 56 AS col0
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-3790
SELECT - 22 DIV 50 * - ( - 6 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3790
SELECT - 22 / 50 * - ( - 6 ) AS col1
----
0

query I rowsort
SELECT - 31 + + 81 AS col0
----
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3792
SELECT ALL + 11 DIV + + 62 + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-3792
SELECT ALL + 11 / + + 62 + + COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3793
SELECT 57 * - ( - 87 ) * - 49 + - - COUNT( * ), 90 col2
----
-242990
90

skipif mysql # not compatible
query II rowsort label-3793
SELECT 57 * - ( - 87 ) * - 49 + - - COUNT ( * ), 90 col2
----
-242990
90

query II rowsort
SELECT - 91 * - 63 + - 62, + 93 * - 22 AS col2
----
5671
-2046

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3795
SELECT CAST( NULL AS DECIMAL ) * - - ( + + 21 ) * + 92 + + + 69 - - 4 + + 74 + + 3 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3795
SELECT CAST ( NULL AS REAL ) * - - ( + + 21 ) * + 92 + + + 69 - - 4 + + 74 + + 3 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-3796
SELECT - 23, + 19 DIV 8 AS col1, - ( + - 63 ) - + CAST( 7 AS SIGNED ) + + 51 * - + NULLIF ( + + COUNT( * ), + 69 ) AS col1
----
-23
2
5

skipif mysql # not compatible
query III rowsort label-3796
SELECT - 23, + 19 / 8 AS col1, - ( + - 63 ) - + CAST ( 7 AS INTEGER ) + + 51 * - + NULLIF ( + + COUNT ( * ), + 69 ) AS col1
----
-23
2
5

query II rowsort
SELECT + 98 + + 44 * + 10 AS col1, + 95 AS col2
----
538
95

onlyif mysql # aggregate syntax: 
query I rowsort label-3798
SELECT - + COUNT( * ) * - + 52 - 73 * - 71 * COUNT( * ) AS col1
----
5235

skipif mysql # not compatible
query I rowsort label-3798
SELECT - + COUNT ( * ) * - + 52 - 73 * - 71 * COUNT ( * ) AS col1
----
5235

query I rowsort
SELECT ALL + 86 + + 34
----
120

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3800
SELECT + 11 + MAX( ALL - 93 ) DIV COUNT( * ) AS col1
----
-82

skipif mysql # not compatible
query I rowsort label-3800
SELECT + 11 + MAX ( ALL - 93 ) / COUNT ( * ) AS col1
----
-82

query I rowsort
SELECT DISTINCT 59 + + 56
----
115

query I rowsort
SELECT ALL 88 + 57 AS col0
----
145

onlyif mysql # aggregate syntax: 
query I rowsort label-3803
SELECT ALL 70 + - - COUNT( * ) + + 21 AS col2
----
92

skipif mysql # not compatible
query I rowsort label-3803
SELECT ALL 70 + - - COUNT ( * ) + + 21 AS col2
----
92

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3804
SELECT CAST( NULL AS DECIMAL ) + 67 * 91
----
NULL

skipif mysql # not compatible
query I rowsort label-3804
SELECT CAST ( NULL AS REAL ) + 67 * 91
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3805
SELECT COUNT( * ) * + - 99
----
-99

skipif mysql # not compatible
query I rowsort label-3805
SELECT COUNT ( * ) * + - 99
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3806
SELECT - MIN( ALL - - 39 ) AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-3806
SELECT - MIN ( ALL - - 39 ) AS col0
----
-39

query II rowsort
SELECT DISTINCT 51 col2, - ( 11 ) + + 28 AS col2
----
51
17

onlyif mysql # DIV for integer division: 
query I rowsort label-3808
SELECT ALL 10 DIV + 39 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3808
SELECT ALL 10 / + 39 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3809
SELECT NULLIF ( ( + COUNT( * ) ), + 65 ) DIV - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-3809
SELECT NULLIF ( ( + COUNT ( * ) ), + 65 ) / - COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3810
SELECT 78 + + - MIN( - + 34 ) AS col1
----
112

skipif mysql # not compatible
query I rowsort label-3810
SELECT 78 + + - MIN ( - + 34 ) AS col1
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-3811
SELECT ALL - 96 - COUNT( * ) AS col0
----
-97

skipif mysql # not compatible
query I rowsort label-3811
SELECT ALL - 96 - COUNT ( * ) AS col0
----
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-3812
SELECT - COUNT( * ) AS col0, - 60
----
-1
-60

skipif mysql # not compatible
query II rowsort label-3812
SELECT - COUNT ( * ) AS col0, - 60
----
-1
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3813
SELECT ALL 17 AS col1, MIN( - 26 ) DIV + + 46 + + - 99 * + + 15 * 51 + - + 91 + - 21 AS col0
----
17
-75847

skipif mysql # not compatible
query II rowsort label-3813
SELECT ALL 17 AS col1, MIN ( - 26 ) / + + 46 + + - 99 * + + 15 * 51 + - + 91 + - 21 AS col0
----
17
-75847

onlyif mysql # DIV for integer division: 
query I rowsort label-3814
SELECT ALL ( - ( - - 58 ) ) DIV - 97 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3814
SELECT ALL ( - ( - - 58 ) ) / - 97 AS col0
----
0

query II rowsort
SELECT 6, 30 * - + 85 col1
----
6
-2550

onlyif mysql # aggregate syntax: 
query I rowsort label-3816
SELECT ALL 68 * + + COUNT( * ) * - - 1 * - - COUNT( ALL 95 ) col2
----
68

skipif mysql # not compatible
query I rowsort label-3816
SELECT ALL 68 * + + COUNT ( * ) * - - 1 * - - COUNT ( ALL 95 ) col2
----
68

query I rowsort
SELECT 84 + + 71 - + 36
----
119

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3818
SELECT ALL - - 96 AS col1, - CAST( NULL AS SIGNED ) * 80 / + COUNT( * ) + ( 52 ) AS col0
----
96
NULL

skipif mysql # not compatible
query II rowsort label-3818
SELECT ALL - - 96 AS col1, - CAST ( NULL AS INTEGER ) * 80 / + COUNT ( * ) + ( 52 ) AS col0
----
96
NULL

query I rowsort
SELECT DISTINCT + 64 * - + 53
----
-3392

query II rowsort
SELECT ALL - - ( 22 ) col2, 12 AS col2
----
22
12

onlyif mysql # aggregate syntax: 
query II rowsort label-3821
SELECT ALL - 3, - SUM( DISTINCT - 36 ) AS col1
----
-3
36

skipif mysql # not compatible
query II rowsort label-3821
SELECT ALL - 3, - SUM ( DISTINCT - 36 ) AS col1
----
-3
36

query I rowsort
SELECT - 93 * - 78 * 75 AS col2
----
544050

onlyif mysql # DIV for integer division: 
query II rowsort label-3823
SELECT DISTINCT - 6 col1, 3 DIV + 4 AS col2
----
-6
0

skipif mysql # not compatible
query II rowsort label-3823
SELECT DISTINCT - 6 col1, 3 / + 4 AS col2
----
-6
0

query I rowsort
SELECT + - ( 16 ) AS col0
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3825
SELECT ALL - + 85, NULLIF ( 89, + + 36 / + + ( + + AVG ( ALL + + 76 ) ) + + COUNT( * ) / + CAST( - - 47 AS SIGNED ) * - 55 + - COUNT( * ) ) + + + 27 + - - 8 + 9 * 41 AS col2
----
-85
493

skipif mysql # not compatible
query II rowsort label-3825
SELECT ALL - + 85, NULLIF ( 89, + + 36 / + + ( + + AVG ( ALL + + 76 ) ) + + COUNT ( * ) / + CAST ( - - 47 AS INTEGER ) * - 55 + - COUNT ( * ) ) + + + 27 + - - 8 + 9 * 41 AS col2
----
-85
493

onlyif mysql # DIV for integer division: 
query I rowsort label-3826
SELECT + 59 DIV + COALESCE ( - 69, 4 * 83, 38 )
----
0

skipif mysql # not compatible
query I rowsort label-3826
SELECT + 59 / + COALESCE ( - 69, 4 * 83, 38 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3827
SELECT + COUNT( * ) * + - 9 col2, 47 AS col2
----
-9
47

skipif mysql # not compatible
query II rowsort label-3827
SELECT + COUNT ( * ) * + - 9 col2, 47 AS col2
----
-9
47

query II rowsort
SELECT + 79 AS col2, + 53
----
79
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3829
SELECT - 51 + + - ( - CAST( NULL AS SIGNED ) ) - - - 96
----
NULL

skipif mysql # not compatible
query I rowsort label-3829
SELECT - 51 + + - ( - CAST ( NULL AS INTEGER ) ) - - - 96
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3830
SELECT ALL + - 67 + - - COUNT( * ) AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-3830
SELECT ALL + - 67 + - - COUNT ( * ) AS col1
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3831
SELECT - AVG ( ALL + + 3 ) / - 78 * + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3831
SELECT - AVG ( ALL + + 3 ) / - 78 * + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - + 63 * + + 99 * - - 62 + - 87 * + 92 + + 7
----
-394691

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3833
SELECT ALL + - COUNT( * ) + - - MAX( ALL NULLIF ( + + CAST( - 22 AS SIGNED ), 43 ) ) AS col1, + 14 + - 38
----
-23
-24

skipif mysql # not compatible
query II rowsort label-3833
SELECT ALL + - COUNT ( * ) + - - MAX ( ALL NULLIF ( + + CAST ( - 22 AS INTEGER ), 43 ) ) AS col1, + 14 + - 38
----
-23
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-3834
SELECT DISTINCT + 88 * - COUNT( ALL + 35 ) + + 64 + - 50 * 57 + - 24 AS col0
----
-2898

skipif mysql # not compatible
query I rowsort label-3834
SELECT DISTINCT + 88 * - COUNT ( ALL + 35 ) + + 64 + - 50 * 57 + - 24 AS col0
----
-2898

onlyif mysql # aggregate syntax: 
query II rowsort label-3835
SELECT ALL + - CASE WHEN + 26 < NULL THEN 70 + + + ( + 27 ) END AS col2, COUNT( * ) * 55 AS col0
----
NULL
55

skipif mysql # not compatible
query II rowsort label-3835
SELECT ALL + - CASE WHEN + 26 < NULL THEN 70 + + + ( + 27 ) END AS col2, COUNT ( * ) * 55 AS col0
----
NULL
55

onlyif mysql # aggregate syntax: 
query I rowsort label-3836
SELECT DISTINCT - COUNT( * ) + 3 - + 41
----
-39

skipif mysql # not compatible
query I rowsort label-3836
SELECT DISTINCT - COUNT ( * ) + 3 - + 41
----
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-3837
SELECT DISTINCT 11 DIV + 70 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3837
SELECT DISTINCT 11 / + 70 AS col0
----
0

query I rowsort
SELECT - 40 + + + 71 col2
----
31

onlyif mysql # aggregate syntax: 
query II rowsort label-3839
SELECT + COUNT( * ) * 54 * + 53 AS col2, 41 * + 78 - + 50 * - - COUNT( * ) * + ( + - 74 ) * + 18
----
2862
69798

skipif mysql # not compatible
query II rowsort label-3839
SELECT + COUNT ( * ) * 54 * + 53 AS col2, 41 * + 78 - + 50 * - - COUNT ( * ) * + ( + - 74 ) * + 18
----
2862
69798

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3840
SELECT - COALESCE ( - 5, + 26 * + - CAST( NULL AS SIGNED ) )
----
5

skipif mysql # not compatible
query I rowsort label-3840
SELECT - COALESCE ( - 5, + 26 * + - CAST ( NULL AS INTEGER ) )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3841
SELECT ALL 4 - + - 72 + - COUNT( * ) + + 21
----
96

skipif mysql # not compatible
query I rowsort label-3841
SELECT ALL 4 - + - 72 + - COUNT ( * ) + + 21
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-3842
SELECT + COUNT( * ) * 26 AS col0, - 58 * + COALESCE ( COUNT( * ), - - 12, 59, - - 87 * - COUNT( * ) * - COUNT( * ) + 1 )
----
26
-58

skipif mysql # not compatible
query II rowsort label-3842
SELECT + COUNT ( * ) * 26 AS col0, - 58 * + COALESCE ( COUNT ( * ), - - 12, 59, - - 87 * - COUNT ( * ) * - COUNT ( * ) + 1 )
----
26
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3843
SELECT ALL ( COUNT( * ) ) col1
----
1

skipif mysql # not compatible
query I rowsort label-3843
SELECT ALL ( COUNT ( * ) ) col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3844
SELECT DISTINCT 33 * - ( - COUNT( - - 98 ) ) AS col1
----
33

skipif mysql # not compatible
query I rowsort label-3844
SELECT DISTINCT 33 * - ( - COUNT ( - - 98 ) ) AS col1
----
33

query I rowsort
SELECT + ( + 80 ) * - 40 col2
----
-3200

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3846
SELECT + 39 + + 86, 19 + - COUNT( * ) DIV 22 AS col0
----
125
19

skipif mysql # not compatible
query II rowsort label-3846
SELECT + 39 + + 86, 19 + - COUNT ( * ) / 22 AS col0
----
125
19

onlyif mysql # aggregate syntax: 
query I rowsort label-3847
SELECT + 41 + - ( - - COUNT( * ) ) + + 56
----
96

skipif mysql # not compatible
query I rowsort label-3847
SELECT + 41 + - ( - - COUNT ( * ) ) + + 56
----
96

query I rowsort
SELECT + 50 * 91 - 85 - - 93 col1
----
4558

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3849
SELECT - CAST( NULL AS SIGNED ) - - 91 AS col2, + 20 * + 22 DIV - 1 - COUNT( * ) + 52
----
NULL
-389

skipif mysql # not compatible
query II rowsort label-3849
SELECT - CAST ( NULL AS INTEGER ) - - 91 AS col2, + 20 * + 22 / - 1 - COUNT ( * ) + 52
----
NULL
-389

query I rowsort
SELECT ALL + 59 * + + ( - ( 34 ) ) * - - 71 + - - 95
----
-142331

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3851
SELECT CAST( 20 AS SIGNED ), + CAST( - 49 AS SIGNED ) AS col0
----
20
-49

skipif mysql # not compatible
query II rowsort label-3851
SELECT CAST ( 20 AS INTEGER ), + CAST ( - 49 AS INTEGER ) AS col0
----
20
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3852
SELECT - 36 DIV + - 62 + - COUNT( * ), CAST( + ( - - COUNT( * ) ) AS SIGNED ) AS col2
----
-1
1

skipif mysql # not compatible
query II rowsort label-3852
SELECT - 36 / + - 62 + - COUNT ( * ), CAST ( + ( - - COUNT ( * ) ) AS INTEGER ) AS col2
----
-1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3853
SELECT ALL + COUNT( * ) * + 42 AS col1
----
42

skipif mysql # not compatible
query I rowsort label-3853
SELECT ALL + COUNT ( * ) * + 42 AS col1
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-3854
SELECT + ( + COALESCE ( - CASE WHEN NOT ( NULL ) IS NULL THEN 74 END, - SUM( + 95 ) ) )
----
-95

skipif mysql # not compatible
query I rowsort label-3854
SELECT + ( + COALESCE ( - CASE WHEN NOT ( NULL ) IS NULL THEN 74 END, - SUM ( + 95 ) ) )
----
-95

query I rowsort
SELECT ALL - - 38 * - 88 + 10 AS col2
----
-3334

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3856
SELECT 39 * + COUNT( * ) + - 76 * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3856
SELECT 39 * + COUNT ( * ) + - 76 * + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3857
SELECT MAX( ALL + - 93 ) AS col1
----
-93

skipif mysql # not compatible
query I rowsort label-3857
SELECT MAX ( ALL + - 93 ) AS col1
----
-93

query I rowsort
SELECT DISTINCT - 51 * - 12 + - + 17 + 25
----
620

query I rowsort
SELECT DISTINCT + + ( + 17 ) AS col0
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3860
SELECT ALL - + 18 * + 79 + - ( - 42 ) * - COUNT( * ) AS col0, 53 - - - 17 DIV + 48
----
-1464
53

skipif mysql # not compatible
query II rowsort label-3860
SELECT ALL - + 18 * + 79 + - ( - 42 ) * - COUNT ( * ) AS col0, 53 - - - 17 / + 48
----
-1464
53

query I rowsort
SELECT ALL + 37 * - 86 + - 7 AS col1
----
-3189

onlyif mysql # aggregate syntax: 
query II rowsort label-3862
SELECT - + 73 + - - 31 + + ( + - MIN( + 58 ) ) col0, - 32 AS col1
----
-100
-32

skipif mysql # not compatible
query II rowsort label-3862
SELECT - + 73 + - - 31 + + ( + - MIN ( + 58 ) ) col0, - 32 AS col1
----
-100
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-3863
SELECT DISTINCT + - CASE - - MAX( DISTINCT - 2 ) WHEN COUNT( * ) THEN NULL ELSE - + 82 END
----
82

skipif mysql # not compatible
query I rowsort label-3863
SELECT DISTINCT + - CASE - - MAX ( DISTINCT - 2 ) WHEN COUNT ( * ) THEN NULL ELSE - + 82 END
----
82

query I rowsort
SELECT ALL + 67 * + 53
----
3551

onlyif mysql # aggregate syntax: 
query I rowsort label-3865
SELECT 68 * 21 + - ( - 54 ) * + ( - + COUNT( * ) )
----
1374

skipif mysql # not compatible
query I rowsort label-3865
SELECT 68 * 21 + - ( - 54 ) * + ( - + COUNT ( * ) )
----
1374

query I rowsort
SELECT - 23 * + 57
----
-1311

onlyif mysql # aggregate syntax: 
query I rowsort label-3867
SELECT - COUNT( * ) + - 51 + 24 + - 83 + COUNT( * ) AS col2
----
-110

skipif mysql # not compatible
query I rowsort label-3867
SELECT - COUNT ( * ) + - 51 + 24 + - 83 + COUNT ( * ) AS col2
----
-110

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3868
SELECT DISTINCT CAST( - + 74 AS SIGNED )
----
-74

skipif mysql # not compatible
query I rowsort label-3868
SELECT DISTINCT CAST ( - + 74 AS INTEGER )
----
-74

query I rowsort
SELECT ALL 62 * + + COALESCE ( - 76, + 80 ) - + 43 AS col1
----
-4755

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3870
SELECT ALL CAST( - 22 AS SIGNED ) AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-3870
SELECT ALL CAST ( - 22 AS INTEGER ) AS col0
----
-22

query I rowsort
SELECT - 93 * + 67 AS col2
----
-6231

onlyif mysql # DIV for integer division: 
query I rowsort label-3872
SELECT - 10 DIV + 70 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3872
SELECT - 10 / + 70 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3873
SELECT COUNT( * ) AS col1, + NULLIF ( - + CAST( NULL AS SIGNED ), 16 ) AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-3873
SELECT COUNT ( * ) AS col1, + NULLIF ( - + CAST ( NULL AS INTEGER ), 16 ) AS col2
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3874
SELECT - MAX( ALL + 66 ) + - 95 + - ( - 21 )
----
-140

skipif mysql # not compatible
query I rowsort label-3874
SELECT - MAX ( ALL + 66 ) + - 95 + - ( - 21 )
----
-140

query I rowsort
SELECT - 63 + - 64 * + - 44 * - ( - 44 ) - 83 - - + 36 + 13 + + + 31 * - 80 AS col2
----
121327

onlyif mysql # DIV for integer division: 
query I rowsort label-3876
SELECT - 74 DIV - 12
----
6

skipif mysql # not compatible
query I rowsort label-3876
SELECT - 74 / - 12
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-3877
SELECT + 80 DIV - 80
----
-1

skipif mysql # not compatible
query I rowsort label-3877
SELECT + 80 / - 80
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3878
SELECT DISTINCT - 24 DIV 47 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3878
SELECT DISTINCT - 24 / 47 AS col1
----
0

query I rowsort
SELECT + ( - ( + 91 ) ) * - 67
----
6097

onlyif mysql # aggregate syntax: 
query I rowsort label-3880
SELECT - SUM( + + ( + 57 ) )
----
-57

skipif mysql # not compatible
query I rowsort label-3880
SELECT - SUM ( + + ( + 57 ) )
----
-57

query I rowsort
SELECT + 8 + + ( - - ( - 2 ) ) * 75
----
-142

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3882
SELECT ALL + CAST( + 9 AS SIGNED ) * + MAX( 11 ) col0
----
99

skipif mysql # not compatible
query I rowsort label-3882
SELECT ALL + CAST ( + 9 AS INTEGER ) * + MAX ( 11 ) col0
----
99

onlyif mysql # aggregate syntax: 
query II rowsort label-3883
SELECT - + 70 * - MAX( ALL - 43 ) * + 44 AS col2, 95 AS col1
----
-132440
95

skipif mysql # not compatible
query II rowsort label-3883
SELECT - + 70 * - MAX ( ALL - 43 ) * + 44 AS col2, 95 AS col1
----
-132440
95

onlyif mysql # aggregate syntax: 
query I rowsort label-3884
SELECT ALL - + 88 + + - COUNT( * ) + - 16
----
-105

skipif mysql # not compatible
query I rowsort label-3884
SELECT ALL - + 88 + + - COUNT ( * ) + - 16
----
-105

query I rowsort
SELECT - - 84 col0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3886
SELECT ALL COUNT( * ) + + 38 * - 87 * - + 58 * + 33
----
6327685

skipif mysql # not compatible
query I rowsort label-3886
SELECT ALL COUNT ( * ) + + 38 * - 87 * - + 58 * + 33
----
6327685

query I rowsort
SELECT ALL + + 76 * + 16
----
1216

query I rowsort
SELECT + 84 + + 86 AS col2
----
170

query I rowsort
SELECT + 50 * 30 * 84
----
126000

query I rowsort
SELECT 55 - + - 85 * - + 11 * 75
----
-70070

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3891
SELECT + COUNT( + CAST( + - 69 AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-3891
SELECT + COUNT ( + CAST ( + - 69 AS INTEGER ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3892
SELECT SUM( DISTINCT 10 ) col1
----
10

skipif mysql # not compatible
query I rowsort label-3892
SELECT SUM ( DISTINCT 10 ) col1
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-3893
SELECT ALL - 99 DIV ( + - 83 ) + - 94 AS col1
----
-93

skipif mysql # not compatible
query I rowsort label-3893
SELECT ALL - 99 / ( + - 83 ) + - 94 AS col1
----
-93

query I rowsort
SELECT + + ( + + 84 ) AS col0
----
84

query I rowsort
SELECT ALL - - ( 21 )
----
21

query I rowsort
SELECT - 0 * + COALESCE ( + 77, - + 30 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3897
SELECT DISTINCT + - COUNT( * ) * - 50 AS col2
----
50

skipif mysql # not compatible
query I rowsort label-3897
SELECT DISTINCT + - COUNT ( * ) * - 50 AS col2
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-3898
SELECT ALL ( - + 32 ) * - COUNT( * ) + 21 + + 76 * 14 AS col2
----
1117

skipif mysql # not compatible
query I rowsort label-3898
SELECT ALL ( - + 32 ) * - COUNT ( * ) + 21 + + 76 * 14 AS col2
----
1117

query I rowsort
SELECT DISTINCT 94 * - 72 AS col2
----
-6768

query I rowsort
SELECT 72 * - 25
----
-1800

onlyif mysql # aggregate syntax: 
query I rowsort label-3901
SELECT ALL + 64 - + CASE + - COUNT( + - 17 ) WHEN CASE - + MAX( DISTINCT - 45 ) WHEN - NULLIF ( - - NULLIF ( + + COALESCE ( + 27, + COUNT( * ) * 12 + + 92 ), 17 - - SUM( + + 13 ) * - + 48 * + - 46 * + 63 + - - 15 ), + 90 ) THEN + COALESCE ( - + ( 75 ), 58, 5 ) END THEN NULL ELSE 20 END + - + SUM( - 38 ) * COALESCE ( 37 * 64, NULLIF ( + 74, + 76 * 1 ) ) * 48
----
4319276

skipif mysql # not compatible
query I rowsort label-3901
SELECT ALL + 64 - + CASE + - COUNT ( + - 17 ) WHEN CASE - + MAX ( DISTINCT - 45 ) WHEN - NULLIF ( - - NULLIF ( + + COALESCE ( + 27, + COUNT ( * ) * 12 + + 92 ), 17 - - SUM ( + + 13 ) * - + 48 * + - 46 * + 63 + - - 15 ), + 90 ) THEN + COALESCE ( - + ( 75 ), 58, 5 ) END THEN NULL ELSE 20 END + - + SUM ( - 38 ) * COALESCE ( 37 * 64, NULLIF ( + 74, + 76 * 1 ) ) * 48
----
4319276

query I rowsort
SELECT DISTINCT - ( - - ( + 26 ) ) AS col2
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-3903
SELECT DISTINCT - MIN( DISTINCT - 20 )
----
20

skipif mysql # not compatible
query I rowsort label-3903
SELECT DISTINCT - MIN ( DISTINCT - 20 )
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3904
SELECT 62 * - 5 col0, CAST( - - COUNT( * ) AS SIGNED ) AS col2
----
-310
1

skipif mysql # not compatible
query II rowsort label-3904
SELECT 62 * - 5 col0, CAST ( - - COUNT ( * ) AS INTEGER ) AS col2
----
-310
1

query I rowsort
SELECT 87 * ( 34 ) * 61 + - - 36 AS col1
----
180474

query I rowsort
SELECT ALL - 37 * 27 AS col0
----
-999

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3907
SELECT 68 + - + ( - ( CAST( NULL AS SIGNED ) ) ), 90 AS col0
----
NULL
90

skipif mysql # not compatible
query II rowsort label-3907
SELECT 68 + - + ( - ( CAST ( NULL AS INTEGER ) ) ), 90 AS col0
----
NULL
90

query I rowsort
SELECT 77 + + + 98
----
175

query I rowsort
SELECT 87 + - 37 AS col2
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-3910
SELECT ALL + 74 + - 14 + 95 * 38 * COUNT( * )
----
3670

skipif mysql # not compatible
query I rowsort label-3910
SELECT ALL + 74 + - 14 + 95 * 38 * COUNT ( * )
----
3670

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3911
SELECT DISTINCT - + 86 + MIN( 85 ) * - 41 * - - ( 56 ) + + - CASE 4 WHEN - + CASE + 23 WHEN + + COUNT( * ) THEN - SUM( 10 ) * - 41 DIV + 18 END THEN + + 18 * + ( - + COUNT( * ) ) WHEN - MIN( - + 28 ) THEN 57 - - 47 + 33 + ( COUNT( * ) ) - - - 66 + 10 DIV 93 * + - 86 ELSE + COUNT( * ) END * 44 AS col0
----
-195290

skipif mysql # not compatible
query I rowsort label-3911
SELECT DISTINCT - + 86 + MIN ( 85 ) * - 41 * - - ( 56 ) + + - CASE 4 WHEN - + CASE + 23 WHEN + + COUNT ( * ) THEN - SUM ( 10 ) * - 41 / + 18 END THEN + + 18 * + ( - + COUNT ( * ) ) WHEN - MIN ( - + 28 ) THEN 57 - - 47 + 33 + ( COUNT ( * ) ) - - - 66 + 10 / 93 * + - 86 ELSE + COUNT ( * ) END * 44 AS col0
----
-195290

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3912
SELECT ALL - CASE 60 WHEN 3 THEN + - COUNT( * ) ELSE NULL END + - 60 - CAST( NULL AS SIGNED ) + 33 * + 69 + + + 6 * - 10
----
NULL

skipif mysql # not compatible
query I rowsort label-3912
SELECT ALL - CASE 60 WHEN 3 THEN + - COUNT ( * ) ELSE NULL END + - 60 - CAST ( NULL AS INTEGER ) + 33 * + 69 + + + 6 * - 10
----
NULL

query I rowsort
SELECT 99 - 21
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3914
SELECT - SUM( DISTINCT 19 ) + - MIN( ALL + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3914
SELECT - SUM ( DISTINCT 19 ) + - MIN ( ALL + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3915
SELECT DISTINCT + 53 + + - CASE - - COUNT( * ) WHEN 29 THEN + 0 + - - 77 * + 76 - 63 * + 93 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3915
SELECT DISTINCT + 53 + + - CASE - - COUNT ( * ) WHEN 29 THEN + 0 + - - 77 * + 76 - 63 * + 93 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - 94 + 17 * - 0 + 23 AS col1
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-3917
SELECT 78 * 23 + - - 40 + - + COUNT( * ) col1
----
1833

skipif mysql # not compatible
query I rowsort label-3917
SELECT 78 * 23 + - - 40 + - + COUNT ( * ) col1
----
1833

query I rowsort
SELECT + 39 + 15 AS col0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-3919
SELECT DISTINCT + ( + - NULLIF ( + - CASE 71 WHEN + + 5 / - 5 - - 16 THEN NULL WHEN + 30 * + - COALESCE ( + - 78, 20 ) * - - MAX( DISTINCT + - 16 ) + + 35 THEN - - MIN( 31 ) + + 8 END, 67 / - - 34 ) ) * - 45
----
NULL

skipif mysql # not compatible
query I rowsort label-3919
SELECT DISTINCT + ( + - NULLIF ( + - CASE 71 WHEN + + 5 / - 5 - - 16 THEN NULL WHEN + 30 * + - COALESCE ( + - 78, 20 ) * - - MAX ( DISTINCT + - 16 ) + + 35 THEN - - MIN ( 31 ) + + 8 END, 67 / - - 34 ) ) * - 45
----
NULL

query I rowsort
SELECT 47 * - 63 * 38 AS col1
----
-112518

onlyif mysql # aggregate syntax: 
query I rowsort label-3921
SELECT ALL 15 * COUNT( * ) AS col1
----
15

skipif mysql # not compatible
query I rowsort label-3921
SELECT ALL 15 * COUNT ( * ) AS col1
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-3922
SELECT ALL + 79 - 89 DIV - 41 AS col2
----
81

skipif mysql # not compatible
query I rowsort label-3922
SELECT ALL + 79 - 89 / - 41 AS col2
----
81

query I rowsort
SELECT + + 93 col1
----
93

query I rowsort
SELECT 27 * - 82 + 58
----
-2156

query I rowsort
SELECT ALL - + 81 col1
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3926
SELECT ( CASE - - 95 WHEN + 43 THEN - - 35 WHEN - CAST( NULL AS SIGNED ) + - + 39 THEN NULL ELSE NULL END ) + + - 88 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3926
SELECT ( CASE - - 95 WHEN + 43 THEN - - 35 WHEN - CAST ( NULL AS INTEGER ) + - + 39 THEN NULL ELSE NULL END ) + + - 88 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3927
SELECT COUNT( * ) + - 95
----
-94

skipif mysql # not compatible
query I rowsort label-3927
SELECT COUNT ( * ) + - 95
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-3928
SELECT 4 * + 80 + - COUNT( - 70 )
----
319

skipif mysql # not compatible
query I rowsort label-3928
SELECT 4 * + 80 + - COUNT ( - 70 )
----
319

onlyif mysql # aggregate syntax: 
query I rowsort label-3929
SELECT ALL - MAX( ALL - + 8 )
----
8

skipif mysql # not compatible
query I rowsort label-3929
SELECT ALL - MAX ( ALL - + 8 )
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3930
SELECT + MAX( DISTINCT - NULLIF ( + 41, - 63 ) ) / - + AVG ( + ( - 98 ) ) + CASE - 26 WHEN - 20 + + + COUNT( * ) - - - NULLIF ( + 75, - 97 ) THEN + 86 END + + 84 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3930
SELECT + MAX ( DISTINCT - NULLIF ( + 41, - 63 ) ) / - + AVG ( + ( - 98 ) ) + CASE - 26 WHEN - 20 + + + COUNT ( * ) - - - NULLIF ( + 75, - 97 ) THEN + 86 END + + 84 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3931
SELECT + 35 * - - 94 + + COUNT( * ) * - 25 + + + 24 + + + ( + + 53 ) + 0 * + 7 * + + 3
----
3342

skipif mysql # not compatible
query I rowsort label-3931
SELECT + 35 * - - 94 + + COUNT ( * ) * - 25 + + + 24 + + + ( + + 53 ) + 0 * + 7 * + + 3
----
3342

query I rowsort
SELECT ALL 81 * + 63
----
5103

onlyif mysql # aggregate syntax: 
query I rowsort label-3933
SELECT + SUM( - 93 ) AS col1
----
-93

skipif mysql # not compatible
query I rowsort label-3933
SELECT + SUM ( - 93 ) AS col1
----
-93

query I rowsort
SELECT DISTINCT 10 * 61 * - - 96
----
58560

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3935
SELECT MAX( ALL - 61 ) DIV + - 45 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3935
SELECT MAX ( ALL - 61 ) / + - 45 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3936
SELECT + 54 * COUNT( * ) + + 75
----
129

skipif mysql # not compatible
query I rowsort label-3936
SELECT + 54 * COUNT ( * ) + + 75
----
129

query I rowsort
SELECT ALL 45 + + 95 AS col2
----
140

query I rowsort
SELECT DISTINCT 4 * - 7
----
-28

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3939
SELECT ALL 98 + 27 * - - 94 AS col2, COUNT( * ) DIV - 88 * + 40 + - 85 + + + 9 - + - COUNT( * )
----
2636
-75

skipif mysql # not compatible
query II rowsort label-3939
SELECT ALL 98 + 27 * - - 94 AS col2, COUNT ( * ) / - 88 * + 40 + - 85 + + + 9 - + - COUNT ( * )
----
2636
-75

query I rowsort
SELECT ALL 9 + + - 49
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-3941
SELECT - COUNT( 82 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3941
SELECT - COUNT ( 82 ) AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3942
SELECT 87 * + - CAST( 97 AS SIGNED ) col1
----
-8439

skipif mysql # not compatible
query I rowsort label-3942
SELECT 87 * + - CAST ( 97 AS INTEGER ) col1
----
-8439

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3943
SELECT ALL - NULLIF ( + COALESCE ( 17, + CAST( + 69 AS SIGNED ) ), 55 + - 97 ) + - 32
----
-49

skipif mysql # not compatible
query I rowsort label-3943
SELECT ALL - NULLIF ( + COALESCE ( 17, + CAST ( + 69 AS INTEGER ) ), 55 + - 97 ) + - 32
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-3944
SELECT DISTINCT - - 51 + 82 + - COUNT( * ) + + + 97 + - 76
----
153

skipif mysql # not compatible
query I rowsort label-3944
SELECT DISTINCT - - 51 + 82 + - COUNT ( * ) + + + 97 + - 76
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-3945
SELECT - MIN( ALL + 19 ) AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-3945
SELECT - MIN ( ALL + 19 ) AS col1
----
-19

query I rowsort
SELECT ALL + - 21 + - + 5
----
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-3947
SELECT DISTINCT - 65 * - + COALESCE ( - + 93, + 62 ) + + + 93 - 79 * + CASE 20 WHEN + - 30 THEN 87 WHEN + + 27 THEN + 31 * 38 * + 4 + + + 97 ELSE 78 DIV + - 47 END AS col1
----
-5873

skipif mysql # not compatible
query I rowsort label-3947
SELECT DISTINCT - 65 * - + COALESCE ( - + 93, + 62 ) + + + 93 - 79 * + CASE 20 WHEN + - 30 THEN 87 WHEN + + 27 THEN + 31 * 38 * + 4 + + + 97 ELSE 78 / + - 47 END AS col1
----
-5873

query I rowsort
SELECT + + 43 * + 6
----
258

onlyif mysql # aggregate syntax: 
query I rowsort label-3949
SELECT - + COUNT( * ) * - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-3949
SELECT - + COUNT ( * ) * - COUNT ( * )
----
1

query I rowsort
SELECT ALL - + 8 * - 25 * - + 32 + 58 AS col0
----
-6342

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3951
SELECT DISTINCT - CAST( + - 32 AS SIGNED )
----
32

skipif mysql # not compatible
query I rowsort label-3951
SELECT DISTINCT - CAST ( + - 32 AS INTEGER )
----
32

query I rowsort
SELECT ALL 7 - 16 AS col0
----
-9

query II rowsort
SELECT - 37 AS col0, + 55 * + + 7
----
-37
385

query I rowsort
SELECT ALL + + 17 * - ( - 21 ) AS col0
----
357

query I rowsort
SELECT - 73 * + 22 * - - 99
----
-158994

onlyif mysql # aggregate syntax: 
query I rowsort label-3956
SELECT - - COUNT( * ) * - 2 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-3956
SELECT - - COUNT ( * ) * - 2 AS col2
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3957
SELECT ALL + + CASE - 41 WHEN 5 * - CAST( + 80 AS SIGNED ) THEN - 15 WHEN - + 23 + 43 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3957
SELECT ALL + + CASE - 41 WHEN 5 * - CAST ( + 80 AS INTEGER ) THEN - 15 WHEN - + 23 + 43 THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3958
SELECT - + 42 * - COUNT( * ) + - COUNT( * ) AS col2, + 94
----
41
94

skipif mysql # not compatible
query II rowsort label-3958
SELECT - + 42 * - COUNT ( * ) + - COUNT ( * ) AS col2, + 94
----
41
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3959
SELECT - + 36 * + MAX( + 3 ) + - 25 * + COUNT( * ) * + 16 AS col0
----
-508

skipif mysql # not compatible
query I rowsort label-3959
SELECT - + 36 * + MAX ( + 3 ) + - 25 * + COUNT ( * ) * + 16 AS col0
----
-508

onlyif mysql # aggregate syntax: 
query I rowsort label-3960
SELECT COALESCE ( ( + COUNT( * ) ), COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3960
SELECT COALESCE ( ( + COUNT ( * ) ), COUNT ( * ) ) AS col1
----
1

query II rowsort
SELECT ALL + 81 AS col2, - 78 + - CASE + 52 WHEN - 55 THEN 54 ELSE NULL END * + + ( 92 ) / ( + + 26 ) + 41 - + - 86
----
81
NULL

query I rowsort
SELECT ALL 5 * - 38
----
-190

query I rowsort
SELECT ALL + ( + + 29 ) AS col1
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3964
SELECT + SUM( ALL - CAST( + 29 AS SIGNED ) ) AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-3964
SELECT + SUM ( ALL - CAST ( + 29 AS INTEGER ) ) AS col2
----
-29

query I rowsort
SELECT NULLIF ( - 23, + - 6 )
----
-23

query II rowsort
SELECT ALL 87 * 47 + + 54 + - 63, - 26 col1
----
4080
-26

query II rowsort
SELECT + 96 AS col2, + 43
----
96
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3968
SELECT + 6 * + AVG ( - 99 ) - 97 + COUNT( DISTINCT - - ( + + 73 ) ) * - MIN( DISTINCT + + 68 ) * - + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3968
SELECT + 6 * + AVG ( - 99 ) - 97 + COUNT ( DISTINCT - - ( + + 73 ) ) * - MIN ( DISTINCT + + 68 ) * - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3969
SELECT + CASE + + 11 WHEN + + 0 + - 88 + 78 * + 43 THEN SUM( ALL 61 ) * + 0 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3969
SELECT + CASE + + 11 WHEN + + 0 + - 88 + 78 * + 43 THEN SUM ( ALL 61 ) * + 0 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3970
SELECT - COUNT( * ) * - + 77 * COALESCE ( - 90, + + 27 * + - COUNT( DISTINCT - - 76 ) + - 32 )
----
-6930

skipif mysql # not compatible
query I rowsort label-3970
SELECT - COUNT ( * ) * - + 77 * COALESCE ( - 90, + + 27 * + - COUNT ( DISTINCT - - 76 ) + - 32 )
----
-6930

onlyif mysql # aggregate syntax: 
query I rowsort label-3971
SELECT + 33 * MAX( DISTINCT - + 70 )
----
-2310

skipif mysql # not compatible
query I rowsort label-3971
SELECT + 33 * MAX ( DISTINCT - + 70 )
----
-2310

onlyif mysql # aggregate syntax: 
query I rowsort label-3972
SELECT + NULLIF ( + - 26, - 34 + + - SUM( - 28 ) ) col1
----
-26

skipif mysql # not compatible
query I rowsort label-3972
SELECT + NULLIF ( + - 26, - 34 + + - SUM ( - 28 ) ) col1
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-3973
SELECT NULLIF ( 3, - COUNT( * ) + - 42 )
----
3

skipif mysql # not compatible
query I rowsort label-3973
SELECT NULLIF ( 3, - COUNT ( * ) + - 42 )
----
3

query I rowsort
SELECT ALL 30 * 13 * + 76 * 51 + - 71
----
1511569

onlyif mysql # aggregate syntax: 
query II rowsort label-3975
SELECT + COUNT( ALL - 30 ) AS col2, - 27 * 34 + COALESCE ( - 75, - - 16 * 19 + + 33 * - 45 * 73 * - 3 * + - 72 ) AS col1
----
1
-993

skipif mysql # not compatible
query II rowsort label-3975
SELECT + COUNT ( ALL - 30 ) AS col2, - 27 * 34 + COALESCE ( - 75, - - 16 * 19 + + 33 * - 45 * 73 * - 3 * + - 72 ) AS col1
----
1
-993

onlyif mysql # aggregate syntax: 
query I rowsort label-3976
SELECT + ( - 99 ) - + COUNT( * )
----
-100

skipif mysql # not compatible
query I rowsort label-3976
SELECT + ( - 99 ) - + COUNT ( * )
----
-100

query I rowsort
SELECT ALL + ( - 70 )
----
-70

query II rowsort
SELECT ALL + 32 AS col0, 67 + - + 21 * + 95 AS col1
----
32
-1928

query I rowsort
SELECT ALL 85 * - 4 AS col0
----
-340

query I rowsort
SELECT - NULLIF ( - + 34, 71 + + - 88 ) + - + 75 AS col2
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-3981
SELECT + 50 / + ( CASE + 97 WHEN - 30 THEN 7 WHEN ( - - 33 ) THEN NULL END ) * - COUNT( * ) / + 51 * COUNT( * ) / COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3981
SELECT + 50 / + ( CASE + 97 WHEN - 30 THEN 7 WHEN ( - - 33 ) THEN NULL END ) * - COUNT ( * ) / + 51 * COUNT ( * ) / COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3982
SELECT ALL COUNT( - 82 ) * + 47 + 34 AS col2
----
81

skipif mysql # not compatible
query I rowsort label-3982
SELECT ALL COUNT ( - 82 ) * + 47 + 34 AS col2
----
81

query I rowsort
SELECT + 94 + - 78 * - 79 col0
----
6256

onlyif mysql # DIV for integer division: 
query III rowsort label-3984
SELECT 17 AS col1, 76 AS col0, 14 DIV + 31
----
17
76
0

skipif mysql # not compatible
query III rowsort label-3984
SELECT 17 AS col1, 76 AS col0, 14 / + 31
----
17
76
0

query I rowsort
SELECT ALL 33 * - ( - 9 ) AS col2
----
297

query I rowsort
SELECT + 8 + + 65 * + + 38 AS col0
----
2478

onlyif mysql # aggregate syntax: 
query II rowsort label-3987
SELECT ALL + 64 AS col2, + COUNT( * )
----
64
1

skipif mysql # not compatible
query II rowsort label-3987
SELECT ALL + 64 AS col2, + COUNT ( * )
----
64
1

query II rowsort
SELECT 54 AS col2, ( + 50 )
----
54
50

query I rowsort
SELECT + 35 + - 20
----
15

query I rowsort
SELECT + + 31 + 58
----
89

query I rowsort
SELECT ALL + 20 * - + 28
----
-560

query II rowsort
SELECT - - 61 AS col1, ( 46 ) AS col0
----
61
46

query I rowsort
SELECT ALL + 51 - 25 AS col1
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3994
SELECT SUM( ALL - 11 ) AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-3994
SELECT SUM ( ALL - 11 ) AS col1
----
-11

query I rowsort
SELECT - + 82 + - 29
----
-111

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3996
SELECT - 93 * + ( + + ( 99 ) ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3996
SELECT - 93 * + ( + + ( 99 ) ) + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3997
SELECT ALL + ( MIN( DISTINCT + - 16 ) ) * - 35 col0
----
560

skipif mysql # not compatible
query I rowsort label-3997
SELECT ALL + ( MIN ( DISTINCT + - 16 ) ) * - 35 col0
----
560

onlyif mysql # aggregate syntax: 
query I rowsort label-3998
SELECT + 33 * + - 14 * + - COUNT( * ) AS col1
----
462

skipif mysql # not compatible
query I rowsort label-3998
SELECT + 33 * + - 14 * + - COUNT ( * ) AS col1
----
462

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3999
SELECT + COUNT( * ) + - COUNT( * ) + + 21 + - 47 * - 21 * + ( + CAST( - 91 AS SIGNED ) ) * + CASE 90 WHEN + + ( 57 ) THEN + 19 - + - 67 WHEN COUNT( * ) THEN NULL ELSE - COUNT( * ) END AS col1
----
89838

skipif mysql # not compatible
query I rowsort label-3999
SELECT + COUNT ( * ) + - COUNT ( * ) + + 21 + - 47 * - 21 * + ( + CAST ( - 91 AS INTEGER ) ) * + CASE 90 WHEN + + ( 57 ) THEN + 19 - + - 67 WHEN COUNT ( * ) THEN NULL ELSE - COUNT ( * ) END AS col1
----
89838

onlyif mysql # DIV for integer division: 
query I rowsort label-4000
SELECT DISTINCT + NULLIF ( - 84, + 5 ) * + 90 + + - 46 DIV + 41 AS col2
----
-7561

skipif mysql # not compatible
query I rowsort label-4000
SELECT DISTINCT + NULLIF ( - 84, + 5 ) * + 90 + + - 46 / + 41 AS col2
----
-7561

onlyif mysql # aggregate syntax: 
query I rowsort label-4001
SELECT + 51 + - COUNT( * ) + - - 29 + 21
----
100

skipif mysql # not compatible
query I rowsort label-4001
SELECT + 51 + - COUNT ( * ) + - - 29 + 21
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-4002
SELECT ALL 20 * COUNT( * ) * 8 * - - 56
----
8960

skipif mysql # not compatible
query I rowsort label-4002
SELECT ALL 20 * COUNT ( * ) * 8 * - - 56
----
8960

query I rowsort
SELECT DISTINCT 40 / CASE - ( - 97 ) WHEN + 28 THEN NULL WHEN - 37 + + 5 THEN + 70 ELSE NULL END + + 52 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4004
SELECT ALL + 78 DIV + + 47, 86 AS col0
----
1
86

skipif mysql # not compatible
query II rowsort label-4004
SELECT ALL + 78 / + + 47, 86 AS col0
----
1
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4005
SELECT CAST( + 0 AS SIGNED ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4005
SELECT CAST ( + 0 AS INTEGER ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4006
SELECT - COUNT( * ) * - 95 AS col1
----
95

skipif mysql # not compatible
query I rowsort label-4006
SELECT - COUNT ( * ) * - 95 AS col1
----
95

query II rowsort
SELECT - 52 + + 1 AS col2, ( + 77 )
----
-51
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4008
SELECT ALL 27 DIV + 53 + - 30 - - NULLIF ( 87, - 54 * COUNT( * ) + - 54 ) + - - 56 * - NULLIF ( + - 76, + - 62 ) + - ( - 86 ) * - 46 - 11 + 89 AS col1
----
435

skipif mysql # not compatible
query I rowsort label-4008
SELECT ALL 27 / + 53 + - 30 - - NULLIF ( 87, - 54 * COUNT ( * ) + - 54 ) + - - 56 * - NULLIF ( + - 76, + - 62 ) + - ( - 86 ) * - 46 - 11 + 89 AS col1
----
435

onlyif mysql # aggregate syntax: 
query II rowsort label-4009
SELECT - 34 - 68 AS col0, 0 - + COUNT( * ) AS col0
----
-102
-1

skipif mysql # not compatible
query II rowsort label-4009
SELECT - 34 - 68 AS col0, 0 - + COUNT ( * ) AS col0
----
-102
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4010
SELECT ALL 70 DIV + ( - ( + 17 ) ) + + 60
----
56

skipif mysql # not compatible
query I rowsort label-4010
SELECT ALL 70 / + ( - ( + 17 ) ) + + 60
----
56

query I rowsort
SELECT ( - - 59 ) col0
----
59

query I rowsort
SELECT ALL + 15 * + 23
----
345

onlyif mysql # aggregate syntax: 
query I rowsort label-4013
SELECT DISTINCT - 61 + + - 49 + + - 6 + - + ( + 88 ) + 27 * - 70 * - + 24 * - MIN( DISTINCT - - 28 ) * 47
----
-59693964

skipif mysql # not compatible
query I rowsort label-4013
SELECT DISTINCT - 61 + + - 49 + + - 6 + - + ( + 88 ) + 27 * - 70 * - + 24 * - MIN ( DISTINCT - - 28 ) * 47
----
-59693964

query I rowsort
SELECT 12 + - + 77 * + 71
----
-5455

query I rowsort
SELECT ALL - 43 - + ( - 98 )
----
55

query I rowsort
SELECT DISTINCT + 89 * + 74 * - 96
----
-632256

query I rowsort
SELECT 93 * + 73 AS col0
----
6789

query II rowsort
SELECT 27 * - 10, + 38 AS col0
----
-270
38

onlyif mysql # aggregate syntax: 
query I rowsort label-4019
SELECT ALL - COUNT( * ) - - 80 AS col1
----
79

skipif mysql # not compatible
query I rowsort label-4019
SELECT ALL - COUNT ( * ) - - 80 AS col1
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4020
SELECT COUNT( * ) * COUNT( * ) * - - 74 * + COUNT( * )
----
74

skipif mysql # not compatible
query I rowsort label-4020
SELECT COUNT ( * ) * COUNT ( * ) * - - 74 * + COUNT ( * )
----
74

query I rowsort
SELECT DISTINCT 63 * + 27
----
1701

onlyif mysql # aggregate syntax: 
query I rowsort label-4022
SELECT - CASE + 71 WHEN 4 + - + 29 * 76 + - - 51 * + 35 * 86 THEN + - COUNT( * ) * + - 64 - - - 11 WHEN 65 * + 4 * + - 19 THEN + CASE - - 27 WHEN + + 70 + - + 71 + - 25 * + - 50 * 57 + - 53 THEN + 99 END + - 80 * + + 0 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4022
SELECT - CASE + 71 WHEN 4 + - + 29 * 76 + - - 51 * + 35 * 86 THEN + - COUNT ( * ) * + - 64 - - - 11 WHEN 65 * + 4 * + - 19 THEN + CASE - - 27 WHEN + + 70 + - + 71 + - 25 * + - 50 * 57 + - 53 THEN + 99 END + - 80 * + + 0 END
----
NULL

query II rowsort
SELECT 32 * + + 19 AS col2, - 40
----
608
-40

query I rowsort
SELECT - ( + 67 ) - 83 col0
----
-150

query I rowsort
SELECT ALL 52 * - ( - - 97 ) - 86 col0
----
-5130

onlyif mysql # aggregate syntax: 
query II rowsort label-4026
SELECT - + MAX( DISTINCT - 58 ) col0, 43 AS col0
----
58
43

skipif mysql # not compatible
query II rowsort label-4026
SELECT - + MAX ( DISTINCT - 58 ) col0, 43 AS col0
----
58
43

query I rowsort
SELECT DISTINCT 9 * - + 20
----
-180

query I rowsort
SELECT ALL - 28 + - 18 AS col2
----
-46

onlyif mysql # aggregate syntax: 
query II rowsort label-4029
SELECT - + COALESCE ( - MAX( DISTINCT + 24 ), + 54, + 51 ), 40 + 94 AS col0
----
24
134

skipif mysql # not compatible
query II rowsort label-4029
SELECT - + COALESCE ( - MAX ( DISTINCT + 24 ), + 54, + 51 ), 40 + 94 AS col0
----
24
134

query I rowsort
SELECT DISTINCT 94 + 42 AS col2
----
136

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4031
SELECT CAST( - - 68 AS SIGNED ) * - + 30 AS col1
----
-2040

skipif mysql # not compatible
query I rowsort label-4031
SELECT CAST ( - - 68 AS INTEGER ) * - + 30 AS col1
----
-2040

query I rowsort
SELECT ALL 29 + + - 86 AS col2
----
-57

onlyif mysql # aggregate syntax: 
query II rowsort label-4033
SELECT DISTINCT 34, 78 + - SUM( + 18 ) AS col0
----
34
60

skipif mysql # not compatible
query II rowsort label-4033
SELECT DISTINCT 34, 78 + - SUM ( + 18 ) AS col0
----
34
60

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4034
SELECT ( - 30 ) * + + COALESCE ( + 57, + - 60, 93 * 45 * - - 75 DIV - CAST( 80 AS SIGNED ) * + - 47 * + - 66 ) * 11 AS col2
----
-18810

skipif mysql # not compatible
query I rowsort label-4034
SELECT ( - 30 ) * + + COALESCE ( + 57, + - 60, 93 * 45 * - - 75 / - CAST ( 80 AS INTEGER ) * + - 47 * + - 66 ) * 11 AS col2
----
-18810

onlyif mysql # aggregate syntax: 
query I rowsort label-4035
SELECT DISTINCT COUNT( + + 50 ) + + COUNT( * ) + + - 82 + + 54 * - + 27 * + COUNT( * ) + + 95 * + 17 AS col0
----
77

skipif mysql # not compatible
query I rowsort label-4035
SELECT DISTINCT COUNT ( + + 50 ) + + COUNT ( * ) + + - 82 + + 54 * - + 27 * + COUNT ( * ) + + 95 * + 17 AS col0
----
77

onlyif mysql # aggregate syntax: 
query II rowsort label-4036
SELECT 16 AS col0, 88 * - COUNT( * ) AS col1
----
16
-88

skipif mysql # not compatible
query II rowsort label-4036
SELECT 16 AS col0, 88 * - COUNT ( * ) AS col1
----
16
-88

query I rowsort
SELECT ALL + 74 + - 61 * + + 50 * - ( 16 ) + 53 AS col1
----
48927

onlyif mysql # aggregate syntax: 
query I rowsort label-4038
SELECT ALL - SUM( + 84 ) AS col1
----
-84

skipif mysql # not compatible
query I rowsort label-4038
SELECT ALL - SUM ( + 84 ) AS col1
----
-84

query II rowsort
SELECT + 50 col2, + 7
----
50
7

query I rowsort
SELECT DISTINCT 21 * 71 AS col2
----
1491

query I rowsort
SELECT 86 * - 28 AS col2
----
-2408

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4042
SELECT DISTINCT - NULLIF ( + 67, + + 46 + - COALESCE ( - COUNT( * ), 22 + - + 53 ) * - 58 * MIN( 83 ) + - ( + - ( ( + 2 ) ) ) ) DIV 98
----
0

skipif mysql # not compatible
query I rowsort label-4042
SELECT DISTINCT - NULLIF ( + 67, + + 46 + - COALESCE ( - COUNT ( * ), 22 + - + 53 ) * - 58 * MIN ( 83 ) + - ( + - ( ( + 2 ) ) ) ) / 98
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4043
SELECT - SUM( + NULLIF ( + 52, 19 ) ) DIV - - COALESCE ( - 42, - 57 )
----
1

skipif mysql # not compatible
query I rowsort label-4043
SELECT - SUM ( + NULLIF ( + 52, 19 ) ) / - - COALESCE ( - 42, - 57 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4044
SELECT CAST( 60 AS SIGNED )
----
60

skipif mysql # not compatible
query I rowsort label-4044
SELECT CAST ( 60 AS INTEGER )
----
60

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4045
SELECT ALL - + 73 AS col2, + 35 * 85 * - - 1 * + + 59 * 89 * + COALESCE ( - - 83, + + CAST( - + 0 AS SIGNED ), 13 DIV - - 45 + - 14 )
----
-73
1296603175

skipif mysql # not compatible
query II rowsort label-4045
SELECT ALL - + 73 AS col2, + 35 * 85 * - - 1 * + + 59 * 89 * + COALESCE ( - - 83, + + CAST ( - + 0 AS INTEGER ), 13 / - - 45 + - 14 )
----
-73
1296603175

query I rowsort
SELECT 22 - + NULLIF ( - 14, - - 15 / 19 ) AS col1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4047
SELECT + COUNT( * ) * - - ( - 41 ) AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-4047
SELECT + COUNT ( * ) * - - ( - 41 ) AS col1
----
-41

query I rowsort
SELECT DISTINCT + 93 * + - 23 * + - 57 * + + 97 AS col2
----
11826531

query I rowsort
SELECT ALL - + 47 + - + 90 + - 71 * - 69 AS col0
----
4762

query II rowsort
SELECT + 39 * - - 18 + + - 30 AS col2, 66
----
672
66

query I rowsort
SELECT DISTINCT - ( + - 9 ) + - - ( + 18 ) col1
----
27

query I rowsort
SELECT ALL - - 55 + + 84 + + 84 + - + 45 AS col1
----
178

query II rowsort
SELECT + 13, 56 AS col0
----
13
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4054
SELECT ALL 81 + + 95 + 58 * + COUNT( * )
----
234

skipif mysql # not compatible
query I rowsort label-4054
SELECT ALL 81 + + 95 + 58 * + COUNT ( * )
----
234

query I rowsort
SELECT ALL 86 + - 64 AS col1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4056
SELECT MAX( DISTINCT + + 6 ) * + + 23
----
138

skipif mysql # not compatible
query I rowsort label-4056
SELECT MAX ( DISTINCT + + 6 ) * + + 23
----
138

onlyif mysql # DIV for integer division: 
query I rowsort label-4057
SELECT 71 DIV - + 92
----
0

skipif mysql # not compatible
query I rowsort label-4057
SELECT 71 / - + 92
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4058
SELECT ALL NULLIF ( - 64, + AVG ( 25 ) * - - COUNT( * ) ), 79 AS col0
----
-64
79

skipif mysql # not compatible
query II rowsort label-4058
SELECT ALL NULLIF ( - 64, + AVG ( 25 ) * - - COUNT ( * ) ), 79 AS col0
----
-64
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4059
SELECT ALL + 15 * - COUNT( * ) AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-4059
SELECT ALL + 15 * - COUNT ( * ) AS col1
----
-15

query I rowsort
SELECT DISTINCT 87 * + 16 - - + 10 AS col1
----
1402

onlyif mysql # aggregate syntax: 
query II rowsort label-4061
SELECT + NULLIF ( - MIN( ALL 51 ), + + 76 ), - NULLIF ( + 34, 85 ) * 12 AS col0
----
-51
-408

skipif mysql # not compatible
query II rowsort label-4061
SELECT + NULLIF ( - MIN ( ALL 51 ), + + 76 ), - NULLIF ( + 34, 85 ) * 12 AS col0
----
-51
-408

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4062
SELECT CASE WHEN AVG ( ALL - 46 ) IS NOT NULL THEN - + 75 + - CASE + ( - 52 ) WHEN - + 49 + 5 THEN + CAST( NULL AS DECIMAL ) ELSE + + ( - ( + 36 ) ) * - COUNT( - 59 ) + + - 58 * 70 * + 40 * CASE + 21 WHEN + 64 THEN + - 13 WHEN - + 28 THEN NULL END END END AS col2, 60
----
NULL
60

skipif mysql # not compatible
query II rowsort label-4062
SELECT CASE WHEN AVG ( ALL - 46 ) IS NOT NULL THEN - + 75 + - CASE + ( - 52 ) WHEN - + 49 + 5 THEN + CAST ( NULL AS REAL ) ELSE + + ( - ( + 36 ) ) * - COUNT ( - 59 ) + + - 58 * 70 * + 40 * CASE + 21 WHEN + 64 THEN + - 13 WHEN - + 28 THEN NULL END END END AS col2, 60
----
NULL
60

onlyif mysql # aggregate syntax: 
query I rowsort label-4063
SELECT + ( 46 ) + + COUNT( * )
----
47

skipif mysql # not compatible
query I rowsort label-4063
SELECT + ( 46 ) + + COUNT ( * )
----
47

query I rowsort
SELECT - 3 * + + 20 AS col0
----
-60

query I rowsort
SELECT 16 * + + 61 * + 90 + + + 58 AS col2
----
87898

query I rowsort
SELECT DISTINCT 27 * 98 AS col1
----
2646

onlyif mysql # DIV for integer division: 
query II rowsort label-4067
SELECT DISTINCT 38 DIV - 21, 86 * - + 46 AS col0
----
-1
-3956

skipif mysql # not compatible
query II rowsort label-4067
SELECT DISTINCT 38 / - 21, 86 * - + 46 AS col0
----
-1
-3956

onlyif mysql # aggregate syntax: 
query I rowsort label-4068
SELECT ALL - COALESCE ( 3, 88, - 9 ) * + MAX( DISTINCT + 63 ) AS col1
----
-189

skipif mysql # not compatible
query I rowsort label-4068
SELECT ALL - COALESCE ( 3, 88, - 9 ) * + MAX ( DISTINCT + 63 ) AS col1
----
-189

query I rowsort
SELECT ALL + - NULLIF ( + 38, - 23 ) col0
----
-38

query I rowsort
SELECT - 10 + + 63
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4071
SELECT + + 8 * + + 46 - CAST( 13 AS SIGNED ) * - COUNT( * ) * + + 73
----
1317

skipif mysql # not compatible
query I rowsort label-4071
SELECT + + 8 * + + 46 - CAST ( 13 AS INTEGER ) * - COUNT ( * ) * + + 73
----
1317

query II rowsort
SELECT + 54 * + 26 AS col0, - 75 AS col2
----
1404
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4073
SELECT 44 * + COUNT( * ) + COUNT( * ) + - 36
----
9

skipif mysql # not compatible
query I rowsort label-4073
SELECT 44 * + COUNT ( * ) + COUNT ( * ) + - 36
----
9

query I rowsort
SELECT + 3 * + - 99 - 77 - 74 + + 15
----
-433

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4075
SELECT + CAST( + - 28 AS SIGNED ) AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-4075
SELECT + CAST ( + - 28 AS INTEGER ) AS col1
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4076
SELECT - 60 + + 15 DIV CAST( COUNT( * ) AS SIGNED ) AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-4076
SELECT - 60 + + 15 / CAST ( COUNT ( * ) AS INTEGER ) AS col0
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4077
SELECT ALL + - 82 / + CASE + COUNT( * ) WHEN - 62 THEN - 39 * - 70 - - CAST( - - 33 AS SIGNED ) + 82 * - + 72 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4077
SELECT ALL + - 82 / + CASE + COUNT ( * ) WHEN - 62 THEN - 39 * - 70 - - CAST ( - - 33 AS INTEGER ) + 82 * - + 72 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4078
SELECT DISTINCT SUM( ALL 99 ) + - 3 + 58 * COUNT( * )
----
154

skipif mysql # not compatible
query I rowsort label-4078
SELECT DISTINCT SUM ( ALL 99 ) + - 3 + 58 * COUNT ( * )
----
154

onlyif mysql # aggregate syntax: 
query I rowsort label-4079
SELECT DISTINCT - 81 + COUNT( * ) + + + 72 * - + CASE - SUM( + 82 ) WHEN + 50 THEN NULL ELSE + 53 END AS col2
----
-3896

skipif mysql # not compatible
query I rowsort label-4079
SELECT DISTINCT - 81 + COUNT ( * ) + + + 72 * - + CASE - SUM ( + 82 ) WHEN + 50 THEN NULL ELSE + 53 END AS col2
----
-3896

onlyif mysql # aggregate syntax: 
query I rowsort label-4080
SELECT DISTINCT + 70 + + + MIN( ALL - 70 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4080
SELECT DISTINCT + 70 + + + MIN ( ALL - 70 ) AS col1
----
0

query I rowsort
SELECT ALL - ( + + 39 ) + - COALESCE ( + + 15, + 65, - 2 ) + + 67 * - 56 AS col0
----
-3806

onlyif mysql # aggregate syntax: 
query II rowsort label-4082
SELECT + SUM( + 89 ) col0, - 39 * + + 65
----
89
-2535

skipif mysql # not compatible
query II rowsort label-4082
SELECT + SUM ( + 89 ) col0, - 39 * + + 65
----
89
-2535

onlyif mysql # aggregate syntax: 
query II rowsort label-4083
SELECT - CASE - - ( + - 20 ) WHEN + + COUNT( DISTINCT + - 9 ) THEN + - COUNT( * ) - - + 52 + - + 26 ELSE - + 59 END AS col0, COUNT( * ) AS col2
----
59
1

skipif mysql # not compatible
query II rowsort label-4083
SELECT - CASE - - ( + - 20 ) WHEN + + COUNT ( DISTINCT + - 9 ) THEN + - COUNT ( * ) - - + 52 + - + 26 ELSE - + 59 END AS col0, COUNT ( * ) AS col2
----
59
1

query I rowsort
SELECT ALL - 92 + - + NULLIF ( + - 93, AVG ( ALL - + 3 ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4085
SELECT - 11 - - MIN( + - 33 ) * + COUNT( * )
----
-44

skipif mysql # not compatible
query I rowsort label-4085
SELECT - 11 - - MIN ( + - 33 ) * + COUNT ( * )
----
-44

query I rowsort
SELECT - 29 + - + 32
----
-61

query II rowsort
SELECT 19 col2, - 24
----
19
-24

query I rowsort
SELECT DISTINCT - 1 * - 29 AS col2
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4089
SELECT ALL CASE + 5 WHEN - - 63 / - - ( - ( 7 ) ) THEN NULL ELSE - CAST( 13 AS SIGNED ) END AS col0, - 9 * - SUM( ALL - - 12 )
----
-13
108

skipif mysql # not compatible
query II rowsort label-4089
SELECT ALL CASE + 5 WHEN - - 63 / - - ( - ( 7 ) ) THEN NULL ELSE - CAST ( 13 AS INTEGER ) END AS col0, - 9 * - SUM ( ALL - - 12 )
----
-13
108

query I rowsort
SELECT ALL - 92 - 66 AS col1
----
-158

onlyif mysql # aggregate syntax: 
query I rowsort label-4091
SELECT - MAX( + ( - - 19 ) ) * - 84 * - - 94 AS col2
----
150024

skipif mysql # not compatible
query I rowsort label-4091
SELECT - MAX ( + ( - - 19 ) ) * - 84 * - - 94 AS col2
----
150024

onlyif mysql # DIV for integer division: 
query I rowsort label-4092
SELECT ALL 93 DIV 71
----
1

skipif mysql # not compatible
query I rowsort label-4092
SELECT ALL 93 / 71
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4093
SELECT - 75 + - - COUNT( * ) * + - 38 col0
----
-113

skipif mysql # not compatible
query I rowsort label-4093
SELECT - 75 + - - COUNT ( * ) * + - 38 col0
----
-113

onlyif mysql # aggregate syntax: 
query I rowsort label-4094
SELECT - COUNT( * ) * - ( - + 89 )
----
-89

skipif mysql # not compatible
query I rowsort label-4094
SELECT - COUNT ( * ) * - ( - + 89 )
----
-89

query II rowsort
SELECT - NULLIF ( + 37, + 80 ), 40 AS col0
----
-37
40

query II rowsort
SELECT + 5 AS col0, - 8 AS col2
----
5
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-4097
SELECT + 4 DIV + 94
----
0

skipif mysql # not compatible
query I rowsort label-4097
SELECT + 4 / + 94
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4098
SELECT DISTINCT + COUNT( * ) * - 81 AS col0
----
-81

skipif mysql # not compatible
query I rowsort label-4098
SELECT DISTINCT + COUNT ( * ) * - 81 AS col0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4099
SELECT + 44 * - 38 * - COUNT( * )
----
1672

skipif mysql # not compatible
query I rowsort label-4099
SELECT + 44 * - 38 * - COUNT ( * )
----
1672

query II rowsort
SELECT DISTINCT + - 29 AS col1, 42
----
-29
42

onlyif mysql # aggregate syntax: 
query I rowsort label-4101
SELECT - COUNT( * ) - + MIN( + - 76 ) + 34 + + 97 * 3 AS col2
----
400

skipif mysql # not compatible
query I rowsort label-4101
SELECT - COUNT ( * ) - + MIN ( + - 76 ) + 34 + + 97 * 3 AS col2
----
400

onlyif mysql # aggregate syntax: 
query I rowsort label-4102
SELECT ALL - + 4 * + 38 + + 27 + - - COUNT( * ) - 35 * + ( + - 71 )
----
2361

skipif mysql # not compatible
query I rowsort label-4102
SELECT ALL - + 4 * + 38 + + 27 + - - COUNT ( * ) - 35 * + ( + - 71 )
----
2361

query I rowsort
SELECT + + ( - 72 )
----
-72

query I rowsort
SELECT ALL 18 * + 41
----
738

onlyif mysql # aggregate syntax: 
query II rowsort label-4105
SELECT + MAX( DISTINCT + 77 ) * + 89, 90 col2
----
6853
90

skipif mysql # not compatible
query II rowsort label-4105
SELECT + MAX ( DISTINCT + 77 ) * + 89, 90 col2
----
6853
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4106
SELECT ALL + - 85 * - - COUNT( * ) + - 39 + COUNT( * ) - - - 47 * - 99 AS col0
----
4530

skipif mysql # not compatible
query I rowsort label-4106
SELECT ALL + - 85 * - - COUNT ( * ) + - 39 + COUNT ( * ) - - - 47 * - 99 AS col0
----
4530

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4107
SELECT DISTINCT - + 18 * - - CAST( NULL AS SIGNED ) + - 55 + + + 72 + - + 56 * + 87 + - - ( - 13 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4107
SELECT DISTINCT - + 18 * - - CAST ( NULL AS INTEGER ) + - 55 + + + 72 + - + 56 * + 87 + - - ( - 13 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4108
SELECT + + COUNT( * ), 81 AS col1
----
1
81

skipif mysql # not compatible
query II rowsort label-4108
SELECT + + COUNT ( * ), 81 AS col1
----
1
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4109
SELECT ALL + + MIN( ALL CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4109
SELECT ALL + + MIN ( ALL CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT + 71 * + + 76 - + 95
----
5301

query II rowsort
SELECT DISTINCT 3 AS col0, 89
----
3
89

query I rowsort
SELECT + - 2 + - 26 AS col0
----
-28

query II rowsort
SELECT - 48, ( 99 ) AS col0
----
-48
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4114
SELECT - CAST( - ( + - 39 ) AS SIGNED ) AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-4114
SELECT - CAST ( - ( + - 39 ) AS INTEGER ) AS col2
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4115
SELECT + CAST( 9 AS SIGNED ) + - ( 77 ) - - - 92 + - 73
----
-233

skipif mysql # not compatible
query I rowsort label-4115
SELECT + CAST ( 9 AS INTEGER ) + - ( 77 ) - - - 92 + - 73
----
-233

onlyif mysql # aggregate syntax: 
query I rowsort label-4116
SELECT - 60 * - ( - 19 ) - - COUNT( * ) col2
----
-1139

skipif mysql # not compatible
query I rowsort label-4116
SELECT - 60 * - ( - 19 ) - - COUNT ( * ) col2
----
-1139

onlyif mysql # aggregate syntax: 
query I rowsort label-4117
SELECT ALL ( - NULLIF ( ( 87 ), - - COUNT( * ) ) ) AS col0
----
-87

skipif mysql # not compatible
query I rowsort label-4117
SELECT ALL ( - NULLIF ( ( 87 ), - - COUNT ( * ) ) ) AS col0
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4118
SELECT + ( + NULLIF ( - 52, AVG ( - + CAST( 11 AS SIGNED ) ) ) ) + - - 75 + 20 + + COUNT( 14 ) - + 91 * 79 + - CAST( NULL AS SIGNED ) - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4118
SELECT + ( + NULLIF ( - 52, AVG ( - + CAST ( 11 AS INTEGER ) ) ) ) + - - 75 + 20 + + COUNT ( 14 ) - + 91 * 79 + - CAST ( NULL AS INTEGER ) - - COUNT ( * )
----
NULL

query I rowsort
SELECT ALL 70 - - 69
----
139

onlyif mysql # DIV for integer division: 
query II rowsort label-4120
SELECT DISTINCT 83 AS col2, + 45 DIV 36
----
83
1

skipif mysql # not compatible
query II rowsort label-4120
SELECT DISTINCT 83 AS col2, + 45 / 36
----
83
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4121
SELECT ALL - MIN( ALL - 86 ) - - 78
----
164

skipif mysql # not compatible
query I rowsort label-4121
SELECT ALL - MIN ( ALL - 86 ) - - 78
----
164

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4122
SELECT 6 + - - CAST( NULL AS SIGNED ) + + CASE 6 WHEN - - COUNT( * ) THEN NULL ELSE 4 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4122
SELECT 6 + - - CAST ( NULL AS INTEGER ) + + CASE 6 WHEN - - COUNT ( * ) THEN NULL ELSE 4 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4123
SELECT 88 AS col2, - 6 - + 91 + - 80 - + - COUNT( * ) * 30
----
88
-147

skipif mysql # not compatible
query II rowsort label-4123
SELECT 88 AS col2, - 6 - + 91 + - 80 - + - COUNT ( * ) * 30
----
88
-147

onlyif mysql # aggregate syntax: 
query I rowsort label-4124
SELECT CASE COUNT( ALL + + 58 ) WHEN - ( - 9 ) * + 12 - - + COUNT( * ) THEN 81 / + 35 END * COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4124
SELECT CASE COUNT ( ALL + + 58 ) WHEN - ( - 9 ) * + 12 - - + COUNT ( * ) THEN 81 / + 35 END * COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT 22 * - ( - 16 )
----
352

query I rowsort
SELECT 93 + + 76
----
169

query II rowsort
SELECT - 1 col0, + 66 AS col2
----
-1
66

query I rowsort
SELECT 2 + + 61 AS col0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4129
SELECT ALL + CASE + ( - + 2 ) WHEN - COALESCE ( + - 28, + ( + 25 ) - + 99, - 18 + + 97 ) THEN + 9 WHEN 88 THEN + 27 * + 21 ELSE NULL END * - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4129
SELECT ALL + CASE + ( - + 2 ) WHEN - COALESCE ( + - 28, + ( + 25 ) - + 99, - 18 + + 97 ) THEN + 9 WHEN 88 THEN + 27 * + 21 ELSE NULL END * - COUNT ( * ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4130
SELECT ALL - CAST( - 73 AS SIGNED ) + - 67 / - CAST( NULL AS DECIMAL ) / - + 28 + - 69 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4130
SELECT ALL - CAST ( - 73 AS INTEGER ) + - 67 / - CAST ( NULL AS REAL ) / - + 28 + - 69 AS col1
----
NULL

query I rowsort
SELECT 28 - - - 90 AS col0
----
-62

onlyif mysql # aggregate syntax: 
query II rowsort label-4132
SELECT DISTINCT - 63 AS col1, + 38 * + 62 * + + SUM( DISTINCT 14 )
----
-63
32984

skipif mysql # not compatible
query II rowsort label-4132
SELECT DISTINCT - 63 AS col1, + 38 * + 62 * + + SUM ( DISTINCT 14 )
----
-63
32984

onlyif mysql # aggregate syntax: 
query II rowsort label-4133
SELECT DISTINCT + 55 + + + 15, COUNT( * ) AS col1
----
70
1

skipif mysql # not compatible
query II rowsort label-4133
SELECT DISTINCT + 55 + + + 15, COUNT ( * ) AS col1
----
70
1

query II rowsort
SELECT 3 AS col1, - 48 AS col2
----
3
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4135
SELECT DISTINCT + COUNT( * ) * - + 89 - COUNT( * ) * 90, - ( 47 ) * + CASE + ( 44 ) WHEN 89 * - + 32 + - + 80 THEN NULL ELSE COUNT( ALL - 8 ) DIV - 13 + - 88 * - 32 END AS col1
----
-179
-132352

skipif mysql # not compatible
query II rowsort label-4135
SELECT DISTINCT + COUNT ( * ) * - + 89 - COUNT ( * ) * 90, - ( 47 ) * + CASE + ( 44 ) WHEN 89 * - + 32 + - + 80 THEN NULL ELSE COUNT ( ALL - 8 ) / - 13 + - 88 * - 32 END AS col1
----
-179
-132352

query I rowsort
SELECT ALL - - 11 + 78 AS col0
----
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4137
SELECT - NULLIF ( ( 88 ), - 13 ) DIV + + SUM( + 46 ) + - - 65 - + + 25 AS col1
----
39

skipif mysql # not compatible
query I rowsort label-4137
SELECT - NULLIF ( ( 88 ), - 13 ) / + + SUM ( + 46 ) + - - 65 - + + 25 AS col1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4138
SELECT DISTINCT - 3 + COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-4138
SELECT DISTINCT - 3 + COUNT ( * )
----
-2

query I rowsort
SELECT DISTINCT + 45 * + 79 AS col1
----
3555

query I rowsort
SELECT ALL + 81 + - 47 AS col1
----
34

query I rowsort
SELECT + 95 + 4 - - + 13 AS col0
----
112

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4142
SELECT DISTINCT + CAST( AVG ( ALL + 10 ) AS SIGNED ) + - 39 col2, - 81
----
-29
-81

skipif mysql # not compatible
query II rowsort label-4142
SELECT DISTINCT + CAST ( AVG ( ALL + 10 ) AS INTEGER ) + - 39 col2, - 81
----
-29
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-4143
SELECT 95 AS col0, + COUNT( * ) AS col1
----
95
1

skipif mysql # not compatible
query II rowsort label-4143
SELECT 95 AS col0, + COUNT ( * ) AS col1
----
95
1

query I rowsort
SELECT - 61 * 19
----
-1159

onlyif mysql # aggregate syntax: 
query I rowsort label-4145
SELECT 51 * - + 19 - - 64 + + COUNT( * ) + - + 5
----
-909

skipif mysql # not compatible
query I rowsort label-4145
SELECT 51 * - + 19 - - 64 + + COUNT ( * ) + - + 5
----
-909

query I rowsort
SELECT ALL + 60 - + 1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4147
SELECT COUNT( * ) * - - 48 AS col1
----
48

skipif mysql # not compatible
query I rowsort label-4147
SELECT COUNT ( * ) * - - 48 AS col1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-4148
SELECT ALL - SUM( DISTINCT - 78 )
----
78

skipif mysql # not compatible
query I rowsort label-4148
SELECT ALL - SUM ( DISTINCT - 78 )
----
78

onlyif mysql # DIV for integer division: 
query I rowsort label-4149
SELECT DISTINCT 29 DIV - + 95
----
0

skipif mysql # not compatible
query I rowsort label-4149
SELECT DISTINCT 29 / - + 95
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4150
SELECT 22 DIV - 9
----
-2

skipif mysql # not compatible
query I rowsort label-4150
SELECT 22 / - 9
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4151
SELECT COUNT( + ( - + 63 ) ) - + 72 * - 59 + + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4151
SELECT COUNT ( + ( - + 63 ) ) - + 72 * - 59 + + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 31 * + 10 col2
----
310

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4153
SELECT CAST( NULL AS SIGNED ) - - 80 - - 84 * - 38
----
NULL

skipif mysql # not compatible
query I rowsort label-4153
SELECT CAST ( NULL AS INTEGER ) - - 80 - - 84 * - 38
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4154
SELECT 12 DIV + + CAST( - COUNT( * ) AS SIGNED )
----
-12

skipif mysql # not compatible
query I rowsort label-4154
SELECT 12 / + + CAST ( - COUNT ( * ) AS INTEGER )
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-4155
SELECT DISTINCT 15 DIV - 60 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4155
SELECT DISTINCT 15 / - 60 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4156
SELECT ALL - COUNT( DISTINCT + 76 ) + 56 - - 10 + + - 67
----
-2

skipif mysql # not compatible
query I rowsort label-4156
SELECT ALL - COUNT ( DISTINCT + 76 ) + 56 - - 10 + + - 67
----
-2

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4157
SELECT DISTINCT NULLIF ( + 9, 88 ) + - CASE + 91 WHEN + 35 / + + CAST( NULL AS DECIMAL ) + - 97 THEN NULL ELSE 72 END + - - 72 AS col0, COUNT( * ) AS col2
----
9
1

skipif mysql # not compatible
query II rowsort label-4157
SELECT DISTINCT NULLIF ( + 9, 88 ) + - CASE + 91 WHEN + 35 / + + CAST ( NULL AS REAL ) + - 97 THEN NULL ELSE 72 END + - - 72 AS col0, COUNT ( * ) AS col2
----
9
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4158
SELECT DISTINCT 68 + - COUNT( * ) * - ( - 24 ) + + 47 + + - 14 + - 35 + + ( SUM( - 95 ) ) - + 69
----
-122

skipif mysql # not compatible
query I rowsort label-4158
SELECT DISTINCT 68 + - COUNT ( * ) * - ( - 24 ) + + 47 + + - 14 + - 35 + + ( SUM ( - 95 ) ) - + 69
----
-122

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4159
SELECT 47 * + 82 DIV + MAX( 41 )
----
94

skipif mysql # not compatible
query I rowsort label-4159
SELECT 47 * + 82 / + MAX ( 41 )
----
94

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4160
SELECT - 34 + - CAST( NULL AS DECIMAL ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4160
SELECT - 34 + - CAST ( NULL AS REAL ) col1
----
NULL

query I rowsort
SELECT + 43 * + 38 AS col2
----
1634

onlyif mysql # aggregate syntax: 
query I rowsort label-4162
SELECT ALL - NULLIF ( - 29, 39 + - + NULLIF ( 7, - SUM( DISTINCT 5 ) ) ) * 88 + 42 * + 5 + + - 7 AS col0
----
2755

skipif mysql # not compatible
query I rowsort label-4162
SELECT ALL - NULLIF ( - 29, 39 + - + NULLIF ( 7, - SUM ( DISTINCT 5 ) ) ) * 88 + 42 * + 5 + + - 7 AS col0
----
2755

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4163
SELECT CAST( - - SUM( - 22 ) AS SIGNED ) AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-4163
SELECT CAST ( - - SUM ( - 22 ) AS INTEGER ) AS col1
----
-22

query I rowsort
SELECT - ( + 34 ) AS col2
----
-34

query I rowsort
SELECT + 88 * + + 65 - - ( - 10 ) + 30 * - 52 AS col0
----
4150

query I rowsort
SELECT + 15 * 70 - + + CASE + - 40 WHEN + 10 THEN NULL WHEN - + 44 THEN 92 / + 43 * - - 90 END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4167
SELECT + COUNT( * ) * 72 * - - 55 - - COUNT( * ) * - - 3
----
3963

skipif mysql # not compatible
query I rowsort label-4167
SELECT + COUNT ( * ) * 72 * - - 55 - - COUNT ( * ) * - - 3
----
3963

onlyif mysql # aggregate syntax: 
query I rowsort label-4168
SELECT ALL - 0 * COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4168
SELECT ALL - 0 * COUNT ( * ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4169
SELECT + COUNT( - 10 ) + 9
----
10

skipif mysql # not compatible
query I rowsort label-4169
SELECT + COUNT ( - 10 ) + 9
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4170
SELECT DISTINCT - NULLIF ( 19, + 30 / - 62 / CAST( NULL AS SIGNED ) )
----
-19

skipif mysql # not compatible
query I rowsort label-4170
SELECT DISTINCT - NULLIF ( 19, + 30 / - 62 / CAST ( NULL AS INTEGER ) )
----
-19

query II rowsort
SELECT ALL - + 29 * + + 15 + - NULLIF ( 36, + 22 ) - ( 56 ) AS col2, + 13 * + 23 AS col2
----
-527
299

query I rowsort
SELECT - 58 - + - 47 AS col0
----
-11

query II rowsort
SELECT ALL + 67 AS col0, 98 * + 2
----
67
196

onlyif mysql # aggregate syntax: 
query I rowsort label-4174
SELECT - NULLIF ( + 1, + SUM( + 26 ) / 92 ) + 98
----
97

skipif mysql # not compatible
query I rowsort label-4174
SELECT - NULLIF ( + 1, + SUM ( + 26 ) / 92 ) + 98
----
97

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4175
SELECT - COUNT( * ) * 21 - - - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4175
SELECT - COUNT ( * ) * 21 - - - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4176
SELECT ALL + CAST( NULL AS SIGNED ), + 95 * 96 col0
----
NULL
9120

skipif mysql # not compatible
query II rowsort label-4176
SELECT ALL + CAST ( NULL AS INTEGER ), + 95 * 96 col0
----
NULL
9120

query I rowsort
SELECT + 52 * + + 11 AS col2
----
572

query I rowsort
SELECT + 87 * - 27 col2
----
-2349

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4179
SELECT - CAST( - + 49 AS SIGNED ) + COUNT( * ) AS col2
----
50

skipif mysql # not compatible
query I rowsort label-4179
SELECT - CAST ( - + 49 AS INTEGER ) + COUNT ( * ) AS col2
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4180
SELECT 78 AS col1, CAST( 76 AS SIGNED ) AS col0
----
78
76

skipif mysql # not compatible
query II rowsort label-4180
SELECT 78 AS col1, CAST ( 76 AS INTEGER ) AS col0
----
78
76

query II rowsort
SELECT ALL 90 AS col2, 67 AS col0
----
90
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4182
SELECT + 51 + - COUNT( * ) * - + 63 AS col2
----
114

skipif mysql # not compatible
query I rowsort label-4182
SELECT + 51 + - COUNT ( * ) * - + 63 AS col2
----
114

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4183
SELECT ALL COUNT( * ) + + COUNT( * ) DIV - 28 + 16
----
17

skipif mysql # not compatible
query I rowsort label-4183
SELECT ALL COUNT ( * ) + + COUNT ( * ) / - 28 + 16
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4184
SELECT - CASE - CAST( NULL AS SIGNED ) WHEN - + SUM( 81 ) + + + COUNT( * ) + - + 90 + + 54 * - + COUNT( * ) * 44 + - 67 * AVG ( ALL 57 ) / ( - 9 ) / 74 * - 17 - - + 27 THEN NULL WHEN + - 71 THEN 95 ELSE + ( - + 31 ) END AS col0
----
31

skipif mysql # not compatible
query I rowsort label-4184
SELECT - CASE - CAST ( NULL AS INTEGER ) WHEN - + SUM ( 81 ) + + + COUNT ( * ) + - + 90 + + 54 * - + COUNT ( * ) * 44 + - 67 * AVG ( ALL 57 ) / ( - 9 ) / 74 * - 17 - - + 27 THEN NULL WHEN + - 71 THEN 95 ELSE + ( - + 31 ) END AS col0
----
31

query I rowsort
SELECT ALL 56 + + - 21
----
35

onlyif mysql # aggregate syntax: 
query II rowsort label-4186
SELECT 78 AS col2, SUM( COALESCE ( - 50, + 57 ) ) * - 18
----
78
900

skipif mysql # not compatible
query II rowsort label-4186
SELECT 78 AS col2, SUM ( COALESCE ( - 50, + 57 ) ) * - 18
----
78
900

query I rowsort
SELECT ALL 27 * - 47
----
-1269

onlyif mysql # DIV for integer division: 
query I rowsort label-4188
SELECT + 38 DIV ( 74 ) * - - 62
----
0

skipif mysql # not compatible
query I rowsort label-4188
SELECT + 38 / ( 74 ) * - - 62
----
0

query I rowsort
SELECT ALL NULLIF ( - 68, + 23 + - - 62 ) + - 36 * 72 AS col0
----
-2660

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4190
SELECT 59 AS col2, + 97 + + MIN( - CAST( NULL AS DECIMAL ) ) + + 84 + 74 + 14 * - 86 + CAST( 82 AS SIGNED )
----
59
NULL

skipif mysql # not compatible
query II rowsort label-4190
SELECT 59 AS col2, + 97 + + MIN ( - CAST ( NULL AS REAL ) ) + + 84 + 74 + 14 * - 86 + CAST ( 82 AS INTEGER )
----
59
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4191
SELECT 94 AS col1, + 69 * + 83 / - + CAST( NULL AS SIGNED ) + - 43 AS col1
----
94
NULL

skipif mysql # not compatible
query II rowsort label-4191
SELECT 94 AS col1, + 69 * + 83 / - + CAST ( NULL AS INTEGER ) + - 43 AS col1
----
94
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4192
SELECT + 26 + 53 / 32 - 38 - + + CASE - - ( + + COUNT( * ) ) WHEN - 39 THEN NULL WHEN - - ( - COALESCE ( - 53, + CAST( 7 AS SIGNED ) ) ) THEN NULL WHEN - ( 75 ) THEN - COUNT( - 27 ) END / + 57 * - 65 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4192
SELECT + 26 + 53 / 32 - 38 - + + CASE - - ( + + COUNT ( * ) ) WHEN - 39 THEN NULL WHEN - - ( - COALESCE ( - 53, + CAST ( 7 AS INTEGER ) ) ) THEN NULL WHEN - ( 75 ) THEN - COUNT ( - 27 ) END / + 57 * - 65 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4193
SELECT - 91 * + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4193
SELECT - 91 * + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4194
SELECT ALL 21, MAX( 60 ) * 13 - + + 91 + 81 AS col1
----
21
770

skipif mysql # not compatible
query II rowsort label-4194
SELECT ALL 21, MAX ( 60 ) * 13 - + + 91 + 81 AS col1
----
21
770

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4195
SELECT + 27 + CASE - + ( - 33 ) WHEN - + 39 THEN + - 47 WHEN - 14 - + 36 THEN NULL ELSE CAST( - AVG ( - COALESCE ( - 51, + 41 + + ( 87 ) * 21, - CAST( + 73 AS SIGNED ) ) ) AS SIGNED ) END
----
-24

skipif mysql # not compatible
query I rowsort label-4195
SELECT + 27 + CASE - + ( - 33 ) WHEN - + 39 THEN + - 47 WHEN - 14 - + 36 THEN NULL ELSE CAST ( - AVG ( - COALESCE ( - 51, + 41 + + ( 87 ) * 21, - CAST ( + 73 AS INTEGER ) ) ) AS INTEGER ) END
----
-24

query I rowsort
SELECT ALL + NULLIF ( 69, 76 ) + 63 + - + 17 + 23
----
138

query II rowsort
SELECT + 9 col2, 73 AS col1
----
9
73

onlyif mysql # aggregate syntax: 
query I rowsort label-4198
SELECT ALL 44 * - 6 * COUNT( * ) - + 16 + - - 14 * + 70
----
700

skipif mysql # not compatible
query I rowsort label-4198
SELECT ALL 44 * - 6 * COUNT ( * ) - + 16 + - - 14 * + 70
----
700

query II rowsort
SELECT 50 AS col2, 29 AS col2
----
50
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4200
SELECT + CAST( + 83 AS SIGNED ) DIV COUNT( * ) + + + 63 AS col1
----
146

skipif mysql # not compatible
query I rowsort label-4200
SELECT + CAST ( + 83 AS INTEGER ) / COUNT ( * ) + + + 63 AS col1
----
146

query I rowsort
SELECT + - 73 + - - 76 * - - 89 AS col1
----
6691

query I rowsort
SELECT + - 15 * + 35 + - + 87 * - 10
----
345

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4203
SELECT - 52 / - COUNT( * ) - CAST( NULL AS DECIMAL ) + - + 96 + + 16 * - + 84 - MAX( DISTINCT - 42 ) * - - AVG ( DISTINCT 27 ) + + + MAX( DISTINCT + 7 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4203
SELECT - 52 / - COUNT ( * ) - CAST ( NULL AS REAL ) + - + 96 + + 16 * - + 84 - MAX ( DISTINCT - 42 ) * - - AVG ( DISTINCT 27 ) + + + MAX ( DISTINCT + 7 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4204
SELECT DISTINCT - 60 * - 5 + 29 AS col1, - ( COUNT( * ) ) AS col1
----
329
-1

skipif mysql # not compatible
query II rowsort label-4204
SELECT DISTINCT - 60 * - 5 + 29 AS col1, - ( COUNT ( * ) ) AS col1
----
329
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4205
SELECT - CASE - + COUNT( - 99 ) WHEN - - 29 THEN NULL WHEN 42 / - 32 - - CAST( COUNT( * ) AS SIGNED ) - - CAST( NULL AS SIGNED ) * + 7 - CASE - 6 WHEN - 23 THEN - + 41 END THEN - 62 * + + COUNT( * ) + + + 0 / - - 10 / CAST( NULL AS SIGNED ) ELSE NULL END * + - 37 * + ( 24 ) * + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4205
SELECT - CASE - + COUNT ( - 99 ) WHEN - - 29 THEN NULL WHEN 42 / - 32 - - CAST ( COUNT ( * ) AS INTEGER ) - - CAST ( NULL AS INTEGER ) * + 7 - CASE - 6 WHEN - 23 THEN - + 41 END THEN - 62 * + + COUNT ( * ) + + + 0 / - - 10 / CAST ( NULL AS INTEGER ) ELSE NULL END * + - 37 * + ( 24 ) * + COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4206
SELECT DISTINCT + MIN( + 33 ) col0
----
33

skipif mysql # not compatible
query I rowsort label-4206
SELECT DISTINCT + MIN ( + 33 ) col0
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-4207
SELECT DISTINCT + + COUNT( * ), COUNT( * ) AS col2
----
1
1

skipif mysql # not compatible
query II rowsort label-4207
SELECT DISTINCT + + COUNT ( * ), COUNT ( * ) AS col2
----
1
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4208
SELECT + COALESCE ( - 83, + 80 + COUNT( * ), - 13 * + ( 85 ) ) * 85 AS col2, + 27 AS col2
----
-7055
27

skipif mysql # not compatible
query II rowsort label-4208
SELECT + COALESCE ( - 83, + 80 + COUNT ( * ), - 13 * + ( 85 ) ) * 85 AS col2, + 27 AS col2
----
-7055
27

onlyif mysql # DIV for integer division: 
query I rowsort label-4209
SELECT - - 83 + ( - 69 ) - 0 DIV + 99 + + - 81
----
-67

skipif mysql # not compatible
query I rowsort label-4209
SELECT - - 83 + ( - 69 ) - 0 / + 99 + + - 81
----
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-4210
SELECT + 47 DIV + + 71 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4210
SELECT + 47 / + + 71 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-4211
SELECT - 61 * - - COUNT( * ) DIV + 63 + - 60 AS col0, 91 + - 22 * - 83 AS col1, 54 AS col1
----
-60
1917
54

skipif mysql # not compatible
query III rowsort label-4211
SELECT - 61 * - - COUNT ( * ) / + 63 + - 60 AS col0, 91 + - 22 * - 83 AS col1, 54 AS col1
----
-60
1917
54

query I rowsort
SELECT COALESCE ( - 82, - + 62 )
----
-82

onlyif mysql # aggregate syntax: 
query II rowsort label-4213
SELECT + MAX( + 95 ) col2, - 76 AS col2
----
95
-76

skipif mysql # not compatible
query II rowsort label-4213
SELECT + MAX ( + 95 ) col2, - 76 AS col2
----
95
-76

query II rowsort
SELECT - 87 * 88, 31 AS col2
----
-7656
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4215
SELECT - SUM( ALL - - 51 ) * 69 + 67 col2, 15 / - + 86 * + ( - 30 ) * - - 44 * - CAST( NULL AS SIGNED ) * - - 22 + - 71
----
-3452
NULL

skipif mysql # not compatible
query II rowsort label-4215
SELECT - SUM ( ALL - - 51 ) * 69 + 67 col2, 15 / - + 86 * + ( - 30 ) * - - 44 * - CAST ( NULL AS INTEGER ) * - - 22 + - 71
----
-3452
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4216
SELECT ALL + COUNT( - + 78 ) * - - 76 + - - 59
----
135

skipif mysql # not compatible
query I rowsort label-4216
SELECT ALL + COUNT ( - + 78 ) * - - 76 + - - 59
----
135

query I rowsort
SELECT DISTINCT - 12 * - + 94 AS col1
----
1128

query I rowsort
SELECT DISTINCT NULLIF ( 4, - - ( 78 ) ) * COALESCE ( - 38, - ( - 4 ) + - + 62, + 64 ) + + 74 AS col0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-4219
SELECT ALL + 46 * - + 45 + + 66 * - 50 * COUNT( ALL - + 53 )
----
-5370

skipif mysql # not compatible
query I rowsort label-4219
SELECT ALL + 46 * - + 45 + + 66 * - 50 * COUNT ( ALL - + 53 )
----
-5370

onlyif mysql # aggregate syntax: 
query I rowsort label-4220
SELECT ALL - 85 * + COUNT( * ) * 57 + + + 53 * - + 53
----
-7654

skipif mysql # not compatible
query I rowsort label-4220
SELECT ALL - 85 * + COUNT ( * ) * 57 + + + 53 * - + 53
----
-7654

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4221
SELECT ALL CAST( 2 AS SIGNED ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-4221
SELECT ALL CAST ( 2 AS INTEGER ) AS col2
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4222
SELECT + 39 + 99 - - - 53 / - 36 / + 28 + 11 + 7 * - CAST( NULL AS SIGNED ) + - 82 + - COUNT( * ) / 32 * + 50 * - 9 * - 91 * - - COUNT( * ), COUNT( * ) + + 57 AS col1
----
NULL
58

skipif mysql # not compatible
query II rowsort label-4222
SELECT + 39 + 99 - - - 53 / - 36 / + 28 + 11 + 7 * - CAST ( NULL AS INTEGER ) + - 82 + - COUNT ( * ) / 32 * + 50 * - 9 * - 91 * - - COUNT ( * ), COUNT ( * ) + + 57 AS col1
----
NULL
58

query I rowsort
SELECT + 97 * 39 AS col0
----
3783

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4224
SELECT - 27 * - + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4224
SELECT - 27 * - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - 85 - + 8
----
-93

query I rowsort
SELECT - ( - 9 ) col2
----
9

query I rowsort
SELECT DISTINCT 56 * + 60 * 79 AS col1
----
265440

query I rowsort
SELECT DISTINCT - 16 * + 29 * - - 53 AS col2
----
-24592

query I rowsort
SELECT ALL - 83 * 45 * - + 19
----
70965

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4230
SELECT - COALESCE ( + COUNT( * ), COALESCE ( + MIN( - 43 ), ( - 86 ) * 60 + 91 * + 99 DIV - 22 ) - + 4, - 87 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4230
SELECT - COALESCE ( + COUNT ( * ), COALESCE ( + MIN ( - 43 ), ( - 86 ) * 60 + 91 * + 99 / - 22 ) - + 4, - 87 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4231
SELECT + + 44 * - 70 * - MIN( ALL - 23 ) col0
----
-70840

skipif mysql # not compatible
query I rowsort label-4231
SELECT + + 44 * - 70 * - MIN ( ALL - 23 ) col0
----
-70840

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4232
SELECT DISTINCT + COALESCE ( + + 24, COUNT( * ), - 20 + + - 17 ) DIV + 51 * 16
----
0

skipif mysql # not compatible
query I rowsort label-4232
SELECT DISTINCT + COALESCE ( + + 24, COUNT ( * ), - 20 + + - 17 ) / + 51 * 16
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4233
SELECT ALL + + CAST( COUNT( * ) AS SIGNED ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4233
SELECT ALL + + CAST ( COUNT ( * ) AS INTEGER ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4234
SELECT - 54 * - - CASE + 26 WHEN - 45 * - - 83 * + ( + 3 ) THEN 59 WHEN 7 * - + 31 THEN NULL ELSE MAX( 57 ) + + 26 * - - 74 * - + COUNT( * ) END AS col1
----
100818

skipif mysql # not compatible
query I rowsort label-4234
SELECT - 54 * - - CASE + 26 WHEN - 45 * - - 83 * + ( + 3 ) THEN 59 WHEN 7 * - + 31 THEN NULL ELSE MAX ( 57 ) + + 26 * - - 74 * - + COUNT ( * ) END AS col1
----
100818

onlyif mysql # DIV for integer division: 
query I rowsort label-4235
SELECT DISTINCT 42 DIV + 97 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4235
SELECT DISTINCT 42 / + 97 AS col1
----
0

query I rowsort
SELECT + 21 + - ( - + 93 )
----
114

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4237
SELECT ALL - COALESCE ( 58, + - 74 * + 72 + + - 28 - + + 67 + CAST( 77 AS SIGNED ) DIV + + MAX( 16 ) DIV + 59 DIV 68 DIV + - 50 * - - 64 + - 54 + 87 * 63, + - 78 * 50 ), - 56 AS col0
----
-58
-56

skipif mysql # not compatible
query II rowsort label-4237
SELECT ALL - COALESCE ( 58, + - 74 * + 72 + + - 28 - + + 67 + CAST ( 77 AS INTEGER ) / + + MAX ( 16 ) / + 59 / 68 / + - 50 * - - 64 + - 54 + 87 * 63, + - 78 * 50 ), - 56 AS col0
----
-58
-56

query II rowsort
SELECT + 4 * - 71 AS col2, 16
----
-284
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4239
SELECT 26 * COUNT( * ) - + - COUNT( * ) + - MAX( + 19 ) AS col0
----
8

skipif mysql # not compatible
query I rowsort label-4239
SELECT 26 * COUNT ( * ) - + - COUNT ( * ) + - MAX ( + 19 ) AS col0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4240
SELECT + COUNT( * ) * - - COUNT( * ) + ( + 33 )
----
34

skipif mysql # not compatible
query I rowsort label-4240
SELECT + COUNT ( * ) * - - COUNT ( * ) + ( + 33 )
----
34

query I rowsort
SELECT ALL 64 * + 88 AS col1
----
5632

query I rowsort
SELECT ALL CASE ( - 15 ) WHEN + 59 THEN - - 20 + + - 31 END + + 28 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4243
SELECT ALL 34 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4243
SELECT ALL 34 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4244
SELECT CAST( NULL AS SIGNED ) + + 40
----
NULL

skipif mysql # not compatible
query I rowsort label-4244
SELECT CAST ( NULL AS INTEGER ) + + 40
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4245
SELECT - 81 * 63 - + MAX( 71 )
----
-5174

skipif mysql # not compatible
query I rowsort label-4245
SELECT - 81 * 63 - + MAX ( 71 )
----
-5174

query I rowsort
SELECT ALL + 35 + - 62 col2
----
-27

query I rowsort
SELECT DISTINCT - 79 col1
----
-79

query I rowsort
SELECT 50 + + + 57 AS col0
----
107

query I rowsort
SELECT 56 * - 39 * + 77 AS col0
----
-168168

query I rowsort
SELECT ALL + 63 * + 69 AS col0
----
4347

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4251
SELECT ALL - CAST( NULL AS SIGNED ) + + 58
----
NULL

skipif mysql # not compatible
query I rowsort label-4251
SELECT ALL - CAST ( NULL AS INTEGER ) + + 58
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4252
SELECT 72 * CAST( NULL AS SIGNED ) * + - ( CAST( NULL AS SIGNED ) ) * - CAST( ( - ( - - AVG ( ALL + + 24 ) ) ) AS SIGNED ) + + + 15 * - + 63 + - COUNT( * ) * + 35
----
NULL

skipif mysql # not compatible
query I rowsort label-4252
SELECT 72 * CAST ( NULL AS INTEGER ) * + - ( CAST ( NULL AS INTEGER ) ) * - CAST ( ( - ( - - AVG ( ALL + + 24 ) ) ) AS INTEGER ) + + + 15 * - + 63 + - COUNT ( * ) * + 35
----
NULL

query III rowsort
SELECT 41, 12 + + 83 AS col0, - 77 - + 29 AS col2
----
41
95
-106

query I rowsort
SELECT ALL + 36 * 65 * - 4 AS col1
----
-9360

query I rowsort
SELECT 46 * + + 85 AS col1
----
3910

query I rowsort
SELECT ALL + ( + + 57 ) * - NULLIF ( + ( - 45 ), + - 21 )
----
2565

query I rowsort
SELECT DISTINCT + - COALESCE ( 72, + 94 ) * + 37
----
-2664

onlyif mysql # aggregate syntax: 
query I rowsort label-4258
SELECT ( COUNT( * ) ) + - 69
----
-68

skipif mysql # not compatible
query I rowsort label-4258
SELECT ( COUNT ( * ) ) + - 69
----
-68

query I rowsort
SELECT 45 * - + 93 + - ( + 85 )
----
-4270

onlyif mysql # aggregate syntax: 
query I rowsort label-4260
SELECT - 12 + COUNT( * ) + + 53 * + 19
----
996

skipif mysql # not compatible
query I rowsort label-4260
SELECT - 12 + COUNT ( * ) + + 53 * + 19
----
996

query I rowsort
SELECT DISTINCT ( - + 89 ) AS col2
----
-89

query I rowsort
SELECT 68 + + 76
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-4263
SELECT DISTINCT + SUM( ALL - + 2 ) * - + 41 * + + 12 AS col0
----
984

skipif mysql # not compatible
query I rowsort label-4263
SELECT DISTINCT + SUM ( ALL - + 2 ) * - + 41 * + + 12 AS col0
----
984

onlyif mysql # aggregate syntax: 
query I rowsort label-4264
SELECT ALL + SUM( - 4 ) AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-4264
SELECT ALL + SUM ( - 4 ) AS col2
----
-4

query I rowsort
SELECT NULLIF ( + 68, 34 * 80 + 90 * - 42 / + + 61 ) + + - 30 - 64 AS col0
----
-26

query I rowsort
SELECT ALL - ( - ( 28 ) )
----
28

onlyif mysql # aggregate syntax: 
query II rowsort label-4267
SELECT DISTINCT 6 AS col1, - ( - - COUNT( * ) )
----
6
-1

skipif mysql # not compatible
query II rowsort label-4267
SELECT DISTINCT 6 AS col1, - ( - - COUNT ( * ) )
----
6
-1

query I rowsort
SELECT + 52 * 90 AS col2
----
4680

onlyif mysql # aggregate syntax: 
query I rowsort label-4269
SELECT ALL + NULLIF ( - 2, 98 + + + COUNT( ALL - - 33 ) ) + MIN( ALL + - NULLIF ( - + 79, - 7 ) ) AS col0
----
77

skipif mysql # not compatible
query I rowsort label-4269
SELECT ALL + NULLIF ( - 2, 98 + + + COUNT ( ALL - - 33 ) ) + MIN ( ALL + - NULLIF ( - + 79, - 7 ) ) AS col0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4270
SELECT DISTINCT + - 85 * + COUNT( * )
----
-85

skipif mysql # not compatible
query I rowsort label-4270
SELECT DISTINCT + - 85 * + COUNT ( * )
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-4271
SELECT ALL - + COALESCE ( + + MIN( ALL - - CASE - + 2 WHEN 3 * - 36 THEN NULL ELSE + - 71 END ), + 55 )
----
71

skipif mysql # not compatible
query I rowsort label-4271
SELECT ALL - + COALESCE ( + + MIN ( ALL - - CASE - + 2 WHEN 3 * - 36 THEN NULL ELSE + - 71 END ), + 55 )
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4272
SELECT 41 * 16 * - - 53 + + COUNT( * ) * + 50
----
34818

skipif mysql # not compatible
query I rowsort label-4272
SELECT 41 * 16 * - - 53 + + COUNT ( * ) * + 50
----
34818

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4273
SELECT - 19 DIV - + 21 * - COALESCE ( 7, - COUNT( * ) * + 2 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4273
SELECT - 19 / - + 21 * - COALESCE ( 7, - COUNT ( * ) * + 2 ) AS col2
----
0

query I rowsort
SELECT ALL 58 + 14 AS col0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-4275
SELECT ( + COUNT( DISTINCT - + 24 ) )
----
1

skipif mysql # not compatible
query I rowsort label-4275
SELECT ( + COUNT ( DISTINCT - + 24 ) )
----
1

query I rowsort
SELECT ALL 72 + 94 AS col2
----
166

query I rowsort
SELECT + 11 - - - 74 + + 40 AS col0
----
-23

query I rowsort
SELECT ALL + 11 * 66
----
726

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4279
SELECT DISTINCT - 57 + + - CAST( NULL AS SIGNED ) / + AVG ( + + 77 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4279
SELECT DISTINCT - 57 + + - CAST ( NULL AS INTEGER ) / + AVG ( + + 77 ) AS col2
----
NULL

query I rowsort
SELECT ALL ( + + 40 ) + 1
----
41

query I rowsort
SELECT ALL 58 + - 2 AS col0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4282
SELECT DISTINCT COALESCE ( - - 29, - 52 ) + + ( COUNT( * ) ) AS col0
----
30

skipif mysql # not compatible
query I rowsort label-4282
SELECT DISTINCT COALESCE ( - - 29, - 52 ) + + ( COUNT ( * ) ) AS col0
----
30

onlyif mysql # aggregate syntax: 
query II rowsort label-4283
SELECT 75 AS col0, COUNT( * ) AS col2
----
75
1

skipif mysql # not compatible
query II rowsort label-4283
SELECT 75 AS col0, COUNT ( * ) AS col2
----
75
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4284
SELECT ALL CAST( NULL AS SIGNED ) + 29
----
NULL

skipif mysql # not compatible
query I rowsort label-4284
SELECT ALL CAST ( NULL AS INTEGER ) + 29
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4285
SELECT ( + MIN( 40 ) ) + ( - 99 ) AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-4285
SELECT ( + MIN ( 40 ) ) + ( - 99 ) AS col0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-4286
SELECT 39 * COUNT( * ) + - - 6
----
45

skipif mysql # not compatible
query I rowsort label-4286
SELECT 39 * COUNT ( * ) + - - 6
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4287
SELECT DISTINCT - 79 AS col2, COUNT( * ) DIV - + MIN( - + 56 )
----
-79
0

skipif mysql # not compatible
query II rowsort label-4287
SELECT DISTINCT - 79 AS col2, COUNT ( * ) / - + MIN ( - + 56 )
----
-79
0

onlyif mysql # DIV for integer division: 
query II rowsort label-4288
SELECT DISTINCT - 82, 49 * - 13 + - + 58 DIV 94 * 23 AS col1
----
-82
-637

skipif mysql # not compatible
query II rowsort label-4288
SELECT DISTINCT - 82, 49 * - 13 + - + 58 / 94 * 23 AS col1
----
-82
-637

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4289
SELECT ALL CAST( NULL AS SIGNED ) - + 42 + + 30 + - 62 / + + COUNT( * ) + - 12
----
NULL

skipif mysql # not compatible
query I rowsort label-4289
SELECT ALL CAST ( NULL AS INTEGER ) - + 42 + + 30 + - 62 / + + COUNT ( * ) + - 12
----
NULL

query I rowsort
SELECT ALL CASE + 87 WHEN + 83 + + 95 THEN NULL WHEN 62 THEN 71 END * 55 + 42
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4291
SELECT COUNT( * ) * - 64 AS col1
----
-64

skipif mysql # not compatible
query I rowsort label-4291
SELECT COUNT ( * ) * - 64 AS col1
----
-64

query I rowsort
SELECT 66 + - + 14 AS col2
----
52

query I rowsort
SELECT ALL 98 * + 93
----
9114

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4294
SELECT NULLIF ( - 62, - - COUNT( ALL - 88 ) / + 47 + - 53 ) + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4294
SELECT NULLIF ( - 62, - - COUNT ( ALL - 88 ) / + 47 + - 53 ) + CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4295
SELECT + COUNT( * ), + ( + - ( + 35 ) ) - + 38 AS col0
----
1
-73

skipif mysql # not compatible
query II rowsort label-4295
SELECT + COUNT ( * ), + ( + - ( + 35 ) ) - + 38 AS col0
----
1
-73

query II rowsort
SELECT ALL 9 AS col0, + 63
----
9
63

onlyif mysql # DIV for integer division: 
query I rowsort label-4297
SELECT ALL COALESCE ( + 42, - + 65 DIV 1 * + 88, - 48 - + 64 ) * + 28
----
1176

skipif mysql # not compatible
query I rowsort label-4297
SELECT ALL COALESCE ( + 42, - + 65 / 1 * + 88, - 48 - + 64 ) * + 28
----
1176

onlyif mysql # aggregate syntax: 
query I rowsort label-4298
SELECT DISTINCT 3 - NULLIF ( - COUNT( * ), - - 57 - + 8 + AVG ( DISTINCT 65 ) ) + - 15
----
-11

skipif mysql # not compatible
query I rowsort label-4298
SELECT DISTINCT 3 - NULLIF ( - COUNT ( * ), - - 57 - + 8 + AVG ( DISTINCT 65 ) ) + - 15
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-4299
SELECT ALL MAX( ALL 63 ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-4299
SELECT ALL MAX ( ALL 63 ) AS col2
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4300
SELECT - + CAST( + + 37 AS SIGNED ) * - 57 + + 90
----
2199

skipif mysql # not compatible
query I rowsort label-4300
SELECT - + CAST ( + + 37 AS INTEGER ) * - 57 + + 90
----
2199

query I rowsort
SELECT 14 * + - 28
----
-392

query I rowsort
SELECT ALL + 33 * - 51
----
-1683

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4303
SELECT - 0 - - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4303
SELECT - 0 - - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4304
SELECT ALL - SUM( - 21 )
----
21

skipif mysql # not compatible
query I rowsort label-4304
SELECT ALL - SUM ( - 21 )
----
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4305
SELECT ALL + + 62 * + 63 AS col1, + COUNT( * ) + + COALESCE ( 93, + - 24 - + CASE 9 WHEN COALESCE ( + 38, + 80 + + 23, + 78 ) * - 39 THEN NULL WHEN - - ( - 56 ) THEN COUNT( * ) END, - 84 DIV + 21 + - 79 ) DIV + 40 col0
----
3906
3

skipif mysql # not compatible
query II rowsort label-4305
SELECT ALL + + 62 * + 63 AS col1, + COUNT ( * ) + + COALESCE ( 93, + - 24 - + CASE 9 WHEN COALESCE ( + 38, + 80 + + 23, + 78 ) * - 39 THEN NULL WHEN - - ( - 56 ) THEN COUNT ( * ) END, - 84 / + 21 + - 79 ) / + 40 col0
----
3906
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4306
SELECT - + 11 * - - COUNT( * )
----
-11

skipif mysql # not compatible
query I rowsort label-4306
SELECT - + 11 * - - COUNT ( * )
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-4307
SELECT ALL + ( - COALESCE ( - 86, + - 31 ) ) DIV + 35 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-4307
SELECT ALL + ( - COALESCE ( - 86, + - 31 ) ) / + 35 AS col2
----
2

query I rowsort
SELECT - - 36 * - 47
----
-1692

onlyif mysql # DIV for integer division: 
query II rowsort label-4309
SELECT ALL + 26 AS col1, + 46 * - 71 DIV 71
----
26
-46

skipif mysql # not compatible
query II rowsort label-4309
SELECT ALL + 26 AS col1, + 46 * - 71 / 71
----
26
-46

query I rowsort
SELECT ALL + - ( 84 ) * 45 + - ( - - 18 )
----
-3798

onlyif mysql # aggregate syntax: 
query II rowsort label-4311
SELECT + SUM( DISTINCT - 25 ) * - 65 * - 31 AS col0, 49 * + - 58
----
-50375
-2842

skipif mysql # not compatible
query II rowsort label-4311
SELECT + SUM ( DISTINCT - 25 ) * - 65 * - 31 AS col0, 49 * + - 58
----
-50375
-2842

onlyif mysql # aggregate syntax: 
query II rowsort label-4312
SELECT DISTINCT + COUNT( * ) + - 34 AS col2, + 12 AS col2
----
-33
12

skipif mysql # not compatible
query II rowsort label-4312
SELECT DISTINCT + COUNT ( * ) + - 34 AS col2, + 12 AS col2
----
-33
12

query I rowsort
SELECT DISTINCT + 31 + - 50 - + 57 AS col1
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-4314
SELECT + MIN( 6 )
----
6

skipif mysql # not compatible
query I rowsort label-4314
SELECT + MIN ( 6 )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4315
SELECT - - COUNT( - 66 )
----
1

skipif mysql # not compatible
query I rowsort label-4315
SELECT - - COUNT ( - 66 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4316
SELECT - + 9 * + 15 AS col0, ( - SUM( ALL + 67 ) ) - - - 66 + NULLIF ( - 46, NULLIF ( 13, 41 ) ) + - COUNT( * )
----
-135
-180

skipif mysql # not compatible
query II rowsort label-4316
SELECT - + 9 * + 15 AS col0, ( - SUM ( ALL + 67 ) ) - - - 66 + NULLIF ( - 46, NULLIF ( 13, 41 ) ) + - COUNT ( * )
----
-135
-180

onlyif mysql # aggregate syntax: 
query I rowsort label-4317
SELECT + - 4 + + MAX( - 87 ) AS col2
----
-91

skipif mysql # not compatible
query I rowsort label-4317
SELECT + - 4 + + MAX ( - 87 ) AS col2
----
-91

query II rowsort
SELECT DISTINCT + 60, 26 col1
----
60
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4319
SELECT ALL COALESCE ( 98, - - CAST( - - 86 AS SIGNED ) + - 36 * - 95 - + 84 ) * + + 16 AS col0
----
1568

skipif mysql # not compatible
query I rowsort label-4319
SELECT ALL COALESCE ( 98, - - CAST ( - - 86 AS INTEGER ) + - 36 * - 95 - + 84 ) * + + 16 AS col0
----
1568

query I rowsort
SELECT ALL + 3 * 4 + 44 * + 71 AS col1
----
3136

onlyif mysql # aggregate syntax: 
query I rowsort label-4321
SELECT DISTINCT - COUNT( * ) * + 49 + - COUNT( * ) * 77 AS col1
----
-126

skipif mysql # not compatible
query I rowsort label-4321
SELECT DISTINCT - COUNT ( * ) * + 49 + - COUNT ( * ) * 77 AS col1
----
-126

query I rowsort
SELECT DISTINCT + ( - - 67 ) col2
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4323
SELECT DISTINCT + CASE 70 WHEN - 18 THEN + 67 + + 50 END * 94 + + + 56 * 96 + - - 95 + 18 - - + 14 * + + 69 * + CAST( - 16 AS SIGNED ) * 87 * + - 57
----
NULL

skipif mysql # not compatible
query I rowsort label-4323
SELECT DISTINCT + CASE 70 WHEN - 18 THEN + 67 + + 50 END * 94 + + + 56 * 96 + - - 95 + 18 - - + 14 * + + 69 * + CAST ( - 16 AS INTEGER ) * 87 * + - 57
----
NULL

query I rowsort
SELECT ALL + 80 * 59 AS col0
----
4720

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4325
SELECT - 23 * - 10 + 94 - + - CAST( NULL AS SIGNED ) * - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4325
SELECT - 23 * - 10 + 94 - + - CAST ( NULL AS INTEGER ) * - - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4326
SELECT + COUNT( * ) DIV + 94
----
0

skipif mysql # not compatible
query I rowsort label-4326
SELECT + COUNT ( * ) / + 94
----
0

query I rowsort
SELECT - 34 * + ( + + 79 ) AS col1
----
-2686

onlyif mysql # aggregate syntax: 
query I rowsort label-4328
SELECT 72 * + + MAX( DISTINCT 75 ) - - - 86 + - + 81 + + - 42 * + 3 * + 20 + + COUNT( * ) * - 71 * - MAX( NULLIF ( + 53, 20 + 54 - 77 * + 99 ) ) + - 20 * + COUNT( * )
----
6456

skipif mysql # not compatible
query I rowsort label-4328
SELECT 72 * + + MAX ( DISTINCT 75 ) - - - 86 + - + 81 + + - 42 * + 3 * + 20 + + COUNT ( * ) * - 71 * - MAX ( NULLIF ( + 53, 20 + 54 - 77 * + 99 ) ) + - 20 * + COUNT ( * )
----
6456

query I rowsort
SELECT CASE 86 WHEN 90 THEN + ( + - 63 ) END
----
NULL

query I rowsort
SELECT - 73 * + 17 + + 41
----
-1200

onlyif mysql # aggregate syntax: 
query I rowsort label-4331
SELECT DISTINCT - COUNT( * ) * + - 68 AS col1
----
68

skipif mysql # not compatible
query I rowsort label-4331
SELECT DISTINCT - COUNT ( * ) * + - 68 AS col1
----
68

query I rowsort
SELECT DISTINCT + 63 * - 95
----
-5985

onlyif mysql # aggregate syntax: 
query I rowsort label-4333
SELECT ALL + CASE - 52 WHEN ( + COUNT( * ) ) THEN + 17 + 28 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4333
SELECT ALL + CASE - 52 WHEN ( + COUNT ( * ) ) THEN + 17 + 28 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4334
SELECT CASE - + AVG ( + + 62 ) WHEN - 11 + - 50 - + NULLIF ( - 18, + - MIN( ALL - 32 ) ) / + 24 * NULLIF ( - CAST( - COUNT( * ) AS SIGNED ), + 31 ) THEN ( + COUNT( + + 65 ) ) * - MIN( ALL + 39 ) * 25 + + COUNT( * ) ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4334
SELECT CASE - + AVG ( + + 62 ) WHEN - 11 + - 50 - + NULLIF ( - 18, + - MIN ( ALL - 32 ) ) / + 24 * NULLIF ( - CAST ( - COUNT ( * ) AS INTEGER ), + 31 ) THEN ( + COUNT ( + + 65 ) ) * - MIN ( ALL + 39 ) * 25 + + COUNT ( * ) ELSE NULL END col2
----
NULL

query I rowsort
SELECT 81 * - + 22 + - 37 AS col2
----
-1819

query I rowsort
SELECT + 28 * + 76 - 16 AS col0
----
2112

query I rowsort
SELECT - 44 * - 85 AS col0
----
3740

query I rowsort
SELECT - 3 + + + 19
----
16

query I rowsort
SELECT + 8 + + + 80
----
88

query I rowsort
SELECT ALL - 37 * - 62 AS col1
----
2294

onlyif mysql # aggregate syntax: 
query I rowsort label-4341
SELECT + + COUNT( * ) * + 30 * - - MIN( ALL - + 55 ) col2
----
-1650

skipif mysql # not compatible
query I rowsort label-4341
SELECT + + COUNT ( * ) * + 30 * - - MIN ( ALL - + 55 ) col2
----
-1650

onlyif mysql # aggregate syntax: 
query I rowsort label-4342
SELECT ( - COALESCE ( 77, - SUM( ALL - 8 ) ) ) * + 23 + 42 + - ( + - NULLIF ( 95, + 97 + + 60 + - 20 ) )
----
-1634

skipif mysql # not compatible
query I rowsort label-4342
SELECT ( - COALESCE ( 77, - SUM ( ALL - 8 ) ) ) * + 23 + 42 + - ( + - NULLIF ( 95, + 97 + + 60 + - 20 ) )
----
-1634

onlyif mysql # aggregate syntax: 
query I rowsort label-4343
SELECT DISTINCT - 93 * - + COUNT( * ) + - COUNT( * ) AS col1
----
92

skipif mysql # not compatible
query I rowsort label-4343
SELECT DISTINCT - 93 * - + COUNT ( * ) + - COUNT ( * ) AS col1
----
92

query I rowsort
SELECT DISTINCT - 87 + + 72 * + 45 * + 57 col2
----
184593

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4345
SELECT ALL + CASE - + 7 WHEN + + CAST( NULL AS SIGNED ) * + ( - 65 ) THEN + 3 WHEN + 87 + 33 THEN NULL WHEN + 42 THEN - - 35 DIV + 76 + 46 ELSE CASE + SUM( - 32 ) WHEN - - MIN( - + 85 ) THEN - SUM( DISTINCT 27 ) ELSE - 12 END * - 13 * 25 END * - - NULLIF ( - - 55, + 19 ) AS col0
----
214500

skipif mysql # not compatible
query I rowsort label-4345
SELECT ALL + CASE - + 7 WHEN + + CAST ( NULL AS INTEGER ) * + ( - 65 ) THEN + 3 WHEN + 87 + 33 THEN NULL WHEN + 42 THEN - - 35 / + 76 + 46 ELSE CASE + SUM ( - 32 ) WHEN - - MIN ( - + 85 ) THEN - SUM ( DISTINCT 27 ) ELSE - 12 END * - 13 * 25 END * - - NULLIF ( - - 55, + 19 ) AS col0
----
214500

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4346
SELECT DISTINCT - 43 * - 84 + CAST( - ( + ( - - SUM( + 1 ) ) ) AS SIGNED ) + + 70 AS col2
----
3681

skipif mysql # not compatible
query I rowsort label-4346
SELECT DISTINCT - 43 * - 84 + CAST ( - ( + ( - - SUM ( + 1 ) ) ) AS INTEGER ) + + 70 AS col2
----
3681

query I rowsort
SELECT ALL + - 59 + 75 + + + 9
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-4348
SELECT + COUNT( * ) + + 31 AS col0
----
32

skipif mysql # not compatible
query I rowsort label-4348
SELECT + COUNT ( * ) + + 31 AS col0
----
32

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4349
SELECT + - 5 DIV + 58, 86 + - - CAST( 48 AS SIGNED ) AS col1
----
0
134

skipif mysql # not compatible
query II rowsort label-4349
SELECT + - 5 / + 58, 86 + - - CAST ( 48 AS INTEGER ) AS col1
----
0
134

query I rowsort
SELECT ALL - 94 + + - ( 17 )
----
-111

query I rowsort
SELECT ALL + 19 + + - ( + - 45 ) + 9 AS col0
----
73

query II rowsort
SELECT + + 13 + + 60 AS col2, 34 * 30
----
73
1020

query I rowsort
SELECT - + CASE - 96 WHEN + + 60 THEN 51 * + 17 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4354
SELECT ALL - CAST( + - 26 AS SIGNED ) col0
----
26

skipif mysql # not compatible
query I rowsort label-4354
SELECT ALL - CAST ( + - 26 AS INTEGER ) col0
----
26

query I rowsort
SELECT + 23 + + 44 + + 81
----
148

query II rowsort
SELECT ALL 93 + - + 30 AS col0, - ( ( + 42 ) ) AS col1
----
63
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4357
SELECT ALL - ( 14 ) + + - CAST( COUNT( * ) AS SIGNED ) * + 99, 26 * + 84 AS col1
----
-113
2184

skipif mysql # not compatible
query II rowsort label-4357
SELECT ALL - ( 14 ) + + - CAST ( COUNT ( * ) AS INTEGER ) * + 99, 26 * + 84 AS col1
----
-113
2184

onlyif mysql # aggregate syntax: 
query I rowsort label-4358
SELECT ALL - - ( + COUNT( * ) ) + + + 19
----
20

skipif mysql # not compatible
query I rowsort label-4358
SELECT ALL - - ( + COUNT ( * ) ) + + + 19
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4359
SELECT - + MAX( ALL - 46 ) + - CASE + 96 WHEN + 11 / 17 THEN + - 55 * + 7 * - - MIN( DISTINCT + 19 ) * 54 + + 80 - - 6 ELSE NULL END + + 12 * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4359
SELECT - + MAX ( ALL - 46 ) + - CASE + 96 WHEN + 11 / 17 THEN + - 55 * + 7 * - - MIN ( DISTINCT + 19 ) * 54 + + 80 - - 6 ELSE NULL END + + 12 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 67 * 21 AS col1
----
1407

query I rowsort
SELECT ALL CASE + 48 WHEN 32 * 90 * + + 0 THEN 36 * + + 99 * + - 94 END AS col2
----
NULL

query I rowsort
SELECT - 5 * - - NULLIF ( - - 14, + + ( + - 35 ) ) AS col1
----
-70

onlyif mysql # aggregate syntax: 
query II rowsort label-4363
SELECT 76 * + 35 + COUNT( * ) AS col0, 16 - + COUNT( * ) AS col0
----
2661
15

skipif mysql # not compatible
query II rowsort label-4363
SELECT 76 * + 35 + COUNT ( * ) AS col0, 16 - + COUNT ( * ) AS col0
----
2661
15

onlyif mysql # DIV for integer division: 
query I rowsort label-4364
SELECT + 34 DIV 7
----
4

skipif mysql # not compatible
query I rowsort label-4364
SELECT + 34 / 7
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4365
SELECT - 10 + CASE 44 WHEN + COALESCE ( - - NULLIF ( - COUNT( * ), 55 * - 7 + 46 ), 45 / + + CAST( NULL AS SIGNED ) * - COUNT( * ), 78 + 90 - - 20 * - 42 / 35, + - 76 ) - - COUNT( DISTINCT - 88 ) THEN - COUNT( * ) WHEN + ( - + 11 ) + - 98 / - 89 THEN NULL END * + + 35 AS col2, 23 + ( - + MIN( + 12 ) ) * + 19 AS col2
----
NULL
-205

skipif mysql # not compatible
query II rowsort label-4365
SELECT - 10 + CASE 44 WHEN + COALESCE ( - - NULLIF ( - COUNT ( * ), 55 * - 7 + 46 ), 45 / + + CAST ( NULL AS INTEGER ) * - COUNT ( * ), 78 + 90 - - 20 * - 42 / 35, + - 76 ) - - COUNT ( DISTINCT - 88 ) THEN - COUNT ( * ) WHEN + ( - + 11 ) + - 98 / - 89 THEN NULL END * + + 35 AS col2, 23 + ( - + MIN ( + 12 ) ) * + 19 AS col2
----
NULL
-205

query I rowsort
SELECT DISTINCT + ( + 11 ) AS col0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4367
SELECT 76 * - 65 + + + COUNT( * ) AS col2
----
-4939

skipif mysql # not compatible
query I rowsort label-4367
SELECT 76 * - 65 + + + COUNT ( * ) AS col2
----
-4939

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4368
SELECT ALL + CAST( NULL AS SIGNED ) AS col2, - MAX( + 12 ) * - 23 AS col2
----
NULL
276

skipif mysql # not compatible
query II rowsort label-4368
SELECT ALL + CAST ( NULL AS INTEGER ) AS col2, - MAX ( + 12 ) * - 23 AS col2
----
NULL
276

onlyif mysql # aggregate syntax: 
query I rowsort label-4369
SELECT DISTINCT + 31 * - COUNT( * ) AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-4369
SELECT DISTINCT + 31 * - COUNT ( * ) AS col1
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-4370
SELECT ALL + SUM( + - 48 )
----
-48

skipif mysql # not compatible
query I rowsort label-4370
SELECT ALL + SUM ( + - 48 )
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-4371
SELECT - 33 + - COALESCE ( - 27, + COUNT( * ) ) * 20 * + CASE + 54 WHEN - + 20 * COALESCE ( + 16, - 6 ) THEN NULL WHEN - 24 * - 5 THEN - + 97 ELSE NULL END + + 20 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4371
SELECT - 33 + - COALESCE ( - 27, + COUNT ( * ) ) * 20 * + CASE + 54 WHEN - + 20 * COALESCE ( + 16, - 6 ) THEN NULL WHEN - 24 * - 5 THEN - + 97 ELSE NULL END + + 20 AS col2
----
NULL

query I rowsort
SELECT - 44 * 58 col2
----
-2552

query I rowsort
SELECT ALL + NULLIF ( 26, 49 ) col2
----
26

query I rowsort
SELECT + 85 * + 36 AS col1
----
3060

onlyif mysql # aggregate syntax: 
query I rowsort label-4375
SELECT ( - + MIN( - 24 ) ) col0
----
24

skipif mysql # not compatible
query I rowsort label-4375
SELECT ( - + MIN ( - 24 ) ) col0
----
24

query I rowsort
SELECT + ( 72 ) AS col2
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-4377
SELECT - 82 * - 46 * COUNT( * ) AS col2
----
3772

skipif mysql # not compatible
query I rowsort label-4377
SELECT - 82 * - 46 * COUNT ( * ) AS col2
----
3772

query II rowsort
SELECT DISTINCT - + 57, + 40 col2
----
-57
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4379
SELECT DISTINCT - 56 + + MIN( + - 43 ) AS col1
----
-99

skipif mysql # not compatible
query I rowsort label-4379
SELECT DISTINCT - 56 + + MIN ( + - 43 ) AS col1
----
-99

query I rowsort
SELECT - 49 + + 81
----
32

query I rowsort
SELECT 12 * + 23 col0
----
276

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4382
SELECT - AVG ( ALL - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4382
SELECT - AVG ( ALL - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4383
SELECT DISTINCT CAST( + 71 AS SIGNED ) + + - COUNT( * ) + 95 * 33
----
3205

skipif mysql # not compatible
query I rowsort label-4383
SELECT DISTINCT CAST ( + 71 AS INTEGER ) + + - COUNT ( * ) + 95 * 33
----
3205

query II rowsort
SELECT 98, + 81 * - + 2 AS col0
----
98
-162

onlyif mysql # aggregate syntax: 
query I rowsort label-4385
SELECT ALL + 90 + - COUNT( * ) + 22 + 10 + 67 + 35 * + COUNT( * ) + - 31 - + + 95 AS col1
----
97

skipif mysql # not compatible
query I rowsort label-4385
SELECT ALL + 90 + - COUNT ( * ) + 22 + 10 + 67 + 35 * + COUNT ( * ) + - 31 - + + 95 AS col1
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4386
SELECT ALL 38 * - 62 * - + COALESCE ( + + 15, 81 / - - COUNT( * ) + - ( CAST( 90 AS SIGNED ) ) ) + - CAST( NULL AS SIGNED ) * - 89, + 86 AS col1
----
NULL
86

skipif mysql # not compatible
query II rowsort label-4386
SELECT ALL 38 * - 62 * - + COALESCE ( + + 15, 81 / - - COUNT ( * ) + - ( CAST ( 90 AS INTEGER ) ) ) + - CAST ( NULL AS INTEGER ) * - 89, + 86 AS col1
----
NULL
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4387
SELECT DISTINCT + 82 + COUNT( * ) + - 47 * 62 AS col2
----
-2831

skipif mysql # not compatible
query I rowsort label-4387
SELECT DISTINCT + 82 + COUNT ( * ) + - 47 * 62 AS col2
----
-2831

query II rowsort
SELECT ALL - 2 AS col1, - 1 AS col2
----
-2
-1

query I rowsort
SELECT 61 * + 39 * - 24
----
-57096

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4390
SELECT 15 * - - 87 AS col0, SUM( ALL 44 ) DIV - 14
----
1305
-3

skipif mysql # not compatible
query II rowsort label-4390
SELECT 15 * - - 87 AS col0, SUM ( ALL 44 ) / - 14
----
1305
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4391
SELECT DISTINCT ( 83 ) - COUNT( * ) + - 65 - 35 * + + 80
----
-2783

skipif mysql # not compatible
query I rowsort label-4391
SELECT DISTINCT ( 83 ) - COUNT ( * ) + - 65 - 35 * + + 80
----
-2783

onlyif mysql # DIV for integer division: 
query II rowsort label-4392
SELECT DISTINCT 22 DIV + 24, - 17 AS col2
----
0
-17

skipif mysql # not compatible
query II rowsort label-4392
SELECT DISTINCT 22 / + 24, - 17 AS col2
----
0
-17

query I rowsort
SELECT ALL - 17 * 29
----
-493

onlyif mysql # aggregate syntax: 
query I rowsort label-4394
SELECT COUNT( * ) * + 33 AS col0
----
33

skipif mysql # not compatible
query I rowsort label-4394
SELECT COUNT ( * ) * + 33 AS col0
----
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4395
SELECT ALL 69 DIV COUNT( * ) col1
----
69

skipif mysql # not compatible
query I rowsort label-4395
SELECT ALL 69 / COUNT ( * ) col1
----
69

query I rowsort
SELECT ALL - 8 * - 1 AS col0
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4397
SELECT DISTINCT MAX( DISTINCT + - 66 ) DIV + 8
----
-8

skipif mysql # not compatible
query I rowsort label-4397
SELECT DISTINCT MAX ( DISTINCT + - 66 ) / + 8
----
-8

query I rowsort
SELECT ALL - ( + 98 )
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-4399
SELECT ALL - SUM( DISTINCT 3 ) AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-4399
SELECT ALL - SUM ( DISTINCT 3 ) AS col0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4400
SELECT COUNT( * ) + - 72 col2
----
-71

skipif mysql # not compatible
query I rowsort label-4400
SELECT COUNT ( * ) + - 72 col2
----
-71

query I rowsort
SELECT 81 * + 71
----
5751

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4402
SELECT 85 DIV - COUNT( * ), 54 AS col2
----
-85
54

skipif mysql # not compatible
query II rowsort label-4402
SELECT 85 / - COUNT ( * ), 54 AS col2
----
-85
54

query I rowsort
SELECT ALL - 19 + + + 3 AS col2
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-4404
SELECT ALL 79 * MAX( - + 15 ) AS col1
----
-1185

skipif mysql # not compatible
query I rowsort label-4404
SELECT ALL 79 * MAX ( - + 15 ) AS col1
----
-1185

query I rowsort
SELECT ALL + - 63 + - 35 * + 33 col1
----
-1218

query I rowsort
SELECT ALL + - 55 + + - 40 - - - 57
----
-152

query I rowsort
SELECT ALL - 54 + + + 99 AS col1
----
45

onlyif mysql # aggregate syntax: 
query II rowsort label-4408
SELECT - MAX( ALL 76 ), + 91 AS col2
----
-76
91

skipif mysql # not compatible
query II rowsort label-4408
SELECT - MAX ( ALL 76 ), + 91 AS col2
----
-76
91

query I rowsort
SELECT ( + + 86 ) + + + 38 AS col0
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-4410
SELECT - - COALESCE ( + + 31, - + 42, + + 70 * 2 - - COUNT( * ) ) * + MIN( - NULLIF ( 16, - 88 ) ) + NULLIF ( COUNT( 30 ), - - 90 - + 9 * - AVG ( + - 50 ) * + 86 )
----
-495

skipif mysql # not compatible
query I rowsort label-4410
SELECT - - COALESCE ( + + 31, - + 42, + + 70 * 2 - - COUNT ( * ) ) * + MIN ( - NULLIF ( 16, - 88 ) ) + NULLIF ( COUNT ( 30 ), - - 90 - + 9 * - AVG ( + - 50 ) * + 86 )
----
-495

onlyif mysql # aggregate syntax: 
query I rowsort label-4411
SELECT NULLIF ( + COUNT( * ), 31 ) + - 80 AS col2
----
-79

skipif mysql # not compatible
query I rowsort label-4411
SELECT NULLIF ( + COUNT ( * ), 31 ) + - 80 AS col2
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-4412
SELECT + 30 + - SUM( ALL 9 ) + - 75 * 66 AS col0
----
-4929

skipif mysql # not compatible
query I rowsort label-4412
SELECT + 30 + - SUM ( ALL 9 ) + - 75 * 66 AS col0
----
-4929

query I rowsort
SELECT - 69 + - 37 AS col0
----
-106

onlyif mysql # aggregate syntax: 
query II rowsort label-4414
SELECT - COUNT( DISTINCT - 48 ), + 82 AS col2
----
-1
82

skipif mysql # not compatible
query II rowsort label-4414
SELECT - COUNT ( DISTINCT - 48 ), + 82 AS col2
----
-1
82

query I rowsort
SELECT ALL - + 84 * - 4
----
336

query I rowsort
SELECT - 96 + - + 77 AS col1
----
-173

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4417
SELECT ALL - 61 * + ( + + 77 ) * - - 90 * - 85 + - 78 * - - COUNT( * ) + + MIN( - - 26 ) - MIN( ALL - + 82 ) DIV 76 + + + 24 + 21 AS col2
----
35932044

skipif mysql # not compatible
query I rowsort label-4417
SELECT ALL - 61 * + ( + + 77 ) * - - 90 * - 85 + - 78 * - - COUNT ( * ) + + MIN ( - - 26 ) - MIN ( ALL - + 82 ) / 76 + + + 24 + 21 AS col2
----
35932044

query I rowsort
SELECT ALL - 17 - + - 53
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4419
SELECT 24 * - + COUNT( * ) * - 66 AS col2
----
1584

skipif mysql # not compatible
query I rowsort label-4419
SELECT 24 * - + COUNT ( * ) * - 66 AS col2
----
1584

onlyif mysql # aggregate syntax: 
query I rowsort label-4420
SELECT 31 + - COUNT( * )
----
30

skipif mysql # not compatible
query I rowsort label-4420
SELECT 31 + - COUNT ( * )
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4421
SELECT ALL SUM( ALL - 39 )
----
-39

skipif mysql # not compatible
query I rowsort label-4421
SELECT ALL SUM ( ALL - 39 )
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-4422
SELECT COALESCE ( CASE - - 82 WHEN + 38 THEN + + ( 28 ) * 45 - 67 - + 6 ELSE NULL END, 72 ) + + SUM( + ( + 83 ) )
----
155

skipif mysql # not compatible
query I rowsort label-4422
SELECT COALESCE ( CASE - - 82 WHEN + 38 THEN + + ( 28 ) * 45 - 67 - + 6 ELSE NULL END, 72 ) + + SUM ( + ( + 83 ) )
----
155

query II rowsort
SELECT ALL 81, - 79 AS col1
----
81
-79

query I rowsort
SELECT 50 * 90 AS col0
----
4500

query II rowsort
SELECT ALL 89 AS col2, ( - 38 ) AS col1
----
89
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-4426
SELECT DISTINCT MAX( DISTINCT + ( - 40 ) ) * - 91 col2
----
3640

skipif mysql # not compatible
query I rowsort label-4426
SELECT DISTINCT MAX ( DISTINCT + ( - 40 ) ) * - 91 col2
----
3640

query I rowsort
SELECT 40 * 61
----
2440

query I rowsort
SELECT 50 * 89 + - 70 AS col2
----
4380

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4429
SELECT ALL 29 * - 38 + + ( - CASE - 65 WHEN 79 DIV + AVG ( ALL + 57 ) + - 6 + + ( - - 83 ) THEN NULL ELSE + 31 DIV + ( + - 90 ) * + 17 END ) + - + 5 - 50 * COUNT( * ) + - ( - + 48 ) * - CASE + 29 WHEN 65 THEN - 87 ELSE - 8 * 66 + 56 END + 78 * - + ( - + ( + 78 ) ) AS col1
----
27583

skipif mysql # not compatible
query I rowsort label-4429
SELECT ALL 29 * - 38 + + ( - CASE - 65 WHEN 79 / + AVG ( ALL + 57 ) + - 6 + + ( - - 83 ) THEN NULL ELSE + 31 / + ( + - 90 ) * + 17 END ) + - + 5 - 50 * COUNT ( * ) + - ( - + 48 ) * - CASE + 29 WHEN 65 THEN - 87 ELSE - 8 * 66 + 56 END + 78 * - + ( - + ( + 78 ) ) AS col1
----
27583

onlyif mysql # aggregate syntax: 
query I rowsort label-4430
SELECT COALESCE ( + - 37, 50, COUNT( * ) + + COUNT( * ) ) AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-4430
SELECT COALESCE ( + - 37, 50, COUNT ( * ) + + COUNT ( * ) ) AS col1
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4431
SELECT + MIN( DISTINCT - 82 ) * CASE + 0 WHEN - 23 THEN + 29 WHEN 45 THEN + - 94 + + CAST( NULL AS SIGNED ) - - COALESCE ( + 38, + NULLIF ( + - 56, 74 * + ( - + 94 ) * COUNT( * ) + 57 ), - 86 * - + 89 * + ( - + ( - + 22 ) ) + - NULLIF ( 18, + - 52 ) + - 95 * - 97 + 66, - 35 * NULLIF ( + 28, + 45 * CAST( NULL AS SIGNED ) * + 37 * - 60 * + 38 + 98 ) - + + ( - COUNT( * ) ) + + 98 / + ( 4 ) * 44 * - - 33 + - COUNT( * ) ) + - 76 * + NULLIF ( COUNT( ALL - 25 ), 34 * + 15 ) * 85 WHEN 95 + - 13 * - 60 THEN 4 END * + COALESCE ( 50 - 9, 73 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4431
SELECT + MIN ( DISTINCT - 82 ) * CASE + 0 WHEN - 23 THEN + 29 WHEN 45 THEN + - 94 + + CAST ( NULL AS INTEGER ) - - COALESCE ( + 38, + NULLIF ( + - 56, 74 * + ( - + 94 ) * COUNT ( * ) + 57 ), - 86 * - + 89 * + ( - + ( - + 22 ) ) + - NULLIF ( 18, + - 52 ) + - 95 * - 97 + 66, - 35 * NULLIF ( + 28, + 45 * CAST ( NULL AS INTEGER ) * + 37 * - 60 * + 38 + 98 ) - + + ( - COUNT ( * ) ) + + 98 / + ( 4 ) * 44 * - - 33 + - COUNT ( * ) ) + - 76 * + NULLIF ( COUNT ( ALL - 25 ), 34 * + 15 ) * 85 WHEN 95 + - 13 * - 60 THEN 4 END * + COALESCE ( 50 - 9, 73 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4432
SELECT ALL 84 * + MAX( ALL - 24 ) + - 47 + ( - COUNT( * ) ) AS col2
----
-2064

skipif mysql # not compatible
query I rowsort label-4432
SELECT ALL 84 * + MAX ( ALL - 24 ) + - 47 + ( - COUNT ( * ) ) AS col2
----
-2064

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4433
SELECT + COALESCE ( + + 54, - 84, + + 89 * + 4 + - 21, - ( - 38 ) * - ( - 54 ) + 70 DIV COUNT( * ) )
----
54

skipif mysql # not compatible
query I rowsort label-4433
SELECT + COALESCE ( + + 54, - 84, + + 89 * + 4 + - 21, - ( - 38 ) * - ( - 54 ) + 70 / COUNT ( * ) )
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4434
SELECT SUM( ALL - 81 )
----
-81

skipif mysql # not compatible
query I rowsort label-4434
SELECT SUM ( ALL - 81 )
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4435
SELECT + 74 * - + 12 * + COUNT( * ) * + 30 - - 85 - - 72 + NULLIF ( 43, 45 ) * + 68 * - + 66 * MIN( + 62 ) + - 97
----
-11991588

skipif mysql # not compatible
query I rowsort label-4435
SELECT + 74 * - + 12 * + COUNT ( * ) * + 30 - - 85 - - 72 + NULLIF ( 43, 45 ) * + 68 * - + 66 * MIN ( + 62 ) + - 97
----
-11991588

onlyif mysql # aggregate syntax: 
query I rowsort label-4436
SELECT ALL + MIN( + 33 ) AS col1
----
33

skipif mysql # not compatible
query I rowsort label-4436
SELECT ALL + MIN ( + 33 ) AS col1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-4437
SELECT + - 8 * 52 + - MIN( - 50 ) AS col2
----
-366

skipif mysql # not compatible
query I rowsort label-4437
SELECT + - 8 * 52 + - MIN ( - 50 ) AS col2
----
-366

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4438
SELECT - 1 DIV 54 * COALESCE ( + 19, + 34 + + SUM( + 93 ) * + 75, - 39 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4438
SELECT - 1 / 54 * COALESCE ( + 19, + 34 + + SUM ( + 93 ) * + 75, - 39 ) AS col0
----
0

query I rowsort
SELECT ALL 36 * 35 * 0 + - 97 col0
----
-97

query I rowsort
SELECT + 40 * 12 * + 86
----
41280

onlyif mysql # aggregate syntax: 
query I rowsort label-4441
SELECT - - 12 * - COUNT( * ) AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-4441
SELECT - - 12 * - COUNT ( * ) AS col0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-4442
SELECT DISTINCT + SUM( + 65 ) AS col0
----
65

skipif mysql # not compatible
query I rowsort label-4442
SELECT DISTINCT + SUM ( + 65 ) AS col0
----
65

onlyif mysql # aggregate syntax: 
query II rowsort label-4443
SELECT + + 75 AS col1, + COUNT( ALL + 77 ) + - - CASE - MIN( ALL + 80 ) WHEN + ( - 47 ) * + - COUNT( * ) THEN - + 94 ELSE NULL END AS col2
----
75
NULL

skipif mysql # not compatible
query II rowsort label-4443
SELECT + + 75 AS col1, + COUNT ( ALL + 77 ) + - - CASE - MIN ( ALL + 80 ) WHEN + ( - 47 ) * + - COUNT ( * ) THEN - + 94 ELSE NULL END AS col2
----
75
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4444
SELECT ALL 44 * - 6 * NULLIF ( + SUM( - + 54 ), + 10 ) * + 87 + MIN( ALL 98 ) + - - 85 + 23 * - - 79 * - 14 * - 3 + + 17 - + CAST( 85 AS SIGNED )
----
1316701

skipif mysql # not compatible
query I rowsort label-4444
SELECT ALL 44 * - 6 * NULLIF ( + SUM ( - + 54 ), + 10 ) * + 87 + MIN ( ALL 98 ) + - - 85 + 23 * - - 79 * - 14 * - 3 + + 17 - + CAST ( 85 AS INTEGER )
----
1316701

query I rowsort
SELECT ALL + + 20 AS col1
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4446
SELECT DISTINCT + + 98 * + - COUNT( * ) + COUNT( * ) AS col1
----
-97

skipif mysql # not compatible
query I rowsort label-4446
SELECT DISTINCT + + 98 * + - COUNT ( * ) + COUNT ( * ) AS col1
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4447
SELECT - 17 * 2 + - COUNT( * ) * - + 97 * 56 AS col1, + 94 + + 31 * + 20 / + + CASE + 71 WHEN + 19 + 89 + - 62 THEN - SUM( ALL - CAST( NULL AS DECIMAL ) ) WHEN + + CAST( - 41 AS SIGNED ) THEN NULL END AS col0
----
5398
NULL

skipif mysql # not compatible
query II rowsort label-4447
SELECT - 17 * 2 + - COUNT ( * ) * - + 97 * 56 AS col1, + 94 + + 31 * + 20 / + + CASE + 71 WHEN + 19 + 89 + - 62 THEN - SUM ( ALL - CAST ( NULL AS REAL ) ) WHEN + + CAST ( - 41 AS INTEGER ) THEN NULL END AS col0
----
5398
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4448
SELECT ALL + CAST( NULL AS DECIMAL ) * 92 + 46, CASE 29 WHEN + + 51 THEN - 30 * - 62 - - 45 ELSE 15 * + - 15 * 31 + + COUNT( * ) + 28 END * 29 AS col2
----
NULL
-201434

skipif mysql # not compatible
query II rowsort label-4448
SELECT ALL + CAST ( NULL AS REAL ) * 92 + 46, CASE 29 WHEN + + 51 THEN - 30 * - 62 - - 45 ELSE 15 * + - 15 * 31 + + COUNT ( * ) + 28 END * 29 AS col2
----
NULL
-201434

query I rowsort
SELECT - 56 * - 42 AS col0
----
2352

onlyif mysql # aggregate syntax: 
query I rowsort label-4450
SELECT - COUNT( * ) + + + 66
----
65

skipif mysql # not compatible
query I rowsort label-4450
SELECT - COUNT ( * ) + + + 66
----
65

query I rowsort
SELECT ALL COALESCE ( - + 48, - 63, + COALESCE ( + 16, 63 + + 95 ) )
----
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-4452
SELECT + + SUM( DISTINCT 63 ) * - - 91 AS col2, - 40 col1
----
5733
-40

skipif mysql # not compatible
query II rowsort label-4452
SELECT + + SUM ( DISTINCT 63 ) * - - 91 AS col2, - 40 col1
----
5733
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4453
SELECT ALL + CAST( NULL AS SIGNED ) * + 93
----
NULL

skipif mysql # not compatible
query I rowsort label-4453
SELECT ALL + CAST ( NULL AS INTEGER ) * + 93
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4454
SELECT - 46 + + COUNT( * ) - - 29 + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4454
SELECT - 46 + + COUNT ( * ) - - 29 + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 35 * 20 AS col1
----
700

onlyif mysql # aggregate syntax: 
query II rowsort label-4456
SELECT ALL 25, + COUNT( - 58 ) + - 50 AS col1
----
25
-49

skipif mysql # not compatible
query II rowsort label-4456
SELECT ALL 25, + COUNT ( - 58 ) + - 50 AS col1
----
25
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4457
SELECT - COUNT( * ) / + - NULLIF ( + CAST( NULL AS SIGNED ), - 13 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4457
SELECT - COUNT ( * ) / + - NULLIF ( + CAST ( NULL AS INTEGER ), - 13 ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4458
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - 54 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4458
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - 54 AS col0
----
NULL

query I rowsort
SELECT ALL ( + 88 )
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-4460
SELECT ALL + 91 DIV + 8
----
11

skipif mysql # not compatible
query I rowsort label-4460
SELECT ALL + 91 / + 8
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-4461
SELECT + ( - - 46 ) DIV + 13
----
3

skipif mysql # not compatible
query I rowsort label-4461
SELECT + ( - - 46 ) / + 13
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4462
SELECT - COUNT( * ) - 57 + - 3
----
-61

skipif mysql # not compatible
query I rowsort label-4462
SELECT - COUNT ( * ) - 57 + - 3
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-4463
SELECT + MIN( DISTINCT + 96 ) * + - 2
----
-192

skipif mysql # not compatible
query I rowsort label-4463
SELECT + MIN ( DISTINCT + 96 ) * + - 2
----
-192

onlyif mysql # aggregate syntax: 
query I rowsort label-4464
SELECT ALL 92 + + SUM( ALL - - 16 )
----
108

skipif mysql # not compatible
query I rowsort label-4464
SELECT ALL 92 + + SUM ( ALL - - 16 )
----
108

query II rowsort
SELECT 40 AS col0, 92 * - 73 AS col0
----
40
-6716

onlyif mysql # aggregate syntax: 
query II rowsort label-4466
SELECT - ( COUNT( * ) ), 21 AS col2
----
-1
21

skipif mysql # not compatible
query II rowsort label-4466
SELECT - ( COUNT ( * ) ), 21 AS col2
----
-1
21

onlyif mysql # aggregate syntax: 
query I rowsort label-4467
SELECT ALL MIN( ALL 84 ) + - - ( 38 ) - + - 72 + - - 88 + + 52
----
334

skipif mysql # not compatible
query I rowsort label-4467
SELECT ALL MIN ( ALL 84 ) + - - ( 38 ) - + - 72 + - - 88 + + 52
----
334

onlyif mysql # aggregate syntax: 
query II rowsort label-4468
SELECT ALL 2, 28 * + MIN( + - 58 ) col1
----
2
-1624

skipif mysql # not compatible
query II rowsort label-4468
SELECT ALL 2, 28 * + MIN ( + - 58 ) col1
----
2
-1624

onlyif mysql # aggregate syntax: 
query I rowsort label-4469
SELECT + MIN( DISTINCT 51 ) * 88 * - 6 AS col2
----
-26928

skipif mysql # not compatible
query I rowsort label-4469
SELECT + MIN ( DISTINCT 51 ) * 88 * - 6 AS col2
----
-26928

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4470
SELECT CAST( 74 AS SIGNED ) AS col0, - 45
----
74
-45

skipif mysql # not compatible
query II rowsort label-4470
SELECT CAST ( 74 AS INTEGER ) AS col0, - 45
----
74
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4471
SELECT DISTINCT + 10 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4471
SELECT DISTINCT + 10 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4472
SELECT ALL 5 DIV 99 + - + 82
----
-82

skipif mysql # not compatible
query I rowsort label-4472
SELECT ALL 5 / 99 + - + 82
----
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-4473
SELECT DISTINCT 74 DIV - + 7 + 64 * - - 66 + - 92
----
4122

skipif mysql # not compatible
query I rowsort label-4473
SELECT DISTINCT 74 / - + 7 + 64 * - - 66 + - 92
----
4122

onlyif mysql # aggregate syntax: 
query I rowsort label-4474
SELECT - COALESCE ( COUNT( * ), 92 ) + + + 47 + 55 + + - NULLIF ( 53, 71 * + - 2 + 47 ) AS col1
----
48

skipif mysql # not compatible
query I rowsort label-4474
SELECT - COALESCE ( COUNT ( * ), 92 ) + + + 47 + 55 + + - NULLIF ( 53, 71 * + - 2 + 47 ) AS col1
----
48

query I rowsort
SELECT + 20 * 0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4476
SELECT - 13 * - COUNT( * ) + 2 DIV - NULLIF ( + 44, - + 35 - COUNT( * ) + - + COALESCE ( - - 77, - - 47 ) ) + + + 29 * - MIN( + 90 ) * - 67 + ( - - SUM( - 5 ) )
----
174878

skipif mysql # not compatible
query I rowsort label-4476
SELECT - 13 * - COUNT ( * ) + 2 / - NULLIF ( + 44, - + 35 - COUNT ( * ) + - + COALESCE ( - - 77, - - 47 ) ) + + + 29 * - MIN ( + 90 ) * - 67 + ( - - SUM ( - 5 ) )
----
174878

query I rowsort
SELECT COALESCE ( - 13, 27 * - 74, - + ( - 26 ) ) AS col1
----
-13

query II rowsort
SELECT 80 col1, - 59 AS col2
----
80
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-4479
SELECT DISTINCT + 39 AS col2, - SUM( NULLIF ( + 88, 97 ) )
----
39
-88

skipif mysql # not compatible
query II rowsort label-4479
SELECT DISTINCT + 39 AS col2, - SUM ( NULLIF ( + 88, 97 ) )
----
39
-88

query II rowsort
SELECT ALL + + 68 AS col2, - 92 AS col0
----
68
-92

query I rowsort
SELECT + - 66 * - ( + 4 )
----
264

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4482
SELECT + + 97 + + - 39 + + + 9 + 57 + - 60 + + COUNT( * ) * 17 * + 15 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4482
SELECT + + 97 + + - 39 + + + 9 + 57 + - 60 + + COUNT ( * ) * 17 * + 15 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + - 91 col1
----
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-4484
SELECT + - 74 col0, COALESCE ( + ( + + 22 ), 5 ) + + 72 + NULLIF ( + - 9, + + 71 ) + - - COUNT( * ) AS col1
----
-74
86

skipif mysql # not compatible
query II rowsort label-4484
SELECT + - 74 col0, COALESCE ( + ( + + 22 ), 5 ) + + 72 + NULLIF ( + - 9, + + 71 ) + - - COUNT ( * ) AS col1
----
-74
86

query II rowsort
SELECT DISTINCT + 18, 30 AS col2
----
18
30

query I rowsort
SELECT ALL - 69 * - - 28 - + 10 + - ( - 99 )
----
-1843

onlyif mysql # aggregate syntax: 
query I rowsort label-4487
SELECT + 74 * COUNT( * ) * - 58
----
-4292

skipif mysql # not compatible
query I rowsort label-4487
SELECT + 74 * COUNT ( * ) * - 58
----
-4292

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4488
SELECT ALL NULLIF ( COUNT( * ), + 67 * 53 ) DIV 83 DIV - - MAX( ALL + + 11 )
----
0

skipif mysql # not compatible
query I rowsort label-4488
SELECT ALL NULLIF ( COUNT ( * ), + 67 * 53 ) / 83 / - - MAX ( ALL + + 11 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4489
SELECT + 44 AS col2, COUNT( * ) * 4
----
44
4

skipif mysql # not compatible
query II rowsort label-4489
SELECT + 44 AS col2, COUNT ( * ) * 4
----
44
4

query II rowsort
SELECT - 61 AS col1, - 61
----
-61
-61

onlyif mysql # DIV for integer division: 
query I rowsort label-4491
SELECT + + 45 DIV 72 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4491
SELECT + + 45 / 72 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4492
SELECT - 14 + + + COUNT( * ) - + + COUNT( * ) + 6 AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-4492
SELECT - 14 + + + COUNT ( * ) - + + COUNT ( * ) + 6 AS col1
----
-8

query I rowsort
SELECT + - 70 * + NULLIF ( + - 92, ( + 11 ) ) AS col2
----
6440

onlyif mysql # DIV for integer division: 
query I rowsort label-4494
SELECT - + 64 * NULLIF ( - 18, + - 37 * + + ( COALESCE ( + 3, + 87 ) ) ) DIV + 72 AS col2
----
16

skipif mysql # not compatible
query I rowsort label-4494
SELECT - + 64 * NULLIF ( - 18, + - 37 * + + ( COALESCE ( + 3, + 87 ) ) ) / + 72 AS col2
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4495
SELECT ALL + ( CAST( NULL AS SIGNED ) ) AS col0, 50
----
NULL
50

skipif mysql # not compatible
query II rowsort label-4495
SELECT ALL + ( CAST ( NULL AS INTEGER ) ) AS col0, 50
----
NULL
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4496
SELECT + - COUNT( * ) + 11 AS col1
----
10

skipif mysql # not compatible
query I rowsort label-4496
SELECT + - COUNT ( * ) + 11 AS col1
----
10

query II rowsort
SELECT DISTINCT 73 AS col2, 58
----
73
58

query I rowsort
SELECT ALL ( 67 )
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4499
SELECT DISTINCT CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) AS col2, 93 col1
----
NULL
93

skipif mysql # not compatible
query II rowsort label-4499
SELECT DISTINCT CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2, 93 col1
----
NULL
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4500
SELECT ALL 46 * - + 89 + - + NULLIF ( + + 82, - COUNT( * ) ) DIV + COALESCE ( - 95, - 17, + + 62 * 9 * 59 + + - 67 - - 99 )
----
-4094

skipif mysql # not compatible
query I rowsort label-4500
SELECT ALL 46 * - + 89 + - + NULLIF ( + + 82, - COUNT ( * ) ) / + COALESCE ( - 95, - 17, + + 62 * 9 * 59 + + - 67 - - 99 )
----
-4094

query I rowsort
SELECT DISTINCT COALESCE ( - 37, - - 75, - - 32 )
----
-37

query I rowsort
SELECT + 28 + - ( 47 ) * - 32
----
1532

onlyif mysql # aggregate syntax: 
query I rowsort label-4503
SELECT - COALESCE ( - ( COUNT( * ) ), + 44 ) * 51 - + 97 + 47 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4503
SELECT - COALESCE ( - ( COUNT ( * ) ), + 44 ) * 51 - + 97 + 47 AS col1
----
1

query I rowsort
SELECT DISTINCT + 13 + - 85 AS col2
----
-72

query I rowsort
SELECT ALL + 86 + - ( + 56 )
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4506
SELECT 75 + + CASE - - COUNT( * ) WHEN NULLIF ( + 35, + COUNT( * ) ) * - 80 THEN AVG ( DISTINCT + - 14 ) WHEN SUM( + 63 ) + - 94 * - 64 THEN + + 72 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4506
SELECT 75 + + CASE - - COUNT ( * ) WHEN NULLIF ( + 35, + COUNT ( * ) ) * - 80 THEN AVG ( DISTINCT + - 14 ) WHEN SUM ( + 63 ) + - 94 * - 64 THEN + + 72 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4507
SELECT ALL + 87 + 2, 64 * + MAX( - 61 ) AS col2
----
89
-3904

skipif mysql # not compatible
query II rowsort label-4507
SELECT ALL + 87 + 2, 64 * + MAX ( - 61 ) AS col2
----
89
-3904

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4508
SELECT ALL COUNT( * ) + - 70 * - - 68 / + AVG ( DISTINCT + - 39 ) * 72 - 47 + 81 + 91 * COALESCE ( + ( 60 ), - 77 ) * + AVG ( + CAST( NULL AS SIGNED ) ) * + - 48 * - ( + + 41 ) + - CAST( NULL AS DECIMAL ) + + - MAX( ALL + 94 ) / - SUM( - 97 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4508
SELECT ALL COUNT ( * ) + - 70 * - - 68 / + AVG ( DISTINCT + - 39 ) * 72 - 47 + 81 + 91 * COALESCE ( + ( 60 ), - 77 ) * + AVG ( + CAST ( NULL AS INTEGER ) ) * + - 48 * - ( + + 41 ) + - CAST ( NULL AS REAL ) + + - MAX ( ALL + 94 ) / - SUM ( - 97 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4509
SELECT 91 + - - CASE + + COUNT( * ) WHEN - 20 THEN - 4 * + 63 + + + ( + + 2 ) * + 37 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4509
SELECT 91 + - - CASE + + COUNT ( * ) WHEN - 20 THEN - 4 * + 63 + + + ( + + 2 ) * + 37 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4510
SELECT 94 * ( + ( COUNT( * ) ) ) AS col0
----
94

skipif mysql # not compatible
query I rowsort label-4510
SELECT 94 * ( + ( COUNT ( * ) ) ) AS col0
----
94

onlyif mysql # aggregate syntax: 
query II rowsort label-4511
SELECT + 13 * - COUNT( * ) col1, 68 + - + COALESCE ( COUNT( * ), - - 86 )
----
-13
67

skipif mysql # not compatible
query II rowsort label-4511
SELECT + 13 * - COUNT ( * ) col1, 68 + - + COALESCE ( COUNT ( * ), - - 86 )
----
-13
67

onlyif mysql # DIV for integer division: 
query I rowsort label-4512
SELECT ALL 75 * 14 DIV + 56
----
18

skipif mysql # not compatible
query I rowsort label-4512
SELECT ALL 75 * 14 / + 56
----
18

query I rowsort
SELECT ALL - - 79 col0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4514
SELECT DISTINCT - + MAX( + 36 )
----
-36

skipif mysql # not compatible
query I rowsort label-4514
SELECT DISTINCT - + MAX ( + 36 )
----
-36

query I rowsort
SELECT ALL + + 64 * + 30
----
1920

onlyif mysql # aggregate syntax: 
query I rowsort label-4516
SELECT 23 * + ( - COUNT( * ) )
----
-23

skipif mysql # not compatible
query I rowsort label-4516
SELECT 23 * + ( - COUNT ( * ) )
----
-23

query I rowsort
SELECT ALL - + 55 col1
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-4518
SELECT + NULLIF ( - 75, 38 ) * + - NULLIF ( + + 25, - - 65 - COUNT( * ) ) - + SUM( DISTINCT - 37 ) AS col0
----
1912

skipif mysql # not compatible
query I rowsort label-4518
SELECT + NULLIF ( - 75, 38 ) * + - NULLIF ( + + 25, - - 65 - COUNT ( * ) ) - + SUM ( DISTINCT - 37 ) AS col0
----
1912

onlyif mysql # aggregate syntax: 
query I rowsort label-4519
SELECT + + COALESCE ( + 53, - - COALESCE ( - - 48, - COUNT( * ), - 61 ) )
----
53

skipif mysql # not compatible
query I rowsort label-4519
SELECT + + COALESCE ( + 53, - - COALESCE ( - - 48, - COUNT ( * ), - 61 ) )
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-4520
SELECT - 8 * + - COUNT( * ) * COUNT( * ) AS col0
----
8

skipif mysql # not compatible
query I rowsort label-4520
SELECT - 8 * + - COUNT ( * ) * COUNT ( * ) AS col0
----
8

onlyif mysql # DIV for integer division: 
query II rowsort label-4521
SELECT DISTINCT - ( + 83 ) AS col1, 72 * + ( - - 63 ) * COALESCE ( 71, + 73 DIV - 0 + 8 ) col0
----
-83
322056

skipif mysql # not compatible
query II rowsort label-4521
SELECT DISTINCT - ( + 83 ) AS col1, 72 * + ( - - 63 ) * COALESCE ( 71, + 73 / - 0 + 8 ) col0
----
-83
322056

onlyif mysql # aggregate syntax: 
query I rowsort label-4522
SELECT - 65 * ( + SUM( ALL 98 ) ) AS col1
----
-6370

skipif mysql # not compatible
query I rowsort label-4522
SELECT - 65 * ( + SUM ( ALL 98 ) ) AS col1
----
-6370

onlyif mysql # DIV for integer division: 
query I rowsort label-4523
SELECT - 74 DIV NULLIF ( + 81, 95 )
----
0

skipif mysql # not compatible
query I rowsort label-4523
SELECT - 74 / NULLIF ( + 81, 95 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4524
SELECT ALL - COUNT( * ) + 47 * MAX( + + 11 ) + + ( - 61 )
----
455

skipif mysql # not compatible
query I rowsort label-4524
SELECT ALL - COUNT ( * ) + 47 * MAX ( + + 11 ) + + ( - 61 )
----
455

query I rowsort
SELECT ALL 52 + 48
----
100

query I rowsort
SELECT ALL 11 + - 91
----
-80

query I rowsort
SELECT ALL 22 * + 92 * + NULLIF ( - - 17, 7 )
----
34408

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4528
SELECT 18 * + ( - + 27 ) * - COUNT( * ) * - + 67 + COUNT( + + CAST( 45 AS SIGNED ) )
----
-32561

skipif mysql # not compatible
query I rowsort label-4528
SELECT 18 * + ( - + 27 ) * - COUNT ( * ) * - + 67 + COUNT ( + + CAST ( 45 AS INTEGER ) )
----
-32561

query II rowsort
SELECT 92 col1, 80
----
92
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4530
SELECT DISTINCT 57 * - + CAST( NULL AS SIGNED ) * - 59
----
NULL

skipif mysql # not compatible
query I rowsort label-4530
SELECT DISTINCT 57 * - + CAST ( NULL AS INTEGER ) * - 59
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4531
SELECT ALL 16 + + 15 + - CASE COUNT( * ) WHEN - - 90 DIV + 60 THEN + 79 * + - 95 ELSE NULL END
----
7536

skipif mysql # not compatible
query I rowsort label-4531
SELECT ALL 16 + + 15 + - CASE COUNT ( * ) WHEN - - 90 / + 60 THEN + 79 * + - 95 ELSE NULL END
----
7536

onlyif mysql # aggregate syntax: 
query II rowsort label-4532
SELECT - 31 col0, COUNT( DISTINCT 78 ) AS col2
----
-31
1

skipif mysql # not compatible
query II rowsort label-4532
SELECT - 31 col0, COUNT ( DISTINCT 78 ) AS col2
----
-31
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4533
SELECT 56 DIV - 74 col1
----
0

skipif mysql # not compatible
query I rowsort label-4533
SELECT 56 / - 74 col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4534
SELECT ALL CAST( 10 AS SIGNED ) * + 52 + + + 87 AS col2
----
607

skipif mysql # not compatible
query I rowsort label-4534
SELECT ALL CAST ( 10 AS INTEGER ) * + 52 + + + 87 AS col2
----
607

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4535
SELECT CAST( - + 9 AS SIGNED ) * - 87 * - MAX( 29 )
----
-22707

skipif mysql # not compatible
query I rowsort label-4535
SELECT CAST ( - + 9 AS INTEGER ) * - 87 * - MAX ( 29 )
----
-22707

onlyif mysql # aggregate syntax: 
query I rowsort label-4536
SELECT DISTINCT + SUM( DISTINCT 99 ) + NULLIF ( - MIN( ALL + + 75 ), - - 82 )
----
24

skipif mysql # not compatible
query I rowsort label-4536
SELECT DISTINCT + SUM ( DISTINCT 99 ) + NULLIF ( - MIN ( ALL + + 75 ), - - 82 )
----
24

query II rowsort
SELECT 92, 71 AS col0
----
92
71

query II rowsort
SELECT - 96 AS col1, + ( 34 ) * + - 45
----
-96
-1530

query II rowsort
SELECT ALL 98 AS col2, 27
----
98
27

query I rowsort
SELECT 91 * 26
----
2366

query II rowsort
SELECT - 7 AS col2, + 76 AS col2
----
-7
76

query I rowsort
SELECT ALL - 56 * 52
----
-2912

onlyif mysql # aggregate syntax: 
query I rowsort label-4543
SELECT 81 - 65 - - 86 - - MAX( - 14 ) * - 96 AS col2
----
1446

skipif mysql # not compatible
query I rowsort label-4543
SELECT 81 - 65 - - 86 - - MAX ( - 14 ) * - 96 AS col2
----
1446

onlyif mysql # aggregate syntax: 
query I rowsort label-4544
SELECT - COUNT( DISTINCT 58 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4544
SELECT - COUNT ( DISTINCT 58 ) AS col1
----
-1

query II rowsort
SELECT ALL 64 col0, 56 AS col1
----
64
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4546
SELECT 90 - 17 * + SUM( DISTINCT + 12 ) * + - 61 AS col0
----
12534

skipif mysql # not compatible
query I rowsort label-4546
SELECT 90 - 17 * + SUM ( DISTINCT + 12 ) * + - 61 AS col0
----
12534

onlyif mysql # aggregate syntax: 
query I rowsort label-4547
SELECT ALL - - COUNT( ALL + 88 )
----
1

skipif mysql # not compatible
query I rowsort label-4547
SELECT ALL - - COUNT ( ALL + 88 )
----
1

query II rowsort
SELECT 40 AS col2, - 64
----
40
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4549
SELECT ALL - + COALESCE ( COALESCE ( + ( + 34 ), + 81, COUNT( ALL + 6 ) ), 50, + + CASE + ( - 61 ) WHEN + COUNT( ALL 35 ) * 61 + + 42 * - 85 * 70 * 5 + 66 * - 68 THEN - + CAST( - + 9 AS SIGNED ) WHEN 68 DIV - 77 THEN NULL ELSE NULL END DIV - - 69 ) AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-4549
SELECT ALL - + COALESCE ( COALESCE ( + ( + 34 ), + 81, COUNT ( ALL + 6 ) ), 50, + + CASE + ( - 61 ) WHEN + COUNT ( ALL 35 ) * 61 + + 42 * - 85 * 70 * 5 + 66 * - 68 THEN - + CAST ( - + 9 AS INTEGER ) WHEN 68 / - 77 THEN NULL ELSE NULL END / - - 69 ) AS col0
----
-34

query I rowsort
SELECT DISTINCT - + 75 * + 55
----
-4125

onlyif mysql # aggregate syntax: 
query I rowsort label-4551
SELECT - 47 * COUNT( * ) + + - 3
----
-50

skipif mysql # not compatible
query I rowsort label-4551
SELECT - 47 * COUNT ( * ) + + - 3
----
-50

query II rowsort
SELECT ALL - + 86 AS col0, - COALESCE ( - - 97, + 38 ) * + - 63 AS col2
----
-86
6111

onlyif mysql # aggregate syntax: 
query I rowsort label-4553
SELECT ALL - NULLIF ( MIN( ALL - 40 ), - 23 * - 81 )
----
40

skipif mysql # not compatible
query I rowsort label-4553
SELECT ALL - NULLIF ( MIN ( ALL - 40 ), - 23 * - 81 )
----
40

query I rowsort
SELECT 37 * 34 * 27
----
33966

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4555
SELECT ALL - 34 DIV - CAST( - ( - NULLIF ( + + ( 42 ), 90 ) ) AS SIGNED ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4555
SELECT ALL - 34 / - CAST ( - ( - NULLIF ( + + ( 42 ), 90 ) ) AS INTEGER ) AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4556
SELECT 27 DIV - + 35
----
0

skipif mysql # not compatible
query I rowsort label-4556
SELECT 27 / - + 35
----
0

query II rowsort
SELECT ALL + + 89 * + 45 + - 40, ( + 74 ) * 68 + + 5 AS col2
----
3965
5037

query I rowsort
SELECT DISTINCT - - 20 + - 86
----
-66

query II rowsort
SELECT ALL - + CASE + + 40 WHEN 91 / - 72 + - 83 THEN + ( + 34 ) * + 67 ELSE NULL END, - ( - 35 ) + + - 0 * + ( + 79 ) col0
----
NULL
35

query I rowsort
SELECT - COALESCE ( + 52, - 86 - - + 45 ) AS col0
----
-52

query I rowsort
SELECT DISTINCT 11 + - 89
----
-78

query I rowsort
SELECT ALL + 18 + - + 31
----
-13

query I rowsort
SELECT + + 67 * 39 + + 53 + + + 17
----
2683

query I rowsort
SELECT 34 * + 61
----
2074

onlyif mysql # aggregate syntax: 
query I rowsort label-4565
SELECT ( 75 ) * - COUNT( + 72 ) + - 82 AS col1
----
-157

skipif mysql # not compatible
query I rowsort label-4565
SELECT ( 75 ) * - COUNT ( + 72 ) + - 82 AS col1
----
-157

query I rowsort
SELECT ALL 16 + - - ( - 6 ) * - 84 + - - 99 + + 44 AS col0
----
663

query I rowsort
SELECT - 57 * + 43 AS col1
----
-2451

onlyif mysql # aggregate syntax: 
query I rowsort label-4568
SELECT DISTINCT CASE 54 WHEN + MIN( ALL + - 76 ) + - + 88 THEN 21 * + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4568
SELECT DISTINCT CASE 54 WHEN + MIN ( ALL + - 76 ) + - + 88 THEN 21 * + COUNT ( * ) END
----
NULL

query I rowsort
SELECT ALL - 87 + - 58
----
-145

query I rowsort
SELECT DISTINCT 4 * 43 AS col0
----
172

onlyif mysql # aggregate syntax: 
query I rowsort label-4571
SELECT ALL COUNT( DISTINCT + - 44 ) - - - 40
----
-39

skipif mysql # not compatible
query I rowsort label-4571
SELECT ALL COUNT ( DISTINCT + - 44 ) - - - 40
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-4572
SELECT + COUNT( * ) * + - 40 AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-4572
SELECT + COUNT ( * ) * + - 40 AS col0
----
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-4573
SELECT ALL 39 * 78 AS col2, - COUNT( * )
----
3042
-1

skipif mysql # not compatible
query II rowsort label-4573
SELECT ALL 39 * 78 AS col2, - COUNT ( * )
----
3042
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4574
SELECT - ( - - 24 ) + - COUNT( * ) AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-4574
SELECT - ( - - 24 ) + - COUNT ( * ) AS col1
----
-25

query I rowsort
SELECT + 21 + - + 4 AS col2
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-4576
SELECT + COUNT( 90 ) * + + 14
----
14

skipif mysql # not compatible
query I rowsort label-4576
SELECT + COUNT ( 90 ) * + + 14
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4577
SELECT - CASE NULLIF ( - ( - 60 ), - ( 5 ) + + + 34 ) WHEN - - MIN( ALL - 60 ) THEN - 4 + 92 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4577
SELECT - CASE NULLIF ( - ( - 60 ), - ( 5 ) + + + 34 ) WHEN - - MIN ( ALL - 60 ) THEN - 4 + 92 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL 3 * 58
----
174

query I rowsort
SELECT + 85 + 46
----
131

onlyif mysql # DIV for integer division: 
query I rowsort label-4580
SELECT + COALESCE ( + 51, + 93 * - + 88 - + - 78 ) DIV - - 55 * + - 34
----
0

skipif mysql # not compatible
query I rowsort label-4580
SELECT + COALESCE ( + 51, + 93 * - + 88 - + - 78 ) / - - 55 * + - 34
----
0

query I rowsort
SELECT DISTINCT 8 * - 72 AS col1
----
-576

onlyif mysql # aggregate syntax: 
query III rowsort label-4582
SELECT + - 9 + - 49 AS col0, 16 * 46 * - 1 AS col1, + NULLIF ( - 16, - SUM( + - 74 ) ) AS col1
----
-58
-736
-16

skipif mysql # not compatible
query III rowsort label-4582
SELECT + - 9 + - 49 AS col0, 16 * 46 * - 1 AS col1, + NULLIF ( - 16, - SUM ( + - 74 ) ) AS col1
----
-58
-736
-16

query I rowsort
SELECT + ( 26 ) + 17 col2
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4584
SELECT - - MAX( + + 58 ) * + - 34 / + NULLIF ( - NULLIF ( + CASE - 44 WHEN - 52 THEN NULL ELSE + 51 - - 66 * - ( + 89 ) + + ( + 57 ) END, - - 22 / ( - - 26 ) ), - 0 ) + + CAST( NULL AS SIGNED ) AS col2, 9
----
NULL
9

skipif mysql # not compatible
query II rowsort label-4584
SELECT - - MAX ( + + 58 ) * + - 34 / + NULLIF ( - NULLIF ( + CASE - 44 WHEN - 52 THEN NULL ELSE + 51 - - 66 * - ( + 89 ) + + ( + 57 ) END, - - 22 / ( - - 26 ) ), - 0 ) + + CAST ( NULL AS INTEGER ) AS col2, 9
----
NULL
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4585
SELECT + 84 * COUNT( * )
----
84

skipif mysql # not compatible
query I rowsort label-4585
SELECT + 84 * COUNT ( * )
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4586
SELECT DISTINCT - 6 * + 29 + + 70 + - COUNT( * ) AS col2
----
-105

skipif mysql # not compatible
query I rowsort label-4586
SELECT DISTINCT - 6 * + 29 + + 70 + - COUNT ( * ) AS col2
----
-105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4587
SELECT ALL + 71 * + CAST( NULL AS SIGNED ) - - 67 + MAX( + 94 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4587
SELECT ALL + 71 * + CAST ( NULL AS INTEGER ) - - 67 + MAX ( + 94 )
----
NULL

query I rowsort
SELECT - 81 + ( 70 )
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-4589
SELECT ALL - - 13 * + 85 + 70 + + COUNT( * ) AS col1
----
1176

skipif mysql # not compatible
query I rowsort label-4589
SELECT ALL - - 13 * + 85 + 70 + + COUNT ( * ) AS col1
----
1176

query I rowsort
SELECT + ( - - 66 ) AS col2
----
66

query II rowsort
SELECT ALL + 41 * - 23 + 46 + - 69 AS col0, 37
----
-966
37

onlyif mysql # aggregate syntax: 
query II rowsort label-4592
SELECT - + NULLIF ( - - MAX( DISTINCT + 56 ), ( - + 13 ) ) * 54 - COUNT( * ) + + ( - 5 ) AS col1, + COUNT( * ) + - 38 + + 58 * + 74
----
-3030
4255

skipif mysql # not compatible
query II rowsort label-4592
SELECT - + NULLIF ( - - MAX ( DISTINCT + 56 ), ( - + 13 ) ) * 54 - COUNT ( * ) + + ( - 5 ) AS col1, + COUNT ( * ) + - 38 + + 58 * + 74
----
-3030
4255

onlyif mysql # aggregate syntax: 
query I rowsort label-4593
SELECT ALL + 11 * NULLIF ( + 74, ( + NULLIF ( + ( - 41 ), 19 ) ) ) + 95 + - - MIN( DISTINCT + 60 ) * CASE + 23 WHEN 33 / - 35 * + + COALESCE ( 37, + 28 ) THEN NULL ELSE + 5 END * + + 32 + - - 32
----
10541

skipif mysql # not compatible
query I rowsort label-4593
SELECT ALL + 11 * NULLIF ( + 74, ( + NULLIF ( + ( - 41 ), 19 ) ) ) + 95 + - - MIN ( DISTINCT + 60 ) * CASE + 23 WHEN 33 / - 35 * + + COALESCE ( 37, + 28 ) THEN NULL ELSE + 5 END * + + 32 + - - 32
----
10541

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4594
SELECT + ( + COUNT( * ) ) DIV 1 - + 6 AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-4594
SELECT + ( + COUNT ( * ) ) / 1 - + 6 AS col0
----
-5

query I rowsort
SELECT - 83 * - - 95
----
-7885

query I rowsort
SELECT - NULLIF ( - + 78, - 53 )
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4597
SELECT ALL 34 * - + 43 + - SUM( ALL - + 26 ) AS col1
----
-1436

skipif mysql # not compatible
query I rowsort label-4597
SELECT ALL 34 * - + 43 + - SUM ( ALL - + 26 ) AS col1
----
-1436

onlyif mysql # aggregate syntax: 
query II rowsort label-4598
SELECT + COUNT( * ) AS col1, + MAX( ALL - 45 ) * - 59
----
1
2655

skipif mysql # not compatible
query II rowsort label-4598
SELECT + COUNT ( * ) AS col1, + MAX ( ALL - 45 ) * - 59
----
1
2655

query I rowsort
SELECT ALL + 27 * - - 57
----
1539

onlyif mysql # DIV for integer division: 
query I rowsort label-4600
SELECT DISTINCT + 55 DIV 92 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4600
SELECT DISTINCT + 55 / 92 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4601
SELECT ALL 71 * + CAST( NULL AS SIGNED ) - - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4601
SELECT ALL 71 * + CAST ( NULL AS INTEGER ) - - COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4602
SELECT DISTINCT + 10 * - - SUM( - 63 ) * + - COUNT( * ) AS col1
----
630

skipif mysql # not compatible
query I rowsort label-4602
SELECT DISTINCT + 10 * - - SUM ( - 63 ) * + - COUNT ( * ) AS col1
----
630

query I rowsort
SELECT DISTINCT 63 * - 63
----
-3969

query I rowsort
SELECT ALL 90 * 0 - - 2 AS col2
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-4605
SELECT ALL + ( + + COALESCE ( - 72, + 37 DIV 41 ) )
----
-72

skipif mysql # not compatible
query I rowsort label-4605
SELECT ALL + ( + + COALESCE ( - 72, + 37 / 41 ) )
----
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4606
SELECT - 98 + 0 + COUNT( * ) * - 61 DIV - 41
----
-97

skipif mysql # not compatible
query I rowsort label-4606
SELECT - 98 + 0 + COUNT ( * ) * - 61 / - 41
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4607
SELECT - COUNT( * ) * - 15 * + COUNT( * ) * - 6
----
-90

skipif mysql # not compatible
query I rowsort label-4607
SELECT - COUNT ( * ) * - 15 * + COUNT ( * ) * - 6
----
-90

query I rowsort
SELECT + 21 + 67 * + 39 AS col1
----
2634

query I rowsort
SELECT DISTINCT - 56 * - + 17
----
952

query II rowsort
SELECT - 95 col1, 93 * - 82 + - 66
----
-95
-7692

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4611
SELECT ALL CAST( + 3 AS SIGNED )
----
3

skipif mysql # not compatible
query I rowsort label-4611
SELECT ALL CAST ( + 3 AS INTEGER )
----
3

query I rowsort
SELECT - 44 + + 74
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4613
SELECT ALL CAST( + - 67 AS SIGNED )
----
-67

skipif mysql # not compatible
query I rowsort label-4613
SELECT ALL CAST ( + - 67 AS INTEGER )
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4614
SELECT ALL COALESCE ( 76, COALESCE ( + COUNT( * ), + CAST( 10 AS SIGNED ) ) * - + 59 / + + 40 * + + 96, 97 - + + NULLIF ( 70, ( - - NULLIF ( - - 46, - 68 ) ) ) ) * - + 74 * + MIN( - CAST( NULL AS SIGNED ) ) + + CAST( 89 AS SIGNED ) + 44 + - 41 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4614
SELECT ALL COALESCE ( 76, COALESCE ( + COUNT ( * ), + CAST ( 10 AS INTEGER ) ) * - + 59 / + + 40 * + + 96, 97 - + + NULLIF ( 70, ( - - NULLIF ( - - 46, - 68 ) ) ) ) * - + 74 * + MIN ( - CAST ( NULL AS INTEGER ) ) + + CAST ( 89 AS INTEGER ) + 44 + - 41 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4615
SELECT DISTINCT CAST( 33 AS SIGNED ) AS col0
----
33

skipif mysql # not compatible
query I rowsort label-4615
SELECT DISTINCT CAST ( 33 AS INTEGER ) AS col0
----
33

query I rowsort
SELECT - ( 47 ) AS col2
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4617
SELECT - CAST( NULL AS SIGNED ) * - CASE 6 * - 4 WHEN CASE 95 WHEN 31 * 85 THEN - COUNT( * ) + 63 WHEN - 95 * + 28 - 92 THEN NULL WHEN COALESCE ( + COUNT( * ), ( + 65 ) * - 8 + + ( 56 ) ) THEN NULL WHEN + 21 THEN NULL ELSE ( - 78 ) / 12 - 81 END THEN MAX( 12 ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4617
SELECT - CAST ( NULL AS INTEGER ) * - CASE 6 * - 4 WHEN CASE 95 WHEN 31 * 85 THEN - COUNT ( * ) + 63 WHEN - 95 * + 28 - 92 THEN NULL WHEN COALESCE ( + COUNT ( * ), ( + 65 ) * - 8 + + ( 56 ) ) THEN NULL WHEN + 21 THEN NULL ELSE ( - 78 ) / 12 - 81 END THEN MAX ( 12 ) ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT - 78 * 90 AS col0
----
-7020

query I rowsort
SELECT ALL 89 + + 70
----
159

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4620
SELECT + 95 - + COUNT( * ) DIV 16
----
95

skipif mysql # not compatible
query I rowsort label-4620
SELECT + 95 - + COUNT ( * ) / 16
----
95

query I rowsort
SELECT DISTINCT 7 * 8
----
56

query I rowsort
SELECT DISTINCT - 48 + + 30 AS col2
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-4623
SELECT ALL COUNT( DISTINCT - 58 )
----
1

skipif mysql # not compatible
query I rowsort label-4623
SELECT ALL COUNT ( DISTINCT - 58 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4624
SELECT ALL COUNT( * ) + + 95
----
96

skipif mysql # not compatible
query I rowsort label-4624
SELECT ALL COUNT ( * ) + + 95
----
96

query I rowsort
SELECT + 48 * + 18
----
864

query I rowsort
SELECT ALL 53 + + 78 AS col0
----
131

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4627
SELECT + COUNT( * ) DIV 59
----
0

skipif mysql # not compatible
query I rowsort label-4627
SELECT + COUNT ( * ) / 59
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4628
SELECT ALL 18 DIV COUNT( ( 88 ) ) + COUNT( * )
----
19

skipif mysql # not compatible
query I rowsort label-4628
SELECT ALL 18 / COUNT ( ( 88 ) ) + COUNT ( * )
----
19

query I rowsort
SELECT + 12 + + ( 45 ) AS col2
----
57

query I rowsort
SELECT + 37 * 71 - 30 * - ( ( 68 ) ) AS col0
----
4667

query I rowsort
SELECT + ( 60 ) AS col2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-4632
SELECT COUNT( * ) * 98 + 99 AS col0
----
197

skipif mysql # not compatible
query I rowsort label-4632
SELECT COUNT ( * ) * 98 + 99 AS col0
----
197

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4633
SELECT - 94 - + ( - CASE - ( - AVG ( 64 ) ) WHEN 10 * + 35 THEN + 26 + COALESCE ( - COUNT( * ), + 85 ) END + - CAST( + 92 AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4633
SELECT - 94 - + ( - CASE - ( - AVG ( 64 ) ) WHEN 10 * + 35 THEN + 26 + COALESCE ( - COUNT ( * ), + 85 ) END + - CAST ( + 92 AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4634
SELECT ALL 55 DIV - COUNT( ALL 87 ) + 32 AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-4634
SELECT ALL 55 / - COUNT ( ALL 87 ) + 32 AS col2
----
-23

query I rowsort
SELECT - 37 * + 19 + + 26
----
-677

query I rowsort
SELECT ALL 76 - - 86 * 6 AS col0
----
592

query I rowsort
SELECT + 74 * 10 + + 67 AS col0
----
807

query I rowsort
SELECT ALL 93 * + 60 AS col1
----
5580

query I rowsort
SELECT DISTINCT ( + 31 ) - - 38 * 43
----
1665

onlyif mysql # aggregate syntax: 
query I rowsort label-4640
SELECT ( COUNT( * ) ) + 16
----
17

skipif mysql # not compatible
query I rowsort label-4640
SELECT ( COUNT ( * ) ) + 16
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-4641
SELECT ALL 40 - 57 DIV + 77
----
40

skipif mysql # not compatible
query I rowsort label-4641
SELECT ALL 40 - 57 / + 77
----
40

query I rowsort
SELECT 75 * + 38 AS col1
----
2850

query I rowsort
SELECT ALL - 69 - 15 AS col2
----
-84

query I rowsort
SELECT DISTINCT - ( - 57 ) AS col0
----
57

query I rowsort
SELECT ALL 92 * 43
----
3956

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4646
SELECT + 36 * - CAST( NULL AS SIGNED ) + 49
----
NULL

skipif mysql # not compatible
query I rowsort label-4646
SELECT + 36 * - CAST ( NULL AS INTEGER ) + 49
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4647
SELECT CAST( 14 AS SIGNED ) * - CASE WHEN NOT 31 > NULL THEN ( 87 ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4647
SELECT CAST ( 14 AS INTEGER ) * - CASE WHEN NOT 31 > NULL THEN ( 87 ) ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4648
SELECT COUNT( * ) + 11
----
12

skipif mysql # not compatible
query I rowsort label-4648
SELECT COUNT ( * ) + 11
----
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4649
SELECT ALL + COUNT( * ) DIV + NULLIF ( + 43, 27 * + 40 )
----
0

skipif mysql # not compatible
query I rowsort label-4649
SELECT ALL + COUNT ( * ) / + NULLIF ( + 43, 27 * + 40 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4650
SELECT 84 DIV + ( 24 )
----
3

skipif mysql # not compatible
query I rowsort label-4650
SELECT 84 / + ( 24 )
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4651
SELECT COUNT( * ) DIV - CAST( 80 AS SIGNED ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4651
SELECT COUNT ( * ) / - CAST ( 80 AS INTEGER ) AS col1
----
0

query I rowsort
SELECT 90 + 2 * NULLIF ( 88 * - 31, 99 * + 18 + NULLIF ( + 75, - 25 ) ) AS col1
----
-5366

query I rowsort
SELECT DISTINCT - 79 * + 90 AS col2
----
-7110

onlyif mysql # DIV for integer division: 
query I rowsort label-4654
SELECT ALL - 6 DIV + 79
----
0

skipif mysql # not compatible
query I rowsort label-4654
SELECT ALL - 6 / + 79
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4655
SELECT 9 DIV 17
----
0

skipif mysql # not compatible
query I rowsort label-4655
SELECT 9 / 17
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4656
SELECT ALL - MIN( - 73 ) + - 14
----
59

skipif mysql # not compatible
query I rowsort label-4656
SELECT ALL - MIN ( - 73 ) + - 14
----
59

query I rowsort
SELECT ALL + 7 * 30 AS col0
----
210

query I rowsort
SELECT CASE WHEN NOT NULL <> NULL THEN 78 END
----
NULL

query I rowsort
SELECT 2 * 20 AS col2
----
40

query I rowsort
SELECT - 75 + 3 col0
----
-72

query I rowsort
SELECT + ( ( 16 ) ) AS col0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4662
SELECT ALL - + 43 + + COUNT( * ) AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-4662
SELECT ALL - + 43 + + COUNT ( * ) AS col2
----
-42

query I rowsort
SELECT - 89 + - 44 AS col2
----
-133

query I rowsort
SELECT ALL - + 26 + - 60
----
-86

query I rowsort
SELECT 81 + COALESCE ( - 69, - 51, - ( + 2 ) )
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4666
SELECT ALL COUNT( * ) + - 98 AS col0
----
-97

skipif mysql # not compatible
query I rowsort label-4666
SELECT ALL COUNT ( * ) + - 98 AS col0
----
-97

query I rowsort
SELECT ALL 55 + - 4 * + 23 AS col2
----
-37

query I rowsort
SELECT + 25 + 49 AS col0
----
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4669
SELECT 61 DIV - COUNT( * ) AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-4669
SELECT 61 / - COUNT ( * ) AS col2
----
-61

query I rowsort
SELECT + 38 + 35
----
73

query I rowsort
SELECT - + ( ( ( - 38 ) ) )
----
38

query I rowsort
SELECT 51 + + 20 AS col2
----
71

query I rowsort
SELECT ALL - 19 - 56 col0
----
-75

query I rowsort
SELECT - ( + ( - 1 ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4675
SELECT + COUNT( + 92 ) DIV 95 + - ( + CAST( 95 AS SIGNED ) )
----
-95

skipif mysql # not compatible
query I rowsort label-4675
SELECT + COUNT ( + 92 ) / 95 + - ( + CAST ( 95 AS INTEGER ) )
----
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-4676
SELECT 84 DIV 75 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4676
SELECT 84 / 75 AS col0
----
1

query I rowsort
SELECT - 74 * 86
----
-6364

onlyif mysql # aggregate syntax: 
query I rowsort label-4678
SELECT DISTINCT - NULLIF ( + 82, COUNT( * ) * + 43 + - 46 ) * COUNT( * )
----
-82

skipif mysql # not compatible
query I rowsort label-4678
SELECT DISTINCT - NULLIF ( + 82, COUNT ( * ) * + 43 + - 46 ) * COUNT ( * )
----
-82

query I rowsort
SELECT ALL + ( + 96 ) - 26 AS col2
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-4680
SELECT DISTINCT - + MAX( 42 ) AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-4680
SELECT DISTINCT - + MAX ( 42 ) AS col1
----
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-4681
SELECT ALL 46 DIV 96 * 97
----
0

skipif mysql # not compatible
query I rowsort label-4681
SELECT ALL 46 / 96 * 97
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4682
SELECT 75 * + + ( COUNT( * ) )
----
75

skipif mysql # not compatible
query I rowsort label-4682
SELECT 75 * + + ( COUNT ( * ) )
----
75

query I rowsort
SELECT ( - 62 ) * - ( 71 ) - + 93
----
4309

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4684
SELECT CAST( NULL AS SIGNED ) * 11 * 39 + COUNT( * ) * 7
----
NULL

skipif mysql # not compatible
query I rowsort label-4684
SELECT CAST ( NULL AS INTEGER ) * 11 * 39 + COUNT ( * ) * 7
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4685
SELECT CAST( NULL AS SIGNED ) * 81 * 12
----
NULL

skipif mysql # not compatible
query I rowsort label-4685
SELECT CAST ( NULL AS INTEGER ) * 81 * 12
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4686
SELECT DISTINCT - SUM( 93 )
----
-93

skipif mysql # not compatible
query I rowsort label-4686
SELECT DISTINCT - SUM ( 93 )
----
-93

query I rowsort
SELECT 90 * 37 AS col2
----
3330

onlyif mysql # aggregate syntax: 
query I rowsort label-4688
SELECT 29 * + + SUM( ALL 95 ) + 3
----
2758

skipif mysql # not compatible
query I rowsort label-4688
SELECT 29 * + + SUM ( ALL 95 ) + 3
----
2758

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4689
SELECT DISTINCT 38 + - - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4689
SELECT DISTINCT 38 + - - CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT 35 + - + 41
----
-6

query I rowsort
SELECT 38 - - 43 AS col1
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-4692
SELECT 71 DIV - 22 + 91 * 47 AS col0
----
4274

skipif mysql # not compatible
query I rowsort label-4692
SELECT 71 / - 22 + 91 * 47 AS col0
----
4274

onlyif mysql # aggregate syntax: 
query I rowsort label-4693
SELECT COUNT( DISTINCT - + 60 )
----
1

skipif mysql # not compatible
query I rowsort label-4693
SELECT COUNT ( DISTINCT - + 60 )
----
1

query I rowsort
SELECT - + 4 col1
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4695
SELECT ALL 43 + - COALESCE ( 34, ( - 80 ) ) + - COUNT( * ) * CAST( 18 * - AVG ( 57 ) AS SIGNED ) col1
----
1035

skipif mysql # not compatible
query I rowsort label-4695
SELECT ALL 43 + - COALESCE ( 34, ( - 80 ) ) + - COUNT ( * ) * CAST ( 18 * - AVG ( 57 ) AS INTEGER ) col1
----
1035

query I rowsort
SELECT DISTINCT + - 53 + 47
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4697
SELECT ALL - 84 + COUNT( ALL - 66 )
----
-83

skipif mysql # not compatible
query I rowsort label-4697
SELECT ALL - 84 + COUNT ( ALL - 66 )
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-4698
SELECT ALL + 26 * + 18 - + COUNT( * ) AS col0
----
467

skipif mysql # not compatible
query I rowsort label-4698
SELECT ALL + 26 * + 18 - + COUNT ( * ) AS col0
----
467

query I rowsort
SELECT 29 + 7 col1
----
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4700
SELECT ALL - 23 - - - 12 + COUNT( * ) DIV - 90
----
-35

skipif mysql # not compatible
query I rowsort label-4700
SELECT ALL - 23 - - - 12 + COUNT ( * ) / - 90
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-4701
SELECT MIN( DISTINCT + 19 )
----
19

skipif mysql # not compatible
query I rowsort label-4701
SELECT MIN ( DISTINCT + 19 )
----
19

query I rowsort
SELECT - 75 * + 44
----
-3300

query I rowsort
SELECT - 89 - - 77 AS col1
----
-12

query I rowsort
SELECT - + ( + 46 ) * - 40
----
1840

query I rowsort
SELECT ALL - - ( - 12 ) - - 48
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4706
SELECT - 16 + MIN( ALL 14 )
----
-2

skipif mysql # not compatible
query I rowsort label-4706
SELECT - 16 + MIN ( ALL 14 )
----
-2

query I rowsort
SELECT ALL + 8 - 25 - + 66 * 81 AS col0
----
-5363

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4708
SELECT DISTINCT MIN( DISTINCT + - 53 ) DIV + ( - ( 87 ) * 4 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4708
SELECT DISTINCT MIN ( DISTINCT + - 53 ) / + ( - ( 87 ) * 4 ) AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4709
SELECT - CAST( NULL AS SIGNED ) * - + 98 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4709
SELECT - CAST ( NULL AS INTEGER ) * - + 98 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4710
SELECT - 28 DIV + 67
----
0

skipif mysql # not compatible
query I rowsort label-4710
SELECT - 28 / + 67
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4711
SELECT - MIN( DISTINCT CAST( + + ( + 76 ) AS SIGNED ) ) + 9
----
-67

skipif mysql # not compatible
query I rowsort label-4711
SELECT - MIN ( DISTINCT CAST ( + + ( + 76 ) AS INTEGER ) ) + 9
----
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-4712
SELECT + 90 DIV + + 76 - - 43 + + 60
----
104

skipif mysql # not compatible
query I rowsort label-4712
SELECT + 90 / + + 76 - - 43 + + 60
----
104

query I rowsort
SELECT ALL + ( - 37 ) AS col1
----
-37

query I rowsort
SELECT NULLIF ( - 72, - 20 )
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-4715
SELECT + 98 / CASE 84 WHEN COUNT( - 57 ) / 39 THEN - ( COUNT( * ) ) END * - 84
----
NULL

skipif mysql # not compatible
query I rowsort label-4715
SELECT + 98 / CASE 84 WHEN COUNT ( - 57 ) / 39 THEN - ( COUNT ( * ) ) END * - 84
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4716
SELECT DISTINCT 4 * - COUNT( * ) col2
----
-4

skipif mysql # not compatible
query I rowsort label-4716
SELECT DISTINCT 4 * - COUNT ( * ) col2
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-4717
SELECT + 27 * - 96 * 86 + + COUNT( * ) AS col2
----
-222911

skipif mysql # not compatible
query I rowsort label-4717
SELECT + 27 * - 96 * 86 + + COUNT ( * ) AS col2
----
-222911

onlyif mysql # aggregate syntax: 
query I rowsort label-4718
SELECT CASE + 20 WHEN + COUNT( * ) * AVG ( 38 * 30 - + 65 ) THEN NULL WHEN - 5 - 18 THEN NULL ELSE 72 END
----
72

skipif mysql # not compatible
query I rowsort label-4718
SELECT CASE + 20 WHEN + COUNT ( * ) * AVG ( 38 * 30 - + 65 ) THEN NULL WHEN - 5 - 18 THEN NULL ELSE 72 END
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4719
SELECT ALL - 34 * + + 88 * + - 53 * - CASE 40 WHEN ( + 41 ) * ( SUM( CAST( NULL AS SIGNED ) ) * + 59 + + 33 / + ( + 73 ) ) THEN + COUNT( * ) * 27 WHEN + 76 + NULLIF ( 21, NULLIF ( ( 1 ), - 9 + COUNT( * ) ) ) THEN NULL ELSE NULL END + - 33 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4719
SELECT ALL - 34 * + + 88 * + - 53 * - CASE 40 WHEN ( + 41 ) * ( SUM ( CAST ( NULL AS INTEGER ) ) * + 59 + + 33 / + ( + 73 ) ) THEN + COUNT ( * ) * 27 WHEN + 76 + NULLIF ( 21, NULLIF ( ( 1 ), - 9 + COUNT ( * ) ) ) THEN NULL ELSE NULL END + - 33 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4720
SELECT COUNT( * ) DIV + 3 + + - 75 AS col0
----
-75

skipif mysql # not compatible
query I rowsort label-4720
SELECT COUNT ( * ) / + 3 + + - 75 AS col0
----
-75

query I rowsort
SELECT ALL - 6 * - COALESCE ( + 55, - 85 - - 0 )
----
330

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4722
SELECT DISTINCT + CAST( NULL AS SIGNED ), + 93 - + CAST( 6 AS SIGNED ) AS col0
----
NULL
87

skipif mysql # not compatible
query II rowsort label-4722
SELECT DISTINCT + CAST ( NULL AS INTEGER ), + 93 - + CAST ( 6 AS INTEGER ) AS col0
----
NULL
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4723
SELECT ALL 89 * COUNT( * ) + 48
----
137

skipif mysql # not compatible
query I rowsort label-4723
SELECT ALL 89 * COUNT ( * ) + 48
----
137

query I rowsort
SELECT ALL 58 * - + 31 + ( 11 )
----
-1787

onlyif mysql # aggregate syntax: 
query I rowsort label-4725
SELECT 34 * 62 + + COUNT( * )
----
2109

skipif mysql # not compatible
query I rowsort label-4725
SELECT 34 * 62 + + COUNT ( * )
----
2109

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4726
SELECT DISTINCT - 24 * - + MIN( + 2 ) DIV + 92 + + 24
----
24

skipif mysql # not compatible
query I rowsort label-4726
SELECT DISTINCT - 24 * - + MIN ( + 2 ) / + 92 + + 24
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-4727
SELECT + 8 * 39 DIV ( + 11 ) AS col1
----
28

skipif mysql # not compatible
query I rowsort label-4727
SELECT + 8 * 39 / ( + 11 ) AS col1
----
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4728
SELECT + 67 + - COALESCE ( - - 33, - 25 + 0 * COUNT( * ), + 78 * - MIN( DISTINCT 40 ) + 57 ) - - COUNT( - 3 ) DIV - 55
----
34

skipif mysql # not compatible
query I rowsort label-4728
SELECT + 67 + - COALESCE ( - - 33, - 25 + 0 * COUNT ( * ), + 78 * - MIN ( DISTINCT 40 ) + 57 ) - - COUNT ( - 3 ) / - 55
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-4729
SELECT MIN( + 17 )
----
17

skipif mysql # not compatible
query I rowsort label-4729
SELECT MIN ( + 17 )
----
17

query I rowsort
SELECT ALL + 25 * + COALESCE ( - 44, - 12 * + 8 ) + + 54
----
-1046

onlyif mysql # aggregate syntax: 
query I rowsort label-4731
SELECT - 67 * + 72 + + + ( - 37 ) + 28 * COUNT( * ) AS col1
----
-4833

skipif mysql # not compatible
query I rowsort label-4731
SELECT - 67 * + 72 + + + ( - 37 ) + 28 * COUNT ( * ) AS col1
----
-4833

onlyif mysql # aggregate syntax: 
query I rowsort label-4732
SELECT DISTINCT + 13 + - 64 * - 55 * + COUNT( * ) AS col2
----
3533

skipif mysql # not compatible
query I rowsort label-4732
SELECT DISTINCT + 13 + - 64 * - 55 * + COUNT ( * ) AS col2
----
3533

query I rowsort
SELECT ALL - - 88 * - 54 AS col2
----
-4752

query II rowsort
SELECT 76 col1, 9 AS col1
----
76
9

query I rowsort
SELECT DISTINCT - 86 - 30 + + 83 - + 37 AS col2
----
-70

onlyif mysql # aggregate syntax: 
query II rowsort label-4736
SELECT - COUNT( * ), 16 - - 55 + 82 AS col0
----
-1
153

skipif mysql # not compatible
query II rowsort label-4736
SELECT - COUNT ( * ), 16 - - 55 + 82 AS col0
----
-1
153

query I rowsort
SELECT + ( COALESCE ( ( 95 ), + 35 ) ) + 3 AS col2
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4738
SELECT - COUNT( * ) + - + ( 14 ) * + 35 col2
----
-491

skipif mysql # not compatible
query I rowsort label-4738
SELECT - COUNT ( * ) + - + ( 14 ) * + 35 col2
----
-491

onlyif mysql # aggregate syntax: 
query I rowsort label-4739
SELECT DISTINCT ( - 79 ) - NULLIF ( MIN( DISTINCT 93 ), 53 )
----
-172

skipif mysql # not compatible
query I rowsort label-4739
SELECT DISTINCT ( - 79 ) - NULLIF ( MIN ( DISTINCT 93 ), 53 )
----
-172

query II rowsort
SELECT ALL - 1 col0, + 22 AS col0
----
-1
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4741
SELECT + + 97 + - 95 * 98 * - ( + 55 * - ( CAST( + 37 AS SIGNED ) ) ) col1
----
-18945753

skipif mysql # not compatible
query I rowsort label-4741
SELECT + + 97 + - 95 * 98 * - ( + 55 * - ( CAST ( + 37 AS INTEGER ) ) ) col1
----
-18945753

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4742
SELECT + - ( + 58 ) + 70 * COALESCE ( - 77, 38 DIV CASE - COUNT( * ) WHEN CAST( NULL AS SIGNED ) THEN NULL WHEN 32 * + 77 + - 88 THEN 90 END )
----
-5448

skipif mysql # not compatible
query I rowsort label-4742
SELECT + - ( + 58 ) + 70 * COALESCE ( - 77, 38 / CASE - COUNT ( * ) WHEN CAST ( NULL AS INTEGER ) THEN NULL WHEN 32 * + 77 + - 88 THEN 90 END )
----
-5448

onlyif mysql # aggregate syntax: 
query I rowsort label-4743
SELECT - + 48 + - NULLIF ( + 25, + COUNT( DISTINCT 46 ) * - COUNT( * ) ) AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-4743
SELECT - + 48 + - NULLIF ( + 25, + COUNT ( DISTINCT 46 ) * - COUNT ( * ) ) AS col0
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-4744
SELECT - 9 * + COUNT( * ) + + 13 * 88 AS col2
----
1135

skipif mysql # not compatible
query I rowsort label-4744
SELECT - 9 * + COUNT ( * ) + + 13 * 88 AS col2
----
1135

query I rowsort
SELECT - - 73 * + 41 AS col2
----
2993

onlyif mysql # DIV for integer division: 
query I rowsort label-4746
SELECT ALL + 67 DIV - 70
----
0

skipif mysql # not compatible
query I rowsort label-4746
SELECT ALL + 67 / - 70
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4747
SELECT - + 98 * 43 * + ( - 42 ) * COUNT( * ) AS col1
----
176988

skipif mysql # not compatible
query I rowsort label-4747
SELECT - + 98 * 43 * + ( - 42 ) * COUNT ( * ) AS col1
----
176988

onlyif mysql # DIV for integer division: 
query I rowsort label-4748
SELECT - 36 + 10 DIV 30
----
-36

skipif mysql # not compatible
query I rowsort label-4748
SELECT - 36 + 10 / 30
----
-36

query I rowsort
SELECT ALL - 37 * - 7
----
259

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4750
SELECT + 16 * + CASE - 68 WHEN + 68 THEN NULL WHEN + CAST( + 80 AS SIGNED ) THEN NULL WHEN + 64 THEN SUM( 45 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4750
SELECT + 16 * + CASE - 68 WHEN + 68 THEN NULL WHEN + CAST ( + 80 AS INTEGER ) THEN NULL WHEN + 64 THEN SUM ( 45 ) END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4751
SELECT DISTINCT 74 DIV ( + 91 ) DIV - 19 + + 34
----
34

skipif mysql # not compatible
query I rowsort label-4751
SELECT DISTINCT 74 / ( + 91 ) / - 19 + + 34
----
34

onlyif mysql # DIV for integer division: 
query I rowsort label-4752
SELECT ALL 42 DIV - 32 + + 36 + + 70 AS col0
----
105

skipif mysql # not compatible
query I rowsort label-4752
SELECT ALL 42 / - 32 + + 36 + + 70 AS col0
----
105

onlyif mysql # DIV for integer division: 
query I rowsort label-4753
SELECT DISTINCT + 7 DIV - 35 * + NULLIF ( - 78, 74 - 30 ) DIV + 54 + 69
----
69

skipif mysql # not compatible
query I rowsort label-4753
SELECT DISTINCT + 7 / - 35 * + NULLIF ( - 78, 74 - 30 ) / + 54 + 69
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4754
SELECT DISTINCT NULLIF ( + - COUNT( * ), - 64 ) / - CAST( NULL AS SIGNED ) - 28 + - 32 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4754
SELECT DISTINCT NULLIF ( + - COUNT ( * ), - 64 ) / - CAST ( NULL AS INTEGER ) - 28 + - 32 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4755
SELECT ALL + MAX( DISTINCT - 69 ) AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-4755
SELECT ALL + MAX ( DISTINCT - 69 ) AS col2
----
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-4756
SELECT DISTINCT + 7 DIV 96 * 18 + - - 19 AS col2
----
19

skipif mysql # not compatible
query I rowsort label-4756
SELECT DISTINCT + 7 / 96 * 18 + - - 19 AS col2
----
19

query I rowsort
SELECT - 91 * 67
----
-6097

onlyif mysql # aggregate syntax: 
query I rowsort label-4758
SELECT + CASE ( - + 53 ) WHEN + + 31 * - 8 THEN 10 + 51 WHEN 86 THEN NULL WHEN COALESCE ( 67, - 84, COUNT( * ) * + 89 + AVG ( 63 ) * + 19 ) THEN + 26 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4758
SELECT + CASE ( - + 53 ) WHEN + + 31 * - 8 THEN 10 + 51 WHEN 86 THEN NULL WHEN COALESCE ( 67, - 84, COUNT ( * ) * + 89 + AVG ( 63 ) * + 19 ) THEN + 26 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4759
SELECT ALL - 97 * + - 27 * - - 25 + + 77 + 14 DIV 91
----
65552

skipif mysql # not compatible
query I rowsort label-4759
SELECT ALL - 97 * + - 27 * - - 25 + + 77 + 14 / 91
----
65552

query I rowsort
SELECT - 55 - 70 AS col0
----
-125

onlyif mysql # aggregate syntax: 
query I rowsort label-4761
SELECT - 31 - + COUNT( * )
----
-32

skipif mysql # not compatible
query I rowsort label-4761
SELECT - 31 - + COUNT ( * )
----
-32

query I rowsort
SELECT DISTINCT + ( + 58 ) * + 10 AS col0
----
580

onlyif mysql # aggregate syntax: 
query I rowsort label-4763
SELECT ALL + COUNT( ALL + ( - - 79 ) )
----
1

skipif mysql # not compatible
query I rowsort label-4763
SELECT ALL + COUNT ( ALL + ( - - 79 ) )
----
1

query I rowsort
SELECT + 68 * - + 4 AS col2
----
-272

query I rowsort
SELECT DISTINCT + NULLIF ( + 48, - 1 + 74 - 77 ) AS col2
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4766
SELECT 87 * + 21 + + 30 + - 23 * 37 + 11 DIV COUNT( * )
----
1017

skipif mysql # not compatible
query I rowsort label-4766
SELECT 87 * + 21 + + 30 + - 23 * 37 + 11 / COUNT ( * )
----
1017

query II rowsort
SELECT 26 - - 65, 16 AS col0
----
91
16

query I rowsort
SELECT DISTINCT CASE WHEN NOT ( ( 6 ) ) IS NULL THEN 19 WHEN NOT 83 IS NOT NULL THEN NULL ELSE NULL END AS col0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-4769
SELECT + NULLIF ( + 71, + COUNT( * ) ) AS col2
----
71

skipif mysql # not compatible
query I rowsort label-4769
SELECT + NULLIF ( + 71, + COUNT ( * ) ) AS col2
----
71

query I rowsort
SELECT ALL - 82 * + 4 + - 16 * + 48 col1
----
-1096

query I rowsort
SELECT ALL 54 * + 71 AS col2
----
3834

query I rowsort
SELECT DISTINCT - 49 * COALESCE ( + 38, 81 * 86, 13 ) AS col0
----
-1862

query I rowsort
SELECT DISTINCT - ( - 1 ) * - 5 AS col0
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4774
SELECT DISTINCT - CAST( + 28 AS SIGNED ) + + 16 * - + CAST( 86 AS SIGNED )
----
-1404

skipif mysql # not compatible
query I rowsort label-4774
SELECT DISTINCT - CAST ( + 28 AS INTEGER ) + + 16 * - + CAST ( 86 AS INTEGER )
----
-1404

query II rowsort
SELECT 72, + 13 AS col2
----
72
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4776
SELECT CASE + - 14 WHEN + 39 * 25 * + NULLIF ( 98, + 18 ) - 1 THEN NULL WHEN + ( 15 ) DIV - 30 + - 31 THEN NULL ELSE - 15 * NULLIF ( - 31, 24 ) + + 36 END DIV - COUNT( - 17 ) AS col0
----
-501

skipif mysql # not compatible
query I rowsort label-4776
SELECT CASE + - 14 WHEN + 39 * 25 * + NULLIF ( 98, + 18 ) - 1 THEN NULL WHEN + ( 15 ) / - 30 + - 31 THEN NULL ELSE - 15 * NULLIF ( - 31, 24 ) + + 36 END / - COUNT ( - 17 ) AS col0
----
-501

onlyif mysql # aggregate syntax: 
query I rowsort label-4777
SELECT 13 * - - 35 * + + 39 * + - MAX( DISTINCT - + 58 ) AS col0
----
1029210

skipif mysql # not compatible
query I rowsort label-4777
SELECT 13 * - - 35 * + + 39 * + - MAX ( DISTINCT - + 58 ) AS col0
----
1029210

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4778
SELECT ALL SUM( DISTINCT + CAST( NULL AS SIGNED ) ) + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4778
SELECT ALL SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL 34 + - 87
----
-53

query I rowsort
SELECT 94 + ( + + 12 ) * - 46
----
-458

query I rowsort
SELECT ALL + 52 * + 39
----
2028

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4782
SELECT CAST( NULL AS SIGNED ) + - + 31
----
NULL

skipif mysql # not compatible
query I rowsort label-4782
SELECT CAST ( NULL AS INTEGER ) + - + 31
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4783
SELECT ALL COUNT( * ) + 99
----
100

skipif mysql # not compatible
query I rowsort label-4783
SELECT ALL COUNT ( * ) + 99
----
100

query I rowsort
SELECT ALL - 79 + - 20
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4785
SELECT - CAST( NULL AS SIGNED ) / - - 54 / - - 10 * ( - 39 ) - 83
----
NULL

skipif mysql # not compatible
query I rowsort label-4785
SELECT - CAST ( NULL AS INTEGER ) / - - 54 / - - 10 * ( - 39 ) - 83
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4786
SELECT 52 * 0 * + 91 + + + CAST( NULL AS DECIMAL ) * - + 78 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4786
SELECT 52 * 0 * + 91 + + + CAST ( NULL AS REAL ) * - + 78 AS col2
----
NULL

query I rowsort
SELECT 38 + + + 0
----
38

query I rowsort
SELECT - 56 * + 53 + COALESCE ( - 38, 16 * + 99 )
----
-3006

onlyif mysql # aggregate syntax: 
query I rowsort label-4789
SELECT ALL + COUNT( * ) - - + COUNT( * ) * 72
----
73

skipif mysql # not compatible
query I rowsort label-4789
SELECT ALL + COUNT ( * ) - - + COUNT ( * ) * 72
----
73

query I rowsort
SELECT 28 + - 45
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-4791
SELECT ALL - CASE - 86 WHEN + - 40 + 83 THEN NULL ELSE - 88 DIV 53 END AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4791
SELECT ALL - CASE - 86 WHEN + - 40 + 83 THEN NULL ELSE - 88 / 53 END AS col1
----
1

query II rowsort
SELECT DISTINCT - 2, + 14 AS col2
----
-2
14

query I rowsort
SELECT 38 + + 31 AS col0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4794
SELECT ALL - 17 - - COUNT( * )
----
-16

skipif mysql # not compatible
query I rowsort label-4794
SELECT ALL - 17 - - COUNT ( * )
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4795
SELECT ALL - + 92 AS col0, CAST( + 96 AS SIGNED ) * 78 DIV - 69 * + COUNT( * )
----
-92
-108

skipif mysql # not compatible
query II rowsort label-4795
SELECT ALL - + 92 AS col0, CAST ( + 96 AS INTEGER ) * 78 / - 69 * + COUNT ( * )
----
-92
-108

query I rowsort
SELECT ALL + 38 - + 27 AS col0
----
11

query I rowsort
SELECT - 66 * 46 col2
----
-3036

onlyif mysql # aggregate syntax: 
query I rowsort label-4798
SELECT ALL - MAX( - 37 ) AS col2
----
37

skipif mysql # not compatible
query I rowsort label-4798
SELECT ALL - MAX ( - 37 ) AS col2
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-4799
SELECT MAX( ALL + 27 )
----
27

skipif mysql # not compatible
query I rowsort label-4799
SELECT MAX ( ALL + 27 )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-4800
SELECT ALL - + MAX( ALL 5 ) AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-4800
SELECT ALL - + MAX ( ALL 5 ) AS col2
----
-5

query I rowsort
SELECT + 33 * - 64 AS col2
----
-2112

query I rowsort
SELECT - 42 + - + 67 * - CASE - 89 WHEN - 10 THEN - 27 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4803
SELECT DISTINCT + COUNT( * ) * - 40 AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-4803
SELECT DISTINCT + COUNT ( * ) * - 40 AS col1
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4804
SELECT DISTINCT + - 62 * CAST( - - CASE + 63 WHEN 69 THEN NULL ELSE - 89 END AS SIGNED )
----
5518

skipif mysql # not compatible
query I rowsort label-4804
SELECT DISTINCT + - 62 * CAST ( - - CASE + 63 WHEN 69 THEN NULL ELSE - 89 END AS INTEGER )
----
5518

onlyif mysql # aggregate syntax: 
query I rowsort label-4805
SELECT ALL + COUNT( * ) * 33 - + 56 * 25 col0
----
-1367

skipif mysql # not compatible
query I rowsort label-4805
SELECT ALL + COUNT ( * ) * 33 - + 56 * 25 col0
----
-1367

query I rowsort
SELECT ALL - 42 * + 65 col2
----
-2730

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4807
SELECT - CASE CASE WHEN 60 IS NOT NULL THEN NULL WHEN + COUNT( * ) BETWEEN 45 / + 23 AND + 69 THEN + 17 END WHEN + 82 THEN CAST( 95 AS DECIMAL ) ELSE NULL END * + 8
----
NULL

skipif mysql # not compatible
query I rowsort label-4807
SELECT - CASE CASE WHEN 60 IS NOT NULL THEN NULL WHEN + COUNT ( * ) BETWEEN 45 / + 23 AND + 69 THEN + 17 END WHEN + 82 THEN CAST ( 95 AS REAL ) ELSE NULL END * + 8
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4808
SELECT ALL + 20 + - 42 + + 56 * MAX( - - 95 ) * 67
----
356418

skipif mysql # not compatible
query I rowsort label-4808
SELECT ALL + 20 + - 42 + + 56 * MAX ( - - 95 ) * 67
----
356418

query I rowsort
SELECT + 91 + + 86 AS col0
----
177

query II rowsort
SELECT ALL + 86 AS col2, + 39 AS col0
----
86
39

onlyif mysql # DIV for integer division: 
query I rowsort label-4811
SELECT 30 DIV 6 col2
----
5

skipif mysql # not compatible
query I rowsort label-4811
SELECT 30 / 6 col2
----
5

query I rowsort
SELECT + ( - 65 ) * - + 97
----
6305

query I rowsort
SELECT - 58 + - 21 AS col1
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-4814
SELECT + 32 + + MAX( DISTINCT 60 ) * + MAX( ALL + 5 ) * + ( - ( - 7 ) ) + - 95
----
2037

skipif mysql # not compatible
query I rowsort label-4814
SELECT + 32 + + MAX ( DISTINCT 60 ) * + MAX ( ALL + 5 ) * + ( - ( - 7 ) ) + - 95
----
2037

onlyif mysql # aggregate syntax: 
query I rowsort label-4815
SELECT 53 + 77 + ( + 27 ) * - + 28 + - SUM( ALL - 96 ) AS col1
----
-530

skipif mysql # not compatible
query I rowsort label-4815
SELECT 53 + 77 + ( + 27 ) * - + 28 + - SUM ( ALL - 96 ) AS col1
----
-530

onlyif mysql # DIV for integer division: 
query II rowsort label-4816
SELECT - 62 AS col2, 41 DIV 43 + ( 95 ) + - - 49
----
-62
144

skipif mysql # not compatible
query II rowsort label-4816
SELECT - 62 AS col2, 41 / 43 + ( 95 ) + - - 49
----
-62
144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4817
SELECT ALL MAX( CAST( - NULLIF ( 45, + 24 + - - 80 ) AS SIGNED ) )
----
-45

skipif mysql # not compatible
query I rowsort label-4817
SELECT ALL MAX ( CAST ( - NULLIF ( 45, + 24 + - - 80 ) AS INTEGER ) )
----
-45

query I rowsort
SELECT DISTINCT - 65 + - 82 AS col1
----
-147

onlyif mysql # aggregate syntax: 
query I rowsort label-4819
SELECT DISTINCT COUNT( 94 ) * - + 81 * + COUNT( * ) AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-4819
SELECT DISTINCT COUNT ( 94 ) * - + 81 * + COUNT ( * ) AS col1
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4820
SELECT ALL ( - CAST( + - MAX( ALL + 25 ) AS SIGNED ) ) + + - 54 - - - 1 * 68 AS col1
----
-97

skipif mysql # not compatible
query I rowsort label-4820
SELECT ALL ( - CAST ( + - MAX ( ALL + 25 ) AS INTEGER ) ) + + - 54 - - - 1 * 68 AS col1
----
-97

query I rowsort
SELECT ( 98 ) + - 56 AS col1
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-4822
SELECT ALL COALESCE ( - 68, - + 51 DIV + 21 ) * - 75
----
5100

skipif mysql # not compatible
query I rowsort label-4822
SELECT ALL COALESCE ( - 68, - + 51 / + 21 ) * - 75
----
5100

onlyif mysql # aggregate syntax: 
query II rowsort label-4823
SELECT ALL 30 AS col1, - SUM( 89 ) AS col0
----
30
-89

skipif mysql # not compatible
query II rowsort label-4823
SELECT ALL 30 AS col1, - SUM ( 89 ) AS col0
----
30
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4824
SELECT 29 + - - CAST( NULL AS SIGNED ) + + ( 6 ) * - 31 + - AVG ( ALL + 56 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4824
SELECT 29 + - - CAST ( NULL AS INTEGER ) + + ( 6 ) * - 31 + - AVG ( ALL + 56 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4825
SELECT CAST( NULL AS DECIMAL ) + + AVG ( ALL - - 42 ) * CASE + + 47 WHEN - + COUNT( * ) * + ( COUNT( * ) ) THEN NULL WHEN ( 45 ) THEN + 75 ELSE - ( - 3 ) END * + ( ( - 43 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4825
SELECT CAST ( NULL AS REAL ) + + AVG ( ALL - - 42 ) * CASE + + 47 WHEN - + COUNT ( * ) * + ( COUNT ( * ) ) THEN NULL WHEN ( 45 ) THEN + 75 ELSE - ( - 3 ) END * + ( ( - 43 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4826
SELECT ALL ( 54 ) - - 16 * MIN( + CASE + 0 WHEN 57 THEN NULL ELSE 31 END )
----
550

skipif mysql # not compatible
query I rowsort label-4826
SELECT ALL ( 54 ) - - 16 * MIN ( + CASE + 0 WHEN 57 THEN NULL ELSE 31 END )
----
550

query I rowsort
SELECT ( - 15 ) * - - 62
----
-930

onlyif mysql # aggregate syntax: 
query I rowsort label-4828
SELECT 44 * + - COUNT( + 54 ) AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-4828
SELECT 44 * + - COUNT ( + 54 ) AS col1
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-4829
SELECT CASE MIN( ALL 59 ) WHEN + COUNT( * ) THEN - + COUNT( * ) + 57 / + COUNT( * ) END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4829
SELECT CASE MIN ( ALL 59 ) WHEN + COUNT ( * ) THEN - + COUNT ( * ) + 57 / + COUNT ( * ) END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4830
SELECT + MAX( 10 ) AS col1
----
10

skipif mysql # not compatible
query I rowsort label-4830
SELECT + MAX ( 10 ) AS col1
----
10

query I rowsort
SELECT 34 * 20 AS col0
----
680

onlyif mysql # DIV for integer division: 
query I rowsort label-4832
SELECT DISTINCT 73 DIV - 85
----
0

skipif mysql # not compatible
query I rowsort label-4832
SELECT DISTINCT 73 / - 85
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-4833
SELECT - 2 DIV + 23 AS col0, - 32 AS col0
----
0
-32

skipif mysql # not compatible
query II rowsort label-4833
SELECT - 2 / + 23 AS col0, - 32 AS col0
----
0
-32

query I rowsort
SELECT ALL 8 * + 90
----
720

onlyif mysql # aggregate syntax: 
query I rowsort label-4835
SELECT + 14 * + COUNT( * ) * 35 AS col2
----
490

skipif mysql # not compatible
query I rowsort label-4835
SELECT + 14 * + COUNT ( * ) * 35 AS col2
----
490

query I rowsort
SELECT + + 76 * + - 80
----
-6080

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4837
SELECT - CAST( + + 4 AS SIGNED ) + + 10 + 8
----
14

skipif mysql # not compatible
query I rowsort label-4837
SELECT - CAST ( + + 4 AS INTEGER ) + + 10 + 8
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4838
SELECT DISTINCT + 65 * + MIN( ALL + + ( - 79 ) )
----
-5135

skipif mysql # not compatible
query I rowsort label-4838
SELECT DISTINCT + 65 * + MIN ( ALL + + ( - 79 ) )
----
-5135

query I rowsort
SELECT + - 40 col0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-4840
SELECT + COUNT( * ) - - COALESCE ( - + COUNT( * ), - 8 * - 95 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-4840
SELECT + COUNT ( * ) - - COALESCE ( - + COUNT ( * ), - 8 * - 95 ) col1
----
0

query I rowsort
SELECT - 40 * 54 - 82 AS col1
----
-2242

onlyif mysql # aggregate syntax: 
query I rowsort label-4842
SELECT DISTINCT - 4 * - - COUNT( + CASE - - 76 WHEN + 95 - - ( - 32 ) THEN 12 / + COALESCE ( + 20 * 14, + 55 - 5 ) ELSE NULL END )
----
0

skipif mysql # not compatible
query I rowsort label-4842
SELECT DISTINCT - 4 * - - COUNT ( + CASE - - 76 WHEN + 95 - - ( - 32 ) THEN 12 / + COALESCE ( + 20 * 14, + 55 - 5 ) ELSE NULL END )
----
0

query I rowsort
SELECT DISTINCT + ( - + 31 )
----
-31

query II rowsort
SELECT DISTINCT + - 32, + 47 AS col0
----
-32
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4845
SELECT + + 91 + + COUNT( DISTINCT 39 ) AS col0
----
92

skipif mysql # not compatible
query I rowsort label-4845
SELECT + + 91 + + COUNT ( DISTINCT 39 ) AS col0
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-4846
SELECT ALL + + COUNT( ALL - 87 )
----
1

skipif mysql # not compatible
query I rowsort label-4846
SELECT ALL + + COUNT ( ALL - 87 )
----
1

query II rowsort
SELECT - 85 AS col2, - 41
----
-85
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-4848
SELECT - - NULLIF ( 68, - 26 ) - - 9 + + + 8 + + 43 * NULLIF ( + 57, + COUNT( * ) ) AS col1
----
2536

skipif mysql # not compatible
query I rowsort label-4848
SELECT - - NULLIF ( 68, - 26 ) - - 9 + + + 8 + + 43 * NULLIF ( + 57, + COUNT ( * ) ) AS col1
----
2536

onlyif mysql # aggregate syntax: 
query I rowsort label-4849
SELECT - COUNT( * ) * + 86 - - + 23 + - COUNT( * ) * - CASE + COUNT( * ) WHEN - 35 * 9 THEN NULL ELSE + COUNT( * ) * 94 END
----
31

skipif mysql # not compatible
query I rowsort label-4849
SELECT - COUNT ( * ) * + 86 - - + 23 + - COUNT ( * ) * - CASE + COUNT ( * ) WHEN - 35 * 9 THEN NULL ELSE + COUNT ( * ) * 94 END
----
31

query I rowsort
SELECT ALL + - ( + - 68 ) + + ( + 39 ) * 96 + - 7
----
3805

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4851
SELECT - + CAST( - ( + + 34 ) AS SIGNED )
----
34

skipif mysql # not compatible
query I rowsort label-4851
SELECT - + CAST ( - ( + + 34 ) AS INTEGER )
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-4852
SELECT ALL - - COUNT( * ) * 89 + COUNT( * )
----
90

skipif mysql # not compatible
query I rowsort label-4852
SELECT ALL - - COUNT ( * ) * 89 + COUNT ( * )
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4853
SELECT - CASE + - 76 WHEN + 18 THEN CAST( NULL AS SIGNED ) / + 6 END / + + 52 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4853
SELECT - CASE + - 76 WHEN + 18 THEN CAST ( NULL AS INTEGER ) / + 6 END / + + 52 AS col1
----
NULL

query I rowsort
SELECT ALL - - 92 + + 56 + - - 5 col1
----
153

query I rowsort
SELECT DISTINCT 75 + - 97 AS col0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-4856
SELECT - 10 + - ( + - MIN( + 16 ) )
----
6

skipif mysql # not compatible
query I rowsort label-4856
SELECT - 10 + - ( + - MIN ( + 16 ) )
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-4857
SELECT - 16 DIV + 41
----
0

skipif mysql # not compatible
query I rowsort label-4857
SELECT - 16 / + 41
----
0

query I rowsort
SELECT - ( + 15 ) + + 97 + - - 48 AS col1
----
130

onlyif mysql # aggregate syntax: 
query II rowsort label-4859
SELECT + 92 * - 45, + COUNT( * ) AS col2
----
-4140
1

skipif mysql # not compatible
query II rowsort label-4859
SELECT + 92 * - 45, + COUNT ( * ) AS col2
----
-4140
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4860
SELECT - 62 + - - CAST( + - 77 AS SIGNED ) / - COUNT( * ) * + + CAST( NULL AS SIGNED ) / + - NULLIF ( - - 87, + 42 + 31 ) + SUM( + 62 ) * - 15
----
NULL

skipif mysql # not compatible
query I rowsort label-4860
SELECT - 62 + - - CAST ( + - 77 AS INTEGER ) / - COUNT ( * ) * + + CAST ( NULL AS INTEGER ) / + - NULLIF ( - - 87, + 42 + 31 ) + SUM ( + 62 ) * - 15
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4861
SELECT ALL - NULLIF ( 20, ( - CAST( + 98 AS SIGNED ) ) ) - - 37
----
17

skipif mysql # not compatible
query I rowsort label-4861
SELECT ALL - NULLIF ( 20, ( - CAST ( + 98 AS INTEGER ) ) ) - - 37
----
17

query I rowsort
SELECT - CASE + 85 WHEN - + 0 THEN COALESCE ( - + 20, - 85 * + CASE WHEN NOT NULL <= 27 THEN + 47 END + 34 - + 71 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4863
SELECT DISTINCT ( SUM( ALL - + 88 ) ) AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-4863
SELECT DISTINCT ( SUM ( ALL - + 88 ) ) AS col0
----
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4864
SELECT ALL - 17 - - CAST( NULL AS SIGNED ) + 42 + 63 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4864
SELECT ALL - 17 - - CAST ( NULL AS INTEGER ) + 42 + 63 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4865
SELECT + COALESCE ( + 78, - CASE - 93 WHEN + 25 THEN NULL ELSE + 70 + COUNT( * ) END * + 37 + - 27, CASE 9 WHEN COUNT( * ) * - 31 THEN + 70 + + CAST( 39 AS SIGNED ) * 46 WHEN 14 * - 12 THEN 99 WHEN - 79 / + ( 85 * CAST( NULL AS SIGNED ) ) THEN NULL END ) * + COUNT( * ) AS col1
----
78

skipif mysql # not compatible
query I rowsort label-4865
SELECT + COALESCE ( + 78, - CASE - 93 WHEN + 25 THEN NULL ELSE + 70 + COUNT ( * ) END * + 37 + - 27, CASE 9 WHEN COUNT ( * ) * - 31 THEN + 70 + + CAST ( 39 AS INTEGER ) * 46 WHEN 14 * - 12 THEN 99 WHEN - 79 / + ( 85 * CAST ( NULL AS INTEGER ) ) THEN NULL END ) * + COUNT ( * ) AS col1
----
78

query I rowsort
SELECT ALL + 44 * - COALESCE ( 90, + 51 * - 86 )
----
-3960

query I rowsort
SELECT + 91 * + - 60 - + - 52
----
-5408

onlyif mysql # aggregate syntax: 
query I rowsort label-4868
SELECT + MAX( - 61 )
----
-61

skipif mysql # not compatible
query I rowsort label-4868
SELECT + MAX ( - 61 )
----
-61

onlyif mysql # DIV for integer division: 
query I rowsort label-4869
SELECT - 73 + - CASE - 69 WHEN - 56 + + + 17 + + 91 THEN NULL WHEN + 20 THEN NULL WHEN + 74 THEN NULL ELSE + 48 + - 89 END DIV - 99 AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-4869
SELECT - 73 + - CASE - 69 WHEN - 56 + + + 17 + + 91 THEN NULL WHEN + 20 THEN NULL WHEN + 74 THEN NULL ELSE + 48 + - 89 END / - 99 AS col0
----
-73

query I rowsort
SELECT 67 * - - 11 + - ( + 45 ) AS col1
----
692

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4871
SELECT 56 * - 58 + + COUNT( DISTINCT 80 ) DIV - 70 col2
----
-3248

skipif mysql # not compatible
query I rowsort label-4871
SELECT 56 * - 58 + + COUNT ( DISTINCT 80 ) / - 70 col2
----
-3248

query I rowsort
SELECT ALL + + CASE 15 WHEN 63 * - 83 THEN NULL WHEN + 17 THEN - 10 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4873
SELECT DISTINCT + - 24 * 95 * + 78 + ( + - 78 ) + - NULLIF ( + CAST( NULL AS SIGNED ), - 99 + + 63 ) + 43 * - NULLIF ( COALESCE ( + MIN( DISTINCT 92 ), 61 * NULLIF ( - 54 * 61, - 29 / - 36 ) - - ( 85 ), CAST( NULL AS SIGNED ) ) * - 30, - 34 / 73 ) * 56
----
NULL

skipif mysql # not compatible
query I rowsort label-4873
SELECT DISTINCT + - 24 * 95 * + 78 + ( + - 78 ) + - NULLIF ( + CAST ( NULL AS INTEGER ), - 99 + + 63 ) + 43 * - NULLIF ( COALESCE ( + MIN ( DISTINCT 92 ), 61 * NULLIF ( - 54 * 61, - 29 / - 36 ) - - ( 85 ), CAST ( NULL AS INTEGER ) ) * - 30, - 34 / 73 ) * 56
----
NULL

query II rowsort
SELECT + ( - 18 ) AS col2, 36 col2
----
-18
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4875
SELECT + 42 + - COALESCE ( + - 40, - 41 ) + - 47 + - NULLIF ( + COALESCE ( + COUNT( * ), MIN( DISTINCT 7 ), + 31 ), CASE + 55 WHEN - 57 THEN NULL ELSE 54 / ( 67 * 38 ) END ) + - 81 * 49
----
-3935

skipif mysql # not compatible
query I rowsort label-4875
SELECT + 42 + - COALESCE ( + - 40, - 41 ) + - 47 + - NULLIF ( + COALESCE ( + COUNT ( * ), MIN ( DISTINCT 7 ), + 31 ), CASE + 55 WHEN - 57 THEN NULL ELSE 54 / ( 67 * 38 ) END ) + - 81 * 49
----
-3935

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4876
SELECT ALL - + CAST( + 90 AS SIGNED ) * + + 31 * 22 AS col0
----
-61380

skipif mysql # not compatible
query I rowsort label-4876
SELECT ALL - + CAST ( + 90 AS INTEGER ) * + + 31 * 22 AS col0
----
-61380

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4877
SELECT ALL - MAX( + 82 ) * + - 97 + + 28 + - + NULLIF ( + 98, - - MIN( 54 ) * + ( 52 * 12 ) ) * COALESCE ( 44 + 84, - 59 DIV 49, - 55 ) * + 80
----
-995538

skipif mysql # not compatible
query I rowsort label-4877
SELECT ALL - MAX ( + 82 ) * + - 97 + + 28 + - + NULLIF ( + 98, - - MIN ( 54 ) * + ( 52 * 12 ) ) * COALESCE ( 44 + 84, - 59 / 49, - 55 ) * + 80
----
-995538

query I rowsort
SELECT + - 7 * - 90 + + 69
----
699

query I rowsort
SELECT - 73 * - 65 AS col1
----
4745

onlyif mysql # DIV for integer division: 
query I rowsort label-4880
SELECT - 87 DIV ( 67 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4880
SELECT - 87 / ( 67 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4881
SELECT DISTINCT 40 * + 38 - 55 * - + ( 75 ) + 90 + + COUNT( * ) AS col2
----
5736

skipif mysql # not compatible
query I rowsort label-4881
SELECT DISTINCT 40 * + 38 - 55 * - + ( 75 ) + 90 + + COUNT ( * ) AS col2
----
5736

onlyif mysql # aggregate syntax: 
query I rowsort label-4882
SELECT ALL + 99 * - + CASE - 33 WHEN - NULLIF ( - + 19, + - COUNT( * ) ) THEN 46 * + 44 + 96 ELSE NULL END * 54
----
NULL

skipif mysql # not compatible
query I rowsort label-4882
SELECT ALL + 99 * - + CASE - 33 WHEN - NULLIF ( - + 19, + - COUNT ( * ) ) THEN 46 * + 44 + 96 ELSE NULL END * 54
----
NULL

query I rowsort
SELECT + ( - - 70 ) * 90 + - 28 AS col1
----
6272

onlyif mysql # aggregate syntax: 
query I rowsort label-4884
SELECT ALL CASE - COALESCE ( + ( + + 18 ), - ( - + ( - 24 ) ) ) WHEN - + 20 THEN NULL WHEN 80 + COUNT( * ) THEN NULL ELSE + 35 + 82 END
----
117

skipif mysql # not compatible
query I rowsort label-4884
SELECT ALL CASE - COALESCE ( + ( + + 18 ), - ( - + ( - 24 ) ) ) WHEN - + 20 THEN NULL WHEN 80 + COUNT ( * ) THEN NULL ELSE + 35 + 82 END
----
117

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4885
SELECT - CAST( + 11 AS SIGNED ) AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-4885
SELECT - CAST ( + 11 AS INTEGER ) AS col0
----
-11

query I rowsort
SELECT - 16 + + 38 - + + 2
----
20

query I rowsort
SELECT - 75 * + - 63 * - 95 AS col0
----
-448875

query I rowsort
SELECT - 69 + + - 21 AS col1
----
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-4889
SELECT COUNT( * ) AS col1, 71 * 76 AS col1
----
1
5396

skipif mysql # not compatible
query II rowsort label-4889
SELECT COUNT ( * ) AS col1, 71 * 76 AS col1
----
1
5396

query I rowsort
SELECT - 39 * - + 34 * + 2 AS col1
----
2652

query I rowsort
SELECT - 45 + 71 AS col0
----
26

query I rowsort
SELECT ALL 62 - + ( + ( ( + 14 ) ) ) + - - 33 * 46 * + 53
----
80502

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4893
SELECT ALL CAST( - 31 AS SIGNED ) AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-4893
SELECT ALL CAST ( - 31 AS INTEGER ) AS col2
----
-31

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4894
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - COALESCE ( - ( + + 27 ), - 67 * - CAST( NULL AS DECIMAL ), - + 16 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4894
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - COALESCE ( - ( + + 27 ), - 67 * - CAST ( NULL AS REAL ), - + 16 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4895
SELECT DISTINCT - ( COUNT( * ) ) * - - 82 * + 70 - - MAX( 7 ) + - 98 * + 30 * 78
----
-235053

skipif mysql # not compatible
query I rowsort label-4895
SELECT DISTINCT - ( COUNT ( * ) ) * - - 82 * + 70 - - MAX ( 7 ) + - 98 * + 30 * 78
----
-235053

onlyif mysql # DIV for integer division: 
query I rowsort label-4896
SELECT - 26 DIV + 76 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4896
SELECT - 26 / + 76 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4897
SELECT ALL + CAST( 19 AS SIGNED ) * + 70 AS col1
----
1330

skipif mysql # not compatible
query I rowsort label-4897
SELECT ALL + CAST ( 19 AS INTEGER ) * + 70 AS col1
----
1330

onlyif mysql # aggregate syntax: 
query II rowsort label-4898
SELECT 28 * + 32 * - COUNT( * ) AS col0, 26
----
-896
26

skipif mysql # not compatible
query II rowsort label-4898
SELECT 28 * + 32 * - COUNT ( * ) AS col0, 26
----
-896
26

query I rowsort
SELECT 63 + 83 col2
----
146

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4900
SELECT ALL 52 col1, - MIN( ALL - + 29 ) * - - 26 + - CAST( NULL AS SIGNED )
----
52
NULL

skipif mysql # not compatible
query II rowsort label-4900
SELECT ALL 52 col1, - MIN ( ALL - + 29 ) * - - 26 + - CAST ( NULL AS INTEGER )
----
52
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4901
SELECT 34 DIV - + 75 * 29 * - - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-4901
SELECT 34 / - + 75 * 29 * - - COUNT ( * )
----
0

query I rowsort
SELECT 73 + 87
----
160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4903
SELECT 79 * - ( - + CAST( + AVG ( + 51 ) AS SIGNED ) ) * - 3 * + 55 AS col2
----
-664785

skipif mysql # not compatible
query I rowsort label-4903
SELECT 79 * - ( - + CAST ( + AVG ( + 51 ) AS INTEGER ) ) * - 3 * + 55 AS col2
----
-664785

query I rowsort
SELECT DISTINCT - - 68 + - + 67 AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4905
SELECT DISTINCT COALESCE ( + 39, - 93 DIV - 25, 72 * - COUNT( * ) * + + 88 * 39 DIV + 97 ) + ( - 3 )
----
36

skipif mysql # not compatible
query I rowsort label-4905
SELECT DISTINCT COALESCE ( + 39, - 93 / - 25, 72 * - COUNT ( * ) * + + 88 * 39 / + 97 ) + ( - 3 )
----
36

query I rowsort
SELECT DISTINCT - - ( - - 6 ) AS col2
----
6

query I rowsort
SELECT + + ( - 33 )
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-4908
SELECT - COUNT( * ) * 54 + + + MIN( ALL + ( 71 ) ) + 57
----
74

skipif mysql # not compatible
query I rowsort label-4908
SELECT - COUNT ( * ) * 54 + + + MIN ( ALL + ( 71 ) ) + 57
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4909
SELECT 79 + CASE 22 WHEN - - CAST( - ( 10 ) AS SIGNED ) THEN + 52 * + 11 WHEN COUNT( * ) + COUNT( * ) * + CAST( NULL AS SIGNED ) THEN NULL WHEN CAST( 52 AS SIGNED ) THEN - 4 - - 59 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4909
SELECT 79 + CASE 22 WHEN - - CAST ( - ( 10 ) AS INTEGER ) THEN + 52 * + 11 WHEN COUNT ( * ) + COUNT ( * ) * + CAST ( NULL AS INTEGER ) THEN NULL WHEN CAST ( 52 AS INTEGER ) THEN - 4 - - 59 END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4910
SELECT DISTINCT - 22 + - - CAST( NULL AS SIGNED ) * 6 / - + 37 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4910
SELECT DISTINCT - 22 + - - CAST ( NULL AS INTEGER ) * 6 / - + 37 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4911
SELECT + 71 + - COUNT( DISTINCT 88 )
----
70

skipif mysql # not compatible
query I rowsort label-4911
SELECT + 71 + - COUNT ( DISTINCT 88 )
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4912
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + 68 - - 14 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4912
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + 68 - - 14 col1
----
NULL

query I rowsort
SELECT DISTINCT - 61 + + + 71 + + + 83 * - 30
----
-2480

query II rowsort
SELECT ALL - COALESCE ( + 96, - 24 ) col1, 22 AS col2
----
-96
22

onlyif mysql # aggregate syntax: 
query II rowsort label-4915
SELECT ALL - + 12, 60 + + 48 * MIN( + 16 ) AS col1
----
-12
828

skipif mysql # not compatible
query II rowsort label-4915
SELECT ALL - + 12, 60 + + 48 * MIN ( + 16 ) AS col1
----
-12
828

onlyif mysql # aggregate syntax: 
query II rowsort label-4916
SELECT DISTINCT - 79, - COUNT( * ) + - + 79 + + 19 AS col2
----
-79
-61

skipif mysql # not compatible
query II rowsort label-4916
SELECT DISTINCT - 79, - COUNT ( * ) + - + 79 + + 19 AS col2
----
-79
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-4917
SELECT ALL - + MIN( ALL - 82 ) AS col0
----
82

skipif mysql # not compatible
query I rowsort label-4917
SELECT ALL - + MIN ( ALL - 82 ) AS col0
----
82

query I rowsort
SELECT DISTINCT + 90 * + + 71 * 0 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4919
SELECT DISTINCT - 78 DIV + COUNT( * ) AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-4919
SELECT DISTINCT - 78 / + COUNT ( * ) AS col2
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4920
SELECT - 9 + + CAST( - 11 AS SIGNED ) + - - 94 * - ( + 42 )
----
-3968

skipif mysql # not compatible
query I rowsort label-4920
SELECT - 9 + + CAST ( - 11 AS INTEGER ) + - - 94 * - ( + 42 )
----
-3968

query I rowsort
SELECT - 78 * + - 6
----
468

query I rowsort
SELECT 9 - - 36
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-4923
SELECT NULLIF ( ( + + 1 ), + AVG ( - 20 ) ) DIV - - 12 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4923
SELECT NULLIF ( ( + + 1 ), + AVG ( - 20 ) ) / - - 12 AS col0
----
0

query I rowsort
SELECT ALL 21 * + - 47
----
-987

onlyif mysql # aggregate syntax: 
query I rowsort label-4925
SELECT DISTINCT 56 * 27 * + COUNT( DISTINCT - + 80 )
----
1512

skipif mysql # not compatible
query I rowsort label-4925
SELECT DISTINCT 56 * 27 * + COUNT ( DISTINCT - + 80 )
----
1512

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4926
SELECT CAST( NULL AS SIGNED ) + 12 + + - COALESCE ( + COALESCE ( + 40, COALESCE ( 86, 19 ), + 95 ), + 94 * 63 + ( 8 ) ) * 27 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4926
SELECT CAST ( NULL AS INTEGER ) + 12 + + - COALESCE ( + COALESCE ( + 40, COALESCE ( 86, 19 ), + 95 ), + 94 * 63 + ( 8 ) ) * 27 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4927
SELECT 73 * - 34 AS col1, 66 * CASE 67 WHEN COUNT( DISTINCT + - 50 ) THEN - + COUNT( DISTINCT - - 92 ) + + 86 END * - 3
----
-2482
NULL

skipif mysql # not compatible
query II rowsort label-4927
SELECT 73 * - 34 AS col1, 66 * CASE 67 WHEN COUNT ( DISTINCT + - 50 ) THEN - + COUNT ( DISTINCT - - 92 ) + + 86 END * - 3
----
-2482
NULL

query I rowsort
SELECT DISTINCT + 81 * 35 AS col2
----
2835

onlyif mysql # DIV for integer division: 
query II rowsort label-4929
SELECT ALL - 27 + 83 AS col0, NULLIF ( 43, + 45 ) DIV - + 50 + 65 + + 78
----
56
143

skipif mysql # not compatible
query II rowsort label-4929
SELECT ALL - 27 + 83 AS col0, NULLIF ( 43, + 45 ) / - + 50 + 65 + + 78
----
56
143

query I rowsort
SELECT 53 + 83 * + ( + 6 ) AS col1
----
551

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4931
SELECT DISTINCT NULLIF ( 16, - 4 * - CASE 33 WHEN - + COUNT( * ) THEN + - 97 + 9 + - 86 WHEN + AVG ( ALL 9 ) THEN 28 + 53 * - COUNT( * ) END ) DIV - 86 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4931
SELECT DISTINCT NULLIF ( 16, - 4 * - CASE 33 WHEN - + COUNT ( * ) THEN + - 97 + 9 + - 86 WHEN + AVG ( ALL 9 ) THEN 28 + 53 * - COUNT ( * ) END ) / - 86 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4932
SELECT ALL - + CASE - + 41 WHEN 1 THEN NULL WHEN + + ( - + CASE - 12 WHEN - + 55 THEN + 15 - 81 - COUNT( * ) * - 68 WHEN 69 THEN NULL END ) * 91 THEN + 38 ELSE ( 7 ) * 13 END + 4 * + COALESCE ( 68 DIV - 82, 11 + CAST( NULL AS SIGNED ) )
----
-91

skipif mysql # not compatible
query I rowsort label-4932
SELECT ALL - + CASE - + 41 WHEN 1 THEN NULL WHEN + + ( - + CASE - 12 WHEN - + 55 THEN + 15 - 81 - COUNT ( * ) * - 68 WHEN 69 THEN NULL END ) * 91 THEN + 38 ELSE ( 7 ) * 13 END + 4 * + COALESCE ( 68 / - 82, 11 + CAST ( NULL AS INTEGER ) )
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4933
SELECT ALL CAST( NULL AS SIGNED ) * + 51 + - + COUNT( - 65 ) + + + 88 * NULLIF ( + 21, 9 + SUM( 74 ) ) * 9 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4933
SELECT ALL CAST ( NULL AS INTEGER ) * + 51 + - + COUNT ( - 65 ) + + + 88 * NULLIF ( + 21, 9 + SUM ( 74 ) ) * 9 col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4934
SELECT 74 + + + CASE 4 WHEN + CAST( + 88 AS SIGNED ) - - SUM( ALL + - 96 ) THEN NULL WHEN COUNT( * ) THEN - MAX( ALL CASE 68 WHEN NULLIF ( + 89, 45 * + COALESCE ( + 71 * - 21, 55 * + 23, 19 * 18 ) ) + + 45 THEN 71 * 98 END ) / - ( COUNT( * ) * 61 ) ELSE NULL END + 74 * - 96 * - 21
----
NULL

skipif mysql # not compatible
query I rowsort label-4934
SELECT 74 + + + CASE 4 WHEN + CAST ( + 88 AS INTEGER ) - - SUM ( ALL + - 96 ) THEN NULL WHEN COUNT ( * ) THEN - MAX ( ALL CASE 68 WHEN NULLIF ( + 89, 45 * + COALESCE ( + 71 * - 21, 55 * + 23, 19 * 18 ) ) + + 45 THEN 71 * 98 END ) / - ( COUNT ( * ) * 61 ) ELSE NULL END + 74 * - 96 * - 21
----
NULL

query I rowsort
SELECT - 7 * + - 24 * + 4 + + + 36 * 50 + 50 * 80 + + 86 AS col1
----
6558

query I rowsort
SELECT + - 94 col1
----
-94

query I rowsort
SELECT ALL - + 15 - - 37
----
22

query I rowsort
SELECT + COALESCE ( + - 1, 23 + - 96 ) + + 60
----
59

query I rowsort
SELECT ALL - - ( - 48 ) AS col2
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-4940
SELECT DISTINCT + - 73 - - MAX( - 8 ) + 59 * - - 25 + + 64 * + - 5 * - 55
----
18994

skipif mysql # not compatible
query I rowsort label-4940
SELECT DISTINCT + - 73 - - MAX ( - 8 ) + 59 * - - 25 + + 64 * + - 5 * - 55
----
18994

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4941
SELECT - + 76 * + 71 + 11 + - MAX( + 18 ), MIN( - 51 ) DIV - + 11 + + 96 AS col2
----
-5403
100

skipif mysql # not compatible
query II rowsort label-4941
SELECT - + 76 * + 71 + 11 + - MAX ( + 18 ), MIN ( - 51 ) / - + 11 + + 96 AS col2
----
-5403
100

query I rowsort
SELECT ALL - 16 * 59
----
-944

query I rowsort
SELECT 3 * + 15
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4944
SELECT ALL - 83 AS col1, + 2 * - 77 * + 8 + CAST( NULL AS SIGNED ) * - 20 AS col2
----
-83
NULL

skipif mysql # not compatible
query II rowsort label-4944
SELECT ALL - 83 AS col1, + 2 * - 77 * + 8 + CAST ( NULL AS INTEGER ) * - 20 AS col2
----
-83
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4945
SELECT 19 + ( - COALESCE ( - + 46, + CAST( - 77 AS SIGNED ), 28 + 70 * + 88 * - + 68, - CAST( NULL AS SIGNED ) + + 86 ) )
----
65

skipif mysql # not compatible
query I rowsort label-4945
SELECT 19 + ( - COALESCE ( - + 46, + CAST ( - 77 AS INTEGER ), 28 + 70 * + 88 * - + 68, - CAST ( NULL AS INTEGER ) + + 86 ) )
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4946
SELECT ALL + 30 * + - COUNT( * ) col0
----
-30

skipif mysql # not compatible
query I rowsort label-4946
SELECT ALL + 30 * + - COUNT ( * ) col0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-4947
SELECT - 23 * + - 19 + - + 88 * - 48 + + COUNT( * ) * + + 53
----
4714

skipif mysql # not compatible
query I rowsort label-4947
SELECT - 23 * + - 19 + - + 88 * - 48 + + COUNT ( * ) * + + 53
----
4714

onlyif mysql # aggregate syntax: 
query II rowsort label-4948
SELECT DISTINCT 78 AS col0, 87 + - COUNT( * )
----
78
86

skipif mysql # not compatible
query II rowsort label-4948
SELECT DISTINCT 78 AS col0, 87 + - COUNT ( * )
----
78
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4949
SELECT + MAX( + + 85 ) DIV - 72 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4949
SELECT + MAX ( + + 85 ) / - 72 AS col0
----
-1

query I rowsort
SELECT + NULLIF ( 17, 76 + + ( + + 76 ) ) + 27 + 72 col2
----
116

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4951
SELECT ALL CAST( NULL AS DECIMAL ) / 88
----
NULL

skipif mysql # not compatible
query I rowsort label-4951
SELECT ALL CAST ( NULL AS REAL ) / 88
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4952
SELECT + 79 + COUNT( * ) * + 55 AS col2
----
134

skipif mysql # not compatible
query I rowsort label-4952
SELECT + 79 + COUNT ( * ) * + 55 AS col2
----
134

onlyif mysql # aggregate syntax: 
query I rowsort label-4953
SELECT + ( 0 ) + - + MAX( ALL - ( - + 41 ) ) + 93 * - 80
----
-7481

skipif mysql # not compatible
query I rowsort label-4953
SELECT + ( 0 ) + - + MAX ( ALL - ( - + 41 ) ) + 93 * - 80
----
-7481

onlyif mysql # aggregate syntax: 
query I rowsort label-4954
SELECT + MAX( - 4 ) * - + 57 + + MAX( ALL - + 87 ) + + - COUNT( * ) * - + COUNT( * ) AS col1
----
142

skipif mysql # not compatible
query I rowsort label-4954
SELECT + MAX ( - 4 ) * - + 57 + + MAX ( ALL - + 87 ) + + - COUNT ( * ) * - + COUNT ( * ) AS col1
----
142

onlyif mysql # aggregate syntax: 
query I rowsort label-4955
SELECT ALL 38 + + COUNT( * ) + - 50 AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-4955
SELECT ALL 38 + + COUNT ( * ) + - 50 AS col0
----
-11

query I rowsort
SELECT DISTINCT 96 + + 36
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-4957
SELECT DISTINCT CASE NULLIF ( - - 69, + ( - + 54 ) ) WHEN - 18 * - 62 * - 68 + + 6 * - - ( MAX( - ( 93 ) ) ) - - 26 THEN + 25 ELSE NULL END + + MAX( - COALESCE ( - ( 1 ), 99, 89 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4957
SELECT DISTINCT CASE NULLIF ( - - 69, + ( - + 54 ) ) WHEN - 18 * - 62 * - 68 + + 6 * - - ( MAX ( - ( 93 ) ) ) - - 26 THEN + 25 ELSE NULL END + + MAX ( - COALESCE ( - ( 1 ), 99, 89 ) )
----
NULL

query I rowsort
SELECT DISTINCT 69 + 94 + - + 58
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-4959
SELECT - + NULLIF ( - 10, - SUM( 95 ) * - - 9 + 28 ) AS col0
----
10

skipif mysql # not compatible
query I rowsort label-4959
SELECT - + NULLIF ( - 10, - SUM ( 95 ) * - - 9 + 28 ) AS col0
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4960
SELECT + CASE + CAST( NULL AS SIGNED ) WHEN + COUNT( DISTINCT - 66 ) + - COUNT( * ) THEN NULL ELSE + 96 END col0
----
96

skipif mysql # not compatible
query I rowsort label-4960
SELECT + CASE + CAST ( NULL AS INTEGER ) WHEN + COUNT ( DISTINCT - 66 ) + - COUNT ( * ) THEN NULL ELSE + 96 END col0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4961
SELECT - - 27 * + + COUNT( DISTINCT 11 ) AS col2
----
27

skipif mysql # not compatible
query I rowsort label-4961
SELECT - - 27 * + + COUNT ( DISTINCT 11 ) AS col2
----
27

query I rowsort
SELECT + 97 * + 87 AS col2
----
8439

onlyif mysql # aggregate syntax: 
query I rowsort label-4963
SELECT ALL + - SUM( DISTINCT - + 18 )
----
18

skipif mysql # not compatible
query I rowsort label-4963
SELECT ALL + - SUM ( DISTINCT - + 18 )
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4964
SELECT DISTINCT + CAST( 5 AS SIGNED ) AS col0
----
5

skipif mysql # not compatible
query I rowsort label-4964
SELECT DISTINCT + CAST ( 5 AS INTEGER ) AS col0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4965
SELECT DISTINCT - ( - 44 ) / + 23 + CASE - 38 WHEN - - 90 / - - NULLIF ( + + 22, - - MAX( 44 ) - - CASE 83 WHEN 33 THEN 11 ELSE + 49 * 66 END ) THEN - 11 + - 42 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4965
SELECT DISTINCT - ( - 44 ) / + 23 + CASE - 38 WHEN - - 90 / - - NULLIF ( + + 22, - - MAX ( 44 ) - - CASE 83 WHEN 33 THEN 11 ELSE + 49 * 66 END ) THEN - 11 + - 42 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4966
SELECT ALL + - 50 AS col2, 38 * MAX( + 57 ) col1
----
-50
2166

skipif mysql # not compatible
query II rowsort label-4966
SELECT ALL + - 50 AS col2, 38 * MAX ( + 57 ) col1
----
-50
2166

query I rowsort
SELECT ( - + 72 )
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4968
SELECT - CAST( NULL AS SIGNED ) AS col1, - COUNT( * ) + - COALESCE ( + ( COALESCE ( + 34, CAST( NULL AS SIGNED ), - 78 + + 34 + + 89 * 97, COUNT( * ) ) ), - ( 72 ) ) + 77 AS col1
----
NULL
42

skipif mysql # not compatible
query II rowsort label-4968
SELECT - CAST ( NULL AS INTEGER ) AS col1, - COUNT ( * ) + - COALESCE ( + ( COALESCE ( + 34, CAST ( NULL AS INTEGER ), - 78 + + 34 + + 89 * 97, COUNT ( * ) ) ), - ( 72 ) ) + 77 AS col1
----
NULL
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4969
SELECT COUNT( * ) * + 51 DIV + NULLIF ( + 40, + ( - - 20 ) + + 91 + - 38 - - - 84 * 66 + CAST( NULL AS SIGNED ) * 57 ) + + 67 + ( + 13 )
----
81

skipif mysql # not compatible
query I rowsort label-4969
SELECT COUNT ( * ) * + 51 / + NULLIF ( + 40, + ( - - 20 ) + + 91 + - 38 - - - 84 * 66 + CAST ( NULL AS INTEGER ) * 57 ) + + 67 + ( + 13 )
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4970
SELECT - - COUNT( * ) * - 43 * + - 84 * + ( + 80 ) + 77 * + - 38
----
286034

skipif mysql # not compatible
query I rowsort label-4970
SELECT - - COUNT ( * ) * - 43 * + - 84 * + ( + 80 ) + 77 * + - 38
----
286034

query II rowsort
SELECT ALL + + 16, 60 AS col2
----
16
60

onlyif mysql # DIV for integer division: 
query I rowsort label-4972
SELECT - 0 DIV - 63 * - 18 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4972
SELECT - 0 / - 63 * - 18 AS col1
----
0

query I rowsort
SELECT - 69 + - - CASE 89 WHEN - 9 THEN NULL WHEN - 36 * - CASE 14 WHEN - 77 * AVG ( + 88 ) THEN AVG ( + 81 ) END THEN 81 * 89 ELSE NULL END + + 10 * - 79
----
NULL

query I rowsort
SELECT ALL + - CASE 53 WHEN 81 THEN + NULLIF ( - 35, + 49 ) + + 71 + 16 WHEN - + 22 THEN 88 WHEN 60 THEN 58 ELSE - 7 END * + 25
----
175

query II rowsort
SELECT + 61, 2 AS col1
----
61
2

query I rowsort
SELECT - 16 - - 22
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4977
SELECT DISTINCT + COUNT( + 11 )
----
1

skipif mysql # not compatible
query I rowsort label-4977
SELECT DISTINCT + COUNT ( + 11 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4978
SELECT ALL + 64, 24 * COUNT( ALL - - 83 ) * + 77 AS col2
----
64
1848

skipif mysql # not compatible
query II rowsort label-4978
SELECT ALL + 64, 24 * COUNT ( ALL - - 83 ) * + 77 AS col2
----
64
1848

query I rowsort
SELECT ALL 4 * - + 43 AS col2
----
-172

query I rowsort
SELECT - 10 * + 76 * + 15 AS col1
----
-11400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4981
SELECT DISTINCT + CASE + CASE - - CAST( NULL AS SIGNED ) WHEN MAX( DISTINCT - 39 ) THEN NULL ELSE - + 19 + - 10 - 15 END WHEN - - CAST( NULL AS SIGNED ) + - CASE + 65 WHEN + COUNT( 41 ) THEN + 20 + ( + 22 - - 15 ) ELSE 57 END THEN NULL WHEN - 65 * 82 THEN 77 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4981
SELECT DISTINCT + CASE + CASE - - CAST ( NULL AS INTEGER ) WHEN MAX ( DISTINCT - 39 ) THEN NULL ELSE - + 19 + - 10 - 15 END WHEN - - CAST ( NULL AS INTEGER ) + - CASE + 65 WHEN + COUNT ( 41 ) THEN + 20 + ( + 22 - - 15 ) ELSE 57 END THEN NULL WHEN - 65 * 82 THEN 77 END
----
NULL

query I rowsort
SELECT NULLIF ( - 54, - 3 ) AS col0
----
-54

onlyif mysql # aggregate syntax: 
query II rowsort label-4983
SELECT + COUNT( * ) AS col0, 92
----
1
92

skipif mysql # not compatible
query II rowsort label-4983
SELECT + COUNT ( * ) AS col0, 92
----
1
92

onlyif mysql # aggregate syntax: 
query I rowsort label-4984
SELECT SUM( DISTINCT 79 ) AS col0
----
79

skipif mysql # not compatible
query I rowsort label-4984
SELECT SUM ( DISTINCT 79 ) AS col0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4985
SELECT ALL + ( + 94 ) * + COUNT( * ) AS col2
----
94

skipif mysql # not compatible
query I rowsort label-4985
SELECT ALL + ( + 94 ) * + COUNT ( * ) AS col2
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4986
SELECT MAX( DISTINCT + 13 ) AS col0
----
13

skipif mysql # not compatible
query I rowsort label-4986
SELECT MAX ( DISTINCT + 13 ) AS col0
----
13

query I rowsort
SELECT ALL + 99 * 26
----
2574

query II rowsort
SELECT - NULLIF ( + - 21, + 67 ) * - - 88 AS col1, - 27 col1
----
1848
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4989
SELECT DISTINCT + ( + - 39 ) + - 49 + + + NULLIF ( - 26, + - CAST( COUNT( * ) AS SIGNED ) + + 33 )
----
-114

skipif mysql # not compatible
query I rowsort label-4989
SELECT DISTINCT + ( + - 39 ) + - 49 + + + NULLIF ( - 26, + - CAST ( COUNT ( * ) AS INTEGER ) + + 33 )
----
-114

query I rowsort
SELECT ALL - 27 + - 33 - - 69 AS col1
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-4991
SELECT ALL 90 DIV 71
----
1

skipif mysql # not compatible
query I rowsort label-4991
SELECT ALL 90 / 71
----
1

query I rowsort
SELECT ALL - 64 + + NULLIF ( + 21, - 78 ) * - - 10 col0
----
146

query I rowsort
SELECT DISTINCT + 9 + - 62 AS col2
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-4994
SELECT - SUM( ALL 39 ) + - 47
----
-86

skipif mysql # not compatible
query I rowsort label-4994
SELECT - SUM ( ALL 39 ) + - 47
----
-86

query I rowsort
SELECT + - 31 - - 14
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-4996
SELECT ALL + 67 DIV 80 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4996
SELECT ALL + 67 / 80 AS col2
----
0

query I rowsort
SELECT - + 62 + 22 AS col2
----
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-4998
SELECT + - 87 + + 69 AS col2, - 37 * - COUNT( * ) AS col2
----
-18
37

skipif mysql # not compatible
query II rowsort label-4998
SELECT + - 87 + + 69 AS col2, - 37 * - COUNT ( * ) AS col2
----
-18
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4999
SELECT ALL CASE - COUNT( * ) WHEN - MAX( ALL + 77 ) + + - 48 THEN - - ( - CAST( + + 97 AS SIGNED ) ) END - + 79 - + - 93 * 15 + 49 / 53
----
NULL

skipif mysql # not compatible
query I rowsort label-4999
SELECT ALL CASE - COUNT ( * ) WHEN - MAX ( ALL + 77 ) + + - 48 THEN - - ( - CAST ( + + 97 AS INTEGER ) ) END - + 79 - + - 93 * 15 + 49 / 53
----
NULL

query I rowsort
SELECT + 68 + - 60
----
8

query I rowsort
SELECT + 81 + - 42
----
39

query II rowsort
SELECT ALL ( + + 61 ), 79 + 57 AS col0
----
61
136

query I rowsort
SELECT + + 4 * 9 * - 8 - - 63 * - 50 + - + 81
----
-3519

query I rowsort
SELECT + - 46 + 8 AS col1
----
-38

query I rowsort
SELECT DISTINCT 83 * + - 35
----
-2905

onlyif mysql # aggregate syntax: 
query II rowsort label-5006
SELECT + 88, SUM( ALL + + 99 ) + - ( 45 ) AS col0
----
88
54

skipif mysql # not compatible
query II rowsort label-5006
SELECT + 88, SUM ( ALL + + 99 ) + - ( 45 ) AS col0
----
88
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5007
SELECT - 39 DIV + - COUNT( * ) + + 41 DIV 95 AS col0
----
39

skipif mysql # not compatible
query I rowsort label-5007
SELECT - 39 / + - COUNT ( * ) + + 41 / 95 AS col0
----
39

query I rowsort
SELECT + 70 * 38 * + 93 * - + 51 * + 45 AS col1
----
-567737100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5009
SELECT ALL + + ( + NULLIF ( - CAST( - 65 AS SIGNED ), + 92 - - CAST( NULL AS SIGNED ) - + - 53 ) )
----
65

skipif mysql # not compatible
query I rowsort label-5009
SELECT ALL + + ( + NULLIF ( - CAST ( - 65 AS INTEGER ), + 92 - - CAST ( NULL AS INTEGER ) - + - 53 ) )
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-5010
SELECT DISTINCT + - CASE - 13 WHEN 7 * + - 92 * - 86 THEN - + COUNT( * ) * 82 * - 21 + - + 54 + + 0 * - - 6 * COUNT( ALL - 67 ) + - 26 ELSE MAX( ALL + 78 ) END col0
----
-78

skipif mysql # not compatible
query I rowsort label-5010
SELECT DISTINCT + - CASE - 13 WHEN 7 * + - 92 * - 86 THEN - + COUNT ( * ) * 82 * - 21 + - + 54 + + 0 * - - 6 * COUNT ( ALL - 67 ) + - 26 ELSE MAX ( ALL + 78 ) END col0
----
-78

query I rowsort
SELECT ALL + ( 33 ) AS col1
----
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5012
SELECT ALL - 57 + 80, 18 * + - COUNT( + 91 ) * + COUNT( * ) * + 39 + + 56 DIV 92 AS col1
----
23
-702

skipif mysql # not compatible
query II rowsort label-5012
SELECT ALL - 57 + 80, 18 * + - COUNT ( + 91 ) * + COUNT ( * ) * + 39 + + 56 / 92 AS col1
----
23
-702

query I rowsort
SELECT DISTINCT 33 * - 57 col0
----
-1881

query I rowsort
SELECT ALL ( + 1 ) + - 6 + ( 3 )
----
-2

query II rowsort
SELECT 54 - 94, 11 AS col1
----
-40
11

onlyif mysql # DIV for integer division: 
query II rowsort label-5016
SELECT 28 DIV - + 30 col2, 46
----
0
46

skipif mysql # not compatible
query II rowsort label-5016
SELECT 28 / - + 30 col2, 46
----
0
46

onlyif mysql # DIV for integer division: 
query I rowsort label-5017
SELECT 63 DIV + - 86 * - + 37
----
0

skipif mysql # not compatible
query I rowsort label-5017
SELECT 63 / + - 86 * - + 37
----
0

query I rowsort
SELECT 73 * - + 1
----
-73

query I rowsort
SELECT 44 + - 50 * + 79 * - 62
----
244944

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5020
SELECT + 77 * - - 99 + - COALESCE ( COUNT( ALL CAST( - COALESCE ( 13, + 38 + - 83 * 53 ) AS SIGNED ) ), - + ( + + 43 ) * 74, 47 )
----
7622

skipif mysql # not compatible
query I rowsort label-5020
SELECT + 77 * - - 99 + - COALESCE ( COUNT ( ALL CAST ( - COALESCE ( 13, + 38 + - 83 * 53 ) AS INTEGER ) ), - + ( + + 43 ) * 74, 47 )
----
7622

query I rowsort
SELECT 72 + - 73 * - 96
----
7080

query I rowsort
SELECT 59 * + 15 + + ( - 49 ) * + 16 * - - 87 AS col0
----
-67323

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5023
SELECT 88 + 31 + - + ( 43 ) + + 22 + + - 43 * 51 + - 46 + 40 DIV + 12, + COUNT( * ) AS col2
----
-2138
1

skipif mysql # not compatible
query II rowsort label-5023
SELECT 88 + 31 + - + ( 43 ) + + 22 + + - 43 * 51 + - 46 + 40 / + 12, + COUNT ( * ) AS col2
----
-2138
1

query I rowsort
SELECT DISTINCT - 50 * - 21 AS col1
----
1050

onlyif mysql # aggregate syntax: 
query II rowsort label-5025
SELECT - + MAX( DISTINCT + 47 ) AS col1, 17 + + - 5 * + ( - COUNT( * ) )
----
-47
22

skipif mysql # not compatible
query II rowsort label-5025
SELECT - + MAX ( DISTINCT + 47 ) AS col1, 17 + + - 5 * + ( - COUNT ( * ) )
----
-47
22

query I rowsort
SELECT - 13 + 61 + 67 AS col0
----
115

query I rowsort
SELECT ALL - COALESCE ( 51, + + 64 ) * - 13 + + 22 * - 34 AS col0
----
-85

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5028
SELECT + 52 * 0 col2, - CAST( NULL AS SIGNED )
----
0
NULL

skipif mysql # not compatible
query II rowsort label-5028
SELECT + 52 * 0 col2, - CAST ( NULL AS INTEGER )
----
0
NULL

query II rowsort
SELECT ALL - 94 * + + 45 * + 12 AS col0, 51
----
-50760
51

query II rowsort
SELECT ALL ( - 48 ) AS col1, - 37 col1
----
-48
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5031
SELECT DISTINCT 28 DIV - 85 * + COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5031
SELECT DISTINCT 28 / - 85 * + COUNT ( * ) AS col2
----
0

query I rowsort
SELECT 28 - + 62
----
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-5033
SELECT + 55 DIV + - COALESCE ( + 58, 32 )
----
0

skipif mysql # not compatible
query I rowsort label-5033
SELECT + 55 / + - COALESCE ( + 58, 32 )
----
0

query I rowsort
SELECT + 68 * + 33 - - + 11
----
2255

onlyif mysql # aggregate syntax: 
query I rowsort label-5035
SELECT + COUNT( * ) * + 88
----
88

skipif mysql # not compatible
query I rowsort label-5035
SELECT + COUNT ( * ) * + 88
----
88

query I rowsort
SELECT 10 * 31