sqllogictest
Artifact Content
Not logged in

Artifact e00385566fe51fa5b022eadca0f0949ede39e3be:


hash-threshold 8

statement ok
CREATE TABLE tab0(col0 INTEGER, col1 INTEGER, col2 INTEGER)

statement ok
CREATE TABLE tab1(col0 INTEGER, col1 INTEGER, col2 INTEGER)

statement ok
CREATE TABLE tab2(col0 INTEGER, col1 INTEGER, col2 INTEGER)

statement ok
INSERT INTO tab0 VALUES(97,1,99)

statement ok
INSERT INTO tab0 VALUES(15,81,47)

statement ok
INSERT INTO tab0 VALUES(87,21,10)

statement ok
INSERT INTO tab1 VALUES(51,14,96)

statement ok
INSERT INTO tab1 VALUES(85,5,59)

statement ok
INSERT INTO tab1 VALUES(91,47,68)

statement ok
INSERT INTO tab2 VALUES(64,77,40)

statement ok
INSERT INTO tab2 VALUES(75,67,58)

statement ok
INSERT INTO tab2 VALUES(46,51,23)

query I rowsort
SELECT ALL - 18 * + COALESCE ( - + 48, - ( - 69 ) + ( 77 ), + 68 ) + + 51 AS col2
----
915

query I rowsort
SELECT ALL - - 44 + - 70 AS col1
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2
SELECT - 25 * + CASE + 73 WHEN - CASE + 35 WHEN + CAST( + - ( + 39 ) AS SIGNED ) THEN NULL WHEN - 58 THEN + CAST( - + 29 AS SIGNED ) / AVG ( 76 ) * + - NULLIF ( + 33, + + 50 ) + - + 94 + + - COUNT( * ) ELSE NULL END + - 12 THEN NULL WHEN + 49 + + 14 THEN NULL ELSE + COUNT( * ) END + - + 25 AS col1
----
-50

skipif mysql # not compatible
query I rowsort label-2
SELECT - 25 * + CASE + 73 WHEN - CASE + 35 WHEN + CAST ( + - ( + 39 ) AS INTEGER ) THEN NULL WHEN - 58 THEN + CAST ( - + 29 AS INTEGER ) / AVG ( 76 ) * + - NULLIF ( + 33, + + 50 ) + - + 94 + + - COUNT ( * ) ELSE NULL END + - 12 THEN NULL WHEN + 49 + + 14 THEN NULL ELSE + COUNT ( * ) END + - + 25 AS col1
----
-50

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4
SELECT ALL COUNT( ALL - - 93 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4
SELECT ALL COUNT ( ALL - - 93 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5
SELECT DISTINCT CASE + COUNT( * ) WHEN - 20 THEN + 78 - + - 24 - - - 23 * - 88 - + 79 WHEN ( - 55 ) THEN NULL ELSE - + 65 END AS col1
----
-65

skipif mysql # not compatible
query I rowsort label-5
SELECT DISTINCT CASE + COUNT ( * ) WHEN - 20 THEN + 78 - + - 24 - - - 23 * - 88 - + 79 WHEN ( - 55 ) THEN NULL ELSE - + 65 END AS col1
----
-65

onlyif mysql # aggregate syntax: 
query II rowsort label-6
SELECT ALL - 48 - - 69 + + ( + COUNT( * ) ) + + COALESCE ( + 38, - 88 * + 70, ( 85 ) ) AS col2, + 40 AS col1
----
60
40

skipif mysql # not compatible
query II rowsort label-6
SELECT ALL - 48 - - 69 + + ( + COUNT ( * ) ) + + COALESCE ( + 38, - 88 * + 70, ( 85 ) ) AS col2, + 40 AS col1
----
60
40

query I rowsort
SELECT - 83 * + 93
----
-7719

query I rowsort
SELECT + 88 * - + 52 * + 2 AS col0
----
-9152

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

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

query I rowsort
SELECT - CASE - + NULLIF ( + 37, - - 5 ) WHEN + NULLIF ( + COALESCE ( - 98, - 13 ), + 34 ) + - + ( - 65 ) + 79 THEN + + 35 END * - 67 + 29
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-11
SELECT ALL 29 DIV 20
----
1

skipif mysql # not compatible
query I rowsort label-11
SELECT ALL 29 / 20
----
1

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-13
SELECT ALL COUNT( * ) - - COUNT( * ) + - 0 + + - 9 * - 63 * - 21 DIV - COUNT( * ), ( - 43 ) - + + 94 AS col1
----
11909
-137

skipif mysql # not compatible
query II rowsort label-13
SELECT ALL COUNT ( * ) - - COUNT ( * ) + - 0 + + - 9 * - 63 * - 21 / - COUNT ( * ), ( - 43 ) - + + 94 AS col1
----
11909
-137

onlyif mysql # aggregate syntax: 
query II rowsort label-14
SELECT ALL CASE + NULLIF ( + - 63, - 7 * - 49 + - 50 + 4 - - 7 * + - ( 71 ) * - ( 29 ) / - + 45 + + + 82 + - 87 * - 68 + + 90 ) WHEN 7 THEN NULL WHEN + + 50 THEN - 27 WHEN SUM( + 13 ) + + 27 * - MAX( + 21 ) THEN NULL END AS col0, 86
----
NULL
86

skipif mysql # not compatible
query II rowsort label-14
SELECT ALL CASE + NULLIF ( + - 63, - 7 * - 49 + - 50 + 4 - - 7 * + - ( 71 ) * - ( 29 ) / - + 45 + + + 82 + - 87 * - 68 + + 90 ) WHEN 7 THEN NULL WHEN + + 50 THEN - 27 WHEN SUM ( + 13 ) + + 27 * - MAX ( + 21 ) THEN NULL END AS col0, 86
----
NULL
86

onlyif mysql # aggregate syntax: 
query I rowsort label-15
SELECT - 93 * + SUM( DISTINCT 32 )
----
-2976

skipif mysql # not compatible
query I rowsort label-15
SELECT - 93 * + SUM ( DISTINCT 32 )
----
-2976

query I rowsort
SELECT DISTINCT 56 * + + 71
----
3976

query I rowsort
SELECT DISTINCT + 12 * - - 59 AS col2
----
708

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-18
SELECT DISTINCT + 53 * 28 - + COUNT( * ) + - 85 DIV - 8 + + - 64 AS col2
----
1429

skipif mysql # not compatible
query I rowsort label-18
SELECT DISTINCT + 53 * 28 - + COUNT ( * ) + - 85 / - 8 + + - 64 AS col2
----
1429

onlyif mysql # aggregate syntax: 
query I rowsort label-19
SELECT + MIN( DISTINCT 92 ) AS col0
----
92

skipif mysql # not compatible
query I rowsort label-19
SELECT + MIN ( DISTINCT 92 ) AS col0
----
92

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-20
SELECT CAST( - 22 AS SIGNED ) AS col1, + 41 DIV 78 - + + 75 AS col2
----
-22
-75

skipif mysql # not compatible
query II rowsort label-20
SELECT CAST ( - 22 AS INTEGER ) AS col1, + 41 / 78 - + + 75 AS col2
----
-22
-75

query I rowsort
SELECT DISTINCT + - 54 * 8 + + + 92
----
-340

onlyif mysql # aggregate syntax: 
query I rowsort label-22
SELECT + 55 * + - 7 + + + COUNT( * )
----
-384

skipif mysql # not compatible
query I rowsort label-22
SELECT + 55 * + - 7 + + + COUNT ( * )
----
-384

query I rowsort
SELECT + 73 - - 40
----
113

onlyif mysql # DIV for integer division: 
query I rowsort label-24
SELECT + 82 DIV 2 col0
----
41

skipif mysql # not compatible
query I rowsort label-24
SELECT + 82 / 2 col0
----
41

query II rowsort
SELECT ALL + - 69 * - ( ( 0 ) ) + 88 * + + 8 * 91, 21 - 21 AS col0
----
64064
0

query I rowsort
SELECT ALL - + 3 * - 58 + 16
----
190

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

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

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

skipif mysql # not compatible
query I rowsort label-28
SELECT - COUNT ( * ) / + COUNT ( * ) AS col2
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-29
SELECT AVG ( - CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-29
SELECT AVG ( - CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-30
SELECT ALL - 6 * - - 47 * + - 95 - + + ( + MIN( - ( + 55 ) ) ) AS col0
----
26845

skipif mysql # not compatible
query I rowsort label-30
SELECT ALL - 6 * - - 47 * + - 95 - + + ( + MIN ( - ( + 55 ) ) ) AS col0
----
26845

query I rowsort
SELECT + 7 * - 68
----
-476

onlyif mysql # aggregate syntax: 
query II rowsort label-32
SELECT + COUNT( + 51 ) - + 70, 81 AS col0
----
-69
81

skipif mysql # not compatible
query II rowsort label-32
SELECT + COUNT ( + 51 ) - + 70, 81 AS col0
----
-69
81

query I rowsort
SELECT DISTINCT - 35 * - 27 AS col2
----
945

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-34
SELECT DISTINCT CAST( + 9 AS SIGNED ) AS col2
----
9

skipif mysql # not compatible
query I rowsort label-34
SELECT DISTINCT CAST ( + 9 AS INTEGER ) AS col2
----
9

query I rowsort
SELECT ALL - 17 * - - 92
----
-1564

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-37
SELECT ALL - 44 * CAST( + 89 AS SIGNED ) AS col0
----
-3916

skipif mysql # not compatible
query I rowsort label-37
SELECT ALL - 44 * CAST ( + 89 AS INTEGER ) AS col0
----
-3916

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

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

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

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

query I rowsort
SELECT ALL + 17 * ( 56 ) AS col0
----
952

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-41
SELECT - COUNT( 4 ) DIV - 52 * - + NULLIF ( 45, - 61 ) + - + ( ( 65 ) )
----
-65

skipif mysql # not compatible
query I rowsort label-41
SELECT - COUNT ( 4 ) / - 52 * - + NULLIF ( 45, - 61 ) + - + ( ( 65 ) )
----
-65

query I rowsort
SELECT - 69 + 53 AS col0
----
-16

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

onlyif mysql # DIV for integer division: 
query I rowsort label-44
SELECT - - 47 DIV COALESCE ( 86, + - 61 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-44
SELECT - - 47 / COALESCE ( 86, + - 61 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-45
SELECT - + MIN( 98 ) * - SUM( ALL + + 67 )
----
6566

skipif mysql # not compatible
query I rowsort label-45
SELECT - + MIN ( 98 ) * - SUM ( ALL + + 67 )
----
6566

query II rowsort
SELECT DISTINCT - 99 AS col0, 24 AS col1
----
-99
24

onlyif mysql # aggregate syntax: 
query I rowsort label-47
SELECT DISTINCT - COUNT( * ) + - - AVG ( + CASE - - 54 WHEN + + 41 THEN NULL WHEN 43 THEN + 83 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-47
SELECT DISTINCT - COUNT ( * ) + - - AVG ( + CASE - - 54 WHEN + + 41 THEN NULL WHEN 43 THEN + 83 ELSE NULL END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-48
SELECT + 78 * + - COUNT( ALL + 39 ) * - - 26 + + 30 * + SUM( ALL + + 61 ) + - - COUNT( * ) AS col2
----
-197

skipif mysql # not compatible
query I rowsort label-48
SELECT + 78 * + - COUNT ( ALL + 39 ) * - - 26 + + 30 * + SUM ( ALL + + 61 ) + - - COUNT ( * ) AS col2
----
-197

query I rowsort
SELECT + 86 * + 44 AS col1
----
3784

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-50
SELECT DISTINCT - - COUNT( * ) / - CAST( NULL AS DECIMAL ) + + 41 + - MIN( 97 )
----
NULL

skipif mysql # not compatible
query I rowsort label-50
SELECT DISTINCT - - COUNT ( * ) / - CAST ( NULL AS REAL ) + + 41 + - MIN ( 97 )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-52
SELECT ALL - SUM( ALL - 70 ) * 25 + + - 81 AS col2
----
1669

skipif mysql # not compatible
query I rowsort label-52
SELECT ALL - SUM ( ALL - 70 ) * 25 + + - 81 AS col2
----
1669

onlyif mysql # DIV for integer division: 
query I rowsort label-53
SELECT DISTINCT + 41 DIV + - 36 + + 5 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-53
SELECT DISTINCT + 41 / + - 36 + + 5 AS col1
----
4

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-55
SELECT ALL - ( - COALESCE ( - 7, - 55 ) ) DIV + 24 * - + ( + COUNT( * ) ) + 5 + + 42 AS col0
----
47

skipif mysql # not compatible
query I rowsort label-55
SELECT ALL - ( - COALESCE ( - 7, - 55 ) ) / + 24 * - + ( + COUNT ( * ) ) + 5 + + 42 AS col0
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-56
SELECT ALL - 33 DIV + 10 + - 12 * 19 * - + 85 AS col0
----
19377

skipif mysql # not compatible
query I rowsort label-56
SELECT ALL - 33 / + 10 + - 12 * 19 * - + 85 AS col0
----
19377

onlyif mysql # aggregate syntax: 
query II rowsort label-57
SELECT 86 AS col0, + ( - + 73 ) * - - ( - 27 ) * - 58 * 90 + + MIN( 91 ) + 84 AS col0
----
86
-10288445

skipif mysql # not compatible
query II rowsort label-57
SELECT 86 AS col0, + ( - + 73 ) * - - ( - 27 ) * - 58 * 90 + + MIN ( 91 ) + 84 AS col0
----
86
-10288445

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

skipif mysql # not compatible
query I rowsort label-58
SELECT ALL - CAST ( + + 61 AS INTEGER ) AS col2
----
-61

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-61
SELECT ALL ( - + COUNT ( * ) ) - 56 AS col2
----
-57

query II rowsort
SELECT ALL - 99 AS col2, 46 * 11
----
-99
506

onlyif mysql # aggregate syntax: 
query I rowsort label-63
SELECT COUNT( * ) * - + 21 * + 41 + - 23
----
-884

skipif mysql # not compatible
query I rowsort label-63
SELECT COUNT ( * ) * - + 21 * + 41 + - 23
----
-884

onlyif mysql # aggregate syntax: 
query I rowsort label-64
SELECT NULLIF ( - - 42, 55 * COUNT( * ) ) * + 60 * - + 62
----
-156240

skipif mysql # not compatible
query I rowsort label-64
SELECT NULLIF ( - - 42, 55 * COUNT ( * ) ) * + 60 * - + 62
----
-156240

onlyif mysql # DIV for integer division: 
query I rowsort label-65
SELECT 80 * ( + - 87 ) * - COALESCE ( 75, 77, + + 97 * - 60 + - 10 + - 69 DIV + 96, + + 6 )
----
522000

skipif mysql # not compatible
query I rowsort label-65
SELECT 80 * ( + - 87 ) * - COALESCE ( 75, 77, + + 97 * - 60 + - 10 + - 69 / + 96, + + 6 )
----
522000

query I rowsort
SELECT ALL 54 * - 87
----
-4698

onlyif mysql # aggregate syntax: 
query I rowsort label-67
SELECT ALL ( + + 49 ) - COUNT( + 72 )
----
48

skipif mysql # not compatible
query I rowsort label-67
SELECT ALL ( + + 49 ) - COUNT ( + 72 )
----
48

query I rowsort
SELECT ALL 30 * + 90
----
2700

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

skipif mysql # not compatible
query I rowsort label-69
SELECT 60 + - + COUNT ( * ) AS col0
----
59

query I rowsort
SELECT + 16 * - 95 + + 30 + 70 AS col2
----
-1420

query I rowsort
SELECT ALL 94 * + 46 * + - 88 AS col1
----
-380512

query I rowsort
SELECT 86 + 68
----
154

query II rowsort
SELECT - 92 AS col0, + 97
----
-92
97

query I rowsort
SELECT 95 + 72 AS col2
----
167

onlyif mysql # aggregate syntax: 
query II rowsort label-75
SELECT 18 AS col0, + 38 * - + 17 + + - 53 * 21 + - + COUNT( * )
----
18
-1760

skipif mysql # not compatible
query II rowsort label-75
SELECT 18 AS col0, + 38 * - + 17 + + - 53 * 21 + - + COUNT ( * )
----
18
-1760

onlyif mysql # aggregate syntax: 
query I rowsort label-76
SELECT ALL - 59 + - MAX( 13 ) + - 86 AS col2
----
-158

skipif mysql # not compatible
query I rowsort label-76
SELECT ALL - 59 + - MAX ( 13 ) + - 86 AS col2
----
-158

query II rowsort
SELECT ALL 5, + NULLIF ( + 52, COALESCE ( + - 87, - 1 ) + - 15 ) AS col0
----
5
52

query I rowsort
SELECT + 26 * 22
----
572

onlyif mysql # aggregate syntax: 
query I rowsort label-79
SELECT ALL + 7 * - COUNT( * ) * - + 85 AS col1
----
595

skipif mysql # not compatible
query I rowsort label-79
SELECT ALL + 7 * - COUNT ( * ) * - + 85 AS col1
----
595

query I rowsort
SELECT ALL 4 + + 73 + - 83
----
-6

query I rowsort
SELECT ALL - + 34 + + - 72 col1
----
-106

query II rowsort
SELECT - 65 AS col0, 52 AS col0
----
-65
52

query I rowsort
SELECT ALL - + 9 + - + ( NULLIF ( 37, + 92 ) )
----
-46

query I rowsort
SELECT - 92 * - + 56
----
5152

query I rowsort
SELECT 42 * + + 19 col1
----
798

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-86
SELECT SUM( - + 91 ) DIV + 71
----
-1

skipif mysql # not compatible
query I rowsort label-86
SELECT SUM ( - + 91 ) / + 71
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-87
SELECT - 89 DIV 35 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-87
SELECT - 89 / 35 AS col2
----
-2

query I rowsort
SELECT 21 - - 5
----
26

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

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

query I rowsort
SELECT ALL + COALESCE ( + - 87, 28 )
----
-87

query I rowsort
SELECT DISTINCT + + 13 + - 62
----
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-92
SELECT ALL + 30 DIV + + 63
----
0

skipif mysql # not compatible
query I rowsort label-92
SELECT ALL + 30 / + + 63
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-93
SELECT - MAX( + 61 ) * - + 24
----
1464

skipif mysql # not compatible
query I rowsort label-93
SELECT - MAX ( + 61 ) * - + 24
----
1464

onlyif mysql # aggregate syntax: 
query I rowsort label-94
SELECT DISTINCT - 97 * + SUM( DISTINCT + 12 )
----
-1164

skipif mysql # not compatible
query I rowsort label-94
SELECT DISTINCT - 97 * + SUM ( DISTINCT + 12 )
----
-1164

query I rowsort
SELECT - 31 * + - 72 AS col1
----
2232

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

query II rowsort
SELECT ALL - - 75 AS col0, + 72 AS col2
----
75
72

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

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

query I rowsort
SELECT ALL + 62 * + 82
----
5084

query I rowsort
SELECT DISTINCT + 44 * 6 AS col2
----
264

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-101
SELECT CAST( NULL AS SIGNED ) * - 73 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-101
SELECT CAST ( NULL AS INTEGER ) * - 73 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-102
SELECT ALL 40 + + 8, - CAST( NULL AS SIGNED ) * 91 + CAST( NULL AS DECIMAL ) + 81 / + CAST( NULL AS SIGNED ) * - - 42 * - 72 * - COUNT( * ) col2
----
48
NULL

skipif mysql # not compatible
query II rowsort label-102
SELECT ALL 40 + + 8, - CAST ( NULL AS INTEGER ) * 91 + CAST ( NULL AS REAL ) + 81 / + CAST ( NULL AS INTEGER ) * - - 42 * - 72 * - COUNT ( * ) col2
----
48
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-103
SELECT DISTINCT 11 / - CASE + 13 WHEN + 51 * + NULLIF ( + 48, - + 97 * - + 64 + + 35 + COUNT( * ) - - 77 * MAX( - 99 ) * - 1 + + - COUNT( * ) * - CAST( NULL AS SIGNED ) * + 56 + - COALESCE ( - + 93, + + 16 ) + + 66 * + COUNT( * ) + COUNT( * ) * - + 16 * + CAST( NULL AS SIGNED ) ) THEN NULL WHEN CASE + 69 WHEN 26 THEN + - 88 - MAX( ALL + 91 ) ELSE NULL END THEN - COUNT( * ) WHEN CASE COUNT( * ) WHEN - 7 THEN NULL WHEN MIN( DISTINCT 32 ) / - 66 THEN + 29 * 80 END THEN + 51 END
----
NULL

skipif mysql # not compatible
query I rowsort label-103
SELECT DISTINCT 11 / - CASE + 13 WHEN + 51 * + NULLIF ( + 48, - + 97 * - + 64 + + 35 + COUNT ( * ) - - 77 * MAX ( - 99 ) * - 1 + + - COUNT ( * ) * - CAST ( NULL AS INTEGER ) * + 56 + - COALESCE ( - + 93, + + 16 ) + + 66 * + COUNT ( * ) + COUNT ( * ) * - + 16 * + CAST ( NULL AS INTEGER ) ) THEN NULL WHEN CASE + 69 WHEN 26 THEN + - 88 - MAX ( ALL + 91 ) ELSE NULL END THEN - COUNT ( * ) WHEN CASE COUNT ( * ) WHEN - 7 THEN NULL WHEN MIN ( DISTINCT 32 ) / - 66 THEN + 29 * 80 END THEN + 51 END
----
NULL

query I rowsort
SELECT ALL 34 + + 63
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-105
SELECT DISTINCT 46 * - - ( COUNT( * ) ) AS col0, - 82
----
46
-82

skipif mysql # not compatible
query II rowsort label-105
SELECT DISTINCT 46 * - - ( COUNT ( * ) ) AS col0, - 82
----
46
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-106
SELECT ALL 4 + + 64 + + - CAST( ( - ( - + 33 ) ) AS SIGNED ) AS col2
----
35

skipif mysql # not compatible
query I rowsort label-106
SELECT ALL 4 + + 64 + + - CAST ( ( - ( - + 33 ) ) AS INTEGER ) AS col2
----
35

query I rowsort
SELECT DISTINCT COALESCE ( 26, + 0, - 59 )
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-108
SELECT - 90 + 28, COUNT( * ) AS col2
----
-62
1

skipif mysql # not compatible
query II rowsort label-108
SELECT - 90 + 28, COUNT ( * ) AS col2
----
-62
1

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-110
SELECT + CAST( NULL AS SIGNED ) + + COUNT( * ) * + 34 - - + 25 / - 47 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-110
SELECT + CAST ( NULL AS INTEGER ) + + COUNT ( * ) * + 34 - - + 25 / - 47 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-111
SELECT COUNT( * ) + 45 + + ( - 95 ) AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-111
SELECT COUNT ( * ) + 45 + + ( - 95 ) AS col2
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-112
SELECT ALL CASE 17 WHEN - 57 + + 66 THEN NULL WHEN - 35 * COUNT( * ) THEN COUNT( * ) END - 91 + + + 85 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-112
SELECT ALL CASE 17 WHEN - 57 + + 66 THEN NULL WHEN - 35 * COUNT ( * ) THEN COUNT ( * ) END - 91 + + + 85 AS col0
----
NULL

query I rowsort
SELECT DISTINCT - CASE - 36 WHEN + 93 THEN NULL ELSE + + 56 END AS col1
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-114
SELECT + CAST( NULL AS SIGNED ) + - - 2 * + COUNT( * ) + - 66 + CASE + MIN( - 71 ) WHEN - 38 + + 23 + + 15 THEN + 96 WHEN + 89 THEN + 92 + + 27 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-114
SELECT + CAST ( NULL AS INTEGER ) + - - 2 * + COUNT ( * ) + - 66 + CASE + MIN ( - 71 ) WHEN - 38 + + 23 + + 15 THEN + 96 WHEN + 89 THEN + 92 + + 27 END AS col0
----
NULL

query I rowsort
SELECT 4 * + 5 + ( 71 )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-116
SELECT + - COALESCE ( - 81, 90 - + 30 * - 92 + - COUNT( * ) + 34 * 64 * - 21 ) col2
----
81

skipif mysql # not compatible
query I rowsort label-116
SELECT + - COALESCE ( - 81, 90 - + 30 * - 92 + - COUNT ( * ) + 34 * 64 * - 21 ) col2
----
81

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

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

query II rowsort
SELECT ALL - 8 * 92, 86 AS col0
----
-736
86

query I rowsort
SELECT - 37 - + 56
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-120
SELECT COALESCE ( ( - 16 ), 60, - 10 * ( COUNT( ALL + 87 ) ) + - 43 + + SUM( ALL - - 69 ) ) AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-120
SELECT COALESCE ( ( - 16 ), 60, - 10 * ( COUNT ( ALL + 87 ) ) + - 43 + + SUM ( ALL - - 69 ) ) AS col2
----
-16

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-122
SELECT DISTINCT + COUNT( DISTINCT + 79 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-122
SELECT DISTINCT + COUNT ( DISTINCT + 79 ) AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-123
SELECT ALL - 85 DIV + MIN( + ( - 93 ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-123
SELECT ALL - 85 / + MIN ( + ( - 93 ) ) AS col1
----
0

query I rowsort
SELECT COALESCE ( 99, + 30, 38 + - - 36 )
----
99

query I rowsort
SELECT ALL + NULLIF ( - 76, - AVG ( - 10 ) )
----
-76

query II rowsort
SELECT DISTINCT + 8 AS col0, 17 * - 66 AS col1
----
8
-1122

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-127
SELECT - 89 DIV 3 * - + 46 * - - COUNT( DISTINCT + 1 )
----
1334

skipif mysql # not compatible
query I rowsort label-127
SELECT - 89 / 3 * - + 46 * - - COUNT ( DISTINCT + 1 )
----
1334

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-128
SELECT - 6 - + - NULLIF ( + MAX( 73 ), + 43 * - CAST( + 4 AS SIGNED ) + + COUNT( * ) ), + 0 * - 27 * 9 AS col2
----
67
0

skipif mysql # not compatible
query II rowsort label-128
SELECT - 6 - + - NULLIF ( + MAX ( 73 ), + 43 * - CAST ( + 4 AS INTEGER ) + + COUNT ( * ) ), + 0 * - 27 * 9 AS col2
----
67
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-129
SELECT ALL - 85 DIV + COALESCE ( - - 33, + + 0, + + 81 * - COUNT( * ) + - + 56 ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-129
SELECT ALL - 85 / + COALESCE ( - - 33, + + 0, + + 81 * - COUNT ( * ) + - + 56 ) AS col1
----
-2

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-133
SELECT - MAX( - ( - + 5 ) ) + + 33
----
28

skipif mysql # not compatible
query I rowsort label-133
SELECT - MAX ( - ( - + 5 ) ) + + 33
----
28

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

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

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

skipif mysql # not compatible
query I rowsort label-135
SELECT - CAST ( NULL AS INTEGER ) + + 78 AS col1
----
NULL

query I rowsort
SELECT ALL - 15 * 66 + - 2 * - 31 AS col1
----
-928

query I rowsort
SELECT DISTINCT + 41 + + 74
----
115

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

skipif mysql # not compatible
query I rowsort label-138
SELECT MIN ( + ( - - 28 ) )
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-139
SELECT + - 10 + + COALESCE ( + + 24, - + 16 ) + + 39 + 9 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-139
SELECT + - 10 + + COALESCE ( + + 24, - + 16 ) + + 39 + 9 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-140
SELECT + + 35 + 78 + + NULLIF ( - + 95, + 63 + + - MAX( DISTINCT - - 33 ) ) * - COUNT( * )
----
208

skipif mysql # not compatible
query I rowsort label-140
SELECT + + 35 + 78 + + NULLIF ( - + 95, + 63 + + - MAX ( DISTINCT - - 33 ) ) * - COUNT ( * )
----
208

query I rowsort
SELECT - 83 * 39
----
-3237

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-143
SELECT DISTINCT 22 DIV + 85 * - 27
----
0

skipif mysql # not compatible
query I rowsort label-143
SELECT DISTINCT 22 / + 85 * - 27
----
0

query II rowsort
SELECT - - 2 AS col1, - 46
----
2
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-145
SELECT + 10 DIV + 65 col2
----
0

skipif mysql # not compatible
query I rowsort label-145
SELECT + 10 / + 65 col2
----
0

query I rowsort
SELECT ALL 50 * + 51 - - 86
----
2636

query I rowsort
SELECT + - 58 * - 55
----
3190

onlyif mysql # DIV for integer division: 
query I rowsort label-148
SELECT DISTINCT - ( - 42 ) DIV - 21 + + 63 AS col2
----
61

skipif mysql # not compatible
query I rowsort label-148
SELECT DISTINCT - ( - 42 ) / - 21 + + 63 AS col2
----
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-149
SELECT ALL 63 - - 72 DIV + 99 + MAX( ALL 33 )
----
96

skipif mysql # not compatible
query I rowsort label-149
SELECT ALL 63 - - 72 / + 99 + MAX ( ALL 33 )
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-150
SELECT DISTINCT COALESCE ( - + CAST( - 42 AS SIGNED ), - 37 * - - ( + 68 ) ) AS col2
----
42

skipif mysql # not compatible
query I rowsort label-150
SELECT DISTINCT COALESCE ( - + CAST ( - 42 AS INTEGER ), - 37 * - - ( + 68 ) ) AS col2
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-151
SELECT - - COALESCE ( + - 84, + CAST( NULL AS SIGNED ) )
----
-84

skipif mysql # not compatible
query I rowsort label-151
SELECT - - COALESCE ( + - 84, + CAST ( NULL AS INTEGER ) )
----
-84

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

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

query I rowsort
SELECT ALL + 28 * - - 63 * + 96 * - - 67
----
11346048

onlyif mysql # DIV for integer division: 
query I rowsort label-154
SELECT + 26 - - 45 DIV - + 48 col0
----
26

skipif mysql # not compatible
query I rowsort label-154
SELECT + 26 - - 45 / - + 48 col0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-155
SELECT - 96 * + COUNT( * ) * + + 51 * - + 58
----
283968

skipif mysql # not compatible
query I rowsort label-155
SELECT - 96 * + COUNT ( * ) * + + 51 * - + 58
----
283968

onlyif mysql # aggregate syntax: 
query I rowsort label-156
SELECT + COUNT( * ) + - + 64 - - 27 * - 83 * - + ( - 46 )
----
-103149

skipif mysql # not compatible
query I rowsort label-156
SELECT + COUNT ( * ) + - + 64 - - 27 * - 83 * - + ( - 46 )
----
-103149

query I rowsort
SELECT + - 70 * + + 32 - - - 22 AS col0
----
-2262

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-159
SELECT CAST( - 49 AS SIGNED ), - 25 AS col2
----
-49
-25

skipif mysql # not compatible
query II rowsort label-159
SELECT CAST ( - 49 AS INTEGER ), - 25 AS col2
----
-49
-25

query I rowsort
SELECT ALL - 98 * 30 AS col1
----
-2940

query I rowsort
SELECT + 13 * + + 8
----
104

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-163
SELECT + 4 * 84 + - NULLIF ( COALESCE ( 18, 73 + - 98, + 99 ), - + MIN( DISTINCT - 83 ) ) + + 95 * 28 * + 30 + - + 81 AS col1
----
80037

skipif mysql # not compatible
query I rowsort label-163
SELECT + 4 * 84 + - NULLIF ( COALESCE ( 18, 73 + - 98, + 99 ), - + MIN ( DISTINCT - 83 ) ) + + 95 * 28 * + 30 + - + 81 AS col1
----
80037

onlyif mysql # aggregate syntax: 
query I rowsort label-164
SELECT - 65 - 82 + 49 * + COUNT( * ) * - COUNT( DISTINCT + 23 ) * - 31 + + ( SUM( - 41 ) ) AS col1
----
1331

skipif mysql # not compatible
query I rowsort label-164
SELECT - 65 - 82 + 49 * + COUNT ( * ) * - COUNT ( DISTINCT + 23 ) * - 31 + + ( SUM ( - 41 ) ) AS col1
----
1331

query I rowsort
SELECT ALL - 99 * + 9
----
-891

onlyif mysql # DIV for integer division: 
query I rowsort label-166
SELECT + 77 DIV + 40
----
1

skipif mysql # not compatible
query I rowsort label-166
SELECT + 77 / + 40
----
1

query I rowsort
SELECT - 83 + + - NULLIF ( ( 49 ), + + 35 ) + - - 54 AS col0
----
-78

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

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

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

skipif mysql # not compatible
query I rowsort label-169
SELECT - COUNT ( * ) * + 15 * - NULLIF ( COUNT ( * ), - 57 )
----
15

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-171
SELECT ALL 65 * + - 71 + + COUNT( * ) + ( - - ( - 75 ) ) - + + 56 AS col0, - CAST( + ( - + COALESCE ( + 74, + + 55 + - - COUNT( * ) * + MAX( 33 ) * + 89 * - ( + + COUNT( * ) ) - 67 * + + 3 ) ) AS SIGNED ) AS col1
----
-4745
74

skipif mysql # not compatible
query II rowsort label-171
SELECT ALL 65 * + - 71 + + COUNT ( * ) + ( - - ( - 75 ) ) - + + 56 AS col0, - CAST ( + ( - + COALESCE ( + 74, + + 55 + - - COUNT ( * ) * + MAX ( 33 ) * + 89 * - ( + + COUNT ( * ) ) - 67 * + + 3 ) ) AS INTEGER ) AS col1
----
-4745
74

onlyif mysql # DIV for integer division: 
query I rowsort label-172
SELECT ALL - ( 31 ) DIV + 23 + + 87
----
86

skipif mysql # not compatible
query I rowsort label-172
SELECT ALL - ( 31 ) / + 23 + + 87
----
86

query I rowsort
SELECT ALL - 22 * - - 4 + - 33 AS col2
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-174
SELECT - 17 * + SUM( - 69 )
----
1173

skipif mysql # not compatible
query I rowsort label-174
SELECT - 17 * + SUM ( - 69 )
----
1173

query I rowsort
SELECT NULLIF ( + 81, 35 ) AS col2
----
81

query I rowsort
SELECT - 93 * 45 AS col1
----
-4185

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-178
SELECT COALESCE ( + 56, + 10 + ( ( 42 ) ) - 92 DIV - 54 * - CAST( NULL AS SIGNED ) * + 74 ) AS col2
----
56

skipif mysql # not compatible
query I rowsort label-178
SELECT COALESCE ( + 56, + 10 + ( ( 42 ) ) - 92 / - 54 * - CAST ( NULL AS INTEGER ) * + 74 ) AS col2
----
56

query I rowsort
SELECT + 37 * 22 AS col1
----
814

query I rowsort
SELECT ALL - + 35 * - 0 * - 92 col1
----
0

query I rowsort
SELECT - 81 - - - 14
----
-95

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-183
SELECT + 17 * MAX( - 7 )
----
-119

skipif mysql # not compatible
query I rowsort label-183
SELECT + 17 * MAX ( - 7 )
----
-119

onlyif mysql # aggregate syntax: 
query I rowsort label-184
SELECT - - MAX( DISTINCT 89 ) AS col2
----
89

skipif mysql # not compatible
query I rowsort label-184
SELECT - - MAX ( DISTINCT 89 ) AS col2
----
89

query I rowsort
SELECT - 44 - + + 11 col2
----
-55

query I rowsort
SELECT - 83 * - 89 * 15 AS col1
----
110805

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-187
SELECT - CASE - 36 WHEN - COUNT( * ) THEN - + 80 + - 1 END * + 15 * CAST( NULL AS SIGNED ) * 41 * - 4 * + + 12 * + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-187
SELECT - CASE - 36 WHEN - COUNT ( * ) THEN - + 80 + - 1 END * + 15 * CAST ( NULL AS INTEGER ) * 41 * - 4 * + + 12 * + COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-188
SELECT 35 * - + MIN( ALL + 69 ) AS col2
----
-2415

skipif mysql # not compatible
query I rowsort label-188
SELECT 35 * - + MIN ( ALL + 69 ) AS col2
----
-2415

onlyif mysql # aggregate syntax: 
query I rowsort label-189
SELECT - 11 + 37 + + + 46 + - COUNT( * ) * + 48 col2
----
24

skipif mysql # not compatible
query I rowsort label-189
SELECT - 11 + 37 + + + 46 + - COUNT ( * ) * + 48 col2
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-190
SELECT + COALESCE ( 64, - 4, + 31 ) * - COUNT( * )
----
-64

skipif mysql # not compatible
query I rowsort label-190
SELECT + COALESCE ( 64, - 4, + 31 ) * - COUNT ( * )
----
-64

query I rowsort
SELECT 68 + - + 58 + + 89 * - + 78 - 13 + + 72 * - + 62 * - 5
----
15375

onlyif mysql # aggregate syntax: 
query I rowsort label-192
SELECT COUNT( * ) + - + 45 + - 25 AS col0
----
-69

skipif mysql # not compatible
query I rowsort label-192
SELECT COUNT ( * ) + - + 45 + - 25 AS col0
----
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-193
SELECT ALL + + 76 DIV + + 7 AS col1
----
10

skipif mysql # not compatible
query I rowsort label-193
SELECT ALL + + 76 / + + 7 AS col1
----
10

query I rowsort
SELECT ALL 25 + 59
----
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-195
SELECT ALL 83 + COUNT( * ) + - 61 * + 60 * + 73 + COUNT( * ) DIV 8 * - 4 * + 9 + 61, - COUNT( * ) + COUNT( * ) * - 21 AS col2
----
-267035
-22

skipif mysql # not compatible
query II rowsort label-195
SELECT ALL 83 + COUNT ( * ) + - 61 * + 60 * + 73 + COUNT ( * ) / 8 * - 4 * + 9 + 61, - COUNT ( * ) + COUNT ( * ) * - 21 AS col2
----
-267035
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-196
SELECT 50 * - 44 * + MIN( DISTINCT + 42 ) col1
----
-92400

skipif mysql # not compatible
query I rowsort label-196
SELECT 50 * - 44 * + MIN ( DISTINCT + 42 ) col1
----
-92400

onlyif mysql # DIV for integer division: 
query I rowsort label-197
SELECT + 0 DIV - ( + 16 ) + 43
----
43

skipif mysql # not compatible
query I rowsort label-197
SELECT + 0 / - ( + 16 ) + 43
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-198
SELECT DISTINCT 30 + + ( NULLIF ( - ( + 56 ), - CASE + 50 WHEN AVG ( - NULLIF ( - 45, 6 ) ) THEN 18 + - 82 * + - 98 * - - 97 + + + 62 WHEN + 43 + + CASE + 10 WHEN - ( + 37 ) THEN NULL WHEN + + 75 + + + COALESCE ( + 40, - + CASE 93 WHEN + 81 THEN - 3 WHEN - + 45 THEN NULL WHEN - COUNT( * ) THEN NULL ELSE 43 END * COUNT( * ), - + NULLIF ( + 26, + ( 10 ) ) ) * 94 THEN - 27 ELSE NULL END + + COUNT( * ) THEN NULL END ) ) + 18
----
-8

skipif mysql # not compatible
query I rowsort label-198
SELECT DISTINCT 30 + + ( NULLIF ( - ( + 56 ), - CASE + 50 WHEN AVG ( - NULLIF ( - 45, 6 ) ) THEN 18 + - 82 * + - 98 * - - 97 + + + 62 WHEN + 43 + + CASE + 10 WHEN - ( + 37 ) THEN NULL WHEN + + 75 + + + COALESCE ( + 40, - + CASE 93 WHEN + 81 THEN - 3 WHEN - + 45 THEN NULL WHEN - COUNT ( * ) THEN NULL ELSE 43 END * COUNT ( * ), - + NULLIF ( + 26, + ( 10 ) ) ) * 94 THEN - 27 ELSE NULL END + + COUNT ( * ) THEN NULL END ) ) + 18
----
-8

query I rowsort
SELECT 76 + - 25 * - 15
----
451

query II rowsort
SELECT DISTINCT - 47 col0, + 39 * - 3
----
-47
-117

query I rowsort
SELECT DISTINCT 94 * - 94
----
-8836

query I rowsort
SELECT 88 * 29 * + + 79 col2
----
201608

onlyif mysql # aggregate syntax: 
query I rowsort label-203
SELECT ALL MIN( ALL + 30 ) + + 85
----
115

skipif mysql # not compatible
query I rowsort label-203
SELECT ALL MIN ( ALL + 30 ) + + 85
----
115

query I rowsort
SELECT ALL + 95 + + 71 AS col1
----
166

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-205
SELECT CAST( NULL AS SIGNED ) * - - 22 / 23 * + 92 * SUM( - 37 ) + MIN( DISTINCT - 88 ) / + COALESCE ( - COUNT( * ), - + COUNT( DISTINCT - - 76 ), + 24 * - - 94, - 34 )
----
NULL

skipif mysql # not compatible
query I rowsort label-205
SELECT CAST ( NULL AS INTEGER ) * - - 22 / 23 * + 92 * SUM ( - 37 ) + MIN ( DISTINCT - 88 ) / + COALESCE ( - COUNT ( * ), - + COUNT ( DISTINCT - - 76 ), + 24 * - - 94, - 34 )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-206
SELECT 20 + 46 - 18 / - CAST( NULL AS DECIMAL ) * + 44
----
NULL

skipif mysql # not compatible
query I rowsort label-206
SELECT 20 + 46 - 18 / - CAST ( NULL AS REAL ) * + 44
----
NULL

query I rowsort
SELECT ALL 75 - + 60 + + 64 * + 36
----
2319

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-208
SELECT 60 * - + 55 * + COUNT( * ) + - - 93 * - - CAST( - 73 AS SIGNED ) AS col0
----
-10089

skipif mysql # not compatible
query I rowsort label-208
SELECT 60 * - + 55 * + COUNT ( * ) + - - 93 * - - CAST ( - 73 AS INTEGER ) AS col0
----
-10089

onlyif mysql # aggregate syntax: 
query II rowsort label-209
SELECT NULLIF ( + COUNT( - 70 ), 52 ) * + + COUNT( * ) col0, - 24
----
1
-24

skipif mysql # not compatible
query II rowsort label-209
SELECT NULLIF ( + COUNT ( - 70 ), 52 ) * + + COUNT ( * ) col0, - 24
----
1
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-210
SELECT DISTINCT - CAST( - 51 AS SIGNED ) AS col1
----
51

skipif mysql # not compatible
query I rowsort label-210
SELECT DISTINCT - CAST ( - 51 AS INTEGER ) AS col1
----
51

query I rowsort
SELECT DISTINCT 44 * + 8 * + 26 AS col1
----
9152

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-212
SELECT - + 85 * + 61 + - 56 + CAST( 32 AS SIGNED ) * + 98 AS col1
----
-2105

skipif mysql # not compatible
query I rowsort label-212
SELECT - + 85 * + 61 + - 56 + CAST ( 32 AS INTEGER ) * + 98 AS col1
----
-2105

onlyif mysql # aggregate syntax: 
query I rowsort label-213
SELECT DISTINCT + MIN( DISTINCT + 27 ) - + 33 - - 45 * - ( 81 ) + - + 43
----
-3694

skipif mysql # not compatible
query I rowsort label-213
SELECT DISTINCT + MIN ( DISTINCT + 27 ) - + 33 - - 45 * - ( 81 ) + - + 43
----
-3694

onlyif mysql # aggregate syntax: 
query I rowsort label-214
SELECT 67 * - + CASE - + 86 WHEN + SUM( - 6 ) THEN - 49 WHEN 75 * 26 THEN NULL END + - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-214
SELECT 67 * - + CASE - + 86 WHEN + SUM ( - 6 ) THEN - 49 WHEN 75 * 26 THEN NULL END + - COUNT ( * ) AS col0
----
NULL

query III rowsort
SELECT ALL 57, ( 89 ) AS col0, + - 53 AS col2
----
57
89
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-216
SELECT - ( COUNT( - - ( + 40 ) ) ) * - COUNT( * ) * 64 + 92
----
156

skipif mysql # not compatible
query I rowsort label-216
SELECT - ( COUNT ( - - ( + 40 ) ) ) * - COUNT ( * ) * 64 + 92
----
156

query I rowsort
SELECT 11 + + 79 AS col0
----
90

query II rowsort
SELECT + ( - 19 ) * + + 24 AS col2, + 88
----
-456
88

query II rowsort
SELECT 65, 31 col2
----
65
31

query I rowsort
SELECT DISTINCT + + 86 + 0
----
86

query I rowsort
SELECT DISTINCT 57 + - ( + - 59 ) + + - 12 col0
----
104

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

skipif mysql # not compatible
query I rowsort label-222
SELECT DISTINCT - COUNT ( * ) * + 82 AS col0
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-223
SELECT ALL 75 + - CAST( NULL AS SIGNED ) + ( - 82 ) + - - 53 - NULLIF ( - ( + 42 ), - COUNT( * ) + - AVG ( - 45 ) ) * 4 * + + 35
----
NULL

skipif mysql # not compatible
query I rowsort label-223
SELECT ALL 75 + - CAST ( NULL AS INTEGER ) + ( - 82 ) + - - 53 - NULLIF ( - ( + 42 ), - COUNT ( * ) + - AVG ( - 45 ) ) * 4 * + + 35
----
NULL

query II rowsort
SELECT 50 * + 49 AS col1, 7
----
2450
7

onlyif mysql # DIV for integer division: 
query I rowsort label-225
SELECT DISTINCT - 26 + - 89 DIV 34 AS col0
----
-28

skipif mysql # not compatible
query I rowsort label-225
SELECT DISTINCT - 26 + - 89 / 34 AS col0
----
-28

query I rowsort
SELECT ALL + 72 + - COALESCE ( + 5, + 69 * - - 84 )
----
67

query I rowsort
SELECT 76 + + - 68 col0
----
8

query II rowsort
SELECT ALL 21 AS col2, - 53 AS col2
----
21
-53

query I rowsort
SELECT ALL - 27 + - - 75 AS col0
----
48

onlyif mysql # aggregate syntax: 
query II rowsort label-230
SELECT SUM( ALL - - 94 ), - 45 AS col2
----
94
-45

skipif mysql # not compatible
query II rowsort label-230
SELECT SUM ( ALL - - 94 ), - 45 AS col2
----
94
-45

query I rowsort
SELECT ALL - 83 * - 60 - + 41 * - + 52 + 23 AS col0
----
7135

onlyif mysql # DIV for integer division: 
query I rowsort label-232
SELECT DISTINCT + 54 DIV - ( - 80 )
----
0

skipif mysql # not compatible
query I rowsort label-232
SELECT DISTINCT + 54 / - ( - 80 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-233
SELECT ( + MAX( CAST( NULL AS SIGNED ) ) ) * 4 AS col0, + 8 * + 39 AS col2
----
NULL
312

skipif mysql # not compatible
query II rowsort label-233
SELECT ( + MAX ( CAST ( NULL AS INTEGER ) ) ) * 4 AS col0, + 8 * + 39 AS col2
----
NULL
312

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-235
SELECT COUNT( * ) + - + 32
----
-31

skipif mysql # not compatible
query I rowsort label-235
SELECT COUNT ( * ) + - + 32
----
-31

query I rowsort
SELECT 1 * - 69 AS col2
----
-69

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-239
SELECT DISTINCT + COUNT( * ) AS col1, 75 * - + 84
----
1
-6300

skipif mysql # not compatible
query II rowsort label-239
SELECT DISTINCT + COUNT ( * ) AS col1, 75 * - + 84
----
1
-6300

query I rowsort
SELECT + 90 * + 51 * 67 col2
----
307530

query I rowsort
SELECT + 43 + + 4
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-242
SELECT + CAST( 12 AS SIGNED ) * - 10
----
-120

skipif mysql # not compatible
query I rowsort label-242
SELECT + CAST ( 12 AS INTEGER ) * - 10
----
-120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-243
SELECT - - 46 * - + 11 * CAST( NULL AS SIGNED ) + - 47 - - 47 * - 61 * + MAX( DISTINCT + 91 ) * + 65 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-243
SELECT - - 46 * - + 11 * CAST ( NULL AS INTEGER ) + - 47 - - 47 * - 61 * + MAX ( DISTINCT + 91 ) * + 65 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-244
SELECT ALL - ( + 5 ) * MAX( - 50 )
----
250

skipif mysql # not compatible
query I rowsort label-244
SELECT ALL - ( + 5 ) * MAX ( - 50 )
----
250

query I rowsort
SELECT + - 35 - + 0
----
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-246
SELECT + + CASE + + MAX( ALL + 63 ) WHEN - 35 * 49 + 20 + - 38 + - + 41 + 15 THEN COUNT( * ) * + 55 WHEN + ( + 91 ) THEN + 91 DIV + + 39 WHEN 9 * - 45 THEN NULL ELSE + - 45 * + - 9 * + 47 * - - 78 - 61 END - + - COUNT( * ) AS col2
----
1484670

skipif mysql # not compatible
query I rowsort label-246
SELECT + + CASE + + MAX ( ALL + 63 ) WHEN - 35 * 49 + 20 + - 38 + - + 41 + 15 THEN COUNT ( * ) * + 55 WHEN + ( + 91 ) THEN + 91 / + + 39 WHEN 9 * - 45 THEN NULL ELSE + - 45 * + - 9 * + 47 * - - 78 - 61 END - + - COUNT ( * ) AS col2
----
1484670

query II rowsort
SELECT ALL - 46, 40 + - 79 AS col1
----
-46
-39

query I rowsort
SELECT ALL + 91 + 3 + - - 75
----
169

query I rowsort
SELECT DISTINCT + - 51 + + + 80 + + 77 AS col1
----
106

query I rowsort
SELECT ALL - - 88 + - 14 AS col1
----
74

query II rowsort
SELECT - 9 AS col2, - 89 * - 61 AS col2
----
-9
5429

query I rowsort
SELECT - 29 - - 10 + - 39
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-253
SELECT - - COUNT( * ) - - 3 col1
----
4

skipif mysql # not compatible
query I rowsort label-253
SELECT - - COUNT ( * ) - - 3 col1
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-254
SELECT + COALESCE ( - + 75, + - 14 * CAST( NULL AS SIGNED ) )
----
-75

skipif mysql # not compatible
query I rowsort label-254
SELECT + COALESCE ( - + 75, + - 14 * CAST ( NULL AS INTEGER ) )
----
-75

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

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

query I rowsort
SELECT - 54 * - ( - 78 ) AS col2
----
-4212

query I rowsort
SELECT DISTINCT 77 + 14 + - 63
----
28

query I rowsort
SELECT ALL + 67 * - 66 * + - 36 col2
----
159192

onlyif mysql # aggregate syntax: 
query I rowsort label-259
SELECT DISTINCT COALESCE ( - CASE - - COUNT( * ) WHEN 36 THEN 77 + + 87 END, - 87, COUNT( * ) + - 62 ) AS col1
----
-87

skipif mysql # not compatible
query I rowsort label-259
SELECT DISTINCT COALESCE ( - CASE - - COUNT ( * ) WHEN 36 THEN 77 + + 87 END, - 87, COUNT ( * ) + - 62 ) AS col1
----
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-260
SELECT - 6 + + 95 DIV + 74
----
-5

skipif mysql # not compatible
query I rowsort label-260
SELECT - 6 + + 95 / + 74
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-261
SELECT ALL - 40 - + CAST( + COUNT( * ) AS SIGNED )
----
-41

skipif mysql # not compatible
query I rowsort label-261
SELECT ALL - 40 - + CAST ( + COUNT ( * ) AS INTEGER )
----
-41

query I rowsort
SELECT DISTINCT - 95 - 17 + - 68
----
-180

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

query I rowsort
SELECT ALL + 68 * + 71
----
4828

onlyif mysql # aggregate syntax: 
query I rowsort label-265
SELECT - 88 + - + 86 * - ( - + 54 ) * 67 * - SUM( 65 )
----
20224532

skipif mysql # not compatible
query I rowsort label-265
SELECT - 88 + - + 86 * - ( - + 54 ) * 67 * - SUM ( 65 )
----
20224532

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-266
SELECT DISTINCT COALESCE ( - CAST( - AVG ( DISTINCT 20 ) AS SIGNED ), + 98 * + 15 * - CAST( 91 AS SIGNED ) DIV + 60 ) AS col0
----
20

skipif mysql # not compatible
query I rowsort label-266
SELECT DISTINCT COALESCE ( - CAST ( - AVG ( DISTINCT 20 ) AS INTEGER ), + 98 * + 15 * - CAST ( 91 AS INTEGER ) / + 60 ) AS col0
----
20

query II rowsort
SELECT ( - - 87 ), - 28 AS col0
----
87
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-268
SELECT + NULLIF ( + + ( + CAST( - 98 AS SIGNED ) ), - COUNT( * ) ) col0, - 68 * + 22
----
-98
-1496

skipif mysql # not compatible
query II rowsort label-268
SELECT + NULLIF ( + + ( + CAST ( - 98 AS INTEGER ) ), - COUNT ( * ) ) col0, - 68 * + 22
----
-98
-1496

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-270
SELECT - 16 DIV + 43, COUNT( * ) col1
----
0
1

skipif mysql # not compatible
query II rowsort label-270
SELECT - 16 / + 43, COUNT ( * ) col1
----
0
1

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

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-273
SELECT - 34 DIV - - 53 + + 50 + + 69 * + + 16, 20 * - 78 AS col1
----
1154
-1560

skipif mysql # not compatible
query II rowsort label-273
SELECT - 34 / - - 53 + + 50 + + 69 * + + 16, 20 * - 78 AS col1
----
1154
-1560

onlyif mysql # DIV for integer division: 
query I rowsort label-274
SELECT + 74 DIV 94 * - + 81 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-274
SELECT + 74 / 94 * - + 81 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-275
SELECT ALL - 36 * MAX( DISTINCT - 87 ) AS col0, - 46 col0
----
3132
-46

skipif mysql # not compatible
query II rowsort label-275
SELECT ALL - 36 * MAX ( DISTINCT - 87 ) AS col0, - 46 col0
----
3132
-46

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

onlyif mysql # aggregate syntax: 
query I rowsort label-277
SELECT + - CASE + 79 WHEN 96 THEN - 21 WHEN 14 * + 4 THEN COUNT( * ) WHEN + + ( + 22 ) THEN NULL WHEN - + MAX( + + 88 ) THEN + 8 * - AVG ( DISTINCT + + NULLIF ( - 30, - 7 * - - 33 ) ) * - - ( 23 ) / 39 END + - + 8 + - - 59 * 39 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-277
SELECT + - CASE + 79 WHEN 96 THEN - 21 WHEN 14 * + 4 THEN COUNT ( * ) WHEN + + ( + 22 ) THEN NULL WHEN - + MAX ( + + 88 ) THEN + 8 * - AVG ( DISTINCT + + NULLIF ( - 30, - 7 * - - 33 ) ) * - - ( 23 ) / 39 END + - + 8 + - - 59 * 39 AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-278
SELECT + COUNT ( * ) * - 63 * + 78 + 9 AS col2
----
-4905

query I rowsort
SELECT + - 0 * + - 34 + - 98 AS col0
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-280
SELECT DISTINCT + COUNT( * ) * + 62 + - 67
----
-5

skipif mysql # not compatible
query I rowsort label-280
SELECT DISTINCT + COUNT ( * ) * + 62 + - 67
----
-5

query I rowsort
SELECT + ( + 37 ) + - 14
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-282
SELECT ALL - 97 * - 52 * COUNT( * ) + + + COUNT( * )
----
5045

skipif mysql # not compatible
query I rowsort label-282
SELECT ALL - 97 * - 52 * COUNT ( * ) + + + COUNT ( * )
----
5045

onlyif mysql # aggregate syntax: 
query I rowsort label-283
SELECT + MIN( - - 98 ) * - 21 * COUNT( * ) * + 86 + - COUNT( * )
----
-176989

skipif mysql # not compatible
query I rowsort label-283
SELECT + MIN ( - - 98 ) * - 21 * COUNT ( * ) * + 86 + - COUNT ( * )
----
-176989

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

skipif mysql # not compatible
query I rowsort label-284
SELECT ALL 48 * CAST ( NULL AS REAL ) + COUNT ( * ) - 20 + + 48 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-285
SELECT + - 49 + + CASE - CASE WHEN NULL = 83 THEN - CAST( NULL AS SIGNED ) + - - COUNT( * ) + - 82 + COUNT( * ) DIV COUNT( * ) ELSE NULL END WHEN + 17 - - 30 THEN NULL WHEN 89 - - COALESCE ( + 28, + 80 ) THEN NULL ELSE - 6 END + + CAST( + 96 AS SIGNED ) + - 82 DIV - 54 * - COUNT( * ) * - COUNT( * ) * + ( - 83 ) DIV + 49 AS col2
----
40

skipif mysql # not compatible
query I rowsort label-285
SELECT + - 49 + + CASE - CASE WHEN NULL = 83 THEN - CAST ( NULL AS INTEGER ) + - - COUNT ( * ) + - 82 + COUNT ( * ) / COUNT ( * ) ELSE NULL END WHEN + 17 - - 30 THEN NULL WHEN 89 - - COALESCE ( + 28, + 80 ) THEN NULL ELSE - 6 END + + CAST ( + 96 AS INTEGER ) + - 82 / - 54 * - COUNT ( * ) * - COUNT ( * ) * + ( - 83 ) / + 49 AS col2
----
40

query I rowsort
SELECT + + 74 + - 27 * 11 AS col1
----
-223

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

skipif mysql # not compatible
query I rowsort label-287
SELECT - - SUM ( ALL + - CAST ( NULL AS INTEGER ) ) + 46
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-288
SELECT DISTINCT - 35 * - COUNT( * ) * + 99
----
3465

skipif mysql # not compatible
query I rowsort label-288
SELECT DISTINCT - 35 * - COUNT ( * ) * + 99
----
3465

query I rowsort
SELECT - 90 * - 10 + - - 93 * - 13
----
-309

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-290
SELECT DISTINCT 77 - + ( - - 18 ) + - 96 + + ( + CAST( NULL AS SIGNED ) ) * - 99 * 17 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-290
SELECT DISTINCT 77 - + ( - - 18 ) + - 96 + + ( + CAST ( NULL AS INTEGER ) ) * - 99 * 17 AS col0
----
NULL

query I rowsort
SELECT ALL 36 * - + 1
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-292
SELECT + 48 + ( + COUNT( * ) ) + - + 91 * - 20 AS col2
----
1869

skipif mysql # not compatible
query I rowsort label-292
SELECT + 48 + ( + COUNT ( * ) ) + - + 91 * - 20 AS col2
----
1869

query I rowsort
SELECT ALL 12 - - - ( 21 )
----
-9

query I rowsort
SELECT DISTINCT 71 * - 29 * + COALESCE ( - COALESCE ( 90, 25 ), 38 ) AS col0
----
185310

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-295
SELECT ALL - ( + CASE - 37 WHEN - + CAST( 3 AS SIGNED ) THEN - 84 END ) - - - CAST( NULL AS SIGNED ) * 79 * + - 16 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-295
SELECT ALL - ( + CASE - 37 WHEN - + CAST ( 3 AS INTEGER ) THEN - 84 END ) - - - CAST ( NULL AS INTEGER ) * 79 * + - 16 AS col2
----
NULL

query II rowsort
SELECT + ( + + 62 ) - + - 80 AS col2, - 48 * + 89
----
142
-4272

query I rowsort
SELECT - 94 + - 86 AS col0
----
-180

onlyif mysql # aggregate syntax: 
query I rowsort label-298
SELECT ALL - COUNT( * ) / - 50 / + CASE + ( - 95 ) WHEN + 9 THEN - - 60 END
----
NULL

skipif mysql # not compatible
query I rowsort label-298
SELECT ALL - COUNT ( * ) / - 50 / + CASE + ( - 95 ) WHEN + 9 THEN - - 60 END
----
NULL

query I rowsort
SELECT - 70 + + - ( - 36 ) + + 30
----
-4

query I rowsort
SELECT + 41 * 49
----
2009

onlyif mysql # aggregate syntax: 
query I rowsort label-301
SELECT DISTINCT MIN( DISTINCT + 73 ) AS col2
----
73

skipif mysql # not compatible
query I rowsort label-301
SELECT DISTINCT MIN ( DISTINCT + 73 ) AS col2
----
73

query II rowsort
SELECT 20 * - 23 * + 19 AS col0, ( + 96 )
----
-8740
96

onlyif mysql # DIV for integer division: 
query I rowsort label-303
SELECT 23 - - 34 DIV 44 DIV - 65 * 83
----
23

skipif mysql # not compatible
query I rowsort label-303
SELECT 23 - - 34 / 44 / - 65 * 83
----
23

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

skipif mysql # not compatible
query I rowsort label-304
SELECT ALL - COUNT ( DISTINCT - - 28 ) AS col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-305
SELECT + 52, + 17 * + COUNT( * ) DIV 81 AS col0
----
52
0

skipif mysql # not compatible
query II rowsort label-305
SELECT + 52, + 17 * + COUNT ( * ) / 81 AS col0
----
52
0

onlyif mysql # aggregate syntax: 
query I rowsort label-306
SELECT + COUNT( * ) * - - 91 - 9 + + - MIN( ALL 62 )
----
20

skipif mysql # not compatible
query I rowsort label-306
SELECT + COUNT ( * ) * - - 91 - 9 + + - MIN ( ALL 62 )
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-307
SELECT - ( - 26 ) DIV - 26 + + - 40 AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-307
SELECT - ( - 26 ) / - 26 + + - 40 AS col2
----
-41

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

skipif mysql # not compatible
query I rowsort label-308
SELECT 9 / 98
----
0

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

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

query I rowsort
SELECT ALL - - 92 + 32 AS col1
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-311
SELECT DISTINCT 96 + 60 * 39 * - SUM( ALL - 46 ) AS col1
----
107736

skipif mysql # not compatible
query I rowsort label-311
SELECT DISTINCT 96 + 60 * 39 * - SUM ( ALL - 46 ) AS col1
----
107736

onlyif mysql # aggregate syntax: 
query II rowsort label-312
SELECT 19 * + + 15 * + - 70 * + 11 * - 14 * - 15 * - COUNT( DISTINCT - 39 ), 69 AS col2
----
46084500
69

skipif mysql # not compatible
query II rowsort label-312
SELECT 19 * + + 15 * + - 70 * + 11 * - 14 * - 15 * - COUNT ( DISTINCT - 39 ), 69 AS col2
----
46084500
69

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

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

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

skipif mysql # not compatible
query I rowsort label-314
SELECT ALL - MIN ( ALL - 80 )
----
80

query I rowsort
SELECT - 21 * + - 7 * + 30 + - + 10 AS col1
----
4400

query II rowsort
SELECT + - 65 AS col0, + ( 77 ) AS col2
----
-65
77

query I rowsort
SELECT 68 + 90 AS col1
----
158

query I rowsort
SELECT 99 * + - 45
----
-4455

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

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

query I rowsort
SELECT ALL + - 25 * 29
----
-725

query I rowsort
SELECT 79 + - 77 AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-322
SELECT MIN( DISTINCT - ( 83 ) ) + + 37
----
-46

skipif mysql # not compatible
query I rowsort label-322
SELECT MIN ( DISTINCT - ( 83 ) ) + + 37
----
-46

query I rowsort
SELECT DISTINCT 18 * + 26
----
468

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-324
SELECT COUNT( * ) * ( 18 ) * 38 + + COUNT( * ) - + 68 DIV 42 AS col0
----
684

skipif mysql # not compatible
query I rowsort label-324
SELECT COUNT ( * ) * ( 18 ) * 38 + + COUNT ( * ) - + 68 / 42 AS col0
----
684

onlyif mysql # aggregate syntax: 
query II rowsort label-325
SELECT DISTINCT 64 * 28 col2, - MAX( DISTINCT 92 )
----
1792
-92

skipif mysql # not compatible
query II rowsort label-325
SELECT DISTINCT 64 * 28 col2, - MAX ( DISTINCT 92 )
----
1792
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-326
SELECT DISTINCT 82 * + SUM( + + 74 ) * - 64 * + + 66
----
-25631232

skipif mysql # not compatible
query I rowsort label-326
SELECT DISTINCT 82 * + SUM ( + + 74 ) * - 64 * + + 66
----
-25631232

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

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

query I rowsort
SELECT ALL 17 + - 90 - + + 91 AS col0
----
-164

onlyif mysql # aggregate syntax: 
query I rowsort label-329
SELECT COUNT( * ) + - 29
----
-28

skipif mysql # not compatible
query I rowsort label-329
SELECT COUNT ( * ) + - 29
----
-28

query I rowsort
SELECT 58 + - 54 AS col2
----
4

query I rowsort
SELECT DISTINCT + 86 + + 10
----
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-332
SELECT - 48 DIV + + COUNT( * ) + + 91
----
43

skipif mysql # not compatible
query I rowsort label-332
SELECT - 48 / + + COUNT ( * ) + + 91
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-333
SELECT ALL + 53 + 95 + - - NULLIF ( 85, + 9 + NULLIF ( + - 97, - + COUNT( * ) ) ) AS col1
----
233

skipif mysql # not compatible
query I rowsort label-333
SELECT ALL + 53 + 95 + - - NULLIF ( 85, + 9 + NULLIF ( + - 97, - + COUNT ( * ) ) ) AS col1
----
233

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-334
SELECT ALL - CAST( + 31 AS SIGNED ) + - + 1
----
-32

skipif mysql # not compatible
query I rowsort label-334
SELECT ALL - CAST ( + 31 AS INTEGER ) + - + 1
----
-32

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-335
SELECT + + CAST( NULL AS DECIMAL ) / - - CAST( - + 34 AS SIGNED ) + + ( 27 )
----
NULL

skipif mysql # not compatible
query I rowsort label-335
SELECT + + CAST ( NULL AS REAL ) / - - CAST ( - + 34 AS INTEGER ) + + ( 27 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-336
SELECT ALL + 93 + - + CAST( NULL AS SIGNED ) - + + 12 - + + 31 * 62 * + MIN( - - 20 ) * - CAST( NULL AS SIGNED ) + + ( + 51 ) + 40
----
NULL

skipif mysql # not compatible
query I rowsort label-336
SELECT ALL + 93 + - + CAST ( NULL AS INTEGER ) - + + 12 - + + 31 * 62 * + MIN ( - - 20 ) * - CAST ( NULL AS INTEGER ) + + ( + 51 ) + 40
----
NULL

query I rowsort
SELECT 12 * - 63 + - 7
----
-763

onlyif mysql # aggregate syntax: 
query I rowsort label-338
SELECT 34 + + + MAX( ALL - - ( + + 78 ) ) + - 49
----
63

skipif mysql # not compatible
query I rowsort label-338
SELECT 34 + + + MAX ( ALL - - ( + + 78 ) ) + - 49
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-339
SELECT ALL - COUNT( * ) * - - 97 * + 46 AS col1
----
-4462

skipif mysql # not compatible
query I rowsort label-339
SELECT ALL - COUNT ( * ) * - - 97 * + 46 AS col1
----
-4462

onlyif mysql # aggregate syntax: 
query I rowsort label-340
SELECT COUNT( 99 ) + - + 17 + + 48 AS col1
----
32

skipif mysql # not compatible
query I rowsort label-340
SELECT COUNT ( 99 ) + - + 17 + + 48 AS col1
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-341
SELECT 57 * - COALESCE ( - - 9, + 98 ) + - ( 3 ) + + 61 + - - COUNT( * ) * 66 * - - 44 - + - MIN( DISTINCT 50 ) * 97
----
7299

skipif mysql # not compatible
query I rowsort label-341
SELECT 57 * - COALESCE ( - - 9, + 98 ) + - ( 3 ) + + 61 + - - COUNT ( * ) * 66 * - - 44 - + - MIN ( DISTINCT 50 ) * 97
----
7299

onlyif mysql # aggregate syntax: 
query I rowsort label-342
SELECT 59 + MAX( ALL - 20 ) * - 62
----
1299

skipif mysql # not compatible
query I rowsort label-342
SELECT 59 + MAX ( ALL - 20 ) * - 62
----
1299

query I rowsort
SELECT ALL + 66 - - ( 9 ) * - + 13
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-344
SELECT - CAST( NULL AS SIGNED ) * 39 + + 71 * + 74 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-344
SELECT - CAST ( NULL AS INTEGER ) * 39 + + 71 * + 74 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-345
SELECT ALL + + 89 * - 69 DIV - - COUNT( * )
----
-6141

skipif mysql # not compatible
query I rowsort label-345
SELECT ALL + + 89 * - 69 / - - COUNT ( * )
----
-6141

onlyif mysql # aggregate syntax: 
query II rowsort label-346
SELECT - COUNT( ALL + 72 ) * + 40 + - - 34 AS col2, - 64 AS col1
----
-6
-64

skipif mysql # not compatible
query II rowsort label-346
SELECT - COUNT ( ALL + 72 ) * + 40 + - - 34 AS col2, - 64 AS col1
----
-6
-64

query II rowsort
SELECT ALL - 34 col0, - 2 * + 20 AS col2
----
-34
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-348
SELECT DISTINCT + 27 - COUNT( * ) + + 34 * 26 AS col1
----
910

skipif mysql # not compatible
query I rowsort label-348
SELECT DISTINCT + 27 - COUNT ( * ) + + 34 * 26 AS col1
----
910

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

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

query I rowsort
SELECT 85 * + 92 col1
----
7820

onlyif mysql # aggregate syntax: 
query I rowsort label-351
SELECT 24 + - COUNT( * ) * 86 AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-351
SELECT 24 + - COUNT ( * ) * 86 AS col1
----
-62

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

skipif mysql # not compatible
query I rowsort label-352
SELECT 95 * - ( - - 62 ) * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-353
SELECT DISTINCT - COALESCE ( + 77, + 74, MIN( + + 13 ) + 25 * - 17 + 86 * + 52 ) * + 24 AS col0
----
-1848

skipif mysql # not compatible
query I rowsort label-353
SELECT DISTINCT - COALESCE ( + 77, + 74, MIN ( + + 13 ) + 25 * - 17 + 86 * + 52 ) * + 24 AS col0
----
-1848

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-355
SELECT DISTINCT MIN( DISTINCT - 42 ) AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-355
SELECT DISTINCT MIN ( DISTINCT - 42 ) AS col0
----
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-356
SELECT DISTINCT - 37 + 88 + 94 + - 18 + + + 88 + 63 * 76 DIV 82 + + NULLIF ( 63, - + 59 ) col0
----
336

skipif mysql # not compatible
query I rowsort label-356
SELECT DISTINCT - 37 + 88 + 94 + - 18 + + + 88 + 63 * 76 / 82 + + NULLIF ( 63, - + 59 ) col0
----
336

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

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

query I rowsort
SELECT ALL + 74 + + - 48 AS col2
----
26

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-360
SELECT + CASE - COUNT( * ) WHEN - COALESCE ( - 59, + COUNT( * ) * + 69, COUNT( * ) ) THEN NULL ELSE - - 6 END + + COUNT( * ) - ( + NULLIF ( + 50, + 3 ) ) + - - 22 * 37
----
771

skipif mysql # not compatible
query I rowsort label-360
SELECT + CASE - COUNT ( * ) WHEN - COALESCE ( - 59, + COUNT ( * ) * + 69, COUNT ( * ) ) THEN NULL ELSE - - 6 END + + COUNT ( * ) - ( + NULLIF ( + 50, + 3 ) ) + - - 22 * 37
----
771

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-361
SELECT + 40 * + CASE - - 94 WHEN - MIN( ALL + CAST( + - 32 AS SIGNED ) ) * + 11 THEN NULL WHEN + 26 THEN + + 9 ELSE NULL END * - MIN( ALL - 0 ) + + 41 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-361
SELECT + 40 * + CASE - - 94 WHEN - MIN ( ALL + CAST ( + - 32 AS INTEGER ) ) * + 11 THEN NULL WHEN + 26 THEN + + 9 ELSE NULL END * - MIN ( ALL - 0 ) + + 41 AS col0
----
NULL

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

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

query I rowsort
SELECT DISTINCT - 24 + + - 84
----
-108

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-365
SELECT ALL 99 + + NULLIF ( + 63, + 45 + - 98 / + COUNT( * ) ) AS col2
----
162

skipif mysql # not compatible
query I rowsort label-365
SELECT ALL 99 + + NULLIF ( + 63, + 45 + - 98 / + COUNT ( * ) ) AS col2
----
162

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

skipif mysql # not compatible
query I rowsort label-366
SELECT + MIN ( DISTINCT - - ( + 48 ) ) * - COUNT ( * ) * COUNT ( * ) AS col1
----
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-367
SELECT + + 36 DIV + SUM( - + 13 ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-367
SELECT + + 36 / + SUM ( - + 13 ) AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-368
SELECT DISTINCT 25 * 90 * - 38 - 39 - - COUNT( * ) * - - SUM( ALL + 62 ) col1
----
-85477

skipif mysql # not compatible
query I rowsort label-368
SELECT DISTINCT 25 * 90 * - 38 - 39 - - COUNT ( * ) * - - SUM ( ALL + 62 ) col1
----
-85477

onlyif mysql # aggregate syntax: 
query I rowsort label-369
SELECT + + 92 * - 89 - - SUM( - 31 ) - 48 * 51 * + - 20 AS col2
----
40741

skipif mysql # not compatible
query I rowsort label-369
SELECT + + 92 * - 89 - - SUM ( - 31 ) - 48 * 51 * + - 20 AS col2
----
40741

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-370
SELECT ALL + 81 DIV - + NULLIF ( + + 91, + 9 + - 48 + + + 64 * + NULLIF ( 59, - + CASE - COALESCE ( 21, + 22 + 26 ) WHEN + NULLIF ( - + CAST( NULL AS SIGNED ), + + 85 * + 79 ) THEN ( - + 72 ) * - COUNT( 20 ) END ) DIV - 76 )
----
0

skipif mysql # not compatible
query I rowsort label-370
SELECT ALL + 81 / - + NULLIF ( + + 91, + 9 + - 48 + + + 64 * + NULLIF ( 59, - + CASE - COALESCE ( 21, + 22 + 26 ) WHEN + NULLIF ( - + CAST ( NULL AS INTEGER ), + + 85 * + 79 ) THEN ( - + 72 ) * - COUNT ( 20 ) END ) / - 76 )
----
0

query II rowsort
SELECT ALL + + 6, 53 AS col1
----
6
53

query I rowsort
SELECT DISTINCT + + 24 AS col0
----
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-373
SELECT ALL 29 DIV MIN( - 1 ) * - ( - ( - 33 ) )
----
957

skipif mysql # not compatible
query I rowsort label-373
SELECT ALL 29 / MIN ( - 1 ) * - ( - ( - 33 ) )
----
957

onlyif mysql # DIV for integer division: 
query I rowsort label-374
SELECT - 68 DIV - 24 + - 46
----
-44

skipif mysql # not compatible
query I rowsort label-374
SELECT - 68 / - 24 + - 46
----
-44

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

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

query I rowsort
SELECT 65 * - + 70 * + 66 + ( 85 ) + - - 84 + - 41 + + 16 AS col0
----
-300156

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-379
SELECT SUM( DISTINCT + 92 ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-379
SELECT SUM ( DISTINCT + 92 ) AS col2
----
92

query I rowsort
SELECT - 71 * + 17 AS col1
----
-1207

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-382
SELECT - 41 - + CAST( 29 AS SIGNED ) + - COUNT( * ) + + - 94 * 54 AS col1
----
-5147

skipif mysql # not compatible
query I rowsort label-382
SELECT - 41 - + CAST ( 29 AS INTEGER ) + - COUNT ( * ) + + - 94 * 54 AS col1
----
-5147

query I rowsort
SELECT ALL 75 * - 50 + 42
----
-3708

query I rowsort
SELECT DISTINCT - 59 * + 95 + - 64 col0
----
-5669

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-385
SELECT ALL - 76 * 32 DIV - COUNT( * ) + 17 - ( + 51 ) - - ( - COUNT( * ) )
----
2397

skipif mysql # not compatible
query I rowsort label-385
SELECT ALL - 76 * 32 / - COUNT ( * ) + 17 - ( + 51 ) - - ( - COUNT ( * ) )
----
2397

query I rowsort
SELECT DISTINCT + ( - - 43 ) * - 86 col2
----
-3698

onlyif mysql # aggregate syntax: 
query II rowsort label-387
SELECT - 70 + 75 AS col0, MIN( DISTINCT + 58 )
----
5
58

skipif mysql # not compatible
query II rowsort label-387
SELECT - 70 + 75 AS col0, MIN ( DISTINCT + 58 )
----
5
58

onlyif mysql # aggregate syntax: 
query I rowsort label-388
SELECT ALL + CASE - 60 WHEN + 48 THEN - ( - + 40 ) / ( 75 ) ELSE NULL END + - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-388
SELECT ALL + CASE - 60 WHEN + 48 THEN - ( - + 40 ) / ( 75 ) ELSE NULL END + - COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-389
SELECT DISTINCT - 33 + 79 * + 45 * - - ( - MIN( DISTINCT + 46 ) ) * + - SUM( ALL + 72 ) + - 77 - - COUNT( * ) + - 9 DIV 45 AS col1
----
11774051

skipif mysql # not compatible
query I rowsort label-389
SELECT DISTINCT - 33 + 79 * + 45 * - - ( - MIN ( DISTINCT + 46 ) ) * + - SUM ( ALL + 72 ) + - 77 - - COUNT ( * ) + - 9 / 45 AS col1
----
11774051

onlyif mysql # DIV for integer division: 
query I rowsort label-390
SELECT - 99 DIV 66
----
-1

skipif mysql # not compatible
query I rowsort label-390
SELECT - 99 / 66
----
-1

query I rowsort
SELECT - 64 - + + 57
----
-121

query II rowsort
SELECT 19 AS col0, + 78 - + 18
----
19
60

query I rowsort
SELECT ALL + 43 + 65 AS col1
----
108

query I rowsort
SELECT ALL - 88 + - 67
----
-155

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-395
SELECT DISTINCT + CAST( + 81 AS DECIMAL ) * - CASE + COUNT( * ) WHEN - 89 + + AVG ( - + 90 ) - + 2 + - + 23 + - COUNT( * ) + 22 + - 5 + + COUNT( * ) * - - 35 + COALESCE ( - ( 64 ), - 18 ) * - + ( - CAST( NULL AS DECIMAL ) ) THEN - - 38 WHEN + 59 * - + COUNT( * ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-395
SELECT DISTINCT + CAST ( + 81 AS REAL ) * - CASE + COUNT ( * ) WHEN - 89 + + AVG ( - + 90 ) - + 2 + - + 23 + - COUNT ( * ) + 22 + - 5 + + COUNT ( * ) * - - 35 + COALESCE ( - ( 64 ), - 18 ) * - + ( - CAST ( NULL AS REAL ) ) THEN - - 38 WHEN + 59 * - + COUNT ( * ) THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-396
SELECT - 4 + NULLIF ( 2, COALESCE ( + 1, - - 91 * 2 ) * - - 91 + + + ( + 49 ) + - + 65 * + 15 ) DIV + 3 AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-396
SELECT - 4 + NULLIF ( 2, COALESCE ( + 1, - - 91 * 2 ) * - - 91 + + + ( + 49 ) + - + 65 * + 15 ) / + 3 AS col2
----
-4

query I rowsort
SELECT DISTINCT + ( - 9 ) * + + 64
----
-576

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-398
SELECT ALL - CAST( NULL AS DECIMAL ) + + - CASE CAST( NULL AS SIGNED ) WHEN + - ( + 78 ) - - 61 THEN NULL WHEN + 72 + + COALESCE ( + 19, - 20, 62 + - 77 + + 9 ) THEN - - 23 ELSE ( + COUNT( * ) ) + + - 58 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-398
SELECT ALL - CAST ( NULL AS REAL ) + + - CASE CAST ( NULL AS INTEGER ) WHEN + - ( + 78 ) - - 61 THEN NULL WHEN + 72 + + COALESCE ( + 19, - 20, 62 + - 77 + + 9 ) THEN - - 23 ELSE ( + COUNT ( * ) ) + + - 58 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-399
SELECT ALL + 67 - + CASE ( + + SUM( + 14 ) ) WHEN + 88 THEN - 24 WHEN - - 29 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-399
SELECT ALL + 67 - + CASE ( + + SUM ( + 14 ) ) WHEN + 88 THEN - 24 WHEN - - 29 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-400
SELECT DISTINCT + COUNT( * ) DIV + + 84 + - MAX( DISTINCT 52 ) col0, - 50 * - - 61 * - CAST( - MAX( ALL + 17 ) AS SIGNED ) * + 44 AS col0
----
-52
-2281400

skipif mysql # not compatible
query II rowsort label-400
SELECT DISTINCT + COUNT ( * ) / + + 84 + - MAX ( DISTINCT 52 ) col0, - 50 * - - 61 * - CAST ( - MAX ( ALL + 17 ) AS INTEGER ) * + 44 AS col0
----
-52
-2281400

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

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

query I rowsort
SELECT - 85 * - 27
----
2295

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

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

query I rowsort
SELECT + - 32 + 91 + ( + 72 )
----
131

query I rowsort
SELECT - NULLIF ( + 7, 85 )
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-406
SELECT - COUNT( * ) + MAX( - + NULLIF ( - ( - - ( - ( ( - 73 ) ) ) ), + + COALESCE ( + ( + 27 ), - 63 ) ) ) + + MIN( ALL - 13 )
----
59

skipif mysql # not compatible
query I rowsort label-406
SELECT - COUNT ( * ) + MAX ( - + NULLIF ( - ( - - ( - ( ( - 73 ) ) ) ), + + COALESCE ( + ( + 27 ), - 63 ) ) ) + + MIN ( ALL - 13 )
----
59

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

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

onlyif mysql # aggregate syntax: 
query III rowsort label-408
SELECT DISTINCT + + 95 col1, - 32 + - 66 + + - 94 * + - MAX( - ( + 31 ) ), - COUNT( * ) + + 81 + + ( 1 ) AS col1
----
95
-3012
81

skipif mysql # not compatible
query III rowsort label-408
SELECT DISTINCT + + 95 col1, - 32 + - 66 + + - 94 * + - MAX ( - ( + 31 ) ), - COUNT ( * ) + + 81 + + ( 1 ) AS col1
----
95
-3012
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-409
SELECT - 26 * + 6 - CAST( + 44 AS SIGNED ) + + 23 * + 41 + NULLIF ( 32, - 89 + + 59 + + 1 * 18 )
----
775

skipif mysql # not compatible
query I rowsort label-409
SELECT - 26 * + 6 - CAST ( + 44 AS INTEGER ) + + 23 * + 41 + NULLIF ( 32, - 89 + + 59 + + 1 * 18 )
----
775

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-410
SELECT ALL + - ( CAST( - 26 AS SIGNED ) )
----
26

skipif mysql # not compatible
query I rowsort label-410
SELECT ALL + - ( CAST ( - 26 AS INTEGER ) )
----
26

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

skipif mysql # not compatible
query I rowsort label-411
SELECT + + COUNT ( * ) / + - 93 + + 25
----
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-412
SELECT - COUNT( * ) DIV 85 + - 13 + ( - 99 )
----
-112

skipif mysql # not compatible
query I rowsort label-412
SELECT - COUNT ( * ) / 85 + - 13 + ( - 99 )
----
-112

query I rowsort
SELECT DISTINCT + 58 * 27 + + - 16 AS col1
----
1550

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-415
SELECT + - 19 * - COUNT( * ) * + - 55 * 44 DIV - 20 + + ( + + 83 )
----
2382

skipif mysql # not compatible
query I rowsort label-415
SELECT + - 19 * - COUNT ( * ) * + - 55 * 44 / - 20 + + ( + + 83 )
----
2382

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-418
SELECT ALL - 9 DIV + 79 + + 90 + - 12 AS col0
----
78

skipif mysql # not compatible
query I rowsort label-418
SELECT ALL - 9 / + 79 + + 90 + - 12 AS col0
----
78

query I rowsort
SELECT ALL 6 + + 53 AS col1
----
59

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-421
SELECT ALL - 46 * + - MAX( ALL 63 ) AS col0
----
2898

skipif mysql # not compatible
query I rowsort label-421
SELECT ALL - 46 * + - MAX ( ALL 63 ) AS col0
----
2898

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-422
SELECT ALL + CAST( - 54 AS SIGNED ) + 99 * - 35 / - 13 * + 92 + + COUNT( * ) + + CASE CAST( + 58 AS DECIMAL ) WHEN - + COUNT( * ) THEN NULL WHEN SUM( ALL - ( 94 ) ) THEN - 50 / + 98 / + CASE - 34 WHEN + ( + CASE - 32 WHEN + + 72 * + 20 * - 28 + - ( COUNT( 96 ) ) THEN - MIN( + 29 ) ELSE NULL END ) THEN 27 ELSE NULL END END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-422
SELECT ALL + CAST ( - 54 AS INTEGER ) + 99 * - 35 / - 13 * + 92 + + COUNT ( * ) + + CASE CAST ( + 58 AS REAL ) WHEN - + COUNT ( * ) THEN NULL WHEN SUM ( ALL - ( 94 ) ) THEN - 50 / + 98 / + CASE - 34 WHEN + ( + CASE - 32 WHEN + + 72 * + 20 * - 28 + - ( COUNT ( 96 ) ) THEN - MIN ( + 29 ) ELSE NULL END ) THEN 27 ELSE NULL END END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-423
SELECT ( COUNT( * ) ) * + + CAST( 37 AS SIGNED ) * + 80 + 69 + + MIN( ALL + - 57 )
----
2972

skipif mysql # not compatible
query I rowsort label-423
SELECT ( COUNT ( * ) ) * + + CAST ( 37 AS INTEGER ) * + 80 + 69 + + MIN ( ALL + - 57 )
----
2972

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-424
SELECT ALL COUNT( * ) + 50 + + + NULLIF ( - 53, + 72 ) - - 38 DIV - - 75 + - NULLIF ( ( 82 ), + 4 ) + + 73 col0
----
-11

skipif mysql # not compatible
query I rowsort label-424
SELECT ALL COUNT ( * ) + 50 + + + NULLIF ( - 53, + 72 ) - - 38 / - - 75 + - NULLIF ( ( 82 ), + 4 ) + + 73 col0
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-425
SELECT DISTINCT 59 DIV - + 5 AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-425
SELECT DISTINCT 59 / - + 5 AS col0
----
-11

query I rowsort
SELECT ALL ( - - 54 ) + 52 * + 92 * + 62 + 75
----
296737

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

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

query I rowsort
SELECT 68 + + - 18 AS col2
----
50

query I rowsort
SELECT ALL + 56 + - 74 + - + ( 53 ) AS col1
----
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-430
SELECT DISTINCT CAST( - 65 AS SIGNED ) - - 0 * - - 58
----
-65

skipif mysql # not compatible
query I rowsort label-430
SELECT DISTINCT CAST ( - 65 AS INTEGER ) - - 0 * - - 58
----
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-431
SELECT 54 + + + CASE 9 WHEN + - NULLIF ( + 32, 0 ) * 97 - + 34 + + CAST( NULL AS SIGNED ) + - + ( 72 ) * + 64 THEN - 68 WHEN 89 THEN + + 86 WHEN - ( + 88 ) THEN - + 18 + - ( + COUNT( DISTINCT 11 ) ) WHEN 42 * + 70 + 96 - + - 63 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-431
SELECT 54 + + + CASE 9 WHEN + - NULLIF ( + 32, 0 ) * 97 - + 34 + + CAST ( NULL AS INTEGER ) + - + ( 72 ) * + 64 THEN - 68 WHEN 89 THEN + + 86 WHEN - ( + 88 ) THEN - + 18 + - ( + COUNT ( DISTINCT 11 ) ) WHEN 42 * + 70 + 96 - + - 63 THEN NULL END AS col1
----
NULL

query I rowsort
SELECT ALL 86 - + - 75 - + 3 AS col0
----
158

query I rowsort
SELECT ALL + + 87 - + 63 - + - 98 AS col1
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-434
SELECT - - NULLIF ( + 68, + 64 + - - SUM( ALL + 25 ) * 26 )
----
68

skipif mysql # not compatible
query I rowsort label-434
SELECT - - NULLIF ( + 68, + 64 + - - SUM ( ALL + 25 ) * 26 )
----
68

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

query I rowsort
SELECT + 69 + 30 AS col1
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-437
SELECT + 39 / - CASE - 56 WHEN 37 - - 13 - - + 4 * - 2 THEN NULL WHEN - - 81 * - CAST( NULL AS SIGNED ) * - 62 THEN + 18 * - 58 ELSE NULL END + + - NULLIF ( CASE + - 44 WHEN + 9 / ( + 95 ) * - 16 * + 32 THEN SUM( DISTINCT + 71 ) * - SUM( ALL - 13 ) + + 90 * + - MIN( CAST( + 15 AS SIGNED ) ) END, + 88 * + 83 ) AS col1, - 30 + - COUNT( * )
----
NULL
-31

skipif mysql # not compatible
query II rowsort label-437
SELECT + 39 / - CASE - 56 WHEN 37 - - 13 - - + 4 * - 2 THEN NULL WHEN - - 81 * - CAST ( NULL AS INTEGER ) * - 62 THEN + 18 * - 58 ELSE NULL END + + - NULLIF ( CASE + - 44 WHEN + 9 / ( + 95 ) * - 16 * + 32 THEN SUM ( DISTINCT + 71 ) * - SUM ( ALL - 13 ) + + 90 * + - MIN ( CAST ( + 15 AS INTEGER ) ) END, + 88 * + 83 ) AS col1, - 30 + - COUNT ( * )
----
NULL
-31

query I rowsort
SELECT - 78 * + 36 + - COALESCE ( 92, 93 ) AS col0
----
-2900

query I rowsort
SELECT 86 + + - 21
----
65

query II rowsort
SELECT ALL - - 58 * 75, + 69 AS col0
----
4350
69

onlyif mysql # aggregate syntax: 
query I rowsort label-441
SELECT - MIN( DISTINCT - - 8 ) + - 51 col0
----
-59

skipif mysql # not compatible
query I rowsort label-441
SELECT - MIN ( DISTINCT - - 8 ) + - 51 col0
----
-59

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-442
SELECT - 5 DIV + 78 AS col0, + 52 col0, + CASE - COALESCE ( + COUNT( * ), + - 80 + - 79, + 11 + - 10 DIV 32 - - COUNT( * ) ) WHEN - COUNT( * ) * + 47 THEN - AVG ( DISTINCT 32 ) ELSE NULL END col0
----
0
52
NULL

skipif mysql # not compatible
query III rowsort label-442
SELECT - 5 / + 78 AS col0, + 52 col0, + CASE - COALESCE ( + COUNT ( * ), + - 80 + - 79, + 11 + - 10 / 32 - - COUNT ( * ) ) WHEN - COUNT ( * ) * + 47 THEN - AVG ( DISTINCT 32 ) ELSE NULL END col0
----
0
52
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-443
SELECT DISTINCT + ( - 57 ) AS col1, + 20 * + + 78 * + 5 + 77 - + - 49 + + + CASE - + 75 WHEN - CAST( NULL AS SIGNED ) + + 81 THEN - 92 / + COUNT( * ) END
----
-57
NULL

skipif mysql # not compatible
query II rowsort label-443
SELECT DISTINCT + ( - 57 ) AS col1, + 20 * + + 78 * + 5 + 77 - + - 49 + + + CASE - + 75 WHEN - CAST ( NULL AS INTEGER ) + + 81 THEN - 92 / + COUNT ( * ) END
----
-57
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-444
SELECT - NULLIF ( - 32, 25 * + COUNT( * ) + - 25 )
----
32

skipif mysql # not compatible
query I rowsort label-444
SELECT - NULLIF ( - 32, 25 * + COUNT ( * ) + - 25 )
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-445
SELECT ALL + COUNT( - 93 ) DIV - 44
----
0

skipif mysql # not compatible
query I rowsort label-445
SELECT ALL + COUNT ( - 93 ) / - 44
----
0

query I rowsort
SELECT DISTINCT - 71 + - 47 AS col1
----
-118

onlyif mysql # aggregate syntax: 
query I rowsort label-447
SELECT SUM( DISTINCT - + ( + 94 ) ) AS col0
----
-94

skipif mysql # not compatible
query I rowsort label-447
SELECT SUM ( DISTINCT - + ( + 94 ) ) AS col0
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-448
SELECT DISTINCT + - MAX( + 95 ) + + 61
----
-34

skipif mysql # not compatible
query I rowsort label-448
SELECT DISTINCT + - MAX ( + 95 ) + + 61
----
-34

query I rowsort
SELECT 68 - - 33
----
101

query I rowsort
SELECT 27 * + + 25 * + 59
----
39825

query I rowsort
SELECT DISTINCT 54 * + - 60
----
-3240

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

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

query II rowsort
SELECT ALL 89 * - ( - + 10 ) AS col0, 80 AS col2
----
890
80

query I rowsort
SELECT 23 * - 64
----
-1472

onlyif mysql # aggregate syntax: 
query I rowsort label-455
SELECT ALL - 87 + 48 * COUNT( * )
----
-39

skipif mysql # not compatible
query I rowsort label-455
SELECT ALL - 87 + 48 * COUNT ( * )
----
-39

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

query I rowsort
SELECT DISTINCT - 78 * + 90
----
-7020

query I rowsort
SELECT 13 + + - 16
----
-3

query I rowsort
SELECT 49 * + 34
----
1666

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

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

query II rowsort
SELECT 57 AS col1, + ( + 76 )
----
57
76

query I rowsort
SELECT 39 + 70 AS col2
----
109

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-463
SELECT ALL CAST( NULL AS DECIMAL ) - + 51 / - - 97 - + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-463
SELECT ALL CAST ( NULL AS REAL ) - + 51 / - - 97 - + COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT 75 * - + 2
----
-150

onlyif mysql # aggregate syntax: 
query I rowsort label-465
SELECT COUNT( DISTINCT - 81 ) + - 79 * + ( + 2 ) AS col2
----
-157

skipif mysql # not compatible
query I rowsort label-465
SELECT COUNT ( DISTINCT - 81 ) + - 79 * + ( + 2 ) AS col2
----
-157

onlyif mysql # aggregate syntax: 
query I rowsort label-466
SELECT ALL MAX( ALL 66 ) - + + 44 AS col1
----
22

skipif mysql # not compatible
query I rowsort label-466
SELECT ALL MAX ( ALL 66 ) - + + 44 AS col1
----
22

query II rowsort
SELECT DISTINCT 95 AS col1, + 33
----
95
33

query I rowsort
SELECT ALL NULLIF ( 61, - 52 ) * + - 66 AS col2
----
-4026

query I rowsort
SELECT ( - ( + 95 ) ) + - 10 * - 47 col0
----
375

query I rowsort
SELECT 74 * + 85 AS col1
----
6290

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-471
SELECT ALL 80 * - CASE 42 WHEN - COUNT( * ) THEN + 56 WHEN - 33 * 37 + 63 THEN NULL ELSE CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-471
SELECT ALL 80 * - CASE 42 WHEN - COUNT ( * ) THEN + 56 WHEN - 33 * 37 + 63 THEN NULL ELSE CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-472
SELECT - 37 + + ( - ( - 74 ) ) * - - COUNT( * )
----
37

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

query I rowsort
SELECT ALL 6 * + + 60 AS col0
----
360

query I rowsort
SELECT - 76 * - 54 + - 10 * - 63 * - 75
----
-43146

onlyif mysql # aggregate syntax: 
query II rowsort label-475
SELECT DISTINCT 64 * + COALESCE ( + - 72, + 80 + - - 18, COUNT( * ), + 1 + - - 46 * - 52 ) * 36 * - - CASE + COALESCE ( 95, + - COUNT( DISTINCT - + 9 ) + COUNT( * ), - 4 / + 17 + - - 18 ) WHEN - 13 THEN + + 37 WHEN - 22 THEN NULL END - + 96 * + + ( - + NULLIF ( - ( - 20 ), - + 71 ) ), 52 AS col0
----
NULL
52

skipif mysql # not compatible
query II rowsort label-475
SELECT DISTINCT 64 * + COALESCE ( + - 72, + 80 + - - 18, COUNT ( * ), + 1 + - - 46 * - 52 ) * 36 * - - CASE + COALESCE ( 95, + - COUNT ( DISTINCT - + 9 ) + COUNT ( * ), - 4 / + 17 + - - 18 ) WHEN - 13 THEN + + 37 WHEN - 22 THEN NULL END - + 96 * + + ( - + NULLIF ( - ( - 20 ), - + 71 ) ), 52 AS col0
----
NULL
52

query I rowsort
SELECT + 3 + + NULLIF ( - + 9, - + 6 ) AS col0
----
-6

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-478
SELECT + ( 76 ) * - 77 + + CAST( + COALESCE ( 53, + COALESCE ( 40, + + CASE - CASE 80 WHEN + 18 THEN - - COUNT( * ) WHEN + ( - + COUNT( * ) ) + - + 82 + - - ( 11 ) - + MIN( + - 87 ) / - COUNT( * ) - 38 / COALESCE ( + - 87, - - 41, + + 28 * - ( - 10 ) ) * NULLIF ( + - 14, + COUNT( * ) * + 35 ) * - 35 THEN NULL END WHEN - 5 THEN + 33 END, - 77 + 16 + - COUNT( * ) / + 98 ) * - CAST( - 32 AS SIGNED ) - - 32 * + + 63 + 22, - ( - 78 ), - 39 / - MAX( 61 * + 46 ) + CAST( NULL AS SIGNED ) / COUNT( * ) ) AS SIGNED ) AS col1
----
-5799

skipif mysql # not compatible
query I rowsort label-478
SELECT + ( 76 ) * - 77 + + CAST ( + COALESCE ( 53, + COALESCE ( 40, + + CASE - CASE 80 WHEN + 18 THEN - - COUNT ( * ) WHEN + ( - + COUNT ( * ) ) + - + 82 + - - ( 11 ) - + MIN ( + - 87 ) / - COUNT ( * ) - 38 / COALESCE ( + - 87, - - 41, + + 28 * - ( - 10 ) ) * NULLIF ( + - 14, + COUNT ( * ) * + 35 ) * - 35 THEN NULL END WHEN - 5 THEN + 33 END, - 77 + 16 + - COUNT ( * ) / + 98 ) * - CAST ( - 32 AS INTEGER ) - - 32 * + + 63 + 22, - ( - 78 ), - 39 / - MAX ( 61 * + 46 ) + CAST ( NULL AS INTEGER ) / COUNT ( * ) ) AS INTEGER ) AS col1
----
-5799

query II rowsort
SELECT DISTINCT 19 col0, - 86
----
19
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-480
SELECT ALL 95 + COUNT( * )
----
96

skipif mysql # not compatible
query I rowsort label-480
SELECT ALL 95 + COUNT ( * )
----
96

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-482
SELECT ALL - - 63 DIV - 24
----
-2

skipif mysql # not compatible
query I rowsort label-482
SELECT ALL - - 63 / - 24
----
-2

query I rowsort
SELECT 3 * 97 col2
----
291

query I rowsort
SELECT DISTINCT - 41 + - - 65
----
24

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-486
SELECT ALL + + 51 + - + 85 + - - 59 * ( 54 ) DIV + 92 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-486
SELECT ALL + + 51 + - + 85 + - - 59 * ( 54 ) / + 92 AS col0
----
0

query I rowsort
SELECT ALL - - 88 * ( + ( ( - 21 ) ) )
----
-1848

onlyif mysql # DIV for integer division: 
query I rowsort label-488
SELECT + 75 DIV + 31
----
2

skipif mysql # not compatible
query I rowsort label-488
SELECT + 75 / + 31
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-489
SELECT ALL - - 97 * 4 DIV + - 98 + + + 77
----
74

skipif mysql # not compatible
query I rowsort label-489
SELECT ALL - - 97 * 4 / + - 98 + + + 77
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-490
SELECT - 67 * + - COUNT( ALL - - 47 ) - + 39 + 93
----
121

skipif mysql # not compatible
query I rowsort label-490
SELECT - 67 * + - COUNT ( ALL - - 47 ) - + 39 + 93
----
121

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-491
SELECT ALL + 19 * + - COALESCE ( + 69, + + 53 ) + + + COUNT( * ) * - ( COALESCE ( - 51, CASE + + 76 WHEN + + 52 THEN NULL WHEN 16 THEN 44 ELSE NULL END, + + CAST( NULL AS DECIMAL ) ) ) * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-491
SELECT ALL + 19 * + - COALESCE ( + 69, + + 53 ) + + + COUNT ( * ) * - ( COALESCE ( - 51, CASE + + 76 WHEN + + 52 THEN NULL WHEN 16 THEN 44 ELSE NULL END, + + CAST ( NULL AS REAL ) ) ) * + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-492
SELECT - 83 * - - 13 * + COUNT( * )
----
-1079

skipif mysql # not compatible
query I rowsort label-492
SELECT - 83 * - - 13 * + COUNT ( * )
----
-1079

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-493
SELECT COUNT( * ) DIV + 36 + COUNT( DISTINCT 13 ) * 35
----
35

skipif mysql # not compatible
query I rowsort label-493
SELECT COUNT ( * ) / + 36 + COUNT ( DISTINCT 13 ) * 35
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-494
SELECT ALL + CASE + 56 WHEN - - 67 + - - 22 THEN + ( + + 64 ) * 27 + COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-494
SELECT ALL + CASE + 56 WHEN - - 67 + - - 22 THEN + ( + + 64 ) * 27 + COUNT ( * ) END AS col0
----
NULL

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

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

query I rowsort
SELECT COALESCE ( - 71, 47 - + 83, ( + + 82 ), - 42 ) AS col2
----
-71

query II rowsort
SELECT - 52 * + 45 AS col2, 56 / + CASE - + 15 WHEN - - 20 THEN + + ( - - 14 ) * 18 WHEN + 39 * + + ( - 30 ) + + 92 / + 13 THEN NULL END
----
-2340
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-498
SELECT MAX( DISTINCT + - 81 ) AS col0, COUNT( * )
----
-81
1

skipif mysql # not compatible
query II rowsort label-498
SELECT MAX ( DISTINCT + - 81 ) AS col0, COUNT ( * )
----
-81
1

onlyif mysql # aggregate syntax: 
query I rowsort label-499
SELECT + 49 * + - 98 + + 52 - SUM( ALL + 77 )
----
-4827

skipif mysql # not compatible
query I rowsort label-499
SELECT + 49 * + - 98 + + 52 - SUM ( ALL + 77 )
----
-4827

query I rowsort
SELECT DISTINCT + 84 * - ( - 80 ) - + 83 * + 18
----
5226

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-501
SELECT ALL - CASE + 29 WHEN - - COALESCE ( 16, + 92, - 4 ) + + 9 THEN NULL WHEN + 83 - - - CASE + CAST( NULL AS SIGNED ) WHEN + + 38 THEN 4 WHEN + 47 THEN NULL WHEN COUNT( * ) THEN - ( - + 79 ) * + - 25 END * + + 10 THEN MAX( DISTINCT + 99 ) ELSE NULL END * + 22 - + + 80
----
NULL

skipif mysql # not compatible
query I rowsort label-501
SELECT ALL - CASE + 29 WHEN - - COALESCE ( 16, + 92, - 4 ) + + 9 THEN NULL WHEN + 83 - - - CASE + CAST ( NULL AS INTEGER ) WHEN + + 38 THEN 4 WHEN + 47 THEN NULL WHEN COUNT ( * ) THEN - ( - + 79 ) * + - 25 END * + + 10 THEN MAX ( DISTINCT + 99 ) ELSE NULL END * + 22 - + + 80
----
NULL

query I rowsort
SELECT - 22 * - + 27 col2
----
594

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-504
SELECT MIN( DISTINCT - - 74 ) AS col1
----
74

skipif mysql # not compatible
query I rowsort label-504
SELECT MIN ( DISTINCT - - 74 ) AS col1
----
74

query I rowsort
SELECT ALL - 30 * 83 * + 76 AS col2
----
-189240

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-506
SELECT - 86 * + - CAST( 17 AS SIGNED )
----
1462

skipif mysql # not compatible
query I rowsort label-506
SELECT - 86 * + - CAST ( 17 AS INTEGER )
----
1462

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-508
SELECT + + 8 DIV + COUNT( + + 87 ) AS col1
----
8

skipif mysql # not compatible
query I rowsort label-508
SELECT + + 8 / + COUNT ( + + 87 ) AS col1
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-509
SELECT + 96 DIV + 77
----
1

skipif mysql # not compatible
query I rowsort label-509
SELECT + 96 / + 77
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-510
SELECT ALL SUM( - - 48 ) + - ( 79 ) AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-510
SELECT ALL SUM ( - - 48 ) + - ( 79 ) AS col1
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-511
SELECT + 54 + - + MAX( - 34 ) * - 5 AS col1
----
-116

skipif mysql # not compatible
query I rowsort label-511
SELECT + 54 + - + MAX ( - 34 ) * - 5 AS col1
----
-116

onlyif mysql # DIV for integer division: 
query I rowsort label-512
SELECT + + 82 DIV 79
----
1

skipif mysql # not compatible
query I rowsort label-512
SELECT + + 82 / 79
----
1

query I rowsort
SELECT + + 76 + + 94 col1
----
170

onlyif mysql # aggregate syntax: 
query I rowsort label-514
SELECT ALL COUNT( * ) * 99 * + 81
----
8019

skipif mysql # not compatible
query I rowsort label-514
SELECT ALL COUNT ( * ) * 99 * + 81
----
8019

onlyif mysql # aggregate syntax: 
query I rowsort label-515
SELECT - - 1 + NULLIF ( + 55, MAX( + 55 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-515
SELECT - - 1 + NULLIF ( + 55, MAX ( + 55 ) )
----
NULL

query I rowsort
SELECT ALL - 37 + + 93
----
56

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

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

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

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

query I rowsort
SELECT ALL 82 + + 69 + - 70 - + 29
----
52

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

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

query I rowsort
SELECT ALL - 55 + - 48 col0
----
-103

query I rowsort
SELECT ALL + ( + + 8 ) * - 95 * - - 25 AS col0
----
-19000

onlyif mysql # aggregate syntax: 
query I rowsort label-523
SELECT + 83 * + 69 * - NULLIF ( - MIN( DISTINCT - 97 ), - 78 ) * + ( 4 )
----
-2222076

skipif mysql # not compatible
query I rowsort label-523
SELECT + 83 * + 69 * - NULLIF ( - MIN ( DISTINCT - 97 ), - 78 ) * + ( 4 )
----
-2222076

query I rowsort
SELECT - 89 * + + 38 * - 98
----
331436

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-526
SELECT ALL + ( + - 74 ) DIV + - 53 - + + 78 AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-526
SELECT ALL + ( + - 74 ) / + - 53 - + + 78 AS col0
----
-77

query I rowsort
SELECT ALL + 33 * - 37 AS col0
----
-1221

query II rowsort
SELECT ALL + 3, + 22 col0
----
3
22

query I rowsort
SELECT 24 * 27 - - 56
----
704

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-530
SELECT ALL + ( + CAST( - 43 AS SIGNED ) ) AS col2, 16
----
-43
16

skipif mysql # not compatible
query II rowsort label-530
SELECT ALL + ( + CAST ( - 43 AS INTEGER ) ) AS col2, 16
----
-43
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-531
SELECT ALL - 7 DIV + COALESCE ( + CAST( NULL AS SIGNED ), - - COUNT( * ) * - + 92 ) - - 8
----
8

skipif mysql # not compatible
query I rowsort label-531
SELECT ALL - 7 / + COALESCE ( + CAST ( NULL AS INTEGER ), - - COUNT ( * ) * - + 92 ) - - 8
----
8

query I rowsort
SELECT DISTINCT + 16 * - - 83
----
1328

query I rowsort
SELECT - 99 * + 35 * 77 AS col2
----
-266805

query I rowsort
SELECT DISTINCT - 52 * + - 35 AS col0
----
1820

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-535
SELECT - NULLIF ( 4, - - 69 ) * + + 3 * + 17 + + ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-535
SELECT - NULLIF ( 4, - - 69 ) * + + 3 * + 17 + + ( + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-536
SELECT - 45 + - 89 * - + 56 - + MIN( ALL + 5 ) + COUNT( * ) AS col0, + CAST( NULL AS SIGNED )
----
4935
NULL

skipif mysql # not compatible
query II rowsort label-536
SELECT - 45 + - 89 * - + 56 - + MIN ( ALL + 5 ) + COUNT ( * ) AS col0, + CAST ( NULL AS INTEGER )
----
4935
NULL

query I rowsort
SELECT - 63 * + + 33
----
-2079

onlyif mysql # aggregate syntax: 
query I rowsort label-538
SELECT COALESCE ( MAX( DISTINCT 36 ), 8 * ( - ( - COUNT( * ) ) ) - + + 97 ) AS col1
----
36

skipif mysql # not compatible
query I rowsort label-538
SELECT COALESCE ( MAX ( DISTINCT 36 ), 8 * ( - ( - COUNT ( * ) ) ) - + + 97 ) AS col1
----
36

onlyif mysql # aggregate syntax: 
query II rowsort label-539
SELECT DISTINCT + 34 AS col2, ( + - 81 ) / - ( - + 38 ) + + - COUNT( * ) + - CASE 70 WHEN - + 47 THEN + 31 * + 28 / + ( + + COALESCE ( COALESCE ( - 76, - 43, 93 ), - COUNT( * ) ) ) + + + 25 * - - 87 WHEN - + 23 THEN NULL ELSE NULL END AS col0
----
34
NULL

skipif mysql # not compatible
query II rowsort label-539
SELECT DISTINCT + 34 AS col2, ( + - 81 ) / - ( - + 38 ) + + - COUNT ( * ) + - CASE 70 WHEN - + 47 THEN + 31 * + 28 / + ( + + COALESCE ( COALESCE ( - 76, - 43, 93 ), - COUNT ( * ) ) ) + + + 25 * - - 87 WHEN - + 23 THEN NULL ELSE NULL END AS col0
----
34
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-540
SELECT DISTINCT + - ( - + MAX( ALL - 30 ) ) AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-540
SELECT DISTINCT + - ( - + MAX ( ALL - 30 ) ) AS col0
----
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-541
SELECT ALL + 30, + COUNT( * ) DIV + - 68 AS col0
----
30
0

skipif mysql # not compatible
query II rowsort label-541
SELECT ALL + 30, + COUNT ( * ) / + - 68 AS col0
----
30
0

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-543
SELECT + 37 col2, + COUNT( * ) + NULLIF ( - 40, - + 5 ) * - 16 + + + 2 DIV + + ( 72 ) * - 60 * + 12
----
37
641

skipif mysql # not compatible
query II rowsort label-543
SELECT + 37 col2, + COUNT ( * ) + NULLIF ( - 40, - + 5 ) * - 16 + + + 2 / + + ( 72 ) * - 60 * + 12
----
37
641

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-544
SELECT ALL ( - 91 ) * CAST( 22 AS SIGNED ) + - 53 col2, + 5 - COUNT( * ) AS col0
----
-2055
4

skipif mysql # not compatible
query II rowsort label-544
SELECT ALL ( - 91 ) * CAST ( 22 AS INTEGER ) + - 53 col2, + 5 - COUNT ( * ) AS col0
----
-2055
4

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

skipif mysql # not compatible
query I rowsort label-545
SELECT - + MAX ( 26 )
----
-26

query I rowsort
SELECT ALL COALESCE ( + + 73, - - 74 )
----
73

query II rowsort
SELECT DISTINCT 65, - 5 AS col0
----
65
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-548
SELECT + + 72 + - MIN( 38 ) AS col2
----
34

skipif mysql # not compatible
query I rowsort label-548
SELECT + + 72 + - MIN ( 38 ) AS col2
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-549
SELECT - 83 - 55 * 91 * - COUNT( * ) AS col0
----
4922

skipif mysql # not compatible
query I rowsort label-549
SELECT - 83 - 55 * 91 * - COUNT ( * ) AS col0
----
4922

query I rowsort
SELECT DISTINCT - + 67 + 12
----
-55

query II rowsort
SELECT 36 col2, + ( - + 93 ) + 8
----
36
-85

query I rowsort
SELECT 81 + 39 AS col1
----
120

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-553
SELECT DISTINCT + COUNT( * ) DIV - + 20 * - 69 col2, 98
----
0
98

skipif mysql # not compatible
query II rowsort label-553
SELECT DISTINCT + COUNT ( * ) / - + 20 * - 69 col2, 98
----
0
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-554
SELECT ALL - 15 DIV + CAST( + MAX( + 50 ) AS SIGNED ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-554
SELECT ALL - 15 / + CAST ( + MAX ( + 50 ) AS INTEGER ) AS col1
----
0

query I rowsort
SELECT + 63 + 87
----
150

query I rowsort
SELECT + 33 - - 3
----
36

query I rowsort
SELECT DISTINCT 95 * + 27
----
2565

onlyif mysql # aggregate syntax: 
query I rowsort label-558
SELECT 13 + + + 65 - - COUNT( * ) * - 12 + + 9
----
75

skipif mysql # not compatible
query I rowsort label-558
SELECT 13 + + + 65 - - COUNT ( * ) * - 12 + + 9
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-559
SELECT 29 + - COUNT( + - 7 ) + 44 * + 66
----
2932

skipif mysql # not compatible
query I rowsort label-559
SELECT 29 + - COUNT ( + - 7 ) + 44 * + 66
----
2932

onlyif mysql # aggregate syntax: 
query I rowsort label-560
SELECT COUNT( * ) * 3 * 74 * + 33 AS col0
----
7326

skipif mysql # not compatible
query I rowsort label-560
SELECT COUNT ( * ) * 3 * 74 * + 33 AS col0
----
7326

query II rowsort
SELECT + 16, 28 AS col1
----
16
28

onlyif mysql # aggregate syntax: 
query II rowsort label-562
SELECT ALL - 77 AS col0, + 71 * COUNT( * )
----
-77
71

skipif mysql # not compatible
query II rowsort label-562
SELECT ALL - 77 AS col0, + 71 * COUNT ( * )
----
-77
71

onlyif mysql # aggregate syntax: 
query I rowsort label-563
SELECT 29 * COUNT( * ) + + 23 AS col2
----
52

skipif mysql # not compatible
query I rowsort label-563
SELECT 29 * COUNT ( * ) + + 23 AS col2
----
52

onlyif mysql # aggregate syntax: 
query II rowsort label-564
SELECT ALL - 19, + COUNT( * ) + + - 7 + 34 * 74 AS col1
----
-19
2510

skipif mysql # not compatible
query II rowsort label-564
SELECT ALL - 19, + COUNT ( * ) + + - 7 + 34 * 74 AS col1
----
-19
2510

query II rowsort
SELECT 97, 17 col1
----
97
17

query I rowsort
SELECT 77 * + 87
----
6699

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

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

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

skipif mysql # not compatible
query I rowsort label-568
SELECT ALL 57 / - COUNT ( + 82 )
----
-57

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-569
SELECT CAST( - 20 AS SIGNED ) DIV + 10
----
-2

skipif mysql # not compatible
query I rowsort label-569
SELECT CAST ( - 20 AS INTEGER ) / + 10
----
-2

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-570
SELECT DISTINCT + 85 + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-570
SELECT DISTINCT + 85 + CAST ( NULL AS REAL ) AS col0
----
NULL

query II rowsort
SELECT 24, 97 * - 27 AS col2
----
24
-2619

onlyif mysql # DIV for integer division: 
query II rowsort label-572
SELECT DISTINCT - 35 AS col0, 29 DIV + 24 AS col0
----
-35
1

skipif mysql # not compatible
query II rowsort label-572
SELECT DISTINCT - 35 AS col0, 29 / + 24 AS col0
----
-35
1

query I rowsort
SELECT ALL + 67 + + 83 + ( + NULLIF ( 93, - ( - 38 ) / + 63 ) )
----
243

onlyif mysql # aggregate syntax: 
query II rowsort label-574
SELECT DISTINCT - COUNT( * ) AS col1, 84 * + + 10 * + COUNT( * ) * ( + - 18 ) * - 91 AS col0
----
-1
1375920

skipif mysql # not compatible
query II rowsort label-574
SELECT DISTINCT - COUNT ( * ) AS col1, 84 * + + 10 * + COUNT ( * ) * ( + - 18 ) * - 91 AS col0
----
-1
1375920

query II rowsort
SELECT ALL - + 95, - 95 * - - 37 AS col2
----
-95
-3515

query I rowsort
SELECT ALL + 37 + ( - - 21 ) + + + 98
----
156

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

onlyif mysql # aggregate syntax: 
query I rowsort label-578
SELECT ALL + CASE + MAX( - ( + 5 ) ) WHEN + 64 * - ( 98 ) * 80 THEN NULL ELSE + 93 END + - 53
----
40

skipif mysql # not compatible
query I rowsort label-578
SELECT ALL + CASE + MAX ( - ( + 5 ) ) WHEN + 64 * - ( 98 ) * 80 THEN NULL ELSE + 93 END + - 53
----
40

query I rowsort
SELECT + NULLIF ( - 4, - 78 )
----
-4

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-581
SELECT ( 42 ) DIV - 53 * 43, 66 + + + 56 col1
----
0
122

skipif mysql # not compatible
query II rowsort label-581
SELECT ( 42 ) / - 53 * 43, 66 + + + 56 col1
----
0
122

query II rowsort
SELECT - 66 col1, + 65 AS col1
----
-66
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-583
SELECT ALL 88, 32 + + CAST( + - COUNT( * ) AS SIGNED ) + - + 8 AS col2
----
88
23

skipif mysql # not compatible
query II rowsort label-583
SELECT ALL 88, 32 + + CAST ( + - COUNT ( * ) AS INTEGER ) + - + 8 AS col2
----
88
23

query I rowsort
SELECT ALL - 21 + + 8 + 88 * 1
----
75

query I rowsort
SELECT - 72 - + ( + 31 ) AS col1
----
-103

query I rowsort
SELECT + 81 + 96 * - 46 AS col2
----
-4335

onlyif mysql # aggregate syntax: 
query II rowsort label-587
SELECT ALL - 60 - - ( + NULLIF ( + + 16, - + 25 ) ) + + + 56 col0, SUM( ALL + + 98 ) + + COALESCE ( + + NULLIF ( + 6, - - CASE + - 88 WHEN + 46 THEN - - 30 END ), - MAX( ALL 54 ), - - 57 ) * - 57 * + 60 AS col2
----
12
-20422

skipif mysql # not compatible
query II rowsort label-587
SELECT ALL - 60 - - ( + NULLIF ( + + 16, - + 25 ) ) + + + 56 col0, SUM ( ALL + + 98 ) + + COALESCE ( + + NULLIF ( + 6, - - CASE + - 88 WHEN + 46 THEN - - 30 END ), - MAX ( ALL 54 ), - - 57 ) * - 57 * + 60 AS col2
----
12
-20422

onlyif mysql # aggregate syntax: 
query I rowsort label-588
SELECT DISTINCT + + ( - 97 ) * COUNT( * ) + + 79 AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-588
SELECT DISTINCT + + ( - 97 ) * COUNT ( * ) + + 79 AS col2
----
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-589
SELECT + 21 * + + 15 + 96 + COUNT( DISTINCT 89 ) + 33 DIV - 42 * + ( + + 58 ) AS col2
----
412

skipif mysql # not compatible
query I rowsort label-589
SELECT + 21 * + + 15 + 96 + COUNT ( DISTINCT 89 ) + 33 / - 42 * + ( + + 58 ) AS col2
----
412

query I rowsort
SELECT ALL + 69 * - 29 col2
----
-2001

query II rowsort
SELECT ( + - 36 ), 52 AS col0
----
-36
52

onlyif mysql # aggregate syntax: 
query I rowsort label-592
SELECT - 30 + 86 * + SUM( DISTINCT 98 ) AS col2
----
8398

skipif mysql # not compatible
query I rowsort label-592
SELECT - 30 + 86 * + SUM ( DISTINCT 98 ) AS col2
----
8398

onlyif mysql # aggregate syntax: 
query I rowsort label-593
SELECT ALL COUNT( + + NULLIF ( - - 90, 26 ) )
----
1

skipif mysql # not compatible
query I rowsort label-593
SELECT ALL COUNT ( + + NULLIF ( - - 90, 26 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-594
SELECT MIN( ALL 68 ) + - 41 AS col2
----
27

skipif mysql # not compatible
query I rowsort label-594
SELECT MIN ( ALL 68 ) + - 41 AS col2
----
27

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-596
SELECT DISTINCT 41 DIV + + 83
----
0

skipif mysql # not compatible
query I rowsort label-596
SELECT DISTINCT 41 / + + 83
----
0

query II rowsort
SELECT ALL 76 * + 24 AS col0, 27
----
1824
27

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-598
SELECT 58 * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-598
SELECT 58 * - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-599
SELECT ALL - CAST( - 97 AS SIGNED ) DIV - 95 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-599
SELECT ALL - CAST ( - 97 AS INTEGER ) / - 95 AS col0
----
-1

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-601
SELECT - ( + - 74 ) DIV - 24 + + MAX( - 12 ) * 30 - + + 72 AS col1, 16 + + 81
----
-435
97

skipif mysql # not compatible
query II rowsort label-601
SELECT - ( + - 74 ) / - 24 + + MAX ( - 12 ) * 30 - + + 72 AS col1, 16 + + 81
----
-435
97

onlyif mysql # DIV for integer division: 
query I rowsort label-602
SELECT 77 DIV 99 * - - 23
----
0

skipif mysql # not compatible
query I rowsort label-602
SELECT 77 / 99 * - - 23
----
0

query II rowsort
SELECT ALL 40 * + 66 AS col2, 63
----
2640
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-604
SELECT 48 * NULLIF ( + + COALESCE ( - 44, - ( - - 20 ) * - NULLIF ( + 71, - + ( - CASE - 43 WHEN - 9 * 86 - + - AVG ( - ( 29 ) ) THEN - 49 END ) + - + CAST( + + 6 AS SIGNED ) - - 43 + + 32 * + CASE 42 WHEN - - 51 + 87 THEN 55 * 82 ELSE NULL END * + + CAST( NULL AS SIGNED ) ) ), + 26 * + 90 - - ( 65 ) ) * + 21 AS col0
----
-44352

skipif mysql # not compatible
query I rowsort label-604
SELECT 48 * NULLIF ( + + COALESCE ( - 44, - ( - - 20 ) * - NULLIF ( + 71, - + ( - CASE - 43 WHEN - 9 * 86 - + - AVG ( - ( 29 ) ) THEN - 49 END ) + - + CAST ( + + 6 AS INTEGER ) - - 43 + + 32 * + CASE 42 WHEN - - 51 + 87 THEN 55 * 82 ELSE NULL END * + + CAST ( NULL AS INTEGER ) ) ), + 26 * + 90 - - ( 65 ) ) * + 21 AS col0
----
-44352

query I rowsort
SELECT 83 * + + 46 * - - NULLIF ( + 30, - ( + 19 ) ) AS col1
----
114540

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-606
SELECT CAST( - ( - 72 ) AS SIGNED ) * 72 - 52 DIV + 33 col0
----
5183

skipif mysql # not compatible
query I rowsort label-606
SELECT CAST ( - ( - 72 ) AS INTEGER ) * 72 - 52 / + 33 col0
----
5183

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-607
SELECT ALL COUNT( * ) * + + ( + 55 ) + - + NULLIF ( 88, 0 * + NULLIF ( - 52, - 77 ) + 4 ) * - 96 * - SUM( - - 22 ) * - COALESCE ( + 91, 28 + + + 61, 97 ) + 51 * COALESCE ( - COUNT( * ), 73 * - CASE - 56 WHEN 76 + + - 90 THEN - CAST( NULL AS SIGNED ) DIV + 10 * + COALESCE ( COUNT( * ), 65 * - 79 + - 74 * 43 + + 48 * - 30 ) + - 50 + + 13 * ( + COUNT( * ) ) ELSE NULL END * + - 54, + 64 + + 28 ) DIV - 17 AS col1
----
16912954

skipif mysql # not compatible
query I rowsort label-607
SELECT ALL COUNT ( * ) * + + ( + 55 ) + - + NULLIF ( 88, 0 * + NULLIF ( - 52, - 77 ) + 4 ) * - 96 * - SUM ( - - 22 ) * - COALESCE ( + 91, 28 + + + 61, 97 ) + 51 * COALESCE ( - COUNT ( * ), 73 * - CASE - 56 WHEN 76 + + - 90 THEN - CAST ( NULL AS INTEGER ) / + 10 * + COALESCE ( COUNT ( * ), 65 * - 79 + - 74 * 43 + + 48 * - 30 ) + - 50 + + 13 * ( + COUNT ( * ) ) ELSE NULL END * + - 54, + 64 + + 28 ) / - 17 AS col1
----
16912954

onlyif mysql # aggregate syntax: 
query I rowsort label-608
SELECT 99 * - + SUM( ALL - + 49 ) - + SUM( 82 ) col0
----
4769

skipif mysql # not compatible
query I rowsort label-608
SELECT 99 * - + SUM ( ALL - + 49 ) - + SUM ( 82 ) col0
----
4769

onlyif mysql # aggregate syntax: 
query I rowsort label-609
SELECT ALL 80 * - NULLIF ( - + 6, + COUNT( * ) ) col0
----
480

skipif mysql # not compatible
query I rowsort label-609
SELECT ALL 80 * - NULLIF ( - + 6, + COUNT ( * ) ) col0
----
480

query II rowsort
SELECT DISTINCT 5 * + 54 + - 54 AS col2, + 41 AS col2
----
216
41

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

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

query II rowsort
SELECT DISTINCT 11 * 90 + + - 2 AS col0, 98
----
988
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-613
SELECT - ( - COUNT( * ) ) * + 44 - + 40 + + + 93 * CASE - 84 WHEN + 13 * - - 55 * - 68 / 15 * + COALESCE ( 63, - - 28 ) + 35 / + CAST( + + 37 AS SIGNED ) THEN NULL WHEN - + 68 THEN NULL ELSE 7 END + - COUNT( * )
----
654

skipif mysql # not compatible
query I rowsort label-613
SELECT - ( - COUNT ( * ) ) * + 44 - + 40 + + + 93 * CASE - 84 WHEN + 13 * - - 55 * - 68 / 15 * + COALESCE ( 63, - - 28 ) + 35 / + CAST ( + + 37 AS INTEGER ) THEN NULL WHEN - + 68 THEN NULL ELSE 7 END + - COUNT ( * )
----
654

query I rowsort
SELECT - 20 + - ( 12 ) + - - 31
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-615
SELECT - + 61 * 63 - + - 70 + - ( + MAX( DISTINCT - 15 ) ) + + 8, + 1 AS col1
----
-3750
1

skipif mysql # not compatible
query II rowsort label-615
SELECT - + 61 * 63 - + - 70 + - ( + MAX ( DISTINCT - 15 ) ) + + 8, + 1 AS col1
----
-3750
1

onlyif mysql # aggregate syntax: 
query I rowsort label-616
SELECT DISTINCT + COUNT( * ) * + - MAX( ALL - ( ( ( - 65 ) ) ) )
----
-65

skipif mysql # not compatible
query I rowsort label-616
SELECT DISTINCT + COUNT ( * ) * + - MAX ( ALL - ( ( ( - 65 ) ) ) )
----
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-617
SELECT - 3 DIV 70
----
0

skipif mysql # not compatible
query I rowsort label-617
SELECT - 3 / 70
----
0

query I rowsort
SELECT ALL 73 + - - 96
----
169

query I rowsort
SELECT + 43 * - 36 AS col0
----
-1548

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-620
SELECT ALL + - COALESCE ( - + CAST( NULL AS SIGNED ), MIN( DISTINCT NULLIF ( + 1, 12 - 75 ) ) ) - - COALESCE ( - - 80, + ( + 82 ) )
----
79

skipif mysql # not compatible
query I rowsort label-620
SELECT ALL + - COALESCE ( - + CAST ( NULL AS INTEGER ), MIN ( DISTINCT NULLIF ( + 1, 12 - 75 ) ) ) - - COALESCE ( - - 80, + ( + 82 ) )
----
79

query I rowsort
SELECT - + 32 * - ( - 98 ) + + 53
----
-3083

onlyif mysql # aggregate syntax: 
query I rowsort label-622
SELECT ALL + NULLIF ( + - 13, + - ( MAX( 70 ) ) )
----
-13

skipif mysql # not compatible
query I rowsort label-622
SELECT ALL + NULLIF ( + - 13, + - ( MAX ( 70 ) ) )
----
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-623
SELECT ALL + + CASE - 49 WHEN + - COUNT( + 90 ) THEN - 54 END, NULLIF ( 82, 27 * - COUNT( * ) * - + 59 ) * - 0 AS col1
----
NULL
0

skipif mysql # not compatible
query II rowsort label-623
SELECT ALL + + CASE - 49 WHEN + - COUNT ( + 90 ) THEN - 54 END, NULLIF ( 82, 27 * - COUNT ( * ) * - + 59 ) * - 0 AS col1
----
NULL
0

query I rowsort
SELECT + - 70 + 81 AS col1
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-625
SELECT - + MAX( DISTINCT - - 14 ) * - 90 + COUNT( * ) * 52 * - + 68 + - ( + 65 ) - + - CASE + AVG ( ALL - 68 ) WHEN 19 THEN 74 - - 93 ELSE 63 END * COUNT( * ) col0
----
-2278

skipif mysql # not compatible
query I rowsort label-625
SELECT - + MAX ( DISTINCT - - 14 ) * - 90 + COUNT ( * ) * 52 * - + 68 + - ( + 65 ) - + - CASE + AVG ( ALL - 68 ) WHEN 19 THEN 74 - - 93 ELSE 63 END * COUNT ( * ) col0
----
-2278

query II rowsort
SELECT DISTINCT 57 * 10, 82 AS col0
----
570
82

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-627
SELECT + 32 + - CASE + + 2 WHEN + + 17 THEN - CAST( - + 50 AS SIGNED ) WHEN + - 76 THEN - ( - + 45 ) ELSE + 38 END AS col0, CAST( + + 47 AS SIGNED ) col0
----
-6
47

skipif mysql # not compatible
query II rowsort label-627
SELECT + 32 + - CASE + + 2 WHEN + + 17 THEN - CAST ( - + 50 AS INTEGER ) WHEN + - 76 THEN - ( - + 45 ) ELSE + 38 END AS col0, CAST ( + + 47 AS INTEGER ) col0
----
-6
47

onlyif mysql # aggregate syntax: 
query II rowsort label-628
SELECT - 19 + + 84 col1, + SUM( + + 81 ) + - + 23
----
65
58

skipif mysql # not compatible
query II rowsort label-628
SELECT - 19 + + 84 col1, + SUM ( + + 81 ) + - + 23
----
65
58

query II rowsort
SELECT ALL 50 AS col1, - 41
----
50
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-630
SELECT - 30 + - 74 + + 14 DIV + MIN( ALL + 33 ) * - 27 AS col2
----
-104

skipif mysql # not compatible
query I rowsort label-630
SELECT - 30 + - 74 + + 14 / + MIN ( ALL + 33 ) * - 27 AS col2
----
-104

query I rowsort
SELECT ALL - 2 * + - ( + + 8 ) AS col0
----
16

query II rowsort
SELECT 22 AS col0, ( + 74 ) * - 25 + 80 - 83 + + - ( - 52 ) - - 26 * 72 AS col2
----
22
71

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

query I rowsort
SELECT DISTINCT - 84 * - 49 AS col1
----
4116

query I rowsort
SELECT DISTINCT CASE - ( 2 ) WHEN + 11 THEN - - 98 * - 78 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-636
SELECT - 70 + + 2 + + 92 * + 62 AS col0, + 99 + - + 68 AS col0, + 29 / + ( - 5 ) / - COUNT( - 28 ) + 66 - - - CAST( NULL AS SIGNED )
----
5636
31
NULL

skipif mysql # not compatible
query III rowsort label-636
SELECT - 70 + + 2 + + 92 * + 62 AS col0, + 99 + - + 68 AS col0, + 29 / + ( - 5 ) / - COUNT ( - 28 ) + 66 - - - CAST ( NULL AS INTEGER )
----
5636
31
NULL

query II rowsort
SELECT - 76 - - + ( 71 ) AS col0, 33
----
-5
33

onlyif mysql # aggregate syntax: 
query I rowsort label-638
SELECT DISTINCT - 93 * - + MIN( DISTINCT + 3 ) AS col2
----
279

skipif mysql # not compatible
query I rowsort label-638
SELECT DISTINCT - 93 * - + MIN ( DISTINCT + 3 ) AS col2
----
279

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

skipif mysql # not compatible
query I rowsort label-639
SELECT - COUNT ( * ) + - 48 AS col2
----
-49

query I rowsort
SELECT - ( - 87 ) + - - 25 + - 92
----
20

query I rowsort
SELECT + 28 * 1 AS col0
----
28

query I rowsort
SELECT ALL - 66 + - + 71 AS col0
----
-137

query I rowsort
SELECT - 40 + 90
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-644
SELECT CAST( NULL AS SIGNED ) * - 1 + + 32 - - + 66 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-644
SELECT CAST ( NULL AS INTEGER ) * - 1 + + 32 - - + 66 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-645
SELECT ALL 7 * + + COALESCE ( - 41, - COALESCE ( + 3, - 47, - - COALESCE ( 71, + CASE 65 WHEN 24 THEN NULL WHEN 48 THEN NULL ELSE - 94 END + 59, 88 DIV - - COUNT( * ) * 65 * - 44 - - 1 * - - 7 + 81 ) ) * + 5 - - 8 + - 6 + + ( - 87 ), - 19 ) + + 17 + + + 78 + COUNT( * ) * 70 * + 66 col0
----
4428

skipif mysql # not compatible
query I rowsort label-645
SELECT ALL 7 * + + COALESCE ( - 41, - COALESCE ( + 3, - 47, - - COALESCE ( 71, + CASE 65 WHEN 24 THEN NULL WHEN 48 THEN NULL ELSE - 94 END + 59, 88 / - - COUNT ( * ) * 65 * - 44 - - 1 * - - 7 + 81 ) ) * + 5 - - 8 + - 6 + + ( - 87 ), - 19 ) + + 17 + + + 78 + COUNT ( * ) * 70 * + 66 col0
----
4428

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

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

query I rowsort
SELECT + 60 + 55
----
115

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-650
SELECT - CASE WHEN NOT 30 IN ( - COUNT( * ) * + 52 * + 51 * - 17, - 9 / - COUNT( * ) / - 1 + CAST( + + COUNT( * ) AS SIGNED ) + - 83 + - + ( - 81 ), COUNT( * ), + 12, - ( + CAST( 49 AS SIGNED ) ) * + 32 - - + 56, + CAST( NULL AS DECIMAL ) ) THEN - 97 + - 41 ELSE - + COUNT( * ) END * + + 30 + - COUNT( * ), 18 col1
----
29
18

skipif mysql # not compatible
query II rowsort label-650
SELECT - CASE WHEN NOT 30 IN ( - COUNT ( * ) * + 52 * + 51 * - 17, - 9 / - COUNT ( * ) / - 1 + CAST ( + + COUNT ( * ) AS INTEGER ) + - 83 + - + ( - 81 ), COUNT ( * ), + 12, - ( + CAST ( 49 AS INTEGER ) ) * + 32 - - + 56, + CAST ( NULL AS REAL ) ) THEN - 97 + - 41 ELSE - + COUNT ( * ) END * + + 30 + - COUNT ( * ), 18 col1
----
29
18

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-652
SELECT + CASE - + 30 WHEN - 32 THEN COALESCE ( + 62, + + ( 1 ) * + CAST( + - 47 AS SIGNED ) ) * + 6 ELSE - SUM( DISTINCT + 90 ) DIV + ( + - 61 ) + - 20 + - ( + 39 ) * + 30 * 18 + + 55 * - 91 + - - 49 END
----
-26035

skipif mysql # not compatible
query I rowsort label-652
SELECT + CASE - + 30 WHEN - 32 THEN COALESCE ( + 62, + + ( 1 ) * + CAST ( + - 47 AS INTEGER ) ) * + 6 ELSE - SUM ( DISTINCT + 90 ) / + ( + - 61 ) + - 20 + - ( + 39 ) * + 30 * 18 + + 55 * - 91 + - - 49 END
----
-26035

query I rowsort
SELECT + - 74 * + - 33 AS col2
----
2442

query I rowsort
SELECT DISTINCT + - 2 col2
----
-2

query I rowsort
SELECT ALL + 49 * + 12 * 36 - + NULLIF ( ( - 48 ), 19 ) AS col0
----
21216

query I rowsort
SELECT + 20 - 54 AS col2
----
-34

query I rowsort
SELECT DISTINCT + + CASE 43 WHEN + + 95 - + 50 / - 66 THEN + 43 / + 42 WHEN - 67 THEN + + 60 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-658
SELECT ALL - 36 * - NULLIF ( + 31, + ( 37 ) ) + + + COUNT( * ) / CAST( NULL AS SIGNED ) * - + 49 col1, 70 * - + MIN( - 50 ) * + 53 + 25 AS col1
----
NULL
185525

skipif mysql # not compatible
query II rowsort label-658
SELECT ALL - 36 * - NULLIF ( + 31, + ( 37 ) ) + + + COUNT ( * ) / CAST ( NULL AS INTEGER ) * - + 49 col1, 70 * - + MIN ( - 50 ) * + 53 + 25 AS col1
----
NULL
185525

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

query II rowsort
SELECT - 35 AS col0, 18 AS col0
----
-35
18

onlyif mysql # DIV for integer division: 
query I rowsort label-661
SELECT DISTINCT + 8 DIV - ( + 69 )
----
0

skipif mysql # not compatible
query I rowsort label-661
SELECT DISTINCT + 8 / - ( + 69 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-662
SELECT + + 97 - - - 88 - - 6 + COUNT( * ) * COUNT( * ) col0
----
16

skipif mysql # not compatible
query I rowsort label-662
SELECT + + 97 - - - 88 - - 6 + COUNT ( * ) * COUNT ( * ) col0
----
16

query I rowsort
SELECT ALL - 70 * 77 AS col2
----
-5390

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-664
SELECT ALL COALESCE ( - - 94, - 93 * + - 55, - CAST( NULL AS SIGNED ) ) * - CAST( - - 98 AS SIGNED )
----
-9212

skipif mysql # not compatible
query I rowsort label-664
SELECT ALL COALESCE ( - - 94, - 93 * + - 55, - CAST ( NULL AS INTEGER ) ) * - CAST ( - - 98 AS INTEGER )
----
-9212

query I rowsort
SELECT ALL - 97 + + 10 * 90 AS col0
----
803

query I rowsort
SELECT DISTINCT 6 * 94 * 49
----
27636

query II rowsort
SELECT ALL 65 + 90 AS col2, - 95
----
155
-95

query II rowsort
SELECT + 70 * 32 AS col2, 40
----
2240
40

query I rowsort
SELECT + 47 * + 91
----
4277

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-671
SELECT + COALESCE ( 12, + 18, + - 18 ) * + ( + - COUNT( * ) ) AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-671
SELECT + COALESCE ( 12, + 18, + - 18 ) * + ( + - COUNT ( * ) ) AS col2
----
-12

query II rowsort
SELECT DISTINCT ( + - 38 ), 81 AS col1
----
-38
81

query I rowsort
SELECT - 17 * - 1 col0
----
17

query I rowsort
SELECT ALL NULLIF ( - + 23, + + 54 ) AS col0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-675
SELECT ALL - NULLIF ( + MAX( ALL - 44 ), 42 + + 66 ) + + 98
----
142

skipif mysql # not compatible
query I rowsort label-675
SELECT ALL - NULLIF ( + MAX ( ALL - 44 ), 42 + + 66 ) + + 98
----
142

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-676
SELECT DISTINCT - SUM( DISTINCT + + 90 ) * 90 / + CASE - - 81 WHEN MAX( - 4 ) THEN - NULLIF ( + CAST( NULL AS SIGNED ), + - NULLIF ( - 73, + 5 * - 66 ) ) * - 32 + 9 END + + - ( + COUNT( * ) ) * + AVG ( - 57 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-676
SELECT DISTINCT - SUM ( DISTINCT + + 90 ) * 90 / + CASE - - 81 WHEN MAX ( - 4 ) THEN - NULLIF ( + CAST ( NULL AS INTEGER ), + - NULLIF ( - 73, + 5 * - 66 ) ) * - 32 + 9 END + + - ( + COUNT ( * ) ) * + AVG ( - 57 ) AS col2
----
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-678
SELECT CAST ( NULL AS REAL ) * + 85
----
NULL

query I rowsort
SELECT ALL - 83 - 73 * - - 36
----
-2711

onlyif mysql # aggregate syntax: 
query I rowsort label-680
SELECT + COUNT( * ) * - 13 - - 95 AS col0
----
82

skipif mysql # not compatible
query I rowsort label-680
SELECT + COUNT ( * ) * - 13 - - 95 AS col0
----
82

query I rowsort
SELECT ALL - - NULLIF ( ( - - NULLIF ( 81, 56 + - 59 + - 46 * + - 95 ) ), + 15 * - ( - 14 ) * - - 73 )
----
81

query I rowsort
SELECT 2 * + - 34 * 77
----
-5236

onlyif mysql # aggregate syntax: 
query I rowsort label-683
SELECT + + 95 * + 55 + - COUNT( * ) - 70 AS col1
----
5154

skipif mysql # not compatible
query I rowsort label-683
SELECT + + 95 * + 55 + - COUNT ( * ) - 70 AS col1
----
5154

onlyif mysql # DIV for integer division: 
query II rowsort label-684
SELECT 32 DIV - + ( ( + 44 ) ), 57 AS col1
----
0
57

skipif mysql # not compatible
query II rowsort label-684
SELECT 32 / - + ( ( + 44 ) ), 57 AS col1
----
0
57

onlyif mysql # DIV for integer division: 
query I rowsort label-685
SELECT ALL + 31 DIV - 23 col0
----
-1

skipif mysql # not compatible
query I rowsort label-685
SELECT ALL + 31 / - 23 col0
----
-1

query I rowsort
SELECT 81 + + + 69 AS col0
----
150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-687
SELECT + CAST( 35 AS SIGNED ) * + + 98 - - MIN( ALL - + 80 ) AS col1
----
3350

skipif mysql # not compatible
query I rowsort label-687
SELECT + CAST ( 35 AS INTEGER ) * + + 98 - - MIN ( ALL - + 80 ) AS col1
----
3350

onlyif mysql # aggregate syntax: 
query II rowsort label-688
SELECT ALL - SUM( ALL + 22 ) * - - 8 * + 27 AS col0, 98 * - 15 * - 13
----
-4752
19110

skipif mysql # not compatible
query II rowsort label-688
SELECT ALL - SUM ( ALL + 22 ) * - - 8 * + 27 AS col0, 98 * - 15 * - 13
----
-4752
19110

onlyif mysql # aggregate syntax: 
query I rowsort label-689
SELECT ALL + 7 * + + COALESCE ( + 32, - 59 * + 22 + + - COUNT( * ) * + ( + 73 ) )
----
224

skipif mysql # not compatible
query I rowsort label-689
SELECT ALL + 7 * + + COALESCE ( + 32, - 59 * + 22 + + - COUNT ( * ) * + ( + 73 ) )
----
224

onlyif mysql # aggregate syntax: 
query II rowsort label-690
SELECT DISTINCT - + MIN( + - 67 ) AS col2, + 74 col2
----
67
74

skipif mysql # not compatible
query II rowsort label-690
SELECT DISTINCT - + MIN ( + - 67 ) AS col2, + 74 col2
----
67
74

query II rowsort
SELECT DISTINCT - 79 * 47 + + 64 * + 73 AS col0, - 66
----
959
-66

query I rowsort
SELECT DISTINCT 98 + 26 AS col1
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-693
SELECT DISTINCT 95 + - MIN( 69 ) * 67 AS col1
----
-4528

skipif mysql # not compatible
query I rowsort label-693
SELECT DISTINCT 95 + - MIN ( 69 ) * 67 AS col1
----
-4528

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

query I rowsort
SELECT 42 * 57 AS col1
----
2394

query I rowsort
SELECT DISTINCT 59 + - + 42 + + 34
----
51

query I rowsort
SELECT ALL 11 * NULLIF ( + 84, 36 )
----
924

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-698
SELECT DISTINCT 23 + COALESCE ( - COUNT( * ), - 85 DIV + 62 * + 59 + 49 ) * - 55 AS col0
----
78

skipif mysql # not compatible
query I rowsort label-698
SELECT DISTINCT 23 + COALESCE ( - COUNT ( * ), - 85 / + 62 * + 59 + 49 ) * - 55 AS col0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-699
SELECT 83 + COUNT( * ) * - COUNT( * ) * + 45 * - 1 * 64
----
2963

skipif mysql # not compatible
query I rowsort label-699
SELECT 83 + COUNT ( * ) * - COUNT ( * ) * + 45 * - 1 * 64
----
2963

query II rowsort
SELECT - 80 col1, 90 AS col1
----
-80
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-701
SELECT ALL + COALESCE ( - 18, - 30, 88 ) - - CAST( - - CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-701
SELECT ALL + COALESCE ( - 18, - 30, 88 ) - - CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-702
SELECT DISTINCT MAX( ALL + + ( - + 6 ) ) * + COUNT( * ) col1
----
-6

skipif mysql # not compatible
query I rowsort label-702
SELECT DISTINCT MAX ( ALL + + ( - + 6 ) ) * + COUNT ( * ) col1
----
-6

query I rowsort
SELECT 73 + + - 19 AS col0
----
54

onlyif mysql # aggregate syntax: 
query II rowsort label-704
SELECT 18 + - + 83 + - 77, + MAX( ALL - + 15 ) AS col0
----
-142
-15

skipif mysql # not compatible
query II rowsort label-704
SELECT 18 + - + 83 + - 77, + MAX ( ALL - + 15 ) AS col0
----
-142
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-705
SELECT ALL NULLIF ( - - 53, + 37 ) - + + COALESCE ( - 82, + + 20, - 0 ) - - - COUNT( * ) AS col0, 47 AS col0
----
134
47

skipif mysql # not compatible
query II rowsort label-705
SELECT ALL NULLIF ( - - 53, + 37 ) - + + COALESCE ( - 82, + + 20, - 0 ) - - - COUNT ( * ) AS col0, 47 AS col0
----
134
47

onlyif mysql # aggregate syntax: 
query I rowsort label-706
SELECT CASE ( 56 ) WHEN MIN( - 86 ) THEN 79 END + 29
----
NULL

skipif mysql # not compatible
query I rowsort label-706
SELECT CASE ( 56 ) WHEN MIN ( - 86 ) THEN 79 END + 29
----
NULL

query I rowsort
SELECT 1 * + 47
----
47

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

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

query I rowsort
SELECT ALL 9 - - 6
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-710
SELECT ALL - SUM( 75 ) AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-710
SELECT ALL - SUM ( 75 ) AS col2
----
-75

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

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

query I rowsort
SELECT 24 * + 55
----
1320

query I rowsort
SELECT 36 * 91
----
3276

query I rowsort
SELECT ALL + 14 * - 2
----
-28

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

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

query I rowsort
SELECT DISTINCT + ( + 23 ) * - 87 AS col0
----
-2001

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-717
SELECT DISTINCT + CAST( + 74 AS SIGNED ) * - 51
----
-3774

skipif mysql # not compatible
query I rowsort label-717
SELECT DISTINCT + CAST ( + 74 AS INTEGER ) * - 51
----
-3774

onlyif mysql # aggregate syntax: 
query I rowsort label-718
SELECT + 3 * COUNT( * ) + + 61
----
64

skipif mysql # not compatible
query I rowsort label-718
SELECT + 3 * COUNT ( * ) + + 61
----
64

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

skipif mysql # not compatible
query I rowsort label-719
SELECT ALL - 15 + COUNT ( 22 + - 15 ) AS col1
----
-14

query I rowsort
SELECT 48 + - 39
----
9

query I rowsort
SELECT 52 * - 19 AS col0
----
-988

onlyif mysql # DIV for integer division: 
query I rowsort label-722
SELECT ALL 77 DIV COALESCE ( 42, - 92, 37 + 55 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-722
SELECT ALL 77 / COALESCE ( 42, - 92, 37 + 55 ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-723
SELECT ALL + CAST( 73 AS SIGNED ) + 45 DIV - 11 AS col2
----
69

skipif mysql # not compatible
query I rowsort label-723
SELECT ALL + CAST ( 73 AS INTEGER ) + 45 / - 11 AS col2
----
69

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-724
SELECT 32 - - NULLIF ( + 48, - COUNT( * ) * ( CAST( - ( 82 ) AS DECIMAL ) * 83 ) + - 97 ) * + 53
----
2576

skipif mysql # not compatible
query I rowsort label-724
SELECT 32 - - NULLIF ( + 48, - COUNT ( * ) * ( CAST ( - ( 82 ) AS REAL ) * 83 ) + - 97 ) * + 53
----
2576

query I rowsort
SELECT 38 * + 83
----
3154

query I rowsort
SELECT 42 - + 20 AS col1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-727
SELECT DISTINCT - 34 + ( - ( COUNT( * ) ) ) AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-727
SELECT DISTINCT - 34 + ( - ( COUNT ( * ) ) ) AS col0
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-728
SELECT ALL - CAST( - 96 AS SIGNED ) + + 8 AS col2
----
104

skipif mysql # not compatible
query I rowsort label-728
SELECT ALL - CAST ( - 96 AS INTEGER ) + + 8 AS col2
----
104

query I rowsort
SELECT 67 * 5
----
335

onlyif mysql # aggregate syntax: 
query I rowsort label-730
SELECT 71 * - COUNT( * ) + 63
----
-8

skipif mysql # not compatible
query I rowsort label-730
SELECT 71 * - COUNT ( * ) + 63
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-731
SELECT DISTINCT - 35 + COUNT( * ) * CASE 76 * 49 WHEN 90 THEN NULL ELSE + COUNT( * ) END AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-731
SELECT DISTINCT - 35 + COUNT ( * ) * CASE 76 * 49 WHEN 90 THEN NULL ELSE + COUNT ( * ) END AS col2
----
-34

query I rowsort
SELECT ALL + 80 * 38 AS col2
----
3040

query I rowsort
SELECT 86 - 82
----
4

query I rowsort
SELECT DISTINCT + 62 * 56
----
3472

onlyif mysql # aggregate syntax: 
query I rowsort label-735
SELECT ALL NULLIF ( + NULLIF ( + 87, 48 ), COUNT( * ) + COUNT( DISTINCT 51 ) * - 15 ) AS col1
----
87

skipif mysql # not compatible
query I rowsort label-735
SELECT ALL NULLIF ( + NULLIF ( + 87, 48 ), COUNT ( * ) + COUNT ( DISTINCT 51 ) * - 15 ) AS col1
----
87

query I rowsort
SELECT 66 * 78
----
5148

query I rowsort
SELECT NULLIF ( 52, 92 ) * 2
----
104

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

onlyif mysql # aggregate syntax: 
query I rowsort label-739
SELECT DISTINCT MAX( - 23 ) - + 52
----
-75

skipif mysql # not compatible
query I rowsort label-739
SELECT DISTINCT MAX ( - 23 ) - + 52
----
-75

query I rowsort
SELECT + 39 + + 66
----
105

query I rowsort
SELECT DISTINCT ( 8 ) * - 17 AS col0
----
-136

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-742
SELECT DISTINCT CAST( 45 AS SIGNED ) * 51 col2
----
2295

skipif mysql # not compatible
query I rowsort label-742
SELECT DISTINCT CAST ( 45 AS INTEGER ) * 51 col2
----
2295

onlyif mysql # DIV for integer division: 
query I rowsort label-743
SELECT ALL 67 DIV - 86
----
0

skipif mysql # not compatible
query I rowsort label-743
SELECT ALL 67 / - 86
----
0

query I rowsort
SELECT + - 86 * - 93
----
7998

onlyif mysql # aggregate syntax: 
query I rowsort label-745
SELECT ALL + SUM( DISTINCT + 24 ) * - CASE + 64 WHEN - 81 THEN 82 WHEN 65 THEN 52 END
----
NULL

skipif mysql # not compatible
query I rowsort label-745
SELECT ALL + SUM ( DISTINCT + 24 ) * - CASE + 64 WHEN - 81 THEN 82 WHEN 65 THEN 52 END
----
NULL

query I rowsort
SELECT ALL - CASE + 60 WHEN + 21 THEN - 38 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-747
SELECT CASE ( COUNT( 26 ) ) WHEN 30 THEN 24 / COUNT( * ) + + 2 WHEN + 95 * 79 + COUNT( ALL - 33 + - 4 ) THEN 36 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-747
SELECT CASE ( COUNT ( 26 ) ) WHEN 30 THEN 24 / COUNT ( * ) + + 2 WHEN + 95 * 79 + COUNT ( ALL - 33 + - 4 ) THEN 36 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT + 60 - + 87
----
-27

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-750
SELECT DISTINCT + - COUNT( * ) * 16 + 43 AS col0
----
27

skipif mysql # not compatible
query I rowsort label-750
SELECT DISTINCT + - COUNT ( * ) * 16 + 43 AS col0
----
27

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

skipif mysql # not compatible
query I rowsort label-751
SELECT DISTINCT - COUNT ( * ) / + 45
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-752
SELECT ALL + 43 * - SUM( 84 + 84 ) + 15
----
-7209

skipif mysql # not compatible
query I rowsort label-752
SELECT ALL + 43 * - SUM ( 84 + 84 ) + 15
----
-7209

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-756
SELECT ALL - 14 * COUNT( * ) + 90 AS col1
----
76

skipif mysql # not compatible
query I rowsort label-756
SELECT ALL - 14 * COUNT ( * ) + 90 AS col1
----
76

query I rowsort
SELECT ALL 36 * 56 + + 96 AS col0
----
2112

query I rowsort
SELECT + 3 + 86 AS col0
----
89

query I rowsort
SELECT 44 * 91 - 85 AS col0
----
3919

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-760
SELECT + NULLIF ( MAX( DISTINCT + 64 ), + ( + CAST( NULL AS DECIMAL ) ) / - 68 ) + + COUNT( * ) AS col1
----
65

skipif mysql # not compatible
query I rowsort label-760
SELECT + NULLIF ( MAX ( DISTINCT + 64 ), + ( + CAST ( NULL AS REAL ) ) / - 68 ) + + COUNT ( * ) AS col1
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-761
SELECT + 23 * + 11 - COUNT( * ) AS col2
----
252

skipif mysql # not compatible
query I rowsort label-761
SELECT + 23 * + 11 - COUNT ( * ) AS col2
----
252

onlyif mysql # aggregate syntax: 
query I rowsort label-762
SELECT NULLIF ( 12, NULLIF ( - ( COUNT( ALL + 66 ) ), + 4 + 89 ) )
----
12

skipif mysql # not compatible
query I rowsort label-762
SELECT NULLIF ( 12, NULLIF ( - ( COUNT ( ALL + 66 ) ), + 4 + 89 ) )
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-763
SELECT ALL + 38 * + CASE + 4 WHEN 88 * 14 THEN + 63 ELSE CASE - 4 WHEN - 53 THEN NULL WHEN - 12 * + 62 THEN 95 END END * MIN( CAST( NULL AS SIGNED ) ) + - MAX( + 33 + + 14 * - 61 ) * 84
----
NULL

skipif mysql # not compatible
query I rowsort label-763
SELECT ALL + 38 * + CASE + 4 WHEN 88 * 14 THEN + 63 ELSE CASE - 4 WHEN - 53 THEN NULL WHEN - 12 * + 62 THEN 95 END END * MIN ( CAST ( NULL AS INTEGER ) ) + - MAX ( + 33 + + 14 * - 61 ) * 84
----
NULL

query I rowsort
SELECT DISTINCT - ( + 55 ) * - 73 + 96 AS col2
----
4111

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-765
SELECT ( 73 ) * ( 76 + 58 ) + COALESCE ( + 17 - CAST( NULL AS SIGNED ), 93 * 5 + - 95 )
----
10152

skipif mysql # not compatible
query I rowsort label-765
SELECT ( 73 ) * ( 76 + 58 ) + COALESCE ( + 17 - CAST ( NULL AS INTEGER ), 93 * 5 + - 95 )
----
10152

query I rowsort
SELECT ALL - 48 * - + 18
----
864

onlyif mysql # aggregate syntax: 
query I rowsort label-767
SELECT - CASE SUM( + 17 ) WHEN - 69 THEN NULL WHEN + SUM( ALL + 23 ) THEN + 15 + 12 WHEN 9 THEN 31 END + + 32
----
NULL

skipif mysql # not compatible
query I rowsort label-767
SELECT - CASE SUM ( + 17 ) WHEN - 69 THEN NULL WHEN + SUM ( ALL + 23 ) THEN + 15 + 12 WHEN 9 THEN 31 END + + 32
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-768
SELECT - 40 DIV + 80 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-768
SELECT - 40 / + 80 AS col1
----
0

query I rowsort
SELECT - 58 + - + 27
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-770
SELECT DISTINCT - COUNT( * ) - 63 * 55 AS col0
----
-3466

skipif mysql # not compatible
query I rowsort label-770
SELECT DISTINCT - COUNT ( * ) - 63 * 55 AS col0
----
-3466

onlyif mysql # aggregate syntax: 
query I rowsort label-771
SELECT + 41 * COALESCE ( 78, - 33 * SUM( ALL 33 ), + 72 ) + 52 AS col2
----
3250

skipif mysql # not compatible
query I rowsort label-771
SELECT + 41 * COALESCE ( 78, - 33 * SUM ( ALL 33 ), + 72 ) + 52 AS col2
----
3250

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-774
SELECT + 16 * - MIN( COALESCE ( - NULLIF ( 94, 20 ), 50 * ( - 81 ) + 11, 94 ) )
----
1504

skipif mysql # not compatible
query I rowsort label-774
SELECT + 16 * - MIN ( COALESCE ( - NULLIF ( 94, 20 ), 50 * ( - 81 ) + 11, 94 ) )
----
1504

query I rowsort
SELECT ALL - 77 * + 83
----
-6391

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

skipif mysql # not compatible
query I rowsort label-776
SELECT - COUNT ( * ) + + 8 * - 60 AS col2
----
-481

query I rowsort
SELECT DISTINCT - 4 - 32
----
-36

query I rowsort
SELECT ALL ( ( - 54 ) ) * + 85
----
-4590

onlyif mysql # DIV for integer division: 
query I rowsort label-779
SELECT - 4 + + + 73 DIV 47
----
-3

skipif mysql # not compatible
query I rowsort label-779
SELECT - 4 + + + 73 / 47
----
-3

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

query I rowsort
SELECT DISTINCT + 32 * + 77 * - 59 AS col2
----
-145376

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

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

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

skipif mysql # not compatible
query I rowsort label-783
SELECT + 4 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-784
SELECT ALL - + 51 * - 30 - - CAST( CASE - MAX( DISTINCT + ( 93 ) ) WHEN + 58 THEN - 43 ELSE MAX( - 4 ) * ( + 70 ) END + + MIN( DISTINCT ( - 69 ) + - 81 ) AS SIGNED ) * + CASE MIN( - 46 ) / - 98 + + ( 13 ) WHEN - 43 THEN - 77 + - 75 END
----
NULL

skipif mysql # not compatible
query I rowsort label-784
SELECT ALL - + 51 * - 30 - - CAST ( CASE - MAX ( DISTINCT + ( 93 ) ) WHEN + 58 THEN - 43 ELSE MAX ( - 4 ) * ( + 70 ) END + + MIN ( DISTINCT ( - 69 ) + - 81 ) AS INTEGER ) * + CASE MIN ( - 46 ) / - 98 + + ( 13 ) WHEN - 43 THEN - 77 + - 75 END
----
NULL

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

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

query I rowsort
SELECT - 57 + + 92 AS col0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-787
SELECT + COUNT( * ) + + MAX( + 45 ) AS col1
----
46

skipif mysql # not compatible
query I rowsort label-787
SELECT + COUNT ( * ) + + MAX ( + 45 ) AS col1
----
46

query I rowsort
SELECT - ( 70 ) * ( - 27 ) AS col1
----
1890

query I rowsort
SELECT DISTINCT 19 + 55 + 7
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-790
SELECT ALL - 94 + 15 * COUNT( * ) AS col0
----
-79

skipif mysql # not compatible
query I rowsort label-790
SELECT ALL - 94 + 15 * COUNT ( * ) AS col0
----
-79

query I rowsort
SELECT + + ( - 23 ) + - 24 AS col1
----
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-792
SELECT ALL - 88 DIV + 97 + 38
----
38

skipif mysql # not compatible
query I rowsort label-792
SELECT ALL - 88 / + 97 + 38
----
38

query I rowsort
SELECT 14 * - + 31 * 98 + 42 + - 37 AS col2
----
-42527

onlyif mysql # DIV for integer division: 
query I rowsort label-794
SELECT DISTINCT - + 32 DIV 82 + - 78 AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-794
SELECT DISTINCT - + 32 / 82 + - 78 AS col2
----
-78

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

skipif mysql # not compatible
query I rowsort label-795
SELECT + - MAX ( - 25 )
----
25

query I rowsort
SELECT + 43 * 42 AS col1
----
1806

onlyif mysql # DIV for integer division: 
query I rowsort label-797
SELECT DISTINCT 34 DIV - 55 + - 75
----
-75

skipif mysql # not compatible
query I rowsort label-797
SELECT DISTINCT 34 / - 55 + - 75
----
-75

query I rowsort
SELECT + + 87 * - - 50 AS col0
----
4350

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

skipif mysql # not compatible
query I rowsort label-799
SELECT - MIN ( DISTINCT 92 )
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-800
SELECT + CASE 63 WHEN - COUNT( * ) THEN ( + 59 ) - - COALESCE ( + 92, - 95 + COUNT( * ) * COUNT( ALL + CAST( NULL AS SIGNED ) ) ) WHEN - 45 THEN NULL END + + 60 * 20 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-800
SELECT + CASE 63 WHEN - COUNT ( * ) THEN ( + 59 ) - - COALESCE ( + 92, - 95 + COUNT ( * ) * COUNT ( ALL + CAST ( NULL AS INTEGER ) ) ) WHEN - 45 THEN NULL END + + 60 * 20 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-801
SELECT ALL - COUNT( * ) * MAX( - 56 ) * 58 AS col0
----
3248

skipif mysql # not compatible
query I rowsort label-801
SELECT ALL - COUNT ( * ) * MAX ( - 56 ) * 58 AS col0
----
3248

query I rowsort
SELECT + COALESCE ( 47, + 3 ) - + 77 AS col2
----
-30

query I rowsort
SELECT 76 - 62
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-804
SELECT 12 * 30 * + MAX( DISTINCT 18 )
----
6480

skipif mysql # not compatible
query I rowsort label-804
SELECT 12 * 30 * + MAX ( DISTINCT 18 )
----
6480

query I rowsort
SELECT 18 + + 58 AS col0
----
76

onlyif mysql # aggregate syntax: 
query II rowsort label-806
SELECT + 74, MAX( 12 ) AS col2
----
74
12

skipif mysql # not compatible
query II rowsort label-806
SELECT + 74, MAX ( 12 ) AS col2
----
74
12

onlyif mysql # aggregate syntax: 
query I rowsort label-807
SELECT DISTINCT - MAX( + 66 ) * - NULLIF ( 58, - 73 ) AS col2
----
3828

skipif mysql # not compatible
query I rowsort label-807
SELECT DISTINCT - MAX ( + 66 ) * - NULLIF ( 58, - 73 ) AS col2
----
3828

onlyif mysql # aggregate syntax: 
query II rowsort label-808
SELECT ALL 78 AS col2, - 41 + COUNT( - 19 ) col2
----
78
-40

skipif mysql # not compatible
query II rowsort label-808
SELECT ALL 78 AS col2, - 41 + COUNT ( - 19 ) col2
----
78
-40

query I rowsort
SELECT ALL 92 * 68
----
6256

query I rowsort
SELECT 8 * - 46 col2
----
-368

onlyif mysql # aggregate syntax: 
query I rowsort label-811
SELECT 11 - + + COUNT( * ) * - COALESCE ( - ( - NULLIF ( + ( + 76 ), + 22 * - NULLIF ( + 81, + 10 ) ) ), 64 * - 94, 25 + + 67 )
----
87

skipif mysql # not compatible
query I rowsort label-811
SELECT 11 - + + COUNT ( * ) * - COALESCE ( - ( - NULLIF ( + ( + 76 ), + 22 * - NULLIF ( + 81, + 10 ) ) ), 64 * - 94, 25 + + 67 )
----
87

query II rowsort
SELECT ALL 87 AS col0, 61 AS col0
----
87
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-813
SELECT 27 / - - CASE 56 WHEN 92 THEN NULL ELSE CAST( NULL AS SIGNED ) + + 14 END / - 7
----
NULL

skipif mysql # not compatible
query I rowsort label-813
SELECT 27 / - - CASE 56 WHEN 92 THEN NULL ELSE CAST ( NULL AS INTEGER ) + + 14 END / - 7
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-814
SELECT SUM( + 30 ) * 0 + 74 col1
----
74

skipif mysql # not compatible
query I rowsort label-814
SELECT SUM ( + 30 ) * 0 + 74 col1
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-815
SELECT COUNT( - 51 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-815
SELECT COUNT ( - 51 ) AS col2
----
1

query I rowsort
SELECT ( - 55 ) + 14 AS col2
----
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-817
SELECT ALL + 15 DIV + 48 * + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-817
SELECT ALL + 15 / + 48 * + COUNT ( * )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-818
SELECT 56 DIV - + 70 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-818
SELECT 56 / - + 70 AS col1
----
0

query I rowsort
SELECT ALL - 23 + 62
----
39

query I rowsort
SELECT DISTINCT + 65 + 90 AS col1
----
155

query I rowsort
SELECT ( - - 75 )
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-822
SELECT ALL + CASE + COUNT( - 81 ) WHEN + 13 * ( COUNT( * ) ) THEN NULL WHEN - CAST( NULL AS SIGNED ) THEN NULL WHEN + 92 THEN - 69 ELSE 33 * + 27 END * CAST( + 95 * - CASE - MIN( 14 ) / - 1 WHEN - 53 THEN NULL WHEN + 66 * COUNT( * ) THEN NULL ELSE + 87 END AS SIGNED ) AS col0
----
-7364115

skipif mysql # not compatible
query I rowsort label-822
SELECT ALL + CASE + COUNT ( - 81 ) WHEN + 13 * ( COUNT ( * ) ) THEN NULL WHEN - CAST ( NULL AS INTEGER ) THEN NULL WHEN + 92 THEN - 69 ELSE 33 * + 27 END * CAST ( + 95 * - CASE - MIN ( 14 ) / - 1 WHEN - 53 THEN NULL WHEN + 66 * COUNT ( * ) THEN NULL ELSE + 87 END AS INTEGER ) AS col0
----
-7364115

query II rowsort
SELECT ALL 88 AS col0, - 6
----
88
-6

query I rowsort
SELECT ALL - CASE + + ( 63 ) WHEN ( 89 ) * + ( + 70 - + 23 ) THEN NULL ELSE ( 94 ) END + - 7 AS col0
----
-101

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-825
SELECT + 49 AS col0, COALESCE ( - + 80, CAST( NULL AS SIGNED ) + + COUNT( + 54 ), 23 + COUNT( * ) ) col2
----
49
-80

skipif mysql # not compatible
query II rowsort label-825
SELECT + 49 AS col0, COALESCE ( - + 80, CAST ( NULL AS INTEGER ) + + COUNT ( + 54 ), 23 + COUNT ( * ) ) col2
----
49
-80

query I rowsort
SELECT 4 + + 39
----
43

query II rowsort
SELECT + 72, 92 + 25 AS col1
----
72
117

query I rowsort
SELECT + + 33 * + 61 * + - 89 + ( ( + 86 ) ) * - 77 AS col1
----
-185779

query II rowsort
SELECT - 0 AS col1, 9 AS col0
----
0
9

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-831
SELECT + 15 / - 88 * + 63 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-831
SELECT + 15 / - 88 * + 63 + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 47 * - - NULLIF ( ( 63 ), + ( - 48 ) + NULLIF ( - 60 + 30, - AVG ( DISTINCT + ( + ( 74 ) ) ) ) ) * + 29
----
85869

query I rowsort
SELECT ALL + 21 * + 28 AS col2
----
588

onlyif mysql # aggregate syntax: 
query I rowsort label-834
SELECT SUM( + 35 ) * + 2
----
70

skipif mysql # not compatible
query I rowsort label-834
SELECT SUM ( + 35 ) * + 2
----
70

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

skipif mysql # not compatible
query I rowsort label-835
SELECT 22 * - 43 + + - 64 - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-836
SELECT MAX( - 54 ) * CASE - 68 WHEN + 33 THEN COUNT( * ) * COUNT( * ) + 1 * - 57 WHEN 56 / CAST( NULL AS SIGNED ) THEN NULL ELSE 93 END AS col2
----
-5022

skipif mysql # not compatible
query I rowsort label-836
SELECT MAX ( - 54 ) * CASE - 68 WHEN + 33 THEN COUNT ( * ) * COUNT ( * ) + 1 * - 57 WHEN 56 / CAST ( NULL AS INTEGER ) THEN NULL ELSE 93 END AS col2
----
-5022

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-837
SELECT 21 - + 61 + + 93 - - + 86 - + CAST( + 46 AS SIGNED ) * 59 col2
----
-2575

skipif mysql # not compatible
query I rowsort label-837
SELECT 21 - + 61 + + 93 - - + 86 - + CAST ( + 46 AS INTEGER ) * 59 col2
----
-2575

query I rowsort
SELECT 92 * - 4 * + 80 * 93 col2
----
-2737920

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-839
SELECT ( - + CASE + CAST( NULL AS SIGNED ) WHEN + + 76 * 47 + + 52 THEN - CAST( - 45 AS DECIMAL ) WHEN 35 THEN - 66 * - 78 - COALESCE ( 29 + - ( + COALESCE ( - 72, + 94 * ( 33 ) ) - + 64 * + AVG ( 80 ) ), 72 + 74 / 25, 35 ) ELSE NULL END ) * + 31
----
NULL

skipif mysql # not compatible
query I rowsort label-839
SELECT ( - + CASE + CAST ( NULL AS INTEGER ) WHEN + + 76 * 47 + + 52 THEN - CAST ( - 45 AS REAL ) WHEN 35 THEN - 66 * - 78 - COALESCE ( 29 + - ( + COALESCE ( - 72, + 94 * ( 33 ) ) - + 64 * + AVG ( 80 ) ), 72 + 74 / 25, 35 ) ELSE NULL END ) * + 31
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-840
SELECT 59 * COUNT( * ) * + - 32 + - 80 AS col2
----
-1968

skipif mysql # not compatible
query I rowsort label-840
SELECT 59 * COUNT ( * ) * + - 32 + - 80 AS col2
----
-1968

onlyif mysql # aggregate syntax: 
query I rowsort label-841
SELECT 17 * + MIN( + - ( ( + 47 ) ) ) * 43
----
-34357

skipif mysql # not compatible
query I rowsort label-841
SELECT 17 * + MIN ( + - ( ( + 47 ) ) ) * 43
----
-34357

query I rowsort
SELECT ALL 86 + + 43 AS col0
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-843
SELECT 43 * - COUNT( * ) AS col2
----
-43

skipif mysql # not compatible
query I rowsort label-843
SELECT 43 * - COUNT ( * ) AS col2
----
-43

query I rowsort
SELECT 46 + + NULLIF ( - 21, + - 73 * + 23 ) AS col1
----
25

query I rowsort
SELECT - 88 * + 45 + + + 65 + 23 AS col0
----
-3872

query I rowsort
SELECT ALL 79 + - 15 AS col2
----
64

query I rowsort
SELECT 1 + - 50 AS col2
----
-49

query I rowsort
SELECT DISTINCT NULLIF ( + 80, + 79 )
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-849
SELECT + ( 29 ) + + - COUNT( * )
----
28

skipif mysql # not compatible
query I rowsort label-849
SELECT + ( 29 ) + + - COUNT ( * )
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-850
SELECT ALL + 92 + + COALESCE ( - 86, - 54, - COUNT( * ) ) * 0
----
92

skipif mysql # not compatible
query I rowsort label-850
SELECT ALL + 92 + + COALESCE ( - 86, - 54, - COUNT ( * ) ) * 0
----
92

query I rowsort
SELECT 39 + CASE - 66 WHEN + 12 THEN - 99 WHEN 89 + - 52 THEN + 96 END
----
NULL

query I rowsort
SELECT + 42 + - - 70 + - 80
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-853
SELECT CASE - COUNT( - 55 ) WHEN + 61 THEN + 79 * - 22 + + 9 * 86 WHEN - 65 THEN NULL END + - 32 * + NULLIF ( + COUNT( * ) + COUNT( * ), + 27 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-853
SELECT CASE - COUNT ( - 55 ) WHEN + 61 THEN + 79 * - 22 + + 9 * 86 WHEN - 65 THEN NULL END + - 32 * + NULLIF ( + COUNT ( * ) + COUNT ( * ), + 27 ) AS col2
----
NULL

query I rowsort
SELECT + ( + 24 ) * + 19 AS col1
----
456

query I rowsort
SELECT + 25 + 59 AS col0
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-856
SELECT DISTINCT + + 67 / + 82 + CAST( NULL AS SIGNED ) * - 33 + - 54 * 66 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-856
SELECT DISTINCT + + 67 / + 82 + CAST ( NULL AS INTEGER ) * - 33 + - 54 * 66 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-857
SELECT ALL - - 4 - SUM( + 72 ) * 75 + 77 AS col0
----
-5319

skipif mysql # not compatible
query I rowsort label-857
SELECT ALL - - 4 - SUM ( + 72 ) * 75 + 77 AS col0
----
-5319

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-858
SELECT ALL + 76 * - 83 + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-858
SELECT ALL + 76 * - 83 + CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT DISTINCT + + 91 * + 73 AS col2
----
6643

onlyif mysql # aggregate syntax: 
query I rowsort label-860
SELECT DISTINCT + + SUM( + - 82 ) * - 35 * + 78 + 50
----
223910

skipif mysql # not compatible
query I rowsort label-860
SELECT DISTINCT + + SUM ( + - 82 ) * - 35 * + 78 + 50
----
223910

onlyif mysql # aggregate syntax: 
query I rowsort label-861
SELECT ALL - 85 * - 60 + - MAX( DISTINCT + + 31 ) + 17 * ( 76 ) AS col1
----
6361

skipif mysql # not compatible
query I rowsort label-861
SELECT ALL - 85 * - 60 + - MAX ( DISTINCT + + 31 ) + 17 * ( 76 ) AS col1
----
6361

query I rowsort
SELECT 88 * - 39 * + 59 AS col1
----
-202488

onlyif mysql # aggregate syntax: 
query I rowsort label-863
SELECT DISTINCT - 35 * - 91 * - COUNT( * ) * + 87 * - 46 AS col1
----
12746370

skipif mysql # not compatible
query I rowsort label-863
SELECT DISTINCT - 35 * - 91 * - COUNT ( * ) * + 87 * - 46 AS col1
----
12746370

query I rowsort
SELECT NULLIF ( + 13, - 97 ) col2
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-865
SELECT + 23 + + ( + 67 ) DIV MIN( ALL + 7 ) + + CAST( + 75 AS SIGNED )
----
107

skipif mysql # not compatible
query I rowsort label-865
SELECT + 23 + + ( + 67 ) / MIN ( ALL + 7 ) + + CAST ( + 75 AS INTEGER )
----
107

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-867
SELECT - CASE WHEN 78 NOT IN ( + 71 ) THEN 64 END * MIN( NULLIF ( - 28, 40 ) ) AS col2
----
1792

skipif mysql # not compatible
query I rowsort label-867
SELECT - CASE WHEN 78 NOT IN ( + 71 ) THEN 64 END * MIN ( NULLIF ( - 28, 40 ) ) AS col2
----
1792

query I rowsort
SELECT ALL + NULLIF ( - 47, - 39 )
----
-47

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-869
SELECT DISTINCT 85 * CAST( NULL AS DECIMAL ) + - 70 + + CASE 33 WHEN + 63 THEN COALESCE ( - 50, COUNT( * ) ) * 67 ELSE - 7 END * - 27 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-869
SELECT DISTINCT 85 * CAST ( NULL AS REAL ) + - 70 + + CASE 33 WHEN + 63 THEN COALESCE ( - 50, COUNT ( * ) ) * 67 ELSE - 7 END * - 27 AS col0
----
NULL

query I rowsort
SELECT ALL ( - 76 ) * 7 + + - 0
----
-532

query I rowsort
SELECT + 81 * 93
----
7533

query I rowsort
SELECT DISTINCT + 92 * + 85 * + 92 + - 20 AS col1
----
719420

query I rowsort
SELECT DISTINCT + 73 * + 75
----
5475

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

skipif mysql # not compatible
query I rowsort label-874
SELECT + MAX ( + - 35 )
----
-35

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-878
SELECT MAX( + 80 ) AS col1
----
80

skipif mysql # not compatible
query I rowsort label-878
SELECT MAX ( + 80 ) AS col1
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-879
SELECT + 27 + - 54 + - 25 - - - 10 * - CASE 28 WHEN + COUNT( * ) THEN COALESCE ( 94, - COUNT( * ) + + CASE ( + COALESCE ( 90, - 39 * - CAST( - 75 AS SIGNED ), + 72 - COALESCE ( - CASE - 79 WHEN NULLIF ( 42, 9 * - 10 ) * 22 THEN NULL WHEN - 26 THEN + 24 ELSE NULL END, + 59 * 95 ), 45 - - 5 ) ) WHEN + 40 THEN 97 ELSE 63 END * 24, - 63 + + 60 ) WHEN + COUNT( 70 ) + 22 THEN CAST( NULL AS DECIMAL ) + + 6 * + 84 END + ( - 85 ) * + 58 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-879
SELECT + 27 + - 54 + - 25 - - - 10 * - CASE 28 WHEN + COUNT ( * ) THEN COALESCE ( 94, - COUNT ( * ) + + CASE ( + COALESCE ( 90, - 39 * - CAST ( - 75 AS INTEGER ), + 72 - COALESCE ( - CASE - 79 WHEN NULLIF ( 42, 9 * - 10 ) * 22 THEN NULL WHEN - 26 THEN + 24 ELSE NULL END, + 59 * 95 ), 45 - - 5 ) ) WHEN + 40 THEN 97 ELSE 63 END * 24, - 63 + + 60 ) WHEN + COUNT ( 70 ) + 22 THEN CAST ( NULL AS REAL ) + + 6 * + 84 END + ( - 85 ) * + 58 AS col1
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-881
SELECT - + 39, + ( 27 ) + COUNT( * ) + - COALESCE ( + 75, COUNT( - CAST( + 37 AS SIGNED ) ) ) * ( + 43 ) AS col1
----
-39
-3197

skipif mysql # not compatible
query II rowsort label-881
SELECT - + 39, + ( 27 ) + COUNT ( * ) + - COALESCE ( + 75, COUNT ( - CAST ( + 37 AS INTEGER ) ) ) * ( + 43 ) AS col1
----
-39
-3197

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-882
SELECT + - MAX( ALL - 65 ) DIV + 1 AS col0, + CASE 3 WHEN 96 THEN COUNT( * ) + + 31 WHEN 23 THEN NULL ELSE NULL END
----
65
NULL

skipif mysql # not compatible
query II rowsort label-882
SELECT + - MAX ( ALL - 65 ) / + 1 AS col0, + CASE 3 WHEN 96 THEN COUNT ( * ) + + 31 WHEN 23 THEN NULL ELSE NULL END
----
65
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-883
SELECT DISTINCT - CASE 74 WHEN + 40 * - + ( + - 53 ) THEN COUNT( 27 ) END / NULLIF ( + 26, + 77 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-883
SELECT DISTINCT - CASE 74 WHEN + 40 * - + ( + - 53 ) THEN COUNT ( 27 ) END / NULLIF ( + 26, + 77 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-884
SELECT ALL + COUNT( 3 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-884
SELECT ALL + COUNT ( 3 ) col1
----
1

query I rowsort
SELECT + + 1 * 52
----
52

query I rowsort
SELECT ALL + 96 + + 87 + + - 0 AS col0
----
183

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-887
SELECT ALL - 32 / - CAST( NULL AS SIGNED ) * 38 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-887
SELECT ALL - 32 / - CAST ( NULL AS INTEGER ) * 38 AS col0
----
NULL

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

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

query I rowsort
SELECT + 96 * 70 + + 73
----
6793

onlyif mysql # aggregate syntax: 
query II rowsort label-890
SELECT DISTINCT - COUNT( * ) AS col1, ( + - 83 ) * - 78 AS col1
----
-1
6474

skipif mysql # not compatible
query II rowsort label-890
SELECT DISTINCT - COUNT ( * ) AS col1, ( + - 83 ) * - 78 AS col1
----
-1
6474

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

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

query I rowsort
SELECT + - 74 - - + AVG ( ALL + CASE 96 WHEN + 8 THEN 70 END ) col1
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-894
SELECT DISTINCT + - 14 - + COALESCE ( 79, - 13 DIV + - COUNT( * ) )
----
-93

skipif mysql # not compatible
query I rowsort label-894
SELECT DISTINCT + - 14 - + COALESCE ( 79, - 13 / + - COUNT ( * ) )
----
-93

query I rowsort
SELECT + 80 * 30 AS col0
----
2400

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

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

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

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

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

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

query I rowsort
SELECT + - 81 * 85 AS col0
----
-6885

query I rowsort
SELECT - - 75 * 86 * - + CASE + - 41 WHEN - ( 15 ) THEN NULLIF ( ( + 76 ), 46 ) * - 40 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-901
SELECT + ( + MAX( DISTINCT 80 ) ) + 90 + + + 72 + + 42
----
284

skipif mysql # not compatible
query I rowsort label-901
SELECT + ( + MAX ( DISTINCT 80 ) ) + 90 + + + 72 + + 42
----
284

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

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

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

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

query I rowsort
SELECT - 0 * - 69
----
0

query I rowsort
SELECT ALL - 58 * + 55
----
-3190

onlyif mysql # DIV for integer division: 
query I rowsort label-906
SELECT ALL 37 DIV COALESCE ( - + ( 20 ), - - ( - 55 ) * - 65 ) + - 10 * - 35 AS col0
----
349

skipif mysql # not compatible
query I rowsort label-906
SELECT ALL 37 / COALESCE ( - + ( 20 ), - - ( - 55 ) * - 65 ) + - 10 * - 35 AS col0
----
349

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-907
SELECT ALL + 81 / - 6 * - CAST( NULL AS SIGNED ) + - + COALESCE ( 63, - - 33 * - 16 ) * + 91 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-907
SELECT ALL + 81 / - 6 * - CAST ( NULL AS INTEGER ) + - + COALESCE ( 63, - - 33 * - 16 ) * + 91 AS col2
----
NULL

query I rowsort
SELECT - 40 + 40 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-909
SELECT + SUM( - 19 ) * 47 + + 87 * - - 27 + COUNT( * ) + - COALESCE ( + 10, - COUNT( * ) ) * + COALESCE ( 72, - COUNT( * ) * CAST( NULL AS SIGNED ) )
----
737

skipif mysql # not compatible
query I rowsort label-909
SELECT + SUM ( - 19 ) * 47 + + 87 * - - 27 + COUNT ( * ) + - COALESCE ( + 10, - COUNT ( * ) ) * + COALESCE ( 72, - COUNT ( * ) * CAST ( NULL AS INTEGER ) )
----
737

onlyif mysql # aggregate syntax: 
query I rowsort label-910
SELECT ALL + MAX( ALL + + 9 ) * - + 22 * 72 AS col0
----
-14256

skipif mysql # not compatible
query I rowsort label-910
SELECT ALL + MAX ( ALL + + 9 ) * - + 22 * 72 AS col0
----
-14256

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-912
SELECT - 24 * + 6 - SUM( DISTINCT 97 ) * + + 60 * 18 + COUNT( * ) * - MAX( DISTINCT - 67 ) AS col2
----
-104837

skipif mysql # not compatible
query I rowsort label-912
SELECT - 24 * + 6 - SUM ( DISTINCT 97 ) * + + 60 * 18 + COUNT ( * ) * - MAX ( DISTINCT - 67 ) AS col2
----
-104837

query I rowsort
SELECT + 86 + 86 col0
----
172

onlyif mysql # aggregate syntax: 
query I rowsort label-914
SELECT ALL + COUNT( * ) * + - 22 + - 95 + CASE + - ( + COALESCE ( + 17, 65 / 51, COALESCE ( - 3, 18 ) / + ( - 6 * - 40 + 4 * - 76 ) ) ) WHEN - 34 / - 69 THEN NULLIF ( - 58, - NULLIF ( - 29, + 75 - 20 ) ) WHEN + COALESCE ( - COUNT( * ), - 65 ) * - 34 + - 3 THEN NULL ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-914
SELECT ALL + COUNT ( * ) * + - 22 + - 95 + CASE + - ( + COALESCE ( + 17, 65 / 51, COALESCE ( - 3, 18 ) / + ( - 6 * - 40 + 4 * - 76 ) ) ) WHEN - 34 / - 69 THEN NULLIF ( - 58, - NULLIF ( - 29, + 75 - 20 ) ) WHEN + COALESCE ( - COUNT ( * ), - 65 ) * - 34 + - 3 THEN NULL ELSE NULL END col0
----
NULL

query I rowsort
SELECT NULLIF ( + 83, 19 ) AS col2
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-916
SELECT DISTINCT + 77 * + 35 + 60 + + 38 + - 77 * + - 40 + MIN( 42 ) * - 60 AS col0
----
3353

skipif mysql # not compatible
query I rowsort label-916
SELECT DISTINCT + 77 * + 35 + 60 + + 38 + - 77 * + - 40 + MIN ( 42 ) * - 60 AS col0
----
3353

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-917
SELECT - CAST( + 80 AS SIGNED ) * - 59 + - 72 AS col0
----
4648

skipif mysql # not compatible
query I rowsort label-917
SELECT - CAST ( + 80 AS INTEGER ) * - 59 + - 72 AS col0
----
4648

onlyif mysql # aggregate syntax: 
query I rowsort label-918
SELECT ALL - COUNT( * ) * + NULLIF ( - - 76, + + 76 * + 65 ) + - + 46 * 89
----
-4170

skipif mysql # not compatible
query I rowsort label-918
SELECT ALL - COUNT ( * ) * + NULLIF ( - - 76, + + 76 * + 65 ) + - + 46 * 89
----
-4170

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-920
SELECT DISTINCT + 58 * - 48 - + 15 - - + MAX( + - 32 ) + - - COUNT( * ) DIV 40
----
-2831

skipif mysql # not compatible
query I rowsort label-920
SELECT DISTINCT + 58 * - 48 - + 15 - - + MAX ( + - 32 ) + - - COUNT ( * ) / 40
----
-2831

onlyif mysql # aggregate syntax: 
query II rowsort label-921
SELECT + - 31 AS col0, COUNT( DISTINCT - 22 ) * + 30 * + 90
----
-31
2700

skipif mysql # not compatible
query II rowsort label-921
SELECT + - 31 AS col0, COUNT ( DISTINCT - 22 ) * + 30 * + 90
----
-31
2700

query II rowsort
SELECT - - 86 * - 47 + + 15 * - 42 AS col2, 78 AS col2
----
-4672
78

query II rowsort
SELECT ALL - 75 * 66, 0 AS col0
----
-4950
0

query I rowsort
SELECT - 24 + - 53
----
-77

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

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

query I rowsort
SELECT DISTINCT + 64 * - 89 + - NULLIF ( 0, + 39 ) + - 86 + 35 * 72 - ( 14 + + 39 ) AS col2
----
-3315

onlyif mysql # aggregate syntax: 
query I rowsort label-927
SELECT ALL - COUNT( DISTINCT - - 23 )
----
-1

skipif mysql # not compatible
query I rowsort label-927
SELECT ALL - COUNT ( DISTINCT - - 23 )
----
-1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-929
SELECT ALL + 40 * + 94 * - + COUNT( * )
----
-3760

skipif mysql # not compatible
query I rowsort label-929
SELECT ALL + 40 * + 94 * - + COUNT ( * )
----
-3760

onlyif mysql # aggregate syntax: 
query I rowsort label-930
SELECT DISTINCT - 82 * + 13 * ( - - COUNT( * ) ) - 82 AS col1
----
-1148

skipif mysql # not compatible
query I rowsort label-930
SELECT DISTINCT - 82 * + 13 * ( - - COUNT ( * ) ) - 82 AS col1
----
-1148

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-932
SELECT ALL + 59 DIV 71 * + 48 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-932
SELECT ALL + 59 / 71 * + 48 AS col1
----
0

query I rowsort
SELECT + + ( - - ( + 85 ) ) + + 83 AS col1
----
168

onlyif mysql # aggregate syntax: 
query II rowsort label-934
SELECT ALL 19, NULLIF ( - 92, + 42 ) + - CASE - 72 WHEN COUNT( * ) - COUNT( ALL 2 ) THEN 65 * 7 WHEN COUNT( * ) THEN 32 END + - ( 86 + 39 * 12 ) AS col2
----
19
NULL

skipif mysql # not compatible
query II rowsort label-934
SELECT ALL 19, NULLIF ( - 92, + 42 ) + - CASE - 72 WHEN COUNT ( * ) - COUNT ( ALL 2 ) THEN 65 * 7 WHEN COUNT ( * ) THEN 32 END + - ( 86 + 39 * 12 ) AS col2
----
19
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-936
SELECT DISTINCT - COALESCE ( + - 82, + ( - + COUNT( * ) ), - 26 - - 35, 30 )
----
82

skipif mysql # not compatible
query I rowsort label-936
SELECT DISTINCT - COALESCE ( + - 82, + ( - + COUNT ( * ) ), - 26 - - 35, 30 )
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-937
SELECT - 10 + + CAST( + + 97 AS SIGNED ) * 34
----
3288

skipif mysql # not compatible
query I rowsort label-937
SELECT - 10 + + CAST ( + + 97 AS INTEGER ) * 34
----
3288

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

skipif mysql # not compatible
query I rowsort label-938
SELECT 17 * COUNT ( * )
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-939
SELECT - 54 * MIN( - 50 ) col2
----
2700

skipif mysql # not compatible
query I rowsort label-939
SELECT - 54 * MIN ( - 50 ) col2
----
2700

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-940
SELECT DISTINCT 65 * - + 40 AS col2, - COALESCE ( + - 3, - 35 / + + 4, CAST( + 18 AS SIGNED ) + 18 ) + - CASE COUNT( * ) WHEN 87 THEN 44 END AS col2
----
-2600
NULL

skipif mysql # not compatible
query II rowsort label-940
SELECT DISTINCT 65 * - + 40 AS col2, - COALESCE ( + - 3, - 35 / + + 4, CAST ( + 18 AS INTEGER ) + 18 ) + - CASE COUNT ( * ) WHEN 87 THEN 44 END AS col2
----
-2600
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-942
SELECT DISTINCT 35 + + NULLIF ( + 23, + 4 + - SUM( - 24 ) ) col1
----
58

skipif mysql # not compatible
query I rowsort label-942
SELECT DISTINCT 35 + + NULLIF ( + 23, + 4 + - SUM ( - 24 ) ) col1
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-943
SELECT ALL + COALESCE ( - 92, - COUNT( * ), + + 95 + 50 ) + + MIN( + - 36 ) DIV 7 AS col2
----
-97

skipif mysql # not compatible
query I rowsort label-943
SELECT ALL + COALESCE ( - 92, - COUNT ( * ), + + 95 + 50 ) + + MIN ( + - 36 ) / 7 AS col2
----
-97

query I rowsort
SELECT DISTINCT - 45 + 0 AS col1
----
-45

query I rowsort
SELECT DISTINCT 29 * + ( - 84 )
----
-2436

query I rowsort
SELECT 21 * 48 AS col0
----
1008

query I rowsort
SELECT 92 * - + 29 AS col1
----
-2668

query I rowsort
SELECT ALL NULLIF ( + + 28, - 89 ) + - + 7
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-949
SELECT 11 DIV - 52
----
0

skipif mysql # not compatible
query I rowsort label-949
SELECT 11 / - 52
----
0

query I rowsort
SELECT 46 + - - 9 col2
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-951
SELECT ALL - 28 DIV - 22
----
1

skipif mysql # not compatible
query I rowsort label-951
SELECT ALL - 28 / - 22
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-952
SELECT + 57 * + + 40 * + - 4 + 95 DIV COUNT( * ) col1
----
-9025

skipif mysql # not compatible
query I rowsort label-952
SELECT + 57 * + + 40 * + - 4 + 95 / COUNT ( * ) col1
----
-9025

onlyif mysql # aggregate syntax: 
query I rowsort label-953
SELECT DISTINCT - NULLIF ( + + 27, - COUNT( * ) ) * + ( + 3 )
----
-81

skipif mysql # not compatible
query I rowsort label-953
SELECT DISTINCT - NULLIF ( + + 27, - COUNT ( * ) ) * + ( + 3 )
----
-81

query I rowsort
SELECT ALL - 92 * ( + + 30 ) * - 81
----
223560

query I rowsort
SELECT 42 + - 14 + 86 * - 0
----
28

query I rowsort
SELECT 46 * - 23 AS col2
----
-1058

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-957
SELECT ALL CAST( + + COUNT( * ) AS SIGNED ) - + + 38 + - 3 + + + CAST( NULL AS SIGNED ) + CAST( NULL AS DECIMAL ) * + 55 * - 80 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-957
SELECT ALL CAST ( + + COUNT ( * ) AS INTEGER ) - + + 38 + - 3 + + + CAST ( NULL AS INTEGER ) + CAST ( NULL AS REAL ) * + 55 * - 80 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 37 * 87
----
-3219

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-959
SELECT - 86 DIV - MAX( DISTINCT + - 59 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-959
SELECT - 86 / - MAX ( DISTINCT + - 59 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-960
SELECT 48 - SUM( + ( + 86 ) ) + + 30 * 96 * - 75
----
-216038

skipif mysql # not compatible
query I rowsort label-960
SELECT 48 - SUM ( + ( + 86 ) ) + + 30 * 96 * - 75
----
-216038

onlyif mysql # aggregate syntax: 
query I rowsort label-961
SELECT - MAX( 29 ) * + 32
----
-928

skipif mysql # not compatible
query I rowsort label-961
SELECT - MAX ( 29 ) * + 32
----
-928

query I rowsort
SELECT - 81 * + 28 + + 85 + 55
----
-2128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-963
SELECT DISTINCT - CAST( MAX( + - 12 ) AS SIGNED ) AS col2
----
12

skipif mysql # not compatible
query I rowsort label-963
SELECT DISTINCT - CAST ( MAX ( + - 12 ) AS INTEGER ) AS col2
----
12

query I rowsort
SELECT + 91 + - 15 * - - 92 AS col1
----
-1289

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-965
SELECT DISTINCT - - COUNT( * ) * + - 4 DIV + + 72
----
0

skipif mysql # not compatible
query I rowsort label-965
SELECT DISTINCT - - COUNT ( * ) * + - 4 / + + 72
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-966
SELECT - ( 52 ), - COUNT( * ) DIV 80 col0
----
-52
0

skipif mysql # not compatible
query II rowsort label-966
SELECT - ( 52 ), - COUNT ( * ) / 80 col0
----
-52
0

onlyif mysql # aggregate syntax: 
query II rowsort label-967
SELECT 73 * + 48 AS col2, 77 * MIN( DISTINCT - 32 )
----
3504
-2464

skipif mysql # not compatible
query II rowsort label-967
SELECT 73 * + 48 AS col2, 77 * MIN ( DISTINCT - 32 )
----
3504
-2464

query I rowsort
SELECT + 7 * ( + + 52 )
----
364

onlyif mysql # aggregate syntax: 
query I rowsort label-969
SELECT - + COALESCE ( - + COUNT( * ), + SUM( DISTINCT + - 38 ), + + 35, - - SUM( ALL + 37 ) )
----
1

skipif mysql # not compatible
query I rowsort label-969
SELECT - + COALESCE ( - + COUNT ( * ), + SUM ( DISTINCT + - 38 ), + + 35, - - SUM ( ALL + 37 ) )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-970
SELECT 2 * + ( - 5 ) DIV + 27 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-970
SELECT 2 * + ( - 5 ) / + 27 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-971
SELECT ALL + MAX( ALL 23 ) + + COUNT( * ) DIV + COUNT( * ) col0
----
24

skipif mysql # not compatible
query I rowsort label-971
SELECT ALL + MAX ( ALL 23 ) + + COUNT ( * ) / + COUNT ( * ) col0
----
24

query I rowsort
SELECT DISTINCT NULLIF ( - ( + - ( 38 ) ), + + ( - 73 ) ) + 98
----
136

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-974
SELECT 92 + - 4 * COUNT( * ) * - 43 * - COUNT( * )
----
-80

skipif mysql # not compatible
query I rowsort label-974
SELECT 92 + - 4 * COUNT ( * ) * - 43 * - COUNT ( * )
----
-80

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

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

query I rowsort
SELECT ALL 23 + 17 + + 32
----
72

query I rowsort
SELECT 1 + - + 58 col2
----
-57

onlyif mysql # aggregate syntax: 
query II rowsort label-978
SELECT COUNT( * ) + + 53 + - 4, CASE + SUM( - 58 ) WHEN + + NULLIF ( + 33, 3 * + 50 + NULLIF ( + AVG ( 73 ), + 14 + - 8 ) ) / 98 THEN 97 * - 57 WHEN + COUNT( * ) + + 5 THEN NULL ELSE NULL END AS col2
----
50
NULL

skipif mysql # not compatible
query II rowsort label-978
SELECT COUNT ( * ) + + 53 + - 4, CASE + SUM ( - 58 ) WHEN + + NULLIF ( + 33, 3 * + 50 + NULLIF ( + AVG ( 73 ), + 14 + - 8 ) ) / 98 THEN 97 * - 57 WHEN + COUNT ( * ) + + 5 THEN NULL ELSE NULL END AS col2
----
50
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-980
SELECT SUM ( + 2 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-981
SELECT 27 * + - 65 * + COUNT( * )
----
-1755

skipif mysql # not compatible
query I rowsort label-981
SELECT 27 * + - 65 * + COUNT ( * )
----
-1755

query I rowsort
SELECT DISTINCT 10 * - 56 AS col0
----
-560

onlyif mysql # aggregate syntax: 
query I rowsort label-983
SELECT DISTINCT - COUNT( * ) * CASE ( 24 ) WHEN + - 51 THEN - 80 WHEN - + 78 THEN + 64 * + MIN( ALL - 82 ) - - 24 END - - 55 * 79 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-983
SELECT DISTINCT - COUNT ( * ) * CASE ( 24 ) WHEN + - 51 THEN - 80 WHEN - + 78 THEN + 64 * + MIN ( ALL - 82 ) - - 24 END - - 55 * 79 AS col0
----
NULL

query I rowsort
SELECT 46 + 70 * + + 20 + 69
----
1515

onlyif mysql # aggregate syntax: 
query I rowsort label-985
SELECT SUM( DISTINCT - - ( + - 15 ) ) * - 95
----
1425

skipif mysql # not compatible
query I rowsort label-985
SELECT SUM ( DISTINCT - - ( + - 15 ) ) * - 95
----
1425

onlyif mysql # aggregate syntax: 
query I rowsort label-986
SELECT COUNT( ALL - 9 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-986
SELECT COUNT ( ALL - 9 ) col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-987
SELECT - ( - 2 ) DIV - COUNT( * ) + - + 43 col1
----
-45

skipif mysql # not compatible
query I rowsort label-987
SELECT - ( - 2 ) / - COUNT ( * ) + - + 43 col1
----
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-988
SELECT ( + 79 ) DIV + COALESCE ( + ( + 37 ), - 8 )
----
2

skipif mysql # not compatible
query I rowsort label-988
SELECT ( + 79 ) / + COALESCE ( + ( + 37 ), - 8 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-989
SELECT + 92 * + 24 + + COUNT( * ) + - 94 - 9 * - 2 * MAX( - 15 ) + ( 41 ) * - 62
----
-697

skipif mysql # not compatible
query I rowsort label-989
SELECT + 92 * + 24 + + COUNT ( * ) + - 94 - 9 * - 2 * MAX ( - 15 ) + ( 41 ) * - 62
----
-697

query I rowsort
SELECT 89 * + - 36 + + NULLIF ( - + 90, - - 95 ) AS col2
----
-3294

onlyif mysql # aggregate syntax: 
query I rowsort label-991
SELECT ALL - CASE 49 WHEN MAX( ALL - 15 ) THEN NULL WHEN - + COALESCE ( + + 5, + - 2 ) THEN MAX( 51 ) + 11 END
----
NULL

skipif mysql # not compatible
query I rowsort label-991
SELECT ALL - CASE 49 WHEN MAX ( ALL - 15 ) THEN NULL WHEN - + COALESCE ( + + 5, + - 2 ) THEN MAX ( 51 ) + 11 END
----
NULL

query II rowsort
SELECT - 68 AS col1, - 41 AS col1
----
-68
-41

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

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

query I rowsort
SELECT ALL + 93 * - 20 * - 75 * + + 64 col1
----
8928000

onlyif mysql # DIV for integer division: 
query I rowsort label-995
SELECT DISTINCT + 82 DIV - 72
----
-1

skipif mysql # not compatible
query I rowsort label-995
SELECT DISTINCT + 82 / - 72
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-996
SELECT 32 + - - 94 - + + ( - COUNT( * ) ) + + 44
----
171

skipif mysql # not compatible
query I rowsort label-996
SELECT 32 + - - 94 - + + ( - COUNT ( * ) ) + + 44
----
171

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-998
SELECT ALL + 32 + + - 15 - - COUNT( - 2 ) DIV + 38
----
17

skipif mysql # not compatible
query I rowsort label-998
SELECT ALL + 32 + + - 15 - - COUNT ( - 2 ) / + 38
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-999
SELECT + + COALESCE ( COUNT( * ), - + COALESCE ( + 18, NULLIF ( - - 55, + - 41 ) ), MAX( ALL + 42 ) * + 56 ) + + 48
----
49

skipif mysql # not compatible
query I rowsort label-999
SELECT + + COALESCE ( COUNT ( * ), - + COALESCE ( + 18, NULLIF ( - - 55, + - 41 ) ), MAX ( ALL + 42 ) * + 56 ) + + 48
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1000
SELECT + - 52 + - COALESCE ( + - 92, - - COUNT( * ) * - ( - 84 ) + - 80 * - 99, + 83 * 75 + ( COUNT( * ) ), + 39 * - 11 + 22 ) + CASE - ( + 43 ) WHEN - 40 + 72 THEN COALESCE ( + 88, 37 + 34 ) * 33 + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * 57 WHEN + 55 THEN NULL ELSE + 23 END DIV COUNT( * ) * - 51 AS col2
----
-1133

skipif mysql # not compatible
query I rowsort label-1000
SELECT + - 52 + - COALESCE ( + - 92, - - COUNT ( * ) * - ( - 84 ) + - 80 * - 99, + 83 * 75 + ( COUNT ( * ) ), + 39 * - 11 + 22 ) + CASE - ( + 43 ) WHEN - 40 + 72 THEN COALESCE ( + 88, 37 + 34 ) * 33 + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * 57 WHEN + 55 THEN NULL ELSE + 23 END / COUNT ( * ) * - 51 AS col2
----
-1133

onlyif mysql # aggregate syntax: 
query I rowsort label-1001
SELECT - 78 - - + MAX( + 67 )
----
-11

skipif mysql # not compatible
query I rowsort label-1001
SELECT - 78 - - + MAX ( + 67 )
----
-11

onlyif mysql # aggregate syntax: 
query II rowsort label-1002
SELECT DISTINCT - COUNT( * ) * - ( 18 ) AS col0, - MIN( ALL 43 )
----
18
-43

skipif mysql # not compatible
query II rowsort label-1002
SELECT DISTINCT - COUNT ( * ) * - ( 18 ) AS col0, - MIN ( ALL 43 )
----
18
-43

query II rowsort
SELECT 7 col2, 73
----
7
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1004
SELECT 13 * 60 + - CAST( - NULLIF ( + 85, - ( + 87 ) ) AS SIGNED ) - + MIN( DISTINCT + 0 ) * + 33
----
865

skipif mysql # not compatible
query I rowsort label-1004
SELECT 13 * 60 + - CAST ( - NULLIF ( + 85, - ( + 87 ) ) AS INTEGER ) - + MIN ( DISTINCT + 0 ) * + 33
----
865

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1005
SELECT DISTINCT + COUNT( * ) + + COALESCE ( + COALESCE ( + 1, - 9 * + 66 * + 34 DIV + + 92 + + 38 DIV ( + 62 ), 39 ), - 33 + - 56 )
----
2

skipif mysql # not compatible
query I rowsort label-1005
SELECT DISTINCT + COUNT ( * ) + + COALESCE ( + COALESCE ( + 1, - 9 * + 66 * + 34 / + + 92 + + 38 / ( + 62 ), 39 ), - 33 + - 56 )
----
2

query I rowsort
SELECT DISTINCT + 38 + - 15 AS col0
----
23

onlyif mysql # aggregate syntax: 
query II rowsort label-1007
SELECT ALL + - 90 + - MAX( ALL 56 ), 68 AS col0
----
-146
68

skipif mysql # not compatible
query II rowsort label-1007
SELECT ALL + - 90 + - MAX ( ALL 56 ), 68 AS col0
----
-146
68

onlyif mysql # aggregate syntax: 
query I rowsort label-1008
SELECT - 58 + - - NULLIF ( - SUM( 28 ), CASE - - 46 WHEN - - 17 THEN - 1 WHEN - COALESCE ( + 75, + 80 * - COUNT( * ) ) THEN 62 END + + 35 )
----
-86

skipif mysql # not compatible
query I rowsort label-1008
SELECT - 58 + - - NULLIF ( - SUM ( 28 ), CASE - - 46 WHEN - - 17 THEN - 1 WHEN - COALESCE ( + 75, + 80 * - COUNT ( * ) ) THEN 62 END + + 35 )
----
-86

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

skipif mysql # not compatible
query I rowsort label-1009
SELECT ALL + COUNT ( * ) + 3 AS col0
----
4

query I rowsort
SELECT - 65 + - 55 AS col1
----
-120

query I rowsort
SELECT ALL - ( + 53 ) + + ( - ( 6 ) ) AS col1
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-1012
SELECT ALL ( - ( - NULLIF ( + COALESCE ( + - MAX( ALL 84 ), 17 ), + - NULLIF ( + + 68, + COUNT( * ) ) ) ) ) AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-1012
SELECT ALL ( - ( - NULLIF ( + COALESCE ( + - MAX ( ALL 84 ), 17 ), + - NULLIF ( + + 68, + COUNT ( * ) ) ) ) ) AS col2
----
-84

query I rowsort
SELECT - 41 + - 18 + + 32
----
-27

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1015
SELECT - 35 + - + COALESCE ( + CASE + ( + 91 ) WHEN 37 - + 9 THEN + COUNT( * ) DIV + + 59 WHEN 90 THEN NULL ELSE NULL END, + 72 * - 37 )
----
2629

skipif mysql # not compatible
query I rowsort label-1015
SELECT - 35 + - + COALESCE ( + CASE + ( + 91 ) WHEN 37 - + 9 THEN + COUNT ( * ) / + + 59 WHEN 90 THEN NULL ELSE NULL END, + 72 * - 37 )
----
2629

onlyif mysql # aggregate syntax: 
query I rowsort label-1016
SELECT ALL + COUNT( * ) * - 64 * + - 75
----
4800

skipif mysql # not compatible
query I rowsort label-1016
SELECT ALL + COUNT ( * ) * - 64 * + - 75
----
4800

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1017
SELECT ALL + ( + 65 ) * 4 / + CAST( NULL AS SIGNED ) + + 86 + - 51 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1017
SELECT ALL + ( + 65 ) * 4 / + CAST ( NULL AS INTEGER ) + + 86 + - 51 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1018
SELECT DISTINCT - 83 - COUNT( * )
----
-84

skipif mysql # not compatible
query I rowsort label-1018
SELECT DISTINCT - 83 - COUNT ( * )
----
-84

query I rowsort
SELECT ALL - ( 4 ) * - 12 * - 91 AS col2
----
-4368

onlyif mysql # aggregate syntax: 
query I rowsort label-1020
SELECT DISTINCT CASE - - ( - 17 ) WHEN + 39 * - 68 + COUNT( * ) THEN NULL WHEN - + 46 * + 91 / + 72 * ( + 2 ) THEN COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1020
SELECT DISTINCT CASE - - ( - 17 ) WHEN + 39 * - 68 + COUNT ( * ) THEN NULL WHEN - + 46 * + 91 / + 72 * ( + 2 ) THEN COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1021
SELECT - MIN( ALL - 80 ) AS col0, + 54 * - + 5 AS col1
----
80
-270

skipif mysql # not compatible
query II rowsort label-1021
SELECT - MIN ( ALL - 80 ) AS col0, + 54 * - + 5 AS col1
----
80
-270

query I rowsort
SELECT + CASE 67 WHEN - 40 THEN NULL ELSE - - 78 END * 67 AS col2
----
5226

onlyif mysql # aggregate syntax: 
query I rowsort label-1023
SELECT ALL + MAX( 4 ) AS col1
----
4

skipif mysql # not compatible
query I rowsort label-1023
SELECT ALL + MAX ( 4 ) AS col1
----
4

query I rowsort
SELECT - 39 - - 49 + 9
----
19

query I rowsort
SELECT + 45 * + 13 AS col2
----
585

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

query II rowsort
SELECT ( 52 ), 71 + + 47 AS col0
----
52
118

query II rowsort
SELECT - 90 * - 42 AS col1, - 11 AS col1
----
3780
-11

onlyif mysql # aggregate syntax: 
query II rowsort label-1029
SELECT + 60 * 66 AS col2, 68 - - NULLIF ( 68, - SUM( + - 67 ) )
----
3960
136

skipif mysql # not compatible
query II rowsort label-1029
SELECT + 60 * 66 AS col2, 68 - - NULLIF ( 68, - SUM ( + - 67 ) )
----
3960
136

query I rowsort
SELECT DISTINCT - 96 * + 48 - 63 * - 83
----
621

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1031
SELECT DISTINCT + COALESCE ( + ( COUNT( * ) ), 24 * - 34 * - CAST( NULL AS SIGNED ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1031
SELECT DISTINCT + COALESCE ( + ( COUNT ( * ) ), 24 * - 34 * - CAST ( NULL AS INTEGER ) ) AS col2
----
1

query I rowsort
SELECT + + 41 + + - 58 AS col2
----
-17

query I rowsort
SELECT ALL - 22 * 57 + + 97 col2
----
-1157

onlyif mysql # aggregate syntax: 
query I rowsort label-1034
SELECT COUNT( * ) * + COALESCE ( + 41, - 50, NULLIF ( + 10, 79 * - - 84 ) ) + + 45 AS col2
----
86

skipif mysql # not compatible
query I rowsort label-1034
SELECT COUNT ( * ) * + COALESCE ( + 41, - 50, NULLIF ( + 10, 79 * - - 84 ) ) + + 45 AS col2
----
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1035
SELECT - MIN( DISTINCT + 87 ) * + ( + 54 ) + + COUNT( * ) DIV 69 AS col2
----
-4698

skipif mysql # not compatible
query I rowsort label-1035
SELECT - MIN ( DISTINCT + 87 ) * + ( + 54 ) + + COUNT ( * ) / 69 AS col2
----
-4698

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1036
SELECT + COUNT( * ) - + 96 * - 61 + 8 * + 91 + - 43 DIV - - 92 AS col0
----
6585

skipif mysql # not compatible
query I rowsort label-1036
SELECT + COUNT ( * ) - + 96 * - 61 + 8 * + 91 + - 43 / - - 92 AS col0
----
6585

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1037
SELECT ALL - COUNT( * ) * + + 52 DIV + ( - - 31 ) AS col0
----
-1

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

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

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

query I rowsort
SELECT + CASE - COALESCE ( 98, - 81 ) WHEN 15 THEN - 56 / 48 - + + 79 WHEN + 45 THEN - - 56 / + 67 ELSE NULL END - ( + AVG ( ALL - 52 ) + + 10 ) col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1040
SELECT - COUNT( * ) * - COUNT( + 8 ) * + 61 + + + 67 * 36 DIV 97 + + ( - COUNT( * ) ) AS col1
----
84

skipif mysql # not compatible
query I rowsort label-1040
SELECT - COUNT ( * ) * - COUNT ( + 8 ) * + 61 + + + 67 * 36 / 97 + + ( - COUNT ( * ) ) AS col1
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-1041
SELECT - 35 DIV + 35 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1041
SELECT - 35 / + 35 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1042
SELECT ALL COALESCE ( + 34, - ( + 72 ), COUNT( DISTINCT + - 48 ) ) AS col1
----
34

skipif mysql # not compatible
query I rowsort label-1042
SELECT ALL COALESCE ( + 34, - ( + 72 ), COUNT ( DISTINCT + - 48 ) ) AS col1
----
34

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

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

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

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

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

query I rowsort
SELECT - 99 - + + 38 AS col1
----
-137

query I rowsort
SELECT - 58 * - 22 * + 37 AS col1
----
47212

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1048
SELECT - 68, + 38 * + ( - 59 ) DIV + - COUNT( * ) AS col1
----
-68
2242

skipif mysql # not compatible
query II rowsort label-1048
SELECT - 68, + 38 * + ( - 59 ) / + - COUNT ( * ) AS col1
----
-68
2242

query I rowsort
SELECT ALL + 79 * - 34
----
-2686

query I rowsort
SELECT ALL ( + NULLIF ( - 89, - 6 * - 52 + - - 35 ) )
----
-89

query I rowsort
SELECT + 39 + 24
----
63

query I rowsort
SELECT - 15 + + - 57 AS col1
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-1053
SELECT - MIN( 71 ) + - - 36
----
-35

skipif mysql # not compatible
query I rowsort label-1053
SELECT - MIN ( 71 ) + - - 36
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1054
SELECT - NULLIF ( + CAST( + COUNT( * ) AS SIGNED ), - NULLIF ( 61, - 33 ) ) DIV - 85 + - 25
----
-25

skipif mysql # not compatible
query I rowsort label-1054
SELECT - NULLIF ( + CAST ( + COUNT ( * ) AS INTEGER ), - NULLIF ( 61, - 33 ) ) / - 85 + - 25
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1055
SELECT - ( - 86 ) * CASE - 55 WHEN ( - 74 ) THEN NULL WHEN + COUNT( * ) THEN - CASE + 24 WHEN - - 59 * - 60 THEN NULL WHEN 73 THEN NULL WHEN 20 THEN - COUNT( DISTINCT - 39 ) * COUNT( * ) END END + ( - COUNT( + CAST( NULL AS SIGNED ) ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1055
SELECT - ( - 86 ) * CASE - 55 WHEN ( - 74 ) THEN NULL WHEN + COUNT ( * ) THEN - CASE + 24 WHEN - - 59 * - 60 THEN NULL WHEN 73 THEN NULL WHEN 20 THEN - COUNT ( DISTINCT - 39 ) * COUNT ( * ) END END + ( - COUNT ( + CAST ( NULL AS INTEGER ) ) ) col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1056
SELECT DISTINCT + 15 * ( - + COUNT( + ( CAST( - - 94 AS SIGNED ) ) ) )
----
-15

skipif mysql # not compatible
query I rowsort label-1056
SELECT DISTINCT + 15 * ( - + COUNT ( + ( CAST ( - - 94 AS INTEGER ) ) ) )
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-1057
SELECT - 11 / + CASE + 0 WHEN 80 THEN - 28 * 25 - + 94 - - 0 + - 55 - + COUNT( * ) WHEN 31 * + ( - 97 ) - 75 THEN 81 + + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1057
SELECT - 11 / + CASE + 0 WHEN 80 THEN - 28 * 25 - + 94 - - 0 + - 55 - + COUNT ( * ) WHEN 31 * + ( - 97 ) - 75 THEN 81 + + COUNT ( * ) END
----
NULL

query I rowsort
SELECT - 32 * 81 + 52 + - 52 + - 73 * + 56 col0
----
-6680

onlyif mysql # aggregate syntax: 
query I rowsort label-1059
SELECT ALL - + COUNT( * ) + 51
----
50

skipif mysql # not compatible
query I rowsort label-1059
SELECT ALL - + COUNT ( * ) + 51
----
50

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

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

query I rowsort
SELECT - + 46 * - 71 + - - 73 AS col0
----
3339

onlyif mysql # aggregate syntax: 
query I rowsort label-1062
SELECT DISTINCT COALESCE ( - - 47, - 40 ) + + + COUNT( * ) + + + NULLIF ( - COUNT( - 29 ), + 68 ) - - 66 * - 41 * - ( - 60 ) AS col0
----
-162313

skipif mysql # not compatible
query I rowsort label-1062
SELECT DISTINCT COALESCE ( - - 47, - 40 ) + + + COUNT ( * ) + + + NULLIF ( - COUNT ( - 29 ), + 68 ) - - 66 * - 41 * - ( - 60 ) AS col0
----
-162313

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1063
SELECT 71 / 28 * - 59 + - MIN( ALL - + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1063
SELECT 71 / 28 * - 59 + - MIN ( ALL - + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL + 49 + - - 65
----
114

query I rowsort
SELECT ALL 48 + - 95
----
-47

query I rowsort
SELECT + 27 + 54
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1067
SELECT ALL - + 6 - + - COUNT( * ) - - COUNT( * ) + + - 76 + + - 65 * + 64 * - 56 * 97 * 82
----
1852963760

skipif mysql # not compatible
query I rowsort label-1067
SELECT ALL - + 6 - + - COUNT ( * ) - - COUNT ( * ) + + - 76 + + - 65 * + 64 * - 56 * 97 * 82
----
1852963760

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1068
SELECT 81 + CAST( - 35 AS SIGNED ) AS col2
----
46

skipif mysql # not compatible
query I rowsort label-1068
SELECT 81 + CAST ( - 35 AS INTEGER ) AS col2
----
46

query II rowsort
SELECT + 42 AS col0, + 98 + - 62 AS col2
----
42
36

query I rowsort
SELECT 1 + 46
----
47

query I rowsort
SELECT - 48 * 23 + 77 AS col0
----
-1027

query II rowsort
SELECT DISTINCT 3 AS col2, 0
----
3
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1073
SELECT DISTINCT 52 - - - COUNT( * ) * - 45 * - + 6 * + 77 * - 99 + + COUNT( * ) + - 77
----
2058186

skipif mysql # not compatible
query I rowsort label-1073
SELECT DISTINCT 52 - - - COUNT ( * ) * - 45 * - + 6 * + 77 * - 99 + + COUNT ( * ) + - 77
----
2058186

onlyif mysql # DIV for integer division: 
query I rowsort label-1074
SELECT 36 + + + 95 + - 8 DIV + 57 - - + 35 * - ( - 14 ) + + + 3
----
624

skipif mysql # not compatible
query I rowsort label-1074
SELECT 36 + + + 95 + - 8 / + 57 - - + 35 * - ( - 14 ) + + + 3
----
624

onlyif mysql # DIV for integer division: 
query I rowsort label-1075
SELECT DISTINCT 99 DIV - ( + 8 ) AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-1075
SELECT DISTINCT 99 / - ( + 8 ) AS col0
----
-12

query II rowsort
SELECT ALL 67 AS col0, + 83 AS col0
----
67
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1077
SELECT 20 DIV MAX( - 67 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1077
SELECT 20 / MAX ( - 67 ) AS col0
----
0

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

skipif mysql # not compatible
query I rowsort label-1078
SELECT 55 + COUNT ( * ) - + 83 AS col2
----
-27

query I rowsort
SELECT 71 + + ( + NULLIF ( 79, + 79 ) )
----
NULL

query I rowsort
SELECT 45 * - + 37 * + + 47 AS col0
----
-78255

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1082
SELECT ALL + 75 + + + 52 + + 20 * - + CAST( NULL AS SIGNED ) + + + AVG ( ALL + 31 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1082
SELECT ALL + 75 + + + 52 + + 20 * - + CAST ( NULL AS INTEGER ) + + + AVG ( ALL + 31 )
----
NULL

query II rowsort
SELECT 95 col1, + 30 + - + ( + ( - + 8 ) ) AS col2
----
95
38

query I rowsort
SELECT ALL 50 + + 28 * - 40 AS col2
----
-1070

query I rowsort
SELECT 37 * - 91 + - 81
----
-3448

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1086
SELECT ALL CAST( + ( + MAX( ALL 98 ) ) AS SIGNED ) + - 68 * - 21 AS col1
----
1526

skipif mysql # not compatible
query I rowsort label-1086
SELECT ALL CAST ( + ( + MAX ( ALL 98 ) ) AS INTEGER ) + - 68 * - 21 AS col1
----
1526

query II rowsort
SELECT + 37 AS col2, 79 + 47
----
37
126

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1088
SELECT ALL - CASE - + 37 WHEN - CAST( + 81 AS SIGNED ) - + 31 - 0 + - COUNT( * ) * - 81 * - 5 THEN 15 + ( + 89 ) WHEN - CAST( MIN( - 36 ) AS SIGNED ) * 50 - ( 42 ) THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1088
SELECT ALL - CASE - + 37 WHEN - CAST ( + 81 AS INTEGER ) - + 31 - 0 + - COUNT ( * ) * - 81 * - 5 THEN 15 + ( + 89 ) WHEN - CAST ( MIN ( - 36 ) AS INTEGER ) * 50 - ( 42 ) THEN NULL END AS col2
----
NULL

query I rowsort
SELECT 17 * + - 95 + + - 79
----
-1694

query I rowsort
SELECT + 35 * + 80 + + ( - 2 )
----
2798

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1092
SELECT ALL - COUNT( * ) + + 75 col1
----
74

skipif mysql # not compatible
query I rowsort label-1092
SELECT ALL - COUNT ( * ) + + 75 col1
----
74

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1095
SELECT DISTINCT - + SUM( + 15 ) AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-1095
SELECT DISTINCT - + SUM ( + 15 ) AS col0
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1096
SELECT - 29 DIV - 81 DIV COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-1096
SELECT - 29 / - 81 / COUNT ( * )
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1098
SELECT - 68 * + + MIN( ALL + 14 ) + - 67
----
-1019

skipif mysql # not compatible
query I rowsort label-1098
SELECT - 68 * + + MIN ( ALL + 14 ) + - 67
----
-1019

onlyif mysql # aggregate syntax: 
query I rowsort label-1099
SELECT MAX( 58 ) * - - 74 AS col1
----
4292

skipif mysql # not compatible
query I rowsort label-1099
SELECT MAX ( 58 ) * - - 74 AS col1
----
4292

query I rowsort
SELECT 65 + - + 39 * ( 24 )
----
-871

onlyif mysql # DIV for integer division: 
query II rowsort label-1101
SELECT ALL - 53, + 9 DIV + 5 + - + 47 AS col2
----
-53
-46

skipif mysql # not compatible
query II rowsort label-1101
SELECT ALL - 53, + 9 / + 5 + - + 47 AS col2
----
-53
-46

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

skipif mysql # not compatible
query II rowsort label-1102
SELECT 69 col1, COUNT ( * ) AS col2
----
69
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1103
SELECT - COUNT( DISTINCT + + 6 ) * 72 + 6 + - 66
----
-132

skipif mysql # not compatible
query I rowsort label-1103
SELECT - COUNT ( DISTINCT + + 6 ) * 72 + 6 + - 66
----
-132

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1104
SELECT 40 DIV - + COALESCE ( 67, - 21 ) * + MAX( ALL - + ( 30 ) ) * + - 72 AS col0, + 56 * + 77
----
0
4312

skipif mysql # not compatible
query II rowsort label-1104
SELECT 40 / - + COALESCE ( 67, - 21 ) * + MAX ( ALL - + ( 30 ) ) * + - 72 AS col0, + 56 * + 77
----
0
4312

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1106
SELECT 46 + - - 85 + - + 9 + ( 44 ) + - - CAST( - 65 AS SIGNED ) - COUNT( DISTINCT + 54 ) - 14 * + - 23 * 33 - - 12 DIV 78 DIV 88 AS col1
----
10726

skipif mysql # not compatible
query I rowsort label-1106
SELECT 46 + - - 85 + - + 9 + ( 44 ) + - - CAST ( - 65 AS INTEGER ) - COUNT ( DISTINCT + 54 ) - 14 * + - 23 * 33 - - 12 / 78 / 88 AS col1
----
10726

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-1108
SELECT DISTINCT 11 * - COUNT( - + CAST( - 50 AS DECIMAL ) ) * - 25 AS col0, + 47 + 32 DIV CAST( - 44 AS SIGNED )
----
275
47

skipif mysql # not compatible
query II rowsort label-1108
SELECT DISTINCT 11 * - COUNT ( - + CAST ( - 50 AS REAL ) ) * - 25 AS col0, + 47 + 32 / CAST ( - 44 AS INTEGER )
----
275
47

onlyif mysql # aggregate syntax: 
query II rowsort label-1109
SELECT ALL SUM( DISTINCT - 3 ) AS col1, - 94 AS col1
----
-3
-94

skipif mysql # not compatible
query II rowsort label-1109
SELECT ALL SUM ( DISTINCT - 3 ) AS col1, - 94 AS col1
----
-3
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-1110
SELECT ALL - NULLIF ( - 59, + ( 72 ) ) * - COUNT( - 93 ) * + - 57
----
3363

skipif mysql # not compatible
query I rowsort label-1110
SELECT ALL - NULLIF ( - 59, + ( 72 ) ) * - COUNT ( - 93 ) * + - 57
----
3363

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

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

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

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

query I rowsort
SELECT 26 - + 5
----
21

query I rowsort
SELECT 65 * + 39 AS col1
----
2535

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1117
SELECT ALL - ( + 80 ) + + 41 + + ( + COUNT( * ) ) * - COUNT( - ( + - 47 ) ) * + 66
----
-105

skipif mysql # not compatible
query I rowsort label-1117
SELECT ALL - ( + 80 ) + + 41 + + ( + COUNT ( * ) ) * - COUNT ( - ( + - 47 ) ) * + 66
----
-105

onlyif mysql # DIV for integer division: 
query I rowsort label-1118
SELECT DISTINCT 97 DIV 65
----
1

skipif mysql # not compatible
query I rowsort label-1118
SELECT DISTINCT 97 / 65
----
1

query I rowsort
SELECT ALL 53 + + 8 + + 99 + + 58 AS col0
----
218

onlyif mysql # aggregate syntax: 
query I rowsort label-1120
SELECT + CASE + 52 WHEN + 26 / + 88 * + - 23 * 22 * + - 76 / + NULLIF ( - 31, + 42 / - 66 * - ( COUNT( * ) ) * CASE 22 WHEN - 9 + - 66 * + 20 THEN + 41 * + MIN( DISTINCT - 65 ) WHEN 51 THEN 99 + + 0 END ) THEN NULL ELSE 34 + - 10 END
----
24

skipif mysql # not compatible
query I rowsort label-1120
SELECT + CASE + 52 WHEN + 26 / + 88 * + - 23 * 22 * + - 76 / + NULLIF ( - 31, + 42 / - 66 * - ( COUNT ( * ) ) * CASE 22 WHEN - 9 + - 66 * + 20 THEN + 41 * + MIN ( DISTINCT - 65 ) WHEN 51 THEN 99 + + 0 END ) THEN NULL ELSE 34 + - 10 END
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-1121
SELECT + - 85 + - 24 + MIN( DISTINCT + 61 ) * + COALESCE ( - 74, 72, + + 15 - 44 )
----
-4623

skipif mysql # not compatible
query I rowsort label-1121
SELECT + - 85 + - 24 + MIN ( DISTINCT + 61 ) * + COALESCE ( - 74, 72, + + 15 - 44 )
----
-4623

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

query II rowsort
SELECT - + 4 - - 40 AS col0, - 87 * 95 + 96
----
36
-8169

query I rowsort
SELECT + - 35 + - ( + 97 ) * + + ( + 85 ) * - 52 AS col1
----
428705

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1125
SELECT ALL + 74 * 93 - - + CAST( - 57 AS SIGNED ) + 41 + + 56 + + - NULLIF ( + - 46, + 27 * COUNT( * ) + + 80 ) * + 23 * 46 + 15
----
55605

skipif mysql # not compatible
query I rowsort label-1125
SELECT ALL + 74 * 93 - - + CAST ( - 57 AS INTEGER ) + 41 + + 56 + + - NULLIF ( + - 46, + 27 * COUNT ( * ) + + 80 ) * + 23 * 46 + 15
----
55605

query I rowsort
SELECT ALL 42 * + 39 AS col0
----
1638

onlyif mysql # aggregate syntax: 
query I rowsort label-1127
SELECT + COUNT( * ) * + 51 + 8 - - + 42 * + + 27 AS col2
----
1193

skipif mysql # not compatible
query I rowsort label-1127
SELECT + COUNT ( * ) * + 51 + 8 - - + 42 * + + 27 AS col2
----
1193

query I rowsort
SELECT + + CASE - 91 WHEN - - CASE + - 79 WHEN + + 34 / + ( + 51 ) + + 22 THEN NULL ELSE 70 + - 51 END THEN + + 63 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1129
SELECT - 13 + + 62 DIV + 53 AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-1129
SELECT - 13 + + 62 / + 53 AS col0
----
-12

query I rowsort
SELECT ALL - + 30 * - 71 - + + 80
----
2050

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1132
SELECT - + CASE 68 WHEN + 24 + 98 * + - 23 THEN NULL ELSE + 16 * + 16 * - + 41 * NULLIF ( - 86, + ( + NULLIF ( CAST( NULL AS SIGNED ), 86 * - 40 ) ) ) + + 38 * - 77 + - 26 * NULLIF ( - 96, 66 ) END + MIN( DISTINCT 37 )
----
-902189

skipif mysql # not compatible
query I rowsort label-1132
SELECT - + CASE 68 WHEN + 24 + 98 * + - 23 THEN NULL ELSE + 16 * + 16 * - + 41 * NULLIF ( - 86, + ( + NULLIF ( CAST ( NULL AS INTEGER ), 86 * - 40 ) ) ) + + 38 * - 77 + - 26 * NULLIF ( - 96, 66 ) END + MIN ( DISTINCT 37 )
----
-902189

query I rowsort
SELECT ALL - - 77 * + 56 * - + 56
----
-241472

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1135
SELECT ALL 88 DIV 79 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1135
SELECT ALL 88 / 79 AS col0
----
1

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1137
SELECT DISTINCT + CASE 62 WHEN + - ( + 36 ) THEN NULL WHEN - - 51 THEN 36 * SUM( 27 ) * - 28 + + CAST( NULL AS SIGNED ) ELSE + - COUNT( * ) + + COUNT( * ) END AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1137
SELECT DISTINCT + CASE 62 WHEN + - ( + 36 ) THEN NULL WHEN - - 51 THEN 36 * SUM ( 27 ) * - 28 + + CAST ( NULL AS INTEGER ) ELSE + - COUNT ( * ) + + COUNT ( * ) END AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1138
SELECT ALL + MAX( + + 47 ) * + COUNT( * ) AS col0, + 14 * + 60 * - - 46 AS col1
----
47
38640

skipif mysql # not compatible
query II rowsort label-1138
SELECT ALL + MAX ( + + 47 ) * + COUNT ( * ) AS col0, + 14 * + 60 * - - 46 AS col1
----
47
38640

query I rowsort
SELECT - 52 * + 21 col2
----
-1092

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1141
SELECT - 40 + + + COUNT( ALL - NULLIF ( 94, - 93 ) ) + - 57 DIV CASE 19 WHEN - 16 DIV - - ( - - 73 ) THEN - COUNT( * ) - + 59 * - 53 ELSE 25 END AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-1141
SELECT - 40 + + + COUNT ( ALL - NULLIF ( 94, - 93 ) ) + - 57 / CASE 19 WHEN - 16 / - - ( - - 73 ) THEN - COUNT ( * ) - + 59 * - 53 ELSE 25 END AS col1
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1142
SELECT - 16 + + CASE - - 24 WHEN + 55 - 14 + + ( + + CAST( 12 AS SIGNED ) ) + ( + 34 ) + + 11 THEN - - CAST( - COUNT( * ) AS DECIMAL ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1142
SELECT - 16 + + CASE - - 24 WHEN + 55 - 14 + + ( + + CAST ( 12 AS INTEGER ) ) + ( + 34 ) + + 11 THEN - - CAST ( - COUNT ( * ) AS REAL ) END AS col1
----
NULL

query I rowsort
SELECT - 92 * ( - 29 )
----
2668

query I rowsort
SELECT ALL - 75 + + 45
----
-30

query I rowsort
SELECT ALL + 20 * + 21 AS col2
----
420

onlyif mysql # aggregate syntax: 
query I rowsort label-1146
SELECT ALL + ( + + 55 ) + + 52 * MAX( - 24 ) * + + 48
----
-59849

skipif mysql # not compatible
query I rowsort label-1146
SELECT ALL + ( + + 55 ) + + 52 * MAX ( - 24 ) * + + 48
----
-59849

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1147
SELECT DISTINCT - COUNT( ALL 99 ) + 58 DIV + - COUNT( * ) + - 35
----
-94

skipif mysql # not compatible
query I rowsort label-1147
SELECT DISTINCT - COUNT ( ALL 99 ) + 58 / + - COUNT ( * ) + - 35
----
-94

query I rowsort
SELECT - 62 + - 50 AS col2
----
-112

query I rowsort
SELECT ALL - 75 + + - 22 * 84 AS col1
----
-1923

query I rowsort
SELECT + ( - 52 ) + 66
----
14

query I rowsort
SELECT DISTINCT - 57 * 50
----
-2850

query I rowsort
SELECT - + 14 * - 12 AS col1
----
168

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1153
SELECT - COALESCE ( ( - 25 ), CAST( NULL AS SIGNED ) )
----
25

skipif mysql # not compatible
query I rowsort label-1153
SELECT - COALESCE ( ( - 25 ), CAST ( NULL AS INTEGER ) )
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-1154
SELECT + COUNT( * ) + + COUNT( * ) + 17
----
19

skipif mysql # not compatible
query I rowsort label-1154
SELECT + COUNT ( * ) + + COUNT ( * ) + 17
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1155
SELECT - 55 AS col2, - 78 * + - CAST( - 30 AS SIGNED )
----
-55
-2340

skipif mysql # not compatible
query II rowsort label-1155
SELECT - 55 AS col2, - 78 * + - CAST ( - 30 AS INTEGER )
----
-55
-2340

onlyif mysql # aggregate syntax: 
query II rowsort label-1156
SELECT + COUNT( * ) + + 12 + + - 39 col2, 57 * - 67 * + 36 * + 33
----
-26
-4536972

skipif mysql # not compatible
query II rowsort label-1156
SELECT + COUNT ( * ) + + 12 + + - 39 col2, 57 * - 67 * + 36 * + 33
----
-26
-4536972

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

skipif mysql # not compatible
query I rowsort label-1157
SELECT DISTINCT + - 62 - COUNT ( * ) AS col2
----
-63

query I rowsort
SELECT ALL - CASE - 8 WHEN 24 THEN 78 * + 48 + + 39 WHEN - 7 THEN NULL WHEN + 42 * 88 THEN NULL END AS col0
----
NULL

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

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

query I rowsort
SELECT + - 37 - 4
----
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-1161
SELECT + - 32 DIV - 70 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1161
SELECT + - 32 / - 70 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1162
SELECT DISTINCT 99 * + COALESCE ( 56, + COUNT( * ) + + 50, + - 53 * + CASE + + 12 WHEN 29 THEN + MIN( ALL - 44 ) + + 25 - + + 7 * 70 ELSE + 65 * + 97 END ) AS col1
----
5544

skipif mysql # not compatible
query I rowsort label-1162
SELECT DISTINCT 99 * + COALESCE ( 56, + COUNT ( * ) + + 50, + - 53 * + CASE + + 12 WHEN 29 THEN + MIN ( ALL - 44 ) + + 25 - + + 7 * 70 ELSE + 65 * + 97 END ) AS col1
----
5544

query I rowsort
SELECT - 43 + - 26 AS col2
----
-69

query II rowsort
SELECT ALL + - COALESCE ( - + 42, - 81 ) AS col0, - 41
----
42
-41

query I rowsort
SELECT ALL CASE + + 29 WHEN + 6 + - 34 THEN NULL WHEN - 21 THEN 8 ELSE NULL END * - + 17
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1166
SELECT - COUNT( * ) * 25 * 71
----
-1775

skipif mysql # not compatible
query I rowsort label-1166
SELECT - COUNT ( * ) * 25 * 71
----
-1775

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1167
SELECT ALL - 59 * + 77 + CAST( - 90 AS SIGNED ) col2
----
-4633

skipif mysql # not compatible
query I rowsort label-1167
SELECT ALL - 59 * + 77 + CAST ( - 90 AS INTEGER ) col2
----
-4633

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

skipif mysql # not compatible
query I rowsort label-1168
SELECT + 40 * 86 * + COUNT ( * ) * + 5 AS col2
----
17200

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1169
SELECT + 99 + + 69 + - COALESCE ( - - 71, + 78 + - - ( - + 1 ) ) - + 14 * - - COUNT( * ) DIV 20 DIV - 12 * + - 6
----
97

skipif mysql # not compatible
query I rowsort label-1169
SELECT + 99 + + 69 + - COALESCE ( - - 71, + 78 + - - ( - + 1 ) ) - + 14 * - - COUNT ( * ) / 20 / - 12 * + - 6
----
97

query II rowsort
SELECT ( 42 ) AS col2, ( + 65 ) AS col2
----
42
65

onlyif mysql # aggregate syntax: 
query I rowsort label-1171
SELECT 42 * COUNT( * ) + - 17 + 82 * - + 40 + 70 AS col2
----
-3185

skipif mysql # not compatible
query I rowsort label-1171
SELECT 42 * COUNT ( * ) + - 17 + 82 * - + 40 + 70 AS col2
----
-3185

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1173
SELECT DISTINCT - 49 * + COUNT( * ) + - ( - 39 ) AS col2, 33
----
-10
33

skipif mysql # not compatible
query II rowsort label-1173
SELECT DISTINCT - 49 * + COUNT ( * ) + - ( - 39 ) AS col2, 33
----
-10
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1174
SELECT COALESCE ( - - 77, - 83, + - CASE + 32 WHEN + 80 + 45 + 89 + + + 80 THEN - NULLIF ( + + 9, - - 43 * - 99 * - CAST( NULL AS SIGNED ) + SUM( 50 ) ) DIV + 43 + + COUNT( * ) ELSE NULL END )
----
77

skipif mysql # not compatible
query I rowsort label-1174
SELECT COALESCE ( - - 77, - 83, + - CASE + 32 WHEN + 80 + 45 + 89 + + + 80 THEN - NULLIF ( + + 9, - - 43 * - 99 * - CAST ( NULL AS INTEGER ) + SUM ( 50 ) ) / + 43 + + COUNT ( * ) ELSE NULL END )
----
77

query I rowsort
SELECT ALL - COALESCE ( + 43, 28 + + - 94, 15 ) AS col2
----
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1176
SELECT ALL 68 + + ( - 41 ) + - 93 * 21 + - ( - 45 ) * - - CASE 50 WHEN ( COUNT( * ) ) + - - 20 + - 40 * + COUNT( * ) + + 66 THEN NULL ELSE 29 END DIV - COUNT( * )
----
-3231

skipif mysql # not compatible
query I rowsort label-1176
SELECT ALL 68 + + ( - 41 ) + - 93 * 21 + - ( - 45 ) * - - CASE 50 WHEN ( COUNT ( * ) ) + - - 20 + - 40 * + COUNT ( * ) + + 66 THEN NULL ELSE 29 END / - COUNT ( * )
----
-3231

query I rowsort
SELECT 51 - 94 AS col1
----
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1178
SELECT CAST( - COALESCE ( - 69, + + 50 + + COUNT( 23 ), 29 ) AS SIGNED ) - + + ( - 2 ) AS col0
----
71

skipif mysql # not compatible
query I rowsort label-1178
SELECT CAST ( - COALESCE ( - 69, + + 50 + + COUNT ( 23 ), 29 ) AS INTEGER ) - + + ( - 2 ) AS col0
----
71

query I rowsort
SELECT - ( + 51 ) * - - 34
----
-1734

query I rowsort
SELECT ALL - 57 - - + 43 * + 50
----
2093

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

skipif mysql # not compatible
query I rowsort label-1181
SELECT COUNT ( * ) / - 52 + + - 38
----
-38

query I rowsort
SELECT + 55 - + 21
----
34

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

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

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

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

query I rowsort
SELECT 69 * - - 85 AS col1
----
5865

query I rowsort
SELECT DISTINCT + - 60 * - 48 - + 61 AS col1
----
2819

query I rowsort
SELECT 71 + + 68 + - 60
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-1188
SELECT - 48 + + 6 + - NULLIF ( 88, COUNT( * ) ) + 96
----
-34

skipif mysql # not compatible
query I rowsort label-1188
SELECT - 48 + + 6 + - NULLIF ( 88, COUNT ( * ) ) + 96
----
-34

query I rowsort
SELECT 61 - - + 7
----
68

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1191
SELECT ( + + CASE - CAST( - 9 AS SIGNED ) WHEN + CAST( - 15 AS SIGNED ) THEN NULL ELSE - 59 END ) AS col0, 9 AS col1
----
-59
9

skipif mysql # not compatible
query II rowsort label-1191
SELECT ( + + CASE - CAST ( - 9 AS INTEGER ) WHEN + CAST ( - 15 AS INTEGER ) THEN NULL ELSE - 59 END ) AS col0, 9 AS col1
----
-59
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1192
SELECT ALL - 89 + - 84 - 70 + + + COUNT( * ) * - 6 * - 85
----
267

skipif mysql # not compatible
query I rowsort label-1192
SELECT ALL - 89 + - 84 - 70 + + + COUNT ( * ) * - 6 * - 85
----
267

query I rowsort
SELECT ALL - + ( + 12 ) col2
----
-12

query I rowsort
SELECT 71 * - 48 - 96
----
-3504

query II rowsort
SELECT + 48, ( + 32 ) + + - 41 AS col1
----
48
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-1196
SELECT - 50 * + + MIN( + + 97 ) * 31 + 44
----
-150306

skipif mysql # not compatible
query I rowsort label-1196
SELECT - 50 * + + MIN ( + + 97 ) * 31 + 44
----
-150306

query I rowsort
SELECT ALL 87 * 97 AS col2
----
8439

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1198
SELECT 81 DIV - + ( - ( + 3 ) ) * - + COUNT( * ) * - COUNT( * )
----
27

skipif mysql # not compatible
query I rowsort label-1198
SELECT 81 / - + ( - ( + 3 ) ) * - + COUNT ( * ) * - COUNT ( * )
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1199
SELECT ALL - 0 AS col1, 75 * - 91 * ( + 47 ) * 4 * - + 57 / + CASE - - COUNT( * ) WHEN + SUM( DISTINCT + 73 ) * - CAST( NULL AS SIGNED ) * + 35 + - 44 - - 4 + + 83 * + 88 THEN AVG ( 9 ) * 46 + + 6 * 21 WHEN + CAST( + COUNT( * ) AS DECIMAL ) THEN NULL WHEN + 98 + + 7 * - 78 THEN + 32 + + MIN( - 33 ) END + 58 AS col2
----
0
NULL

skipif mysql # not compatible
query II rowsort label-1199
SELECT ALL - 0 AS col1, 75 * - 91 * ( + 47 ) * 4 * - + 57 / + CASE - - COUNT ( * ) WHEN + SUM ( DISTINCT + 73 ) * - CAST ( NULL AS INTEGER ) * + 35 + - 44 - - 4 + + 83 * + 88 THEN AVG ( 9 ) * 46 + + 6 * 21 WHEN + CAST ( + COUNT ( * ) AS REAL ) THEN NULL WHEN + 98 + + 7 * - 78 THEN + 32 + + MIN ( - 33 ) END + 58 AS col2
----
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1200
SELECT 71 + - 83 + - - 56 + + + NULLIF ( - COUNT( * ), ( 60 ) * + + 8 * - + 0 ) + 34 * + + MIN( - + 13 )
----
-399

skipif mysql # not compatible
query I rowsort label-1200
SELECT 71 + - 83 + - - 56 + + + NULLIF ( - COUNT ( * ), ( 60 ) * + + 8 * - + 0 ) + 34 * + + MIN ( - + 13 )
----
-399

query I rowsort
SELECT ALL 45 + 22
----
67

query II rowsort
SELECT DISTINCT - 32, 63 AS col1
----
-32
63

onlyif mysql # aggregate syntax: 
query I rowsort label-1203
SELECT + 49 * COUNT( * ) + 31 + - 1 AS col2
----
79

skipif mysql # not compatible
query I rowsort label-1203
SELECT + 49 * COUNT ( * ) + 31 + - 1 AS col2
----
79

query I rowsort
SELECT 6 + - - 15 col0
----
21

query II rowsort
SELECT ALL 38, - COALESCE ( + + 2, - + 59 * + 72 ) - - - 2 AS col0
----
38
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1206
SELECT DISTINCT 91 - - - 39 * + MAX( - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1206
SELECT DISTINCT 91 - - - 39 * + MAX ( - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1208
SELECT ALL + + 37 * - CAST( - 60 AS SIGNED ) col0, 60 + + + 60
----
2220
120

skipif mysql # not compatible
query II rowsort label-1208
SELECT ALL + + 37 * - CAST ( - 60 AS INTEGER ) col0, 60 + + + 60
----
2220
120

onlyif mysql # aggregate syntax: 
query I rowsort label-1209
SELECT ALL CASE COALESCE ( + 52, - 21 * - NULLIF ( COUNT( * ), + 60 ) ) WHEN + - 5 + - ( - 75 ) THEN + + 21 * + - 7 + 45 * 59 WHEN + - 76 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1209
SELECT ALL CASE COALESCE ( + 52, - 21 * - NULLIF ( COUNT ( * ), + 60 ) ) WHEN + - 5 + - ( - 75 ) THEN + + 21 * + - 7 + 45 * 59 WHEN + - 76 THEN NULL END
----
NULL

query I rowsort
SELECT ALL - 93 * - - 51 AS col1
----
-4743

onlyif mysql # aggregate syntax: 
query I rowsort label-1211
SELECT 7 + - COUNT( * ) + 63 - - 19 * + 74 * 78 AS col1
----
109737

skipif mysql # not compatible
query I rowsort label-1211
SELECT 7 + - COUNT ( * ) + 63 - - 19 * + 74 * 78 AS col1
----
109737

onlyif mysql # DIV for integer division: 
query I rowsort label-1212
SELECT 37 DIV + 23
----
1

skipif mysql # not compatible
query I rowsort label-1212
SELECT 37 / + 23
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1213
SELECT ALL 30 AS col1, - 91 / ( - + CAST( + COUNT( * ) AS DECIMAL ) ) * + COUNT( * ) - - NULLIF ( - COUNT( * ), + ( - - 0 ) ) * 85 * + CAST( NULL AS SIGNED ) + - 53 * 99 AS col0
----
30
NULL

skipif mysql # not compatible
query II rowsort label-1213
SELECT ALL 30 AS col1, - 91 / ( - + CAST ( + COUNT ( * ) AS REAL ) ) * + COUNT ( * ) - - NULLIF ( - COUNT ( * ), + ( - - 0 ) ) * 85 * + CAST ( NULL AS INTEGER ) + - 53 * 99 AS col0
----
30
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1214
SELECT ALL - NULLIF ( 30, - 36 ) DIV - MIN( + - 4 ) AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-1214
SELECT ALL - NULLIF ( 30, - 36 ) / - MIN ( + - 4 ) AS col1
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-1215
SELECT 17 DIV 63 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1215
SELECT 17 / 63 AS col0
----
0

query I rowsort
SELECT ALL + 41 + - - 27 AS col0
----
68

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1217
SELECT - + ( - + CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1217
SELECT - + ( - + CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1218
SELECT DISTINCT + + 32 + - COUNT( * ) + 4 AS col1, 60 - + 63 + - 7 * 48 - - ( + COUNT( * ) ) + 96 + - 34 * + - 77
----
35
2376

skipif mysql # not compatible
query II rowsort label-1218
SELECT DISTINCT + + 32 + - COUNT ( * ) + 4 AS col1, 60 - + 63 + - 7 * 48 - - ( + COUNT ( * ) ) + 96 + - 34 * + - 77
----
35
2376

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

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

query I rowsort
SELECT + 69 * + 82 col0
----
5658

onlyif mysql # aggregate syntax: 
query I rowsort label-1221
SELECT DISTINCT + + MAX( ALL + + 23 ) + ( - 92 ) * 52 * + + 45 - - 64 AS col2
----
-215193

skipif mysql # not compatible
query I rowsort label-1221
SELECT DISTINCT + + MAX ( ALL + + 23 ) + ( - 92 ) * 52 * + + 45 - - 64 AS col2
----
-215193

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

skipif mysql # not compatible
query I rowsort label-1222
SELECT 86 + 15 * - COUNT ( * ) * - - ( - COUNT ( * ) ) + - - COUNT ( * ) AS col2
----
102

query I rowsort
SELECT DISTINCT + 58 + - 27 AS col2
----
31

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1225
SELECT - 40 * - + 66 DIV + - 66 - + + 5
----
-45

skipif mysql # not compatible
query I rowsort label-1225
SELECT - 40 * - + 66 / + - 66 - + + 5
----
-45

query I rowsort
SELECT ALL + 51 * - - 99 AS col0
----
5049

onlyif mysql # aggregate syntax: 
query I rowsort label-1227
SELECT MIN( - 32 ) * + 30 * 85 - + MIN( DISTINCT - - 51 ) AS col1
----
-81651

skipif mysql # not compatible
query I rowsort label-1227
SELECT MIN ( - 32 ) * + 30 * 85 - + MIN ( DISTINCT - - 51 ) AS col1
----
-81651

query I rowsort
SELECT CASE + COALESCE ( 21, + + 46, + 68 ) WHEN 61 - COALESCE ( + + 8, - + 60 + - COALESCE ( ( + 67 ), - 51 ) * - 41 + - 82 * 40 * 74 + - 97 ) + 65 THEN AVG ( DISTINCT + 98 ) ELSE - 86 END AS col2
----
-86

query I rowsort
SELECT ALL - COALESCE ( 48, 36 ) AS col2
----
-48

query II rowsort
SELECT + 49, 37 AS col0
----
49
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1231
SELECT ALL - COUNT( - + 18 ) AS col1, 3 + SUM( ALL - 95 ) * - 67 - + CAST( NULL AS SIGNED ) AS col1
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-1231
SELECT ALL - COUNT ( - + 18 ) AS col1, 3 + SUM ( ALL - 95 ) * - 67 - + CAST ( NULL AS INTEGER ) AS col1
----
-1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1232
SELECT ALL + COUNT( * ) * - + 84 + - 13 - - 20 * + + 10
----
103

skipif mysql # not compatible
query I rowsort label-1232
SELECT ALL + COUNT ( * ) * - + 84 + - 13 - - 20 * + + 10
----
103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1233
SELECT ALL 83 * + AVG ( DISTINCT - 62 ) + + - 19 + + MIN( + + 58 ) + - 85 - - - 77 * CASE - AVG ( DISTINCT - 95 ) WHEN + 91 THEN - CASE + CAST( NULL AS SIGNED ) WHEN + 78 - + 2 + COUNT( DISTINCT 87 ) * 10 THEN 97 * + 51 WHEN MAX( ALL 49 ) THEN 0 ELSE NULL END / + 21 WHEN 52 THEN + COUNT( * ) + - 20 WHEN + 46 THEN NULL ELSE NULL END / COALESCE ( 24, - 7 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1233
SELECT ALL 83 * + AVG ( DISTINCT - 62 ) + + - 19 + + MIN ( + + 58 ) + - 85 - - - 77 * CASE - AVG ( DISTINCT - 95 ) WHEN + 91 THEN - CASE + CAST ( NULL AS INTEGER ) WHEN + 78 - + 2 + COUNT ( DISTINCT 87 ) * 10 THEN 97 * + 51 WHEN MAX ( ALL 49 ) THEN 0 ELSE NULL END / + 21 WHEN 52 THEN + COUNT ( * ) + - 20 WHEN + 46 THEN NULL ELSE NULL END / COALESCE ( 24, - 7 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1234
SELECT COUNT( * ) AS col0, + ( + 64 ) - + 19 * - + 94 AS col0
----
1
1850

skipif mysql # not compatible
query II rowsort label-1234
SELECT COUNT ( * ) AS col0, + ( + 64 ) - + 19 * - + 94 AS col0
----
1
1850

onlyif mysql # aggregate syntax: 
query I rowsort label-1235
SELECT 61 * 14 - COUNT( * )
----
853

skipif mysql # not compatible
query I rowsort label-1235
SELECT 61 * 14 - COUNT ( * )
----
853

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1236
SELECT ALL 34 * - - 60 * - SUM( - - 96 ), - 81 DIV + 90 AS col0
----
-195840
0

skipif mysql # not compatible
query II rowsort label-1236
SELECT ALL 34 * - - 60 * - SUM ( - - 96 ), - 81 / + 90 AS col0
----
-195840
0

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

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

query I rowsort
SELECT ALL 20 * - 62 - + + 22 + - 19 + + - 94
----
-1375

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1239
SELECT + COUNT( + CAST( 66 AS DECIMAL ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1239
SELECT + COUNT ( + CAST ( 66 AS REAL ) ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1240
SELECT - 86 + - 21 + + + 69 * - + CAST( - CASE 49 WHEN + COUNT( * ) / + ( - - 64 ) + - - 50 THEN - + 68 END AS SIGNED ) + - 97
----
NULL

skipif mysql # not compatible
query I rowsort label-1240
SELECT - 86 + - 21 + + + 69 * - + CAST ( - CASE 49 WHEN + COUNT ( * ) / + ( - - 64 ) + - - 50 THEN - + 68 END AS INTEGER ) + - 97
----
NULL

query I rowsort
SELECT + 92 * + 16 * - - 65
----
95680

query I rowsort
SELECT 17 * - 43 + 84
----
-647

onlyif mysql # aggregate syntax: 
query I rowsort label-1243
SELECT + 68 - + COUNT( * ) * + 76 AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-1243
SELECT + 68 - + COUNT ( * ) * + 76 AS col0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-1244
SELECT + COUNT( DISTINCT + COALESCE ( - 92, + 28 ) )
----
1

skipif mysql # not compatible
query I rowsort label-1244
SELECT + COUNT ( DISTINCT + COALESCE ( - 92, + 28 ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1245
SELECT ALL + CAST( NULL AS SIGNED ) AS col2, - COUNT( DISTINCT - - 37 ) AS col0
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-1245
SELECT ALL + CAST ( NULL AS INTEGER ) AS col2, - COUNT ( DISTINCT - - 37 ) AS col0
----
NULL
-1

query I rowsort
SELECT DISTINCT - 99 * + + 21
----
-2079

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

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

query I rowsort
SELECT ALL 97 * - + 96 * - COALESCE ( - 96, - 16 ) AS col2
----
-893952

onlyif mysql # aggregate syntax: 
query II rowsort label-1249
SELECT DISTINCT + + COUNT( * ), 3 * - - MIN( ALL + - 74 ) * + 52 AS col1
----
1
-11544

skipif mysql # not compatible
query II rowsort label-1249
SELECT DISTINCT + + COUNT ( * ), 3 * - - MIN ( ALL + - 74 ) * + 52 AS col1
----
1
-11544

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1250
SELECT ALL + COALESCE ( - 83, - + CAST( NULL AS SIGNED ) + 39 ) AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-1250
SELECT ALL + COALESCE ( - 83, - + CAST ( NULL AS INTEGER ) + 39 ) AS col2
----
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1251
SELECT MIN( - - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1251
SELECT MIN ( - - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1252
SELECT + 64 * SUM( ALL - CASE + 90 WHEN + 1 THEN 58 + + + 52 WHEN 96 THEN NULL ELSE - + 18 * + 15 END )
----
17280

skipif mysql # not compatible
query I rowsort label-1252
SELECT + 64 * SUM ( ALL - CASE + 90 WHEN + 1 THEN 58 + + + 52 WHEN 96 THEN NULL ELSE - + 18 * + 15 END )
----
17280

query I rowsort
SELECT - 10 * - 71 * 95 * - + 27 + 46 AS col1
----
-1821104

onlyif mysql # aggregate syntax: 
query I rowsort label-1254
SELECT - + CASE - COALESCE ( 32, COUNT( * ), - 4 ) WHEN - SUM( DISTINCT 57 ) THEN 44 ELSE - + 26 + 92 END AS col0
----
-66

skipif mysql # not compatible
query I rowsort label-1254
SELECT - + CASE - COALESCE ( 32, COUNT ( * ), - 4 ) WHEN - SUM ( DISTINCT 57 ) THEN 44 ELSE - + 26 + 92 END AS col0
----
-66

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

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

query I rowsort
SELECT + + 75 * - 76 AS col1
----
-5700

query I rowsort
SELECT ALL - 70 + 54 - + 64 AS col0
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1258
SELECT - NULLIF ( + COUNT( * ), - CAST( NULL AS SIGNED ) * - 82 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1258
SELECT - NULLIF ( + COUNT ( * ), - CAST ( NULL AS INTEGER ) * - 82 ) AS col2
----
-1

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

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

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

skipif mysql # not compatible
query I rowsort label-1260
SELECT + ( 27 ) - + + COUNT ( * ) * 1 AS col2
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-1261
SELECT DISTINCT - 62 + + COALESCE ( + MAX( ALL - + ( - ( 6 ) ) ), 2 ) + + 3 + COUNT( * )
----
-52

skipif mysql # not compatible
query I rowsort label-1261
SELECT DISTINCT - 62 + + COALESCE ( + MAX ( ALL - + ( - ( 6 ) ) ), 2 ) + + 3 + COUNT ( * )
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-1262
SELECT - + CASE WHEN NOT 37 > + - 2 THEN 44 ELSE + + ( + COUNT( ALL + + 88 ) ) * 20 + 8 END
----
-28

skipif mysql # not compatible
query I rowsort label-1262
SELECT - + CASE WHEN NOT 37 > + - 2 THEN 44 ELSE + + ( + COUNT ( ALL + + 88 ) ) * 20 + 8 END
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-1263
SELECT ALL 50 + + COUNT( 74 ) AS col2
----
51

skipif mysql # not compatible
query I rowsort label-1263
SELECT ALL 50 + + COUNT ( 74 ) AS col2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-1264
SELECT + - 23 + + MIN( DISTINCT - 95 ) AS col0
----
-118

skipif mysql # not compatible
query I rowsort label-1264
SELECT + - 23 + + MIN ( DISTINCT - 95 ) AS col0
----
-118

onlyif mysql # DIV for integer division: 
query II rowsort label-1265
SELECT - + 16 AS col1, 2 + - ( - 97 ) + - 92 DIV + 79 + 2 AS col1
----
-16
100

skipif mysql # not compatible
query II rowsort label-1265
SELECT - + 16 AS col1, 2 + - ( - 97 ) + - 92 / + 79 + 2 AS col1
----
-16
100

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

query I rowsort
SELECT - + 43 * 15 + - 72 col2
----
-717

onlyif mysql # aggregate syntax: 
query I rowsort label-1268
SELECT + MAX( ALL + - 21 ) + + COUNT( * ) AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-1268
SELECT + MAX ( ALL + - 21 ) + + COUNT ( * ) AS col0
----
-20

onlyif mysql # DIV for integer division: 
query II rowsort label-1269
SELECT DISTINCT - 2 DIV - + 5, 34 AS col2
----
0
34

skipif mysql # not compatible
query II rowsort label-1269
SELECT DISTINCT - 2 / - + 5, 34 AS col2
----
0
34

onlyif mysql # aggregate syntax: 
query I rowsort label-1270
SELECT ALL MAX( DISTINCT + - 17 ) + - 2 + + 53 * + 95 * 98 - + 3 * - + 3
----
493420

skipif mysql # not compatible
query I rowsort label-1270
SELECT ALL MAX ( DISTINCT + - 17 ) + - 2 + + 53 * + 95 * 98 - + 3 * - + 3
----
493420

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1272
SELECT ALL 10 DIV - 59 - - ( + 51 ) + + COUNT( * ) DIV COUNT( * )
----
52

skipif mysql # not compatible
query I rowsort label-1272
SELECT ALL 10 / - 59 - - ( + 51 ) + + COUNT ( * ) / COUNT ( * )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-1273
SELECT ALL + NULLIF ( 59, - COUNT( * ) ) AS col2
----
59

skipif mysql # not compatible
query I rowsort label-1273
SELECT ALL + NULLIF ( 59, - COUNT ( * ) ) AS col2
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-1274
SELECT - 98 + SUM( DISTINCT ( + 43 ) ) AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-1274
SELECT - 98 + SUM ( DISTINCT ( + 43 ) ) AS col0
----
-55

onlyif mysql # aggregate syntax: 
query II rowsort label-1275
SELECT - 10 * + - 28 AS col0, - 13 * + COUNT( * )
----
280
-13

skipif mysql # not compatible
query II rowsort label-1275
SELECT - 10 * + - 28 AS col0, - 13 * + COUNT ( * )
----
280
-13

query I rowsort
SELECT - 16 * + - 58 AS col0
----
928

onlyif mysql # aggregate syntax: 
query I rowsort label-1277
SELECT 84 * + 19 + - COUNT( * ) * + - 19
----
1615

skipif mysql # not compatible
query I rowsort label-1277
SELECT 84 * + 19 + - COUNT ( * ) * + - 19
----
1615

onlyif mysql # aggregate syntax: 
query I rowsort label-1278
SELECT + 3 * COUNT( * ) + - + ( + 25 ) col2
----
-22

skipif mysql # not compatible
query I rowsort label-1278
SELECT + 3 * COUNT ( * ) + - + ( + 25 ) col2
----
-22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1279
SELECT - 80 * - - ( - + 33 ) DIV COUNT( * ) * 44
----
116160

skipif mysql # not compatible
query I rowsort label-1279
SELECT - 80 * - - ( - + 33 ) / COUNT ( * ) * 44
----
116160

query I rowsort
SELECT DISTINCT + NULLIF ( 23, + 8 * - AVG ( - - 4 ) )
----
23

query II rowsort
SELECT DISTINCT - 12 * - - 75 AS col1, - 60 AS col1
----
-900
-60

query I rowsort
SELECT ALL + COALESCE ( 96, + 62 )
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1283
SELECT - CAST( - AVG ( - - 99 ) AS SIGNED ) + + 28 + - CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1283
SELECT - CAST ( - AVG ( - - 99 ) AS INTEGER ) + + 28 + - CAST ( NULL AS INTEGER ) col1
----
NULL

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

query I rowsort
SELECT - 74 * 67 + ( - + 0 ) * + 87
----
-4958

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1286
SELECT ALL + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) AS col0, 58 - COALESCE ( - - COUNT( * ), 46 * - COUNT( * ) DIV 5 * + 4 ) - - - 54
----
NULL
3

skipif mysql # not compatible
query II rowsort label-1286
SELECT ALL + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0, 58 - COALESCE ( - - COUNT ( * ), 46 * - COUNT ( * ) / 5 * + 4 ) - - - 54
----
NULL
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1287
SELECT - - 29 + COUNT( * ) - CASE - 94 WHEN - - ( + - CASE - 42 WHEN + 37 - + 8 * - - 78 THEN + 87 ELSE - 77 / + + 31 END ) + 84 THEN NULL WHEN - 45 THEN 74 END * + - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1287
SELECT - - 29 + COUNT ( * ) - CASE - 94 WHEN - - ( + - CASE - 42 WHEN + 37 - + 8 * - - 78 THEN + 87 ELSE - 77 / + + 31 END ) + 84 THEN NULL WHEN - 45 THEN 74 END * + - COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1288
SELECT - + ( + ( + - COUNT( * ) ) ) + - COUNT( * ) + COALESCE ( + COUNT( * ), + + 81 )
----
1

skipif mysql # not compatible
query I rowsort label-1288
SELECT - + ( + ( + - COUNT ( * ) ) ) + - COUNT ( * ) + COALESCE ( + COUNT ( * ), + + 81 )
----
1

query I rowsort
SELECT + 57 - + 29
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1290
SELECT DISTINCT NULLIF ( + - 55, + CAST( 39 AS SIGNED ) + + 71 ) * COALESCE ( - + COALESCE ( + + COUNT( * ), + 91 ), + 89, 78, - NULLIF ( + 23, + 96 / 20 * - CASE + 75 WHEN + 90 * COUNT( * ) THEN NULL ELSE 12 END * 19 ) + - 13 ) + - MAX( ALL 83 )
----
-28

skipif mysql # not compatible
query I rowsort label-1290
SELECT DISTINCT NULLIF ( + - 55, + CAST ( 39 AS INTEGER ) + + 71 ) * COALESCE ( - + COALESCE ( + + COUNT ( * ), + 91 ), + 89, 78, - NULLIF ( + 23, + 96 / 20 * - CASE + 75 WHEN + 90 * COUNT ( * ) THEN NULL ELSE 12 END * 19 ) + - 13 ) + - MAX ( ALL 83 )
----
-28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1291
SELECT DISTINCT - 16 * - + 83 * + 64 + 2 DIV + + COUNT( * ) col0
----
84994

skipif mysql # not compatible
query I rowsort label-1291
SELECT DISTINCT - 16 * - + 83 * + 64 + 2 / + + COUNT ( * ) col0
----
84994

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1292
SELECT ALL + + ( + 38 ) * - COUNT( * ) + + CASE - - 45 WHEN + - 99 THEN + 1 * 30 + 43 + + 80 * 75 * - 8 WHEN - 16 THEN - - 43 ELSE + - 9 - 41 * + 89 * CAST( NULL AS SIGNED ) END + + 32 * 22
----
NULL

skipif mysql # not compatible
query I rowsort label-1292
SELECT ALL + + ( + 38 ) * - COUNT ( * ) + + CASE - - 45 WHEN + - 99 THEN + 1 * 30 + 43 + + 80 * 75 * - 8 WHEN - 16 THEN - - 43 ELSE + - 9 - 41 * + 89 * CAST ( NULL AS INTEGER ) END + + 32 * 22
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1293
SELECT ALL - - 26 * + + COUNT( * ) + 84 + 30 AS col0
----
140

skipif mysql # not compatible
query I rowsort label-1293
SELECT ALL - - 26 * + + COUNT ( * ) + 84 + 30 AS col0
----
140

onlyif mysql # aggregate syntax: 
query II rowsort label-1294
SELECT + - 13 + 47 AS col0, COUNT( * )
----
34
1

skipif mysql # not compatible
query II rowsort label-1294
SELECT + - 13 + 47 AS col0, COUNT ( * )
----
34
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1295
SELECT DISTINCT + COALESCE ( - 96, + 40 * MAX( + - 78 ) + - 35, 61 ) AS col1
----
-96

skipif mysql # not compatible
query I rowsort label-1295
SELECT DISTINCT + COALESCE ( - 96, + 40 * MAX ( + - 78 ) + - 35, 61 ) AS col1
----
-96

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1297
SELECT + 87 + SUM( ALL - 21 ) DIV 82 AS col0
----
87

skipif mysql # not compatible
query I rowsort label-1297
SELECT + 87 + SUM ( ALL - 21 ) / 82 AS col0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-1298
SELECT ALL - CASE + 65 WHEN - 60 + 34 + 10 * - 84 * - + COUNT( * ) + + 67 * + - 2 THEN NULL WHEN + + 34 THEN + - 66 WHEN + 22 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1298
SELECT ALL - CASE + 65 WHEN - 60 + 34 + 10 * - 84 * - + COUNT ( * ) + + 67 * + - 2 THEN NULL WHEN + + 34 THEN + - 66 WHEN + 22 THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1299
SELECT + COALESCE ( - + COUNT( * ), - + 75 ) + 97 + COUNT( * )
----
97

skipif mysql # not compatible
query I rowsort label-1299
SELECT + COALESCE ( - + COUNT ( * ), - + 75 ) + 97 + COUNT ( * )
----
97

query I rowsort
SELECT DISTINCT 6 * + 95 AS col1
----
570

query II rowsort
SELECT - 91 AS col1, 82 * + 23 * 4
----
-91
7544

onlyif mysql # aggregate syntax: 
query I rowsort label-1302
SELECT MIN( DISTINCT + 68 ) * - 24 * - + 56 AS col2
----
91392

skipif mysql # not compatible
query I rowsort label-1302
SELECT MIN ( DISTINCT + 68 ) * - 24 * - + 56 AS col2
----
91392

query I rowsort
SELECT ALL - 88 * - - 64
----
-5632

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1304
SELECT CASE - + COALESCE ( + CASE ( 34 ) WHEN + + ( + 14 ) * 75 + - - 92 THEN 55 * + 43 * + CAST( + + 52 AS SIGNED ) + - 45 WHEN - COUNT( * ) * - 84 * - - COALESCE ( + 13, MIN( 89 ) - 10, 75 ) + - MIN( ALL 73 + 4 ) THEN NULL ELSE - 24 + 60 DIV - 32 END, - NULLIF ( MAX( ALL + 51 ), 22 ), 93, - 54 ) WHEN 70 + - ( + NULLIF ( + COUNT( * ), + 37 + 71 ) ) THEN + 7 DIV - ( + MIN( 88 ) ) ELSE + 72 END + 9 AS col2
----
81

skipif mysql # not compatible
query I rowsort label-1304
SELECT CASE - + COALESCE ( + CASE ( 34 ) WHEN + + ( + 14 ) * 75 + - - 92 THEN 55 * + 43 * + CAST ( + + 52 AS INTEGER ) + - 45 WHEN - COUNT ( * ) * - 84 * - - COALESCE ( + 13, MIN ( 89 ) - 10, 75 ) + - MIN ( ALL 73 + 4 ) THEN NULL ELSE - 24 + 60 / - 32 END, - NULLIF ( MAX ( ALL + 51 ), 22 ), 93, - 54 ) WHEN 70 + - ( + NULLIF ( + COUNT ( * ), + 37 + 71 ) ) THEN + 7 / - ( + MIN ( 88 ) ) ELSE + 72 END + 9 AS col2
----
81

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

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

query I rowsort
SELECT 90 * 93
----
8370

onlyif mysql # aggregate syntax: 
query I rowsort label-1307
SELECT ALL + CASE + + 52 WHEN + + ( + + 49 ) / + 16 THEN - 78 END / - 26 + + - 14 + 78 * + + 91 * - + 17 * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1307
SELECT ALL + CASE + + 52 WHEN + + ( + + 49 ) / + 16 THEN - 78 END / - 26 + + - 14 + 78 * + + 91 * - + 17 * + COUNT ( * )
----
NULL

query I rowsort
SELECT 99 - 27 AS col2
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-1309
SELECT ALL + COUNT( * ) * + COALESCE ( 18, + COUNT( * ) + - ( - 63 ) + + 27 * + - ( 61 ) ) AS col2
----
18

skipif mysql # not compatible
query I rowsort label-1309
SELECT ALL + COUNT ( * ) * + COALESCE ( 18, + COUNT ( * ) + - ( - 63 ) + + 27 * + - ( 61 ) ) AS col2
----
18

query I rowsort
SELECT 5 * + 76
----
380

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1311
SELECT ALL MIN( DISTINCT + - 42 ) DIV + 86 + + MAX( + 27 ) AS col1
----
27

skipif mysql # not compatible
query I rowsort label-1311
SELECT ALL MIN ( DISTINCT + - 42 ) / + 86 + + MAX ( + 27 ) AS col1
----
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1312
SELECT ALL - 44, + 57 DIV - - 14 + - COUNT( * ) AS col1
----
-44
3

skipif mysql # not compatible
query II rowsort label-1312
SELECT ALL - 44, + 57 / - - 14 + - COUNT ( * ) AS col1
----
-44
3

query I rowsort
SELECT 15 * 70 AS col1
----
1050

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1314
SELECT ALL - CASE + - CAST( NULL AS DECIMAL ) WHEN + 3 THEN + 89 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1314
SELECT ALL - CASE + - CAST ( NULL AS REAL ) WHEN + 3 THEN + 89 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1315
SELECT ALL + - 39 + - 93 + + + 71 * - + NULLIF ( + 55, CAST( NULL AS SIGNED ) ) + + 8 + + 68 - + 75 * + + 7
----
-4486

skipif mysql # not compatible
query I rowsort label-1315
SELECT ALL + - 39 + - 93 + + + 71 * - + NULLIF ( + 55, CAST ( NULL AS INTEGER ) ) + + 8 + + 68 - + 75 * + + 7
----
-4486

onlyif mysql # aggregate syntax: 
query I rowsort label-1316
SELECT - - 91 * COUNT( * ) * - + 33 + + 91 * 22 * + 70 * 66 col2
----
9246237

skipif mysql # not compatible
query I rowsort label-1316
SELECT - - 91 * COUNT ( * ) * - + 33 + + 91 * 22 * + 70 * 66 col2
----
9246237

query I rowsort
SELECT ALL - 14 * + 49 AS col1
----
-686

onlyif mysql # aggregate syntax: 
query I rowsort label-1318
SELECT 92 * - + CASE - SUM( - + 8 ) WHEN 1 * + - 15 * - 28 * 33 + + - COUNT( * ) THEN + 57 WHEN - + 2 - - 21 THEN NULL END * - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1318
SELECT 92 * - + CASE - SUM ( - + 8 ) WHEN 1 * + - 15 * - 28 * 33 + + - COUNT ( * ) THEN + 57 WHEN - + 2 - - 21 THEN NULL END * - + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1319
SELECT - 34 * - COUNT( * ) + + CASE - - CAST( - 78 AS SIGNED ) WHEN - 93 THEN - + 86 END + - SUM( - 91 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1319
SELECT - 34 * - COUNT ( * ) + + CASE - - CAST ( - 78 AS INTEGER ) WHEN - 93 THEN - + 86 END + - SUM ( - 91 )
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1321
SELECT DISTINCT - CASE - 9 WHEN - 59 THEN - + 92 WHEN + 74 THEN NULL WHEN COUNT( ALL 41 ) THEN + - 71 END * 81 + + 44 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1321
SELECT DISTINCT - CASE - 9 WHEN - 59 THEN - + 92 WHEN + 74 THEN NULL WHEN COUNT ( ALL 41 ) THEN + - 71 END * 81 + + 44 col0
----
NULL

query I rowsort
SELECT ALL - 22 + 15
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-1323
SELECT CASE - 23 WHEN 91 THEN NULL WHEN + 19 * - + 36 THEN - - 30 + - 97 WHEN + 64 / COUNT( * ) THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1323
SELECT CASE - 23 WHEN 91 THEN NULL WHEN + 19 * - + 36 THEN - - 30 + - 97 WHEN + 64 / COUNT ( * ) THEN NULL ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT DISTINCT - COALESCE ( + - 69, - 88, 9 )
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-1325
SELECT ALL + - CASE + ( - - ( - + MAX( - NULLIF ( + - 55, + 66 / - 51 ) ) ) ) WHEN - COUNT( * ) * + - 55 + - 35 THEN - 15 + - + 40 END * + ( - NULLIF ( CASE + 23 WHEN - 21 THEN 1 * 46 ELSE NULL END, SUM( - 67 ) + - 60 * + 48 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1325
SELECT ALL + - CASE + ( - - ( - + MAX ( - NULLIF ( + - 55, + 66 / - 51 ) ) ) ) WHEN - COUNT ( * ) * + - 55 + - 35 THEN - 15 + - + 40 END * + ( - NULLIF ( CASE + 23 WHEN - 21 THEN 1 * 46 ELSE NULL END, SUM ( - 67 ) + - 60 * + 48 ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1326
SELECT DISTINCT - - CAST( - + 19 AS SIGNED ) + + + 14 + + + SUM( + COALESCE ( + + 79, + 40 ) ) AS col1
----
74

skipif mysql # not compatible
query I rowsort label-1326
SELECT DISTINCT - - CAST ( - + 19 AS INTEGER ) + + + 14 + + + SUM ( + COALESCE ( + + 79, + 40 ) ) AS col1
----
74

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

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

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

query II rowsort
SELECT - 82 col2, - 16 * + 49 + + 85 * - + 64 + 29 AS col1
----
-82
-6195

onlyif mysql # aggregate syntax: 
query I rowsort label-1330
SELECT - 88 + - 0 * + CASE + - AVG ( DISTINCT - 54 ) WHEN MIN( 80 ) THEN 14 * - - 62 + 96 * - 6 WHEN + COUNT( * ) THEN NULL ELSE NULL END * + + 72 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1330
SELECT - 88 + - 0 * + CASE + - AVG ( DISTINCT - 54 ) WHEN MIN ( 80 ) THEN 14 * - - 62 + 96 * - 6 WHEN + COUNT ( * ) THEN NULL ELSE NULL END * + + 72 col1
----
NULL

query II rowsort
SELECT - 57 * - + 79 - + 60 AS col0, + 8
----
4443
8

onlyif mysql # DIV for integer division: 
query I rowsort label-1332
SELECT DISTINCT + 70 DIV + 3 AS col1
----
23

skipif mysql # not compatible
query I rowsort label-1332
SELECT DISTINCT + 70 / + 3 AS col1
----
23

query I rowsort
SELECT 99 * - + 4
----
-396

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1334
SELECT ALL + 37 * + CAST( + CASE + 60 WHEN + 53 THEN + 43 WHEN + ( + 67 ) THEN - + 89 * - 60 ELSE + 87 * - AVG ( + 75 ) + + - 44 + 78 END AS SIGNED ) * - 0 + + - 8
----
-8

skipif mysql # not compatible
query I rowsort label-1334
SELECT ALL + 37 * + CAST ( + CASE + 60 WHEN + 53 THEN + 43 WHEN + ( + 67 ) THEN - + 89 * - 60 ELSE + 87 * - AVG ( + 75 ) + + - 44 + 78 END AS INTEGER ) * - 0 + + - 8
----
-8

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

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

query I rowsort
SELECT + 24 * 46 AS col0
----
1104

onlyif mysql # aggregate syntax: 
query I rowsort label-1337
SELECT + ( - ( - MAX( - - COALESCE ( 81, + 25 ) ) ) )
----
81

skipif mysql # not compatible
query I rowsort label-1337
SELECT + ( - ( - MAX ( - - COALESCE ( 81, + 25 ) ) ) )
----
81

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1339
SELECT 74 + - 29 + - NULLIF ( + 1, ( + COALESCE ( - - SUM( DISTINCT 80 ), + 43 ) ) )
----
44

skipif mysql # not compatible
query I rowsort label-1339
SELECT 74 + - 29 + - NULLIF ( + 1, ( + COALESCE ( - - SUM ( DISTINCT 80 ), + 43 ) ) )
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1340
SELECT 45 * COALESCE ( + + 1, + + CAST( NULL AS SIGNED ) + MIN( ALL 17 ) )
----
45

skipif mysql # not compatible
query I rowsort label-1340
SELECT 45 * COALESCE ( + + 1, + + CAST ( NULL AS INTEGER ) + MIN ( ALL 17 ) )
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-1341
SELECT ( + COUNT( * ) ) + ( + 16 ) AS col0
----
17

skipif mysql # not compatible
query I rowsort label-1341
SELECT ( + COUNT ( * ) ) + ( + 16 ) AS col0
----
17

query I rowsort
SELECT 55 + + 26 + - 79
----
2

query I rowsort
SELECT 64 + + 0 * - - 92 col0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-1344
SELECT 74 + + ( - 75 ) + 2 * + 89 * COUNT( * ) + 23
----
200

skipif mysql # not compatible
query I rowsort label-1344
SELECT 74 + + ( - 75 ) + 2 * + 89 * COUNT ( * ) + 23
----
200

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1345
SELECT ALL MIN( DISTINCT 12 ) * + + MAX( + 14 ) * + - 85 * 68 + - COUNT( * ) + + 65 + - COUNT( * ) DIV + 64 * 98
----
-970976

skipif mysql # not compatible
query I rowsort label-1345
SELECT ALL MIN ( DISTINCT 12 ) * + + MAX ( + 14 ) * + - 85 * 68 + - COUNT ( * ) + + 65 + - COUNT ( * ) / + 64 * 98
----
-970976

onlyif mysql # DIV for integer division: 
query I rowsort label-1346
SELECT DISTINCT 80 DIV - + ( 74 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1346
SELECT DISTINCT 80 / - + ( 74 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1347
SELECT DISTINCT - 47 * COUNT( * ) + COALESCE ( + - COUNT( * ), - + 32, - CASE + 58 WHEN + 98 * 34 THEN + + COUNT( * ) ELSE NULL END * - 19 * - + 69 * 17 ) AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-1347
SELECT DISTINCT - 47 * COUNT ( * ) + COALESCE ( + - COUNT ( * ), - + 32, - CASE + 58 WHEN + 98 * 34 THEN + + COUNT ( * ) ELSE NULL END * - 19 * - + 69 * 17 ) AS col1
----
-48

query I rowsort
SELECT ( + 81 ) + - - 43 AS col2
----
124

onlyif mysql # aggregate syntax: 
query II rowsort label-1349
SELECT ALL COUNT( * ) * + 77 AS col0, 93 * SUM( + 62 )
----
77
5766

skipif mysql # not compatible
query II rowsort label-1349
SELECT ALL COUNT ( * ) * + 77 AS col0, 93 * SUM ( + 62 )
----
77
5766

onlyif mysql # aggregate syntax: 
query II rowsort label-1350
SELECT SUM( ALL - 66 ), 76 + + 64 AS col0
----
-66
140

skipif mysql # not compatible
query II rowsort label-1350
SELECT SUM ( ALL - 66 ), 76 + + 64 AS col0
----
-66
140

onlyif mysql # DIV for integer division: 
query I rowsort label-1351
SELECT ( - 64 ) DIV + - 15
----
4

skipif mysql # not compatible
query I rowsort label-1351
SELECT ( - 64 ) / + - 15
----
4

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

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

query I rowsort
SELECT + 39 * - ( + + 13 ) AS col1
----
-507

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1354
SELECT DISTINCT - 26 + SUM( ALL 76 ) * - + 15 * 25 * - - CASE 68 WHEN COUNT( * ) / SUM( + + 53 ) * + 20 * - 12 THEN - 0 / + 23 + + 86 - - + 80 END / + + 56 * - CAST( - 14 AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1354
SELECT DISTINCT - 26 + SUM ( ALL 76 ) * - + 15 * 25 * - - CASE 68 WHEN COUNT ( * ) / SUM ( + + 53 ) * + 20 * - 12 THEN - 0 / + 23 + + 86 - - + 80 END / + + 56 * - CAST ( - 14 AS REAL ) AS col1
----
NULL

query I rowsort
SELECT ALL + 57 + - - 17 + 89 AS col1
----
163

query I rowsort
SELECT ALL + 93 + + - 48 + - 81
----
-36

query I rowsort
SELECT ALL - 77 + + 93 + 60 * 92 * 30 AS col1
----
165616

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

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

query I rowsort
SELECT DISTINCT 75 + 87 * 98 AS col2
----
8601

query I rowsort
SELECT - 15 * + - 48 + 30 + - 77 col2
----
673

query I rowsort
SELECT ALL 89 + 27 AS col1
----
116

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1363
SELECT DISTINCT - + NULLIF ( + - NULLIF ( + 30, - ( 45 ) * + COUNT( * ) ), - + 26 - ( - 64 ) * - - ( 34 ) )
----
30

skipif mysql # not compatible
query I rowsort label-1363
SELECT DISTINCT - + NULLIF ( + - NULLIF ( + 30, - ( 45 ) * + COUNT ( * ) ), - + 26 - ( - 64 ) * - - ( 34 ) )
----
30

query I rowsort
SELECT ALL + 41 * ( + - 89 ) * 6 AS col2
----
-21894

onlyif mysql # aggregate syntax: 
query I rowsort label-1365
SELECT + NULLIF ( - 14, + 2 + - - 26 - MAX( - 21 ) )
----
-14

skipif mysql # not compatible
query I rowsort label-1365
SELECT + NULLIF ( - 14, + 2 + - - 26 - MAX ( - 21 ) )
----
-14

query I rowsort
SELECT + 55 + + 21
----
76

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1368
SELECT + CAST( 9 AS SIGNED ) + - 36 AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-1368
SELECT + CAST ( 9 AS INTEGER ) + - 36 AS col0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-1369
SELECT MAX( + 87 ) AS col1
----
87

skipif mysql # not compatible
query I rowsort label-1369
SELECT MAX ( + 87 ) AS col1
----
87

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1371
SELECT - 35 + NULLIF ( - 24, - MAX( ALL - 3 ) ) + + SUM( DISTINCT + 16 ) - COUNT( * ) * + 23 + - 61 + + 76 DIV + - COALESCE ( + - 93, - - 47 + - 59 - 25 )
----
-127

skipif mysql # not compatible
query I rowsort label-1371
SELECT - 35 + NULLIF ( - 24, - MAX ( ALL - 3 ) ) + + SUM ( DISTINCT + 16 ) - COUNT ( * ) * + 23 + - 61 + + 76 / + - COALESCE ( + - 93, - - 47 + - 59 - 25 )
----
-127

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1374
SELECT ALL + 71 DIV + 55
----
1

skipif mysql # not compatible
query I rowsort label-1374
SELECT ALL + 71 / + 55
----
1

query I rowsort
SELECT DISTINCT NULLIF ( - + 85, 8 + + + ( + + 27 ) + 30 )
----
-85

query I rowsort
SELECT - 5 * 51 AS col1
----
-255

query I rowsort
SELECT DISTINCT - 53 * 8
----
-424

query II rowsort
SELECT 38, + 96 * 60 * - ( + 44 ) AS col1
----
38
-253440

onlyif mysql # aggregate syntax: 
query I rowsort label-1379
SELECT ALL COUNT( * ) + - COALESCE ( - 63, - 96 ) - + COUNT( * ) * 56
----
8

skipif mysql # not compatible
query I rowsort label-1379
SELECT ALL COUNT ( * ) + - COALESCE ( - 63, - 96 ) - + COUNT ( * ) * 56
----
8

query I rowsort
SELECT ALL + 99 * + 61 AS col2
----
6039

query I rowsort
SELECT + 51 + - 88 AS col1
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-1382
SELECT + 10 * - + 45 * + + COUNT( * ) * + 52 * - - MAX( ALL - 33 )
----
772200

skipif mysql # not compatible
query I rowsort label-1382
SELECT + 10 * - + 45 * + + COUNT ( * ) * + 52 * - - MAX ( ALL - 33 )
----
772200

query I rowsort
SELECT ALL - 35 + - - 89 AS col1
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-1384
SELECT ALL - 27 + MAX( DISTINCT 46 ) * + 35 * - - 98 AS col2
----
157753

skipif mysql # not compatible
query I rowsort label-1384
SELECT ALL - 27 + MAX ( DISTINCT 46 ) * + 35 * - - 98 AS col2
----
157753

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

skipif mysql # not compatible
query I rowsort label-1385
SELECT - CAST ( NULL AS INTEGER ) * 52 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1386
SELECT CAST( - 73 AS SIGNED ) * 26 + - 76 - NULLIF ( - COUNT( * ), + 66 + - 46 ) col0
----
-1973

skipif mysql # not compatible
query I rowsort label-1386
SELECT CAST ( - 73 AS INTEGER ) * 26 + - 76 - NULLIF ( - COUNT ( * ), + 66 + - 46 ) col0
----
-1973

query I rowsort
SELECT DISTINCT - 32 * - 79 + + ( + 81 )
----
2609

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

skipif mysql # not compatible
query I rowsort label-1388
SELECT DISTINCT + CAST ( 86 AS INTEGER ) AS col1
----
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1389
SELECT DISTINCT - 68 * + 17 + + 48 + - - 23 DIV 5 + - 45 + 36 + - - COUNT( * ) col2, 56 AS col0
----
-1112
56

skipif mysql # not compatible
query II rowsort label-1389
SELECT DISTINCT - 68 * + 17 + + 48 + - - 23 / 5 + - 45 + 36 + - - COUNT ( * ) col2, 56 AS col0
----
-1112
56

onlyif mysql # aggregate syntax: 
query I rowsort label-1390
SELECT + 94 - COALESCE ( + 49, COUNT( * ), + 7 )
----
45

skipif mysql # not compatible
query I rowsort label-1390
SELECT + 94 - COALESCE ( + 49, COUNT ( * ), + 7 )
----
45

query I rowsort
SELECT ALL 64 * - 65 + 62
----
-4098

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1392
SELECT DISTINCT - ( CAST( + + CASE 57 WHEN - 94 THEN NULL WHEN + + COUNT( * ) THEN + - 52 * 54 + + 42 + 11 ELSE NULL END AS SIGNED ) ) * + - COUNT( * ) * CASE + 77 WHEN + - ( - AVG ( ALL + 69 ) ) THEN + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1392
SELECT DISTINCT - ( CAST ( + + CASE 57 WHEN - 94 THEN NULL WHEN + + COUNT ( * ) THEN + - 52 * 54 + + 42 + 11 ELSE NULL END AS INTEGER ) ) * + - COUNT ( * ) * CASE + 77 WHEN + - ( - AVG ( ALL + 69 ) ) THEN + COUNT ( * ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1393
SELECT ALL + + 87, 40 + - 35 AS col1, - CAST( NULL AS SIGNED ) * - ( 45 ) * + 43 * 79 AS col0
----
87
5
NULL

skipif mysql # not compatible
query III rowsort label-1393
SELECT ALL + + 87, 40 + - 35 AS col1, - CAST ( NULL AS INTEGER ) * - ( 45 ) * + 43 * 79 AS col0
----
87
5
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1394
SELECT + 61 * - + 27 - SUM( ALL - 58 ) + - - 69
----
-1520

skipif mysql # not compatible
query I rowsort label-1394
SELECT + 61 * - + 27 - SUM ( ALL - 58 ) + - - 69
----
-1520

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1395
SELECT + + 76 * CASE - COUNT( * ) WHEN ( CAST( NULL AS DECIMAL ) ) THEN NULL ELSE - + 93 END
----
-7068

skipif mysql # not compatible
query I rowsort label-1395
SELECT + + 76 * CASE - COUNT ( * ) WHEN ( CAST ( NULL AS REAL ) ) THEN NULL ELSE - + 93 END
----
-7068

query I rowsort
SELECT ALL + 70 * + 79 AS col0
----
5530

onlyif mysql # DIV for integer division: 
query I rowsort label-1397
SELECT + + 59 DIV + 37 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1397
SELECT + + 59 / + 37 AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1398
SELECT + NULLIF ( - CAST( NULL AS SIGNED ), + 60 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1398
SELECT + NULLIF ( - CAST ( NULL AS INTEGER ), + 60 ) AS col1
----
NULL

query II rowsort
SELECT DISTINCT + 29 AS col0, - 70 + + 6 AS col1
----
29
-64

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

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

query I rowsort
SELECT + 33 * 41
----
1353

query I rowsort
SELECT + 88 + 28 - - 99
----
215

query I rowsort
SELECT ALL NULLIF ( - 58, + 24 + + 53 * 71 )
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1404
SELECT + CAST( + 89 AS SIGNED ) + + 32
----
121

skipif mysql # not compatible
query I rowsort label-1404
SELECT + CAST ( + 89 AS INTEGER ) + + 32
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-1405
SELECT DISTINCT NULLIF ( - 5, 37 * 54 * + ( - 34 ) + + - COUNT( * ) )
----
-5

skipif mysql # not compatible
query I rowsort label-1405
SELECT DISTINCT NULLIF ( - 5, 37 * 54 * + ( - 34 ) + + - COUNT ( * ) )
----
-5

query I rowsort
SELECT ALL 46 + 76
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-1407
SELECT DISTINCT + MIN( DISTINCT + 18 ) + - 39 AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-1407
SELECT DISTINCT + MIN ( DISTINCT + 18 ) + - 39 AS col2
----
-21

query I rowsort
SELECT ALL - 40 + + + ( - 58 ) AS col1
----
-98

query I rowsort
SELECT - 34 + + 89
----
55

query I rowsort
SELECT ALL - 67 * 30 col2
----
-2010

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1411
SELECT - 10 + + 22 + + + NULLIF ( CASE - - 42 WHEN + - 21 THEN + 15 / - + COUNT( * ) + - - 28 / + 34 * - COUNT( * ) WHEN - CAST( NULL AS SIGNED ) / + COUNT( * ) * + 42 * + 7 THEN - - 65 END, - + 64 + ( ( + + 95 ) ) ) * - + 33 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1411
SELECT - 10 + + 22 + + + NULLIF ( CASE - - 42 WHEN + - 21 THEN + 15 / - + COUNT ( * ) + - - 28 / + 34 * - COUNT ( * ) WHEN - CAST ( NULL AS INTEGER ) / + COUNT ( * ) * + 42 * + 7 THEN - - 65 END, - + 64 + ( ( + + 95 ) ) ) * - + 33 + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 95 + - 52
----
43

query I rowsort
SELECT - 98 + + 95
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1414
SELECT - 80 - - NULLIF ( + 87, + + COUNT( * ) * + NULLIF ( - 27, - 28 + - 74 * - 16 + + 74 ) + + 7 ) col1
----
7

skipif mysql # not compatible
query I rowsort label-1414
SELECT - 80 - - NULLIF ( + 87, + + COUNT ( * ) * + NULLIF ( - 27, - 28 + - 74 * - 16 + + 74 ) + + 7 ) col1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-1415
SELECT - CASE - - ( 55 ) WHEN - 79 + + + COUNT( DISTINCT + - 15 ) THEN - 14 + - 54 WHEN ( - 20 ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1415
SELECT - CASE - - ( 55 ) WHEN - 79 + + + COUNT ( DISTINCT + - 15 ) THEN - 14 + - 54 WHEN ( - 20 ) THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1416
SELECT ALL - NULLIF ( - 65, 77 ) * + SUM( + - 9 )
----
-585

skipif mysql # not compatible
query I rowsort label-1416
SELECT ALL - NULLIF ( - 65, 77 ) * + SUM ( + - 9 )
----
-585

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1417
SELECT DISTINCT CAST( - COUNT( - 59 ) AS SIGNED ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1417
SELECT DISTINCT CAST ( - COUNT ( - 59 ) AS INTEGER ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1418
SELECT DISTINCT - COALESCE ( - 90, - + 5, - + MIN( DISTINCT - 2 ) + - + 48 ) + + 41 AS col2
----
131

skipif mysql # not compatible
query I rowsort label-1418
SELECT DISTINCT - COALESCE ( - 90, - + 5, - + MIN ( DISTINCT - 2 ) + - + 48 ) + + 41 AS col2
----
131

onlyif mysql # DIV for integer division: 
query I rowsort label-1419
SELECT ALL - NULLIF ( + + 59, 29 * - + 81 + + + 91 ) DIV - 24 - + 41 + 47
----
8

skipif mysql # not compatible
query I rowsort label-1419
SELECT ALL - NULLIF ( + + 59, 29 * - + 81 + + + 91 ) / - 24 - + 41 + 47
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1420
SELECT - CASE + + CAST( + + 33 AS SIGNED ) WHEN + 68 / - 38 * + 62 THEN + COUNT( * ) END / - 24 + - 60 * - 61 + + 99 / - - 51 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1420
SELECT - CASE + + CAST ( + + 33 AS INTEGER ) WHEN + 68 / - 38 * + 62 THEN + COUNT ( * ) END / - 24 + - 60 * - 61 + + 99 / - - 51 AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1421
SELECT ALL - + COUNT ( 26 ) * 10 AS col0
----
-10

query I rowsort
SELECT DISTINCT + COALESCE ( 20, + 81 ) * + 25 AS col1
----
500

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1423
SELECT - 92 + - 45 + COUNT( * ) DIV - + SUM( - 85 )
----
-137

skipif mysql # not compatible
query I rowsort label-1423
SELECT - 92 + - 45 + COUNT ( * ) / - + SUM ( - 85 )
----
-137

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1424
SELECT 73 AS col2, - CASE - - 20 WHEN + 59 THEN NULL WHEN 34 THEN + CAST( + 96 AS DECIMAL ) END + + + 26
----
73
NULL

skipif mysql # not compatible
query II rowsort label-1424
SELECT 73 AS col2, - CASE - - 20 WHEN + 59 THEN NULL WHEN 34 THEN + CAST ( + 96 AS REAL ) END + + + 26
----
73
NULL

query I rowsort
SELECT - + 69 + + - 79 AS col1
----
-148

query II rowsort
SELECT + 12 AS col1, 50
----
12
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1427
SELECT DISTINCT CAST( NULL AS SIGNED ) / + AVG ( DISTINCT - 87 ) - - 93 * - 87
----
NULL

skipif mysql # not compatible
query I rowsort label-1427
SELECT DISTINCT CAST ( NULL AS INTEGER ) / + AVG ( DISTINCT - 87 ) - - 93 * - 87
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1429
SELECT + 56 / CAST( NULL AS DECIMAL ) + 59 + - + 19 * - + COUNT( 48 ) + + 38 + AVG ( DISTINCT - - 39 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1429
SELECT + 56 / CAST ( NULL AS REAL ) + 59 + - + 19 * - + COUNT ( 48 ) + + 38 + AVG ( DISTINCT - - 39 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1430
SELECT 85 * + + MIN( - 96 ) * - 82
----
669120

skipif mysql # not compatible
query I rowsort label-1430
SELECT 85 * + + MIN ( - 96 ) * - 82
----
669120

query I rowsort
SELECT ALL 34 * + + 99
----
3366

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1432
SELECT 15 + + - 52 + + + 94 + - ( - + 63 ) * COUNT( * ) DIV - COUNT( * ) + + - 12
----
-18

skipif mysql # not compatible
query I rowsort label-1432
SELECT 15 + + - 52 + + + 94 + - ( - + 63 ) * COUNT ( * ) / - COUNT ( * ) + + - 12
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1433
SELECT DISTINCT - 42 * + CAST( - 37 AS SIGNED ) AS col1
----
1554

skipif mysql # not compatible
query I rowsort label-1433
SELECT DISTINCT - 42 * + CAST ( - 37 AS INTEGER ) AS col1
----
1554

query I rowsort
SELECT 64 * - + 0 col0
----
0

query I rowsort
SELECT ALL - 98 * + 92 * 49
----
-441784

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1436
SELECT ALL - 71 + CAST( 41 AS SIGNED )
----
-30

skipif mysql # not compatible
query I rowsort label-1436
SELECT ALL - 71 + CAST ( 41 AS INTEGER )
----
-30

query I rowsort
SELECT DISTINCT 93 + - + 71
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-1438
SELECT ALL CASE - 62 WHEN - - 86 THEN NULL WHEN - COUNT( * ) * 63 * - + MAX( DISTINCT - 98 ) + + 25 THEN NULL ELSE - 99 * - COUNT( * ) END + 4 AS col2
----
103

skipif mysql # not compatible
query I rowsort label-1438
SELECT ALL CASE - 62 WHEN - - 86 THEN NULL WHEN - COUNT ( * ) * 63 * - + MAX ( DISTINCT - 98 ) + + 25 THEN NULL ELSE - 99 * - COUNT ( * ) END + 4 AS col2
----
103

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1439
SELECT ALL COUNT( * ) + + + COUNT( * ) + - - COUNT( * ) AS col2, NULLIF ( ( 34 ), 65 ) DIV + 50 col0
----
3
0

skipif mysql # not compatible
query II rowsort label-1439
SELECT ALL COUNT ( * ) + + + COUNT ( * ) + - - COUNT ( * ) AS col2, NULLIF ( ( 34 ), 65 ) / + 50 col0
----
3
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1440
SELECT ALL 40 + + - MIN( DISTINCT + + ( - 70 ) ) AS col0
----
110

skipif mysql # not compatible
query I rowsort label-1440
SELECT ALL 40 + + - MIN ( DISTINCT + + ( - 70 ) ) AS col0
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-1441
SELECT ALL + COUNT( DISTINCT + 31 ) * 66 + + 33
----
99

skipif mysql # not compatible
query I rowsort label-1441
SELECT ALL + COUNT ( DISTINCT + 31 ) * 66 + + 33
----
99

query II rowsort
SELECT DISTINCT 57 + 32 AS col0, 41
----
89
41

onlyif mysql # DIV for integer division: 
query II rowsort label-1443
SELECT 18 DIV - 2, - 92 * 57 col2
----
-9
-5244

skipif mysql # not compatible
query II rowsort label-1443
SELECT 18 / - 2, - 92 * 57 col2
----
-9
-5244

query I rowsort
SELECT 99 * - 81 AS col1
----
-8019

onlyif mysql # aggregate syntax: 
query I rowsort label-1445
SELECT 34 + + + 73 * COUNT( * )
----
107

skipif mysql # not compatible
query I rowsort label-1445
SELECT 34 + + + 73 * COUNT ( * )
----
107

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1446
SELECT DISTINCT - 18 * - COUNT( * ) DIV + 1
----
18

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

query I rowsort
SELECT 24 * 97 * + + 18 AS col2
----
41904

query I rowsort
SELECT ALL 50 * - 65
----
-3250

query I rowsort
SELECT DISTINCT - 91 - + 80 AS col2
----
-171

onlyif mysql # aggregate syntax: 
query II rowsort label-1450
SELECT ALL COUNT( 94 ) AS col2, 2 - 71 col2
----
1
-69

skipif mysql # not compatible
query II rowsort label-1450
SELECT ALL COUNT ( 94 ) AS col2, 2 - 71 col2
----
1
-69

query I rowsort
SELECT ( + 39 ) + - 59 AS col1
----
-20

query I rowsort
SELECT 82 * - 35 AS col1
----
-2870

query I rowsort
SELECT ALL + 54 * - 16 * - + 74 AS col1
----
63936

query I rowsort
SELECT 61 * - + 64 AS col2
----
-3904

onlyif mysql # aggregate syntax: 
query I rowsort label-1455
SELECT DISTINCT + + 75 * - COUNT( * ) + + + 63 * + 77 + - 7
----
4769

skipif mysql # not compatible
query I rowsort label-1455
SELECT DISTINCT + + 75 * - COUNT ( * ) + + + 63 * + 77 + - 7
----
4769

query I rowsort
SELECT ALL + 4 * + 3
----
12

query I rowsort
SELECT ALL + + NULLIF ( + 36, - 40 ) * - 91
----
-3276

onlyif mysql # aggregate syntax: 
query II rowsort label-1458
SELECT DISTINCT + COUNT( ALL - 85 ) * + 78 AS col1, - COUNT( * )
----
78
-1

skipif mysql # not compatible
query II rowsort label-1458
SELECT DISTINCT + COUNT ( ALL - 85 ) * + 78 AS col1, - COUNT ( * )
----
78
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1459
SELECT + - NULLIF ( + 70, + - MIN( - CASE - 90 WHEN - 89 * + 60 THEN 57 ELSE + 7 * 65 END ) ) AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-1459
SELECT + - NULLIF ( + 70, + - MIN ( - CASE - 90 WHEN - 89 * + 60 THEN 57 ELSE + 7 * 65 END ) ) AS col2
----
-70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1460
SELECT + ( - - SUM( 82 ) ) DIV - + NULLIF ( 15, + NULLIF ( + + 25, + 10 + - 26 * 55 ) ) AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-1460
SELECT + ( - - SUM ( 82 ) ) / - + NULLIF ( 15, + NULLIF ( + + 25, + 10 + - 26 * 55 ) ) AS col0
----
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-1461
SELECT + COALESCE ( 18, 49, - - 49, - 56 ) AS col0, + CASE 90 WHEN + + COUNT( * ) THEN - + ( - + 47 ) + 72 ELSE NULL END + - ( + 60 ) - + - MIN( 52 ) / 13 AS col1
----
18
NULL

skipif mysql # not compatible
query II rowsort label-1461
SELECT + COALESCE ( 18, 49, - - 49, - 56 ) AS col0, + CASE 90 WHEN + + COUNT ( * ) THEN - + ( - + 47 ) + 72 ELSE NULL END + - ( + 60 ) - + - MIN ( 52 ) / 13 AS col1
----
18
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1463
SELECT DISTINCT - 19 + + CAST( - + COUNT( DISTINCT - 82 ) AS SIGNED ) DIV - COALESCE ( MIN( DISTINCT - 64 ), - 72 * + - 1 * + 94 ) + - + 81 - - ( + 32 ) + - COUNT( * ) * + 73 + + 44
----
-97

skipif mysql # not compatible
query I rowsort label-1463
SELECT DISTINCT - 19 + + CAST ( - + COUNT ( DISTINCT - 82 ) AS INTEGER ) / - COALESCE ( MIN ( DISTINCT - 64 ), - 72 * + - 1 * + 94 ) + - + 81 - - ( + 32 ) + - COUNT ( * ) * + 73 + + 44
----
-97

query I rowsort
SELECT DISTINCT - 85 + + 82 AS col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1465
SELECT ALL 52 + + COUNT( * )
----
53

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1466
SELECT ALL - COUNT( * ) col2, 67 * - ( - 55 )
----
-1
3685

skipif mysql # not compatible
query II rowsort label-1466
SELECT ALL - COUNT ( * ) col2, 67 * - ( - 55 )
----
-1
3685

onlyif mysql # aggregate syntax: 
query I rowsort label-1467
SELECT DISTINCT MAX( - 8 ) + - 72 * + - ( - 56 )
----
-4040

skipif mysql # not compatible
query I rowsort label-1467
SELECT DISTINCT MAX ( - 8 ) + - 72 * + - ( - 56 )
----
-4040

query I rowsort
SELECT ALL - COALESCE ( 89, - 51 * + 13, - 25 ) col2
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-1469
SELECT 73 + + + COUNT( * ) + 19 * + 64
----
1290

skipif mysql # not compatible
query I rowsort label-1469
SELECT 73 + + + COUNT ( * ) + 19 * + 64
----
1290

query I rowsort
SELECT 80 + 58
----
138

query I rowsort
SELECT ALL 92 + 2
----
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1472
SELECT ALL 8 AS col1, + 70 DIV COUNT( ALL + 3 )
----
8
70

skipif mysql # not compatible
query II rowsort label-1472
SELECT ALL 8 AS col1, + 70 / COUNT ( ALL + 3 )
----
8
70

onlyif mysql # aggregate syntax: 
query II rowsort label-1473
SELECT SUM( ALL 47 ) + + 69, - 21 * + - 33 * + 79 AS col2
----
116
54747

skipif mysql # not compatible
query II rowsort label-1473
SELECT SUM ( ALL 47 ) + + 69, - 21 * + - 33 * + 79 AS col2
----
116
54747

onlyif mysql # aggregate syntax: 
query I rowsort label-1474
SELECT ALL - 77 - + MIN( DISTINCT + 85 ) - 1
----
-163

skipif mysql # not compatible
query I rowsort label-1474
SELECT ALL - 77 - + MIN ( DISTINCT + 85 ) - 1
----
-163

query I rowsort
SELECT DISTINCT + 23 * 38
----
874

query I rowsort
SELECT NULLIF ( + 19, + + 27 / + 97 ) + + - 7
----
12

query I rowsort
SELECT NULLIF ( + 74, + 6 ) + - ( + + 54 ) AS col2
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1478
SELECT ALL 25 AS col1, - 16 + - - ( + CAST( NULL AS SIGNED ) ) / + 7 AS col0
----
25
NULL

skipif mysql # not compatible
query II rowsort label-1478
SELECT ALL 25 AS col1, - 16 + - - ( + CAST ( NULL AS INTEGER ) ) / + 7 AS col0
----
25
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1479
SELECT DISTINCT ( ( + 6 ) ) DIV + ( - 8 )
----
0

skipif mysql # not compatible
query I rowsort label-1479
SELECT DISTINCT ( ( + 6 ) ) / + ( - 8 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1480
SELECT COUNT( * ) * + + 65 DIV + 30 col0
----
2

skipif mysql # not compatible
query I rowsort label-1480
SELECT COUNT ( * ) * + + 65 / + 30 col0
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1481
SELECT ALL ( + COUNT( * ) ) DIV + ( MIN( DISTINCT 48 ) ) + + CAST( + 15 AS SIGNED ) + + 69
----
84

skipif mysql # not compatible
query I rowsort label-1481
SELECT ALL ( + COUNT ( * ) ) / + ( MIN ( DISTINCT 48 ) ) + + CAST ( + 15 AS INTEGER ) + + 69
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-1482
SELECT NULLIF ( 68, - 78 ) DIV 67 * 78 AS col0
----
78

skipif mysql # not compatible
query I rowsort label-1482
SELECT NULLIF ( 68, - 78 ) / 67 * 78 AS col0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-1483
SELECT 50 * - + COUNT( * ) + + + 88 + - 13
----
25

skipif mysql # not compatible
query I rowsort label-1483
SELECT 50 * - + COUNT ( * ) + + + 88 + - 13
----
25

query I rowsort
SELECT + ( - 78 ) + - + 83 + 30 AS col1
----
-131

query II rowsort
SELECT ALL - 9, - ( - 21 ) + + - ( 82 ) col0
----
-9
-61

query II rowsort
SELECT - + 53, NULLIF ( - 62, 91 / - 86 ) AS col2
----
-53
-62

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1488
SELECT - COUNT( DISTINCT + 41 ) + + 26
----
25

skipif mysql # not compatible
query I rowsort label-1488
SELECT - COUNT ( DISTINCT + 41 ) + + 26
----
25

query II rowsort
SELECT DISTINCT 71 * - 1 * + 18 AS col2, 98 * - + 28 + + 94 AS col0
----
-1278
-2650

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

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

query II rowsort
SELECT DISTINCT + 94 AS col1, 76 * - 1 * + - 94 AS col2
----
94
7144

onlyif mysql # DIV for integer division: 
query I rowsort label-1492
SELECT + + 18 DIV 7 + + + 59
----
61

skipif mysql # not compatible
query I rowsort label-1492
SELECT + + 18 / 7 + + + 59
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-1493
SELECT ALL 80 * + 47 + SUM( DISTINCT - + 6 ) AS col2
----
3754

skipif mysql # not compatible
query I rowsort label-1493
SELECT ALL 80 * + 47 + SUM ( DISTINCT - + 6 ) AS col2
----
3754

query I rowsort
SELECT + + 51 + + 82 + 10 - + + 76 * + 58 AS col0
----
-4265

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1495
SELECT + + CAST( NULL AS DECIMAL ) * COUNT( * ) / + 57 + - 17 / 22 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1495
SELECT + + CAST ( NULL AS REAL ) * COUNT ( * ) / + 57 + - 17 / 22 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1496
SELECT - - 70 - - + SUM( DISTINCT + 52 ) * - + 54 col0
----
-2738

skipif mysql # not compatible
query I rowsort label-1496
SELECT - - 70 - - + SUM ( DISTINCT + 52 ) * - + 54 col0
----
-2738

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1497
SELECT - 9 DIV - 94 * + - 47 - - COUNT( * ) + - 11 + 83 AS col2, - 8 + - 63 AS col0
----
73
-71

skipif mysql # not compatible
query II rowsort label-1497
SELECT - 9 / - 94 * + - 47 - - COUNT ( * ) + - 11 + 83 AS col2, - 8 + - 63 AS col0
----
73
-71

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1498
SELECT - CAST( 76 AS SIGNED ) + - - 72 - - + 36 DIV + 42
----
-4

skipif mysql # not compatible
query I rowsort label-1498
SELECT - CAST ( 76 AS INTEGER ) + - - 72 - - + 36 / + 42
----
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-1499
SELECT DISTINCT + CASE 88 WHEN + 47 * - + 12 THEN + COUNT( * ) * - 62 END * 69 AS col2, + 99 + + - 29 + + 86
----
NULL
156

skipif mysql # not compatible
query II rowsort label-1499
SELECT DISTINCT + CASE 88 WHEN + 47 * - + 12 THEN + COUNT ( * ) * - 62 END * 69 AS col2, + 99 + + - 29 + + 86
----
NULL
156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1500
SELECT DISTINCT 57 * + 48 + - 59 / CAST( NULL AS SIGNED ) AS col0, 56 + - MIN( ALL 47 )
----
NULL
9

skipif mysql # not compatible
query II rowsort label-1500
SELECT DISTINCT 57 * + 48 + - 59 / CAST ( NULL AS INTEGER ) AS col0, 56 + - MIN ( ALL 47 )
----
NULL
9

query I rowsort
SELECT - 19 * 78 + + - 83 AS col0
----
-1565

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

skipif mysql # not compatible
query I rowsort label-1502
SELECT - CAST ( NULL AS INTEGER ) * + 51
----
NULL

query I rowsort
SELECT - 87 + - 3 AS col0
----
-90

query I rowsort
SELECT - 68 * + 51 AS col2
----
-3468

query I rowsort
SELECT DISTINCT COALESCE ( - + 78, 35 + - - 97 ) col1
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-1506
SELECT ALL 33 * - + 99 * - ( - COUNT( * ) )
----
-3267

skipif mysql # not compatible
query I rowsort label-1506
SELECT ALL 33 * - + 99 * - ( - COUNT ( * ) )
----
-3267

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1508
SELECT ALL ( 69 ) AS col2, + 52 DIV 44 AS col0
----
69
1

skipif mysql # not compatible
query II rowsort label-1508
SELECT ALL ( 69 ) AS col2, + 52 / 44 AS col0
----
69
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1509
SELECT ALL CAST( - 25 AS SIGNED ) * - COUNT( ALL NULLIF ( 52, - NULLIF ( + 22, - 69 * + - 56 + - 38 ) ) ) AS col0
----
25

skipif mysql # not compatible
query I rowsort label-1509
SELECT ALL CAST ( - 25 AS INTEGER ) * - COUNT ( ALL NULLIF ( 52, - NULLIF ( + 22, - 69 * + - 56 + - 38 ) ) ) AS col0
----
25

query I rowsort
SELECT - - 81 * - 35 + - 26 AS col2
----
-2861

query II rowsort
SELECT + + 48 * + - 22 col2, 22
----
-1056
22

onlyif mysql # DIV for integer division: 
query I rowsort label-1512
SELECT DISTINCT + NULLIF ( - - ( 76 ), + 86 + + 33 ) DIV + + 26
----
2

skipif mysql # not compatible
query I rowsort label-1512
SELECT DISTINCT + NULLIF ( - - ( 76 ), + 86 + + 33 ) / + + 26
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1513
SELECT DISTINCT + 93 + - - 22 DIV SUM( DISTINCT - 51 ) AS col0
----
93

skipif mysql # not compatible
query I rowsort label-1513
SELECT DISTINCT + 93 + - - 22 / SUM ( DISTINCT - 51 ) AS col0
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-1514
SELECT ALL - 60 + - 88, MAX( 74 ) AS col1
----
-148
74

skipif mysql # not compatible
query II rowsort label-1514
SELECT ALL - 60 + - 88, MAX ( 74 ) AS col1
----
-148
74

onlyif mysql # aggregate syntax: 
query I rowsort label-1515
SELECT ALL 44 + - 89 + + - COUNT( * )
----
-46

skipif mysql # not compatible
query I rowsort label-1515
SELECT ALL 44 + - 89 + + - COUNT ( * )
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-1516
SELECT + 27 + COALESCE ( - 21, COUNT( * ), + - 45 )
----
6

skipif mysql # not compatible
query I rowsort label-1516
SELECT + 27 + COALESCE ( - 21, COUNT ( * ), + - 45 )
----
6

query I rowsort
SELECT ALL - 11 * - 73
----
803

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1518
SELECT + 49 DIV COUNT( * ) + + 73
----
122

skipif mysql # not compatible
query I rowsort label-1518
SELECT + 49 / COUNT ( * ) + + 73
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-1519
SELECT - + 41 - + MIN( DISTINCT + + 2 ) * - - 70 col1
----
-181

skipif mysql # not compatible
query I rowsort label-1519
SELECT - + 41 - + MIN ( DISTINCT + + 2 ) * - - 70 col1
----
-181

onlyif mysql # DIV for integer division: 
query I rowsort label-1520
SELECT ALL + 42 DIV - + 4 - + + 94 + + + 97 AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-1520
SELECT ALL + 42 / - + 4 - + + 94 + + + 97 AS col0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-1521
SELECT ALL + + CASE WHEN NOT - 90 > NULL THEN - + COALESCE ( COALESCE ( 40, 89 * 57 + 53, 54 + + 20 - - 40 * NULLIF ( + 71, + COALESCE ( + 21, - 30 ) ), + 17 ), + AVG ( - 91 ) ) WHEN NULL NOT BETWEEN NULL AND 67 THEN COUNT( * ) * + 94 - + 90 * + 56 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1521
SELECT ALL + + CASE WHEN NOT - 90 > NULL THEN - + COALESCE ( COALESCE ( 40, 89 * 57 + 53, 54 + + 20 - - 40 * NULLIF ( + 71, + COALESCE ( + 21, - 30 ) ), + 17 ), + AVG ( - 91 ) ) WHEN NULL NOT BETWEEN NULL AND 67 THEN COUNT ( * ) * + 94 - + 90 * + 56 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT + CASE + ( 38 ) WHEN - 31 THEN + 63 * + 12 ELSE NULL END
----
NULL

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1526
SELECT + CAST( 89 AS SIGNED ) * CAST( + 37 AS SIGNED )
----
3293

skipif mysql # not compatible
query I rowsort label-1526
SELECT + CAST ( 89 AS INTEGER ) * CAST ( + 37 AS INTEGER )
----
3293

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1527
SELECT + CAST( + 71 AS DECIMAL ) / + + 65 + 21 * + CASE - 43 WHEN + ( 87 ) THEN - 8 * 94 + COUNT( * ) + - AVG ( DISTINCT + ( + + 7 ) ) WHEN COUNT( * ) THEN NULL END * - + 26 * - + 7 - SUM( DISTINCT - 80 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1527
SELECT + CAST ( + 71 AS REAL ) / + + 65 + 21 * + CASE - 43 WHEN + ( 87 ) THEN - 8 * 94 + COUNT ( * ) + - AVG ( DISTINCT + ( + + 7 ) ) WHEN COUNT ( * ) THEN NULL END * - + 26 * - + 7 - SUM ( DISTINCT - 80 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1528
SELECT - 5 * + MIN( 17 ) AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-1528
SELECT - 5 * + MIN ( 17 ) AS col1
----
-85

query II rowsort
SELECT ALL + 63 AS col0, 63 * 52 + 45 AS col0
----
63
3321

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1530
SELECT ALL - CASE 6 WHEN + 69 * - + 71 THEN - CAST( + COUNT( * ) AS SIGNED ) * + - 64 WHEN - - 5 THEN NULL ELSE + 8 + + COUNT( * ) END * SUM( - - 18 ) * + 99 + - 75 DIV + 88, + 66 + + + 21 AS col1
----
-16038
87

skipif mysql # not compatible
query II rowsort label-1530
SELECT ALL - CASE 6 WHEN + 69 * - + 71 THEN - CAST ( + COUNT ( * ) AS INTEGER ) * + - 64 WHEN - - 5 THEN NULL ELSE + 8 + + COUNT ( * ) END * SUM ( - - 18 ) * + 99 + - 75 / + 88, + 66 + + + 21 AS col1
----
-16038
87

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1532
SELECT - COUNT( * ) * + + 36 * + 63 - + 64 AS col0
----
-2332

skipif mysql # not compatible
query I rowsort label-1532
SELECT - COUNT ( * ) * + + 36 * + 63 - + 64 AS col0
----
-2332

query I rowsort
SELECT - 4 * 53
----
-212

query I rowsort
SELECT ALL - 50 * 18 * + 36
----
-32400

onlyif mysql # DIV for integer division: 
query I rowsort label-1535
SELECT + 33 DIV ( + 30 ) * + 28 * 51 + + 9 + - 85 AS col1
----
1352

skipif mysql # not compatible
query I rowsort label-1535
SELECT + 33 / ( + 30 ) * + 28 * 51 + + 9 + - 85 AS col1
----
1352

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

query I rowsort
SELECT ALL + 14 * + - 72 AS col2
----
-1008

query I rowsort
SELECT 14 * - 75 + 38 AS col0
----
-1012

query II rowsort
SELECT ALL 78 AS col2, 79 AS col1
----
78
79

onlyif mysql # DIV for integer division: 
query I rowsort label-1540
SELECT + 95 * + + ( - NULLIF ( + 55, + 75 + + 64 ) ) - - 81 DIV + 68
----
-5224

skipif mysql # not compatible
query I rowsort label-1540
SELECT + 95 * + + ( - NULLIF ( + 55, + 75 + + 64 ) ) - - 81 / + 68
----
-5224

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

query I rowsort
SELECT COALESCE ( + 82, + - 14 ) AS col0
----
82

query I rowsort
SELECT 59 + - 6 AS col2
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1544
SELECT - 45 + ( + CAST( - CASE ( 66 ) WHEN - COUNT( * ) * 98 THEN + ( + + SUM( DISTINCT + 63 ) ) * - - 30 * - 8 - - ( MAX( 1 ) ) + AVG ( 3 ) WHEN + - 58 * - COUNT( * ) * 45 THEN - + 73 * + 64 ELSE NULL END AS SIGNED ) ) - + - CASE + 83 WHEN + 5 * 83 THEN 16 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1544
SELECT - 45 + ( + CAST ( - CASE ( 66 ) WHEN - COUNT ( * ) * 98 THEN + ( + + SUM ( DISTINCT + 63 ) ) * - - 30 * - 8 - - ( MAX ( 1 ) ) + AVG ( 3 ) WHEN + - 58 * - COUNT ( * ) * 45 THEN - + 73 * + 64 ELSE NULL END AS INTEGER ) ) - + - CASE + 83 WHEN + 5 * 83 THEN 16 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1545
SELECT - 59 + - ( + + MAX( - - 98 ) ) col2
----
-157

skipif mysql # not compatible
query I rowsort label-1545
SELECT - 59 + - ( + + MAX ( - - 98 ) ) col2
----
-157

onlyif mysql # aggregate syntax: 
query I rowsort label-1546
SELECT ALL - 31 + + CASE - 93 WHEN CASE - + ( + COUNT( * ) ) WHEN - + 72 * + + 84 * - COUNT( ( + 80 ) ) THEN NULL WHEN 51 * + + 65 * + - 45 THEN + ( + 67 ) + + SUM( - 13 ) * 82 END - 35 + 93 THEN + - SUM( - 18 ) - - NULLIF ( 81, - ( + 19 ) + AVG ( 41 ) ) WHEN 6 * + CASE 63 WHEN - COALESCE ( - 1, + 91 * - 43 ) + + AVG ( ( + 43 ) ) THEN 64 * - 10 WHEN 0 THEN NULL ELSE NULL END THEN 63 + - 54 * + NULLIF ( 6, - 82 * + 66 ) WHEN 7 * - COALESCE ( 43, COUNT( * ) ) THEN - 7 + - 75 ELSE - 56 END
----
-87

skipif mysql # not compatible
query I rowsort label-1546
SELECT ALL - 31 + + CASE - 93 WHEN CASE - + ( + COUNT ( * ) ) WHEN - + 72 * + + 84 * - COUNT ( ( + 80 ) ) THEN NULL WHEN 51 * + + 65 * + - 45 THEN + ( + 67 ) + + SUM ( - 13 ) * 82 END - 35 + 93 THEN + - SUM ( - 18 ) - - NULLIF ( 81, - ( + 19 ) + AVG ( 41 ) ) WHEN 6 * + CASE 63 WHEN - COALESCE ( - 1, + 91 * - 43 ) + + AVG ( ( + 43 ) ) THEN 64 * - 10 WHEN 0 THEN NULL ELSE NULL END THEN 63 + - 54 * + NULLIF ( 6, - 82 * + 66 ) WHEN 7 * - COALESCE ( 43, COUNT ( * ) ) THEN - 7 + - 75 ELSE - 56 END
----
-87

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

query I rowsort
SELECT ALL - - 13 + - - 62
----
75

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1550
SELECT DISTINCT - CASE + 62 WHEN - COUNT( DISTINCT + 48 ) THEN - 23 ELSE + + 37 END + + 2 AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-1550
SELECT DISTINCT - CASE + 62 WHEN - COUNT ( DISTINCT + 48 ) THEN - 23 ELSE + + 37 END + + 2 AS col1
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-1551
SELECT + 25 * + + 5 * - SUM( ALL - 57 ) + + 19 + 28 * + - 84 * - 97 * 96 * 47
----
1029392872

skipif mysql # not compatible
query I rowsort label-1551
SELECT + 25 * + + 5 * - SUM ( ALL - 57 ) + + 19 + 28 * + - 84 * - 97 * 96 * 47
----
1029392872

query I rowsort
SELECT DISTINCT ( + - 20 ) col2
----
-20

query II rowsort
SELECT DISTINCT + 79 AS col0, + 28 AS col1
----
79
28

onlyif mysql # aggregate syntax: 
query I rowsort label-1554
SELECT DISTINCT - 21 + COALESCE ( - 78, - + 29 + + 70, + + 75 * ( COUNT( ALL + 29 ) ) )
----
-99

skipif mysql # not compatible
query I rowsort label-1554
SELECT DISTINCT - 21 + COALESCE ( - 78, - + 29 + + 70, + + 75 * ( COUNT ( ALL + 29 ) ) )
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1555
SELECT - AVG ( DISTINCT - ( CAST( NULL AS SIGNED ) ) ) * 22 * + 25 / 16 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1555
SELECT - AVG ( DISTINCT - ( CAST ( NULL AS INTEGER ) ) ) * 22 * + 25 / 16 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1556
SELECT ALL + 99 DIV MAX( 83 ) * - + 95 AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-1556
SELECT ALL + 99 / MAX ( 83 ) * - + 95 AS col0
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-1557
SELECT DISTINCT 5 - - ( - - SUM( DISTINCT + 8 ) )
----
13

skipif mysql # not compatible
query I rowsort label-1557
SELECT DISTINCT 5 - - ( - - SUM ( DISTINCT + 8 ) )
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1558
SELECT ALL 76 - + - 91 * MIN( DISTINCT - - 8 ) + - 49 * + CAST( NULL AS SIGNED ) / - + 97 AS col1, + 45 - - + 44 + + + COALESCE ( - 31, ( + 91 ) )
----
NULL
58

skipif mysql # not compatible
query II rowsort label-1558
SELECT ALL 76 - + - 91 * MIN ( DISTINCT - - 8 ) + - 49 * + CAST ( NULL AS INTEGER ) / - + 97 AS col1, + 45 - - + 44 + + + COALESCE ( - 31, ( + 91 ) )
----
NULL
58

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1560
SELECT + CASE + 73 WHEN + - CASE + - CAST( NULL AS SIGNED ) WHEN ( 33 ) * - - 68 + - 83 * + 96 + - - ( 47 ) + CAST( NULL AS SIGNED ) + - + CAST( NULL AS SIGNED ) / + - 37 THEN - 44 * + 66 + 4 + ( - - 97 ) * + + 34 + - 47 ELSE NULL END THEN NULL WHEN - 89 THEN NULL ELSE + - CASE 68 WHEN + - 27 + 86 + - 52 THEN - ( 68 ) - + AVG ( CAST( NULL AS SIGNED ) ) END * 57 + COUNT( * ) END / + 17 - MAX( - 85 + - ( 31 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1560
SELECT + CASE + 73 WHEN + - CASE + - CAST ( NULL AS INTEGER ) WHEN ( 33 ) * - - 68 + - 83 * + 96 + - - ( 47 ) + CAST ( NULL AS INTEGER ) + - + CAST ( NULL AS INTEGER ) / + - 37 THEN - 44 * + 66 + 4 + ( - - 97 ) * + + 34 + - 47 ELSE NULL END THEN NULL WHEN - 89 THEN NULL ELSE + - CASE 68 WHEN + - 27 + 86 + - 52 THEN - ( 68 ) - + AVG ( CAST ( NULL AS INTEGER ) ) END * 57 + COUNT ( * ) END / + 17 - MAX ( - 85 + - ( 31 ) ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query III rowsort label-1561
SELECT 86 AS col1, + 63 + + + 73 + + 6 AS col2, - 52 DIV - + 35
----
86
142
1

skipif mysql # not compatible
query III rowsort label-1561
SELECT 86 AS col1, + 63 + + + 73 + + 6 AS col2, - 52 / - + 35
----
86
142
1

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1563
SELECT + ( + + 88 ) * 7 + 9 + 81 DIV - 28 + + 68
----
691

skipif mysql # not compatible
query I rowsort label-1563
SELECT + ( + + 88 ) * 7 + 9 + 81 / - 28 + + 68
----
691

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1565
SELECT ALL ( - 29 ) - 48 DIV + 76
----
-29

skipif mysql # not compatible
query I rowsort label-1565
SELECT ALL ( - 29 ) - 48 / + 76
----
-29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1566
SELECT 9 DIV + 64 + COUNT( * ) - + 43 AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-1566
SELECT 9 / + 64 + COUNT ( * ) - + 43 AS col1
----
-42

query I rowsort
SELECT ALL 34 * 63 col0
----
2142

query I rowsort
SELECT - 66 * + 33 * 3 + - - 46 AS col0
----
-6488

query III rowsort
SELECT ALL - 69, COALESCE ( - + 53, 53 ) AS col2, 98 * + 90 AS col2
----
-69
-53
8820

onlyif mysql # aggregate syntax: 
query I rowsort label-1570
SELECT 8 * + SUM( + 26 ) * 78 + + - 72
----
16152

skipif mysql # not compatible
query I rowsort label-1570
SELECT 8 * + SUM ( + 26 ) * 78 + + - 72
----
16152

onlyif mysql # aggregate syntax: 
query II rowsort label-1571
SELECT 2 AS col1, COUNT( * ) + - 93
----
2
-92

skipif mysql # not compatible
query II rowsort label-1571
SELECT 2 AS col1, COUNT ( * ) + - 93
----
2
-92

query I rowsort
SELECT 59 + 28 * + 13
----
423

onlyif mysql # aggregate syntax: 
query II rowsort label-1573
SELECT 62 * + + COUNT( * ) AS col0, - ( - 28 ) * + 41 AS col2
----
62
1148

skipif mysql # not compatible
query II rowsort label-1573
SELECT 62 * + + COUNT ( * ) AS col0, - ( - 28 ) * + 41 AS col2
----
62
1148

query I rowsort
SELECT 33 * - + 61 AS col1
----
-2013

onlyif mysql # DIV for integer division: 
query I rowsort label-1575
SELECT ALL - 46 DIV - 11 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-1575
SELECT ALL - 46 / - 11 AS col2
----
4

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

query I rowsort
SELECT ALL 77 + - 60
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-1578
SELECT DISTINCT SUM( + 66 ) + 79 * - 68 + + - ( + - 15 ) * + - ( - 86 ) AS col1
----
-4016

skipif mysql # not compatible
query I rowsort label-1578
SELECT DISTINCT SUM ( + 66 ) + 79 * - 68 + + - ( + - 15 ) * + - ( - 86 ) AS col1
----
-4016

query I rowsort
SELECT ALL - - 66 * + 76 * + + 55
----
275880

query I rowsort
SELECT ALL + 46 + - 72
----
-26

query I rowsort
SELECT + 82 - - 0 + + ( - 36 ) * 8 col1
----
-206

query II rowsort
SELECT - 99 AS col2, 13 * + ( - 50 ) AS col0
----
-99
-650

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1584
SELECT 53 - - CASE - 29 WHEN + 85 / - 71 - + COALESCE ( 45, + 16 + 26 * - + 84 ) THEN + ( 75 ) * - 87 / - CASE - - 59 WHEN + - 34 * 25 THEN - 70 ELSE - + 41 END * 26 * - ( 11 ) + + 68 * + NULLIF ( - - 14, - CAST( + 88 AS SIGNED ) * + 28 ) + + 91 / + COUNT( * ) ELSE NULL END / 54
----
NULL

skipif mysql # not compatible
query I rowsort label-1584
SELECT 53 - - CASE - 29 WHEN + 85 / - 71 - + COALESCE ( 45, + 16 + 26 * - + 84 ) THEN + ( 75 ) * - 87 / - CASE - - 59 WHEN + - 34 * 25 THEN - 70 ELSE - + 41 END * 26 * - ( 11 ) + + 68 * + NULLIF ( - - 14, - CAST ( + 88 AS INTEGER ) * + 28 ) + + 91 / + COUNT ( * ) ELSE NULL END / 54
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-1585
SELECT ALL - 74 col2, - 43 DIV 92 DIV + 61
----
-74
0

skipif mysql # not compatible
query II rowsort label-1585
SELECT ALL - 74 col2, - 43 / 92 / + 61
----
-74
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1586
SELECT ALL - - 11 + + - CAST( NULL AS SIGNED ) * - - 98 * - + 34 * 42 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1586
SELECT ALL - - 11 + + - CAST ( NULL AS INTEGER ) * - - 98 * - + 34 * 42 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1587
SELECT ALL - CAST( - 52 AS SIGNED ) col2
----
52

skipif mysql # not compatible
query I rowsort label-1587
SELECT ALL - CAST ( - 52 AS INTEGER ) col2
----
52

query I rowsort
SELECT DISTINCT - 92 - - 67 AS col1
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-1589
SELECT CASE 20 WHEN 75 THEN - 61 ELSE 71 END + + - COALESCE ( COUNT( + - 97 ), + + COUNT( * ) ) * 93 * - 1 AS col2
----
164

skipif mysql # not compatible
query I rowsort label-1589
SELECT CASE 20 WHEN 75 THEN - 61 ELSE 71 END + + - COALESCE ( COUNT ( + - 97 ), + + COUNT ( * ) ) * 93 * - 1 AS col2
----
164

query I rowsort
SELECT DISTINCT - - 44 * - 84
----
-3696

query I rowsort
SELECT DISTINCT - ( + + 70 ) * + 18
----
-1260

onlyif mysql # aggregate syntax: 
query I rowsort label-1592
SELECT DISTINCT - COUNT( * ) * + - 35 * - - 74 * + + COUNT( * ) * MIN( - - 75 ) col1
----
194250

skipif mysql # not compatible
query I rowsort label-1592
SELECT DISTINCT - COUNT ( * ) * + - 35 * - - 74 * + + COUNT ( * ) * MIN ( - - 75 ) col1
----
194250

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

query I rowsort
SELECT 18 * - 97 AS col0
----
-1746

onlyif mysql # aggregate syntax: 
query I rowsort label-1595
SELECT - 25 * + 78 - + MAX( + 85 ) * + - 33
----
855

skipif mysql # not compatible
query I rowsort label-1595
SELECT - 25 * + 78 - + MAX ( + 85 ) * + - 33
----
855

query I rowsort
SELECT 53 * - - 1 AS col0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-1597
SELECT SUM( DISTINCT + ( + CASE CASE - 68 WHEN + + 39 THEN ( + - COALESCE ( ( + 33 ), + 54 ) ) WHEN 92 + - 8 THEN 35 END WHEN - ( + 70 ) THEN - - NULLIF ( - ( + + 36 ), + 4 * - + 17 / - 30 ) END ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1597
SELECT SUM ( DISTINCT + ( + CASE CASE - 68 WHEN + + 39 THEN ( + - COALESCE ( ( + 33 ), + 54 ) ) WHEN 92 + - 8 THEN 35 END WHEN - ( + 70 ) THEN - - NULLIF ( - ( + + 36 ), + 4 * - + 17 / - 30 ) END ) )
----
NULL

query I rowsort
SELECT - 62 * - NULLIF ( + 19, - 15 )
----
1178

query I rowsort
SELECT ALL 74 * 25 AS col1
----
1850

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1600
SELECT ALL - COALESCE ( + 82, 50 DIV - 98 + + COUNT( - - 84 ) DIV - MIN( DISTINCT + 45 ) + + COALESCE ( + 17, - 15 * - CASE + SUM( ALL + ( + 57 ) ) WHEN ( - CASE - - 26 WHEN 75 THEN - + MAX( ALL - 83 ) WHEN - 7 + + CAST( + 41 AS SIGNED ) THEN NULL WHEN + - 67 THEN NULL ELSE + - COUNT( * ) END ) THEN - + 69 * + 10 + COUNT( * ) * + SUM( - 8 DIV + 38 ) WHEN CAST( NULL AS SIGNED ) * + 80 THEN 28 WHEN NULLIF ( - ( 64 ), - 45 + 46 DIV 66 ) DIV 71 THEN 10 + 53 END + + 40 ) ) * 89 + 35
----
-7263

skipif mysql # not compatible
query I rowsort label-1600
SELECT ALL - COALESCE ( + 82, 50 / - 98 + + COUNT ( - - 84 ) / - MIN ( DISTINCT + 45 ) + + COALESCE ( + 17, - 15 * - CASE + SUM ( ALL + ( + 57 ) ) WHEN ( - CASE - - 26 WHEN 75 THEN - + MAX ( ALL - 83 ) WHEN - 7 + + CAST ( + 41 AS INTEGER ) THEN NULL WHEN + - 67 THEN NULL ELSE + - COUNT ( * ) END ) THEN - + 69 * + 10 + COUNT ( * ) * + SUM ( - 8 / + 38 ) WHEN CAST ( NULL AS INTEGER ) * + 80 THEN 28 WHEN NULLIF ( - ( 64 ), - 45 + 46 / 66 ) / 71 THEN 10 + 53 END + + 40 ) ) * 89 + 35
----
-7263

onlyif mysql # aggregate syntax: 
query I rowsort label-1601
SELECT MAX( - 52 )
----
-52

skipif mysql # not compatible
query I rowsort label-1601
SELECT MAX ( - 52 )
----
-52

query I rowsort
SELECT ALL 74 * - ( - + 12 ) + + 58
----
946

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1603
SELECT ALL + CASE - CAST( NULL AS SIGNED ) WHEN + MIN( 86 ) THEN NULL ELSE - COUNT( * ) END + CAST( + + 70 AS SIGNED )
----
69

skipif mysql # not compatible
query I rowsort label-1603
SELECT ALL + CASE - CAST ( NULL AS INTEGER ) WHEN + MIN ( 86 ) THEN NULL ELSE - COUNT ( * ) END + CAST ( + + 70 AS INTEGER )
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-1604
SELECT + + 70 - - NULLIF ( 61, - - 62 ) + - + 98 * - COUNT( * )
----
229

skipif mysql # not compatible
query I rowsort label-1604
SELECT + + 70 - - NULLIF ( 61, - - 62 ) + - + 98 * - COUNT ( * )
----
229

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1605
SELECT + COUNT( DISTINCT + + 39 ) + 39 - 98 DIV - - 96, COUNT( * ) - + 29 + 4 AS col1
----
39
-24

skipif mysql # not compatible
query II rowsort label-1605
SELECT + COUNT ( DISTINCT + + 39 ) + 39 - 98 / - - 96, COUNT ( * ) - + 29 + 4 AS col1
----
39
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-1606
SELECT ALL ( ( 45 ) ) + + - COUNT( * ) * - COUNT( * ) + - - 56
----
102

skipif mysql # not compatible
query I rowsort label-1606
SELECT ALL ( ( 45 ) ) + + - COUNT ( * ) * - COUNT ( * ) + - - 56
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-1607
SELECT - 63 * + + ( + - SUM( DISTINCT + - 60 ) ) * 18 * 50 * - ( 68 ) + - SUM( CASE 15 WHEN 59 THEN NULL ELSE 6 * 79 END ) AS col1
----
231335526

skipif mysql # not compatible
query I rowsort label-1607
SELECT - 63 * + + ( + - SUM ( DISTINCT + - 60 ) ) * 18 * 50 * - ( 68 ) + - SUM ( CASE 15 WHEN 59 THEN NULL ELSE 6 * 79 END ) AS col1
----
231335526

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1609
SELECT DISTINCT ( 46 ) DIV + 83 * + 87
----
0

skipif mysql # not compatible
query I rowsort label-1609
SELECT DISTINCT ( 46 ) / + 83 * + 87
----
0

query I rowsort
SELECT + 7 + 41 + + + 34 * - - 42 AS col0
----
1476

query I rowsort
SELECT ALL + - 46 * - - ( + 31 ) col0
----
-1426

query I rowsort
SELECT DISTINCT 95 - - - 85 - + - 17
----
27

query I rowsort
SELECT ALL + ( + 52 ) * + 17
----
884

onlyif mysql # aggregate syntax: 
query I rowsort label-1614
SELECT - - 93 + - 46 + - 32 * - COUNT( * ) * + ( + 42 ) * + 54 + 9
----
72632

skipif mysql # not compatible
query I rowsort label-1614
SELECT - - 93 + - 46 + - 32 * - COUNT ( * ) * + ( + 42 ) * + 54 + 9
----
72632

query I rowsort
SELECT + 83 * + + 56
----
4648

query I rowsort
SELECT ALL 22 * + - 14 * - NULLIF ( - + 94, 76 )
----
-28952

onlyif mysql # aggregate syntax: 
query I rowsort label-1617
SELECT + 96 * + 21 + + COUNT( * ) AS col2
----
2017

skipif mysql # not compatible
query I rowsort label-1617
SELECT + 96 * + 21 + + COUNT ( * ) AS col2
----
2017

query I rowsort
SELECT NULLIF ( + 64, - + ( - - 13 ) ) AS col1
----
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1619
SELECT + - 91 + - + NULLIF ( 42, + 88 ) * - 68 DIV - + ( COUNT( * ) ) + - 59
----
-3006

skipif mysql # not compatible
query I rowsort label-1619
SELECT + - 91 + - + NULLIF ( 42, + 88 ) * - 68 / - + ( COUNT ( * ) ) + - 59
----
-3006

query I rowsort
SELECT - 52 * + + 55
----
-2860

query I rowsort
SELECT ALL 58 * 8
----
464

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

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

query I rowsort
SELECT ALL ( 0 ) col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1624
SELECT DISTINCT SUM( ALL - 81 ) AS col0
----
-81

skipif mysql # not compatible
query I rowsort label-1624
SELECT DISTINCT SUM ( ALL - 81 ) AS col0
----
-81

query I rowsort
SELECT ( 8 ) AS col2
----
8

query II rowsort
SELECT + 99, - 13 * - ( - - 78 ) + 38 AS col0
----
99
1052

onlyif mysql # DIV for integer division: 
query I rowsort label-1627
SELECT ALL - 31 DIV - 68 + + 77 AS col0
----
77

skipif mysql # not compatible
query I rowsort label-1627
SELECT ALL - 31 / - 68 + + 77 AS col0
----
77

query I rowsort
SELECT - 10 + - 71 - + 13 * 2 AS col1
----
-107

onlyif mysql # aggregate syntax: 
query I rowsort label-1629
SELECT - COUNT( + + 87 ) * 69
----
-69

skipif mysql # not compatible
query I rowsort label-1629
SELECT - COUNT ( + + 87 ) * 69
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-1630
SELECT - 58 * + 17 * 93 + - COUNT( ALL + 97 ) AS col1
----
-91699

skipif mysql # not compatible
query I rowsort label-1630
SELECT - 58 * + 17 * 93 + - COUNT ( ALL + 97 ) AS col1
----
-91699

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1631
SELECT 55 DIV - 32 + + 27 DIV + + 36 + SUM( DISTINCT - 46 )
----
-47

skipif mysql # not compatible
query I rowsort label-1631
SELECT 55 / - 32 + + 27 / + + 36 + SUM ( DISTINCT - 46 )
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-1632
SELECT DISTINCT - 21 * + COUNT( * ) + + 91
----
70

skipif mysql # not compatible
query I rowsort label-1632
SELECT DISTINCT - 21 * + COUNT ( * ) + + 91
----
70

query II rowsort
SELECT - 32 + + + 15 + - 19, 11 AS col1
----
-36
11

onlyif mysql # aggregate syntax: 
query I rowsort label-1634
SELECT + SUM( DISTINCT 42 ) AS col2
----
42

skipif mysql # not compatible
query I rowsort label-1634
SELECT + SUM ( DISTINCT 42 ) AS col2
----
42

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1636
SELECT ( + CASE + 63 WHEN + - CASE + - 73 WHEN - - ( - + 14 ) THEN - 19 ELSE 92 END THEN 49 - - 96 END ) * - MAX( DISTINCT - 25 ) + + - COUNT( * ) * - - ( - - 79 ), - 84 AS col2
----
NULL
-84

skipif mysql # not compatible
query II rowsort label-1636
SELECT ( + CASE + 63 WHEN + - CASE + - 73 WHEN - - ( - + 14 ) THEN - 19 ELSE 92 END THEN 49 - - 96 END ) * - MAX ( DISTINCT - 25 ) + + - COUNT ( * ) * - - ( - - 79 ), - 84 AS col2
----
NULL
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-1637
SELECT ALL 19 * - ( ( - + 66 ) ) + - COUNT( * )
----
1253

skipif mysql # not compatible
query I rowsort label-1637
SELECT ALL 19 * - ( ( - + 66 ) ) + - COUNT ( * )
----
1253

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

skipif mysql # not compatible
query I rowsort label-1638
SELECT - + ( - 50 ) / - COUNT ( * ) - + 95
----
-145

query I rowsort
SELECT + + 33 + 3 AS col1
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-1640
SELECT ALL + 27 DIV + 38 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1640
SELECT ALL + 27 / + 38 AS col1
----
0

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

query I rowsort
SELECT DISTINCT 77 * - 96 - + 44 col2
----
-7436

query I rowsort
SELECT ALL 44 * 79 + - 63
----
3413

query I rowsort
SELECT ALL + 92 * - 71 + 65 + - - 20 AS col2
----
-6447

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1646
SELECT ALL NULLIF ( + 61, - + COUNT( * ) * - 38 + + + CASE - ( + + 30 ) WHEN - 16 THEN + 97 ELSE NULL END ) * 7
----
427

skipif mysql # not compatible
query I rowsort label-1646
SELECT ALL NULLIF ( + 61, - + COUNT ( * ) * - 38 + + + CASE - ( + + 30 ) WHEN - 16 THEN + 97 ELSE NULL END ) * 7
----
427

query I rowsort
SELECT + 81 - + 56
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1648
SELECT + - CAST( - COALESCE ( + 24, 12 * - - 39 * + + 74 ) AS SIGNED ) - + + ( COALESCE ( + - 3, - - 52 + + 35 ) ) + - 96 + + 38 AS col0, - 62 AS col1
----
-31
-62

skipif mysql # not compatible
query II rowsort label-1648
SELECT + - CAST ( - COALESCE ( + 24, 12 * - - 39 * + + 74 ) AS INTEGER ) - + + ( COALESCE ( + - 3, - - 52 + + 35 ) ) + - 96 + + 38 AS col0, - 62 AS col1
----
-31
-62

query I rowsort
SELECT + + 70 * 22 AS col1
----
1540

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1650
SELECT DISTINCT 56 / - CASE CASE 40 WHEN - 40 THEN - + CAST( NULL AS SIGNED ) WHEN + 98 / - CAST( NULL AS SIGNED ) THEN NULL ELSE NULL END WHEN - 68 - + + COUNT( * ) * + + 50 THEN - ( - 63 ) END AS col0, + COALESCE ( - 67, COUNT( * ) * 15 * + 17, ( + NULLIF ( - 32, SUM( DISTINCT COALESCE ( + - 95, + CAST( + 50 AS SIGNED ) ) ) * + 93 ) ) + + 61 ) + - 83 AS col1
----
NULL
-150

skipif mysql # not compatible
query II rowsort label-1650
SELECT DISTINCT 56 / - CASE CASE 40 WHEN - 40 THEN - + CAST ( NULL AS INTEGER ) WHEN + 98 / - CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END WHEN - 68 - + + COUNT ( * ) * + + 50 THEN - ( - 63 ) END AS col0, + COALESCE ( - 67, COUNT ( * ) * 15 * + 17, ( + NULLIF ( - 32, SUM ( DISTINCT COALESCE ( + - 95, + CAST ( + 50 AS INTEGER ) ) ) * + 93 ) ) + + 61 ) + - 83 AS col1
----
NULL
-150

onlyif mysql # aggregate syntax: 
query I rowsort label-1651
SELECT ALL - MAX( DISTINCT + 67 ) + + 75 AS col0
----
8

skipif mysql # not compatible
query I rowsort label-1651
SELECT ALL - MAX ( DISTINCT + 67 ) + + 75 AS col0
----
8

query I rowsort
SELECT + 5 - + 28
----
-23

query I rowsort
SELECT DISTINCT 70 + 41 AS col0
----
111

query I rowsort
SELECT + 81 - - 81 col0
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-1655
SELECT ALL COUNT( * ) + 31 * - 99 * + 33
----
-101276

skipif mysql # not compatible
query I rowsort label-1655
SELECT ALL COUNT ( * ) + 31 * - 99 * + 33
----
-101276

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1656
SELECT ALL CAST( + 70 AS SIGNED ) + + - 94 AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-1656
SELECT ALL CAST ( + 70 AS INTEGER ) + + - 94 AS col0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-1657
SELECT COUNT( * ) + + - MIN( DISTINCT 83 ) col2
----
-82

skipif mysql # not compatible
query I rowsort label-1657
SELECT COUNT ( * ) + + - MIN ( DISTINCT 83 ) col2
----
-82

query I rowsort
SELECT COALESCE ( + - 23, + + 35 * - 98 ) * + 13 + + 53 AS col1
----
-246

onlyif mysql # aggregate syntax: 
query I rowsort label-1659
SELECT ALL COUNT( 52 ) + 98 AS col2
----
99

skipif mysql # not compatible
query I rowsort label-1659
SELECT ALL COUNT ( 52 ) + 98 AS col2
----
99

query II rowsort
SELECT 59 * - 62, 80 AS col2
----
-3658
80

query I rowsort
SELECT ALL + 25 + + ( 47 ) + - 83 AS col1
----
-11

query I rowsort
SELECT 84 * - 43 * - 70 AS col0
----
252840

onlyif mysql # aggregate syntax: 
query I rowsort label-1663
SELECT 59 + + 86 + + COUNT( * ) * - 35 AS col1
----
110

skipif mysql # not compatible
query I rowsort label-1663
SELECT 59 + + 86 + + COUNT ( * ) * - 35 AS col1
----
110

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1664
SELECT ALL COUNT( * ) DIV + 30 AS col0, - 52
----
0
-52

skipif mysql # not compatible
query II rowsort label-1664
SELECT ALL COUNT ( * ) / + 30 AS col0, - 52
----
0
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-1665
SELECT - SUM( DISTINCT + 38 ) * - COUNT( * ) * - - 77 + - 87
----
2839

skipif mysql # not compatible
query I rowsort label-1665
SELECT - SUM ( DISTINCT + 38 ) * - COUNT ( * ) * - - 77 + - 87
----
2839

query I rowsort
SELECT DISTINCT + 54 - - 64 col1
----
118

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1668
SELECT + 96 * - 56 - - CAST( NULL AS SIGNED ) + + - ( - 54 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1668
SELECT + 96 * - 56 - - CAST ( NULL AS INTEGER ) + + - ( - 54 )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1670
SELECT MIN( ALL ( - 13 ) ) * - 20 col2
----
260

skipif mysql # not compatible
query I rowsort label-1670
SELECT MIN ( ALL ( - 13 ) ) * - 20 col2
----
260

query I rowsort
SELECT + 25 * - 96 AS col2
----
-2400

onlyif mysql # DIV for integer division: 
query I rowsort label-1672
SELECT + 34 DIV + 76 - + 69
----
-69

skipif mysql # not compatible
query I rowsort label-1672
SELECT + 34 / + 76 - + 69
----
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1673
SELECT + COUNT( - - 23 ) + ( + + CAST( NULL AS SIGNED ) ) AS col0, ( - 73 ) - - - 8 + 82 + - 18 AS col1
----
NULL
-17

skipif mysql # not compatible
query II rowsort label-1673
SELECT + COUNT ( - - 23 ) + ( + + CAST ( NULL AS INTEGER ) ) AS col0, ( - 73 ) - - - 8 + 82 + - 18 AS col1
----
NULL
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1674
SELECT CAST( + 87 AS SIGNED ) - + 11
----
76

skipif mysql # not compatible
query I rowsort label-1674
SELECT CAST ( + 87 AS INTEGER ) - + 11
----
76

query I rowsort
SELECT ALL - 22 * ( + + COALESCE ( - 29, + - 32 ) )
----
638

onlyif mysql # DIV for integer division: 
query II rowsort label-1676
SELECT - 1 DIV 71 AS col1, 57
----
0
57

skipif mysql # not compatible
query II rowsort label-1676
SELECT - 1 / 71 AS col1, 57
----
0
57

onlyif mysql # aggregate syntax: 
query I rowsort label-1677
SELECT ( - + MIN( + 99 ) ) + 21
----
-78

skipif mysql # not compatible
query I rowsort label-1677
SELECT ( - + MIN ( + 99 ) ) + 21
----
-78

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1679
SELECT ALL MIN( 10 ) + + NULLIF ( - 91, + 73 ) AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-1679
SELECT ALL MIN ( 10 ) + + NULLIF ( - 91, + 73 ) AS col1
----
-81

query I rowsort
SELECT - 28 + + 77 col0
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1681
SELECT DISTINCT + CASE + + ( - AVG ( - 84 ) ) WHEN COUNT( * ) THEN - + 61 - + + 29 + 80 * + 59 + - CASE + + CAST( - ( CASE 87 WHEN + 41 * COUNT( * ) - - CASE - 67 WHEN - - 54 / - COALESCE ( + ( - 55 ), CASE - - 23 WHEN MIN( DISTINCT - 9 ) THEN NULL WHEN + 72 THEN - 86 WHEN - 23 THEN NULL END / COUNT( * ) + + 65 + - COALESCE ( COUNT( * ), - 47 ), 0 ) + - COUNT( * ) * MAX( DISTINCT + 80 ) THEN - COUNT( * ) * 46 + + 17 WHEN + 13 * NULLIF ( 26 / - 84, + 24 + - CAST( NULL AS SIGNED ) ) THEN NULL ELSE NULL END THEN + SUM( ALL 95 ) + 75 WHEN + CASE COUNT( * ) WHEN - COUNT( ( 2 ) ) - - 66 THEN - 8 - + 72 END THEN + 99 END ) AS SIGNED ) WHEN + 90 + + ( 62 + - CASE - 86 + + COUNT( * ) WHEN 20 THEN - 96 * 65 END ) THEN NULL ELSE 39 END * + 78 ELSE NULL END + - NULLIF ( - MIN( ALL 53 ), + COUNT( * ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1681
SELECT DISTINCT + CASE + + ( - AVG ( - 84 ) ) WHEN COUNT ( * ) THEN - + 61 - + + 29 + 80 * + 59 + - CASE + + CAST ( - ( CASE 87 WHEN + 41 * COUNT ( * ) - - CASE - 67 WHEN - - 54 / - COALESCE ( + ( - 55 ), CASE - - 23 WHEN MIN ( DISTINCT - 9 ) THEN NULL WHEN + 72 THEN - 86 WHEN - 23 THEN NULL END / COUNT ( * ) + + 65 + - COALESCE ( COUNT ( * ), - 47 ), 0 ) + - COUNT ( * ) * MAX ( DISTINCT + 80 ) THEN - COUNT ( * ) * 46 + + 17 WHEN + 13 * NULLIF ( 26 / - 84, + 24 + - CAST ( NULL AS INTEGER ) ) THEN NULL ELSE NULL END THEN + SUM ( ALL 95 ) + 75 WHEN + CASE COUNT ( * ) WHEN - COUNT ( ( 2 ) ) - - 66 THEN - 8 - + 72 END THEN + 99 END ) AS INTEGER ) WHEN + 90 + + ( 62 + - CASE - 86 + + COUNT ( * ) WHEN 20 THEN - 96 * 65 END ) THEN NULL ELSE 39 END * + 78 ELSE NULL END + - NULLIF ( - MIN ( ALL 53 ), + COUNT ( * ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1682
SELECT ALL AVG ( DISTINCT - 42 ) + 88 + SUM( - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1682
SELECT ALL AVG ( DISTINCT - 42 ) + 88 + SUM ( - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query III rowsort label-1683
SELECT DISTINCT 91 AS col0, ( 35 ), + COALESCE ( - - NULLIF ( - 13, + - 41 ), + + 50 ) DIV + 26 AS col1
----
91
35
0

skipif mysql # not compatible
query III rowsort label-1683
SELECT DISTINCT 91 AS col0, ( 35 ), + COALESCE ( - - NULLIF ( - 13, + - 41 ), + + 50 ) / + 26 AS col1
----
91
35
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1684
SELECT 24 + 39 * + CAST( ( - 7 ) AS SIGNED ) AS col2, - 89 * 34
----
-249
-3026

skipif mysql # not compatible
query II rowsort label-1684
SELECT 24 + 39 * + CAST ( ( - 7 ) AS INTEGER ) AS col2, - 89 * 34
----
-249
-3026

query I rowsort
SELECT NULLIF ( 19, - 52 ) * + + 96
----
1824

query I rowsort
SELECT ALL + 1 + 43 AS col1
----
44

query I rowsort
SELECT ALL 51 + 58
----
109

query I rowsort
SELECT ALL 10 + - 96 AS col1
----
-86

query I rowsort
SELECT DISTINCT 45 * + 20
----
900

onlyif mysql # DIV for integer division: 
query I rowsort label-1690
SELECT DISTINCT 56 DIV 41 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1690
SELECT DISTINCT 56 / 41 AS col2
----
1

query I rowsort
SELECT 94 - - - 38 * + + 7 + + 49 + + + 72 AS col1
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-1692
SELECT 97 * - 14 DIV 2
----
-679

skipif mysql # not compatible
query I rowsort label-1692
SELECT 97 * - 14 / 2
----
-679

query I rowsort
SELECT ALL 16 * 98 AS col1
----
1568

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1694
SELECT DISTINCT - 58 - - + 87 + - - 98 + + 73 * - COUNT( * ) DIV + 78 AS col1
----
127

skipif mysql # not compatible
query I rowsort label-1694
SELECT DISTINCT - 58 - - + 87 + - - 98 + + 73 * - COUNT ( * ) / + 78 AS col1
----
127

onlyif mysql # DIV for integer division: 
query I rowsort label-1695
SELECT 66 DIV + 4 - + 69
----
-53

skipif mysql # not compatible
query I rowsort label-1695
SELECT 66 / + 4 - + 69
----
-53

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1696
SELECT + CASE + 44 WHEN + 8 * - 26 THEN + + 28 * - 73 + + + 31 / + MIN( + 75 ) * + 27 + + CAST( NULL AS DECIMAL ) + - 41 + - 44 END + - 65 + 0 * + AVG ( + 43 ) - - MAX( DISTINCT + 49 ) + - 35 - - - 88 AS col1, + COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-1696
SELECT + CASE + 44 WHEN + 8 * - 26 THEN + + 28 * - 73 + + + 31 / + MIN ( + 75 ) * + 27 + + CAST ( NULL AS REAL ) + - 41 + - 44 END + - 65 + 0 * + AVG ( + 43 ) - - MAX ( DISTINCT + 49 ) + - 35 - - - 88 AS col1, + COUNT ( * )
----
NULL
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1697
SELECT DISTINCT - ( CASE ( 78 ) WHEN 94 + + - COALESCE ( + 97, ( + 82 ) + 2 ) + - 49 * - 21 / - MAX( ALL - - ( 9 ) ) * CASE WHEN NOT NULL < + ( - COUNT( * ) ) THEN + 41 * + 91 + 37 / - 80 + - ( + CAST( NULL AS SIGNED ) ) END + + 2 THEN 3 ELSE - - COUNT( * ) * + COUNT( * ) - - + COALESCE ( + 8, - SUM( DISTINCT - CASE + 11 WHEN 68 + 36 THEN 38 WHEN 59 THEN 77 + 99 END ) * - 38 ) END ) AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-1697
SELECT DISTINCT - ( CASE ( 78 ) WHEN 94 + + - COALESCE ( + 97, ( + 82 ) + 2 ) + - 49 * - 21 / - MAX ( ALL - - ( 9 ) ) * CASE WHEN NOT NULL < + ( - COUNT ( * ) ) THEN + 41 * + 91 + 37 / - 80 + - ( + CAST ( NULL AS INTEGER ) ) END + + 2 THEN 3 ELSE - - COUNT ( * ) * + COUNT ( * ) - - + COALESCE ( + 8, - SUM ( DISTINCT - CASE + 11 WHEN 68 + 36 THEN 38 WHEN 59 THEN 77 + 99 END ) * - 38 ) END ) AS col1
----
-9

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1699
SELECT - CAST( - COUNT( * ) AS SIGNED ) * - 86 + 67 * - + 96 * 68
----
-437462

skipif mysql # not compatible
query I rowsort label-1699
SELECT - CAST ( - COUNT ( * ) AS INTEGER ) * - 86 + 67 * - + 96 * 68
----
-437462

onlyif mysql # aggregate syntax: 
query I rowsort label-1700
SELECT + COUNT( * ) + 52 AS col0
----
53

skipif mysql # not compatible
query I rowsort label-1700
SELECT + COUNT ( * ) + 52 AS col0
----
53

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

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

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

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

query I rowsort
SELECT - 32 + - 94 AS col0
----
-126

query II rowsort
SELECT ALL - 25, 7 AS col1
----
-25
7

query I rowsort
SELECT DISTINCT + 81 * - 7 * - 23 + + - 97 AS col1
----
12944

query I rowsort
SELECT 15 * + ( + ( - 57 ) )
----
-855

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1707
SELECT ALL - 59 + + MAX( DISTINCT NULLIF ( - 18, + - 79 DIV + 42 ) ) * 63 + + 53 + - 98 * 21 AS col1, 52 + + COUNT( * ) + - + 7 DIV - 7 col1
----
-3198
54

skipif mysql # not compatible
query II rowsort label-1707
SELECT ALL - 59 + + MAX ( DISTINCT NULLIF ( - 18, + - 79 / + 42 ) ) * 63 + + 53 + - 98 * 21 AS col1, 52 + + COUNT ( * ) + - + 7 / - 7 col1
----
-3198
54

query II rowsort
SELECT 60 AS col1, 67 * - 38
----
60
-2546

query I rowsort
SELECT - COALESCE ( + 7, - 95 * - - 43 + 70 - + 68, + 55 )
----
-7

onlyif mysql # DIV for integer division: 
query II rowsort label-1710
SELECT - 30, ( - - 98 ) DIV 24 AS col1
----
-30
4

skipif mysql # not compatible
query II rowsort label-1710
SELECT - 30, ( - - 98 ) / 24 AS col1
----
-30
4

query I rowsort
SELECT - 70 - 11 + 85
----
4

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

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

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

skipif mysql # not compatible
query I rowsort label-1713
SELECT - 46 - - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) + - - 6 AS col0
----
NULL

query I rowsort
SELECT + 52 * + 93 * + 94 AS col2
----
454584

query II rowsort
SELECT ALL + 69 + 61 + - - 54 + + 88 * + 66 * 94 AS col0, + 48
----
546136
48

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

skipif mysql # not compatible
query I rowsort label-1716
SELECT DISTINCT - ( 48 ) / - + 72 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1717
SELECT ALL 10 + + NULLIF ( 86, - COUNT( * ) ) + 14 AS col0
----
110

skipif mysql # not compatible
query I rowsort label-1717
SELECT ALL 10 + + NULLIF ( 86, - COUNT ( * ) ) + 14 AS col0
----
110

query I rowsort
SELECT - 16 * - 61 AS col2
----
976

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1719
SELECT + 92 - + NULLIF ( - 91, + 46 * - COALESCE ( + CAST( + 99 AS SIGNED ), 16 ) * + + CAST( + 17 AS SIGNED ) * - 80 + + 4 ) * + 97 - + - 33 - - ( + + COUNT( * ) ) * 12 AS col2
----
8964

skipif mysql # not compatible
query I rowsort label-1719
SELECT + 92 - + NULLIF ( - 91, + 46 * - COALESCE ( + CAST ( + 99 AS INTEGER ), 16 ) * + + CAST ( + 17 AS INTEGER ) * - 80 + + 4 ) * + 97 - + - 33 - - ( + + COUNT ( * ) ) * 12 AS col2
----
8964

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1720
SELECT ALL - 24 * - MIN( - CAST( 38 AS SIGNED ) ) AS col1
----
-912

skipif mysql # not compatible
query I rowsort label-1720
SELECT ALL - 24 * - MIN ( - CAST ( 38 AS INTEGER ) ) AS col1
----
-912

query I rowsort
SELECT ALL + 70 - - 28
----
98

query I rowsort
SELECT - 56 * - 8 AS col2
----
448

query I rowsort
SELECT + 62 * 11 AS col0
----
682

query II rowsort
SELECT ALL 17, 49 AS col2
----
17
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1725
SELECT + 79 + - 96 + - MIN( - CAST( NULL AS SIGNED ) ) + + + 57 + - - NULLIF ( + 57, + + ( + + 81 ) + - 79 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1725
SELECT + 79 + - 96 + - MIN ( - CAST ( NULL AS INTEGER ) ) + + + 57 + - - NULLIF ( + 57, + + ( + + 81 ) + - 79 )
----
NULL

query II rowsort
SELECT 51 AS col2, 74 * 61
----
51
4514

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1727
SELECT ALL 26 * - CAST( 50 AS SIGNED ) - ( - + CASE + + COUNT( * ) WHEN - + 2 THEN 56 ELSE NULL END ) + + MIN( - + 81 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1727
SELECT ALL 26 * - CAST ( 50 AS INTEGER ) - ( - + CASE + + COUNT ( * ) WHEN - + 2 THEN 56 ELSE NULL END ) + + MIN ( - + 81 )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1729
SELECT - MAX( ALL - 55 ) col2
----
55

skipif mysql # not compatible
query I rowsort label-1729
SELECT - MAX ( ALL - 55 ) col2
----
55

query I rowsort
SELECT ALL + CASE - 67 WHEN - + 96 THEN NULL ELSE + - 79 END
----
-79

query II rowsort
SELECT + 18 AS col1, + 13
----
18
13

query I rowsort
SELECT + 80 * 84 AS col0
----
6720

onlyif mysql # aggregate syntax: 
query I rowsort label-1733
SELECT + 12 * 38 * + CASE + 76 WHEN - 59 THEN - SUM( DISTINCT 23 ) + + 24 + + 92 + + 19 + 91 ELSE + + 86 * - + NULLIF ( - + 38, + 70 * + COUNT( * ) * + ( 41 ) ) END * - 65 - 27 * + 97 AS col1
----
-96866139

skipif mysql # not compatible
query I rowsort label-1733
SELECT + 12 * 38 * + CASE + 76 WHEN - 59 THEN - SUM ( DISTINCT 23 ) + + 24 + + 92 + + 19 + 91 ELSE + + 86 * - + NULLIF ( - + 38, + 70 * + COUNT ( * ) * + ( 41 ) ) END * - 65 - 27 * + 97 AS col1
----
-96866139

query II rowsort
SELECT - 41 AS col1, + 24
----
-41
24

onlyif mysql # DIV for integer division: 
query I rowsort label-1735
SELECT + 7 DIV + + 24 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1735
SELECT + 7 / + + 24 AS col0
----
0

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

query I rowsort
SELECT + 60 + - - 63 * + 84 AS col1
----
5352

query I rowsort
SELECT ALL - 5 * + 71 + + 90
----
-265

query I rowsort
SELECT DISTINCT + 52 * 67 - 95 * + 19
----
1679

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1740
SELECT - ( - 37 ) * ( 0 ) - + CAST( NULL AS SIGNED ) + 90, MAX( ALL - + 26 ) * - - ( - 54 ) col0
----
NULL
1404

skipif mysql # not compatible
query II rowsort label-1740
SELECT - ( - 37 ) * ( 0 ) - + CAST ( NULL AS INTEGER ) + 90, MAX ( ALL - + 26 ) * - - ( - 54 ) col0
----
NULL
1404

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1741
SELECT DISTINCT + 72 DIV + MAX( 74 )
----
0

skipif mysql # not compatible
query I rowsort label-1741
SELECT DISTINCT + 72 / + MAX ( 74 )
----
0

query I rowsort
SELECT - - 33 + - 30 + - - 7 + 36 * - 39 - - + 10 + 76
----
-1308

onlyif mysql # aggregate syntax: 
query I rowsort label-1743
SELECT ALL + - COUNT( * ) * - 63 + + + 50 + 52 AS col2
----
165

skipif mysql # not compatible
query I rowsort label-1743
SELECT ALL + - COUNT ( * ) * - 63 + + + 50 + 52 AS col2
----
165

onlyif mysql # aggregate syntax: 
query I rowsort label-1744
SELECT DISTINCT + COUNT( DISTINCT 82 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1744
SELECT DISTINCT + COUNT ( DISTINCT 82 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1745
SELECT - COUNT( * ) * + COUNT( * ) * + + CASE + + 33 WHEN - 75 + 11 THEN - 15 WHEN 6 THEN AVG ( + 85 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1745
SELECT - COUNT ( * ) * + COUNT ( * ) * + + CASE + + 33 WHEN - 75 + 11 THEN - 15 WHEN 6 THEN AVG ( + 85 ) END
----
NULL

query I rowsort
SELECT ALL - 21 * + 45 * + - 9 * - + 6 * - - 94 + 13
----
-4796807

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1747
SELECT + 46 + 50 + - 86 + + CAST( + - 93 AS SIGNED ) DIV 25 * 65 DIV 79
----
8

skipif mysql # not compatible
query I rowsort label-1747
SELECT + 46 + 50 + - 86 + + CAST ( + - 93 AS INTEGER ) / 25 * 65 / 79
----
8

query I rowsort
SELECT + 49 * - 59 * - 95 - + 11
----
274634

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1751
SELECT + 4 * - + COUNT( * ) AS col0, - 90
----
-4
-90

skipif mysql # not compatible
query II rowsort label-1751
SELECT + 4 * - + COUNT ( * ) AS col0, - 90
----
-4
-90

query I rowsort
SELECT ALL - 38 - - 91 AS col1
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-1753
SELECT DISTINCT CASE - + COALESCE ( - - COUNT( * ), + 25 * 43 + COALESCE ( 31, 64 ) - + 51 * - - 57 + + 39 ) WHEN 99 * - 91 THEN 48 WHEN - - ( + - 61 ) / + + 15 * + ( - - 53 ) + - + 35 + - 87 * + + 26 THEN 20 ELSE + - 7 * - ( 7 ) + - + 38 END AS col1
----
11

skipif mysql # not compatible
query I rowsort label-1753
SELECT DISTINCT CASE - + COALESCE ( - - COUNT ( * ), + 25 * 43 + COALESCE ( 31, 64 ) - + 51 * - - 57 + + 39 ) WHEN 99 * - 91 THEN 48 WHEN - - ( + - 61 ) / + + 15 * + ( - - 53 ) + - + 35 + - 87 * + + 26 THEN 20 ELSE + - 7 * - ( 7 ) + - + 38 END AS col1
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-1754
SELECT - MAX( - + 91 ) / - COUNT( * ) * + - CASE + CASE + 67 WHEN - - 10 * 82 THEN 61 END WHEN 85 THEN - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1754
SELECT - MAX ( - + 91 ) / - COUNT ( * ) * + - CASE + CASE + 67 WHEN - - 10 * 82 THEN 61 END WHEN 85 THEN - COUNT ( * ) END
----
NULL

query II rowsort
SELECT + 38 * + 57 AS col1, + 86 + - - 14 col1
----
2166
100

query II rowsort
SELECT ALL + 39 * + 10 AS col2, - 10
----
390
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-1757
SELECT ALL + 66 DIV + 70 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1757
SELECT ALL + 66 / + 70 AS col0
----
0

query I rowsort
SELECT - 2 * 15
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-1759
SELECT ALL 14 * - + MAX( DISTINCT + + ( 51 ) ) AS col1
----
-714

skipif mysql # not compatible
query I rowsort label-1759
SELECT ALL 14 * - + MAX ( DISTINCT + + ( 51 ) ) AS col1
----
-714

query II rowsort
SELECT - 20 + - - 16 AS col1, + NULLIF ( 43, - - 1 * - 0 ) AS col0
----
-4
43

onlyif mysql # aggregate syntax: 
query II rowsort label-1761
SELECT ALL SUM( 89 ) AS col1, 53
----
89
53

skipif mysql # not compatible
query II rowsort label-1761
SELECT ALL SUM ( 89 ) AS col1, 53
----
89
53

onlyif mysql # aggregate syntax: 
query I rowsort label-1762
SELECT + 65 + 58 * - + ( COUNT( * ) ) col0
----
7

skipif mysql # not compatible
query I rowsort label-1762
SELECT + 65 + 58 * - + ( COUNT ( * ) ) col0
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1763
SELECT - COUNT( * ) * - + 8 + - 4 + - CASE 40 WHEN - - 87 THEN - 15 WHEN - - COUNT( * ) THEN + - 51 + - 96 / - 76 + 71 - 3 * + + CAST( + COUNT( * ) AS SIGNED ) WHEN - + 43 THEN NULL END * + 37 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1763
SELECT - COUNT ( * ) * - + 8 + - 4 + - CASE 40 WHEN - - 87 THEN - 15 WHEN - - COUNT ( * ) THEN + - 51 + - 96 / - 76 + 71 - 3 * + + CAST ( + COUNT ( * ) AS INTEGER ) WHEN - + 43 THEN NULL END * + 37 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1764
SELECT + 78 + + COUNT( * ) AS col2, + 42
----
79
42

skipif mysql # not compatible
query II rowsort label-1764
SELECT + 78 + + COUNT ( * ) AS col2, + 42
----
79
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1765
SELECT + - CAST( - 46 AS SIGNED ) * + 38 + - 83 AS col1
----
1665

skipif mysql # not compatible
query I rowsort label-1765
SELECT + - CAST ( - 46 AS INTEGER ) * + 38 + - 83 AS col1
----
1665

onlyif mysql # aggregate syntax: 
query I rowsort label-1766
SELECT - + 3 * + MIN( ALL + 2 ) + 53 AS col0
----
47

skipif mysql # not compatible
query I rowsort label-1766
SELECT - + 3 * + MIN ( ALL + 2 ) + 53 AS col0
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1767
SELECT ALL - 1 DIV - 55 * + + 62 + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-1767
SELECT ALL - 1 / - 55 * + + 62 + - COUNT ( * )
----
-1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1769
SELECT - COUNT( * ) * - ( - 41 ) + - - 42 - + - 15 + - 31
----
-15

skipif mysql # not compatible
query I rowsort label-1769
SELECT - COUNT ( * ) * - ( - 41 ) + - - 42 - + - 15 + - 31
----
-15

query I rowsort
SELECT + 47 * - 12
----
-564

query I rowsort
SELECT ALL 34 - 10 * 35
----
-316

query I rowsort
SELECT ALL ( - + 50 ) * - 7 AS col1
----
350

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

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

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

skipif mysql # not compatible
query I rowsort label-1774
SELECT ALL + 42 / - COALESCE ( - 68, - + COUNT ( * ) * + CAST ( NULL AS INTEGER ) ) AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1775
SELECT CAST( 20 AS SIGNED ) DIV + 67
----
0

skipif mysql # not compatible
query I rowsort label-1775
SELECT CAST ( 20 AS INTEGER ) / + 67
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-1776
SELECT ALL 93 col0, + 88 DIV - 5 AS col2
----
93
-17

skipif mysql # not compatible
query II rowsort label-1776
SELECT ALL 93 col0, + 88 / - 5 AS col2
----
93
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-1777
SELECT NULLIF ( - - SUM( + COALESCE ( - 60, - 54 + + - 51 ) ), 4 + - + 3 + + COUNT( * ) * 97 / + 41 ) * - 24 col1
----
1440

skipif mysql # not compatible
query I rowsort label-1777
SELECT NULLIF ( - - SUM ( + COALESCE ( - 60, - 54 + + - 51 ) ), 4 + - + 3 + + COUNT ( * ) * 97 / + 41 ) * - 24 col1
----
1440

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

skipif mysql # not compatible
query I rowsort label-1778
SELECT 78 * - - COUNT ( * )
----
78

query II rowsort
SELECT ALL 50, NULLIF ( 91, 75 ) AS col0
----
50
91

query II rowsort
SELECT ALL 58 AS col2, - 99 AS col2
----
58
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-1781
SELECT DISTINCT + SUM( - 87 ) * 60 + - 24
----
-5244

skipif mysql # not compatible
query I rowsort label-1781
SELECT DISTINCT + SUM ( - 87 ) * 60 + - 24
----
-5244

query II rowsort
SELECT DISTINCT 91 * + - 75 * - 14 AS col2, + 0 AS col2
----
95550
0

query I rowsort
SELECT 93 * 55
----
5115

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1786
SELECT - ( + - ( + 93 ) ) + - 99 + 67 - - 37 + + 79 * - COUNT( * ) * - 49 + - 82 * + MAX( + - 40 ) AS col0
----
7249

skipif mysql # not compatible
query I rowsort label-1786
SELECT - ( + - ( + 93 ) ) + - 99 + 67 - - 37 + + 79 * - COUNT ( * ) * - 49 + - 82 * + MAX ( + - 40 ) AS col0
----
7249

query II rowsort
SELECT DISTINCT + 2 AS col2, 45 + - 6
----
2
39

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

skipif mysql # not compatible
query I rowsort label-1788
SELECT ALL 99 + + + ( ( + - CAST ( NULL AS INTEGER ) ) ) + - 85
----
NULL

query I rowsort
SELECT DISTINCT + + 28 * 90
----
2520

query I rowsort
SELECT DISTINCT + 94 + + NULLIF ( + - 31, + 26 + - 74 )
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-1791
SELECT ALL SUM( DISTINCT - 20 ) + + - ( + 90 ) AS col2
----
-110

skipif mysql # not compatible
query I rowsort label-1791
SELECT ALL SUM ( DISTINCT - 20 ) + + - ( + 90 ) AS col2
----
-110

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1792
SELECT SUM( DISTINCT 65 ) DIV - + 28 + + - CASE + 14 WHEN + COUNT( * ) THEN NULL ELSE - SUM( + 74 ) END * + 40
----
2958

skipif mysql # not compatible
query I rowsort label-1792
SELECT SUM ( DISTINCT 65 ) / - + 28 + + - CASE + 14 WHEN + COUNT ( * ) THEN NULL ELSE - SUM ( + 74 ) END * + 40
----
2958

onlyif mysql # aggregate syntax: 
query I rowsort label-1793
SELECT ALL - MAX( + 97 ) AS col1
----
-97

skipif mysql # not compatible
query I rowsort label-1793
SELECT ALL - MAX ( + 97 ) AS col1
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-1794
SELECT DISTINCT + - COUNT( * ) * - - SUM( DISTINCT - 85 ) * + 7 AS col2
----
595

skipif mysql # not compatible
query I rowsort label-1794
SELECT DISTINCT + - COUNT ( * ) * - - SUM ( DISTINCT - 85 ) * + 7 AS col2
----
595

query I rowsort
SELECT DISTINCT - + ( - 18 ) col1
----
18

query I rowsort
SELECT DISTINCT + + 56 * + 76 col0
----
4256

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1799
SELECT COUNT ( * ) * - 85 * 53 / - 53
----
85

query I rowsort
SELECT ( 13 ) + 66 * 56 AS col2
----
3709

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1801
SELECT COUNT( * ) DIV - CAST( 24 AS SIGNED ) col2
----
0

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

query I rowsort
SELECT 62 + - + 19
----
43

onlyif mysql # aggregate syntax: 
query II rowsort label-1803
SELECT ALL 45 * 69 AS col1, 6 * NULLIF ( - COUNT( * ), + - 96 * + COUNT( * ) * + 21 * - + 98 + + - COUNT( ALL - + 64 ) ) AS col2
----
3105
-6

skipif mysql # not compatible
query II rowsort label-1803
SELECT ALL 45 * 69 AS col1, 6 * NULLIF ( - COUNT ( * ), + - 96 * + COUNT ( * ) * + 21 * - + 98 + + - COUNT ( ALL - + 64 ) ) AS col2
----
3105
-6

query I rowsort
SELECT ALL - 66 * - 66
----
4356

query I rowsort
SELECT DISTINCT 50 * + + 41 AS col0
----
2050

query I rowsort
SELECT 93 * - 96 * 8 * - ( + 1 ) AS col0
----
71424

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1807
SELECT CASE - 50 WHEN 83 THEN NULL WHEN - 61 * + + CAST( - COUNT( * ) AS SIGNED ) * + + 79 THEN + 39 * + 61 + - 78 ELSE NULL END + + 76 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1807
SELECT CASE - 50 WHEN 83 THEN NULL WHEN - 61 * + + CAST ( - COUNT ( * ) AS INTEGER ) * + + 79 THEN + 39 * + 61 + - 78 ELSE NULL END + + 76 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1808
SELECT DISTINCT 44 + 88 + 45 * + 0 * COUNT( * ) * + 10
----
132

skipif mysql # not compatible
query I rowsort label-1808
SELECT DISTINCT 44 + 88 + 45 * + 0 * COUNT ( * ) * + 10
----
132

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1809
SELECT ALL 79 + - COUNT( * ) AS col1, ( COUNT( * ) ) DIV ( 34 ) DIV - 4 * + 65 col1
----
78
0

skipif mysql # not compatible
query II rowsort label-1809
SELECT ALL 79 + - COUNT ( * ) AS col1, ( COUNT ( * ) ) / ( 34 ) / - 4 * + 65 col1
----
78
0

query I rowsort
SELECT 97 + + 56 AS col0
----
153

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

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

query I rowsort
SELECT ALL 83 + 65
----
148

query I rowsort
SELECT DISTINCT + CASE - 63 WHEN - 67 THEN 82 + + 57 END
----
NULL

query I rowsort
SELECT ALL + + NULLIF ( + 36, - 43 ) + ( + 11 ) AS col2
----
47

query I rowsort
SELECT + 36 + + 70
----
106

query I rowsort
SELECT DISTINCT + 65 * + 33 AS col0
----
2145

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1817
SELECT 66 + - + 96 * + 58 - + CAST( + 32 AS SIGNED ) col2
----
-5534

skipif mysql # not compatible
query I rowsort label-1817
SELECT 66 + - + 96 * + 58 - + CAST ( + 32 AS INTEGER ) col2
----
-5534

onlyif mysql # aggregate syntax: 
query I rowsort label-1818
SELECT - MAX( ALL - + 88 ) * + + 4 + + 53
----
405

skipif mysql # not compatible
query I rowsort label-1818
SELECT - MAX ( ALL - + 88 ) * + + 4 + + 53
----
405

onlyif mysql # DIV for integer division: 
query I rowsort label-1819
SELECT ALL + 32 * + 36 DIV + + 2
----
576

skipif mysql # not compatible
query I rowsort label-1819
SELECT ALL + 32 * + 36 / + + 2
----
576

query II rowsort
SELECT ( - 36 ) col1, 27
----
-36
27

onlyif mysql # aggregate syntax: 
query I rowsort label-1821
SELECT - + 21 + - COUNT( * ) + - 84 AS col2
----
-106

skipif mysql # not compatible
query I rowsort label-1821
SELECT - + 21 + - COUNT ( * ) + - 84 AS col2
----
-106

query I rowsort
SELECT + 2 * + 6 * - - 39 AS col2
----
468

query II rowsort
SELECT - + 71 * - 26, 67 col2
----
1846
67

query I rowsort
SELECT - 56 * - 36 * - - 6
----
12096

onlyif mysql # aggregate syntax: 
query II rowsort label-1825
SELECT - - 94 + 91 AS col2, 39 * MIN( + 9 ) + - - 71 AS col0
----
185
422

skipif mysql # not compatible
query II rowsort label-1825
SELECT - - 94 + 91 AS col2, 39 * MIN ( + 9 ) + - - 71 AS col0
----
185
422

onlyif mysql # DIV for integer division: 
query I rowsort label-1826
SELECT ALL - 88 DIV 94 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1826
SELECT ALL - 88 / 94 AS col2
----
0

query I rowsort
SELECT + 5 * + 14 AS col0
----
70

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

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

query I rowsort
SELECT - 69 * + 16 * - 16 * - 74
----
-1307136

onlyif mysql # aggregate syntax: 
query I rowsort label-1830
SELECT ALL + 79 * + - COUNT( * ) * ( - 43 )
----
3397

skipif mysql # not compatible
query I rowsort label-1830
SELECT ALL + 79 * + - COUNT ( * ) * ( - 43 )
----
3397

query II rowsort
SELECT + 44 AS col0, 89
----
44
89

query I rowsort
SELECT ALL + NULLIF ( + 79, - 57 * 97 ) AS col1
----
79

query I rowsort
SELECT DISTINCT 67 * + NULLIF ( + 57, - 45 + NULLIF ( + 97, - 57 ) ) + - 57
----
3762

query I rowsort
SELECT ALL 35 * 51 + - 71
----
1714

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1835
SELECT DISTINCT 85 * + + CASE - COALESCE ( + 71, - - MIN( ALL - 50 ) * + COALESCE ( - 43, - - MIN( DISTINCT + - 3 ) * 13 * + ( + - 21 ), - - 1 ) * + + 1, - 11 * 0, - CASE + - COALESCE ( CAST( NULL AS SIGNED ), 96, 86 ) WHEN + COUNT( * ) THEN - COUNT( + 27 ) END ) WHEN ( + COUNT( * ) ) * - 74 + - - 8 + + 3 * + - 65 THEN + ( 55 ) * - 13 * + + 97 * + 15 END + 21 * ( - 89 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1835
SELECT DISTINCT 85 * + + CASE - COALESCE ( + 71, - - MIN ( ALL - 50 ) * + COALESCE ( - 43, - - MIN ( DISTINCT + - 3 ) * 13 * + ( + - 21 ), - - 1 ) * + + 1, - 11 * 0, - CASE + - COALESCE ( CAST ( NULL AS INTEGER ), 96, 86 ) WHEN + COUNT ( * ) THEN - COUNT ( + 27 ) END ) WHEN ( + COUNT ( * ) ) * - 74 + - - 8 + + 3 * + - 65 THEN + ( 55 ) * - 13 * + + 97 * + 15 END + 21 * ( - 89 )
----
NULL

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

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

query I rowsort
SELECT DISTINCT ( - 33 ) AS col1
----
-33

query I rowsort
SELECT DISTINCT - 35 + 84
----
49

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

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

query I rowsort
SELECT DISTINCT - 35 + 90
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-1841
SELECT ALL - + 19 + - + 78 - - 30 * + + SUM( DISTINCT 95 ) AS col1
----
2753

skipif mysql # not compatible
query I rowsort label-1841
SELECT ALL - + 19 + - + 78 - - 30 * + + SUM ( DISTINCT 95 ) AS col1
----
2753

query II rowsort
SELECT DISTINCT + 86 AS col2, 75
----
86
75

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

skipif mysql # not compatible
query I rowsort label-1843
SELECT ALL - COUNT ( * ) + 48 AS col2
----
47

query I rowsort
SELECT ALL + NULLIF ( - 4, + - 59 ) * ( - 78 ) AS col2
----
312

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1845
SELECT + - 66 - - 99 + + - 12 * - 31 / + CAST( NULL AS SIGNED ) + 41, ( + 99 ) + 2 AS col2
----
NULL
101

skipif mysql # not compatible
query II rowsort label-1845
SELECT + - 66 - - 99 + + - 12 * - 31 / + CAST ( NULL AS INTEGER ) + 41, ( + 99 ) + 2 AS col2
----
NULL
101

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

skipif mysql # not compatible
query I rowsort label-1846
SELECT + MAX ( DISTINCT 14 ) - + - 59 AS col2
----
73

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1849
SELECT ALL ( - 79 ) * + + COUNT( * ) + ( + 88 )
----
9

skipif mysql # not compatible
query I rowsort label-1849
SELECT ALL ( - 79 ) * + + COUNT ( * ) + ( + 88 )
----
9

query I rowsort
SELECT + - 98 * - + 44 AS col0
----
4312

query I rowsort
SELECT ALL + ( + + 90 ) col2
----
90

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1853
SELECT + - CASE + 41 WHEN + - CAST( + 91 AS SIGNED ) THEN NULL WHEN - - 47 - - 33 + 55 * - + 43 * - + 15 * - 80 * - 91 THEN + COUNT( * ) - - 73 * + - COUNT( * ) END * + + 14 + + 74 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1853
SELECT + - CASE + 41 WHEN + - CAST ( + 91 AS INTEGER ) THEN NULL WHEN - - 47 - - 33 + 55 * - + 43 * - + 15 * - 80 * - 91 THEN + COUNT ( * ) - - 73 * + - COUNT ( * ) END * + + 14 + + 74 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1854
SELECT CAST( + COALESCE ( - COUNT( * ), + 20 / SUM( ALL - + 86 ) + 59 ) AS SIGNED ) * 17 * - + 92 + - + 85 * 63 + - CASE + 53 WHEN + 28 / - 59 * + - 41 THEN NULL ELSE + 82 * 56 + + ( + - 56 ) + 88 * + COALESCE ( + 6, - 98 ) END
----
-8855

skipif mysql # not compatible
query I rowsort label-1854
SELECT CAST ( + COALESCE ( - COUNT ( * ), + 20 / SUM ( ALL - + 86 ) + 59 ) AS INTEGER ) * 17 * - + 92 + - + 85 * 63 + - CASE + 53 WHEN + 28 / - 59 * + - 41 THEN NULL ELSE + 82 * 56 + + ( + - 56 ) + 88 * + COALESCE ( + 6, - 98 ) END
----
-8855

onlyif mysql # DIV for integer division: 
query I rowsort label-1855
SELECT + 2 DIV + 26 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1855
SELECT + 2 / + 26 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1856
SELECT CAST( NULL AS DECIMAL ) AS col2, + CAST( NULL AS SIGNED ) + - - 21 AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1856
SELECT CAST ( NULL AS REAL ) AS col2, + CAST ( NULL AS INTEGER ) + - - 21 AS col0
----
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1857
SELECT + 40 DIV 68 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1857
SELECT + 40 / 68 AS col2
----
0

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

skipif mysql # not compatible
query I rowsort label-1858
SELECT - 46 * - + ( + COUNT ( * ) ) / ( ( + + COUNT ( * ) ) ) * 29 AS col1
----
1334

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1860
SELECT DISTINCT + ( COALESCE ( + 18, - 98, CASE + + 1 WHEN 26 * + 23 + 69 THEN - CASE 48 WHEN 73 - - + 23 THEN + 95 DIV 24 WHEN - + CASE + + 23 WHEN + - 46 THEN NULL ELSE - 96 END THEN NULL WHEN 13 + - 8 THEN NULL ELSE NULL END * + - 80 * + 41 WHEN + ( COUNT( * ) ) THEN NULL WHEN + - 17 + + 9 THEN NULL ELSE + - CASE + 78 WHEN 39 + - - 43 THEN - 93 WHEN + 93 THEN NULL END END * 27 + - 28 ) ) DIV + COALESCE ( + 69, 99 ) + 64 + - 43 AS col0
----
21

skipif mysql # not compatible
query I rowsort label-1860
SELECT DISTINCT + ( COALESCE ( + 18, - 98, CASE + + 1 WHEN 26 * + 23 + 69 THEN - CASE 48 WHEN 73 - - + 23 THEN + 95 / 24 WHEN - + CASE + + 23 WHEN + - 46 THEN NULL ELSE - 96 END THEN NULL WHEN 13 + - 8 THEN NULL ELSE NULL END * + - 80 * + 41 WHEN + ( COUNT ( * ) ) THEN NULL WHEN + - 17 + + 9 THEN NULL ELSE + - CASE + 78 WHEN 39 + - - 43 THEN - 93 WHEN + 93 THEN NULL END END * 27 + - 28 ) ) / + COALESCE ( + 69, 99 ) + 64 + - 43 AS col0
----
21

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1862
SELECT ALL 63 * - CAST( NULL AS SIGNED ) * + 83 + - - COUNT( * ) + ( 89 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1862
SELECT ALL 63 * - CAST ( NULL AS INTEGER ) * + 83 + - - COUNT ( * ) + ( 89 )
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1864
SELECT + 56 * COUNT( * ) * - - 25 + - 21
----
1379

skipif mysql # not compatible
query I rowsort label-1864
SELECT + 56 * COUNT ( * ) * - - 25 + - 21
----
1379

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1865
SELECT + COUNT( DISTINCT + 68 ) DIV + 10
----
0

skipif mysql # not compatible
query I rowsort label-1865
SELECT + COUNT ( DISTINCT + 68 ) / + 10
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1866
SELECT + 11 AS col0, - ( - + 61 ) * + 53 * - + 42 * 20 + + 50 + 91 + - COUNT( * ) + + 85 - CAST( NULL AS SIGNED ) + + - 43 * - - 18 * COUNT( * ) AS col1
----
11
NULL

skipif mysql # not compatible
query II rowsort label-1866
SELECT + 11 AS col0, - ( - + 61 ) * + 53 * - + 42 * 20 + + 50 + 91 + - COUNT ( * ) + + 85 - CAST ( NULL AS INTEGER ) + + - 43 * - - 18 * COUNT ( * ) AS col1
----
11
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1867
SELECT - 12 * - 20 * MAX( - + 0 ) + 3 col1
----
3

skipif mysql # not compatible
query I rowsort label-1867
SELECT - 12 * - 20 * MAX ( - + 0 ) + 3 col1
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1868
SELECT + MAX( ALL + + CAST( + 76 AS SIGNED ) ) AS col0
----
76

skipif mysql # not compatible
query I rowsort label-1868
SELECT + MAX ( ALL + + CAST ( + 76 AS INTEGER ) ) AS col0
----
76

query I rowsort
SELECT DISTINCT 87 * + 93 + + 26 + - + 77 + - 92 * - + 35 * 29
----
101420

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1871
SELECT ALL 61 * 44 * 69 - + COUNT( * ) + - 16 * - 83 AS col1, - 44
----
186523
-44

skipif mysql # not compatible
query II rowsort label-1871
SELECT ALL 61 * 44 * 69 - + COUNT ( * ) + - 16 * - 83 AS col1, - 44
----
186523
-44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1872
SELECT ALL + ( + ( + 55 ) ) * - CASE - + 72 WHEN - - COUNT( * ) DIV - + 61 THEN NULL ELSE - 87 END - + 25 + ( + 52 ) + - 6 DIV + - 36
----
4812

skipif mysql # not compatible
query I rowsort label-1872
SELECT ALL + ( + ( + 55 ) ) * - CASE - + 72 WHEN - - COUNT ( * ) / - + 61 THEN NULL ELSE - 87 END - + 25 + ( + 52 ) + - 6 / + - 36
----
4812

query II rowsort
SELECT DISTINCT + 31 AS col1, - NULLIF ( + 69, - 93 * - 73 + + - 35 ) AS col2
----
31
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-1874
SELECT + 22 + - + 35 DIV 25 AS col0
----
21

skipif mysql # not compatible
query I rowsort label-1874
SELECT + 22 + - + 35 / 25 AS col0
----
21

query II rowsort
SELECT ALL - 93, - ( ( - 93 ) ) AS col2
----
-93
93

query I rowsort
SELECT ALL - 15 - - 90 * + 25 AS col1
----
2235

query I rowsort
SELECT - 75 * + 80 AS col0
----
-6000

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1880
SELECT DISTINCT + MAX( - 91 ) DIV - 32
----
2

skipif mysql # not compatible
query I rowsort label-1880
SELECT DISTINCT + MAX ( - 91 ) / - 32
----
2

query II rowsort
SELECT ALL - 72 AS col2, 40 * 22 * + + 60
----
-72
52800

query I rowsort
SELECT 52 + - 15 AS col0
----
37

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

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

query I rowsort
SELECT 44 + - 76
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1885
SELECT SUM( - NULLIF ( + CAST( + - ( + 33 ) AS SIGNED ), - + 80 ) )
----
33

skipif mysql # not compatible
query I rowsort label-1885
SELECT SUM ( - NULLIF ( + CAST ( + - ( + 33 ) AS INTEGER ), - + 80 ) )
----
33

query I rowsort
SELECT ALL 28 + + - 59 col2
----
-31

query I rowsort
SELECT 62 * 96 AS col0
----
5952

onlyif mysql # aggregate syntax: 
query I rowsort label-1888
SELECT ALL - COUNT( DISTINCT - 97 ) + + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-1888
SELECT ALL - COUNT ( DISTINCT - 97 ) + + COUNT ( * )
----
0

query I rowsort
SELECT DISTINCT 63 + 67
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-1890
SELECT ALL COUNT( * ) + NULLIF ( COUNT( * ), 99 ) + + + 51
----
53

skipif mysql # not compatible
query I rowsort label-1890
SELECT ALL COUNT ( * ) + NULLIF ( COUNT ( * ), 99 ) + + + 51
----
53

query II rowsort
SELECT ALL 92 + - 49 * + + 21 * + ( - 32 ) AS col1, 34 AS col2
----
33020
34

onlyif mysql # DIV for integer division: 
query II rowsort label-1892
SELECT DISTINCT - 7 * + 38, 75 DIV - NULLIF ( 1, - 48 * 98 ) + 86 AS col0
----
-266
11

skipif mysql # not compatible
query II rowsort label-1892
SELECT DISTINCT - 7 * + 38, 75 / - NULLIF ( 1, - 48 * 98 ) + 86 AS col0
----
-266
11

query I rowsort
SELECT DISTINCT 27 + + ( - 34 )
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1894
SELECT CASE ( COUNT( * ) ) WHEN + 76 + + ( + 15 ) + + 13 THEN - + CAST( NULL AS SIGNED ) END / + 89 + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1894
SELECT CASE ( COUNT ( * ) ) WHEN + 76 + + ( + 15 ) + + 13 THEN - + CAST ( NULL AS INTEGER ) END / + 89 + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL 26 - 9
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1896
SELECT DISTINCT + MAX( ALL - - CAST( 23 AS SIGNED ) ) DIV + 30 * + SUM( + - 56 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1896
SELECT DISTINCT + MAX ( ALL - - CAST ( 23 AS INTEGER ) ) / + 30 * + SUM ( + - 56 ) AS col2
----
0

query I rowsort
SELECT ALL - 17 - - - 95
----
-112

onlyif mysql # DIV for integer division: 
query I rowsort label-1898
SELECT 22 DIV - + 53 * + 3
----
0

skipif mysql # not compatible
query I rowsort label-1898
SELECT 22 / - + 53 * + 3
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1899
SELECT DISTINCT - 77 DIV - ( 37 )
----
2

skipif mysql # not compatible
query I rowsort label-1899
SELECT DISTINCT - 77 / - ( 37 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1900
SELECT MIN( - 62 )
----
-62

skipif mysql # not compatible
query I rowsort label-1900
SELECT MIN ( - 62 )
----
-62

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

skipif mysql # not compatible
query I rowsort label-1901
SELECT - MAX ( ( - 21 ) )
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-1902
SELECT + ( - 49 ) * + ( - MIN( 32 ) ) AS col2
----
1568

skipif mysql # not compatible
query I rowsort label-1902
SELECT + ( - 49 ) * + ( - MIN ( 32 ) ) AS col2
----
1568

query I rowsort
SELECT + 73 - + - 82 * + - 50 AS col2
----
-4027

onlyif mysql # aggregate syntax: 
query I rowsort label-1904
SELECT COUNT( * ) * 12 * + ( + ( 54 ) ) AS col0
----
648

skipif mysql # not compatible
query I rowsort label-1904
SELECT COUNT ( * ) * 12 * + ( + ( 54 ) ) AS col0
----
648

query II rowsort
SELECT ALL - + 39 * + 91, + 86 col0
----
-3549
86

onlyif mysql # aggregate syntax: 
query I rowsort label-1906
SELECT ALL MIN( - - 74 ) * 80
----
5920

skipif mysql # not compatible
query I rowsort label-1906
SELECT ALL MIN ( - - 74 ) * 80
----
5920

onlyif mysql # aggregate syntax: 
query II rowsort label-1907
SELECT ALL CASE + + 34 WHEN ( - 17 ) / - 68 + + MIN( + 0 ) THEN - 31 + - + COUNT( * ) * 9 WHEN - - 71 / 27 THEN NULL END AS col2, ( + 89 ) + + ( - COUNT( + + 74 ) )
----
NULL
88

skipif mysql # not compatible
query II rowsort label-1907
SELECT ALL CASE + + 34 WHEN ( - 17 ) / - 68 + + MIN ( + 0 ) THEN - 31 + - + COUNT ( * ) * 9 WHEN - - 71 / 27 THEN NULL END AS col2, ( + 89 ) + + ( - COUNT ( + + 74 ) )
----
NULL
88

query I rowsort
SELECT 89 * 14 + - - ( + - 62 ) AS col1
----
1184

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

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

query I rowsort
SELECT - ( + 1 ) - - - COALESCE ( + 29, + 22 + - 88 ) + - - NULLIF ( - 95, - + 85 * + 70 ) * - + 28 - - 78 AS col1
----
2708

onlyif mysql # aggregate syntax: 
query I rowsort label-1911
SELECT CASE - 54 WHEN + ( + 20 ) / - 49 THEN + ( + COUNT( * ) ) * - 27 + 98 + - - NULLIF ( - 68, - + 12 - + 84 + 2 ) - + ( 73 ) END * 10 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1911
SELECT CASE - 54 WHEN + ( + 20 ) / - 49 THEN + ( + COUNT ( * ) ) * - 27 + 98 + - - NULLIF ( - 68, - + 12 - + 84 + 2 ) - + ( 73 ) END * 10 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1912
SELECT + 45 * SUM( ALL - - 9 ) + + CASE - 61 WHEN 36 + 86 + + CAST( NULL AS SIGNED ) / - + 97 * + 8 THEN NULL WHEN + 61 - - - ( + 9 ) THEN - + 78 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1912
SELECT + 45 * SUM ( ALL - - 9 ) + + CASE - 61 WHEN 36 + 86 + + CAST ( NULL AS INTEGER ) / - + 97 * + 8 THEN NULL WHEN + 61 - - - ( + 9 ) THEN - + 78 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1913
SELECT 0 - 32 + + COUNT( * ) * - 1
----
-33

skipif mysql # not compatible
query I rowsort label-1913
SELECT 0 - 32 + + COUNT ( * ) * - 1
----
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-1914
SELECT ALL + 77 + - 7 DIV - 5 AS col0
----
78

skipif mysql # not compatible
query I rowsort label-1914
SELECT ALL + 77 + - 7 / - 5 AS col0
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1915
SELECT + 12 * + - CAST( NULL AS SIGNED ) + MIN( ( - 15 ) ) + 95
----
NULL

skipif mysql # not compatible
query I rowsort label-1915
SELECT + 12 * + - CAST ( NULL AS INTEGER ) + MIN ( ( - 15 ) ) + 95
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1916
SELECT ALL + COUNT( * ) + 87 + + + COALESCE ( - CAST( - 20 AS SIGNED ), 0, - 41 )
----
108

skipif mysql # not compatible
query I rowsort label-1916
SELECT ALL + COUNT ( * ) + 87 + + + COALESCE ( - CAST ( - 20 AS INTEGER ), 0, - 41 )
----
108

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1917
SELECT DISTINCT + 38 / 33 * MIN( DISTINCT - CASE - 63 WHEN + COALESCE ( - 2, 58 ) THEN - + CAST( 1 AS DECIMAL ) WHEN + 93 THEN NULL ELSE NULL END ) AS col0, + 48 AS col1
----
NULL
48

skipif mysql # not compatible
query II rowsort label-1917
SELECT DISTINCT + 38 / 33 * MIN ( DISTINCT - CASE - 63 WHEN + COALESCE ( - 2, 58 ) THEN - + CAST ( 1 AS REAL ) WHEN + 93 THEN NULL ELSE NULL END ) AS col0, + 48 AS col1
----
NULL
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1918
SELECT ALL 22 + - + ( - COUNT( * ) ) + COUNT( ALL 35 ) DIV MAX( - 71 )
----
23

skipif mysql # not compatible
query I rowsort label-1918
SELECT ALL 22 + - + ( - COUNT ( * ) ) + COUNT ( ALL 35 ) / MAX ( - 71 )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-1919
SELECT 11 * + COUNT( + 61 ) - + 95 * + 67 - - 44
----
-6310

skipif mysql # not compatible
query I rowsort label-1919
SELECT 11 * + COUNT ( + 61 ) - + 95 * + 67 - - 44
----
-6310

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1920
SELECT ALL 23 * + 37 + - CASE CAST( NULL AS SIGNED ) WHEN + - CAST( NULL AS SIGNED ) THEN 5 ELSE + - 26 END + 39 DIV + - 81 AS col2
----
877

skipif mysql # not compatible
query I rowsort label-1920
SELECT ALL 23 * + 37 + - CASE CAST ( NULL AS INTEGER ) WHEN + - CAST ( NULL AS INTEGER ) THEN 5 ELSE + - 26 END + 39 / + - 81 AS col2
----
877

onlyif mysql # aggregate syntax: 
query I rowsort label-1921
SELECT NULLIF ( 86, - 14 + - COALESCE ( 79, + 17 ) ) * + - ( + 58 ) + + MIN( 51 ) AS col1
----
-4937

skipif mysql # not compatible
query I rowsort label-1921
SELECT NULLIF ( 86, - 14 + - COALESCE ( 79, + 17 ) ) * + - ( + 58 ) + + MIN ( 51 ) AS col1
----
-4937

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1922
SELECT ALL MAX( - COALESCE ( + + 99, 38 * - 46 ) ) * - 13 + + COUNT( * ) + + 87 * - 85 DIV - 17 + - 45 + - + 68 DIV + + COUNT( * ) + - 19 DIV + 99 - 72 * - 73 * - + SUM( DISTINCT 56 ) * + - 20 AS col2
----
5888330

skipif mysql # not compatible
query I rowsort label-1922
SELECT ALL MAX ( - COALESCE ( + + 99, 38 * - 46 ) ) * - 13 + + COUNT ( * ) + + 87 * - 85 / - 17 + - 45 + - + 68 / + + COUNT ( * ) + - 19 / + 99 - 72 * - 73 * - + SUM ( DISTINCT 56 ) * + - 20 AS col2
----
5888330

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1925
SELECT CAST ( NULL AS INTEGER ) * + - 44
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1926
SELECT DISTINCT 80 DIV - - 59
----
1

skipif mysql # not compatible
query I rowsort label-1926
SELECT DISTINCT 80 / - - 59
----
1

query II rowsort
SELECT 87 + 96 * + + 9 col1, - 19 AS col2
----
951
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-1928
SELECT - 4 * - 8 * + - 52 - 27 - + + COUNT( + - 85 ) * - + 34
----
-1657

skipif mysql # not compatible
query I rowsort label-1928
SELECT - 4 * - 8 * + - 52 - 27 - + + COUNT ( + - 85 ) * - + 34
----
-1657

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

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

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

query I rowsort
SELECT ALL 10 * - - ( 98 ) * - 60 - + - 9 + - + 7 * - 71 * - 43 AS col1
----
-80162

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1932
SELECT ALL - 56 * 53 DIV 2 * + 23 - + COALESCE ( + COUNT( * ), 59, 96 ) + - + 35 * - 56 * - 96 - COUNT( * ) * - - COALESCE ( + 57, + 71 )
----
-222350

skipif mysql # not compatible
query I rowsort label-1932
SELECT ALL - 56 * 53 / 2 * + 23 - + COALESCE ( + COUNT ( * ), 59, 96 ) + - + 35 * - 56 * - 96 - COUNT ( * ) * - - COALESCE ( + 57, + 71 )
----
-222350

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1933
SELECT DISTINCT + 64, + 14 * + CAST( + 71 AS SIGNED ) AS col1
----
64
994

skipif mysql # not compatible
query II rowsort label-1933
SELECT DISTINCT + 64, + 14 * + CAST ( + 71 AS INTEGER ) AS col1
----
64
994

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1934
SELECT + + 43 * - - 81 + - COUNT( * ) * CAST( 69 AS SIGNED ) AS col1
----
3414

skipif mysql # not compatible
query I rowsort label-1934
SELECT + + 43 * - - 81 + - COUNT ( * ) * CAST ( 69 AS INTEGER ) AS col1
----
3414

query I rowsort
SELECT + - 37 * - COALESCE ( + 97, + 73 ) AS col0
----
3589

query I rowsort
SELECT + - 79 + - 23 AS col1
----
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-1937
SELECT + 66 * + MIN( + - 45 ) AS col2
----
-2970

skipif mysql # not compatible
query I rowsort label-1937
SELECT + 66 * + MIN ( + - 45 ) AS col2
----
-2970

query I rowsort
SELECT DISTINCT + NULLIF ( - - 38, - - ( 92 ) )
----
38

query I rowsort
SELECT DISTINCT 68 + - 24 + - 99 AS col0
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-1940
SELECT DISTINCT + 5 DIV + + 17 col1
----
0

skipif mysql # not compatible
query I rowsort label-1940
SELECT DISTINCT + 5 / + + 17 col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1941
SELECT DISTINCT - ( 73 ) + - 53 + + - CASE - 43 WHEN - + ( + ( 64 ) ) * + 59 * COUNT( * ) THEN - 66 + - ( + 15 ) - ( + + 5 ) END * - ( MAX( - 40 ) ) + MAX( ALL - - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1941
SELECT DISTINCT - ( 73 ) + - 53 + + - CASE - 43 WHEN - + ( + ( 64 ) ) * + 59 * COUNT ( * ) THEN - 66 + - ( + 15 ) - ( + + 5 ) END * - ( MAX ( - 40 ) ) + MAX ( ALL - - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1942
SELECT ALL - CAST( COUNT( * ) AS SIGNED ) DIV - 71 * 34
----
0

skipif mysql # not compatible
query I rowsort label-1942
SELECT ALL - CAST ( COUNT ( * ) AS INTEGER ) / - 71 * 34
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1943
SELECT - + 61 DIV + ( - + 95 ) * + COUNT( * ) + - - 98
----
98

skipif mysql # not compatible
query I rowsort label-1943
SELECT - + 61 / + ( - + 95 ) * + COUNT ( * ) + - - 98
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-1944
SELECT ALL + 81 + + MAX( ALL 70 ) + - + 55 + + - 22 + 94 + 38 * 83 * + + 27 + 64
----
85390

skipif mysql # not compatible
query I rowsort label-1944
SELECT ALL + 81 + + MAX ( ALL 70 ) + - + 55 + + - 22 + 94 + 38 * 83 * + + 27 + 64
----
85390

query I rowsort
SELECT + 82 + - + COALESCE ( + 42, 98 * - + 24 + + + 60 )
----
40

query I rowsort
SELECT - 52 - 26
----
-78

query I rowsort
SELECT ALL - 89 + + 51 AS col2
----
-38

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1949
SELECT - ( ( + CAST( NULL AS SIGNED ) ) ) + - + ( + MIN( DISTINCT - 10 ) ) + COUNT( * ) + - 8 + - 27 AS col1, MAX( - 90 ) * + 74 + + - 15 AS col1
----
NULL
-6675

skipif mysql # not compatible
query II rowsort label-1949
SELECT - ( ( + CAST ( NULL AS INTEGER ) ) ) + - + ( + MIN ( DISTINCT - 10 ) ) + COUNT ( * ) + - 8 + - 27 AS col1, MAX ( - 90 ) * + 74 + + - 15 AS col1
----
NULL
-6675

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1951
SELECT ALL + 16 + - - CAST( NULL AS SIGNED ) / MAX( DISTINCT 17 ) * 1 * SUM( + + 71 ) - - NULLIF ( - - ( + ( COUNT( - - 92 ) ) ), + + 91 * + 24 ) - - MAX( + ( - 53 ) ) - + ( 85 ) + - - CAST( NULL AS SIGNED ) * - 12 * + - 44
----
NULL

skipif mysql # not compatible
query I rowsort label-1951
SELECT ALL + 16 + - - CAST ( NULL AS INTEGER ) / MAX ( DISTINCT 17 ) * 1 * SUM ( + + 71 ) - - NULLIF ( - - ( + ( COUNT ( - - 92 ) ) ), + + 91 * + 24 ) - - MAX ( + ( - 53 ) ) - + ( 85 ) + - - CAST ( NULL AS INTEGER ) * - 12 * + - 44
----
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-1953
SELECT - CAST ( NULL AS REAL ) * + + CAST ( NULL AS INTEGER )
----
NULL

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1956
SELECT DISTINCT - CASE + ( - + 84 ) WHEN ( 99 ) THEN NULL WHEN 22 + 29 + - - 28 THEN - - 60 ELSE + CAST( NULL AS SIGNED ) / - 82 END * - - 83 + - 31
----
NULL

skipif mysql # not compatible
query I rowsort label-1956
SELECT DISTINCT - CASE + ( - + 84 ) WHEN ( 99 ) THEN NULL WHEN 22 + 29 + - - 28 THEN - - 60 ELSE + CAST ( NULL AS INTEGER ) / - 82 END * - - 83 + - 31
----
NULL

query I rowsort
SELECT ALL - 61 * 53 - + 22
----
-3255

onlyif mysql # aggregate syntax: 
query II rowsort label-1958
SELECT ( + 45 ), 86 * - + SUM( DISTINCT 66 ) AS col0
----
45
-5676

skipif mysql # not compatible
query II rowsort label-1958
SELECT ( + 45 ), 86 * - + SUM ( DISTINCT 66 ) AS col0
----
45
-5676

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1960
SELECT DISTINCT - 72 * MIN( - 30 ) col1
----
2160

skipif mysql # not compatible
query I rowsort label-1960
SELECT DISTINCT - 72 * MIN ( - 30 ) col1
----
2160

query I rowsort
SELECT - 61 * + 45 AS col0
----
-2745

onlyif mysql # DIV for integer division: 
query II rowsort label-1962
SELECT - 79 DIV + 48 AS col0, - 63
----
-1
-63

skipif mysql # not compatible
query II rowsort label-1962
SELECT - 79 / + 48 AS col0, - 63
----
-1
-63

query I rowsort
SELECT + 84 * - - 89 * 11
----
82236

query I rowsort
SELECT + CASE + 36 WHEN + + 71 THEN 56 ELSE NULL END
----
NULL

query I rowsort
SELECT + - 33 * + + 22 AS col0
----
-726

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

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

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

skipif mysql # not compatible
query I rowsort label-1967
SELECT DISTINCT + CAST ( 70 AS INTEGER ) AS col1
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1968
SELECT + - COALESCE ( + COUNT( * ), - + 6 * + CAST( - 56 AS SIGNED ) + - CAST( 83 AS SIGNED ) ) * - + 38 + - - 48 AS col0
----
86

skipif mysql # not compatible
query I rowsort label-1968
SELECT + - COALESCE ( + COUNT ( * ), - + 6 * + CAST ( - 56 AS INTEGER ) + - CAST ( 83 AS INTEGER ) ) * - + 38 + - - 48 AS col0
----
86

query I rowsort
SELECT ALL + ( + + 24 ) * + - 36 + 21 AS col0
----
-843

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1970
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 93 / - 53 + - - 24 * - 68 AS col1, 7
----
NULL
7

skipif mysql # not compatible
query II rowsort label-1970
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 93 / - 53 + - - 24 * - 68 AS col1, 7
----
NULL
7

onlyif mysql # DIV for integer division: 
query I rowsort label-1971
SELECT ALL 60 * 60 + COALESCE ( + 81, - 31 ) * 65 DIV - + 23 col0
----
3372

skipif mysql # not compatible
query I rowsort label-1971
SELECT ALL 60 * 60 + COALESCE ( + 81, - 31 ) * 65 / - + 23 col0
----
3372

query I rowsort
SELECT DISTINCT - - 34 * 89 + 38 AS col0
----
3064

query I rowsort
SELECT ALL - 76 * + 11 AS col0
----
-836

query I rowsort
SELECT - + 70 * - 40 col0
----
2800

query I rowsort
SELECT ALL + 77 * - + 62 + 6
----
-4768

query I rowsort
SELECT DISTINCT - 82 * + 4
----
-328

query II rowsort
SELECT DISTINCT + 18 + 38 AS col0, ( - 45 ) col0
----
56
-45

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

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

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

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

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

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

query I rowsort
SELECT - ( - 95 ) AS col2
----
95

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1984
SELECT ALL MIN ( ALL 0 )
----
0

query III rowsort
SELECT + ( - + 18 ) - + - ( - 79 ) + + 10 AS col2, - 64 AS col1, - - 92 AS col1
----
-87
-64
92

query I rowsort
SELECT - 33 * - 39
----
1287

query I rowsort
SELECT ALL - 58 * ( + 16 )
----
-928

onlyif mysql # aggregate syntax: 
query I rowsort label-1988
SELECT DISTINCT + NULLIF ( 81, + COUNT( * ) - + + 3 ) * + 70 * - 47 * + + 3 * - 25
----
19986750

skipif mysql # not compatible
query I rowsort label-1988
SELECT DISTINCT + NULLIF ( 81, + COUNT ( * ) - + + 3 ) * + 70 * - 47 * + + 3 * - 25
----
19986750

query I rowsort
SELECT DISTINCT 68 * + + 85
----
5780

query I rowsort
SELECT ALL + 85 - - 85
----
170

query I rowsort
SELECT DISTINCT 62 * 3 AS col2
----
186

onlyif mysql # aggregate syntax: 
query I rowsort label-1992
SELECT 15 * - COUNT( - - 71 ) AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-1992
SELECT 15 * - COUNT ( - - 71 ) AS col2
----
-15

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1993
SELECT 22 DIV 61 * + 76 - CAST( 89 AS SIGNED ) - - 4 * - 42 DIV - 20 AS col0
----
-81

skipif mysql # not compatible
query I rowsort label-1993
SELECT 22 / 61 * + 76 - CAST ( 89 AS INTEGER ) - - 4 * - 42 / - 20 AS col0
----
-81

query I rowsort
SELECT 5 * 60 AS col1
----
300

query I rowsort
SELECT 41 * - 51 col1
----
-2091

query I rowsort
SELECT 23 * 30 + - 95 col1
----
595

query II rowsort
SELECT + 70 AS col0, 87 + - - 84 * - 78
----
70
-6465

query I rowsort
SELECT 21 + 34
----
55

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

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

query I rowsort
SELECT DISTINCT - 29 + - + 40 AS col2
----
-69

query I rowsort
SELECT ALL + 96 + 77 AS col1
----
173

query I rowsort
SELECT DISTINCT - 38 * + 28
----
-1064

onlyif mysql # aggregate syntax: 
query I rowsort label-2003
SELECT ALL COALESCE ( 77, COUNT( * ) * ( - + COUNT( * ) ) * + 86, - CASE + 94 WHEN - SUM( - ( + 78 ) ) * - COALESCE ( - 73, - ( - 17 ) ) * + 20 - - + 39 THEN COUNT( 36 ) WHEN - 8 THEN NULL ELSE - - 82 END - + + 95 * - 59 ) + - NULLIF ( + - 70, + + MIN( DISTINCT + 48 ) ) + 69
----
216

skipif mysql # not compatible
query I rowsort label-2003
SELECT ALL COALESCE ( 77, COUNT ( * ) * ( - + COUNT ( * ) ) * + 86, - CASE + 94 WHEN - SUM ( - ( + 78 ) ) * - COALESCE ( - 73, - ( - 17 ) ) * + 20 - - + 39 THEN COUNT ( 36 ) WHEN - 8 THEN NULL ELSE - - 82 END - + + 95 * - 59 ) + - NULLIF ( + - 70, + + MIN ( DISTINCT + 48 ) ) + 69
----
216

query I rowsort
SELECT ALL - + 41 * 2
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2005
SELECT DISTINCT + 47 + - - COUNT( * ) + ( - 16 ) * - + COUNT( * ) / - 58 * + + 89 * CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2005
SELECT DISTINCT + 47 + - - COUNT ( * ) + ( - 16 ) * - + COUNT ( * ) / - 58 * + + 89 * CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2006
SELECT ALL + + 28 + COUNT( * )
----
29

skipif mysql # not compatible
query I rowsort label-2006
SELECT ALL + + 28 + COUNT ( * )
----
29

query I rowsort
SELECT ALL - + 25 col2
----
-25

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

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

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

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

query I rowsort
SELECT ALL NULLIF ( - 74, + 4 * - 60 ) col2
----
-74

query I rowsort
SELECT ALL - - 86 + - 49 * + + ( 55 )
----
-2609

query I rowsort
SELECT ALL 31 * + 29 AS col2
----
899

query I rowsort
SELECT - 0 + 90 * - 40 col1
----
-3600

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2014
SELECT DISTINCT - CASE + 27 WHEN + 20 / + 21 + + 98 * MIN( DISTINCT + 30 ) / + 46 - + 76 * COUNT( ALL 35 ) THEN NULL WHEN + 37 * + COUNT( * ) + 33 - + + SUM( ALL + 46 ) * + - 7 + 91 THEN 65 - + + 14 * + CAST( + 71 AS SIGNED ) * + 48 * - + ( ( - - 60 ) ) - - COALESCE ( 86, - COUNT( ( + CAST( + 90 AS SIGNED ) ) ), + - COUNT( * ) ) * - 89 - ( - + ( - 20 ) ) * 83 * - COUNT( * ) + + 73 ELSE NULL END - 71 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2014
SELECT DISTINCT - CASE + 27 WHEN + 20 / + 21 + + 98 * MIN ( DISTINCT + 30 ) / + 46 - + 76 * COUNT ( ALL 35 ) THEN NULL WHEN + 37 * + COUNT ( * ) + 33 - + + SUM ( ALL + 46 ) * + - 7 + 91 THEN 65 - + + 14 * + CAST ( + 71 AS INTEGER ) * + 48 * - + ( ( - - 60 ) ) - - COALESCE ( 86, - COUNT ( ( + CAST ( + 90 AS INTEGER ) ) ), + - COUNT ( * ) ) * - 89 - ( - + ( - 20 ) ) * 83 * - COUNT ( * ) + + 73 ELSE NULL END - 71 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2016
SELECT 0 * + 19 DIV + 87 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2016
SELECT 0 * + 19 / + 87 AS col2
----
0

query I rowsort
SELECT 71 * + 79 * + 12 AS col1
----
67308

onlyif mysql # aggregate syntax: 
query II rowsort label-2018
SELECT 84 AS col1, 95 + CASE - 49 WHEN + 27 * + + 76 THEN + COUNT( * ) ELSE 49 END * + 53 * + 21
----
84
54632

skipif mysql # not compatible
query II rowsort label-2018
SELECT 84 AS col1, 95 + CASE - 49 WHEN + 27 * + + 76 THEN + COUNT ( * ) ELSE 49 END * + 53 * + 21
----
84
54632

onlyif mysql # aggregate syntax: 
query I rowsort label-2019
SELECT CASE + + 41 WHEN - 86 THEN NULL WHEN - 27 THEN - MIN( 0 ) ELSE NULL END + + 48
----
NULL

skipif mysql # not compatible
query I rowsort label-2019
SELECT CASE + + 41 WHEN - 86 THEN NULL WHEN - 27 THEN - MIN ( 0 ) ELSE NULL END + + 48
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2020
SELECT 90 DIV + 35 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-2020
SELECT 90 / + 35 AS col1
----
2

query II rowsort
SELECT ALL 91 col2, - 78
----
91
-78

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2023
SELECT COUNT( * ) + + 59 DIV + 93 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2023
SELECT COUNT ( * ) + + 59 / + 93 AS col0
----
1

query II rowsort
SELECT ALL 51 col1, 35 AS col2
----
51
35

query II rowsort
SELECT 57, - 72 * 59 AS col1
----
57
-4248

onlyif mysql # aggregate syntax: 
query II rowsort label-2026
SELECT - 6, 55 + + COUNT( * ) AS col0
----
-6
56

skipif mysql # not compatible
query II rowsort label-2026
SELECT - 6, 55 + + COUNT ( * ) AS col0
----
-6
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2027
SELECT COUNT( * ) DIV 6 * - 87
----
0

skipif mysql # not compatible
query I rowsort label-2027
SELECT COUNT ( * ) / 6 * - 87
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2028
SELECT 41 + SUM( ALL + 55 ) AS col2
----
96

skipif mysql # not compatible
query I rowsort label-2028
SELECT 41 + SUM ( ALL + 55 ) AS col2
----
96

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2030
SELECT 50 * + 75 AS col2, ( + - COUNT( * ) ) * 6 AS col0
----
3750
-6

skipif mysql # not compatible
query II rowsort label-2030
SELECT 50 * + 75 AS col2, ( + - COUNT ( * ) ) * 6 AS col0
----
3750
-6

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

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

query I rowsort
SELECT ALL + 0 + + 81 * + 75 * 97 * + 54
----
31820850

onlyif mysql # DIV for integer division: 
query I rowsort label-2033
SELECT ( - 79 ) DIV - + 88
----
0

skipif mysql # not compatible
query I rowsort label-2033
SELECT ( - 79 ) / - + 88
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2034
SELECT ALL NULLIF ( - 46, - 34 * - - COUNT( DISTINCT - + 90 ) ) + + - 64 * + - 33 * CAST( NULL AS SIGNED ) * 72 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2034
SELECT ALL NULLIF ( - 46, - 34 * - - COUNT ( DISTINCT - + 90 ) ) + + - 64 * + - 33 * CAST ( NULL AS INTEGER ) * 72 AS col2
----
NULL

query II rowsort
SELECT DISTINCT - 5 AS col1, NULLIF ( - 50, - 75 ) + - - ( 14 ) AS col1
----
-5
-36

query I rowsort
SELECT ALL + 25 + - 16
----
9

query I rowsort
SELECT DISTINCT + 67 + + 51 AS col0
----
118

onlyif mysql # aggregate syntax: 
query II rowsort label-2038
SELECT ALL + ( ( + + NULLIF ( 41, COUNT( * ) ) ) ) + - 34 * + 37 AS col0, COUNT( * )
----
-1217
1

skipif mysql # not compatible
query II rowsort label-2038
SELECT ALL + ( ( + + NULLIF ( 41, COUNT ( * ) ) ) ) + - 34 * + 37 AS col0, COUNT ( * )
----
-1217
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2039
SELECT 13 * - 27 AS col2, - COUNT( * ) * + - 10 + + + CAST( - 84 AS SIGNED ) AS col0
----
-351
-74

skipif mysql # not compatible
query II rowsort label-2039
SELECT 13 * - 27 AS col2, - COUNT ( * ) * + - 10 + + + CAST ( - 84 AS INTEGER ) AS col0
----
-351
-74

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

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

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

query I rowsort
SELECT ALL - 93 * - 83 - 47 AS col0
----
7672

onlyif mysql # aggregate syntax: 
query II rowsort label-2043
SELECT DISTINCT - 10, - COUNT( * ) + - + 48 - - 68 * + MAX( DISTINCT 17 ) * + 83 + - + 10 AS col2
----
-10
95889

skipif mysql # not compatible
query II rowsort label-2043
SELECT DISTINCT - 10, - COUNT ( * ) + - + 48 - - 68 * + MAX ( DISTINCT 17 ) * + 83 + - + 10 AS col2
----
-10
95889

onlyif mysql # DIV for integer division: 
query I rowsort label-2044
SELECT ALL + 24 - - - 78 - - - 92 + 73 DIV - 32 col0
----
-148

skipif mysql # not compatible
query I rowsort label-2044
SELECT ALL + 24 - - - 78 - - - 92 + 73 / - 32 col0
----
-148

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2045
SELECT DISTINCT + CAST( - 10 AS SIGNED ) * COALESCE ( + - 85, - 2 * - 57 ) * - CAST( NULL AS SIGNED ) * + 2 * 10, 20 AS col1
----
NULL
20

skipif mysql # not compatible
query II rowsort label-2045
SELECT DISTINCT + CAST ( - 10 AS INTEGER ) * COALESCE ( + - 85, - 2 * - 57 ) * - CAST ( NULL AS INTEGER ) * + 2 * 10, 20 AS col1
----
NULL
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2046
SELECT ALL + 49 - - MAX( ALL + COALESCE ( + 73, + + 89 * - 28 + - - 4 ) ) + 85 * 75 - + + ( 27 ) + - + 67 + - - ( - ( + COALESCE ( NULLIF ( 37, 69 + - CAST( NULL AS SIGNED ) * - 37 + COUNT( * ) * + 43 ), - 20 ) ) ) + SUM( + ( 71 ) ) - + 71 - + - COALESCE ( 85, 88 * - ( + 11 ) + - COUNT( * ) ) * 26 + + - 43 DIV + 69 AS col2
----
8576

skipif mysql # not compatible
query I rowsort label-2046
SELECT ALL + 49 - - MAX ( ALL + COALESCE ( + 73, + + 89 * - 28 + - - 4 ) ) + 85 * 75 - + + ( 27 ) + - + 67 + - - ( - ( + COALESCE ( NULLIF ( 37, 69 + - CAST ( NULL AS INTEGER ) * - 37 + COUNT ( * ) * + 43 ), - 20 ) ) ) + SUM ( + ( 71 ) ) - + 71 - + - COALESCE ( 85, 88 * - ( + 11 ) + - COUNT ( * ) ) * 26 + + - 43 / + 69 AS col2
----
8576

query I rowsort
SELECT ALL + - 21 * + 3 + 38 * + 16 * 33 + - - 15 AS col1
----
20016

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2048
SELECT - 89 - CAST( COALESCE ( - MAX( 48 ), - + 95 ) AS SIGNED ) + - + 77 * + 29 AS col1
----
-2274

skipif mysql # not compatible
query I rowsort label-2048
SELECT - 89 - CAST ( COALESCE ( - MAX ( 48 ), - + 95 ) AS INTEGER ) + - + 77 * + 29 AS col1
----
-2274

query II rowsort
SELECT ALL - 48 AS col1, - 29 AS col0
----
-48
-29

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2050
SELECT DISTINCT + SUM( + 52 ) * - + 55 + 74 AS col1, - 87 DIV + - 99 col2
----
-2786
0

skipif mysql # not compatible
query II rowsort label-2050
SELECT DISTINCT + SUM ( + 52 ) * - + 55 + 74 AS col1, - 87 / + - 99 col2
----
-2786
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2051
SELECT DISTINCT - SUM( 2 ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-2051
SELECT DISTINCT - SUM ( 2 ) AS col1
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2052
SELECT COUNT( * ) * + 32 * + COUNT( * ) / - 56 * CASE + ( - CAST( 87 AS SIGNED ) ) WHEN + - 7 THEN + 30 WHEN - 75 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2052
SELECT COUNT ( * ) * + 32 * + COUNT ( * ) / - 56 * CASE + ( - CAST ( 87 AS INTEGER ) ) WHEN + - 7 THEN + 30 WHEN - 75 THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2053
SELECT 81 * - MAX( ALL + 35 ) col2
----
-2835

skipif mysql # not compatible
query I rowsort label-2053
SELECT 81 * - MAX ( ALL + 35 ) col2
----
-2835

query I rowsort
SELECT 90 + + + 59
----
149

onlyif mysql # DIV for integer division: 
query I rowsort label-2055
SELECT ALL + 30 DIV + - 60
----
0

skipif mysql # not compatible
query I rowsort label-2055
SELECT ALL + 30 / + - 60
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2056
SELECT - 98 * NULLIF ( - 99, + COUNT( * ) * - ( ( - - 95 ) ) + - 47 )
----
9702

skipif mysql # not compatible
query I rowsort label-2056
SELECT - 98 * NULLIF ( - 99, + COUNT ( * ) * - ( ( - - 95 ) ) + - 47 )
----
9702

query I rowsort
SELECT ALL COALESCE ( + 79, - 66 )
----
79

query I rowsort
SELECT + 68 * + 48 AS col0
----
3264

onlyif mysql # aggregate syntax: 
query II rowsort label-2059
SELECT - 80 - + COUNT( * ), - 44 + + 51 + - - 76 * - - 28 - + + 13 AS col2
----
-81
2122

skipif mysql # not compatible
query II rowsort label-2059
SELECT - 80 - + COUNT ( * ), - 44 + + 51 + - - 76 * - - 28 - + + 13 AS col2
----
-81
2122

onlyif mysql # aggregate syntax: 
query I rowsort label-2060
SELECT - 56 - + - COUNT( * ) + - + 11 * + + COUNT( * ) * - 99 * + + 41 AS col1
----
44594

skipif mysql # not compatible
query I rowsort label-2060
SELECT - 56 - + - COUNT ( * ) + - + 11 * + + COUNT ( * ) * - 99 * + + 41 AS col1
----
44594

onlyif mysql # aggregate syntax: 
query I rowsort label-2061
SELECT DISTINCT - NULLIF ( - 55, - COUNT( * ) ) + 93 + - - SUM( ALL + ( COALESCE ( + 36, + 36 ) ) ) AS col2
----
184

skipif mysql # not compatible
query I rowsort label-2061
SELECT DISTINCT - NULLIF ( - 55, - COUNT ( * ) ) + 93 + - - SUM ( ALL + ( COALESCE ( + 36, + 36 ) ) ) AS col2
----
184

query I rowsort
SELECT DISTINCT ( 73 ) + - - 79 AS col0
----
152

onlyif mysql # aggregate syntax: 
query I rowsort label-2063
SELECT - MIN( DISTINCT + 89 ) AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-2063
SELECT - MIN ( DISTINCT + 89 ) AS col2
----
-89

onlyif mysql # aggregate syntax: 
query II rowsort label-2064
SELECT ( + 63 ) col2, + MIN( + 26 ) + + 52
----
63
78

skipif mysql # not compatible
query II rowsort label-2064
SELECT ( + 63 ) col2, + MIN ( + 26 ) + + 52
----
63
78

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2066
SELECT + - 94 DIV + 37 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-2066
SELECT + - 94 / + 37 AS col2
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2067
SELECT + + 83 * + + COALESCE ( CASE - - MAX( ALL + 23 ) WHEN - 6 / - - CASE - - COALESCE ( + - ( + + 72 ), COUNT( * ) * - 37 - 87 ) WHEN + 84 * - - ( + 93 ) THEN 45 WHEN + 71 THEN + COUNT( * ) END + - - COUNT( * ) + + 96 * + - NULLIF ( - 80, - COALESCE ( + 62, + 85 + - - ( ( + 83 ) ) * + CASE 82 WHEN + COUNT( * ) - 20 + - - 9 * 98 THEN NULL WHEN + 70 THEN - 58 + - 54 + CASE WHEN 15 IS NULL THEN - CAST( NULL AS SIGNED ) ELSE NULL END + COUNT( * ) END, - 66 ) ) THEN NULL WHEN 74 THEN 34 WHEN + 42 + - 14 THEN NULL END, ( 8 ) * + 92 ) * + 88
----
5375744

skipif mysql # not compatible
query I rowsort label-2067
SELECT + + 83 * + + COALESCE ( CASE - - MAX ( ALL + 23 ) WHEN - 6 / - - CASE - - COALESCE ( + - ( + + 72 ), COUNT ( * ) * - 37 - 87 ) WHEN + 84 * - - ( + 93 ) THEN 45 WHEN + 71 THEN + COUNT ( * ) END + - - COUNT ( * ) + + 96 * + - NULLIF ( - 80, - COALESCE ( + 62, + 85 + - - ( ( + 83 ) ) * + CASE 82 WHEN + COUNT ( * ) - 20 + - - 9 * 98 THEN NULL WHEN + 70 THEN - 58 + - 54 + CASE WHEN 15 IS NULL THEN - CAST ( NULL AS INTEGER ) ELSE NULL END + COUNT ( * ) END, - 66 ) ) THEN NULL WHEN 74 THEN 34 WHEN + 42 + - 14 THEN NULL END, ( 8 ) * + 92 ) * + 88
----
5375744

query I rowsort
SELECT DISTINCT + + 84 * ( 62 ) + - + 82 AS col0
----
5126

query I rowsort
SELECT + 33 * COALESCE ( - 69, + 76 ) + 55
----
-2222

onlyif mysql # aggregate syntax: 
query I rowsort label-2070
SELECT DISTINCT 3 * - COALESCE ( + - COUNT( * ), 28 )
----
3

skipif mysql # not compatible
query I rowsort label-2070
SELECT DISTINCT 3 * - COALESCE ( + - COUNT ( * ), 28 )
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-2071
SELECT DISTINCT + 95 * 63 AS col2, + 69 DIV + - 89 - 72 AS col1
----
5985
-72

skipif mysql # not compatible
query II rowsort label-2071
SELECT DISTINCT + 95 * 63 AS col2, + 69 / + - 89 - 72 AS col1
----
5985
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-2072
SELECT + + 28 * 97 * - COUNT( * ) + 50 col0
----
-2666

skipif mysql # not compatible
query I rowsort label-2072
SELECT + + 28 * 97 * - COUNT ( * ) + 50 col0
----
-2666

query I rowsort
SELECT + + 27 col1
----
27

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2074
SELECT ALL COUNT( * ) * - 0, CASE - - CAST( NULL AS DECIMAL ) WHEN - + 21 / - - ( + + NULLIF ( + 4, COUNT( * ) * - - 14 ) ) + 65 + - - 31 THEN COUNT( * ) + + 24 + + CASE - 81 WHEN - 66 THEN - + 71 + 59 WHEN 98 THEN NULL END END AS col0
----
0
NULL

skipif mysql # not compatible
query II rowsort label-2074
SELECT ALL COUNT ( * ) * - 0, CASE - - CAST ( NULL AS REAL ) WHEN - + 21 / - - ( + + NULLIF ( + 4, COUNT ( * ) * - - 14 ) ) + 65 + - - 31 THEN COUNT ( * ) + + 24 + + CASE - 81 WHEN - 66 THEN - + 71 + 59 WHEN 98 THEN NULL END END AS col0
----
0
NULL

query I rowsort
SELECT + + 49 * + 94 + - 84 AS col2
----
4522

query I rowsort
SELECT + + 81 * - ( + 89 )
----
-7209

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

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

query II rowsort
SELECT - - 18 + - 0 AS col2, - 49 * + 29 + 63
----
18
-1358

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

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

query I rowsort
SELECT + - 49 * + 92 + + + 16
----
-4492

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2081
SELECT DISTINCT COALESCE ( CASE - MAX( - - 77 ) WHEN - MIN( - 28 ) + - 79 THEN + + 39 END, 91 / + - CASE 2 WHEN 16 THEN 9 ELSE NULL END * + 43 + COUNT( * ) + CAST( NULL AS DECIMAL ) * - 74 * + + 75 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2081
SELECT DISTINCT COALESCE ( CASE - MAX ( - - 77 ) WHEN - MIN ( - 28 ) + - 79 THEN + + 39 END, 91 / + - CASE 2 WHEN 16 THEN 9 ELSE NULL END * + 43 + COUNT ( * ) + CAST ( NULL AS REAL ) * - 74 * + + 75 )
----
NULL

query I rowsort
SELECT - 98 * - 16 * + 87 * CASE NULLIF ( 80, - 34 ) WHEN - - 26 THEN - 86 + 77 WHEN - 68 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2083
SELECT DISTINCT + 54 * + - 90 * - NULLIF ( - COUNT( * ), 14 )
----
-4860

skipif mysql # not compatible
query I rowsort label-2083
SELECT DISTINCT + 54 * + - 90 * - NULLIF ( - COUNT ( * ), 14 )
----
-4860

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

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

query I rowsort
SELECT - 92 + + + 95 - - 91
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2086
SELECT - SUM( ALL + 88 ) + - CAST( NULL AS SIGNED ) / + 14 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2086
SELECT - SUM ( ALL + 88 ) + - CAST ( NULL AS INTEGER ) / + 14 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2087
SELECT ALL + NULLIF ( - 82, 10 ) + - - COUNT( * )
----
-81

skipif mysql # not compatible
query I rowsort label-2087
SELECT ALL + NULLIF ( - 82, 10 ) + - - COUNT ( * )
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-2088
SELECT ALL COALESCE ( - + 23, - MAX( DISTINCT ( 73 ) ) * 2 + - - 50 + + ( + - 43 ), - 55 ) AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-2088
SELECT ALL COALESCE ( - + 23, - MAX ( DISTINCT ( 73 ) ) * 2 + - - 50 + + ( + - 43 ), - 55 ) AS col2
----
-23

query I rowsort
SELECT - 44 * 19
----
-836

query I rowsort
SELECT - 56 + ( NULLIF ( 66, 48 * - 48 + + - 40 ) ) AS col0
----
10

query I rowsort
SELECT DISTINCT ( 72 ) AS col1
----
72

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

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

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

query I rowsort
SELECT ALL - 27 + - 93 AS col0
----
-120

query I rowsort
SELECT - 8 + 83 AS col1
----
75

query I rowsort
SELECT ALL + 64 + + 67
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-2097
SELECT ALL + 27 + - COUNT( * ) col2
----
26

skipif mysql # not compatible
query I rowsort label-2097
SELECT ALL + 27 + - COUNT ( * ) col2
----
26

query I rowsort
SELECT ALL 96 + 3 * - 16 AS col2
----
48

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2100
SELECT ALL ( CASE + 8 WHEN - 44 THEN 60 ELSE COUNT( * ) * + COALESCE ( + 3, 16 ) END ) col1
----
3

skipif mysql # not compatible
query I rowsort label-2100
SELECT ALL ( CASE + 8 WHEN - 44 THEN 60 ELSE COUNT ( * ) * + COALESCE ( + 3, 16 ) END ) col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2101
SELECT - SUM( DISTINCT + - 72 ) + - 99 + - + 9 + + - 92 + 20 + 74 + - - 37 * - - 61 * 21 * + 76
----
3602138

skipif mysql # not compatible
query I rowsort label-2101
SELECT - SUM ( DISTINCT + - 72 ) + - 99 + - + 9 + + - 92 + 20 + 74 + - - 37 * - - 61 * 21 * + 76
----
3602138

query I rowsort
SELECT DISTINCT + - 96 * - + 33 + + 43 AS col1
----
3211

query I rowsort
SELECT ALL - 18 + + + 67
----
49

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

query I rowsort
SELECT + + 48 + + 18
----
66

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

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

query II rowsort
SELECT ALL + 29, 68 AS col2
----
29
68

query II rowsort
SELECT + 28 AS col1, 81 + - 27
----
28
54

query II rowsort
SELECT + - 19, 36 * 80 AS col1
----
-19
2880

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2110
SELECT ALL + + CAST( CASE + + 51 WHEN + 77 * CAST( - + 34 AS DECIMAL ) + NULLIF ( + CASE - + 54 WHEN + + 60 * - 27 * NULLIF ( + 79, + - 66 ) + - 11 * + + CASE - 71 WHEN - 23 + COUNT( * ) THEN - 7 END THEN COUNT( * ) ELSE - + COUNT( * ) * + + 20 * 43 + 68 + + 49 * + COUNT( * ) * - 55 / 22 END, - - CAST( NULL AS SIGNED ) - + 51 ) THEN - 71 WHEN + 49 THEN NULL END AS DECIMAL ) * - - MIN( - - 52 ) - 26 + - 10 + + + ( - 9 ) / - - 10 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2110
SELECT ALL + + CAST ( CASE + + 51 WHEN + 77 * CAST ( - + 34 AS REAL ) + NULLIF ( + CASE - + 54 WHEN + + 60 * - 27 * NULLIF ( + 79, + - 66 ) + - 11 * + + CASE - 71 WHEN - 23 + COUNT ( * ) THEN - 7 END THEN COUNT ( * ) ELSE - + COUNT ( * ) * + + 20 * 43 + 68 + + 49 * + COUNT ( * ) * - 55 / 22 END, - - CAST ( NULL AS INTEGER ) - + 51 ) THEN - 71 WHEN + 49 THEN NULL END AS REAL ) * - - MIN ( - - 52 ) - 26 + - 10 + + + ( - 9 ) / - - 10 col2
----
NULL

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

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

query I rowsort
SELECT ALL + 66 * 21
----
1386

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2114
SELECT + CASE + 43 WHEN 64 + - - ( - COUNT( * ) ) + + ( - + CASE + 0 WHEN + 99 THEN - 85 WHEN + 36 + - 33 THEN 71 ELSE 96 + + + 87 * + CASE + COALESCE ( 80, 18 ) WHEN + 96 THEN NULL WHEN 70 - + 71 THEN 12 * COUNT( * ) END + - 30 END ) + + 30 - + CAST( - MAX( - 10 ) AS SIGNED ) - - COUNT( * ) + 47 + + 95 * - 4 THEN NULL ELSE - + 53 END
----
-53

skipif mysql # not compatible
query I rowsort label-2114
SELECT + CASE + 43 WHEN 64 + - - ( - COUNT ( * ) ) + + ( - + CASE + 0 WHEN + 99 THEN - 85 WHEN + 36 + - 33 THEN 71 ELSE 96 + + + 87 * + CASE + COALESCE ( 80, 18 ) WHEN + 96 THEN NULL WHEN 70 - + 71 THEN 12 * COUNT ( * ) END + - 30 END ) + + 30 - + CAST ( - MAX ( - 10 ) AS INTEGER ) - - COUNT ( * ) + 47 + + 95 * - 4 THEN NULL ELSE - + 53 END
----
-53

query II rowsort
SELECT - 84 col1, - 27 col2
----
-84
-27

query II rowsort
SELECT - 97 * 34 + + 43 AS col1, + ( + 65 )
----
-3255
65

onlyif mysql # aggregate syntax: 
query I rowsort label-2117
SELECT + - COUNT( ALL 16 ) * 51 * + 85 AS col1
----
-4335

skipif mysql # not compatible
query I rowsort label-2117
SELECT + - COUNT ( ALL 16 ) * 51 * + 85 AS col1
----
-4335

query I rowsort
SELECT + 24 - - + 17 * - 32 col0
----
-520

query I rowsort
SELECT + + 44 * 47 + + + 45 + 31
----
2144

onlyif mysql # DIV for integer division: 
query I rowsort label-2120
SELECT DISTINCT - + 37 DIV 11
----
-3

skipif mysql # not compatible
query I rowsort label-2120
SELECT DISTINCT - + 37 / 11
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-2121
SELECT ALL + COUNT( * ), 20 * + 50 AS col2
----
1
1000

skipif mysql # not compatible
query II rowsort label-2121
SELECT ALL + COUNT ( * ), 20 * + 50 AS col2
----
1
1000

query I rowsort
SELECT - 51 * 56 + 53 * - 88 * + 78
----
-366648

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2123
SELECT ALL 21 * - NULLIF ( + - 4, + + 58 ) - - ( - + CAST( + 4 AS SIGNED ) ) DIV + 64 AS col2, 98 * - 50 + + - COALESCE ( + 20, + 82, + 76 - + COUNT( * ) + + + 69 * 39 )
----
84
-4920

skipif mysql # not compatible
query II rowsort label-2123
SELECT ALL 21 * - NULLIF ( + - 4, + + 58 ) - - ( - + CAST ( + 4 AS INTEGER ) ) / + 64 AS col2, 98 * - 50 + + - COALESCE ( + 20, + 82, + 76 - + COUNT ( * ) + + + 69 * 39 )
----
84
-4920

onlyif mysql # DIV for integer division: 
query I rowsort label-2124
SELECT 6 DIV + + ( - - 42 )
----
0

skipif mysql # not compatible
query I rowsort label-2124
SELECT 6 / + + ( - - 42 )
----
0

query I rowsort
SELECT ALL 4 * + 63
----
252

onlyif mysql # aggregate syntax: 
query I rowsort label-2126
SELECT ALL SUM( ALL + + 19 ) * - NULLIF ( 40, - + NULLIF ( + - 1, - - 42 * 66 ) + + + 49 ) * - 37 + + 64 * + COUNT( * ) + + 11
----
28195

skipif mysql # not compatible
query I rowsort label-2126
SELECT ALL SUM ( ALL + + 19 ) * - NULLIF ( 40, - + NULLIF ( + - 1, - - 42 * 66 ) + + + 49 ) * - 37 + + 64 * + COUNT ( * ) + + 11
----
28195

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2127
SELECT CAST( NULL AS DECIMAL ) + 73 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2127
SELECT CAST ( NULL AS REAL ) + 73 AS col0
----
NULL

query II rowsort
SELECT ALL 74 + 87, 9 col0
----
161
9

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2129
SELECT CAST( NULL AS DECIMAL ) * + 3 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2129
SELECT CAST ( NULL AS REAL ) * + 3 AS col0
----
NULL

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

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

query I rowsort
SELECT DISTINCT + ( 34 ) + - 66 + + + 6 AS col1
----
-26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2132
SELECT ALL - 96 + + + 49 DIV ( SUM( DISTINCT + 45 ) ) * - 6
----
-102

skipif mysql # not compatible
query I rowsort label-2132
SELECT ALL - 96 + + + 49 / ( SUM ( DISTINCT + 45 ) ) * - 6
----
-102

onlyif mysql # aggregate syntax: 
query II rowsort label-2133
SELECT 50 * - 25 AS col0, NULLIF ( - 29, - 23 * COUNT( * ) ) + + COUNT( * )
----
-1250
-28

skipif mysql # not compatible
query II rowsort label-2133
SELECT 50 * - 25 AS col0, NULLIF ( - 29, - 23 * COUNT ( * ) ) + + COUNT ( * )
----
-1250
-28

query II rowsort
SELECT ALL 67 * 14, 59 + 44 * + ( 19 ) col1
----
938
895

onlyif mysql # DIV for integer division: 
query I rowsort label-2135
SELECT 56 DIV - ( - 11 ) AS col2
----
5

skipif mysql # not compatible
query I rowsort label-2135
SELECT 56 / - ( - 11 ) AS col2
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2136
SELECT ALL - CAST( - + 55 AS SIGNED ) + - ( + 45 ) DIV - COUNT( * ) AS col0
----
100

skipif mysql # not compatible
query I rowsort label-2136
SELECT ALL - CAST ( - + 55 AS INTEGER ) + - ( + 45 ) / - COUNT ( * ) AS col0
----
100

query I rowsort
SELECT ALL + 33 - 49 + + 69 AS col2
----
53

query II rowsort
SELECT 40 * + 5, + 1 + 94 col0
----
200
95

onlyif mysql # aggregate syntax: 
query I rowsort label-2139
SELECT ALL - + 6 - SUM( - + 44 )
----
38

skipif mysql # not compatible
query I rowsort label-2139
SELECT ALL - + 6 - SUM ( - + 44 )
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-2140
SELECT + 15 DIV 6 + - 87 col1
----
-85

skipif mysql # not compatible
query I rowsort label-2140
SELECT + 15 / 6 + - 87 col1
----
-85

query II rowsort
SELECT 64 - + 86, 4 col1
----
-22
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2142
SELECT + COUNT( * ) * + 53 + 90 + + 51 + - 76 AS col0
----
118

skipif mysql # not compatible
query I rowsort label-2142
SELECT + COUNT ( * ) * + 53 + 90 + + 51 + - 76 AS col0
----
118

query I rowsort
SELECT - 42 - - ( - - 48 )
----
6

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2145
SELECT 57 + SUM( + 49 ) * 4, 80 * + + CAST( + + 11 AS SIGNED ) * + COUNT( * ) * - CASE - + 97 WHEN 93 THEN COUNT( * ) END - 36 AS col0
----
253
NULL

skipif mysql # not compatible
query II rowsort label-2145
SELECT 57 + SUM ( + 49 ) * 4, 80 * + + CAST ( + + 11 AS INTEGER ) * + COUNT ( * ) * - CASE - + 97 WHEN 93 THEN COUNT ( * ) END - 36 AS col0
----
253
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2146
SELECT ALL - 70 * + MIN( + 28 ) AS col1
----
-1960

skipif mysql # not compatible
query I rowsort label-2146
SELECT ALL - 70 * + MIN ( + 28 ) AS col1
----
-1960

query I rowsort
SELECT DISTINCT - NULLIF ( + 86, - 99 ) AS col1
----
-86

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2148
SELECT DISTINCT - - 2 * - COUNT( * ) col2, COUNT( * ) DIV - + 76 + - ( 54 )
----
-2
-54

skipif mysql # not compatible
query II rowsort label-2148
SELECT DISTINCT - - 2 * - COUNT ( * ) col2, COUNT ( * ) / - + 76 + - ( 54 )
----
-2
-54

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2149
SELECT ALL - COALESCE ( 55, + 8 * - 14 ) * 14 AS col1, 9 * - 43, CAST( NULL AS SIGNED ) AS col1
----
-770
-387
NULL

skipif mysql # not compatible
query III rowsort label-2149
SELECT ALL - COALESCE ( 55, + 8 * - 14 ) * 14 AS col1, 9 * - 43, CAST ( NULL AS INTEGER ) AS col1
----
-770
-387
NULL

query I rowsort
SELECT 36 + + ( + - 23 )
----
13

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2154
SELECT 35 + + COUNT( DISTINCT - 98 ) + - - 20 col0
----
56

skipif mysql # not compatible
query I rowsort label-2154
SELECT 35 + + COUNT ( DISTINCT - 98 ) + - - 20 col0
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2155
SELECT ALL 33 + + + 85 + + CAST( NULL AS SIGNED ) AS col1, 16
----
NULL
16

skipif mysql # not compatible
query II rowsort label-2155
SELECT ALL 33 + + + 85 + + CAST ( NULL AS INTEGER ) AS col1, 16
----
NULL
16

onlyif mysql # aggregate syntax: 
query I rowsort label-2156
SELECT ALL 51 + + MAX( ALL + - ( + 37 ) )
----
14

skipif mysql # not compatible
query I rowsort label-2156
SELECT ALL 51 + + MAX ( ALL + - ( + 37 ) )
----
14

query I rowsort
SELECT 25 * - ( + + 50 )
----
-1250

onlyif mysql # DIV for integer division: 
query I rowsort label-2158
SELECT ALL - ( 81 ) DIV - - 34
----
-2

skipif mysql # not compatible
query I rowsort label-2158
SELECT ALL - ( 81 ) / - - 34
----
-2

query I rowsort
SELECT DISTINCT 21 + - 88 AS col1
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2160
SELECT DISTINCT COUNT( ALL - + CAST( + - NULLIF ( + 54, + + 94 ) AS SIGNED ) ) + + 84
----
85

skipif mysql # not compatible
query I rowsort label-2160
SELECT DISTINCT COUNT ( ALL - + CAST ( + - NULLIF ( + 54, + + 94 ) AS INTEGER ) ) + + 84
----
85

query I rowsort
SELECT DISTINCT 26 * 70
----
1820

query I rowsort
SELECT ALL 44 * + 9
----
396

query I rowsort
SELECT 66 + - 9
----
57

query II rowsort
SELECT DISTINCT 14, + 48 col0
----
14
48

onlyif mysql # aggregate syntax: 
query I rowsort label-2165
SELECT NULLIF ( + COUNT( * ), - + ( 45 ) ) + - ( - + 81 ) * - + 9
----
-728

skipif mysql # not compatible
query I rowsort label-2165
SELECT NULLIF ( + COUNT ( * ), - + ( 45 ) ) + - ( - + 81 ) * - + 9
----
-728

query I rowsort
SELECT 82 - - CASE 0 WHEN - 32 THEN NULL WHEN + 61 + + 63 THEN 58 ELSE + 97 * - - 74 END
----
7260

query I rowsort
SELECT ALL - + 54 - - 77 * - 76
----
-5906

onlyif mysql # aggregate syntax: 
query I rowsort label-2168
SELECT COUNT( * ) * + ( - 65 ) - 35
----
-100

skipif mysql # not compatible
query I rowsort label-2168
SELECT COUNT ( * ) * + ( - 65 ) - 35
----
-100

query II rowsort
SELECT ALL + 46 col0, + 78
----
46
78

query I rowsort
SELECT DISTINCT - 33 * + 94 AS col2
----
-3102

query I rowsort
SELECT 82 * - 39 AS col1
----
-3198

query I rowsort
SELECT - 40 + + - 3 AS col1
----
-43

query II rowsort
SELECT + 96, 97 AS col0
----
96
97

onlyif mysql # DIV for integer division: 
query I rowsort label-2174
SELECT + 49 DIV + + 26 col0
----
1

skipif mysql # not compatible
query I rowsort label-2174
SELECT + 49 / + + 26 col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2175
SELECT ALL - 8 * + + COUNT( * ) + + + 66 * + 84 + - + CASE 69 WHEN 27 THEN + 27 ELSE NULL END, - CASE 34 WHEN + 14 THEN - - 67 ELSE NULL END
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2175
SELECT ALL - 8 * + + COUNT ( * ) + + + 66 * + 84 + - + CASE 69 WHEN 27 THEN + 27 ELSE NULL END, - CASE 34 WHEN + 14 THEN - - 67 ELSE NULL END
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2176
SELECT + 6 * NULLIF ( + - 12, 67 * + COUNT( + - 48 ) ) AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-2176
SELECT + 6 * NULLIF ( + - 12, 67 * + COUNT ( + - 48 ) ) AS col2
----
-72

query I rowsort
SELECT DISTINCT + 22 * ( 42 ) + 44 * - + 36
----
-660

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2178
SELECT DISTINCT + + 37 / + - 89 + CASE 36 WHEN 7 * - ( + 98 ) * - - 61 THEN NULL WHEN - MIN( - 82 ) THEN + 30 + + + CAST( 88 AS DECIMAL ) - + COALESCE ( - COUNT( * ), 2, + 21, - 15 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2178
SELECT DISTINCT + + 37 / + - 89 + CASE 36 WHEN 7 * - ( + 98 ) * - - 61 THEN NULL WHEN - MIN ( - 82 ) THEN + 30 + + + CAST ( 88 AS REAL ) - + COALESCE ( - COUNT ( * ), 2, + 21, - 15 ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2179
SELECT - + MAX( + + 89 ) DIV - + 48 col2
----
1

skipif mysql # not compatible
query I rowsort label-2179
SELECT - + MAX ( + + 89 ) / - + 48 col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2180
SELECT DISTINCT - 43 * - 60 * - - 66 * - + COALESCE ( + ( + 46 ), 42 DIV - - 78 * - - NULLIF ( - 1, 50 + - 65 * - 39 DIV - 84 ) + - CAST( - 48 AS SIGNED ) ) + + + SUM( 79 )
----
-7832801

skipif mysql # not compatible
query I rowsort label-2180
SELECT DISTINCT - 43 * - 60 * - - 66 * - + COALESCE ( + ( + 46 ), 42 / - - 78 * - - NULLIF ( - 1, 50 + - 65 * - 39 / - 84 ) + - CAST ( - 48 AS INTEGER ) ) + + + SUM ( 79 )
----
-7832801

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2182
SELECT ALL + NULLIF ( - COALESCE ( 77, COUNT( * ), - - 98 ), + 35 )
----
-77

skipif mysql # not compatible
query I rowsort label-2182
SELECT ALL + NULLIF ( - COALESCE ( 77, COUNT ( * ), - - 98 ), + 35 )
----
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2183
SELECT COALESCE ( - - ( - 46 ), + 84, 14 DIV - - 5 * + COUNT( * ) )
----
-46

skipif mysql # not compatible
query I rowsort label-2183
SELECT COALESCE ( - - ( - 46 ), + 84, 14 / - - 5 * + COUNT ( * ) )
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2184
SELECT COALESCE ( + CAST( + 74 AS SIGNED ), - - 10 + ( COUNT( * ) ) + + 92 )
----
74

skipif mysql # not compatible
query I rowsort label-2184
SELECT COALESCE ( + CAST ( + 74 AS INTEGER ), - - 10 + ( COUNT ( * ) ) + + 92 )
----
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2185
SELECT ALL - 93 * 35 + + COALESCE ( - 85, + 43 * - 75 + - 76, - COUNT( * ) ) - MAX( 92 ) + - - ( 58 ) + - 21 DIV - + 14 AS col1, 21 + 67
----
-3373
88

skipif mysql # not compatible
query II rowsort label-2185
SELECT ALL - 93 * 35 + + COALESCE ( - 85, + 43 * - 75 + - 76, - COUNT ( * ) ) - MAX ( 92 ) + - - ( 58 ) + - 21 / - + 14 AS col1, 21 + 67
----
-3373
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2186
SELECT - 78 * + 88 - + + CASE - COUNT( * ) WHEN + + CAST( NULL AS SIGNED ) + 98 - - SUM( DISTINCT + 34 ) THEN NULL WHEN + 26 THEN NULL ELSE - - 17 END + - + COUNT( * ) * + + COUNT( * )
----
-6882

skipif mysql # not compatible
query I rowsort label-2186
SELECT - 78 * + 88 - + + CASE - COUNT ( * ) WHEN + + CAST ( NULL AS INTEGER ) + 98 - - SUM ( DISTINCT + 34 ) THEN NULL WHEN + 26 THEN NULL ELSE - - 17 END + - + COUNT ( * ) * + + COUNT ( * )
----
-6882

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

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

query I rowsort
SELECT ALL + ( - + COALESCE ( + 32, + - 97 ) ) col0
----
-32

query II rowsort
SELECT ALL + 5 AS col0, 18 - 52
----
5
-34

query I rowsort
SELECT - 86 * 39 * 34
----
-114036

onlyif mysql # aggregate syntax: 
query II rowsort label-2191
SELECT ALL + 11 AS col1, + 44 * - MIN( DISTINCT 98 )
----
11
-4312

skipif mysql # not compatible
query II rowsort label-2191
SELECT ALL + 11 AS col1, + 44 * - MIN ( DISTINCT 98 )
----
11
-4312

query I rowsort
SELECT DISTINCT - ( 70 ) * - ( 71 ) + + 22 + + 81 - 60 + - - 45 AS col2
----
5058

query I rowsort
SELECT - 50 * 50 AS col1
----
-2500

onlyif mysql # aggregate syntax: 
query I rowsort label-2194
SELECT MIN( DISTINCT 40 ) AS col0
----
40

skipif mysql # not compatible
query I rowsort label-2194
SELECT MIN ( DISTINCT 40 ) AS col0
----
40

query I rowsort
SELECT ALL 90 * - + 86
----
-7740

query I rowsort
SELECT ALL 58 * - + 11
----
-638

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2197
SELECT DISTINCT - MAX( DISTINCT + ( + 93 ) ) * ( 78 ) + + CAST( NULL AS SIGNED ) * - 58 * 57 * + 1 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2197
SELECT DISTINCT - MAX ( DISTINCT + ( + 93 ) ) * ( 78 ) + + CAST ( NULL AS INTEGER ) * - 58 * 57 * + 1 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2198
SELECT - + 14 + ( - - COALESCE ( 57, - SUM( + 7 ) ) ) * ( - ( COALESCE ( - 14, + 66 ) ) )
----
784

skipif mysql # not compatible
query I rowsort label-2198
SELECT - + 14 + ( - - COALESCE ( 57, - SUM ( + 7 ) ) ) * ( - ( COALESCE ( - 14, + 66 ) ) )
----
784

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2199
SELECT ALL + CAST( NULL AS SIGNED ) * - 7 * + - NULLIF ( 96, ( - + COUNT( * ) ) * - ( - + ( 64 ) ) - - + 68 + - 88 * + - COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2199
SELECT ALL + CAST ( NULL AS INTEGER ) * - 7 * + - NULLIF ( 96, ( - + COUNT ( * ) ) * - ( - + ( 64 ) ) - - + 68 + - 88 * + - COUNT ( * ) )
----
NULL

query II rowsort
SELECT ALL 8, 72 AS col2
----
8
72

query I rowsort
SELECT - COALESCE ( 81, + ( - ( - 52 ) ) + 19, ( 14 ) )
----
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-2202
SELECT + + NULLIF ( + 10, 36 ) - 79 * + + NULLIF ( + - 22, + COUNT( * ) / + 9 ) * - 96, - 90 AS col2
----
-166838
-90

skipif mysql # not compatible
query II rowsort label-2202
SELECT + + NULLIF ( + 10, 36 ) - 79 * + + NULLIF ( + - 22, + COUNT ( * ) / + 9 ) * - 96, - 90 AS col2
----
-166838
-90

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

skipif mysql # not compatible
query II rowsort label-2203
SELECT ALL - 86 col0, COUNT ( * )
----
-86
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2204
SELECT + SUM( DISTINCT - - 0 ) + - 40
----
-40

skipif mysql # not compatible
query I rowsort label-2204
SELECT + SUM ( DISTINCT - - 0 ) + - 40
----
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-2205
SELECT ALL 75 AS col1, - COALESCE ( + 61, COALESCE ( - 33, + - SUM( + - 73 ) ) * + + 57 + - 67, - + 45 ) + + - 79
----
75
-140

skipif mysql # not compatible
query II rowsort label-2205
SELECT ALL 75 AS col1, - COALESCE ( + 61, COALESCE ( - 33, + - SUM ( + - 73 ) ) * + + 57 + - 67, - + 45 ) + + - 79
----
75
-140

query I rowsort
SELECT ALL ( - 70 ) * + 45
----
-3150

query I rowsort
SELECT ALL 74 + - - 45 * 75
----
3449

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

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

query I rowsort
SELECT ALL - + 72 + + + 80 * + 16 * - 23 AS col0
----
-29512

query I rowsort
SELECT + + 7 - + 48 col1
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-2211
SELECT - - 33 - MIN( DISTINCT + 3 ) AS col2
----
30

skipif mysql # not compatible
query I rowsort label-2211
SELECT - - 33 - MIN ( DISTINCT + 3 ) AS col2
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2212
SELECT ALL + 46 DIV + 11 + 47 + + + 40 + + MIN( + 22 ) * ( COUNT( * ) )
----
113

skipif mysql # not compatible
query I rowsort label-2212
SELECT ALL + 46 / + 11 + 47 + + + 40 + + MIN ( + 22 ) * ( COUNT ( * ) )
----
113

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2215
SELECT DISTINCT + 74 DIV - 82 + + 56 AS col0
----
56

skipif mysql # not compatible
query I rowsort label-2215
SELECT DISTINCT + 74 / - 82 + + 56 AS col0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-2216
SELECT ALL - ( 68 ) / - COALESCE ( + + COUNT( * ), - 52 + - - MIN( DISTINCT + - 34 ) + 24 * 76 * - 47 + - - 23 ) * - + 13 + + CASE - 58 WHEN 76 * 40 - + 2 THEN - 22 ELSE NULL END + 85
----
NULL

skipif mysql # not compatible
query I rowsort label-2216
SELECT ALL - ( 68 ) / - COALESCE ( + + COUNT ( * ), - 52 + - - MIN ( DISTINCT + - 34 ) + 24 * 76 * - 47 + - - 23 ) * - + 13 + + CASE - 58 WHEN 76 * 40 - + 2 THEN - 22 ELSE NULL END + 85
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2217
SELECT ALL COUNT( * ) * 99 * COUNT( - 61 ) AS col0
----
99

skipif mysql # not compatible
query I rowsort label-2217
SELECT ALL COUNT ( * ) * 99 * COUNT ( - 61 ) AS col0
----
99

onlyif mysql # aggregate syntax: 
query II rowsort label-2218
SELECT - 11 * - COUNT( * ) + 60 + - CASE 21 WHEN - 3 THEN 90 / - + 45 * ( - 76 ) WHEN + 24 - - 36 - 39 * - 97 * + - 18 * + MAX( + 96 ) / - COUNT( * ) + + ( - 57 ) + + + ( - 97 ) * - 40 THEN NULL END, 4 * - + SUM( + 84 ) * COUNT( * ) AS col0
----
NULL
-336

skipif mysql # not compatible
query II rowsort label-2218
SELECT - 11 * - COUNT ( * ) + 60 + - CASE 21 WHEN - 3 THEN 90 / - + 45 * ( - 76 ) WHEN + 24 - - 36 - 39 * - 97 * + - 18 * + MAX ( + 96 ) / - COUNT ( * ) + + ( - 57 ) + + + ( - 97 ) * - 40 THEN NULL END, 4 * - + SUM ( + 84 ) * COUNT ( * ) AS col0
----
NULL
-336

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2219
SELECT ALL NULLIF ( COUNT( * ), + ( - - CASE - NULLIF ( - 46, - 84 + - - 11 ) WHEN - COUNT( * ) THEN 65 + + 38 ELSE NULL END ) * - - 59 * - 62 - + + 25 ) * - + 81 + + - 19 - ( 23 ) / + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2219
SELECT ALL NULLIF ( COUNT ( * ), + ( - - CASE - NULLIF ( - 46, - 84 + - - 11 ) WHEN - COUNT ( * ) THEN 65 + + 38 ELSE NULL END ) * - - 59 * - 62 - + + 25 ) * - + 81 + + - 19 - ( 23 ) / + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2220
SELECT COUNT( * ) * - + 98 + - - 22 AS col0, COUNT( * ) * 92 * - 8 col0
----
-76
-736

skipif mysql # not compatible
query II rowsort label-2220
SELECT COUNT ( * ) * - + 98 + - - 22 AS col0, COUNT ( * ) * 92 * - 8 col0
----
-76
-736

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2221
SELECT + 74 + - 84 + - 78 DIV 97 * - - 88 * MIN( - - 58 )
----
-10

skipif mysql # not compatible
query I rowsort label-2221
SELECT + 74 + - 84 + - 78 / 97 * - - 88 * MIN ( - - 58 )
----
-10

query I rowsort
SELECT - ( + NULLIF ( + 35, - 27 ) ) + + 43 col1
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-2223
SELECT ALL + ( - - 49 ) AS col1, COUNT( + - NULLIF ( 61, + 8 ) ) * - COUNT( * ) + 89
----
49
88

skipif mysql # not compatible
query II rowsort label-2223
SELECT ALL + ( - - 49 ) AS col1, COUNT ( + - NULLIF ( 61, + 8 ) ) * - COUNT ( * ) + 89
----
49
88

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

skipif mysql # not compatible
query I rowsort label-2224
SELECT + SUM ( DISTINCT - + CAST ( - - 38 AS INTEGER ) ) AS col1
----
-38

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

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

skipif mysql # not compatible
query I rowsort label-2226
SELECT - 26 * - COUNT ( * )
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-2227
SELECT - COUNT( * ) * + ( + SUM( - 17 ) )
----
17

skipif mysql # not compatible
query I rowsort label-2227
SELECT - COUNT ( * ) * + ( + SUM ( - 17 ) )
----
17

query I rowsort
SELECT ALL + 74 * + 3 * + 14
----
3108

query I rowsort
SELECT - 44 + - 6 AS col0
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2230
SELECT DISTINCT + 65 * - - CAST( NULL AS SIGNED ), ( + - CAST( - 17 AS SIGNED ) ) / - + CASE - 94 WHEN COUNT( * ) THEN + 42 - - + MAX( + - 18 ) / + COUNT( * ) * + 21 ELSE NULL END * - 9 * 2 + + - 80 / - COUNT( * )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2230
SELECT DISTINCT + 65 * - - CAST ( NULL AS INTEGER ), ( + - CAST ( - 17 AS INTEGER ) ) / - + CASE - 94 WHEN COUNT ( * ) THEN + 42 - - + MAX ( + - 18 ) / + COUNT ( * ) * + 21 ELSE NULL END * - 9 * 2 + + - 80 / - COUNT ( * )
----
NULL
NULL

query I rowsort
SELECT COALESCE ( + 30, + 29 )
----
30

query II rowsort
SELECT ALL + 47 * 80 AS col0, 20 * - 81 col2
----
3760
-1620

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2233
SELECT ALL + 74 * - 74 DIV + COUNT( * )
----
-5476

skipif mysql # not compatible
query I rowsort label-2233
SELECT ALL + 74 * - 74 / + COUNT ( * )
----
-5476

query II rowsort
SELECT ALL ( + 62 ) AS col0, - ( + 52 )
----
62
-52

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

skipif mysql # not compatible
query I rowsort label-2235
SELECT DISTINCT + + COUNT ( * ) * + + ( + + 77 ) AS col0
----
77

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2237
SELECT - - 38 + ( - - 83 ) + - COUNT( * ) * - 72 * 28 col1
----
2137

skipif mysql # not compatible
query I rowsort label-2237
SELECT - - 38 + ( - - 83 ) + - COUNT ( * ) * - 72 * 28 col1
----
2137

query II rowsort
SELECT ALL ( - 9 ) AS col1, 23
----
-9
23

query I rowsort
SELECT + 16 * - + 72 + - 34 AS col0
----
-1186

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2240
SELECT ALL NULLIF ( 17, 55 * - + 24 * + 93 / 75 + - CAST( NULL AS SIGNED ) ) * 96 + - 85 + 96
----
1643

skipif mysql # not compatible
query I rowsort label-2240
SELECT ALL NULLIF ( 17, 55 * - + 24 * + 93 / 75 + - CAST ( NULL AS INTEGER ) ) * 96 + - 85 + 96
----
1643

query I rowsort
SELECT + 22 + - 62 AS col1
----
-40

query I rowsort
SELECT DISTINCT + 66 * - 18
----
-1188

query I rowsort
SELECT DISTINCT + 55 + + COALESCE ( + - 79, - 47 )
----
-24

query I rowsort
SELECT ALL - 92 + - - 50 + 58
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-2245
SELECT 88 DIV - - 57
----
1

skipif mysql # not compatible
query I rowsort label-2245
SELECT 88 / - - 57
----
1

query I rowsort
SELECT ALL + - 28 + + 94 * - 90 AS col1
----
-8488

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2247
SELECT DISTINCT - - MIN( - 92 ) + - CAST( - 53 AS SIGNED )
----
-39

skipif mysql # not compatible
query I rowsort label-2247
SELECT DISTINCT - - MIN ( - 92 ) + - CAST ( - 53 AS INTEGER )
----
-39

onlyif mysql # aggregate syntax: 
query II rowsort label-2248
SELECT ALL + - 15 * + 25 + + 24 AS col1, COUNT( * )
----
-351
1

skipif mysql # not compatible
query II rowsort label-2248
SELECT ALL + - 15 * + 25 + + 24 AS col1, COUNT ( * )
----
-351
1

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

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

query I rowsort
SELECT DISTINCT - ( + ( + 36 ) ) * + 58
----
-2088

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2251
SELECT DISTINCT - 48 - - CAST( + 56 AS SIGNED ) - - 92 * + - ( - 84 ) DIV - - 84 + + COUNT( * ) + + 8 AS col1
----
109

skipif mysql # not compatible
query I rowsort label-2251
SELECT DISTINCT - 48 - - CAST ( + 56 AS INTEGER ) - - 92 * + - ( - 84 ) / - - 84 + + COUNT ( * ) + + 8 AS col1
----
109

query I rowsort
SELECT DISTINCT + NULLIF ( 11, - + 59 ) * - 99
----
-1089

query II rowsort
SELECT ALL - 96, ( + - ( 62 ) ) * 32 col1
----
-96
-1984

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2254
SELECT ALL CAST( - 99 AS SIGNED ) DIV + CAST( - 62 AS SIGNED ) * - NULLIF ( - - COUNT( * ), - + 22 * 79 ) + - 37
----
-38

skipif mysql # not compatible
query I rowsort label-2254
SELECT ALL CAST ( - 99 AS INTEGER ) / + CAST ( - 62 AS INTEGER ) * - NULLIF ( - - COUNT ( * ), - + 22 * 79 ) + - 37
----
-38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2255
SELECT COUNT( * ) * + COALESCE ( 98, - 68 * - 87 DIV 68 + + - 23 + + + 77 ) * - - 0 + + 56 + - 65 col1
----
-9

skipif mysql # not compatible
query I rowsort label-2255
SELECT COUNT ( * ) * + COALESCE ( 98, - 68 * - 87 / 68 + + - 23 + + + 77 ) * - - 0 + + 56 + - 65 col1
----
-9

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

query I rowsort
SELECT 76 * + 85 AS col0
----
6460

query I rowsort
SELECT 51 * + 21 - + 25 AS col2
----
1046

onlyif mysql # aggregate syntax: 
query I rowsort label-2259
SELECT CASE - NULLIF ( 40, - MAX( ALL + 15 ) ) WHEN - 50 THEN + 45 + - + 84 END * 16 * + NULLIF ( 88, ( - 29 ) ) + - + ( + 42 ) * 92 + 32 - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2259
SELECT CASE - NULLIF ( 40, - MAX ( ALL + 15 ) ) WHEN - 50 THEN + 45 + - + 84 END * 16 * + NULLIF ( 88, ( - 29 ) ) + - + ( + 42 ) * 92 + 32 - - COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2260
SELECT 66 DIV + 66
----
1

skipif mysql # not compatible
query I rowsort label-2260
SELECT 66 / + 66
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2261
SELECT DISTINCT - 6 DIV + - COUNT( * ) AS col1
----
6

skipif mysql # not compatible
query I rowsort label-2261
SELECT DISTINCT - 6 / + - COUNT ( * ) AS col1
----
6

query I rowsort
SELECT 75 * - + 29 AS col1
----
-2175

onlyif mysql # aggregate syntax: 
query I rowsort label-2263
SELECT ALL + COUNT( * ) + + - CASE - + 46 WHEN - COUNT( * ) * 30 - - + 34 + - ( + - 35 ) * 25 * - - 6 * + 56 * - MAX( DISTINCT - 9 ) * - 96 THEN NULL ELSE - - 76 * + 96 * + - ( - - 28 ) - - 16 + + + 48 END
----
204225

skipif mysql # not compatible
query I rowsort label-2263
SELECT ALL + COUNT ( * ) + + - CASE - + 46 WHEN - COUNT ( * ) * 30 - - + 34 + - ( + - 35 ) * 25 * - - 6 * + 56 * - MAX ( DISTINCT - 9 ) * - 96 THEN NULL ELSE - - 76 * + 96 * + - ( - - 28 ) - - 16 + + + 48 END
----
204225

query II rowsort
SELECT 12, - 26 * 98 col1
----
12
-2548

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2265
SELECT 56 DIV + + MAX( 70 )
----
0

skipif mysql # not compatible
query I rowsort label-2265
SELECT 56 / + + MAX ( 70 )
----
0

query I rowsort
SELECT + 1 * + - 35 - 71
----
-106

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

query I rowsort
SELECT - 93 * + + 13
----
-1209

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

skipif mysql # not compatible
query II rowsort label-2269
SELECT + - COUNT ( * ), - ( - 32 ) col0
----
-1
32

onlyif mysql # aggregate syntax: 
query I rowsort label-2270
SELECT + 59 * 33 * ( COUNT( * ) ) - 84 AS col2
----
1863

skipif mysql # not compatible
query I rowsort label-2270
SELECT + 59 * 33 * ( COUNT ( * ) ) - 84 AS col2
----
1863

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

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

query I rowsort
SELECT ALL - 46 + - 9 * + - 79 * 6 + - - 98
----
4318

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2274
SELECT + CAST( NULL AS DECIMAL ) + - - AVG ( + 7 ) * - - COUNT( * ) * + AVG ( - 40 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2274
SELECT + CAST ( NULL AS REAL ) + - - AVG ( + 7 ) * - - COUNT ( * ) * + AVG ( - 40 ) AS col2
----
NULL

query I rowsort
SELECT ALL COALESCE ( + 13, - 54 )
----
13

query I rowsort
SELECT 36 + - + 5 + - + 72 * - 90 AS col2
----
6511

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2277
SELECT NULLIF ( + COUNT( * ), + ( + - CAST( - 61 AS SIGNED ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-2277
SELECT NULLIF ( + COUNT ( * ), + ( + - CAST ( - 61 AS INTEGER ) ) )
----
1

query II rowsort
SELECT + 72 AS col2, 46
----
72
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2279
SELECT - CAST( + + 62 AS SIGNED ) + 92 AS col2, - COUNT( * ) AS col0
----
30
-1

skipif mysql # not compatible
query II rowsort label-2279
SELECT - CAST ( + + 62 AS INTEGER ) + 92 AS col2, - COUNT ( * ) AS col0
----
30
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2280
SELECT ALL - ( - 84 ) - - - CASE 30 WHEN + CASE + 49 WHEN - - 10 THEN - 92 ELSE NULL END * - MIN( DISTINCT + + 76 ) THEN - - 58 END / + 88 * - COUNT( - - CAST( - + 39 AS SIGNED ) ) * + - 78 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2280
SELECT ALL - ( - 84 ) - - - CASE 30 WHEN + CASE + 49 WHEN - - 10 THEN - 92 ELSE NULL END * - MIN ( DISTINCT + + 76 ) THEN - - 58 END / + 88 * - COUNT ( - - CAST ( - + 39 AS INTEGER ) ) * + - 78 AS col0
----
NULL

query I rowsort
SELECT 13 + + + 6
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-2282
SELECT 57 * - COUNT( * ) - COUNT( + + 89 ) AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-2282
SELECT 57 * - COUNT ( * ) - COUNT ( + + 89 ) AS col0
----
-58

query II rowsort
SELECT - 50 AS col0, 31 * - 37
----
-50
-1147

onlyif mysql # aggregate syntax: 
query I rowsort label-2284
SELECT COALESCE ( 32, + COUNT( * ) + + 39 * + COALESCE ( + 6, - 85 + - - 18 * 60 * + 6 * + 80 ) ) * - 69
----
-2208

skipif mysql # not compatible
query I rowsort label-2284
SELECT COALESCE ( 32, + COUNT ( * ) + + 39 * + COALESCE ( + 6, - 85 + - - 18 * 60 * + 6 * + 80 ) ) * - 69
----
-2208

query I rowsort
SELECT ALL 81 * + 80 AS col2
----
6480

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2287
SELECT 15 + - + 56 + - - 26 DIV - ( + 28 ) AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-2287
SELECT 15 + - + 56 + - - 26 / - ( + 28 ) AS col2
----
-41

query I rowsort
SELECT 21 * - - 87 AS col0
----
1827

onlyif mysql # aggregate syntax: 
query I rowsort label-2289
SELECT COUNT( * ) * - - MAX( ALL + 76 ) * - + 97 + - + NULLIF ( + ( + - 20 ), + 9 ) AS col1
----
-7352

skipif mysql # not compatible
query I rowsort label-2289
SELECT COUNT ( * ) * - - MAX ( ALL + 76 ) * - + 97 + - + NULLIF ( + ( + - 20 ), + 9 ) AS col1
----
-7352

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2290
SELECT ( COUNT( 77 ) ) * - 88 DIV - - 75
----
-1

skipif mysql # not compatible
query I rowsort label-2290
SELECT ( COUNT ( 77 ) ) * - 88 / - - 75
----
-1

query I rowsort
SELECT DISTINCT 62 * + - 1 AS col2
----
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-2292
SELECT 83 DIV 94 + + 36
----
36

skipif mysql # not compatible
query I rowsort label-2292
SELECT 83 / 94 + + 36
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-2293
SELECT SUM( DISTINCT + ( + 26 ) ) + + + 18 AS col0
----
44

skipif mysql # not compatible
query I rowsort label-2293
SELECT SUM ( DISTINCT + ( + 26 ) ) + + + 18 AS col0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-2294
SELECT ALL - CASE 96 WHEN COUNT( * ) THEN - 15 * + COUNT( * ) + - - 65 + - 30 * + COUNT( * ) + - - ( AVG ( + CASE WHEN NULL IS NULL THEN NULL ELSE 25 END ) ) + + 4 + + 99 + + 24 * AVG ( DISTINCT ( + + 41 ) ) * - 7 * + CASE 61 WHEN - 86 - + 87 THEN NULL WHEN + 78 - - 4 + + - 47 + + - 84 * MAX( DISTINCT + + 74 ) * - - 6 * 90 * + 6 THEN ( + - 32 ) END - - 84 WHEN COALESCE ( - COUNT( * ), - + COUNT( * ) ) + - 97 + 41 THEN 82 * + 45 * - 68 * + 36 * + + ( 28 ) * - - 71 + - COUNT( ( - 79 ) ) + - MIN( - 81 ) * 77 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2294
SELECT ALL - CASE 96 WHEN COUNT ( * ) THEN - 15 * + COUNT ( * ) + - - 65 + - 30 * + COUNT ( * ) + - - ( AVG ( + CASE WHEN NULL IS NULL THEN NULL ELSE 25 END ) ) + + 4 + + 99 + + 24 * AVG ( DISTINCT ( + + 41 ) ) * - 7 * + CASE 61 WHEN - 86 - + 87 THEN NULL WHEN + 78 - - 4 + + - 47 + + - 84 * MAX ( DISTINCT + + 74 ) * - - 6 * 90 * + 6 THEN ( + - 32 ) END - - 84 WHEN COALESCE ( - COUNT ( * ), - + COUNT ( * ) ) + - 97 + 41 THEN 82 * + 45 * - 68 * + 36 * + + ( 28 ) * - - 71 + - COUNT ( ( - 79 ) ) + - MIN ( - 81 ) * 77 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2295
SELECT MIN( DISTINCT - 33 ) AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-2295
SELECT MIN ( DISTINCT - 33 ) AS col2
----
-33

query I rowsort
SELECT DISTINCT 21 * 47 + + 31
----
1018

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2297
SELECT + 8 * 57 + + ( - CAST( + CAST( NULL AS SIGNED ) AS DECIMAL ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2297
SELECT + 8 * 57 + + ( - CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2298
SELECT SUM( DISTINCT 11 ), 52 * + COUNT( * ) AS col0
----
11
52

skipif mysql # not compatible
query II rowsort label-2298
SELECT SUM ( DISTINCT 11 ), 52 * + COUNT ( * ) AS col0
----
11
52

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2300
SELECT DISTINCT 72 + + 59 * + 43 + - COUNT( * ) AS col1
----
2608

skipif mysql # not compatible
query I rowsort label-2300
SELECT DISTINCT 72 + + 59 * + 43 + - COUNT ( * ) AS col1
----
2608

onlyif mysql # DIV for integer division: 
query I rowsort label-2301
SELECT 1 DIV - 59
----
0

skipif mysql # not compatible
query I rowsort label-2301
SELECT 1 / - 59
----
0

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2305
SELECT MIN( - + 20 ) * COUNT( * ) + + + 41 + + COUNT( * )
----
22

skipif mysql # not compatible
query I rowsort label-2305
SELECT MIN ( - + 20 ) * COUNT ( * ) + + + 41 + + COUNT ( * )
----
22

onlyif mysql # aggregate syntax: 
query II rowsort label-2306
SELECT ALL 13 + - + COUNT( * ) AS col0, - COUNT( * ) AS col1
----
12
-1

skipif mysql # not compatible
query II rowsort label-2306
SELECT ALL 13 + - + COUNT ( * ) AS col0, - COUNT ( * ) AS col1
----
12
-1

query I rowsort
SELECT ALL - 97 + - - ( + - 99 ) col0
----
-196

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

skipif mysql # not compatible
query I rowsort label-2308
SELECT DISTINCT + + CAST ( - 57 AS INTEGER ) col1
----
-57

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2310
SELECT ALL - 17 / + CASE + 22 WHEN + + 91 + 3 + + 2 THEN NULL WHEN - - 13 + COUNT( * ) THEN + 70 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2310
SELECT ALL - 17 / + CASE + 22 WHEN + + 91 + 3 + + 2 THEN NULL WHEN - - 13 + COUNT ( * ) THEN + 70 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2311
SELECT - 79 + - + 36 + + 66 * - + CAST( + 18 AS SIGNED ) - - 96 * - COUNT( * ) * + + 52
----
-6295

skipif mysql # not compatible
query I rowsort label-2311
SELECT - 79 + - + 36 + + 66 * - + CAST ( + 18 AS INTEGER ) - - 96 * - COUNT ( * ) * + + 52
----
-6295

query I rowsort
SELECT ALL - ( + 56 ) - + 51
----
-107

query I rowsort
SELECT + 37 * + - 3 AS col1
----
-111

onlyif mysql # aggregate syntax: 
query I rowsort label-2314
SELECT - + 45 + NULLIF ( COUNT( * ), 15 - - 24 + 98 * - - ( - 4 ) ) - + - 40 + 62
----
58

skipif mysql # not compatible
query I rowsort label-2314
SELECT - + 45 + NULLIF ( COUNT ( * ), 15 - - 24 + 98 * - - ( - 4 ) ) - + - 40 + 62
----
58

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2316
SELECT DISTINCT - + ( + 91 ) - + CAST( + - MIN( DISTINCT CAST( NULL AS SIGNED ) ) AS DECIMAL ) + - 30
----
NULL

skipif mysql # not compatible
query I rowsort label-2316
SELECT DISTINCT - + ( + 91 ) - + CAST ( + - MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) AS REAL ) + - 30
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2317
SELECT - + MIN( DISTINCT 4 ) AS col2, 34
----
-4
34

skipif mysql # not compatible
query II rowsort label-2317
SELECT - + MIN ( DISTINCT 4 ) AS col2, 34
----
-4
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2318
SELECT DISTINCT - - COALESCE ( + ( - 56 ), 84 ) * - - 82 - - CAST( NULL AS SIGNED ) + - 40 + + 22 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2318
SELECT DISTINCT - - COALESCE ( + ( - 56 ), 84 ) * - - 82 - - CAST ( NULL AS INTEGER ) + - 40 + + 22 AS col1
----
NULL

query I rowsort
SELECT ALL - NULLIF ( + 47, 25 ) AS col2
----
-47

query I rowsort
SELECT DISTINCT - 21 * + 83 * 76 AS col2
----
-132468

onlyif mysql # aggregate syntax: 
query I rowsort label-2321
SELECT DISTINCT - + ( + COUNT( * ) ) * ( 50 ) + + 97 * + + 35 AS col0
----
3345

skipif mysql # not compatible
query I rowsort label-2321
SELECT DISTINCT - + ( + COUNT ( * ) ) * ( 50 ) + + 97 * + + 35 AS col0
----
3345

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2323
SELECT - MIN( 99 ) + CAST( - 78 AS SIGNED )
----
-177

skipif mysql # not compatible
query I rowsort label-2323
SELECT - MIN ( 99 ) + CAST ( - 78 AS INTEGER )
----
-177

query I rowsort
SELECT + 33 * + 58 * 93
----
178002

query I rowsort
SELECT - 39 + + 80 + + 28 * - 64 + - 72 AS col0
----
-1823

query I rowsort
SELECT - 57 * + - 61 AS col2
----
3477

onlyif mysql # aggregate syntax: 
query I rowsort label-2327
SELECT DISTINCT NULLIF ( COALESCE ( ( - 58 ), + - 32 ), + 94 - - 54 + - 87 * + 7 * 0 * - - 37 * 53 - - - COUNT( * ) - - 86 + + + 35 * - 16 - - - 91 )
----
-58

skipif mysql # not compatible
query I rowsort label-2327
SELECT DISTINCT NULLIF ( COALESCE ( ( - 58 ), + - 32 ), + 94 - - 54 + - 87 * + 7 * 0 * - - 37 * 53 - - - COUNT ( * ) - - 86 + + + 35 * - 16 - - - 91 )
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-2328
SELECT ALL - 15 DIV + 62 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2328
SELECT ALL - 15 / + 62 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2329
SELECT - 21 DIV - CAST( - + 92 AS SIGNED ) * - + 35 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2329
SELECT - 21 / - CAST ( - + 92 AS INTEGER ) * - + 35 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2330
SELECT DISTINCT 42 DIV + 68 + + - 68 + 82 * + COUNT( * ) - 66 AS col1
----
-52

skipif mysql # not compatible
query I rowsort label-2330
SELECT DISTINCT 42 / + 68 + + - 68 + 82 * + COUNT ( * ) - 66 AS col1
----
-52

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

query I rowsort
SELECT ALL - 15 * - 93 AS col1
----
1395

onlyif mysql # DIV for integer division: 
query I rowsort label-2333
SELECT - 85 DIV + + 23 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-2333
SELECT - 85 / + + 23 AS col2
----
-3

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

skipif mysql # not compatible
query I rowsort label-2334
SELECT 24 / 23 + + + COUNT ( * ) AS col1
----
2

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2336
SELECT ALL 54 * 63 + 10 DIV + 82
----
3402

skipif mysql # not compatible
query I rowsort label-2336
SELECT ALL 54 * 63 + 10 / + 82
----
3402

query I rowsort
SELECT + 2 * - 29 * 63
----
-3654

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2338
SELECT ALL 60 * - COUNT( * ) + + COALESCE ( - 36, 22 + + + COALESCE ( 2, - - 46 ), - CAST( - - 49 AS SIGNED ) ) * 54 AS col1
----
-2004

skipif mysql # not compatible
query I rowsort label-2338
SELECT ALL 60 * - COUNT ( * ) + + COALESCE ( - 36, 22 + + + COALESCE ( 2, - - 46 ), - CAST ( - - 49 AS INTEGER ) ) * 54 AS col1
----
-2004

onlyif mysql # aggregate syntax: 
query I rowsort label-2339
SELECT + NULLIF ( + 12, - COUNT( * ) + - + ( + COUNT( * ) ) )
----
12

skipif mysql # not compatible
query I rowsort label-2339
SELECT + NULLIF ( + 12, - COUNT ( * ) + - + ( + COUNT ( * ) ) )
----
12

query I rowsort
SELECT DISTINCT + COALESCE ( ( + + 44 ), - 40 ) AS col1
----
44

query I rowsort
SELECT ( 96 ) * 73 + 59
----
7067

onlyif mysql # aggregate syntax: 
query I rowsort label-2342
SELECT ALL 97 * 26 + - COUNT( * )
----
2521

skipif mysql # not compatible
query I rowsort label-2342
SELECT ALL 97 * 26 + - COUNT ( * )
----
2521

query I rowsort
SELECT DISTINCT + ( 72 ) AS col2
----
72

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

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

query I rowsort
SELECT ALL + 66 * + 23 + - 1 * + ( - 4 )
----
1522

onlyif mysql # aggregate syntax: 
query I rowsort label-2346
SELECT COALESCE ( 13, - COUNT( * ) - 84 * COALESCE ( + SUM( DISTINCT 8 ), + 35, + 23 * COUNT( * ) ) )
----
13

skipif mysql # not compatible
query I rowsort label-2346
SELECT COALESCE ( 13, - COUNT ( * ) - 84 * COALESCE ( + SUM ( DISTINCT 8 ), + 35, + 23 * COUNT ( * ) ) )
----
13

query I rowsort
SELECT + ( NULLIF ( 62, + 34 - - 35 * + ( - 18 ) ) ) AS col1
----
62

query I rowsort
SELECT + 36 * 86 AS col1
----
3096

onlyif mysql # aggregate syntax: 
query I rowsort label-2349
SELECT ALL + ( 30 ) * CASE 17 / + COUNT( - 97 ) - - 35 WHEN - 94 + 92 / - 88 THEN NULL ELSE 36 + CASE 42 + + 57 WHEN + 71 * 69 + 95 THEN + 34 WHEN 82 THEN + 14 / ( 45 ) + 92 ELSE NULL END END - 45
----
NULL

skipif mysql # not compatible
query I rowsort label-2349
SELECT ALL + ( 30 ) * CASE 17 / + COUNT ( - 97 ) - - 35 WHEN - 94 + 92 / - 88 THEN NULL ELSE 36 + CASE 42 + + 57 WHEN + 71 * 69 + 95 THEN + 34 WHEN 82 THEN + 14 / ( 45 ) + 92 ELSE NULL END END - 45
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2350
SELECT + CASE - 89 WHEN COALESCE ( 19, CASE AVG ( 74 ) WHEN COUNT( * ) * 25 THEN NULL WHEN 93 * - 95 + + 85 * ( 5 ) THEN 13 * 66 ELSE NULL END ) THEN - 47 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2350
SELECT + CASE - 89 WHEN COALESCE ( 19, CASE AVG ( 74 ) WHEN COUNT ( * ) * 25 THEN NULL WHEN 93 * - 95 + + 85 * ( 5 ) THEN 13 * 66 ELSE NULL END ) THEN - 47 END AS col1
----
NULL

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

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

query I rowsort
SELECT + 6 * + 4 AS col1
----
24

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2354
SELECT MIN( 58 )
----
58

skipif mysql # not compatible
query I rowsort label-2354
SELECT MIN ( 58 )
----
58

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2356
SELECT ALL SUM( DISTINCT 54 ) * - 54
----
-2916

skipif mysql # not compatible
query I rowsort label-2356
SELECT ALL SUM ( DISTINCT 54 ) * - 54
----
-2916

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2357
SELECT + 70 * - CAST( 63 AS SIGNED )
----
-4410

skipif mysql # not compatible
query I rowsort label-2357
SELECT + 70 * - CAST ( 63 AS INTEGER )
----
-4410

query I rowsort
SELECT + 57 + - 46
----
11

query I rowsort
SELECT + 34 + COALESCE ( 58, 10 * - 69 ) * NULLIF ( NULLIF ( + 45, 14 / + 25 ) - 11, 38 / 15 )
----
2006

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2360
SELECT ALL ( + COUNT( DISTINCT + 59 ) ) DIV + 47 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2360
SELECT ALL ( + COUNT ( DISTINCT + 59 ) ) / + 47 AS col1
----
0

query I rowsort
SELECT + 27 + - NULLIF ( + 35, + 74 + + 19 * 57 )
----
-8

query I rowsort
SELECT ALL + 92 + 66 col1
----
158

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2365
SELECT + 80 + - MAX( DISTINCT + 16 ) col1
----
64

skipif mysql # not compatible
query I rowsort label-2365
SELECT + 80 + - MAX ( DISTINCT + 16 ) col1
----
64

query I rowsort
SELECT ALL - 19 * 26
----
-494

query I rowsort
SELECT DISTINCT 3 + 15
----
18

query I rowsort
SELECT ALL 38 + ( - 12 + 53 )
----
79

query I rowsort
SELECT + 44 * + 53 col1
----
2332

onlyif mysql # aggregate syntax: 
query I rowsort label-2370
SELECT - MIN( ALL 27 ) + - 21
----
-48

skipif mysql # not compatible
query I rowsort label-2370
SELECT - MIN ( ALL 27 ) + - 21
----
-48

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

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

query I rowsort
SELECT ALL 81 / + 74 + CASE - 53 + - 0 WHEN 46 THEN - 66 WHEN 97 THEN NULL ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT - 75 * 21 + 32 AS col2
----
-1543

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2374
SELECT + 99 DIV COUNT( * ) + 33 AS col1
----
132

skipif mysql # not compatible
query I rowsort label-2374
SELECT + 99 / COUNT ( * ) + 33 AS col1
----
132

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2375
SELECT ALL - COUNT( * ) + NULLIF ( - 2, - 24 ) DIV - 36
----
-1

skipif mysql # not compatible
query I rowsort label-2375
SELECT ALL - COUNT ( * ) + NULLIF ( - 2, - 24 ) / - 36
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2376
SELECT DISTINCT + COUNT( 38 ) * - 98
----
-98

skipif mysql # not compatible
query I rowsort label-2376
SELECT DISTINCT + COUNT ( 38 ) * - 98
----
-98

query I rowsort
SELECT + 12 * 61 + 38
----
770

query I rowsort
SELECT ALL + - 86 * + 40 AS col1
----
-3440

onlyif mysql # aggregate syntax: 
query I rowsort label-2379
SELECT MAX( 81 ) * - 34
----
-2754

skipif mysql # not compatible
query I rowsort label-2379
SELECT MAX ( 81 ) * - 34
----
-2754

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2380
SELECT COUNT( * ) DIV - 99 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2380
SELECT COUNT ( * ) / - 99 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2381
SELECT - + 4 DIV - 69 + 84 AS col0
----
84

skipif mysql # not compatible
query I rowsort label-2381
SELECT - + 4 / - 69 + 84 AS col0
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2382
SELECT 42 * + CAST( - NULLIF ( + NULLIF ( COUNT( * ), 72 ), 94 + 62 ) AS SIGNED ) col1
----
-42

skipif mysql # not compatible
query I rowsort label-2382
SELECT 42 * + CAST ( - NULLIF ( + NULLIF ( COUNT ( * ), 72 ), 94 + 62 ) AS INTEGER ) col1
----
-42

query I rowsort
SELECT 19 + - 36
----
-17

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

query I rowsort
SELECT ALL - - 15 * 46
----
690

onlyif mysql # aggregate syntax: 
query I rowsort label-2386
SELECT + 68 * - SUM( ( + 39 ) * - 82 + - 21 ) AS col2
----
218892

skipif mysql # not compatible
query I rowsort label-2386
SELECT + 68 * - SUM ( ( + 39 ) * - 82 + - 21 ) AS col2
----
218892

query I rowsort
SELECT 90 * 67
----
6030

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

skipif mysql # not compatible
query I rowsort label-2388
SELECT + 77 + + 53 / CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 38 * 60 AS col0
----
-2280

onlyif mysql # DIV for integer division: 
query I rowsort label-2390
SELECT + 35 DIV 20
----
1

skipif mysql # not compatible
query I rowsort label-2390
SELECT + 35 / 20
----
1

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

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

query I rowsort
SELECT DISTINCT 39 * ( - 84 ) AS col2
----
-3276

query I rowsort
SELECT ALL 98 + - + 70 + NULLIF ( 97, - 64 ) AS col2
----
125

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

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

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

query I rowsort
SELECT CASE 71 WHEN 64 * 16 THEN NULL ELSE 83 + 7 END * - 14
----
-1260

query I rowsort
SELECT ALL 92 + - 91 * 96 AS col0
----
-8644

onlyif mysql # aggregate syntax: 
query I rowsort label-2398
SELECT DISTINCT 3 * 88 * COUNT( * ) AS col2
----
264

skipif mysql # not compatible
query I rowsort label-2398
SELECT DISTINCT 3 * 88 * COUNT ( * ) AS col2
----
264

query I rowsort
SELECT ALL 62 + + + 71 * + 8
----
630

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

skipif mysql # not compatible
query I rowsort label-2400
SELECT DISTINCT COUNT ( * ) / - - 8
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2401
SELECT NULLIF ( - 72, 65 ) DIV - 14
----
5

skipif mysql # not compatible
query I rowsort label-2401
SELECT NULLIF ( - 72, 65 ) / - 14
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2402
SELECT CAST( 81 AS SIGNED ) * 48 AS col1
----
3888

skipif mysql # not compatible
query I rowsort label-2402
SELECT CAST ( 81 AS INTEGER ) * 48 AS col1
----
3888

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2403
SELECT DISTINCT SUM( DISTINCT - 65 ) DIV 47
----
-1

skipif mysql # not compatible
query I rowsort label-2403
SELECT DISTINCT SUM ( DISTINCT - 65 ) / 47
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2404
SELECT 75 DIV - 39 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2404
SELECT 75 / - 39 AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2405
SELECT ALL 96 - + + CAST( 29 AS SIGNED ) + 46
----
113

skipif mysql # not compatible
query I rowsort label-2405
SELECT ALL 96 - + + CAST ( 29 AS INTEGER ) + 46
----
113

query I rowsort
SELECT DISTINCT + 71 * + 85 AS col0
----
6035

query I rowsort
SELECT ALL 48 * + + 45 AS col1
----
2160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2408
SELECT CAST( + NULLIF ( + ( + 22 ), + 21 / - 73 + 69 ) AS SIGNED ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2408
SELECT CAST ( + NULLIF ( + ( + 22 ), + 21 / - 73 + 69 ) AS INTEGER ) * CAST ( NULL AS INTEGER )
----
NULL

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

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

query I rowsort
SELECT 57 * - 77 * - 5 AS col2
----
21945

query I rowsort
SELECT - 59 * + 76 + 54 AS col2
----
-4430

onlyif mysql # aggregate syntax: 
query I rowsort label-2412
SELECT - 83 * - ( MAX( ALL + 83 ) ) * 31 + + COUNT( * ) * + 4 + - 15 AS col2
----
213548

skipif mysql # not compatible
query I rowsort label-2412
SELECT - 83 * - ( MAX ( ALL + 83 ) ) * 31 + + COUNT ( * ) * + 4 + - 15 AS col2
----
213548

onlyif mysql # aggregate syntax: 
query I rowsort label-2413
SELECT + COUNT( * ) * + 12 * - 80 AS col1
----
-960

skipif mysql # not compatible
query I rowsort label-2413
SELECT + COUNT ( * ) * + 12 * - 80 AS col1
----
-960

onlyif mysql # aggregate syntax: 
query I rowsort label-2414
SELECT DISTINCT + + COUNT( * ) * - 80 * 3 + + 4 AS col2
----
-236

skipif mysql # not compatible
query I rowsort label-2414
SELECT DISTINCT + + COUNT ( * ) * - 80 * 3 + + 4 AS col2
----
-236

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2416
SELECT DISTINCT + 33 DIV - 92 + + NULLIF ( + 32, + 97 ) * + 24
----
768

skipif mysql # not compatible
query I rowsort label-2416
SELECT DISTINCT + 33 / - 92 + + NULLIF ( + 32, + 97 ) * + 24
----
768

query I rowsort
SELECT - 62 * - 35 AS col0
----
2170

query I rowsort
SELECT DISTINCT - - 49 * - 17
----
-833

query I rowsort
SELECT 5 * 6
----
30

query I rowsort
SELECT DISTINCT + - 37 * + 31 + - 67 col1
----
-1214

onlyif mysql # aggregate syntax: 
query I rowsort label-2421
SELECT DISTINCT - 40 + COUNT( * ) * + 25 AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-2421
SELECT DISTINCT - 40 + COUNT ( * ) * + 25 AS col1
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-2422
SELECT 50 * NULLIF ( 30, ( - COUNT( * ) ) - - 74 * 61 ) AS col2
----
1500

skipif mysql # not compatible
query I rowsort label-2422
SELECT 50 * NULLIF ( 30, ( - COUNT ( * ) ) - - 74 * 61 ) AS col2
----
1500

onlyif mysql # aggregate syntax: 
query I rowsort label-2423
SELECT DISTINCT CASE + + NULLIF ( - MIN( ALL 49 ), 84 * - 86 ) WHEN - COUNT( * ) * 85 THEN - 36 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2423
SELECT DISTINCT CASE + + NULLIF ( - MIN ( ALL 49 ), 84 * - 86 ) WHEN - COUNT ( * ) * 85 THEN - 36 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2424
SELECT DISTINCT + 47 + + CAST( 88 AS SIGNED ) col0
----
135

skipif mysql # not compatible
query I rowsort label-2424
SELECT DISTINCT + 47 + + CAST ( 88 AS INTEGER ) col0
----
135

query I rowsort
SELECT ALL 92 + + 12 - + 95 * 34
----
-3126

onlyif mysql # aggregate syntax: 
query I rowsort label-2426
SELECT ALL + 29 + 63 + - 61 * - COUNT( 47 ) AS col1
----
153

skipif mysql # not compatible
query I rowsort label-2426
SELECT ALL + 29 + 63 + - 61 * - COUNT ( 47 ) AS col1
----
153

query I rowsort
SELECT DISTINCT - 74 + - 30 * - 15 AS col0
----
376

query II rowsort
SELECT 58, - 44 + COALESCE ( - ( - 13 ), 8 + 69 * 69 ) AS col2
----
58
-31

query I rowsort
SELECT ALL - 56 + + 5
----
-51

query I rowsort
SELECT ( - 19 ) * - + 75 AS col2
----
1425

onlyif mysql # aggregate syntax: 
query I rowsort label-2431
SELECT MAX( ALL 40 ) * + COUNT( * ) * 77 AS col1
----
3080

skipif mysql # not compatible
query I rowsort label-2431
SELECT MAX ( ALL 40 ) * + COUNT ( * ) * 77 AS col1
----
3080

query II rowsort
SELECT 39, + 32 * + 15 AS col2
----
39
480

query I rowsort
SELECT ALL 8 - + 39 AS col2
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-2434
SELECT - COUNT( * ) + + 21 - - ( 72 ) + + COUNT( * ) * 27
----
119

skipif mysql # not compatible
query I rowsort label-2434
SELECT - COUNT ( * ) + + 21 - - ( 72 ) + + COUNT ( * ) * 27
----
119

query I rowsort
SELECT ALL 2 * + + 95 AS col1
----
190

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

skipif mysql # not compatible
query I rowsort label-2436
SELECT + 8 * 25 * + COUNT ( * ) AS col2
----
200

query I rowsort
SELECT DISTINCT - 84 * 94 * + 82
----
-647472

query I rowsort
SELECT DISTINCT 59 col0
----
59

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

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

query I rowsort
SELECT + 37 + + ( - + 30 ) AS col2
----
7

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

skipif mysql # not compatible
query I rowsort label-2441
SELECT + 74 / - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2442
SELECT ALL + 56 DIV 96 + - 23 * COALESCE ( + 2, 88 DIV + CASE 3 WHEN + ( 90 ) THEN 45 WHEN - 97 * COUNT( * ) THEN NULL END ) AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-2442
SELECT ALL + 56 / 96 + - 23 * COALESCE ( + 2, 88 / + CASE 3 WHEN + ( 90 ) THEN 45 WHEN - 97 * COUNT ( * ) THEN NULL END ) AS col2
----
-46

query II rowsort
SELECT ALL + - 18 AS col0, - 61 AS col1
----
-18
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-2444
SELECT CASE - NULLIF ( 22, + 28 * + COUNT( ALL + 66 ) ) WHEN COUNT( * ) THEN CASE ( 75 ) WHEN 80 THEN 67 / - ( + MIN( DISTINCT + 90 ) * + 33 ) + 23 END * AVG ( + 79 ) WHEN + 75 THEN 74 WHEN COUNT( DISTINCT 53 ) THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2444
SELECT CASE - NULLIF ( 22, + 28 * + COUNT ( ALL + 66 ) ) WHEN COUNT ( * ) THEN CASE ( 75 ) WHEN 80 THEN 67 / - ( + MIN ( DISTINCT + 90 ) * + 33 ) + 23 END * AVG ( + 79 ) WHEN + 75 THEN 74 WHEN COUNT ( DISTINCT 53 ) THEN NULL ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT ALL + 32 * 44 + + - 21 col0
----
1387

query I rowsort
SELECT + NULLIF ( + 97, - 42 ) * - CASE - 98 WHEN 2 * - 30 THEN NULL WHEN + 77 / 66 + 60 THEN 29 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2447
SELECT ALL + 66 * + + NULLIF ( - + 21, + CAST( NULL AS SIGNED ) * + NULLIF ( 98, + 41 ) ) + - CAST( - 97 AS SIGNED )
----
-1289

skipif mysql # not compatible
query I rowsort label-2447
SELECT ALL + 66 * + + NULLIF ( - + 21, + CAST ( NULL AS INTEGER ) * + NULLIF ( 98, + 41 ) ) + - CAST ( - 97 AS INTEGER )
----
-1289

query I rowsort
SELECT DISTINCT + 4 * + 62 * - + 84
----
-20832

onlyif mysql # DIV for integer division: 
query I rowsort label-2449
SELECT 40 DIV 82 + + + 92 + 72 AS col0
----
164

skipif mysql # not compatible
query I rowsort label-2449
SELECT 40 / 82 + + + 92 + 72 AS col0
----
164

query I rowsort
SELECT ALL 20 * - - 87 AS col2
----
1740

onlyif mysql # aggregate syntax: 
query I rowsort label-2451
SELECT + CASE - 65 WHEN - COALESCE ( + AVG ( ALL - 60 ), 61 * 91 ) * - COALESCE ( 86 + + 66, 21 - COUNT( * ) ) THEN NULL ELSE 83 END * - CASE NULLIF ( + 93, - AVG ( - 32 ) ) WHEN COALESCE ( 49, 45 + - 13 * + 49 ) + 82 THEN NULL WHEN 96 THEN + NULLIF ( + 27, - 67 + COUNT( DISTINCT + 51 ) ) WHEN COALESCE ( 19, + COUNT( * ) * - 15 ) * 72 + 16 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2451
SELECT + CASE - 65 WHEN - COALESCE ( + AVG ( ALL - 60 ), 61 * 91 ) * - COALESCE ( 86 + + 66, 21 - COUNT ( * ) ) THEN NULL ELSE 83 END * - CASE NULLIF ( + 93, - AVG ( - 32 ) ) WHEN COALESCE ( 49, 45 + - 13 * + 49 ) + 82 THEN NULL WHEN 96 THEN + NULLIF ( + 27, - 67 + COUNT ( DISTINCT + 51 ) ) WHEN COALESCE ( 19, + COUNT ( * ) * - 15 ) * 72 + 16 THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2452
SELECT - + 60 * 50 + - COUNT( * ) AS col0
----
-3001

skipif mysql # not compatible
query I rowsort label-2452
SELECT - + 60 * 50 + - COUNT ( * ) AS col0
----
-3001

onlyif mysql # aggregate syntax: 
query I rowsort label-2453
SELECT - 64 + + MIN( ALL - 11 ) AS col0
----
-75

skipif mysql # not compatible
query I rowsort label-2453
SELECT - 64 + + MIN ( ALL - 11 ) AS col0
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-2454
SELECT - COALESCE ( - 12, + MAX( - 16 ) DIV + CASE SUM( ALL - 36 ) * ( + 43 ) + - ( 46 ) DIV 55 WHEN 29 - CAST( CAST( + 59 AS SIGNED ) AS DECIMAL ) * CASE + COUNT( * ) + - 91 * 90 WHEN - 54 THEN 68 WHEN + 61 THEN NULL WHEN - 85 THEN ( - 3 ) - 35 ELSE NULL END THEN NULL WHEN 59 - + 97 THEN + COALESCE ( - CAST( - NULLIF ( + 9, 58 + - 29 * 11 ) AS SIGNED ), CASE WHEN 43 IS NOT NULL THEN 32 + + 19 WHEN ( + 64 + + 42 ) NOT IN ( 54 + 59 * CAST( NULL AS SIGNED ) ) THEN + 35 END + + ( 51 ), - CAST( NULL AS SIGNED ) ) ELSE NULL END + - 49 )
----
12

skipif mysql # not compatible
query I rowsort label-2454
SELECT - COALESCE ( - 12, + MAX ( - 16 ) / + CASE SUM ( ALL - 36 ) * ( + 43 ) + - ( 46 ) / 55 WHEN 29 - CAST ( CAST ( + 59 AS INTEGER ) AS REAL ) * CASE + COUNT ( * ) + - 91 * 90 WHEN - 54 THEN 68 WHEN + 61 THEN NULL WHEN - 85 THEN ( - 3 ) - 35 ELSE NULL END THEN NULL WHEN 59 - + 97 THEN + COALESCE ( - CAST ( - NULLIF ( + 9, 58 + - 29 * 11 ) AS INTEGER ), CASE WHEN 43 IS NOT NULL THEN 32 + + 19 WHEN ( + 64 + + 42 ) NOT IN ( 54 + 59 * CAST ( NULL AS INTEGER ) ) THEN + 35 END + + ( 51 ), - CAST ( NULL AS INTEGER ) ) ELSE NULL END + - 49 )
----
12

query I rowsort
SELECT + + 74 + - 98 - 13
----
-37

query I rowsort
SELECT ALL + 10 * + - 15
----
-150

query I rowsort
SELECT 99 * + NULLIF ( + + 50, - 7 ) * + 84 + 70
----
415870

query I rowsort
SELECT DISTINCT + 51 * 55 + + 0 AS col2
----
2805

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2459
SELECT ALL + 71 * - + 82 + 4 * - - COALESCE ( - 75, - 76, + 65 ) * CASE 32 * COALESCE ( - COUNT( * ), 52 + MIN( DISTINCT + 1 ), 58 ) WHEN - 58 THEN NULL ELSE - 77 END + - 17 DIV - 91 AS col1
----
17278

skipif mysql # not compatible
query I rowsort label-2459
SELECT ALL + 71 * - + 82 + 4 * - - COALESCE ( - 75, - 76, + 65 ) * CASE 32 * COALESCE ( - COUNT ( * ), 52 + MIN ( DISTINCT + 1 ), 58 ) WHEN - 58 THEN NULL ELSE - 77 END + - 17 / - 91 AS col1
----
17278

onlyif mysql # aggregate syntax: 
query I rowsort label-2460
SELECT ALL - 69 * + 90 * + + MIN( DISTINCT + 66 ) AS col0
----
-409860

skipif mysql # not compatible
query I rowsort label-2460
SELECT ALL - 69 * + 90 * + + MIN ( DISTINCT + 66 ) AS col0
----
-409860

onlyif mysql # aggregate syntax: 
query I rowsort label-2461
SELECT DISTINCT + ( + SUM( 62 ) ) AS col0
----
62

skipif mysql # not compatible
query I rowsort label-2461
SELECT DISTINCT + ( + SUM ( 62 ) ) AS col0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-2462
SELECT ALL COUNT( * ) * 94 + - + 94 * - 77 AS col0
----
7332

skipif mysql # not compatible
query I rowsort label-2462
SELECT ALL COUNT ( * ) * 94 + - + 94 * - 77 AS col0
----
7332

onlyif mysql # aggregate syntax: 
query II rowsort label-2463
SELECT - 74 + - 83, - MAX( DISTINCT + 58 ) AS col2
----
-157
-58

skipif mysql # not compatible
query II rowsort label-2463
SELECT - 74 + - 83, - MAX ( DISTINCT + 58 ) AS col2
----
-157
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-2464
SELECT DISTINCT - 88 DIV + ( 41 )
----
-2

skipif mysql # not compatible
query I rowsort label-2464
SELECT DISTINCT - 88 / + ( 41 )
----
-2

query I rowsort
SELECT - ( + 50 ) + 13 * - ( - 91 ) + + 65
----
1198

query I rowsort
SELECT ALL - 70 * 87 * + - 2 AS col1
----
12180

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

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

query I rowsort
SELECT - 3 + + 41 AS col1
----
38

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

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

query I rowsort
SELECT - ( 79 ) * - 40
----
3160

query I rowsort
SELECT ALL - 70 * - - 93
----
-6510

onlyif mysql # aggregate syntax: 
query I rowsort label-2472
SELECT - 85 * + 49 * SUM( ALL - - 28 )
----
-116620

skipif mysql # not compatible
query I rowsort label-2472
SELECT - 85 * + 49 * SUM ( ALL - - 28 )
----
-116620

query II rowsort
SELECT DISTINCT ( - 51 ) AS col2, + 73 AS col0
----
-51
73

query I rowsort
SELECT + + 32 * - 82 AS col2
----
-2624

query I rowsort
SELECT ALL + 27 * 46 * - 40 * - 96 + 92 AS col1
----
4769372

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

skipif mysql # not compatible
query I rowsort label-2476
SELECT - + COUNT ( * ) - 44 AS col0
----
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-2477
SELECT DISTINCT + + 70 + - 39 DIV 91 * + - 40 + 65
----
135

skipif mysql # not compatible
query I rowsort label-2477
SELECT DISTINCT + + 70 + - 39 / 91 * + - 40 + 65
----
135

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2478
SELECT ALL + + 28 DIV - COALESCE ( MIN( - 25 ), + COUNT( * ) + COUNT( * ) * 27 ) + + 77 * 36 AS col1
----
2773

skipif mysql # not compatible
query I rowsort label-2478
SELECT ALL + + 28 / - COALESCE ( MIN ( - 25 ), + COUNT ( * ) + COUNT ( * ) * 27 ) + + 77 * 36 AS col1
----
2773

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2479
SELECT DISTINCT - COUNT( * ) DIV + ( 94 ) * + 11 * + 20 + 71 * + ( 96 * + COUNT( * ) ) AS col2
----
6816

skipif mysql # not compatible
query I rowsort label-2479
SELECT DISTINCT - COUNT ( * ) / + ( 94 ) * + 11 * + 20 + 71 * + ( 96 * + COUNT ( * ) ) AS col2
----
6816

query I rowsort
SELECT - + 76 * 62 + - 96
----
-4808

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2481
SELECT - 24 / - 18 * + 14 + - MIN( DISTINCT - CAST( NULL AS SIGNED ) ) + + 24 * ( 67 * COUNT( * ) + - 67 * - 92 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2481
SELECT - 24 / - 18 * + 14 + - MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) + + 24 * ( 67 * COUNT ( * ) + - 67 * - 92 ) col1
----
NULL

query I rowsort
SELECT + 35 * 13
----
455

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2483
SELECT COUNT( + - 25 ) * + - CAST( NULL AS SIGNED ) * - ( 55 ) + - 8 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2483
SELECT COUNT ( + - 25 ) * + - CAST ( NULL AS INTEGER ) * - ( 55 ) + - 8 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2484
SELECT DISTINCT - ( - + 33 ) DIV + + ( SUM( 47 ) ) - - 98 + COUNT( * ) AS col0
----
99

skipif mysql # not compatible
query I rowsort label-2484
SELECT DISTINCT - ( - + 33 ) / + + ( SUM ( 47 ) ) - - 98 + COUNT ( * ) AS col0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2485
SELECT + CASE COUNT( * ) WHEN + SUM( ALL 56 ) THEN 64 + 95 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2485
SELECT + CASE COUNT ( * ) WHEN + SUM ( ALL 56 ) THEN 64 + 95 END col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2486
SELECT ALL - 40 / COUNT( * ) + CASE + 67 WHEN - 6 THEN NULL WHEN - 92 THEN NULL WHEN COUNT( 92 ) THEN - CAST( NULL AS SIGNED ) END + - 95
----
NULL

skipif mysql # not compatible
query I rowsort label-2486
SELECT ALL - 40 / COUNT ( * ) + CASE + 67 WHEN - 6 THEN NULL WHEN - 92 THEN NULL WHEN COUNT ( 92 ) THEN - CAST ( NULL AS INTEGER ) END + - 95
----
NULL

query I rowsort
SELECT + - 45 + + - 34 + - - ( - 29 ) AS col0
----
-108

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2490
SELECT + 36 * + 4 + 54 DIV COUNT( * ) * + 50 + + 42 AS col0
----
2886

skipif mysql # not compatible
query I rowsort label-2490
SELECT + 36 * + 4 + 54 / COUNT ( * ) * + 50 + + 42 AS col0
----
2886

query I rowsort
SELECT ALL 54 * - - 28 + + 67
----
1579

onlyif mysql # DIV for integer division: 
query I rowsort label-2492
SELECT ALL COALESCE ( 77, - 62 + + 16 DIV + 71 ) * + 70 + 26
----
5416

skipif mysql # not compatible
query I rowsort label-2492
SELECT ALL COALESCE ( 77, - 62 + + 16 / + 71 ) * + 70 + 26
----
5416

query I rowsort
SELECT ALL 39 * - 48
----
-1872

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

query I rowsort
SELECT - ( - + ( + - 58 ) ) + + 2 AS col1
----
-56

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

query II rowsort
SELECT 86 col2, - 97 + + - 74 AS col0
----
86
-171

onlyif mysql # aggregate syntax: 
query I rowsort label-2498
SELECT ALL - COUNT( * ) / NULLIF ( - CASE + - 53 WHEN - - 46 * 56 THEN NULL WHEN CASE - 29 WHEN 51 THEN - 8 + COUNT( * ) / + 61 END THEN - COUNT( * ) ELSE NULL END, - 28 - - 63 / + COUNT( 73 * 79 ) ) / 82 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2498
SELECT ALL - COUNT ( * ) / NULLIF ( - CASE + - 53 WHEN - - 46 * 56 THEN NULL WHEN CASE - 29 WHEN 51 THEN - 8 + COUNT ( * ) / + 61 END THEN - COUNT ( * ) ELSE NULL END, - 28 - - 63 / + COUNT ( 73 * 79 ) ) / 82 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2499
SELECT DISTINCT 91 AS col2, COUNT( * ) - ( - 74 ) * - + 71 + + 78 AS col0
----
91
-5175

skipif mysql # not compatible
query II rowsort label-2499
SELECT DISTINCT 91 AS col2, COUNT ( * ) - ( - 74 ) * - + 71 + + 78 AS col0
----
91
-5175

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

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

query I rowsort
SELECT DISTINCT - ( - + 9 ) * 74 * + 35
----
23310

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2502
SELECT CAST( - 5 AS SIGNED ) + + + 85
----
80

skipif mysql # not compatible
query I rowsort label-2502
SELECT CAST ( - 5 AS INTEGER ) + + + 85
----
80

onlyif mysql # DIV for integer division: 
query I rowsort label-2503
SELECT ALL + 39 DIV - 2 AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-2503
SELECT ALL + 39 / - 2 AS col0
----
-19

query I rowsort
SELECT 19 - - + 57
----
76

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

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

query I rowsort
SELECT 35 * 9
----
315

query I rowsort
SELECT 38 * - + ( COALESCE ( + 35, - - 40 ) )
----
-1330

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

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

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

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

query I rowsort
SELECT + 78 * - - 96 * + - 45 col2
----
-336960

onlyif mysql # aggregate syntax: 
query I rowsort label-2511
SELECT 1 + - COUNT( * ) + COALESCE ( + 58, + 93 * COUNT( * ) ) AS col0
----
58

skipif mysql # not compatible
query I rowsort label-2511
SELECT 1 + - COUNT ( * ) + COALESCE ( + 58, + 93 * COUNT ( * ) ) AS col0
----
58

query I rowsort
SELECT + 5 + - + 83 + 43
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-2513
SELECT CASE 23 WHEN COUNT( * ) * - - 4 * + 58 + COUNT( * ) * COUNT( * ) + + MAX( - 28 ) THEN 59 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2513
SELECT CASE 23 WHEN COUNT ( * ) * - - 4 * + 58 + COUNT ( * ) * COUNT ( * ) + + MAX ( - 28 ) THEN 59 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2514
SELECT - 98 AS col1, + 31 + + - COUNT( * ) AS col1
----
-98
30

skipif mysql # not compatible
query II rowsort label-2514
SELECT - 98 AS col1, + 31 + + - COUNT ( * ) AS col1
----
-98
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2515
SELECT ALL - 55 + - COUNT( * ) DIV - MAX( DISTINCT + 31 ) col0
----
-55

skipif mysql # not compatible
query I rowsort label-2515
SELECT ALL - 55 + - COUNT ( * ) / - MAX ( DISTINCT + 31 ) col0
----
-55

query I rowsort
SELECT DISTINCT - + 30 * + 43
----
-1290

onlyif mysql # aggregate syntax: 
query II rowsort label-2517
SELECT + COUNT( * ), 13 + - - 73 AS col0
----
1
86

skipif mysql # not compatible
query II rowsort label-2517
SELECT + COUNT ( * ), 13 + - - 73 AS col0
----
1
86

onlyif mysql # aggregate syntax: 
query I rowsort label-2518
SELECT DISTINCT + CASE + + COALESCE ( + 95, 22 * - + 40 + + 40, + 35 * + 1 ) WHEN COUNT( * ) + 0 * 5 THEN + ( + 47 ) * - 25 ELSE NULL END * - 17 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2518
SELECT DISTINCT + CASE + + COALESCE ( + 95, 22 * - + 40 + + 40, + 35 * + 1 ) WHEN COUNT ( * ) + 0 * 5 THEN + ( + 47 ) * - 25 ELSE NULL END * - 17 col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2519
SELECT 97 * - ( - + 57 ) + 10 + 24 + - 93 DIV 26 AS col0
----
5560

skipif mysql # not compatible
query I rowsort label-2519
SELECT 97 * - ( - + 57 ) + 10 + 24 + - 93 / 26 AS col0
----
5560

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

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

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

skipif mysql # not compatible
query I rowsort label-2521
SELECT - SUM ( ALL - 52 )
----
52

query I rowsort
SELECT + 71 * + + 0 + - 15 + + 37 - - + 1
----
23

onlyif mysql # DIV for integer division: 
query II rowsort label-2523
SELECT + 19 AS col0, + 40 DIV - + 84 + + 18 * 32 AS col0
----
19
576

skipif mysql # not compatible
query II rowsort label-2523
SELECT + 19 AS col0, + 40 / - + 84 + + 18 * 32 AS col0
----
19
576

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2525
SELECT ( + + SUM( + - 30 ) ) * + - ( - COUNT( * ) ) AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-2525
SELECT ( + + SUM ( + - 30 ) ) * + - ( - COUNT ( * ) ) AS col0
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-2526
SELECT 78 * - - ( - COALESCE ( - COALESCE ( - CAST( - 11 AS SIGNED ), + 44 ), 33 DIV + 64 - NULLIF ( - 67, COUNT( - CAST( + 18 AS DECIMAL ) ) ) ) )
----
858

skipif mysql # not compatible
query I rowsort label-2526
SELECT 78 * - - ( - COALESCE ( - COALESCE ( - CAST ( - 11 AS INTEGER ), + 44 ), 33 / + 64 - NULLIF ( - 67, COUNT ( - CAST ( + 18 AS REAL ) ) ) ) )
----
858

onlyif mysql # aggregate syntax: 
query II rowsort label-2527
SELECT ALL - 49 AS col2, + MAX( ALL + - 85 ) + - 74 - + COUNT( * ) * 76 AS col0
----
-49
-235

skipif mysql # not compatible
query II rowsort label-2527
SELECT ALL - 49 AS col2, + MAX ( ALL + - 85 ) + - 74 - + COUNT ( * ) * 76 AS col0
----
-49
-235

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2528
SELECT CAST( NULL AS SIGNED ) * 0 + - 97 / + 21
----
NULL

skipif mysql # not compatible
query I rowsort label-2528
SELECT CAST ( NULL AS INTEGER ) * 0 + - 97 / + 21
----
NULL

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

skipif mysql # not compatible
query II rowsort label-2529
SELECT ALL - COUNT ( * ) col2, 16
----
-1
16

onlyif mysql # aggregate syntax: 
query I rowsort label-2530
SELECT ALL - SUM( DISTINCT - 29 ) AS col1
----
29

skipif mysql # not compatible
query I rowsort label-2530
SELECT ALL - SUM ( DISTINCT - 29 ) AS col1
----
29

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2532
SELECT COUNT( * ) + + 13 * - - 62
----
807

skipif mysql # not compatible
query I rowsort label-2532
SELECT COUNT ( * ) + + 13 * - - 62
----
807

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

query I rowsort
SELECT - 4 * 37 + 58 - - 80 * 85
----
6710

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

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

query I rowsort
SELECT 38 + 65 + + + 47
----
150

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2537
SELECT DISTINCT 49 + 28 * + - CAST( NULL AS DECIMAL ) * + 24 * - - 2 + CASE - 56 WHEN - 97 / 49 THEN 17 ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2537
SELECT DISTINCT 49 + 28 * + - CAST ( NULL AS REAL ) * + 24 * - - 2 + CASE - 56 WHEN - 97 / 49 THEN 17 ELSE NULL END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2538
SELECT ALL CASE + + 3 WHEN 38 THEN NULL WHEN + 48 - - SUM( DISTINCT + 25 ) + - 27 / ( 45 * + 35 ) THEN - 96 ELSE NULL END + 35 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2538
SELECT ALL CASE + + 3 WHEN 38 THEN NULL WHEN + 48 - - SUM ( DISTINCT + 25 ) + - 27 / ( 45 * + 35 ) THEN - 96 ELSE NULL END + 35 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2539
SELECT ALL MAX( ALL - 17 ) + + ( 14 ) AS col1, - CAST( NULL AS DECIMAL )
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-2539
SELECT ALL MAX ( ALL - 17 ) + + ( 14 ) AS col1, - CAST ( NULL AS REAL )
----
-3
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2540
SELECT - MAX( DISTINCT - 90 ) AS col2
----
90

skipif mysql # not compatible
query I rowsort label-2540
SELECT - MAX ( DISTINCT - 90 ) AS col2
----
90

query I rowsort
SELECT ALL - 19 + - 80 AS col1
----
-99

query II rowsort
SELECT - - 0 AS col0, 55 AS col2
----
0
55

query I rowsort
SELECT + 20 - + 32 AS col2
----
-12

query I rowsort
SELECT ( + 44 ) * - - 49
----
2156

onlyif mysql # aggregate syntax: 
query I rowsort label-2545
SELECT DISTINCT 68 + - + MAX( DISTINCT - + 81 ) AS col1
----
149

skipif mysql # not compatible
query I rowsort label-2545
SELECT DISTINCT 68 + - + MAX ( DISTINCT - + 81 ) AS col1
----
149

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

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

query I rowsort
SELECT 26 * + - 5 AS col2
----
-130

onlyif mysql # aggregate syntax: 
query I rowsort label-2548
SELECT ALL - COUNT( * ) - - 49 + - 22 * 2 * - 23 AS col2
----
1060

skipif mysql # not compatible
query I rowsort label-2548
SELECT ALL - COUNT ( * ) - - 49 + - 22 * 2 * - 23 AS col2
----
1060

query I rowsort
SELECT 49 * - 31
----
-1519

onlyif mysql # DIV for integer division: 
query I rowsort label-2550
SELECT ALL - 45 * 44 * 64 + - ( - 15 ) - - - 81 DIV 95 col1
----
-126705

skipif mysql # not compatible
query I rowsort label-2550
SELECT ALL - 45 * 44 * 64 + - ( - 15 ) - - - 81 / 95 col1
----
-126705

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2551
SELECT NULLIF ( + 74, + CAST( COUNT( - CAST( ( 48 ) AS SIGNED ) ) AS SIGNED ) + + 95 ) AS col1
----
74

skipif mysql # not compatible
query I rowsort label-2551
SELECT NULLIF ( + 74, + CAST ( COUNT ( - CAST ( ( 48 ) AS INTEGER ) ) AS INTEGER ) + + 95 ) AS col1
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2552
SELECT + - ( - 43 ) * - CAST( NULL AS SIGNED ) - + 78 + + + 38 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2552
SELECT + - ( - 43 ) * - CAST ( NULL AS INTEGER ) - + 78 + + + 38 AS col0
----
NULL

query I rowsort
SELECT ALL 14 * 91 - + 41 + 18 + - 49 AS col1
----
1202

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2556
SELECT ALL + 66 DIV - 27
----
-2

skipif mysql # not compatible
query I rowsort label-2556
SELECT ALL + 66 / - 27
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2557
SELECT ALL + 39 * - + 96 * MIN( - 40 )
----
149760

skipif mysql # not compatible
query I rowsort label-2557
SELECT ALL + 39 * - + 96 * MIN ( - 40 )
----
149760

query I rowsort
SELECT - ( + 21 ) + 78 + - - 48 AS col2
----
105

onlyif mysql # aggregate syntax: 
query II rowsort label-2559
SELECT ALL + MIN( ALL 24 ) AS col2, - 40 AS col1
----
24
-40

skipif mysql # not compatible
query II rowsort label-2559
SELECT ALL + MIN ( ALL 24 ) AS col2, - 40 AS col1
----
24
-40

query I rowsort
SELECT + 14 * + 3
----
42

query I rowsort
SELECT - 56 * - - 50 * 75 - - 36 + 10 * + 21 * 57
----
-197994

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2562
SELECT DISTINCT ( + 63 ) DIV + + COUNT( * ) + - COUNT( * ) col0
----
62

skipif mysql # not compatible
query I rowsort label-2562
SELECT DISTINCT ( + 63 ) / + + COUNT ( * ) + - COUNT ( * ) col0
----
62

query I rowsort
SELECT DISTINCT - 22 + + 92
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2564
SELECT ALL + 67 + + 35 + - 45 - 27 * + CASE - 61 WHEN + CAST( NULL AS SIGNED ) THEN NULL WHEN + 65 THEN NULL WHEN COUNT( 84 ) * 93 THEN 24 ELSE - 7 END col0
----
246

skipif mysql # not compatible
query I rowsort label-2564
SELECT ALL + 67 + + 35 + - 45 - 27 * + CASE - 61 WHEN + CAST ( NULL AS INTEGER ) THEN NULL WHEN + 65 THEN NULL WHEN COUNT ( 84 ) * 93 THEN 24 ELSE - 7 END col0
----
246

query I rowsort
SELECT ALL 72 + - 9 * + 16
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2566
SELECT ALL - COALESCE ( + - 51, + + 52, - CAST( NULL AS SIGNED ) * + CASE - 44 WHEN CAST( NULL AS SIGNED ) THEN + 40 - + COALESCE ( + MIN( - 13 ), COUNT( ALL + 39 ) * 75 ) WHEN + MIN( DISTINCT - 31 ) * 55 THEN COUNT( * ) * - 66 ELSE - MIN( + 34 ) END + - 22 ) + CAST( NULL AS SIGNED ) * 31 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2566
SELECT ALL - COALESCE ( + - 51, + + 52, - CAST ( NULL AS INTEGER ) * + CASE - 44 WHEN CAST ( NULL AS INTEGER ) THEN + 40 - + COALESCE ( + MIN ( - 13 ), COUNT ( ALL + 39 ) * 75 ) WHEN + MIN ( DISTINCT - 31 ) * 55 THEN COUNT ( * ) * - 66 ELSE - MIN ( + 34 ) END + - 22 ) + CAST ( NULL AS INTEGER ) * 31 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2567
SELECT DISTINCT ( - 73 ), 26 * + MAX( ALL + - CAST( NULL AS SIGNED ) ) - + 33 + ( 43 ) + + 81 * 30 col0
----
-73
NULL

skipif mysql # not compatible
query II rowsort label-2567
SELECT DISTINCT ( - 73 ), 26 * + MAX ( ALL + - CAST ( NULL AS INTEGER ) ) - + 33 + ( 43 ) + + 81 * 30 col0
----
-73
NULL

query I rowsort
SELECT + 54 * + - 44 col2
----
-2376

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2569
SELECT ALL ( - ( 98 ) ) + + CAST( COUNT( DISTINCT + 25 ) AS SIGNED ) - + 43 * + 98
----
-4311

skipif mysql # not compatible
query I rowsort label-2569
SELECT ALL ( - ( 98 ) ) + + CAST ( COUNT ( DISTINCT + 25 ) AS INTEGER ) - + 43 * + 98
----
-4311

onlyif mysql # aggregate syntax: 
query I rowsort label-2570
SELECT + 74 - - COUNT( * ) * + 18 AS col2
----
92

skipif mysql # not compatible
query I rowsort label-2570
SELECT + 74 - - COUNT ( * ) * + 18 AS col2
----
92

query I rowsort
SELECT - 18 + + 97 - - - 21
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2572
SELECT - CASE - + 47 WHEN + - COUNT( * ) THEN - + 9 * + + 37 + 21 + + + 9 WHEN - 1 + 54 THEN NULL ELSE + ( + 68 ) DIV - 94 END
----
0

skipif mysql # not compatible
query I rowsort label-2572
SELECT - CASE - + 47 WHEN + - COUNT ( * ) THEN - + 9 * + + 37 + 21 + + + 9 WHEN - 1 + 54 THEN NULL ELSE + ( + 68 ) / - 94 END
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2573
SELECT ALL COUNT( * ) * - ( - COUNT( ALL + + 91 ) ) * - - 88 col0, - ( + - COALESCE ( + 62, 64 + 87 ) ) AS col1
----
88
62

skipif mysql # not compatible
query II rowsort label-2573
SELECT ALL COUNT ( * ) * - ( - COUNT ( ALL + + 91 ) ) * - - 88 col0, - ( + - COALESCE ( + 62, 64 + 87 ) ) AS col1
----
88
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2574
SELECT DISTINCT ( + - 34 ) - + 72 + - COALESCE ( - 32, + COUNT( * ) * + + NULLIF ( + CAST( NULL AS SIGNED ), COALESCE ( 53, + 81, 34 + 79 ) ) + 29 DIV - 39, 14 * ( COUNT( * ) ) ) * + 7
----
118

skipif mysql # not compatible
query I rowsort label-2574
SELECT DISTINCT ( + - 34 ) - + 72 + - COALESCE ( - 32, + COUNT ( * ) * + + NULLIF ( + CAST ( NULL AS INTEGER ), COALESCE ( 53, + 81, 34 + 79 ) ) + 29 / - 39, 14 * ( COUNT ( * ) ) ) * + 7
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-2575
SELECT ALL + 52 - - ( + - 63 ) + + + ( + SUM( + + 59 ) ) AS col0
----
48

skipif mysql # not compatible
query I rowsort label-2575
SELECT ALL + 52 - - ( + - 63 ) + + + ( + SUM ( + + 59 ) ) AS col0
----
48

onlyif mysql # aggregate syntax: 
query II rowsort label-2576
SELECT DISTINCT MIN( 53 ) col1, 27 AS col0
----
53
27

skipif mysql # not compatible
query II rowsort label-2576
SELECT DISTINCT MIN ( 53 ) col1, 27 AS col0
----
53
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2577
SELECT + - 83 + - - 70 AS col0, SUM( DISTINCT - 7 ) * - CAST( NULL AS SIGNED )
----
-13
NULL

skipif mysql # not compatible
query II rowsort label-2577
SELECT + - 83 + - - 70 AS col0, SUM ( DISTINCT - 7 ) * - CAST ( NULL AS INTEGER )
----
-13
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2578
SELECT ALL + 72 - 6, + COUNT( * ) + 7 * 46 + + NULLIF ( + + 65, 63 ) col0
----
66
388

skipif mysql # not compatible
query II rowsort label-2578
SELECT ALL + 72 - 6, + COUNT ( * ) + 7 * 46 + + NULLIF ( + + 65, 63 ) col0
----
66
388

query II rowsort
SELECT + 90 * - - 91 col0, + 54
----
8190
54

query II rowsort
SELECT + 4 + - 74, 47 AS col1
----
-70
47

onlyif mysql # DIV for integer division: 
query II rowsort label-2581
SELECT - 17 + + 56, 8 DIV + - 23 * 81 AS col1
----
39
0

skipif mysql # not compatible
query II rowsort label-2581
SELECT - 17 + + 56, 8 / + - 23 * 81 AS col1
----
39
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2582
SELECT ALL CASE + COUNT( * ) WHEN - 28 THEN - 66 WHEN 73 THEN + 38 END * - 12 + - 34 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2582
SELECT ALL CASE + COUNT ( * ) WHEN - 28 THEN - 66 WHEN 73 THEN + 38 END * - 12 + - 34 AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2583
SELECT + 56 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2584
SELECT - + 0 * 11 + - + 79 DIV + + 14 AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-2584
SELECT - + 0 * 11 + - + 79 / + + 14 AS col1
----
-5

query I rowsort
SELECT - 31 + 32
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2587
SELECT ALL 80 * COUNT( * ) * + NULLIF ( + 74, + - 48 )
----
5920

skipif mysql # not compatible
query I rowsort label-2587
SELECT ALL 80 * COUNT ( * ) * + NULLIF ( + 74, + - 48 )
----
5920

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2588
SELECT CAST( 60 AS SIGNED ) DIV 28 + - 65 + + 0 * 65 * - - 23 * + ( + 58 ) DIV - SUM( 34 ) - + 85 * + COUNT( * )
----
-148

skipif mysql # not compatible
query I rowsort label-2588
SELECT CAST ( 60 AS INTEGER ) / 28 + - 65 + + 0 * 65 * - - 23 * + ( + 58 ) / - SUM ( 34 ) - + 85 * + COUNT ( * )
----
-148

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2590
SELECT ALL 57 * + 57 * - - 7 * - + MAX( - 23 ) AS col1
----
523089

skipif mysql # not compatible
query I rowsort label-2590
SELECT ALL 57 * + 57 * - - 7 * - + MAX ( - 23 ) AS col1
----
523089

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2592
SELECT MAX( - + 74 ) * + + ( + COUNT( * ) ) + - 86
----
-160

skipif mysql # not compatible
query I rowsort label-2592
SELECT MAX ( - + 74 ) * + + ( + COUNT ( * ) ) + - 86
----
-160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2593
SELECT - 52 * - 65 + + - 70 + - COALESCE ( + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ), - ( + + 65 ) ) AS col2
----
3375

skipif mysql # not compatible
query I rowsort label-2593
SELECT - 52 * - 65 + + - 70 + - COALESCE ( + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ), - ( + + 65 ) ) AS col2
----
3375

onlyif mysql # aggregate syntax: 
query I rowsort label-2594
SELECT ALL - 86 * - COUNT( ALL - - 9 ) + + MAX( ALL + 27 ) col1
----
113

skipif mysql # not compatible
query I rowsort label-2594
SELECT ALL - 86 * - COUNT ( ALL - - 9 ) + + MAX ( ALL + 27 ) col1
----
113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2595
SELECT ( COALESCE ( + 97, - + CAST( NULL AS SIGNED ) * SUM( DISTINCT + 60 ) ) ) AS col1
----
97

skipif mysql # not compatible
query I rowsort label-2595
SELECT ( COALESCE ( + 97, - + CAST ( NULL AS INTEGER ) * SUM ( DISTINCT + 60 ) ) ) AS col1
----
97

query I rowsort
SELECT - 26 + 12 + 75 + 72 * 71
----
5173

onlyif mysql # DIV for integer division: 
query II rowsort label-2597
SELECT ALL + 48 col0, 97 DIV + 25
----
48
3

skipif mysql # not compatible
query II rowsort label-2597
SELECT ALL + 48 col0, 97 / + 25
----
48
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2598
SELECT 8 * - - 24 + - - COUNT( * ) + + 72 + + 77 * + SUM( - + 10 ) * + COUNT( + 3 ) * 82
----
-62875

skipif mysql # not compatible
query I rowsort label-2598
SELECT 8 * - - 24 + - - COUNT ( * ) + + 72 + + 77 * + SUM ( - + 10 ) * + COUNT ( + 3 ) * 82
----
-62875

query I rowsort
SELECT ALL + 70 * 25 + ( 16 ) * - + 95 AS col1
----
230

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

skipif mysql # not compatible
query I rowsort label-2600
SELECT - 72 + COUNT ( * ) AS col2
----
-71

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

skipif mysql # not compatible
query I rowsort label-2601
SELECT + MAX ( 11 )
----
11

query I rowsort
SELECT ALL + CASE - - 18 WHEN + 89 THEN - + 18 * - - AVG ( + - 44 ) + ( + 85 ) WHEN 3 THEN + 28 * 91 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT - 7 * - 82 * + 3
----
1722

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2604
SELECT + - 22 + + - 39 * + CAST( - + 4 AS SIGNED ) + + + 21
----
155

skipif mysql # not compatible
query I rowsort label-2604
SELECT + - 22 + + - 39 * + CAST ( - + 4 AS INTEGER ) + + + 21
----
155

onlyif mysql # aggregate syntax: 
query I rowsort label-2605
SELECT ALL - 38 * - - COUNT( * ) + + 10
----
-28

skipif mysql # not compatible
query I rowsort label-2605
SELECT ALL - 38 * - - COUNT ( * ) + + 10
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2606
SELECT CAST( NULL AS SIGNED ), + 27 + - + 76 * 84 AS col0
----
NULL
-6357

skipif mysql # not compatible
query II rowsort label-2606
SELECT CAST ( NULL AS INTEGER ), + 27 + - + 76 * 84 AS col0
----
NULL
-6357

onlyif mysql # aggregate syntax: 
query I rowsort label-2607
SELECT ALL - CASE - + ( + + 30 ) WHEN + COUNT( 50 ) THEN - + 94 END / - 7 + - + 9 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2607
SELECT ALL - CASE - + ( + + 30 ) WHEN + COUNT ( 50 ) THEN - + 94 END / - 7 + - + 9 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2608
SELECT - + 62 DIV + - 22 + - 97 - - 6 * - MIN( 95 ) + + + COUNT( * ) * + + 34 * - 0
----
-665

skipif mysql # not compatible
query I rowsort label-2608
SELECT - + 62 / + - 22 + - 97 - - 6 * - MIN ( 95 ) + + + COUNT ( * ) * + + 34 * - 0
----
-665

query I rowsort
SELECT ALL - ( NULLIF ( - 79, + 47 ) )
----
79

query II rowsort
SELECT - - 55 col1, + 33
----
55
33

onlyif mysql # DIV for integer division: 
query I rowsort label-2611
SELECT DISTINCT - 23 DIV + ( + ( + - 8 ) ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-2611
SELECT DISTINCT - 23 / + ( + ( + - 8 ) ) AS col1
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2612
SELECT + COUNT( DISTINCT 74 ) DIV + 96 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2612
SELECT + COUNT ( DISTINCT 74 ) / + 96 AS col0
----
0

query II rowsort
SELECT ALL 17 AS col2, 91
----
17
91

query I rowsort
SELECT - 18 - - 24 AS col2
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-2615
SELECT - NULLIF ( - COUNT( * ), NULLIF ( + 32, 62 ) + - COUNT( * ) ) AS col1, 28 AS col1
----
1
28

skipif mysql # not compatible
query II rowsort label-2615
SELECT - NULLIF ( - COUNT ( * ), NULLIF ( + 32, 62 ) + - COUNT ( * ) ) AS col1, 28 AS col1
----
1
28

query I rowsort
SELECT DISTINCT - 38 * - - 84 AS col2
----
-3192

query I rowsort
SELECT DISTINCT - 21 * - 85
----
1785

query I rowsort
SELECT ALL 74 + 93 AS col2
----
167

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2619
SELECT DISTINCT 9 + + + CAST( NULL AS SIGNED ) + + - 69 + + 91, 67 * + - MIN( - 48 ) * - 10 AS col1
----
NULL
-32160

skipif mysql # not compatible
query II rowsort label-2619
SELECT DISTINCT 9 + + + CAST ( NULL AS INTEGER ) + + - 69 + + 91, 67 * + - MIN ( - 48 ) * - 10 AS col1
----
NULL
-32160

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2620
SELECT 84 DIV - 81 col0, + SUM( DISTINCT - 28 ) + + + 90 AS col1
----
-1
62

skipif mysql # not compatible
query II rowsort label-2620
SELECT 84 / - 81 col0, + SUM ( DISTINCT - 28 ) + + + 90 AS col1
----
-1
62

query I rowsort
SELECT 20 + - + 68 AS col2
----
-48

query I rowsort
SELECT DISTINCT 62 * - - 43 AS col2
----
2666

query II rowsort
SELECT ALL 97 + + 74 AS col2, 20
----
171
20

query I rowsort
SELECT DISTINCT 26 * + - 74 col2
----
-1924

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2625
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + NULLIF ( + 23, + 74 ), + 6 AS col1
----
NULL
6

skipif mysql # not compatible
query II rowsort label-2625
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + NULLIF ( + 23, + 74 ), + 6 AS col1
----
NULL
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2626
SELECT ALL SUM( - ( + 85 ) ) + - 91 + - + 49
----
-225

skipif mysql # not compatible
query I rowsort label-2626
SELECT ALL SUM ( - ( + 85 ) ) + - 91 + - + 49
----
-225

query I rowsort
SELECT 44 * 49
----
2156

query I rowsort
SELECT DISTINCT 54 + - 34
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-2629
SELECT DISTINCT - MIN( - - 46 ) col2
----
-46

skipif mysql # not compatible
query I rowsort label-2629
SELECT DISTINCT - MIN ( - - 46 ) col2
----
-46

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

query II rowsort
SELECT ALL 92 - + + 37 col1, 26 * - 79
----
55
-2054

query I rowsort
SELECT 24 + 63
----
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2633
SELECT ALL - - 21 - - 16 - + 42 DIV + + COUNT( * ) AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-2633
SELECT ALL - - 21 - - 16 - + 42 / + + COUNT ( * ) AS col1
----
-5

query II rowsort
SELECT DISTINCT - 77 * - 9, 62 col1
----
693
62

query I rowsort
SELECT - 63 * + - ( + 85 ) * + 84 AS col0
----
449820

onlyif mysql # aggregate syntax: 
query I rowsort label-2636
SELECT NULLIF ( 26, - 70 + - 33 ) + + 83 + + COUNT( * ) AS col1
----
110

skipif mysql # not compatible
query I rowsort label-2636
SELECT NULLIF ( 26, - 70 + - 33 ) + + 83 + + COUNT ( * ) AS col1
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-2637
SELECT - COUNT( * ) * + COUNT( * ) + ( 88 ) * 97 + + + 89 - + 69 AS col2
----
8555

skipif mysql # not compatible
query I rowsort label-2637
SELECT - COUNT ( * ) * + COUNT ( * ) + ( 88 ) * 97 + + + 89 - + 69 AS col2
----
8555

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

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

query II rowsort
SELECT 34 * 30 AS col0, - 88
----
1020
-88

query I rowsort
SELECT + 16 + 19 * 50
----
966

onlyif mysql # aggregate syntax: 
query I rowsort label-2641
SELECT COUNT( DISTINCT + 17 ) - 39
----
-38

skipif mysql # not compatible
query I rowsort label-2641
SELECT COUNT ( DISTINCT + 17 ) - 39
----
-38

query I rowsort
SELECT DISTINCT - CASE - + 25 WHEN 77 THEN + - 87 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2643
SELECT + CAST( NULL AS SIGNED ) * + - 4 * - NULLIF ( + 86, + 88 + + 90 * COUNT( DISTINCT + 68 ) - - 8 + NULLIF ( - 38, + ( MAX( ALL 34 ) ) * - 56 ) * - 5 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2643
SELECT + CAST ( NULL AS INTEGER ) * + - 4 * - NULLIF ( + 86, + 88 + + 90 * COUNT ( DISTINCT + 68 ) - - 8 + NULLIF ( - 38, + ( MAX ( ALL 34 ) ) * - 56 ) * - 5 ) AS col2
----
NULL

query II rowsort
SELECT - 39 + + 8 + 86 * - - 20 AS col2, 37 + - 82 AS col1
----
1689
-45

query I rowsort
SELECT ALL - 84 * - 2 AS col2
----
168

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2647
SELECT DISTINCT - 92 + - 11 - - 77 + 53 + ( - 87 ) * - ( - + COUNT( * ) ) * + COUNT( * ) + ( NULLIF ( - 37, - 69 - + 27 ) ) AS col1
----
-97

skipif mysql # not compatible
query I rowsort label-2647
SELECT DISTINCT - 92 + - 11 - - 77 + 53 + ( - 87 ) * - ( - + COUNT ( * ) ) * + COUNT ( * ) + ( NULLIF ( - 37, - 69 - + 27 ) ) AS col1
----
-97

query I rowsort
SELECT ALL + + 37 + + 71 + + 99 AS col0
----
207

query I rowsort
SELECT 75 + - - ( - 0 )
----
75

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

skipif mysql # not compatible
query I rowsort label-2650
SELECT DISTINCT - COUNT ( * ) + + + 43 AS col0
----
42

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2652
SELECT 84 + + - ( - ( - + SUM( DISTINCT - + 31 ) ) ) col1, 65 AS col2
----
115
65

skipif mysql # not compatible
query II rowsort label-2652
SELECT 84 + + - ( - ( - + SUM ( DISTINCT - + 31 ) ) ) col1, 65 AS col2
----
115
65

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

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

query I rowsort
SELECT ALL 21 + 78 + + 52
----
151

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2655
SELECT DISTINCT 51 * - - 0 + CAST( - 27 AS SIGNED ) AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-2655
SELECT DISTINCT 51 * - - 0 + CAST ( - 27 AS INTEGER ) AS col1
----
-27

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2658
SELECT ALL + 71 * - 49 + - 96 col1, COUNT( * ) + 22
----
-3575
23

skipif mysql # not compatible
query II rowsort label-2658
SELECT ALL + 71 * - 49 + - 96 col1, COUNT ( * ) + 22
----
-3575
23

query II rowsort
SELECT ALL - 64 AS col0, - 78
----
-64
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-2660
SELECT ALL - COUNT( * ) * + 15 - - + ( 44 ) + + 33
----
62

skipif mysql # not compatible
query I rowsort label-2660
SELECT ALL - COUNT ( * ) * + 15 - - + ( 44 ) + + 33
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-2661
SELECT DISTINCT + 5 * + - COUNT( * ) - 35
----
-40

skipif mysql # not compatible
query I rowsort label-2661
SELECT DISTINCT + 5 * + - COUNT ( * ) - 35
----
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2662
SELECT DISTINCT COUNT( * ) DIV - 43 * + COALESCE ( - 74, - COUNT( ALL 96 ) * - + MIN( DISTINCT 10 ) + 93 + - 29 * NULLIF ( 35, + COALESCE ( 95, - 9 - + 66, - 91 DIV 4 + 25 ) - 55 ) ) * 70
----
0

skipif mysql # not compatible
query I rowsort label-2662
SELECT DISTINCT COUNT ( * ) / - 43 * + COALESCE ( - 74, - COUNT ( ALL 96 ) * - + MIN ( DISTINCT 10 ) + 93 + - 29 * NULLIF ( 35, + COALESCE ( 95, - 9 - + 66, - 91 / 4 + 25 ) - 55 ) ) * 70
----
0

query I rowsort
SELECT - 86 * - 75 * - 8 + 0 AS col0
----
-51600

onlyif mysql # aggregate syntax: 
query I rowsort label-2664
SELECT DISTINCT + 9 * - COUNT( * ) * - - ( 83 )
----
-747

skipif mysql # not compatible
query I rowsort label-2664
SELECT DISTINCT + 9 * - COUNT ( * ) * - - ( 83 )
----
-747

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2665
SELECT + - CASE + 39 WHEN + - 54 * 20 THEN NULL WHEN + 64 / - + 31 THEN - + 24 * + NULLIF ( - COALESCE ( 86, - 16 ), CAST( NULL AS SIGNED ) ) * + 1 + - 55 ELSE NULL END * + COUNT( * ) + - AVG ( ALL + 8 - 97 ) * + 42
----
NULL

skipif mysql # not compatible
query I rowsort label-2665
SELECT + - CASE + 39 WHEN + - 54 * 20 THEN NULL WHEN + 64 / - + 31 THEN - + 24 * + NULLIF ( - COALESCE ( 86, - 16 ), CAST ( NULL AS INTEGER ) ) * + 1 + - 55 ELSE NULL END * + COUNT ( * ) + - AVG ( ALL + 8 - 97 ) * + 42
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2666
SELECT ALL - - CASE - COUNT( * ) WHEN 60 THEN + 74 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2666
SELECT ALL - - CASE - COUNT ( * ) WHEN 60 THEN + 74 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2667
SELECT DISTINCT - 10 AS col1, COUNT( * ) * - 45 * + 41 AS col0
----
-10
-1845

skipif mysql # not compatible
query II rowsort label-2667
SELECT DISTINCT - 10 AS col1, COUNT ( * ) * - 45 * + 41 AS col0
----
-10
-1845

query I rowsort
SELECT DISTINCT 13 * - 50 AS col2
----
-650

onlyif mysql # aggregate syntax: 
query I rowsort label-2669
SELECT - + 79 + + - 36 + - MIN( + 64 ) + - 51 * - COUNT( * )
----
-128

skipif mysql # not compatible
query I rowsort label-2669
SELECT - + 79 + + - 36 + - MIN ( + 64 ) + - 51 * - COUNT ( * )
----
-128

query II rowsort
SELECT ALL + 59, 64 col2
----
59
64

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2672
SELECT ALL + 54 AS col1, 59 + - MIN( DISTINCT 33 ) AS col0
----
54
26

skipif mysql # not compatible
query II rowsort label-2672
SELECT ALL + 54 AS col1, 59 + - MIN ( DISTINCT 33 ) AS col0
----
54
26

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

query I rowsort
SELECT ALL - 32 * 34
----
-1088

onlyif mysql # DIV for integer division: 
query I rowsort label-2675
SELECT DISTINCT + 21 + - NULLIF ( + 35, 77 ) DIV + ( 39 )
----
21

skipif mysql # not compatible
query I rowsort label-2675
SELECT DISTINCT + 21 + - NULLIF ( + 35, 77 ) / + ( 39 )
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-2676
SELECT ALL + 63 + + - 19 + + - 19 + + - COUNT( * ) AS col2
----
24

skipif mysql # not compatible
query I rowsort label-2676
SELECT ALL + 63 + + - 19 + + - 19 + + - COUNT ( * ) AS col2
----
24

query I rowsort
SELECT - - 94 * 62
----
5828

query I rowsort
SELECT ALL + 88 + + - 20 AS col1
----
68

query I rowsort
SELECT + - 83 - - + 28 AS col2
----
-55

onlyif mysql # aggregate syntax: 
query II rowsort label-2680
SELECT ALL + - COUNT( * ) * - 45 + 31 col1, 94
----
76
94

skipif mysql # not compatible
query II rowsort label-2680
SELECT ALL + - COUNT ( * ) * - 45 + 31 col1, 94
----
76
94

onlyif mysql # aggregate syntax: 
query II rowsort label-2681
SELECT + + 8 + + 54 * 72 AS col0, - COALESCE ( - 60, + COUNT( * ) ) AS col1
----
3896
60

skipif mysql # not compatible
query II rowsort label-2681
SELECT + + 8 + + 54 * 72 AS col0, - COALESCE ( - 60, + COUNT ( * ) ) AS col1
----
3896
60

query II rowsort
SELECT - 14 AS col0, + 36
----
-14
36

query I rowsort
SELECT - 98 * 49
----
-4802

query II rowsort
SELECT - 68 AS col0, - 19
----
-68
-19

query I rowsort
SELECT DISTINCT + 76 + 27
----
103

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

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

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

skipif mysql # not compatible
query I rowsort label-2687
SELECT DISTINCT MIN ( DISTINCT - 15 )
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2688
SELECT ALL + ( - COUNT( * ) ) DIV 20 * + - COUNT( * ) + + + 23 * CAST( - 32 AS SIGNED ) col0, - 38 + 59 + COUNT( * )
----
-736
22

skipif mysql # not compatible
query II rowsort label-2688
SELECT ALL + ( - COUNT ( * ) ) / 20 * + - COUNT ( * ) + + + 23 * CAST ( - 32 AS INTEGER ) col0, - 38 + 59 + COUNT ( * )
----
-736
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2689
SELECT ALL - 22 - 76 + + ( - 40 ) DIV 40 + + COUNT( * ), 26 AS col2
----
-98
26

skipif mysql # not compatible
query II rowsort label-2689
SELECT ALL - 22 - 76 + + ( - 40 ) / 40 + + COUNT ( * ), 26 AS col2
----
-98
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2690
SELECT DISTINCT 36, CAST( - COALESCE ( + COUNT( * ), + 78 ) AS SIGNED ) AS col2
----
36
-1

skipif mysql # not compatible
query II rowsort label-2690
SELECT DISTINCT 36, CAST ( - COALESCE ( + COUNT ( * ), + 78 ) AS INTEGER ) AS col2
----
36
-1

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2692
SELECT + NULLIF ( COALESCE ( - ( - SUM( - 75 ) ), - 83 ), - + 52 ) DIV - + 58 - 30
----
-29

skipif mysql # not compatible
query I rowsort label-2692
SELECT + NULLIF ( COALESCE ( - ( - SUM ( - 75 ) ), - 83 ), - + 52 ) / - + 58 - 30
----
-29

query II rowsort
SELECT + 0, + 44 AS col1
----
0
44

query I rowsort
SELECT + COALESCE ( + 77, 53 )
----
77

query I rowsort
SELECT ALL + ( + - 50 ) * + 72
----
-3600

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

query I rowsort
SELECT DISTINCT + 69 * 86
----
5934

onlyif mysql # aggregate syntax: 
query I rowsort label-2698
SELECT ALL + 10 * - - 59 + - MAX( - + 90 ) AS col0
----
680

skipif mysql # not compatible
query I rowsort label-2698
SELECT ALL + 10 * - - 59 + - MAX ( - + 90 ) AS col0
----
680

query II rowsort
SELECT + - 99 * + - 77 AS col1, 74 AS col0
----
7623
74

query II rowsort
SELECT - 74 AS col2, + 72 * + 92
----
-74
6624

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2701
SELECT + + MAX( DISTINCT 82 ) * - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) * 16 * - SUM( + 35 ) * + 11 + COALESCE ( + ( - 46 ), - 92 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2701
SELECT + + MAX ( DISTINCT 82 ) * - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * 16 * - SUM ( + 35 ) * + 11 + COALESCE ( + ( - 46 ), - 92 ) AS col2
----
NULL

query I rowsort
SELECT ALL 75 * 26 + + 46 + - + 33 AS col1
----
1963

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2703
SELECT 47 * + 65 - - 92 * - 63 - - 27 * - 50, + 84 * - + 20 * 50 + COALESCE ( + CAST( CASE 25 WHEN 50 THEN ( - 59 ) ELSE - 23 END AS SIGNED ), - 29 ) col0
----
-4091
-84023

skipif mysql # not compatible
query II rowsort label-2703
SELECT 47 * + 65 - - 92 * - 63 - - 27 * - 50, + 84 * - + 20 * 50 + COALESCE ( + CAST ( CASE 25 WHEN 50 THEN ( - 59 ) ELSE - 23 END AS INTEGER ), - 29 ) col0
----
-4091
-84023

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2704
SELECT ALL 81 / + CAST( + 35 AS SIGNED ) * + - CASE - 11 WHEN - - 41 * - + 26 - ( + - 23 ) / + CAST( NULL AS SIGNED ) * - 43 THEN + 42 WHEN 63 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2704
SELECT ALL 81 / + CAST ( + 35 AS INTEGER ) * + - CASE - 11 WHEN - - 41 * - + 26 - ( + - 23 ) / + CAST ( NULL AS INTEGER ) * - 43 THEN + 42 WHEN 63 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2705
SELECT DISTINCT 33 * + + 20 + - 21 + 2 AS col2, - CAST( NULL AS SIGNED )
----
641
NULL

skipif mysql # not compatible
query II rowsort label-2705
SELECT DISTINCT 33 * + + 20 + - 21 + 2 AS col2, - CAST ( NULL AS INTEGER )
----
641
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2706
SELECT ALL - - 12 * + 43 + - + 44 DIV - 45
----
516

skipif mysql # not compatible
query I rowsort label-2706
SELECT ALL - - 12 * + 43 + - + 44 / - 45
----
516

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2707
SELECT + - 98 + + CAST( + + 13 AS SIGNED ) + - 80 + 74 + + - 74 * + MIN( DISTINCT - + 53 ) col0
----
3831

skipif mysql # not compatible
query I rowsort label-2707
SELECT + - 98 + + CAST ( + + 13 AS INTEGER ) + - 80 + 74 + + - 74 * + MIN ( DISTINCT - + 53 ) col0
----
3831

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2708
SELECT ALL - CAST( NULL AS SIGNED ) * + 71 + + NULLIF ( - 93, - + 28 ) + + 30 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2708
SELECT ALL - CAST ( NULL AS INTEGER ) * + 71 + + NULLIF ( - 93, - + 28 ) + + 30 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 34 * 27 * - + 48 AS col1
----
-44064

onlyif mysql # DIV for integer division: 
query I rowsort label-2710
SELECT + + 23 DIV 93 col1
----
0

skipif mysql # not compatible
query I rowsort label-2710
SELECT + + 23 / 93 col1
----
0

query I rowsort
SELECT + 87 + - 68 AS col2
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-2712
SELECT - SUM( + CASE 64 WHEN + 37 THEN + 91 ELSE - + 80 END )
----
80

skipif mysql # not compatible
query I rowsort label-2712
SELECT - SUM ( + CASE 64 WHEN + 37 THEN + 91 ELSE - + 80 END )
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2713
SELECT + 14 + NULLIF ( + + CAST( NULL AS SIGNED ), + 35 / + 11 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2713
SELECT + 14 + NULLIF ( + + CAST ( NULL AS INTEGER ), + 35 / + 11 ) AS col1
----
NULL

query II rowsort
SELECT - 74 + + + 95 - - + 54 AS col0, 44 + + 23 * - ( 64 ) AS col2
----
75
-1428

onlyif mysql # aggregate syntax: 
query I rowsort label-2715
SELECT + 86 + + - COUNT( - - 22 )
----
85

skipif mysql # not compatible
query I rowsort label-2715
SELECT + 86 + + - COUNT ( - - 22 )
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-2716
SELECT DISTINCT COUNT( * ) - 55 AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-2716
SELECT DISTINCT COUNT ( * ) - 55 AS col0
----
-54

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2718
SELECT DISTINCT + SUM( ALL + 6 ) * 62 - + 67 + + 95 * - 29 * CASE - 80 WHEN 28 + + COALESCE ( 54, + 87 ) THEN - COALESCE ( - 67, - 64 * + 73 ) WHEN COUNT( * ) THEN + 38 / 62 ELSE NULL END * 13 + 58 * - 2 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2718
SELECT DISTINCT + SUM ( ALL + 6 ) * 62 - + 67 + + 95 * - 29 * CASE - 80 WHEN 28 + + COALESCE ( 54, + 87 ) THEN - COALESCE ( - 67, - 64 * + 73 ) WHEN COUNT ( * ) THEN + 38 / 62 ELSE NULL END * 13 + 58 * - 2 col0
----
NULL

query I rowsort
SELECT ALL COALESCE ( + 74, + 8 ) - - 98
----
172

onlyif mysql # aggregate syntax: 
query I rowsort label-2720
SELECT - 56 * - COUNT( DISTINCT - 73 ) * 76
----
4256

skipif mysql # not compatible
query I rowsort label-2720
SELECT - 56 * - COUNT ( DISTINCT - 73 ) * 76
----
4256

query I rowsort
SELECT ALL COALESCE ( - 67, + 35 ) AS col2
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2722
SELECT + 44 + - SUM( ALL - 80 ) * + CAST( - 85 AS SIGNED )
----
-6756

skipif mysql # not compatible
query I rowsort label-2722
SELECT + 44 + - SUM ( ALL - 80 ) * + CAST ( - 85 AS INTEGER )
----
-6756

onlyif mysql # aggregate syntax: 
query I rowsort label-2723
SELECT - COUNT( * ) + - MAX( + 36 ) AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-2723
SELECT - COUNT ( * ) + - MAX ( + 36 ) AS col2
----
-37

query II rowsort
SELECT + 20 * 1 AS col1, 66
----
20
66

onlyif mysql # aggregate syntax: 
query II rowsort label-2725
SELECT - MIN( + 72 ) AS col1, 51 AS col1
----
-72
51

skipif mysql # not compatible
query II rowsort label-2725
SELECT - MIN ( + 72 ) AS col1, 51 AS col1
----
-72
51

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

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

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

skipif mysql # not compatible
query I rowsort label-2727
SELECT ALL CAST ( - ( COUNT ( * ) ) AS INTEGER ) * 18 col2
----
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2728
SELECT ALL + COALESCE ( 79, 23 * COUNT( * ) * - 99, 66 DIV 45 + - 20 ) AS col2
----
79

skipif mysql # not compatible
query I rowsort label-2728
SELECT ALL + COALESCE ( 79, 23 * COUNT ( * ) * - 99, 66 / 45 + - 20 ) AS col2
----
79

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2730
SELECT DISTINCT + COUNT( DISTINCT 95 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2730
SELECT DISTINCT + COUNT ( DISTINCT 95 ) AS col1
----
1

query I rowsort
SELECT - 42 * 13 AS col0
----
-546

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

onlyif mysql # DIV for integer division: 
query II rowsort label-2733
SELECT - 16 * - - 41 AS col0, + 13 DIV 64
----
-656
0

skipif mysql # not compatible
query II rowsort label-2733
SELECT - 16 * - - 41 AS col0, + 13 / 64
----
-656
0

query I rowsort
SELECT ALL - 57 + 9 + + 41 AS col1
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-2735
SELECT + COUNT( + 66 ) + + ( + - 55 )
----
-54

skipif mysql # not compatible
query I rowsort label-2735
SELECT + COUNT ( + 66 ) + + ( + - 55 )
----
-54

query I rowsort
SELECT DISTINCT 31 * - + 5 AS col2
----
-155

onlyif mysql # DIV for integer division: 
query I rowsort label-2737
SELECT DISTINCT + 55 + + 56 DIV 70 AS col1
----
55

skipif mysql # not compatible
query I rowsort label-2737
SELECT DISTINCT + 55 + + 56 / 70 AS col1
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-2738
SELECT ALL - 96 + + COUNT( + 45 )
----
-95

skipif mysql # not compatible
query I rowsort label-2738
SELECT ALL - 96 + + COUNT ( + 45 )
----
-95

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2740
SELECT - 41 + + CAST( + 33 AS SIGNED ) + - + 43 AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-2740
SELECT - 41 + + CAST ( + 33 AS INTEGER ) + - + 43 AS col2
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-2741
SELECT DISTINCT - NULLIF ( MIN( DISTINCT - + 16 ), 34 ) AS col2
----
16

skipif mysql # not compatible
query I rowsort label-2741
SELECT DISTINCT - NULLIF ( MIN ( DISTINCT - + 16 ), 34 ) AS col2
----
16

query II rowsort
SELECT ALL - - ( 82 ) AS col0, + 22 AS col0
----
82
22

query I rowsort
SELECT - 85 * + + 27 AS col0
----
-2295

onlyif mysql # aggregate syntax: 
query I rowsort label-2744
SELECT + CASE - - CASE 22 WHEN 45 THEN + 6 / + 43 * - - 5 WHEN - COUNT( * ) THEN + - 49 END WHEN 33 + + 67 * + + COUNT( * ) + - 61 THEN NULL WHEN 63 THEN + 92 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2744
SELECT + CASE - - CASE 22 WHEN 45 THEN + 6 / + 43 * - - 5 WHEN - COUNT ( * ) THEN + - 49 END WHEN 33 + + 67 * + + COUNT ( * ) + - 61 THEN NULL WHEN 63 THEN + 92 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2745
SELECT - + COALESCE ( + 39, - + 7 + CAST( NULL AS SIGNED ) + + 54 * 2 * - COUNT( * ), + - 70 ) * - + NULLIF ( - 77, - - 66 * + - 10 - 1 ) * - MAX( 40 ) + + 47 AS col1
----
120167

skipif mysql # not compatible
query I rowsort label-2745
SELECT - + COALESCE ( + 39, - + 7 + CAST ( NULL AS INTEGER ) + + 54 * 2 * - COUNT ( * ), + - 70 ) * - + NULLIF ( - 77, - - 66 * + - 10 - 1 ) * - MAX ( 40 ) + + 47 AS col1
----
120167

onlyif mysql # aggregate syntax: 
query II rowsort label-2746
SELECT ALL + 80 + - CASE + 71 WHEN - 49 / 41 THEN NULL ELSE 25 END * + 0, 3 * - COUNT( * ) + - 90 * - COUNT( * ) AS col1
----
80
87

skipif mysql # not compatible
query II rowsort label-2746
SELECT ALL + 80 + - CASE + 71 WHEN - 49 / 41 THEN NULL ELSE 25 END * + 0, 3 * - COUNT ( * ) + - 90 * - COUNT ( * ) AS col1
----
80
87

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2749
SELECT ALL 98 * - COALESCE ( - - 98, - + 41, - + 77 + COUNT( * ) ) AS col2, - 50
----
-9604
-50

skipif mysql # not compatible
query II rowsort label-2749
SELECT ALL 98 * - COALESCE ( - - 98, - + 41, - + 77 + COUNT ( * ) ) AS col2, - 50
----
-9604
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-2750
SELECT DISTINCT - 76 DIV 81
----
0

skipif mysql # not compatible
query I rowsort label-2750
SELECT DISTINCT - 76 / 81
----
0

query II rowsort
SELECT DISTINCT 69 col1, - 37
----
69
-37

onlyif mysql # DIV for integer division: 
query II rowsort label-2752
SELECT DISTINCT 71 AS col2, ( + 40 ) DIV ( + 30 )
----
71
1

skipif mysql # not compatible
query II rowsort label-2752
SELECT DISTINCT 71 AS col2, ( + 40 ) / ( + 30 )
----
71
1

query I rowsort
SELECT ALL 62 * 33 AS col0
----
2046

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2755
SELECT ALL ( - COUNT( * ) ) * - 14 * + 76 + NULLIF ( - 56, + - 35 * ( + CASE + COALESCE ( + 27, - 2 ) WHEN - + 50 THEN - CAST( 55 AS SIGNED ) ELSE 12 END ) )
----
1008

skipif mysql # not compatible
query I rowsort label-2755
SELECT ALL ( - COUNT ( * ) ) * - 14 * + 76 + NULLIF ( - 56, + - 35 * ( + CASE + COALESCE ( + 27, - 2 ) WHEN - + 50 THEN - CAST ( 55 AS INTEGER ) ELSE 12 END ) )
----
1008

query II rowsort
SELECT 56 AS col1, - 49
----
56
-49

query I rowsort
SELECT 12 + + 42 - - + 62
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-2758
SELECT COUNT( * ) - ( - 2 ) * - 79 + 49 AS col1
----
-108

skipif mysql # not compatible
query I rowsort label-2758
SELECT COUNT ( * ) - ( - 2 ) * - 79 + 49 AS col1
----
-108

query II rowsort
SELECT ALL 43, - 3 col1
----
43
-3

query II rowsort
SELECT DISTINCT 45 AS col1, 19 * + 15
----
45
285

onlyif mysql # aggregate syntax: 
query I rowsort label-2761
SELECT CASE 14 WHEN + MIN( 96 ) THEN + COUNT( * ) WHEN 95 * + 83 THEN - COUNT( + ( - 78 ) ) END + AVG ( - + 73 ) * - 21
----
NULL

skipif mysql # not compatible
query I rowsort label-2761
SELECT CASE 14 WHEN + MIN ( 96 ) THEN + COUNT ( * ) WHEN 95 * + 83 THEN - COUNT ( + ( - 78 ) ) END + AVG ( - + 73 ) * - 21
----
NULL

query II rowsort
SELECT 72 AS col1, 6 + 49
----
72
55

query I rowsort
SELECT ALL 24 * + 52 AS col0
----
1248

query I rowsort
SELECT 79 * COALESCE ( 59, + 50 + - + 7 * + 9 - + - COALESCE ( + - 90, - 4, - 85 ) * + 69 ) AS col1
----
4661

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2765
SELECT ALL + - CAST( - CASE - 71 WHEN - 89 THEN + - 61 + - 49 ELSE NULL END AS SIGNED ) + COUNT( * ) - + 76 * 77 + - + CAST( - 23 AS SIGNED ) + + 24 + 33 * 96 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2765
SELECT ALL + - CAST ( - CASE - 71 WHEN - 89 THEN + - 61 + - 49 ELSE NULL END AS INTEGER ) + COUNT ( * ) - + 76 * 77 + - + CAST ( - 23 AS INTEGER ) + + 24 + 33 * 96 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2766
SELECT + COALESCE ( + COUNT( * ), + 11 + + 91 - + + ( CASE - + 82 WHEN - 84 THEN - COUNT( * ) + 66 * 46 ELSE 99 END ) )
----
1

skipif mysql # not compatible
query I rowsort label-2766
SELECT + COALESCE ( + COUNT ( * ), + 11 + + 91 - + + ( CASE - + 82 WHEN - 84 THEN - COUNT ( * ) + 66 * 46 ELSE 99 END ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2767
SELECT 14 / - CASE CAST( 6 AS SIGNED ) WHEN 60 * + COUNT( DISTINCT + ( + - 32 ) ) THEN + 78 * + NULLIF ( + 56, - + 90 / - 51 ) END * - 37
----
NULL

skipif mysql # not compatible
query I rowsort label-2767
SELECT 14 / - CASE CAST ( 6 AS INTEGER ) WHEN 60 * + COUNT ( DISTINCT + ( + - 32 ) ) THEN + 78 * + NULLIF ( + 56, - + 90 / - 51 ) END * - 37
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2768
SELECT DISTINCT - 58 + + COUNT( * ) - - ( + 91 ) * + 54 AS col1
----
4857

skipif mysql # not compatible
query I rowsort label-2768
SELECT DISTINCT - 58 + + COUNT ( * ) - - ( + 91 ) * + 54 AS col1
----
4857

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

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

query I rowsort
SELECT ALL + - 7 + - - 96 AS col1
----
89

query I rowsort
SELECT ALL 59 + - 88 AS col0
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-2772
SELECT DISTINCT + 3 + - 47 * - COUNT( + + 36 )
----
50

skipif mysql # not compatible
query I rowsort label-2772
SELECT DISTINCT + 3 + - 47 * - COUNT ( + + 36 )
----
50

query I rowsort
SELECT ALL - + 95 + + + 35 AS col1
----
-60

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2775
SELECT + 56 + + COUNT( * ) AS col1
----
57

skipif mysql # not compatible
query I rowsort label-2775
SELECT + 56 + + COUNT ( * ) AS col1
----
57

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2778
SELECT - 92 * 86 DIV + 96 AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-2778
SELECT - 92 * 86 / + 96 AS col0
----
-82

query I rowsort
SELECT DISTINCT - - ( + 46 ) - - 32
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2780
SELECT ALL - CASE - CAST( - - 82 AS SIGNED ) WHEN - MIN( + 63 ) THEN + + 24 END * + 61 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2780
SELECT ALL - CASE - CAST ( - - 82 AS INTEGER ) WHEN - MIN ( + 63 ) THEN + + 24 END * + 61 col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2781
SELECT 41 + + 63 + COUNT( ALL - + 37 ) + AVG ( - 86 ) + COUNT( * ) + 17 * - - 32 + - - CASE + ( - CAST( NULL AS SIGNED ) ) WHEN 22 * - 79 + + 62 THEN NULL WHEN 54 THEN ( - 22 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2781
SELECT 41 + + 63 + COUNT ( ALL - + 37 ) + AVG ( - 86 ) + COUNT ( * ) + 17 * - - 32 + - - CASE + ( - CAST ( NULL AS INTEGER ) ) WHEN 22 * - 79 + + 62 THEN NULL WHEN 54 THEN ( - 22 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2782
SELECT ALL - + COALESCE ( + 15, - 9 + - MAX( - 44 ) + - 65 - - 44 ) - - 27 AS col1
----
12

skipif mysql # not compatible
query I rowsort label-2782
SELECT ALL - + COALESCE ( + 15, - 9 + - MAX ( - 44 ) + - 65 - - 44 ) - - 27 AS col1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-2783
SELECT 22 + COUNT( ALL + + 94 )
----
23

skipif mysql # not compatible
query I rowsort label-2783
SELECT 22 + COUNT ( ALL + + 94 )
----
23

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

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

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

query I rowsort
SELECT 12 + - 5 - + 27 * + 0 AS col0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-2787
SELECT NULLIF ( ( + 59 ), + + 42 ) + - ( - 47 ) * - - COUNT( * ) + 84
----
190

skipif mysql # not compatible
query I rowsort label-2787
SELECT NULLIF ( ( + 59 ), + + 42 ) + - ( - 47 ) * - - COUNT ( * ) + 84
----
190

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2788
SELECT ALL CASE + 97 WHEN CAST( + - COUNT( * ) AS SIGNED ) + + CASE COUNT( * ) WHEN - 86 THEN + - 41 + - + COUNT( * ) WHEN 25 * + - CAST( NULL AS SIGNED ) + + 22 + + + 8 THEN + 82 ELSE + 44 * - CAST( NULL AS SIGNED ) + COALESCE ( 28, + CAST( CAST( NULL AS SIGNED ) AS DECIMAL ) ) END THEN - 35 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2788
SELECT ALL CASE + 97 WHEN CAST ( + - COUNT ( * ) AS INTEGER ) + + CASE COUNT ( * ) WHEN - 86 THEN + - 41 + - + COUNT ( * ) WHEN 25 * + - CAST ( NULL AS INTEGER ) + + 22 + + + 8 THEN + 82 ELSE + 44 * - CAST ( NULL AS INTEGER ) + COALESCE ( 28, + CAST ( CAST ( NULL AS INTEGER ) AS REAL ) ) END THEN - 35 END AS col0
----
NULL

query I rowsort
SELECT 22 * - ( - + 54 )
----
1188

query I rowsort
SELECT 57 + + 41 * + + 9 AS col0
----
426

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2791
SELECT ALL 91 DIV SUM( DISTINCT ( - 29 ) ) AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-2791
SELECT ALL 91 / SUM ( DISTINCT ( - 29 ) ) AS col0
----
-3

query I rowsort
SELECT 64 * - 37
----
-2368

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2794
SELECT COALESCE ( + COUNT( DISTINCT + + 95 ), + 22 ) + - 23 AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-2794
SELECT COALESCE ( + COUNT ( DISTINCT + + 95 ), + 22 ) + - 23 AS col2
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-2795
SELECT ALL 43 + + COUNT( * ) + - + 20 AS col1
----
24

skipif mysql # not compatible
query I rowsort label-2795
SELECT ALL 43 + + COUNT ( * ) + - + 20 AS col1
----
24

query II rowsort
SELECT 47 + - 63 AS col1, 57 * - 6
----
-16
-342

onlyif mysql # DIV for integer division: 
query I rowsort label-2797
SELECT ALL - NULLIF ( + 29, 72 ) DIV - 43 + - 13 * + 52
----
-676

skipif mysql # not compatible
query I rowsort label-2797
SELECT ALL - NULLIF ( + 29, 72 ) / - 43 + - 13 * + 52
----
-676

query I rowsort
SELECT ( + - 6 ) + 18 AS col2
----
12

query I rowsort
SELECT DISTINCT CASE 78 WHEN - 84 THEN + + 3 ELSE + 85 END * + 17 AS col0
----
1445

query II rowsort
SELECT ALL 7 + 63 AS col1, - 56 * - 52 * ( 13 ) * + 91
----
70
3444896

onlyif mysql # aggregate syntax: 
query I rowsort label-2801
SELECT - 13 * + + SUM( ALL - - 59 ) AS col0
----
-767

skipif mysql # not compatible
query I rowsort label-2801
SELECT - 13 * + + SUM ( ALL - - 59 ) AS col0
----
-767

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2804
SELECT + - 62 + - 1 - - 7 DIV - 7 + ( + 6 ) * + 25 AS col0
----
86

skipif mysql # not compatible
query I rowsort label-2804
SELECT + - 62 + - 1 - - 7 / - 7 + ( + 6 ) * + 25 AS col0
----
86

query I rowsort
SELECT ALL 90 + + - 11
----
79

query I rowsort
SELECT DISTINCT - 29 + + 52 + 8 * - 42
----
-313

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2807
SELECT 60 DIV - - 38 + COUNT( DISTINCT - COALESCE ( - 99, - 80 * 68 - - 22 DIV + - 51 + 85 ) ) - + 41
----
-39

skipif mysql # not compatible
query I rowsort label-2807
SELECT 60 / - - 38 + COUNT ( DISTINCT - COALESCE ( - 99, - 80 * 68 - - 22 / + - 51 + 85 ) ) - + 41
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-2808
SELECT ALL - 55 * + 32 + NULLIF ( 95, - COUNT( * ) ) + 94 + - 23
----
-1594

skipif mysql # not compatible
query I rowsort label-2808
SELECT ALL - 55 * + 32 + NULLIF ( 95, - COUNT ( * ) ) + 94 + - 23
----
-1594

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2809
SELECT + + CASE CASE + 76 WHEN + 36 THEN NULL ELSE + 76 END WHEN + CAST( - - 95 AS SIGNED ) + + NULLIF ( 32, CAST( NULL AS SIGNED ) ) * 41 * + - CASE ( - - 88 ) WHEN - 22 THEN + 85 ELSE NULL END THEN 57 + + 18 * 75 END + - 16 / 82 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2809
SELECT + + CASE CASE + 76 WHEN + 36 THEN NULL ELSE + 76 END WHEN + CAST ( - - 95 AS INTEGER ) + + NULLIF ( 32, CAST ( NULL AS INTEGER ) ) * 41 * + - CASE ( - - 88 ) WHEN - 22 THEN + 85 ELSE NULL END THEN 57 + + 18 * 75 END + - 16 / 82 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2810
SELECT + CASE + + 62 WHEN - COUNT( * ) * + 58 * + 8 * + 12 THEN - + 25 WHEN + - 51 THEN - COALESCE ( - COUNT( * ), - COUNT( * ) * 65 * + 24 * - 25 - - 33 * 75 ) * 95 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2810
SELECT + CASE + + 62 WHEN - COUNT ( * ) * + 58 * + 8 * + 12 THEN - + 25 WHEN + - 51 THEN - COALESCE ( - COUNT ( * ), - COUNT ( * ) * 65 * + 24 * - 25 - - 33 * 75 ) * 95 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2811
SELECT DISTINCT - 72 * 98 - 74 + - 46 * MIN( DISTINCT - 47 ) AS col0
----
-4968

skipif mysql # not compatible
query I rowsort label-2811
SELECT DISTINCT - 72 * 98 - 74 + - 46 * MIN ( DISTINCT - 47 ) AS col0
----
-4968

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2812
SELECT - 84 DIV + 23 + + - COUNT( * ) AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-2812
SELECT - 84 / + 23 + + - COUNT ( * ) AS col0
----
-4

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

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

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

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

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

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

query I rowsort
SELECT - 15 * + 79 AS col1
----
-1185

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

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

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

query I rowsort
SELECT - 92 * - 83
----
7636

query I rowsort
SELECT - 21 * + 3 * - 7
----
441

query I rowsort
SELECT - 56 * - 25 AS col2
----
1400

query I rowsort
SELECT ALL 62 + + 95 - - ( 69 ) AS col0
----
226

query I rowsort
SELECT ALL - 32 * + 40 * + 69
----
-88320

query I rowsort
SELECT ALL + 68 + + - 79 AS col1
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-2825
SELECT DISTINCT - 14 + + 2 + MAX( DISTINCT - + 44 ) AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-2825
SELECT DISTINCT - 14 + + 2 + MAX ( DISTINCT - + 44 ) AS col1
----
-56

query I rowsort
SELECT DISTINCT - 41 * + 78
----
-3198

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

skipif mysql # not compatible
query I rowsort label-2827
SELECT DISTINCT + ( + - 82 ) + 86 + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT 48 AS col2, 7 AS col0
----
48
7

query I rowsort
SELECT - 90 + + 32 * + + 20 + 37 AS col0
----
587

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2832
SELECT DISTINCT CAST( NULL AS SIGNED ), - 17 * - + CASE - MAX( 91 ) WHEN - + 15 + + 8 - - 96 + 68 THEN + + NULLIF ( - AVG ( DISTINCT 69 ), - COUNT( * ) ) * MIN( ALL + 1 ) ELSE NULL END
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2832
SELECT DISTINCT CAST ( NULL AS INTEGER ), - 17 * - + CASE - MAX ( 91 ) WHEN - + 15 + + 8 - - 96 + 68 THEN + + NULLIF ( - AVG ( DISTINCT 69 ), - COUNT ( * ) ) * MIN ( ALL + 1 ) ELSE NULL END
----
NULL
NULL

query I rowsort
SELECT - COALESCE ( + + 78, + 25 * - 61 )
----
-78

query I rowsort
SELECT DISTINCT + 6 + - + 76 AS col0
----
-70

query I rowsort
SELECT ALL 54 + - 25 AS col2
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2836
SELECT + 4 col0, COUNT( ALL + 86 ) * + 32 + + CASE + 57 WHEN + + 74 THEN 94 WHEN - 0 THEN + 67 + MAX( DISTINCT + ( - CAST( NULL AS DECIMAL ) ) ) * - CAST( + - 14 AS SIGNED ) END + + COALESCE ( 20, NULLIF ( - 53, 87 ) * 23, MAX( ALL + 69 ) ) AS col1
----
4
NULL

skipif mysql # not compatible
query II rowsort label-2836
SELECT + 4 col0, COUNT ( ALL + 86 ) * + 32 + + CASE + 57 WHEN + + 74 THEN 94 WHEN - 0 THEN + 67 + MAX ( DISTINCT + ( - CAST ( NULL AS REAL ) ) ) * - CAST ( + - 14 AS INTEGER ) END + + COALESCE ( 20, NULLIF ( - 53, 87 ) * 23, MAX ( ALL + 69 ) ) AS col1
----
4
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2838
SELECT DISTINCT + 67 DIV - + 13
----
-5

skipif mysql # not compatible
query I rowsort label-2838
SELECT DISTINCT + 67 / - + 13
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2839
SELECT ALL 54 * 91 * COUNT( DISTINCT 9 ) AS col2
----
4914

skipif mysql # not compatible
query I rowsort label-2839
SELECT ALL 54 * 91 * COUNT ( DISTINCT 9 ) AS col2
----
4914

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2840
SELECT DISTINCT + 7 / + - SUM( COALESCE ( - + 85, - 95 ) ) * 44 - - + 58 - ( - 12 ) + - + 60 * + + CASE + + COALESCE ( + NULLIF ( - + 51, - + 57 * ( SUM( - 91 ) ) ), - 70 ) WHEN + 24 THEN COUNT( * ) - 59 END / - CAST( - 81 AS SIGNED ) - + 32 / - 26
----
NULL

skipif mysql # not compatible
query I rowsort label-2840
SELECT DISTINCT + 7 / + - SUM ( COALESCE ( - + 85, - 95 ) ) * 44 - - + 58 - ( - 12 ) + - + 60 * + + CASE + + COALESCE ( + NULLIF ( - + 51, - + 57 * ( SUM ( - 91 ) ) ), - 70 ) WHEN + 24 THEN COUNT ( * ) - 59 END / - CAST ( - 81 AS INTEGER ) - + 32 / - 26
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2841
SELECT ALL + 12 col2, 49 DIV 72 + + - 73
----
12
-73

skipif mysql # not compatible
query II rowsort label-2841
SELECT ALL + 12 col2, 49 / 72 + + - 73
----
12
-73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2842
SELECT DISTINCT + 51 DIV 99 * - 10 * - 41 * - 9 * COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-2842
SELECT DISTINCT + 51 / 99 * - 10 * - 41 * - 9 * COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2843
SELECT ALL + + 4 AS col1, 15 + COUNT( * ) * + ( - 54 ) AS col0
----
4
-39

skipif mysql # not compatible
query II rowsort label-2843
SELECT ALL + + 4 AS col1, 15 + COUNT ( * ) * + ( - 54 ) AS col0
----
4
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-2844
SELECT SUM( DISTINCT - - 80 ) AS col1
----
80

skipif mysql # not compatible
query I rowsort label-2844
SELECT SUM ( DISTINCT - - 80 ) AS col1
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2845
SELECT DISTINCT + - NULLIF ( - COUNT( * ), 59 )
----
1

skipif mysql # not compatible
query I rowsort label-2845
SELECT DISTINCT + - NULLIF ( - COUNT ( * ), 59 )
----
1

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

skipif mysql # not compatible
query I rowsort label-2846
SELECT + SUM ( + - 93 )
----
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2847
SELECT + CASE - 72 WHEN 52 THEN NULL WHEN + 26 * - 8 THEN - COUNT( * ) END + CAST( NULL AS SIGNED ) + - 56 * + COUNT( * ) + - 99 + + 3 - + - 10 * - COUNT( * ), 35 AS col2
----
NULL
35

skipif mysql # not compatible
query II rowsort label-2847
SELECT + CASE - 72 WHEN 52 THEN NULL WHEN + 26 * - 8 THEN - COUNT ( * ) END + CAST ( NULL AS INTEGER ) + - 56 * + COUNT ( * ) + - 99 + + 3 - + - 10 * - COUNT ( * ), 35 AS col2
----
NULL
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2848
SELECT - 52 * CASE - ( - 79 ) WHEN + NULLIF ( + 19, + 53 * 60 ) * - 21 + + CAST( NULL AS SIGNED ) THEN NULL WHEN 99 THEN - 99 ELSE NULL END - + + 24
----
NULL

skipif mysql # not compatible
query I rowsort label-2848
SELECT - 52 * CASE - ( - 79 ) WHEN + NULLIF ( + 19, + 53 * 60 ) * - 21 + + CAST ( NULL AS INTEGER ) THEN NULL WHEN 99 THEN - 99 ELSE NULL END - + + 24
----
NULL

query I rowsort
SELECT - 20 * + 9 * + 19 + + 81 * ( + 89 ) + 40 AS col2
----
3829

query I rowsort
SELECT 36 * + 83 + - 28 AS col2
----
2960

query I rowsort
SELECT ( - 13 ) col0
----
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-2852
SELECT + 56 DIV - + 68
----
0

skipif mysql # not compatible
query I rowsort label-2852
SELECT + 56 / - + 68
----
0

query I rowsort
SELECT ALL 57 * + 77 * - 25 + - ( 70 ) + - + 43 + 41 AS col2
----
-109797

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2854
SELECT ALL CASE 6 WHEN - 9 THEN + - 47 ELSE + 58 END * 45 - - COUNT( * ) + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2854
SELECT ALL CASE 6 WHEN - 9 THEN + - 47 ELSE + 58 END * 45 - - COUNT ( * ) + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2856
SELECT DISTINCT 73 + - + MIN( DISTINCT + + 51 ) AS col2
----
22

skipif mysql # not compatible
query I rowsort label-2856
SELECT DISTINCT 73 + - + MIN ( DISTINCT + + 51 ) AS col2
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2857
SELECT ALL CAST( NULL AS SIGNED ) + - COALESCE ( - 8, ( + 29 ) ) - + - 19 * - 30 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2857
SELECT ALL CAST ( NULL AS INTEGER ) + - COALESCE ( - 8, ( + 29 ) ) - + - 19 * - 30 col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2859
SELECT DISTINCT + 83 + COUNT( * ) + - 80 - + 44 - - - COUNT( * ) - - 56 * - ( - COUNT( * ) ) * + ( COUNT( * ) ) col0
----
15

skipif mysql # not compatible
query I rowsort label-2859
SELECT DISTINCT + 83 + COUNT ( * ) + - 80 - + 44 - - - COUNT ( * ) - - 56 * - ( - COUNT ( * ) ) * + ( COUNT ( * ) ) col0
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2860
SELECT CAST( NULL AS SIGNED ) / CASE + - 73 WHEN COUNT( * ) THEN - + 14 * 60 + 46 ELSE 19 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2860
SELECT CAST ( NULL AS INTEGER ) / CASE + - 73 WHEN COUNT ( * ) THEN - + 14 * 60 + 46 ELSE 19 END
----
NULL

query II rowsort
SELECT - 96 AS col2, - 81 AS col0
----
-96
-81

query I rowsort
SELECT DISTINCT + 56 + + 0 * CASE + - 55 WHEN + - 73 THEN - 87 * + - 20 + - 81 * - 65 END + - 37 * - - 89 AS col2
----
NULL

query II rowsort
SELECT - 50 col1, 25 - - - 45 * + 94 * - + 78 * 29 AS col1
----
-50
9568285

onlyif mysql # aggregate syntax: 
query I rowsort label-2864
SELECT ALL + COUNT( DISTINCT + - 41 ) * - + 80 AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-2864
SELECT ALL + COUNT ( DISTINCT + - 41 ) * - + 80 AS col2
----
-80

query I rowsort
SELECT 72 + - - 29
----
101

query III rowsort
SELECT - 7 col0, 56 AS col1, - + ( 51 )
----
-7
56
-51

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

query I rowsort
SELECT ALL ( - - 93 ) AS col1
----
93

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

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

query I rowsort
SELECT ALL - 80 - 3
----
-83

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2872
SELECT - 61, SUM( DISTINCT - 92 ) col1
----
-61
-92

skipif mysql # not compatible
query II rowsort label-2872
SELECT - 61, SUM ( DISTINCT - 92 ) col1
----
-61
-92

query I rowsort
SELECT 91 * + + 30
----
2730

onlyif mysql # DIV for integer division: 
query II rowsort label-2874
SELECT ALL 22, 19 DIV + - 71 AS col0
----
22
0

skipif mysql # not compatible
query II rowsort label-2874
SELECT ALL 22, 19 / + - 71 AS col0
----
22
0

query I rowsort
SELECT 70 * + 53 * + 51 AS col0
----
189210

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2876
SELECT ALL + + 9 DIV - 64 + + - 3 + - COUNT( * ) DIV + CASE + 50 WHEN - + 5 * + ( - COUNT( * ) ) + + - 19 THEN - 95 * 62 WHEN - 11 * - 37 * - 41 THEN NULL WHEN 71 * + 30 THEN - 2 + 37 WHEN NULLIF ( + COUNT( * ), + 70 + - COUNT( * ) * + 93 ) - - 12 THEN NULL ELSE + 30 END AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-2876
SELECT ALL + + 9 / - 64 + + - 3 + - COUNT ( * ) / + CASE + 50 WHEN - + 5 * + ( - COUNT ( * ) ) + + - 19 THEN - 95 * 62 WHEN - 11 * - 37 * - 41 THEN NULL WHEN 71 * + 30 THEN - 2 + 37 WHEN NULLIF ( + COUNT ( * ), + 70 + - COUNT ( * ) * + 93 ) - - 12 THEN NULL ELSE + 30 END AS col1
----
-3

query I rowsort
SELECT + 58 + + + 60 AS col2
----
118

query II rowsort
SELECT 73, - 14 AS col0
----
73
-14

query I rowsort
SELECT - ( - 46 ) + + 31 AS col2
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2880
SELECT 16, - CAST( - 73 AS SIGNED ) + - COUNT( * ) col2
----
16
72

skipif mysql # not compatible
query II rowsort label-2880
SELECT 16, - CAST ( - 73 AS INTEGER ) + - COUNT ( * ) col2
----
16
72

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

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

query I rowsort
SELECT DISTINCT + - NULLIF ( - 74, - - CASE 42 WHEN + - 17 THEN NULL WHEN - 43 + - 94 THEN 50 * 79 END ) * + 3 + - 56 AS col0
----
166

query I rowsort
SELECT ALL 82 * 91 + + 45 AS col0
----
7507

query I rowsort
SELECT - ( + 37 ) * - 67 AS col2
----
2479

query I rowsort
SELECT 19 * - - 30 * + ( 8 ) AS col1
----
4560

onlyif mysql # DIV for integer division: 
query I rowsort label-2886
SELECT + ( - 30 ) DIV + 96 + 46 - + - 89 * + - 76 * ( + 54 )
----
-365210

skipif mysql # not compatible
query I rowsort label-2886
SELECT + ( - 30 ) / + 96 + 46 - + - 89 * + - 76 * ( + 54 )
----
-365210

onlyif mysql # aggregate syntax: 
query I rowsort label-2887
SELECT ALL CASE + NULLIF ( + - 91, + 77 ) WHEN - 22 * - COUNT( * ) THEN 52 + 62 + - 63 END + 82 + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2887
SELECT ALL CASE + NULLIF ( + - 91, + 77 ) WHEN - 22 * - COUNT ( * ) THEN 52 + 62 + - 63 END + 82 + COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 59 * 48 AS col0
----
2832

onlyif mysql # aggregate syntax: 
query II rowsort label-2889
SELECT ALL 68 + 68 * 58 AS col1, + COUNT( * ) AS col1
----
4012
1

skipif mysql # not compatible
query II rowsort label-2889
SELECT ALL 68 + 68 * 58 AS col1, + COUNT ( * ) AS col1
----
4012
1

query I rowsort
SELECT DISTINCT 27 + + 64 AS col1
----
91

query I rowsort
SELECT ALL - ( + + CASE - 87 WHEN - 63 * - 84 THEN NULL ELSE + 84 END ) AS col2
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2892
SELECT DISTINCT - CAST( - + COUNT( * ) AS SIGNED ) + 97 * + 27
----
2620

skipif mysql # not compatible
query I rowsort label-2892
SELECT DISTINCT - CAST ( - + COUNT ( * ) AS INTEGER ) + 97 * + 27
----
2620

onlyif mysql # aggregate syntax: 
query I rowsort label-2893
SELECT DISTINCT 79 + ( + MIN( 60 ) ) * - 97 + - 74 col1
----
-5815

skipif mysql # not compatible
query I rowsort label-2893
SELECT DISTINCT 79 + ( + MIN ( 60 ) ) * - 97 + - 74 col1
----
-5815

query I rowsort
SELECT 28 - - 0 + - + ( 4 )
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2895
SELECT NULLIF ( + ( - - 12 ), + + 85 / 81 * NULLIF ( + + 99, 49 ) + 45 + 60 ) * 7 * - - 1 + 61 * - 0 * + - 2 + - COALESCE ( + CAST( + 10 AS SIGNED ), - 52 + 39 ) AS col2
----
74

skipif mysql # not compatible
query I rowsort label-2895
SELECT NULLIF ( + ( - - 12 ), + + 85 / 81 * NULLIF ( + + 99, 49 ) + 45 + 60 ) * 7 * - - 1 + 61 * - 0 * + - 2 + - COALESCE ( + CAST ( + 10 AS INTEGER ), - 52 + 39 ) AS col2
----
74

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2896
SELECT CAST( + 12 AS DECIMAL ) * + CASE + 36 WHEN + 33 THEN - - 24 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2896
SELECT CAST ( + 12 AS REAL ) * + CASE + 36 WHEN + 33 THEN - - 24 END AS col0
----
NULL

query I rowsort
SELECT DISTINCT 61 * - + 5 col0
----
-305

query I rowsort
SELECT ( - 6 ) * + + 2 AS col0
----
-12

query I rowsort
SELECT ALL 54 - - - 40 + + + 88
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-2900
SELECT DISTINCT COUNT( * ) - + ( + NULLIF ( 87, 52 + + + 16 - + + 38 * AVG ( ALL - 85 ) - - 3 ) )
----
-86

skipif mysql # not compatible
query I rowsort label-2900
SELECT DISTINCT COUNT ( * ) - + ( + NULLIF ( 87, 52 + + + 16 - + + 38 * AVG ( ALL - 85 ) - - 3 ) )
----
-86

query I rowsort
SELECT DISTINCT 25 * + - 36 AS col0
----
-900

query III rowsort
SELECT 88 * + + 51 AS col2, + 65, + 41 - + 50 col2
----
4488
65
-9

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

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

query I rowsort
SELECT - 84 + + 89 + - 33 * + + 61 AS col1
----
-2008

query I rowsort
SELECT 16 + + 40 + - 2 AS col2
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2906
SELECT + MAX( ALL + 34 ) DIV + 27
----
1

skipif mysql # not compatible
query I rowsort label-2906
SELECT + MAX ( ALL + 34 ) / + 27
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2908
SELECT 62 + + ( - COALESCE ( 94, + 86, - ( - COUNT( * ) ) ) ) + 42 AS col0
----
10

skipif mysql # not compatible
query I rowsort label-2908
SELECT 62 + + ( - COALESCE ( 94, + 86, - ( - COUNT ( * ) ) ) ) + 42 AS col0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-2909
SELECT - - MAX( 70 )
----
70

skipif mysql # not compatible
query I rowsort label-2909
SELECT - - MAX ( 70 )
----
70

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2911
SELECT ALL 3 DIV + - ( + - 24 )
----
0

skipif mysql # not compatible
query I rowsort label-2911
SELECT ALL 3 / + - ( + - 24 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2912
SELECT ALL NULLIF ( + 81, + 36 ), 6 * CAST( - + 91 AS SIGNED ) AS col0
----
81
-546

skipif mysql # not compatible
query II rowsort label-2912
SELECT ALL NULLIF ( + 81, + 36 ), 6 * CAST ( - + 91 AS INTEGER ) AS col0
----
81
-546

query I rowsort
SELECT ALL + - 14 * 0 * + 54 AS col2
----
0

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

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

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

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

query I rowsort
SELECT - 22 * + 95 - + 23 AS col1
----
-2113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2917
SELECT ALL + + CASE + CAST( - - 58 AS DECIMAL ) WHEN - - 8 * + 86 + + - 20 + - 87 * + 46 / + + CAST( + 48 AS SIGNED ) * 5 + 39 / + 55 + + COUNT( DISTINCT - COALESCE ( - 48, + 89 ) ) THEN 17 - + 95 END * - COALESCE ( 65, - 88, + 12 + 75 ) + 46
----
NULL

skipif mysql # not compatible
query I rowsort label-2917
SELECT ALL + + CASE + CAST ( - - 58 AS REAL ) WHEN - - 8 * + 86 + + - 20 + - 87 * + 46 / + + CAST ( + 48 AS INTEGER ) * 5 + 39 / + 55 + + COUNT ( DISTINCT - COALESCE ( - 48, + 89 ) ) THEN 17 - + 95 END * - COALESCE ( 65, - 88, + 12 + 75 ) + 46
----
NULL

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

query I rowsort
SELECT ALL 44 * - 99 AS col1
----
-4356

onlyif mysql # aggregate syntax: 
query II rowsort label-2920
SELECT 47 * - - MAX( DISTINCT 91 ) AS col0, 19 - NULLIF ( - 65, + 65 + - 19 )
----
4277
84

skipif mysql # not compatible
query II rowsort label-2920
SELECT 47 * - - MAX ( DISTINCT 91 ) AS col0, 19 - NULLIF ( - 65, + 65 + - 19 )
----
4277
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2921
SELECT ALL + 43 * + COUNT( * ) + + - 30 + - 2
----
11

skipif mysql # not compatible
query I rowsort label-2921
SELECT ALL + 43 * + COUNT ( * ) + + - 30 + - 2
----
11

query II rowsort
SELECT + 68 AS col1, 37 AS col0
----
68
37

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2923
SELECT ALL - 93 * 22 + + - 95 + 0 + - + CAST( NULL AS DECIMAL ) * 4 AS col2, 95 AS col2
----
NULL
95

skipif mysql # not compatible
query II rowsort label-2923
SELECT ALL - 93 * 22 + + - 95 + 0 + - + CAST ( NULL AS REAL ) * 4 AS col2, 95 AS col2
----
NULL
95

onlyif mysql # DIV for integer division: 
query II rowsort label-2924
SELECT - 61 DIV - 23 + - 71 * - 92 + 4 * + 15 col1, 99 AS col2
----
6594
99

skipif mysql # not compatible
query II rowsort label-2924
SELECT - 61 / - 23 + - 71 * - 92 + 4 * + 15 col1, 99 AS col2
----
6594
99

query I rowsort
SELECT - 97 * - 7 AS col2
----
679

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

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

query I rowsort
SELECT - 14 + + 75
----
61

onlyif mysql # DIV for integer division: 
query I rowsort label-2928
SELECT 1 * + 85 - - 67 DIV 40
----
86

skipif mysql # not compatible
query I rowsort label-2928
SELECT 1 * + 85 - - 67 / 40
----
86

query I rowsort
SELECT ALL - 64 * + 15 col0
----
-960

query I rowsort
SELECT ALL + 10 * + 10
----
100

query I rowsort
SELECT - ( 70 ) * 95 + - - 8
----
-6642

query I rowsort
SELECT + ( + 30 ) * + + 44
----
1320

onlyif mysql # DIV for integer division: 
query I rowsort label-2933
SELECT + ( 44 ) + NULLIF ( + 45, 87 ) DIV + 76
----
44

skipif mysql # not compatible
query I rowsort label-2933
SELECT + ( 44 ) + NULLIF ( + 45, 87 ) / + 76
----
44

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

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

query I rowsort
SELECT ALL - 38 - + 80 col2
----
-118

onlyif mysql # aggregate syntax: 
query I rowsort label-2936
SELECT MIN( DISTINCT + 27 ) AS col1
----
27

skipif mysql # not compatible
query I rowsort label-2936
SELECT MIN ( DISTINCT + 27 ) AS col1
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2937
SELECT 11 * + MAX( ALL ( ( ( CAST( NULL AS SIGNED ) ) ) ) ) + - 33 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2937
SELECT 11 * + MAX ( ALL ( ( ( CAST ( NULL AS INTEGER ) ) ) ) ) + - 33 AS col1
----
NULL

query I rowsort
SELECT - 24 * 72 AS col0
----
-1728

query I rowsort
SELECT + 30 * 62
----
1860

query II rowsort
SELECT - 78 * + 94 + - ( - 98 ) AS col0, 87 AS col1
----
-7234
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2941
SELECT - - COALESCE ( - CAST( NULL AS SIGNED ), - 79 * - 89 + + + COUNT( * ) ) AS col0
----
7032

skipif mysql # not compatible
query I rowsort label-2941
SELECT - - COALESCE ( - CAST ( NULL AS INTEGER ), - 79 * - 89 + + + COUNT ( * ) ) AS col0
----
7032

query I rowsort
SELECT + 74 * - 29 AS col0
----
-2146

query I rowsort
SELECT DISTINCT 43 * - 48
----
-2064

query II rowsort
SELECT ALL + 64, 92 * - - 51 AS col0
----
64
4692

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2945
SELECT DISTINCT NULLIF ( + COUNT( * ), + SUM( + - 74 ) ), 66 + + - 38 * SUM( DISTINCT 4 ) * 7 * 13 + 16 + - + 50 DIV + 24 AS col0
----
1
-13752

skipif mysql # not compatible
query II rowsort label-2945
SELECT DISTINCT NULLIF ( + COUNT ( * ), + SUM ( + - 74 ) ), 66 + + - 38 * SUM ( DISTINCT 4 ) * 7 * 13 + 16 + - + 50 / + 24 AS col0
----
1
-13752

query I rowsort
SELECT DISTINCT - 95 * - 92 * 92 AS col1
----
804080

onlyif mysql # aggregate syntax: 
query I rowsort label-2947
SELECT ALL MIN( - 89 ) AS col0
----
-89

skipif mysql # not compatible
query I rowsort label-2947
SELECT ALL MIN ( - 89 ) AS col0
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-2948
SELECT ALL - 45 + + - MAX( DISTINCT - 29 ) - 18 * + - 1 * - ( + 93 ) * + 41 AS col0
----
-68650

skipif mysql # not compatible
query I rowsort label-2948
SELECT ALL - 45 + + - MAX ( DISTINCT - 29 ) - 18 * + - 1 * - ( + 93 ) * + 41 AS col0
----
-68650

query I rowsort
SELECT + + 40 + - 21 + + 12 * 28 AS col0
----
355

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

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

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

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

query I rowsort
SELECT + 20 * + 15
----
300

query II rowsort
SELECT - 14 col1, 98 AS col1
----
-14
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2954
SELECT DISTINCT 59 + + CAST( NULL AS SIGNED ) + - 59 / 97 * - 81 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2954
SELECT DISTINCT 59 + + CAST ( NULL AS INTEGER ) + - 59 / 97 * - 81 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2955
SELECT - 3 DIV + 85 * + COUNT( * ) * - 66 * - 92 + + - 48 DIV - 43
----
1

skipif mysql # not compatible
query I rowsort label-2955
SELECT - 3 / + 85 * + COUNT ( * ) * - 66 * - 92 + + - 48 / - 43
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2956
SELECT ALL - - ( - + 64 ) + - COUNT( * ) col1
----
-65

skipif mysql # not compatible
query I rowsort label-2956
SELECT ALL - - ( - + 64 ) + - COUNT ( * ) col1
----
-65

query I rowsort
SELECT ALL + + 87 + - 55
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-2958
SELECT DISTINCT + ( 18 ) * 96 * - COUNT( DISTINCT + 19 ) * + 24 col0
----
-41472

skipif mysql # not compatible
query I rowsort label-2958
SELECT DISTINCT + ( 18 ) * 96 * - COUNT ( DISTINCT + 19 ) * + 24 col0
----
-41472

query I rowsort
SELECT DISTINCT - 51 + 95 AS col2
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-2960
SELECT ALL + CASE - 43 WHEN + COUNT( * ) / COUNT( * ) THEN 23 * - 13 * - + CASE - + 40 WHEN 3 * - + ( - + 76 ) * 76 / - 59 THEN - ( - 58 ) + 66 * 15 END - COALESCE ( - 40, 80 ) + - 26 * + 96 - 65 * 58 WHEN - COUNT( * ) * + 71 THEN NULL END / 60 + - COALESCE ( + 48, + 9, - AVG ( + 13 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2960
SELECT ALL + CASE - 43 WHEN + COUNT ( * ) / COUNT ( * ) THEN 23 * - 13 * - + CASE - + 40 WHEN 3 * - + ( - + 76 ) * 76 / - 59 THEN - ( - 58 ) + 66 * 15 END - COALESCE ( - 40, 80 ) + - 26 * + 96 - 65 * 58 WHEN - COUNT ( * ) * + 71 THEN NULL END / 60 + - COALESCE ( + 48, + 9, - AVG ( + 13 ) )
----
NULL

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

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

query I rowsort
SELECT DISTINCT + COALESCE ( - - 77, - 55, + NULLIF ( + 38, + 91 ) )
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2963
SELECT + 38 * + - MAX( + 26 ) AS col0
----
-988

skipif mysql # not compatible
query I rowsort label-2963
SELECT + 38 * + - MAX ( + 26 ) AS col0
----
-988

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2965
SELECT ( + COALESCE ( - - 52, - COUNT( * ) + 71 ) ) AS col1
----
52

skipif mysql # not compatible
query I rowsort label-2965
SELECT ( + COALESCE ( - - 52, - COUNT ( * ) + 71 ) ) AS col1
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2966
SELECT - CAST( 48 AS SIGNED ) + 76
----
28

skipif mysql # not compatible
query I rowsort label-2966
SELECT - CAST ( 48 AS INTEGER ) + 76
----
28

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

query II rowsort
SELECT ( - 6 ) AS col1, 14 AS col0
----
-6
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2969
SELECT DISTINCT + NULLIF ( - + 15, CAST( 85 AS SIGNED ) - + + 51 + COALESCE ( + 67, + 46 * + NULLIF ( + 31, 94 + 75 ) + 82 + + - 80 - SUM( + 34 ) - COUNT( - - 60 ) ) )
----
-15

skipif mysql # not compatible
query I rowsort label-2969
SELECT DISTINCT + NULLIF ( - + 15, CAST ( 85 AS INTEGER ) - + + 51 + COALESCE ( + 67, + 46 * + NULLIF ( + 31, 94 + 75 ) + 82 + + - 80 - SUM ( + 34 ) - COUNT ( - - 60 ) ) )
----
-15

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2971
SELECT DISTINCT - NULLIF ( 24, CASE 83 WHEN 33 THEN NULL WHEN + - 86 + 82 THEN NULL WHEN - 70 THEN - 12 ELSE 72 END + + CAST( + MAX( CAST( NULL AS DECIMAL ) ) AS SIGNED ) + 59 ) * SUM( DISTINCT 11 ) * - + 44 + - + COUNT( * ) + + 67 * 17
----
12754

skipif mysql # not compatible
query I rowsort label-2971
SELECT DISTINCT - NULLIF ( 24, CASE 83 WHEN 33 THEN NULL WHEN + - 86 + 82 THEN NULL WHEN - 70 THEN - 12 ELSE 72 END + + CAST ( + MAX ( CAST ( NULL AS REAL ) ) AS INTEGER ) + 59 ) * SUM ( DISTINCT 11 ) * - + 44 + - + COUNT ( * ) + + 67 * 17
----
12754

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2972
SELECT DISTINCT - 52 DIV 41 * + COUNT( * ) * - + 28 * - - 92
----
2576

skipif mysql # not compatible
query I rowsort label-2972
SELECT DISTINCT - 52 / 41 * + COUNT ( * ) * - + 28 * - - 92
----
2576

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2974
SELECT - COUNT( * ) - + 43 AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-2974
SELECT - COUNT ( * ) - + 43 AS col2
----
-44

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2976
SELECT CASE COUNT( * ) WHEN CASE + COUNT( - 42 ) WHEN + 9 / + COUNT( * ) + 25 THEN - NULLIF ( + 84, 39 ) * - NULLIF ( CASE - + ( + + 1 ) WHEN + 4 THEN - CAST( NULL AS SIGNED ) END, SUM( + - 68 ) ) WHEN 62 THEN + 60 WHEN - 70 THEN CASE 25 WHEN 58 / + COUNT( * ) - 21 THEN + 35 + + 63 * - 46 WHEN 25 THEN NULL END END / 46 + 63 THEN 25 + ( 76 ) WHEN 73 + 39 THEN - COALESCE ( - 61, 99 / + 81 + 52 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2976
SELECT CASE COUNT ( * ) WHEN CASE + COUNT ( - 42 ) WHEN + 9 / + COUNT ( * ) + 25 THEN - NULLIF ( + 84, 39 ) * - NULLIF ( CASE - + ( + + 1 ) WHEN + 4 THEN - CAST ( NULL AS INTEGER ) END, SUM ( + - 68 ) ) WHEN 62 THEN + 60 WHEN - 70 THEN CASE 25 WHEN 58 / + COUNT ( * ) - 21 THEN + 35 + + 63 * - 46 WHEN 25 THEN NULL END END / 46 + 63 THEN 25 + ( 76 ) WHEN 73 + 39 THEN - COALESCE ( - 61, 99 / + 81 + 52 ) END AS col0
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2978
SELECT - 88 DIV + 14 + 9 * - 85 * + 78 * 9
----
-537036

skipif mysql # not compatible
query I rowsort label-2978
SELECT - 88 / + 14 + 9 * - 85 * + 78 * 9
----
-537036

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2979
SELECT ALL + 35 DIV + MIN( - 85 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2979
SELECT ALL + 35 / + MIN ( - 85 ) AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2980
SELECT + + 29 DIV - 95
----
0

skipif mysql # not compatible
query I rowsort label-2980
SELECT + + 29 / - 95
----
0

query I rowsort
SELECT DISTINCT + 54 * 20 + 57
----
1137

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2982
SELECT DISTINCT + - CAST( NULL AS SIGNED ) * + + 32 * - + CAST( - 45 AS DECIMAL ) + + + 82 * - 18 * 51 + + 18
----
NULL

skipif mysql # not compatible
query I rowsort label-2982
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * + + 32 * - + CAST ( - 45 AS REAL ) + + + 82 * - 18 * 51 + + 18
----
NULL

query I rowsort
SELECT - + 85 + 15
----
-70

query I rowsort
SELECT ALL - 16 + - + 83 col1
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2985
SELECT DISTINCT + 41 + + ( + 18 ) * 72 * - CAST( NULL AS SIGNED ) * 19 * - 48
----
NULL

skipif mysql # not compatible
query I rowsort label-2985
SELECT DISTINCT + 41 + + ( + 18 ) * 72 * - CAST ( NULL AS INTEGER ) * 19 * - 48
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2986
SELECT - + 36 + ( + COALESCE ( - 3, + 86, ( - 13 ) * COUNT( * ) * - - 4 - 15 ) ) AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-2986
SELECT - + 36 + ( + COALESCE ( - 3, + 86, ( - 13 ) * COUNT ( * ) * - - 4 - 15 ) ) AS col0
----
-39

query I rowsort
SELECT + + 28 * 73 - + ( + 0 )
----
2044

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

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

query I rowsort
SELECT ALL + 47 + + + 10 AS col1
----
57

query I rowsort
SELECT DISTINCT 93 + + - 71 + + 50
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-2991
SELECT COUNT( * ) - MIN( 4 ) AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-2991
SELECT COUNT ( * ) - MIN ( 4 ) AS col0
----
-3

query II rowsort
SELECT - 13 AS col1, + 68 col0
----
-13
68

query I rowsort
SELECT ( + 18 ) * + + 98
----
1764

onlyif mysql # DIV for integer division: 
query I rowsort label-2994
SELECT COALESCE ( - + 3, 91 ) DIV - 53 - 2
----
-2

skipif mysql # not compatible
query I rowsort label-2994
SELECT COALESCE ( - + 3, 91 ) / - 53 - 2
----
-2

query I rowsort
SELECT ALL + 10 * - 52
----
-520

onlyif mysql # aggregate syntax: 
query I rowsort label-2996
SELECT ( + + COUNT( * ) ) - + - 84 + - 70 + 61 * + 66 * + 59 + COALESCE ( + + 86, + 75, + 39 + - 8 ) - 10 * 56
----
237075

skipif mysql # not compatible
query I rowsort label-2996
SELECT ( + + COUNT ( * ) ) - + - 84 + - 70 + 61 * + 66 * + 59 + COALESCE ( + + 86, + 75, + 39 + - 8 ) - 10 * 56
----
237075

onlyif mysql # aggregate syntax: 
query I rowsort label-2997
SELECT ALL 67 - 33 * + 27 * - - NULLIF ( - + 69, MIN( DISTINCT + 6 ) )
----
61546

skipif mysql # not compatible
query I rowsort label-2997
SELECT ALL 67 - 33 * + 27 * - - NULLIF ( - + 69, MIN ( DISTINCT + 6 ) )
----
61546

query I rowsort
SELECT ALL - 38 - 94 AS col0
----
-132

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2999
SELECT ( - 43 ) + - COUNT( * ) + 73 + - 92 - + 27 + - - 26 / + 25 * 7 * + - 76 * - CASE + - 35 WHEN - + 78 THEN + + 40 * + CASE 69 WHEN + 91 * - 75 THEN - - 56 WHEN + + CAST( NULL AS SIGNED ) THEN - CAST( - 6 AS SIGNED ) END + + 82 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2999
SELECT ( - 43 ) + - COUNT ( * ) + 73 + - 92 - + 27 + - - 26 / + 25 * 7 * + - 76 * - CASE + - 35 WHEN - + 78 THEN + + 40 * + CASE 69 WHEN + 91 * - 75 THEN - - 56 WHEN + + CAST ( NULL AS INTEGER ) THEN - CAST ( - 6 AS INTEGER ) END + + 82 ELSE NULL END AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3001
SELECT ALL 95 * - MIN( + 2 ) * - 33
----
6270

skipif mysql # not compatible
query I rowsort label-3001
SELECT ALL 95 * - MIN ( + 2 ) * - 33
----
6270

onlyif mysql # aggregate syntax: 
query I rowsort label-3002
SELECT + COUNT( * ) * + 51 + + 41 + + 17 AS col0
----
109

skipif mysql # not compatible
query I rowsort label-3002
SELECT + COUNT ( * ) * + 51 + + 41 + + 17 AS col0
----
109

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

skipif mysql # not compatible
query I rowsort label-3003
SELECT DISTINCT - MIN ( 82 )
----
-82

query I rowsort
SELECT 91 * + + 34 AS col1
----
3094

query I rowsort
SELECT 91 + - 33 + + - 56
----
2

query I rowsort
SELECT ALL - + 69 col2
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-3007
SELECT ALL + COUNT( * ) + - 78 - - 37 AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-3007
SELECT ALL + COUNT ( * ) + - 78 - - 37 AS col2
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3008
SELECT ALL + + CAST( + 18 AS SIGNED ) + + + CASE + 65 WHEN - - 40 THEN 84 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3008
SELECT ALL + + CAST ( + 18 AS INTEGER ) + + + CASE + 65 WHEN - - 40 THEN 84 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL + - CASE - - ( - 96 ) WHEN + + ( - 88 ) THEN NULL ELSE + - 76 - + 37 END * - 21
----
-2373

onlyif mysql # aggregate syntax: 
query I rowsort label-3010
SELECT DISTINCT + 78 + - COUNT( * ) * + + 8
----
70

skipif mysql # not compatible
query I rowsort label-3010
SELECT DISTINCT + 78 + - COUNT ( * ) * + + 8
----
70

query I rowsort
SELECT 17 * - - 33 - + + 45
----
516

onlyif mysql # aggregate syntax: 
query II rowsort label-3012
SELECT - - COUNT( * ) * + 23 + - 48 AS col2, + 96 * - 50 AS col0
----
-25
-4800

skipif mysql # not compatible
query II rowsort label-3012
SELECT - - COUNT ( * ) * + 23 + - 48 AS col2, + 96 * - 50 AS col0
----
-25
-4800

query II rowsort
SELECT - + 63 AS col2, 29 + - + 83 + - 40
----
-63
-94

query I rowsort
SELECT ALL - + 95 + + - 96 * 49 AS col2
----
-4799

query I rowsort
SELECT ALL - ( + NULLIF ( 85, + 41 * - AVG ( - ( + - 76 ) ) ) )
----
-85

query I rowsort
SELECT ALL + + ( - 91 ) + 95 AS col1
----
4

query II rowsort
SELECT 40 * 41 - - 13, 33 AS col0
----
1653
33

onlyif mysql # DIV for integer division: 
query I rowsort label-3018
SELECT DISTINCT - ( - 19 ) DIV 91 DIV - - ( 28 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3018
SELECT DISTINCT - ( - 19 ) / 91 / - - ( 28 ) AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3019
SELECT + 43 DIV - 6
----
-7

skipif mysql # not compatible
query I rowsort label-3019
SELECT + 43 / - 6
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-3020
SELECT COUNT( DISTINCT + ( + - 58 ) ) + + 36 AS col0
----
37

skipif mysql # not compatible
query I rowsort label-3020
SELECT COUNT ( DISTINCT + ( + - 58 ) ) + + 36 AS col0
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3021
SELECT 96 + + - 18 + ( 5 ) + - COUNT( * ), CAST( - COUNT( * ) AS SIGNED ) col0
----
82
-1

skipif mysql # not compatible
query II rowsort label-3021
SELECT 96 + + - 18 + ( 5 ) + - COUNT ( * ), CAST ( - COUNT ( * ) AS INTEGER ) col0
----
82
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-3022
SELECT MAX( - - ( - 96 ) ) - - - COUNT( * ), 46 * - - 79 * 27 AS col0
----
-97
98118

skipif mysql # not compatible
query II rowsort label-3022
SELECT MAX ( - - ( - 96 ) ) - - - COUNT ( * ), 46 * - - 79 * 27 AS col0
----
-97
98118

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3023
SELECT CASE + 36 WHEN + - 46 * + - CAST( NULL AS SIGNED ) THEN + 44 - - 95 WHEN - 50 / + ( + COUNT( * ) ) * - - 50 THEN NULL ELSE NULL END * 42 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3023
SELECT CASE + 36 WHEN + - 46 * + - CAST ( NULL AS INTEGER ) THEN + 44 - - 95 WHEN - 50 / + ( + COUNT ( * ) ) * - - 50 THEN NULL ELSE NULL END * 42 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3024
SELECT ALL 62 * - ( - 62 ) * MAX( - 79 ) AS col1
----
-303676

skipif mysql # not compatible
query I rowsort label-3024
SELECT ALL 62 * - ( - 62 ) * MAX ( - 79 ) AS col1
----
-303676

query II rowsort
SELECT - 19 AS col2, + 74 * + 18 AS col0
----
-19
1332

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3027
SELECT 72 + 59 AS col2, - ( CAST( - 74 AS SIGNED ) ) * - COUNT( * ) - - 72 + 18 col0
----
131
16

skipif mysql # not compatible
query II rowsort label-3027
SELECT 72 + 59 AS col2, - ( CAST ( - 74 AS INTEGER ) ) * - COUNT ( * ) - - 72 + 18 col0
----
131
16

query I rowsort
SELECT ALL + 51 * - 97 col0
----
-4947

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

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

query II rowsort
SELECT ALL - 36 AS col2, 48
----
-36
48

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3031
SELECT - 61 * - 2 + + + CAST( + 13 AS SIGNED ) AS col0, + 26 AS col0
----
135
26

skipif mysql # not compatible
query II rowsort label-3031
SELECT - 61 * - 2 + + + CAST ( + 13 AS INTEGER ) AS col0, + 26 AS col0
----
135
26

onlyif mysql # DIV for integer division: 
query I rowsort label-3032
SELECT 80 DIV - 3 + + 24
----
-2

skipif mysql # not compatible
query I rowsort label-3032
SELECT 80 / - 3 + + 24
----
-2

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3034
SELECT ( + 30 ) DIV - 22
----
-1

skipif mysql # not compatible
query I rowsort label-3034
SELECT ( + 30 ) / - 22
----
-1

query I rowsort
SELECT ALL 60 + - ( - + 57 )
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-3036
SELECT DISTINCT 19 + + ( ( + - COUNT( 59 ) ) )
----
18

skipif mysql # not compatible
query I rowsort label-3036
SELECT DISTINCT 19 + + ( ( + - COUNT ( 59 ) ) )
----
18

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3038
SELECT ALL - COUNT( * ) + + - 70 AS col0, 33
----
-71
33

skipif mysql # not compatible
query II rowsort label-3038
SELECT ALL - COUNT ( * ) + + - 70 AS col0, 33
----
-71
33

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

skipif mysql # not compatible
query I rowsort label-3039
SELECT - COUNT ( * ) * + - 51
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3040
SELECT + 47 * - CAST( MIN( 91 ) AS SIGNED ) + - - NULLIF ( + - 59, - + 90 * 32 - + 92 + + + 39 * + - 68 * + 38 - + 13 + + COUNT( * ) - - 71 ) - 64 * - 40 - 77
----
-1853

skipif mysql # not compatible
query I rowsort label-3040
SELECT + 47 * - CAST ( MIN ( 91 ) AS INTEGER ) + - - NULLIF ( + - 59, - + 90 * 32 - + 92 + + + 39 * + - 68 * + 38 - + 13 + + COUNT ( * ) - - 71 ) - 64 * - 40 - 77
----
-1853

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3041
SELECT 53 AS col1, - 67 * - 96 + - - CAST( - SUM( ALL - 19 ) AS SIGNED ) AS col2
----
53
6451

skipif mysql # not compatible
query II rowsort label-3041
SELECT 53 AS col1, - 67 * - 96 + - - CAST ( - SUM ( ALL - 19 ) AS INTEGER ) AS col2
----
53
6451

query II rowsort
SELECT + + 98, 98 AS col0
----
98
98

query I rowsort
SELECT ALL 94 + - + 25 * 52 AS col0
----
-1206

query II rowsort
SELECT + - 85 AS col1, 44 * + 72 * 60 AS col2
----
-85
190080

query I rowsort
SELECT + 77 * + - 70 AS col2
----
-5390

query I rowsort
SELECT ALL - 14 + - 36 * + 99 * + - 98 AS col2
----
349258

query I rowsort
SELECT DISTINCT 65 + 73
----
138

query II rowsort
SELECT ALL - 95, 58 AS col0
----
-95
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3049
SELECT ALL NULLIF ( CAST( NULL AS SIGNED ), - - 56 * + + 23 * 40 * - - 65 + - 94 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3049
SELECT ALL NULLIF ( CAST ( NULL AS INTEGER ), - - 56 * + + 23 * 40 * - - 65 + - 94 )
----
NULL

query I rowsort
SELECT - 13 - - ( + 19 ) + - + 9 AS col0
----
-3

query I rowsort
SELECT + 80 + - 20 * + + 91
----
-1740

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3052
SELECT - CAST( 7 AS SIGNED ) + + + 90 + + + COUNT( * ) AS col2
----
84

skipif mysql # not compatible
query I rowsort label-3052
SELECT - CAST ( 7 AS INTEGER ) + + + 90 + + + COUNT ( * ) AS col2
----
84

query I rowsort
SELECT - - 87 - ( + 1 ) * + 35 AS col0
----
52

query II rowsort
SELECT - - 11, 44 AS col2
----
11
44

onlyif mysql # aggregate syntax: 
query I rowsort label-3055
SELECT - - MIN( ALL 71 ) + + + 47 col0
----
118

skipif mysql # not compatible
query I rowsort label-3055
SELECT - - MIN ( ALL 71 ) + + + 47 col0
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-3056
SELECT ALL - 19 * + - COUNT( DISTINCT 95 )
----
19

skipif mysql # not compatible
query I rowsort label-3056
SELECT ALL - 19 * + - COUNT ( DISTINCT 95 )
----
19

query I rowsort
SELECT - 68 * + - 87 AS col2
----
5916

query I rowsort
SELECT ALL NULLIF ( + ( - 41 ), + 43 )
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-3059
SELECT DISTINCT NULLIF ( + MAX( + 72 ), - - 94 )
----
72

skipif mysql # not compatible
query I rowsort label-3059
SELECT DISTINCT NULLIF ( + MAX ( + 72 ), - - 94 )
----
72

query I rowsort
SELECT - 20 + - 97 AS col1
----
-117

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3061
SELECT - COUNT( * ) * + 50 DIV - + 2
----
25

skipif mysql # not compatible
query I rowsort label-3061
SELECT - COUNT ( * ) * + 50 / - + 2
----
25

query I rowsort
SELECT - ( + 49 ) * - - 30
----
-1470

onlyif mysql # aggregate syntax: 
query II rowsort label-3063
SELECT - NULLIF ( - + 99, 56 / + + COUNT( * ) ) + + + 90 AS col2, - 81 + 91 AS col2
----
189
10

skipif mysql # not compatible
query II rowsort label-3063
SELECT - NULLIF ( - + 99, 56 / + + COUNT ( * ) ) + + + 90 AS col2, - 81 + 91 AS col2
----
189
10

query I rowsort
SELECT - 2 + 97 + - 56 * - + 7 * - - 43 * 78 AS col0
----
1314863

query II rowsort
SELECT ALL ( + - 58 ) AS col2, - 50
----
-58
-50

onlyif mysql # aggregate syntax: 
query II rowsort label-3066
SELECT + 84 * + 54 AS col1, - CASE - 20 WHEN COUNT( * ) * 52 THEN NULL WHEN - 52 + - 92 * + 38 THEN NULL ELSE 80 END AS col2
----
4536
-80

skipif mysql # not compatible
query II rowsort label-3066
SELECT + 84 * + 54 AS col1, - CASE - 20 WHEN COUNT ( * ) * 52 THEN NULL WHEN - 52 + - 92 * + 38 THEN NULL ELSE 80 END AS col2
----
4536
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3067
SELECT ( - + COALESCE ( - - 91, + - 0, - CAST( NULL AS SIGNED ) + + 33 ) )
----
-91

skipif mysql # not compatible
query I rowsort label-3067
SELECT ( - + COALESCE ( - - 91, + - 0, - CAST ( NULL AS INTEGER ) + + 33 ) )
----
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-3068
SELECT ALL + 59 * 27 DIV + + 41 + - + 89 AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-3068
SELECT ALL + 59 * 27 / + + 41 + - + 89 AS col2
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3069
SELECT ( 51 ) DIV COALESCE ( - 69, 68 ) - - - 85 DIV - CASE - COALESCE ( AVG ( DISTINCT 13 ), 57 * + + COUNT( * ) + + + 17 + 88 ) WHEN 67 * - - 93 DIV + MIN( + 84 ) THEN 65 WHEN - - 92 THEN + 57 ELSE 92 END + COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3069
SELECT ( 51 ) / COALESCE ( - 69, 68 ) - - - 85 / - CASE - COALESCE ( AVG ( DISTINCT 13 ), 57 * + + COUNT ( * ) + + + 17 + 88 ) WHEN 67 * - - 93 / + MIN ( + 84 ) THEN 65 WHEN - - 92 THEN + 57 ELSE 92 END + COUNT ( * ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3070
SELECT DISTINCT 81 * - ( + 94 ) * COUNT( * ) + - 81
----
-7695

skipif mysql # not compatible
query I rowsort label-3070
SELECT DISTINCT 81 * - ( + 94 ) * COUNT ( * ) + - 81
----
-7695

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3071
SELECT ALL - 93 * - 47 + COALESCE ( - CAST( - 64 AS SIGNED ), + 60 ) AS col2
----
4435

skipif mysql # not compatible
query I rowsort label-3071
SELECT ALL - 93 * - 47 + COALESCE ( - CAST ( - 64 AS INTEGER ), + 60 ) AS col2
----
4435

query II rowsort
SELECT - - 73 + - 28 col1, ( - - 69 ) AS col1
----
45
69

query I rowsort
SELECT + 99 * 85 * + + 34 - 14
----
286096

query I rowsort
SELECT + - 92 - - 92 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3075
SELECT + + 17 - CAST( - - 56 AS SIGNED ) AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-3075
SELECT + + 17 - CAST ( - - 56 AS INTEGER ) AS col2
----
-39

query I rowsort
SELECT + 71 * + 41 * 91
----
264901

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3077
SELECT DISTINCT 10 DIV + 98 * + - 57 + - MIN( DISTINCT - 22 ) * COUNT( * )
----
22

skipif mysql # not compatible
query I rowsort label-3077
SELECT DISTINCT 10 / + 98 * + - 57 + - MIN ( DISTINCT - 22 ) * COUNT ( * )
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3078
SELECT ALL + 55 * + - 61 - COUNT( * ) + + ( - 59 ) * 47 + + ( CAST( 71 AS SIGNED ) ) - + 27 col0, - 11 + - 5
----
-6085
-16

skipif mysql # not compatible
query II rowsort label-3078
SELECT ALL + 55 * + - 61 - COUNT ( * ) + + ( - 59 ) * 47 + + ( CAST ( 71 AS INTEGER ) ) - + 27 col0, - 11 + - 5
----
-6085
-16

query I rowsort
SELECT - + 98 * + 18 + 76 + - - 11 * - 69
----
-2447

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3080
SELECT ALL COALESCE ( - - 29, + + 54 ) * + - 60 - 24 + - - MAX( CAST( - COALESCE ( + + 1, 31 * - 85 ) AS SIGNED ) ) - - 94 * - 8
----
-2517

skipif mysql # not compatible
query I rowsort label-3080
SELECT ALL COALESCE ( - - 29, + + 54 ) * + - 60 - 24 + - - MAX ( CAST ( - COALESCE ( + + 1, 31 * - 85 ) AS INTEGER ) ) - - 94 * - 8
----
-2517

query I rowsort
SELECT + 98 + + 56 + - 8 AS col1
----
146

query I rowsort
SELECT + - 40 * - ( + + 23 ) * + - 30 AS col1
----
-27600

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3083
SELECT DISTINCT - CAST( NULL AS DECIMAL ) / 89 * + 94 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3083
SELECT DISTINCT - CAST ( NULL AS REAL ) / 89 * + 94 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3084
SELECT ALL + + COUNT( * ) * + 59 * - + 46
----
-2714

skipif mysql # not compatible
query I rowsort label-3084
SELECT ALL + + COUNT ( * ) * + 59 * - + 46
----
-2714

onlyif mysql # aggregate syntax: 
query I rowsort label-3085
SELECT 80 * + 16 + - + COUNT( * )
----
1279

skipif mysql # not compatible
query I rowsort label-3085
SELECT 80 * + 16 + - + COUNT ( * )
----
1279

query II rowsort
SELECT ALL + 10 * COALESCE ( + - 74, - 42 + - - 4 - + 52 * - 51 * 79 ), + 64 AS col0
----
-740
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3087
SELECT + ( CAST( NULL AS SIGNED ) ) * + 80
----
NULL

skipif mysql # not compatible
query I rowsort label-3087
SELECT + ( CAST ( NULL AS INTEGER ) ) * + 80
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3088
SELECT - - 41 + 7 - + + COUNT( * ) * + CAST( - + 59 AS SIGNED ) * - - 12 AS col0
----
756

skipif mysql # not compatible
query I rowsort label-3088
SELECT - - 41 + 7 - + + COUNT ( * ) * + CAST ( - + 59 AS INTEGER ) * - - 12 AS col0
----
756

query I rowsort
SELECT ALL NULLIF ( 19, - - 81 * + - 78 * - - 28 * + 68 * - 23 ) col2
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3090
SELECT ALL 50 * - CAST( NULL AS SIGNED ) * + 67 * MAX( - 11 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3090
SELECT ALL 50 * - CAST ( NULL AS INTEGER ) * + 67 * MAX ( - 11 ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT ( + 50 ) AS col0
----
50

query I rowsort
SELECT - ( 93 ) AS col2
----
-93

query II rowsort
SELECT - 14 * + 54 * 40, 5 AS col1
----
-30240
5

onlyif mysql # DIV for integer division: 
query I rowsort label-3094
SELECT + 26 + + + 46 DIV - - 74 * + ( + 33 ) * + 52
----
26

skipif mysql # not compatible
query I rowsort label-3094
SELECT + 26 + + + 46 / - - 74 * + ( + 33 ) * + 52
----
26

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3095
SELECT + CASE SUM( ALL + 87 ) WHEN 37 * - ( COUNT( * ) ) THEN 66 / CAST( + + 73 AS DECIMAL ) + - 76 END - 40
----
NULL

skipif mysql # not compatible
query I rowsort label-3095
SELECT + CASE SUM ( ALL + 87 ) WHEN 37 * - ( COUNT ( * ) ) THEN 66 / CAST ( + + 73 AS REAL ) + - 76 END - 40
----
NULL

query II rowsort
SELECT - 73, - 6 col2
----
-73
-6

query I rowsort
SELECT + NULLIF ( 28, - 8 ) + 80 AS col2
----
108

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3098
SELECT - 8 + 69 + - CAST( NULL AS DECIMAL ) AS col1, 60 AS col2
----
NULL
60

skipif mysql # not compatible
query II rowsort label-3098
SELECT - 8 + 69 + - CAST ( NULL AS REAL ) AS col1, 60 AS col2
----
NULL
60

query I rowsort
SELECT DISTINCT + 43 + 65 + + 82 AS col0
----
190

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3100
SELECT - 78 DIV - + ( - CAST( + 35 AS SIGNED ) ) AS col2, + 37 + - SUM( DISTINCT + 81 )
----
-2
-44

skipif mysql # not compatible
query II rowsort label-3100
SELECT - 78 / - + ( - CAST ( + 35 AS INTEGER ) ) AS col2, + 37 + - SUM ( DISTINCT + 81 )
----
-2
-44

query I rowsort
SELECT - 84 + - - NULLIF ( - 57, + + AVG ( DISTINCT + 33 ) ) AS col2
----
-141

onlyif mysql # aggregate syntax: 
query I rowsort label-3102
SELECT ALL + COUNT( * ) + - 79 AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-3102
SELECT ALL + COUNT ( * ) + - 79 AS col1
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3103
SELECT - CAST( 9 AS SIGNED ) + 5 + + COALESCE ( + 83, - - 67 * + 63, 41 ) AS col2
----
79

skipif mysql # not compatible
query I rowsort label-3103
SELECT - CAST ( 9 AS INTEGER ) + 5 + + COALESCE ( + 83, - - 67 * + 63, 41 ) AS col2
----
79

onlyif mysql # aggregate syntax: 
query II rowsort label-3104
SELECT ALL - 89 * + SUM( ALL 18 ) col0, - 20
----
-1602
-20

skipif mysql # not compatible
query II rowsort label-3104
SELECT ALL - 89 * + SUM ( ALL 18 ) col0, - 20
----
-1602
-20

query I rowsort
SELECT - 48 + + + 15 AS col0
----
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-3106
SELECT ALL - 37 DIV - 50 + + + 49 AS col2
----
49

skipif mysql # not compatible
query I rowsort label-3106
SELECT ALL - 37 / - 50 + + + 49 AS col2
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-3107
SELECT - CASE NULLIF ( - 4, - 37 + + - 94 / - 7 + COUNT( * ) ) WHEN 84 THEN NULL WHEN + + 33 THEN + + 33 * 12 ELSE NULL END * 66
----
NULL

skipif mysql # not compatible
query I rowsort label-3107
SELECT - CASE NULLIF ( - 4, - 37 + + - 94 / - 7 + COUNT ( * ) ) WHEN 84 THEN NULL WHEN + + 33 THEN + + 33 * 12 ELSE NULL END * 66
----
NULL

query II rowsort
SELECT + 52 AS col2, ( + 5 ) AS col2
----
52
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3109
SELECT DISTINCT + MAX( - ( - 41 ) ) col1
----
41

skipif mysql # not compatible
query I rowsort label-3109
SELECT DISTINCT + MAX ( - ( - 41 ) ) col1
----
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3110
SELECT + 72 * - 5 + 90 + + - COALESCE ( + - COUNT( + + 13 ), 0 ) + + COALESCE ( + COUNT( * ), 90 ) DIV 18 * - 6 + + - ( 77 )
----
-346

skipif mysql # not compatible
query I rowsort label-3110
SELECT + 72 * - 5 + 90 + + - COALESCE ( + - COUNT ( + + 13 ), 0 ) + + COALESCE ( + COUNT ( * ), 90 ) / 18 * - 6 + + - ( 77 )
----
-346

onlyif mysql # aggregate syntax: 
query I rowsort label-3111
SELECT DISTINCT + COUNT( - - 19 )
----
1

skipif mysql # not compatible
query I rowsort label-3111
SELECT DISTINCT + COUNT ( - - 19 )
----
1

query I rowsort
SELECT ALL 99 * + - ( - - ( - 84 ) ) * 14
----
116424

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3113
SELECT ALL - + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3113
SELECT ALL - + CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT DISTINCT 17 - + 84
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3115
SELECT ALL - + COALESCE ( + + 71, - 69 - + - 99 * 45 - + 8 DIV 35 - - 6, - - ( + NULLIF ( 4, ( + NULLIF ( - 62, - CAST( + ( - + ( - 50 ) ) AS SIGNED ) + - 36 + + 47 * 38 ) ) * + COUNT( * ) ) ), + 95 )
----
-71

skipif mysql # not compatible
query I rowsort label-3115
SELECT ALL - + COALESCE ( + + 71, - 69 - + - 99 * 45 - + 8 / 35 - - 6, - - ( + NULLIF ( 4, ( + NULLIF ( - 62, - CAST ( + ( - + ( - 50 ) ) AS INTEGER ) + - 36 + + 47 * 38 ) ) * + COUNT ( * ) ) ), + 95 )
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-3116
SELECT ALL - MAX( 27 ) AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-3116
SELECT ALL - MAX ( 27 ) AS col0
----
-27

query I rowsort
SELECT - ( 82 )
----
-82

query I rowsort
SELECT ALL - + 96 * - 9
----
864

query I rowsort
SELECT - - 7 * + 86 - 94 * - 57 + - 37 AS col2
----
5923

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3120
SELECT - 71 * + COALESCE ( 35, - 26 / - - 51 ) * SUM( DISTINCT - 2 ) + + - 48 + + 92 + + - 68 + CAST( NULL AS SIGNED ) - - - MIN( DISTINCT 24 ) * - - 91 * + ( - + 35 ) + + 95 + - 82 * - - 77 / + - ( - - 42 ) + - 80 + + SUM( 95 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3120
SELECT - 71 * + COALESCE ( 35, - 26 / - - 51 ) * SUM ( DISTINCT - 2 ) + + - 48 + + 92 + + - 68 + CAST ( NULL AS INTEGER ) - - - MIN ( DISTINCT 24 ) * - - 91 * + ( - + 35 ) + + 95 + - 82 * - - 77 / + - ( - - 42 ) + - 80 + + SUM ( 95 )
----
NULL

query I rowsort
SELECT + 90 col0
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3122
SELECT ALL COUNT( * ) DIV - 50 * - 71 * - COALESCE ( + 92, - NULLIF ( - CAST( NULL AS SIGNED ), - 18 * + + 36 + + + 21 ) ) + - 25
----
-25

skipif mysql # not compatible
query I rowsort label-3122
SELECT ALL COUNT ( * ) / - 50 * - 71 * - COALESCE ( + 92, - NULLIF ( - CAST ( NULL AS INTEGER ), - 18 * + + 36 + + + 21 ) ) + - 25
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-3123
SELECT ALL - SUM( ALL 87 ) AS col0
----
-87

skipif mysql # not compatible
query I rowsort label-3123
SELECT ALL - SUM ( ALL 87 ) AS col0
----
-87

query I rowsort
SELECT 82 * 35
----
2870

query I rowsort
SELECT DISTINCT 44 + + 29 + + - 44 * - 34
----
1569

query I rowsort
SELECT ALL 3 * + 67 AS col0
----
201

onlyif mysql # DIV for integer division: 
query I rowsort label-3127
SELECT 66 + + 89 DIV 95
----
66

skipif mysql # not compatible
query I rowsort label-3127
SELECT 66 + + 89 / 95
----
66

query I rowsort
SELECT ALL 97 * 21 AS col0
----
2037

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3129
SELECT 72 * 40 * - + NULLIF ( + 69, COALESCE ( 39, CAST( NULL AS DECIMAL ) - - - 25, + 26 ) - 6 + + ( + 88 ) + 1 / - - 66 ) AS col1, - 52
----
-198720
-52

skipif mysql # not compatible
query II rowsort label-3129
SELECT 72 * 40 * - + NULLIF ( + 69, COALESCE ( 39, CAST ( NULL AS REAL ) - - - 25, + 26 ) - 6 + + ( + 88 ) + 1 / - - 66 ) AS col1, - 52
----
-198720
-52

query I rowsort
SELECT 8 + - 89
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-3131
SELECT ( + COALESCE ( - ( + 24 ), + 33 * - MAX( ALL + - 69 ) - 98 ) ) - - 10
----
-14

skipif mysql # not compatible
query I rowsort label-3131
SELECT ( + COALESCE ( - ( + 24 ), + 33 * - MAX ( ALL + - 69 ) - 98 ) ) - - 10
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-3132
SELECT DISTINCT 32 + NULLIF ( - 26, - COUNT( * ) )
----
6

skipif mysql # not compatible
query I rowsort label-3132
SELECT DISTINCT 32 + NULLIF ( - 26, - COUNT ( * ) )
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-3133
SELECT ALL MIN( ALL + + 64 ) + + - COUNT( 93 ) AS col0, - 47
----
63
-47

skipif mysql # not compatible
query II rowsort label-3133
SELECT ALL MIN ( ALL + + 64 ) + + - COUNT ( 93 ) AS col0, - 47
----
63
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-3134
SELECT ALL 67 + + - 60 * + + COUNT( * ) * + 97 AS col1
----
-5753

skipif mysql # not compatible
query I rowsort label-3134
SELECT ALL 67 + + - 60 * + + COUNT ( * ) * + 97 AS col1
----
-5753

query I rowsort
SELECT 97 * - - 50
----
4850

onlyif mysql # aggregate syntax: 
query I rowsort label-3136
SELECT COUNT( * ) + - - 13 + 72 * + + 19 AS col1
----
1382

skipif mysql # not compatible
query I rowsort label-3136
SELECT COUNT ( * ) + - - 13 + 72 * + + 19 AS col1
----
1382

onlyif mysql # aggregate syntax: 
query I rowsort label-3137
SELECT ALL - 57 * + + COALESCE ( - 14, - - 54 + + COUNT( * ) - - 93, 35 * + 25 * 74 )
----
798

skipif mysql # not compatible
query I rowsort label-3137
SELECT ALL - 57 * + + COALESCE ( - 14, - - 54 + + COUNT ( * ) - - 93, 35 * + 25 * 74 )
----
798

onlyif mysql # DIV for integer division: 
query II rowsort label-3138
SELECT ALL 31 + + - 14, 66 DIV 6 col0
----
17
11

skipif mysql # not compatible
query II rowsort label-3138
SELECT ALL 31 + + - 14, 66 / 6 col0
----
17
11

onlyif mysql # aggregate syntax: 
query I rowsort label-3139
SELECT MAX( 80 ) - - COUNT( * ) - + 77 + 51 AS col0
----
55

skipif mysql # not compatible
query I rowsort label-3139
SELECT MAX ( 80 ) - - COUNT ( * ) - + 77 + 51 AS col0
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3140
SELECT CAST( - SUM( DISTINCT + + 43 ) AS SIGNED ) + + 91 - - 49 * - - 80 + + - 97 * 61
----
-1949

skipif mysql # not compatible
query I rowsort label-3140
SELECT CAST ( - SUM ( DISTINCT + + 43 ) AS INTEGER ) + + 91 - - 49 * - - 80 + + - 97 * 61
----
-1949

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3141
SELECT 36 * + + CAST( + 88 AS SIGNED ) AS col1
----
3168

skipif mysql # not compatible
query I rowsort label-3141
SELECT 36 * + + CAST ( + 88 AS INTEGER ) AS col1
----
3168

query I rowsort
SELECT DISTINCT + - 99 * - - 88 col1
----
-8712

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3143
SELECT + 28 * - 35 / - CAST( NULL AS SIGNED ) - COALESCE ( 27, + + ( - 15 ) / - + 28 + - - 76 ) + - + COUNT( * ) * - 74 * - - CAST( NULL AS SIGNED ) + + COUNT( DISTINCT + - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3143
SELECT + 28 * - 35 / - CAST ( NULL AS INTEGER ) - COALESCE ( 27, + + ( - 15 ) / - + 28 + - - 76 ) + - + COUNT ( * ) * - 74 * - - CAST ( NULL AS INTEGER ) + + COUNT ( DISTINCT + - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT - 44 * + 38 + - - 41 AS col1
----
-1631

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3145
SELECT - COALESCE ( 19, 24 + + COUNT( * ), + - 90 ) DIV - 73 - 66 DIV + ( + + 62 ) + - MIN( + 87 ) AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-3145
SELECT - COALESCE ( 19, 24 + + COUNT ( * ), + - 90 ) / - 73 - 66 / + ( + + 62 ) + - MIN ( + 87 ) AS col0
----
-88

query I rowsort
SELECT ALL - + NULLIF ( - + 28, 33 ) AS col1
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3147
SELECT DISTINCT CAST( NULL AS SIGNED ) * + 34, CASE - 51 WHEN + CAST( NULL AS SIGNED ) THEN - MAX( DISTINCT 38 ) WHEN COUNT( * ) * + - 38 * - 26 + + - 28 THEN CAST( NULL AS SIGNED ) ELSE 56 - + COUNT( + - ( - CASE 61 WHEN - + 33 * + 70 * - 23 - + 15 THEN NULL ELSE - 47 END ) ) END + 61 col0
----
NULL
116

skipif mysql # not compatible
query II rowsort label-3147
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 34, CASE - 51 WHEN + CAST ( NULL AS INTEGER ) THEN - MAX ( DISTINCT 38 ) WHEN COUNT ( * ) * + - 38 * - 26 + + - 28 THEN CAST ( NULL AS INTEGER ) ELSE 56 - + COUNT ( + - ( - CASE 61 WHEN - + 33 * + 70 * - 23 - + 15 THEN NULL ELSE - 47 END ) ) END + 61 col0
----
NULL
116

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3148
SELECT ALL + 46 DIV - 44 AS col1, + COUNT( * ) AS col1
----
-1
1

skipif mysql # not compatible
query II rowsort label-3148
SELECT ALL + 46 / - 44 AS col1, + COUNT ( * ) AS col1
----
-1
1

onlyif mysql # DIV for integer division: 
query II rowsort label-3149
SELECT - - 61 DIV 29 + + 3 + - 99, - ( - 0 ) AS col2
----
-94
0

skipif mysql # not compatible
query II rowsort label-3149
SELECT - - 61 / 29 + + 3 + - 99, - ( - 0 ) AS col2
----
-94
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3150
SELECT - 89 DIV COUNT( * ) AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-3150
SELECT - 89 / COUNT ( * ) AS col2
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-3151
SELECT 40 + + COUNT( * )
----
41

skipif mysql # not compatible
query I rowsort label-3151
SELECT 40 + + COUNT ( * )
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3152
SELECT - - ( - + 83 ) * - NULLIF ( + 64, MIN( 22 ) - CAST( NULL AS SIGNED ) ) + + 97 * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3152
SELECT - - ( - + 83 ) * - NULLIF ( + 64, MIN ( 22 ) - CAST ( NULL AS INTEGER ) ) + + 97 * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3153
SELECT COUNT( * ) - + COUNT( * ) col1
----
0

skipif mysql # not compatible
query I rowsort label-3153
SELECT COUNT ( * ) - + COUNT ( * ) col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3154
SELECT CASE + - 42 WHEN - 89 / - MAX( + 21 ) THEN - COUNT( * ) * + + 45 + + 81 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3154
SELECT CASE + - 42 WHEN - 89 / - MAX ( + 21 ) THEN - COUNT ( * ) * + + 45 + + 81 END AS col2
----
NULL

query I rowsort
SELECT + 73 * + 14 + + + 40 AS col2
----
1062

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3156
SELECT DISTINCT + CASE 25 WHEN + COUNT( * ) / - AVG ( + 72 ) + 35 THEN - COUNT( * ) * 93 / - 67 END + - 80 * COALESCE ( - 13, - COALESCE ( - 60, + + COALESCE ( - + 97, + 4 * CAST( NULL AS SIGNED ) ), - 10 - + 74 ) - 25 * + - 68 ) * 56 + + 88
----
NULL

skipif mysql # not compatible
query I rowsort label-3156
SELECT DISTINCT + CASE 25 WHEN + COUNT ( * ) / - AVG ( + 72 ) + 35 THEN - COUNT ( * ) * 93 / - 67 END + - 80 * COALESCE ( - 13, - COALESCE ( - 60, + + COALESCE ( - + 97, + 4 * CAST ( NULL AS INTEGER ) ), - 10 - + 74 ) - 25 * + - 68 ) * 56 + + 88
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3157
SELECT - ( - CASE - 35 WHEN - CASE AVG ( - 63 ) WHEN + 23 THEN NULL ELSE - 86 * + - 94 END * + 43 THEN + 19 * ( - 53 ) - 90 / MIN( + 75 ) + - - 27 + 86 * - CASE CASE CAST( 87 AS SIGNED ) WHEN COUNT( * ) - 97 + - 97 * 34 THEN COALESCE ( + 49, 59, - 52 ) ELSE NULL END WHEN 42 + - COUNT( * ) * 67 THEN + 74 WHEN - 51 THEN - CASE - 33 WHEN + COUNT( * ) * + CAST( NULL AS SIGNED ) + + COUNT( * ) THEN - 40 ELSE NULL END END * 45 * 3 END ) * 20
----
NULL

skipif mysql # not compatible
query I rowsort label-3157
SELECT - ( - CASE - 35 WHEN - CASE AVG ( - 63 ) WHEN + 23 THEN NULL ELSE - 86 * + - 94 END * + 43 THEN + 19 * ( - 53 ) - 90 / MIN ( + 75 ) + - - 27 + 86 * - CASE CASE CAST ( 87 AS INTEGER ) WHEN COUNT ( * ) - 97 + - 97 * 34 THEN COALESCE ( + 49, 59, - 52 ) ELSE NULL END WHEN 42 + - COUNT ( * ) * 67 THEN + 74 WHEN - 51 THEN - CASE - 33 WHEN + COUNT ( * ) * + CAST ( NULL AS INTEGER ) + + COUNT ( * ) THEN - 40 ELSE NULL END END * 45 * 3 END ) * 20
----
NULL

query I rowsort
SELECT + 9 + - 59 * + 70 AS col2
----
-4121

onlyif mysql # aggregate syntax: 
query I rowsort label-3159
SELECT ALL - COUNT( DISTINCT + 89 ) + - 9 + - NULLIF ( 82, 2 + + COUNT( * ) )
----
-92

skipif mysql # not compatible
query I rowsort label-3159
SELECT ALL - COUNT ( DISTINCT + 89 ) + - 9 + - NULLIF ( 82, 2 + + COUNT ( * ) )
----
-92

query I rowsort
SELECT DISTINCT + 6 * - - 9
----
54

query I rowsort
SELECT 66 * + + 16 AS col1
----
1056

query I rowsort
SELECT 72 + - 36 + - 62
----
-26

onlyif mysql # DIV for integer division: 
query II rowsort label-3163
SELECT 39, 66 DIV ( - + 69 ) AS col0
----
39
0

skipif mysql # not compatible
query II rowsort label-3163
SELECT 39, 66 / ( - + 69 ) AS col0
----
39
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3164
SELECT ALL COUNT( * ) + + 27 * - 82 * + 48 + 44, 7 col2
----
-106227
7

skipif mysql # not compatible
query II rowsort label-3164
SELECT ALL COUNT ( * ) + + 27 * - 82 * + 48 + 44, 7 col2
----
-106227
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3165
SELECT ALL MAX( DISTINCT + NULLIF ( 88, + 5 ) ) AS col2
----
88

skipif mysql # not compatible
query I rowsort label-3165
SELECT ALL MAX ( DISTINCT + NULLIF ( 88, + 5 ) ) AS col2
----
88

query I rowsort
SELECT ALL 26 + + ( 56 ) * + 81 AS col1
----
4562

query I rowsort
SELECT 7 + + 95 AS col2
----
102

query I rowsort
SELECT DISTINCT - 16 + + 3
----
-13

query I rowsort
SELECT ALL 90 - - 76 AS col1
----
166

query II rowsort
SELECT - 36 col0, 80
----
-36
80

query I rowsort
SELECT 97 + - ( - 22 ) AS col0
----
119

query I rowsort
SELECT COALESCE ( 39, - 57 * - 34, ( 41 ) ) - + 33 * + - 37 AS col0
----
1260

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3173
SELECT CAST( NULL AS SIGNED ) * 30 * + COALESCE ( - COALESCE ( + 36, 9 / + - 11 ), - - 40 * - 49 * + 21 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3173
SELECT CAST ( NULL AS INTEGER ) * 30 * + COALESCE ( - COALESCE ( + 36, 9 / + - 11 ), - - 40 * - 49 * + 21 ) AS col1
----
NULL

query I rowsort
SELECT ALL ( 27 ) * + 5 * + 47 AS col1
----
6345

onlyif mysql # aggregate syntax: 
query I rowsort label-3175
SELECT DISTINCT COUNT( * ) * - 12 AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-3175
SELECT DISTINCT COUNT ( * ) * - 12 AS col2
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-3176
SELECT COALESCE ( COUNT( * ), + COUNT( * ), - COUNT( * ) ) * - 35 * - - 68 + - 12
----
-2392

skipif mysql # not compatible
query I rowsort label-3176
SELECT COALESCE ( COUNT ( * ), + COUNT ( * ), - COUNT ( * ) ) * - 35 * - - 68 + - 12
----
-2392

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3177
SELECT + CAST( NULL AS SIGNED ) + + 48 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3177
SELECT + CAST ( NULL AS INTEGER ) + + 48 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3178
SELECT + - MAX( - + 64 ) * 39
----
2496

skipif mysql # not compatible
query I rowsort label-3178
SELECT + - MAX ( - + 64 ) * 39
----
2496

query II rowsort
SELECT ALL 34 AS col0, - 36 AS col2
----
34
-36

query I rowsort
SELECT + 50 + + 35 + + - 83
----
2

query I rowsort
SELECT + 8 * + NULLIF ( - + 41, + 28 )
----
-328

onlyif mysql # aggregate syntax: 
query I rowsort label-3182
SELECT - 77 * - - COUNT( * ) AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-3182
SELECT - 77 * - - COUNT ( * ) AS col1
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3183
SELECT - + CASE + COALESCE ( + + 44, + 28, - 54, + + COUNT( * ) * - - COUNT( * ) + 56 ) WHEN - 42 THEN + 47 * + + 78 + + - 26 WHEN + 94 THEN NULL END + - MAX( + 50 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3183
SELECT - + CASE + COALESCE ( + + 44, + 28, - 54, + + COUNT ( * ) * - - COUNT ( * ) + 56 ) WHEN - 42 THEN + 47 * + + 78 + + - 26 WHEN + 94 THEN NULL END + - MAX ( + 50 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3184
SELECT + - COUNT( - 70 )
----
-1

skipif mysql # not compatible
query I rowsort label-3184
SELECT + - COUNT ( - 70 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3185
SELECT DISTINCT 65 * + + COUNT( * ) AS col2
----
65

skipif mysql # not compatible
query I rowsort label-3185
SELECT DISTINCT 65 * + + COUNT ( * ) AS col2
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3186
SELECT + - CASE - COUNT( * ) WHEN + ( - - COALESCE ( 80, + 41 * ( + 67 ) + - 73 ) ) * + 36 + + 35 - 76 THEN NULL ELSE ( CAST( NULL AS SIGNED ) ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3186
SELECT + - CASE - COUNT ( * ) WHEN + ( - - COALESCE ( 80, + 41 * ( + 67 ) + - 73 ) ) * + 36 + + 35 - 76 THEN NULL ELSE ( CAST ( NULL AS INTEGER ) ) END AS col2
----
NULL

query I rowsort
SELECT + + 34 * 45 AS col2
----
1530

query I rowsort
SELECT ALL + + 29 * - 82 AS col2
----
-2378

query I rowsort
SELECT + NULLIF ( + 24, + 86 ) AS col0
----
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3190
SELECT ALL 23 DIV - COUNT( * ) col0
----
-23

skipif mysql # not compatible
query I rowsort label-3190
SELECT ALL 23 / - COUNT ( * ) col0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-3191
SELECT ALL - 20 * MAX( ALL - 50 ) + + 38 + 8 + + 86 * + CASE - 75 WHEN + 99 * 76 + - 86 + + 44 THEN - - COUNT( * ) WHEN + 63 THEN AVG ( DISTINCT 35 ) ELSE NULL END + + 40
----
NULL

skipif mysql # not compatible
query I rowsort label-3191
SELECT ALL - 20 * MAX ( ALL - 50 ) + + 38 + 8 + + 86 * + CASE - 75 WHEN + 99 * 76 + - 86 + + 44 THEN - - COUNT ( * ) WHEN + 63 THEN AVG ( DISTINCT 35 ) ELSE NULL END + + 40
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3192
SELECT ALL - AVG ( DISTINCT + 25 ) * - CASE - - 94 WHEN + 70 THEN + COALESCE ( 82, + CAST( - 40 AS SIGNED ) + + 65, 24 ) END + 42 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3192
SELECT ALL - AVG ( DISTINCT + 25 ) * - CASE - - 94 WHEN + 70 THEN + COALESCE ( 82, + CAST ( - 40 AS INTEGER ) + + 65, 24 ) END + 42 AS col1
----
NULL

query I rowsort
SELECT - 80 * - 64
----
5120

query I rowsort
SELECT ALL + 41 * - - 6 + + 67 col2
----
313

onlyif mysql # aggregate syntax: 
query I rowsort label-3195
SELECT ALL + ( + - 83 ) * - - 8 + + + COALESCE ( + 22, + 12, + COUNT( * ) ) AS col1
----
-642

skipif mysql # not compatible
query I rowsort label-3195
SELECT ALL + ( + - 83 ) * - - 8 + + + COALESCE ( + 22, + 12, + COUNT ( * ) ) AS col1
----
-642

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3196
SELECT + COALESCE ( - - 1, + 7 * 29 DIV - COUNT( * ) ) - 18 AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-3196
SELECT + COALESCE ( - - 1, + 7 * 29 / - COUNT ( * ) ) - 18 AS col1
----
-17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3197
SELECT - 7 DIV + 98 + COUNT( * ) * + 58 AS col1
----
58

skipif mysql # not compatible
query I rowsort label-3197
SELECT - 7 / + 98 + COUNT ( * ) * + 58 AS col1
----
58

query II rowsort
SELECT - 91 * + 62 AS col1, + 2 - + + 16 * - + 25
----
-5642
402

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3199
SELECT ALL 41 * - 66 + + CAST( NULL AS SIGNED ) + - COUNT( * ) + 15 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3199
SELECT ALL 41 * - 66 + + CAST ( NULL AS INTEGER ) + - COUNT ( * ) + 15 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3200
SELECT - 85 + SUM( + 71 ) AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-3200
SELECT - 85 + SUM ( + 71 ) AS col0
----
-14

query II rowsort
SELECT ALL + 27 AS col2, 4
----
27
4

onlyif mysql # aggregate syntax: 
query I rowsort label-3202
SELECT ALL + MAX( 41 ) * + 1
----
41

skipif mysql # not compatible
query I rowsort label-3202
SELECT ALL + MAX ( 41 ) * + 1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-3203
SELECT ALL ( MAX( - - 87 ) )
----
87

skipif mysql # not compatible
query I rowsort label-3203
SELECT ALL ( MAX ( - - 87 ) )
----
87

query I rowsort
SELECT 66 * + 81 - - 79 AS col1
----
5425

query I rowsort
SELECT - 84 + + 79 AS col0
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3206
SELECT - CAST( CAST( NULL AS DECIMAL ) AS SIGNED ) * + - COUNT( * ) + + 75
----
NULL

skipif mysql # not compatible
query I rowsort label-3206
SELECT - CAST ( CAST ( NULL AS REAL ) AS INTEGER ) * + - COUNT ( * ) + + 75
----
NULL

query I rowsort
SELECT - 2 * + + 56 AS col2
----
-112

query I rowsort
SELECT ALL + 58 * + + 86 * 17
----
84796

onlyif mysql # aggregate syntax: 
query II rowsort label-3209
SELECT 16 AS col0, + 66 + 95 * + 37 - + MIN( + 49 )
----
16
3532

skipif mysql # not compatible
query II rowsort label-3209
SELECT 16 AS col0, + 66 + 95 * + 37 - + MIN ( + 49 )
----
16
3532

query I rowsort
SELECT - 72 + + 32 col1
----
-40

query II rowsort
SELECT - 37, - 34 AS col1
----
-37
-34

query I rowsort
SELECT DISTINCT ( + ( - 89 ) ) AS col1
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-3213
SELECT DISTINCT ( - MIN( + 35 ) )
----
-35

skipif mysql # not compatible
query I rowsort label-3213
SELECT DISTINCT ( - MIN ( + 35 ) )
----
-35

onlyif mysql # DIV for integer division: 
query II rowsort label-3214
SELECT - 18 DIV - - 57 AS col1, 13 * 31 + 65
----
0
468

skipif mysql # not compatible
query II rowsort label-3214
SELECT - 18 / - - 57 AS col1, 13 * 31 + 65
----
0
468

query I rowsort
SELECT ALL 30 * - - 97 * + + 81
----
235710

query I rowsort
SELECT - + 88 + - + 68 * 16 AS col0
----
-1176

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3217
SELECT - MAX( 87 ) DIV 37 * + - 53 + - + 58 + - 78 * + 18 * + + COALESCE ( - 4, + 37 * - 99 + + 89 + 95 ) * 87 + + 51
----
488691

skipif mysql # not compatible
query I rowsort label-3217
SELECT - MAX ( 87 ) / 37 * + - 53 + - + 58 + - 78 * + 18 * + + COALESCE ( - 4, + 37 * - 99 + + 89 + 95 ) * 87 + + 51
----
488691

onlyif mysql # aggregate syntax: 
query I rowsort label-3218
SELECT - - 13 + + + COUNT( * ) * - 99 * + + NULLIF ( + 27, - + CASE - 31 WHEN 16 THEN 25 * 68 ELSE NULL END ) + - COUNT( * ) * - 71 AS col0
----
-2589

skipif mysql # not compatible
query I rowsort label-3218
SELECT - - 13 + + + COUNT ( * ) * - 99 * + + NULLIF ( + 27, - + CASE - 31 WHEN 16 THEN 25 * 68 ELSE NULL END ) + - COUNT ( * ) * - 71 AS col0
----
-2589

onlyif mysql # aggregate syntax: 
query I rowsort label-3219
SELECT - + 38 + + + 81 * + SUM( ALL - 37 ) + - 86 col2
----
-3121

skipif mysql # not compatible
query I rowsort label-3219
SELECT - + 38 + + + 81 * + SUM ( ALL - 37 ) + - 86 col2
----
-3121

onlyif mysql # aggregate syntax: 
query I rowsort label-3220
SELECT + CASE WHEN + COUNT( * ) < - - 90 THEN + - 26 + - - 6 * 6 * + 90 END
----
3214

skipif mysql # not compatible
query I rowsort label-3220
SELECT + CASE WHEN + COUNT ( * ) < - - 90 THEN + - 26 + - - 6 * 6 * + 90 END
----
3214

query I rowsort
SELECT ALL 54 * 1
----
54

query I rowsort
SELECT + - 63 + - + 26
----
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3223
SELECT - 81 DIV - - 72 - - - 45 * - COUNT( * )
----
44

skipif mysql # not compatible
query I rowsort label-3223
SELECT - 81 / - - 72 - - - 45 * - COUNT ( * )
----
44

onlyif mysql # aggregate syntax: 
query II rowsort label-3224
SELECT DISTINCT + + 90 AS col0, MAX( DISTINCT - - 89 ) * + + 89 + 8 * + - 76 + 49 * + - 23 + + + 57 AS col2
----
90
6243

skipif mysql # not compatible
query II rowsort label-3224
SELECT DISTINCT + + 90 AS col0, MAX ( DISTINCT - - 89 ) * + + 89 + 8 * + - 76 + 49 * + - 23 + + + 57 AS col2
----
90
6243

onlyif mysql # DIV for integer division: 
query I rowsort label-3225
SELECT ALL 14 DIV ( + ( - + 77 ) ) + + + 60 AS col2
----
60

skipif mysql # not compatible
query I rowsort label-3225
SELECT ALL 14 / ( + ( - + 77 ) ) + + + 60 AS col2
----
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3226
SELECT + 1 DIV 6 * - MAX( - + 85 ) + + 3 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-3226
SELECT + 1 / 6 * - MAX ( - + 85 ) + + 3 AS col1
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-3227
SELECT + 43 AS col2, - MAX( 52 ) + 90
----
43
38

skipif mysql # not compatible
query II rowsort label-3227
SELECT + 43 AS col2, - MAX ( 52 ) + 90
----
43
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3228
SELECT ALL 22 / - CAST( NULL AS SIGNED ) + - 17 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3228
SELECT ALL 22 / - CAST ( NULL AS INTEGER ) + - 17 AS col2
----
NULL

query I rowsort
SELECT + + 36 + + 12
----
48

onlyif mysql # aggregate syntax: 
query II rowsort label-3230
SELECT - - 56 - + 75, COUNT( * ) AS col0
----
-19
1

skipif mysql # not compatible
query II rowsort label-3230
SELECT - - 56 - + 75, COUNT ( * ) AS col0
----
-19
1

query I rowsort
SELECT ALL 84 * - + 64 * - 17 * + 61 - - 96 + + 20 AS col0
----
5575028

query I rowsort
SELECT DISTINCT - 43 * - - 74
----
-3182

onlyif mysql # aggregate syntax: 
query I rowsort label-3233
SELECT DISTINCT + SUM( ALL 28 ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-3233
SELECT DISTINCT + SUM ( ALL 28 ) AS col0
----
28

query I rowsort
SELECT - 8 + + 86 - - 0 + + 26 AS col2
----
104

query I rowsort
SELECT ALL 49 * + 30 - 9 + + - 49
----
1412

query I rowsort
SELECT DISTINCT 73 * + 59 AS col2
----
4307

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3237
SELECT 71 * - CAST( - 67 AS SIGNED ) + + + 35 + 25 DIV + 37
----
4792

skipif mysql # not compatible
query I rowsort label-3237
SELECT 71 * - CAST ( - 67 AS INTEGER ) + + + 35 + 25 / + 37
----
4792

onlyif mysql # DIV for integer division: 
query I rowsort label-3238
SELECT + 96 DIV + ( + 20 ) AS col2
----
4

skipif mysql # not compatible
query I rowsort label-3238
SELECT + 96 / + ( + 20 ) AS col2
----
4

query I rowsort
SELECT - 2 * + 97
----
-194

onlyif mysql # aggregate syntax: 
query I rowsort label-3240
SELECT ALL + SUM( DISTINCT - 39 ) AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-3240
SELECT ALL + SUM ( DISTINCT - 39 ) AS col0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-3241
SELECT - COUNT( DISTINCT - 92 ) * + - 52 AS col0
----
52

skipif mysql # not compatible
query I rowsort label-3241
SELECT - COUNT ( DISTINCT - 92 ) * + - 52 AS col0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-3242
SELECT + 90 + + COUNT( * )
----
91

skipif mysql # not compatible
query I rowsort label-3242
SELECT + 90 + + COUNT ( * )
----
91

onlyif mysql # DIV for integer division: 
query II rowsort label-3243
SELECT - 54 + 17 AS col2, 69 DIV 70
----
-37
0

skipif mysql # not compatible
query II rowsort label-3243
SELECT - 54 + 17 AS col2, 69 / 70
----
-37
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3244
SELECT ALL ( - MAX( ALL 84 ) )
----
-84

skipif mysql # not compatible
query I rowsort label-3244
SELECT ALL ( - MAX ( ALL 84 ) )
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3245
SELECT NULLIF ( COUNT( ALL 99 ), + COALESCE ( - 75, + 64 * - + 21 + - 31, - CAST( NULL AS SIGNED ) * + ( 20 ) * - 86 + + - 36 * - 25 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3245
SELECT NULLIF ( COUNT ( ALL 99 ), + COALESCE ( - 75, + 64 * - + 21 + - 31, - CAST ( NULL AS INTEGER ) * + ( 20 ) * - 86 + + - 36 * - 25 ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3246
SELECT 26 * COUNT( * ) * - 61 AS col0, 47
----
-1586
47

skipif mysql # not compatible
query II rowsort label-3246
SELECT 26 * COUNT ( * ) * - 61 AS col0, 47
----
-1586
47

query II rowsort
SELECT 42 + + 38 AS col1, - 65 * + - 95 AS col2
----
80
6175

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3248
SELECT - - CASE 27 WHEN - + 18 / - 16 + + - 82 THEN - 80 + CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3248
SELECT - - CASE 27 WHEN - + 18 / - 16 + + - 82 THEN - 80 + CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3249
SELECT ALL + - 50 + COALESCE ( - 59, 0 ) * + - 41 * NULLIF ( - NULLIF ( - SUM( 63 ), + + 86 ), 79 ) DIV COUNT( * ) - - - NULLIF ( + ( 54 ), - 60 ) AS col0
----
152293

skipif mysql # not compatible
query I rowsort label-3249
SELECT ALL + - 50 + COALESCE ( - 59, 0 ) * + - 41 * NULLIF ( - NULLIF ( - SUM ( 63 ), + + 86 ), 79 ) / COUNT ( * ) - - - NULLIF ( + ( 54 ), - 60 ) AS col0
----
152293

query I rowsort
SELECT DISTINCT - - 87 + + 32
----
119

query I rowsort
SELECT + COALESCE ( - 77, 47 )
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3252
SELECT ALL - + 45 + - + 48 + COALESCE ( + 1, - 77 * - 47 + CAST( 64 AS SIGNED ), SUM( - 68 ) ) + - 30
----
-122

skipif mysql # not compatible
query I rowsort label-3252
SELECT ALL - + 45 + - + 48 + COALESCE ( + 1, - 77 * - 47 + CAST ( 64 AS INTEGER ), SUM ( - 68 ) ) + - 30
----
-122

query I rowsort
SELECT DISTINCT 83 + 98 + + 7
----
188

onlyif mysql # aggregate syntax: 
query I rowsort label-3254
SELECT - - COUNT( DISTINCT + 33 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-3254
SELECT - - COUNT ( DISTINCT + 33 ) col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3255
SELECT CAST( 40 AS SIGNED ) * + 24
----
960

skipif mysql # not compatible
query I rowsort label-3255
SELECT CAST ( 40 AS INTEGER ) * + 24
----
960

query I rowsort
SELECT + - 53 col2
----
-53

query I rowsort
SELECT - 15 * + 28
----
-420

onlyif mysql # aggregate syntax: 
query I rowsort label-3258
SELECT - + COUNT( * ) * - 3 + 40 AS col0
----
43

skipif mysql # not compatible
query I rowsort label-3258
SELECT - + COUNT ( * ) * - 3 + 40 AS col0
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3259
SELECT - CAST( - 18 AS SIGNED ) * - NULLIF ( CAST( - 45 AS SIGNED ), COUNT( * ) + + COUNT( * ) + - 76 ) + - ( + CASE COUNT( * ) WHEN + 83 + - 5 THEN NULL ELSE + 67 * + - 18 END )
----
2016

skipif mysql # not compatible
query I rowsort label-3259
SELECT - CAST ( - 18 AS INTEGER ) * - NULLIF ( CAST ( - 45 AS INTEGER ), COUNT ( * ) + + COUNT ( * ) + - 76 ) + - ( + CASE COUNT ( * ) WHEN + 83 + - 5 THEN NULL ELSE + 67 * + - 18 END )
----
2016

onlyif mysql # aggregate syntax: 
query I rowsort label-3260
SELECT ALL 68 + + + COUNT( * ) * - 72 * 13 + 6 + - 72 AS col2
----
-934

skipif mysql # not compatible
query I rowsort label-3260
SELECT ALL 68 + + + COUNT ( * ) * - 72 * 13 + 6 + - 72 AS col2
----
-934

onlyif mysql # aggregate syntax: 
query I rowsort label-3261
SELECT ALL 72 * 46 * NULLIF ( 28, COUNT( - 29 ) ) col0
----
92736

skipif mysql # not compatible
query I rowsort label-3261
SELECT ALL 72 * 46 * NULLIF ( 28, COUNT ( - 29 ) ) col0
----
92736

query II rowsort
SELECT + 53 AS col0, + 75 col0
----
53
75

query I rowsort
SELECT DISTINCT - 84 - - 20
----
-64

query I rowsort
SELECT 17 * - ( 63 )
----
-1071

query II rowsort
SELECT ALL - 65 AS col2, + 13 - 91 AS col0
----
-65
-78

onlyif mysql # aggregate syntax: 
query II rowsort label-3266
SELECT 3 * - AVG ( 6 ) * + - 5 + + CASE 49 WHEN + COUNT( * ) * 26 THEN - SUM( - 1 ) END - + 91, - 58 AS col2
----
NULL
-58

skipif mysql # not compatible
query II rowsort label-3266
SELECT 3 * - AVG ( 6 ) * + - 5 + + CASE 49 WHEN + COUNT ( * ) * 26 THEN - SUM ( - 1 ) END - + 91, - 58 AS col2
----
NULL
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3267
SELECT 36 / + + CASE - 51 WHEN 89 THEN - + 19 * - 33 - - CASE 94 WHEN + 40 THEN - 1 WHEN + - CAST( NULL AS SIGNED ) * + 25 - 22 THEN 69 * + ( COUNT( * ) ) + - NULLIF ( 86, - - COUNT( * ) ) + 41 ELSE - + COUNT( * ) - + - 95 END + 95 ELSE NULL END AS col2, - COUNT( * ) + + 78
----
NULL
77

skipif mysql # not compatible
query II rowsort label-3267
SELECT 36 / + + CASE - 51 WHEN 89 THEN - + 19 * - 33 - - CASE 94 WHEN + 40 THEN - 1 WHEN + - CAST ( NULL AS INTEGER ) * + 25 - 22 THEN 69 * + ( COUNT ( * ) ) + - NULLIF ( 86, - - COUNT ( * ) ) + 41 ELSE - + COUNT ( * ) - + - 95 END + 95 ELSE NULL END AS col2, - COUNT ( * ) + + 78
----
NULL
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3268
SELECT 7 * + + 40 * + MIN( + ( - + 34 ) ) AS col1
----
-9520

skipif mysql # not compatible
query I rowsort label-3268
SELECT 7 * + + 40 * + MIN ( + ( - + 34 ) ) AS col1
----
-9520

onlyif mysql # aggregate syntax: 
query I rowsort label-3269
SELECT NULLIF ( + CASE - COUNT( * ) WHEN 22 THEN 54 END, 87 ) + + 60 / + - COALESCE ( + - 19, - 37 ) + + 50 * 77 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3269
SELECT NULLIF ( + CASE - COUNT ( * ) WHEN 22 THEN 54 END, 87 ) + + 60 / + - COALESCE ( + - 19, - 37 ) + + 50 * 77 AS col2
----
NULL

query II rowsort
SELECT ALL - 81 AS col2, + 80
----
-81
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3271
SELECT DISTINCT 19 * MIN( + 32 ) AS col0
----
608

skipif mysql # not compatible
query I rowsort label-3271
SELECT DISTINCT 19 * MIN ( + 32 ) AS col0
----
608

onlyif mysql # DIV for integer division: 
query I rowsort label-3272
SELECT 26 DIV - 55
----
0

skipif mysql # not compatible
query I rowsort label-3272
SELECT 26 / - 55
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3273
SELECT ALL - NULLIF ( - - COUNT( * ), CAST( - - SUM( ALL ( - 95 ) ) AS DECIMAL ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3273
SELECT ALL - NULLIF ( - - COUNT ( * ), CAST ( - - SUM ( ALL ( - 95 ) ) AS REAL ) ) AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3274
SELECT CAST( NULL AS SIGNED ) - 66 * 96 + - + 27 - - COALESCE ( - 63, + 83 + 20, CASE 86 WHEN - COUNT( * ) * 16 + - COUNT( DISTINCT + 62 ) THEN NULL WHEN + 22 THEN - 3 END * - - 85 * 26 ) + + - MAX( ALL + CAST( + 81 AS DECIMAL ) ) / 86 / + 63 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3274
SELECT CAST ( NULL AS INTEGER ) - 66 * 96 + - + 27 - - COALESCE ( - 63, + 83 + 20, CASE 86 WHEN - COUNT ( * ) * 16 + - COUNT ( DISTINCT + 62 ) THEN NULL WHEN + 22 THEN - 3 END * - - 85 * 26 ) + + - MAX ( ALL + CAST ( + 81 AS REAL ) ) / 86 / + 63 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3275
SELECT ALL 89 AS col2, + COUNT( * ) * - 63
----
89
-63

skipif mysql # not compatible
query II rowsort label-3275
SELECT ALL 89 AS col2, + COUNT ( * ) * - 63
----
89
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3276
SELECT DISTINCT CAST( 37 AS SIGNED ) * + COALESCE ( - 8, + + CAST( - 62 AS SIGNED ), - 15 ) AS col2
----
-296

skipif mysql # not compatible
query I rowsort label-3276
SELECT DISTINCT CAST ( 37 AS INTEGER ) * + COALESCE ( - 8, + + CAST ( - 62 AS INTEGER ), - 15 ) AS col2
----
-296

onlyif mysql # aggregate syntax: 
query II rowsort label-3277
SELECT ALL COUNT( * ) + - 23 + + 14 * - + 96 AS col2, 86 AS col1
----
-1366
86

skipif mysql # not compatible
query II rowsort label-3277
SELECT ALL COUNT ( * ) + - 23 + + 14 * - + 96 AS col2, 86 AS col1
----
-1366
86

query II rowsort
SELECT 8, 35 AS col1
----
8
35

onlyif mysql # aggregate syntax: 
query I rowsort label-3279
SELECT DISTINCT - 18 + + COUNT( * ) AS col0
----
-17

skipif mysql # not compatible
query I rowsort label-3279
SELECT DISTINCT - 18 + + COUNT ( * ) AS col0
----
-17

query I rowsort
SELECT COALESCE ( + + 15, + 88 ) + + + 26 AS col1
----
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3281
SELECT COUNT( ALL + 54 ) DIV - 79
----
0

skipif mysql # not compatible
query I rowsort label-3281
SELECT COUNT ( ALL + 54 ) / - 79
----
0

query I rowsort
SELECT 19 - ( + - 34 ) AS col1
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-3283
SELECT DISTINCT + 69 + - - 15 + + 81 + + 25 + COUNT( ALL 42 ) / - CASE + + CASE 23 WHEN + COUNT( * ) THEN - 14 ELSE 89 + + 65 + - + 19 END WHEN - ( + + 54 ) THEN NULL WHEN + 6 THEN NULL WHEN COUNT( + 55 ) * - + COUNT( * ) THEN - + 82 * + 92 * 93 - - 66 END * 74
----
NULL

skipif mysql # not compatible
query I rowsort label-3283
SELECT DISTINCT + 69 + - - 15 + + 81 + + 25 + COUNT ( ALL 42 ) / - CASE + + CASE 23 WHEN + COUNT ( * ) THEN - 14 ELSE 89 + + 65 + - + 19 END WHEN - ( + + 54 ) THEN NULL WHEN + 6 THEN NULL WHEN COUNT ( + 55 ) * - + COUNT ( * ) THEN - + 82 * + 92 * 93 - - 66 END * 74
----
NULL

query II rowsort
SELECT ALL + 36 + - + 91 + - 64 * - - 92 AS col1, ( - 67 ) AS col0
----
-5943
-67

query II rowsort
SELECT ( + + 77 ) * + 29 AS col0, - 34 - + + 78
----
2233
-112

onlyif mysql # aggregate syntax: 
query I rowsort label-3286
SELECT DISTINCT - - COUNT( * ) + - 94 col1
----
-93

skipif mysql # not compatible
query I rowsort label-3286
SELECT DISTINCT - - COUNT ( * ) + - 94 col1
----
-93

query I rowsort
SELECT ALL + 75 + + + 72
----
147

query I rowsort
SELECT - 86 + 24 col0
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-3289
SELECT + SUM( ALL 13 ) AS col1
----
13

skipif mysql # not compatible
query I rowsort label-3289
SELECT + SUM ( ALL 13 ) AS col1
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-3290
SELECT - 69 * - 58 * CASE + 1 WHEN + - ( 47 ) - - + AVG ( DISTINCT + ( + 48 ) ) THEN NULL WHEN + - 32 * 41 + - 1 - 52 * - 14 THEN - + ( + + COUNT( - 30 ) ) + - 86 + - 90 * - 70 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3290
SELECT - 69 * - 58 * CASE + 1 WHEN + - ( 47 ) - - + AVG ( DISTINCT + ( + 48 ) ) THEN NULL WHEN + - 32 * 41 + - 1 - 52 * - 14 THEN - + ( + + COUNT ( - 30 ) ) + - 86 + - 90 * - 70 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3291
SELECT - 13 + - COUNT( DISTINCT - 61 )
----
-14

skipif mysql # not compatible
query I rowsort label-3291
SELECT - 13 + - COUNT ( DISTINCT - 61 )
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-3292
SELECT COUNT( * ) + + - 38 AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-3292
SELECT COUNT ( * ) + + - 38 AS col0
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3293
SELECT DISTINCT - CAST( COUNT( * ) AS SIGNED ) * - 79 - - COUNT( + 55 ) AS col1
----
80

skipif mysql # not compatible
query I rowsort label-3293
SELECT DISTINCT - CAST ( COUNT ( * ) AS INTEGER ) * - 79 - - COUNT ( + 55 ) AS col1
----
80

query I rowsort
SELECT - 91 * 89 * - 57 * + ( 78 ) + + - 72
----
36008082

query I rowsort
SELECT ALL COALESCE ( 80, - 63 * - - 52 * + - 23 ) * 12
----
960

onlyif mysql # DIV for integer division: 
query I rowsort label-3296
SELECT DISTINCT + 26 DIV ( - 96 )
----
0

skipif mysql # not compatible
query I rowsort label-3296
SELECT DISTINCT + 26 / ( - 96 )
----
0

query I rowsort
SELECT 26 * + 96 AS col1
----
2496

onlyif mysql # aggregate syntax: 
query I rowsort label-3298
SELECT COUNT( * ) + + 23
----
24

skipif mysql # not compatible
query I rowsort label-3298
SELECT COUNT ( * ) + + 23
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3299
SELECT 0 + CAST( NULL AS SIGNED ) * 10 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3299
SELECT 0 + CAST ( NULL AS INTEGER ) * 10 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3300
SELECT - 41 / - + 21 - - CAST( NULL AS DECIMAL ) * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3300
SELECT - 41 / - + 21 - - CAST ( NULL AS REAL ) * - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3301
SELECT ALL + ( COUNT( * ) ) * + ( + 66 ) AS col1
----
66

skipif mysql # not compatible
query I rowsort label-3301
SELECT ALL + ( COUNT ( * ) ) * + ( + 66 ) AS col1
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-3302
SELECT 7 DIV + 76 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3302
SELECT 7 / + 76 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3303
SELECT - 67 * + + CAST( 63 AS SIGNED ) AS col0
----
-4221

skipif mysql # not compatible
query I rowsort label-3303
SELECT - 67 * + + CAST ( 63 AS INTEGER ) AS col0
----
-4221

onlyif mysql # aggregate syntax: 
query I rowsort label-3304
SELECT ALL + ( COALESCE ( 9, - 28 + 14, - COUNT( * ) ) ) AS col0
----
9

skipif mysql # not compatible
query I rowsort label-3304
SELECT ALL + ( COALESCE ( 9, - 28 + 14, - COUNT ( * ) ) ) AS col0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3305
SELECT + 19 + + - COUNT( + 76 ) + + 2 * + + 30 - 43 - + 27 * 87
----
-2314

skipif mysql # not compatible
query I rowsort label-3305
SELECT + 19 + + - COUNT ( + 76 ) + + 2 * + + 30 - 43 - + 27 * 87
----
-2314

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3306
SELECT ALL - 36 * - + 48 * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3306
SELECT ALL - 36 * - + 48 * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3307
SELECT DISTINCT + CAST( - + 93 AS SIGNED ) col1
----
-93

skipif mysql # not compatible
query I rowsort label-3307
SELECT DISTINCT + CAST ( - + 93 AS INTEGER ) col1
----
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3308
SELECT ALL CAST( NULL AS SIGNED ) + + CASE + COUNT( * ) WHEN 57 * - - 29 THEN - COALESCE ( 86, + 15 - - CASE 29 WHEN + + NULLIF ( - + 51, + 36 + 28 ) / 98 * + 88 THEN COUNT( DISTINCT - CAST( 65 AS SIGNED ) ) + - COUNT( * ) + + + 80 WHEN - CASE 62 WHEN - COALESCE ( - SUM( DISTINCT 0 ), + 91 / + - COALESCE ( + + ( - COALESCE ( + NULLIF ( - CASE + ( 14 ) WHEN - 71 - 78 / 63 THEN - 4 ELSE + 24 END, 68 ), 10 ) ), + COUNT( * ) ) * - ( 65 ), 48 ) / - 52 + + 25 THEN NULL WHEN - CAST( NULL AS SIGNED ) THEN 12 + - 35 ELSE NULL END + CAST( - 69 AS SIGNED ) THEN NULL END ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3308
SELECT ALL CAST ( NULL AS INTEGER ) + + CASE + COUNT ( * ) WHEN 57 * - - 29 THEN - COALESCE ( 86, + 15 - - CASE 29 WHEN + + NULLIF ( - + 51, + 36 + 28 ) / 98 * + 88 THEN COUNT ( DISTINCT - CAST ( 65 AS INTEGER ) ) + - COUNT ( * ) + + + 80 WHEN - CASE 62 WHEN - COALESCE ( - SUM ( DISTINCT 0 ), + 91 / + - COALESCE ( + + ( - COALESCE ( + NULLIF ( - CASE + ( 14 ) WHEN - 71 - 78 / 63 THEN - 4 ELSE + 24 END, 68 ), 10 ) ), + COUNT ( * ) ) * - ( 65 ), 48 ) / - 52 + + 25 THEN NULL WHEN - CAST ( NULL AS INTEGER ) THEN 12 + - 35 ELSE NULL END + CAST ( - 69 AS INTEGER ) THEN NULL END ) ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3309
SELECT ALL AVG ( + 47 ) + 20 * + CAST( NULL AS SIGNED ) * - 76 * + 71 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3309
SELECT ALL AVG ( + 47 ) + 20 * + CAST ( NULL AS INTEGER ) * - 76 * + 71 AS col0
----
NULL

query I rowsort
SELECT + COALESCE ( 98, - + 96 )
----
98

onlyif mysql # aggregate syntax: 
query II rowsort label-3311
SELECT 64 * + - 8 + + COUNT( * ) + - 15, - 67 AS col1
----
-526
-67

skipif mysql # not compatible
query II rowsort label-3311
SELECT 64 * + - 8 + + COUNT ( * ) + - 15, - 67 AS col1
----
-526
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-3312
SELECT DISTINCT 12 + + 14 DIV - 72
----
12

skipif mysql # not compatible
query I rowsort label-3312
SELECT DISTINCT 12 + + 14 / - 72
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3313
SELECT + 77 + - 61 AS col1, CAST( ( + + 24 ) AS SIGNED ) AS col1
----
16
24

skipif mysql # not compatible
query II rowsort label-3313
SELECT + 77 + - 61 AS col1, CAST ( ( + + 24 ) AS INTEGER ) AS col1
----
16
24

onlyif mysql # aggregate syntax: 
query I rowsort label-3314
SELECT - COALESCE ( MIN( - 97 ), + + MAX( + - 20 ), - - SUM( DISTINCT + 27 ) * + 39 * + - 21 ) AS col2
----
97

skipif mysql # not compatible
query I rowsort label-3314
SELECT - COALESCE ( MIN ( - 97 ), + + MAX ( + - 20 ), - - SUM ( DISTINCT + 27 ) * + 39 * + - 21 ) AS col2
----
97

query I rowsort
SELECT + ( ( - + 88 ) ) + + 27 + + - 33 * + + ( - 49 ) * + - 67 * 20
----
-2166841

onlyif mysql # aggregate syntax: 
query I rowsort label-3316
SELECT ALL - 39 + - 94 * COUNT( * ) + - + COUNT( 23 ) * - 80 * - ( 10 )
----
-933

skipif mysql # not compatible
query I rowsort label-3316
SELECT ALL - 39 + - 94 * COUNT ( * ) + - + COUNT ( 23 ) * - 80 * - ( 10 )
----
-933

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3317
SELECT + COUNT( * ) + + + 50 * - NULLIF ( + 21, 22 * 77 + - 79 + - CAST( + 59 AS DECIMAL ) * + COUNT( * ) * 37 )
----
-1049

skipif mysql # not compatible
query I rowsort label-3317
SELECT + COUNT ( * ) + + + 50 * - NULLIF ( + 21, 22 * 77 + - 79 + - CAST ( + 59 AS REAL ) * + COUNT ( * ) * 37 )
----
-1049

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3318
SELECT + + 1 * COUNT( * ) * + COALESCE ( + + 58, - + NULLIF ( + CAST( 64 AS SIGNED ), + 51 + - + 56 - - COALESCE ( + MIN( - + 18 ), 17 + + 92 ) DIV - COUNT( * ) ) DIV COUNT( * ) DIV - 93 + + 26 )
----
58

skipif mysql # not compatible
query I rowsort label-3318
SELECT + + 1 * COUNT ( * ) * + COALESCE ( + + 58, - + NULLIF ( + CAST ( 64 AS INTEGER ), + 51 + - + 56 - - COALESCE ( + MIN ( - + 18 ), 17 + + 92 ) / - COUNT ( * ) ) / COUNT ( * ) / - 93 + + 26 )
----
58

query I rowsort
SELECT ALL - 95 * 51
----
-4845

onlyif mysql # DIV for integer division: 
query I rowsort label-3320
SELECT + 17 + + + 14 DIV + 91
----
17

skipif mysql # not compatible
query I rowsort label-3320
SELECT + 17 + + + 14 / + 91
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3321
SELECT ALL CAST( NULL AS SIGNED ) * + 99 + - 6
----
NULL

skipif mysql # not compatible
query I rowsort label-3321
SELECT ALL CAST ( NULL AS INTEGER ) * + 99 + - 6
----
NULL

query I rowsort
SELECT + + 99 * + + 26
----
2574

query I rowsort
SELECT + 74 * 73
----
5402

onlyif mysql # aggregate syntax: 
query I rowsort label-3324
SELECT - - COUNT( 25 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3324
SELECT - - COUNT ( 25 ) AS col0
----
1

query I rowsort
SELECT DISTINCT - ( - NULLIF ( - ( + 19 ), 47 ) )
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-3326
SELECT ALL + CASE + + 33 WHEN + - 83 * - + COUNT( * ) + + COUNT( * ) THEN NULL WHEN + 93 * + - 31 THEN NULL ELSE - 75 END AS col0
----
-75

skipif mysql # not compatible
query I rowsort label-3326
SELECT ALL + CASE + + 33 WHEN + - 83 * - + COUNT ( * ) + + COUNT ( * ) THEN NULL WHEN + 93 * + - 31 THEN NULL ELSE - 75 END AS col0
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3327
SELECT - - COALESCE ( + COUNT( * ), - 69 * - + 66 + + 41 + - 93 * + 50 * + CAST( NULL AS SIGNED ) * - 23 ) + - 30 AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-3327
SELECT - - COALESCE ( + COUNT ( * ), - 69 * - + 66 + + 41 + - 93 * + 50 * + CAST ( NULL AS INTEGER ) * - 23 ) + - 30 AS col1
----
-29

query I rowsort
SELECT ALL - ( + - 84 )
----
84

onlyif mysql # aggregate syntax: 
query II rowsort label-3329
SELECT + - 99 * + 38 AS col0, 73 * - - MIN( DISTINCT - 17 ) AS col2
----
-3762
-1241

skipif mysql # not compatible
query II rowsort label-3329
SELECT + - 99 * + 38 AS col0, 73 * - - MIN ( DISTINCT - 17 ) AS col2
----
-3762
-1241

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3330
SELECT DISTINCT + NULLIF ( + - 41, 87 * - + CAST( NULL AS DECIMAL ) ) AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-3330
SELECT DISTINCT + NULLIF ( + - 41, 87 * - + CAST ( NULL AS REAL ) ) AS col2
----
-41

query I rowsort
SELECT + 86 - - 64
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-3332
SELECT ALL + NULLIF ( - 62, + COUNT( ALL - 62 ) ) * 71 AS col1
----
-4402

skipif mysql # not compatible
query I rowsort label-3332
SELECT ALL + NULLIF ( - 62, + COUNT ( ALL - 62 ) ) * 71 AS col1
----
-4402

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3333
SELECT + ( - ( 46 ) ) AS col0, + 75 * - ( 0 ) / + 7 + + COUNT( + 31 ) - - 22 * + COUNT( * ) * + CAST( NULL AS SIGNED )
----
-46
NULL

skipif mysql # not compatible
query II rowsort label-3333
SELECT + ( - ( 46 ) ) AS col0, + 75 * - ( 0 ) / + 7 + + COUNT ( + 31 ) - - 22 * + COUNT ( * ) * + CAST ( NULL AS INTEGER )
----
-46
NULL

query I rowsort
SELECT - 3 * + 33
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3335
SELECT ALL + COUNT( * ) * 96 * - 5
----
-480

skipif mysql # not compatible
query I rowsort label-3335
SELECT ALL + COUNT ( * ) * 96 * - 5
----
-480

query I rowsort
SELECT - 49 * + 72 col2
----
-3528

onlyif mysql # aggregate syntax: 
query I rowsort label-3337
SELECT + MIN( ALL + 34 ) AS col0
----
34

skipif mysql # not compatible
query I rowsort label-3337
SELECT + MIN ( ALL + 34 ) AS col0
----
34

query I rowsort
SELECT ( + 49 ) col0
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-3339
SELECT ALL + 68 DIV 17 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-3339
SELECT ALL + 68 / 17 AS col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-3340
SELECT DISTINCT - ( + MIN( ALL + + 10 ) ) * - - COUNT( * ) + + 0 + + - COUNT( DISTINCT ( 26 ) ) * - 33
----
23

skipif mysql # not compatible
query I rowsort label-3340
SELECT DISTINCT - ( + MIN ( ALL + + 10 ) ) * - - COUNT ( * ) + + 0 + + - COUNT ( DISTINCT ( 26 ) ) * - 33
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-3341
SELECT ALL + 3 * + 61 * 48 + - 49 DIV - 74
----
8784

skipif mysql # not compatible
query I rowsort label-3341
SELECT ALL + 3 * + 61 * 48 + - 49 / - 74
----
8784

onlyif mysql # aggregate syntax: 
query I rowsort label-3342
SELECT - COUNT( * ) * 50 + + 84 + - 39 AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-3342
SELECT - COUNT ( * ) * 50 + + 84 + - 39 AS col2
----
-5

query I rowsort
SELECT COALESCE ( + + 74, - 86 )
----
74

query I rowsort
SELECT 77 * + 75 * 85 + - 29
----
490846

onlyif mysql # aggregate syntax: 
query I rowsort label-3345
SELECT CASE + 34 WHEN 72 / AVG ( ALL - 12 ) THEN - COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3345
SELECT CASE + 34 WHEN 72 / AVG ( ALL - 12 ) THEN - COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3346
SELECT - COUNT( * ) + + 14 AS col1
----
13

skipif mysql # not compatible
query I rowsort label-3346
SELECT - COUNT ( * ) + + 14 AS col1
----
13

query I rowsort
SELECT ALL + 99 * - - 55
----
5445

onlyif mysql # aggregate syntax: 
query I rowsort label-3348
SELECT ALL + ( - + 86 ) * - 62 - - ( CASE - + 52 WHEN CASE 44 WHEN + 90 THEN + 20 END THEN COALESCE ( - + 48, + 69 * + 86 / + 95 - + COUNT( * ) * - 83 / + + 99 * 74 + - 69 ) + + COUNT( * ) END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3348
SELECT ALL + ( - + 86 ) * - 62 - - ( CASE - + 52 WHEN CASE 44 WHEN + 90 THEN + 20 END THEN COALESCE ( - + 48, + 69 * + 86 / + 95 - + COUNT ( * ) * - 83 / + + 99 * 74 + - 69 ) + + COUNT ( * ) END ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3349
SELECT DISTINCT 77 AS col0, + COUNT( * ) + - 86 col2
----
77
-85

skipif mysql # not compatible
query II rowsort label-3349
SELECT DISTINCT 77 AS col0, + COUNT ( * ) + - 86 col2
----
77
-85

query I rowsort
SELECT + - 89 * - - 56
----
-4984

onlyif mysql # aggregate syntax: 
query I rowsort label-3351
SELECT COALESCE ( + 13, 26 * + 98 * - - MAX( + 65 ) * - 46 + + + COUNT( * ) * 95 )
----
13

skipif mysql # not compatible
query I rowsort label-3351
SELECT COALESCE ( + 13, 26 * + 98 * - - MAX ( + 65 ) * - 46 + + + COUNT ( * ) * 95 )
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-3352
SELECT ALL - + 96 - - - COUNT( * ) AS col0
----
-97

skipif mysql # not compatible
query I rowsort label-3352
SELECT ALL - + 96 - - - COUNT ( * ) AS col0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3353
SELECT + 4 - + 19 * - 9 * + COUNT( * ) AS col1
----
175

skipif mysql # not compatible
query I rowsort label-3353
SELECT + 4 - + 19 * - 9 * + COUNT ( * ) AS col1
----
175

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3354
SELECT + NULLIF ( + + 59, 66 * + CAST( + - 95 AS SIGNED ) / - - 37 ) * + 0 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3354
SELECT + NULLIF ( + + 59, 66 * + CAST ( + - 95 AS INTEGER ) / - - 37 ) * + 0 AS col0
----
0

query I rowsort
SELECT + 22 + - 74 AS col2
----
-52

onlyif mysql # aggregate syntax: 
query II rowsort label-3356
SELECT + + 62 * + + ( - + COUNT( * ) ) AS col2, 47 + + + 6 col1
----
-62
53

skipif mysql # not compatible
query II rowsort label-3356
SELECT + + 62 * + + ( - + COUNT ( * ) ) AS col2, 47 + + + 6 col1
----
-62
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3357
SELECT + - CAST( - + 28 AS SIGNED ) + 46 AS col1
----
74

skipif mysql # not compatible
query I rowsort label-3357
SELECT + - CAST ( - + 28 AS INTEGER ) + 46 AS col1
----
74

query II rowsort
SELECT 0 AS col2, 25 + 28 - - + 84 col2
----
0
137

query I rowsort
SELECT 10 + - + 99 AS col2
----
-89

query I rowsort
SELECT 45 * - + 18 AS col2
----
-810

onlyif mysql # aggregate syntax: 
query I rowsort label-3361
SELECT DISTINCT COUNT( * ) * + COALESCE ( + + 28, - 26 - - 43 ) AS col2
----
28

skipif mysql # not compatible
query I rowsort label-3361
SELECT DISTINCT COUNT ( * ) * + COALESCE ( + + 28, - 26 - - 43 ) AS col2
----
28

query II rowsort
SELECT DISTINCT 11 col1, - 62
----
11
-62

query I rowsort
SELECT ALL 8 + - 5 col2
----
3

query I rowsort
SELECT 35 + 61
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-3365
SELECT - COALESCE ( + 69, - + 54 DIV - 90 + - 55 ) * + - 76 * 47 * 33 + + 46
----
8133490

skipif mysql # not compatible
query I rowsort label-3365
SELECT - COALESCE ( + 69, - + 54 / - 90 + - 55 ) * + - 76 * 47 * 33 + + 46
----
8133490

query I rowsort
SELECT ALL ( 29 ) + - 33 AS col1
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3367
SELECT MIN( + 75 ) DIV ( - - NULLIF ( 50, - COUNT( * ) ) ) - 96 + 67 col2
----
-28

skipif mysql # not compatible
query I rowsort label-3367
SELECT MIN ( + 75 ) / ( - - NULLIF ( 50, - COUNT ( * ) ) ) - 96 + 67 col2
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3368
SELECT DISTINCT CAST( NULL AS SIGNED ) + + + 45 * - 26 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3368
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + + 45 * - 26 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3369
SELECT ALL - 96 AS col2, NULLIF ( - - ( CASE - - 23 WHEN - 54 THEN - 74 END ), - MAX( + - 18 ) ) AS col2
----
-96
NULL

skipif mysql # not compatible
query II rowsort label-3369
SELECT ALL - 96 AS col2, NULLIF ( - - ( CASE - - 23 WHEN - 54 THEN - 74 END ), - MAX ( + - 18 ) ) AS col2
----
-96
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3370
SELECT CAST( NULL AS SIGNED ) * - 25 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3370
SELECT CAST ( NULL AS INTEGER ) * - 25 AS col2
----
NULL

query II rowsort
SELECT + 39, 13 + 6 col0
----
39
19

onlyif mysql # aggregate syntax: 
query I rowsort label-3372
SELECT ALL COUNT( * ) + - + 74 col1
----
-73

skipif mysql # not compatible
query I rowsort label-3372
SELECT ALL COUNT ( * ) + - + 74 col1
----
-73

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3373
SELECT DISTINCT CAST( NULL AS DECIMAL ) * - SUM( + 99 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3373
SELECT DISTINCT CAST ( NULL AS REAL ) * - SUM ( + 99 )
----
NULL

query I rowsort
SELECT ALL + 46 + + 94 + + 10
----
150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3375
SELECT 4 + - + CAST( NULL AS SIGNED ) * - - 94 * COUNT( * ) - ( + - COUNT( * ) ), - 82 AS col2
----
NULL
-82

skipif mysql # not compatible
query II rowsort label-3375
SELECT 4 + - + CAST ( NULL AS INTEGER ) * - - 94 * COUNT ( * ) - ( + - COUNT ( * ) ), - 82 AS col2
----
NULL
-82

query I rowsort
SELECT DISTINCT - CASE 78 WHEN + 37 - + + 17 * + 99 + AVG ( - + 24 ) + 62 / 13 THEN NULL ELSE - NULLIF ( - + 50, - ( - - 15 ) + - 85 ) END AS col0
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3377
SELECT ALL - + COALESCE ( COUNT( * ), - CAST( - 98 AS SIGNED ), - 49 ) - + 35 - - 22 DIV 3 * + + 87, - 23 AS col2
----
573
-23

skipif mysql # not compatible
query II rowsort label-3377
SELECT ALL - + COALESCE ( COUNT ( * ), - CAST ( - 98 AS INTEGER ), - 49 ) - + 35 - - 22 / 3 * + + 87, - 23 AS col2
----
573
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3378
SELECT + CAST( 43 AS SIGNED ) * + + ( + 34 ) + - 51 + + 54 * NULLIF ( + - SUM( + + 65 ), 47 ) + + 49 + + COUNT( * )
----
-2049

skipif mysql # not compatible
query I rowsort label-3378
SELECT + CAST ( 43 AS INTEGER ) * + + ( + 34 ) + - 51 + + 54 * NULLIF ( + - SUM ( + + 65 ), 47 ) + + 49 + + COUNT ( * )
----
-2049

onlyif mysql # DIV for integer division: 
query I rowsort label-3379
SELECT DISTINCT - COALESCE ( + 14, 89 ) DIV - + 89
----
0

skipif mysql # not compatible
query I rowsort label-3379
SELECT DISTINCT - COALESCE ( + 14, 89 ) / - + 89
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3380
SELECT ALL - + COUNT( 42 )
----
-1

skipif mysql # not compatible
query I rowsort label-3380
SELECT ALL - + COUNT ( 42 )
----
-1

query I rowsort
SELECT - ( - ( 11 ) )
----
11

query I rowsort
SELECT - 66 * + 34 col1
----
-2244

onlyif mysql # DIV for integer division: 
query I rowsort label-3383
SELECT 53 DIV + 42 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3383
SELECT 53 / + 42 AS col0
----
1

query I rowsort
SELECT ALL - ( + 80 ) * + 48
----
-3840

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3385
SELECT DISTINCT + 94 * - + 39 col1, COALESCE ( + + 6, + + 97 DIV - - 42 + + COUNT( * ) + - 85 + - COUNT( * ) * 68 DIV - 38 ) AS col0
----
-3666
6

skipif mysql # not compatible
query II rowsort label-3385
SELECT DISTINCT + 94 * - + 39 col1, COALESCE ( + + 6, + + 97 / - - 42 + + COUNT ( * ) + - 85 + - COUNT ( * ) * 68 / - 38 ) AS col0
----
-3666
6

query II rowsort
SELECT ALL + ( - 19 ) * ( + 32 ) col2, 31
----
-608
31

query I rowsort
SELECT - - 32 col2
----
32

query I rowsort
SELECT + ( - + 36 ) AS col1
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3389
SELECT CAST( NULL AS SIGNED ) * - 93 - + ( + 99 ) + + - 58 * - - 55, + 62 col2
----
NULL
62

skipif mysql # not compatible
query II rowsort label-3389
SELECT CAST ( NULL AS INTEGER ) * - 93 - + ( + 99 ) + + - 58 * - - 55, + 62 col2
----
NULL
62

query I rowsort
SELECT - 82 * + 37
----
-3034

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3391
SELECT 20 DIV COUNT( * ) AS col1
----
20

skipif mysql # not compatible
query I rowsort label-3391
SELECT 20 / COUNT ( * ) AS col1
----
20

query I rowsort
SELECT ALL - 13 + + COALESCE ( + 35, - 6 * 56 + + 77 * - 73 ) + 45 - + - 26 AS col1
----
93

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3393
SELECT DISTINCT CASE + + 69 WHEN - 40 THEN 17 * 4 / - CAST( NULL AS DECIMAL ) * - 26 * + + 48 WHEN + + 45 + + 31 THEN 0 END + + 51 AS col2, 27
----
NULL
27

skipif mysql # not compatible
query II rowsort label-3393
SELECT DISTINCT CASE + + 69 WHEN - 40 THEN 17 * 4 / - CAST ( NULL AS REAL ) * - 26 * + + 48 WHEN + + 45 + + 31 THEN 0 END + + 51 AS col2, 27
----
NULL
27

query I rowsort
SELECT DISTINCT 55 * + 71 AS col2
----
3905

query I rowsort
SELECT ALL + 40 + 9
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-3396
SELECT 45 DIV - + 43 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3396
SELECT 45 / - + 43 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3397
SELECT ALL 2 + + COUNT( * ) + 12 * + 37 * - COUNT( * ) * 15 AS col0
----
-6657

skipif mysql # not compatible
query I rowsort label-3397
SELECT ALL 2 + + COUNT ( * ) + 12 * + 37 * - COUNT ( * ) * 15 AS col0
----
-6657

onlyif mysql # aggregate syntax: 
query I rowsort label-3398
SELECT 16 - + - MIN( - 28 )
----
-12

skipif mysql # not compatible
query I rowsort label-3398
SELECT 16 - + - MIN ( - 28 )
----
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3399
SELECT 35 DIV - ( + COUNT( * ) ) AS col2
----
-35

skipif mysql # not compatible
query I rowsort label-3399
SELECT 35 / - ( + COUNT ( * ) ) AS col2
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-3400
SELECT COUNT( - 85 )
----
1

skipif mysql # not compatible
query I rowsort label-3400
SELECT COUNT ( - 85 )
----
1

query II rowsort
SELECT ALL 48 + - 21 AS col2, + 10
----
27
10

onlyif mysql # aggregate syntax: 
query II rowsort label-3402
SELECT 78 * - + 18 * - NULLIF ( 53, - + 31 ) - ( COUNT( * ) ) col1, + ( 33 ) + + - MAX( - 89 ) AS col0
----
74411
122

skipif mysql # not compatible
query II rowsort label-3402
SELECT 78 * - + 18 * - NULLIF ( 53, - + 31 ) - ( COUNT ( * ) ) col1, + ( 33 ) + + - MAX ( - 89 ) AS col0
----
74411
122

query I rowsort
SELECT ALL - 5 * - 57 * + - 36
----
-10260

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3404
SELECT CAST( + - 26 AS SIGNED ) * + 1
----
-26

skipif mysql # not compatible
query I rowsort label-3404
SELECT CAST ( + - 26 AS INTEGER ) * + 1
----
-26

query I rowsort
SELECT + 0 * + + 57 + + 93 + + 29
----
122

query I rowsort
SELECT ALL 67 * ( 56 ) + - 8 + - + 72 * 7 AS col1
----
3240

onlyif mysql # aggregate syntax: 
query I rowsort label-3407
SELECT + - 55 * - 21 - - 51 + - 60 + + - COUNT( ALL + + 20 ) * + - 0
----
1146

skipif mysql # not compatible
query I rowsort label-3407
SELECT + - 55 * - 21 - - 51 + - 60 + + - COUNT ( ALL + + 20 ) * + - 0
----
1146

query I rowsort
SELECT - 5 * + 26 - 69 AS col0
----
-199

query I rowsort
SELECT + 63 * - 79 + + - 0
----
-4977

onlyif mysql # aggregate syntax: 
query I rowsort label-3410
SELECT ( - 88 ) * - 94 * - + 50 + + - 4 + + ( - CASE + + 35 WHEN + - 18 + MAX( ALL 48 ) THEN NULL WHEN - 22 THEN + 39 + ( - AVG ( ALL - 21 ) ) ELSE NULL END ) * + COUNT( DISTINCT + 93 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3410
SELECT ( - 88 ) * - 94 * - + 50 + + - 4 + + ( - CASE + + 35 WHEN + - 18 + MAX ( ALL 48 ) THEN NULL WHEN - 22 THEN + 39 + ( - AVG ( ALL - 21 ) ) ELSE NULL END ) * + COUNT ( DISTINCT + 93 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3411
SELECT 98 * + 33 col0, + COUNT( * ) AS col0
----
3234
1

skipif mysql # not compatible
query II rowsort label-3411
SELECT 98 * + 33 col0, + COUNT ( * ) AS col0
----
3234
1

query I rowsort
SELECT + 4 + + ( - + ( - 37 ) )
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-3413
SELECT 32 - + COUNT( * ) AS col0
----
31

skipif mysql # not compatible
query I rowsort label-3413
SELECT 32 - + COUNT ( * ) AS col0
----
31

query I rowsort
SELECT - 57 + 11 AS col2
----
-46

onlyif mysql # aggregate syntax: 
query II rowsort label-3415
SELECT ALL - - COUNT( * ) + + COUNT( * ) AS col1, 99 AS col1
----
2
99

skipif mysql # not compatible
query II rowsort label-3415
SELECT ALL - - COUNT ( * ) + + COUNT ( * ) AS col1, 99 AS col1
----
2
99

onlyif mysql # aggregate syntax: 
query II rowsort label-3416
SELECT - ( + 36 ) * - COUNT( * ) + + 35 * + + 99 AS col1, + COUNT( * ) - - 20
----
3501
21

skipif mysql # not compatible
query II rowsort label-3416
SELECT - ( + 36 ) * - COUNT ( * ) + + 35 * + + 99 AS col1, + COUNT ( * ) - - 20
----
3501
21

onlyif mysql # aggregate syntax: 
query I rowsort label-3417
SELECT ALL + 49 + - - NULLIF ( + NULLIF ( + 38, COUNT( * ) ), - 31 ) AS col1
----
87

skipif mysql # not compatible
query I rowsort label-3417
SELECT ALL + 49 + - - NULLIF ( + NULLIF ( + 38, COUNT ( * ) ), - 31 ) AS col1
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3418
SELECT DISTINCT - NULLIF ( - ( + MIN( - 86 ) ), + 39 / 96 + - 45 ) + SUM( DISTINCT - 47 ) * 12 + - CAST( NULL AS SIGNED ) - - + 19 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3418
SELECT DISTINCT - NULLIF ( - ( + MIN ( - 86 ) ), + 39 / 96 + - 45 ) + SUM ( DISTINCT - 47 ) * 12 + - CAST ( NULL AS INTEGER ) - - + 19 AS col0
----
NULL

query I rowsort
SELECT ALL - 81 + - 52 * + - 39 AS col1
----
1947

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3420
SELECT - 20 * - COALESCE ( - 43, - CAST( NULL AS SIGNED ), + 51 ) AS col0
----
-860

skipif mysql # not compatible
query I rowsort label-3420
SELECT - 20 * - COALESCE ( - 43, - CAST ( NULL AS INTEGER ), + 51 ) AS col0
----
-860

query I rowsort
SELECT ALL - 8 + + - 79 AS col2
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-3422
SELECT ALL SUM( DISTINCT + 49 ) AS col0
----
49

skipif mysql # not compatible
query I rowsort label-3422
SELECT ALL SUM ( DISTINCT + 49 ) AS col0
----
49

query II rowsort
SELECT - 61, + 64 AS col0
----
-61
64

query I rowsort
SELECT - 8 + - 63 + + 58 * - 50
----
-2971

onlyif mysql # aggregate syntax: 
query I rowsort label-3425
SELECT DISTINCT CASE + - 24 WHEN 16 * + 47 + - COUNT( * ) * - + 1 + 81 THEN - 11 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3425
SELECT DISTINCT CASE + - 24 WHEN 16 * + 47 + - COUNT ( * ) * - + 1 + 81 THEN - 11 END
----
NULL

query I rowsort
SELECT - 84 + - + 92
----
-176

query I rowsort
SELECT + 90 - + 19 AS col2
----
71

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3428
SELECT - 60 + - CASE + 18 WHEN - 79 THEN + - CAST( + 11 AS DECIMAL ) END - + - 59 - - + 55 * - 51
----
NULL

skipif mysql # not compatible
query I rowsort label-3428
SELECT - 60 + - CASE + 18 WHEN - 79 THEN + - CAST ( + 11 AS REAL ) END - + - 59 - - + 55 * - 51
----
NULL

query I rowsort
SELECT - 37 + - + 41
----
-78

query I rowsort
SELECT ALL 48 - 51
----
-3

query I rowsort
SELECT - 54 * - 70 AS col0
----
3780

query I rowsort
SELECT DISTINCT COALESCE ( + 40, - - 10, + + 8 )
----
40

query I rowsort
SELECT DISTINCT + 61 * - 68 - - 68
----
-4080

onlyif mysql # aggregate syntax: 
query I rowsort label-3434
SELECT ALL 4 * - COUNT( * ) - + - 38 AS col1
----
34

skipif mysql # not compatible
query I rowsort label-3434
SELECT ALL 4 * - COUNT ( * ) - + - 38 AS col1
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-3435
SELECT + 98 * + MIN( ALL 47 ) + + 81 AS col1
----
4687

skipif mysql # not compatible
query I rowsort label-3435
SELECT + 98 * + MIN ( ALL 47 ) + + 81 AS col1
----
4687

onlyif mysql # aggregate syntax: 
query II rowsort label-3436
SELECT + 94 AS col0, + COUNT( + 39 ) AS col2
----
94
1

skipif mysql # not compatible
query II rowsort label-3436
SELECT + 94 AS col0, + COUNT ( + 39 ) AS col2
----
94
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3437
SELECT NULLIF ( 36, + + AVG ( DISTINCT + 3 ) / - - 37 * + CAST( NULL AS SIGNED ) / - + 9 - + COUNT( DISTINCT + ( + - 72 ) ) )
----
36

skipif mysql # not compatible
query I rowsort label-3437
SELECT NULLIF ( 36, + + AVG ( DISTINCT + 3 ) / - - 37 * + CAST ( NULL AS INTEGER ) / - + 9 - + COUNT ( DISTINCT + ( + - 72 ) ) )
----
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3438
SELECT + MIN( DISTINCT + 65 ) DIV NULLIF ( - 57, - + 70 * + + 65 - + 77 + 3 ) - - - 32
----
-33

skipif mysql # not compatible
query I rowsort label-3438
SELECT + MIN ( DISTINCT + 65 ) / NULLIF ( - 57, - + 70 * + + 65 - + 77 + 3 ) - - - 32
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-3439
SELECT DISTINCT - 60 * - 25 * + + COUNT( ( 7 ) ) + 80
----
1580

skipif mysql # not compatible
query I rowsort label-3439
SELECT DISTINCT - 60 * - 25 * + + COUNT ( ( 7 ) ) + 80
----
1580

onlyif mysql # DIV for integer division: 
query I rowsort label-3440
SELECT ALL + 96 DIV + + 65 + - + 25 AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-3440
SELECT ALL + 96 / + + 65 + - + 25 AS col0
----
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-3441
SELECT + + 91 DIV - + 14 col1
----
-6

skipif mysql # not compatible
query I rowsort label-3441
SELECT + + 91 / - + 14 col1
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3442
SELECT ALL + CAST( + + 88 AS SIGNED )
----
88

skipif mysql # not compatible
query I rowsort label-3442
SELECT ALL + CAST ( + + 88 AS INTEGER )
----
88

query I rowsort
SELECT ALL + - ( - 56 )
----
56

query II rowsort
SELECT 28, 98 AS col2
----
28
98

onlyif mysql # aggregate syntax: 
query II rowsort label-3445
SELECT + 97 * + + 55 * + 96 AS col0, COUNT( * ) * - 88
----
512160
-88

skipif mysql # not compatible
query II rowsort label-3445
SELECT + 97 * + + 55 * + 96 AS col0, COUNT ( * ) * - 88
----
512160
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-3446
SELECT - 56 * 9 + - 40 + - - 52 * + COUNT( * ) * 31 + - 93 AS col1
----
975

skipif mysql # not compatible
query I rowsort label-3446
SELECT - 56 * 9 + - 40 + - - 52 * + COUNT ( * ) * 31 + - 93 AS col1
----
975

query I rowsort
SELECT - - 58 - - 32 AS col1
----
90

query II rowsort
SELECT 71 col2, + COALESCE ( - - 21, 22 )
----
71
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3449
SELECT ALL COALESCE ( - - 30, - 48 * + + CAST( + 59 AS SIGNED ) - - + ( + + 89 ) + + 55 + + 26 DIV + - 92 + - - COUNT( * ) + + + 80, - 23 + + COALESCE ( COUNT( * ), + 48 ) ) AS col1
----
30

skipif mysql # not compatible
query I rowsort label-3449
SELECT ALL COALESCE ( - - 30, - 48 * + + CAST ( + 59 AS INTEGER ) - - + ( + + 89 ) + + 55 + + 26 / + - 92 + - - COUNT ( * ) + + + 80, - 23 + + COALESCE ( COUNT ( * ), + 48 ) ) AS col1
----
30

query I rowsort
SELECT DISTINCT 56 + - 91 + - 65 * 10 + - 19 * 25 AS col0
----
-1160

onlyif mysql # aggregate syntax: 
query I rowsort label-3451
SELECT ALL COUNT( * ) + - 37 + - 19 + 83 - ( 19 ) AS col0
----
9

skipif mysql # not compatible
query I rowsort label-3451
SELECT ALL COUNT ( * ) + - 37 + - 19 + 83 - ( 19 ) AS col0
----
9

onlyif mysql # aggregate syntax: 
query III rowsort label-3452
SELECT DISTINCT SUM( 10 ) AS col2, + 66 + + 35 + - - MAX( DISTINCT - 49 ) + - 83 col0, - ( + + 71 )
----
10
-31
-71

skipif mysql # not compatible
query III rowsort label-3452
SELECT DISTINCT SUM ( 10 ) AS col2, + 66 + + 35 + - - MAX ( DISTINCT - 49 ) + - 83 col0, - ( + + 71 )
----
10
-31
-71

query I rowsort
SELECT + 67 * - 19 * - 23
----
29279

onlyif mysql # aggregate syntax: 
query II rowsort label-3454
SELECT - SUM( ALL - ( + 27 ) ) + + 2 AS col2, - ( 14 ) * + 54
----
29
-756

skipif mysql # not compatible
query II rowsort label-3454
SELECT - SUM ( ALL - ( + 27 ) ) + + 2 AS col2, - ( 14 ) * + 54
----
29
-756

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3455
SELECT DISTINCT + 32 DIV 76 AS col0, CASE - 39 WHEN - + 89 + + COUNT( ALL 50 ) THEN - - 70 * - 97 + 9 ELSE NULL END + - + 83 + ( + ( 38 ) ) * - ( - 49 ) * - CASE - 45 WHEN + COUNT( ALL - 63 ) + - - CAST( - + CAST( + 62 AS SIGNED ) AS SIGNED ) THEN 6 * - 53 - + 34 - 80 DIV + 55 * + - 99 ELSE NULL END AS col2
----
0
NULL

skipif mysql # not compatible
query II rowsort label-3455
SELECT DISTINCT + 32 / 76 AS col0, CASE - 39 WHEN - + 89 + + COUNT ( ALL 50 ) THEN - - 70 * - 97 + 9 ELSE NULL END + - + 83 + ( + ( 38 ) ) * - ( - 49 ) * - CASE - 45 WHEN + COUNT ( ALL - 63 ) + - - CAST ( - + CAST ( + 62 AS INTEGER ) AS INTEGER ) THEN 6 * - 53 - + 34 - 80 / + 55 * + - 99 ELSE NULL END AS col2
----
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3456
SELECT ALL - 77 - + COUNT( - 79 )
----
-78

skipif mysql # not compatible
query I rowsort label-3456
SELECT ALL - 77 - + COUNT ( - 79 )
----
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-3457
SELECT ALL COALESCE ( 86, + 42 ) DIV - 86
----
-1

skipif mysql # not compatible
query I rowsort label-3457
SELECT ALL COALESCE ( 86, + 42 ) / - 86
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3458
SELECT - SUM( - - 76 ) DIV - 90 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3458
SELECT - SUM ( - - 76 ) / - 90 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3459
SELECT DISTINCT + 5 * 29 * - COUNT( * ) * - 24 * 27 * 91 AS col1
----
8550360

skipif mysql # not compatible
query I rowsort label-3459
SELECT DISTINCT + 5 * 29 * - COUNT ( * ) * - 24 * 27 * 91 AS col1
----
8550360

onlyif mysql # aggregate syntax: 
query I rowsort label-3460
SELECT ALL COALESCE ( - + 23, + - COUNT( DISTINCT 21 ) )
----
-23

skipif mysql # not compatible
query I rowsort label-3460
SELECT ALL COALESCE ( - + 23, + - COUNT ( DISTINCT 21 ) )
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3461
SELECT ALL CAST( + - 69 AS SIGNED )
----
-69

skipif mysql # not compatible
query I rowsort label-3461
SELECT ALL CAST ( + - 69 AS INTEGER )
----
-69

query I rowsort
SELECT ALL + 14 - + 98
----
-84

query I rowsort
SELECT ALL - 60 * ( + 24 ) AS col1
----
-1440

query I rowsort
SELECT DISTINCT ( - 35 ) col1
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-3465
SELECT - 95 - + COUNT( * ) + + 88
----
-8

skipif mysql # not compatible
query I rowsort label-3465
SELECT - 95 - + COUNT ( * ) + + 88
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-3466
SELECT DISTINCT - 42 * + MIN( - 44 ) * + - 3 * + 6 col1
----
-33264

skipif mysql # not compatible
query I rowsort label-3466
SELECT DISTINCT - 42 * + MIN ( - 44 ) * + - 3 * + 6 col1
----
-33264

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3467
SELECT ALL CAST( 38 AS SIGNED ) AS col1, - CASE 36 WHEN - - 31 + - 50 THEN NULL ELSE + + 79 * + + 38 + + + NULLIF ( - COUNT( * ), 19 - - 37 ) END col1
----
38
-3001

skipif mysql # not compatible
query II rowsort label-3467
SELECT ALL CAST ( 38 AS INTEGER ) AS col1, - CASE 36 WHEN - - 31 + - 50 THEN NULL ELSE + + 79 * + + 38 + + + NULLIF ( - COUNT ( * ), 19 - - 37 ) END col1
----
38
-3001

onlyif mysql # aggregate syntax: 
query I rowsort label-3468
SELECT + COUNT( DISTINCT - 29 ) * - - 87 - - 7 * + 6 * - - 18 - + 80 AS col0
----
763

skipif mysql # not compatible
query I rowsort label-3468
SELECT + COUNT ( DISTINCT - 29 ) * - - 87 - - 7 * + 6 * - - 18 - + 80 AS col0
----
763

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3469
SELECT + NULLIF ( - + 90, ( - 95 ) - + COALESCE ( + 31, + CAST( NULL AS SIGNED ), + 48 ) * + COUNT( * ) * + + 90 * 71 ) AS col0
----
-90

skipif mysql # not compatible
query I rowsort label-3469
SELECT + NULLIF ( - + 90, ( - 95 ) - + COALESCE ( + 31, + CAST ( NULL AS INTEGER ), + 48 ) * + COUNT ( * ) * + + 90 * 71 ) AS col0
----
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3470
SELECT DISTINCT + - 73 DIV 16 + + - 54 + + 2 + + COUNT( * ) + - 45 DIV COUNT( * ) AS col2
----
-100

skipif mysql # not compatible
query I rowsort label-3470
SELECT DISTINCT + - 73 / 16 + + - 54 + + 2 + + COUNT ( * ) + - 45 / COUNT ( * ) AS col2
----
-100

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3471
SELECT ALL + + 8 DIV MAX( 16 ) + + 20 + + 32 * 79 AS col0
----
2548

skipif mysql # not compatible
query I rowsort label-3471
SELECT ALL + + 8 / MAX ( 16 ) + + 20 + + 32 * 79 AS col0
----
2548

query I rowsort
SELECT DISTINCT + + 75 * - - 5
----
375

onlyif mysql # DIV for integer division: 
query I rowsort label-3473
SELECT DISTINCT - 24 DIV + NULLIF ( - 33, - COALESCE ( + 78, 58, 40 ) + + - 67 ) + + 80
----
80

skipif mysql # not compatible
query I rowsort label-3473
SELECT DISTINCT - 24 / + NULLIF ( - 33, - COALESCE ( + 78, 58, 40 ) + + - 67 ) + + 80
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3474
SELECT - 66 * + 51 + + + COUNT( CASE WHEN NOT CAST( NULL AS SIGNED ) IS NOT NULL THEN - NULLIF ( + 68, - 92 ) + - 66 * + 52 ELSE + - CAST( NULL AS SIGNED ) END ) + + + 8 * COUNT( * ) AS col2, 78 * - 84 AS col0
----
-3357
-6552

skipif mysql # not compatible
query II rowsort label-3474
SELECT - 66 * + 51 + + + COUNT ( CASE WHEN NOT CAST ( NULL AS INTEGER ) IS NOT NULL THEN - NULLIF ( + 68, - 92 ) + - 66 * + 52 ELSE + - CAST ( NULL AS INTEGER ) END ) + + + 8 * COUNT ( * ) AS col2, 78 * - 84 AS col0
----
-3357
-6552

onlyif mysql # aggregate syntax: 
query I rowsort label-3475
SELECT - - 59 * - - 59 - - + COUNT( * )
----
3482

skipif mysql # not compatible
query I rowsort label-3475
SELECT - - 59 * - - 59 - - + COUNT ( * )
----
3482

onlyif mysql # aggregate syntax: 
query II rowsort label-3476
SELECT + - MIN( - 70 ), COUNT( * ) AS col2
----
70
1

skipif mysql # not compatible
query II rowsort label-3476
SELECT + - MIN ( - 70 ), COUNT ( * ) AS col2
----
70
1

query I rowsort
SELECT ALL + 13 + 73 AS col2
----
86

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3478
SELECT DISTINCT + CAST( 70 AS SIGNED ) DIV 17 DIV + + 31 * - 79 + + 35 + - 10 AS col0
----
25

skipif mysql # not compatible
query I rowsort label-3478
SELECT DISTINCT + CAST ( 70 AS INTEGER ) / 17 / + + 31 * - 79 + + 35 + - 10 AS col0
----
25

query I rowsort
SELECT ALL 1 + 0
----
1

query I rowsort
SELECT - 75 * + + 29 * - + 42 AS col0
----
91350

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3481
SELECT - ( + 74 ) DIV COALESCE ( + 93, + 47 * - 23 + + MIN( - + 38 ) DIV - 68 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3481
SELECT - ( + 74 ) / COALESCE ( + 93, + 47 * - 23 + + MIN ( - + 38 ) / - 68 ) AS col1
----
0

query II rowsort
SELECT - 2 AS col1, 90 col0
----
-2
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3483
SELECT DISTINCT 73 - + + COUNT( * )
----
72

skipif mysql # not compatible
query I rowsort label-3483
SELECT DISTINCT 73 - + + COUNT ( * )
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-3484
SELECT DISTINCT COALESCE ( - COUNT( * ), - 25, + - 87 * - 32 ) - 92 AS col2
----
-93

skipif mysql # not compatible
query I rowsort label-3484
SELECT DISTINCT COALESCE ( - COUNT ( * ), - 25, + - 87 * - 32 ) - 92 AS col2
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-3485
SELECT ( - COUNT( * ) ) - 11 + + 16 * - 53 + 95 AS col0
----
-765

skipif mysql # not compatible
query I rowsort label-3485
SELECT ( - COUNT ( * ) ) - 11 + + 16 * - 53 + 95 AS col0
----
-765

query I rowsort
SELECT 70 - - 33
----
103

query I rowsort
SELECT 79 * + 69
----
5451

onlyif mysql # aggregate syntax: 
query I rowsort label-3488
SELECT ( ( - + MIN( + + 42 ) ) ) + 73 AS col2
----
31

skipif mysql # not compatible
query I rowsort label-3488
SELECT ( ( - + MIN ( + + 42 ) ) ) + 73 AS col2
----
31

query I rowsort
SELECT 86 / CASE 6 WHEN - 56 THEN + 66 / - - 70 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3490
SELECT SUM( - - 64 ) + + ( 31 )
----
95

skipif mysql # not compatible
query I rowsort label-3490
SELECT SUM ( - - 64 ) + + ( 31 )
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-3491
SELECT 95 - COUNT( * ) * + 54 * 38
----
-1957

skipif mysql # not compatible
query I rowsort label-3491
SELECT 95 - COUNT ( * ) * + 54 * 38
----
-1957

onlyif mysql # DIV for integer division: 
query I rowsort label-3492
SELECT 99 DIV + 71
----
1

skipif mysql # not compatible
query I rowsort label-3492
SELECT 99 / + 71
----
1

query I rowsort
SELECT 5 - - 79 AS col0
----
84

query I rowsort
SELECT ALL + 83 * + 9 AS col1
----
747

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3495
SELECT DISTINCT 88 DIV MIN( DISTINCT + 91 ) AS col2, 90
----
0
90

skipif mysql # not compatible
query II rowsort label-3495
SELECT DISTINCT 88 / MIN ( DISTINCT + 91 ) AS col2, 90
----
0
90

onlyif mysql # DIV for integer division: 
query I rowsort label-3496
SELECT 97 DIV + 99 * + 15
----
0

skipif mysql # not compatible
query I rowsort label-3496
SELECT 97 / + 99 * + 15
----
0

query I rowsort
SELECT 27 + - + 67
----
-40

query II rowsort
SELECT ALL - ( NULLIF ( 18, + + 77 ) ) * + 92 AS col1, + ( - 30 ) * 88
----
-1656
-2640

query I rowsort
SELECT ALL + + 23 + - 84
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-3500
SELECT - ( + + 96 ) + - COALESCE ( + 51, 39, + - COUNT( - - 33 ) ) AS col2
----
-147

skipif mysql # not compatible
query I rowsort label-3500
SELECT - ( + + 96 ) + - COALESCE ( + 51, 39, + - COUNT ( - - 33 ) ) AS col2
----
-147

query I rowsort
SELECT + ( + - 60 )
----
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3502
SELECT 24 * + 53 DIV + COUNT( * ) + COUNT( * )
----
1273

skipif mysql # not compatible
query I rowsort label-3502
SELECT 24 * + 53 / + COUNT ( * ) + COUNT ( * )
----
1273

query I rowsort
SELECT ALL - 19 + 17
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-3504
SELECT - + 84 DIV + 59 + 83
----
82

skipif mysql # not compatible
query I rowsort label-3504
SELECT - + 84 / + 59 + 83
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3505
SELECT ALL + - 22 + + 49 + - COUNT( * ) col1, + CAST( - 41 AS SIGNED )
----
26
-41

skipif mysql # not compatible
query II rowsort label-3505
SELECT ALL + - 22 + + 49 + - COUNT ( * ) col1, + CAST ( - 41 AS INTEGER )
----
26
-41

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3506
SELECT + COALESCE ( CAST( + 49 AS SIGNED ), + + 0 + - + 3 ) AS col0, + 62
----
49
62

skipif mysql # not compatible
query II rowsort label-3506
SELECT + COALESCE ( CAST ( + 49 AS INTEGER ), + + 0 + - + 3 ) AS col0, + 62
----
49
62

query II rowsort
SELECT ALL - - 49, + 87 + - 4 * - + 53 AS col1
----
49
299

onlyif mysql # aggregate syntax: 
query I rowsort label-3508
SELECT COALESCE ( - 51, + COALESCE ( 91, - COUNT( * ), 16 + + COUNT( * ) ) )
----
-51

skipif mysql # not compatible
query I rowsort label-3508
SELECT COALESCE ( - 51, + COALESCE ( 91, - COUNT ( * ), 16 + + COUNT ( * ) ) )
----
-51

query I rowsort
SELECT ALL + 84 + - + 73
----
11

query II rowsort
SELECT + 43 AS col0, + 11 + 64 AS col2
----
43
75

query I rowsort
SELECT ALL + - 5 * - 96 * 19 AS col1
----
9120

onlyif mysql # aggregate syntax: 
query I rowsort label-3512
SELECT ALL - COUNT( * ) - - - 58 AS col1
----
-59

skipif mysql # not compatible
query I rowsort label-3512
SELECT ALL - COUNT ( * ) - - - 58 AS col1
----
-59

query I rowsort
SELECT 50 * 96 + + + 66
----
4866

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3514
SELECT COUNT( * ) - + ( + 84 ) * + NULLIF ( + COUNT( * ), + - 7 ) * CAST( - 38 AS SIGNED ) DIV COUNT( * )
----
3193

skipif mysql # not compatible
query I rowsort label-3514
SELECT COUNT ( * ) - + ( + 84 ) * + NULLIF ( + COUNT ( * ), + - 7 ) * CAST ( - 38 AS INTEGER ) / COUNT ( * )
----
3193

query I rowsort
SELECT 35 + - ( + + 79 ) * 39
----
-3046

query II rowsort
SELECT 73 AS col2, 93 + - 88 AS col0
----
73
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3517
SELECT DISTINCT - 32 * + COUNT( ALL + + 28 )
----
-32

skipif mysql # not compatible
query I rowsort label-3517
SELECT DISTINCT - 32 * + COUNT ( ALL + + 28 )
----
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-3518
SELECT ALL 25 DIV + 42
----
0

skipif mysql # not compatible
query I rowsort label-3518
SELECT ALL 25 / + 42
----
0

query I rowsort
SELECT 60 + - + 86 AS col1
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-3520
SELECT ALL COUNT( DISTINCT + 71 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3520
SELECT ALL COUNT ( DISTINCT + 71 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3521
SELECT + 74 * - - 64 + - 53 + + NULLIF ( - ( ( - 34 ) ), ( - COUNT( * ) ) + 54 + 99 * - 9 - + 58 / - 43 * - 96 ) + - COUNT( - - 36 )
----
4716

skipif mysql # not compatible
query I rowsort label-3521
SELECT + 74 * - - 64 + - 53 + + NULLIF ( - ( ( - 34 ) ), ( - COUNT ( * ) ) + 54 + 99 * - 9 - + 58 / - 43 * - 96 ) + - COUNT ( - - 36 )
----
4716

onlyif mysql # DIV for integer division: 
query I rowsort label-3522
SELECT 44 DIV + 2 col2
----
22

skipif mysql # not compatible
query I rowsort label-3522
SELECT 44 / + 2 col2
----
22

query I rowsort
SELECT 80 + - + 91
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-3524
SELECT ALL 89 DIV + 85
----
1

skipif mysql # not compatible
query I rowsort label-3524
SELECT ALL 89 / + 85
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3525
SELECT MIN( DISTINCT - ( + 25 ) ) * + 66 AS col0
----
-1650

skipif mysql # not compatible
query I rowsort label-3525
SELECT MIN ( DISTINCT - ( + 25 ) ) * + 66 AS col0
----
-1650

onlyif mysql # aggregate syntax: 
query I rowsort label-3526
SELECT ( - COUNT( * ) ) * 61
----
-61

skipif mysql # not compatible
query I rowsort label-3526
SELECT ( - COUNT ( * ) ) * 61
----
-61

query I rowsort
SELECT DISTINCT 83 * 49 AS col1
----
4067

onlyif mysql # aggregate syntax: 
query II rowsort label-3528
SELECT 60, + COUNT( * ) + + 46 - + - ( - 42 ) AS col0
----
60
5

skipif mysql # not compatible
query II rowsort label-3528
SELECT 60, + COUNT ( * ) + + 46 - + - ( - 42 ) AS col0
----
60
5

onlyif mysql # aggregate syntax: 
query II rowsort label-3529
SELECT COUNT( * ) + - ( 55 ) * + 41, 8 * 94 AS col2
----
-2254
752

skipif mysql # not compatible
query II rowsort label-3529
SELECT COUNT ( * ) + - ( 55 ) * + 41, 8 * 94 AS col2
----
-2254
752

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3530
SELECT ALL COUNT( * ) * - + CAST( - - 13 AS SIGNED ) AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-3530
SELECT ALL COUNT ( * ) * - + CAST ( - - 13 AS INTEGER ) AS col1
----
-13

query I rowsort
SELECT ( + 84 ) * - NULLIF ( - 64, - - 25 ) AS col0
----
5376

query I rowsort
SELECT ALL 30 + 45 + + 1
----
76

query I rowsort
SELECT DISTINCT 88 + 36 + - ( + 47 ) - - 38 AS col1
----
115

query I rowsort
SELECT ALL 12 + + - 80
----
-68

onlyif mysql # aggregate syntax: 
query II rowsort label-3535
SELECT - COUNT( * ) AS col2, 31 AS col2
----
-1
31

skipif mysql # not compatible
query II rowsort label-3535
SELECT - COUNT ( * ) AS col2, 31 AS col2
----
-1
31

onlyif mysql # aggregate syntax: 
query I rowsort label-3536
SELECT DISTINCT 93 + COUNT( * ) + 60
----
154

skipif mysql # not compatible
query I rowsort label-3536
SELECT DISTINCT 93 + COUNT ( * ) + 60
----
154

onlyif mysql # aggregate syntax: 
query I rowsort label-3537
SELECT - CASE NULLIF ( + COUNT( * ), + 99 / - + 1 + 24 * + COUNT( DISTINCT - + 72 ) ) WHEN - CASE 7 WHEN 13 / - 38 * - 47 - - - 67 THEN + 97 + - - 37 WHEN + ( - COUNT( 25 ) ) THEN NULL END THEN COUNT( * ) + COALESCE ( + 26, 35, 11 ) + COUNT( * ) * COUNT( 16 ) * - + COUNT( * ) * 24 * COUNT( * ) - 62 WHEN - + CASE - 46 WHEN - - 60 THEN - 50 WHEN 56 THEN + COALESCE ( 79, - COUNT( DISTINCT 67 ) ) ELSE 73 END THEN NULL ELSE + COUNT( * ) END
----
-1

skipif mysql # not compatible
query I rowsort label-3537
SELECT - CASE NULLIF ( + COUNT ( * ), + 99 / - + 1 + 24 * + COUNT ( DISTINCT - + 72 ) ) WHEN - CASE 7 WHEN 13 / - 38 * - 47 - - - 67 THEN + 97 + - - 37 WHEN + ( - COUNT ( 25 ) ) THEN NULL END THEN COUNT ( * ) + COALESCE ( + 26, 35, 11 ) + COUNT ( * ) * COUNT ( 16 ) * - + COUNT ( * ) * 24 * COUNT ( * ) - 62 WHEN - + CASE - 46 WHEN - - 60 THEN - 50 WHEN 56 THEN + COALESCE ( 79, - COUNT ( DISTINCT 67 ) ) ELSE 73 END THEN NULL ELSE + COUNT ( * ) END
----
-1

query I rowsort
SELECT - + COALESCE ( 5, 0 )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3539
SELECT NULLIF ( 23, + + COUNT( * ) ) AS col0
----
23

skipif mysql # not compatible
query I rowsort label-3539
SELECT NULLIF ( 23, + + COUNT ( * ) ) AS col0
----
23

query I rowsort
SELECT + 94 - 8 * + ( - + 77 ) AS col0
----
710

query I rowsort
SELECT - CASE - 84 WHEN - 74 - - 31 THEN 90 * 79 * 10 + - - 13 * + 47 + 1 WHEN 97 + ( 48 ) THEN - - 69 END * 54 - - 76 + - + 18 / 17
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3542
SELECT ALL 33 DIV + 90 * - 13 * COUNT( * ), - 60 + - 37 - ( + NULLIF ( - 33, + 84 ) ) * + 85 AS col0
----
0
2708

skipif mysql # not compatible
query II rowsort label-3542
SELECT ALL 33 / + 90 * - 13 * COUNT ( * ), - 60 + - 37 - ( + NULLIF ( - 33, + 84 ) ) * + 85 AS col0
----
0
2708

query II rowsort
SELECT ALL + - 38 col1, + 92 AS col1
----
-38
92

query II rowsort
SELECT + 26, 86 AS col2
----
26
86

query I rowsort
SELECT DISTINCT + + ( + 45 ) col0
----
45

query I rowsort
SELECT - - 22 * - 98 - + + 46 AS col0
----
-2202

query I rowsort
SELECT + - 41 * - - 6 + ( - 27 ) + 74 + + 35 AS col0
----
-164

onlyif mysql # aggregate syntax: 
query II rowsort label-3548
SELECT ALL - 30 * + - 22 * + COUNT( DISTINCT 91 ) AS col0, - 31
----
660
-31

skipif mysql # not compatible
query II rowsort label-3548
SELECT ALL - 30 * + - 22 * + COUNT ( DISTINCT 91 ) AS col0, - 31
----
660
-31

query I rowsort
SELECT ALL + - 63 col1
----
-63

query II rowsort
SELECT + + 47, + 60 + - 37 AS col2
----
47
23

query I rowsort
SELECT - + 69 + + + 99 * 29 AS col2
----
2802

onlyif mysql # aggregate syntax: 
query I rowsort label-3552
SELECT - 38 * + - MAX( DISTINCT + 26 ) col1
----
988

skipif mysql # not compatible
query I rowsort label-3552
SELECT - 38 * + - MAX ( DISTINCT + 26 ) col1
----
988

query II rowsort
SELECT ALL - 0 * + 93, + 65 + 92 AS col1
----
0
157

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3554
SELECT DISTINCT + ( - CAST( - NULLIF ( - 39, + 4 + - CASE 6 WHEN 89 + - - 84 THEN - - 40 * + COUNT( * ) - CASE - COUNT( * ) WHEN - 33 + - 51 THEN + 53 * - 78 + CAST( - - 14 AS DECIMAL ) WHEN 33 - - 3 THEN NULL END + - + 59 * + + 57 * + 26 * + + 5 ELSE NULL END ) AS SIGNED ) ) AS col2, 90 AS col2
----
-39
90

skipif mysql # not compatible
query II rowsort label-3554
SELECT DISTINCT + ( - CAST ( - NULLIF ( - 39, + 4 + - CASE 6 WHEN 89 + - - 84 THEN - - 40 * + COUNT ( * ) - CASE - COUNT ( * ) WHEN - 33 + - 51 THEN + 53 * - 78 + CAST ( - - 14 AS REAL ) WHEN 33 - - 3 THEN NULL END + - + 59 * + + 57 * + 26 * + + 5 ELSE NULL END ) AS INTEGER ) ) AS col2, 90 AS col2
----
-39
90

query I rowsort
SELECT - 8 * - - 14
----
-112

query I rowsort
SELECT + 70 * - 92 + 36 AS col2
----
-6404

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3557
SELECT DISTINCT - 83 * + - 84 * CASE + COUNT( * ) WHEN - 82 + COALESCE ( + 77, - COUNT( * ) + - ( 9 ), + 98 ) * - 31 THEN NULL WHEN - - CAST( NULL AS SIGNED ) THEN + + 17 / + - AVG ( ALL CAST( NULL AS SIGNED ) ) WHEN + NULLIF ( NULLIF ( - COUNT( * ), + 32 ), + ( + + 5 ) / - 8 ) * + COUNT( * ) * MIN( DISTINCT - 0 ) + COUNT( * ) + - - COALESCE ( - 30, - + ( + 67 ), + 95 / + 62 ) - CAST( NULL AS SIGNED ) THEN 61 + - 31 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3557
SELECT DISTINCT - 83 * + - 84 * CASE + COUNT ( * ) WHEN - 82 + COALESCE ( + 77, - COUNT ( * ) + - ( 9 ), + 98 ) * - 31 THEN NULL WHEN - - CAST ( NULL AS INTEGER ) THEN + + 17 / + - AVG ( ALL CAST ( NULL AS INTEGER ) ) WHEN + NULLIF ( NULLIF ( - COUNT ( * ), + 32 ), + ( + + 5 ) / - 8 ) * + COUNT ( * ) * MIN ( DISTINCT - 0 ) + COUNT ( * ) + - - COALESCE ( - 30, - + ( + 67 ), + 95 / + 62 ) - CAST ( NULL AS INTEGER ) THEN 61 + - 31 END
----
NULL

query II rowsort
SELECT ALL ( 99 ) AS col1, 15
----
99
15

query I rowsort
SELECT ALL - 1 * 7 AS col0
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3560
SELECT - 24 DIV + 52 DIV COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3560
SELECT - 24 / + 52 / COUNT ( * ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3561
SELECT - COUNT( * ) - - - 31
----
-32

skipif mysql # not compatible
query I rowsort label-3561
SELECT - COUNT ( * ) - - - 31
----
-32

query I rowsort
SELECT DISTINCT - 84 * - 35 AS col0
----
2940

query I rowsort
SELECT ALL + 29 + + 83
----
112

query I rowsort
SELECT ALL ( - - 58 ) AS col1
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3565
SELECT DISTINCT + 11 + CASE 82 WHEN 79 * - CASE + CASE + 49 WHEN + COALESCE ( + 64, + 58 * + 98, 80 ) + - 36 THEN NULL WHEN + - 22 THEN NULL ELSE - + 31 END WHEN - - 59 + + - ( + MIN( + + 73 ) ) THEN + 73 WHEN + - 41 THEN NULL ELSE NULL END + + + 14 + + CASE 19 WHEN - - 3 THEN NULL WHEN ( + 21 ) THEN + 89 ELSE NULL END - + + 58 * + SUM( ALL 71 ) THEN + CAST( NULL AS SIGNED ) WHEN - + 82 THEN - ( 69 ) ELSE NULL END + + - COUNT( * ) - - 61 * + CAST( NULL AS SIGNED ) * 89
----
NULL

skipif mysql # not compatible
query I rowsort label-3565
SELECT DISTINCT + 11 + CASE 82 WHEN 79 * - CASE + CASE + 49 WHEN + COALESCE ( + 64, + 58 * + 98, 80 ) + - 36 THEN NULL WHEN + - 22 THEN NULL ELSE - + 31 END WHEN - - 59 + + - ( + MIN ( + + 73 ) ) THEN + 73 WHEN + - 41 THEN NULL ELSE NULL END + + + 14 + + CASE 19 WHEN - - 3 THEN NULL WHEN ( + 21 ) THEN + 89 ELSE NULL END - + + 58 * + SUM ( ALL 71 ) THEN + CAST ( NULL AS INTEGER ) WHEN - + 82 THEN - ( 69 ) ELSE NULL END + + - COUNT ( * ) - - 61 * + CAST ( NULL AS INTEGER ) * 89
----
NULL

query II rowsort
SELECT ALL - 57 + + 41 col0, 1
----
-16
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3567
SELECT - COUNT( * ) * - AVG ( ALL CAST( NULL AS SIGNED ) ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3567
SELECT - COUNT ( * ) * - AVG ( ALL CAST ( NULL AS INTEGER ) ) * + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT + ( + 18 ) AS col1, - 19
----
18
-19

query I rowsort
SELECT + 25 * - 3 + 84
----
9

query I rowsort
SELECT ALL 95 + 58 AS col0
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-3571
SELECT - - MAX( ALL + 99 ) AS col2
----
99

skipif mysql # not compatible
query I rowsort label-3571
SELECT - - MAX ( ALL + 99 ) AS col2
----
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3572
SELECT - 78 + - COUNT( * ) + + + COUNT( * ) + + 32 DIV + 52 * 79 * + COUNT( * ) * - 8 * MAX( + 40 )
----
-78

skipif mysql # not compatible
query I rowsort label-3572
SELECT - 78 + - COUNT ( * ) + + + COUNT ( * ) + + 32 / + 52 * 79 * + COUNT ( * ) * - 8 * MAX ( + 40 )
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-3573
SELECT + 48 - MIN( DISTINCT ( + 54 ) ) col0
----
-6

skipif mysql # not compatible
query I rowsort label-3573
SELECT + 48 - MIN ( DISTINCT ( + 54 ) ) col0
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3574
SELECT ALL NULLIF ( + 77, - 26 + + CAST( NULL AS SIGNED ) * + - COUNT( * ) ) * 99 AS col1
----
7623

skipif mysql # not compatible
query I rowsort label-3574
SELECT ALL NULLIF ( + 77, - 26 + + CAST ( NULL AS INTEGER ) * + - COUNT ( * ) ) * 99 AS col1
----
7623

query I rowsort
SELECT + 5 + 29
----
34

query I rowsort
SELECT ALL + ( - - 15 ) * 35
----
525

onlyif mysql # aggregate syntax: 
query I rowsort label-3577
SELECT + - 56 + + NULLIF ( MAX( DISTINCT - 70 ), COUNT( DISTINCT + 63 ) )
----
-126

skipif mysql # not compatible
query I rowsort label-3577
SELECT + - 56 + + NULLIF ( MAX ( DISTINCT - 70 ), COUNT ( DISTINCT + 63 ) )
----
-126

onlyif mysql # aggregate syntax: 
query I rowsort label-3578
SELECT DISTINCT 6 * COUNT( * ) * + - 42
----
-252

skipif mysql # not compatible
query I rowsort label-3578
SELECT DISTINCT 6 * COUNT ( * ) * + - 42
----
-252

onlyif mysql # aggregate syntax: 
query I rowsort label-3579
SELECT COUNT( * ) * + MAX( + + 65 ) + - 70 + - 64
----
-69

skipif mysql # not compatible
query I rowsort label-3579
SELECT COUNT ( * ) * + MAX ( + + 65 ) + - 70 + - 64
----
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-3580
SELECT + 94 DIV + 94 + + - 12 + - 2
----
-13

skipif mysql # not compatible
query I rowsort label-3580
SELECT + 94 / + 94 + + - 12 + - 2
----
-13

query I rowsort
SELECT + - 4 + + 96 + - - 15 col1
----
107

query I rowsort
SELECT DISTINCT - - 38 * + 54 * + 83 + + 73 + - 58 * 8 AS col0
----
169925

onlyif mysql # aggregate syntax: 
query I rowsort label-3583
SELECT ALL + NULLIF ( + + COUNT( * ), 75 / + + 83 - 30 )
----
1

skipif mysql # not compatible
query I rowsort label-3583
SELECT ALL + NULLIF ( + + COUNT ( * ), 75 / + + 83 - 30 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3584
SELECT + COALESCE ( - ( + - 27 ), - + 1 * + - 10 + - + NULLIF ( + 95, + AVG ( ALL 20 ) * 38 * NULLIF ( 18, - + 73 * COUNT( * ) ) + + - COALESCE ( + 30, - 88 * 53 ) - - 99 + + + COUNT( * ) ) + - - 0 + + COALESCE ( - 3, CAST( - 28 AS SIGNED ) * 84 ) * - 71 DIV + + 28 * - - 46 * + 32 ) * - 95 + 49 AS col1
----
-2516

skipif mysql # not compatible
query I rowsort label-3584
SELECT + COALESCE ( - ( + - 27 ), - + 1 * + - 10 + - + NULLIF ( + 95, + AVG ( ALL 20 ) * 38 * NULLIF ( 18, - + 73 * COUNT ( * ) ) + + - COALESCE ( + 30, - 88 * 53 ) - - 99 + + + COUNT ( * ) ) + - - 0 + + COALESCE ( - 3, CAST ( - 28 AS INTEGER ) * 84 ) * - 71 / + + 28 * - - 46 * + 32 ) * - 95 + 49 AS col1
----
-2516

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3585
SELECT ( + NULLIF ( + CASE - COUNT( * ) WHEN - - 34 * + ( + COALESCE ( - COUNT( * ), 14 + + COUNT( * ) / 76 * + - 31, 43, 80 ) ) + - 40 THEN + 15 * - 3 + + 65 WHEN + - CASE - 92 WHEN - COUNT( * ) THEN + 78 + - 79 * 7 WHEN - 69 THEN NULL ELSE + 14 * + - CAST( NULL AS SIGNED ) + + 34 + NULLIF ( - + 70, - 26 ) + 3 END THEN NULL END, + + 13 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3585
SELECT ( + NULLIF ( + CASE - COUNT ( * ) WHEN - - 34 * + ( + COALESCE ( - COUNT ( * ), 14 + + COUNT ( * ) / 76 * + - 31, 43, 80 ) ) + - 40 THEN + 15 * - 3 + + 65 WHEN + - CASE - 92 WHEN - COUNT ( * ) THEN + 78 + - 79 * 7 WHEN - 69 THEN NULL ELSE + 14 * + - CAST ( NULL AS INTEGER ) + + 34 + NULLIF ( - + 70, - 26 ) + 3 END THEN NULL END, + + 13 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3586
SELECT - 84 * - ( + 47 ) / CASE 82 WHEN - 4 * + 82 + - 5 THEN + MAX( - 46 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3586
SELECT - 84 * - ( + 47 ) / CASE 82 WHEN - 4 * + 82 + - 5 THEN + MAX ( - 46 ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3587
SELECT DISTINCT - 15 * + COUNT( * ) AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-3587
SELECT DISTINCT - 15 * + COUNT ( * ) AS col2
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-3588
SELECT + 65 * 35 + - - 19 AS col0, 53 * 44 + - + 53 * + + MAX( DISTINCT + - 7 ) AS col0
----
2294
2703

skipif mysql # not compatible
query II rowsort label-3588
SELECT + 65 * 35 + - - 19 AS col0, 53 * 44 + - + 53 * + + MAX ( DISTINCT + - 7 ) AS col0
----
2294
2703

query I rowsort
SELECT + 31 - 30
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-3590
SELECT ALL + 34, - 77 DIV + 77 AS col1
----
34
-1

skipif mysql # not compatible
query II rowsort label-3590
SELECT ALL + 34, - 77 / + 77 AS col1
----
34
-1

query I rowsort
SELECT + 48 * + - 20
----
-960

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3592
SELECT 24 * + - COUNT( * ) + + 88 DIV 91
----
-24

skipif mysql # not compatible
query I rowsort label-3592
SELECT 24 * + - COUNT ( * ) + + 88 / 91
----
-24

query I rowsort
SELECT DISTINCT 72 * 74 AS col2
----
5328

onlyif mysql # aggregate syntax: 
query I rowsort label-3594
SELECT ALL - 42 * + COUNT( * ) + - 45 - + 92
----
-179

skipif mysql # not compatible
query I rowsort label-3594
SELECT ALL - 42 * + COUNT ( * ) + - 45 - + 92
----
-179

query I rowsort
SELECT DISTINCT 65 * + 59 + 90
----
3925

onlyif mysql # aggregate syntax: 
query I rowsort label-3596
SELECT DISTINCT - 52 * - COUNT( * )
----
52

skipif mysql # not compatible
query I rowsort label-3596
SELECT DISTINCT - 52 * - COUNT ( * )
----
52

query II rowsort
SELECT - 41 AS col0, 41 AS col2
----
-41
41

query I rowsort
SELECT 85 * - 67 AS col1
----
-5695

onlyif mysql # aggregate syntax: 
query I rowsort label-3599
SELECT 20 * + + COUNT( * )
----
20

skipif mysql # not compatible
query I rowsort label-3599
SELECT 20 * + + COUNT ( * )
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-3600
SELECT DISTINCT - CASE + COUNT( + 16 ) WHEN - 31 THEN NULL WHEN + 27 * COUNT( * ) * + - 10 * 96 * + + COUNT( * ) - ( - 26 ) - - 40 THEN NULL ELSE + - 17 END * 87 * + - 97 AS col0
----
-143463

skipif mysql # not compatible
query I rowsort label-3600
SELECT DISTINCT - CASE + COUNT ( + 16 ) WHEN - 31 THEN NULL WHEN + 27 * COUNT ( * ) * + - 10 * 96 * + + COUNT ( * ) - ( - 26 ) - - 40 THEN NULL ELSE + - 17 END * 87 * + - 97 AS col0
----
-143463

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3601
SELECT - + CASE - + 82 WHEN - 34 THEN + 98 WHEN + 38 THEN - 54 WHEN - 28 * - CASE 2 WHEN + 46 THEN - + 91 * + NULLIF ( 21, 53 + + + 61 * + 16 ) + 12 - - - 18 * - ( - CAST( + SUM( DISTINCT - 99 ) AS SIGNED ) ) + - CASE 17 WHEN 20 THEN NULL WHEN + MAX( - 90 ) THEN - NULLIF ( + 83, + COUNT( * ) / 45 / - CASE + 93 WHEN + 15 / - - 97 THEN - COUNT( * ) WHEN 92 THEN + + NULLIF ( 31, + COALESCE ( + 76, 57, + 31 * - 73 ) - - 98 * COUNT( * ) ) + - 93 END * - COUNT( * ) ) + + 14 / - COUNT( * ) WHEN + 86 THEN 25 END + 83 * COUNT( * ) * - COUNT( * ) END + 0 THEN 74 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3601
SELECT - + CASE - + 82 WHEN - 34 THEN + 98 WHEN + 38 THEN - 54 WHEN - 28 * - CASE 2 WHEN + 46 THEN - + 91 * + NULLIF ( 21, 53 + + + 61 * + 16 ) + 12 - - - 18 * - ( - CAST ( + SUM ( DISTINCT - 99 ) AS INTEGER ) ) + - CASE 17 WHEN 20 THEN NULL WHEN + MAX ( - 90 ) THEN - NULLIF ( + 83, + COUNT ( * ) / 45 / - CASE + 93 WHEN + 15 / - - 97 THEN - COUNT ( * ) WHEN 92 THEN + + NULLIF ( 31, + COALESCE ( + 76, 57, + 31 * - 73 ) - - 98 * COUNT ( * ) ) + - 93 END * - COUNT ( * ) ) + + 14 / - COUNT ( * ) WHEN + 86 THEN 25 END + 83 * COUNT ( * ) * - COUNT ( * ) END + 0 THEN 74 END AS col2
----
NULL

query I rowsort
SELECT - 37 * - ( + + 19 ) AS col0
----
703

onlyif mysql # aggregate syntax: 
query I rowsort label-3603
SELECT MAX( + ( 0 ) ) col2
----
0

skipif mysql # not compatible
query I rowsort label-3603
SELECT MAX ( + ( 0 ) ) col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3604
SELECT ALL + + 90 - CAST( + COUNT( * ) AS SIGNED ) * + 62
----
28

skipif mysql # not compatible
query I rowsort label-3604
SELECT ALL + + 90 - CAST ( + COUNT ( * ) AS INTEGER ) * + 62
----
28

query I rowsort
SELECT - 85 * - 36
----
3060

onlyif mysql # aggregate syntax: 
query I rowsort label-3606
SELECT DISTINCT + + 74 * - COUNT( * )
----
-74

skipif mysql # not compatible
query I rowsort label-3606
SELECT DISTINCT + + 74 * - COUNT ( * )
----
-74

query I rowsort
SELECT ALL 29 - - 26
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-3608
SELECT ALL - 54 * + COUNT( * ) * - + COUNT( * ) col1
----
54

skipif mysql # not compatible
query I rowsort label-3608
SELECT ALL - 54 * + COUNT ( * ) * - + COUNT ( * ) col1
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-3609
SELECT DISTINCT + SUM( + - 18 ) AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-3609
SELECT DISTINCT + SUM ( + - 18 ) AS col2
----
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3610
SELECT ALL 51 DIV + COUNT( * )
----
51

skipif mysql # not compatible
query I rowsort label-3610
SELECT ALL 51 / + COUNT ( * )
----
51

query I rowsort
SELECT 61 * + + 20
----
1220

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3612
SELECT - + COUNT( * ), - COUNT( * ) * CAST( 35 AS SIGNED ) col1
----
-1
-35

skipif mysql # not compatible
query II rowsort label-3612
SELECT - + COUNT ( * ), - COUNT ( * ) * CAST ( 35 AS INTEGER ) col1
----
-1
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-3613
SELECT 20 * MIN( DISTINCT - + 83 ) * + + CASE - 80 WHEN + + ( 5 ) THEN + 57 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3613
SELECT 20 * MIN ( DISTINCT - + 83 ) * + + CASE - 80 WHEN + + ( 5 ) THEN + 57 END AS col2
----
NULL

query I rowsort
SELECT + 78 - - - 93
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3615
SELECT ALL - 13 / + ( - NULLIF ( + CAST( NULL AS SIGNED ), + - 98 ) ) + 77 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3615
SELECT ALL - 13 / + ( - NULLIF ( + CAST ( NULL AS INTEGER ), + - 98 ) ) + 77 col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3616
SELECT 53 - + 99 * 48 AS col0, + COUNT( * ) DIV 5
----
-4699
0

skipif mysql # not compatible
query II rowsort label-3616
SELECT 53 - + 99 * 48 AS col0, + COUNT ( * ) / 5
----
-4699
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3617
SELECT + COALESCE ( 56, 16, - 65 + - - COUNT( * ) )
----
56

skipif mysql # not compatible
query I rowsort label-3617
SELECT + COALESCE ( 56, 16, - 65 + - - COUNT ( * ) )
----
56

query I rowsort
SELECT ( CASE 29 WHEN COALESCE ( 34, 2 ) THEN NULL ELSE 89 END ) + - - 52 AS col1
----
141

query I rowsort
SELECT + 19 * 76 AS col0
----
1444

onlyif mysql # aggregate syntax: 
query I rowsort label-3620
SELECT ALL + - 56 + + COUNT( * )
----
-55

skipif mysql # not compatible
query I rowsort label-3620
SELECT ALL + - 56 + + COUNT ( * )
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-3621
SELECT ALL 61 + - + SUM( - 16 ) + + + MIN( + - ( 51 ) ) AS col0
----
26

skipif mysql # not compatible
query I rowsort label-3621
SELECT ALL 61 + - + SUM ( - 16 ) + + + MIN ( + - ( 51 ) ) AS col0
----
26

query I rowsort
SELECT ALL 73 * 81
----
5913

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3623
SELECT CASE 24 WHEN 32 THEN NULL WHEN 67 * + 74 * 65 THEN + 22 ELSE - 69 END * AVG ( DISTINCT CAST( NULL AS SIGNED ) ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3623
SELECT CASE 24 WHEN 32 THEN NULL WHEN 67 * + 74 * 65 THEN + 22 ELSE - 69 END * AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3624
SELECT ALL 67 + + - CASE - 86 WHEN 12 THEN + ( - COALESCE ( + ( + COALESCE ( - ( - + NULLIF ( - 72, + COALESCE ( - ( + MAX( DISTINCT + ( + 79 ) ) ), + 63 * - SUM( DISTINCT + 83 ) + 77 - + + COUNT( * ), + - 42 ) ) ), - + 87 ) ), 6 ) ) + 55 * COALESCE ( + - CAST( 42 AS SIGNED ), - - 74 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3624
SELECT ALL 67 + + - CASE - 86 WHEN 12 THEN + ( - COALESCE ( + ( + COALESCE ( - ( - + NULLIF ( - 72, + COALESCE ( - ( + MAX ( DISTINCT + ( + 79 ) ) ), + 63 * - SUM ( DISTINCT + 83 ) + 77 - + + COUNT ( * ), + - 42 ) ) ), - + 87 ) ), 6 ) ) + 55 * COALESCE ( + - CAST ( 42 AS INTEGER ), - - 74 ) END
----
NULL

query I rowsort
SELECT ALL 25 + + - 52 * - 67 * - 50 * - + 69 + + 96
----
12019921

query I rowsort
SELECT + 61 * - + 18 + 8
----
-1090

query I rowsort
SELECT CASE 26 WHEN + ( + - 48 ) * + 31 THEN 62 * + 90 ELSE NULL END / - 30
----
NULL

query I rowsort
SELECT ALL 13 + - + 53
----
-40

query I rowsort
SELECT ALL 31 + + 59
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-3630
SELECT ALL 7 DIV - - 11
----
0

skipif mysql # not compatible
query I rowsort label-3630
SELECT ALL 7 / - - 11
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3631
SELECT ( 12 ) DIV - 79
----
0

skipif mysql # not compatible
query I rowsort label-3631
SELECT ( 12 ) / - 79
----
0

query I rowsort
SELECT DISTINCT 24 + - 28 * + CASE 51 WHEN + 36 THEN - 10 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3633
SELECT ALL - ( COUNT( * ) ) * COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-3633
SELECT ALL - ( COUNT ( * ) ) * COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3634
SELECT ALL 1 + - + ( 77 ) * COUNT( DISTINCT + 44 ) * - + 29
----
2234

skipif mysql # not compatible
query I rowsort label-3634
SELECT ALL 1 + - + ( 77 ) * COUNT ( DISTINCT + 44 ) * - + 29
----
2234

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3635
SELECT MIN( + - 26 ) + - CAST( NULL AS SIGNED ) + + ( + - CASE + 91 WHEN + - COALESCE ( - + 67, + ( + 57 ) + - 51 + 86, + + ( - + 80 ) ) THEN NULL ELSE + COALESCE ( + - 95, - 64 ) END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3635
SELECT MIN ( + - 26 ) + - CAST ( NULL AS INTEGER ) + + ( + - CASE + 91 WHEN + - COALESCE ( - + 67, + ( + 57 ) + - 51 + 86, + + ( - + 80 ) ) THEN NULL ELSE + COALESCE ( + - 95, - 64 ) END ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3636
SELECT 30 * + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3636
SELECT 30 * + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + ( + 83 ) + 42
----
125

query I rowsort
SELECT ALL + 69 - + ( - 18 ) AS col1
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3639
SELECT 96 - + 1 + - CAST( - 64 AS SIGNED ) AS col0
----
159

skipif mysql # not compatible
query I rowsort label-3639
SELECT 96 - + 1 + - CAST ( - 64 AS INTEGER ) AS col0
----
159

query I rowsort
SELECT ALL - 9 - - - 90
----
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-3641
SELECT + COUNT( * ) + + 11, 39 AS col2
----
12
39

skipif mysql # not compatible
query II rowsort label-3641
SELECT + COUNT ( * ) + + 11, 39 AS col2
----
12
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3642
SELECT + 49 * + CAST( + + 31 AS SIGNED ) AS col2
----
1519

skipif mysql # not compatible
query I rowsort label-3642
SELECT + 49 * + CAST ( + + 31 AS INTEGER ) AS col2
----
1519

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3643
SELECT DISTINCT + 17 DIV - MIN( - + 32 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3643
SELECT DISTINCT + 17 / - MIN ( - + 32 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3644
SELECT - + NULLIF ( - ( 44 ), COUNT( * ) * 40 ), + 52 AS col1
----
44
52

skipif mysql # not compatible
query II rowsort label-3644
SELECT - + NULLIF ( - ( 44 ), COUNT ( * ) * 40 ), + 52 AS col1
----
44
52

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3645
SELECT + 76 + 93 + + + ( + - 52 ) DIV - 58 * CAST( - + 72 AS SIGNED ) * - 43
----
169

skipif mysql # not compatible
query I rowsort label-3645
SELECT + 76 + 93 + + + ( + - 52 ) / - 58 * CAST ( - + 72 AS INTEGER ) * - 43
----
169

onlyif mysql # aggregate syntax: 
query I rowsort label-3646
SELECT 66 - COUNT( - 57 ) + + 57 * - + NULLIF ( + COUNT( * ), ( + 89 ) ) * 52 + + 91 * + + MIN( - ( 49 ) )
----
-7358

skipif mysql # not compatible
query I rowsort label-3646
SELECT 66 - COUNT ( - 57 ) + + 57 * - + NULLIF ( + COUNT ( * ), ( + 89 ) ) * 52 + + 91 * + + MIN ( - ( 49 ) )
----
-7358

onlyif mysql # aggregate syntax: 
query I rowsort label-3647
SELECT COUNT( 56 ) + - - 16 + + 62 AS col1
----
79

skipif mysql # not compatible
query I rowsort label-3647
SELECT COUNT ( 56 ) + - - 16 + + 62 AS col1
----
79

onlyif mysql # DIV for integer division: 
query I rowsort label-3648
SELECT DISTINCT + - 29 * 36 * - + ( + + 33 ) + + 33 DIV - + 88 col1
----
34452

skipif mysql # not compatible
query I rowsort label-3648
SELECT DISTINCT + - 29 * 36 * - + ( + + 33 ) + + 33 / - + 88 col1
----
34452

query I rowsort
SELECT 14 * 79
----
1106

onlyif mysql # aggregate syntax: 
query I rowsort label-3650
SELECT ALL + COUNT( * ) + + 12 + - ( 39 )
----
-26

skipif mysql # not compatible
query I rowsort label-3650
SELECT ALL + COUNT ( * ) + + 12 + - ( 39 )
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-3651
SELECT ALL MIN( - 40 ) + + 31
----
-9

skipif mysql # not compatible
query I rowsort label-3651
SELECT ALL MIN ( - 40 ) + + 31
----
-9

query I rowsort
SELECT - ( 24 ) + 68 AS col2
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-3653
SELECT 94 DIV + - 82 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3653
SELECT 94 / + - 82 AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3654
SELECT + 12 * 88 + ( - - CASE - + 82 WHEN + - ( - COALESCE ( CAST( - 52 AS SIGNED ), - 99 + + 97 ) ) THEN + 62 WHEN - 2 * + 39 THEN NULL ELSE NULL END ) AS col2, 86 * - + 82 AS col0
----
NULL
-7052

skipif mysql # not compatible
query II rowsort label-3654
SELECT + 12 * 88 + ( - - CASE - + 82 WHEN + - ( - COALESCE ( CAST ( - 52 AS INTEGER ), - 99 + + 97 ) ) THEN + 62 WHEN - 2 * + 39 THEN NULL ELSE NULL END ) AS col2, 86 * - + 82 AS col0
----
NULL
-7052

onlyif mysql # aggregate syntax: 
query I rowsort label-3655
SELECT COUNT( DISTINCT - 55 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3655
SELECT COUNT ( DISTINCT - 55 ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3656
SELECT DISTINCT COALESCE ( + - COUNT( 58 ), - 53, - - 51 ) * - 20 DIV - CAST( + 30 AS SIGNED ) + 37 + - 96 - - 69
----
10

skipif mysql # not compatible
query I rowsort label-3656
SELECT DISTINCT COALESCE ( + - COUNT ( 58 ), - 53, - - 51 ) * - 20 / - CAST ( + 30 AS INTEGER ) + 37 + - 96 - - 69
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-3657
SELECT COUNT( * ) AS col2, - 35
----
1
-35

skipif mysql # not compatible
query II rowsort label-3657
SELECT COUNT ( * ) AS col2, - 35
----
1
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3658
SELECT + NULLIF ( + - 60, MIN( DISTINCT 18 ) - - COUNT( * ) ) DIV - 30 + - 51 * - - COUNT( * ) + + CASE 96 WHEN - 93 * 49 + + - 63 + - 89 + 36 + + 87 DIV + + 16 - + 33 + + - 78 THEN - 27 * ( + 19 ) ELSE + NULLIF ( + 56, + 16 ) END, - 39 * + CASE ( + ( + 0 ) ) WHEN - 22 * + 7 - - 71 * 22 THEN + 34 * - ( + 38 ) - + 43 WHEN - 47 THEN 41 WHEN - 68 THEN NULL END * - 92 AS col1
----
7
NULL

skipif mysql # not compatible
query II rowsort label-3658
SELECT + NULLIF ( + - 60, MIN ( DISTINCT 18 ) - - COUNT ( * ) ) / - 30 + - 51 * - - COUNT ( * ) + + CASE 96 WHEN - 93 * 49 + + - 63 + - 89 + 36 + + 87 / + + 16 - + 33 + + - 78 THEN - 27 * ( + 19 ) ELSE + NULLIF ( + 56, + 16 ) END, - 39 * + CASE ( + ( + 0 ) ) WHEN - 22 * + 7 - - 71 * 22 THEN + 34 * - ( + 38 ) - + 43 WHEN - 47 THEN 41 WHEN - 68 THEN NULL END * - 92 AS col1
----
7
NULL

query I rowsort
SELECT 63 * 93 AS col0
----
5859

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3660
SELECT 73 * CAST( + + 72 AS SIGNED ) * - 71
----
-373176

skipif mysql # not compatible
query I rowsort label-3660
SELECT 73 * CAST ( + + 72 AS INTEGER ) * - 71
----
-373176

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3661
SELECT ALL 19 * - COALESCE ( - CAST( - COUNT( * ) AS SIGNED ), + + 25 ) AS col1, + COALESCE ( + 42, - CASE 36 WHEN 38 * - 67 * - - CAST( - + 42 AS DECIMAL ) * 64 * + - 28 THEN + + 96 + - + 87 WHEN 66 THEN NULL END * - 62 * 42 * - ( - 21 ), - 99, + 82 )
----
-19
42

skipif mysql # not compatible
query II rowsort label-3661
SELECT ALL 19 * - COALESCE ( - CAST ( - COUNT ( * ) AS INTEGER ), + + 25 ) AS col1, + COALESCE ( + 42, - CASE 36 WHEN 38 * - 67 * - - CAST ( - + 42 AS REAL ) * 64 * + - 28 THEN + + 96 + - + 87 WHEN 66 THEN NULL END * - 62 * 42 * - ( - 21 ), - 99, + 82 )
----
-19
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3662
SELECT COALESCE ( COALESCE ( - CAST( 59 AS SIGNED ), - COUNT( 14 ) * - + 27, - 29 + - 29 ), 21 + 73, 82 ) + + + 26 * 94 - - 68 * - 52 AS col2
----
-1151

skipif mysql # not compatible
query I rowsort label-3662
SELECT COALESCE ( COALESCE ( - CAST ( 59 AS INTEGER ), - COUNT ( 14 ) * - + 27, - 29 + - 29 ), 21 + 73, 82 ) + + + 26 * 94 - - 68 * - 52 AS col2
----
-1151

onlyif mysql # aggregate syntax: 
query I rowsort label-3663
SELECT MAX( + 8 ) AS col1
----
8

skipif mysql # not compatible
query I rowsort label-3663
SELECT MAX ( + 8 ) AS col1
----
8

query I rowsort
SELECT ALL 63 * + + 23 - + 20 AS col2
----
1429

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3665
SELECT DISTINCT COUNT( * ) * - - CASE - MIN( DISTINCT - 47 ) WHEN - CAST( COUNT( * ) AS SIGNED ) + + 88 / - NULLIF ( + 84, - - 59 * - 61 ) THEN NULL ELSE - 89 * + MAX( DISTINCT + COALESCE ( - 62, - 39 + - 10 * - 37 ) ) END, 77 + + 44 - + - 87 AS col0
----
5518
208

skipif mysql # not compatible
query II rowsort label-3665
SELECT DISTINCT COUNT ( * ) * - - CASE - MIN ( DISTINCT - 47 ) WHEN - CAST ( COUNT ( * ) AS INTEGER ) + + 88 / - NULLIF ( + 84, - - 59 * - 61 ) THEN NULL ELSE - 89 * + MAX ( DISTINCT + COALESCE ( - 62, - 39 + - 10 * - 37 ) ) END, 77 + + 44 - + - 87 AS col0
----
5518
208

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3666
SELECT - CAST( NULL AS SIGNED ) * + 72 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3666
SELECT - CAST ( NULL AS INTEGER ) * + 72 AS col1
----
NULL

query I rowsort
SELECT + 65 + 7 AS col2
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-3668
SELECT MIN( 16 ) AS col1
----
16

skipif mysql # not compatible
query I rowsort label-3668
SELECT MIN ( 16 ) AS col1
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3669
SELECT ALL CAST( NULL AS SIGNED ) / - 78
----
NULL

skipif mysql # not compatible
query I rowsort label-3669
SELECT ALL CAST ( NULL AS INTEGER ) / - 78
----
NULL

query I rowsort
SELECT + 11 * - 37
----
-407

query I rowsort
SELECT + - 18 + - + 21 AS col1
----
-39

query I rowsort
SELECT DISTINCT - 7 * + 43 + - + 60 AS col2
----
-361

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3673
SELECT ALL - 80 / - CAST( NULL AS SIGNED ) * - 36 * - ( 44 ), 52 col1
----
NULL
52

skipif mysql # not compatible
query II rowsort label-3673
SELECT ALL - 80 / - CAST ( NULL AS INTEGER ) * - 36 * - ( 44 ), 52 col1
----
NULL
52

onlyif mysql # aggregate syntax: 
query I rowsort label-3674
SELECT + - 74 * CASE - + SUM( ALL - 26 ) WHEN 85 THEN NULL WHEN - + COUNT( * ) THEN - 39 END * + - 66 / + 10 + - 33
----
NULL

skipif mysql # not compatible
query I rowsort label-3674
SELECT + - 74 * CASE - + SUM ( ALL - 26 ) WHEN 85 THEN NULL WHEN - + COUNT ( * ) THEN - 39 END * + - 66 / + 10 + - 33
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3675
SELECT + - 69 + - COUNT( * ) * - 57 AS col2, 50 AS col1
----
-12
50

skipif mysql # not compatible
query II rowsort label-3675
SELECT + - 69 + - COUNT ( * ) * - 57 AS col2, 50 AS col1
----
-12
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3676
SELECT ( - NULLIF ( + 64, 38 + + - 55 - - 63 * - - CAST( NULL AS SIGNED ) ) ) AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-3676
SELECT ( - NULLIF ( + 64, 38 + + - 55 - - 63 * - - CAST ( NULL AS INTEGER ) ) ) AS col0
----
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-3677
SELECT + + 99 * - 91 - + 50 DIV + - 79 AS col2
----
-9009

skipif mysql # not compatible
query I rowsort label-3677
SELECT + + 99 * - 91 - + 50 / + - 79 AS col2
----
-9009

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3678
SELECT + - COUNT( * ) / - + 61 - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3678
SELECT + - COUNT ( * ) / - + 61 - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3679
SELECT - - 19 DIV + 54 + + + 46 AS col1
----
46

skipif mysql # not compatible
query I rowsort label-3679
SELECT - - 19 / + 54 + + + 46 AS col1
----
46

query I rowsort
SELECT - 30 + + ( 90 )
----
60

query I rowsort
SELECT DISTINCT + 86 + - 96 + + 65 - - 97 + + - 15
----
137

query I rowsort
SELECT DISTINCT - 11 * 2 AS col0
----
-22

query I rowsort
SELECT DISTINCT + + 19 + + 11 + + + 23 AS col0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-3684
SELECT DISTINCT COUNT( - 97 ) + + - ( - 67 )
----
68

skipif mysql # not compatible
query I rowsort label-3684
SELECT DISTINCT COUNT ( - 97 ) + + - ( - 67 )
----
68

query I rowsort
SELECT DISTINCT - 31 + 72 AS col2
----
41

query I rowsort
SELECT ALL + 72 + 0
----
72

query I rowsort
SELECT DISTINCT - 14 + - + 25 AS col2
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-3688
SELECT + + COUNT( - - 61 ) + 46
----
47

skipif mysql # not compatible
query I rowsort label-3688
SELECT + + COUNT ( - - 61 ) + 46
----
47

query I rowsort
SELECT DISTINCT - 70 + + 93 AS col0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3690
SELECT ALL + 12 + - 15 - - - CASE - + 80 WHEN - ( + MIN( ALL + 15 ) ) + - 12 THEN ( - + 93 ) * - 17 WHEN - 94 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3690
SELECT ALL + 12 + - 15 - - - CASE - + 80 WHEN - ( + MIN ( ALL + 15 ) ) + - 12 THEN ( - + 93 ) * - 17 WHEN - 94 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT + 77 - + 20 AS col1
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-3692
SELECT - COUNT( * ) - - 53 - COUNT( * ) + + 15
----
66

skipif mysql # not compatible
query I rowsort label-3692
SELECT - COUNT ( * ) - - 53 - COUNT ( * ) + + 15
----
66

onlyif mysql # aggregate syntax: 
query II rowsort label-3693
SELECT DISTINCT + 5 AS col1, NULLIF ( ( + + COUNT( * ) ), - + 25 / - - 25 )
----
5
1

skipif mysql # not compatible
query II rowsort label-3693
SELECT DISTINCT + 5 AS col1, NULLIF ( ( + + COUNT ( * ) ), - + 25 / - - 25 )
----
5
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3694
SELECT ( + + CASE COUNT( * ) WHEN 28 + ( + COUNT( * ) ) + + 8 * MAX( DISTINCT CAST( NULL AS SIGNED ) ) THEN NULL WHEN 3 + + 82 - + 6 + 2 * - 58 THEN - - 32 * 69 * 59 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-3694
SELECT ( + + CASE COUNT ( * ) WHEN 28 + ( + COUNT ( * ) ) + + 8 * MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) THEN NULL WHEN 3 + + 82 - + 6 + 2 * - 58 THEN - - 32 * 69 * 59 END )
----
NULL

query I rowsort
SELECT ALL 31 * + - 6 AS col2
----
-186

query I rowsort
SELECT ALL + ( + - 95 ) AS col2
----
-95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3697
SELECT ALL + 77 * 68 - SUM( - 76 ) DIV 9 DIV + 11 AS col2
----
5236

skipif mysql # not compatible
query I rowsort label-3697
SELECT ALL + 77 * 68 - SUM ( - 76 ) / 9 / + 11 AS col2
----
5236

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3698
SELECT CAST( - - 6 AS SIGNED ) * + 18 - + - CAST( NULL AS SIGNED ) * + - CASE + 44 WHEN - 52 * - - ( + 48 ) THEN NULL WHEN + COUNT( * ) + + + 69 * - ( MIN( ALL 58 ) ) * + 7 * + 9 THEN + 92 WHEN + 63 THEN 87 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3698
SELECT CAST ( - - 6 AS INTEGER ) * + 18 - + - CAST ( NULL AS INTEGER ) * + - CASE + 44 WHEN - 52 * - - ( + 48 ) THEN NULL WHEN + COUNT ( * ) + + + 69 * - ( MIN ( ALL 58 ) ) * + 7 * + 9 THEN + 92 WHEN + 63 THEN 87 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT + NULLIF ( - 81, 5 )
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3700
SELECT - 78 / ( + CAST( NULL AS SIGNED ) ) - + 58 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3700
SELECT - 78 / ( + CAST ( NULL AS INTEGER ) ) - + 58 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3701
SELECT ALL - 11 DIV - + 75 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3701
SELECT ALL - 11 / - + 75 AS col0
----
0

query I rowsort
SELECT + 48 * + 76 * + 89
----
324672

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3703
SELECT DISTINCT + CAST( + 10 AS SIGNED )
----
10

skipif mysql # not compatible
query I rowsort label-3703
SELECT DISTINCT + CAST ( + 10 AS INTEGER )
----
10

query I rowsort
SELECT + 15 * + - 97 + + 91 AS col0
----
-1364

query I rowsort
SELECT + 24 * - + 58 * - 30
----
41760

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3706
SELECT ALL + CAST( - 83 AS SIGNED ) AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-3706
SELECT ALL + CAST ( - 83 AS INTEGER ) AS col2
----
-83

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3707
SELECT ALL + 78, CAST( NULL AS SIGNED ) + + 37 + + 36 AS col0
----
78
NULL

skipif mysql # not compatible
query II rowsort label-3707
SELECT ALL + 78, CAST ( NULL AS INTEGER ) + + 37 + + 36 AS col0
----
78
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3708
SELECT NULLIF ( - SUM( DISTINCT + 60 ), - NULLIF ( + COUNT( * ), + ( 40 ) ) / + 4 )
----
-60

skipif mysql # not compatible
query I rowsort label-3708
SELECT NULLIF ( - SUM ( DISTINCT + 60 ), - NULLIF ( + COUNT ( * ), + ( 40 ) ) / + 4 )
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-3709
SELECT DISTINCT + MAX( ALL + 2 )
----
2

skipif mysql # not compatible
query I rowsort label-3709
SELECT DISTINCT + MAX ( ALL + 2 )
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3710
SELECT DISTINCT + 67 * + CAST( NULL AS SIGNED ) - 12 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3710
SELECT DISTINCT + 67 * + CAST ( NULL AS INTEGER ) - 12 AS col0
----
NULL

query II rowsort
SELECT DISTINCT + - 4 AS col2, + 0 AS col1
----
-4
0

query I rowsort
SELECT - 9 * - 13 * - + 71 + + - 51 * 80 + - - 89 AS col2
----
-12298

query I rowsort
SELECT - 22 * - 40 AS col0
----
880

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3714
SELECT ALL + - 98 * - 9 * - SUM( + ( - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ) ) + + + 92 + - 70 / - + 68 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3714
SELECT ALL + - 98 * - 9 * - SUM ( + ( - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) ) + + + 92 + - 70 / - + 68 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3715
SELECT - 31 + + COUNT( * ) + - + COUNT( * ) AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-3715
SELECT - 31 + + COUNT ( * ) + - + COUNT ( * ) AS col2
----
-31

query I rowsort
SELECT - 45 + + 12 + - ( + 26 ) * 55
----
-1463

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3717
SELECT CAST( 22 AS SIGNED ) col2
----
22

skipif mysql # not compatible
query I rowsort label-3717
SELECT CAST ( 22 AS INTEGER ) col2
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-3718
SELECT ALL + MAX( + - 16 ) + - - SUM( DISTINCT - 29 ) * - 66
----
1898

skipif mysql # not compatible
query I rowsort label-3718
SELECT ALL + MAX ( + - 16 ) + - - SUM ( DISTINCT - 29 ) * - 66
----
1898

onlyif mysql # aggregate syntax: 
query I rowsort label-3719
SELECT + - ( - 68 ) - - + COUNT( * ) + 89 AS col0
----
158

skipif mysql # not compatible
query I rowsort label-3719
SELECT + - ( - 68 ) - - + COUNT ( * ) + 89 AS col0
----
158

query I rowsort
SELECT ALL + 2 + - + 89
----
-87

query I rowsort
SELECT + 94 + + 97 + 2 AS col0
----
193

query I rowsort
SELECT ALL ( - 6 ) + - - 83
----
77

query I rowsort
SELECT ALL 34 * - + 48 AS col0
----
-1632

onlyif mysql # aggregate syntax: 
query I rowsort label-3724
SELECT + 21 + COALESCE ( 53, + 76 - - 5 + COUNT( * ) ) + 10 AS col0
----
84

skipif mysql # not compatible
query I rowsort label-3724
SELECT + 21 + COALESCE ( 53, + 76 - - 5 + COUNT ( * ) ) + 10 AS col0
----
84

query I rowsort
SELECT + 61 + - + 19 AS col0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-3726
SELECT + - 30 * + 76 * - + CASE - - 2 WHEN - 3 THEN + + 13 ELSE + COALESCE ( - 42, + - 16 + + COUNT( * ) ) + - + 89 END
----
-298680

skipif mysql # not compatible
query I rowsort label-3726
SELECT + - 30 * + 76 * - + CASE - - 2 WHEN - 3 THEN + + 13 ELSE + COALESCE ( - 42, + - 16 + + COUNT ( * ) ) + - + 89 END
----
-298680

onlyif mysql # aggregate syntax: 
query I rowsort label-3727
SELECT + SUM( 79 ) + + 73
----
152

skipif mysql # not compatible
query I rowsort label-3727
SELECT + SUM ( 79 ) + + 73
----
152

onlyif mysql # aggregate syntax: 
query I rowsort label-3728
SELECT ALL MAX( - 0 )
----
0

skipif mysql # not compatible
query I rowsort label-3728
SELECT ALL MAX ( - 0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3729
SELECT ALL 14 - COUNT( * ) AS col1
----
13

skipif mysql # not compatible
query I rowsort label-3729
SELECT ALL 14 - COUNT ( * ) AS col1
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3730
SELECT - CAST( 67 AS SIGNED ), 52 + - - 87 * - 9 - 74 AS col0
----
-67
-805

skipif mysql # not compatible
query II rowsort label-3730
SELECT - CAST ( 67 AS INTEGER ), 52 + - - 87 * - 9 - 74 AS col0
----
-67
-805

onlyif mysql # aggregate syntax: 
query I rowsort label-3731
SELECT ALL - COALESCE ( - + 52, - SUM( ALL + 16 ) ) - - 36 AS col1
----
88

skipif mysql # not compatible
query I rowsort label-3731
SELECT ALL - COALESCE ( - + 52, - SUM ( ALL + 16 ) ) - - 36 AS col1
----
88

query I rowsort
SELECT + 2 + + 19
----
21

onlyif mysql # aggregate syntax: 
query II rowsort label-3733
SELECT - ( 16 ) + - 87 + - 26 * - - 17 * + 35 + - 47 * COUNT( * ) AS col0, 17
----
-15620
17

skipif mysql # not compatible
query II rowsort label-3733
SELECT - ( 16 ) + - 87 + - 26 * - - 17 * + 35 + - 47 * COUNT ( * ) AS col0, 17
----
-15620
17

query I rowsort
SELECT 79 * + 22 + 85 + 90 AS col1
----
1913

query I rowsort
SELECT 79 * - + ( - + 52 ) * - 49 col2
----
-201292

query I rowsort
SELECT 14 * + 80
----
1120

onlyif mysql # aggregate syntax: 
query I rowsort label-3737
SELECT ALL - MAX( ALL 8 ) AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-3737
SELECT ALL - MAX ( ALL 8 ) AS col2
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-3738
SELECT DISTINCT - COALESCE ( - + 21, 97, + - 94 ) * - - 8 + COUNT( * )
----
169

skipif mysql # not compatible
query I rowsort label-3738
SELECT DISTINCT - COALESCE ( - + 21, 97, + - 94 ) * - - 8 + COUNT ( * )
----
169

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-3739
SELECT + 73 DIV + CASE + + CAST( NULL AS DECIMAL ) WHEN + + 5 + + + 94 THEN NULL WHEN 50 * COUNT( * ) THEN NULL ELSE + MAX( ALL 79 ) * - 97 END + + - 68 * 75 AS col1, - 62
----
-5100
-62

skipif mysql # not compatible
query II rowsort label-3739
SELECT + 73 / + CASE + + CAST ( NULL AS REAL ) WHEN + + 5 + + + 94 THEN NULL WHEN 50 * COUNT ( * ) THEN NULL ELSE + MAX ( ALL 79 ) * - 97 END + + - 68 * 75 AS col1, - 62
----
-5100
-62

query I rowsort
SELECT ALL - 7 * - 83 * - 99
----
-57519

onlyif mysql # aggregate syntax: 
query I rowsort label-3741
SELECT DISTINCT - CASE - - 56 WHEN + - 4 * - 43 + 10 + + + 66 + - 19 * + 26 THEN - + 4 + 69 + MAX( ALL 56 ) ELSE + 52 END
----
-52

skipif mysql # not compatible
query I rowsort label-3741
SELECT DISTINCT - CASE - - 56 WHEN + - 4 * - 43 + 10 + + + 66 + - 19 * + 26 THEN - + 4 + 69 + MAX ( ALL 56 ) ELSE + 52 END
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-3742
SELECT DISTINCT - MAX( ALL - 37 ) AS col0
----
37

skipif mysql # not compatible
query I rowsort label-3742
SELECT DISTINCT - MAX ( ALL - 37 ) AS col0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-3743
SELECT 35 * COUNT( * ) + + - 63
----
-28

skipif mysql # not compatible
query I rowsort label-3743
SELECT 35 * COUNT ( * ) + + - 63
----
-28

onlyif mysql # aggregate syntax: 
query II rowsort label-3744
SELECT 39 + 91 * - 0 AS col1, - 56 + - SUM( + 14 ) AS col2
----
39
-70

skipif mysql # not compatible
query II rowsort label-3744
SELECT 39 + 91 * - 0 AS col1, - 56 + - SUM ( + 14 ) AS col2
----
39
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-3745
SELECT SUM( DISTINCT 82 ) + 14
----
96

skipif mysql # not compatible
query I rowsort label-3745
SELECT SUM ( DISTINCT 82 ) + 14
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3746
SELECT ALL - - 64 + - - CASE + + NULLIF ( - + 33, + 16 * - + 20 + + 21 + - + 44 ) WHEN + 61 THEN + 62 ELSE NULL END + 19 + + 9 + - - 58 + + COUNT( 56 ) * 99 * CAST( CASE COALESCE ( - 26, ( + CAST( NULL AS SIGNED ) ) ) WHEN 88 THEN NULLIF ( - + 37, + - 35 ) WHEN - 63 THEN - 82 ELSE NULL END AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3746
SELECT ALL - - 64 + - - CASE + + NULLIF ( - + 33, + 16 * - + 20 + + 21 + - + 44 ) WHEN + 61 THEN + 62 ELSE NULL END + 19 + + 9 + - - 58 + + COUNT ( 56 ) * 99 * CAST ( CASE COALESCE ( - 26, ( + CAST ( NULL AS INTEGER ) ) ) WHEN 88 THEN NULLIF ( - + 37, + - 35 ) WHEN - 63 THEN - 82 ELSE NULL END AS REAL )
----
NULL

query I rowsort
SELECT 82 * 47
----
3854

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3748
SELECT DISTINCT + COUNT( * ) DIV + 44 + 90 AS col1
----
90

skipif mysql # not compatible
query I rowsort label-3748
SELECT DISTINCT + COUNT ( * ) / + 44 + 90 AS col1
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3749
SELECT + CASE + 1 WHEN 94 + - 20 - COUNT( DISTINCT + 42 ) * + - 42 THEN - - CASE - + 49 WHEN - 73 * 7 THEN + 35 END + - + 9 ELSE - 68 END
----
-68

skipif mysql # not compatible
query I rowsort label-3749
SELECT + CASE + 1 WHEN 94 + - 20 - COUNT ( DISTINCT + 42 ) * + - 42 THEN - - CASE - + 49 WHEN - 73 * 7 THEN + 35 END + - + 9 ELSE - 68 END
----
-68

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3750
SELECT ALL + - CAST( - 11 AS DECIMAL ) * - 85 + - + CASE COUNT( * ) WHEN + COUNT( * ) THEN NULL WHEN + 9 THEN - + COUNT( * ) * - 32 * + 54 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3750
SELECT ALL + - CAST ( - 11 AS REAL ) * - 85 + - + CASE COUNT ( * ) WHEN + COUNT ( * ) THEN NULL WHEN + 9 THEN - + COUNT ( * ) * - 32 * + 54 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3751
SELECT 74 / + NULLIF ( CAST( NULL AS SIGNED ), - ( + - 20 ) ) - - - COUNT( + 91 ) + + 80 + + + CAST( NULL AS SIGNED ) - - 10 * + + COUNT( DISTINCT + 65 ) + - - 25 + - 5
----
NULL

skipif mysql # not compatible
query I rowsort label-3751
SELECT 74 / + NULLIF ( CAST ( NULL AS INTEGER ), - ( + - 20 ) ) - - - COUNT ( + 91 ) + + 80 + + + CAST ( NULL AS INTEGER ) - - 10 * + + COUNT ( DISTINCT + 65 ) + - - 25 + - 5
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3752
SELECT ALL + 86 + - 57 DIV 60 + 78
----
164

skipif mysql # not compatible
query I rowsort label-3752
SELECT ALL + 86 + - 57 / 60 + 78
----
164

query I rowsort
SELECT + - COALESCE ( - 28, - - 52 )
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-3754
SELECT ALL 95 + ( 58 ) - - + ( - + ( - COUNT( * ) ) )
----
154

skipif mysql # not compatible
query I rowsort label-3754
SELECT ALL 95 + ( 58 ) - - + ( - + ( - COUNT ( * ) ) )
----
154

onlyif mysql # aggregate syntax: 
query I rowsort label-3755
SELECT ALL - + COUNT( * ) * - + 19 AS col0
----
19

skipif mysql # not compatible
query I rowsort label-3755
SELECT ALL - + COUNT ( * ) * - + 19 AS col0
----
19

query I rowsort
SELECT ALL - COALESCE ( - 56, + - CASE AVG ( 89 ) WHEN - 40 THEN NULL ELSE - - 21 END, 33 ) + - + 48 AS col1
----
8

query I rowsort
SELECT 30 * - 49
----
-1470

onlyif mysql # aggregate syntax: 
query I rowsort label-3758
SELECT + MAX( 22 ) AS col2
----
22

skipif mysql # not compatible
query I rowsort label-3758
SELECT + MAX ( 22 ) AS col2
----
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3759
SELECT + 28 + - 9 DIV 16 + COALESCE ( + 26, - - 75 * - 86 ) + - 46 + - COUNT( * ) DIV + + 12 + + + NULLIF ( 71, + 51 ) * + - NULLIF ( - - MIN( - + 99 ), + + 10 ) col1, 80 + + 55 col1
----
7037
135

skipif mysql # not compatible
query II rowsort label-3759
SELECT + 28 + - 9 / 16 + COALESCE ( + 26, - - 75 * - 86 ) + - 46 + - COUNT ( * ) / + + 12 + + + NULLIF ( 71, + 51 ) * + - NULLIF ( - - MIN ( - + 99 ), + + 10 ) col1, 80 + + 55 col1
----
7037
135

query I rowsort
SELECT ALL CASE 80 WHEN + AVG ( ALL + + NULLIF ( 13, ( 20 ) ) ) * - + 50 THEN NULL WHEN - + 52 THEN NULL ELSE + 61 END AS col2
----
61

query I rowsort
SELECT ALL + - 5 - - - 38 + + 1 * + 25 - + ( + + 34 ) * - 37
----
1240

query I rowsort
SELECT ALL 96 * 44
----
4224

onlyif mysql # aggregate syntax: 
query II rowsort label-3763
SELECT ALL 1, + ( COUNT( * ) )
----
1
1

skipif mysql # not compatible
query II rowsort label-3763
SELECT ALL 1, + ( COUNT ( * ) )
----
1
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3764
SELECT DISTINCT COUNT( * ) - 6 + + 27 DIV 96 AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-3764
SELECT DISTINCT COUNT ( * ) - 6 + + 27 / 96 AS col1
----
-5

query II rowsort
SELECT 39, - 88 AS col1
----
39
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-3766
SELECT 72 + + + 57 * + COUNT( DISTINCT + 14 ) * + 26 + - 48
----
1506

skipif mysql # not compatible
query I rowsort label-3766
SELECT 72 + + + 57 * + COUNT ( DISTINCT + 14 ) * + 26 + - 48
----
1506

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3767
SELECT ALL 60 * - COUNT( * ) DIV NULLIF ( + 81, + 77 )
----
0

skipif mysql # not compatible
query I rowsort label-3767
SELECT ALL 60 * - COUNT ( * ) / NULLIF ( + 81, + 77 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3768
SELECT 79 DIV + - 59 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3768
SELECT 79 / + - 59 AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3769
SELECT 88 - - + COUNT( + 25 ) + + - COALESCE ( - 30, - 57 + + - 47, + 7 ) + 83 * - 91 * - - COUNT( * ) DIV CAST( COUNT( * ) AS SIGNED ) * 56 * - 80 - - 14, 1 AS col1
----
33837573
1

skipif mysql # not compatible
query II rowsort label-3769
SELECT 88 - - + COUNT ( + 25 ) + + - COALESCE ( - 30, - 57 + + - 47, + 7 ) + 83 * - 91 * - - COUNT ( * ) / CAST ( COUNT ( * ) AS INTEGER ) * 56 * - 80 - - 14, 1 AS col1
----
33837573
1

query I rowsort
SELECT 24 * 51
----
1224

onlyif mysql # aggregate syntax: 
query I rowsort label-3771
SELECT - MAX( - ( + 54 ) )
----
54

skipif mysql # not compatible
query I rowsort label-3771
SELECT - MAX ( - ( + 54 ) )
----
54

query II rowsort
SELECT ALL - 69, - 47 AS col1
----
-69
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3773
SELECT NULLIF ( - 35, + - 14 * + 75 * + - COUNT( ALL + 73 ) ) DIV + 93 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3773
SELECT NULLIF ( - 35, + - 14 * + 75 * + - COUNT ( ALL + 73 ) ) / + 93 AS col2
----
0

query I rowsort
SELECT ALL 1 * 6
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3775
SELECT COUNT( - 43 )
----
1

skipif mysql # not compatible
query I rowsort label-3775
SELECT COUNT ( - 43 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3776
SELECT DISTINCT 53 + 9 - - + ( + 68 ) AS col0, - ( + + 94 ) + - COALESCE ( + CASE CAST( - COUNT( * ) AS SIGNED ) WHEN - 17 THEN - COUNT( * ) + 65 ELSE NULL END, - CAST( NULL AS SIGNED ) - - 9 ) * ( + + MIN( DISTINCT 70 ) ) col1
----
130
NULL

skipif mysql # not compatible
query II rowsort label-3776
SELECT DISTINCT 53 + 9 - - + ( + 68 ) AS col0, - ( + + 94 ) + - COALESCE ( + CASE CAST ( - COUNT ( * ) AS INTEGER ) WHEN - 17 THEN - COUNT ( * ) + 65 ELSE NULL END, - CAST ( NULL AS INTEGER ) - - 9 ) * ( + + MIN ( DISTINCT 70 ) ) col1
----
130
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3777
SELECT COUNT( * ) * - - 83 AS col2
----
83

skipif mysql # not compatible
query I rowsort label-3777
SELECT COUNT ( * ) * - - 83 AS col2
----
83

onlyif mysql # aggregate syntax: 
query II rowsort label-3778
SELECT + 92, + COUNT( * ) + + 94 col2
----
92
95

skipif mysql # not compatible
query II rowsort label-3778
SELECT + 92, + COUNT ( * ) + + 94 col2
----
92
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3779
SELECT ALL + 17 + + 69 - CASE + 45 WHEN 14 + - 60 THEN NULL WHEN 84 + + + 32 THEN NULL WHEN 97 THEN NULL WHEN + ( + + COUNT( * ) ) + 14 * + - 12 / + 24 THEN - 62 * MIN( + + 59 ) / 65 - + - ( - 93 ) + - COUNT( * ) + AVG ( DISTINCT 68 ) + - 87 * + 79 * + 81 ELSE 69 END / + ( - - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3779
SELECT ALL + 17 + + 69 - CASE + 45 WHEN 14 + - 60 THEN NULL WHEN 84 + + + 32 THEN NULL WHEN 97 THEN NULL WHEN + ( + + COUNT ( * ) ) + 14 * + - 12 / + 24 THEN - 62 * MIN ( + + 59 ) / 65 - + - ( - 93 ) + - COUNT ( * ) + AVG ( DISTINCT 68 ) + - 87 * + 79 * + 81 ELSE 69 END / + ( - - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT + 54 * + + 0 + - 32 AS col1
----
-32

query I rowsort
SELECT ALL - 1 + 56 + - 33
----
22

query I rowsort
SELECT 96 * 85
----
8160

query I rowsort
SELECT 40 * + 69 col0
----
2760

query II rowsort
SELECT 12, - 84 + + + 20 + 4 AS col2
----
12
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-3785
SELECT ALL + ( - COALESCE ( - + ( 32 ), + + CASE + 92 WHEN + 7 + - 89 THEN NULL ELSE + - 98 + - 9 END + - 89 ) ) + - COUNT( * )
----
31

skipif mysql # not compatible
query I rowsort label-3785
SELECT ALL + ( - COALESCE ( - + ( 32 ), + + CASE + 92 WHEN + 7 + - 89 THEN NULL ELSE + - 98 + - 9 END + - 89 ) ) + - COUNT ( * )
----
31

query I rowsort
SELECT 19 * 17
----
323

onlyif mysql # aggregate syntax: 
query II rowsort label-3787
SELECT + 65, + COUNT( * ) * 10 AS col1
----
65
10

skipif mysql # not compatible
query II rowsort label-3787
SELECT + 65, + COUNT ( * ) * 10 AS col1
----
65
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3788
SELECT DISTINCT + 7 + - CAST( NULL AS SIGNED ) / + + 3 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3788
SELECT DISTINCT + 7 + - CAST ( NULL AS INTEGER ) / + + 3 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3789
SELECT 55 AS col0, - 56 + + COUNT( * ) + + COUNT( * ) + - 91 - + 15 - - 34 AS col2
----
55
-126

skipif mysql # not compatible
query II rowsort label-3789
SELECT 55 AS col0, - 56 + + COUNT ( * ) + + COUNT ( * ) + - 91 - + 15 - - 34 AS col2
----
55
-126

query II rowsort
SELECT 45 + - 88 - - 68, - 16 AS col2
----
25
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3791
SELECT + 4 * ( + ( COUNT( * ) ) ) - + 25 - + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3791
SELECT + 4 * ( + ( COUNT ( * ) ) ) - + 25 - + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3792
SELECT ALL + - 70 DIV - 23
----
3

skipif mysql # not compatible
query I rowsort label-3792
SELECT ALL + - 70 / - 23
----
3

query I rowsort
SELECT + ( + - 78 ) + 64 - + 35 * + 62 AS col0
----
-2184

onlyif mysql # DIV for integer division: 
query I rowsort label-3794
SELECT 35 DIV - 51
----
0

skipif mysql # not compatible
query I rowsort label-3794
SELECT 35 / - 51
----
0

query I rowsort
SELECT 37 + + NULLIF ( - ( + 24 ), - 35 * + 16 ) - - 51
----
64

query I rowsort
SELECT ALL - 33 - - 15
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-3797
SELECT DISTINCT MAX( - 18 )
----
-18

skipif mysql # not compatible
query I rowsort label-3797
SELECT DISTINCT MAX ( - 18 )
----
-18

query I rowsort
SELECT DISTINCT + 34 * 80 * + 94
----
255680

onlyif mysql # aggregate syntax: 
query I rowsort label-3799
SELECT DISTINCT + 25 * ( - COUNT( * ) ) AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-3799
SELECT DISTINCT + 25 * ( - COUNT ( * ) ) AS col0
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3800
SELECT + 49 * CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3800
SELECT + 49 * CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3801
SELECT ALL COALESCE ( - 83, + - 31 DIV - 27 + - SUM( ALL + + 38 ) ) AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-3801
SELECT ALL COALESCE ( - 83, + - 31 / - 27 + - SUM ( ALL + + 38 ) ) AS col2
----
-83

query I rowsort
SELECT - 19 + 88 + + 56 AS col0
----
125

query I rowsort
SELECT - 95 * - 89 * + + 51 AS col2
----
431205

query I rowsort
SELECT DISTINCT NULLIF ( - 79, - 13 )
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-3805
SELECT + 89 + 31 - + 25 * + ( - MAX( - 81 ) ) col1
----
-1905

skipif mysql # not compatible
query I rowsort label-3805
SELECT + 89 + 31 - + 25 * + ( - MAX ( - 81 ) ) col1
----
-1905

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3806
SELECT DISTINCT - 35 + + ( + 48 ) + - COUNT( * ) + - 14 + + + 24 + - - 89 DIV 92 * - 42 * - - 17 * + + 42 col0
----
22

skipif mysql # not compatible
query I rowsort label-3806
SELECT DISTINCT - 35 + + ( + 48 ) + - COUNT ( * ) + - 14 + + + 24 + - - 89 / 92 * - 42 * - - 17 * + + 42 col0
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3807
SELECT ALL - 75 * - NULLIF ( 18, - 87 - + - NULLIF ( 46, + 95 ) + 50 + + + 54 + 88 * + CASE - 30 WHEN COUNT( * ) THEN - + MAX( ALL + 61 ) + 4 + - ( CASE - AVG ( 31 ) WHEN - 43 THEN + COUNT( * ) / 61 * + NULLIF ( + 93, - 21 * CASE 2 WHEN + 16 * + - 87 * - + ( + + CAST( NULL AS SIGNED ) ) * - COUNT( * ) * - 81 THEN NULL WHEN + 54 THEN NULL WHEN - + COUNT( * ) THEN - 11 ELSE - MIN( - 33 ) * + ( ( + COUNT( * ) ) ) + 99 END / - - 83 / 34 + 40 * 24 ) WHEN + 93 * 62 THEN NULL ELSE + CAST( NULL AS SIGNED ) + CASE + 69 WHEN + 82 THEN COALESCE ( - 98, + MAX( - ( + 18 ) ) - + 97, 51 + - 5 / 88 ) * + 65 + + 12 ELSE 68 END END ) / - 93 ELSE NULL END ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3807
SELECT ALL - 75 * - NULLIF ( 18, - 87 - + - NULLIF ( 46, + 95 ) + 50 + + + 54 + 88 * + CASE - 30 WHEN COUNT ( * ) THEN - + MAX ( ALL + 61 ) + 4 + - ( CASE - AVG ( 31 ) WHEN - 43 THEN + COUNT ( * ) / 61 * + NULLIF ( + 93, - 21 * CASE 2 WHEN + 16 * + - 87 * - + ( + + CAST ( NULL AS INTEGER ) ) * - COUNT ( * ) * - 81 THEN NULL WHEN + 54 THEN NULL WHEN - + COUNT ( * ) THEN - 11 ELSE - MIN ( - 33 ) * + ( ( + COUNT ( * ) ) ) + 99 END / - - 83 / 34 + 40 * 24 ) WHEN + 93 * 62 THEN NULL ELSE + CAST ( NULL AS INTEGER ) + CASE + 69 WHEN + 82 THEN COALESCE ( - 98, + MAX ( - ( + 18 ) ) - + 97, 51 + - 5 / 88 ) * + 65 + + 12 ELSE 68 END END ) / - 93 ELSE NULL END ) + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 29 * 90
----
-2610

query I rowsort
SELECT + 47 + + - 49
----
-2

query I rowsort
SELECT ALL - + 80 * - - ( + - 72 ) + 97 * - 10 AS col2
----
4790

onlyif mysql # aggregate syntax: 
query II rowsort label-3811
SELECT DISTINCT + COUNT( * ) * ( + 57 ) + - 67, 3 col0
----
-10
3

skipif mysql # not compatible
query II rowsort label-3811
SELECT DISTINCT + COUNT ( * ) * ( + 57 ) + - 67, 3 col0
----
-10
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3812
SELECT DISTINCT + CAST( NULL AS SIGNED ) * 11 * - 93
----
NULL

skipif mysql # not compatible
query I rowsort label-3812
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * 11 * - 93
----
NULL

query I rowsort
SELECT ALL + 88 * - - ( - 86 ) + - 66 - - 34 + - ( + 0 )
----
-7600

onlyif mysql # aggregate syntax: 
query I rowsort label-3814
SELECT ALL + SUM( ALL - - 11 )
----
11

skipif mysql # not compatible
query I rowsort label-3814
SELECT ALL + SUM ( ALL - - 11 )
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3815
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + - MIN( + + 70 ) / - 36 + ( - 24 ) + - 53 * 76 * - ( + 56 ) + - 41
----
NULL

skipif mysql # not compatible
query I rowsort label-3815
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + - MIN ( + + 70 ) / - 36 + ( - 24 ) + - 53 * 76 * - ( + 56 ) + - 41
----
NULL

query I rowsort
SELECT + - NULLIF ( 98, + + ( + - 68 ) ) + + 51 AS col0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-3817
SELECT ALL 43 * + - MAX( ALL 0 ) + - NULLIF ( + 5, + 79 - + + 75 ) - + - NULLIF ( - 53, - 27 ) AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-3817
SELECT ALL 43 * + - MAX ( ALL 0 ) + - NULLIF ( + 5, + 79 - + + 75 ) - + - NULLIF ( - 53, - 27 ) AS col1
----
-58

query I rowsort
SELECT + - 39 * - 51 * NULLIF ( + - 92, - + 79 / 55 ) col0
----
-182988

onlyif mysql # aggregate syntax: 
query I rowsort label-3819
SELECT DISTINCT - 95 * - - 8 + - 10 + + MAX( 90 ) * 20 * ( - 3 ) - - ( + 54 ) + COALESCE ( - 15, - + 7 ) + ( 82 ) * COUNT( * ) AS col0
----
-6049

skipif mysql # not compatible
query I rowsort label-3819
SELECT DISTINCT - 95 * - - 8 + - 10 + + MAX ( 90 ) * 20 * ( - 3 ) - - ( + 54 ) + COALESCE ( - 15, - + 7 ) + ( 82 ) * COUNT ( * ) AS col0
----
-6049

query I rowsort
SELECT DISTINCT + + ( 14 ) col2
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3821
SELECT ALL + CAST( + COUNT( * ) AS SIGNED ) * 93 AS col2
----
93

skipif mysql # not compatible
query I rowsort label-3821
SELECT ALL + CAST ( + COUNT ( * ) AS INTEGER ) * 93 AS col2
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3822
SELECT + - 57 * 66 * - 59 + + ( - COUNT( * ) )
----
221957

skipif mysql # not compatible
query I rowsort label-3822
SELECT + - 57 * 66 * - 59 + + ( - COUNT ( * ) )
----
221957

onlyif mysql # aggregate syntax: 
query I rowsort label-3823
SELECT DISTINCT - 51 * 66 + - 65 * SUM( DISTINCT + 96 ) AS col1
----
-9606

skipif mysql # not compatible
query I rowsort label-3823
SELECT DISTINCT - 51 * 66 + - 65 * SUM ( DISTINCT + 96 ) AS col1
----
-9606

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3824
SELECT DISTINCT + - COUNT( * ) * 17 * 36 - 48 - - CASE - 19 WHEN + 7 THEN 40 + - COUNT( * ) + - + 37 * + 38 + - - CAST( + CASE - - ( - + 18 ) WHEN - + ( - 74 ) / ( + - 39 ) * + COUNT( * ) + - 56 THEN - - 90 ELSE + 69 + + - ( 25 ) * - 51 END AS SIGNED ) * + 49 * - 96 * + 24 + 24 * - 77 WHEN - + 96 THEN NULL ELSE CASE 83 WHEN CAST( NULL AS SIGNED ) THEN - 83 ELSE NULL END + + - ( - 26 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3824
SELECT DISTINCT + - COUNT ( * ) * 17 * 36 - 48 - - CASE - 19 WHEN + 7 THEN 40 + - COUNT ( * ) + - + 37 * + 38 + - - CAST ( + CASE - - ( - + 18 ) WHEN - + ( - 74 ) / ( + - 39 ) * + COUNT ( * ) + - 56 THEN - - 90 ELSE + 69 + + - ( 25 ) * - 51 END AS INTEGER ) * + 49 * - 96 * + 24 + 24 * - 77 WHEN - + 96 THEN NULL ELSE CASE 83 WHEN CAST ( NULL AS INTEGER ) THEN - 83 ELSE NULL END + + - ( - 26 ) END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3825
SELECT - CAST( NULLIF ( + 75, + COUNT( * ) ) AS SIGNED ) * + 89 * - 3
----
20025

skipif mysql # not compatible
query I rowsort label-3825
SELECT - CAST ( NULLIF ( + 75, + COUNT ( * ) ) AS INTEGER ) * + 89 * - 3
----
20025

onlyif mysql # aggregate syntax: 
query I rowsort label-3826
SELECT ALL - COUNT( * ) * 48 * + 9 + 50 AS col2
----
-382

skipif mysql # not compatible
query I rowsort label-3826
SELECT ALL - COUNT ( * ) * 48 * + 9 + 50 AS col2
----
-382

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3827
SELECT + 16 DIV - - CAST( 51 AS SIGNED ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3827
SELECT + 16 / - - CAST ( 51 AS INTEGER ) AS col1
----
0

query I rowsort
SELECT - ( - - 20 ) AS col1
----
-20

query I rowsort
SELECT - 73 * - 84 AS col2
----
6132

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3830
SELECT DISTINCT COUNT( * ), CAST( NULL AS SIGNED ) AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-3830
SELECT DISTINCT COUNT ( * ), CAST ( NULL AS INTEGER ) AS col2
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3831
SELECT ALL - 48 * + + CASE - 1 WHEN 85 * + MAX( DISTINCT + + 75 ) + COUNT( * ) * 93 THEN + + 35 END * - 51
----
NULL

skipif mysql # not compatible
query I rowsort label-3831
SELECT ALL - 48 * + + CASE - 1 WHEN 85 * + MAX ( DISTINCT + + 75 ) + COUNT ( * ) * 93 THEN + + 35 END * - 51
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3832
SELECT DISTINCT ( - + COUNT( * ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3832
SELECT DISTINCT ( - + COUNT ( * ) ) AS col1
----
-1

query I rowsort
SELECT - 72 * - + 95
----
6840

onlyif mysql # aggregate syntax: 
query I rowsort label-3834
SELECT ALL + COUNT( * ) + 10 * + MAX( DISTINCT + 10 )
----
101

skipif mysql # not compatible
query I rowsort label-3834
SELECT ALL + COUNT ( * ) + 10 * + MAX ( DISTINCT + 10 )
----
101

query II rowsort
SELECT ALL + 76 * - - 7 * + 83, 80 AS col1
----
44156
80

query II rowsort
SELECT - 22, - 98 AS col0
----
-22
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-3837
SELECT ALL + COUNT( 35 ) + - - 9 - + 66 + + 26 AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-3837
SELECT ALL + COUNT ( 35 ) + - - 9 - + 66 + + 26 AS col2
----
-30

query I rowsort
SELECT DISTINCT ( + 2 ) col0
----
2

query I rowsort
SELECT ALL + 58 + 57
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-3840
SELECT ALL + 86 + + + COUNT( * ) - + 32 AS col1
----
55

skipif mysql # not compatible
query I rowsort label-3840
SELECT ALL + 86 + + + COUNT ( * ) - + 32 AS col1
----
55

query II rowsort
SELECT - 82 + + ( + - 77 ) col1, 24
----
-159
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3842
SELECT ALL - 41 DIV - 96 + - CAST( COALESCE ( 68, - COUNT( * ) ) AS SIGNED ) * + + 20 AS col0
----
-1360

skipif mysql # not compatible
query I rowsort label-3842
SELECT ALL - 41 / - 96 + - CAST ( COALESCE ( 68, - COUNT ( * ) ) AS INTEGER ) * + + 20 AS col0
----
-1360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3843
SELECT CASE + - NULLIF ( COUNT( * ), + - 34 * - COUNT( DISTINCT - 21 ) * - 52 + - + 16 * + AVG ( DISTINCT 58 ) + + COALESCE ( - - CAST( - 53 AS SIGNED ), - 2 / - 84 * 64 * - - 39 ) * 72 * 14 + 10 * - 31 ) WHEN - - ( - + 54 ) THEN NULL WHEN - - 10 / - + 56 THEN NULL WHEN + - 95 THEN NULL ELSE + - ( + - 96 ) END
----
96

skipif mysql # not compatible
query I rowsort label-3843
SELECT CASE + - NULLIF ( COUNT ( * ), + - 34 * - COUNT ( DISTINCT - 21 ) * - 52 + - + 16 * + AVG ( DISTINCT 58 ) + + COALESCE ( - - CAST ( - 53 AS INTEGER ), - 2 / - 84 * 64 * - - 39 ) * 72 * 14 + 10 * - 31 ) WHEN - - ( - + 54 ) THEN NULL WHEN - - 10 / - + 56 THEN NULL WHEN + - 95 THEN NULL ELSE + - ( + - 96 ) END
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3844
SELECT ALL + SUM( DISTINCT 46 )
----
46

skipif mysql # not compatible
query I rowsort label-3844
SELECT ALL + SUM ( DISTINCT 46 )
----
46

onlyif mysql # DIV for integer division: 
query II rowsort label-3845
SELECT ALL + - 5 DIV + 62 + - 36 col2, - 64 AS col1
----
-36
-64

skipif mysql # not compatible
query II rowsort label-3845
SELECT ALL + - 5 / + 62 + - 36 col2, - 64 AS col1
----
-36
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-3846
SELECT ALL + COUNT( * ) * + + 76 col0
----
76

skipif mysql # not compatible
query I rowsort label-3846
SELECT ALL + COUNT ( * ) * + + 76 col0
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3847
SELECT - - CASE - - 28 WHEN + 2 THEN - CAST( + 40 AS SIGNED ) END + + 83 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3847
SELECT - - CASE - - 28 WHEN + 2 THEN - CAST ( + 40 AS INTEGER ) END + + 83 col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3848
SELECT + 99 DIV + 88 + - 52 * - 80
----
4161

skipif mysql # not compatible
query I rowsort label-3848
SELECT + 99 / + 88 + - 52 * - 80
----
4161

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3849
SELECT ALL 3 DIV - 15 * + CAST( + 97 AS SIGNED ) + 76 - ( - 88 ) + + 31
----
195

skipif mysql # not compatible
query I rowsort label-3849
SELECT ALL 3 / - 15 * + CAST ( + 97 AS INTEGER ) + 76 - ( - 88 ) + + 31
----
195

query I rowsort
SELECT - 89 * + - 87
----
7743

onlyif mysql # aggregate syntax: 
query I rowsort label-3851
SELECT ALL 28 * + - NULLIF ( + 10, - COUNT( * ) )
----
-280

skipif mysql # not compatible
query I rowsort label-3851
SELECT ALL 28 * + - NULLIF ( + 10, - COUNT ( * ) )
----
-280

query I rowsort
SELECT + - 2 * + 35 AS col0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-3853
SELECT ALL + + COUNT( ALL - - 13 )
----
1

skipif mysql # not compatible
query I rowsort label-3853
SELECT ALL + + COUNT ( ALL - - 13 )
----
1

query I rowsort
SELECT + + 28 * 52
----
1456

query I rowsort
SELECT ALL + + 98 * - + 33 AS col2
----
-3234

query I rowsort
SELECT - 47 - - 99
----
52

onlyif mysql # aggregate syntax: 
query II rowsort label-3857
SELECT DISTINCT - 38 AS col2, + MAX( - + 96 )
----
-38
-96

skipif mysql # not compatible
query II rowsort label-3857
SELECT DISTINCT - 38 AS col2, + MAX ( - + 96 )
----
-38
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3858
SELECT ALL - + MIN( + 58 )
----
-58

skipif mysql # not compatible
query I rowsort label-3858
SELECT ALL - + MIN ( + 58 )
----
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-3859
SELECT 79 * - + 88 * COUNT( * ) - - + 27 AS col0, + 30 * - 78 AS col0
----
-6925
-2340

skipif mysql # not compatible
query II rowsort label-3859
SELECT 79 * - + 88 * COUNT ( * ) - - + 27 AS col0, + 30 * - 78 AS col0
----
-6925
-2340

query I rowsort
SELECT 27 * 53
----
1431

onlyif mysql # aggregate syntax: 
query II rowsort label-3861
SELECT ( - 16 ) + - 74 + + + 55 AS col2, 13 * COUNT( * )
----
-35
13

skipif mysql # not compatible
query II rowsort label-3861
SELECT ( - 16 ) + - 74 + + + 55 AS col2, 13 * COUNT ( * )
----
-35
13

onlyif mysql # DIV for integer division: 
query I rowsort label-3862
SELECT 17 DIV - - 10 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3862
SELECT 17 / - - 10 AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3863
SELECT ALL 78 + - 67 DIV + ( + COUNT( * ) ) AS col2, 86
----
11
86

skipif mysql # not compatible
query II rowsort label-3863
SELECT ALL 78 + - 67 / + ( + COUNT ( * ) ) AS col2, 86
----
11
86

onlyif mysql # aggregate syntax: 
query I rowsort label-3864
SELECT ALL + ( - COUNT( - 41 ) ) + - 3 * + - 90 + - NULLIF ( + 70, + 77 + - + 0 - + - COUNT( - + 72 ) * - + 89 * - COUNT( * ) * - 32 / COUNT( * ) )
----
199

skipif mysql # not compatible
query I rowsort label-3864
SELECT ALL + ( - COUNT ( - 41 ) ) + - 3 * + - 90 + - NULLIF ( + 70, + 77 + - + 0 - + - COUNT ( - + 72 ) * - + 89 * - COUNT ( * ) * - 32 / COUNT ( * ) )
----
199

query I rowsort
SELECT 33 + + 22 * + - 27
----
-561

onlyif mysql # aggregate syntax: 
query II rowsort label-3866
SELECT ALL CASE - MAX( + 31 ) WHEN + 57 + + COALESCE ( COUNT( * ), + + ( + ( + - 59 ) ) ) * + - COUNT( * ) THEN + 65 END + + 25 AS col2, + 6 AS col1
----
NULL
6

skipif mysql # not compatible
query II rowsort label-3866
SELECT ALL CASE - MAX ( + 31 ) WHEN + 57 + + COALESCE ( COUNT ( * ), + + ( + ( + - 59 ) ) ) * + - COUNT ( * ) THEN + 65 END + + 25 AS col2, + 6 AS col1
----
NULL
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3867
SELECT 42 + - 97 * + CAST( + NULLIF ( - 86, + COUNT( * ) ) AS SIGNED ) + 21 col2
----
8405

skipif mysql # not compatible
query I rowsort label-3867
SELECT 42 + - 97 * + CAST ( + NULLIF ( - 86, + COUNT ( * ) ) AS INTEGER ) + 21 col2
----
8405

query I rowsort
SELECT 13 * - - 55
----
715

query II rowsort
SELECT - 23, - 55 AS col2
----
-23
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-3870
SELECT ALL - 27 DIV + COALESCE ( + 61, + 75 )
----
0

skipif mysql # not compatible
query I rowsort label-3870
SELECT ALL - 27 / + COALESCE ( + 61, + 75 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3871
SELECT COUNT( * ) DIV - 36 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3871
SELECT COUNT ( * ) / - 36 AS col2
----
0

query II rowsort
SELECT DISTINCT 35 AS col0, + 33
----
35
33

query I rowsort
SELECT DISTINCT - 0 * + 56 * + 26
----
0

query I rowsort
SELECT ALL + 45 * 3
----
135

query I rowsort
SELECT DISTINCT 72 - - ( - 53 )
----
19

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3876
SELECT - CAST( NULL AS DECIMAL ) + - 92
----
NULL

skipif mysql # not compatible
query I rowsort label-3876
SELECT - CAST ( NULL AS REAL ) + - 92
----
NULL

query I rowsort
SELECT ALL + - ( 92 ) * - 85 + 57 AS col0
----
7877

query II rowsort
SELECT + 56, + 95 * 83 AS col2
----
56
7885

onlyif mysql # aggregate syntax: 
query II rowsort label-3879
SELECT + 67 AS col1, - 12 / - - CASE - 5 WHEN - COUNT( * ) - - - 8 + - 36 + COUNT( * ) + + ( MIN( DISTINCT - + 49 ) ) * 75 / + 88 * + 2 * - 55 * + COUNT( DISTINCT + + 37 ) THEN - 62 ELSE NULL END col1
----
67
NULL

skipif mysql # not compatible
query II rowsort label-3879
SELECT + 67 AS col1, - 12 / - - CASE - 5 WHEN - COUNT ( * ) - - - 8 + - 36 + COUNT ( * ) + + ( MIN ( DISTINCT - + 49 ) ) * 75 / + 88 * + 2 * - 55 * + COUNT ( DISTINCT + + 37 ) THEN - 62 ELSE NULL END col1
----
67
NULL

query I rowsort
SELECT - 87 * 59 + - + 89 AS col0
----
-5222

onlyif mysql # aggregate syntax: 
query I rowsort label-3881
SELECT + 56 * MIN( DISTINCT + - 50 ) * COUNT( * ) col2
----
-2800

skipif mysql # not compatible
query I rowsort label-3881
SELECT + 56 * MIN ( DISTINCT + - 50 ) * COUNT ( * ) col2
----
-2800

query II rowsort
SELECT + - 12, - 33 AS col2
----
-12
-33

query II rowsort
SELECT ALL - + 53 AS col2, 42 * - - 32 + ( + 33 )
----
-53
1377

onlyif mysql # aggregate syntax: 
query I rowsort label-3884
SELECT + COUNT( * ) * + 83
----
83

skipif mysql # not compatible
query I rowsort label-3884
SELECT + COUNT ( * ) * + 83
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-3885
SELECT - 42 * + COUNT( * ) + + - 14 + + COUNT( * ) + ( 52 ) * + ( - - NULLIF ( + 39, COUNT( * ) ) )
----
1973

skipif mysql # not compatible
query I rowsort label-3885
SELECT - 42 * + COUNT ( * ) + + - 14 + + COUNT ( * ) + ( 52 ) * + ( - - NULLIF ( + 39, COUNT ( * ) ) )
----
1973

onlyif mysql # DIV for integer division: 
query I rowsort label-3886
SELECT ALL - - 83 DIV + ( 37 )
----
2

skipif mysql # not compatible
query I rowsort label-3886
SELECT ALL - - 83 / + ( 37 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3887
SELECT + COUNT( DISTINCT - 96 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3887
SELECT + COUNT ( DISTINCT - 96 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3888
SELECT ALL COUNT( * ) + COUNT( * ) + 35
----
37

skipif mysql # not compatible
query I rowsort label-3888
SELECT ALL COUNT ( * ) + COUNT ( * ) + 35
----
37

query I rowsort
SELECT ALL ( + + 68 ) * - 3
----
-204

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3890
SELECT ALL CASE + - ( - - COALESCE ( - CAST( + 10 AS SIGNED ), - ( + - 78 ), COALESCE ( - 21, + + 14 ) / - + 74 * - + 61 ) ) WHEN - 50 THEN 14 * - 0 + - 26 * + COUNT( * ) + - MAX( - 17 ) WHEN - + 1 THEN - - 20 ELSE NULL END + 56 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3890
SELECT ALL CASE + - ( - - COALESCE ( - CAST ( + 10 AS INTEGER ), - ( + - 78 ), COALESCE ( - 21, + + 14 ) / - + 74 * - + 61 ) ) WHEN - 50 THEN 14 * - 0 + - 26 * + COUNT ( * ) + - MAX ( - 17 ) WHEN - + 1 THEN - - 20 ELSE NULL END + 56 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3891
SELECT COUNT( * ) * + + CAST( - CAST( - COUNT( * ) AS SIGNED ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-3891
SELECT COUNT ( * ) * + + CAST ( - CAST ( - COUNT ( * ) AS INTEGER ) AS INTEGER )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3892
SELECT ALL MIN( ALL - + 40 ) AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-3892
SELECT ALL MIN ( ALL - + 40 ) AS col2
----
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-3893
SELECT 33 * - + COALESCE ( + ( + 72 ), - COUNT( * ), COUNT( * ) * + COALESCE ( - - 33, 82, - 7 ) * + 68 ) * + 94, 36 AS col0
----
-223344
36

skipif mysql # not compatible
query II rowsort label-3893
SELECT 33 * - + COALESCE ( + ( + 72 ), - COUNT ( * ), COUNT ( * ) * + COALESCE ( - - 33, 82, - 7 ) * + 68 ) * + 94, 36 AS col0
----
-223344
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3894
SELECT COUNT( * ) - - CASE - - 76 WHEN - + 88 THEN + + 99 DIV + + 72 * - MIN( 3 ) - - 86 ELSE ( 44 ) * + + 32 END * 36 AS col0
----
50689

skipif mysql # not compatible
query I rowsort label-3894
SELECT COUNT ( * ) - - CASE - - 76 WHEN - + 88 THEN + + 99 / + + 72 * - MIN ( 3 ) - - 86 ELSE ( 44 ) * + + 32 END * 36 AS col0
----
50689

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3895
SELECT ALL 24 + - - CAST( ( + 54 ) AS SIGNED ) * - MIN( ALL - 71 )
----
3858

skipif mysql # not compatible
query I rowsort label-3895
SELECT ALL 24 + - - CAST ( ( + 54 ) AS INTEGER ) * - MIN ( ALL - 71 )
----
3858

query I rowsort
SELECT 23 * 62 AS col0
----
1426

query I rowsort
SELECT 58 * 5
----
290

query I rowsort
SELECT DISTINCT 59 - + 13 AS col2
----
46

query I rowsort
SELECT DISTINCT 12 * + 82
----
984

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3900
SELECT 32 + CAST( NULL AS DECIMAL ) * - - CAST( 43 AS SIGNED ) + 74 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3900
SELECT 32 + CAST ( NULL AS REAL ) * - - CAST ( 43 AS INTEGER ) + 74 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3901
SELECT + ( - 43 ) * COUNT( - + 60 ) * - NULLIF ( - - 75, + 75 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3901
SELECT + ( - 43 ) * COUNT ( - + 60 ) * - NULLIF ( - - 75, + 75 ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT - ( - - ( + 59 ) ) AS col2
----
-59

query I rowsort
SELECT ALL CASE 0 WHEN + 4 + - - 80 + - 59 * 30 THEN - 94 WHEN - 14 THEN AVG ( ( NULLIF ( - 51, - 9 * + 58 * + 36 ) ) ) / 0 * - - 34 + + 99 + - - 32 * + + 5 END
----
NULL

query I rowsort
SELECT - ( - 33 ) * 1 + - 92 AS col0
----
-59

query II rowsort
SELECT + 84 + - 77 AS col0, 67 - - - 17
----
7
50

onlyif mysql # DIV for integer division: 
query I rowsort label-3906
SELECT DISTINCT + + 61 DIV - - ( 71 )
----
0

skipif mysql # not compatible
query I rowsort label-3906
SELECT DISTINCT + + 61 / - - ( 71 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3907
SELECT ALL - + CASE ( + 69 ) WHEN + ( + COUNT( * ) ) * + - 55 * - 13 + + 56 - + 29 + - 42 THEN + + AVG ( + 75 ) / - + 63 * + 90 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3907
SELECT ALL - + CASE ( + 69 ) WHEN + ( + COUNT ( * ) ) * + - 55 * - 13 + + 56 - + 29 + - 42 THEN + + AVG ( + 75 ) / - + 63 * + 90 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3908
SELECT - COALESCE ( 50, - 9 + SUM( 78 ) ) DIV - 4
----
12

skipif mysql # not compatible
query I rowsort label-3908
SELECT - COALESCE ( 50, - 9 + SUM ( 78 ) ) / - 4
----
12

query I rowsort
SELECT ALL + 75 * 50 AS col0
----
3750

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3910
SELECT ALL - COUNT( * ) * - CAST( NULL AS SIGNED ) * - 46 - - MIN( ALL - 63 ) / + - 22 - 77 - 4 / - 85 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3910
SELECT ALL - COUNT ( * ) * - CAST ( NULL AS INTEGER ) * - 46 - - MIN ( ALL - 63 ) / + - 22 - 77 - 4 / - 85 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3911
SELECT 11 * - COUNT( DISTINCT - 8 ) + - 71 * + 33
----
-2354

skipif mysql # not compatible
query I rowsort label-3911
SELECT 11 * - COUNT ( DISTINCT - 8 ) + - 71 * + 33
----
-2354

query II rowsort
SELECT DISTINCT - 72 * - 82 AS col1, - 8 AS col2
----
5904
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-3913
SELECT - COUNT( DISTINCT + + 92 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3913
SELECT - COUNT ( DISTINCT + + 92 ) AS col2
----
-1

query I rowsort
SELECT - 96 * ( + COALESCE ( 20, + ( - + 31 ) ) ) AS col1
----
-1920

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3915
SELECT + 60 * ( - CAST( NULL AS DECIMAL ) ) * + COUNT( * ) + - ( - + CASE 87 WHEN ( - + ( + COUNT( * ) ) ) THEN - - 28 END ) + - 5 * AVG ( DISTINCT + 30 ) * - + 17 + + 82 * + AVG ( + - 88 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3915
SELECT + 60 * ( - CAST ( NULL AS REAL ) ) * + COUNT ( * ) + - ( - + CASE 87 WHEN ( - + ( + COUNT ( * ) ) ) THEN - - 28 END ) + - 5 * AVG ( DISTINCT + 30 ) * - + 17 + + 82 * + AVG ( + - 88 ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 9 * - 76 + + 40
----
-644

onlyif mysql # aggregate syntax: 
query I rowsort label-3917
SELECT DISTINCT - 16 * - 85 * + 32 * + 22 + 76 + - 84 * - + ( - + 24 ) * - + ( COUNT( * ) )
----
959532

skipif mysql # not compatible
query I rowsort label-3917
SELECT DISTINCT - 16 * - 85 * + 32 * + 22 + 76 + - 84 * - + ( - + 24 ) * - + ( COUNT ( * ) )
----
959532

query I rowsort
SELECT ALL + - ( + 75 )
----
-75

query II rowsort
SELECT DISTINCT - 9 * + - 11 * - 63 + - - 66 col2, 49 * 96
----
-6171
4704

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3920
SELECT DISTINCT 93 * 6 + + 7 * + ( + 65 ) - + + 12 - + 13 + - - MAX( DISTINCT + 5 ) + CAST( NULL AS SIGNED ) - + + MAX( - 32 ) * + 19 * - NULLIF ( + COUNT( * ), + 70 ) * - 53 / + 69 * 2
----
NULL

skipif mysql # not compatible
query I rowsort label-3920
SELECT DISTINCT 93 * 6 + + 7 * + ( + 65 ) - + + 12 - + 13 + - - MAX ( DISTINCT + 5 ) + CAST ( NULL AS INTEGER ) - + + MAX ( - 32 ) * + 19 * - NULLIF ( + COUNT ( * ), + 70 ) * - 53 / + 69 * 2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3921
SELECT DISTINCT + CASE 9 WHEN + + 58 THEN 80 + - 5 + - 97 WHEN - ( COUNT( * ) ) THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3921
SELECT DISTINCT + CASE 9 WHEN + + 58 THEN 80 + - 5 + - 97 WHEN - ( COUNT ( * ) ) THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3922
SELECT ALL + MIN( DISTINCT - + 37 ) * - + COUNT( * ) - 2 + + 55 - + 37
----
53

skipif mysql # not compatible
query I rowsort label-3922
SELECT ALL + MIN ( DISTINCT - + 37 ) * - + COUNT ( * ) - 2 + + 55 - + 37
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-3923
SELECT - 90 - + + 55 + + ( - COUNT( ALL + - CASE + + 41 WHEN - 79 + - - 41 THEN 57 WHEN + 57 * - 95 * + - 78 - + - 1 THEN NULL ELSE + 76 END ) ) + - + 34 AS col1
----
-180

skipif mysql # not compatible
query I rowsort label-3923
SELECT - 90 - + + 55 + + ( - COUNT ( ALL + - CASE + + 41 WHEN - 79 + - - 41 THEN 57 WHEN + 57 * - 95 * + - 78 - + - 1 THEN NULL ELSE + 76 END ) ) + - + 34 AS col1
----
-180

onlyif mysql # aggregate syntax: 
query I rowsort label-3924
SELECT ALL + MIN( ALL - 3 )
----
-3

skipif mysql # not compatible
query I rowsort label-3924
SELECT ALL + MIN ( ALL - 3 )
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-3925
SELECT - 66 DIV + 73
----
0

skipif mysql # not compatible
query I rowsort label-3925
SELECT - 66 / + 73
----
0

query I rowsort
SELECT - 78 * 78
----
-6084

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3927
SELECT DISTINCT + ( - CAST( NULL AS SIGNED ) ) / - - 0 + 64 + + + 59 + + 50 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3927
SELECT DISTINCT + ( - CAST ( NULL AS INTEGER ) ) / - - 0 + 64 + + + 59 + + 50 col1
----
NULL

query I rowsort
SELECT - 13 * + + 82
----
-1066

onlyif mysql # aggregate syntax: 
query I rowsort label-3929
SELECT SUM( ALL + 2 ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-3929
SELECT SUM ( ALL + 2 ) AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3930
SELECT ALL + COUNT( * ) * CASE + + 4 WHEN + 19 * 88 + - + 62 + - 72 THEN NULL ELSE - 98 - - COUNT( * ) * - - 26 + COALESCE ( + - 95, 49, + 72 * - 8 ) END
----
-167

skipif mysql # not compatible
query I rowsort label-3930
SELECT ALL + COUNT ( * ) * CASE + + 4 WHEN + 19 * 88 + - + 62 + - 72 THEN NULL ELSE - 98 - - COUNT ( * ) * - - 26 + COALESCE ( + - 95, 49, + 72 * - 8 ) END
----
-167

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3931
SELECT DISTINCT + COUNT( * ) DIV COUNT( + 46 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3931
SELECT DISTINCT + COUNT ( * ) / COUNT ( + 46 ) AS col0
----
1

query II rowsort
SELECT ALL 71, 85 * ( - + 56 ) + - 4 AS col0
----
71
-4764

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3933
SELECT - COALESCE ( - CASE COUNT( DISTINCT 11 ) WHEN + 59 THEN - 53 ELSE - CASE - ( 38 ) WHEN - 4 THEN - 52 WHEN + - 33 + - + 89 THEN NULL WHEN - + 28 THEN NULL ELSE NULL END END, 27 ) * + 25 + - - COALESCE ( + 89, CASE - + CAST( + 40 AS SIGNED ) WHEN + + SUM( ALL 12 ) / + 83 * - 98 + CASE WHEN 92 IN ( - 52 - - 62 * - 67, - CAST( NULL AS SIGNED ) * 27 * - 36, - + 2, + + 57 ) THEN NULL ELSE + 14 * 41 END THEN - COUNT( * ) WHEN + 67 * - 95 THEN 56 WHEN - 29 THEN + + 42 END, 0 - + + 52, + CASE + 43 WHEN - 29 THEN NULL WHEN - 36 THEN NULL ELSE - 20 END ) + CAST( 96 + NULLIF ( 82, + 33 - 45 ) AS SIGNED ) * - 5 AS col1
----
-1476

skipif mysql # not compatible
query I rowsort label-3933
SELECT - COALESCE ( - CASE COUNT ( DISTINCT 11 ) WHEN + 59 THEN - 53 ELSE - CASE - ( 38 ) WHEN - 4 THEN - 52 WHEN + - 33 + - + 89 THEN NULL WHEN - + 28 THEN NULL ELSE NULL END END, 27 ) * + 25 + - - COALESCE ( + 89, CASE - + CAST ( + 40 AS INTEGER ) WHEN + + SUM ( ALL 12 ) / + 83 * - 98 + CASE WHEN 92 IN ( - 52 - - 62 * - 67, - CAST ( NULL AS INTEGER ) * 27 * - 36, - + 2, + + 57 ) THEN NULL ELSE + 14 * 41 END THEN - COUNT ( * ) WHEN + 67 * - 95 THEN 56 WHEN - 29 THEN + + 42 END, 0 - + + 52, + CASE + 43 WHEN - 29 THEN NULL WHEN - 36 THEN NULL ELSE - 20 END ) + CAST ( 96 + NULLIF ( 82, + 33 - 45 ) AS INTEGER ) * - 5 AS col1
----
-1476

query I rowsort
SELECT ALL + ( - 22 ) * COALESCE ( - 80, - + 59 ) * - - 94
----
165440

onlyif mysql # aggregate syntax: 
query I rowsort label-3935
SELECT DISTINCT - COUNT( DISTINCT + + 49 ) - + 40 - - - 80 * + 18 * - 94 * + COUNT( * )
----
135319

skipif mysql # not compatible
query I rowsort label-3935
SELECT DISTINCT - COUNT ( DISTINCT + + 49 ) - + 40 - - - 80 * + 18 * - 94 * + COUNT ( * )
----
135319

query I rowsort
SELECT + 76 + - 13 * - 93 * - 87 AS col2
----
-105107

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3937
SELECT ALL - CAST( + - AVG ( ALL - 24 ) AS SIGNED ) * 98 col2
----
-2352

skipif mysql # not compatible
query I rowsort label-3937
SELECT ALL - CAST ( + - AVG ( ALL - 24 ) AS INTEGER ) * 98 col2
----
-2352

query I rowsort
SELECT + ( - 73 ) + + 59 AS col2
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3939
SELECT - 86, - NULLIF ( + + 93, CAST( - 32 AS SIGNED ) ) AS col2
----
-86
-93

skipif mysql # not compatible
query II rowsort label-3939
SELECT - 86, - NULLIF ( + + 93, CAST ( - 32 AS INTEGER ) ) AS col2
----
-86
-93

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3940
SELECT DISTINCT 88, 46 - + COALESCE ( - 86, 28 + ( - + CASE + 69 WHEN - 99 THEN 81 END ) + + 0 ) DIV - + 69 * + COUNT( 76 ) AS col1
----
88
45

skipif mysql # not compatible
query II rowsort label-3940
SELECT DISTINCT 88, 46 - + COALESCE ( - 86, 28 + ( - + CASE + 69 WHEN - 99 THEN 81 END ) + + 0 ) / - + 69 * + COUNT ( 76 ) AS col1
----
88
45

query I rowsort
SELECT + 11 * + + 90
----
990

query II rowsort
SELECT - 18, - 29 AS col1
----
-18
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-3943
SELECT ALL COUNT( * ) * + + 80 AS col0
----
80

skipif mysql # not compatible
query I rowsort label-3943
SELECT ALL COUNT ( * ) * + + 80 AS col0
----
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3944
SELECT + 78 * + - COALESCE ( - + COALESCE ( - 29, + + ( + - NULLIF ( NULLIF ( + 96, - 38 ), - 33 ) ) + CASE - - 89 WHEN + 23 THEN - 14 ELSE NULL END + - 34 ), + 98 DIV - + COUNT( * ) * + 49 DIV + 87 + - + 17 ) col0
----
-2262

skipif mysql # not compatible
query I rowsort label-3944
SELECT + 78 * + - COALESCE ( - + COALESCE ( - 29, + + ( + - NULLIF ( NULLIF ( + 96, - 38 ), - 33 ) ) + CASE - - 89 WHEN + 23 THEN - 14 ELSE NULL END + - 34 ), + 98 / - + COUNT ( * ) * + 49 / + 87 + - + 17 ) col0
----
-2262

query I rowsort
SELECT ALL 35 * + 9
----
315

query II rowsort
SELECT DISTINCT 8, 35 AS col1
----
8
35

onlyif mysql # DIV for integer division: 
query I rowsort label-3947
SELECT + - 29 DIV + - 37 * 88 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3947
SELECT + - 29 / + - 37 * 88 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3948
SELECT + - 24 * - + 86 * COALESCE ( 70, + 73 + + - MAX( + 8 ) + + 70 * - 51 * ( - SUM( ALL 1 ) ) + - - 41 * + 72 * - 63 * + 31, + 54 ) + + 34 AS col1
----
144514

skipif mysql # not compatible
query I rowsort label-3948
SELECT + - 24 * - + 86 * COALESCE ( 70, + 73 + + - MAX ( + 8 ) + + 70 * - 51 * ( - SUM ( ALL 1 ) ) + - - 41 * + 72 * - 63 * + 31, + 54 ) + + 34 AS col1
----
144514

query I rowsort
SELECT - + ( - 5 )
----
5

onlyif mysql # DIV for integer division: 
query II rowsort label-3950
SELECT ALL 16 DIV + 74 * + 92 + 40 + - 6 + + ( - 74 ) * 61 col0, + 62 * 14 AS col1
----
-4480
868

skipif mysql # not compatible
query II rowsort label-3950
SELECT ALL 16 / + 74 * + 92 + 40 + - 6 + + ( - 74 ) * 61 col0, + 62 * 14 AS col1
----
-4480
868

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3951
SELECT + 25 col0, + 25 * 18 * - CASE - 67 WHEN - 83 + + ( 82 ) / + CAST( + - 31 AS SIGNED ) THEN ( - + 97 ) ELSE NULL END / 9 + + COUNT( * ) + + - 9
----
25
NULL

skipif mysql # not compatible
query II rowsort label-3951
SELECT + 25 col0, + 25 * 18 * - CASE - 67 WHEN - 83 + + ( 82 ) / + CAST ( + - 31 AS INTEGER ) THEN ( - + 97 ) ELSE NULL END / 9 + + COUNT ( * ) + + - 9
----
25
NULL

query I rowsort
SELECT - ( 70 ) AS col0
----
-70

onlyif mysql # aggregate syntax: 
query II rowsort label-3953
SELECT + 86, - COUNT( * ) AS col1
----
86
-1

skipif mysql # not compatible
query II rowsort label-3953
SELECT + 86, - COUNT ( * ) AS col1
----
86
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3954
SELECT + 94 + 0 + 44 DIV + COALESCE ( - 71, + 23 * + 18 * 77 + - 90 ) AS col0
----
94

skipif mysql # not compatible
query I rowsort label-3954
SELECT + 94 + 0 + 44 / + COALESCE ( - 71, + 23 * + 18 * 77 + - 90 ) AS col0
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-3955
SELECT ALL + 19 DIV 30
----
0

skipif mysql # not compatible
query I rowsort label-3955
SELECT ALL + 19 / 30
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3956
SELECT ALL - 55 DIV CAST( 60 AS SIGNED ) + 4 * - + COUNT( * ) AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-3956
SELECT ALL - 55 / CAST ( 60 AS INTEGER ) + 4 * - + COUNT ( * ) AS col1
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3957
SELECT ALL + COUNT( * ) DIV 57 + 8 * 31 * - + 8 + - 97 DIV - 21
----
-1980

skipif mysql # not compatible
query I rowsort label-3957
SELECT ALL + COUNT ( * ) / 57 + 8 * 31 * - + 8 + - 97 / - 21
----
-1980

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3958
SELECT 21 * - - 57 + ( - MAX( DISTINCT CAST( NULL AS SIGNED ) ) ) * - + 94 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3958
SELECT 21 * - - 57 + ( - MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) ) * - + 94 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3959
SELECT - COUNT( ALL - 67 ) DIV + 47 * 56 * + 57 + 24 + CAST( - - 23 AS SIGNED ) + - 99
----
-52

skipif mysql # not compatible
query I rowsort label-3959
SELECT - COUNT ( ALL - 67 ) / + 47 * 56 * + 57 + 24 + CAST ( - - 23 AS INTEGER ) + - 99
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3960
SELECT + CAST( CAST( - COALESCE ( + CAST( NULL AS SIGNED ), 67 ) AS SIGNED ) AS SIGNED ) AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-3960
SELECT + CAST ( CAST ( - COALESCE ( + CAST ( NULL AS INTEGER ), 67 ) AS INTEGER ) AS INTEGER ) AS col0
----
-67

query I rowsort
SELECT + 54 * - 90 AS col1
----
-4860

query I rowsort
SELECT - 36 + + ( - 58 ) AS col1
----
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3963
SELECT COALESCE ( CASE 73 WHEN CASE - 65 WHEN - + ( - COALESCE ( + 46, 41 ) ) THEN NULL WHEN - MIN( + 48 ) + - + 35 * 24 THEN - + 35 END THEN NULL WHEN 60 THEN NULL WHEN - COALESCE ( + AVG ( DISTINCT + + 51 ), + - CAST( NULL AS SIGNED ) + MAX( - + 26 ), + + 80 * 77 / - 79 * - CASE - + 79 WHEN + - 62 - - - 21 THEN - + 66 / NULLIF ( COALESCE ( - 38, - COUNT( + - CAST( 21 AS SIGNED ) ) * 35 + - SUM( + + 95 ) ), 34 ) + - + 86 * 23 + + CAST( + 73 AS SIGNED ) * 68 ELSE 39 END + - - MIN( ALL - + NULLIF ( 86, - 16 ) ), + 69 + + 14 * 2 ) / + 63 - - COUNT( ALL - CAST( + 77 AS SIGNED ) ) THEN 73 * + 45 ELSE NULL END, 16 ) AS col1
----
16

skipif mysql # not compatible
query I rowsort label-3963
SELECT COALESCE ( CASE 73 WHEN CASE - 65 WHEN - + ( - COALESCE ( + 46, 41 ) ) THEN NULL WHEN - MIN ( + 48 ) + - + 35 * 24 THEN - + 35 END THEN NULL WHEN 60 THEN NULL WHEN - COALESCE ( + AVG ( DISTINCT + + 51 ), + - CAST ( NULL AS INTEGER ) + MAX ( - + 26 ), + + 80 * 77 / - 79 * - CASE - + 79 WHEN + - 62 - - - 21 THEN - + 66 / NULLIF ( COALESCE ( - 38, - COUNT ( + - CAST ( 21 AS INTEGER ) ) * 35 + - SUM ( + + 95 ) ), 34 ) + - + 86 * 23 + + CAST ( + 73 AS INTEGER ) * 68 ELSE 39 END + - - MIN ( ALL - + NULLIF ( 86, - 16 ) ), + 69 + + 14 * 2 ) / + 63 - - COUNT ( ALL - CAST ( + 77 AS INTEGER ) ) THEN 73 * + 45 ELSE NULL END, 16 ) AS col1
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3964
SELECT ALL COALESCE ( - 14, 20 * - COALESCE ( - 23, 82 - 4 ) + - 19 ) * - COUNT( * ) + - AVG ( ALL - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3964
SELECT ALL COALESCE ( - 14, 20 * - COALESCE ( - 23, 82 - 4 ) + - 19 ) * - COUNT ( * ) + - AVG ( ALL - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT NULLIF ( - 33, - + 51 ) col2
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-3966
SELECT DISTINCT - 45 * COUNT( + 39 ) - - 71 AS col0
----
26

skipif mysql # not compatible
query I rowsort label-3966
SELECT DISTINCT - 45 * COUNT ( + 39 ) - - 71 AS col0
----
26

query I rowsort
SELECT ALL + ( - ( 57 ) ) AS col0
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-3968
SELECT - COUNT( * ) * + - COUNT( * ) col0
----
1

skipif mysql # not compatible
query I rowsort label-3968
SELECT - COUNT ( * ) * + - COUNT ( * ) col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3969
SELECT - ( + + COUNT( * ) ) * - 96 AS col1
----
96

skipif mysql # not compatible
query I rowsort label-3969
SELECT - ( + + COUNT ( * ) ) * - 96 AS col1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3970
SELECT - COALESCE ( 14, - 22, + - COUNT( * ) )
----
-14

skipif mysql # not compatible
query I rowsort label-3970
SELECT - COALESCE ( 14, - 22, + - COUNT ( * ) )
----
-14

query I rowsort
SELECT - 17 - + + 36 AS col1
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-3972
SELECT ALL + ( + + SUM( ALL + - 14 ) ) * - 95 * - - 76
----
101080

skipif mysql # not compatible
query I rowsort label-3972
SELECT ALL + ( + + SUM ( ALL + - 14 ) ) * - 95 * - - 76
----
101080

onlyif mysql # aggregate syntax: 
query I rowsort label-3973
SELECT DISTINCT 97 * + - MAX( ALL 20 ) + + - ( + 7 ) AS col2
----
-1947

skipif mysql # not compatible
query I rowsort label-3973
SELECT DISTINCT 97 * + - MAX ( ALL 20 ) + + - ( + 7 ) AS col2
----
-1947

query I rowsort
SELECT ALL + ( + 56 ) AS col2
----
56

onlyif mysql # aggregate syntax: 
query II rowsort label-3975
SELECT ALL + 39 * 94, CASE + 49 WHEN + 8 THEN 6 END + COUNT( * ) + ( + AVG ( ALL - 61 ) ) AS col0
----
3666
NULL

skipif mysql # not compatible
query II rowsort label-3975
SELECT ALL + 39 * 94, CASE + 49 WHEN + 8 THEN 6 END + COUNT ( * ) + ( + AVG ( ALL - 61 ) ) AS col0
----
3666
NULL

query I rowsort
SELECT - 55 + 81
----
26

query I rowsort
SELECT ALL - + 85 + - + 16 AS col2
----
-101

query I rowsort
SELECT DISTINCT 26 * - + ( - 41 )
----
1066

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3979
SELECT ALL - 32 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3979
SELECT ALL - 32 + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 14 * + - 96 AS col1
----
1344

query I rowsort
SELECT + + 23 col2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3982
SELECT ALL 73 - - - 17 - - + 26 - - COALESCE ( - COUNT( * ), 77 ) AS col1
----
81

skipif mysql # not compatible
query I rowsort label-3982
SELECT ALL 73 - - - 17 - - + 26 - - COALESCE ( - COUNT ( * ), 77 ) AS col1
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3983
SELECT COALESCE ( + + 15, + COUNT( * ), 25 + - SUM( CAST( NULL AS SIGNED ) ) + + - 2 ) - 44 + + - 44 * 17 + - 95 col1
----
-872

skipif mysql # not compatible
query I rowsort label-3983
SELECT COALESCE ( + + 15, + COUNT ( * ), 25 + - SUM ( CAST ( NULL AS INTEGER ) ) + + - 2 ) - 44 + + - 44 * 17 + - 95 col1
----
-872

onlyif mysql # aggregate syntax: 
query I rowsort label-3984
SELECT COUNT( * ) + + + 76 + - 21
----
56

skipif mysql # not compatible
query I rowsort label-3984
SELECT COUNT ( * ) + + + 76 + - 21
----
56

query II rowsort
SELECT 0 AS col2, 9
----
0
9

onlyif mysql # DIV for integer division: 
query I rowsort label-3986
SELECT DISTINCT 36 DIV - 14 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-3986
SELECT DISTINCT 36 / - 14 AS col1
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-3987
SELECT 52 DIV - - 84
----
0

skipif mysql # not compatible
query I rowsort label-3987
SELECT 52 / - - 84
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3988
SELECT ALL 65 DIV - 51
----
-1

skipif mysql # not compatible
query I rowsort label-3988
SELECT ALL 65 / - 51
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3989
SELECT 58 - - CAST( - COALESCE ( + ( + NULLIF ( ( + 58 ), - - CASE - + MIN( DISTINCT - 49 ) WHEN - - 63 / - 12 THEN NULLIF ( - 11, - - 48 ) * + + COUNT( * ) + - 80 + - + COUNT( * ) WHEN - + 90 * - + ( + + 39 ) THEN 78 WHEN - 67 * - + COUNT( * ) THEN NULL ELSE - CAST( 34 AS SIGNED ) * 10 + + 10 / + 81 + + 19 * + 68 END * - 91 / + - 20 * - ( + 58 ) + + 44 ) ), + - ( + 81 ), - MAX( 45 ) ) AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-3989
SELECT 58 - - CAST ( - COALESCE ( + ( + NULLIF ( ( + 58 ), - - CASE - + MIN ( DISTINCT - 49 ) WHEN - - 63 / - 12 THEN NULLIF ( - 11, - - 48 ) * + + COUNT ( * ) + - 80 + - + COUNT ( * ) WHEN - + 90 * - + ( + + 39 ) THEN 78 WHEN - 67 * - + COUNT ( * ) THEN NULL ELSE - CAST ( 34 AS INTEGER ) * 10 + + 10 / + 81 + + 19 * + 68 END * - 91 / + - 20 * - ( + 58 ) + + 44 ) ), + - ( + 81 ), - MAX ( 45 ) ) AS INTEGER )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3990
SELECT ( CAST( NULL AS SIGNED ) ) * 55 * + + COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3990
SELECT ( CAST ( NULL AS INTEGER ) ) * 55 * + + COUNT ( * ) col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3991
SELECT - 3 * - 30 + + 30 + + 97 * 38 - - 18 DIV + - 1 AS col0
----
3788

skipif mysql # not compatible
query I rowsort label-3991
SELECT - 3 * - 30 + + 30 + + 97 * 38 - - 18 / + - 1 AS col0
----
3788

query I rowsort
SELECT 48 + - 26 - + 7 col1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3993
SELECT ( 35 ) * + ( - COUNT( * ) ) col1
----
-35

skipif mysql # not compatible
query I rowsort label-3993
SELECT ( 35 ) * + ( - COUNT ( * ) ) col1
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-3994
SELECT COUNT( + 5 ) + - - 84 + 5 + + 77 + NULLIF ( - - 35, 54 * + 83 ) * - - 63 * - COUNT( + + ( - 38 ) )
----
-2038

skipif mysql # not compatible
query I rowsort label-3994
SELECT COUNT ( + 5 ) + - - 84 + 5 + + 77 + NULLIF ( - - 35, 54 * + 83 ) * - - 63 * - COUNT ( + + ( - 38 ) )
----
-2038

query I rowsort
SELECT DISTINCT 58 * 46
----
2668

query I rowsort
SELECT + 2 * + COALESCE ( - 47, - 42 * + 81 + - COALESCE ( 48, + 63 ) * 19 ) + 27
----
-67

query I rowsort
SELECT ALL 93 * - 29 AS col1
----
-2697

query I rowsort
SELECT ALL 52 + - 37 AS col0
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3999
SELECT 92 + CAST( NULL AS SIGNED ) * ( + 47 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3999
SELECT 92 + CAST ( NULL AS INTEGER ) * ( + 47 ) AS col1
----
NULL

query I rowsort
SELECT 66 * 53
----
3498

onlyif mysql # aggregate syntax: 
query I rowsort label-4001
SELECT 2 + MAX( + 85 ) col2
----
87

skipif mysql # not compatible
query I rowsort label-4001
SELECT 2 + MAX ( + 85 ) col2
----
87

query I rowsort
SELECT ALL - 65 + + 12
----
-53

query I rowsort
SELECT 11 + 0
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4004
SELECT DISTINCT - COUNT( * ) DIV 75 col2
----
0

skipif mysql # not compatible
query I rowsort label-4004
SELECT DISTINCT - COUNT ( * ) / 75 col2
----
0

query I rowsort
SELECT 92 * 87
----
8004

onlyif mysql # aggregate syntax: 
query I rowsort label-4006
SELECT DISTINCT - 20 + - SUM( - ( + 21 ) ) col2
----
1

skipif mysql # not compatible
query I rowsort label-4006
SELECT DISTINCT - 20 + - SUM ( - ( + 21 ) ) col2
----
1

query I rowsort
SELECT DISTINCT - 48 * 41
----
-1968

onlyif mysql # aggregate syntax: 
query I rowsort label-4008
SELECT ALL - COALESCE ( 7, + SUM( ALL 74 ) + - MIN( DISTINCT + 47 ) * 14 ) - 4 * - 21 AS col1
----
77

skipif mysql # not compatible
query I rowsort label-4008
SELECT ALL - COALESCE ( 7, + SUM ( ALL 74 ) + - MIN ( DISTINCT + 47 ) * 14 ) - 4 * - 21 AS col1
----
77

query I rowsort
SELECT 17 * + 58 AS col1
----
986

onlyif mysql # aggregate syntax: 
query I rowsort label-4010
SELECT ALL - COUNT( * ) * 59 AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-4010
SELECT ALL - COUNT ( * ) * 59 AS col2
----
-59

query I rowsort
SELECT DISTINCT + 75 * - 33 AS col2
----
-2475

onlyif mysql # aggregate syntax: 
query I rowsort label-4012
SELECT COUNT( * ) + 28 * + 16
----
449

skipif mysql # not compatible
query I rowsort label-4012
SELECT COUNT ( * ) + 28 * + 16
----
449

onlyif mysql # aggregate syntax: 
query I rowsort label-4013
SELECT DISTINCT SUM( DISTINCT 76 )
----
76

skipif mysql # not compatible
query I rowsort label-4013
SELECT DISTINCT SUM ( DISTINCT 76 )
----
76

query I rowsort
SELECT ALL - 3 - + 82 AS col2
----
-85

query I rowsort
SELECT 7 * 44
----
308

query I rowsort
SELECT 17 * 94 AS col1
----
1598

query I rowsort
SELECT ( 53 ) * + 21 col0
----
1113

query I rowsort
SELECT 40 * - 87 - + 4
----
-3484

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4019
SELECT DISTINCT - CASE 25 WHEN - 35 - - 67 THEN NULL WHEN CAST( NULL AS DECIMAL ) THEN 61 * - 89 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4019
SELECT DISTINCT - CASE 25 WHEN - 35 - - 67 THEN NULL WHEN CAST ( NULL AS REAL ) THEN 61 * - 89 END AS col1
----
NULL

query I rowsort
SELECT DISTINCT 13 * + 54 AS col2
----
702

query I rowsort
SELECT DISTINCT - 13 * - 57
----
741

query I rowsort
SELECT 32 * 51 AS col2
----
1632

query I rowsort
SELECT 68 + 41
----
109

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4024
SELECT ALL 59 * + NULLIF ( COUNT( * ), - CAST( 29 AS SIGNED ) )
----
59

skipif mysql # not compatible
query I rowsort label-4024
SELECT ALL 59 * + NULLIF ( COUNT ( * ), - CAST ( 29 AS INTEGER ) )
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4025
SELECT SUM( ALL + 72 ) col0
----
72

skipif mysql # not compatible
query I rowsort label-4025
SELECT SUM ( ALL + 72 ) col0
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-4026
SELECT 87 DIV 63
----
1

skipif mysql # not compatible
query I rowsort label-4026
SELECT 87 / 63
----
1

query I rowsort
SELECT 58 * 86
----
4988

onlyif mysql # aggregate syntax: 
query I rowsort label-4028
SELECT ALL - 96 * + SUM( DISTINCT 55 )
----
-5280

skipif mysql # not compatible
query I rowsort label-4028
SELECT ALL - 96 * + SUM ( DISTINCT 55 )
----
-5280

onlyif mysql # aggregate syntax: 
query I rowsort label-4029
SELECT COUNT( DISTINCT + 15 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4029
SELECT COUNT ( DISTINCT + 15 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4030
SELECT ALL COUNT( * ) + - CASE WHEN 2 + - 18 NOT BETWEEN NULL AND 73 THEN + 92 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4030
SELECT ALL COUNT ( * ) + - CASE WHEN 2 + - 18 NOT BETWEEN NULL AND 73 THEN + 92 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4031
SELECT COUNT( ALL + 17 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4031
SELECT COUNT ( ALL + 17 ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4032
SELECT + 70 / CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4032
SELECT + 70 / CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4033
SELECT + COUNT( 66 ) * 37 AS col0
----
37

skipif mysql # not compatible
query I rowsort label-4033
SELECT + COUNT ( 66 ) * 37 AS col0
----
37

query I rowsort
SELECT DISTINCT - 91 * - 26
----
2366

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4035
SELECT DISTINCT + 80 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4035
SELECT DISTINCT + 80 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4036
SELECT - + CASE 56 WHEN - 90 THEN NULL WHEN + 20 THEN 45 * NULLIF ( COUNT( * ), - 14 / 31 ) ELSE - 24 END AS col2
----
24

skipif mysql # not compatible
query I rowsort label-4036
SELECT - + CASE 56 WHEN - 90 THEN NULL WHEN + 20 THEN 45 * NULLIF ( COUNT ( * ), - 14 / 31 ) ELSE - 24 END AS col2
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-4037
SELECT + 1 DIV - ( + 78 )
----
0

skipif mysql # not compatible
query I rowsort label-4037
SELECT + 1 / - ( + 78 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4038
SELECT + 71 DIV + 28
----
2

skipif mysql # not compatible
query I rowsort label-4038
SELECT + 71 / + 28
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4039
SELECT ALL - 47 + + 20 * - COALESCE ( - 21 * 6 + + 2 * + 7, 7 + 53, - 94, MAX( + 42 ) + + 35 )
----
2193

skipif mysql # not compatible
query I rowsort label-4039
SELECT ALL - 47 + + 20 * - COALESCE ( - 21 * 6 + + 2 * + 7, 7 + 53, - 94, MAX ( + 42 ) + + 35 )
----
2193

onlyif mysql # aggregate syntax: 
query I rowsort label-4040
SELECT - + COUNT( - 12 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4040
SELECT - + COUNT ( - 12 ) AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4041
SELECT + + 67 - - 21 DIV + 69
----
67

skipif mysql # not compatible
query I rowsort label-4041
SELECT + + 67 - - 21 / + 69
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4042
SELECT ALL - SUM( ALL - 6 ) * + 55 AS col1
----
330

skipif mysql # not compatible
query I rowsort label-4042
SELECT ALL - SUM ( ALL - 6 ) * + 55 AS col1
----
330

onlyif mysql # aggregate syntax: 
query I rowsort label-4043
SELECT + COUNT( * ) * + CASE 70 WHEN - 15 THEN NULL WHEN 67 * - COUNT( * ) THEN 85 + 37 END - - 21
----
NULL

skipif mysql # not compatible
query I rowsort label-4043
SELECT + COUNT ( * ) * + CASE 70 WHEN - 15 THEN NULL WHEN 67 * - COUNT ( * ) THEN 85 + 37 END - - 21
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4044
SELECT ALL + 87 + SUM( 98 )
----
185

skipif mysql # not compatible
query I rowsort label-4044
SELECT ALL + 87 + SUM ( 98 )
----
185

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4045
SELECT DISTINCT + - CASE + 18 WHEN MIN( ALL 44 ) THEN 39 * - 69 ELSE 79 END + 59 DIV ( ( ( + 65 ) ) )
----
-79

skipif mysql # not compatible
query I rowsort label-4045
SELECT DISTINCT + - CASE + 18 WHEN MIN ( ALL 44 ) THEN 39 * - 69 ELSE 79 END + 59 / ( ( ( + 65 ) ) )
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-4046
SELECT ALL - COUNT( * ) + 5 * 42 col2
----
209

skipif mysql # not compatible
query I rowsort label-4046
SELECT ALL - COUNT ( * ) + 5 * 42 col2
----
209

query I rowsort
SELECT ALL 30 * + 44 AS col1
----
1320

query I rowsort
SELECT + + 40 * + 73
----
2920

query I rowsort
SELECT - + 85 * 94 AS col1
----
-7990

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4050
SELECT ALL - - CAST( NULL AS SIGNED ) / - 67
----
NULL

skipif mysql # not compatible
query I rowsort label-4050
SELECT ALL - - CAST ( NULL AS INTEGER ) / - 67
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4051
SELECT DISTINCT CASE + + 17 WHEN 45 THEN 66 WHEN - AVG ( 92 ) * CAST( NULL AS SIGNED ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4051
SELECT DISTINCT CASE + + 17 WHEN 45 THEN 66 WHEN - AVG ( 92 ) * CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4052
SELECT ALL - 72 * SUM( - 47 )
----
3384

skipif mysql # not compatible
query I rowsort label-4052
SELECT ALL - 72 * SUM ( - 47 )
----
3384

query I rowsort
SELECT ALL - ( 35 ) * ( 88 )
----
-3080

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4054
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * + 43 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4054
SELECT DISTINCT - CAST ( NULL AS REAL ) * + 43 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4055
SELECT - 48 DIV - 79
----
0

skipif mysql # not compatible
query I rowsort label-4055
SELECT - 48 / - 79
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4056
SELECT ( + COALESCE ( - CAST( NULL AS SIGNED ), 30 ) ) AS col1
----
30

skipif mysql # not compatible
query I rowsort label-4056
SELECT ( + COALESCE ( - CAST ( NULL AS INTEGER ), 30 ) ) AS col1
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4057
SELECT - 30 * - MIN( ALL 8 )
----
240

skipif mysql # not compatible
query I rowsort label-4057
SELECT - 30 * - MIN ( ALL 8 )
----
240

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4058
SELECT - 42 + - COALESCE ( ( - 98 ), + 98 ) + + CAST( ( + 4 ) AS SIGNED )
----
60

skipif mysql # not compatible
query I rowsort label-4058
SELECT - 42 + - COALESCE ( ( - 98 ), + 98 ) + + CAST ( ( + 4 ) AS INTEGER )
----
60

query I rowsort
SELECT ALL 94 * 65 + 85 AS col2
----
6195

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4060
SELECT ALL - 53 * 43 + + 97 DIV COUNT( * ) AS col0
----
-2182

skipif mysql # not compatible
query I rowsort label-4060
SELECT ALL - 53 * 43 + + 97 / COUNT ( * ) AS col0
----
-2182

query I rowsort
SELECT - 94 * 25 col0
----
-2350

query I rowsort
SELECT ALL 38 * 41 + + 53
----
1611

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4063
SELECT ALL COUNT( * ) * - - 31 * - 47 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4063
SELECT ALL COUNT ( * ) * - - 31 * - 47 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4064
SELECT + ( MIN( ALL + 11 ) ) DIV - ( - 30 + + COUNT( ALL - CASE WHEN NOT ( NULL ) IS NULL THEN NULL ELSE 25 END ) ) - 38 AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-4064
SELECT + ( MIN ( ALL + 11 ) ) / - ( - 30 + + COUNT ( ALL - CASE WHEN NOT ( NULL ) IS NULL THEN NULL ELSE 25 END ) ) - 38 AS col0
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4065
SELECT CASE 51 WHEN + CAST( MAX( + 89 ) AS SIGNED ) THEN - COUNT( * ) WHEN NULLIF ( - 73, - 79 ) / 39 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4065
SELECT CASE 51 WHEN + CAST ( MAX ( + 89 ) AS INTEGER ) THEN - COUNT ( * ) WHEN NULLIF ( - 73, - 79 ) / 39 THEN NULL END
----
NULL

query I rowsort
SELECT ALL + 15 * 1 + 65
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4067
SELECT ALL CASE + + 86 WHEN + ( 18 ) * - 20 THEN NULL WHEN 45 * - ( - 47 * + 88 ) THEN + COUNT( * ) * - 14 + 50 WHEN 72 THEN NULL ELSE NULL END * ( - 13 ) + + 83 / COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4067
SELECT ALL CASE + + 86 WHEN + ( 18 ) * - 20 THEN NULL WHEN 45 * - ( - 47 * + 88 ) THEN + COUNT ( * ) * - 14 + 50 WHEN 72 THEN NULL ELSE NULL END * ( - 13 ) + + 83 / COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4068
SELECT + MIN( DISTINCT - - 21 ) AS col0
----
21

skipif mysql # not compatible
query I rowsort label-4068
SELECT + MIN ( DISTINCT - - 21 ) AS col0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-4069
SELECT - + CASE 93 WHEN - 34 THEN 81 ELSE + COUNT( * ) END * 89 + - 70
----
-159

skipif mysql # not compatible
query I rowsort label-4069
SELECT - + CASE 93 WHEN - 34 THEN 81 ELSE + COUNT ( * ) END * 89 + - 70
----
-159

query I rowsort
SELECT - 8 + + 16 * 86 AS col1
----
1368

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4071
SELECT + CAST( NULL AS SIGNED ) + + 86 + + 31 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4071
SELECT + CAST ( NULL AS INTEGER ) + + 86 + + 31 AS col0
----
NULL

query I rowsort
SELECT ALL 53 * + + NULLIF ( + 0, 25 + + ( + 95 + 6 ) * + 28 ) - 62
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-4073
SELECT DISTINCT + COUNT( + 81 ) * 80
----
80

skipif mysql # not compatible
query I rowsort label-4073
SELECT DISTINCT + COUNT ( + 81 ) * 80
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4074
SELECT - 74 * 62 + COUNT( * ) + 34
----
-4553

skipif mysql # not compatible
query I rowsort label-4074
SELECT - 74 * 62 + COUNT ( * ) + 34
----
-4553

query I rowsort
SELECT ALL + - 55 * - - 66 * + 56 - NULLIF ( - 40, + 94 ) AS col0
----
-203240

onlyif mysql # aggregate syntax: 
query I rowsort label-4076
SELECT + COUNT( * ) * 87 AS col1
----
87

skipif mysql # not compatible
query I rowsort label-4076
SELECT + COUNT ( * ) * 87 AS col1
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4077
SELECT DISTINCT - CASE - - AVG ( DISTINCT - CASE + ( + 3 ) WHEN - 59 * + 44 + 53 THEN ( CASE + COALESCE ( - 68, 54 ) WHEN 57 THEN + 49 ELSE 40 + 46 END ) END ) WHEN + 55 THEN NULL WHEN COUNT( * ) THEN 12 * - 41 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4077
SELECT DISTINCT - CASE - - AVG ( DISTINCT - CASE + ( + 3 ) WHEN - 59 * + 44 + 53 THEN ( CASE + COALESCE ( - 68, 54 ) WHEN 57 THEN + 49 ELSE 40 + 46 END ) END ) WHEN + 55 THEN NULL WHEN COUNT ( * ) THEN 12 * - 41 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4078
SELECT + - 69 * - COUNT( * ) AS col0
----
69

skipif mysql # not compatible
query I rowsort label-4078
SELECT + - 69 * - COUNT ( * ) AS col0
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4079
SELECT + - CAST( NULL AS SIGNED ) + + + MIN( ALL 46 ) + + 74
----
NULL

skipif mysql # not compatible
query I rowsort label-4079
SELECT + - CAST ( NULL AS INTEGER ) + + + MIN ( ALL 46 ) + + 74
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4080
SELECT + + 94 * - - COUNT( ALL - 21 ) * 69 AS col2
----
6486

skipif mysql # not compatible
query I rowsort label-4080
SELECT + + 94 * - - COUNT ( ALL - 21 ) * 69 AS col2
----
6486

onlyif mysql # aggregate syntax: 
query I rowsort label-4081
SELECT + + COUNT( * ) + SUM( 93 ) + 42 col0
----
136

skipif mysql # not compatible
query I rowsort label-4081
SELECT + + COUNT ( * ) + SUM ( 93 ) + 42 col0
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-4082
SELECT DISTINCT MAX( DISTINCT + 94 )
----
94

skipif mysql # not compatible
query I rowsort label-4082
SELECT DISTINCT MAX ( DISTINCT + 94 )
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4083
SELECT ALL 92 col1, CAST( - 73 AS SIGNED ) + + COUNT( * ) AS col0
----
92
-72

skipif mysql # not compatible
query II rowsort label-4083
SELECT ALL 92 col1, CAST ( - 73 AS INTEGER ) + + COUNT ( * ) AS col0
----
92
-72

query I rowsort
SELECT - 78 + 70 AS col2
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4085
SELECT - CAST( NULL AS SIGNED ), 59 - - + ( + 89 ) * + COUNT( 80 ) AS col1
----
NULL
148

skipif mysql # not compatible
query II rowsort label-4085
SELECT - CAST ( NULL AS INTEGER ), 59 - - + ( + 89 ) * + COUNT ( 80 ) AS col1
----
NULL
148

onlyif mysql # aggregate syntax: 
query I rowsort label-4086
SELECT - COUNT( * ) * 0
----
0

skipif mysql # not compatible
query I rowsort label-4086
SELECT - COUNT ( * ) * 0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4087
SELECT - CAST( + - MIN( - 33 ) AS SIGNED )
----
-33

skipif mysql # not compatible
query I rowsort label-4087
SELECT - CAST ( + - MIN ( - 33 ) AS INTEGER )
----
-33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4088
SELECT - 28 DIV COUNT( * ) + + 33 AS col0
----
5

skipif mysql # not compatible
query I rowsort label-4088
SELECT - 28 / COUNT ( * ) + + 33 AS col0
----
5

query I rowsort
SELECT + 18 + - ( 49 )
----
-31

query II rowsort
SELECT + 22 AS col1, 59 * + CASE 32 WHEN 23 * + 12 THEN 53 WHEN - 53 + - 31 THEN + 24 / + 26 END / + 32 AS col2
----
22
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4091
SELECT ALL - 12 AS col0, + NULLIF ( + 21, + CASE 73 WHEN - 27 THEN NULL ELSE - COUNT( * ) + 23 / + 13 END ) * COUNT( * ) AS col2
----
-12
21

skipif mysql # not compatible
query II rowsort label-4091
SELECT ALL - 12 AS col0, + NULLIF ( + 21, + CASE 73 WHEN - 27 THEN NULL ELSE - COUNT ( * ) + 23 / + 13 END ) * COUNT ( * ) AS col2
----
-12
21

query I rowsort
SELECT DISTINCT + 51 + + 93 col2
----
144

onlyif mysql # DIV for integer division: 
query II rowsort label-4093
SELECT + 77 AS col1, 40 * + ( COALESCE ( 98, + 98 DIV - 72 ) )
----
77
3920

skipif mysql # not compatible
query II rowsort label-4093
SELECT + 77 AS col1, 40 * + ( COALESCE ( 98, + 98 / - 72 ) )
----
77
3920

query II rowsort
SELECT 91 AS col0, 37 col0
----
91
37

onlyif mysql # aggregate syntax: 
query I rowsort label-4095
SELECT + CASE - 52 WHEN 89 THEN + CASE - 15 WHEN - 5 - 27 THEN 7 ELSE NULL END WHEN 48 THEN NULL ELSE NULL END * + 7 + 31 * + CASE 82 * MIN( - 62 ) WHEN NULLIF ( + 90, ( MAX( ALL + 53 ) ) ) THEN NULL WHEN + MAX( DISTINCT + 1 ) - + COUNT( * ) THEN 24 * 49 WHEN + ( 93 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4095
SELECT + CASE - 52 WHEN 89 THEN + CASE - 15 WHEN - 5 - 27 THEN 7 ELSE NULL END WHEN 48 THEN NULL ELSE NULL END * + 7 + 31 * + CASE 82 * MIN ( - 62 ) WHEN NULLIF ( + 90, ( MAX ( ALL + 53 ) ) ) THEN NULL WHEN + MAX ( DISTINCT + 1 ) - + COUNT ( * ) THEN 24 * 49 WHEN + ( 93 ) THEN NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4096
SELECT ALL + 33 + + 0 - - 86 * + CAST( - 15 + 42 AS SIGNED ) col1
----
2355

skipif mysql # not compatible
query I rowsort label-4096
SELECT ALL + 33 + + 0 - - 86 * + CAST ( - 15 + 42 AS INTEGER ) col1
----
2355

query I rowsort
SELECT ALL - 79 * - 57 AS col0
----
4503

query I rowsort
SELECT 2 + - 17 AS col1
----
-15

query II rowsort
SELECT 4, + 77 col0
----
4
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4100
SELECT - 92 DIV - MIN( - 52 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4100
SELECT - 92 / - MIN ( - 52 ) AS col1
----
-1

query I rowsort
SELECT 39 + 1 AS col1
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4102
SELECT DISTINCT + - COUNT( + + 85 ) - - COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4102
SELECT DISTINCT + - COUNT ( + + 85 ) - - COUNT ( * ) AS col2
----
0

query I rowsort
SELECT ALL - NULLIF ( + 89, - 3 ) AS col2
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-4104
SELECT MAX( ( - COALESCE ( 42, 32, - 62 ) ) ) AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-4104
SELECT MAX ( ( - COALESCE ( 42, 32, - 62 ) ) ) AS col1
----
-42

query II rowsort
SELECT DISTINCT - - 68, 81 AS col0
----
68
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4106
SELECT + ( + COUNT( * ) ) * 23 * + 97 AS col0
----
2231

skipif mysql # not compatible
query I rowsort label-4106
SELECT + ( + COUNT ( * ) ) * 23 * + 97 AS col0
----
2231

query I rowsort
SELECT 67 + 44 + + 36 AS col2
----
147

query I rowsort
SELECT ALL - + 26 - + 24 col1
----
-50

query I rowsort
SELECT + 0 * - 26 * 2 AS col1
----
0

query II rowsort
SELECT 95 AS col1, 35 + 78 + + 54 * - 61 AS col0
----
95
-3181

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4111
SELECT - 9 DIV ( - + CASE CAST( 14 AS SIGNED ) WHEN 40 + - 77 THEN - 72 * - 86 WHEN - 7 THEN NULL ELSE + CASE - 46 WHEN 40 THEN 68 ELSE 40 + 90 * 45 END END ) * + COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4111
SELECT - 9 / ( - + CASE CAST ( 14 AS INTEGER ) WHEN 40 + - 77 THEN - 72 * - 86 WHEN - 7 THEN NULL ELSE + CASE - 46 WHEN 40 THEN 68 ELSE 40 + 90 * 45 END END ) * + COUNT ( * ) AS col1
----
0

query I rowsort
SELECT 87 * - + 5
----
-435

query I rowsort
SELECT DISTINCT + 13 * + 52 AS col0
----
676

query I rowsort
SELECT 90 - 69 AS col0
----
21

query II rowsort
SELECT - 73, + 49 AS col0
----
-73
49

onlyif mysql # aggregate syntax: 
query II rowsort label-4116
SELECT ALL COUNT( * ), - 9 * SUM( ALL 67 ) AS col2
----
1
-603

skipif mysql # not compatible
query II rowsort label-4116
SELECT ALL COUNT ( * ), - 9 * SUM ( ALL 67 ) AS col2
----
1
-603

onlyif mysql # aggregate syntax: 
query I rowsort label-4117
SELECT MIN( ALL + 37 ) * + 73 * 18 AS col2
----
48618

skipif mysql # not compatible
query I rowsort label-4117
SELECT MIN ( ALL + 37 ) * + 73 * 18 AS col2
----
48618

query I rowsort
SELECT DISTINCT + - 21 * 71 AS col0
----
-1491

onlyif mysql # aggregate syntax: 
query I rowsort label-4119
SELECT DISTINCT 98 + + - NULLIF ( - + COALESCE ( - 20, - 7 * COUNT( * ) ), 67 ) AS col2
----
78

skipif mysql # not compatible
query I rowsort label-4119
SELECT DISTINCT 98 + + - NULLIF ( - + COALESCE ( - 20, - 7 * COUNT ( * ) ), 67 ) AS col2
----
78

query I rowsort
SELECT 26 + + 25
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-4121
SELECT DISTINCT 2 DIV + ( + - 86 ) * - + 98 col0
----
0

skipif mysql # not compatible
query I rowsort label-4121
SELECT DISTINCT 2 / + ( + - 86 ) * - + 98 col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4122
SELECT CAST( + ( + 36 ) AS SIGNED ) - - 30 * - 11
----
-294

skipif mysql # not compatible
query I rowsort label-4122
SELECT CAST ( + ( + 36 ) AS INTEGER ) - - 30 * - 11
----
-294

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4123
SELECT ALL 36 + - + ( COALESCE ( 43, - 85 DIV MIN( 86 * 16 ) + 92, ( 76 ) ) ) AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-4123
SELECT ALL 36 + - + ( COALESCE ( 43, - 85 / MIN ( 86 * 16 ) + 92, ( 76 ) ) ) AS col2
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4124
SELECT ALL 95 + + 90 + CAST( NULL AS SIGNED ) + - + 41 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4124
SELECT ALL 95 + + 90 + CAST ( NULL AS INTEGER ) + - + 41 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4125
SELECT DISTINCT - ( 26 ) + - - MAX( DISTINCT CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4125
SELECT DISTINCT - ( 26 ) + - - MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT ALL 1 + + 1 AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4127
SELECT ALL 59 + CASE COUNT( * ) WHEN - 15 * - COUNT( * ) THEN 67 WHEN - COUNT( * ) * + 59 THEN NULL WHEN 20 * + 35 THEN NULL ELSE NULL END * MAX( - 85 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4127
SELECT ALL 59 + CASE COUNT ( * ) WHEN - 15 * - COUNT ( * ) THEN 67 WHEN - COUNT ( * ) * + 59 THEN NULL WHEN 20 * + 35 THEN NULL ELSE NULL END * MAX ( - 85 ) col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4128
SELECT ALL + COUNT( * ) + + - 8 DIV - 94 * - 42 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4128
SELECT ALL + COUNT ( * ) + + - 8 / - 94 * - 42 AS col2
----
1

query I rowsort
SELECT DISTINCT 94 + + + 48 + + 49
----
191

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4130
SELECT AVG ( + + 71 ) / + + 9 + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4130
SELECT AVG ( + + 71 ) / + + 9 + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4131
SELECT + 86 DIV - + 53 + - 80 AS col0
----
-81

skipif mysql # not compatible
query I rowsort label-4131
SELECT + 86 / - + 53 + - 80 AS col0
----
-81

query I rowsort
SELECT 83 + + 32 + 64
----
179

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4133
SELECT CAST( + 96 AS SIGNED ) * - 91 AS col2
----
-8736

skipif mysql # not compatible
query I rowsort label-4133
SELECT CAST ( + 96 AS INTEGER ) * - 91 AS col2
----
-8736

query II rowsort
SELECT 21 * - + 71 col0, 95 AS col0
----
-1491
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4135
SELECT + CAST( 57 AS SIGNED ) * 12 + COUNT( * ) * 0
----
684

skipif mysql # not compatible
query I rowsort label-4135
SELECT + CAST ( 57 AS INTEGER ) * 12 + COUNT ( * ) * 0
----
684

onlyif mysql # aggregate syntax: 
query I rowsort label-4136
SELECT ALL + SUM( - ( 64 ) ) - - - 52 * 28
----
-1520

skipif mysql # not compatible
query I rowsort label-4136
SELECT ALL + SUM ( - ( 64 ) ) - - - 52 * 28
----
-1520

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4137
SELECT + 95 * - CAST( NULL AS SIGNED ) + - - 89 + - 48 + 70
----
NULL

skipif mysql # not compatible
query I rowsort label-4137
SELECT + 95 * - CAST ( NULL AS INTEGER ) + - - 89 + - 48 + 70
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4138
SELECT DISTINCT 78 - 23 + 54 - COUNT( * ) col1
----
108

skipif mysql # not compatible
query I rowsort label-4138
SELECT DISTINCT 78 - 23 + 54 - COUNT ( * ) col1
----
108

query I rowsort
SELECT 2 * 56 AS col0
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-4140
SELECT ALL - COALESCE ( - NULLIF ( - 2, - - NULLIF ( + 72, + 98 * 85 ) - - 89 * 85 ), 19 - - COUNT( 97 ), 99 ) * - COALESCE ( COALESCE ( - 18, + COUNT( DISTINCT 6 ) + 73 ), 3 ) AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-4140
SELECT ALL - COALESCE ( - NULLIF ( - 2, - - NULLIF ( + 72, + 98 * 85 ) - - 89 * 85 ), 19 - - COUNT ( 97 ), 99 ) * - COALESCE ( COALESCE ( - 18, + COUNT ( DISTINCT 6 ) + 73 ), 3 ) AS col0
----
-36

query I rowsort
SELECT 33 - - 66 AS col1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4142
SELECT + COUNT( * ) * - + 57 + - 0
----
-57

skipif mysql # not compatible
query I rowsort label-4142
SELECT + COUNT ( * ) * - + 57 + - 0
----
-57

query I rowsort
SELECT 81 * + 58 col1
----
4698

query I rowsort
SELECT - CASE - 80 WHEN - 12 THEN + 34 * 55 END * + 13 + - 23
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4145
SELECT + 6 + ( - - 23 ) + + COALESCE ( - COUNT( * ), - CAST( NULL AS SIGNED ) ) + - 66 AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-4145
SELECT + 6 + ( - - 23 ) + + COALESCE ( - COUNT ( * ), - CAST ( NULL AS INTEGER ) ) + - 66 AS col0
----
-38

onlyif mysql # aggregate syntax: 
query II rowsort label-4146
SELECT DISTINCT 85 * + 73 AS col1, - COUNT( * )
----
6205
-1

skipif mysql # not compatible
query II rowsort label-4146
SELECT DISTINCT 85 * + 73 AS col1, - COUNT ( * )
----
6205
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4147
SELECT ALL COUNT( DISTINCT + - NULLIF ( - 4, - 35 + COALESCE ( 59, 65 ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-4147
SELECT ALL COUNT ( DISTINCT + - NULLIF ( - 4, - 35 + COALESCE ( 59, 65 ) ) )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4148
SELECT DISTINCT - CAST( - + 12 AS SIGNED ) + - - NULLIF ( + 91, + NULLIF ( - 3, + CASE 2 WHEN 77 THEN + ( 89 ) END ) * + CAST( NULL AS SIGNED ) + 85 ) AS col1
----
103

skipif mysql # not compatible
query I rowsort label-4148
SELECT DISTINCT - CAST ( - + 12 AS INTEGER ) + - - NULLIF ( + 91, + NULLIF ( - 3, + CASE 2 WHEN 77 THEN + ( 89 ) END ) * + CAST ( NULL AS INTEGER ) + 85 ) AS col1
----
103

query I rowsort
SELECT ALL + 23 + - + 14
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4150
SELECT SUM( ALL + COALESCE ( - 46, + 5 * + 67 ) ) AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-4150
SELECT SUM ( ALL + COALESCE ( - 46, + 5 * + 67 ) ) AS col1
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4151
SELECT ALL + CAST( NULL AS SIGNED ) + - 94 col2, 62 / - - COUNT( * ) / + CASE 68 WHEN + 32 + + 92 / + 72 THEN NULL WHEN + 76 THEN 4 END AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4151
SELECT ALL + CAST ( NULL AS INTEGER ) + - 94 col2, 62 / - - COUNT ( * ) / + CASE 68 WHEN + 32 + + 92 / + 72 THEN NULL WHEN + 76 THEN 4 END AS col2
----
NULL
NULL

query I rowsort
SELECT - 56 + - 2
----
-58

query I rowsort
SELECT - 0 * - 66
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4154
SELECT CASE COUNT( * ) WHEN 49 THEN + 85 + 69 + ( COUNT( * ) + 45 ) / - ( 74 / 93 ) WHEN 31 + + COUNT( * ) * + 36 THEN NULL END * - 35
----
NULL

skipif mysql # not compatible
query I rowsort label-4154
SELECT CASE COUNT ( * ) WHEN 49 THEN + 85 + 69 + ( COUNT ( * ) + 45 ) / - ( 74 / 93 ) WHEN 31 + + COUNT ( * ) * + 36 THEN NULL END * - 35
----
NULL

query I rowsort
SELECT DISTINCT + 68 + 91 - 2 * + 64 AS col1
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4156
SELECT ( + - 24 ) + + CASE + 72 WHEN + - 12 THEN + 29 + COUNT( * ) * - 48 WHEN 68 + 66 THEN + COALESCE ( - 54, COALESCE ( + COUNT( * ), 78 ) ) - + 6 * 51 ELSE NULL END + 71 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4156
SELECT ( + - 24 ) + + CASE + 72 WHEN + - 12 THEN + 29 + COUNT ( * ) * - 48 WHEN 68 + 66 THEN + COALESCE ( - 54, COALESCE ( + COUNT ( * ), 78 ) ) - + 6 * 51 ELSE NULL END + 71 AS col0
----
NULL

query I rowsort
SELECT ALL + 50 + 49 AS col1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4158
SELECT - COUNT( - + 23 )
----
-1

skipif mysql # not compatible
query I rowsort label-4158
SELECT - COUNT ( - + 23 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4159
SELECT DISTINCT COUNT( ALL + + 33 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4159
SELECT DISTINCT COUNT ( ALL + + 33 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4160
SELECT ALL 54, - 81 - + COUNT( * ) AS col2
----
54
-82

skipif mysql # not compatible
query II rowsort label-4160
SELECT ALL 54, - 81 - + COUNT ( * ) AS col2
----
54
-82

onlyif mysql # DIV for integer division: 
query III rowsort label-4161
SELECT 43 col1, 23 DIV + 70, 90 AS col2
----
43
0
90

skipif mysql # not compatible
query III rowsort label-4161
SELECT 43 col1, 23 / + 70, 90 AS col2
----
43
0
90

onlyif mysql # DIV for integer division: 
query I rowsort label-4162
SELECT ALL - 51 + 84 + + + 16 DIV + ( 36 ) AS col0
----
33

skipif mysql # not compatible
query I rowsort label-4162
SELECT ALL - 51 + 84 + + + 16 / + ( 36 ) AS col0
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-4163
SELECT ALL 83 DIV 72 col2
----
1

skipif mysql # not compatible
query I rowsort label-4163
SELECT ALL 83 / 72 col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4164
SELECT ALL COUNT( * ) - 70 + COALESCE ( - 48, + 34 ) - + 60 * COUNT( * ) * - 58
----
3363

skipif mysql # not compatible
query I rowsort label-4164
SELECT ALL COUNT ( * ) - 70 + COALESCE ( - 48, + 34 ) - + 60 * COUNT ( * ) * - 58
----
3363

query I rowsort
SELECT + ( - 99 ) + - 66
----
-165

onlyif mysql # DIV for integer division: 
query I rowsort label-4166
SELECT ALL 47 DIV 28 * + - 61 col1
----
-61

skipif mysql # not compatible
query I rowsort label-4166
SELECT ALL 47 / 28 * + - 61 col1
----
-61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4167
SELECT + 82 DIV - COUNT( * ) + + 26 + - 93 + + ( 1 ) * + 49 * + 16
----
635

skipif mysql # not compatible
query I rowsort label-4167
SELECT + 82 / - COUNT ( * ) + + 26 + - 93 + + ( 1 ) * + 49 * + 16
----
635

query I rowsort
SELECT + 88 - ( 54 )
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4169
SELECT CASE - NULLIF ( + ( + 85 ), + - COUNT( * ) * 36 ) WHEN 78 + 95 THEN + 88 WHEN CAST( NULL AS SIGNED ) THEN 86 + 41 WHEN 37 THEN NULL ELSE - ( 80 ) END AS col1
----
-80

skipif mysql # not compatible
query I rowsort label-4169
SELECT CASE - NULLIF ( + ( + 85 ), + - COUNT ( * ) * 36 ) WHEN 78 + 95 THEN + 88 WHEN CAST ( NULL AS INTEGER ) THEN 86 + 41 WHEN 37 THEN NULL ELSE - ( 80 ) END AS col1
----
-80

query I rowsort
SELECT ALL ( 84 ) * + 63 * 33 + + 70
----
174706

onlyif mysql # aggregate syntax: 
query I rowsort label-4171
SELECT DISTINCT + + SUM( DISTINCT + 30 )
----
30

skipif mysql # not compatible
query I rowsort label-4171
SELECT DISTINCT + + SUM ( DISTINCT + 30 )
----
30

query I rowsort
SELECT ALL 85 * + 93 AS col1
----
7905

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4173
SELECT 74, + CASE + 51 WHEN + 12 * + 46 * + ( + 3 ) - 78 * 29 THEN - 34 * ( 7 ) + - 70 WHEN 92 / 95 THEN + SUM( ALL 21 ) ELSE 97 * + NULLIF ( + 93, 96 * 33 ) END * COUNT( * ) + + CAST( - CAST( - 73 AS SIGNED ) AS SIGNED ) * - 71 AS col2
----
74
3838

skipif mysql # not compatible
query II rowsort label-4173
SELECT 74, + CASE + 51 WHEN + 12 * + 46 * + ( + 3 ) - 78 * 29 THEN - 34 * ( 7 ) + - 70 WHEN 92 / 95 THEN + SUM ( ALL 21 ) ELSE 97 * + NULLIF ( + 93, 96 * 33 ) END * COUNT ( * ) + + CAST ( - CAST ( - 73 AS INTEGER ) AS INTEGER ) * - 71 AS col2
----
74
3838

onlyif mysql # aggregate syntax: 
query II rowsort label-4174
SELECT + MAX( ALL + + 69 ) * 69 AS col1, 15 * + 78 * + 16 + + ( 14 ) * 71 AS col1
----
4761
19714

skipif mysql # not compatible
query II rowsort label-4174
SELECT + MAX ( ALL + + 69 ) * 69 AS col1, 15 * + 78 * + 16 + + ( 14 ) * 71 AS col1
----
4761
19714

query I rowsort
SELECT - + 18 * + 99 AS col2
----
-1782

onlyif mysql # aggregate syntax: 
query I rowsort label-4176
SELECT - + COALESCE ( COUNT( * ), + + 45 ) + + - SUM( + 26 ) - ( 64 ) col0
----
-91

skipif mysql # not compatible
query I rowsort label-4176
SELECT - + COALESCE ( COUNT ( * ), + + 45 ) + + - SUM ( + 26 ) - ( 64 ) col0
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4177
SELECT DISTINCT + - 30 AS col2, + COUNT( * ) DIV - MIN( ALL - - 68 ) - + MIN( + CAST( 82 AS SIGNED ) ) + + 6 AS col2
----
-30
-76

skipif mysql # not compatible
query II rowsort label-4177
SELECT DISTINCT + - 30 AS col2, + COUNT ( * ) / - MIN ( ALL - - 68 ) - + MIN ( + CAST ( 82 AS INTEGER ) ) + + 6 AS col2
----
-30
-76

query I rowsort
SELECT ALL + - CASE + 78 WHEN 1 THEN + 55 - + - COALESCE ( 85, 48 * 9 ) ELSE NULL END * 61 + 61 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4179
SELECT ALL - + COUNT( + + 51 ) * + COUNT( * ) + 51 + - + 77 * + NULLIF ( + 59, 4 ) col0
----
-4493

skipif mysql # not compatible
query I rowsort label-4179
SELECT ALL - + COUNT ( + + 51 ) * + COUNT ( * ) + 51 + - + 77 * + NULLIF ( + 59, 4 ) col0
----
-4493

onlyif mysql # aggregate syntax: 
query I rowsort label-4180
SELECT ALL + + ( - - 85 ) * + 53 + - 24 * - COUNT( 96 )
----
4529

skipif mysql # not compatible
query I rowsort label-4180
SELECT ALL + + ( - - 85 ) * + 53 + - 24 * - COUNT ( 96 )
----
4529

onlyif mysql # DIV for integer division: 
query I rowsort label-4181
SELECT DISTINCT 96 DIV - 69
----
-1

skipif mysql # not compatible
query I rowsort label-4181
SELECT DISTINCT 96 / - 69
----
-1

query I rowsort
SELECT ALL + ( + 87 ) * 87 + - NULLIF ( - 1, 1 )
----
7570

onlyif mysql # aggregate syntax: 
query I rowsort label-4183
SELECT ALL - 60 * - + 26 + + - SUM( DISTINCT + + 53 ) + 24 + MAX( ALL 35 )
----
1566

skipif mysql # not compatible
query I rowsort label-4183
SELECT ALL - 60 * - + 26 + + - SUM ( DISTINCT + + 53 ) + 24 + MAX ( ALL 35 )
----
1566

query I rowsort
SELECT - 54 * + 15 AS col0
----
-810

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4185
SELECT DISTINCT 54 * + CAST( - 18 AS SIGNED ) + ( 69 )
----
-903

skipif mysql # not compatible
query I rowsort label-4185
SELECT DISTINCT 54 * + CAST ( - 18 AS INTEGER ) + ( 69 )
----
-903

query I rowsort
SELECT ALL 91 * + + 41 * - ( 30 ) * - 7 + + 40 + + ( - 6 )
----
783544

onlyif mysql # aggregate syntax: 
query II rowsort label-4187
SELECT COUNT( * ) AS col0, - 95 AS col1
----
1
-95

skipif mysql # not compatible
query II rowsort label-4187
SELECT COUNT ( * ) AS col0, - 95 AS col1
----
1
-95

onlyif mysql # aggregate syntax: 
query II rowsort label-4188
SELECT - COUNT( * ) * - ( 24 ) * 21 AS col0, - ( - COUNT( * ) )
----
504
1

skipif mysql # not compatible
query II rowsort label-4188
SELECT - COUNT ( * ) * - ( 24 ) * 21 AS col0, - ( - COUNT ( * ) )
----
504
1

query II rowsort
SELECT - 44 AS col0, + 72 AS col1
----
-44
72

onlyif mysql # aggregate syntax: 
query I rowsort label-4190
SELECT DISTINCT COUNT( * ) + + ( - 31 ) col1
----
-30

skipif mysql # not compatible
query I rowsort label-4190
SELECT DISTINCT COUNT ( * ) + + ( - 31 ) col1
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-4191
SELECT - MIN( ALL + 11 ) + ( - 55 ) col0
----
-66

skipif mysql # not compatible
query I rowsort label-4191
SELECT - MIN ( ALL + 11 ) + ( - 55 ) col0
----
-66

query I rowsort
SELECT ALL + 19 - - + 75
----
94

query I rowsort
SELECT ALL CASE + + 62 WHEN + - ( 24 ) + - ( + 10 ) + + 24 THEN NULL ELSE 26 END
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-4194
SELECT ALL - 19 - COUNT( * )
----
-20

skipif mysql # not compatible
query I rowsort label-4194
SELECT ALL - 19 - COUNT ( * )
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-4195
SELECT - 48 - 6 + - 35 + SUM( ALL - - 36 ) + - - 93 AS col1
----
40

skipif mysql # not compatible
query I rowsort label-4195
SELECT - 48 - 6 + - 35 + SUM ( ALL - - 36 ) + - - 93 AS col1
----
40

query I rowsort
SELECT ALL NULLIF ( - 8, - 48 )
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-4197
SELECT - ( - + COUNT( * ) ) - 84 * - - 64
----
-5375

skipif mysql # not compatible
query I rowsort label-4197
SELECT - ( - + COUNT ( * ) ) - 84 * - - 64
----
-5375

query II rowsort
SELECT 7 AS col1, + 92
----
7
92

query I rowsort
SELECT - 0 + 55 - - - 53
----
2

query I rowsort
SELECT ALL - 20 - 17
----
-37

query I rowsort
SELECT + 18 * 87
----
1566

onlyif mysql # aggregate syntax: 
query I rowsort label-4202
SELECT - ( + COUNT( * ) ) + - + 28
----
-29

skipif mysql # not compatible
query I rowsort label-4202
SELECT - ( + COUNT ( * ) ) + - + 28
----
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4203
SELECT ALL CAST( + ( COUNT( * ) ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-4203
SELECT ALL CAST ( + ( COUNT ( * ) ) AS INTEGER )
----
1

query I rowsort
SELECT ALL CASE ( - 23 ) WHEN 56 * 45 THEN + 17 WHEN - 15 THEN NULL ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4205
SELECT ALL - 20 - - CAST( NULL AS SIGNED ) * + - 98 + 4
----
NULL

skipif mysql # not compatible
query I rowsort label-4205
SELECT ALL - 20 - - CAST ( NULL AS INTEGER ) * + - 98 + 4
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4206
SELECT - 82 * NULLIF ( + - ( - - 46 ), + 38 ) DIV - SUM( ALL ( 81 ) ) DIV + COUNT( * ) AS col0
----
-46

skipif mysql # not compatible
query I rowsort label-4206
SELECT - 82 * NULLIF ( + - ( - - 46 ), + 38 ) / - SUM ( ALL ( 81 ) ) / + COUNT ( * ) AS col0
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4207
SELECT ALL 32 col1, CAST( NULL AS SIGNED ) - 9
----
32
NULL

skipif mysql # not compatible
query II rowsort label-4207
SELECT ALL 32 col1, CAST ( NULL AS INTEGER ) - 9
----
32
NULL

query I rowsort
SELECT DISTINCT - 2 * - 53 * 97
----
10282

query I rowsort
SELECT ( + ( + 75 ) )
----
75

query II rowsort
SELECT + 74 AS col1, 70
----
74
70

onlyif mysql # DIV for integer division: 
query I rowsort label-4211
SELECT + 23 DIV - 49 + - 44
----
-44

skipif mysql # not compatible
query I rowsort label-4211
SELECT + 23 / - 49 + - 44
----
-44

query I rowsort
SELECT + - 97 * 34 * + 97
----
-319906

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4213
SELECT - 52 DIV + 57 + MIN( DISTINCT - 62 ) + + 78 * - - 39 * 34 + - 80 + - COUNT( * )
----
103285

skipif mysql # not compatible
query I rowsort label-4213
SELECT - 52 / + 57 + MIN ( DISTINCT - 62 ) + + 78 * - - 39 * 34 + - 80 + - COUNT ( * )
----
103285

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4214
SELECT + SUM( + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4214
SELECT + SUM ( + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4215
SELECT ALL - - 27 / COUNT( * ) - - - 78 + COUNT( * ) * + CASE - + 77 WHEN 71 THEN NULL WHEN - ( + 59 ) THEN - 88 + - 78 / 65 ELSE NULL END - + 88
----
NULL

skipif mysql # not compatible
query I rowsort label-4215
SELECT ALL - - 27 / COUNT ( * ) - - - 78 + COUNT ( * ) * + CASE - + 77 WHEN 71 THEN NULL WHEN - ( + 59 ) THEN - 88 + - 78 / 65 ELSE NULL END - + 88
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4216
SELECT - 11 DIV COUNT( - 4 ) + - 32 AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-4216
SELECT - 11 / COUNT ( - 4 ) + - 32 AS col1
----
-43

query II rowsort
SELECT 70 AS col1, 39 AS col1
----
70
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4218
SELECT + - 47 DIV COALESCE ( + ( - + MAX( ALL 21 ) ), 3, 57 )
----
2

skipif mysql # not compatible
query I rowsort label-4218
SELECT + - 47 / COALESCE ( + ( - + MAX ( ALL 21 ) ), 3, 57 )
----
2

query I rowsort
SELECT DISTINCT NULLIF ( 75, - 15 ) * 94
----
7050

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4220
SELECT ALL + COUNT( * ) DIV 67 + - 62 * - - 23 * - - 89 * 13 + ( - 85 - 58 )
----
-1650025

skipif mysql # not compatible
query I rowsort label-4220
SELECT ALL + COUNT ( * ) / 67 + - 62 * - - 23 * - - 89 * 13 + ( - 85 - 58 )
----
-1650025

query I rowsort
SELECT ALL + + 63 col1
----
63

query I rowsort
SELECT + - 95 + + 58 * + 66 AS col2
----
3733

query I rowsort
SELECT + CASE - - 25 WHEN - + 14 * + 33 / + 98 + - - ( + 30 ) THEN NULL WHEN 94 + 88 * - 31 THEN 15 - + 49 WHEN - 38 * 60 THEN NULL ELSE 38 * + 19 END
----
722

query I rowsort
SELECT + + 20 + 37 + - ( 37 ) * - - 95 AS col1
----
-3458

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4225
SELECT + + CAST( + 74 AS SIGNED )
----
74

skipif mysql # not compatible
query I rowsort label-4225
SELECT + + CAST ( + 74 AS INTEGER )
----
74

query I rowsort
SELECT ALL 51 * 67 + + - 72 AS col0
----
3345

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4227
SELECT COUNT( * ) * ( - CAST( + 97 AS SIGNED ) ) + - 46 * + 21 + - NULLIF ( 45 - 10, - NULLIF ( + 26, 33 + - 3 ) )
----
-1098

skipif mysql # not compatible
query I rowsort label-4227
SELECT COUNT ( * ) * ( - CAST ( + 97 AS INTEGER ) ) + - 46 * + 21 + - NULLIF ( 45 - 10, - NULLIF ( + 26, 33 + - 3 ) )
----
-1098

onlyif mysql # aggregate syntax: 
query I rowsort label-4228
SELECT + + 71 + + 49 * + + 58 - + MAX( - - 46 ) AS col0
----
2867

skipif mysql # not compatible
query I rowsort label-4228
SELECT + + 71 + + 49 * + + 58 - + MAX ( - - 46 ) AS col0
----
2867

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4229
SELECT - CAST( NULL AS SIGNED ) + + COUNT( * ) + - 96 * + 49 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4229
SELECT - CAST ( NULL AS INTEGER ) + + COUNT ( * ) + - 96 * + 49 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4230
SELECT ALL 72 DIV 12 * + 19
----
114

skipif mysql # not compatible
query I rowsort label-4230
SELECT ALL 72 / 12 * + 19
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-4231
SELECT SUM( ALL + 73 ) + - 22
----
51

skipif mysql # not compatible
query I rowsort label-4231
SELECT SUM ( ALL + 73 ) + - 22
----
51

query I rowsort
SELECT DISTINCT - 5 * + - 11
----
55

onlyif mysql # DIV for integer division: 
query II rowsort label-4233
SELECT ALL + 51 - + - 95 + 18, 68 DIV + - 34 AS col0
----
164
-2

skipif mysql # not compatible
query II rowsort label-4233
SELECT ALL + 51 - + - 95 + 18, 68 / + - 34 AS col0
----
164
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4234
SELECT CASE + - 94 WHEN + + ( + + 48 ) THEN - - 7 * + - 40 - + COUNT( * ) * 68 END + 61 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4234
SELECT CASE + - 94 WHEN + + ( + + 48 ) THEN - - 7 * + - 40 - + COUNT ( * ) * 68 END + 61 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4235
SELECT DISTINCT 71 * - MAX( + 98 )
----
-6958

skipif mysql # not compatible
query I rowsort label-4235
SELECT DISTINCT 71 * - MAX ( + 98 )
----
-6958

query I rowsort
SELECT 5 + + 19 + + + 19 AS col2
----
43

query I rowsort
SELECT 12 * + NULLIF ( - 7, + 43 / + - ( + 85 ) ) col1
----
-84

onlyif mysql # aggregate syntax: 
query II rowsort label-4238
SELECT 92 + + COUNT( * ) AS col2, 73
----
93
73

skipif mysql # not compatible
query II rowsort label-4238
SELECT 92 + + COUNT ( * ) AS col2, 73
----
93
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4239
SELECT DISTINCT - - NULLIF ( - 64, - - 28 + - COALESCE ( COUNT( * ), - - NULLIF ( - - COUNT( * ), - NULLIF ( 7, 84 ) * AVG ( + 38 * 93 + + 31 ) ) / + 68 ) + NULLIF ( 73 + 63, CAST( + 32 AS SIGNED ) * MAX( + CAST( + 58 AS SIGNED ) + 69 ) ) * 17 ) + 19
----
-45

skipif mysql # not compatible
query I rowsort label-4239
SELECT DISTINCT - - NULLIF ( - 64, - - 28 + - COALESCE ( COUNT ( * ), - - NULLIF ( - - COUNT ( * ), - NULLIF ( 7, 84 ) * AVG ( + 38 * 93 + + 31 ) ) / + 68 ) + NULLIF ( 73 + 63, CAST ( + 32 AS INTEGER ) * MAX ( + CAST ( + 58 AS INTEGER ) + 69 ) ) * 17 ) + 19
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4240
SELECT + 37 * + - 72 AS col2, + COUNT( * ) + + COUNT( - + ( - CAST( - 91 AS SIGNED ) ) ) AS col0
----
-2664
2

skipif mysql # not compatible
query II rowsort label-4240
SELECT + 37 * + - 72 AS col2, + COUNT ( * ) + + COUNT ( - + ( - CAST ( - 91 AS INTEGER ) ) ) AS col0
----
-2664
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4241
SELECT + SUM( DISTINCT 27 ) col1
----
27

skipif mysql # not compatible
query I rowsort label-4241
SELECT + SUM ( DISTINCT 27 ) col1
----
27

query I rowsort
SELECT DISTINCT 29 + - + 19 * + 89
----
-1662

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4243
SELECT ALL + 96 + - CAST( + COUNT( * ) AS SIGNED ) + - COUNT( * ) + - - CASE + ( COALESCE ( - 47, - 21 ) ) WHEN + 33 THEN NULL ELSE 58 END * COUNT( * ) * + 12 AS col2
----
790

skipif mysql # not compatible
query I rowsort label-4243
SELECT ALL + 96 + - CAST ( + COUNT ( * ) AS INTEGER ) + - COUNT ( * ) + - - CASE + ( COALESCE ( - 47, - 21 ) ) WHEN + 33 THEN NULL ELSE 58 END * COUNT ( * ) * + 12 AS col2
----
790

onlyif mysql # aggregate syntax: 
query I rowsort label-4244
SELECT ALL + 85 + 7 * - COUNT( * ) AS col2
----
78

skipif mysql # not compatible
query I rowsort label-4244
SELECT ALL + 85 + 7 * - COUNT ( * ) AS col2
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4245
SELECT ALL - 5 + COALESCE ( + 85, - CAST( - AVG ( ALL + 48 ) AS SIGNED ) + - MAX( 54 ) DIV COUNT( * ), COUNT( * ) * + ( - 22 ) ) AS col0
----
80

skipif mysql # not compatible
query I rowsort label-4245
SELECT ALL - 5 + COALESCE ( + 85, - CAST ( - AVG ( ALL + 48 ) AS INTEGER ) + - MAX ( 54 ) / COUNT ( * ), COUNT ( * ) * + ( - 22 ) ) AS col0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4246
SELECT MAX( DISTINCT - 30 )
----
-30

skipif mysql # not compatible
query I rowsort label-4246
SELECT MAX ( DISTINCT - 30 )
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-4247
SELECT DISTINCT + 2 + + + COUNT( * ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-4247
SELECT DISTINCT + 2 + + + COUNT ( * ) AS col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4248
SELECT - 75 * - + COUNT( - + 50 ) * 66 AS col1
----
4950

skipif mysql # not compatible
query I rowsort label-4248
SELECT - 75 * - + COUNT ( - + 50 ) * 66 AS col1
----
4950

onlyif mysql # DIV for integer division: 
query I rowsort label-4249
SELECT DISTINCT - 53 DIV - 75 + + NULLIF ( - - 89, - + 77 ) AS col1
----
89

skipif mysql # not compatible
query I rowsort label-4249
SELECT DISTINCT - 53 / - 75 + + NULLIF ( - - 89, - + 77 ) AS col1
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-4250
SELECT 59 * + MAX( DISTINCT + - 31 ) * + 97 AS col2
----
-177413

skipif mysql # not compatible
query I rowsort label-4250
SELECT 59 * + MAX ( DISTINCT + - 31 ) * + 97 AS col2
----
-177413

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4251
SELECT ALL - - COALESCE ( + + 66, - - CAST( NULL AS SIGNED ) * + + CASE WHEN COALESCE ( + ( 83 ), - 1, - 65 / + COUNT( * ) + 25 * CAST( 67 AS SIGNED ) ) IS NOT NULL THEN NULL ELSE + 75 END, 98 * + 88 ) - + 98 AS col1
----
-32

skipif mysql # not compatible
query I rowsort label-4251
SELECT ALL - - COALESCE ( + + 66, - - CAST ( NULL AS INTEGER ) * + + CASE WHEN COALESCE ( + ( 83 ), - 1, - 65 / + COUNT ( * ) + 25 * CAST ( 67 AS INTEGER ) ) IS NOT NULL THEN NULL ELSE + 75 END, 98 * + 88 ) - + 98 AS col1
----
-32

query I rowsort
SELECT ALL NULLIF ( 40, 2 ) * + 52 AS col2
----
2080

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4253
SELECT DISTINCT + SUM( + 20 ) * - COUNT( * ) * + CAST( NULL AS SIGNED ) * - 10 + 35
----
NULL

skipif mysql # not compatible
query I rowsort label-4253
SELECT DISTINCT + SUM ( + 20 ) * - COUNT ( * ) * + CAST ( NULL AS INTEGER ) * - 10 + 35
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4254
SELECT CASE ( 16 ) WHEN - AVG ( DISTINCT - - 35 ) + - 48 / 75 / - 65 * + 34 THEN CAST( NULL AS SIGNED ) + 46 WHEN - 96 THEN 87 ELSE NULL END * + 46 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4254
SELECT CASE ( 16 ) WHEN - AVG ( DISTINCT - - 35 ) + - 48 / 75 / - 65 * + 34 THEN CAST ( NULL AS INTEGER ) + 46 WHEN - 96 THEN 87 ELSE NULL END * + 46 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4255
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col2, 48
----
NULL
48

skipif mysql # not compatible
query II rowsort label-4255
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col2, 48
----
NULL
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4256
SELECT ALL 66 - - - CASE + COUNT( * ) WHEN NULLIF ( 8, + - 95 ) * NULLIF ( - 76, - 38 + - 68 ) * - 41 THEN 78 * 31 WHEN - COUNT( * ) THEN NULL WHEN SUM( 97 ) + CAST( CAST( - COUNT( ALL - 80 ) AS SIGNED ) AS DECIMAL ) THEN SUM( ALL - 82 ) + - 31 / 99 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4256
SELECT ALL 66 - - - CASE + COUNT ( * ) WHEN NULLIF ( 8, + - 95 ) * NULLIF ( - 76, - 38 + - 68 ) * - 41 THEN 78 * 31 WHEN - COUNT ( * ) THEN NULL WHEN SUM ( 97 ) + CAST ( CAST ( - COUNT ( ALL - 80 ) AS INTEGER ) AS REAL ) THEN SUM ( ALL - 82 ) + - 31 / 99 ELSE NULL END
----
NULL

query I rowsort
SELECT 77 * + 62 AS col1
----
4774

query I rowsort
SELECT ALL - 46 * + + 66
----
-3036

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4259
SELECT DISTINCT 95 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4259
SELECT DISTINCT 95 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT 60 + + + 69
----
129

query I rowsort
SELECT ALL 30 - - - 69 AS col2
----
-39

query I rowsort
SELECT 67 * + 43
----
2881

onlyif mysql # aggregate syntax: 
query I rowsort label-4263
SELECT COUNT( * ) * + 32 col2
----
32

skipif mysql # not compatible
query I rowsort label-4263
SELECT COUNT ( * ) * + 32 col2
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-4264
SELECT 76 - COUNT( * )
----
75

skipif mysql # not compatible
query I rowsort label-4264
SELECT 76 - COUNT ( * )
----
75

query I rowsort
SELECT 95 + 29 * + 22 + - 9
----
724

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4266
SELECT ALL COUNT( ALL 52 ) DIV COUNT( * ) AS col0, ( + CAST( + 31 AS SIGNED ) ) AS col0
----
1
31

skipif mysql # not compatible
query II rowsort label-4266
SELECT ALL COUNT ( ALL 52 ) / COUNT ( * ) AS col0, ( + CAST ( + 31 AS INTEGER ) ) AS col0
----
1
31

query I rowsort
SELECT 21 - + - 35 col0
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4268
SELECT ALL COALESCE ( - NULLIF ( + - 49, - - 33 ), 94 ) * - COALESCE ( + ( - COUNT( * ) ), 84 ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4268
SELECT ALL COALESCE ( - NULLIF ( + - 49, - - 33 ), 94 ) * - COALESCE ( + ( - COUNT ( * ) ), 84 ) * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4269
SELECT 37 DIV 38 DIV + 16 AS col2, 0 AS col1
----
0
0

skipif mysql # not compatible
query II rowsort label-4269
SELECT 37 / 38 / + 16 AS col2, 0 AS col1
----
0
0

query I rowsort
SELECT ALL - ( 30 ) + + 95 + - 38 * + - 93
----
3599

query I rowsort
SELECT DISTINCT + 89 + - 35
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4272
SELECT ALL ( + COUNT( * ) ) * MAX( + 37 ) + - - MAX( + 56 ) DIV - 23 + + 21 AS col1
----
56

skipif mysql # not compatible
query I rowsort label-4272
SELECT ALL ( + COUNT ( * ) ) * MAX ( + 37 ) + - - MAX ( + 56 ) / - 23 + + 21 AS col1
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4273
SELECT + CAST( + 27 AS SIGNED ) DIV - + MIN( DISTINCT + 59 )
----
0

skipif mysql # not compatible
query I rowsort label-4273
SELECT + CAST ( + 27 AS INTEGER ) / - + MIN ( DISTINCT + 59 )
----
0

query I rowsort
SELECT ALL + 39 + + - 71 + 70 AS col0
----
38

query I rowsort
SELECT DISTINCT - 6 + + 90 AS col0
----
84

query I rowsort
SELECT DISTINCT + - 23 * + - 22 + 92 AS col2
----
598

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4277
SELECT - MIN( - - CASE 55 WHEN 16 + + + 37 THEN - 90 ELSE 77 DIV + 11 END ) DIV 97 + - ( 88 ) AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-4277
SELECT - MIN ( - - CASE 55 WHEN 16 + + + 37 THEN - 90 ELSE 77 / + 11 END ) / 97 + - ( 88 ) AS col0
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-4278
SELECT - COUNT( * ) * + - 40
----
40

skipif mysql # not compatible
query I rowsort label-4278
SELECT - COUNT ( * ) * + - 40
----
40

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4279
SELECT ALL - - 81, CASE + - 18 WHEN - NULLIF ( + + CAST( 43 AS SIGNED ), - 92 * + 88 DIV + 78 + CAST( 90 AS SIGNED ) + 18 * CAST( NULL AS SIGNED ) ) THEN - 68 * 34 + + 34 * + 90 WHEN 80 DIV 8 THEN NULL ELSE - 91 DIV ( + 29 ) + - 30 * 99 END * - ( - 42 + + 11 ) AS col1
----
81
-92163

skipif mysql # not compatible
query II rowsort label-4279
SELECT ALL - - 81, CASE + - 18 WHEN - NULLIF ( + + CAST ( 43 AS INTEGER ), - 92 * + 88 / + 78 + CAST ( 90 AS INTEGER ) + 18 * CAST ( NULL AS INTEGER ) ) THEN - 68 * 34 + + 34 * + 90 WHEN 80 / 8 THEN NULL ELSE - 91 / ( + 29 ) + - 30 * 99 END * - ( - 42 + + 11 ) AS col1
----
81
-92163

onlyif mysql # aggregate syntax: 
query I rowsort label-4280
SELECT DISTINCT + 57 * + 61 * + + COUNT( * ) + - ( - 95 ) + + + 76 + - ( MAX( 86 ) ) * 79 * 75
----
-505902

skipif mysql # not compatible
query I rowsort label-4280
SELECT DISTINCT + 57 * + 61 * + + COUNT ( * ) + - ( - 95 ) + + + 76 + - ( MAX ( 86 ) ) * 79 * 75
----
-505902

query I rowsort
SELECT - ( + 76 ) * 98 col1
----
-7448

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4282
SELECT ALL + + 84 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4282
SELECT ALL + + 84 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-4283
SELECT ALL - 97 * 46 - + 58 col2, + 7 * ( + - COUNT( * ) ), - 51 * + 24 * 27 + + 19 * 77 + ( 59 + - COUNT( + 88 ) ) AS col1
----
-4520
-7
-31527

skipif mysql # not compatible
query III rowsort label-4283
SELECT ALL - 97 * 46 - + 58 col2, + 7 * ( + - COUNT ( * ) ), - 51 * + 24 * 27 + + 19 * 77 + ( 59 + - COUNT ( + 88 ) ) AS col1
----
-4520
-7
-31527

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4284
SELECT + MIN( - 65 ) * + COUNT( * ) + + + 65 + + 6 - - 55 / - + 72 * + 71 + CAST( NULL AS SIGNED ) * 94
----
NULL

skipif mysql # not compatible
query I rowsort label-4284
SELECT + MIN ( - 65 ) * + COUNT ( * ) + + + 65 + + 6 - - 55 / - + 72 * + 71 + CAST ( NULL AS INTEGER ) * 94
----
NULL

query I rowsort
SELECT ALL - 33 * + 22 - - 63 col1
----
-663

query I rowsort
SELECT DISTINCT + - CASE 53 WHEN - 8 + - 72 THEN - 93 * - + 43 WHEN + 5 THEN - - 8 END AS col1
----
NULL

query I rowsort
SELECT DISTINCT + ( 70 ) AS col0
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-4288
SELECT - ( + ( - + 88 ) ) DIV + 82
----
1

skipif mysql # not compatible
query I rowsort label-4288
SELECT - ( + ( - + 88 ) ) / + 82
----
1

query I rowsort
SELECT DISTINCT + NULLIF ( - ( - - 28 ), - 81 ) AS col0
----
-28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4290
SELECT ALL - MIN( - + ( 0 ) ) DIV - + 39 col2
----
0

skipif mysql # not compatible
query I rowsort label-4290
SELECT ALL - MIN ( - + ( 0 ) ) / - + 39 col2
----
0

query I rowsort
SELECT - 89 + - + 43 col2
----
-132

onlyif mysql # DIV for integer division: 
query I rowsort label-4292
SELECT ALL - 88 DIV + + 80
----
-1

skipif mysql # not compatible
query I rowsort label-4292
SELECT ALL - 88 / + + 80
----
-1

query II rowsort
SELECT DISTINCT 18 * 13, 28 AS col1
----
234
28

query I rowsort
SELECT - 83 * - - 75
----
-6225

onlyif mysql # aggregate syntax: 
query I rowsort label-4295
SELECT ALL CASE 43 WHEN COALESCE ( 12, - 67 ) + + COUNT( * ) THEN NULL WHEN - 10 + - 87 / - 10 + - 42 THEN - 45 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4295
SELECT ALL CASE 43 WHEN COALESCE ( 12, - 67 ) + + COUNT ( * ) THEN NULL WHEN - 10 + - 87 / - 10 + - 42 THEN - 45 END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4296
SELECT ALL - 61 + - + 77 * + 14 * CASE + - 48 WHEN + 89 THEN NULL WHEN + 33 THEN NULL ELSE 83 END + - + 44 + SUM( CAST( NULL AS SIGNED ) ) * - 42
----
NULL

skipif mysql # not compatible
query I rowsort label-4296
SELECT ALL - 61 + - + 77 * + 14 * CASE + - 48 WHEN + 89 THEN NULL WHEN + 33 THEN NULL ELSE 83 END + - + 44 + SUM ( CAST ( NULL AS INTEGER ) ) * - 42
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4297
SELECT DISTINCT COALESCE ( + 0, CASE - NULLIF ( + 31, 45 + - + 61 * + 13 + - 34 ) WHEN + CAST( NULL AS SIGNED ) THEN + 94 END * + 53 ) * ( CASE 32 WHEN - 87 THEN 29 + + 65 END / - 45 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4297
SELECT DISTINCT COALESCE ( + 0, CASE - NULLIF ( + 31, 45 + - + 61 * + 13 + - 34 ) WHEN + CAST ( NULL AS INTEGER ) THEN + 94 END * + 53 ) * ( CASE 32 WHEN - 87 THEN 29 + + 65 END / - 45 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4298
SELECT ALL 70 + 21 AS col1, + COUNT( * )
----
91
1

skipif mysql # not compatible
query II rowsort label-4298
SELECT ALL 70 + 21 AS col1, + COUNT ( * )
----
91
1

query I rowsort
SELECT ALL + 89 * 77 AS col1
----
6853

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4300
SELECT - ( + 87 ) * 42 DIV + + 50 + - + 94 + - - COUNT( - 75 ) AS col2, - 23 * 2 - 98
----
-166
-144

skipif mysql # not compatible
query II rowsort label-4300
SELECT - ( + 87 ) * 42 / + + 50 + - + 94 + - - COUNT ( - 75 ) AS col2, - 23 * 2 - 98
----
-166
-144

query I rowsort
SELECT + 52 * + 12
----
624

query II rowsort
SELECT + 11 + - 91, - 94 AS col1
----
-80
-94

query II rowsort
SELECT + + 24 + + - 64 AS col2, 2
----
-40
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4304
SELECT DISTINCT + COALESCE ( - + 96, NULLIF ( - 15, - + 54 + - - 44 * + 60 * - 85 ) * - 73 DIV - COUNT( * ) + - SUM( 29 + - 96 ) + 49 ) + + 68 AS col0
----
-28

skipif mysql # not compatible
query I rowsort label-4304
SELECT DISTINCT + COALESCE ( - + 96, NULLIF ( - 15, - + 54 + - - 44 * + 60 * - 85 ) * - 73 / - COUNT ( * ) + - SUM ( 29 + - 96 ) + 49 ) + + 68 AS col0
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-4305
SELECT + - 49 + + - MAX( ALL - + 40 ) + - 19 col0
----
-28

skipif mysql # not compatible
query I rowsort label-4305
SELECT + - 49 + + - MAX ( ALL - + 40 ) + - 19 col0
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4306
SELECT + + MIN( ALL + 91 ) * 58 - + 20 * + CAST( NULL AS SIGNED ) + 82 + COUNT( * ) * + + COUNT( ALL + + 25 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4306
SELECT + + MIN ( ALL + 91 ) * 58 - + 20 * + CAST ( NULL AS INTEGER ) + 82 + COUNT ( * ) * + + COUNT ( ALL + + 25 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4307
SELECT ALL + CASE - 91 WHEN 21 THEN 42 WHEN + 57 * + - NULLIF ( - 41, COUNT( * ) ) * - 65 - ( + 64 ) THEN NULL ELSE + 92 + MAX( - 62 ) / + CASE + 38 WHEN 52 * - 3 THEN 45 WHEN 69 THEN NULL END END * - 77 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4307
SELECT ALL + CASE - 91 WHEN 21 THEN 42 WHEN + 57 * + - NULLIF ( - 41, COUNT ( * ) ) * - 65 - ( + 64 ) THEN NULL ELSE + 92 + MAX ( - 62 ) / + CASE + 38 WHEN 52 * - 3 THEN 45 WHEN 69 THEN NULL END END * - 77 AS col0
----
NULL

query I rowsort
SELECT ALL - 10 + 53
----
43

query I rowsort
SELECT DISTINCT + 46 * - 10 * + 37
----
-17020

onlyif mysql # aggregate syntax: 
query I rowsort label-4310
SELECT DISTINCT + COUNT( * ) + - COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4310
SELECT DISTINCT + COUNT ( * ) + - COUNT ( * ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4311
SELECT - COUNT( * ) - - + 81
----
80

skipif mysql # not compatible
query I rowsort label-4311
SELECT - COUNT ( * ) - - + 81
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4312
SELECT DISTINCT ( 37 ) * + + COUNT( * ) AS col0
----
37

skipif mysql # not compatible
query I rowsort label-4312
SELECT DISTINCT ( 37 ) * + + COUNT ( * ) AS col0
----
37

query I rowsort
SELECT ALL + 28 * 40
----
1120

onlyif mysql # aggregate syntax: 
query I rowsort label-4314
SELECT + - SUM( DISTINCT + + COALESCE ( - + 89, - 72 ) ) * + 55 * - 14
----
-68530

skipif mysql # not compatible
query I rowsort label-4314
SELECT + - SUM ( DISTINCT + + COALESCE ( - + 89, - 72 ) ) * + 55 * - 14
----
-68530

onlyif mysql # aggregate syntax: 
query I rowsort label-4315
SELECT ALL + COUNT( ALL - 46 )
----
1

skipif mysql # not compatible
query I rowsort label-4315
SELECT ALL + COUNT ( ALL - 46 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4316
SELECT ALL 32 DIV - - 72 * + 51 * + 88 + + 35 + - - 17 - - 0 * + 58 AS col2
----
52

skipif mysql # not compatible
query I rowsort label-4316
SELECT ALL 32 / - - 72 * + 51 * + 88 + + 35 + - - 17 - - 0 * + 58 AS col2
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4317
SELECT - 98 * - CAST( NULL AS SIGNED ) + - 82
----
NULL

skipif mysql # not compatible
query I rowsort label-4317
SELECT - 98 * - CAST ( NULL AS INTEGER ) + - 82
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4318
SELECT DISTINCT + + MIN( 33 ) AS col1
----
33

skipif mysql # not compatible
query I rowsort label-4318
SELECT DISTINCT + + MIN ( 33 ) AS col1
----
33

query I rowsort
SELECT ( - + 77 ) AS col0
----
-77

query I rowsort
SELECT + ( + 10 ) * - ( - + 72 ) + - + 13
----
707

query I rowsort
SELECT - 1 * + 36
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4322
SELECT + CAST( + 32 AS SIGNED ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-4322
SELECT + CAST ( + 32 AS INTEGER ) AS col0
----
32

query I rowsort
SELECT ALL + 2 * 81 + - 32 col1
----
130

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4324
SELECT DISTINCT 54 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4324
SELECT DISTINCT 54 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 37 * + 84 + 34 + 85 AS col0
----
3227

onlyif mysql # DIV for integer division: 
query I rowsort label-4326
SELECT DISTINCT 89 * - NULLIF ( - 82, 52 + - 65 + + 93 * + 88 ) * - 53 - - 90 * - COALESCE ( 1, + 94 DIV 64, - 65 ) * + 88 AS col2
----
-394714

skipif mysql # not compatible
query I rowsort label-4326
SELECT DISTINCT 89 * - NULLIF ( - 82, 52 + - 65 + + 93 * + 88 ) * - 53 - - 90 * - COALESCE ( 1, + 94 / 64, - 65 ) * + 88 AS col2
----
-394714

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4327
SELECT DISTINCT + CASE - 69 WHEN COUNT( * ) + - 34 * 86 / 69 THEN NULL WHEN + 96 - COUNT( * ) + + 34 * 21 * + ( 35 ) THEN - 32 * + NULLIF ( 76, + 32 + 1 ) WHEN - 77 + - 77 THEN NULL END * COALESCE ( + 8 / 31, 75 * COUNT( * ) ) + CAST( 35 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4327
SELECT DISTINCT + CASE - 69 WHEN COUNT ( * ) + - 34 * 86 / 69 THEN NULL WHEN + 96 - COUNT ( * ) + + 34 * 21 * + ( 35 ) THEN - 32 * + NULLIF ( 76, + 32 + 1 ) WHEN - 77 + - 77 THEN NULL END * COALESCE ( + 8 / 31, 75 * COUNT ( * ) ) + CAST ( 35 AS INTEGER )
----
NULL

query I rowsort
SELECT + 29 + - - 52 AS col1
----
81

query I rowsort
SELECT COALESCE ( + 87, + - 89, - 69 )
----
87

onlyif mysql # aggregate syntax: 
query II rowsort label-4330
SELECT - MAX( ( + 59 ) ) AS col0, 88 * - 28 AS col2
----
-59
-2464

skipif mysql # not compatible
query II rowsort label-4330
SELECT - MAX ( ( + 59 ) ) AS col0, 88 * - 28 AS col2
----
-59
-2464

query I rowsort
SELECT ALL + 9 * - - 40 + - 49 + + + 24 AS col2
----
335

onlyif mysql # DIV for integer division: 
query I rowsort label-4332
SELECT - 99 + NULLIF ( - 5, 30 + - - 53 + - 30 DIV 46 ) + + 69 + + 66 * 13 DIV + 74
----
-24

skipif mysql # not compatible
query I rowsort label-4332
SELECT - 99 + NULLIF ( - 5, 30 + - - 53 + - 30 / 46 ) + + 69 + + 66 * 13 / + 74
----
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-4333
SELECT DISTINCT - 39 DIV + 77 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4333
SELECT DISTINCT - 39 / + 77 AS col1
----
0

query I rowsort
SELECT ALL 69 * + 32
----
2208

onlyif mysql # aggregate syntax: 
query I rowsort label-4335
SELECT - COUNT( * ) * SUM( DISTINCT + 5 ) + - 38 AS col2
----
-43

skipif mysql # not compatible
query I rowsort label-4335
SELECT - COUNT ( * ) * SUM ( DISTINCT + 5 ) + - 38 AS col2
----
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-4336
SELECT ALL - - 81 DIV + 61
----
1

skipif mysql # not compatible
query I rowsort label-4336
SELECT ALL - - 81 / + 61
----
1

query I rowsort
SELECT ALL + - 18 + + NULLIF ( + 94, + COALESCE ( - NULLIF ( - CASE 29 WHEN + 24 THEN 65 * + - 83 WHEN 20 THEN NULL END, + 65 ), 13, - 57 + 25 ) ) col2
----
76

query I rowsort
SELECT DISTINCT - - 55 * + 16 AS col2
----
880

onlyif mysql # aggregate syntax: 
query II rowsort label-4339
SELECT - - 95 AS col1, NULLIF ( - 33, - + COUNT( * ) ) AS col1
----
95
-33

skipif mysql # not compatible
query II rowsort label-4339
SELECT - - 95 AS col1, NULLIF ( - 33, - + COUNT ( * ) ) AS col1
----
95
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-4340
SELECT + 80 + COUNT( * )
----
81

skipif mysql # not compatible
query I rowsort label-4340
SELECT + 80 + COUNT ( * )
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4341
SELECT - - 68 * - ( - ( + 88 ) ) * 98, + 80 + + + 36 * CAST( + 36 AS SIGNED ) * - 67 + + 75 AS col0
----
586432
-86677

skipif mysql # not compatible
query II rowsort label-4341
SELECT - - 68 * - ( - ( + 88 ) ) * 98, + 80 + + + 36 * CAST ( + 36 AS INTEGER ) * - 67 + + 75 AS col0
----
586432
-86677

onlyif mysql # aggregate syntax: 
query I rowsort label-4342
SELECT - NULLIF ( + MAX( + 26 ), - + 90 / + 46 * - 7 + - SUM( DISTINCT 30 ) ) AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-4342
SELECT - NULLIF ( + MAX ( + 26 ), - + 90 / + 46 * - 7 + - SUM ( DISTINCT 30 ) ) AS col0
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-4343
SELECT - - ( + MAX( + 8 ) ) AS col1
----
8

skipif mysql # not compatible
query I rowsort label-4343
SELECT - - ( + MAX ( + 8 ) ) AS col1
----
8

query I rowsort
SELECT + 46 + - 16 - + CASE + ( + - NULLIF ( + - 81, - - 9 ) ) WHEN + 6 THEN - 86 * - 67 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT ALL - 13 * 44 + - 68 col0
----
-640

onlyif mysql # aggregate syntax: 
query I rowsort label-4346
SELECT DISTINCT - 74 * + - COUNT( * ) AS col1
----
74

skipif mysql # not compatible
query I rowsort label-4346
SELECT DISTINCT - 74 * + - COUNT ( * ) AS col1
----
74

query I rowsort
SELECT DISTINCT + NULLIF ( 60, + + AVG ( DISTINCT + - 37 ) ) col2
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4348
SELECT + CAST( NULL AS SIGNED ) + - 31 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4348
SELECT + CAST ( NULL AS INTEGER ) + - 31 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4349
SELECT ALL - NULLIF ( + 82, + COALESCE ( - 34, - 26 + 46 DIV 38 ) + + 58 ) DIV - - 89 * CAST( 27 AS SIGNED ) * + 55 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4349
SELECT ALL - NULLIF ( + 82, + COALESCE ( - 34, - 26 + 46 / 38 ) + + 58 ) / - - 89 * CAST ( 27 AS INTEGER ) * + 55 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4350
SELECT + - 31 DIV + 81 + 42 * 11
----
462

skipif mysql # not compatible
query I rowsort label-4350
SELECT + - 31 / + 81 + 42 * 11
----
462

onlyif mysql # aggregate syntax: 
query I rowsort label-4351
SELECT ALL 7 + + - 57 * + COUNT( * ) col0
----
-50

skipif mysql # not compatible
query I rowsort label-4351
SELECT ALL 7 + + - 57 * + COUNT ( * ) col0
----
-50

query I rowsort
SELECT DISTINCT 13 + + 87
----
100

query II rowsort
SELECT ALL 72 + - 38, - 33 * + 31 AS col0
----
34
-1023

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4354
SELECT + 49, + 34 + 9 * - ( + COALESCE ( 49, 52 - - + ( - - CAST( + 89 AS SIGNED ) ) ) ) + - + 82 AS col0
----
49
-489

skipif mysql # not compatible
query II rowsort label-4354
SELECT + 49, + 34 + 9 * - ( + COALESCE ( 49, 52 - - + ( - - CAST ( + 89 AS INTEGER ) ) ) ) + - + 82 AS col0
----
49
-489

onlyif mysql # aggregate syntax: 
query I rowsort label-4355
SELECT ALL 48 + - + COUNT( * ) * - 57 + 59 AS col2
----
164

skipif mysql # not compatible
query I rowsort label-4355
SELECT ALL 48 + - + COUNT ( * ) * - 57 + 59 AS col2
----
164

query I rowsort
SELECT DISTINCT 6 + - - 68 + + 85 AS col0
----
159

query I rowsort
SELECT ( + 77 ) + + + 62 AS col0
----
139

query I rowsort
SELECT 95 * + CASE - + 46 WHEN 37 THEN COALESCE ( + - 41, - 91 ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4359
SELECT 80 AS col2, COUNT( * ) * COUNT( * ) AS col2
----
80
1

skipif mysql # not compatible
query II rowsort label-4359
SELECT 80 AS col2, COUNT ( * ) * COUNT ( * ) AS col2
----
80
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4360
SELECT ALL + CAST( + + COUNT( * ) AS SIGNED ) + - 77 AS col1
----
-76

skipif mysql # not compatible
query I rowsort label-4360
SELECT ALL + CAST ( + + COUNT ( * ) AS INTEGER ) + - 77 AS col1
----
-76

onlyif mysql # DIV for integer division: 
query II rowsort label-4361
SELECT ALL - 50 col0, 3 * 94 DIV 89
----
-50
3

skipif mysql # not compatible
query II rowsort label-4361
SELECT ALL - 50 col0, 3 * 94 / 89
----
-50
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4362
SELECT 20 * + CASE - + 73 WHEN COUNT( * ) - + 81 THEN 65 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4362
SELECT 20 * + CASE - + 73 WHEN COUNT ( * ) - + 81 THEN 65 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4363
SELECT ALL - CAST( NULL AS SIGNED ) * 4
----
NULL

skipif mysql # not compatible
query I rowsort label-4363
SELECT ALL - CAST ( NULL AS INTEGER ) * 4
----
NULL

query II rowsort
SELECT 99, 4 + + - 99 AS col2
----
99
-95

query I rowsort
SELECT DISTINCT 99 * + 83 AS col2
----
8217

onlyif mysql # aggregate syntax: 
query I rowsort label-4366
SELECT DISTINCT 2 - + + 66 + + 74 + + ( + + 97 ) - - - COALESCE ( MIN( + NULLIF ( - 71, - + 84 + 97 * + 59 ) ), COUNT( * ) - 17 ) + + 76 * - 69 * - 49
----
257134

skipif mysql # not compatible
query I rowsort label-4366
SELECT DISTINCT 2 - + + 66 + + 74 + + ( + + 97 ) - - - COALESCE ( MIN ( + NULLIF ( - 71, - + 84 + 97 * + 59 ) ), COUNT ( * ) - 17 ) + + 76 * - 69 * - 49
----
257134

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4367
SELECT ALL - - 53 * CAST( + 7 AS SIGNED ) AS col1
----
371

skipif mysql # not compatible
query I rowsort label-4367
SELECT ALL - - 53 * CAST ( + 7 AS INTEGER ) AS col1
----
371

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4368
SELECT - + COUNT( * ) AS col1, + CASE 26 WHEN - - 49 * + MIN( ALL - 45 ) * + 25 * - ( 20 ) THEN - AVG ( DISTINCT 59 ) * - CAST( + 41 / 45 + 76 AS SIGNED ) ELSE NULL END col2
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-4368
SELECT - + COUNT ( * ) AS col1, + CASE 26 WHEN - - 49 * + MIN ( ALL - 45 ) * + 25 * - ( 20 ) THEN - AVG ( DISTINCT 59 ) * - CAST ( + 41 / 45 + 76 AS INTEGER ) ELSE NULL END col2
----
-1
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4369
SELECT + COALESCE ( 73, + + 47, - - CAST( NULL AS SIGNED ) ) * - 38 - + 2
----
-2776

skipif mysql # not compatible
query I rowsort label-4369
SELECT + COALESCE ( 73, + + 47, - - CAST ( NULL AS INTEGER ) ) * - 38 - + 2
----
-2776

query I rowsort
SELECT 0 * + - ( - 2 ) AS col0
----
0

query II rowsort
SELECT ALL 6, 23 AS col1
----
6
23

onlyif mysql # aggregate syntax: 
query II rowsort label-4372
SELECT DISTINCT 90, COUNT( * ) * + 15 AS col1
----
90
15

skipif mysql # not compatible
query II rowsort label-4372
SELECT DISTINCT 90, COUNT ( * ) * + 15 AS col1
----
90
15

query I rowsort
SELECT ALL + 45 * + - 2
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-4374
SELECT 72 DIV + 74 - + 89
----
-89

skipif mysql # not compatible
query I rowsort label-4374
SELECT 72 / + 74 - + 89
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4375
SELECT ALL - + 98 * + CAST( NULL AS SIGNED ) + - 49 / + COALESCE ( 25, - 25, + + 25 ) + 19
----
NULL

skipif mysql # not compatible
query I rowsort label-4375
SELECT ALL - + 98 * + CAST ( NULL AS INTEGER ) + - 49 / + COALESCE ( 25, - 25, + + 25 ) + 19
----
NULL

query I rowsort
SELECT + 19 * + - COALESCE ( + 81, - 77, 1 )
----
-1539

onlyif mysql # aggregate syntax: 
query I rowsort label-4377
SELECT ALL - CASE - MIN( 80 ) WHEN - SUM( 77 ) * 53 THEN - COUNT( * ) * 36 ELSE NULL END * 1 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4377
SELECT ALL - CASE - MIN ( 80 ) WHEN - SUM ( 77 ) * 53 THEN - COUNT ( * ) * 36 ELSE NULL END * 1 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4378
SELECT - - MAX( + 11 ) AS col1
----
11

skipif mysql # not compatible
query I rowsort label-4378
SELECT - - MAX ( + 11 ) AS col1
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4379
SELECT ALL + - 85 + + - COUNT( * ) + + + 60 - 59 DIV 22
----
-28

skipif mysql # not compatible
query I rowsort label-4379
SELECT ALL + - 85 + + - COUNT ( * ) + + + 60 - 59 / 22
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4380
SELECT DISTINCT + CAST( + 10 AS SIGNED ) AS col0
----
10

skipif mysql # not compatible
query I rowsort label-4380
SELECT DISTINCT + CAST ( + 10 AS INTEGER ) AS col0
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4381
SELECT DISTINCT + 47 + - 79 + + - COUNT( 42 ) * - + 0 DIV + + 12
----
-32

skipif mysql # not compatible
query I rowsort label-4381
SELECT DISTINCT + 47 + - 79 + + - COUNT ( 42 ) * - + 0 / + + 12
----
-32

onlyif mysql # aggregate syntax: 
query II rowsort label-4382
SELECT DISTINCT - 81 * COUNT( + 82 ) * - + 75 + + + 23, + COUNT( * ) * - + NULLIF ( 92, - 87 ) AS col2
----
6098
-92

skipif mysql # not compatible
query II rowsort label-4382
SELECT DISTINCT - 81 * COUNT ( + 82 ) * - + 75 + + + 23, + COUNT ( * ) * - + NULLIF ( 92, - 87 ) AS col2
----
6098
-92

query I rowsort
SELECT DISTINCT + 31 * - 62 * + - 5 + 95
----
9705

query I rowsort
SELECT ALL + 48 * 94 + + 6
----
4518

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4385
SELECT DISTINCT - COALESCE ( + - 38, - 92 + - CAST( NULL AS SIGNED ) + + 48, + 3 - + 95 )
----
38

skipif mysql # not compatible
query I rowsort label-4385
SELECT DISTINCT - COALESCE ( + - 38, - 92 + - CAST ( NULL AS INTEGER ) + + 48, + 3 - + 95 )
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-4386
SELECT ALL COUNT( * ) * - 98 * - - MIN( + 15 )
----
-1470

skipif mysql # not compatible
query I rowsort label-4386
SELECT ALL COUNT ( * ) * - 98 * - - MIN ( + 15 )
----
-1470

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4387
SELECT ALL - 71 * + 76 + - + COUNT( * ) + - 41 DIV - 92
----
-5397

skipif mysql # not compatible
query I rowsort label-4387
SELECT ALL - 71 * + 76 + - + COUNT ( * ) + - 41 / - 92
----
-5397

onlyif mysql # aggregate syntax: 
query I rowsort label-4388
SELECT ALL + COUNT( * ) * 57 AS col2
----
57

skipif mysql # not compatible
query I rowsort label-4388
SELECT ALL + COUNT ( * ) * 57 AS col2
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4389
SELECT COUNT( * ) DIV + - MAX( - - 25 )
----
0

skipif mysql # not compatible
query I rowsort label-4389
SELECT COUNT ( * ) / + - MAX ( - - 25 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4390
SELECT DISTINCT CASE 5 WHEN 59 + - 69 THEN NULL ELSE 67 END * - - COUNT( * ) + - + CASE + + COALESCE ( + + 68, - + 85 ) WHEN 56 + + 18 + + 49 THEN NULL ELSE 81 END AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-4390
SELECT DISTINCT CASE 5 WHEN 59 + - 69 THEN NULL ELSE 67 END * - - COUNT ( * ) + - + CASE + + COALESCE ( + + 68, - + 85 ) WHEN 56 + + 18 + + 49 THEN NULL ELSE 81 END AS col1
----
-14

query I rowsort
SELECT ALL 58 - + 24 * + - ( + + 52 )
----
1306

onlyif mysql # aggregate syntax: 
query II rowsort label-4392
SELECT MAX( - 73 ), 74 * + 65 AS col2
----
-73
4810

skipif mysql # not compatible
query II rowsort label-4392
SELECT MAX ( - 73 ), 74 * + 65 AS col2
----
-73
4810

onlyif mysql # aggregate syntax: 
query I rowsort label-4393
SELECT ALL 40 - + - 76 * + SUM( ALL 95 ) * + 74 + - 45 * 37 AS col1
----
532655

skipif mysql # not compatible
query I rowsort label-4393
SELECT ALL 40 - + - 76 * + SUM ( ALL 95 ) * + 74 + - 45 * 37 AS col1
----
532655

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4394
SELECT COALESCE ( - COUNT( * ), - 97, 81 DIV + 67 * + 37 * - 38 ) * - 20 DIV COUNT( * ) AS col2
----
20

skipif mysql # not compatible
query I rowsort label-4394
SELECT COALESCE ( - COUNT ( * ), - 97, 81 / + 67 * + 37 * - 38 ) * - 20 / COUNT ( * ) AS col2
----
20

query I rowsort
SELECT + ( - 91 ) * - - 40 * + + 75 * 37 AS col0
----
-10101000

query I rowsort
SELECT DISTINCT - + NULLIF ( 42, - - 50 ) AS col1
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-4397
SELECT + SUM( ALL 2 )
----
2

skipif mysql # not compatible
query I rowsort label-4397
SELECT + SUM ( ALL 2 )
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4398
SELECT - + NULLIF ( - - 46, - MIN( ALL + + CAST( - 66 AS SIGNED ) ) ), + 97 AS col2
----
-46
97

skipif mysql # not compatible
query II rowsort label-4398
SELECT - + NULLIF ( - - 46, - MIN ( ALL + + CAST ( - 66 AS INTEGER ) ) ), + 97 AS col2
----
-46
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4399
SELECT ALL + CAST( 2 AS SIGNED ) AS col1, + 73 AS col1
----
2
73

skipif mysql # not compatible
query II rowsort label-4399
SELECT ALL + CAST ( 2 AS INTEGER ) AS col1, + 73 AS col1
----
2
73

query II rowsort
SELECT DISTINCT COALESCE ( - - 88, 60 ) * + + 95 * + 40, - 58 AS col0
----
334400
-58

query I rowsort
SELECT DISTINCT - 46 + 62 AS col2
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4402
SELECT - 73 * 33 * - - COUNT( * )
----
-2409

skipif mysql # not compatible
query I rowsort label-4402
SELECT - 73 * 33 * - - COUNT ( * )
----
-2409

onlyif mysql # aggregate syntax: 
query I rowsort label-4403
SELECT - - 33 - - COUNT( 98 )
----
34

skipif mysql # not compatible
query I rowsort label-4403
SELECT - - 33 - - COUNT ( 98 )
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-4404
SELECT - + MIN( + ( - 70 ) ) * - 90 + 53 AS col1
----
-6247

skipif mysql # not compatible
query I rowsort label-4404
SELECT - + MIN ( + ( - 70 ) ) * - 90 + 53 AS col1
----
-6247

query I rowsort
SELECT ALL + 53 + - 82 - 0
----
-29

query I rowsort
SELECT ALL COALESCE ( + 52, + 45, - 69 + + - 25 ) AS col1
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-4407
SELECT - MAX( ALL - 69 ) * + + 17
----
1173

skipif mysql # not compatible
query I rowsort label-4407
SELECT - MAX ( ALL - 69 ) * + + 17
----
1173

query I rowsort
SELECT ALL - 97 + + 20 * + 91 AS col0
----
1723

query I rowsort
SELECT - 60 - 22 AS col1
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-4410
SELECT - COUNT( * ) + - NULLIF ( - COUNT( 74 ), COALESCE ( + 34, + - 37 ) * - - MIN( + 8 ) * - 20 + - 92 - - COUNT( * ) + 56 / + 99 * 48 + - 99 + + COUNT( * ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4410
SELECT - COUNT ( * ) + - NULLIF ( - COUNT ( 74 ), COALESCE ( + 34, + - 37 ) * - - MIN ( + 8 ) * - 20 + - 92 - - COUNT ( * ) + 56 / + 99 * 48 + - 99 + + COUNT ( * ) ) AS col1
----
0

query I rowsort
SELECT - 36 - + 50
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-4412
SELECT ALL - COUNT( * ) * + - 53 + - - 60
----
113

skipif mysql # not compatible
query I rowsort label-4412
SELECT ALL - COUNT ( * ) * + - 53 + - - 60
----
113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4413
SELECT 62 / - - COUNT( * ) + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4413
SELECT 62 / - - COUNT ( * ) + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4414
SELECT - 0 + + - 61 + - + ( - - COUNT( * ) ) * - - 54 * + 35 * + - 14 + + ( - 65 ) - - + COALESCE ( + 61, - NULLIF ( 44, + 63 ) ) + MAX( DISTINCT + 22 ) * - 2
----
26351

skipif mysql # not compatible
query I rowsort label-4414
SELECT - 0 + + - 61 + - + ( - - COUNT ( * ) ) * - - 54 * + 35 * + - 14 + + ( - 65 ) - - + COALESCE ( + 61, - NULLIF ( 44, + 63 ) ) + MAX ( DISTINCT + 22 ) * - 2
----
26351

onlyif mysql # aggregate syntax: 
query I rowsort label-4415
SELECT DISTINCT + 53 * COUNT( * ) AS col1
----
53

skipif mysql # not compatible
query I rowsort label-4415
SELECT DISTINCT + 53 * COUNT ( * ) AS col1
----
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4416
SELECT - COUNT( - - 95 ) DIV - NULLIF ( 41, - 21 ) + + 24 + - + 66
----
-42

skipif mysql # not compatible
query I rowsort label-4416
SELECT - COUNT ( - - 95 ) / - NULLIF ( 41, - 21 ) + + 24 + - + 66
----
-42

query I rowsort
SELECT ALL + CASE - + 11 WHEN 28 THEN - - 72 END AS col2
----
NULL

query I rowsort
SELECT + 46 + - + 81 AS col1
----
-35

query II rowsort
SELECT ALL + 81 AS col2, 44 AS col1
----
81
44

query I rowsort
SELECT ALL + ( + 34 )
----
34

query II rowsort
SELECT DISTINCT + 88 AS col0, 98
----
88
98

query I rowsort
SELECT - 34 * - + 29 col1
----
986

query I rowsort
SELECT NULLIF ( + 69, 12 / 91 + + 67 + + + 82 + 14 - + 54 * + 12 ) AS col0
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4424
SELECT + CASE WHEN NOT ( ( - COALESCE ( ( 20 ), - 86 * 98 * + ( - COALESCE ( 15, + CASE - COALESCE ( 14, 4 ) WHEN - NULLIF ( 47, - 90 * MIN( + 14 ) ) * + 45 THEN NULL WHEN - 64 THEN + 87 * 53 - + COUNT( * ) * - 39 ELSE 27 END - + 79, - 56 ) ) / 24 - ( - 0 ) ) ) ) BETWEEN - CAST( NULL AS SIGNED ) AND - 41 THEN 35 * 92 END
----
3220

skipif mysql # not compatible
query I rowsort label-4424
SELECT + CASE WHEN NOT ( ( - COALESCE ( ( 20 ), - 86 * 98 * + ( - COALESCE ( 15, + CASE - COALESCE ( 14, 4 ) WHEN - NULLIF ( 47, - 90 * MIN ( + 14 ) ) * + 45 THEN NULL WHEN - 64 THEN + 87 * 53 - + COUNT ( * ) * - 39 ELSE 27 END - + 79, - 56 ) ) / 24 - ( - 0 ) ) ) ) BETWEEN - CAST ( NULL AS INTEGER ) AND - 41 THEN 35 * 92 END
----
3220

query I rowsort
SELECT + - 70 * + + 92 + + 10 AS col2
----
-6430

query I rowsort
SELECT + + ( - - 95 ) AS col2
----
95

query II rowsort
SELECT ALL + 29 AS col2, 65
----
29
65

query I rowsort
SELECT ALL + + 19 * + + 72 AS col2
----
1368

query I rowsort
SELECT ALL + ( - 29 ) AS col1
----
-29

query I rowsort
SELECT + 79 * - - 8 AS col1
----
632

query I rowsort
SELECT DISTINCT - 42 + - 7 + 58 + + 70 AS col2
----
79

query I rowsort
SELECT + - 4 - - 51 + 18
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4433
SELECT DISTINCT MIN( ALL 24 ) + SUM( DISTINCT 56 )
----
80

skipif mysql # not compatible
query I rowsort label-4433
SELECT DISTINCT MIN ( ALL 24 ) + SUM ( DISTINCT 56 )
----
80

query I rowsort
SELECT DISTINCT - 35 + + 7 + 83 * 69 * + 45 + - 57 AS col0
----
257630

onlyif mysql # aggregate syntax: 
query I rowsort label-4435
SELECT ALL + COALESCE ( - + 8, COUNT( * ) * - - COUNT( * ) + - - CASE ( - - AVG ( ALL - - 28 ) ) WHEN + 25 * - 90 THEN NULL ELSE - 17 END * 74, 38 )
----
-8

skipif mysql # not compatible
query I rowsort label-4435
SELECT ALL + COALESCE ( - + 8, COUNT ( * ) * - - COUNT ( * ) + - - CASE ( - - AVG ( ALL - - 28 ) ) WHEN + 25 * - 90 THEN NULL ELSE - 17 END * 74, 38 )
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4436
SELECT DISTINCT - + CASE - CASE + + 34 WHEN - 16 THEN 65 WHEN + - 11 THEN NULL WHEN ( + CAST( NULL AS DECIMAL ) ) * + - 86 * COALESCE ( - ( + 58 ), - + 20 * - 48 + - 11, 63 ) + 54 + - CASE + 28 WHEN - 78 THEN + 90 + - 67 WHEN - COUNT( * ) + + COUNT( * ) THEN NULL ELSE NULL END THEN NULL END WHEN 38 + + 60 THEN + 96 / AVG ( ALL - 19 * + CAST( NULL AS SIGNED ) ) END + 71 * + 78 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4436
SELECT DISTINCT - + CASE - CASE + + 34 WHEN - 16 THEN 65 WHEN + - 11 THEN NULL WHEN ( + CAST ( NULL AS REAL ) ) * + - 86 * COALESCE ( - ( + 58 ), - + 20 * - 48 + - 11, 63 ) + 54 + - CASE + 28 WHEN - 78 THEN + 90 + - 67 WHEN - COUNT ( * ) + + COUNT ( * ) THEN NULL ELSE NULL END THEN NULL END WHEN 38 + + 60 THEN + 96 / AVG ( ALL - 19 * + CAST ( NULL AS INTEGER ) ) END + 71 * + 78 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4437
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - + 3 + - 51 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4437
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - + 3 + - 51 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4438
SELECT + ( + + 79 ) + - AVG ( - CASE - 90 WHEN + - CAST( 83 AS SIGNED ) THEN 20 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-4438
SELECT + ( + + 79 ) + - AVG ( - CASE - 90 WHEN + - CAST ( 83 AS INTEGER ) THEN 20 END )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4439
SELECT ALL NULLIF ( - 14, 3 + + CAST( NULL AS SIGNED ) ) * - + ( - 16 ) + - 91 * + MIN( DISTINCT + 5 ) * - + 53 * + + 5 col1
----
120351

skipif mysql # not compatible
query I rowsort label-4439
SELECT ALL NULLIF ( - 14, 3 + + CAST ( NULL AS INTEGER ) ) * - + ( - 16 ) + - 91 * + MIN ( DISTINCT + 5 ) * - + 53 * + + 5 col1
----
120351

query I rowsort
SELECT - 36 + - + 52 * + - 70 * - + 99 * + 39 - - - 11 + + + 49 + + + 61 AS col2
----
-14053977

onlyif mysql # aggregate syntax: 
query I rowsort label-4441
SELECT ALL NULLIF ( - COUNT( * ), + + 47 + - 60 * - - 64 + - + 84 ) + - 19 * - 8 * - 83 AS col2
----
-12617

skipif mysql # not compatible
query I rowsort label-4441
SELECT ALL NULLIF ( - COUNT ( * ), + + 47 + - 60 * - - 64 + - + 84 ) + - 19 * - 8 * - 83 AS col2
----
-12617

onlyif mysql # aggregate syntax: 
query I rowsort label-4442
SELECT - 13 + + - COUNT( * ) + + - 48 AS col2
----
-62

skipif mysql # not compatible
query I rowsort label-4442
SELECT - 13 + + - COUNT ( * ) + + - 48 AS col2
----
-62

query I rowsort
SELECT + 83 * + - 38 AS col2
----
-3154

onlyif mysql # DIV for integer division: 
query I rowsort label-4444
SELECT + 1 DIV + 59 * 89 DIV 46 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4444
SELECT + 1 / + 59 * 89 / 46 AS col2
----
0

query I rowsort
SELECT ALL ( - ( + - NULLIF ( - 29, 5 ) ) ) AS col2
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4446
SELECT DISTINCT + CASE 28 WHEN + 89 THEN - 23 + CAST( NULL AS SIGNED ) WHEN + 14 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4446
SELECT DISTINCT + CASE 28 WHEN + 89 THEN - 23 + CAST ( NULL AS INTEGER ) WHEN + 14 THEN NULL END
----
NULL

query I rowsort
SELECT ALL - 67 * 87 AS col1
----
-5829

onlyif mysql # aggregate syntax: 
query I rowsort label-4448
SELECT DISTINCT - CASE - + 78 WHEN - 32 THEN + 91 / + 54 WHEN + 70 * - 45 THEN - 45 ELSE NULL END / - 30 + - COALESCE ( 23, + 43 * - COUNT( * ) + - COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4448
SELECT DISTINCT - CASE - + 78 WHEN - 32 THEN + 91 / + 54 WHEN + 70 * - 45 THEN - 45 ELSE NULL END / - 30 + - COALESCE ( 23, + 43 * - COUNT ( * ) + - COUNT ( * ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4449
SELECT - 5 DIV 69 DIV - 48 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4449
SELECT - 5 / 69 / - 48 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4450
SELECT ALL - 76 * 69 * + COUNT( * )
----
-5244

skipif mysql # not compatible
query I rowsort label-4450
SELECT ALL - 76 * 69 * + COUNT ( * )
----
-5244

onlyif mysql # aggregate syntax: 
query II rowsort label-4451
SELECT ALL - 67 * + + 71 AS col0, + 66 * + 75 - + ( ( COUNT( * ) ) )
----
-4757
4949

skipif mysql # not compatible
query II rowsort label-4451
SELECT ALL - 67 * + + 71 AS col0, + 66 * + 75 - + ( ( COUNT ( * ) ) )
----
-4757
4949

onlyif mysql # DIV for integer division: 
query I rowsort label-4452
SELECT 26 DIV 16 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4452
SELECT 26 / 16 AS col2
----
1

query I rowsort
SELECT ALL + 4 * - 55 * - + 89 AS col1
----
19580

onlyif mysql # aggregate syntax: 
query I rowsort label-4454
SELECT + MIN( ALL - 80 )
----
-80

skipif mysql # not compatible
query I rowsort label-4454
SELECT + MIN ( ALL - 80 )
----
-80

query I rowsort
SELECT 85 * - - 77 AS col1
----
6545

query I rowsort
SELECT DISTINCT - 7 + - 28 AS col0
----
-35

query I rowsort
SELECT ALL + + ( - 5 ) + - 34 * - 47 AS col0
----
1593

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4458
SELECT 65 / + - COUNT( * ) * + 40 + + ( - COUNT( * ) ) * 78 / - CAST( NULL AS SIGNED ) * + 93 * - + MIN( DISTINCT + 55 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4458
SELECT 65 / + - COUNT ( * ) * + 40 + + ( - COUNT ( * ) ) * 78 / - CAST ( NULL AS INTEGER ) * + 93 * - + MIN ( DISTINCT + 55 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4459
SELECT + MIN( 32 ) AS col1
----
32

skipif mysql # not compatible
query I rowsort label-4459
SELECT + MIN ( 32 ) AS col1
----
32

query I rowsort
SELECT ALL - - 91 + - ( - 72 ) AS col0
----
163

query I rowsort
SELECT 34 * - 32 AS col0
----
-1088

onlyif mysql # DIV for integer division: 
query I rowsort label-4462
SELECT DISTINCT + ( + + 75 ) + - ( + 15 ) * + - 90 DIV - 2
----
-600

skipif mysql # not compatible
query I rowsort label-4462
SELECT DISTINCT + ( + + 75 ) + - ( + 15 ) * + - 90 / - 2
----
-600

query II rowsort
SELECT DISTINCT ( + 33 ) AS col0, 13 + + 45
----
33
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4464
SELECT DISTINCT + COUNT( * ) + + 10 * - 59 AS col1
----
-589

skipif mysql # not compatible
query I rowsort label-4464
SELECT DISTINCT + COUNT ( * ) + + 10 * - 59 AS col1
----
-589

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4465
SELECT ALL + 61 * - - 4 + - 7 DIV MAX( ALL - 34 ) col0
----
244

skipif mysql # not compatible
query I rowsort label-4465
SELECT ALL + 61 * - - 4 + - 7 / MAX ( ALL - 34 ) col0
----
244

query II rowsort
SELECT DISTINCT 9 + - + 36 AS col0, - 14 * + 29 AS col2
----
-27
-406

onlyif mysql # DIV for integer division: 
query I rowsort label-4467
SELECT - 79 DIV - + 48 col1
----
1

skipif mysql # not compatible
query I rowsort label-4467
SELECT - 79 / - + 48 col1
----
1

query I rowsort
SELECT 72 * + 11
----
792

query I rowsort
SELECT 11 - + 19 AS col2
----
-8

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4470
SELECT DISTINCT - 98 - CASE AVG ( + ( ( + 83 ) ) ) WHEN + - CASE + - 58 WHEN - 81 * - 22 + + 60 / - + NULLIF ( + COUNT( * ), - 6 * + COUNT( * ) ) * 96 THEN 73 WHEN 11 + MIN( 36 ) THEN - 6 + - 83 * + 68 ELSE NULL END / + ( 24 ) + 31 THEN NULL WHEN 66 * 86 + + CAST( NULL AS DECIMAL ) * 57 THEN - 65 * - 78 + 93 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4470
SELECT DISTINCT - 98 - CASE AVG ( + ( ( + 83 ) ) ) WHEN + - CASE + - 58 WHEN - 81 * - 22 + + 60 / - + NULLIF ( + COUNT ( * ), - 6 * + COUNT ( * ) ) * 96 THEN 73 WHEN 11 + MIN ( 36 ) THEN - 6 + - 83 * + 68 ELSE NULL END / + ( 24 ) + 31 THEN NULL WHEN 66 * 86 + + CAST ( NULL AS REAL ) * 57 THEN - 65 * - 78 + 93 END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4471
SELECT ALL CAST( - 49 AS SIGNED ) * + 6 AS col0
----
-294

skipif mysql # not compatible
query I rowsort label-4471
SELECT ALL CAST ( - 49 AS INTEGER ) * + 6 AS col0
----
-294

onlyif mysql # aggregate syntax: 
query I rowsort label-4472
SELECT ( - 77 ) + - - 63 + COUNT( * )
----
-13

skipif mysql # not compatible
query I rowsort label-4472
SELECT ( - 77 ) + - - 63 + COUNT ( * )
----
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-4473
SELECT DISTINCT 59 col0, - MIN( - 46 ) + - + 3
----
59
43

skipif mysql # not compatible
query II rowsort label-4473
SELECT DISTINCT 59 col0, - MIN ( - 46 ) + - + 3
----
59
43

query I rowsort
SELECT DISTINCT 70 * - + 85
----
-5950

onlyif mysql # aggregate syntax: 
query I rowsort label-4475
SELECT ALL 88 * + COUNT( * ) AS col2
----
88

skipif mysql # not compatible
query I rowsort label-4475
SELECT ALL 88 * + COUNT ( * ) AS col2
----
88

query I rowsort
SELECT 30 * - 39 AS col2
----
-1170

query I rowsort
SELECT 65 * - 28
----
-1820

onlyif mysql # DIV for integer division: 
query I rowsort label-4478
SELECT 36 DIV 80 + + - 99 AS col1
----
-99

skipif mysql # not compatible
query I rowsort label-4478
SELECT 36 / 80 + + - 99 AS col1
----
-99

query I rowsort
SELECT ALL - 45 + + 68 AS col1
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-4480
SELECT ALL - 53 DIV 90
----
0

skipif mysql # not compatible
query I rowsort label-4480
SELECT ALL - 53 / 90
----
0

query I rowsort
SELECT DISTINCT + NULLIF ( + - 62, + 90 ) + - 9 + + 47 + + + 18 * - 52
----
-960

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4482
SELECT + - ( + + COUNT( ALL + CAST( - 50 AS SIGNED ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4482
SELECT + - ( + + COUNT ( ALL + CAST ( - 50 AS INTEGER ) ) )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4483
SELECT - 94 DIV COUNT( * )
----
-94

skipif mysql # not compatible
query I rowsort label-4483
SELECT - 94 / COUNT ( * )
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-4484
SELECT 2 * COUNT( * ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-4484
SELECT 2 * COUNT ( * ) AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4485
SELECT + 3 + - COUNT( * ) * + 79
----
-76

skipif mysql # not compatible
query I rowsort label-4485
SELECT + 3 + - COUNT ( * ) * + 79
----
-76

query I rowsort
SELECT ( - - 33 ) + - ( + + 45 )
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-4487
SELECT ALL + COUNT( * ) + 85 - 37 * - 2 - COALESCE ( - + 36, - 99 * - 26, - + 24 ) * + COUNT( * ) + + COALESCE ( 22, - 77 )
----
218

skipif mysql # not compatible
query I rowsort label-4487
SELECT ALL + COUNT ( * ) + 85 - 37 * - 2 - COALESCE ( - + 36, - 99 * - 26, - + 24 ) * + COUNT ( * ) + + COALESCE ( 22, - 77 )
----
218

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4488
SELECT DISTINCT - CASE - - CAST( + 81 AS DECIMAL ) WHEN - 70 + + + 68 THEN 0 WHEN - 15 THEN + 17 + - + ( + AVG ( - - 71 ) ) + - 73 - - 87 WHEN + AVG ( DISTINCT + + 40 ) THEN 39 * 32 END * + 11
----
NULL

skipif mysql # not compatible
query I rowsort label-4488
SELECT DISTINCT - CASE - - CAST ( + 81 AS REAL ) WHEN - 70 + + + 68 THEN 0 WHEN - 15 THEN + 17 + - + ( + AVG ( - - 71 ) ) + - 73 - - 87 WHEN + AVG ( DISTINCT + + 40 ) THEN 39 * 32 END * + 11
----
NULL

query I rowsort
SELECT DISTINCT - + 89 * - 33 col1
----
2937

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4490
SELECT ALL - 68 + 98 + CAST( 67 AS SIGNED ) * - 43 * - 9 AS col0
----
25959

skipif mysql # not compatible
query I rowsort label-4490
SELECT ALL - 68 + 98 + CAST ( 67 AS INTEGER ) * - 43 * - 9 AS col0
----
25959

query I rowsort
SELECT 72 * + 16 AS col2
----
1152

onlyif mysql # aggregate syntax: 
query I rowsort label-4492
SELECT ALL 53 * - + MIN( ALL + 96 ) col2
----
-5088

skipif mysql # not compatible
query I rowsort label-4492
SELECT ALL 53 * - + MIN ( ALL + 96 ) col2
----
-5088

query I rowsort
SELECT 2 + - 65 * - 8 + - 35 * + 65
----
-1753

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4494
SELECT DISTINCT - + 14 + + + CASE - 89 WHEN - - NULLIF ( + + 99, 97 ) + 70 * 12 THEN NULL ELSE + CAST( NULL AS SIGNED ) + - + 92 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4494
SELECT DISTINCT - + 14 + + + CASE - 89 WHEN - - NULLIF ( + + 99, 97 ) + 70 * 12 THEN NULL ELSE + CAST ( NULL AS INTEGER ) + - + 92 END
----
NULL

query II rowsort
SELECT ALL - - 36 AS col1, 92
----
36
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4496
SELECT ALL - 2 - - 16 + SUM( DISTINCT + 97 ) * + + COUNT( * ) / CASE 21 WHEN + - COUNT( * ) + 54 * + ( + - 74 ) / - + 71 THEN + CAST( - - 45 AS SIGNED ) * 68 * ( AVG ( + 94 ) ) + - MIN( DISTINCT 91 ) WHEN + 51 * 6 THEN NULL END + + 77
----
NULL

skipif mysql # not compatible
query I rowsort label-4496
SELECT ALL - 2 - - 16 + SUM ( DISTINCT + 97 ) * + + COUNT ( * ) / CASE 21 WHEN + - COUNT ( * ) + 54 * + ( + - 74 ) / - + 71 THEN + CAST ( - - 45 AS INTEGER ) * 68 * ( AVG ( + 94 ) ) + - MIN ( DISTINCT 91 ) WHEN + 51 * 6 THEN NULL END + + 77
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4497
SELECT + COALESCE ( - + 26, - SUM( 78 ) )
----
-26

skipif mysql # not compatible
query I rowsort label-4497
SELECT + COALESCE ( - + 26, - SUM ( 78 ) )
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-4498
SELECT ALL - ( - MAX( 87 ) )
----
87

skipif mysql # not compatible
query I rowsort label-4498
SELECT ALL - ( - MAX ( 87 ) )
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4499
SELECT - - 52 * + 65 + - 24 + + ( - MAX( ALL + - 73 ) ) + - CAST( 19 AS SIGNED ) AS col1
----
3410

skipif mysql # not compatible
query I rowsort label-4499
SELECT - - 52 * + 65 + - 24 + + ( - MAX ( ALL + - 73 ) ) + - CAST ( 19 AS INTEGER ) AS col1
----
3410

query I rowsort
SELECT DISTINCT + 99 - 68 + + + 49 + 41 + + 6 * - ( - - 66 ) * + 66 AS col0
----
-26015

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4501
SELECT - 82, + MAX( 22 ) DIV + - 90 DIV - COUNT( * ) AS col1
----
-82
0

skipif mysql # not compatible
query II rowsort label-4501
SELECT - 82, + MAX ( 22 ) / + - 90 / - COUNT ( * ) AS col1
----
-82
0

query I rowsort
SELECT DISTINCT - 93 * - 84
----
7812

query I rowsort
SELECT 11 + - 9 AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4504
SELECT DISTINCT MIN( 35 )
----
35

skipif mysql # not compatible
query I rowsort label-4504
SELECT DISTINCT MIN ( 35 )
----
35

query I rowsort
SELECT 21 + - 94
----
-73

query I rowsort
SELECT DISTINCT - 94 * + - 19 AS col2
----
1786

onlyif mysql # aggregate syntax: 
query I rowsort label-4507
SELECT ALL SUM( ALL + + ( + - 24 ) )
----
-24

skipif mysql # not compatible
query I rowsort label-4507
SELECT ALL SUM ( ALL + + ( + - 24 ) )
----
-24

onlyif mysql # DIV for integer division: 
query II rowsort label-4508
SELECT 40 DIV 1 AS col0, ( - 70 ) * 77 AS col1
----
40
-5390

skipif mysql # not compatible
query II rowsort label-4508
SELECT 40 / 1 AS col0, ( - 70 ) * 77 AS col1
----
40
-5390

onlyif mysql # aggregate syntax: 
query I rowsort label-4509
SELECT ALL + 76 * - ( + MAX( + + 89 ) ) AS col0
----
-6764

skipif mysql # not compatible
query I rowsort label-4509
SELECT ALL + 76 * - ( + MAX ( + + 89 ) ) AS col0
----
-6764

query I rowsort
SELECT 11 * - ( NULLIF ( - ( 29 ), - + 34 ) )
----
319

query I rowsort
SELECT 49 * - 82
----
-4018

query I rowsort
SELECT + 23 + + 76
----
99

query I rowsort
SELECT + 76 * 11 * + + 49
----
40964

onlyif mysql # aggregate syntax: 
query I rowsort label-4514
SELECT ALL 82 + - MIN( DISTINCT - 24 ) AS col0
----
106

skipif mysql # not compatible
query I rowsort label-4514
SELECT ALL 82 + - MIN ( DISTINCT - 24 ) AS col0
----
106

query II rowsort
SELECT ALL COALESCE ( 79, + - 4 + + - 97 ), 19 + - 2 AS col2
----
79
17

query I rowsort
SELECT ALL CASE - 48 WHEN + - 91 + 69 + + - 78 * + + 48 THEN - - 42 WHEN - 75 THEN 1 ELSE - 14 END
----
-14

onlyif mysql # aggregate syntax: 
query II rowsort label-4517
SELECT 64 AS col2, + ( + + COUNT( * ) ) * - 72 - + 27 col0
----
64
-99

skipif mysql # not compatible
query II rowsort label-4517
SELECT 64 AS col2, + ( + + COUNT ( * ) ) * - 72 - + 27 col0
----
64
-99

query I rowsort
SELECT ALL 34 * - 2
----
-68

query I rowsort
SELECT + 40 * 32 AS col2
----
1280

onlyif mysql # aggregate syntax: 
query I rowsort label-4520
SELECT + COUNT( ALL 8 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4520
SELECT + COUNT ( ALL 8 ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4521
SELECT - - 57 DIV 5 - + 33
----
-22

skipif mysql # not compatible
query I rowsort label-4521
SELECT - - 57 / 5 - + 33
----
-22

onlyif mysql # DIV for integer division: 
query II rowsort label-4522
SELECT ALL + 58 AS col1, CASE + - 22 WHEN + 58 DIV + 54 THEN - 96 DIV + - 14 ELSE - 84 END * - - 17 + 10 + - + 49 + 47 + 63 * - 18 + + 1 * + + 26
----
58
-2528

skipif mysql # not compatible
query II rowsort label-4522
SELECT ALL + 58 AS col1, CASE + - 22 WHEN + 58 / + 54 THEN - 96 / + - 14 ELSE - 84 END * - - 17 + 10 + - + 49 + 47 + 63 * - 18 + + 1 * + + 26
----
58
-2528

onlyif mysql # aggregate syntax: 
query I rowsort label-4523
SELECT + COUNT( * ) * - + 11 AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-4523
SELECT + COUNT ( * ) * - + 11 AS col1
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-4524
SELECT ALL COUNT( * ) * 59 + + 89 + + 92 AS col2
----
240

skipif mysql # not compatible
query I rowsort label-4524
SELECT ALL COUNT ( * ) * 59 + + 89 + + 92 AS col2
----
240

query I rowsort
SELECT + + 71 * - 22 - 7 * - 16 AS col1
----
-1450

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4526
SELECT DISTINCT + + MIN( DISTINCT - + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4526
SELECT DISTINCT + + MIN ( DISTINCT - + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT + 81 - + 91
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-4528
SELECT ALL + MAX( + 78 )
----
78

skipif mysql # not compatible
query I rowsort label-4528
SELECT ALL + MAX ( + 78 )
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4529
SELECT DISTINCT + + COUNT( ALL + 98 )
----
1

skipif mysql # not compatible
query I rowsort label-4529
SELECT DISTINCT + + COUNT ( ALL + 98 )
----
1

query I rowsort
SELECT - - 25 * - 12 + - 98 - 47 col1
----
-445

query I rowsort
SELECT DISTINCT + 14 * + 37 AS col1
----
518

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4532
SELECT - 28 * + - 26 * + 14 - 9 + 13 * CAST( NULL AS SIGNED ) + - + 18
----
NULL

skipif mysql # not compatible
query I rowsort label-4532
SELECT - 28 * + - 26 * + 14 - 9 + 13 * CAST ( NULL AS INTEGER ) + - + 18
----
NULL

query I rowsort
SELECT + + 81 + + - 14 AS col0
----
67

query II rowsort
SELECT + 70 * - 9 AS col1, ( 16 )
----
-630
16

query I rowsort
SELECT DISTINCT + - 7 * + 34 AS col0
----
-238

query I rowsort
SELECT ALL - 79 * + 36
----
-2844

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4537
SELECT ALL CASE - 56 WHEN - 47 * - 13 THEN NULL WHEN - 35 * - NULLIF ( - 39, - 5 + + ( 64 ) ) * - NULLIF ( + 29, - 8 + - ( + + 36 ) ) + + - 96 + - CASE + COALESCE ( 41, COUNT( * ) * 20, 79 * 40 + 9 ) WHEN COUNT( * ) THEN ( + 82 ) ELSE + ( + CAST( 69 AS SIGNED ) ) END THEN + CAST( 43 AS SIGNED ) END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4537
SELECT ALL CASE - 56 WHEN - 47 * - 13 THEN NULL WHEN - 35 * - NULLIF ( - 39, - 5 + + ( 64 ) ) * - NULLIF ( + 29, - 8 + - ( + + 36 ) ) + + - 96 + - CASE + COALESCE ( 41, COUNT ( * ) * 20, 79 * 40 + 9 ) WHEN COUNT ( * ) THEN ( + 82 ) ELSE + ( + CAST ( 69 AS INTEGER ) ) END THEN + CAST ( 43 AS INTEGER ) END col2
----
NULL

query I rowsort
SELECT - 40 * 95 + + ( - - 16 ) AS col1
----
-3784

onlyif mysql # aggregate syntax: 
query I rowsort label-4539
SELECT - 36 + + ( ( - + COUNT( * ) ) )
----
-37

skipif mysql # not compatible
query I rowsort label-4539
SELECT - 36 + + ( ( - + COUNT ( * ) ) )
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4540
SELECT ALL ( 40 ) AS col2, ( - COUNT( * ) ) + 51 + + CAST( - 88 AS SIGNED ) - 68 + + - COUNT( * ) + + 48 * - 99 * + 13 * 74 - + COUNT( 17 ) * CAST( - - NULLIF ( - ( ( ( - 57 ) ) ), - 13 ) AS SIGNED ) + + 78 * - 53 * 75 * COUNT( * ) AS col2
----
40
-4881638

skipif mysql # not compatible
query II rowsort label-4540
SELECT ALL ( 40 ) AS col2, ( - COUNT ( * ) ) + 51 + + CAST ( - 88 AS INTEGER ) - 68 + + - COUNT ( * ) + + 48 * - 99 * + 13 * 74 - + COUNT ( 17 ) * CAST ( - - NULLIF ( - ( ( ( - 57 ) ) ), - 13 ) AS INTEGER ) + + 78 * - 53 * 75 * COUNT ( * ) AS col2
----
40
-4881638

query I rowsort
SELECT - 54 * 3 col2
----
-162

onlyif mysql # aggregate syntax: 
query I rowsort label-4542
SELECT ALL - COUNT( * ) * - + 73
----
73

skipif mysql # not compatible
query I rowsort label-4542
SELECT ALL - COUNT ( * ) * - + 73
----
73

query I rowsort
SELECT DISTINCT ( - 75 ) AS col2
----
-75

query I rowsort
SELECT + 42 + - - 75 AS col0
----
117

onlyif mysql # DIV for integer division: 
query II rowsort label-4545
SELECT - 18 * 1 DIV + - 5 AS col1, 16 - - - 82 + - ( 10 ) AS col2
----
3
-76

skipif mysql # not compatible
query II rowsort label-4545
SELECT - 18 * 1 / + - 5 AS col1, 16 - - - 82 + - ( 10 ) AS col2
----
3
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-4546
SELECT - 82 + + 68 + - - COUNT( * ) * - - COUNT( * ) AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-4546
SELECT - 82 + + 68 + - - COUNT ( * ) * - - COUNT ( * ) AS col0
----
-13

query I rowsort
SELECT ALL ( + + 63 ) col0
----
63

query I rowsort
SELECT ALL - 8 + + 46 AS col1
----
38

query I rowsort
SELECT - 12 - 7 * + - 64
----
436

onlyif mysql # aggregate syntax: 
query II rowsort label-4550
SELECT DISTINCT + 36 * + 21 AS col2, COUNT( * ) * - 98 * - 79 AS col0
----
756
7742

skipif mysql # not compatible
query II rowsort label-4550
SELECT DISTINCT + 36 * + 21 AS col2, COUNT ( * ) * - 98 * - 79 AS col0
----
756
7742

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4551
SELECT DISTINCT + 63 + - CAST( NULL AS SIGNED ), - 80 AS col0
----
NULL
-80

skipif mysql # not compatible
query II rowsort label-4551
SELECT DISTINCT + 63 + - CAST ( NULL AS INTEGER ), - 80 AS col0
----
NULL
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-4552
SELECT ALL 76 + - MIN( + 21 ) + + + 26 AS col1
----
81

skipif mysql # not compatible
query I rowsort label-4552
SELECT ALL 76 + - MIN ( + 21 ) + + + 26 AS col1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4553
SELECT - 28 + MIN( - 88 )
----
-116

skipif mysql # not compatible
query I rowsort label-4553
SELECT - 28 + MIN ( - 88 )
----
-116

onlyif mysql # aggregate syntax: 
query I rowsort label-4554
SELECT + 34 - + COUNT( * ) + + 10
----
43

skipif mysql # not compatible
query I rowsort label-4554
SELECT + 34 - + COUNT ( * ) + + 10
----
43

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4555
SELECT - CAST( NULL AS DECIMAL ) + - - NULLIF ( - + COUNT( * ), - 79 ) + 41 * 33 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4555
SELECT - CAST ( NULL AS REAL ) + - - NULLIF ( - + COUNT ( * ), - 79 ) + 41 * 33 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4556
SELECT DISTINCT - 59 DIV - NULLIF ( 52, 63 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4556
SELECT DISTINCT - 59 / - NULLIF ( 52, 63 ) AS col2
----
1

query I rowsort
SELECT - - 20 + 43 col2
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4558
SELECT ALL 71 * + COUNT( * ) + - - COUNT( * ) + + - 98
----
-26

skipif mysql # not compatible
query I rowsort label-4558
SELECT ALL 71 * + COUNT ( * ) + - - COUNT ( * ) + + - 98
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-4559
SELECT - 1 * 31 + COUNT( * )
----
-30

skipif mysql # not compatible
query I rowsort label-4559
SELECT - 1 * 31 + COUNT ( * )
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4560
SELECT DISTINCT CAST( + 5 AS SIGNED ) * + CASE 80 WHEN 64 * - 2 + - 91 THEN + 67 * COUNT( ALL NULLIF ( CAST( + + 91 AS DECIMAL ), 58 ) ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4560
SELECT DISTINCT CAST ( + 5 AS INTEGER ) * + CASE 80 WHEN 64 * - 2 + - 91 THEN + 67 * COUNT ( ALL NULLIF ( CAST ( + + 91 AS REAL ), 58 ) ) END AS col2
----
NULL

query I rowsort
SELECT - - 1 * - - 36 + 57
----
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4562
SELECT + - COUNT( * ) DIV + 69 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4562
SELECT + - COUNT ( * ) / + 69 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4563
SELECT - - 13 * - + MAX( DISTINCT + 69 )
----
-897

skipif mysql # not compatible
query I rowsort label-4563
SELECT - - 13 * - + MAX ( DISTINCT + 69 )
----
-897

query I rowsort
SELECT + 91 + + 19 AS col0
----
110

query II rowsort
SELECT DISTINCT + 56 AS col0, 78 AS col2
----
56
78

onlyif mysql # DIV for integer division: 
query I rowsort label-4566
SELECT + 54 DIV + 67 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4566
SELECT + 54 / + 67 AS col1
----
0

query I rowsort
SELECT DISTINCT + 39 * + 21 col2
----
819

query I rowsort
SELECT ( 80 ) - + - 2
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4569
SELECT ALL CAST( NULL AS SIGNED ) / - 81 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4569
SELECT ALL CAST ( NULL AS INTEGER ) / - 81 AS col0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4570
SELECT 56 + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4570
SELECT 56 + - CAST ( NULL AS REAL )
----
NULL

query II rowsort
SELECT - 48, - 34 AS col0
----
-48
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4572
SELECT 65 + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4572
SELECT 65 + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL + 76 + 23 * + - 54
----
-1166

query I rowsort
SELECT ALL - 22 + 10 * + 98
----
958

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4575
SELECT DISTINCT 9 AS col1, 2 * + CAST( - CASE - + 90 WHEN + 20 + 44 + 3 + - 57 THEN 14 * + ( MIN( - 8 ) ) WHEN + + 22 THEN - NULLIF ( - 77, + 12 ) WHEN + + NULLIF ( + 15, 63 * 73 ) * - 83 THEN 13 * + COUNT( DISTINCT COALESCE ( 59, 7 * + ( + 11 ) ) ) ELSE NULL END AS SIGNED ) + - 91 / + 97 AS col0
----
9
NULL

skipif mysql # not compatible
query II rowsort label-4575
SELECT DISTINCT 9 AS col1, 2 * + CAST ( - CASE - + 90 WHEN + 20 + 44 + 3 + - 57 THEN 14 * + ( MIN ( - 8 ) ) WHEN + + 22 THEN - NULLIF ( - 77, + 12 ) WHEN + + NULLIF ( + 15, 63 * 73 ) * - 83 THEN 13 * + COUNT ( DISTINCT COALESCE ( 59, 7 * + ( + 11 ) ) ) ELSE NULL END AS INTEGER ) + - 91 / + 97 AS col0
----
9
NULL

query I rowsort
SELECT ALL - 77 + + + 76 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4577
SELECT 81 + - - COUNT( * ) AS col0
----
82

skipif mysql # not compatible
query I rowsort label-4577
SELECT 81 + - - COUNT ( * ) AS col0
----
82

query I rowsort
SELECT DISTINCT + 41 + - 13 AS col1
----
28

query I rowsort
SELECT 90 + + 26 - - - 42
----
74

query I rowsort
SELECT - + NULLIF ( 91, - 79 ) AS col2
----
-91

query I rowsort
SELECT + 23 * 29 AS col2
----
667

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4582
SELECT ALL + CASE WHEN NULL IS NULL THEN 12 WHEN NOT + 62 IS NULL THEN NULL ELSE + CAST( NULL AS SIGNED ) END AS col0
----
12

skipif mysql # not compatible
query I rowsort label-4582
SELECT ALL + CASE WHEN NULL IS NULL THEN 12 WHEN NOT + 62 IS NULL THEN NULL ELSE + CAST ( NULL AS INTEGER ) END AS col0
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4583
SELECT - - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4583
SELECT - - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) col0
----
NULL

query I rowsort
SELECT ALL - ( + 53 ) AS col1
----
-53

query II rowsort
SELECT ALL - 57, + 24 AS col2
----
-57
24

query I rowsort
SELECT DISTINCT + 78 * 88 AS col0
----
6864

query I rowsort
SELECT - 16 + 13 AS col0
----
-3

query I rowsort
SELECT - 30 + 93 AS col2
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4589
SELECT + COUNT( * ) * 51 AS col0
----
51

skipif mysql # not compatible
query I rowsort label-4589
SELECT + COUNT ( * ) * 51 AS col0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4590
SELECT MIN( DISTINCT - - 27 ) * 88 * + COUNT( * )
----
2376

skipif mysql # not compatible
query I rowsort label-4590
SELECT MIN ( DISTINCT - - 27 ) * 88 * + COUNT ( * )
----
2376

query I rowsort
SELECT + 13 * + + 3
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4592
SELECT - 57 * + 79 * 9 - + + MAX( DISTINCT + 75 )
----
-40602

skipif mysql # not compatible
query I rowsort label-4592
SELECT - 57 * + 79 * 9 - + + MAX ( DISTINCT + 75 )
----
-40602

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4593
SELECT - 22 DIV 90 + - 85, COUNT( * ) AS col2
----
-85
1

skipif mysql # not compatible
query II rowsort label-4593
SELECT - 22 / 90 + - 85, COUNT ( * ) AS col2
----
-85
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4594
SELECT ALL - 85, CAST( NULL AS SIGNED ) AS col2
----
-85
NULL

skipif mysql # not compatible
query II rowsort label-4594
SELECT ALL - 85, CAST ( NULL AS INTEGER ) AS col2
----
-85
NULL

query I rowsort
SELECT 3 * + - 91
----
-273

onlyif mysql # aggregate syntax: 
query I rowsort label-4596
SELECT ALL 25 * - + NULLIF ( 22, + COALESCE ( - + 71, - COUNT( * ) ) )
----
-550

skipif mysql # not compatible
query I rowsort label-4596
SELECT ALL 25 * - + NULLIF ( 22, + COALESCE ( - + 71, - COUNT ( * ) ) )
----
-550

onlyif mysql # aggregate syntax: 
query I rowsort label-4597
SELECT COUNT( * ) * - 96 / + 28 * + CASE + 5 WHEN - 57 THEN - 17 WHEN - 42 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4597
SELECT COUNT ( * ) * - 96 / + 28 * + CASE + 5 WHEN - 57 THEN - 17 WHEN - 42 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4598
SELECT DISTINCT CAST( - 84 AS SIGNED ) + MAX( DISTINCT + 35 ), + ( - 22 ) AS col0
----
-49
-22

skipif mysql # not compatible
query II rowsort label-4598
SELECT DISTINCT CAST ( - 84 AS INTEGER ) + MAX ( DISTINCT + 35 ), + ( - 22 ) AS col0
----
-49
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4599
SELECT + CAST( 51 AS SIGNED ) * NULLIF ( 38, MAX( DISTINCT - 17 ) ) - - 61 col1, 64 + - CAST( NULL AS SIGNED ) - + 30 AS col1
----
1999
NULL

skipif mysql # not compatible
query II rowsort label-4599
SELECT + CAST ( 51 AS INTEGER ) * NULLIF ( 38, MAX ( DISTINCT - 17 ) ) - - 61 col1, 64 + - CAST ( NULL AS INTEGER ) - + 30 AS col1
----
1999
NULL

query I rowsort
SELECT ALL 6 + - 38 col2
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4601
SELECT ALL - CASE - - 23 WHEN - CAST( NULL AS SIGNED ) THEN + - 71 WHEN - COUNT( * ) THEN NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4601
SELECT ALL - CASE - - 23 WHEN - CAST ( NULL AS INTEGER ) THEN + - 71 WHEN - COUNT ( * ) THEN NULL END col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4602
SELECT DISTINCT + 63 + - 85 * MIN( DISTINCT + + CAST( NULL AS DECIMAL ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4602
SELECT DISTINCT + 63 + - 85 * MIN ( DISTINCT + + CAST ( NULL AS REAL ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4603
SELECT 90 * + - COUNT( * ) + 31
----
-59

skipif mysql # not compatible
query I rowsort label-4603
SELECT 90 * + - COUNT ( * ) + 31
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-4604
SELECT MAX( + 50 ) + - 24
----
26

skipif mysql # not compatible
query I rowsort label-4604
SELECT MAX ( + 50 ) + - 24
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-4605
SELECT DISTINCT 94 DIV - 39 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-4605
SELECT DISTINCT 94 / - 39 AS col1
----
-2

query II rowsort
SELECT ALL - 91 + 48 AS col2, - 95 AS col0
----
-43
-95

query I rowsort
SELECT 74 * 9
----
666

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4608
SELECT ALL 23 / CASE 74 WHEN - - 11 THEN - 46 - CASE - NULLIF ( 8, COUNT( * ) ) WHEN - 42 THEN - 24 * + 79 WHEN - 26 + 74 + - 82 THEN NULL END WHEN - ( + - CASE + ( - + 48 ) WHEN CAST( NULL AS SIGNED ) THEN NULL WHEN 78 * AVG ( ALL - 88 * - 54 ) THEN NULL WHEN 75 THEN COALESCE ( + 7, + 19 + COUNT( * ), 12 + + 42 ) + ( AVG ( ALL 48 ) ) END ) THEN 68 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4608
SELECT ALL 23 / CASE 74 WHEN - - 11 THEN - 46 - CASE - NULLIF ( 8, COUNT ( * ) ) WHEN - 42 THEN - 24 * + 79 WHEN - 26 + 74 + - 82 THEN NULL END WHEN - ( + - CASE + ( - + 48 ) WHEN CAST ( NULL AS INTEGER ) THEN NULL WHEN 78 * AVG ( ALL - 88 * - 54 ) THEN NULL WHEN 75 THEN COALESCE ( + 7, + 19 + COUNT ( * ), 12 + + 42 ) + ( AVG ( ALL 48 ) ) END ) THEN 68 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4609
SELECT 81 DIV 37 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-4609
SELECT 81 / 37 AS col1
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-4610
SELECT - COUNT( DISTINCT 24 ) AS col0, 23 * - ( + - 88 )
----
-1
2024

skipif mysql # not compatible
query II rowsort label-4610
SELECT - COUNT ( DISTINCT 24 ) AS col0, 23 * - ( + - 88 )
----
-1
2024

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4611
SELECT CASE + COUNT( - 75 ) WHEN 90 THEN NULL WHEN - 22 + 31 THEN - 64 * + + CAST( NULL AS SIGNED ) * 6 * + 39 / - 15 * - 82 * 10 - - 99 END + 85 + - + 24 * + COUNT( * ) * - 47 * + 36 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4611
SELECT CASE + COUNT ( - 75 ) WHEN 90 THEN NULL WHEN - 22 + 31 THEN - 64 * + + CAST ( NULL AS INTEGER ) * 6 * + 39 / - 15 * - 82 * 10 - - 99 END + 85 + - + 24 * + COUNT ( * ) * - 47 * + 36 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4612
SELECT ALL 17 - - 3 * - 11 + - + CASE 79 WHEN - 10 * 68 + - - 6 THEN - 53 * COUNT( * ) END + - 13 + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4612
SELECT ALL 17 - - 3 * - 11 + - + CASE 79 WHEN - 10 * 68 + - - 6 THEN - 53 * COUNT ( * ) END + - 13 + + COUNT ( * )
----
NULL

query I rowsort
SELECT 71 + 57 * + 86 AS col2
----
4973

onlyif mysql # aggregate syntax: 
query II rowsort label-4614
SELECT DISTINCT + - COUNT( + 98 ) * + 87 * 21 AS col1, 5 col1
----
-1827
5

skipif mysql # not compatible
query II rowsort label-4614
SELECT DISTINCT + - COUNT ( + 98 ) * + 87 * 21 AS col1, 5 col1
----
-1827
5

query I rowsort
SELECT ALL 8 * 18
----
144

query I rowsort
SELECT + 70 - - 17
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4617
SELECT + 14 * - COUNT( * ) AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-4617
SELECT + 14 * - COUNT ( * ) AS col2
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4618
SELECT ALL CAST( + AVG ( ALL + 73 ) AS SIGNED )
----
73

skipif mysql # not compatible
query I rowsort label-4618
SELECT ALL CAST ( + AVG ( ALL + 73 ) AS INTEGER )
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-4619
SELECT - COALESCE ( - 99, 87 + + 65 ) + - + COUNT( * )
----
98

skipif mysql # not compatible
query I rowsort label-4619
SELECT - COALESCE ( - 99, 87 + + 65 ) + - + COUNT ( * )
----
98

query I rowsort
SELECT DISTINCT - ( + + ( - 64 ) ) AS col0
----
64

onlyif mysql # aggregate syntax: 
query II rowsort label-4621
SELECT ALL - 91 * - 69 + - SUM( DISTINCT - 81 ) AS col2, + 33 + + MIN( 17 ) AS col2
----
6360
50

skipif mysql # not compatible
query II rowsort label-4621
SELECT ALL - 91 * - 69 + - SUM ( DISTINCT - 81 ) AS col2, + 33 + + MIN ( 17 ) AS col2
----
6360
50

query I rowsort
SELECT ALL - - 14 * - - 80 + - 52 AS col0
----
1068

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4623
SELECT - + 64 * 79 DIV - ( - NULLIF ( - 30, 12 + + - 49 ) ) + + COUNT( * ) AS col2
----
169

skipif mysql # not compatible
query I rowsort label-4623
SELECT - + 64 * 79 / - ( - NULLIF ( - 30, 12 + + - 49 ) ) + + COUNT ( * ) AS col2
----
169

onlyif mysql # aggregate syntax: 
query I rowsort label-4624
SELECT - MIN( DISTINCT - ( + 95 ) ) * - + 12 AS col2
----
-1140

skipif mysql # not compatible
query I rowsort label-4624
SELECT - MIN ( DISTINCT - ( + 95 ) ) * - + 12 AS col2
----
-1140

onlyif mysql # aggregate syntax: 
query I rowsort label-4625
SELECT - COUNT( * ) + - - 19 AS col1
----
18

skipif mysql # not compatible
query I rowsort label-4625
SELECT - COUNT ( * ) + - - 19 AS col1
----
18

query I rowsort
SELECT ALL + 42 * + 55 + + 24 * 29
----
3006

onlyif mysql # aggregate syntax: 
query I rowsort label-4627
SELECT MAX( ALL - 6 )
----
-6

skipif mysql # not compatible
query I rowsort label-4627
SELECT MAX ( ALL - 6 )
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4628
SELECT ALL COUNT( * ) * - - 29 + + 90 AS col2
----
119

skipif mysql # not compatible
query I rowsort label-4628
SELECT ALL COUNT ( * ) * - - 29 + + 90 AS col2
----
119

onlyif mysql # DIV for integer division: 
query I rowsort label-4629
SELECT DISTINCT - 4 DIV - 21 * 72 col1
----
0

skipif mysql # not compatible
query I rowsort label-4629
SELECT DISTINCT - 4 / - 21 * 72 col1
----
0

query I rowsort
SELECT - 65 + + 47
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-4631
SELECT - ( + MAX( + 81 ) ) * 42 AS col2
----
-3402

skipif mysql # not compatible
query I rowsort label-4631
SELECT - ( + MAX ( + 81 ) ) * 42 AS col2
----
-3402

query I rowsort
SELECT ALL - 59 + 98
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4633
SELECT DISTINCT + COUNT( CAST( - 71 AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-4633
SELECT DISTINCT + COUNT ( CAST ( - 71 AS INTEGER ) )
----
1

query I rowsort
SELECT DISTINCT 53 + + 0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-4635
SELECT + SUM( + + 9 ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-4635
SELECT + SUM ( + + 9 ) AS col1
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4636
SELECT ALL + NULLIF ( + + 38, - CAST( NULL AS SIGNED ) ), COUNT( - - ( + 47 ) ) DIV + 45 + ( + 51 ) AS col1
----
38
51

skipif mysql # not compatible
query II rowsort label-4636
SELECT ALL + NULLIF ( + + 38, - CAST ( NULL AS INTEGER ) ), COUNT ( - - ( + 47 ) ) / + 45 + ( + 51 ) AS col1
----
38
51

query I rowsort
SELECT - 88 - + 38 * 83 + NULLIF ( - 73, - 63 ) + + 6 AS col1
----
-3309

query I rowsort
SELECT + 94 * + - 74
----
-6956

query I rowsort
SELECT + 11 + - + 54
----
-43

query I rowsort
SELECT DISTINCT 17 * - 61 AS col1
----
-1037

query I rowsort
SELECT + 58 * - - 4
----
232

query II rowsort
SELECT ALL 23, ( + + 8 ) AS col2
----
23
8

query I rowsort
SELECT ALL - 15 * - + 13 AS col0
----
195

query I rowsort
SELECT + COALESCE ( + 43, - 0 * + 74 ) AS col0
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4645
SELECT ALL - ( CAST( NULL AS SIGNED ) ) / - 2 * + 28
----
NULL

skipif mysql # not compatible
query I rowsort label-4645
SELECT ALL - ( CAST ( NULL AS INTEGER ) ) / - 2 * + 28
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4646
SELECT + 41 + - - MIN( - 69 ) AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-4646
SELECT + 41 + - - MIN ( - 69 ) AS col2
----
-28

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4647
SELECT + - CAST( 42 AS SIGNED ) * + 4 DIV + 4 AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-4647
SELECT + - CAST ( 42 AS INTEGER ) * + 4 / + 4 AS col1
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-4648
SELECT ALL COUNT( * ) * + 14
----
14

skipif mysql # not compatible
query I rowsort label-4648
SELECT ALL COUNT ( * ) * + 14
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4649
SELECT ALL + CASE + + 15 WHEN COUNT( * ) THEN + COUNT( 28 ) ELSE COUNT( * ) END AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4649
SELECT ALL + CASE + + 15 WHEN COUNT ( * ) THEN + COUNT ( 28 ) ELSE COUNT ( * ) END AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4650
SELECT + 12 * MAX( 26 ) * + 52
----
16224

skipif mysql # not compatible
query I rowsort label-4650
SELECT + 12 * MAX ( 26 ) * + 52
----
16224

onlyif mysql # aggregate syntax: 
query I rowsort label-4651
SELECT DISTINCT - 53 * COUNT( * )
----
-53

skipif mysql # not compatible
query I rowsort label-4651
SELECT DISTINCT - 53 * COUNT ( * )
----
-53

query I rowsort
SELECT NULLIF ( + 18, + + ( + 85 ) )
----
18

query I rowsort
SELECT + 34 * - ( 10 ) AS col1
----
-340

query I rowsort
SELECT ALL + 26 * + 53 AS col1
----
1378

onlyif mysql # aggregate syntax: 
query I rowsort label-4655
SELECT + - 57 * + COUNT( * ) AS col0
----
-57

skipif mysql # not compatible
query I rowsort label-4655
SELECT + - 57 * + COUNT ( * ) AS col0
----
-57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4656
SELECT DISTINCT + 81 DIV + - COUNT( * ) + + COUNT( * ) + + ( - 8 ) AS col1
----
-88

skipif mysql # not compatible
query I rowsort label-4656
SELECT DISTINCT + 81 / + - COUNT ( * ) + + COUNT ( * ) + + ( - 8 ) AS col1
----
-88

query I rowsort
SELECT + - 96 + 88
----
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4658
SELECT - - 73 * 83 * + + 35 + COALESCE ( COUNT( * ), COUNT( * ) ) DIV ( - 91 ) col2
----
212065

skipif mysql # not compatible
query I rowsort label-4658
SELECT - - 73 * 83 * + + 35 + COALESCE ( COUNT ( * ), COUNT ( * ) ) / ( - 91 ) col2
----
212065

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4659
SELECT DISTINCT + 98, 10 + + 95 + - COUNT( * ) DIV + + 18 col0
----
98
105

skipif mysql # not compatible
query II rowsort label-4659
SELECT DISTINCT + 98, 10 + + 95 + - COUNT ( * ) / + + 18 col0
----
98
105

query I rowsort
SELECT - 60 * - 17 AS col1
----
1020

onlyif mysql # aggregate syntax: 
query I rowsort label-4661
SELECT MIN( DISTINCT - - 22 ) * - - 22 + + COUNT( * ) - - 97 AS col2
----
582

skipif mysql # not compatible
query I rowsort label-4661
SELECT MIN ( DISTINCT - - 22 ) * - - 22 + + COUNT ( * ) - - 97 AS col2
----
582

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4662
SELECT ALL - 17 * + + CAST( CAST( CAST( + 76 AS SIGNED ) AS SIGNED ) AS SIGNED ) AS col0
----
-1292

skipif mysql # not compatible
query I rowsort label-4662
SELECT ALL - 17 * + + CAST ( CAST ( CAST ( + 76 AS INTEGER ) AS INTEGER ) AS INTEGER ) AS col0
----
-1292

onlyif mysql # aggregate syntax: 
query I rowsort label-4663
SELECT ALL + NULLIF ( ( ( - - 80 ) ), - ( - - 38 ) ) * - 70 * + + COUNT( * ) * + + CASE NULLIF ( - 86, + + 17 + + - 21 ) WHEN + 68 THEN - 60 ELSE NULL END + + 11 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4663
SELECT ALL + NULLIF ( ( ( - - 80 ) ), - ( - - 38 ) ) * - 70 * + + COUNT ( * ) * + + CASE NULLIF ( - 86, + + 17 + + - 21 ) WHEN + 68 THEN - 60 ELSE NULL END + + 11 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4664
SELECT ALL - 0 * SUM( + ( - 14 ) )
----
0

skipif mysql # not compatible
query I rowsort label-4664
SELECT ALL - 0 * SUM ( + ( - 14 ) )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4665
SELECT ALL - 91 * + + ( CAST( 36 AS SIGNED ) ) AS col2
----
-3276

skipif mysql # not compatible
query I rowsort label-4665
SELECT ALL - 91 * + + ( CAST ( 36 AS INTEGER ) ) AS col2
----
-3276

onlyif mysql # aggregate syntax: 
query I rowsort label-4666
SELECT - COUNT( * ) * + ( 46 ) * 98 AS col2
----
-4508

skipif mysql # not compatible
query I rowsort label-4666
SELECT - COUNT ( * ) * + ( 46 ) * 98 AS col2
----
-4508

query I rowsort
SELECT ALL - 18 * 29
----
-522

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4668
SELECT NULLIF ( CASE + - 3 WHEN COUNT( * ) THEN + 21 ELSE CASE + 44 WHEN + - 29 * - - 24 - 32 THEN + 50 + + 75 * 95 + CAST( - 15 AS SIGNED ) / + + 64 WHEN - 1 THEN NULL ELSE NULL END END, + 22 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4668
SELECT NULLIF ( CASE + - 3 WHEN COUNT ( * ) THEN + 21 ELSE CASE + 44 WHEN + - 29 * - - 24 - 32 THEN + 50 + + 75 * 95 + CAST ( - 15 AS INTEGER ) / + + 64 WHEN - 1 THEN NULL ELSE NULL END END, + 22 ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 0 * + 4
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4670
SELECT - 88 + 74 * + - CASE - 50 WHEN - - AVG ( ALL - ( + - 28 ) ) + + 79 THEN CASE + CAST( NULL AS SIGNED ) WHEN - - AVG ( 46 ) + 69 THEN NULL WHEN 61 THEN + CAST( NULL AS SIGNED ) * - COUNT( * ) WHEN - ( + + 29 ) THEN CAST( NULL AS SIGNED ) END / - - 97 + 92 + + 77 * + 49 WHEN + CASE + 44 WHEN COUNT( * ) THEN + 84 WHEN + 36 * 62 THEN NULL ELSE 67 - - 83 END THEN ( + 82 ) + 44 * - 64 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4670
SELECT - 88 + 74 * + - CASE - 50 WHEN - - AVG ( ALL - ( + - 28 ) ) + + 79 THEN CASE + CAST ( NULL AS INTEGER ) WHEN - - AVG ( 46 ) + 69 THEN NULL WHEN 61 THEN + CAST ( NULL AS INTEGER ) * - COUNT ( * ) WHEN - ( + + 29 ) THEN CAST ( NULL AS INTEGER ) END / - - 97 + 92 + + 77 * + 49 WHEN + CASE + 44 WHEN COUNT ( * ) THEN + 84 WHEN + 36 * 62 THEN NULL ELSE 67 - - 83 END THEN ( + 82 ) + 44 * - 64 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4671
SELECT + 3 * + NULLIF ( + 94, 78 + 24 ) - - MIN( DISTINCT - + 8 )
----
274

skipif mysql # not compatible
query I rowsort label-4671
SELECT + 3 * + NULLIF ( + 94, 78 + 24 ) - - MIN ( DISTINCT - + 8 )
----
274

onlyif mysql # aggregate syntax: 
query I rowsort label-4672
SELECT + COUNT( - 41 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4672
SELECT + COUNT ( - 41 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4673
SELECT ALL 22 * + SUM( + 99 ) - 15 + - - 38 + - ( - 28 ) + + ( - 53 ) * - 44 * + 56 * + 20 * - NULLIF ( - 26, - 90 * + 23 / - 54 )
----
67910069

skipif mysql # not compatible
query I rowsort label-4673
SELECT ALL 22 * + SUM ( + 99 ) - 15 + - - 38 + - ( - 28 ) + + ( - 53 ) * - 44 * + 56 * + 20 * - NULLIF ( - 26, - 90 * + 23 / - 54 )
----
67910069

query I rowsort
SELECT NULLIF ( 61, + 36 ) AS col0
----
61

onlyif mysql # aggregate syntax: 
query II rowsort label-4675
SELECT + COUNT( * ), 39 col0
----
1
39

skipif mysql # not compatible
query II rowsort label-4675
SELECT + COUNT ( * ), 39 col0
----
1
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4676
SELECT - CASE - + 29 WHEN + 34 - 67 THEN COALESCE ( 62, - 54 * + - COUNT( * ) * + 3 ) ELSE NULL END / + - 40 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4676
SELECT - CASE - + 29 WHEN + 34 - 67 THEN COALESCE ( 62, - 54 * + - COUNT ( * ) * + 3 ) ELSE NULL END / + - 40 col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4677
SELECT DISTINCT ( + CAST( ( - + ( - MIN( ALL - ( 1 ) ) ) ) AS SIGNED ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4677
SELECT DISTINCT ( + CAST ( ( - + ( - MIN ( ALL - ( 1 ) ) ) ) AS INTEGER ) )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4678
SELECT - + CAST( - COUNT( * ) AS SIGNED ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4678
SELECT - + CAST ( - COUNT ( * ) AS INTEGER ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4679
SELECT + - 13 * + COUNT( * )
----
-13

skipif mysql # not compatible
query I rowsort label-4679
SELECT + - 13 * + COUNT ( * )
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-4680
SELECT - MAX( ALL - + 3 ) + + + 67 + - 40 * + - 13 + + 27 AS col1
----
617

skipif mysql # not compatible
query I rowsort label-4680
SELECT - MAX ( ALL - + 3 ) + + + 67 + - 40 * + - 13 + + 27 AS col1
----
617

query I rowsort
SELECT ALL 26 * + + 89 - 79
----
2235

onlyif mysql # aggregate syntax: 
query I rowsort label-4682
SELECT - 96 * + COUNT( * ) * 19 + - + 80
----
-1904

skipif mysql # not compatible
query I rowsort label-4682
SELECT - 96 * + COUNT ( * ) * 19 + - + 80
----
-1904

query I rowsort
SELECT + 66 * 77 + 60 AS col2
----
5142

query I rowsort
SELECT - + 35 + 58 + - 28
----
-5

query I rowsort
SELECT ALL + 66 + - 66
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4686
SELECT + - 61 + 45 + + 77 + 25 + + + ( 8 ) DIV + + NULLIF ( + + 35, + ( - + ( + 66 ) ) + + + 92 + + + NULLIF ( 21, 29 * + + CASE 23 WHEN - 99 - + SUM( + 21 ) + - + 72 THEN 84 - COUNT( * ) ELSE NULL END ) )
----
86

skipif mysql # not compatible
query I rowsort label-4686
SELECT + - 61 + 45 + + 77 + 25 + + + ( 8 ) / + + NULLIF ( + + 35, + ( - + ( + 66 ) ) + + + 92 + + + NULLIF ( 21, 29 * + + CASE 23 WHEN - 99 - + SUM ( + 21 ) + - + 72 THEN 84 - COUNT ( * ) ELSE NULL END ) )
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4687
SELECT ALL - 55 + - MIN( ALL 1 )
----
-56

skipif mysql # not compatible
query I rowsort label-4687
SELECT ALL - 55 + - MIN ( ALL 1 )
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-4688
SELECT ALL + SUM( DISTINCT - - 55 ) * - 65
----
-3575

skipif mysql # not compatible
query I rowsort label-4688
SELECT ALL + SUM ( DISTINCT - - 55 ) * - 65
----
-3575

query I rowsort
SELECT 70 + - + 19 + - + 73
----
-22

query I rowsort
SELECT ALL 15 + - - 93
----
108

query I rowsort
SELECT - 85 + 34
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4692
SELECT 1 + COUNT( * ) * 0 + 51 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4692
SELECT 1 + COUNT ( * ) * 0 + 51 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4693
SELECT - 98 DIV + ( - + 89 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4693
SELECT - 98 / + ( - + 89 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4694
SELECT - MIN( DISTINCT - ( + + 3 ) ) + + - ( - 69 )
----
72

skipif mysql # not compatible
query I rowsort label-4694
SELECT - MIN ( DISTINCT - ( + + 3 ) ) + + - ( - 69 )
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4695
SELECT DISTINCT - CAST( + 50 AS SIGNED )
----
-50

skipif mysql # not compatible
query I rowsort label-4695
SELECT DISTINCT - CAST ( + 50 AS INTEGER )
----
-50

query I rowsort
SELECT DISTINCT - 12 + + 62 AS col2
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4697
SELECT DISTINCT 83 * + + CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4697
SELECT DISTINCT 83 * + + CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 42 * + 67 AS col0
----
2814

query I rowsort
SELECT ALL 54 - + 73 + - 96 * + - 89 + - + 93 * + 43 * + 58
----
-223417

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4700
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 2
----
NULL

skipif mysql # not compatible
query I rowsort label-4700
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 2
----
NULL

query II rowsort
SELECT ALL + 59 - + 89, ( + + 68 ) AS col0
----
-30
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4702
SELECT CASE - + 81 WHEN 7 / + COUNT( * ) * - 42 THEN NULL WHEN - CASE - 4 WHEN - CAST( - - CASE + - 13 WHEN - 85 THEN - 80 ELSE + COALESCE ( + 87, + 51 ) END AS SIGNED ) THEN - - 5 ELSE NULL END THEN NULL ELSE 36 + COALESCE ( + CAST( - + COUNT( * ) AS SIGNED ), + 91, COUNT( * ) - + 8 ) + 80 END * - 34
----
-3910

skipif mysql # not compatible
query I rowsort label-4702
SELECT CASE - + 81 WHEN 7 / + COUNT ( * ) * - 42 THEN NULL WHEN - CASE - 4 WHEN - CAST ( - - CASE + - 13 WHEN - 85 THEN - 80 ELSE + COALESCE ( + 87, + 51 ) END AS INTEGER ) THEN - - 5 ELSE NULL END THEN NULL ELSE 36 + COALESCE ( + CAST ( - + COUNT ( * ) AS INTEGER ), + 91, COUNT ( * ) - + 8 ) + 80 END * - 34
----
-3910

query II rowsort
SELECT 0 * - + 54, 25 col1
----
0
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4704
SELECT 69 * 55 + 67 - CAST( NULL AS SIGNED ) + - 19
----
NULL

skipif mysql # not compatible
query I rowsort label-4704
SELECT 69 * 55 + 67 - CAST ( NULL AS INTEGER ) + - 19
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4705
SELECT 80 + + 73 + 44 DIV - + 64 AS col1
----
153

skipif mysql # not compatible
query I rowsort label-4705
SELECT 80 + + 73 + 44 / - + 64 AS col1
----
153

query I rowsort
SELECT 90 + ( 28 ) + + 24
----
142

onlyif mysql # aggregate syntax: 
query I rowsort label-4707
SELECT ALL + COUNT( + ( 31 ) ) * - 72 + + - 76 * 71 AS col2
----
-5468

skipif mysql # not compatible
query I rowsort label-4707
SELECT ALL + COUNT ( + ( 31 ) ) * - 72 + + - 76 * 71 AS col2
----
-5468

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4708
SELECT ( 75 ) - + CAST( NULL AS SIGNED ) - 57
----
NULL

skipif mysql # not compatible
query I rowsort label-4708
SELECT ( 75 ) - + CAST ( NULL AS INTEGER ) - 57
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4709
SELECT MIN( + + 29 ) * 19 + + + NULLIF ( 28, NULLIF ( + 22, - - COUNT( * ) ) * - 58 + 54 + - 89 * + 56 / 1 * + - COUNT( * ) ) AS col0
----
579

skipif mysql # not compatible
query I rowsort label-4709
SELECT MIN ( + + 29 ) * 19 + + + NULLIF ( 28, NULLIF ( + 22, - - COUNT ( * ) ) * - 58 + 54 + - 89 * + 56 / 1 * + - COUNT ( * ) ) AS col0
----
579

onlyif mysql # aggregate syntax: 
query I rowsort label-4710
SELECT - 90 * + 22 + + ( - + COUNT( ALL + 65 ) )
----
-1981

skipif mysql # not compatible
query I rowsort label-4710
SELECT - 90 * + 22 + + ( - + COUNT ( ALL + 65 ) )
----
-1981

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4711
SELECT DISTINCT + ( + 34 ) * 71 * - + 61 - + - 39 * + CAST( + 27 AS SIGNED ) - - ( + COUNT( + 45 ) )
----
-146200

skipif mysql # not compatible
query I rowsort label-4711
SELECT DISTINCT + ( + 34 ) * 71 * - + 61 - + - 39 * + CAST ( + 27 AS INTEGER ) - - ( + COUNT ( + 45 ) )
----
-146200

onlyif mysql # aggregate syntax: 
query I rowsort label-4712
SELECT 67 + NULLIF ( - - 78, + + 63 ) + - 98 + - 81 + - - SUM( 64 ) AS col1
----
30

skipif mysql # not compatible
query I rowsort label-4712
SELECT 67 + NULLIF ( - - 78, + + 63 ) + - 98 + - 81 + - - SUM ( 64 ) AS col1
----
30

query I rowsort
SELECT - + CASE WHEN NOT NULL IN ( + 32, 72, - 61 ) THEN - 29 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4714
SELECT + 50 + COUNT( - CAST( + 22 AS SIGNED ) ) AS col2
----
51

skipif mysql # not compatible
query I rowsort label-4714
SELECT + 50 + COUNT ( - CAST ( + 22 AS INTEGER ) ) AS col2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4715
SELECT + 89 * + - COUNT( * ) AS col1
----
-89

skipif mysql # not compatible
query I rowsort label-4715
SELECT + 89 * + - COUNT ( * ) AS col1
----
-89

query I rowsort
SELECT DISTINCT 59 + 45 - 35 * + 13 AS col2
----
-351

onlyif mysql # aggregate syntax: 
query I rowsort label-4717
SELECT ALL - - COUNT( * ) + - 73 + + 21 + + + 87 * + + COUNT( 67 ) AS col0
----
36

skipif mysql # not compatible
query I rowsort label-4717
SELECT ALL - - COUNT ( * ) + - 73 + + 21 + + + 87 * + + COUNT ( 67 ) AS col0
----
36

query I rowsort
SELECT 46 * - 2 AS col1
----
-92

onlyif mysql # aggregate syntax: 
query II rowsort label-4719
SELECT + NULLIF ( + - 32, 77 / + 10 * 75 + - 3 ) - + 58 * + - ( + COUNT( * ) ) + + 25, 66 * + + 28 + + 63 AS col1
----
51
1911

skipif mysql # not compatible
query II rowsort label-4719
SELECT + NULLIF ( + - 32, 77 / + 10 * 75 + - 3 ) - + 58 * + - ( + COUNT ( * ) ) + + 25, 66 * + + 28 + + 63 AS col1
----
51
1911

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4720
SELECT DISTINCT + COALESCE ( + NULLIF ( + 18, + - COUNT( DISTINCT - + 91 ) / - CAST( + + NULLIF ( - 79, - 11 ) AS SIGNED ) + - 40 + + 81 + + + ( + + MIN( - - 2 ) ) * + 85 * COUNT( * ) ), + 29, - ( + + 20 ) ) AS col2
----
18

skipif mysql # not compatible
query I rowsort label-4720
SELECT DISTINCT + COALESCE ( + NULLIF ( + 18, + - COUNT ( DISTINCT - + 91 ) / - CAST ( + + NULLIF ( - 79, - 11 ) AS INTEGER ) + - 40 + + 81 + + + ( + + MIN ( - - 2 ) ) * + 85 * COUNT ( * ) ), + 29, - ( + + 20 ) ) AS col2
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4721
SELECT - CASE - - 63 WHEN - 55 DIV - 97 + + ( - COUNT( * ) ) THEN - + 27 * + - 50 - ( 64 ) ELSE + NULLIF ( 50, 44 - + 19 ) DIV 30 END
----
-1

skipif mysql # not compatible
query I rowsort label-4721
SELECT - CASE - - 63 WHEN - 55 / - 97 + + ( - COUNT ( * ) ) THEN - + 27 * + - 50 - ( 64 ) ELSE + NULLIF ( 50, 44 - + 19 ) / 30 END
----
-1

query I rowsort
SELECT ALL - + 14 + + 65 AS col2
----
51

query I rowsort
SELECT ALL + + 52 * + 56
----
2912

onlyif mysql # aggregate syntax: 
query I rowsort label-4724
SELECT + ( + 44 ) * + SUM( DISTINCT NULLIF ( - 75, - 10 + - - NULLIF ( 97, + - 93 * 70 * CASE - 63 WHEN - 7 THEN + + 60 + - 79 + + - 10 / - + 72 WHEN - 20 - + - 69 + - + 30 THEN NULL ELSE NULL END + 94 * + - 38 ) ) ) + 92
----
-3208

skipif mysql # not compatible
query I rowsort label-4724
SELECT + ( + 44 ) * + SUM ( DISTINCT NULLIF ( - 75, - 10 + - - NULLIF ( 97, + - 93 * 70 * CASE - 63 WHEN - 7 THEN + + 60 + - 79 + + - 10 / - + 72 WHEN - 20 - + - 69 + - + 30 THEN NULL ELSE NULL END + 94 * + - 38 ) ) ) + 92
----
-3208

query I rowsort
SELECT + 5 * - 81 col1
----
-405

onlyif mysql # aggregate syntax: 
query I rowsort label-4726
SELECT - - ( SUM( + - ( - CASE 91 WHEN 25 THEN 33 ELSE + 8 END ) ) ) AS col0
----
8

skipif mysql # not compatible
query I rowsort label-4726
SELECT - - ( SUM ( + - ( - CASE 91 WHEN 25 THEN 33 ELSE + 8 END ) ) ) AS col0
----
8

query I rowsort
SELECT DISTINCT - 61 - - + 88 AS col0
----
27

query I rowsort
SELECT DISTINCT + ( - - 51 ) * 7 AS col2
----
357

query I rowsort
SELECT ALL 36 - + 7 col2
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4730
SELECT - 39 DIV - 60 + - COUNT( + 38 ) + - + COUNT( * ) + + CAST( + + 53 AS SIGNED ) col0
----
51

skipif mysql # not compatible
query I rowsort label-4730
SELECT - 39 / - 60 + - COUNT ( + 38 ) + - + COUNT ( * ) + + CAST ( + + 53 AS INTEGER ) col0
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-4731
SELECT DISTINCT 59 DIV - + 70 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4731
SELECT DISTINCT 59 / - + 70 AS col2
----
0

query I rowsort
SELECT + 52 * 0 + - 26 * 56
----
-1456

query II rowsort
SELECT ALL - 38 AS col0, ( + 54 )
----
-38
54

query II rowsort
SELECT ALL - COALESCE ( 29, + + 20 ), + 25 AS col2
----
-29
25

query I rowsort
SELECT 83 + - CASE - + 87 WHEN 44 THEN + 51 WHEN - + 77 + - 41 + - + 20 * 0 THEN NULL END AS col1
----
NULL

query I rowsort
SELECT DISTINCT 58 * + 43 AS col1
----
2494

query II rowsort
SELECT ALL 93 + + + 15 + + 71 AS col0, 6 AS col0
----
179
6

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4738
SELECT CAST( NULL AS SIGNED ) * - CAST( - 66 AS SIGNED ) + - 3 col0, - COALESCE ( ( - 61 ), - 60 ) AS col0
----
NULL
61

skipif mysql # not compatible
query II rowsort label-4738
SELECT CAST ( NULL AS INTEGER ) * - CAST ( - 66 AS INTEGER ) + - 3 col0, - COALESCE ( ( - 61 ), - 60 ) AS col0
----
NULL
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4739
SELECT CASE - + 0 WHEN + 45 THEN NULL WHEN + 83 * 30 * + + COUNT( * ) THEN 53 * NULLIF ( CASE + + 53 WHEN + + SUM( - + 4 ) THEN NULL WHEN - + 93 THEN - 95 - - 86 END, + + SUM( + 85 ) ) ELSE COUNT( * ) + + - ( - - 6 ) + + + 78 END + + 87 + 91
----
251

skipif mysql # not compatible
query I rowsort label-4739
SELECT CASE - + 0 WHEN + 45 THEN NULL WHEN + 83 * 30 * + + COUNT ( * ) THEN 53 * NULLIF ( CASE + + 53 WHEN + + SUM ( - + 4 ) THEN NULL WHEN - + 93 THEN - 95 - - 86 END, + + SUM ( + 85 ) ) ELSE COUNT ( * ) + + - ( - - 6 ) + + + 78 END + + 87 + 91
----
251

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4740
SELECT ALL - 54 AS col2, 70 + COALESCE ( + + 58, + 80 ) + 93 * - 76 * CAST( NULL AS DECIMAL ) AS col2
----
-54
NULL

skipif mysql # not compatible
query II rowsort label-4740
SELECT ALL - 54 AS col2, 70 + COALESCE ( + + 58, + 80 ) + 93 * - 76 * CAST ( NULL AS REAL ) AS col2
----
-54
NULL

query I rowsort
SELECT 51 + + 72 AS col0
----
123

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4742
SELECT ALL 4 + - - 97 DIV MIN( - ( 22 ) ) + - 29 AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-4742
SELECT ALL 4 + - - 97 / MIN ( - ( 22 ) ) + - 29 AS col2
----
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-4743
SELECT ALL + 41 + - SUM( ALL - 48 ), - NULLIF ( - 1, + COUNT( * ) * COUNT( * ) ) AS col1
----
89
1

skipif mysql # not compatible
query II rowsort label-4743
SELECT ALL + 41 + - SUM ( ALL - 48 ), - NULLIF ( - 1, + COUNT ( * ) * COUNT ( * ) ) AS col1
----
89
1

query II rowsort
SELECT ALL - - 48, - 81 AS col2
----
48
-81

query I rowsort
SELECT 30 + 3 * + 87 col0
----
291

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4746
SELECT ALL + 38 + 93 / CAST( + AVG ( - ( - ( + 58 ) ) ) AS SIGNED ) / 46 / + - 59 + - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4746
SELECT ALL + 38 + 93 / CAST ( + AVG ( - ( - ( + 58 ) ) ) AS INTEGER ) / 46 / + - 59 + - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4747
SELECT - CAST( NULL AS SIGNED ) col1, + 76
----
NULL
76

skipif mysql # not compatible
query II rowsort label-4747
SELECT - CAST ( NULL AS INTEGER ) col1, + 76
----
NULL
76

query II rowsort
SELECT - - 20 * ( 14 ) AS col2, 88 * - 41
----
280
-3608

query I rowsort
SELECT + - ( + 91 ) + - 66 * 23 - + + 20 - - + 91 + + - 74 + - 73
----
-1685

query II rowsort
SELECT - + 76 AS col1, - 55 * + - 24 AS col1
----
-76
1320

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4751
SELECT ALL 55, 10 DIV - 16 + - CAST( 17 AS SIGNED ) col1
----
55
-17

skipif mysql # not compatible
query II rowsort label-4751
SELECT ALL 55, 10 / - 16 + - CAST ( 17 AS INTEGER ) col1
----
55
-17

query I rowsort
SELECT - 17 + - 61 + - CASE - 76 WHEN - + 65 + + 56 THEN NULL WHEN 85 THEN + + 85 / - 38 END / + - 33 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4753
SELECT - 30 + - 48 + + 32 + + COUNT( * )
----
-45

skipif mysql # not compatible
query I rowsort label-4753
SELECT - 30 + - 48 + + 32 + + COUNT ( * )
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4754
SELECT - COALESCE ( - + 34, 81 - + COALESCE ( + 13, - CAST( NULL AS SIGNED ), + - CAST( + 50 AS SIGNED ) / - 56 + - + 36 ) + 16, - 53 ) * - - CASE + COUNT( * ) WHEN + 29 + + - 22 + 42 - - 39 - 68 * + - 89 + SUM( ALL - + 14 ) + + COUNT( * ) + 62 THEN - 98 - - COUNT( * ) * 78 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4754
SELECT - COALESCE ( - + 34, 81 - + COALESCE ( + 13, - CAST ( NULL AS INTEGER ), + - CAST ( + 50 AS INTEGER ) / - 56 + - + 36 ) + 16, - 53 ) * - - CASE + COUNT ( * ) WHEN + 29 + + - 22 + 42 - - 39 - 68 * + - 89 + SUM ( ALL - + 14 ) + + COUNT ( * ) + 62 THEN - 98 - - COUNT ( * ) * 78 END AS col2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4755
SELECT DISTINCT AVG ( ALL - ( CASE - 60 WHEN + - NULLIF ( + COALESCE ( - CAST( 50 AS DECIMAL ), + 26 * - - 79, + + 5 ), - ( + - ( - - ( 33 ) ) ) ) - + + 64 THEN - - 59 END ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4755
SELECT DISTINCT AVG ( ALL - ( CASE - 60 WHEN + - NULLIF ( + COALESCE ( - CAST ( 50 AS REAL ), + 26 * - - 79, + + 5 ), - ( + - ( - - ( 33 ) ) ) ) - + + 64 THEN - - 59 END ) ) col2
----
NULL

query I rowsort
SELECT - ( - 21 ) * + 84 AS col0
----
1764

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4757
SELECT - CAST( 94 AS SIGNED ) + + 31 AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-4757
SELECT - CAST ( 94 AS INTEGER ) + + 31 AS col1
----
-63

query I rowsort
SELECT ALL + 69 * 80
----
5520

query II rowsort
SELECT ( 47 ) AS col1, 67 AS col1
----
47
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4760
SELECT ALL + 96 * COUNT( * ) AS col2
----
96

skipif mysql # not compatible
query I rowsort label-4760
SELECT ALL + 96 * COUNT ( * ) AS col2
----
96

query I rowsort
SELECT + 28 * + 74 + + 4 AS col0
----
2076

query I rowsort
SELECT DISTINCT 78 * + - NULLIF ( - 16, + + 53 ) + + 59
----
1307

query I rowsort
SELECT ALL 47 * + - 7 + + 59
----
-270

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4764
SELECT ( + + CAST( - 78 AS SIGNED ) )
----
-78

skipif mysql # not compatible
query I rowsort label-4764
SELECT ( + + CAST ( - 78 AS INTEGER ) )
----
-78

query I rowsort
SELECT CASE - 15 WHEN - 46 THEN NULL ELSE - 57 END
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-4766
SELECT COALESCE ( ( 16 ), MAX( ALL - 86 ) * 32 + + 75 * - 40 * - + COUNT( * ) - + + 15 * 99 ) AS col1
----
16

skipif mysql # not compatible
query I rowsort label-4766
SELECT COALESCE ( ( 16 ), MAX ( ALL - 86 ) * 32 + + 75 * - 40 * - + COUNT ( * ) - + + 15 * 99 ) AS col1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4767
SELECT - 75 * COUNT( ALL - - 87 )
----
-75

skipif mysql # not compatible
query I rowsort label-4767
SELECT - 75 * COUNT ( ALL - - 87 )
----
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-4768
SELECT + 99 DIV - 67 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4768
SELECT + 99 / - 67 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4769
SELECT + COUNT( ALL + ( + 77 ) )
----
1

skipif mysql # not compatible
query I rowsort label-4769
SELECT + COUNT ( ALL + ( + 77 ) )
----
1

query I rowsort
SELECT ALL - + 59 * - 72 * + 46 + - - 87 * - 66 + + 98 AS col1
----
189764

query I rowsort
SELECT + 62 * + 55 + + 24 * + - 41
----
2426

onlyif mysql # DIV for integer division: 
query I rowsort label-4772
SELECT ALL - + 48 DIV ( - 43 )
----
1

skipif mysql # not compatible
query I rowsort label-4772
SELECT ALL - + 48 / ( - 43 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4773
SELECT MAX( ( + 25 ) )
----
25

skipif mysql # not compatible
query I rowsort label-4773
SELECT MAX ( ( + 25 ) )
----
25

query I rowsort
SELECT ALL - - 40 * - 71 * + + 68 + - ( - 96 )
----
-193024

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4775
SELECT + + CAST( - 97 AS SIGNED ) * + - CAST( COUNT( * ) AS SIGNED ) AS col1
----
97

skipif mysql # not compatible
query I rowsort label-4775
SELECT + + CAST ( - 97 AS INTEGER ) * + - CAST ( COUNT ( * ) AS INTEGER ) AS col1
----
97

query I rowsort
SELECT + ( + - 53 )
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-4777
SELECT - - COUNT( * ) - + 89 AS col1
----
-88

skipif mysql # not compatible
query I rowsort label-4777
SELECT - - COUNT ( * ) - + 89 AS col1
----
-88

query II rowsort
SELECT ( + + 58 ), 40 * + + 69 col0
----
58
2760

query I rowsort
SELECT + 34 + + 96
----
130

query II rowsort
SELECT + 78 * + 70 col2, + 69
----
5460
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4781
SELECT - + COALESCE ( - 67, + + ( + CAST( NULL AS SIGNED ) ) - + 19 )
----
67

skipif mysql # not compatible
query I rowsort label-4781
SELECT - + COALESCE ( - 67, + + ( + CAST ( NULL AS INTEGER ) ) - + 19 )
----
67

query I rowsort
SELECT ALL - + 84 * - COALESCE ( 98, ( - 23 ) )
----
8232

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4783
SELECT - CAST( + ( + COUNT( * ) ) AS SIGNED ) AS col0, COUNT( ALL - + 64 )
----
-1
1

skipif mysql # not compatible
query II rowsort label-4783
SELECT - CAST ( + ( + COUNT ( * ) ) AS INTEGER ) AS col0, COUNT ( ALL - + 64 )
----
-1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4784
SELECT + 42 DIV - 23 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4784
SELECT + 42 / - 23 AS col1
----
-1

query I rowsort
SELECT DISTINCT ( - + 83 ) AS col1
----
-83

query I rowsort
SELECT DISTINCT 82 + - - 84 * - 68 * - 34 - + + 34 AS col2
----
194256

onlyif mysql # aggregate syntax: 
query I rowsort label-4787
SELECT DISTINCT NULLIF ( MIN( - - 47 ), + 94 )
----
47

skipif mysql # not compatible
query I rowsort label-4787
SELECT DISTINCT NULLIF ( MIN ( - - 47 ), + 94 )
----
47

query I rowsort
SELECT - 88 * 12 * + - 85
----
89760

onlyif mysql # aggregate syntax: 
query I rowsort label-4789
SELECT 1 * + COUNT( * ) - + 47 * 98
----
-4605

skipif mysql # not compatible
query I rowsort label-4789
SELECT 1 * + COUNT ( * ) - + 47 * 98
----
-4605

onlyif mysql # aggregate syntax: 
query I rowsort label-4790
SELECT + MAX( ALL + 61 )
----
61

skipif mysql # not compatible
query I rowsort label-4790
SELECT + MAX ( ALL + 61 )
----
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4791
SELECT DISTINCT - ( - ( COUNT( * ) ) ) DIV + + ( + 54 ) + + - ( 89 ) col0
----
-89

skipif mysql # not compatible
query I rowsort label-4791
SELECT DISTINCT - ( - ( COUNT ( * ) ) ) / + + ( + 54 ) + + - ( 89 ) col0
----
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-4792
SELECT ALL + 37 DIV - 77 + - + 72 AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-4792
SELECT ALL + 37 / - 77 + - + 72 AS col2
----
-72

query II rowsort
SELECT - 48 * - + 12 + + 69, 99 AS col0
----
645
99

query I rowsort
SELECT DISTINCT - 48 * 55
----
-2640

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4795
SELECT DISTINCT - AVG ( ALL CAST( NULL AS DECIMAL ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4795
SELECT DISTINCT - AVG ( ALL CAST ( NULL AS REAL ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4796
SELECT ( + + 0 ) + ( + COUNT( ALL + 85 ) ) * + 44 AS col0
----
44

skipif mysql # not compatible
query I rowsort label-4796
SELECT ( + + 0 ) + ( + COUNT ( ALL + 85 ) ) * + 44 AS col0
----
44

query I rowsort
SELECT ALL + 38 - + + 8 AS col0
----
30

query II rowsort
SELECT DISTINCT - 73, 68 AS col2
----
-73
68

query I rowsort
SELECT 91 * + - 99
----
-9009

onlyif mysql # DIV for integer division: 
query I rowsort label-4800
SELECT + 41 * - 76 + - 46 + + + 82 DIV + 60 AS col1
----
-3161

skipif mysql # not compatible
query I rowsort label-4800
SELECT + 41 * - 76 + - 46 + + + 82 / + 60 AS col1
----
-3161

query I rowsort
SELECT ALL - COALESCE ( + 47, + - 36 )
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4802
SELECT 70 * + - 29 + CAST( - SUM( ALL NULLIF ( - 20, - 41 ) ) AS SIGNED ) col0
----
-2010

skipif mysql # not compatible
query I rowsort label-4802
SELECT 70 * + - 29 + CAST ( - SUM ( ALL NULLIF ( - 20, - 41 ) ) AS INTEGER ) col0
----
-2010

query I rowsort
SELECT ALL - NULLIF ( + 75, + 72 + + + 76 / - + 69 * 58 * 85 )
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4804
SELECT COUNT( 30 ) * 31
----
31

skipif mysql # not compatible
query I rowsort label-4804
SELECT COUNT ( 30 ) * 31
----
31

query II rowsort
SELECT ALL 62 AS col0, 52 * - 55 AS col1
----
62
-2860

query I rowsort
SELECT DISTINCT ( - 33 ) * + + 87 + - 67 col0
----
-2938

query I rowsort
SELECT - 52 + + 2
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-4808
SELECT 70 - + COUNT( ALL + 8 )
----
69

skipif mysql # not compatible
query I rowsort label-4808
SELECT 70 - + COUNT ( ALL + 8 )
----
69

query II rowsort
SELECT 73 + + 17 * - 14 AS col2, - 75 AS col0
----
-165
-75

query I rowsort
SELECT 31 + + - 61 + - 61
----
-91

query I rowsort
SELECT 94 * - - 66
----
6204

query II rowsort
SELECT ALL 28, + 74 AS col1
----
28
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4813
SELECT ALL + 41 + - 5 * - + 73 + CAST( NULL AS SIGNED ) * 93 / - + COUNT( * ) AS col2, 73
----
NULL
73

skipif mysql # not compatible
query II rowsort label-4813
SELECT ALL + 41 + - 5 * - + 73 + CAST ( NULL AS INTEGER ) * 93 / - + COUNT ( * ) AS col2, 73
----
NULL
73

onlyif mysql # aggregate syntax: 
query II rowsort label-4814
SELECT CASE 42 WHEN - - 18 * - COUNT( * ) + + 18 THEN + + COUNT( * ) * - - 14 + + - 11 END + 51, COUNT( * ) AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-4814
SELECT CASE 42 WHEN - - 18 * - COUNT ( * ) + + 18 THEN + + COUNT ( * ) * - - 14 + + - 11 END + 51, COUNT ( * ) AS col2
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4815
SELECT ALL 30 + 38 + - COALESCE ( - - 55, COUNT( * ) ) AS col1
----
13

skipif mysql # not compatible
query I rowsort label-4815
SELECT ALL 30 + 38 + - COALESCE ( - - 55, COUNT ( * ) ) AS col1
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4816
SELECT MAX( + - 87 ) + COUNT( + + 65 )
----
-86

skipif mysql # not compatible
query I rowsort label-4816
SELECT MAX ( + - 87 ) + COUNT ( + + 65 )
----
-86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4817
SELECT CAST( 73 AS SIGNED ) + 9 + + 66 AS col0
----
148

skipif mysql # not compatible
query I rowsort label-4817
SELECT CAST ( 73 AS INTEGER ) + 9 + + 66 AS col0
----
148

query I rowsort
SELECT ALL + 69 + + 95
----
164

query I rowsort
SELECT DISTINCT 29 + + 89 AS col0
----
118

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4820
SELECT - 6 AS col1, 24 + + CAST( ( - + 79 ) AS SIGNED )
----
-6
-55

skipif mysql # not compatible
query II rowsort label-4820
SELECT - 6 AS col1, 24 + + CAST ( ( - + 79 ) AS INTEGER )
----
-6
-55

query I rowsort
SELECT 28 + 92 + - 36 * 27 AS col1
----
-852

onlyif mysql # DIV for integer division: 
query I rowsort label-4822
SELECT ALL 75 * 53 DIV + + 29 AS col1
----
137

skipif mysql # not compatible
query I rowsort label-4822
SELECT ALL 75 * 53 / + + 29 AS col1
----
137

onlyif mysql # aggregate syntax: 
query I rowsort label-4823
SELECT ALL COUNT( * ) - + 99
----
-98

skipif mysql # not compatible
query I rowsort label-4823
SELECT ALL COUNT ( * ) - + 99
----
-98

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4824
SELECT + 24, - CAST( NULL AS SIGNED ) * 36 + 42 + + - COALESCE ( 0, 89 + + + 41 ) / 6 + - ( + 90 ) * - + 19 / 53 AS col2
----
24
NULL

skipif mysql # not compatible
query II rowsort label-4824
SELECT + 24, - CAST ( NULL AS INTEGER ) * 36 + 42 + + - COALESCE ( 0, 89 + + + 41 ) / 6 + - ( + 90 ) * - + 19 / 53 AS col2
----
24
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4825
SELECT ALL - MAX( DISTINCT + + 45 )
----
-45

skipif mysql # not compatible
query I rowsort label-4825
SELECT ALL - MAX ( DISTINCT + + 45 )
----
-45

query II rowsort
SELECT 56 AS col2, + 54
----
56
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4827
SELECT DISTINCT - + SUM( ALL - 55 ) AS col1
----
55

skipif mysql # not compatible
query I rowsort label-4827
SELECT DISTINCT - + SUM ( ALL - 55 ) AS col1
----
55

query I rowsort
SELECT + 33 * + + 52 AS col0
----
1716

onlyif mysql # aggregate syntax: 
query II rowsort label-4829
SELECT + COUNT( * ) AS col0, + 79
----
1
79

skipif mysql # not compatible
query II rowsort label-4829
SELECT + COUNT ( * ) AS col0, + 79
----
1
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4830
SELECT ALL - SUM( + 50 )
----
-50

skipif mysql # not compatible
query I rowsort label-4830
SELECT ALL - SUM ( + 50 )
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-4831
SELECT ALL - 35 * - + COUNT( * ) AS col1
----
35

skipif mysql # not compatible
query I rowsort label-4831
SELECT ALL - 35 * - + COUNT ( * ) AS col1
----
35

query I rowsort
SELECT 16 + + 0
----
16

query II rowsort
SELECT DISTINCT - - 22, - 43 AS col1
----
22
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4834
SELECT NULLIF ( 82, - ( - CASE - 77 WHEN 54 + - CAST( NULL AS SIGNED ) - COALESCE ( - COUNT( * ), 96 ) + + 52 * - COUNT( * ) * + - COUNT( * ) THEN NULL WHEN - + 69 THEN + 91 ELSE NULL END ) ) AS col2
----
82

skipif mysql # not compatible
query I rowsort label-4834
SELECT NULLIF ( 82, - ( - CASE - 77 WHEN 54 + - CAST ( NULL AS INTEGER ) - COALESCE ( - COUNT ( * ), 96 ) + + 52 * - COUNT ( * ) * + - COUNT ( * ) THEN NULL WHEN - + 69 THEN + 91 ELSE NULL END ) ) AS col2
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4835
SELECT 8 * + COUNT( * )
----
8

skipif mysql # not compatible
query I rowsort label-4835
SELECT 8 * + COUNT ( * )
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4836
SELECT ALL - - SUM( - 78 )
----
-78

skipif mysql # not compatible
query I rowsort label-4836
SELECT ALL - - SUM ( - 78 )
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-4837
SELECT + 84 * + NULLIF ( - MAX( DISTINCT + 76 ), ( - 2 ) ) + + 71 + CASE + 18 WHEN 91 * - 19 + 62 THEN NULL WHEN - 25 THEN - + 78 END + - ( 9 ) + + - 5 * + 50
----
NULL

skipif mysql # not compatible
query I rowsort label-4837
SELECT + 84 * + NULLIF ( - MAX ( DISTINCT + 76 ), ( - 2 ) ) + + 71 + CASE + 18 WHEN 91 * - 19 + 62 THEN NULL WHEN - 25 THEN - + 78 END + - ( 9 ) + + - 5 * + 50
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4838
SELECT SUM( - - 13 ) DIV 86
----
0

skipif mysql # not compatible
query I rowsort label-4838
SELECT SUM ( - - 13 ) / 86
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4839
SELECT + 33 + + 12 + - COUNT( * )
----
44

skipif mysql # not compatible
query I rowsort label-4839
SELECT + 33 + + 12 + - COUNT ( * )
----
44

query II rowsort
SELECT - - 18 AS col1, 64 * - 19
----
18
-1216

query I rowsort
SELECT ALL - 9 + - 66 AS col2
----
-75

query I rowsort
SELECT ALL - 1 + + 49 col0
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4843
SELECT ALL COUNT( * ) + + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4843
SELECT ALL COUNT ( * ) + + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4844
SELECT MAX( ALL + 23 ) DIV - 34
----
0

skipif mysql # not compatible
query I rowsort label-4844
SELECT MAX ( ALL + 23 ) / - 34
----
0

query I rowsort
SELECT ALL + 37 + + + 20 AS col2
----
57

query I rowsort
SELECT 93 * 25 AS col1
----
2325

onlyif mysql # DIV for integer division: 
query II rowsort label-4847
SELECT ALL 24 + - - 74 + - 11 * 79 DIV + + 2, 56 col2
----
-336
56

skipif mysql # not compatible
query II rowsort label-4847
SELECT ALL 24 + - - 74 + - 11 * 79 / + + 2, 56 col2
----
-336
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4848
SELECT ALL + COUNT( * ) + ( + 6 ) - - + 90
----
97

skipif mysql # not compatible
query I rowsort label-4848
SELECT ALL + COUNT ( * ) + ( + 6 ) - - + 90
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4849
SELECT ALL 88 + - ( - COALESCE ( + 24, - - COUNT( + - 29 ) * - 4 + 62 + - 92 + 48 + + ( 60 ) + - 50 ) ) AS col0
----
112

skipif mysql # not compatible
query I rowsort label-4849
SELECT ALL 88 + - ( - COALESCE ( + 24, - - COUNT ( + - 29 ) * - 4 + 62 + - 92 + 48 + + ( 60 ) + - 50 ) ) AS col0
----
112

query II rowsort
SELECT 99 - + 13 AS col2, ( + 40 ) * + 9 AS col1
----
86
360

onlyif mysql # aggregate syntax: 
query I rowsort label-4851
SELECT ALL + 47 * + 18 * - MAX( + 19 )
----
-16074

skipif mysql # not compatible
query I rowsort label-4851
SELECT ALL + 47 * + 18 * - MAX ( + 19 )
----
-16074

onlyif mysql # aggregate syntax: 
query I rowsort label-4852
SELECT ALL CASE 42 WHEN + COUNT( * ) THEN 76 * - 33 * - 17 * 19 WHEN NULLIF ( + COUNT( * ), + 11 ) / 1 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4852
SELECT ALL CASE 42 WHEN + COUNT ( * ) THEN 76 * - 33 * - 17 * 19 WHEN NULLIF ( + COUNT ( * ), + 11 ) / 1 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4853
SELECT DISTINCT CASE WHEN 87 IS NOT NULL THEN NULL ELSE + 72 / - 19 END - 93 + + COUNT( * ) AS col1, 34 + - 97
----
NULL
-63

skipif mysql # not compatible
query II rowsort label-4853
SELECT DISTINCT CASE WHEN 87 IS NOT NULL THEN NULL ELSE + 72 / - 19 END - 93 + + COUNT ( * ) AS col1, 34 + - 97
----
NULL
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-4854
SELECT ALL ( + 86 ) - - - CASE - 53 WHEN - - COUNT( * ) THEN + ( + + COALESCE ( + - 81, + 47 * + COUNT( * ) * + - 50 ) ) - + + 53 ELSE NULL END * - 45 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4854
SELECT ALL ( + 86 ) - - - CASE - 53 WHEN - - COUNT ( * ) THEN + ( + + COALESCE ( + - 81, + 47 * + COUNT ( * ) * + - 50 ) ) - + + 53 ELSE NULL END * - 45 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4855
SELECT + - 42 + - COUNT( + 40 ) + + + MIN( - 12 ) * - 43 + - ( - 52 ) - ( + 42 ) * - 68 AS col2
----
3381

skipif mysql # not compatible
query I rowsort label-4855
SELECT + - 42 + - COUNT ( + 40 ) + + + MIN ( - 12 ) * - 43 + - ( - 52 ) - ( + 42 ) * - 68 AS col2
----
3381

onlyif mysql # aggregate syntax: 
query I rowsort label-4856
SELECT ALL + 31 * + - 59 * COUNT( * ) AS col1
----
-1829

skipif mysql # not compatible
query I rowsort label-4856
SELECT ALL + 31 * + - 59 * COUNT ( * ) AS col1
----
-1829

onlyif mysql # aggregate syntax: 
query I rowsort label-4857
SELECT + + 25 * + 69 + - + COUNT( * )
----
1724

skipif mysql # not compatible
query I rowsort label-4857
SELECT + + 25 * + 69 + - + COUNT ( * )
----
1724

query I rowsort
SELECT - 87 * 72 * ( - 33 )
----
206712

onlyif mysql # aggregate syntax: 
query II rowsort label-4859
SELECT DISTINCT - 87 * + 79 * - + 31 * + 46 + + 21 + - + COUNT( * ) * - - 54 * + + 93, - 45 AS col0
----
9795897
-45

skipif mysql # not compatible
query II rowsort label-4859
SELECT DISTINCT - 87 * + 79 * - + 31 * + 46 + + 21 + - + COUNT ( * ) * - - 54 * + + 93, - 45 AS col0
----
9795897
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4860
SELECT ALL CAST( NULL AS SIGNED ) * - 50 + - 83 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4860
SELECT ALL CAST ( NULL AS INTEGER ) * - 50 + - 83 AS col2
----
NULL

query I rowsort
SELECT + - 98 * + 79 * + - 17
----
131614

query I rowsort
SELECT + + 24 * + 91 AS col0
----
2184

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4863
SELECT + - CAST( 43 AS SIGNED )
----
-43

skipif mysql # not compatible
query I rowsort label-4863
SELECT + - CAST ( 43 AS INTEGER )
----
-43

query I rowsort
SELECT DISTINCT + 57 * + 0 + - + 70 * 27 * - 46
----
86940

query I rowsort
SELECT - 70 - - NULLIF ( 79, - + 88 ) * 68 - + 21 AS col1
----
5281

onlyif mysql # aggregate syntax: 
query I rowsort label-4866
SELECT DISTINCT - COUNT( * ) * - COUNT( * ) + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-4866
SELECT DISTINCT - COUNT ( * ) * - COUNT ( * ) + COUNT ( * )
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4867
SELECT + 25 AS col1, COALESCE ( - CAST( NULL AS SIGNED ), + + COUNT( ALL + 32 ) - + 49 ) + COALESCE ( + 42, - 54, ( + 33 ) - 75 + - 99 )
----
25
-6

skipif mysql # not compatible
query II rowsort label-4867
SELECT + 25 AS col1, COALESCE ( - CAST ( NULL AS INTEGER ), + + COUNT ( ALL + 32 ) - + 49 ) + COALESCE ( + 42, - 54, ( + 33 ) - 75 + - 99 )
----
25
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4868
SELECT - 0 + + - MAX( ALL ( 28 ) )
----
-28

skipif mysql # not compatible
query I rowsort label-4868
SELECT - 0 + + - MAX ( ALL ( 28 ) )
----
-28

query I rowsort
SELECT - 6 - - + ( - - 37 )
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4870
SELECT + ( - + 76 ) * CAST( NULL AS SIGNED ) + - 43 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4870
SELECT + ( - + 76 ) * CAST ( NULL AS INTEGER ) + - 43 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-4871
SELECT - 82 DIV CAST( - + 90 AS SIGNED ) AS col2, MIN( DISTINCT CAST( NULL AS SIGNED ) ) * AVG ( DISTINCT + NULLIF ( 74, - 99 ) ) * - SUM( ALL - 71 ) + - CAST( - 88 AS DECIMAL )
----
0
NULL

skipif mysql # not compatible
query II rowsort label-4871
SELECT - 82 / CAST ( - + 90 AS INTEGER ) AS col2, MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) * AVG ( DISTINCT + NULLIF ( 74, - 99 ) ) * - SUM ( ALL - 71 ) + - CAST ( - 88 AS REAL )
----
0
NULL

query I rowsort
SELECT ALL + NULLIF ( - 46, - 10 * 38 + - 39 ) - + 45
----
-91

query II rowsort
SELECT 17, - 46 + + 72 AS col1
----
17
26

query I rowsort
SELECT DISTINCT + 24 - + 99 AS col2
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4875
SELECT - 29 * + - NULLIF ( + CAST( + - 19 AS SIGNED ), - 75 ) DIV - COUNT( * ) AS col2
----
551

skipif mysql # not compatible
query I rowsort label-4875
SELECT - 29 * + - NULLIF ( + CAST ( + - 19 AS INTEGER ), - 75 ) / - COUNT ( * ) AS col2
----
551

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4876
SELECT ALL - AVG ( DISTINCT + 97 ) * + 65 * - 12 * CAST( NULL AS SIGNED ) / + COUNT( * ) AS col1, 81 AS col2
----
NULL
81

skipif mysql # not compatible
query II rowsort label-4876
SELECT ALL - AVG ( DISTINCT + 97 ) * + 65 * - 12 * CAST ( NULL AS INTEGER ) / + COUNT ( * ) AS col1, 81 AS col2
----
NULL
81

query I rowsort
SELECT - 46 + - + 90 - + 95 * 32 * - 74 * - ( 43 ) AS col2
----
-9673416

query II rowsort
SELECT ALL - 7 - + + 96 * + - 61 AS col0, 20 AS col0
----
5849
20

query I rowsort
SELECT - 23 + 74
----
51

query I rowsort
SELECT DISTINCT ( - + 22 )
----
-22

query I rowsort
SELECT ALL + ( - ( - 63 ) ) * - 76
----
-4788

onlyif mysql # aggregate syntax: 
query I rowsort label-4882
SELECT + - 65 + + ( - COUNT( * ) )
----
-66

skipif mysql # not compatible
query I rowsort label-4882
SELECT + - 65 + + ( - COUNT ( * ) )
----
-66

query I rowsort
SELECT + + ( + ( 88 ) ) + + + 68
----
156

onlyif mysql # aggregate syntax: 
query II rowsort label-4884
SELECT DISTINCT + + 94 AS col1, COUNT( * ) + 23 * - 61
----
94
-1402

skipif mysql # not compatible
query II rowsort label-4884
SELECT DISTINCT + + 94 AS col1, COUNT ( * ) + 23 * - 61
----
94
-1402

query I rowsort
SELECT ALL + NULLIF ( + - 40, - 34 ) * - 26 * 49 AS col1
----
50960

onlyif mysql # aggregate syntax: 
query I rowsort label-4886
SELECT + - NULLIF ( + COUNT( * ), - 26 ) * - 7 col0
----
7

skipif mysql # not compatible
query I rowsort label-4886
SELECT + - NULLIF ( + COUNT ( * ), - 26 ) * - 7 col0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4887
SELECT + MIN( ALL + 41 ) col0
----
41

skipif mysql # not compatible
query I rowsort label-4887
SELECT + MIN ( ALL + 41 ) col0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4888
SELECT - 4 + COUNT( * )
----
-3

skipif mysql # not compatible
query I rowsort label-4888
SELECT - 4 + COUNT ( * )
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4889
SELECT + 18 DIV - COALESCE ( + 85, + 16 * COUNT( * ) DIV + COUNT( * ) + + 83 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-4889
SELECT + 18 / - COALESCE ( + 85, + 16 * COUNT ( * ) / + COUNT ( * ) + + 83 ) col0
----
0

query I rowsort
SELECT + 88 + - ( + 69 ) - + + 31 * 46 AS col0
----
-1407

query I rowsort
SELECT - - 14 * - 85 AS col2
----
-1190

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4892
SELECT - NULLIF ( - + 89, + - COALESCE ( - ( + 89 ), + - 8 ) * - - 9 ) * - + 48 * + 10 + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4892
SELECT - NULLIF ( - + 89, + - COALESCE ( - ( + 89 ), + - 8 ) * - - 9 ) * - + 48 * + 10 + - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL NULLIF ( + - 31, - + 12 * + + NULLIF ( + 53, - 67 * + 46 + 5 ) * - 18 + + 48 + 88 ) * + 54 AS col1
----
-1674

onlyif mysql # aggregate syntax: 
query I rowsort label-4894
SELECT DISTINCT 33 * + COUNT( * )
----
33

skipif mysql # not compatible
query I rowsort label-4894
SELECT DISTINCT 33 * + COUNT ( * )
----
33

query I rowsort
SELECT + 72 * + - 46 + 74 AS col0
----
-3238

onlyif mysql # DIV for integer division: 
query I rowsort label-4896
SELECT ALL - + 58 DIV - - ( + + 83 ) * + 49 + 46 + - 78 + + 10
----
-22

skipif mysql # not compatible
query I rowsort label-4896
SELECT ALL - + 58 / - - ( + + 83 ) * + 49 + 46 + - 78 + + 10
----
-22

onlyif mysql # DIV for integer division: 
query II rowsort label-4897
SELECT + 24 DIV + 82, - 95 AS col2
----
0
-95

skipif mysql # not compatible
query II rowsort label-4897
SELECT + 24 / + 82, - 95 AS col2
----
0
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4898
SELECT - 15 * CASE - 16 WHEN + - 55 * - 39 * - COUNT( * ) + 96 THEN + MAX( ALL + 7 ) + - NULLIF ( CAST( + CASE - - 8 WHEN - 36 / 11 THEN + + 73 / + + ( 96 ) ELSE NULL END AS SIGNED ), - + 29 ) END + 76 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4898
SELECT - 15 * CASE - 16 WHEN + - 55 * - 39 * - COUNT ( * ) + 96 THEN + MAX ( ALL + 7 ) + - NULLIF ( CAST ( + CASE - - 8 WHEN - 36 / 11 THEN + + 73 / + + ( 96 ) ELSE NULL END AS INTEGER ), - + 29 ) END + 76 AS col1
----
NULL

query I rowsort
SELECT - 83 + - + 97 AS col2
----
-180

query I rowsort
SELECT - 41 * + + 44 AS col1
----
-1804

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4901
SELECT - 59 + NULLIF ( CAST( NULL AS SIGNED ), - 77 + + + 36 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4901
SELECT - 59 + NULLIF ( CAST ( NULL AS INTEGER ), - 77 + + + 36 )
----
NULL

query I rowsort
SELECT DISTINCT + 93 * 34
----
3162

onlyif mysql # aggregate syntax: 
query I rowsort label-4903
SELECT ALL NULLIF ( - MIN( - - 50 ), 36 ) * + + 21 + 49
----
-1001

skipif mysql # not compatible
query I rowsort label-4903
SELECT ALL NULLIF ( - MIN ( - - 50 ), 36 ) * + + 21 + 49
----
-1001

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4904
SELECT ALL - COUNT( ALL CAST( NULL AS SIGNED ) ) - - CAST( + + 54 AS SIGNED ) AS col2, COALESCE ( + - 73, - 77 + + 67 - - 76, CAST( - + CAST( - 55 AS SIGNED ) AS SIGNED ) * + 28 DIV + + COUNT( * ) ) AS col0
----
54
-73

skipif mysql # not compatible
query II rowsort label-4904
SELECT ALL - COUNT ( ALL CAST ( NULL AS INTEGER ) ) - - CAST ( + + 54 AS INTEGER ) AS col2, COALESCE ( + - 73, - 77 + + 67 - - 76, CAST ( - + CAST ( - 55 AS INTEGER ) AS INTEGER ) * + 28 / + + COUNT ( * ) ) AS col0
----
54
-73

query II rowsort
SELECT DISTINCT 46 * 20 AS col2, 13 AS col1
----
920
13

query I rowsort
SELECT 45 - + 6 AS col2
----
39

onlyif mysql # aggregate syntax: 
query II rowsort label-4907
SELECT ALL + - 98 + - + 83 + - 13 * COUNT( * ) * + - 53 AS col2, COUNT( * ) * 32
----
508
32

skipif mysql # not compatible
query II rowsort label-4907
SELECT ALL + - 98 + - + 83 + - 13 * COUNT ( * ) * + - 53 AS col2, COUNT ( * ) * 32
----
508
32

query I rowsort
SELECT DISTINCT + ( + + 26 ) + 71
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-4909
SELECT ALL + 48 * + 71 - + - 53 + ( 4 ) DIV + 6
----
3461

skipif mysql # not compatible
query I rowsort label-4909
SELECT ALL + 48 * + 71 - + - 53 + ( 4 ) / + 6
----
3461

query I rowsort
SELECT DISTINCT + 90 * - 19
----
-1710

query I rowsort
SELECT ALL + - 6 + + 76 AS col2
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-4912
SELECT 70 + - + COUNT( * ) + 71 * - NULLIF ( 28, - 10 + + 30 ) col2
----
-1919

skipif mysql # not compatible
query I rowsort label-4912
SELECT 70 + - + COUNT ( * ) + 71 * - NULLIF ( 28, - 10 + + 30 ) col2
----
-1919

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4913
SELECT + 93 + - CAST( 21 AS SIGNED )
----
72

skipif mysql # not compatible
query I rowsort label-4913
SELECT + 93 + - CAST ( 21 AS INTEGER )
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4914
SELECT + - 28 * - + 58 * 86 + + CASE + 82 WHEN - CAST( NULL AS SIGNED ) THEN - 20 + - CAST( - 60 AS SIGNED ) + 64 * COALESCE ( + + 25, 80 + - 67 * - 64 ) * + 9 END * - COUNT( * ) / + + AVG ( + 58 ) + + NULLIF ( - 77, 8 * - COUNT( * ) * - - 91 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4914
SELECT + - 28 * - + 58 * 86 + + CASE + 82 WHEN - CAST ( NULL AS INTEGER ) THEN - 20 + - CAST ( - 60 AS INTEGER ) + 64 * COALESCE ( + + 25, 80 + - 67 * - 64 ) * + 9 END * - COUNT ( * ) / + + AVG ( + 58 ) + + NULLIF ( - 77, 8 * - COUNT ( * ) * - - 91 ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4915
SELECT DISTINCT - + CAST( + 21 AS SIGNED ) + 9 + + + COUNT( * ) + 40 * 70 AS col1
----
2789

skipif mysql # not compatible
query I rowsort label-4915
SELECT DISTINCT - + CAST ( + 21 AS INTEGER ) + 9 + + + COUNT ( * ) + 40 * 70 AS col1
----
2789

onlyif mysql # aggregate syntax: 
query I rowsort label-4916
SELECT ALL - ( + COALESCE ( COUNT( * ), - 80 * + 68, 61 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4916
SELECT ALL - ( + COALESCE ( COUNT ( * ), - 80 * + 68, 61 ) )
----
-1

query I rowsort
SELECT ALL 73 + + + 85 + 45 * - + 17
----
-607

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4918
SELECT + CAST( - 44 AS SIGNED ), 70 * + 81 AS col2
----
-44
5670

skipif mysql # not compatible
query II rowsort label-4918
SELECT + CAST ( - 44 AS INTEGER ), 70 * + 81 AS col2
----
-44
5670

query I rowsort
SELECT DISTINCT - + 89 + - 90
----
-179

query I rowsort
SELECT ALL - 2 - + - 39 AS col2
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4921
SELECT + COUNT( * ) * - - ( - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4921
SELECT + COUNT ( * ) * - - ( - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT - 79 * - - 63 AS col2
----
-4977

onlyif mysql # aggregate syntax: 
query I rowsort label-4923
SELECT 78 * 65 + + COUNT( * ) AS col2
----
5071

skipif mysql # not compatible
query I rowsort label-4923
SELECT 78 * 65 + + COUNT ( * ) AS col2
----
5071

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4924
SELECT DISTINCT 13 - CAST( NULL AS DECIMAL ) + + - CASE 72 WHEN 11 THEN NULL ELSE 91 + + - COUNT( * ) END + - COUNT( ALL + 92 ) + + 0
----
NULL

skipif mysql # not compatible
query I rowsort label-4924
SELECT DISTINCT 13 - CAST ( NULL AS REAL ) + + - CASE 72 WHEN 11 THEN NULL ELSE 91 + + - COUNT ( * ) END + - COUNT ( ALL + 92 ) + + 0
----
NULL

query II rowsort
SELECT ALL - 48 AS col0, - 73 AS col1
----
-48
-73

query II rowsort
SELECT + 78, - 51 AS col0
----
78
-51

query I rowsort
SELECT 22 + 37
----
59

query I rowsort
SELECT ALL 65 * + 7 AS col0
----
455

query I rowsort
SELECT 99 - - + ( + 8 )
----
107

query I rowsort
SELECT DISTINCT - 6 * - + 5
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4931
SELECT COUNT( * ) DIV - 65 DIV 10 * - - 42 * MIN( ALL - 75 ) AS col2, - 9 AS col1
----
0
-9

skipif mysql # not compatible
query II rowsort label-4931
SELECT COUNT