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
----
310

onlyif mysql # aggregate syntax: 
query I rowsort label-5037
SELECT ALL + 29 * - COUNT( * ) / - + CASE COALESCE ( 44, + 7, 88 ) WHEN + COUNT( * ) THEN NULLIF ( + + 33, + - 49 ) - + 96 WHEN - SUM( DISTINCT 65 ) * - 98 THEN 86 * 73 END + - COUNT( * ) * - 97
----
NULL

skipif mysql # not compatible
query I rowsort label-5037
SELECT ALL + 29 * - COUNT ( * ) / - + CASE COALESCE ( 44, + 7, 88 ) WHEN + COUNT ( * ) THEN NULLIF ( + + 33, + - 49 ) - + 96 WHEN - SUM ( DISTINCT 65 ) * - 98 THEN 86 * 73 END + - COUNT ( * ) * - 97
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5038
SELECT ALL - - 99 DIV 19
----
5

skipif mysql # not compatible
query I rowsort label-5038
SELECT ALL - - 99 / 19
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5039
SELECT DISTINCT + MAX( ALL - - 42 ) + MIN( 25 ) AS col2
----
67

skipif mysql # not compatible
query I rowsort label-5039
SELECT DISTINCT + MAX ( ALL - - 42 ) + MIN ( 25 ) AS col2
----
67

query I rowsort
SELECT ALL + 38 * + 18 + - 44 + + + 7 + + - 47 AS col2
----
600

query I rowsort
SELECT DISTINCT 74 + - 39
----
35

onlyif mysql # aggregate syntax: 
query II rowsort label-5042
SELECT ALL + 68 + - + MAX( ALL - 22 ) - - COUNT( * ) - - + 56, + COUNT( ( - 72 ) ) AS col0
----
147
1

skipif mysql # not compatible
query II rowsort label-5042
SELECT ALL + 68 + - + MAX ( ALL - 22 ) - - COUNT ( * ) - - + 56, + COUNT ( ( - 72 ) ) AS col0
----
147
1

query I rowsort
SELECT DISTINCT 22 + - 83
----
-61

query I rowsort
SELECT ALL 92 * - 37 AS col1
----
-3404

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5046
SELECT - 11 * 94 + - + COALESCE ( + 30, ( - - 60 ) * - 32 - + + COUNT( * ) + + 37 + + - 60 ) * + 24 * + 83 * - + 38 - 99
----
2269747

skipif mysql # not compatible
query I rowsort label-5046
SELECT - 11 * 94 + - + COALESCE ( + 30, ( - - 60 ) * - 32 - + + COUNT ( * ) + + 37 + + - 60 ) * + 24 * + 83 * - + 38 - 99
----
2269747

onlyif mysql # aggregate syntax: 
query I rowsort label-5047
SELECT ( + 34 ) - + 76 * + + COUNT( * ) * + 95
----
-7186

skipif mysql # not compatible
query I rowsort label-5047
SELECT ( + 34 ) - + 76 * + + COUNT ( * ) * + 95
----
-7186

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

query I rowsort
SELECT ( 89 ) + + - 33 + + 51 AS col1
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-5050
SELECT DISTINCT ( COUNT( + + 43 ) ) + + - 96
----
-95

skipif mysql # not compatible
query I rowsort label-5050
SELECT DISTINCT ( COUNT ( + + 43 ) ) + + - 96
----
-95

query I rowsort
SELECT ALL 21 + 25 AS col0
----
46

query II rowsort
SELECT DISTINCT - 86 AS col1, + 14 + + 45 - 78
----
-86
-19

query I rowsort
SELECT ALL - 36 * - 0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5054
SELECT ALL 85 + - CASE + + 92 WHEN - + ( 24 ) * + + 47 THEN 32 + 90 WHEN - - COUNT( * ) - + 6 + + CAST( + 13 AS SIGNED ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5054
SELECT ALL 85 + - CASE + + 92 WHEN - + ( 24 ) * + + 47 THEN 32 + 90 WHEN - - COUNT ( * ) - + 6 + + CAST ( + 13 AS INTEGER ) THEN NULL END
----
NULL

query I rowsort
SELECT DISTINCT 44 * + + ( 88 )
----
3872

onlyif mysql # aggregate syntax: 
query I rowsort label-5056
SELECT COUNT( * ) * - 18 AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-5056
SELECT COUNT ( * ) * - 18 AS col1
----
-18

query I rowsort
SELECT ALL 79 * 96 AS col2
----
7584

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5058
SELECT 77, CASE CAST( + - COUNT( * ) AS SIGNED ) WHEN + ( + 91 ) THEN NULL ELSE + 25 END AS col1
----
77
25

skipif mysql # not compatible
query II rowsort label-5058
SELECT 77, CASE CAST ( + - COUNT ( * ) AS INTEGER ) WHEN + ( + 91 ) THEN NULL ELSE + 25 END AS col1
----
77
25

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

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

query I rowsort
SELECT ALL - 64 - + 30 AS col1
----
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5061
SELECT 7 * + MIN( COALESCE ( + 77, 31 ) ) * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5061
SELECT 7 * + MIN ( COALESCE ( + 77, 31 ) ) * CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5062
SELECT DISTINCT + + 19 DIV - 80 * 56 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5062
SELECT DISTINCT + + 19 / - 80 * 56 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5063
SELECT 63 * + COALESCE ( - 61, 95, + - 11 ) * 60 + + + 53 + - NULLIF ( + - COUNT( DISTINCT + - 14 ), + ( + CAST( + 72 AS SIGNED ) ) * MIN( 72 * - 21 ) )
----
-230526

skipif mysql # not compatible
query I rowsort label-5063
SELECT 63 * + COALESCE ( - 61, 95, + - 11 ) * 60 + + + 53 + - NULLIF ( + - COUNT ( DISTINCT + - 14 ), + ( + CAST ( + 72 AS INTEGER ) ) * MIN ( 72 * - 21 ) )
----
-230526

onlyif mysql # aggregate syntax: 
query I rowsort label-5064
SELECT 97 + - ( + COUNT( - 39 ) )
----
96

skipif mysql # not compatible
query I rowsort label-5064
SELECT 97 + - ( + COUNT ( - 39 ) )
----
96

query II rowsort
SELECT - - 56 AS col1, ( + 57 ) + ( ( + 88 ) ) + + 23 * 64
----
56
1617

query I rowsort
SELECT 43 + - - 31
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5067
SELECT - NULLIF ( 23, - COUNT( DISTINCT 70 ) ) + + CASE 41 WHEN - 51 THEN + CAST( COUNT( * ) AS SIGNED ) * + 75 + - + ( + 41 ) + + CASE 87 WHEN - CAST( NULL AS SIGNED ) THEN 3 WHEN - 11 * - 46 THEN NULL WHEN - 24 THEN NULL END + - COUNT( * ) * - 84 * + 21 WHEN - 87 THEN + 35 ELSE - 66 END
----
-89

skipif mysql # not compatible
query I rowsort label-5067
SELECT - NULLIF ( 23, - COUNT ( DISTINCT 70 ) ) + + CASE 41 WHEN - 51 THEN + CAST ( COUNT ( * ) AS INTEGER ) * + 75 + - + ( + 41 ) + + CASE 87 WHEN - CAST ( NULL AS INTEGER ) THEN 3 WHEN - 11 * - 46 THEN NULL WHEN - 24 THEN NULL END + - COUNT ( * ) * - 84 * + 21 WHEN - 87 THEN + 35 ELSE - 66 END
----
-89

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

query I rowsort
SELECT ALL - + 64 * + ( - 87 ) AS col2
----
5568

onlyif mysql # aggregate syntax: 
query I rowsort label-5070
SELECT DISTINCT + - 35 + + CASE 33 WHEN 85 THEN NULL WHEN + 11 - - + 87 THEN + 95 + 91 WHEN + 14 THEN NULL WHEN - - 50 THEN + - NULLIF ( + COUNT( * ), - 30 / - COALESCE ( - 44 / 59, + COALESCE ( + COALESCE ( + ( ( 61 ) ), 65, 35 ), + 74 ) ) ) + COUNT( * ) ELSE - ( 90 ) END AS col0
----
-125

skipif mysql # not compatible
query I rowsort label-5070
SELECT DISTINCT + - 35 + + CASE 33 WHEN 85 THEN NULL WHEN + 11 - - + 87 THEN + 95 + 91 WHEN + 14 THEN NULL WHEN - - 50 THEN + - NULLIF ( + COUNT ( * ), - 30 / - COALESCE ( - 44 / 59, + COALESCE ( + COALESCE ( + ( ( 61 ) ), 65, 35 ), + 74 ) ) ) + COUNT ( * ) ELSE - ( 90 ) END AS col0
----
-125

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5071
SELECT ALL - + SUM( ALL - 49 ) * + CAST( NULL AS SIGNED ) * + 45 + 41
----
NULL

skipif mysql # not compatible
query I rowsort label-5071
SELECT ALL - + SUM ( ALL - 49 ) * + CAST ( NULL AS INTEGER ) * + 45 + 41
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5072
SELECT - 89 DIV + - NULLIF ( - 1, - 74 ) + COUNT( * )
----
-88

skipif mysql # not compatible
query I rowsort label-5072
SELECT - 89 / + - NULLIF ( - 1, - 74 ) + COUNT ( * )
----
-88

query I rowsort
SELECT - 93 + + 16
----
-77

query I rowsort
SELECT ALL + 97 + + 82 * - + 65
----
-5233

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5075
SELECT 39 AS col2, - 2 + - 98 + - + 19 + - + MAX( DISTINCT - 83 ) DIV - + 69 + 69 AS col2
----
39
-51

skipif mysql # not compatible
query II rowsort label-5075
SELECT 39 AS col2, - 2 + - 98 + - + 19 + - + MAX ( DISTINCT - 83 ) / - + 69 + 69 AS col2
----
39
-51

query I rowsort
SELECT ALL - - ( - - 72 ) + 86 AS col0
----
158

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5077
SELECT - 46 * + CASE - + 91 WHEN - 10 - - 16 + + - CASE + 78 WHEN + CAST( NULL AS DECIMAL ) + + 32 THEN NULL WHEN + + ( + 31 ) * + 16 + - + 26 + 51 THEN + 90 END * + 68 THEN + COALESCE ( 22, CAST( 52 AS DECIMAL ) ) * 25 END / 18 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5077
SELECT - 46 * + CASE - + 91 WHEN - 10 - - 16 + + - CASE + 78 WHEN + CAST ( NULL AS REAL ) + + 32 THEN NULL WHEN + + ( + 31 ) * + 16 + - + 26 + 51 THEN + 90 END * + 68 THEN + COALESCE ( 22, CAST ( 52 AS REAL ) ) * 25 END / 18 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5078
SELECT - 33 DIV + ( 53 ) * COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5078
SELECT - 33 / + ( 53 ) * COUNT ( * ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5079
SELECT ALL 70 * 33 * - CAST( - - 75 AS SIGNED ) + + SUM( - + 8 )
----
-173258

skipif mysql # not compatible
query I rowsort label-5079
SELECT ALL 70 * 33 * - CAST ( - - 75 AS INTEGER ) + + SUM ( - + 8 )
----
-173258

query I rowsort
SELECT - 51 * + 91 AS col1
----
-4641

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5081
SELECT CASE - - COALESCE ( - 95, - 6 * - - 6 ) WHEN 84 * - MAX( + 64 ) / 58 THEN + NULLIF ( + + 21, + NULLIF ( - 43, - CASE WHEN NULL IS NOT NULL THEN + COUNT( * ) WHEN NOT ( NULL ) BETWEEN ( CAST( NULL AS SIGNED ) ) AND 60 + 72 THEN - 38 ELSE + COUNT( * ) / - 59 + 65 END ) + + ( + 13 ) * + 6 ) * + COALESCE ( - CAST( + ( + 72 ) AS SIGNED ), - 54, + 45 ) WHEN MAX( DISTINCT + 33 ) THEN NULL ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5081
SELECT CASE - - COALESCE ( - 95, - 6 * - - 6 ) WHEN 84 * - MAX ( + 64 ) / 58 THEN + NULLIF ( + + 21, + NULLIF ( - 43, - CASE WHEN NULL IS NOT NULL THEN + COUNT ( * ) WHEN NOT ( NULL ) BETWEEN ( CAST ( NULL AS INTEGER ) ) AND 60 + 72 THEN - 38 ELSE + COUNT ( * ) / - 59 + 65 END ) + + ( + 13 ) * + 6 ) * + COALESCE ( - CAST ( + ( + 72 ) AS INTEGER ), - 54, + 45 ) WHEN MAX ( DISTINCT + 33 ) THEN NULL ELSE NULL END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5082
SELECT 13 * + CASE - 14 WHEN - - COUNT( - 69 ) THEN + 46 ELSE 97 END + + 44
----
1305

skipif mysql # not compatible
query I rowsort label-5082
SELECT 13 * + CASE - 14 WHEN - - COUNT ( - 69 ) THEN + 46 ELSE 97 END + + 44
----
1305

query I rowsort
SELECT DISTINCT 80 * 4
----
320

query I rowsort
SELECT ALL 39 * - + 5 col0
----
-195

query I rowsort
SELECT 31 * - 35 + - 0 * + 59 * - 50 col2
----
-1085

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5086
SELECT DISTINCT + COUNT( * ) * + 43 * CASE + 2 WHEN - ( + COUNT( * ) ) * 85 * - 53 - - 33 THEN 38 WHEN + 2 * - 76 * + - CAST( NULL AS DECIMAL ) + - - 87 THEN + ( + 34 ) WHEN 77 THEN NULL ELSE - 0 END - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-5086
SELECT DISTINCT + COUNT ( * ) * + 43 * CASE + 2 WHEN - ( + COUNT ( * ) ) * 85 * - 53 - - 33 THEN 38 WHEN + 2 * - 76 * + - CAST ( NULL AS REAL ) + - - 87 THEN + ( + 34 ) WHEN 77 THEN NULL ELSE - 0 END - COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5087
SELECT ALL + 40 * COUNT( * ) DIV NULLIF ( + 70, + ( 74 ) + + 35 + + 2 )
----
0

skipif mysql # not compatible
query I rowsort label-5087
SELECT ALL + 40 * COUNT ( * ) / NULLIF ( + 70, + ( 74 ) + + 35 + + 2 )
----
0

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

skipif mysql # not compatible
query I rowsort label-5088
SELECT + SUM ( + - 77 )
----
-77

query I rowsort
SELECT ALL 3 * + + 36
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-5090
SELECT - COALESCE ( 90, - COUNT( * ), - 24 ) * - + MAX( + + 72 ) * + 86 - - 1 + ( + 89 ) * - - 9 + 39 * - ( - ( - 21 ) ) * 99 col1
----
477001

skipif mysql # not compatible
query I rowsort label-5090
SELECT - COALESCE ( 90, - COUNT ( * ), - 24 ) * - + MAX ( + + 72 ) * + 86 - - 1 + ( + 89 ) * - - 9 + 39 * - ( - ( - 21 ) ) * 99 col1
----
477001

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5091
SELECT + ( - - 45 ) * + 55 + CASE - ( - - 89 ) WHEN 96 - + COUNT( * ) THEN + 32 + + 53 + + + 95 + - 10 WHEN - COUNT( * ) THEN NULL END / - + 14 + - 55 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5091
SELECT + ( - - 45 ) * + 55 + CASE - ( - - 89 ) WHEN 96 - + COUNT ( * ) THEN + 32 + + 53 + + + 95 + - 10 WHEN - COUNT ( * ) THEN NULL END / - + 14 + - 55 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5092
SELECT + COALESCE ( - - 9, + + 20 * COUNT( * ) DIV 41, + NULLIF ( + ( - 57 ), - - COUNT( * ) * 83 + + 70 * - + ( 91 ) * - 85 * + ( - 31 ) ) * - 30 ) AS col2
----
9

skipif mysql # not compatible
query I rowsort label-5092
SELECT + COALESCE ( - - 9, + + 20 * COUNT ( * ) / 41, + NULLIF ( + ( - 57 ), - - COUNT ( * ) * 83 + + 70 * - + ( 91 ) * - 85 * + ( - 31 ) ) * - 30 ) AS col2
----
9

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5094
SELECT + 55 + COUNT( * ) AS col0
----
56

skipif mysql # not compatible
query I rowsort label-5094
SELECT + 55 + COUNT ( * ) AS col0
----
56

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5096
SELECT + COALESCE ( 11, + 98 DIV 38 + 71 ) + - COUNT( * ) * - 14 + + 69 AS col0
----
94

skipif mysql # not compatible
query I rowsort label-5096
SELECT + COALESCE ( 11, + 98 / 38 + 71 ) + - COUNT ( * ) * - 14 + + 69 AS col0
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-5097
SELECT DISTINCT NULLIF ( 64, 62 ) DIV - + 19
----
-3

skipif mysql # not compatible
query I rowsort label-5097
SELECT DISTINCT NULLIF ( 64, 62 ) / - + 19
----
-3

query I rowsort
SELECT DISTINCT CASE ( + - ( - 40 ) ) WHEN - + 16 + - ( 84 ) + + 37 * + + 25 THEN + 20 END
----
NULL

query I rowsort
SELECT ALL 31 * - 94
----
-2914

query I rowsort
SELECT + - 17 + + 24 + + + 36 * - 78 * + - 41
----
115135

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5101
SELECT NULLIF ( + + ( 79 ), - - 63 ) AS col0, - CAST( 1 AS SIGNED ) * + 65 + - - 34 * - + COUNT( * ) AS col0
----
79
-99

skipif mysql # not compatible
query II rowsort label-5101
SELECT NULLIF ( + + ( 79 ), - - 63 ) AS col0, - CAST ( 1 AS INTEGER ) * + 65 + - - 34 * - + COUNT ( * ) AS col0
----
79
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5102
SELECT DISTINCT COALESCE ( 92, ( + 35 ) * 35 * - COUNT( * ) + + COALESCE ( + MAX( + 36 ), + ( + 75 ) ) * + - 77 + + - 76, + 63 * 91 ) * MAX( 10 * ( - 91 ) )
----
-83720

skipif mysql # not compatible
query I rowsort label-5102
SELECT DISTINCT COALESCE ( 92, ( + 35 ) * 35 * - COUNT ( * ) + + COALESCE ( + MAX ( + 36 ), + ( + 75 ) ) * + - 77 + + - 76, + 63 * 91 ) * MAX ( 10 * ( - 91 ) )
----
-83720

query I rowsort
SELECT ALL + NULLIF ( + + 10, - 9 * - 23 ) * + 23 AS col2
----
230

query I rowsort
SELECT - - 67 + + - 49 AS col0
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5105
SELECT ALL - MAX( - 36 ) + - 77 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5105
SELECT ALL - MAX ( - 36 ) + - 77 + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 45 * + 36 * 62 + 22 AS col0
----
-100418

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5107
SELECT DISTINCT - 60 + + CAST( - 68 AS SIGNED ) * - 14
----
892

skipif mysql # not compatible
query I rowsort label-5107
SELECT DISTINCT - 60 + + CAST ( - 68 AS INTEGER ) * - 14
----
892

query I rowsort
SELECT ALL 33 + 83 AS col1
----
116

query I rowsort
SELECT ALL - 21 + - 93
----
-114

query I rowsort
SELECT NULLIF ( + 86, + 74 )
----
86

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

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

query I rowsort
SELECT + + 46 - - 73 + + 66
----
185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5113
SELECT ALL + CAST( - 13 AS SIGNED ) * - 37 + - 60 * + ( - 51 ) * + 10 + - 63
----
31018

skipif mysql # not compatible
query I rowsort label-5113
SELECT ALL + CAST ( - 13 AS INTEGER ) * - 37 + - 60 * + ( - 51 ) * + 10 + - 63
----
31018

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

query I rowsort
SELECT DISTINCT 74 - 71
----
3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5117
SELECT - COUNT( * ) + + 52 * + - 17 + - 39
----
-924

skipif mysql # not compatible
query I rowsort label-5117
SELECT - COUNT ( * ) + + 52 * + - 17 + - 39
----
-924

onlyif mysql # aggregate syntax: 
query I rowsort label-5118
SELECT DISTINCT + ( - COUNT( * ) ) * + 92 * - + 21
----
1932

skipif mysql # not compatible
query I rowsort label-5118
SELECT DISTINCT + ( - COUNT ( * ) ) * + 92 * - + 21
----
1932

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5119
SELECT COUNT( * ) * - AVG ( ALL - CAST( NULL AS DECIMAL ) ) * 20 + + 70
----
NULL

skipif mysql # not compatible
query I rowsort label-5119
SELECT COUNT ( * ) * - AVG ( ALL - CAST ( NULL AS REAL ) ) * 20 + + 70
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5120
SELECT CAST( NULL AS SIGNED ) AS col1, + COUNT( ALL NULLIF ( - + 37, 31 ) ) AS col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-5120
SELECT CAST ( NULL AS INTEGER ) AS col1, + COUNT ( ALL NULLIF ( - + 37, 31 ) ) AS col0
----
NULL
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5121
SELECT CAST( NULL AS SIGNED ) / + 58 * + 38 + + 69 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5121
SELECT CAST ( NULL AS INTEGER ) / + 58 * + 38 + + 69 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5122
SELECT + CAST( + 85 AS SIGNED ) - - 23 DIV 12 * + COUNT( ALL - 24 ) + - COUNT( * ) col1
----
85

skipif mysql # not compatible
query I rowsort label-5122
SELECT + CAST ( + 85 AS INTEGER ) - - 23 / 12 * + COUNT ( ALL - 24 ) + - COUNT ( * ) col1
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-5123
SELECT ALL + 9 DIV + + 16 * + 49 * - - 80 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5123
SELECT ALL + 9 / + + 16 * + 49 * - - 80 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5124
SELECT DISTINCT + SUM( ALL + CAST( NULL AS SIGNED ) ) * + - 52 * - - 5
----
NULL

skipif mysql # not compatible
query I rowsort label-5124
SELECT DISTINCT + SUM ( ALL + CAST ( NULL AS INTEGER ) ) * + - 52 * - - 5
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5125
SELECT DISTINCT + 19 DIV + NULLIF ( + ( - 50 ), - 23 - + + 24 )
----
0

skipif mysql # not compatible
query I rowsort label-5125
SELECT DISTINCT + 19 / + NULLIF ( + ( - 50 ), - 23 - + + 24 )
----
0

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5127
SELECT ALL COALESCE ( - 88, - + SUM( ALL + 31 ) + - 74 + - - 67, + + 15 ) * 35 AS col2, - 21 AS col2
----
-3080
-21

skipif mysql # not compatible
query II rowsort label-5127
SELECT ALL COALESCE ( - 88, - + SUM ( ALL + 31 ) + - 74 + - - 67, + + 15 ) * 35 AS col2, - 21 AS col2
----
-3080
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-5128
SELECT ALL - 1 DIV + + 19
----
0

skipif mysql # not compatible
query I rowsort label-5128
SELECT ALL - 1 / + + 19
----
0

query I rowsort
SELECT ALL + COALESCE ( 44, 53 + + 50 )
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5130
SELECT ALL - CASE 47 WHEN - + 97 / + 10 + - 48 + + - 65 THEN + 43 + - - CAST( - CASE 93 WHEN - 98 * - 64 - 37 + + - 15 THEN NULL WHEN + COUNT( * ) + 5 THEN 0 / 43 + + 18 WHEN + 15 THEN ( NULLIF ( 50, + 5 + 53 ) ) + MAX( + 31 + ( 94 ) ) ELSE NULL END AS SIGNED ) + 31 * 48 * + 28 END * + 5 + 29
----
NULL

skipif mysql # not compatible
query I rowsort label-5130
SELECT ALL - CASE 47 WHEN - + 97 / + 10 + - 48 + + - 65 THEN + 43 + - - CAST ( - CASE 93 WHEN - 98 * - 64 - 37 + + - 15 THEN NULL WHEN + COUNT ( * ) + 5 THEN 0 / 43 + + 18 WHEN + 15 THEN ( NULLIF ( 50, + 5 + 53 ) ) + MAX ( + 31 + ( 94 ) ) ELSE NULL END AS INTEGER ) + 31 * 48 * + 28 END * + 5 + 29
----
NULL

query I rowsort
SELECT + - 24 col1
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-5132
SELECT MIN( - 51 )
----
-51

skipif mysql # not compatible
query I rowsort label-5132
SELECT MIN ( - 51 )
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-5133
SELECT - 89 * 1 + MAX( DISTINCT - 97 ) - - + 46
----
-140

skipif mysql # not compatible
query I rowsort label-5133
SELECT - 89 * 1 + MAX ( DISTINCT - 97 ) - - + 46
----
-140

onlyif mysql # aggregate syntax: 
query I rowsort label-5134
SELECT ALL - - 65 * COUNT( * ) * + CASE + 95 WHEN 77 * + 43 - - 50 + 42 * - 91 - - 60 THEN - 88 * + 23 + + 20 + - COUNT( * ) * 98 + - 20 * CASE NULLIF ( + 1, 37 ) WHEN COUNT( 5 ) THEN + 60 END + 64 WHEN + CASE 22 WHEN 76 THEN NULL WHEN NULLIF ( - 3, 82 ) + 36 THEN NULL ELSE + 89 * + COUNT( * ) END - 24 THEN 92 END + + 70 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5134
SELECT ALL - - 65 * COUNT ( * ) * + CASE + 95 WHEN 77 * + 43 - - 50 + 42 * - 91 - - 60 THEN - 88 * + 23 + + 20 + - COUNT ( * ) * 98 + - 20 * CASE NULLIF ( + 1, 37 ) WHEN COUNT ( 5 ) THEN + 60 END + 64 WHEN + CASE 22 WHEN 76 THEN NULL WHEN NULLIF ( - 3, 82 ) + 36 THEN NULL ELSE + 89 * + COUNT ( * ) END - 24 THEN 92 END + + 70 AS col0
----
NULL

query I rowsort
SELECT + NULLIF ( 98, - 78 * - 66 ) - + + 16 + - 30 AS col2
----
52

onlyif mysql # aggregate syntax: 
query II rowsort label-5136
SELECT ALL + 50 + MAX( ALL + 69 ) AS col2, 30 - - - COUNT( * )
----
119
29

skipif mysql # not compatible
query II rowsort label-5136
SELECT ALL + 50 + MAX ( ALL + 69 ) AS col2, 30 - - - COUNT ( * )
----
119
29

query I rowsort
SELECT - - ( - - 40 )
----
40

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

query I rowsort
SELECT - 98 - 73
----
-171

query I rowsort
SELECT 21 + 94
----
115

onlyif mysql # aggregate syntax: 
query II rowsort label-5141
SELECT DISTINCT + COALESCE ( - 96, ( - CASE MAX( - + 45 ) WHEN + + COUNT( * ) + - 55 * + 59 THEN - - 30 END ) ), 43 col0
----
-96
43

skipif mysql # not compatible
query II rowsort label-5141
SELECT DISTINCT + COALESCE ( - 96, ( - CASE MAX ( - + 45 ) WHEN + + COUNT ( * ) + - 55 * + 59 THEN - - 30 END ) ), 43 col0
----
-96
43

query I rowsort
SELECT ALL - 13 - + + 12
----
-25

query I rowsort
SELECT 47 + 51
----
98

query I rowsort
SELECT ALL 33 * 94
----
3102

query II rowsort
SELECT ALL 61, 81 AS col2
----
61
81

onlyif mysql # DIV for integer division: 
query I rowsort label-5146
SELECT ( 54 ) + 35 DIV 84 * - - 41
----
54

skipif mysql # not compatible
query I rowsort label-5146
SELECT ( 54 ) + 35 / 84 * - - 41
----
54

query II rowsort
SELECT 66 + + 96 + + 18 * + 19 col0, + 30
----
504
30

query I rowsort
SELECT 72 * - - 61 AS col0
----
4392

query I rowsort
SELECT DISTINCT 21 - - - 3 - + 5 * - + ( + 39 ) AS col0
----
213

query I rowsort
SELECT ( + 25 ) + - - ( + 54 )
----
79

query II rowsort
SELECT ALL - 27 AS col1, 34
----
-27
34

query II rowsort
SELECT + 31 AS col1, 22 col2
----
31
22

query I rowsort
SELECT 1 + + 51 + - - 77
----
129

query I rowsort
SELECT ALL + 5 * - - 68 AS col2
----
340

query I rowsort
SELECT DISTINCT 61 * 12 AS col0
----
732

query I rowsort
SELECT 5 * + - 21 + - + 81 AS col2
----
-186

onlyif mysql # aggregate syntax: 
query II rowsort label-5157
SELECT DISTINCT - MIN( 9 ) AS col1, 99
----
-9
99

skipif mysql # not compatible
query II rowsort label-5157
SELECT DISTINCT - MIN ( 9 ) AS col1, 99
----
-9
99

query I rowsort
SELECT ALL - CASE - 40 WHEN 71 THEN - 0 + + 19 WHEN - + 97 THEN - - 1 + + 76 + 32 * - AVG ( ALL - - 95 ) ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT + 16 * - 27 + - 9
----
-441

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5160
SELECT + - CASE + CAST( NULL AS DECIMAL ) WHEN 22 THEN + - 62 WHEN - 85 THEN NULL ELSE 60 + COUNT( * ) END AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-5160
SELECT + - CASE + CAST ( NULL AS REAL ) WHEN 22 THEN + - 62 WHEN - 85 THEN NULL ELSE 60 + COUNT ( * ) END AS col2
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5161
SELECT - 49 * - 7 + - 5 * + 7 - + 19 + - 18 * - 22 + + 82 - 43 - 51 DIV - 93 + 69 * + CAST( - MIN( DISTINCT + CAST( + 34 AS SIGNED ) ) AS SIGNED ) * 20 + 3 * 37 DIV 7 + NULLIF ( 23, + 60 ) * 33
----
-45422

skipif mysql # not compatible
query I rowsort label-5161
SELECT - 49 * - 7 + - 5 * + 7 - + 19 + - 18 * - 22 + + 82 - 43 - 51 / - 93 + 69 * + CAST ( - MIN ( DISTINCT + CAST ( + 34 AS INTEGER ) ) AS INTEGER ) * 20 + 3 * 37 / 7 + NULLIF ( 23, + 60 ) * 33
----
-45422

onlyif mysql # aggregate syntax: 
query I rowsort label-5162
SELECT 92 + - COUNT( * )
----
91

skipif mysql # not compatible
query I rowsort label-5162
SELECT 92 + - COUNT ( * )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5163
SELECT DISTINCT - - 32 + + + 67 + 31 * - + MAX( ( - - 53 ) ) * + 56 * - + 90 * - - 83 - 93 + + 86 * - 8
----
687299078

skipif mysql # not compatible
query I rowsort label-5163
SELECT DISTINCT - - 32 + + + 67 + 31 * - + MAX ( ( - - 53 ) ) * + 56 * - + 90 * - - 83 - 93 + + 86 * - 8
----
687299078

query I rowsort
SELECT DISTINCT - 78 + + - 21 + + - 36 * 8 AS col2
----
-387

onlyif mysql # aggregate syntax: 
query I rowsort label-5165
SELECT ALL - 34 + - 63 - MIN( - 84 ) AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-5165
SELECT ALL - 34 + - 63 - MIN ( - 84 ) AS col1
----
-13

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

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

query I rowsort
SELECT ALL 72 * - 95 AS col0
----
-6840

onlyif mysql # aggregate syntax: 
query I rowsort label-5168
SELECT ALL - ( - SUM( - 76 ) ) col1
----
-76

skipif mysql # not compatible
query I rowsort label-5168
SELECT ALL - ( - SUM ( - 76 ) ) col1
----
-76

query I rowsort
SELECT ALL - 85 + - 90 + + 58 AS col1
----
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-5170
SELECT - SUM( 59 ) * - + 75 + + - ( + + NULLIF ( + NULLIF ( - ( - 64 ), - COUNT( - 26 ) / + - 58 + + 48 + - 59 + - COUNT( * ) * + 59 ), + 64 + NULLIF ( - AVG ( + 82 ), 85 * 33 ) ) ) col2
----
4361

skipif mysql # not compatible
query I rowsort label-5170
SELECT - SUM ( 59 ) * - + 75 + + - ( + + NULLIF ( + NULLIF ( - ( - 64 ), - COUNT ( - 26 ) / + - 58 + + 48 + - 59 + - COUNT ( * ) * + 59 ), + 64 + NULLIF ( - AVG ( + 82 ), 85 * 33 ) ) ) col2
----
4361

query II rowsort
SELECT 90 AS col0, 54 AS col2
----
90
54

query I rowsort
SELECT ALL + + 78 * + 75 * + 21
----
122850

query I rowsort
SELECT 97 * - - 60 col2
----
5820

onlyif mysql # aggregate syntax: 
query I rowsort label-5174
SELECT ALL + + MAX( - 82 ) * - + 15 AS col2
----
1230

skipif mysql # not compatible
query I rowsort label-5174
SELECT ALL + + MAX ( - 82 ) * - + 15 AS col2
----
1230

onlyif mysql # aggregate syntax: 
query I rowsort label-5175
SELECT 87 + + + 78 + - 70 + + COUNT( * ) AS col1
----
96

skipif mysql # not compatible
query I rowsort label-5175
SELECT 87 + + + 78 + - 70 + + COUNT ( * ) AS col1
----
96

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

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

query I rowsort
SELECT DISTINCT + ( 82 ) AS col0
----
82

query I rowsort
SELECT 20 * 85
----
1700

query I rowsort
SELECT + 4 * ( - - 64 ) + + 90 col1
----
346

query I rowsort
SELECT ALL NULLIF ( + + 20, 93 ) AS col2
----
20

query II rowsort
SELECT 70 AS col1, + 10 * 34
----
70
340

query I rowsort
SELECT ALL 16 * + 69 AS col0
----
1104

query I rowsort
SELECT ALL 62 * 20
----
1240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5184
SELECT 47 - - - 22 * COUNT( * ) - - + COALESCE ( + NULLIF ( - COUNT( * ), + - 99 + 51 * COUNT( * ) ), - COUNT( * ) + - CAST( NULL AS SIGNED ) + - 3, 75 * + + 22, 94 DIV + 25 ) AS col0
----
24

skipif mysql # not compatible
query I rowsort label-5184
SELECT 47 - - - 22 * COUNT ( * ) - - + COALESCE ( + NULLIF ( - COUNT ( * ), + - 99 + 51 * COUNT ( * ) ), - COUNT ( * ) + - CAST ( NULL AS INTEGER ) + - 3, 75 * + + 22, 94 / + 25 ) AS col0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-5185
SELECT 53 * + SUM( + - 86 )
----
-4558

skipif mysql # not compatible
query I rowsort label-5185
SELECT 53 * + SUM ( + - 86 )
----
-4558

query I rowsort
SELECT 66 * + 11 AS col1
----
726

query I rowsort
SELECT DISTINCT 61 * - 72 * - + 47
----
206424

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5188
SELECT COUNT( + 93 ) - + ( + COUNT( DISTINCT + 67 ) ) - - 27 DIV + + 85 + - 59 * + 7 * - COUNT( * ) * + 25 + 23 DIV + + COUNT( * ) - - 38 + - 46
----
10340

skipif mysql # not compatible
query I rowsort label-5188
SELECT COUNT ( + 93 ) - + ( + COUNT ( DISTINCT + 67 ) ) - - 27 / + + 85 + - 59 * + 7 * - COUNT ( * ) * + 25 + 23 / + + COUNT ( * ) - - 38 + - 46
----
10340

onlyif mysql # DIV for integer division: 
query I rowsort label-5189
SELECT ALL - 46 DIV NULLIF ( - 87, 99 )
----
0

skipif mysql # not compatible
query I rowsort label-5189
SELECT ALL - 46 / NULLIF ( - 87, 99 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5190
SELECT - ( - 28 ) DIV - 16 + - 43 + + - SUM( - 39 ) + 52 * - + 15, + MAX( - 14 ) * + + 33 + COALESCE ( - 93, - - ( + 86 ) * - 29 + - 51, 69 ) AS col0
----
-785
-555

skipif mysql # not compatible
query II rowsort label-5190
SELECT - ( - 28 ) / - 16 + - 43 + + - SUM ( - 39 ) + 52 * - + 15, + MAX ( - 14 ) * + + 33 + COALESCE ( - 93, - - ( + 86 ) * - 29 + - 51, 69 ) AS col0
----
-785
-555

query I rowsort
SELECT 20 * 7 - + ( 97 )
----
43

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

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

query I rowsort
SELECT ALL - 78 * 7 + + 27 + + 87
----
-432

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5194
SELECT DISTINCT + 64 * - - COUNT( * ) - + + MIN( 32 ) + - ( + CAST( NULL AS SIGNED ) ) + + 37 / - 66 * - COALESCE ( COUNT( * ), - + 60 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5194
SELECT DISTINCT + 64 * - - COUNT ( * ) - + + MIN ( 32 ) + - ( + CAST ( NULL AS INTEGER ) ) + + 37 / - 66 * - COALESCE ( COUNT ( * ), - + 60 ) AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5196
SELECT ALL + + MAX( + - 37 ) AS col2, - 35
----
-37
-35

skipif mysql # not compatible
query II rowsort label-5196
SELECT ALL + + MAX ( + - 37 ) AS col2, - 35
----
-37
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-5197
SELECT COALESCE ( + 82, + ( + COUNT( + 12 ) ), - + ( + NULLIF ( 51, - - 76 ) ) )
----
82

skipif mysql # not compatible
query I rowsort label-5197
SELECT COALESCE ( + 82, + ( + COUNT ( + 12 ) ), - + ( + NULLIF ( 51, - - 76 ) ) )
----
82

query I rowsort
SELECT ALL - 49 * - 86 * + + 6 + + ( - 98 ) + + ( + + 95 ) - - 7
----
25288

onlyif mysql # DIV for integer division: 
query I rowsort label-5199
SELECT + 83 + + 9 + + - 75 DIV - 55 + - 64 + 40 * + 78
----
3149

skipif mysql # not compatible
query I rowsort label-5199
SELECT + 83 + + 9 + + - 75 / - 55 + - 64 + 40 * + 78
----
3149

query I rowsort
SELECT - - 28 * 95 * - ( + 13 ) AS col1
----
-34580

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

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

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

skipif mysql # not compatible
query I rowsort label-5202
SELECT ALL - - COUNT ( * ) / + 27 * + + 4 + 53 / - ( - COUNT ( * ) )
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-5203
SELECT - COUNT( * ) * + + 93 - - 19 * - - 62 AS col0
----
1085

skipif mysql # not compatible
query I rowsort label-5203
SELECT - COUNT ( * ) * + + 93 - - 19 * - - 62 AS col0
----
1085

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5204
SELECT ALL - 29 / + NULLIF ( + + 24, + MIN( DISTINCT - 8 ) ) * 98 / CAST( NULL AS SIGNED ) + - 99
----
NULL

skipif mysql # not compatible
query I rowsort label-5204
SELECT ALL - 29 / + NULLIF ( + + 24, + MIN ( DISTINCT - 8 ) ) * 98 / CAST ( NULL AS INTEGER ) + - 99
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5205
SELECT - NULLIF ( + + 98, + 73 ) + + 59 + - MIN( 63 ) col2
----
-102

skipif mysql # not compatible
query I rowsort label-5205
SELECT - NULLIF ( + + 98, + 73 ) + + 59 + - MIN ( 63 ) col2
----
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-5206
SELECT ALL ( 13 ) * + COUNT( * ) + - 19 AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-5206
SELECT ALL ( 13 ) * + COUNT ( * ) + - 19 AS col2
----
-6

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5208
SELECT - CASE + 60 WHEN CASE - 27 WHEN + + 75 THEN - 88 WHEN + + 34 THEN - NULLIF ( - COUNT( * ), - 90 + 85 + + 26 ) / + 43 ELSE NULL END THEN + COUNT( * ) WHEN - - ( 0 ) * - 24 * - COALESCE ( - NULLIF ( - 96, 13 ), SUM( DISTINCT + 12 ) ) + + COUNT( * ) THEN 49 END * 7
----
NULL

skipif mysql # not compatible
query I rowsort label-5208
SELECT - CASE + 60 WHEN CASE - 27 WHEN + + 75 THEN - 88 WHEN + + 34 THEN - NULLIF ( - COUNT ( * ), - 90 + 85 + + 26 ) / + 43 ELSE NULL END THEN + COUNT ( * ) WHEN - - ( 0 ) * - 24 * - COALESCE ( - NULLIF ( - 96, 13 ), SUM ( DISTINCT + 12 ) ) + + COUNT ( * ) THEN 49 END * 7
----
NULL

query I rowsort
SELECT - 69 + + 66 col2
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5210
SELECT ALL - 23 * CAST( NULL AS SIGNED ) * 5 * - COALESCE ( - 6, + - COALESCE ( + 36, + ( - 59 ), - 19 * - CAST( NULL AS SIGNED ) + 59 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5210
SELECT ALL - 23 * CAST ( NULL AS INTEGER ) * 5 * - COALESCE ( - 6, + - COALESCE ( + 36, + ( - 59 ), - 19 * - CAST ( NULL AS INTEGER ) + 59 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5211
SELECT + 51 - + 65 - + 11 + - 46 * - COALESCE ( - 72, 75 - 70 ) * + MIN( ALL + 36 ) + ( SUM( ALL 53 ) ) + - 21 AS col1
----
-119225

skipif mysql # not compatible
query I rowsort label-5211
SELECT + 51 - + 65 - + 11 + - 46 * - COALESCE ( - 72, 75 - 70 ) * + MIN ( ALL + 36 ) + ( SUM ( ALL 53 ) ) + - 21 AS col1
----
-119225

query I rowsort
SELECT - 62 * + + 98
----
-6076

onlyif mysql # aggregate syntax: 
query I rowsort label-5213
SELECT - NULLIF ( - 36, + 55 ) + COUNT( * )
----
37

skipif mysql # not compatible
query I rowsort label-5213
SELECT - NULLIF ( - 36, + 55 ) + COUNT ( * )
----
37

query I rowsort
SELECT + 27 + 79 * 93 + - 29 AS col0
----
7345

onlyif mysql # aggregate syntax: 
query I rowsort label-5215
SELECT ALL NULLIF ( 36, + COUNT( 70 ) ) AS col2
----
36

skipif mysql # not compatible
query I rowsort label-5215
SELECT ALL NULLIF ( 36, + COUNT ( 70 ) ) AS col2
----
36

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

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

query II rowsort
SELECT DISTINCT - 5 + - 52 + 18 + + - 80 AS col2, 31 AS col1
----
-119
31

query II rowsort
SELECT DISTINCT 61 + 63 * 63, 10 AS col0
----
4030
10

onlyif mysql # aggregate syntax: 
query II rowsort label-5219
SELECT + 67 + - 53 + - - 99 AS col1, SUM( DISTINCT + 19 ) AS col2
----
113
19

skipif mysql # not compatible
query II rowsort label-5219
SELECT + 67 + - 53 + - - 99 AS col1, SUM ( DISTINCT + 19 ) AS col2
----
113
19

onlyif mysql # aggregate syntax: 
query I rowsort label-5220
SELECT ALL - 87 + + ( - 34 ) + - COUNT( * ) * - 5 - + 17 + - + COUNT( * )
----
-134

skipif mysql # not compatible
query I rowsort label-5220
SELECT ALL - 87 + + ( - 34 ) + - COUNT ( * ) * - 5 - + 17 + - + COUNT ( * )
----
-134

onlyif mysql # aggregate syntax: 
query I rowsort label-5221
SELECT - MIN( ALL - 14 ) + - + 87 * + + 3 AS col1
----
-247

skipif mysql # not compatible
query I rowsort label-5221
SELECT - MIN ( ALL - 14 ) + - + 87 * + + 3 AS col1
----
-247

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5222
SELECT - CAST( + - 90 AS SIGNED ) + + 45
----
135

skipif mysql # not compatible
query I rowsort label-5222
SELECT - CAST ( + - 90 AS INTEGER ) + + 45
----
135

query I rowsort
SELECT + 37 + - 46 * - - 33 AS col2
----
-1481

query II rowsort
SELECT DISTINCT + 65, + 9 AS col0
----
65
9

onlyif mysql # DIV for integer division: 
query I rowsort label-5225
SELECT ALL + 52 DIV 39 + - 28
----
-27

skipif mysql # not compatible
query I rowsort label-5225
SELECT ALL + 52 / 39 + - 28
----
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5226
SELECT ALL - ( + 87 ) DIV - 30 + + - COUNT( * ) + 49 * ( - + 25 ) AS col1
----
-1224

skipif mysql # not compatible
query I rowsort label-5226
SELECT ALL - ( + 87 ) / - 30 + + - COUNT ( * ) + 49 * ( - + 25 ) AS col1
----
-1224

onlyif mysql # aggregate syntax: 
query II rowsort label-5227
SELECT 98 * + 38 + - MAX( DISTINCT 98 ) + + MAX( + 28 ) AS col1, - 77 AS col2
----
3654
-77

skipif mysql # not compatible
query II rowsort label-5227
SELECT 98 * + 38 + - MAX ( DISTINCT 98 ) + + MAX ( + 28 ) AS col1, - 77 AS col2
----
3654
-77

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5229
SELECT ALL MAX( DISTINCT 50 ) * 84 + 59
----
4259

skipif mysql # not compatible
query I rowsort label-5229
SELECT ALL MAX ( DISTINCT 50 ) * 84 + 59
----
4259

query I rowsort
SELECT ALL - - 11 * + ( 7 ) - + + 57
----
20

query II rowsort
SELECT ALL + - 45 AS col1, - ( - + 84 ) AS col0
----
-45
84

onlyif mysql # aggregate syntax: 
query I rowsort label-5232
SELECT - MAX( 87 ) * - - ( - - 97 ) + - COUNT( * ) * + 66 + - CASE + + 70 WHEN 71 * - + COUNT( * ) THEN - - 56 ELSE NULL END + + - 55 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5232
SELECT - MAX ( 87 ) * - - ( - - 97 ) + - COUNT ( * ) * + 66 + - CASE + + 70 WHEN 71 * - + COUNT ( * ) THEN - - 56 ELSE NULL END + + - 55 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5233
SELECT + + COUNT( DISTINCT 15 ) + 31 AS col2, - 36 DIV - + 79 AS col1
----
32
0

skipif mysql # not compatible
query II rowsort label-5233
SELECT + + COUNT ( DISTINCT 15 ) + 31 AS col2, - 36 / - + 79 AS col1
----
32
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5234
SELECT DISTINCT - 52 DIV - 96
----
0

skipif mysql # not compatible
query I rowsort label-5234
SELECT DISTINCT - 52 / - 96
----
0

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

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

query I rowsort
SELECT 82 * + 0 + 10 + + 4 + + 86
----
100

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

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

query I rowsort
SELECT + - 38 * 69 col2
----
-2622

onlyif mysql # aggregate syntax: 
query I rowsort label-5239
SELECT + 17 + COUNT( * ) + - + 7 + - 73 * + + 38 AS col2
----
-2763

skipif mysql # not compatible
query I rowsort label-5239
SELECT + 17 + COUNT ( * ) + - + 7 + - 73 * + + 38 AS col2
----
-2763

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

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5241
SELECT DISTINCT - CAST( NULL AS SIGNED ) * CAST( - ( + 63 ) AS DECIMAL ), + 79 AS col1
----
NULL
79

skipif mysql # not compatible
query II rowsort label-5241
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * CAST ( - ( + 63 ) AS REAL ), + 79 AS col1
----
NULL
79

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

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

query II rowsort
SELECT + - 27 AS col1, - 32
----
-27
-32

query I rowsort
SELECT DISTINCT + 50 * + - 53 AS col1
----
-2650

onlyif mysql # aggregate syntax: 
query I rowsort label-5245
SELECT + COUNT( * ) * + COALESCE ( - 8, + 72, 54 * COUNT( * ) + + + 45 * + 99 )
----
-8

skipif mysql # not compatible
query I rowsort label-5245
SELECT + COUNT ( * ) * + COALESCE ( - 8, + 72, 54 * COUNT ( * ) + + + 45 * + 99 )
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5246
SELECT DISTINCT COALESCE ( CAST( - 52 AS SIGNED ), 78 * 93 ) * + 46 * - + 96 + - 50 + 18
----
229600

skipif mysql # not compatible
query I rowsort label-5246
SELECT DISTINCT COALESCE ( CAST ( - 52 AS INTEGER ), 78 * 93 ) * + 46 * - + 96 + - 50 + 18
----
229600

query I rowsort
SELECT ALL + 46 * 82
----
3772

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5248
SELECT ALL - 19 + - + 4 * - 11 * - + 85 col1, - CAST( + 26 AS SIGNED ) + + 3 AS col1
----
-3759
-23

skipif mysql # not compatible
query II rowsort label-5248
SELECT ALL - 19 + - + 4 * - 11 * - + 85 col1, - CAST ( + 26 AS INTEGER ) + + 3 AS col1
----
-3759
-23

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

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

query I rowsort
SELECT ALL + 56 + - 93 + 82
----
45

query I rowsort
SELECT - ( + 60 ) - - 29 + + 28
----
-3

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5253
SELECT - CAST( NULL AS DECIMAL ) + + + ( - 36 ) * + 48, + 90 * + 27 * ( - 0 ) col0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-5253
SELECT - CAST ( NULL AS REAL ) + + + ( - 36 ) * + 48, + 90 * + 27 * ( - 0 ) col0
----
NULL
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5254
SELECT DISTINCT + COUNT( * ) + + 64
----
65

skipif mysql # not compatible
query I rowsort label-5254
SELECT DISTINCT + COUNT ( * ) + + 64
----
65

query I rowsort
SELECT ALL - 84 * 70 col1
----
-5880

onlyif mysql # aggregate syntax: 
query I rowsort label-5256
SELECT DISTINCT + 67 * MIN( DISTINCT 25 ) AS col2
----
1675

skipif mysql # not compatible
query I rowsort label-5256
SELECT DISTINCT + 67 * MIN ( DISTINCT 25 ) AS col2
----
1675

onlyif mysql # aggregate syntax: 
query I rowsort label-5257
SELECT - 88 * 23 + - 44 + + COUNT( * )
----
-2067

skipif mysql # not compatible
query I rowsort label-5257
SELECT - 88 * 23 + - 44 + + COUNT ( * )
----
-2067

query I rowsort
SELECT ALL + 23 * - + 78
----
-1794

query I rowsort
SELECT COALESCE ( - 78, + 93 )
----
-78

query I rowsort
SELECT 93 + - + 48
----
45

query I rowsort
SELECT DISTINCT 4 * - 72 AS col1
----
-288

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5262
SELECT ALL CAST( NULL AS DECIMAL ) - + 15 AS col2, - 15
----
NULL
-15

skipif mysql # not compatible
query II rowsort label-5262
SELECT ALL CAST ( NULL AS REAL ) - + 15 AS col2, - 15
----
NULL
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-5263
SELECT ALL - MIN( DISTINCT - 97 ) AS col2
----
97

skipif mysql # not compatible
query I rowsort label-5263
SELECT ALL - MIN ( DISTINCT - 97 ) AS col2
----
97

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5265
SELECT 64 * 20 DIV + MAX( ALL 17 ), 13 * + 82 AS col2
----
75
1066

skipif mysql # not compatible
query II rowsort label-5265
SELECT 64 * 20 / + MAX ( ALL 17 ), 13 * + 82 AS col2
----
75
1066

query I rowsort
SELECT - + ( - 23 ) * - + 8 + + - 30 * - 25 + 9 AS col1
----
575

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5267
SELECT ALL + 21 + - 3 + - CASE WHEN + 2 BETWEEN - - 7 * COUNT( * ) DIV 50 + + - 84 + - + COUNT( * ) * - 86 AND + 54 THEN - + 21 END col2
----
39

skipif mysql # not compatible
query I rowsort label-5267
SELECT ALL + 21 + - 3 + - CASE WHEN + 2 BETWEEN - - 7 * COUNT ( * ) / 50 + + - 84 + - + COUNT ( * ) * - 86 AND + 54 THEN - + 21 END col2
----
39

query I rowsort
SELECT + 81 + + 1 AS col1
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-5269
SELECT ALL - 46 DIV 98 - - + 41
----
41

skipif mysql # not compatible
query I rowsort label-5269
SELECT ALL - 46 / 98 - - + 41
----
41

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5270
SELECT MAX( ALL 18 ) * - 2 * - - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5270
SELECT MAX ( ALL 18 ) * - 2 * - - CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5271
SELECT 1 * + CAST( COUNT( * ) AS SIGNED ), + COUNT( ALL 72 ) DIV 12 + - COUNT( * ) AS col1
----
1
-1

skipif mysql # not compatible
query II rowsort label-5271
SELECT 1 * + CAST ( COUNT ( * ) AS INTEGER ), + COUNT ( ALL 72 ) / 12 + - COUNT ( * ) AS col1
----
1
-1

query II rowsort
SELECT 81, 23 AS col2
----
81
23

query I rowsort
SELECT ALL 4 + + - 4 - + 92 + - 53
----
-145

onlyif mysql # aggregate syntax: 
query I rowsort label-5274
SELECT ALL + CASE + 34 WHEN + COUNT( * ) * - - 57 * + 44 + - COUNT( * ) THEN NULL WHEN - - COUNT( * ) / + - 96 / - 32 THEN NULL ELSE - - 25 END + - + 88 AS col0
----
-63

skipif mysql # not compatible
query I rowsort label-5274
SELECT ALL + CASE + 34 WHEN + COUNT ( * ) * - - 57 * + 44 + - COUNT ( * ) THEN NULL WHEN - - COUNT ( * ) / + - 96 / - 32 THEN NULL ELSE - - 25 END + - + 88 AS col0
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5275
SELECT ( 84 ) + - 80 + CAST( + 42 AS SIGNED ) AS col1
----
46

skipif mysql # not compatible
query I rowsort label-5275
SELECT ( 84 ) + - 80 + CAST ( + 42 AS INTEGER ) AS col1
----
46

onlyif mysql # aggregate syntax: 
query II rowsort label-5276
SELECT ALL 97 + - 96 - - COALESCE ( - - ( - 99 ), + + ( - 44 ), 77 ) * + ( - - 53 ) * + - COUNT( * ) col1, 12 * + CASE WHEN ( NOT NULL NOT IN ( + - COUNT( * ) ) ) THEN - 77 + + 11 + NULLIF ( 46, - 34 ) * + 27 ELSE NULL END * - COUNT( * ) AS col1
----
5248
NULL

skipif mysql # not compatible
query II rowsort label-5276
SELECT ALL 97 + - 96 - - COALESCE ( - - ( - 99 ), + + ( - 44 ), 77 ) * + ( - - 53 ) * + - COUNT ( * ) col1, 12 * + CASE WHEN ( NOT NULL NOT IN ( + - COUNT ( * ) ) ) THEN - 77 + + 11 + NULLIF ( 46, - 34 ) * + 27 ELSE NULL END * - COUNT ( * ) AS col1
----
5248
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5278
SELECT ALL SUM( ALL - 61 ) + + + 99 * + + 21
----
2018

skipif mysql # not compatible
query I rowsort label-5278
SELECT ALL SUM ( ALL - 61 ) + + + 99 * + + 21
----
2018

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5279
SELECT ( - + CASE - - COUNT( * ) WHEN + 51 THEN + - 43 + + 39 + + ( + + 31 ) * - 50 - - 99 * 6 * 37 * + + 17 WHEN + + CAST( 48 AS SIGNED ) + + + COUNT( * ) THEN NULL ELSE - 79 END ) + - COUNT( * )
----
78

skipif mysql # not compatible
query I rowsort label-5279
SELECT ( - + CASE - - COUNT ( * ) WHEN + 51 THEN + - 43 + + 39 + + ( + + 31 ) * - 50 - - 99 * 6 * 37 * + + 17 WHEN + + CAST ( 48 AS INTEGER ) + + + COUNT ( * ) THEN NULL ELSE - 79 END ) + - COUNT ( * )
----
78

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5281
SELECT MAX( ALL 66 ) + - + CAST( NULL AS SIGNED ) AS col2
----
NULL

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

query I rowsort
SELECT 26 - 43 AS col1
----
-17

query I rowsort
SELECT ALL - 88 + 86 + - + 52 - 7
----
-61

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

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

query I rowsort
SELECT 7 * 30 AS col2
----
210

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5287
SELECT DISTINCT NULLIF ( - 50, COUNT( * ) ) - + 71 AS col0
----
-121

skipif mysql # not compatible
query I rowsort label-5287
SELECT DISTINCT NULLIF ( - 50, COUNT ( * ) ) - + 71 AS col0
----
-121

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5288
SELECT ALL - COALESCE ( + 92, + 59 ) - + 79 * + COALESCE ( - COUNT( * ), + 41 * + 85 DIV - 1 DIV + 35 ) AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-5288
SELECT ALL - COALESCE ( + 92, + 59 ) - + 79 * + COALESCE ( - COUNT ( * ), + 41 * + 85 / - 1 / + 35 ) AS col2
----
-13

query I rowsort
SELECT 32 * + 68 AS col0
----
2176

query I rowsort
SELECT ( - 35 ) * - + 68 AS col2
----
2380

query I rowsort
SELECT 72 + - ( + 8 ) col0
----
64

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

skipif mysql # not compatible
query I rowsort label-5292
SELECT 31 / + 83
----
0

query I rowsort
SELECT - 49 + - 98
----
-147

query I rowsort
SELECT 61 * 44 AS col2
----
2684

query II rowsort
SELECT - ( 5 ) + - 27, 2 AS col2
----
-32
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5296
SELECT ALL + - CAST( NULL AS SIGNED ) * + MAX( 87 ) * + 4 * - 28 + + 20 * - 77 * CASE 13 WHEN 34 * 61 + 72 + - 33 / - + COUNT( * ) * + 15 + + COUNT( * ) / CASE 94 WHEN - 28 THEN CAST( 12 AS DECIMAL ) / 81 ELSE COUNT( * ) END / - COUNT( * ) THEN + 89 + AVG ( ALL 75 ) * + CAST( NULL AS DECIMAL ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5296
SELECT ALL + - CAST ( NULL AS INTEGER ) * + MAX ( 87 ) * + 4 * - 28 + + 20 * - 77 * CASE 13 WHEN 34 * 61 + 72 + - 33 / - + COUNT ( * ) * + 15 + + COUNT ( * ) / CASE 94 WHEN - 28 THEN CAST ( 12 AS REAL ) / 81 ELSE COUNT ( * ) END / - COUNT ( * ) THEN + 89 + AVG ( ALL 75 ) * + CAST ( NULL AS REAL ) ELSE NULL END AS col2
----
NULL

query II rowsort
SELECT + 50, 62 AS col2
----
50
62

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5299
SELECT - ( CAST( + 40 AS SIGNED ) ) * - 7 + - 64 + 74
----
290

skipif mysql # not compatible
query I rowsort label-5299
SELECT - ( CAST ( + 40 AS INTEGER ) ) * - 7 + - 64 + 74
----
290

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5300
SELECT DISTINCT - + CAST( - COALESCE ( + 46, - 78 ) AS SIGNED ) AS col1
----
46

skipif mysql # not compatible
query I rowsort label-5300
SELECT DISTINCT - + CAST ( - COALESCE ( + 46, - 78 ) AS INTEGER ) AS col1
----
46

query I rowsort
SELECT + 12 + - 83
----
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5302
SELECT 20 + CAST( - + 83 AS SIGNED )
----
-63

skipif mysql # not compatible
query I rowsort label-5302
SELECT 20 + CAST ( - + 83 AS INTEGER )
----
-63

query I rowsort
SELECT ALL + 50 + 51 AS col1
----
101

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5305
SELECT 64 * MIN( 61 ) + - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5305
SELECT 64 * MIN ( 61 ) + - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 59 + - + CASE - 21 WHEN - 73 + 48 * + - 1 THEN 3 END AS col1
----
NULL

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

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

query I rowsort
SELECT ( - + 50 ) + - 26 * - 93
----
2368

query II rowsort
SELECT DISTINCT - 43 AS col0, - 27 + 3
----
-43
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5310
SELECT CAST( + MAX( 16 ) AS SIGNED ) * - 87 + - - 16 * + 35, COUNT( * ) * - 68 col1
----
-832
-68

skipif mysql # not compatible
query II rowsort label-5310
SELECT CAST ( + MAX ( 16 ) AS INTEGER ) * - 87 + - - 16 * + 35, COUNT ( * ) * - 68 col1
----
-832
-68

query II rowsort
SELECT 72 AS col0, 37 + + 63
----
72
100

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5312
SELECT 81 DIV + + 93 * - COUNT( * ) * - 46, 29 + 66 * + 23 AS col0
----
0
1547

skipif mysql # not compatible
query II rowsort label-5312
SELECT 81 / + + 93 * - COUNT ( * ) * - 46, 29 + 66 * + 23 AS col0
----
0
1547

onlyif mysql # DIV for integer division: 
query I rowsort label-5313
SELECT DISTINCT 85 DIV + 95 * 12 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5313
SELECT DISTINCT 85 / + 95 * 12 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5314
SELECT ALL COALESCE ( - COUNT( * ), + + 41, ( + 71 ) ) - MAX( - - 78 ) col1, + MIN( + 88 ) + + 10 AS col0
----
-79
98

skipif mysql # not compatible
query II rowsort label-5314
SELECT ALL COALESCE ( - COUNT ( * ), + + 41, ( + 71 ) ) - MAX ( - - 78 ) col1, + MIN ( + 88 ) + + 10 AS col0
----
-79
98

query II rowsort
SELECT DISTINCT 37 AS col2, + 47 + - CASE 90 WHEN - 84 THEN + 4 + - 9 + - 55 ELSE 22 END
----
37
25

query I rowsort
SELECT + 2 * + + 2 AS col1
----
4

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5318
SELECT - NULLIF ( + - COALESCE ( - NULLIF ( - + 39, + COUNT( DISTINCT + + 95 ) ), + 62 - - 47 * - 1 ), - - 19 ) AS col1
----
39

skipif mysql # not compatible
query I rowsort label-5318
SELECT - NULLIF ( + - COALESCE ( - NULLIF ( - + 39, + COUNT ( DISTINCT + + 95 ) ), + 62 - - 47 * - 1 ), - - 19 ) AS col1
----
39

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

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

query I rowsort
SELECT - NULLIF ( - - 95, + 57 ) AS col1
----
-95

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

query I rowsort
SELECT + 66 - 32 col1
----
34

onlyif mysql # aggregate syntax: 
query II rowsort label-5323
SELECT ALL 78 * MIN( + 70 ) * - - COALESCE ( 22, 33 ), 37 col1
----
120120
37

skipif mysql # not compatible
query II rowsort label-5323
SELECT ALL 78 * MIN ( + 70 ) * - - COALESCE ( 22, 33 ), 37 col1
----
120120
37

query II rowsort
SELECT ALL 60, 76 AS col0
----
60
76

onlyif mysql # aggregate syntax: 
query I rowsort label-5325
SELECT - COUNT( DISTINCT - 63 )
----
-1

skipif mysql # not compatible
query I rowsort label-5325
SELECT - COUNT ( DISTINCT - 63 )
----
-1

query I rowsort
SELECT - - 70 + + 3
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-5327
SELECT ALL COALESCE ( - SUM( 45 ), - ( COUNT( * ) ) ) AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-5327
SELECT ALL COALESCE ( - SUM ( 45 ), - ( COUNT ( * ) ) ) AS col1
----
-45

query I rowsort
SELECT + + 0 * + + 89 * - - 51
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5329
SELECT ALL COUNT( - 33 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5329
SELECT ALL COUNT ( - 33 ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5330
SELECT ALL - 56 DIV 96 - - + 73 AS col2
----
73

skipif mysql # not compatible
query I rowsort label-5330
SELECT ALL - 56 / 96 - - + 73 AS col2
----
73

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

query I rowsort
SELECT ALL + 96 * 70 * - 47 + - 35 AS col1
----
-315875

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5333
SELECT + - 74 DIV 71 * + - SUM( + + CAST( - 94 AS SIGNED ) )
----
-94

skipif mysql # not compatible
query I rowsort label-5333
SELECT + - 74 / 71 * + - SUM ( + + CAST ( - 94 AS INTEGER ) )
----
-94

query II rowsort
SELECT - - 68 * + - 56, + 71 col2
----
-3808
71

query I rowsort
SELECT - + CASE + NULLIF ( - 21, - 74 * + 49 ) WHEN + 38 THEN - 24 WHEN + 27 * - 62 * + 19 + + 86 THEN NULL END * - 26 AS col0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5337
SELECT DISTINCT + COUNT( * ) * COUNT( * ) + + CASE + + ( - 42 ) WHEN ( + ( 99 ) ) THEN - 0 * COUNT( * ) ELSE NULL END * COUNT( * ) + - - 27
----
NULL

skipif mysql # not compatible
query I rowsort label-5337
SELECT DISTINCT + COUNT ( * ) * COUNT ( * ) + + CASE + + ( - 42 ) WHEN ( + ( 99 ) ) THEN - 0 * COUNT ( * ) ELSE NULL END * COUNT ( * ) + - - 27
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5338
SELECT DISTINCT + 45, MIN( 1 ) DIV COUNT( * ) AS col2
----
45
1

skipif mysql # not compatible
query II rowsort label-5338
SELECT DISTINCT + 45, MIN ( 1 ) / COUNT ( * ) AS col2
----
45
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5339
SELECT ALL - 2 * COUNT( ALL 91 ) + + - 78 AS col2, - ( - + 26 ) * - 3 + + MAX( ALL + - 58 ) * 24 AS col1
----
-80
-1470

skipif mysql # not compatible
query II rowsort label-5339
SELECT ALL - 2 * COUNT ( ALL 91 ) + + - 78 AS col2, - ( - + 26 ) * - 3 + + MAX ( ALL + - 58 ) * 24 AS col1
----
-80
-1470

onlyif mysql # DIV for integer division: 
query I rowsort label-5340
SELECT - 99 * 69 DIV + + 81
----
-84

skipif mysql # not compatible
query I rowsort label-5340
SELECT - 99 * 69 / + + 81
----
-84

query I rowsort
SELECT ALL 7 * + + 26 * - 15 + 72 + - 69
----
-2727

onlyif mysql # aggregate syntax: 
query II rowsort label-5342
SELECT ALL - MAX( ALL - + 2 ) * + 24 + 14 + + 58, 49 AS col1
----
120
49

skipif mysql # not compatible
query II rowsort label-5342
SELECT ALL - MAX ( ALL - + 2 ) * + 24 + 14 + + 58, 49 AS col1
----
120
49

query I rowsort
SELECT ALL 62 * - 22 AS col1
----
-1364

onlyif mysql # aggregate syntax: 
query I rowsort label-5344
SELECT ( - 4 ) * - + 44 * - 10 * + 73 + + - 75 + - + 96 + - 61 + + 98 * CASE + 52 WHEN + - 84 * - 34 * - + MAX( ALL + 68 ) * - + 64 THEN + - ( ( + 74 ) ) * - + 15 * + ( 46 ) END + NULLIF ( + 57, 65 + 59 ) + - 12 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5344
SELECT ( - 4 ) * - + 44 * - 10 * + 73 + + - 75 + - + 96 + - 61 + + 98 * CASE + 52 WHEN + - 84 * - 34 * - + MAX ( ALL + 68 ) * - + 64 THEN + - ( ( + 74 ) ) * - + 15 * + ( 46 ) END + NULLIF ( + 57, 65 + 59 ) + - 12 AS col0
----
NULL

query I rowsort
SELECT - 86 - + 57 * NULLIF ( + 84, - 25 * 48 )
----
-4874

query I rowsort
SELECT ALL + COALESCE ( 68, + 7, - 67 )
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5347
SELECT - CASE + ( + 25 ) WHEN + - 6 THEN NULL WHEN 70 / + 26 + - - 17 + + 86 THEN NULL WHEN + COUNT( * ) THEN + - 32 * 82 + + 5 * - 58 - + - 23 END + + - 63
----
NULL

skipif mysql # not compatible
query I rowsort label-5347
SELECT - CASE + ( + 25 ) WHEN + - 6 THEN NULL WHEN 70 / + 26 + - - 17 + + 86 THEN NULL WHEN + COUNT ( * ) THEN + - 32 * 82 + + 5 * - 58 - + - 23 END + + - 63
----
NULL

query I rowsort
SELECT - 32 + - 53 * - 15 - + + 71 AS col2
----
692

query I rowsort
SELECT - 50 * + 35
----
-1750

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5350
SELECT - 61 * - 12 * - 27 + 69 - 14 + - + CASE + 2 WHEN - 7 THEN NULL WHEN - COUNT( * ) THEN NULL WHEN - CAST( - COALESCE ( 14, NULLIF ( + COUNT( * ), + 24 ) + + 27 + - 46 ) AS SIGNED ) + + - 67 THEN - - ( + 20 ) + - - COUNT( * ) END + 27 * + COUNT( * ) * NULLIF ( AVG ( ALL 19 ) - 85 * + 38, COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5350
SELECT - 61 * - 12 * - 27 + 69 - 14 + - + CASE + 2 WHEN - 7 THEN NULL WHEN - COUNT ( * ) THEN NULL WHEN - CAST ( - COALESCE ( 14, NULLIF ( + COUNT ( * ), + 24 ) + + 27 + - 46 ) AS INTEGER ) + + - 67 THEN - - ( + 20 ) + - - COUNT ( * ) END + 27 * + COUNT ( * ) * NULLIF ( AVG ( ALL 19 ) - 85 * + 38, COUNT ( * ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5351
SELECT DISTINCT COUNT( * ) * + 52 - + ( CASE - - CAST( + 74 AS SIGNED ) WHEN - 66 + + + 52 / + 14 * + 66 THEN 36 ELSE 75 * - - COALESCE ( 52, 58 ) END ) + ( 40 ) + + 83 AS col2
----
-3725

skipif mysql # not compatible
query I rowsort label-5351
SELECT DISTINCT COUNT ( * ) * + 52 - + ( CASE - - CAST ( + 74 AS INTEGER ) WHEN - 66 + + + 52 / + 14 * + 66 THEN 36 ELSE 75 * - - COALESCE ( 52, 58 ) END ) + ( 40 ) + + 83 AS col2
----
-3725

query I rowsort
SELECT ALL - 66 * 55 - + 95 AS col1
----
-3725

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5353
SELECT DISTINCT ( + - 35 ) AS col0, - COUNT( * ) * + + ( - CAST( 36 AS SIGNED ) ) AS col0
----
-35
36

skipif mysql # not compatible
query II rowsort label-5353
SELECT DISTINCT ( + - 35 ) AS col0, - COUNT ( * ) * + + ( - CAST ( 36 AS INTEGER ) ) AS col0
----
-35
36

query I rowsort
SELECT + 78 + 77
----
155

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5355
SELECT DISTINCT 49 DIV - + COALESCE ( + 37, CASE - + 22 WHEN NULLIF ( + - 60, - 20 * NULLIF ( - 73, + 53 ) ) THEN + - 88 - 17 + + 17 + - CASE - 24 WHEN - 10 THEN - 15 WHEN + 44 DIV - + 88 * - - 39 * - CAST( NULL AS SIGNED ) THEN 26 + ( + 53 ) * 42 WHEN 47 THEN COUNT( + 29 ) END END, COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-5355
SELECT DISTINCT 49 / - + COALESCE ( + 37, CASE - + 22 WHEN NULLIF ( + - 60, - 20 * NULLIF ( - 73, + 53 ) ) THEN + - 88 - 17 + + 17 + - CASE - 24 WHEN - 10 THEN - 15 WHEN + 44 / - + 88 * - - 39 * - CAST ( NULL AS INTEGER ) THEN 26 + ( + 53 ) * 42 WHEN 47 THEN COUNT ( + 29 ) END END, COUNT ( * ) )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-5356
SELECT + 55 + + MAX( DISTINCT + - 81 ), 6 col2
----
-26
6

skipif mysql # not compatible
query II rowsort label-5356
SELECT + 55 + + MAX ( DISTINCT + - 81 ), 6 col2
----
-26
6

onlyif mysql # DIV for integer division: 
query I rowsort label-5357
SELECT + 72 DIV - 52 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5357
SELECT + 72 / - 52 AS col1
----
-1

query I rowsort
SELECT - 42 + - 74 * + 94 AS col1
----
-6998

query I rowsort
SELECT - 60 * + 91 AS col1
----
-5460

onlyif mysql # DIV for integer division: 
query II rowsort label-5360
SELECT + + 41 + + 73 AS col2, - 95 DIV 67 * - 74 + - + NULLIF ( 1, - 7 ) * - + 20 + + 17 AS col2
----
114
111

skipif mysql # not compatible
query II rowsort label-5360
SELECT + + 41 + + 73 AS col2, - 95 / 67 * - 74 + - + NULLIF ( 1, - 7 ) * - + 20 + + 17 AS col2
----
114
111

onlyif mysql # aggregate syntax: 
query I rowsort label-5361
SELECT ALL MIN( DISTINCT 95 ) * + 78 AS col1
----
7410

skipif mysql # not compatible
query I rowsort label-5361
SELECT ALL MIN ( DISTINCT 95 ) * + 78 AS col1
----
7410

onlyif mysql # aggregate syntax: 
query II rowsort label-5362
SELECT + 72 + + + 6 AS col2, + SUM( - - 59 ) col2
----
78
59

skipif mysql # not compatible
query II rowsort label-5362
SELECT + 72 + + + 6 AS col2, + SUM ( - - 59 ) col2
----
78
59

query I rowsort
SELECT ALL - 83 + + 34
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-5364
SELECT ALL NULLIF ( - - SUM( ALL + 62 ), COUNT( * ) )
----
62

skipif mysql # not compatible
query I rowsort label-5364
SELECT ALL NULLIF ( - - SUM ( ALL + 62 ), COUNT ( * ) )
----
62

onlyif mysql # DIV for integer division: 
query II rowsort label-5365
SELECT - - 23 * - 41 col1, 31 * 9 DIV - 91
----
-943
-3

skipif mysql # not compatible
query II rowsort label-5365
SELECT - - 23 * - 41 col1, 31 * 9 / - 91
----
-943
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-5366
SELECT - ( - + ( + + 97 ) ), + SUM( DISTINCT 71 ) - ( - 1 ) * 65 * - 40 + - 82 AS col0
----
97
-2611

skipif mysql # not compatible
query II rowsort label-5366
SELECT - ( - + ( + + 97 ) ), + SUM ( DISTINCT 71 ) - ( - 1 ) * 65 * - 40 + - 82 AS col0
----
97
-2611

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5367
SELECT + CASE - 84 WHEN - + 17 THEN + CASE 20 WHEN + ( 10 ) + - 80 THEN NULL WHEN - + 66 THEN + + 70 ELSE NULL END ELSE NULL END * - 16 + - 60 * - + 70 * - - 2 + - 85 + + + 87 + + + CAST( + + 3 AS SIGNED ) + - 97 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5367
SELECT + CASE - 84 WHEN - + 17 THEN + CASE 20 WHEN + ( 10 ) + - 80 THEN NULL WHEN - + 66 THEN + + 70 ELSE NULL END ELSE NULL END * - 16 + - 60 * - + 70 * - - 2 + - 85 + + + 87 + + + CAST ( + + 3 AS INTEGER ) + - 97 AS col2
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5369
SELECT ALL 74 DIV 7
----
10

skipif mysql # not compatible
query I rowsort label-5369
SELECT ALL 74 / 7
----
10

query I rowsort
SELECT - 86 + 53 - + + 64 + - - 98 * - 65 * + COALESCE ( - 82, 83 * - + 84 + + 31 + - 78 * + - ( + + ( - 99 ) ) ) * 42
----
21938183

onlyif mysql # DIV for integer division: 
query I rowsort label-5371
SELECT - 62 + + 75 DIV ( 29 ) * + - 54 AS col0
----
-170

skipif mysql # not compatible
query I rowsort label-5371
SELECT - 62 + + 75 / ( 29 ) * + - 54 AS col0
----
-170

query I rowsort
SELECT ALL + 1 * + 92 AS col2
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5373
SELECT CAST( - - 14 AS SIGNED )
----
14

skipif mysql # not compatible
query I rowsort label-5373
SELECT CAST ( - - 14 AS INTEGER )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-5374
SELECT 7 * ( - - COUNT( + 42 ) ) AS col2
----
7

skipif mysql # not compatible
query I rowsort label-5374
SELECT 7 * ( - - COUNT ( + 42 ) ) AS col2
----
7

query I rowsort
SELECT ALL 32 * - + 33 * + 3 * - - 77
----
-243936

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

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

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

skipif mysql # not compatible
query I rowsort label-5377
SELECT ALL - COUNT ( DISTINCT 27 ) AS col1
----
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5379
SELECT ALL - ( + CASE + - SUM( - 18 ) WHEN + - COUNT( * ) THEN + 61 * - - ( 72 ) * + 96 / - COUNT( ( - 89 ) ) - - 85 WHEN - 4 * 65 * + 60 THEN NULL ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-5379
SELECT ALL - ( + CASE + - SUM ( - 18 ) WHEN + - COUNT ( * ) THEN + 61 * - - ( 72 ) * + 96 / - COUNT ( ( - 89 ) ) - - 85 WHEN - 4 * 65 * + 60 THEN NULL ELSE NULL END )
----
NULL

query II rowsort
SELECT 40 AS col2, 78 AS col1
----
40
78

query I rowsort
SELECT 45 * + 71
----
3195

query I rowsort
SELECT 22 * + 17 AS col2
----
374

query II rowsort
SELECT - 99, 74 AS col1
----
-99
74

query I rowsort
SELECT 35 * - 52 AS col1
----
-1820

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5385
SELECT DISTINCT + 56 + + 49 * + 63 AS col0, + CAST( + 78 AS SIGNED )
----
3143
78

skipif mysql # not compatible
query II rowsort label-5385
SELECT DISTINCT + 56 + + 49 * + 63 AS col0, + CAST ( + 78 AS INTEGER )
----
3143
78

onlyif mysql # aggregate syntax: 
query II rowsort label-5386
SELECT DISTINCT - 87 + + + 79 + - COUNT( * ), - 38 + - CASE - 60 WHEN 87 - - 49 THEN - 27 * + - 84 END col2
----
-9
NULL

skipif mysql # not compatible
query II rowsort label-5386
SELECT DISTINCT - 87 + + + 79 + - COUNT ( * ), - 38 + - CASE - 60 WHEN 87 - - 49 THEN - 27 * + - 84 END col2
----
-9
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5387
SELECT - + COUNT( * ) AS col1, 21 * COALESCE ( + 48, + 28 ) col0
----
-1
1008

skipif mysql # not compatible
query II rowsort label-5387
SELECT - + COUNT ( * ) AS col1, 21 * COALESCE ( + 48, + 28 ) col0
----
-1
1008

query I rowsort
SELECT ALL - + 57 + - 98 AS col2
----
-155

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

skipif mysql # not compatible
query I rowsort label-5389
SELECT + COUNT ( * ) - + 86 AS col2
----
-85

query II rowsort
SELECT + 2 AS col1, + 56 AS col2
----
2
56

query I rowsort
SELECT - 18 * + 62
----
-1116

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

skipif mysql # not compatible
query I rowsort label-5392
SELECT + 92 * + 54 + COUNT ( * ) AS col2
----
4969

onlyif mysql # aggregate syntax: 
query I rowsort label-5393
SELECT ALL + COALESCE ( - 62, 40 + + NULLIF ( + 86, - 89 + + + ( - - NULLIF ( - 98, - - 72 + - NULLIF ( + 25, + - ( - - 68 ) * + + AVG ( + 90 ) * 63 + - + ( + + COUNT( * ) ) + - 93 * - ( - 3 ) ) ) ) ) ) AS col2
----
-62

skipif mysql # not compatible
query I rowsort label-5393
SELECT ALL + COALESCE ( - 62, 40 + + NULLIF ( + 86, - 89 + + + ( - - NULLIF ( - 98, - - 72 + - NULLIF ( + 25, + - ( - - 68 ) * + + AVG ( + 90 ) * 63 + - + ( + + COUNT ( * ) ) + - 93 * - ( - 3 ) ) ) ) ) ) AS col2
----
-62

query I rowsort
SELECT DISTINCT - ( 61 ) - + 33
----
-94

onlyif mysql # aggregate syntax: 
query II rowsort label-5395
SELECT NULLIF ( + COALESCE ( - 69, + COUNT( * ) ), 48 * 43 - + - 75 + + 66 * - + 68 / COUNT( * ) - + COUNT( * ) ) * 73, - 62 AS col1
----
-5037
-62

skipif mysql # not compatible
query II rowsort label-5395
SELECT NULLIF ( + COALESCE ( - 69, + COUNT ( * ) ), 48 * 43 - + - 75 + + 66 * - + 68 / COUNT ( * ) - + COUNT ( * ) ) * 73, - 62 AS col1
----
-5037
-62

query I rowsort
SELECT NULLIF ( - 13, 16 ) * + - 81 + + 51 - + + 35
----
1069

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

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

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

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

query I rowsort
SELECT 98 * + 81 * + 50 + + 84 + - ( - 18 ) - - + 39 + 25 * + 76 AS col0
----
398941

onlyif mysql # DIV for integer division: 
query I rowsort label-5400
SELECT 45 DIV 85 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5400
SELECT 45 / 85 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5401
SELECT ( + 55 ) + + 55 + + - COUNT( * ) * - + 73
----
183

skipif mysql # not compatible
query I rowsort label-5401
SELECT ( + 55 ) + + 55 + + - COUNT ( * ) * - + 73
----
183

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5403
SELECT 71 * COALESCE ( + 55, 40 + + 29, + 82 + - 27 + MIN( + CAST( NULL AS SIGNED ) ) + + 36 - - CAST( NULL AS SIGNED ), - + 3 ) + + 92 * + 87 AS col2
----
11909

skipif mysql # not compatible
query I rowsort label-5403
SELECT 71 * COALESCE ( + 55, 40 + + 29, + 82 + - 27 + MIN ( + CAST ( NULL AS INTEGER ) ) + + 36 - - CAST ( NULL AS INTEGER ), - + 3 ) + + 92 * + 87 AS col2
----
11909

query I rowsort
SELECT ALL + 35 + + 26 AS col0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-5405
SELECT 31 + 86 + - + COUNT( * ) AS col2
----
116

skipif mysql # not compatible
query I rowsort label-5405
SELECT 31 + 86 + - + COUNT ( * ) AS col2
----
116

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5406
SELECT ALL - - NULLIF ( - + 9, - 91 ) + + 41 + - MAX( ALL - 27 ) * COUNT( ALL 1 ) DIV + ( - 63 )
----
32

skipif mysql # not compatible
query I rowsort label-5406
SELECT ALL - - NULLIF ( - + 9, - 91 ) + + 41 + - MAX ( ALL - 27 ) * COUNT ( ALL 1 ) / + ( - 63 )
----
32

query I rowsort
SELECT + ( - + 53 ) + + 1 * ( + ( 75 ) ) AS col0
----
22

onlyif mysql # aggregate syntax: 
query II rowsort label-5408
SELECT ALL - - 5 + 32, + 39 * + ( COUNT( ALL - 99 ) ) AS col0
----
37
39

skipif mysql # not compatible
query II rowsort label-5408
SELECT ALL - - 5 + 32, + 39 * + ( COUNT ( ALL - 99 ) ) AS col0
----
37
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5409
SELECT - CAST( NULL AS SIGNED ) * COUNT( * ) + - MAX( ALL - 16 ) + - + 15 + + + 19 * + 57 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5409
SELECT - CAST ( NULL AS INTEGER ) * COUNT ( * ) + - MAX ( ALL - 16 ) + - + 15 + + + 19 * + 57 AS col0
----
NULL

query I rowsort
SELECT - NULLIF ( 64, 35 * - NULLIF ( - 84, - + 65 + 53 * - 6 ) + + - 12 ) + + 49 + - 1 AS col0
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5411
SELECT DISTINCT + COUNT( * ) * COALESCE ( - - 98, 54 * COUNT( * ) * - 94 * - CASE 44 WHEN COUNT( * ) * 92 * + 78 + + 73 THEN NULL WHEN 56 THEN + - 5 ELSE - CAST( NULL AS SIGNED ) END * - - 44 + - - 5 * - + 56, - 16 + - COUNT( * ) + + 41 ) + - ( + COALESCE ( - + 60, 97 * 91, - COALESCE ( + 83, 83 * 46 ) * + ( - 87 ) + 15 ) ) AS col1
----
158

skipif mysql # not compatible
query I rowsort label-5411
SELECT DISTINCT + COUNT ( * ) * COALESCE ( - - 98, 54 * COUNT ( * ) * - 94 * - CASE 44 WHEN COUNT ( * ) * 92 * + 78 + + 73 THEN NULL WHEN 56 THEN + - 5 ELSE - CAST ( NULL AS INTEGER ) END * - - 44 + - - 5 * - + 56, - 16 + - COUNT ( * ) + + 41 ) + - ( + COALESCE ( - + 60, 97 * 91, - COALESCE ( + 83, 83 * 46 ) * + ( - 87 ) + 15 ) ) AS col1
----
158

onlyif mysql # aggregate syntax: 
query II rowsort label-5412
SELECT DISTINCT - + MIN( ALL - - 14 ) + NULLIF ( - + COUNT( * ), + - 23 ) AS col2, + 31
----
-15
31

skipif mysql # not compatible
query II rowsort label-5412
SELECT DISTINCT - + MIN ( ALL - - 14 ) + NULLIF ( - + COUNT ( * ), + - 23 ) AS col2, + 31
----
-15
31

onlyif mysql # aggregate syntax: 
query II rowsort label-5413
SELECT COUNT( * ) * + 75 * ( + 73 ) AS col1, + 92 AS col2
----
5475
92

skipif mysql # not compatible
query II rowsort label-5413
SELECT COUNT ( * ) * + 75 * ( + 73 ) AS col1, + 92 AS col2
----
5475
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5414
SELECT ALL + 0 * - CASE - 7 WHEN - COUNT( * ) * + 13 THEN + 76 ELSE NULL END * 49 + - CAST( - - CASE 44 WHEN - ( 93 ) * + 22 * - 42 THEN NULL WHEN - - 92 THEN - COUNT( * ) END AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5414
SELECT ALL + 0 * - CASE - 7 WHEN - COUNT ( * ) * + 13 THEN + 76 ELSE NULL END * 49 + - CAST ( - - CASE 44 WHEN - ( 93 ) * + 22 * - 42 THEN NULL WHEN - - 92 THEN - COUNT ( * ) END AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5415
SELECT ALL - 42 - 10 + - - COUNT( * ) * 86 - + + 15 AS col0
----
19

skipif mysql # not compatible
query I rowsort label-5415
SELECT ALL - 42 - 10 + - - COUNT ( * ) * 86 - + + 15 AS col0
----
19

onlyif mysql # aggregate syntax: 
query II rowsort label-5416
SELECT DISTINCT + SUM( ALL - - 4 ) * + 80 + - 86 AS col2, + 86 col2
----
234
86

skipif mysql # not compatible
query II rowsort label-5416
SELECT DISTINCT + SUM ( ALL - - 4 ) * + 80 + - 86 AS col2, + 86 col2
----
234
86

query I rowsort
SELECT + 57 + 36
----
93

query I rowsort
SELECT ALL + 40 * + 52
----
2080

query I rowsort
SELECT 89 + + 62
----
151

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

skipif mysql # not compatible
query I rowsort label-5420
SELECT + 23 / + 43 * COUNT ( * ) * COUNT ( * ) * - COUNT ( * ) AS col1
----
0

query I rowsort
SELECT 48 * + - 43 AS col0
----
-2064

onlyif mysql # aggregate syntax: 
query I rowsort label-5422
SELECT - 32 + + COUNT( + 18 ) AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-5422
SELECT - 32 + + COUNT ( + 18 ) AS col0
----
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-5423
SELECT - ( 82 ) + + 1 DIV + + 88
----
-82

skipif mysql # not compatible
query I rowsort label-5423
SELECT - ( 82 ) + + 1 / + + 88
----
-82

query I rowsort
SELECT + 98 + 28
----
126

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

skipif mysql # not compatible
query I rowsort label-5425
SELECT DISTINCT MAX ( DISTINCT - - 20 )
----
20

query I rowsort
SELECT ALL 21 * + 6
----
126

query I rowsort
SELECT - 27 + + ( 52 ) AS col0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-5428
SELECT ALL + COALESCE ( - + COUNT( * ), - + ( + - 49 ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5428
SELECT ALL + COALESCE ( - + COUNT ( * ), - + ( + - 49 ) ) AS col0
----
-1

query I rowsort
SELECT CASE + - 9 WHEN 20 + ( + 71 ) - + - 17 * 49 THEN 76 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5430
SELECT 2 DIV + 48 + + - 19 + - 4 + 24
----
1

skipif mysql # not compatible
query I rowsort label-5430
SELECT 2 / + 48 + + - 19 + - 4 + 24
----
1

query I rowsort
SELECT - 50 * + + 4 AS col0
----
-200

query I rowsort
SELECT + 56 * + 85
----
4760

query I rowsort
SELECT ALL - 84 * + - 23 + + 0 + + 78 AS col2
----
2010

query I rowsort
SELECT + 49 + + 23 col2
----
72

query I rowsort
SELECT + 20 * 64 * + 50 AS col0
----
64000

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5436
SELECT + 48 * - + CAST( - 94 AS SIGNED ) + + 64 + 31 * + 42 AS col0
----
5878

skipif mysql # not compatible
query I rowsort label-5436
SELECT + 48 * - + CAST ( - 94 AS INTEGER ) + + 64 + 31 * + 42 AS col0
----
5878

query II rowsort
SELECT ALL 66 * + 28 + + 20 AS col0, + 24 AS col1
----
1868
24

onlyif mysql # aggregate syntax: 
query I rowsort label-5438
SELECT MIN( - 40 ) AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-5438
SELECT MIN ( - 40 ) AS col2
----
-40

query I rowsort
SELECT ALL + 31 * 73 AS col1
----
2263

query I rowsort
SELECT + 64 - + 72 * + 76
----
-5408

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5441
SELECT - CAST( - NULLIF ( - 39, 68 + + 69 ) AS SIGNED ) AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-5441
SELECT - CAST ( - NULLIF ( - 39, 68 + + 69 ) AS INTEGER ) AS col1
----
-39

query I rowsort
SELECT ALL 17 * + - 76
----
-1292

query II rowsort
SELECT + 91 * - NULLIF ( + 24, - - 9 - + + 46 ) - - 29 AS col2, 12
----
-2155
12

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5445
SELECT ALL + - MIN( - 83 ) - - + 70 + - + CAST( - + SUM( + - 75 ) AS SIGNED ) AS col1
----
78

skipif mysql # not compatible
query I rowsort label-5445
SELECT ALL + - MIN ( - 83 ) - - + 70 + - + CAST ( - + SUM ( + - 75 ) AS INTEGER ) AS col1
----
78

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

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

query I rowsort
SELECT DISTINCT 6 * 63 + + 23 AS col0
----
401

query I rowsort
SELECT - 63 * + 91 AS col1
----
-5733

query I rowsort
SELECT + NULLIF ( + 40, 32 / + 42 * - - 42 - - 78 ) + - 76
----
-36

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

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

query I rowsort
SELECT + 21 + + 60 AS col2
----
81

query I rowsort
SELECT - - 39 * + - 33 * 66
----
-84942

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5454
SELECT ALL - ( - + COUNT( * ) ) * + - CASE + 48 WHEN + 82 THEN CAST( - 50 AS SIGNED ) / 75 ELSE NULL END + - + COUNT( * ) * + 80 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5454
SELECT ALL - ( - + COUNT ( * ) ) * + - CASE + 48 WHEN + 82 THEN CAST ( - 50 AS INTEGER ) / 75 ELSE NULL END + - + COUNT ( * ) * + 80 AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 97 * - 84 AS col0
----
8148

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

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

query I rowsort
SELECT - 67 * ( 14 )
----
-938

query I rowsort
SELECT - 73 * + - 14 AS col0
----
1022

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5460
SELECT ALL - 40 DIV + 22 + - + 79 * + 66
----
-5215

skipif mysql # not compatible
query I rowsort label-5460
SELECT ALL - 40 / + 22 + - + 79 * + 66
----
-5215

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5462
SELECT CAST( + ( - SUM( + 43 ) ) AS SIGNED ) AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-5462
SELECT CAST ( + ( - SUM ( + 43 ) ) AS INTEGER ) AS col0
----
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-5463
SELECT - 20 DIV - 6 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-5463
SELECT - 20 / - 6 AS col1
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-5464
SELECT + 26 DIV + 74 AS col2, 91
----
0
91

skipif mysql # not compatible
query II rowsort label-5464
SELECT + 26 / + 74 AS col2, 91
----
0
91

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

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

query I rowsort
SELECT 98 * + 45 - 16 AS col2
----
4394

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5468
SELECT ALL - 63 DIV COALESCE ( - 15, - + 68 + COUNT( * ) + 65 * - NULLIF ( - 7, - CASE 76 WHEN 84 THEN MIN( - - 16 ) - + + ( 12 ) END * + AVG ( 40 ) ) ) + - 43 + COUNT( * ) * + + 71
----
32

skipif mysql # not compatible
query I rowsort label-5468
SELECT ALL - 63 / COALESCE ( - 15, - + 68 + COUNT ( * ) + 65 * - NULLIF ( - 7, - CASE 76 WHEN 84 THEN MIN ( - - 16 ) - + + ( 12 ) END * + AVG ( 40 ) ) ) + - 43 + COUNT ( * ) * + + 71
----
32

query I rowsort
SELECT - 72 * + 14
----
-1008

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5471
SELECT ALL + 47 DIV + COUNT( + + 69 ) + - 50
----
-3

skipif mysql # not compatible
query I rowsort label-5471
SELECT ALL + 47 / + COUNT ( + + 69 ) + - 50
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5472
SELECT - 43 * MAX( DISTINCT - 45 ) + CAST( + + 43 AS SIGNED ) AS col1
----
1978

skipif mysql # not compatible
query I rowsort label-5472
SELECT - 43 * MAX ( DISTINCT - 45 ) + CAST ( + + 43 AS INTEGER ) AS col1
----
1978

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

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

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

query I rowsort
SELECT - 62 + 64 + ( - 9 ) * - 96
----
866

query I rowsort
SELECT + - 82 * - - ( + 26 ) - + 28 + + 99 - - + 64 * - 93
----
-8013

query II rowsort
SELECT - - ( + COALESCE ( 9, - - 7, + 19 ) ) + - 31, + 84 AS col1
----
-22
84

query I rowsort
SELECT + - 56 * 80 * 62 + + 17 * + 37 - 75 * - 90
----
-270381

query I rowsort
SELECT + - 45 * 37 AS col2
----
-1665

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5480
SELECT + CAST( + COUNT( * ) AS SIGNED ) * + 72 + + - COUNT( ALL + 67 )
----
71

skipif mysql # not compatible
query I rowsort label-5480
SELECT + CAST ( + COUNT ( * ) AS INTEGER ) * + 72 + + - COUNT ( ALL + 67 )
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5481
SELECT ALL 38 * 91 DIV + - NULLIF ( 78, - COALESCE ( + - COUNT( * ), - - 55 ) ) - + - ( 36 ) + + 56 * - - 37 * + + 9
----
18640

skipif mysql # not compatible
query I rowsort label-5481
SELECT ALL 38 * 91 / + - NULLIF ( 78, - COALESCE ( + - COUNT ( * ), - - 55 ) ) - + - ( 36 ) + + 56 * - - 37 * + + 9
----
18640

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

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

query I rowsort
SELECT ALL - 6 * + 80
----
-480

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5485
SELECT + ( 81 ) DIV + - 39 + ( + 12 ) AS col0
----
10

skipif mysql # not compatible
query I rowsort label-5485
SELECT + ( 81 ) / + - 39 + ( + 12 ) AS col0
----
10

query I rowsort
SELECT + + 29 * - 38 * - - 41
----
-45182

onlyif mysql # DIV for integer division: 
query I rowsort label-5487
SELECT ALL + 23 DIV - 95 * - - 56
----
0

skipif mysql # not compatible
query I rowsort label-5487
SELECT ALL + 23 / - 95 * - - 56
----
0

query I rowsort
SELECT - - CASE + ( - + 56 ) WHEN - 47 * + - 52 THEN + ( - + 4 ) WHEN 12 - - - 92 THEN - 89 ELSE + - ( + 8 ) - + - 27 END AS col0
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5489
SELECT 19 DIV + 5 + + NULLIF ( - MIN( ALL 80 ), 72 ) AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-5489
SELECT 19 / + 5 + + NULLIF ( - MIN ( ALL 80 ), 72 ) AS col0
----
-77

query I rowsort
SELECT ALL - 99 * + + NULLIF ( 22, - - 41 ) AS col2
----
-2178

query II rowsort
SELECT ALL 61, 28 - - 22 AS col0
----
61
50

onlyif mysql # aggregate syntax: 
query II rowsort label-5492
SELECT DISTINCT COALESCE ( - SUM( + + 75 ), - 73 ) AS col1, - 76 * - 19 + 22
----
-75
1466

skipif mysql # not compatible
query II rowsort label-5492
SELECT DISTINCT COALESCE ( - SUM ( + + 75 ), - 73 ) AS col1, - 76 * - 19 + 22
----
-75
1466

onlyif mysql # aggregate syntax: 
query I rowsort label-5493
SELECT NULLIF ( 34, + + 27 * 29 - + - 43 * - 39 + COUNT( * ) + + 56 * 55 * - 14 / + ( - 22 ) ) * - - 8 - 1
----
271

skipif mysql # not compatible
query I rowsort label-5493
SELECT NULLIF ( 34, + + 27 * 29 - + - 43 * - 39 + COUNT ( * ) + + 56 * 55 * - 14 / + ( - 22 ) ) * - - 8 - 1
----
271

query I rowsort
SELECT 26 * - 29 * + 27 AS col1
----
-20358

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5495
SELECT ALL CASE + - 18 WHEN COUNT( * ) THEN NULL WHEN MIN( ALL ( + - CAST( NULL AS SIGNED ) ) ) THEN + 1 + + 48 ELSE NULL END + 36 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5495
SELECT ALL CASE + - 18 WHEN COUNT ( * ) THEN NULL WHEN MIN ( ALL ( + - CAST ( NULL AS INTEGER ) ) ) THEN + 1 + + 48 ELSE NULL END + 36 AS col2
----
NULL

query I rowsort
SELECT COALESCE ( + 45, + - 68 ) + - 9 * - 1 * + 85 AS col2
----
810

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5498
SELECT 51 - - - NULLIF ( + COUNT( * ), + 43 + + 92 * - + CAST( + - 13 AS SIGNED ) ), 30 AS col1
----
50
30

skipif mysql # not compatible
query II rowsort label-5498
SELECT 51 - - - NULLIF ( + COUNT ( * ), + 43 + + 92 * - + CAST ( + - 13 AS INTEGER ) ), 30 AS col1
----
50
30

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5500
SELECT + COUNT( * ) * - 87 + + 94 - + 26 AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-5500
SELECT + COUNT ( * ) * - 87 + + 94 - + 26 AS col1
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5501
SELECT ALL - NULLIF ( 4, + ( 36 ) + - CAST( NULL AS SIGNED ) ) * - 27 AS col1
----
108

skipif mysql # not compatible
query I rowsort label-5501
SELECT ALL - NULLIF ( 4, + ( 36 ) + - CAST ( NULL AS INTEGER ) ) * - 27 AS col1
----
108

query I rowsort
SELECT DISTINCT - 31 * + + 42 col2
----
-1302

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5504
SELECT SUM( - - 12 ) + - 47
----
-35

skipif mysql # not compatible
query I rowsort label-5504
SELECT SUM ( - - 12 ) + - 47
----
-35

query I rowsort
SELECT 79 * 92
----
7268

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5506
SELECT COUNT( * ) * + 59 DIV - + 46 + - 58
----
-59

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5507
SELECT ALL + - CAST( 91 AS SIGNED ) - - 63
----
-28

skipif mysql # not compatible
query I rowsort label-5507
SELECT ALL + - CAST ( 91 AS INTEGER ) - - 63
----
-28

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

skipif mysql # not compatible
query I rowsort label-5508
SELECT 10 * - 91 + - ( + COUNT ( * ) ) * + + 10 AS col0
----
-920

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5509
SELECT 39 * + + 47 - - 52 + ( + - ( COALESCE ( MIN( - 29 ), - 96 + - 30 + + 8, - 21 * 81 * + 86 DIV - 48 DIV + - 64 DIV + COUNT( * ) + + 4 + + 26 ) ) ) + - - 37 AS col1
----
1951

skipif mysql # not compatible
query I rowsort label-5509
SELECT 39 * + + 47 - - 52 + ( + - ( COALESCE ( MIN ( - 29 ), - 96 + - 30 + + 8, - 21 * 81 * + 86 / - 48 / + - 64 / + COUNT ( * ) + + 4 + + 26 ) ) ) + - - 37 AS col1
----
1951

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5510
SELECT + MIN( CAST( - 72 AS SIGNED ) ) * 25
----
-1800

skipif mysql # not compatible
query I rowsort label-5510
SELECT + MIN ( CAST ( - 72 AS INTEGER ) ) * 25
----
-1800

query II rowsort
SELECT DISTINCT + 97 * - 74 AS col1, 96
----
-7178
96

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5515
SELECT DISTINCT 24 * + - NULLIF ( + + MAX( 29 ), - 30 ) + + + 20
----
-676

skipif mysql # not compatible
query I rowsort label-5515
SELECT DISTINCT 24 * + - NULLIF ( + + MAX ( 29 ), - 30 ) + + + 20
----
-676

query I rowsort
SELECT + 3 * - 82 AS col1
----
-246

query I rowsort
SELECT ALL - 11 + - - 89
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-5518
SELECT DISTINCT - - 89 * 33 + - COUNT( * ) AS col1
----
2936

skipif mysql # not compatible
query I rowsort label-5518
SELECT DISTINCT - - 89 * 33 + - COUNT ( * ) AS col1
----
2936

query I rowsort
SELECT + 34 + + + 83 col2
----
117

query I rowsort
SELECT 26 * NULLIF ( 63, + ( + 61 ) - + 12 ) + + 21 + - 83 * - ( - + 92 )
----
-5977

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5521
SELECT COUNT( * ) DIV - - ( - 28 ) AS col2, + ( + COUNT( DISTINCT 43 ) ) + 34 + - 96 + + - 39 * + ( - NULLIF ( - 63, - + ( COUNT( * ) ) ) ) col0
----
0
-2518

skipif mysql # not compatible
query II rowsort label-5521
SELECT COUNT ( * ) / - - ( - 28 ) AS col2, + ( + COUNT ( DISTINCT 43 ) ) + 34 + - 96 + + - 39 * + ( - NULLIF ( - 63, - + ( COUNT ( * ) ) ) ) col0
----
0
-2518

query I rowsort
SELECT ALL 62 + ( - 43 ) AS col0
----
19

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

skipif mysql # not compatible
query I rowsort label-5523
SELECT ALL COUNT ( * ) + - 28 AS col0
----
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5524
SELECT COUNT( * ) DIV SUM( DISTINCT - 56 )
----
0

skipif mysql # not compatible
query I rowsort label-5524
SELECT COUNT ( * ) / SUM ( DISTINCT - 56 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5525
SELECT DISTINCT CASE ( - COALESCE ( - 85, + 55 * - 56 ) ) WHEN - 94 THEN - - 6 WHEN 12 * 37 THEN NULL ELSE - 50 * - ( + ( + 31 ) ) END + 59 DIV - COALESCE ( - 69, 62, + - 74 * + 45 + + 88 ) AS col1
----
1550

skipif mysql # not compatible
query I rowsort label-5525
SELECT DISTINCT CASE ( - COALESCE ( - 85, + 55 * - 56 ) ) WHEN - 94 THEN - - 6 WHEN 12 * 37 THEN NULL ELSE - 50 * - ( + ( + 31 ) ) END + 59 / - COALESCE ( - 69, 62, + - 74 * + 45 + + 88 ) AS col1
----
1550

onlyif mysql # aggregate syntax: 
query I rowsort label-5526
SELECT 61 + COALESCE ( + - 11, - MAX( + + 61 ) )
----
50

skipif mysql # not compatible
query I rowsort label-5526
SELECT 61 + COALESCE ( + - 11, - MAX ( + + 61 ) )
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-5527
SELECT COALESCE ( 40, - 96 * 82 * ( + + 72 ), 92 * + ( + 41 ) * - - COALESCE ( + 15, COUNT( * ) ) * + 34 + + 63 + + 43 - + 15 + + - 8, + 97 ) * - COUNT( * ) - - + 42 * - 71
----
-3022

skipif mysql # not compatible
query I rowsort label-5527
SELECT COALESCE ( 40, - 96 * 82 * ( + + 72 ), 92 * + ( + 41 ) * - - COALESCE ( + 15, COUNT ( * ) ) * + 34 + + 63 + + 43 - + 15 + + - 8, + 97 ) * - COUNT ( * ) - - + 42 * - 71
----
-3022

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

skipif mysql # not compatible
query I rowsort label-5528
SELECT DISTINCT 61 + + - COUNT ( * ) AS col0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-5529
SELECT DISTINCT NULLIF ( 96, 68 * - COUNT( * ) ) + 3 AS col0
----
99

skipif mysql # not compatible
query I rowsort label-5529
SELECT DISTINCT NULLIF ( 96, 68 * - COUNT ( * ) ) + 3 AS col0
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5530
SELECT CAST( + - 88 AS SIGNED ) + 53 + 31, 38 + + 77 AS col2
----
-4
115

skipif mysql # not compatible
query II rowsort label-5530
SELECT CAST ( + - 88 AS INTEGER ) + 53 + 31, 38 + + 77 AS col2
----
-4
115

query II rowsort
SELECT ALL 79 AS col1, + 40 + + 75 + - - 33 * ( - + 42 )
----
79
-1271

onlyif mysql # aggregate syntax: 
query I rowsort label-5532
SELECT DISTINCT 14 * - COUNT( * )
----
-14

skipif mysql # not compatible
query I rowsort label-5532
SELECT DISTINCT 14 * - COUNT ( * )
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-5533
SELECT COALESCE ( - 79, - 49 + - + 0 * + - 62 ) - CASE COUNT( * ) WHEN ( - NULLIF ( - COUNT( * ), - ( COUNT( * ) ) + + + 45 ) ) THEN + 73 + - 11 + 7 - - + 51 END - - + 53 AS col2
----
-146

skipif mysql # not compatible
query I rowsort label-5533
SELECT COALESCE ( - 79, - 49 + - + 0 * + - 62 ) - CASE COUNT ( * ) WHEN ( - NULLIF ( - COUNT ( * ), - ( COUNT ( * ) ) + + + 45 ) ) THEN + 73 + - 11 + 7 - - + 51 END - - + 53 AS col2
----
-146

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

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

query II rowsort
SELECT ALL - 5, + 44 * + + 27 * - - 80 AS col0
----
-5
95040

query I rowsort
SELECT 76 * + - 83 AS col2
----
-6308

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

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

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

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

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

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

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

query I rowsort
SELECT 92 * 17 AS col0
----
1564

onlyif mysql # aggregate syntax: 
query I rowsort label-5542
SELECT ALL + COUNT( * ) * + + 98 col2
----
98

skipif mysql # not compatible
query I rowsort label-5542
SELECT ALL + COUNT ( * ) * + + 98 col2
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5543
SELECT 79 + - 56 + - 21 col2, + CAST( - 89 AS SIGNED ) AS col2
----
2
-89

skipif mysql # not compatible
query II rowsort label-5543
SELECT 79 + - 56 + - 21 col2, + CAST ( - 89 AS INTEGER ) AS col2
----
2
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-5544
SELECT - 75 * COUNT( * ) - - 10 AS col1
----
-65

skipif mysql # not compatible
query I rowsort label-5544
SELECT - 75 * COUNT ( * ) - - 10 AS col1
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-5545
SELECT - 74 + + MIN( ALL + + 11 ) * + COUNT( * ) * - 14 AS col0
----
-228

skipif mysql # not compatible
query I rowsort label-5545
SELECT - 74 + + MIN ( ALL + + 11 ) * + COUNT ( * ) * - 14 AS col0
----
-228

query I rowsort
SELECT - ( 19 ) - - - 88 + + ( + 7 ) * COALESCE ( - ( - + 84 ), 88 ) * + + 63 AS col0
----
36937

query I rowsort
SELECT ALL + 63 + + 26 AS col2
----
89

query II rowsort
SELECT + 62, - NULLIF ( + - ( - + 76 ), - 98 * - 56 * - 90 ) col0
----
62
-76

query I rowsort
SELECT DISTINCT + + 66 + 54
----
120

query I rowsort
SELECT ALL - 82 + - 89 col1
----
-171

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5551
SELECT 77 * - - NULLIF ( + + 21, - 41 ) * + 90 + 8 + 64 * COUNT( ( + - 91 ) ) + + 29 + - - 74 - + + 3 + + 14 DIV ( + 72 ) - COUNT( DISTINCT 42 ) + 33 - - + COUNT( * ) * 13 + + - COUNT( ALL 76 ) - - 18
----
145764

skipif mysql # not compatible
query I rowsort label-5551
SELECT 77 * - - NULLIF ( + + 21, - 41 ) * + 90 + 8 + 64 * COUNT ( ( + - 91 ) ) + + 29 + - - 74 - + + 3 + + 14 / ( + 72 ) - COUNT ( DISTINCT 42 ) + 33 - - + COUNT ( * ) * 13 + + - COUNT ( ALL 76 ) - - 18
----
145764

query I rowsort
SELECT - + 2 + 69 AS col1
----
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5553
SELECT DISTINCT + 80 + 6 * - NULLIF ( ( 90 ), 70 ) DIV - COUNT( * )
----
620

skipif mysql # not compatible
query I rowsort label-5553
SELECT DISTINCT + 80 + 6 * - NULLIF ( ( 90 ), 70 ) / - COUNT ( * )
----
620

onlyif mysql # DIV for integer division: 
query I rowsort label-5554
SELECT ALL + 20 + 81 DIV 69
----
21

skipif mysql # not compatible
query I rowsort label-5554
SELECT ALL + 20 + 81 / 69
----
21

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5556
SELECT + COUNT( * ) + COALESCE ( + - CAST( - - 48 AS SIGNED ), - SUM( 22 ), - ( - 56 ) ) + + 17 col2, 82 AS col2
----
-30
82

skipif mysql # not compatible
query II rowsort label-5556
SELECT + COUNT ( * ) + COALESCE ( + - CAST ( - - 48 AS INTEGER ), - SUM ( 22 ), - ( - 56 ) ) + + 17 col2, 82 AS col2
----
-30
82

onlyif mysql # aggregate syntax: 
query I rowsort label-5557
SELECT ALL - NULLIF ( - 54, - 1 ) + - COUNT( * ) * - COUNT( * ) * 52 AS col0
----
106

skipif mysql # not compatible
query I rowsort label-5557
SELECT ALL - NULLIF ( - 54, - 1 ) + - COUNT ( * ) * - COUNT ( * ) * 52 AS col0
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-5558
SELECT + COUNT( DISTINCT - 69 ) * 60 * 77 * + + 45
----
207900

skipif mysql # not compatible
query I rowsort label-5558
SELECT + COUNT ( DISTINCT - 69 ) * 60 * 77 * + + 45
----
207900

onlyif mysql # aggregate syntax: 
query I rowsort label-5559
SELECT + SUM( ALL + + 74 ) + 16
----
90

skipif mysql # not compatible
query I rowsort label-5559
SELECT + SUM ( ALL + + 74 ) + 16
----
90

query I rowsort
SELECT DISTINCT 2 - - 80 + - 98 + + ( + + 60 ) AS col2
----
44

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5562
SELECT + NULLIF ( - COUNT( * ), AVG ( + - 38 ) * 64 ) * 60 + + - 57 - - 77 * 32 * - NULLIF ( - 70, - + 8 + - 85 ) * SUM( DISTINCT - 15 ) + 79 - + COUNT( * ) * - 79 DIV - 68
----
-2587239

skipif mysql # not compatible
query I rowsort label-5562
SELECT + NULLIF ( - COUNT ( * ), AVG ( + - 38 ) * 64 ) * 60 + + - 57 - - 77 * 32 * - NULLIF ( - 70, - + 8 + - 85 ) * SUM ( DISTINCT - 15 ) + 79 - + COUNT ( * ) * - 79 / - 68
----
-2587239

query I rowsort
SELECT + ( - 24 ) - - + 85 + - 21 AS col2
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-5564
SELECT DISTINCT 66 DIV ( + 6 ) col1
----
11

skipif mysql # not compatible
query I rowsort label-5564
SELECT DISTINCT 66 / ( + 6 ) col1
----
11

query I rowsort
SELECT ALL 1 * - - 39 * - 73 col2
----
-2847

onlyif mysql # aggregate syntax: 
query II rowsort label-5566
SELECT + COALESCE ( 58, - ( + - 90 ) ) * + 76 AS col0, ( - + COUNT( * ) )
----
4408
-1

skipif mysql # not compatible
query II rowsort label-5566
SELECT + COALESCE ( 58, - ( + - 90 ) ) * + 76 AS col0, ( - + COUNT ( * ) )
----
4408
-1

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5569
SELECT ALL 95 * 33 DIV + 76 AS col0
----
41

skipif mysql # not compatible
query I rowsort label-5569
SELECT ALL 95 * 33 / + 76 AS col0
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-5570
SELECT + - 24 DIV - 5
----
4

skipif mysql # not compatible
query I rowsort label-5570
SELECT + - 24 / - 5
----
4

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5572
SELECT + 35 DIV - CAST( + 74 AS SIGNED ) + + ( + 28 ), MIN( ALL - COALESCE ( - + 7, - 26 ) ) col2
----
28
7

skipif mysql # not compatible
query II rowsort label-5572
SELECT + 35 / - CAST ( + 74 AS INTEGER ) + + ( + 28 ), MIN ( ALL - COALESCE ( - + 7, - 26 ) ) col2
----
28
7

onlyif mysql # DIV for integer division: 
query I rowsort label-5573
SELECT ALL - + 18 DIV + - 77 col2
----
0

skipif mysql # not compatible
query I rowsort label-5573
SELECT ALL - + 18 / + - 77 col2
----
0

query I rowsort
SELECT + - 33 + + 74 * 73 + - + 54
----
5315

query I rowsort
SELECT DISTINCT + + 79 col1
----
79

query I rowsort
SELECT - 47 * + + 54 + + 4 AS col1
----
-2534

onlyif mysql # aggregate syntax: 
query I rowsort label-5577
SELECT + MIN( DISTINCT - 96 ) AS col2
----
-96

skipif mysql # not compatible
query I rowsort label-5577
SELECT + MIN ( DISTINCT - 96 ) AS col2
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5578
SELECT ALL - CASE 70 WHEN - - 93 * - ( + 14 ) THEN - 84 + + - 2 WHEN - 21 THEN 44 / - 76 * - 86 * - 72 END * + + 67 + - 57 + - 15 * - 52 * + SUM( DISTINCT + - 24 ) + - 89 * + MIN( - + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5578
SELECT ALL - CASE 70 WHEN - - 93 * - ( + 14 ) THEN - 84 + + - 2 WHEN - 21 THEN 44 / - 76 * - 86 * - 72 END * + + 67 + - 57 + - 15 * - 52 * + SUM ( DISTINCT + - 24 ) + - 89 * + MIN ( - + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT ALL + 11 * - 97 - + + 16 + 41 * + - 17 + + - 58
----
-1838

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5580
SELECT + + 6 * + - 13 + - COALESCE ( COUNT( * ), 21 ) + - 13 DIV + - 51, 41 AS col1
----
-79
41

skipif mysql # not compatible
query II rowsort label-5580
SELECT + + 6 * + - 13 + - COALESCE ( COUNT ( * ), 21 ) + - 13 / + - 51, 41 AS col1
----
-79
41

query I rowsort
SELECT ALL + + CASE + 93 WHEN 46 + - 91 + + - 92 THEN - 42 + - ( 63 ) + - 28 * + CASE WHEN + 29 IN ( + 98, - 9 ) THEN 47 + + - 4 * - + 73 * - - 13 END END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5582
SELECT - + 56 DIV - 93 + + 60 + NULLIF ( + 73, - - 67 ) AS col2
----
133

skipif mysql # not compatible
query I rowsort label-5582
SELECT - + 56 / - 93 + + 60 + NULLIF ( + 73, - - 67 ) AS col2
----
133

query II rowsort
SELECT ALL - + ( + 85 ) * - + 45 + + 90 col1, 40 AS col2
----
3915
40

onlyif mysql # aggregate syntax: 
query I rowsort label-5584
SELECT SUM( + + 82 ) * + - 21 - 18 AS col2
----
-1740

skipif mysql # not compatible
query I rowsort label-5584
SELECT SUM ( + + 82 ) * + - 21 - 18 AS col2
----
-1740

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5585
SELECT DISTINCT ( CASE 6 WHEN + 38 THEN - 39 WHEN + + CASE 16 WHEN - 50 THEN - - 79 WHEN ( - - ( - - CAST( - COUNT( * ) AS SIGNED ) ) ) THEN NULL END * - - MIN( DISTINCT - - 91 ) THEN - + 17 * - - COUNT( * ) ELSE NULL END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5585
SELECT DISTINCT ( CASE 6 WHEN + 38 THEN - 39 WHEN + + CASE 16 WHEN - 50 THEN - - 79 WHEN ( - - ( - - CAST ( - COUNT ( * ) AS INTEGER ) ) ) THEN NULL END * - - MIN ( DISTINCT - - 91 ) THEN - + 17 * - - COUNT ( * ) ELSE NULL END ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5586
SELECT ALL 61 * ( - MIN( DISTINCT - 69 ) ) * 77
----
324093

skipif mysql # not compatible
query I rowsort label-5586
SELECT ALL 61 * ( - MIN ( DISTINCT - 69 ) ) * 77
----
324093

onlyif mysql # aggregate syntax: 
query I rowsort label-5587
SELECT - SUM( DISTINCT - 36 ) col2
----
36

skipif mysql # not compatible
query I rowsort label-5587
SELECT - SUM ( DISTINCT - 36 ) col2
----
36

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5590
SELECT + ( + SUM( ALL - 19 ) ) * - + 7 AS col1
----
133

skipif mysql # not compatible
query I rowsort label-5590
SELECT + ( + SUM ( ALL - 19 ) ) * - + 7 AS col1
----
133

query I rowsort
SELECT + ( + 42 ) + + 79 + + 36 - + 26 * - 98 AS col0
----
2705

onlyif mysql # aggregate syntax: 
query I rowsort label-5592
SELECT + 96 - - 29 * + - MIN( + 60 ) col2
----
-1644

skipif mysql # not compatible
query I rowsort label-5592
SELECT + 96 - - 29 * + - MIN ( + 60 ) col2
----
-1644

query I rowsort
SELECT DISTINCT + 0 * 14
----
0

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

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

query I rowsort
SELECT DISTINCT ( - NULLIF ( - + 34, - + 25 ) ) AS col2
----
34

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

skipif mysql # not compatible
query I rowsort label-5596
SELECT - SUM ( + 26 )
----
-26

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5598
SELECT - 6 DIV - - 35
----
0

skipif mysql # not compatible
query I rowsort label-5598
SELECT - 6 / - - 35
----
0

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

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

query I rowsort
SELECT - + 51 - - 18 AS col1
----
-33

query I rowsort
SELECT + 29 + - 54
----
-25

query I rowsort
SELECT DISTINCT - COALESCE ( - 42, + 35 )
----
42

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

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

query I rowsort
SELECT + 12 * - - 12
----
144

query I rowsort
SELECT + 56 * 59 AS col1
----
3304

onlyif mysql # DIV for integer division: 
query I rowsort label-5606
SELECT ( 39 ) DIV - 17 - + 82 * - 6 AS col2
----
490

skipif mysql # not compatible
query I rowsort label-5606
SELECT ( 39 ) / - 17 - + 82 * - 6 AS col2
----
490

query II rowsort
SELECT + 25 AS col1, - 52 col0
----
25
-52

query I rowsort
SELECT ALL 75 + - 7 AS col0
----
68

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

skipif mysql # not compatible
query I rowsort label-5609
SELECT + MAX ( - 15 )
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-5610
SELECT - - 6 * + - 82 * - - COUNT( DISTINCT 93 ) - 37 + - 59
----
-588

skipif mysql # not compatible
query I rowsort label-5610
SELECT - - 6 * + - 82 * - - COUNT ( DISTINCT 93 ) - 37 + - 59
----
-588

query I rowsort
SELECT + 72 + + + 54
----
126

query I rowsort
SELECT 35 * + 34
----
1190

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

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

query I rowsort
SELECT 60 * - - 12 AS col0
----
720

query I rowsort
SELECT DISTINCT 91 * 60 AS col0
----
5460

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5616
SELECT COALESCE ( - 55, 96 ) + + 50, CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) AS col2
----
-5
NULL

skipif mysql # not compatible
query II rowsort label-5616
SELECT COALESCE ( - 55, 96 ) + + 50, CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) AS col2
----
-5
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5617
SELECT 80 DIV - NULLIF ( + - 56, - COALESCE ( - + COUNT( * ), + - 85 DIV - - 34 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5617
SELECT 80 / - NULLIF ( + - 56, - COALESCE ( - + COUNT ( * ), + - 85 / - - 34 ) ) AS col1
----
1

query I rowsort
SELECT 50 * - 84 AS col1
----
-4200

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5620
SELECT 89 + + 6 * + - 72 * - 28 / + 65 + - + 59 + + COUNT( * ) / + 45 + MIN( + 65 ) * + - 65 / 84 * COUNT( * ) * + CASE + - 63 WHEN - - 94 THEN + 13 ELSE NULL END * - CAST( - 25 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5620
SELECT 89 + + 6 * + - 72 * - 28 / + 65 + - + 59 + + COUNT ( * ) / + 45 + MIN ( + 65 ) * + - 65 / 84 * COUNT ( * ) * + CASE + - 63 WHEN - - 94 THEN + 13 ELSE NULL END * - CAST ( - 25 AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5621
SELECT DISTINCT 55 * - 25, CAST( + - ( + 1 ) AS SIGNED ) * - NULLIF ( - 55, + 74 * + 37 + - + 82 ) * CASE - 3 WHEN + 63 * 47 * + 36 THEN + + 53 WHEN - COUNT( * ) THEN NULL WHEN 33 THEN + + 93 END + + 34 + + 85 + + + 50 AS col1
----
-1375
NULL

skipif mysql # not compatible
query II rowsort label-5621
SELECT DISTINCT 55 * - 25, CAST ( + - ( + 1 ) AS INTEGER ) * - NULLIF ( - 55, + 74 * + 37 + - + 82 ) * CASE - 3 WHEN + 63 * 47 * + 36 THEN + + 53 WHEN - COUNT ( * ) THEN NULL WHEN 33 THEN + + 93 END + + 34 + + 85 + + + 50 AS col1
----
-1375
NULL

query II rowsort
SELECT - 31 AS col0, 8 * - 92
----
-31
-736

onlyif mysql # aggregate syntax: 
query I rowsort label-5623
SELECT 76 + MIN( DISTINCT + 94 )
----
170

skipif mysql # not compatible
query I rowsort label-5623
SELECT 76 + MIN ( DISTINCT + 94 )
----
170

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5624
SELECT - 86 AS col0, + CAST( 18 AS SIGNED ) * - 74 + - 51 AS col0
----
-86
-1383

skipif mysql # not compatible
query II rowsort label-5624
SELECT - 86 AS col0, + CAST ( 18 AS INTEGER ) * - 74 + - 51 AS col0
----
-86
-1383

query II rowsort
SELECT ALL 88 col1, - 21
----
88
-21

query I rowsort
SELECT 85 + + 60 * + 19
----
1225

query I rowsort
SELECT ALL + 14 + - 57 * 71 + 40 + - + 62 col0
----
-4055

query II rowsort
SELECT - 97 AS col1, - 86
----
-97
-86

query II rowsort
SELECT 60 col0, 45 AS col1
----
60
45

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5631
SELECT - COUNT( * ), - 51 + + 58 * + + 11 + 80 AS col1
----
-1
667

skipif mysql # not compatible
query II rowsort label-5631
SELECT - COUNT ( * ), - 51 + + 58 * + + 11 + 80 AS col1
----
-1
667

query II rowsort
SELECT ALL 35 AS col2, + 25 * + 13 + - 40 * ( + 65 ) AS col0
----
35
-2275

onlyif mysql # aggregate syntax: 
query I rowsort label-5633
SELECT DISTINCT - - COALESCE ( 31, + + COUNT( * ) ) + 29
----
60

skipif mysql # not compatible
query I rowsort label-5633
SELECT DISTINCT - - COALESCE ( 31, + + COUNT ( * ) ) + 29
----
60

query I rowsort
SELECT DISTINCT - 34 * + + 87 - + + 52 AS col2
----
-3010

query II rowsort
SELECT ALL - 67, - 77 + + 38 AS col1
----
-67
-39

query II rowsort
SELECT DISTINCT - + 30 + - - 65 AS col0, - 34 AS col0
----
35
-34

onlyif mysql # aggregate syntax: 
query II rowsort label-5637
SELECT DISTINCT - + 2 AS col2, - NULLIF ( + - 23, - COUNT( * ) ) * - 34 - + - COUNT( * )
----
-2
-781

skipif mysql # not compatible
query II rowsort label-5637
SELECT DISTINCT - + 2 AS col2, - NULLIF ( + - 23, - COUNT ( * ) ) * - 34 - + - COUNT ( * )
----
-2
-781

onlyif mysql # DIV for integer division: 
query I rowsort label-5638
SELECT 89 DIV - 3 + + 33 * + 67
----
2182

skipif mysql # not compatible
query I rowsort label-5638
SELECT 89 / - 3 + + 33 * + 67
----
2182

query I rowsort
SELECT ALL - 84 + 61 * + 19
----
1075

query I rowsort
SELECT DISTINCT - 51 + + 54
----
3

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

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

query I rowsort
SELECT + 12 + + 95
----
107

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5643
SELECT ALL - + CAST( + 7 AS SIGNED )
----
-7

skipif mysql # not compatible
query I rowsort label-5643
SELECT ALL - + CAST ( + 7 AS INTEGER )
----
-7

query II rowsort
SELECT DISTINCT - 85, 5 AS col1
----
-85
5

query II rowsort
SELECT DISTINCT - - 35, - 63 col1
----
35
-63

query II rowsort
SELECT DISTINCT - 7 * - - 50 AS col2, 9 * - 67
----
-350
-603

query I rowsort
SELECT DISTINCT 97 * + 55 AS col0
----
5335

query I rowsort
SELECT ALL CASE WHEN NOT 6 IS NOT NULL THEN NULL ELSE 97 END * - + 52 AS col1
----
-5044

onlyif mysql # DIV for integer division: 
query I rowsort label-5649
SELECT 25 DIV + - 53 * - 63 * 82
----
0

skipif mysql # not compatible
query I rowsort label-5649
SELECT 25 / + - 53 * - 63 * 82
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5650
SELECT 35 - 6 * - CAST( NULL AS SIGNED ) * 98 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5650
SELECT 35 - 6 * - CAST ( NULL AS INTEGER ) * 98 AS col2
----
NULL

query I rowsort
SELECT 70 * 95 * - 5
----
-33250

query I rowsort
SELECT - 82 * - 58 - + 58 AS col1
----
4698

onlyif mysql # aggregate syntax: 
query I rowsort label-5653
SELECT + COALESCE ( + - COUNT( * ), + - 12 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-5653
SELECT + COALESCE ( + - COUNT ( * ), + - 12 ) col0
----
-1

query I rowsort
SELECT 60 * 37 * - + 51 AS col0
----
-113220

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

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

query II rowsort
SELECT DISTINCT 49 + + 17, + 35 + + 92 AS col1
----
66
127

onlyif mysql # aggregate syntax: 
query I rowsort label-5657
SELECT DISTINCT 8 + + 15 + NULLIF ( - 82, NULLIF ( + 32, COALESCE ( COUNT( * ), - - COUNT( * ) ) / + 28 ) * + 72 * - + 34 ) * 84
----
-6865

skipif mysql # not compatible
query I rowsort label-5657
SELECT DISTINCT 8 + + 15 + NULLIF ( - 82, NULLIF ( + 32, COALESCE ( COUNT ( * ), - - COUNT ( * ) ) / + 28 ) * + 72 * - + 34 ) * 84
----
-6865

onlyif mysql # aggregate syntax: 
query I rowsort label-5658
SELECT ALL - SUM( + - 8 ) * - 78 AS col1
----
-624

skipif mysql # not compatible
query I rowsort label-5658
SELECT ALL - SUM ( + - 8 ) * - 78 AS col1
----
-624

onlyif mysql # aggregate syntax: 
query II rowsort label-5659
SELECT SUM( 70 ) * + + 34 AS col1, - 20 AS col1
----
2380
-20

skipif mysql # not compatible
query II rowsort label-5659
SELECT SUM ( 70 ) * + + 34 AS col1, - 20 AS col1
----
2380
-20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5660
SELECT DISTINCT 84 + 84 DIV ( - 23 ) - COUNT( * ) + + NULLIF ( 10, + COUNT( * ) - - - 48 * - 59 ) AS col1
----
90

skipif mysql # not compatible
query I rowsort label-5660
SELECT DISTINCT 84 + 84 / ( - 23 ) - COUNT ( * ) + + NULLIF ( 10, + COUNT ( * ) - - - 48 * - 59 ) AS col1
----
90

query I rowsort
SELECT ALL 42 + - 71 AS col2
----
-29

query I rowsort
SELECT - CASE WHEN NOT NULL IS NOT NULL THEN - ( 43 ) ELSE - CASE 42 WHEN 98 THEN - + 80 + + 65 ELSE NULL END END
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5663
SELECT + 24 + + NULLIF ( + 23, + COUNT( + 16 ) * - ( - COUNT( * ) ) * + + 72 * + 3 / 53 / - CAST( NULL AS SIGNED ) ) AS col0
----
47

skipif mysql # not compatible
query I rowsort label-5663
SELECT + 24 + + NULLIF ( + 23, + COUNT ( + 16 ) * - ( - COUNT ( * ) ) * + + 72 * + 3 / 53 / - CAST ( NULL AS INTEGER ) ) AS col0
----
47

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5665
SELECT + CAST( NULL AS DECIMAL ) + - + 69 - 45 * + 35 / - 23 * + 22
----
NULL

skipif mysql # not compatible
query I rowsort label-5665
SELECT + CAST ( NULL AS REAL ) + - + 69 - 45 * + 35 / - 23 * + 22
----
NULL

query II rowsort
SELECT ALL ( + + COALESCE ( - 91, - 14 - + + 70 ) ) * + 33 * 85 * 12 AS col1, + 15
----
-3063060
15

onlyif mysql # aggregate syntax: 
query II rowsort label-5667
SELECT DISTINCT 12 + - + 1 * ( + MAX( + - 41 ) ), + 64 AS col2
----
53
64

skipif mysql # not compatible
query II rowsort label-5667
SELECT DISTINCT 12 + - + 1 * ( + MAX ( + - 41 ) ), + 64 AS col2
----
53
64

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

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

query I rowsort
SELECT ALL + - 57 * 66
----
-3762

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5670
SELECT COUNT( DISTINCT - CAST( 42 AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-5670
SELECT COUNT ( DISTINCT - CAST ( 42 AS INTEGER ) )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5671
SELECT ALL + 13 - + 47 AS col1, 62 * + COUNT( DISTINCT + + 9 )
----
-34
62

skipif mysql # not compatible
query II rowsort label-5671
SELECT ALL + 13 - + 47 AS col1, 62 * + COUNT ( DISTINCT + + 9 )
----
-34
62

query I rowsort
SELECT + 13 + - + 10 AS col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5673
SELECT - MAX( + 85 ) * - 42 AS col2
----
3570

skipif mysql # not compatible
query I rowsort label-5673
SELECT - MAX ( + 85 ) * - 42 AS col2
----
3570

query I rowsort
SELECT - - 94 * + 9 * 37 AS col2
----
31302

onlyif mysql # aggregate syntax: 
query I rowsort label-5675
SELECT - + 67 * + ( - MIN( ALL 1 ) ) + + 99 AS col0
----
166

skipif mysql # not compatible
query I rowsort label-5675
SELECT - + 67 * + ( - MIN ( ALL 1 ) ) + + 99 AS col0
----
166

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5676
SELECT - CASE - 4 WHEN - 9 * + 90 + + COUNT( * ) THEN - 26 END * - CASE - MIN( DISTINCT - 76 ) WHEN + 67 THEN + - COALESCE ( + 3, + COUNT( * ) + + 25 - + - 17 - CAST( 2 AS SIGNED ) ) ELSE + MIN( - 48 ) END * + 70 * - 61 * - 78, + CAST( - 75 AS SIGNED ) DIV - + 36 AS col1
----
NULL
2

skipif mysql # not compatible
query II rowsort label-5676
SELECT - CASE - 4 WHEN - 9 * + 90 + + COUNT ( * ) THEN - 26 END * - CASE - MIN ( DISTINCT - 76 ) WHEN + 67 THEN + - COALESCE ( + 3, + COUNT ( * ) + + 25 - + - 17 - CAST ( 2 AS INTEGER ) ) ELSE + MIN ( - 48 ) END * + 70 * - 61 * - 78, + CAST ( - 75 AS INTEGER ) / - + 36 AS col1
----
NULL
2

query I rowsort
SELECT - + 17 - - - 23 + - + 77 * - 18 * - ( 52 ) * - - 88 - - + 91 AS col0
----
-6342285

query I rowsort
SELECT ALL + 4 * - + 63 - + 13 + + - 23 col1
----
-288

query I rowsort
SELECT - - ( 42 ) + + 6
----
48

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

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

query I rowsort
SELECT - 21 * + 3 AS col2
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-5682
SELECT - COUNT( * ) * + MAX( - 72 )
----
72

skipif mysql # not compatible
query I rowsort label-5682
SELECT - COUNT ( * ) * + MAX ( - 72 )
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5683
SELECT - 3 / 23 * + ( - 3 ) + 75 / - NULLIF ( - CAST( NULL AS SIGNED ), - 43 ) * + 96 * + 39 + - 8 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5683
SELECT - 3 / 23 * + ( - 3 ) + 75 / - NULLIF ( - CAST ( NULL AS INTEGER ), - 43 ) * + 96 * + 39 + - 8 col1
----
NULL

query I rowsort
SELECT ALL + COALESCE ( 6, 15 )
----
6

query I rowsort
SELECT - 15 + - + 44 + + ( - CASE 51 WHEN + 7 THEN NULL WHEN 6 / 63 * - 22 - - - 95 THEN 66 END ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5686
SELECT 58 * + COUNT( * ) - + ( - MAX( - + 34 ) ) + + - 37 * - + CAST( NULL AS SIGNED ) * + COUNT( * ) + + 54 * + 7 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5686
SELECT 58 * + COUNT ( * ) - + ( - MAX ( - + 34 ) ) + + - 37 * - + CAST ( NULL AS INTEGER ) * + COUNT ( * ) + + 54 * + 7 / + CAST ( NULL AS INTEGER )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-5687
SELECT + COUNT ( * ) * 59 + - + 13 AS col1
----
46

query I rowsort
SELECT ALL 3 * - - 19
----
57

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

query I rowsort
SELECT DISTINCT 37 * - CASE 77 WHEN + - 2 THEN NULL ELSE 92 * - 85 * - 66 END AS col0
----
-19096440

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5691
SELECT ALL + 59 * + - COALESCE ( CAST( NULL AS SIGNED ), 69 + + COUNT( * ) - - + 75 * + 90 )
----
-402380

skipif mysql # not compatible
query I rowsort label-5691
SELECT ALL + 59 * + - COALESCE ( CAST ( NULL AS INTEGER ), 69 + + COUNT ( * ) - - + 75 * + 90 )
----
-402380

query I rowsort
SELECT + 37 + 5 AS col0
----
42

query I rowsort
SELECT DISTINCT 1 * 56 AS col0
----
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5694
SELECT - ( + - COUNT( * ) ) * - - 2 DIV - 50, 27 * + ( + 73 ) col2
----
0
1971

skipif mysql # not compatible
query II rowsort label-5694
SELECT - ( + - COUNT ( * ) ) * - - 2 / - 50, 27 * + ( + 73 ) col2
----
0
1971

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

query I rowsort
SELECT - ( + 12 ) + - 37 AS col0
----
-49

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5698
SELECT + COUNT( * ) + + 72 - - 71 * 36 * + ( + 21 ), COUNT( * ) * 11 AS col0
----
53749
11

skipif mysql # not compatible
query II rowsort label-5698
SELECT + COUNT ( * ) + + 72 - - 71 * 36 * + ( + 21 ), COUNT ( * ) * 11 AS col0
----
53749
11

query I rowsort
SELECT + 24 * + - CASE + - NULLIF ( + 34, + 58 ) WHEN + 1 THEN - 71 - + 48 END * - - 56 + 50
----
NULL

query II rowsort
SELECT ALL 95 col1, - 49
----
95
-49

onlyif mysql # aggregate syntax: 
query II rowsort label-5701
SELECT ALL 19 AS col0, - COALESCE ( - + 90, - 25 + + 76 ) * COUNT( * ) AS col0
----
19
90

skipif mysql # not compatible
query II rowsort label-5701
SELECT ALL 19 AS col0, - COALESCE ( - + 90, - 25 + + 76 ) * COUNT ( * ) AS col0
----
19
90

query I rowsort
SELECT DISTINCT 83 + - 37
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5703
SELECT ALL + COUNT( * ) * ( - 25 ) + 34
----
9

skipif mysql # not compatible
query I rowsort label-5703
SELECT ALL + COUNT ( * ) * ( - 25 ) + 34
----
9

query I rowsort
SELECT DISTINCT 1 - - - 75
----
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5705
SELECT ALL + 84 - + - ( - + 30 ) - + 76 + - 77 + - 14 * - CAST( NULL AS SIGNED ) + - 17 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5705
SELECT ALL + 84 - + - ( - + 30 ) - + 76 + - 77 + - 14 * - CAST ( NULL AS INTEGER ) + - 17 AS col1
----
NULL

query I rowsort
SELECT + 97 + 25 AS col1
----
122

query II rowsort
SELECT - 32 AS col1, 71
----
-32
71

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

skipif mysql # not compatible
query I rowsort label-5708
SELECT + 11 + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - - 7 + + 14 col0
----
21

query I rowsort
SELECT ALL ( - 33 ) col0
----
-33

query I rowsort
SELECT DISTINCT + 90 * + 2
----
180

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5713
SELECT + - MIN( ALL + CAST( + - 44 AS SIGNED ) ) DIV 72 DIV 68
----
0

skipif mysql # not compatible
query I rowsort label-5713
SELECT + - MIN ( ALL + CAST ( + - 44 AS INTEGER ) ) / 72 / 68
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5714
SELECT NULLIF ( + 61, 43 * + COUNT( * ) + + - CAST( NULL AS SIGNED ) ) AS col0
----
61

skipif mysql # not compatible
query I rowsort label-5714
SELECT NULLIF ( + 61, 43 * + COUNT ( * ) + + - CAST ( NULL AS INTEGER ) ) AS col0
----
61

onlyif mysql # DIV for integer division: 
query I rowsort label-5715
SELECT + - 2 DIV + 66 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5715
SELECT + - 2 / + 66 AS col0
----
0

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

skipif mysql # not compatible
query I rowsort label-5716
SELECT - COUNT ( * ) * ( 73 )
----
-73

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

skipif mysql # not compatible
query I rowsort label-5717
SELECT ALL 24 / 34 + + - COUNT ( * )
----
-1

query I rowsort
SELECT DISTINCT - 44 * - 92 * 82
----
331936

query I rowsort
SELECT DISTINCT + 72 * - 49 * - - 12 AS col2
----
-42336

onlyif mysql # aggregate syntax: 
query I rowsort label-5720
SELECT - MAX( + - ( - 90 ) ) * 72 * SUM( ALL + 19 ) AS col2
----
-123120

skipif mysql # not compatible
query I rowsort label-5720
SELECT - MAX ( + - ( - 90 ) ) * 72 * SUM ( ALL + 19 ) AS col2
----
-123120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5721
SELECT ALL + ( + 51 ) DIV ( + CASE COALESCE ( + - CAST( NULL AS SIGNED ), - CAST( + 49 AS SIGNED ) ) WHEN COALESCE ( - 42, - 32 ) * 55 - COUNT( DISTINCT + + 39 ) + - + 26 * - + 30 THEN NULL ELSE 36 * - + 51 + 26 END ) * + 7 + + 48 AS col2
----
48

skipif mysql # not compatible
query I rowsort label-5721
SELECT ALL + ( + 51 ) / ( + CASE COALESCE ( + - CAST ( NULL AS INTEGER ), - CAST ( + 49 AS INTEGER ) ) WHEN COALESCE ( - 42, - 32 ) * 55 - COUNT ( DISTINCT + + 39 ) + - + 26 * - + 30 THEN NULL ELSE 36 * - + 51 + 26 END ) * + 7 + + 48 AS col2
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-5722
SELECT ALL + COALESCE ( + 31, - - COUNT( * ) )
----
31

skipif mysql # not compatible
query I rowsort label-5722
SELECT ALL + COALESCE ( + 31, - - COUNT ( * ) )
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-5723
SELECT ALL 80 DIV - - 7 + 26
----
37

skipif mysql # not compatible
query I rowsort label-5723
SELECT ALL 80 / - - 7 + 26
----
37

query I rowsort
SELECT DISTINCT + 73 * - + 75
----
-5475

query I rowsort
SELECT ALL - COALESCE ( - + 59, + 22, - 15 * 74 ) AS col1
----
59

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

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

query I rowsort
SELECT + 35 * - 57 * + 35 - - + 6 + - 85 + - 49 AS col0
----
-69953

onlyif mysql # aggregate syntax: 
query I rowsort label-5728
SELECT ALL - CASE + 18 WHEN ( + 88 ) + + COALESCE ( + + 23, + 1 * - 91 - 32 + + SUM( DISTINCT + 55 ) * + 12 * - - 92 ) + COUNT( * ) * ( - 40 ) * 72 THEN NULL ELSE - 79 END + + 80
----
159

skipif mysql # not compatible
query I rowsort label-5728
SELECT ALL - CASE + 18 WHEN ( + 88 ) + + COALESCE ( + + 23, + 1 * - 91 - 32 + + SUM ( DISTINCT + 55 ) * + 12 * - - 92 ) + COUNT ( * ) * ( - 40 ) * 72 THEN NULL ELSE - 79 END + + 80
----
159

onlyif mysql # aggregate syntax: 
query I rowsort label-5729
SELECT DISTINCT + COUNT( * ) * SUM( ALL - + 89 )
----
-89

skipif mysql # not compatible
query I rowsort label-5729
SELECT DISTINCT + COUNT ( * ) * SUM ( ALL - + 89 )
----
-89

query I rowsort
SELECT DISTINCT - 83 - + 15 AS col0
----
-98

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

skipif mysql # not compatible
query I rowsort label-5731
SELECT DISTINCT + - COUNT ( * ) - - 53 AS col1
----
52

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

query I rowsort
SELECT 52 * + 58 * + + 43
----
129688

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5734
SELECT ALL - + 73 * COUNT( * ) DIV 61
----
-1

skipif mysql # not compatible
query I rowsort label-5734
SELECT ALL - + 73 * COUNT ( * ) / 61
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5735
SELECT 55 + CAST( - 8 AS SIGNED ) col1
----
47

skipif mysql # not compatible
query I rowsort label-5735
SELECT 55 + CAST ( - 8 AS INTEGER ) col1
----
47

query I rowsort
SELECT + 65 + - - 42
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-5737
SELECT DISTINCT - 5 - COUNT( - 68 )
----
-6

skipif mysql # not compatible
query I rowsort label-5737
SELECT DISTINCT - 5 - COUNT ( - 68 )
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5738
SELECT ALL CAST( 83 AS SIGNED ) AS col2
----
83

skipif mysql # not compatible
query I rowsort label-5738
SELECT ALL CAST ( 83 AS INTEGER ) AS col2
----
83

query I rowsort
SELECT + 22 * - - ( 12 )
----
264

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5741
SELECT 70 + + NULLIF ( COUNT( * ), + ( - 1 ) )
----
71

skipif mysql # not compatible
query I rowsort label-5741
SELECT 70 + + NULLIF ( COUNT ( * ), + ( - 1 ) )
----
71

query I rowsort
SELECT + 11 + + 53
----
64

onlyif mysql # DIV for integer division: 
query I rowsort label-5743
SELECT 93 DIV + + 69 col2
----
1

skipif mysql # not compatible
query I rowsort label-5743
SELECT 93 / + + 69 col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5744
SELECT CASE - CAST( NULL AS SIGNED ) WHEN + 87 * - + ( + - 13 ) + 49 THEN NULL ELSE - COUNT( * ) END + ( + - CAST( NULL AS SIGNED ) ) + + 61 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5744
SELECT CASE - CAST ( NULL AS INTEGER ) WHEN + 87 * - + ( + - 13 ) + 49 THEN NULL ELSE - COUNT ( * ) END + ( + - CAST ( NULL AS INTEGER ) ) + + 61 AS col0
----
NULL

query I rowsort
SELECT ALL 27 * + - 15 AS col1
----
-405

onlyif mysql # aggregate syntax: 
query I rowsort label-5746
SELECT ALL 73 + COUNT( * ) * + - 52 * - + ( 30 )
----
1633

skipif mysql # not compatible
query I rowsort label-5746
SELECT ALL 73 + COUNT ( * ) * + - 52 * - + ( 30 )
----
1633

query I rowsort
SELECT DISTINCT 32 + 50
----
82

query I rowsort
SELECT ALL + 68 + - 71 AS col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5749
SELECT CASE 8 WHEN - + 29 / - 33 + - - 13 + - 81 + - 95 * - 48 THEN + ( + 58 ) * 9 + + 3 WHEN 84 THEN NULL WHEN - COUNT( * ) * + 87 THEN + MIN( DISTINCT - 65 ) * CASE - 36 WHEN 82 * - 27 THEN NULL ELSE + 79 / + 17 END WHEN - + 32 + - - 70 / + 89 THEN NULL END + + 8 * - + 83 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5749
SELECT CASE 8 WHEN - + 29 / - 33 + - - 13 + - 81 + - 95 * - 48 THEN + ( + 58 ) * 9 + + 3 WHEN 84 THEN NULL WHEN - COUNT ( * ) * + 87 THEN + MIN ( DISTINCT - 65 ) * CASE - 36 WHEN 82 * - 27 THEN NULL ELSE + 79 / + 17 END WHEN - + 32 + - - 70 / + 89 THEN NULL END + + 8 * - + 83 AS col2
----
NULL

query I rowsort
SELECT ALL 67 + + 10 + 2 + + 48 - - 58
----
185

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5751
SELECT DISTINCT 85 + + + CASE 79 WHEN + CAST( NULL AS SIGNED ) THEN NULL WHEN + 71 THEN CASE - COUNT( * ) WHEN + 7 THEN NULL WHEN 8 - - 86 THEN + CAST( COUNT( * ) AS DECIMAL ) + + 38 ELSE NULL END ELSE NULL END - 60 * - 5 + - - 58 + + NULLIF ( 91, 18 ) + 54 - - 18
----
NULL

skipif mysql # not compatible
query I rowsort label-5751
SELECT DISTINCT 85 + + + CASE 79 WHEN + CAST ( NULL AS INTEGER ) THEN NULL WHEN + 71 THEN CASE - COUNT ( * ) WHEN + 7 THEN NULL WHEN 8 - - 86 THEN + CAST ( COUNT ( * ) AS REAL ) + + 38 ELSE NULL END ELSE NULL END - 60 * - 5 + - - 58 + + NULLIF ( 91, 18 ) + 54 - - 18
----
NULL

query II rowsort
SELECT 6, 86 col0
----
6
86

onlyif mysql # DIV for integer division: 
query I rowsort label-5753
SELECT DISTINCT 61 DIV - 81 * - + 37 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5753
SELECT DISTINCT 61 / - 81 * - + 37 AS col1
----
0

query I rowsort
SELECT ALL 20 + + + 42
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-5755
SELECT + 57 DIV - - 3 + + 81 col0
----
100

skipif mysql # not compatible
query I rowsort label-5755
SELECT + 57 / - - 3 + + 81 col0
----
100

query I rowsort
SELECT 79 + - 77 + + 58
----
60

query I rowsort
SELECT 85 * - 27
----
-2295

query I rowsort
SELECT DISTINCT + 24 * 68 AS col2
----
1632

onlyif mysql # aggregate syntax: 
query I rowsort label-5759
SELECT DISTINCT COUNT( * ) - - - 78
----
-77

skipif mysql # not compatible
query I rowsort label-5759
SELECT DISTINCT COUNT ( * ) - - - 78
----
-77

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

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

query I rowsort
SELECT ALL + 33 * 8 AS col2
----
264

onlyif mysql # aggregate syntax: 
query II rowsort label-5762
SELECT DISTINCT - 52, + COUNT( * ) + + NULLIF ( + 66, 67 ) AS col2
----
-52
67

skipif mysql # not compatible
query II rowsort label-5762
SELECT DISTINCT - 52, + COUNT ( * ) + + NULLIF ( + 66, 67 ) AS col2
----
-52
67

query I rowsort
SELECT DISTINCT + - 21 * + + 50 AS col0
----
-1050

query I rowsort
SELECT + 93 + + - 43 * - + 46 * + 26
----
51521

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5765
SELECT ALL - CASE + 86 WHEN 1 * - 71 * + + CAST( NULL AS SIGNED ) THEN NULL WHEN 22 THEN NULL ELSE + - 77 + - + 82 END AS col1, COUNT( * ) AS col1
----
159
1

skipif mysql # not compatible
query II rowsort label-5765
SELECT ALL - CASE + 86 WHEN 1 * - 71 * + + CAST ( NULL AS INTEGER ) THEN NULL WHEN 22 THEN NULL ELSE + - 77 + - + 82 END AS col1, COUNT ( * ) AS col1
----
159
1

query I rowsort
SELECT ALL - 85 * + 46 + - ( 57 ) * + 6 * 29
----
-13828

query I rowsort
SELECT 77 + + 36 AS col2
----
113

query I rowsort
SELECT - 29 + - + 10
----
-39

onlyif mysql # aggregate syntax: 
query II rowsort label-5769
SELECT 17 AS col1, - MAX( + + 91 ) AS col1
----
17
-91

skipif mysql # not compatible
query II rowsort label-5769
SELECT 17 AS col1, - MAX ( + + 91 ) AS col1
----
17
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5770
SELECT + 43 + + COUNT( * )
----
44

skipif mysql # not compatible
query I rowsort label-5770
SELECT + 43 + + COUNT ( * )
----
44

query I rowsort
SELECT ALL - 24 + 21 AS col2
----
-3

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

skipif mysql # not compatible
query I rowsort label-5772
SELECT - SUM ( DISTINCT 82 )
----
-82

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

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

query I rowsort
SELECT ALL + + 66 + - 16 AS col0
----
50

query I rowsort
SELECT - CASE - - 44 WHEN - 1 THEN 45 + + 81 WHEN + + 82 + 68 THEN NULL ELSE NULL END AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-5776
SELECT + 9 / + + COUNT ( * ) AS col0
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5777
SELECT ALL 48 + MIN( ALL 69 ) AS col2, ( + 18 ) + COUNT( * ) - - CASE + 74 WHEN + 14 THEN 76 + + 18 / - 36 * - - ( - - 62 ) + - 75 + COUNT( DISTINCT 80 ) - ( - 40 ) * + NULLIF ( 2, 13 ) / 90 + COUNT( - - 48 ) WHEN - CAST( NULL AS SIGNED ) + - 95 THEN NULL WHEN + + 24 + COUNT( * ) + + + 54 * + + 37 THEN NULL END * 76 AS col1
----
117
NULL

skipif mysql # not compatible
query II rowsort label-5777
SELECT ALL 48 + MIN ( ALL 69 ) AS col2, ( + 18 ) + COUNT ( * ) - - CASE + 74 WHEN + 14 THEN 76 + + 18 / - 36 * - - ( - - 62 ) + - 75 + COUNT ( DISTINCT 80 ) - ( - 40 ) * + NULLIF ( 2, 13 ) / 90 + COUNT ( - - 48 ) WHEN - CAST ( NULL AS INTEGER ) + - 95 THEN NULL WHEN + + 24 + COUNT ( * ) + + + 54 * + + 37 THEN NULL END * 76 AS col1
----
117
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5779
SELECT CAST( COALESCE ( + COUNT( * ), 19 ) AS SIGNED ) * - ( MAX( 47 ) ) DIV + + ( + 71 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5779
SELECT CAST ( COALESCE ( + COUNT ( * ), 19 ) AS INTEGER ) * - ( MAX ( 47 ) ) / + + ( + 71 ) AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5780
SELECT ALL + - CAST( 69 AS SIGNED ) + + - 76 + - 51
----
-196

skipif mysql # not compatible
query I rowsort label-5780
SELECT ALL + - CAST ( 69 AS INTEGER ) + + - 76 + - 51
----
-196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5781
SELECT DISTINCT - COALESCE ( + + 41, + 96 ) + + COUNT( * ) col1, - 5 * + CAST( 87 AS SIGNED )
----
-40
-435

skipif mysql # not compatible
query II rowsort label-5781
SELECT DISTINCT - COALESCE ( + + 41, + 96 ) + + COUNT ( * ) col1, - 5 * + CAST ( 87 AS INTEGER )
----
-40
-435

query II rowsort
SELECT 48, - 16 AS col0
----
48
-16

query I rowsort
SELECT 70 + - - 84 * + - 81
----
-6734

query I rowsort
SELECT ALL NULLIF ( 73, - + 94 )
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-5785
SELECT ALL 73 * COUNT( ALL - COALESCE ( + 1, 72 ) )
----
73

skipif mysql # not compatible
query I rowsort label-5785
SELECT ALL 73 * COUNT ( ALL - COALESCE ( + 1, 72 ) )
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5786
SELECT COALESCE ( - - CAST( ( 47 ) AS SIGNED ), - 26 )
----
47

skipif mysql # not compatible
query I rowsort label-5786
SELECT COALESCE ( - - CAST ( ( 47 ) AS INTEGER ), - 26 )
----
47

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5789
SELECT + 32 + + 93 - + - 4 * + + ( - + COUNT( * ) ) col0
----
121

skipif mysql # not compatible
query I rowsort label-5789
SELECT + 32 + + 93 - + - 4 * + + ( - + COUNT ( * ) ) col0
----
121

query I rowsort
SELECT ALL 37 * 82 * + 70 AS col2
----
212380

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5792
SELECT ALL 72 * + 40 * - - MIN( DISTINCT 39 ) AS col0
----
112320

skipif mysql # not compatible
query I rowsort label-5792
SELECT ALL 72 * + 40 * - - MIN ( DISTINCT 39 ) AS col0
----
112320

onlyif mysql # aggregate syntax: 
query I rowsort label-5793
SELECT CASE - - 5 WHEN + 47 * 18 + + + COUNT( * ) THEN 36 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5793
SELECT CASE - - 5 WHEN + 47 * 18 + + + COUNT ( * ) THEN 36 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5794
SELECT + NULLIF ( + - 25, 39 + COUNT( * ) )
----
-25

skipif mysql # not compatible
query I rowsort label-5794
SELECT + NULLIF ( + - 25, 39 + COUNT ( * ) )
----
-25

query I rowsort
SELECT + 65 * - 49 * 46
----
-146510

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5797
SELECT ALL + MAX( ALL 14 ) DIV 78 * CASE - ( - 48 ) WHEN - + SUM( DISTINCT - - 43 ) THEN NULL ELSE - 76 * - 33 * 11 END col2
----
0

skipif mysql # not compatible
query I rowsort label-5797
SELECT ALL + MAX ( ALL 14 ) / 78 * CASE - ( - 48 ) WHEN - + SUM ( DISTINCT - - 43 ) THEN NULL ELSE - 76 * - 33 * 11 END col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5798
SELECT - - 85 DIV + 21
----
4

skipif mysql # not compatible
query I rowsort label-5798
SELECT - - 85 / + 21
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5799
SELECT + ( + + MIN( - 68 ) ) * 98 * - + 98 * + - MAX( + 63 ) + + 9 AS col1
----
-41143527

skipif mysql # not compatible
query I rowsort label-5799
SELECT + ( + + MIN ( - 68 ) ) * 98 * - + 98 * + - MAX ( + 63 ) + + 9 AS col1
----
-41143527

query I rowsort
SELECT ALL - - 43 * - 48
----
-2064

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5801
SELECT ALL + 45 * - 30 + COUNT( * ) * - + 59 AS col0, 37 DIV 32 DIV - + 11 + + MAX( - 8 )
----
-1409
-8

skipif mysql # not compatible
query II rowsort label-5801
SELECT ALL + 45 * - 30 + COUNT ( * ) * - + 59 AS col0, 37 / 32 / - + 11 + + MAX ( - 8 )
----
-1409
-8

query I rowsort
SELECT DISTINCT 78 + 87 + - 22 + 3 * 53 * + 96 * - 62 * 52 * - + 38
----
1870023311

onlyif mysql # aggregate syntax: 
query II rowsort label-5803
SELECT ALL 56 AS col0, + MAX( CASE + 62 WHEN ( + NULLIF ( - 14, - + 15 * ( + - 77 ) + + 53 ) ) THEN - - 2 ELSE + 9 + + 16 END ) AS col1
----
56
25

skipif mysql # not compatible
query II rowsort label-5803
SELECT ALL 56 AS col0, + MAX ( CASE + 62 WHEN ( + NULLIF ( - 14, - + 15 * ( + - 77 ) + + 53 ) ) THEN - - 2 ELSE + 9 + + 16 END ) AS col1
----
56
25

query I rowsort
SELECT - + NULLIF ( + 46, + 62 ) AS col0
----
-46

query I rowsort
SELECT ALL - + 51 + - 79 * + 9 AS col1
----
-762

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5806
SELECT + SUM( + + 95 ) * - CAST( NULL AS SIGNED ) * - 34 / + + 53 * 98 - - 25
----
NULL

skipif mysql # not compatible
query I rowsort label-5806
SELECT + SUM ( + + 95 ) * - CAST ( NULL AS INTEGER ) * - 34 / + + 53 * 98 - - 25
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5807
SELECT + + CAST( NULL AS SIGNED ) + 48 + - 63
----
NULL

skipif mysql # not compatible
query I rowsort label-5807
SELECT + + CAST ( NULL AS INTEGER ) + 48 + - 63
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5808
SELECT ALL 79 AS col1, 73 - 99 + + ( - COUNT( * ) ) * - COUNT( * ) * 12 + + + 26 + - - 33 AS col1
----
79
45

skipif mysql # not compatible
query II rowsort label-5808
SELECT ALL 79 AS col1, 73 - 99 + + ( - COUNT ( * ) ) * - COUNT ( * ) * 12 + + + 26 + - - 33 AS col1
----
79
45

onlyif mysql # aggregate syntax: 
query I rowsort label-5809
SELECT DISTINCT CASE 58 WHEN - + 1 + + - 92 THEN - 40 * ( 94 ) * - 74 * + + 69 ELSE COUNT( * ) END
----
1

skipif mysql # not compatible
query I rowsort label-5809
SELECT DISTINCT CASE 58 WHEN - + 1 + + - 92 THEN - 40 * ( 94 ) * - 74 * + + 69 ELSE COUNT ( * ) END
----
1

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5810
SELECT ALL + ( + 68 ) + + NULLIF ( CAST( NULL AS DECIMAL ), - CAST( NULL AS SIGNED ) * + - 63 + - - CAST( + 42 AS SIGNED ) - - + 94 * - 59 * - 40 + - - 81 + - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5810
SELECT ALL + ( + 68 ) + + NULLIF ( CAST ( NULL AS REAL ), - CAST ( NULL AS INTEGER ) * + - 63 + - - CAST ( + 42 AS INTEGER ) - - + 94 * - 59 * - 40 + - - 81 + - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT DISTINCT - 79 + - - COALESCE ( - - 3, + 29 ) * 29
----
8

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

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

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

skipif mysql # not compatible
query I rowsort label-5813
SELECT ALL - 40 / - 21
----
1

query I rowsort
SELECT DISTINCT + 23 * ( - 21 ) AS col2
----
-483

query I rowsort
SELECT ALL - 68 + - + ( + - 55 ) * 37 col2
----
1967

query II rowsort
SELECT - 50 + - 86 AS col2, + 72 * - 68 AS col2
----
-136
-4896

onlyif mysql # aggregate syntax: 
query I rowsort label-5817
SELECT - COUNT( - 34 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-5817
SELECT - COUNT ( - 34 ) col2
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-5818
SELECT - COUNT( * ) + + 38, 25 AS col1
----
37
25

skipif mysql # not compatible
query II rowsort label-5818
SELECT - COUNT ( * ) + + 38, 25 AS col1
----
37
25

query I rowsort
SELECT DISTINCT ( + 39 ) AS col0
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5820
SELECT - 2 + - CAST( 58 AS SIGNED ) AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-5820
SELECT - 2 + - CAST ( 58 AS INTEGER ) AS col0
----
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5821
SELECT + 8 * - - COALESCE ( - ( - 48 ), + 48 - - + 18 + 81 + 92 DIV 33 + + COUNT( DISTINCT + 92 ) ) AS col2
----
384

skipif mysql # not compatible
query I rowsort label-5821
SELECT + 8 * - - COALESCE ( - ( - 48 ), + 48 - - + 18 + 81 + 92 / 33 + + COUNT ( DISTINCT + 92 ) ) AS col2
----
384

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

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

query I rowsort
SELECT ALL + COALESCE ( 14, + - 3 + - - 60 )
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-5824
SELECT DISTINCT 5 DIV - 95 - - + 66 col2
----
66

skipif mysql # not compatible
query I rowsort label-5824
SELECT DISTINCT 5 / - 95 - - + 66 col2
----
66

query I rowsort
SELECT DISTINCT + NULLIF ( 87, - 53 )
----
87

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

query II rowsort
SELECT ( - 33 ) col0, 21
----
-33
21

query I rowsort
SELECT + 42 * 19 * + 88 col2
----
70224

query I rowsort
SELECT - 85 * + 55 + - 60 AS col2
----
-4735

onlyif mysql # aggregate syntax: 
query I rowsort label-5830
SELECT - 12 + + - MIN( DISTINCT + 25 ) AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-5830
SELECT - 12 + + - MIN ( DISTINCT + 25 ) AS col2
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-5831
SELECT + 52 + COUNT( * ) * - + 6 + + 32
----
78

skipif mysql # not compatible
query I rowsort label-5831
SELECT + 52 + COUNT ( * ) * - + 6 + + 32
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5832
SELECT + - 29 * + CAST( 32 AS SIGNED ) col0
----
-928

skipif mysql # not compatible
query I rowsort label-5832
SELECT + - 29 * + CAST ( 32 AS INTEGER ) col0
----
-928

onlyif mysql # aggregate syntax: 
query I rowsort label-5833
SELECT DISTINCT - 63 * 73 + + - COUNT( * ) + + 76
----
-4524

skipif mysql # not compatible
query I rowsort label-5833
SELECT DISTINCT - 63 * 73 + + - COUNT ( * ) + + 76
----
-4524

query I rowsort
SELECT DISTINCT + - 37 * + NULLIF ( - 0, - 67 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5835
SELECT ALL - 19 * + 76 * 2 - + 24 + - 37 * 47 * + 70 - - - COUNT( * )
----
-124643

skipif mysql # not compatible
query I rowsort label-5835
SELECT ALL - 19 * + 76 * 2 - + 24 + - 37 * 47 * + 70 - - - COUNT ( * )
----
-124643

query I rowsort
SELECT - ( - 39 ) * - - 7 + ( 52 ) + - 26 + - 87 * + 32 + + 29 AS col1
----
-2456

query I rowsort
SELECT DISTINCT - - 49 * 0 + + 15 AS col1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5838
SELECT DISTINCT + + 83 * 35 + + + COALESCE ( - 85, - + 81, 10 * - MAX( - 23 ) + - - 95 * 34 + + 72 ) + - 53 AS col0
----
2767

skipif mysql # not compatible
query I rowsort label-5838
SELECT DISTINCT + + 83 * 35 + + + COALESCE ( - 85, - + 81, 10 * - MAX ( - 23 ) + - - 95 * 34 + + 72 ) + - 53 AS col0
----
2767

query I rowsort
SELECT ALL + + 84 * 42 + - 16 * + 56 AS col0
----
2632

onlyif mysql # aggregate syntax: 
query II rowsort label-5840
SELECT NULLIF ( 86, - COALESCE ( + - ( - 46 ), ( + COUNT( * ) ), 15 * + + 67 + + 87 + - 95 + 25 + + - 98 ) ) col1, 44 / - CASE + + COUNT( * ) WHEN - 43 + - - COALESCE ( - 69, + - 86, - 24 ) * - + COUNT( * ) / - 2 THEN + 38 * + - NULLIF ( CASE - + 23 WHEN - + 87 + 67 THEN NULL WHEN - COUNT( * ) + + 90 / - 99 * 55 + - 70 * 28 * - AVG ( ALL 91 ) THEN 20 END, NULLIF ( 30, - 3 ) + + 71 ) END col1
----
86
NULL

skipif mysql # not compatible
query II rowsort label-5840
SELECT NULLIF ( 86, - COALESCE ( + - ( - 46 ), ( + COUNT ( * ) ), 15 * + + 67 + + 87 + - 95 + 25 + + - 98 ) ) col1, 44 / - CASE + + COUNT ( * ) WHEN - 43 + - - COALESCE ( - 69, + - 86, - 24 ) * - + COUNT ( * ) / - 2 THEN + 38 * + - NULLIF ( CASE - + 23 WHEN - + 87 + 67 THEN NULL WHEN - COUNT ( * ) + + 90 / - 99 * 55 + - 70 * 28 * - AVG ( ALL 91 ) THEN 20 END, NULLIF ( 30, - 3 ) + + 71 ) END col1
----
86
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5841
SELECT - + 22 * + 68 + + + COUNT( - + ( - 10 ) ) * + COUNT( * )
----
-1495

skipif mysql # not compatible
query I rowsort label-5841
SELECT - + 22 * + 68 + + + COUNT ( - + ( - 10 ) ) * + COUNT ( * )
----
-1495

onlyif mysql # aggregate syntax: 
query I rowsort label-5842
SELECT + COUNT( * ) * + 35 + + 96 + + - 17
----
114

skipif mysql # not compatible
query I rowsort label-5842
SELECT + COUNT ( * ) * + 35 + + 96 + + - 17
----
114

onlyif mysql # aggregate syntax: 
query II rowsort label-5843
SELECT + MAX( DISTINCT 57 ), 92 * - - 21 AS col1
----
57
1932

skipif mysql # not compatible
query II rowsort label-5843
SELECT + MAX ( DISTINCT 57 ), 92 * - - 21 AS col1
----
57
1932

query I rowsort
SELECT ALL 86 * 37 + - + 12
----
3170

onlyif mysql # aggregate syntax: 
query I rowsort label-5845
SELECT + + 61 + + + 97 + + + 6 * 64 + + 84 + - MIN( DISTINCT 17 ) + 18
----
627

skipif mysql # not compatible
query I rowsort label-5845
SELECT + + 61 + + + 97 + + + 6 * 64 + + 84 + - MIN ( DISTINCT 17 ) + 18
----
627

onlyif mysql # aggregate syntax: 
query I rowsort label-5846
SELECT - MAX( - - 41 )
----
-41

skipif mysql # not compatible
query I rowsort label-5846
SELECT - MAX ( - - 41 )
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5847
SELECT DISTINCT 92 * CAST( + - 5 AS SIGNED ) AS col1
----
-460

skipif mysql # not compatible
query I rowsort label-5847
SELECT DISTINCT 92 * CAST ( + - 5 AS INTEGER ) AS col1
----
-460

query I rowsort
SELECT 89 + 19 col0
----
108

query I rowsort
SELECT ALL 44 * 36 col1
----
1584

query I rowsort
SELECT DISTINCT 62 * + 89 AS col0
----
5518

onlyif mysql # aggregate syntax: 
query I rowsort label-5851
SELECT 5 + + 55 + + - CASE + 93 WHEN - 32 THEN + COUNT( * ) WHEN 86 / + - 54 / 31 * + 21 + + 81 + 24 + + + COUNT( * ) THEN + 91 END + 87
----
NULL

skipif mysql # not compatible
query I rowsort label-5851
SELECT 5 + + 55 + + - CASE + 93 WHEN - 32 THEN + COUNT ( * ) WHEN 86 / + - 54 / 31 * + 21 + + 81 + 24 + + + COUNT ( * ) THEN + 91 END + 87
----
NULL

query I rowsort
SELECT 8 * - 28 * - - 51 * 51 AS col2
----
-582624

query I rowsort
SELECT 14 + - - 94
----
108

query II rowsort
SELECT 3, 66 AS col1
----
3
66

query I rowsort
SELECT 98 * - 30 col0
----
-2940

query II rowsort
SELECT 16 AS col1, 4 * + + 65 AS col2
----
16
260

query II rowsort
SELECT DISTINCT + ( - 41 ) * 33 AS col0, - 98 + + 17 + - 29
----
-1353
-110

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5858
SELECT CAST( 88 AS SIGNED ) * 92 + ( 45 )
----
8141

skipif mysql # not compatible
query I rowsort label-5858
SELECT CAST ( 88 AS INTEGER ) * 92 + ( 45 )
----
8141

query I rowsort
SELECT 23 * 79 * 0 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5860
SELECT COUNT( * ) DIV - 67 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5860
SELECT COUNT ( * ) / - 67 AS col0
----
0

query I rowsort
SELECT ALL - 2 * - + 60 AS col0
----
120

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

skipif mysql # not compatible
query I rowsort label-5862
SELECT ALL - CAST ( + 45 AS INTEGER ) AS col2
----
-45

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

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

query I rowsort
SELECT DISTINCT - 20 * - 75 col0
----
1500

query I rowsort
SELECT 23 * - ( - 76 ) AS col0
----
1748

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5866
SELECT ALL - 89 + + CAST( NULL AS DECIMAL ) * + 19 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5866
SELECT ALL - 89 + + CAST ( NULL AS REAL ) * + 19 AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-5867
SELECT MIN ( DISTINCT 2 )
----
2

query I rowsort
SELECT ALL + - 72 + + 72 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5869
SELECT CASE WHEN NOT - CASE 24 WHEN + + COUNT( * ) THEN + 86 + + 10 + 65 WHEN + 68 THEN NULL END IS NOT NULL THEN + ( + 91 ) ELSE + - COUNT( * ) END AS col0
----
91

skipif mysql # not compatible
query I rowsort label-5869
SELECT CASE WHEN NOT - CASE 24 WHEN + + COUNT ( * ) THEN + 86 + + 10 + 65 WHEN + 68 THEN NULL END IS NOT NULL THEN + ( + 91 ) ELSE + - COUNT ( * ) END AS col0
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-5870
SELECT ALL - 85, + 63 + - 0 - - COUNT( * ) AS col2
----
-85
64

skipif mysql # not compatible
query II rowsort label-5870
SELECT ALL - 85, + 63 + - 0 - - COUNT ( * ) AS col2
----
-85
64

onlyif mysql # aggregate syntax: 
query I rowsort label-5871
SELECT DISTINCT - MAX( ALL - + 80 ) + + ( 50 ) + COALESCE ( - COUNT( * ), - - 15 ) * 31 + - 88 + - + 3
----
8

skipif mysql # not compatible
query I rowsort label-5871
SELECT DISTINCT - MAX ( ALL - + 80 ) + + ( 50 ) + COALESCE ( - COUNT ( * ), - - 15 ) * 31 + - 88 + - + 3
----
8

query I rowsort
SELECT ALL + + 60 + - 84
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-5873
SELECT + - COUNT( - 19 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-5873
SELECT + - COUNT ( - 19 ) col1
----
-1

query II rowsort
SELECT - 96 AS col2, + 2 * - 48 col0
----
-96
-96

query I rowsort
SELECT ALL - 53 + ( + 89 )
----
36

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

skipif mysql # not compatible
query I rowsort label-5876
SELECT - SUM ( + 46 )
----
-46

query II rowsort
SELECT 73, + 90 AS col0
----
73
90

query II rowsort
SELECT + - 13, + 38 AS col0
----
-13
38

onlyif mysql # aggregate syntax: 
query I rowsort label-5879
SELECT DISTINCT + MAX( ALL 33 ) col1
----
33

skipif mysql # not compatible
query I rowsort label-5879
SELECT DISTINCT + MAX ( ALL 33 ) col1
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-5880
SELECT ALL 14 * + + 38 col1, + MIN( - 95 ) + + 99 AS col1
----
532
4

skipif mysql # not compatible
query II rowsort label-5880
SELECT ALL 14 * + + 38 col1, + MIN ( - 95 ) + + 99 AS col1
----
532
4

onlyif mysql # DIV for integer division: 
query I rowsort label-5881
SELECT DISTINCT 26 DIV - 99 * - 88 * + 32 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5881
SELECT DISTINCT 26 / - 99 * - 88 * + 32 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5882
SELECT 98 DIV - 52
----
-1

skipif mysql # not compatible
query I rowsort label-5882
SELECT 98 / - 52
----
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5884
SELECT NULLIF ( - + 60, + COUNT( 63 ) ) * 90
----
-5400

skipif mysql # not compatible
query I rowsort label-5884
SELECT NULLIF ( - + 60, + COUNT ( 63 ) ) * 90
----
-5400

query I rowsort
SELECT 33 * + 23 col2
----
759

query I rowsort
SELECT ( - + 67 ) + + 33
----
-34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5887
SELECT COUNT( * ) + 14 DIV - 40 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5887
SELECT COUNT ( * ) + 14 / - 40 AS col2
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5889
SELECT ALL - COUNT( ALL NULLIF ( + 37, - 0 * + ( 9 ) * 31 * + 13 + + 36 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-5889
SELECT ALL - COUNT ( ALL NULLIF ( + 37, - 0 * + ( 9 ) * 31 * + 13 + + 36 ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5890
SELECT ALL - 4 * - + 24 * - + 25 + + - NULLIF ( + 31, 80 * - - 42 * 28 + 85 - - + 53 ) + - COUNT( DISTINCT + 90 ) * + 47 + 28 AS col0
----
-2450

skipif mysql # not compatible
query I rowsort label-5890
SELECT ALL - 4 * - + 24 * - + 25 + + - NULLIF ( + 31, 80 * - - 42 * 28 + 85 - - + 53 ) + - COUNT ( DISTINCT + 90 ) * + 47 + 28 AS col0
----
-2450

query I rowsort
SELECT - 71 + + 22 AS col2
----
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5892
SELECT ALL - 90 * + 39 + - ( + COUNT( * ) ) - 40 + + + 29 * 23, 67 DIV 70 * + + 49 AS col2
----
-2884
0

skipif mysql # not compatible
query II rowsort label-5892
SELECT ALL - 90 * + 39 + - ( + COUNT ( * ) ) - 40 + + + 29 * 23, 67 / 70 * + + 49 AS col2
----
-2884
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5893
SELECT + NULLIF ( + COUNT( * ), - 76 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5893
SELECT + NULLIF ( + COUNT ( * ), - 76 ) AS col1
----
1

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

skipif mysql # not compatible
query I rowsort label-5894
SELECT DISTINCT - - 70 * 81 - - - CAST ( NULL AS INTEGER )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5896
SELECT ALL 45 * + + CASE - 62 WHEN - 89 THEN - 1 WHEN - 8 THEN - MIN( ALL 51 ) END - + MAX( + COALESCE ( - - ( - - 24 ), + 58 ) ) + + 70
----
NULL

skipif mysql # not compatible
query I rowsort label-5896
SELECT ALL 45 * + + CASE - 62 WHEN - 89 THEN - 1 WHEN - 8 THEN - MIN ( ALL 51 ) END - + MAX ( + COALESCE ( - - ( - - 24 ), + 58 ) ) + + 70
----
NULL

query II rowsort
SELECT + 37 + - 57, - CASE - - 41 WHEN + 31 + - 74 THEN 22 * + 97 END AS col1
----
-20
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5898
SELECT 36 * COUNT( * ) AS col1
----
36

skipif mysql # not compatible
query I rowsort label-5898
SELECT 36 * COUNT ( * ) AS col1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-5899
SELECT COALESCE ( - 53, + - COUNT( * ), 17 ) * 29 AS col1
----
-1537

skipif mysql # not compatible
query I rowsort label-5899
SELECT COALESCE ( - 53, + - COUNT ( * ), 17 ) * 29 AS col1
----
-1537

onlyif mysql # aggregate syntax: 
query I rowsort label-5900
SELECT ALL + 53 * 24 + - + COUNT( * ) * + 92 * 18
----
-384

skipif mysql # not compatible
query I rowsort label-5900
SELECT ALL + 53 * 24 + - + COUNT ( * ) * + 92 * 18
----
-384

query I rowsort
SELECT ALL + 5 * 61 AS col0
----
305

onlyif mysql # DIV for integer division: 
query I rowsort label-5902
SELECT ALL - - 19 DIV NULLIF ( - - 3, - 49 + + 32 ) AS col0
----
6

skipif mysql # not compatible
query I rowsort label-5902
SELECT ALL - - 19 / NULLIF ( - - 3, - 49 + + 32 ) AS col0
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5903
SELECT ALL - + ( - + 73 ) - - 78 + 72 * COUNT( * ) * + ( + ( + 95 ) ) + - COALESCE ( 64, NULLIF ( - + 75, - CASE - 84 WHEN 74 * 95 THEN 23 ELSE - 77 * + CAST( NULL AS SIGNED ) + + CASE 45 WHEN + NULLIF ( CASE - + 51 WHEN 3 / + ( 9 ) THEN - 46 WHEN + - 58 THEN NULL ELSE NULL END, 96 ) * + 65 THEN NULL WHEN - COUNT( DISTINCT 37 ) + - 80 THEN + + 11 WHEN - 83 THEN - + 84 END + + 73 END ) * - 28 ) * 26
----
5327

skipif mysql # not compatible
query I rowsort label-5903
SELECT ALL - + ( - + 73 ) - - 78 + 72 * COUNT ( * ) * + ( + ( + 95 ) ) + - COALESCE ( 64, NULLIF ( - + 75, - CASE - 84 WHEN 74 * 95 THEN 23 ELSE - 77 * + CAST ( NULL AS INTEGER ) + + CASE 45 WHEN + NULLIF ( CASE - + 51 WHEN 3 / + ( 9 ) THEN - 46 WHEN + - 58 THEN NULL ELSE NULL END, 96 ) * + 65 THEN NULL WHEN - COUNT ( DISTINCT 37 ) + - 80 THEN + + 11 WHEN - 83 THEN - + 84 END + + 73 END ) * - 28 ) * 26
----
5327

onlyif mysql # aggregate syntax: 
query I rowsort label-5904
SELECT - - 0 * + COUNT( * ) * + ( 96 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5904
SELECT - - 0 * + COUNT ( * ) * + ( 96 ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5905
SELECT - + CASE - CAST( NULL AS SIGNED ) WHEN + + 20 THEN - MIN( ALL + - 40 ) END + + MAX( DISTINCT - + 13 ) + - 44 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5905
SELECT - + CASE - CAST ( NULL AS INTEGER ) WHEN + + 20 THEN - MIN ( ALL + - 40 ) END + + MAX ( DISTINCT - + 13 ) + - 44 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5906
SELECT - + ( + SUM( + 51 ) ) col0
----
-51

skipif mysql # not compatible
query I rowsort label-5906
SELECT - + ( + SUM ( + 51 ) ) col0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-5907
SELECT ALL + 10 * COUNT( ALL + 15 )
----
10

skipif mysql # not compatible
query I rowsort label-5907
SELECT ALL + 10 * COUNT ( ALL + 15 )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-5908
SELECT - COUNT( DISTINCT - 70 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5908
SELECT - COUNT ( DISTINCT - 70 ) AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5909
SELECT ALL CASE + 29 WHEN CAST( NULL AS SIGNED ) * + ( - + ( + + 83 ) ) - - + 88 + + 14 THEN + ( - COUNT( * ) ) WHEN + 59 THEN NULL WHEN - COUNT( * ) * CASE + COALESCE ( + 29, 92 / ( + 52 ) ) WHEN 56 THEN NULL WHEN + + 10 + + 85 THEN - 72 WHEN - 65 * - 43 + + 74 THEN NULL END / - ( - 9 ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5909
SELECT ALL CASE + 29 WHEN CAST ( NULL AS INTEGER ) * + ( - + ( + + 83 ) ) - - + 88 + + 14 THEN + ( - COUNT ( * ) ) WHEN + 59 THEN NULL WHEN - COUNT ( * ) * CASE + COALESCE ( + 29, 92 / ( + 52 ) ) WHEN 56 THEN NULL WHEN + + 10 + + 85 THEN - 72 WHEN - 65 * - 43 + + 74 THEN NULL END / - ( - 9 ) THEN NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5910
SELECT DISTINCT CASE - 84 WHEN + 68 THEN - COUNT( * ) WHEN + - CAST( - + 48 AS SIGNED ) * + 10 THEN - 53 + - - 44 WHEN - - CASE - 26 WHEN + MIN( - - 39 ) THEN 9 / - 17 WHEN + 18 * - + 38 / - 48 THEN NULL WHEN + - 27 / + + 53 THEN NULL END THEN + ( + 2 ) + - 60 * 4 / + 3 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5910
SELECT DISTINCT CASE - 84 WHEN + 68 THEN - COUNT ( * ) WHEN + - CAST ( - + 48 AS INTEGER ) * + 10 THEN - 53 + - - 44 WHEN - - CASE - 26 WHEN + MIN ( - - 39 ) THEN 9 / - 17 WHEN + 18 * - + 38 / - 48 THEN NULL WHEN + - 27 / + + 53 THEN NULL END THEN + ( + 2 ) + - 60 * 4 / + 3 END
----
NULL

query I rowsort
SELECT + 49 + 14 AS col1
----
63

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

query I rowsort
SELECT + 25 + - 16 + 60
----
69

query II rowsort
SELECT 41 AS col2, + ( - 39 ) * + 33 + + - NULLIF ( - - 0, - 61 - 51 ) + + 30 * - + 57 col0
----
41
-2997

onlyif mysql # DIV for integer division: 
query I rowsort label-5915
SELECT + 2 DIV + - 85 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5915
SELECT + 2 / + - 85 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5916
SELECT ALL 7 + 12 * + 33 * - CASE + COUNT( DISTINCT + 21 ) WHEN - - 61 THEN + ( 71 ) ELSE + + 44 END
----
-17417

skipif mysql # not compatible
query I rowsort label-5916
SELECT ALL 7 + 12 * + 33 * - CASE + COUNT ( DISTINCT + 21 ) WHEN - - 61 THEN + ( 71 ) ELSE + + 44 END
----
-17417

query I rowsort
SELECT + 19 + 75 AS col2
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-5918
SELECT ALL ( 70 ) + - + CASE + + 27 WHEN 4 THEN - - COUNT( * ) ELSE + COUNT( * ) END AS col2
----
69

skipif mysql # not compatible
query I rowsort label-5918
SELECT ALL ( 70 ) + - + CASE + + 27 WHEN 4 THEN - - COUNT ( * ) ELSE + COUNT ( * ) END AS col2
----
69

query I rowsort
SELECT ALL 60 * + 15 AS col0
----
900

onlyif mysql # DIV for integer division: 
query I rowsort label-5920
SELECT + 66 DIV - + 15 AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-5920
SELECT + 66 / - + 15 AS col0
----
-4

query I rowsort
SELECT ALL 71 + 46 col1
----
117

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5923
SELECT ALL ( - 29 ) + - CASE + 71 WHEN 78 THEN + NULLIF ( + 58, + COUNT( * ) * - CAST( - 89 AS SIGNED ) ) * - - 50 - - - CAST( NULL AS SIGNED ) - - + 56 / 48 + - CASE 28 WHEN - COUNT( * ) THEN + 38 ELSE - + 10 * + 14 END + - 12 + + - 71 * 30 * - CAST( 58 AS SIGNED ) * - - AVG ( + 53 ) / + COUNT( * ) ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5923
SELECT ALL ( - 29 ) + - CASE + 71 WHEN 78 THEN + NULLIF ( + 58, + COUNT ( * ) * - CAST ( - 89 AS INTEGER ) ) * - - 50 - - - CAST ( NULL AS INTEGER ) - - + 56 / 48 + - CASE 28 WHEN - COUNT ( * ) THEN + 38 ELSE - + 10 * + 14 END + - 12 + + - 71 * 30 * - CAST ( 58 AS INTEGER ) * - - AVG ( + 53 ) / + COUNT ( * ) ELSE NULL END col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5924
SELECT ALL 54 + + - 34 + + 29 * 47 DIV + 88 + - 30 * + 49
----
-1435

skipif mysql # not compatible
query I rowsort label-5924
SELECT ALL 54 + + - 34 + + 29 * 47 / + 88 + - 30 * + 49
----
-1435

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5925
SELECT - 58 col2, 94 * + ( + COALESCE ( + + 39, ( - 51 ) ) ) + + CASE - CAST( + 6 AS SIGNED ) WHEN + 66 - + - SUM( + 18 ) THEN - - CAST( NULL AS SIGNED ) * + COUNT( * ) ELSE NULL END AS col1
----
-58
NULL

skipif mysql # not compatible
query II rowsort label-5925
SELECT - 58 col2, 94 * + ( + COALESCE ( + + 39, ( - 51 ) ) ) + + CASE - CAST ( + 6 AS INTEGER ) WHEN + 66 - + - SUM ( + 18 ) THEN - - CAST ( NULL AS INTEGER ) * + COUNT ( * ) ELSE NULL END AS col1
----
-58
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5926
SELECT COUNT( DISTINCT 45 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-5926
SELECT COUNT ( DISTINCT 45 ) col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5927
SELECT + - 6 - 32 * - - COUNT( DISTINCT 6 ) + 28
----
-10

skipif mysql # not compatible
query I rowsort label-5927
SELECT + - 6 - 32 * - - COUNT ( DISTINCT 6 ) + 28
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5928
SELECT + 44 * - COUNT( * ) - + + CAST( - 73 AS SIGNED ) AS col0
----
29

skipif mysql # not compatible
query I rowsort label-5928
SELECT + 44 * - COUNT ( * ) - + + CAST ( - 73 AS INTEGER ) AS col0
----
29

query I rowsort
SELECT ALL - + 17 * 76 + - 98
----
-1390

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5930
SELECT - 71 DIV - - 33 + - 70 + - COUNT( * ) + + - COUNT( * ) + - 61
----
-135

skipif mysql # not compatible
query I rowsort label-5930
SELECT - 71 / - - 33 + - 70 + - COUNT ( * ) + + - COUNT ( * ) + - 61
----
-135

onlyif mysql # aggregate syntax: 
query I rowsort label-5931
SELECT ALL + CASE + 11 WHEN - 73 * 69 + AVG ( + 42 ) THEN + 90 + + ( + - 51 ) WHEN + - 45 + + - 97 - + - COALESCE ( - 8, + + 22, COUNT( * ) ) + + 40 - + 90 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5931
SELECT ALL + CASE + 11 WHEN - 73 * 69 + AVG ( + 42 ) THEN + 90 + + ( + - 51 ) WHEN + - 45 + + - 97 - + - COALESCE ( - 8, + + 22, COUNT ( * ) ) + + 40 - + 90 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5932
SELECT ALL 13 * 97 * - + CASE + 29 WHEN + + 55 * - 8 * + ( 94 ) * - 79 THEN NULL ELSE + CASE 51 WHEN - 56 + + + 5 THEN NULL WHEN + 30 THEN COUNT( + 19 ) * - - MAX( ALL 50 ) + + COUNT( * ) ELSE NULL END + 53 END - + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5932
SELECT ALL 13 * 97 * - + CASE + 29 WHEN + + 55 * - 8 * + ( 94 ) * - 79 THEN NULL ELSE + CASE 51 WHEN - 56 + + + 5 THEN NULL WHEN + 30 THEN COUNT ( + 19 ) * - - MAX ( ALL 50 ) + + COUNT ( * ) ELSE NULL END + 53 END - + - COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5933
SELECT DISTINCT 59 DIV + 90 + - 87 - 73 AS col0
----
-160

skipif mysql # not compatible
query I rowsort label-5933
SELECT DISTINCT 59 / + 90 + - 87 - 73 AS col0
----
-160

onlyif mysql # aggregate syntax: 
query I rowsort label-5934
SELECT + + 30 + 95 - - ( - COALESCE ( - COUNT( * ), 94 ) ) + 60 * - 69
----
-4014

skipif mysql # not compatible
query I rowsort label-5934
SELECT + + 30 + 95 - - ( - COALESCE ( - COUNT ( * ), 94 ) ) + 60 * - 69
----
-4014

onlyif mysql # aggregate syntax: 
query II rowsort label-5935
SELECT - + 24 * SUM( - 56 ) AS col0, + 42 + + 19 AS col2
----
1344
61

skipif mysql # not compatible
query II rowsort label-5935
SELECT - + 24 * SUM ( - 56 ) AS col0, + 42 + + 19 AS col2
----
1344
61

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

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

query II rowsort
SELECT + 72 AS col0, 30 * + + 28 AS col1
----
72
840

onlyif mysql # aggregate syntax: 
query I rowsort label-5938
SELECT DISTINCT + CASE 27 WHEN 45 - 48 + + 20 + - - 55 + - + AVG ( DISTINCT + + 74 ) * + 75 + + + 18 + - + 75 / + - COUNT( DISTINCT 60 ) * CASE + + 20 WHEN + + 66 THEN NULL WHEN - - ( 20 ) THEN NULL ELSE - 38 END + + 14 THEN NULL ELSE COALESCE ( + 89, + + 81 ) END
----
89

skipif mysql # not compatible
query I rowsort label-5938
SELECT DISTINCT + CASE 27 WHEN 45 - 48 + + 20 + - - 55 + - + AVG ( DISTINCT + + 74 ) * + 75 + + + 18 + - + 75 / + - COUNT ( DISTINCT 60 ) * CASE + + 20 WHEN + + 66 THEN NULL WHEN - - ( 20 ) THEN NULL ELSE - 38 END + + 14 THEN NULL ELSE COALESCE ( + 89, + + 81 ) END
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5939
SELECT ALL 85 * - CAST( - 61 AS SIGNED ) col2
----
5185

skipif mysql # not compatible
query I rowsort label-5939
SELECT ALL 85 * - CAST ( - 61 AS INTEGER ) col2
----
5185

query II rowsort
SELECT ALL 44 * - COALESCE ( + - 57, + ( + 18 ) + 59 ) * + + ( - ( + - 52 ) ) + - 19 + + 28, - 22 + + 21 AS col0
----
130425
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-5941
SELECT COUNT( * ) col1, 42 * - 43 AS col2
----
1
-1806

skipif mysql # not compatible
query II rowsort label-5941
SELECT COUNT ( * ) col1, 42 * - 43 AS col2
----
1
-1806

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5943
SELECT ALL + 24 DIV + 85 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5943
SELECT ALL + 24 / + 85 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5944
SELECT - 32 - 83 * - CAST( + 96 AS SIGNED ) AS col2
----
7936

skipif mysql # not compatible
query I rowsort label-5944
SELECT - 32 - 83 * - CAST ( + 96 AS INTEGER ) AS col2
----
7936

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-5946
SELECT - 8 + + 12 AS col0, 54 * 56 DIV + 55 AS col2
----
4
54

skipif mysql # not compatible
query II rowsort label-5946
SELECT - 8 + + 12 AS col0, 54 * 56 / + 55 AS col2
----
4
54

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

query I rowsort
SELECT DISTINCT ( 25 ) AS col1
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-5949
SELECT COUNT( * ) * 50 - - 48 - ( - - 95 ) col2
----
3

skipif mysql # not compatible
query I rowsort label-5949
SELECT COUNT ( * ) * 50 - - 48 - ( - - 95 ) col2
----
3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5951
SELECT - MAX( + 44 ) AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-5951
SELECT - MAX ( + 44 ) AS col1
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-5952
SELECT - 72 + + 69 + - 80 + 14 / + 80 / NULLIF ( + COUNT( * ), + COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5952
SELECT - 72 + + 69 + - 80 + 14 / + 80 / NULLIF ( + COUNT ( * ), + COUNT ( * ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5953
SELECT ALL 73 col0, ( - 57 ) * - 43 * + 30 + + COALESCE ( - SUM( 36 ), + 71 DIV + 71 ) + 2 * + 5 + 92
----
73
73596

skipif mysql # not compatible
query II rowsort label-5953
SELECT ALL 73 col0, ( - 57 ) * - 43 * + 30 + + COALESCE ( - SUM ( 36 ), + 71 / + 71 ) + 2 * + 5 + 92
----
73
73596

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5954
SELECT - MAX( DISTINCT + 9 ) AS col1, 45 * + + COUNT( * ) * + CAST( NULL AS SIGNED ) AS col1
----
-9
NULL

skipif mysql # not compatible
query II rowsort label-5954
SELECT - MAX ( DISTINCT + 9 ) AS col1, 45 * + + COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col1
----
-9
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5955
SELECT ALL + COUNT( * ) + - - 38 * - NULLIF ( COUNT( * ), 71 ) AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-5955
SELECT ALL + COUNT ( * ) + - - 38 * - NULLIF ( COUNT ( * ), 71 ) AS col2
----
-37

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

query I rowsort
SELECT ALL 54 + + 26 AS col1
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-5958
SELECT - 60 - 83 + + 13 + + 84 * 63 * COALESCE ( + - 97, - 58 ) * + 47 * - + COUNT( * )
----
24126098

skipif mysql # not compatible
query I rowsort label-5958
SELECT - 60 - 83 + + 13 + + 84 * 63 * COALESCE ( + - 97, - 58 ) * + 47 * - + COUNT ( * )
----
24126098

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5961
SELECT - CAST( - MAX( + - 72 ) AS SIGNED ) + 49 + + ( 6 ) DIV + + 1
----
-17

skipif mysql # not compatible
query I rowsort label-5961
SELECT - CAST ( - MAX ( + - 72 ) AS INTEGER ) + 49 + + ( 6 ) / + + 1
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-5962
SELECT - 6 + SUM( + 0 ) - + SUM( 39 ) + + NULLIF ( 1, COUNT( * ) + 28 ) * - + COALESCE ( + COUNT( * ), - 39 + + - 52 )
----
-46

skipif mysql # not compatible
query I rowsort label-5962
SELECT - 6 + SUM ( + 0 ) - + SUM ( 39 ) + + NULLIF ( 1, COUNT ( * ) + 28 ) * - + COALESCE ( + COUNT ( * ), - 39 + + - 52 )
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-5963
SELECT + MIN( + + 70 ) - - - 96
----
-26

skipif mysql # not compatible
query I rowsort label-5963
SELECT + MIN ( + + 70 ) - - - 96
----
-26

query I rowsort
SELECT + ( 84 ) + 37 + + + 12 * - 72
----
-743

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5965
SELECT DISTINCT + 50 AS col2, - ( + NULLIF ( 56, - ( - CAST( - 81 AS SIGNED ) ) ) ) AS col1
----
50
-56

skipif mysql # not compatible
query II rowsort label-5965
SELECT DISTINCT + 50 AS col2, - ( + NULLIF ( 56, - ( - CAST ( - 81 AS INTEGER ) ) ) ) AS col1
----
50
-56

query I rowsort
SELECT DISTINCT - ( 73 ) * + - 98
----
7154

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5967
SELECT ALL - COALESCE ( 71, - 23, - - 84 ) * - 2 * + CAST( NULL AS SIGNED ), - COALESCE ( + 49, SUM( - 27 ) + - + 83 * + 37 * COUNT( * ), - + 28 + - 0 ) AS col2
----
NULL
-49

skipif mysql # not compatible
query II rowsort label-5967
SELECT ALL - COALESCE ( 71, - 23, - - 84 ) * - 2 * + CAST ( NULL AS INTEGER ), - COALESCE ( + 49, SUM ( - 27 ) + - + 83 * + 37 * COUNT ( * ), - + 28 + - 0 ) AS col2
----
NULL
-49

query I rowsort
SELECT 99 + - - 30 AS col2
----
129

query I rowsort
SELECT ALL - 14 * + - 39 + - 69
----
477

onlyif mysql # aggregate syntax: 
query I rowsort label-5970
SELECT + MIN( ALL + - 16 ) + 12 * - + COUNT( * ) - + + 41 AS col0
----
-69

skipif mysql # not compatible
query I rowsort label-5970
SELECT + MIN ( ALL + - 16 ) + 12 * - + COUNT ( * ) - + + 41 AS col0
----
-69

query I rowsort
SELECT DISTINCT 47 * 2 + + + 71 AS col1
----
165

query II rowsort
SELECT + 44 AS col2, - 15 + 56
----
44
41

query II rowsort
SELECT + 55, 53 AS col0
----
55
53

query II rowsort
SELECT + 94, - 8 + - 28 AS col0
----
94
-36

query I rowsort
SELECT 78 * - NULLIF ( + - 50, + + 93 ) + + - 19 + 22 AS col0
----
3903

query I rowsort
SELECT DISTINCT - 62 * + - 88
----
5456

onlyif mysql # aggregate syntax: 
query I rowsort label-5977
SELECT ALL - COUNT( DISTINCT 60 )
----
-1

skipif mysql # not compatible
query I rowsort label-5977
SELECT ALL - COUNT ( DISTINCT 60 )
----
-1

query I rowsort
SELECT + CASE + 43 WHEN + - 34 * - 62 THEN 70 WHEN + 15 THEN 99 WHEN 62 THEN - 15 END AS col0
----
NULL

query II rowsort
SELECT DISTINCT - 75, + 6 AS col1
----
-75
6

query I rowsort
SELECT 17 * + 23 AS col0
----
391

onlyif mysql # aggregate syntax: 
query I rowsort label-5981
SELECT ALL COUNT( * ) + - 56 + - 64
----
-119

skipif mysql # not compatible
query I rowsort label-5981
SELECT ALL COUNT ( * ) + - 56 + - 64
----
-119

query I rowsort
SELECT 47 * - 1 * - 71 * - 75 * NULLIF ( - 17, 4 * COALESCE ( 3, - 44 / - 82 ) ) * - 75 + 9 AS col0
----
-319100616

query I rowsort
SELECT 39 - - 56 AS col0
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-5984
SELECT DISTINCT - 74 + + - 3 + - + 9 * COUNT( * )
----
-86

skipif mysql # not compatible
query I rowsort label-5984
SELECT DISTINCT - 74 + + - 3 + - + 9 * COUNT ( * )
----
-86

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5986
SELECT ( + 75 ) + 51, COUNT( * ) AS col2
----
126
1

skipif mysql # not compatible
query II rowsort label-5986
SELECT ( + 75 ) + 51, COUNT ( * ) AS col2
----
126
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5987
SELECT ALL MIN( DISTINCT - 52 ) + - 18 + + - 0 * - 73 AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-5987
SELECT ALL MIN ( DISTINCT - 52 ) + - 18 + + - 0 * - 73 AS col1
----
-70

query I rowsort
SELECT ALL 72 * + 7
----
504

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5989
SELECT ALL - CAST( NULL AS SIGNED ) + - 77 + + - COALESCE ( + 98, MIN( - ( + 47 ) ) + + 86 * - + 73 + + 58 * 1 * - 6, 22 + - 45 + + 81, - - ( - 10 ) ) + ( + - COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5989
SELECT ALL - CAST ( NULL AS INTEGER ) + - 77 + + - COALESCE ( + 98, MIN ( - ( + 47 ) ) + + 86 * - + 73 + + 58 * 1 * - 6, 22 + - 45 + + 81, - - ( - 10 ) ) + ( + - COUNT ( * ) )
----
NULL

query I rowsort
SELECT DISTINCT 90 * - 78 * + 23 AS col2
----
-161460

query I rowsort
SELECT 39 + + 72
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-5992
SELECT ALL + NULLIF ( - COUNT( * ), - - 61 / - 85 ) + + 55 * - - 15 AS col0
----
824

skipif mysql # not compatible
query I rowsort label-5992
SELECT ALL + NULLIF ( - COUNT ( * ), - - 61 / - 85 ) + + 55 * - - 15 AS col0
----
824

onlyif mysql # DIV for integer division: 
query I rowsort label-5993
SELECT DISTINCT + 75 DIV + 32
----
2

skipif mysql # not compatible
query I rowsort label-5993
SELECT DISTINCT + 75 / + 32
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5994
SELECT 48 + MIN( DISTINCT + - 0 )
----
48

skipif mysql # not compatible
query I rowsort label-5994
SELECT 48 + MIN ( DISTINCT + - 0 )
----
48

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

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

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

skipif mysql # not compatible
query I rowsort label-5996
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - 52 + 42 AS col2
----
NULL

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

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

query I rowsort
SELECT 21 * + 16 * + 80
----
26880

onlyif mysql # aggregate syntax: 
query I rowsort label-5999
SELECT DISTINCT + COALESCE ( + 61, + 98 * + - SUM( + ( + 68 ) ) ) AS col1
----
61

skipif mysql # not compatible
query I rowsort label-5999
SELECT DISTINCT + COALESCE ( + 61, + 98 * + - SUM ( + ( + 68 ) ) ) AS col1
----
61

query I rowsort
SELECT ALL + 85 * + 95 * 77
----
621775

onlyif mysql # aggregate syntax: 
query I rowsort label-6001
SELECT + 83 * + MIN( - 87 ) * - 58 + + - COUNT( * ) * 27
----
418791

skipif mysql # not compatible
query I rowsort label-6001
SELECT + 83 * + MIN ( - 87 ) * - 58 + + - COUNT ( * ) * 27
----
418791

query I rowsort
SELECT 44 * + 8
----
352

query I rowsort
SELECT DISTINCT - + ( - + 96 ) col1
----
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6004
SELECT ALL + NULLIF ( 89, + 27 ) DIV - - 83 * COUNT( * ) + + 57 - + SUM( + - 19 ) + - ( + SUM( - 83 ) ) * - 11 * + - 71
----
64900

skipif mysql # not compatible
query I rowsort label-6004
SELECT ALL + NULLIF ( 89, + 27 ) / - - 83 * COUNT ( * ) + + 57 - + SUM ( + - 19 ) + - ( + SUM ( - 83 ) ) * - 11 * + - 71
----
64900

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6005
SELECT ( - COUNT( * ) ) DIV - - MAX( - 51 ) * + 3 - - 2 AS col1
----
2

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6007
SELECT CASE + COUNT( * ) WHEN + 98 THEN + 91 + 72 WHEN 93 * + AVG ( + ( + 1 ) ) * 17 * - 85 + + - COUNT( * ) + + 81 * 52 + + + 21 THEN NULL ELSE NULL END * - - 97 - + - 29
----
NULL

skipif mysql # not compatible
query I rowsort label-6007
SELECT CASE + COUNT ( * ) WHEN + 98 THEN + 91 + 72 WHEN 93 * + AVG ( + ( + 1 ) ) * 17 * - 85 + + - COUNT ( * ) + + 81 * 52 + + + 21 THEN NULL ELSE NULL END * - - 97 - + - 29
----
NULL

query II rowsort
SELECT ALL 8 * - - 83 AS col2, - 83 AS col1
----
664
-83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6009
SELECT COUNT( * ) * - - ( 48 ) DIV + MIN( ALL 33 ) - 92 col0
----
-91

skipif mysql # not compatible
query I rowsort label-6009
SELECT COUNT ( * ) * - - ( 48 ) / + MIN ( ALL 33 ) - 92 col0
----
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-6010
SELECT + MAX( - ( 30 ) ), 69 * + 16 * COUNT( * ) + SUM( DISTINCT - 90 ) AS col1
----
-30
1014

skipif mysql # not compatible
query II rowsort label-6010
SELECT + MAX ( - ( 30 ) ), 69 * + 16 * COUNT ( * ) + SUM ( DISTINCT - 90 ) AS col1
----
-30
1014

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6011
SELECT ALL SUM( - 36 ) + 55 - + 24 DIV + 42
----
19

skipif mysql # not compatible
query I rowsort label-6011
SELECT ALL SUM ( - 36 ) + 55 - + 24 / + 42
----
19

query I rowsort
SELECT 98 + - 26 AS col2
----
72

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

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

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

skipif mysql # not compatible
query I rowsort label-6014
SELECT COUNT ( * ) * COUNT ( * ) * COUNT ( * ) * + 97 / - COUNT ( * ) col0
----
-97

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6016
SELECT ALL SUM( DISTINCT + 22 ) + + 6 + - NULLIF ( 16, + 89 ) * - 76 - + 97 col1
----
1147

skipif mysql # not compatible
query I rowsort label-6016
SELECT ALL SUM ( DISTINCT + 22 ) + + 6 + - NULLIF ( 16, + 89 ) * - 76 - + 97 col1
----
1147

onlyif mysql # aggregate syntax: 
query I rowsort label-6017
SELECT ALL 37 + 71 - + - COUNT( DISTINCT - + 65 ) * - 32 - + + COUNT( * )
----
75

skipif mysql # not compatible
query I rowsort label-6017
SELECT ALL 37 + 71 - + - COUNT ( DISTINCT - + 65 ) * - 32 - + + COUNT ( * )
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6018
SELECT DISTINCT + 98 - 13 DIV - 56 * - COUNT( * )
----
98

skipif mysql # not compatible
query I rowsort label-6018
SELECT DISTINCT + 98 - 13 / - 56 * - COUNT ( * )
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-6019
SELECT ( + CASE - 17 WHEN - 6 THEN - COUNT( * ) ELSE NULL END ) + 7 * + - 47 * - 59 * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6019
SELECT ( + CASE - 17 WHEN - 6 THEN - COUNT ( * ) ELSE NULL END ) + 7 * + - 47 * - 59 * - COUNT ( * )
----
NULL

query II rowsort
SELECT ALL ( + + 45 ) - - ( + 4 ) AS col1, 65 AS col1
----
49
65

query II rowsort
SELECT ALL 28 AS col1, + 30 + + 1 AS col1
----
28
31

query I rowsort
SELECT 67 * - 66
----
-4422

query II rowsort
SELECT 81 AS col1, + 79
----
81
79

query I rowsort
SELECT DISTINCT + 80 * + - 93
----
-7440

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6025
SELECT DISTINCT - CASE + - 58 WHEN + 40 + - - 62 - - + 51 - + 85 + CAST( NULL AS DECIMAL ) * - 48 * MAX( DISTINCT - 76 ) THEN NULL ELSE + 37 END - - 29
----
-8

skipif mysql # not compatible
query I rowsort label-6025
SELECT DISTINCT - CASE + - 58 WHEN + 40 + - - 62 - - + 51 - + 85 + CAST ( NULL AS REAL ) * - 48 * MAX ( DISTINCT - 76 ) THEN NULL ELSE + 37 END - - 29
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-6026
SELECT DISTINCT MIN( DISTINCT + 88 ) * + + ( - - 57 ) AS col2
----
5016

skipif mysql # not compatible
query I rowsort label-6026
SELECT DISTINCT MIN ( DISTINCT + 88 ) * + + ( - - 57 ) AS col2
----
5016

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6027
SELECT ALL 84 * - - CAST( NULL AS SIGNED ) AS col0
----
NULL

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

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

skipif mysql # not compatible
query I rowsort label-6028
SELECT - 24 - - - COUNT ( * ) / + 80 - + 0 AS col2
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-6029
SELECT + 68 + - + SUM( DISTINCT + - COALESCE ( 47, 7 ) ) AS col0
----
115

skipif mysql # not compatible
query I rowsort label-6029
SELECT + 68 + - + SUM ( DISTINCT + - COALESCE ( 47, 7 ) ) AS col0
----
115

query I rowsort
SELECT + 81 * + 77
----
6237

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6031
SELECT ALL COALESCE ( - + 20, + CAST( NULL AS SIGNED ) ) AS col2
----
-20

skipif mysql # not compatible
query I rowsort label-6031
SELECT ALL COALESCE ( - + 20, + CAST ( NULL AS INTEGER ) ) AS col2
----
-20

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

skipif mysql # not compatible
query I rowsort label-6032
SELECT ALL CAST ( + + 90 AS INTEGER ) AS col2
----
90

query I rowsort
SELECT - - 42 + - 70 AS col2
----
-28

query I rowsort
SELECT - - 37 - + 27 AS col1
----
10

query I rowsort
SELECT - + 67 + - + 48
----
-115

query I rowsort
SELECT ALL + CASE - 72 WHEN + 15 THEN 17 END + + - 86
----
NULL

query I rowsort
SELECT DISTINCT + CASE 19 WHEN - 65 THEN + - 21 * + 27 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6038
SELECT ALL 39 * + + 58 * + 95 * + 15 / + + CASE + 53 WHEN + 93 THEN - 45 WHEN + COUNT( * ) THEN - + CAST( NULL AS SIGNED ) + + + 16 ELSE NULL END + + NULLIF ( + 63, MAX( + + 74 ) ) / + - 67 + CAST( 23 AS SIGNED ) * + - 16 * + 43 * - - 95 - - 27 * - 52 + - + 9 + - 18
----
NULL

skipif mysql # not compatible
query I rowsort label-6038
SELECT ALL 39 * + + 58 * + 95 * + 15 / + + CASE + 53 WHEN + 93 THEN - 45 WHEN + COUNT ( * ) THEN - + CAST ( NULL AS INTEGER ) + + + 16 ELSE NULL END + + NULLIF ( + 63, MAX ( + + 74 ) ) / + - 67 + CAST ( 23 AS INTEGER ) * + - 16 * + 43 * - - 95 - - 27 * - 52 + - + 9 + - 18
----
NULL

query I rowsort
SELECT - 53 + + 46 + + 55 + - 65
----
-17

query II rowsort
SELECT - 13, + 82 * + 38 + - 31 AS col1
----
-13
3085

query I rowsort
SELECT + + 61 col0
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6042
SELECT - COALESCE ( + + ( COALESCE ( - 80, - ( + + 14 ) ) ), 27, - COALESCE ( + COALESCE ( - - 63, - 20, + 76 ), - 69 * - 47 * + + 15 ) * + + AVG ( + CAST( NULL AS SIGNED ) ) ) * - 37 + - COUNT( * ) + 72 - ( - - ( + - CAST( NULL AS SIGNED ) ) ) + - 35 / + - 45 * - 55 * + - 24 - + - 77 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6042
SELECT - COALESCE ( + + ( COALESCE ( - 80, - ( + + 14 ) ) ), 27, - COALESCE ( + COALESCE ( - - 63, - 20, + 76 ), - 69 * - 47 * + + 15 ) * + + AVG ( + CAST ( NULL AS INTEGER ) ) ) * - 37 + - COUNT ( * ) + 72 - ( - - ( + - CAST ( NULL AS INTEGER ) ) ) + - 35 / + - 45 * - 55 * + - 24 - + - 77 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6043
SELECT ALL + 2 * + ( + 12 ) + - + ( 28 ) * + - COUNT( ( 54 ) ) * + 17
----
500

skipif mysql # not compatible
query I rowsort label-6043
SELECT ALL + 2 * + ( + 12 ) + - + ( 28 ) * + - COUNT ( ( 54 ) ) * + 17
----
500

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

skipif mysql # not compatible
query I rowsort label-6044
SELECT + MAX ( 7 )
----
7

query I rowsort
SELECT - 1 * - 76 + - 16
----
60

query I rowsort
SELECT NULLIF ( - - 42, 17 ) AS col2
----
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6047
SELECT COUNT( ALL - 32 ) DIV 93 + + 18 AS col0
----
18

skipif mysql # not compatible
query I rowsort label-6047
SELECT COUNT ( ALL - 32 ) / 93 + + 18 AS col0
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-6048
SELECT COALESCE ( - + 16, + 89 DIV - + 71 * - - 32 )
----
-16

skipif mysql # not compatible
query I rowsort label-6048
SELECT COALESCE ( - + 16, + 89 / - + 71 * - - 32 )
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6049
SELECT - 49 / + + ( - CAST( NULL AS SIGNED ) ) * 44 / - 48 * 12 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6049
SELECT - 49 / + + ( - CAST ( NULL AS INTEGER ) ) * 44 / - 48 * 12 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6050
SELECT ALL + 25 * NULLIF ( - 3, - 9 ) * + 3 * + + 54 * - 69 + - - CAST( NULL AS SIGNED ) * + 21 + - 70 - - 43 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6050
SELECT ALL + 25 * NULLIF ( - 3, - 9 ) * + 3 * + + 54 * - 69 + - - CAST ( NULL AS INTEGER ) * + 21 + - 70 - - 43 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6051
SELECT ALL 79 * - - MAX( ALL - 50 ) * - CAST( + 51 AS SIGNED )
----
201450

skipif mysql # not compatible
query I rowsort label-6051
SELECT ALL 79 * - - MAX ( ALL - 50 ) * - CAST ( + 51 AS INTEGER )
----
201450

onlyif mysql # aggregate syntax: 
query I rowsort label-6052
SELECT + MAX( - 21 ) AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-6052
SELECT + MAX ( - 21 ) AS col0
----
-21

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6055
SELECT ALL - SUM( ALL + + 51 ) * + 68 + 57 + - - 82 DIV - 55
----
-3412

skipif mysql # not compatible
query I rowsort label-6055
SELECT ALL - SUM ( ALL + + 51 ) * + 68 + 57 + - - 82 / - 55
----
-3412

onlyif mysql # aggregate syntax: 
query II rowsort label-6056
SELECT ALL - 9 * - COALESCE ( - - 53, + - 56 ) * + + 26 / + + 32 * COALESCE ( + + 3, + 5, + + 16 / - 94 ) + COUNT( * ) / + COALESCE ( - 27, - 72 * + 46 + 21 ) - + 28 * + ( 32 ) / - CASE 85 WHEN + - NULLIF ( 38, 71 + - 54 ) THEN NULL WHEN 53 * 70 + + + 13 THEN COUNT( * ) WHEN + 14 * 39 * 91 + + 7 THEN NULL END col0, - COUNT( * ) * + 5
----
NULL
-5

skipif mysql # not compatible
query II rowsort label-6056
SELECT ALL - 9 * - COALESCE ( - - 53, + - 56 ) * + + 26 / + + 32 * COALESCE ( + + 3, + 5, + + 16 / - 94 ) + COUNT ( * ) / + COALESCE ( - 27, - 72 * + 46 + 21 ) - + 28 * + ( 32 ) / - CASE 85 WHEN + - NULLIF ( 38, 71 + - 54 ) THEN NULL WHEN 53 * 70 + + + 13 THEN COUNT ( * ) WHEN + 14 * 39 * 91 + + 7 THEN NULL END col0, - COUNT ( * ) * + 5
----
NULL
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6057
SELECT - 7 * + - CASE + CASE - 63 WHEN + CAST( - COUNT( * ) AS DECIMAL ) THEN - COUNT( * ) END WHEN + 71 THEN NULL WHEN - CAST( - 9 AS SIGNED ) * + + 38 - + 72 * + 98 * - 11 THEN + 90 * - 34 + - - COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6057
SELECT - 7 * + - CASE + CASE - 63 WHEN + CAST ( - COUNT ( * ) AS REAL ) THEN - COUNT ( * ) END WHEN + 71 THEN NULL WHEN - CAST ( - 9 AS INTEGER ) * + + 38 - + 72 * + 98 * - 11 THEN + 90 * - 34 + - - COUNT ( * ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6058
SELECT - 25 + COUNT( * ) DIV + 75 + + 10 AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-6058
SELECT - 25 + COUNT ( * ) / + 75 + + 10 AS col0
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-6059
SELECT DISTINCT 36 * COUNT( * ) * CASE 88 WHEN + - 82 THEN 5 + - 10 + + AVG ( DISTINCT - + 5 ) * + 3 * - + ( - COUNT( * ) ) * 80 - - 90 WHEN + 76 THEN NULL END AS col1, - 59 - + 97 - + 60 * COUNT( * ) col0
----
NULL
-216

skipif mysql # not compatible
query II rowsort label-6059
SELECT DISTINCT 36 * COUNT ( * ) * CASE 88 WHEN + - 82 THEN 5 + - 10 + + AVG ( DISTINCT - + 5 ) * + 3 * - + ( - COUNT ( * ) ) * 80 - - 90 WHEN + 76 THEN NULL END AS col1, - 59 - + 97 - + 60 * COUNT ( * ) col0
----
NULL
-216

onlyif mysql # aggregate syntax: 
query I rowsort label-6060
SELECT 21 * COUNT( * ) + + ( - NULLIF ( - SUM( + + 37 ), + - 69 ) ) * + COUNT( * )
----
58

skipif mysql # not compatible
query I rowsort label-6060
SELECT 21 * COUNT ( * ) + + ( - NULLIF ( - SUM ( + + 37 ), + - 69 ) ) * + COUNT ( * )
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6061
SELECT COUNT( + - NULLIF ( + - 97, + 38 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6061
SELECT COUNT ( + - NULLIF ( + - 97, + 38 ) ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6062
SELECT + MAX( ALL + 43 ) * - 49 * + - CAST( NULL AS SIGNED ) + + + 16 * MIN( - + 98 ) * - 94 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6062
SELECT + MAX ( ALL + 43 ) * - 49 * + - CAST ( NULL AS INTEGER ) + + + 16 * MIN ( - + 98 ) * - 94 AS col1
----
NULL

query I rowsort
SELECT + - 32 + - 77 AS col1
----
-109

onlyif mysql # DIV for integer division: 
query I rowsort label-6064
SELECT DISTINCT 96 DIV + + 70 + 45 * - - 92
----
4141

skipif mysql # not compatible
query I rowsort label-6064
SELECT DISTINCT 96 / + + 70 + 45 * - - 92
----
4141

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6065
SELECT + + COUNT( DISTINCT - 29 ) DIV + 43 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6065
SELECT + + COUNT ( DISTINCT - 29 ) / + 43 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6066
SELECT + + SUM( + 78 ) * - + CAST( + 4 AS SIGNED )
----
-312

skipif mysql # not compatible
query I rowsort label-6066
SELECT + + SUM ( + 78 ) * - + CAST ( + 4 AS INTEGER )
----
-312

onlyif mysql # aggregate syntax: 
query I rowsort label-6067
SELECT - 44 + - COUNT( * ) + - 56 * - + 77 * - ( - + COUNT( * ) ) AS col0
----
4267

skipif mysql # not compatible
query I rowsort label-6067
SELECT - 44 + - COUNT ( * ) + - 56 * - + 77 * - ( - + COUNT ( * ) ) AS col0
----
4267

query I rowsort
SELECT DISTINCT 14 * - 41 * - 52 AS col1
----
29848

query I rowsort
SELECT ALL - 2 * + 53 * + - 86
----
9116

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

skipif mysql # not compatible
query I rowsort label-6070
SELECT + 1 / + - 59
----
0

query I rowsort
SELECT ALL - 85 + + 59 * - 33
----
-2032

query I rowsort
SELECT ALL + - 78 + + + 23 col1
----
-55

query I rowsort
SELECT DISTINCT - 83 + 14
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-6074
SELECT - ( - NULLIF ( + - 25, COUNT( + + 98 ) * + + COUNT( * ) / - COALESCE ( - - 92, 1 ) ) ) AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-6074
SELECT - ( - NULLIF ( + - 25, COUNT ( + + 98 ) * + + COUNT ( * ) / - COALESCE ( - - 92, 1 ) ) ) AS col2
----
-25

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6075
SELECT DISTINCT ( + 6 ) + + 58 - - + 84 * - COUNT( ALL + + CAST( NULL AS DECIMAL ) ) * + + 5 * + COUNT( * )
----
64

skipif mysql # not compatible
query I rowsort label-6075
SELECT DISTINCT ( + 6 ) + + 58 - - + 84 * - COUNT ( ALL + + CAST ( NULL AS REAL ) ) * + + 5 * + COUNT ( * )
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-6076
SELECT ALL - 50 + - - 75 + - 88 * + COUNT( * ) * + + 50 col2
----
-4375

skipif mysql # not compatible
query I rowsort label-6076
SELECT ALL - 50 + - - 75 + - 88 * + COUNT ( * ) * + + 50 col2
----
-4375

onlyif mysql # DIV for integer division: 
query I rowsort label-6077
SELECT DISTINCT - 92 DIV 52 DIV - 43 col0
----
0

skipif mysql # not compatible
query I rowsort label-6077
SELECT DISTINCT - 92 / 52 / - 43 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6078
SELECT MIN( DISTINCT - 5 ) col1
----
-5

skipif mysql # not compatible
query I rowsort label-6078
SELECT MIN ( DISTINCT - 5 ) col1
----
-5

query I rowsort
SELECT + 91 * + 92 - + 46 AS col2
----
8326

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

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

query II rowsort
SELECT + 94, + 73 * + + 13 AS col0
----
94
949

onlyif mysql # DIV for integer division: 
query I rowsort label-6083
SELECT DISTINCT - 75 DIV 33 - 94 AS col2
----
-96

skipif mysql # not compatible
query I rowsort label-6083
SELECT DISTINCT - 75 / 33 - 94 AS col2
----
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6084
SELECT ALL - COUNT( * ) DIV - 54 - + 73
----
-73

skipif mysql # not compatible
query I rowsort label-6084
SELECT ALL - COUNT ( * ) / - 54 - + 73
----
-73

query I rowsort
SELECT - 43 * - 79 AS col2
----
3397

query I rowsort
SELECT ALL - 88 * + - 38
----
3344

query I rowsort
SELECT ( - 28 ) AS col2
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-6088
SELECT DISTINCT + MIN( ALL + - 45 ) col1
----
-45

skipif mysql # not compatible
query I rowsort label-6088
SELECT DISTINCT + MIN ( ALL + - 45 ) col1
----
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6089
SELECT ALL - ( 45 ) DIV + 61 - - - COUNT( * ) + + 68 + 29 * - - 23
----
734

skipif mysql # not compatible
query I rowsort label-6089
SELECT ALL - ( 45 ) / + 61 - - - COUNT ( * ) + + 68 + 29 * - - 23
----
734

query I rowsort
SELECT - 7 * + 21 AS col1
----
-147

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6093
SELECT + 66 DIV - 96 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6093
SELECT + 66 / - 96 AS col0
----
0

query I rowsort
SELECT - 77 * 91
----
-7007

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

query I rowsort
SELECT ALL 24 * - 71 AS col1
----
-1704

query I rowsort
SELECT ALL 41 * 71 AS col2
----
2911

query I rowsort
SELECT 73 * - 61
----
-4453

onlyif mysql # DIV for integer division: 
query I rowsort label-6099
SELECT ALL - 54 DIV + 35 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6099
SELECT ALL - 54 / + 35 AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6100
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * MAX( ALL + 85 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6100
SELECT DISTINCT + CAST ( NULL AS REAL ) * MAX ( ALL + 85 ) AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6102
SELECT ALL 3 + COUNT( * )
----
4

skipif mysql # not compatible
query I rowsort label-6102
SELECT ALL 3 + COUNT ( * )
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6103
SELECT 99 + CAST( COUNT( DISTINCT + 10 ) AS SIGNED )
----
100

skipif mysql # not compatible
query I rowsort label-6103
SELECT 99 + CAST ( COUNT ( DISTINCT + 10 ) AS INTEGER )
----
100

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-6104
SELECT DISTINCT + 73 + - 7 DIV + CAST( - - ( ( - CAST( + 82 AS DECIMAL ) ) ) AS SIGNED ) * ( + + ( - 37 ) )
----
73

skipif mysql # not compatible
query I rowsort label-6104
SELECT DISTINCT + 73 + - 7 / + CAST ( - - ( ( - CAST ( + 82 AS REAL ) ) ) AS INTEGER ) * ( + + ( - 37 ) )
----
73

query I rowsort
SELECT ALL + 15 + + 59
----
74

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

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

query I rowsort
SELECT 68 - - 99 AS col0
----
167

query II rowsort
SELECT - 25 AS col0, + 98 AS col2
----
-25
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6109
SELECT + 35 DIV + ( + MIN( DISTINCT + 3 ) )
----
11

skipif mysql # not compatible
query I rowsort label-6109
SELECT + 35 / + ( + MIN ( DISTINCT + 3 ) )
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6110
SELECT - 75 + - 3 + - + CASE + 35 WHEN + 77 THEN - - COUNT( * ) WHEN - MIN( ALL + 38 ) THEN NULL END AS col2, MIN( ALL + - 68 ) DIV - COUNT( * )
----
NULL
68

skipif mysql # not compatible
query II rowsort label-6110
SELECT - 75 + - 3 + - + CASE + 35 WHEN + 77 THEN - - COUNT ( * ) WHEN - MIN ( ALL + 38 ) THEN NULL END AS col2, MIN ( ALL + - 68 ) / - COUNT ( * )
----
NULL
68

onlyif mysql # aggregate syntax: 
query II rowsort label-6111
SELECT - COUNT( * ) col1, 98
----
-1
98

skipif mysql # not compatible
query II rowsort label-6111
SELECT - COUNT ( * ) col1, 98
----
-1
98

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

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

query I rowsort
SELECT - ( + 76 ) + + 59
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-6114
SELECT COUNT( * ) - + ( - 76 ) col1
----
77

skipif mysql # not compatible
query I rowsort label-6114
SELECT COUNT ( * ) - + ( - 76 ) col1
----
77

query I rowsort
SELECT + 11 * - 18 AS col0
----
-198

onlyif mysql # aggregate syntax: 
query I rowsort label-6116
SELECT ( + ( + - 17 ) ) + COUNT( * )
----
-16

skipif mysql # not compatible
query I rowsort label-6116
SELECT ( + ( + - 17 ) ) + COUNT ( * )
----
-16

query I rowsort
SELECT + 86 * NULLIF ( - - 71, - + 46 ) + 91 * - 7 * + 9 + 4 + - + 75 col1
----
302

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

skipif mysql # not compatible
query I rowsort label-6118
SELECT 58 / + COUNT ( * ) AS col0
----
58

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6120
SELECT 57 DIV - 49 + - 48 AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-6120
SELECT 57 / - 49 + - 48 AS col2
----
-49

query II rowsort
SELECT DISTINCT - 9, 91 * + 12 + - 56 AS col0
----
-9
1036

query II rowsort
SELECT 97 AS col2, 82
----
97
82

onlyif mysql # aggregate syntax: 
query I rowsort label-6123
SELECT DISTINCT - COALESCE ( + 40, + 99 - 15 * - COUNT( * ) * MIN( ALL 65 ) ) AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-6123
SELECT DISTINCT - COALESCE ( + 40, + 99 - 15 * - COUNT ( * ) * MIN ( ALL 65 ) ) AS col2
----
-40

query I rowsort
SELECT ALL - 67 * - 95 * 42 AS col0
----
267330

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6127
SELECT DISTINCT + 22 + - + 91 + 54 DIV 77, 96 + + + 18 * + - ( + + MAX( - CAST( - ( - 95 ) AS SIGNED ) ) ) + - 67 AS col0
----
-69
1739

skipif mysql # not compatible
query II rowsort label-6127
SELECT DISTINCT + 22 + - + 91 + 54 / 77, 96 + + + 18 * + - ( + + MAX ( - CAST ( - ( - 95 ) AS INTEGER ) ) ) + - 67 AS col0
----
-69
1739

query I rowsort
SELECT ALL - 67 * - - 11 AS col2
----
-737

query I rowsort
SELECT DISTINCT - + NULLIF ( + 46, + + 95 + - 22 ) * + + 36
----
-1656

query II rowsort
SELECT 37 - + NULLIF ( - 99, - 3 ) - + 8 * - 58 * + 10, - 19 AS col0
----
4776
-19

query II rowsort
SELECT ALL - 24 AS col2, 92 AS col0
----
-24
92

query I rowsort
SELECT + 26 + + - 29
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6133
SELECT ALL + - 24 DIV + NULLIF ( + 56, - SUM( + 4 ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6133
SELECT ALL + - 24 / + NULLIF ( + 56, - SUM ( + 4 ) ) AS col0
----
0

query II rowsort
SELECT DISTINCT - 16 + - 78 AS col0, + 95 - + - 6 + 12
----
-94
113

query II rowsort
SELECT DISTINCT 32 * + 64 AS col1, - 76
----
2048
-76

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

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

query I rowsort
SELECT - 6 + + 27 AS col0
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-6138
SELECT ALL + + 32 DIV NULLIF ( - 62, 46 )
----
0

skipif mysql # not compatible
query I rowsort label-6138
SELECT ALL + + 32 / NULLIF ( - 62, 46 )
----
0

query I rowsort
SELECT 83 + 92 AS col0
----
175

query I rowsort
SELECT ALL - + 19 * + 8 * - + 25 col1
----
3800

onlyif mysql # DIV for integer division: 
query I rowsort label-6141
SELECT + NULLIF ( + 64, 10 * - 53 ) + - 26 DIV 4 * - 7 AS col1
----
106

skipif mysql # not compatible
query I rowsort label-6141
SELECT + NULLIF ( + 64, 10 * - 53 ) + - 26 / 4 * - 7 AS col1
----
106

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6143
SELECT DISTINCT + 36 AS col1, - MIN( - 11 )
----
36
11

skipif mysql # not compatible
query II rowsort label-6143
SELECT DISTINCT + 36 AS col1, - MIN ( - 11 )
----
36
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6144
SELECT ALL - AVG ( DISTINCT + 77 ) - + - 94 + + CAST( NULL AS SIGNED ) * + + 36 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6144
SELECT ALL - AVG ( DISTINCT + 77 ) - + - 94 + + CAST ( NULL AS INTEGER ) * + + 36 col1
----
NULL

query I rowsort
SELECT + 9 * - + 57 AS col1
----
-513

query I rowsort
SELECT DISTINCT - ( + 4 ) * - + 9 AS col2
----
36

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6149
SELECT - MIN( DISTINCT 78 ) AS col2, - 13 + - 42
----
-78
-55

skipif mysql # not compatible
query II rowsort label-6149
SELECT - MIN ( DISTINCT 78 ) AS col2, - 13 + - 42
----
-78
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6150
SELECT CASE + + COALESCE ( 63, + 14 ) WHEN + 34 * 72 + + 95 + 96 / + 51 THEN 44 ELSE NULL END * + - 83 * - MAX( ALL - NULLIF ( + 91, + - CAST( NULL AS SIGNED ) * + ( - 24 ) + 34 + - 22 + + 0 * - + 9 * 67 / ( - 62 ) ) ) * - 6 * - 93
----
NULL

skipif mysql # not compatible
query I rowsort label-6150
SELECT CASE + + COALESCE ( 63, + 14 ) WHEN + 34 * 72 + + 95 + 96 / + 51 THEN 44 ELSE NULL END * + - 83 * - MAX ( ALL - NULLIF ( + 91, + - CAST ( NULL AS INTEGER ) * + ( - 24 ) + 34 + - 22 + + 0 * - + 9 * 67 / ( - 62 ) ) ) * - 6 * - 93
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6151
SELECT ALL CASE 8 WHEN - 29 THEN + 84 ELSE - CAST( NULL AS SIGNED ) END / - 51 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6151
SELECT ALL CASE 8 WHEN - 29 THEN + 84 ELSE - CAST ( NULL AS INTEGER ) END / - 51 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6152
SELECT - COUNT( * ) * + COUNT( * ) - - 62 * + 49 col0
----
3037

skipif mysql # not compatible
query I rowsort label-6152
SELECT - COUNT ( * ) * + COUNT ( * ) - - 62 * + 49 col0
----
3037

onlyif mysql # aggregate syntax: 
query I rowsort label-6153
SELECT CASE - - COUNT( * ) WHEN 81 - - 28 - - 25 THEN NULL ELSE + 55 * - 40 END
----
-2200

skipif mysql # not compatible
query I rowsort label-6153
SELECT CASE - - COUNT ( * ) WHEN 81 - - 28 - - 25 THEN NULL ELSE + 55 * - 40 END
----
-2200

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6155
SELECT ALL 48 * 80 * - COUNT( * ) * 7
----
-26880

skipif mysql # not compatible
query I rowsort label-6155
SELECT ALL 48 * 80 * - COUNT ( * ) * 7
----
-26880

query I rowsort
SELECT DISTINCT ( - 28 ) * - + 51
----
1428

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6157
SELECT ALL 25 * 55 + + COALESCE ( COUNT( * ), - 22, - 3 * MIN( + 60 ) + - CASE 82 WHEN + 68 * + ( + + COUNT( * ) ) / ( - - 12 ) THEN COALESCE ( + ( + 71 ), - 74, + + 94 ) ELSE NULL END + + 2 * COALESCE ( - 69, - - CAST( NULL AS SIGNED ) * + + 1 ), - 86 )
----
1376

skipif mysql # not compatible
query I rowsort label-6157
SELECT ALL 25 * 55 + + COALESCE ( COUNT ( * ), - 22, - 3 * MIN ( + 60 ) + - CASE 82 WHEN + 68 * + ( + + COUNT ( * ) ) / ( - - 12 ) THEN COALESCE ( + ( + 71 ), - 74, + + 94 ) ELSE NULL END + + 2 * COALESCE ( - 69, - - CAST ( NULL AS INTEGER ) * + + 1 ), - 86 )
----
1376

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6158
SELECT + 6 * - - MIN( ALL - - 1 ) * - - CASE - 14 WHEN CASE - 44 WHEN 12 THEN 75 ELSE - 37 + + 3 + + 88 END THEN + 7 WHEN CAST( NULL AS SIGNED ) THEN - 21 WHEN ( 86 ) THEN NULL END - - 23 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6158
SELECT + 6 * - - MIN ( ALL - - 1 ) * - - CASE - 14 WHEN CASE - 44 WHEN 12 THEN 75 ELSE - 37 + + 3 + + 88 END THEN + 7 WHEN CAST ( NULL AS INTEGER ) THEN - 21 WHEN ( 86 ) THEN NULL END - - 23 AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-6159
SELECT + MIN ( 99 )
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6160
SELECT CAST( NULL AS SIGNED ) / + NULLIF ( + + CAST( NULL AS SIGNED ), - - 28 ) - - 41 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6160
SELECT CAST ( NULL AS INTEGER ) / + NULLIF ( + + CAST ( NULL AS INTEGER ), - - 28 ) - - 41 AS col0
----
NULL

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

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

query I rowsort
SELECT ALL 62 * - + ( COALESCE ( + - ( 49 ), + 66, + + COALESCE ( + ( 20 ), + 79 + - ( 99 ) ) * 19 * - 41 + - 1, - - 61 ) ) + - 48 AS col2
----
2990

query I rowsort
SELECT + 12 * 86
----
1032

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6164
SELECT + COALESCE ( NULLIF ( + 93, 31 ), - 0 * - COUNT( * ), - CAST( NULL AS SIGNED ) - + 19 * + - CASE COUNT( * ) WHEN + 42 * - COUNT( * ) DIV - ( - + 12 ) * + COUNT( * ) THEN 3 ELSE 83 + + - 34 END ) * + - CASE + - 58 WHEN + 85 * + - 62 THEN NULL ELSE + ( + 93 ) - - COUNT( + + 2 ) DIV - - 95 END * 68 + + COUNT( * ) AS col1
----
-588131

skipif mysql # not compatible
query I rowsort label-6164
SELECT + COALESCE ( NULLIF ( + 93, 31 ), - 0 * - COUNT ( * ), - CAST ( NULL AS INTEGER ) - + 19 * + - CASE COUNT ( * ) WHEN + 42 * - COUNT ( * ) / - ( - + 12 ) * + COUNT ( * ) THEN 3 ELSE 83 + + - 34 END ) * + - CASE + - 58 WHEN + 85 * + - 62 THEN NULL ELSE + ( + 93 ) - - COUNT ( + + 2 ) / - - 95 END * 68 + + COUNT ( * ) AS col1
----
-588131

onlyif mysql # aggregate syntax: 
query I rowsort label-6165
SELECT ALL + COALESCE ( + + COUNT( * ), + 96, - 52 )
----
1

skipif mysql # not compatible
query I rowsort label-6165
SELECT ALL + COALESCE ( + + COUNT ( * ), + 96, - 52 )
----
1

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

query I rowsort
SELECT DISTINCT - 56 * - 78 col1
----
4368

onlyif mysql # aggregate syntax: 
query I rowsort label-6168
SELECT ALL + 23 * - COUNT( * ) + + 65 * COUNT( * )
----
42

skipif mysql # not compatible
query I rowsort label-6168
SELECT ALL + 23 * - COUNT ( * ) + + 65 * COUNT ( * )
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-6169
SELECT - 95 + + COUNT( * ) + + 43 + + ( + - 41 )
----
-92

skipif mysql # not compatible
query I rowsort label-6169
SELECT - 95 + + COUNT ( * ) + + 43 + + ( + - 41 )
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6170
SELECT DISTINCT + + ( + CASE + AVG ( ( - 12 ) ) WHEN + - ( + + MIN( + 91 ) ) THEN NULL WHEN + + 45 THEN NULL WHEN + 31 + 47 THEN + - 95 END ) * - CAST( + CAST( NULL AS DECIMAL ) AS SIGNED ) * + ( 35 ) / - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6170
SELECT DISTINCT + + ( + CASE + AVG ( ( - 12 ) ) WHEN + - ( + + MIN ( + 91 ) ) THEN NULL WHEN + + 45 THEN NULL WHEN + 31 + 47 THEN + - 95 END ) * - CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) * + ( 35 ) / - COUNT ( * ) AS col1
----
NULL

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

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

query I rowsort
SELECT - - 52 * + - 82 AS col1
----
-4264

query I rowsort
SELECT - + 82 + - ( - - 9 )
----
-91

query I rowsort
SELECT ALL - 71 - 50
----
-121

query I rowsort
SELECT ALL NULLIF ( - ( + 51 ), - 31 ) AS col0
----
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-6176
SELECT - - ( + 25 ) * + + 77 * - 62 * + COUNT( * ) AS col1, - ( + MAX( + 37 ) ) AS col2
----
-119350
-37

skipif mysql # not compatible
query II rowsort label-6176
SELECT - - ( + 25 ) * + + 77 * - 62 * + COUNT ( * ) AS col1, - ( + MAX ( + 37 ) ) AS col2
----
-119350
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6177
SELECT ALL - COALESCE ( + 17, - + NULLIF ( - 29, - CAST( NULL AS SIGNED ) * SUM( DISTINCT + 27 ) ) * - 83, - CASE + + 39 WHEN + - 81 * + - COUNT( * ) - 90 THEN - - 0 + - + 39 + + 45 + COUNT( * ) DIV - - 82 DIV + 69 + + 11 END ) AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-6177
SELECT ALL - COALESCE ( + 17, - + NULLIF ( - 29, - CAST ( NULL AS INTEGER ) * SUM ( DISTINCT + 27 ) ) * - 83, - CASE + + 39 WHEN + - 81 * + - COUNT ( * ) - 90 THEN - - 0 + - + 39 + + 45 + COUNT ( * ) / - - 82 / + 69 + + 11 END ) AS col1
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-6178
SELECT - 93 DIV + - 49
----
1

skipif mysql # not compatible
query I rowsort label-6178
SELECT - 93 / + - 49
----
1

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

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

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

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

query I rowsort
SELECT - 97 + 94 AS col0
----
-3

query II rowsort
SELECT - 8 + + + 46 * - 77 AS col0, + 95 * - ( - + ( - + 54 ) )
----
-3550
-5130

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6184
SELECT ALL + CAST( NULL AS DECIMAL ) * 4 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6184
SELECT ALL + CAST ( NULL AS REAL ) * 4 AS col0
----
NULL

query I rowsort
SELECT - 61 + + 57
----
-4

query I rowsort
SELECT ALL 72 * - + NULLIF ( - 82, - ( - 12 ) ) * + + 66
----
389664

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6188
SELECT DISTINCT + ( + + NULLIF ( - 67, + 6 * + + COUNT( DISTINCT ( + 49 ) ) + + + 40 ) ) + - + COUNT( * ) * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6188
SELECT DISTINCT + ( + + NULLIF ( - 67, + 6 * + + COUNT ( DISTINCT ( + 49 ) ) + + + 40 ) ) + - + COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6189
SELECT ALL - COUNT( * ) + - 62
----
-63

skipif mysql # not compatible
query I rowsort label-6189
SELECT ALL - COUNT ( * ) + - 62
----
-63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6190
SELECT DISTINCT ( - COUNT( * ) ) DIV - 76 + + - 44 * 8 AS col0
----
-352

skipif mysql # not compatible
query I rowsort label-6190
SELECT DISTINCT ( - COUNT ( * ) ) / - 76 + + - 44 * 8 AS col0
----
-352

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6191
SELECT ALL 15 DIV - - MAX( 17 ) + - + 39 AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-6191
SELECT ALL 15 / - - MAX ( 17 ) + - + 39 AS col1
----
-39

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6194
SELECT CAST( NULL AS SIGNED ), 57 + + 70 * - + 8 * - 70 + - 56 DIV - - COUNT( + - CAST( 69 AS SIGNED ) ) col0
----
NULL
39201

skipif mysql # not compatible
query II rowsort label-6194
SELECT CAST ( NULL AS INTEGER ), 57 + + 70 * - + 8 * - 70 + - 56 / - - COUNT ( + - CAST ( 69 AS INTEGER ) ) col0
----
NULL
39201

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6195
SELECT DISTINCT SUM( ALL - 37 ) DIV + - 77 + + - 67 AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-6195
SELECT DISTINCT SUM ( ALL - 37 ) / + - 77 + + - 67 AS col1
----
-67

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query III rowsort label-6197
SELECT ( - CASE + 82 WHEN + 71 * COALESCE ( + - CAST( NULL AS SIGNED ), - 47 ) * - 22 * + COALESCE ( - 99, 29 ) * - 45 + 69 THEN + ( + COUNT( * ) ) WHEN + + COUNT( * ) * NULLIF ( - 96, + CAST( NULL AS DECIMAL ) * 25 + + 67 ) THEN NULL WHEN + - COUNT( * ) THEN NULL END ) / - - 43 + - 80 AS col1, NULLIF ( + 82, + NULLIF ( - ( NULLIF ( + - 47, 6 ) ), - + CASE + 36 WHEN + ( - COUNT( * ) ) THEN + CASE - 44 WHEN - NULLIF ( - 90, - 37 ) THEN + 48 ELSE NULL END WHEN + MIN( + ( 58 ) ) THEN NULL ELSE NULL END ) ) * - CAST( COUNT( * ) AS SIGNED ) AS col1, + ( - + 38 ) * CASE - 39 WHEN + COUNT( * ) + 37 * 81 THEN - 22 * + AVG ( ALL - NULLIF ( + 67, 59 ) ) WHEN 24 + + 67 * - 36 THEN - 95 WHEN 21 THEN 29 / - 45 END AS col0
----
NULL
-82
NULL

skipif mysql # not compatible
query III rowsort label-6197
SELECT ( - CASE + 82 WHEN + 71 * COALESCE ( + - CAST ( NULL AS INTEGER ), - 47 ) * - 22 * + COALESCE ( - 99, 29 ) * - 45 + 69 THEN + ( + COUNT ( * ) ) WHEN + + COUNT ( * ) * NULLIF ( - 96, + CAST ( NULL AS REAL ) * 25 + + 67 ) THEN NULL WHEN + - COUNT ( * ) THEN NULL END ) / - - 43 + - 80 AS col1, NULLIF ( + 82, + NULLIF ( - ( NULLIF ( + - 47, 6 ) ), - + CASE + 36 WHEN + ( - COUNT ( * ) ) THEN + CASE - 44 WHEN - NULLIF ( - 90, - 37 ) THEN + 48 ELSE NULL END WHEN + MIN ( + ( 58 ) ) THEN NULL ELSE NULL END ) ) * - CAST ( COUNT ( * ) AS INTEGER ) AS col1, + ( - + 38 ) * CASE - 39 WHEN + COUNT ( * ) + 37 * 81 THEN - 22 * + AVG ( ALL - NULLIF ( + 67, 59 ) ) WHEN 24 + + 67 * - 36 THEN - 95 WHEN 21 THEN 29 / - 45 END AS col0
----
NULL
-82
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6198
SELECT ALL + 7 DIV - 54 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6198
SELECT ALL + 7 / - 54 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6199
SELECT ALL 53 * 47 + - - COUNT( ALL + 55 ) * 51 AS col1
----
2542

skipif mysql # not compatible
query I rowsort label-6199
SELECT ALL 53 * 47 + - - COUNT ( ALL + 55 ) * 51 AS col1
----
2542

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

query II rowsort
SELECT ALL + 84 AS col2, + 31 * - + 63 AS col2
----
84
-1953

query I rowsort
SELECT + - 22 + - + 91 AS col1
----
-113

onlyif mysql # aggregate syntax: 
query I rowsort label-6203
SELECT DISTINCT - 57 * - 51 * + COUNT( + 36 ) - - 6 + - + 63 * - 76 * NULLIF ( - 80, + 98 ) + 50 AS col0
----
-380077

skipif mysql # not compatible
query I rowsort label-6203
SELECT DISTINCT - 57 * - 51 * + COUNT ( + 36 ) - - 6 + - + 63 * - 76 * NULLIF ( - 80, + 98 ) + 50 AS col0
----
-380077

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6205
SELECT + COUNT( * ) * - CASE + - 60 WHEN + ( + ( - 49 ) ) THEN 78 WHEN + 54 THEN NULL ELSE NULL END + - 96 * + - 56 * + 95 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6205
SELECT + COUNT ( * ) * - CASE + - 60 WHEN + ( + ( - 49 ) ) THEN 78 WHEN + 54 THEN NULL ELSE NULL END + - 96 * + - 56 * + 95 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6206
SELECT - 9 AS col1, CAST( - 3 AS SIGNED ) AS col0
----
-9
-3

skipif mysql # not compatible
query II rowsort label-6206
SELECT - 9 AS col1, CAST ( - 3 AS INTEGER ) AS col0
----
-9
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6207
SELECT + - 72 + - + COUNT( - 32 ) AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-6207
SELECT + - 72 + - + COUNT ( - 32 ) AS col0
----
-73

query I rowsort
SELECT + - 61 + + - 82 AS col2
----
-143

onlyif mysql # aggregate syntax: 
query I rowsort label-6209
SELECT + COUNT( * ) * + + 24 * + COUNT( * ) * + + COUNT( * ) + + 39 + + 94 AS col1
----
157

skipif mysql # not compatible
query I rowsort label-6209
SELECT + COUNT ( * ) * + + 24 * + COUNT ( * ) * + + COUNT ( * ) + + 39 + + 94 AS col1
----
157

onlyif mysql # DIV for integer division: 
query I rowsort label-6210
SELECT DISTINCT 80 DIV - + 50
----
-1

skipif mysql # not compatible
query I rowsort label-6210
SELECT DISTINCT 80 / - + 50
----
-1

query II rowsort
SELECT + + 99 AS col2, + 18 * 12
----
99
216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6212
SELECT ALL + - 41 * + ( + 74 ) * - 34 * + 79 * - - ( + - 92 ) + - + 98 - - - COALESCE ( 23, COALESCE ( + 90, - + 91 ) ) * - + 89 * - 30 + - 42 * - ( + CAST( NULL AS SIGNED ) ) - CAST( - + 81 AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6212
SELECT ALL + - 41 * + ( + 74 ) * - 34 * + 79 * - - ( + - 92 ) + - + 98 - - - COALESCE ( 23, COALESCE ( + 90, - + 91 ) ) * - + 89 * - 30 + - 42 * - ( + CAST ( NULL AS INTEGER ) ) - CAST ( - + 81 AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT 13 AS col1, + 36 + 76 * 10 * + 40 AS col0
----
13
30436

query II rowsort
SELECT + - ( 67 ) + + 62, 51 * + - ( + + 85 ) col1
----
-5
-4335

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6215
SELECT + + 45 + 30 + + - 85 - + - COUNT( * ) * + ( + MAX( DISTINCT + - CAST( NULL AS SIGNED ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6215
SELECT + + 45 + 30 + + - 85 - + - COUNT ( * ) * + ( + MAX ( DISTINCT + - CAST ( NULL AS INTEGER ) ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6216
SELECT ALL + ( NULLIF ( SUM( + - 50 ), 72 ) ) AS col1
----
-50

skipif mysql # not compatible
query I rowsort label-6216
SELECT ALL + ( NULLIF ( SUM ( + - 50 ), 72 ) ) AS col1
----
-50

query II rowsort
SELECT ALL 5 col2, 25 AS col0
----
5
25

onlyif mysql # aggregate syntax: 
query I rowsort label-6218
SELECT - - 70 + 41 * + 16 * - 13 + 49 * - SUM( - + 28 ) + + 20
----
-7066

skipif mysql # not compatible
query I rowsort label-6218
SELECT - - 70 + 41 * + 16 * - 13 + 49 * - SUM ( - + 28 ) + + 20
----
-7066

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

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

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

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

query II rowsort
SELECT - + 96 * + 61 * - 8 AS col0, 58
----
46848
58

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6222
SELECT ALL CAST( NULL AS DECIMAL ) * + 54 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6222
SELECT ALL CAST ( NULL AS REAL ) * + 54 AS col0
----
NULL

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6225
SELECT DISTINCT - 26 + + COUNT( * ) * COALESCE ( + 53, - - 51, 27, - - 6 ) * - 57 + - 95
----
-3142

skipif mysql # not compatible
query I rowsort label-6225
SELECT DISTINCT - 26 + + COUNT ( * ) * COALESCE ( + 53, - - 51, 27, - - 6 ) * - 57 + - 95
----
-3142

query I rowsort
SELECT DISTINCT + 62 + - + 94
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-6227
SELECT 67 * CASE COUNT( 25 ) WHEN COUNT( * ) THEN CASE - - 34 WHEN MIN( ALL - - 40 ) / + MIN( ( + ( - 26 ) ) ) THEN NULL WHEN - 91 + 9 THEN NULL WHEN - + 92 THEN + 86 END - + + 48 ELSE - COALESCE ( - - COUNT( * ), + SUM( ( + 78 ) ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6227
SELECT 67 * CASE COUNT ( 25 ) WHEN COUNT ( * ) THEN CASE - - 34 WHEN MIN ( ALL - - 40 ) / + MIN ( ( + ( - 26 ) ) ) THEN NULL WHEN - 91 + 9 THEN NULL WHEN - + 92 THEN + 86 END - + + 48 ELSE - COALESCE ( - - COUNT ( * ), + SUM ( ( + 78 ) ) ) END
----
NULL

query I rowsort
SELECT ( + 36 ) + + 74 AS col0
----
110

query I rowsort
SELECT DISTINCT + 63 + 21
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-6230
SELECT ALL - 8 + 39 - + 15 * + + ( COUNT( * ) ) - + 45 * + 63 - 12 AS col0
----
-2831

skipif mysql # not compatible
query I rowsort label-6230
SELECT ALL - 8 + 39 - + 15 * + + ( COUNT ( * ) ) - + 45 * + 63 - 12 AS col0
----
-2831

query I rowsort
SELECT + 98 * ( NULLIF ( - - 69, - 29 ) ) - - 52 + + 43 AS col2
----
6857

onlyif mysql # aggregate syntax: 
query I rowsort label-6232
SELECT DISTINCT - COALESCE ( 32, COUNT( * ) * 81 ) AS col1
----
-32

skipif mysql # not compatible
query I rowsort label-6232
SELECT DISTINCT - COALESCE ( 32, COUNT ( * ) * 81 ) AS col1
----
-32

query I rowsort
SELECT ALL + 46 - + + 78
----
-32

query I rowsort
SELECT - + 17 * 60 - ( - + 56 )
----
-964

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6236
SELECT + COUNT( ALL ( + ( - - 7 ) ) ) AS col0, + 5 + + NULLIF ( + + COUNT( * ), MIN( ALL 80 ) ) AS col1
----
1
6

skipif mysql # not compatible
query II rowsort label-6236
SELECT + COUNT ( ALL ( + ( - - 7 ) ) ) AS col0, + 5 + + NULLIF ( + + COUNT ( * ), MIN ( ALL 80 ) ) AS col1
----
1
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6237
SELECT ALL 69 * COALESCE ( COUNT( * ), + 64 ) DIV 49
----
1

skipif mysql # not compatible
query I rowsort label-6237
SELECT ALL 69 * COALESCE ( COUNT ( * ), + 64 ) / 49
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6238
SELECT MAX( + 65 ) * + - 15 col2
----
-975

skipif mysql # not compatible
query I rowsort label-6238
SELECT MAX ( + 65 ) * + - 15 col2
----
-975

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

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

query I rowsort
SELECT ALL - COALESCE ( + 81, 17 * 65 )
----
-81

query I rowsort
SELECT - - 80 * - + 59 + + 14 + + 0
----
-4706

onlyif mysql # aggregate syntax: 
query I rowsort label-6242
SELECT + COUNT( * ) * - COALESCE ( - 8, COUNT( * ) ) * + + 36
----
288

skipif mysql # not compatible
query I rowsort label-6242
SELECT + COUNT ( * ) * - COALESCE ( - 8, COUNT ( * ) ) * + + 36
----
288

query I rowsort
SELECT ALL 72 + - 21 AS col1
----
51

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

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

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

skipif mysql # not compatible
query I rowsort label-6245
SELECT SUM ( ALL 33 )
----
33

query I rowsort
SELECT 29 * + 61 AS col0
----
1769

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6247
SELECT DISTINCT 88, - NULLIF ( + + 2, NULLIF ( + - COUNT( * ), 4 * + 74 * + COALESCE ( + + 68, 91, + 91 * - CAST( NULL AS SIGNED ), + 30 ) ) ) AS col2
----
88
-2

skipif mysql # not compatible
query II rowsort label-6247
SELECT DISTINCT 88, - NULLIF ( + + 2, NULLIF ( + - COUNT ( * ), 4 * + 74 * + COALESCE ( + + 68, 91, + 91 * - CAST ( NULL AS INTEGER ), + 30 ) ) ) AS col2
----
88
-2

query I rowsort
SELECT ALL 56 + 76 AS col1
----
132

query I rowsort
SELECT 42 + + 54 * + 49 * + 33 * 13 + - 92 AS col1
----
1135084

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6250
SELECT CAST( + - 55 AS SIGNED ) + + 8 AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-6250
SELECT CAST ( + - 55 AS INTEGER ) + + 8 AS col1
----
-47

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

skipif mysql # not compatible
query I rowsort label-6251
SELECT ALL 49 + - COUNT ( * ) col0
----
48

query I rowsort
SELECT ALL + 76 + 39 * - NULLIF ( + - 52, 76 ) AS col2
----
2104

query I rowsort
SELECT 41 * 50
----
2050

query I rowsort
SELECT 77 + - - 22 AS col0
----
99

query I rowsort
SELECT 86 + + - 74
----
12

query I rowsort
SELECT ALL 89 + 67 AS col2
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-6257
SELECT 2 - - 92 + + COUNT( * ) col2
----
95

skipif mysql # not compatible
query I rowsort label-6257
SELECT 2 - - 92 + + COUNT ( * ) col2
----
95

query II rowsort
SELECT 91, + 14 + - 20 AS col2
----
91
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-6259
SELECT ALL - 77 - 60 * + + 80, - 47 + + COUNT( * ) AS col1
----
-4877
-46

skipif mysql # not compatible
query II rowsort label-6259
SELECT ALL - 77 - 60 * + + 80, - 47 + + COUNT ( * ) AS col1
----
-4877
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-6260
SELECT 92 * + NULLIF ( + 97, - - 5 ) * + + ( + - 63 ) * - COUNT( * )
----
562212

skipif mysql # not compatible
query I rowsort label-6260
SELECT 92 * + NULLIF ( + 97, - - 5 ) * + + ( + - 63 ) * - COUNT ( * )
----
562212

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6261
SELECT - 81 DIV + 87 + + COUNT( * ) col1
----
1

skipif mysql # not compatible
query I rowsort label-6261
SELECT - 81 / + 87 + + COUNT ( * ) col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6262
SELECT DISTINCT - NULLIF ( 16, ( + 49 ) * + COUNT( * ) + 38 * 30 )
----
-16

skipif mysql # not compatible
query I rowsort label-6262
SELECT DISTINCT - NULLIF ( 16, ( + 49 ) * + COUNT ( * ) + 38 * 30 )
----
-16

query I rowsort
SELECT 17 * 32 AS col1
----
544

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

query I rowsort
SELECT DISTINCT - 60 * + 8
----
-480

onlyif mysql # DIV for integer division: 
query I rowsort label-6266
SELECT 37 DIV + 49 col2
----
0

skipif mysql # not compatible
query I rowsort label-6266
SELECT 37 / + 49 col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6267
SELECT ALL + NULLIF ( 4, 78 ) * CAST( + 94 * 89 AS SIGNED ) AS col0
----
33464

skipif mysql # not compatible
query I rowsort label-6267
SELECT ALL + NULLIF ( 4, 78 ) * CAST ( + 94 * 89 AS INTEGER ) AS col0
----
33464

query I rowsort
SELECT 7 + + 70 AS col1
----
77

query I rowsort
SELECT 17 * - 83
----
-1411

onlyif mysql # aggregate syntax: 
query I rowsort label-6270
SELECT ALL - MAX( + 35 ) col0
----
-35

skipif mysql # not compatible
query I rowsort label-6270
SELECT ALL - MAX ( + 35 ) col0
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-6271
SELECT - COUNT( * ) * + 64 + + 3 * 73
----
155

skipif mysql # not compatible
query I rowsort label-6271
SELECT - COUNT ( * ) * + 64 + + 3 * 73
----
155

query I rowsort
SELECT 7 * 28 AS col2
----
196

onlyif mysql # aggregate syntax: 
query I rowsort label-6273
SELECT 7 * 73 + + COALESCE ( - MIN( DISTINCT + 6 ), MIN( DISTINCT 6 ) * + CASE + NULLIF ( - COUNT( * ), + ( 13 ) + - CASE + 46 WHEN + 68 THEN NULL WHEN + 68 / 47 THEN 16 END * 74 ) * 15 + - ( - 18 + - 45 ) WHEN - 40 + AVG ( - 84 - - 62 * 41 ) / + 23 THEN CASE ( + COALESCE ( - 97, + 21 + 75 ) ) WHEN - 93 * 31 + + COUNT( * ) THEN 58 WHEN 63 / + 30 THEN NULL END * MAX( - 44 * 10 ) WHEN - 55 + + COALESCE ( + 15, 47, - 11 + COUNT( DISTINCT 23 ) ) THEN NULL END, - NULLIF ( ( - 90 ), + 88 + - COUNT( + 28 - 29 ) ) )
----
505

skipif mysql # not compatible
query I rowsort label-6273
SELECT 7 * 73 + + COALESCE ( - MIN ( DISTINCT + 6 ), MIN ( DISTINCT 6 ) * + CASE + NULLIF ( - COUNT ( * ), + ( 13 ) + - CASE + 46 WHEN + 68 THEN NULL WHEN + 68 / 47 THEN 16 END * 74 ) * 15 + - ( - 18 + - 45 ) WHEN - 40 + AVG ( - 84 - - 62 * 41 ) / + 23 THEN CASE ( + COALESCE ( - 97, + 21 + 75 ) ) WHEN - 93 * 31 + + COUNT ( * ) THEN 58 WHEN 63 / + 30 THEN NULL END * MAX ( - 44 * 10 ) WHEN - 55 + + COALESCE ( + 15, 47, - 11 + COUNT ( DISTINCT 23 ) ) THEN NULL END, - NULLIF ( ( - 90 ), + 88 + - COUNT ( + 28 - 29 ) ) )
----
505

query I rowsort
SELECT ALL - 70 + 68
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6275
SELECT ALL - CASE 11 WHEN 76 * + 62 - - 49 THEN ( CAST( + 19 AS SIGNED ) ) + + 58 WHEN 70 THEN - ( NULLIF ( + 28, 95 * + 57 ) ) + + 15 / - COUNT( * ) ELSE NULL END + + 28 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6275
SELECT ALL - CASE 11 WHEN 76 * + 62 - - 49 THEN ( CAST ( + 19 AS INTEGER ) ) + + 58 WHEN 70 THEN - ( NULLIF ( + 28, 95 * + 57 ) ) + + 15 / - COUNT ( * ) ELSE NULL END + + 28 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6276
SELECT DISTINCT - CAST( - 36 AS SIGNED ) col2
----
36

skipif mysql # not compatible
query I rowsort label-6276
SELECT DISTINCT - CAST ( - 36 AS INTEGER ) col2
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-6277
SELECT 32 * - MAX( DISTINCT 3 )
----
-96

skipif mysql # not compatible
query I rowsort label-6277
SELECT 32 * - MAX ( DISTINCT 3 )
----
-96

query I rowsort
SELECT 68 + 77 * - 13
----
-933

query I rowsort
SELECT DISTINCT 15 + 41
----
56

query I rowsort
SELECT ALL 50 + + 93
----
143

query I rowsort
SELECT + 55 + - 85 AS col2
----
-30

query I rowsort
SELECT DISTINCT - ( + 74 ) * 86 AS col2
----
-6364

onlyif mysql # aggregate syntax: 
query I rowsort label-6283
SELECT ALL CASE 51 WHEN - ( - COALESCE ( - ( + 54 ), + 39 * 64 ) ) * ( - 99 * CASE 23 WHEN NULLIF ( + COUNT( * ), 56 * + 16 + 69 ) * - 95 THEN NULL WHEN 99 * + 78 THEN 72 END ) THEN 33 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6283
SELECT ALL CASE 51 WHEN - ( - COALESCE ( - ( + 54 ), + 39 * 64 ) ) * ( - 99 * CASE 23 WHEN NULLIF ( + COUNT ( * ), 56 * + 16 + 69 ) * - 95 THEN NULL WHEN 99 * + 78 THEN 72 END ) THEN 33 END
----
NULL

query I rowsort
SELECT + ( - NULLIF ( 70, 14 ) ) + 11 * 21 AS col1
----
161

onlyif mysql # aggregate syntax: 
query I rowsort label-6285
SELECT ALL 14 + COUNT( * )
----
15

skipif mysql # not compatible
query I rowsort label-6285
SELECT ALL 14 + COUNT ( * )
----
15

query I rowsort
SELECT - 19 * - 42
----
798

query I rowsort
SELECT DISTINCT 49 + - 51
----
-2

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6290
SELECT ALL COUNT( * ) - 81 * + 66
----
-5345

skipif mysql # not compatible
query I rowsort label-6290
SELECT ALL COUNT ( * ) - 81 * + 66
----
-5345

query I rowsort
SELECT - NULLIF ( 16, 48 ) AS col0
----
-16

query I rowsort
SELECT + 30 * - 58
----
-1740

query I rowsort
SELECT + 85 - CASE 77 - + NULLIF ( + 88 + + 60, 40 * AVG ( ALL 25 * 61 ) ) * 57 WHEN + 31 THEN 60 END * + 73
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6294
SELECT - - MAX( - 47 ) * COUNT( * ) AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-6294
SELECT - - MAX ( - 47 ) * COUNT ( * ) AS col2
----
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-6295
SELECT - + 80 DIV - 47 - + 30 AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-6295
SELECT - + 80 / - 47 - + 30 AS col2
----
-29

query I rowsort
SELECT + - 41 + 91 * - 97 col2
----
-8868

onlyif mysql # aggregate syntax: 
query I rowsort label-6297
SELECT ALL - COALESCE ( - ( - ( 55 ) ), + 33 + 12, ( 95 ) ) * COUNT( * ) AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-6297
SELECT ALL - COALESCE ( - ( - ( 55 ) ), + 33 + 12, ( 95 ) ) * COUNT ( * ) AS col1
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-6298
SELECT + + 24 DIV 22
----
1

skipif mysql # not compatible
query I rowsort label-6298
SELECT + + 24 / 22
----
1

query I rowsort
SELECT DISTINCT + ( 30 ) * + 81 + - 24 AS col2
----
2406

onlyif mysql # DIV for integer division: 
query I rowsort label-6300
SELECT + 87 DIV - 65
----
-1

skipif mysql # not compatible
query I rowsort label-6300
SELECT + 87 / - 65
----
-1

query I rowsort
SELECT ALL - 58 * - 97 + 56 * 91 AS col1
----
10722

query I rowsort
SELECT - - 83 * 36 AS col0
----
2988

query I rowsort
SELECT ALL + - 93 * 46 + + 91 col0
----
-4187

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6304
SELECT - - 97 DIV ( + COALESCE ( - 6, - 37 - 19 DIV + 20, COUNT( * ) DIV - NULLIF ( - 63, - 5 ) ) )
----
-16

skipif mysql # not compatible
query I rowsort label-6304
SELECT - - 97 / ( + COALESCE ( - 6, - 37 - 19 / + 20, COUNT ( * ) / - NULLIF ( - 63, - 5 ) ) )
----
-16

query I rowsort
SELECT - + 22 * + ( + 45 + 81 )
----
-2772

onlyif mysql # aggregate syntax: 
query I rowsort label-6306
SELECT ALL + 64 * - COUNT( * ) + 14
----
-50

skipif mysql # not compatible
query I rowsort label-6306
SELECT ALL + 64 * - COUNT ( * ) + 14
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-6307
SELECT + NULLIF ( + 46, MAX( 76 ) / + ( + 80 + 48 ) )
----
46

skipif mysql # not compatible
query I rowsort label-6307
SELECT + NULLIF ( + 46, MAX ( 76 ) / + ( + 80 + 48 ) )
----
46

query I rowsort
SELECT ALL 87 * - - 69 + NULLIF ( - 21 + 89, 12 ) * - 26
----
4235

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6309
SELECT NULLIF ( + + 5, + CAST( NULL AS DECIMAL ) ) AS col2
----
5

skipif mysql # not compatible
query I rowsort label-6309
SELECT NULLIF ( + + 5, + CAST ( NULL AS REAL ) ) AS col2
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6310
SELECT ALL - 49 * - SUM( ALL + 66 ) AS col1
----
3234

skipif mysql # not compatible
query I rowsort label-6310
SELECT ALL - 49 * - SUM ( ALL + 66 ) AS col1
----
3234

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6311
SELECT DISTINCT CAST( - 19 AS SIGNED ) * + 49 + 51 AS col0
----
-880

skipif mysql # not compatible
query I rowsort label-6311
SELECT DISTINCT CAST ( - 19 AS INTEGER ) * + 49 + 51 AS col0
----
-880

onlyif mysql # DIV for integer division: 
query I rowsort label-6312
SELECT - 31 * 27 DIV 60 + 69 AS col0
----
56

skipif mysql # not compatible
query I rowsort label-6312
SELECT - 31 * 27 / 60 + 69 AS col0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-6313
SELECT ALL 56 * - COUNT( * ) - - 92
----
36

skipif mysql # not compatible
query I rowsort label-6313
SELECT ALL 56 * - COUNT ( * ) - - 92
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-6314
SELECT - NULLIF ( + ( + 24 ), + 12 + - COUNT( * ) ) + 70 col2
----
46

skipif mysql # not compatible
query I rowsort label-6314
SELECT - NULLIF ( + ( + 24 ), + 12 + - COUNT ( * ) ) + 70 col2
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6315
SELECT + CAST( - 97 AS SIGNED ) * - CASE - ( 34 ) WHEN - 26 * - 54 + - 59 * 64 THEN 58 END + - 93
----
NULL

skipif mysql # not compatible
query I rowsort label-6315
SELECT + CAST ( - 97 AS INTEGER ) * - CASE - ( 34 ) WHEN - 26 * - 54 + - 59 * 64 THEN 58 END + - 93
----
NULL

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

skipif mysql # not compatible
query I rowsort label-6316
SELECT DISTINCT CAST ( + - 96 AS INTEGER ) AS col1
----
-96

query I rowsort
SELECT - 72 + - 34 AS col0
----
-106

onlyif mysql # aggregate syntax: 
query I rowsort label-6318
SELECT - NULLIF ( COUNT( * ), - 74 * COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-6318
SELECT - NULLIF ( COUNT ( * ), - 74 * COUNT ( * ) )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6319
SELECT - COALESCE ( - 3, 42 * + 81 + 19 DIV - 82 ) + COUNT( * ) col0
----
4

skipif mysql # not compatible
query I rowsort label-6319
SELECT - COALESCE ( - 3, 42 * + 81 + 19 / - 82 ) + COUNT ( * ) col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6320
SELECT DISTINCT ( + - ( CASE + 88 WHEN COUNT( * ) + + 59 THEN - 5 ELSE 22 END ) )
----
-22

skipif mysql # not compatible
query I rowsort label-6320
SELECT DISTINCT ( + - ( CASE + 88 WHEN COUNT ( * ) + + 59 THEN - 5 ELSE 22 END ) )
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-6321
SELECT - 42 + 91 + - ( SUM( 65 ) )
----
-16

skipif mysql # not compatible
query I rowsort label-6321
SELECT - 42 + 91 + - ( SUM ( 65 ) )
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6322
SELECT - ( + CAST( SUM( 66 ) AS SIGNED ) ) * 33
----
-2178

skipif mysql # not compatible
query I rowsort label-6322
SELECT - ( + CAST ( SUM ( 66 ) AS INTEGER ) ) * 33
----
-2178

query I rowsort
SELECT ALL + 87 * 92 * 93
----
744372

query I rowsort
SELECT + 18 + - 93 AS col1
----
-75

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6325
SELECT - NULLIF ( - - 53, - CAST( NULL AS DECIMAL ) + 92 * - 39 ) * + 57
----
-3021

skipif mysql # not compatible
query I rowsort label-6325
SELECT - NULLIF ( - - 53, - CAST ( NULL AS REAL ) + 92 * - 39 ) * + 57
----
-3021

query I rowsort
SELECT + 94 + - NULLIF ( 95, - 0 + 88 ) AS col1
----
-1

query I rowsort
SELECT ALL - 14 * - + 46
----
644

onlyif mysql # aggregate syntax: 
query I rowsort label-6328
SELECT - 6 * + + 62 * + COUNT( * ) AS col1
----
-372

skipif mysql # not compatible
query I rowsort label-6328
SELECT - 6 * + + 62 * + COUNT ( * ) AS col1
----
-372

onlyif mysql # aggregate syntax: 
query I rowsort label-6329
SELECT - ( - + COUNT( DISTINCT + 32 ) ) * 25
----
25

skipif mysql # not compatible
query I rowsort label-6329
SELECT - ( - + COUNT ( DISTINCT + 32 ) ) * 25
----
25

query I rowsort
SELECT + 71 + + 80 * 10
----
871

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6331
SELECT - CAST( COUNT( * ) AS SIGNED ) + - 73
----
-74

skipif mysql # not compatible
query I rowsort label-6331
SELECT - CAST ( COUNT ( * ) AS INTEGER ) + - 73
----
-74

query I rowsort
SELECT + - 55 + - 82 + 2
----
-135

onlyif mysql # aggregate syntax: 
query I rowsort label-6333
SELECT - - COUNT( * ) + + 31
----
32

skipif mysql # not compatible
query I rowsort label-6333
SELECT - - COUNT ( * ) + + 31
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6334
SELECT ALL - NULLIF ( - ( + CAST( 77 AS SIGNED ) ), 39 ) * 8 AS col1
----
616

skipif mysql # not compatible
query I rowsort label-6334
SELECT ALL - NULLIF ( - ( + CAST ( 77 AS INTEGER ) ), 39 ) * 8 AS col1
----
616

query I rowsort
SELECT + CASE + - 83 WHEN - 95 THEN + 49 + + 71 END * + 55 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6336
SELECT ALL 35 DIV - 43 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6336
SELECT ALL 35 / - 43 AS col1
----
0

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

skipif mysql # not compatible
query I rowsort label-6337
SELECT + MIN ( - + 30 )
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-6338
SELECT + COUNT( * ) + - 86
----
-85

skipif mysql # not compatible
query I rowsort label-6338
SELECT + COUNT ( * ) + - 86
----
-85

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

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

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

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

query I rowsort
SELECT ALL - + NULLIF ( 28, - 21 ) AS col2
----
-28

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6343
SELECT - 5 * + ( + CASE 7 WHEN + 85 + - CAST( NULL AS DECIMAL ) THEN 17 ELSE COUNT( * ) + 52 END ) + 52 * - 64 AS col1
----
-3593

skipif mysql # not compatible
query I rowsort label-6343
SELECT - 5 * + ( + CASE 7 WHEN + 85 + - CAST ( NULL AS REAL ) THEN 17 ELSE COUNT ( * ) + 52 END ) + 52 * - 64 AS col1
----
-3593

query I rowsort
SELECT ALL - ( 8 ) * + 11 AS col0
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-6345
SELECT - 21 + SUM( 13 ) col1
----
-8

skipif mysql # not compatible
query I rowsort label-6345
SELECT - 21 + SUM ( 13 ) col1
----
-8

query I rowsort
SELECT DISTINCT 61 + 39 - 32
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-6347
SELECT ALL - - CASE + COUNT( * ) WHEN - 72 - COALESCE ( - COUNT( * ), - COUNT( * ) ) THEN COUNT( - COALESCE ( + 16, + ( - 38 ), - 96 - - 8 ) ) * 86 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6347
SELECT ALL - - CASE + COUNT ( * ) WHEN - 72 - COALESCE ( - COUNT ( * ), - COUNT ( * ) ) THEN COUNT ( - COALESCE ( + 16, + ( - 38 ), - 96 - - 8 ) ) * 86 END AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-6348
SELECT - 48 * CAST ( COUNT ( * ) AS INTEGER ) AS col0
----
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6349
SELECT ALL + MAX( DISTINCT + + 84 ) DIV - ( 39 DIV 34 + + 56 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-6349
SELECT ALL + MAX ( DISTINCT + + 84 ) / - ( 39 / 34 + + 56 ) col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6350
SELECT + + 38 * + - 23 + + 72 * - COUNT( + 40 ) AS col2
----
-946

skipif mysql # not compatible
query I rowsort label-6350
SELECT + + 38 * + - 23 + + 72 * - COUNT ( + 40 ) AS col2
----
-946

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6351
SELECT 81 * - NULLIF ( 31, COUNT( * ) * + COALESCE ( 91 * 64, - 48 * 98 ) ) + - COUNT( * ) DIV - 33
----
-2511

skipif mysql # not compatible
query I rowsort label-6351
SELECT 81 * - NULLIF ( 31, COUNT ( * ) * + COALESCE ( 91 * 64, - 48 * 98 ) ) + - COUNT ( * ) / - 33
----
-2511

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

skipif mysql # not compatible
query I rowsort label-6352
SELECT ALL 73 / + - COUNT ( * ) AS col0
----
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6353
SELECT CAST( ( 3 ) AS SIGNED ) DIV SUM( + 71 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6353
SELECT CAST ( ( 3 ) AS INTEGER ) / SUM ( + 71 ) AS col2
----
0

query II rowsort
SELECT + 46 col2, 26 + 97 + 54 * 99 * 21
----
46
112389

query II rowsort
SELECT ALL - 31 AS col0, COALESCE ( - 14, + 73, 56 + - 23 ) + - 13 col0
----
-31
-27

query I rowsort
SELECT DISTINCT + 63 * - 53 / + CASE WHEN + 82 IS NULL THEN 73 + 35 END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6357
SELECT ALL 37 DIV + - ( 75 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6357
SELECT ALL 37 / + - ( 75 ) AS col1
----
0

query II rowsort
SELECT 15 AS col1, 55 col1
----
15
55

onlyif mysql # aggregate syntax: 
query II rowsort label-6359
SELECT - 12 AS col0, 55 + + 2 * + SUM( ALL 44 ) col1
----
-12
143

skipif mysql # not compatible
query II rowsort label-6359
SELECT - 12 AS col0, 55 + + 2 * + SUM ( ALL 44 ) col1
----
-12
143

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6360
SELECT DISTINCT + 0 * CAST( + + 22 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-6360
SELECT DISTINCT + 0 * CAST ( + + 22 AS INTEGER )
----
0

query I rowsort
SELECT ( - + 53 ) * 99 * 61 AS col1
----
-320067

query II rowsort
SELECT 1 AS col1, - 27 col1
----
1
-27

query I rowsort
SELECT 18 * 29 AS col1
----
522

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

skipif mysql # not compatible
query I rowsort label-6364
SELECT COUNT ( * ) * CAST ( - 84 AS INTEGER ) AS col0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-6365
SELECT ALL + COUNT( DISTINCT 8 ) + - 2
----
-1

skipif mysql # not compatible
query I rowsort label-6365
SELECT ALL + COUNT ( DISTINCT 8 ) + - 2
----
-1

query II rowsort
SELECT DISTINCT 31 AS col1, - 64
----
31
-64

query I rowsort
SELECT 8 * - - 75
----
600

onlyif mysql # aggregate syntax: 
query I rowsort label-6368
SELECT ALL - - CASE 78 WHEN - 30 THEN - 11 - - 22 WHEN - 71 THEN 6 * + COUNT( * ) + 53 WHEN SUM( + 77 ) THEN NULL END + - 5 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6368
SELECT ALL - - CASE 78 WHEN - 30 THEN - 11 - - 22 WHEN - 71 THEN 6 * + COUNT ( * ) + 53 WHEN SUM ( + 77 ) THEN NULL END + - 5 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6369
SELECT ALL + COUNT( * ) + - 35
----
-34

skipif mysql # not compatible
query I rowsort label-6369
SELECT ALL + COUNT ( * ) + - 35
----
-34

query I rowsort
SELECT ALL - 96 + 78 * - 74 * - 20
----
115344

onlyif mysql # aggregate syntax: 
query I rowsort label-6371
SELECT ALL 47 + 98 * - 99 + ( - ( MAX( 22 ) ) + 50 )
----
-9627

skipif mysql # not compatible
query I rowsort label-6371
SELECT ALL 47 + 98 * - 99 + ( - ( MAX ( 22 ) ) + 50 )
----
-9627

query I rowsort
SELECT 11 + - COALESCE ( NULLIF ( 81, 71 ), 70 - 26 ) + 74 col2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6373
SELECT DISTINCT COUNT( - 12 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-6373
SELECT DISTINCT COUNT ( - 12 ) col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6374
SELECT ALL - - 62 * SUM( - - 2 ) * + COUNT( - 63 * + 62 )
----
124

skipif mysql # not compatible
query I rowsort label-6374
SELECT ALL - - 62 * SUM ( - - 2 ) * + COUNT ( - 63 * + 62 )
----
124

query II rowsort
SELECT 36, 14 AS col1
----
36
14

onlyif mysql # DIV for integer division: 
query I rowsort label-6376
SELECT 97 DIV - 70 + + 95 * + 2
----
189

skipif mysql # not compatible
query I rowsort label-6376
SELECT 97 / - 70 + + 95 * + 2
----
189

query I rowsort
SELECT ALL - + ( + 85 ) * + - 79 * 94
----
631210

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6378
SELECT DISTINCT + + 32 * - CAST( 40 AS SIGNED ) AS col1
----
-1280

skipif mysql # not compatible
query I rowsort label-6378
SELECT DISTINCT + + 32 * - CAST ( 40 AS INTEGER ) AS col1
----
-1280

onlyif mysql # DIV for integer division: 
query I rowsort label-6379
SELECT DISTINCT 54 DIV - 37 + - 38 * 77
----
-2927

skipif mysql # not compatible
query I rowsort label-6379
SELECT DISTINCT 54 / - 37 + - 38 * 77
----
-2927

onlyif mysql # aggregate syntax: 
query I rowsort label-6380
SELECT ALL - - COUNT( * ) - - - ( + 19 ) * + 22 AS col2
----
-417

skipif mysql # not compatible
query I rowsort label-6380
SELECT ALL - - COUNT ( * ) - - - ( + 19 ) * + 22 AS col2
----
-417

query II rowsort
SELECT - 15 AS col2, 60 + - 9
----
-15
51

query I rowsort
SELECT DISTINCT 11 - 34
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-6383
SELECT - CASE - 86 WHEN + 77 THEN 20 WHEN - 13 * - 3 THEN 69 ELSE - 34 DIV - 83 END AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6383
SELECT - CASE - 86 WHEN + 77 THEN 20 WHEN - 13 * - 3 THEN 69 ELSE - 34 / - 83 END AS col1
----
0

query I rowsort
SELECT DISTINCT 32 * 55
----
1760

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6385
SELECT CAST( + - CASE + 16 WHEN - 85 THEN NULL WHEN - AVG ( ALL - 38 ) THEN - COUNT( 26 ) + + 8 * + 67 ELSE NULL END AS SIGNED ) * 84 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6385
SELECT CAST ( + - CASE + 16 WHEN - 85 THEN NULL WHEN - AVG ( ALL - 38 ) THEN - COUNT ( 26 ) + + 8 * + 67 ELSE NULL END AS INTEGER ) * 84 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6386
SELECT 95 * 93 + 14 - + - 40 * 32 * - COUNT( * ) AS col1
----
7569

skipif mysql # not compatible
query I rowsort label-6386
SELECT 95 * 93 + 14 - + - 40 * 32 * - COUNT ( * ) AS col1
----
7569

query I rowsort
SELECT DISTINCT 96 * + 62 AS col0
----
5952

onlyif mysql # DIV for integer division: 
query I rowsort label-6388
SELECT 86 * 99 DIV - 24 AS col1
----
-354

skipif mysql # not compatible
query I rowsort label-6388
SELECT 86 * 99 / - 24 AS col1
----
-354

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6390
SELECT ( - - 85 ) * - 2 + - 77 - - COUNT( * )
----
-246

skipif mysql # not compatible
query I rowsort label-6390
SELECT ( - - 85 ) * - 2 + - 77 - - COUNT ( * )
----
-246

query I rowsort
SELECT 11 * + - 9 AS col1
----
-99

query I rowsort
SELECT 14 * 44 + + 44
----
660

onlyif mysql # aggregate syntax: 
query I rowsort label-6393
SELECT CASE COUNT( * ) WHEN + + 35 THEN NULL ELSE - 9 END + + 32 * + 34 AS col1
----
1079

skipif mysql # not compatible
query I rowsort label-6393
SELECT CASE COUNT ( * ) WHEN + + 35 THEN NULL ELSE - 9 END + + 32 * + 34 AS col1
----
1079

onlyif mysql # DIV for integer division: 
query I rowsort label-6394
SELECT 30 DIV 32 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6394
SELECT 30 / 32 AS col1
----
0

query I rowsort
SELECT 1 + + - 4 * - - 10 * 20 - + 47
----
-846

query I rowsort
SELECT DISTINCT 82 + + 49 - 2 * + 24 AS col2
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-6397
SELECT ALL COUNT( * ) + 74 * + - 10 * + 96
----
-71039

skipif mysql # not compatible
query I rowsort label-6397
SELECT ALL COUNT ( * ) + 74 * + - 10 * + 96
----
-71039

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6398
SELECT 20 + CASE + + 48 WHEN + - 29 THEN 79 + NULLIF ( 75, 59 ) WHEN CAST( NULL AS SIGNED ) + + ( 39 ) / - 62 THEN NULL END + + 55
----
NULL

skipif mysql # not compatible
query I rowsort label-6398
SELECT 20 + CASE + + 48 WHEN + - 29 THEN 79 + NULLIF ( 75, 59 ) WHEN CAST ( NULL AS INTEGER ) + + ( 39 ) / - 62 THEN NULL END + + 55
----
NULL

query I rowsort
SELECT ALL + 48 + 21 AS col2
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-6400
SELECT DISTINCT 52 + - 34 DIV 34
----
51

skipif mysql # not compatible
query I rowsort label-6400
SELECT DISTINCT 52 + - 34 / 34
----
51

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

query I rowsort
SELECT - 28 + + 39
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6403
SELECT ALL - CAST( NULL AS SIGNED ) + - - 26 + + - 61 + - CASE 1 WHEN AVG ( DISTINCT 10 ) * + 57 THEN + 61 - - 23 WHEN - 78 THEN 95 - + 86 END / + COUNT( * ) * 99
----
NULL

skipif mysql # not compatible
query I rowsort label-6403
SELECT ALL - CAST ( NULL AS INTEGER ) + - - 26 + + - 61 + - CASE 1 WHEN AVG ( DISTINCT 10 ) * + 57 THEN + 61 - - 23 WHEN - 78 THEN 95 - + 86 END / + COUNT ( * ) * 99
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6404
SELECT - 67 * 81 + - COUNT( * ) AS col0
----
-5428

skipif mysql # not compatible
query I rowsort label-6404
SELECT - 67 * 81 + - COUNT ( * ) AS col0
----
-5428

query I rowsort
SELECT DISTINCT - 74 - 35
----
-109

onlyif mysql # aggregate syntax: 
query I rowsort label-6406
SELECT ALL - + MAX( DISTINCT + 70 ) - 53 AS col1
----
-123

skipif mysql # not compatible
query I rowsort label-6406
SELECT ALL - + MAX ( DISTINCT + 70 ) - 53 AS col1
----
-123

query I rowsort
SELECT - + 35 * - 29
----
1015

query I rowsort
SELECT DISTINCT - 13 - 97 + + 91
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-6409
SELECT CASE + - 54 WHEN + - 2 THEN 46 WHEN - CASE + MIN( ALL - 85 ) WHEN + 26 THEN NULL ELSE - 19 END THEN NULL WHEN 18 THEN - 17 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6409
SELECT CASE + - 54 WHEN + - 2 THEN 46 WHEN - CASE + MIN ( ALL - 85 ) WHEN + 26 THEN NULL ELSE - 19 END THEN NULL WHEN 18 THEN - 17 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6410
SELECT - + 85 + 65 + - 23 DIV 37 AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-6410
SELECT - + 85 + 65 + - 23 / 37 AS col1
----
-20

query I rowsort
SELECT ALL - + 67 * + 77 * - 98 + + 87 * - 92 AS col2
----
497578

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6412
SELECT - 70 * + - COUNT( * ) * - + 16 DIV COUNT( * ) col2
----
-1120

skipif mysql # not compatible
query I rowsort label-6412
SELECT - 70 * + - COUNT ( * ) * - + 16 / COUNT ( * ) col2
----
-1120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6413
SELECT + CAST( NULL AS SIGNED ) * - CASE + - 74 WHEN + COUNT( ALL - 98 ) THEN NULL ELSE 22 END - + MAX( - 79 + 22 ) * COUNT( ALL - 63 ) + ( + 41 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6413
SELECT + CAST ( NULL AS INTEGER ) * - CASE + - 74 WHEN + COUNT ( ALL - 98 ) THEN NULL ELSE 22 END - + MAX ( - 79 + 22 ) * COUNT ( ALL - 63 ) + ( + 41 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6414
SELECT COALESCE ( - - MIN( ALL - - 79 ), 22 * - - 88 DIV - 61 + + COUNT( * ) )
----
79

skipif mysql # not compatible
query I rowsort label-6414
SELECT COALESCE ( - - MIN ( ALL - - 79 ), 22 * - - 88 / - 61 + + COUNT ( * ) )
----
79

query II rowsort
SELECT ALL + 41, + 95 * - 26 col0
----
41
-2470

query I rowsort
SELECT - ( - 40 ) + - ( + NULLIF ( ( - 62 ), COALESCE ( + 36, - ( + 78 ), 40 ) ) ) + + 23 AS col0
----
125

onlyif mysql # aggregate syntax: 
query II rowsort label-6417
SELECT ALL + 18 * - COUNT( DISTINCT - - 15 ), + COUNT( * ) AS col2
----
-18
1

skipif mysql # not compatible
query II rowsort label-6417
SELECT ALL + 18 * - COUNT ( DISTINCT - - 15 ), + COUNT ( * ) AS col2
----
-18
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6419
SELECT + COALESCE ( - + 6, - 14, 3 ) + COUNT( - CASE 85 WHEN - 80 THEN 54 + + 68 * - 30 ELSE NULL END ) * - 61 col2
----
-6

skipif mysql # not compatible
query I rowsort label-6419
SELECT + COALESCE ( - + 6, - 14, 3 ) + COUNT ( - CASE 85 WHEN - 80 THEN 54 + + 68 * - 30 ELSE NULL END ) * - 61 col2
----
-6

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6421
SELECT 18 * + 57 * 93 + 55 + CAST( NULL AS SIGNED ) * ( 31 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6421
SELECT 18 * + 57 * 93 + 55 + CAST ( NULL AS INTEGER ) * ( 31 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6422
SELECT CASE - + 60 WHEN + 63 THEN - + 99 * + + COUNT( * ) / - SUM( DISTINCT + 91 * 3 ) + COUNT( ALL - CAST( - 13 AS SIGNED ) ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6422
SELECT CASE - + 60 WHEN + 63 THEN - + 99 * + + COUNT ( * ) / - SUM ( DISTINCT + 91 * 3 ) + COUNT ( ALL - CAST ( - 13 AS INTEGER ) ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6423
SELECT ALL + COALESCE ( 44, - 87 * + + 57 * + 32 + COUNT( 8 ), + 78 )
----
44

skipif mysql # not compatible
query I rowsort label-6423
SELECT ALL + COALESCE ( 44, - 87 * + + 57 * + 32 + COUNT ( 8 ), + 78 )
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6424
SELECT COALESCE ( - 70, ( 54 ) DIV + CASE - 76 WHEN + 16 - COUNT( * ) THEN NULL WHEN 74 DIV - 92 THEN - ( 90 ) END + + 57 + + 18 )
----
-70

skipif mysql # not compatible
query I rowsort label-6424
SELECT COALESCE ( - 70, ( 54 ) / + CASE - 76 WHEN + 16 - COUNT ( * ) THEN NULL WHEN 74 / - 92 THEN - ( 90 ) END + + 57 + + 18 )
----
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6425
SELECT - COALESCE ( + 7, - 69 ) * + ( - CAST( NULL AS SIGNED ) ) * + 66 - + 68 * - 37 + - 31
----
NULL

skipif mysql # not compatible
query I rowsort label-6425
SELECT - COALESCE ( + 7, - 69 ) * + ( - CAST ( NULL AS INTEGER ) ) * + 66 - + 68 * - 37 + - 31
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6426
SELECT + 72 + + NULLIF ( - COUNT( * ), + + 86 * + 93 + + 59 + + 1 / 18 ) AS col1
----
71

skipif mysql # not compatible
query I rowsort label-6426
SELECT + 72 + + NULLIF ( - COUNT ( * ), + + 86 * + 93 + + 59 + + 1 / 18 ) AS col1
----
71

query I rowsort
SELECT ALL + 40 * + + 78 + 9
----
3129

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6430
SELECT DISTINCT 5 * + COUNT( * ) + 84 + - 21 AS col2
----
68

skipif mysql # not compatible
query I rowsort label-6430
SELECT DISTINCT 5 * + COUNT ( * ) + 84 + - 21 AS col2
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-6431
SELECT ALL 30 * CASE - + 82 WHEN 42 + 57 + + 19 * 27 THEN ( NULLIF ( ( - 79 ), 81 ) ) * COUNT( 78 + 58 * + 47 ) WHEN + 50 + SUM( - 85 ) THEN NULL ELSE NULL END * 61
----
NULL

skipif mysql # not compatible
query I rowsort label-6431
SELECT ALL 30 * CASE - + 82 WHEN 42 + 57 + + 19 * 27 THEN ( NULLIF ( ( - 79 ), 81 ) ) * COUNT ( 78 + 58 * + 47 ) WHEN + 50 + SUM ( - 85 ) THEN NULL ELSE NULL END * 61
----
NULL

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

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

query I rowsort
SELECT DISTINCT 48 * + - 29 + 99
----
-1293

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6434
SELECT ALL CAST( NULL AS DECIMAL ) + + 43 - 44 - + 41 / - COUNT( * ) * - NULLIF ( - COUNT( * ), 91 / - CASE - 15 / - COUNT( + 79 ) WHEN 48 THEN 49 * + 94 + COALESCE ( 85, + 14 * - 6 + - 27 ) WHEN 86 THEN NULL WHEN - 10 THEN 2 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-6434
SELECT ALL CAST ( NULL AS REAL ) + + 43 - 44 - + 41 / - COUNT ( * ) * - NULLIF ( - COUNT ( * ), 91 / - CASE - 15 / - COUNT ( + 79 ) WHEN 48 THEN 49 * + 94 + COALESCE ( 85, + 14 * - 6 + - 27 ) WHEN 86 THEN NULL WHEN - 10 THEN 2 END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6435
SELECT SUM( + + 36 ) AS col0
----
36

skipif mysql # not compatible
query I rowsort label-6435
SELECT SUM ( + + 36 ) AS col0
----
36

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

query I rowsort
SELECT + 85 * - 19 AS col0
----
-1615

onlyif mysql # aggregate syntax: 
query I rowsort label-6438
SELECT - - 25 * 30 - COUNT( * ) AS col2
----
749

skipif mysql # not compatible
query I rowsort label-6438
SELECT - - 25 * 30 - COUNT ( * ) AS col2
----
749

query I rowsort
SELECT ALL - ( - 71 ) col0
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-6440
SELECT 66, COUNT( * ) * + CAST( NULL AS SIGNED ) AS col1, + ( 98 ) AS col1
----
66
NULL
98

skipif mysql # not compatible
query III rowsort label-6440
SELECT 66, COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col1, + ( 98 ) AS col1
----
66
NULL
98

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6441
SELECT ALL - 75 DIV 95 - - - CAST( - 53 AS SIGNED ) AS col1
----
53

skipif mysql # not compatible
query I rowsort label-6441
SELECT ALL - 75 / 95 - - - CAST ( - 53 AS INTEGER ) AS col1
----
53

query I rowsort
SELECT + 88 * - - 34 + 12 - 65 + + - 57 + 2 * + ( 46 )
----
2974

query II rowsort
SELECT DISTINCT - 7, ( + + 36 ) AS col2
----
-7
36

onlyif mysql # aggregate syntax: 
query I rowsort label-6444
SELECT ALL - - COUNT( * ) * CASE - CASE + 39 WHEN 14 THEN - 56 END WHEN + 67 + - 52 THEN NULL WHEN + 86 / + CASE + 60 * 76 WHEN - MAX( ALL - ( + 3 ) ) THEN - 1 WHEN + 64 THEN NULL END + 93 * + ( - 85 + + ( 38 ) ) THEN - COUNT( 46 ) * + 64 END / - 35
----
NULL

skipif mysql # not compatible
query I rowsort label-6444
SELECT ALL - - COUNT ( * ) * CASE - CASE + 39 WHEN 14 THEN - 56 END WHEN + 67 + - 52 THEN NULL WHEN + 86 / + CASE + 60 * 76 WHEN - MAX ( ALL - ( + 3 ) ) THEN - 1 WHEN + 64 THEN NULL END + 93 * + ( - 85 + + ( 38 ) ) THEN - COUNT ( 46 ) * + 64 END / - 35
----
NULL

query I rowsort
SELECT + 45 + + + 90 AS col1
----
135

query I rowsort
SELECT + 67 * NULLIF ( + 96, - 53 * + - 92 )
----
6432

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6448
SELECT + + CAST( + CASE + 15 WHEN 11 THEN + 88 * + 74 WHEN 8 THEN NULL ELSE NULL END AS DECIMAL ) + 30 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6448
SELECT + + CAST ( + CASE + 15 WHEN 11 THEN + 88 * + 74 WHEN 8 THEN NULL ELSE NULL END AS REAL ) + 30 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6449
SELECT + MAX( ALL - NULLIF ( - CAST( NULL AS SIGNED ), - 98 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6449
SELECT + MAX ( ALL - NULLIF ( - CAST ( NULL AS INTEGER ), - 98 ) ) AS col1
----
NULL

query II rowsort
SELECT - 50 * - 52, + 33 * - + 18 AS col0
----
2600
-594

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6452
SELECT ALL - 22 / CASE + 33 WHEN 0 THEN COUNT( * ) ELSE NULL END + 13 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6452
SELECT ALL - 22 / CASE + 33 WHEN 0 THEN COUNT ( * ) ELSE NULL END + 13 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6453
SELECT ALL - ( - CAST( + 52 AS SIGNED ) ) * - 32 AS col1, 75
----
-1664
75

skipif mysql # not compatible
query II rowsort label-6453
SELECT ALL - ( - CAST ( + 52 AS INTEGER ) ) * - 32 AS col1, 75
----
-1664
75

onlyif mysql # DIV for integer division: 
query I rowsort label-6454
SELECT ALL - 59 DIV 27
----
-2

skipif mysql # not compatible
query I rowsort label-6454
SELECT ALL - 59 / 27
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-6455
SELECT + COUNT( * ) * 41 * - 2 * - 2 * + 31 col1
----
5084

skipif mysql # not compatible
query I rowsort label-6455
SELECT + COUNT ( * ) * 41 * - 2 * - 2 * + 31 col1
----
5084

query I rowsort
SELECT - 19 * - + 20 * + 30 col0
----
11400

query I rowsort
SELECT - 14 * 66 + + 72
----
-852

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6458
SELECT ALL 64 DIV + MIN( DISTINCT 98 ) + + + 81, - 96 * + - ( MAX( DISTINCT 82 ) ) * 91 AS col0
----
81
716352

skipif mysql # not compatible
query II rowsort label-6458
SELECT ALL 64 / + MIN ( DISTINCT 98 ) + + + 81, - 96 * + - ( MAX ( DISTINCT 82 ) ) * 91 AS col0
----
81
716352

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6459
SELECT - 72 DIV + - ( + NULLIF ( - + 36, - 61 DIV + COUNT( * ) - ( CAST( 13 AS SIGNED ) ) ) )
----
-2

skipif mysql # not compatible
query I rowsort label-6459
SELECT - 72 / + - ( + NULLIF ( - + 36, - 61 / + COUNT ( * ) - ( CAST ( 13 AS INTEGER ) ) ) )
----
-2

query I rowsort
SELECT DISTINCT + CASE 2 WHEN 37 / - ( 99 ) THEN + - 8 * 41 END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6461
SELECT ALL ( - COUNT( * ) ) * + CAST( - CASE - 27 WHEN - + 35 / 51 + - MAX( ( + 20 ) ) THEN - 34 + ( 31 ) END AS SIGNED ) + 8
----
NULL

skipif mysql # not compatible
query I rowsort label-6461
SELECT ALL ( - COUNT ( * ) ) * + CAST ( - CASE - 27 WHEN - + 35 / 51 + - MAX ( ( + 20 ) ) THEN - 34 + ( 31 ) END AS INTEGER ) + 8
----
NULL

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

query I rowsort
SELECT DISTINCT - NULLIF ( + 0, + 51 ) * + - COALESCE ( - - 91, + 7 * 91 ) + - 81
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-6464
SELECT ALL - 80 * + - COALESCE ( - CAST( - CAST( - CAST( - 90 AS SIGNED ) AS DECIMAL ) AS SIGNED ), SUM( + 97 ) ) * + SUM( + 43 DIV 61 ) + 5 AS col0
----
5

skipif mysql # not compatible
query I rowsort label-6464
SELECT ALL - 80 * + - COALESCE ( - CAST ( - CAST ( - CAST ( - 90 AS INTEGER ) AS REAL ) AS INTEGER ), SUM ( + 97 ) ) * + SUM ( + 43 / 61 ) + 5 AS col0
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-6465
SELECT 88 * 70 * - 80 - + 96 DIV 26
----
-492803

skipif mysql # not compatible
query I rowsort label-6465
SELECT 88 * 70 * - 80 - + 96 / 26
----
-492803

onlyif mysql # DIV for integer division: 
query I rowsort label-6466
SELECT ALL + ( - 13 ) DIV + + 73 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6466
SELECT ALL + ( - 13 ) / + + 73 AS col1
----
0

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

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

skipif mysql # not compatible
query I rowsort label-6468
SELECT + COUNT ( * ) / 32 * 77
----
0

query II rowsort
SELECT + 31, + ( 81 ) * - 28 AS col2
----
31
-2268

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6470
SELECT ALL + - COUNT( * ) * - - 33 - - - 13 + COUNT( * ) / + 49 - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6470
SELECT ALL + - COUNT ( * ) * - - 33 - - - 13 + COUNT ( * ) / + 49 - CAST ( NULL AS INTEGER )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6472
SELECT + COALESCE ( - COUNT( * ), - 48 * - COUNT( * ) * 68 * + - 24 )
----
-1

skipif mysql # not compatible
query I rowsort label-6472
SELECT + COALESCE ( - COUNT ( * ), - 48 * - COUNT ( * ) * 68 * + - 24 )
----
-1

query I rowsort
SELECT - + 79 col0
----
-79

query I rowsort
SELECT CASE + 73 WHEN - 59 THEN + - 64 END + 11
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6476
SELECT + 49 + - ( - ( - - ( 66 ) ) ) DIV - 33 AS col1
----
47

skipif mysql # not compatible
query I rowsort label-6476
SELECT + 49 + - ( - ( - - ( 66 ) ) ) / - 33 AS col1
----
47

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

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

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

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

query I rowsort
SELECT DISTINCT + - 26 * + CASE + COALESCE ( + 92, + - 73 ) WHEN - 64 * 56 THEN 94 + + 46 END * 29
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6480
SELECT + 25 * + NULLIF ( NULLIF ( + + 46, + + 2 + COALESCE ( 7, CAST( 32 AS SIGNED ) - 70 ) ), - ( NULLIF ( 33, 7 ) ) ) * CAST( NULL AS SIGNED ) + - NULLIF ( + 64, + 64 - 94 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6480
SELECT + 25 * + NULLIF ( NULLIF ( + + 46, + + 2 + COALESCE ( 7, CAST ( 32 AS INTEGER ) - 70 ) ), - ( NULLIF ( 33, 7 ) ) ) * CAST ( NULL AS INTEGER ) + - NULLIF ( + 64, + 64 - 94 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6481
SELECT - CAST( - + 36 AS SIGNED ) + + 73 * 61 * + + 19 AS col2
----
84643

skipif mysql # not compatible
query I rowsort label-6481
SELECT - CAST ( - + 36 AS INTEGER ) + + 73 * 61 * + + 19 AS col2
----
84643

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

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

query II rowsort
SELECT DISTINCT 44 AS col1, - 86 AS col0
----
44
-86

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6485
SELECT COALESCE ( 94, ( + 35 ) ) DIV COUNT( * ) AS col0
----
94

skipif mysql # not compatible
query I rowsort label-6485
SELECT COALESCE ( 94, ( + 35 ) ) / COUNT ( * ) AS col0
----
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6486
SELECT + COALESCE ( + - 54, - 76 + 32 + 12 DIV - + 79 + 46 ) * - COUNT( * ) AS col1
----
54

skipif mysql # not compatible
query I rowsort label-6486
SELECT + COALESCE ( + - 54, - 76 + 32 + 12 / - + 79 + 46 ) * - COUNT ( * ) AS col1
----
54

query I rowsort
SELECT + COALESCE ( 8, + COALESCE ( - 86, 74 ), 96 ) AS col0
----
8

query I rowsort
SELECT - + 91 col2
----
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6489
SELECT - 88 DIV + + 86 + 90 * - 34 AS col1, MIN( DISTINCT + 68 ) DIV + 46 + 82 AS col1
----
-3061
83

skipif mysql # not compatible
query II rowsort label-6489
SELECT - 88 / + + 86 + 90 * - 34 AS col1, MIN ( DISTINCT + 68 ) / + 46 + 82 AS col1
----
-3061
83

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6491
SELECT ALL + ( 51 ) + COUNT( * )
----
52

skipif mysql # not compatible
query I rowsort label-6491
SELECT ALL + ( 51 ) + COUNT ( * )
----
52

query II rowsort
SELECT ALL 8 * 1 * + ( + ( 90 ) ) AS col0, 86
----
720
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6493
SELECT - 72 DIV - 7 + + COUNT( * ) + + 45 * + 34 AS col1, 81
----
1541
81

skipif mysql # not compatible
query II rowsort label-6493
SELECT - 72 / - 7 + + COUNT ( * ) + + 45 * + 34 AS col1, 81
----
1541
81

onlyif mysql # aggregate syntax: 
query II rowsort label-6494
SELECT 11 * + - 45, + 4 + - + COUNT( * ) - + - 58 * - 41 AS col1
----
-495
-2375

skipif mysql # not compatible
query II rowsort label-6494
SELECT 11 * + - 45, + 4 + - + COUNT ( * ) - + - 58 * - 41 AS col1
----
-495
-2375

onlyif mysql # aggregate syntax: 
query I rowsort label-6495
SELECT ALL 2 + - COUNT( * ) + - - 67 * 57 AS col1
----
3820

skipif mysql # not compatible
query I rowsort label-6495
SELECT ALL 2 + - COUNT ( * ) + - - 67 * 57 AS col1
----
3820

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6496
SELECT - NULLIF ( + 2, ( - 35 ) ) DIV + 35 - + COUNT( * ) DIV + + 66 - ( 39 + 80 ) * + 81 + - 71
----
-9710

skipif mysql # not compatible
query I rowsort label-6496
SELECT - NULLIF ( + 2, ( - 35 ) ) / + 35 - + COUNT ( * ) / + + 66 - ( 39 + 80 ) * + 81 + - 71
----
-9710

query II rowsort
SELECT ALL 66 + + 66 AS col1, 73
----
132
73

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6499
SELECT 27 + - + SUM( DISTINCT + 9 ) col1
----
18

skipif mysql # not compatible
query I rowsort label-6499
SELECT 27 + - + SUM ( DISTINCT + 9 ) col1
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-6500
SELECT DISTINCT + COUNT( DISTINCT 0 ) * - 70 * - 37 + + ( - + 65 )
----
2525

skipif mysql # not compatible
query I rowsort label-6500
SELECT DISTINCT + COUNT ( DISTINCT 0 ) * - 70 * - 37 + + ( - + 65 )
----
2525

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6501
SELECT DISTINCT + COUNT( * ) DIV - 58 AS col2, AVG ( ALL + CAST( NULL AS SIGNED ) )
----
0
NULL

skipif mysql # not compatible
query II rowsort label-6501
SELECT DISTINCT + COUNT ( * ) / - 58 AS col2, AVG ( ALL + CAST ( NULL AS INTEGER ) )
----
0
NULL

query I rowsort
SELECT ALL - 56 - - + 55 AS col1
----
-1

query II rowsort
SELECT 46 + - + 78, - 93 + + 14 AS col1
----
-32
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6504
SELECT ALL + CAST( + 45 AS SIGNED ) * 48 + 22
----
2182

skipif mysql # not compatible
query I rowsort label-6504
SELECT ALL + CAST ( + 45 AS INTEGER ) * 48 + 22
----
2182

query I rowsort
SELECT 17 * + - 39 AS col1
----
-663

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6507
SELECT ALL + - 36 * - + MAX( 56 ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6507
SELECT ALL + - 36 * - + MAX ( 56 ) * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - - 73 * 58
----
4234

query I rowsort
SELECT DISTINCT + 75 - - - 3 + - + 77
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-6510
SELECT - ( CASE - ( - COUNT( * ) ) WHEN COUNT( * ) THEN - NULLIF ( - + 38, 20 ) * - 83 END ) AS col2
----
3154

skipif mysql # not compatible
query I rowsort label-6510
SELECT - ( CASE - ( - COUNT ( * ) ) WHEN COUNT ( * ) THEN - NULLIF ( - + 38, 20 ) * - 83 END ) AS col2
----
3154

onlyif mysql # aggregate syntax: 
query I rowsort label-6511
SELECT ( + NULLIF ( COALESCE ( 17, + 95 - ( - + COALESCE ( - 65, COUNT( - 0 ) ) ) + 90 ), 56 ) ) AS col2
----
17

skipif mysql # not compatible
query I rowsort label-6511
SELECT ( + NULLIF ( COALESCE ( 17, + 95 - ( - + COALESCE ( - 65, COUNT ( - 0 ) ) ) + 90 ), 56 ) ) AS col2
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-6512
SELECT - - COUNT( DISTINCT - 19 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-6512
SELECT - - COUNT ( DISTINCT - 19 ) col1
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6514
SELECT + COALESCE ( + 4, 90 + 8 * + 86 * + - COUNT( * ) ) AS col0
----
4

skipif mysql # not compatible
query I rowsort label-6514
SELECT + COALESCE ( + 4, 90 + 8 * + 86 * + - COUNT ( * ) ) AS col0
----
4

query I rowsort
SELECT - 36 - - 4 - - 17 * + - ( 80 ) AS col1
----
-1392

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6516
SELECT NULLIF ( - - CAST( NULL AS SIGNED ), + CASE 87 WHEN 58 * + ( - 67 ) + + 51 * + 58 THEN NULL WHEN - 14 * 4 THEN NULL ELSE + 91 END * - ( 16 + - 58 ) ) * - 38 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6516
SELECT NULLIF ( - - CAST ( NULL AS INTEGER ), + CASE 87 WHEN 58 * + ( - 67 ) + + 51 * + 58 THEN NULL WHEN - 14 * 4 THEN NULL ELSE + 91 END * - ( 16 + - 58 ) ) * - 38 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6517
SELECT ALL 93 + 92 * - + COUNT( * ) * - 42
----
3957

skipif mysql # not compatible
query I rowsort label-6517
SELECT ALL 93 + 92 * - + COUNT ( * ) * - 42
----
3957

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

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

query I rowsort
SELECT 21 * + 55 * + - 96 - - + 90 col2
----
-110790

onlyif mysql # aggregate syntax: 
query I rowsort label-6520
SELECT - COALESCE ( - 6, + COUNT( * ), - 49 + + 46 )
----
6

skipif mysql # not compatible
query I rowsort label-6520
SELECT - COALESCE ( - 6, + COUNT ( * ), - 49 + + 46 )
----
6

query I rowsort
SELECT ALL + COALESCE ( + 23, - 61, + + 77 ) * 79 AS col0
----
1817

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

skipif mysql # not compatible
query I rowsort label-6522
SELECT ALL - 82 + + COUNT ( * ) AS col1
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-6523
SELECT SUM( + + 36 ) + - COUNT( * ) * + SUM( 56 ) col2
----
-20

skipif mysql # not compatible
query I rowsort label-6523
SELECT SUM ( + + 36 ) + - COUNT ( * ) * + SUM ( 56 ) col2
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6524
SELECT ALL 61 + - + 89 + + 9 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6524
SELECT ALL 61 + - + 89 + + 9 * CAST ( NULL AS INTEGER )
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6526
SELECT DISTINCT 84 DIV - ( - CASE - ( - 48 ) WHEN 58 THEN 32 WHEN 64 THEN + CASE CAST( 44 AS SIGNED ) WHEN - 21 THEN NULL WHEN - 10 * - 33 THEN NULL ELSE - 85 END - + 4 ELSE 80 + - 11 * 13 END )
----
-1

skipif mysql # not compatible
query I rowsort label-6526
SELECT DISTINCT 84 / - ( - CASE - ( - 48 ) WHEN 58 THEN 32 WHEN 64 THEN + CASE CAST ( 44 AS INTEGER ) WHEN - 21 THEN NULL WHEN - 10 * - 33 THEN NULL ELSE - 85 END - + 4 ELSE 80 + - 11 * 13 END )
----
-1

query I rowsort
SELECT ALL - 42 * - 90 + 79 + 4 + + 89
----
3952

query II rowsort
SELECT 20 * ( + 12 ) AS col1, + ( + 64 ) AS col2
----
240
64

query I rowsort
SELECT DISTINCT + 97 * 25 - - + COALESCE ( + - 53, + 50 * + 60 ) + - + 10 * 26
----
2112

onlyif mysql # aggregate syntax: 
query I rowsort label-6530
SELECT SUM( - 15 ) AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-6530
SELECT SUM ( - 15 ) AS col1
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-6531
SELECT SUM( - 88 )
----
-88

skipif mysql # not compatible
query I rowsort label-6531
SELECT SUM ( - 88 )
----
-88

query I rowsort
SELECT ALL 71 * + 48
----
3408

query I rowsort
SELECT + 77 * 5
----
385

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6534
SELECT 25 * - CASE + 58 WHEN + CAST( + 75 AS SIGNED ) - + 3 THEN 92 WHEN + 54 - - 24 THEN + 43 ELSE NULL END / 89 - 16
----
NULL

skipif mysql # not compatible
query I rowsort label-6534
SELECT 25 * - CASE + 58 WHEN + CAST ( + 75 AS INTEGER ) - + 3 THEN 92 WHEN + 54 - - 24 THEN + 43 ELSE NULL END / 89 - 16
----
NULL

query I rowsort
SELECT + 53 * + 19 AS col2
----
1007

query I rowsort
SELECT + 70 - - - 70 AS col1
----
0

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

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

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

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

query II rowsort
SELECT ALL + 8 AS col2, 4
----
8
4

query I rowsort
SELECT + 92 * - - ( - COALESCE ( + 74, - 25 * - 15 ) ) - 11
----
-6819

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6541
SELECT - + 35 * + + MAX( DISTINCT - + 8 ) * ( - 0 ) DIV - - 55 + - 87 AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-6541
SELECT - + 35 * + + MAX ( DISTINCT - + 8 ) * ( - 0 ) / - - 55 + - 87 AS col2
----
-87

query I rowsort
SELECT - - 2 - + 50
----
-48

query I rowsort
SELECT ALL + 96 * 16 AS col1
----
1536

onlyif mysql # aggregate syntax: 
query I rowsort label-6544
SELECT ALL + MIN( - 39 )
----
-39

skipif mysql # not compatible
query I rowsort label-6544
SELECT ALL + MIN ( - 39 )
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-6545
SELECT - 94 * - - NULLIF ( - 61, - - SUM( - 80 ) ) AS col1
----
5734

skipif mysql # not compatible
query I rowsort label-6545
SELECT - 94 * - - NULLIF ( - 61, - - SUM ( - 80 ) ) AS col1
----
5734

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6546
SELECT ALL + - COALESCE ( + + 4, 84 DIV - 3, - 37 + - ( - 88 ), 95 ) + CAST( 36 AS SIGNED ) col2
----
32

skipif mysql # not compatible
query I rowsort label-6546
SELECT ALL + - COALESCE ( + + 4, 84 / - 3, - 37 + - ( - 88 ), 95 ) + CAST ( 36 AS INTEGER ) col2
----
32

query I rowsort
SELECT ALL + 61 + 39
----
100

query I rowsort
SELECT DISTINCT 22 * 9
----
198

query I rowsort
SELECT DISTINCT + 44 + + + 54
----
98

query I rowsort
SELECT ALL - + 33 + 4
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-6551
SELECT - CASE + + 96 WHEN + SUM( + 73 ) - + - 2 + 77 - - - 81 THEN + COUNT( * ) * + 5 + + 58 ELSE ( 8 ) + 97 END AS col1
----
-105

skipif mysql # not compatible
query I rowsort label-6551
SELECT - CASE + + 96 WHEN + SUM ( + 73 ) - + - 2 + 77 - - - 81 THEN + COUNT ( * ) * + 5 + + 58 ELSE ( 8 ) + 97 END AS col1
----
-105

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6553
SELECT DISTINCT - CASE + COUNT( ALL - 88 ) WHEN COALESCE ( - 94, - - COUNT( * ) ) THEN + CAST( + - 6 AS SIGNED ) END + 5
----
NULL

skipif mysql # not compatible
query I rowsort label-6553
SELECT DISTINCT - CASE + COUNT ( ALL - 88 ) WHEN COALESCE ( - 94, - - COUNT ( * ) ) THEN + CAST ( + - 6 AS INTEGER ) END + 5
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6554
SELECT - + 31 DIV - 54 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6554
SELECT - + 31 / - 54 AS col1
----
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6556
SELECT ALL - + 41 + + 22 DIV - + 33 AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-6556
SELECT ALL - + 41 + + 22 / - + 33 AS col0
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-6557
SELECT DISTINCT SUM( DISTINCT + 41 ) AS col0
----
41

skipif mysql # not compatible
query I rowsort label-6557
SELECT DISTINCT SUM ( DISTINCT + 41 ) AS col0
----
41

query I rowsort
SELECT - 55 + 22
----
-33

query II rowsort
SELECT DISTINCT ( 47 ) AS col0, - 90 - 8 + 73 AS col1
----
47
-25

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6561
SELECT ALL NULLIF ( ( - NULLIF ( + 77, COUNT( * ) ) ), - 39 )
----
-77

skipif mysql # not compatible
query I rowsort label-6561
SELECT ALL NULLIF ( ( - NULLIF ( + 77, COUNT ( * ) ) ), - 39 )
----
-77

query I rowsort
SELECT ALL + 37 + - 86 + + + 46
----
-3

query I rowsort
SELECT ALL + 28 * + - 25 AS col2
----
-700

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6564
SELECT ALL NULLIF ( + CAST( NULL AS SIGNED ), 43 + - ( + ( CAST( + 36 AS SIGNED ) ) ) / MAX( - - 27 ) ) - 13 * COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6564
SELECT ALL NULLIF ( + CAST ( NULL AS INTEGER ), 43 + - ( + ( CAST ( + 36 AS INTEGER ) ) ) / MAX ( - - 27 ) ) - 13 * COUNT ( * ) AS col1
----
NULL

query II rowsort
SELECT ALL ( - 77 ) AS col2, - 40 * - 50
----
-77
2000

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6566
SELECT DISTINCT - COALESCE ( - COUNT( * ), + 25, - MAX( ALL 33 ) + - 80 ) * CAST( - - 62 AS SIGNED ) * - + 89
----
-5518

skipif mysql # not compatible
query I rowsort label-6566
SELECT DISTINCT - COALESCE ( - COUNT ( * ), + 25, - MAX ( ALL 33 ) + - 80 ) * CAST ( - - 62 AS INTEGER ) * - + 89
----
-5518

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6568
SELECT CAST( - CASE - SUM( 32 ) WHEN + 56 THEN + 61 WHEN - 30 * + 2 - - - COUNT( * ) / ( 53 ) THEN - 31 / SUM( + 67 ) ELSE + 17 END AS SIGNED )
----
-17

skipif mysql # not compatible
query I rowsort label-6568
SELECT CAST ( - CASE - SUM ( 32 ) WHEN + 56 THEN + 61 WHEN - 30 * + 2 - - - COUNT ( * ) / ( 53 ) THEN - 31 / SUM ( + 67 ) ELSE + 17 END AS INTEGER )
----
-17

query I rowsort
SELECT - 53 * + 98
----
-5194

query II rowsort
SELECT + 59 * 74 * ( 44 ) AS col2, 15
----
192104
15

query I rowsort
SELECT 29 * - 34 + + 55 AS col2
----
-931

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

skipif mysql # not compatible
query I rowsort label-6572
SELECT + 29 - 26 - CAST ( NULL AS INTEGER )
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6574
SELECT DISTINCT + CAST( + CASE + + 35 WHEN + COUNT( * ) - + CAST( 95 AS SIGNED ) THEN - MIN( - 89 ) ELSE NULL END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6574
SELECT DISTINCT + CAST ( + CASE + + 35 WHEN + COUNT ( * ) - + CAST ( 95 AS INTEGER ) THEN - MIN ( - 89 ) ELSE NULL END AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6575
SELECT ALL + COUNT( * ) * + + 50 * + 56
----
2800

skipif mysql # not compatible
query I rowsort label-6575
SELECT ALL + COUNT ( * ) * + + 50 * + 56
----
2800

query II rowsort
SELECT + - ( - + 58 ) col0, + 57 + + + 16 * + + 49 AS col1
----
58
841

query I rowsort
SELECT DISTINCT - 59 * 37
----
-2183

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

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

query I rowsort
SELECT + 82 * - 86 - CASE - 47 WHEN + 59 THEN 0 ELSE NULL END AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6581
SELECT ALL 21 * COUNT( * ) * - 0 * MAX( DISTINCT 88 ) + - MAX( - ( 73 ) )
----
73

skipif mysql # not compatible
query I rowsort label-6581
SELECT ALL 21 * COUNT ( * ) * - 0 * MAX ( DISTINCT 88 ) + - MAX ( - ( 73 ) )
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-6582
SELECT + 65 + 91 * + + COUNT( * ) + - 36 AS col2
----
120

skipif mysql # not compatible
query I rowsort label-6582
SELECT + 65 + 91 * + + COUNT ( * ) + - 36 AS col2
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-6583
SELECT ALL MIN( DISTINCT 63 ) * - 0 + - + ( 92 ) AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-6583
SELECT ALL MIN ( DISTINCT 63 ) * - 0 + - + ( 92 ) AS col0
----
-92

query I rowsort
SELECT ALL 92 * 7 AS col0
----
644

query I rowsort
SELECT + - 96 * + + 89
----
-8544

query I rowsort
SELECT ALL ( - COALESCE ( - 21, - 27, + 24 ) ) * - 74 - + 35 - - - 19 * - NULLIF ( + 40, 29 / 46 ) * 93 + - 69
----
69022

onlyif mysql # aggregate syntax: 
query I rowsort label-6587
SELECT - MAX( + 88 ) AS col1
----
-88

skipif mysql # not compatible
query I rowsort label-6587
SELECT - MAX ( + 88 ) AS col1
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-6588
SELECT ALL 1 * 65 * - 91 * 2 + - MAX( DISTINCT NULLIF ( + + 37, - 16 ) ) * - 60 + + 16
----
-9594

skipif mysql # not compatible
query I rowsort label-6588
SELECT ALL 1 * 65 * - 91 * 2 + - MAX ( DISTINCT NULLIF ( + + 37, - 16 ) ) * - 60 + + 16
----
-9594

query I rowsort
SELECT DISTINCT 55 * - 60 AS col0
----
-3300

query I rowsort
SELECT + + 69 - - 28
----
97

query I rowsort
SELECT ALL + 41 + 72 col1
----
113

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6594
SELECT DISTINCT + NULLIF ( - 52, + - CAST( NULL AS SIGNED ) ) - - - 58 AS col0
----
-110

skipif mysql # not compatible
query I rowsort label-6594
SELECT DISTINCT + NULLIF ( - 52, + - CAST ( NULL AS INTEGER ) ) - - - 58 AS col0
----
-110

query I rowsort
SELECT ALL 43 * - + 56 * 49 * - 6 * + + 20 AS col1
----
14159040

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6596
SELECT DISTINCT - ( + 45 ) DIV + 34 - + COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-6596
SELECT DISTINCT - ( + 45 ) / + 34 - + COUNT ( * )
----
-2

query I rowsort
SELECT ALL COALESCE ( + 82, - 57 )
----
82

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

skipif mysql # not compatible
query I rowsort label-6598
SELECT DISTINCT + 24 - + COUNT ( * ) AS col2
----
23

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6602
SELECT DISTINCT + 52 DIV + 14
----
3

skipif mysql # not compatible
query I rowsort label-6602
SELECT DISTINCT + 52 / + 14
----
3

query II rowsort
SELECT ALL 62 AS col2, - 56
----
62
-56

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6604
SELECT DISTINCT 64 AS col0, - ( CAST( NULL AS SIGNED ) ) AS col2
----
64
NULL

skipif mysql # not compatible
query II rowsort label-6604
SELECT DISTINCT 64 AS col0, - ( CAST ( NULL AS INTEGER ) ) AS col2
----
64
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6605
SELECT - 65 DIV - + 64 + - ( + 68 )
----
-67

skipif mysql # not compatible
query I rowsort label-6605
SELECT - 65 / - + 64 + - ( + 68 )
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-6606
SELECT ALL - ( - SUM( 8 ) ) AS col0
----
8

skipif mysql # not compatible
query I rowsort label-6606
SELECT ALL - ( - SUM ( 8 ) ) AS col0
----
8

query I rowsort
SELECT ALL - CASE 58 WHEN - 24 THEN - + 28 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6608
SELECT ALL - CAST( + - 98 AS SIGNED ) * 10 DIV - 68 + - COALESCE ( - 8, - 10 DIV 72 ) + - 47 col2
----
-53

skipif mysql # not compatible
query I rowsort label-6608
SELECT ALL - CAST ( + - 98 AS INTEGER ) * 10 / - 68 + - COALESCE ( - 8, - 10 / 72 ) + - 47 col2
----
-53

query I rowsort
SELECT 55 * 48
----
2640

query I rowsort
SELECT ALL 11 + + 99
----
110

onlyif mysql # aggregate syntax: 
query II rowsort label-6611
SELECT + 23 AS col1, ( + + 44 ) + - COUNT( ALL 28 ) AS col0
----
23
43

skipif mysql # not compatible
query II rowsort label-6611
SELECT + 23 AS col1, ( + + 44 ) + - COUNT ( ALL 28 ) AS col0
----
23
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6612
SELECT COUNT( DISTINCT - - 81 ) DIV ( - 3 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6612
SELECT COUNT ( DISTINCT - - 81 ) / ( - 3 ) AS col0
----
0

query II rowsort
SELECT ALL - - 41 + + ( 67 ) col2, 92 AS col0
----
108
92

onlyif mysql # DIV for integer division: 
query I rowsort label-6614
SELECT + ( - 61 ) DIV + 91 + - 47 - - 72
----
25

skipif mysql # not compatible
query I rowsort label-6614
SELECT + ( - 61 ) / + 91 + - 47 - - 72
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-6615
SELECT ALL - COUNT( * ) + + + ( + 44 ) * 14
----
615

skipif mysql # not compatible
query I rowsort label-6615
SELECT ALL - COUNT ( * ) + + + ( + 44 ) * 14
----
615

onlyif mysql # aggregate syntax: 
query I rowsort label-6616
SELECT COUNT( * ) + + MIN( - 59 ) AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-6616
SELECT COUNT ( * ) + + MIN ( - 59 ) AS col2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-6617
SELECT ALL - CASE - COUNT( * ) WHEN - - 26 + COUNT( * ) THEN - - COUNT( * ) ELSE + CASE 43 WHEN + 6 THEN + 47 END END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6617
SELECT ALL - CASE - COUNT ( * ) WHEN - - 26 + COUNT ( * ) THEN - - COUNT ( * ) ELSE + CASE 43 WHEN + 6 THEN + 47 END END AS col2
----
NULL

query I rowsort
SELECT DISTINCT + - ( + - 45 ) + - - 91 AS col2
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-6619
SELECT ALL 55 + + ( + 79 ) + - + COUNT( * ) * - 24 - - + 25 + 54
----
237

skipif mysql # not compatible
query I rowsort label-6619
SELECT ALL 55 + + ( + 79 ) + - + COUNT ( * ) * - 24 - - + 25 + 54
----
237

onlyif mysql # aggregate syntax: 
query I rowsort label-6620
SELECT ALL - SUM( DISTINCT 18 ) AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-6620
SELECT ALL - SUM ( DISTINCT 18 ) AS col1
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-6621
SELECT ALL - + CASE - MAX( - 61 ) WHEN - - 55 * + 77 - 43 - - + 18 - + - MIN( + 44 ) + - + 72 / - 3 * 97 THEN NULL WHEN 69 * - 34 + 89 THEN NULL ELSE 0 END + - MIN( - 2 + 32 ) col1
----
-30

skipif mysql # not compatible
query I rowsort label-6621
SELECT ALL - + CASE - MAX ( - 61 ) WHEN - - 55 * + 77 - 43 - - + 18 - + - MIN ( + 44 ) + - + 72 / - 3 * 97 THEN NULL WHEN 69 * - 34 + 89 THEN NULL ELSE 0 END + - MIN ( - 2 + 32 ) col1
----
-30

query I rowsort
SELECT DISTINCT + + 99 + - 31 AS col0
----
68

query I rowsort
SELECT ALL - 53 * 81
----
-4293

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6624
SELECT DISTINCT 40 * + CAST( NULL AS SIGNED ) + - NULLIF ( + + 23, + + 5 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6624
SELECT DISTINCT 40 * + CAST ( NULL AS INTEGER ) + - NULLIF ( + + 23, + + 5 ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT 44 * - + 82 col2
----
-3608

query I rowsort
SELECT ALL - 3 - + 60 * - + 89 AS col1
----
5337

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6627
SELECT + - ( + COUNT( * ) ) * - 54 + - + 63 + - CASE - 60 WHEN - ( 9 ) THEN + + COALESCE ( + + 58, 19 ) DIV + 37 WHEN CASE 44 WHEN MAX( DISTINCT ( - 20 ) ) THEN + 82 END THEN SUM( 35 ) ELSE - COALESCE ( - NULLIF ( - ( 26 ), 87 * - COUNT( * ) + - ( COUNT( * ) ) ), - 34 + 79, - 49 ) END AS col2
----
17

skipif mysql # not compatible
query I rowsort label-6627
SELECT + - ( + COUNT ( * ) ) * - 54 + - + 63 + - CASE - 60 WHEN - ( 9 ) THEN + + COALESCE ( + + 58, 19 ) / + 37 WHEN CASE 44 WHEN MAX ( DISTINCT ( - 20 ) ) THEN + 82 END THEN SUM ( 35 ) ELSE - COALESCE ( - NULLIF ( - ( 26 ), 87 * - COUNT ( * ) + - ( COUNT ( * ) ) ), - 34 + 79, - 49 ) END AS col2
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-6628
SELECT ( 65 ) * 20 DIV + 84
----
15

skipif mysql # not compatible
query I rowsort label-6628
SELECT ( 65 ) * 20 / + 84
----
15

query I rowsort
SELECT + 32 + 85 AS col0
----
117

query I rowsort
SELECT ALL 2 - - 58 + - + 68
----
-8

query I rowsort
SELECT DISTINCT ( - 75 ) AS col1
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-6632
SELECT DISTINCT 67 * SUM( DISTINCT + 61 ) AS col1
----
4087

skipif mysql # not compatible
query I rowsort label-6632
SELECT DISTINCT 67 * SUM ( DISTINCT + 61 ) AS col1
----
4087

query II rowsort
SELECT 80 AS col0, 59 AS col0
----
80
59

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

skipif mysql # not compatible
query I rowsort label-6634
SELECT DISTINCT - 65 * + COUNT ( DISTINCT - 59 ) AS col1
----
-65

query I rowsort
SELECT 40 + 16 col1
----
56

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

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

query II rowsort
SELECT 46 * - + 18 col0, - 39
----
-828
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-6638
SELECT DISTINCT SUM( DISTINCT + 93 ) * - + 34 * - 27 AS col2
----
85374

skipif mysql # not compatible
query I rowsort label-6638
SELECT DISTINCT SUM ( DISTINCT + 93 ) * - + 34 * - 27 AS col2
----
85374

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6639
SELECT ALL + 47 * + CAST( - + 72 AS SIGNED )
----
-3384

skipif mysql # not compatible
query I rowsort label-6639
SELECT ALL + 47 * + CAST ( - + 72 AS INTEGER )
----
-3384

query II rowsort
SELECT 90 AS col0, + 13 * + + 91
----
90
1183

query II rowsort
SELECT ALL 16 AS col1, + 6 + - + 1
----
16
5

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6642
SELECT ALL + 3 + 1, CASE + - 13 WHEN - COUNT( * ) * 59 + - 78 - + CAST( + 52 AS DECIMAL ) * + ( + 15 ) THEN 83 END * 60 AS col0
----
4
NULL

skipif mysql # not compatible
query II rowsort label-6642
SELECT ALL + 3 + 1, CASE + - 13 WHEN - COUNT ( * ) * 59 + - 78 - + CAST ( + 52 AS REAL ) * + ( + 15 ) THEN 83 END * 60 AS col0
----
4
NULL

query II rowsort
SELECT 61 + - 61, 77 AS col1
----
0
77

onlyif mysql # aggregate syntax: 
query II rowsort label-6644
SELECT 20, SUM( ALL 27 ) + - - 49 AS col1
----
20
76

skipif mysql # not compatible
query II rowsort label-6644
SELECT 20, SUM ( ALL 27 ) + - - 49 AS col1
----
20
76

query II rowsort
SELECT ALL 25, 86 AS col1
----
25
86

query I rowsort
SELECT 71 + + 46 AS col2
----
117

query I rowsort
SELECT 74 * - 47 AS col1
----
-3478

query II rowsort
SELECT DISTINCT - - 99 col2, - 46 * ( 66 )
----
99
-3036

onlyif mysql # aggregate syntax: 
query I rowsort label-6649
SELECT ALL 2 * - COUNT( * ) + - 6 + - + COUNT( 5 ) * - MAX( ALL - 78 ) AS col1
----
-86

skipif mysql # not compatible
query I rowsort label-6649
SELECT ALL 2 * - COUNT ( * ) + - 6 + - + COUNT ( 5 ) * - MAX ( ALL - 78 ) AS col1
----
-86

query I rowsort
SELECT + + 94 * - ( - 28 ) + + 47 col0
----
2679

query I rowsort
SELECT 19 - - 15 * + 48
----
739

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

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

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

skipif mysql # not compatible
query I rowsort label-6653
SELECT ALL + + COUNT ( * ) + + - 65 col1
----
-64

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

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

query II rowsort
SELECT - 2 AS col0, + 53 + + - 73
----
-2
-20

query I rowsort
SELECT DISTINCT + ( + - 66 ) * + 37
----
-2442

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6657
SELECT + - COALESCE ( - - CAST( - 44 AS SIGNED ), 54 DIV - 30 * ( 86 ) + - 61 )
----
44

skipif mysql # not compatible
query I rowsort label-6657
SELECT + - COALESCE ( - - CAST ( - 44 AS INTEGER ), 54 / - 30 * ( 86 ) + - 61 )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-6658
SELECT + COUNT( * ) * + + ( - 28 ) + - MIN( 5 ) + + 42
----
9

skipif mysql # not compatible
query I rowsort label-6658
SELECT + COUNT ( * ) * + + ( - 28 ) + - MIN ( 5 ) + + 42
----
9

query I rowsort
SELECT ALL - - 9 + + 7 AS col0
----
16

query I rowsort
SELECT + COALESCE ( + 77, 76 ) AS col1
----
77

query I rowsort
SELECT - 89 * + 13
----
-1157

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6662
SELECT + CASE + - 44 WHEN CAST( NULL AS SIGNED ) + + 46 THEN NULL WHEN + + 20 THEN NULL WHEN - 76 + + COALESCE ( - 18, + COUNT( * ) * + 30 + - - 58 + + 3 ) + + 87 / ( CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) ) THEN NULL WHEN - COUNT( * ) + 28 * COUNT( * ) THEN 90 + 77 ELSE NULL END + 62 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6662
SELECT + CASE + - 44 WHEN CAST ( NULL AS INTEGER ) + + 46 THEN NULL WHEN + + 20 THEN NULL WHEN - 76 + + COALESCE ( - 18, + COUNT ( * ) * + 30 + - - 58 + + 3 ) + + 87 / ( CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) ) THEN NULL WHEN - COUNT ( * ) + 28 * COUNT ( * ) THEN 90 + 77 ELSE NULL END + 62 AS col1
----
NULL

query I rowsort
SELECT NULLIF ( - 54, 0 + + - 1 ) AS col0
----
-54

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6664
SELECT + 59 AS col1, - 94 DIV + 82 + 0 * + + ( - NULLIF ( 56, + 85 + 32 ) ) * + + COUNT( * ) + + - 89 + 1 AS col0
----
59
-89

skipif mysql # not compatible
query II rowsort label-6664
SELECT + 59 AS col1, - 94 / + 82 + 0 * + + ( - NULLIF ( 56, + 85 + 32 ) ) * + + COUNT ( * ) + + - 89 + 1 AS col0
----
59
-89

query I rowsort
SELECT ALL - - ( 17 ) AS col1
----
17

query II rowsort
SELECT ALL 74 * 59 * 25 - - - 86, + 38 + - 74 * - + 39 AS col0
----
109064
2924

query I rowsort
SELECT 91 * - 13
----
-1183

onlyif mysql # aggregate syntax: 
query II rowsort label-6668
SELECT DISTINCT - COUNT( * ) - + 67, 52 AS col1
----
-68
52

skipif mysql # not compatible
query II rowsort label-6668
SELECT DISTINCT - COUNT ( * ) - + 67, 52 AS col1
----
-68
52

onlyif mysql # DIV for integer division: 
query I rowsort label-6669
SELECT ALL + 69 DIV - 29 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-6669
SELECT ALL + 69 / - 29 AS col0
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6670
SELECT CAST( - 76 AS SIGNED ) * - 1 * - 12 - + CAST( NULL AS SIGNED ) + + 40 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6670
SELECT CAST ( - 76 AS INTEGER ) * - 1 * - 12 - + CAST ( NULL AS INTEGER ) + + 40 AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6672
SELECT - MIN( DISTINCT + 86 ) AS col2
----
-86

skipif mysql # not compatible
query I rowsort label-6672
SELECT - MIN ( DISTINCT + 86 ) AS col2
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-6673
SELECT + CASE + - 71 WHEN + - 19 - - MIN( - 37 ) THEN + + COUNT( * ) END / 82 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6673
SELECT + CASE + - 71 WHEN + - 19 - - MIN ( - 37 ) THEN + + COUNT ( * ) END / 82 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6674
SELECT DISTINCT CAST( + 36 AS SIGNED ) * 64 + 47 + + 12 * 11 AS col1
----
2483

skipif mysql # not compatible
query I rowsort label-6674
SELECT DISTINCT CAST ( + 36 AS INTEGER ) * 64 + 47 + + 12 * 11 AS col1
----
2483

query I rowsort
SELECT + 54 - - - 43
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-6676
SELECT + 24 * MIN( ALL 66 ) * - 19 + + 25 AS col2
----
-30071

skipif mysql # not compatible
query I rowsort label-6676
SELECT + 24 * MIN ( ALL 66 ) * - 19 + + 25 AS col2
----
-30071

onlyif mysql # aggregate syntax: 
query I rowsort label-6677
SELECT DISTINCT 36 + COUNT( * ) col1
----
37

skipif mysql # not compatible
query I rowsort label-6677
SELECT DISTINCT 36 + COUNT ( * ) col1
----
37

query I rowsort
SELECT + 71 + - + 62
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-6679
SELECT - MAX( ALL - 91 ) AS col1, - COUNT( * ) - - 40
----
91
39

skipif mysql # not compatible
query II rowsort label-6679
SELECT - MAX ( ALL - 91 ) AS col1, - COUNT ( * ) - - 40
----
91
39

onlyif mysql # aggregate syntax: 
query I rowsort label-6680
SELECT ALL 76 + + - COUNT( * ) + - COUNT( ALL + + 61 ) AS col0
----
74

skipif mysql # not compatible
query I rowsort label-6680
SELECT ALL 76 + + - COUNT ( * ) + - COUNT ( ALL + + 61 ) AS col0
----
74

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

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

query I rowsort
SELECT DISTINCT + 11 + + COALESCE ( NULLIF ( - 80, - ( + 68 ) ), 14 )
----
-69

onlyif mysql # aggregate syntax: 
query II rowsort label-6683
SELECT + ( + 2 ) + - 21 col2, - 54 - - COUNT( * )
----
-19
-53

skipif mysql # not compatible
query II rowsort label-6683
SELECT + ( + 2 ) + - 21 col2, - 54 - - COUNT ( * )
----
-19
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-6684
SELECT DISTINCT - 36 * + COUNT( * ) * - 93 * - - 34
----
113832

skipif mysql # not compatible
query I rowsort label-6684
SELECT DISTINCT - 36 * + COUNT ( * ) * - 93 * - - 34
----
113832

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6685
SELECT ALL - CAST( NULL AS SIGNED ) * + 57 + - - 27 + + 80 * + CASE - 90 WHEN + + 22 * + 35 THEN 94 WHEN 14 THEN + - 88 WHEN ( - 95 ) * 8 THEN ( + NULLIF ( 22, 66 + - 54 ) ) + + ( + 65 ) * 89 ELSE NULLIF ( - 18, 46 * 16 - + 24 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6685
SELECT ALL - CAST ( NULL AS INTEGER ) * + 57 + - - 27 + + 80 * + CASE - 90 WHEN + + 22 * + 35 THEN 94 WHEN 14 THEN + - 88 WHEN ( - 95 ) * 8 THEN ( + NULLIF ( 22, 66 + - 54 ) ) + + ( + 65 ) * 89 ELSE NULLIF ( - 18, 46 * 16 - + 24 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6686
SELECT DISTINCT 77 * + 46 * + 1 - MAX( - CASE - - 5 WHEN + 82 THEN - 69 ELSE NULL END ) + - 75 * + 12 * - COUNT( * ) * - 28 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6686
SELECT DISTINCT 77 * + 46 * + 1 - MAX ( - CASE - - 5 WHEN + 82 THEN - 69 ELSE NULL END ) + - 75 * + 12 * - COUNT ( * ) * - 28 col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6687
SELECT COALESCE ( 83, + COUNT( * ) * + COUNT( * ) ) * - 31 + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6687
SELECT COALESCE ( 83, + COUNT ( * ) * + COUNT ( * ) ) * - 31 + CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT - - 17 * - - 15
----
255

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6689
SELECT DISTINCT + COALESCE ( + 80, + COALESCE ( - - 70, - + 45 DIV - + COUNT( * ) + - - COUNT( * ), + - 38 + 59 + - 65 + + + 17 * 39 + + 28 ), 4, + 24 DIV + ( 88 ) )
----
80

skipif mysql # not compatible
query I rowsort label-6689
SELECT DISTINCT + COALESCE ( + 80, + COALESCE ( - - 70, - + 45 / - + COUNT ( * ) + - - COUNT ( * ), + - 38 + 59 + - 65 + + + 17 * 39 + + 28 ), 4, + 24 / + ( 88 ) )
----
80

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

skipif mysql # not compatible
query I rowsort label-6690
SELECT ALL 82 * + 82 - + + COUNT ( * ) AS col0
----
6723

onlyif mysql # aggregate syntax: 
query I rowsort label-6691
SELECT + CASE COUNT( * ) WHEN + 91 THEN NULL WHEN + + ( 28 ) / ( - 2 ) THEN + 81 - - + 99 * + + ( - 77 ) * MAX( DISTINCT 70 ) - - 1 END / COUNT( * ) + 43
----
NULL

skipif mysql # not compatible
query I rowsort label-6691
SELECT + CASE COUNT ( * ) WHEN + 91 THEN NULL WHEN + + ( 28 ) / ( - 2 ) THEN + 81 - - + 99 * + + ( - 77 ) * MAX ( DISTINCT 70 ) - - 1 END / COUNT ( * ) + 43
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6692
SELECT + COUNT( + 15 ) DIV - 46 col2
----
0

skipif mysql # not compatible
query I rowsort label-6692
SELECT + COUNT ( + 15 ) / - 46 col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6693
SELECT - 0 + - - 87 DIV + - ( + MAX( ALL 6 ) )
----
-14

skipif mysql # not compatible
query I rowsort label-6693
SELECT - 0 + - - 87 / + - ( + MAX ( ALL 6 ) )
----
-14

query I rowsort
SELECT ALL + + 19 * + + 57 * + - 88 - 71 col0
----
-95375

query I rowsort
SELECT - 11 * + NULLIF ( 75, + 37 ) + - 90
----
-915

query I rowsort
SELECT DISTINCT + 79 * - 93
----
-7347

query I rowsort
SELECT DISTINCT + 68 * + 51
----
3468

onlyif mysql # aggregate syntax: 
query II rowsort label-6698
SELECT ALL + - 27 * COUNT( * ) AS col2, + 76 AS col2
----
-27
76

skipif mysql # not compatible
query II rowsort label-6698
SELECT ALL + - 27 * COUNT ( * ) AS col2, + 76 AS col2
----
-27
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6699
SELECT - 90 - - NULLIF ( + - CAST( 96 AS SIGNED ), - + ( + + 93 ) - - - 21 ) AS col0
----
-186

skipif mysql # not compatible
query I rowsort label-6699
SELECT - 90 - - NULLIF ( + - CAST ( 96 AS INTEGER ), - + ( + + 93 ) - - - 21 ) AS col0
----
-186

onlyif mysql # aggregate syntax: 
query II rowsort label-6700
SELECT + 33, COUNT( * ) + 3 AS col1
----
33
4

skipif mysql # not compatible
query II rowsort label-6700
SELECT + 33, COUNT ( * ) + 3 AS col1
----
33
4

query I rowsort
SELECT - 67 + + + 93 + + 58
----
84

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6704
SELECT - 35 * - 47 + - 16, - COALESCE ( 69, + 9 * - CAST( + ( - - COUNT( * ) ) AS SIGNED ) * - + 57 ) col1
----
1629
-69

skipif mysql # not compatible
query II rowsort label-6704
SELECT - 35 * - 47 + - 16, - COALESCE ( 69, + 9 * - CAST ( + ( - - COUNT ( * ) ) AS INTEGER ) * - + 57 ) col1
----
1629
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6705
SELECT + CASE - ( - - 3 ) WHEN + + COUNT( * ) THEN NULL ELSE + 47 - - MIN( ALL + + 3 ) * - CAST( NULL AS SIGNED ) + + - 44 / + + 63 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6705
SELECT + CASE - ( - - 3 ) WHEN + + COUNT ( * ) THEN NULL ELSE + 47 - - MIN ( ALL + + 3 ) * - CAST ( NULL AS INTEGER ) + + - 44 / + + 63 END AS col1
----
NULL

query I rowsort
SELECT ALL COALESCE ( - ( - 23 ), - ( + - 40 ), - + 72 ) AS col0
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6707
SELECT ALL CAST( NULL AS SIGNED ) col1, 75 + 97 AS col1
----
NULL
172

skipif mysql # not compatible
query II rowsort label-6707
SELECT ALL CAST ( NULL AS INTEGER ) col1, 75 + 97 AS col1
----
NULL
172

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

query I rowsort
SELECT - 53 * + 4 + + 60 AS col1
----
-152

onlyif mysql # aggregate syntax: 
query I rowsort label-6710
SELECT - MIN( - 15 )
----
15

skipif mysql # not compatible
query I rowsort label-6710
SELECT - MIN ( - 15 )
----
15

query I rowsort
SELECT - 12 + + 7
----
-5

query I rowsort
SELECT - 71 * + - 7 AS col2
----
497

query I rowsort
SELECT + 77 + + + 56 + + 65 * - 50 + + 21 AS col0
----
-3096

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

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

query I rowsort
SELECT - 47 * + 65 AS col0
----
-3055

query I rowsort
SELECT ALL 59 + 52
----
111

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6717
SELECT - MIN( ALL CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6717
SELECT - MIN ( ALL CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT + 29 + - - 36
----
65

query I rowsort
SELECT ALL 35 + + - 97
----
-62

query I rowsort
SELECT - 41 * 72 AS col1
----
-2952

query II rowsort
SELECT + 47 * - ( - 34 ) AS col1, - 86 AS col1
----
1598
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-6722
SELECT + 58 + - CASE + - ( + 14 ) WHEN + 41 * + + 22 + - 25 - 71 * - 95 / 88 / 6 THEN NULL WHEN + + ( - 37 ) THEN NULL WHEN + 97 + - 66 / 44 THEN ( - COUNT( * ) ) * - 89 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6722
SELECT + 58 + - CASE + - ( + 14 ) WHEN + 41 * + + 22 + - 25 - 71 * - 95 / 88 / 6 THEN NULL WHEN + + ( - 37 ) THEN NULL WHEN + 97 + - 66 / 44 THEN ( - COUNT ( * ) ) * - 89 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6723
SELECT DISTINCT - ( - - MAX( - 59 ) ) + + 62
----
121

skipif mysql # not compatible
query I rowsort label-6723
SELECT DISTINCT - ( - - MAX ( - 59 ) ) + + 62
----
121

query I rowsort
SELECT ALL + - 30 * - 15
----
450

query I rowsort
SELECT DISTINCT ( + 69 ) + + 0 AS col2
----
69

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6726
SELECT DISTINCT + AVG ( - CAST( + + NULLIF ( CAST( NULL AS SIGNED ), 85 - + 52 * 12 ) AS DECIMAL ) ) * + - CAST( NULL AS DECIMAL ), - NULLIF ( 8, + 31 ) AS col0
----
NULL
-8

skipif mysql # not compatible
query II rowsort label-6726
SELECT DISTINCT + AVG ( - CAST ( + + NULLIF ( CAST ( NULL AS INTEGER ), 85 - + 52 * 12 ) AS REAL ) ) * + - CAST ( NULL AS REAL ), - NULLIF ( 8, + 31 ) AS col0
----
NULL
-8

query I rowsort
SELECT ALL + 68 - - - 18 AS col1
----
50

query I rowsort
SELECT DISTINCT + ( + 60 ) AS col0
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6729
SELECT + CAST( NULL AS SIGNED ) AS col1, 17 + + 27 AS col2
----
NULL
44

skipif mysql # not compatible
query II rowsort label-6729
SELECT + CAST ( NULL AS INTEGER ) AS col1, 17 + + 27 AS col2
----
NULL
44

query I rowsort
SELECT + 18 + + 38 * 88 AS col2
----
3362

onlyif mysql # aggregate syntax: 
query I rowsort label-6731
SELECT + CASE - ( - COUNT( * ) ) WHEN - 32 THEN - 56 WHEN + - COUNT( * ) THEN - 72 + - 67 END * - 9 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6731
SELECT + CASE - ( - COUNT ( * ) ) WHEN - 32 THEN - 56 WHEN + - COUNT ( * ) THEN - 72 + - 67 END * - 9 AS col1
----
NULL

query I rowsort
SELECT + 32 + + 25 * + 8
----
232

query I rowsort
SELECT ( + 60 ) * - 64 - + 22 + - 20 + + + 90 AS col1
----
-3792

query II rowsort
SELECT DISTINCT - 74 * + 79 * - 33 AS col2, + 58 AS col1
----
192918
58

onlyif mysql # DIV for integer division: 
query I rowsort label-6735
SELECT + 59 DIV - 68 + 89 + - - 92
----
181

skipif mysql # not compatible
query I rowsort label-6735
SELECT + 59 / - 68 + 89 + - - 92
----
181

query I rowsort
SELECT ALL - 41 * + 11 AS col2
----
-451

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6737
SELECT + - CAST( NULL AS SIGNED ) * - + 32 * + COUNT( * ) * + 84 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6737
SELECT + - CAST ( NULL AS INTEGER ) * - + 32 * + COUNT ( * ) * + 84 AS col0
----
NULL

query II rowsort
SELECT ALL + - 51 AS col2, - 75
----
-51
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6739
SELECT + 21 + + NULLIF ( - ( - CAST( - 83 AS SIGNED ) ), + CASE - 38 WHEN - - 85 THEN - + COUNT( * ) + - 33 - 17 * + 23 WHEN + 88 THEN NULL END ) + - 31
----
-93

skipif mysql # not compatible
query I rowsort label-6739
SELECT + 21 + + NULLIF ( - ( - CAST ( - 83 AS INTEGER ) ), + CASE - 38 WHEN - - 85 THEN - + COUNT ( * ) + - 33 - 17 * + 23 WHEN + 88 THEN NULL END ) + - 31
----
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-6740
SELECT + - 86 DIV - - 90 + + 98 col1
----
98

skipif mysql # not compatible
query I rowsort label-6740
SELECT + - 86 / - - 90 + + 98 col1
----
98

query I rowsort
SELECT ALL - - 95 col2
----
95

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

skipif mysql # not compatible
query I rowsort label-6742
SELECT 61 * + 59 * - COUNT ( * ) * + COUNT ( * ) AS col2
----
-3599

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6743
SELECT - 71 * + + 90 * - + CASE - ( 49 ) WHEN - + 2 THEN - + CASE COUNT( * ) WHEN + - 25 THEN NULL WHEN ( - SUM( DISTINCT CAST( + - 3 AS SIGNED ) ) ) THEN COALESCE ( - 6, - 90, - SUM( - 27 ) ) WHEN 22 * + COUNT( * ) - 49 THEN - 3 + + COALESCE ( 72, - 42 + 6, COUNT( * ) ) / 10 ELSE NULL END END + + 56 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6743
SELECT - 71 * + + 90 * - + CASE - ( 49 ) WHEN - + 2 THEN - + CASE COUNT ( * ) WHEN + - 25 THEN NULL WHEN ( - SUM ( DISTINCT CAST ( + - 3 AS INTEGER ) ) ) THEN COALESCE ( - 6, - 90, - SUM ( - 27 ) ) WHEN 22 * + COUNT ( * ) - 49 THEN - 3 + + COALESCE ( 72, - 42 + 6, COUNT ( * ) ) / 10 ELSE NULL END END + + 56 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6744
SELECT - 31 / + CAST( NULL AS SIGNED ) / + + ( SUM( ALL + + ( + 14 ) ) ) + + CASE + - 36 WHEN ( + 7 ) + 68 THEN NULL WHEN 25 + + + 79 THEN + 79 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6744
SELECT - 31 / + CAST ( NULL AS INTEGER ) / + + ( SUM ( ALL + + ( + 14 ) ) ) + + CASE + - 36 WHEN ( + 7 ) + 68 THEN NULL WHEN 25 + + + 79 THEN + 79 END
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6745
SELECT 14 DIV - 75 AS col2, CASE + 13 WHEN + 58 THEN NULL ELSE - 73 * + 9 + + - 99 * 60 - - 47 END
----
0
-6550

skipif mysql # not compatible
query II rowsort label-6745
SELECT 14 / - 75 AS col2, CASE + 13 WHEN + 58 THEN NULL ELSE - 73 * + 9 + + - 99 * 60 - - 47 END
----
0
-6550

query I rowsort
SELECT ALL + 52 + - 84 AS col0
----
-32

query I rowsort
SELECT ALL ( - 14 ) + + 7 AS col2
----
-7

query I rowsort
SELECT DISTINCT + 34 + - 49
----
-15

query I rowsort
SELECT ALL - 79 + + - NULLIF ( - - 29, - 16 ) + 36 AS col2
----
-72

query III rowsort
SELECT 49 * + - 1 AS col0, 5 * + 71 * + - 78 + + 58 + - 24 + + 62 + - 96 * ( - 76 ) * + 8 AS col0, + 89
----
-49
30774
89

query I rowsort
SELECT ALL - 16 + 58 + 74
----
116

query I rowsort
SELECT ALL + ( + 91 ) + + + 56
----
147

query I rowsort
SELECT ALL - 17 + - - 27
----
10

query II rowsort
SELECT DISTINCT - 26 * 19 AS col0, 4
----
-494
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6755
SELECT ALL - 17 + - NULLIF ( - - 38, 35 + + COALESCE ( 81, + 59 ) + 53 * + + SUM( ALL + - 63 ) * 60 + - - CASE - 6 WHEN - 88 THEN + 60 * + 69 + + COUNT( * ) WHEN + 24 THEN NULL END * + COUNT( DISTINCT 69 ) ) DIV 33 AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-6755
SELECT ALL - 17 + - NULLIF ( - - 38, 35 + + COALESCE ( 81, + 59 ) + 53 * + + SUM ( ALL + - 63 ) * 60 + - - CASE - 6 WHEN - 88 THEN + 60 * + 69 + + COUNT ( * ) WHEN + 24 THEN NULL END * + COUNT ( DISTINCT 69 ) ) / 33 AS col0
----
-18

query I rowsort
SELECT ALL 10 - + 45 - - 97
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-6757
SELECT 48 * + 64 * COUNT( * ) col2
----
3072

skipif mysql # not compatible
query I rowsort label-6757
SELECT 48 * + 64 * COUNT ( * ) col2
----
3072

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6758
SELECT DISTINCT - - SUM( + 15 ) - - - 78 - - 92 DIV SUM( DISTINCT + 18 ) * 53
----
202

skipif mysql # not compatible
query I rowsort label-6758
SELECT DISTINCT - - SUM ( + 15 ) - - - 78 - - 92 / SUM ( DISTINCT + 18 ) * 53
----
202

onlyif mysql # aggregate syntax: 
query I rowsort label-6759
SELECT ALL - ( + 28 ) - - COUNT( * )
----
-27

skipif mysql # not compatible
query I rowsort label-6759
SELECT ALL - ( + 28 ) - - COUNT ( * )
----
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6760
SELECT 27 DIV COUNT( * ) * + 51 AS col1
----
1377

skipif mysql # not compatible
query I rowsort label-6760
SELECT 27 / COUNT ( * ) * + 51 AS col1
----
1377

onlyif mysql # aggregate syntax: 
query I rowsort label-6761
SELECT + ( COUNT( * ) ) * + ( + MAX( ( - + 51 ) ) ) * ( - + COUNT( * ) ) AS col0
----
51

skipif mysql # not compatible
query I rowsort label-6761
SELECT + ( COUNT ( * ) ) * + ( + MAX ( ( - + 51 ) ) ) * ( - + COUNT ( * ) ) AS col0
----
51

query I rowsort
SELECT ALL - ( + 68 ) * - 4
----
272

query I rowsort
SELECT - NULLIF ( + 55, 95 )
----
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6764
SELECT ALL - 34 * - CAST( + 64 AS SIGNED ) AS col0
----
2176

skipif mysql # not compatible
query I rowsort label-6764
SELECT ALL - 34 * - CAST ( + 64 AS INTEGER ) AS col0
----
2176

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6766
SELECT ALL - - ( - + 59 ), + 80 * - 25 + - 1 + + 90 * - COUNT( * ) / + CAST( NULL AS DECIMAL ) * 50 AS col0
----
-59
NULL

skipif mysql # not compatible
query II rowsort label-6766
SELECT ALL - - ( - + 59 ), + 80 * - 25 + - 1 + + 90 * - COUNT ( * ) / + CAST ( NULL AS REAL ) * 50 AS col0
----
-59
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6767
SELECT ALL + 18 + + + COALESCE ( ( - 68 ), + - 56 * + + 73 + 15 ) AS col1, COUNT( * ) - 64
----
-50
-63

skipif mysql # not compatible
query II rowsort label-6767
SELECT ALL + 18 + + + COALESCE ( ( - 68 ), + - 56 * + + 73 + 15 ) AS col1, COUNT ( * ) - 64
----
-50
-63

query I rowsort
SELECT DISTINCT 11 * - ( + 0 ) col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6769
SELECT COALESCE ( + COUNT( + 97 ), 93 ) + - 77 * 83 * - 62
----
396243

skipif mysql # not compatible
query I rowsort label-6769
SELECT COALESCE ( + COUNT ( + 97 ), 93 ) + - 77 * 83 * - 62
----
396243

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6771
SELECT 30 + + + 48 - + COUNT( * ) * CAST( 28 AS SIGNED ) AS col0
----
50

skipif mysql # not compatible
query I rowsort label-6771
SELECT 30 + + + 48 - + COUNT ( * ) * CAST ( 28 AS INTEGER ) AS col0
----
50

query I rowsort
SELECT ALL 37 + - 72 + 46 AS col0
----
11

query I rowsort
SELECT ALL 19 + - 56 + + 42 AS col1
----
5

query I rowsort
SELECT 48 * 12 * 14 - - 48 AS col1
----
8112

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6775
SELECT - 39 * - 64 + NULLIF ( + - 81, 2 ) + COUNT( * ) DIV 79 * - + 36 AS col0
----
2415

skipif mysql # not compatible
query I rowsort label-6775
SELECT - 39 * - 64 + NULLIF ( + - 81, 2 ) + COUNT ( * ) / 79 * - + 36 AS col0
----
2415

query I rowsort
SELECT ALL 83 + - 65 AS col1
----
18

query I rowsort
SELECT 74 + - - 17 AS col2
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6778
SELECT ALL 59 + - 85 * - + 59 - - CASE MAX( - + 2 ) WHEN - 22 THEN + ( - - 53 ) * - 41 + - 74 + - 20 * COALESCE ( 86, + - 37 - 9 * SUM( DISTINCT 23 * COALESCE ( 51, 99, - 28 ) ) ) + 11 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6778
SELECT ALL 59 + - 85 * - + 59 - - CASE MAX ( - + 2 ) WHEN - 22 THEN + ( - - 53 ) * - 41 + - 74 + - 20 * COALESCE ( 86, + - 37 - 9 * SUM ( DISTINCT 23 * COALESCE ( 51, 99, - 28 ) ) ) + 11 ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6779
SELECT 81 * - COALESCE ( + 30, 38 + + 36, - MIN( - 2 ) + + 39 + + + CAST( NULL AS SIGNED ) DIV + 16 * + 49 * 60 )
----
-2430

skipif mysql # not compatible
query I rowsort label-6779
SELECT 81 * - COALESCE ( + 30, 38 + + 36, - MIN ( - 2 ) + + 39 + + + CAST ( NULL AS INTEGER ) / + 16 * + 49 * 60 )
----
-2430

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6780
SELECT DISTINCT 77 DIV - MAX( - - 33 ) AS col2, 9
----
-2
9

skipif mysql # not compatible
query II rowsort label-6780
SELECT DISTINCT 77 / - MAX ( - - 33 ) AS col2, 9
----
-2
9

query I rowsort
SELECT 55 + 71 * + + 12 AS col1
----
907

onlyif mysql # aggregate syntax: 
query I rowsort label-6782
SELECT ALL + 58 / - - 5 / 94 / - COUNT( * ) * - CASE 60 WHEN 51 THEN + 81 + - 64 WHEN - ( + COUNT( * ) ) THEN NULL WHEN - 98 THEN + 67 END / + 65 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6782
SELECT ALL + 58 / - - 5 / 94 / - COUNT ( * ) * - CASE 60 WHEN 51 THEN + 81 + - 64 WHEN - ( + COUNT ( * ) ) THEN NULL WHEN - 98 THEN + 67 END / + 65 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6783
SELECT ( - 60 ) + + 89 AS col2, + 19 + + - CAST( NULL AS SIGNED )
----
29
NULL

skipif mysql # not compatible
query II rowsort label-6783
SELECT ( - 60 ) + + 89 AS col2, + 19 + + - CAST ( NULL AS INTEGER )
----
29
NULL

query I rowsort
SELECT ALL 23 - - - 61 - + ( - 28 )
----
-10

query I rowsort
SELECT ( - 43 ) * 6 - 10 + - 29 + - 32 * + 51 + - + 68 AS col0
----
-1997

query I rowsort
SELECT 74 + 76 * + 67 col1
----
5166

onlyif mysql # aggregate syntax: 
query I rowsort label-6787
SELECT ALL - 86 - + ( + + MAX( ALL ( - 70 ) ) )
----
-16

skipif mysql # not compatible
query I rowsort label-6787
SELECT ALL - 86 - + ( + + MAX ( ALL ( - 70 ) ) )
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-6788
SELECT DISTINCT MIN( ALL 89 )
----
89

skipif mysql # not compatible
query I rowsort label-6788
SELECT DISTINCT MIN ( ALL 89 )
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6789
SELECT ( + - 96 ) + - 41 AS col0, 33 * - - 21 * - CAST( NULL AS SIGNED ) * - 14 + + 78 AS col2
----
-137
NULL

skipif mysql # not compatible
query II rowsort label-6789
SELECT ( + - 96 ) + - 41 AS col0, 33 * - - 21 * - CAST ( NULL AS INTEGER ) * - 14 + + 78 AS col2
----
-137
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6790
SELECT 63 + - COUNT( * ) + 97 + - 99 + - 76 * + + 6 * 69 - - - 47 * + 71 * - 45 * + ( - 57 ) + ( - - 58 ) + 38 * 92 * + COUNT( * ) * 98 AS col0
----
-8248143

skipif mysql # not compatible
query I rowsort label-6790
SELECT 63 + - COUNT ( * ) + 97 + - 99 + - 76 * + + 6 * 69 - - - 47 * + 71 * - 45 * + ( - 57 ) + ( - - 58 ) + 38 * 92 * + COUNT ( * ) * 98 AS col0
----
-8248143

query I rowsort
SELECT ALL - 40 * + 65
----
-2600

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

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

query II rowsort
SELECT ALL 88 AS col0, 62 AS col1
----
88
62

query I rowsort
SELECT 73 + 38 * 82 - 79
----
3110

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6796
SELECT - + 28 + - 62 * - COUNT( * )
----
34

skipif mysql # not compatible
query I rowsort label-6796
SELECT - + 28 + - 62 * - COUNT ( * )
----
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6797
SELECT DISTINCT - + 83 + + + COUNT( * ) DIV + 28
----
-83

skipif mysql # not compatible
query I rowsort label-6797
SELECT DISTINCT - + 83 + + + COUNT ( * ) / + 28
----
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-6798
SELECT - - 59 DIV 68
----
0

skipif mysql # not compatible
query I rowsort label-6798
SELECT - - 59 / 68
----
0

query I rowsort
SELECT + - 53 + NULLIF ( - - 47, + 32 + + 87 )
----
-6

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

query I rowsort
SELECT ALL + 75 * + + 49 + - - 4 * 35 AS col0
----
3815

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6803
SELECT - 83 DIV - 88 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6803
SELECT - 83 / - 88 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6804
SELECT DISTINCT + 1, 54 DIV - ( 77 ) * - COUNT( * ) AS col1
----
1
0

skipif mysql # not compatible
query II rowsort label-6804
SELECT DISTINCT + 1, 54 / - ( 77 ) * - COUNT ( * ) AS col1
----
1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6805
SELECT ALL 54 * + 62 + - COUNT( * )
----
3347

skipif mysql # not compatible
query I rowsort label-6805
SELECT ALL 54 * + 62 + - COUNT ( * )
----
3347

query I rowsort
SELECT DISTINCT - 69 * 64 + + + 15
----
-4401

query I rowsort
SELECT ALL 91 * - 68 + + COALESCE ( + 84, COALESCE ( + 31, - 88 ) + - 74 ) AS col1
----
-6104

query II rowsort
SELECT + 44, 68 AS col0
----
44
68

query I rowsort
SELECT COALESCE ( - 92, 75, 95, + - 40 ) AS col1
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-6810
SELECT COALESCE ( + 75, COUNT( * ) ) AS col1
----
75

skipif mysql # not compatible
query I rowsort label-6810
SELECT COALESCE ( + 75, COUNT ( * ) ) AS col1
----
75

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

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

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

skipif mysql # not compatible
query I rowsort label-6812
SELECT + COUNT ( * ) * - 73 / - 7 AS col2
----
10

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

skipif mysql # not compatible
query II rowsort label-6813
SELECT + COUNT ( * ) AS col0, ( + 6 ) + + 57 / + COUNT ( * ) col1
----
1
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6814
SELECT ALL 53 * + MAX( DISTINCT 3 ) - - 2 DIV + 3
----
159

skipif mysql # not compatible
query I rowsort label-6814
SELECT ALL 53 * + MAX ( DISTINCT 3 ) - - 2 / + 3
----
159

query I rowsort
SELECT + NULLIF ( + 66, - 14 ) * 47
----
3102

query I rowsort
SELECT ALL 17 * + CASE 22 WHEN - 69 * + + 44 THEN NULL ELSE - 72 + + 26 END AS col2
----
-782

query I rowsort
SELECT DISTINCT 35 * - + ( + 53 )
----
-1855

onlyif mysql # aggregate syntax: 
query I rowsort label-6818
SELECT + CASE - ( - 57 ) WHEN - - COUNT( * ) THEN + SUM( + ( - 57 ) ) + - 65 END + 69
----
NULL

skipif mysql # not compatible
query I rowsort label-6818
SELECT + CASE - ( - 57 ) WHEN - - COUNT ( * ) THEN + SUM ( + ( - 57 ) ) + - 65 END + 69
----
NULL

query I rowsort
SELECT + 71 + 14
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-6820
SELECT + COUNT( * ) * + ( + 91 ) + + COUNT( * ) AS col1
----
92

skipif mysql # not compatible
query I rowsort label-6820
SELECT + COUNT ( * ) * + ( + 91 ) + + COUNT ( * ) AS col1
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-6821
SELECT ALL ( - 75 ) DIV + - 31 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-6821
SELECT ALL ( - 75 ) / + - 31 AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6822
SELECT + 28 - + COUNT( * )
----
27

skipif mysql # not compatible
query I rowsort label-6822
SELECT + 28 - + COUNT ( * )
----
27

onlyif mysql # aggregate syntax: 
query II rowsort label-6823
SELECT + COUNT( * ) + + 70 + + - NULLIF ( 93, + 95 + + 91 ), 25 AS col1
----
-22
25

skipif mysql # not compatible
query II rowsort label-6823
SELECT + COUNT ( * ) + + 70 + + - NULLIF ( 93, + 95 + + 91 ), 25 AS col1
----
-22
25

onlyif mysql # DIV for integer division: 
query I rowsort label-6824
SELECT DISTINCT 16 DIV - - 49
----
0

skipif mysql # not compatible
query I rowsort label-6824
SELECT DISTINCT 16 / - - 49
----
0

query I rowsort
SELECT ALL - 18 + - 38
----
-56

query I rowsort
SELECT ALL + - 48 + 1 AS col1
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6827
SELECT ( + CASE + 48 WHEN - CAST( 37 AS SIGNED ) THEN NULL WHEN 74 THEN NULL ELSE 98 * + 28 END ) AS col2
----
2744

skipif mysql # not compatible
query I rowsort label-6827
SELECT ( + CASE + 48 WHEN - CAST ( 37 AS INTEGER ) THEN NULL WHEN 74 THEN NULL ELSE 98 * + 28 END ) AS col2
----
2744

query I rowsort
SELECT + - 62 * + 33 AS col0
----
-2046

query I rowsort
SELECT - 87 * + + 62 col2
----
-5394

query I rowsort
SELECT DISTINCT 57 + + CASE - 82 WHEN 82 THEN NULL ELSE 21 END AS col1
----
78

query II rowsort
SELECT - + 13, + 14 col2
----
-13
14

query II rowsort
SELECT - - 57, - 71 col2
----
57
-71

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6835
SELECT ALL + COUNT( * ) + - 35 AS col1, - 61
----
-34
-61

skipif mysql # not compatible
query II rowsort label-6835
SELECT ALL + COUNT ( * ) + - 35 AS col1, - 61
----
-34
-61

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

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

query I rowsort
SELECT DISTINCT - 11 + + - 87 AS col2
----
-98

onlyif mysql # DIV for integer division: 
query II rowsort label-6838
SELECT DISTINCT + 10, 85 * + 69 - 69 + - ( - - 56 ) DIV 75 + + 52 DIV + - COALESCE ( 21, - 24, + + 76 ) AS col2
----
10
5794

skipif mysql # not compatible
query II rowsort label-6838
SELECT DISTINCT + 10, 85 * + 69 - 69 + - ( - - 56 ) / 75 + + 52 / + - COALESCE ( 21, - 24, + + 76 ) AS col2
----
10
5794

onlyif mysql # aggregate syntax: 
query I rowsort label-6839
SELECT - SUM( ALL + 48 ) * - 47 + + - COALESCE ( + - 82, + 59 + + 46 ) + 99 - + 40 * 24 * + COUNT( * ) * + ( COUNT( * ) ) + - - 30 + 22 * + 43 + 69 AS col1
----
2522

skipif mysql # not compatible
query I rowsort label-6839
SELECT - SUM ( ALL + 48 ) * - 47 + + - COALESCE ( + - 82, + 59 + + 46 ) + 99 - + 40 * 24 * + COUNT ( * ) * + ( COUNT ( * ) ) + - - 30 + 22 * + 43 + 69 AS col1
----
2522

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6840
SELECT ALL CAST( NULL AS SIGNED ) / + 40 - - 12
----
NULL

skipif mysql # not compatible
query I rowsort label-6840
SELECT ALL CAST ( NULL AS INTEGER ) / + 40 - - 12
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6841
SELECT - NULLIF ( - 22, + COUNT( * ) ) * + + 53 AS col2
----
1166

skipif mysql # not compatible
query I rowsort label-6841
SELECT - NULLIF ( - 22, + COUNT ( * ) ) * + + 53 AS col2
----
1166

onlyif mysql # aggregate syntax: 
query I rowsort label-6842
SELECT + CASE + MIN( ALL + + 93 ) WHEN - + 1 THEN NULL WHEN - COUNT( * ) - + 52 + 70 + + 71 * 96 + - 99 THEN + 91 ELSE 3 * - - 29 END AS col0
----
87

skipif mysql # not compatible
query I rowsort label-6842
SELECT + CASE + MIN ( ALL + + 93 ) WHEN - + 1 THEN NULL WHEN - COUNT ( * ) - + 52 + 70 + + 71 * 96 + - 99 THEN + 91 ELSE 3 * - - 29 END AS col0
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6843
SELECT - NULLIF ( - 9, COALESCE ( + + 94, + COALESCE ( + 52, + - 62, 0 * 36 ) + 10 ) * + CAST( NULL AS SIGNED ) * 12 - 72 ) + + 22 + + + COALESCE ( - - COUNT( * ), 66 * 44 ) + 49
----
81

skipif mysql # not compatible
query I rowsort label-6843
SELECT - NULLIF ( - 9, COALESCE ( + + 94, + COALESCE ( + 52, + - 62, 0 * 36 ) + 10 ) * + CAST ( NULL AS INTEGER ) * 12 - 72 ) + + 22 + + + COALESCE ( - - COUNT ( * ), 66 * 44 ) + 49
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6844
SELECT ALL - NULLIF ( + 55, + - COUNT( * ) - + CAST( + 90 AS SIGNED ) ) DIV 19 - CASE + + COUNT( * ) WHEN + 12 DIV - 81 * + CAST( NULL AS SIGNED ) THEN NULL WHEN + COUNT( * ) + COUNT( * ) + - + 86 THEN - + 28 ELSE + COUNT( * ) END
----
-3

skipif mysql # not compatible
query I rowsort label-6844
SELECT ALL - NULLIF ( + 55, + - COUNT ( * ) - + CAST ( + 90 AS INTEGER ) ) / 19 - CASE + + COUNT ( * ) WHEN + 12 / - 81 * + CAST ( NULL AS INTEGER ) THEN NULL WHEN + COUNT ( * ) + COUNT ( * ) + - + 86 THEN - + 28 ELSE + COUNT ( * ) END
----
-3

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6846
SELECT DISTINCT + 13 * + - 31, - 27 DIV - COUNT( * ) AS col1
----
-403
27

skipif mysql # not compatible
query II rowsort label-6846
SELECT DISTINCT + 13 * + - 31, - 27 / - COUNT ( * ) AS col1
----
-403
27

query I rowsort
SELECT ALL - 58 * - + 82
----
4756

query II rowsort
SELECT ALL + 95 * + + 34 col2, - 74 AS col2
----
3230
-74

query I rowsort
SELECT + 64 + 60 col0
----
124

query II rowsort
SELECT DISTINCT + ( - + 9 ) AS col0, + 10 AS col1
----
-9
10

onlyif mysql # DIV for integer division: 
query I rowsort label-6851
SELECT - NULLIF ( 71, + 34 * NULLIF ( - + 79, - 4 ) * + + 6 ) * 65 DIV + 33 - - 41 * + COALESCE ( 99, - - 40 - - 19 )
----
3920

skipif mysql # not compatible
query I rowsort label-6851
SELECT - NULLIF ( 71, + 34 * NULLIF ( - + 79, - 4 ) * + + 6 ) * 65 / + 33 - - 41 * + COALESCE ( 99, - - 40 - - 19 )
----
3920

query I rowsort
SELECT + 41 + - 41 col2
----
0

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

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

query I rowsort
SELECT + 58 * - 9
----
-522

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6856
SELECT - NULLIF ( + 81, + - COALESCE ( COUNT( * ), + + COUNT( * ) * COALESCE ( - - 72, - 75 * + - 50, - 27 - - 44 ) + + + 21 ) + + CASE - CAST( NULL AS DECIMAL ) WHEN 59 THEN NULL WHEN - + 82 THEN + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) END ) + 55 * 90
----
4869

skipif mysql # not compatible
query I rowsort label-6856
SELECT - NULLIF ( + 81, + - COALESCE ( COUNT ( * ), + + COUNT ( * ) * COALESCE ( - - 72, - 75 * + - 50, - 27 - - 44 ) + + + 21 ) + + CASE - CAST ( NULL AS REAL ) WHEN 59 THEN NULL WHEN - + 82 THEN + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) END ) + 55 * 90
----
4869

query I rowsort
SELECT + 26 + - 97 + 14
----
-57

query I rowsort
SELECT ALL - 58 * - 58 - - - 78
----
3286

onlyif mysql # aggregate syntax: 
query II rowsort label-6859
SELECT DISTINCT 4 * + NULLIF ( COUNT( * ), + COUNT( * ) ) * MAX( 67 ) + - 50, ( + 65 ) col0
----
NULL
65

skipif mysql # not compatible
query II rowsort label-6859
SELECT DISTINCT 4 * + NULLIF ( COUNT ( * ), + COUNT ( * ) ) * MAX ( 67 ) + - 50, ( + 65 ) col0
----
NULL
65

query I rowsort
SELECT DISTINCT 88 + - 25 + + 57 * + 18
----
1089

query I rowsort
SELECT - + COALESCE ( + 59, + 27 )
----
-59

query I rowsort
SELECT ALL COALESCE ( - - 31, + 56 * 56 + - + 0 ) * + 85 col2
----
2635

query I rowsort
SELECT - ( - - 35 ) * - 78 + 64 AS col0
----
2794

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6864
SELECT - 85 * 33 * - - COUNT( * ) * + COALESCE ( + 83, - ( + - 55 ) + + CAST( NULL AS SIGNED ) + - ( 24 ) + + 67 ) col1
----
-232815

skipif mysql # not compatible
query I rowsort label-6864
SELECT - 85 * 33 * - - COUNT ( * ) * + COALESCE ( + 83, - ( + - 55 ) + + CAST ( NULL AS INTEGER ) + - ( 24 ) + + 67 ) col1
----
-232815

query I rowsort
SELECT ALL + COALESCE ( COALESCE ( - 96, + ( + 26 ) ), 45 )
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-6866
SELECT + 38 + MIN( + 39 ) AS col2
----
77

skipif mysql # not compatible
query I rowsort label-6866
SELECT + 38 + MIN ( + 39 ) AS col2
----
77

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

skipif mysql # not compatible
query I rowsort label-6867
SELECT DISTINCT - COUNT ( * ) / - 30
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6868
SELECT + 51 + 52, - CASE - CAST( - + 16 AS SIGNED ) WHEN - ( 71 ) THEN - - 40 END + - COUNT( * ) AS col1
----
103
NULL

skipif mysql # not compatible
query II rowsort label-6868
SELECT + 51 + 52, - CASE - CAST ( - + 16 AS INTEGER ) WHEN - ( 71 ) THEN - - 40 END + - COUNT ( * ) AS col1
----
103
NULL

query I rowsort
SELECT ALL + 81 * + 82 * + - 50 * - - 47 * - 35 AS col2
----
546304500

onlyif mysql # aggregate syntax: 
query II rowsort label-6870
SELECT ALL - 12 + + + 55 AS col1, + COUNT( + 40 ) AS col2
----
43
1

skipif mysql # not compatible
query II rowsort label-6870
SELECT ALL - 12 + + + 55 AS col1, + COUNT ( + 40 ) AS col2
----
43
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6871
SELECT - + CASE - 33 WHEN 72 * 34 THEN + ( - - 74 ) WHEN + 45 THEN - - ( 6 ) + + + 10 * 2 ELSE CASE + + 9 WHEN - 62 THEN + 26 + - COUNT( * ) END + + 66 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6871
SELECT - + CASE - 33 WHEN 72 * 34 THEN + ( - - 74 ) WHEN + 45 THEN - - ( 6 ) + + + 10 * 2 ELSE CASE + + 9 WHEN - 62 THEN + 26 + - COUNT ( * ) END + + 66 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6872
SELECT ALL + + 41 * - + 11 * - + CAST( 60 AS SIGNED ) + + 15
----
27075

skipif mysql # not compatible
query I rowsort label-6872
SELECT ALL + + 41 * - + 11 * - + CAST ( 60 AS INTEGER ) + + 15
----
27075

query I rowsort
SELECT DISTINCT ( + 38 ) - - 13 AS col2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6874
SELECT 68 * + 84 * SUM( ALL ( 58 ) ) * - 78 * ( + COUNT( * ) )
----
-25841088

skipif mysql # not compatible
query I rowsort label-6874
SELECT 68 * + 84 * SUM ( ALL ( 58 ) ) * - 78 * ( + COUNT ( * ) )
----
-25841088

onlyif mysql # aggregate syntax: 
query I rowsort label-6875
SELECT ALL 43 * - 24 * + + CASE 6 WHEN - 29 - 87 THEN - 34 WHEN + + 34 * + - ( + 16 ) + - 57 / - ( + 74 ) + 54 + - - MIN( + 73 ) THEN + 4 / 46 + 43 + + 46 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6875
SELECT ALL 43 * - 24 * + + CASE 6 WHEN - 29 - 87 THEN - 34 WHEN + + 34 * + - ( + 16 ) + - 57 / - ( + 74 ) + 54 + - - MIN ( + 73 ) THEN + 4 / 46 + 43 + + 46 END AS col0
----
NULL

query I rowsort
SELECT 74 + - 74
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6878
SELECT 62 * + 59 + - 89 + - - 39 * - CAST( 18 AS SIGNED ) + + 53
----
2920

skipif mysql # not compatible
query I rowsort label-6878
SELECT 62 * + 59 + - 89 + - - 39 * - CAST ( 18 AS INTEGER ) + + 53
----
2920

onlyif mysql # aggregate syntax: 
query II rowsort label-6879
SELECT DISTINCT - COALESCE ( + 62, - 65 ) AS col2, 4 + + - COALESCE ( + 78, + 44 * - COUNT( * ) ) AS col1
----
-62
-74

skipif mysql # not compatible
query II rowsort label-6879
SELECT DISTINCT - COALESCE ( + 62, - 65 ) AS col2, 4 + + - COALESCE ( + 78, + 44 * - COUNT ( * ) ) AS col1
----
-62
-74

query I rowsort
SELECT ALL + 53 - - 73 AS col0
----
126

onlyif mysql # aggregate syntax: 
query II rowsort label-6881
SELECT 7 col1, - 62 * NULLIF ( 24, 94 * ( - - ( 31 ) ) * - 41 ) * + - 53 + - 60 - CASE COALESCE ( - 63, 94 / + - SUM( 26 ) * + 15 * + 99 + 37 + 78 ) WHEN + 8 THEN 5 * + 2 WHEN + 21 THEN 21 END / CASE COUNT( * ) WHEN COUNT( * ) THEN ( COUNT( * ) ) + + 33 END
----
7
NULL

skipif mysql # not compatible
query II rowsort label-6881
SELECT 7 col1, - 62 * NULLIF ( 24, 94 * ( - - ( 31 ) ) * - 41 ) * + - 53 + - 60 - CASE COALESCE ( - 63, 94 / + - SUM ( 26 ) * + 15 * + 99 + 37 + 78 ) WHEN + 8 THEN 5 * + 2 WHEN + 21 THEN 21 END / CASE COUNT ( * ) WHEN COUNT ( * ) THEN ( COUNT ( * ) ) + + 33 END
----
7
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6882
SELECT ALL - COUNT( * ) AS col2, 83 - + 61
----
-1
22

skipif mysql # not compatible
query II rowsort label-6882
SELECT ALL - COUNT ( * ) AS col2, 83 - + 61
----
-1
22

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6883
SELECT + 61 AS col0, 46 * + 56 + - 9 * 2 + - + CAST( NULL AS SIGNED )
----
61
NULL

skipif mysql # not compatible
query II rowsort label-6883
SELECT + 61 AS col0, 46 * + 56 + - 9 * 2 + - + CAST ( NULL AS INTEGER )
----
61
NULL

query I rowsort
SELECT 73 * + 69
----
5037

onlyif mysql # aggregate syntax: 
query I rowsort label-6885
SELECT ALL - 27 * + + COUNT( * ) * + 72
----
-1944

skipif mysql # not compatible
query I rowsort label-6885
SELECT ALL - 27 * + + COUNT ( * ) * + 72
----
-1944

onlyif mysql # aggregate syntax: 
query I rowsort label-6886
SELECT 80 - - MIN( 71 ) + - - 36 * - SUM( + 73 ) + 41 + + 15 * - 62 AS col1
----
-3366

skipif mysql # not compatible
query I rowsort label-6886
SELECT 80 - - MIN ( 71 ) + - - 36 * - SUM ( + 73 ) + 41 + + 15 * - 62 AS col1
----
-3366

query I rowsort
SELECT 83 * + 70
----
5810

query II rowsort
SELECT 45 AS col0, - 70 * + 12 AS col1
----
45
-840

onlyif mysql # aggregate syntax: 
query I rowsort label-6889
SELECT ALL + 64 + SUM( ALL + 66 )
----
130

skipif mysql # not compatible
query I rowsort label-6889
SELECT ALL + 64 + SUM ( ALL + 66 )
----
130

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6890
SELECT ALL - - CAST( - MIN( - - 38 ) AS SIGNED ) col2, - 20 col0
----
-38
-20

skipif mysql # not compatible
query II rowsort label-6890
SELECT ALL - - CAST ( - MIN ( - - 38 ) AS INTEGER ) col2, - 20 col0
----
-38
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-6891
SELECT DISTINCT + NULLIF ( 67, + - 18 * + 56 ) + COUNT( * ) * - - COUNT( * ), - 51 * + COUNT( * ) - 13 AS col0
----
68
-64

skipif mysql # not compatible
query II rowsort label-6891
SELECT DISTINCT + NULLIF ( 67, + - 18 * + 56 ) + COUNT ( * ) * - - COUNT ( * ), - 51 * + COUNT ( * ) - 13 AS col0
----
68
-64

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

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

query II rowsort
SELECT ALL - - 16, + 30 AS col0
----
16
30

onlyif mysql # aggregate syntax: 
query I rowsort label-6894
SELECT - MIN( - 15 ) * + 67 AS col2
----
1005

skipif mysql # not compatible
query I rowsort label-6894
SELECT - MIN ( - 15 ) * + 67 AS col2
----
1005

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

query I rowsort
SELECT DISTINCT + - 76 + + 41
----
-35

query I rowsort
SELECT ALL - 77 + 42
----
-35

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6899
SELECT ALL + NULLIF ( ( 65 ), + 9 + - COUNT( * ) + - 3 * + 44 ) + + 45 AS col0, - 51 * 20 * COUNT( 78 ) + - 38 * - 95 + - 52 * - CASE - - 77 WHEN + 92 * - 22 THEN COUNT( * ) * + 89 WHEN - 1 THEN 55 WHEN + COUNT( * ) THEN NULL ELSE NULL END
----
110
NULL

skipif mysql # not compatible
query II rowsort label-6899
SELECT ALL + NULLIF ( ( 65 ), + 9 + - COUNT ( * ) + - 3 * + 44 ) + + 45 AS col0, - 51 * 20 * COUNT ( 78 ) + - 38 * - 95 + - 52 * - CASE - - 77 WHEN + 92 * - 22 THEN COUNT ( * ) * + 89 WHEN - 1 THEN 55 WHEN + COUNT ( * ) THEN NULL ELSE NULL END
----
110
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6900
SELECT + COUNT( * ) + 96 - 23 DIV + 3 AS col0
----
90

skipif mysql # not compatible
query I rowsort label-6900
SELECT + COUNT ( * ) + 96 - 23 / + 3 AS col0
----
90

query I rowsort
SELECT ALL + 85 * 62
----
5270

onlyif mysql # DIV for integer division: 
query I rowsort label-6902
SELECT DISTINCT - 74 + - - 19 DIV - ( 67 ) AS col0
----
-74

skipif mysql # not compatible
query I rowsort label-6902
SELECT DISTINCT - 74 + - - 19 / - ( 67 ) AS col0
----
-74

onlyif mysql # aggregate syntax: 
query II rowsort label-6903
SELECT ALL COUNT( * ) AS col0, COUNT( * ) * - 73 + - - 97
----
1
24

skipif mysql # not compatible
query II rowsort label-6903
SELECT ALL COUNT ( * ) AS col0, COUNT ( * ) * - 73 + - - 97
----
1
24

onlyif mysql # aggregate syntax: 
query I rowsort label-6904
SELECT 65 * - NULLIF ( - SUM( ALL CASE + - 30 WHEN - 14 THEN - 91 ELSE NULL END ), COUNT( * ) ) * + 97 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6904
SELECT 65 * - NULLIF ( - SUM ( ALL CASE + - 30 WHEN - 14 THEN - 91 ELSE NULL END ), COUNT ( * ) ) * + 97 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6905
SELECT NULLIF ( COALESCE ( CAST( - ( + + MAX( ALL + 52 ) ) AS SIGNED ), - 11 + + + NULLIF ( + + 25, 94 ) ), + 90 ) col0
----
-52

skipif mysql # not compatible
query I rowsort label-6905
SELECT NULLIF ( COALESCE ( CAST ( - ( + + MAX ( ALL + 52 ) ) AS INTEGER ), - 11 + + + NULLIF ( + + 25, 94 ) ), + 90 ) col0
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6906
SELECT 68 + 27 + - 19 AS col0, + CAST( + 97 AS SIGNED ) + - 44 + + ( + + 71 ) + - + 21 AS col0
----
76
103

skipif mysql # not compatible
query II rowsort label-6906
SELECT 68 + 27 + - 19 AS col0, + CAST ( + 97 AS INTEGER ) + - 44 + + ( + + 71 ) + - + 21 AS col0
----
76
103

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6908
SELECT 58 - - ( 99 ) DIV - 41
----
56

skipif mysql # not compatible
query I rowsort label-6908
SELECT 58 - - ( 99 ) / - 41
----
56

query I rowsort
SELECT 39 * 4
----
156

query I rowsort
SELECT 58 + - - 33
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-6911
SELECT ALL 13 DIV 20 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6911
SELECT ALL 13 / 20 AS col1
----
0

query I rowsort
SELECT 64 * 46 * - + 2 * + + 74 * - 66
----
28756992

onlyif mysql # aggregate syntax: 
query I rowsort label-6913
SELECT - SUM( ALL + 53 ) col1
----
-53

skipif mysql # not compatible
query I rowsort label-6913
SELECT - SUM ( ALL + 53 ) col1
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6914
SELECT DISTINCT 60 DIV 6 * COUNT( * ) DIV + + CAST( - 96 AS SIGNED ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6914
SELECT DISTINCT 60 / 6 * COUNT ( * ) / + + CAST ( - 96 AS INTEGER ) AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6915
SELECT SUM( ALL + 51 ) DIV + 70 col0
----
0

skipif mysql # not compatible
query I rowsort label-6915
SELECT SUM ( ALL + 51 ) / + 70 col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6916
SELECT + CAST( NULL AS SIGNED ) * 68 / - - 17 * 35 + + 28
----
NULL

skipif mysql # not compatible
query I rowsort label-6916
SELECT + CAST ( NULL AS INTEGER ) * 68 / - - 17 * 35 + + 28
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6917
SELECT CASE WHEN NOT NULL IS NULL THEN 93 WHEN NOT - 85 * + - 15 IS NOT NULL THEN - COUNT( * ) END - - + 87 + 62 * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6917
SELECT CASE WHEN NOT NULL IS NULL THEN 93 WHEN NOT - 85 * + - 15 IS NOT NULL THEN - COUNT ( * ) END - - + 87 + 62 * + COUNT ( * )
----
NULL

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

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

query I rowsort
SELECT 18 * 10 AS col2
----
180

query I rowsort
SELECT 89 + + + 0 col0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-6921
SELECT ALL + ( 71 ) * - COUNT( * ) * 28 * 82 * + + SUM( 77 ) + - - 23 AS col2
----
-12552209

skipif mysql # not compatible
query I rowsort label-6921
SELECT ALL + ( 71 ) * - COUNT ( * ) * 28 * 82 * + + SUM ( 77 ) + - - 23 AS col2
----
-12552209

query I rowsort
SELECT + 2 * + 52 + - 30
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-6923
SELECT ALL 15 * MIN( - 88 ) + 75
----
-1245

skipif mysql # not compatible
query I rowsort label-6923
SELECT ALL 15 * MIN ( - 88 ) + 75
----
-1245

onlyif mysql # aggregate syntax: 
query I rowsort label-6924
SELECT SUM( 50 )
----
50

skipif mysql # not compatible
query I rowsort label-6924
SELECT SUM ( 50 )
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-6925
SELECT ALL + 66 * + 33 + + - COUNT( * ) * - 19 * - 92 * 82
----
-141158

skipif mysql # not compatible
query I rowsort label-6925
SELECT ALL + 66 * + 33 + + - COUNT ( * ) * - 19 * - 92 * 82
----
-141158

onlyif mysql # DIV for integer division: 
query I rowsort label-6926
SELECT - - 86 + 35 DIV - - 46
----
86

skipif mysql # not compatible
query I rowsort label-6926
SELECT - - 86 + 35 / - - 46
----
86

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6927
SELECT ALL + - 74 + - COALESCE ( CAST( - 21 AS SIGNED ), + + 43 * - 61 DIV + 78 )
----
-53

skipif mysql # not compatible
query I rowsort label-6927
SELECT ALL + - 74 + - COALESCE ( CAST ( - 21 AS INTEGER ), + + 43 * - 61 / + 78 )
----
-53

query I rowsort
SELECT DISTINCT - - 12 * + + 2 AS col2
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-6929
SELECT ALL - 36 DIV + 90 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6929
SELECT ALL - 36 / + 90 AS col0
----
0

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

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

query I rowsort
SELECT - COALESCE ( - 11, 28, - - 0 ) * + + 69 col2
----
759

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6933
SELECT ALL + + CASE + - COUNT( * ) WHEN - - COUNT( * ) THEN NULL ELSE + - ( - - 60 ) DIV + - 2 END - - 63 * COUNT( * ) + 4 AS col1, - CAST( NULL AS SIGNED )
----
97
NULL

skipif mysql # not compatible
query II rowsort label-6933
SELECT ALL + + CASE + - COUNT ( * ) WHEN - - COUNT ( * ) THEN NULL ELSE + - ( - - 60 ) / + - 2 END - - 63 * COUNT ( * ) + 4 AS col1, - CAST ( NULL AS INTEGER )
----
97
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6934
SELECT - 47 * + + ( 28 ) + + 45 / 32 * + 6 + + - MIN( + CAST( NULL AS SIGNED ) ) + 45 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6934
SELECT - 47 * + + ( 28 ) + + 45 / 32 * + 6 + + - MIN ( + CAST ( NULL AS INTEGER ) ) + 45 col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6935
SELECT - SUM( ALL - + 39 ) * + + 99 * CAST( + 55 AS SIGNED ) + - 10
----
212345

skipif mysql # not compatible
query I rowsort label-6935
SELECT - SUM ( ALL - + 39 ) * + + 99 * CAST ( + 55 AS INTEGER ) + - 10
----
212345

onlyif mysql # aggregate syntax: 
query I rowsort label-6936
SELECT - - COALESCE ( + COUNT( * ), - 94 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-6936
SELECT - - COALESCE ( + COUNT ( * ), - 94 ) col1
----
1

query I rowsort
SELECT - + 10 + + 26 AS col2
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6938
SELECT - CAST( - - 14 AS SIGNED )
----
-14

skipif mysql # not compatible
query I rowsort label-6938
SELECT - CAST ( - - 14 AS INTEGER )
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6939
SELECT ALL NULLIF ( + + CAST( - 37 AS SIGNED ), - 5 ) AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-6939
SELECT ALL NULLIF ( + + CAST ( - 37 AS INTEGER ), - 5 ) AS col2
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6940
SELECT + 31 * - + COALESCE ( - 64, 58 * COALESCE ( - - 92, 6, + CAST( NULL AS SIGNED ) ) + 95 + + + MAX( DISTINCT - 15 ) * - 9 ) AS col0
----
1984

skipif mysql # not compatible
query I rowsort label-6940
SELECT + 31 * - + COALESCE ( - 64, 58 * COALESCE ( - - 92, 6, + CAST ( NULL AS INTEGER ) ) + 95 + + + MAX ( DISTINCT - 15 ) * - 9 ) AS col0
----
1984

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6942
SELECT 33 AS col2, MIN( + 67 ) AS col0
----
33
67

skipif mysql # not compatible
query II rowsort label-6942
SELECT 33 AS col2, MIN ( + 67 ) AS col0
----
33
67

query I rowsort
SELECT - COALESCE ( + - ( + 39 ), - 23 * - - 81 + + 31 ) + - - ( - 92 ) col2
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-6944
SELECT - 95 * - 90 * + COALESCE ( + 80, + MAX( + 65 ) )
----
684000

skipif mysql # not compatible
query I rowsort label-6944
SELECT - 95 * - 90 * + COALESCE ( + 80, + MAX ( + 65 ) )
----
684000

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6947
SELECT + CAST( + 17 AS SIGNED ) + 72
----
89

skipif mysql # not compatible
query I rowsort label-6947
SELECT + CAST ( + 17 AS INTEGER ) + 72
----
89

query I rowsort
SELECT + 41 + + 49 AS col2
----
90

query I rowsort
SELECT ALL 47 + + - 21 AS col2
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-6950
SELECT DISTINCT 74 DIV - 1 + 0 AS col0
----
-74

skipif mysql # not compatible
query I rowsort label-6950
SELECT DISTINCT 74 / - 1 + 0 AS col0
----
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6951
SELECT DISTINCT ( - CAST( NULL AS SIGNED ) ) / + 11 + + 82 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6951
SELECT DISTINCT ( - CAST ( NULL AS INTEGER ) ) / + 11 + + 82 AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-6952
SELECT DISTINCT COUNT ( * ) / - - 22
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6953
SELECT ( MIN( ALL + 91 ) )
----
91

skipif mysql # not compatible
query I rowsort label-6953
SELECT ( MIN ( ALL + 91 ) )
----
91

query I rowsort
SELECT ALL 42 / + + CASE 27 WHEN - - 37 + 54 + + 43 * + 71 THEN - - 36 END + + + 28 + + 34 / + 5 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 35 * + 75 * - 10 + + 26 AS col1
----
26276

onlyif mysql # aggregate syntax: 
query I rowsort label-6956
SELECT ALL + SUM( - + 76 ) * - + 1 + - 62 AS col1
----
14

skipif mysql # not compatible
query I rowsort label-6956
SELECT ALL + SUM ( - + 76 ) * - + 1 + - 62 AS col1
----
14

query II rowsort
SELECT ALL + 53 AS col2, CASE + - 60 WHEN + + 94 THEN + - 90 * 24 + - 3 END + + 42
----
53
NULL

query I rowsort
SELECT - - 96 * - ( - 98 )
----
9408

query I rowsort
SELECT + - 90 * + 40 AS col2
----
-3600

onlyif mysql # aggregate syntax: 
query II rowsort label-6960
SELECT - 52 AS col1, + COALESCE ( + + COUNT( * ), + 99 ) AS col1
----
-52
1

skipif mysql # not compatible
query II rowsort label-6960
SELECT - 52 AS col1, + COALESCE ( + + COUNT ( * ), + 99 ) AS col1
----
-52
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6961
SELECT + - NULLIF ( - 31, 38 - - - 97 + - + 88 ) AS col1, - 40 * + + 70 * - - COUNT( * )
----
31
-2800

skipif mysql # not compatible
query II rowsort label-6961
SELECT + - NULLIF ( - 31, 38 - - - 97 + - + 88 ) AS col1, - 40 * + + 70 * - - COUNT ( * )
----
31
-2800

query I rowsort
SELECT ALL + - 44 * - 70 + - 24
----
3056

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6964
SELECT ALL - 76 * 57 * + - 29 - + 13 + 16 + - 90 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6964
SELECT ALL - 76 * 57 * + - 29 - + 13 + 16 + - 90 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT + 82 - 59 AS col2
----
23

query I rowsort
SELECT DISTINCT 21 * + 41
----
861

onlyif mysql # aggregate syntax: 
query I rowsort label-6967
SELECT DISTINCT + 7 * + + MIN( - 25 ) * + 65 AS col0
----
-11375

skipif mysql # not compatible
query I rowsort label-6967
SELECT DISTINCT + 7 * + + MIN ( - 25 ) * + 65 AS col0
----
-11375

onlyif mysql # DIV for integer division: 
query II rowsort label-6968
SELECT ALL + - 39 AS col1, 4 DIV - 57 * + - 94 AS col1
----
-39
0

skipif mysql # not compatible
query II rowsort label-6968
SELECT ALL + - 39 AS col1, 4 / - 57 * + - 94 AS col1
----
-39
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6969
SELECT DISTINCT + MIN( NULLIF ( - 66, 37 ) )
----
-66

skipif mysql # not compatible
query I rowsort label-6969
SELECT DISTINCT + MIN ( NULLIF ( - 66, 37 ) )
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6970
SELECT CASE + - 45 WHEN + 43 * - 17 THEN + + COUNT( ALL + + 23 ) + - - CAST( AVG ( ALL 17 ) AS SIGNED ) + - 0 / + + COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6970
SELECT CASE + - 45 WHEN + 43 * - 17 THEN + + COUNT ( ALL + + 23 ) + - - CAST ( AVG ( ALL 17 ) AS INTEGER ) + - 0 / + + COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6971
SELECT - 59 * - - 10 * + CAST( + ( - + 9 ) AS SIGNED ) + ( + 32 ) - + + 32 DIV - - 70 + 93 + - + 81 AS col2
----
5354

skipif mysql # not compatible
query I rowsort label-6971
SELECT - 59 * - - 10 * + CAST ( + ( - + 9 ) AS INTEGER ) + ( + 32 ) - + + 32 / - - 70 + 93 + - + 81 AS col2
----
5354

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6973
SELECT COUNT( * ), - 75 - 20 AS col0
----
1
-95

skipif mysql # not compatible
query II rowsort label-6973
SELECT COUNT ( * ), - 75 - 20 AS col0
----
1
-95

query I rowsort
SELECT ALL + + 67 * + 19 * + 23
----
29279

query II rowsort
SELECT 15 AS col1, 19 * - 22 col0
----
15
-418

onlyif mysql # aggregate syntax: 
query I rowsort label-6976
SELECT ALL + 42 * - MIN( 3 ) + - COUNT( * )
----
-127

skipif mysql # not compatible
query I rowsort label-6976
SELECT ALL + 42 * - MIN ( 3 ) + - COUNT ( * )
----
-127

query I rowsort
SELECT + - 36 * + 74 AS col2
----
-2664

onlyif mysql # DIV for integer division: 
query I rowsort label-6978
SELECT DISTINCT - 31 DIV - 3 AS col2
----
10

skipif mysql # not compatible
query I rowsort label-6978
SELECT DISTINCT - 31 / - 3 AS col2
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-6979
SELECT ALL - 67 * - 82 * - + COUNT( * )
----
-5494

skipif mysql # not compatible
query I rowsort label-6979
SELECT ALL - 67 * - 82 * - + COUNT ( * )
----
-5494

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6981
SELECT ALL - 67 * + MIN( ALL - ( + 8 ) )
----
536

skipif mysql # not compatible
query I rowsort label-6981
SELECT ALL - 67 * + MIN ( ALL - ( + 8 ) )
----
536

query II rowsort
SELECT ALL + 95 + NULLIF ( 6, 88 ) AS col2, - ( + 18 ) AS col2
----
101
-18

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6983
SELECT ALL CAST( NULL AS SIGNED ), 71 * 40 + - 21 + + 44 * + 80 + - COALESCE ( - 48, 76 ) AS col1
----
NULL
6387

skipif mysql # not compatible
query II rowsort label-6983
SELECT ALL CAST ( NULL AS INTEGER ), 71 * 40 + - 21 + + 44 * + 80 + - COALESCE ( - 48, 76 ) AS col1
----
NULL
6387

query II rowsort
SELECT 10, + 77 AS col2
----
10
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6985
SELECT - 42 * - 52 * - SUM( - 74 )
----
161616

skipif mysql # not compatible
query I rowsort label-6985
SELECT - 42 * - 52 * - SUM ( - 74 )
----
161616

onlyif mysql # aggregate syntax: 
query I rowsort label-6986
SELECT - COUNT( - 11 ) - + - MIN( - 89 )
----
-90

skipif mysql # not compatible
query I rowsort label-6986
SELECT - COUNT ( - 11 ) - + - MIN ( - 89 )
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6987
SELECT DISTINCT CAST( + - COUNT( DISTINCT + + 74 ) AS SIGNED ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-6987
SELECT DISTINCT CAST ( + - COUNT ( DISTINCT + + 74 ) AS INTEGER ) col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6988
SELECT ALL - 68 + 73 + - COUNT( * ) AS col0
----
4

skipif mysql # not compatible
query I rowsort label-6988
SELECT ALL - 68 + 73 + - COUNT ( * ) AS col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6989
SELECT - 30 - + COUNT( * )
----
-31

skipif mysql # not compatible
query I rowsort label-6989
SELECT - 30 - + COUNT ( * )
----
-31

query I rowsort
SELECT ALL - 95 + + 50 * 50 AS col0
----
2405

onlyif mysql # aggregate syntax: 
query I rowsort label-6991
SELECT - ( + CASE + ( + COUNT( * ) ) WHEN 93 THEN - 58 END ) * - - 33 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6991
SELECT - ( + CASE + ( + COUNT ( * ) ) WHEN 93 THEN - 58 END ) * - - 33 AS col2
----
NULL

query I rowsort
SELECT ALL 94 + + 12 AS col0
----
106

query II rowsort
SELECT 47 AS col1, - 77 AS col2
----
47
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-6994
SELECT + CASE 9 WHEN + COUNT( * ) THEN + 88 WHEN ( + + 79 ) THEN NULL WHEN ( - 76 ) THEN 61 ELSE NULL END * 30 + + + 61 * - COUNT( * ) + + 8 + + 21 * - 30 + + 10 - - 0 * - + 57 / + 7 * 92 + 97 * 26 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6994
SELECT + CASE 9 WHEN + COUNT ( * ) THEN + 88 WHEN ( + + 79 ) THEN NULL WHEN ( - 76 ) THEN 61 ELSE NULL END * 30 + + + 61 * - COUNT ( * ) + + 8 + + 21 * - 30 + + 10 - - 0 * - + 57 / + 7 * 92 + 97 * 26 AS col2
----
NULL

query I rowsort
SELECT ALL - 39 - - 29 AS col2
----
-10

query I rowsort
SELECT ALL + 81 * + 34 AS col1
----
2754

onlyif mysql # aggregate syntax: 
query II rowsort label-6997
SELECT + 35 * + NULLIF ( - - 75, - - 28 ) * + COUNT( 64 ), + 53 + + 77 AS col1
----
2625
130

skipif mysql # not compatible
query II rowsort label-6997
SELECT + 35 * + NULLIF ( - - 75, - - 28 ) * + COUNT ( 64 ), + 53 + + 77 AS col1
----
2625
130

query I rowsort
SELECT + 2 * + - 98 col0
----
-196

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6999
SELECT 34 * 83 + + MAX( ALL 19 ) DIV - + 48 - COUNT( * )
----
2821

skipif mysql # not compatible
query I rowsort label-6999
SELECT 34 * 83 + + MAX ( ALL 19 ) / - + 48 - COUNT ( * )
----
2821

query I rowsort
SELECT - 29 + - 18 AS col0
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7001
SELECT 64 + NULLIF ( - + COALESCE ( + 81, CAST( NULL AS SIGNED ) ), - 13 * 50 - + COALESCE ( - 36, CASE - 20 WHEN + 26 THEN + 3 + + - 61 + - 4 * AVG ( ALL CAST( NULL AS SIGNED ) ) END ) )
----
-17

skipif mysql # not compatible
query I rowsort label-7001
SELECT 64 + NULLIF ( - + COALESCE ( + 81, CAST ( NULL AS INTEGER ) ), - 13 * 50 - + COALESCE ( - 36, CASE - 20 WHEN + 26 THEN + 3 + + - 61 + - 4 * AVG ( ALL CAST ( NULL AS INTEGER ) ) END ) )
----
-17

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7003
SELECT ALL - + ( - 70 ), NULLIF ( 13, + 31 * + - 83 * - 78 + + - 1 ) + + COUNT( * ) * + 48 + + 83 * - 85 * + + COUNT( * ) AS col2
----
70
-6994

skipif mysql # not compatible
query II rowsort label-7003
SELECT ALL - + ( - 70 ), NULLIF ( 13, + 31 * + - 83 * - 78 + + - 1 ) + + COUNT ( * ) * + 48 + + 83 * - 85 * + + COUNT ( * ) AS col2
----
70
-6994

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7004
SELECT ALL - ( - COUNT( * ) ) * - 92 + 85 + + 82 DIV - + 49 + 18
----
10

skipif mysql # not compatible
query I rowsort label-7004
SELECT ALL - ( - COUNT ( * ) ) * - 92 + 85 + + 82 / - + 49 + 18
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7005
SELECT + 18 * - 91 + - 18 * CAST( + MAX( ALL + 91 ) AS SIGNED ) + - 59 AS col1, - 90 AS col0
----
-3335
-90

skipif mysql # not compatible
query II rowsort label-7005
SELECT + 18 * - 91 + - 18 * CAST ( + MAX ( ALL + 91 ) AS INTEGER ) + - 59 AS col1, - 90 AS col0
----
-3335
-90

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7008
SELECT DISTINCT 95 + - COUNT( DISTINCT - 48 ) AS col2, + 0 + SUM( 95 ) + 21
----
94
116

skipif mysql # not compatible
query II rowsort label-7008
SELECT DISTINCT 95 + - COUNT ( DISTINCT - 48 ) AS col2, + 0 + SUM ( 95 ) + 21
----
94
116

query II rowsort
SELECT 3 * + 82 AS col0, + 86 * - 74
----
246
-6364

onlyif mysql # aggregate syntax: 
query I rowsort label-7010
SELECT ALL COUNT( * ) / - CASE - 23 WHEN - 69 + 50 THEN ( - - 81 ) - COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7010
SELECT ALL COUNT ( * ) / - CASE - 23 WHEN - 69 + 50 THEN ( - - 81 ) - COUNT ( * ) END AS col0
----
NULL

query I rowsort
SELECT DISTINCT 36 + 45 * + 97 * - 54
----
-235674

onlyif mysql # DIV for integer division: 
query II rowsort label-7012
SELECT ALL 94 DIV 51, 34 AS col1
----
1
34

skipif mysql # not compatible
query II rowsort label-7012
SELECT ALL 94 / 51, 34 AS col1
----
1
34

query I rowsort
SELECT 99 + + 28 AS col1
----
127

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7015
SELECT 83 * - + SUM( ALL + 57 ) AS col2, + MAX( ALL - 35 ) * + 42 + + - CAST( NULL AS SIGNED )
----
-4731
NULL

skipif mysql # not compatible
query II rowsort label-7015
SELECT 83 * - + SUM ( ALL + 57 ) AS col2, + MAX ( ALL - 35 ) * + 42 + + - CAST ( NULL AS INTEGER )
----
-4731
NULL

query I rowsort
SELECT 18 * - 99 * - 79 AS col1
----
140778

onlyif mysql # aggregate syntax: 
query I rowsort label-7017
SELECT DISTINCT - CASE - + 35 WHEN + 46 + 28 THEN + 43 * 46 * 5 * 77 WHEN + + 97 * + 57 + 44 + - 29 THEN + ( - 19 ) ELSE NULL END - COUNT( * ) * - + 87
----
NULL

skipif mysql # not compatible
query I rowsort label-7017
SELECT DISTINCT - CASE - + 35 WHEN + 46 + 28 THEN + 43 * 46 * 5 * 77 WHEN + + 97 * + 57 + 44 + - 29 THEN + ( - 19 ) ELSE NULL END - COUNT ( * ) * - + 87
----
NULL

query II rowsort
SELECT 43 + - 59 AS col0, 66
----
-16
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7019
SELECT 86 * - + SUM( ALL - NULLIF ( + - 83, - 4 ) ) + + COUNT( * ) * + NULLIF ( - 67, 65 * + - 93 + - + COUNT( * ) + + + COUNT( * ) ) * + CAST( - - 36 AS SIGNED ) AS col2
----
-9550

skipif mysql # not compatible
query I rowsort label-7019
SELECT 86 * - + SUM ( ALL - NULLIF ( + - 83, - 4 ) ) + + COUNT ( * ) * + NULLIF ( - 67, 65 * + - 93 + - + COUNT ( * ) + + + COUNT ( * ) ) * + CAST ( - - 36 AS INTEGER ) AS col2
----
-9550

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

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

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

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

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

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

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

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

query I rowsort
SELECT ALL + + 92 * + 70 + - 25 AS col0
----
6415

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7025
SELECT + COALESCE ( + CASE + 44 WHEN + NULLIF ( - - 50, + CAST( NULL AS SIGNED ) * - + 53 - - 19 + + CAST( COUNT( * ) AS SIGNED ) + + COUNT( * ) * + + 10 ) THEN + - 60 WHEN - 10 + + CASE - + 78 WHEN + 2 THEN NULL ELSE - 96 * + 46 * 61 * - 54 * + + ( 44 ) END - COUNT( * ) * + 76 THEN + 92 WHEN + 90 THEN - 87 WHEN 72 + + 24 THEN NULL ELSE 87 END, - 68, 90 - + 67 ) AS col1
----
87

skipif mysql # not compatible
query I rowsort label-7025
SELECT + COALESCE ( + CASE + 44 WHEN + NULLIF ( - - 50, + CAST ( NULL AS INTEGER ) * - + 53 - - 19 + + CAST ( COUNT ( * ) AS INTEGER ) + + COUNT ( * ) * + + 10 ) THEN + - 60 WHEN - 10 + + CASE - + 78 WHEN + 2 THEN NULL ELSE - 96 * + 46 * 61 * - 54 * + + ( 44 ) END - COUNT ( * ) * + 76 THEN + 92 WHEN + 90 THEN - 87 WHEN 72 + + 24 THEN NULL ELSE 87 END, - 68, 90 - + 67 ) AS col1
----
87

query I rowsort
SELECT DISTINCT + - 25 * - - 85 - + COALESCE ( + 85, - 26 + + - 26 )
----
-2210

onlyif mysql # aggregate syntax: 
query I rowsort label-7027
SELECT 89 * - - 51 + - - SUM( - - 58 ) * - 9 * + 24
----
-7989

skipif mysql # not compatible
query I rowsort label-7027
SELECT 89 * - - 51 + - - SUM ( - - 58 ) * - 9 * + 24
----
-7989

query I rowsort
SELECT DISTINCT - - NULLIF ( + 6, - 37 ) AS col2
----
6

query II rowsort
SELECT DISTINCT - ( 76 ) AS col0, 78 + + 77
----
-76
155

onlyif mysql # aggregate syntax: 
query I rowsort label-7030
SELECT - SUM( - ( - 10 ) ) * + + COUNT( * ) * NULLIF ( MAX( - 84 ), MAX( + + 54 ) * + COUNT( * ) + 36 ) - - 54 AS col0
----
894

skipif mysql # not compatible
query I rowsort label-7030
SELECT - SUM ( - ( - 10 ) ) * + + COUNT ( * ) * NULLIF ( MAX ( - 84 ), MAX ( + + 54 ) * + COUNT ( * ) + 36 ) - - 54 AS col0
----
894

query I rowsort
SELECT DISTINCT 42 + + 96
----
138

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7032
SELECT NULLIF ( 41, 25 ) DIV - MIN( ALL 81 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-7032
SELECT NULLIF ( 41, 25 ) / - MIN ( ALL 81 ) col0
----
0

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7034
SELECT + 79 AS col1, 37 + - - COUNT( * )
----
79
38

skipif mysql # not compatible
query II rowsort label-7034
SELECT + 79 AS col1, 37 + - - COUNT ( * )
----
79
38

onlyif mysql # DIV for integer division: 
query I rowsort label-7035
SELECT ( + 77 ) * 14 DIV + + 46 + + 22
----
45

skipif mysql # not compatible
query I rowsort label-7035
SELECT ( + 77 ) * 14 / + + 46 + + 22
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-7036
SELECT 3 DIV - 5 col2
----
0

skipif mysql # not compatible
query I rowsort label-7036
SELECT 3 / - 5 col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7037
SELECT ALL 48 + - 75 - + 68 + + 36 DIV + + ( - - 55 ) + - + COUNT( * ) * + - 7 * - 15 col0
----
-200

skipif mysql # not compatible
query I rowsort label-7037
SELECT ALL 48 + - 75 - + 68 + + 36 / + + ( - - 55 ) + - + COUNT ( * ) * + - 7 * - 15 col0
----
-200

query I rowsort
SELECT DISTINCT - 95 + + - 33 + - 97 * + 10 * - 29 - - - NULLIF ( + 5, 2 * + 63 / 69 / 47 ) col2
----
27997

query I rowsort
SELECT 93 + - 28 AS col0
----
65

query II rowsort
SELECT ALL 43, - 8 * - 10 + - + 16 AS col1
----
43
64

onlyif mysql # aggregate syntax: 
query I rowsort label-7041
SELECT DISTINCT MAX( ALL 5 ) * - - CASE + - 13 WHEN + 15 * COUNT( * ) + 3 - - - ( 8 ) THEN NULL ELSE + + 19 END + + + 56
----
151

skipif mysql # not compatible
query I rowsort label-7041
SELECT DISTINCT MAX ( ALL 5 ) * - - CASE + - 13 WHEN + 15 * COUNT ( * ) + 3 - - - ( 8 ) THEN NULL ELSE + + 19 END + + + 56
----
151

onlyif mysql # aggregate syntax: 
query I rowsort label-7042
SELECT + 65 + 13 * - ( + 77 ) * + 29 + COUNT( * )
----
-28963

skipif mysql # not compatible
query I rowsort label-7042
SELECT + 65 + 13 * - ( + 77 ) * + 29 + COUNT ( * )
----
-28963

query II rowsort
SELECT ALL 98 col0, 17 * ( 39 ) * 44
----
98
29172

query I rowsort
SELECT ALL 88 * - 92
----
-8096

onlyif mysql # aggregate syntax: 
query I rowsort label-7045
SELECT DISTINCT MAX( DISTINCT - 91 ) - 13 * - 59 - + MAX( ALL 21 ) + - 21 AS col0
----
634

skipif mysql # not compatible
query I rowsort label-7045
SELECT DISTINCT MAX ( DISTINCT - 91 ) - 13 * - 59 - + MAX ( ALL 21 ) + - 21 AS col0
----
634

onlyif mysql # aggregate syntax: 
query II rowsort label-7046
SELECT 72 AS col2, - MIN( - 38 ) AS col1
----
72
38

skipif mysql # not compatible
query II rowsort label-7046
SELECT 72 AS col2, - MIN ( - 38 ) AS col1
----
72
38

query II rowsort
SELECT ALL 67 AS col2, + 79
----
67
79

onlyif mysql # DIV for integer division: 
query I rowsort label-7048
SELECT + 40 - - 34 DIV - 93 * + - 52 * - 1
----
40

skipif mysql # not compatible
query I rowsort label-7048
SELECT + 40 - - 34 / - 93 * + - 52 * - 1
----
40

query I rowsort
SELECT + 99 * - 74
----
-7326

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

skipif mysql # not compatible
query I rowsort label-7050
SELECT + 17 + + CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT - + 3 * 71 AS col1
----
-213

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7052
SELECT DISTINCT + 20 DIV - NULLIF ( 44, - 57 + ( - - 12 ) * COUNT( * ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7052
SELECT DISTINCT + 20 / - NULLIF ( 44, - 57 + ( - - 12 ) * COUNT ( * ) ) AS col2
----
0

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

skipif mysql # not compatible
query II rowsort label-7053
SELECT ALL - 34, - COUNT ( * ) col1
----
-34
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-7054
SELECT - CASE - 40 WHEN 83 + + 88 THEN - + NULLIF ( + 65, + COUNT( * ) / 99 ) + + + COUNT( * ) * - 95 WHEN - 56 THEN NULL END * + ( + 37 ) AS col0, - 64 * ( + 7 ) AS col2
----
NULL
-448

skipif mysql # not compatible
query II rowsort label-7054
SELECT - CASE - 40 WHEN 83 + + 88 THEN - + NULLIF ( + 65, + COUNT ( * ) / 99 ) + + + COUNT ( * ) * - 95 WHEN - 56 THEN NULL END * + ( + 37 ) AS col0, - 64 * ( + 7 ) AS col2
----
NULL
-448

query II rowsort
SELECT ALL 45 * - 36 - - + 75 AS col2, - ( 31 ) + - 10 AS col1
----
-1545
-41

query I rowsort
SELECT - + 76 - + 51
----
-127

query I rowsort
SELECT - 88 * + 27 AS col2
----
-2376

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7058
SELECT - - NULLIF ( - 66, + + 40 * 61 + + 56 ) - - MIN( ALL - + 36 ) * MIN( ALL + CAST( NULL AS SIGNED ) ) + + 63 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7058
SELECT - - NULLIF ( - 66, + + 40 * 61 + + 56 ) - - MIN ( ALL - + 36 ) * MIN ( ALL + CAST ( NULL AS INTEGER ) ) + + 63 AS col2
----
NULL

query I rowsort
SELECT ALL + + ( + 17 ) * - CASE - 18 WHEN 59 THEN NULL ELSE - 40 END AS col0
----
680

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7060
SELECT ALL + 14 AS col1, + 61 + CAST( NULL AS SIGNED ) AS col1
----
14
NULL

skipif mysql # not compatible
query II rowsort label-7060
SELECT ALL + 14 AS col1, + 61 + CAST ( NULL AS INTEGER ) AS col1
----
14
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7061
SELECT + 52 / CAST( NULL AS DECIMAL ) * 30 * - + ( ( + 69 ) ) * + + 97 - - NULLIF ( COUNT( * ), + - 49 ) - - COUNT( * ) * - 16 - + 8 + + 87 + + 49
----
NULL

skipif mysql # not compatible
query I rowsort label-7061
SELECT + 52 / CAST ( NULL AS REAL ) * 30 * - + ( ( + 69 ) ) * + + 97 - - NULLIF ( COUNT ( * ), + - 49 ) - - COUNT ( * ) * - 16 - + 8 + + 87 + + 49
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7062
SELECT - - 51 * - + COUNT( * ) * + 28 - 95 + - 98 DIV + - 62
----
-1522

skipif mysql # not compatible
query I rowsort label-7062
SELECT - - 51 * - + COUNT ( * ) * + 28 - 95 + - 98 / + - 62
----
-1522

onlyif mysql # aggregate syntax: 
query III rowsort label-7063
SELECT ALL ( 41 ) * 16 AS col2, 72 AS col1, 95 * ( + COUNT( * ) ) * - 71 AS col0
----
656
72
-6745

skipif mysql # not compatible
query III rowsort label-7063
SELECT ALL ( 41 ) * 16 AS col2, 72 AS col1, 95 * ( + COUNT ( * ) ) * - 71 AS col0
----
656
72
-6745

onlyif mysql # aggregate syntax: 
query I rowsort label-7064
SELECT - 77 + - 94 * + + COUNT( * )
----
-171

skipif mysql # not compatible
query I rowsort label-7064
SELECT - 77 + - 94 * + + COUNT ( * )
----
-171

onlyif mysql # aggregate syntax: 
query I rowsort label-7065
SELECT ALL 48 * - + COALESCE ( - - SUM( DISTINCT + 12 ), - 54 * 9 + 77 - 22 * COUNT( * ) * + 86 * 86 ) + - + COUNT( * ) + + 45 + - ( + + CASE - ( - - 41 ) WHEN - 0 THEN - ( + 37 ) + - 92 END ) / 18 * + 87 / - SUM( + 73 * 67 ) + COUNT( - 91 + 7 * 57 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7065
SELECT ALL 48 * - + COALESCE ( - - SUM ( DISTINCT + 12 ), - 54 * 9 + 77 - 22 * COUNT ( * ) * + 86 * 86 ) + - + COUNT ( * ) + + 45 + - ( + + CASE - ( - - 41 ) WHEN - 0 THEN - ( + 37 ) + - 92 END ) / 18 * + 87 / - SUM ( + 73 * 67 ) + COUNT ( - 91 + 7 * 57 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7066
SELECT + + CASE 31 WHEN - COALESCE ( + 95, COUNT( * ) + + - 39, - 20 ) THEN NULL WHEN - 67 + - 69 * - 71 * + + CAST( NULL AS SIGNED ) THEN CAST( - COUNT( * ) AS SIGNED ) / 46 * + 42 + 65 ELSE NULL END, + COUNT( * ) col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-7066
SELECT + + CASE 31 WHEN - COALESCE ( + 95, COUNT ( * ) + + - 39, - 20 ) THEN NULL WHEN - 67 + - 69 * - 71 * + + CAST ( NULL AS INTEGER ) THEN CAST ( - COUNT ( * ) AS INTEGER ) / 46 * + 42 + 65 ELSE NULL END, + COUNT ( * ) col0
----
NULL
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7067
SELECT ALL 68 * - 57 + - - 78 + COUNT( * ) * + 57 DIV + - 97 * + + 10 DIV + - COUNT( * ) AS col1
----
-3798

skipif mysql # not compatible
query I rowsort label-7067
SELECT ALL 68 * - 57 + - - 78 + COUNT ( * ) * + 57 / + - 97 * + + 10 / + - COUNT ( * ) AS col1
----
-3798

query I rowsort
SELECT - 57 * - 24 + + + 31
----
1399

onlyif mysql # aggregate syntax: 
query I rowsort label-7069
SELECT NULLIF ( COALESCE ( - 54, + 7 + COALESCE ( + 47, + ( 77 ) * - - COUNT( * ) + COUNT( * ) ) - + 88 - + - 11 ), + 93 * - - ( + 16 ) )
----
-54

skipif mysql # not compatible
query I rowsort label-7069
SELECT NULLIF ( COALESCE ( - 54, + 7 + COALESCE ( + 47, + ( 77 ) * - - COUNT ( * ) + COUNT ( * ) ) - + 88 - + - 11 ), + 93 * - - ( + 16 ) )
----
-54

query I rowsort
SELECT DISTINCT + ( - 76 ) AS col0
----
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7071
SELECT ALL 83 * 67 * + - CASE + COUNT( * ) WHEN - NULLIF ( + 89, - CASE - + 73 WHEN - - AVG ( 20 ) * - COUNT( * ) + + 31 THEN + - 59 WHEN - 51 + 57 THEN NULL ELSE NULL END + - SUM( - 63 ) ) * - COUNT( + - 37 ) + CAST( + + ( 67 ) AS SIGNED ) THEN - ( - - COALESCE ( + 61, - NULLIF ( 88, - ( 47 ) ) ) ) END + + 49 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7071
SELECT ALL 83 * 67 * + - CASE + COUNT ( * ) WHEN - NULLIF ( + 89, - CASE - + 73 WHEN - - AVG ( 20 ) * - COUNT ( * ) + + 31 THEN + - 59 WHEN - 51 + 57 THEN NULL ELSE NULL END + - SUM ( - 63 ) ) * - COUNT ( + - 37 ) + CAST ( + + ( 67 ) AS INTEGER ) THEN - ( - - COALESCE ( + 61, - NULLIF ( 88, - ( 47 ) ) ) ) END + + 49 AS col1
----
NULL

query I rowsort
SELECT - 13 * + 93
----
-1209

query I rowsort
SELECT ALL - 9 * + 89 * + 21
----
-16821

onlyif mysql # aggregate syntax: 
query I rowsort label-7074
SELECT 36 * 95 + + COUNT( * ) AS col0
----
3421

skipif mysql # not compatible
query I rowsort label-7074
SELECT 36 * 95 + + COUNT ( * ) AS col0
----
3421

onlyif mysql # aggregate syntax: 
query I rowsort label-7075
SELECT DISTINCT - MIN( - + 6 ) * - 25 - - + 27 AS col0
----
-123

skipif mysql # not compatible
query I rowsort label-7075
SELECT DISTINCT - MIN ( - + 6 ) * - 25 - - + 27 AS col0
----
-123

query II rowsort
SELECT ALL + ( + 47 ) AS col2, + 40 AS col1
----
47
40

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-7077
SELECT ALL MIN( + + 34 ) DIV + ( - + 39 ) + - + 59 AS col0, - ( - + 11 ) + ( + 63 ) + + CAST( NULL AS DECIMAL ) * + 32
----
-59
NULL

skipif mysql # not compatible
query II rowsort label-7077
SELECT ALL MIN ( + + 34 ) / + ( - + 39 ) + - + 59 AS col0, - ( - + 11 ) + ( + 63 ) + + CAST ( NULL AS REAL ) * + 32
----
-59
NULL

query II rowsort
SELECT - 83 * + 3 AS col2, 50 + - 1 + + COALESCE ( + 75, - 10 * - 62 + - 37 + - + 85 )
----
-249
124

onlyif mysql # aggregate syntax: 
query I rowsort label-7079
SELECT - CASE + 72 WHEN + 58 THEN + 93 + 79 ELSE - COUNT( * ) * 57 + - + 38 + MIN( DISTINCT + - 40 ) END
----
135

skipif mysql # not compatible
query I rowsort label-7079
SELECT - CASE + 72 WHEN + 58 THEN + 93 + 79 ELSE - COUNT ( * ) * 57 + - + 38 + MIN ( DISTINCT + - 40 ) END
----
135

query I rowsort
SELECT + 77 + 70 AS col0
----
147

onlyif mysql # DIV for integer division: 
query I rowsort label-7081
SELECT + 35 DIV + + 65
----
0

skipif mysql # not compatible
query I rowsort label-7081
SELECT + 35 / + + 65
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7082
SELECT - NULLIF ( + CASE - 87 WHEN + - AVG ( DISTINCT + ( - + 13 ) ) THEN 11 * + COUNT( DISTINCT + - 40 ) END, + COUNT( * ) ) * - 45 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7082
SELECT - NULLIF ( + CASE - 87 WHEN + - AVG ( DISTINCT + ( - + 13 ) ) THEN 11 * + COUNT ( DISTINCT + - 40 ) END, + COUNT ( * ) ) * - 45 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7083
SELECT + 53 + - - CAST( NULL AS DECIMAL ) / + + COALESCE ( + CASE - - 36 WHEN COALESCE ( - 58, + ( + 91 ) ) THEN NULL WHEN - 43 THEN + 15 END, COUNT( * ) ) + - COUNT( * ) + - 41 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7083
SELECT + 53 + - - CAST ( NULL AS REAL ) / + + COALESCE ( + CASE - - 36 WHEN COALESCE ( - 58, + ( + 91 ) ) THEN NULL WHEN - 43 THEN + 15 END, COUNT ( * ) ) + - COUNT ( * ) + - 41 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7084
SELECT - 23 * + NULLIF ( - + 23, ( + 95 ) * - - 99 - + COUNT( * ) * - - NULLIF ( - 20, + CASE + - 94 WHEN - + CAST( + 4 AS DECIMAL ) THEN NULL WHEN - 72 THEN 79 END * - + CAST( - 74 AS DECIMAL ) + - + 72 ) / - 20 + 37 * 95 * - ( + COALESCE ( - 75, - COUNT( * ), - COUNT( * ) * - 25 ) ) + + 13 - 72 * NULLIF ( COUNT( * ) * - 80, - COUNT( * ) ) ) AS col0
----
529

skipif mysql # not compatible
query I rowsort label-7084
SELECT - 23 * + NULLIF ( - + 23, ( + 95 ) * - - 99 - + COUNT ( * ) * - - NULLIF ( - 20, + CASE + - 94 WHEN - + CAST ( + 4 AS REAL ) THEN NULL WHEN - 72 THEN 79 END * - + CAST ( - 74 AS REAL ) + - + 72 ) / - 20 + 37 * 95 * - ( + COALESCE ( - 75, - COUNT ( * ), - COUNT ( * ) * - 25 ) ) + + 13 - 72 * NULLIF ( COUNT ( * ) * - 80, - COUNT ( * ) ) ) AS col0
----
529

query I rowsort
SELECT + 76 - + CASE - + 19 WHEN + 91 THEN - ( - - 32 ) WHEN - - COALESCE ( - - 38, - + 65 * - 8 * - 58 ) THEN NULL END AS col1
----
NULL

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

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

query I rowsort
SELECT - 3 + 64 + 89 AS col2
----
150

query I rowsort
SELECT + + ( 18 ) * + 4 AS col0
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7089
SELECT + + 36 * - CAST( NULL AS SIGNED ), - 2 AS col2
----
NULL
-2

skipif mysql # not compatible
query II rowsort label-7089
SELECT + + 36 * - CAST ( NULL AS INTEGER ), - 2 AS col2
----
NULL
-2

query II rowsort
SELECT - + 81 + + + 17 AS col2, - 85
----
-64
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-7091
SELECT ALL 78 + - COALESCE ( + 12, + 59 ) + + - COUNT( + + 75 ) + + - ( + 9 ) AS col0
----
56

skipif mysql # not compatible
query I rowsort label-7091
SELECT ALL 78 + - COALESCE ( + 12, + 59 ) + + - COUNT ( + + 75 ) + + - ( + 9 ) AS col0
----
56

query I rowsort
SELECT ALL + 25 * 61 AS col2
----
1525

onlyif mysql # DIV for integer division: 
query I rowsort label-7093
SELECT + 75 DIV 93 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7093
SELECT + 75 / 93 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7094
SELECT + MAX( ALL - 78 ) AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-7094
SELECT + MAX ( ALL - 78 ) AS col2
----
-78

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7095
SELECT - 20 * + COUNT( * ) + + + 74 - 36 AS col2, + 72 DIV + 40 + + COALESCE ( + 82, 21 * COUNT( * ) DIV ( - ( + 31 ) ) * ( - 77 ) + - + 48 )
----
18
83

skipif mysql # not compatible
query II rowsort label-7095
SELECT - 20 * + COUNT ( * ) + + + 74 - 36 AS col2, + 72 / + 40 + + COALESCE ( + 82, 21 * COUNT ( * ) / ( - ( + 31 ) ) * ( - 77 ) + - + 48 )
----
18
83

query I rowsort
SELECT ALL - 23 * - 66 * + 16
----
24288

query I rowsort
SELECT - + 54 * + 15 + - + 29 AS col0
----
-839

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

query II rowsort
SELECT - ( 13 ), - 12 col2
----
-13
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-7100
SELECT ALL 10 DIV + - 82 * + - 71 - + 32 AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-7100
SELECT ALL 10 / + - 82 * + - 71 - + 32 AS col2
----
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7101
SELECT CAST( + 61 AS SIGNED ) * + - NULLIF ( - + 83, 15 ) - - - ( 55 ) AS col1
----
5008

skipif mysql # not compatible
query I rowsort label-7101
SELECT CAST ( + 61 AS INTEGER ) * + - NULLIF ( - + 83, 15 ) - - - ( 55 ) AS col1
----
5008

query I rowsort
SELECT DISTINCT - ( 20 ) AS col0
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-7103
SELECT ALL MIN( - + 11 ) - + + 4 col0
----
-15

skipif mysql # not compatible
query I rowsort label-7103
SELECT ALL MIN ( - + 11 ) - + + 4 col0
----
-15

query I rowsort
SELECT DISTINCT - 59 * 73 * - 92 AS col1
----
396244

query I rowsort
SELECT 18 * - - 85 col0
----
1530

query I rowsort
SELECT DISTINCT - 60 * - 80 AS col0
----
4800

query I rowsort
SELECT 8 * - 0 * + + ( + 25 ) AS col1
----
0

query I rowsort
SELECT 33 * + 50
----
1650

onlyif mysql # aggregate syntax: 
query I rowsort label-7109
SELECT 14 + MIN( - 48 ) + 14 * 83 + 9 + + 72 AS col1
----
1209

skipif mysql # not compatible
query I rowsort label-7109
SELECT 14 + MIN ( - 48 ) + 14 * 83 + 9 + + 72 AS col1
----
1209

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

query I rowsort
SELECT - 96 + + + ( COALESCE ( - - 19, + 91 ) ) - - 7 * + 80 * - 47
----
-26397

onlyif mysql # aggregate syntax: 
query II rowsort label-7112
SELECT 92 * + MIN( - 46 ) AS col1, ( COUNT( * ) ) col2
----
-4232
1

skipif mysql # not compatible
query II rowsort label-7112
SELECT 92 * + MIN ( - 46 ) AS col1, ( COUNT ( * ) ) col2
----
-4232
1

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

skipif mysql # not compatible
query I rowsort label-7113
SELECT + 71 + COUNT ( * ) AS col2
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-7114
SELECT 94 * - CASE - - COUNT( * ) WHEN - 34 THEN - 0 WHEN + CASE - 41 WHEN - 23 THEN NULL WHEN 63 THEN + 94 + - 10 + + 68 END THEN NULL END * - + 84 + 66 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7114
SELECT 94 * - CASE - - COUNT ( * ) WHEN - 34 THEN - 0 WHEN + CASE - 41 WHEN - 23 THEN NULL WHEN 63 THEN + 94 + - 10 + + 68 END THEN NULL END * - + 84 + 66 AS col0
----
NULL

query I rowsort
SELECT - 80 * + 26
----
-2080

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7116
SELECT ALL - MIN( ALL 27 ) + COUNT( * ) DIV - 92 * 17
----
-27

skipif mysql # not compatible
query I rowsort label-7116
SELECT ALL - MIN ( ALL 27 ) + COUNT ( * ) / - 92 * 17
----
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-7117
SELECT 84 DIV - + ( - 53 )
----
1

skipif mysql # not compatible
query I rowsort label-7117
SELECT 84 / - + ( - 53 )
----
1

query I rowsort
SELECT DISTINCT + 77 + + 81 AS col0
----
158

query I rowsort
SELECT - - CASE + 26 WHEN - 51 THEN NULL WHEN 9 + + + ( - + 10 ) THEN 77 * + - 78 + 54 END AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 85 + + 58
----
-27

query I rowsort
SELECT + COALESCE ( - - 61, + 72 ) + + 52 AS col1
----
113

query I rowsort
SELECT ALL ( - 53 ) * - + 92 * - 46 AS col2
----
-224296

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7123
SELECT - 96 - COUNT( * ) DIV + 61 AS col2
----
-96

skipif mysql # not compatible
query I rowsort label-7123
SELECT - 96 - COUNT ( * ) / + 61 AS col2
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7124
SELECT + 47 AS col0, - 13 + CAST( MAX( ALL + - 79 ) AS SIGNED )
----
47
-92

skipif mysql # not compatible
query II rowsort label-7124
SELECT + 47 AS col0, - 13 + CAST ( MAX ( ALL + - 79 ) AS INTEGER )
----
47
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-7125
SELECT COUNT( * ) * + 91 - + 38 + - 74 + - ( + 12 ) * 89 * - 33
----
35223

skipif mysql # not compatible
query I rowsort label-7125
SELECT COUNT ( * ) * + 91 - + 38 + - 74 + - ( + 12 ) * 89 * - 33
----
35223

query I rowsort
SELECT + 62 + + 15 AS col0
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7127
SELECT CASE - 52 WHEN + CAST( NULL AS SIGNED ) THEN + 80 ELSE NULL END + - + 27 + + - 65 * + 50
----
NULL

skipif mysql # not compatible
query I rowsort label-7127
SELECT CASE - 52 WHEN + CAST ( NULL AS INTEGER ) THEN + 80 ELSE NULL END + - + 27 + + - 65 * + 50
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7128
SELECT ( CASE - 26 WHEN COUNT( + 16 ) + - 1 THEN 60 + MIN( ALL + + 28 ) + + + MIN( - 51 ) + - 71 WHEN + ( + 36 ) THEN - 7 END ) * - 75 / 30 * - + 32 + + 69 + + + 46 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7128
SELECT ( CASE - 26 WHEN COUNT ( + 16 ) + - 1 THEN 60 + MIN ( ALL + + 28 ) + + + MIN ( - 51 ) + - 71 WHEN + ( + 36 ) THEN - 7 END ) * - 75 / 30 * - + 32 + + 69 + + + 46 AS col0
----
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-7130
SELECT CAST ( NULL AS INTEGER ) / 63 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7131
SELECT ALL CASE NULLIF ( - - 42, + CAST( NULL AS SIGNED ) ) WHEN - 15 THEN NULL WHEN - - 53 * 22 - SUM( 25 ) THEN - 15 ELSE NULL END * + 95 + + 97 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7131
SELECT ALL CASE NULLIF ( - - 42, + CAST ( NULL AS INTEGER ) ) WHEN - 15 THEN NULL WHEN - - 53 * 22 - SUM ( 25 ) THEN - 15 ELSE NULL END * + 95 + + 97 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7132
SELECT 28 + COUNT( * ) + + ( + + 76 )
----
105

skipif mysql # not compatible
query I rowsort label-7132
SELECT 28 + COUNT ( * ) + + ( + + 76 )
----
105

query I rowsort
SELECT ( + 50 ) * + 60
----
3000

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-7135
SELECT 44 DIV 8 AS col2, - 59 AS col1
----
5
-59

skipif mysql # not compatible
query II rowsort label-7135
SELECT 44 / 8 AS col2, - 59 AS col1
----
5
-59

query I rowsort
SELECT ALL 88 * - 75
----
-6600

query III rowsort
SELECT 88 AS col0, 7 AS col1, + 56 AS col2
----
88
7
56

query I rowsort
SELECT - 86 * + 38 + + + 41 * + 66 AS col2
----
-562

onlyif mysql # aggregate syntax: 
query II rowsort label-7139
SELECT DISTINCT - 59, + COUNT( ALL - 59 ) col2
----
-59
1

skipif mysql # not compatible
query II rowsort label-7139
SELECT DISTINCT - 59, + COUNT ( ALL - 59 ) col2
----
-59
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7141
SELECT DISTINCT + 29 + - - SUM( DISTINCT - 37 ) AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-7141
SELECT DISTINCT + 29 + - - SUM ( DISTINCT - 37 ) AS col1
----
-8

query I rowsort
SELECT ALL + + 16 + - 91 AS col2
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-7143
SELECT ALL - + 54 + + COUNT( * ) * - 61 AS col1
----
-115

skipif mysql # not compatible
query I rowsort label-7143
SELECT ALL - + 54 + + COUNT ( * ) * - 61 AS col1
----
-115

onlyif mysql # aggregate syntax: 
query I rowsort label-7144
SELECT DISTINCT 82 + - 93 + + - MAX( - 12 ) * - 25 AS col2
----
-311

skipif mysql # not compatible
query I rowsort label-7144
SELECT DISTINCT 82 + - 93 + + - MAX ( - 12 ) * - 25 AS col2
----
-311

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7145
SELECT ALL + COALESCE ( + 8, - CAST( NULL AS SIGNED ), + COALESCE ( - 34, + 72 * COUNT( * ) * 63 * - 10 * - 49 ) ) AS col0
----
8

skipif mysql # not compatible
query I rowsort label-7145
SELECT ALL + COALESCE ( + 8, - CAST ( NULL AS INTEGER ), + COALESCE ( - 34, + 72 * COUNT ( * ) * 63 * - 10 * - 49 ) ) AS col0
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-7146
SELECT ( 12 ) + ( + - 86 ) DIV 78
----
11

skipif mysql # not compatible
query I rowsort label-7146
SELECT ( 12 ) + ( + - 86 ) / 78
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-7147
SELECT 65 DIV + + 60
----
1

skipif mysql # not compatible
query I rowsort label-7147
SELECT 65 / + + 60
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7148
SELECT ALL - COUNT( * ) - + - 62 - - + COUNT( * ) * - MIN( ALL + 2 ) * - + ( - 27 ) + CAST( NULL AS SIGNED ) * + 80
----
NULL

skipif mysql # not compatible
query I rowsort label-7148
SELECT ALL - COUNT ( * ) - + - 62 - - + COUNT ( * ) * - MIN ( ALL + 2 ) * - + ( - 27 ) + CAST ( NULL AS INTEGER ) * + 80
----
NULL

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

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

query I rowsort
SELECT DISTINCT 86 * 21 * + 14
----
25284

query II rowsort
SELECT ALL + 37 col2, 49
----
37
49

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7153
SELECT + 84 * 65 * + MAX( ALL - + 38 ) AS col1
----
-207480

skipif mysql # not compatible
query I rowsort label-7153
SELECT + 84 * 65 * + MAX ( ALL - + 38 ) AS col1
----
-207480

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7154
SELECT - CAST( NULL AS SIGNED ) + 29 + - - MAX( DISTINCT - 27 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7154
SELECT - CAST ( NULL AS INTEGER ) + 29 + - - MAX ( DISTINCT - 27 ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7155
SELECT + MAX( 83 ), 64 AS col2
----
83
64

skipif mysql # not compatible
query II rowsort label-7155
SELECT + MAX ( 83 ), 64 AS col2
----
83
64

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

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

query I rowsort
SELECT NULLIF ( + + 19, - 51 )
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7158
SELECT ALL CAST( NULL AS SIGNED ) * - COUNT( * ) * - COALESCE ( NULLIF ( + COUNT( * ), 86 ), + COUNT( * ) + - 57 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7158
SELECT ALL CAST ( NULL AS INTEGER ) * - COUNT ( * ) * - COALESCE ( NULLIF ( + COUNT ( * ), 86 ), + COUNT ( * ) + - 57 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7159
SELECT ALL + MAX( ( 54 ) ) * 76 + - + 61 col0
----
4043

skipif mysql # not compatible
query I rowsort label-7159
SELECT ALL + MAX ( ( 54 ) ) * 76 + - + 61 col0
----
4043

onlyif mysql # aggregate syntax: 
query I rowsort label-7160
SELECT + 53 + - 72 * + 44 * - ( + + COUNT( 49 ) ) col2
----
3221

skipif mysql # not compatible
query I rowsort label-7160
SELECT + 53 + - 72 * + 44 * - ( + + COUNT ( 49 ) ) col2
----
3221

query I rowsort
SELECT ALL 64 * - + 97
----
-6208

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7162
SELECT SUM( ALL CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7162
SELECT SUM ( ALL CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT + 58 * + 0 * - 52 * - 0
----
0

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

skipif mysql # not compatible
query I rowsort label-7164
SELECT SUM ( DISTINCT 78 )
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-7165
SELECT + NULLIF ( - + 70, - COUNT( DISTINCT + + 17 ) )
----
-70

skipif mysql # not compatible
query I rowsort label-7165
SELECT + NULLIF ( - + 70, - COUNT ( DISTINCT + + 17 ) )
----
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-7166
SELECT - 40 DIV 88 * - 3
----
0

skipif mysql # not compatible
query I rowsort label-7166
SELECT - 40 / 88 * - 3
----
0

query II rowsort
SELECT ALL - 79 + + 94 AS col0, + 89 AS col2
----
15
89

query I rowsort
SELECT ALL + 68 * - ( + ( - 77 ) )
----
5236

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7169
SELECT DISTINCT + 10 + + 43 col0, + 81 + + 89 * + 38 / + 44 * 59 * CAST( NULL AS SIGNED ) * - 87
----
53
NULL

skipif mysql # not compatible
query II rowsort label-7169
SELECT DISTINCT + 10 + + 43 col0, + 81 + + 89 * + 38 / + 44 * 59 * CAST ( NULL AS INTEGER ) * - 87
----
53
NULL

query II rowsort
SELECT DISTINCT CASE + ( - + 68 ) WHEN - 98 THEN 20 END + + 32 + - 31 + - + 32 AS col0, 34 AS col0
----
NULL
34

query II rowsort
SELECT ALL + ( - 83 ) - - + 33 AS col0, 5 AS col1
----
-50
5

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

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

query I rowsort
SELECT + + 55 - - 38 AS col1
----
93

query I rowsort
SELECT + - 97 * 38 AS col1
----
-3686

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7175
SELECT - 31 + + CASE 83 WHEN - 77 THEN - - COALESCE ( 53, - + CAST( COUNT( * ) AS SIGNED ) ) - 83 WHEN + ( - 21 ) THEN 21 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7175
SELECT - 31 + + CASE 83 WHEN - 77 THEN - - COALESCE ( 53, - + CAST ( COUNT ( * ) AS INTEGER ) ) - 83 WHEN + ( - 21 ) THEN 21 END AS col0
----
NULL

query I rowsort
SELECT ALL 0 - ( - 84 ) + + 28
----
112

query I rowsort
SELECT ALL - 42 * + 58 AS col1
----
-2436

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

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

query I rowsort
SELECT + ( - 57 ) + + + 85 * + 37 * + - 32 AS col2
----
-100697

onlyif mysql # aggregate syntax: 
query I rowsort label-7180
SELECT - 60 - COUNT( DISTINCT - 90 ) + + - 61 * ( + MIN( DISTINCT + 91 ) ) AS col1
----
-5612

skipif mysql # not compatible
query I rowsort label-7180
SELECT - 60 - COUNT ( DISTINCT - 90 ) + + - 61 * ( + MIN ( DISTINCT + 91 ) ) AS col1
----
-5612

query II rowsort
SELECT - 37 + + 41 * + + 41, 29 AS col1
----
1644
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7182
SELECT ALL - 19 DIV + CASE - COUNT( * ) WHEN + ( - - 52 ) + - + 50 THEN NULL WHEN 15 * - - 49 + ( + 98 ) - + 88 THEN - + COUNT( * ) WHEN - 12 THEN NULL ELSE - 21 DIV - + 90 - - NULLIF ( + 6, - - SUM( - + 29 ) ) DIV - CAST( + COUNT( DISTINCT - 59 ) AS SIGNED ) + + + 71 * MIN( DISTINCT - 39 ) END
----
0

skipif mysql # not compatible
query I rowsort label-7182
SELECT ALL - 19 / + CASE - COUNT ( * ) WHEN + ( - - 52 ) + - + 50 THEN NULL WHEN 15 * - - 49 + ( + 98 ) - + 88 THEN - + COUNT ( * ) WHEN - 12 THEN NULL ELSE - 21 / - + 90 - - NULLIF ( + 6, - - SUM ( - + 29 ) ) / - CAST ( + COUNT ( DISTINCT - 59 ) AS INTEGER ) + + + 71 * MIN ( DISTINCT - 39 ) END
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7184
SELECT - 73 * 39 * 51 + - 1 * + + MAX( - 52 )
----
-145145

skipif mysql # not compatible
query I rowsort label-7184
SELECT - 73 * 39 * 51 + - 1 * + + MAX ( - 52 )
----
-145145

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7185
SELECT DISTINCT - ( COUNT( * ) ) * 84 * - ( + 41 ) + CAST( NULL AS DECIMAL ) + COALESCE ( 1, - 74, + 4 ) * 20 / - + 53 * - ( + 91 ) + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7185
SELECT DISTINCT - ( COUNT ( * ) ) * 84 * - ( + 41 ) + CAST ( NULL AS REAL ) + COALESCE ( 1, - 74, + 4 ) * 20 / - + 53 * - ( + 91 ) + - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7186
SELECT DISTINCT + CAST( + CAST( + 95 AS SIGNED ) AS SIGNED ), 80 AS col2
----
95
80

skipif mysql # not compatible
query II rowsort label-7186
SELECT DISTINCT + CAST ( + CAST ( + 95 AS INTEGER ) AS INTEGER ), 80 AS col2
----
95
80

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

skipif mysql # not compatible
query I rowsort label-7187
SELECT ALL - 19 / COUNT ( * ) AS col1
----
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7188
SELECT ALL + 40 DIV - 48 + COUNT( * ) AS col1, 9 AS col1
----
1
9

skipif mysql # not compatible
query II rowsort label-7188
SELECT ALL + 40 / - 48 + COUNT ( * ) AS col1, 9 AS col1
----
1
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7189
SELECT ALL + 62 DIV - + CAST( - 65 AS SIGNED ) * - 47 * 11 * - ( - + 88 ) + MAX( - 7 ) * - 22
----
154

skipif mysql # not compatible
query I rowsort label-7189
SELECT ALL + 62 / - + CAST ( - 65 AS INTEGER ) * - 47 * 11 * - ( - + 88 ) + MAX ( - 7 ) * - 22
----
154

onlyif mysql # aggregate syntax: 
query I rowsort label-7190
SELECT DISTINCT + MIN( + + 1 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-7190
SELECT DISTINCT + MIN ( + + 1 ) col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7191
SELECT 29 * + 84 * 35 * - COUNT( * ) + + 1
----
-85259

skipif mysql # not compatible
query I rowsort label-7191
SELECT 29 * + 84 * 35 * - COUNT ( * ) + + 1
----
-85259

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7192
SELECT ALL COUNT( * ) DIV 87 + + - 46
----
-46

skipif mysql # not compatible
query I rowsort label-7192
SELECT ALL COUNT ( * ) / 87 + + - 46
----
-46

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7193
SELECT + NULLIF ( - COUNT( * ), - CAST( - 76 AS DECIMAL ) )
----
-1

skipif mysql # not compatible
query I rowsort label-7193
SELECT + NULLIF ( - COUNT ( * ), - CAST ( - 76 AS REAL ) )
----
-1

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

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

query I rowsort
SELECT ALL - 62 * + 19 + - 12 AS col1
----
-1190

query I rowsort
SELECT - 41 * - - 73
----
-2993

onlyif mysql # DIV for integer division: 
query I rowsort label-7197
SELECT - 58 + 63 DIV 59 * + - 49
----
-107

skipif mysql # not compatible
query I rowsort label-7197
SELECT - 58 + 63 / 59 * + - 49
----
-107

onlyif mysql # aggregate syntax: 
query II rowsort label-7198
SELECT ALL + 98, COUNT( * ) - - + MIN( ( - + 29 ) ) AS col2
----
98
-28

skipif mysql # not compatible
query II rowsort label-7198
SELECT ALL + 98, COUNT ( * ) - - + MIN ( ( - + 29 ) ) AS col2
----
98
-28

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

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

query II rowsort
SELECT ( ( + 62 ) ) AS col0, 22 * + 7 * 95 + - 30 * - + 47 AS col1
----
62
16040

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7201
SELECT CAST( NULL AS DECIMAL ) * - + 82 + - - 16 * COALESCE ( + + CASE - 82 WHEN 70 THEN NULL ELSE 74 END, + - 9 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7201
SELECT CAST ( NULL AS REAL ) * - + 82 + - - 16 * COALESCE ( + + CASE - 82 WHEN 70 THEN NULL ELSE 74 END, + - 9 ) AS col2
----
NULL

query II rowsort
SELECT ALL + - 59, - 9 AS col2
----
-59
-9

query I rowsort
SELECT + 99 + + 82 AS col0
----
181

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7206
SELECT - + NULLIF ( + 99, - 80 + - COUNT( * ) + ( + 91 ) / - 50 )
----
-99

skipif mysql # not compatible
query I rowsort label-7206
SELECT - + NULLIF ( + 99, - 80 + - COUNT ( * ) + ( + 91 ) / - 50 )
----
-99

query II rowsort
SELECT - + 3 AS col0, 83 AS col2
----
-3
83

query I rowsort
SELECT + - 87 * - - 30 col2
----
-2610

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7210
SELECT + 62 + 59 DIV - 85 + - 12 * 34 AS col0
----
-346

skipif mysql # not compatible
query I rowsort label-7210
SELECT + 62 + 59 / - 85 + - 12 * 34 AS col0
----
-346

query I rowsort
SELECT DISTINCT + 62 * - 81 AS col1
----
-5022

query I rowsort
SELECT ALL 89 * 97 AS col2
----
8633

onlyif mysql # DIV for integer division: 
query I rowsort label-7213
SELECT DISTINCT + ( - 9 ) DIV - 67 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7213
SELECT DISTINCT + ( - 9 ) / - 67 AS col2
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7215
SELECT ALL MIN( + + 54 )
----
54

skipif mysql # not compatible
query I rowsort label-7215
SELECT ALL MIN ( + + 54 )
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7216
SELECT + SUM( ALL - CAST( + + 67 AS SIGNED ) ) + + 52 AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-7216
SELECT + SUM ( ALL - CAST ( + + 67 AS INTEGER ) ) + + 52 AS col0
----
-15

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

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

query I rowsort
SELECT ALL 1 * 15 AS col2
----
15

query I rowsort
SELECT 2 * 39 * + 52 AS col1
----
4056

query I rowsort
SELECT 37 + 6
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7221
SELECT ALL + CAST( 92 AS SIGNED ) + + 37
----
129

skipif mysql # not compatible
query I rowsort label-7221
SELECT ALL + CAST ( 92 AS INTEGER ) + + 37
----
129

query II rowsort
SELECT ALL 65 * - 14 col2, + 95 AS col0
----
-910
95

query I rowsort
SELECT 27 * + - ( + 94 ) AS col0
----
-2538

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

query I rowsort
SELECT 53 * + 43 AS col0
----
2279

onlyif mysql # DIV for integer division: 
query I rowsort label-7226
SELECT DISTINCT + 70 DIV - 4
----
-17

skipif mysql # not compatible
query I rowsort label-7226
SELECT DISTINCT + 70 / - 4
----
-17

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

skipif mysql # not compatible
query I rowsort label-7227
SELECT 72 / + COUNT ( * ) AS col1
----
72

query I rowsort
SELECT 43 * - 24
----
-1032

onlyif mysql # aggregate syntax: 
query I rowsort label-7229
SELECT ALL - 98 - COUNT( + 17 )
----
-99

skipif mysql # not compatible
query I rowsort label-7229
SELECT ALL - 98 - COUNT ( + 17 )
----
-99

query I rowsort
SELECT 62 + - 79 - - 50 * - 86 * + - 5 + + - 56 / - CASE - + 95 WHEN - 6 THEN + - 90 * 87 END * + 7 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7231
SELECT ALL - CASE 80 WHEN + + 49 THEN NULL WHEN + 53 THEN ( + COUNT( * ) ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7231
SELECT ALL - CASE 80 WHEN + + 49 THEN NULL WHEN + 53 THEN ( + COUNT ( * ) ) END AS col0
----
NULL

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

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

query I rowsort
SELECT 96 * - 21 + ( - - 94 ) - - - 11 * - 80 AS col2
----
-1042

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

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

query I rowsort
SELECT ALL - COALESCE ( - - 57, - 25 + - 50 ) AS col2
----
-57

query I rowsort
SELECT + + 29 * + 59 + + 28
----
1739

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7237
SELECT - CASE - - 82 WHEN + 40 + + 19 THEN + 50 * - + 52 * + 23 * + NULLIF ( 65, - - ( - CASE + COUNT( * ) WHEN - MIN( - 25 ) THEN + 24 WHEN 90 THEN NULL ELSE - + AVG ( DISTINCT + 80 ) END ) ) WHEN + NULLIF ( COUNT( - ( - 83 ) ), 64 - + + 59 ) THEN NULL END, COUNT( DISTINCT + 64 ) DIV - 84 + + 34 AS col2
----
NULL
34

skipif mysql # not compatible
query II rowsort label-7237
SELECT - CASE - - 82 WHEN + 40 + + 19 THEN + 50 * - + 52 * + 23 * + NULLIF ( 65, - - ( - CASE + COUNT ( * ) WHEN - MIN ( - 25 ) THEN + 24 WHEN 90 THEN NULL ELSE - + AVG ( DISTINCT + 80 ) END ) ) WHEN + NULLIF ( COUNT ( - ( - 83 ) ), 64 - + + 59 ) THEN NULL END, COUNT ( DISTINCT + 64 ) / - 84 + + 34 AS col2
----
NULL
34

query I rowsort
SELECT DISTINCT - 8 * + 86 AS col0
----
-688

onlyif mysql # aggregate syntax: 
query II rowsort label-7239
SELECT - MIN( ALL - 58 ), - MIN( - 3 ) AS col0
----
58
3

skipif mysql # not compatible
query II rowsort label-7239
SELECT - MIN ( ALL - 58 ), - MIN ( - 3 ) AS col0
----
58
3

query I rowsort
SELECT + 13 * - 38 * - COALESCE ( + 34, + 8 ) AS col0
----
16796

onlyif mysql # DIV for integer division: 
query I rowsort label-7241
SELECT DISTINCT + + 88 DIV + + 19 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-7241
SELECT DISTINCT + + 88 / + + 19 AS col1
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-7242
SELECT + 40 DIV 79 + + 39 AS col0
----
39

skipif mysql # not compatible
query I rowsort label-7242
SELECT + 40 / 79 + + 39 AS col0
----
39

query I rowsort
SELECT - 79 + + 73
----
-6

query I rowsort
SELECT DISTINCT 18 * - + 95
----
-1710

query I rowsort
SELECT 12 + - 17 AS col0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7246
SELECT COUNT( * ) + + 52 col1
----
53

skipif mysql # not compatible
query I rowsort label-7246
SELECT COUNT ( * ) + + 52 col1
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7247
SELECT DISTINCT + 19 * + + CAST( - - AVG ( - 81 ) AS SIGNED ) AS col1
----
-1539

skipif mysql # not compatible
query I rowsort label-7247
SELECT DISTINCT + 19 * + + CAST ( - - AVG ( - 81 ) AS INTEGER ) AS col1
----
-1539

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7249
SELECT DISTINCT 24 + - + COUNT( * )
----
23

skipif mysql # not compatible
query I rowsort label-7249
SELECT DISTINCT 24 + - + COUNT ( * )
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7250
SELECT ALL CAST( + 60 AS SIGNED ) + - 63 * ( + COUNT( * ) ), + 2 + - 5 AS col0
----
-3
-3

skipif mysql # not compatible
query II rowsort label-7250
SELECT ALL CAST ( + 60 AS INTEGER ) + - 63 * ( + COUNT ( * ) ), + 2 + - 5 AS col0
----
-3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7251
SELECT ALL 59 + + SUM( ALL - 90 )
----
-31

skipif mysql # not compatible
query I rowsort label-7251
SELECT ALL 59 + + SUM ( ALL - 90 )
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-7252
SELECT 8 + + COUNT( * ) * - - CASE + CASE - + ( 4 ) WHEN + 37 + 50 THEN + + 11 END WHEN + + CASE 48 WHEN - 4 THEN - COUNT( * ) * + - 19 / + - 71 ELSE - 91 * + + 89 + + COALESCE ( + 84, - CASE 40 WHEN - - 99 / + 63 THEN + 99 ELSE NULL END * - 97, + + COUNT( * ) / - 77 ) END THEN COUNT( * ) + + + 18 WHEN + 96 THEN 15 * + 47 ELSE NULL END * + 43
----
NULL

skipif mysql # not compatible
query I rowsort label-7252
SELECT 8 + + COUNT ( * ) * - - CASE + CASE - + ( 4 ) WHEN + 37 + 50 THEN + + 11 END WHEN + + CASE 48 WHEN - 4 THEN - COUNT ( * ) * + - 19 / + - 71 ELSE - 91 * + + 89 + + COALESCE ( + 84, - CASE 40 WHEN - - 99 / + 63 THEN + 99 ELSE NULL END * - 97, + + COUNT ( * ) / - 77 ) END THEN COUNT ( * ) + + + 18 WHEN + 96 THEN 15 * + 47 ELSE NULL END * + 43
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7253
SELECT NULLIF ( - 25, - 41 * - - 45 + ( - - 31 ) * 10 + - + 39 * + MAX( + CAST( NULL AS SIGNED ) ) ) + - - COUNT( * ) - - COUNT( DISTINCT 66 ) DIV - 44 * + 98, 21 + - COUNT( * ) col0
----
-24
20

skipif mysql # not compatible
query II rowsort label-7253
SELECT NULLIF ( - 25, - 41 * - - 45 + ( - - 31 ) * 10 + - + 39 * + MAX ( + CAST ( NULL AS INTEGER ) ) ) + - - COUNT ( * ) - - COUNT ( DISTINCT 66 ) / - 44 * + 98, 21 + - COUNT ( * ) col0
----
-24
20

onlyif mysql # aggregate syntax: 
query I rowsort label-7254
SELECT COUNT( - 73 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7254
SELECT COUNT ( - 73 ) AS col2
----
1

query I rowsort
SELECT 66 * 45 + 79
----
3049

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7256
SELECT DISTINCT + 14 * 84 * MIN( ALL - 21 ) - + + ( + 60 ) + + + ( 2 ) + - 47 + CAST( - + 48 AS SIGNED )
----
-24849

skipif mysql # not compatible
query I rowsort label-7256
SELECT DISTINCT + 14 * 84 * MIN ( ALL - 21 ) - + + ( + 60 ) + + + ( 2 ) + - 47 + CAST ( - + 48 AS INTEGER )
----
-24849

onlyif mysql # aggregate syntax: 
query I rowsort label-7257
SELECT DISTINCT ( - COUNT( * ) ) * - 34 / - 59 * - CASE + 22 WHEN 65 * + 97 * - + 6 + - - 74 THEN 66 + + - 44 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7257
SELECT DISTINCT ( - COUNT ( * ) ) * - 34 / - 59 * - CASE + 22 WHEN 65 * + 97 * - + 6 + - - 74 THEN 66 + + - 44 END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7258
SELECT COUNT( * ), ( - 96 ) DIV - - 33 col1
----
1
-2

skipif mysql # not compatible
query II rowsort label-7258
SELECT COUNT ( * ), ( - 96 ) / - - 33 col1
----
1
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7259
SELECT + 69 / - + CASE + 77 WHEN - COUNT( * ) + + 89 / - - 2 + + 87 THEN - + 82 * - NULLIF ( + 86, - + 17 ) + 53 + 10 + + 97 END + - 38 + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7259
SELECT + 69 / - + CASE + 77 WHEN - COUNT ( * ) + + 89 / - - 2 + + 87 THEN - + 82 * - NULLIF ( + 86, - + 17 ) + 53 + 10 + + 97 END + - 38 + - COUNT ( * )
----
NULL

query I rowsort
SELECT ALL 46 * + 59
----
2714

onlyif mysql # aggregate syntax: 
query I rowsort label-7261
SELECT - 94 * + NULLIF ( + + MAX( ALL 12 ), - 57 * + 1 + COUNT( DISTINCT - + 70 ) )
----
-1128

skipif mysql # not compatible
query I rowsort label-7261
SELECT - 94 * + NULLIF ( + + MAX ( ALL 12 ), - 57 * + 1 + COUNT ( DISTINCT - + 70 ) )
----
-1128

onlyif mysql # DIV for integer division: 
query I rowsort label-7262
SELECT - 82 DIV - 88 + 92 * + 19
----
1748

skipif mysql # not compatible
query I rowsort label-7262
SELECT - 82 / - 88 + 92 * + 19
----
1748

query I rowsort
SELECT 99 + 29
----
128

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7266
SELECT DISTINCT + ( - CAST( 37 AS SIGNED ) ), 18 AS col0
----
-37
18

skipif mysql # not compatible
query II rowsort label-7266
SELECT DISTINCT + ( - CAST ( 37 AS INTEGER ) ), 18 AS col0
----
-37
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7267
SELECT ALL - COUNT( * ) DIV - 51
----
0

skipif mysql # not compatible
query I rowsort label-7267
SELECT ALL - COUNT ( * ) / - 51
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7269
SELECT ALL - 24 * - NULLIF ( - ( - - 57 ), - ( + 61 ) ) + - COUNT( * )
----
-1369

skipif mysql # not compatible
query I rowsort label-7269
SELECT ALL - 24 * - NULLIF ( - ( - - 57 ), - ( + 61 ) ) + - COUNT ( * )
----
-1369

query I rowsort
SELECT - - 18 * 51 AS col0
----
918

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

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

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

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

query I rowsort
SELECT ALL + 63 * 34 AS col0
----
2142

onlyif mysql # aggregate syntax: 
query I rowsort label-7274
SELECT - 19 * - COUNT( * ) * - 25 + 96 AS col2
----
-379

skipif mysql # not compatible
query I rowsort label-7274
SELECT - 19 * - COUNT ( * ) * - 25 + 96 AS col2
----
-379

query II rowsort
SELECT - 84, + 51 * + 2 + - 43 AS col0
----
-84
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7276
SELECT + + CASE + 93 WHEN + 29 THEN - + 68 - 86 * - + 84 * 66 + - 18 END + COUNT( * ) / - 79 * 95 * - - MIN( DISTINCT + 99 ) * ( + 41 ) col2, NULLIF ( - 6, - ( - CASE 58 WHEN CAST( - - 84 AS SIGNED ) THEN + + CAST( NULL AS SIGNED ) / 64 * + + 7 / + 21 / + CAST( NULL AS SIGNED ) * + 87 * + 29 WHEN + 83 THEN NULL ELSE NULL END ) ) * - 82
----
NULL
492

skipif mysql # not compatible
query II rowsort label-7276
SELECT + + CASE + 93 WHEN + 29 THEN - + 68 - 86 * - + 84 * 66 + - 18 END + COUNT ( * ) / - 79 * 95 * - - MIN ( DISTINCT + 99 ) * ( + 41 ) col2, NULLIF ( - 6, - ( - CASE 58 WHEN CAST ( - - 84 AS INTEGER ) THEN + + CAST ( NULL AS INTEGER ) / 64 * + + 7 / + 21 / + CAST ( NULL AS INTEGER ) * + 87 * + 29 WHEN + 83 THEN NULL ELSE NULL END ) ) * - 82
----
NULL
492

query I rowsort
SELECT ALL - 72 + + 8
----
-64

onlyif mysql # aggregate syntax: 
query II rowsort label-7278
SELECT ALL + 3 * COUNT( * ) * - CASE + MIN( - 85 ) WHEN - + 96 THEN + 52 * - 64 + + ( - 26 ) ELSE NULL END, 80 * + 27 AS col2
----
NULL
2160

skipif mysql # not compatible
query II rowsort label-7278
SELECT ALL + 3 * COUNT ( * ) * - CASE + MIN ( - 85 ) WHEN - + 96 THEN + 52 * - 64 + + ( - 26 ) ELSE NULL END, 80 * + 27 AS col2
----
NULL
2160

query I rowsort
SELECT - 1 * + 2
----
-2

query I rowsort
SELECT - 60 - - - 18 col1
----
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7281
SELECT + MAX( + 32 ) * - 70 + - 71 AS col0, - CAST( NULL AS SIGNED ) + + - 16 - COUNT( DISTINCT - CASE - - 54 WHEN + 78 THEN - 30 + + 98 END ) AS col0
----
-2311
NULL

skipif mysql # not compatible
query II rowsort label-7281
SELECT + MAX ( + 32 ) * - 70 + - 71 AS col0, - CAST ( NULL AS INTEGER ) + + - 16 - COUNT ( DISTINCT - CASE - - 54 WHEN + 78 THEN - 30 + + 98 END ) AS col0
----
-2311
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7282
SELECT DISTINCT + ( 0 ) DIV - 76 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7282
SELECT DISTINCT + ( 0 ) / - 76 AS col0
----
0

query II rowsort
SELECT - 34, - 9 AS col1
----
-34
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-7284
SELECT - COUNT( * ) AS col1, 85 + + COUNT( ALL 33 ) AS col2
----
-1
86

skipif mysql # not compatible
query II rowsort label-7284
SELECT - COUNT ( * ) AS col1, 85 + + COUNT ( ALL 33 ) AS col2
----
-1
86

query II rowsort
SELECT + NULLIF ( + 79, + 99 * - + 82 + + 14 ) * - 68, - 82 AS col0
----
-5372
-82

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7287
SELECT 37 AS col1, - 37 + - COUNT( * ) + - 86 AS col1
----
37
-124

skipif mysql # not compatible
query II rowsort label-7287
SELECT 37 AS col1, - 37 + - COUNT ( * ) + - 86 AS col1
----
37
-124

onlyif mysql # aggregate syntax: 
query I rowsort label-7288
SELECT - COUNT( * ) * - CASE - 59 WHEN 45 + 69 THEN - + 22 ELSE 25 + - 87 END
----
-62

skipif mysql # not compatible
query I rowsort label-7288
SELECT - COUNT ( * ) * - CASE - 59 WHEN 45 + 69 THEN - + 22 ELSE 25 + - 87 END
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-7289
SELECT ALL 6 - + - SUM( ALL 82 ) * 52 AS col1
----
4270

skipif mysql # not compatible
query I rowsort label-7289
SELECT ALL 6 - + - SUM ( ALL 82 ) * 52 AS col1
----
4270

onlyif mysql # aggregate syntax: 
query I rowsort label-7290
SELECT + CASE + 77 WHEN - - 84 * + 91 * - - COUNT( * ) * - 72 + - 20 * + ( COUNT( * ) ) THEN - + 81 + - 59 WHEN - 39 THEN NULL ELSE - 26 END * - - 7
----
-182

skipif mysql # not compatible
query I rowsort label-7290
SELECT + CASE + 77 WHEN - - 84 * + 91 * - - COUNT ( * ) * - 72 + - 20 * + ( COUNT ( * ) ) THEN - + 81 + - 59 WHEN - 39 THEN NULL ELSE - 26 END * - - 7
----
-182

onlyif mysql # aggregate syntax: 
query I rowsort label-7291
SELECT ALL + ( COUNT( * ) ) * - 81 * - 58 * - 75
----
-352350

skipif mysql # not compatible
query I rowsort label-7291
SELECT ALL + ( COUNT ( * ) ) * - 81 * - 58 * - 75
----
-352350

onlyif mysql # aggregate syntax: 
query II rowsort label-7292
SELECT - COUNT( * ) col2, + AVG ( - 42 ) * + 33 + + 51 * CASE + - COUNT( * ) WHEN - AVG ( DISTINCT 98 ) * - NULLIF ( 81, - ( - - SUM( - 97 ) ) ) + 30 + ( + 25 ) THEN - - 54 + - - MAX( ALL + - ( 88 ) ) WHEN - 86 THEN + 13 END
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-7292
SELECT - COUNT ( * ) col2, + AVG ( - 42 ) * + 33 + + 51 * CASE + - COUNT ( * ) WHEN - AVG ( DISTINCT 98 ) * - NULLIF ( 81, - ( - - SUM ( - 97 ) ) ) + 30 + ( + 25 ) THEN - - 54 + - - MAX ( ALL + - ( 88 ) ) WHEN - 86 THEN + 13 END
----
-1
NULL

query I rowsort
SELECT ( + + COALESCE ( + + 88, 37 ) )
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7294
SELECT ( - CASE - 38 WHEN 16 THEN 2 / - - 35 END ) AS col0, - ( + 19 ) * CAST( + 84 AS SIGNED ) AS col1
----
NULL
-1596

skipif mysql # not compatible
query II rowsort label-7294
SELECT ( - CASE - 38 WHEN 16 THEN 2 / - - 35 END ) AS col0, - ( + 19 ) * CAST ( + 84 AS INTEGER ) AS col1
----
NULL
-1596

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

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

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

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

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7300
SELECT - CASE + - 35 WHEN - CAST( - + ( + + CAST( - COUNT( DISTINCT - 63 ) AS SIGNED ) ) AS SIGNED ) + + 46 THEN + 89 WHEN - CASE CAST( 55 AS DECIMAL ) WHEN 70 * + 11 - - + NULLIF ( - 56, + 22 ) + - NULLIF ( + 66, + 50 + - 34 + + 29 + 93 ) * + 90 * + - 67 - 40 THEN NULL ELSE - + ( - 70 ) END THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7300
SELECT - CASE + - 35 WHEN - CAST ( - + ( + + CAST ( - COUNT ( DISTINCT - 63 ) AS INTEGER ) ) AS INTEGER ) + + 46 THEN + 89 WHEN - CASE CAST ( 55 AS REAL ) WHEN 70 * + 11 - - + NULLIF ( - 56, + 22 ) + - NULLIF ( + 66, + 50 + - 34 + + 29 + 93 ) * + 90 * + - 67 - 40 THEN NULL ELSE - + ( - 70 ) END THEN NULL END
----
NULL

query I rowsort
SELECT ALL - 19 * + + 86 AS col2
----
-1634

onlyif mysql # aggregate syntax: 
query I rowsort label-7302
SELECT + 92 * 17 * - MIN( DISTINCT - 65 ) - - - 89
----
101571

skipif mysql # not compatible
query I rowsort label-7302
SELECT + 92 * 17 * - MIN ( DISTINCT - 65 ) - - - 89
----
101571

onlyif mysql # aggregate syntax: 
query I rowsort label-7303
SELECT DISTINCT + 99 * + - 98 + + ( - - 75 ) * + 21 + + + COUNT( * ) AS col1
----
-8126

skipif mysql # not compatible
query I rowsort label-7303
SELECT DISTINCT + 99 * + - 98 + + ( - - 75 ) * + 21 + + + COUNT ( * ) AS col1
----
-8126

onlyif mysql # DIV for integer division: 
query II rowsort label-7304
SELECT + CASE + + 73 WHEN 62 + - ( - 61 ) DIV + 24 THEN - + 8 ELSE - + 65 END DIV 92, + 54 AS col0
----
0
54

skipif mysql # not compatible
query II rowsort label-7304
SELECT + CASE + + 73 WHEN 62 + - ( - 61 ) / + 24 THEN - + 8 ELSE - + 65 END / 92, + 54 AS col0
----
0
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7305
SELECT ALL ( - - NULLIF ( 82, + + CASE - 71 WHEN 74 + - COUNT( + 39 ) + - 67 / - 74 THEN NULL WHEN + - 42 THEN NULL ELSE + 67 END ) ) * 15 / 8 + + 4 + - 11 * 49 * + CASE - 21 WHEN - CASE - 18 WHEN + - 62 THEN NULL ELSE CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * - MAX( - 49 ) * - CASE 48 WHEN + + COUNT( * ) THEN NULL WHEN - - 1 THEN COUNT( * ) WHEN AVG ( - 61 ) THEN + 62 * 2 END * - 60 END THEN 95 WHEN 61 + 51 THEN - 28 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7305
SELECT ALL ( - - NULLIF ( 82, + + CASE - 71 WHEN 74 + - COUNT ( + 39 ) + - 67 / - 74 THEN NULL WHEN + - 42 THEN NULL ELSE + 67 END ) ) * 15 / 8 + + 4 + - 11 * 49 * + CASE - 21 WHEN - CASE - 18 WHEN + - 62 THEN NULL ELSE CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * - MAX ( - 49 ) * - CASE 48 WHEN + + COUNT ( * ) THEN NULL WHEN - - 1 THEN COUNT ( * ) WHEN AVG ( - 61 ) THEN + 62 * 2 END * - 60 END THEN 95 WHEN 61 + 51 THEN - 28 END AS col2
----
NULL

query I rowsort
SELECT 78 * 89 * + 42 + + - 31 AS col2
----
291533

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7307
SELECT + 12 * - COUNT( * ) + COUNT( * ) + + 72 + + - 51 + - ( 19 ) DIV 19
----
9

skipif mysql # not compatible
query I rowsort label-7307
SELECT + 12 * - COUNT ( * ) + COUNT ( * ) + + 72 + + - 51 + - ( 19 ) / 19
----
9

query II rowsort
SELECT + 68 AS col0, 55 * - 75 AS col1
----
68
-4125

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7309
SELECT - - SUM( DISTINCT + 60 ) DIV 62 * + 77 DIV - ( 15 )
----
0

skipif mysql # not compatible
query I rowsort label-7309
SELECT - - SUM ( DISTINCT + 60 ) / 62 * + 77 / - ( 15 )
----
0

query I rowsort
SELECT - 16 * 14 + - COALESCE ( - + 34, - 90 + + - NULLIF ( - + 83, - + 33 ) ) - - 4 - - 45 AS col2
----
-141

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-7311
SELECT + CASE - + 49 WHEN 24 THEN - SUM( DISTINCT + 5 ) WHEN - CAST( NULL AS DECIMAL ) + CAST( - 85 AS SIGNED ) - - + 56 + 3 + + 8 THEN NULL ELSE NULL END AS col2, - 88 * + COUNT( * ) + + 10 AS col1
----
NULL
-78

skipif mysql # not compatible
query II rowsort label-7311
SELECT + CASE - + 49 WHEN 24 THEN - SUM ( DISTINCT + 5 ) WHEN - CAST ( NULL AS REAL ) + CAST ( - 85 AS INTEGER ) - - + 56 + 3 + + 8 THEN NULL ELSE NULL END AS col2, - 88 * + COUNT ( * ) + + 10 AS col1
----
NULL
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-7312
SELECT ALL + 62 * - 32 + + 90 + - 69 + 62 * 42 * SUM( 99 )
----
255833

skipif mysql # not compatible
query I rowsort label-7312
SELECT ALL + 62 * - 32 + + 90 + - 69 + 62 * 42 * SUM ( 99 )
----
255833

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7314
SELECT DISTINCT - + 96 * 3 * - 45 + + COALESCE ( - 87, 46 + ( + - 59 ), + 69 DIV - + 97 * + - COALESCE ( 87, - 23 ) ) AS col2
----
12873

skipif mysql # not compatible
query I rowsort label-7314
SELECT DISTINCT - + 96 * 3 * - 45 + + COALESCE ( - 87, 46 + ( + - 59 ), + 69 / - + 97 * + - COALESCE ( 87, - 23 ) ) AS col2
----
12873

onlyif mysql # aggregate syntax: 
query I rowsort label-7315
SELECT - - 98 * + COUNT( * ) + + 51 AS col1
----
149

skipif mysql # not compatible
query I rowsort label-7315
SELECT - - 98 * + COUNT ( * ) + + 51 AS col1
----
149

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7316
SELECT DISTINCT + MIN( + CAST( NULL AS SIGNED ) ) / + - 28
----
NULL

skipif mysql # not compatible
query I rowsort label-7316
SELECT DISTINCT + MIN ( + CAST ( NULL AS INTEGER ) ) / + - 28
----
NULL

query I rowsort
SELECT ALL + 86 * + - 25 + NULLIF ( - + 39, + 31 )
----
-2189

query I rowsort
SELECT ALL - 2 * + - 11 + 36 AS col1
----
58

query I rowsort
SELECT DISTINCT + 83 * - 54
----
-4482

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

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

query I rowsort
SELECT + 42 + + 69 * - 20 AS col2
----
-1338

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

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

query II rowsort
SELECT ALL ( 90 ) AS col1, 71
----
90
71

query I rowsort
SELECT ALL COALESCE ( + 73, + - CASE + + 59 WHEN 73 THEN - - 70 * + 28 END, 46 )
----
73

query I rowsort
SELECT - ( 16 ) + ( + - 53 ) * 20 AS col0
----
-1076

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7327
SELECT - CASE - + 24 WHEN - CAST( NULL AS SIGNED ) * + 67 + ( 85 ) + 45 + + 36 - 30 * COUNT( * ) + - 11 THEN NULL ELSE 79 END
----
-79

skipif mysql # not compatible
query I rowsort label-7327
SELECT - CASE - + 24 WHEN - CAST ( NULL AS INTEGER ) * + 67 + ( 85 ) + 45 + + 36 - 30 * COUNT ( * ) + - 11 THEN NULL ELSE 79 END
----
-79

onlyif mysql # DIV for integer division: 
query II rowsort label-7328
SELECT ALL - 39 DIV 19 AS col0, 52 AS col2
----
-2
52

skipif mysql # not compatible
query II rowsort label-7328
SELECT ALL - 39 / 19 AS col0, 52 AS col2
----
-2
52

query I rowsort
SELECT + 34 + - 75 * - 38
----
2884

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7331
SELECT + SUM( + 55 ) AS col2, - 43 AS col0
----
55
-43

skipif mysql # not compatible
query II rowsort label-7331
SELECT + SUM ( + 55 ) AS col2, - 43 AS col0
----
55
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7332
SELECT + 73 * COUNT( * ) + + CAST( NULL AS SIGNED ) + - 19 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7332
SELECT + 73 * COUNT ( * ) + + CAST ( NULL AS INTEGER ) + - 19 col2
----
NULL

query I rowsort
SELECT + COALESCE ( + 40, + 92 - 0 ) * 42 + + 89
----
1769

onlyif mysql # DIV for integer division: 
query I rowsort label-7334
SELECT - 40 DIV - 77 * 72 DIV 47 + - 28 DIV - 56 + 91 AS col0
----
91

skipif mysql # not compatible
query I rowsort label-7334
SELECT - 40 / - 77 * 72 / 47 + - 28 / - 56 + 91 AS col0
----
91

query II rowsort
SELECT ALL - 37 * - COALESCE ( + 76, 99 ) * - 51 col1, 86
----
-143412
86

onlyif mysql # aggregate syntax: 
query I rowsort label-7336
SELECT DISTINCT - 21 + COUNT( * ) + + 61
----
41

skipif mysql # not compatible
query I rowsort label-7336
SELECT DISTINCT - 21 + COUNT ( * ) + + 61
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-7337
SELECT DISTINCT + - 19 + + - COUNT( * ) + - 40 - + 92 + - + 86
----
-238

skipif mysql # not compatible
query I rowsort label-7337
SELECT DISTINCT + - 19 + + - COUNT ( * ) + - 40 - + 92 + - + 86
----
-238

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7339
SELECT - 83 * 66 + + 3 * 49 * + + COUNT( + - 39 ) AS col2
----
-5331

skipif mysql # not compatible
query I rowsort label-7339
SELECT - 83 * 66 + + 3 * 49 * + + COUNT ( + - 39 ) AS col2
----
-5331

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

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

query II rowsort
SELECT ALL - ( 94 ) col2, 36
----
-94
36

onlyif mysql # aggregate syntax: 
query I rowsort label-7342
SELECT + ( 49 ) + + 30 * + + COUNT( * ) AS col0
----
79

skipif mysql # not compatible
query I rowsort label-7342
SELECT + ( 49 ) + + 30 * + + COUNT ( * ) AS col0
----
79

query I rowsort
SELECT + 50 * + 41 col1
----
2050

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7344
SELECT ALL - 72 + 37 - - 39 * + SUM( 77 ) + + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7344
SELECT ALL - 72 + 37 - - 39 * + SUM ( 77 ) + + CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT - ( 39 ) AS col0
----
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7346
SELECT DISTINCT + NULLIF ( + 32, - - 59 ) + + 66 DIV - 59 DIV - COUNT( * ) + 70
----
103

skipif mysql # not compatible
query I rowsort label-7346
SELECT DISTINCT + NULLIF ( + 32, - - 59 ) + + 66 / - 59 / - COUNT ( * ) + 70
----
103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-7347
SELECT 87 + + 46 DIV + + 46 AS col0, CASE - 92 WHEN 44 * + ( NULLIF ( - + 90, - 56 ) ) THEN 71 * + + CAST( 98 AS DECIMAL ) + - + 44 WHEN + + 79 * CAST( ( 21 ) AS SIGNED ) + - + CASE COUNT( * ) WHEN - + 13 + + 41 THEN - + 62 ELSE - 82 END THEN - 56 + 30 END - 14 DIV 26
----
88
NULL

skipif mysql # not compatible
query II rowsort label-7347
SELECT 87 + + 46 / + + 46 AS col0, CASE - 92 WHEN 44 * + ( NULLIF ( - + 90, - 56 ) ) THEN 71 * + + CAST ( 98 AS REAL ) + - + 44 WHEN + + 79 * CAST ( ( 21 ) AS INTEGER ) + - + CASE COUNT ( * ) WHEN - + 13 + + 41 THEN - + 62 ELSE - 82 END THEN - 56 + 30 END - 14 / 26
----
88
NULL

query I rowsort
SELECT ALL - 70 + - 3 col0
----
-73

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

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

query I rowsort
SELECT 11 - - 35
----
46

query I rowsort
SELECT 47 * 57 AS col0
----
2679

onlyif mysql # aggregate syntax: 
query I rowsort label-7352
SELECT 53 + COUNT( * ) * + - 18 AS col0
----
35

skipif mysql # not compatible
query I rowsort label-7352
SELECT 53 + COUNT ( * ) * + - 18 AS col0
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-7353
SELECT 6 AS col1, COUNT( * ) * - - COUNT( * ) + - 15 * + 23 + - - 68 col2, 68 + ( - CAST( - 64 AS SIGNED ) ) AS col0
----
6
-276
132

skipif mysql # not compatible
query III rowsort label-7353
SELECT 6 AS col1, COUNT ( * ) * - - COUNT ( * ) + - 15 * + 23 + - - 68 col2, 68 + ( - CAST ( - 64 AS INTEGER ) ) AS col0
----
6
-276
132

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7354
SELECT 36 * - 95 * + 24 AS col2, CAST( NULL AS SIGNED ) AS col0
----
-82080
NULL

skipif mysql # not compatible
query II rowsort label-7354
SELECT 36 * - 95 * + 24 AS col2, CAST ( NULL AS INTEGER ) AS col0
----
-82080
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7355
SELECT DISTINCT - 25 DIV - NULLIF ( + - COUNT( * ), 89 * + + 83 )
----
-25

skipif mysql # not compatible
query I rowsort label-7355
SELECT DISTINCT - 25 / - NULLIF ( + - COUNT ( * ), 89 * + + 83 )
----
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-7356
SELECT ALL 88 col1, - MAX( 8 ) - + COUNT( * ) AS col2
----
88
-9

skipif mysql # not compatible
query II rowsort label-7356
SELECT ALL 88 col1, - MAX ( 8 ) - + COUNT ( * ) AS col2
----
88
-9

query I rowsort
SELECT ALL - 7 * 55
----
-385

query I rowsort
SELECT 62 * + + 23 AS col1
----
1426

query I rowsort
SELECT DISTINCT 88 * + 93 AS col1
----
8184

onlyif mysql # aggregate syntax: 
query II rowsort label-7360
SELECT 19 AS col2, - COUNT( * ) * + 24 * - NULLIF ( - 86, - 12 ) AS col0
----
19
-2064

skipif mysql # not compatible
query II rowsort label-7360
SELECT 19 AS col2, - COUNT ( * ) * + 24 * - NULLIF ( - 86, - 12 ) AS col0
----
19
-2064

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7361
SELECT DISTINCT - 62 * - CAST( 65 AS SIGNED )
----
4030

skipif mysql # not compatible
query I rowsort label-7361
SELECT DISTINCT - 62 * - CAST ( 65 AS INTEGER )
----
4030

query I rowsort
SELECT DISTINCT - 53 * 99 col2
----
-5247

query I rowsort
SELECT 61 * 6 col2
----
366

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

skipif mysql # not compatible
query II rowsort label-7364
SELECT - 8 AS col0, CAST ( 8 AS INTEGER ) AS col1
----
-8
8

query I rowsort
SELECT ALL - 35 * + 32 AS col0
----
-1120

onlyif mysql # aggregate syntax: 
query I rowsort label-7366
SELECT 77 - - - COUNT( * ) * + 51 AS col0
----
26

skipif mysql # not compatible
query I rowsort label-7366
SELECT 77 - - - COUNT ( * ) * + 51 AS col0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-7367
SELECT DISTINCT SUM( DISTINCT 38 ) col1
----
38

skipif mysql # not compatible
query I rowsort label-7367
SELECT DISTINCT SUM ( DISTINCT 38 ) col1
----
38

query I rowsort
SELECT DISTINCT + + 67 + - 42
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-7369
SELECT DISTINCT - - ( + - ( COUNT( * ) ) ) + - 85 - 35
----
-121

skipif mysql # not compatible
query I rowsort label-7369
SELECT DISTINCT - - ( + - ( COUNT ( * ) ) ) + - 85 - 35
----
-121

query I rowsort
SELECT DISTINCT - + NULLIF ( 49, 47 )
----
-49

query I rowsort
SELECT 36 * 59 + 79 + + 27
----
2230

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7372
SELECT ALL - NULLIF ( + 79, 89 * - CAST( NULL AS SIGNED ) ) / + 75 + + CAST( NULL AS SIGNED ) * + - 81 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7372
SELECT ALL - NULLIF ( + 79, 89 * - CAST ( NULL AS INTEGER ) ) / + 75 + + CAST ( NULL AS INTEGER ) * + - 81 AS col2
----
NULL

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

query I rowsort
SELECT 33 * 60
----
1980

onlyif mysql # DIV for integer division: 
query I rowsort label-7375
SELECT ALL - + 12 DIV 92 col0
----
0

skipif mysql # not compatible
query I rowsort label-7375
SELECT ALL - + 12 / 92 col0
----
0

query II rowsort
SELECT ALL - 66 AS col2, 80 AS col0
----
-66
80

query I rowsort
SELECT ALL + + 37 * + 30 AS col1
----
1110

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

query I rowsort
SELECT 71 + 46 + 49 * + 15 AS col2
----
852

onlyif mysql # aggregate syntax: 
query I rowsort label-7380
SELECT ALL - 40 - COUNT( * ) AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-7380
SELECT ALL - 40 - COUNT ( * ) AS col2
----
-41

query I rowsort
SELECT DISTINCT - - 58 col1
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7382
SELECT ALL - COALESCE ( COUNT( - 33 ), - 94 + - CASE 27 WHEN - - 56 * + 57 DIV - - 36 THEN NULL ELSE - - 54 END * + + 46 + 67, 59 + 29 - + 3 DIV + + COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-7382
SELECT ALL - COALESCE ( COUNT ( - 33 ), - 94 + - CASE 27 WHEN - - 56 * + 57 / - - 36 THEN NULL ELSE - - 54 END * + + 46 + 67, 59 + 29 - + 3 / + + COUNT ( * ) )
----
-1

query I rowsort
SELECT COALESCE ( + + 87, + + 15 ) AS col2
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-7384
SELECT + COUNT( * ) * - 12 col1
----
-12

skipif mysql # not compatible
query I rowsort label-7384
SELECT + COUNT ( * ) * - 12 col1
----
-12

query I rowsort
SELECT 50 + + 42 * 52 * - + 97
----
-211798

onlyif mysql # aggregate syntax: 
query I rowsort label-7386
SELECT + COUNT( - 31 ) * + 85 + - 58 - - - 64
----
-37

skipif mysql # not compatible
query I rowsort label-7386
SELECT + COUNT ( - 31 ) * + 85 + - 58 - - - 64
----
-37

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

query I rowsort
SELECT ALL 83 * 49
----
4067

query I rowsort
SELECT ALL 29 * + ( + + 18 )
----
522

onlyif mysql # aggregate syntax: 
query I rowsort label-7390
SELECT MIN( DISTINCT - - 10 ) * 63 AS col1
----
630

skipif mysql # not compatible
query I rowsort label-7390
SELECT MIN ( DISTINCT - - 10 ) * 63 AS col1
----
630

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7391
SELECT ALL 47 * 62 * + 72 * - + CASE + ( - 50 ) WHEN + - SUM( ALL 41 ) * 19 THEN NULL WHEN 42 THEN NULL ELSE - 49 + - 9 * - COUNT( ALL - - CAST( NULL AS SIGNED ) ) END
----
10280592

skipif mysql # not compatible
query I rowsort label-7391
SELECT ALL 47 * 62 * + 72 * - + CASE + ( - 50 ) WHEN + - SUM ( ALL 41 ) * 19 THEN NULL WHEN 42 THEN NULL ELSE - 49 + - 9 * - COUNT ( ALL - - CAST ( NULL AS INTEGER ) ) END
----
10280592

query II rowsort
SELECT 42 + 40 AS col0, NULLIF ( - + NULLIF ( + 86, + + 66 ), - NULLIF ( + 10, + 86 ) ) AS col0
----
82
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-7393
SELECT MIN( ALL 7 ) - - 56 * + 96
----
5383

skipif mysql # not compatible
query I rowsort label-7393
SELECT MIN ( ALL 7 ) - - 56 * + 96
----
5383

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

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

query I rowsort
SELECT - COALESCE ( 67, 48, - - 40 + 62 )
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-7396
SELECT - NULLIF ( + + 24, + 79 * - 75 ) * - - 42 * - - COUNT( * ) * + - 42 + ( + 82 ) AS col0
----
42418

skipif mysql # not compatible
query I rowsort label-7396
SELECT - NULLIF ( + + 24, + 79 * - 75 ) * - - 42 * - - COUNT ( * ) * + - 42 + ( + 82 ) AS col0
----
42418

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7399
SELECT DISTINCT 46 + + + 45 + 43 - - 37 / + CASE COUNT( * ) WHEN 43 / - + 3 + + 69 THEN NULL WHEN + CAST( NULL AS SIGNED ) * + 53 + + - 27 / 17 + - + 1 THEN 24 / + COUNT( * ) + + COUNT( * ) + + + 86 - 22 WHEN - + 42 + + - 5 + ( - 13 ) THEN 14 - - 60 END + + 86 * + + MIN( - 59 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7399
SELECT DISTINCT 46 + + + 45 + 43 - - 37 / + CASE COUNT ( * ) WHEN 43 / - + 3 + + 69 THEN NULL WHEN + CAST ( NULL AS INTEGER ) * + 53 + + - 27 / 17 + - + 1 THEN 24 / + COUNT ( * ) + + COUNT ( * ) + + + 86 - 22 WHEN - + 42 + + - 5 + ( - 13 ) THEN 14 - - 60 END + + 86 * + + MIN ( - 59 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7400
SELECT - CASE COUNT( * ) WHEN 64 + + 59 * 49 THEN - - 96 ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7400
SELECT - CASE COUNT ( * ) WHEN 64 + + 59 * 49 THEN - - 96 ELSE NULL END col0
----
NULL

query I rowsort
SELECT ALL - 40 + + 2 + + - ( - 67 ) + 88
----
117

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

skipif mysql # not compatible
query I rowsort label-7402
SELECT ALL + 71 + - 73 / CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + ( 47 ) * 6 AS col1
----
282

query I rowsort
SELECT - 61 * + 79 + + 38
----
-4781

query I rowsort
SELECT + 5 * + + 87 AS col0
----
435

onlyif mysql # DIV for integer division: 
query I rowsort label-7406
SELECT - 74 + + 8 DIV 76 AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-7406
SELECT - 74 + + 8 / 76 AS col2
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-7407
SELECT - 97 * + - 84 + + MAX( 79 ) + 55 * - 46 + + 78 + + 19 + + - 90 * COUNT( * ) + + - 66 col1
----
5638

skipif mysql # not compatible
query I rowsort label-7407
SELECT - 97 * + - 84 + + MAX ( 79 ) + 55 * - 46 + + 78 + + 19 + + - 90 * COUNT ( * ) + + - 66 col1
----
5638

query I rowsort
SELECT ALL + + 97 col0
----
97

query I rowsort
SELECT ALL 2 * + 27 * - 81 AS col0
----
-4374

onlyif mysql # aggregate syntax: 
query I rowsort label-7410
SELECT DISTINCT - COUNT( * ) * + + 44 * + 52 * - COUNT( - 14 ) - - 49
----
2337

skipif mysql # not compatible
query I rowsort label-7410
SELECT DISTINCT - COUNT ( * ) * + + 44 * + 52 * - COUNT ( - 14 ) - - 49
----
2337

onlyif mysql # aggregate syntax: 
query I rowsort label-7411
SELECT CASE 44 WHEN - 89 + + - 36 THEN - 35 + + COUNT( * ) WHEN COUNT( * ) - + 68 * 12 THEN NULL WHEN - 3 THEN 14 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7411
SELECT CASE 44 WHEN - 89 + + - 36 THEN - 35 + + COUNT ( * ) WHEN COUNT ( * ) - + 68 * 12 THEN NULL WHEN - 3 THEN 14 ELSE NULL END
----
NULL

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

query II rowsort
SELECT ALL + - 1 * - 33 AS col2, 45 * 90
----
33
4050

onlyif mysql # DIV for integer division: 
query I rowsort label-7414
SELECT - ( + 97 ) * 75 DIV + 35
----
-207

skipif mysql # not compatible
query I rowsort label-7414
SELECT - ( + 97 ) * 75 / + 35
----
-207

query I rowsort
SELECT ALL + - 47 col0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-7416
SELECT - 30 + - COUNT( * ) * + 49
----
-79

skipif mysql # not compatible
query I rowsort label-7416
SELECT - 30 + - COUNT ( * ) * + 49
----
-79

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

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

query I rowsort
SELECT - 43 * - 53 * + 54 AS col1
----
123066

query II rowsort
SELECT + - 92 * + - 38, - 70 AS col2
----
3496
-70

query I rowsort
SELECT 34 * 8 + - 1
----
271

query I rowsort
SELECT DISTINCT + 25 * 76 * 38 * - 48
----
-3465600

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7422
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + 0 / + + 57
----
NULL

skipif mysql # not compatible
query I rowsort label-7422
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + 0 / + + 57
----
NULL

query I rowsort
SELECT DISTINCT + 25 * - 72 col1
----
-1800

query II rowsort
SELECT DISTINCT + 4 AS col1, 37
----
4
37

onlyif mysql # aggregate syntax: 
query I rowsort label-7425
SELECT ALL 18 * - + NULLIF ( - + MIN( DISTINCT + 36 ), - NULLIF ( 79, - - 93 * - 67 - + 65 + - 78 ) ) + 8
----
656

skipif mysql # not compatible
query I rowsort label-7425
SELECT ALL 18 * - + NULLIF ( - + MIN ( DISTINCT + 36 ), - NULLIF ( 79, - - 93 * - 67 - + 65 + - 78 ) ) + 8
----
656

onlyif mysql # aggregate syntax: 
query I rowsort label-7426
SELECT - 12 - + - MIN( 84 )
----
72

skipif mysql # not compatible
query I rowsort label-7426
SELECT - 12 - + - MIN ( 84 )
----
72

query I rowsort
SELECT - COALESCE ( - 75, 28 )
----
75

onlyif mysql # DIV for integer division: 
query II rowsort label-7428
SELECT - 29 * 67 * + 84 AS col2, 36 DIV + NULLIF ( + 54, - 89 * + 19 ) AS col1
----
-163212
0

skipif mysql # not compatible
query II rowsort label-7428
SELECT - 29 * 67 * + 84 AS col2, 36 / + NULLIF ( + 54, - 89 * + 19 ) AS col1
----
-163212
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7429
SELECT MIN( ( + 62 ) ) * - 91 + + 65 + - 81 + + 12 col0
----
-5646

skipif mysql # not compatible
query I rowsort label-7429
SELECT MIN ( ( + 62 ) ) * - 91 + + 65 + - 81 + + 12 col0
----
-5646

onlyif mysql # aggregate syntax: 
query I rowsort label-7430
SELECT COUNT( DISTINCT + 11 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7430
SELECT COUNT ( DISTINCT + 11 ) AS col1
----
1

query I rowsort
SELECT ALL + 44 + ( 46 ) AS col2
----
90

query I rowsort
SELECT ALL 93 + - ( 40 ) col2
----
53

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

query I rowsort
SELECT ALL 70 + + 52 * - 57 * - NULLIF ( 25, + 17 * + - 83 - - 62 ) AS col0
----
74170

onlyif mysql # DIV for integer division: 
query II rowsort label-7435
SELECT DISTINCT 10, 41 * - 92 + ( - - 11 ) * 13 * 48 DIV - - 50 AS col0
----
10
-3635

skipif mysql # not compatible
query II rowsort label-7435
SELECT DISTINCT 10, 41 * - 92 + ( - - 11 ) * 13 * 48 / - - 50 AS col0
----
10
-3635

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7436
SELECT ALL SUM( + + 75 ) + - CAST( + + COUNT( * ) AS SIGNED )
----
74

skipif mysql # not compatible
query I rowsort label-7436
SELECT ALL SUM ( + + 75 ) + - CAST ( + + COUNT ( * ) AS INTEGER )
----
74

query I rowsort
SELECT DISTINCT 75 * - NULLIF ( + NULLIF ( + 28, - 81 * 96 ), + 0 + - + 89 * + ( + 55 ) ) AS col0
----
-2100

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7439
SELECT + CAST( - 65 AS DECIMAL ) / + 47 * + - 61 * + CASE 96 WHEN + 19 THEN NULL WHEN + 84 + + 29 + + 79 THEN NULL WHEN - 54 THEN + 22 WHEN 36 + COUNT( * ) THEN - - 60 * 5 ELSE NULL END / + - 94 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7439
SELECT + CAST ( - 65 AS REAL ) / + 47 * + - 61 * + CASE 96 WHEN + 19 THEN NULL WHEN + 84 + + 29 + + 79 THEN NULL WHEN - 54 THEN + 22 WHEN 36 + COUNT ( * ) THEN - - 60 * 5 ELSE NULL END / + - 94 col0
----
NULL

query I rowsort
SELECT ALL COALESCE ( - 43, 83 )
----
-43

query I rowsort
SELECT + - 3 * - 65 AS col1
----
195

query I rowsort
SELECT + - 54 - + 72 + - 0 * - 68
----
-126

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

query I rowsort
SELECT ALL 8 - - 20 * 9
----
188

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

skipif mysql # not compatible
query I rowsort label-7445
SELECT + 61 * + + CAST ( - ( 14 ) AS INTEGER ) AS col1
----
-854

onlyif mysql # DIV for integer division: 
query I rowsort label-7446
SELECT - 74 DIV - 50 + - 73 AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-7446
SELECT - 74 / - 50 + - 73 AS col2
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7447
SELECT - CAST( - 35 AS SIGNED ) * - + 21 col1
----
-735

skipif mysql # not compatible
query I rowsort label-7447
SELECT - CAST ( - 35 AS INTEGER ) * - + 21 col1
----
-735

query I rowsort
SELECT 38 * + 35 - + + 6
----
1324

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

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

query I rowsort
SELECT + - 52 * + 74 AS col1
----
-3848

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7452
SELECT + MAX( DISTINCT 75 ) DIV + + 98 * + 97 + - + 7 AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-7452
SELECT + MAX ( DISTINCT 75 ) / + + 98 * + 97 + - + 7 AS col2
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7453
SELECT ALL + 67 DIV - 32 + + - SUM( ALL 33 ) AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-7453
SELECT ALL + 67 / - 32 + + - SUM ( ALL 33 ) AS col1
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-7454
SELECT ( + COALESCE ( + + 34, + 42 * + - COUNT( * ) + + 57 ) ) AS col1
----
34

skipif mysql # not compatible
query I rowsort label-7454
SELECT ( + COALESCE ( + + 34, + 42 * + - COUNT ( * ) + + 57 ) ) AS col1
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-7455
SELECT ALL COUNT( * ) * 42 + + 54
----
96

skipif mysql # not compatible
query I rowsort label-7455
SELECT ALL COUNT ( * ) * 42 + + 54
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7456
SELECT + 53 + + ( COALESCE ( 84, + 96 - + COUNT( * ) ) )
----
137

skipif mysql # not compatible
query I rowsort label-7456
SELECT + 53 + + ( COALESCE ( 84, + 96 - + COUNT ( * ) ) )
----
137

query I rowsort
SELECT 52 * + 58 * + ( 0 ) * - + 54 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7458
SELECT MAX( + 70 ) * - 3 + + 32 + - + COUNT( * ) AS col0
----
-179

skipif mysql # not compatible
query I rowsort label-7458
SELECT MAX ( + 70 ) * - 3 + + 32 + - + COUNT ( * ) AS col0
----
-179

query I rowsort
SELECT DISTINCT + 3 + + 64
----
67

onlyif mysql # aggregate syntax: 
query II rowsort label-7460
SELECT ALL - 26, COALESCE ( - 11, 31 ) + COUNT( * ) + - + 81 AS col0
----
-26
-91

skipif mysql # not compatible
query II rowsort label-7460
SELECT ALL - 26, COALESCE ( - 11, 31 ) + COUNT ( * ) + - + 81 AS col0
----
-26
-91

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

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

query II rowsort
SELECT 16 col1, 91
----
16
91

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7463
SELECT 77 - + COALESCE ( - ( + 2 ), - 24 ) + - 75 * NULLIF ( + - 59, - - 84 - - MAX( DISTINCT 7 ) ) / - CAST( NULL AS DECIMAL ), - 32 AS col0
----
NULL
-32

skipif mysql # not compatible
query II rowsort label-7463
SELECT 77 - + COALESCE ( - ( + 2 ), - 24 ) + - 75 * NULLIF ( + - 59, - - 84 - - MAX ( DISTINCT 7 ) ) / - CAST ( NULL AS REAL ), - 32 AS col0
----
NULL
-32

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7466
SELECT ALL - 86 * MAX( ALL - 71 ) AS col2
----
6106

skipif mysql # not compatible
query I rowsort label-7466
SELECT ALL - 86 * MAX ( ALL - 71 ) AS col2
----
6106

onlyif mysql # aggregate syntax: 
query I rowsort label-7467
SELECT DISTINCT + COUNT( * ) * - - 32 * + 39
----
1248

skipif mysql # not compatible
query I rowsort label-7467
SELECT DISTINCT + COUNT ( * ) * - - 32 * + 39
----
1248

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7468
SELECT ALL - 77 + 54 AS col2, CAST( - - AVG ( ALL 89 ) AS SIGNED )
----
-23
89

skipif mysql # not compatible
query II rowsort label-7468
SELECT ALL - 77 + 54 AS col2, CAST ( - - AVG ( ALL 89 ) AS INTEGER )
----
-23
89

query I rowsort
SELECT 77 + + 34
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-7470
SELECT 62 + + COUNT( * ) * - + COUNT( * ) + + + 59
----
120

skipif mysql # not compatible
query I rowsort label-7470
SELECT 62 + + COUNT ( * ) * - + COUNT ( * ) + + + 59
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-7471
SELECT + 43 - - - SUM( DISTINCT - - 75 )
----
-32

skipif mysql # not compatible
query I rowsort label-7471
SELECT + 43 - - - SUM ( DISTINCT - - 75 )
----
-32

query I rowsort
SELECT ALL - - 97 - + 69 AS col1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-7473
SELECT + 87 + - COUNT( * )
----
86

skipif mysql # not compatible
query I rowsort label-7473
SELECT + 87 + - COUNT ( * )
----
86

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7475
SELECT DISTINCT - COUNT( * ) - 42
----
-43

skipif mysql # not compatible
query I rowsort label-7475
SELECT DISTINCT - COUNT ( * ) - 42
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-7476
SELECT DISTINCT CASE - 8 WHEN COUNT( * ) THEN NULLIF ( 48, + ( - - 34 ) ) * + - 44 + + AVG ( 50 ) * - + 14 WHEN + 56 THEN + 40 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7476
SELECT DISTINCT CASE - 8 WHEN COUNT ( * ) THEN NULLIF ( 48, + ( - - 34 ) ) * + - 44 + + AVG ( 50 ) * - + 14 WHEN + 56 THEN + 40 END AS col0
----
NULL

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

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

query II rowsort
SELECT 31 + 85 AS col1, 32 + - - 82 AS col2
----
116
114

query I rowsort
SELECT ALL 62 * - 21 AS col1
----
-1302

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7480
SELECT - 50 + + 12 - - + ( + ( - MIN( + 80 ) ) ) DIV + 50, + 24 col1
----
-39
24

skipif mysql # not compatible
query II rowsort label-7480
SELECT - 50 + + 12 - - + ( + ( - MIN ( + 80 ) ) ) / + 50, + 24 col1
----
-39
24

query I rowsort
SELECT ALL 20 * - + 82 + + 67 AS col0
----
-1573

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7482
SELECT DISTINCT + 82, CAST( NULL AS SIGNED ) AS col2
----
82
NULL

skipif mysql # not compatible
query II rowsort label-7482
SELECT DISTINCT + 82, CAST ( NULL AS INTEGER ) AS col2
----
82
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7483
SELECT ALL + COUNT( * ) * 56 + - - 75
----
131

skipif mysql # not compatible
query I rowsort label-7483
SELECT ALL + COUNT ( * ) * 56 + - - 75
----
131

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

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

query I rowsort
SELECT 0 + + - 24 * - ( ( + 0 ) )
----
0

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7487
SELECT - CAST( - MIN( + - 31 ) AS SIGNED ) * - - COALESCE ( 54, + CAST( - COUNT( * ) AS SIGNED ) ) + + CAST( NULL AS DECIMAL ) + - 8 + - NULLIF ( - ( - 1 ), + 34 + + ( 33 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7487
SELECT - CAST ( - MIN ( + - 31 ) AS INTEGER ) * - - COALESCE ( 54, + CAST ( - COUNT ( * ) AS INTEGER ) ) + + CAST ( NULL AS REAL ) + - 8 + - NULLIF ( - ( - 1 ), + 34 + + ( 33 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7488
SELECT DISTINCT - - CASE - + 92 WHEN - 28 * + 44 + + 40 THEN NULL WHEN + + COUNT( * ) THEN - 98 * + + 51 - + 94 ELSE 45 END col0
----
45

skipif mysql # not compatible
query I rowsort label-7488
SELECT DISTINCT - - CASE - + 92 WHEN - 28 * + 44 + + 40 THEN NULL WHEN + + COUNT ( * ) THEN - 98 * + + 51 - + 94 ELSE 45 END col0
----
45

query II rowsort
SELECT ALL - + 69, - 6 AS col0
----
-69
-6

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

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

query I rowsort
SELECT DISTINCT - NULLIF ( - 25, 71 ) AS col1
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-7492
SELECT - 53 * + 71 + COUNT( * ) AS col0
----
-3762

skipif mysql # not compatible
query I rowsort label-7492
SELECT - 53 * + 71 + COUNT ( * ) AS col0
----
-3762

query I rowsort
SELECT ALL 60 * - 69 AS col1
----
-4140

query I rowsort
SELECT ALL 72 + + 39 AS col1
----
111

query I rowsort
SELECT ALL 30 + 43 col2
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7496
SELECT 46 - - - NULLIF ( - + CAST( NULL AS SIGNED ), - 66 * 34 + + 1 * - - 49 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7496
SELECT 46 - - - NULLIF ( - + CAST ( NULL AS INTEGER ), - 66 * 34 + + 1 * - - 49 )
----
NULL

query I rowsort
SELECT ALL 24 * + - 45 * 61 * - 37
----
2437560

onlyif mysql # DIV for integer division: 
query I rowsort label-7498
SELECT 52 DIV 97 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7498
SELECT 52 / 97 AS col1
----
0

query I rowsort
SELECT ALL 0 * + 16
----
0

query I rowsort
SELECT DISTINCT 29 * - 53 AS col2
----
-1537

onlyif mysql # aggregate syntax: 
query I rowsort label-7501
SELECT ALL - COUNT( * ) + + 29 - - 20 - - + 20 + - - 37 - + 16 + 46 * 16 * - 9 - - ( CASE 64 WHEN - - 30 THEN NULL WHEN + - 48 - + 4 THEN NULL WHEN - 65 THEN - ( 25 ) END ) * + + 83 * + 4
----
NULL

skipif mysql # not compatible
query I rowsort label-7501
SELECT ALL - COUNT ( * ) + + 29 - - 20 - - + 20 + - - 37 - + 16 + 46 * 16 * - 9 - - ( CASE 64 WHEN - - 30 THEN NULL WHEN + - 48 - + 4 THEN NULL WHEN - 65 THEN - ( 25 ) END ) * + + 83 * + 4
----
NULL

query II rowsort
SELECT ALL 64 * 80 AS col2, + 87
----
5120
87

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

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

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

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

query I rowsort
SELECT ALL 17 - - 63 + - 92 * + 0 col1
----
80

query I rowsort
SELECT 71 * ( + ( 14 ) )
----
994

onlyif mysql # aggregate syntax: 
query I rowsort label-7507
SELECT DISTINCT + COUNT( * ) - + + 23
----
-22

skipif mysql # not compatible
query I rowsort label-7507
SELECT DISTINCT + COUNT ( * ) - + + 23
----
-22

query I rowsort
SELECT - 3 * 19 * - 71 + + - 30
----
4017

query I rowsort
SELECT 25 * + 63
----
1575

onlyif mysql # aggregate syntax: 
query I rowsort label-7510
SELECT ALL - + 70 * - COUNT( * ) col1
----
70

skipif mysql # not compatible
query I rowsort label-7510
SELECT ALL - + 70 * - COUNT ( * ) col1
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-7511
SELECT 7 DIV + 28 + + - 30 + 51 + + + 97 + + + 3 + 86
----
207

skipif mysql # not compatible
query I rowsort label-7511
SELECT 7 / + 28 + + - 30 + 51 + + + 97 + + + 3 + 86
----
207

onlyif mysql # aggregate syntax: 
query I rowsort label-7512
SELECT DISTINCT - 59 - + COUNT( * )
----
-60

skipif mysql # not compatible
query I rowsort label-7512
SELECT DISTINCT - 59 - + COUNT ( * )
----
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-7513
SELECT - MIN( - 79 ) * - 4 AS col2, 19 col0
----
-316
19

skipif mysql # not compatible
query II rowsort label-7513
SELECT - MIN ( - 79 ) * - 4 AS col2, 19 col0
----
-316
19

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7515
SELECT DISTINCT - ( - CAST( - 76 AS SIGNED ) ) * + 3 AS col0
----
-228

skipif mysql # not compatible
query I rowsort label-7515
SELECT DISTINCT - ( - CAST ( - 76 AS INTEGER ) ) * + 3 AS col0
----
-228

onlyif mysql # aggregate syntax: 
query I rowsort label-7516
SELECT COUNT( * ) - + 67 - - MIN( DISTINCT - COALESCE ( - + COALESCE ( + 57, - 45 ), + 39 * - + 22 ) ) + - + CASE NULLIF ( - 43, + - 72 ) WHEN - 56 THEN + 80 * - 56 / 7 * ( + AVG ( DISTINCT - 24 ) ) * + - 63 END * - 88 * - 80
----
NULL

skipif mysql # not compatible
query I rowsort label-7516
SELECT COUNT ( * ) - + 67 - - MIN ( DISTINCT - COALESCE ( - + COALESCE ( + 57, - 45 ), + 39 * - + 22 ) ) + - + CASE NULLIF ( - 43, + - 72 ) WHEN - 56 THEN + 80 * - 56 / 7 * ( + AVG ( DISTINCT - 24 ) ) * + - 63 END * - 88 * - 80
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7517
SELECT + CAST( - COUNT( * ) AS SIGNED ) - + 71
----
-72

skipif mysql # not compatible
query I rowsort label-7517
SELECT + CAST ( - COUNT ( * ) AS INTEGER ) - + 71
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7518
SELECT DISTINCT NULLIF ( + + CAST( NULL AS SIGNED ), + 59 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7518
SELECT DISTINCT NULLIF ( + + CAST ( NULL AS INTEGER ), + 59 ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7519
SELECT ALL 54 + + 39, - CAST( + MIN( ALL + 29 ) AS SIGNED ) AS col0
----
93
-29

skipif mysql # not compatible
query II rowsort label-7519
SELECT ALL 54 + + 39, - CAST ( + MIN ( ALL + 29 ) AS INTEGER ) AS col0
----
93
-29

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7521
SELECT ALL - SUM( ALL - 69 ) AS col0
----
69

skipif mysql # not compatible
query I rowsort label-7521
SELECT ALL - SUM ( ALL - 69 ) AS col0
----
69

query I rowsort
SELECT - - NULLIF ( 52, - CASE WHEN NOT ( NOT + - CASE - - 30 WHEN 31 THEN + 33 + 98 + + 38 / 80 END BETWEEN - - 85 AND NULL ) THEN - 37 ELSE NULL END ) AS col2
----
52

query I rowsort
SELECT ALL - 79 * + 33 + + 12 AS col0
----
-2595

onlyif mysql # aggregate syntax: 
query I rowsort label-7524
SELECT 75 * - 56 + 79 + - + CASE - 23 WHEN 6 * + COUNT( * ) THEN + - COUNT( * ) ELSE + - COUNT( * ) END * 56
----
-4065

skipif mysql # not compatible
query I rowsort label-7524
SELECT 75 * - 56 + 79 + - + CASE - 23 WHEN 6 * + COUNT ( * ) THEN + - COUNT ( * ) ELSE + - COUNT ( * ) END * 56
----
-4065

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7525
SELECT - 81 DIV + 46 + - 58 AS col1, + 77 + 29 + + SUM( + 63 ) DIV - 93
----
-59
106

skipif mysql # not compatible
query II rowsort label-7525
SELECT - 81 / + 46 + - 58 AS col1, + 77 + 29 + + SUM ( + 63 ) / - 93
----
-59
106

onlyif mysql # aggregate syntax: 
query I rowsort label-7526
SELECT CASE WHEN 4 BETWEEN + - 36 / - + MIN( ALL ( 24 ) ) AND - COUNT( * ) + + + 0 * - - 93 THEN - 60 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7526
SELECT CASE WHEN 4 BETWEEN + - 36 / - + MIN ( ALL ( 24 ) ) AND - COUNT ( * ) + + + 0 * - - 93 THEN - 60 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7527
SELECT DISTINCT CAST( + + COUNT( * ) AS SIGNED ) * 94 + 17
----
111

skipif mysql # not compatible
query I rowsort label-7527
SELECT DISTINCT CAST ( + + COUNT ( * ) AS INTEGER ) * 94 + 17
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-7528
SELECT CASE WHEN NOT COUNT( * ) < - + 22 THEN + + 14 * - COALESCE ( + 99, + 13 ) ELSE NULL END
----
-1386

skipif mysql # not compatible
query I rowsort label-7528
SELECT CASE WHEN NOT COUNT ( * ) < - + 22 THEN + + 14 * - COALESCE ( + 99, + 13 ) ELSE NULL END
----
-1386

onlyif mysql # aggregate syntax: 
query II rowsort label-7529
SELECT ALL COUNT( * ) * - 5 + - - 98, 11 AS col2
----
93
11

skipif mysql # not compatible
query II rowsort label-7529
SELECT ALL COUNT ( * ) * - 5 + - - 98, 11 AS col2
----
93
11

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7530
SELECT NULLIF ( + 45, + + CASE 17 WHEN 58 * - 85 * - 20 THEN - 75 WHEN 92 - + 1 THEN + + 29 END ) * 20 * - 61 + + 64 + - 22 * SUM( + NULLIF ( 26, - CAST( NULL AS DECIMAL ) ) ) - - 28 AS col1
----
-55380

skipif mysql # not compatible
query I rowsort label-7530
SELECT NULLIF ( + 45, + + CASE 17 WHEN 58 * - 85 * - 20 THEN - 75 WHEN 92 - + 1 THEN + + 29 END ) * 20 * - 61 + + 64 + - 22 * SUM ( + NULLIF ( 26, - CAST ( NULL AS REAL ) ) ) - - 28 AS col1
----
-55380

onlyif mysql # DIV for integer division: 
query I rowsort label-7531
SELECT ALL 70 DIV 92
----
0

skipif mysql # not compatible
query I rowsort label-7531
SELECT ALL 70 / 92
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7533
SELECT ALL 62 * + COUNT( * ) - + 83 + 83 * - - 94
----
7781

skipif mysql # not compatible
query I rowsort label-7533
SELECT ALL 62 * + COUNT ( * ) - + 83 + 83 * - - 94
----
7781

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

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

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

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

query I rowsort
SELECT - 99 * - 89
----
8811

onlyif mysql # aggregate syntax: 
query I rowsort label-7537
SELECT ALL 63 * - + COUNT( * ) * + 59 * + - 40 AS col0
----
148680

skipif mysql # not compatible
query I rowsort label-7537
SELECT ALL 63 * - + COUNT ( * ) * + 59 * + - 40 AS col0
----
148680

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7538
SELECT + 69 * + 70 * + - COALESCE ( - NULLIF ( - ( + 41 ), + 86 ), + COALESCE ( - + COUNT( * ), - ( + 87 ) * 62 + + 39, + 9 + CASE + - 21 WHEN COUNT( DISTINCT - 80 ) + - 14 THEN NULL WHEN - SUM( DISTINCT + CAST( NULL AS SIGNED ) ) + + + 99 THEN + COUNT( * ) + - - 78 END + - 4 DIV - 65 + - 71 ) ) col1
----
-198030

skipif mysql # not compatible
query I rowsort label-7538
SELECT + 69 * + 70 * + - COALESCE ( - NULLIF ( - ( + 41 ), + 86 ), + COALESCE ( - + COUNT ( * ), - ( + 87 ) * 62 + + 39, + 9 + CASE + - 21 WHEN COUNT ( DISTINCT - 80 ) + - 14 THEN NULL WHEN - SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) + + + 99 THEN + COUNT ( * ) + - - 78 END + - 4 / - 65 + - 71 ) ) col1
----
-198030

query I rowsort
SELECT + + 41 - + 75
----
-34

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7541
SELECT + - ( - CAST( NULL AS SIGNED ) ) + + + COUNT( * ) * + 86 AS col2, - 65 * - 78 AS col0
----
NULL
5070

skipif mysql # not compatible
query II rowsort label-7541
SELECT + - ( - CAST ( NULL AS INTEGER ) ) + + + COUNT ( * ) * + 86 AS col2, - 65 * - 78 AS col0
----
NULL
5070

query I rowsort
SELECT - + 92 * - 61
----
5612

query I rowsort
SELECT - NULLIF ( + 57, - 81 / - 95 + + 1 )
----
-57

query I rowsort
SELECT + 58 + - 81 + - 69 * + - 31 AS col0
----
2116

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

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

query II rowsort
SELECT 22 AS col1, 20 AS col2
----
22
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7547
SELECT ALL + - 63 + + 60 + - 80 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7547
SELECT ALL + - 63 + + 60 + - 80 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7548
SELECT ALL 68 + + + 50 - - SUM( DISTINCT - CAST( NULL AS SIGNED ) ) * - 79
----
NULL

skipif mysql # not compatible
query I rowsort label-7548
SELECT ALL 68 + + + 50 - - SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) * - 79
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7549
SELECT - - 65 + ( - SUM( DISTINCT - + 79 ) ) * - - CASE 86 WHEN 12 THEN - + 85 / 0 + - COUNT( * ) * + MAX( 94 ) * 77 WHEN + 86 + - COUNT( * ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7549
SELECT - - 65 + ( - SUM ( DISTINCT - + 79 ) ) * - - CASE 86 WHEN 12 THEN - + 85 / 0 + - COUNT ( * ) * + MAX ( 94 ) * 77 WHEN + 86 + - COUNT ( * ) THEN NULL END
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7551
SELECT ALL + - CASE - 3 WHEN + + 21 THEN + 18 + + + AVG ( 74 ) END + - + CAST( - + 33 AS SIGNED ) * 70 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7551
SELECT ALL + - CASE - 3 WHEN + + 21 THEN + 18 + + + AVG ( 74 ) END + - + CAST ( - + 33 AS INTEGER ) * 70 AS col0
----
NULL

query I rowsort
SELECT ALL - 84 + + - 62 AS col2
----
-146

query I rowsort
SELECT ALL + + 83 + - 49
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-7554
SELECT + ( - 57 ) * MIN( 29 )
----
-1653

skipif mysql # not compatible
query I rowsort label-7554
SELECT + ( - 57 ) * MIN ( 29 )
----
-1653

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7555
SELECT - CASE - 8 WHEN - 17 THEN - 39 + - 22 - + - 45 WHEN - CASE 7 WHEN COUNT( ALL 55 ) / CAST( NULL AS SIGNED ) / - COUNT( * ) THEN NULL WHEN + + 96 THEN 65 END THEN - 48 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7555
SELECT - CASE - 8 WHEN - 17 THEN - 39 + - 22 - + - 45 WHEN - CASE 7 WHEN COUNT ( ALL 55 ) / CAST ( NULL AS INTEGER ) / - COUNT ( * ) THEN NULL WHEN + + 96 THEN 65 END THEN - 48 ELSE NULL END
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7557
SELECT - ( - - ( + SUM( - - 83 ) ) ) + + 50 AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-7557
SELECT - ( - - ( + SUM ( - - 83 ) ) ) + + 50 AS col2
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-7558
SELECT - NULLIF ( + 95, 67 ) * + + MAX( DISTINCT + 61 )
----
-5795

skipif mysql # not compatible
query I rowsort label-7558
SELECT - NULLIF ( + 95, 67 ) * + + MAX ( DISTINCT + 61 )
----
-5795

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7560
SELECT - ( + 8 ) + - - 4 * + 91 + COUNT( * ), - 78 AS col0
----
357
-78

skipif mysql # not compatible
query II rowsort label-7560
SELECT - ( + 8 ) + - - 4 * + 91 + COUNT ( * ), - 78 AS col0
----
357
-78

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7562
SELECT ALL 89 DIV - 14 - 64 * + + COUNT( * ) AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-7562
SELECT ALL 89 / - 14 - 64 * + + COUNT ( * ) AS col2
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-7563
SELECT DISTINCT - MIN( - 26 ) * + - ( - - 61 ) AS col2
----
-1586

skipif mysql # not compatible
query I rowsort label-7563
SELECT DISTINCT - MIN ( - 26 ) * + - ( - - 61 ) AS col2
----
-1586

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7564
SELECT + COUNT( * ) DIV - 76 * + + COALESCE ( + + 86, - 13 + - 15 ) + 12 AS col0
----
12

skipif mysql # not compatible
query I rowsort label-7564
SELECT + COUNT ( * ) / - 76 * + + COALESCE ( + + 86, - 13 + - 15 ) + 12 AS col0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-7565
SELECT - MAX( 56 ) - + + COUNT( * ) * - - 10
----
-66

skipif mysql # not compatible
query I rowsort label-7565
SELECT - MAX ( 56 ) - + + COUNT ( * ) * - - 10
----
-66

query I rowsort
SELECT + 5 * - 67 * + 67 AS col0
----
-22445

query I rowsort
SELECT ALL - 54 * 29 AS col0
----
-1566

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

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

query I rowsort
SELECT DISTINCT 28 * 51 * - CASE - ( 6 ) WHEN + ( 80 ) THEN 4 END col2
----
NULL

query I rowsort
SELECT - 69 * + - COALESCE ( + 22, - ( + - 46 ) + + 18 ) * - 69 AS col2
----
-104742

onlyif mysql # aggregate syntax: 
query I rowsort label-7571
SELECT ALL + SUM( + - 14 ) * 10 * + 43 * - COUNT( * ) * - 52 + + 27
----
-313013

skipif mysql # not compatible
query I rowsort label-7571
SELECT ALL + SUM ( + - 14 ) * 10 * + 43 * - COUNT ( * ) * - 52 + + 27
----
-313013

query I rowsort
SELECT + 45 - - - 9
----
36

query I rowsort
SELECT DISTINCT + + 63 AS col2
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7574
SELECT DISTINCT + COUNT( 21 ) DIV + 42 * 55 - + 51
----
-51

skipif mysql # not compatible
query I rowsort label-7574
SELECT DISTINCT + COUNT ( 21 ) / + 42 * 55 - + 51
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7575
SELECT ALL - - 48 * - - CAST( - + 26 AS SIGNED ) + + 90 + - 9
----
-1167

skipif mysql # not compatible
query I rowsort label-7575
SELECT ALL - - 48 * - - CAST ( - + 26 AS INTEGER ) + + 90 + - 9
----
-1167

query I rowsort
SELECT + - 85 * 44 AS col2
----
-3740

query I rowsort
SELECT ALL - 7 * 98 - - 64 + 60
----
-562

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

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

query I rowsort
SELECT ALL + - 29 * 70 + - 40 + + 33
----
-2037

query I rowsort
SELECT DISTINCT - - 63 * + 39 + - + 12 * - + 72 * 6
----
7641

onlyif mysql # aggregate syntax: 
query I rowsort label-7581
SELECT + - 19 * + 39 / - CASE + 28 WHEN + 68 THEN NULL WHEN - NULLIF ( 71, COUNT( * ) ) THEN - 55 - - 69 ELSE NULL END * + - 20
----
NULL

skipif mysql # not compatible
query I rowsort label-7581
SELECT + - 19 * + 39 / - CASE + 28 WHEN + 68 THEN NULL WHEN - NULLIF ( 71, COUNT ( * ) ) THEN - 55 - - 69 ELSE NULL END * + - 20
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7582
SELECT + 58 - ( COALESCE ( 66, + - COUNT( ALL - + 93 ) ) ) col2
----
-8

skipif mysql # not compatible
query I rowsort label-7582
SELECT + 58 - ( COALESCE ( 66, + - COUNT ( ALL - + 93 ) ) ) col2
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7583
SELECT MIN( ALL + - CAST( NULL AS SIGNED ) ) * + - 95 * + CAST( - 43 AS SIGNED ) + + 34
----
NULL

skipif mysql # not compatible
query I rowsort label-7583
SELECT MIN ( ALL + - CAST ( NULL AS INTEGER ) ) * + - 95 * + CAST ( - 43 AS INTEGER ) + + 34
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7584
SELECT ALL + 58 - + 47 + - 20 - + 91 - - + 93 * 71 DIV + 86 AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-7584
SELECT ALL + 58 - + 47 + - 20 - + 91 - - + 93 * 71 / + 86 AS col0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-7585
SELECT ( - NULLIF ( - 10, + ( - - COUNT( DISTINCT + 30 ) ) ) ) * - 18 col1
----
-180

skipif mysql # not compatible
query I rowsort label-7585
SELECT ( - NULLIF ( - 10, + ( - - COUNT ( DISTINCT + 30 ) ) ) ) * - 18 col1
----
-180

query I rowsort
SELECT DISTINCT 7 - - 61 AS col2
----
68

query I rowsort
SELECT 97 * + 28
----
2716

onlyif mysql # aggregate syntax: 
query I rowsort label-7588
SELECT ALL - COALESCE ( + - COUNT( * ), + - COUNT( * ) * - 20 + 23 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7588
SELECT ALL - COALESCE ( + - COUNT ( * ), + - COUNT ( * ) * - 20 + 23 ) AS col2
----
1

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

skipif mysql # not compatible
query I rowsort label-7589
SELECT DISTINCT - ( - MIN ( 86 ) )
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-7590
SELECT ALL + CASE + NULLIF ( 58, + + 23 * - ( + - ( - - COUNT( * ) ) ) ) WHEN + 66 THEN - 82 END / - 98 * + 29 + + + 53 + + 77 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7590
SELECT ALL + CASE + NULLIF ( 58, + + 23 * - ( + - ( - - COUNT ( * ) ) ) ) WHEN + 66 THEN - 82 END / - 98 * + 29 + + + 53 + + 77 AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-7591
SELECT 6 / + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7592
SELECT ALL + NULLIF ( + COUNT( * ), - 28 ) * 29 AS col2
----
29

skipif mysql # not compatible
query I rowsort label-7592
SELECT ALL + NULLIF ( + COUNT ( * ), - 28 ) * 29 AS col2
----
29

query I rowsort
SELECT 22 * + 79 AS col1
----
1738

query I rowsort
SELECT + 13 + + - 70
----
-57

onlyif mysql # aggregate syntax: 
query II rowsort label-7595
SELECT ALL + - MAX( DISTINCT - 8 ) + - - 24, - ( + 68 ) AS col0
----
32
-68

skipif mysql # not compatible
query II rowsort label-7595
SELECT ALL + - MAX ( DISTINCT - 8 ) + - - 24, - ( + 68 ) AS col0
----
32
-68

query I rowsort
SELECT + ( 76 ) + - 40 AS col0
----
36

query I rowsort
SELECT + + NULLIF ( + 3, - - 35 * 30 ) AS col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7598
SELECT 89 * + + 21 * - 37 * + + NULLIF ( + + COUNT( * ), - 30 ) + - 15 + 51 * 7 AS col0
----
-68811

skipif mysql # not compatible
query I rowsort label-7598
SELECT 89 * + + 21 * - 37 * + + NULLIF ( + + COUNT ( * ), - 30 ) + - 15 + 51 * 7 AS col0
----
-68811

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7599
SELECT ALL - 78 + CAST( NULL AS SIGNED ) * - - 31 * + CASE COALESCE ( 24, - 35, - - ( - + 3 ) - + CASE + ( + 36 ) WHEN + + SUM( 62 ) THEN + ( 62 ) WHEN - 20 + + COALESCE ( + 13, - COUNT( * ) * + - 72 + 55 * 68 + - 12 ) * + + 93 * + 98 THEN NULL WHEN - 30 THEN NULL ELSE NULL END ) WHEN + ( + 80 ) - + COUNT( * ) THEN + COALESCE ( + + CASE 28 WHEN + 86 THEN + 12 END, + + MAX( 70 ) * - - NULLIF ( COUNT( * ), - - 66 ), + 2 * 75 - 26 ) WHEN - COALESCE ( + COUNT( * ), CASE + 63 WHEN + 17 THEN COUNT( * ) ELSE NULL END / + 67 ) + 47 * - COUNT( * ) THEN - SUM( ( 34 ) ) + 20 END + MAX( - 6 ) * - 68 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7599
SELECT ALL - 78 + CAST ( NULL AS INTEGER ) * - - 31 * + CASE COALESCE ( 24, - 35, - - ( - + 3 ) - + CASE + ( + 36 ) WHEN + + SUM ( 62 ) THEN + ( 62 ) WHEN - 20 + + COALESCE ( + 13, - COUNT ( * ) * + - 72 + 55 * 68 + - 12 ) * + + 93 * + 98 THEN NULL WHEN - 30 THEN NULL ELSE NULL END ) WHEN + ( + 80 ) - + COUNT ( * ) THEN + COALESCE ( + + CASE 28 WHEN + 86 THEN + 12 END, + + MAX ( 70 ) * - - NULLIF ( COUNT ( * ), - - 66 ), + 2 * 75 - 26 ) WHEN - COALESCE ( + COUNT ( * ), CASE + 63 WHEN + 17 THEN COUNT ( * ) ELSE NULL END / + 67 ) + 47 * - COUNT ( * ) THEN - SUM ( ( 34 ) ) + 20 END + MAX ( - 6 ) * - 68 AS col0
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7601
SELECT - ( 26 ) * + CAST( + - 11 AS SIGNED ) - + SUM( ALL + 36 ) AS col1
----
250

skipif mysql # not compatible
query I rowsort label-7601
SELECT - ( 26 ) * + CAST ( + - 11 AS INTEGER ) - + SUM ( ALL + 36 ) AS col1
----
250

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7602
SELECT CASE - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) WHEN 93 + - 17 + ( - + 60 ) + + CAST( NULL AS SIGNED ) * - - 95 * - ( - - 47 ) * + 32 THEN NULL WHEN - 62 * 57 * + - 89 + 77 + - 3 + - 16 + + + CAST( + + 34 AS SIGNED ) - - 57 - - - CAST( - - 29 AS SIGNED ) THEN NULL WHEN - + 99 * + 16 THEN + 93 + 32 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7602
SELECT CASE - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) WHEN 93 + - 17 + ( - + 60 ) + + CAST ( NULL AS INTEGER ) * - - 95 * - ( - - 47 ) * + 32 THEN NULL WHEN - 62 * 57 * + - 89 + 77 + - 3 + - 16 + + + CAST ( + + 34 AS INTEGER ) - - 57 - - - CAST ( - - 29 AS INTEGER ) THEN NULL WHEN - + 99 * + 16 THEN + 93 + 32 END col1
----
NULL

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

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

query I rowsort
SELECT ALL - + 79 + 23
----
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7605
SELECT ALL COALESCE ( 61, - - CAST( + 45 AS SIGNED ), - ( + ( - 38 ) ) * - + 16 ) / - ( - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7605
SELECT ALL COALESCE ( 61, - - CAST ( + 45 AS INTEGER ), - ( + ( - 38 ) ) * - + 16 ) / - ( - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7606
SELECT 0 + - 53 + - 18 - + COUNT( * ) * + 38
----
-109

skipif mysql # not compatible
query I rowsort label-7606
SELECT 0 + - 53 + - 18 - + COUNT ( * ) * + 38
----
-109

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7607
SELECT ALL - 37 + CAST( NULL AS SIGNED ) * - 20 + - COALESCE ( + 29, - - 4 ) * 96 / + COALESCE ( + 85, CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7607
SELECT ALL - 37 + CAST ( NULL AS INTEGER ) * - 20 + - COALESCE ( + 29, - - 4 ) * 96 / + COALESCE ( + 85, CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7609
SELECT - SUM( - 93 )
----
93

skipif mysql # not compatible
query I rowsort label-7609
SELECT - SUM ( - 93 )
----
93

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7611
SELECT ( + 63 ) + COUNT( * ) + - - 83 + + 36 col1
----
183

skipif mysql # not compatible
query I rowsort label-7611
SELECT ( + 63 ) + COUNT ( * ) + - - 83 + + 36 col1
----
183

query I rowsort
SELECT ALL + 2 - - 20
----
22

query II rowsort
SELECT - 8 col2, + 4 AS col2
----
-8
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7614
SELECT ALL - 32 DIV + COUNT( * ) col2
----
-32

skipif mysql # not compatible
query I rowsort label-7614
SELECT ALL - 32 / + COUNT ( * ) col2
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-7615
SELECT - 92 + + - COUNT( ALL - + 72 )
----
-93

skipif mysql # not compatible
query I rowsort label-7615
SELECT - 92 + + - COUNT ( ALL - + 72 )
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-7616
SELECT CASE MAX( DISTINCT + 38 ) WHEN - + 74 THEN + 81 WHEN - 85 THEN NULL END + + 89
----
NULL

skipif mysql # not compatible
query I rowsort label-7616
SELECT CASE MAX ( DISTINCT + 38 ) WHEN - + 74 THEN + 81 WHEN - 85 THEN NULL END + + 89
----
NULL

query I rowsort
SELECT ALL 66 * - 72 AS col2
----
-4752

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

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

query I rowsort
SELECT 16 + + + 73 AS col2
----
89

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7621
SELECT ( - + 11 ) * COALESCE ( - COUNT( * ), + 66 * - 61, 27 * - 47 + MAX( 22 ) + COUNT( * ) )
----
11

skipif mysql # not compatible
query I rowsort label-7621
SELECT ( - + 11 ) * COALESCE ( - COUNT ( * ), + 66 * - 61, 27 * - 47 + MAX ( 22 ) + COUNT ( * ) )
----
11

query II rowsort
SELECT ALL - 77 AS col1, + 45 AS col2
----
-77
45

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7624
SELECT ALL CASE - - CASE + - COUNT( * ) WHEN + 34 + - - 44 THEN NULL WHEN - 80 THEN + 86 / - + 32 * + 35 ELSE NULL END WHEN - ( CAST( NULL AS DECIMAL ) ) THEN - 46 * - 45 ELSE - 7 END / + 88 * + + CASE - COUNT( * ) WHEN 76 / - 89 * + 37 THEN + COALESCE ( + COUNT( * ), - + 9 ) * 17 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7624
SELECT ALL CASE - - CASE + - COUNT ( * ) WHEN + 34 + - - 44 THEN NULL WHEN - 80 THEN + 86 / - + 32 * + 35 ELSE NULL END WHEN - ( CAST ( NULL AS REAL ) ) THEN - 46 * - 45 ELSE - 7 END / + 88 * + + CASE - COUNT ( * ) WHEN 76 / - 89 * + 37 THEN + COALESCE ( + COUNT ( * ), - + 9 ) * 17 END
----
NULL

query I rowsort
SELECT 22 + - - 5 * + 66 * + 3 AS col1
----
1012

onlyif mysql # aggregate syntax: 
query II rowsort label-7626
SELECT DISTINCT - 92 col0, + 98 + + COUNT( * ) AS col0
----
-92
99

skipif mysql # not compatible
query II rowsort label-7626
SELECT DISTINCT - 92 col0, + 98 + + COUNT ( * ) AS col0
----
-92
99

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

skipif mysql # not compatible
query I rowsort label-7627
SELECT ALL - MAX ( - 6 )
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7628
SELECT COUNT( * ) AS col2, - CAST( - 40 AS SIGNED )
----
1
40

skipif mysql # not compatible
query II rowsort label-7628
SELECT COUNT ( * ) AS col2, - CAST ( - 40 AS INTEGER )
----
1
40

query I rowsort
SELECT 5 - + - 38
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7630
SELECT ALL - CAST( NULL AS SIGNED ) * - 22 + - 73 * - - 39
----
NULL

skipif mysql # not compatible
query I rowsort label-7630
SELECT ALL - CAST ( NULL AS INTEGER ) * - 22 + - 73 * - - 39
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7632
SELECT + 39 DIV + - COUNT( * ) + - 32 + - 49 + - 31
----
-151

skipif mysql # not compatible
query I rowsort label-7632
SELECT + 39 / + - COUNT ( * ) + - 32 + - 49 + - 31
----
-151

query II rowsort
SELECT DISTINCT - - 62 * 7 - + + 92 - - 81 + + ( + - 38 ), 49 * - 45 AS col1
----
385
-2205

onlyif mysql # DIV for integer division: 
query I rowsort label-7634
SELECT ALL + 56 * + 80 + + 89 * 28 DIV 1 AS col1
----
6972

skipif mysql # not compatible
query I rowsort label-7634
SELECT ALL + 56 * + 80 + + 89 * 28 / 1 AS col1
----
6972

query I rowsort
SELECT DISTINCT + 80 + - 66 + + + 39 * + 37 - 65 AS col0
----
1392

onlyif mysql # DIV for integer division: 
query I rowsort label-7636
SELECT DISTINCT - + 18 DIV 80 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7636
SELECT DISTINCT - + 18 / 80 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7637
SELECT - COUNT( * ) * 1 DIV MIN( 15 ) * 57 + - - 46 * 94 + 18
----
4342

skipif mysql # not compatible
query I rowsort label-7637
SELECT - COUNT ( * ) * 1 / MIN ( 15 ) * 57 + - - 46 * 94 + 18
----
4342

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

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

onlyif mysql # aggregate syntax: 
query III rowsort label-7639
SELECT ALL + + 57 AS col1, - COUNT( * ), + COUNT( * ) AS col0
----
57
-1
1

skipif mysql # not compatible
query III rowsort label-7639
SELECT ALL + + 57 AS col1, - COUNT ( * ), + COUNT ( * ) AS col0
----
57
-1
1

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

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

query II rowsort
SELECT 91 AS col0, 34
----
91
34

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

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

query I rowsort
SELECT + 72 * - 50 + - - 14
----
-3586

onlyif mysql # aggregate syntax: 
query I rowsort label-7645
SELECT ALL + + SUM( 52 ) - + 92 AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-7645
SELECT ALL + + SUM ( 52 ) - + 92 AS col2
----
-40

query II rowsort
SELECT - + 40 col2, - 22 - + 66
----
-40
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-7647
SELECT DISTINCT - COUNT( * ) - - COALESCE ( 32, - + 87 + COUNT( * ) ) AS col2
----
31

skipif mysql # not compatible
query I rowsort label-7647
SELECT DISTINCT - COUNT ( * ) - - COALESCE ( 32, - + 87 + COUNT ( * ) ) AS col2
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-7648
SELECT - 81 * - COUNT( * ) * + 88
----
7128

skipif mysql # not compatible
query I rowsort label-7648
SELECT - 81 * - COUNT ( * ) * + 88
----
7128

onlyif mysql # DIV for integer division: 
query I rowsort label-7649
SELECT DISTINCT 89 DIV 51
----
1

skipif mysql # not compatible
query I rowsort label-7649
SELECT DISTINCT 89 / 51
----
1

query I rowsort
SELECT - 7 * 18
----
-126

query I rowsort
SELECT + 12 * + 91
----
1092

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7652
SELECT - 24 - - 50 - + + 10 - + 44 + - 38 * - ( CAST( NULL AS DECIMAL ) ) / - - 45
----
NULL

skipif mysql # not compatible
query I rowsort label-7652
SELECT - 24 - - 50 - + + 10 - + 44 + - 38 * - ( CAST ( NULL AS REAL ) ) / - - 45
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7653
SELECT + 30 DIV + - ( - + 56 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7653
SELECT + 30 / + - ( - + 56 ) AS col2
----
0

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7656
SELECT - NULLIF ( + - 14, 89 / - MAX( ALL + 94 ) )
----
14

skipif mysql # not compatible
query I rowsort label-7656
SELECT - NULLIF ( + - 14, 89 / - MAX ( ALL + 94 ) )
----
14

query I rowsort
SELECT ALL 88 * - - NULLIF ( + ( 67 ), 47 / + 64 )
----
5896

onlyif mysql # DIV for integer division: 
query II rowsort label-7658
SELECT DISTINCT - 14 * + - 32 AS col0, + 96 DIV 4
----
448
24

skipif mysql # not compatible
query II rowsort label-7658
SELECT DISTINCT - 14 * + - 32 AS col0, + 96 / 4
----
448
24

query I rowsort
SELECT + 46 - + 35
----
11

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7661
SELECT DISTINCT NULLIF ( + 81, - - 77 / + + SUM( + - 55 ) - - 9 * - ( 48 ) ) * + + 71 AS col1
----
5751

skipif mysql # not compatible
query I rowsort label-7661
SELECT DISTINCT NULLIF ( + 81, - - 77 / + + SUM ( + - 55 ) - - 9 * - ( 48 ) ) * + + 71 AS col1
----
5751

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7662
SELECT + 23 + 74 * - CAST( NULL AS SIGNED ) * + COUNT( * ) * + + COUNT( * ) + + COUNT( * ) + - 79 AS col1, - 66 AS col2
----
NULL
-66

skipif mysql # not compatible
query II rowsort label-7662
SELECT + 23 + 74 * - CAST ( NULL AS INTEGER ) * + COUNT ( * ) * + + COUNT ( * ) + + COUNT ( * ) + - 79 AS col1, - 66 AS col2
----
NULL
-66

query I rowsort
SELECT ALL ( 18 ) + + 11 * - 28
----
-290

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7664
SELECT ALL COUNT( * ) + 10 * + 67 + - 95 + - + 8, + 1 + - - 14 DIV - + 59 * + 81 AS col1
----
568
1

skipif mysql # not compatible
query II rowsort label-7664
SELECT ALL COUNT ( * ) + 10 * + 67 + - 95 + - + 8, + 1 + - - 14 / - + 59 * + 81 AS col1
----
568
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7665
SELECT - 82 DIV COUNT( * ) + - COALESCE ( + MAX( DISTINCT + 9 ), + 2 * + + 7 ) AS col2
----
-91

skipif mysql # not compatible
query I rowsort label-7665
SELECT - 82 / COUNT ( * ) + - COALESCE ( + MAX ( DISTINCT + 9 ), + 2 * + + 7 ) AS col2
----
-91

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

skipif mysql # not compatible
query II rowsort label-7666
SELECT ( + - COUNT ( * ) ), 57 col0
----
-1
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7667
SELECT 69 DIV + COUNT( * ) + - 43 + + 49 * + 33
----
1643

skipif mysql # not compatible
query I rowsort label-7667
SELECT 69 / + COUNT ( * ) + - 43 + + 49 * + 33
----
1643

onlyif mysql # aggregate syntax: 
query I rowsort label-7668
SELECT NULLIF ( - 9, - - COUNT( * ) * COUNT( * ) * ( - - 29 ) + COUNT( * ) + - 28 + - - 61 + + ( + - 53 ) * + ( + - ( - 21 ) ) * + 48 * + 46 + - 44 + + 54 * - 74 * + + MIN( - NULLIF ( 43, 39 ) ) + + 39 + + ( 61 ) ) * - 7 - 30 AS col1
----
33

skipif mysql # not compatible
query I rowsort label-7668
SELECT NULLIF ( - 9, - - COUNT ( * ) * COUNT ( * ) * ( - - 29 ) + COUNT ( * ) + - 28 + - - 61 + + ( + - 53 ) * + ( + - ( - 21 ) ) * + 48 * + 46 + - 44 + + 54 * - 74 * + + MIN ( - NULLIF ( 43, 39 ) ) + + 39 + + ( 61 ) ) * - 7 - 30 AS col1
----
33

query II rowsort
SELECT + NULLIF ( - 91, - 35 * - - ( - 8 ) * - 87 + - 25 ) AS col2, 56 * + 91 * - 51 AS col2
----
-91
-259896

query I rowsort
SELECT + 10 * 95 col2
----
950

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7672
SELECT ALL - - ( CASE 4 WHEN + - 1 + + + 80 * 18 THEN CASE 45 WHEN + + MIN( DISTINCT + 3 ) THEN NULL WHEN + - 75 THEN - 57 ELSE - + 68 END END ) * + + 11 + - 47 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7672
SELECT ALL - - ( CASE 4 WHEN + - 1 + + + 80 * 18 THEN CASE 45 WHEN + + MIN ( DISTINCT + 3 ) THEN NULL WHEN + - 75 THEN - 57 ELSE - + 68 END END ) * + + 11 + - 47 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7673
SELECT + 45 * 71 * 56 + + COUNT( * ) AS col2
----
178921

skipif mysql # not compatible
query I rowsort label-7673
SELECT + 45 * 71 * 56 + + COUNT ( * ) AS col2
----
178921

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7674
SELECT ALL + CASE - 69 WHEN - + CAST( - COUNT( * ) AS SIGNED ) * 21 THEN NULL WHEN + 34 + - 53 / + - 26 THEN - - ( ( - + COUNT( * ) ) ) ELSE - 14 * + + 55 + CAST( NULL AS SIGNED ) + - 97 - ( + ( - 91 ) ) + 45 * ( - - 24 ) + 66 END AS col1, 76 * - 11
----
NULL
-836

skipif mysql # not compatible
query II rowsort label-7674
SELECT ALL + CASE - 69 WHEN - + CAST ( - COUNT ( * ) AS INTEGER ) * 21 THEN NULL WHEN + 34 + - 53 / + - 26 THEN - - ( ( - + COUNT ( * ) ) ) ELSE - 14 * + + 55 + CAST ( NULL AS INTEGER ) + - 97 - ( + ( - 91 ) ) + 45 * ( - - 24 ) + 66 END AS col1, 76 * - 11
----
NULL
-836

onlyif mysql # aggregate syntax: 
query II rowsort label-7675
SELECT DISTINCT 23 * + 47, 83 * - COALESCE ( - - 24, + 86, 77 ) * + NULLIF ( + ( - CASE - - 1 WHEN + 44 THEN + 17 WHEN + SUM( ALL + 78 ) THEN NULL ELSE - COUNT( * ) * + 47 END ), + 6 * + 27 - + 82 + 89 ) AS col0
----
1081
-93624

skipif mysql # not compatible
query II rowsort label-7675
SELECT DISTINCT 23 * + 47, 83 * - COALESCE ( - - 24, + 86, 77 ) * + NULLIF ( + ( - CASE - - 1 WHEN + 44 THEN + 17 WHEN + SUM ( ALL + 78 ) THEN NULL ELSE - COUNT ( * ) * + 47 END ), + 6 * + 27 - + 82 + 89 ) AS col0
----
1081
-93624

onlyif mysql # aggregate syntax: 
query II rowsort label-7676
SELECT + + 37 * COUNT( * ), 84 col0
----
37
84

skipif mysql # not compatible
query II rowsort label-7676
SELECT + + 37 * COUNT ( * ), 84 col0
----
37
84

query I rowsort
SELECT + ( - 63 ) + 93 * + 58 AS col1
----
5331

query I rowsort
SELECT - 28 * 93 + - + 37 AS col0
----
-2641

onlyif mysql # aggregate syntax: 
query I rowsort label-7679
SELECT + 41 * + COUNT( * ) + COALESCE ( - COUNT( * ), + + 86 ) + + 9
----
49

skipif mysql # not compatible
query I rowsort label-7679
SELECT + 41 * + COUNT ( * ) + COALESCE ( - COUNT ( * ), + + 86 ) + + 9
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7680
SELECT ALL + + ( - NULLIF ( CAST( + 22 AS SIGNED ), + 83 / ( 54 ) + - - SUM( DISTINCT - + ( + + 89 ) ) ) ) AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-7680
SELECT ALL + + ( - NULLIF ( CAST ( + 22 AS INTEGER ), + 83 / ( 54 ) + - - SUM ( DISTINCT - + ( + + 89 ) ) ) ) AS col2
----
-22

query I rowsort
SELECT - + 80 + 48 + - - 23 * 19 - - 31 + + - 68
----
368

onlyif mysql # DIV for integer division: 
query I rowsort label-7682
SELECT ALL + 10 DIV 42 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7682
SELECT ALL + 10 / 42 AS col0
----
0

query I rowsort
SELECT - - ( 35 ) + + 3 AS col0
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7684
SELECT - + 30 + 3 AS col2, CASE 18 WHEN - + 75 * - - 74 * 83 + - COALESCE ( + + COUNT( * ), - + CAST( COUNT( * ) AS SIGNED ) + + 59 * + COUNT( * ), + + COUNT( * ) ) + - - 33 + 4 * - 51 THEN NULL ELSE + - 32 * 36 END AS col1
----
-27
-1152

skipif mysql # not compatible
query II rowsort label-7684
SELECT - + 30 + 3 AS col2, CASE 18 WHEN - + 75 * - - 74 * 83 + - COALESCE ( + + COUNT ( * ), - + CAST ( COUNT ( * ) AS INTEGER ) + + 59 * + COUNT ( * ), + + COUNT ( * ) ) + - - 33 + 4 * - 51 THEN NULL ELSE + - 32 * 36 END AS col1
----
-27
-1152

query II rowsort
SELECT - NULLIF ( 14, + 97 ), + 62 + + 47 AS col2
----
-14
109

query I rowsort
SELECT - 89 * + - 2 AS col0
----
178

onlyif mysql # aggregate syntax: 
query I rowsort label-7687
SELECT ALL - 27 * - 79 * COUNT( * ) AS col2
----
2133

skipif mysql # not compatible
query I rowsort label-7687
SELECT ALL - 27 * - 79 * COUNT ( * ) AS col2
----
2133

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

query I rowsort
SELECT - ( + 54 ) + 0
----
-54

query II rowsort
SELECT - 75 AS col1, 27 col2
----
-75
27

query I rowsort
SELECT - 53 * - + 33 AS col0
----
1749

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7692
SELECT ALL - COALESCE ( + - COUNT( * ), 65 * 67 + + COUNT( * ) - - + 29, - - COUNT( * ) DIV 56 * - + 61 ) + 64 DIV - 28
----
-1

skipif mysql # not compatible
query I rowsort label-7692
SELECT ALL - COALESCE ( + - COUNT ( * ), 65 * 67 + + COUNT ( * ) - - + 29, - - COUNT ( * ) / 56 * - + 61 ) + 64 / - 28
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7693
SELECT ALL + COUNT( * ) + 21 + + 62 * 78 * - 63 AS col2
----
-304646

skipif mysql # not compatible
query I rowsort label-7693
SELECT ALL + COUNT ( * ) + 21 + + 62 * 78 * - 63 AS col2
----
-304646

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7696
SELECT - SUM( DISTINCT - 94 ) + - 91 + CAST( - COUNT( * ) AS SIGNED ) * + SUM( ( 66 ) ) AS col0
----
-63

skipif mysql # not compatible
query I rowsort label-7696
SELECT - SUM ( DISTINCT - 94 ) + - 91 + CAST ( - COUNT ( * ) AS INTEGER ) * + SUM ( ( 66 ) ) AS col0
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7697
SELECT DISTINCT - CASE + 87 WHEN + COUNT( * ) * 26 * 3 + + - CAST( NULL AS SIGNED ) / + + 43 * + 77 - - 25 / - 16 * + CASE - + 74 WHEN - ( 44 ) THEN - 20 / + COUNT( * ) - + CASE + 61 WHEN + ( + + 61 ) * - 44 THEN + ( - 17 ) END * + + 49 + + 42 * ( - 22 ) END THEN + 93 END + - 99 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7697
SELECT DISTINCT - CASE + 87 WHEN + COUNT ( * ) * 26 * 3 + + - CAST ( NULL AS INTEGER ) / + + 43 * + 77 - - 25 / - 16 * + CASE - + 74 WHEN - ( 44 ) THEN - 20 / + COUNT ( * ) - + CASE + 61 WHEN + ( + + 61 ) * - 44 THEN + ( - 17 ) END * + + 49 + + 42 * ( - 22 ) END THEN + 93 END + - 99 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7698
SELECT - 28 + + 89 * 58, + MIN( ALL 18 ) AS col1
----
5134
18

skipif mysql # not compatible
query II rowsort label-7698
SELECT - 28 + + 89 * 58, + MIN ( ALL 18 ) AS col1
----
5134
18

query II rowsort
SELECT + 93 + - + 48 + + COALESCE ( - 49, + - 13 + 87 + + 97 * ( - NULLIF ( - - 6, + 90 ) ), - - 10 ) * - + 58, - 98 AS col0
----
2887
-98

onlyif mysql # aggregate syntax: 
query II rowsort label-7700
SELECT 33 AS col0, + COUNT( * ) + COUNT( * ) - + - COUNT( * ) + + + ( 2 ) AS col2
----
33
5

skipif mysql # not compatible
query II rowsort label-7700
SELECT 33 AS col0, + COUNT ( * ) + COUNT ( * ) - + - COUNT ( * ) + + + ( 2 ) AS col2
----
33
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7701
SELECT + 69 + 45 + - 35 + COUNT( DISTINCT 62 ) AS col0
----
80

skipif mysql # not compatible
query I rowsort label-7701
SELECT + 69 + 45 + - 35 + COUNT ( DISTINCT 62 ) AS col0
----
80

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

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

query I rowsort
SELECT ALL 92 * + 51 * + 13 AS col2
----
60996

query I rowsort
SELECT ALL 51 + + 2 AS col2
----
53

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7707
SELECT + 42 + + 86 - + - 72 * + COUNT( * ), 14 AS col1
----
200
14

skipif mysql # not compatible
query II rowsort label-7707
SELECT + 42 + + 86 - + - 72 * + COUNT ( * ), 14 AS col1
----
200
14

onlyif mysql # aggregate syntax: 
query I rowsort label-7708
SELECT ALL - - 72 * + - COUNT( + 6 ) + - 80 * + 37
----
-3032

skipif mysql # not compatible
query I rowsort label-7708
SELECT ALL - - 72 * + - COUNT ( + 6 ) + - 80 * + 37
----
-3032

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7710
SELECT 45 AS col2, + 53 DIV - + 88 + - - COUNT( + + 45 ) col1
----
45
1

skipif mysql # not compatible
query II rowsort label-7710
SELECT 45 AS col2, + 53 / - + 88 + - - COUNT ( + + 45 ) col1
----
45
1

query I rowsort
SELECT 69 * - 60 + + 11 * - 24 + ( + 61 ) + - + ( - 49 ) AS col1
----
-4294

query II rowsort
SELECT ALL - 88 AS col1, + 62 AS col2
----
-88
62

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

skipif mysql # not compatible
query I rowsort label-7713
SELECT COUNT ( DISTINCT + 26 ) + - + 53 AS col2
----
-52

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7715
SELECT CASE - 31 WHEN + + COUNT( * ) + - - 86 THEN NULL WHEN 40 * + 63 THEN NULL WHEN COUNT( * ) THEN + - 88 END * 28 * 45
----
NULL

skipif mysql # not compatible
query I rowsort label-7715
SELECT CASE - 31 WHEN + + COUNT ( * ) + - - 86 THEN NULL WHEN 40 * + 63 THEN NULL WHEN COUNT ( * ) THEN + - 88 END * 28 * 45
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7716
SELECT 9 * - 86 * + COUNT( * ) * - 68 + - COALESCE ( - - 3, 43 * COUNT( + 7 ) * - - 37 * - - 39 * - 89 ) * - + 87 * + - 16 col1
----
48456

skipif mysql # not compatible
query I rowsort label-7716
SELECT 9 * - 86 * + COUNT ( * ) * - 68 + - COALESCE ( - - 3, 43 * COUNT ( + 7 ) * - - 37 * - - 39 * - 89 ) * - + 87 * + - 16 col1
----
48456

query I rowsort
SELECT DISTINCT + 81 * - 78 AS col1
----
-6318

onlyif mysql # aggregate syntax: 
query I rowsort label-7718
SELECT - 72 * - - COALESCE ( + SUM( DISTINCT + 31 ), - - 97 * - + 62, + + 83 ) * - COALESCE ( - COUNT( DISTINCT + 3 ), - 1 ) + 38 + + 9
----
-2185

skipif mysql # not compatible
query I rowsort label-7718
SELECT - 72 * - - COALESCE ( + SUM ( DISTINCT + 31 ), - - 97 * - + 62, + + 83 ) * - COALESCE ( - COUNT ( DISTINCT + 3 ), - 1 ) + 38 + + 9
----
-2185

query I rowsort
SELECT ALL 42 * - - 23
----
966

query I rowsort
SELECT DISTINCT - 21 * + + 33 AS col2
----
-693

onlyif mysql # DIV for integer division: 
query I rowsort label-7721
SELECT 93 DIV - + 38 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-7721
SELECT 93 / - + 38 AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7722
SELECT CASE - COUNT( * ) WHEN - + ( - + 61 ) THEN NULL WHEN + 64 THEN - 64 + - 93 END * + 76
----
NULL

skipif mysql # not compatible
query I rowsort label-7722
SELECT CASE - COUNT ( * ) WHEN - + ( - + 61 ) THEN NULL WHEN + 64 THEN - 64 + - 93 END * + 76
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7723
SELECT DISTINCT COUNT( * ) + 26 - 44 + + 87 * - CAST( + - 72 AS SIGNED ) * 70 col2, - 14
----
438463
-14

skipif mysql # not compatible
query II rowsort label-7723
SELECT DISTINCT COUNT ( * ) + 26 - 44 + + 87 * - CAST ( + - 72 AS INTEGER ) * 70 col2, - 14
----
438463
-14

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7725
SELECT ( 88 ) * - - 84 + COALESCE ( + 21, - 70, - 20 DIV + 53 ) + - + 79 * 33 AS col2
----
4806

skipif mysql # not compatible
query I rowsort label-7725
SELECT ( 88 ) * - - 84 + COALESCE ( + 21, - 70, - 20 / + 53 ) + - + 79 * 33 AS col2
----
4806

query I rowsort
SELECT ALL 35 + - 39
----
-4

query I rowsort
SELECT DISTINCT + 50 + 91 col0
----
141

onlyif mysql # DIV for integer division: 
query I rowsort label-7728
SELECT ALL + 41 + + - 93 DIV + 18 col0
----
36

skipif mysql # not compatible
query I rowsort label-7728
SELECT ALL + 41 + + - 93 / + 18 col0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-7729
SELECT ALL COALESCE ( + ( + 36 ), + NULLIF ( 2, 73 ), ( - 71 ) * - + MAX( 89 ) + + 22 + - 18 * - 56 + + COUNT( * ) * + - 86 * - COUNT( * ) ) + + 87
----
123

skipif mysql # not compatible
query I rowsort label-7729
SELECT ALL COALESCE ( + ( + 36 ), + NULLIF ( 2, 73 ), ( - 71 ) * - + MAX ( 89 ) + + 22 + - 18 * - 56 + + COUNT ( * ) * + - 86 * - COUNT ( * ) ) + + 87
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-7730
SELECT ( - COUNT( * ) ) - - + 28
----
27

skipif mysql # not compatible
query I rowsort label-7730
SELECT ( - COUNT ( * ) ) - - + 28
----
27

query I rowsort
SELECT DISTINCT + 61 * 87 AS col0
----
5307

onlyif mysql # aggregate syntax: 
query II rowsort label-7732
SELECT 40 - - + 26 * + - ( + - 40 ) col0, + COALESCE ( + 65, + 20 ) * + - SUM( DISTINCT - 55 ) * - + 47 + - + 24 AS col0
----
1080
-168049

skipif mysql # not compatible
query II rowsort label-7732
SELECT 40 - - + 26 * + - ( + - 40 ) col0, + COALESCE ( + 65, + 20 ) * + - SUM ( DISTINCT - 55 ) * - + 47 + - + 24 AS col0
----
1080
-168049

onlyif mysql # aggregate syntax: 
query I rowsort label-7733
SELECT 50 - + MIN( DISTINCT + 65 ) AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-7733
SELECT 50 - + MIN ( DISTINCT + 65 ) AS col2
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-7734
SELECT 90 + - COUNT( * ) + 56 + - 20 * + 81 * MAX( + 11 ) AS col2
----
-17675

skipif mysql # not compatible
query I rowsort label-7734
SELECT 90 + - COUNT ( * ) + 56 + - 20 * + 81 * MAX ( + 11 ) AS col2
----
-17675

query I rowsort
SELECT ALL - - 70 - + 83 AS col1
----
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-7736
SELECT - 74 DIV + 78 * 84 + - 41 + - 92 * - ( + - ( - ( - 29 ) ) )
----
-2709

skipif mysql # not compatible
query I rowsort label-7736
SELECT - 74 / + 78 * 84 + - 41 + - 92 * - ( + - ( - ( - 29 ) ) )
----
-2709

query I rowsort
SELECT - 54 * 79 AS col0
----
-4266

onlyif mysql # DIV for integer division: 
query I rowsort label-7738
SELECT ALL + 10 DIV + 80 * - 36 col0
----
0

skipif mysql # not compatible
query I rowsort label-7738
SELECT ALL + 10 / + 80 * - 36 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7739
SELECT 69 + COUNT( * ) * + - 26
----
43

skipif mysql # not compatible
query I rowsort label-7739
SELECT 69 + COUNT ( * ) * + - 26
----
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7740
SELECT - 78 * - ( + COUNT( * ) ) - + + 63 col0, 80 + 5 DIV + + 20
----
15
80

skipif mysql # not compatible
query II rowsort label-7740
SELECT - 78 * - ( + COUNT ( * ) ) - + + 63 col0, 80 + 5 / + + 20
----
15
80

query I rowsort
SELECT ALL 59 * 95 * - 47
----
-263435

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

skipif mysql # not compatible
query I rowsort label-7742
SELECT ALL + COUNT ( ALL 43 ) * + - 28 AS col2
----
-28

query I rowsort
SELECT ALL - - 87 col2
----
87

query II rowsort
SELECT ALL - 25 * + 26 + - - 20 + 94, - 28 AS col1
----
-536
-28

query I rowsort
SELECT - 70 * - 87 AS col1
----
6090

onlyif mysql # aggregate syntax: 
query I rowsort label-7746
SELECT + CASE - 79 WHEN + + 34 * - + 52 + + ( 82 ) THEN NULL WHEN + 71 THEN + COUNT( * ) WHEN + + 10 THEN + 19 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7746
SELECT + CASE - 79 WHEN + + 34 * - + 52 + + ( 82 ) THEN NULL WHEN + 71 THEN + COUNT ( * ) WHEN + + 10 THEN + 19 END AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-7747
SELECT DISTINCT - ( + CAST ( - 77 AS INTEGER ) ) col1
----
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7748
SELECT COALESCE ( - 6, + 71 DIV + ( + 75 ), + 38 ) * - COUNT( * ) AS col1
----
6

skipif mysql # not compatible
query I rowsort label-7748
SELECT COALESCE ( - 6, + 71 / + ( + 75 ), + 38 ) * - COUNT ( * ) AS col1
----
6

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

query I rowsort
SELECT ALL 65 + - 90 AS col0
----
-25

query I rowsort
SELECT 6 + - 4 AS col0
----
2

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7753
SELECT ALL ( 13 ) * 86 + - CASE 23 WHEN - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) * - + ( + + ( - MIN( 21 ) ) ) - + CAST( + + 75 AS SIGNED ) THEN + 88 END - 92 + + 38 * + COUNT( * ) * + CASE - 40 WHEN - 26 + ( 91 ) / - 9 * + - 56 * + + COUNT( * ) * - 78 THEN NULL WHEN 37 THEN NULL WHEN 91 THEN COUNT( * ) * + 77 END * + CAST( NULL AS SIGNED ) + - + 91 + - 94 + 20
----
NULL

skipif mysql # not compatible
query I rowsort label-7753
SELECT ALL ( 13 ) * 86 + - CASE 23 WHEN - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) * - + ( + + ( - MIN ( 21 ) ) ) - + CAST ( + + 75 AS INTEGER ) THEN + 88 END - 92 + + 38 * + COUNT ( * ) * + CASE - 40 WHEN - 26 + ( 91 ) / - 9 * + - 56 * + + COUNT ( * ) * - 78 THEN NULL WHEN 37 THEN NULL WHEN 91 THEN COUNT ( * ) * + 77 END * + CAST ( NULL AS INTEGER ) + - + 91 + - 94 + 20
----
NULL

query I rowsort
SELECT ALL 29 + - 96
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-7755
SELECT NULLIF ( COUNT( * ), 32 ) + + 16
----
17

skipif mysql # not compatible
query I rowsort label-7755
SELECT NULLIF ( COUNT ( * ), 32 ) + + 16
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7756
SELECT - 77 * CAST( COUNT( * ) AS SIGNED ) - 26
----
-103

skipif mysql # not compatible
query I rowsort label-7756
SELECT - 77 * CAST ( COUNT ( * ) AS INTEGER ) - 26
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-7757
SELECT ALL ( - + ( MIN( + 55 ) ) ) * + - 14 - - + 26 + + - 19
----
777

skipif mysql # not compatible
query I rowsort label-7757
SELECT ALL ( - + ( MIN ( + 55 ) ) ) * + - 14 - - + 26 + + - 19
----
777

query I rowsort
SELECT 15 + 2 * - 30 - 85
----
-130

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-7759
SELECT 50 + - - 15 * - 85 AS col1, 11 * 97 + 17 - - 27 * 21, - ( + COALESCE ( + - COUNT( * ), COUNT( * ) * - + 94 * + 35, - 62 ) ) * 29 + + + 21 + + - CASE + ( 75 ) WHEN - 48 THEN NULL ELSE - 72 + + 80 END - + - 54 DIV COUNT( * ) AS col0
----
-1225
1651
96

skipif mysql # not compatible
query III rowsort label-7759
SELECT 50 + - - 15 * - 85 AS col1, 11 * 97 + 17 - - 27 * 21, - ( + COALESCE ( + - COUNT ( * ), COUNT ( * ) * - + 94 * + 35, - 62 ) ) * 29 + + + 21 + + - CASE + ( 75 ) WHEN - 48 THEN NULL ELSE - 72 + + 80 END - + - 54 / COUNT ( * ) AS col0
----
-1225
1651
96

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

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

query I rowsort
SELECT ALL - 74 - + 8 AS col1
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-7762
SELECT COALESCE ( - ( + - 16 ), + 2 - - - COUNT( * ) - + ( - - NULLIF ( + 50, + ( + ( - 99 ) ) ) ), + 5 ) + 63 AS col0
----
79

skipif mysql # not compatible
query I rowsort label-7762
SELECT COALESCE ( - ( + - 16 ), + 2 - - - COUNT ( * ) - + ( - - NULLIF ( + 50, + ( + ( - 99 ) ) ) ), + 5 ) + 63 AS col0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-7763
SELECT 50 + ( + COUNT( * ) )
----
51

skipif mysql # not compatible
query I rowsort label-7763
SELECT 50 + ( + COUNT ( * ) )
----
51

query I rowsort
SELECT ALL - 2 * + + 62 AS col0
----
-124

query I rowsort
SELECT - 51 * + 41
----
-2091

onlyif mysql # aggregate syntax: 
query I rowsort label-7766
SELECT - COUNT( * ) + + - 17
----
-18

skipif mysql # not compatible
query I rowsort label-7766
SELECT - COUNT ( * ) + + - 17
----
-18

query I rowsort
SELECT + 21 * 57 AS col1
----
1197

query I rowsort
SELECT - - 19 * 31
----
589

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

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

query II rowsort
SELECT + 77 + - - 45 + + - 63 - + 89 * + 29 AS col2, 89 col0
----
-2522
89

onlyif mysql # aggregate syntax: 
query I rowsort label-7771
SELECT + MIN( - 24 ) * + + 47
----
-1128

skipif mysql # not compatible
query I rowsort label-7771
SELECT + MIN ( - 24 ) * + + 47
----
-1128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7772
SELECT - - CASE + CAST( - COUNT( * ) AS SIGNED ) WHEN - + 40 + CAST( NULL AS SIGNED ) * + + 12 - + - 19 THEN - 80 DIV - 62 * + COUNT( * ) WHEN + 95 + + COUNT( ALL 5 ) THEN 80 * - COUNT( * ) * ( - - 57 ) * + + COUNT( * ) - + - 34 + + + 2 * 91 * 44 + - 55 * - 1 DIV + 84 * + 37 ELSE 94 END
----
94

skipif mysql # not compatible
query I rowsort label-7772
SELECT - - CASE + CAST ( - COUNT ( * ) AS INTEGER ) WHEN - + 40 + CAST ( NULL AS INTEGER ) * + + 12 - + - 19 THEN - 80 / - 62 * + COUNT ( * ) WHEN + 95 + + COUNT ( ALL 5 ) THEN 80 * - COUNT ( * ) * ( - - 57 ) * + + COUNT ( * ) - + - 34 + + + 2 * 91 * 44 + - 55 * - 1 / + 84 * + 37 ELSE 94 END
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-7773
SELECT DISTINCT + COUNT( * ) * - COUNT( * ) + + 46 * + - 73 + - ( - 89 ) * COUNT( * )
----
-3270

skipif mysql # not compatible
query I rowsort label-7773
SELECT DISTINCT + COUNT ( * ) * - COUNT ( * ) + + 46 * + - 73 + - ( - 89 ) * COUNT ( * )
----
-3270

query I rowsort
SELECT - - 17 + - 68
----
-51

query I rowsort
SELECT + CASE - 47 WHEN + - 0 THEN - 35 WHEN + 54 * + 71 THEN + 77 + - - 57 * - - 32 * - 61 END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7776
SELECT - 20 DIV + 26 + - - 47 + SUM( ALL + + 49 ) * 53
----
2644

skipif mysql # not compatible
query I rowsort label-7776
SELECT - 20 / + 26 + - - 47 + SUM ( ALL + + 49 ) * 53
----
2644

onlyif mysql # aggregate syntax: 
query I rowsort label-7777
SELECT ALL + CASE - + 89 WHEN + 48 THEN - COALESCE ( ( - 30 ), + - 82 ) - + 84 WHEN 32 * - COUNT( ALL - 39 ) THEN NULL WHEN - 80 * + ( - ( + 21 ) ) * - 15 * + 58 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7777
SELECT ALL + CASE - + 89 WHEN + 48 THEN - COALESCE ( ( - 30 ), + - 82 ) - + 84 WHEN 32 * - COUNT ( ALL - 39 ) THEN NULL WHEN - 80 * + ( - ( + 21 ) ) * - 15 * + 58 THEN NULL END AS col2
----
NULL

query I rowsort
SELECT - 30 * 81 AS col2
----
-2430

onlyif mysql # aggregate syntax: 
query I rowsort label-7779
SELECT DISTINCT 98 * 14 + - + CASE 29 WHEN - 78 THEN - 37 * - 72 WHEN + + ( 74 ) * + - MIN( ALL 63 ) + + + 61 THEN + SUM( DISTINCT 45 ) * 72 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7779
SELECT DISTINCT 98 * 14 + - + CASE 29 WHEN - 78 THEN - 37 * - 72 WHEN + + ( 74 ) * + - MIN ( ALL 63 ) + + + 61 THEN + SUM ( DISTINCT 45 ) * 72 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7780
SELECT COALESCE ( MAX( ALL + - 25 ), 80, - 54 * - COUNT( - 37 ) - + 82, + 53 ) AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-7780
SELECT COALESCE ( MAX ( ALL + - 25 ), 80, - 54 * - COUNT ( - 37 ) - + 82, + 53 ) AS col0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-7781
SELECT MAX( + COALESCE ( 3, - + 63 ) )
----
3

skipif mysql # not compatible
query I rowsort label-7781
SELECT MAX ( + COALESCE ( 3, - + 63 ) )
----
3

query I rowsort
SELECT + CASE + 86 WHEN - + 3 THEN - 5 ELSE NULL END
----
NULL

query II rowsort
SELECT ALL + 79 col0, 4 AS col1
----
79
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7784
SELECT DISTINCT - 25 * + COUNT( * ) - - 23
----
-2

skipif mysql # not compatible
query I rowsort label-7784
SELECT DISTINCT - 25 * + COUNT ( * ) - - 23
----
-2

query I rowsort
SELECT ALL + 92 * 58 - 93 * - + 24
----
7568

onlyif mysql # aggregate syntax: 
query II rowsort label-7786
SELECT COUNT( * ), - COUNT( DISTINCT 71 ) * - - 90 AS col0
----
1
-90

skipif mysql # not compatible
query II rowsort label-7786
SELECT COUNT ( * ), - COUNT ( DISTINCT 71 ) * - - 90 AS col0
----
1
-90

query I rowsort
SELECT DISTINCT 69 * 77
----
5313

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7788
SELECT DISTINCT CAST( + 76 AS SIGNED ) AS col2, 74 * + 50 AS col2
----
76
3700

skipif mysql # not compatible
query II rowsort label-7788
SELECT DISTINCT CAST ( + 76 AS INTEGER ) AS col2, 74 * + 50 AS col2
----
76
3700

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

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

query I rowsort
SELECT ALL 4 * - 53 AS col1
----
-212

query I rowsort
SELECT - 22 - - + 3
----
-19

query I rowsort
SELECT + 28 * + - 16
----
-448

query I rowsort
SELECT DISTINCT 33 * ( + 22 )
----
726

onlyif mysql # aggregate syntax: 
query I rowsort label-7794
SELECT + 98 + + + 3 - COUNT( * ) + + 0 * + 62 AS col0
----
100

skipif mysql # not compatible
query I rowsort label-7794
SELECT + 98 + + + 3 - COUNT ( * ) + + 0 * + 62 AS col0
----
100

onlyif mysql # DIV for integer division: 
query I rowsort label-7795
SELECT + 75 DIV + 64
----
1

skipif mysql # not compatible
query I rowsort label-7795
SELECT + 75 / + 64
----
1

query I rowsort
SELECT + 80 + + + 47
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-7797
SELECT ALL + 7 * + - 37 * - COUNT( * ) * - 64
----
-16576

skipif mysql # not compatible
query I rowsort label-7797
SELECT ALL + 7 * + - 37 * - COUNT ( * ) * - 64
----
-16576

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7798
SELECT + - 21 * - + CAST( 62 AS SIGNED )
----
1302

skipif mysql # not compatible
query I rowsort label-7798
SELECT + - 21 * - + CAST ( 62 AS INTEGER )
----
1302

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7799
SELECT DISTINCT + 16 + 49 * 35 * + 21 * - 1 * 76 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7799
SELECT DISTINCT + 16 + 49 * 35 * + 21 * - 1 * 76 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + - 88 + + + 90 AS col0
----
2

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7802
SELECT - 68, COALESCE ( + COUNT( * ), - + 41 * - 46 ) AS col1
----
-68
1

skipif mysql # not compatible
query II rowsort label-7802
SELECT - 68, COALESCE ( + COUNT ( * ), - + 41 * - 46 ) AS col1
----
-68
1

query I rowsort
SELECT + 91 * - - 87 AS col0
----
7917

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7804
SELECT DISTINCT - ( 2 ) DIV - 94 - 84 + + 83 * - COUNT( * ) + - - NULLIF ( + + 3, + 98 + + 54 ) AS col0
----
-164

skipif mysql # not compatible
query I rowsort label-7804
SELECT DISTINCT - ( 2 ) / - 94 - 84 + + 83 * - COUNT ( * ) + - - NULLIF ( + + 3, + 98 + + 54 ) AS col0
----
-164

onlyif mysql # aggregate syntax: 
query I rowsort label-7805
SELECT ALL - 40 / CASE + 36 WHEN - AVG ( DISTINCT + 15 ) THEN NULL WHEN - 13 THEN + - MIN( ALL + + 85 ) END + - 1 + - - 67 + - + ( + 33 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7805
SELECT ALL - 40 / CASE + 36 WHEN - AVG ( DISTINCT + 15 ) THEN NULL WHEN - 13 THEN + - MIN ( ALL + + 85 ) END + - 1 + - - 67 + - + ( + 33 )
----
NULL

query II rowsort
SELECT DISTINCT + 50 col0, - 96
----
50
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-7807
SELECT DISTINCT ( - 21 ) DIV + 93 * 29 + 68 AS col1
----
68

skipif mysql # not compatible
query I rowsort label-7807
SELECT DISTINCT ( - 21 ) / + 93 * 29 + 68 AS col1
----
68

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7810
SELECT + ( COALESCE ( + 37, MIN( ALL - + 22 ), - - 62, + 10 + 24 DIV + + 80 - + 96 ) )
----
37

skipif mysql # not compatible
query I rowsort label-7810
SELECT + ( COALESCE ( + 37, MIN ( ALL - + 22 ), - - 62, + 10 + 24 / + + 80 - + 96 ) )
----
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7811
SELECT ALL + COUNT( * ) DIV - 80 + - 9 + - MAX( ALL + 36 ) + + COUNT( * ) AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-7811
SELECT ALL + COUNT ( * ) / - 80 + - 9 + - MAX ( ALL + 36 ) + + COUNT ( * ) AS col1
----
-44

query I rowsort
SELECT ALL 12 * + 4 AS col2
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-7813
SELECT + 36 + + 86 + 13 * + COALESCE ( 14, + 13, + CASE 29 WHEN 25 THEN + + 92 WHEN - - 45 * 74 * ( + 58 ) THEN + + MIN( 35 ) ELSE NULL END ) + + 99
----
403

skipif mysql # not compatible
query I rowsort label-7813
SELECT + 36 + + 86 + 13 * + COALESCE ( 14, + 13, + CASE 29 WHEN 25 THEN + + 92 WHEN - - 45 * 74 * ( + 58 ) THEN + + MIN ( 35 ) ELSE NULL END ) + + 99
----
403

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

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

query I rowsort
SELECT + 12 + + 55 AS col1
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-7817
SELECT - 31 DIV 30 - + - ( + - 94 )
----
-95

skipif mysql # not compatible
query I rowsort label-7817
SELECT - 31 / 30 - + - ( + - 94 )
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-7818
SELECT 10 * COUNT( + 83 ) + + COUNT( * )
----
11

skipif mysql # not compatible
query I rowsort label-7818
SELECT 10 * COUNT ( + 83 ) + + COUNT ( * )
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7819
SELECT - COUNT( * ) * + ( + + 68 ) + - + 91 + + - 44 DIV + + 46
----
-159

skipif mysql # not compatible
query I rowsort label-7819
SELECT - COUNT ( * ) * + ( + + 68 ) + - + 91 + + - 44 / + + 46
----
-159

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7820
SELECT ALL + 47 * - 10 * - ( NULLIF ( 55, NULLIF ( - ( - 84 ), - 72 ) - + CAST( - 72 AS DECIMAL ) + + SUM( DISTINCT - + 14 ) + - 2 ) ) AS col1
----
25850

skipif mysql # not compatible
query I rowsort label-7820
SELECT ALL + 47 * - 10 * - ( NULLIF ( 55, NULLIF ( - ( - 84 ), - 72 ) - + CAST ( - 72 AS REAL ) + + SUM ( DISTINCT - + 14 ) + - 2 ) ) AS col1
----
25850

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7822
SELECT 24 * - 87 * COUNT( * )
----
-2088

skipif mysql # not compatible
query I rowsort label-7822
SELECT 24 * - 87 * COUNT ( * )
----
-2088

onlyif mysql # aggregate syntax: 
query I rowsort label-7823
SELECT 47 * - - 19 * - 1 + - + 44 - + + COUNT( * )
----
-938

skipif mysql # not compatible
query I rowsort label-7823
SELECT 47 * - - 19 * - 1 + - + 44 - + + COUNT ( * )
----
-938

query I rowsort
SELECT ALL - 48 * - 32 AS col1
----
1536

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

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

query II rowsort
SELECT - 64 * + + 24, CASE - 21 WHEN 65 THEN 68 END * - 31 col1
----
-1536
NULL

query I rowsort
SELECT DISTINCT - - 21 + + 24 + + 69 AS col2
----
114

query I rowsort
SELECT 44 + - 65 + - 4 AS col1
----
-25

onlyif mysql # DIV for integer division: 
query II rowsort label-7829
SELECT 75 DIV ( - 32 ) * + 43 + - 59 + 27 + 96, - 20 AS col0
----
-22
-20

skipif mysql # not compatible
query II rowsort label-7829
SELECT 75 / ( - 32 ) * + 43 + - 59 + 27 + 96, - 20 AS col0
----
-22
-20

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7831
SELECT 23 * - - COUNT( 88 ) * + - 24 * + + 51 + 28 - - COUNT( * ) + - - COUNT( * ) * - 57
----
-28180

skipif mysql # not compatible
query I rowsort label-7831
SELECT 23 * - - COUNT ( 88 ) * + - 24 * + + 51 + 28 - - COUNT ( * ) + - - COUNT ( * ) * - 57
----
-28180

query II rowsort
SELECT DISTINCT + 4 + 84 AS col2, + 43
----
88
43

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

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

query II rowsort
SELECT 23 + - - 17 AS col2, 49
----
40
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7835
SELECT ALL - + CAST( - 5 AS SIGNED )
----
5

skipif mysql # not compatible
query I rowsort label-7835
SELECT ALL - + CAST ( - 5 AS INTEGER )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7836
SELECT 26 * - + COUNT( * ) - - 86 + - 67 * - 33 AS col0
----
2271

skipif mysql # not compatible
query I rowsort label-7836
SELECT 26 * - + COUNT ( * ) - - 86 + - 67 * - 33 AS col0
----
2271

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7837
SELECT + MIN( DISTINCT 16 ) DIV + CAST( + 23 AS SIGNED ) + - - COUNT( * ) * 83 AS col1
----
83

skipif mysql # not compatible
query I rowsort label-7837
SELECT + MIN ( DISTINCT 16 ) / + CAST ( + 23 AS INTEGER ) + - - COUNT ( * ) * 83 AS col1
----
83

query II rowsort
SELECT ALL 59 * - + 41 * - - 43 AS col2, + ( + 96 ) AS col2
----
-104017
96

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7840
SELECT 31 * - COUNT( * ) AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-7840
SELECT 31 * - COUNT ( * ) AS col2
----
-31

query I rowsort
SELECT DISTINCT - 33 * - 11 AS col1
----
363

query II rowsort
SELECT ALL ( 21 ) - - + 67, NULLIF ( - 70, - 44 ) AS col0
----
88
-70

query I rowsort
SELECT DISTINCT - ( + 65 ) col2
----
-65

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

skipif mysql # not compatible
query I rowsort label-7844
SELECT ALL - COUNT ( DISTINCT - 51 ) AS col0
----
-1

query I rowsort
SELECT - 39 * + 23 - - 1 - - 52 AS col2
----
-844

query II rowsort
SELECT 17 AS col0, + 50
----
17
50

query I rowsort
SELECT 69 * + 48 col2
----
3312

query II rowsort
SELECT 98 AS col0, 80
----
98
80

query II rowsort
SELECT 59 * + - 81 * - - 26 col1, + 13 AS col0
----
-124254
13

query II rowsort
SELECT 12 AS col1, 37 AS col2
----
12
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7851
SELECT ALL - 2 + + 52 + + MAX( + + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7851
SELECT ALL - 2 + + 52 + + MAX ( + + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7852
SELECT - 23 col0, + 49 * - COALESCE ( - 81, - COUNT( * ), + 40 - + 81 * 44 * + - 30 )
----
-23
3969

skipif mysql # not compatible
query II rowsort label-7852
SELECT - 23 col0, + 49 * - COALESCE ( - 81, - COUNT ( * ), + 40 - + 81 * 44 * + - 30 )
----
-23
3969

query I rowsort
SELECT - 28 + 15 AS col2
----
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-7854
SELECT - 98 * + 42 + - 40 AS col2, + 22 + + 30 * + 5 * - ( 26 ) * - COUNT( * ) + - 13 col1
----
-4156
3909

skipif mysql # not compatible
query II rowsort label-7854
SELECT - 98 * + 42 + - 40 AS col2, + 22 + + 30 * + 5 * - ( 26 ) * - COUNT ( * ) + - 13 col1
----
-4156
3909

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7856
SELECT ALL + - CASE + + SUM( DISTINCT 46 ) WHEN - COUNT( * ) * + + COUNT( * ) + MAX( - + 96 ) - - + 55 * SUM( - 57 ) THEN + 92 * + 19 * + 11 * 42 + + ( - - 78 ) * - + 32 ELSE ( 43 ) + - MIN( DISTINCT - + 78 ) END + - 7 + + COUNT( * )
----
-127

skipif mysql # not compatible
query I rowsort label-7856
SELECT ALL + - CASE + + SUM ( DISTINCT 46 ) WHEN - COUNT ( * ) * + + COUNT ( * ) + MAX ( - + 96 ) - - + 55 * SUM ( - 57 ) THEN + 92 * + 19 * + 11 * 42 + + ( - - 78 ) * - + 32 ELSE ( 43 ) + - MIN ( DISTINCT - + 78 ) END + - 7 + + COUNT ( * )
----
-127

onlyif mysql # aggregate syntax: 
query I rowsort label-7857
SELECT MIN( ALL + 44 ) + + - 97
----
-53

skipif mysql # not compatible
query I rowsort label-7857
SELECT MIN ( ALL + 44 ) + + - 97
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-7858
SELECT + 64 + - + 83 * - ( - MIN( + - 15 ) ) * 44 - - - NULLIF ( + - 44, + + 3 - 83 )
----
54888

skipif mysql # not compatible
query I rowsort label-7858
SELECT + 64 + - + 83 * - ( - MIN ( + - 15 ) ) * 44 - - - NULLIF ( + - 44, + + 3 - 83 )
----
54888

query I rowsort
SELECT ALL + NULLIF ( - 66, 55 + - 80 ) AS col2
----
-66

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

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

query I rowsort
SELECT ALL - - 27 * - 17 AS col0
----
-459

onlyif mysql # aggregate syntax: 
query I rowsort label-7862
SELECT CASE + 45 WHEN 10 THEN + 25 + + 9 + 99 * 14 - + 5 WHEN + + COUNT( * ) THEN NULL ELSE 67 + + MAX( DISTINCT - - 39 ) END AS col0
----
106

skipif mysql # not compatible
query I rowsort label-7862
SELECT CASE + 45 WHEN 10 THEN + 25 + + 9 + 99 * 14 - + 5 WHEN + + COUNT ( * ) THEN NULL ELSE 67 + + MAX ( DISTINCT - - 39 ) END AS col0
----
106

query I rowsort
SELECT ALL + 25 - - + 24 AS col0
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7864
SELECT CAST( + 32 AS SIGNED ) + + NULLIF ( - 83, + - 46 ) + + 53 * - - 25 AS col2
----
1274

skipif mysql # not compatible
query I rowsort label-7864
SELECT CAST ( + 32 AS INTEGER ) + + NULLIF ( - 83, + - 46 ) + + 53 * - - 25 AS col2
----
1274

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7865
SELECT - 14 + + + 49 + - 65 DIV + MAX( 79 ) AS col1
----
35

skipif mysql # not compatible
query I rowsort label-7865
SELECT - 14 + + + 49 + - 65 / + MAX ( 79 ) AS col1
----
35

query I rowsort
SELECT - 36 * + + 59
----
-2124

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7867
SELECT ALL ( - 57 ) * - + 15 * ( + 2 ) * + + 88 + 24 + + 68 DIV + 3 col0, COUNT( * ) AS col0
----
150526
1

skipif mysql # not compatible
query II rowsort label-7867
SELECT ALL ( - 57 ) * - + 15 * ( + 2 ) * + + 88 + 24 + + 68 / + 3 col0, COUNT ( * ) AS col0
----
150526
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7868
SELECT ALL + COALESCE ( + 38, + - 27, - 76 / - 24 ) * - CASE - COUNT( * ) WHEN 43 THEN + + 18 / NULLIF ( - 57, - 47 + + 23 + - ( - - 16 ) ) * - - 24 * - - COUNT( * ) + COUNT( * ) * - 81 * 42 WHEN + + 71 + + 86 + + + 55 * 13 - - 96 + COUNT( * ) * + + 28 THEN + 7 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7868
SELECT ALL + COALESCE ( + 38, + - 27, - 76 / - 24 ) * - CASE - COUNT ( * ) WHEN 43 THEN + + 18 / NULLIF ( - 57, - 47 + + 23 + - ( - - 16 ) ) * - - 24 * - - COUNT ( * ) + COUNT ( * ) * - 81 * 42 WHEN + + 71 + + 86 + + + 55 * 13 - - 96 + COUNT ( * ) * + + 28 THEN + 7 END AS col0
----
NULL

query I rowsort
SELECT + 59 - + 20
----
39

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7871
SELECT + COUNT( * ) * + 73 * + 44
----
3212

skipif mysql # not compatible
query I rowsort label-7871
SELECT + COUNT ( * ) * + 73 * + 44
----
3212

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7872
SELECT DISTINCT 46 DIV + + SUM( + 96 )
----
0

skipif mysql # not compatible
query I rowsort label-7872
SELECT DISTINCT 46 / + + SUM ( + 96 )
----
0

query I rowsort
SELECT + COALESCE ( + - 0, - 30, + + 34, - - 93 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7874
SELECT + ( + + 37 ) - COUNT( ALL + CASE - 93 WHEN 80 THEN 64 ELSE NULL END ) DIV ( - CAST( + + 18 AS SIGNED ) ) * - - CASE 68 WHEN - 14 + - - 72 THEN - 94 * 83 + - + 21 - - 94 WHEN - 97 THEN NULL ELSE + 74 * - 78 + - - 68 * + - 19 END AS col1
----
37

skipif mysql # not compatible
query I rowsort label-7874
SELECT + ( + + 37 ) - COUNT ( ALL + CASE - 93 WHEN 80 THEN 64 ELSE NULL END ) / ( - CAST ( + + 18 AS INTEGER ) ) * - - CASE 68 WHEN - 14 + - - 72 THEN - 94 * 83 + - + 21 - - 94 WHEN - 97 THEN NULL ELSE + 74 * - 78 + - - 68 * + - 19 END AS col1
----
37

onlyif mysql # aggregate syntax: 
query II rowsort label-7875
SELECT + COALESCE ( - - 65, 15 - + 3, 72 ) AS col2, COALESCE ( - + SUM( ALL 55 ), + 39, - 29 + + 17 ) + + COALESCE ( - - 50, - 80, - 39 ) + + 31 * 74
----
65
2289

skipif mysql # not compatible
query II rowsort label-7875
SELECT + COALESCE ( - - 65, 15 - + 3, 72 ) AS col2, COALESCE ( - + SUM ( ALL 55 ), + 39, - 29 + + 17 ) + + COALESCE ( - - 50, - 80, - 39 ) + + 31 * 74
----
65
2289

onlyif mysql # aggregate syntax: 
query I rowsort label-7876
SELECT SUM( + 44 ) * + ( - 10 ) + - - 17
----
-423

skipif mysql # not compatible
query I rowsort label-7876
SELECT SUM ( + 44 ) * + ( - 10 ) + - - 17
----
-423

onlyif mysql # aggregate syntax: 
query I rowsort label-7877
SELECT MIN( ALL - 66 ) AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-7877
SELECT MIN ( ALL - 66 ) AS col2
----
-66

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7879
SELECT + COUNT( * ) + - 38 AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-7879
SELECT + COUNT ( * ) + - 38 AS col2
----
-37

query I rowsort
SELECT ALL 51 * ( 24 )
----
1224

query II rowsort
SELECT + - 65 * - 93, CASE + 37 WHEN + 48 THEN - 65 END / 18 + + - 91 * ( + 56 ) + + 3 AS col2
----
6045
NULL

query II rowsort
SELECT + ( 73 ), 56 AS col1
----
73
56

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7883
SELECT - + 84 + - 47 + + NULLIF ( + CAST( - 16 AS SIGNED ), + + 9 ) - - + 35 * 94 + - 17 AS col0, 34
----
3126
34

skipif mysql # not compatible
query II rowsort label-7883
SELECT - + 84 + - 47 + + NULLIF ( + CAST ( - 16 AS INTEGER ), + + 9 ) - - + 35 * 94 + - 17 AS col0, 34
----
3126
34

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7884
SELECT ALL - CAST( NULL AS DECIMAL ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7884
SELECT ALL - CAST ( NULL AS REAL ) col2
----
NULL

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

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

query I rowsort
SELECT + 57 * + - 38 * + - 19
----
41154

onlyif mysql # aggregate syntax: 
query I rowsort label-7887
SELECT - CASE - + COUNT( * ) WHEN 63 * NULLIF ( + - 61, 80 + + 82 ) THEN - 83 + - + 90 WHEN NULLIF ( + 51, + - 47 ) * - 56 THEN NULL WHEN 75 * + ( + - NULLIF ( + 5, - + 34 ) ) + + NULLIF ( 58, - - 79 ) + + ( + 24 ) THEN + 22 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7887
SELECT - CASE - + COUNT ( * ) WHEN 63 * NULLIF ( + - 61, 80 + + 82 ) THEN - 83 + - + 90 WHEN NULLIF ( + 51, + - 47 ) * - 56 THEN NULL WHEN 75 * + ( + - NULLIF ( + 5, - + 34 ) ) + + NULLIF ( 58, - - 79 ) + + ( + 24 ) THEN + 22 END AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 77 - - 62 * 79 col2
----
4975

query I rowsort
SELECT ALL + 54 * - COALESCE ( + - 26, - + 95 + - 56 ) * - 99 + 11 * - 30 + - - 60 * + 49 + + + 55
----
-136331

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7890
SELECT - 85 DIV 2 * COUNT( * )
----
-42

skipif mysql # not compatible
query I rowsort label-7890
SELECT - 85 / 2 * COUNT ( * )
----
-42

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7892
SELECT ALL + CASE 47 WHEN + CAST( NULL AS SIGNED ) - + 47 * 49 THEN - CAST( NULL AS DECIMAL ) * - - ( COUNT( * ) ) * 64 WHEN - 66 THEN SUM( + 93 ) END * + - 12 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7892
SELECT ALL + CASE 47 WHEN + CAST ( NULL AS INTEGER ) - + 47 * 49 THEN - CAST ( NULL AS REAL ) * - - ( COUNT ( * ) ) * 64 WHEN - 66 THEN SUM ( + 93 ) END * + - 12 AS col2
----
NULL

query I rowsort
SELECT + + 88 - - + 41 + + - 79
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-7894
SELECT - + 83 DIV + 50 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7894
SELECT - + 83 / + 50 AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7895
SELECT DISTINCT - 61 - + CASE + + 63 WHEN 7 / - COUNT( * ) * 56 + - 11 THEN + + CAST( NULL AS SIGNED ) WHEN 16 + SUM( 94 ) / - 8 THEN - CASE 68 WHEN + MIN( ALL + 19 ) * + COUNT( * ) THEN + + 88 WHEN + 55 THEN + 32 ELSE 72 END - - - 24 END / 24 / + 32 col1, MIN( - 21 ) AS col1
----
NULL
-21

skipif mysql # not compatible
query II rowsort label-7895
SELECT DISTINCT - 61 - + CASE + + 63 WHEN 7 / - COUNT ( * ) * 56 + - 11 THEN + + CAST ( NULL AS INTEGER ) WHEN 16 + SUM ( 94 ) / - 8 THEN - CASE 68 WHEN + MIN ( ALL + 19 ) * + COUNT ( * ) THEN + + 88 WHEN + 55 THEN + 32 ELSE 72 END - - - 24 END / 24 / + 32 col1, MIN ( - 21 ) AS col1
----
NULL
-21

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

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

query I rowsort
SELECT DISTINCT COALESCE ( - + 2, 32 ) AS col0
----
-2

query I rowsort
SELECT - 59 + 87 * + + 25 col2
----
2116

query I rowsort
SELECT DISTINCT + CASE + 53 WHEN 47 THEN 68 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7901
SELECT + MIN( DISTINCT + - 36 ) AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-7901
SELECT + MIN ( DISTINCT + - 36 ) AS col1
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-7902
SELECT - 6 * + COUNT( * ) * + 27
----
-162

skipif mysql # not compatible
query I rowsort label-7902
SELECT - 6 * + COUNT ( * ) * + 27
----
-162

onlyif mysql # aggregate syntax: 
query I rowsort label-7903
SELECT + COALESCE ( COUNT( * ), - - 4 ) * - 90 AS col0
----
-90

skipif mysql # not compatible
query I rowsort label-7903
SELECT + COALESCE ( COUNT ( * ), - - 4 ) * - 90 AS col0
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-7904
SELECT ALL - 89 DIV - 97 + 76
----
76

skipif mysql # not compatible
query I rowsort label-7904
SELECT ALL - 89 / - 97 + 76
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-7905
SELECT + COALESCE ( - + 13, + ( - ( + 2 ) ) * - 21, 89 + COUNT( * ) ) AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-7905
SELECT + COALESCE ( - + 13, + ( - ( + 2 ) ) * - 21, 89 + COUNT ( * ) ) AS col2
----
-13

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

query I rowsort
SELECT ALL 70 * + - 88
----
-6160

onlyif mysql # DIV for integer division: 
query I rowsort label-7908
SELECT ALL - NULLIF ( - 94, + 63 * COALESCE ( - + 27, 28 ) DIV - 4 ) DIV - + 80 + + - 73 + + 82 AS col2
----
8

skipif mysql # not compatible
query I rowsort label-7908
SELECT ALL - NULLIF ( - 94, + 63 * COALESCE ( - + 27, 28 ) / - 4 ) / - + 80 + + - 73 + + 82 AS col2
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7909
SELECT ALL 36 * - - COALESCE ( - CAST( NULL AS SIGNED ), + 69 * + 48, + - 13 * + - 76 + 30 ) + - + 90 + COUNT( * ), - 30 * + COUNT( + + 30 ) + + ( + 70 ) * - + CAST( NULL AS SIGNED ) / 48 * - MIN( DISTINCT 34 ) + 34 / 95 AS col1
----
119143
NULL

skipif mysql # not compatible
query II rowsort label-7909
SELECT ALL 36 * - - COALESCE ( - CAST ( NULL AS INTEGER ), + 69 * + 48, + - 13 * + - 76 + 30 ) + - + 90 + COUNT ( * ), - 30 * + COUNT ( + + 30 ) + + ( + 70 ) * - + CAST ( NULL AS INTEGER ) / 48 * - MIN ( DISTINCT 34 ) + 34 / 95 AS col1
----
119143
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7910
SELECT ( COUNT( DISTINCT 94 ) ) AS col2, 99 AS col2
----
1
99

skipif mysql # not compatible
query II rowsort label-7910
SELECT ( COUNT ( DISTINCT 94 ) ) AS col2, 99 AS col2
----
1
99

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

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

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

query I rowsort
SELECT ALL + NULLIF ( + + ( - 51 ), 64 ) AS col1
----
-51

query I rowsort
SELECT ALL 80 * 99 + NULLIF ( 66, + 20 ) AS col1
----
7986

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7915
SELECT 17 * + 94 - 23 * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7915
SELECT 17 * + 94 - 23 * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT + 15 * - 75 AS col0
----
-1125

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

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

query I rowsort
SELECT + 91 * 73 AS col2
----
6643

query I rowsort
SELECT ALL 56 * COALESCE ( + 0, + 28 + 50, - 40 * 81 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7920
SELECT CASE COUNT( * ) WHEN 86 THEN 25 / - 46 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7920
SELECT CASE COUNT ( * ) WHEN 86 THEN 25 / - 46 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT + ( 10 ) AS col0
----
10

query I rowsort
SELECT ALL + 31 * CASE 22 WHEN 91 THEN NULL WHEN 86 THEN + 61 ELSE NULL END - 26 AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7924
SELECT ALL COALESCE ( COALESCE ( + COUNT( * ), + ( 21 ) + 75, - 35 + - 10 * 70 ), + 7 )
----
1

skipif mysql # not compatible
query I rowsort label-7924
SELECT ALL COALESCE ( COALESCE ( + COUNT ( * ), + ( 21 ) + 75, - 35 + - 10 * 70 ), + 7 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7925
SELECT + 25 * + ( SUM( ( - 92 ) ) * 55 ) AS col1
----
-126500

skipif mysql # not compatible
query I rowsort label-7925
SELECT + 25 * + ( SUM ( ( - 92 ) ) * 55 ) AS col1
----
-126500

onlyif mysql # aggregate syntax: 
query I rowsort label-7926
SELECT MAX( - 97 ) AS col1
----
-97

skipif mysql # not compatible
query I rowsort label-7926
SELECT MAX ( - 97 ) AS col1
----
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-7927
SELECT + 72 + 22 DIV + 36 AS col2
----
72

skipif mysql # not compatible
query I rowsort label-7927
SELECT + 72 + 22 / + 36 AS col2
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7928
SELECT - CASE + COALESCE ( - CAST( COUNT( * ) AS SIGNED ), COUNT( * ) ) WHEN 66 THEN + COUNT( * ) WHEN + 87 THEN NULL ELSE NULL END - 10 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7928
SELECT - CASE + COALESCE ( - CAST ( COUNT ( * ) AS INTEGER ), COUNT ( * ) ) WHEN 66 THEN + COUNT ( * ) WHEN + 87 THEN NULL ELSE NULL END - 10 col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7929
SELECT ALL - MAX( ALL 7 ) DIV 21
----
0

skipif mysql # not compatible
query I rowsort label-7929
SELECT ALL - MAX ( ALL 7 ) / 21
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7930
SELECT DISTINCT 83 DIV 52 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7930
SELECT DISTINCT 83 / 52 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7931
SELECT DISTINCT NULLIF ( - 23, + 18 * 66 ) + COUNT( * ) * 98 AS col1
----
75

skipif mysql # not compatible
query I rowsort label-7931
SELECT DISTINCT NULLIF ( - 23, + 18 * 66 ) + COUNT ( * ) * 98 AS col1
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-7932
SELECT 60 DIV 34 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7932
SELECT 60 / 34 AS col0
----
1

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

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7935
SELECT CAST( NULL AS DECIMAL ) * 74
----
NULL

skipif mysql # not compatible
query I rowsort label-7935
SELECT CAST ( NULL AS REAL ) * 74
----
NULL

query I rowsort
SELECT 43 * - 19 AS col2
----
-817

onlyif mysql # DIV for integer division: 
query I rowsort label-7937
SELECT 50 DIV - 49 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7937
SELECT 50 / - 49 AS col0
----
-1

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

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

query I rowsort
SELECT ALL + 84 + - 99 col2
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-7940
SELECT 65 - 96 * COUNT( 46 / 50 ) AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-7940
SELECT 65 - 96 * COUNT ( 46 / 50 ) AS col2
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-7941
SELECT 75 - - 35 * + COUNT( * )
----
110

skipif mysql # not compatible
query I rowsort label-7941
SELECT 75 - - 35 * + COUNT ( * )
----
110

query I rowsort
SELECT DISTINCT - COALESCE ( + 1, 98 )
----
-1

query I rowsort
SELECT ALL + 85 + - 70 AS col2
----
15

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

skipif mysql # not compatible
query I rowsort label-7944
SELECT + 13 / - CAST ( NULL AS INTEGER ) + + 95
----
NULL

query I rowsort
SELECT 65 + 90
----
155

query I rowsort
SELECT 68 * - 67 AS col2
----
-4556

query I rowsort
SELECT + 28 * - 2 + + 26
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-7948
SELECT + 41 * - 55 + COUNT( * )
----
-2254

skipif mysql # not compatible
query I rowsort label-7948
SELECT + 41 * - 55 + COUNT ( * )
----
-2254

onlyif mysql # DIV for integer division: 
query I rowsort label-7949
SELECT DISTINCT - 10 DIV + ( + 71 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7949
SELECT DISTINCT - 10 / + ( + 71 ) AS col1
----
0

query I rowsort
SELECT + 40 + 46
----
86

query I rowsort
SELECT ALL - 77 * 89 AS col1
----
-6853

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

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

query I rowsort
SELECT - 53 * - 14 + + 98 AS col2
----
840

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7954
SELECT - 6 DIV SUM( ALL 56 )
----
0

skipif mysql # not compatible
query I rowsort label-7954
SELECT - 6 / SUM ( ALL 56 )
----
0

query I rowsort
SELECT - 76 * 86
----
-6536

onlyif mysql # aggregate syntax: 
query I rowsort label-7956
SELECT 36 + - MAX( ALL + 66 ) col2
----
-30

skipif mysql # not compatible
query I rowsort label-7956
SELECT 36 + - MAX ( ALL + 66 ) col2
----
-30

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7957
SELECT + 42 / - ( - 7 / CASE 3 WHEN + 4 * + ( 24 ) THEN + 13 * + 94 + CAST( 6 AS DECIMAL ) WHEN - 82 THEN NULL ELSE NULL END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7957
SELECT + 42 / - ( - 7 / CASE 3 WHEN + 4 * + ( 24 ) THEN + 13 * + 94 + CAST ( 6 AS REAL ) WHEN - 82 THEN NULL ELSE NULL END ) AS col1
----
NULL

query I rowsort
SELECT + 56 * - ( + 0 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7959
SELECT DISTINCT COALESCE ( + ( 0 ), - COUNT( * ), SUM( 70 ) * - COUNT( * ) ) * + SUM( - 24 DIV - 77 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7959
SELECT DISTINCT COALESCE ( + ( 0 ), - COUNT ( * ), SUM ( 70 ) * - COUNT ( * ) ) * + SUM ( - 24 / - 77 ) AS col0
----
0

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

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

query I rowsort
SELECT DISTINCT 48 + - 29 AS col1
----
19

query I rowsort
SELECT ALL 30 * - + 53 AS col2
----
-1590

query I rowsort
SELECT 50 * 88 * + NULLIF ( 72, + 34 )
----
316800

query I rowsort
SELECT DISTINCT 42 + - 82 AS col0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-7965
SELECT ALL COALESCE ( - COUNT( * ), + 58 + 99, - 21 + - 56 ) + - 65 col2
----
-66

skipif mysql # not compatible
query I rowsort label-7965
SELECT ALL COALESCE ( - COUNT ( * ), + 58 + 99, - 21 + - 56 ) + - 65 col2
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7966
SELECT 63 * - + CASE WHEN NOT 91 NOT BETWEEN + CAST( 24 AS SIGNED ) * COUNT( * ) AND COUNT( * ) THEN + 64 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7966
SELECT 63 * - + CASE WHEN NOT 91 NOT BETWEEN + CAST ( 24 AS INTEGER ) * COUNT ( * ) AND COUNT ( * ) THEN + 64 END
----
NULL

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

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

query I rowsort
SELECT 40 + + 60 + 89
----
189

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

skipif mysql # not compatible
query I rowsort label-7969
SELECT DISTINCT 88 + + COUNT ( * ) AS col1
----
89

query I rowsort
SELECT ALL + 98 + - - 72
----
170

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7971
SELECT - SUM( - CAST( 36 AS SIGNED ) ) AS col0
----
36

skipif mysql # not compatible
query I rowsort label-7971
SELECT - SUM ( - CAST ( 36 AS INTEGER ) ) AS col0
----
36

query I rowsort
SELECT DISTINCT 52 + + - COALESCE ( + 56, 64 + + 8 ) AS col1
----
-4

query I rowsort
SELECT ALL - 26 * - 15 AS col2
----
390

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7974
SELECT CAST( + + 15 AS SIGNED ) * + 32
----
480

skipif mysql # not compatible
query I rowsort label-7974
SELECT CAST ( + + 15 AS INTEGER ) * + 32
----
480

onlyif mysql # aggregate syntax: 
query I rowsort label-7975
SELECT SUM( ALL 60 ) * + 16 AS col2
----
960

skipif mysql # not compatible
query I rowsort label-7975
SELECT SUM ( ALL 60 ) * + 16 AS col2
----
960

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7977
SELECT ALL + CAST( NULL AS SIGNED ) * + NULLIF ( - 40, 82 * COUNT( * ) ) - ( - 30 + - 26 / ( - 36 * - 3 ) ) * COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7977
SELECT ALL + CAST ( NULL AS INTEGER ) * + NULLIF ( - 40, 82 * COUNT ( * ) ) - ( - 30 + - 26 / ( - 36 * - 3 ) ) * COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT 80 * + + 98 * + 70
----
548800

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

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

query I rowsort
SELECT NULLIF ( + 54, - 13 / 19 ) * 74 AS col1
----
3996

query I rowsort
SELECT ALL - - 81 AS col1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7982
SELECT - CASE - COUNT( * ) WHEN - 13 THEN - ( CASE ( COUNT( * ) ) WHEN + COUNT( * ) + COUNT( ALL 24 ) THEN + 45 + + 90 WHEN - NULLIF ( 41, 72 ) - 83 THEN NULL END ) WHEN 20 THEN NULL WHEN 37 THEN - 78 - 50 ELSE - 42 END - - 28 * - COALESCE ( 35 + + 57, 2 ) AS col1
----
-2534

skipif mysql # not compatible
query I rowsort label-7982
SELECT - CASE - COUNT ( * ) WHEN - 13 THEN - ( CASE ( COUNT ( * ) ) WHEN + COUNT ( * ) + COUNT ( ALL 24 ) THEN + 45 + + 90 WHEN - NULLIF ( 41, 72 ) - 83 THEN NULL END ) WHEN 20 THEN NULL WHEN 37 THEN - 78 - 50 ELSE - 42 END - - 28 * - COALESCE ( 35 + + 57, 2 ) AS col1
----
-2534

query I rowsort
SELECT 76 * + 95 - - 15 * + 51
----
7985

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

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

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

query I rowsort
SELECT ALL - + 17 * - 18 - 59
----
247

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

skipif mysql # not compatible
query I rowsort label-7987
SELECT SUM ( - ( 96 ) )
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7988
SELECT DISTINCT - + 0 * + + 36 * + NULLIF ( 7 * CAST( - MAX( - 91 ) AS SIGNED ), - MIN( DISTINCT + 63 ) )
----
0

skipif mysql # not compatible
query I rowsort label-7988
SELECT DISTINCT - + 0 * + + 36 * + NULLIF ( 7 * CAST ( - MAX ( - 91 ) AS INTEGER ), - MIN ( DISTINCT + 63 ) )
----
0

query I rowsort
SELECT ALL + + 38 + + 97
----
135

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7991
SELECT + ( + - 47 ) DIV - ( - 11 * - 36 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7991
SELECT + ( + - 47 ) / - ( - 11 * - 36 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7992
SELECT ALL - 80 + - COUNT( * ) + 20 AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-7992
SELECT ALL - 80 + - COUNT ( * ) + 20 AS col2
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7993
SELECT + AVG ( 65 ) / NULLIF ( - 13, + 2 / + 41 ) - - CAST( - 98 + - CASE 20 WHEN + ( + COUNT( * ) ) THEN NULL ELSE CAST( NULL AS SIGNED ) END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7993
SELECT + AVG ( 65 ) / NULLIF ( - 13, + 2 / + 41 ) - - CAST ( - 98 + - CASE 20 WHEN + ( + COUNT ( * ) ) THEN NULL ELSE CAST ( NULL AS INTEGER ) END AS INTEGER )
----
NULL

query II rowsort
SELECT 67 col2, - 25
----
67
-25

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

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

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

skipif mysql # not compatible
query I rowsort label-7996
SELECT - 59 + 16 * + COUNT ( * ) AS col1
----
-43

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7998
SELECT - COUNT( * ) + - - CAST( - 52 AS SIGNED )
----
-53

skipif mysql # not compatible
query I rowsort label-7998
SELECT - COUNT ( * ) + - - CAST ( - 52 AS INTEGER )
----
-53

query I rowsort
SELECT ALL - 3 + + 53 * - ( - 69 ) + 23 * - 2 AS col0
----
3608

query I rowsort
SELECT ALL 40 * - 55
----
-2200

query I rowsort
SELECT DISTINCT 52 - - + CASE + + 6 WHEN 46 THEN + 74 ELSE + 9 - - 99 END * - 43 AS col1
----
-4592

query I rowsort
SELECT ALL 87 - - ( - 27 ) AS col2
----
60

query I rowsort
SELECT - 93 * + 63 AS col0
----
-5859

query II rowsort
SELECT 82, - 21 AS col0
----
82
-21

query I rowsort
SELECT + 10 + + 96 + + - COALESCE ( + 39, - 23 ) + 20 * 8
----
227

query II rowsort
SELECT 96 AS col0, 37 AS col1
----
96
37

query I rowsort
SELECT + 51 * + + 91 AS col2
----
4641

query I rowsort
SELECT + COALESCE ( - + 11, + - 64 + - 31 ) AS col0
----
-11

query II rowsort
SELECT ALL + 58, 13 AS col2
----
58
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8010
SELECT + 8 - CAST( 31 AS SIGNED ) + MAX( ( 48 ) )
----
25

skipif mysql # not compatible
query I rowsort label-8010
SELECT + 8 - CAST ( 31 AS INTEGER ) + MAX ( ( 48 ) )
----
25

query I rowsort
SELECT + - 82 / + 90 * CASE 72 WHEN ( 31 ) THEN ( 28 ) WHEN - 9 + + 49 THEN 2 / + CASE 47 WHEN + 40 * 36 THEN - ( ( + 68 ) ) ELSE NULL END END - - 13 * 17
----
NULL

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

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

query I rowsort
SELECT - ( + 38 ) * + 66 AS col1
----
-2508

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8014
SELECT - ( - + ( + CAST( NULL AS SIGNED ) ) ) / COALESCE ( COUNT( * ), - 50 * 89 + 13 / - 38, 23, COALESCE ( - 4, + 38 * - MAX( ALL + 76 ) + 48, + CAST( ( + 71 ) AS SIGNED ) ) - - ( ( 89 ) ) ) - COUNT( DISTINCT 42 - + 37 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8014
SELECT - ( - + ( + CAST ( NULL AS INTEGER ) ) ) / COALESCE ( COUNT ( * ), - 50 * 89 + 13 / - 38, 23, COALESCE ( - 4, + 38 * - MAX ( ALL + 76 ) + 48, + CAST ( ( + 71 ) AS INTEGER ) ) - - ( ( 89 ) ) ) - COUNT ( DISTINCT 42 - + 37 )
----
NULL

query I rowsort
SELECT - - 41 * + - 25 + 26 AS col2
----
-999

onlyif mysql # aggregate syntax: 
query I rowsort label-8016
SELECT ALL + COUNT( * ) * + - 33 + - + 17
----
-50

skipif mysql # not compatible
query I rowsort label-8016
SELECT ALL + COUNT ( * ) * + - 33 + - + 17
----
-50

query I rowsort
SELECT 30 * + 67 + 42 AS col2
----
2052

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8018
SELECT - - COALESCE ( + 55, + 88 ) - 26 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8018
SELECT - - COALESCE ( + 55, + 88 ) - 26 * - CAST ( NULL AS INTEGER )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8020
SELECT ALL + - COUNT( * ) * + 45 + - 94 + - 63 * + 98 AS col0
----
-6313

skipif mysql # not compatible
query I rowsort label-8020
SELECT ALL + - COUNT ( * ) * + 45 + - 94 + - 63 * + 98 AS col0
----
-6313

onlyif mysql # aggregate syntax: 
query II rowsort label-8021
SELECT DISTINCT + 78 AS col0, COUNT( * ) * + 73 * 61
----
78
4453

skipif mysql # not compatible
query II rowsort label-8021
SELECT DISTINCT + 78 AS col0, COUNT ( * ) * + 73 * 61
----
78
4453

onlyif mysql # aggregate syntax: 
query I rowsort label-8022
SELECT - - 80 * + 34 * COUNT( * )
----
2720

skipif mysql # not compatible
query I rowsort label-8022
SELECT - - 80 * + 34 * COUNT ( * )
----
2720

onlyif mysql # aggregate syntax: 
query I rowsort label-8023
SELECT DISTINCT + 52 * - COUNT( * ) + + 32 * 82
----
2572

skipif mysql # not compatible
query I rowsort label-8023
SELECT DISTINCT + 52 * - COUNT ( * ) + + 32 * 82
----
2572

onlyif mysql # aggregate syntax: 
query I rowsort label-8024
SELECT DISTINCT + + MIN( DISTINCT + 60 ) AS col0
----
60

skipif mysql # not compatible
query I rowsort label-8024
SELECT DISTINCT + + MIN ( DISTINCT + 60 ) AS col0
----
60

query I rowsort
SELECT ALL + 24 * - 65 * 63 + 34 + 81 AS col1
----
-98165

onlyif mysql # DIV for integer division: 
query I rowsort label-8026
SELECT - 51 + - 47 + 18 DIV - 59 AS col0
----
-98

skipif mysql # not compatible
query I rowsort label-8026
SELECT - 51 + - 47 + 18 / - 59 AS col0
----
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8027
SELECT ALL - CAST( NULL AS SIGNED ) * - ( + + 83 ) - 71 * + 60 + - 33 / + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8027
SELECT ALL - CAST ( NULL AS INTEGER ) * - ( + + 83 ) - 71 * + 60 + - 33 / + COUNT ( * )
----
NULL

query I rowsort
SELECT + 95 * 26 AS col1
----
2470

onlyif mysql # aggregate syntax: 
query I rowsort label-8029
SELECT + MAX( 30 ) AS col0
----
30

skipif mysql # not compatible
query I rowsort label-8029
SELECT + MAX ( 30 ) AS col0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-8030
SELECT - 78 + - CASE - SUM( - 56 ) WHEN 24 THEN NULL WHEN + 77 THEN ( 62 ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8030
SELECT - 78 + - CASE - SUM ( - 56 ) WHEN 24 THEN NULL WHEN + 77 THEN ( 62 ) ELSE NULL END AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-8032
SELECT DISTINCT COUNT( DISTINCT - 11 ) AS col1, - 16
----
1
-16

skipif mysql # not compatible
query II rowsort label-8032
SELECT DISTINCT COUNT ( DISTINCT - 11 ) AS col1, - 16
----
1
-16

query I rowsort
SELECT DISTINCT + 43 * + - 48 AS col0
----
-2064

query I rowsort
SELECT DISTINCT + 53 - + + 59 * + + 34 * - + 63
----
126431

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8035
SELECT ALL ( - + 47 ) AS col0, 71 * CAST( NULL AS SIGNED ) * - COUNT( * ) AS col1
----
-47
NULL

skipif mysql # not compatible
query II rowsort label-8035
SELECT ALL ( - + 47 ) AS col0, 71 * CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col1
----
-47
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8037
SELECT + CAST( 5 AS SIGNED ) * - 0
----
0

skipif mysql # not compatible
query I rowsort label-8037
SELECT + CAST ( 5 AS INTEGER ) * - 0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8038
SELECT ALL CAST( AVG ( + 69 ) AS SIGNED )
----
69

skipif mysql # not compatible
query I rowsort label-8038
SELECT ALL CAST ( AVG ( + 69 ) AS INTEGER )
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-8039
SELECT - 69 - + COUNT( * ) AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-8039
SELECT - 69 - + COUNT ( * ) AS col1
----
-70

query I rowsort
SELECT - NULLIF ( 18, + CASE - 0 WHEN 13 * - AVG ( 34 ) + + 12 THEN - 75 ELSE + 80 END )
----
-18

query I rowsort
SELECT - ( + + 87 ) - + + 20 AS col1
----
-107

onlyif mysql # DIV for integer division: 
query I rowsort label-8042
SELECT + 51 DIV - 16 col0
----
-3

skipif mysql # not compatible
query I rowsort label-8042
SELECT + 51 / - 16 col0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8043
SELECT - CAST( - - COUNT( * ) AS SIGNED ) * + 21 + - 11
----
-32

skipif mysql # not compatible
query I rowsort label-8043
SELECT - CAST ( - - COUNT ( * ) AS INTEGER ) * + 21 + - 11
----
-32

query II rowsort
SELECT ALL ( + 64 ) col1, 24 + - 26 AS col2
----
64
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8045
SELECT - COALESCE ( COUNT( * ), + - COUNT( * ) * - 18 + 69, ( 20 ), 72 * - 39 + + COUNT( * ) * 84 ) * 94 AS col2
----
-94

skipif mysql # not compatible
query I rowsort label-8045
SELECT - COALESCE ( COUNT ( * ), + - COUNT ( * ) * - 18 + 69, ( 20 ), 72 * - 39 + + COUNT ( * ) * 84 ) * 94 AS col2
----
-94

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8048
SELECT + + 20 + + COUNT( * ) col1
----
21

skipif mysql # not compatible
query I rowsort label-8048
SELECT + + 20 + + COUNT ( * ) col1
----
21

query I rowsort
SELECT DISTINCT 98 * - 18 AS col0
----
-1764

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8050
SELECT ALL + 70 DIV - SUM( + 5 ) + - 12 + 67 * - 74
----
-4984

skipif mysql # not compatible
query I rowsort label-8050
SELECT ALL + 70 / - SUM ( + 5 ) + - 12 + 67 * - 74
----
-4984

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8051
SELECT + 21 * + 82 * - + 77 + + CAST( NULL AS SIGNED ) + + 95 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8051
SELECT + 21 * + 82 * - + 77 + + CAST ( NULL AS INTEGER ) + + 95 col0
----
NULL

query I rowsort
SELECT + - NULLIF ( - - COALESCE ( + 14, - - 99 ), + 95 * 73 )
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-8053
SELECT - COUNT( * ) * + 76 + 52 + 84 AS col0
----
60

skipif mysql # not compatible
query I rowsort label-8053
SELECT - COUNT ( * ) * + 76 + 52 + 84 AS col0
----
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8054
SELECT DISTINCT + - 23 DIV - + 45 + - 40 DIV COUNT( * ) DIV 12 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-8054
SELECT DISTINCT + - 23 / - + 45 + - 40 / COUNT ( * ) / 12 AS col0
----
-3

query I rowsort
SELECT ALL - + NULLIF ( - 63, 47 ) + + 85 * - 75
----
-6312

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

query I rowsort
SELECT ALL 66 + - 44 AS col0
----
22

query I rowsort
SELECT DISTINCT + - NULLIF ( 82, + 53 + - 12 ) + 6 AS col0
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-8059
SELECT ALL + 63 + + 63 + - COUNT( * ) * 7
----
119

skipif mysql # not compatible
query I rowsort label-8059
SELECT ALL + 63 + + 63 + - COUNT ( * ) * 7
----
119

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

query I rowsort
SELECT 93 + + 86
----
179

onlyif mysql # DIV for integer division: 
query I rowsort label-8062
SELECT - 85 DIV + 50
----
-1

skipif mysql # not compatible
query I rowsort label-8062
SELECT - 85 / + 50
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8063
SELECT ALL CASE - 1 WHEN - + NULLIF ( COUNT( * ), + NULLIF ( 55, - NULLIF ( + 54, + COUNT( * ) ) * 59 ) + 54 ) * + 8 - 95 * - NULLIF ( 43, 52 + - COUNT( * ) ) THEN NULL WHEN 78 THEN 99 - 24 ELSE NULL END * 29 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8063
SELECT ALL CASE - 1 WHEN - + NULLIF ( COUNT ( * ), + NULLIF ( 55, - NULLIF ( + 54, + COUNT ( * ) ) * 59 ) + 54 ) * + 8 - 95 * - NULLIF ( 43, 52 + - COUNT ( * ) ) THEN NULL WHEN 78 THEN 99 - 24 ELSE NULL END * 29 AS col2
----
NULL

query I rowsort
SELECT 50 * + - 70 AS col1
----
-3500

query I rowsort
SELECT DISTINCT 83 * + - 87 * - + 15 AS col2
----
108315

onlyif mysql # aggregate syntax: 
query I rowsort label-8066
SELECT ALL NULLIF ( - + COUNT( * ), 30 / - + COUNT( * ) ) - - 44
----
43

skipif mysql # not compatible
query I rowsort label-8066
SELECT ALL NULLIF ( - + COUNT ( * ), 30 / - + COUNT ( * ) ) - - 44
----
43

query I rowsort
SELECT ALL 18 * 10
----
180

onlyif mysql # DIV for integer division: 
query I rowsort label-8068
SELECT DISTINCT 76 - 44 DIV - ( + 74 )
----
76

skipif mysql # not compatible
query I rowsort label-8068
SELECT DISTINCT 76 - 44 / - ( + 74 )
----
76

onlyif mysql # DIV for integer division: 
query I rowsort label-8069
SELECT + 60 * - 29 * - 3 - - ( + ( + 57 ) ) DIV 76 col0
----
5220

skipif mysql # not compatible
query I rowsort label-8069
SELECT + 60 * - 29 * - 3 - - ( + ( + 57 ) ) / 76 col0
----
5220

query II rowsort
SELECT - 71 AS col2, 2 * + 50 * - 76
----
-71
-7600

query I rowsort
SELECT 88 - + + 59
----
29

query II rowsort
SELECT 86, + 72 AS col1
----
86
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8073
SELECT CAST( 20 AS SIGNED ) + - COUNT( * ) - - 97 AS col0
----
116

skipif mysql # not compatible
query I rowsort label-8073
SELECT CAST ( 20 AS INTEGER ) + - COUNT ( * ) - - 97 AS col0
----
116

query I rowsort
SELECT 4 * + + ( + - 29 )
----
-116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8075
SELECT - 82 col1, ( 71 ) + - - 84 DIV NULLIF ( - 32, + 40 * COALESCE ( MAX( 60 ) * + COALESCE ( - 85, - CAST( NULL AS SIGNED ) * - 34 ), 72 ) )
----
-82
69

skipif mysql # not compatible
query II rowsort label-8075
SELECT - 82 col1, ( 71 ) + - - 84 / NULLIF ( - 32, + 40 * COALESCE ( MAX ( 60 ) * + COALESCE ( - 85, - CAST ( NULL AS INTEGER ) * - 34 ), 72 ) )
----
-82
69

onlyif mysql # DIV for integer division: 
query I rowsort label-8076
SELECT DISTINCT + COALESCE ( - 11, - 74, - AVG ( + - 21 ) DIV 6 ) * - 84
----
924

skipif mysql # not compatible
query I rowsort label-8076
SELECT DISTINCT + COALESCE ( - 11, - 74, - AVG ( + - 21 ) / 6 ) * - 84
----
924

onlyif mysql # aggregate syntax: 
query I rowsort label-8077
SELECT 94 * + 18 * 33 * COUNT( * ) * 61
----
3405996

skipif mysql # not compatible
query I rowsort label-8077
SELECT 94 * + 18 * 33 * COUNT ( * ) * 61
----
3405996

query I rowsort
SELECT DISTINCT + 22 * - 96 * - + 91 AS col2
----
192192

onlyif mysql # aggregate syntax: 
query I rowsort label-8079
SELECT 13 + + 1 * CASE + + 2 WHEN 14 THEN - ( + CASE AVG ( 18 ) WHEN - ( + 68 ) THEN 93 * 32 END ) ELSE + 78 * - COUNT( * ) END * + 42
----
-3263

skipif mysql # not compatible
query I rowsort label-8079
SELECT 13 + + 1 * CASE + + 2 WHEN 14 THEN - ( + CASE AVG ( 18 ) WHEN - ( + 68 ) THEN 93 * 32 END ) ELSE + 78 * - COUNT ( * ) END * + 42
----
-3263

onlyif mysql # DIV for integer division: 
query I rowsort label-8080
SELECT 84 DIV 38
----
2

skipif mysql # not compatible
query I rowsort label-8080
SELECT 84 / 38
----
2

query I rowsort
SELECT ALL - 95 + - 45
----
-140

onlyif mysql # aggregate syntax: 
query I rowsort label-8082
SELECT ALL + + ( - ( - - 34 ) ) + - MAX( - 6 )
----
-28

skipif mysql # not compatible
query I rowsort label-8082
SELECT ALL + + ( - ( - - 34 ) ) + - MAX ( - 6 )
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8083
SELECT 67 + + - CASE - 75 WHEN - + ( - 79 ) THEN NULL ELSE + CAST( NULL AS SIGNED ) + - 24 / ( 71 ) END * COUNT( CAST( + CASE - 91 WHEN 65 THEN 38 END AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8083
SELECT 67 + + - CASE - 75 WHEN - + ( - 79 ) THEN NULL ELSE + CAST ( NULL AS INTEGER ) + - 24 / ( 71 ) END * COUNT ( CAST ( + CASE - 91 WHEN 65 THEN 38 END AS INTEGER ) )
----
NULL

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8086
SELECT DISTINCT - MIN( ALL - 24 ) + - 51 + - - 54 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8086
SELECT DISTINCT - MIN ( ALL - 24 ) + - 51 + - - 54 + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 28 + - + 84
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8088
SELECT + CAST( NULL AS SIGNED ) - - COUNT( DISTINCT - CAST( - + 28 AS SIGNED ) ) + 76 * + 86
----
NULL

skipif mysql # not compatible
query I rowsort label-8088
SELECT + CAST ( NULL AS INTEGER ) - - COUNT ( DISTINCT - CAST ( - + 28 AS INTEGER ) ) + 76 * + 86
----
NULL

query II rowsort
SELECT ALL - 49 AS col2, + ( 4 )
----
-49
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8090
SELECT - 14 * + + ( + - 46 ) * + 43 + - + COUNT( * ) * 98 + + MIN( ALL - NULLIF ( - 56, 33 ) ) AS col1
----
27650

skipif mysql # not compatible
query I rowsort label-8090
SELECT - 14 * + + ( + - 46 ) * + 43 + - + COUNT ( * ) * 98 + + MIN ( ALL - NULLIF ( - 56, 33 ) ) AS col1
----
27650

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8091
SELECT ALL - - 18 + - CAST( - 13 AS SIGNED ) - - 25 - NULLIF ( + ( - COALESCE ( + 64, + MIN( DISTINCT - ( + 64 ) ) * 30, + 82 * + 33 ) ), + 73 + + CASE + NULLIF ( COALESCE ( + COUNT( * ), AVG ( DISTINCT 15 ) ), MAX( DISTINCT 52 ) ) WHEN - COUNT( * ) + + 12 THEN NULL ELSE + COUNT( * ) END ) * - 75 AS col1
----
-4744

skipif mysql # not compatible
query I rowsort label-8091
SELECT ALL - - 18 + - CAST ( - 13 AS INTEGER ) - - 25 - NULLIF ( + ( - COALESCE ( + 64, + MIN ( DISTINCT - ( + 64 ) ) * 30, + 82 * + 33 ) ), + 73 + + CASE + NULLIF ( COALESCE ( + COUNT ( * ), AVG ( DISTINCT 15 ) ), MAX ( DISTINCT 52 ) ) WHEN - COUNT ( * ) + + 12 THEN NULL ELSE + COUNT ( * ) END ) * - 75 AS col1
----
-4744

query I rowsort
SELECT DISTINCT + 76 * 70 * + 76 AS col2
----
404320

query I rowsort
SELECT 12 * - 78 + + + 32 AS col1
----
-904

onlyif mysql # aggregate syntax: 
query I rowsort label-8094
SELECT 5 - + COALESCE ( + COUNT( DISTINCT 9 ), + + 96 ) AS col2
----
4

skipif mysql # not compatible
query I rowsort label-8094
SELECT 5 - + COALESCE ( + COUNT ( DISTINCT 9 ), + + 96 ) AS col2
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-8095
SELECT - 47 DIV + 65 + - 50
----
-50

skipif mysql # not compatible
query I rowsort label-8095
SELECT - 47 / + 65 + - 50
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-8096
SELECT DISTINCT + + ( - 1 ) - + COUNT( * ) + + NULLIF ( + 9, 53 ) * - ( 83 * 91 ) col1
----
-67979

skipif mysql # not compatible
query I rowsort label-8096
SELECT DISTINCT + + ( - 1 ) - + COUNT ( * ) + + NULLIF ( + 9, 53 ) * - ( 83 * 91 ) col1
----
-67979

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8097
SELECT MAX( - 26 ) + + CASE - 83 WHEN - CAST( NULL AS SIGNED ) THEN + 33 * COUNT( * ) WHEN - 56 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8097
SELECT MAX ( - 26 ) + + CASE - 83 WHEN - CAST ( NULL AS INTEGER ) THEN + 33 * COUNT ( * ) WHEN - 56 THEN NULL END
----
NULL

query I rowsort
SELECT 78 + + 17
----
95

query I rowsort
SELECT 49 * + 91 AS col1
----
4459

query I rowsort
SELECT 85 * + 80 AS col2
----
6800

onlyif mysql # DIV for integer division: 
query I rowsort label-8101
SELECT DISTINCT 29 DIV 69
----
0

skipif mysql # not compatible
query I rowsort label-8101
SELECT DISTINCT 29 / 69
----
0

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

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

query I rowsort
SELECT 97 + - 87
----
10

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

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

query I rowsort
SELECT ALL 82 * + - 6 * + 46 * + ( + 92 )
----
-2082144

query I rowsort
SELECT 75 + - 67 * - ( - 95 ) AS col1
----
-6290

onlyif mysql # aggregate syntax: 
query I rowsort label-8107
SELECT 13 + + NULLIF ( - - 50, - 27 ) * - + COUNT( * ) AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-8107
SELECT 13 + + NULLIF ( - - 50, - 27 ) * - + COUNT ( * ) AS col0
----
-37

query I rowsort
SELECT ALL 28 * + 77
----
2156

onlyif mysql # aggregate syntax: 
query I rowsort label-8109
SELECT ALL - COUNT( ALL 28 ) + 5
----
4

skipif mysql # not compatible
query I rowsort label-8109
SELECT ALL - COUNT ( ALL 28 ) + 5
----
4

query III rowsort
SELECT ALL 88 AS col2, - 10 * + 78 + + 76 AS col0, 53
----
88
-704
53

query II rowsort
SELECT 93 AS col2, + 54 + CASE + + 22 WHEN - + 77 THEN NULL ELSE 98 * NULLIF ( 49 - 73, - 21 * + 25 ) END + - 67 * 61
----
93
-6385

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

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

query I rowsort
SELECT DISTINCT 81 + - 20 * + 63 AS col2
----
-1179

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8114
SELECT DISTINCT COUNT( CAST( NULL AS DECIMAL ) )
----
0

skipif mysql # not compatible
query I rowsort label-8114
SELECT DISTINCT COUNT ( CAST ( NULL AS REAL ) )
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8115
SELECT DISTINCT 96 AS col2, CAST( + 49 AS SIGNED ) DIV 9 * + - 85 * 42
----
96
-17850

skipif mysql # not compatible
query II rowsort label-8115
SELECT DISTINCT 96 AS col2, CAST ( + 49 AS INTEGER ) / 9 * + - 85 * 42
----
96
-17850

query I rowsort
SELECT ALL 15 + - - 24 + - - 36 AS col0
----
75

query I rowsort
SELECT ALL ( - + 52 ) + - - 50
----
-2

query II rowsort
SELECT 79, + 24 AS col2
----
79
24

query II rowsort
SELECT - 1, 54 AS col2
----
-1
54

query I rowsort
SELECT 0 + - - 60 + 3 + 69 * - ( - 68 )
----
4755

onlyif mysql # DIV for integer division: 
query III rowsort label-8121
SELECT 5 - + 54, + 12 DIV - + 37 AS col2, 35 AS col2
----
-49
0
35

skipif mysql # not compatible
query III rowsort label-8121
SELECT 5 - + 54, + 12 / - + 37 AS col2, 35 AS col2
----
-49
0
35

onlyif mysql # aggregate syntax: 
query I rowsort label-8122
SELECT ALL - CASE 57 WHEN - + 95 - - ( - - 68 ) * + MAX( 53 ) THEN 42 ELSE SUM( ALL ( + 27 ) ) - - 61 END AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-8122
SELECT ALL - CASE 57 WHEN - + 95 - - ( - - 68 ) * + MAX ( 53 ) THEN 42 ELSE SUM ( ALL ( + 27 ) ) - - 61 END AS col0
----
-88

query I rowsort
SELECT + 24 + - 82 AS col0
----
-58

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

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

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

skipif mysql # not compatible
query I rowsort label-8125
SELECT - - SUM ( + 54 )
----
54

query I rowsort
SELECT - NULLIF ( + 94, 83 ) AS col2
----
-94

query I rowsort
SELECT - 90 + 8 + - 18 AS col2
----
-100

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8128
SELECT DISTINCT 60 + + 27 + 27 + - - CAST( NULL AS DECIMAL ) + - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8128
SELECT DISTINCT 60 + + 27 + 27 + - - CAST ( NULL AS REAL ) + - COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT - - 18 - - 50 AS col1
----
68

query I rowsort
SELECT DISTINCT - ( + 83 ) * + 49 * + 98 + - - 74 AS col0
----
-398492

onlyif mysql # aggregate syntax: 
query I rowsort label-8131
SELECT ALL - + MIN( ALL - + 67 ) * - - 1 + - 53 + SUM( DISTINCT 75 ) * + 36 * 95 AS col1
----
256514

skipif mysql # not compatible
query I rowsort label-8131
SELECT ALL - + MIN ( ALL - + 67 ) * - - 1 + - 53 + SUM ( DISTINCT 75 ) * + 36 * 95 AS col1
----
256514

onlyif mysql # aggregate syntax: 
query I rowsort label-8132
SELECT + MAX( DISTINCT - 86 ) AS col1
----
-86

skipif mysql # not compatible
query I rowsort label-8132
SELECT + MAX ( DISTINCT - 86 ) AS col1
----
-86

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8134
SELECT 10 * - 98 + - ( + MIN( - - 45 ) ) + - ( 31 ) AS col0
----
-1056

skipif mysql # not compatible
query I rowsort label-8134
SELECT 10 * - 98 + - ( + MIN ( - - 45 ) ) + - ( 31 ) AS col0
----
-1056

onlyif mysql # aggregate syntax: 
query II rowsort label-8135
SELECT 60 AS col1, COUNT( - 57 ) * - 62 AS col1
----
60
-62

skipif mysql # not compatible
query II rowsort label-8135
SELECT 60 AS col1, COUNT ( - 57 ) * - 62 AS col1
----
60
-62

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8136
SELECT + + COUNT( * ) DIV + 82 + 45 + + 74 AS col1, - 88
----
119
-88

skipif mysql # not compatible
query II rowsort label-8136
SELECT + + COUNT ( * ) / + 82 + 45 + + 74 AS col1, - 88
----
119
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-8137
SELECT ALL - - 16 DIV - 62 + + 90
----
90

skipif mysql # not compatible
query I rowsort label-8137
SELECT ALL - - 16 / - 62 + + 90
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8138
SELECT ALL + 20 col0, - NULLIF ( + 90, + 62 * + 18 * + COUNT( * ) DIV + COUNT( * ) ) DIV - 41 AS col1
----
20
2

skipif mysql # not compatible
query II rowsort label-8138
SELECT ALL + 20 col0, - NULLIF ( + 90, + 62 * + 18 * + COUNT ( * ) / + COUNT ( * ) ) / - 41 AS col1
----
20
2

query II rowsort
SELECT DISTINCT - - 88 * + 87 + + + 97 - 30, 35 col2
----
7723
35

query II rowsort
SELECT + 93 AS col2, 82 AS col0
----
93
82

onlyif mysql # DIV for integer division: 
query I rowsort label-8141
SELECT ALL + 12 DIV - + 11 col1
----
-1

skipif mysql # not compatible
query I rowsort label-8141
SELECT ALL + 12 / - + 11 col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8142
SELECT COALESCE ( - 77, + 57 * - + CASE + 32 WHEN 29 * 80 - 63 THEN + COUNT( * ) END )
----
-77

skipif mysql # not compatible
query I rowsort label-8142
SELECT COALESCE ( - 77, + 57 * - + CASE + 32 WHEN 29 * 80 - 63 THEN + COUNT ( * ) END )
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8143
SELECT COALESCE ( + + 94, CASE - - 83 WHEN 26 THEN + 48 * COUNT( 69 ) * 25 - + 19 WHEN 44 DIV + 78 + - 37 THEN NULL WHEN COUNT( ( - ( + 90 ) ) ) * - 88 + 68 * - 53 THEN NULL ELSE NULL END + + CAST( NULL AS SIGNED ) DIV + 66, - 9 * 13 + 16, + COALESCE ( 81, - 64 + + 29 ) ) AS col1
----
94

skipif mysql # not compatible
query I rowsort label-8143
SELECT COALESCE ( + + 94, CASE - - 83 WHEN 26 THEN + 48 * COUNT ( 69 ) * 25 - + 19 WHEN 44 / + 78 + - 37 THEN NULL WHEN COUNT ( ( - ( + 90 ) ) ) * - 88 + 68 * - 53 THEN NULL ELSE NULL END + + CAST ( NULL AS INTEGER ) / + 66, - 9 * 13 + 16, + COALESCE ( 81, - 64 + + 29 ) ) AS col1
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8144
SELECT DISTINCT + NULLIF ( + 69, - + CAST( + 46 AS SIGNED ) + 98 ) AS col1
----
69

skipif mysql # not compatible
query I rowsort label-8144
SELECT DISTINCT + NULLIF ( + 69, - + CAST ( + 46 AS INTEGER ) + 98 ) AS col1
----
69

query I rowsort
SELECT ALL - 39 * 9
----
-351

onlyif mysql # aggregate syntax: 
query I rowsort label-8146
SELECT NULLIF ( - - 58, - 88 ) * COUNT( * ) + - COUNT( - + 77 ) * - ( + 92 ) - 93
----
57

skipif mysql # not compatible
query I rowsort label-8146
SELECT NULLIF ( - - 58, - 88 ) * COUNT ( * ) + - COUNT ( - + 77 ) * - ( + 92 ) - 93
----
57

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8148
SELECT + 52 * + COUNT( * ) - - - NULLIF ( 33, - 41 ) + - 50 + - - CASE 60 WHEN + 40 THEN COUNT( * ) WHEN - 53 + + 80 THEN NULL END * - 88 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8148
SELECT + 52 * + COUNT ( * ) - - - NULLIF ( 33, - 41 ) + - 50 + - - CASE 60 WHEN + 40 THEN COUNT ( * ) WHEN - 53 + + 80 THEN NULL END * - 88 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8149
SELECT SUM( - - 16 )
----
16

skipif mysql # not compatible
query I rowsort label-8149
SELECT SUM ( - - 16 )
----
16

query I rowsort
SELECT ALL - 40 * - - 71 col0
----
-2840

query I rowsort
SELECT DISTINCT - 22 * - 33 AS col0
----
726

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8152
SELECT ALL - CAST( NULL AS SIGNED ) * + AVG ( DISTINCT + + 57 ) + + 28 - AVG ( - 77 ) * 58
----
NULL

skipif mysql # not compatible
query I rowsort label-8152
SELECT ALL - CAST ( NULL AS INTEGER ) * + AVG ( DISTINCT + + 57 ) + + 28 - AVG ( - 77 ) * 58
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8153
SELECT 40 * + ( - ( SUM( DISTINCT + + ( + + 73 ) ) ) ) * - 87 - - 62 * - 71 - - 22 AS col1
----
249660

skipif mysql # not compatible
query I rowsort label-8153
SELECT 40 * + ( - ( SUM ( DISTINCT + + ( + + 73 ) ) ) ) * - 87 - - 62 * - 71 - - 22 AS col1
----
249660

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8155
SELECT DISTINCT NULLIF ( 55, - NULLIF ( - 90, - COUNT( * ) * 66 + + 51 ) - 46 ) + - 88 * + 38
----
-3289

skipif mysql # not compatible
query I rowsort label-8155
SELECT DISTINCT NULLIF ( 55, - NULLIF ( - 90, - COUNT ( * ) * 66 + + 51 ) - 46 ) + - 88 * + 38
----
-3289

query I rowsort
SELECT ALL 75 + + + ( + 33 )
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-8157
SELECT - NULLIF ( SUM( - + 44 ), - 72 ) AS col0
----
44

skipif mysql # not compatible
query I rowsort label-8157
SELECT - NULLIF ( SUM ( - + 44 ), - 72 ) AS col0
----
44

onlyif mysql # aggregate syntax: 
query II rowsort label-8158
SELECT ALL + 83 + - + 17 AS col0, + 30 + COUNT( * )
----
66
31

skipif mysql # not compatible
query II rowsort label-8158
SELECT ALL + 83 + - + 17 AS col0, + 30 + COUNT ( * )
----
66
31

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8160
SELECT DISTINCT 31 * - - 29 col0, + CAST( NULL AS SIGNED ) AS col1
----
899
NULL

skipif mysql # not compatible
query II rowsort label-8160
SELECT DISTINCT 31 * - - 29 col0, + CAST ( NULL AS INTEGER ) AS col1
----
899
NULL

query I rowsort
SELECT ALL 35 * - 22
----
-770

query I rowsort
SELECT ALL + + 68 + - 40 * + 68
----
-2652

query I rowsort
SELECT + 79 * 48 col2
----
3792

query I rowsort
SELECT DISTINCT + 0 - - 44 + 57 AS col0
----
101

query I rowsort
SELECT - - NULLIF ( 19, 45 * + 47 + + - 23 + + - 48 ) AS col1
----
19

query I rowsort
SELECT ALL COALESCE ( 12, 8 + + + 98 )
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-8167
SELECT + - 20 + + + MIN( ALL + + 70 ) + + + 53 AS col0
----
103

skipif mysql # not compatible
query I rowsort label-8167
SELECT + - 20 + + + MIN ( ALL + + 70 ) + + + 53 AS col0
----
103

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-8171
SELECT ALL 65 DIV 50 * 88, + 44 - 16 * + - 73 AS col0
----
88
1212

skipif mysql # not compatible
query II rowsort label-8171
SELECT ALL 65 / 50 * 88, + 44 - 16 * + - 73 AS col0
----
88
1212

query I rowsort
SELECT - 4 + - 73 AS col1
----
-77

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

skipif mysql # not compatible
query I rowsort label-8173
SELECT DISTINCT + CAST ( - - CAST ( NULL AS REAL ) AS INTEGER ) * 61
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8174
SELECT + COUNT( * ) DIV COALESCE ( - + 52, + - 75 ) * + 51 + 47 * - 65 + + + 60
----
-2995

skipif mysql # not compatible
query I rowsort label-8174
SELECT + COUNT ( * ) / COALESCE ( - + 52, + - 75 ) * + 51 + 47 * - 65 + + + 60
----
-2995

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8175
SELECT + SUM( DISTINCT 8 ) + 32 + COUNT( * ) + + 38 - - 3 + - 58 * + COUNT( 2 ) DIV + 68
----
82

skipif mysql # not compatible
query I rowsort label-8175
SELECT + SUM ( DISTINCT 8 ) + 32 + COUNT ( * ) + + 38 - - 3 + - 58 * + COUNT ( 2 ) / + 68
----
82

onlyif mysql # aggregate syntax: 
query II rowsort label-8176
SELECT + 56 AS col2, + MIN( ALL 89 )
----
56
89

skipif mysql # not compatible
query II rowsort label-8176
SELECT + 56 AS col2, + MIN ( ALL 89 )
----
56
89

query II rowsort
SELECT - 70 + - 71 + + - 19 AS col0, 83
----
-160
83

query I rowsort
SELECT - 76 - + - ( - 48 ) * ( 82 ) col2
----
-4012

onlyif mysql # DIV for integer division: 
query I rowsort label-8179
SELECT - 35 DIV 61
----
0

skipif mysql # not compatible
query I rowsort label-8179
SELECT - 35 / 61
----
0

query I rowsort
SELECT ( - - ( - 58 ) ) col1
----
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-8181
SELECT ALL - 45 * - COUNT( * ) * - 44 + 20 + + 34 + 83, - ( - 49 ) AS col2
----
-1843
49

skipif mysql # not compatible
query II rowsort label-8181
SELECT ALL - 45 * - COUNT ( * ) * - 44 + 20 + + 34 + 83, - ( - 49 ) AS col2
----
-1843
49

query II rowsort
SELECT + 22 AS col0, - 48 AS col2
----
22
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-8183
SELECT ALL 10 * - 79 + 93 + 31 DIV + 70
----
-697

skipif mysql # not compatible
query I rowsort label-8183
SELECT ALL 10 * - 79 + 93 + 31 / + 70
----
-697

onlyif mysql # aggregate syntax: 
query I rowsort label-8184
SELECT ALL ( - SUM( DISTINCT 39 ) ) * 76 AS col1
----
-2964

skipif mysql # not compatible
query I rowsort label-8184
SELECT ALL ( - SUM ( DISTINCT 39 ) ) * 76 AS col1
----
-2964

query II rowsort
SELECT + 32 AS col1, 75 + - - 79 AS col2
----
32
154

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8186
SELECT NULLIF ( + - 57, - CAST( NULL AS SIGNED ) * - 74 )
----
-57

skipif mysql # not compatible
query I rowsort label-8186
SELECT NULLIF ( + - 57, - CAST ( NULL AS INTEGER ) * - 74 )
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-8187
SELECT ALL + 18 * - ( + + 8 ) + MAX( ALL - 62 ) * + 80 AS col0
----
-5104

skipif mysql # not compatible
query I rowsort label-8187
SELECT ALL + 18 * - ( + + 8 ) + MAX ( ALL - 62 ) * + 80 AS col0
----
-5104

onlyif mysql # aggregate syntax: 
query I rowsort label-8188
SELECT COALESCE ( - 89, - - 50 * - 7 * - COUNT( * ), + 38 )
----
-89

skipif mysql # not compatible
query I rowsort label-8188
SELECT COALESCE ( - 89, - - 50 * - 7 * - COUNT ( * ), + 38 )
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8189
SELECT ALL + CAST( + 42 AS SIGNED ) AS col1
----
42

skipif mysql # not compatible
query I rowsort label-8189
SELECT ALL + CAST ( + 42 AS INTEGER ) AS col1
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-8190
SELECT - 57 * - COALESCE ( + COUNT( * ), COUNT( * ) )
----
57

skipif mysql # not compatible
query I rowsort label-8190
SELECT - 57 * - COALESCE ( + COUNT ( * ), COUNT ( * ) )
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8191
SELECT ALL - CASE + + MAX( ALL - 65 ) WHEN - 48 THEN + 14 WHEN + - 30 + - - 60 + - MIN( + 44 ) THEN NULL ELSE - 30 DIV - 17 END * 2 col2
----
-2

skipif mysql # not compatible
query I rowsort label-8191
SELECT ALL - CASE + + MAX ( ALL - 65 ) WHEN - 48 THEN + 14 WHEN + - 30 + - - 60 + - MIN ( + 44 ) THEN NULL ELSE - 30 / - 17 END * 2 col2
----
-2

query I rowsort
SELECT 9 + + 80
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8193
SELECT ALL 80 + 49 + + - COUNT( * ) - + 90 - + CAST( NULL AS SIGNED ) + - + 90 * + 87
----
NULL

skipif mysql # not compatible
query I rowsort label-8193
SELECT ALL 80 + 49 + + - COUNT ( * ) - + 90 - + CAST ( NULL AS INTEGER ) + - + 90 * + 87
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8194
SELECT ALL + 21 * - COUNT( * ) * + 62 * - NULLIF ( 83, COUNT( * ) - - 87 ) + + - 37 AS col2
----
108029

skipif mysql # not compatible
query I rowsort label-8194
SELECT ALL + 21 * - COUNT ( * ) * + 62 * - NULLIF ( 83, COUNT ( * ) - - 87 ) + + - 37 AS col2
----
108029

onlyif mysql # aggregate syntax: 
query I rowsort label-8195
SELECT ( + MIN( DISTINCT - - 42 ) ) + + 93
----
135

skipif mysql # not compatible
query I rowsort label-8195
SELECT ( + MIN ( DISTINCT - - 42 ) ) + + 93
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-8196
SELECT + SUM( - 80 ) + - CASE + - 39 WHEN - 14 THEN NULL WHEN + + 64 THEN - - COUNT( * ) ELSE - NULLIF ( + CASE 36 WHEN 77 THEN NULL ELSE 45 * 77 END, + 62 ) END
----
3385

skipif mysql # not compatible
query I rowsort label-8196
SELECT + SUM ( - 80 ) + - CASE + - 39 WHEN - 14 THEN NULL WHEN + + 64 THEN - - COUNT ( * ) ELSE - NULLIF ( + CASE 36 WHEN 77 THEN NULL ELSE 45 * 77 END, + 62 ) END
----
3385

onlyif mysql # aggregate syntax: 
query I rowsort label-8197
SELECT ALL + MAX( DISTINCT ( + 13 ) ) - + - NULLIF ( 44, + 35 * + + 91 )
----
57

skipif mysql # not compatible
query I rowsort label-8197
SELECT ALL + MAX ( DISTINCT ( + 13 ) ) - + - NULLIF ( 44, + 35 * + + 91 )
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-8198
SELECT COUNT( ALL - - 76 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8198
SELECT COUNT ( ALL - - 76 ) AS col2
----
1

query I rowsort
SELECT + 43 - 45 + + 49 + 26
----
73

query I rowsort
SELECT ALL 83 * 83
----
6889

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8201
SELECT ALL + - 7 DIV + COALESCE ( - + 75, + - COUNT( * ), - 69 + 67 ) + + + 44 AS col1
----
44

skipif mysql # not compatible
query I rowsort label-8201
SELECT ALL + - 7 / + COALESCE ( - + 75, + - COUNT ( * ), - 69 + 67 ) + + + 44 AS col1
----
44

query I rowsort
SELECT ALL 5 * - 75 AS col1
----
-375

query I rowsort
SELECT ALL 49 * 52
----
2548

query I rowsort
SELECT DISTINCT 54 * + 66
----
3564

query I rowsort
SELECT + ( + 71 ) col2
----
71

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8206
SELECT NULLIF ( - - CASE - 97 WHEN + 44 THEN + 18 ELSE 42 END, CAST( - + AVG ( DISTINCT CAST( - 83 AS SIGNED ) ) AS DECIMAL ) * - 20 ) * ( 64 )
----
2688

skipif mysql # not compatible
query I rowsort label-8206
SELECT NULLIF ( - - CASE - 97 WHEN + 44 THEN + 18 ELSE 42 END, CAST ( - + AVG ( DISTINCT CAST ( - 83 AS INTEGER ) ) AS REAL ) * - 20 ) * ( 64 )
----
2688

query I rowsort
SELECT ALL 65 + + + 14
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8208
SELECT DISTINCT 0 + MIN( ALL + ( - 56 ) ) - + 22 * - - MAX( ALL - 86 ) * - COALESCE ( - AVG ( - 7 ), 70 + 22 * 24, - 48 ) + + CAST( + CASE 50 WHEN + 18 * + COALESCE ( 97, - 32 ) + + CASE NULLIF ( 63, 24 ) WHEN - 45 THEN + 46 ELSE NULL END THEN NULL WHEN 65 THEN 78 END AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8208
SELECT DISTINCT 0 + MIN ( ALL + ( - 56 ) ) - + 22 * - - MAX ( ALL - 86 ) * - COALESCE ( - AVG ( - 7 ), 70 + 22 * 24, - 48 ) + + CAST ( + CASE 50 WHEN + 18 * + COALESCE ( 97, - 32 ) + + CASE NULLIF ( 63, 24 ) WHEN - 45 THEN + 46 ELSE NULL END THEN NULL WHEN 65 THEN 78 END AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL + 76 + - - 98 AS col1
----
174

query I rowsort
SELECT ALL 5 + 60 - + 48 col2
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-8211
SELECT ALL + ( + 25 ) + + + 94 + + COUNT( * ) AS col2
----
120

skipif mysql # not compatible
query I rowsort label-8211
SELECT ALL + ( + 25 ) + + + 94 + + COUNT ( * ) AS col2
----
120

query I rowsort
SELECT 13 * - + 55 AS col1
----
-715

query I rowsort
SELECT - 5 * 80 + + 31 AS col0
----
-369

query I rowsort
SELECT 38 * + - 42 * - + 59 AS col0
----
94164

onlyif mysql # aggregate syntax: 
query I rowsort label-8215
SELECT 12 + 94 + MIN( + 7 ) AS col1
----
113

skipif mysql # not compatible
query I rowsort label-8215
SELECT 12 + 94 + MIN ( + 7 ) AS col1
----
113

query I rowsort
SELECT ALL 39 - - + ( 23 ) + - - 54 AS col1
----
116

query I rowsort
SELECT 22 + + 51
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8218
SELECT ALL + 14 - + CAST( NULL AS SIGNED ) + - MIN( 58 ) * - 11 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8218
SELECT ALL + 14 - + CAST ( NULL AS INTEGER ) + - MIN ( 58 ) * - 11 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8219
SELECT 28 * COUNT( * ) AS col1
----
28

skipif mysql # not compatible
query I rowsort label-8219
SELECT 28 * COUNT ( * ) AS col1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-8220
SELECT ALL + COUNT( * ) * + 1 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8220
SELECT ALL + COUNT ( * ) * + 1 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8221
SELECT DISTINCT - COUNT( * ) - CASE - - 73 WHEN - - 68 * + 39 + - - 83 THEN + + 44 * - 15 * - 54 + COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8221
SELECT DISTINCT - COUNT ( * ) - CASE - - 73 WHEN - - 68 * + 39 + - - 83 THEN + + 44 * - 15 * - 54 + COUNT ( * ) END AS col0
----
NULL

query I rowsort
SELECT + 61 + 37
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8223
SELECT ALL - + 85 - + 93 * ( 70 ) * - + NULLIF ( 51, - MAX( + + CAST( - 39 AS SIGNED ) ) ) * CAST( NULL AS SIGNED ) + NULLIF ( + 84 + + 82, + 17 * - SUM( DISTINCT - CAST( NULL AS SIGNED ) ) ) * + COALESCE ( + COUNT( * ), - 26 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8223
SELECT ALL - + 85 - + 93 * ( 70 ) * - + NULLIF ( 51, - MAX ( + + CAST ( - 39 AS INTEGER ) ) ) * CAST ( NULL AS INTEGER ) + NULLIF ( + 84 + + 82, + 17 * - SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) ) * + COALESCE ( + COUNT ( * ), - 26 ) AS col2
----
NULL

query I rowsort
SELECT + 75 + + - 59
----
16

query I rowsort
SELECT ALL + - 72 * - + 87 AS col0
----
6264

onlyif mysql # aggregate syntax: 
query I rowsort label-8226
SELECT - 1 * + + COUNT( * ) * 42 * + + 95 + - - 21
----
-3969

skipif mysql # not compatible
query I rowsort label-8226
SELECT - 1 * + + COUNT ( * ) * 42 * + + 95 + - - 21
----
-3969

onlyif mysql # aggregate syntax: 
query I rowsort label-8227
SELECT DISTINCT + 76 * 66 / CASE - CASE - + ( + 55 ) WHEN - ( - 94 ) / + ( - 40 ) * - 30 THEN COUNT( * ) + - 40 ELSE + ( + 73 ) END WHEN COUNT( * ) * COUNT( * ) + 74 THEN 82 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8227
SELECT DISTINCT + 76 * 66 / CASE - CASE - + ( + 55 ) WHEN - ( - 94 ) / + ( - 40 ) * - 30 THEN COUNT ( * ) + - 40 ELSE + ( + 73 ) END WHEN COUNT ( * ) * COUNT ( * ) + 74 THEN 82 END AS col1
----
NULL

query I rowsort
SELECT ALL + + 5 * 65
----
325

query I rowsort
SELECT DISTINCT + + 30 * + + 56
----
1680

query I rowsort
SELECT - + CASE + 26 WHEN - - 48 THEN NULL ELSE + 87 + - 92 END
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-8231
SELECT ALL - 93 DIV + ( + - 73 )
----
1

skipif mysql # not compatible
query I rowsort label-8231
SELECT ALL - 93 / + ( + - 73 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8232
SELECT 5 * + - 89 AS col1, ( + 86 ) + + CAST( 92 AS SIGNED ) AS col1
----
-445
178

skipif mysql # not compatible
query II rowsort label-8232
SELECT 5 * + - 89 AS col1, ( + 86 ) + + CAST ( 92 AS INTEGER ) AS col1
----
-445
178

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8233
SELECT + 91 + - + 53 + + 67 / CAST( NULL AS SIGNED ) + - 24 + + ( NULLIF ( - 91, + 56 ) ) * 11 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8233
SELECT + 91 + - + 53 + + 67 / CAST ( NULL AS INTEGER ) + - 24 + + ( NULLIF ( - 91, + 56 ) ) * 11 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8234
SELECT ALL + SUM( - 95 ) AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-8234
SELECT ALL + SUM ( - 95 ) AS col2
----
-95

query I rowsort
SELECT 39 + + - 79 AS col1
----
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-8236
SELECT 97 DIV - 38 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-8236
SELECT 97 / - 38 AS col1
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8237
SELECT ALL 83 + + 30 + - 79 + - 97 DIV + - MIN( DISTINCT 86 )
----
35

skipif mysql # not compatible
query I rowsort label-8237
SELECT ALL 83 + + 30 + - 79 + - 97 / + - MIN ( DISTINCT 86 )
----
35

query I rowsort
SELECT 28 * - 11
----
-308

query I rowsort
SELECT ALL 18 * - 56
----
-1008

query I rowsort
SELECT 88 + ( + 39 ) col1
----
127

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8241
SELECT COUNT( * ) DIV + 71 * - + 4 + 42 + 12 AS col0, - 76 + 48 AS col0
----
54
-28

skipif mysql # not compatible
query II rowsort label-8241
SELECT COUNT ( * ) / + 71 * - + 4 + 42 + 12 AS col0, - 76 + 48 AS col0
----
54
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-8242
SELECT NULLIF ( - - COUNT( * ), - MAX( 91 ) ) + - 69 - - 2 * 81
----
94

skipif mysql # not compatible
query I rowsort label-8242
SELECT NULLIF ( - - COUNT ( * ), - MAX ( 91 ) ) + - 69 - - 2 * 81
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-8243
SELECT ALL COALESCE ( 32, - 39 * - 57 - + + 96 + - ( + + 3 ) * + ( 2 ) ) * CASE + 93 WHEN COUNT( + 34 ) * 43 THEN NULL ELSE - COALESCE ( MIN( ALL - 20 ), 36 ) * + 73 + + 53 * MAX( + 11 * + 52 ) END + + 70 AS col0
----
1016902

skipif mysql # not compatible
query I rowsort label-8243
SELECT ALL COALESCE ( 32, - 39 * - 57 - + + 96 + - ( + + 3 ) * + ( 2 ) ) * CASE + 93 WHEN COUNT ( + 34 ) * 43 THEN NULL ELSE - COALESCE ( MIN ( ALL - 20 ), 36 ) * + 73 + + 53 * MAX ( + 11 * + 52 ) END + + 70 AS col0
----
1016902

onlyif mysql # DIV for integer division: 
query I rowsort label-8244
SELECT 84 * 68 DIV - 90 AS col0
----
-63

skipif mysql # not compatible
query I rowsort label-8244
SELECT 84 * 68 / - 90 AS col0
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-8245
SELECT SUM( DISTINCT + 39 ) AS col2
----
39

skipif mysql # not compatible
query I rowsort label-8245
SELECT SUM ( DISTINCT + 39 ) AS col2
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-8246
SELECT - 2 DIV + 91 + 77 - - 99 * 73
----
7304

skipif mysql # not compatible
query I rowsort label-8246
SELECT - 2 / + 91 + 77 - - 99 * 73
----
7304

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8247
SELECT + CASE CAST( NULL AS SIGNED ) WHEN - 5 * + - 86 * + CAST( - 39 AS SIGNED ) * 1 * - MIN( DISTINCT + 92 ) THEN NULL WHEN 24 * + ( - ( 7 ) / 77 ) THEN - 66 / SUM( - 82 ) + ( - 53 ) ELSE COUNT( 30 ) * 17 END AS col0
----
17

skipif mysql # not compatible
query I rowsort label-8247
SELECT + CASE CAST ( NULL AS INTEGER ) WHEN - 5 * + - 86 * + CAST ( - 39 AS INTEGER ) * 1 * - MIN ( DISTINCT + 92 ) THEN NULL WHEN 24 * + ( - ( 7 ) / 77 ) THEN - 66 / SUM ( - 82 ) + ( - 53 ) ELSE COUNT ( 30 ) * 17 END AS col0
----
17

query I rowsort
SELECT - 63 + - 45 col1
----
-108

query I rowsort
SELECT + 51 * - 82
----
-4182

onlyif mysql # aggregate syntax: 
query I rowsort label-8250
SELECT MAX( - 88 )
----
-88

skipif mysql # not compatible
query I rowsort label-8250
SELECT MAX ( - 88 )
----
-88

query II rowsort
SELECT + NULLIF ( - 61, 96 ), 31 AS col0
----
-61
31

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8252
SELECT ALL + 67 AS col1, COALESCE ( + - 55, 86 * - CAST( NULL AS SIGNED ) )
----
67
-55

skipif mysql # not compatible
query II rowsort label-8252
SELECT ALL + 67 AS col1, COALESCE ( + - 55, 86 * - CAST ( NULL AS INTEGER ) )
----
67
-55

query I rowsort
SELECT ALL + 19 * + 87
----
1653

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8254
SELECT + COUNT( * ) + - 21 / - 73 - - - CAST( NULL AS SIGNED ) + 47 + + 21 * + 91
----
NULL

skipif mysql # not compatible
query I rowsort label-8254
SELECT + COUNT ( * ) + - 21 / - 73 - - - CAST ( NULL AS INTEGER ) + 47 + + 21 * + 91
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8255
SELECT ALL ( - 45 ) * + + ( COUNT( * ) ) DIV - 84, - 39 col0
----
0
-39

skipif mysql # not compatible
query II rowsort label-8255
SELECT ALL ( - 45 ) * + + ( COUNT ( * ) ) / - 84, - 39 col0
----
0
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8256
SELECT ALL + 37 * 5 * + - COUNT( * ) * + + COUNT( * ) * - 80 - + 42 * + NULLIF ( - + 55, + 81 + 5 + 16 ) * COALESCE ( 5 - + 23 DIV 42, + 81, + 94 * + 60 ) AS col2
----
26350

skipif mysql # not compatible
query I rowsort label-8256
SELECT ALL + 37 * 5 * + - COUNT ( * ) * + + COUNT ( * ) * - 80 - + 42 * + NULLIF ( - + 55, + 81 + 5 + 16 ) * COALESCE ( 5 - + 23 / 42, + 81, + 94 * + 60 ) AS col2
----
26350

query I rowsort
SELECT DISTINCT + 71 * + 51 AS col0
----
3621

query I rowsort
SELECT DISTINCT + - NULLIF ( - 16, - 57 * - 77 + + ( - 36 ) )
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-8259
SELECT + 98 DIV 90 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8259
SELECT + 98 / 90 AS col0
----
1

query I rowsort
SELECT - 68 * - 98 AS col2
----
6664

query I rowsort
SELECT ALL + - 42 col2
----
-42

query I rowsort
SELECT DISTINCT + NULLIF ( - 55, + - ( - + 42 ) + - + 63 )
----
-55

query I rowsort
SELECT + + 58 + - 85 AS col2
----
-27

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8264
SELECT - ( - CAST( NULL AS DECIMAL ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8264
SELECT - ( - CAST ( NULL AS REAL ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8265
SELECT DISTINCT - 44 + COUNT( * ) * 84 * + 1 + - 21
----
19

skipif mysql # not compatible
query I rowsort label-8265
SELECT DISTINCT - 44 + COUNT ( * ) * 84 * + 1 + - 21
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-8266
SELECT ALL - 28 DIV + 5 AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-8266
SELECT ALL - 28 / + 5 AS col0
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-8267
SELECT + 1 DIV 51
----
0

skipif mysql # not compatible
query I rowsort label-8267
SELECT + 1 / 51
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8268
SELECT - CASE + 59 WHEN - + CAST( - 42 AS DECIMAL ) * - + CASE NULLIF ( 33, CAST( NULL AS SIGNED ) ) WHEN + ( + NULLIF ( - 73, 2 ) ) THEN COUNT( * ) WHEN + 23 THEN + CASE 39 WHEN - CAST( NULL AS SIGNED ) * + ( - CASE CASE + 47 WHEN + 32 THEN NULL WHEN + 79 THEN NULL ELSE + 30 END WHEN - 43 THEN 96 END ) + 2 THEN - 47 + - CAST( NULL AS SIGNED ) ELSE NULL END * - COALESCE ( + ( - 70 ) * + AVG ( 97 ) - - 31, - 96 ) WHEN MAX( DISTINCT 96 ) THEN - 95 * - MAX( DISTINCT - 6 ) END - 54 THEN - 83 WHEN MAX( 69 ) THEN ( 77 ) END + + NULLIF ( - 61 + 25 * 20, COUNT( ALL + 59 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8268
SELECT - CASE + 59 WHEN - + CAST ( - 42 AS REAL ) * - + CASE NULLIF ( 33, CAST ( NULL AS INTEGER ) ) WHEN + ( + NULLIF ( - 73, 2 ) ) THEN COUNT ( * ) WHEN + 23 THEN + CASE 39 WHEN - CAST ( NULL AS INTEGER ) * + ( - CASE CASE + 47 WHEN + 32 THEN NULL WHEN + 79 THEN NULL ELSE + 30 END WHEN - 43 THEN 96 END ) + 2 THEN - 47 + - CAST ( NULL AS INTEGER ) ELSE NULL END * - COALESCE ( + ( - 70 ) * + AVG ( 97 ) - - 31, - 96 ) WHEN MAX ( DISTINCT 96 ) THEN - 95 * - MAX ( DISTINCT - 6 ) END - 54 THEN - 83 WHEN MAX ( 69 ) THEN ( 77 ) END + + NULLIF ( - 61 + 25 * 20, COUNT ( ALL + 59 ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8269
SELECT DISTINCT - 95 * CASE 52 WHEN + 53 THEN - ( - 95 ) + 80 + + 87 + - COUNT( * ) WHEN + COUNT( * ) / + 86 THEN - 60 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8269
SELECT DISTINCT - 95 * CASE 52 WHEN + 53 THEN - ( - 95 ) + 80 + + 87 + - COUNT ( * ) WHEN + COUNT ( * ) / + 86 THEN - 60 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8270
SELECT ALL - - COUNT( ( - - ( + 92 ) ) ) + 63 AS col2
----
64

skipif mysql # not compatible
query I rowsort label-8270
SELECT ALL - - COUNT ( ( - - ( + 92 ) ) ) + 63 AS col2
----
64

query I rowsort
SELECT DISTINCT + - 2 + 8 + 17 + + + 86 * - 44 AS col1
----
-3761

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8272
SELECT DISTINCT + + 35 * + ( + - 85 ), + CAST( + - COUNT( * ) AS SIGNED ) col2
----
-2975
-1

skipif mysql # not compatible
query II rowsort label-8272
SELECT DISTINCT + + 35 * + ( + - 85 ), + CAST ( + - COUNT ( * ) AS INTEGER ) col2
----
-2975
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8273
SELECT ALL + COUNT( * ) + - COUNT( * ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8273
SELECT ALL + COUNT ( * ) + - COUNT ( * ) * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - 94 + ( - 16 )
----
-110

query II rowsort
SELECT - 4 AS col2, + 68
----
-4
68

query I rowsort
SELECT ALL 12 + + - 48 AS col0
----
-36

query I rowsort
SELECT - 17 * 77
----
-1309

query I rowsort
SELECT ALL - 77 + + + ( + - 53 ) AS col1
----
-130

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8279
SELECT ALL CASE + 69 WHEN + 86 THEN ( + - 93 ) * + AVG ( DISTINCT - 27 ) * - 81 + + + 57 + AVG ( - 91 ) * 23 - - CAST( + COALESCE ( + 22, - 24 * + 7 ) AS SIGNED ) ELSE 53 END AS col1
----
53

skipif mysql # not compatible
query I rowsort label-8279
SELECT ALL CASE + 69 WHEN + 86 THEN ( + - 93 ) * + AVG ( DISTINCT - 27 ) * - 81 + + + 57 + AVG ( - 91 ) * 23 - - CAST ( + COALESCE ( + 22, - 24 * + 7 ) AS INTEGER ) ELSE 53 END AS col1
----
53

query I rowsort
SELECT - 82 * + 51 col1
----
-4182

query I rowsort
SELECT + 87 * + - 6 AS col1
----
-522

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8282
SELECT ALL + ( + 94 ), 87 * COALESCE ( COUNT( * ), + + 54 * 85 - - SUM( ALL + 9 ) ) * - CAST( + 18 AS SIGNED ) AS col0
----
94
-1566

skipif mysql # not compatible
query II rowsort label-8282
SELECT ALL + ( + 94 ), 87 * COALESCE ( COUNT ( * ), + + 54 * 85 - - SUM ( ALL + 9 ) ) * - CAST ( + 18 AS INTEGER ) AS col0
----
94
-1566

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8283
SELECT CAST( NULL AS SIGNED ) AS col1, 17 + + COALESCE ( 37, - 0, - + CAST( NULL AS SIGNED ) + + 36 - + 38 * - 19, CASE - 24 WHEN MIN( ALL 48 ) THEN NULL WHEN ( 4 ) THEN - 95 WHEN + 2 / + 80 THEN NULL ELSE + 61 END - + 76 ) AS col2
----
NULL
54

skipif mysql # not compatible
query II rowsort label-8283
SELECT CAST ( NULL AS INTEGER ) AS col1, 17 + + COALESCE ( 37, - 0, - + CAST ( NULL AS INTEGER ) + + 36 - + 38 * - 19, CASE - 24 WHEN MIN ( ALL 48 ) THEN NULL WHEN ( 4 ) THEN - 95 WHEN + 2 / + 80 THEN NULL ELSE + 61 END - + 76 ) AS col2
----
NULL
54

query I rowsort
SELECT + 22 * - 23 AS col1
----
-506

query II rowsort
SELECT ( + + 0 ), 80 AS col1
----
0
80

onlyif mysql # DIV for integer division: 
query I rowsort label-8286
SELECT ALL - 20 DIV - - 35 - - + 11 AS col1
----
11

skipif mysql # not compatible
query I rowsort label-8286
SELECT ALL - 20 / - - 35 - - + 11 AS col1
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-8287
SELECT + 86 * + CASE + 44 WHEN + - COUNT( * ) * - - 62 + + + 45 THEN + ( + 94 ) * - + 7 + - 8 WHEN SUM( + 53 ) THEN COALESCE ( - 5, + COUNT( * ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8287
SELECT + 86 * + CASE + 44 WHEN + - COUNT ( * ) * - - 62 + + + 45 THEN + ( + 94 ) * - + 7 + - 8 WHEN SUM ( + 53 ) THEN COALESCE ( - 5, + COUNT ( * ) ) END
----
NULL

query II rowsort
SELECT ALL + 2 AS col0, 91
----
2
91

query I rowsort
SELECT + NULLIF ( - 79, 17 )
----
-79

query I rowsort
SELECT ALL - 14 * - 37
----
518

query I rowsort
SELECT - 15 * - + 67
----
1005

query I rowsort
SELECT - 9 * - 59 + + 14
----
545

onlyif mysql # aggregate syntax: 
query I rowsort label-8293
SELECT ( COUNT( ALL + 59 ) )
----
1

skipif mysql # not compatible
query I rowsort label-8293
SELECT ( COUNT ( ALL + 59 ) )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8294
SELECT DISTINCT + 89, COALESCE ( MAX( DISTINCT - ( + 70 ) ), - 34, ( + 0 ) + + + COUNT( * ) + COUNT( * ) ) * + 18 * + 79 - + 7 AS col1
----
89
-99547

skipif mysql # not compatible
query II rowsort label-8294
SELECT DISTINCT + 89, COALESCE ( MAX ( DISTINCT - ( + 70 ) ), - 34, ( + 0 ) + + + COUNT ( * ) + COUNT ( * ) ) * + 18 * + 79 - + 7 AS col1
----
89
-99547

query I rowsort
SELECT 51 * + - 13 + 82
----
-581

onlyif mysql # aggregate syntax: 
query I rowsort label-8296
SELECT ALL + CASE - + 38 WHEN - - MAX( - - 39 ) THEN COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8296
SELECT ALL + CASE - + 38 WHEN - - MAX ( - - 39 ) THEN COUNT ( * ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8297
SELECT + - COUNT( * ) + COUNT( * ), + 22 AS col0
----
0
22

skipif mysql # not compatible
query II rowsort label-8297
SELECT + - COUNT ( * ) + COUNT ( * ), + 22 AS col0
----
0
22

onlyif mysql # aggregate syntax: 
query II rowsort label-8298
SELECT DISTINCT + - 70, COUNT( * ) AS col0
----
-70
1

skipif mysql # not compatible
query II rowsort label-8298
SELECT DISTINCT + - 70, COUNT ( * ) AS col0
----
-70
1

query I rowsort
SELECT ALL + + ( + + ( 50 ) )
----
50

query I rowsort
SELECT 54 * + 0 + - + COALESCE ( + - 85, + + 28 )
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-8301
SELECT ALL - - COUNT( * ) * - 15 * + - 87 * + 98 + - 70 + 16 * COUNT( * ) * 61 * 59
----
185404

skipif mysql # not compatible
query I rowsort label-8301
SELECT ALL - - COUNT ( * ) * - 15 * + - 87 * + 98 + - 70 + 16 * COUNT ( * ) * 61 * 59
----
185404

onlyif mysql # aggregate syntax: 
query I rowsort label-8302
SELECT DISTINCT + + COUNT( DISTINCT 82 )
----
1

skipif mysql # not compatible
query I rowsort label-8302
SELECT DISTINCT + + COUNT ( DISTINCT 82 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8303
SELECT ALL + 68 * + - 6 + + MAX( - + 51 ) + - 11 * - 39 * 94 + - - 29 * 58 * + 19
----
71825

skipif mysql # not compatible
query I rowsort label-8303
SELECT ALL + 68 * + - 6 + + MAX ( - + 51 ) + - 11 * - 39 * 94 + - - 29 * 58 * + 19
----
71825

onlyif mysql # aggregate syntax: 
query I rowsort label-8304
SELECT + COUNT( * ) * + + 38 - + + 12 * - 65 col0
----
818

skipif mysql # not compatible
query I rowsort label-8304
SELECT + COUNT ( * ) * + + 38 - + + 12 * - 65 col0
----
818

query II rowsort
SELECT + 73 AS col0, 91 + - 58
----
73
33

onlyif mysql # aggregate syntax: 
query I rowsort label-8306
SELECT ALL 13 * + CASE + + 78 WHEN - - SUM( DISTINCT - 41 ) THEN + + ( + 66 ) * 61 WHEN 29 THEN + + 37 * - 47 END * MAX( DISTINCT - 16 * 69 ) + + 36 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8306
SELECT ALL 13 * + CASE + + 78 WHEN - - SUM ( DISTINCT - 41 ) THEN + + ( + 66 ) * 61 WHEN 29 THEN + + 37 * - 47 END * MAX ( DISTINCT - 16 * 69 ) + + 36 col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8307
SELECT ALL 50 * 57 + + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8307
SELECT ALL 50 * 57 + + CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8308
SELECT + COUNT( * ), 15 AS col1
----
1
15

skipif mysql # not compatible
query II rowsort label-8308
SELECT + COUNT ( * ), 15 AS col1
----
1
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8309
SELECT DISTINCT + 96 * - - 79 + + COUNT( * ) + - 88 + ( + 48 )
----
7545

skipif mysql # not compatible
query I rowsort label-8309
SELECT DISTINCT + 96 * - - 79 + + COUNT ( * ) + - 88 + ( + 48 )
----
7545

query II rowsort
SELECT + + 27 + + + 92 - + 22 + 27 AS col1, + 11 AS col1
----
124
11

onlyif mysql # aggregate syntax: 
query I rowsort label-8311
SELECT DISTINCT - COUNT( DISTINCT 92 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8311
SELECT DISTINCT - COUNT ( DISTINCT 92 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8312
SELECT ALL + - 25 + + SUM( - - 31 )
----
6

skipif mysql # not compatible
query I rowsort label-8312
SELECT ALL + - 25 + + SUM ( - - 31 )
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8313
SELECT DISTINCT 91 AS col0, - CAST( NULL AS SIGNED )
----
91
NULL

skipif mysql # not compatible
query II rowsort label-8313
SELECT DISTINCT 91 AS col0, - CAST ( NULL AS INTEGER )
----
91
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8314
SELECT ALL - 50 DIV - 73 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8314
SELECT ALL - 50 / - 73 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8315
SELECT - 18 DIV - 87, COUNT( * ) AS col2
----
0
1

skipif mysql # not compatible
query II rowsort label-8315
SELECT - 18 / - 87, COUNT ( * ) AS col2
----
0
1

query I rowsort
SELECT DISTINCT + 8 * + + 93 AS col1
----
744

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8317
SELECT ALL + COALESCE ( + COUNT( ALL 62 ), 72 ) * CAST( 43 AS SIGNED )
----
43

skipif mysql # not compatible
query I rowsort label-8317
SELECT ALL + COALESCE ( + COUNT ( ALL 62 ), 72 ) * CAST ( 43 AS INTEGER )
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-8318
SELECT + ( ( + - COUNT( * ) ) ) + + + 35 AS col0
----
34

skipif mysql # not compatible
query I rowsort label-8318
SELECT + ( ( + - COUNT ( * ) ) ) + + + 35 AS col0
----
34

query I rowsort
SELECT 97 * - 61 * + 37 AS col1
----
-218929

query I rowsort
SELECT 3 + - 51 AS col1
----
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8321
SELECT 12 + + 93 + - COALESCE ( + 37, - 24 * - - COUNT( * ) + + 66 * 38 + + COUNT( * ) * - ( - 8 ) DIV + + 47 + 94 + COALESCE ( + ( 88 ), + 13, 12 * - 81 + 20, 61 ) )
----
68

skipif mysql # not compatible
query I rowsort label-8321
SELECT 12 + + 93 + - COALESCE ( + 37, - 24 * - - COUNT ( * ) + + 66 * 38 + + COUNT ( * ) * - ( - 8 ) / + + 47 + 94 + COALESCE ( + ( 88 ), + 13, 12 * - 81 + 20, 61 ) )
----
68

query I rowsort
SELECT ALL - 55 * + 52 AS col0
----
-2860

query I rowsort
SELECT DISTINCT - 46 * 10
----
-460

onlyif mysql # aggregate syntax: 
query I rowsort label-8324
SELECT ALL + 83 - + + 6 + - COUNT( * ) + - - 84 * + + 29
----
2512

skipif mysql # not compatible
query I rowsort label-8324
SELECT ALL + 83 - + + 6 + - COUNT ( * ) + - - 84 * + + 29
----
2512

query I rowsort
SELECT 12 * + CASE 55 WHEN - 46 * - 97 * + ( - 66 ) - - + 39 THEN 3 ELSE ( - ( 23 ) ) END * 23 AS col1
----
-6348

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8326
SELECT ALL - CAST( - - COUNT( * ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-8326
SELECT ALL - CAST ( - - COUNT ( * ) AS INTEGER )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-8327
SELECT 66 + - SUM( + 22 ), + 89 * + 85 AS col1
----
44
7565

skipif mysql # not compatible
query II rowsort label-8327
SELECT 66 + - SUM ( + 22 ), + 89 * + 85 AS col1
----
44
7565

query II rowsort
SELECT ALL + 83 * - 73 AS col1, + 26
----
-6059
26

onlyif mysql # aggregate syntax: 
query I rowsort label-8329
SELECT DISTINCT + NULLIF ( NULLIF ( - + 34, 7 / COUNT( * ) / - - 72 * - + 28 ), - 41 ) + - - 86 - + + 13 * - + 14 * - + 0 + + 51 * + 40 AS col1
----
2092

skipif mysql # not compatible
query I rowsort label-8329
SELECT DISTINCT + NULLIF ( NULLIF ( - + 34, 7 / COUNT ( * ) / - - 72 * - + 28 ), - 41 ) + - - 86 - + + 13 * - + 14 * - + 0 + + 51 * + 40 AS col1
----
2092

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8330
SELECT ( + COUNT( DISTINCT + + 44 ) ) DIV COUNT( - 57 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8330
SELECT ( + COUNT ( DISTINCT + + 44 ) ) / COUNT ( - 57 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8331
SELECT ALL + - ( + + 47 ) + COUNT( * )
----
-46

skipif mysql # not compatible
query I rowsort label-8331
SELECT ALL + - ( + + 47 ) + COUNT ( * )
----
-46

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8332
SELECT ALL CAST( NULL AS DECIMAL ) + 9
----
NULL

skipif mysql # not compatible
query I rowsort label-8332
SELECT ALL CAST ( NULL AS REAL ) + 9
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8333
SELECT ALL + ( 24 ) * - 95 * 97 * + CAST( NULL AS SIGNED ) * - - COUNT( * ) + - + 77
----
NULL

skipif mysql # not compatible
query I rowsort label-8333
SELECT ALL + ( 24 ) * - 95 * 97 * + CAST ( NULL AS INTEGER ) * - - COUNT ( * ) + - + 77
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8334
SELECT DISTINCT + COUNT( * ) + - 51 col0
----
-50

skipif mysql # not compatible
query I rowsort label-8334
SELECT DISTINCT + COUNT ( * ) + - 51 col0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-8335
SELECT + CASE COUNT( * ) WHEN ( 83 ) THEN + NULLIF ( + - 92, - - 80 ) + - 95 ELSE - + 31 END
----
-31

skipif mysql # not compatible
query I rowsort label-8335
SELECT + CASE COUNT ( * ) WHEN ( 83 ) THEN + NULLIF ( + - 92, - - 80 ) + - 95 ELSE - + 31 END
----
-31

query I rowsort
SELECT DISTINCT - + 60 + 66 * 28 AS col1
----
1788

onlyif mysql # DIV for integer division: 
query I rowsort label-8337
SELECT ALL - 95 + + 0 - - ( - 50 ) + + 78 DIV 73 * 4 * + + 14 + - - 64 + - 67 AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-8337
SELECT ALL - 95 + + 0 - - ( - 50 ) + + 78 / 73 * 4 * + + 14 + - - 64 + - 67 AS col0
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8338
SELECT ALL + 36 + + 42 AS col0, + 54 * CAST( NULL AS SIGNED ) - - COUNT( * ) + - COUNT( * ) * + 37 + - 89 + + + 70 * + - 51 + AVG ( + 51 ) / 75
----
78
NULL

skipif mysql # not compatible
query II rowsort label-8338
SELECT ALL + 36 + + 42 AS col0, + 54 * CAST ( NULL AS INTEGER ) - - COUNT ( * ) + - COUNT ( * ) * + 37 + - 89 + + + 70 * + - 51 + AVG ( + 51 ) / 75
----
78
NULL

query I rowsort
SELECT DISTINCT 45 + - 37 AS col2
----
8

query I rowsort
SELECT ( + - 67 ) * - 64 * + ( 86 ) AS col0
----
368768

onlyif mysql # aggregate syntax: 
query I rowsort label-8341
SELECT ALL COUNT( - + 50 ) + + COUNT( ALL - 52 )
----
2

skipif mysql # not compatible
query I rowsort label-8341
SELECT ALL COUNT ( - + 50 ) + + COUNT ( ALL - 52 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8342
SELECT - + ( - COUNT( * ) ) * + - 85 + + + 7 AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-8342
SELECT - + ( - COUNT ( * ) ) * + - 85 + + + 7 AS col1
----
-78

query I rowsort
SELECT - 60 * 87 * + 58 * 58 AS col1
----
-17560080

onlyif mysql # DIV for integer division: 
query II rowsort label-8344
SELECT ALL - 10 * 31, 61 + - + 20 - + 69 + + ( - 95 ) * 59 DIV - 26 AS col2
----
-310
187

skipif mysql # not compatible
query II rowsort label-8344
SELECT ALL - 10 * 31, 61 + - + 20 - + 69 + + ( - 95 ) * 59 / - 26 AS col2
----
-310
187

onlyif mysql # aggregate syntax: 
query I rowsort label-8345
SELECT + 69 + CASE + 53 WHEN + + 61 / - MAX( ALL + 57 ) + - 92 + - COUNT( - 98 ) THEN COUNT( - 56 ) * + 69 ELSE - ( - 4 ) END
----
73

skipif mysql # not compatible
query I rowsort label-8345
SELECT + 69 + CASE + 53 WHEN + + 61 / - MAX ( ALL + 57 ) + - 92 + - COUNT ( - 98 ) THEN COUNT ( - 56 ) * + 69 ELSE - ( - 4 ) END
----
73

query I rowsort
SELECT ALL 0 * + 36
----
0

query II rowsort
SELECT ALL 4 col2, 57 AS col0
----
4
57

onlyif mysql # aggregate syntax: 
query I rowsort label-8348
SELECT ALL COUNT( * ) - 22 AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-8348
SELECT ALL COUNT ( * ) - 22 AS col2
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-8349
SELECT MIN( DISTINCT - - 23 ) * + + 14 AS col1
----
322

skipif mysql # not compatible
query I rowsort label-8349
SELECT MIN ( DISTINCT - - 23 ) * + + 14 AS col1
----
322

onlyif mysql # aggregate syntax: 
query I rowsort label-8350
SELECT 32 * 76 * + NULLIF ( CASE - + ( - COUNT( * ) ) WHEN + 76 * - ( + 76 ) + - 3 + - 73 THEN - 52 ELSE 58 + - 72 END, + COALESCE ( - NULLIF ( - 79, 30 ), 67 / - 82 ) / 41 + - 25 ) AS col2
----
-34048

skipif mysql # not compatible
query I rowsort label-8350
SELECT 32 * 76 * + NULLIF ( CASE - + ( - COUNT ( * ) ) WHEN + 76 * - ( + 76 ) + - 3 + - 73 THEN - 52 ELSE 58 + - 72 END, + COALESCE ( - NULLIF ( - 79, 30 ), 67 / - 82 ) / 41 + - 25 ) AS col2
----
-34048

onlyif mysql # aggregate syntax: 
query II rowsort label-8351
SELECT 38 + SUM( ALL - ( + + 27 ) ) AS col0, + 93 * + COUNT( * ) AS col0
----
11
93

skipif mysql # not compatible
query II rowsort label-8351
SELECT 38 + SUM ( ALL - ( + + 27 ) ) AS col0, + 93 * + COUNT ( * ) AS col0
----
11
93

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8352
SELECT ALL 13 AS col0, - CAST( NULL AS SIGNED )
----
13
NULL

skipif mysql # not compatible
query II rowsort label-8352
SELECT ALL 13 AS col0, - CAST ( NULL AS INTEGER )
----
13
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8353
SELECT ALL 15, CAST( + 36 AS SIGNED ) AS col1
----
15
36

skipif mysql # not compatible
query II rowsort label-8353
SELECT ALL 15, CAST ( + 36 AS INTEGER ) AS col1
----
15
36

query I rowsort
SELECT DISTINCT + 69 * - 53 AS col2
----
-3657

onlyif mysql # DIV for integer division: 
query I rowsort label-8355
SELECT ALL ( - 5 ) DIV + 73 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8355
SELECT ALL ( - 5 ) / + 73 AS col1
----
0

query I rowsort
SELECT ( - - 30 ) * 45 + + ( + 6 ) AS col1
----
1356

onlyif mysql # aggregate syntax: 
query II rowsort label-8357
SELECT 47 * - MAX( DISTINCT + - 17 ) AS col1, - 23
----
799
-23

skipif mysql # not compatible
query II rowsort label-8357
SELECT 47 * - MAX ( DISTINCT + - 17 ) AS col1, - 23
----
799
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-8358
SELECT COUNT( * ) * + + MAX( + 28 ) AS col2
----
28

skipif mysql # not compatible
query I rowsort label-8358
SELECT COUNT ( * ) * + + MAX ( + 28 ) AS col2
----
28

onlyif mysql # aggregate syntax: 
query II rowsort label-8359
SELECT + COUNT( * ), + 19 AS col1
----
1
19

skipif mysql # not compatible
query II rowsort label-8359
SELECT + COUNT ( * ), + 19 AS col1
----
1
19

onlyif mysql # aggregate syntax: 
query I rowsort label-8360
SELECT COUNT( + 23 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8360
SELECT COUNT ( + 23 ) AS col0
----
1

query I rowsort
SELECT ALL - 97 * - 59
----
5723

onlyif mysql # aggregate syntax: 
query I rowsort label-8362
SELECT 47 * + SUM( ALL 39 ) col1
----
1833

skipif mysql # not compatible
query I rowsort label-8362
SELECT 47 * + SUM ( ALL 39 ) col1
----
1833

onlyif mysql # aggregate syntax: 
query II rowsort label-8363
SELECT ALL COUNT( * ) + + 7 + + COALESCE ( - 0, + COUNT( * ), 53 + - MIN( ALL - 50 ) ) col1, - 85 AS col1
----
8
-85

skipif mysql # not compatible
query II rowsort label-8363
SELECT ALL COUNT ( * ) + + 7 + + COALESCE ( - 0, + COUNT ( * ), 53 + - MIN ( ALL - 50 ) ) col1, - 85 AS col1
----
8
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-8364
SELECT DISTINCT - COUNT( ALL + + 16 )
----
-1

skipif mysql # not compatible
query I rowsort label-8364
SELECT DISTINCT - COUNT ( ALL + + 16 )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-8365
SELECT + + 72 AS col1, ( - ( + + COUNT( * ) ) ) + 3 AS col1
----
72
2

skipif mysql # not compatible
query II rowsort label-8365
SELECT + + 72 AS col1, ( - ( + + COUNT ( * ) ) ) + 3 AS col1
----
72
2

query I rowsort
SELECT ALL - 1 + + 44
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-8367
SELECT ALL - + COUNT( + 89 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8367
SELECT ALL - + COUNT ( + 89 ) AS col0
----
-1

query I rowsort
SELECT 49 * + 76 AS col0
----
3724

onlyif mysql # aggregate syntax: 
query I rowsort label-8369
SELECT SUM( 73 ) * 3 - 44 + - SUM( ALL 91 )
----
84

skipif mysql # not compatible
query I rowsort label-8369
SELECT SUM ( 73 ) * 3 - 44 + - SUM ( ALL 91 )
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-8370
SELECT + CASE 16 WHEN - - MIN( ALL 33 ) + ( 54 ) + + 92 * 6 THEN NULL WHEN + - 23 THEN + 8 + - MAX( - + 25 ) + 26 + 10 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8370
SELECT + CASE 16 WHEN - - MIN ( ALL 33 ) + ( 54 ) + + 92 * 6 THEN NULL WHEN + - 23 THEN + 8 + - MAX ( - + 25 ) + 26 + 10 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8371
SELECT ALL - - AVG ( + 1 ) + + - 64 * + - 48 / CAST( NULL AS SIGNED ) + COALESCE ( 8, 62 + + + 10, - 9 ) + - + 1 * - - 83 * + + CAST( NULL AS SIGNED ) / - 31 - 75 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8371
SELECT ALL - - AVG ( + 1 ) + + - 64 * + - 48 / CAST ( NULL AS INTEGER ) + COALESCE ( 8, 62 + + + 10, - 9 ) + - + 1 * - - 83 * + + CAST ( NULL AS INTEGER ) / - 31 - 75 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8372
SELECT ALL + 65 + - + 94 DIV + 75 AS col2, + CASE + 75 WHEN - CAST( + 28 AS SIGNED ) THEN + 63 * + 6 WHEN - 55 THEN - 72 WHEN - + COALESCE ( - ( 92 ), - 29 - 91 * COUNT( * ) ) + + 96 DIV - 24 THEN NULL ELSE 40 DIV 70 + - COALESCE ( 69 - - 29 * COALESCE ( 97, - 7 ), COALESCE ( + 0, ( COALESCE ( 51, 68 DIV + 11 + + 17, + 5 ) ) ) * NULLIF ( + 83, + COUNT( 99 ) ) + 96, - 70 ) END - + 94 AS col0
----
64
-2976

skipif mysql # not compatible
query II rowsort label-8372
SELECT ALL + 65 + - + 94 / + 75 AS col2, + CASE + 75 WHEN - CAST ( + 28 AS INTEGER ) THEN + 63 * + 6 WHEN - 55 THEN - 72 WHEN - + COALESCE ( - ( 92 ), - 29 - 91 * COUNT ( * ) ) + + 96 / - 24 THEN NULL ELSE 40 / 70 + - COALESCE ( 69 - - 29 * COALESCE ( 97, - 7 ), COALESCE ( + 0, ( COALESCE ( 51, 68 / + 11 + + 17, + 5 ) ) ) * NULLIF ( + 83, + COUNT ( 99 ) ) + 96, - 70 ) END - + 94 AS col0
----
64
-2976

query II rowsort
SELECT + 35 AS col1, - 83 * + 95 AS col1
----
35
-7885

query I rowsort
SELECT ALL - - ( - 23 ) AS col1
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-8375
SELECT DISTINCT + COUNT( * ) * + - 27 col0
----
-27

skipif mysql # not compatible
query I rowsort label-8375
SELECT DISTINCT + COUNT ( * ) * + - 27 col0
----
-27

query I rowsort
SELECT - 8 + + 12
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8377
SELECT ALL + COALESCE ( 32, - MAX( + 68 ) + - + COUNT( * ) + + COALESCE ( + SUM( + 53 ), - + COUNT( * ) ) ) + + 94 DIV - 72 AS col2
----
31

skipif mysql # not compatible
query I rowsort label-8377
SELECT ALL + COALESCE ( 32, - MAX ( + 68 ) + - + COUNT ( * ) + + COALESCE ( + SUM ( + 53 ), - + COUNT ( * ) ) ) + + 94 / - 72 AS col2
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-8378
SELECT DISTINCT - CASE - SUM( ALL + 13 ) WHEN - 97 THEN + - CASE - 21 WHEN 91 THEN NULL WHEN + - 7 / - - 26 * - + COUNT( * ) THEN 65 * - 54 WHEN 55 - 7 THEN NULL END + 84 * + 72 WHEN 43 THEN NULL ELSE + 54 END AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-8378
SELECT DISTINCT - CASE - SUM ( ALL + 13 ) WHEN - 97 THEN + - CASE - 21 WHEN 91 THEN NULL WHEN + - 7 / - - 26 * - + COUNT ( * ) THEN 65 * - 54 WHEN 55 - 7 THEN NULL END + 84 * + 72 WHEN 43 THEN NULL ELSE + 54 END AS col1
----
-54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8379
SELECT DISTINCT + 83 * COALESCE ( + 43, ( - 41 ), COUNT( * ) DIV + 36, - 86 DIV + 69 )
----
3569

skipif mysql # not compatible
query I rowsort label-8379
SELECT DISTINCT + 83 * COALESCE ( + 43, ( - 41 ), COUNT ( * ) / + 36, - 86 / + 69 )
----
3569

query II rowsort
SELECT + 8 AS col2, 14 * - - 81
----
8
1134

query I rowsort
SELECT DISTINCT + 55 * 7
----
385

onlyif mysql # DIV for integer division: 
query I rowsort label-8382
SELECT - 87 * 75 * + COALESCE ( + - 27, ( - - AVG ( 92 ) ), + - 4 ) * + - 24 * 0 DIV + 52 + + - 12 * 38 + 64 + + 60
----
-332

skipif mysql # not compatible
query I rowsort label-8382
SELECT - 87 * 75 * + COALESCE ( + - 27, ( - - AVG ( 92 ) ), + - 4 ) * + - 24 * 0 / + 52 + + - 12 * 38 + 64 + + 60
----
-332

query I rowsort
SELECT + 83 * 36 * - 89 * 64
----
-17019648

query I rowsort
SELECT DISTINCT + 22 * - 94 AS col1
----
-2068

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8385
SELECT ALL - 64 - - CAST( NULL AS SIGNED ) * + + CAST( + + 44 AS SIGNED ) * - COUNT( * ) / + 68 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8385
SELECT ALL - 64 - - CAST ( NULL AS INTEGER ) * + + CAST ( + + 44 AS INTEGER ) * - COUNT ( * ) / + 68 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8386
SELECT + 47 DIV - MAX( DISTINCT 98 ) * 76
----
0

skipif mysql # not compatible
query I rowsort label-8386
SELECT + 47 / - MAX ( DISTINCT 98 ) * 76
----
0

query I rowsort
SELECT - 17 + NULLIF ( + CASE + 80 WHEN + + 54 THEN 14 / + + 10 WHEN + - 51 * 36 THEN NULL END, 48 ) AS col0
----
NULL

query I rowsort
SELECT + 29 - ( + 79 ) + - 70 AS col1
----
-120

query I rowsort
SELECT + 87 * + 1 AS col2
----
87

query I rowsort
SELECT + 63 + 73 AS col0
----
136

query I rowsort
SELECT DISTINCT ( + 50 ) * - 62 AS col1
----
-3100

onlyif mysql # DIV for integer division: 
query I rowsort label-8392
SELECT + 51 DIV + 44
----
1

skipif mysql # not compatible
query I rowsort label-8392
SELECT + 51 / + 44
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8393
SELECT + 69 + COUNT( * )
----
70

skipif mysql # not compatible
query I rowsort label-8393
SELECT + 69 + COUNT ( * )
----
70

query I rowsort
SELECT + CASE + 46 WHEN 62 THEN + AVG ( DISTINCT 83 ) END - - - 30 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8395
SELECT DISTINCT CAST( + COUNT( * ) AS SIGNED ) * + - 49 * - 82
----
4018

skipif mysql # not compatible
query I rowsort label-8395
SELECT DISTINCT CAST ( + COUNT ( * ) AS INTEGER ) * + - 49 * - 82
----
4018

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8396
SELECT + 45 + + CAST( 32 AS SIGNED ) * + 0 AS col1
----
45

skipif mysql # not compatible
query I rowsort label-8396
SELECT + 45 + + CAST ( 32 AS INTEGER ) * + 0 AS col1
----
45

query I rowsort
SELECT ALL 51 + + - 59
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-8398
SELECT ALL 78 * - + 69 + + SUM( ALL 97 ) * - CASE - - 73 WHEN + + 9 THEN - 92 / 55 WHEN - COUNT( * ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8398
SELECT ALL 78 * - + 69 + + SUM ( ALL 97 ) * - CASE - - 73 WHEN + + 9 THEN - 92 / 55 WHEN - COUNT ( * ) THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8399
SELECT + COUNT( * ) + - + 6 * + + 81 AS col1
----
-485

skipif mysql # not compatible
query I rowsort label-8399
SELECT + COUNT ( * ) + - + 6 * + + 81 AS col1
----
-485

onlyif mysql # aggregate syntax: 
query I rowsort label-8400
SELECT DISTINCT 69 * - - 74 * + 52 + + COUNT( * ) * - - 61 * ( + 29 ) AS col2
----
267281

skipif mysql # not compatible
query I rowsort label-8400
SELECT DISTINCT 69 * - - 74 * + 52 + + COUNT ( * ) * - - 61 * ( + 29 ) AS col2
----
267281

query I rowsort
SELECT ALL ( - 23 ) * - 84 + - 97 - - ( + 15 ) * 17 - - - 7 + - 95 + 43
----
2031

onlyif mysql # DIV for integer division: 
query I rowsort label-8402
SELECT DISTINCT - 11 DIV - 44
----
0

skipif mysql # not compatible
query I rowsort label-8402
SELECT DISTINCT - 11 / - 44
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8403
SELECT - COUNT( * ) * - 8 AS col1
----
8

skipif mysql # not compatible
query I rowsort label-8403
SELECT - COUNT ( * ) * - 8 AS col1
----
8

query I rowsort
SELECT ALL + 20 * + 12 AS col1
----
240

onlyif mysql # aggregate syntax: 
query I rowsort label-8405
SELECT + COUNT( ALL 8 )
----
1

skipif mysql # not compatible
query I rowsort label-8405
SELECT + COUNT ( ALL 8 )
----
1

query I rowsort
SELECT + NULLIF ( 52, - 47 + - 79 - - 62 )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-8407
SELECT ALL + 47 * - 56 + + 66 - - COUNT( * ) / - 15 + - + 38 + - CASE 1 WHEN ( + - ( - 51 ) ) THEN + 25 END / + + 72 - + - ( - COUNT( * ) ) * + 61 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8407
SELECT ALL + 47 * - 56 + + 66 - - COUNT ( * ) / - 15 + - + 38 + - CASE 1 WHEN ( + - ( - 51 ) ) THEN + 25 END / + + 72 - + - ( - COUNT ( * ) ) * + 61 AS col2
----
NULL

query I rowsort
SELECT ALL + ( - 51 )
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8409
SELECT DISTINCT + COUNT( * ) * + 86 + NULLIF ( 22, + CASE - 15 WHEN - 92 THEN ( - 35 ) + - - 42 * + + 48 WHEN + 55 THEN NULL ELSE - + 79 * + COUNT( * ) + 84 END + - CASE CAST( - ( COUNT( * ) ) AS SIGNED ) WHEN 69 THEN MAX( ALL - 81 ) ELSE 2 / - 83 END * 73 )
----
108

skipif mysql # not compatible
query I rowsort label-8409
SELECT DISTINCT + COUNT ( * ) * + 86 + NULLIF ( 22, + CASE - 15 WHEN - 92 THEN ( - 35 ) + - - 42 * + + 48 WHEN + 55 THEN NULL ELSE - + 79 * + COUNT ( * ) + 84 END + - CASE CAST ( - ( COUNT ( * ) ) AS INTEGER ) WHEN 69 THEN MAX ( ALL - 81 ) ELSE 2 / - 83 END * 73 )
----
108

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8410
SELECT DISTINCT + - COALESCE ( - + 78, - COUNT( * ) + - 9, - 12 DIV 15 )
----
78

skipif mysql # not compatible
query I rowsort label-8410
SELECT DISTINCT + - COALESCE ( - + 78, - COUNT ( * ) + - 9, - 12 / 15 )
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-8411
SELECT + COUNT( - 87 ) * - NULLIF ( - ( - 98 ), + 44 + - 10 ) AS col0
----
-98

skipif mysql # not compatible
query I rowsort label-8411
SELECT + COUNT ( - 87 ) * - NULLIF ( - ( - 98 ), + 44 + - 10 ) AS col0
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-8412
SELECT + NULLIF ( - NULLIF ( - COUNT( * ), COUNT( * ) + - ( + 58 ) * + 53 + + 96 ), + 82 - - + 49 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8412
SELECT + NULLIF ( - NULLIF ( - COUNT ( * ), COUNT ( * ) + - ( + 58 ) * + 53 + + 96 ), + 82 - - + 49 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8413
SELECT ALL CASE 1 WHEN 62 THEN + + ( + 31 ) WHEN + - 10 / + 24 * - 65 + 24 * + COUNT( * ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8413
SELECT ALL CASE 1 WHEN 62 THEN + + ( + 31 ) WHEN + - 10 / + 24 * - 65 + 24 * + COUNT ( * ) THEN NULL END AS col0
----
NULL

query I rowsort
SELECT 23 * 82 + - 91
----
1795

query I rowsort
SELECT DISTINCT - 87 * 50 AS col1
----
-4350

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8416
SELECT - 75 * - 70 DIV COUNT( + - 48 )
----
5250

skipif mysql # not compatible
query I rowsort label-8416
SELECT - 75 * - 70 / COUNT ( + - 48 )
----
5250

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8417
SELECT ALL + CAST( NULL AS SIGNED ) + - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8417
SELECT ALL + CAST ( NULL AS INTEGER ) + - + COUNT ( * )
----
NULL

query I rowsort
SELECT - 69 * + 25 AS col2
----
-1725

query I rowsort
SELECT ALL 39 + - + 98 * + 32
----
-3097

onlyif mysql # aggregate syntax: 
query I rowsort label-8420
SELECT - COUNT( * ) * + + 84 AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-8420
SELECT - COUNT ( * ) * + + 84 AS col0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-8421
SELECT ALL + COUNT( * ) + - - 63
----
64

skipif mysql # not compatible
query I rowsort label-8421
SELECT ALL + COUNT ( * ) + - - 63
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-8422
SELECT DISTINCT 74 + - CASE COALESCE ( - 44, - 69 + - - 36, + 16 * + 58 + 26 + + 9 + 20, + + COUNT( * ) ) WHEN - 45 * 25 * - + 42 + COUNT( * ) THEN 45 - 12 END - 68 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8422
SELECT DISTINCT 74 + - CASE COALESCE ( - 44, - 69 + - - 36, + 16 * + 58 + 26 + + 9 + 20, + + COUNT ( * ) ) WHEN - 45 * 25 * - + 42 + COUNT ( * ) THEN 45 - 12 END - 68 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8423
SELECT ALL 86, - COUNT( * ) + - - 98 + - 18 col2
----
86
79

skipif mysql # not compatible
query II rowsort label-8423
SELECT ALL 86, - COUNT ( * ) + - - 98 + - 18 col2
----
86
79

onlyif mysql # aggregate syntax: 
query I rowsort label-8424
SELECT ALL + 97 + + - 55 - + COUNT( * ) * + + 0 * 97
----
42

skipif mysql # not compatible
query I rowsort label-8424
SELECT ALL + 97 + + - 55 - + COUNT ( * ) * + + 0 * 97
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8425
SELECT + ( + CAST( NULL AS SIGNED ) ) * + - 58 + 22 + - 69 * - - 33 - 14
----
NULL

skipif mysql # not compatible
query I rowsort label-8425
SELECT + ( + CAST ( NULL AS INTEGER ) ) * + - 58 + 22 + - 69 * - - 33 - 14
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8426
SELECT DISTINCT COUNT( * ) * - 73
----
-73

skipif mysql # not compatible
query I rowsort label-8426
SELECT DISTINCT COUNT ( * ) * - 73
----
-73

query I rowsort
SELECT ALL 86 + ( 56 )
----
142

query I rowsort
SELECT - ( + 36 ) AS col0
----
-36

query I rowsort
SELECT ALL 97 + 60
----
157

query I rowsort
SELECT DISTINCT - 82 * - - 5
----
-410

query I rowsort
SELECT ALL + ( 51 ) * - 43
----
-2193

query I rowsort
SELECT + + 94 * 68 AS col1
----
6392

onlyif mysql # DIV for integer division: 
query I rowsort label-8433
SELECT ALL - 66 DIV - + 90
----
0

skipif mysql # not compatible
query I rowsort label-8433
SELECT ALL - 66 / - + 90
----
0

query I rowsort
SELECT + 43 + - 18
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-8435
SELECT - - 29 DIV - 99 - ( + - 3 ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-8435
SELECT - - 29 / - 99 - ( + - 3 ) AS col2
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8436
SELECT ALL CAST( + - 55 AS SIGNED ) DIV - ( 48 ) + + COUNT( * ) - - 32
----
34

skipif mysql # not compatible
query I rowsort label-8436
SELECT ALL CAST ( + - 55 AS INTEGER ) / - ( 48 ) + + COUNT ( * ) - - 32
----
34

onlyif mysql # aggregate syntax: 
query II rowsort label-8437
SELECT + + 12, SUM( ALL 76 ) AS col0
----
12
76

skipif mysql # not compatible
query II rowsort label-8437
SELECT + + 12, SUM ( ALL 76 ) AS col0
----
12
76

onlyif mysql # DIV for integer division: 
query I rowsort label-8438
SELECT ALL 96 DIV 57
----
1

skipif mysql # not compatible
query I rowsort label-8438
SELECT ALL 96 / 57
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8439
SELECT + 65 DIV 81
----
0

skipif mysql # not compatible
query I rowsort label-8439
SELECT + 65 / 81
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8440
SELECT ALL + 6 DIV + + 65 + 34 + + 21 * + 79
----
1693

skipif mysql # not compatible
query I rowsort label-8440
SELECT ALL + 6 / + + 65 + 34 + + 21 * + 79
----
1693

query I rowsort
SELECT + + 0 * - 59 * + - 45 + + 3 - - 41 + + 58 AS col0
----
102

query I rowsort
SELECT ALL - 73 * + 75 * - 97
----
531075

onlyif mysql # aggregate syntax: 
query I rowsort label-8443
SELECT COUNT( * ) + NULLIF ( 31, + 61 + - + 24 * 3 ) * 4 AS col1
----
125

skipif mysql # not compatible
query I rowsort label-8443
SELECT COUNT ( * ) + NULLIF ( 31, + 61 + - + 24 * 3 ) * 4 AS col1
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-8444
SELECT DISTINCT - SUM( - 67 )
----
67

skipif mysql # not compatible
query I rowsort label-8444
SELECT DISTINCT - SUM ( - 67 )
----
67

onlyif mysql # aggregate syntax: 
query II rowsort label-8445
SELECT ALL 17 * - COUNT( * ), - SUM( 33 ) AS col2
----
-17
-33

skipif mysql # not compatible
query II rowsort label-8445
SELECT ALL 17 * - COUNT ( * ), - SUM ( 33 ) AS col2
----
-17
-33

query I rowsort
SELECT 6 * + 88 AS col0
----
528

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8447
SELECT 37 * CAST( - 20 AS SIGNED ) + - 91 AS col1, - MAX( ALL - 54 )
----
-831
54

skipif mysql # not compatible
query II rowsort label-8447
SELECT 37 * CAST ( - 20 AS INTEGER ) + - 91 AS col1, - MAX ( ALL - 54 )
----
-831
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8448
SELECT ALL 70 * 66, CASE - 65 WHEN - 35 * - 27 - + 71 THEN - + CAST( NULL AS SIGNED ) + - 8 - - 63 - - - COUNT( + - NULLIF ( - 58, - 96 * - 36 / + 96 - 29 ) ) / - ( + 95 ) * - 38 * + 99 WHEN 9 + MIN( ALL - 56 ) * NULLIF ( 21, + 64 ) THEN NULL ELSE NULL END AS col0
----
4620
NULL

skipif mysql # not compatible
query II rowsort label-8448
SELECT ALL 70 * 66, CASE - 65 WHEN - 35 * - 27 - + 71 THEN - + CAST ( NULL AS INTEGER ) + - 8 - - 63 - - - COUNT ( + - NULLIF ( - 58, - 96 * - 36 / + 96 - 29 ) ) / - ( + 95 ) * - 38 * + 99 WHEN 9 + MIN ( ALL - 56 ) * NULLIF ( 21, + 64 ) THEN NULL ELSE NULL END AS col0
----
4620
NULL

query I rowsort
SELECT 48 * - 44 AS col1
----
-2112

onlyif mysql # aggregate syntax: 
query II rowsort label-8450
SELECT ALL + COUNT( * ) + - 92 * + + SUM( 20 ) AS col1, 19 * 96
----
-1839
1824

skipif mysql # not compatible
query II rowsort label-8450
SELECT ALL + COUNT ( * ) + - 92 * + + SUM ( 20 ) AS col1, 19 * 96
----
-1839
1824

onlyif mysql # aggregate syntax: 
query I rowsort label-8451
SELECT ( 27 ) + - - CASE + 83 WHEN - - 43 + 38 + ( - 20 ) THEN NULL WHEN COUNT( * ) THEN + - 98 + + 62 ELSE + - 11 END
----
16

skipif mysql # not compatible
query I rowsort label-8451
SELECT ( 27 ) + - - CASE + 83 WHEN - - 43 + 38 + ( - 20 ) THEN NULL WHEN COUNT ( * ) THEN + - 98 + + 62 ELSE + - 11 END
----
16

query II rowsort
SELECT ALL 21, - 79 AS col1
----
21
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-8453
SELECT DISTINCT - 56 + + COUNT( * )
----
-55

skipif mysql # not compatible
query I rowsort label-8453
SELECT DISTINCT - 56 + + COUNT ( * )
----
-55

query I rowsort
SELECT ALL + 93 + 5 + - + 56 AS col2
----
42

query I rowsort
SELECT ALL - 38 * + 15 AS col2
----
-570

onlyif mysql # DIV for integer division: 
query I rowsort label-8456
SELECT ALL - 65 DIV 82 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8456
SELECT ALL - 65 / 82 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8457
SELECT COUNT( 50 ) + - NULLIF ( - 33, - 28 * - 78 * + CAST( - + 73 AS DECIMAL ) )
----
34

skipif mysql # not compatible
query I rowsort label-8457
SELECT COUNT ( 50 ) + - NULLIF ( - 33, - 28 * - 78 * + CAST ( - + 73 AS REAL ) )
----
34

query I rowsort
SELECT ALL + 93 + - ( + 60 ) * 25 + - - 43 + + 24
----
-1340

query I rowsort
SELECT ALL - 39 * - 46 col2
----
1794

query II rowsort
SELECT 7, + 76 AS col0
----
7
76

query I rowsort
SELECT ALL + ( + 80 ) AS col2
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8462
SELECT CAST( NULL AS SIGNED ) + + - 99 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8462
SELECT CAST ( NULL AS INTEGER ) + + - 99 AS col2
----
NULL

query I rowsort
SELECT - 3 - - COALESCE ( - + 26, - ( + 98 ), 3 + - NULLIF ( 32, + 97 ) ) AS col0
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-8464
SELECT 93 * + 65 + - ( + - 15 ) - - SUM( ALL - COALESCE ( + + 67, - ( - + 25 ) ) ) + SUM( ALL - 2 ) * + COUNT( * ) - + - 77 AS col0
----
6068

skipif mysql # not compatible
query I rowsort label-8464
SELECT 93 * + 65 + - ( + - 15 ) - - SUM ( ALL - COALESCE ( + + 67, - ( - + 25 ) ) ) + SUM ( ALL - 2 ) * + COUNT ( * ) - + - 77 AS col0
----
6068

onlyif mysql # aggregate syntax: 
query I rowsort label-8465
SELECT + COUNT( * ) + - 20 - + 91 * 3 + + - 84 AS col1
----
-376

skipif mysql # not compatible
query I rowsort label-8465
SELECT + COUNT ( * ) + - 20 - + 91 * 3 + + - 84 AS col1
----
-376

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8466
SELECT - 70 * - ( - + 33 ) + + 3 + COUNT( * ) - + + CASE + MIN( 23 ) WHEN - 24 THEN NULL ELSE 24 * - 95 + - COUNT( * ) + - 64 END * + 88 * - 30 * - COUNT( DISTINCT - 86 ) * + 23 + - 51 * - COUNT( - 54 ) / CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8466
SELECT - 70 * - ( - + 33 ) + + 3 + COUNT ( * ) - + + CASE + MIN ( 23 ) WHEN - 24 THEN NULL ELSE 24 * - 95 + - COUNT ( * ) + - 64 END * + 88 * - 30 * - COUNT ( DISTINCT - 86 ) * + 23 + - 51 * - COUNT ( - 54 ) / CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8467
SELECT + 43 AS col2, + 0 DIV + + 27
----
43
0

skipif mysql # not compatible
query II rowsort label-8467
SELECT + 43 AS col2, + 0 / + + 27
----
43
0

query I rowsort
SELECT DISTINCT - ( 13 )
----
-13

query II rowsort
SELECT + - 6, 53 col0
----
-6
53

query I rowsort
SELECT 42 + + 46 + 60 col0
----
148

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8471
SELECT ALL - CAST( + 53 AS SIGNED ) * + 35 col0
----
-1855

skipif mysql # not compatible
query I rowsort label-8471
SELECT ALL - CAST ( + 53 AS INTEGER ) * + 35 col0
----
-1855

query I rowsort
SELECT - ( + 73 ) col1
----
-73

query II rowsort
SELECT 99 AS col1, - 70 AS col0
----
99
-70

query I rowsort
SELECT DISTINCT 12 * - 98 * 40 col2
----
-47040

onlyif mysql # aggregate syntax: 
query II rowsort label-8475
SELECT + 83 AS col2, ( + + 29 ) + COALESCE ( + SUM( + - 95 ), + 32 * + 65 + - COUNT( * ) ) - + - 80 * + CASE 69 WHEN + + 81 + + 79 THEN + 76 * - COUNT( * ) + 10 WHEN + 5 THEN NULL END + + COUNT( * )
----
83
NULL

skipif mysql # not compatible
query II rowsort label-8475
SELECT + 83 AS col2, ( + + 29 ) + COALESCE ( + SUM ( + - 95 ), + 32 * + 65 + - COUNT ( * ) ) - + - 80 * + CASE 69 WHEN + + 81 + + 79 THEN + 76 * - COUNT ( * ) + 10 WHEN + 5 THEN NULL END + + COUNT ( * )
----
83
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8476
SELECT DISTINCT - 94 + + + COUNT( - 8 ) AS col1
----
-93

skipif mysql # not compatible
query I rowsort label-8476
SELECT DISTINCT - 94 + + + COUNT ( - 8 ) AS col1
----
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8477
SELECT DISTINCT - 83 + - ( + CAST( NULL AS SIGNED ) ) - + 47
----
NULL

skipif mysql # not compatible
query I rowsort label-8477
SELECT DISTINCT - 83 + - ( + CAST ( NULL AS INTEGER ) ) - + 47
----
NULL

query I rowsort
SELECT ALL 0 + - 1 * + + 54
----
-54

onlyif mysql # aggregate syntax: 
query II rowsort label-8479
SELECT 6 * - - 73, COUNT( * ) + - 8 * + - 39 AS col0
----
438
313

skipif mysql # not compatible
query II rowsort label-8479
SELECT 6 * - - 73, COUNT ( * ) + - 8 * + - 39 AS col0
----
438
313

onlyif mysql # DIV for integer division: 
query I rowsort label-8480
SELECT COALESCE ( 85, 28, - - 84, - ( 70 ) ) DIV 5 DIV 82
----
0

skipif mysql # not compatible
query I rowsort label-8480
SELECT COALESCE ( 85, 28, - - 84, - ( 70 ) ) / 5 / 82
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8481
SELECT ALL ( COUNT( * ) ) + - MAX( + 71 )
----
-70

skipif mysql # not compatible
query I rowsort label-8481
SELECT ALL ( COUNT ( * ) ) + - MAX ( + 71 )
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-8482
SELECT NULLIF ( - - 99, - COUNT( * ) ) - + 68 AS col2
----
31

skipif mysql # not compatible
query I rowsort label-8482
SELECT NULLIF ( - - 99, - COUNT ( * ) ) - + 68 AS col2
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-8483
SELECT NULLIF ( + + CASE SUM( - + 26 ) WHEN - + ( - 2 ) THEN NULL WHEN + 15 THEN - 84 / - NULLIF ( - 68, + 83 ) * + 37 * + 8 + + 83 END, + 10 ) / + + MIN( + 15 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8483
SELECT NULLIF ( + + CASE SUM ( - + 26 ) WHEN - + ( - 2 ) THEN NULL WHEN + 15 THEN - 84 / - NULLIF ( - 68, + 83 ) * + 37 * + 8 + + 83 END, + 10 ) / + + MIN ( + 15 ) AS col1
----
NULL

query I rowsort
SELECT 41 * 87 * - + 23 col1
----
-82041

query I rowsort
SELECT ALL 16 * - NULLIF ( + 2, - - 88 ) AS col1
----
-32

query I rowsort
SELECT DISTINCT - 52 * - 68 * - 20
----
-70720

query II rowsort
SELECT DISTINCT 63 + - + 90 col0, 39
----
-27
39

onlyif mysql # DIV for integer division: 
query I rowsort label-8488
SELECT 73 + 42 DIV - 46
----
73

skipif mysql # not compatible
query I rowsort label-8488
SELECT 73 + 42 / - 46
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-8489
SELECT - MIN( DISTINCT - 66 ) AS col1
----
66

skipif mysql # not compatible
query I rowsort label-8489
SELECT - MIN ( DISTINCT - 66 ) AS col1
----
66

onlyif mysql # aggregate syntax: 
query II rowsort label-8490
SELECT - MIN( DISTINCT - - 5 ) AS col2, ( + + 37 ) AS col2
----
-5
37

skipif mysql # not compatible
query II rowsort label-8490
SELECT - MIN ( DISTINCT - - 5 ) AS col2, ( + + 37 ) AS col2
----
-5
37

onlyif mysql # aggregate syntax: 
query I rowsort label-8491
SELECT ALL + 91 - + MAX( + 51 )
----
40

skipif mysql # not compatible
query I rowsort label-8491
SELECT ALL + 91 - + MAX ( + 51 )
----
40

query I rowsort
SELECT - NULLIF ( - + 16, - 49 ) * - 32 AS col2
----
-512

onlyif mysql # aggregate syntax: 
query I rowsort label-8493
SELECT ALL NULLIF ( ( + CASE - COUNT( ALL - 57 ) WHEN + + 90 + - 14 THEN + 22 * CASE + - 9 WHEN + 3 + - COUNT( * ) THEN - 13 WHEN - 18 - + ( - - 1 ) THEN NULL END - - 29 WHEN - 54 THEN NULL END ), - 54 * - 55 + 78 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8493
SELECT ALL NULLIF ( ( + CASE - COUNT ( ALL - 57 ) WHEN + + 90 + - 14 THEN + 22 * CASE + - 9 WHEN + 3 + - COUNT ( * ) THEN - 13 WHEN - 18 - + ( - - 1 ) THEN NULL END - - 29 WHEN - 54 THEN NULL END ), - 54 * - 55 + 78 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8494
SELECT + COALESCE ( + 0, - 65 ) * + COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8494
SELECT + COALESCE ( + 0, - 65 ) * + COUNT ( * ) AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8495
SELECT + 20 DIV - + 1
----
-20

skipif mysql # not compatible
query I rowsort label-8495
SELECT + 20 / - + 1
----
-20

query I rowsort
SELECT - ( - 9 ) * - 57
----
-513

onlyif mysql # aggregate syntax: 
query I rowsort label-8497
SELECT - + 11 * - 80 + + + 21 + 93 * - + 21 * - 26 * COUNT( ALL + + 83 ) AS col1
----
51679

skipif mysql # not compatible
query I rowsort label-8497
SELECT - + 11 * - 80 + + + 21 + 93 * - + 21 * - 26 * COUNT ( ALL + + 83 ) AS col1
----
51679

query I rowsort
SELECT - 47 - + + 94 AS col1
----
-141

query I rowsort
SELECT DISTINCT + + 96 * 90 + + 66 + + 73
----
8779

onlyif mysql # DIV for integer division: 
query I rowsort label-8500
SELECT ALL + - 69 DIV 94 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8500
SELECT ALL + - 69 / 94 AS col1
----
0

query I rowsort
SELECT ALL - 20 * 59 + + 3 * - + 22
----
-1246

query I rowsort
SELECT - 88 * + 56 + 15
----
-4913

onlyif mysql # aggregate syntax: 
query I rowsort label-8503
SELECT ALL + MAX( - 91 ) * - - 77 + - + ( - - 52 ) + - - CASE 7 WHEN - MAX( 24 ) THEN 76 END * + 99 / + COUNT( - + 26 ) * - - NULLIF ( 64, - + 70 + - 64 - 41 * 14 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8503
SELECT ALL + MAX ( - 91 ) * - - 77 + - + ( - - 52 ) + - - CASE 7 WHEN - MAX ( 24 ) THEN 76 END * + 99 / + COUNT ( - + 26 ) * - - NULLIF ( 64, - + 70 + - 64 - 41 * 14 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8504
SELECT + ( ( + 87 ) ) * - 76 * + 34 + 84 + CAST( + 78 AS SIGNED ) * 53 - + SUM( ALL + - 21 ) + 44 + - COALESCE ( 63, + 34 - + + NULLIF ( + 38, + 37 + 46 DIV + 8 ) ) - + 80 DIV COUNT( * ) * 15 - - 39 AS col2
----
-221749

skipif mysql # not compatible
query I rowsort label-8504
SELECT + ( ( + 87 ) ) * - 76 * + 34 + 84 + CAST ( + 78 AS INTEGER ) * 53 - + SUM ( ALL + - 21 ) + 44 + - COALESCE ( 63, + 34 - + + NULLIF ( + 38, + 37 + 46 / + 8 ) ) - + 80 / COUNT ( * ) * 15 - - 39 AS col2
----
-221749

query I rowsort
SELECT 46 * + 90 + 82
----
4222

query II rowsort
SELECT + 41 * ( 66 ), 28 col1
----
2706
28

onlyif mysql # aggregate syntax: 
query I rowsort label-8507
SELECT CASE 56 WHEN NULLIF ( - 95, 3 / + - COUNT( * ) * + 33 ) THEN - ( 67 ) * - 31 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8507
SELECT CASE 56 WHEN NULLIF ( - 95, 3 / + - COUNT ( * ) * + 33 ) THEN - ( 67 ) * - 31 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8508
SELECT DISTINCT + ( + 0 ) DIV - CAST( - 88 AS SIGNED ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8508
SELECT DISTINCT + ( + 0 ) / - CAST ( - 88 AS INTEGER ) AS col0
----
0

query II rowsort
SELECT - 5 + + 98 + - 62, + 37 + 85 AS col0
----
31
122

query I rowsort
SELECT ALL 17 * 82
----
1394

onlyif mysql # aggregate syntax: 
query I rowsort label-8511
SELECT SUM( - 71 ) AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-8511
SELECT SUM ( - 71 ) AS col2
----
-71

query I rowsort
SELECT ALL + 65 * + 71
----
4615

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8513
SELECT ALL + 28, - CAST( NULL AS SIGNED ) AS col1
----
28
NULL

skipif mysql # not compatible
query II rowsort label-8513
SELECT ALL + 28, - CAST ( NULL AS INTEGER ) AS col1
----
28
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8514
SELECT ALL 56 * COUNT( * ) DIV - 45 - - + 33
----
32

skipif mysql # not compatible
query I rowsort label-8514
SELECT ALL 56 * COUNT ( * ) / - 45 - - + 33
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8515
SELECT - COALESCE ( + COUNT( * ), + 52 + - 48 + COALESCE ( + - 39, + - 57 DIV - 19 + + 89 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8515
SELECT - COALESCE ( + COUNT ( * ), + 52 + - 48 + COALESCE ( + - 39, + - 57 / - 19 + + 89 ) ) AS col1
----
-1

query II rowsort
SELECT ALL 31, 95 * + ( + 2 ) AS col2
----
31
190

onlyif mysql # aggregate syntax: 
query I rowsort label-8517
SELECT + COALESCE ( - COUNT( * ), - 13 * + 46 + + 59 ) * 33 / - NULLIF ( + 32, - MIN( ALL + 84 ) * - 55 + - 40 ) + + SUM( - ( 26 ) ) + + - CASE + 17 WHEN + 89 + + 47 THEN COUNT( * ) + ( 68 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8517
SELECT + COALESCE ( - COUNT ( * ), - 13 * + 46 + + 59 ) * 33 / - NULLIF ( + 32, - MIN ( ALL + 84 ) * - 55 + - 40 ) + + SUM ( - ( 26 ) ) + + - CASE + 17 WHEN + 89 + + 47 THEN COUNT ( * ) + ( 68 ) END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8518
SELECT + CAST( NULL AS SIGNED ) * + + 76 * + - 42 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8518
SELECT + CAST ( NULL AS INTEGER ) * + + 76 * + - 42 AS col2
----
NULL

query I rowsort
SELECT + 15 * 55
----
825

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8520
SELECT - ( - COALESCE ( - 28, MAX( + 35 ) * - 42 - - + ( - 2 ) * + ( CAST( 43 AS SIGNED ) ) - + 79 - 57 ) )
----
-28

skipif mysql # not compatible
query I rowsort label-8520
SELECT - ( - COALESCE ( - 28, MAX ( + 35 ) * - 42 - - + ( - 2 ) * + ( CAST ( 43 AS INTEGER ) ) - + 79 - 57 ) )
----
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-8521
SELECT DISTINCT + 21 DIV - ( + COALESCE ( + + 6, + ( + 13 ) ) )
----
-3

skipif mysql # not compatible
query I rowsort label-8521
SELECT DISTINCT + 21 / - ( + COALESCE ( + + 6, + ( + 13 ) ) )
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8522
SELECT + CAST( NULL AS SIGNED ) * 79 * + - 33
----
NULL

skipif mysql # not compatible
query I rowsort label-8522
SELECT + CAST ( NULL AS INTEGER ) * 79 * + - 33
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8523
SELECT ALL - 50 / + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8523
SELECT ALL - 50 / + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT + + 81 * 60 AS col0
----
4860

onlyif mysql # aggregate syntax: 
query I rowsort label-8525
SELECT ALL + + ( 0 ) * COUNT( * ) + + 76
----
76

skipif mysql # not compatible
query I rowsort label-8525
SELECT ALL + + ( 0 ) * COUNT ( * ) + + 76
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8526
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 11 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8526
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 11 AS col1
----
NULL

query I rowsort
SELECT + + 21 * 62 AS col0
----
1302

onlyif mysql # aggregate syntax: 
query I rowsort label-8528
SELECT + COUNT( * ) + + 14 + 95
----
110

skipif mysql # not compatible
query I rowsort label-8528
SELECT + COUNT ( * ) + + 14 + 95
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-8529
SELECT DISTINCT - 7 + CASE + - 12 WHEN COUNT( * ) THEN - 93 - 7 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8529
SELECT DISTINCT - 7 + CASE + - 12 WHEN COUNT ( * ) THEN - 93 - 7 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8530
SELECT ALL + 74 + + + CAST( + 21 AS SIGNED ) - - ( - - 47 ) AS col2
----
142

skipif mysql # not compatible
query I rowsort label-8530
SELECT ALL + 74 + + + CAST ( + 21 AS INTEGER ) - - ( - - 47 ) AS col2
----
142

query I rowsort
SELECT DISTINCT 33 + 34 + - + 62 * 25 AS col1
----
-1483

query I rowsort
SELECT DISTINCT - 52 + + 26
----
-26

query I rowsort
SELECT ALL + ( + 11 ) AS col0
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-8534
SELECT + 33 DIV ( + 17 ) + - 44
----
-43

skipif mysql # not compatible
query I rowsort label-8534
SELECT + 33 / ( + 17 ) + - 44
----
-43

query I rowsort
SELECT + 48 * - 3
----
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-8536
SELECT - COUNT( * ) + + 86
----
85

skipif mysql # not compatible
query I rowsort label-8536
SELECT - COUNT ( * ) + + 86
----
85

query I rowsort
SELECT DISTINCT 94 * - - 81
----
7614

onlyif mysql # aggregate syntax: 
query I rowsort label-8538
SELECT DISTINCT COUNT( DISTINCT - + 10 ) * + - 97 AS col2
----
-97

skipif mysql # not compatible
query I rowsort label-8538
SELECT DISTINCT COUNT ( DISTINCT - + 10 ) * + - 97 AS col2
----
-97

query I rowsort
SELECT - 23 * + - 91 * - 62 AS col2
----
-129766

query I rowsort
SELECT ( - - 92 ) AS col1
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8541
SELECT ALL + ( - + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8541
SELECT ALL + ( - + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8542
SELECT ( - NULLIF ( MIN( ALL - - 47 ), + 15 ) ) col0
----
-47

skipif mysql # not compatible
query I rowsort label-8542
SELECT ( - NULLIF ( MIN ( ALL - - 47 ), + 15 ) ) col0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-8543
SELECT + SUM( DISTINCT - 91 ) AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-8543
SELECT + SUM ( DISTINCT - 91 ) AS col1
----
-91

query I rowsort
SELECT ( ( - + 90 ) )
----
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8545
SELECT + COALESCE ( + COUNT( * ), - COUNT( * ) DIV + - 43 - - 71 + + + 70 * + + ( - - 40 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8545
SELECT + COALESCE ( + COUNT ( * ), - COUNT ( * ) / + - 43 - - 71 + + + 70 * + + ( - - 40 ) ) AS col1
----
1

query I rowsort
SELECT - 57 + - 54 AS col0
----
-111

onlyif mysql # aggregate syntax: 
query I rowsort label-8547
SELECT - COALESCE ( + + 85, + - MIN( + 67 ) ) - + 54 + 25 col1
----
-114

skipif mysql # not compatible
query I rowsort label-8547
SELECT - COALESCE ( + + 85, + - MIN ( + 67 ) ) - + 54 + 25 col1
----
-114

query I rowsort
SELECT ALL + 35 * - 38
----
-1330

onlyif mysql # aggregate syntax: 
query I rowsort label-8549
SELECT + COUNT( * ) * 45 + - - 15
----
60

skipif mysql # not compatible
query I rowsort label-8549
SELECT + COUNT ( * ) * 45 + - - 15
----
60

query I rowsort
SELECT 71 - + 72 * + 26
----
-1801

query I rowsort
SELECT 1 * - 64
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-8552
SELECT ALL + 39 + 45 + - COUNT( * ) AS col0
----
83

skipif mysql # not compatible
query I rowsort label-8552
SELECT ALL + 39 + 45 + - COUNT ( * ) AS col0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8553
SELECT COUNT( * ) * + 87 - - 96 AS col2
----
183

skipif mysql # not compatible
query I rowsort label-8553
SELECT COUNT ( * ) * + 87 - - 96 AS col2
----
183

onlyif mysql # aggregate syntax: 
query I rowsort label-8554
SELECT ALL 82 + 90 * COUNT( * ) AS col0
----
172

skipif mysql # not compatible
query I rowsort label-8554
SELECT ALL 82 + 90 * COUNT ( * ) AS col0
----
172

query I rowsort
SELECT - + ( + + 2 ) AS col2
----
-2

query I rowsort
SELECT DISTINCT - 65 + - 32 AS col1
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8557
SELECT DISTINCT - MAX( ALL 72 ) + + 51 col2
----
-21

skipif mysql # not compatible
query I rowsort label-8557
SELECT DISTINCT - MAX ( ALL 72 ) + + 51 col2
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-8558
SELECT SUM( - 30 )
----
-30

skipif mysql # not compatible
query I rowsort label-8558
SELECT SUM ( - 30 )
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-8559
SELECT - MIN( + ( - 83 ) ) col0
----
83

skipif mysql # not compatible
query I rowsort label-8559
SELECT - MIN ( + ( - 83 ) ) col0
----
83

query I rowsort
SELECT ALL - NULLIF ( + - 31, - 11 )
----
31

query II rowsort
SELECT ALL - 5, + 11 AS col2
----
-5
11

onlyif mysql # aggregate syntax: 
query I rowsort label-8562
SELECT COUNT( * ) + - 72 + + 13 - + COALESCE ( - 37, COUNT( * ) )
----
-21

skipif mysql # not compatible
query I rowsort label-8562
SELECT COUNT ( * ) + - 72 + + 13 - + COALESCE ( - 37, COUNT ( * ) )
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-8563
SELECT ALL - 11 - CASE + - 34 WHEN 49 * - + 23 * - - MAX( - ( + ( - - 26 ) ) ) * 0 * - - 0 + + 10 * COUNT( * ) - + 41 * - COALESCE ( - 93, 20 ) THEN - COUNT( * ) * - 74 * 82 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8563
SELECT ALL - 11 - CASE + - 34 WHEN 49 * - + 23 * - - MAX ( - ( + ( - - 26 ) ) ) * 0 * - - 0 + + 10 * COUNT ( * ) - + 41 * - COALESCE ( - 93, 20 ) THEN - COUNT ( * ) * - 74 * 82 END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8564
SELECT + 23 DIV + COUNT( * ) - 55 AS col1
----
-32

skipif mysql # not compatible
query I rowsort label-8564
SELECT + 23 / + COUNT ( * ) - 55 AS col1
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-8565
SELECT 84 * 68 + + MIN( ALL - 39 ) + - COUNT( * ) - + COUNT( ALL - 76 ) col1
----
5671

skipif mysql # not compatible
query I rowsort label-8565
SELECT 84 * 68 + + MIN ( ALL - 39 ) + - COUNT ( * ) - + COUNT ( ALL - 76 ) col1
----
5671

query I rowsort
SELECT 76 - 36 AS col2
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8567
SELECT 47 * + + MAX( + 63 )
----
2961

skipif mysql # not compatible
query I rowsort label-8567
SELECT 47 * + + MAX ( + 63 )
----
2961

query I rowsort
SELECT 82 * - + ( + ( - 63 ) )
----
5166

query II rowsort
SELECT 27 AS col2, - 50 * + 75 AS col1
----
27
-3750

onlyif mysql # DIV for integer division: 
query I rowsort label-8570
SELECT 48 DIV - 8 + + 88
----
82

skipif mysql # not compatible
query I rowsort label-8570
SELECT 48 / - 8 + + 88
----
82

query II rowsort
SELECT ALL - 37, - 71 AS col2
----
-37
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8572
SELECT DISTINCT 39 * + 10 * - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8572
SELECT DISTINCT 39 * + 10 * - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL 98 * 90 AS col2
----
8820

query I rowsort
SELECT 82 * - 69 col0
----
-5658

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8575
SELECT DISTINCT - CAST( 28 AS SIGNED )
----
-28

skipif mysql # not compatible
query I rowsort label-8575
SELECT DISTINCT - CAST ( 28 AS INTEGER )
----
-28

query II rowsort
SELECT 22, 88 AS col0
----
22
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8577
SELECT ALL - 27 AS col2, - 50 + - - CAST( + - 18 AS SIGNED ) * - COUNT( DISTINCT + - 53 )
----
-27
-32

skipif mysql # not compatible
query II rowsort label-8577
SELECT ALL - 27 AS col2, - 50 + - - CAST ( + - 18 AS INTEGER ) * - COUNT ( DISTINCT + - 53 )
----
-27
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-8578
SELECT - COUNT( * ) * ( 42 ) + 39 + - 77 - - + 92 + NULLIF ( + COUNT( * ), + + COUNT( * ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8578
SELECT - COUNT ( * ) * ( 42 ) + 39 + - 77 - - + 92 + NULLIF ( + COUNT ( * ), + + COUNT ( * ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8579
SELECT COUNT( * ) * - 38 AS col1
----
-38

skipif mysql # not compatible
query I rowsort label-8579
SELECT COUNT ( * ) * - 38 AS col1
----
-38

query I rowsort
SELECT 57 + + 91 * + - 49 AS col2
----
-4402

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8581
SELECT ( 14 ) + 30 * + - COUNT( * ) DIV - CAST( + - 94 AS SIGNED ) + 73 * - + 2 * - COUNT( * ) AS col1
----
160

skipif mysql # not compatible
query I rowsort label-8581
SELECT ( 14 ) + 30 * + - COUNT ( * ) / - CAST ( + - 94 AS INTEGER ) + 73 * - + 2 * - COUNT ( * ) AS col1
----
160

query I rowsort
SELECT - CASE - 27 WHEN 82 THEN - 63 ELSE - 59 - 42 END
----
101

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8583
SELECT - 29 * + 97 + + CAST( + COUNT( * ) AS SIGNED ) + - 91, + COALESCE ( + 30, + + CAST( + 0 AS SIGNED ) ) AS col1
----
-2903
30

skipif mysql # not compatible
query II rowsort label-8583
SELECT - 29 * + 97 + + CAST ( + COUNT ( * ) AS INTEGER ) + - 91, + COALESCE ( + 30, + + CAST ( + 0 AS INTEGER ) ) AS col1
----
-2903
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8584
SELECT ALL + CAST( NULL AS SIGNED ) + - + ( - 46 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8584
SELECT ALL + CAST ( NULL AS INTEGER ) + - + ( - 46 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8585
SELECT ALL CAST( - 50 AS SIGNED ) + - - COUNT( * ) AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-8585
SELECT ALL CAST ( - 50 AS INTEGER ) + - - COUNT ( * ) AS col0
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-8586
SELECT DISTINCT - 16 * 19 - - COUNT( * ) - + ( + 38 ) + - + 38 * - COUNT( * ) col0
----
-303

skipif mysql # not compatible
query I rowsort label-8586
SELECT DISTINCT - 16 * 19 - - COUNT ( * ) - + ( + 38 ) + - + 38 * - COUNT ( * ) col0
----
-303

onlyif mysql # aggregate syntax: 
query I rowsort label-8587
SELECT - ( - - 94 ) * COALESCE ( + 67, + 42 * 60 + - ( + + COUNT( * ) ) * + 63 ) AS col2
----
-6298

skipif mysql # not compatible
query I rowsort label-8587
SELECT - ( - - 94 ) * COALESCE ( + 67, + 42 * 60 + - ( + + COUNT ( * ) ) * + 63 ) AS col2
----
-6298

query I rowsort
SELECT + 63 + 94 + + 90 AS col1
----
247

onlyif mysql # aggregate syntax: 
query I rowsort label-8589
SELECT ALL - 66 + - + COALESCE ( - SUM( + + 23 ), - ( - - 9 ) )
----
-43

skipif mysql # not compatible
query I rowsort label-8589
SELECT ALL - 66 + - + COALESCE ( - SUM ( + + 23 ), - ( - - 9 ) )
----
-43

query I rowsort
SELECT 6 * + 92 AS col0
----
552

onlyif mysql # aggregate syntax: 
query I rowsort label-8591
SELECT SUM( DISTINCT - 39 ) + - MAX( 37 ) AS col1
----
-76

skipif mysql # not compatible
query I rowsort label-8591
SELECT SUM ( DISTINCT - 39 ) + - MAX ( 37 ) AS col1
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8592
SELECT CAST( + + 17 AS SIGNED ) + - + 52
----
-35

skipif mysql # not compatible
query I rowsort label-8592
SELECT CAST ( + + 17 AS INTEGER ) + - + 52
----
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8593
SELECT + COUNT( * ) + + - 80 + 98 + 68 * + 31 DIV + + COUNT( * ) AS col2
----
2127

skipif mysql # not compatible
query I rowsort label-8593
SELECT + COUNT ( * ) + + - 80 + 98 + 68 * + 31 / + + COUNT ( * ) AS col2
----
2127

query I rowsort
SELECT 44 + + 45
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8595
SELECT DISTINCT - 72 DIV + 24 DIV + COALESCE ( COUNT( * ), COALESCE ( + 86, + - 77 - - 61 + + 60 * + COUNT( * ) DIV 73 + + + ( + CAST( NULL AS SIGNED ) ) DIV + 68 ) ) + - ( COUNT( * ) )
----
-4

skipif mysql # not compatible
query I rowsort label-8595
SELECT DISTINCT - 72 / + 24 / + COALESCE ( COUNT ( * ), COALESCE ( + 86, + - 77 - - 61 + + 60 * + COUNT ( * ) / 73 + + + ( + CAST ( NULL AS INTEGER ) ) / + 68 ) ) + - ( COUNT ( * ) )
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-8596
SELECT COUNT( ALL + 0 ) * + 86
----
86

skipif mysql # not compatible
query I rowsort label-8596
SELECT COUNT ( ALL + 0 ) * + 86
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8597
SELECT ALL 94 * - - ( 33 ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8597
SELECT ALL 94 * - - ( 33 ) * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 37 * - - 46
----
1702

query I rowsort
SELECT DISTINCT 99 * 98 AS col0
----
9702

onlyif mysql # DIV for integer division: 
query II rowsort label-8600
SELECT ALL - 11 col2, 6 DIV - + 29 AS col2
----
-11
0

skipif mysql # not compatible
query II rowsort label-8600
SELECT ALL - 11 col2, 6 / - + 29 AS col2
----
-11
0

query II rowsort
SELECT + 60, 64 * + + 44 AS col0
----
60
2816

onlyif mysql # aggregate syntax: 
query I rowsort label-8602
SELECT + COUNT( ALL 87 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-8602
SELECT + COUNT ( ALL 87 ) col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8603
SELECT 52 DIV - - 57 + - 81
----
-81

skipif mysql # not compatible
query I rowsort label-8603
SELECT 52 / - - 57 + - 81
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-8604
SELECT 92 * - 43 * + - MAX( + 95 ) AS col2
----
375820

skipif mysql # not compatible
query I rowsort label-8604
SELECT 92 * - 43 * + - MAX ( + 95 ) AS col2
----
375820

onlyif mysql # aggregate syntax: 
query II rowsort label-8605
SELECT ALL - 27 AS col1, + MAX( - 70 ) * 69 * + ( + - 6 ) AS col0
----
-27
28980

skipif mysql # not compatible
query II rowsort label-8605
SELECT ALL - 27 AS col1, + MAX ( - 70 ) * 69 * + ( + - 6 ) AS col0
----
-27
28980

onlyif mysql # aggregate syntax: 
query I rowsort label-8606
SELECT + SUM( - 33 ) AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-8606
SELECT + SUM ( - 33 ) AS col2
----
-33

query II rowsort
SELECT ALL - 11 AS col1, - 2
----
-11
-2

query II rowsort
SELECT DISTINCT - 14 col2, 61 AS col1
----
-14
61

query I rowsort
SELECT ALL - CASE - + 91 WHEN - 92 + + 20 THEN - - 79 + + + 31 WHEN + 9 THEN NULL END AS col2
----
NULL

query II rowsort
SELECT ALL - 27 AS col1, 71 col0
----
-27
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8611
SELECT MAX( ALL ( + 36 ) ) * - - 8 - 39 + - 88 DIV - 39
----
251

skipif mysql # not compatible
query I rowsort label-8611
SELECT MAX ( ALL ( + 36 ) ) * - - 8 - 39 + - 88 / - 39
----
251

query I rowsort
SELECT - 80 + COALESCE ( - 90, + 78 + COALESCE ( + + 11, 13 ) ) AS col0
----
-170

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8613
SELECT + CAST( NULL AS SIGNED ), + 77 AS col0
----
NULL
77

skipif mysql # not compatible
query II rowsort label-8613
SELECT + CAST ( NULL AS INTEGER ), + 77 AS col0
----
NULL
77

query I rowsort
SELECT ALL - 22 + - + CASE WHEN NOT NULL IS NOT NULL THEN NULL ELSE 43 END col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8615
SELECT + 84 / - 93 * + + 48 + + CAST( NULL AS SIGNED ) + + 66 / - + 51 * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8615
SELECT + 84 / - 93 * + + 48 + + CAST ( NULL AS INTEGER ) + + 66 / - + 51 * + COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT 54 + 57
----
111

query II rowsort
SELECT 30 AS col1, - 80
----
30
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8618
SELECT DISTINCT - 31 + - COALESCE ( - CAST( NULL AS SIGNED ), - - ( 16 ), + CAST( NULL AS SIGNED ) ) * - - 50 * + 57
----
-45631

skipif mysql # not compatible
query I rowsort label-8618
SELECT DISTINCT - 31 + - COALESCE ( - CAST ( NULL AS INTEGER ), - - ( 16 ), + CAST ( NULL AS INTEGER ) ) * - - 50 * + 57
----
-45631

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8619
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + + 0 * + 35 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8619
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + + 0 * + 35 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8620
SELECT ALL - + NULLIF ( COUNT( * ), + 92 ) + - ( + - ( - - 88 ) ) + + 3 * + - 71
----
-126

skipif mysql # not compatible
query I rowsort label-8620
SELECT ALL - + NULLIF ( COUNT ( * ), + 92 ) + - ( + - ( - - 88 ) ) + + 3 * + - 71
----
-126

onlyif mysql # DIV for integer division: 
query I rowsort label-8621
SELECT DISTINCT + + 60 DIV + 8 + + - NULLIF ( - ( 50 ), 86 DIV + + 2 ) * + 51 - + 79 AS col2
----
2478

skipif mysql # not compatible
query I rowsort label-8621
SELECT DISTINCT + + 60 / + 8 + + - NULLIF ( - ( 50 ), 86 / + + 2 ) * + 51 - + 79 AS col2
----
2478

onlyif mysql # aggregate syntax: 
query I rowsort label-8622
SELECT SUM( ALL + 5 ) AS col2
----
5

skipif mysql # not compatible
query I rowsort label-8622
SELECT SUM ( ALL + 5 ) AS col2
----
5

query I rowsort
SELECT ALL + - 93 - + 74 AS col2
----
-167

onlyif mysql # aggregate syntax: 
query I rowsort label-8624
SELECT ALL MIN( - 85 ) AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-8624
SELECT ALL MIN ( - 85 ) AS col0
----
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8625
SELECT DISTINCT + SUM( - CAST( - + 40 AS SIGNED ) ) col0
----
40

skipif mysql # not compatible
query I rowsort label-8625
SELECT DISTINCT + SUM ( - CAST ( - + 40 AS INTEGER ) ) col0
----
40

query I rowsort
SELECT DISTINCT - + 89 * 52 col1
----
-4628

onlyif mysql # aggregate syntax: 
query II rowsort label-8627
SELECT - 21 AS col0, 46 * - ( ( - COUNT( * ) ) )
----
-21
46

skipif mysql # not compatible
query II rowsort label-8627
SELECT - 21 AS col0, 46 * - ( ( - COUNT ( * ) ) )
----
-21
46

query II rowsort
SELECT - 59 * - 87 AS col1, - 59 AS col2
----
5133
-59

query I rowsort
SELECT ALL - ( 73 ) * + ( - + 57 ) AS col2
----
4161

onlyif mysql # aggregate syntax: 
query I rowsort label-8630
SELECT DISTINCT CASE + 71 WHEN - 99 - ( + 39 ) THEN - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8630
SELECT DISTINCT CASE + 71 WHEN - 99 - ( + 39 ) THEN - COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8631
SELECT ALL ( + COALESCE ( + 8, ( + COUNT( DISTINCT - 99 ) ) - + COUNT( * ) ) ) AS col2
----
8

skipif mysql # not compatible
query I rowsort label-8631
SELECT ALL ( + COALESCE ( + 8, ( + COUNT ( DISTINCT - 99 ) ) - + COUNT ( * ) ) ) AS col2
----
8

query I rowsort
SELECT - 23 * + + 13 AS col0
----
-299

onlyif mysql # DIV for integer division: 
query I rowsort label-8633
SELECT ALL 52 DIV - 67 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8633
SELECT ALL 52 / - 67 AS col1
----
0

query I rowsort
SELECT ALL NULLIF ( 38, 28 )
----
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8635
SELECT ALL COUNT( * ) * - 67 DIV + + 99 * + 8 * - + 15 * + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-8635
SELECT ALL COUNT ( * ) * - 67 / + + 99 * + 8 * - + 15 * + COUNT ( * )
----
0

query I rowsort
SELECT ( - 64 ) AS col0
----
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-8637
SELECT ALL + 76 DIV - - 68 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8637
SELECT ALL + 76 / - - 68 AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8638
SELECT + COALESCE ( + - 84, + 39, - - 54 + - + COUNT( * ) - + 23 * + - 28 DIV COUNT( * ) + CAST( NULL AS SIGNED ) ) AS col1
----
-84

skipif mysql # not compatible
query I rowsort label-8638
SELECT + COALESCE ( + - 84, + 39, - - 54 + - + COUNT ( * ) - + 23 * + - 28 / COUNT ( * ) + CAST ( NULL AS INTEGER ) ) AS col1
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8639
SELECT ALL + CAST( NULL AS SIGNED ) * - COUNT( * ) + - 7 / + 20
----
NULL

skipif mysql # not compatible
query I rowsort label-8639
SELECT ALL + CAST ( NULL AS INTEGER ) * - COUNT ( * ) + - 7 / + 20
----
NULL

query I rowsort
SELECT ( 84 ) AS col1
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8641
SELECT + 39 - + 25 AS col2, 88 + - 96 - + + CAST( + AVG ( ALL - 57 ) AS SIGNED )
----
14
49

skipif mysql # not compatible
query II rowsort label-8641
SELECT + 39 - + 25 AS col2, 88 + - 96 - + + CAST ( + AVG ( ALL - 57 ) AS INTEGER )
----
14
49

onlyif mysql # aggregate syntax: 
query I rowsort label-8642
SELECT ALL COUNT( - 0 ) * + 21 - 83 + - SUM( DISTINCT 76 ) + - - 72 AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-8642
SELECT ALL COUNT ( - 0 ) * + 21 - 83 + - SUM ( DISTINCT 76 ) + - - 72 AS col1
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8643
SELECT ( - CAST( - 47 AS SIGNED ) )
----
47

skipif mysql # not compatible
query I rowsort label-8643
SELECT ( - CAST ( - 47 AS INTEGER ) )
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8644
SELECT - 89 * - 23 * + 5 * - - 72 + - 91 - - + 58 + CASE - - COUNT( * ) WHEN + COUNT( * ) THEN - 92 END DIV 4 * - + CASE - COUNT( ALL - 32 ) WHEN + ( - - NULLIF ( + 67, - 54 ) ) + - COUNT( * ) + - + 42 THEN NULL ELSE - 42 * - + 90 END * 42 + 93
----
4388460

skipif mysql # not compatible
query I rowsort label-8644
SELECT - 89 * - 23 * + 5 * - - 72 + - 91 - - + 58 + CASE - - COUNT ( * ) WHEN + COUNT ( * ) THEN - 92 END / 4 * - + CASE - COUNT ( ALL - 32 ) WHEN + ( - - NULLIF ( + 67, - 54 ) ) + - COUNT ( * ) + - + 42 THEN NULL ELSE - 42 * - + 90 END * 42 + 93
----
4388460

onlyif mysql # aggregate syntax: 
query I rowsort label-8645
SELECT + 14 * - + MAX( + 25 ) * 87 - 75 + 33 AS col0
----
-30492

skipif mysql # not compatible
query I rowsort label-8645
SELECT + 14 * - + MAX ( + 25 ) * 87 - 75 + 33 AS col0
----
-30492

query I rowsort
SELECT ( - CASE 49 WHEN + - 59 THEN 31 WHEN - 61 THEN NULL ELSE + 77 END ) AS col1
----
-77

query I rowsort
SELECT DISTINCT - 64 * + - 92 - + 23 * - - 62 + - 12 AS col0
----
4450

onlyif mysql # aggregate syntax: 
query I rowsort label-8648
SELECT ALL - CASE + - 64 WHEN COUNT( * ) - + - 64 THEN COUNT( * ) END * 47 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8648
SELECT ALL - CASE + - 64 WHEN COUNT ( * ) - + - 64 THEN COUNT ( * ) END * 47 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8649
SELECT + 87 + + + 63 + + 31 * - - 9 * + + 2 + - - SUM( ALL + ( - 42 ) ) - COALESCE ( + 92, + 63 ) + - 66 * 16 DIV + 29 AS col0
----
538

skipif mysql # not compatible
query I rowsort label-8649
SELECT + 87 + + + 63 + + 31 * - - 9 * + + 2 + - - SUM ( ALL + ( - 42 ) ) - COALESCE ( + 92, + 63 ) + - 66 * 16 / + 29 AS col0
----
538

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8650
SELECT ALL + CAST( + 2 AS SIGNED )
----
2

skipif mysql # not compatible
query I rowsort label-8650
SELECT ALL + CAST ( + 2 AS INTEGER )
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8651
SELECT + - 21 * + - COALESCE ( - - 64, - - CASE - 87 WHEN - + 1 THEN + CAST( NULL AS SIGNED ) * + CASE + 29 WHEN NULLIF ( - + 67, - + ( - - MIN( DISTINCT 64 ) ) ) THEN - 92 END ELSE NULL END )
----
1344

skipif mysql # not compatible
query I rowsort label-8651
SELECT + - 21 * + - COALESCE ( - - 64, - - CASE - 87 WHEN - + 1 THEN + CAST ( NULL AS INTEGER ) * + CASE + 29 WHEN NULLIF ( - + 67, - + ( - - MIN ( DISTINCT 64 ) ) ) THEN - 92 END ELSE NULL END )
----
1344

onlyif mysql # aggregate syntax: 
query I rowsort label-8652
SELECT DISTINCT + + COUNT( * ) * - + 70 - - + 28 * + 93
----
2534

skipif mysql # not compatible
query I rowsort label-8652
SELECT DISTINCT + + COUNT ( * ) * - + 70 - - + 28 * + 93
----
2534

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8653
SELECT + CAST( - CAST( - + 72 AS SIGNED ) AS SIGNED ) + - - COUNT( * ) + + 72 col1, + CAST( NULL AS SIGNED )
----
145
NULL

skipif mysql # not compatible
query II rowsort label-8653
SELECT + CAST ( - CAST ( - + 72 AS INTEGER ) AS INTEGER ) + - - COUNT ( * ) + + 72 col1, + CAST ( NULL AS INTEGER )
----
145
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8654
SELECT ALL COUNT( * ) * + 20 DIV 40 * + 37 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8654
SELECT ALL COUNT ( * ) * + 20 / 40 * + 37 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8655
SELECT + - SUM( ALL + 90 ) + - 54 + - 24 + + 32 AS col1, COUNT( DISTINCT + + 99 )
----
-136
1

skipif mysql # not compatible
query II rowsort label-8655
SELECT + - SUM ( ALL + 90 ) + - 54 + - 24 + + 32 AS col1, COUNT ( DISTINCT + + 99 )
----
-136
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8656
SELECT ALL ( + 53 ) * COUNT( * ) AS col2
----
53

skipif mysql # not compatible
query I rowsort label-8656
SELECT ALL ( + 53 ) * COUNT ( * ) AS col2
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8657
SELECT - - CAST( + 43 AS SIGNED ) * + - 76 + COUNT( * )
----
-3267

skipif mysql # not compatible
query I rowsort label-8657
SELECT - - CAST ( + 43 AS INTEGER ) * + - 76 + COUNT ( * )
----
-3267

query I rowsort
SELECT DISTINCT 91 * - + 24 + + + 97
----
-2087

onlyif mysql # aggregate syntax: 
query I rowsort label-8659
SELECT ALL + ( SUM( + 17 ) ) * 28 AS col0
----
476

skipif mysql # not compatible
query I rowsort label-8659
SELECT ALL + ( SUM ( + 17 ) ) * 28 AS col0
----
476

query II rowsort
SELECT - + 3 + + 73 AS col1, + 68 * - - 34 AS col1
----
70
2312

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8661
SELECT - 29 + - 0 - + CAST( + + COUNT( 73 ) AS SIGNED )
----
-30

skipif mysql # not compatible
query I rowsort label-8661
SELECT - 29 + - 0 - + CAST ( + + COUNT ( 73 ) AS INTEGER )
----
-30

query I rowsort
SELECT - 40 + + - ( - NULLIF ( 96, + - 9 / - + ( - 30 ) * + - 76 / - 52 ) ) AS col0
----
56

query I rowsort
SELECT - NULLIF ( 58, - - 95 * - 32 + 11 ) * + + 55
----
-3190

query I rowsort
SELECT ALL + 89 + + 79 AS col1
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-8665
SELECT - COUNT( * ) + + 16
----
15

skipif mysql # not compatible
query I rowsort label-8665
SELECT - COUNT ( * ) + + 16
----
15

query I rowsort
SELECT DISTINCT NULLIF ( - ( - COALESCE ( + - 63, 1 ) ), + - AVG ( DISTINCT + 94 ) + - 30 )
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8667
SELECT - 93 + COALESCE ( - CAST( 84 AS SIGNED ), + COUNT( * ) + - 90 ) * + MIN( - - 92 ) AS col0, 82 AS col2
----
-7821
82

skipif mysql # not compatible
query II rowsort label-8667
SELECT - 93 + COALESCE ( - CAST ( 84 AS INTEGER ), + COUNT ( * ) + - 90 ) * + MIN ( - - 92 ) AS col0, 82 AS col2
----
-7821
82

onlyif mysql # aggregate syntax: 
query I rowsort label-8668
SELECT DISTINCT + MIN( DISTINCT - 11 ) * COUNT( DISTINCT + 52 )
----
-11

skipif mysql # not compatible
query I rowsort label-8668
SELECT DISTINCT + MIN ( DISTINCT - 11 ) * COUNT ( DISTINCT + 52 )
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-8669
SELECT - CASE - 91 WHEN - ( + CASE - 78 WHEN + 42 THEN NULLIF ( - - COUNT( * ), 4 ) END ) - ( 53 ) THEN NULL WHEN - 35 THEN + - 14 + + 68 * + 6 END * + 33 + + - NULLIF ( 57, - 52 * - - 36 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8669
SELECT - CASE - 91 WHEN - ( + CASE - 78 WHEN + 42 THEN NULLIF ( - - COUNT ( * ), 4 ) END ) - ( 53 ) THEN NULL WHEN - 35 THEN + - 14 + + 68 * + 6 END * + 33 + + - NULLIF ( 57, - 52 * - - 36 ) AS col2
----
NULL

query I rowsort
SELECT ALL + 89 + - + 53 col2
----
36

query I rowsort
SELECT 91 + - 72 + 76 + - 25 AS col1
----
70

onlyif mysql # aggregate syntax: 
query II rowsort label-8672
SELECT - 22 col2, + SUM( 94 )
----
-22
94

skipif mysql # not compatible
query II rowsort label-8672
SELECT - 22 col2, + SUM ( 94 )
----
-22
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8673
SELECT 75 DIV COUNT( * ) col0
----
75

skipif mysql # not compatible
query I rowsort label-8673
SELECT 75 / COUNT ( * ) col0
----
75

query II rowsort
SELECT DISTINCT - 49, ( - 33 ) * + - ( - + 2 ) AS col1
----
-49
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8675
SELECT 20 + COUNT( DISTINCT + CAST( + 87 AS SIGNED ) ) - - 22 + - + 22 AS col0
----
21

skipif mysql # not compatible
query I rowsort label-8675
SELECT 20 + COUNT ( DISTINCT + CAST ( + 87 AS INTEGER ) ) - - 22 + - + 22 AS col0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-8676
SELECT ALL + ( 65 ) + + COUNT( * ) * - 57 AS col1
----
8

skipif mysql # not compatible
query I rowsort label-8676
SELECT ALL + ( 65 ) + + COUNT ( * ) * - 57 AS col1
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-8677
SELECT COUNT( * ) * - 21 AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-8677
SELECT COUNT ( * ) * - 21 AS col2
----
-21

query I rowsort
SELECT ALL + 54 + - 99 * + 87
----
-8559

onlyif mysql # aggregate syntax: 
query II rowsort label-8679
SELECT 38 AS col2, COALESCE ( + COUNT( * ), + 82 ) * + 66
----
38
66

skipif mysql # not compatible
query II rowsort label-8679
SELECT 38 AS col2, COALESCE ( + COUNT ( * ), + 82 ) * + 66
----
38
66

onlyif mysql # aggregate syntax: 
query II rowsort label-8680
SELECT + - COUNT( * ) AS col1, - 78
----
-1
-78

skipif mysql # not compatible
query II rowsort label-8680
SELECT + - COUNT ( * ) AS col1, - 78
----
-1
-78

query I rowsort
SELECT + CASE 35 WHEN - 85 THEN NULL ELSE COALESCE ( - 32, 79 * - + 96 ) END * 3
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8682
SELECT - - CASE - 13 WHEN 97 * + 76 * - CAST( + 32 AS SIGNED ) + + COUNT( * ) * + - 90 THEN NULL WHEN - 61 + - + 40 THEN - 77 * - 93 + - + 29 + - + 17 * 17 * - 69 + 51 + + 74 + + 61 * - 69 / + 44 + 27 - 52 + + 16 * 99 * 25 WHEN - CAST( NULL AS SIGNED ) * 99 THEN - 94 * 42 END * ( 55 ) + - 44
----
NULL

skipif mysql # not compatible
query I rowsort label-8682
SELECT - - CASE - 13 WHEN 97 * + 76 * - CAST ( + 32 AS INTEGER ) + + COUNT ( * ) * + - 90 THEN NULL WHEN - 61 + - + 40 THEN - 77 * - 93 + - + 29 + - + 17 * 17 * - 69 + 51 + + 74 + + 61 * - 69 / + 44 + 27 - 52 + + 16 * 99 * 25 WHEN - CAST ( NULL AS INTEGER ) * 99 THEN - 94 * 42 END * ( 55 ) + - 44
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8683
SELECT - 16 + + 19 - - 83 + COUNT( * ) + 67 - + 32 * + 95
----
-2886

skipif mysql # not compatible
query I rowsort label-8683
SELECT - 16 + + 19 - - 83 + COUNT ( * ) + 67 - + 32 * + 95
----
-2886

query II rowsort
SELECT + 26 AS col1, 6
----
26
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8685
SELECT + - SUM( ALL - 79 )
----
79

skipif mysql # not compatible
query I rowsort label-8685
SELECT + - SUM ( ALL - 79 )
----
79

onlyif mysql # aggregate syntax: 
query II rowsort label-8686
SELECT + 43 * 80 * - COUNT( * ) * - 23 AS col0, 52 * + 24
----
79120
1248

skipif mysql # not compatible
query II rowsort label-8686
SELECT + 43 * 80 * - COUNT ( * ) * - 23 AS col0, 52 * + 24
----
79120
1248

query I rowsort
SELECT ALL - + COALESCE ( ( - + 24 ), - + ( 35 ) * + - 56 )
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8688
SELECT - 76 * + NULLIF ( - 92, - - ( + 46 ) - + CAST( NULL AS SIGNED ) ), 16 col0
----
6992
16

skipif mysql # not compatible
query II rowsort label-8688
SELECT - 76 * + NULLIF ( - 92, - - ( + 46 ) - + CAST ( NULL AS INTEGER ) ), 16 col0
----
6992
16

onlyif mysql # aggregate syntax: 
query I rowsort label-8689
SELECT 19 * COUNT( * ) + 66 col1
----
85

skipif mysql # not compatible
query I rowsort label-8689
SELECT 19 * COUNT ( * ) + 66 col1
----
85

onlyif mysql # aggregate syntax: 
query II rowsort label-8690
SELECT - - COUNT( * ) AS col0, - 55 AS col0
----
1
-55

skipif mysql # not compatible
query II rowsort label-8690
SELECT - - COUNT ( * ) AS col0, - 55 AS col0
----
1
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-8691
SELECT 95 DIV - 13 AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-8691
SELECT 95 / - 13 AS col2
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8692
SELECT 66 * - CAST( - + 85 AS SIGNED ) * - - 93
----
521730

skipif mysql # not compatible
query I rowsort label-8692
SELECT 66 * - CAST ( - + 85 AS INTEGER ) * - - 93
----
521730

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8693
SELECT DISTINCT 40 + + 64 - + 30 DIV + ( COUNT( * ) ) - 21 + 2 AS col1, - 68
----
55
-68

skipif mysql # not compatible
query II rowsort label-8693
SELECT DISTINCT 40 + + 64 - + 30 / + ( COUNT ( * ) ) - 21 + 2 AS col1, - 68
----
55
-68

query I rowsort
SELECT DISTINCT + 76 + + 84
----
160

onlyif mysql # DIV for integer division: 
query I rowsort label-8695
SELECT DISTINCT 34 + + CASE 0 WHEN - AVG ( ALL - 4 ) THEN + 49 * + + 51 * - + 50 * - 90 DIV 35 ELSE 79 - 91 END AS col2
----
22

skipif mysql # not compatible
query I rowsort label-8695
SELECT DISTINCT 34 + + CASE 0 WHEN - AVG ( ALL - 4 ) THEN + 49 * + + 51 * - + 50 * - 90 / 35 ELSE 79 - 91 END AS col2
----
22

query I rowsort
SELECT ALL 69 + + 24 + + 64 * + 23 * - 7 AS col1
----
-10211

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8697
SELECT 75 + - 24 + - + NULLIF ( 1, 59 ) * MAX( + 37 ) + - NULLIF ( NULLIF ( - 54, + - 29 ), - CAST( NULL AS SIGNED ) + + 30 * + SUM( DISTINCT 52 ) ) col1, - COUNT( * )
----
68
-1

skipif mysql # not compatible
query II rowsort label-8697
SELECT 75 + - 24 + - + NULLIF ( 1, 59 ) * MAX ( + 37 ) + - NULLIF ( NULLIF ( - 54, + - 29 ), - CAST ( NULL AS INTEGER ) + + 30 * + SUM ( DISTINCT 52 ) ) col1, - COUNT ( * )
----
68
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-8698
SELECT 10 DIV - 63
----
0

skipif mysql # not compatible
query I rowsort label-8698
SELECT 10 / - 63
----
0

query I rowsort
SELECT ALL + 58 + + 20 AS col0
----
78

query I rowsort
SELECT 0 + - - 48 + + 10 AS col1
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8701
SELECT - CAST( - CAST( + 46 AS SIGNED ) AS SIGNED ) * - 17 + - 2 AS col0
----
-784

skipif mysql # not compatible
query I rowsort label-8701
SELECT - CAST ( - CAST ( + 46 AS INTEGER ) AS INTEGER ) * - 17 + - 2 AS col0
----
-784

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8702
SELECT ALL MIN( DISTINCT 50 ) - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8702
SELECT ALL MIN ( DISTINCT 50 ) - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 16 * + - 91 * 64
----
-93184

onlyif mysql # aggregate syntax: 
query I rowsort label-8704
SELECT DISTINCT + 32 - + 59 + COUNT( * ) * - 59 * + 19 col1
----
-1148

skipif mysql # not compatible
query I rowsort label-8704
SELECT DISTINCT + 32 - + 59 + COUNT ( * ) * - 59 * + 19 col1
----
-1148

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8705
SELECT - + 83 DIV NULLIF ( - 52, + 22 * - 99 ) + + 20 + ( - COUNT( * ) ) DIV + 51 - - 28 * + - COUNT( * ) AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-8705
SELECT - + 83 / NULLIF ( - 52, + 22 * - 99 ) + + 20 + ( - COUNT ( * ) ) / + 51 - - 28 * + - COUNT ( * ) AS col1
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-8706
SELECT - 5 + - NULLIF ( + + 96, + 94 * + ( + 47 ) / + - MAX( DISTINCT - - 87 ) - - SUM( + + 15 ) * - + 14 + + 3 ) + + 13 + 92 + - 97
----
-93

skipif mysql # not compatible
query I rowsort label-8706
SELECT - 5 + - NULLIF ( + + 96, + 94 * + ( + 47 ) / + - MAX ( DISTINCT - - 87 ) - - SUM ( + + 15 ) * - + 14 + + 3 ) + + 13 + 92 + - 97
----
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8707
SELECT ALL - + CAST( + COUNT( ALL - + 59 ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-8707
SELECT ALL - + CAST ( + COUNT ( ALL - + 59 ) AS INTEGER )
----
-1

query I rowsort
SELECT ALL - + 88 AS col0
----
-88

query I rowsort
SELECT DISTINCT - - 32 AS col0
----
32

query I rowsort
SELECT DISTINCT - NULLIF ( 68, ( - ( 11 ) ) ) AS col0
----
-68

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8711
SELECT 65 DIV + - COUNT( * ) AS col0, COUNT( * ) * + COALESCE ( + + 93, + ( 65 ) )
----
-65
93

skipif mysql # not compatible
query II rowsort label-8711
SELECT 65 / + - COUNT ( * ) AS col0, COUNT ( * ) * + COALESCE ( + + 93, + ( 65 ) )
----
-65
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8712
SELECT ALL COUNT( * ) * + 72
----
72

skipif mysql # not compatible
query I rowsort label-8712
SELECT ALL COUNT ( * ) * + 72
----
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8713
SELECT DISTINCT - COUNT( - 62 ) DIV 76
----
0

skipif mysql # not compatible
query I rowsort label-8713
SELECT DISTINCT - COUNT ( - 62 ) / 76
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8714
SELECT COUNT( * ) DIV - - 37, - NULLIF ( + 26, - 53 ) AS col2
----
0
-26

skipif mysql # not compatible
query II rowsort label-8714
SELECT COUNT ( * ) / - - 37, - NULLIF ( + 26, - 53 ) AS col2
----
0
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8715
SELECT + CAST( NULL AS SIGNED ) / - + 54
----
NULL

skipif mysql # not compatible
query I rowsort label-8715
SELECT + CAST ( NULL AS INTEGER ) / - + 54
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8716
SELECT COUNT( * ) * 71
----
71

skipif mysql # not compatible
query I rowsort label-8716
SELECT COUNT ( * ) * 71
----
71

query I rowsort
SELECT ALL + 32 + 29
----
61

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8718
SELECT + 83 + - - 3 + 66 * + CAST( NULL AS DECIMAL ) * COUNT( * ) - - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8718
SELECT + 83 + - - 3 + 66 * + CAST ( NULL AS REAL ) * COUNT ( * ) - - COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT 29 + 20
----
49

query II rowsort
SELECT ALL 97, 81 * - 91 AS col1
----
97
-7371

onlyif mysql # aggregate syntax: 
query I rowsort label-8721
SELECT + 9 * - MIN( ALL 22 ) + + ( - - MIN( DISTINCT + - 92 ) ) * - 72
----
6426

skipif mysql # not compatible
query I rowsort label-8721
SELECT + 9 * - MIN ( ALL 22 ) + + ( - - MIN ( DISTINCT + - 92 ) ) * - 72
----
6426

onlyif mysql # aggregate syntax: 
query I rowsort label-8722
SELECT DISTINCT + 35 + + CASE + 21 WHEN + 40 + - 78 THEN + 60 ELSE NULL END + - ( NULLIF ( 45, - - SUM( DISTINCT 73 ) / + 56 + - AVG ( 87 ) ) ) / + SUM( 19 ) * - 77 + - 43 + + - ( + COUNT( * ) ) + - - 96 * + 54 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8722
SELECT DISTINCT + 35 + + CASE + 21 WHEN + 40 + - 78 THEN + 60 ELSE NULL END + - ( NULLIF ( 45, - - SUM ( DISTINCT 73 ) / + 56 + - AVG ( 87 ) ) ) / + SUM ( 19 ) * - 77 + - 43 + + - ( + COUNT ( * ) ) + - - 96 * + 54 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8723
SELECT - 57 DIV 76 DIV - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-8723
SELECT - 57 / 76 / - COUNT ( * )
----
0

query I rowsort
SELECT + 63 + - ( - ( - 84 ) ) * - + 32
----
2751

onlyif mysql # DIV for integer division: 
query I rowsort label-8725
SELECT DISTINCT 87 DIV - 55
----
-1

skipif mysql # not compatible
query I rowsort label-8725
SELECT DISTINCT 87 / - 55
----
-1

query II rowsort
SELECT 55 AS col1, 71 AS col1
----
55
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8727
SELECT + 16 + + + 24 * - 37 * 80 * - CAST( - COUNT( * ) AS SIGNED ) + - CAST( NULL AS SIGNED ) + + CASE - 33 WHEN + 30 * - + COALESCE ( NULLIF ( 46, - 23 * - COUNT( * ) * + CASE 85 WHEN + 79 THEN NULL WHEN - + AVG ( + + 18 ) + + 59 + - 22 + + + MAX( - 10 ) + + 64 * 86 * - COUNT( * ) THEN 87 * - 29 END ), + 16, 7 * + 25 ) * + COUNT( * ) + 76 * 17 THEN CASE - 23 WHEN + COUNT( * ) * 78 THEN 52 WHEN - CAST( NULL AS SIGNED ) * 3 THEN + 78 + + 87 END END * - NULLIF ( - 34 / + 14, NULLIF ( - 79, - 26 * 12 ) * - 88 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8727
SELECT + 16 + + + 24 * - 37 * 80 * - CAST ( - COUNT ( * ) AS INTEGER ) + - CAST ( NULL AS INTEGER ) + + CASE - 33 WHEN + 30 * - + COALESCE ( NULLIF ( 46, - 23 * - COUNT ( * ) * + CASE 85 WHEN + 79 THEN NULL WHEN - + AVG ( + + 18 ) + + 59 + - 22 + + + MAX ( - 10 ) + + 64 * 86 * - COUNT ( * ) THEN 87 * - 29 END ), + 16, 7 * + 25 ) * + COUNT ( * ) + 76 * 17 THEN CASE - 23 WHEN + COUNT ( * ) * 78 THEN 52 WHEN - CAST ( NULL AS INTEGER ) * 3 THEN + 78 + + 87 END END * - NULLIF ( - 34 / + 14, NULLIF ( - 79, - 26 * 12 ) * - 88 ) AS col1
----
NULL

query I rowsort
SELECT ALL 22 + + 87 AS col2
----
109

query I rowsort
SELECT + 33 * - + ( + 12 ) * + - 71
----
28116

onlyif mysql # DIV for integer division: 
query I rowsort label-8730
SELECT DISTINCT 51 DIV 57 DIV + 49
----
0

skipif mysql # not compatible
query I rowsort label-8730
SELECT DISTINCT 51 / 57 / + 49
----
0

query I rowsort
SELECT - CASE - 98 WHEN + 74 / 74 * - 49 - + + 59 THEN + 37 END col1
----
NULL

query I rowsort
SELECT - NULLIF ( 94, - 78 )
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-8733
SELECT ALL 86 * + COUNT( * )
----
86

skipif mysql # not compatible
query I rowsort label-8733
SELECT ALL 86 * + COUNT ( * )
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-8734
SELECT + 97 * - SUM( + 47 ) * 64
----
-291776

skipif mysql # not compatible
query I rowsort label-8734
SELECT + 97 * - SUM ( + 47 ) * 64
----
-291776

onlyif mysql # aggregate syntax: 
query I rowsort label-8735
SELECT ALL COUNT( ALL + + 53 )
----
1

skipif mysql # not compatible
query I rowsort label-8735
SELECT ALL COUNT ( ALL + + 53 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8736
SELECT - 50 + - MAX( ALL + + ( + 8 ) )
----
-58

skipif mysql # not compatible
query I rowsort label-8736
SELECT - 50 + - MAX ( ALL + + ( + 8 ) )
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-8737
SELECT + + 23 DIV - 73 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8737
SELECT + + 23 / - 73 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8738
SELECT - + NULLIF ( + 18, - + CAST( + + ( 74 ) AS SIGNED ) * + SUM( + - 29 ) ) * + - 15 col2
----
270

skipif mysql # not compatible
query I rowsort label-8738
SELECT - + NULLIF ( + 18, - + CAST ( + + ( 74 ) AS INTEGER ) * + SUM ( + - 29 ) ) * + - 15 col2
----
270

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8739
SELECT DISTINCT 54 DIV - COUNT( * )
----
-54

skipif mysql # not compatible
query I rowsort label-8739
SELECT DISTINCT 54 / - COUNT ( * )
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8740
SELECT DISTINCT + SUM( - CAST( NULL AS SIGNED ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8740
SELECT DISTINCT + SUM ( - CAST ( NULL AS INTEGER ) ) col0
----
NULL

query I rowsort
SELECT + 51 + 92 - + 36 * + 26 * + - ( - 53 ) * - + 28
----
1389167

onlyif mysql # aggregate syntax: 
query I rowsort label-8742
SELECT ALL - SUM( DISTINCT + - 63 ) * - 81 * - 78 AS col1
----
398034

skipif mysql # not compatible
query I rowsort label-8742
SELECT ALL - SUM ( DISTINCT + - 63 ) * - 81 * - 78 AS col1
----
398034

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8743
SELECT + + 33 AS col0, CASE COALESCE ( - 29, + 72 ) WHEN + - 66 THEN CASE 78 WHEN - + 98 + - 42 THEN - ( ( SUM( - - CAST( NULL AS SIGNED ) ) ) ) / - - 32 END * + - 52 * - - NULLIF ( 43, + 34 ) * 95 + + - 77 + + + COUNT( * ) END * - 28 / - NULLIF ( + 76, + COUNT( * ) * 12 ) * + 62
----
33
NULL

skipif mysql # not compatible
query II rowsort label-8743
SELECT + + 33 AS col0, CASE COALESCE ( - 29, + 72 ) WHEN + - 66 THEN CASE 78 WHEN - + 98 + - 42 THEN - ( ( SUM ( - - CAST ( NULL AS INTEGER ) ) ) ) / - - 32 END * + - 52 * - - NULLIF ( 43, + 34 ) * 95 + + - 77 + + + COUNT ( * ) END * - 28 / - NULLIF ( + 76, + COUNT ( * ) * 12 ) * + 62
----
33
NULL

query I rowsort
SELECT ALL 59 * + 46 + + + NULLIF ( + 7, + AVG ( + + 96 ) )
----
2721

query I rowsort
SELECT ALL - - 96 * + - 54
----
-5184

onlyif mysql # aggregate syntax: 
query II rowsort label-8746
SELECT ALL - - 80 * + - 44 + + 65 AS col0, COUNT( * ) AS col0
----
-3455
1

skipif mysql # not compatible
query II rowsort label-8746
SELECT ALL - - 80 * + - 44 + + 65 AS col0, COUNT ( * ) AS col0
----
-3455
1

query I rowsort
SELECT + + 21 * + 21
----
441

query I rowsort
SELECT - + 16 + - 82
----
-98

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8749
SELECT + CAST( NULL AS SIGNED ), - 26 AS col2
----
NULL
-26

skipif mysql # not compatible
query II rowsort label-8749
SELECT + CAST ( NULL AS INTEGER ), - 26 AS col2
----
NULL
-26

onlyif mysql # DIV for integer division: 
query II rowsort label-8750
SELECT - 84 AS col2, - 60 DIV + - 98 + 93 AS col0
----
-84
93

skipif mysql # not compatible
query II rowsort label-8750
SELECT - 84 AS col2, - 60 / + - 98 + 93 AS col0
----
-84
93

query I rowsort
SELECT - 67 * + + 69
----
-4623

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8752
SELECT - - 97 - - NULLIF ( - CAST( - - ( - 59 ) AS SIGNED ), + 48 * 37 - + NULLIF ( 30, - COUNT( * ) + + 52 ) * + 76 + 0 * - COUNT( * ) / - 39 * + 17 + + + 80 * + 63 )
----
156

skipif mysql # not compatible
query I rowsort label-8752
SELECT - - 97 - - NULLIF ( - CAST ( - - ( - 59 ) AS INTEGER ), + 48 * 37 - + NULLIF ( 30, - COUNT ( * ) + + 52 ) * + 76 + 0 * - COUNT ( * ) / - 39 * + 17 + + + 80 * + 63 )
----
156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8753
SELECT ALL + NULLIF ( + ( - 44 ), + 55 + - COALESCE ( + 96, + CAST( - - 15 AS SIGNED ) - 21, 75 - CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) ) ) * - COUNT( * ) + + 97 + MIN( DISTINCT - + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8753
SELECT ALL + NULLIF ( + ( - 44 ), + 55 + - COALESCE ( + 96, + CAST ( - - 15 AS INTEGER ) - 21, 75 - CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) ) ) * - COUNT ( * ) + + 97 + MIN ( DISTINCT - + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8754
SELECT ALL - 11 DIV - 1
----
11

skipif mysql # not compatible
query I rowsort label-8754
SELECT ALL - 11 / - 1
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-8755
SELECT DISTINCT MAX( ALL + 62 ) * - 52 * + 84 + - 66 col0
----
-270882

skipif mysql # not compatible
query I rowsort label-8755
SELECT DISTINCT MAX ( ALL + 62 ) * - 52 * + 84 + - 66 col0
----
-270882

query I rowsort
SELECT ALL 17 * + 29 + 30 AS col2
----
523

onlyif mysql # aggregate syntax: 
query I rowsort label-8757
SELECT - COUNT( ALL - + 52 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8757
SELECT - COUNT ( ALL - + 52 ) AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-8758
SELECT ALL + 30 DIV - 36 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8758
SELECT ALL + 30 / - 36 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8759
SELECT COUNT( * ) AS col2, + ( 54 ) col1
----
1
54

skipif mysql # not compatible
query II rowsort label-8759
SELECT COUNT ( * ) AS col2, + ( 54 ) col1
----
1
54

onlyif mysql # DIV for integer division: 
query I rowsort label-8760
SELECT - 64 DIV + - 96 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8760
SELECT - 64 / + - 96 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8761
SELECT DISTINCT + COUNT( * ) * + 17 AS col1, - 7 + 45 + + COUNT( * ) AS col2
----
17
39

skipif mysql # not compatible
query II rowsort label-8761
SELECT DISTINCT + COUNT ( * ) * + 17 AS col1, - 7 + 45 + + COUNT ( * ) AS col2
----
17
39

query II rowsort
SELECT ALL - 58 - - 73, 9 AS col1
----
15
9

query I rowsort
SELECT - 51 - + 38
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-8764
SELECT - CASE - + COUNT( * ) WHEN + 99 / 19 + + + COALESCE ( - - 65, 69, - SUM( + + 57 ) ) + 13 THEN 11 + + + 67 * - 33 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8764
SELECT - CASE - + COUNT ( * ) WHEN + 99 / 19 + + + COALESCE ( - - 65, 69, - SUM ( + + 57 ) ) + 13 THEN 11 + + + 67 * - 33 ELSE NULL END AS col0
----
NULL

query II rowsort
SELECT - 64 AS col0, 3 col0
----
-64
3

query I rowsort
SELECT ALL - 58 - + - 88 AS col2
----
30

query II rowsort
SELECT ALL ( - + 19 ), 34 - - + CASE + - 32 WHEN + - AVG ( ALL - 53 ) THEN NULL ELSE 63 END * - - 95 * 77 AS col1
----
-19
460879

query I rowsort
SELECT DISTINCT - 41 - 34 + - 66 AS col0
----
-141

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8769
SELECT DISTINCT CAST( - - 21 AS SIGNED ) AS col2
----
21

skipif mysql # not compatible
query I rowsort label-8769
SELECT DISTINCT CAST ( - - 21 AS INTEGER ) AS col2
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8770
SELECT + CAST( + 50 AS SIGNED ) * 87 AS col1
----
4350

skipif mysql # not compatible
query I rowsort label-8770
SELECT + CAST ( + 50 AS INTEGER ) * 87 AS col1
----
4350

query I rowsort
SELECT - ( + 21 )
----
-21

query II rowsort
SELECT + 26 + + 91 AS col2, + 96 - - + 21
----
117
117

onlyif mysql # DIV for integer division: 
query I rowsort label-8773
SELECT DISTINCT - - 65 DIV + - 48
----
-1

skipif mysql # not compatible
query I rowsort label-8773
SELECT DISTINCT - - 65 / + - 48
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-8774
SELECT DISTINCT MIN( 97 ) AS col0, + 53
----
97
53

skipif mysql # not compatible
query II rowsort label-8774
SELECT DISTINCT MIN ( 97 ) AS col0, + 53
----
97
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8775
SELECT ALL + 74 DIV 46 + + COUNT( * ) + 94 AS col2
----
96

skipif mysql # not compatible
query I rowsort label-8775
SELECT ALL + 74 / 46 + + COUNT ( * ) + 94 AS col2
----
96

query I rowsort
SELECT DISTINCT 28 * + 69 * - + 79
----
-152628

onlyif mysql # DIV for integer division: 
query I rowsort label-8777
SELECT ALL 57 DIV 25 + + 11 - 31 AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-8777
SELECT ALL 57 / 25 + + 11 - 31 AS col2
----
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-8778
SELECT ALL + + 46 AS col0, - COUNT( * ) + + COUNT( * )
----
46
0

skipif mysql # not compatible
query II rowsort label-8778
SELECT ALL + + 46 AS col0, - COUNT ( * ) + + COUNT ( * )
----
46
0

query I rowsort
SELECT + 69 * + 91 + - + 74
----
6205

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8780
SELECT + + CAST( + 50 AS SIGNED ) + + - 70
----
-20

skipif mysql # not compatible
query I rowsort label-8780
SELECT + + CAST ( + 50 AS INTEGER ) + + - 70
----
-20

onlyif mysql # DIV for integer division: 
query II rowsort label-8781
SELECT ALL + 81 DIV 31 * - 65 + - 89 AS col0, 1 AS col1
----
-219
1

skipif mysql # not compatible
query II rowsort label-8781
SELECT ALL + 81 / 31 * - 65 + - 89 AS col0, 1 AS col1
----
-219
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8782
SELECT ALL 35 / - + 30 - 94 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8782
SELECT ALL 35 / - + 30 - 94 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8783
SELECT ALL - COUNT( DISTINCT - 60 ) DIV + - 94 + - 31 AS col0, - 22 AS col2
----
-31
-22

skipif mysql # not compatible
query II rowsort label-8783
SELECT ALL - COUNT ( DISTINCT - 60 ) / + - 94 + - 31 AS col0, - 22 AS col2
----
-31
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-8784
SELECT + MIN( ALL + - 76 )
----
-76

skipif mysql # not compatible
query I rowsort label-8784
SELECT + MIN ( ALL + - 76 )
----
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8785
SELECT ALL + - 39 + + + 43 - 64 + 2 + - - CAST( 25 AS SIGNED ) * + CAST( NULL AS SIGNED ) - - + NULLIF ( + + COUNT( * ), SUM( ALL + 20 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8785
SELECT ALL + - 39 + + + 43 - 64 + 2 + - - CAST ( 25 AS INTEGER ) * + CAST ( NULL AS INTEGER ) - - + NULLIF ( + + COUNT ( * ), SUM ( ALL + 20 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8786
SELECT + ( NULLIF ( COUNT( * ), 66 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8786
SELECT + ( NULLIF ( COUNT ( * ), 66 ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8787
SELECT ALL - COALESCE ( + + COUNT( * ), + COUNT( * ), - + 30 * + ( 37 ) * - 56 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8787
SELECT ALL - COALESCE ( + + COUNT ( * ), + COUNT ( * ), - + 30 * + ( 37 ) * - 56 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8788
SELECT + COUNT( * ) * - MIN( ALL 25 ) + - - 28
----
3

skipif mysql # not compatible
query I rowsort label-8788
SELECT + COUNT ( * ) * - MIN ( ALL 25 ) + - - 28
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8789
SELECT ALL + 26 * 40 DIV 1, - NULLIF ( + - COUNT( * ), 81 - 53 ) * 3 AS col1
----
1040
3

skipif mysql # not compatible
query II rowsort label-8789
SELECT ALL + 26 * 40 / 1, - NULLIF ( + - COUNT ( * ), 81 - 53 ) * 3 AS col1
----
1040
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8790
SELECT DISTINCT + 9 - MAX( DISTINCT - 99 ) - - 52 AS col0
----
160

skipif mysql # not compatible
query I rowsort label-8790
SELECT DISTINCT + 9 - MAX ( DISTINCT - 99 ) - - 52 AS col0
----
160

query I rowsort
SELECT 20 * - - 95 AS col1
----
1900

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8792
SELECT ALL + COUNT( * ) / + - COUNT( ALL + 70 ) / + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8792
SELECT ALL + COUNT ( * ) / + - COUNT ( ALL + 70 ) / + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8793
SELECT 26 + - CAST( - 49 AS SIGNED )
----
75

skipif mysql # not compatible
query I rowsort label-8793
SELECT 26 + - CAST ( - 49 AS INTEGER )
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-8794
SELECT DISTINCT + ( + 98 ) DIV 63 + + 70 AS col1
----
71

skipif mysql # not compatible
query I rowsort label-8794
SELECT DISTINCT + ( + 98 ) / 63 + + 70 AS col1
----
71

query II rowsort
SELECT 6 * + 9 * + 59, + 76 AS col0
----
3186
76

query I rowsort
SELECT 10 * - 94
----
-940

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8797
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - + 45
----
NULL

skipif mysql # not compatible
query I rowsort label-8797
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - + 45
----
NULL

query I rowsort
SELECT 19 * + 95
----
1805

onlyif mysql # aggregate syntax: 
query I rowsort label-8799
SELECT ALL - 20 * + COUNT( - ( - 42 ) )
----
-20

skipif mysql # not compatible
query I rowsort label-8799
SELECT ALL - 20 * + COUNT ( - ( - 42 ) )
----
-20

query I rowsort
SELECT ALL + 62 + + + 69
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-8801
SELECT NULLIF ( - - CASE COUNT( * ) WHEN - 5 + 55 * - + 12 THEN - COUNT( * ) * - 47 END, - 29 + + 18 + + - AVG ( + 46 ) ) * + COALESCE ( MAX( - + 2 ), + 88 + - - 8 * - - 42 * - 55 / + 35 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8801
SELECT NULLIF ( - - CASE COUNT ( * ) WHEN - 5 + 55 * - + 12 THEN - COUNT ( * ) * - 47 END, - 29 + + 18 + + - AVG ( + 46 ) ) * + COALESCE ( MAX ( - + 2 ), + 88 + - - 8 * - - 42 * - 55 / + 35 ) col0
----
NULL

query I rowsort
SELECT ALL - - 25 + + 54 + - - 25 + - + 48 * + - 25
----
1304

onlyif mysql # aggregate syntax: 
query I rowsort label-8803
SELECT DISTINCT + 27 + - + COUNT( * )
----
26

skipif mysql # not compatible
query I rowsort label-8803
SELECT DISTINCT + 27 + - + COUNT ( * )
----
26

query II rowsort
SELECT 63 * - 55 AS col2, + 15 AS col1
----
-3465
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8805
SELECT DISTINCT - SUM( DISTINCT 21 ) DIV 46 + - + MAX( 78 )
----
-78

skipif mysql # not compatible
query I rowsort label-8805
SELECT DISTINCT - SUM ( DISTINCT 21 ) / 46 + - + MAX ( 78 )
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-8806
SELECT DISTINCT - 8 + + COUNT( * ) * + + 3 AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-8806
SELECT DISTINCT - 8 + + COUNT ( * ) * + + 3 AS col0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8807
SELECT ALL + 44 * - 27 + - 73 + - 46 * + 73 + + COUNT( * ) AS col0
----
-4618

skipif mysql # not compatible
query I rowsort label-8807
SELECT ALL + 44 * - 27 + - 73 + - 46 * + 73 + + COUNT ( * ) AS col0
----
-4618

query I rowsort
SELECT + ( - 78 ) + - NULLIF ( - + 58, - 76 * - 90 + + 19 ) + 52 * 24 * - + 34 AS col1
----
-42452

query I rowsort
SELECT DISTINCT + 17 * + 48
----
816

onlyif mysql # aggregate syntax: 
query I rowsort label-8810
SELECT DISTINCT 2 + + + 22 + - - COUNT( * )
----
25

skipif mysql # not compatible
query I rowsort label-8810
SELECT DISTINCT 2 + + + 22 + - - COUNT ( * )
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-8811
SELECT ALL + 95 + - + COUNT( * )
----
94

skipif mysql # not compatible
query I rowsort label-8811
SELECT ALL + 95 + - + COUNT ( * )
----
94

query I rowsort
SELECT DISTINCT - 25 * + - 80 AS col1
----
2000

onlyif mysql # aggregate syntax: 
query I rowsort label-8813
SELECT CASE ( - 12 ) WHEN 10 / 94 * - ( + - 5 ) THEN + - 89 END * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8813
SELECT CASE ( - 12 ) WHEN 10 / 94 * - ( + - 5 ) THEN + - 89 END * COUNT ( * )
----
NULL

query II rowsort
SELECT ALL - 36, 49 AS col2
----
-36
49

onlyif mysql # aggregate syntax: 
query III rowsort label-8815
SELECT DISTINCT COUNT( * ) * CASE 42 WHEN - - COUNT( ALL - + 80 ) THEN 33 WHEN + - 71 THEN 40 ELSE NULL END AS col2, - 91 + + - 28 * + 13 col1, + - 24
----
NULL
-455
-24

skipif mysql # not compatible
query III rowsort label-8815
SELECT DISTINCT COUNT ( * ) * CASE 42 WHEN - - COUNT ( ALL - + 80 ) THEN 33 WHEN + - 71 THEN 40 ELSE NULL END AS col2, - 91 + + - 28 * + 13 col1, + - 24
----
NULL
-455
-24

query I rowsort
SELECT 29 * 39
----
1131

onlyif mysql # aggregate syntax: 
query I rowsort label-8817
SELECT NULLIF ( 7, - - COUNT( * ) ) * 77 * COUNT( - 32 ) col2
----
539

skipif mysql # not compatible
query I rowsort label-8817
SELECT NULLIF ( 7, - - COUNT ( * ) ) * 77 * COUNT ( - 32 ) col2
----
539

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8818
SELECT CAST( NULL AS SIGNED ) / 12 / + 9 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8818
SELECT CAST ( NULL AS INTEGER ) / 12 / + 9 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8819
SELECT 55 * + COUNT( * ) AS col2
----
55

skipif mysql # not compatible
query I rowsort label-8819
SELECT 55 * + COUNT ( * ) AS col2
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-8820
SELECT DISTINCT 62 + COUNT( * ) AS col0
----
63

skipif mysql # not compatible
query I rowsort label-8820
SELECT DISTINCT 62 + COUNT ( * ) AS col0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-8821
SELECT ALL COALESCE ( 58, COUNT( * ) ) * COUNT( * ) AS col2
----
58

skipif mysql # not compatible
query I rowsort label-8821
SELECT ALL COALESCE ( 58, COUNT ( * ) ) * COUNT ( * ) AS col2
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8822
SELECT ALL - 5 + + 59 - + 92 DIV + - 81 - - + 56 * + + 12 + - + ( + COUNT( * ) ) - + 80 col1
----
646

skipif mysql # not compatible
query I rowsort label-8822
SELECT ALL - 5 + + 59 - + 92 / + - 81 - - + 56 * + + 12 + - + ( + COUNT ( * ) ) - + 80 col1
----
646

query I rowsort
SELECT DISTINCT + 51 + 17 AS col1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8824
SELECT ALL + + 65 + - NULLIF ( + 98, + MIN( + 53 ) ) AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-8824
SELECT ALL + + 65 + - NULLIF ( + 98, + MIN ( + 53 ) ) AS col0
----
-33

query I rowsort
SELECT DISTINCT ( + + 86 ) AS col0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-8826
SELECT - MIN( 77 ) AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-8826
SELECT - MIN ( 77 ) AS col1
----
-77

query I rowsort
SELECT ALL - 31 + + - ( - 81 ) * - 27 AS col2
----
-2218

onlyif mysql # aggregate syntax: 
query II rowsort label-8828
SELECT - 75 + 57 + 6 * + MAX( DISTINCT - 80 ) + + 88 - - COUNT( * ) * - - 52 AS col2, 10 - - 13 - - 11
----
-358
34

skipif mysql # not compatible
query II rowsort label-8828
SELECT - 75 + 57 + 6 * + MAX ( DISTINCT - 80 ) + + 88 - - COUNT ( * ) * - - 52 AS col2, 10 - - 13 - - 11
----
-358
34

query I rowsort
SELECT 85 - - + 64
----
149

onlyif mysql # aggregate syntax: 
query II rowsort label-8830
SELECT 88 + + CASE - 82 WHEN - + 34 THEN - ( 41 ) * COUNT( ALL 50 ) ELSE - + 52 + 61 END * + 61 AS col0, - 64
----
637
-64

skipif mysql # not compatible
query II rowsort label-8830
SELECT 88 + + CASE - 82 WHEN - + 34 THEN - ( 41 ) * COUNT ( ALL 50 ) ELSE - + 52 + 61 END * + 61 AS col0, - 64
----
637
-64

query I rowsort
SELECT - 58 * 13
----
-754

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8832
SELECT ALL - + 73 + CAST( NULL AS SIGNED ) * + COUNT( * ) + - + 8 + - + ( + - 29 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8832
SELECT ALL - + 73 + CAST ( NULL AS INTEGER ) * + COUNT ( * ) + - + 8 + - + ( + - 29 ) AS col0
----
NULL

query I rowsort
SELECT CASE + - 8 WHEN 28 / - 30 THEN - 40 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8834
SELECT 77 * + + COUNT( * ) AS col2
----
77

skipif mysql # not compatible
query I rowsort label-8834
SELECT 77 * + + COUNT ( * ) AS col2
----
77

query I rowsort
SELECT DISTINCT - - 23 * + 42
----
966

query I rowsort
SELECT ALL + + 60 * + 70 AS col0
----
4200

query I rowsort
SELECT ALL + 15 * + 88 col0
----
1320

query I rowsort
SELECT ALL + - 68 * + 99 * + 53 * - + 31
----
11060676

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8839
SELECT ALL + - CAST( NULL AS SIGNED ) * COALESCE ( - COUNT( * ), - MIN( - 57 ) ) - + 64 + + 84 / + 80 + - 49 / + - 96
----
NULL

skipif mysql # not compatible
query I rowsort label-8839
SELECT ALL + - CAST ( NULL AS INTEGER ) * COALESCE ( - COUNT ( * ), - MIN ( - 57 ) ) - + 64 + + 84 / + 80 + - 49 / + - 96
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8840
SELECT - 4 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8840
SELECT - 4 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8841
SELECT + + 14 DIV + 1 - 96 + + + 61 + + + 64 AS col1
----
43

skipif mysql # not compatible
query I rowsort label-8841
SELECT + + 14 / + 1 - 96 + + + 61 + + + 64 AS col1
----
43

onlyif mysql # aggregate syntax: 
query II rowsort label-8842
SELECT + COALESCE ( - COUNT( DISTINCT + 25 ), + 97 * - + 25 - COUNT( * ) ) AS col1, 42 AS col2
----
-1
42

skipif mysql # not compatible
query II rowsort label-8842
SELECT + COALESCE ( - COUNT ( DISTINCT + 25 ), + 97 * - + 25 - COUNT ( * ) ) AS col1, 42 AS col2
----
-1
42

query II rowsort
SELECT + + 11 AS col1, + 19 * - 15
----
11
-285

query II rowsort
SELECT DISTINCT + 54 AS col2, ( - + 37 )
----
54
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-8845
SELECT ALL + - SUM( - + 89 )
----
89

skipif mysql # not compatible
query I rowsort label-8845
SELECT ALL + - SUM ( - + 89 )
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8846
SELECT + CAST( - - 77 AS SIGNED )
----
77

skipif mysql # not compatible
query I rowsort label-8846
SELECT + CAST ( - - 77 AS INTEGER )
----
77

query I rowsort
SELECT + 99 + + 96 col0
----
195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8848
SELECT - CAST( NULL AS SIGNED ) * + 97
----
NULL

skipif mysql # not compatible
query I rowsort label-8848
SELECT - CAST ( NULL AS INTEGER ) * + 97
----
NULL

query II rowsort
SELECT + 17 * - 6, 70 AS col0
----
-102
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8850
SELECT ALL COALESCE ( + COUNT( * ), - + 5 DIV + CAST( NULL AS SIGNED ) * 87 ) * - COALESCE ( 44, - 0 ) + COUNT( * )
----
-43

skipif mysql # not compatible
query I rowsort label-8850
SELECT ALL COALESCE ( + COUNT ( * ), - + 5 / + CAST ( NULL AS INTEGER ) * 87 ) * - COALESCE ( 44, - 0 ) + COUNT ( * )
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-8851
SELECT DISTINCT 58 * + COUNT( * ) * 5 col0
----
290

skipif mysql # not compatible
query I rowsort label-8851
SELECT DISTINCT 58 * + COUNT ( * ) * 5 col0
----
290

query I rowsort
SELECT + 63 + - - 94 * - 59 - + - 70 + - - 1 AS col2
----
-5412

onlyif mysql # DIV for integer division: 
query I rowsort label-8853
SELECT ALL - 8 DIV - 9
----
0

skipif mysql # not compatible
query I rowsort label-8853
SELECT ALL - 8 / - 9
----
0

query I rowsort
SELECT DISTINCT + NULLIF ( + - 67, + - COALESCE ( - 47, 5 ) )
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-8855
SELECT ALL - MAX( ALL + 62 ) * - 94
----
5828

skipif mysql # not compatible
query I rowsort label-8855
SELECT ALL - MAX ( ALL + 62 ) * - 94
----
5828

onlyif mysql # aggregate syntax: 
query I rowsort label-8856
SELECT MIN( - + 31 )
----
-31

skipif mysql # not compatible
query I rowsort label-8856
SELECT MIN ( - + 31 )
----
-31

query I rowsort
SELECT ALL + ( + CASE - 71 WHEN - + 74 THEN NULL WHEN - + 94 THEN - 5 END ) AS col1
----
NULL

query I rowsort
SELECT + 48 * - 58 + + + COALESCE ( - 7, - - 56 ) + 12 * - + 26 AS col2
----
-3103

onlyif mysql # aggregate syntax: 
query I rowsort label-8859
SELECT + 75 - - 29 * + - CASE 61 WHEN + + 2 - - 23 * COUNT( * ) THEN COUNT( * ) + - ( + 96 ) * + COUNT( * ) * 7 + + 32 END * - MIN( 52 ) + 28 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8859
SELECT + 75 - - 29 * + - CASE 61 WHEN + + 2 - - 23 * COUNT ( * ) THEN COUNT ( * ) + - ( + 96 ) * + COUNT ( * ) * 7 + + 32 END * - MIN ( 52 ) + 28 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8860
SELECT DISTINCT MAX( ALL - 82 ) * - + SUM( ALL 26 ) AS col1
----
2132

skipif mysql # not compatible
query I rowsort label-8860
SELECT DISTINCT MAX ( ALL - 82 ) * - + SUM ( ALL 26 ) AS col1
----
2132

query I rowsort
SELECT + 51 * - 58
----
-2958

query I rowsort
SELECT + CASE - + 61 WHEN 30 + + 84 THEN NULL ELSE 28 END AS col1
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8863
SELECT + 39 + + + CAST( + - 39 AS SIGNED ) * - 65 * - 73 + + NULLIF ( - CASE + 72 WHEN ( + 9 ) + - SUM( DISTINCT + 0 ) * + COUNT( * ) + + + 61 * - + 87 THEN NULL ELSE - + 18 END, COUNT( * ) ) + + 47 AS col0
----
-184951

skipif mysql # not compatible
query I rowsort label-8863
SELECT + 39 + + + CAST ( + - 39 AS INTEGER ) * - 65 * - 73 + + NULLIF ( - CASE + 72 WHEN ( + 9 ) + - SUM ( DISTINCT + 0 ) * + COUNT ( * ) + + + 61 * - + 87 THEN NULL ELSE - + 18 END, COUNT ( * ) ) + + 47 AS col0
----
-184951

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8864
SELECT + 3 / + AVG ( + CAST( NULL AS DECIMAL ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8864
SELECT + 3 / + AVG ( + CAST ( NULL AS REAL ) ) col2
----
NULL

query II rowsort
SELECT ALL 9 + 91 * ( - COALESCE ( 65, - 16, + 5 * - 83 ) ) + + 73 AS col0, 99 AS col0
----
-5833
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8866
SELECT + 15 + 52 - - + NULLIF ( 44, + COUNT( * ) ) * 98 DIV - MAX( ALL - 8 ) AS col0
----
606

skipif mysql # not compatible
query I rowsort label-8866
SELECT + 15 + 52 - - + NULLIF ( 44, + COUNT ( * ) ) * 98 / - MAX ( ALL - 8 ) AS col0
----
606

query I rowsort
SELECT ALL - 64 + - 89 + 88 AS col2
----
-65

query II rowsort
SELECT ALL 3 + - - 48 AS col1, + 39
----
51
39

query I rowsort
SELECT + 67 + - 22
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8870
SELECT + 59 * - - 4 / - 64 + 28 * - MIN( + 1 ) - + CAST( NULL AS SIGNED ) + - 1 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8870
SELECT + 59 * - - 4 / - 64 + 28 * - MIN ( + 1 ) - + CAST ( NULL AS INTEGER ) + - 1 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8871
SELECT + + 49 + - - COALESCE ( + 35, + 1 ) AS col0, - 11 * COUNT( * )
----
84
-11

skipif mysql # not compatible
query II rowsort label-8871
SELECT + + 49 + - - COALESCE ( + 35, + 1 ) AS col0, - 11 * COUNT ( * )
----
84
-11

query II rowsort
SELECT ALL - 69 + + - 24 AS col1, 36
----
-93
36

query I rowsort
SELECT - ( + ( + + 93 ) )
----
-93

onlyif mysql # DIV for integer division: 
query II rowsort label-8874
SELECT ALL 78 - - + 39, - 71 DIV - 90 AS col0
----
117
0

skipif mysql # not compatible
query II rowsort label-8874
SELECT ALL 78 - - + 39, - 71 / - 90 AS col0
----
117
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8875
SELECT DISTINCT + SUM( DISTINCT + 72 ) * + 80 * + - 37
----
-213120

skipif mysql # not compatible
query I rowsort label-8875
SELECT DISTINCT + SUM ( DISTINCT + 72 ) * + 80 * + - 37
----
-213120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8876
SELECT DISTINCT + 25 - - CAST( 22 AS SIGNED ) AS col2
----
47

skipif mysql # not compatible
query I rowsort label-8876
SELECT DISTINCT + 25 - - CAST ( 22 AS INTEGER ) AS col2
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8877
SELECT + + MIN( 68 ) * - 65
----
-4420

skipif mysql # not compatible
query I rowsort label-8877
SELECT + + MIN ( 68 ) * - 65
----
-4420

query I rowsort
SELECT ALL + 92 - - + 30 + + + 70 * 13 col0
----
1032

query I rowsort
SELECT ALL + 43 * + + 53
----
2279

onlyif mysql # aggregate syntax: 
query I rowsort label-8880
SELECT DISTINCT - 85 * - COUNT( * )
----
85

skipif mysql # not compatible
query I rowsort label-8880
SELECT DISTINCT - 85 * - COUNT ( * )
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8881
SELECT DISTINCT + CAST( - COUNT( * ) AS SIGNED ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8881
SELECT DISTINCT + CAST ( - COUNT ( * ) AS INTEGER ) AS col2
----
-1

query I rowsort
SELECT ALL - 13 * + 84 AS col0
----
-1092

onlyif mysql # aggregate syntax: 
query I rowsort label-8883
SELECT - 69 * + - COUNT( * ) AS col2
----
69

skipif mysql # not compatible
query I rowsort label-8883
SELECT - 69 * + - COUNT ( * ) AS col2
----
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8884
SELECT 32 DIV + - 61 + COUNT( * ) + - 47 * COALESCE ( - 61, + 44 )
----
2868

skipif mysql # not compatible
query I rowsort label-8884
SELECT 32 / + - 61 + COUNT ( * ) + - 47 * COALESCE ( - 61, + 44 )
----
2868

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8885
SELECT - 51 + + 71 + - 52 + + + COUNT( * ) + + 39 + + + MAX( DISTINCT - + 51 ) DIV - 95 * 66 * + + 56 * - COUNT( * )
----
8

skipif mysql # not compatible
query I rowsort label-8885
SELECT - 51 + + 71 + - 52 + + + COUNT ( * ) + + 39 + + + MAX ( DISTINCT - + 51 ) / - 95 * 66 * + + 56 * - COUNT ( * )
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-8886
SELECT + NULLIF ( 36, + COUNT( * ) )
----
36

skipif mysql # not compatible
query I rowsort label-8886
SELECT + NULLIF ( 36, + COUNT ( * ) )
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8887
SELECT ALL - 95 * + + 81 * - COUNT( * ) * - + ( 31 ) * + - COUNT( DISTINCT - + 44 ) + - + CAST( - CAST( + + 17 AS SIGNED ) AS SIGNED ) - - SUM( ALL + 61 ) AS col2
----
238623

skipif mysql # not compatible
query I rowsort label-8887
SELECT ALL - 95 * + + 81 * - COUNT ( * ) * - + ( 31 ) * + - COUNT ( DISTINCT - + 44 ) + - + CAST ( - CAST ( + + 17 AS INTEGER ) AS INTEGER ) - - SUM ( ALL + 61 ) AS col2
----
238623

onlyif mysql # aggregate syntax: 
query I rowsort label-8888
SELECT ( - CASE 82 WHEN - 90 THEN + SUM( DISTINCT - 67 ) + 32 WHEN + 85 * - + 81 THEN - - MIN( ALL - - 55 ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-8888
SELECT ( - CASE 82 WHEN - 90 THEN + SUM ( DISTINCT - 67 ) + 32 WHEN + 85 * - + 81 THEN - - MIN ( ALL - - 55 ) END )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8889
SELECT DISTINCT + CASE + 62 WHEN + 18 THEN - COUNT( DISTINCT 40 ) * 57 ELSE NULL END * - 25 + SUM( ALL - 99 ) * - 38 - - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8889
SELECT DISTINCT + CASE + 62 WHEN + 18 THEN - COUNT ( DISTINCT 40 ) * 57 ELSE NULL END * - 25 + SUM ( ALL - 99 ) * - 38 - - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT - 74 + + 2 + - ( 96 )
----
-168

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8891
SELECT DISTINCT - 1 * - 60 + + CAST( - - 66 AS SIGNED )
----
126

skipif mysql # not compatible
query I rowsort label-8891
SELECT DISTINCT - 1 * - 60 + + CAST ( - - 66 AS INTEGER )
----
126

query I rowsort
SELECT ALL 62 * 96 + - 43
----
5909

onlyif mysql # DIV for integer division: 
query I rowsort label-8893
SELECT - 55 DIV - 78 * - 36 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8893
SELECT - 55 / - 78 * - 36 AS col1
----
0

query I rowsort
SELECT + 61 * + - 96 AS col0
----
-5856

query I rowsort
SELECT ALL - ( + + 48 ) * 15 AS col0
----
-720

onlyif mysql # aggregate syntax: 
query I rowsort label-8896
SELECT - MAX( ALL 4 ) AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-8896
SELECT - MAX ( ALL 4 ) AS col2
----
-4

query I rowsort
SELECT - ( - + 39 )
----
39

query I rowsort
SELECT - 79 - - 70
----
-9

query I rowsort
SELECT + 93 - + 52
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-8900
SELECT DISTINCT CASE SUM( ALL - 34 ) WHEN COUNT( * ) THEN - - 68 / + 54 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8900
SELECT DISTINCT CASE SUM ( ALL - 34 ) WHEN COUNT ( * ) THEN - - 68 / + 54 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8901
SELECT DISTINCT CAST( NULL AS DECIMAL ), + 37 * + MAX( ALL - + 21 ) * 92 AS col2
----
NULL
-71484

skipif mysql # not compatible
query II rowsort label-8901
SELECT DISTINCT CAST ( NULL AS REAL ), + 37 * + MAX ( ALL - + 21 ) * 92 AS col2
----
NULL
-71484

onlyif mysql # aggregate syntax: 
query II rowsort label-8902
SELECT ( + - COUNT( * ) ) + + CASE WHEN NOT NULL IS NOT NULL THEN 22 END - + ( + 16 ) + + 51 + 56 * + + 33, + 41 AS col0
----
1904
41

skipif mysql # not compatible
query II rowsort label-8902
SELECT ( + - COUNT ( * ) ) + + CASE WHEN NOT NULL IS NOT NULL THEN 22 END - + ( + 16 ) + + 51 + 56 * + + 33, + 41 AS col0
----
1904
41

query I rowsort
SELECT 94 * - 83
----
-7802

onlyif mysql # aggregate syntax: 
query I rowsort label-8904
SELECT DISTINCT COUNT( * ) * + 45
----
45

skipif mysql # not compatible
query I rowsort label-8904
SELECT DISTINCT COUNT ( * ) * + 45
----
45

query I rowsort
SELECT 96 + 91 AS col0
----
187

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8906
SELECT ALL CAST( + 40 AS SIGNED ) * + + 42 * - 56 * + + 53 + 8 AS col2
----
-4986232

skipif mysql # not compatible
query I rowsort label-8906
SELECT ALL CAST ( + 40 AS INTEGER ) * + + 42 * - 56 * + + 53 + 8 AS col2
----
-4986232

onlyif mysql # aggregate syntax: 
query I rowsort label-8907
SELECT 73 * COUNT( * ) AS col0
----
73

skipif mysql # not compatible
query I rowsort label-8907
SELECT 73 * COUNT ( * ) AS col0
----
73

query II rowsort
SELECT DISTINCT - 44 * - 16 * - 69 * 58 + - + 78 AS col1, 56 * - 9 + - + 22 - - 33 col0
----
-2817486
-493

query III rowsort
SELECT ALL 90 AS col1, 87 AS col1, + + ( - - 58 )
----
90
87
58

query II rowsort
SELECT 95 AS col2, 77
----
95
77

query I rowsort
SELECT ALL 46 + + 23 * - 99 * 58
----
-132020

onlyif mysql # aggregate syntax: 
query I rowsort label-8912
SELECT SUM( + 53 ) * - 12
----
-636

skipif mysql # not compatible
query I rowsort label-8912
SELECT SUM ( + 53 ) * - 12
----
-636

query II rowsort
SELECT 76 AS col2, 65
----
76
65

onlyif mysql # DIV for integer division: 
query I rowsort label-8914
SELECT 45 DIV + - 15 + + 13 AS col1
----
10

skipif mysql # not compatible
query I rowsort label-8914
SELECT 45 / + - 15 + + 13 AS col1
----
10

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8915
SELECT 45 / CAST( NULL AS DECIMAL ) * + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8915
SELECT 45 / CAST ( NULL AS REAL ) * + + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL + 37 + + 44 AS col2
----
81

query I rowsort
SELECT 37 * - + 23 + - 17 * + 20
----
-1191

onlyif mysql # DIV for integer division: 
query I rowsort label-8918
SELECT 35 DIV + + 75 * - + 29
----
0

skipif mysql # not compatible
query I rowsort label-8918
SELECT 35 / + + 75 * - + 29
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8919
SELECT ALL CASE 91 WHEN - 97 / + - 31 + + 16 + + 79 + - - 35 * + 73 THEN NULL ELSE - 0 + - - 88 + - 91 * MIN( DISTINCT + 11 ) END + - 0
----
-913

skipif mysql # not compatible
query I rowsort label-8919
SELECT ALL CASE 91 WHEN - 97 / + - 31 + + 16 + + 79 + - - 35 * + 73 THEN NULL ELSE - 0 + - - 88 + - 91 * MIN ( DISTINCT + 11 ) END + - 0
----
-913

onlyif mysql # DIV for integer division: 
query II rowsort label-8920
SELECT 19, + 28 DIV + 54 AS col2
----
19
0

skipif mysql # not compatible
query II rowsort label-8920
SELECT 19, + 28 / + 54 AS col2
----
19
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8921
SELECT - COUNT( * ) * - 81 + 47 - - - 33 - - - ( + - 55 )
----
150

skipif mysql # not compatible
query I rowsort label-8921
SELECT - COUNT ( * ) * - 81 + 47 - - - 33 - - - ( + - 55 )
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-8922
SELECT 60 - ( - + 39 ) - COUNT( + 62 )
----
98

skipif mysql # not compatible
query I rowsort label-8922
SELECT 60 - ( - + 39 ) - COUNT ( + 62 )
----
98

onlyif mysql # DIV for integer division: 
query II rowsort label-8923
SELECT ALL - 99, 37 DIV - - 30 AS col1
----
-99
1

skipif mysql # not compatible
query II rowsort label-8923
SELECT ALL - 99, 37 / - - 30 AS col1
----
-99
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8924
SELECT 74 * + 72 + - + 88 + + 73 + CASE 25 WHEN + + 39 / - 5 * - 99 * - 14 THEN + MIN( ( + 34 ) ) / - CAST( NULL AS SIGNED ) * - 25 WHEN - COUNT( * ) * + CAST( NULL AS SIGNED ) * 30 + 28 * - COUNT( * ) + - 45 - 77 * + + 62 + - 5 * - 51 THEN NULL ELSE + + COUNT( * ) * 26 + CASE COUNT( * ) WHEN SUM( DISTINCT - 62 ) * 51 THEN 85 * - 47 END END
----
NULL

skipif mysql # not compatible
query I rowsort label-8924
SELECT 74 * + 72 + - + 88 + + 73 + CASE 25 WHEN + + 39 / - 5 * - 99 * - 14 THEN + MIN ( ( + 34 ) ) / - CAST ( NULL AS INTEGER ) * - 25 WHEN - COUNT ( * ) * + CAST ( NULL AS INTEGER ) * 30 + 28 * - COUNT ( * ) + - 45 - 77 * + + 62 + - 5 * - 51 THEN NULL ELSE + + COUNT ( * ) * 26 + CASE COUNT ( * ) WHEN SUM ( DISTINCT - 62 ) * 51 THEN 85 * - 47 END END
----
NULL

query II rowsort
SELECT DISTINCT - ( - - NULLIF ( 5, 3 * - 59 * + 80 ) ) col1, - 87 * 50 AS col1
----
-5
-4350

onlyif mysql # aggregate syntax: 
query II rowsort label-8926
SELECT ALL - - 94 AS col0, + COUNT( * )
----
94
1

skipif mysql # not compatible
query II rowsort label-8926
SELECT ALL - - 94 AS col0, + COUNT ( * )
----
94
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8927
SELECT 70 + + + 5, + COUNT( * ) * + SUM( ALL + 61 ) - - 10 + + 10 AS col1
----
75
81

skipif mysql # not compatible
query II rowsort label-8927
SELECT 70 + + + 5, + COUNT ( * ) * + SUM ( ALL + 61 ) - - 10 + + 10 AS col1
----
75
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8928
SELECT - COUNT( ALL + + 82 ) * - COUNT( * ) DIV + 73
----
0

skipif mysql # not compatible
query I rowsort label-8928
SELECT - COUNT ( ALL + + 82 ) * - COUNT ( * ) / + 73
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8929
SELECT + 77 + 50 * - 96 * - + MAX( 97 ) AS col0
----
465677

skipif mysql # not compatible
query I rowsort label-8929
SELECT + 77 + 50 * - 96 * - + MAX ( 97 ) AS col0
----
465677

query I rowsort
SELECT ALL + 28 * 65
----
1820

query I rowsort
SELECT ALL + + 87 * + - 20
----
-1740

query I rowsort
SELECT ALL + ( - + 79 ) * + 68 + - 47 AS col1
----
-5419

query II rowsort
SELECT ALL - 29 AS col2, + 36 AS col2
----
-29
36

onlyif mysql # aggregate syntax: 
query I rowsort label-8934
SELECT - - SUM( + ( NULLIF ( - 81, 0 ) ) ) AS col2
----
-81

skipif mysql # not compatible
query I rowsort label-8934
SELECT - - SUM ( + ( NULLIF ( - 81, 0 ) ) ) AS col2
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8935
SELECT 88 * + - CAST( - 57 AS SIGNED ) * + 15 + COALESCE ( - 6, 30 / + - NULLIF ( + 78, - NULLIF ( 0, - CASE + + COALESCE ( - 18, + - 63 ) WHEN - + 45 THEN - 83 + + 1 ELSE + CASE 68 WHEN + CAST( NULL AS DECIMAL ) * - 14 THEN + - ( + 82 ) - - 59 WHEN 78 THEN NULL ELSE NULL END * + COUNT( * ) * + + 41 END ) ) - CAST( NULL AS SIGNED ) - 10 ) + - CASE 31 WHEN 36 THEN 25 WHEN - 78 THEN NULL END - - 18 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8935
SELECT 88 * + - CAST ( - 57 AS INTEGER ) * + 15 + COALESCE ( - 6, 30 / + - NULLIF ( + 78, - NULLIF ( 0, - CASE + + COALESCE ( - 18, + - 63 ) WHEN - + 45 THEN - 83 + + 1 ELSE + CASE 68 WHEN + CAST ( NULL AS REAL ) * - 14 THEN + - ( + 82 ) - - 59 WHEN 78 THEN NULL ELSE NULL END * + COUNT ( * ) * + + 41 END ) ) - CAST ( NULL AS INTEGER ) - 10 ) + - CASE 31 WHEN 36 THEN 25 WHEN - 78 THEN NULL END - - 18 AS col2
----
NULL

query I rowsort
SELECT 32 + - 19 AS col2
----
13

onlyif mysql # DIV for integer division: 
query I rowsort label-8937
SELECT 19 DIV - 77 * 47
----
0

skipif mysql # not compatible
query I rowsort label-8937
SELECT 19 / - 77 * 47
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8938
SELECT 63 DIV 95
----
0

skipif mysql # not compatible
query I rowsort label-8938
SELECT 63 / 95
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8939
SELECT DISTINCT NULLIF ( - 64, - COUNT( * ) )
----
-64

skipif mysql # not compatible
query I rowsort label-8939
SELECT DISTINCT NULLIF ( - 64, - COUNT ( * ) )
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-8940
SELECT - SUM( DISTINCT 21 ) AS col1
----
-21

skipif mysql # not compatible
query I rowsort label-8940
SELECT - SUM ( DISTINCT 21 ) AS col1
----
-21

query II rowsort
SELECT ALL + 24 AS col0, 10 + - 2 AS col0
----
24
8

onlyif mysql # aggregate syntax: 
query II rowsort label-8942
SELECT 11 * + NULLIF ( 23, + + 18 * + + COUNT( * ) * - 83 ), COUNT( * ) AS col1
----
253
1

skipif mysql # not compatible
query II rowsort label-8942
SELECT 11 * + NULLIF ( 23, + + 18 * + + COUNT ( * ) * - 83 ), COUNT ( * ) AS col1
----
253
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8943
SELECT ( 64 ) DIV + COUNT( DISTINCT 29 )
----
64

skipif mysql # not compatible
query I rowsort label-8943
SELECT ( 64 ) / + COUNT ( DISTINCT 29 )
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8944
SELECT DISTINCT + + ( - AVG ( + ( - ( + + CAST( NULL AS SIGNED ) ) ) ) ) + + 30 * + 74
----
NULL

skipif mysql # not compatible
query I rowsort label-8944
SELECT DISTINCT + + ( - AVG ( + ( - ( + + CAST ( NULL AS INTEGER ) ) ) ) ) + + 30 * + 74
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8945
SELECT MAX( - + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8945
SELECT MAX ( - + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT 94 * + 39
----
3666

onlyif mysql # aggregate syntax: 
query I rowsort label-8947
SELECT DISTINCT ( - COUNT( * ) ) + - - 82 + + 77 * - 80 * COUNT( * ) AS col2
----
-6079

skipif mysql # not compatible
query I rowsort label-8947
SELECT DISTINCT ( - COUNT ( * ) ) + - - 82 + + 77 * - 80 * COUNT ( * ) AS col2
----
-6079

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8948
SELECT DISTINCT SUM( DISTINCT + + NULLIF ( - 41, + 33 * - - 80 / + - CAST( 94 AS SIGNED ) ) ) + + 60 - 88 * CASE + MAX( DISTINCT - + 89 ) WHEN - + 4 THEN + 33 END * + CASE 86 WHEN - COUNT( * ) THEN NULL WHEN + - 94 / - + 48 - - + NULLIF ( + - 22, + 23 + + 64 ) + 12 - - - 43 - - COALESCE ( - ( - COUNT( * ) ), - COALESCE ( + 84, - 90 ) * + COUNT( * ) ) * - 15 * 56 * + 84 / - 17 THEN - 95 + + 80 ELSE + 40 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8948
SELECT DISTINCT SUM ( DISTINCT + + NULLIF ( - 41, + 33 * - - 80 / + - CAST ( 94 AS INTEGER ) ) ) + + 60 - 88 * CASE + MAX ( DISTINCT - + 89 ) WHEN - + 4 THEN + 33 END * + CASE 86 WHEN - COUNT ( * ) THEN NULL WHEN + - 94 / - + 48 - - + NULLIF ( + - 22, + 23 + + 64 ) + 12 - - - 43 - - COALESCE ( - ( - COUNT ( * ) ), - COALESCE ( + 84, - 90 ) * + COUNT ( * ) ) * - 15 * 56 * + 84 / - 17 THEN - 95 + + 80 ELSE + 40 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8949
SELECT ALL COUNT( * ) * + - 21 / - + CASE + 39 WHEN 36 THEN CASE - 13 WHEN + 60 - + 44 THEN NULL WHEN + 44 + - MIN( ALL + ( - 8 ) ) THEN + - 54 * MAX( DISTINCT 31 ) ELSE NULL END / - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8949
SELECT ALL COUNT ( * ) * + - 21 / - + CASE + 39 WHEN 36 THEN CASE - 13 WHEN + 60 - + 44 THEN NULL WHEN + 44 + - MIN ( ALL + ( - 8 ) ) THEN + - 54 * MAX ( DISTINCT 31 ) ELSE NULL END / - COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8950
SELECT COUNT( * ) + + 31
----
32

skipif mysql # not compatible
query I rowsort label-8950
SELECT COUNT ( * ) + + 31
----
32

onlyif mysql # aggregate syntax: 
query II rowsort label-8951
SELECT ALL + 30 * - + 83 * - 98 * + 88 + - - 65 + - 59 - 34 + COUNT( * ) * - ( 27 ), - 45 + - 93 AS col2
----
21473705
-138

skipif mysql # not compatible
query II rowsort label-8951
SELECT ALL + 30 * - + 83 * - 98 * + 88 + - - 65 + - 59 - 34 + COUNT ( * ) * - ( 27 ), - 45 + - 93 AS col2
----
21473705
-138

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8952
SELECT ALL + COUNT( * ) * - 70 + + - 12 + - 26 - + COALESCE ( NULLIF ( CAST( NULL AS SIGNED ), 34 * 77 + + 97 + - 25 ), + 3 * - 63 * NULLIF ( + 24, - 37 - - 30 ) + + 31 * - + 51 )
----
6009

skipif mysql # not compatible
query I rowsort label-8952
SELECT ALL + COUNT ( * ) * - 70 + + - 12 + - 26 - + COALESCE ( NULLIF ( CAST ( NULL AS INTEGER ), 34 * 77 + + 97 + - 25 ), + 3 * - 63 * NULLIF ( + 24, - 37 - - 30 ) + + 31 * - + 51 )
----
6009

onlyif mysql # aggregate syntax: 
query I rowsort label-8953
SELECT + MIN( DISTINCT NULLIF ( + + 2, + 76 ) ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-8953
SELECT + MIN ( DISTINCT NULLIF ( + + 2, + 76 ) ) AS col1
----
2

query I rowsort
SELECT ALL 23 * + + 14 + - CASE 53 WHEN + 8 THEN + + 34 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8955
SELECT MAX( ALL - + 15 ) col0, 39 + 80
----
-15
119

skipif mysql # not compatible
query II rowsort label-8955
SELECT MAX ( ALL - + 15 ) col0, 39 + 80
----
-15
119

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8956
SELECT MAX( - CAST( + 14 AS SIGNED ) ) AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-8956
SELECT MAX ( - CAST ( + 14 AS INTEGER ) ) AS col0
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8957
SELECT ALL CAST( NULL AS SIGNED ) / - - 2 AS col0, 17 AS col0
----
NULL
17

skipif mysql # not compatible
query II rowsort label-8957
SELECT ALL CAST ( NULL AS INTEGER ) / - - 2 AS col0, 17 AS col0
----
NULL
17

onlyif mysql # aggregate syntax: 
query II rowsort label-8958
SELECT + MAX( - 29 ) AS col2, - 34 + + + 79 + + + 95 AS col2
----
-29
140

skipif mysql # not compatible
query II rowsort label-8958
SELECT + MAX ( - 29 ) AS col2, - 34 + + + 79 + + + 95 AS col2
----
-29
140

query II rowsort
SELECT 70 + 54 AS col1, 75 + + + 75 * - - 37
----
124
2850

query I rowsort
SELECT ALL 60 * - 38 - - - 31 * + - 79 - 33
----
136

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8961
SELECT CAST( - 39 AS SIGNED ) DIV - + 63 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8961
SELECT CAST ( - 39 AS INTEGER ) / - + 63 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8962
SELECT ALL CAST( AVG ( + 25 ) AS SIGNED ) DIV 86 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8962
SELECT ALL CAST ( AVG ( + 25 ) AS INTEGER ) / 86 AS col0
----
0

query I rowsort
SELECT DISTINCT + 90 * 86 col0
----
7740

query I rowsort
SELECT ALL - + 51 * 34 * + + ( - - 20 ) AS col2
----
-34680

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8965
SELECT + CAST( - 91 AS SIGNED ) AS col0, 13
----
-91
13

skipif mysql # not compatible
query II rowsort label-8965
SELECT + CAST ( - 91 AS INTEGER ) AS col0, 13
----
-91
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8966
SELECT + 41 + 18 * + CAST( NULL AS SIGNED ) - + COUNT( * ) - - 33 + 71 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8966
SELECT + 41 + 18 * + CAST ( NULL AS INTEGER ) - + COUNT ( * ) - - 33 + 71 AS col1
----
NULL

query I rowsort
SELECT DISTINCT + COALESCE ( - - 59, - - 22 )
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8968
SELECT - 69 * - CASE - COUNT( * ) WHEN 93 - 31 THEN NULL WHEN - - ( + COUNT( 52 ) ) * + 42 + - 32 THEN + MAX( + 91 ) * - + CAST( - CAST( - 85 AS SIGNED ) AS DECIMAL ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8968
SELECT - 69 * - CASE - COUNT ( * ) WHEN 93 - 31 THEN NULL WHEN - - ( + COUNT ( 52 ) ) * + 42 + - 32 THEN + MAX ( + 91 ) * - + CAST ( - CAST ( - 85 AS INTEGER ) AS REAL ) END
----
NULL

query I rowsort
SELECT - - 10 * + + 91 AS col0
----
910

onlyif mysql # aggregate syntax: 
query I rowsort label-8970
SELECT - - 99 - - - COUNT( * ) * - COUNT( 15 )
----
100

skipif mysql # not compatible
query I rowsort label-8970
SELECT - - 99 - - - COUNT ( * ) * - COUNT ( 15 )
----
100

query I rowsort
SELECT DISTINCT + - NULLIF ( - 19, 69 ) + + 7
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-8972
SELECT - CASE - 48 WHEN 21 THEN + SUM( + 46 ) * + - 95 + + 14 - + COUNT( * ) + + 53 WHEN - 51 - - - 86 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8972
SELECT - CASE - 48 WHEN 21 THEN + SUM ( + 46 ) * + - 95 + + 14 - + COUNT ( * ) + + 53 WHEN - 51 - - - 86 THEN NULL END
----
NULL

query I rowsort
SELECT ALL 58 + + 38 * NULLIF ( + 53, - 80 * 65 ) + - - 20 * 57 * ( + 54 ) + - 91
----
63541

onlyif mysql # DIV for integer division: 
query I rowsort label-8974
SELECT - 71 + 41 DIV 75 - + 46 AS col0
----
-117

skipif mysql # not compatible
query I rowsort label-8974
SELECT - 71 + 41 / 75 - + 46 AS col0
----
-117

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8975
SELECT 20 AS col0, CAST( COUNT( * ) AS SIGNED ) + 8
----
20
9

skipif mysql # not compatible
query II rowsort label-8975
SELECT 20 AS col0, CAST ( COUNT ( * ) AS INTEGER ) + 8
----
20
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8976
SELECT - 5 + COUNT( - ( 64 ) ) + 20 AS col1
----
16

skipif mysql # not compatible
query I rowsort label-8976
SELECT - 5 + COUNT ( - ( 64 ) ) + 20 AS col1
----
16

query I rowsort
SELECT + 11 - + 7 + 17 AS col0
----
21

query I rowsort
SELECT ALL - 82 + 74 AS col2
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8979
SELECT + CASE + - 11 WHEN - 4 + - - 64 THEN NULL WHEN + - 52 THEN - - 96 WHEN 97 THEN + 33 * - 16 * - 5 + - + 50 ELSE NULL END / - CAST( NULL AS SIGNED ) + - 83
----
NULL

skipif mysql # not compatible
query I rowsort label-8979
SELECT + CASE + - 11 WHEN - 4 + - - 64 THEN NULL WHEN + - 52 THEN - - 96 WHEN 97 THEN + 33 * - 16 * - 5 + - + 50 ELSE NULL END / - CAST ( NULL AS INTEGER ) + - 83
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8980
SELECT ALL + 46 * - - COALESCE ( + COUNT( * ), + MIN( - 56 ) - - COUNT( 62 ) ) AS col1
----
46

skipif mysql # not compatible
query I rowsort label-8980
SELECT ALL + 46 * - - COALESCE ( + COUNT ( * ), + MIN ( - 56 ) - - COUNT ( 62 ) ) AS col1
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8981
SELECT DISTINCT + MIN( + - 94 ) * + + NULLIF ( - 60, - AVG ( DISTINCT + 71 ) / - 29 * + CAST( 37 AS SIGNED ) * - COUNT( * ) + 0 ) / ( - ( + SUM( ALL + CAST( NULL AS SIGNED ) ) ) ) + - - COUNT( * ) * - COUNT( * ) - + 40 * 71 * + + MIN( - + 71 ) * - + 19 + - 27 + + 81 + + + 18 / - 42 * - CASE - COUNT( * ) WHEN - - AVG ( 13 ) THEN - - 86 * - 46 + + 25 WHEN 68 THEN NULL END * 2 + + 26 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8981
SELECT DISTINCT + MIN ( + - 94 ) * + + NULLIF ( - 60, - AVG ( DISTINCT + 71 ) / - 29 * + CAST ( 37 AS INTEGER ) * - COUNT ( * ) + 0 ) / ( - ( + SUM ( ALL + CAST ( NULL AS INTEGER ) ) ) ) + - - COUNT ( * ) * - COUNT ( * ) - + 40 * 71 * + + MIN ( - + 71 ) * - + 19 + - 27 + + 81 + + + 18 / - 42 * - CASE - COUNT ( * ) WHEN - - AVG ( 13 ) THEN - - 86 * - 46 + + 25 WHEN 68 THEN NULL END * 2 + + 26 AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 37 + + 68
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-8983
SELECT DISTINCT ( - + COUNT( * ) ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-8983
SELECT DISTINCT ( - + COUNT ( * ) ) col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8984
SELECT DISTINCT 4 - + + COALESCE ( 53, - COALESCE ( 36, CAST( NULL AS SIGNED ) + - 6, 28 ) + - 35 - + MAX( - 8 ) ) AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-8984
SELECT DISTINCT 4 - + + COALESCE ( 53, - COALESCE ( 36, CAST ( NULL AS INTEGER ) + - 6, 28 ) + - 35 - + MAX ( - 8 ) ) AS col2
----
-49

query II rowsort
SELECT DISTINCT ( COALESCE ( 29, + - 4 ) ) col1, 82
----
29
82

onlyif mysql # DIV for integer division: 
query I rowsort label-8986
SELECT ALL 19 DIV + 85 - - 86
----
86

skipif mysql # not compatible
query I rowsort label-8986
SELECT ALL 19 / + 85 - - 86
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8987
SELECT ( - NULLIF ( ( - CAST( - - 71 AS SIGNED ) ), + - 57 + COUNT( * ) ) ) col0
----
71

skipif mysql # not compatible
query I rowsort label-8987
SELECT ( - NULLIF ( ( - CAST ( - - 71 AS INTEGER ) ), + - 57 + COUNT ( * ) ) ) col0
----
71

query I rowsort
SELECT + ( + - 88 )
----
-88

query I rowsort
SELECT ALL 3 * 93
----
279

onlyif mysql # aggregate syntax: 
query I rowsort label-8990
SELECT + COUNT( * ) * + 69
----
69

skipif mysql # not compatible
query I rowsort label-8990
SELECT + COUNT ( * ) * + 69
----
69

query I rowsort
SELECT ( - + 93 ) AS col1
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-8992
SELECT + COALESCE ( + MAX( + 96 ), - CASE WHEN NOT + 92 IS NOT NULL THEN 60 * - MAX( 12 ) + 70 + - MAX( + 7 ) * + 68 + + 94 - 49 ELSE NULL END, + 15 )
----
96

skipif mysql # not compatible
query I rowsort label-8992
SELECT + COALESCE ( + MAX ( + 96 ), - CASE WHEN NOT + 92 IS NOT NULL THEN 60 * - MAX ( 12 ) + 70 + - MAX ( + 7 ) * + 68 + + 94 - 49 ELSE NULL END, + 15 )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8993
SELECT ALL + COUNT( DISTINCT + 88 )
----
1

skipif mysql # not compatible
query I rowsort label-8993
SELECT ALL + COUNT ( DISTINCT + 88 )
----
1

query I rowsort
SELECT ( + ( + 99 ) )
----
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8995
SELECT ALL + COUNT( * ) AS col0, COUNT( + NULLIF ( 50, + - 59 ) ) DIV 2 + + + 42 + 97 AS col2
----
1
139

skipif mysql # not compatible
query II rowsort label-8995
SELECT ALL + COUNT ( * ) AS col0, COUNT ( + NULLIF ( 50, + - 59 ) ) / 2 + + + 42 + 97 AS col2
----
1
139

query I rowsort
SELECT + 59 * - NULLIF ( + 45, - 61 + 5 ) * 28 AS col0
----
-74340

onlyif mysql # aggregate syntax: 
query I rowsort label-8997
SELECT DISTINCT + COUNT( * ) * - - MIN( - 76 ) AS col0
----
-76

skipif mysql # not compatible
query I rowsort label-8997
SELECT DISTINCT + COUNT ( * ) * - - MIN ( - 76 ) AS col0
----
-76

query I rowsort
SELECT + - 1 * + ( + 7 ) + + - 94
----
-101

query I rowsort
SELECT + + 89 + 61
----
150

query I rowsort
SELECT - NULLIF ( CASE 61 WHEN - 15 / + 3 * 15 * 75 THEN 19 ELSE NULL END, - 52 )
----
NULL

query I rowsort
SELECT + - 3 + 14
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9002
SELECT + + COUNT( * ) DIV 29 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9002
SELECT + + COUNT ( * ) / 29 AS col1
----
0

query I rowsort
SELECT - + 39 * 47 AS col2
----
-1833

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9004
SELECT + 62 + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9004
SELECT + 62 + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9005
SELECT + 75 + COUNT( * ) AS col1
----
76

skipif mysql # not compatible
query I rowsort label-9005
SELECT + 75 + COUNT ( * ) AS col1
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9006
SELECT ALL NULLIF ( - 27, + - 61 ) * + 76 - + - 12 * CAST( NULL AS SIGNED ) + - 7 + + CASE COUNT( * ) WHEN - COUNT( * ) * + 10 THEN + 0 + + ( 19 ) WHEN - 99 * - CASE - COUNT( * ) WHEN 61 THEN + 32 ELSE NULL END + - - 73 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9006
SELECT ALL NULLIF ( - 27, + - 61 ) * + 76 - + - 12 * CAST ( NULL AS INTEGER ) + - 7 + + CASE COUNT ( * ) WHEN - COUNT ( * ) * + 10 THEN + 0 + + ( 19 ) WHEN - 99 * - CASE - COUNT ( * ) WHEN 61 THEN + 32 ELSE NULL END + - - 73 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9007
SELECT ALL + COUNT( DISTINCT + 1 ) * - 85 + + CAST( + ( + 42 ) AS SIGNED ) * NULLIF ( 79, + - COALESCE ( + 81, - - 56 + - COUNT( * ), + 58 + - COALESCE ( - - 49, - 9 ) * + + 45 ) ) - + + NULLIF ( - MIN( 88 ), COUNT( * ) + + - 54 + - 45 + NULLIF ( 93, ( + 93 ) ) ) - 76 - - 98 - - 94 + COUNT( * ) DIV - 28 AS col2
----
3437

skipif mysql # not compatible
query I rowsort label-9007
SELECT ALL + COUNT ( DISTINCT + 1 ) * - 85 + + CAST ( + ( + 42 ) AS INTEGER ) * NULLIF ( 79, + - COALESCE ( + 81, - - 56 + - COUNT ( * ), + 58 + - COALESCE ( - - 49, - 9 ) * + + 45 ) ) - + + NULLIF ( - MIN ( 88 ), COUNT ( * ) + + - 54 + - 45 + NULLIF ( 93, ( + 93 ) ) ) - 76 - - 98 - - 94 + COUNT ( * ) / - 28 AS col2
----
3437

query I rowsort
SELECT - + 87 + - + 73 AS col0
----
-160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9009
SELECT ALL + 82 * - CAST( + CASE 24 WHEN + COUNT( * ) * - 80 THEN + 39 WHEN + 1 THEN - ( + + 85 ) END AS DECIMAL ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9009
SELECT ALL + 82 * - CAST ( + CASE 24 WHEN + COUNT ( * ) * - 80 THEN + 39 WHEN + 1 THEN - ( + + 85 ) END AS REAL ) + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - - 13 + - - 60
----
73

query I rowsort
SELECT - ( 8 ) AS col0
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9012
SELECT 59 AS col1, + COUNT( * ) + + CAST( NULL AS SIGNED ) AS col2
----
59
NULL

skipif mysql # not compatible
query II rowsort label-9012
SELECT 59 AS col1, + COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col2
----
59
NULL

query II rowsort
SELECT DISTINCT ( 2 ), - 26 AS col1
----
2
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-9014
SELECT - 87 + + COUNT( * ) AS col0
----
-86

skipif mysql # not compatible
query I rowsort label-9014
SELECT - 87 + + COUNT ( * ) AS col0
----
-86

query I rowsort
SELECT DISTINCT ( + - ( + 43 ) )
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-9016
SELECT DISTINCT MIN( DISTINCT + 91 )
----
91

skipif mysql # not compatible
query I rowsort label-9016
SELECT DISTINCT MIN ( DISTINCT + 91 )
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9017
SELECT ALL CAST( - ( 68 ) AS SIGNED )
----
-68

skipif mysql # not compatible
query I rowsort label-9017
SELECT ALL CAST ( - ( 68 ) AS INTEGER )
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-9018
SELECT - 75 * - + COALESCE ( - + 52, - 47 * ( - + 1 ) * - + 81 * + 50 * SUM( + ( 75 ) ) * - COUNT( * ) + 70 )
----
-3900

skipif mysql # not compatible
query I rowsort label-9018
SELECT - 75 * - + COALESCE ( - + 52, - 47 * ( - + 1 ) * - + 81 * + 50 * SUM ( + ( 75 ) ) * - COUNT ( * ) + 70 )
----
-3900

query I rowsort
SELECT ALL ( + 58 ) - ( - 81 ) * + 8 AS col0
----
706

onlyif mysql # aggregate syntax: 
query I rowsort label-9020
SELECT - SUM( 36 ) + + + ( - 5 ) AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-9020
SELECT - SUM ( 36 ) + + + ( - 5 ) AS col1
----
-41

query II rowsort
SELECT DISTINCT - 5 - - + 94 * + 32 + + - 93 AS col2, - 76 AS col2
----
2910
-76

onlyif mysql # aggregate syntax: 
query II rowsort label-9022
SELECT - 39 - - COUNT( * ) * + MAX( 4 ) AS col2, MIN( 18 )
----
-35
18

skipif mysql # not compatible
query II rowsort label-9022
SELECT - 39 - - COUNT ( * ) * + MAX ( 4 ) AS col2, MIN ( 18 )
----
-35
18

query I rowsort
SELECT - 45 * + + 68 AS col2
----
-3060

query I rowsort
SELECT ALL - COALESCE ( + 5, 93 ) * 46 + + + 30 - + - 57 * 49
----
2593

query I rowsort
SELECT DISTINCT ( - ( ( - 72 ) ) )
----
72

query I rowsort
SELECT - 15 - + 62 + 5 AS col0
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9027
SELECT DISTINCT CAST( - + 84 AS SIGNED ), - 20 AS col1
----
-84
-20

skipif mysql # not compatible
query II rowsort label-9027
SELECT DISTINCT CAST ( - + 84 AS INTEGER ), - 20 AS col1
----
-84
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-9028
SELECT ALL - 88 - + - SUM( + + 53 ) * - COUNT( * ) * + 6
----
-406

skipif mysql # not compatible
query I rowsort label-9028
SELECT ALL - 88 - + - SUM ( + + 53 ) * - COUNT ( * ) * + 6
----
-406

query I rowsort
SELECT - 9 * + + 98 col2
----
-882

onlyif mysql # DIV for integer division: 
query I rowsort label-9030
SELECT + 15 * 28 DIV - 92
----
-4

skipif mysql # not compatible
query I rowsort label-9030
SELECT + 15 * 28 / - 92
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9031
SELECT 54 - - 56 + - 5 * 30 * - + 79 + + COUNT( * ) * - 89 - - 72 + - CAST( NULL AS SIGNED ) + - 56 / - 72 * - + MAX( DISTINCT 62 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9031
SELECT 54 - - 56 + - 5 * 30 * - + 79 + + COUNT ( * ) * - 89 - - 72 + - CAST ( NULL AS INTEGER ) + - 56 / - 72 * - + MAX ( DISTINCT 62 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9032
SELECT DISTINCT - CASE - 75 WHEN + - 37 THEN NULL WHEN + 50 THEN - COUNT( * ) ELSE NULL END * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9032
SELECT DISTINCT - CASE - 75 WHEN + - 37 THEN NULL WHEN + 50 THEN - COUNT ( * ) ELSE NULL END * COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT + 43 * - 4 AS col0
----
-172

query I rowsort
SELECT 70 * - + ( + 15 )
----
-1050

query I rowsort
SELECT DISTINCT + 71 + 54 AS col2
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-9036
SELECT ALL ( 7 ) + - COUNT( * )
----
6

skipif mysql # not compatible
query I rowsort label-9036
SELECT ALL ( 7 ) + - COUNT ( * )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9037
SELECT DISTINCT - COUNT( 13 )
----
-1

skipif mysql # not compatible
query I rowsort label-9037
SELECT DISTINCT - COUNT ( 13 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9038
SELECT COUNT( * ) * + - 14 + + 31
----
17

skipif mysql # not compatible
query I rowsort label-9038
SELECT COUNT ( * ) * + - 14 + + 31
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9039
SELECT ALL - 77 + + - 88 / 11 + + - CAST( - 6 AS SIGNED ) + + CASE - NULLIF ( - 36, + - NULLIF ( 71, COUNT( * ) / + 74 * - 98 ) * 2 + + + 85 ) WHEN + + CAST( NULL AS SIGNED ) THEN - - 30 * + 19 + + 5 - 13 + + 8 + + 59 * + COUNT( * ) WHEN + 93 THEN NULL ELSE + 40 END - - 4 - + + CAST( NULL AS SIGNED ) * + 47 * 73 * + 62 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9039
SELECT ALL - 77 + + - 88 / 11 + + - CAST ( - 6 AS INTEGER ) + + CASE - NULLIF ( - 36, + - NULLIF ( 71, COUNT ( * ) / + 74 * - 98 ) * 2 + + + 85 ) WHEN + + CAST ( NULL AS INTEGER ) THEN - - 30 * + 19 + + 5 - 13 + + 8 + + 59 * + COUNT ( * ) WHEN + 93 THEN NULL ELSE + 40 END - - 4 - + + CAST ( NULL AS INTEGER ) * + 47 * 73 * + 62 AS col1
----
NULL

query I rowsort
SELECT DISTINCT 8 + + - 52 + - 39 AS col1
----
-83

query I rowsort
SELECT ALL + 97 + + 40 + 60 * 80 AS col1
----
4937

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9042
SELECT ALL - COUNT( * ) + + 46 AS col2, 80 + NULLIF ( - 15, 28 / + - COUNT( * ) * - 74 + - + ( + + CAST( 50 AS SIGNED ) ) * + 94 + + - COUNT( * ) ) + - 91 + + COUNT( * ) * - 47 * - + 22 * - SUM( DISTINCT ( + 56 ) ) + - - 87 * 16 * + 34 + + 71 + 33 * + - 87
----
45
-13402

skipif mysql # not compatible
query II rowsort label-9042
SELECT ALL - COUNT ( * ) + + 46 AS col2, 80 + NULLIF ( - 15, 28 / + - COUNT ( * ) * - 74 + - + ( + + CAST ( 50 AS INTEGER ) ) * + 94 + + - COUNT ( * ) ) + - 91 + + COUNT ( * ) * - 47 * - + 22 * - SUM ( DISTINCT ( + 56 ) ) + - - 87 * 16 * + 34 + + 71 + 33 * + - 87
----
45
-13402

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9043
SELECT 96 + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9043
SELECT 96 + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9044
SELECT + 96 * 60 DIV + 73 * - ( COUNT( * ) ) + - 65 + - 24
----
-167

skipif mysql # not compatible
query I rowsort label-9044
SELECT + 96 * 60 / + 73 * - ( COUNT ( * ) ) + - 65 + - 24
----
-167

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9045
SELECT DISTINCT 74 + - - CASE + 73 WHEN - 58 THEN + CAST( NULL AS DECIMAL ) WHEN 94 THEN NULL END + + - 28 + + COUNT( * ) * + - 30 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9045
SELECT DISTINCT 74 + - - CASE + 73 WHEN - 58 THEN + CAST ( NULL AS REAL ) WHEN 94 THEN NULL END + + - 28 + + COUNT ( * ) * + - 30 AS col0
----
NULL

query I rowsort
SELECT ALL 79 + 24 - 48 - 5 * 58
----
-235

onlyif mysql # aggregate syntax: 
query I rowsort label-9047
SELECT ALL SUM( 51 ) + - 16 AS col2
----
35

skipif mysql # not compatible
query I rowsort label-9047
SELECT ALL SUM ( 51 ) + - 16 AS col2
----
35

query II rowsort
SELECT - 62 * + + 79 col0, - 42
----
-4898
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-9049
SELECT 63 * - COUNT( * ) + + - 41 + + 47 AS col0, - 4
----
-57
-4

skipif mysql # not compatible
query II rowsort label-9049
SELECT 63 * - COUNT ( * ) + + - 41 + + 47 AS col0, - 4
----
-57
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-9050
SELECT DISTINCT 1 DIV + 55
----
0

skipif mysql # not compatible
query I rowsort label-9050
SELECT DISTINCT 1 / + 55
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9051
SELECT DISTINCT + COUNT( * ) - + 15
----
-14

skipif mysql # not compatible
query I rowsort label-9051
SELECT DISTINCT + COUNT ( * ) - + 15
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-9052
SELECT ALL COUNT( + + 43 ) * - COUNT( - - 92 )
----
-1

skipif mysql # not compatible
query I rowsort label-9052
SELECT ALL COUNT ( + + 43 ) * - COUNT ( - - 92 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9053
SELECT COUNT( * ) - + CAST( NULL AS DECIMAL ) * - 5
----
NULL

skipif mysql # not compatible
query I rowsort label-9053
SELECT COUNT ( * ) - + CAST ( NULL AS REAL ) * - 5
----
NULL

query I rowsort
SELECT ALL 81 - + - 87
----
168

onlyif mysql # aggregate syntax: 
query II rowsort label-9055
SELECT DISTINCT 93 AS col0, COUNT( * )
----
93
1

skipif mysql # not compatible
query II rowsort label-9055
SELECT DISTINCT 93 AS col0, COUNT ( * )
----
93
1

query I rowsort
SELECT ALL + 19 - - 22
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9057
SELECT ALL CAST( 49 AS SIGNED ) * - - CASE - - 48 WHEN 55 - 93 / - ( + + CAST( + + 29 AS SIGNED ) ) * + - 94 * + 76 / 63 + - MIN( + - 55 ) + + + 56 THEN 82 ELSE NULL END + - 31
----
NULL

skipif mysql # not compatible
query I rowsort label-9057
SELECT ALL CAST ( 49 AS INTEGER ) * - - CASE - - 48 WHEN 55 - 93 / - ( + + CAST ( + + 29 AS INTEGER ) ) * + - 94 * + 76 / 63 + - MIN ( + - 55 ) + + + 56 THEN 82 ELSE NULL END + - 31
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9058
SELECT COUNT( * ) + + 97 + CASE - CASE - 35 WHEN + ( - - 44 ) * - COUNT( * ) * 37 THEN + + 63 WHEN - NULLIF ( - 17, 28 * - MIN( - - 81 ) * - CASE - 48 WHEN + - 24 THEN + 55 + - MAX( - 71 ) - 47 + + 13 END * + - MIN( ALL - ( + 88 ) ) ) * 66 - 80 * + - 17 THEN NULL END WHEN + 22 THEN 75 + + - COALESCE ( - - CAST( NULL AS DECIMAL ), - - 72, + 53 + - COUNT( * ) ) * CAST( + ( - 38 ) AS DECIMAL ) WHEN 21 THEN 34 WHEN + 85 THEN NULL END * COALESCE ( - 37, - ( - 0 ) * + 46 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9058
SELECT COUNT ( * ) + + 97 + CASE - CASE - 35 WHEN + ( - - 44 ) * - COUNT ( * ) * 37 THEN + + 63 WHEN - NULLIF ( - 17, 28 * - MIN ( - - 81 ) * - CASE - 48 WHEN + - 24 THEN + 55 + - MAX ( - 71 ) - 47 + + 13 END * + - MIN ( ALL - ( + 88 ) ) ) * 66 - 80 * + - 17 THEN NULL END WHEN + 22 THEN 75 + + - COALESCE ( - - CAST ( NULL AS REAL ), - - 72, + 53 + - COUNT ( * ) ) * CAST ( + ( - 38 ) AS REAL ) WHEN 21 THEN 34 WHEN + 85 THEN NULL END * COALESCE ( - 37, - ( - 0 ) * + 46 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9059
SELECT 54 DIV 37
----
1

skipif mysql # not compatible
query I rowsort label-9059
SELECT 54 / 37
----
1

query I rowsort
SELECT 28 + - + 44 AS col1
----
-16

query I rowsort
SELECT 64 - - NULLIF ( - 19, - 38 )
----
45

query I rowsort
SELECT 35 * 22 * 66 AS col0
----
50820

onlyif mysql # aggregate syntax: 
query I rowsort label-9063
SELECT COALESCE ( - - COUNT( * ), 95 * - + 46 ) + + 48
----
49

skipif mysql # not compatible
query I rowsort label-9063
SELECT COALESCE ( - - COUNT ( * ), 95 * - + 46 ) + + 48
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-9064
SELECT 54 + - COUNT( * ) * 9 - + 24 + 62 + + - COUNT( * ) + - + COUNT( * ) * + 52 - - 42 * - 49 AS col2
----
-2028

skipif mysql # not compatible
query I rowsort label-9064
SELECT 54 + - COUNT ( * ) * 9 - + 24 + 62 + + - COUNT ( * ) + - + COUNT ( * ) * + 52 - - 42 * - 49 AS col2
----
-2028

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9065
SELECT 60 * COUNT( * ) DIV + CASE 16 WHEN - - 64 * + MIN( 6 ) THEN NULL WHEN + 10 DIV 3 * + 45 * 36 + - CAST( NULL AS SIGNED ) * - 31 - - 45 THEN - 43 ELSE + 64 + CAST( + - 46 AS SIGNED ) END
----
3

skipif mysql # not compatible
query I rowsort label-9065
SELECT 60 * COUNT ( * ) / + CASE 16 WHEN - - 64 * + MIN ( 6 ) THEN NULL WHEN + 10 / 3 * + 45 * 36 + - CAST ( NULL AS INTEGER ) * - 31 - - 45 THEN - 43 ELSE + 64 + CAST ( + - 46 AS INTEGER ) END
----
3

query I rowsort
SELECT 63 + 3 * + + 43 + + 7 col0
----
199

query I rowsort
SELECT 73 + + 44 AS col1
----
117

query I rowsort
SELECT ALL - 57 * + - 56 col0
----
3192

onlyif mysql # DIV for integer division: 
query I rowsort label-9069
SELECT ALL - 84 DIV - + 58 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9069
SELECT ALL - 84 / - + 58 AS col1
----
1

query I rowsort
SELECT ALL + 30 + 8 AS col1
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-9071
SELECT COUNT( ALL + 71 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9071
SELECT COUNT ( ALL + 71 ) AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9072
SELECT + COUNT( * ) DIV - + 32 + - + 92 AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-9072
SELECT + COUNT ( * ) / - + 32 + - + 92 AS col1
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9073
SELECT ( MIN( - CAST( + 31 AS SIGNED ) ) ) * - 82, 68 col0
----
2542
68

skipif mysql # not compatible
query II rowsort label-9073
SELECT ( MIN ( - CAST ( + 31 AS INTEGER ) ) ) * - 82, 68 col0
----
2542
68

query I rowsort
SELECT - 77 * - - 84 * 81
----
-523908

query I rowsort
SELECT COALESCE ( - 6, - 20 ) + + 30 AS col1
----
24

query I rowsort
SELECT ALL + + 65 + - 7 AS col0
----
58

query I rowsort
SELECT DISTINCT - ( - 12 ) col1
----
12

query I rowsort
SELECT + 32 * 5 + 82 + + 47 AS col2
----
289

query I rowsort
SELECT + - 99 * - 11 + - + 2 AS col1
----
1087

query I rowsort
SELECT DISTINCT + + 27 + 13 + - 25 + - + 14 + 87 + + - 89 * + 37
----
-3205

query I rowsort
SELECT 32 + + 17 + + 19 AS col2
----
68

query I rowsort
SELECT ALL - 26 + - 31
----
-57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9083
SELECT ALL - 68 DIV - - 93 * + - COUNT( * ) * + - ( 50 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9083
SELECT ALL - 68 / - - 93 * + - COUNT ( * ) * + - ( 50 ) AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9084
SELECT ALL + - 60 DIV 94 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9084
SELECT ALL + - 60 / 94 AS col1
----
0

query I rowsort
SELECT + - 70 * 85 + - ( + ( - NULLIF ( + + 7, + - 95 + - 50 * - ( - - ( + - 93 ) ) ) ) ) + + 64 + + 91
----
-5788

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9086
SELECT 76 * + + 67 + CAST( - - 68 AS SIGNED )
----
5160

skipif mysql # not compatible
query I rowsort label-9086
SELECT 76 * + + 67 + CAST ( - - 68 AS INTEGER )
----
5160

query II rowsort
SELECT ALL - ( - 87 ) + 14 AS col1, 81 col0
----
101
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9088
SELECT - 68 * - - 8 + - 57 + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9088
SELECT - 68 * - - 8 + - 57 + CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9089
SELECT + 46 + 21 * - 22 * CASE 4 WHEN 52 + + COUNT( * ) * - - 71 THEN - 16 ELSE + - 34 END col1, 27 + + - CAST( NULL AS SIGNED ) + + 82 * + ( CASE 56 WHEN + + 58 * + 18 + + SUM( - 87 ) THEN - 30 END ) + 23 AS col0
----
15754
NULL

skipif mysql # not compatible
query II rowsort label-9089
SELECT + 46 + 21 * - 22 * CASE 4 WHEN 52 + + COUNT ( * ) * - - 71 THEN - 16 ELSE + - 34 END col1, 27 + + - CAST ( NULL AS INTEGER ) + + 82 * + ( CASE 56 WHEN + + 58 * + 18 + + SUM ( - 87 ) THEN - 30 END ) + 23 AS col0
----
15754
NULL

query I rowsort
SELECT + 60 + - - NULLIF ( + 38, - 89 ) col2
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9091
SELECT ALL - + NULLIF ( + 18, + CASE - ( + COUNT( 31 ) ) WHEN + 3 * 94 + - 6 + - 58 - + 36 * + - 1 / + CASE - 79 WHEN + - 23 THEN NULL WHEN 37 + 57 THEN + + 81 ELSE 82 * + - SUM( + CAST( + 5 AS SIGNED ) ) + + 7 END + + 95 THEN - COUNT( * ) WHEN CASE - + CASE - 2 WHEN - - 69 * + + COUNT( * ) * - + 4 THEN + COUNT( + + 48 ) ELSE - 7 END WHEN 54 THEN NULL WHEN 62 THEN NULL ELSE + 18 / SUM( + COALESCE ( - 10, 52, 76 ) ) END THEN 54 + COUNT( * ) ELSE - 22 + + 97 END )
----
-18

skipif mysql # not compatible
query I rowsort label-9091
SELECT ALL - + NULLIF ( + 18, + CASE - ( + COUNT ( 31 ) ) WHEN + 3 * 94 + - 6 + - 58 - + 36 * + - 1 / + CASE - 79 WHEN + - 23 THEN NULL WHEN 37 + 57 THEN + + 81 ELSE 82 * + - SUM ( + CAST ( + 5 AS INTEGER ) ) + + 7 END + + 95 THEN - COUNT ( * ) WHEN CASE - + CASE - 2 WHEN - - 69 * + + COUNT ( * ) * - + 4 THEN + COUNT ( + + 48 ) ELSE - 7 END WHEN 54 THEN NULL WHEN 62 THEN NULL ELSE + 18 / SUM ( + COALESCE ( - 10, 52, 76 ) ) END THEN 54 + COUNT ( * ) ELSE - 22 + + 97 END )
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-9092
SELECT - + 69 * 90 + - ( 21 ) * - 74 * - 20 + + + SUM( 33 )
----
-37257

skipif mysql # not compatible
query I rowsort label-9092
SELECT - + 69 * 90 + - ( 21 ) * - 74 * - 20 + + + SUM ( 33 )
----
-37257

query I rowsort
SELECT DISTINCT - 32 * 39 * + 38 * 18
----
-853632

onlyif mysql # aggregate syntax: 
query I rowsort label-9094
SELECT 38 + + - COUNT( * ) AS col0
----
37

skipif mysql # not compatible
query I rowsort label-9094
SELECT 38 + + - COUNT ( * ) AS col0
----
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9095
SELECT ALL 64 - COALESCE ( - 90, + COUNT( * ) DIV ( - 84 ) ) + - - ( ( + COUNT( * ) ) ) - - + 39 - + - 97 DIV 34 col0
----
196

skipif mysql # not compatible
query I rowsort label-9095
SELECT ALL 64 - COALESCE ( - 90, + COUNT ( * ) / ( - 84 ) ) + - - ( ( + COUNT ( * ) ) ) - - + 39 - + - 97 / 34 col0
----
196

onlyif mysql # aggregate syntax: 
query I rowsort label-9096
SELECT 45 * + + COUNT( * ) * 56
----
2520

skipif mysql # not compatible
query I rowsort label-9096
SELECT 45 * + + COUNT ( * ) * 56
----
2520

query II rowsort
SELECT DISTINCT 43, - 43 AS col1
----
43
-43

query II rowsort
SELECT DISTINCT 0 AS col1, + 7 AS col0
----
0
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9099
SELECT 35 * + CASE + 17 WHEN 49 THEN + 66 + ( ( COUNT( * ) ) ) / - + MAX( ALL - 81 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9099
SELECT 35 * + CASE + 17 WHEN 49 THEN + 66 + ( ( COUNT ( * ) ) ) / - + MAX ( ALL - 81 ) END AS col1
----
NULL

query II rowsort
SELECT 54, 2 AS col1
----
54
2

query I rowsort
SELECT 73 + - - 62 * - 57
----
-3461

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9102
SELECT DISTINCT 63 / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9102
SELECT DISTINCT 63 / - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 80 * - 40
----
-3200

query II rowsort
SELECT ALL 14, + 5 AS col0
----
14
5

onlyif mysql # aggregate syntax: 
query II rowsort label-9105
SELECT - COUNT( * ) AS col1, - 0 col1
----
-1
0

skipif mysql # not compatible
query II rowsort label-9105
SELECT - COUNT ( * ) AS col1, - 0 col1
----
-1
0

query I rowsort
SELECT + 80 * - + 40
----
-3200

onlyif mysql # aggregate syntax: 
query I rowsort label-9107
SELECT DISTINCT 85 + + 28 + + 45 * SUM( DISTINCT - 70 )
----
-3037

skipif mysql # not compatible
query I rowsort label-9107
SELECT DISTINCT 85 + + 28 + + 45 * SUM ( DISTINCT - 70 )
----
-3037

onlyif mysql # aggregate syntax: 
query I rowsort label-9108
SELECT ALL MIN( ALL - 99 )
----
-99

skipif mysql # not compatible
query I rowsort label-9108
SELECT ALL MIN ( ALL - 99 )
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9109
SELECT - CASE + + 28 WHEN - COUNT( ALL + 68 ) THEN NULL WHEN + + ( - 64 ) * + - MAX( + 35 ) / COUNT( * ) THEN + + 55 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9109
SELECT - CASE + + 28 WHEN - COUNT ( ALL + 68 ) THEN NULL WHEN + + ( - 64 ) * + - MAX ( + 35 ) / COUNT ( * ) THEN + + 55 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9110
SELECT ALL 20 + + 74 DIV + - 14
----
15

skipif mysql # not compatible
query I rowsort label-9110
SELECT ALL 20 + + 74 / + - 14
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9111
SELECT + 26 - + - 2 * - - 77 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9111
SELECT + 26 - + - 2 * - - 77 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 26 + + - ( - 69 )
----
43

query I rowsort
SELECT - 66 * - 85 AS col0
----
5610

onlyif mysql # aggregate syntax: 
query III rowsort label-9114
SELECT DISTINCT 29, - 59 * 54 + 47 * + CASE COUNT( 51 ) WHEN + NULLIF ( + - 92, 88 ) THEN + 21 ELSE NULL END + + COUNT( * ) AS col0, 85 * + - 52 * + + 48 AS col2
----
29
NULL
-212160

skipif mysql # not compatible
query III rowsort label-9114
SELECT DISTINCT 29, - 59 * 54 + 47 * + CASE COUNT ( 51 ) WHEN + NULLIF ( + - 92, 88 ) THEN + 21 ELSE NULL END + + COUNT ( * ) AS col0, 85 * + - 52 * + + 48 AS col2
----
29
NULL
-212160

query I rowsort
SELECT + + 16 * + - 66 + + 11
----
-1045

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9116
SELECT + COALESCE ( - + 65, + + ( + MAX( + + CASE + 19 WHEN - ( + - COALESCE ( NULLIF ( 20, 7 / - + NULLIF ( + 49, + 25 * - 50 * + 56 * + 7 / - - 85 ) ), - 37 * + 26 ) ) - - + 49 THEN - - 80 WHEN + 29 * - - 85 * + + 52 THEN NULL ELSE NULL END ) ) * + + CAST( + 38 AS SIGNED ) * + 89 + + 19, + 9 - - COUNT( * ) * NULLIF ( - 51, + CAST( - 31 AS SIGNED ) ), - MIN( + 87 ) + - 59 * - 70 ) AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-9116
SELECT + COALESCE ( - + 65, + + ( + MAX ( + + CASE + 19 WHEN - ( + - COALESCE ( NULLIF ( 20, 7 / - + NULLIF ( + 49, + 25 * - 50 * + 56 * + 7 / - - 85 ) ), - 37 * + 26 ) ) - - + 49 THEN - - 80 WHEN + 29 * - - 85 * + + 52 THEN NULL ELSE NULL END ) ) * + + CAST ( + 38 AS INTEGER ) * + 89 + + 19, + 9 - - COUNT ( * ) * NULLIF ( - 51, + CAST ( - 31 AS INTEGER ) ), - MIN ( + 87 ) + - 59 * - 70 ) AS col2
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-9117
SELECT ALL - MAX( DISTINCT 95 ) * - COUNT( * ) AS col2
----
95

skipif mysql # not compatible
query I rowsort label-9117
SELECT ALL - MAX ( DISTINCT 95 ) * - COUNT ( * ) AS col2
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-9118
SELECT + + NULLIF ( + 29, + 18 / MAX( 93 ) )
----
29

skipif mysql # not compatible
query I rowsort label-9118
SELECT + + NULLIF ( + 29, + 18 / MAX ( 93 ) )
----
29

onlyif mysql # aggregate syntax: 
query II rowsort label-9119
SELECT ALL 8 * + 52 + - ( 24 ) AS col0, + COUNT( ALL + 37 ) AS col0
----
392
1

skipif mysql # not compatible
query II rowsort label-9119
SELECT ALL 8 * + 52 + - ( 24 ) AS col0, + COUNT ( ALL + 37 ) AS col0
----
392
1

query II rowsort
SELECT + 8, 58 + + 0 AS col0
----
8
58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9121
SELECT + 30, - 44 * + CAST( NULL AS SIGNED ) col2
----
30
NULL

skipif mysql # not compatible
query II rowsort label-9121
SELECT + 30, - 44 * + CAST ( NULL AS INTEGER ) col2
----
30
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9122
SELECT - COUNT( - 40 )
----
-1

skipif mysql # not compatible
query I rowsort label-9122
SELECT - COUNT ( - 40 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9123
SELECT - 78 + - COUNT( * ) + - CASE + NULLIF ( - ( - 39 ), CASE + ( + COALESCE ( - NULLIF ( + NULLIF ( + - 59, + COALESCE ( 28, 41 + - + 68 * + 13 * - - COUNT( ALL 31 ), - 65 ) * + CASE 76 WHEN ( 83 ) THEN + - 72 ELSE - - ( + 33 ) END ), + 58 * COUNT( * ) / 78 ), ( + 68 ), + + 45, 12 * 75 + - 74 + 2 ) ) WHEN 13 THEN - 29 * 38 + 63 * SUM( + 75 / 18 + 80 / 25 ) END * - 53 ) WHEN - AVG ( 11 ) + 83 THEN - ( - 43 ) * - COUNT( * ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9123
SELECT - 78 + - COUNT ( * ) + - CASE + NULLIF ( - ( - 39 ), CASE + ( + COALESCE ( - NULLIF ( + NULLIF ( + - 59, + COALESCE ( 28, 41 + - + 68 * + 13 * - - COUNT ( ALL 31 ), - 65 ) * + CASE 76 WHEN ( 83 ) THEN + - 72 ELSE - - ( + 33 ) END ), + 58 * COUNT ( * ) / 78 ), ( + 68 ), + + 45, 12 * 75 + - 74 + 2 ) ) WHEN 13 THEN - 29 * 38 + 63 * SUM ( + 75 / 18 + 80 / 25 ) END * - 53 ) WHEN - AVG ( 11 ) + 83 THEN - ( - 43 ) * - COUNT ( * ) ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9124
SELECT DISTINCT + CASE - - AVG ( DISTINCT + 59 ) WHEN + 9 + + + 19 * 85 THEN - 19 WHEN + 91 * - COUNT( * ) THEN NULL END * + - 46 * - + SUM( + + 80 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9124
SELECT DISTINCT + CASE - - AVG ( DISTINCT + 59 ) WHEN + 9 + + + 19 * 85 THEN - 19 WHEN + 91 * - COUNT ( * ) THEN NULL END * + - 46 * - + SUM ( + + 80 )
----
NULL

query I rowsort
SELECT + - NULLIF ( + 59, - + 74 * - 44 )
----
-59

query I rowsort
SELECT ALL - 65 * + 19 - 47
----
-1282

query I rowsort
SELECT - - ( - + 4 ) * - 44
----
176

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9128
SELECT - 80 / - CAST( NULL AS SIGNED ) + 36 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9128
SELECT - 80 / - CAST ( NULL AS INTEGER ) + 36 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9129
SELECT - 16 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9129
SELECT - 16 + - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT ALL ( + 1 ), + 33 + 24 AS col2
----
1
57

onlyif mysql # aggregate syntax: 
query II rowsort label-9131
SELECT + COUNT( * ) * 63 AS col0, 27 AS col0
----
63
27

skipif mysql # not compatible
query II rowsort label-9131
SELECT + COUNT ( * ) * 63 AS col0, 27 AS col0
----
63
27

query I rowsort
SELECT DISTINCT + 83 * NULLIF ( + 55, + 14 )
----
4565

onlyif mysql # aggregate syntax: 
query II rowsort label-9133
SELECT DISTINCT + 84 + - COALESCE ( - ( - ( + 47 ) ), COUNT( * ) ) + - 60 AS col0, 97
----
-23
97

skipif mysql # not compatible
query II rowsort label-9133
SELECT DISTINCT + 84 + - COALESCE ( - ( - ( + 47 ) ), COUNT ( * ) ) + - 60 AS col0, 97
----
-23
97

onlyif mysql # aggregate syntax: 
query II rowsort label-9134
SELECT ALL - 29 + + COUNT( * ) AS col2, 34 * 94
----
-28
3196

skipif mysql # not compatible
query II rowsort label-9134
SELECT ALL - 29 + + COUNT ( * ) AS col2, 34 * 94
----
-28
3196

query I rowsort
SELECT DISTINCT - 11 + - - 35 * 5 * + - 49 AS col0
----
-8586

onlyif mysql # aggregate syntax: 
query I rowsort label-9136
SELECT - SUM( - 87 ) AS col2
----
87

skipif mysql # not compatible
query I rowsort label-9136
SELECT - SUM ( - 87 ) AS col2
----
87

query I rowsort
SELECT - 3 + + + 15 + 80 AS col1
----
92

query I rowsort
SELECT + 8 - - 68
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9139
SELECT DISTINCT 32 + - COUNT( * ) DIV + CAST( + 9 AS SIGNED ) - - - 5 AS col0
----
27

skipif mysql # not compatible
query I rowsort label-9139
SELECT DISTINCT 32 + - COUNT ( * ) / + CAST ( + 9 AS INTEGER ) - - - 5 AS col0
----
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-9140
SELECT ALL COUNT( * ) DIV + 78 AS col2, - 83 * 38 + 11 AS col2, - COUNT( * )
----
0
-3143
-1

skipif mysql # not compatible
query III rowsort label-9140
SELECT ALL COUNT ( * ) / + 78 AS col2, - 83 * 38 + 11 AS col2, - COUNT ( * )
----
0
-3143
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-9141
SELECT ALL - 92 + + 33 - - 35 DIV + 54 * 3 col2, 72 AS col0
----
-59
72

skipif mysql # not compatible
query II rowsort label-9141
SELECT ALL - 92 + + 33 - - 35 / + 54 * 3 col2, 72 AS col0
----
-59
72

onlyif mysql # DIV for integer division: 
query I rowsort label-9142
SELECT DISTINCT + + 19 DIV + 77
----
0

skipif mysql # not compatible
query I rowsort label-9142
SELECT DISTINCT + + 19 / + 77
----
0

query I rowsort
SELECT ALL 56 * - 17 + + - 52
----
-1004

query I rowsort
SELECT DISTINCT - 42 * 45 * - 59
----
111510

query I rowsort
SELECT ALL 0 - - - 78
----
-78

query I rowsort
SELECT DISTINCT + ( + 71 )
----
71

onlyif mysql # DIV for integer division: 
query I rowsort label-9147
SELECT + 83 DIV - 19 AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-9147
SELECT + 83 / - 19 AS col0
----
-4

query I rowsort
SELECT + 53 * + 67 * - + 63 AS col1
----
-223713

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9149
SELECT COALESCE ( NULLIF ( - 43, - + 91 + + 50 ), + - 24, + 74 ) / + 84 + - 23 - + CASE - 59 WHEN AVG ( 40 ) THEN CAST( NULL AS SIGNED ) WHEN 76 THEN NULL ELSE NULL END * + - 13 + 78 / - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9149
SELECT COALESCE ( NULLIF ( - 43, - + 91 + + 50 ), + - 24, + 74 ) / + 84 + - 23 - + CASE - 59 WHEN AVG ( 40 ) THEN CAST ( NULL AS INTEGER ) WHEN 76 THEN NULL ELSE NULL END * + - 13 + 78 / - COUNT ( * )
----
NULL

query I rowsort
SELECT + 67 + + 50
----
117

query I rowsort
SELECT ALL + 65 * - 37
----
-2405

query I rowsort
SELECT DISTINCT + - ( - ( - 0 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9153
SELECT + 85 * - COUNT( DISTINCT + ( + 44 ) ) + - - 55 - 18 AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-9153
SELECT + 85 * - COUNT ( DISTINCT + ( + 44 ) ) + - - 55 - 18 AS col0
----
-48

query I rowsort
SELECT - 69 * ( 41 ) AS col0
----
-2829

onlyif mysql # aggregate syntax: 
query I rowsort label-9155
SELECT DISTINCT + COUNT( * ) * - 91
----
-91

skipif mysql # not compatible
query I rowsort label-9155
SELECT DISTINCT + COUNT ( * ) * - 91
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-9156
SELECT 60 * - - 53 + - - MAX( 16 ) + - 80 col0
----
3116

skipif mysql # not compatible
query I rowsort label-9156
SELECT 60 * - - 53 + - - MAX ( 16 ) + - 80 col0
----
3116

query I rowsort
SELECT ALL + 60 * + 30
----
1800

query II rowsort
SELECT + 95 AS col0, + 81 - 92 AS col1
----
95
-11

query I rowsort
SELECT ALL - 97 + 61 - + + 72 AS col0
----
-108

onlyif mysql # aggregate syntax: 
query II rowsort label-9160
SELECT ALL - COUNT( * ) AS col1, - 20
----
-1
-20

skipif mysql # not compatible
query II rowsort label-9160
SELECT ALL - COUNT ( * ) AS col1, - 20
----
-1
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-9161
SELECT DISTINCT NULLIF ( - CASE 94 WHEN - AVG ( - - 46 ) * 94 + - + 28 THEN NULL ELSE + COUNT( * ) * - - 64 * + 58 END, - - 81 ) + 95
----
-3617

skipif mysql # not compatible
query I rowsort label-9161
SELECT DISTINCT NULLIF ( - CASE 94 WHEN - AVG ( - - 46 ) * 94 + - + 28 THEN NULL ELSE + COUNT ( * ) * - - 64 * + 58 END, - - 81 ) + 95
----
-3617

onlyif mysql # aggregate syntax: 
query I rowsort label-9162
SELECT DISTINCT - COUNT( * ) + 14 AS col2
----
13

skipif mysql # not compatible
query I rowsort label-9162
SELECT DISTINCT - COUNT ( * ) + 14 AS col2
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9163
SELECT DISTINCT - 43 + 17 + - + 4 * + 27 * + MAX( + CAST( - 75 AS SIGNED ) ) * 19 + - 20 * 17 AS col0
----
153534

skipif mysql # not compatible
query I rowsort label-9163
SELECT DISTINCT - 43 + 17 + - + 4 * + 27 * + MAX ( + CAST ( - 75 AS INTEGER ) ) * 19 + - 20 * 17 AS col0
----
153534

query I rowsort
SELECT 53 * 2 AS col0
----
106

onlyif mysql # DIV for integer division: 
query I rowsort label-9165
SELECT ALL - 25 DIV - + 19 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9165
SELECT ALL - 25 / - + 19 AS col0
----
1

query II rowsort
SELECT - 71 AS col2, ( - 5 )
----
-71
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9167
SELECT ALL - COUNT( + + 86 ) + 80 + ( 11 ) AS col1
----
90

skipif mysql # not compatible
query I rowsort label-9167
SELECT ALL - COUNT ( + + 86 ) + 80 + ( 11 ) AS col1
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9168
SELECT DISTINCT + MIN( - 71 ) + ( CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9168
SELECT DISTINCT + MIN ( - 71 ) + ( CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9169
SELECT 22 AS col1, + CASE - 90 WHEN 48 * 53 THEN - 38 * + - 46 + - - ( + COUNT( * ) ) - - 84 WHEN - 45 / + 51 THEN NULL ELSE NULL END + - 18
----
22
NULL

skipif mysql # not compatible
query II rowsort label-9169
SELECT 22 AS col1, + CASE - 90 WHEN 48 * 53 THEN - 38 * + - 46 + - - ( + COUNT ( * ) ) - - 84 WHEN - 45 / + 51 THEN NULL ELSE NULL END + - 18
----
22
NULL

query I rowsort
SELECT + 24 * + + NULLIF ( 32, - - 28 )
----
768

onlyif mysql # aggregate syntax: 
query I rowsort label-9171
SELECT ALL CASE - + 0 WHEN + ( + 41 ) - - 56 - + 70 * + + 14 + 71 - 45 * + + 23 + - + 42 THEN + 57 * - COUNT( * ) + + + 13 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9171
SELECT ALL CASE - + 0 WHEN + ( + 41 ) - - 56 - + 70 * + + 14 + 71 - 45 * + + 23 + - + 42 THEN + 57 * - COUNT ( * ) + + + 13 ELSE NULL END
----
NULL

query I rowsort
SELECT - 46 + 4 + - 10 + - 67 AS col1
----
-119

onlyif mysql # DIV for integer division: 
query I rowsort label-9173
SELECT 76 DIV - 80 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9173
SELECT 76 / - 80 AS col1
----
0

query I rowsort
SELECT ALL + 20 - - 77 + 3 * + 43 * - 42 AS col2
----
-5321

onlyif mysql # aggregate syntax: 
query II rowsort label-9175
SELECT 2 AS col0, COUNT( * ) + - 67
----
2
-66

skipif mysql # not compatible
query II rowsort label-9175
SELECT 2 AS col0, COUNT ( * ) + - 67
----
2
-66

query II rowsort
SELECT ALL + 53 AS col0, - 92 * - 56
----
53
5152

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9177
SELECT ALL - 45 / - COUNT( * ) * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9177
SELECT ALL - 45 / - COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9178
SELECT ALL - - 49 DIV + ( + COUNT( * ) ) + + COUNT( * ) + + + 5 AS col0
----
55

skipif mysql # not compatible
query I rowsort label-9178
SELECT ALL - - 49 / + ( + COUNT ( * ) ) + + COUNT ( * ) + + + 5 AS col0
----
55

query I rowsort
SELECT ALL - 37 * + - 28 AS col0
----
1036

onlyif mysql # aggregate syntax: 
query I rowsort label-9180
SELECT CASE 6 WHEN 87 THEN - 97 + ( 24 ) + ( NULLIF ( + CASE ( 78 ) WHEN 8 + - + 92 THEN + 6 + + 60 + + ( 44 ) + + 3 / + COUNT( * ) + + - 55 - + + 38 + + 0 + 87 ELSE NULL END, - 15 ) ) + + 89 END / 11 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9180
SELECT CASE 6 WHEN 87 THEN - 97 + ( 24 ) + ( NULLIF ( + CASE ( 78 ) WHEN 8 + - + 92 THEN + 6 + + 60 + + ( 44 ) + + 3 / + COUNT ( * ) + + - 55 - + + 38 + + 0 + 87 ELSE NULL END, - 15 ) ) + + 89 END / 11 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9181
SELECT DISTINCT 32 * - COUNT( * ) col2
----
-32

skipif mysql # not compatible
query I rowsort label-9181
SELECT DISTINCT 32 * - COUNT ( * ) col2
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-9182
SELECT ALL - 93 * - + 38 + + NULLIF ( NULLIF ( MIN( 18 ), + - NULLIF ( 45, COUNT( * ) + - + 43 ) / 83 + + COUNT( * ) ), + COUNT( * ) * - ( 93 ) + + COUNT( * ) - 6 * COALESCE ( - 28, - 54, 51 ) / COUNT( * ) * - + 82 ) AS col0
----
3552

skipif mysql # not compatible
query I rowsort label-9182
SELECT ALL - 93 * - + 38 + + NULLIF ( NULLIF ( MIN ( 18 ), + - NULLIF ( 45, COUNT ( * ) + - + 43 ) / 83 + + COUNT ( * ) ), + COUNT ( * ) * - ( 93 ) + + COUNT ( * ) - 6 * COALESCE ( - 28, - 54, 51 ) / COUNT ( * ) * - + 82 ) AS col0
----
3552

query I rowsort
SELECT + ( + + 70 )
----
70

query I rowsort
SELECT DISTINCT 46 + + 73 * + + 88
----
6470

query I rowsort
SELECT ALL 5 + 20
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9186
SELECT ALL CAST( + COUNT( - 54 ) AS SIGNED ) + - 84
----
-83

skipif mysql # not compatible
query I rowsort label-9186
SELECT ALL CAST ( + COUNT ( - 54 ) AS INTEGER ) + - 84
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-9187
SELECT DISTINCT 40 + - 6 + - + ( - COUNT( * ) ) + + - 11 * 55 AS col1
----
-570

skipif mysql # not compatible
query I rowsort label-9187
SELECT DISTINCT 40 + - 6 + - + ( - COUNT ( * ) ) + + - 11 * 55 AS col1
----
-570

onlyif mysql # aggregate syntax: 
query I rowsort label-9188
SELECT ALL CASE - 82 WHEN + COUNT( * ) * - + COALESCE ( - + 8, 34 + - ( - - 0 ) + - NULLIF ( + 67, 43 ) ) THEN + - 16 WHEN - - 4 * 25 THEN - 51 + + - COALESCE ( ( + - 64 ), 27, + 24 + - 35 * + 59 ) * NULLIF ( + 80, + 98 ) WHEN + + COUNT( * ) THEN NULL ELSE NULL END + - 8
----
NULL

skipif mysql # not compatible
query I rowsort label-9188
SELECT ALL CASE - 82 WHEN + COUNT ( * ) * - + COALESCE ( - + 8, 34 + - ( - - 0 ) + - NULLIF ( + 67, 43 ) ) THEN + - 16 WHEN - - 4 * 25 THEN - 51 + + - COALESCE ( ( + - 64 ), 27, + 24 + - 35 * + 59 ) * NULLIF ( + 80, + 98 ) WHEN + + COUNT ( * ) THEN NULL ELSE NULL END + - 8
----
NULL

query I rowsort
SELECT ALL - 29 + ( 96 ) col0
----
67

query I rowsort
SELECT ALL 97 * - 72 * 3 col1
----
-20952

query I rowsort
SELECT 63 + - 37 AS col2
----
26

query I rowsort
SELECT 98 * 83 AS col2
----
8134

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9193
SELECT ALL 61 * - ( - CAST( 2 AS SIGNED ) ), 94 AS col1
----
122
94

skipif mysql # not compatible
query II rowsort label-9193
SELECT ALL 61 * - ( - CAST ( 2 AS INTEGER ) ), 94 AS col1
----
122
94

query I rowsort
SELECT DISTINCT 96 * 29 AS col1
----
2784

query I rowsort
SELECT ALL 55 - + 9 * + 1 AS col2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9196
SELECT 7 + COUNT( * ) col1
----
8

skipif mysql # not compatible
query I rowsort label-9196
SELECT 7 + COUNT ( * ) col1
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9197
SELECT ALL - - COUNT( * ) - - 98
----
99

skipif mysql # not compatible
query I rowsort label-9197
SELECT ALL - - COUNT ( * ) - - 98
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9198
SELECT ( 55 ) * - - 52 * 32 * 87 * + COUNT( * ) AS col2
----
7962240

skipif mysql # not compatible
query I rowsort label-9198
SELECT ( 55 ) * - - 52 * 32 * 87 * + COUNT ( * ) AS col2
----
7962240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9199
SELECT 55 + COUNT( ALL - CAST( NULL AS SIGNED ) ) AS col0
----
55

skipif mysql # not compatible
query I rowsort label-9199
SELECT 55 + COUNT ( ALL - CAST ( NULL AS INTEGER ) ) AS col0
----
55

query I rowsort
SELECT + 22 - - + 67 AS col1
----
89

query I rowsort
SELECT COALESCE ( + 36, - - 87 ) + + 83 + + 53
----
172

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9202
SELECT CAST( NULL AS SIGNED ) - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9202
SELECT CAST ( NULL AS INTEGER ) - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9203
SELECT 32 DIV - + 18, 84 + + + 0 + + + COUNT( * ) + 18 DIV - 90 + - - 65 col2
----
-1
150

skipif mysql # not compatible
query II rowsort label-9203
SELECT 32 / - + 18, 84 + + + 0 + + + COUNT ( * ) + 18 / - 90 + - - 65 col2
----
-1
150

query I rowsort
SELECT - 44 * ( 38 ) col1
----
-1672

query I rowsort
SELECT 91 + ( + + 41 ) AS col0
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-9206
SELECT COUNT( * ) + + 10 AS col1
----
11

skipif mysql # not compatible
query I rowsort label-9206
SELECT COUNT ( * ) + + 10 AS col1
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-9207
SELECT DISTINCT - 99 * + - MIN( ALL 99 )
----
9801

skipif mysql # not compatible
query I rowsort label-9207
SELECT DISTINCT - 99 * + - MIN ( ALL 99 )
----
9801

query I rowsort
SELECT 80 + + 97
----
177

query I rowsort
SELECT ALL - 2 * - + 89 + + 45
----
223

query I rowsort
SELECT ALL 34 * + 81 + 98 AS col1
----
2852

onlyif mysql # aggregate syntax: 
query I rowsort label-9211
SELECT - + 25 + COUNT( ALL 98 ) AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-9211
SELECT - + 25 + COUNT ( ALL 98 ) AS col1
----
-24

query I rowsort
SELECT DISTINCT - 34 * + 92 + - 76 AS col1
----
-3204

query I rowsort
SELECT DISTINCT 99 * 86 * - ( + 5 ) AS col0
----
-42570

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9214
SELECT ALL + CAST( NULL AS SIGNED ) * - - 52 * - ( + 95 ) + 23 + - - 14 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9214
SELECT ALL + CAST ( NULL AS INTEGER ) * - - 52 * - ( + 95 ) + 23 + - - 14 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9215
SELECT ALL - 43 DIV - ( NULLIF ( - 66, - 45 ) ) AS col0, - 12
----
0
-12

skipif mysql # not compatible
query II rowsort label-9215
SELECT ALL - 43 / - ( NULLIF ( - 66, - 45 ) ) AS col0, - 12
----
0
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-9216
SELECT + COUNT( * ) + - + 6 * - 28
----
169

skipif mysql # not compatible
query I rowsort label-9216
SELECT + COUNT ( * ) + - + 6 * - 28
----
169

onlyif mysql # aggregate syntax: 
query I rowsort label-9217
SELECT + SUM( + ( - 39 ) ) + + 20 * + CASE COUNT( * ) WHEN + + ( 96 ) THEN NULL ELSE - - 99 END * + + 2 AS col0
----
3921

skipif mysql # not compatible
query I rowsort label-9217
SELECT + SUM ( + ( - 39 ) ) + + 20 * + CASE COUNT ( * ) WHEN + + ( 96 ) THEN NULL ELSE - - 99 END * + + 2 AS col0
----
3921

query I rowsort
SELECT DISTINCT 63 * - 99
----
-6237

query I rowsort
SELECT - 27 * COALESCE ( 96, - 80, + 12 * NULLIF ( + 99, - - 18 ) )
----
-2592

query I rowsort
SELECT + 33 + 29 + + + 70 + + 36 AS col2
----
168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9221
SELECT + CASE COUNT( + 42 ) WHEN + 79 - + + 39 / AVG ( 85 ) THEN - COUNT( * ) + + - 59 + + COUNT( * ) END * - CAST( NULL AS SIGNED ) / 85
----
NULL

skipif mysql # not compatible
query I rowsort label-9221
SELECT + CASE COUNT ( + 42 ) WHEN + 79 - + + 39 / AVG ( 85 ) THEN - COUNT ( * ) + + - 59 + + COUNT ( * ) END * - CAST ( NULL AS INTEGER ) / 85
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9222
SELECT + COUNT( * ) * + 74
----
74

skipif mysql # not compatible
query I rowsort label-9222
SELECT + COUNT ( * ) * + 74
----
74

query I rowsort
SELECT 71 * - 42 + - + 47
----
-3029

onlyif mysql # aggregate syntax: 
query I rowsort label-9224
SELECT ALL COUNT( * ) * 38 * - + 2 - - + 66 + + ( NULLIF ( - + 27, 0 ) )
----
-37

skipif mysql # not compatible
query I rowsort label-9224
SELECT ALL COUNT ( * ) * 38 * - + 2 - - + 66 + + ( NULLIF ( - + 27, 0 ) )
----
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9225
SELECT + 97 * + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9225
SELECT + 97 * + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9226
SELECT + COUNT( ALL + - ( + 43 ) )
----
1

skipif mysql # not compatible
query I rowsort label-9226
SELECT + COUNT ( ALL + - ( + 43 ) )
----
1

query I rowsort
SELECT ALL + ( 82 ) AS col0
----
82

query I rowsort
SELECT + ( + + ( 47 ) ) + - 50
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9229
SELECT ALL + 59 col0, 51 DIV 99 + CASE - COUNT( * ) WHEN - - MIN( DISTINCT - 4 ) + - 18 THEN NULL WHEN - 83 THEN NULL ELSE + MIN( DISTINCT 49 ) END
----
59
49

skipif mysql # not compatible
query II rowsort label-9229
SELECT ALL + 59 col0, 51 / 99 + CASE - COUNT ( * ) WHEN - - MIN ( DISTINCT - 4 ) + - 18 THEN NULL WHEN - 83 THEN NULL ELSE + MIN ( DISTINCT 49 ) END
----
59
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9230
SELECT + COALESCE ( + - 10, - CAST( - MIN( ALL + 82 ) AS SIGNED ), - - 21 ) AS col0, - 72 AS col1
----
-10
-72

skipif mysql # not compatible
query II rowsort label-9230
SELECT + COALESCE ( + - 10, - CAST ( - MIN ( ALL + 82 ) AS INTEGER ), - - 21 ) AS col0, - 72 AS col1
----
-10
-72

query I rowsort
SELECT ALL 55 - + 67 + 84 AS col0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-9232
SELECT + 67 * - + 31 * COUNT( 22 )
----
-2077

skipif mysql # not compatible
query I rowsort label-9232
SELECT + 67 * - + 31 * COUNT ( 22 )
----
-2077

onlyif mysql # aggregate syntax: 
query I rowsort label-9233
SELECT SUM( - + 92 )
----
-92

skipif mysql # not compatible
query I rowsort label-9233
SELECT SUM ( - + 92 )
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-9234
SELECT ALL + COUNT( * ) - - 45 AS col0
----
46

skipif mysql # not compatible
query I rowsort label-9234
SELECT ALL + COUNT ( * ) - - 45 AS col0
----
46

query I rowsort
SELECT + 45 * + 36 * + 28 + - 10
----
45350

onlyif mysql # aggregate syntax: 
query I rowsort label-9236
SELECT DISTINCT - COUNT( * ) * 13 * - 60
----
780

skipif mysql # not compatible
query I rowsort label-9236
SELECT DISTINCT - COUNT ( * ) * 13 * - 60
----
780

onlyif mysql # aggregate syntax: 
query I rowsort label-9237
SELECT - MIN( - 40 ) AS col0
----
40

skipif mysql # not compatible
query I rowsort label-9237
SELECT - MIN ( - 40 ) AS col0
----
40

onlyif mysql # aggregate syntax: 
query II rowsort label-9238
SELECT - COALESCE ( 28, - MAX( + 87 ) ) + + MIN( DISTINCT + 62 ) AS col2, 11 * + COUNT( * ) + + 70 AS col2
----
34
81

skipif mysql # not compatible
query II rowsort label-9238
SELECT - COALESCE ( 28, - MAX ( + 87 ) ) + + MIN ( DISTINCT + 62 ) AS col2, 11 * + COUNT ( * ) + + 70 AS col2
----
34
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9239
SELECT ALL - - 99 * 19 / + COALESCE ( - COUNT( * ), + CAST( - 55 AS SIGNED ), - 9 / + 12 + + - ( 55 ) ) * 80 + + - 90 + 66 + - + 36 * + - CASE 78 WHEN + + 82 / - 80 + - + COUNT( * ) - - 0 THEN - 70 * + 33 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9239
SELECT ALL - - 99 * 19 / + COALESCE ( - COUNT ( * ), + CAST ( - 55 AS INTEGER ), - 9 / + 12 + + - ( 55 ) ) * 80 + + - 90 + 66 + - + 36 * + - CASE 78 WHEN + + 82 / - 80 + - + COUNT ( * ) - - 0 THEN - 70 * + 33 END AS col1
----
NULL

query I rowsort
SELECT DISTINCT 51 * + + 37
----
1887

onlyif mysql # aggregate syntax: 
query I rowsort label-9241
SELECT ALL - ( MIN( 99 ) )
----
-99

skipif mysql # not compatible
query I rowsort label-9241
SELECT ALL - ( MIN ( 99 ) )
----
-99

query I rowsort
SELECT + 95 + + 22 * + 22 + - 80 AS col2
----
499

onlyif mysql # aggregate syntax: 
query I rowsort label-9243
SELECT - - COUNT( * ) * - 82 AS col1
----
-82

skipif mysql # not compatible
query I rowsort label-9243
SELECT - - COUNT ( * ) * - 82 AS col1
----
-82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9244
SELECT ALL - ( + + COUNT( * ) ) * - + 92 DIV - + 81
----
-1

skipif mysql # not compatible
query I rowsort label-9244
SELECT ALL - ( + + COUNT ( * ) ) * - + 92 / - + 81
----
-1

query I rowsort
SELECT + 66 + + 9 AS col1
----
75

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9246
SELECT + MIN( DISTINCT + CASE + + 6 WHEN - - 27 THEN + - 23 END ) / - - CAST( NULL AS DECIMAL ) / - 33 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9246
SELECT + MIN ( DISTINCT + CASE + + 6 WHEN - - 27 THEN + - 23 END ) / - - CAST ( NULL AS REAL ) / - 33 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9247
SELECT - + COUNT( * ) + + 17 + - 21 * 44 * - 78
----
72088

skipif mysql # not compatible
query I rowsort label-9247
SELECT - + COUNT ( * ) + + 17 + - 21 * 44 * - 78
----
72088

query I rowsort
SELECT DISTINCT + - 82 + + - 30 * 34 + - 84
----
-1186

onlyif mysql # aggregate syntax: 
query II rowsort label-9249
SELECT - - 95 AS col1, MIN( 38 ) AS col1
----
95
38

skipif mysql # not compatible
query II rowsort label-9249
SELECT - - 95 AS col1, MIN ( 38 ) AS col1
----
95
38

query I rowsort
SELECT - - 65 + + + 94 AS col1
----
159

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9251
SELECT ALL + + 32 + ( - COUNT( 76 ) ) + + 48, ( + + 43 ) + + 67 DIV 22 + - 90 AS col2
----
79
-44

skipif mysql # not compatible
query II rowsort label-9251
SELECT ALL + + 32 + ( - COUNT ( 76 ) ) + + 48, ( + + 43 ) + + 67 / 22 + - 90 AS col2
----
79
-44

query I rowsort
SELECT - 64 * 67
----
-4288

query I rowsort
SELECT DISTINCT - 56 * - 22
----
1232

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9254
SELECT ALL - 38 * CASE + 29 WHEN 39 THEN + - CAST( + 91 AS SIGNED ) + - CASE + 23 WHEN - 58 THEN NULL WHEN + ( - - 69 ) THEN NULL ELSE 69 + - SUM( - 99 ) END + - 69 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9254
SELECT ALL - 38 * CASE + 29 WHEN 39 THEN + - CAST ( + 91 AS INTEGER ) + - CASE + 23 WHEN - 58 THEN NULL WHEN + ( - - 69 ) THEN NULL ELSE 69 + - SUM ( - 99 ) END + - 69 END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9255
SELECT ALL 67 DIV 78 - + 84 + 70 * + + 36
----
2436

skipif mysql # not compatible
query I rowsort label-9255
SELECT ALL 67 / 78 - + 84 + 70 * + + 36
----
2436

query I rowsort
SELECT ALL + COALESCE ( - 3, - + 61, - 19 )
----
-3

query II rowsort
SELECT + 53 col1, 7
----
53
7

query I rowsort
SELECT + CASE - 39 WHEN - - 10 * + 64 - + + 34 THEN NULL ELSE - + ( - - 34 ) END AS col0
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-9259
SELECT ( - COUNT( DISTINCT - - 45 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-9259
SELECT ( - COUNT ( DISTINCT - - 45 ) )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9260
SELECT ALL COALESCE ( + CAST( NULL AS SIGNED ), - ( - + 79 ) DIV + + 24, + + 83 * CASE WHEN NOT + 75 IS NULL THEN + 9 END, - 10 ) * + 86 - + COUNT( * ) + - COUNT( * ) * + + 20 * - 74 + + 83
----
1820

skipif mysql # not compatible
query I rowsort label-9260
SELECT ALL COALESCE ( + CAST ( NULL AS INTEGER ), - ( - + 79 ) / + + 24, + + 83 * CASE WHEN NOT + 75 IS NULL THEN + 9 END, - 10 ) * + 86 - + COUNT ( * ) + - COUNT ( * ) * + + 20 * - 74 + + 83
----
1820

query I rowsort
SELECT ALL + 26 * + 34 - + - NULLIF ( + 46, + AVG ( + - 36 ) * 19 - 39 ) * 38 + - 47
----
2585

query II rowsort
SELECT + 67 * 86 AS col2, - 61
----
5762
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-9263
SELECT COUNT( * ) * 3 + + ( + 96 )
----
99

skipif mysql # not compatible
query I rowsort label-9263
SELECT COUNT ( * ) * 3 + + ( + 96 )
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9264
SELECT + 44 * - CASE + 87 WHEN + - COUNT( * ) * + 41 * - 6 THEN CASE + + CAST( NULL AS SIGNED ) WHEN - 59 * 77 THEN 96 + 76 / + - 96 ELSE NULL END * - 64 - + 58 + - 49 WHEN + - 16 * + COUNT( * ) * + - 91 THEN NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9264
SELECT + 44 * - CASE + 87 WHEN + - COUNT ( * ) * + 41 * - 6 THEN CASE + + CAST ( NULL AS INTEGER ) WHEN - 59 * 77 THEN 96 + 76 / + - 96 ELSE NULL END * - 64 - + 58 + - 49 WHEN + - 16 * + COUNT ( * ) * + - 91 THEN NULL END col1
----
NULL

query I rowsort
SELECT + 2 * + 72
----
144

query I rowsort
SELECT ALL + 76 * 44 * 19
----
63536

onlyif mysql # aggregate syntax: 
query I rowsort label-9267
SELECT - ( SUM( + 47 ) ) + 45 + COUNT( 47 ) * 49
----
47

skipif mysql # not compatible
query I rowsort label-9267
SELECT - ( SUM ( + 47 ) ) + 45 + COUNT ( 47 ) * 49
----
47

query II rowsort
SELECT + ( + 45 ), 50 col2
----
45
50

onlyif mysql # aggregate syntax: 
query I rowsort label-9269
SELECT - SUM( - 6 ) + 46 AS col1
----
52

skipif mysql # not compatible
query I rowsort label-9269
SELECT - SUM ( - 6 ) + 46 AS col1
----
52

query I rowsort
SELECT + - 71 * ( 22 ) + + - 21 AS col2
----
-1583

onlyif mysql # aggregate syntax: 
query I rowsort label-9271
SELECT + - 13 * - COUNT( * ) - + 76
----
-63

skipif mysql # not compatible
query I rowsort label-9271
SELECT + - 13 * - COUNT ( * ) - + 76
----
-63

onlyif mysql # aggregate syntax: 
query II rowsort label-9272
SELECT - 51 * COUNT( * ) + 32 + + 60 * - - 71 * + 12, 15 AS col2
----
51101
15

skipif mysql # not compatible
query II rowsort label-9272
SELECT - 51 * COUNT ( * ) + 32 + + 60 * - - 71 * + 12, 15 AS col2
----
51101
15

onlyif mysql # aggregate syntax: 
query I rowsort label-9273
SELECT ALL - 21 * + - 32 + - COUNT( DISTINCT - 29 )
----
671

skipif mysql # not compatible
query I rowsort label-9273
SELECT ALL - 21 * + - 32 + - COUNT ( DISTINCT - 29 )
----
671

onlyif mysql # aggregate syntax: 
query II rowsort label-9274
SELECT ALL 83 AS col1, - 52 + NULLIF ( + 92, - 58 + - MAX( + + 26 ) ) + - MIN( + - 61 )
----
83
101

skipif mysql # not compatible
query II rowsort label-9274
SELECT ALL 83 AS col1, - 52 + NULLIF ( + 92, - 58 + - MAX ( + + 26 ) ) + - MIN ( + - 61 )
----
83
101

onlyif mysql # aggregate syntax: 
query I rowsort label-9275
SELECT ALL + - COUNT( * ) * - - 42 + - 20
----
-62

skipif mysql # not compatible
query I rowsort label-9275
SELECT ALL + - COUNT ( * ) * - - 42 + - 20
----
-62

onlyif mysql # aggregate syntax: 
query II rowsort label-9276
SELECT - 36 + + ( - + MAX( ALL 71 ) ) * - - 0 * - 7 col2, + 68
----
-36
68

skipif mysql # not compatible
query II rowsort label-9276
SELECT - 36 + + ( - + MAX ( ALL 71 ) ) * - - 0 * - 7 col2, + 68
----
-36
68

onlyif mysql # aggregate syntax: 
query I rowsort label-9277
SELECT + + MIN( - - 46 ) * - 81 AS col1
----
-3726

skipif mysql # not compatible
query I rowsort label-9277
SELECT + + MIN ( - - 46 ) * - 81 AS col1
----
-3726

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9278
SELECT + CAST( + 86 AS SIGNED ) + + 88
----
174

skipif mysql # not compatible
query I rowsort label-9278
SELECT + CAST ( + 86 AS INTEGER ) + + 88
----
174

onlyif mysql # aggregate syntax: 
query I rowsort label-9279
SELECT + COUNT( * ) + 78 + + + 25 * - + 88 * + + 39
----
-85721

skipif mysql # not compatible
query I rowsort label-9279
SELECT + COUNT ( * ) + 78 + + + 25 * - + 88 * + + 39
----
-85721

onlyif mysql # aggregate syntax: 
query I rowsort label-9280
SELECT 33 * - 73 - - COUNT( * ) - - COUNT( * )
----
-2407

skipif mysql # not compatible
query I rowsort label-9280
SELECT 33 * - 73 - - COUNT ( * ) - - COUNT ( * )
----
-2407

query I rowsort
SELECT ALL + 5 + 4 * + 80
----
325

query I rowsort
SELECT NULLIF ( + + 59, + 96 ) + + 61 + + 74
----
194

query I rowsort
SELECT DISTINCT 21 * - 57
----
-1197

query II rowsort
SELECT - - 41 AS col0, 65
----
41
65

query I rowsort
SELECT ALL 69 * 28
----
1932

onlyif mysql # aggregate syntax: 
query II rowsort label-9286
SELECT DISTINCT COALESCE ( + 65, 66 * - - 53, - 15 + 41 ) AS col0, - NULLIF ( + 0, + COUNT( * ) )
----
65
0

skipif mysql # not compatible
query II rowsort label-9286
SELECT DISTINCT COALESCE ( + 65, 66 * - - 53, - 15 + 41 ) AS col0, - NULLIF ( + 0, + COUNT ( * ) )
----
65
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9287
SELECT DISTINCT - NULLIF ( + 66, - COALESCE ( - + 72, + + 44, + - CAST( NULL AS DECIMAL ) ) ) * 29
----
-1914

skipif mysql # not compatible
query I rowsort label-9287
SELECT DISTINCT - NULLIF ( + 66, - COALESCE ( - + 72, + + 44, + - CAST ( NULL AS REAL ) ) ) * 29
----
-1914

query I rowsort
SELECT 44 + + + 77
----
121

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-9289
SELECT 83 * CAST( NULL AS DECIMAL ) AS col2, - 45 * - + 80 + CAST( + 45 AS SIGNED ) AS col0
----
NULL
3645

skipif mysql # not compatible
query II rowsort label-9289
SELECT 83 * CAST ( NULL AS REAL ) AS col2, - 45 * - + 80 + CAST ( + 45 AS INTEGER ) AS col0
----
NULL
3645

query I rowsort
SELECT ( + 95 ) + - 35 * - 21 * 77 + 41
----
56731

onlyif mysql # DIV for integer division: 
query I rowsort label-9291
SELECT 89 DIV COALESCE ( 27, 99 * 34 + 59 ) col2
----
3

skipif mysql # not compatible
query I rowsort label-9291
SELECT 89 / COALESCE ( 27, 99 * 34 + 59 ) col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9292
SELECT 79 + - COUNT( * ) * + 78 * + + 47 AS col0
----
-3587

skipif mysql # not compatible
query I rowsort label-9292
SELECT 79 + - COUNT ( * ) * + 78 * + + 47 AS col0
----
-3587

query II rowsort
SELECT 82 * + 73, - ( + 52 ) AS col0
----
5986
-52

onlyif mysql # aggregate syntax: 
query II rowsort label-9294
SELECT 8 + COUNT( * ), - 83 * 45 * 62 AS col1
----
9
-231570

skipif mysql # not compatible
query II rowsort label-9294
SELECT 8 + COUNT ( * ), - 83 * 45 * 62 AS col1
----
9
-231570

query II rowsort
SELECT ALL + 8 * 14 AS col1, 86
----
112
86

query II rowsort
SELECT 98 * - 23 AS col0, - 20
----
-2254
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-9297
SELECT - 81 * - 0 + + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-9297
SELECT - 81 * - 0 + + + COUNT ( * )
----
1

query I rowsort
SELECT DISTINCT + 91 * - + 58 * - + 18
----
95004

query I rowsort
SELECT ALL + + NULLIF ( + - 26, - + ( + + ( + + 55 ) ) ) + + 64
----
38

onlyif mysql # aggregate syntax: 
query II rowsort label-9300
SELECT ALL - - ( + 58 ), + 64 + COALESCE ( - + COUNT( * ), - 96 ) AS col0
----
58
63

skipif mysql # not compatible
query II rowsort label-9300
SELECT ALL - - ( + 58 ), + 64 + COALESCE ( - + COUNT ( * ), - 96 ) AS col0
----
58
63

query I rowsort
SELECT DISTINCT - 28 + - + 87 * + 27 + 42
----
-2335

onlyif mysql # aggregate syntax: 
query I rowsort label-9302
SELECT DISTINCT NULLIF ( 83, 69 + 87 ) * + COUNT( * ) AS col2
----
83

skipif mysql # not compatible
query I rowsort label-9302
SELECT DISTINCT NULLIF ( 83, 69 + 87 ) * + COUNT ( * ) AS col2
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-9303
SELECT - 81 DIV 99
----
0

skipif mysql # not compatible
query I rowsort label-9303
SELECT - 81 / 99
----
0

query I rowsort
SELECT DISTINCT - 68 + 82 * 52 AS col1
----
4196

onlyif mysql # aggregate syntax: 
query I rowsort label-9305
SELECT ALL ( NULLIF ( - COUNT( * ), NULLIF ( - + 41, + + 86 ) * - + 58 * 12 + + 75 ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9305
SELECT ALL ( NULLIF ( - COUNT ( * ), NULLIF ( - + 41, + + 86 ) * - + 58 * 12 + + 75 ) ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9306
SELECT - COUNT( - 98 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9306
SELECT - COUNT ( - 98 ) AS col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9307
SELECT + 48 DIV + 62 * - 19 * MAX( 93 )
----
0

skipif mysql # not compatible
query I rowsort label-9307
SELECT + 48 / + 62 * - 19 * MAX ( 93 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9308
SELECT 45 * COUNT( 24 ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9308
SELECT 45 * COUNT ( 24 ) * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - 76 * + 93 - + NULLIF ( 72, - 59 ) + - - 90 * 97 AS col2
----
1590

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-9310
SELECT DISTINCT - - 98 + + 72, 90 * + COUNT( ALL 90 ) AS col2, 71 DIV - NULLIF ( - 21, - + 32 ) col1
----
170
90
3

skipif mysql # not compatible
query III rowsort label-9310
SELECT DISTINCT - - 98 + + 72, 90 * + COUNT ( ALL 90 ) AS col2, 71 / - NULLIF ( - 21, - + 32 ) col1
----
170
90
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9311
SELECT ALL 14 + + + 97 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9311
SELECT ALL 14 + + + 97 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 81 - - 32 AS col1
----
113

query II rowsort
SELECT 4 + - - 17 AS col1, - 94 col1
----
21
-94

query I rowsort
SELECT 89 + + 20 - + 42 + + + 29
----
96

query I rowsort
SELECT DISTINCT 40 - 73
----
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-9316
SELECT - COUNT( * ), - MIN( + 96 ) * + + 26 + + + 99 AS col1
----
-1
-2397

skipif mysql # not compatible
query II rowsort label-9316
SELECT - COUNT ( * ), - MIN ( + 96 ) * + + 26 + + + 99 AS col1
----
-1
-2397

onlyif mysql # aggregate syntax: 
query I rowsort label-9317
SELECT COUNT( * ) + + - 47 * - 67
----
3150

skipif mysql # not compatible
query I rowsort label-9317
SELECT COUNT ( * ) + + - 47 * - 67
----
3150

query I rowsort
SELECT DISTINCT 98 * + ( - 33 ) * 85 * + + 9 + 43 * + 18
----
-2473236

query I rowsort
SELECT 8 * - 29 * - ( 20 ) AS col0
----
4640

onlyif mysql # aggregate syntax: 
query I rowsort label-9320
SELECT SUM( DISTINCT - 49 ) AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-9320
SELECT SUM ( DISTINCT - 49 ) AS col2
----
-49

query II rowsort
SELECT ALL - 49 AS col2, - 24 col0
----
-49
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-9322
SELECT ALL - SUM( DISTINCT + 59 ) AS col1
----
-59

skipif mysql # not compatible
query I rowsort label-9322
SELECT ALL - SUM ( DISTINCT + 59 ) AS col1
----
-59

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9323
SELECT 88, - 15 DIV - - CAST( 73 AS SIGNED ) col1
----
88
0

skipif mysql # not compatible
query II rowsort label-9323
SELECT 88, - 15 / - - CAST ( 73 AS INTEGER ) col1
----
88
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9324
SELECT ALL - 30 + + COUNT( * ) AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-9324
SELECT ALL - 30 + + COUNT ( * ) AS col0
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-9325
SELECT + COUNT( * ) + + 32 col1
----
33

skipif mysql # not compatible
query I rowsort label-9325
SELECT + COUNT ( * ) + + 32 col1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-9326
SELECT + MAX( ALL 86 ) AS col1
----
86

skipif mysql # not compatible
query I rowsort label-9326
SELECT + MAX ( ALL 86 ) AS col1
----
86

query I rowsort
SELECT + + 50 + - + 54 AS col0
----
-4

query I rowsort
SELECT ALL + 39 * + 85 + 51 + - 11 AS col2
----
3355

query II rowsort
SELECT DISTINCT + + 62 AS col0, 49 AS col0
----
62
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9330
SELECT - - 64 * - + CAST( NULL AS SIGNED ) + - - COUNT( * ) * + + 7
----
NULL

skipif mysql # not compatible
query I rowsort label-9330
SELECT - - 64 * - + CAST ( NULL AS INTEGER ) + - - COUNT ( * ) * + + 7
----
NULL

query II rowsort
SELECT + - 1, - 48 col0
----
-1
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-9332
SELECT DISTINCT COUNT( * ) AS col2, 82 AS col2
----
1
82

skipif mysql # not compatible
query II rowsort label-9332
SELECT DISTINCT COUNT ( * ) AS col2, 82 AS col2
----
1
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-9333
SELECT ALL - 89 + + + COUNT( * ) + COUNT( * ) + 59 - + 54 + AVG ( DISTINCT - - CAST( NULL AS DECIMAL ) ) * + 26 - - AVG ( ALL - + CAST( NULL AS SIGNED ) ) * + 88 + - COUNT( ALL + 25 ), CAST( NULL AS SIGNED ) * + 84 * - MIN( ALL + 21 )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9333
SELECT ALL - 89 + + + COUNT ( * ) + COUNT ( * ) + 59 - + 54 + AVG ( DISTINCT - - CAST ( NULL AS REAL ) ) * + 26 - - AVG ( ALL - + CAST ( NULL AS INTEGER ) ) * + 88 + - COUNT ( ALL + 25 ), CAST ( NULL AS INTEGER ) * + 84 * - MIN ( ALL + 21 )
----
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9334
SELECT 83 * 52 DIV + + 7 + + + 10 + + + 18 + + + 61 * 47 + + + 14 + + 59 col1
----
3584

skipif mysql # not compatible
query I rowsort label-9334
SELECT 83 * 52 / + + 7 + + + 10 + + + 18 + + + 61 * 47 + + + 14 + + 59 col1
----
3584

query I rowsort
SELECT ALL - 78 * - + 20
----
1560

query II rowsort
SELECT DISTINCT 8 AS col1, 10
----
8
10

query II rowsort
SELECT DISTINCT + 67, 57 col1
----
67
57

query I rowsort
SELECT ALL + 23 * + 42 AS col2
----
966

onlyif mysql # aggregate syntax: 
query I rowsort label-9339
SELECT - + ( + - COUNT( * ) ) * + 44 AS col0
----
44

skipif mysql # not compatible
query I rowsort label-9339
SELECT - + ( + - COUNT ( * ) ) * + 44 AS col0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-9340
SELECT ALL MAX( DISTINCT - 37 ) AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-9340
SELECT ALL MAX ( DISTINCT - 37 ) AS col0
----
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9341
SELECT DISTINCT - SUM( DISTINCT 11 ) - COALESCE ( + - COALESCE ( + - SUM( + 58 ), + + NULLIF ( + MIN( DISTINCT + 88 ), 66 ) ), + - 78 ) + - + 68 DIV + 49 AS col2, - 68
----
-70
-68

skipif mysql # not compatible
query II rowsort label-9341
SELECT DISTINCT - SUM ( DISTINCT 11 ) - COALESCE ( + - COALESCE ( + - SUM ( + 58 ), + + NULLIF ( + MIN ( DISTINCT + 88 ), 66 ) ), + - 78 ) + - + 68 / + 49 AS col2, - 68
----
-70
-68

query I rowsort
SELECT + CASE + 99 WHEN 30 THEN - 58 ELSE - 45 * - 59 END AS col1
----
2655

query I rowsort
SELECT + + 68 + + 51
----
119

query I rowsort
SELECT ALL - - NULLIF ( - - 15, + 85 * + 88 * - 25 ) * ( - + 18 ) + - - 14
----
-256

query I rowsort
SELECT + 69 + - 39 AS col0
----
30

query I rowsort
SELECT ALL - 80 * 61 AS col1
----
-4880

onlyif mysql # aggregate syntax: 
query I rowsort label-9347
SELECT ALL + 8 * + CASE COUNT( * ) WHEN + 71 THEN + MAX( ( 17 ) ) WHEN + + 42 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9347
SELECT ALL + 8 * + CASE COUNT ( * ) WHEN + 71 THEN + MAX ( ( 17 ) ) WHEN + + 42 THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9348
SELECT - 15 + + + COUNT( * ) + - - 0 + - + COUNT( * )
----
-15

skipif mysql # not compatible
query I rowsort label-9348
SELECT - 15 + + + COUNT ( * ) + - - 0 + - + COUNT ( * )
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9349
SELECT + CASE + 81 WHEN 77 THEN NULL WHEN - 37 + - CAST( NULL AS SIGNED ) * - COUNT( * ) + + CAST( NULL AS SIGNED ) * + 24 THEN + 48 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9349
SELECT + CASE + 81 WHEN 77 THEN NULL WHEN - 37 + - CAST ( NULL AS INTEGER ) * - COUNT ( * ) + + CAST ( NULL AS INTEGER ) * + 24 THEN + 48 END
----
NULL

query I rowsort
SELECT ( 46 ) AS col0
----
46

query I rowsort
SELECT + ( + - 10 )
----
-10

query I rowsort
SELECT ALL + 17 * - + 11 + - + 25 AS col0
----
-212

query I rowsort
SELECT 9 * - - 60 + + 46 AS col1
----
586

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9354
SELECT + CASE 22 WHEN + 74 THEN + 83 - + + CAST( + COUNT( * ) AS SIGNED ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9354
SELECT + CASE 22 WHEN + 74 THEN + 83 - + + CAST ( + COUNT ( * ) AS INTEGER ) ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 23 * - 25 + + 16
----
-559

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9356
SELECT ALL - COUNT( * ) * - 16 + + - 13 + + 17 * + 31 DIV - COUNT( DISTINCT + 18 ) AS col0
----
-524

skipif mysql # not compatible
query I rowsort label-9356
SELECT ALL - COUNT ( * ) * - 16 + + - 13 + + 17 * + 31 / - COUNT ( DISTINCT + 18 ) AS col0
----
-524

query I rowsort
SELECT ALL + + 80 col1
----
80

query I rowsort
SELECT + + 5 col0
----
5

query I rowsort
SELECT + + 62 * + 76 + 85 AS col2
----
4797

onlyif mysql # aggregate syntax: 
query I rowsort label-9360
SELECT + + ( - + 23 ) * - 22 * NULLIF ( - 95, + 33 ) + - - COUNT( * ) * + 19 * - 33 - + + COUNT( * ) - + 61
----
-48759

skipif mysql # not compatible
query I rowsort label-9360
SELECT + + ( - + 23 ) * - 22 * NULLIF ( - 95, + 33 ) + - - COUNT ( * ) * + 19 * - 33 - + + COUNT ( * ) - + 61
----
-48759

query I rowsort
SELECT + NULLIF ( - + 25, + 50 ) AS col2
----
-25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9362
SELECT + + 13 DIV - 89 DIV + - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-9362
SELECT + + 13 / - 89 / + - COUNT ( * )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9363
SELECT ALL + CAST( - 87 AS SIGNED ) AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-9363
SELECT ALL + CAST ( - 87 AS INTEGER ) AS col2
----
-87

onlyif mysql # aggregate syntax: 
query II rowsort label-9364
SELECT + - COUNT( * ) * - 95 col1, 74 AS col2
----
95
74

skipif mysql # not compatible
query II rowsort label-9364
SELECT + - COUNT ( * ) * - 95 col1, 74 AS col2
----
95
74

onlyif mysql # aggregate syntax: 
query I rowsort label-9365
SELECT ALL - - 60 * + 82 + + COUNT( * ) + - ( 48 ) * - 95 + + 85 + + 10
----
9576

skipif mysql # not compatible
query I rowsort label-9365
SELECT ALL - - 60 * + 82 + + COUNT ( * ) + - ( 48 ) * - 95 + + 85 + + 10
----
9576

onlyif mysql # aggregate syntax: 
query I rowsort label-9366
SELECT ALL + + CASE WHEN NOT COUNT( * ) IS NOT NULL THEN - 15 / - COUNT( * ) / 97 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9366
SELECT ALL + + CASE WHEN NOT COUNT ( * ) IS NOT NULL THEN - 15 / - COUNT ( * ) / 97 END AS col1
----
NULL

query I rowsort
SELECT - COALESCE ( + 40, - 34 + + 99 * + - ( - + 98 ), + - 95 ) col2
----
-40

query I rowsort
SELECT + 19 - - 56 * - 3
----
-149

onlyif mysql # aggregate syntax: 
query I rowsort label-9369
SELECT - ( SUM( ALL - + 94 ) ) * + 80 AS col0
----
7520

skipif mysql # not compatible
query I rowsort label-9369
SELECT - ( SUM ( ALL - + 94 ) ) * + 80 AS col0
----
7520

onlyif mysql # aggregate syntax: 
query I rowsort label-9370
SELECT - + COUNT( * ) * - 62
----
62

skipif mysql # not compatible
query I rowsort label-9370
SELECT - + COUNT ( * ) * - 62
----
62

query I rowsort
SELECT - ( - + 27 ) - 15 * 22
----
-303

onlyif mysql # aggregate syntax: 
query I rowsort label-9372
SELECT ALL NULLIF ( - + 83, + COUNT( * ) * + 9 + + 85 ) AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-9372
SELECT ALL NULLIF ( - + 83, + COUNT ( * ) * + 9 + + 85 ) AS col0
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-9373
SELECT - MAX( - 9 ) + - CASE - - 84 WHEN - 39 THEN 16 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9373
SELECT - MAX ( - 9 ) + - CASE - - 84 WHEN - 39 THEN 16 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9374
SELECT ALL + 49 DIV 55 DIV + - COUNT( * ) * + 46 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9374
SELECT ALL + 49 / 55 / + - COUNT ( * ) * + 46 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9375
SELECT - NULLIF ( + 29, - 88 / + - COUNT( * ) * - COUNT( * ) ) * - 65 * + 41
----
77285

skipif mysql # not compatible
query I rowsort label-9375
SELECT - NULLIF ( + 29, - 88 / + - COUNT ( * ) * - COUNT ( * ) ) * - 65 * + 41
----
77285

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9376
SELECT - 80 - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9376
SELECT - 80 - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 91 * 91
----
-8281

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9378
SELECT + 97 + CAST( + 23 AS SIGNED ) AS col0
----
120

skipif mysql # not compatible
query I rowsort label-9378
SELECT + 97 + CAST ( + 23 AS INTEGER ) AS col0
----
120

query I rowsort
SELECT ALL - 77 + + 35
----
-42

query I rowsort
SELECT - 85 * + - 16 col2
----
1360

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9381
SELECT ALL - 86 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9381
SELECT ALL - 86 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9382
SELECT + CASE - - 38 WHEN CAST( NULL AS SIGNED ) THEN + 49 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9382
SELECT + CASE - - 38 WHEN CAST ( NULL AS INTEGER ) THEN + 49 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9383
SELECT ALL - 96 DIV - 80 + - 30
----
-29

skipif mysql # not compatible
query I rowsort label-9383
SELECT ALL - 96 / - 80 + - 30
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9384
SELECT + NULLIF ( 93, - CAST( - 71 AS SIGNED ) ) AS col2
----
93

skipif mysql # not compatible
query I rowsort label-9384
SELECT + NULLIF ( 93, - CAST ( - 71 AS INTEGER ) ) AS col2
----
93

query I rowsort
SELECT 48 * 44 * - + 32 AS col2
----
-67584

onlyif mysql # aggregate syntax: 
query I rowsort label-9386
SELECT DISTINCT - MAX( + 35 ) AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-9386
SELECT DISTINCT - MAX ( + 35 ) AS col1
----
-35

query I rowsort
SELECT DISTINCT - - COALESCE ( + COALESCE ( - 27, + 11 ), 36, - 36 ) col0
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9388
SELECT ALL - - CAST( + - COALESCE ( + - 98, 38 ) AS SIGNED ) DIV + SUM( - NULLIF ( - 86, 91 ) ) - + ( - 83 )
----
84

skipif mysql # not compatible
query I rowsort label-9388
SELECT ALL - - CAST ( + - COALESCE ( + - 98, 38 ) AS INTEGER ) / + SUM ( - NULLIF ( - 86, 91 ) ) - + ( - 83 )
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9389
SELECT DISTINCT - - NULLIF ( + - 4, - 22 * - ( - COUNT( * ) ) * + 2 + + 74 * - + ( + 58 ) )
----
-4

skipif mysql # not compatible
query I rowsort label-9389
SELECT DISTINCT - - NULLIF ( + - 4, - 22 * - ( - COUNT ( * ) ) * + 2 + + 74 * - + ( + 58 ) )
----
-4

query I rowsort
SELECT DISTINCT + 28 * + 89 AS col1
----
2492

query I rowsort
SELECT + + 84 * - - 91 - 39
----
7605

onlyif mysql # DIV for integer division: 
query II rowsort label-9392
SELECT - ( + ( + 20 ) ), - 59 * 53 DIV - 13 AS col2
----
-20
240

skipif mysql # not compatible
query II rowsort label-9392
SELECT - ( + ( + 20 ) ), - 59 * 53 / - 13 AS col2
----
-20
240

onlyif mysql # aggregate syntax: 
query II rowsort label-9393
SELECT + MIN( DISTINCT 79 ) * - + 42 * + ( - 86 ) + 43 * - - 6 + + 11 col2, SUM( DISTINCT - 85 ) AS col2
----
285617
-85

skipif mysql # not compatible
query II rowsort label-9393
SELECT + MIN ( DISTINCT 79 ) * - + 42 * + ( - 86 ) + 43 * - - 6 + + 11 col2, SUM ( DISTINCT - 85 ) AS col2
----
285617
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-9394
SELECT DISTINCT - 2 DIV + 56
----
0

skipif mysql # not compatible
query I rowsort label-9394
SELECT DISTINCT - 2 / + 56
----
0

query I rowsort
SELECT ( + 48 ) + - 34 AS col2
----
14

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9396
SELECT CAST( + 89 AS SIGNED ) DIV - + 84 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9396
SELECT CAST ( + 89 AS INTEGER ) / - + 84 AS col0
----
-1

query II rowsort
SELECT DISTINCT 87, 36 col2
----
87
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9398
SELECT MAX( 14 ) + + 80 + - ( - MIN( DISTINCT + + 87 ) ) + 32 AS col0
----
213

skipif mysql # not compatible
query I rowsort label-9398
SELECT MAX ( 14 ) + + 80 + - ( - MIN ( DISTINCT + + 87 ) ) + 32 AS col0
----
213

query II rowsort
SELECT 74 col2, + 84
----
74
84

query II rowsort
SELECT ALL 93 AS col1, 91 + - - 83
----
93
174

query I rowsort
SELECT DISTINCT 68 + + 9
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9402
SELECT SUM( - - 26 ) * - + 13 AS col2
----
-338

skipif mysql # not compatible
query I rowsort label-9402
SELECT SUM ( - - 26 ) * - + 13 AS col2
----
-338

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9403
SELECT 27 + - COUNT( * ) + 79 DIV SUM( DISTINCT - 45 ) - 77 col0
----
-52

skipif mysql # not compatible
query I rowsort label-9403
SELECT 27 + - COUNT ( * ) + 79 / SUM ( DISTINCT - 45 ) - 77 col0
----
-52

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9404
SELECT 33 * + COALESCE ( 2, - 78 ) AS col0, 30 DIV - COUNT( * ) - - + 23 + 99 * + 67 * + 73 AS col0
----
66
484202

skipif mysql # not compatible
query II rowsort label-9404
SELECT 33 * + COALESCE ( 2, - 78 ) AS col0, 30 / - COUNT ( * ) - - + 23 + 99 * + 67 * + 73 AS col0
----
66
484202

onlyif mysql # aggregate syntax: 
query II rowsort label-9405
SELECT ALL + 45 + + 98 AS col1, - COUNT( * )
----
143
-1

skipif mysql # not compatible
query II rowsort label-9405
SELECT ALL + 45 + + 98 AS col1, - COUNT ( * )
----
143
-1

query I rowsort
SELECT 14 + + 34 * - 93 AS col0
----
-3148

query II rowsort
SELECT ALL 60 AS col0, ( + + 89 ) * + 58 AS col1
----
60
5162

onlyif mysql # DIV for integer division: 
query I rowsort label-9408
SELECT DISTINCT + 0 DIV - - 21
----
0

skipif mysql # not compatible
query I rowsort label-9408
SELECT DISTINCT + 0 / - - 21
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9409
SELECT ALL - 45 + + - 88 * + MAX( 92 )
----
-8141

skipif mysql # not compatible
query I rowsort label-9409
SELECT ALL - 45 + + - 88 * + MAX ( 92 )
----
-8141

query I rowsort
SELECT ( - - 6 ) * 39 - - 29 AS col1
----
263

query II rowsort
SELECT 25 AS col1, 57
----
25
57

query I rowsort
SELECT ( + - 79 ) + - 63
----
-142

query I rowsort
SELECT 49 - - + 25
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-9414
SELECT 23 + + COUNT( * ) AS col2
----
24

skipif mysql # not compatible
query I rowsort label-9414
SELECT 23 + + COUNT ( * ) AS col2
----
24

query I rowsort
SELECT 58 - + + 77
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-9416
SELECT SUM( 28 ) * - + COUNT( * ) * + - COUNT( * )
----
28

skipif mysql # not compatible
query I rowsort label-9416
SELECT SUM ( 28 ) * - + COUNT ( * ) * + - COUNT ( * )
----
28

query I rowsort
SELECT + - 20 col1
----
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-9418
SELECT ALL + 51 - - + 44 DIV 94
----
51

skipif mysql # not compatible
query I rowsort label-9418
SELECT ALL + 51 - - + 44 / 94
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9419
SELECT 7 + COUNT( * ) + + - ( - 30 ) + - 5 * + + 37 AS col1
----
-147

skipif mysql # not compatible
query I rowsort label-9419
SELECT 7 + COUNT ( * ) + + - ( - 30 ) + - 5 * + + 37 AS col1
----
-147

onlyif mysql # DIV for integer division: 
query I rowsort label-9420
SELECT DISTINCT + + 64 DIV - - 8 col2
----
8

skipif mysql # not compatible
query I rowsort label-9420
SELECT DISTINCT + + 64 / - - 8 col2
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9421
SELECT DISTINCT + + 39 * + SUM( DISTINCT + 48 )
----
1872

skipif mysql # not compatible
query I rowsort label-9421
SELECT DISTINCT + + 39 * + SUM ( DISTINCT + 48 )
----
1872

onlyif mysql # DIV for integer division: 
query I rowsort label-9422
SELECT 68 DIV 30 * + - 23 AS col0
----
-46

skipif mysql # not compatible
query I rowsort label-9422
SELECT 68 / 30 * + - 23 AS col0
----
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9423
SELECT - NULLIF ( - - 13, + 43 DIV 91 ) + - + ( + + 15 ) + + 84 AS col0, - NULLIF ( + - 55, + 31 - + COUNT( * ) + 89 - - - 59 ) DIV - 36 + - 78 + - 57 - 94 AS col0
----
56
-230

skipif mysql # not compatible
query II rowsort label-9423
SELECT - NULLIF ( - - 13, + 43 / 91 ) + - + ( + + 15 ) + + 84 AS col0, - NULLIF ( + - 55, + 31 - + COUNT ( * ) + 89 - - - 59 ) / - 36 + - 78 + - 57 - 94 AS col0
----
56
-230

query I rowsort
SELECT 76 * - 25
----
-1900

query I rowsort
SELECT + 57 + + 43
----
100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9426
SELECT COALESCE ( ( 52 ), - 14, - 74 * COUNT( * ) ) * 96 DIV 77 DIV - 21 + CAST( - 48 AS SIGNED ) AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-9426
SELECT COALESCE ( ( 52 ), - 14, - 74 * COUNT ( * ) ) * 96 / 77 / - 21 + CAST ( - 48 AS INTEGER ) AS col0
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9427
SELECT + ( - + 4 ) AS col0, - COUNT( * ) * CAST( - 44 AS SIGNED ) AS col0
----
-4
44

skipif mysql # not compatible
query II rowsort label-9427
SELECT + ( - + 4 ) AS col0, - COUNT ( * ) * CAST ( - 44 AS INTEGER ) AS col0
----
-4
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9428
SELECT - ( CASE + 27 WHEN + 33 * - + 56 - + 74 + - + 61 THEN - - 14 END ) * + CAST( COUNT( DISTINCT + 92 ) AS SIGNED ) + COUNT( * ) + + 43
----
NULL

skipif mysql # not compatible
query I rowsort label-9428
SELECT - ( CASE + 27 WHEN + 33 * - + 56 - + 74 + - + 61 THEN - - 14 END ) * + CAST ( COUNT ( DISTINCT + 92 ) AS INTEGER ) + COUNT ( * ) + + 43
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9429
SELECT DISTINCT - COALESCE ( - - ( + + COUNT( * ) ), - 26 + - + 54, + - 67 ) * + 46 col0
----
-46

skipif mysql # not compatible
query I rowsort label-9429
SELECT DISTINCT - COALESCE ( - - ( + + COUNT ( * ) ), - 26 + - + 54, + - 67 ) * + 46 col0
----
-46

query I rowsort
SELECT ALL 76 * - - 95 + + 56
----
7276

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9431
SELECT + 5 AS col0, + NULLIF ( - - NULLIF ( - 0, - + ( - - 80 ) * CAST( NULL AS SIGNED ) ), - SUM( 98 ) ) * + 81
----
5
0

skipif mysql # not compatible
query II rowsort label-9431
SELECT + 5 AS col0, + NULLIF ( - - NULLIF ( - 0, - + ( - - 80 ) * CAST ( NULL AS INTEGER ) ), - SUM ( 98 ) ) * + 81
----
5
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9432
SELECT - 64 * - COALESCE ( - - 79, - 67 * + 44 - - + 65, - 75 * + 40 ) + CASE + + 32 WHEN + 32 THEN 66 + + MAX( DISTINCT + + 80 ) END * + - 94 * - - ( + 7 ), 22 AS col1
----
-91012
22

skipif mysql # not compatible
query II rowsort label-9432
SELECT - 64 * - COALESCE ( - - 79, - 67 * + 44 - - + 65, - 75 * + 40 ) + CASE + + 32 WHEN + 32 THEN 66 + + MAX ( DISTINCT + + 80 ) END * + - 94 * - - ( + 7 ), 22 AS col1
----
-91012
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9433
SELECT MAX( 90 ) - 9 * 40 + - 87 DIV 61 * + - COUNT( * ) AS col2, 64 * + COALESCE ( + + MIN( + + ( + 70 ) ), - COALESCE ( + + 43, COUNT( * ) * - 10 * - 34 * + 49 + + - COUNT( * ) * 67 * - 96 ), + 1, - + 29 ) * COUNT( * )
----
-269
4480

skipif mysql # not compatible
query II rowsort label-9433
SELECT MAX ( 90 ) - 9 * 40 + - 87 / 61 * + - COUNT ( * ) AS col2, 64 * + COALESCE ( + + MIN ( + + ( + 70 ) ), - COALESCE ( + + 43, COUNT ( * ) * - 10 * - 34 * + 49 + + - COUNT ( * ) * 67 * - 96 ), + 1, - + 29 ) * COUNT ( * )
----
-269
4480

onlyif mysql # aggregate syntax: 
query I rowsort label-9434
SELECT ALL COUNT( * ) + 30 * 19
----
571

skipif mysql # not compatible
query I rowsort label-9434
SELECT ALL COUNT ( * ) + 30 * 19
----
571

onlyif mysql # aggregate syntax: 
query I rowsort label-9435
SELECT 82 - - - COALESCE ( - 44, 65 - + - SUM( ALL + 87 ) + + 24 ) * + MIN( + - 96 ) AS col0
----
-4142

skipif mysql # not compatible
query I rowsort label-9435
SELECT 82 - - - COALESCE ( - 44, 65 - + - SUM ( ALL + 87 ) + + 24 ) * + MIN ( + - 96 ) AS col0
----
-4142

query I rowsort
SELECT - NULLIF ( - ( - - 72 ), + - ( 99 ) ) AS col2
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9437
SELECT DISTINCT CAST( NULL AS SIGNED ) / + - NULLIF ( + 71, - + 38 + CASE + 8 WHEN - COUNT( ALL + 48 ) + - 91 THEN + 3 WHEN + 71 THEN + 36 ELSE NULL END ) / COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9437
SELECT DISTINCT CAST ( NULL AS INTEGER ) / + - NULLIF ( + 71, - + 38 + CASE + 8 WHEN - COUNT ( ALL + 48 ) + - 91 THEN + 3 WHEN + 71 THEN + 36 ELSE NULL END ) / COUNT ( * ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9438
SELECT DISTINCT 92 + - COUNT( * ) * + COUNT( * )
----
91

skipif mysql # not compatible
query I rowsort label-9438
SELECT DISTINCT 92 + - COUNT ( * ) * + COUNT ( * )
----
91

query I rowsort
SELECT ALL 56 * - 24 AS col1
----
-1344

query I rowsort
SELECT 23 + - + 68 + 93 + - 56 + + 85 * 49 * ( + 2 ) * + 17 * + 83
----
11753622

query I rowsort
SELECT DISTINCT 68 + - 93 + - + 79 * - ( + 66 ) * + - 91 * - - 72
----
-34162153

query II rowsort
SELECT DISTINCT + 14 - - 68 AS col2, 13 + - 54 AS col2
----
82
-41

query I rowsort
SELECT - NULLIF ( + 88, - 57 * + + 11 )
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-9444
SELECT - MIN( DISTINCT ( - - 26 ) ) * COUNT( + + 34 ) AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-9444
SELECT - MIN ( DISTINCT ( - - 26 ) ) * COUNT ( + + 34 ) AS col2
----
-26

onlyif mysql # aggregate syntax: 
query II rowsort label-9445
SELECT - COUNT( * ) + + 80 AS col2, 86 AS col2
----
79
86

skipif mysql # not compatible
query II rowsort label-9445
SELECT - COUNT ( * ) + + 80 AS col2, 86 AS col2
----
79
86

query II rowsort
SELECT DISTINCT ( + + 50 ) - 62 + - 44 * 27 AS col0, - 94 * + 11 AS col1
----
-1200
-1034

onlyif mysql # aggregate syntax: 
query II rowsort label-9447
SELECT + SUM( - 20 ) * COALESCE ( 17, 70 ) AS col2, 45
----
-340
45

skipif mysql # not compatible
query II rowsort label-9447
SELECT + SUM ( - 20 ) * COALESCE ( 17, 70 ) AS col2, 45
----
-340
45

query I rowsort
SELECT DISTINCT ( 24 )
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-9449
SELECT DISTINCT + MAX( + 56 ) - - - 77 * - 81
----
6293

skipif mysql # not compatible
query I rowsort label-9449
SELECT DISTINCT + MAX ( + 56 ) - - - 77 * - 81
----
6293

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9450
SELECT - COALESCE ( - + CASE - - 88 WHEN + CAST( - + 78 AS SIGNED ) + - ( - 22 ) + 14 THEN + 55 END, + 85 * + 11 ) AS col1
----
-935

skipif mysql # not compatible
query I rowsort label-9450
SELECT - COALESCE ( - + CASE - - 88 WHEN + CAST ( - + 78 AS INTEGER ) + - ( - 22 ) + 14 THEN + 55 END, + 85 * + 11 ) AS col1
----
-935

query I rowsort
SELECT ALL + - 79 col2
----
-79

query I rowsort
SELECT - + 50 * + - NULLIF ( - 25, + 17 ) AS col2
----
-1250

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9453
SELECT + - SUM( CAST( NULL AS DECIMAL ) ) + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9453
SELECT + - SUM ( CAST ( NULL AS REAL ) ) + COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9454
SELECT - + 1 DIV - - 6 + - + 56 AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-9454
SELECT - + 1 / - - 6 + - + 56 AS col2
----
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9455
SELECT + + CAST( + 49 AS SIGNED ) * 4 * 59
----
11564

skipif mysql # not compatible
query I rowsort label-9455
SELECT + + CAST ( + 49 AS INTEGER ) * 4 * 59
----
11564

query I rowsort
SELECT ALL - + 61 * - 46
----
2806

onlyif mysql # DIV for integer division: 
query I rowsort label-9457
SELECT - ( - 96 ) DIV + 63 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9457
SELECT - ( - 96 ) / + 63 AS col1
----
1

query I rowsort
SELECT - + 49 - 79
----
-128

query I rowsort
SELECT DISTINCT - - 19 * 19 AS col2
----
361

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9460
SELECT CAST( 58 AS SIGNED ) * - COUNT( * ) * - - 15 + 92 + - COUNT( * ) - + + 71 / + - 60 / - - COALESCE ( 97, + + 2 ) / 34 + - 8 + + 63 * - + AVG ( ALL - 53 ) - + CASE - 37 WHEN - 57 * COUNT( * ) + - - 99 THEN NULL WHEN AVG ( - + 88 ) THEN NULL WHEN - CASE - 56 WHEN + ( COUNT( * ) ) - + 50 + - SUM( - 63 ) + + 86 + - 48 * - - 37 THEN - MIN( ALL 77 ) WHEN 5 THEN - 20 - + 28 - - COUNT( * ) * - CASE - - 53 WHEN + - CAST( - 14 AS SIGNED ) THEN - - COUNT( * ) END END + + ( - CAST( NULL AS SIGNED ) ) THEN - 44 + + 51 * 45 END + - SUM( + ( ( 46 ) ) + - 23 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9460
SELECT CAST ( 58 AS INTEGER ) * - COUNT ( * ) * - - 15 + 92 + - COUNT ( * ) - + + 71 / + - 60 / - - COALESCE ( 97, + + 2 ) / 34 + - 8 + + 63 * - + AVG ( ALL - 53 ) - + CASE - 37 WHEN - 57 * COUNT ( * ) + - - 99 THEN NULL WHEN AVG ( - + 88 ) THEN NULL WHEN - CASE - 56 WHEN + ( COUNT ( * ) ) - + 50 + - SUM ( - 63 ) + + 86 + - 48 * - - 37 THEN - MIN ( ALL 77 ) WHEN 5 THEN - 20 - + 28 - - COUNT ( * ) * - CASE - - 53 WHEN + - CAST ( - 14 AS INTEGER ) THEN - - COUNT ( * ) END END + + ( - CAST ( NULL AS INTEGER ) ) THEN - 44 + + 51 * 45 END + - SUM ( + ( ( 46 ) ) + - 23 )
----
NULL

query II rowsort
SELECT - + 88 + + 48 AS col0, + 21 * - 85 AS col1
----
-40
-1785

query I rowsort
SELECT - 1 * + + 22 * 2 - 41 AS col2
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-9463
SELECT - SUM( ALL + + CASE + - 81 WHEN - 96 THEN + + 30 ELSE NULL END ) + ( 19 ) + 18
----
NULL

skipif mysql # not compatible
query I rowsort label-9463
SELECT - SUM ( ALL + + CASE + - 81 WHEN - 96 THEN + + 30 ELSE NULL END ) + ( 19 ) + 18
----
NULL

query I rowsort
SELECT + 81 - 52
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-9465
SELECT ALL + COUNT( ALL + 67 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9465
SELECT ALL + COUNT ( ALL + 67 ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9466
SELECT + NULLIF ( + 58, - CASE - + 39 WHEN + 76 + + + NULLIF ( - + CAST( + - 65 AS SIGNED ), - + 37 * + + CAST( 54 AS SIGNED ) ) + - + 17 THEN NULL WHEN 82 THEN + 76 END ) AS col0
----
58

skipif mysql # not compatible
query I rowsort label-9466
SELECT + NULLIF ( + 58, - CASE - + 39 WHEN + 76 + + + NULLIF ( - + CAST ( + - 65 AS INTEGER ), - + 37 * + + CAST ( 54 AS INTEGER ) ) + - + 17 THEN NULL WHEN 82 THEN + 76 END ) AS col0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9467
SELECT + SUM( - 64 ) * ( + 0 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9467
SELECT + SUM ( - 64 ) * ( + 0 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9468
SELECT + 90, SUM( DISTINCT + 71 ) AS col2
----
90
71

skipif mysql # not compatible
query II rowsort label-9468
SELECT + 90, SUM ( DISTINCT + 71 ) AS col2
----
90
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9469
SELECT ALL CAST( + 60 AS SIGNED ) * + CAST( NULL AS SIGNED ) * + 98 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9469
SELECT ALL CAST ( + 60 AS INTEGER ) * + CAST ( NULL AS INTEGER ) * + 98 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9470
SELECT ALL COALESCE ( 14, - COUNT( * ) DIV - 57 + + 96 )
----
14

skipif mysql # not compatible
query I rowsort label-9470
SELECT ALL COALESCE ( 14, - COUNT ( * ) / - 57 + + 96 )
----
14

query I rowsort
SELECT + 21 + + 13 + - 14
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9472
SELECT ALL - 27 - - CAST( - 1 AS SIGNED )
----
-28

skipif mysql # not compatible
query I rowsort label-9472
SELECT ALL - 27 - - CAST ( - 1 AS INTEGER )
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9473
SELECT + 97 + - - 70 - + + CAST( 44 AS SIGNED )
----
123

skipif mysql # not compatible
query I rowsort label-9473
SELECT + 97 + - - 70 - + + CAST ( 44 AS INTEGER )
----
123

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9474
SELECT ALL CAST( + 46 AS SIGNED )
----
46

skipif mysql # not compatible
query I rowsort label-9474
SELECT ALL CAST ( + 46 AS INTEGER )
----
46

query I rowsort
SELECT - 26 + 3
----
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9476
SELECT - 85 DIV + COUNT( * ) col2
----
-85

skipif mysql # not compatible
query I rowsort label-9476
SELECT - 85 / + COUNT ( * ) col2
----
-85

query I rowsort
SELECT + 91 * 32 AS col1
----
2912

query II rowsort
SELECT 45 AS col0, 73
----
45
73

onlyif mysql # aggregate syntax: 
query I rowsort label-9479
SELECT + SUM( ( + 18 ) ) + 81
----
99

skipif mysql # not compatible
query I rowsort label-9479
SELECT + SUM ( ( + 18 ) ) + 81
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9480
SELECT ALL - COUNT( * ) * 89 AS col0
----
-89

skipif mysql # not compatible
query I rowsort label-9480
SELECT ALL - COUNT ( * ) * 89 AS col0
----
-89

onlyif mysql # DIV for integer division: 
query II rowsort label-9481
SELECT ALL 67 DIV + ( + 81 ) col0, + ( - - 55 ) * + 90
----
0
4950

skipif mysql # not compatible
query II rowsort label-9481
SELECT ALL 67 / + ( + 81 ) col0, + ( - - 55 ) * + 90
----
0
4950

query I rowsort
SELECT + 72 + NULLIF ( - 96, + + 51 ) - - 39 AS col1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-9483
SELECT + COUNT( * ) * - 40 * - 69
----
2760

skipif mysql # not compatible
query I rowsort label-9483
SELECT + COUNT ( * ) * - 40 * - 69
----
2760

onlyif mysql # DIV for integer division: 
query II rowsort label-9484
SELECT ALL + ( + 85 ) DIV - 15, + 48 + + 68 col0
----
-5
116

skipif mysql # not compatible
query II rowsort label-9484
SELECT ALL + ( + 85 ) / - 15, + 48 + + 68 col0
----
-5
116

query I rowsort
SELECT + - 79 * + 40 AS col2
----
-3160

onlyif mysql # aggregate syntax: 
query I rowsort label-9486
SELECT + 42 + + - MAX( DISTINCT - + 71 ) + - 83 - - 12
----
42

skipif mysql # not compatible
query I rowsort label-9486
SELECT + 42 + + - MAX ( DISTINCT - + 71 ) + - 83 - - 12
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-9487
SELECT - + MIN( + 41 ) AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-9487
SELECT - + MIN ( + 41 ) AS col0
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9488
SELECT + COALESCE ( 8, + CAST( NULL AS SIGNED ) ) - + 41
----
-33

skipif mysql # not compatible
query I rowsort label-9488
SELECT + COALESCE ( 8, + CAST ( NULL AS INTEGER ) ) - + 41
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-9489
SELECT - 39 + + CASE + - MIN( ALL + 17 ) WHEN 7 THEN - 40 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9489
SELECT - 39 + + CASE + - MIN ( ALL + 17 ) WHEN 7 THEN - 40 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL COALESCE ( - 79, + - 54 * 61 ) * + 97 AS col1
----
-7663

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9491
SELECT + 42 DIV NULLIF ( - 80, - 90 + + NULLIF ( + ( - 11 ), + 45 ) + + 0 DIV + 8 ) * COALESCE ( - NULLIF ( - 60, - 12 * - + 40 * + 27 ), - 25, + + 86 * 4 + + - COALESCE ( + 38, + 87 - - - CAST( NULL AS SIGNED ) - - + COUNT( * ) + - 90 * - 9, - 81 + - 79, 35 + 11 + 66 * 98 ) * - - 88 + COUNT( * ) DIV 91 * 92 + + + 29 ) + - 0 * 11 AS col0, 74
----
0
74

skipif mysql # not compatible
query II rowsort label-9491
SELECT + 42 / NULLIF ( - 80, - 90 + + NULLIF ( + ( - 11 ), + 45 ) + + 0 / + 8 ) * COALESCE ( - NULLIF ( - 60, - 12 * - + 40 * + 27 ), - 25, + + 86 * 4 + + - COALESCE ( + 38, + 87 - - - CAST ( NULL AS INTEGER ) - - + COUNT ( * ) + - 90 * - 9, - 81 + - 79, 35 + 11 + 66 * 98 ) * - - 88 + COUNT ( * ) / 91 * 92 + + + 29 ) + - 0 * 11 AS col0, 74
----
0
74

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9492
SELECT + 33 col1, - 65 * - CAST( + - NULLIF ( + 20, + 53 ) AS SIGNED ) AS col2
----
33
-1300

skipif mysql # not compatible
query II rowsort label-9492
SELECT + 33 col1, - 65 * - CAST ( + - NULLIF ( + 20, + 53 ) AS INTEGER ) AS col2
----
33
-1300

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9493
SELECT ALL 46 DIV 79 + - + NULLIF ( - 30, - + COUNT( DISTINCT 10 ) + + + 92 ) * + 91 AS col1
----
2730

skipif mysql # not compatible
query I rowsort label-9493
SELECT ALL 46 / 79 + - + NULLIF ( - 30, - + COUNT ( DISTINCT 10 ) + + + 92 ) * + 91 AS col1
----
2730

query II rowsort
SELECT + - 85 * 31 + + 77 AS col1, - 54
----
-2558
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-9495
SELECT ALL COUNT( * ) / COUNT( * ) + + 88 - - - CASE - + 22 WHEN - - 54 THEN + + ( + 8 ) WHEN + + ( 12 ) THEN + 91 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9495
SELECT ALL COUNT ( * ) / COUNT ( * ) + + 88 - - - CASE - + 22 WHEN - - 54 THEN + + ( + 8 ) WHEN + + ( 12 ) THEN + 91 ELSE NULL END AS col2
----
NULL

query II rowsort
SELECT DISTINCT + 90 AS col2, 26 AS col2
----
90
26

onlyif mysql # aggregate syntax: 
query II rowsort label-9497
SELECT DISTINCT + 5 AS col1, - 79 * + 1 - CASE + 45 WHEN + 21 THEN + - CASE WHEN NOT 97 IS NULL THEN - COUNT( * ) END * - 35 WHEN COUNT( * ) * 71 THEN NULL END + - COUNT( * )
----
5
NULL

skipif mysql # not compatible
query II rowsort label-9497
SELECT DISTINCT + 5 AS col1, - 79 * + 1 - CASE + 45 WHEN + 21 THEN + - CASE WHEN NOT 97 IS NULL THEN - COUNT ( * ) END * - 35 WHEN COUNT ( * ) * 71 THEN NULL END + - COUNT ( * )
----
5
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9498
SELECT ALL - 6 / + 66 + + 88 + - + CASE 42 WHEN - + 26 * - 45 THEN + MAX( + - 14 ) / - + COUNT( * ) + + - NULLIF ( COUNT( * ), 25 + - 71 ) + - 40 + + 86 + CASE + + COUNT( * ) WHEN + 60 THEN - + 18 * - - 39 * 10 WHEN - COUNT( * ) * + 7 THEN NULL ELSE NULL END + - COUNT( * ) * CAST( COUNT( * ) AS SIGNED ) * - 65 * - - COUNT( * ) * - 4 WHEN CAST( 41 AS SIGNED ) THEN NULL END * - 51
----
NULL

skipif mysql # not compatible
query I rowsort label-9498
SELECT ALL - 6 / + 66 + + 88 + - + CASE 42 WHEN - + 26 * - 45 THEN + MAX ( + - 14 ) / - + COUNT ( * ) + + - NULLIF ( COUNT ( * ), 25 + - 71 ) + - 40 + + 86 + CASE + + COUNT ( * ) WHEN + 60 THEN - + 18 * - - 39 * 10 WHEN - COUNT ( * ) * + 7 THEN NULL ELSE NULL END + - COUNT ( * ) * CAST ( COUNT ( * ) AS INTEGER ) * - 65 * - - COUNT ( * ) * - 4 WHEN CAST ( 41 AS INTEGER ) THEN NULL END * - 51
----
NULL

query I rowsort
SELECT + 85 * 58
----
4930

query I rowsort
SELECT - 55 + - + 40
----
-95

query I rowsort
SELECT - 63 * - 17 + 45 + - 48 + - + 64 AS col0
----
1004

onlyif mysql # DIV for integer division: 
query I rowsort label-9502
SELECT ALL + 13 DIV + 7 + - 23 * 89 AS col2
----
-2046

skipif mysql # not compatible
query I rowsort label-9502
SELECT ALL + 13 / + 7 + - 23 * 89 AS col2
----
-2046

onlyif mysql # aggregate syntax: 
query I rowsort label-9503
SELECT DISTINCT - COUNT( * ) * + 67 col2
----
-67

skipif mysql # not compatible
query I rowsort label-9503
SELECT DISTINCT - COUNT ( * ) * + 67 col2
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-9504
SELECT ALL 41 * - 2 * - COUNT( * ) + + 20 * COUNT( * ) * - ( COUNT( * ) ) AS col2
----
62

skipif mysql # not compatible
query I rowsort label-9504
SELECT ALL 41 * - 2 * - COUNT ( * ) + + 20 * COUNT ( * ) * - ( COUNT ( * ) ) AS col2
----
62

query I rowsort
SELECT DISTINCT 9 * + 22 + - 87 AS col2
----
111

query I rowsort
SELECT DISTINCT - ( COALESCE ( + + 78, + 81, - - 56 ) ) * - - 98 col0
----
-7644

query I rowsort
SELECT ALL - 13 * + 56 - - 65
----
-663

onlyif mysql # aggregate syntax: 
query I rowsort label-9508
SELECT DISTINCT + 80 * + - 33 - + 42 + COUNT( * ) AS col0
----
-2681

skipif mysql # not compatible
query I rowsort label-9508
SELECT DISTINCT + 80 * + - 33 - + 42 + COUNT ( * ) AS col0
----
-2681

onlyif mysql # aggregate syntax: 
query I rowsort label-9509
SELECT ALL + MAX( ALL 74 )
----
74

skipif mysql # not compatible
query I rowsort label-9509
SELECT ALL + MAX ( ALL 74 )
----
74

onlyif mysql # aggregate syntax: 
query II rowsort label-9510
SELECT - 39 * + MIN( DISTINCT - NULLIF ( - - 74, + 47 ) ), COUNT( * ) AS col1
----
2886
1

skipif mysql # not compatible
query II rowsort label-9510
SELECT - 39 * + MIN ( DISTINCT - NULLIF ( - - 74, + 47 ) ), COUNT ( * ) AS col1
----
2886
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9511
SELECT DISTINCT + MIN( ALL ( + - 74 ) ) AS col0
----
-74

skipif mysql # not compatible
query I rowsort label-9511
SELECT DISTINCT + MIN ( ALL ( + - 74 ) ) AS col0
----
-74

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9512
SELECT - 15 * - + CAST( + - 40 AS DECIMAL ) - 58 * - - 77 * + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9512
SELECT - 15 * - + CAST ( + - 40 AS REAL ) - 58 * - - 77 * + - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT 58 + - - 37 - 81 * + 56 AS col1, ( 28 ) AS col2
----
-4441
28

query I rowsort
SELECT 32 * + + 98 AS col2
----
3136

query I rowsort
SELECT DISTINCT - 14 - - + 70
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-9516
SELECT 51 - + 68 + + 17 - 82 * + + 73 - COUNT( * )
----
-5987

skipif mysql # not compatible
query I rowsort label-9516
SELECT 51 - + 68 + + 17 - 82 * + + 73 - COUNT ( * )
----
-5987

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9517
SELECT DISTINCT - CAST( ( - 43 ) AS SIGNED ) * + 5 AS col2
----
215

skipif mysql # not compatible
query I rowsort label-9517
SELECT DISTINCT - CAST ( ( - 43 ) AS INTEGER ) * + 5 AS col2
----
215

onlyif mysql # aggregate syntax: 
query I rowsort label-9518
SELECT - MAX( + + 8 ) AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-9518
SELECT - MAX ( + + 8 ) AS col1
----
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-9519
SELECT 84 * + 34 AS col2, 20 * 72 * - 87 + + + SUM( - 37 ) AS col1
----
2856
-125317

skipif mysql # not compatible
query II rowsort label-9519
SELECT 84 * + 34 AS col2, 20 * 72 * - 87 + + + SUM ( - 37 ) AS col1
----
2856
-125317

query II rowsort
SELECT DISTINCT - + 70 * 36 * + 12 + 7, 93 AS col2
----
-30233
93

onlyif mysql # aggregate syntax: 
query I rowsort label-9521
SELECT - + COALESCE ( - 16, + COUNT( * ) )
----
16

skipif mysql # not compatible
query I rowsort label-9521
SELECT - + COALESCE ( - 16, + COUNT ( * ) )
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-9522
SELECT 74 + + - ( + + COUNT( * ) ) AS col0
----
73

skipif mysql # not compatible
query I rowsort label-9522
SELECT 74 + + - ( + + COUNT ( * ) ) AS col0
----
73

query I rowsort
SELECT - 28 - 73 AS col2
----
-101

onlyif mysql # aggregate syntax: 
query I rowsort label-9524
SELECT DISTINCT + - 40 + + COUNT( * ) AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-9524
SELECT DISTINCT + - 40 + + COUNT ( * ) AS col1
----
-39

query I rowsort
SELECT ALL - 87 + + + 65
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-9526
SELECT DISTINCT - 29 + - 15 + - SUM( - + 60 ) * + 50
----
2956

skipif mysql # not compatible
query I rowsort label-9526
SELECT DISTINCT - 29 + - 15 + - SUM ( - + 60 ) * + 50
----
2956

onlyif mysql # DIV for integer division: 
query I rowsort label-9527
SELECT DISTINCT - ( + 50 ) DIV - + 92
----
0

skipif mysql # not compatible
query I rowsort label-9527
SELECT DISTINCT - ( + 50 ) / - + 92
----
0

query I rowsort
SELECT + CASE - + 22 WHEN 99 THEN NULL WHEN 49 THEN NULL ELSE 90 END
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9529
SELECT - CAST( + 94 AS SIGNED ) + + 44 - - - 1 AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-9529
SELECT - CAST ( + 94 AS INTEGER ) + + 44 - - - 1 AS col0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-9530
SELECT + SUM( - 60 ) * + + 26 AS col0
----
-1560

skipif mysql # not compatible
query I rowsort label-9530
SELECT + SUM ( - 60 ) * + + 26 AS col0
----
-1560

query I rowsort
SELECT DISTINCT 71 - + ( + + 6 ) AS col0
----
65

query I rowsort
SELECT 17 - + 63
----
-46

onlyif mysql # DIV for integer division: 
query II rowsort label-9533
SELECT DISTINCT - 1 col2, COALESCE ( - 55, 6 + 48 + + 24 * + 6 - 46 DIV - 49 )
----
-1
-55

skipif mysql # not compatible
query II rowsort label-9533
SELECT DISTINCT - 1 col2, COALESCE ( - 55, 6 + 48 + + 24 * + 6 - 46 / - 49 )
----
-1
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-9534
SELECT 64 * + MAX( ALL - + 21 ) * + 35 + 3
----
-47037

skipif mysql # not compatible
query I rowsort label-9534
SELECT 64 * + MAX ( ALL - + 21 ) * + 35 + 3
----
-47037

query I rowsort
SELECT 42 * - 77
----
-3234

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9536
SELECT CAST( NULL AS SIGNED ) + + - NULLIF ( 89, CAST( NULL AS SIGNED ) ) + - - 77 AS col0, + COUNT( * ) col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-9536
SELECT CAST ( NULL AS INTEGER ) + + - NULLIF ( 89, CAST ( NULL AS INTEGER ) ) + - - 77 AS col0, + COUNT ( * ) col0
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9537
SELECT COALESCE ( + 34, + COUNT( * ) ) + 41 + 61 * 7
----
502

skipif mysql # not compatible
query I rowsort label-9537
SELECT COALESCE ( + 34, + COUNT ( * ) ) + 41 + 61 * 7
----
502

onlyif mysql # aggregate syntax: 
query I rowsort label-9538
SELECT 61 - - COUNT( ALL - 88 ) + 75 * 38
----
2912

skipif mysql # not compatible
query I rowsort label-9538
SELECT 61 - - COUNT ( ALL - 88 ) + 75 * 38
----
2912

query I rowsort
SELECT ALL + 37 * - 95
----
-3515

query I rowsort
SELECT 51 + - + 46
----
5

query I rowsort
SELECT 58 * 87 * 24 AS col2
----
121104

query I rowsort
SELECT ALL - 92 + - - 7
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-9543
SELECT - MIN( ALL - 75 )
----
75

skipif mysql # not compatible
query I rowsort label-9543
SELECT - MIN ( ALL - 75 )
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9544
SELECT CAST( NULL AS SIGNED ) + - 29 / CASE 70 * 35 WHEN ( 36 ) THEN 67 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9544
SELECT CAST ( NULL AS INTEGER ) + - 29 / CASE 70 * 35 WHEN ( 36 ) THEN 67 END
----
NULL

query I rowsort
SELECT 93 * + NULLIF ( - 11, 4 + 96 * 39 ) AS col2
----
-1023

onlyif mysql # aggregate syntax: 
query I rowsort label-9546
SELECT MIN( + 56 ) + - ( + 2 ) AS col1
----
54

skipif mysql # not compatible
query I rowsort label-9546
SELECT MIN ( + 56 ) + - ( + 2 ) AS col1
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-9547
SELECT 83 + 59 * + COUNT( * ) AS col2
----
142

skipif mysql # not compatible
query I rowsort label-9547
SELECT 83 + 59 * + COUNT ( * ) AS col2
----
142

query I rowsort
SELECT ALL - 94 + 63
----
-31

query I rowsort
SELECT 2 + 1 col2
----
3

query I rowsort
SELECT ALL + 30 + + 18 * - 95 AS col2
----
-1680

query I rowsort
SELECT 73 + - 50 AS col2
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9552
SELECT DISTINCT + 21 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9552
SELECT DISTINCT + 21 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 82 + + 76 AS col2
----
158

query I rowsort
SELECT 17 + + 70 AS col1
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-9555
SELECT COUNT( * ) + - 95 AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-9555
SELECT COUNT ( * ) + - 95 AS col1
----
-94

query I rowsort
SELECT 98 * + 24 col1
----
2352

onlyif mysql # aggregate syntax: 
query I rowsort label-9557
SELECT NULLIF ( 4, + MIN( 67 ) / + 11 + + 28 ) AS col0
----
4

skipif mysql # not compatible
query I rowsort label-9557
SELECT NULLIF ( 4, + MIN ( 67 ) / + 11 + + 28 ) AS col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9558
SELECT DISTINCT 64 * + COUNT( * ) - - 4
----
68

skipif mysql # not compatible
query I rowsort label-9558
SELECT DISTINCT 64 * + COUNT ( * ) - - 4
----
68

query I rowsort
SELECT - 26 * 35 + - 98 * 63 AS col1
----
-7084

onlyif mysql # DIV for integer division: 
query I rowsort label-9560
SELECT ALL ( 32 ) DIV 32 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9560
SELECT ALL ( 32 ) / 32 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9561
SELECT ALL - MAX( + 69 ) AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-9561
SELECT ALL - MAX ( + 69 ) AS col2
----
-69

query I rowsort
SELECT ALL 92 * 65 AS col2
----
5980

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9563
SELECT ALL ( 75 ) DIV COALESCE ( 5, - COUNT( * ) + + COUNT( * ) * 23 ) AS col1
----
15

skipif mysql # not compatible
query I rowsort label-9563
SELECT ALL ( 75 ) / COALESCE ( 5, - COUNT ( * ) + + COUNT ( * ) * 23 ) AS col1
----
15

query I rowsort
SELECT DISTINCT + 65 * - 39 - 2 * 3
----
-2541

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9565
SELECT + 3 * - COUNT( ALL CASE 14 WHEN ( 11 ) * 10 + 12 * + 60 THEN + CASE WHEN NOT ( NULL ) IS NULL THEN NULL WHEN 52 <> + 34 THEN - 37 ELSE - 28 END + - CAST( 70 - + 75 AS SIGNED ) ELSE NULL END * 68 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9565
SELECT + 3 * - COUNT ( ALL CASE 14 WHEN ( 11 ) * 10 + 12 * + 60 THEN + CASE WHEN NOT ( NULL ) IS NULL THEN NULL WHEN 52 <> + 34 THEN - 37 ELSE - 28 END + - CAST ( 70 - + 75 AS INTEGER ) ELSE NULL END * 68 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9566
SELECT COUNT( - 12 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9566
SELECT COUNT ( - 12 ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9567
SELECT + CASE COUNT( * ) WHEN 33 THEN + 38 ELSE + 88 END * CAST( NULL AS SIGNED ) + 54 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9567
SELECT + CASE COUNT ( * ) WHEN 33 THEN + 38 ELSE + 88 END * CAST ( NULL AS INTEGER ) + 54 AS col1
----
NULL

query I rowsort
SELECT + 38 * 34
----
1292

query I rowsort
SELECT ALL 50 * - 50
----
-2500

onlyif mysql # aggregate syntax: 
query I rowsort label-9570
SELECT MIN( 24 ) AS col2
----
24

skipif mysql # not compatible
query I rowsort label-9570
SELECT MIN ( 24 ) AS col2
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-9571
SELECT ALL COUNT( + 97 ) * + 46
----
46

skipif mysql # not compatible
query I rowsort label-9571
SELECT ALL COUNT ( + 97 ) * + 46
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9572
SELECT DISTINCT + 39 * - MAX( + NULLIF ( + 45, - 64 + 33 ) ) + + ( - 28 )
----
-1783

skipif mysql # not compatible
query I rowsort label-9572
SELECT DISTINCT + 39 * - MAX ( + NULLIF ( + 45, - 64 + 33 ) ) + + ( - 28 )
----
-1783

query I rowsort
SELECT ALL ( 52 ) * - 31 AS col0
----
-1612

onlyif mysql # aggregate syntax: 
query I rowsort label-9574
SELECT + COALESCE ( 69, SUM( 54 ) ) * - 95
----
-6555

skipif mysql # not compatible
query I rowsort label-9574
SELECT + COALESCE ( 69, SUM ( 54 ) ) * - 95
----
-6555

query I rowsort
SELECT ALL 90 + 3
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-9576
SELECT MAX( 16 )
----
16

skipif mysql # not compatible
query I rowsort label-9576
SELECT MAX ( 16 )
----
16

query I rowsort
SELECT + 68 * - 44 - 68 * ( + COALESCE ( 73, - 52 ) )
----
-7956

onlyif mysql # aggregate syntax: 
query I rowsort label-9578
SELECT - 92 + - COUNT( * ) AS col1
----
-93

skipif mysql # not compatible
query I rowsort label-9578
SELECT - 92 + - COUNT ( * ) AS col1
----
-93

query I rowsort
SELECT ALL - - 15 + + 18
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9580
SELECT ALL + - CASE + 94 WHEN 78 * 65 - 16 / 9 THEN 80 WHEN 2 THEN NULL ELSE - CASE 86 WHEN 50 - CAST( NULL AS SIGNED ) THEN - 98 - 35 ELSE NULL END END + - 26 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9580
SELECT ALL + - CASE + 94 WHEN 78 * 65 - 16 / 9 THEN 80 WHEN 2 THEN NULL ELSE - CASE 86 WHEN 50 - CAST ( NULL AS INTEGER ) THEN - 98 - 35 ELSE NULL END END + - 26 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9581
SELECT + 49 * - COUNT( * ) AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-9581
SELECT + 49 * - COUNT ( * ) AS col0
----
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-9582
SELECT ALL 19 DIV - 87
----
0

skipif mysql # not compatible
query I rowsort label-9582
SELECT ALL 19 / - 87
----
0

query I rowsort
SELECT DISTINCT - 93 + + 26
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9584
SELECT + 63 - COALESCE ( 79 + - 36 * 12, MAX( + NULLIF ( + ( 12 ), 24 ) ) * 68, NULLIF ( + 1, + ( - 44 ) / NULLIF ( - COUNT( * ) / + ( + 35 * - 45 ) + + 12 * 97, + CAST( NULL AS SIGNED ) ) ) ) * - MIN( DISTINCT 8 ) AS col2
----
-2761

skipif mysql # not compatible
query I rowsort label-9584
SELECT + 63 - COALESCE ( 79 + - 36 * 12, MAX ( + NULLIF ( + ( 12 ), 24 ) ) * 68, NULLIF ( + 1, + ( - 44 ) / NULLIF ( - COUNT ( * ) / + ( + 35 * - 45 ) + + 12 * 97, + CAST ( NULL AS INTEGER ) ) ) ) * - MIN ( DISTINCT 8 ) AS col2
----
-2761

onlyif mysql # aggregate syntax: 
query I rowsort label-9585
SELECT ALL + MAX( DISTINCT 16 ) + 22 col2
----
38

skipif mysql # not compatible
query I rowsort label-9585
SELECT ALL + MAX ( DISTINCT 16 ) + 22 col2
----
38

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9586
SELECT + + 79 DIV CAST( ( 78 ) AS SIGNED ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9586
SELECT + + 79 / CAST ( ( 78 ) AS INTEGER ) AS col0
----
1

query I rowsort
SELECT ( - 38 ) col2
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9588
SELECT ALL - CAST( NULLIF ( - 18, + 25 * COUNT( * ) ) AS SIGNED ) AS col1
----
18

skipif mysql # not compatible
query I rowsort label-9588
SELECT ALL - CAST ( NULLIF ( - 18, + 25 * COUNT ( * ) ) AS INTEGER ) AS col1
----
18

query I rowsort
SELECT - 8 + 28 AS col1
----
20

query I rowsort
SELECT - - 41 * + 23
----
943

onlyif mysql # aggregate syntax: 
query I rowsort label-9591
SELECT ALL + COALESCE ( - 91, + 70 * + 47, - COUNT( * ) + 8 )
----
-91

skipif mysql # not compatible
query I rowsort label-9591
SELECT ALL + COALESCE ( - 91, + 70 * + 47, - COUNT ( * ) + 8 )
----
-91

query I rowsort
SELECT - 74 * 51 AS col1
----
-3774

query I rowsort
SELECT ALL + 94 * - 99 AS col2
----
-9306

onlyif mysql # aggregate syntax: 
query I rowsort label-9594
SELECT DISTINCT - SUM( 57 )
----
-57

skipif mysql # not compatible
query I rowsort label-9594
SELECT DISTINCT - SUM ( 57 )
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9595
SELECT - 10 + MIN( + CAST( - 79 AS SIGNED ) ) + + 31 * - 0
----
-89

skipif mysql # not compatible
query I rowsort label-9595
SELECT - 10 + MIN ( + CAST ( - 79 AS INTEGER ) ) + + 31 * - 0
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9596
SELECT ALL + ( CAST( 86 AS SIGNED ) ) * 33
----
2838

skipif mysql # not compatible
query I rowsort label-9596
SELECT ALL + ( CAST ( 86 AS INTEGER ) ) * 33
----
2838

query I rowsort
SELECT - 86 + - - 76 + 14 * 69 AS col2
----
956

onlyif mysql # aggregate syntax: 
query I rowsort label-9598
SELECT + MIN( ALL + 38 ) col2
----
38

skipif mysql # not compatible
query I rowsort label-9598
SELECT + MIN ( ALL + 38 ) col2
----
38

query I rowsort
SELECT 73 * 45 * ( 82 * - NULLIF ( 85, + 59 ) ) + + NULLIF ( 5, CASE - ( 70 ) WHEN - 62 THEN NULL ELSE 44 END ) AS col1
----
-22896445

onlyif mysql # aggregate syntax: 
query I rowsort label-9600
SELECT - COUNT( * ) * + 35
----
-35

skipif mysql # not compatible
query I rowsort label-9600
SELECT - COUNT ( * ) * + 35
----
-35

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9601
SELECT - 46 DIV 85 * 96 - + CAST( - 41 AS SIGNED ) * 53 AS col0
----
2173

skipif mysql # not compatible
query I rowsort label-9601
SELECT - 46 / 85 * 96 - + CAST ( - 41 AS INTEGER ) * 53 AS col0
----
2173

onlyif mysql # aggregate syntax: 
query I rowsort label-9602
SELECT ALL + CASE - + AVG ( 59 ) WHEN - 46 * - CASE - 37 WHEN - 71 THEN NULL WHEN 91 THEN NULL WHEN + ( - 72 ) THEN + 68 * + SUM( - 91 ) END + 3 THEN 77 * 53 ELSE 7 END * 78 col0
----
546

skipif mysql # not compatible
query I rowsort label-9602
SELECT ALL + CASE - + AVG ( 59 ) WHEN - 46 * - CASE - 37 WHEN - 71 THEN NULL WHEN 91 THEN NULL WHEN + ( - 72 ) THEN + 68 * + SUM ( - 91 ) END + 3 THEN 77 * 53 ELSE 7 END * 78 col0
----
546

onlyif mysql # aggregate syntax: 
query I rowsort label-9603
SELECT ALL - 28 * + 38 + - MAX( ALL 14 )
----
-1078

skipif mysql # not compatible
query I rowsort label-9603
SELECT ALL - 28 * + 38 + - MAX ( ALL 14 )
----
-1078

onlyif mysql # aggregate syntax: 
query I rowsort label-9604
SELECT ALL 46 * + COALESCE ( COUNT( * ), 59 + + 78 ) + - ( - NULLIF ( 69, 77 ) ) AS col2
----
115

skipif mysql # not compatible
query I rowsort label-9604
SELECT ALL 46 * + COALESCE ( COUNT ( * ), 59 + + 78 ) + - ( - NULLIF ( 69, 77 ) ) AS col2
----
115

query I rowsort
SELECT + 9 + 34 * 61
----
2083

query I rowsort
SELECT DISTINCT + COALESCE ( NULLIF ( 31, 85 ), - 49 + 4 ) AS col1
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9607
SELECT - SUM( DISTINCT - 85 ) DIV + COALESCE ( + CASE + 67 WHEN CAST( - 45 AS SIGNED ) * + 39 THEN NULL ELSE + COUNT( * ) END, SUM( DISTINCT + 72 ) ) + - 93
----
-8

skipif mysql # not compatible
query I rowsort label-9607
SELECT - SUM ( DISTINCT - 85 ) / + COALESCE ( + CASE + 67 WHEN CAST ( - 45 AS INTEGER ) * + 39 THEN NULL ELSE + COUNT ( * ) END, SUM ( DISTINCT + 72 ) ) + - 93
----
-8

query I rowsort
SELECT ALL 83 * + 9 + - 21 AS col2
----
726

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9609
SELECT - 73 + + 94 DIV - COUNT( * )
----
-167

skipif mysql # not compatible
query I rowsort label-9609
SELECT - 73 + + 94 / - COUNT ( * )
----
-167

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9610
SELECT ( - 18 ) * + COUNT( * ) - COALESCE ( - 34, - 96 * 26 + + 93 DIV + ( + 57 ) )
----
16

skipif mysql # not compatible
query I rowsort label-9610
SELECT ( - 18 ) * + COUNT ( * ) - COALESCE ( - 34, - 96 * 26 + + 93 / + ( + 57 ) )
----
16

query I rowsort
SELECT NULLIF ( + 88, - ( 94 ) ) AS col2
----
88

query I rowsort
SELECT + 2 * + + 79 + 97 * 62 AS col1
----
6172

query I rowsort
SELECT + ( + 78 ) - + 9 AS col1
----
69

query I rowsort
SELECT ALL + 97 * - 60 * - 29 + 45 * + 69 AS col1
----
171885

query I rowsort
SELECT DISTINCT 68 * NULLIF ( + NULLIF ( 38, - 42 * 25 ), 29 + + 88 )
----
2584

onlyif mysql # DIV for integer division: 
query I rowsort label-9616
SELECT DISTINCT + + 33 * 31 DIV 98 + 4
----
14

skipif mysql # not compatible
query I rowsort label-9616
SELECT DISTINCT + + 33 * 31 / 98 + 4
----
14

query I rowsort
SELECT DISTINCT 71 * + 57 + 56 AS col2
----
4103

onlyif mysql # aggregate syntax: 
query I rowsort label-9618
SELECT ALL 26 * + ( 81 ) * MAX( + 28 ) AS col0
----
58968

skipif mysql # not compatible
query I rowsort label-9618
SELECT ALL 26 * + ( 81 ) * MAX ( + 28 ) AS col0
----
58968

query I rowsort
SELECT + 9 + - ( - 11 ) AS col2
----
20

query I rowsort
SELECT + - 50 * 35 * 85
----
-148750

onlyif mysql # aggregate syntax: 
query I rowsort label-9621
SELECT + MIN( 98 ) * 40 AS col0
----
3920

skipif mysql # not compatible
query I rowsort label-9621
SELECT + MIN ( 98 ) * 40 AS col0
----
3920

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9622
SELECT + NULLIF ( + 23, CASE 57 WHEN 29 THEN + COALESCE ( - ( 26 ), 95 + - 16 * 64 ) * - 61 + 55 WHEN CAST( NULL AS SIGNED ) + 10 * + 33 THEN NULL END + 95 ) + - 46
----
-23

skipif mysql # not compatible
query I rowsort label-9622
SELECT + NULLIF ( + 23, CASE 57 WHEN 29 THEN + COALESCE ( - ( 26 ), 95 + - 16 * 64 ) * - 61 + 55 WHEN CAST ( NULL AS INTEGER ) + 10 * + 33 THEN NULL END + 95 ) + - 46
----
-23

query I rowsort
SELECT + 36 + 53 AS col1
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-9624
SELECT DISTINCT CASE - 33 WHEN 79 + COUNT( * ) THEN - 19 + + 1 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9624
SELECT DISTINCT CASE - 33 WHEN 79 + COUNT ( * ) THEN - 19 + + 1 END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9625
SELECT DISTINCT COUNT( * ) DIV + MAX( ALL - 41 ) col2
----
0

skipif mysql # not compatible
query I rowsort label-9625
SELECT DISTINCT COUNT ( * ) / + MAX ( ALL - 41 ) col2
----
0

query I rowsort
SELECT ALL 55 * + 61
----
3355

query I rowsort
SELECT + 29 * - 73 + 6 * 54 AS col2
----
-1793

onlyif mysql # aggregate syntax: 
query I rowsort label-9628
SELECT COALESCE ( + 96, + COUNT( * ) ) + + 47
----
143

skipif mysql # not compatible
query I rowsort label-9628
SELECT COALESCE ( + 96, + COUNT ( * ) ) + + 47
----
143

query I rowsort
SELECT - 39 + 20
----
-19

query I rowsort
SELECT 77 + 80
----
157

onlyif mysql # aggregate syntax: 
query I rowsort label-9631
SELECT DISTINCT ( - COUNT( DISTINCT - 45 ) ) * 82 AS col1
----
-82

skipif mysql # not compatible
query I rowsort label-9631
SELECT DISTINCT ( - COUNT ( DISTINCT - 45 ) ) * 82 AS col1
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-9632
SELECT 17 * - 50 * - COUNT( * )
----
850

skipif mysql # not compatible
query I rowsort label-9632
SELECT 17 * - 50 * - COUNT ( * )
----
850

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9633
SELECT CAST( NULL AS SIGNED ) * - 91 * - CAST( NULL AS SIGNED ) * - 46
----
NULL

skipif mysql # not compatible
query I rowsort label-9633
SELECT CAST ( NULL AS INTEGER ) * - 91 * - CAST ( NULL AS INTEGER ) * - 46
----
NULL

query I rowsort
SELECT DISTINCT ( + 28 ) * + 62 + - 17 AS col1
----
1719

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9635
SELECT ALL CAST( NULL AS SIGNED ) + - COUNT( * ) + + 17 + - 85 * - 41 * - NULLIF ( - 95, 93 * 78 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9635
SELECT ALL CAST ( NULL AS INTEGER ) + - COUNT ( * ) + + 17 + - 85 * - 41 * - NULLIF ( - 95, 93 * 78 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9636
SELECT ALL CAST( NULL AS DECIMAL ) + - COALESCE ( + 40, - 33 * COUNT( * ), + CAST( - COUNT( * ) AS SIGNED ) - 11 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9636
SELECT ALL CAST ( NULL AS REAL ) + - COALESCE ( + 40, - 33 * COUNT ( * ), + CAST ( - COUNT ( * ) AS INTEGER ) - 11 ) col0
----
NULL

query I rowsort
SELECT ALL - 78 + 81 + + + 17 * - 46 AS col2
----
-779

onlyif mysql # DIV for integer division: 
query I rowsort label-9638
SELECT 42 DIV + 82 + - + 0 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9638
SELECT 42 / + 82 + - + 0 AS col1
----
0

query II rowsort
SELECT DISTINCT - 0 AS col2, + ( 20 ) AS col0
----
0
20

onlyif mysql # aggregate syntax: 
query II rowsort label-9640
SELECT DISTINCT - COUNT( * ), + 42 AS col1
----
-1
42

skipif mysql # not compatible
query II rowsort label-9640
SELECT DISTINCT - COUNT ( * ), + 42 AS col1
----
-1
42

query I rowsort
SELECT 41 * - + 62
----
-2542

query I rowsort
SELECT ALL - 33 * CASE WHEN ( + 38 ) > NULL THEN - 31 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9643
SELECT ALL + 79 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9643
SELECT ALL + 79 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9644
SELECT + 60 AS col0, + 32 + + COUNT( * ) * CAST( NULL AS SIGNED ) col0
----
60
NULL

skipif mysql # not compatible
query II rowsort label-9644
SELECT + 60 AS col0, + 32 + + COUNT ( * ) * CAST ( NULL AS INTEGER ) col0
----
60
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9645
SELECT + 35 * - - 30 + CAST( 91 AS SIGNED ) + - COUNT( * ) DIV - CAST( 16 AS SIGNED ) * + 68 AS col0
----
1141

skipif mysql # not compatible
query I rowsort label-9645
SELECT + 35 * - - 30 + CAST ( 91 AS INTEGER ) + - COUNT ( * ) / - CAST ( 16 AS INTEGER ) * + 68 AS col0
----
1141

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9646
SELECT 60 DIV - COALESCE ( + MIN( - ( CAST( NULL AS SIGNED ) ) ), 21 + 58 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9646
SELECT 60 / - COALESCE ( + MIN ( - ( CAST ( NULL AS INTEGER ) ) ), 21 + 58 ) AS col0
----
0

query I rowsort
SELECT NULLIF ( 38, 33 * + 51 ) * 79 + - 38 AS col2
----
2964

onlyif mysql # aggregate syntax: 
query I rowsort label-9648
SELECT ALL - 6 + + COUNT( * ) + + ( - COUNT( * ) ) * - 0 AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-9648
SELECT ALL - 6 + + COUNT ( * ) + + ( - COUNT ( * ) ) * - 0 AS col2
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9649
SELECT 67 * + + CAST( + 68 AS SIGNED ) AS col1
----
4556

skipif mysql # not compatible
query I rowsort label-9649
SELECT 67 * + + CAST ( + 68 AS INTEGER ) AS col1
----
4556

query I rowsort
SELECT ALL - 34 * + 87 * - 87 AS col0
----
257346

query I rowsort
SELECT ALL + 79 + 96 * 29 AS col1
----
2863

query II rowsort
SELECT DISTINCT - 44 AS col0, - 42 AS col2
----
-44
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-9653
SELECT DISTINCT - 16 * - ( - COUNT( * ) ) * + 47
----
-752

skipif mysql # not compatible
query I rowsort label-9653
SELECT DISTINCT - 16 * - ( - COUNT ( * ) ) * + 47
----
-752

query I rowsort
SELECT ALL - ( - + 50 )
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-9655
SELECT 74 + - - 66 + COUNT( * ) - + 71 * + 34
----
-2273

skipif mysql # not compatible
query I rowsort label-9655
SELECT 74 + - - 66 + COUNT ( * ) - + 71 * + 34
----
-2273

query I rowsort
SELECT ALL + 60 - + 20
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-9657
SELECT 23 - - + 71 - + 52 DIV - 12
----
98

skipif mysql # not compatible
query I rowsort label-9657
SELECT 23 - - + 71 - + 52 / - 12
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9658
SELECT 66 * + COALESCE ( + 48, + CAST( - 29 AS SIGNED ), + 44, COUNT( * ) ) - + 26 col0
----
3142

skipif mysql # not compatible
query I rowsort label-9658
SELECT 66 * + COALESCE ( + 48, + CAST ( - 29 AS INTEGER ), + 44, COUNT ( * ) ) - + 26 col0
----
3142

onlyif mysql # aggregate syntax: 
query I rowsort label-9659
SELECT 12 * + + COUNT( * ) - 95 AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-9659
SELECT 12 * + + COUNT ( * ) - 95 AS col0
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-9660
SELECT - + MAX( DISTINCT - 41 )
----
41

skipif mysql # not compatible
query I rowsort label-9660
SELECT - + MAX ( DISTINCT - 41 )
----
41

query I rowsort
SELECT ( ( 33 ) ) + 11 * 10
----
143

query II rowsort
SELECT DISTINCT 15 col1, - ( 3 ) col0
----
15
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9663
SELECT CASE + 78 WHEN + 51 THEN CAST( NULL AS SIGNED ) WHEN 71 THEN 32 END * 20 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9663
SELECT CASE + 78 WHEN + 51 THEN CAST ( NULL AS INTEGER ) WHEN 71 THEN 32 END * 20 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9664
SELECT ALL + ( - COUNT( * ) ) * 88 AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-9664
SELECT ALL + ( - COUNT ( * ) ) * 88 AS col2
----
-88

query I rowsort
SELECT DISTINCT - 16 * - - 13
----
-208

query II rowsort
SELECT DISTINCT 77 AS col2, COALESCE ( + 57, - 12 + 81 * 82 ) AS col2
----
77
57

query I rowsort
SELECT 71 * + 95
----
6745

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9668
SELECT 15 * + + NULLIF ( - 30, - 25 ) * + ( + 69 * - 35 ) - - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * 63 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9668
SELECT 15 * + + NULLIF ( - 30, - 25 ) * + ( + 69 * - 35 ) - - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * 63 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9669
SELECT ( - - ( MIN( DISTINCT 25 ) ) )
----
25

skipif mysql # not compatible
query I rowsort label-9669
SELECT ( - - ( MIN ( DISTINCT 25 ) ) )
----
25

onlyif mysql # aggregate syntax: 
query II rowsort label-9670
SELECT + 89 AS col2, 23 + - CASE - COUNT( * ) WHEN 37 * + ( 93 ) + + 35 THEN 6 WHEN 22 THEN 59 END + 95
----
89
NULL

skipif mysql # not compatible
query II rowsort label-9670
SELECT + 89 AS col2, 23 + - CASE - COUNT ( * ) WHEN 37 * + ( 93 ) + + 35 THEN 6 WHEN 22 THEN 59 END + 95
----
89
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9671
SELECT 26 * - CAST( NULL AS SIGNED ) * + 22 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9671
SELECT 26 * - CAST ( NULL AS INTEGER ) * + 22 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9672
SELECT 62 * + CAST( - + 62 AS SIGNED ) AS col1
----
-3844

skipif mysql # not compatible
query I rowsort label-9672
SELECT 62 * + CAST ( - + 62 AS INTEGER ) AS col1
----
-3844

query I rowsort
SELECT DISTINCT 92 + - + 49 - - - 57 AS col1
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-9674
SELECT ALL 27 + + - COUNT( * ) col1
----
26

skipif mysql # not compatible
query I rowsort label-9674
SELECT ALL 27 + + - COUNT ( * ) col1
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-9675
SELECT MAX( ALL + + 68 ) * - COUNT( ALL + + 86 ) AS col2
----
-68

skipif mysql # not compatible
query I rowsort label-9675
SELECT MAX ( ALL + + 68 ) * - COUNT ( ALL + + 86 ) AS col2
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-9676
SELECT ALL COUNT( * ) + + 58
----
59

skipif mysql # not compatible
query I rowsort label-9676
SELECT ALL COUNT ( * ) + + 58
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9677
SELECT - SUM( - 60 )
----
60

skipif mysql # not compatible
query I rowsort label-9677
SELECT - SUM ( - 60 )
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-9678
SELECT ( - 84 ) + - ( + 50 ) - + 12 DIV - 73 col1
----
-134

skipif mysql # not compatible
query I rowsort label-9678
SELECT ( - 84 ) + - ( + 50 ) - + 12 / - 73 col1
----
-134

query I rowsort
SELECT ALL 32 * + ( - 88 ) + - 39
----
-2855

onlyif mysql # aggregate syntax: 
query I rowsort label-9680
SELECT COUNT( * ) * - 3 + - 91
----
-94

skipif mysql # not compatible
query I rowsort label-9680
SELECT COUNT ( * ) * - 3 + - 91
----
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9681
SELECT + 56 * + CASE + 84 WHEN - 47 THEN NULL WHEN - ( - 16 ) THEN NULL WHEN SUM( NULLIF ( + 26, 4 ) ) * - 97 + CAST( COALESCE ( - 46, + 0 DIV CASE 95 DIV + 37 WHEN - COUNT( * ) + 51 THEN COUNT( * ) DIV + 52 - - 84 DIV - 89 WHEN + 38 THEN 15 + + NULLIF ( 86, 68 ) * ( + 52 ) END, + 32, - 10 * - CASE + 74 WHEN + 91 + + 73 THEN + ( 17 ) ELSE NULL END ) AS SIGNED ) THEN NULL WHEN - 49 + 99 THEN NULL ELSE ( 10 ) END + 38 DIV 71
----
560

skipif mysql # not compatible
query I rowsort label-9681
SELECT + 56 * + CASE + 84 WHEN - 47 THEN NULL WHEN - ( - 16 ) THEN NULL WHEN SUM ( NULLIF ( + 26, 4 ) ) * - 97 + CAST ( COALESCE ( - 46, + 0 / CASE 95 / + 37 WHEN - COUNT ( * ) + 51 THEN COUNT ( * ) / + 52 - - 84 / - 89 WHEN + 38 THEN 15 + + NULLIF ( 86, 68 ) * ( + 52 ) END, + 32, - 10 * - CASE + 74 WHEN + 91 + + 73 THEN + ( 17 ) ELSE NULL END ) AS INTEGER ) THEN NULL WHEN - 49 + 99 THEN NULL ELSE ( 10 ) END + 38 / 71
----
560

onlyif mysql # DIV for integer division: 
query I rowsort label-9682
SELECT 96 DIV - 22
----
-4

skipif mysql # not compatible
query I rowsort label-9682
SELECT 96 / - 22
----
-4

query I rowsort
SELECT ALL CASE - - 68 WHEN - 82 - + 39 THEN 36 WHEN + 82 THEN - 99 ELSE - 4 * + 10 + - 63 END * - 89 + - 76 AS col0
----
9091

query I rowsort
SELECT 70 + - 73
----
-3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9685
SELECT DISTINCT CAST( NULL AS DECIMAL ) * + + 72 - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9685
SELECT DISTINCT CAST ( NULL AS REAL ) * + + 72 - COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT 86 + 58
----
144

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9687
SELECT ALL 25 - ( + 81 ) + COUNT( * ) DIV 60 AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-9687
SELECT ALL 25 - ( + 81 ) + COUNT ( * ) / 60 AS col0
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-9688
SELECT - COUNT( 0 ) * - 31
----
31

skipif mysql # not compatible
query I rowsort label-9688
SELECT - COUNT ( 0 ) * - 31
----
31

query I rowsort
SELECT - 62 * + 35 + + 99 col0
----
-2071

query I rowsort
SELECT 91 + NULLIF ( 94, - ( 47 ) ) - + 67
----
118

query I rowsort
SELECT ALL - + 66 * 67 + 74 + - 69 + - 24 AS col1
----
-4441

query I rowsort
SELECT 81 - 65 col1
----
16

query II rowsort
SELECT 68 * 67 AS col1, - 47
----
4556
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-9694
SELECT COUNT( * ) * - - 20 AS col2
----
20

skipif mysql # not compatible
query I rowsort label-9694
SELECT COUNT ( * ) * - - 20 AS col2
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-9695
SELECT COUNT( * ) + + + 82 - - ( + 53 ) * COALESCE ( + 43 + - 94, 1 - 5 )
----
-2620

skipif mysql # not compatible
query I rowsort label-9695
SELECT COUNT ( * ) + + + 82 - - ( + 53 ) * COALESCE ( + 43 + - 94, 1 - 5 )
----
-2620

onlyif mysql # aggregate syntax: 
query I rowsort label-9696
SELECT DISTINCT - - ( + COALESCE ( - 16, 14 - COUNT( * ) * + 73 ) ) AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-9696
SELECT DISTINCT - - ( + COALESCE ( - 16, 14 - COUNT ( * ) * + 73 ) ) AS col2
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-9697
SELECT - COALESCE ( + 1, + + 6, + + COUNT( * ) ) * 67
----
-67

skipif mysql # not compatible
query I rowsort label-9697
SELECT - COALESCE ( + 1, + + 6, + + COUNT ( * ) ) * 67
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-9698
SELECT - 45 + ( - MAX( ALL + 28 ) ) * 45 AS col2
----
-1305

skipif mysql # not compatible
query I rowsort label-9698
SELECT - 45 + ( - MAX ( ALL + 28 ) ) * 45 AS col2
----
-1305

query I rowsort
SELECT - 59 + + 74
----
15

query I rowsort
SELECT - + 90 + 99
----
9

query I rowsort
SELECT 16 * + 83 + - 15 AS col2
----
1313

onlyif mysql # aggregate syntax: 
query I rowsort label-9702
SELECT - - COUNT( + 8 )
----
1

skipif mysql # not compatible
query I rowsort label-9702
SELECT - - COUNT ( + 8 )
----
1

query I rowsort
SELECT DISTINCT - - 36 + - ( - 95 ) * 57 col0
----
5451

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9704
SELECT ALL + - MIN( - 49 ) * + 87 - - 46 + - 12 DIV + 28
----
4309

skipif mysql # not compatible
query I rowsort label-9704
SELECT ALL + - MIN ( - 49 ) * + 87 - - 46 + - 12 / + 28
----
4309

onlyif mysql # DIV for integer division: 
query II rowsort label-9705
SELECT + + 35 DIV - + 49 AS col1, 87 col2
----
0
87

skipif mysql # not compatible
query II rowsort label-9705
SELECT + + 35 / - + 49 AS col1, 87 col2
----
0
87

query I rowsort
SELECT - 57 + - + 76 AS col0
----
-133

onlyif mysql # aggregate syntax: 
query I rowsort label-9707
SELECT DISTINCT - CASE - CASE + 98 WHEN - 87 THEN - 78 WHEN - 43 THEN NULL WHEN + 26 - 33 THEN NULL ELSE NULL END WHEN - 62 THEN - 98 / CASE - 13 WHEN 58 THEN NULL WHEN 28 * COUNT( * ) THEN NULL WHEN + 0 THEN - 73 * 32 WHEN 57 THEN + ( + 93 ) * 4 ELSE - 47 + - 29 END END + + 36
----
NULL

skipif mysql # not compatible
query I rowsort label-9707
SELECT DISTINCT - CASE - CASE + 98 WHEN - 87 THEN - 78 WHEN - 43 THEN NULL WHEN + 26 - 33 THEN NULL ELSE NULL END WHEN - 62 THEN - 98 / CASE - 13 WHEN 58 THEN NULL WHEN 28 * COUNT ( * ) THEN NULL WHEN + 0 THEN - 73 * 32 WHEN 57 THEN + ( + 93 ) * 4 ELSE - 47 + - 29 END END + + 36
----
NULL

query I rowsort
SELECT ALL 27 + + 59 AS col2
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-9709
SELECT ALL + COUNT( * ) + - 12 AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-9709
SELECT ALL + COUNT ( * ) + - 12 AS col2
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-9710
SELECT - 21 * + COUNT( * )
----
-21

skipif mysql # not compatible
query I rowsort label-9710
SELECT - 21 * + COUNT ( * )
----
-21

query I rowsort
SELECT DISTINCT 33 * - 51 AS col2
----
-1683

onlyif mysql # aggregate syntax: 
query I rowsort label-9712
SELECT DISTINCT 50 + + COUNT( * ) AS col2
----
51

skipif mysql # not compatible
query I rowsort label-9712
SELECT DISTINCT 50 + + COUNT ( * ) AS col2
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9713
SELECT DISTINCT 26 + + + 1 - - - CAST( NULL AS SIGNED ) * - 14
----
NULL

skipif mysql # not compatible
query I rowsort label-9713
SELECT DISTINCT 26 + + + 1 - - - CAST ( NULL AS INTEGER ) * - 14
----
NULL

query I rowsort
SELECT ALL 85 + + 16 - - - 76 AS col1
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-9715
SELECT + 55 + - COALESCE ( - - 25, - 50 ) + - 28 DIV - 36
----
30

skipif mysql # not compatible
query I rowsort label-9715
SELECT + 55 + - COALESCE ( - - 25, - 50 ) + - 28 / - 36
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-9716
SELECT DISTINCT 20 DIV + 63
----
0

skipif mysql # not compatible
query I rowsort label-9716
SELECT DISTINCT 20 / + 63
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9717
SELECT ALL + NULLIF ( - 75, CAST( - AVG ( - 96 ) AS SIGNED ) / COUNT( * ) )
----
-75

skipif mysql # not compatible
query I rowsort label-9717
SELECT ALL + NULLIF ( - 75, CAST ( - AVG ( - 96 ) AS INTEGER ) / COUNT ( * ) )
----
-75

query I rowsort
SELECT ALL 38 * - - 24
----
912

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9719
SELECT + COALESCE ( COUNT( * ), COALESCE ( + 84, - + 53 DIV + 46, + 66 + - 70 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9719
SELECT + COALESCE ( COUNT ( * ), COALESCE ( + 84, - + 53 / + 46, + 66 + - 70 ) ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9720
SELECT ALL 46 * - 78 - - COALESCE ( 56, + 91 * CAST( 61 / COUNT( * ) AS SIGNED ), + 27 - ( - SUM( ALL - 3 ) ) ) + 7
----
-3525

skipif mysql # not compatible
query I rowsort label-9720
SELECT ALL 46 * - 78 - - COALESCE ( 56, + 91 * CAST ( 61 / COUNT ( * ) AS INTEGER ), + 27 - ( - SUM ( ALL - 3 ) ) ) + 7
----
-3525

onlyif mysql # aggregate syntax: 
query I rowsort label-9721
SELECT DISTINCT 84 * - COUNT( * ) AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-9721
SELECT DISTINCT 84 * - COUNT ( * ) AS col0
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9722
SELECT + NULLIF ( - - 58, + 34 * - CAST( ( + COUNT( * ) ) AS SIGNED ) - - 85 DIV 13 ) DIV 71
----
0

skipif mysql # not compatible
query I rowsort label-9722
SELECT + NULLIF ( - - 58, + 34 * - CAST ( ( + COUNT ( * ) ) AS INTEGER ) - - 85 / 13 ) / 71
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9723
SELECT + 13 * CAST( + 41 AS SIGNED ) col1, 82 AS col0
----
533
82

skipif mysql # not compatible
query II rowsort label-9723
SELECT + 13 * CAST ( + 41 AS INTEGER ) col1, 82 AS col0
----
533
82

query I rowsort
SELECT DISTINCT 19 * + - 44
----
-836

query I rowsort
SELECT ALL 78 * 16
----
1248

query I rowsort
SELECT + + ( + 52 ) AS col2
----
52

query I rowsort
SELECT + - 32 * + 9 + + - 19 AS col2
----
-307

query II rowsort
SELECT - - 77 * + + 80 + + - 11 col0, - 41 AS col0
----
6149
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9729
SELECT + MIN( DISTINCT + 10 ) DIV + 48 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9729
SELECT + MIN ( DISTINCT + 10 ) / + 48 AS col1
----
0

query I rowsort
SELECT - CASE 59 WHEN + 78 * + 56 * - 21 * + 60 THEN 43 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9731
SELECT DISTINCT + + CASE - 33 WHEN 0 THEN + MAX( - 37 ) - 48 / + 87 WHEN - 67 THEN COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9731
SELECT DISTINCT + + CASE - 33 WHEN 0 THEN + MAX ( - 37 ) - 48 / + 87 WHEN - 67 THEN COUNT ( * ) END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9732
SELECT + - 80 + + 77 DIV - 99 AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-9732
SELECT + - 80 + + 77 / - 99 AS col0
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9733
SELECT - + 5 * - COALESCE ( - 29, COUNT( * ) ) / + + CASE + 31 WHEN - 43 * 56 THEN NULL WHEN 35 + 49 THEN + 9 * + COUNT( - ( CAST( NULL AS SIGNED ) ) ) END * 39 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9733
SELECT - + 5 * - COALESCE ( - 29, COUNT ( * ) ) / + + CASE + 31 WHEN - 43 * 56 THEN NULL WHEN 35 + 49 THEN + 9 * + COUNT ( - ( CAST ( NULL AS INTEGER ) ) ) END * 39 AS col0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9734
SELECT ALL - 4 * - ( - 87 ) * - 87 + 49 + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9734
SELECT ALL - 4 * - ( - 87 ) * - 87 + 49 + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9735
SELECT + CAST( NULL AS SIGNED ) * 75
----
NULL

skipif mysql # not compatible
query I rowsort label-9735
SELECT + CAST ( NULL AS INTEGER ) * 75
----
NULL

query I rowsort
SELECT - 75 + - + 3 AS col0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-9737
SELECT DISTINCT - - SUM( ALL 99 ) * + 82 * + + 21 - - 24 + 37 * 65 col2
----
172907

skipif mysql # not compatible
query I rowsort label-9737
SELECT DISTINCT - - SUM ( ALL 99 ) * + 82 * + + 21 - - 24 + 37 * 65 col2
----
172907

onlyif mysql # DIV for integer division: 
query I rowsort label-9738
SELECT ALL - - 49 * + 30 + 98 DIV + 94 AS col1
----
1471

skipif mysql # not compatible
query I rowsort label-9738
SELECT ALL - - 49 * + 30 + 98 / + 94 AS col1
----
1471

query II rowsort
SELECT - - 79 * 37 + - 4, - 25 AS col1
----
2919
-25

query I rowsort
SELECT DISTINCT - 73 + - + 79
----
-152

onlyif mysql # aggregate syntax: 
query I rowsort label-9741
SELECT ALL SUM( 41 )
----
41

skipif mysql # not compatible
query I rowsort label-9741
SELECT ALL SUM ( 41 )
----
41

query I rowsort
SELECT DISTINCT + 92 + 59 + - + 42 AS col0
----
109

query I rowsort
SELECT DISTINCT COALESCE ( ( + - 51 ), 25 * ( - 95 ) ) AS col0
----
-51

query I rowsort
SELECT ALL + 10 + - 50 AS col2
----
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-9745
SELECT + 21 - - 5 DIV - 59 + + 35 AS col1
----
56

skipif mysql # not compatible
query I rowsort label-9745
SELECT + 21 - - 5 / - 59 + + 35 AS col1
----
56

query II rowsort
SELECT 2, + 8 AS col2
----
2
8

onlyif mysql # aggregate syntax: 
query II rowsort label-9747
SELECT - COUNT( * ) col2, - 85 * + 3
----
-1
-255

skipif mysql # not compatible
query II rowsort label-9747
SELECT - COUNT ( * ) col2, - 85 * + 3
----
-1
-255

query I rowsort
SELECT ALL ( + - NULLIF ( - 72, - - 31 * - + 70 ) )
----
72

query I rowsort
SELECT - 98 * 76 col2
----
-7448

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9750
SELECT - MIN( ALL + 99 ) + + SUM( - NULLIF ( - + 13, - + 65 + + CAST( + 23 AS SIGNED ) ) ) + + 43 AS col2
----
-43

skipif mysql # not compatible
query I rowsort label-9750
SELECT - MIN ( ALL + 99 ) + + SUM ( - NULLIF ( - + 13, - + 65 + + CAST ( + 23 AS INTEGER ) ) ) + + 43 AS col2
----
-43

query I rowsort
SELECT ALL + 74 - + 82 AS col0
----
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-9752
SELECT - 45 AS col0, + COUNT( * ) AS col0
----
-45
1

skipif mysql # not compatible
query II rowsort label-9752
SELECT - 45 AS col0, + COUNT ( * ) AS col0
----
-45
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9753
SELECT ALL COALESCE ( + CAST( NULL AS SIGNED ), COALESCE ( - + 4, - NULLIF ( - CASE WHEN NOT NULL NOT BETWEEN ( NULL ) AND ( NULL ) THEN NULL ELSE - 19 END, 27 + 50 ) ), 51 )
----
-4

skipif mysql # not compatible
query I rowsort label-9753
SELECT ALL COALESCE ( + CAST ( NULL AS INTEGER ), COALESCE ( - + 4, - NULLIF ( - CASE WHEN NOT NULL NOT BETWEEN ( NULL ) AND ( NULL ) THEN NULL ELSE - 19 END, 27 + 50 ) ), 51 )
----
-4

query I rowsort
SELECT DISTINCT + 93 - - + 96 AS col2
----
189

query I rowsort
SELECT - 26 * + 27 * - 43
----
30186

query I rowsort
SELECT DISTINCT ( - ( + 78 ) )
----
-78

query I rowsort
SELECT DISTINCT 97 - + - 22 AS col0
----
119

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9758
SELECT - COALESCE ( + - COUNT( DISTINCT + 87 ), + - 37 DIV 67 + + 32 ) * 39
----
39

skipif mysql # not compatible
query I rowsort label-9758
SELECT - COALESCE ( + - COUNT ( DISTINCT + 87 ), + - 37 / 67 + + 32 ) * 39
----
39

query I rowsort
SELECT DISTINCT + 2 * 85 AS col2
----
170

query I rowsort
SELECT + 72 * + 23
----
1656

query I rowsort
SELECT ALL + ( + - ( - 38 ) ) AS col1
----
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9762
SELECT - 10 DIV + 87 - - + 65 DIV + - COALESCE ( COUNT( * ), 15 )
----
-65

skipif mysql # not compatible
query I rowsort label-9762
SELECT - 10 / + 87 - - + 65 / + - COALESCE ( COUNT ( * ), 15 )
----
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9763
SELECT + COUNT( * ), 10 DIV - 29 * + COUNT( * ) + + - 98 + COUNT( * ) * + COALESCE ( - COUNT( * ) * - 4 + COUNT( * ) * - COUNT( * ), 34 ) AS col2
----
1
-95

skipif mysql # not compatible
query II rowsort label-9763
SELECT + COUNT ( * ), 10 / - 29 * + COUNT ( * ) + + - 98 + COUNT ( * ) * + COALESCE ( - COUNT ( * ) * - 4 + COUNT ( * ) * - COUNT ( * ), 34 ) AS col2
----
1
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-9764
SELECT ALL + - NULLIF ( - + NULLIF ( 2, + 56 ), + - 42 DIV + + 17 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9764
SELECT ALL + - NULLIF ( - + NULLIF ( 2, + 56 ), + - 42 / + + 17 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9765
SELECT DISTINCT + CAST( 92 AS SIGNED ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-9765
SELECT DISTINCT + CAST ( 92 AS INTEGER ) AS col2
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9766
SELECT DISTINCT - 90 * + 57 DIV - ( - COUNT( * ) ) - + CAST( + 41 AS SIGNED )
----
-5171

skipif mysql # not compatible
query I rowsort label-9766
SELECT DISTINCT - 90 * + 57 / - ( - COUNT ( * ) ) - + CAST ( + 41 AS INTEGER )
----
-5171

onlyif mysql # aggregate syntax: 
query II rowsort label-9767
SELECT ALL - COUNT( * ) AS col1, - 48
----
-1
-48

skipif mysql # not compatible
query II rowsort label-9767
SELECT ALL - COUNT ( * ) AS col1, - 48
----
-1
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-9768
SELECT + COUNT( * ) + + + ( + 34 ) * 18 * + + 82 * - SUM( ALL COALESCE ( 22, + 29 * - 45 ) ) AS col0
----
-1104047

skipif mysql # not compatible
query I rowsort label-9768
SELECT + COUNT ( * ) + + + ( + 34 ) * 18 * + + 82 * - SUM ( ALL COALESCE ( 22, + 29 * - 45 ) ) AS col0
----
-1104047

query I rowsort
SELECT ALL - 40 * + 18
----
-720

onlyif mysql # DIV for integer division: 
query I rowsort label-9770
SELECT + 23 DIV 47 * - 12
----
0

skipif mysql # not compatible
query I rowsort label-9770
SELECT + 23 / 47 * - 12
----
0

query I rowsort
SELECT DISTINCT 92 + + + 11
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-9772
SELECT ALL + COUNT( + 82 ) + - ( + - MIN( ALL - 48 ) ) AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-9772
SELECT ALL + COUNT ( + 82 ) + - ( + - MIN ( ALL - 48 ) ) AS col2
----
-47

query I rowsort
SELECT ALL - 96 + + + 66
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9774
SELECT + 80 + CAST( NULL AS SIGNED ) / 48
----
NULL

skipif mysql # not compatible
query I rowsort label-9774
SELECT + 80 + CAST ( NULL AS INTEGER ) / 48
----
NULL

query II rowsort
SELECT + + 67 col0, + 42
----
67
42

onlyif mysql # aggregate syntax: 
query I rowsort label-9776
SELECT 69 + + COALESCE ( - 69, - + 96, + + 80 ) + - MIN( ( - 27 ) ) AS col0
----
27

skipif mysql # not compatible
query I rowsort label-9776
SELECT 69 + + COALESCE ( - 69, - + 96, + + 80 ) + - MIN ( ( - 27 ) ) AS col0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-9777
SELECT - 63 + + + CASE + 24 WHEN + + 60 / + 40 + CASE - 8 WHEN - ( COALESCE ( COALESCE ( 74, - 85 ), - 85 + + 96, 95, MAX( ALL - 90 ) ) ) THEN 78 WHEN + 59 * + 19 THEN NULL END THEN + 4 WHEN 31 THEN NULL END + 66
----
NULL

skipif mysql # not compatible
query I rowsort label-9777
SELECT - 63 + + + CASE + 24 WHEN + + 60 / + 40 + CASE - 8 WHEN - ( COALESCE ( COALESCE ( 74, - 85 ), - 85 + + 96, 95, MAX ( ALL - 90 ) ) ) THEN 78 WHEN + 59 * + 19 THEN NULL END THEN + 4 WHEN 31 THEN NULL END + 66
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9778
SELECT ALL - SUM( + 74 ) + 20
----
-54

skipif mysql # not compatible
query I rowsort label-9778
SELECT ALL - SUM ( + 74 ) + 20
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-9779
SELECT DISTINCT - SUM( ALL - 27 ) + + COUNT( * )
----
28

skipif mysql # not compatible
query I rowsort label-9779
SELECT DISTINCT - SUM ( ALL - 27 ) + + COUNT ( * )
----
28

query I rowsort
SELECT DISTINCT - ( + 19 ) * - - ( + 73 )
----
-1387

onlyif mysql # DIV for integer division: 
query I rowsort label-9781
SELECT ALL + 13 DIV + CASE + 31 WHEN - 74 THEN NULL ELSE - 23 END AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9781
SELECT ALL + 13 / + CASE + 31 WHEN - 74 THEN NULL ELSE - 23 END AS col0
----
0

query I rowsort
SELECT + ( - + CASE - 51 WHEN + 65 THEN NULL WHEN - 80 THEN NULL WHEN - + 39 THEN - 73 END ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9783
SELECT 38 + COUNT( ALL + - 42 )
----
39

skipif mysql # not compatible
query I rowsort label-9783
SELECT 38 + COUNT ( ALL + - 42 )
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-9784
SELECT ALL MAX( DISTINCT - 18 ) col1
----
-18

skipif mysql # not compatible
query I rowsort label-9784
SELECT ALL MAX ( DISTINCT - 18 ) col1
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9785
SELECT COALESCE ( - + 27, + 26 - + 56, - COUNT( * ) DIV 68 ) * CAST( 87 AS SIGNED ) DIV 67
----
-35

skipif mysql # not compatible
query I rowsort label-9785
SELECT COALESCE ( - + 27, + 26 - + 56, - COUNT ( * ) / 68 ) * CAST ( 87 AS INTEGER ) / 67
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-9786
SELECT ( + ( + - 62 ) ) + - COUNT( * ) AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-9786
SELECT ( + ( + - 62 ) ) + - COUNT ( * ) AS col1
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-9787
SELECT DISTINCT 10 * 49 * + 44 * - MAX( DISTINCT 25 )
----
-539000

skipif mysql # not compatible
query I rowsort label-9787
SELECT DISTINCT 10 * 49 * + 44 * - MAX ( DISTINCT 25 )
----
-539000

onlyif mysql # aggregate syntax: 
query I rowsort label-9788
SELECT SUM( 54 ) + 1 + + ( - 83 ) / + - CASE - + 64 WHEN - 22 THEN + 3 * 0 + + 66 END * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9788
SELECT SUM ( 54 ) + 1 + + ( - 83 ) / + - CASE - + 64 WHEN - 22 THEN + 3 * 0 + + 66 END * + COUNT ( * )
----
NULL

query I rowsort
SELECT 90 + 49 col2
----
139

query I rowsort
SELECT ALL + 79 * + 19 AS col2
----
1501

query I rowsort
SELECT DISTINCT 74 * 57 col1
----
4218

onlyif mysql # aggregate syntax: 
query I rowsort label-9792
SELECT 77 + + - 76 * - + COUNT( * ) - - 7 AS col2
----
160

skipif mysql # not compatible
query I rowsort label-9792
SELECT 77 + + - 76 * - + COUNT ( * ) - - 7 AS col2
----
160

query I rowsort
SELECT DISTINCT 50 - + 0 * + - 60 + - + 80 + ( - 89 ) + - - 51 - 89 * 47 * 41 AS col1
----
-171571

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9794
SELECT ALL 9 * + CAST( - - 55 AS SIGNED )
----
495

skipif mysql # not compatible
query I rowsort label-9794
SELECT ALL 9 * + CAST ( - - 55 AS INTEGER )
----
495

query I rowsort
SELECT 86 + + + 84
----
170

onlyif mysql # aggregate syntax: 
query II rowsort label-9796
SELECT 96 + + - 95 * - 89 AS col0, NULLIF ( + 41, - COUNT( * ) ) AS col1
----
8551
41

skipif mysql # not compatible
query II rowsort label-9796
SELECT 96 + + - 95 * - 89 AS col0, NULLIF ( + 41, - COUNT ( * ) ) AS col1
----
8551
41

onlyif mysql # DIV for integer division: 
query II rowsort label-9797
SELECT 70 DIV - 84, 28 col2
----
0
28

skipif mysql # not compatible
query II rowsort label-9797
SELECT 70 / - 84, 28 col2
----
0
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9798
SELECT ALL - COALESCE ( COALESCE ( 17, CASE + - CASE + + 66 WHEN COUNT( * ) + + 61 * COUNT( * ) THEN NULL WHEN - 18 - + 86 THEN ( 98 ) DIV ( 66 ) END WHEN - 90 THEN 40 WHEN 58 THEN NULL ELSE + 86 * + 43 + 76 * 37 END * + 51 ), - 90, + 0 ) DIV 7
----
-2

skipif mysql # not compatible
query I rowsort label-9798
SELECT ALL - COALESCE ( COALESCE ( 17, CASE + - CASE + + 66 WHEN COUNT ( * ) + + 61 * COUNT ( * ) THEN NULL WHEN - 18 - + 86 THEN ( 98 ) / ( 66 ) END WHEN - 90 THEN 40 WHEN 58 THEN NULL ELSE + 86 * + 43 + 76 * 37 END * + 51 ), - 90, + 0 ) / 7
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9799
SELECT COUNT( * ) + 43 + + 67 - + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9799
SELECT COUNT ( * ) + 43 + + 67 - + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9800
SELECT 95 DIV - 53
----
-1

skipif mysql # not compatible
query I rowsort label-9800
SELECT 95 / - 53
----
-1

query I rowsort
SELECT ALL - 53 + 95
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9802
SELECT ALL - COUNT( * ) * - 81 col1, 2 / + 35 * + + NULLIF ( CASE + 45 WHEN 45 + 1 * CAST( NULL AS SIGNED ) THEN 77 END, + COUNT( * ) + + 8 ) AS col1
----
81
NULL

skipif mysql # not compatible
query II rowsort label-9802
SELECT ALL - COUNT ( * ) * - 81 col1, 2 / + 35 * + + NULLIF ( CASE + 45 WHEN 45 + 1 * CAST ( NULL AS INTEGER ) THEN 77 END, + COUNT ( * ) + + 8 ) AS col1
----
81
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9803
SELECT CASE + 36 WHEN 8 * ( - 87 ) + - + 38 THEN NULL ELSE 61 + COUNT( * ) * 57 END AS col1
----
118

skipif mysql # not compatible
query I rowsort label-9803
SELECT CASE + 36 WHEN 8 * ( - 87 ) + - + 38 THEN NULL ELSE 61 + COUNT ( * ) * 57 END AS col1
----
118

query I rowsort
SELECT ALL + - 47 + + 15 AS col0
----
-32

query I rowsort
SELECT ALL 24 * + 96
----
2304

query I rowsort
SELECT ALL - - ( - 26 )
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-9807
SELECT ( - 67 ) * - + 19 * - COUNT( * ) AS col1
----
-1273

skipif mysql # not compatible
query I rowsort label-9807
SELECT ( - 67 ) * - + 19 * - COUNT ( * ) AS col1
----
-1273

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9808
SELECT + NULLIF ( + 34, + CAST( NULL AS SIGNED ) + + 11 + + 13 ) * + 57
----
1938

skipif mysql # not compatible
query I rowsort label-9808
SELECT + NULLIF ( + 34, + CAST ( NULL AS INTEGER ) + + 11 + + 13 ) * + 57
----
1938

onlyif mysql # aggregate syntax: 
query I rowsort label-9809
SELECT ALL + 0 + + + 46 * - CASE + ( - 17 ) WHEN 25 THEN + ( - COUNT( * ) ) * - AVG ( ALL + 4 * - 1 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9809
SELECT ALL + 0 + + + 46 * - CASE + ( - 17 ) WHEN 25 THEN + ( - COUNT ( * ) ) * - AVG ( ALL + 4 * - 1 ) END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9810
SELECT DISTINCT + + ( + 22 ) + - 58 + + 75 DIV 53 * - 27 * - - 67 + - 81
----
-1926

skipif mysql # not compatible
query I rowsort label-9810
SELECT DISTINCT + + ( + 22 ) + - 58 + + 75 / 53 * - 27 * - - 67 + - 81
----
-1926

onlyif mysql # aggregate syntax: 
query I rowsort label-9811
SELECT - 78 * 50 * - + 35 - + + NULLIF ( CASE + - 15 WHEN - 68 THEN - 61 + 3 END, COUNT( * ) ) + ( COALESCE ( + 94, COUNT( * ) * 79 - - 11 * + 19, ( - 57 ) * 53, - COUNT( * ) / MAX( DISTINCT - 42 ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9811
SELECT - 78 * 50 * - + 35 - + + NULLIF ( CASE + - 15 WHEN - 68 THEN - 61 + 3 END, COUNT ( * ) ) + ( COALESCE ( + 94, COUNT ( * ) * 79 - - 11 * + 19, ( - 57 ) * 53, - COUNT ( * ) / MAX ( DISTINCT - 42 ) ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9812
SELECT + + COUNT( - 9 ) AS col1, 46 - - 13 + - 74
----
1
-15

skipif mysql # not compatible
query II rowsort label-9812
SELECT + + COUNT ( - 9 ) AS col1, 46 - - 13 + - 74
----
1
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-9813
SELECT DISTINCT + 17 + - COUNT( * ), 23 col2
----
16
23

skipif mysql # not compatible
query II rowsort label-9813
SELECT DISTINCT + 17 + - COUNT ( * ), 23 col2
----
16
23

query I rowsort
SELECT ALL - 84 + + 45 + 44 * 40 col1
----
1721

query I rowsort
SELECT ALL - ( + - 94 )
----
94

query II rowsort
SELECT 92 + - 86 AS col2, - 49 AS col0
----
6
-49

query I rowsort
SELECT ALL ( + + 34 ) - 33 + - 24
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-9818
SELECT 84 * - ( - COUNT( DISTINCT 4 ) ) AS col0
----
84

skipif mysql # not compatible
query I rowsort label-9818
SELECT 84 * - ( - COUNT ( DISTINCT 4 ) ) AS col0
----
84

query II rowsort
SELECT 46, - 79 AS col0
----
46
-79

query I rowsort
SELECT ALL 69 * COALESCE ( - - 19, 97 * - 86 ) AS col1
----
1311

query I rowsort
SELECT 61 * - + 62
----
-3782

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9822
SELECT ALL COUNT( * ) - + - 88 + - 15 + + COUNT( - 94 ) * + MAX( - + 76 ) DIV - COUNT( * ) + + ( 59 ) + 36 * - 89 * 12 * - MIN( 18 )
----
692273

skipif mysql # not compatible
query I rowsort label-9822
SELECT ALL COUNT ( * ) - + - 88 + - 15 + + COUNT ( - 94 ) * + MAX ( - + 76 ) / - COUNT ( * ) + + ( 59 ) + 36 * - 89 * 12 * - MIN ( 18 )
----
692273

query I rowsort
SELECT ( 32 ) * + 35 * + 39 * + + 46 AS col0
----
2009280

query I rowsort
SELECT ALL 33 * + 34 AS col2
----
1122

onlyif mysql # DIV for integer division: 
query I rowsort label-9825
SELECT DISTINCT 97 DIV 37
----
2

skipif mysql # not compatible
query I rowsort label-9825
SELECT DISTINCT 97 / 37
----
2

query I rowsort
SELECT 67 - + 55
----
12

query I rowsort
SELECT ALL 55 * - + CASE WHEN - 93 IS NULL THEN NULL WHEN ( NULL BETWEEN - 14 + + 82 / 34 AND 58 ) THEN 16 ELSE 86 END * 62 AS col0
----
-293260

onlyif mysql # aggregate syntax: 
query I rowsort label-9828
SELECT 86 * - + NULLIF ( 52, + COUNT( * ) ) AS col2
----
-4472

skipif mysql # not compatible
query I rowsort label-9828
SELECT 86 * - + NULLIF ( 52, + COUNT ( * ) ) AS col2
----
-4472

query I rowsort
SELECT ALL 19 + - 66 * - + 2 col2
----
151

query I rowsort
SELECT + 31 - - + 90 + + ( + - 34 )
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-9831
SELECT - 96 DIV + 55
----
-1

skipif mysql # not compatible
query I rowsort label-9831
SELECT - 96 / + 55
----
-1

query I rowsort
SELECT ALL - + 15 + - 32 + 28 * + + ( 34 ) * + + 1
----
905

onlyif mysql # aggregate syntax: 
query I rowsort label-9833
SELECT + 35 + - + ( + + COALESCE ( + 5, ( + + COUNT( * ) ) + + 62 + COUNT( * ) - 18 * 61 ) ) AS col0
----
30

skipif mysql # not compatible
query I rowsort label-9833
SELECT + 35 + - + ( + + COALESCE ( + 5, ( + + COUNT ( * ) ) + + 62 + COUNT ( * ) - 18 * 61 ) ) AS col0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-9834
SELECT - MIN( 48 )
----
-48

skipif mysql # not compatible
query I rowsort label-9834
SELECT - MIN ( 48 )
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9835
SELECT ALL - + CAST( NULL AS SIGNED ) / - 45 + + 55 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9835
SELECT ALL - + CAST ( NULL AS INTEGER ) / - 45 + + 55 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9836
SELECT - + 68 DIV + 71
----
0

skipif mysql # not compatible
query I rowsort label-9836
SELECT - + 68 / + 71
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9837
SELECT - - 57 * 38 * - NULLIF ( ( 25 ), + - COALESCE ( - MAX( DISTINCT + 18 ), 35 * ( 27 / 52 ) + + 47, + CASE COUNT( * ) WHEN - CASE - 91 WHEN ( + 37 ) * + 94 - - 2 THEN - 29 END THEN NULL WHEN 63 * NULLIF ( + 99, - NULLIF ( + CASE - 35 WHEN - 0 + 45 * 11 THEN 40 + - 1 END, - 94 ) + 45 ) THEN 93 END ) / - 78 - - NULLIF ( 29, + ( 66 ) ) * + MAX( DISTINCT ( - 86 ) ) ) - 72 AS col1
----
-54222

skipif mysql # not compatible
query I rowsort label-9837
SELECT - - 57 * 38 * - NULLIF ( ( 25 ), + - COALESCE ( - MAX ( DISTINCT + 18 ), 35 * ( 27 / 52 ) + + 47, + CASE COUNT ( * ) WHEN - CASE - 91 WHEN ( + 37 ) * + 94 - - 2 THEN - 29 END THEN NULL WHEN 63 * NULLIF ( + 99, - NULLIF ( + CASE - 35 WHEN - 0 + 45 * 11 THEN 40 + - 1 END, - 94 ) + 45 ) THEN 93 END ) / - 78 - - NULLIF ( 29, + ( 66 ) ) * + MAX ( DISTINCT ( - 86 ) ) ) - 72 AS col1
----
-54222

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9838
SELECT - + NULLIF ( 70, COUNT( ALL - + 59 ) DIV + - 92 + - 57 ) DIV - 73 * + 4 * - CAST( 9 AS SIGNED ) + 0 * - 41 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9838
SELECT - + NULLIF ( 70, COUNT ( ALL - + 59 ) / + - 92 + - 57 ) / - 73 * + 4 * - CAST ( 9 AS INTEGER ) + 0 * - 41 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9839
SELECT ALL 27 * - ( - COUNT( * ) ) + - 99 - COUNT( * ) * + 13 DIV - 52 * - COUNT( * ) * - NULLIF ( 15, + 42 + - AVG ( ALL + 59 ) ) AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-9839
SELECT ALL 27 * - ( - COUNT ( * ) ) + - 99 - COUNT ( * ) * + 13 / - 52 * - COUNT ( * ) * - NULLIF ( 15, + 42 + - AVG ( ALL + 59 ) ) AS col1
----
-72

query II rowsort
SELECT ALL + - 54 AS col2, 64
----
-54
64

onlyif mysql # DIV for integer division: 
query I rowsort label-9841
SELECT ALL + - 48 DIV - 96 + - 43 * + 90 * 14
----
-54180

skipif mysql # not compatible
query I rowsort label-9841
SELECT ALL + - 48 / - 96 + - 43 * + 90 * 14
----
-54180

onlyif mysql # aggregate syntax: 
query I rowsort label-9842
SELECT DISTINCT + SUM( + 39 )
----
39

skipif mysql # not compatible
query I rowsort label-9842
SELECT DISTINCT + SUM ( + 39 )
----
39

query I rowsort
SELECT ALL - 38 * - 42 AS col0
----
1596

onlyif mysql # aggregate syntax: 
query I rowsort label-9844
SELECT ALL + - SUM( ALL 46 ) * ( 69 ) * - ( ( + 79 ) ) - 74 - - 37
----
250709

skipif mysql # not compatible
query I rowsort label-9844
SELECT ALL + - SUM ( ALL 46 ) * ( 69 ) * - ( ( + 79 ) ) - 74 - - 37
----
250709

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9845
SELECT + 56 * 81 - 99 / - - MIN( - ( + + CAST( NULL AS SIGNED ) ) ) * - + 37 + - 14 + 93 / - MIN( 63 ) - - 33 + 34
----
NULL

skipif mysql # not compatible
query I rowsort label-9845
SELECT + 56 * 81 - 99 / - - MIN ( - ( + + CAST ( NULL AS INTEGER ) ) ) * - + 37 + - 14 + 93 / - MIN ( 63 ) - - 33 + 34
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9846
SELECT ALL + 84 * + + 59 * + - COUNT( * ) + - + 19 - - - COUNT( * ) col0
----
-4976

skipif mysql # not compatible
query I rowsort label-9846
SELECT ALL + 84 * + + 59 * + - COUNT ( * ) + - + 19 - - - COUNT ( * ) col0
----
-4976

onlyif mysql # aggregate syntax: 
query I rowsort label-9847
SELECT COUNT( DISTINCT - - 3 )
----
1

skipif mysql # not compatible
query I rowsort label-9847
SELECT COUNT ( DISTINCT - - 3 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9848
SELECT + + CASE - 40 WHEN SUM( DISTINCT - - CASE + 6 WHEN - - 10 / - 58 THEN - 34 + - 55 WHEN + 99 THEN NULL END ) THEN - ( ( - MIN( + 28 ) ) ) / - 41 + 61 WHEN - 97 THEN NULL ELSE NULL END * 74
----
NULL

skipif mysql # not compatible
query I rowsort label-9848
SELECT + + CASE - 40 WHEN SUM ( DISTINCT - - CASE + 6 WHEN - - 10 / - 58 THEN - 34 + - 55 WHEN + 99 THEN NULL END ) THEN - ( ( - MIN ( + 28 ) ) ) / - 41 + 61 WHEN - 97 THEN NULL ELSE NULL END * 74
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9849
SELECT + ( + + 61 ) + + + 81 + + + COUNT( * ) * - + 63 AS col2
----
79

skipif mysql # not compatible
query I rowsort label-9849
SELECT + ( + + 61 ) + + + 81 + + + COUNT ( * ) * - + 63 AS col2
----
79

query I rowsort
SELECT - 27 * 48
----
-1296

onlyif mysql # aggregate syntax: 
query I rowsort label-9851
SELECT DISTINCT + ( - CASE - 19 WHEN + - 14 - COUNT( * ) + - 86 * + CASE 91 WHEN - 88 THEN + MIN( - 43 ) / - 78 ELSE NULL END + CASE + 42 WHEN + 87 * + COUNT( * ) THEN NULL WHEN 67 THEN + 27 END THEN 55 * + 98 + 78 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-9851
SELECT DISTINCT + ( - CASE - 19 WHEN + - 14 - COUNT ( * ) + - 86 * + CASE 91 WHEN - 88 THEN + MIN ( - 43 ) / - 78 ELSE NULL END + CASE + 42 WHEN + 87 * + COUNT ( * ) THEN NULL WHEN 67 THEN + 27 END THEN 55 * + 98 + 78 END )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9852
SELECT DISTINCT 56 * CAST( 65 AS SIGNED ) * - COUNT( * ) AS col0, COUNT( * ) + ( + 97 ) + - + 36
----
-3640
62

skipif mysql # not compatible
query II rowsort label-9852
SELECT DISTINCT 56 * CAST ( 65 AS INTEGER ) * - COUNT ( * ) AS col0, COUNT ( * ) + ( + 97 ) + - + 36
----
-3640
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9853
SELECT MIN( DISTINCT + 45 ) col1, CAST( ( + - 23 ) AS SIGNED )
----
45
-23

skipif mysql # not compatible
query II rowsort label-9853
SELECT MIN ( DISTINCT + 45 ) col1, CAST ( ( + - 23 ) AS INTEGER )
----
45
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-9854
SELECT ALL - 61 DIV + 26
----
-2

skipif mysql # not compatible
query I rowsort label-9854
SELECT ALL - 61 / + 26
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9855
SELECT + COUNT( 86 ) * 87 + - - COUNT( * ) AS col1
----
88

skipif mysql # not compatible
query I rowsort label-9855
SELECT + COUNT ( 86 ) * 87 + - - COUNT ( * ) AS col1
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-9856
SELECT - COUNT( * ) + + + 54 AS col2
----
53

skipif mysql # not compatible
query I rowsort label-9856
SELECT - COUNT ( * ) + + + 54 AS col2
----
53

query I rowsort
SELECT DISTINCT 20 * 74
----
1480

onlyif mysql # aggregate syntax: 
query I rowsort label-9858
SELECT - CASE + 65 WHEN - MAX( 94 ) * + + COUNT( * ) + 28 THEN NULL WHEN - 1 - + NULLIF ( - 53, 5 ) + 88 THEN + 47 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9858
SELECT - CASE + 65 WHEN - MAX ( 94 ) * + + COUNT ( * ) + 28 THEN NULL WHEN - 1 - + NULLIF ( - 53, 5 ) + 88 THEN + 47 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9859
SELECT ALL 55 * + 30 AS col1, - 23 * - 41 + SUM( - - 83 )
----
1650
1026

skipif mysql # not compatible
query II rowsort label-9859
SELECT ALL 55 * + 30 AS col1, - 23 * - 41 + SUM ( - - 83 )
----
1650
1026

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9860
SELECT + 67 - + COUNT( * ) * 69 * - COALESCE ( 62, + + CAST( 19 AS SIGNED ) )
----
4345

skipif mysql # not compatible
query I rowsort label-9860
SELECT + 67 - + COUNT ( * ) * 69 * - COALESCE ( 62, + + CAST ( 19 AS INTEGER ) )
----
4345

onlyif mysql # aggregate syntax: 
query I rowsort label-9861
SELECT DISTINCT + 44 * + 47 * + ( + + COUNT( * ) ) AS col2
----
2068

skipif mysql # not compatible
query I rowsort label-9861
SELECT DISTINCT + 44 * + 47 * + ( + + COUNT ( * ) ) AS col2
----
2068

query I rowsort
SELECT ALL 49 + + 2 AS col1
----
51

query I rowsort
SELECT + 55 + + - 39 + + 37 col2
----
53

query I rowsort
SELECT ALL 1 + + 7
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9865
SELECT + 7 + - - 4 * - 7 + 85 + + 37 + + NULLIF ( COUNT( * ), + - 39 ) * 31 * - COUNT( * ) AS col2
----
70

skipif mysql # not compatible
query I rowsort label-9865
SELECT + 7 + - - 4 * - 7 + 85 + + 37 + + NULLIF ( COUNT ( * ), + - 39 ) * 31 * - COUNT ( * ) AS col2
----
70

query I rowsort
SELECT ALL 13 + + + 70 AS col1
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9867
SELECT DISTINCT CAST( + 20 AS SIGNED ) AS col2, 2 - + COUNT( * ) + + - CAST( - 99 AS SIGNED ) + - 55 * - COUNT( - 91 ) - - 13 DIV - COUNT( 24 * 54 )
----
20
142

skipif mysql # not compatible
query II rowsort label-9867
SELECT DISTINCT CAST ( + 20 AS INTEGER ) AS col2, 2 - + COUNT ( * ) + + - CAST ( - 99 AS INTEGER ) + - 55 * - COUNT ( - 91 ) - - 13 / - COUNT ( 24 * 54 )
----
20
142

query I rowsort
SELECT + + 78 * + - 2
----
-156

query I rowsort
SELECT + + 72 + 87 AS col2
----
159

onlyif mysql # aggregate syntax: 
query II rowsort label-9870
SELECT ALL NULLIF ( - 32, COUNT( + 35 ) ) AS col0, 16
----
-32
16

skipif mysql # not compatible
query II rowsort label-9870
SELECT ALL NULLIF ( - 32, COUNT ( + 35 ) ) AS col0, 16
----
-32
16

query I rowsort
SELECT DISTINCT 81 + + 94 - - - 92 * - 67 * 58 AS col0
----
357687

query I rowsort
SELECT - - 6 col0
----
6

query I rowsort
SELECT ALL 99 - - - 39
----
60

query I rowsort
SELECT + 69 * - 25
----
-1725

onlyif mysql # aggregate syntax: 
query I rowsort label-9875
SELECT DISTINCT - 1 * + + 68 - + COUNT( * ) + 28 AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-9875
SELECT DISTINCT - 1 * + + 68 - + COUNT ( * ) + 28 AS col0
----
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9876
SELECT ALL + + COUNT( * ) DIV ( - - 14 ) - 15 + - ( 11 ) AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-9876
SELECT ALL + + COUNT ( * ) / ( - - 14 ) - 15 + - ( 11 ) AS col2
----
-26

query I rowsort
SELECT + - 51 * + + 58
----
-2958

onlyif mysql # aggregate syntax: 
query I rowsort label-9878
SELECT + COUNT( 13 )
----
1

skipif mysql # not compatible
query I rowsort label-9878
SELECT + COUNT ( 13 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9879
SELECT + COUNT( * ) * - 29 * - - 12 * 9 - 26 + + CAST( NULL AS DECIMAL ) + - + 43 * + 84 * + NULLIF ( - 80, - 88 ) * + ( - 34 ) / - MIN( - 20 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9879
SELECT + COUNT ( * ) * - 29 * - - 12 * 9 - 26 + + CAST ( NULL AS REAL ) + - + 43 * + 84 * + NULLIF ( - 80, - 88 ) * + ( - 34 ) / - MIN ( - 20 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9880
SELECT + CASE 37 WHEN MIN( ALL - - 90 ) + - COALESCE ( 60, 55 - - COUNT( * ) ) + + AVG ( ALL + 88 ) THEN NULL WHEN - 65 * - 27 + + COUNT( ALL - 42 ) * - 80 THEN - ( ( - 64 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9880
SELECT + CASE 37 WHEN MIN ( ALL - - 90 ) + - COALESCE ( 60, 55 - - COUNT ( * ) ) + + AVG ( ALL + 88 ) THEN NULL WHEN - 65 * - 27 + + COUNT ( ALL - 42 ) * - 80 THEN - ( ( - 64 ) ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9881
SELECT ALL + 29 * COUNT( - - 49 )
----
29

skipif mysql # not compatible
query I rowsort label-9881
SELECT ALL + 29 * COUNT ( - - 49 )
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9882
SELECT DISTINCT 51 DIV COUNT( * ) AS col0
----
51

skipif mysql # not compatible
query I rowsort label-9882
SELECT DISTINCT 51 / COUNT ( * ) AS col0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9883
SELECT ALL - 57 * - + SUM( ALL + 47 )
----
2679

skipif mysql # not compatible
query I rowsort label-9883
SELECT ALL - 57 * - + SUM ( ALL + 47 )
----
2679

query I rowsort
SELECT - 21 + - 92
----
-113

onlyif mysql # aggregate syntax: 
query I rowsort label-9885
SELECT DISTINCT - 48 * + - MIN( DISTINCT - 56 ) col2
----
-2688

skipif mysql # not compatible
query I rowsort label-9885
SELECT DISTINCT - 48 * + - MIN ( DISTINCT - 56 ) col2
----
-2688

query I rowsort
SELECT DISTINCT + ( - COALESCE ( 41, - 18 * 1 * + ( + 88 ) ) )
----
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9887
SELECT COALESCE ( + 45, - MIN( ALL + - 8 ) DIV + - 18, + 94 ), 61 + - COALESCE ( + CASE + ( 98 ) WHEN - COUNT( * ) THEN 71 + 95 * + NULLIF ( + 87 * + 63, 20 DIV - 72 ) ELSE - ( 78 ) END, - NULLIF ( - 14, + 6 * 68 ), 36 ) AS col2
----
45
139

skipif mysql # not compatible
query II rowsort label-9887
SELECT COALESCE ( + 45, - MIN ( ALL + - 8 ) / + - 18, + 94 ), 61 + - COALESCE ( + CASE + ( 98 ) WHEN - COUNT ( * ) THEN 71 + 95 * + NULLIF ( + 87 * + 63, 20 / - 72 ) ELSE - ( 78 ) END, - NULLIF ( - 14, + 6 * 68 ), 36 ) AS col2
----
45
139

onlyif mysql # aggregate syntax: 
query I rowsort label-9888
SELECT DISTINCT + MAX( + - 53 ) * + CASE - - AVG ( + 3 ) WHEN - CASE - 21 WHEN - 37 + + 66 + + + 32 * CASE 39 WHEN 61 THEN - 19 ELSE + 32 END THEN NULL WHEN 88 THEN 97 END * 60 THEN NULL WHEN + 64 * 67 THEN NULL ELSE - MAX( ALL - 72 ) END + 3 * 83 AS col0
----
-3567

skipif mysql # not compatible
query I rowsort label-9888
SELECT DISTINCT + MAX ( + - 53 ) * + CASE - - AVG ( + 3 ) WHEN - CASE - 21 WHEN - 37 + + 66 + + + 32 * CASE 39 WHEN 61 THEN - 19 ELSE + 32 END THEN NULL WHEN 88 THEN 97 END * 60 THEN NULL WHEN + 64 * 67 THEN NULL ELSE - MAX ( ALL - 72 ) END + 3 * 83 AS col0
----
-3567

query I rowsort
SELECT ALL + 58 + 4
----
62

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9890
SELECT ALL - 67 + + + 28 + + NULLIF ( 84, + 45 ) + + - 47 * 29 / + COUNT( * ) * + 66 + + 88 * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9890
SELECT ALL - 67 + + + 28 + + NULLIF ( 84, + 45 ) + + - 47 * 29 / + COUNT ( * ) * + 66 + + 88 * - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL 25 + - 57
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-9892
SELECT DISTINCT - 85 + + SUM( - + 33 ) * - COALESCE ( - + MAX( DISTINCT - 54 ), - ( + 88 ) ) * + ( 56 )
----
99707

skipif mysql # not compatible
query I rowsort label-9892
SELECT DISTINCT - 85 + + SUM ( - + 33 ) * - COALESCE ( - + MAX ( DISTINCT - 54 ), - ( + 88 ) ) * + ( 56 )
----
99707

onlyif mysql # aggregate syntax: 
query I rowsort label-9893
SELECT ALL COALESCE ( 16, + SUM( ALL - + 72 ) * - 37 + - 10 + + + 36 * + SUM( ALL + - 64 ) * - 99 * + 42 ) * + COUNT( ALL + 98 ) col2
----
16

skipif mysql # not compatible
query I rowsort label-9893
SELECT ALL COALESCE ( 16, + SUM ( ALL - + 72 ) * - 37 + - 10 + + + 36 * + SUM ( ALL + - 64 ) * - 99 * + 42 ) * + COUNT ( ALL + 98 ) col2
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9894
SELECT COUNT( * ) DIV + 91 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9894
SELECT COUNT ( * ) / + 91 AS col2
----
0

query I rowsort
SELECT ALL + 22 + - + 15 AS col2
----
7

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9896
SELECT 19, 62 DIV - - CAST( - 19 AS SIGNED ) AS col2
----
19
-3

skipif mysql # not compatible
query II rowsort label-9896
SELECT 19, 62 / - - CAST ( - 19 AS INTEGER ) AS col2
----
19
-3

query I rowsort
SELECT 1 - + 98 col1
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9898
SELECT - COUNT( * ) + 44
----
43

skipif mysql # not compatible
query I rowsort label-9898
SELECT - COUNT ( * ) + 44
----
43

query I rowsort
SELECT DISTINCT + 79 * + 89 AS col0
----
7031

query I rowsort
SELECT ALL 70 - + ( - 83 ) + + 64 AS col0
----
217

query I rowsort
SELECT ALL + 52 * + - 88
----
-4576

onlyif mysql # aggregate syntax: 
query I rowsort label-9902
SELECT COUNT( * ) - COUNT( ALL + 77 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9902
SELECT COUNT ( * ) - COUNT ( ALL + 77 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9903
SELECT ALL - 61 - + ( - COUNT( * ) ) * + 71
----
10

skipif mysql # not compatible
query I rowsort label-9903
SELECT ALL - 61 - + ( - COUNT ( * ) ) * + 71
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9904
SELECT ALL + 97 DIV + 87 + - + ( + 65 ) + + - COUNT( * ) * - CAST( - - 87 AS SIGNED ) * + - ( 9 ) AS col2
----
-847

skipif mysql # not compatible
query I rowsort label-9904
SELECT ALL + 97 / + 87 + - + ( + 65 ) + + - COUNT ( * ) * - CAST ( - - 87 AS INTEGER ) * + - ( 9 ) AS col2
----
-847

query II rowsort
SELECT DISTINCT 76 AS col0, 42 + + 75 AS col1
----
76
117

query I rowsort
SELECT 90 * + ( - 27 )
----
-2430

onlyif mysql # DIV for integer division: 
query II rowsort label-9907
SELECT 25 DIV + + 43 - + 20 AS col0, + 67 AS col1
----
-20
67

skipif mysql # not compatible
query II rowsort label-9907
SELECT 25 / + + 43 - + 20 AS col0, + 67 AS col1
----
-20
67

onlyif mysql # DIV for integer division: 
query I rowsort label-9908
SELECT ALL 0 * 91 DIV + 87 + + 97 AS col0
----
97

skipif mysql # not compatible
query I rowsort label-9908
SELECT ALL 0 * 91 / + 87 + + 97 AS col0
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9909
SELECT SUM( + 68 ) * - 47 * + COUNT( ALL CAST( - ( + 49 ) AS SIGNED ) )
----
-3196

skipif mysql # not compatible
query I rowsort label-9909
SELECT SUM ( + 68 ) * - 47 * + COUNT ( ALL CAST ( - ( + 49 ) AS INTEGER ) )
----
-3196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9910
SELECT + ( 25 ) / - + 42 * CAST( NULL AS SIGNED ) + 44 + + 72
----
NULL

skipif mysql # not compatible
query I rowsort label-9910
SELECT + ( 25 ) / - + 42 * CAST ( NULL AS INTEGER ) + 44 + + 72
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9911
SELECT + COUNT( * ), 20 AS col0
----
1
20

skipif mysql # not compatible
query II rowsort label-9911
SELECT + COUNT ( * ), 20 AS col0
----
1
20

query II rowsort
SELECT DISTINCT - 12 AS col2, 19 + 8 * + 68 col0
----
-12
563

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9913
SELECT ( - CAST( - - ( 43 ) AS SIGNED ) ) * - 84
----
3612

skipif mysql # not compatible
query I rowsort label-9913
SELECT ( - CAST ( - - ( 43 ) AS INTEGER ) ) * - 84
----
3612

query I rowsort
SELECT 89 + - 76
----
13

query II rowsort
SELECT ALL - 25 col1, - 24 + - 25 AS col1
----
-25
-49

query II rowsort
SELECT + 29 col2, - 14 - + 50
----
29
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9917
SELECT + CAST( NULL AS SIGNED ) * - 35 + + COUNT( + 99 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9917
SELECT + CAST ( NULL AS INTEGER ) * - 35 + + COUNT ( + 99 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9918
SELECT DISTINCT - SUM( 4 ) + - COUNT( ALL 80 ) * - - 90 * - 79
----
7106

skipif mysql # not compatible
query I rowsort label-9918
SELECT DISTINCT - SUM ( 4 ) + - COUNT ( ALL 80 ) * - - 90 * - 79
----
7106

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9919
SELECT ALL + 98 DIV MIN( - 37 )
----
-2

skipif mysql # not compatible
query I rowsort label-9919
SELECT ALL + 98 / MIN ( - 37 )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9920
SELECT DISTINCT - COUNT( - 33 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9920
SELECT DISTINCT - COUNT ( - 33 ) AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9921
SELECT DISTINCT - CASE + 56 WHEN - 24 THEN NULL WHEN 60 + - 99 THEN + 75 * + 54 * + + 90 WHEN 93 * - 94 + CAST( NULL AS SIGNED ) * + ( 6 + - 44 ) THEN NULL ELSE ( 76 ) + 40 END * 46 AS col1
----
-5336

skipif mysql # not compatible
query I rowsort label-9921
SELECT DISTINCT - CASE + 56 WHEN - 24 THEN NULL WHEN 60 + - 99 THEN + 75 * + 54 * + + 90 WHEN 93 * - 94 + CAST ( NULL AS INTEGER ) * + ( 6 + - 44 ) THEN NULL ELSE ( 76 ) + 40 END * 46 AS col1
----
-5336

onlyif mysql # DIV for integer division: 
query I rowsort label-9922
SELECT ALL 96 DIV + 33 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-9922
SELECT ALL 96 / + 33 AS col2
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9923
SELECT DISTINCT + COALESCE ( - ( - 24 ), - 48 ) + 33 + - MIN( + 8 ) * - + 20 * + CAST( NULL AS SIGNED ) * - 7
----
NULL

skipif mysql # not compatible
query I rowsort label-9923
SELECT DISTINCT + COALESCE ( - ( - 24 ), - 48 ) + 33 + - MIN ( + 8 ) * - + 20 * + CAST ( NULL AS INTEGER ) * - 7
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9924
SELECT ALL + ( + 66 ) * + COUNT( * )
----
66

skipif mysql # not compatible
query I rowsort label-9924
SELECT ALL + ( + 66 ) * + COUNT ( * )
----
66

query II rowsort
SELECT - 16, - 68 + ( + ( 52 ) ) + + 24 AS col1
----
-16
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9926
SELECT 27 * CAST( NULL AS SIGNED ) + - COUNT( 17 ) + - 66 - 18 - + 82 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9926
SELECT 27 * CAST ( NULL AS INTEGER ) + - COUNT ( 17 ) + - 66 - 18 - + 82 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9927
SELECT DISTINCT - ( 65 ) - + MAX( ALL 28 ) col0
----
-93

skipif mysql # not compatible
query I rowsort label-9927
SELECT DISTINCT - ( 65 ) - + MAX ( ALL 28 ) col0
----
-93

onlyif mysql # DIV for integer division: 
query II rowsort label-9928
SELECT - 15 + + - 88 AS col2, + 83 + - 10 + - 65 + + 8 + + NULLIF ( - 97, + 67 ) + - - 23 - - 55 + 55 DIV 87 * + COALESCE ( - 70 DIV - ( - 31 ), - 5 ) AS col1
----
-103
-3

skipif mysql # not compatible
query II rowsort label-9928
SELECT - 15 + + - 88 AS col2, + 83 + - 10 + - 65 + + 8 + + NULLIF ( - 97, + 67 ) + - - 23 - - 55 + 55 / 87 * + COALESCE ( - 70 / - ( - 31 ), - 5 ) AS col1
----
-103
-3

query I rowsort
SELECT ALL + + 96 - - 40 * - - 35 + 12 AS col0
----
1508

onlyif mysql # aggregate syntax: 
query I rowsort label-9930
SELECT DISTINCT + 23 * + - CASE 50 WHEN + - 77 THEN - 67 * - 57 + - COALESCE ( + 74, - COUNT( * ), 35, 98 / COUNT( * ) ) ELSE NULL END * + 54 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9930
SELECT DISTINCT + 23 * + - CASE 50 WHEN + - 77 THEN - 67 * - 57 + - COALESCE ( + 74, - COUNT ( * ), 35, 98 / COUNT ( * ) ) ELSE NULL END * + 54 col1
----
NULL

query I rowsort
SELECT 5 * - 77 * 10 AS col1
----
-3850

query I rowsort
SELECT + 65 + + 58 AS col0
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-9933
SELECT ( + COALESCE ( - - 72, - 9 + + + 62, - - COUNT( * ) ) ) * + 24 AS col0
----
1728

skipif mysql # not compatible
query I rowsort label-9933
SELECT ( + COALESCE ( - - 72, - 9 + + + 62, - - COUNT ( * ) ) ) * + 24 AS col0
----
1728

onlyif mysql # DIV for integer division: 
query I rowsort label-9934
SELECT ALL + + 28 DIV + 74 + - COALESCE ( 15, - 37 ) DIV 96 * + 28 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9934
SELECT ALL + + 28 / + 74 + - COALESCE ( 15, - 37 ) / 96 * + 28 AS col2
----
0

query II rowsort
SELECT - 26 col1, 52 AS col2
----
-26
52

onlyif mysql # aggregate syntax: 
query I rowsort label-9936
SELECT COUNT( * ) * - 44 + + - 92
----
-136

skipif mysql # not compatible
query I rowsort label-9936
SELECT COUNT ( * ) * - 44 + + - 92
----
-136

query I rowsort
SELECT DISTINCT 93 + + - 96 AS col2
----
-3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9938
SELECT DISTINCT - - 86 * - 13 + CASE 52 WHEN + 84 * - 91 * 10 * - COALESCE ( + 35, - + COUNT( * ) * + ( - 5 ), - COUNT( * ) - + 32 * - 17 ) + + 41 * CAST( NULL AS DECIMAL ) THEN + COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9938
SELECT DISTINCT - - 86 * - 13 + CASE 52 WHEN + 84 * - 91 * 10 * - COALESCE ( + 35, - + COUNT ( * ) * + ( - 5 ), - COUNT ( * ) - + 32 * - 17 ) + + 41 * CAST ( NULL AS REAL ) THEN + COUNT ( * ) END AS col1
----
NULL

query II rowsort
SELECT DISTINCT 5 AS col0, + 21
----
5
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9940
SELECT ALL - 20 * 11 + + SUM( DISTINCT - - 98 ) + 48 DIV 61 * + 38 DIV - - 31 DIV 7
----
-122

skipif mysql # not compatible
query I rowsort label-9940
SELECT ALL - 20 * 11 + + SUM ( DISTINCT - - 98 ) + 48 / 61 * + 38 / - - 31 / 7
----
-122

onlyif mysql # aggregate syntax: 
query I rowsort label-9941
SELECT + 81 * + COUNT( DISTINCT + 7 )
----
81

skipif mysql # not compatible
query I rowsort label-9941
SELECT + 81 * + COUNT ( DISTINCT + 7 )
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9942
SELECT + - CAST( + + 64 AS SIGNED )
----
-64

skipif mysql # not compatible
query I rowsort label-9942
SELECT + - CAST ( + + 64 AS INTEGER )
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9943
SELECT + COUNT( DISTINCT - CAST( - - 48 AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-9943
SELECT + COUNT ( DISTINCT - CAST ( - - 48 AS INTEGER ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9944
SELECT ALL 12 * + 95 * 76 + - + 78 * - MAX( DISTINCT - 21 )
----
85002

skipif mysql # not compatible
query I rowsort label-9944
SELECT ALL 12 * + 95 * 76 + - + 78 * - MAX ( DISTINCT - 21 )
----
85002

onlyif mysql # aggregate syntax: 
query I rowsort label-9945
SELECT MAX( - 44 ) AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-9945
SELECT MAX ( - 44 ) AS col2
----
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-9946
SELECT + 30 DIV COALESCE ( + - 71, - - 84 + - + 19 + - 35 + - 58 * - ( + 6 ) ) * + 3 * + 16 - 38 + - 62
----
-100

skipif mysql # not compatible
query I rowsort label-9946
SELECT + 30 / COALESCE ( + - 71, - - 84 + - + 19 + - 35 + - 58 * - ( + 6 ) ) * + 3 * + 16 - 38 + - 62
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-9947
SELECT MAX( ALL + 77 ) AS col1
----
77

skipif mysql # not compatible
query I rowsort label-9947
SELECT MAX ( ALL + 77 ) AS col1
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9948
SELECT ALL + ( + 22 ) * - 26 / - COUNT( * ) + - ( - + 98 ) + - COUNT( * ) + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9948
SELECT ALL + ( + 22 ) * - 26 / - COUNT ( * ) + - ( - + 98 ) + - COUNT ( * ) + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9949
SELECT DISTINCT NULLIF ( MAX( DISTINCT - - 40 ), + NULLIF ( 54, - - 64 * 49 ) * + - 56 * + 45 + - 27 * - 89 * + 13 ) * 41 + + 16
----
1656

skipif mysql # not compatible
query I rowsort label-9949
SELECT DISTINCT NULLIF ( MAX ( DISTINCT - - 40 ), + NULLIF ( 54, - - 64 * 49 ) * + - 56 * + 45 + - 27 * - 89 * + 13 ) * 41 + + 16
----
1656

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9950
SELECT ALL CAST( NULL AS SIGNED ) * + 63 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9950
SELECT ALL CAST ( NULL AS INTEGER ) * + 63 AS col2
----
NULL

query I rowsort
SELECT + 32 + - 63
----
-31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9952
SELECT 3 * + 18 * COUNT( * ) - 96 DIV - MIN( DISTINCT - - 93 ) + + 13 AS col0
----
68

skipif mysql # not compatible
query I rowsort label-9952
SELECT 3 * + 18 * COUNT ( * ) - 96 / - MIN ( DISTINCT - - 93 ) + + 13 AS col0
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9953
SELECT + 78 * - CAST( - 37 AS SIGNED ) * 26 AS col2
----
75036

skipif mysql # not compatible
query I rowsort label-9953
SELECT + 78 * - CAST ( - 37 AS INTEGER ) * 26 AS col2
----
75036

onlyif mysql # aggregate syntax: 
query I rowsort label-9954
SELECT MIN( + - 43 )
----
-43

skipif mysql # not compatible
query I rowsort label-9954
SELECT MIN ( + - 43 )
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-9955
SELECT SUM( + - CASE - - 12 WHEN + - 8 THEN - 98 * + + 65 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-9955
SELECT SUM ( + - CASE - - 12 WHEN + - 8 THEN - 98 * + + 65 END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9956
SELECT - CASE + + COUNT( * ) WHEN 16 / - 56 - + 9 THEN NULL ELSE - 61 END * - + 47 * + 13 + + 23 * - 50 + - - 48 AS col2
----
-38373

skipif mysql # not compatible
query I rowsort label-9956
SELECT - CASE + + COUNT ( * ) WHEN 16 / - 56 - + 9 THEN NULL ELSE - 61 END * - + 47 * + 13 + + 23 * - 50 + - - 48 AS col2
----
-38373

onlyif mysql # aggregate syntax: 
query I rowsort label-9957
SELECT + NULLIF ( + COUNT( * ), - SUM( ALL 92 ) )
----
1

skipif mysql # not compatible
query I rowsort label-9957
SELECT + NULLIF ( + COUNT ( * ), - SUM ( ALL 92 ) )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9958
SELECT ALL COUNT( 70 ), + 28 AS col0
----
1
28

skipif mysql # not compatible
query II rowsort label-9958
SELECT ALL COUNT ( 70 ), + 28 AS col0
----
1
28

query I rowsort
SELECT - NULLIF ( - + 56, - - 40 ) AS col2
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-9960
SELECT DISTINCT + COUNT( ALL - - ( + 10 ) ) col0
----
1

skipif mysql # not compatible
query I rowsort label-9960
SELECT DISTINCT + COUNT ( ALL - - ( + 10 ) ) col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9961
SELECT DISTINCT + CASE - + 80 WHEN - 1 THEN - - 60 WHEN + + 51 * COALESCE ( - 35, - + COUNT( * ) ) - - + 53 THEN + MAX( - 56 ) END * - 38
----
NULL

skipif mysql # not compatible
query I rowsort label-9961
SELECT DISTINCT + CASE - + 80 WHEN - 1 THEN - - 60 WHEN + + 51 * COALESCE ( - 35, - + COUNT ( * ) ) - - + 53 THEN + MAX ( - 56 ) END * - 38
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9962
SELECT - - 66 + 38, MAX( DISTINCT + 4 ) AS col2
----
104
4

skipif mysql # not compatible
query II rowsort label-9962
SELECT - - 66 + 38, MAX ( DISTINCT + 4 ) AS col2
----
104
4

query I rowsort
SELECT DISTINCT + 2 * - 71 AS col1
----
-142

query I rowsort
SELECT + 88 - - 63
----
151

onlyif mysql # DIV for integer division: 
query II rowsort label-9965
SELECT + 93 DIV - + 87 col0, 32 + + 33 + - 60
----
-1
5

skipif mysql # not compatible
query II rowsort label-9965
SELECT + 93 / - + 87 col0, 32 + + 33 + - 60
----
-1
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9966
SELECT - SUM( ALL - 95 ) * - 16 + - 17
----
-1537

skipif mysql # not compatible
query I rowsort label-9966
SELECT - SUM ( ALL - 95 ) * - 16 + - 17
----
-1537

onlyif mysql # aggregate syntax: 
query I rowsort label-9967
SELECT + + 64 - - 6 + + - COUNT( * ) + - 59
----
10

skipif mysql # not compatible
query I rowsort label-9967
SELECT + + 64 - - 6 + + - COUNT ( * ) + - 59
----
10

query I rowsort
SELECT - + COALESCE ( + 98, - - 57 )
----
-98

query I rowsort
SELECT + - 89 + - + 95 AS col2
----
-184

query I rowsort
SELECT - + 73 col1
----
-73

query I rowsort
SELECT ALL + 78 * + 53 + - 3
----
4131

onlyif mysql # aggregate syntax: 
query I rowsort label-9972
SELECT - CASE 82 WHEN + 44 THEN NULL WHEN + 35 + - COUNT( * ) + + ( + 99 ) * - ( - 18 ) * - 15 THEN - COUNT( * ) WHEN - COUNT( * ) * - 78 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9972
SELECT - CASE 82 WHEN + 44 THEN NULL WHEN + 35 + - COUNT ( * ) + + ( + 99 ) * - ( - 18 ) * - 15 THEN - COUNT ( * ) WHEN - COUNT ( * ) * - 78 THEN NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9973
SELECT ALL + 9 + 14 + + ( 56 ) * + COUNT( * ) + - 8 + - NULLIF ( CAST( - 97 AS SIGNED ), - 18 + 30 + 58 + 14 / + COUNT( * ) ) + + ( 34 ) * COUNT( * )
----
202

skipif mysql # not compatible
query I rowsort label-9973
SELECT ALL + 9 + 14 + + ( 56 ) * + COUNT ( * ) + - 8 + - NULLIF ( CAST ( - 97 AS INTEGER ), - 18 + 30 + 58 + 14 / + COUNT ( * ) ) + + ( 34 ) * COUNT ( * )
----
202

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9974
SELECT - - 39 * - 52 + 35 / + COUNT( ALL + 36 ) / COUNT( * ) * - - 30 + + 34 + + COUNT( * ) / + ( - CAST( NULL AS SIGNED ) ) * 56 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9974
SELECT - - 39 * - 52 + 35 / + COUNT ( ALL + 36 ) / COUNT ( * ) * - - 30 + + 34 + + COUNT ( * ) / + ( - CAST ( NULL AS INTEGER ) ) * 56 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9975
SELECT ALL + + COALESCE ( + COUNT( * ), + + 30 ) + + + 46
----
47

skipif mysql # not compatible
query I rowsort label-9975
SELECT ALL + + COALESCE ( + COUNT ( * ), + + 30 ) + + + 46
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9976
SELECT DISTINCT + COUNT( * ) + - + 3 * + 36 * + - 96
----
10369

skipif mysql # not compatible
query I rowsort label-9976
SELECT DISTINCT + COUNT ( * ) + - + 3 * + 36 * + - 96
----
10369

query I rowsort
SELECT ALL + 93 + + ( + 94 ) AS col0
----
187

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9978
SELECT 34 DIV + 18 - + 99, 45 + + 59 + - COUNT( * ) * 15 * + 67 DIV - COUNT( * ) * COUNT( * ) AS col0
----
-98
1109

skipif mysql # not compatible
query II rowsort label-9978
SELECT 34 / + 18 - + 99, 45 + + 59 + - COUNT ( * ) * 15 * + 67 / - COUNT ( * ) * COUNT ( * ) AS col0
----
-98
1109

onlyif mysql # aggregate syntax: 
query I rowsort label-9979
SELECT ALL - COUNT( ALL 76 ) * + + 54 AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-9979
SELECT ALL - COUNT ( ALL 76 ) * + + 54 AS col1
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9980
SELECT DISTINCT + CAST( - 73 AS SIGNED )
----
-73

skipif mysql # not compatible
query I rowsort label-9980
SELECT DISTINCT + CAST ( - 73 AS INTEGER )
----
-73

onlyif mysql # DIV for integer division: 
query I rowsort label-9981
SELECT ALL 76 DIV 3 + 73 + - - 26 AS col1
----
124

skipif mysql # not compatible
query I rowsort label-9981
SELECT ALL 76 / 3 + 73 + - - 26 AS col1
----
124

query I rowsort
SELECT - 15 * + 65 * 98 AS col0
----
-95550

query I rowsort
SELECT ALL - 99 * 86 AS col1
----
-8514

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9984
SELECT ALL + 35 / - - 66 - + 82 + CAST( NULL AS SIGNED ) * + - 14 * + CAST( - - 73 AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9984
SELECT ALL + 35 / - - 66 - + 82 + CAST ( NULL AS INTEGER ) * + - 14 * + CAST ( - - 73 AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9985
SELECT - 91 + 81 - - - 85 + - - 35 * CAST( + - 98 AS SIGNED )
----
-3525

skipif mysql # not compatible
query I rowsort label-9985
SELECT - 91 + 81 - - - 85 + - - 35 * CAST ( + - 98 AS INTEGER )
----
-3525

onlyif mysql # aggregate syntax: 
query I rowsort label-9986
SELECT - CASE + + 73 WHEN - COUNT( * ) THEN NULL ELSE - COUNT( * ) END * - + 32
----
-32

skipif mysql # not compatible
query I rowsort label-9986
SELECT - CASE + + 73 WHEN - COUNT ( * ) THEN NULL ELSE - COUNT ( * ) END * - + 32
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9987
SELECT - 55 * + SUM( - - 71 ) AS col2, CAST( - 15 AS SIGNED ) + + 43
----
-3905
28

skipif mysql # not compatible
query II rowsort label-9987
SELECT - 55 * + SUM ( - - 71 ) AS col2, CAST ( - 15 AS INTEGER ) + + 43
----
-3905
28

onlyif mysql # aggregate syntax: 
query I rowsort label-9988
SELECT 63 * - - COUNT( * ) + - 50
----
13

skipif mysql # not compatible
query I rowsort label-9988
SELECT 63 * - - COUNT ( * ) + - 50
----
13

query I rowsort
SELECT ( - CASE 95 WHEN 19 THEN - - 69 - + 23 + - 57 WHEN + 31 / - 43 + 71 + - 42 / - 97 * + 97 + 58 THEN - 17 END )
----
NULL

query I rowsort
SELECT ALL 36 * - 10 AS col0
----
-360

onlyif mysql # aggregate syntax: 
query II rowsort label-9991
SELECT ALL + 4 AS col1, + NULLIF ( - - 14, 76 / - + SUM( + 20 ) )
----
4
14

skipif mysql # not compatible
query II rowsort label-9991
SELECT ALL + 4 AS col1, + NULLIF ( - - 14, 76 / - + SUM ( + 20 ) )
----
4
14

query I rowsort
SELECT - - 85 * 44 * + 86 * - 26 * - 59 + 19 * 16
----
493396064

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9993
SELECT DISTINCT + COUNT( * ) AS col1, - CAST( NULL AS SIGNED ) * + - 20 - 71 + - 39 / - - 15 + + 0 * 79 - 77
----
1
NULL

skipif mysql # not compatible
query II rowsort label-9993
SELECT DISTINCT + COUNT ( * ) AS col1, - CAST ( NULL AS INTEGER ) * + - 20 - 71 + - 39 / - - 15 + + 0 * 79 - 77
----
1
NULL

query II rowsort
SELECT 49, 60 AS col2
----
49
60

onlyif mysql # DIV for integer division: 
query II rowsort label-9995
SELECT + - 29 DIV + + ( ( 2 ) ) AS col1, 84 - + 30 AS col1
----
-14
54

skipif mysql # not compatible
query II rowsort label-9995
SELECT + - 29 / + + ( ( 2 ) ) AS col1, 84 - + 30 AS col1
----
-14
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9996
SELECT ALL ( - CAST( - 83 AS SIGNED ) )
----
83

skipif mysql # not compatible
query I rowsort label-9996
SELECT ALL ( - CAST ( - 83 AS INTEGER ) )
----
83

query II rowsort
SELECT + 44 AS col1, - 96 + + 17 AS col1
----
44
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-9998
SELECT + + 68 DIV - - 96 * 14
----
0

skipif mysql # not compatible
query I rowsort label-9998
SELECT + + 68 / - - 96 * 14
----
0

query II rowsort
SELECT - - 36, + 92 AS col2
----
36
92

