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 ( * ) / - 65 / 10 * - - 42 * MIN ( ALL - 75 ) AS col2, - 9 AS col1
----
0
-9

query I rowsort
SELECT ALL 12 * + 47 AS col0
----
564

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

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

query I rowsort
SELECT ALL 29 * - ( + 62 )
----
-1798

query I rowsort
SELECT 99 + 21
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-4936
SELECT 43 * MAX( DISTINCT - 85 ) - - 16
----
-3639

skipif mysql # not compatible
query I rowsort label-4936
SELECT 43 * MAX ( DISTINCT - 85 ) - - 16
----
-3639

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4937
SELECT COALESCE ( 70, + COUNT( * ) ) DIV + 10
----
7

skipif mysql # not compatible
query I rowsort label-4937
SELECT COALESCE ( 70, + COUNT ( * ) ) / + 10
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4938
SELECT COUNT( * ) + - 77 + + CAST( NULL AS SIGNED ) + 63 + 25 AS col0, + 42 * + 3 - + + MAX( ALL - 39 ) AS col1
----
NULL
165

skipif mysql # not compatible
query II rowsort label-4938
SELECT COUNT ( * ) + - 77 + + CAST ( NULL AS INTEGER ) + 63 + 25 AS col0, + 42 * + 3 - + + MAX ( ALL - 39 ) AS col1
----
NULL
165

onlyif mysql # DIV for integer division: 
query I rowsort label-4939
SELECT COALESCE ( - 54, + + 82 + - 32 + 16 * - 39 + 92 ) - + - 96 DIV 40
----
-52

skipif mysql # not compatible
query I rowsort label-4939
SELECT COALESCE ( - 54, + + 82 + - 32 + 16 * - 39 + 92 ) - + - 96 / 40
----
-52

onlyif mysql # aggregate syntax: 
query II rowsort label-4940
SELECT ALL 8 col0, + 82 + + 2 + COUNT( * ) AS col0
----
8
85

skipif mysql # not compatible
query II rowsort label-4940
SELECT ALL 8 col0, + 82 + + 2 + COUNT ( * ) AS col0
----
8
85

onlyif mysql # aggregate syntax: 
query II rowsort label-4941
SELECT 53 * - 71 + 61 * - NULLIF ( 5, + 54 ) - - 94 + + - MIN( + 69 ) * - 21, 47 AS col1
----
-2525
47

skipif mysql # not compatible
query II rowsort label-4941
SELECT 53 * - 71 + 61 * - NULLIF ( 5, + 54 ) - - 94 + + - MIN ( + 69 ) * - 21, 47 AS col1
----
-2525
47

query I rowsort
SELECT 53 + 96
----
149

query I rowsort
SELECT ( 22 ) + + 74
----
96

query II rowsort
SELECT ALL 68 AS col2, - 74
----
68
-74

query I rowsort
SELECT 43 + - 83 + + - 80
----
-120

query I rowsort
SELECT DISTINCT 76 + + - 13 AS col2
----
63

query I rowsort
SELECT + 25 + 39 col2
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4948
SELECT 39 * - 11 * 79 * - - 94 * CASE + CAST( 95 AS SIGNED ) WHEN 79 THEN + + 38 + + + 25 WHEN + + 78 THEN - COUNT( * ) + - - 89 - 27 / - CAST( NULL AS SIGNED ) ELSE NULL END + + NULLIF ( - 21, - 63 + - 66 ) * + MAX( ALL 53 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4948
SELECT 39 * - 11 * 79 * - - 94 * CASE + CAST ( 95 AS INTEGER ) WHEN 79 THEN + + 38 + + + 25 WHEN + + 78 THEN - COUNT ( * ) + - - 89 - 27 / - CAST ( NULL AS INTEGER ) ELSE NULL END + + NULLIF ( - 21, - 63 + - 66 ) * + MAX ( ALL 53 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4949
SELECT ALL - - 42 * + + 66 * ( COALESCE ( + 48, 39 * + NULLIF ( ( + 90 ), - + NULLIF ( + - 32, 97 - CASE 13 WHEN 97 + + CASE - 87 WHEN + 63 THEN - + CAST( - + COALESCE ( 75, - ( - MIN( DISTINCT + 23 ) ), 87 ) AS SIGNED ) * 14 / - CAST( 38 AS SIGNED ) END THEN + 81 END ) * + 49 - - 57 ) + + NULLIF ( + COUNT( * ), + COALESCE ( - 72, 40 ) ) ) ) AS col2
----
133056

skipif mysql # not compatible
query I rowsort label-4949
SELECT ALL - - 42 * + + 66 * ( COALESCE ( + 48, 39 * + NULLIF ( ( + 90 ), - + NULLIF ( + - 32, 97 - CASE 13 WHEN 97 + + CASE - 87 WHEN + 63 THEN - + CAST ( - + COALESCE ( 75, - ( - MIN ( DISTINCT + 23 ) ), 87 ) AS INTEGER ) * 14 / - CAST ( 38 AS INTEGER ) END THEN + 81 END ) * + 49 - - 57 ) + + NULLIF ( + COUNT ( * ), + COALESCE ( - 72, 40 ) ) ) ) AS col2
----
133056

query I rowsort
SELECT 28 + - - 90 AS col2
----
118

query II rowsort
SELECT - - 16 AS col0, 2 * - 3 AS col2
----
16
-6

query I rowsort
SELECT - 91 * + - 58 AS col0
----
5278

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4954
SELECT ALL + SUM( DISTINCT + ( + - 89 ) ) + - 12 * + ( 65 )
----
-869

skipif mysql # not compatible
query I rowsort label-4954
SELECT ALL + SUM ( DISTINCT + ( + - 89 ) ) + - 12 * + ( 65 )
----
-869

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

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

query I rowsort
SELECT ALL + 75 * + + 0 * + - 90 * + 54 AS col0
----
0

query I rowsort
SELECT 85 + - 93 AS col2
----
-8

query I rowsort
SELECT - 93 - + 43
----
-136

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4960
SELECT + 3 * + 61 * + - 20 - + COUNT( + 53 ) * 81 + + COUNT( * ) + 7
----
-3733

skipif mysql # not compatible
query I rowsort label-4960
SELECT + 3 * + 61 * + - 20 - + COUNT ( + 53 ) * 81 + + COUNT ( * ) + 7
----
-3733

onlyif mysql # aggregate syntax: 
query I rowsort label-4961
SELECT - 77 * 35 - + + MAX( - 35 ) AS col0
----
-2660

skipif mysql # not compatible
query I rowsort label-4961
SELECT - 77 * 35 - + + MAX ( - 35 ) AS col0
----
-2660

onlyif mysql # aggregate syntax: 
query I rowsort label-4962
SELECT ALL - + 87 * ( - 76 ) + + + COUNT( * ) + + 50
----
6663

skipif mysql # not compatible
query I rowsort label-4962
SELECT ALL - + 87 * ( - 76 ) + + + COUNT ( * ) + + 50
----
6663

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT + ( - 65 ) col1
----
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4968
SELECT - 6 - - - COUNT( * ) DIV - 91 AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-4968
SELECT - 6 - - - COUNT ( * ) / - 91 AS col2
----
-6

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

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

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

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

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

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

query I rowsort
SELECT + 0 * 10 AS col1
----
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-4974
SELECT ALL 52 + + 45 DIV + + 65 AS col1
----
52

skipif mysql # not compatible
query I rowsort label-4974
SELECT ALL 52 + + 45 / + + 65 AS col1
----
52

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-4976
SELECT + 9 DIV + NULLIF ( + 85, - 63 DIV + 38 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4976
SELECT + 9 / + NULLIF ( + 85, - 63 / + 38 ) AS col0
----
0

query I rowsort
SELECT - 48 - ( + 84 )
----
-132

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

query II rowsort
SELECT ALL + 10 AS col2, + 29 AS col1
----
10
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4980
SELECT + + MAX( + - 82 ) + - 4 + - + 76 * MIN( ALL + ( - 72 ) ) AS col0
----
5386

skipif mysql # not compatible
query I rowsort label-4980
SELECT + + MAX ( + - 82 ) + - 4 + - + 76 * MIN ( ALL + ( - 72 ) ) AS col0
----
5386

onlyif mysql # DIV for integer division: 
query I rowsort label-4981
SELECT ALL 6 DIV + - 2 + - - 63
----
60

skipif mysql # not compatible
query I rowsort label-4981
SELECT ALL 6 / + - 2 + - - 63
----
60

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-4983
SELECT - - 76 DIV - 79
----
0

skipif mysql # not compatible
query I rowsort label-4983
SELECT - - 76 / - 79
----
0

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

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

query II rowsort
SELECT - - 74 AS col2, + 49 AS col0
----
74
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4986
SELECT ALL + 96 + - + 80 * - - CAST( + + 42 AS SIGNED ) col2, COUNT( * )
----
-3264
1

skipif mysql # not compatible
query II rowsort label-4986
SELECT ALL + 96 + - + 80 * - - CAST ( + + 42 AS INTEGER ) col2, COUNT ( * )
----
-3264
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4987
SELECT + CAST( - - 93 AS SIGNED ) - - 85 * 47 + + + 12 + ( - - COUNT( * ) ) AS col1
----
4101

skipif mysql # not compatible
query I rowsort label-4987
SELECT + CAST ( - - 93 AS INTEGER ) - - 85 * 47 + + + 12 + ( - - COUNT ( * ) ) AS col1
----
4101

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4988
SELECT - 82 AS col0, ( + COUNT( * ) ) DIV + 39 * + + 13 * + 90 - + 74 * - 49 col1
----
-82
3626

skipif mysql # not compatible
query II rowsort label-4988
SELECT - 82 AS col0, ( + COUNT ( * ) ) / + 39 * + + 13 * + 90 - + 74 * - 49 col1
----
-82
3626

onlyif mysql # aggregate syntax: 
query I rowsort label-4989
SELECT DISTINCT CASE WHEN + 24 NOT BETWEEN - - 96 + + + 40 * + - 59 AND - 41 THEN - 10 - SUM( DISTINCT - + 26 ) END AS col2
----
16

skipif mysql # not compatible
query I rowsort label-4989
SELECT DISTINCT CASE WHEN + 24 NOT BETWEEN - - 96 + + + 40 * + - 59 AND - 41 THEN - 10 - SUM ( DISTINCT - + 26 ) END AS col2
----
16

query II rowsort
SELECT - 33 AS col0, 43 * + 30
----
-33
1290

query I rowsort
SELECT + 78 + + 79 AS col2
----
157

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

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

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

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

query I rowsort
SELECT + + 64 * - 84
----
-5376

query I rowsort
SELECT - 48 * - 35 AS col0
----
1680

onlyif mysql # DIV for integer division: 
query I rowsort label-4996
SELECT 61 DIV - 46 + - + ( - 3 ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-4996
SELECT 61 / - 46 + - + ( - 3 ) AS col0
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4997
SELECT - 83 + + 52 + 7 + - CASE + COALESCE ( + + 30, 49 * COALESCE ( + ( CAST( NULL AS SIGNED ) ), + 90 ) + 93 ) WHEN + + 69 THEN 72 WHEN + 49 THEN NULL END * - 66
----
NULL

skipif mysql # not compatible
query I rowsort label-4997
SELECT - 83 + + 52 + 7 + - CASE + COALESCE ( + + 30, 49 * COALESCE ( + ( CAST ( NULL AS INTEGER ) ), + 90 ) + 93 ) WHEN + + 69 THEN 72 WHEN + 49 THEN NULL END * - 66
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4998
SELECT - 0 DIV + - 21 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4998
SELECT - 0 / + - 21 AS col2
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-4999
SELECT ( + 97 ), + 6 DIV + ( - + 87 ) * - - 89 AS col1
----
97
0

skipif mysql # not compatible
query II rowsort label-4999
SELECT ( + 97 ), + 6 / + ( - + 87 ) * - - 89 AS col1
----
97
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5000
SELECT + MIN( DISTINCT - - 67 ) AS col1
----
67

skipif mysql # not compatible
query I rowsort label-5000
SELECT + MIN ( DISTINCT - - 67 ) AS col1
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-5001
SELECT - 64 DIV + + 52 col2
----
-1

skipif mysql # not compatible
query I rowsort label-5001
SELECT - 64 / + + 52 col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5002
SELECT ALL + 36 * + - 71 / COUNT( * ) + CASE - CAST( NULL AS SIGNED ) WHEN + + 79 * 39 / + 32 * + 73 + 37 + + - 32 / - 44 - + 5 THEN + 8 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5002
SELECT ALL + 36 * + - 71 / COUNT ( * ) + CASE - CAST ( NULL AS INTEGER ) WHEN + + 79 * 39 / + 32 * + 73 + 37 + + - 32 / - 44 - + 5 THEN + 8 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5003
SELECT COALESCE ( COUNT( * ), + 79 * - 68, - 90 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-5003
SELECT COALESCE ( COUNT ( * ), + 79 * - 68, - 90 ) col1
----
1

query I rowsort
SELECT ALL - 75 * - + 79 + - ( + 12 )
----
5913

query I rowsort
SELECT - 58 + + 27 + - - 35 - - + 11
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5006
SELECT + 44 * - + MIN( ALL - 94 ) + - - 19
----
4155

skipif mysql # not compatible
query I rowsort label-5006
SELECT + 44 * - + MIN ( ALL - 94 ) + - - 19
----
4155

onlyif mysql # aggregate syntax: 
query II rowsort label-5007
SELECT ALL - COUNT( * ) * - - 72 + + 82, - 0 AS col0
----
10
0

skipif mysql # not compatible
query II rowsort label-5007
SELECT ALL - COUNT ( * ) * - - 72 + + 82, - 0 AS col0
----
10
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5008
SELECT DISTINCT + 26 * 85 + 23 + + + 12 + CASE + CAST( NULL AS SIGNED ) WHEN 70 * + ( ( - - ( + 98 ) ) ) THEN NULL WHEN - 7 THEN 99 + - - 69 + - 67 * 70 / + 73 END + 46 * 41 * + 22 / + + NULLIF ( - ( + - 89 ), + - 37 + 75 + - 55 ) + 67 * - 54 / + 95 - - 6 * 76 * + 67 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5008
SELECT DISTINCT + 26 * 85 + 23 + + + 12 + CASE + CAST ( NULL AS INTEGER ) WHEN 70 * + ( ( - - ( + 98 ) ) ) THEN NULL WHEN - 7 THEN 99 + - - 69 + - 67 * 70 / + 73 END + 46 * 41 * + 22 / + + NULLIF ( - ( + - 89 ), + - 37 + 75 + - 55 ) + 67 * - 54 / + 95 - - 6 * 76 * + 67 col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5009
SELECT - 98 + + 80 + + 2 / COUNT( * ) * + + 45 * 43 * + 61 - 43 + + 26 + + + 23 + - CAST( NULL AS SIGNED ) * 80
----
NULL

skipif mysql # not compatible
query I rowsort label-5009
SELECT - 98 + + 80 + + 2 / COUNT ( * ) * + + 45 * 43 * + 61 - 43 + + 26 + + + 23 + - CAST ( NULL AS INTEGER ) * 80
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5010
SELECT + 4 - - - ( + COALESCE ( - 68, 74, - - 19 * + MIN( - + 48 ) ) ) AS col0
----
72

skipif mysql # not compatible
query I rowsort label-5010
SELECT + 4 - - - ( + COALESCE ( - 68, 74, - - 19 * + MIN ( - + 48 ) ) ) AS col0
----
72

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

skipif mysql # not compatible
query I rowsort label-5011
SELECT + MAX ( - 34 )
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-5012
SELECT DISTINCT MIN( DISTINCT + CASE - + 52 WHEN ( + 77 ) THEN 92 WHEN - 70 THEN NULL END ) * - 49 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5012
SELECT DISTINCT MIN ( DISTINCT + CASE - + 52 WHEN ( + 77 ) THEN 92 WHEN - 70 THEN NULL END ) * - 49 col2
----
NULL

query I rowsort
SELECT ALL + 51 * - 66 + 7 - + 6
----
-3365

query I rowsort
SELECT - 82 + - ( - - 56 ) + + ( - + 64 ) + + 85 * - - 52 * 35 AS col2
----
154498

query I rowsort
SELECT DISTINCT + 9 * + 67 col0
----
603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5016
SELECT DISTINCT + - ( CAST( + + 19 AS SIGNED ) ) * + ( + + 37 ) * + 70
----
-49210

skipif mysql # not compatible
query I rowsort label-5016
SELECT DISTINCT + - ( CAST ( + + 19 AS INTEGER ) ) * + ( + + 37 ) * + 70
----
-49210

onlyif mysql # DIV for integer division: 
query I rowsort label-5017
SELECT + 9 + - + 48 + + - 39 DIV + - 42
----
-39

skipif mysql # not compatible
query I rowsort label-5017
SELECT + 9 + - + 48 + + - 39 / + - 42
----
-39

query II rowsort
SELECT + + 53 * - 57, - ( - 70 ) AS col0
----
-3021
70

onlyif mysql # aggregate syntax: 
query I rowsort label-5019
SELECT CASE - ( - - COUNT( * ) ) WHEN + 31 THEN - 84 * COALESCE ( - COALESCE ( - - COUNT( * ), + 8 ), 79 ) / + + 34 + + 90 * + CASE + NULLIF ( - - 19, + 63 * - 5 ) WHEN + 47 + + - 13 * - + 91 THEN - 51 ELSE NULL END * - 29 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5019
SELECT CASE - ( - - COUNT ( * ) ) WHEN + 31 THEN - 84 * COALESCE ( - COALESCE ( - - COUNT ( * ), + 8 ), 79 ) / + + 34 + + 90 * + CASE + NULLIF ( - - 19, + 63 * - 5 ) WHEN + 47 + + - 13 * - + 91 THEN - 51 ELSE NULL END * - 29 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5020
SELECT ALL - CASE - COUNT( ALL - - ( - 3 ) ) WHEN + ( - COUNT( * ) ) THEN NULL ELSE + 91 END AS col0, CASE + - 23 WHEN 71 THEN + COUNT( * ) WHEN 17 + + - 98 THEN - ( - 32 ) ELSE NULL END * + - ( + - 74 ) - + 86 - + - 77 + - 41 * + - 92 AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5020
SELECT ALL - CASE - COUNT ( ALL - - ( - 3 ) ) WHEN + ( - COUNT ( * ) ) THEN NULL ELSE + 91 END AS col0, CASE + - 23 WHEN 71 THEN + COUNT ( * ) WHEN 17 + + - 98 THEN - ( - 32 ) ELSE NULL END * + - ( + - 74 ) - + 86 - + - 77 + - 41 * + - 92 AS col0
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5021
SELECT ALL + CASE - - 22 WHEN - - 3 THEN - 2 + + 41 * - 67 ELSE + COUNT( ALL + 37 ) END AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5021
SELECT ALL + CASE - - 22 WHEN - - 3 THEN - 2 + + 41 * - 67 ELSE + COUNT ( ALL + 37 ) END AS col1
----
1

query II rowsort
SELECT + + 4 + 81 AS col1, + 49 AS col2
----
85
49

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5024
SELECT - COALESCE ( + 1, COUNT( ALL + 64 ) DIV - 12 - 25 DIV - - CAST( NULL AS SIGNED ) )
----
-1

skipif mysql # not compatible
query I rowsort label-5024
SELECT - COALESCE ( + 1, COUNT ( ALL + 64 ) / - 12 - 25 / - - CAST ( NULL AS INTEGER ) )
----
-1

query I rowsort
SELECT + - 29 + + ( - 83 ) AS col2
----
-112

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5027
SELECT ALL - 47, + MIN( + 22 ) * + + 31 + - 14 AS col0
----
-47
668

skipif mysql # not compatible
query II rowsort label-5027
SELECT ALL - 47, + MIN ( + 22 ) * + + 31 + - 14 AS col0
----
-47
668

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5028
SELECT - 73 * - - 97 + - 67 + - + 30 + 86 + + + CAST( NULL AS SIGNED ) + - + 38 * - 18 * - + 22 * 69 - - 1 * - COUNT( * ) / - 28 AS col0, 75 * COUNT( * )
----
NULL
75

skipif mysql # not compatible
query II rowsort label-5028
SELECT - 73 * - - 97 + - 67 + - + 30 + 86 + + + CAST ( NULL AS INTEGER ) + - + 38 * - 18 * - + 22 * 69 - - 1 * - COUNT ( * ) / - 28 AS col0, 75 * COUNT ( * )
----
NULL
75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5029
SELECT + 26, 88 * + NULLIF ( 35, - CAST( NULL AS SIGNED ) + + 52 ) AS col0
----
26
3080

skipif mysql # not compatible
query II rowsort label-5029
SELECT + 26, 88 * + NULLIF ( 35, - CAST ( NULL AS INTEGER ) + + 52 ) AS col0
----
26
3080

query I rowsort
SELECT DISTINCT COALESCE ( - 20, ( - 5 ), + 49 * - - 61 * - - 11 ) * + + 91
----
-1820

query II rowsort
SELECT - 73 * + + 85 - - 79 AS col2, + 56 AS col1
----
-6126
56

query II rowsort
SELECT 1 AS col2, 92 * - - 68
----
1
6256

query I rowsort
SELECT ALL ( - 68 ) * ( NULLIF ( - 54, + 84 ) )
----
3672

onlyif mysql # aggregate syntax: 
query I rowsort label-5034
SELECT 66 * - SUM( DISTINCT - 96 ) - - MAX( - 93 )
----
6243

skipif mysql # not compatible
query I rowsort label-5034
SELECT 66 * - SUM ( DISTINCT - 96 ) - - MAX ( - 93 )
----
6243

query II rowsort
SELECT + 40, 42 AS col0
----
40
42

query II rowsort
SELECT 53 + 77 - + 36, + 98 col2
----
94
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5037
SELECT ALL - CASE + + MIN( ALL + 53 ) WHEN + 72 - + 45 THEN + + CASE - 63 WHEN COUNT( * ) THEN NULL ELSE + 31 END ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5037
SELECT ALL - CASE + + MIN ( ALL + 53 ) WHEN + 72 - + 45 THEN + + CASE - 63 WHEN COUNT ( * ) THEN NULL ELSE + 31 END ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5038
SELECT ALL ( - - COUNT( * ) ) * CAST( - 36 AS SIGNED ) col1
----
-36

skipif mysql # not compatible
query I rowsort label-5038
SELECT ALL ( - - COUNT ( * ) ) * CAST ( - 36 AS INTEGER ) col1
----
-36

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

skipif mysql # not compatible
query I rowsort label-5039
SELECT DISTINCT COUNT ( * ) + 53 AS col1
----
54

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

query I rowsort
SELECT DISTINCT 81 + + - 44 AS col1
----
37

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5043
SELECT 82 AS col0, MIN( DISTINCT + 46 )
----
82
46

skipif mysql # not compatible
query II rowsort label-5043
SELECT 82 AS col0, MIN ( DISTINCT + 46 )
----
82
46

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

skipif mysql # not compatible
query I rowsort label-5044
SELECT ALL - COUNT ( DISTINCT + - 57 ) AS col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5045
SELECT + 15 * + CASE + 2 WHEN - 99 THEN NULL WHEN + + 92 + - 7 * 35 THEN + + 53 ELSE - + 94 END + - COALESCE ( + 81, 99 + + 54 - + 88 * COUNT( * ) DIV - MIN( - 25 ), - - ( 21 ) + + 93 - 21 )
----
-1491

skipif mysql # not compatible
query I rowsort label-5045
SELECT + 15 * + CASE + 2 WHEN - 99 THEN NULL WHEN + + 92 + - 7 * 35 THEN + + 53 ELSE - + 94 END + - COALESCE ( + 81, 99 + + 54 - + 88 * COUNT ( * ) / - MIN ( - 25 ), - - ( 21 ) + + 93 - 21 )
----
-1491

query I rowsort
SELECT 72 * - 9 AS col2
----
-648

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5047
SELECT ALL - 95 * + + COALESCE ( + COALESCE ( + CAST( NULL AS SIGNED ), - 35 + - - 61 * - 94, + 64 ), 79, 76 ) AS col2
----
548055

skipif mysql # not compatible
query I rowsort label-5047
SELECT ALL - 95 * + + COALESCE ( + COALESCE ( + CAST ( NULL AS INTEGER ), - 35 + - - 61 * - 94, + 64 ), 79, 76 ) AS col2
----
548055

onlyif mysql # aggregate syntax: 
query I rowsort label-5048
SELECT - COUNT( * ) + + - CASE + + ( + + 56 ) WHEN + COUNT( * ) THEN + MAX( - 56 ) WHEN - 19 + + + 51 THEN NULL WHEN 97 * - CASE + - NULLIF ( + 16, + + 2 ) WHEN + COALESCE ( - + 6, COUNT( * ) + + 85 ) THEN 2 + - 13 ELSE NULL END / + ( + COUNT( * ) ) + - COUNT( * ) + COUNT( * ) * SUM( ALL + - 17 ) - + COUNT( * ) THEN + + 95 + + 59 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5048
SELECT - COUNT ( * ) + + - CASE + + ( + + 56 ) WHEN + COUNT ( * ) THEN + MAX ( - 56 ) WHEN - 19 + + + 51 THEN NULL WHEN 97 * - CASE + - NULLIF ( + 16, + + 2 ) WHEN + COALESCE ( - + 6, COUNT ( * ) + + 85 ) THEN 2 + - 13 ELSE NULL END / + ( + COUNT ( * ) ) + - COUNT ( * ) + COUNT ( * ) * SUM ( ALL + - 17 ) - + COUNT ( * ) THEN + + 95 + + 59 END AS col1
----
NULL

query I rowsort
SELECT ALL + 29 - + - 95 * + + 16 + + 75 + + + 97 * - 3
----
1333

query I rowsort
SELECT 83 * + - ( - 39 )
----
3237

query I rowsort
SELECT DISTINCT 31 * 4
----
124

onlyif mysql # aggregate syntax: 
query II rowsort label-5052
SELECT - 27, MIN( + 91 ) AS col2
----
-27
91

skipif mysql # not compatible
query II rowsort label-5052
SELECT - 27, MIN ( + 91 ) AS col2
----
-27
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5053
SELECT ALL CASE - COUNT( * ) WHEN + 40 * - 16 THEN 17 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5053
SELECT ALL CASE - COUNT ( * ) WHEN + 40 * - 16 THEN 17 END AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-5054
SELECT - SUM ( DISTINCT 21 )
----
-21

query I rowsort
SELECT 83 * 58
----
4814

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

query I rowsort
SELECT ALL - 53 * + + 84 AS col2
----
-4452

onlyif mysql # aggregate syntax: 
query II rowsort label-5058
SELECT ALL + 6 AS col1, - 29 * NULLIF ( - 70, + + 73 ) * - + COUNT( * ) * + + 92
----
6
-186760

skipif mysql # not compatible
query II rowsort label-5058
SELECT ALL + 6 AS col1, - 29 * NULLIF ( - 70, + + 73 ) * - + COUNT ( * ) * + + 92
----
6
-186760

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5059
SELECT DISTINCT - - 38 DIV + - COUNT( * ) + + - 35 * 15 DIV - + 67 AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-5059
SELECT DISTINCT - - 38 / + - COUNT ( * ) + + - 35 * 15 / - + 67 AS col0
----
-31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5060
SELECT + 9 - - 26 DIV - - 2 DIV + ( COUNT( * ) ) + MAX( DISTINCT - 93 ) AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-5060
SELECT + 9 - - 26 / - - 2 / + ( COUNT ( * ) ) + MAX ( DISTINCT - 93 ) AS col0
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5061
SELECT ALL - CAST( MAX( DISTINCT + - 37 ) AS SIGNED ) * + + COUNT( * ) AS col1
----
37

skipif mysql # not compatible
query I rowsort label-5061
SELECT ALL - CAST ( MAX ( DISTINCT + - 37 ) AS INTEGER ) * + + COUNT ( * ) AS col1
----
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5062
SELECT - COALESCE ( - 60, 12, + + SUM( - - 99 ) ) DIV 39 * - 52
----
-52

skipif mysql # not compatible
query I rowsort label-5062
SELECT - COALESCE ( - 60, 12, + + SUM ( - - 99 ) ) / 39 * - 52
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-5063
SELECT COUNT( * ) + + - 72 col2
----
-71

skipif mysql # not compatible
query I rowsort label-5063
SELECT COUNT ( * ) + + - 72 col2
----
-71

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5065
SELECT ALL + 89 + - - CAST( - + COUNT( * ) AS SIGNED ) AS col1
----
88

skipif mysql # not compatible
query I rowsort label-5065
SELECT ALL + 89 + - - CAST ( - + COUNT ( * ) AS INTEGER ) AS col1
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-5066
SELECT 8 DIV + + 27 * 98
----
0

skipif mysql # not compatible
query I rowsort label-5066
SELECT 8 / + + 27 * 98
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5067
SELECT COUNT( * ) + - COUNT( * ) - - CAST( - - 83 AS SIGNED ) + ( ( - + 79 ) ) - - - NULLIF ( ( 36 ), - MAX( + + 73 ) * + - COUNT( * ) + 78 )
----
-32

skipif mysql # not compatible
query I rowsort label-5067
SELECT COUNT ( * ) + - COUNT ( * ) - - CAST ( - - 83 AS INTEGER ) + ( ( - + 79 ) ) - - - NULLIF ( ( 36 ), - MAX ( + + 73 ) * + - COUNT ( * ) + 78 )
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5068
SELECT - NULLIF ( - 24, + - CASE WHEN NOT COUNT( * ) IS NOT NULL THEN - 1 ELSE - 73 / + CASE COUNT( * ) WHEN - 38 + - 18 + 52 THEN - NULLIF ( - - 41, + COUNT( - 43 ) ) END * - - 81 - - 22 END ) / + 82 + - ( - 75 ) + COALESCE ( 87, + 29, + 34 ) - + CAST( NULL AS SIGNED ) * + SUM( DISTINCT + COALESCE ( - 70, - + 26 - + - 63 * 22 ) ), + 92 + + 51 AS col0
----
NULL
143

skipif mysql # not compatible
query II rowsort label-5068
SELECT - NULLIF ( - 24, + - CASE WHEN NOT COUNT ( * ) IS NOT NULL THEN - 1 ELSE - 73 / + CASE COUNT ( * ) WHEN - 38 + - 18 + 52 THEN - NULLIF ( - - 41, + COUNT ( - 43 ) ) END * - - 81 - - 22 END ) / + 82 + - ( - 75 ) + COALESCE ( 87, + 29, + 34 ) - + CAST ( NULL AS INTEGER ) * + SUM ( DISTINCT + COALESCE ( - 70, - + 26 - + - 63 * 22 ) ), + 92 + + 51 AS col0
----
NULL
143

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5069
SELECT CAST( - + 60 AS SIGNED ) * - 67 AS col2
----
4020

skipif mysql # not compatible
query I rowsort label-5069
SELECT CAST ( - + 60 AS INTEGER ) * - 67 AS col2
----
4020

onlyif mysql # aggregate syntax: 
query I rowsort label-5070
SELECT ALL COUNT( * ) + + 45 * + 80
----
3601

skipif mysql # not compatible
query I rowsort label-5070
SELECT ALL COUNT ( * ) + + 45 * + 80
----
3601

onlyif mysql # aggregate syntax: 
query I rowsort label-5071
SELECT MAX( 81 ) AS col2
----
81

skipif mysql # not compatible
query I rowsort label-5071
SELECT MAX ( 81 ) AS col2
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5072
SELECT ALL COUNT( DISTINCT 60 ) + - + 40 AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-5072
SELECT ALL COUNT ( DISTINCT 60 ) + - + 40 AS col1
----
-39

query I rowsort
SELECT DISTINCT - COALESCE ( - + 72, - - 65, 82 * 11 ) + + + 85 col1
----
157

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5074
SELECT MAX( ALL - + 27 ) * + COUNT( * ) + 81 DIV + COUNT( * ) AS col1
----
54

skipif mysql # not compatible
query I rowsort label-5074
SELECT MAX ( ALL - + 27 ) * + COUNT ( * ) + 81 / + COUNT ( * ) AS col1
----
54

query I rowsort
SELECT - 36 * - 45 + + 2
----
1622

query I rowsort
SELECT DISTINCT 86 - - ( - 5 ) + - + 81 * + 91
----
-7290

query I rowsort
SELECT 52 + 2 col2
----
54

onlyif mysql # aggregate syntax: 
query II rowsort label-5078
SELECT DISTINCT 16 * + 24 + - + ( + 80 ) + - 34 + - - 28 + COUNT( * ), - 10 - + 86 AS col0
----
299
-96

skipif mysql # not compatible
query II rowsort label-5078
SELECT DISTINCT 16 * + 24 + - + ( + 80 ) + - 34 + - - 28 + COUNT ( * ), - 10 - + 86 AS col0
----
299
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-5079
SELECT DISTINCT + 72 - + - COALESCE ( - + 21, - 48 * - MIN( ( + - 54 ) ) ) AS col2
----
51

skipif mysql # not compatible
query I rowsort label-5079
SELECT DISTINCT + 72 - + - COALESCE ( - + 21, - 48 * - MIN ( ( + - 54 ) ) ) AS col2
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5080
SELECT ALL - CAST( NULL AS SIGNED ) / - 88 col0, + 90 + + 93 AS col0
----
NULL
183

skipif mysql # not compatible
query II rowsort label-5080
SELECT ALL - CAST ( NULL AS INTEGER ) / - 88 col0, + 90 + + 93 AS col0
----
NULL
183

onlyif mysql # aggregate syntax: 
query I rowsort label-5081
SELECT 3 * - COUNT( * ) + - + ( - - 47 ) * - 79 + + + 60 + COUNT( ALL - 87 )
----
3771

skipif mysql # not compatible
query I rowsort label-5081
SELECT 3 * - COUNT ( * ) + - + ( - - 47 ) * - 79 + + + 60 + COUNT ( ALL - 87 )
----
3771

onlyif mysql # aggregate syntax: 
query II rowsort label-5082
SELECT ALL - MAX( - 38 ), 56 AS col1
----
38
56

skipif mysql # not compatible
query II rowsort label-5082
SELECT ALL - MAX ( - 38 ), 56 AS col1
----
38
56

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

query I rowsort
SELECT 21 * + 4
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-5085
SELECT ALL 61 DIV 62 + + + 21
----
21

skipif mysql # not compatible
query I rowsort label-5085
SELECT ALL 61 / 62 + + + 21
----
21

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5088
SELECT + - COUNT( * ) * + + 1 + + + 17 + - - 59 - 23 * 92 + - - 81 AS col0
----
-1960

skipif mysql # not compatible
query I rowsort label-5088
SELECT + - COUNT ( * ) * + + 1 + + + 17 + - - 59 - 23 * 92 + - - 81 AS col0
----
-1960

query I rowsort
SELECT 98 + 52 + + 69 AS col2
----
219

query II rowsort
SELECT 0 * + 52 * 59 * + - 4 AS col1, 62 AS col1
----
0
62

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5092
SELECT ALL - COUNT( * ) + + 51 * + 19
----
968

skipif mysql # not compatible
query I rowsort label-5092
SELECT ALL - COUNT ( * ) + + 51 * + 19
----
968

query I rowsort
SELECT ALL - 7 + - 5 AS col0
----
-12

query II rowsort
SELECT - + 27 + - 68 AS col1, 40 - - + ( - 66 ) AS col1
----
-95
-26

query I rowsort
SELECT ALL + + ( 18 ) + - 90 AS col0
----
-72

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5097
SELECT - 89 + - COUNT( * ) * - - 51 + COUNT( 25 ) AS col2, 33
----
-139
33

skipif mysql # not compatible
query II rowsort label-5097
SELECT - 89 + - COUNT ( * ) * - - 51 + COUNT ( 25 ) AS col2, 33
----
-139
33

query II rowsort
SELECT - 47 * 33 * + 2 AS col0, - 36
----
-3102
-36

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

skipif mysql # not compatible
query I rowsort label-5099
SELECT - 53 + + + 36 + - + ( - COUNT ( * ) ) AS col1
----
-16

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

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

query I rowsort
SELECT ALL - 3 + + 23 + - + 12 * + 24 AS col2
----
-268

query I rowsort
SELECT - 17 * + - 94 AS col1
----
1598

query I rowsort
SELECT ALL - 30 * + + 88 AS col2
----
-2640

query I rowsort
SELECT - 35 + 84 AS col2
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-5106
SELECT + 70 DIV - 36 col0
----
-1

skipif mysql # not compatible
query I rowsort label-5106
SELECT + 70 / - 36 col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5107
SELECT - 81 * - + 90 * - + CASE - 88 WHEN - 61 + + 95 * + 60 THEN - 45 * + + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5107
SELECT - 81 * - + 90 * - + CASE - 88 WHEN - 61 + + 95 * + 60 THEN - 45 * + + COUNT ( * ) END
----
NULL

query I rowsort
SELECT ( - 14 ) AS col2
----
-14

query I rowsort
SELECT NULLIF ( 48, 77 - - 68 )
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5110
SELECT DISTINCT 88 * MAX( 72 ) * + ( ( CAST( - - 96 AS SIGNED ) ) ) + + + 11 + 54 - - + COALESCE ( CAST( NULL AS SIGNED ), COUNT( * ) * + - ( 18 ), + - COUNT( * ) ) - - NULLIF ( CAST( NULL AS SIGNED ), - 32 / - 51 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5110
SELECT DISTINCT 88 * MAX ( 72 ) * + ( ( CAST ( - - 96 AS INTEGER ) ) ) + + + 11 + 54 - - + COALESCE ( CAST ( NULL AS INTEGER ), COUNT ( * ) * + - ( 18 ), + - COUNT ( * ) ) - - NULLIF ( CAST ( NULL AS INTEGER ), - 32 / - 51 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5111
SELECT - MAX( ALL 64 ) * - - 80 + 24
----
-5096

skipif mysql # not compatible
query I rowsort label-5111
SELECT - MAX ( ALL 64 ) * - - 80 + 24
----
-5096

query I rowsort
SELECT + CASE WHEN NOT ( NULL ) < NULL THEN NULL ELSE - 53 END + + + 19 AS col0
----
-34

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

query I rowsort
SELECT ALL 98 * - 21
----
-2058

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

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

query II rowsort
SELECT + ( - + 93 ) * + - 55 AS col1, NULLIF ( 53, + 72 * + + 37 * - 22 ) + - 2 AS col0
----
5115
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5117
SELECT - COUNT( * ) * - - 81 + - + 16 + + 26 - - 60 * - + 81 * 52 * - 37 AS col0
----
9350569

skipif mysql # not compatible
query I rowsort label-5117
SELECT - COUNT ( * ) * - - 81 + - + 16 + + 26 - - 60 * - + 81 * 52 * - 37 AS col0
----
9350569

query I rowsort
SELECT + 89 * NULLIF ( - COALESCE ( - 23, 48, + + 76 + + 5 ), + + 98 + - 50 )
----
2047

query I rowsort
SELECT + - 97 * - 68 * + - 32 - 79 * - 95 AS col2
----
-203567

onlyif mysql # aggregate syntax: 
query I rowsort label-5120
SELECT + CASE 80 WHEN - COUNT( * ) * - + ( - COUNT( * ) ) THEN 55 ELSE - - 91 + - - 26 + 78 * 70 * + + 64 - + 36 END
----
349521

skipif mysql # not compatible
query I rowsort label-5120
SELECT + CASE 80 WHEN - COUNT ( * ) * - + ( - COUNT ( * ) ) THEN 55 ELSE - - 91 + - - 26 + 78 * 70 * + + 64 - + 36 END
----
349521

query II rowsort
SELECT 18, ( - - 21 ) + - - 35 AS col2
----
18
56

onlyif mysql # aggregate syntax: 
query I rowsort label-5122
SELECT ALL 75 + MIN( DISTINCT 18 )
----
93

skipif mysql # not compatible
query I rowsort label-5122
SELECT ALL 75 + MIN ( DISTINCT 18 )
----
93

query I rowsort
SELECT - + NULLIF ( - ( 71 ), - + 75 + - 56 ) AS col0
----
71

query I rowsort
SELECT + - 20 + - 36 AS col1
----
-56

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

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

query I rowsort
SELECT + 24 + + 36
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5127
SELECT DISTINCT CASE + CAST( NULL AS SIGNED ) WHEN 52 * - 94 / + 69 * COUNT( + 40 ) + - ( + 28 ) THEN + 21 + - 79 / + ( 91 ) + 7 WHEN - CAST( + ( - 95 ) AS SIGNED ) + + 96 THEN ( - + 2 ) * - 33 WHEN 34 THEN NULL END + - - CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5127
SELECT DISTINCT CASE + CAST ( NULL AS INTEGER ) WHEN 52 * - 94 / + 69 * COUNT ( + 40 ) + - ( + 28 ) THEN + 21 + - 79 / + ( 91 ) + 7 WHEN - CAST ( + ( - 95 ) AS INTEGER ) + + 96 THEN ( - + 2 ) * - 33 WHEN 34 THEN NULL END + - - CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5128
SELECT DISTINCT COALESCE ( 30, SUM( DISTINCT + - 31 ) ) AS col1
----
30

skipif mysql # not compatible
query I rowsort label-5128
SELECT DISTINCT COALESCE ( 30, SUM ( DISTINCT + - 31 ) ) AS col1
----
30

query I rowsort
SELECT - 94 + + 43 AS col0
----
-51

query I rowsort
SELECT DISTINCT COALESCE ( + - 24, + 80, - + 71 * - 87 ) AS col2
----
-24

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

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

query I rowsort
SELECT + 58 + - 74 * - 50 col0
----
3758

onlyif mysql # aggregate syntax: 
query I rowsort label-5133
SELECT - MAX( ALL - + 40 ) * - - 29
----
1160

skipif mysql # not compatible
query I rowsort label-5133
SELECT - MAX ( ALL - + 40 ) * - - 29
----
1160

query I rowsort
SELECT - 34 + - - 34 + - CASE WHEN NOT ( NULL ) > NULL THEN NULL ELSE - - 44 END + - - 45 AS col0
----
1

query II rowsort
SELECT ALL + 17, + 24 col0
----
17
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5136
SELECT - COUNT( * ) * + 63 AS col2, 40 * CAST( COALESCE ( + SUM( 62 ), 71 + - + 28 ) AS SIGNED ) * - - 90
----
-63
223200

skipif mysql # not compatible
query II rowsort label-5136
SELECT - COUNT ( * ) * + 63 AS col2, 40 * CAST ( COALESCE ( + SUM ( 62 ), 71 + - + 28 ) AS INTEGER ) * - - 90
----
-63
223200

query I rowsort
SELECT ALL + 64 * 98
----
6272

query II rowsort
SELECT ALL + 36 AS col2, 79 + - + 20 AS col2
----
36
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5139
SELECT 73 DIV - COUNT( * ) + 59 + - + 65 DIV - 9
----
-7

skipif mysql # not compatible
query I rowsort label-5139
SELECT 73 / - COUNT ( * ) + 59 + - + 65 / - 9
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5140
SELECT - CASE COUNT( * ) WHEN + ( 33 ) THEN + - 34 WHEN + 50 THEN 49 + + COALESCE ( ( - - MIN( DISTINCT 62 ) ), - 2 * 49 ) * - + COUNT( * ) + - - CAST( NULL AS SIGNED ) ELSE NULL END + - 70 + + 60 * 69 + MIN( + 24 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5140
SELECT - CASE COUNT ( * ) WHEN + ( 33 ) THEN + - 34 WHEN + 50 THEN 49 + + COALESCE ( ( - - MIN ( DISTINCT 62 ) ), - 2 * 49 ) * - + COUNT ( * ) + - - CAST ( NULL AS INTEGER ) ELSE NULL END + - 70 + + 60 * 69 + MIN ( + 24 )
----
NULL

query II rowsort
SELECT ALL + 52 AS col2, - 6
----
52
-6

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5143
SELECT ALL + + 49 * - + MIN( 94 ) * - SUM( 14 )
----
64484

skipif mysql # not compatible
query I rowsort label-5143
SELECT ALL + + 49 * - + MIN ( 94 ) * - SUM ( 14 )
----
64484

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5144
SELECT - - CAST( - AVG ( DISTINCT + 12 ) AS SIGNED ) + - COUNT( * ) AS col1, 76 * - - 91 + - + 62 AS col2
----
-13
6854

skipif mysql # not compatible
query II rowsort label-5144
SELECT - - CAST ( - AVG ( DISTINCT + 12 ) AS INTEGER ) + - COUNT ( * ) AS col1, 76 * - - 91 + - + 62 AS col2
----
-13
6854

query I rowsort
SELECT - 53 * + 54 + 46 AS col0
----
-2816

onlyif mysql # aggregate syntax: 
query II rowsort label-5146
SELECT 96 col2, COUNT( * ) * 90 AS col1
----
96
90

skipif mysql # not compatible
query II rowsort label-5146
SELECT 96 col2, COUNT ( * ) * 90 AS col1
----
96
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5147
SELECT + + COALESCE ( + - 47, - - 27, + COUNT( * ) ) AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-5147
SELECT + + COALESCE ( + - 47, - - 27, + COUNT ( * ) ) AS col2
----
-47

query II rowsort
SELECT ALL + ( 52 ) AS col1, 73
----
52
73

query I rowsort
SELECT + 82 * 4 * 68 + + 47
----
22351

onlyif mysql # aggregate syntax: 
query II rowsort label-5150
SELECT ALL - + MIN( DISTINCT + - 71 ) AS col1, + 63 AS col1
----
71
63

skipif mysql # not compatible
query II rowsort label-5150
SELECT ALL - + MIN ( DISTINCT + - 71 ) AS col1, + 63 AS col1
----
71
63

query II rowsort
SELECT NULLIF ( 6, + 3 ) + 1 col0, - 44
----
7
-44

query II rowsort
SELECT + 63 AS col2, - 59
----
63
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-5153
SELECT MAX( - 66 ) + + 2 + + + 89 + + - 47 AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-5153
SELECT MAX ( - 66 ) + + 2 + + + 89 + + - 47 AS col1
----
-22

onlyif mysql # DIV for integer division: 
query II rowsort label-5154
SELECT DISTINCT - - 5, + 79 DIV + 74 AS col0
----
5
1

skipif mysql # not compatible
query II rowsort label-5154
SELECT DISTINCT - - 5, + 79 / + 74 AS col0
----
5
1

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5156
SELECT ALL + 54 + - SUM( ALL - - 54 ) + + 42 * - 80 + 84, + 24 AS col1
----
-3276
24

skipif mysql # not compatible
query II rowsort label-5156
SELECT ALL + 54 + - SUM ( ALL - - 54 ) + + 42 * - 80 + 84, + 24 AS col1
----
-3276
24

query I rowsort
SELECT DISTINCT + 49 * + 45 * - 51
----
-112455

query I rowsort
SELECT DISTINCT + + 31 + - ( - - 87 )
----
-56

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5159
SELECT ALL - - 6, CAST( NULL AS SIGNED ) + 69 * - - NULLIF ( 74, + 56 ) AS col0
----
6
NULL

skipif mysql # not compatible
query II rowsort label-5159
SELECT ALL - - 6, CAST ( NULL AS INTEGER ) + 69 * - - NULLIF ( 74, + 56 ) AS col0
----
6
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5160
SELECT 10 * - + 92 DIV + COUNT( * ) + + + 62 + + 1 * - 19 DIV SUM( ALL - 39 ) AS col0
----
-858

skipif mysql # not compatible
query I rowsort label-5160
SELECT 10 * - + 92 / + COUNT ( * ) + + + 62 + + 1 * - 19 / SUM ( ALL - 39 ) AS col0
----
-858

query I rowsort
SELECT + 98 + 31 AS col2
----
129

query I rowsort
SELECT ALL 68 * + 45 + - 85 AS col0
----
2975

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

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

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

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

query I rowsort
SELECT 29 + - - 43
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5166
SELECT ALL + CAST( - 18 AS SIGNED ) * + 79 AS col2
----
-1422

skipif mysql # not compatible
query I rowsort label-5166
SELECT ALL + CAST ( - 18 AS INTEGER ) * + 79 AS col2
----
-1422

query I rowsort
SELECT ALL ( + - 98 ) + + + 84 + + - ( - 9 ) - + 31
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-5168
SELECT ALL NULLIF ( + 79, + COALESCE ( 53, - + 7 * - - SUM( + 56 ) ) * - - 92 ) * + - CASE 38 WHEN + 91 * 15 + + 82 * + + 31 THEN + 65 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5168
SELECT ALL NULLIF ( + 79, + COALESCE ( 53, - + 7 * - - SUM ( + 56 ) ) * - - 92 ) * + - CASE 38 WHEN + 91 * 15 + + 82 * + + 31 THEN + 65 ELSE NULL END
----
NULL

query I rowsort
SELECT 37 + - 74 AS col2
----
-37

query I rowsort
SELECT ( + + 63 ) + + + 67 AS col2
----
130

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5172
SELECT CAST( - MIN( ALL - 69 ) AS SIGNED ) * + - 31 AS col2
----
-2139

skipif mysql # not compatible
query I rowsort label-5172
SELECT CAST ( - MIN ( ALL - 69 ) AS INTEGER ) * + - 31 AS col2
----
-2139

query I rowsort
SELECT ALL 70 * - + 14 * - 33 AS col0
----
32340

query I rowsort
SELECT 81 + - 5
----
76

query II rowsort
SELECT DISTINCT 5 * + - 31 AS col0, + 15 AS col1
----
-155
15

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5177
SELECT ALL - 41 * MAX( DISTINCT - ( + 48 ) )
----
1968

skipif mysql # not compatible
query I rowsort label-5177
SELECT ALL - 41 * MAX ( DISTINCT - ( + 48 ) )
----
1968

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5179
SELECT DISTINCT 28 * + 14 DIV CASE + 84 WHEN - 17 * + + 57 * - 77 * + COUNT( DISTINCT - 20 ) * 29 + + 66 * + + 13 + 24 - + - 51 + - SUM( ALL - 24 ) THEN NULL ELSE 80 * - COUNT( * ) * - 34 * 40 - - 90 + - 6 END
----
0

skipif mysql # not compatible
query I rowsort label-5179
SELECT DISTINCT 28 * + 14 / CASE + 84 WHEN - 17 * + + 57 * - 77 * + COUNT ( DISTINCT - 20 ) * 29 + + 66 * + + 13 + 24 - + - 51 + - SUM ( ALL - 24 ) THEN NULL ELSE 80 * - COUNT ( * ) * - 34 * 40 - - 90 + - 6 END
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5180
SELECT 87 DIV + 50 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5180
SELECT 87 / + 50 AS col1
----
1

query I rowsort
SELECT 97 * - 51 AS col0
----
-4947

query I rowsort
SELECT 14 * - - 42 col1
----
588

query I rowsort
SELECT 72 * - + 21 + - 58 - + - 93 AS col2
----
-1477

onlyif mysql # DIV for integer division: 
query I rowsort label-5184
SELECT DISTINCT + - 71 + 36 DIV - 94
----
-71

skipif mysql # not compatible
query I rowsort label-5184
SELECT DISTINCT + - 71 + 36 / - 94
----
-71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5185
SELECT DISTINCT - COUNT( * ) + + + 21 DIV + 1 AS col1
----
20

skipif mysql # not compatible
query I rowsort label-5185
SELECT DISTINCT - COUNT ( * ) + + + 21 / + 1 AS col1
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-5186
SELECT ALL + CASE - - 43 WHEN - + 26 THEN - ( - COUNT( - + 39 ) ) WHEN + 66 THEN - 10 ELSE 28 END + 36 * ( COUNT( * ) )
----
64

skipif mysql # not compatible
query I rowsort label-5186
SELECT ALL + CASE - - 43 WHEN - + 26 THEN - ( - COUNT ( - + 39 ) ) WHEN + 66 THEN - 10 ELSE 28 END + 36 * ( COUNT ( * ) )
----
64

query I rowsort
SELECT DISTINCT + + 71 + + 98
----
169

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

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

query I rowsort
SELECT ALL + ( - - 52 ) * + 88 AS col0
----
4576

query I rowsort
SELECT + 46 * - 26 col0
----
-1196

query I rowsort
SELECT ALL + + 29 + - 40 AS col1
----
-11

query I rowsort
SELECT ALL - COALESCE ( 10, 4 )
----
-10

query I rowsort
SELECT + 4 * + 73
----
292

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5194
SELECT - 13 DIV - 11 + + COUNT( * ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-5194
SELECT - 13 / - 11 + + COUNT ( * ) AS col2
----
2

query I rowsort
SELECT 52 * - - 96 + - 39 AS col0
----
4953

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5197
SELECT ALL - + CAST( + 76 AS SIGNED ) - + - 3
----
-73

skipif mysql # not compatible
query I rowsort label-5197
SELECT ALL - + CAST ( + 76 AS INTEGER ) - + - 3
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-5198
SELECT ( + 82 ) - + 43 + + MIN( - - 89 ) AS col0
----
128

skipif mysql # not compatible
query I rowsort label-5198
SELECT ( + 82 ) - + 43 + + MIN ( - - 89 ) AS col0
----
128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5199
SELECT ALL - ( - CASE - 43 WHEN - 48 - COALESCE ( - 19, 90, - COUNT( * ) * + - 13 + - 1 ) + ( + 59 ) * - 0 + 74 THEN + NULLIF ( - MAX( ALL - - CAST( - 70 AS SIGNED ) ), - 46 - - 4 ) / - 65 END ) / 55 * 42
----
NULL

skipif mysql # not compatible
query I rowsort label-5199
SELECT ALL - ( - CASE - 43 WHEN - 48 - COALESCE ( - 19, 90, - COUNT ( * ) * + - 13 + - 1 ) + ( + 59 ) * - 0 + 74 THEN + NULLIF ( - MAX ( ALL - - CAST ( - 70 AS INTEGER ) ), - 46 - - 4 ) / - 65 END ) / 55 * 42
----
NULL

query I rowsort
SELECT ALL 89 * 64
----
5696

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

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5204
SELECT CASE + 70 WHEN CAST( NULL AS SIGNED ) + - COUNT( * ) * - 64 * 9 THEN - 58 WHEN 72 THEN + 87 + - 0 ELSE NULL END * 79 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5204
SELECT CASE + 70 WHEN CAST ( NULL AS INTEGER ) + - COUNT ( * ) * - 64 * 9 THEN - 58 WHEN 72 THEN + 87 + - 0 ELSE NULL END * 79 AS col2
----
NULL

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

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

query I rowsort
SELECT 37 + - 81 col0
----
-44

query II rowsort
SELECT - 35, 71 AS col2
----
-35
71

onlyif mysql # aggregate syntax: 
query I rowsort label-5208
SELECT COUNT( * ) + 7 + - - 3 AS col0
----
11

skipif mysql # not compatible
query I rowsort label-5208
SELECT COUNT ( * ) + 7 + - - 3 AS col0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-5209
SELECT CASE - 89 WHEN + 49 / + 38 - - + 98 + + 69 + + 94 + + 23 / - 70 * + 46 - NULLIF ( + 13, - + COUNT( * ) ) * + 6 THEN + - 60 ELSE + - 60 * + 11 + + - 21 END * + COUNT( * ) + + 32 * MAX( + 64 ) col2
----
1367

skipif mysql # not compatible
query I rowsort label-5209
SELECT CASE - 89 WHEN + 49 / + 38 - - + 98 + + 69 + + 94 + + 23 / - 70 * + 46 - NULLIF ( + 13, - + COUNT ( * ) ) * + 6 THEN + - 60 ELSE + - 60 * + 11 + + - 21 END * + COUNT ( * ) + + 32 * MAX ( + 64 ) col2
----
1367

query I rowsort
SELECT 56 + 18 AS col0
----
74

query I rowsort
SELECT ALL + 82 * 89 AS col2
----
7298

query I rowsort
SELECT ( + 62 ) + - ( + + 62 ) AS col2
----
0

query I rowsort
SELECT 78 * 55 AS col0
----
4290

query I rowsort
SELECT DISTINCT 28 + - + 6
----
22

query II rowsort
SELECT 90 + - 11 * + - 68 AS col0, + 90 AS col1
----
838
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5216
SELECT 61 + + CASE - - ( - MAX( + + 58 ) ) WHEN + COUNT( * ) THEN + COUNT( * ) END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5216
SELECT 61 + + CASE - - ( - MAX ( + + 58 ) ) WHEN + COUNT ( * ) THEN + COUNT ( * ) END col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5217
SELECT 87, - COUNT( * ) * + 81 + + 27 - 70 AS col0
----
87
-124

skipif mysql # not compatible
query II rowsort label-5217
SELECT 87, - COUNT ( * ) * + 81 + + 27 - 70 AS col0
----
87
-124

onlyif mysql # aggregate syntax: 
query II rowsort label-5218
SELECT MIN( - 49 ) + 68, - 47 AS col1
----
19
-47

skipif mysql # not compatible
query II rowsort label-5218
SELECT MIN ( - 49 ) + 68, - 47 AS col1
----
19
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-5219
SELECT - CASE - + 78 WHEN + COUNT( * ) * - - 14 THEN - - ( COUNT( * ) ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5219
SELECT - CASE - + 78 WHEN + COUNT ( * ) * - - 14 THEN - - ( COUNT ( * ) ) ELSE NULL END AS col0
----
NULL

query II rowsort
SELECT - - 28 col0, + 97 + 57 * + + 52 + 94
----
28
3155

query I rowsort
SELECT + 86 + + 35 AS col1
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-5222
SELECT - MAX( 75 ) - + COUNT( * ) * 9 - + 71
----
-155

skipif mysql # not compatible
query I rowsort label-5222
SELECT - MAX ( 75 ) - + COUNT ( * ) * 9 - + 71
----
-155

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

skipif mysql # not compatible
query I rowsort label-5223
SELECT - SUM ( ALL - 0 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5224
SELECT ALL - 61 * - + 44 + + 58 + + CASE - 22 WHEN CAST( NULL AS SIGNED ) THEN NULL WHEN + SUM( ALL 98 ) THEN NULL WHEN + 7 THEN 91 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5224
SELECT ALL - 61 * - + 44 + + 58 + + CASE - 22 WHEN CAST ( NULL AS INTEGER ) THEN NULL WHEN + SUM ( ALL 98 ) THEN NULL WHEN + 7 THEN 91 END AS col0
----
NULL

query I rowsort
SELECT DISTINCT 43 * + 29 AS col0
----
1247

onlyif mysql # DIV for integer division: 
query II rowsort label-5226
SELECT DISTINCT + 11 * - - 88 DIV 43 + - 84 col0, - 80 - + - 25 + + + 10
----
-62
-45

skipif mysql # not compatible
query II rowsort label-5226
SELECT DISTINCT + 11 * - - 88 / 43 + - 84 col0, - 80 - + - 25 + + + 10
----
-62
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5227
SELECT + 23 DIV + + 67 - - - 52 + MAX( DISTINCT - 80 ) + + NULLIF ( + 96, 29 DIV - 47 + + - 64 ) DIV 4 + - - 26
----
-82

skipif mysql # not compatible
query I rowsort label-5227
SELECT + 23 / + + 67 - - - 52 + MAX ( DISTINCT - 80 ) + + NULLIF ( + 96, 29 / - 47 + + - 64 ) / 4 + - - 26
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5228
SELECT ALL 89 * - CAST( + 88 AS SIGNED ) + - 49 - + - 8 * MAX( ALL + 67 ) AS col2
----
-7345

skipif mysql # not compatible
query I rowsort label-5228
SELECT ALL 89 * - CAST ( + 88 AS INTEGER ) + - 49 - + - 8 * MAX ( ALL + 67 ) AS col2
----
-7345

query I rowsort
SELECT ALL - 79 * - 88
----
6952

query I rowsort
SELECT + 84 + - 61 * - + ( - + ( - 57 ) )
----
3561

onlyif mysql # aggregate syntax: 
query II rowsort label-5231
SELECT ALL + - 27 AS col0, + 52 * ( + + COUNT( * ) ) * - + 62 * - 22 AS col1
----
-27
70928

skipif mysql # not compatible
query II rowsort label-5231
SELECT ALL + - 27 AS col0, + 52 * ( + + COUNT ( * ) ) * - + 62 * - 22 AS col1
----
-27
70928

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

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

query I rowsort
SELECT - + 16 + - - 47 AS col0
----
31

query I rowsort
SELECT - + 58 * + 26 AS col1
----
-1508

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5236
SELECT ALL + COUNT( * ) AS col1, 9 * 47 * 60 * 64 + + 77 AS col1
----
1
1624397

skipif mysql # not compatible
query II rowsort label-5236
SELECT ALL + COUNT ( * ) AS col1, 9 * 47 * 60 * 64 + + 77 AS col1
----
1
1624397

onlyif mysql # aggregate syntax: 
query I rowsort label-5237
SELECT + 65 * + COUNT( + + 96 )
----
65

skipif mysql # not compatible
query I rowsort label-5237
SELECT + 65 * + COUNT ( + + 96 )
----
65

query I rowsort
SELECT - 71 + + 4
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-5239
SELECT DISTINCT + CASE + - ( - - ( - - 17 ) ) WHEN - + 75 - - 97 + 77 THEN NULL WHEN 25 THEN + + COUNT( DISTINCT 95 ) * - 43 WHEN + 1 THEN + - 47 * - 94 * 86 ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5239
SELECT DISTINCT + CASE + - ( - - ( - - 17 ) ) WHEN - + 75 - - 97 + 77 THEN NULL WHEN 25 THEN + + COUNT ( DISTINCT 95 ) * - 43 WHEN + 1 THEN + - 47 * - 94 * 86 ELSE NULL END col1
----
NULL

query I rowsort
SELECT ALL NULLIF ( - 82, 39 + + + 99 + - 10 ) col1
----
-82

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

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

query I rowsort
SELECT - 41 + + 31 * + 73
----
2222

query II rowsort
SELECT ALL ( - 11 ), - 42 AS col1
----
-11
-42

onlyif mysql # DIV for integer division: 
query II rowsort label-5244
SELECT - 52 DIV 24 AS col2, ( + 75 ) AS col1
----
-2
75

skipif mysql # not compatible
query II rowsort label-5244
SELECT - 52 / 24 AS col2, ( + 75 ) AS col1
----
-2
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5245
SELECT DISTINCT - 22 DIV - 82 DIV + COUNT( * ) col2
----
0

skipif mysql # not compatible
query I rowsort label-5245
SELECT DISTINCT - 22 / - 82 / + COUNT ( * ) col2
----
0

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

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

query II rowsort
SELECT ALL 17 * - 37 AS col1, + COALESCE ( + + 91, 13 + + + 60 * 61 + 1 )
----
-629
91

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5249
SELECT ALL CASE + + MAX( - 33 ) WHEN + + 58 THEN - - 23 WHEN 28 + + 66 * + 59 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5249
SELECT ALL CASE + + MAX ( - 33 ) WHEN + + 58 THEN - - 23 WHEN 28 + + 66 * + 59 THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5250
SELECT DISTINCT - 23 DIV - + 21 col1
----
1

skipif mysql # not compatible
query I rowsort label-5250
SELECT DISTINCT - 23 / - + 21 col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5251
SELECT + CASE - 35 WHEN 48 * 19 + + 49 THEN NULL WHEN - 69 * - 59 + ( + - CASE + 38 WHEN - COUNT( * ) THEN NULL WHEN - 37 * - + 5 THEN NULL ELSE - + CASE CAST( - 66 AS SIGNED ) WHEN + + 34 THEN NULL WHEN COUNT( * ) THEN NULL WHEN - 72 THEN NULL ELSE + - 14 - + ( - + 69 ) + + 72 END END ) THEN + - 10 * 15 ELSE NULL END / 15 + - + COALESCE ( 48, + 4 * - 70 ) / + 38 * - CAST( NULL AS SIGNED ) / - 78 + + + NULLIF ( ( - - ( + + 73 ) ), - 54 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5251
SELECT + CASE - 35 WHEN 48 * 19 + + 49 THEN NULL WHEN - 69 * - 59 + ( + - CASE + 38 WHEN - COUNT ( * ) THEN NULL WHEN - 37 * - + 5 THEN NULL ELSE - + CASE CAST ( - 66 AS INTEGER ) WHEN + + 34 THEN NULL WHEN COUNT ( * ) THEN NULL WHEN - 72 THEN NULL ELSE + - 14 - + ( - + 69 ) + + 72 END END ) THEN + - 10 * 15 ELSE NULL END / 15 + - + COALESCE ( 48, + 4 * - 70 ) / + 38 * - CAST ( NULL AS INTEGER ) / - 78 + + + NULLIF ( ( - - ( + + 73 ) ), - 54 ) AS col0
----
NULL

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

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

query I rowsort
SELECT ALL - 51 + 75
----
24

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5254
SELECT DISTINCT 16 + + CAST( NULL AS DECIMAL ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5254
SELECT DISTINCT 16 + + CAST ( NULL AS REAL ) col0
----
NULL

query I rowsort
SELECT + 27 + + - 6
----
21

onlyif mysql # aggregate syntax: 
query II rowsort label-5256
SELECT - COUNT( 61 ) AS col1, + 71
----
-1
71

skipif mysql # not compatible
query II rowsort label-5256
SELECT - COUNT ( 61 ) AS col1, + 71
----
-1
71

query I rowsort
SELECT ALL + 69 + + 48 + - 48 AS col1
----
69

query II rowsort
SELECT - ( 89 ), 52 - + - 13 AS col2
----
-89
65

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

query I rowsort
SELECT DISTINCT - NULLIF ( - 29, 2 ) + - 9
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-5261
SELECT - ( - MIN( ALL + 15 ) ) * 41 * - 80 * - - 28
----
-1377600

skipif mysql # not compatible
query I rowsort label-5261
SELECT - ( - MIN ( ALL + 15 ) ) * 41 * - 80 * - - 28
----
-1377600

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-5262
SELECT - - ( + NULLIF ( 2, + 97 * + 4 - - SUM( 41 ) + - - 11 + + + 8 + + CAST( + + 82 AS DECIMAL ) * - CASE - 35 WHEN + - CASE - + CASE - 90 WHEN CAST( NULL AS SIGNED ) THEN NULL WHEN 67 THEN NULL ELSE - ( - - 87 ) END WHEN 58 DIV 19 + - COALESCE ( 64, ( - 86 ), + 49 + - + 5 DIV - SUM( 44 ) ) THEN + 82 * + COUNT( * ) DIV + 20 ELSE 62 END THEN + 20 WHEN - - 79 * + NULLIF ( + + 89, - 11 ) THEN - MAX( ALL - CASE 69 WHEN 9 THEN 43 * - ( - 57 ) ELSE NULL END ) WHEN 55 + - COUNT( * ) THEN + 93 * - 63 ELSE 99 - + 97 END * - 61 DIV AVG ( - 78 ) ) ) DIV 97 col0
----
0

skipif mysql # not compatible
query I rowsort label-5262
SELECT - - ( + NULLIF ( 2, + 97 * + 4 - - SUM ( 41 ) + - - 11 + + + 8 + + CAST ( + + 82 AS REAL ) * - CASE - 35 WHEN + - CASE - + CASE - 90 WHEN CAST ( NULL AS INTEGER ) THEN NULL WHEN 67 THEN NULL ELSE - ( - - 87 ) END WHEN 58 / 19 + - COALESCE ( 64, ( - 86 ), + 49 + - + 5 / - SUM ( 44 ) ) THEN + 82 * + COUNT ( * ) / + 20 ELSE 62 END THEN + 20 WHEN - - 79 * + NULLIF ( + + 89, - 11 ) THEN - MAX ( ALL - CASE 69 WHEN 9 THEN 43 * - ( - 57 ) ELSE NULL END ) WHEN 55 + - COUNT ( * ) THEN + 93 * - 63 ELSE 99 - + 97 END * - 61 / AVG ( - 78 ) ) ) / 97 col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5263
SELECT DISTINCT 16 DIV - 29 * + - 57 + 70 DIV - - 78 + - - 34 * - 33 AS col2
----
-1122

skipif mysql # not compatible
query I rowsort label-5263
SELECT DISTINCT 16 / - 29 * + - 57 + 70 / - - 78 + - - 34 * - 33 AS col2
----
-1122

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5264
SELECT + NULLIF ( CAST( 30 AS SIGNED ), + - 19 ) * - - 83 - - ( 47 ) AS col1
----
2537

skipif mysql # not compatible
query I rowsort label-5264
SELECT + NULLIF ( CAST ( 30 AS INTEGER ), + - 19 ) * - - 83 - - ( 47 ) AS col1
----
2537

onlyif mysql # aggregate syntax: 
query I rowsort label-5265
SELECT + 56 * - MIN( - 70 ) + - - 22 AS col1
----
3942

skipif mysql # not compatible
query I rowsort label-5265
SELECT + 56 * - MIN ( - 70 ) + - - 22 AS col1
----
3942

onlyif mysql # DIV for integer division: 
query I rowsort label-5266
SELECT ALL + 20 DIV 34 - + + 21 - + + ( - 34 ) DIV + ( ( + + 97 ) ) AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-5266
SELECT ALL + 20 / 34 - + + 21 - + + ( - 34 ) / + ( ( + + 97 ) ) AS col0
----
-21

query I rowsort
SELECT ALL + CASE - 75 WHEN - 58 + 30 THEN 72 * - 27 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5268
SELECT + ( - 46 ) AS col2, + COALESCE ( - + COUNT( * ), - MIN( DISTINCT + - 77 ) ) DIV - ( + COUNT( DISTINCT + 99 ) )
----
-46
1

skipif mysql # not compatible
query II rowsort label-5268
SELECT + ( - 46 ) AS col2, + COALESCE ( - + COUNT ( * ), - MIN ( DISTINCT + - 77 ) ) / - ( + COUNT ( DISTINCT + 99 ) )
----
-46
1

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

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

query I rowsort
SELECT + - 87 * 37
----
-3219

onlyif mysql # aggregate syntax: 
query I rowsort label-5271
SELECT ALL COUNT( * ) * + 69 - 44 AS col1
----
25

skipif mysql # not compatible
query I rowsort label-5271
SELECT ALL COUNT ( * ) * + 69 - 44 AS col1
----
25

query I rowsort
SELECT ALL 14 * + 55 * 85 - 12 * + + 81
----
64478

query I rowsort
SELECT + 58 * 96 AS col2
----
5568

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5275
SELECT - 47 * 1 * + - 45, - COALESCE ( 76, + + 23 - - 18 + - 6 + COUNT( * ) DIV + COUNT( * ) DIV 44 ) col0
----
2115
-76

skipif mysql # not compatible
query II rowsort label-5275
SELECT - 47 * 1 * + - 45, - COALESCE ( 76, + + 23 - - 18 + - 6 + COUNT ( * ) / + COUNT ( * ) / 44 ) col0
----
2115
-76

onlyif mysql # aggregate syntax: 
query II rowsort label-5276
SELECT CASE - 64 WHEN - + 50 THEN NULL WHEN + COUNT( * ) THEN COALESCE ( + COUNT( * ), + - ( - 5 ) ) ELSE NULL END col1, 50 + + 58 AS col2
----
NULL
108

skipif mysql # not compatible
query II rowsort label-5276
SELECT CASE - 64 WHEN - + 50 THEN NULL WHEN + COUNT ( * ) THEN COALESCE ( + COUNT ( * ), + - ( - 5 ) ) ELSE NULL END col1, 50 + + 58 AS col2
----
NULL
108

onlyif mysql # DIV for integer division: 
query I rowsort label-5277
SELECT COALESCE ( - 18, + + 75 + + 10 DIV + 47 DIV 32 )
----
-18

skipif mysql # not compatible
query I rowsort label-5277
SELECT COALESCE ( - 18, + + 75 + + 10 / + 47 / 32 )
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5278
SELECT CASE - 38 WHEN - + 67 + + 53 + + NULLIF ( 59, CAST( + 4 AS SIGNED ) + - 20 ) THEN - COALESCE ( + 45, - 31 * - - 72 ) WHEN 41 + + - 7 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5278
SELECT CASE - 38 WHEN - + 67 + + 53 + + NULLIF ( 59, CAST ( + 4 AS INTEGER ) + - 20 ) THEN - COALESCE ( + 45, - 31 * - - 72 ) WHEN 41 + + - 7 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5279
SELECT + 12 * - CAST( + + 67 AS SIGNED ) AS col0
----
-804

skipif mysql # not compatible
query I rowsort label-5279
SELECT + 12 * - CAST ( + + 67 AS INTEGER ) AS col0
----
-804

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5280
SELECT ALL - CAST( NULL AS SIGNED ) * - + MIN( ALL 43 ) + + + CASE - - 76 WHEN - 72 THEN + COALESCE ( - - 48, - CASE 80 WHEN + COUNT( * ) * - + 2 + ( + COALESCE ( + 76, - - 20 + + ( + 78 ) ) ) THEN + - CASE - - 64 WHEN 39 THEN 45 WHEN + + 51 * 16 + 58 - 11 THEN CAST( 36 AS SIGNED ) + + 10 ELSE NULL END / - + 37 * + 94 + + + 9 + 57 * - 33 END ) WHEN - ( - 39 ) + - + ( + 61 ) + + - CAST( + 87 AS SIGNED ) * ( - 40 + + 3 ) THEN - MAX( 14 ) + 68 ELSE NULL END + + 92
----
NULL

skipif mysql # not compatible
query I rowsort label-5280
SELECT ALL - CAST ( NULL AS INTEGER ) * - + MIN ( ALL 43 ) + + + CASE - - 76 WHEN - 72 THEN + COALESCE ( - - 48, - CASE 80 WHEN + COUNT ( * ) * - + 2 + ( + COALESCE ( + 76, - - 20 + + ( + 78 ) ) ) THEN + - CASE - - 64 WHEN 39 THEN 45 WHEN + + 51 * 16 + 58 - 11 THEN CAST ( 36 AS INTEGER ) + + 10 ELSE NULL END / - + 37 * + 94 + + + 9 + 57 * - 33 END ) WHEN - ( - 39 ) + - + ( + 61 ) + + - CAST ( + 87 AS INTEGER ) * ( - 40 + + 3 ) THEN - MAX ( 14 ) + 68 ELSE NULL END + + 92
----
NULL

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5283
SELECT - COUNT( - 87 ) * - 58 * - - 91
----
5278

skipif mysql # not compatible
query I rowsort label-5283
SELECT - COUNT ( - 87 ) * - 58 * - - 91
----
5278

onlyif mysql # aggregate syntax: 
query I rowsort label-5284
SELECT ALL COUNT( * ) * + 73 + - - 57
----
130

skipif mysql # not compatible
query I rowsort label-5284
SELECT ALL COUNT ( * ) * + 73 + - - 57
----
130

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5285
SELECT ALL - NULLIF ( - + COUNT( * ), + 83 ) * + 80 DIV - + 1
----
-80

skipif mysql # not compatible
query I rowsort label-5285
SELECT ALL - NULLIF ( - + COUNT ( * ), + 83 ) * + 80 / - + 1
----
-80

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

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

query I rowsort
SELECT + ( 60 ) + - ( 18 )
----
42

query I rowsort
SELECT CASE - NULLIF ( - 23, + - ( 3 ) + - 22 ) WHEN 71 THEN NULL WHEN + 15 THEN - 68 END + 85 + - 82
----
NULL

query I rowsort
SELECT 6 - - 53 AS col2
----
59

query I rowsort
SELECT 81 + - 9 + 88 AS col0
----
160

query II rowsort
SELECT DISTINCT 59 col1, + 8 AS col1
----
59
8

query I rowsort
SELECT ALL + 19 + - 45
----
-26

query I rowsort
SELECT ALL - + 52 + - 78
----
-130

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5295
SELECT ALL + ( + + CAST( - + 47 AS SIGNED ) ) - - - SUM( 82 ) col0
----
-129

skipif mysql # not compatible
query I rowsort label-5295
SELECT ALL + ( + + CAST ( - + 47 AS INTEGER ) ) - - - SUM ( 82 ) col0
----
-129

onlyif mysql # aggregate syntax: 
query I rowsort label-5296
SELECT 37 * - SUM( + 21 ) * + 67 * + 22 AS col0
----
-1145298

skipif mysql # not compatible
query I rowsort label-5296
SELECT 37 * - SUM ( + 21 ) * + 67 * + 22 AS col0
----
-1145298

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5297
SELECT ALL + - 22 DIV + - 71 * + CAST( - ( + - 31 ) AS SIGNED ), 75 AS col0
----
0
75

skipif mysql # not compatible
query II rowsort label-5297
SELECT ALL + - 22 / + - 71 * + CAST ( - ( + - 31 ) AS INTEGER ), 75 AS col0
----
0
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5298
SELECT COUNT( * ) + + 14 - + COUNT( 7 ) * - 97 * + 37 * COUNT( * ) * 40
----
143575

skipif mysql # not compatible
query I rowsort label-5298
SELECT COUNT ( * ) + + 14 - + COUNT ( 7 ) * - 97 * + 37 * COUNT ( * ) * 40
----
143575

query I rowsort
SELECT 19 + + 0 + 97 * + 3 * + 65
----
18934

query II rowsort
SELECT ALL - 97 * - + ( + 15 ), + 30 * 72 AS col2
----
1455
2160

onlyif mysql # aggregate syntax: 
query I rowsort label-5301
SELECT 6 * + 28 + + + COUNT( * ) + - - 48 AS col1
----
217

skipif mysql # not compatible
query I rowsort label-5301
SELECT 6 * + 28 + + + COUNT ( * ) + - - 48 AS col1
----
217

onlyif mysql # aggregate syntax: 
query I rowsort label-5302
SELECT DISTINCT - + MAX( DISTINCT 91 ) col2
----
-91

skipif mysql # not compatible
query I rowsort label-5302
SELECT DISTINCT - + MAX ( DISTINCT 91 ) col2
----
-91

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

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

query I rowsort
SELECT DISTINCT - ( - 12 ) AS col1
----
12

query I rowsort
SELECT + 82 + - 54
----
28

query I rowsort
SELECT + 56 * + - 37 AS col2
----
-2072

query I rowsort
SELECT - 65 - 24
----
-89

query I rowsort
SELECT 46 + - - 16
----
62

onlyif mysql # aggregate syntax: 
query II rowsort label-5309
SELECT + 19 AS col0, - 5 + + - 9 + - - CASE + 60 WHEN - - 5 * - 10 + + + 16 + - 46 * ( - + 84 ) * + - 98 + + - 80 + + 97 THEN NULL WHEN + 72 THEN NULL WHEN SUM( + + 46 ) * - 67 + - 76 THEN - + 67 * 36 * - + NULLIF ( - - 75, - 94 ) * + + 90 + + + 25 + - 97 END * 69 AS col2
----
19
NULL

skipif mysql # not compatible
query II rowsort label-5309
SELECT + 19 AS col0, - 5 + + - 9 + - - CASE + 60 WHEN - - 5 * - 10 + + + 16 + - 46 * ( - + 84 ) * + - 98 + + - 80 + + 97 THEN NULL WHEN + 72 THEN NULL WHEN SUM ( + + 46 ) * - 67 + - 76 THEN - + 67 * 36 * - + NULLIF ( - - 75, - 94 ) * + + 90 + + + 25 + - 97 END * 69 AS col2
----
19
NULL

query I rowsort
SELECT ALL 6 * 14 col1
----
84

query I rowsort
SELECT DISTINCT 41 * - 91 AS col0
----
-3731

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

query I rowsort
SELECT 72 + + 53 + + 7
----
132

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5314
SELECT ALL 11 + 14 * - NULLIF ( ( COALESCE ( 72, - 55 * - - CAST( + + 61 AS SIGNED ) ) ), + + 24 * + 50 * 36 * 53 * + 19 ) AS col1
----
-997

skipif mysql # not compatible
query I rowsort label-5314
SELECT ALL 11 + 14 * - NULLIF ( ( COALESCE ( 72, - 55 * - - CAST ( + + 61 AS INTEGER ) ) ), + + 24 * + 50 * 36 * 53 * + 19 ) AS col1
----
-997

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5316
SELECT + MAX( + 36 ) * - 20 * + + 83 * 2 + - - 75 AS col1
----
-119445

skipif mysql # not compatible
query I rowsort label-5316
SELECT + MAX ( + 36 ) * - 20 * + + 83 * 2 + - - 75 AS col1
----
-119445

query II rowsort
SELECT 60, - 24 + 99 AS col0
----
60
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5318
SELECT ALL COUNT( * ) + + + 74 DIV + - COUNT( * )
----
-73

skipif mysql # not compatible
query I rowsort label-5318
SELECT ALL COUNT ( * ) + + + 74 / + - COUNT ( * )
----
-73

query I rowsort
SELECT DISTINCT 99 + + - 29
----
70

onlyif mysql # aggregate syntax: 
query II rowsort label-5320
SELECT ALL 97, ( - - 7 ) + - + 77 + + 24 + + + COUNT( * ) + 16 AS col0
----
97
-29

skipif mysql # not compatible
query II rowsort label-5320
SELECT ALL 97, ( - - 7 ) + - + 77 + + 24 + + + COUNT ( * ) + 16 AS col0
----
97
-29

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

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

query II rowsort
SELECT - 50 AS col2, - 75
----
-50
-75

query II rowsort
SELECT ALL 34 + 59, 5 AS col1
----
93
5

query II rowsort
SELECT - 53 AS col0, + 96 + + 55 AS col2
----
-53
151

query I rowsort
SELECT DISTINCT 63 + + + 0 AS col1
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5326
SELECT ALL + ( - MAX( DISTINCT + 0 ) ) * - + 60 * - NULLIF ( - COUNT( * ), - - 58 / - + 26 * + NULLIF ( - CASE - 78 WHEN + 12 THEN 27 END, 23 * + - AVG ( ALL - + ( - 92 ) ) + 91 ) * - 30 - + NULLIF ( - CAST( - + COUNT( * ) AS SIGNED ), 5 ) ) - + 67
----
-67

skipif mysql # not compatible
query I rowsort label-5326
SELECT ALL + ( - MAX ( DISTINCT + 0 ) ) * - + 60 * - NULLIF ( - COUNT ( * ), - - 58 / - + 26 * + NULLIF ( - CASE - 78 WHEN + 12 THEN 27 END, 23 * + - AVG ( ALL - + ( - 92 ) ) + 91 ) * - 30 - + NULLIF ( - CAST ( - + COUNT ( * ) AS INTEGER ), 5 ) ) - + 67
----
-67

query I rowsort
SELECT DISTINCT + + 62 - - 33 * - + 55 AS col0
----
-1753

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5329
SELECT + COUNT( * ) - + ( - 8 ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-5329
SELECT + COUNT ( * ) - + ( - 8 ) AS col1
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5330
SELECT ( - 21 ) * CASE + 27 WHEN 77 THEN NULL WHEN - + 70 * + 11 * 48 + COUNT( * ) THEN + MIN( DISTINCT + CAST( NULL AS SIGNED ) ) + - - 3 + - 1 + + ( - 52 ) * 0 * - 61 - 9 + - + CASE 6 WHEN - 95 + 0 - - 11 * - 53 * - NULLIF ( + - 99, - COUNT( * ) - - - 60 * MIN( + - 10 ) ) THEN + 6 * + COUNT( * ) * 42 END * 94 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5330
SELECT ( - 21 ) * CASE + 27 WHEN 77 THEN NULL WHEN - + 70 * + 11 * 48 + COUNT ( * ) THEN + MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) + - - 3 + - 1 + + ( - 52 ) * 0 * - 61 - 9 + - + CASE 6 WHEN - 95 + 0 - - 11 * - 53 * - NULLIF ( + - 99, - COUNT ( * ) - - - 60 * MIN ( + - 10 ) ) THEN + 6 * + COUNT ( * ) * 42 END * 94 END AS col1
----
NULL

query I rowsort
SELECT 83 + + - 46 + + ( - 99 ) + + 86 + - + 16 * + 73 AS col2
----
-1144

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

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

query II rowsort
SELECT - + 29 col0, 98 + - 82 AS col1
----
-29
16

query II rowsort
SELECT 37 AS col2, + 22
----
37
22

query II rowsort
SELECT - 67 AS col0, 34 + + 30 + - 87 + - 95 * 86 - - 79 col2
----
-67
-8114

query I rowsort
SELECT 75 * - 19 * 80 * - 81 AS col1
----
9234000

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5337
SELECT ALL - 34 AS col0, + CAST( NULL AS SIGNED ) + 92 col2
----
-34
NULL

skipif mysql # not compatible
query II rowsort label-5337
SELECT ALL - 34 AS col0, + CAST ( NULL AS INTEGER ) + 92 col2
----
-34
NULL

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

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

query II rowsort
SELECT ALL + 11 AS col1, - 84
----
11
-84

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

skipif mysql # not compatible
query I rowsort label-5341
SELECT + 13 + 32 + - 71 + + - COUNT ( * ) AS col1
----
-27

onlyif mysql # aggregate syntax: 
query II rowsort label-5342
SELECT - - 13, SUM( DISTINCT - - 74 ) col1
----
13
74

skipif mysql # not compatible
query II rowsort label-5342
SELECT - - 13, SUM ( DISTINCT - - 74 ) col1
----
13
74

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5343
SELECT COUNT( * ) * CAST( NULL AS DECIMAL ) + + 80 + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5343
SELECT COUNT ( * ) * CAST ( NULL AS REAL ) + + 80 + - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5344
SELECT + COALESCE ( + 74, + + SUM( ALL + ( - 97 ) ) )
----
74

skipif mysql # not compatible
query I rowsort label-5344
SELECT + COALESCE ( + 74, + + SUM ( ALL + ( - 97 ) ) )
----
74

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-5346
SELECT - NULLIF ( + NULLIF ( + 19, + + 21 ), + - 57 ) DIV 47 + + 13 + 47 + + 46, - 39 + - 37 + - - 96 AS col1
----
106
20

skipif mysql # not compatible
query II rowsort label-5346
SELECT - NULLIF ( + NULLIF ( + 19, + + 21 ), + - 57 ) / 47 + + 13 + 47 + + 46, - 39 + - 37 + - - 96 AS col1
----
106
20

onlyif mysql # DIV for integer division: 
query I rowsort label-5347
SELECT ALL + + 40 * - 69 + + + 52 DIV + 95
----
-2760

skipif mysql # not compatible
query I rowsort label-5347
SELECT ALL + + 40 * - 69 + + + 52 / + 95
----
-2760

query I rowsort
SELECT - 63 + 96
----
33

query I rowsort
SELECT DISTINCT 86 * - + 90 + 52 + - 11 AS col0
----
-7699

onlyif mysql # aggregate syntax: 
query I rowsort label-5350
SELECT ALL 61 * - COUNT( * ) + - 72 - - - 34
----
-167

skipif mysql # not compatible
query I rowsort label-5350
SELECT ALL 61 * - COUNT ( * ) + - 72 - - - 34
----
-167

onlyif mysql # aggregate syntax: 
query I rowsort label-5351
SELECT NULLIF ( + + 69, + - 38 ) * - 95 - - 42 * - 66 * + MIN( DISTINCT + - 92 ) * + MIN( - + 64 )
----
-16328091

skipif mysql # not compatible
query I rowsort label-5351
SELECT NULLIF ( + + 69, + - 38 ) * - 95 - - 42 * - 66 * + MIN ( DISTINCT + - 92 ) * + MIN ( - + 64 )
----
-16328091

onlyif mysql # aggregate syntax: 
query I rowsort label-5352
SELECT + COUNT( DISTINCT + + 40 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5352
SELECT + COUNT ( DISTINCT + + 40 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5353
SELECT ALL 98 * 27 * + 24 + - NULLIF ( + COUNT( * ), - + 94 + + + 14 * + 0 ) * + - 31
----
63535

skipif mysql # not compatible
query I rowsort label-5353
SELECT ALL 98 * 27 * + 24 + - NULLIF ( + COUNT ( * ), - + 94 + + + 14 * + 0 ) * + - 31
----
63535

onlyif mysql # aggregate syntax: 
query I rowsort label-5354
SELECT + ( COUNT( * ) ) * - 35 * - + NULLIF ( 27, + 60 ) - 98 AS col0
----
847

skipif mysql # not compatible
query I rowsort label-5354
SELECT + ( COUNT ( * ) ) * - 35 * - + NULLIF ( 27, + 60 ) - 98 AS col0
----
847

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5355
SELECT + 28 DIV COUNT( * ) * - 18
----
-504

skipif mysql # not compatible
query I rowsort label-5355
SELECT + 28 / COUNT ( * ) * - 18
----
-504

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5356
SELECT + CAST( NULL AS SIGNED ) * - - 61 * - - COUNT( * ) * MAX( ALL + 58 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5356
SELECT + CAST ( NULL AS INTEGER ) * - - 61 * - - COUNT ( * ) * MAX ( ALL + 58 ) AS col1
----
NULL

query I rowsort
SELECT + 66 * - ( - 17 ) - 17 AS col1
----
1105

query II rowsort
SELECT ALL + NULLIF ( + 62, 57 ) AS col0, COALESCE ( - + COALESCE ( 14, + 84 ), - 73, - + 78 + - 48 ) + 18 * 63 AS col2
----
62
1120

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5359
SELECT + 92 DIV + MIN( - + 88 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5359
SELECT + 92 / + MIN ( - + 88 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-5360
SELECT DISTINCT 15 * - 68 AS col1, 30 * - + 78 + + 17 * + NULLIF ( - COUNT( * ), + COUNT( * ) ) * MAX( + + 55 )
----
-1020
-3275

skipif mysql # not compatible
query II rowsort label-5360
SELECT DISTINCT 15 * - 68 AS col1, 30 * - + 78 + + 17 * + NULLIF ( - COUNT ( * ), + COUNT ( * ) ) * MAX ( + + 55 )
----
-1020
-3275

onlyif mysql # aggregate syntax: 
query I rowsort label-5361
SELECT - CASE - - MIN( ALL + - ( 49 ) ) WHEN - - 64 THEN NULL WHEN - + 23 + - 35 + + 70 * - 63 / + CASE ( + 42 ) WHEN + 62 * + COUNT( * ) * + - 54 THEN - ( - COUNT( * ) ) + + 6 END THEN - - ( + ( + 27 ) ) WHEN SUM( - - 56 ) THEN NULL END * - 50 + - + 98
----
NULL

skipif mysql # not compatible
query I rowsort label-5361
SELECT - CASE - - MIN ( ALL + - ( 49 ) ) WHEN - - 64 THEN NULL WHEN - + 23 + - 35 + + 70 * - 63 / + CASE ( + 42 ) WHEN + 62 * + COUNT ( * ) * + - 54 THEN - ( - COUNT ( * ) ) + + 6 END THEN - - ( + ( + 27 ) ) WHEN SUM ( - - 56 ) THEN NULL END * - 50 + - + 98
----
NULL

query I rowsort
SELECT + 45 * + + 20
----
900

onlyif mysql # DIV for integer division: 
query I rowsort label-5363
SELECT + 95 DIV 91 + 59
----
60

skipif mysql # not compatible
query I rowsort label-5363
SELECT + 95 / 91 + 59
----
60

query I rowsort
SELECT + 8 - - 99 AS col1
----
107

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

skipif mysql # not compatible
query I rowsort label-5365
SELECT ALL MIN ( ALL - 75 )
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5366
SELECT + + ( - 89 ) + - NULLIF ( 5, + + NULLIF ( CAST( - + 35 AS SIGNED ), - COUNT( * ) ) ) AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-5366
SELECT + + ( - 89 ) + - NULLIF ( 5, + + NULLIF ( CAST ( - + 35 AS INTEGER ), - COUNT ( * ) ) ) AS col1
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-5367
SELECT + - COUNT( * ) + - 53 * - 10 AS col1
----
529

skipif mysql # not compatible
query I rowsort label-5367
SELECT + - COUNT ( * ) + - 53 * - 10 AS col1
----
529

query II rowsort
SELECT ALL + ( + 9 ), 86 * - + 48 + + 56 + - 3 col1
----
9
-4075

query I rowsort
SELECT DISTINCT 67 + + 34 * - 0
----
67

query I rowsort
SELECT - 11 * + 55 + + + 81
----
-524

query I rowsort
SELECT + 68 * - CASE + 89 WHEN - 80 + - 88 THEN NULL WHEN + 83 + 88 THEN - 75 * - ( 7 ) * - 2 * 62 + + + 7 END AS col2
----
NULL

query I rowsort
SELECT - 38 + + 87 + + - 46 AS col0
----
3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5374
SELECT ALL COUNT( + 70 ) + + 52 col0
----
53

skipif mysql # not compatible
query I rowsort label-5374
SELECT ALL COUNT ( + 70 ) + + 52 col0
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5375
SELECT - - 57 - + 43 * + SUM( - 40 ) + CASE - 75 WHEN ( + + 40 ) * - - 51 THEN + + 97 WHEN 8 + CAST( NULL AS SIGNED ) THEN - 34 * CAST( NULL AS SIGNED ) ELSE 20 * + + 94 + - 73 END
----
3584

skipif mysql # not compatible
query I rowsort label-5375
SELECT - - 57 - + 43 * + SUM ( - 40 ) + CASE - 75 WHEN ( + + 40 ) * - - 51 THEN + + 97 WHEN 8 + CAST ( NULL AS INTEGER ) THEN - 34 * CAST ( NULL AS INTEGER ) ELSE 20 * + + 94 + - 73 END
----
3584

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5376
SELECT DISTINCT - + 6 / - 96 + - CAST( NULL AS SIGNED ) * CASE - + 38 WHEN MIN( DISTINCT 86 ) THEN - 56 END * + 68 + + + 41 * - 29 * + 78, + COUNT( * ) col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-5376
SELECT DISTINCT - + 6 / - 96 + - CAST ( NULL AS INTEGER ) * CASE - + 38 WHEN MIN ( DISTINCT 86 ) THEN - 56 END * + 68 + + + 41 * - 29 * + 78, + COUNT ( * ) col2
----
NULL
1

query I rowsort
SELECT 50 * + 78 + 63 AS col1
----
3963

query I rowsort
SELECT ( - 74 ) AS col2
----
-74

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5380
SELECT ALL NULLIF ( 78, 31 + - CASE + 89 WHEN 22 THEN - 39 WHEN - ( 33 ) THEN 64 WHEN - 33 + - 2 THEN NULL ELSE NULL END ) * + COUNT( * ) * - - 6 + + 85
----
553

skipif mysql # not compatible
query I rowsort label-5380
SELECT ALL NULLIF ( 78, 31 + - CASE + 89 WHEN 22 THEN - 39 WHEN - ( 33 ) THEN 64 WHEN - 33 + - 2 THEN NULL ELSE NULL END ) * + COUNT ( * ) * - - 6 + + 85
----
553

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5381
SELECT + COUNT( * ) * - + CAST( NULL AS SIGNED ) + - 31 + + - 17 * + 33
----
NULL

skipif mysql # not compatible
query I rowsort label-5381
SELECT + COUNT ( * ) * - + CAST ( NULL AS INTEGER ) + - 31 + + - 17 * + 33
----
NULL

query I rowsort
SELECT - 52 - + - 87 AS col0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-5383
SELECT - COUNT( * ) + 80
----
79

skipif mysql # not compatible
query I rowsort label-5383
SELECT - COUNT ( * ) + 80
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-5384
SELECT DISTINCT COUNT( * ) * 5 - 45 * - 60 AS col2
----
2705

skipif mysql # not compatible
query I rowsort label-5384
SELECT DISTINCT COUNT ( * ) * 5 - 45 * - 60 AS col2
----
2705

query I rowsort
SELECT ALL + 87 * + + 93 AS col0
----
8091

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5386
SELECT ALL + 15 * - CAST( NULL AS DECIMAL ) / - - NULLIF ( + 50, 50 + + - 26 + - 77 + + + 51 ) / - 79
----
NULL

skipif mysql # not compatible
query I rowsort label-5386
SELECT ALL + 15 * - CAST ( NULL AS REAL ) / - - NULLIF ( + 50, 50 + + - 26 + - 77 + + + 51 ) / - 79
----
NULL

query I rowsort
SELECT 24 * 80 + 98
----
2018

query I rowsort
SELECT - 80 * - 15 AS col0
----
1200

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-5392
SELECT + - CAST ( NULLIF ( 7, CAST ( NULL AS INTEGER ) ) AS INTEGER ) + COUNT ( * )
----
-6

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

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

query I rowsort
SELECT - + 53 * 95
----
-5035

query II rowsort
SELECT 48 AS col2, 46
----
48
46

query I rowsort
SELECT - NULLIF ( - 54, - ( - 22 ) ) AS col1
----
54

query I rowsort
SELECT - - 20 * + 95
----
1900

query I rowsort
SELECT ALL - 9 * + 53 AS col1
----
-477

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5399
SELECT DISTINCT + 30 AS col0, - ( - 17 ) + + 78 + + 29 * + 63 + + - 64 * - ( - 3 ) DIV COUNT( * )
----
30
1730

skipif mysql # not compatible
query II rowsort label-5399
SELECT DISTINCT + 30 AS col0, - ( - 17 ) + + 78 + + 29 * + 63 + + - 64 * - ( - 3 ) / COUNT ( * )
----
30
1730

query I rowsort
SELECT ALL ( 93 ) + 42 AS col0
----
135

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

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

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

query I rowsort
SELECT - 39 - - - 26 + + - 6 * + + 35
----
-275

query I rowsort
SELECT - NULLIF ( - 27, + + 15 ) AS col2
----
27

query I rowsort
SELECT + + 52 * ( + - 6 ) - 49 AS col1
----
-361

query I rowsort
SELECT + 53 * + 27 AS col0
----
1431

onlyif mysql # DIV for integer division: 
query I rowsort label-5407
SELECT ALL + 83 DIV - + 40 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-5407
SELECT ALL + 83 / - + 40 AS col1
----
-2

query I rowsort
SELECT DISTINCT 1 + - 95
----
-94

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

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

query I rowsort
SELECT ALL + 33 + - 90 col0
----
-57

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

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

query II rowsort
SELECT ALL + 97 AS col0, - 1 AS col2
----
97
-1

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

skipif mysql # not compatible
query II rowsort label-5413
SELECT DISTINCT - 12 AS col2, COUNT ( * )
----
-12
1

query I rowsort
SELECT + + 53 - + + 45 * + 51 + - 72
----
-2314

onlyif mysql # aggregate syntax: 
query III rowsort label-5415
SELECT ALL 88 + + ( COUNT( * ) ) + 88, 43 AS col0, + + ( + 88 ) * - - 35 - - + 73 col0
----
177
43
3153

skipif mysql # not compatible
query III rowsort label-5415
SELECT ALL 88 + + ( COUNT ( * ) ) + 88, 43 AS col0, + + ( + 88 ) * - - 35 - - + 73 col0
----
177
43
3153

query I rowsort
SELECT ALL 47 + + 59 - 36
----
70

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

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

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

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

query II rowsort
SELECT ALL 41 * + - 55 AS col2, 77
----
-2255
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5420
SELECT 19 DIV - 51 * 32 + - MIN( DISTINCT + 80 ) AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-5420
SELECT 19 / - 51 * 32 + - MIN ( DISTINCT + 80 ) AS col2
----
-80

query I rowsort
SELECT DISTINCT + COALESCE ( + 26, + 64 - 79 + 49 * - 32, + - 65 * + 63 - - - 13 ) - - 26 AS col0
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5422
SELECT ALL - NULLIF ( 77, + COUNT( * ) + - NULLIF ( - + 20, - 55 + - COUNT( * ) * - MIN( - + 14 ) * + 54 ) ) DIV 91
----
0

skipif mysql # not compatible
query I rowsort label-5422
SELECT ALL - NULLIF ( 77, + COUNT ( * ) + - NULLIF ( - + 20, - 55 + - COUNT ( * ) * - MIN ( - + 14 ) * + 54 ) ) / 91
----
0

query I rowsort
SELECT 16 * + + ( - - 87 ) col0
----
1392

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5424
SELECT ( - CAST( NULL AS SIGNED ) ) * + ( - + 96 ) - - - 53 + - + ( - + ( - - 70 ) ) + + 61, + 11 col1
----
NULL
11

skipif mysql # not compatible
query II rowsort label-5424
SELECT ( - CAST ( NULL AS INTEGER ) ) * + ( - + 96 ) - - - 53 + - + ( - + ( - - 70 ) ) + + 61, + 11 col1
----
NULL
11

onlyif mysql # DIV for integer division: 
query I rowsort label-5425
SELECT 35 DIV - 96 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5425
SELECT 35 / - 96 AS col0
----
0

query I rowsort
SELECT ALL + 29 * + + 8 AS col2
----
232

query II rowsort
SELECT 6 * 35 AS col0, - 1 + 0 + - 1
----
210
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-5428
SELECT 12 DIV + + 3
----
4

skipif mysql # not compatible
query I rowsort label-5428
SELECT 12 / + + 3
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5429
SELECT ALL - 13 * ( - 74 ) * - 92 * COUNT( * ) * - 12
----
1062048

skipif mysql # not compatible
query I rowsort label-5429
SELECT ALL - 13 * ( - 74 ) * - 92 * COUNT ( * ) * - 12
----
1062048

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5431
SELECT ALL - 69 * COUNT( * ) + - 48
----
-117

skipif mysql # not compatible
query I rowsort label-5431
SELECT ALL - 69 * COUNT ( * ) + - 48
----
-117

query I rowsort
SELECT DISTINCT + - 71 + - - 29
----
-42

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

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

query I rowsort
SELECT + 66 * 35 * - 5 + 9
----
-11541

onlyif mysql # aggregate syntax: 
query I rowsort label-5435
SELECT + 25 * 73 + NULLIF ( - COUNT( * ), - + 72 * + 46 )
----
1824

skipif mysql # not compatible
query I rowsort label-5435
SELECT + 25 * 73 + NULLIF ( - COUNT ( * ), - + 72 * + 46 )
----
1824

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5437
SELECT + 6 - - ( + COUNT( * ) ) AS col1
----
7

skipif mysql # not compatible
query I rowsort label-5437
SELECT + 6 - - ( + COUNT ( * ) ) AS col1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5438
SELECT ALL COUNT( * ) + - NULLIF ( - - 46, 72 + 32 ) AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-5438
SELECT ALL COUNT ( * ) + - NULLIF ( - - 46, 72 + 32 ) AS col2
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5439
SELECT DISTINCT + + CASE - 91 WHEN CAST( NULL AS SIGNED ) THEN NULL WHEN - 72 THEN 21 END / + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5439
SELECT DISTINCT + + CASE - 91 WHEN CAST ( NULL AS INTEGER ) THEN NULL WHEN - 72 THEN 21 END / + COUNT ( * ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5440
SELECT DISTINCT - NULLIF ( + + 95, ( - 40 ) - - 40 + - 77 + CAST( NULL AS SIGNED ) * + 6 ) + + COUNT( * ) * 74
----
-21

skipif mysql # not compatible
query I rowsort label-5440
SELECT DISTINCT - NULLIF ( + + 95, ( - 40 ) - - 40 + - 77 + CAST ( NULL AS INTEGER ) * + 6 ) + + COUNT ( * ) * 74
----
-21

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

skipif mysql # not compatible
query I rowsort label-5441
SELECT + MIN ( - 6 )
----
-6

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5442
SELECT 65 / - CASE - 67 WHEN + 62 * + 38 + + CAST( NULL AS DECIMAL ) THEN NULL WHEN + + 49 + + 88 * + - 44 + + NULLIF ( - 10, + 8 ) + - COALESCE ( + 11, 2 * - + 48, + COUNT( * ) ) * 78 THEN 57 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5442
SELECT 65 / - CASE - 67 WHEN + 62 * + 38 + + CAST ( NULL AS REAL ) THEN NULL WHEN + + 49 + + 88 * + - 44 + + NULLIF ( - 10, + 8 ) + - COALESCE ( + 11, 2 * - + 48, + COUNT ( * ) ) * 78 THEN 57 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5443
SELECT NULLIF ( COUNT( * ), + - 69 ) * 20
----
20

skipif mysql # not compatible
query I rowsort label-5443
SELECT NULLIF ( COUNT ( * ), + - 69 ) * 20
----
20

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5446
SELECT CASE ( + 49 ) WHEN 22 / 4 + - ( + 97 ) * MIN( DISTINCT + 86 ) THEN - 69 WHEN + 14 + - 69 * - - 4 THEN NULL ELSE NULL END - 22 + - 75 + 3
----
NULL

skipif mysql # not compatible
query I rowsort label-5446
SELECT CASE ( + 49 ) WHEN 22 / 4 + - ( + 97 ) * MIN ( DISTINCT + 86 ) THEN - 69 WHEN + 14 + - 69 * - - 4 THEN NULL ELSE NULL END - 22 + - 75 + 3
----
NULL

query I rowsort
SELECT 0 * - + NULLIF ( + 72, + 93 )
----
0

query I rowsort
SELECT 24 * + 21 + 17 AS col2
----
521

query II rowsort
SELECT ALL - 42 col2, - 46 AS col0
----
-42
-46

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

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

query I rowsort
SELECT COALESCE ( - + 65, 69 ) - 71 + - 23 * - 84 col1
----
1796

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5453
SELECT 61 * - + COUNT( * ) + - 36 col0
----
-97

skipif mysql # not compatible
query I rowsort label-5453
SELECT 61 * - + COUNT ( * ) + - 36 col0
----
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-5454
SELECT NULLIF ( + + 97, - 48 * + - 88 * 40 / + ( + 74 ) ) * - COUNT( * ), + 38 * 68 AS col2
----
-97
2584

skipif mysql # not compatible
query II rowsort label-5454
SELECT NULLIF ( + + 97, - 48 * + - 88 * 40 / + ( + 74 ) ) * - COUNT ( * ), + 38 * 68 AS col2
----
-97
2584

query I rowsort
SELECT ALL - 82 + + 55 AS col2
----
-27

query I rowsort
SELECT + 8 * + 58 + + 12 AS col1
----
476

query I rowsort
SELECT 65 + - 94
----
-29

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

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

query II rowsort
SELECT - 91 + 88 * - + 45 AS col1, 95 AS col0
----
-4051
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5460
SELECT ALL + - CASE + 57 WHEN - + COUNT( * ) THEN NULL WHEN 66 DIV + 39 THEN + 35 * - - 63 + + ( - - 62 ) ELSE + 20 DIV + ( - - SUM( DISTINCT - 45 ) ) * 91 * - - 53 + 1 END + + SUM( ALL - 74 ), - 60 AS col1
----
-75
-60

skipif mysql # not compatible
query II rowsort label-5460
SELECT ALL + - CASE + 57 WHEN - + COUNT ( * ) THEN NULL WHEN 66 / + 39 THEN + 35 * - - 63 + + ( - - 62 ) ELSE + 20 / + ( - - SUM ( DISTINCT - 45 ) ) * 91 * - - 53 + 1 END + + SUM ( ALL - 74 ), - 60 AS col1
----
-75
-60

query I rowsort
SELECT DISTINCT - - 31 * + 21 AS col0
----
651

query I rowsort
SELECT - 57 * + 8 AS col1
----
-456

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

query I rowsort
SELECT DISTINCT - + 64 - - 90
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-5465
SELECT ALL - + 2 - MAX( - + 43 ) - + + ( - - 54 ) + + 88 * - 94 AS col0
----
-8285

skipif mysql # not compatible
query I rowsort label-5465
SELECT ALL - + 2 - MAX ( - + 43 ) - + + ( - - 54 ) + + 88 * - 94 AS col0
----
-8285

query I rowsort
SELECT - - 25 * - 42 + - ( - + ( + + 0 ) )
----
-1050

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5468
SELECT DISTINCT NULLIF ( - COUNT( + ( - 12 ) ), - AVG ( CASE + - 39 WHEN + 27 THEN NULL WHEN 18 THEN - 23 / 87 + 79 END ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5468
SELECT DISTINCT NULLIF ( - COUNT ( + ( - 12 ) ), - AVG ( CASE + - 39 WHEN + 27 THEN NULL WHEN 18 THEN - 23 / 87 + 79 END ) ) AS col1
----
-1

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5470
SELECT - 76 DIV 21 DIV - 61 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5470
SELECT - 76 / 21 / - 61 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5471
SELECT ALL CASE + 52 WHEN - 85 THEN - 88 - 83 END * - + 31 * - 11 * - - CAST( COUNT( * ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5471
SELECT ALL CASE + 52 WHEN - 85 THEN - 88 - 83 END * - + 31 * - 11 * - - CAST ( COUNT ( * ) AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5472
SELECT - 93 + + 85 DIV + 89 AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-5472
SELECT - 93 + + 85 / + 89 AS col0
----
-93

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

skipif mysql # not compatible
query I rowsort label-5473
SELECT ALL + COUNT ( 22 ) / + 3 AS col2
----
0

query I rowsort
SELECT ALL NULLIF ( - 96, 94 )
----
-96

query II rowsort
SELECT - 36 AS col0, - 68
----
-36
-68

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

skipif mysql # not compatible
query I rowsort label-5476
SELECT DISTINCT + COUNT ( ALL 5 ) AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5477
SELECT ALL + COUNT( * ) * 61 * - COUNT( * ) DIV - 83 * 46 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5477
SELECT ALL + COUNT ( * ) * 61 * - COUNT ( * ) / - 83 * 46 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5478
SELECT - COUNT( * ) * - 62 + + CASE - + 14 WHEN - 94 THEN NULL ELSE - ( 8 ) * + 74 + + - 37 END * + + 65
----
-40823

skipif mysql # not compatible
query I rowsort label-5478
SELECT - COUNT ( * ) * - 62 + + CASE - + 14 WHEN - 94 THEN NULL ELSE - ( 8 ) * + 74 + + - 37 END * + + 65
----
-40823

query II rowsort
SELECT ALL + 77, + 91 AS col0
----
77
91

query I rowsort
SELECT DISTINCT - 84 * - + 16
----
1344

query I rowsort
SELECT + 27 * + + 27 * ( NULLIF ( 4, - - 8 ) )
----
2916

onlyif mysql # aggregate syntax: 
query I rowsort label-5482
SELECT ALL + SUM( ALL 50 ) * + COUNT( * ) + - ( 66 ) AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-5482
SELECT ALL + SUM ( ALL 50 ) * + COUNT ( * ) + - ( 66 ) AS col2
----
-16

query I rowsort
SELECT DISTINCT + 14 * + 71 + - + 39 AS col1
----
955

onlyif mysql # aggregate syntax: 
query I rowsort label-5484
SELECT CASE + ( - 8 ) WHEN - COUNT( * ) THEN 8 WHEN + - 66 * - 65 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5484
SELECT CASE + ( - 8 ) WHEN - COUNT ( * ) THEN 8 WHEN + - 66 * - 65 THEN NULL END AS col2
----
NULL

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

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

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

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

query II rowsort
SELECT + 53 AS col0, 19
----
53
19

query II rowsort
SELECT DISTINCT 18 * - 91, 81 AS col0
----
-1638
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5489
SELECT ALL - COUNT( 3 ) * - 40 - COUNT( - 71 ) + - CASE 5 WHEN + - 79 + - - 92 THEN 85 ELSE NULL END + + COUNT( * ) + - + 64
----
NULL

skipif mysql # not compatible
query I rowsort label-5489
SELECT ALL - COUNT ( 3 ) * - 40 - COUNT ( - 71 ) + - CASE 5 WHEN + - 79 + - - 92 THEN 85 ELSE NULL END + + COUNT ( * ) + - + 64
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5490
SELECT + CAST( + ( 75 ) AS SIGNED ) - + 26 AS col0
----
49

skipif mysql # not compatible
query I rowsort label-5490
SELECT + CAST ( + ( 75 ) AS INTEGER ) - + 26 AS col0
----
49

query II rowsort
SELECT + + 33 AS col1, 82 * 47
----
33
3854

onlyif mysql # aggregate syntax: 
query I rowsort label-5492
SELECT + CASE - + 58 WHEN - 39 THEN + 25 + + 83 END * 93 * + + COUNT( * ) - - 22 * + 15
----
NULL

skipif mysql # not compatible
query I rowsort label-5492
SELECT + CASE - + 58 WHEN - 39 THEN + 25 + + 83 END * 93 * + + COUNT ( * ) - - 22 * + 15
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5493
SELECT ALL COUNT( * ) * + COALESCE ( COUNT( * ), 14 + - 63 ) + 54 col0
----
55

skipif mysql # not compatible
query I rowsort label-5493
SELECT ALL COUNT ( * ) * + COALESCE ( COUNT ( * ), 14 + - 63 ) + 54 col0
----
55

query I rowsort
SELECT DISTINCT + 59 * ( + 59 ) AS col1
----
3481

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5496
SELECT ALL COUNT( * ) * 26 * 62 col1
----
1612

skipif mysql # not compatible
query I rowsort label-5496
SELECT ALL COUNT ( * ) * 26 * 62 col1
----
1612

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5497
SELECT DISTINCT - 89 * + + 39 - 59 - - 42 * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5497
SELECT DISTINCT - 89 * + + 39 - 59 - - 42 * + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5498
SELECT ALL + 61 AS col1, + SUM( DISTINCT + 46 )
----
61
46

skipif mysql # not compatible
query II rowsort label-5498
SELECT ALL + 61 AS col1, + SUM ( DISTINCT + 46 )
----
61
46

query I rowsort
SELECT + - 40 - 79 AS col0
----
-119

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5500
SELECT + 8 + + 73 * + - 17 - NULLIF ( - + CAST( - + CAST( + 69 AS SIGNED ) AS SIGNED ), - 2 )
----
-1302

skipif mysql # not compatible
query I rowsort label-5500
SELECT + 8 + + 73 * + - 17 - NULLIF ( - + CAST ( - + CAST ( + 69 AS INTEGER ) AS INTEGER ), - 2 )
----
-1302

onlyif mysql # aggregate syntax: 
query I rowsort label-5501
SELECT - 77 * MIN( - 38 ) col0
----
2926

skipif mysql # not compatible
query I rowsort label-5501
SELECT - 77 * MIN ( - 38 ) col0
----
2926

onlyif mysql # DIV for integer division: 
query I rowsort label-5502
SELECT ALL 47 DIV 62 + + - 74
----
-74

skipif mysql # not compatible
query I rowsort label-5502
SELECT ALL 47 / 62 + + - 74
----
-74

query II rowsort
SELECT ALL 39, 26 * + - CASE - 32 WHEN + 74 THEN - 27 * - + 63 / + - 3 END * + 29 * 89 col1
----
39
NULL

query II rowsort
SELECT ALL - 94 * + - 67, 46 + + 72 AS col1
----
6298
118

query I rowsort
SELECT - ( - 10 ) * - 40 * - 56
----
22400

query I rowsort
SELECT ALL + 60 * - + 5 AS col2
----
-300

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5508
SELECT - 52 + - - 8 + - - CAST( - - 35 AS SIGNED ) DIV + 66 + 40
----
-4

skipif mysql # not compatible
query I rowsort label-5508
SELECT - 52 + - - 8 + - - CAST ( - - 35 AS INTEGER ) / + 66 + 40
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5509
SELECT ALL + 69 * + - 54 * - 33 AS col2, 73 - + CAST( - CASE CAST( 12 AS SIGNED ) WHEN - - 48 * + - 51 + + ( - 64 ) - + 68 - 77 THEN 60 WHEN + - 31 THEN + + 11 ELSE - - 19 END AS SIGNED ) + - - 91 col0
----
122958
183

skipif mysql # not compatible
query II rowsort label-5509
SELECT ALL + 69 * + - 54 * - 33 AS col2, 73 - + CAST ( - CASE CAST ( 12 AS INTEGER ) WHEN - - 48 * + - 51 + + ( - 64 ) - + 68 - 77 THEN 60 WHEN + - 31 THEN + + 11 ELSE - - 19 END AS INTEGER ) + - - 91 col0
----
122958
183

query I rowsort
SELECT + ( 1 ) * - - CASE 89 WHEN - 18 THEN + + 96 + - 61 * - 43 WHEN + + 62 * 45 THEN NULL END + - 5 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5511
SELECT ALL - MAX( ALL - - 11 ) + 29 AS col1
----
18

skipif mysql # not compatible
query I rowsort label-5511
SELECT ALL - MAX ( ALL - - 11 ) + 29 AS col1
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-5512
SELECT - SUM( - 7 ) + - 46 * 6 + ( - - 28 )
----
-241

skipif mysql # not compatible
query I rowsort label-5512
SELECT - SUM ( - 7 ) + - 46 * 6 + ( - - 28 )
----
-241

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

skipif mysql # not compatible
query I rowsort label-5513
SELECT - MAX ( - 27 )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-5514
SELECT DISTINCT CASE + NULLIF ( COUNT( * ), + 26 ) WHEN 26 THEN NULL ELSE + 94 * + - 34 END
----
-3196

skipif mysql # not compatible
query I rowsort label-5514
SELECT DISTINCT CASE + NULLIF ( COUNT ( * ), + 26 ) WHEN 26 THEN NULL ELSE + 94 * + - 34 END
----
-3196

query I rowsort
SELECT ALL - 98 + 70 AS col0
----
-28

onlyif mysql # aggregate syntax: 
query II rowsort label-5516
SELECT 61 * + 78 + + - 11, MIN( DISTINCT - + 91 ) AS col2
----
4747
-91

skipif mysql # not compatible
query II rowsort label-5516
SELECT 61 * + 78 + + - 11, MIN ( DISTINCT - + 91 ) AS col2
----
4747
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-5517
SELECT DISTINCT - 86 DIV + 26 + + - 60
----
-63

skipif mysql # not compatible
query I rowsort label-5517
SELECT DISTINCT - 86 / + 26 + + - 60
----
-63

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

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

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

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

query II rowsort
SELECT - 68 + - 33 + - 66 + + 61 * - 2 * - 67 * - 95 AS col2, 57
----
-776697
57

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

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

query I rowsort
SELECT - + 50 * + 44 - 99 + 53 + - + 14 + + 88
----
-2172

onlyif mysql # DIV for integer division: 
query I rowsort label-5523
SELECT + + 79 - - 73 + + 2 DIV - 40 AS col0
----
152

skipif mysql # not compatible
query I rowsort label-5523
SELECT + + 79 - - 73 + + 2 / - 40 AS col0
----
152

onlyif mysql # DIV for integer division: 
query I rowsort label-5524
SELECT - 18 DIV 8 * + + ( + - 19 ) - + 0 + - + 41 + 21 AS col2
----
18

skipif mysql # not compatible
query I rowsort label-5524
SELECT - 18 / 8 * + + ( + - 19 ) - + 0 + - + 41 + 21 AS col2
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-5525
SELECT - - COUNT( DISTINCT - 78 ) * COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5525
SELECT - - COUNT ( DISTINCT - 78 ) * COUNT ( * ) AS col1
----
1

query I rowsort
SELECT ALL + + 22 * + COALESCE ( + 39, - + 11 ) + + - 18 AS col0
----
840

onlyif mysql # DIV for integer division: 
query I rowsort label-5527
SELECT - + 19 + - 47 + + 18 DIV + + 46 * - CASE WHEN NOT - 89 NOT BETWEEN NULL AND NULL THEN NULL ELSE - + 2 END col1
----
-66

skipif mysql # not compatible
query I rowsort label-5527
SELECT - + 19 + - 47 + + 18 / + + 46 * - CASE WHEN NOT - 89 NOT BETWEEN NULL AND NULL THEN NULL ELSE - + 2 END col1
----
-66

query II rowsort
SELECT - + 60 * 15 AS col2, - 20
----
-900
-20

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

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

query I rowsort
SELECT - 79 * - + 4 * 21 col0
----
6636

query I rowsort
SELECT 4 * 74 AS col2
----
296

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5532
SELECT - 53 + COUNT( + 34 ) * CAST( - - 44 AS SIGNED ) + + 96 + - COUNT( * ) * - + 76 AS col0
----
163

skipif mysql # not compatible
query I rowsort label-5532
SELECT - 53 + COUNT ( + 34 ) * CAST ( - - 44 AS INTEGER ) + + 96 + - COUNT ( * ) * - + 76 AS col0
----
163

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

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

query I rowsort
SELECT ALL 36 * 46 + + 16 * - - 40 col2
----
2296

onlyif mysql # aggregate syntax: 
query II rowsort label-5535
SELECT 97 + 72, 22 * - COUNT( * ) AS col0
----
169
-22

skipif mysql # not compatible
query II rowsort label-5535
SELECT 97 + 72, 22 * - COUNT ( * ) AS col0
----
169
-22

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

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

query I rowsort
SELECT ALL - 53 * - - 99 AS col1
----
-5247

query II rowsort
SELECT 78 AS col1, + 4 + + 35
----
78
39

query II rowsort
SELECT - 20 AS col0, 36 AS col0
----
-20
36

query I rowsort
SELECT ALL 76 + - 85 + - + COALESCE ( - 12, 50 ) - 65 AS col1
----
-62

query II rowsort
SELECT 69 col0, 22 AS col1
----
69
22

query I rowsort
SELECT 99 - + 18
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-5543
SELECT 6 DIV 15 DIV - 3 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5543
SELECT 6 / 15 / - 3 AS col1
----
0

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

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

query I rowsort
SELECT ALL 75 + + + 24
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5546
SELECT ALL 97 AS col0, - COUNT( 84 ) * + - CASE + 83 WHEN + + 20 * + 99 + + - 62 / - + CAST( NULL AS SIGNED ) THEN + + COUNT( * ) + + 83 * + COUNT( * ) ELSE + 83 - - CAST( NULL AS SIGNED ) END
----
97
NULL

skipif mysql # not compatible
query II rowsort label-5546
SELECT ALL 97 AS col0, - COUNT ( 84 ) * + - CASE + 83 WHEN + + 20 * + 99 + + - 62 / - + CAST ( NULL AS INTEGER ) THEN + + COUNT ( * ) + + 83 * + COUNT ( * ) ELSE + 83 - - CAST ( NULL AS INTEGER ) END
----
97
NULL

query I rowsort
SELECT 44 - - 95 + + 27
----
166

onlyif mysql # aggregate syntax: 
query I rowsort label-5548
SELECT ALL + CASE + 65 WHEN + 79 THEN + 1 * + COUNT( - + 40 ) END + + 91 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5548
SELECT ALL + CASE + 65 WHEN + 79 THEN + 1 * + COUNT ( - + 40 ) END + + 91 col1
----
NULL

query I rowsort
SELECT 31 * - ( + - ( + ( + + ( + 93 ) ) ) ) AS col1
----
2883

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5550
SELECT COUNT( * ) DIV - 15 + - - 26 AS col0
----
26

skipif mysql # not compatible
query I rowsort label-5550
SELECT COUNT ( * ) / - 15 + - - 26 AS col0
----
26

query II rowsort
SELECT 78 col1, - 37
----
78
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-5552
SELECT + 43 + COUNT( * )
----
44

skipif mysql # not compatible
query I rowsort label-5552
SELECT + 43 + COUNT ( * )
----
44

query I rowsort
SELECT + - 19 col2
----
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-5554
SELECT ALL - 53, + MAX( ALL - - 95 ) AS col0
----
-53
95

skipif mysql # not compatible
query II rowsort label-5554
SELECT ALL - 53, + MAX ( ALL - - 95 ) AS col0
----
-53
95

onlyif mysql # aggregate syntax: 
query I rowsort label-5555
SELECT ALL + SUM( 42 ) - - 93 AS col0
----
135

skipif mysql # not compatible
query I rowsort label-5555
SELECT ALL + SUM ( 42 ) - - 93 AS col0
----
135

query I rowsort
SELECT + + 73 * - 58 * + - ( 88 ) - + + 87 col0
----
372505

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5557
SELECT - 51 * COUNT( * ) DIV - 26
----
1

skipif mysql # not compatible
query I rowsort label-5557
SELECT - 51 * COUNT ( * ) / - 26
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5558
SELECT COALESCE ( + 22, - + 30 ) + + + 98 * + COUNT( * )
----
120

skipif mysql # not compatible
query I rowsort label-5558
SELECT COALESCE ( + 22, - + 30 ) + + + 98 * + COUNT ( * )
----
120

query I rowsort
SELECT 99 * + 34 + 21
----
3387

query I rowsort
SELECT + 17 * - + 64 + 41 * + - 64 * 79
----
-208384

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5562
SELECT COUNT( * ) + COUNT( * ) + + + 76 + + ( - 80 )
----
-2

skipif mysql # not compatible
query I rowsort label-5562
SELECT COUNT ( * ) + COUNT ( * ) + + + 76 + + ( - 80 )
----
-2

query I rowsort
SELECT ALL - 42 + 68
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-5564
SELECT COUNT( * ) * + 23 + + + 49 col1
----
72

skipif mysql # not compatible
query I rowsort label-5564
SELECT COUNT ( * ) * + 23 + + + 49 col1
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-5565
SELECT ALL COUNT( 95 ) + - - CASE - - 61 WHEN - 93 THEN - 31 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5565
SELECT ALL COUNT ( 95 ) + - - CASE - - 61 WHEN - 93 THEN - 31 END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5566
SELECT 34 + COUNT( * ) col2
----
35

skipif mysql # not compatible
query I rowsort label-5566
SELECT 34 + COUNT ( * ) col2
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5567
SELECT CAST( NULL AS SIGNED ) + 27 + + 87 + + - 85 + 79 + - 19 * - CAST( 6 AS SIGNED ) / - 37
----
NULL

skipif mysql # not compatible
query I rowsort label-5567
SELECT CAST ( NULL AS INTEGER ) + 27 + + 87 + + - 85 + 79 + - 19 * - CAST ( 6 AS INTEGER ) / - 37
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5568
SELECT COUNT( * ) + + + COUNT( * ) + + 92 AS col1
----
94

skipif mysql # not compatible
query I rowsort label-5568
SELECT COUNT ( * ) + + + COUNT ( * ) + + 92 AS col1
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-5569
SELECT DISTINCT 56 - + SUM( DISTINCT + 69 )
----
-13

skipif mysql # not compatible
query I rowsort label-5569
SELECT DISTINCT 56 - + SUM ( DISTINCT + 69 )
----
-13

query I rowsort
SELECT 40 + 53 AS col2
----
93

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5571
SELECT 88 * + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5571
SELECT 88 * + CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5572
SELECT ALL ( - MAX( - 65 ) ) * + 63 / COUNT( * ) * - NULLIF ( - 12, + - 12 * - - COUNT( * ) ) + 82 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5572
SELECT ALL ( - MAX ( - 65 ) ) * + 63 / COUNT ( * ) * - NULLIF ( - 12, + - 12 * - - COUNT ( * ) ) + 82 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5573
SELECT + - NULLIF ( + 93, MAX( DISTINCT + - ( - 86 ) ) + + - 77 + + - 84 ) + - 32 + + ( + - COALESCE ( COUNT( * ), - 54, + 61 + 79 ) ) - - 28 * 3
----
-42

skipif mysql # not compatible
query I rowsort label-5573
SELECT + - NULLIF ( + 93, MAX ( DISTINCT + - ( - 86 ) ) + + - 77 + + - 84 ) + - 32 + + ( + - COALESCE ( COUNT ( * ), - 54, + 61 + 79 ) ) - - 28 * 3
----
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5574
SELECT - - 53 + NULLIF ( - 4, - COALESCE ( 76, 53 ) - ( - ( - + NULLIF ( - 31, + + 79 ) ) ) * CASE + 82 WHEN ( 25 ) * + COALESCE ( - + 98, + - 83 ) * + - 76 + COUNT( * ) THEN COUNT( * ) + 35 END * 28 + ( + 12 ) ) + 97 + 75 DIV + 14
----
151

skipif mysql # not compatible
query I rowsort label-5574
SELECT - - 53 + NULLIF ( - 4, - COALESCE ( 76, 53 ) - ( - ( - + NULLIF ( - 31, + + 79 ) ) ) * CASE + 82 WHEN ( 25 ) * + COALESCE ( - + 98, + - 83 ) * + - 76 + COUNT ( * ) THEN COUNT ( * ) + 35 END * 28 + ( + 12 ) ) + 97 + 75 / + 14
----
151

query I rowsort
SELECT ALL + 47 * + - 52
----
-2444

onlyif mysql # aggregate syntax: 
query I rowsort label-5576
SELECT + + 42 + - MIN( ALL + 88 )
----
-46

skipif mysql # not compatible
query I rowsort label-5576
SELECT + + 42 + - MIN ( ALL + 88 )
----
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5577
SELECT + + COUNT( * ) * - COUNT( - 4 ) DIV 17 * - + COUNT( * ) + + 5 AS col2
----
5

skipif mysql # not compatible
query I rowsort label-5577
SELECT + + COUNT ( * ) * - COUNT ( - 4 ) / 17 * - + COUNT ( * ) + + 5 AS col2
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5578
SELECT - 44 - + - 50 + + + COUNT( * )
----
7

skipif mysql # not compatible
query I rowsort label-5578
SELECT - 44 - + - 50 + + + COUNT ( * )
----
7

query I rowsort
SELECT ALL + CASE - 41 WHEN - - 6 THEN 51 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT + 88 * + + NULLIF ( + 41, + 80 * + CASE - + 52 WHEN - 44 THEN NULL WHEN - ( + - 49 ) - + - 20 THEN + 94 + 82 + + 9 END ) AS col1
----
3608

onlyif mysql # aggregate syntax: 
query I rowsort label-5581
SELECT ALL ( + + 13 ) * - + COALESCE ( + COUNT( * ), - 27 ) * - + 13 * COUNT( * ) + + 23 - + COUNT( * ) * - - 56
----
136

skipif mysql # not compatible
query I rowsort label-5581
SELECT ALL ( + + 13 ) * - + COALESCE ( + COUNT ( * ), - 27 ) * - + 13 * COUNT ( * ) + + 23 - + COUNT ( * ) * - - 56
----
136

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

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

query I rowsort
SELECT DISTINCT - 19 * + 37 * + - 85 + - 27 + 83 + - 79 + 58 - + + 3 + + 77
----
59864

onlyif mysql # aggregate syntax: 
query I rowsort label-5584
SELECT ALL + 83 * + - 35 * - - ( - COUNT( * ) ) + - 78 * 82 AS col2
----
-3491

skipif mysql # not compatible
query I rowsort label-5584
SELECT ALL + 83 * + - 35 * - - ( - COUNT ( * ) ) + - 78 * 82 AS col2
----
-3491

query I rowsort
SELECT - - 26 + - 25 + + + 69 AS col1
----
70

query I rowsort
SELECT DISTINCT 38 * - 62 + + - 56 + - ( + - 44 )
----
-2368

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5588
SELECT - - 76 + - + COALESCE ( - 77, - NULLIF ( + 3, + 59 ) - - ( 83 ) + 39 + - CASE - - 20 WHEN - 20 THEN 9 + 6 WHEN + 88 THEN NULL ELSE + - 40 * - COALESCE ( + MAX( - - 52 ), - + 6 ) + + 36 END DIV + + COUNT( * ) * 0, + 62 * - COUNT( * ) ) + + 14 AS col2
----
167

skipif mysql # not compatible
query I rowsort label-5588
SELECT - - 76 + - + COALESCE ( - 77, - NULLIF ( + 3, + 59 ) - - ( 83 ) + 39 + - CASE - - 20 WHEN - 20 THEN 9 + 6 WHEN + 88 THEN NULL ELSE + - 40 * - COALESCE ( + MAX ( - - 52 ), - + 6 ) + + 36 END / + + COUNT ( * ) * 0, + 62 * - COUNT ( * ) ) + + 14 AS col2
----
167

query I rowsort
SELECT ALL - 14 * - + 87 + - - 68 AS col1
----
1286

onlyif mysql # DIV for integer division: 
query I rowsort label-5590
SELECT - 94 DIV 44 col0
----
-2

skipif mysql # not compatible
query I rowsort label-5590
SELECT - 94 / 44 col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5591
SELECT DISTINCT + 66 + + + 0 - + COUNT( * ) * + 35
----
31

skipif mysql # not compatible
query I rowsort label-5591
SELECT DISTINCT + 66 + + + 0 - + COUNT ( * ) * + 35
----
31

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5593
SELECT ALL 75 DIV + 84 * + 61
----
0

skipif mysql # not compatible
query I rowsort label-5593
SELECT ALL 75 / + 84 * + 61
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5594
SELECT ALL + 48 - - + ( ( - + 17 ) ) * + COUNT( * ) AS col2
----
31

skipif mysql # not compatible
query I rowsort label-5594
SELECT ALL + 48 - - + ( ( - + 17 ) ) * + COUNT ( * ) AS col2
----
31

query II rowsort
SELECT - 28 - - - ( - 92 ) AS col1, + 4
----
64
4

query I rowsort
SELECT - 4 - 93 * + 11 AS col2
----
-1027

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

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

query I rowsort
SELECT ALL 15 * - 64
----
-960

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

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

query I rowsort
SELECT ALL - ( + 89 ) - + + 1 - + - 0 AS col2
----
-90

query I rowsort
SELECT ALL 68 - + + CASE + AVG ( DISTINCT - 55 ) WHEN 28 THEN + + 16 END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5602
SELECT ALL + CAST( 7 AS SIGNED ) * + 67 AS col1
----
469

skipif mysql # not compatible
query I rowsort label-5602
SELECT ALL + CAST ( 7 AS INTEGER ) * + 67 AS col1
----
469

onlyif mysql # aggregate syntax: 
query I rowsort label-5603
SELECT + 50 - MAX( DISTINCT - 51 )
----
101

skipif mysql # not compatible
query I rowsort label-5603
SELECT + 50 - MAX ( DISTINCT - 51 )
----
101

query I rowsort
SELECT DISTINCT 14 * - 57
----
-798

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5605
SELECT - COUNT( * ) * CAST( + NULLIF ( - 98, MAX( 0 ) ) AS SIGNED )
----
98

skipif mysql # not compatible
query I rowsort label-5605
SELECT - COUNT ( * ) * CAST ( + NULLIF ( - 98, MAX ( 0 ) ) AS INTEGER )
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5606
SELECT + ( 80 ) * MIN( 82 ) col0
----
6560

skipif mysql # not compatible
query I rowsort label-5606
SELECT + ( 80 ) * MIN ( 82 ) col0
----
6560

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

skipif mysql # not compatible
query I rowsort label-5607
SELECT - MIN ( ALL 84 )
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5608
SELECT CAST( + COALESCE ( 55, + 38, - 80 ) AS SIGNED )
----
55

skipif mysql # not compatible
query I rowsort label-5608
SELECT CAST ( + COALESCE ( 55, + 38, - 80 ) AS INTEGER )
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-5609
SELECT 5 DIV 28 + 57
----
57

skipif mysql # not compatible
query I rowsort label-5609
SELECT 5 / 28 + 57
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5610
SELECT ALL COUNT( * ) DIV 61
----
0

skipif mysql # not compatible
query I rowsort label-5610
SELECT ALL COUNT ( * ) / 61
----
0

query I rowsort
SELECT + ( - 15 ) * - 8
----
120

onlyif mysql # DIV for integer division: 
query I rowsort label-5612
SELECT ALL 43 DIV 16 + 62 AS col1
----
64

skipif mysql # not compatible
query I rowsort label-5612
SELECT ALL 43 / 16 + 62 AS col1
----
64

onlyif mysql # DIV for integer division: 
query I rowsort label-5613
SELECT ALL + 97 DIV 28 + 24
----
27

skipif mysql # not compatible
query I rowsort label-5613
SELECT ALL + 97 / 28 + 24
----
27

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5616
SELECT ALL 56 DIV MIN( ALL 96 ) + - SUM( 69 ) AS col1
----
-69

skipif mysql # not compatible
query I rowsort label-5616
SELECT ALL 56 / MIN ( ALL 96 ) + - SUM ( 69 ) AS col1
----
-69

query I rowsort
SELECT + 77 * NULLIF ( + 49, - 77 ) AS col1
----
3773

query I rowsort
SELECT + 54 * + 22 AS col2
----
1188

onlyif mysql # DIV for integer division: 
query I rowsort label-5619
SELECT ALL 99 DIV 75 + + 95 AS col0
----
96

skipif mysql # not compatible
query I rowsort label-5619
SELECT ALL 99 / 75 + + 95 AS col0
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5620
SELECT + 18 + COALESCE ( 78, CAST( 81 AS SIGNED ), - ( 52 ) ) AS col2
----
96

skipif mysql # not compatible
query I rowsort label-5620
SELECT + 18 + COALESCE ( 78, CAST ( 81 AS INTEGER ), - ( 52 ) ) AS col2
----
96

query I rowsort
SELECT - 24 * 97 AS col2
----
-2328

query I rowsort
SELECT + 94 + - 64
----
30

query I rowsort
SELECT ALL 42 * - 56 + - 87 * 91 AS col0
----
-10269

onlyif mysql # aggregate syntax: 
query I rowsort label-5624
SELECT DISTINCT MAX( 0 ) * 61 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5624
SELECT DISTINCT MAX ( 0 ) * 61 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5625
SELECT - COUNT( * ) * 70 + + 54
----
-16

skipif mysql # not compatible
query I rowsort label-5625
SELECT - COUNT ( * ) * 70 + + 54
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-5626
SELECT - SUM( ALL - 52 ) * 27 - ( - 88 ) AS col0
----
1492

skipif mysql # not compatible
query I rowsort label-5626
SELECT - SUM ( ALL - 52 ) * 27 - ( - 88 ) AS col0
----
1492

query I rowsort
SELECT - 64 - NULLIF ( 33, 72 ) * 27 AS col1
----
-955

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5629
SELECT ALL - CAST( 39 AS SIGNED ) * 97 - - 87
----
-3696

skipif mysql # not compatible
query I rowsort label-5629
SELECT ALL - CAST ( 39 AS INTEGER ) * 97 - - 87
----
-3696

query I rowsort
SELECT + 52 * 56 col0
----
2912

query I rowsort
SELECT - 16 + - 38 * - NULLIF ( 16, + 7 * ( 78 * - 81 ) )
----
592

query I rowsort
SELECT 80 * 4 + 66 AS col1
----
386

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5635
SELECT - ( - COUNT( * ) ) - 81 * 98 AS col0
----
-7937

skipif mysql # not compatible
query I rowsort label-5635
SELECT - ( - COUNT ( * ) ) - 81 * 98 AS col0
----
-7937

query I rowsort
SELECT ALL + 8 * + 46 AS col2
----
368

onlyif mysql # DIV for integer division: 
query I rowsort label-5637
SELECT - 74 DIV + 54 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5637
SELECT - 74 / + 54 AS col2
----
-1

query I rowsort
SELECT ALL ( 71 ) AS col2
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-5639
SELECT DISTINCT + MIN( ALL - 15 ) * + 61 col1
----
-915

skipif mysql # not compatible
query I rowsort label-5639
SELECT DISTINCT + MIN ( ALL - 15 ) * + 61 col1
----
-915

query I rowsort
SELECT 69 + + 2 AS col0
----
71

query I rowsort
SELECT + 81 + + 56
----
137

query I rowsort
SELECT - ( - 46 ) + 51 * - 57 AS col2
----
-2861

query I rowsort
SELECT - 3 * 58
----
-174

query I rowsort
SELECT 27 + - 18
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5645
SELECT ALL - ( + 96 ) + + ( + MIN( ALL NULLIF ( 26, 96 ) ) ) * 10
----
164

skipif mysql # not compatible
query I rowsort label-5645
SELECT ALL - ( + 96 ) + + ( + MIN ( ALL NULLIF ( 26, 96 ) ) ) * 10
----
164

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

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

query I rowsort
SELECT ALL + 70 + 17
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-5648
SELECT - MIN( ALL + 38 ) + 15
----
-23

skipif mysql # not compatible
query I rowsort label-5648
SELECT - MIN ( ALL + 38 ) + 15
----
-23

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5650
SELECT - 4 DIV 49 + MIN( DISTINCT - 91 - + 22 ) AS col0
----
-113

skipif mysql # not compatible
query I rowsort label-5650
SELECT - 4 / 49 + MIN ( DISTINCT - 91 - + 22 ) AS col0
----
-113

query I rowsort
SELECT ALL + + 96 + 80 * + 52
----
4256

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5653
SELECT DISTINCT - COUNT( - 46 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-5653
SELECT DISTINCT - COUNT ( - 46 ) col2
----
-1

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

query I rowsort
SELECT ( + 30 ) + + 63 AS col2
----
93

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5657
SELECT ALL NULLIF ( + CAST( NULL AS DECIMAL ), 36 * MIN( DISTINCT 97 ) ) - 12
----
NULL

skipif mysql # not compatible
query I rowsort label-5657
SELECT ALL NULLIF ( + CAST ( NULL AS REAL ), 36 * MIN ( DISTINCT 97 ) ) - 12
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5659
SELECT 25 + NULLIF ( MAX( 36 ), 17 * 62 ) col0
----
61

skipif mysql # not compatible
query I rowsort label-5659
SELECT 25 + NULLIF ( MAX ( 36 ), 17 * 62 ) col0
----
61

query I rowsort
SELECT DISTINCT 0 * + 72
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5661
SELECT 84 * NULLIF ( + 33, COUNT( * ) + - 72 ) + - 52
----
2720

skipif mysql # not compatible
query I rowsort label-5661
SELECT 84 * NULLIF ( + 33, COUNT ( * ) + - 72 ) + - 52
----
2720

query I rowsort
SELECT ALL 46 - 41
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5663
SELECT DISTINCT ( COUNT( * ) ) * 9 col1
----
9

skipif mysql # not compatible
query I rowsort label-5663
SELECT DISTINCT ( COUNT ( * ) ) * 9 col1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5664
SELECT NULLIF ( + 67, - ( - MAX( - 39 ) ) + COUNT( * ) * - 14 ) * 90 AS col0
----
6030

skipif mysql # not compatible
query I rowsort label-5664
SELECT NULLIF ( + 67, - ( - MAX ( - 39 ) ) + COUNT ( * ) * - 14 ) * 90 AS col0
----
6030

query I rowsort
SELECT 60 * - 29 col0
----
-1740

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5666
SELECT ALL CAST( NULL AS DECIMAL ) * 16 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5666
SELECT ALL CAST ( NULL AS REAL ) * 16 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5667
SELECT 69 + + + SUM( - 50 ) + + 38 AS col0
----
57

skipif mysql # not compatible
query I rowsort label-5667
SELECT 69 + + + SUM ( - 50 ) + + 38 AS col0
----
57

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

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

query I rowsort
SELECT 66 + - + 35 * 55
----
-1859

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

skipif mysql # not compatible
query I rowsort label-5670
SELECT 40 * - COUNT ( * ) / COUNT ( 58 )
----
-40

query I rowsort
SELECT 75 + - 10 * - 62
----
695

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5672
SELECT DISTINCT 91 / - CAST( NULL AS DECIMAL ) * - 61
----
NULL

skipif mysql # not compatible
query I rowsort label-5672
SELECT DISTINCT 91 / - CAST ( NULL AS REAL ) * - 61
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5673
SELECT ALL - + COUNT( * ) * - 11 + 8 AS col1
----
19

skipif mysql # not compatible
query I rowsort label-5673
SELECT ALL - + COUNT ( * ) * - 11 + 8 AS col1
----
19

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

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

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

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

query I rowsort
SELECT DISTINCT 6 * 61 AS col0
----
366

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5679
SELECT ALL COUNT( * ) + - COALESCE ( 27, 97 ) * - COUNT( * )
----
28

skipif mysql # not compatible
query I rowsort label-5679
SELECT ALL COUNT ( * ) + - COALESCE ( 27, 97 ) * - COUNT ( * )
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5680
SELECT DISTINCT - 41 + + CAST( + AVG ( ( 10 ) ) AS SIGNED ) + - 52 * + 29 AS col2
----
-1539

skipif mysql # not compatible
query I rowsort label-5680
SELECT DISTINCT - 41 + + CAST ( + AVG ( ( 10 ) ) AS INTEGER ) + - 52 * + 29 AS col2
----
-1539

query I rowsort
SELECT ALL + - 60 + - 96
----
-156

onlyif mysql # DIV for integer division: 
query I rowsort label-5682
SELECT 11 DIV - 76 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5682
SELECT 11 / - 76 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5683
SELECT MAX( + 43 ) - + 72 * - 35
----
2563

skipif mysql # not compatible
query I rowsort label-5683
SELECT MAX ( + 43 ) - + 72 * - 35
----
2563

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

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

query I rowsort
SELECT DISTINCT + - 56 * 90 - - 39 AS col0
----
-5001

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5687
SELECT 68 * + CAST( 49 AS SIGNED ) col0
----
3332

skipif mysql # not compatible
query I rowsort label-5687
SELECT 68 * + CAST ( 49 AS INTEGER ) col0
----
3332

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

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

query I rowsort
SELECT 28 * + 14
----
392

onlyif mysql # aggregate syntax: 
query I rowsort label-5690
SELECT DISTINCT - CASE 88 WHEN - - COUNT( * ) THEN ( ( 97 ) ) * + CASE 0 WHEN - 97 THEN NULL WHEN COUNT( * ) + + COUNT( * ) * 27 THEN + 36 ELSE NULL END + 89 / 36 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5690
SELECT DISTINCT - CASE 88 WHEN - - COUNT ( * ) THEN ( ( 97 ) ) * + CASE 0 WHEN - 97 THEN NULL WHEN COUNT ( * ) + + COUNT ( * ) * 27 THEN + 36 ELSE NULL END + 89 / 36 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5691
SELECT ALL + COUNT( * ) * 22 * - COALESCE ( 63, CAST( + 36 AS SIGNED ) ) * + 52 - - 24
----
-72048

skipif mysql # not compatible
query I rowsort label-5691
SELECT ALL + COUNT ( * ) * 22 * - COALESCE ( 63, CAST ( + 36 AS INTEGER ) ) * + 52 - - 24
----
-72048

query I rowsort
SELECT 5 * - 60 col1
----
-300

onlyif mysql # aggregate syntax: 
query I rowsort label-5693
SELECT SUM( 13 ) col0
----
13

skipif mysql # not compatible
query I rowsort label-5693
SELECT SUM ( 13 ) col0
----
13

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5695
SELECT 60 DIV - 77 * + + 69
----
0

skipif mysql # not compatible
query I rowsort label-5695
SELECT 60 / - 77 * + + 69
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5696
SELECT COUNT( * ) + - - COALESCE ( + 88, + 10 ) - + COUNT( * ) col0
----
88

skipif mysql # not compatible
query I rowsort label-5696
SELECT COUNT ( * ) + - - COALESCE ( + 88, + 10 ) - + COUNT ( * ) col0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-5697
SELECT COUNT( ALL - - 12 ) * - CASE + 80 WHEN + COUNT( * ) THEN CASE + 56 WHEN - MIN( - 6 ) / 76 THEN NULLIF ( + 62, - 5 ) WHEN - 86 THEN 80 END * - 55 END + + 10 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5697
SELECT COUNT ( ALL - - 12 ) * - CASE + 80 WHEN + COUNT ( * ) THEN CASE + 56 WHEN - MIN ( - 6 ) / 76 THEN NULLIF ( + 62, - 5 ) WHEN - 86 THEN 80 END * - 55 END + + 10 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5698
SELECT ALL 92 DIV 43
----
2

skipif mysql # not compatible
query I rowsort label-5698
SELECT ALL 92 / 43
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-5699
SELECT 50 DIV + 32 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5699
SELECT 50 / + 32 AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5700
SELECT ALL - CAST( - CASE WHEN NOT COUNT( * ) NOT IN ( + 31 - - CAST( NULL AS SIGNED ) ) THEN 6 ELSE NULL END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5700
SELECT ALL - CAST ( - CASE WHEN NOT COUNT ( * ) NOT IN ( + 31 - - CAST ( NULL AS INTEGER ) ) THEN 6 ELSE NULL END AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5701
SELECT DISTINCT - 35 DIV - 86 * + 21 * 60 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5701
SELECT DISTINCT - 35 / - 86 * + 21 * 60 AS col2
----
0

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

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

query I rowsort
SELECT ALL 45 + - 55 + 35 * 61
----
2125

query I rowsort
SELECT ALL 57 * - 46
----
-2622

onlyif mysql # aggregate syntax: 
query I rowsort label-5705
SELECT + 27 + + COUNT( * ) * + 44 AS col1
----
71

skipif mysql # not compatible
query I rowsort label-5705
SELECT + 27 + + COUNT ( * ) * + 44 AS col1
----
71

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5707
SELECT ALL 50 + - 14 + - 59 * CAST( NULL AS SIGNED ) * 80 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5707
SELECT ALL 50 + - 14 + - 59 * CAST ( NULL AS INTEGER ) * 80 AS col2
----
NULL

query I rowsort
SELECT + 70 * - 16 + - 2
----
-1122

query II rowsort
SELECT - 41 AS col0, 45
----
-41
45

query I rowsort
SELECT + + 25 + 88 AS col1
----
113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5711
SELECT DISTINCT - COALESCE ( 78, 54 * + COUNT( * ) - - CAST( 76 AS SIGNED ) * + COUNT( * ) ) col0
----
-78

skipif mysql # not compatible
query I rowsort label-5711
SELECT DISTINCT - COALESCE ( 78, 54 * + COUNT ( * ) - - CAST ( 76 AS INTEGER ) * + COUNT ( * ) ) col0
----
-78

query I rowsort
SELECT ALL 94 + 86 - 78 AS col2
----
102

query II rowsort
SELECT + 42 AS col0, - 30 AS col1
----
42
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-5714
SELECT DISTINCT 12 + 9 - + 65 * COUNT( * ) * - ( + COUNT( * ) )
----
86

skipif mysql # not compatible
query I rowsort label-5714
SELECT DISTINCT 12 + 9 - + 65 * COUNT ( * ) * - ( + COUNT ( * ) )
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5715
SELECT DISTINCT + 12 + - + COALESCE ( NULLIF ( 56, COUNT( * ) - ( - 5 ) ), + CAST( 92 AS SIGNED ) DIV - 52 ) * + 65
----
-3628

skipif mysql # not compatible
query I rowsort label-5715
SELECT DISTINCT + 12 + - + COALESCE ( NULLIF ( 56, COUNT ( * ) - ( - 5 ) ), + CAST ( 92 AS INTEGER ) / - 52 ) * + 65
----
-3628

onlyif mysql # aggregate syntax: 
query I rowsort label-5716
SELECT + - 42 * + SUM( - 67 ) AS col2
----
2814

skipif mysql # not compatible
query I rowsort label-5716
SELECT + - 42 * + SUM ( - 67 ) AS col2
----
2814

onlyif mysql # aggregate syntax: 
query I rowsort label-5717
SELECT + - 98 * + COUNT( + + 16 ) * - 2 AS col0
----
196

skipif mysql # not compatible
query I rowsort label-5717
SELECT + - 98 * + COUNT ( + + 16 ) * - 2 AS col0
----
196

onlyif mysql # aggregate syntax: 
query I rowsort label-5718
SELECT ALL - MAX( ( 53 ) ) * - COUNT( * ) AS col2
----
53

skipif mysql # not compatible
query I rowsort label-5718
SELECT ALL - MAX ( ( 53 ) ) * - COUNT ( * ) AS col2
----
53

query I rowsort
SELECT + 27 + - + 80 + + 69 AS col2
----
16

query I rowsort
SELECT + ( + + 44 ) + + 89 * - 11 AS col2
----
-935

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

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

query I rowsort
SELECT DISTINCT - 35 * 63
----
-2205

onlyif mysql # aggregate syntax: 
query I rowsort label-5723
SELECT - ( - 48 ) * - 96 + + COUNT( * ) col1
----
-4607

skipif mysql # not compatible
query I rowsort label-5723
SELECT - ( - 48 ) * - 96 + + COUNT ( * ) col1
----
-4607

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5726
SELECT - 58 * - ( - CASE + 9 WHEN 70 * - 37 THEN NULL WHEN 48 * + 30 THEN NULL WHEN + COUNT( * ) + NULLIF ( 38, 4 + 97 ) THEN - 32 * 82 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-5726
SELECT - 58 * - ( - CASE + 9 WHEN 70 * - 37 THEN NULL WHEN 48 * + 30 THEN NULL WHEN + COUNT ( * ) + NULLIF ( 38, 4 + 97 ) THEN - 32 * 82 END )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5727
SELECT - COUNT( * ) + CAST( - 24 AS SIGNED ) * + - 76 col1
----
1823

skipif mysql # not compatible
query I rowsort label-5727
SELECT - COUNT ( * ) + CAST ( - 24 AS INTEGER ) * + - 76 col1
----
1823

query I rowsort
SELECT - 93 * + + 62 AS col2
----
-5766

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5730
SELECT ALL + CASE + + 70 WHEN - + MAX( ALL 27 ) THEN NULL WHEN 62 THEN COUNT( ALL + 20 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5730
SELECT ALL + CASE + + 70 WHEN - + MAX ( ALL 27 ) THEN NULL WHEN 62 THEN COUNT ( ALL + 20 ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5731
SELECT DISTINCT - 31 * + CAST( - - 81 AS SIGNED )
----
-2511

skipif mysql # not compatible
query I rowsort label-5731
SELECT DISTINCT - 31 * + CAST ( - - 81 AS INTEGER )
----
-2511

onlyif mysql # aggregate syntax: 
query I rowsort label-5732
SELECT ALL + 68 * + + 70 * - - 57 * COUNT( * ) + 23 * 16 AS col1
----
271688

skipif mysql # not compatible
query I rowsort label-5732
SELECT ALL + 68 * + + 70 * - - 57 * COUNT ( * ) + 23 * 16 AS col1
----
271688

onlyif mysql # aggregate syntax: 
query I rowsort label-5733
SELECT DISTINCT + CASE 22 WHEN - ( + COUNT( * ) ) THEN 96 WHEN 91 + - 0 * + 25 THEN - 80 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5733
SELECT DISTINCT + CASE 22 WHEN - ( + COUNT ( * ) ) THEN 96 WHEN 91 + - 0 * + 25 THEN - 80 ELSE NULL END
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5735
SELECT DISTINCT - 31 * COUNT( * ) AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-5735
SELECT DISTINCT - 31 * COUNT ( * ) AS col1
----
-31

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5737
SELECT + COUNT( * ) * + - SUM( + 14 )
----
-14

skipif mysql # not compatible
query I rowsort label-5737
SELECT + COUNT ( * ) * + - SUM ( + 14 )
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5738
SELECT + COALESCE ( - 70, + 89 * NULLIF ( CAST( CAST( NULL AS SIGNED ) AS SIGNED ), + 95 ) DIV - COALESCE ( COUNT( * ), 19 + + 38, - 58 - + SUM( - 91 ) ) )
----
-70

skipif mysql # not compatible
query I rowsort label-5738
SELECT + COALESCE ( - 70, + 89 * NULLIF ( CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ), + 95 ) / - COALESCE ( COUNT ( * ), 19 + + 38, - 58 - + SUM ( - 91 ) ) )
----
-70

query I rowsort
SELECT NULLIF ( 19, - 50 )
----
19

query II rowsort
SELECT - 33 + - 20, - 35 + + 19 col0
----
-53
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-5741
SELECT - MIN( ( - CASE 32 WHEN - 96 THEN 11 + 69 * 73 WHEN - 95 / + 74 THEN NULL END ) ) * + 49 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5741
SELECT - MIN ( ( - CASE 32 WHEN - 96 THEN 11 + 69 * 73 WHEN - 95 / + 74 THEN NULL END ) ) * + 49 AS col0
----
NULL

query I rowsort
SELECT ALL 65 * + + 21 + + 15 * - 84 + + 24
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-5743
SELECT ALL ( + 13 ) * - - 1 + + 82 + - 64 * + COUNT( DISTINCT 59 ) col0
----
31

skipif mysql # not compatible
query I rowsort label-5743
SELECT ALL ( + 13 ) * - - 1 + + 82 + - 64 * + COUNT ( DISTINCT 59 ) col0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-5744
SELECT - + NULLIF ( - + COUNT( * ), + + 12 + - 74 * - 40 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5744
SELECT - + NULLIF ( - + COUNT ( * ), + + 12 + - 74 * - 40 ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5745
SELECT ALL + 34 * + 45 - - MIN( 54 ) * - 31 + - COUNT( * ) * CAST( 69 - - CAST( NULL AS SIGNED ) / - 76 AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5745
SELECT ALL + 34 * + 45 - - MIN ( 54 ) * - 31 + - COUNT ( * ) * CAST ( 69 - - CAST ( NULL AS INTEGER ) / - 76 AS INTEGER ) col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5746
SELECT DISTINCT 52 * + - CAST( NULL AS DECIMAL ) + - + 5 / - + 53 * 2 + COUNT( * ) * - NULLIF ( 82 * - 21, + 4 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5746
SELECT DISTINCT 52 * + - CAST ( NULL AS REAL ) + - + 5 / - + 53 * 2 + COUNT ( * ) * - NULLIF ( 82 * - 21, + 4 ) AS col0
----
NULL

query I rowsort
SELECT + + 71 + CASE ( - 3 ) WHEN + 93 + + 12 THEN 16 * 60 WHEN - 1 THEN 10 END * NULLIF ( + 15, 36 ) AS col0
----
NULL

query II rowsort
SELECT DISTINCT 24 * + 46 AS col2, + ( - 43 ) * - 33
----
1104
1419

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5750
SELECT + CAST( COUNT( * ) AS SIGNED ) * + MIN( - 65 )
----
-65

skipif mysql # not compatible
query I rowsort label-5750
SELECT + CAST ( COUNT ( * ) AS INTEGER ) * + MIN ( - 65 )
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-5751
SELECT ALL COUNT( * ) * COUNT( * ) - 8
----
-7

skipif mysql # not compatible
query I rowsort label-5751
SELECT ALL COUNT ( * ) * COUNT ( * ) - 8
----
-7

query I rowsort
SELECT ALL - 58 - + 53
----
-111

onlyif mysql # aggregate syntax: 
query I rowsort label-5753
SELECT + - 53 - + COUNT( * )
----
-54

skipif mysql # not compatible
query I rowsort label-5753
SELECT + - 53 - + COUNT ( * )
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-5754
SELECT + CASE COUNT( * ) WHEN SUM( + - COALESCE ( 4, COALESCE ( + 47, + 14 ), + 17 / + 90 ) ) + 85 * - 36 THEN NULL WHEN + ( ( 13 ) ) THEN - 67 ELSE 72 END + 17 * + 66
----
1194

skipif mysql # not compatible
query I rowsort label-5754
SELECT + CASE COUNT ( * ) WHEN SUM ( + - COALESCE ( 4, COALESCE ( + 47, + 14 ), + 17 / + 90 ) ) + 85 * - 36 THEN NULL WHEN + ( ( 13 ) ) THEN - 67 ELSE 72 END + 17 * + 66
----
1194

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5755
SELECT DISTINCT + 25 - CAST( - 82 AS SIGNED ) DIV 10
----
33

skipif mysql # not compatible
query I rowsort label-5755
SELECT DISTINCT + 25 - CAST ( - 82 AS INTEGER ) / 10
----
33

query I rowsort
SELECT DISTINCT - 14 * + 59 AS col1
----
-826

query I rowsort
SELECT DISTINCT 13 * - 84
----
-1092

query I rowsort
SELECT + 52 * - - 93 + + 58 AS col1
----
4894

query I rowsort
SELECT ALL + COALESCE ( - - 65, + - 9 )
----
65

onlyif mysql # aggregate syntax: 
query II rowsort label-5760
SELECT MAX( DISTINCT + 46 ), ( + 35 ) AS col0
----
46
35

skipif mysql # not compatible
query II rowsort label-5760
SELECT MAX ( DISTINCT + 46 ), ( + 35 ) AS col0
----
46
35

onlyif mysql # aggregate syntax: 
query I rowsort label-5761
SELECT ALL CASE - ( - 24 ) WHEN + + COUNT( * ) + + 91 THEN 6 * - 93 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5761
SELECT ALL CASE - ( - 24 ) WHEN + + COUNT ( * ) + + 91 THEN 6 * - 93 END AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5763
SELECT + + COUNT( * ) * - 77 * + 62
----
-4774

skipif mysql # not compatible
query I rowsort label-5763
SELECT + + COUNT ( * ) * - 77 * + 62
----
-4774

query II rowsort
SELECT + 28 - - 72 AS col0, - 75
----
100
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5765
SELECT - SUM( - - 90 ) / - - 27 * CAST( NULL AS SIGNED ) / SUM( 86 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5765
SELECT - SUM ( - - 90 ) / - - 27 * CAST ( NULL AS INTEGER ) / SUM ( 86 ) AS col1
----
NULL

query I rowsort
SELECT + 5 * - 22
----
-110

onlyif mysql # aggregate syntax: 
query II rowsort label-5767
SELECT ALL + 17 * - + MAX( DISTINCT - - 99 ) AS col0, + 48
----
-1683
48

skipif mysql # not compatible
query II rowsort label-5767
SELECT ALL + 17 * - + MAX ( DISTINCT - - 99 ) AS col0, + 48
----
-1683
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5768
SELECT CAST( - + COUNT( * ) AS SIGNED ) DIV + 24 * - + 68 * + 24 + - 37 AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-5768
SELECT CAST ( - + COUNT ( * ) AS INTEGER ) / + 24 * - + 68 * + 24 + - 37 AS col1
----
-37

query I rowsort
SELECT ALL + 90 + + 83
----
173

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5770
SELECT ALL CAST( - - NULLIF ( - + 26, 11 ) AS SIGNED ) * 32 * MAX( DISTINCT 44 ) col0
----
-36608

skipif mysql # not compatible
query I rowsort label-5770
SELECT ALL CAST ( - - NULLIF ( - + 26, 11 ) AS INTEGER ) * 32 * MAX ( DISTINCT 44 ) col0
----
-36608

onlyif mysql # DIV for integer division: 
query I rowsort label-5771
SELECT - 81 DIV ( - 21 ) + + 20 + + 95
----
118

skipif mysql # not compatible
query I rowsort label-5771
SELECT - 81 / ( - 21 ) + + 20 + + 95
----
118

onlyif mysql # DIV for integer division: 
query I rowsort label-5772
SELECT 79 DIV 81 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5772
SELECT 79 / 81 AS col2
----
0

query I rowsort
SELECT ALL - 27 + - 28
----
-55

query I rowsort
SELECT 69 + + CASE + + 56 WHEN - 29 THEN + 86 * + 88 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5775
SELECT ALL 74 + + COALESCE ( - 46, + + 8 DIV 69 * 63 + 81 )
----
28

skipif mysql # not compatible
query I rowsort label-5775
SELECT ALL 74 + + COALESCE ( - 46, + + 8 / 69 * 63 + 81 )
----
28

onlyif mysql # aggregate syntax: 
query II rowsort label-5776
SELECT + 55 AS col2, COUNT( - + 57 ) + - - 45
----
55
46

skipif mysql # not compatible
query II rowsort label-5776
SELECT + 55 AS col2, COUNT ( - + 57 ) + - - 45
----
55
46

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

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

query I rowsort
SELECT ALL - + 66 + 54 col1
----
-12

query I rowsort
SELECT 17 * + - 78 + + + 48 AS col2
----
-1278

onlyif mysql # aggregate syntax: 
query I rowsort label-5780
SELECT - ( + 62 ) * - SUM( - 98 ) * 45 + + 26 * + 34 AS col1
----
-272536

skipif mysql # not compatible
query I rowsort label-5780
SELECT - ( + 62 ) * - SUM ( - 98 ) * 45 + + 26 * + 34 AS col1
----
-272536

query I rowsort
SELECT ALL + + 37 * 45 + + 47 + - - CASE + 50 WHEN + 75 * + 38 - 81 THEN CASE - 89 WHEN 56 THEN NULL ELSE 84 - 82 * 34 END END + - NULLIF ( - 0, - 1 ) / 54 / 25
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5782
SELECT ALL - 62 - 41 DIV - ( + 87 ) * - 50 * COUNT( * )
----
-62

skipif mysql # not compatible
query I rowsort label-5782
SELECT ALL - 62 - 41 / - ( + 87 ) * - 50 * COUNT ( * )
----
-62

query I rowsort
SELECT - 70 * + 50 AS col1
----
-3500

query I rowsort
SELECT - 14 + 28 AS col0
----
14

onlyif mysql # aggregate syntax: 
query II rowsort label-5785
SELECT ALL + 99 col0, CASE COUNT( * ) WHEN 85 THEN + 73 + + COALESCE ( 9, 27 + 16 ) * - AVG ( DISTINCT 77 + - 30 ) WHEN - COUNT( * ) * 94 THEN NULL END * 62
----
99
NULL

skipif mysql # not compatible
query II rowsort label-5785
SELECT ALL + 99 col0, CASE COUNT ( * ) WHEN 85 THEN + 73 + + COALESCE ( 9, 27 + 16 ) * - AVG ( DISTINCT 77 + - 30 ) WHEN - COUNT ( * ) * 94 THEN NULL END * 62
----
99
NULL

query II rowsort
SELECT ALL 72 col1, + ( NULLIF ( 16, - 13 ) ) + 83
----
72
99

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5788
SELECT + 36 * - NULLIF ( COUNT( * ), + 19 ) + - 13 * 76
----
-1024

skipif mysql # not compatible
query I rowsort label-5788
SELECT + 36 * - NULLIF ( COUNT ( * ), + 19 ) + - 13 * 76
----
-1024

query I rowsort
SELECT ALL - ( - - 51 ) * + - ( - 18 ) AS col1
----
-918

query I rowsort
SELECT - 45 - - + ( + 78 ) * 80 AS col0
----
6195

query I rowsort
SELECT COALESCE ( + - 82, - 53 * + + COALESCE ( - 61, 60 * CASE - 58 * + AVG ( ALL 69 ) WHEN + 0 * + 27 THEN - 69 + 98 END ) * 7 ) * + 64
----
-5248

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

skipif mysql # not compatible
query I rowsort label-5792
SELECT ALL + ( - - CAST ( NULL AS REAL ) ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5793
SELECT DISTINCT + + 20 DIV 98
----
0

skipif mysql # not compatible
query I rowsort label-5793
SELECT DISTINCT + + 20 / 98
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5794
SELECT + 63 + NULLIF ( 44, 59 ) + - - CAST( NULL AS SIGNED ) + + ( - COUNT( * ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5794
SELECT + 63 + NULLIF ( 44, 59 ) + - - CAST ( NULL AS INTEGER ) + + ( - COUNT ( * ) ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5795
SELECT - 3 DIV + 52 * - 78 AS col1, - ( - + 36 ) * - 85
----
0
-3060

skipif mysql # not compatible
query II rowsort label-5795
SELECT - 3 / + 52 * - 78 AS col1, - ( - + 36 ) * - 85
----
0
-3060

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5796
SELECT - 72 * - 33 * CAST( NULL AS SIGNED ) + - 77 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5796
SELECT - 72 * - 33 * CAST ( NULL AS INTEGER ) + - 77 AS col1
----
NULL

query I rowsort
SELECT - ( - 50 ) + - - 48 AS col1
----
98

query I rowsort
SELECT 14 * 36 - - + 7 AS col1
----
511

onlyif mysql # aggregate syntax: 
query I rowsort label-5799
SELECT 45 + - COUNT( + + 13 )
----
44

skipif mysql # not compatible
query I rowsort label-5799
SELECT 45 + - COUNT ( + + 13 )
----
44

query I rowsort
SELECT 34 + + 76 + + 44
----
154

query I rowsort
SELECT ALL - 21 + + - 91 * + + 24 AS col2
----
-2205

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

skipif mysql # not compatible
query I rowsort label-5802
SELECT COUNT ( * ) + 11 / + 11 AS col2
----
2

query I rowsort
SELECT ALL + ( 84 ) + 9 * + - 24 AS col1
----
-132

onlyif mysql # aggregate syntax: 
query I rowsort label-5804
SELECT DISTINCT - COUNT( * ) + - - 70
----
69

skipif mysql # not compatible
query I rowsort label-5804
SELECT DISTINCT - COUNT ( * ) + - - 70
----
69

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5805
SELECT DISTINCT + 49 * + ( + CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5805
SELECT DISTINCT + 49 * + ( + CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5806
SELECT ALL 70 + 46 * + + COUNT( * ) AS col0
----
116

skipif mysql # not compatible
query I rowsort label-5806
SELECT ALL 70 + 46 * + + COUNT ( * ) AS col0
----
116

query I rowsort
SELECT 60 + - 64 AS col2
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-5808
SELECT DISTINCT 99 + - + CASE + MAX( 38 ) WHEN + + 26 - 10 * SUM( 10 ) THEN + COUNT( * ) ELSE NULL END * 41
----
NULL

skipif mysql # not compatible
query I rowsort label-5808
SELECT DISTINCT 99 + - + CASE + MAX ( 38 ) WHEN + + 26 - 10 * SUM ( 10 ) THEN + COUNT ( * ) ELSE NULL END * 41
----
NULL

query I rowsort
SELECT DISTINCT 75 + - + 26 AS col0
----
49

query I rowsort
SELECT ALL 34 + + 37 + + 86
----
157

query II rowsort
SELECT DISTINCT - 17 AS col0, 70 * 41 AS col1
----
-17
2870

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5812
SELECT CAST( 31 AS SIGNED ) + COUNT( * ) + + 49 * - - 71 AS col1
----
3511

skipif mysql # not compatible
query I rowsort label-5812
SELECT CAST ( 31 AS INTEGER ) + COUNT ( * ) + + 49 * - - 71 AS col1
----
3511

query I rowsort
SELECT ( + 53 ) * 31
----
1643

query I rowsort
SELECT 95 + + 10
----
105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5815
SELECT ALL 27 * + + 75 DIV - CAST( + COUNT( * ) AS SIGNED )
----
-2025

skipif mysql # not compatible
query I rowsort label-5815
SELECT ALL 27 * + + 75 / - CAST ( + COUNT ( * ) AS INTEGER )
----
-2025

onlyif mysql # aggregate syntax: 
query II rowsort label-5816
SELECT ALL - 33 AS col0, - 7 * COUNT( * ) + - 92
----
-33
-99

skipif mysql # not compatible
query II rowsort label-5816
SELECT ALL - 33 AS col0, - 7 * COUNT ( * ) + - 92
----
-33
-99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5817
SELECT ALL 98 + CAST( + - 40 AS SIGNED ) * + + 66, + 29 * + ( + 96 ) AS col0
----
-2542
2784

skipif mysql # not compatible
query II rowsort label-5817
SELECT ALL 98 + CAST ( + - 40 AS INTEGER ) * + + 66, + 29 * + ( + 96 ) AS col0
----
-2542
2784

query I rowsort
SELECT DISTINCT 33 + ( - - 39 ) + + + 16 AS col0
----
88

query I rowsort
SELECT ALL 91 * - + 70
----
-6370

onlyif mysql # aggregate syntax: 
query I rowsort label-5820
SELECT ALL + COUNT( - - 77 ) - + 36 + 69 AS col1
----
34

skipif mysql # not compatible
query I rowsort label-5820
SELECT ALL + COUNT ( - - 77 ) - + 36 + 69 AS col1
----
34

query I rowsort
SELECT DISTINCT 26 * + - 12 * - + 69
----
21528

query I rowsort
SELECT DISTINCT - ( + 69 ) * NULLIF ( 42, - - 36 * + - 84 / - 38 ) + 15
----
-2883

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5823
SELECT - CAST( + NULLIF ( 39, 5 / - + 89 ) AS SIGNED ) * + + 55
----
-2145

skipif mysql # not compatible
query I rowsort label-5823
SELECT - CAST ( + NULLIF ( 39, 5 / - + 89 ) AS INTEGER ) * + + 55
----
-2145

onlyif mysql # DIV for integer division: 
query II rowsort label-5824
SELECT + 94, + 84 DIV - 86 AS col2
----
94
0

skipif mysql # not compatible
query II rowsort label-5824
SELECT + 94, + 84 / - 86 AS col2
----
94
0

query I rowsort
SELECT + NULLIF ( - 63, - 30 )
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5826
SELECT ALL - - 22 DIV - - 92 col2, - 9 * - SUM( ALL - 3 ) + CAST( NULL AS SIGNED )
----
0
NULL

skipif mysql # not compatible
query II rowsort label-5826
SELECT ALL - - 22 / - - 92 col2, - 9 * - SUM ( ALL - 3 ) + CAST ( NULL AS INTEGER )
----
0
NULL

query II rowsort
SELECT DISTINCT - - 63 AS col2, 32 * ( 67 ) AS col0
----
63
2144

query I rowsort
SELECT 11 * 62
----
682

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5829
SELECT DISTINCT + NULLIF ( + + CAST( - - CAST( NULL AS DECIMAL ) AS SIGNED ), + 88 * - + COUNT( * ) ) * 99 + COALESCE ( 59, 84 * - ( 82 ) ) * COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5829
SELECT DISTINCT + NULLIF ( + + CAST ( - - CAST ( NULL AS REAL ) AS INTEGER ), + 88 * - + COUNT ( * ) ) * 99 + COALESCE ( 59, 84 * - ( 82 ) ) * COUNT ( * ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5830
SELECT DISTINCT - - CASE WHEN NOT 42 <> - 30 THEN - 63 + - COUNT( * ) * - NULLIF ( 85 / - 11, - 49 * - 7 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5830
SELECT DISTINCT - - CASE WHEN NOT 42 <> - 30 THEN - 63 + - COUNT ( * ) * - NULLIF ( 85 / - 11, - 49 * - 7 ) ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query III rowsort label-5831
SELECT ALL - 1 AS col0, 71, 25 DIV + + 71 col0
----
-1
71
0

skipif mysql # not compatible
query III rowsort label-5831
SELECT ALL - 1 AS col0, 71, 25 / + + 71 col0
----
-1
71
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5832
SELECT - 34 - + 48 * + 0 * 39 + - ( + ( CAST( - 80 AS SIGNED ) ) ) AS col1
----
46

skipif mysql # not compatible
query I rowsort label-5832
SELECT - 34 - + 48 * + 0 * 39 + - ( + ( CAST ( - 80 AS INTEGER ) ) ) AS col1
----
46

query I rowsort
SELECT ALL + 64 * ( + 1 ) AS col0
----
64

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

skipif mysql # not compatible
query I rowsort label-5834
SELECT DISTINCT + + 17 * + - ( - NULLIF ( + COUNT ( * ), - 25 ) )
----
17

query I rowsort
SELECT ALL + 15 * - 57 AS col1
----
-855

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5836
SELECT DISTINCT + CASE - + 41 WHEN + - 19 + COUNT( * ) THEN - COUNT( * ) WHEN + NULLIF ( 91, + CAST( AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) AS SIGNED ) ) THEN NULLIF ( + 87, COALESCE ( 70, - 42, 14, + 86 * NULLIF ( - 6 / 37, 56 * + ( - 50 ) ) - - COUNT( 40 ) / + COUNT( * ) ) + - NULLIF ( + NULLIF ( 93, 92 ), ( 33 ) * + 77 ) ) + ( + ( 60 ) ) ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5836
SELECT DISTINCT + CASE - + 41 WHEN + - 19 + COUNT ( * ) THEN - COUNT ( * ) WHEN + NULLIF ( 91, + CAST ( AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS INTEGER ) ) THEN NULLIF ( + 87, COALESCE ( 70, - 42, 14, + 86 * NULLIF ( - 6 / 37, 56 * + ( - 50 ) ) - - COUNT ( 40 ) / + COUNT ( * ) ) + - NULLIF ( + NULLIF ( 93, 92 ), ( 33 ) * + 77 ) ) + ( + ( 60 ) ) ELSE NULL END col0
----
NULL

query I rowsort
SELECT + ( + ( - COALESCE ( + 79, 84 ) ) )
----
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-5838
SELECT DISTINCT - 65 + - + 6 DIV - + 95 AS col1
----
-65

skipif mysql # not compatible
query I rowsort label-5838
SELECT DISTINCT - 65 + - + 6 / - + 95 AS col1
----
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5839
SELECT ALL - - CASE WHEN 9 NOT BETWEEN + ( - - SUM( + 13 ) ) AND 4 THEN - 65 END * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5839
SELECT ALL - - CASE WHEN 9 NOT BETWEEN + ( - - SUM ( + 13 ) ) AND 4 THEN - 65 END * CAST ( NULL AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT ALL - 89 + + 36 AS col1, 59 + - 24 + - 29 AS col2
----
-53
6

query I rowsort
SELECT ALL + ( + - 44 ) + - 15 AS col1
----
-59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5842
SELECT DISTINCT 29 + + 13 DIV 29 * 50 * MIN( - ( 83 ) ) + 45 * - 40 AS col0
----
-1771

skipif mysql # not compatible
query I rowsort label-5842
SELECT DISTINCT 29 + + 13 / 29 * 50 * MIN ( - ( 83 ) ) + 45 * - 40 AS col0
----
-1771

query I rowsort
SELECT ALL - 90 + - 25 + + ( - 9 )
----
-124

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

skipif mysql # not compatible
query I rowsort label-5844
SELECT - SUM ( 70 ) col2
----
-70

query I rowsort
SELECT ALL + 27 + + + 92 * - + 44 * - 48 AS col2
----
194331

query I rowsort
SELECT - 99 * 38
----
-3762

query I rowsort
SELECT - 16 - - 27
----
11

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

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

query I rowsort
SELECT ALL 28 * - - ( - - 27 ) AS col2
----
756

query I rowsort
SELECT ALL 86 * 17 AS col0
----
1462

query I rowsort
SELECT DISTINCT 41 * - + 22 + 37 + - 0 AS col1
----
-865

query I rowsort
SELECT ALL 16 * + + 87 - - 71 AS col1
----
1463

onlyif mysql # aggregate syntax: 
query I rowsort label-5853
SELECT ALL + 0 * - COALESCE ( - COUNT( * ), 7 * + 57 ) * + 78
----
0

skipif mysql # not compatible
query I rowsort label-5853
SELECT ALL + 0 * - COALESCE ( - COUNT ( * ), 7 * + 57 ) * + 78
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5854
SELECT + 28 * + + 36 + 88 * + - CASE + ( + 80 ) WHEN - 54 THEN 43 / 52 WHEN 27 THEN NULL WHEN 9 THEN 60 + + ( 88 ) END + MAX( - 14 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5854
SELECT + 28 * + + 36 + 88 * + - CASE + ( + 80 ) WHEN - 54 THEN 43 / 52 WHEN 27 THEN NULL WHEN 9 THEN 60 + + ( 88 ) END + MAX ( - 14 )
----
NULL

query I rowsort
SELECT COALESCE ( + 19, - 51 )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-5856
SELECT COUNT( * ) * - COUNT( * ) + - 14 + - + 23 + ( COUNT( * ) )
----
-37

skipif mysql # not compatible
query I rowsort label-5856
SELECT COUNT ( * ) * - COUNT ( * ) + - 14 + - + 23 + ( COUNT ( * ) )
----
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5857
SELECT + + 9 * + CASE + - NULLIF ( SUM( DISTINCT + + 77 ), + 12 ) WHEN 69 + 87 THEN ( 78 ) + 15 ELSE - 1 + - 2 END DIV 69 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5857
SELECT + + 9 * + CASE + - NULLIF ( SUM ( DISTINCT + + 77 ), + 12 ) WHEN 69 + 87 THEN ( 78 ) + 15 ELSE - 1 + - 2 END / 69 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5858
SELECT ALL + + CASE + 54 WHEN - 64 / CAST( - + ( - 62 ) AS SIGNED ) THEN + 40 ELSE 14 * + COUNT( DISTINCT - 9 ) END
----
14

skipif mysql # not compatible
query I rowsort label-5858
SELECT ALL + + CASE + 54 WHEN - 64 / CAST ( - + ( - 62 ) AS INTEGER ) THEN + 40 ELSE 14 * + COUNT ( DISTINCT - 9 ) END
----
14

query I rowsort
SELECT DISTINCT + COALESCE ( 47, + 95 + + 57 * - NULLIF ( - 81, + 36 ) ) AS col1
----
47

query I rowsort
SELECT - + 6 * - + 63 + + 67 col1
----
445

query I rowsort
SELECT ALL + - 75 col0
----
-75

query I rowsort
SELECT + 11 * - CASE - 21 WHEN 10 THEN NULL WHEN - + 84 - - - 78 THEN + - 27 END + + 23
----
NULL

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

query I rowsort
SELECT + - 82 * + + 25 col2
----
-2050

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5865
SELECT - NULLIF ( 6, + 39 * + CASE - 55 WHEN - + 82 THEN + COALESCE ( + CAST( COUNT( * ) AS SIGNED ), COUNT( * ) ) ELSE NULL END * 80 ) + + 37
----
31

skipif mysql # not compatible
query I rowsort label-5865
SELECT - NULLIF ( 6, + 39 * + CASE - 55 WHEN - + 82 THEN + COALESCE ( + CAST ( COUNT ( * ) AS INTEGER ), COUNT ( * ) ) ELSE NULL END * 80 ) + + 37
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5866
SELECT ALL - 55 * + CAST( NULL AS SIGNED ) * ( - + 81 ) + - COUNT( * ) - + 8 * 71 + + 6
----
NULL

skipif mysql # not compatible
query I rowsort label-5866
SELECT ALL - 55 * + CAST ( NULL AS INTEGER ) * ( - + 81 ) + - COUNT ( * ) - + 8 * 71 + + 6
----
NULL

query I rowsort
SELECT + CASE - 90 WHEN - 87 THEN NULL ELSE - + 89 END AS col1
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-5868
SELECT ALL - 84 * + 43 + - - 65 * 16 - - - CASE + 10 WHEN - 65 + 84 THEN + 69 + - SUM( DISTINCT + 85 ) / 49 ELSE NULL END * + 14
----
NULL

skipif mysql # not compatible
query I rowsort label-5868
SELECT ALL - 84 * + 43 + - - 65 * 16 - - - CASE + 10 WHEN - 65 + 84 THEN + 69 + - SUM ( DISTINCT + 85 ) / 49 ELSE NULL END * + 14
----
NULL

query I rowsort
SELECT + 94 + + 90 + + 52
----
236

query I rowsort
SELECT - + COALESCE ( + COALESCE ( - ( + 96 ), - ( - 4 ) * - 27 + 0 ), 97 + - 4 )
----
96

query I rowsort
SELECT + 7 * 45 * 88
----
27720

onlyif mysql # aggregate syntax: 
query I rowsort label-5872
SELECT ALL ( + 85 ) + + 86 + - ( - - MIN( ALL + 37 ) )
----
134

skipif mysql # not compatible
query I rowsort label-5872
SELECT ALL ( + 85 ) + + 86 + - ( - - MIN ( ALL + 37 ) )
----
134

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5875
SELECT DISTINCT - 85 * - 57 * + COALESCE ( COALESCE ( 76, CAST( + 14 AS SIGNED ) ), - 23 * - 44 )
----
368220

skipif mysql # not compatible
query I rowsort label-5875
SELECT DISTINCT - 85 * - 57 * + COALESCE ( COALESCE ( 76, CAST ( + 14 AS INTEGER ) ), - 23 * - 44 )
----
368220

query I rowsort
SELECT DISTINCT - 13 * - 65 AS col0
----
845

query I rowsort
SELECT + 40 + 75 AS col1
----
115

query I rowsort
SELECT DISTINCT - 86 * + 35 AS col2
----
-3010

onlyif mysql # aggregate syntax: 
query I rowsort label-5879
SELECT - COALESCE ( COUNT( * ), 24 ) + 92
----
91

skipif mysql # not compatible
query I rowsort label-5879
SELECT - COALESCE ( COUNT ( * ), 24 ) + 92
----
91

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

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

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

query I rowsort
SELECT - 92 + - 83 AS col2
----
-175

query I rowsort
SELECT ALL 98 - 76 AS col1
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5884
SELECT DISTINCT - 86 * + + ( 5 ) AS col0, - NULLIF ( 4, + 83 * 3 - + CASE - 47 WHEN - 22 + - 21 THEN NULL WHEN 79 + 52 THEN NULL WHEN 83 * 48 THEN - 80 * - 68 + - COUNT( * ) ELSE 36 * 43 END * 19 + CAST( 85 AS SIGNED ) * + 83 ) * + 7
----
-430
-28

skipif mysql # not compatible
query II rowsort label-5884
SELECT DISTINCT - 86 * + + ( 5 ) AS col0, - NULLIF ( 4, + 83 * 3 - + CASE - 47 WHEN - 22 + - 21 THEN NULL WHEN 79 + 52 THEN NULL WHEN 83 * 48 THEN - 80 * - 68 + - COUNT ( * ) ELSE 36 * 43 END * 19 + CAST ( 85 AS INTEGER ) * + 83 ) * + 7
----
-430
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5885
SELECT - CAST( - 59 AS SIGNED ) + - 26
----
33

skipif mysql # not compatible
query I rowsort label-5885
SELECT - CAST ( - 59 AS INTEGER ) + - 26
----
33

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

query I rowsort
SELECT DISTINCT 74 * - ( + + 55 ) AS col2
----
-4070

query I rowsort
SELECT + 15 + - 82 + 84 * + + 13
----
1025

onlyif mysql # DIV for integer division: 
query I rowsort label-5889
SELECT + 32 DIV - 37 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5889
SELECT + 32 / - 37 AS col2
----
0

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

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

query II rowsort
SELECT + 45 AS col1, 15
----
45
15

query I rowsort
SELECT + 23 + - 87
----
-64

query I rowsort
SELECT ALL + 89 * - - 69
----
6141

query II rowsort
SELECT + + 49 AS col2, 12 + 21 + - 51
----
49
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-5895
SELECT DISTINCT + - COALESCE ( - MAX( DISTINCT - + 17 ), + COUNT( * ) + MAX( + - 91 ) * + - 28, + 60 ) AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-5895
SELECT DISTINCT + - COALESCE ( - MAX ( DISTINCT - + 17 ), + COUNT ( * ) + MAX ( + - 91 ) * + - 28, + 60 ) AS col2
----
-17

query I rowsort
SELECT - + 59 * - - 2 col2
----
-118

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

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

query I rowsort
SELECT + 25 * - 42 + - + 44 + CASE + 35 WHEN - 19 THEN - 93 END / + 64 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5899
SELECT - + 67 - - ( COUNT( * ) ) * - - CASE COUNT( * ) WHEN - AVG ( DISTINCT + 73 ) * 17 THEN NULL WHEN 3 THEN + 39 / 60 END + - NULLIF ( - 21, + CAST( - 19 AS SIGNED ) + 95 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5899
SELECT - + 67 - - ( COUNT ( * ) ) * - - CASE COUNT ( * ) WHEN - AVG ( DISTINCT + 73 ) * 17 THEN NULL WHEN 3 THEN + 39 / 60 END + - NULLIF ( - 21, + CAST ( - 19 AS INTEGER ) + 95 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5900
SELECT ALL - COUNT( * ) * - 49 * - 58 + 38 - 43 + - 49 AS col1, - 66 AS col2
----
-2896
-66

skipif mysql # not compatible
query II rowsort label-5900
SELECT ALL - COUNT ( * ) * - 49 * - 58 + 38 - 43 + - 49 AS col1, - 66 AS col2
----
-2896
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5901
SELECT DISTINCT - + COUNT( * ) DIV 69 * 12 * + 47 * + + 54
----
0

skipif mysql # not compatible
query I rowsort label-5901
SELECT DISTINCT - + COUNT ( * ) / 69 * 12 * + 47 * + + 54
----
0

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

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

query I rowsort
SELECT ALL 49 + + 58 AS col2
----
107

query II rowsort
SELECT DISTINCT 42 AS col1, + 89 AS col1
----
42
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5905
SELECT DISTINCT SUM( - 68 ) + - ( + 1 ) - 14 + + 58 DIV - + 95
----
-83

skipif mysql # not compatible
query I rowsort label-5905
SELECT DISTINCT SUM ( - 68 ) + - ( + 1 ) - 14 + + 58 / - + 95
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-5906
SELECT DISTINCT CASE + 94 WHEN + 68 THEN + 1 + - ( 32 ) / + + 47 * - 64 ELSE NULL END + + COUNT( + 82 ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5906
SELECT DISTINCT CASE + 94 WHEN + 68 THEN + 1 + - ( 32 ) / + + 47 * - 64 ELSE NULL END + + COUNT ( + 82 ) * COUNT ( * )
----
NULL

query I rowsort
SELECT 69 + - - 26 * + + 26
----
745

query I rowsort
SELECT ALL 58 + 50
----
108

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

skipif mysql # not compatible
query I rowsort label-5909
SELECT COUNT ( * ) * 86 * + + 22 AS col0
----
1892

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5910
SELECT CASE + - 33 WHEN + CAST( - NULLIF ( + 21, + + ( 89 ) * - + 5 ) AS SIGNED ) THEN NULL WHEN + - 80 + + 97 THEN 24 + - 64 * + 10 END / 13
----
NULL

skipif mysql # not compatible
query I rowsort label-5910
SELECT CASE + - 33 WHEN + CAST ( - NULLIF ( + 21, + + ( 89 ) * - + 5 ) AS INTEGER ) THEN NULL WHEN + - 80 + + 97 THEN 24 + - 64 * + 10 END / 13
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5911
SELECT DISTINCT 69 DIV 95
----
0

skipif mysql # not compatible
query I rowsort label-5911
SELECT DISTINCT 69 / 95
----
0

query I rowsort
SELECT 98 * + 74 col2
----
7252

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5913
SELECT ALL + 27 - + - 22 - - ( 86 ) * + CAST( NULL AS SIGNED ) / + ( 42 ) + 37
----
NULL

skipif mysql # not compatible
query I rowsort label-5913
SELECT ALL + 27 - + - 22 - - ( 86 ) * + CAST ( NULL AS INTEGER ) / + ( 42 ) + 37
----
NULL

query II rowsort
SELECT ALL 45 * - 77, + 54 AS col2
----
-3465
54

onlyif mysql # aggregate syntax: 
query I rowsort label-5915
SELECT DISTINCT - MIN( + 82 ) * - 2 col2
----
164

skipif mysql # not compatible
query I rowsort label-5915
SELECT DISTINCT - MIN ( + 82 ) * - 2 col2
----
164

query I rowsort
SELECT ALL - ( + 37 ) * + - 57 AS col0
----
2109

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5917
SELECT ALL - + CASE + COUNT( * ) WHEN - SUM( ALL + COALESCE ( + 31, + CAST( - - 20 AS SIGNED ) ) ) THEN + 13 ELSE + - 89 + MAX( + 75 ) DIV - 34 END AS col2
----
91

skipif mysql # not compatible
query I rowsort label-5917
SELECT ALL - + CASE + COUNT ( * ) WHEN - SUM ( ALL + COALESCE ( + 31, + CAST ( - - 20 AS INTEGER ) ) ) THEN + 13 ELSE + - 89 + MAX ( + 75 ) / - 34 END AS col2
----
91

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

skipif mysql # not compatible
query I rowsort label-5918
SELECT ALL - COUNT ( DISTINCT + 45 ) AS col2
----
-1

query I rowsort
SELECT ALL + 43 + - 51
----
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-5920
SELECT - + 26 * + ( - 49 ) * + + 88 + + 97 DIV + 19 - + 43 AS col1
----
112074

skipif mysql # not compatible
query I rowsort label-5920
SELECT - + 26 * + ( - 49 ) * + + 88 + + 97 / + 19 - + 43 AS col1
----
112074

onlyif mysql # DIV for integer division: 
query I rowsort label-5921
SELECT DISTINCT + + 3 DIV 79 + - 75 * - - 61
----
-4575

skipif mysql # not compatible
query I rowsort label-5921
SELECT DISTINCT + + 3 / 79 + - 75 * - - 61
----
-4575

onlyif mysql # aggregate syntax: 
query I rowsort label-5922
SELECT DISTINCT + - 86 + + COUNT( * ) + - + 88 AS col1
----
-173

skipif mysql # not compatible
query I rowsort label-5922
SELECT DISTINCT + - 86 + + COUNT ( * ) + - + 88 AS col1
----
-173

query I rowsort
SELECT ALL + ( + 7 ) + - - 42 + - + 73 + + - 36 col0
----
-60

query II rowsort
SELECT DISTINCT - COALESCE ( - ( + 21 ), - ( + + 65 ) ) AS col2, + 22 AS col0
----
21
22

query I rowsort
SELECT 35 + + 40 AS col0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5926
SELECT ALL - + 31 * - MAX( - 63 ) AS col1
----
-1953

skipif mysql # not compatible
query I rowsort label-5926
SELECT ALL - + 31 * - MAX ( - 63 ) AS col1
----
-1953

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5927
SELECT ALL + + CASE COUNT( * ) WHEN 18 THEN NULL ELSE + 1 END + + 15 AS col0, + 36 DIV + 43 AS col1
----
16
0

skipif mysql # not compatible
query II rowsort label-5927
SELECT ALL + + CASE COUNT ( * ) WHEN 18 THEN NULL ELSE + 1 END + + 15 AS col0, + 36 / + 43 AS col1
----
16
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5928
SELECT + - CAST( + ( - ( + - NULLIF ( COUNT( * ), COUNT( * ) + - 42 / ( 19 ) * + 76 + AVG ( ALL + 18 ) ) ) ) AS SIGNED ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-5928
SELECT + - CAST ( + ( - ( + - NULLIF ( COUNT ( * ), COUNT ( * ) + - 42 / ( 19 ) * + 76 + AVG ( ALL + 18 ) ) ) ) AS INTEGER ) col0
----
-1

query I rowsort
SELECT DISTINCT + 34 + + 96 + + 19
----
149

query I rowsort
SELECT ALL - 1 - - COALESCE ( - 97, 13, + - ( 23 ) * - 33 ) + - 68
----
-166

onlyif mysql # aggregate syntax: 
query I rowsort label-5931
SELECT DISTINCT - COALESCE ( 81, - MAX( - 11 ) + + + 21 )
----
-81

skipif mysql # not compatible
query I rowsort label-5931
SELECT DISTINCT - COALESCE ( 81, - MAX ( - 11 ) + + + 21 )
----
-81

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

skipif mysql # not compatible
query I rowsort label-5932
SELECT 53 * - - COUNT ( * ) / COUNT ( * ) / - COUNT ( * ) AS col2
----
-53

query II rowsort
SELECT DISTINCT 29 - 30 * 63, - ( + 3 ) AS col1
----
-1861
-3

query I rowsort
SELECT DISTINCT 10 * + 51
----
510

query II rowsort
SELECT DISTINCT 29, 17 AS col0
----
29
17

query I rowsort
SELECT ALL 28 * + 53
----
1484

onlyif mysql # aggregate syntax: 
query I rowsort label-5937
SELECT MAX( - 55 ) * - + 85 * + - COUNT( * )
----
-4675

skipif mysql # not compatible
query I rowsort label-5937
SELECT MAX ( - 55 ) * - + 85 * + - COUNT ( * )
----
-4675

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5938
SELECT ( ( 86 ) ) + + + 39 DIV - - 19 + - 52 + 27 * 56 * + 48 * + + MIN( DISTINCT + ( 37 ) ) + 67 AS col1
----
2685415

skipif mysql # not compatible
query I rowsort label-5938
SELECT ( ( 86 ) ) + + + 39 / - - 19 + - 52 + 27 * 56 * + 48 * + + MIN ( DISTINCT + ( 37 ) ) + 67 AS col1
----
2685415

query I rowsort
SELECT 84 + - - 1 AS col0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-5940
SELECT ( 54 ) + - ( - + COUNT( * ) )
----
55

skipif mysql # not compatible
query I rowsort label-5940
SELECT ( 54 ) + - ( - + COUNT ( * ) )
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5941
SELECT ALL ( - + ( 65 ) ) DIV - - 3 * COUNT( * )
----
-21

skipif mysql # not compatible
query I rowsort label-5941
SELECT ALL ( - + ( 65 ) ) / - - 3 * COUNT ( * )
----
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-5942
SELECT 13 DIV - - 38 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5942
SELECT 13 / - - 38 AS col1
----
0

query I rowsort
SELECT ALL 61 + - 59 col2
----
2

query I rowsort
SELECT DISTINCT + 14 + - + 13
----
1

query II rowsort
SELECT DISTINCT + 19 AS col1, - 79
----
19
-79

query I rowsort
SELECT ALL + 92 + + 49
----
141

query I rowsort
SELECT 24 + 58 + + + 89 col2
----
171

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

skipif mysql # not compatible
query I rowsort label-5948
SELECT DISTINCT - + COUNT ( ALL - 83 ) AS col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5949
SELECT ALL - - 88 * - 36 + - - ( - 61 ) - + MAX( - 22 ) DIV - 48 - - 68
----
-3161

skipif mysql # not compatible
query I rowsort label-5949
SELECT ALL - - 88 * - 36 + - - ( - 61 ) - + MAX ( - 22 ) / - 48 - - 68
----
-3161

onlyif mysql # DIV for integer division: 
query I rowsort label-5950
SELECT ALL + + 89 * 70 * + + 30 + + COALESCE ( + + 45, - 60 * - 32, + 50 DIV - - 4 + + 20 + - 20 ) col0
----
186945

skipif mysql # not compatible
query I rowsort label-5950
SELECT ALL + + 89 * 70 * + + 30 + + COALESCE ( + + 45, - 60 * - 32, + 50 / - - 4 + + 20 + - 20 ) col0
----
186945

query II rowsort
SELECT + - 4 AS col0, - 5
----
-4
-5

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5953
SELECT DISTINCT + - NULLIF ( + + 74, 15 + + 82 * 71 - - 86 ) AS col1, 86 + 5 + 77 * + 30 DIV - COUNT( * )
----
-74
-2219

skipif mysql # not compatible
query II rowsort label-5953
SELECT DISTINCT + - NULLIF ( + + 74, 15 + + 82 * 71 - - 86 ) AS col1, 86 + 5 + 77 * + 30 / - COUNT ( * )
----
-74
-2219

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5954
SELECT ALL 8 * 70 + 11, 3 * - CAST( + + MIN( ALL + 71 ) AS SIGNED ) AS col2
----
571
-213

skipif mysql # not compatible
query II rowsort label-5954
SELECT ALL 8 * 70 + 11, 3 * - CAST ( + + MIN ( ALL + 71 ) AS INTEGER ) AS col2
----
571
-213

query I rowsort
SELECT ALL 43 * + - 73 * + 90
----
-282510

onlyif mysql # DIV for integer division: 
query I rowsort label-5956
SELECT DISTINCT - - 3 * + NULLIF ( 95, - 65 + - ( 30 ) DIV + - ( + 98 ) ) * - ( - COALESCE ( 98, 51, 86 DIV 73 ) ) - 7 col2
----
27923

skipif mysql # not compatible
query I rowsort label-5956
SELECT DISTINCT - - 3 * + NULLIF ( 95, - 65 + - ( 30 ) / + - ( + 98 ) ) * - ( - COALESCE ( 98, 51, 86 / 73 ) ) - 7 col2
----
27923

onlyif mysql # DIV for integer division: 
query I rowsort label-5957
SELECT ALL + - 33 DIV + 11 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-5957
SELECT ALL + - 33 / + 11 AS col0
----
-3

query II rowsort
SELECT DISTINCT + 32 AS col1, - 10 + - + 14 col2
----
32
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-5959
SELECT ALL - 55 DIV 58 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5959
SELECT ALL - 55 / 58 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5960
SELECT - - COUNT( * ) - ( 48 )
----
-47

skipif mysql # not compatible
query I rowsort label-5960
SELECT - - COUNT ( * ) - ( 48 )
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5961
SELECT + SUM( DISTINCT - ( 93 ) ) * 35 + - + 79 + 75 - + CASE - - COALESCE ( 33, ( + MAX( DISTINCT 85 ) ) ) WHEN - 63 THEN NULL WHEN - NULLIF ( - CAST( + 8 AS SIGNED ), 86 ) THEN CAST( NULL AS SIGNED ) END + - 78
----
NULL

skipif mysql # not compatible
query I rowsort label-5961
SELECT + SUM ( DISTINCT - ( 93 ) ) * 35 + - + 79 + 75 - + CASE - - COALESCE ( 33, ( + MAX ( DISTINCT 85 ) ) ) WHEN - 63 THEN NULL WHEN - NULLIF ( - CAST ( + 8 AS INTEGER ), 86 ) THEN CAST ( NULL AS INTEGER ) END + - 78
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5962
SELECT ALL + COUNT( * ) AS col0, - MAX( DISTINCT + + 96 ) + 48 AS col2
----
1
-48

skipif mysql # not compatible
query II rowsort label-5962
SELECT ALL + COUNT ( * ) AS col0, - MAX ( DISTINCT + + 96 ) + 48 AS col2
----
1
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-5963
SELECT - 70 DIV - 57
----
1

skipif mysql # not compatible
query I rowsort label-5963
SELECT - 70 / - 57
----
1

query I rowsort
SELECT ALL - 36 * - 82 * - 11
----
-32472

query II rowsort
SELECT ALL + 49 AS col2, - 53 * + 97
----
49
-5141

query I rowsort
SELECT DISTINCT + 64 * + + 98
----
6272

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

query II rowsort
SELECT - ( - 58 ) * - 19 + + - 13 AS col0, + 78 AS col1
----
-1115
78

query I rowsort
SELECT + 16 * + 70
----
1120

onlyif mysql # aggregate syntax: 
query II rowsort label-5970
SELECT DISTINCT ( - - COUNT( + ( + - 86 ) ) ), NULLIF ( 92, + 48 ) + - 84 AS col0
----
1
8

skipif mysql # not compatible
query II rowsort label-5970
SELECT DISTINCT ( - - COUNT ( + ( + - 86 ) ) ), NULLIF ( 92, + 48 ) + - 84 AS col0
----
1
8

query I rowsort
SELECT ALL ( + 27 ) * - 11
----
-297

onlyif mysql # aggregate syntax: 
query I rowsort label-5972
SELECT ALL + COUNT( * ) + + NULLIF ( - 64, - 75 ) + 86
----
23

skipif mysql # not compatible
query I rowsort label-5972
SELECT ALL + COUNT ( * ) + + NULLIF ( - 64, - 75 ) + 86
----
23

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5973
SELECT DISTINCT CAST( NULL AS DECIMAL ) + + 73 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5973
SELECT DISTINCT CAST ( NULL AS REAL ) + + 73 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5974
SELECT ALL MAX( - - 77 ) + CAST( + + 51 AS SIGNED ) * - + CASE - CAST( + + ( + - 1 ) AS DECIMAL ) WHEN 52 * + + 73 * - 28 THEN 2 - - 17 WHEN - 27 THEN - COUNT( * ) WHEN + 21 * 87 THEN NULL ELSE NULL END * 82
----
NULL

skipif mysql # not compatible
query I rowsort label-5974
SELECT ALL MAX ( - - 77 ) + CAST ( + + 51 AS INTEGER ) * - + CASE - CAST ( + + ( + - 1 ) AS REAL ) WHEN 52 * + + 73 * - 28 THEN 2 - - 17 WHEN - 27 THEN - COUNT ( * ) WHEN + 21 * 87 THEN NULL ELSE NULL END * 82
----
NULL

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

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

query I rowsort
SELECT ALL 44 + - 15 AS col2
----
29

query I rowsort
SELECT + 50 * 19
----
950

query II rowsort
SELECT 49, - 4 AS col2
----
49
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-5979
SELECT - + 30 - + + ( - - 0 ) * + ( CASE - 56 WHEN + 2 / - - 75 + - 72 * - - ( + 27 ) * + COUNT( * ) THEN NULL WHEN + 44 * 32 THEN 64 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-5979
SELECT - + 30 - + + ( - - 0 ) * + ( CASE - 56 WHEN + 2 / - - 75 + - 72 * - - ( + 27 ) * + COUNT ( * ) THEN NULL WHEN + 44 * 32 THEN 64 END )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5980
SELECT COALESCE ( COUNT( - 95 ), COUNT( * ) + - 48 + + ( CASE - 30 WHEN + 49 THEN 51 END ) + + + 17, COUNT( * ) * 56 + 41 DIV 88 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5980
SELECT COALESCE ( COUNT ( - 95 ), COUNT ( * ) + - 48 + + ( CASE - 30 WHEN + 49 THEN 51 END ) + + + 17, COUNT ( * ) * 56 + 41 / 88 ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5981
SELECT + - 55 - - NULLIF ( + 52, + 2 ) * - ( 59 ) + 92 + - 94 * - 37 * + - CAST( NULL AS SIGNED ) * - 38 + + 36 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5981
SELECT + - 55 - - NULLIF ( + 52, + 2 ) * - ( 59 ) + 92 + - 94 * - 37 * + - CAST ( NULL AS INTEGER ) * - 38 + + 36 AS col2
----
NULL

query I rowsort
SELECT + - ( - 26 ) * 12 AS col1
----
312

onlyif mysql # aggregate syntax: 
query I rowsort label-5983
SELECT - - COUNT( DISTINCT - 64 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5983
SELECT - - COUNT ( DISTINCT - 64 ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5984
SELECT ALL 93 col1, - CAST( 84 AS SIGNED ) DIV 83 - - + 32 DIV 60 - - - COUNT( * ) + - + 83 + + - 83 + + - 46 * + 2 DIV COALESCE ( + CAST( + NULLIF ( - COUNT( * ), 20 ) AS SIGNED ), 84 DIV 7 - COALESCE ( 48, 26 * + NULLIF ( - COUNT( * ), COUNT( * ) ), + 29 ) * 91 )
----
93
-76

skipif mysql # not compatible
query II rowsort label-5984
SELECT ALL 93 col1, - CAST ( 84 AS INTEGER ) / 83 - - + 32 / 60 - - - COUNT ( * ) + - + 83 + + - 83 + + - 46 * + 2 / COALESCE ( + CAST ( + NULLIF ( - COUNT ( * ), 20 ) AS INTEGER ), 84 / 7 - COALESCE ( 48, 26 * + NULLIF ( - COUNT ( * ), COUNT ( * ) ), + 29 ) * 91 )
----
93
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-5985
SELECT ALL 19 - COUNT( * ) + + 25 + + 7 * - 87 AS col2
----
-566

skipif mysql # not compatible
query I rowsort label-5985
SELECT ALL 19 - COUNT ( * ) + + 25 + + 7 * - 87 AS col2
----
-566

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5986
SELECT ALL - 45 DIV - - 29 - - - 43 - + COUNT( * )
----
-45

skipif mysql # not compatible
query I rowsort label-5986
SELECT ALL - 45 / - - 29 - - - 43 - + COUNT ( * )
----
-45

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5987
SELECT + + 88 / + MIN( + CAST( NULL AS DECIMAL ) ) - + 62 - 50 * + 24
----
NULL

skipif mysql # not compatible
query I rowsort label-5987
SELECT + + 88 / + MIN ( + CAST ( NULL AS REAL ) ) - + 62 - 50 * + 24
----
NULL

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

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

query II rowsort
SELECT 66 AS col0, 77 AS col2
----
66
77

query I rowsort
SELECT + 99 + + - 84 + + 21 * 77 - 89
----
1543

onlyif mysql # aggregate syntax: 
query I rowsort label-5991
SELECT - - 48 * - 41 + - COUNT( * ) AS col1
----
-1969

skipif mysql # not compatible
query I rowsort label-5991
SELECT - - 48 * - 41 + - COUNT ( * ) AS col1
----
-1969

query I rowsort
SELECT DISTINCT + COALESCE ( + 18, + 13 + - 73, 17 ) * 85 - + 64
----
1466

onlyif mysql # aggregate syntax: 
query II rowsort label-5993
SELECT + - NULLIF ( - COUNT( * ), + 55 ) + + 72 AS col1, - COUNT( * )
----
73
-1

skipif mysql # not compatible
query II rowsort label-5993
SELECT + - NULLIF ( - COUNT ( * ), + 55 ) + + 72 AS col1, - COUNT ( * )
----
73
-1

query II rowsort
SELECT ALL + 54, 37 + + 45 AS col0
----
54
82

onlyif mysql # aggregate syntax: 
query I rowsort label-5995
SELECT - ( COUNT( * ) ) + + + 13 AS col0
----
12

skipif mysql # not compatible
query I rowsort label-5995
SELECT - ( COUNT ( * ) ) + + + 13 AS col0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-5996
SELECT ALL MIN( + 39 ) * + 53 + 42
----
2109

skipif mysql # not compatible
query I rowsort label-5996
SELECT ALL MIN ( + 39 ) * + 53 + 42
----
2109

onlyif mysql # DIV for integer division: 
query I rowsort label-5997
SELECT - 16 DIV - ( 85 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5997
SELECT - 16 / - ( 85 ) AS col1
----
0

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

skipif mysql # not compatible
query I rowsort label-5998
SELECT + 28 + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 96 * - 59
----
5664

onlyif mysql # aggregate syntax: 
query I rowsort label-6000
SELECT - MIN( DISTINCT ( - + 70 ) ) * - - COALESCE ( + 14, + 77, 71, - 96 * + 93 ) col0
----
980

skipif mysql # not compatible
query I rowsort label-6000
SELECT - MIN ( DISTINCT ( - + 70 ) ) * - - COALESCE ( + 14, + 77, 71, - 96 * + 93 ) col0
----
980

query I rowsort
SELECT - 80 + ( - ( 21 ) ) AS col0
----
-101

query I rowsort
SELECT ALL 33 * + ( 45 ) + - - 39 AS col1
----
1524

query I rowsort
SELECT ALL + 92 * - 58 + NULLIF ( - 97, 83 * 93 )
----
-5433

onlyif mysql # aggregate syntax: 
query I rowsort label-6004
SELECT DISTINCT + COALESCE ( + NULLIF ( - 6, + NULLIF ( - 46, - 74 ) + 44 * + 15 ), 64 * - 87 ) * - COUNT( + 86 ) col1
----
6

skipif mysql # not compatible
query I rowsort label-6004
SELECT DISTINCT + COALESCE ( + NULLIF ( - 6, + NULLIF ( - 46, - 74 ) + 44 * + 15 ), 64 * - 87 ) * - COUNT ( + 86 ) col1
----
6

query I rowsort
SELECT ALL ( + COALESCE ( + 73, + - 63 ) )
----
73

query II rowsort
SELECT - 50 + - 19 AS col0, + 1 AS col1
----
-69
1

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6009
SELECT ALL - 6 + MAX( DISTINCT + - 48 )
----
-54

skipif mysql # not compatible
query I rowsort label-6009
SELECT ALL - 6 + MAX ( DISTINCT + - 48 )
----
-54

onlyif mysql # aggregate syntax: 
query II rowsort label-6010
SELECT - 93 + - COUNT( - - 56 ) AS col2, - 96 * - 65
----
-94
6240

skipif mysql # not compatible
query II rowsort label-6010
SELECT - 93 + - COUNT ( - - 56 ) AS col2, - 96 * - 65
----
-94
6240

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6012
SELECT + SUM( - 30 ) - - - COUNT( * ) - 86 * - 71
----
6075

skipif mysql # not compatible
query I rowsort label-6012
SELECT + SUM ( - 30 ) - - - COUNT ( * ) - 86 * - 71
----
6075

query I rowsort
SELECT 41 + - 14 AS col1
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6014
SELECT MIN( + + 24 ) + - + 36 + - 71 + CAST( NULL AS SIGNED ) * - - 52 / - - ( COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6014
SELECT MIN ( + + 24 ) + - + 36 + - 71 + CAST ( NULL AS INTEGER ) * - - 52 / - - ( COUNT ( * ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6015
SELECT ALL - - 24 DIV + ( CAST( + 3 AS SIGNED ) ) AS col1
----
8

skipif mysql # not compatible
query I rowsort label-6015
SELECT ALL - - 24 / + ( CAST ( + 3 AS INTEGER ) ) AS col1
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6016
SELECT 10 + + + 84 + - + 11 + - 35 DIV COUNT( * ) * - COUNT( * ) + + 80
----
198

skipif mysql # not compatible
query I rowsort label-6016
SELECT 10 + + + 84 + - + 11 + - 35 / COUNT ( * ) * - COUNT ( * ) + + 80
----
198

query II rowsort
SELECT - ( - 36 ), 57 AS col2
----
36
57

onlyif mysql # aggregate syntax: 
query I rowsort label-6018
SELECT COUNT( * ) * 64 * 34 + - 0 + + 20 + + 0 AS col1
----
2196

skipif mysql # not compatible
query I rowsort label-6018
SELECT COUNT ( * ) * 64 * 34 + - 0 + + 20 + + 0 AS col1
----
2196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6019
SELECT - CAST( + ( - + 65 ) AS SIGNED ) * - 17
----
-1105

skipif mysql # not compatible
query I rowsort label-6019
SELECT - CAST ( + ( - + 65 ) AS INTEGER ) * - 17
----
-1105

onlyif mysql # aggregate syntax: 
query I rowsort label-6020
SELECT 2 + - 10 - + ( + 49 ) - + 93 + 0 * + - 38 + - - CASE 84 WHEN + 49 THEN NULL ELSE + CASE + - COUNT( * ) WHEN + 43 THEN 12 WHEN 80 THEN + 57 END / 93 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6020
SELECT 2 + - 10 - + ( + 49 ) - + 93 + 0 * + - 38 + - - CASE 84 WHEN + 49 THEN NULL ELSE + CASE + - COUNT ( * ) WHEN + 43 THEN 12 WHEN 80 THEN + 57 END / 93 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6021
SELECT 33 * + MIN( DISTINCT + + 0 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6021
SELECT 33 * + MIN ( DISTINCT + + 0 ) AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6022
SELECT - 58 DIV + ( - - 54 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6022
SELECT - 58 / + ( - - 54 ) AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6023
SELECT DISTINCT - NULLIF ( - - 95, CAST( NULL AS SIGNED ) ) DIV + 97 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6023
SELECT DISTINCT - NULLIF ( - - 95, CAST ( NULL AS INTEGER ) ) / + 97 AS col1
----
0

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6026
SELECT ALL 52 DIV + 85 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6026
SELECT ALL 52 / + 85 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6027
SELECT 18 / + - 40 / + CAST( NULL AS DECIMAL ) + - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6027
SELECT 18 / + - 40 / + CAST ( NULL AS REAL ) + - COUNT ( * ) AS col0
----
NULL

query II rowsort
SELECT 62 AS col1, + 74
----
62
74

query I rowsort
SELECT ALL 81 + - + 6 + - 71
----
4

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

skipif mysql # not compatible
query I rowsort label-6030
SELECT 87 - + + COUNT ( * ) / - 66
----
87

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6032
SELECT 94 * - ( 41 ), 95 DIV 21 + - COUNT( * ) AS col1
----
-3854
3

skipif mysql # not compatible
query II rowsort label-6032
SELECT 94 * - ( 41 ), 95 / 21 + - COUNT ( * ) AS col1
----
-3854
3

query I rowsort
SELECT DISTINCT 10 + 4 AS col2
----
14

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

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

query I rowsort
SELECT DISTINCT - 92 + 65 AS col0
----
-27

query I rowsort
SELECT DISTINCT + ( 15 ) + + CASE + + 35 WHEN - 68 THEN + 77 END col2
----
NULL

query II rowsort
SELECT DISTINCT - 45, - 69 AS col0
----
-45
-69

query I rowsort
SELECT ALL + 20 + 62 + + 19 AS col2
----
101

query II rowsort
SELECT 0 AS col2, ( 76 ) - + + 11 AS col1
----
0
65

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

skipif mysql # not compatible
query I rowsort label-6040
SELECT ALL - MAX ( - 48 )
----
48

query I rowsort
SELECT DISTINCT 97 + - + 72 * + 14 AS col0
----
-911

query I rowsort
SELECT 32 - - + 72
----
104

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6044
SELECT ALL + ( 31 ) + - + COUNT( ALL + 24 ) + - 92
----
-62

skipif mysql # not compatible
query I rowsort label-6044
SELECT ALL + ( 31 ) + - + COUNT ( ALL + 24 ) + - 92
----
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6045
SELECT 86 AS col2, 28 * + CAST( + + MAX( + 54 ) AS SIGNED )
----
86
1512

skipif mysql # not compatible
query II rowsort label-6045
SELECT 86 AS col2, 28 * + CAST ( + + MAX ( + 54 ) AS INTEGER )
----
86
1512

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6046
SELECT DISTINCT + ( - + CAST( + + 89 AS SIGNED ) ) - + 45 AS col1
----
-134

skipif mysql # not compatible
query I rowsort label-6046
SELECT DISTINCT + ( - + CAST ( + + 89 AS INTEGER ) ) - + 45 AS col1
----
-134

query I rowsort
SELECT 79 * + 15
----
1185

onlyif mysql # aggregate syntax: 
query I rowsort label-6048
SELECT - 65 * - 28 * COUNT( * )
----
1820

skipif mysql # not compatible
query I rowsort label-6048
SELECT - 65 * - 28 * COUNT ( * )
----
1820

query II rowsort
SELECT ALL + + 2 * 85 + - 70 AS col0, ( + 20 )
----
100
20

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

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

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

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

query I rowsort
SELECT DISTINCT + 11 * + + 51 + 87
----
648

query I rowsort
SELECT + 31 * - + 67 AS col2
----
-2077

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6055
SELECT 66 * + 92 + 2 col1, - 49 DIV - - ( 98 ) - + 21 + 69 col2
----
6074
48

skipif mysql # not compatible
query II rowsort label-6055
SELECT 66 * + 92 + 2 col1, - 49 / - - ( 98 ) - + 21 + 69 col2
----
6074
48

query I rowsort
SELECT DISTINCT - 75 * - - 42 AS col0
----
-3150

query II rowsort
SELECT - 50 AS col2, 63 + 90 AS col0
----
-50
153

onlyif mysql # aggregate syntax: 
query I rowsort label-6058
SELECT MAX( NULLIF ( + + ( + - 41 ), + 60 - - 8 ) ) - + + 53 * - + 77 AS col0
----
4040

skipif mysql # not compatible
query I rowsort label-6058
SELECT MAX ( NULLIF ( + + ( + - 41 ), + 60 - - 8 ) ) - + + 53 * - + 77 AS col0
----
4040

onlyif mysql # aggregate syntax: 
query II rowsort label-6059
SELECT + 17, MIN( - 56 ) * - - 1 + + 44 * 68 AS col0
----
17
2936

skipif mysql # not compatible
query II rowsort label-6059
SELECT + 17, MIN ( - 56 ) * - - 1 + + 44 * 68 AS col0
----
17
2936

onlyif mysql # aggregate syntax: 
query I rowsort label-6060
SELECT DISTINCT NULLIF ( - + 16, 58 * 67 + + 33 - + CASE + - 83 WHEN - 61 THEN + COUNT( * ) WHEN - COUNT( * ) + - 6 * - 55 * + + 10 THEN - ( - 91 ) ELSE NULL END * - 96 ) AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-6060
SELECT DISTINCT NULLIF ( - + 16, 58 * 67 + + 33 - + CASE + - 83 WHEN - 61 THEN + COUNT ( * ) WHEN - COUNT ( * ) + - 6 * - 55 * + + 10 THEN - ( - 91 ) ELSE NULL END * - 96 ) AS col0
----
-16

query I rowsort
SELECT - COALESCE ( - + 61, + 76 ) + 2 AS col0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-6062
SELECT ALL - MAX( + - 16 ) * 87 col2
----
1392

skipif mysql # not compatible
query I rowsort label-6062
SELECT ALL - MAX ( + - 16 ) * 87 col2
----
1392

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6063
SELECT - ( COUNT( * ) ) DIV + 97 - - + 32 col0
----
32

skipif mysql # not compatible
query I rowsort label-6063
SELECT - ( COUNT ( * ) ) / + 97 - - + 32 col0
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6064
SELECT ALL - 57 * + - COUNT( * ) + + - CAST( + 36 AS SIGNED ) + - 61
----
-40

skipif mysql # not compatible
query I rowsort label-6064
SELECT ALL - 57 * + - COUNT ( * ) + + - CAST ( + 36 AS INTEGER ) + - 61
----
-40

query I rowsort
SELECT + 82 * 14 + - + 12 AS col2
----
1136

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

skipif mysql # not compatible
query I rowsort label-6066
SELECT COUNT ( * ) / - 36
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6067
SELECT ALL 13 * + - 55 * + 59 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6067
SELECT ALL 13 * + - 55 * + 59 + + CAST ( NULL AS INTEGER )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-6068
SELECT DISTINCT + COUNT ( + + 16 ) * + 36 AS col0
----
36

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

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

query I rowsort
SELECT ALL - 51 + 17 AS col2
----
-34

query I rowsort
SELECT - 44 * + 69 + 17 AS col1
----
-3019

query I rowsort
SELECT ALL ( - 60 ) + - + 85
----
-145

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6073
SELECT ALL 27 + + 20 * + 85 + - - 99 - CASE 63 WHEN ( COUNT( * ) ) + - SUM( ALL - 60 ) + - 33 * 7 / 98 * 65 THEN NULL WHEN - 42 * - 10 THEN - COUNT( * ) + - CAST( + 55 + ( 29 + - 65 ) AS SIGNED ) END * - 26 * 67 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6073
SELECT ALL 27 + + 20 * + 85 + - - 99 - CASE 63 WHEN ( COUNT ( * ) ) + - SUM ( ALL - 60 ) + - 33 * 7 / 98 * 65 THEN NULL WHEN - 42 * - 10 THEN - COUNT ( * ) + - CAST ( + 55 + ( 29 + - 65 ) AS INTEGER ) END * - 26 * 67 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6074
SELECT DISTINCT CAST( - + 75 AS SIGNED ) * + MIN( - 54 ) AS col0
----
4050

skipif mysql # not compatible
query I rowsort label-6074
SELECT DISTINCT CAST ( - + 75 AS INTEGER ) * + MIN ( - 54 ) AS col0
----
4050

onlyif mysql # aggregate syntax: 
query I rowsort label-6075
SELECT DISTINCT CASE + 73 WHEN 34 THEN - COUNT( * ) * - 50 WHEN - COUNT( * ) + 12 THEN NULL WHEN COUNT( * ) THEN NULL END / MAX( DISTINCT 20 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6075
SELECT DISTINCT CASE + 73 WHEN 34 THEN - COUNT ( * ) * - 50 WHEN - COUNT ( * ) + 12 THEN NULL WHEN COUNT ( * ) THEN NULL END / MAX ( DISTINCT 20 ) AS col1
----
NULL

query I rowsort
SELECT ( - - 4 ) + 75 * - + 16
----
-1196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6077
SELECT + MAX( + CAST( - 59 AS SIGNED ) ) AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-6077
SELECT + MAX ( + CAST ( - 59 AS INTEGER ) ) AS col2
----
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-6078
SELECT 19 + + 41, COUNT( * ) + - 32 AS col1
----
60
-31

skipif mysql # not compatible
query II rowsort label-6078
SELECT 19 + + 41, COUNT ( * ) + - 32 AS col1
----
60
-31

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

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

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

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

query I rowsort
SELECT + + 93 + - + 24 AS col2
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-6082
SELECT DISTINCT SUM( - - 81 ) * - + 53
----
-4293

skipif mysql # not compatible
query I rowsort label-6082
SELECT DISTINCT SUM ( - - 81 ) * - + 53
----
-4293

query I rowsort
SELECT + 24 + - 54 AS col2
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-6084
SELECT + + 43 * + COUNT( ALL + - 24 ) * + 53 * 26 + - + 84
----
59170

skipif mysql # not compatible
query I rowsort label-6084
SELECT + + 43 * + COUNT ( ALL + - 24 ) * + 53 * 26 + - + 84
----
59170

onlyif mysql # aggregate syntax: 
query II rowsort label-6085
SELECT + 68 * ( 4 ) + CASE COUNT( * ) WHEN - - 21 THEN + - NULLIF ( + - 2, 57 ) WHEN + ( + 26 ) THEN NULL END / + COUNT( * ) AS col1, 20 col1
----
NULL
20

skipif mysql # not compatible
query II rowsort label-6085
SELECT + 68 * ( 4 ) + CASE COUNT ( * ) WHEN - - 21 THEN + - NULLIF ( + - 2, 57 ) WHEN + ( + 26 ) THEN NULL END / + COUNT ( * ) AS col1, 20 col1
----
NULL
20

query I rowsort
SELECT + 38 + + 37 AS col1
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6087
SELECT - ( - 9 ) + - - COUNT( * )
----
10

skipif mysql # not compatible
query I rowsort label-6087
SELECT - ( - 9 ) + - - COUNT ( * )
----
10

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6089
SELECT + + CAST( NULL AS DECIMAL ) + - 25 - - 63 + CAST( + 65 AS DECIMAL ) * - COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6089
SELECT + + CAST ( NULL AS REAL ) + - 25 - - 63 + CAST ( + 65 AS REAL ) * - COUNT ( * ) col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6090
SELECT + 95 DIV + ( 22 )
----
4

skipif mysql # not compatible
query I rowsort label-6090
SELECT + 95 / + ( 22 )
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-6091
SELECT - 65 + + 96 DIV 98 AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-6091
SELECT - 65 + + 96 / 98 AS col2
----
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-6092
SELECT DISTINCT + - 57 DIV + 29 + + 34
----
33

skipif mysql # not compatible
query I rowsort label-6092
SELECT DISTINCT + - 57 / + 29 + + 34
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6093
SELECT ALL + NULLIF ( - - COALESCE ( + 1, 83 * - - COUNT( * ) * 9, CAST( - + ( - 92 ) AS SIGNED ) + - - 23 ), 92 + - ( + CASE 96 WHEN 46 - 92 * 68 THEN NULL ELSE 5 + COUNT( * ) * - 60 END ) )
----
1

skipif mysql # not compatible
query I rowsort label-6093
SELECT ALL + NULLIF ( - - COALESCE ( + 1, 83 * - - COUNT ( * ) * 9, CAST ( - + ( - 92 ) AS INTEGER ) + - - 23 ), 92 + - ( + CASE 96 WHEN 46 - 92 * 68 THEN NULL ELSE 5 + COUNT ( * ) * - 60 END ) )
----
1

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

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

query I rowsort
SELECT - - 16 * + - 87 * + 20
----
-27840

query I rowsort
SELECT ALL + - 82 * - 7
----
574

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

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

query I rowsort
SELECT ALL - 36 + 82 + - 53 * - - CASE - + 66 WHEN + - 46 - + 51 THEN - 58 - + 95 END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-6099
SELECT - MAX ( DISTINCT + 73 ) + - 22 AS col2
----
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-6100
SELECT + ( - 77 ) DIV 69 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6100
SELECT + ( - 77 ) / 69 AS col1
----
-1

query I rowsort
SELECT + 11 * - 49
----
-539

query I rowsort
SELECT - 99 + - 40 - ( - - 51 ) - ( 34 )
----
-224

onlyif mysql # aggregate syntax: 
query I rowsort label-6103
SELECT ALL + 19 + 65 + + + COUNT( * ) * NULLIF ( NULLIF ( + + 63, - 0 - 18 * + - COALESCE ( 56, - 12 + + 92 ) + + ( COUNT( * ) ) ), + ( - 26 ) )
----
147

skipif mysql # not compatible
query I rowsort label-6103
SELECT ALL + 19 + 65 + + + COUNT ( * ) * NULLIF ( NULLIF ( + + 63, - 0 - 18 * + - COALESCE ( 56, - 12 + + 92 ) + + ( COUNT ( * ) ) ), + ( - 26 ) )
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-6104
SELECT ( ( - - MIN( 59 ) ) )
----
59

skipif mysql # not compatible
query I rowsort label-6104
SELECT ( ( - - MIN ( 59 ) ) )
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-6105
SELECT ALL + NULLIF ( - ( - - 61 ), NULLIF ( 19, - 7 * COUNT( * ) ) - - 45 ) * - - 16 + + 76
----
-900

skipif mysql # not compatible
query I rowsort label-6105
SELECT ALL + NULLIF ( - ( - - 61 ), NULLIF ( 19, - 7 * COUNT ( * ) ) - - 45 ) * - - 16 + + 76
----
-900

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6106
SELECT - ( 70 ) * 15 * - 81 * + MAX( ALL - 70 ) + - 39 + + 92 + 71 DIV + + 31
----
-5953445

skipif mysql # not compatible
query I rowsort label-6106
SELECT - ( 70 ) * 15 * - 81 * + MAX ( ALL - 70 ) + - 39 + + 92 + 71 / + + 31
----
-5953445

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6107
SELECT ALL 77 * - + 31 + + - 99 + - 39 DIV + 86 + + COUNT( * ), + 85 AS col2
----
-2485
85

skipif mysql # not compatible
query II rowsort label-6107
SELECT ALL 77 * - + 31 + + - 99 + - 39 / + 86 + + COUNT ( * ), + 85 AS col2
----
-2485
85

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

query I rowsort
SELECT DISTINCT + 65 * - + 4 * 56 AS col0
----
-14560

query I rowsort
SELECT - 51 + - 27 AS col2
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-6111
SELECT + MIN( DISTINCT 53 ) AS col1
----
53

skipif mysql # not compatible
query I rowsort label-6111
SELECT + MIN ( DISTINCT 53 ) AS col1
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-6112
SELECT ALL + 99 * 46 * + COUNT( * ) - + 34
----
4520

skipif mysql # not compatible
query I rowsort label-6112
SELECT ALL + 99 * 46 * + COUNT ( * ) - + 34
----
4520

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6115
SELECT 57 * + 26 - - 91 * + - 12 * - 5 * - + 94 AS col1, CAST( NULL AS SIGNED ) * COALESCE ( CAST( SUM( DISTINCT 35 ) AS SIGNED ), + 69 ) AS col0
----
-511758
NULL

skipif mysql # not compatible
query II rowsort label-6115
SELECT 57 * + 26 - - 91 * + - 12 * - 5 * - + 94 AS col1, CAST ( NULL AS INTEGER ) * COALESCE ( CAST ( SUM ( DISTINCT 35 ) AS INTEGER ), + 69 ) AS col0
----
-511758
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6116
SELECT CASE COALESCE ( - + COALESCE ( - 3, - 21 ), - - 46 + - 92 ) WHEN - 64 THEN NULL WHEN - 30 THEN + + COUNT( * ) + + 86 + + NULLIF ( - - 44, + COALESCE ( - 48, + 63 + + 47 / 11 ) * CAST( + 58 AS SIGNED ) - ( + COUNT( * ) ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6116
SELECT CASE COALESCE ( - + COALESCE ( - 3, - 21 ), - - 46 + - 92 ) WHEN - 64 THEN NULL WHEN - 30 THEN + + COUNT ( * ) + + 86 + + NULLIF ( - - 44, + COALESCE ( - 48, + 63 + + 47 / 11 ) * CAST ( + 58 AS INTEGER ) - ( + COUNT ( * ) ) ) END
----
NULL

query I rowsort
SELECT NULLIF ( + 30, - + 91 )
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-6118
SELECT ALL 79 DIV 71
----
1

skipif mysql # not compatible
query I rowsort label-6118
SELECT ALL 79 / 71
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6119
SELECT DISTINCT - 94 DIV + 14 AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-6119
SELECT DISTINCT - 94 / + 14 AS col1
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6120
SELECT + COUNT( * ) DIV + + 30 + + MAX( DISTINCT - 80 ) AS col1
----
-80

skipif mysql # not compatible
query I rowsort label-6120
SELECT + COUNT ( * ) / + + 30 + + MAX ( DISTINCT - 80 ) AS col1
----
-80

query I rowsort
SELECT + + 56 * - 0 + + 68 + - 93 + + + 16 - + + 59 * 63 AS col0
----
-3726

onlyif mysql # aggregate syntax: 
query I rowsort label-6122
SELECT CASE - COUNT( * ) WHEN - COUNT( * ) + 60 THEN NULL ELSE 29 END col1
----
29

skipif mysql # not compatible
query I rowsort label-6122
SELECT CASE - COUNT ( * ) WHEN - COUNT ( * ) + 60 THEN NULL ELSE 29 END col1
----
29

query I rowsort
SELECT - - NULLIF ( - 36, + 34 ) AS col1
----
-36

query I rowsort
SELECT ALL - 93 * + 70 + - 33 AS col1
----
-6543

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6125
SELECT - COALESCE ( 27, NULLIF ( - - 11, + + 29 + - 39 ) + + + 57 - + CASE + 69 WHEN COUNT( * ) DIV + 28 THEN 80 + - + COALESCE ( + - ( + - COUNT( * ) ), + 93 ) DIV MIN( ALL 16 ) WHEN COUNT( * ) THEN COALESCE ( - 29, ( + 31 ) * + 15 + NULLIF ( - 38, 93 ) * - 39 ) END * - SUM( 83 ) * - 72, - 87 + + ( 56 ) )
----
-27

skipif mysql # not compatible
query I rowsort label-6125
SELECT - COALESCE ( 27, NULLIF ( - - 11, + + 29 + - 39 ) + + + 57 - + CASE + 69 WHEN COUNT ( * ) / + 28 THEN 80 + - + COALESCE ( + - ( + - COUNT ( * ) ), + 93 ) / MIN ( ALL 16 ) WHEN COUNT ( * ) THEN COALESCE ( - 29, ( + 31 ) * + 15 + NULLIF ( - 38, 93 ) * - 39 ) END * - SUM ( 83 ) * - 72, - 87 + + ( 56 ) )
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-6126
SELECT + - COUNT( * ) * - - NULLIF ( - - 33, + 43 ) AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-6126
SELECT + - COUNT ( * ) * - - NULLIF ( - - 33, + 43 ) AS col0
----
-33

query I rowsort
SELECT ALL 41 * 34 AS col1
----
1394

query I rowsort
SELECT DISTINCT 81 * - 87
----
-7047

query I rowsort
SELECT ALL 55 + + 42 AS col0
----
97

query I rowsort
SELECT DISTINCT + 18 + + - 54
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6131
SELECT DISTINCT + 7 + - - ( + ( + 83 ) ) + - CAST( - - NULLIF ( - 33, 34 / ( - 51 ) ) AS SIGNED ) col1
----
123

skipif mysql # not compatible
query I rowsort label-6131
SELECT DISTINCT + 7 + - - ( + ( + 83 ) ) + - CAST ( - - NULLIF ( - 33, 34 / ( - 51 ) ) AS INTEGER ) col1
----
123

query I rowsort
SELECT + 82 + + 3 * - - 92
----
358

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6133
SELECT ALL - 74 + + + 55 * - CAST( + COUNT( * ) AS SIGNED )
----
-129

skipif mysql # not compatible
query I rowsort label-6133
SELECT ALL - 74 + + + 55 * - CAST ( + COUNT ( * ) AS INTEGER )
----
-129

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

skipif mysql # not compatible
query I rowsort label-6134
SELECT - + COUNT ( * ) / - + 75
----
0

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

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

query I rowsort
SELECT ALL 82 + - 69 col1
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-6137
SELECT ALL - COUNT( DISTINCT - 81 ) * 86 * - COUNT( * ) AS col0, + MIN( ALL - + 94 ) AS col1
----
86
-94

skipif mysql # not compatible
query II rowsort label-6137
SELECT ALL - COUNT ( DISTINCT - 81 ) * 86 * - COUNT ( * ) AS col0, + MIN ( ALL - + 94 ) AS col1
----
86
-94

query I rowsort
SELECT + 81 * 63
----
5103

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6139
SELECT DISTINCT 87 DIV - SUM( - - 6 )
----
-14

skipif mysql # not compatible
query I rowsort label-6139
SELECT DISTINCT 87 / - SUM ( - - 6 )
----
-14

query II rowsort
SELECT + 64, 91 * 66 AS col1
----
64
6006

query I rowsort
SELECT DISTINCT + ( + 73 ) * - 4 AS col1
----
-292

onlyif mysql # DIV for integer division: 
query I rowsort label-6142
SELECT DISTINCT + 38 DIV - - 97 - + + ( - 84 ) AS col0
----
84

skipif mysql # not compatible
query I rowsort label-6142
SELECT DISTINCT + 38 / - - 97 - + + ( - 84 ) AS col0
----
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6143
SELECT ALL - NULLIF ( - 83, - - COUNT( * ) * - COALESCE ( 66, 19, - + 99 - - - 82 - + - 50 DIV + + COALESCE ( - 21, + - 21, - 21 + - + CASE - AVG ( ALL + 82 ) WHEN - ( 40 ) THEN + 30 END ) DIV - 94 ) * + 85 ) DIV 85 - MAX( 28 ) * COUNT( 49 ) AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-6143
SELECT ALL - NULLIF ( - 83, - - COUNT ( * ) * - COALESCE ( 66, 19, - + 99 - - - 82 - + - 50 / + + COALESCE ( - 21, + - 21, - 21 + - + CASE - AVG ( ALL + 82 ) WHEN - ( 40 ) THEN + 30 END ) / - 94 ) * + 85 ) / 85 - MAX ( 28 ) * COUNT ( 49 ) AS col2
----
-28

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

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

query I rowsort
SELECT DISTINCT + CASE + 77 WHEN - 19 THEN - 45 WHEN 66 THEN 96 WHEN + 52 THEN NULL END AS col0
----
NULL

query I rowsort
SELECT 22 + - - 88 + 59 + + 96
----
265

onlyif mysql # aggregate syntax: 
query I rowsort label-6147
SELECT COUNT( DISTINCT - 34 ) * 67 - - 29
----
96

skipif mysql # not compatible
query I rowsort label-6147
SELECT COUNT ( DISTINCT - 34 ) * 67 - - 29
----
96

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

skipif mysql # not compatible
query I rowsort label-6148
SELECT DISTINCT - MIN ( DISTINCT 44 )
----
-44

query I rowsort
SELECT 32 + + - 40 AS col2
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-6150
SELECT DISTINCT - CASE - 96 WHEN 56 THEN NULL ELSE 34 * + CASE 97 WHEN - 34 THEN + + COUNT( * ) WHEN - + ( - 78 ) THEN NULL ELSE NULL END / + - ( + - 80 ) * 67 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6150
SELECT DISTINCT - CASE - 96 WHEN 56 THEN NULL ELSE 34 * + CASE 97 WHEN - 34 THEN + + COUNT ( * ) WHEN - + ( - 78 ) THEN NULL ELSE NULL END / + - ( + - 80 ) * 67 END AS col2
----
NULL

query II rowsort
SELECT ALL + 25 * 2, 49 AS col2
----
50
49

onlyif mysql # aggregate syntax: 
query I rowsort label-6152
SELECT ALL + 16 * + MAX( DISTINCT 56 ) * + 25
----
22400

skipif mysql # not compatible
query I rowsort label-6152
SELECT ALL + 16 * + MAX ( DISTINCT 56 ) * + 25
----
22400

query I rowsort
SELECT - 11 + - 37 + - - 57 AS col1
----
9

query I rowsort
SELECT ALL - - 15 * - 20
----
-300

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6155
SELECT + ( 84 ) DIV - - COALESCE ( 10, + - COUNT( DISTINCT 75 ) * + 2 * COALESCE ( 49, COUNT( * ), + 13 ) + + 6, + 11 + 39 ) + + 99 AS col0
----
107

skipif mysql # not compatible
query I rowsort label-6155
SELECT + ( 84 ) / - - COALESCE ( 10, + - COUNT ( DISTINCT 75 ) * + 2 * COALESCE ( 49, COUNT ( * ), + 13 ) + + 6, + 11 + 39 ) + + 99 AS col0
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-6156
SELECT ALL + 30 + + COALESCE ( + - MIN( DISTINCT + 10 ), - - 63 )
----
20

skipif mysql # not compatible
query I rowsort label-6156
SELECT ALL + 30 + + COALESCE ( + - MIN ( DISTINCT + 10 ), - - 63 )
----
20

query II rowsort
SELECT 64 + + + 42 AS col1, + 6 AS col0
----
106
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6158
SELECT DISTINCT COUNT( * ) + - + NULLIF ( - - ( + 93 ), + 61 ) * 95 * - - COUNT( * ) AS col0
----
-8834

skipif mysql # not compatible
query I rowsort label-6158
SELECT DISTINCT COUNT ( * ) + - + NULLIF ( - - ( + 93 ), + 61 ) * 95 * - - COUNT ( * ) AS col0
----
-8834

query I rowsort
SELECT DISTINCT - + 73 * - 65 col2
----
4745

query I rowsort
SELECT ALL + - NULLIF ( ( - ( 43 ) ), + - CASE + 42 WHEN + 34 THEN 14 + 34 / + 33 ELSE NULL END + 62 * - + 97 * 95 ) + - ( + - 32 ) col2
----
75

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

skipif mysql # not compatible
query I rowsort label-6161
SELECT ALL ( - 18 ) / - + COUNT ( * )
----
18

query II rowsort
SELECT DISTINCT - 74, 33 AS col1
----
-74
33

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

skipif mysql # not compatible
query I rowsort label-6163
SELECT COUNT ( * ) + 64 AS col1
----
65

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6165
SELECT ALL - 45 DIV COALESCE ( ( - 9 ), - 90 ) + + 88 AS col1
----
93

skipif mysql # not compatible
query I rowsort label-6165
SELECT ALL - 45 / COALESCE ( ( - 9 ), - 90 ) + + 88 AS col1
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-6166
SELECT DISTINCT 37 AS col2, + ( - ( + COALESCE ( - 75, + + NULLIF ( COUNT( * ), + 20 * - + 96 ) ) ) ) * - 69 + - + ( - 95 ) + 11 AS col0
----
37
-5069

skipif mysql # not compatible
query II rowsort label-6166
SELECT DISTINCT 37 AS col2, + ( - ( + COALESCE ( - 75, + + NULLIF ( COUNT ( * ), + 20 * - + 96 ) ) ) ) * - 69 + - + ( - 95 ) + 11 AS col0
----
37
-5069

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

query I rowsort
SELECT ALL 33 * - + 27 AS col0
----
-891

query I rowsort
SELECT - 2 * 64
----
-128

query I rowsort
SELECT 2 + + ( - - 68 ) AS col2
----
70

query II rowsort
SELECT - + 5, 46 AS col0
----
-5
46

query II rowsort
SELECT ALL 34 * - + 86 AS col2, 92
----
-2924
92

onlyif mysql # DIV for integer division: 
query I rowsort label-6173
SELECT ALL - 92 * 78 DIV - 90 AS col0
----
79

skipif mysql # not compatible
query I rowsort label-6173
SELECT ALL - 92 * 78 / - 90 AS col0
----
79

query I rowsort
SELECT 13 * - - ( - 54 )
----
-702

query I rowsort
SELECT DISTINCT 81 - + 81 AS col0
----
0

query I rowsort
SELECT 3 * 30 * 17
----
1530

query II rowsort
SELECT 38 * - 56 col2, + 63 AS col0
----
-2128
63

query I rowsort
SELECT 51 * + 47 * + + 60
----
143820

onlyif mysql # DIV for integer division: 
query I rowsort label-6179
SELECT ALL 68 DIV + ( 55 )
----
1

skipif mysql # not compatible
query I rowsort label-6179
SELECT ALL 68 / + ( 55 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6180
SELECT DISTINCT - MAX( DISTINCT 48 ), COUNT( * ) - - 15 AS col0
----
-48
16

skipif mysql # not compatible
query II rowsort label-6180
SELECT DISTINCT - MAX ( DISTINCT 48 ), COUNT ( * ) - - 15 AS col0
----
-48
16

onlyif mysql # aggregate syntax: 
query I rowsort label-6181
SELECT 84 * - - MIN( 98 ) + - 42 col0
----
8190

skipif mysql # not compatible
query I rowsort label-6181
SELECT 84 * - - MIN ( 98 ) + - 42 col0
----
8190

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

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

query II rowsort
SELECT DISTINCT - 2 * + ( + 94 ), + 74 AS col2
----
-188
74

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

onlyif mysql # aggregate syntax: 
query III rowsort label-6185
SELECT ALL - MAX( DISTINCT - 72 ) col2, + 57 - - 57 + + + COUNT( * ), + COUNT( - 51 ) * - 18 col1
----
72
115
-18

skipif mysql # not compatible
query III rowsort label-6185
SELECT ALL - MAX ( DISTINCT - 72 ) col2, + 57 - - 57 + + + COUNT ( * ), + COUNT ( - 51 ) * - 18 col1
----
72
115
-18

query I rowsort
SELECT ( 50 ) * - 75 + + + 43 col1
----
-3707

query I rowsort
SELECT 63 + 51 + - 5 * - 36 AS col1
----
294

query I rowsort
SELECT 66 * - 38 * - COALESCE ( + 54, 22 + + - 75 ) AS col2
----
135432

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6190
SELECT + - 49 * ( COUNT( * ) ) + - 89
----
-138

skipif mysql # not compatible
query I rowsort label-6190
SELECT + - 49 * ( COUNT ( * ) ) + - 89
----
-138

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

skipif mysql # not compatible
query I rowsort label-6191
SELECT ALL + - 51 + COUNT ( * ) / - COUNT ( * ) AS col2
----
-52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6192
SELECT - 57 * + 77 DIV + COUNT( * ) col2
----
-4389

skipif mysql # not compatible
query I rowsort label-6192
SELECT - 57 * + 77 / + COUNT ( * ) col2
----
-4389

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6193
SELECT + ( 80 ) * + - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) / - NULLIF ( + 96, - 82 ) - + 65 + 51 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6193
SELECT + ( 80 ) * + - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) / - NULLIF ( + 96, - 82 ) - + 65 + 51 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 31 + 25 + + NULLIF ( + - 14, 73 )
----
42

query I rowsort
SELECT DISTINCT + + 50 + 16 AS col0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-6196
SELECT DISTINCT + 51 + COUNT( 96 )
----
52

skipif mysql # not compatible
query I rowsort label-6196
SELECT DISTINCT + 51 + COUNT ( 96 )
----
52

query II rowsort
SELECT - ( - 25 ), - 9 AS col2
----
25
-9

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

skipif mysql # not compatible
query I rowsort label-6198
SELECT + NULLIF ( + 56, 10 * COUNT ( * ) * + 56 )
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-6199
SELECT ALL + 57 + 60 * + COUNT( * ) + - 4
----
113

skipif mysql # not compatible
query I rowsort label-6199
SELECT ALL + 57 + 60 * + COUNT ( * ) + - 4
----
113

query II rowsort
SELECT 96 * + 60 * - 39 AS col1, 45 AS col1
----
-224640
45

query II rowsort
SELECT DISTINCT - 55 * + + 88 * + 33 AS col1, + 59
----
-159720
59

onlyif mysql # aggregate syntax: 
query II rowsort label-6202
SELECT - CASE 29 WHEN - COUNT( * ) - + 72 * + - 29 THEN NULL ELSE 84 + - 16 END AS col0, COUNT( * ) AS col0
----
-68
1

skipif mysql # not compatible
query II rowsort label-6202
SELECT - CASE 29 WHEN - COUNT ( * ) - + 72 * + - 29 THEN NULL ELSE 84 + - 16 END AS col0, COUNT ( * ) AS col0
----
-68
1

query I rowsort
SELECT ALL - + 4 * + 49 AS col2
----
-196

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

skipif mysql # not compatible
query I rowsort label-6204
SELECT ALL SUM ( ALL - 98 )
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-6205
SELECT 97 + + COUNT( * ) - - 7 + 29 - COUNT( * )
----
133

skipif mysql # not compatible
query I rowsort label-6205
SELECT 97 + + COUNT ( * ) - - 7 + 29 - COUNT ( * )
----
133

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6206
SELECT ALL COALESCE ( COUNT( * ), + MAX( ALL + 51 ) * - - 51 + - CAST( + 22 AS SIGNED ) * + COALESCE ( + 79, + 46 * - 46 DIV + 30 + 99 ) * - COUNT( - + 92 ) + + - 26 + + COUNT( * ), - 32 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6206
SELECT ALL COALESCE ( COUNT ( * ), + MAX ( ALL + 51 ) * - - 51 + - CAST ( + 22 AS INTEGER ) * + COALESCE ( + 79, + 46 * - 46 / + 30 + 99 ) * - COUNT ( - + 92 ) + + - 26 + + COUNT ( * ), - 32 ) AS col1
----
1

query I rowsort
SELECT - 98 + + - 64
----
-162

query I rowsort
SELECT - 75 + + 93
----
18

onlyif mysql # aggregate syntax: 
query II rowsort label-6209
SELECT DISTINCT COUNT( * ) AS col0, - 32 + + COUNT( * )
----
1
-31

skipif mysql # not compatible
query II rowsort label-6209
SELECT DISTINCT COUNT ( * ) AS col0, - 32 + + COUNT ( * )
----
1
-31

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

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

query I rowsort
SELECT + 68 * + COALESCE ( - 31, - - 37 ) AS col1
----
-2108

onlyif mysql # aggregate syntax: 
query I rowsort label-6212
SELECT + COUNT( * ) + + 98 AS col1
----
99

skipif mysql # not compatible
query I rowsort label-6212
SELECT + COUNT ( * ) + + 98 AS col1
----
99

query I rowsort
SELECT ALL CASE + 48 WHEN + 18 * + 55 THEN 54 * - - 34 ELSE NULL END
----
NULL

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

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

query I rowsort
SELECT ALL 83 * COALESCE ( + NULLIF ( - 55, - - 35 ), - + 94 ) + 91 AS col0
----
-4474

onlyif mysql # DIV for integer division: 
query I rowsort label-6216
SELECT 62 DIV - + 52 + - + ( 63 )
----
-64

skipif mysql # not compatible
query I rowsort label-6216
SELECT 62 / - + 52 + - + ( 63 )
----
-64

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

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

query I rowsort
SELECT - 32 * - 65
----
2080

query I rowsort
SELECT + 38 * - 32
----
-1216

query I rowsort
SELECT + ( + 16 ) + - - 68 * 73 + - 92 AS col1
----
4888

query I rowsort
SELECT ALL 51 * 49 + NULLIF ( + 61, + + 43 )
----
2560

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6222
SELECT ALL CAST( NULL AS SIGNED ) * - COUNT( * ) + + AVG ( DISTINCT - ( 46 ) ) * - 18 + 6 + - 46 * COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6222
SELECT ALL CAST ( NULL AS INTEGER ) * - COUNT ( * ) + + AVG ( DISTINCT - ( 46 ) ) * - 18 + 6 + - 46 * COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT + + 82 * - 30 * 61 * + 67
----
-10054020

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6224
SELECT DISTINCT 47 DIV - COALESCE ( - CASE COUNT( * ) WHEN 33 THEN - 41 * + + 59 WHEN - 99 DIV 5 * - - 69 THEN NULL END, 94 - 15 DIV COUNT( * ) ) * + 98, COUNT( * ) AS col2
----
0
1

skipif mysql # not compatible
query II rowsort label-6224
SELECT DISTINCT 47 / - COALESCE ( - CASE COUNT ( * ) WHEN 33 THEN - 41 * + + 59 WHEN - 99 / 5 * - - 69 THEN NULL END, 94 - 15 / COUNT ( * ) ) * + 98, COUNT ( * ) AS col2
----
0
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6225
SELECT ALL - 47 * 31 + - COUNT( * ) * + + 93 + + + 31 * - - 96 + + - CAST( + CAST( + 12 AS SIGNED ) AS SIGNED ) - + - 21 - 18 DIV - - COUNT( * ) AS col1
----
1417

skipif mysql # not compatible
query I rowsort label-6225
SELECT ALL - 47 * 31 + - COUNT ( * ) * + + 93 + + + 31 * - - 96 + + - CAST ( + CAST ( + 12 AS INTEGER ) AS INTEGER ) - + - 21 - 18 / - - COUNT ( * ) AS col1
----
1417

onlyif mysql # aggregate syntax: 
query I rowsort label-6226
SELECT + MIN( 43 ) * 85 AS col0
----
3655

skipif mysql # not compatible
query I rowsort label-6226
SELECT + MIN ( 43 ) * 85 AS col0
----
3655

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6227
SELECT + + CAST( + + CASE 23 WHEN + 62 THEN NULL WHEN - 80 THEN + + 10 END AS SIGNED ) * + 55
----
NULL

skipif mysql # not compatible
query I rowsort label-6227
SELECT + + CAST ( + + CASE 23 WHEN + 62 THEN NULL WHEN - 80 THEN + + 10 END AS INTEGER ) * + 55
----
NULL

query I rowsort
SELECT - 9 + + 26 AS col0
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-6229
SELECT 37 AS col2, - 56 * + 40 * - SUM( + - 96 )
----
37
-215040

skipif mysql # not compatible
query II rowsort label-6229
SELECT 37 AS col2, - 56 * + 40 * - SUM ( + - 96 )
----
37
-215040

query I rowsort
SELECT ALL + 86 * 9
----
774

onlyif mysql # aggregate syntax: 
query II rowsort label-6231
SELECT NULLIF ( - + 65, - - 38 ) AS col2, + COUNT( * ) AS col0
----
-65
1

skipif mysql # not compatible
query II rowsort label-6231
SELECT NULLIF ( - + 65, - - 38 ) AS col2, + COUNT ( * ) AS col0
----
-65
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6232
SELECT + + 43 * - CASE - + CASE - 3 WHEN - 71 / + 90 + 79 THEN NULL WHEN + - 13 * ( + 4 ) + - 72 - CAST( NULL AS SIGNED ) / 4 * CAST( + 94 AS SIGNED ) * + + NULLIF ( CASE 89 WHEN + COUNT( * ) + - AVG ( CAST( + COALESCE ( - 3, + 71, 43 ) AS SIGNED ) ) THEN - 61 WHEN - 90 * 96 THEN COUNT( * ) WHEN ( + 5 ) - CAST( NULL AS SIGNED ) THEN - 91 ELSE - ( + ( + MIN( ALL 12 ) ) ) * COALESCE ( - 87 * COUNT( + 75 * 2 ), ( CAST( NULL AS DECIMAL ) ) ) END, - 21 + 31 / + 69 ) THEN + 58 * 61 + 72 WHEN 3 THEN - COUNT( DISTINCT - 39 ) END WHEN 93 * 7 THEN 99 * + ( + 80 * COUNT( * ) ) + 67 * - NULLIF ( 7 * MIN( + CAST( NULL AS SIGNED ) * + 30 ) + - COUNT( * ), - COUNT( * ) ) END * + COUNT( * ) + + 80 * + SUM( DISTINCT 74 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6232
SELECT + + 43 * - CASE - + CASE - 3 WHEN - 71 / + 90 + 79 THEN NULL WHEN + - 13 * ( + 4 ) + - 72 - CAST ( NULL AS INTEGER ) / 4 * CAST ( + 94 AS INTEGER ) * + + NULLIF ( CASE 89 WHEN + COUNT ( * ) + - AVG ( CAST ( + COALESCE ( - 3, + 71, 43 ) AS INTEGER ) ) THEN - 61 WHEN - 90 * 96 THEN COUNT ( * ) WHEN ( + 5 ) - CAST ( NULL AS INTEGER ) THEN - 91 ELSE - ( + ( + MIN ( ALL 12 ) ) ) * COALESCE ( - 87 * COUNT ( + 75 * 2 ), ( CAST ( NULL AS REAL ) ) ) END, - 21 + 31 / + 69 ) THEN + 58 * 61 + 72 WHEN 3 THEN - COUNT ( DISTINCT - 39 ) END WHEN 93 * 7 THEN 99 * + ( + 80 * COUNT ( * ) ) + 67 * - NULLIF ( 7 * MIN ( + CAST ( NULL AS INTEGER ) * + 30 ) + - COUNT ( * ), - COUNT ( * ) ) END * + COUNT ( * ) + + 80 * + SUM ( DISTINCT 74 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6233
SELECT + 75 * 32 * + COUNT( * ) * - 44 col2
----
-105600

skipif mysql # not compatible
query I rowsort label-6233
SELECT + 75 * 32 * + COUNT ( * ) * - 44 col2
----
-105600

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6236
SELECT ALL - 71 * - - CASE 52 WHEN + 12 THEN NULL WHEN - 85 + - - COALESCE ( - 38, - - SUM( ALL + - 29 ) / + 22 * - 45 + 36 * CAST( NULL AS SIGNED ) ) THEN - 20 WHEN - - 98 THEN - + ( - 72 ) * - - 96 * - 93 - - COUNT( DISTINCT 78 ) * - 99 END + 58 / NULLIF ( - 76, - 46 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6236
SELECT ALL - 71 * - - CASE 52 WHEN + 12 THEN NULL WHEN - 85 + - - COALESCE ( - 38, - - SUM ( ALL + - 29 ) / + 22 * - 45 + 36 * CAST ( NULL AS INTEGER ) ) THEN - 20 WHEN - - 98 THEN - + ( - 72 ) * - - 96 * - 93 - - COUNT ( DISTINCT 78 ) * - 99 END + 58 / NULLIF ( - 76, - 46 )
----
NULL

query I rowsort
SELECT - 35 + 72
----
37

query I rowsort
SELECT - 87 + 43
----
-44

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6239
SELECT DISTINCT COALESCE ( ( - 47 ), + 72 ) col1, + 81 + + - 7 DIV + - MAX( - 72 )
----
-47
81

skipif mysql # not compatible
query II rowsort label-6239
SELECT DISTINCT COALESCE ( ( - 47 ), + 72 ) col1, + 81 + + - 7 / + - MAX ( - 72 )
----
-47
81

query II rowsort
SELECT - 63 + - 95 AS col0, - ( - 98 )
----
-158
98

query I rowsort
SELECT - 51 * + - 73
----
3723

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

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

query I rowsort
SELECT ALL COALESCE ( + 79, - 34 ) col2
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-6244
SELECT ALL 15 + - 90 - 16 * - MAX( ALL - 66 ) * - 50 AS col0
----
52725

skipif mysql # not compatible
query I rowsort label-6244
SELECT ALL 15 + - 90 - 16 * - MAX ( ALL - 66 ) * - 50 AS col0
----
52725

onlyif mysql # aggregate syntax: 
query I rowsort label-6245
SELECT - NULLIF ( - 95, + + 32 * - 59 ) * 54 + - COUNT( * ) AS col1
----
5129

skipif mysql # not compatible
query I rowsort label-6245
SELECT - NULLIF ( - 95, + + 32 * - 59 ) * 54 + - COUNT ( * ) AS col1
----
5129

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6248
SELECT + ( - COUNT ( * ) ) / + - ( + 90 )
----
0

query I rowsort
SELECT ALL + 67 + 59 * + - 44 AS col2
----
-2529

onlyif mysql # DIV for integer division: 
query I rowsort label-6250
SELECT ALL - 19 DIV - 8 + - 10 + - + ( - NULLIF ( + - 57, - + 49 + - - 51 + + 35 * + 32 DIV - 63 ) )
----
-65

skipif mysql # not compatible
query I rowsort label-6250
SELECT ALL - 19 / - 8 + - 10 + - + ( - NULLIF ( + - 57, - + 49 + - - 51 + + 35 * + 32 / - 63 ) )
----
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6251
SELECT DISTINCT - COUNT( * ) * 56 DIV + + 83 * - 11, - 96 * - COUNT( * ) AS col1
----
0
96

skipif mysql # not compatible
query II rowsort label-6251
SELECT DISTINCT - COUNT ( * ) * 56 / + + 83 * - 11, - 96 * - COUNT ( * ) AS col1
----
0
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6252
SELECT DISTINCT CASE - + 68 WHEN + - COUNT( * ) + - CAST( NULL AS SIGNED ) THEN NULL WHEN 27 THEN NULL WHEN 58 * - 12 - + - 86 * - CASE - CAST( NULL AS SIGNED ) WHEN - - CAST( SUM( ALL + ( 4 ) ) AS SIGNED ) + - CASE + COUNT( - 76 ) WHEN COUNT( * ) THEN + ( 42 ) END THEN 92 WHEN NULLIF ( + 78, 45 ) THEN 38 * - 96 + CASE - 2 + + 57 WHEN - 0 * - 21 THEN + 51 ELSE NULL END END + CAST( NULL AS SIGNED ) THEN NULL ELSE - ( - 76 ) END DIV + COUNT( * ) + 65 AS col1
----
141

skipif mysql # not compatible
query I rowsort label-6252
SELECT DISTINCT CASE - + 68 WHEN + - COUNT ( * ) + - CAST ( NULL AS INTEGER ) THEN NULL WHEN 27 THEN NULL WHEN 58 * - 12 - + - 86 * - CASE - CAST ( NULL AS INTEGER ) WHEN - - CAST ( SUM ( ALL + ( 4 ) ) AS INTEGER ) + - CASE + COUNT ( - 76 ) WHEN COUNT ( * ) THEN + ( 42 ) END THEN 92 WHEN NULLIF ( + 78, 45 ) THEN 38 * - 96 + CASE - 2 + + 57 WHEN - 0 * - 21 THEN + 51 ELSE NULL END END + CAST ( NULL AS INTEGER ) THEN NULL ELSE - ( - 76 ) END / + COUNT ( * ) + 65 AS col1
----
141

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6254
SELECT 18 / + CASE - + CAST( NULL AS SIGNED ) WHEN + - 26 THEN COALESCE ( - 1, - 71, 95 ) + + 13 + - COUNT( * ) + COALESCE ( + CAST( NULL AS SIGNED ), 12 * 1, 12 ) ELSE NULL END + - 61 + AVG ( CAST( 72 AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6254
SELECT 18 / + CASE - + CAST ( NULL AS INTEGER ) WHEN + - 26 THEN COALESCE ( - 1, - 71, 95 ) + + 13 + - COUNT ( * ) + COALESCE ( + CAST ( NULL AS INTEGER ), 12 * 1, 12 ) ELSE NULL END + - 61 + AVG ( CAST ( 72 AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6255
SELECT + NULLIF ( COUNT( * ), - - COUNT( * ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6255
SELECT + NULLIF ( COUNT ( * ), - - COUNT ( * ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6256
SELECT + + CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) + + CAST( + + 39 AS SIGNED ) * + + 12 AS col2, - 12 AS col0
----
NULL
-12

skipif mysql # not compatible
query II rowsort label-6256
SELECT + + CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) + + CAST ( + + 39 AS INTEGER ) * + + 12 AS col2, - 12 AS col0
----
NULL
-12

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

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

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

query I rowsort
SELECT DISTINCT + - 81 col1
----
-81

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6261
SELECT ALL - ( - - ( - 75 ) ) / + CASE + 47 WHEN + COUNT( * ) * 82 + - CASE - 42 WHEN - - 74 THEN 28 WHEN 57 / - - 9 THEN 50 END THEN - - 27 * - + 23 WHEN - 16 THEN 15 * - CAST( 46 AS SIGNED ) END + 36
----
NULL

skipif mysql # not compatible
query I rowsort label-6261
SELECT ALL - ( - - ( - 75 ) ) / + CASE + 47 WHEN + COUNT ( * ) * 82 + - CASE - 42 WHEN - - 74 THEN 28 WHEN 57 / - - 9 THEN 50 END THEN - - 27 * - + 23 WHEN - 16 THEN 15 * - CAST ( 46 AS INTEGER ) END + 36
----
NULL

query I rowsort
SELECT DISTINCT + 33 * + - 76 AS col1
----
-2508

query I rowsort
SELECT ALL - 24 * + 50 - + 82
----
-1282

onlyif mysql # DIV for integer division: 
query II rowsort label-6264
SELECT + 96 DIV - 88 AS col2, + 28 + 70 DIV - 54 + + 19
----
-1
46

skipif mysql # not compatible
query II rowsort label-6264
SELECT + 96 / - 88 AS col2, + 28 + 70 / - 54 + + 19
----
-1
46

onlyif mysql # aggregate syntax: 
query II rowsort label-6265
SELECT + COUNT( * ) * + 55 * - 81 + + - 33 AS col0, - 4 AS col0
----
-4488
-4

skipif mysql # not compatible
query II rowsort label-6265
SELECT + COUNT ( * ) * + 55 * - 81 + + - 33 AS col0, - 4 AS col0
----
-4488
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-6266
SELECT ALL - 14 * - 41 DIV - + 41 AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-6266
SELECT ALL - 14 * - 41 / - + 41 AS col1
----
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-6267
SELECT 6 DIV + NULLIF ( + 68, - + 86 ) * + 98 + + 24 + - - 99
----
123

skipif mysql # not compatible
query I rowsort label-6267
SELECT 6 / + NULLIF ( + 68, - + 86 ) * + 98 + + 24 + - - 99
----
123

onlyif mysql # aggregate syntax: 
query II rowsort label-6268
SELECT 42 * - MAX( - 17 ) AS col0, + COUNT( * ) + 99
----
714
100

skipif mysql # not compatible
query II rowsort label-6268
SELECT 42 * - MAX ( - 17 ) AS col0, + COUNT ( * ) + 99
----
714
100

query I rowsort
SELECT 61 * + - ( 22 ) - + + 3 AS col2
----
-1345

onlyif mysql # aggregate syntax: 
query I rowsort label-6270
SELECT 51 * + + NULLIF ( COUNT( * ), - ( - 89 ) + - 96 - + 41 + + - ( - CASE - + 50 WHEN 60 * + 85 * + 60 THEN ( - 93 ) END ) )
----
51

skipif mysql # not compatible
query I rowsort label-6270
SELECT 51 * + + NULLIF ( COUNT ( * ), - ( - 89 ) + - 96 - + 41 + + - ( - CASE - + 50 WHEN 60 * + 85 * + 60 THEN ( - 93 ) END ) )
----
51

query I rowsort
SELECT DISTINCT 22 + 36 + - + 38
----
20

query I rowsort
SELECT ( - - 39 ) * - + 81 * - 19 * - ( - 89 )
----
5341869

query I rowsort
SELECT ALL + 98 + 88 + 44
----
230

onlyif mysql # aggregate syntax: 
query I rowsort label-6274
SELECT 48 - COUNT( * ) + + 37
----
84

skipif mysql # not compatible
query I rowsort label-6274
SELECT 48 - COUNT ( * ) + + 37
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6275
SELECT ALL 10 + + COUNT( * ) + - CAST( NULL AS SIGNED ) + - + 78 * - 91 AS col2, - COUNT( ALL - 65 )
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-6275
SELECT ALL 10 + + COUNT ( * ) + - CAST ( NULL AS INTEGER ) + - + 78 * - 91 AS col2, - COUNT ( ALL - 65 )
----
NULL
-1

query I rowsort
SELECT 22 + - 94 AS col0
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-6277
SELECT 67 * - - 11 * + COALESCE ( + 69, + - 61 - + COUNT( * ) ) * - - 28 AS col0
----
1423884

skipif mysql # not compatible
query I rowsort label-6277
SELECT 67 * - - 11 * + COALESCE ( + 69, + - 61 - + COUNT ( * ) ) * - - 28 AS col0
----
1423884

query II rowsort
SELECT ALL + 98 + 56 * 88 + - - 76 + 2 AS col0, 53 * + + 84 * 37 + 11 AS col0
----
5104
164735

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6279
SELECT COUNT( * ) + - COUNT( * ) DIV 96 col0
----
1

skipif mysql # not compatible
query I rowsort label-6279
SELECT COUNT ( * ) + - COUNT ( * ) / 96 col0
----
1

query II rowsort
SELECT - 88 AS col2, + 40 + ( + 22 ) AS col0
----
-88
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6281
SELECT DISTINCT COUNT( * ) + + CAST( + 6 AS SIGNED ), 46 AS col0
----
7
46

skipif mysql # not compatible
query II rowsort label-6281
SELECT DISTINCT COUNT ( * ) + + CAST ( + 6 AS INTEGER ), 46 AS col0
----
7
46

onlyif mysql # aggregate syntax: 
query I rowsort label-6282
SELECT 66 + - COUNT( * ) col2
----
65

skipif mysql # not compatible
query I rowsort label-6282
SELECT 66 + - COUNT ( * ) col2
----
65

onlyif mysql # aggregate syntax: 
query II rowsort label-6283
SELECT ALL 44 + - - COUNT( - 43 ) AS col1, 8 + + 2 AS col0
----
45
10

skipif mysql # not compatible
query II rowsort label-6283
SELECT ALL 44 + - - COUNT ( - 43 ) AS col1, 8 + + 2 AS col0
----
45
10

query I rowsort
SELECT DISTINCT 2 * + 6 AS col2
----
12

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

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

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

query I rowsort
SELECT 77 * - 94
----
-7238

query II rowsort
SELECT ALL - + 20, + 40 col1
----
-20
40

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

skipif mysql # not compatible
query I rowsort label-6289
SELECT - NULLIF ( - + 39, + COUNT ( * ) ) col0
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6290
SELECT + 77 + + + 19 * - - COUNT( * ) - + + 78 DIV 95 AS col0, + 44 col2
----
96
44

skipif mysql # not compatible
query II rowsort label-6290
SELECT + 77 + + + 19 * - - COUNT ( * ) - + + 78 / 95 AS col0, + 44 col2
----
96
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6291
SELECT ALL - 61 - CAST( NULL AS SIGNED ) * 40 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6291
SELECT ALL - 61 - CAST ( NULL AS INTEGER ) * 40 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6292
SELECT - CAST( NULL AS SIGNED ) * + - 44 * 78 + - - CASE - COUNT( ALL + 92 ) WHEN + 72 THEN 30 + + 72 WHEN - 48 THEN NULL WHEN 64 + - 57 + - COUNT( * ) + - 55 - 21 + 76 + - 11 THEN NULL ELSE MAX( DISTINCT + 86 ) END / - 88 * + 95 + ( + 79 - CASE + 73 WHEN - 20 + + 85 THEN + 71 * COUNT( - NULLIF ( + 71, - 69 ) * + 30 ) + 79 ELSE NULL END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6292
SELECT - CAST ( NULL AS INTEGER ) * + - 44 * 78 + - - CASE - COUNT ( ALL + 92 ) WHEN + 72 THEN 30 + + 72 WHEN - 48 THEN NULL WHEN 64 + - 57 + - COUNT ( * ) + - 55 - 21 + 76 + - 11 THEN NULL ELSE MAX ( DISTINCT + 86 ) END / - 88 * + 95 + ( + 79 - CASE + 73 WHEN - 20 + + 85 THEN + 71 * COUNT ( - NULLIF ( + 71, - 69 ) * + 30 ) + 79 ELSE NULL END ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6293
SELECT 2 * + 34 - 35 + - - CAST( NULL AS SIGNED ) - + + MAX( CAST( NULL AS SIGNED ) ) AS col0
----
NULL

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

query I rowsort
SELECT 25 * - + 36 AS col0
----
-900

onlyif mysql # aggregate syntax: 
query II rowsort label-6295
SELECT ALL + 4 * - - 24 * - - COUNT( * ), + 65 AS col2
----
96
65

skipif mysql # not compatible
query II rowsort label-6295
SELECT ALL + 4 * - - 24 * - - COUNT ( * ), + 65 AS col2
----
96
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6296
SELECT 23 * - - COUNT( * ) - 9 AS col2, - 51 * - CAST( - CAST( + 24 AS SIGNED ) AS SIGNED ) * + 72 * - NULLIF ( + - 19, 84 * ( - 16 ) / + - 30 / - CASE 28 WHEN + 40 + COALESCE ( - 81, + + 42 ) THEN 53 * CAST( NULL AS SIGNED ) + - 51 WHEN - 41 * + 53 THEN 15 * 16 WHEN 70 + 5 THEN NULL END ) + - 59
----
14
-1674491

skipif mysql # not compatible
query II rowsort label-6296
SELECT 23 * - - COUNT ( * ) - 9 AS col2, - 51 * - CAST ( - CAST ( + 24 AS INTEGER ) AS INTEGER ) * + 72 * - NULLIF ( + - 19, 84 * ( - 16 ) / + - 30 / - CASE 28 WHEN + 40 + COALESCE ( - 81, + + 42 ) THEN 53 * CAST ( NULL AS INTEGER ) + - 51 WHEN - 41 * + 53 THEN 15 * 16 WHEN 70 + 5 THEN NULL END ) + - 59
----
14
-1674491

query I rowsort
SELECT - 94 + - 34
----
-128

onlyif mysql # aggregate syntax: 
query I rowsort label-6298
SELECT + COUNT( * ) * COALESCE ( + + ( + COUNT( 96 ) ), 94 )
----
1

skipif mysql # not compatible
query I rowsort label-6298
SELECT + COUNT ( * ) * COALESCE ( + + ( + COUNT ( 96 ) ), 94 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6299
SELECT ALL + + SUM( DISTINCT + + 22 ) * 33 AS col0
----
726

skipif mysql # not compatible
query I rowsort label-6299
SELECT ALL + + SUM ( DISTINCT + + 22 ) * 33 AS col0
----
726

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

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

query I rowsort
SELECT 81 + - 20 + 0 * + 81 + - - 30 + + NULLIF ( - - 0, + 87 ) - - - 71
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-6302
SELECT 51 DIV - - 17
----
3

skipif mysql # not compatible
query I rowsort label-6302
SELECT 51 / - - 17
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6303
SELECT ALL 70 + + 52 - 79 - COUNT( * ) AS col0
----
42

skipif mysql # not compatible
query I rowsort label-6303
SELECT ALL 70 + + 52 - 79 - COUNT ( * ) AS col0
----
42

query I rowsort
SELECT 66 * + 30 * + - 56 * + ( + 89 ) * + 85 + 66 * + - 56
----
-838810896

onlyif mysql # aggregate syntax: 
query I rowsort label-6305
SELECT COUNT( * ) + + COUNT( * ) + + 98
----
100

skipif mysql # not compatible
query I rowsort label-6305
SELECT COUNT ( * ) + + COUNT ( * ) + + 98
----
100

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

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

query I rowsort
SELECT 48 + - 30
----
18

query II rowsort
SELECT - 65 AS col1, + 73 * + 54
----
-65
3942

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6309
SELECT ALL ( + + 23 ) + MAX( ALL - 70 ) + ( 81 ), - 26 DIV - COUNT( * ) AS col0
----
34
26

skipif mysql # not compatible
query II rowsort label-6309
SELECT ALL ( + + 23 ) + MAX ( ALL - 70 ) + ( 81 ), - 26 / - COUNT ( * ) AS col0
----
34
26

query I rowsort
SELECT DISTINCT 69 + - - 6 AS col2
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-6311
SELECT 51, 13 * + - COUNT( * ) AS col2
----
51
-13

skipif mysql # not compatible
query II rowsort label-6311
SELECT 51, 13 * + - COUNT ( * ) AS col2
----
51
-13

query I rowsort
SELECT 67 + - 0
----
67

query I rowsort
SELECT 38 * + 10
----
380

onlyif mysql # aggregate syntax: 
query II rowsort label-6314
SELECT - 76, COUNT( * ) + 32 col1
----
-76
33

skipif mysql # not compatible
query II rowsort label-6314
SELECT - 76, COUNT ( * ) + 32 col1
----
-76
33

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6315
SELECT DISTINCT CAST( NULL AS SIGNED ) + + + 3 + - CAST( - 42 AS SIGNED ) AS col2, - 96 DIV - + 69 + - - 70 * + 66 * ( + 39 )
----
NULL
180181

skipif mysql # not compatible
query II rowsort label-6315
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + + 3 + - CAST ( - 42 AS INTEGER ) AS col2, - 96 / - + 69 + - - 70 * + 66 * ( + 39 )
----
NULL
180181

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

skipif mysql # not compatible
query I rowsort label-6316
SELECT DISTINCT 91 + + COUNT ( * ) AS col0
----
92

query I rowsort
SELECT ALL + 67 - + + ( + 12 ) AS col2
----
55

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

skipif mysql # not compatible
query I rowsort label-6318
SELECT - SUM ( ALL - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6319
SELECT ALL + 4, COUNT( * ) * + 9 AS col0
----
4
9

skipif mysql # not compatible
query II rowsort label-6319
SELECT ALL + 4, COUNT ( * ) * + 9 AS col0
----
4
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6320
SELECT MIN( ALL - 41 ) * - MAX( ALL + 90 ) + + 15
----
3705

skipif mysql # not compatible
query I rowsort label-6320
SELECT MIN ( ALL - 41 ) * - MAX ( ALL + 90 ) + + 15
----
3705

query I rowsort
SELECT ALL - 90 - + 22
----
-112

onlyif mysql # aggregate syntax: 
query I rowsort label-6322
SELECT DISTINCT - COUNT( * ) * + - 3 / 12 * - - 8 / + CASE - - 43 WHEN + 48 THEN + ( + - COUNT( * ) ) ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6322
SELECT DISTINCT - COUNT ( * ) * + - 3 / 12 * - - 8 / + CASE - - 43 WHEN + 48 THEN + ( + - COUNT ( * ) ) ELSE NULL END col0
----
NULL

query I rowsort
SELECT 71 - + 85 + + 23
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6324
SELECT - 84 * 54 + COUNT( * ) + - 3 col2
----
-4538

skipif mysql # not compatible
query I rowsort label-6324
SELECT - 84 * 54 + COUNT ( * ) + - 3 col2
----
-4538

onlyif mysql # aggregate syntax: 
query I rowsort label-6325
SELECT ALL - + NULLIF ( + 66, + 66 * + COUNT( DISTINCT + + 2 ) ) * - 15 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6325
SELECT ALL - + NULLIF ( + 66, + 66 * + COUNT ( DISTINCT + + 2 ) ) * - 15 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6326
SELECT + 24 + - 60 - COUNT( * ) DIV + COALESCE ( + 51, - + COALESCE ( + + 34, 97, + - NULLIF ( + - 11, + SUM( + 11 ) * + - ( 87 ) ), 12 + + + 7 - - - 52 * 57 ) DIV + - 40 * - ( - 47 ) ) AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-6326
SELECT + 24 + - 60 - COUNT ( * ) / + COALESCE ( + 51, - + COALESCE ( + + 34, 97, + - NULLIF ( + - 11, + SUM ( + 11 ) * + - ( 87 ) ), 12 + + + 7 - - - 52 * 57 ) / + - 40 * - ( - 47 ) ) AS col0
----
-36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6327
SELECT DISTINCT - MAX( - - 81 ) DIV 60
----
-1

skipif mysql # not compatible
query I rowsort label-6327
SELECT DISTINCT - MAX ( - - 81 ) / 60
----
-1

query II rowsort
SELECT 25 AS col1, 30 - + 89 AS col1
----
25
-59

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

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

query I rowsort
SELECT ALL - 38 * + 26 * ( + 23 ) * - 9 AS col2
----
204516

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6331
SELECT + CAST( - 13 AS SIGNED ) * - 84 - + - CAST( - 15 AS SIGNED )
----
1077

skipif mysql # not compatible
query I rowsort label-6331
SELECT + CAST ( - 13 AS INTEGER ) * - 84 - + - CAST ( - 15 AS INTEGER )
----
1077

query I rowsort
SELECT ALL + CASE + 89 WHEN + 47 + - 77 * + 6 THEN NULL ELSE + 65 * + ( - 56 ) END col1
----
-3640

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

skipif mysql # not compatible
query I rowsort label-6333
SELECT DISTINCT - + COUNT ( * ) / + + 81 AS col2
----
0

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

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

query II rowsort
SELECT 12, 34 AS col2
----
12
34

query I rowsort
SELECT ALL + - 94 * - 15 + + - 18
----
1392

onlyif mysql # aggregate syntax: 
query I rowsort label-6337
SELECT ALL + 94 * + COUNT( * ) + 44
----
138

skipif mysql # not compatible
query I rowsort label-6337
SELECT ALL + 94 * + COUNT ( * ) + 44
----
138

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

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

query I rowsort
SELECT ALL ( - - 13 ) * - 9 + 58 * 42 AS col2
----
2319

query I rowsort
SELECT ALL + NULLIF ( + 35, + 33 * - NULLIF ( + 16, - + 82 ) )
----
35

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6342
SELECT ALL - 98 + COUNT( * ) + MAX( - - ( - 95 ) ), 37 AS col0
----
-192
37

skipif mysql # not compatible
query II rowsort label-6342
SELECT ALL - 98 + COUNT ( * ) + MAX ( - - ( - 95 ) ), 37 AS col0
----
-192
37

onlyif mysql # aggregate syntax: 
query I rowsort label-6343
SELECT COUNT( * ) * - COUNT( * ) - + 6 - 13 * + 69 * 22 AS col0
----
-19741

skipif mysql # not compatible
query I rowsort label-6343
SELECT COUNT ( * ) * - COUNT ( * ) - + 6 - 13 * + 69 * 22 AS col0
----
-19741

query I rowsort
SELECT + 92 * + + 66 AS col0
----
6072

query I rowsort
SELECT DISTINCT 15 - 86 col2
----
-71

query I rowsort
SELECT ALL 50 - - 76
----
126

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6348
SELECT ALL ( 22 ), - 81 * + COUNT( * ) * + 89 * - 32 AS col0
----
22
230688

skipif mysql # not compatible
query II rowsort label-6348
SELECT ALL ( 22 ), - 81 * + COUNT ( * ) * + 89 * - 32 AS col0
----
22
230688

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6349
SELECT + CAST( NULL AS SIGNED ) - 94 - + 19
----
NULL

skipif mysql # not compatible
query I rowsort label-6349
SELECT + CAST ( NULL AS INTEGER ) - 94 - + 19
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6350
SELECT - 2 + - 81 AS col2, + 20 + - - 31 * - - 34 DIV - COUNT( * )
----
-83
-1034

skipif mysql # not compatible
query II rowsort label-6350
SELECT - 2 + - 81 AS col2, + 20 + - - 31 * - - 34 / - COUNT ( * )
----
-83
-1034

onlyif mysql # aggregate syntax: 
query II rowsort label-6351
SELECT + COUNT( * ) - + 82 col2, - 8
----
-81
-8

skipif mysql # not compatible
query II rowsort label-6351
SELECT + COUNT ( * ) - + 82 col2, - 8
----
-81
-8

query I rowsort
SELECT ALL 14 * + ( - 16 ) AS col0
----
-224

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

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

query II rowsort
SELECT + ( - 75 ) * + 55 AS col0, + 23 AS col0
----
-4125
23

query I rowsort
SELECT + 99 + + 62 + + + 78 AS col0
----
239

onlyif mysql # DIV for integer division: 
query I rowsort label-6356
SELECT + - ( 70 ) DIV 62 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6356
SELECT + - ( 70 ) / 62 AS col1
----
-1

query I rowsort
SELECT + - 89 + + - 56 + + + 49 AS col2
----
-96

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

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

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

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

query I rowsort
SELECT + 88 * - 17
----
-1496

onlyif mysql # aggregate syntax: 
query I rowsort label-6361
SELECT + MAX( 6 ) + - 30
----
-24

skipif mysql # not compatible
query I rowsort label-6361
SELECT + MAX ( 6 ) + - 30
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-6362
SELECT 49 * + 23 + + ( COUNT( 49 ) ) + - + 89 + + 6 + + - 46 AS col0
----
999

skipif mysql # not compatible
query I rowsort label-6362
SELECT 49 * + 23 + + ( COUNT ( 49 ) ) + - + 89 + + 6 + + - 46 AS col0
----
999

query I rowsort
SELECT DISTINCT + + 50 col2
----
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6364
SELECT ALL + - 16 DIV 51 + 66 AS col0, - 94 - + COUNT( * )
----
66
-95

skipif mysql # not compatible
query II rowsort label-6364
SELECT ALL + - 16 / 51 + 66 AS col0, - 94 - + COUNT ( * )
----
66
-95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6365
SELECT - - 97 DIV - COUNT( * ) + + - SUM( ALL - 67 )
----
-30

skipif mysql # not compatible
query I rowsort label-6365
SELECT - - 97 / - COUNT ( * ) + + - SUM ( ALL - 67 )
----
-30

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

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

query I rowsort
SELECT ( - - 12 )
----
12

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

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

query I rowsort
SELECT - 5 * NULLIF ( - 96, 70 )
----
480

onlyif mysql # aggregate syntax: 
query I rowsort label-6370
SELECT + 16 + + + NULLIF ( + 81, 63 * + COUNT( * ) + - - 58 )
----
97

skipif mysql # not compatible
query I rowsort label-6370
SELECT + 16 + + + NULLIF ( + 81, 63 * + COUNT ( * ) + - - 58 )
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6371
SELECT + 32 * - - ( - CAST( - - 78 AS SIGNED ) ) + - 90
----
-2586

skipif mysql # not compatible
query I rowsort label-6371
SELECT + 32 * - - ( - CAST ( - - 78 AS INTEGER ) ) + - 90
----
-2586

onlyif mysql # aggregate syntax: 
query I rowsort label-6372
SELECT DISTINCT - COUNT( * ) * + - 70 + + 75 * 59
----
4495

skipif mysql # not compatible
query I rowsort label-6372
SELECT DISTINCT - COUNT ( * ) * + - 70 + + 75 * 59
----
4495

query II rowsort
SELECT ALL + 96 AS col0, 67 AS col0
----
96
67

query II rowsort
SELECT + 10 AS col1, 41 + + 99 + NULLIF ( + 98, + 8 )
----
10
238

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6375
SELECT + 69 * COALESCE ( - 38, + 29 DIV + 58 - - 78 ) * 97 * + - CAST( 63 AS SIGNED ), + 98 AS col0
----
16023042
98

skipif mysql # not compatible
query II rowsort label-6375
SELECT + 69 * COALESCE ( - 38, + 29 / + 58 - - 78 ) * 97 * + - CAST ( 63 AS INTEGER ), + 98 AS col0
----
16023042
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6376
SELECT COUNT( * ) * + - 74 * + 59 + + COUNT( * ) AS col1, - 51 DIV COALESCE ( - 76, 92 ) + 67 + NULLIF ( + CAST( + + 75 AS SIGNED ), + 20 * + 22 + - + COUNT( * ) + + 68 * + COUNT( * ) ) + - 33 AS col2
----
-4365
109

skipif mysql # not compatible
query II rowsort label-6376
SELECT COUNT ( * ) * + - 74 * + 59 + + COUNT ( * ) AS col1, - 51 / COALESCE ( - 76, 92 ) + 67 + NULLIF ( + CAST ( + + 75 AS INTEGER ), + 20 * + 22 + - + COUNT ( * ) + + 68 * + COUNT ( * ) ) + - 33 AS col2
----
-4365
109

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6379
SELECT ALL - 50 * + MAX( ALL 84 ) * + 84 col0
----
-352800

skipif mysql # not compatible
query I rowsort label-6379
SELECT ALL - 50 * + MAX ( ALL 84 ) * + 84 col0
----
-352800

onlyif mysql # aggregate syntax: 
query II rowsort label-6380
SELECT COUNT( * ), 36 * + 15 AS col1
----
1
540

skipif mysql # not compatible
query II rowsort label-6380
SELECT COUNT ( * ), 36 * + 15 AS col1
----
1
540

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

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

query I rowsort
SELECT - - COALESCE ( + + ( 27 ), 25 ) AS col2
----
27

query II rowsort
SELECT 80 AS col1, 11 AS col0
----
80
11

query I rowsort
SELECT ALL - NULLIF ( 92, 25 )
----
-92

query I rowsort
SELECT - COALESCE ( - 23, - 16 ) * 31
----
713

query II rowsort
SELECT DISTINCT - 28 AS col0, + 35 AS col0
----
-28
35

query I rowsort
SELECT DISTINCT - 49 * 38
----
-1862

query I rowsort
SELECT + - 44 * 56
----
-2464

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6390
SELECT 23 AS col0, - COUNT( * ) * 24 * - 82
----
23
1968

skipif mysql # not compatible
query II rowsort label-6390
SELECT 23 AS col0, - COUNT ( * ) * 24 * - 82
----
23
1968

query II rowsort
SELECT - + 23, 40 AS col2
----
-23
40

query II rowsort
SELECT ALL 19 AS col2, 69 AS col0
----
19
69

query I rowsort
SELECT 69 * + CASE - + 40 WHEN - 52 THEN + 50 END * + 64 + 63
----
NULL

query I rowsort
SELECT ALL - 56 + + 85 AS col0
----
29

query I rowsort
SELECT ALL - 97 + - - 43
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6396
SELECT ( + - COALESCE ( + 95, - MAX( ALL - - 99 ) * - ( + 51 ) + + + CAST( NULL AS SIGNED ), + - 3 ) ) * 11 + 20 + - + CAST( 26 AS SIGNED ) * 69
----
-2819

skipif mysql # not compatible
query I rowsort label-6396
SELECT ( + - COALESCE ( + 95, - MAX ( ALL - - 99 ) * - ( + 51 ) + + + CAST ( NULL AS INTEGER ), + - 3 ) ) * 11 + 20 + - + CAST ( 26 AS INTEGER ) * 69
----
-2819

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6397
SELECT ALL 5 + + COUNT( * ) + 97 DIV + MAX( ALL - 51 )
----
5

skipif mysql # not compatible
query I rowsort label-6397
SELECT ALL 5 + + COUNT ( * ) + 97 / + MAX ( ALL - 51 )
----
5

query I rowsort
SELECT ALL 88 + - 66 AS col0
----
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6399
SELECT DISTINCT - 4 + COUNT( 53 ) DIV - COUNT( * ) + + 4 + + 64 AS col1, 81 + + + 57
----
63
138

skipif mysql # not compatible
query II rowsort label-6399
SELECT DISTINCT - 4 + COUNT ( 53 ) / - COUNT ( * ) + + 4 + + 64 AS col1, 81 + + + 57
----
63
138

onlyif mysql # aggregate syntax: 
query I rowsort label-6400
SELECT + 28 * - 20 - - + 3 + + 0 * - ( 65 ) + - MAX( - - 86 ) - + 75 * 9
----
-1318

skipif mysql # not compatible
query I rowsort label-6400
SELECT + 28 * - 20 - - + 3 + + 0 * - ( 65 ) + - MAX ( - - 86 ) - + 75 * 9
----
-1318

query I rowsort
SELECT DISTINCT 39 - + ( 45 )
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6402
SELECT DISTINCT + 35 - - CAST( - 53 AS SIGNED ) - 5 + - + 48 + + COUNT( * ) - - - SUM( NULLIF ( - ( - 63 ), + - 84 ) )
----
-133

skipif mysql # not compatible
query I rowsort label-6402
SELECT DISTINCT + 35 - - CAST ( - 53 AS INTEGER ) - 5 + - + 48 + + COUNT ( * ) - - - SUM ( NULLIF ( - ( - 63 ), + - 84 ) )
----
-133

query I rowsort
SELECT DISTINCT 38 * - 35 * - 22
----
29260

query I rowsort
SELECT ( + 93 ) * 6
----
558

query I rowsort
SELECT 1 * - - 65
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-6406
SELECT + ( ( 3 ) ) * - COUNT( * ) - - ( - 28 ) AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-6406
SELECT + ( ( 3 ) ) * - COUNT ( * ) - - ( - 28 ) AS col0
----
-31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6407
SELECT SUM( + 99 ) - COUNT( * ) DIV - 39
----
99

skipif mysql # not compatible
query I rowsort label-6407
SELECT SUM ( + 99 ) - COUNT ( * ) / - 39
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6408
SELECT DISTINCT 96 + + + NULLIF ( - ( - - 41 ), - 82 ) + - - 65 * + 63 - + CAST( COUNT( DISTINCT ( + 55 ) ) AS SIGNED ) DIV + COUNT( * )
----
4149

skipif mysql # not compatible
query I rowsort label-6408
SELECT DISTINCT 96 + + + NULLIF ( - ( - - 41 ), - 82 ) + - - 65 * + 63 - + CAST ( COUNT ( DISTINCT ( + 55 ) ) AS INTEGER ) / + COUNT ( * )
----
4149

onlyif mysql # aggregate syntax: 
query I rowsort label-6409
SELECT ALL + 12 * MAX( 30 ) AS col1
----
360

skipif mysql # not compatible
query I rowsort label-6409
SELECT ALL + 12 * MAX ( 30 ) AS col1
----
360

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6410
SELECT DISTINCT - ( - 42 ) DIV - CAST( - 71 AS SIGNED ) col0
----
0

skipif mysql # not compatible
query I rowsort label-6410
SELECT DISTINCT - ( - 42 ) / - CAST ( - 71 AS INTEGER ) col0
----
0

query I rowsort
SELECT ALL 64 + + 40 AS col1
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-6412
SELECT ALL - 62 + - 85 + - + ( - COUNT( * ) ) col1
----
-146

skipif mysql # not compatible
query I rowsort label-6412
SELECT ALL - 62 + - 85 + - + ( - COUNT ( * ) ) col1
----
-146

query I rowsort
SELECT 46 - + 28 AS col2
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6414
SELECT - 61 + + + 49 * - - 26 * - NULLIF ( + + 66, + + 57 * - + 63 ) * + 40 + 40 DIV 78 - - MAX( - ( + 44 ) ) AS col1
----
-3363465

skipif mysql # not compatible
query I rowsort label-6414
SELECT - 61 + + + 49 * - - 26 * - NULLIF ( + + 66, + + 57 * - + 63 ) * + 40 + 40 / 78 - - MAX ( - ( + 44 ) ) AS col1
----
-3363465

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

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

query I rowsort
SELECT 94 + - 60 AS col0
----
34

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6419
SELECT CAST( - 78 AS SIGNED ) + + 67 AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-6419
SELECT CAST ( - 78 AS INTEGER ) + + 67 AS col0
----
-11

query II rowsort
SELECT ALL + - 59 * + 95 AS col0, - ( + 63 ) AS col2
----
-5605
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-6421
SELECT DISTINCT + MAX( 39 ) + + COUNT( * ) AS col2
----
40

skipif mysql # not compatible
query I rowsort label-6421
SELECT DISTINCT + MAX ( 39 ) + + COUNT ( * ) AS col2
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-6422
SELECT DISTINCT CASE - + COUNT( * ) WHEN - COUNT( * ) * + AVG ( + 37 ) / + + COUNT( * ) THEN NULL WHEN - - 49 + + 37 THEN - 71 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6422
SELECT DISTINCT CASE - + COUNT ( * ) WHEN - COUNT ( * ) * + AVG ( + 37 ) / + + COUNT ( * ) THEN NULL WHEN - - 49 + + 37 THEN - 71 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6423
SELECT 63 + - + 52 + + - NULLIF ( - MIN( DISTINCT 91 ), - 91 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6423
SELECT 63 + - + 52 + + - NULLIF ( - MIN ( DISTINCT 91 ), - 91 )
----
NULL

query I rowsort
SELECT ALL - ( - 39 ) * + - 36
----
-1404

onlyif mysql # aggregate syntax: 
query I rowsort label-6425
SELECT ALL ( 45 ) - + COUNT( * ) + 39 + 72
----
155

skipif mysql # not compatible
query I rowsort label-6425
SELECT ALL ( 45 ) - + COUNT ( * ) + 39 + 72
----
155

query II rowsort
SELECT + 60 + + 50 + 14 * - 34 AS col0, 65 + 88 * + - 86 + 18 + + 46
----
-366
-7439

query I rowsort
SELECT 31 * - + 16
----
-496

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

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

query I rowsort
SELECT ALL + 39 * - 92
----
-3588

onlyif mysql # aggregate syntax: 
query I rowsort label-6430
SELECT - COUNT( * ) * - 79 + + + 69 col0
----
148

skipif mysql # not compatible
query I rowsort label-6430
SELECT - COUNT ( * ) * - 79 + + + 69 col0
----
148

onlyif mysql # DIV for integer division: 
query I rowsort label-6431
SELECT 50 DIV 30
----
1

skipif mysql # not compatible
query I rowsort label-6431
SELECT 50 / 30
----
1

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

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

query I rowsort
SELECT DISTINCT + 67 * + ( - 3 )
----
-201

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

query I rowsort
SELECT 82 - - + 38 col2
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-6436
SELECT MAX( DISTINCT 29 ) AS col0
----
29

skipif mysql # not compatible
query I rowsort label-6436
SELECT MAX ( DISTINCT 29 ) AS col0
----
29

query I rowsort
SELECT 1 + - + 43
----
-42

query I rowsort
SELECT 72 + - + 51 * - 6 * + - 38
----
-11556

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6439
SELECT CASE - 3 WHEN - COUNT( * ) + - - 27 THEN 77 ELSE - - 38 END * + + CASE + 63 WHEN + 84 THEN + 56 + - 6 + 72 / - CAST( NULL AS SIGNED ) * - 53 * - + 89 END * + 97 + 99
----
NULL

skipif mysql # not compatible
query I rowsort label-6439
SELECT CASE - 3 WHEN - COUNT ( * ) + - - 27 THEN 77 ELSE - - 38 END * + + CASE + 63 WHEN + 84 THEN + 56 + - 6 + 72 / - CAST ( NULL AS INTEGER ) * - 53 * - + 89 END * + 97 + 99
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6441
SELECT + ( - 90 ) * ( - + 43 ) + - + CAST( - - CASE - - 63 WHEN - - 99 - - 28 THEN - 4 * + - 25 + - - 80 END AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6441
SELECT + ( - 90 ) * ( - + 43 ) + - + CAST ( - - CASE - - 63 WHEN - - 99 - - 28 THEN - 4 * + - 25 + - - 80 END AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT 96 + 89 AS col1
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-6443
SELECT ALL 55 + - CASE - COUNT( * ) WHEN + 37 THEN + 7 + 60 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6443
SELECT ALL 55 + - CASE - COUNT ( * ) WHEN + 37 THEN + 7 + 60 END
----
NULL

query I rowsort
SELECT ALL ( 2 ) * 92 AS col2
----
184

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6445
SELECT CAST( NULL AS SIGNED ) * + 63 * 75, 57 AS col2
----
NULL
57

skipif mysql # not compatible
query II rowsort label-6445
SELECT CAST ( NULL AS INTEGER ) * + 63 * 75, 57 AS col2
----
NULL
57

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

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

query I rowsort
SELECT DISTINCT 53 + + 86 + + - 45
----
94

query I rowsort
SELECT DISTINCT - 55 * + 67
----
-3685

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6449
SELECT ALL + + COUNT( * ) + 21 + CASE - 11 WHEN - 50 + + 59 THEN + MAX( ALL 57 ) DIV 57 * - 75 ELSE + MAX( ALL + 43 ) END
----
65

skipif mysql # not compatible
query I rowsort label-6449
SELECT ALL + + COUNT ( * ) + 21 + CASE - 11 WHEN - 50 + + 59 THEN + MAX ( ALL 57 ) / 57 * - 75 ELSE + MAX ( ALL + 43 ) END
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-6450
SELECT ALL MIN( DISTINCT + - 85 ) AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-6450
SELECT ALL MIN ( DISTINCT + - 85 ) AS col2
----
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6451
SELECT + - 16 DIV - 62 + + - MAX( ALL + + 9 )
----
-9

skipif mysql # not compatible
query I rowsort label-6451
SELECT + - 16 / - 62 + + - MAX ( ALL + + 9 )
----
-9

query I rowsort
SELECT - - 11 + NULLIF ( + ( + ( - 25 ) ), - 82 ) AS col1
----
-14

query I rowsort
SELECT - - 61 + 76
----
137

onlyif mysql # aggregate syntax: 
query I rowsort label-6454
SELECT + 81 * - ( - + SUM( - 25 ) ) col2
----
-2025

skipif mysql # not compatible
query I rowsort label-6454
SELECT + 81 * - ( - + SUM ( - 25 ) ) col2
----
-2025

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6456
SELECT DISTINCT + NULLIF ( + - 21, + 19 * + 56 + + SUM( - - 84 ) )
----
-21

skipif mysql # not compatible
query I rowsort label-6456
SELECT DISTINCT + NULLIF ( + - 21, + 19 * + 56 + + SUM ( - - 84 ) )
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-6457
SELECT - - 9 * 49 * COUNT( 43 )
----
441

skipif mysql # not compatible
query I rowsort label-6457
SELECT - - 9 * 49 * COUNT ( 43 )
----
441

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6460
SELECT - + 42 AS col2, - 12 + - COUNT( + 34 )
----
-42
-13

skipif mysql # not compatible
query II rowsort label-6460
SELECT - + 42 AS col2, - 12 + - COUNT ( + 34 )
----
-42
-13

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6462
SELECT - CASE + MAX( ALL + 82 ) WHEN 57 THEN NULL WHEN COUNT( * ) THEN NULL WHEN 12 * - 37 + + 22 + + - COUNT( * ) THEN + + 73 / + - 22 END * - 95 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6462
SELECT - CASE + MAX ( ALL + 82 ) WHEN 57 THEN NULL WHEN COUNT ( * ) THEN NULL WHEN 12 * - 37 + + 22 + + - COUNT ( * ) THEN + + 73 / + - 22 END * - 95 AS col2
----
NULL

query I rowsort
SELECT - 46 - + 32
----
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-6464
SELECT ALL - 53 * 85 DIV + + 17
----
-265

skipif mysql # not compatible
query I rowsort label-6464
SELECT ALL - 53 * 85 / + + 17
----
-265

query I rowsort
SELECT - 40 * + 8 col0
----
-320

query II rowsort
SELECT DISTINCT + 37 AS col0, + 72 col1
----
37
72

query I rowsort
SELECT ( - - 39 )
----
39

query I rowsort
SELECT ALL + NULLIF ( - 81, + 11 ) col2
----
-81

query I rowsort
SELECT CASE 84 WHEN + - 88 + - 98 THEN + 91 END * + 42 * 50 + - COALESCE ( - + 96, - ( + - 17 ) + ( 80 ) ) AS col0
----
NULL

query I rowsort
SELECT - 4 * - + 99 AS col2
----
396

query I rowsort
SELECT - 9 + 29 AS col0
----
20

query I rowsort
SELECT + ( + + 52 ) * - + 47 * + + 31 + + - 5 - 7 + + 46 * + + 26 + + 58
----
-74522

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

query I rowsort
SELECT ALL - 80 * + 91 + 87
----
-7193

query I rowsort
SELECT ALL - 91 * + 70
----
-6370

query I rowsort
SELECT ALL 80 * 45 + + 55 * - 94
----
-1570

query I rowsort
SELECT ALL + + 60 col2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-6478
SELECT + 88 * + COUNT( + 36 ) + + 26 - - + 61 + + + 60 * + ( - + 94 ) * + + 31
----
-174665

skipif mysql # not compatible
query I rowsort label-6478
SELECT + 88 * + COUNT ( + 36 ) + + 26 - - + 61 + + + 60 * + ( - + 94 ) * + + 31
----
-174665

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6479
SELECT CAST( NULL AS SIGNED ) AS col2, 68 + + 74
----
NULL
142

skipif mysql # not compatible
query II rowsort label-6479
SELECT CAST ( NULL AS INTEGER ) AS col2, 68 + + 74
----
NULL
142

query I rowsort
SELECT + 13 * + COALESCE ( + 96, + + 83 ) + + - 63 AS col1
----
1185

onlyif mysql # aggregate syntax: 
query II rowsort label-6481
SELECT ALL - 96, + NULLIF ( NULLIF ( - 89, + 47 * + COUNT( * ) + + - 33 * + + 27 ), - NULLIF ( - 32, - + 62 ) * + NULLIF ( - + 12, - ( + 57 ) + - 1 + - 44 * + ( + 15 ) ) * 11 + + + 82 + + + 44 + 75 + - 71 * - 92 * 37 * 14 ) + 15 col0
----
-96
-74

skipif mysql # not compatible
query II rowsort label-6481
SELECT ALL - 96, + NULLIF ( NULLIF ( - 89, + 47 * + COUNT ( * ) + + - 33 * + + 27 ), - NULLIF ( - 32, - + 62 ) * + NULLIF ( - + 12, - ( + 57 ) + - 1 + - 44 * + ( + 15 ) ) * 11 + + + 82 + + + 44 + 75 + - 71 * - 92 * 37 * 14 ) + 15 col0
----
-96
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-6482
SELECT ALL 9 * + SUM( ALL - - 72 ) col0
----
648

skipif mysql # not compatible
query I rowsort label-6482
SELECT ALL 9 * + SUM ( ALL - - 72 ) col0
----
648

onlyif mysql # aggregate syntax: 
query I rowsort label-6483
SELECT + - NULLIF ( - MAX( - + 10 ), - 20 * 99 ) + 35
----
25

skipif mysql # not compatible
query I rowsort label-6483
SELECT + - NULLIF ( - MAX ( - + 10 ), - 20 * 99 ) + 35
----
25

query II rowsort
SELECT 92 col2, 64 - ( + 13 )
----
92
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6485
SELECT ALL - COUNT( * ) - 16
----
-17

skipif mysql # not compatible
query I rowsort label-6485
SELECT ALL - COUNT ( * ) - 16
----
-17

query I rowsort
SELECT - NULLIF ( 64, + 20 * - 45 * - 33 ) AS col0
----
-64

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

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

query I rowsort
SELECT + 55 * + 54 + - - 4 AS col1
----
2974

query I rowsort
SELECT + 29 - - + 77
----
106

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6490
SELECT - ( - AVG ( + 52 ) ) + + - MAX( + 65 ) + + ( + CAST( NULL AS SIGNED ) ) * + 11 + - - 17 * + MAX( - ( 73 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6490
SELECT - ( - AVG ( + 52 ) ) + + - MAX ( + 65 ) + + ( + CAST ( NULL AS INTEGER ) ) * + 11 + - - 17 * + MAX ( - ( 73 ) )
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6492
SELECT - CAST( ( + + COALESCE ( 13, COUNT( * ) + - 86 + + 26 + + 35 / + 9 / + 22 ) ) AS SIGNED )
----
-13

skipif mysql # not compatible
query I rowsort label-6492
SELECT - CAST ( ( + + COALESCE ( 13, COUNT ( * ) + - 86 + + 26 + + 35 / + 9 / + 22 ) ) AS INTEGER )
----
-13

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

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

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

skipif mysql # not compatible
query I rowsort label-6494
SELECT + COUNT ( * ) / 50 col1
----
0

query I rowsort
SELECT + 99 + + 51 * 59 - 80 + - 47 * 87
----
-1061

query I rowsort
SELECT ALL - 22 * + + 41 AS col1
----
-902

query I rowsort
SELECT - 16 * + 90
----
-1440

onlyif mysql # aggregate syntax: 
query I rowsort label-6498
SELECT + COUNT( * ) + + + 13 + 64
----
78

skipif mysql # not compatible
query I rowsort label-6498
SELECT + COUNT ( * ) + + + 13 + 64
----
78

query I rowsort
SELECT - 86 * - 49 * + ( 32 )
----
134848

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6500
SELECT DISTINCT - 4 * + - COALESCE ( 31, - + COALESCE ( - + 8, 20, - NULLIF ( + - 87, CASE + CAST( NULL AS SIGNED ) WHEN - - 1 THEN NULL ELSE - AVG ( ALL + 1 ) END ) + + 61 ) + - COUNT( * ) ) * - 1 * + 0 * + 26 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6500
SELECT DISTINCT - 4 * + - COALESCE ( 31, - + COALESCE ( - + 8, 20, - NULLIF ( + - 87, CASE + CAST ( NULL AS INTEGER ) WHEN - - 1 THEN NULL ELSE - AVG ( ALL + 1 ) END ) + + 61 ) + - COUNT ( * ) ) * - 1 * + 0 * + 26 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6501
SELECT DISTINCT ( 51 ) DIV 58 DIV 35 + + 3 + + - 10 * - 76 + + 74
----
837

skipif mysql # not compatible
query I rowsort label-6501
SELECT DISTINCT ( 51 ) / 58 / 35 + + 3 + + - 10 * - 76 + + 74
----
837

onlyif mysql # DIV for integer division: 
query I rowsort label-6502
SELECT ALL 64 DIV + 6 + + + 84 DIV + 82 AS col2
----
11

skipif mysql # not compatible
query I rowsort label-6502
SELECT ALL 64 / + 6 + + + 84 / + 82 AS col2
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-6503
SELECT 14 * 53 + + 10 * - - ( + - CASE + 73 WHEN - 90 THEN + 56 * + 29 + + + MIN( DISTINCT + 24 ) ELSE + 75 END ) col2
----
-8

skipif mysql # not compatible
query I rowsort label-6503
SELECT 14 * 53 + + 10 * - - ( + - CASE + 73 WHEN - 90 THEN + 56 * + 29 + + + MIN ( DISTINCT + 24 ) ELSE + 75 END ) col2
----
-8

query I rowsort
SELECT DISTINCT - 69 + 64 AS col0
----
-5

query I rowsort
SELECT ALL + 63 + - 45 AS col1
----
18

query I rowsort
SELECT 31 + - 21
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6507
SELECT DISTINCT + 72 * - CAST( + 10 AS SIGNED ) AS col2
----
-720

skipif mysql # not compatible
query I rowsort label-6507
SELECT DISTINCT + 72 * - CAST ( + 10 AS INTEGER ) AS col2
----
-720

onlyif mysql # DIV for integer division: 
query I rowsort label-6508
SELECT DISTINCT + 61 DIV + 37 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6508
SELECT DISTINCT + 61 / + 37 AS col1
----
1

query I rowsort
SELECT ALL - - 39 - - 65 col2
----
104

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

query I rowsort
SELECT - 60 * + + 24 * - 82 + 45
----
118125

query I rowsort
SELECT ALL + 28 - - 78 AS col1
----
106

query I rowsort
SELECT DISTINCT - + 38 col2
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-6514
SELECT ALL NULLIF ( - COUNT( * ), + ( - 1 ) + - 23 ) - - + 40 AS col1
----
39

skipif mysql # not compatible
query I rowsort label-6514
SELECT ALL NULLIF ( - COUNT ( * ), + ( - 1 ) + - 23 ) - - + 40 AS col1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-6515
SELECT - 99 + 27 + COUNT( * ) * - + 34 * 65
----
-2282

skipif mysql # not compatible
query I rowsort label-6515
SELECT - 99 + 27 + COUNT ( * ) * - + 34 * 65
----
-2282

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6516
SELECT - CAST( NULL AS DECIMAL ) + 11, - 0 * ( ( - 49 ) ) AS col1
----
NULL
0

skipif mysql # not compatible
query II rowsort label-6516
SELECT - CAST ( NULL AS REAL ) + 11, - 0 * ( ( - 49 ) ) AS col1
----
NULL
0

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

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

skipif mysql # not compatible
query I rowsort label-6518
SELECT - - ( - MIN ( + - 5 ) )
----
5

query I rowsort
SELECT DISTINCT ( - + 61 ) * 17 + - 38
----
-1075

query I rowsort
SELECT ALL 10 * - - 4
----
40

query I rowsort
SELECT ALL 22 * + 36 AS col0
----
792

query II rowsort
SELECT 47 * + 94 * 88 AS col2, - 39 + - 58 AS col0
----
388784
-97

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

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

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

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

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

skipif mysql # not compatible
query II rowsort label-6525
SELECT 61 col1, COUNT ( * ) AS col2
----
61
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6526
SELECT ( CAST( 98 AS SIGNED ) ) + - + ( 29 )
----
69

skipif mysql # not compatible
query I rowsort label-6526
SELECT ( CAST ( 98 AS INTEGER ) ) + - + ( 29 )
----
69

query II rowsort
SELECT 69, 15 AS col0
----
69
15

query I rowsort
SELECT ALL 68 + 10
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-6529
SELECT DISTINCT 80 + + ( - MIN( + 13 ) )
----
67

skipif mysql # not compatible
query I rowsort label-6529
SELECT DISTINCT 80 + + ( - MIN ( + 13 ) )
----
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6530
SELECT 64 DIV - 20 - - MAX( - 81 )
----
-84

skipif mysql # not compatible
query I rowsort label-6530
SELECT 64 / - 20 - - MAX ( - 81 )
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6531
SELECT ALL 15 + + 55 + + + ( - 54 ) + + - 36 * - 43 * + 57 + + COUNT( DISTINCT 19 ) + CAST( + - COUNT( * ) AS SIGNED )
----
88252

skipif mysql # not compatible
query I rowsort label-6531
SELECT ALL 15 + + 55 + + + ( - 54 ) + + - 36 * - 43 * + 57 + + COUNT ( DISTINCT 19 ) + CAST ( + - COUNT ( * ) AS INTEGER )
----
88252

query II rowsort
SELECT DISTINCT - 33 AS col1, 53 * - - 7 AS col2
----
-33
371

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6535
SELECT ALL COUNT( * ) DIV - 96
----
0

skipif mysql # not compatible
query I rowsort label-6535
SELECT ALL COUNT ( * ) / - 96
----
0

query I rowsort
SELECT 17 + - + 64
----
-47

query II rowsort
SELECT + 92, + 69 AS col1
----
92
69

query II rowsort
SELECT + 94, + 70 AS col0
----
94
70

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

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

query I rowsort
SELECT ALL - - 16 * - 66 AS col1
----
-1056

query I rowsort
SELECT ALL 4 - + + 6 col1
----
-2

query II rowsort
SELECT DISTINCT - 66, + 28 * + 13 * 77 col1
----
-66
28028

onlyif mysql # aggregate syntax: 
query I rowsort label-6543
SELECT + SUM( + + 28 ) * COUNT( * ) col2
----
28

skipif mysql # not compatible
query I rowsort label-6543
SELECT + SUM ( + + 28 ) * COUNT ( * ) col2
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6544
SELECT - 94, - 69 + - - CAST( NULL AS SIGNED ) + 73 * - 95 + MIN( 93 ) AS col2
----
-94
NULL

skipif mysql # not compatible
query II rowsort label-6544
SELECT - 94, - 69 + - - CAST ( NULL AS INTEGER ) + 73 * - 95 + MIN ( 93 ) AS col2
----
-94
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6545
SELECT ALL - + 53 AS col1, + COALESCE ( - - 86, COUNT( * ) + 1 * + 65, ( - 34 ), 32 * + 12 ) AS col0
----
-53
86

skipif mysql # not compatible
query II rowsort label-6545
SELECT ALL - + 53 AS col1, + COALESCE ( - - 86, COUNT ( * ) + 1 * + 65, ( - 34 ), 32 * + 12 ) AS col0
----
-53
86

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6547
SELECT 58 AS col1, ( 57 ) * ( - 86 ) - + + COUNT( * ) + - COUNT( * ) * - - 51 - - + ( + 5 ) + + 82 DIV 36 AS col2
----
58
-4947

skipif mysql # not compatible
query II rowsort label-6547
SELECT 58 AS col1, ( 57 ) * ( - 86 ) - + + COUNT ( * ) + - COUNT ( * ) * - - 51 - - + ( + 5 ) + + 82 / 36 AS col2
----
58
-4947

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6549
SELECT NULLIF ( + 66, - COUNT( * ) + ( 45 ) * + ( + COALESCE ( + + 42, + COUNT( * ) * 37 - - 28 + 5 + 32 * - 95 * + 68 * 70 + - - CASE + 23 WHEN + 97 THEN + 84 + 47 WHEN + 14 * + CAST( + 33 AS SIGNED ) THEN NULL ELSE NULL END / - 50 * - 60 * + 47 / - 64 / ( + COUNT( * ) * + 28 ), - CAST( + 54 AS SIGNED ) ) ) ) * CAST( CASE - 72 WHEN + 58 THEN 72 END AS SIGNED ) - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6549
SELECT NULLIF ( + 66, - COUNT ( * ) + ( 45 ) * + ( + COALESCE ( + + 42, + COUNT ( * ) * 37 - - 28 + 5 + 32 * - 95 * + 68 * 70 + - - CASE + 23 WHEN + 97 THEN + 84 + 47 WHEN + 14 * + CAST ( + 33 AS INTEGER ) THEN NULL ELSE NULL END / - 50 * - 60 * + 47 / - 64 / ( + COUNT ( * ) * + 28 ), - CAST ( + 54 AS INTEGER ) ) ) ) * CAST ( CASE - 72 WHEN + 58 THEN 72 END AS INTEGER ) - - COUNT ( * )
----
NULL

query I rowsort
SELECT - 64 + 21 AS col1
----
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6551
SELECT ALL + + 32 DIV - + COUNT( * ) AS col0
----
-32

skipif mysql # not compatible
query I rowsort label-6551
SELECT ALL + + 32 / - + COUNT ( * ) AS col0
----
-32

query I rowsort
SELECT DISTINCT CASE + + 91 WHEN + 69 THEN NULL ELSE 29 - - + 13 END AS col1
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-6553
SELECT - 77 + + 17 + - + 54 * - - CASE MAX( - 44 ) WHEN - 48 THEN + 2 END * - 39 + + 29 + + 80 * + 47 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6553
SELECT - 77 + + 17 + - + 54 * - - CASE MAX ( - 44 ) WHEN - 48 THEN + 2 END * - 39 + + 29 + + 80 * + 47 AS col0
----
NULL

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

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

query I rowsort
SELECT ALL + + 57 + 42
----
99

query II rowsort
SELECT DISTINCT - 35, 99 - - + 71 AS col0
----
-35
170

query I rowsort
SELECT ALL - 31 + 99 AS col2
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-6558
SELECT 50 + - + 76 DIV 20 col1
----
47

skipif mysql # not compatible
query I rowsort label-6558
SELECT 50 + - + 76 / 20 col1
----
47

query II rowsort
SELECT 86 - + 15 * - 64 * + 82 AS col1, - 1 + + 68
----
78806
67

query I rowsort
SELECT 60 + + - ( - 52 )
----
112

query I rowsort
SELECT ALL - 59 + + 50 AS col1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-6562
SELECT DISTINCT CASE + MIN( DISTINCT - 69 ) WHEN 49 * - - MIN( DISTINCT - - 45 ) * + COUNT( * ) THEN 21 WHEN - + 46 * + + COUNT( * ) THEN + 23 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6562
SELECT DISTINCT CASE + MIN ( DISTINCT - 69 ) WHEN 49 * - - MIN ( DISTINCT - - 45 ) * + COUNT ( * ) THEN 21 WHEN - + 46 * + + COUNT ( * ) THEN + 23 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT 75 + + ( 12 ) + + 12 * + 31 AS col1
----
459

query I rowsort
SELECT ALL 27 + 95 AS col0
----
122

onlyif mysql # aggregate syntax: 
query II rowsort label-6565
SELECT DISTINCT MAX( ALL 68 ) AS col2, 34
----
68
34

skipif mysql # not compatible
query II rowsort label-6565
SELECT DISTINCT MAX ( ALL 68 ) AS col2, 34
----
68
34

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

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

query I rowsort
SELECT - ( - 57 ) * + 50
----
2850

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6568
SELECT + 79 + COALESCE ( - 84, + - 15 * + CAST( - 64 AS SIGNED ), - + 93 ) + + ( - 18 ) * 31 * + 85 * - 53 AS col2, - 81 AS col2
----
2513785
-81

skipif mysql # not compatible
query II rowsort label-6568
SELECT + 79 + COALESCE ( - 84, + - 15 * + CAST ( - 64 AS INTEGER ), - + 93 ) + + ( - 18 ) * 31 * + 85 * - 53 AS col2, - 81 AS col2
----
2513785
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6569
SELECT - CAST( 30 AS SIGNED ) + 6 AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-6569
SELECT - CAST ( 30 AS INTEGER ) + 6 AS col0
----
-24

query I rowsort
SELECT CASE + 15 WHEN + 70 * 4 * + 89 THEN NULL WHEN + + 14 THEN 64 + 80 ELSE - 65 * - 63 * 1 END AS col1
----
4095

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6572
SELECT DISTINCT + 77 * + 82 - - 52 * 36 * - SUM( + + 85 ) AS col1
----
-152806

skipif mysql # not compatible
query I rowsort label-6572
SELECT DISTINCT + 77 * + 82 - - 52 * 36 * - SUM ( + + 85 ) AS col1
----
-152806

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6574
SELECT + 32 + + + 36 - 58 DIV - ( 6 )
----
77

skipif mysql # not compatible
query I rowsort label-6574
SELECT + 32 + + + 36 - 58 / - ( 6 )
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6575
SELECT + 45 + - CASE 97 WHEN - - 92 * - - 48 THEN 18 WHEN 7 + + 68 THEN - 24 + ( - 41 ) - 5 * COUNT( * ) * - 30 * ( 47 ) - + 27 / + 78 + - COUNT( * ) + + COALESCE ( + - COUNT( * ), + - 52 ) + 15 + - + 18 * + 84 * COUNT( ALL - 31 ) ELSE NULL END + COALESCE ( + 56, - 81 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6575
SELECT + 45 + - CASE 97 WHEN - - 92 * - - 48 THEN 18 WHEN 7 + + 68 THEN - 24 + ( - 41 ) - 5 * COUNT ( * ) * - 30 * ( 47 ) - + 27 / + 78 + - COUNT ( * ) + + COALESCE ( + - COUNT ( * ), + - 52 ) + 15 + - + 18 * + 84 * COUNT ( ALL - 31 ) ELSE NULL END + COALESCE ( + 56, - 81 ) AS col2
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6577
SELECT - + CAST( 87 AS SIGNED ) DIV 56 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6577
SELECT - + CAST ( 87 AS INTEGER ) / 56 AS col2
----
-1

query I rowsort
SELECT ALL + 62 * ( + 22 )
----
1364

onlyif mysql # aggregate syntax: 
query I rowsort label-6579
SELECT 51 * + + ( - 40 ) + - 87 - 57 * 5 + - + SUM( - COALESCE ( + 63, + ( + - 98 ) ) ) * COUNT( * )
----
-2349

skipif mysql # not compatible
query I rowsort label-6579
SELECT 51 * + + ( - 40 ) + - 87 - 57 * 5 + - + SUM ( - COALESCE ( + 63, + ( + - 98 ) ) ) * COUNT ( * )
----
-2349

query I rowsort
SELECT + - 82 * - 44 AS col1
----
3608

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6581
SELECT - + CAST( + + 90 AS SIGNED ) + - 7 AS col1
----
-97

skipif mysql # not compatible
query I rowsort label-6581
SELECT - + CAST ( + + 90 AS INTEGER ) + - 7 AS col1
----
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6582
SELECT + SUM( - - COALESCE ( + ( + 0 ), 9 DIV + - 67 ) )
----
0

skipif mysql # not compatible
query I rowsort label-6582
SELECT + SUM ( - - COALESCE ( + ( + 0 ), 9 / + - 67 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6583
SELECT ALL + 17 * - 50 + 2 + + 97 + - 89 * 46 * - COUNT( DISTINCT - 34 )
----
3343

skipif mysql # not compatible
query I rowsort label-6583
SELECT ALL + 17 * - 50 + 2 + + 97 + - 89 * 46 * - COUNT ( DISTINCT - 34 )
----
3343

onlyif mysql # aggregate syntax: 
query I rowsort label-6584
SELECT ALL COUNT( * ) * 34 * + 92 * + 73
----
228344

skipif mysql # not compatible
query I rowsort label-6584
SELECT ALL COUNT ( * ) * 34 * + 92 * + 73
----
228344

onlyif mysql # aggregate syntax: 
query I rowsort label-6585
SELECT DISTINCT + NULLIF ( ( 94 ), + + COUNT( * ) * + 8 + + + MAX( + + 21 ) / + NULLIF ( + NULLIF ( + + 82, - 76 + 11 ), + 84 ) ) * MIN( + 83 ) * + 13 + - - 21 + 86 AS col0
----
101533

skipif mysql # not compatible
query I rowsort label-6585
SELECT DISTINCT + NULLIF ( ( 94 ), + + COUNT ( * ) * + 8 + + + MAX ( + + 21 ) / + NULLIF ( + NULLIF ( + + 82, - 76 + 11 ), + 84 ) ) * MIN ( + 83 ) * + 13 + - - 21 + 86 AS col0
----
101533

onlyif mysql # aggregate syntax: 
query I rowsort label-6586
SELECT DISTINCT - 93 * - 41 * - COUNT( * ) AS col1
----
-3813

skipif mysql # not compatible
query I rowsort label-6586
SELECT DISTINCT - 93 * - 41 * - COUNT ( * ) AS col1
----
-3813

query I rowsort
SELECT + + 55 * 25 * + COALESCE ( - 20, + + 86, 86 )
----
-27500

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

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

query I rowsort
SELECT ( - + 21 ) * - ( + - 18 ) + - + 17 AS col1
----
-395

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6590
SELECT DISTINCT - COUNT( * ) + + + 37 + + 2 AS col2, CAST( NULL AS DECIMAL )
----
38
NULL

skipif mysql # not compatible
query II rowsort label-6590
SELECT DISTINCT - COUNT ( * ) + + + 37 + + 2 AS col2, CAST ( NULL AS REAL )
----
38
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6591
SELECT DISTINCT - COALESCE ( - 71, + 29, CAST( NULL AS SIGNED ) ) + 17 AS col0
----
88

skipif mysql # not compatible
query I rowsort label-6591
SELECT DISTINCT - COALESCE ( - 71, + 29, CAST ( NULL AS INTEGER ) ) + 17 AS col0
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-6592
SELECT DISTINCT - 73 DIV - 41
----
1

skipif mysql # not compatible
query I rowsort label-6592
SELECT DISTINCT - 73 / - 41
----
1

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6595
SELECT - 27 * + COUNT ( 33 ) AS col0
----
-27

query I rowsort
SELECT ALL - 55 * + + 16
----
-880

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

skipif mysql # not compatible
query I rowsort label-6597
SELECT ALL + COUNT ( * ) + + 78 + + COUNT ( * ) * + - 17 col0
----
62

query I rowsort
SELECT DISTINCT - 46 - + - 17 AS col1
----
-29

query I rowsort
SELECT - 74 + - 15 + + 60
----
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-6600
SELECT - 79 DIV + 89 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6600
SELECT - 79 / + 89 AS col1
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6602
SELECT + 97 + - NULLIF ( - 15, COUNT( * ) ) AS col2
----
112

skipif mysql # not compatible
query I rowsort label-6602
SELECT + 97 + - NULLIF ( - 15, COUNT ( * ) ) AS col2
----
112

query I rowsort
SELECT + 56 * + 93
----
5208

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6606
SELECT ALL NULLIF ( - 32, - CAST( - 34 AS SIGNED ) )
----
-32

skipif mysql # not compatible
query I rowsort label-6606
SELECT ALL NULLIF ( - 32, - CAST ( - 34 AS INTEGER ) )
----
-32

query I rowsort
SELECT - 20 - 78 col1
----
-98

query I rowsort
SELECT DISTINCT ( + - 28 ) col1
----
-28

query I rowsort
SELECT + + 71 * - - 97 * + ( + 25 ) AS col2
----
172175

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6610
SELECT - 83 * - CAST( NULL AS SIGNED ) / - 89 AS col2, - 88 * - 65 AS col1
----
NULL
5720

skipif mysql # not compatible
query II rowsort label-6610
SELECT - 83 * - CAST ( NULL AS INTEGER ) / - 89 AS col2, - 88 * - 65 AS col1
----
NULL
5720

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

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

query I rowsort
SELECT DISTINCT + 33 * - 20 AS col0
----
-660

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6613
SELECT - 10 DIV - 87 * - 24 + + NULLIF ( - 82, + COUNT( * ) ) * - 17
----
1394

skipif mysql # not compatible
query I rowsort label-6613
SELECT - 10 / - 87 * - 24 + + NULLIF ( - 82, + COUNT ( * ) ) * - 17
----
1394

onlyif mysql # DIV for integer division: 
query I rowsort label-6614
SELECT ALL - 41 * + 65 * - 28 + ( + - 25 ) DIV + 65 * 56
----
74620

skipif mysql # not compatible
query I rowsort label-6614
SELECT ALL - 41 * + 65 * - 28 + ( + - 25 ) / + 65 * 56
----
74620

onlyif mysql # aggregate syntax: 
query I rowsort label-6615
SELECT ALL 78 * + 81 + - + 47 + + MIN( - 59 ) + + 7
----
6219

skipif mysql # not compatible
query I rowsort label-6615
SELECT ALL 78 * + 81 + - + 47 + + MIN ( - 59 ) + + 7
----
6219

query I rowsort
SELECT DISTINCT 15 * + - 46 + + 21 - - 79 - 44 AS col1
----
-634

query II rowsort
SELECT + 30, - 90 AS col0
----
30
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6618
SELECT + 12 + - CASE 42 WHEN - + SUM( + CAST( NULL AS SIGNED ) ) THEN NULL WHEN - ( COUNT( * ) ) THEN - MAX( ALL + 82 ) END / - + CAST( NULL AS SIGNED ) col0, - CASE + CAST( + 50 AS SIGNED ) WHEN + 45 THEN NULL WHEN - ( + - 6 ) THEN 51 WHEN + 24 * 0 THEN SUM( - - 71 ) * + 19 + + 36 + 40 + 1 + - 72 + - 71 END AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6618
SELECT + 12 + - CASE 42 WHEN - + SUM ( + CAST ( NULL AS INTEGER ) ) THEN NULL WHEN - ( COUNT ( * ) ) THEN - MAX ( ALL + 82 ) END / - + CAST ( NULL AS INTEGER ) col0, - CASE + CAST ( + 50 AS INTEGER ) WHEN + 45 THEN NULL WHEN - ( + - 6 ) THEN 51 WHEN + 24 * 0 THEN SUM ( - - 71 ) * + 19 + + 36 + 40 + 1 + - 72 + - 71 END AS col0
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6619
SELECT + SUM( ALL + 30 ) * - + 43 AS col0
----
-1290

skipif mysql # not compatible
query I rowsort label-6619
SELECT + SUM ( ALL + 30 ) * - + 43 AS col0
----
-1290

onlyif mysql # aggregate syntax: 
query I rowsort label-6620
SELECT + 94 * + + SUM( - 34 ) + 3 col2
----
-3193

skipif mysql # not compatible
query I rowsort label-6620
SELECT + 94 * + + SUM ( - 34 ) + 3 col2
----
-3193

query I rowsort
SELECT + 95 * + 82
----
7790

query II rowsort
SELECT + + 80, 98 AS col0
----
80
98

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

skipif mysql # not compatible
query I rowsort label-6623
SELECT + CAST ( NULL AS INTEGER ) + - - 63 - + COUNT ( DISTINCT 7 ) * - 61 * + 3 col1
----
NULL

query I rowsort
SELECT DISTINCT 57 * - - 26 AS col1
----
1482

query I rowsort
SELECT ALL 74 * + 18 - - 13
----
1345

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6626
SELECT 5 * - - CASE - - 78 WHEN + 61 * + MAX( DISTINCT - 89 ) THEN + CAST( NULL AS SIGNED ) WHEN + 60 THEN NULL ELSE NULL END + - 27
----
NULL

skipif mysql # not compatible
query I rowsort label-6626
SELECT 5 * - - CASE - - 78 WHEN + 61 * + MAX ( DISTINCT - 89 ) THEN + CAST ( NULL AS INTEGER ) WHEN + 60 THEN NULL ELSE NULL END + - 27
----
NULL

query II rowsort
SELECT ALL 9, 7 col2
----
9
7

query I rowsort
SELECT DISTINCT 51 - - - 89 AS col1
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6629
SELECT 20 - CAST( + - 30 AS SIGNED ) AS col1
----
50

skipif mysql # not compatible
query I rowsort label-6629
SELECT 20 - CAST ( + - 30 AS INTEGER ) AS col1
----
50

query II rowsort
SELECT ALL 66 col0, - 4 AS col1
----
66
-4

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

query I rowsort
SELECT 0 * + + 77 * - + 6 AS col2
----
0

query I rowsort
SELECT 36 * + 64 AS col1
----
2304

query I rowsort
SELECT 20 + + NULLIF ( - 48, + 77 ) + + 30
----
2

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6635
SELECT ALL - SUM( - 1 ) * + COUNT( * ) * + NULLIF ( 72, CAST( NULL AS DECIMAL ) ) + + 8 * - 96 + - 51 * - 5 * + + 70
----
17154

skipif mysql # not compatible
query I rowsort label-6635
SELECT ALL - SUM ( - 1 ) * + COUNT ( * ) * + NULLIF ( 72, CAST ( NULL AS REAL ) ) + + 8 * - 96 + - 51 * - 5 * + + 70
----
17154

query I rowsort
SELECT 26 * 74
----
1924

query I rowsort
SELECT ALL 43 * 33 col2
----
1419

query II rowsort
SELECT 22 AS col2, 97 AS col0
----
22
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6639
SELECT ALL - ( + MIN( ( - 15 ) ) ) * - CAST( NULL AS SIGNED ) - - ( 63 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6639
SELECT ALL - ( + MIN ( ( - 15 ) ) ) * - CAST ( NULL AS INTEGER ) - - ( 63 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6640
SELECT DISTINCT + MIN( + 93 ) * - 17 AS col2
----
-1581

skipif mysql # not compatible
query I rowsort label-6640
SELECT DISTINCT + MIN ( + 93 ) * - 17 AS col2
----
-1581

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

skipif mysql # not compatible
query I rowsort label-6641
SELECT - COUNT ( + 37 ) + + - 78 AS col0
----
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6642
SELECT - COUNT( * ) + - + CAST( + 11 AS SIGNED ) AS col1
----
-12

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

query I rowsort
SELECT ALL - 4 + 43 + - 7 AS col2
----
32

query I rowsort
SELECT ALL + + 17 + 12
----
29

query I rowsort
SELECT - 9 * + ( 9 ) + + 43 + - 51 + - 27 * - 26 * + - 93 AS col2
----
-65375

onlyif mysql # aggregate syntax: 
query I rowsort label-6646
SELECT DISTINCT + ( + ( COUNT( * ) ) ) + 92
----
93

skipif mysql # not compatible
query I rowsort label-6646
SELECT DISTINCT + ( + ( COUNT ( * ) ) ) + 92
----
93

query I rowsort
SELECT DISTINCT - - 88 + 3 AS col1
----
91

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

skipif mysql # not compatible
query I rowsort label-6648
SELECT ALL - 10 + + CAST ( + 61 AS INTEGER )
----
51

query I rowsort
SELECT ALL 83 + + 13
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-6650
SELECT 69 + + + 68 + 52 * - ( + 91 ) * + + MAX( ALL 72 ) * + 60 - - 40 AS col2, 47
----
-20442063
47

skipif mysql # not compatible
query II rowsort label-6650
SELECT 69 + + + 68 + 52 * - ( + 91 ) * + + MAX ( ALL 72 ) * + 60 - - 40 AS col2, 47
----
-20442063
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6651
SELECT DISTINCT - - 13 * - CASE 18 WHEN - CASE + AVG ( ALL + 30 ) WHEN - 75 + + - 88 / 32 THEN NULL WHEN - CASE - CAST( NULL AS SIGNED ) WHEN MAX( DISTINCT - 10 ) THEN 54 * + NULLIF ( - - 18, + 55 * 97 + - + NULLIF ( - + CASE 17 WHEN 27 THEN 4 * + ( - 98 ) + - 77 / 41 END, 62 * 7 * + - 26 + 25 ) * + COUNT( * ) + + 85 * + COUNT( * ) ) WHEN - COUNT( * ) THEN NULL ELSE 1 END THEN NULL ELSE CASE WHEN NOT - CAST( NULL AS SIGNED ) <> - 98 THEN + COALESCE ( 41, 80 ) + + 71 * - COUNT( * ) END END THEN + 60 * COUNT( * ) + 38 WHEN + 76 * - 39 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6651
SELECT DISTINCT - - 13 * - CASE 18 WHEN - CASE + AVG ( ALL + 30 ) WHEN - 75 + + - 88 / 32 THEN NULL WHEN - CASE - CAST ( NULL AS INTEGER ) WHEN MAX ( DISTINCT - 10 ) THEN 54 * + NULLIF ( - - 18, + 55 * 97 + - + NULLIF ( - + CASE 17 WHEN 27 THEN 4 * + ( - 98 ) + - 77 / 41 END, 62 * 7 * + - 26 + 25 ) * + COUNT ( * ) + + 85 * + COUNT ( * ) ) WHEN - COUNT ( * ) THEN NULL ELSE 1 END THEN NULL ELSE CASE WHEN NOT - CAST ( NULL AS INTEGER ) <> - 98 THEN + COALESCE ( 41, 80 ) + + 71 * - COUNT ( * ) END END THEN + 60 * COUNT ( * ) + 38 WHEN + 76 * - 39 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6652
SELECT + 34 * + NULLIF ( - MAX( ALL - 63 ), + COUNT( * ) ) - + - 14 / ( - AVG ( DISTINCT 54 ) ) / - - CAST( NULL AS SIGNED ) + - - 71 + 2
----
NULL

skipif mysql # not compatible
query I rowsort label-6652
SELECT + 34 * + NULLIF ( - MAX ( ALL - 63 ), + COUNT ( * ) ) - + - 14 / ( - AVG ( DISTINCT 54 ) ) / - - CAST ( NULL AS INTEGER ) + - - 71 + 2
----
NULL

query I rowsort
SELECT ALL + 27 + + 68 * + 42 AS col0
----
2883

query I rowsort
SELECT ( + 86 ) * ( + + 25 )
----
2150

onlyif mysql # aggregate syntax: 
query I rowsort label-6655
SELECT ALL - MIN( DISTINCT 50 ) + + 80
----
30

skipif mysql # not compatible
query I rowsort label-6655
SELECT ALL - MIN ( DISTINCT 50 ) + + 80
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-6656
SELECT + COALESCE ( 92, - + 18 * COUNT( * ) ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-6656
SELECT + COALESCE ( 92, - + 18 * COUNT ( * ) ) AS col2
----
92

query I rowsort
SELECT ALL - NULLIF ( - 16, + 99 )
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-6658
SELECT 85 DIV - 97 * + + 87
----
0

skipif mysql # not compatible
query I rowsort label-6658
SELECT 85 / - 97 * + + 87
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6659
SELECT ALL + 0 - 21 AS col0, 36 + + COUNT( * ) + - 24 + - 0 * - + 19 AS col2
----
-21
13

skipif mysql # not compatible
query II rowsort label-6659
SELECT ALL + 0 - 21 AS col0, 36 + + COUNT ( * ) + - 24 + - 0 * - + 19 AS col2
----
-21
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6660
SELECT ALL 10 DIV COUNT( * ), + ( - - 74 ) AS col2
----
10
74

skipif mysql # not compatible
query II rowsort label-6660
SELECT ALL 10 / COUNT ( * ), + ( - - 74 ) AS col2
----
10
74

onlyif mysql # aggregate syntax: 
query I rowsort label-6661
SELECT DISTINCT COUNT( * ) * 68 * - - 73
----
4964

skipif mysql # not compatible
query I rowsort label-6661
SELECT DISTINCT COUNT ( * ) * 68 * - - 73
----
4964

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6662
SELECT COUNT( * ) DIV + 97 col1
----
0

skipif mysql # not compatible
query I rowsort label-6662
SELECT COUNT ( * ) / + 97 col1
----
0

query I rowsort
SELECT ALL 38 * - 32 * + + COALESCE ( - + 35, + - 46 )
----
42560

query I rowsort
SELECT ALL 56 * + ( - + 1 )
----
-56

query I rowsort
SELECT ALL 2 * 90 AS col1
----
180

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6667
SELECT COALESCE ( + COUNT( * ), - 19 * - 73 * + 41 * COUNT( * ), 14 * + 18 + - COUNT( * ) - 60, + - MIN( ALL - 19 ) * 80 ) + + 28 * + 3
----
85

skipif mysql # not compatible
query I rowsort label-6667
SELECT COALESCE ( + COUNT ( * ), - 19 * - 73 * + 41 * COUNT ( * ), 14 * + 18 + - COUNT ( * ) - 60, + - MIN ( ALL - 19 ) * 80 ) + + 28 * + 3
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-6668
SELECT COUNT( * ) + + COUNT( * ) * 33 + 77 AS col1
----
111

skipif mysql # not compatible
query I rowsort label-6668
SELECT COUNT ( * ) + + COUNT ( * ) * 33 + 77 AS col1
----
111

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6669
SELECT DISTINCT + 33 + + 63 * + ( CASE + COUNT( * ) WHEN - 5 + + 33 + CAST( NULL AS SIGNED ) + - - 8 + - - NULLIF ( + 75, - - COUNT( * ) + 10 - + - 3 + - COALESCE ( + 26, COUNT( * ), + 11 ) - - 24 * 18 * SUM( 90 ) ) THEN + + 68 END ) AS col1, - 48 + - ( ( 34 ) )
----
NULL
-82

skipif mysql # not compatible
query II rowsort label-6669
SELECT DISTINCT + 33 + + 63 * + ( CASE + COUNT ( * ) WHEN - 5 + + 33 + CAST ( NULL AS INTEGER ) + - - 8 + - - NULLIF ( + 75, - - COUNT ( * ) + 10 - + - 3 + - COALESCE ( + 26, COUNT ( * ), + 11 ) - - 24 * 18 * SUM ( 90 ) ) THEN + + 68 END ) AS col1, - 48 + - ( ( 34 ) )
----
NULL
-82

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

query I rowsort
SELECT ALL + + 90 + + - 90 AS col0
----
0

query I rowsort
SELECT - 14 * 66 - 87 AS col1
----
-1011

onlyif mysql # aggregate syntax: 
query II rowsort label-6673
SELECT DISTINCT - ( - COUNT( * ) ) AS col0, + 14 + - + COALESCE ( + + 49, + 45, MIN( ALL 24 ) ) * COUNT( * ) AS col1
----
1
-35

skipif mysql # not compatible
query II rowsort label-6673
SELECT DISTINCT - ( - COUNT ( * ) ) AS col0, + 14 + - + COALESCE ( + + 49, + 45, MIN ( ALL 24 ) ) * COUNT ( * ) AS col1
----
1
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6674
SELECT ALL + 68 * + - 42 + + CAST( + - COUNT( * ) AS SIGNED ) * + + NULLIF ( 84, 91 + + - 39 * + 53 * + - 88 ) + - ( + 32 ) * + - 49 AS col1
----
-1372

skipif mysql # not compatible
query I rowsort label-6674
SELECT ALL + 68 * + - 42 + + CAST ( + - COUNT ( * ) AS INTEGER ) * + + NULLIF ( 84, 91 + + - 39 * + 53 * + - 88 ) + - ( + 32 ) * + - 49 AS col1
----
-1372

query I rowsort
SELECT ALL - + 11 * 56
----
-616

onlyif mysql # aggregate syntax: 
query I rowsort label-6676
SELECT DISTINCT 48 * - + COUNT( * ) + - - NULLIF ( + 76, + 90 + + 57 / 75 ) * + + 49 * 29 + 31 col2
----
107979

skipif mysql # not compatible
query I rowsort label-6676
SELECT DISTINCT 48 * - + COUNT ( * ) + - - NULLIF ( + 76, + 90 + + 57 / 75 ) * + + 49 * 29 + 31 col2
----
107979

query I rowsort
SELECT 63 * 63 * 75 AS col0
----
297675

query I rowsort
SELECT ALL - 10 * + 15 * 66 * + + 61 - - - 53
----
-603953

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6680
SELECT ALL - 21 * + 12 - - 53 + CAST( NULL AS SIGNED ) * + 0 * 41 * + 42 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6680
SELECT ALL - 21 * + 12 - - 53 + CAST ( NULL AS INTEGER ) * + 0 * 41 * + 42 col1
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6682
SELECT - CAST( ( 15 ) AS SIGNED ) + 18 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-6682
SELECT - CAST ( ( 15 ) AS INTEGER ) + 18 AS col0
----
3

query I rowsort
SELECT - 59 * - 77 - + + ( 61 ) AS col1
----
4482

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6684
SELECT - 63 * - - 39 * - 4 * + + 37 DIV - COUNT( * )
----
-363636

skipif mysql # not compatible
query I rowsort label-6684
SELECT - 63 * - - 39 * - 4 * + + 37 / - COUNT ( * )
----
-363636

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

skipif mysql # not compatible
query I rowsort label-6685
SELECT MIN ( + 12 )
----
12

query II rowsort
SELECT ALL + 65 col2, - 86 * - - 36 AS col0
----
65
-3096

onlyif mysql # aggregate syntax: 
query I rowsort label-6687
SELECT - 27 * + - MAX( - ( 99 ) )
----
-2673

skipif mysql # not compatible
query I rowsort label-6687
SELECT - 27 * + - MAX ( - ( 99 ) )
----
-2673

query II rowsort
SELECT ALL 65 col0, 30 AS col1
----
65
30

query I rowsort
SELECT - 21 + 49 AS col0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-6690
SELECT ALL COALESCE ( ( - 32 ), - 48 + + - COUNT( * ) )
----
-32

skipif mysql # not compatible
query I rowsort label-6690
SELECT ALL COALESCE ( ( - 32 ), - 48 + + - COUNT ( * ) )
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-6691
SELECT ALL CASE - 32 WHEN + 43 THEN MAX( 67 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6691
SELECT ALL CASE - 32 WHEN + 43 THEN MAX ( 67 ) ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6692
SELECT ALL 8 DIV - 10 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6692
SELECT ALL 8 / - 10 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6693
SELECT - MAX( 74 ) AS col1
----
-74

skipif mysql # not compatible
query I rowsort label-6693
SELECT - MAX ( 74 ) AS col1
----
-74

query I rowsort
SELECT - 85 + 79 AS col1
----
-6

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6696
SELECT ALL 31 AS col2, - ( - COUNT( * ) ) * SUM( ALL - + 0 ) + + ( - - MAX( DISTINCT + NULLIF ( - 49, 87 * + 64 ) ) ) + + + 98 * + SUM( ALL 36 ) AS col2
----
31
3479

skipif mysql # not compatible
query II rowsort label-6696
SELECT ALL 31 AS col2, - ( - COUNT ( * ) ) * SUM ( ALL - + 0 ) + + ( - - MAX ( DISTINCT + NULLIF ( - 49, 87 * + 64 ) ) ) + + + 98 * + SUM ( ALL 36 ) AS col2
----
31
3479

query I rowsort
SELECT - 2 * + 16 AS col2
----
-32

query I rowsort
SELECT - 61 * + 17 AS col2
----
-1037

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6699
SELECT DISTINCT CAST( - - 87 AS DECIMAL ) + - CAST( NULL AS SIGNED ) / + + 83
----
NULL

skipif mysql # not compatible
query I rowsort label-6699
SELECT DISTINCT CAST ( - - 87 AS REAL ) + - CAST ( NULL AS INTEGER ) / + + 83
----
NULL

query I rowsort
SELECT ALL 49 + + + 9 AS col0
----
58

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

query I rowsort
SELECT + + 34 + + 59 + + 87 AS col0
----
180

query I rowsort
SELECT + 76 + 90 AS col1
----
166

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6704
SELECT DISTINCT - COUNT( * ) col0, 55 - + + CAST( + 79 AS SIGNED ) + + MAX( ( - - 0 ) ) AS col0
----
-1
-24

skipif mysql # not compatible
query II rowsort label-6704
SELECT DISTINCT - COUNT ( * ) col0, 55 - + + CAST ( + 79 AS INTEGER ) + + MAX ( ( - - 0 ) ) AS col0
----
-1
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-6705
SELECT + ( CASE - - 61 WHEN ( - 15 ) THEN + COALESCE ( 85, + - NULLIF ( + ( + 49 ), - - 12 ) * - AVG ( ALL 75 ), - - ( - 58 ) * - COUNT( * ) + - + 10, + AVG ( DISTINCT + - 54 ) * - 17 * + 98 * - - 55 + - + MIN( ALL + 11 ) ) WHEN 25 + - COUNT( * ) + - + 53 + 89 * - ( - + ( - MIN( - 94 ) ) ) * + 50 * 58 THEN NULL ELSE NULL END ) + - 81 * 39
----
NULL

skipif mysql # not compatible
query I rowsort label-6705
SELECT + ( CASE - - 61 WHEN ( - 15 ) THEN + COALESCE ( 85, + - NULLIF ( + ( + 49 ), - - 12 ) * - AVG ( ALL 75 ), - - ( - 58 ) * - COUNT ( * ) + - + 10, + AVG ( DISTINCT + - 54 ) * - 17 * + 98 * - - 55 + - + MIN ( ALL + 11 ) ) WHEN 25 + - COUNT ( * ) + - + 53 + 89 * - ( - + ( - MIN ( - 94 ) ) ) * + 50 * 58 THEN NULL ELSE NULL END ) + - 81 * 39
----
NULL

query II rowsort
SELECT ALL - 32, 44 + 30 * 87 AS col0
----
-32
2654

onlyif mysql # aggregate syntax: 
query I rowsort label-6707
SELECT + + COUNT( * ) + + NULLIF ( + 59, COUNT( * ) * - 72 + + + ( - 57 ) ) + + 53 + + + 15
----
128

skipif mysql # not compatible
query I rowsort label-6707
SELECT + + COUNT ( * ) + + NULLIF ( + 59, COUNT ( * ) * - 72 + + + ( - 57 ) ) + + 53 + + + 15
----
128

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

skipif mysql # not compatible
query I rowsort label-6708
SELECT + ( - - 17 ) * - 88 * - CAST ( NULL AS INTEGER )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6710
SELECT DISTINCT COUNT( * ) - - 36 col0
----
37

skipif mysql # not compatible
query I rowsort label-6710
SELECT DISTINCT COUNT ( * ) - - 36 col0
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-6711
SELECT ALL - 49 DIV - 33 - + 31 AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-6711
SELECT ALL - 49 / - 33 - + 31 AS col1
----
-30

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6714
SELECT DISTINCT + - COUNT ( * ) * 83 col2
----
-83

onlyif mysql # aggregate syntax: 
query II rowsort label-6715
SELECT ALL + - COUNT( * ), CASE COUNT( * ) WHEN 87 THEN 17 * - 72 END * 86 + - COUNT( * ) AS col0
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-6715
SELECT ALL + - COUNT ( * ), CASE COUNT ( * ) WHEN 87 THEN 17 * - 72 END * 86 + - COUNT ( * ) AS col0
----
-1
NULL

query II rowsort
SELECT ALL + 22 AS col1, - 3 AS col2
----
22
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-6717
SELECT ALL 89 DIV - 22
----
-4

skipif mysql # not compatible
query I rowsort label-6717
SELECT ALL 89 / - 22
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-6718
SELECT ALL + - COUNT( ALL - ( + - 83 ) ) * 34 * + - 55
----
1870

skipif mysql # not compatible
query I rowsort label-6718
SELECT ALL + - COUNT ( ALL - ( + - 83 ) ) * 34 * + - 55
----
1870

query I rowsort
SELECT DISTINCT - 34 * + + 91
----
-3094

query II rowsort
SELECT ALL + + 11 AS col2, - 80 + - 26
----
11
-106

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

query II rowsort
SELECT - 4 + 38 AS col2, - 62 AS col2
----
34
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-6723
SELECT - 63 DIV 96
----
0

skipif mysql # not compatible
query I rowsort label-6723
SELECT - 63 / 96
----
0

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6725
SELECT COALESCE ( - ( - + 97 ), + - 22, - - 98 * - 4 + - 14 + + - SUM( ALL - + 37 ) ) AS col2, - 41 + 69
----
97
28

skipif mysql # not compatible
query II rowsort label-6725
SELECT COALESCE ( - ( - + 97 ), + - 22, - - 98 * - 4 + - 14 + + - SUM ( ALL - + 37 ) ) AS col2, - 41 + 69
----
97
28

onlyif mysql # DIV for integer division: 
query I rowsort label-6726
SELECT - 27 DIV 77
----
0

skipif mysql # not compatible
query I rowsort label-6726
SELECT - 27 / 77
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6727
SELECT - 33 + - - COUNT( * ) + - - 61 - + 53 * - COUNT( * ) + + COUNT( * ) * + - 0 + - + COUNT( * ) AS col2
----
81

skipif mysql # not compatible
query I rowsort label-6727
SELECT - 33 + - - COUNT ( * ) + - - 61 - + 53 * - COUNT ( * ) + + COUNT ( * ) * + - 0 + - + COUNT ( * ) AS col2
----
81

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6728
SELECT DISTINCT 92 * + - CAST( NULL AS DECIMAL ) / + 57
----
NULL

skipif mysql # not compatible
query I rowsort label-6728
SELECT DISTINCT 92 * + - CAST ( NULL AS REAL ) / + 57
----
NULL

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

query I rowsort
SELECT DISTINCT + 83 * 89 AS col2
----
7387

query I rowsort
SELECT - 73 * - 96 * - - 32 col2
----
224256

query I rowsort
SELECT ALL + 74 * 97 + 60
----
7238

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6733
SELECT ALL + COUNT( * ) * + 15 + + CAST( + - COALESCE ( - + 22, + 96 ) AS SIGNED )
----
37

skipif mysql # not compatible
query I rowsort label-6733
SELECT ALL + COUNT ( * ) * + 15 + + CAST ( + - COALESCE ( - + 22, + 96 ) AS INTEGER )
----
37

query I rowsort
SELECT - COALESCE ( + 25, - + 47 ) AS col0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-6735
SELECT + NULLIF ( 47, + 33 * - 89 + - - 91 + COUNT( * ) ) * + 68 * 7 * - 29 AS col2
----
-648788

skipif mysql # not compatible
query I rowsort label-6735
SELECT + NULLIF ( 47, + 33 * - 89 + - - 91 + COUNT ( * ) ) * + 68 * 7 * - 29 AS col2
----
-648788

onlyif mysql # aggregate syntax: 
query I rowsort label-6736
SELECT ALL COUNT( * ) * 1 + + 21 + + + 0 AS col2
----
22

skipif mysql # not compatible
query I rowsort label-6736
SELECT ALL COUNT ( * ) * 1 + + 21 + + + 0 AS col2
----
22

query I rowsort
SELECT ALL + 66 * + 91
----
6006

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6738
SELECT DISTINCT + ( + 85 ) * CAST( NULL AS SIGNED ) + - COALESCE ( - - NULLIF ( + - 85, - ( + - 94 ) * - 84 * - 16 ), - 82 / - + SUM( ALL - - CAST( - 20 AS SIGNED ) ) + + 99 ) * + 48 + + 4 + - 37 + - - CAST( NULL AS SIGNED ) / - 39
----
NULL

skipif mysql # not compatible
query I rowsort label-6738
SELECT DISTINCT + ( + 85 ) * CAST ( NULL AS INTEGER ) + - COALESCE ( - - NULLIF ( + - 85, - ( + - 94 ) * - 84 * - 16 ), - 82 / - + SUM ( ALL - - CAST ( - 20 AS INTEGER ) ) + + 99 ) * + 48 + + 4 + - 37 + - - CAST ( NULL AS INTEGER ) / - 39
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6739
SELECT - - COUNT( * ) + - ( + 76 ) AS col1
----
-75

skipif mysql # not compatible
query I rowsort label-6739
SELECT - - COUNT ( * ) + - ( + 76 ) AS col1
----
-75

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

skipif mysql # not compatible
query I rowsort label-6740
SELECT DISTINCT - COUNT ( * ) + + ( - - 77 ) AS col2
----
76

query I rowsort
SELECT DISTINCT - 25 + + + 99 * + - 40 * 14 + + 50
----
-55415

onlyif mysql # DIV for integer division: 
query I rowsort label-6742
SELECT DISTINCT + 50 + - 2 DIV - 1 AS col1
----
52

skipif mysql # not compatible
query I rowsort label-6742
SELECT DISTINCT + 50 + - 2 / - 1 AS col1
----
52

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

query I rowsort
SELECT - - 17 + + + 57 AS col2
----
74

query I rowsort
SELECT + + 11 * + 97 + - 20 AS col0
----
1047

onlyif mysql # aggregate syntax: 
query I rowsort label-6746
SELECT + - 37 * + - NULLIF ( + + 21, - CASE 81 WHEN - - 85 * 43 THEN NULL ELSE + + COUNT( * ) END ) AS col1
----
777

skipif mysql # not compatible
query I rowsort label-6746
SELECT + - 37 * + - NULLIF ( + + 21, - CASE 81 WHEN - - 85 * 43 THEN NULL ELSE + + COUNT ( * ) END ) AS col1
----
777

query I rowsort
SELECT + 32 + - 69 col1
----
-37

query I rowsort
SELECT + 46 * 66 AS col2
----
3036

query I rowsort
SELECT ALL ( + - 40 ) * 11 AS col2
----
-440

query I rowsort
SELECT DISTINCT - 29 - 6 AS col0
----
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-6751
SELECT DISTINCT + 48 - - COUNT( * ) AS col0, - 5 AS col1
----
49
-5

skipif mysql # not compatible
query II rowsort label-6751
SELECT DISTINCT + 48 - - COUNT ( * ) AS col0, - 5 AS col1
----
49
-5

query I rowsort
SELECT DISTINCT 78 * + ( - 4 )
----
-312

onlyif mysql # aggregate syntax: 
query I rowsort label-6753
SELECT ALL - MIN( - - 28 ) col0
----
-28

skipif mysql # not compatible
query I rowsort label-6753
SELECT ALL - MIN ( - - 28 ) col0
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6754
SELECT + 26 * CAST( - 79 AS SIGNED )
----
-2054

skipif mysql # not compatible
query I rowsort label-6754
SELECT + 26 * CAST ( - 79 AS INTEGER )
----
-2054

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6755
SELECT ALL + CAST( NULL AS SIGNED ) * + COUNT( * ) * + 78 * - 62 AS col0, + 53 * - 30 + + 53 AS col2
----
NULL
-1537

skipif mysql # not compatible
query II rowsort label-6755
SELECT ALL + CAST ( NULL AS INTEGER ) * + COUNT ( * ) * + 78 * - 62 AS col0, + 53 * - 30 + + 53 AS col2
----
NULL
-1537

query I rowsort
SELECT - 89 * - 86 - - 28
----
7682

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

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

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

skipif mysql # not compatible
query I rowsort label-6758
SELECT ALL COUNT ( * ) + + + 59 AS col1
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-6759
SELECT COUNT( * ) - + 44
----
-43

skipif mysql # not compatible
query I rowsort label-6759
SELECT COUNT ( * ) - + 44
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-6760
SELECT ALL - COUNT( 95 ) * - 26
----
26

skipif mysql # not compatible
query I rowsort label-6760
SELECT ALL - COUNT ( 95 ) * - 26
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6761
SELECT DISTINCT - 52 * - + CASE + 44 WHEN 22 * - 38 THEN - - 75 + + SUM( - CAST( - 33 AS SIGNED ) ) - + 12 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6761
SELECT DISTINCT - 52 * - + CASE + 44 WHEN 22 * - 38 THEN - - 75 + + SUM ( - CAST ( - 33 AS INTEGER ) ) - + 12 END col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6762
SELECT 39 DIV - 70
----
0

skipif mysql # not compatible
query I rowsort label-6762
SELECT 39 / - 70
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6763
SELECT ALL 79 + 5 DIV 50 DIV 89
----
79

skipif mysql # not compatible
query I rowsort label-6763
SELECT ALL 79 + 5 / 50 / 89
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-6764
SELECT COUNT( * ) * - 90 - 34 col1
----
-124

skipif mysql # not compatible
query I rowsort label-6764
SELECT COUNT ( * ) * - 90 - 34 col1
----
-124

query I rowsort
SELECT - COALESCE ( + 58, + 61 * ( - - 29 ) ) * + - 47 + - 4
----
2722

onlyif mysql # aggregate syntax: 
query II rowsort label-6766
SELECT ALL + ( COUNT( * ) ) + - COUNT( * ), - ( - - 3 ) col1
----
0
-3

skipif mysql # not compatible
query II rowsort label-6766
SELECT ALL + ( COUNT ( * ) ) + - COUNT ( * ), - ( - - 3 ) col1
----
0
-3

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

skipif mysql # not compatible
query I rowsort label-6767
SELECT 64 / + 40
----
1

query I rowsort
SELECT 35 * - + 80
----
-2800

onlyif mysql # aggregate syntax: 
query I rowsort label-6769
SELECT ALL + 80 + + 79 + SUM( - 21 ) * 39 * + - 76 - - 89 * - - 72 AS col2
----
68811

skipif mysql # not compatible
query I rowsort label-6769
SELECT ALL + 80 + + 79 + SUM ( - 21 ) * 39 * + - 76 - - 89 * - - 72 AS col2
----
68811

query I rowsort
SELECT ALL ( - 2 ) * 18 AS col0
----
-36

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6772
SELECT ALL COUNT( * ) + + 12
----
13

skipif mysql # not compatible
query I rowsort label-6772
SELECT ALL COUNT ( * ) + + 12
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-6773
SELECT 82 + - ( + 67 ) AS col2, COUNT( * ) * + 30
----
15
30

skipif mysql # not compatible
query II rowsort label-6773
SELECT 82 + - ( + 67 ) AS col2, COUNT ( * ) * + 30
----
15
30

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

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

query I rowsort
SELECT ( 81 ) col2
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6776
SELECT - - 59 AS col0, - CAST( NULL AS SIGNED )
----
59
NULL

skipif mysql # not compatible
query II rowsort label-6776
SELECT - - 59 AS col0, - CAST ( NULL AS INTEGER )
----
59
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6778
SELECT MIN( DISTINCT - - 33 ) * + 99
----
3267

skipif mysql # not compatible
query I rowsort label-6778
SELECT MIN ( DISTINCT - - 33 ) * + 99
----
3267

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

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

query I rowsort
SELECT 51 + + 44 - + 64
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-6781
SELECT DISTINCT - 27 * - COUNT( * ) * COUNT( * ) * + 70 AS col2
----
1890

skipif mysql # not compatible
query I rowsort label-6781
SELECT DISTINCT - 27 * - COUNT ( * ) * COUNT ( * ) * + 70 AS col2
----
1890

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6782
SELECT + ( - CASE 93 WHEN - MAX( ALL ( + 54 ) ) THEN NULL WHEN + CAST( NULL AS SIGNED ) + + 84 THEN - - COALESCE ( + 43, - - 51 + - 56 + 63 DIV + COUNT( * ) * 5 + - 75 + + - 63 - - 86 ) DIV - - 12 ELSE - + 31 END ) DIV + 97
----
0

skipif mysql # not compatible
query I rowsort label-6782
SELECT + ( - CASE 93 WHEN - MAX ( ALL ( + 54 ) ) THEN NULL WHEN + CAST ( NULL AS INTEGER ) + + 84 THEN - - COALESCE ( + 43, - - 51 + - 56 + 63 / + COUNT ( * ) * 5 + - 75 + + - 63 - - 86 ) / - - 12 ELSE - + 31 END ) / + 97
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6783
SELECT ALL - - 12 * 22 DIV - 56 AS col2, COUNT( * ) AS col0
----
-4
1

skipif mysql # not compatible
query II rowsort label-6783
SELECT ALL - - 12 * 22 / - 56 AS col2, COUNT ( * ) AS col0
----
-4
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6784
SELECT ALL + NULLIF ( - - COALESCE ( + - 49, + + 95, 18 + - - 13 + 84 * - 45 ), + + 69 + + 13 ) - + 22 + + 55 * - + CASE + + CASE - CAST( NULL AS SIGNED ) WHEN - 45 * - - 36 THEN NULL WHEN - COUNT( * ) THEN NULL ELSE - 3 / - 56 + 6 END WHEN + 72 THEN NULL WHEN - COALESCE ( 70, - 15 * - - 95 + 49 * + - ( - 78 ) + - + 2 * 55 * + 25 * + + AVG ( + COALESCE ( - 16, - 50, 35 ) ) ) THEN 80 END / ( COALESCE ( - 93, - 54 * - 60, 5 ) * 8 ) + 4 / 37
----
NULL

skipif mysql # not compatible
query I rowsort label-6784
SELECT ALL + NULLIF ( - - COALESCE ( + - 49, + + 95, 18 + - - 13 + 84 * - 45 ), + + 69 + + 13 ) - + 22 + + 55 * - + CASE + + CASE - CAST ( NULL AS INTEGER ) WHEN - 45 * - - 36 THEN NULL WHEN - COUNT ( * ) THEN NULL ELSE - 3 / - 56 + 6 END WHEN + 72 THEN NULL WHEN - COALESCE ( 70, - 15 * - - 95 + 49 * + - ( - 78 ) + - + 2 * 55 * + 25 * + + AVG ( + COALESCE ( - 16, - 50, 35 ) ) ) THEN 80 END / ( COALESCE ( - 93, - 54 * - 60, 5 ) * 8 ) + 4 / 37
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6785
SELECT 8 / + 49 * CAST( NULL AS SIGNED ) * + 46 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6785
SELECT 8 / + 49 * CAST ( NULL AS INTEGER ) * + 46 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6786
SELECT DISTINCT 62 AS col2, - 36 * - MIN( ALL + 71 ) AS col1
----
62
2556

skipif mysql # not compatible
query II rowsort label-6786
SELECT DISTINCT 62 AS col2, - 36 * - MIN ( ALL + 71 ) AS col1
----
62
2556

onlyif mysql # aggregate syntax: 
query I rowsort label-6787
SELECT COUNT( * ) + + COALESCE ( + - 36, 79 ) - 0 * + - MAX( ALL 50 ) AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-6787
SELECT COUNT ( * ) + + COALESCE ( + - 36, 79 ) - 0 * + - MAX ( ALL 50 ) AS col1
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-6788
SELECT 0 + COALESCE ( COUNT( * ), - 14, - - 62 * 85 + + COALESCE ( + + COUNT( * ), - - 5, 67 ) ) + - + 6 * COUNT( * )
----
-5

skipif mysql # not compatible
query I rowsort label-6788
SELECT 0 + COALESCE ( COUNT ( * ), - 14, - - 62 * 85 + + COALESCE ( + + COUNT ( * ), - - 5, 67 ) ) + - + 6 * COUNT ( * )
----
-5

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6790
SELECT 87 DIV + + 5 AS col1
----
17

skipif mysql # not compatible
query I rowsort label-6790
SELECT 87 / + + 5 AS col1
----
17

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6792
SELECT DISTINCT SUM( + 65 ) * + 44
----
2860

skipif mysql # not compatible
query I rowsort label-6792
SELECT DISTINCT SUM ( + 65 ) * + 44
----
2860

query I rowsort
SELECT ALL ( 23 ) + 96 - + 76 AS col0
----
43

onlyif mysql # DIV for integer division: 
query I rowsort label-6794
SELECT 10 DIV + + 97 + + 6 AS col1
----
6

skipif mysql # not compatible
query I rowsort label-6794
SELECT 10 / + + 97 + + 6 AS col1
----
6

query II rowsort
SELECT ALL 92 * + 43 AS col1, + 43
----
3956
43

query I rowsort
SELECT ALL - 11 + + 94 AS col0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-6797
SELECT 19 * - COUNT( * ) * - - 17 col1
----
-323

skipif mysql # not compatible
query I rowsort label-6797
SELECT 19 * - COUNT ( * ) * - - 17 col1
----
-323

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6798
SELECT COUNT( * ) * - SUM( - + 84 ) * - - 2 * + 42 DIV + 7 + - 75
----
933

skipif mysql # not compatible
query I rowsort label-6798
SELECT COUNT ( * ) * - SUM ( - + 84 ) * - - 2 * + 42 / + 7 + - 75
----
933

onlyif mysql # aggregate syntax: 
query I rowsort label-6799
SELECT SUM( - 3 ) col2
----
-3

skipif mysql # not compatible
query I rowsort label-6799
SELECT SUM ( - 3 ) col2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6800
SELECT ( - 39 ) + SUM( ( + 37 ) ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-6800
SELECT ( - 39 ) + SUM ( ( + 37 ) ) AS col0
----
-2

query I rowsort
SELECT ALL 26 + - + 10 * - 41
----
436

query I rowsort
SELECT 45 * 63 * + + 8
----
22680

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

skipif mysql # not compatible
query I rowsort label-6803
SELECT + SUM ( - ( - - 30 ) )
----
-30

query II rowsort
SELECT ALL - - 39 col1, 37 + 62
----
39
99

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6807
SELECT + 31 * + - 86 + - 26 + ( + COUNT( * ) )
----
-2691

skipif mysql # not compatible
query I rowsort label-6807
SELECT + 31 * + - 86 + - 26 + ( + COUNT ( * ) )
----
-2691

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

skipif mysql # not compatible
query I rowsort label-6808
SELECT COUNT ( * ) * - 60 + 51 AS col0
----
-9

query I rowsort
SELECT ( - 93 ) * NULLIF ( - + 58, + 92 )
----
5394

onlyif mysql # aggregate syntax: 
query II rowsort label-6810
SELECT ALL - 94 col0, 83 * - COALESCE ( COUNT( * ), - COUNT( * ), - 79 + ( - ( - 94 ) ), - 78 ) * + 72 * - 52
----
-94
310752

skipif mysql # not compatible
query II rowsort label-6810
SELECT ALL - 94 col0, 83 * - COALESCE ( COUNT ( * ), - COUNT ( * ), - 79 + ( - ( - 94 ) ), - 78 ) * + 72 * - 52
----
-94
310752

onlyif mysql # aggregate syntax: 
query II rowsort label-6811
SELECT MIN( + + 92 ) - - - NULLIF ( CASE - + ( 93 ) WHEN + + 26 * + MIN( DISTINCT - 33 ) + + 27 THEN NULL ELSE + - 27 * 6 + - - 35 END, + 68 ), 57 * - - 7 * + + 2 AS col1
----
219
798

skipif mysql # not compatible
query II rowsort label-6811
SELECT MIN ( + + 92 ) - - - NULLIF ( CASE - + ( 93 ) WHEN + + 26 * + MIN ( DISTINCT - 33 ) + + 27 THEN NULL ELSE + - 27 * 6 + - - 35 END, + 68 ), 57 * - - 7 * + + 2 AS col1
----
219
798

query II rowsort
SELECT ALL 50 AS col2, - 75 + - + 38
----
50
-113

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

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

query I rowsort
SELECT - 81 * 50 AS col2
----
-4050

query II rowsort
SELECT ALL 34 AS col1, 16 * - 5
----
34
-80

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

query I rowsort
SELECT + 38 + + - 67 + - 27
----
-56

query I rowsort
SELECT + - 82 * - 79 AS col1
----
6478

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

skipif mysql # not compatible
query I rowsort label-6819
SELECT - SUM ( + ( + 65 ) )
----
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-6820
SELECT ALL + 96 + 1 DIV - + 20
----
96

skipif mysql # not compatible
query I rowsort label-6820
SELECT ALL + 96 + 1 / - + 20
----
96

query I rowsort
SELECT - 83 * 12 AS col2
----
-996

query I rowsort
SELECT DISTINCT + 8 * + - 43 + + ( - 17 ) col0
----
-361

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6823
SELECT 79 * + 93 DIV - COUNT( * ) + + + 26
----
-7321

skipif mysql # not compatible
query I rowsort label-6823
SELECT 79 * + 93 / - COUNT ( * ) + + + 26
----
-7321

query I rowsort
SELECT - 50 * - 96 AS col1
----
4800

query I rowsort
SELECT 43 / - 2 - 80 + + CASE 51 WHEN 62 + 79 THEN + 94 WHEN - 68 THEN NULL WHEN + + NULLIF ( - 91, + 64 * - 90 ) THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6826
SELECT ALL 26 * + MAX( ALL - - 53 ) * - 33 AS col0
----
-45474

skipif mysql # not compatible
query I rowsort label-6826
SELECT ALL 26 * + MAX ( ALL - - 53 ) * - 33 AS col0
----
-45474

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

skipif mysql # not compatible
query I rowsort label-6827
SELECT DISTINCT 44 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6828
SELECT ALL 20 * - 19 * - - COUNT( + - 68 ) AS col2
----
-380

skipif mysql # not compatible
query I rowsort label-6828
SELECT ALL 20 * - 19 * - - COUNT ( + - 68 ) AS col2
----
-380

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

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

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

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

query I rowsort
SELECT ALL 84 * - 22 AS col2
----
-1848

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6833
SELECT + 43 + - - NULLIF ( + SUM( + + 37 ), - COALESCE ( + 1, - 20 - - COUNT( * ) + + 90 * - 97 ) )
----
80

skipif mysql # not compatible
query I rowsort label-6833
SELECT + 43 + - - NULLIF ( + SUM ( + + 37 ), - COALESCE ( + 1, - 20 - - COUNT ( * ) + + 90 * - 97 ) )
----
80

query II rowsort
SELECT DISTINCT COALESCE ( + ( + 89 ), - 75 + + + ( - + 54 ) + - + 88 ), 10 + + 84 AS col2
----
89
94

onlyif mysql # aggregate syntax: 
query I rowsort label-6835
SELECT ALL SUM( - ( 74 ) ) * + 79 + + 58 AS col2
----
-5788

skipif mysql # not compatible
query I rowsort label-6835
SELECT ALL SUM ( - ( 74 ) ) * + 79 + + 58 AS col2
----
-5788

query I rowsort
SELECT + + ( + 68 ) * - 38 AS col0
----
-2584

query II rowsort
SELECT - 24 * + 45 + - 93 + - 6 + - 47 AS col0, + 33 + NULLIF ( - ( - 51 ), - 62 )
----
-1226
84

query I rowsort
SELECT - + 75 * - - 2 + 88 + - 54 * + + ( - 97 )
----
5176

onlyif mysql # DIV for integer division: 
query II rowsort label-6839
SELECT + 1 * - 2 AS col0, + 77 + - 69 + 22 DIV - NULLIF ( 99, - - 48 DIV 67 DIV 82 )
----
-2
8

skipif mysql # not compatible
query II rowsort label-6839
SELECT + 1 * - 2 AS col0, + 77 + - 69 + 22 / - NULLIF ( 99, - - 48 / 67 / 82 )
----
-2
8

query I rowsort
SELECT - + NULLIF ( - 42, + + 20 * + 84 ) AS col2
----
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6841
SELECT - NULLIF ( - 97, - - 8 * + + 2 * + + 27 + + 79 - + 30 ) * + COUNT( * ) * + + 87 * 63 + - + 39 * + 26 * COALESCE ( - COUNT( * ), - COUNT( * ), + ( COUNT( * ) ) DIV 41 + 72 )
----
532671

skipif mysql # not compatible
query I rowsort label-6841
SELECT - NULLIF ( - 97, - - 8 * + + 2 * + + 27 + + 79 - + 30 ) * + COUNT ( * ) * + + 87 * 63 + - + 39 * + 26 * COALESCE ( - COUNT ( * ), - COUNT ( * ), + ( COUNT ( * ) ) / 41 + 72 )
----
532671

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6842
SELECT ALL + 67 + + CAST( NULL AS SIGNED ) + - 20 + + 0
----
NULL

skipif mysql # not compatible
query I rowsort label-6842
SELECT ALL + 67 + + CAST ( NULL AS INTEGER ) + - 20 + + 0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6843
SELECT DISTINCT + + 19 DIV - - 66 - + 2 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-6843
SELECT DISTINCT + + 19 / - - 66 - + 2 AS col1
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6844
SELECT DISTINCT + CAST( - CASE 36 WHEN + + 78 THEN - - 79 WHEN 28 THEN + CAST( 40 AS SIGNED ) END AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6844
SELECT DISTINCT + CAST ( - CASE 36 WHEN + + 78 THEN - - 79 WHEN 28 THEN + CAST ( 40 AS INTEGER ) END AS INTEGER ) col2
----
NULL

query I rowsort
SELECT ALL ( 56 ) AS col1
----
56

query I rowsort
SELECT DISTINCT ( + 5 ) AS col1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6847
SELECT ALL + 11 + - + 37 * - ( - COUNT( * ) ) AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-6847
SELECT ALL + 11 + - + 37 * - ( - COUNT ( * ) ) AS col0
----
-26

query II rowsort
SELECT + 86 + 57 * + + 25 AS col1, - 94
----
1511
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-6849
SELECT - 92 - - NULLIF ( + COUNT( * ), - + MAX( ALL - 3 ) ) AS col2
----
-91

skipif mysql # not compatible
query I rowsort label-6849
SELECT - 92 - - NULLIF ( + COUNT ( * ), - + MAX ( ALL - 3 ) ) AS col2
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6850
SELECT DISTINCT - CAST( COUNT( * ) AS SIGNED ) + + 1 - - + 97 + 66 * 10 * 84
----
55537

skipif mysql # not compatible
query I rowsort label-6850
SELECT DISTINCT - CAST ( COUNT ( * ) AS INTEGER ) + + 1 - - + 97 + 66 * 10 * 84
----
55537

query I rowsort
SELECT ALL COALESCE ( - + 52, - + 31 ) AS col0
----
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6852
SELECT DISTINCT CASE - 79 WHEN - - COUNT( * ) THEN NULL WHEN COUNT( * ) / + CAST( - 86 AS SIGNED ) THEN 25 WHEN + ( + - 46 ) + 1 THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6852
SELECT DISTINCT CASE - 79 WHEN - - COUNT ( * ) THEN NULL WHEN COUNT ( * ) / + CAST ( - 86 AS INTEGER ) THEN 25 WHEN + ( + - 46 ) + 1 THEN NULL ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6853
SELECT DISTINCT ( SUM( 40 ) ) col1
----
40

skipif mysql # not compatible
query I rowsort label-6853
SELECT DISTINCT ( SUM ( 40 ) ) col1
----
40

query II rowsort
SELECT DISTINCT + 71 AS col1, 71 - - - 34 AS col0
----
71
37

onlyif mysql # aggregate syntax: 
query I rowsort label-6855
SELECT - COUNT( - 96 ) * - ( 77 ) AS col2
----
77

skipif mysql # not compatible
query I rowsort label-6855
SELECT - COUNT ( - 96 ) * - ( 77 ) AS col2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6856
SELECT ALL + NULLIF ( 87, - + 18 + + COUNT( * ) + - 43 * + 51 ) AS col2
----
87

skipif mysql # not compatible
query I rowsort label-6856
SELECT ALL + NULLIF ( 87, - + 18 + + COUNT ( * ) + - 43 * + 51 ) AS col2
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6857
SELECT - COUNT( * ) + 72 - + + 29 * CAST( - COALESCE ( 58, 26 + 74 / - 74 ) AS SIGNED ) AS col2
----
1753

skipif mysql # not compatible
query I rowsort label-6857
SELECT - COUNT ( * ) + 72 - + + 29 * CAST ( - COALESCE ( 58, 26 + 74 / - 74 ) AS INTEGER ) AS col2
----
1753

query I rowsort
SELECT ALL + 48 * + + 36 * + - 77 * + 8
----
-1064448

query I rowsort
SELECT DISTINCT + ( + - 33 ) col1
----
-33

query II rowsort
SELECT ALL + 35 AS col0, - 66
----
35
-66

query I rowsort
SELECT - 66 * 37 col1
----
-2442

onlyif mysql # aggregate syntax: 
query I rowsort label-6862
SELECT + CASE 0 WHEN + 55 + - COUNT( 79 ) * 93 THEN + - 67 WHEN - 93 THEN - + 90 - - 74 * - + 49 END + + + 0 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6862
SELECT + CASE 0 WHEN + 55 + - COUNT ( 79 ) * 93 THEN + - 67 WHEN - 93 THEN - + 90 - - 74 * - + 49 END + + + 0 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6863
SELECT ALL + - SUM( + 94 ) DIV 97 + + 93 AS col0
----
93

skipif mysql # not compatible
query I rowsort label-6863
SELECT ALL + - SUM ( + 94 ) / 97 + + 93 AS col0
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6864
SELECT ALL CAST( - - 25 AS SIGNED ) * - CASE ( + + COALESCE ( - MAX( + 21 ), 81, - 98 + - 13 ) ) WHEN COUNT( * ) THEN + 27 WHEN + - 71 THEN + 45 * + - 69 ELSE 55 / + 96 END * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6864
SELECT ALL CAST ( - - 25 AS INTEGER ) * - CASE ( + + COALESCE ( - MAX ( + 21 ), 81, - 98 + - 13 ) ) WHEN COUNT ( * ) THEN + 27 WHEN + - 71 THEN + 45 * + - 69 ELSE 55 / + 96 END * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6865
SELECT 36 * - MIN( DISTINCT + 5 ) AS col1, 27 AS col0
----
-180
27

skipif mysql # not compatible
query II rowsort label-6865
SELECT 36 * - MIN ( DISTINCT + 5 ) AS col1, 27 AS col0
----
-180
27

query I rowsort
SELECT ALL - 12 * 77 AS col1
----
-924

query I rowsort
SELECT DISTINCT 84 * + 23
----
1932

onlyif mysql # aggregate syntax: 
query I rowsort label-6868
SELECT + CASE - 92 WHEN + MIN( DISTINCT + - 0 ) - - - AVG ( - ( 32 ) ) + - 37 THEN + 87 END - + CASE - COUNT( ALL 46 ) WHEN + 83 THEN - 93 WHEN 6 * + 31 THEN NULL END * + 78 * + 39 + + 0 + - 56 + + COALESCE ( + 2, 65 ) / + 17 * + + 27 - 30 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6868
SELECT + CASE - 92 WHEN + MIN ( DISTINCT + - 0 ) - - - AVG ( - ( 32 ) ) + - 37 THEN + 87 END - + CASE - COUNT ( ALL 46 ) WHEN + 83 THEN - 93 WHEN 6 * + 31 THEN NULL END * + 78 * + 39 + + 0 + - 56 + + COALESCE ( + 2, 65 ) / + 17 * + + 27 - 30 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6869
SELECT ALL + + 93 * + - COALESCE ( + + COALESCE ( + + 27, - 98 + + 20 + NULLIF ( + + NULLIF ( + 73, + 97 ), 28 * + - ( + - COUNT( + 46 ) ) * + + ( + 78 ) + - - 6 - - - 54 ) + - + MAX( DISTINCT - 21 ) * - + 47, + 11 ), - 14 * 23 DIV + 27 ) AS col2
----
-2511

skipif mysql # not compatible
query I rowsort label-6869
SELECT ALL + + 93 * + - COALESCE ( + + COALESCE ( + + 27, - 98 + + 20 + NULLIF ( + + NULLIF ( + 73, + 97 ), 28 * + - ( + - COUNT ( + 46 ) ) * + + ( + 78 ) + - - 6 - - - 54 ) + - + MAX ( DISTINCT - 21 ) * - + 47, + 11 ), - 14 * 23 / + 27 ) AS col2
----
-2511

onlyif mysql # aggregate syntax: 
query I rowsort label-6870
SELECT 57 * SUM( + 34 ) - - - ( + 14 ) AS col1
----
1924

skipif mysql # not compatible
query I rowsort label-6870
SELECT 57 * SUM ( + 34 ) - - - ( + 14 ) AS col1
----
1924

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

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

query II rowsort
SELECT + - 47, 63 AS col0
----
-47
63

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6873
SELECT CAST( NULL AS DECIMAL ) * CASE 59 WHEN 45 * 61 * - 6 THEN NULL ELSE COUNT( * ) * + - 91 + - 53 + - 49 END / - 12 + - 5 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6873
SELECT CAST ( NULL AS REAL ) * CASE 59 WHEN 45 * 61 * - 6 THEN NULL ELSE COUNT ( * ) * + - 91 + - 53 + - 49 END / - 12 + - 5 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6874
SELECT DISTINCT + COALESCE ( - + COUNT( * ), + + 92 )
----
-1

skipif mysql # not compatible
query I rowsort label-6874
SELECT DISTINCT + COALESCE ( - + COUNT ( * ), + + 92 )
----
-1

query I rowsort
SELECT DISTINCT + + 50 + 77 AS col2
----
127

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6877
SELECT COALESCE ( - CAST( - COUNT( * ) AS SIGNED ), 27 + - ( - COALESCE ( - 1, ( + 68 ) + 34 ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-6877
SELECT COALESCE ( - CAST ( - COUNT ( * ) AS INTEGER ), 27 + - ( - COALESCE ( - 1, ( + 68 ) + 34 ) ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6878
SELECT ALL + COUNT( * ) + - - COALESCE ( COUNT( DISTINCT + + 11 ), - 34 )
----
2

skipif mysql # not compatible
query I rowsort label-6878
SELECT ALL + COUNT ( * ) + - - COALESCE ( COUNT ( DISTINCT + + 11 ), - 34 )
----
2

query I rowsort
SELECT DISTINCT 18 + - - 82
----
100

query I rowsort
SELECT 64 + + 18 + + 6
----
88

query I rowsort
SELECT 13 + + ( - 77 ) AS col1
----
-64

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

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

query I rowsort
SELECT ( + + 76 ) * + + 39
----
2964

query I rowsort
SELECT ALL 9 - 48 AS col1
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-6885
SELECT DISTINCT 80 * + 21 * - + COUNT( * )
----
-1680

skipif mysql # not compatible
query I rowsort label-6885
SELECT DISTINCT 80 * + 21 * - + COUNT ( * )
----
-1680

query I rowsort
SELECT 48 + + + 96 * 97
----
9360

onlyif mysql # DIV for integer division: 
query I rowsort label-6887
SELECT ALL - 89 DIV + 23
----
-3

skipif mysql # not compatible
query I rowsort label-6887
SELECT ALL - 89 / + 23
----
-3

query I rowsort
SELECT ( - ( 73 ) ) * - 16 + + 4 + - 88 - - 93 col2
----
1177

onlyif mysql # aggregate syntax: 
query II rowsort label-6889
SELECT ALL + 17 * 83, + ( - - 95 ) * - - 3 + - 92 + - MIN( - 18 ) AS col0
----
1411
211

skipif mysql # not compatible
query II rowsort label-6889
SELECT ALL + 17 * 83, + ( - - 95 ) * - - 3 + - 92 + - MIN ( - 18 ) AS col0
----
1411
211

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

skipif mysql # not compatible
query I rowsort label-6890
SELECT CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) * - - 99 col1
----
NULL

query I rowsort
SELECT DISTINCT 76 + 2 AS col0
----
78

onlyif mysql # DIV for integer division: 
query I rowsort label-6892
SELECT ALL + 11 * 95 DIV 20
----
52

skipif mysql # not compatible
query I rowsort label-6892
SELECT ALL + 11 * 95 / 20
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-6893
SELECT ALL - COUNT( + 47 ) + - + 37 AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-6893
SELECT ALL - COUNT ( + 47 ) + - + 37 AS col0
----
-38

query I rowsort
SELECT DISTINCT + ( - 44 ) * - 51 + - + 21 col0
----
2223

onlyif mysql # aggregate syntax: 
query I rowsort label-6895
SELECT 51 * - 27 + COUNT( * ) AS col2
----
-1376

skipif mysql # not compatible
query I rowsort label-6895
SELECT 51 * - 27 + COUNT ( * ) AS col2
----
-1376

onlyif mysql # aggregate syntax: 
query I rowsort label-6896
SELECT - 78 + - 5 + + - 57 * 82 * - 69 - - 19 - - - 98 * - + COUNT( * )
----
322540

skipif mysql # not compatible
query I rowsort label-6896
SELECT - 78 + - 5 + + - 57 * 82 * - 69 - - 19 - - - 98 * - + COUNT ( * )
----
322540

onlyif mysql # aggregate syntax: 
query I rowsort label-6897
SELECT ALL + - 90 + MIN( + 41 ) + + - 45 * + COUNT( DISTINCT - + 75 ) AS col0
----
-94

skipif mysql # not compatible
query I rowsort label-6897
SELECT ALL + - 90 + MIN ( + 41 ) + + - 45 * + COUNT ( DISTINCT - + 75 ) AS col0
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-6898
SELECT - 61 - + + NULLIF ( COUNT( * ), - - 42 ) + 0 * + 96 AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-6898
SELECT - 61 - + + NULLIF ( COUNT ( * ), - - 42 ) + 0 * + 96 AS col1
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-6899
SELECT 11 * - + COUNT( * ) + COUNT( * )
----
-10

skipif mysql # not compatible
query I rowsort label-6899
SELECT 11 * - + COUNT ( * ) + COUNT ( * )
----
-10

query I rowsort
SELECT ALL - - 78 + 56 AS col0
----
134

query I rowsort
SELECT - 82 * - 63 + - + 30
----
5136

query II rowsort
SELECT DISTINCT + + 48 + - 84, + 78 + - 91 AS col1
----
-36
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-6903
SELECT ALL - - 77 * 39 + - + COUNT( * ) - + 6 AS col2
----
2996

skipif mysql # not compatible
query I rowsort label-6903
SELECT ALL - - 77 * 39 + - + COUNT ( * ) - + 6 AS col2
----
2996

query I rowsort
SELECT 0 + ( + 75 ) * 70
----
5250

query II rowsort
SELECT DISTINCT - 7 * 21 AS col2, - 81 col1
----
-147
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-6906
SELECT 68 * - 23 + - COUNT( * ) + + 72 * - - 70
----
3475

skipif mysql # not compatible
query I rowsort label-6906
SELECT 68 * - 23 + - COUNT ( * ) + + 72 * - - 70
----
3475

query I rowsort
SELECT - 90 + 23
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-6908
SELECT DISTINCT COUNT( ALL - - 89 )
----
1

skipif mysql # not compatible
query I rowsort label-6908
SELECT DISTINCT COUNT ( ALL - - 89 )
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6910
SELECT DISTINCT SUM( ALL 43 ) AS col2
----
43

skipif mysql # not compatible
query I rowsort label-6910
SELECT DISTINCT SUM ( ALL 43 ) AS col2
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6911
SELECT DISTINCT CASE - 7 WHEN + - 98 * + 66 * + 17 * 91 DIV - 68 + - + 92 THEN - + 36 ELSE - + 67 DIV CAST( COUNT( - 12 ) AS SIGNED ) + - - 62 + + - 78 END
----
-83

skipif mysql # not compatible
query I rowsort label-6911
SELECT DISTINCT CASE - 7 WHEN + - 98 * + 66 * + 17 * 91 / - 68 + - + 92 THEN - + 36 ELSE - + 67 / CAST ( COUNT ( - 12 ) AS INTEGER ) + - - 62 + + - 78 END
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-6912
SELECT - SUM( DISTINCT 99 ) AS col2
----
-99

skipif mysql # not compatible
query I rowsort label-6912
SELECT - SUM ( DISTINCT 99 ) AS col2
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-6913
SELECT COUNT( * ) + 32 + - 74 * CASE + 14 WHEN COUNT( * ) + + 74 + 15 THEN 10 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6913
SELECT COUNT ( * ) + 32 + - 74 * CASE + 14 WHEN COUNT ( * ) + + 74 + 15 THEN 10 END col0
----
NULL

query I rowsort
SELECT 54 * - 15
----
-810

query I rowsort
SELECT 89 + - 89 col1
----
0

query I rowsort
SELECT ALL 20 * 27 AS col0
----
540

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6918
SELECT + COALESCE ( ( + 96 ), - - MIN( ALL + - 84 ) ) + + - 15 AS col0
----
81

skipif mysql # not compatible
query I rowsort label-6918
SELECT + COALESCE ( ( + 96 ), - - MIN ( ALL + - 84 ) ) + + - 15 AS col0
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6919
SELECT ALL 79 * + + CAST( - + 98 AS SIGNED ) + - 48 + - - 26
----
-7764

skipif mysql # not compatible
query I rowsort label-6919
SELECT ALL 79 * + + CAST ( - + 98 AS INTEGER ) + - 48 + - - 26
----
-7764

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6920
SELECT 22 DIV + COUNT( * ) + + + 79 * + - COUNT( * )
----
-57

skipif mysql # not compatible
query I rowsort label-6920
SELECT 22 / + COUNT ( * ) + + + 79 * + - COUNT ( * )
----
-57

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6923
SELECT + CAST( - 20 AS SIGNED ) + 82 * - + AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6923
SELECT + CAST ( - 20 AS INTEGER ) + 82 * - + AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT ALL - 84 * + + 5 + + + 26 AS col2
----
-394

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6925
SELECT + 22 DIV 49 DIV + 60 + + + CASE 62 WHEN + 15 * - - 23 - - - CAST( NULL AS SIGNED ) THEN NULL WHEN + + 57 * + + 12 THEN 74 ELSE - COUNT( * ) END - + 71 AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-6925
SELECT + 22 / 49 / + 60 + + + CASE 62 WHEN + 15 * - - 23 - - - CAST ( NULL AS INTEGER ) THEN NULL WHEN + + 57 * + + 12 THEN 74 ELSE - COUNT ( * ) END - + 71 AS col0
----
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6926
SELECT + COALESCE ( + 3, 98 DIV - - 28 ) + + 38 * + 11 + - COUNT( * ) DIV 43
----
421

skipif mysql # not compatible
query I rowsort label-6926
SELECT + COALESCE ( + 3, 98 / - - 28 ) + + 38 * + 11 + - COUNT ( * ) / 43
----
421

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

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

query II rowsort
SELECT ALL 51 * 28 + - + 81, 64 AS col2
----
1347
64

onlyif mysql # aggregate syntax: 
query I rowsort label-6929
SELECT - - 12 * + - 51 * 97 + + 45 + - - 79 + + + COUNT( * )
----
-59239

skipif mysql # not compatible
query I rowsort label-6929
SELECT - - 12 * + - 51 * 97 + + 45 + - - 79 + + + COUNT ( * )
----
-59239

onlyif mysql # aggregate syntax: 
query I rowsort label-6930
SELECT - COUNT( ALL + NULLIF ( - 7, - - 51 + - ( - 5 ) + - 68 + + 79 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-6930
SELECT - COUNT ( ALL + NULLIF ( - 7, - - 51 + - ( - 5 ) + - 68 + + 79 ) )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6931
SELECT - 46 DIV 67 + + + COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6931
SELECT - 46 / 67 + + + COUNT ( * ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6932
SELECT DISTINCT + 55 * + 82 * COUNT( * ) + - 11 * - 75, - NULLIF ( + - CAST( + - 76 AS SIGNED ), + - COUNT( * ) + - COUNT( * ) + - 89 ) AS col0
----
5335
-76

skipif mysql # not compatible
query II rowsort label-6932
SELECT DISTINCT + 55 * + 82 * COUNT ( * ) + - 11 * - 75, - NULLIF ( + - CAST ( + - 76 AS INTEGER ), + - COUNT ( * ) + - COUNT ( * ) + - 89 ) AS col0
----
5335
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-6933
SELECT ALL + COUNT( * ) * - 17 + - 41 * 42 - - 10 AS col2
----
-1729

skipif mysql # not compatible
query I rowsort label-6933
SELECT ALL + COUNT ( * ) * - 17 + - 41 * 42 - - 10 AS col2
----
-1729

onlyif mysql # aggregate syntax: 
query I rowsort label-6934
SELECT ALL 17 * - + 94 + - MAX( DISTINCT 98 )
----
-1696

skipif mysql # not compatible
query I rowsort label-6934
SELECT ALL 17 * - + 94 + - MAX ( DISTINCT 98 )
----
-1696

query I rowsort
SELECT - 62 * + 16 - - 84 - + 25 * + - 47 * - + 89 + - 54
----
-105537

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6936
SELECT - 75 DIV 14 + - - 78 + 27 * + - ( + + NULLIF ( 58, + 20 ) ) + - + ( 41 ) * ( + CAST( - - AVG ( 96 ) AS SIGNED ) )
----
-5429

skipif mysql # not compatible
query I rowsort label-6936
SELECT - 75 / 14 + - - 78 + 27 * + - ( + + NULLIF ( 58, + 20 ) ) + - + ( 41 ) * ( + CAST ( - - AVG ( 96 ) AS INTEGER ) )
----
-5429

onlyif mysql # aggregate syntax: 
query I rowsort label-6937
SELECT + - 22 * + + MAX( DISTINCT 17 ) + + - 17
----
-391

skipif mysql # not compatible
query I rowsort label-6937
SELECT + - 22 * + + MAX ( DISTINCT 17 ) + + - 17
----
-391

query I rowsort
SELECT - - 17 + - - 74
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6939
SELECT - CASE + 8 WHEN AVG ( ALL - ( 33 ) ) THEN - + COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6939
SELECT - CASE + 8 WHEN AVG ( ALL - ( 33 ) ) THEN - + COUNT ( * ) END AS col1
----
NULL

query I rowsort
SELECT - 33 * - CASE 39 WHEN - + 48 THEN + 31 END
----
NULL

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6944
SELECT - 97 * + + COUNT( - + 67 ) AS col1
----
-97

skipif mysql # not compatible
query I rowsort label-6944
SELECT - 97 * + + COUNT ( - + 67 ) AS col1
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-6945
SELECT - 56 + ( - MAX( DISTINCT + - 37 ) )
----
-19

skipif mysql # not compatible
query I rowsort label-6945
SELECT - 56 + ( - MAX ( DISTINCT + - 37 ) )
----
-19

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

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

query I rowsort
SELECT - 79 + + 77 * - + 49 * + 47
----
-177410

query I rowsort
SELECT DISTINCT - 17 * + 25
----
-425

query II rowsort
SELECT - 64 AS col2, + 49
----
-64
49

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6951
SELECT + 14 - CASE - COUNT( * ) WHEN 3 * - 53 THEN - 87 + + 37 + 77 WHEN + ( - 48 ) THEN NULL ELSE CASE - 95 WHEN - 14 * 54 * + 64 + - + 50 + - 65 * - 56 THEN - + COUNT( * ) WHEN 17 THEN + 58 END END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6951
SELECT + 14 - CASE - COUNT ( * ) WHEN 3 * - 53 THEN - 87 + + 37 + 77 WHEN + ( - 48 ) THEN NULL ELSE CASE - 95 WHEN - 14 * 54 * + 64 + - + 50 + - 65 * - 56 THEN - + COUNT ( * ) WHEN 17 THEN + 58 END END col2
----
NULL

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

query I rowsort
SELECT + 32 * + 76 AS col2
----
2432

query I rowsort
SELECT DISTINCT + 72 + + 77 * - 47 + + 40 AS col0
----
-3507

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

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

skipif mysql # not compatible
query I rowsort label-6956
SELECT ALL COUNT ( * ) + 80 AS col1
----
81

query II rowsort
SELECT - 78 + 5, - 70 * + + 10 AS col1
----
-73
-700

query I rowsort
SELECT + 96 * 96 * + 95
----
875520

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6960
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0, 5 + 54 + + 8 AS col2
----
NULL
67

skipif mysql # not compatible
query II rowsort label-6960
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0, 5 + 54 + + 8 AS col2
----
NULL
67

query I rowsort
SELECT ALL + 27 + + 16 AS col1
----
43

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6963
SELECT - 3 * - 5 + - COUNT( * ) + + - 57 DIV - + 78 + - 73
----
-59

skipif mysql # not compatible
query I rowsort label-6963
SELECT - 3 * - 5 + - COUNT ( * ) + + - 57 / - + 78 + - 73
----
-59

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6965
SELECT ALL + - 67 / + 58 + + + 57 + + 80 - 49 + + 33 + + 65 / - NULLIF ( + CASE MIN( - 76 ) WHEN - 61 * - COUNT( DISTINCT - - 20 ) + + CAST( - 83 AS DECIMAL ) + + 60 * + 13 * - 48 * 91 THEN 97 - + 65 END, - COUNT( * ) * + CASE + 30 WHEN - - 98 + - 38 THEN + CAST( NULL AS SIGNED ) ELSE + COALESCE ( 95, - + COALESCE ( + 49, - COUNT( * ) * - COUNT( * ), - NULLIF ( - NULLIF ( + + 21, ( - ( 93 ) ) / - 32 + - 48 ), COUNT( * ) ) - - COUNT( * ) ), CAST( NULL AS SIGNED ) * - 98 ) END ) * 64 + 29
----
NULL

skipif mysql # not compatible
query I rowsort label-6965
SELECT ALL + - 67 / + 58 + + + 57 + + 80 - 49 + + 33 + + 65 / - NULLIF ( + CASE MIN ( - 76 ) WHEN - 61 * - COUNT ( DISTINCT - - 20 ) + + CAST ( - 83 AS REAL ) + + 60 * + 13 * - 48 * 91 THEN 97 - + 65 END, - COUNT ( * ) * + CASE + 30 WHEN - - 98 + - 38 THEN + CAST ( NULL AS INTEGER ) ELSE + COALESCE ( 95, - + COALESCE ( + 49, - COUNT ( * ) * - COUNT ( * ), - NULLIF ( - NULLIF ( + + 21, ( - ( 93 ) ) / - 32 + - 48 ), COUNT ( * ) ) - - COUNT ( * ) ), CAST ( NULL AS INTEGER ) * - 98 ) END ) * 64 + 29
----
NULL

query I rowsort
SELECT + COALESCE ( - 92, 90 ) AS col1
----
-92

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6968
SELECT - 92, 17 + - COALESCE ( 85, - - SUM( ALL 31 ) - + CAST( NULL AS SIGNED ) ) + + 99 + - ( + 79 ) * COUNT( * ) * 42 * + 49 * NULLIF ( + COUNT( * ), - CASE + 29 WHEN 96 THEN MAX( 78 ) WHEN 3 THEN NULL END + + MAX( ALL - - 53 ) + + COUNT( * ) ) + + + NULLIF ( - ( + COUNT( * ) ), + CASE COALESCE ( + 22, - 80 ) WHEN + 95 THEN NULL WHEN COUNT( DISTINCT + 58 ) THEN 1 ELSE 12 * + 72 + - 72 END + 14 + - 25 * 33 + + 22 ) + CAST( + COUNT( * ) AS SIGNED ) * 90 AS col1
----
-92
-162462

skipif mysql # not compatible
query II rowsort label-6968
SELECT - 92, 17 + - COALESCE ( 85, - - SUM ( ALL 31 ) - + CAST ( NULL AS INTEGER ) ) + + 99 + - ( + 79 ) * COUNT ( * ) * 42 * + 49 * NULLIF ( + COUNT ( * ), - CASE + 29 WHEN 96 THEN MAX ( 78 ) WHEN 3 THEN NULL END + + MAX ( ALL - - 53 ) + + COUNT ( * ) ) + + + NULLIF ( - ( + COUNT ( * ) ), + CASE COALESCE ( + 22, - 80 ) WHEN + 95 THEN NULL WHEN COUNT ( DISTINCT + 58 ) THEN 1 ELSE 12 * + 72 + - 72 END + 14 + - 25 * 33 + + 22 ) + CAST ( + COUNT ( * ) AS INTEGER ) * 90 AS col1
----
-92
-162462

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6969
SELECT DISTINCT + 8 DIV + COUNT( * ) + - - 84
----
92

skipif mysql # not compatible
query I rowsort label-6969
SELECT DISTINCT + 8 / + COUNT ( * ) + - - 84
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6970
SELECT ALL CAST( NULL AS SIGNED ) / - 99 - + 92
----
NULL

skipif mysql # not compatible
query I rowsort label-6970
SELECT ALL CAST ( NULL AS INTEGER ) / - 99 - + 92
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6971
SELECT DISTINCT - COUNT( * ) * - 86 * + 76 AS col0
----
6536

skipif mysql # not compatible
query I rowsort label-6971
SELECT DISTINCT - COUNT ( * ) * - 86 * + 76 AS col0
----
6536

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6972
SELECT ALL + - 39 * - ( + 14 ) * MAX( DISTINCT + 83 ) + + CASE + COUNT( * ) WHEN + CAST( NULL AS SIGNED ) * - + COUNT( * ) * + 56 THEN + 25 / - AVG ( 90 ) * - 92 + 42 END - - - 13
----
NULL

skipif mysql # not compatible
query I rowsort label-6972
SELECT ALL + - 39 * - ( + 14 ) * MAX ( DISTINCT + 83 ) + + CASE + COUNT ( * ) WHEN + CAST ( NULL AS INTEGER ) * - + COUNT ( * ) * + 56 THEN + 25 / - AVG ( 90 ) * - 92 + 42 END - - - 13
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6973
SELECT + + 12 * SUM( - 4 ) * ( + 13 ) * - + 72 AS col1
----
44928

skipif mysql # not compatible
query I rowsort label-6973
SELECT + + 12 * SUM ( - 4 ) * ( + 13 ) * - + 72 AS col1
----
44928

query I rowsort
SELECT DISTINCT + NULLIF ( + 45, - 14 * - CASE - 48 WHEN - - 5 THEN NULL ELSE - + 77 END - + ( + 76 ) * - - 39 * + ( + 30 ) - + + 99 )
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6975
SELECT + - 37 * CAST( - + 88 AS SIGNED )
----
3256

skipif mysql # not compatible
query I rowsort label-6975
SELECT + - 37 * CAST ( - + 88 AS INTEGER )
----
3256

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6976
SELECT - ( - ( - + 34 ) ) * - CAST( NULL AS SIGNED ) + + 89 + - + 75 * + + 39 * - + 19
----
NULL

skipif mysql # not compatible
query I rowsort label-6976
SELECT - ( - ( - + 34 ) ) * - CAST ( NULL AS INTEGER ) + + 89 + - + 75 * + + 39 * - + 19
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6977
SELECT ALL + + 29 AS col0, - 62 * - 50 DIV + - 25 + + 77 + - 33
----
29
-80

skipif mysql # not compatible
query II rowsort label-6977
SELECT ALL + + 29 AS col0, - 62 * - 50 / + - 25 + + 77 + - 33
----
29
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-6978
SELECT 93 * - 34 + + + 45 - - ( - 8 ) + MIN( ( - 9 ) )
----
-3134

skipif mysql # not compatible
query I rowsort label-6978
SELECT 93 * - 34 + + + 45 - - ( - 8 ) + MIN ( ( - 9 ) )
----
-3134

onlyif mysql # aggregate syntax: 
query I rowsort label-6979
SELECT - - 88 - COUNT( * ) AS col0
----
87

skipif mysql # not compatible
query I rowsort label-6979
SELECT - - 88 - COUNT ( * ) AS col0
----
87

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6981
SELECT DISTINCT + COUNT( DISTINCT 79 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-6981
SELECT DISTINCT + COUNT ( DISTINCT 79 ) col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6982
SELECT ALL + NULLIF ( - + CASE + 43 WHEN + - 60 * 54 * CASE - - ( + - 97 ) WHEN + COUNT( * ) + - 98 THEN NULL WHEN - 43 + 95 * - AVG ( DISTINCT 33 ) THEN - 53 + - 95 - - + 86 / + + CASE COUNT( * ) WHEN + - CASE - 16 WHEN ( + COUNT( * ) ) THEN NULL ELSE - NULLIF ( 61, COALESCE ( - - 71, 11 ) ) END / - + 77 + + 90 + - - 78 * - 94 * + + 8 * - + 1 + + CASE + 54 WHEN - - 59 + + 90 THEN + COUNT( * ) + + - 36 * - 75 END THEN - 3 * + 95 END + 96 ELSE 0 * CAST( NULL AS SIGNED ) END THEN + 0 WHEN + CAST( + COALESCE ( + AVG ( DISTINCT - 39 ), 33, 93 + 86, - 63 + COUNT( * ) / 73 ) AS SIGNED ) THEN NULL END, + 57 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6982
SELECT ALL + NULLIF ( - + CASE + 43 WHEN + - 60 * 54 * CASE - - ( + - 97 ) WHEN + COUNT ( * ) + - 98 THEN NULL WHEN - 43 + 95 * - AVG ( DISTINCT 33 ) THEN - 53 + - 95 - - + 86 / + + CASE COUNT ( * ) WHEN + - CASE - 16 WHEN ( + COUNT ( * ) ) THEN NULL ELSE - NULLIF ( 61, COALESCE ( - - 71, 11 ) ) END / - + 77 + + 90 + - - 78 * - 94 * + + 8 * - + 1 + + CASE + 54 WHEN - - 59 + + 90 THEN + COUNT ( * ) + + - 36 * - 75 END THEN - 3 * + 95 END + 96 ELSE 0 * CAST ( NULL AS INTEGER ) END THEN + 0 WHEN + CAST ( + COALESCE ( + AVG ( DISTINCT - 39 ), 33, 93 + 86, - 63 + COUNT ( * ) / 73 ) AS INTEGER ) THEN NULL END, + 57 ) AS col0
----
NULL

query I rowsort
SELECT ALL - 2 * - 4
----
8

query I rowsort
SELECT + 92 + 10 + 43 AS col0
----
145

query II rowsort
SELECT ALL ( + ( - 32 ) ) AS col2, 21
----
-32
21

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

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

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

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

query I rowsort
SELECT ALL 50 * + 10
----
500

query I rowsort
SELECT + 74 + + 11 * - 15 AS col2
----
-91

query I rowsort
SELECT ALL + 58 + + 99 + 44
----
201

query I rowsort
SELECT 79 + 97 + 4 * + 38
----
328

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

skipif mysql # not compatible
query I rowsort label-6992
SELECT ALL 84 / - - COUNT ( * )
----
84

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6994
SELECT ALL - 95 + + 83 * - 1 * + 32 + - 35 - - + COUNT( * ) * - 24 AS col0
----
-2810

skipif mysql # not compatible
query I rowsort label-6994
SELECT ALL - 95 + + 83 * - 1 * + 32 + - 35 - - + COUNT ( * ) * - 24 AS col0
----
-2810

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6995
SELECT COUNT( DISTINCT - 66 ) + 86 + + 33 DIV 30
----
88

skipif mysql # not compatible
query I rowsort label-6995
SELECT COUNT ( DISTINCT - 66 ) + 86 + + 33 / 30
----
88

query I rowsort
SELECT 5 + - 61
----
-56

onlyif mysql # aggregate syntax: 
query II rowsort label-6997
SELECT COUNT( * ) * ( - 65 ) AS col0, 24
----
-65
24

skipif mysql # not compatible
query II rowsort label-6997
SELECT COUNT ( * ) * ( - 65 ) AS col0, 24
----
-65
24

query I rowsort
SELECT - 13 + 95 * 42 AS col2
----
3977

query I rowsort
SELECT ALL - + 84 * 91
----
-7644

onlyif mysql # aggregate syntax: 
query I rowsort label-7000
SELECT - MAX( DISTINCT 47 ) AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-7000
SELECT - MAX ( DISTINCT 47 ) AS col0
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7001
SELECT 67 + - 16 * + ( COALESCE ( CAST( 16 AS SIGNED ), 90 + + 82, 57, 17 * 56 * 15 + - 30 * + 34 ) )
----
-189

skipif mysql # not compatible
query I rowsort label-7001
SELECT 67 + - 16 * + ( COALESCE ( CAST ( 16 AS INTEGER ), 90 + + 82, 57, 17 * 56 * 15 + - 30 * + 34 ) )
----
-189

query I rowsort
SELECT DISTINCT - - 17 - - 76 col0
----
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7003
SELECT - + 68 DIV + + 17 + MIN( ALL + NULLIF ( - - 9, - 33 ) ) + + - 20 AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-7003
SELECT - + 68 / + + 17 + MIN ( ALL + NULLIF ( - - 9, - 33 ) ) + + - 20 AS col2
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-7004
SELECT COUNT( * ) + + - 4 + + 44
----
41

skipif mysql # not compatible
query I rowsort label-7004
SELECT COUNT ( * ) + + - 4 + + 44
----
41

onlyif mysql # aggregate syntax: 
query II rowsort label-7005
SELECT MAX( ALL 91 ) AS col0, 33 + - - 4 AS col1
----
91
37

skipif mysql # not compatible
query II rowsort label-7005
SELECT MAX ( ALL 91 ) AS col0, 33 + - - 4 AS col1
----
91
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7006
SELECT + + COALESCE ( - + 64, + 70 DIV COUNT( * ) + - 72, + + 81 )
----
-64

skipif mysql # not compatible
query I rowsort label-7006
SELECT + + COALESCE ( - + 64, + 70 / COUNT ( * ) + - 72, + + 81 )
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-7007
SELECT 92 * + + 2 + - 27 + COALESCE ( + 98, + 1 * - 96 * 52 + COUNT( * ), + 71 + - - 88 * - + 33 ) + 69 AS col0
----
324

skipif mysql # not compatible
query I rowsort label-7007
SELECT 92 * + + 2 + - 27 + COALESCE ( + 98, + 1 * - 96 * 52 + COUNT ( * ), + 71 + - - 88 * - + 33 ) + 69 AS col0
----
324

query I rowsort
SELECT ALL - 28 * 67 + + 3 - + + 1 * 76 col0
----
-1949

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7009
SELECT + 87 * - 52, 34 * - NULLIF ( + - ( + - CASE + NULLIF ( - 79, + 6 ) WHEN - 99 THEN - ( CAST( NULL AS SIGNED ) ) * + 32 * + 22 * + + COALESCE ( 21, 4 * - + 80 / - 19 + - - MIN( + + 86 ) + + COUNT( * ) + - 54 / - - COUNT( * ) * - 82 + + - CAST( - 89 AS SIGNED ) ) - 24 ELSE NULL END ), - CASE - 82 WHEN + 92 - - 5 * - + 1 * ( - - 74 ) + 82 THEN + - COUNT( * ) ELSE + 98 * - 72 * + 55 + + - 38 * - 18 / + NULLIF ( 58, COUNT( * ) ) + + ( - 11 ) END ) + - ( 44 ) col1
----
-4524
NULL

skipif mysql # not compatible
query II rowsort label-7009
SELECT + 87 * - 52, 34 * - NULLIF ( + - ( + - CASE + NULLIF ( - 79, + 6 ) WHEN - 99 THEN - ( CAST ( NULL AS INTEGER ) ) * + 32 * + 22 * + + COALESCE ( 21, 4 * - + 80 / - 19 + - - MIN ( + + 86 ) + + COUNT ( * ) + - 54 / - - COUNT ( * ) * - 82 + + - CAST ( - 89 AS INTEGER ) ) - 24 ELSE NULL END ), - CASE - 82 WHEN + 92 - - 5 * - + 1 * ( - - 74 ) + 82 THEN + - COUNT ( * ) ELSE + 98 * - 72 * + 55 + + - 38 * - 18 / + NULLIF ( 58, COUNT ( * ) ) + + ( - 11 ) END ) + - ( 44 ) col1
----
-4524
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7010
SELECT + + 67 DIV + + 89 + 91 DIV + + 85 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7010
SELECT + + 67 / + + 89 + 91 / + + 85 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7011
SELECT - CASE 14 WHEN - - 37 THEN NULL WHEN - 32 * - COUNT( 78 ) + 92 + - CASE + + 96 WHEN - + 56 THEN NULL ELSE + + 63 * 33 * COUNT( * ) - - 90 END - COUNT( * ) - - + 21 + - ( + 40 ) + COUNT( * ) THEN 93 ELSE NULL END / 79 / COUNT( * ) * - 6 * 81
----
NULL

skipif mysql # not compatible
query I rowsort label-7011
SELECT - CASE 14 WHEN - - 37 THEN NULL WHEN - 32 * - COUNT ( 78 ) + 92 + - CASE + + 96 WHEN - + 56 THEN NULL ELSE + + 63 * 33 * COUNT ( * ) - - 90 END - COUNT ( * ) - - + 21 + - ( + 40 ) + COUNT ( * ) THEN 93 ELSE NULL END / 79 / COUNT ( * ) * - 6 * 81
----
NULL

query II rowsort
SELECT DISTINCT - 95 * - 94 AS col1, 20
----
8930
20

onlyif mysql # aggregate syntax: 
query I rowsort label-7013
SELECT DISTINCT + 84 * COUNT( * ) * - - 17
----
1428

skipif mysql # not compatible
query I rowsort label-7013
SELECT DISTINCT + 84 * COUNT ( * ) * - - 17
----
1428

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7015
SELECT DISTINCT - 93 * 85 * + CAST( NULL AS DECIMAL ) * + - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7015
SELECT DISTINCT - 93 * 85 * + CAST ( NULL AS REAL ) * + - COUNT ( * ) AS col1
----
NULL

query II rowsort
SELECT 72, + 0 AS col0
----
72
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7017
SELECT ( 38 ) DIV + 34
----
1

skipif mysql # not compatible
query I rowsort label-7017
SELECT ( 38 ) / + 34
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7018
SELECT ALL 51 + - MIN( ALL + 92 ) * 81 AS col1
----
-7401

skipif mysql # not compatible
query I rowsort label-7018
SELECT ALL 51 + - MIN ( ALL + 92 ) * 81 AS col1
----
-7401

onlyif mysql # aggregate syntax: 
query II rowsort label-7019
SELECT - 80 * 55 - + 68 AS col1, - SUM( 93 ) + 6 - 27 * - 48 AS col0
----
-4468
1209

skipif mysql # not compatible
query II rowsort label-7019
SELECT - 80 * 55 - + 68 AS col1, - SUM ( 93 ) + 6 - 27 * - 48 AS col0
----
-4468
1209

query I rowsort
SELECT 48 + + 40 AS col1
----
88

query I rowsort
SELECT 57 + - - 44 AS col2
----
101

onlyif mysql # aggregate syntax: 
query II rowsort label-7022
SELECT ALL 38 + - - MAX( 88 ), + 61 + 30 AS col1
----
126
91

skipif mysql # not compatible
query II rowsort label-7022
SELECT ALL 38 + - - MAX ( 88 ), + 61 + 30 AS col1
----
126
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7023
SELECT CASE 30 WHEN + 99 + - COUNT( * ) - + COUNT( * ) + + CAST( NULL AS SIGNED ) THEN CAST( COALESCE ( 71, 39 * + 10 + + 98 + + CAST( NULL AS SIGNED ) ) AS SIGNED ) WHEN 37 THEN - + 88 END * + 5 + + - 57 * - 95 - - 33 * 71 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7023
SELECT CASE 30 WHEN + 99 + - COUNT ( * ) - + COUNT ( * ) + + CAST ( NULL AS INTEGER ) THEN CAST ( COALESCE ( 71, 39 * + 10 + + 98 + + CAST ( NULL AS INTEGER ) ) AS INTEGER ) WHEN 37 THEN - + 88 END * + 5 + + - 57 * - 95 - - 33 * 71 AS col1
----
NULL

query I rowsort
SELECT 83 - + 58 + - 46 * 98 AS col0
----
-4483

query I rowsort
SELECT DISTINCT 43 * - - 11
----
473

query I rowsort
SELECT ALL 2 + - 53 AS col1
----
-51

query I rowsort
SELECT 72 + + + 57 AS col1
----
129

query I rowsort
SELECT 17 - - NULLIF ( - 58, - 59 )
----
-41

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7029
SELECT DISTINCT 33 col2, + 8 * + - CASE - - COALESCE ( - 96, + + CAST( NULL AS SIGNED ) ) WHEN 0 * 38 * + 80 THEN NULL ELSE + 32 DIV + + 37 END * NULLIF ( 39, 47 * ( 1 ) * + - 85 + + CAST( NULL AS SIGNED ) - 89 * + + 99 + - - 49 )
----
33
0

skipif mysql # not compatible
query II rowsort label-7029
SELECT DISTINCT 33 col2, + 8 * + - CASE - - COALESCE ( - 96, + + CAST ( NULL AS INTEGER ) ) WHEN 0 * 38 * + 80 THEN NULL ELSE + 32 / + + 37 END * NULLIF ( 39, 47 * ( 1 ) * + - 85 + + CAST ( NULL AS INTEGER ) - 89 * + + 99 + - - 49 )
----
33
0

query II rowsort
SELECT - 4 AS col1, - 75 * + 74 * + + 67 AS col1
----
-4
-371850

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7032
SELECT DISTINCT + 51 * + 77 - - - 91 + + CAST( NULL AS SIGNED ) + 5 - - 42 * - + 27 + + 75 * - - 91 * - 56 * - 21
----
NULL

skipif mysql # not compatible
query I rowsort label-7032
SELECT DISTINCT + 51 * + 77 - - - 91 + + CAST ( NULL AS INTEGER ) + 5 - - 42 * - + 27 + + 75 * - - 91 * - 56 * - 21
----
NULL

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7036
SELECT - + 77 * + 61 + - 42 + - + MIN( + 13 ) + 90 - + - 36 * + COUNT( * )
----
-4626

skipif mysql # not compatible
query I rowsort label-7036
SELECT - + 77 * + 61 + - 42 + - + MIN ( + 13 ) + 90 - + - 36 * + COUNT ( * )
----
-4626

onlyif mysql # aggregate syntax: 
query I rowsort label-7037
SELECT - SUM( DISTINCT + - NULLIF ( + ( - 29 ), 96 * 67 ) ) * + 29
----
-841

skipif mysql # not compatible
query I rowsort label-7037
SELECT - SUM ( DISTINCT + - NULLIF ( + ( - 29 ), 96 * 67 ) ) * + 29
----
-841

query I rowsort
SELECT ALL - NULLIF ( - 72, 57 ) col0
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-7039
SELECT + CAST( 19 AS SIGNED ) - 95 DIV + 98 AS col0, COUNT( ALL CAST( CASE - 93 WHEN - 76 THEN NULL WHEN + 82 THEN - 85 ELSE NULL END AS DECIMAL ) ) * - 12 + + + ( - 76 )
----
19
-76

skipif mysql # not compatible
query II rowsort label-7039
SELECT + CAST ( 19 AS INTEGER ) - 95 / + 98 AS col0, COUNT ( ALL CAST ( CASE - 93 WHEN - 76 THEN NULL WHEN + 82 THEN - 85 ELSE NULL END AS REAL ) ) * - 12 + + + ( - 76 )
----
19
-76

query I rowsort
SELECT ALL + 55 * 10 * 10 * + + 81
----
445500

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

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

query I rowsort
SELECT 38 + + 45
----
83

query I rowsort
SELECT DISTINCT + NULLIF ( - CASE 65 WHEN - - 12 THEN - - 85 / 51 WHEN + 91 * + - 71 THEN NULL WHEN 36 THEN NULL WHEN + 70 + - - 4 THEN NULL END, 33 * 21 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7044
SELECT 76 * 42 + + - COUNT( * ) + + + 12 AS col2, 73 AS col2
----
3203
73

skipif mysql # not compatible
query II rowsort label-7044
SELECT 76 * 42 + + - COUNT ( * ) + + + 12 AS col2, 73 AS col2
----
3203
73

onlyif mysql # aggregate syntax: 
query II rowsort label-7045
SELECT ALL 97 + 61, COUNT( * ) AS col2
----
158
1

skipif mysql # not compatible
query II rowsort label-7045
SELECT ALL 97 + 61, COUNT ( * ) AS col2
----
158
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7046
SELECT - 3 + + NULLIF ( - - COUNT( * ), - 88 ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-7046
SELECT - 3 + + NULLIF ( - - COUNT ( * ), - 88 ) AS col1
----
-2

query I rowsort
SELECT ALL + 95 * - 97 AS col1
----
-9215

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7048
SELECT ALL - 40 + - 90 * - 38 - ( + COUNT( * ) ) + + - CAST( NULL AS SIGNED ) * 25 AS col2, 7 * 6 col1
----
NULL
42

skipif mysql # not compatible
query II rowsort label-7048
SELECT ALL - 40 + - 90 * - 38 - ( + COUNT ( * ) ) + + - CAST ( NULL AS INTEGER ) * 25 AS col2, 7 * 6 col1
----
NULL
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7049
SELECT ( 48 ) * - - CAST( NULL AS SIGNED ) / 38 + - + 95 * - CAST( NULL AS SIGNED ) / + 33
----
NULL

skipif mysql # not compatible
query I rowsort label-7049
SELECT ( 48 ) * - - CAST ( NULL AS INTEGER ) / 38 + - + 95 * - CAST ( NULL AS INTEGER ) / + 33
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7050
SELECT - NULLIF ( + COUNT( * ), CAST( 4 AS SIGNED ) * + 92 ) * - + 75 + - + 92 AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-7050
SELECT - NULLIF ( + COUNT ( * ), CAST ( 4 AS INTEGER ) * + 92 ) * - + 75 + - + 92 AS col2
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7051
SELECT + 25 + + 19 + - - 60 * + 54 - + CAST( - - 59 AS SIGNED ) AS col0
----
3225

skipif mysql # not compatible
query I rowsort label-7051
SELECT + 25 + + 19 + - - 60 * + 54 - + CAST ( - - 59 AS INTEGER ) AS col0
----
3225

query I rowsort
SELECT + 1 + + 66 col0
----
67

query I rowsort
SELECT DISTINCT NULLIF ( - 65, + 50 ) AS col2
----
-65

onlyif mysql # aggregate syntax: 
query II rowsort label-7054
SELECT ALL + 22 * - 46 * ( COUNT( * ) ) * - - COUNT( * ) AS col1, 37
----
-1012
37

skipif mysql # not compatible
query II rowsort label-7054
SELECT ALL + 22 * - 46 * ( COUNT ( * ) ) * - - COUNT ( * ) AS col1, 37
----
-1012
37

onlyif mysql # aggregate syntax: 
query II rowsort label-7055
SELECT ALL 45 * + COUNT( * ) col1, 41
----
45
41

skipif mysql # not compatible
query II rowsort label-7055
SELECT ALL 45 * + COUNT ( * ) col1, 41
----
45
41

onlyif mysql # aggregate syntax: 
query I rowsort label-7056
SELECT + 98 + + + SUM( - - 27 )
----
125

skipif mysql # not compatible
query I rowsort label-7056
SELECT + 98 + + + SUM ( - - 27 )
----
125

query I rowsort
SELECT ALL 72 * - - 22 AS col0
----
1584

query I rowsort
SELECT - + 75 + - 94
----
-169

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7059
SELECT + - ( 59 ) + 12 + - - 47 DIV NULLIF ( 40, - - 51 ) + 24 + - CAST( + 5 AS SIGNED )
----
-27

skipif mysql # not compatible
query I rowsort label-7059
SELECT + - ( 59 ) + 12 + - - 47 / NULLIF ( 40, - - 51 ) + 24 + - CAST ( + 5 AS INTEGER )
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-7060
SELECT DISTINCT ( + SUM( ALL + 32 ) ) AS col2
----
32

skipif mysql # not compatible
query I rowsort label-7060
SELECT DISTINCT ( + SUM ( ALL + 32 ) ) AS col2
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-7061
SELECT ALL - COUNT( * ) * + 70 - 53
----
-123

skipif mysql # not compatible
query I rowsort label-7061
SELECT ALL - COUNT ( * ) * + 70 - 53
----
-123

onlyif mysql # DIV for integer division: 
query I rowsort label-7062
SELECT - 5 DIV - 25 * - 2 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7062
SELECT - 5 / - 25 * - 2 AS col2
----
0

query I rowsort
SELECT ALL + - 70 * 84 + - - 27 + + 24
----
-5829

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

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

query I rowsort
SELECT + 28 * - 31 + + - 13 + - 10 + + 16 * + 22
----
-539

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

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

query I rowsort
SELECT ALL 72 * + 79 * + 75 + - 76
----
426524

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7068
SELECT DISTINCT COUNT( * ) * - 26 * 26 + - + 56 + - CAST( + 49 AS SIGNED ) + - 89 col0
----
-870

skipif mysql # not compatible
query I rowsort label-7068
SELECT DISTINCT COUNT ( * ) * - 26 * 26 + - + 56 + - CAST ( + 49 AS INTEGER ) + - 89 col0
----
-870

query I rowsort
SELECT DISTINCT - 81 * - - 75 * - + 72 AS col0
----
437400

query I rowsort
SELECT DISTINCT 40 * - + 22 + + 64
----
-816

query I rowsort
SELECT COALESCE ( 9, - 38 * + 58 + + 7 )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7072
SELECT COALESCE ( - 10, + + COUNT( * ) ) AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-7072
SELECT COALESCE ( - 10, + + COUNT ( * ) ) AS col0
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7073
SELECT COUNT( * ) * CAST( + 30 AS SIGNED ) DIV + MAX( DISTINCT + 31 ) + - 22 - + 35
----
-57

skipif mysql # not compatible
query I rowsort label-7073
SELECT COUNT ( * ) * CAST ( + 30 AS INTEGER ) / + MAX ( DISTINCT + 31 ) + - 22 - + 35
----
-57

query I rowsort
SELECT - 49 * - 64 * - - 73 AS col1
----
228928

query I rowsort
SELECT DISTINCT + NULLIF ( - 85, + 85 * 96 + - 95 * - 34 )
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-7076
SELECT - NULLIF ( + + 81, 2 * - COUNT( * ) + + COUNT( - 4 ) + 33 ) + - 63 AS col0
----
-144

skipif mysql # not compatible
query I rowsort label-7076
SELECT - NULLIF ( + + 81, 2 * - COUNT ( * ) + + COUNT ( - 4 ) + 33 ) + - 63 AS col0
----
-144

query I rowsort
SELECT + 43 + + 50 + + 82 col2
----
175

onlyif mysql # aggregate syntax: 
query I rowsort label-7078
SELECT ALL - 5 * - 95 - - 38 + COUNT( * ) + 20 * CASE + MIN( - 76 ) WHEN - 17 + + 77 THEN - 42 WHEN - 47 + + 90 - - - 23 THEN NULL ELSE - 0 END AS col1
----
514

skipif mysql # not compatible
query I rowsort label-7078
SELECT ALL - 5 * - 95 - - 38 + COUNT ( * ) + 20 * CASE + MIN ( - 76 ) WHEN - 17 + + 77 THEN - 42 WHEN - 47 + + 90 - - - 23 THEN NULL ELSE - 0 END AS col1
----
514

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7079
SELECT - 13 * + + ( - + COALESCE ( - 20, - + 67 * + - 75 DIV 81 + + 73 - - 3 + - - 93 * - 12 * - COUNT( * ) * + 31, - 11 ) )
----
-260

skipif mysql # not compatible
query I rowsort label-7079
SELECT - 13 * + + ( - + COALESCE ( - 20, - + 67 * + - 75 / 81 + + 73 - - 3 + - - 93 * - 12 * - COUNT ( * ) * + 31, - 11 ) )
----
-260

query I rowsort
SELECT - 90 - - + 30
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-7081
SELECT DISTINCT + COUNT( - + 26 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7081
SELECT DISTINCT + COUNT ( - + 26 ) AS col2
----
1

query I rowsort
SELECT - 4 * + 25 AS col1
----
-100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7083
SELECT NULLIF ( + 44, - NULLIF ( - - 30, - 38 + 37 + + - 25 ) - CAST( + 96 AS SIGNED ) + COUNT( * ) ) AS col2
----
44

skipif mysql # not compatible
query I rowsort label-7083
SELECT NULLIF ( + 44, - NULLIF ( - - 30, - 38 + 37 + + - 25 ) - CAST ( + 96 AS INTEGER ) + COUNT ( * ) ) AS col2
----
44

query I rowsort
SELECT - 17 + + 19 AS col1
----
2

query I rowsort
SELECT ALL CASE 65 WHEN - 85 THEN - 95 END
----
NULL

query I rowsort
SELECT - - 10 * + 22 AS col2
----
220

onlyif mysql # aggregate syntax: 
query I rowsort label-7087
SELECT ALL 79 + + - ( + CASE - COUNT( * ) WHEN - ( - + 60 ) THEN - 25 * 79 WHEN + 82 * 34 THEN + 3 END ) / + 55 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7087
SELECT ALL 79 + + - ( + CASE - COUNT ( * ) WHEN - ( - + 60 ) THEN - 25 * 79 WHEN + 82 * 34 THEN + 3 END ) / + 55 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7088
SELECT + COUNT( * ) - 42 * + + 85 AS col0
----
-3569

skipif mysql # not compatible
query I rowsort label-7088
SELECT + COUNT ( * ) - 42 * + + 85 AS col0
----
-3569

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

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

query I rowsort
SELECT DISTINCT - 16 + 0 * - 95
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-7092
SELECT - - 58 + + SUM( - 96 ) + - ( - 6 ) * - 23 * - - 76 * - 46 AS col2
----
482410

skipif mysql # not compatible
query I rowsort label-7092
SELECT - - 58 + + SUM ( - 96 ) + - ( - 6 ) * - 23 * - - 76 * - 46 AS col2
----
482410

onlyif mysql # aggregate syntax: 
query I rowsort label-7093
SELECT + + 83 + - COUNT( * ) * + 59 - 70
----
-46

skipif mysql # not compatible
query I rowsort label-7093
SELECT + + 83 + - COUNT ( * ) * + 59 - 70
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7094
SELECT - + 39 * + ( 82 ) + - - COALESCE ( 57, - - CAST( NULL AS SIGNED ) * - 55 ) AS col0
----
-3141

skipif mysql # not compatible
query I rowsort label-7094
SELECT - + 39 * + ( 82 ) + - - COALESCE ( 57, - - CAST ( NULL AS INTEGER ) * - 55 ) AS col0
----
-3141

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

skipif mysql # not compatible
query II rowsort label-7095
SELECT + + 16 col2, + COUNT ( * )
----
16
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7096
SELECT ALL 22 + COUNT( * ) * 93 AS col0
----
115

skipif mysql # not compatible
query I rowsort label-7096
SELECT ALL 22 + COUNT ( * ) * 93 AS col0
----
115

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7097
SELECT 3 DIV + 87 + + 29 * - COUNT( * ) * + - CASE 52 WHEN + + NULLIF ( 86, - 27 + + - 93 ) THEN NULL ELSE - 50 END AS col1
----
-1450

skipif mysql # not compatible
query I rowsort label-7097
SELECT 3 / + 87 + + 29 * - COUNT ( * ) * + - CASE 52 WHEN + + NULLIF ( 86, - 27 + + - 93 ) THEN NULL ELSE - 50 END AS col1
----
-1450

query II rowsort
SELECT 77 col1, 59
----
77
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7099
SELECT CAST( - - 68 AS SIGNED ) + - - 16 AS col1
----
84

skipif mysql # not compatible
query I rowsort label-7099
SELECT CAST ( - - 68 AS INTEGER ) + - - 16 AS col1
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7100
SELECT ALL - NULLIF ( 70, + 80 * 12 DIV + 48 + - 62 + + - 86 + - 12 * + 4 ), - 99 - - + 91 DIV - ( + + 42 ) + + + MIN( + 50 ) + - + 33 DIV - 85 - - CAST( - + NULLIF ( 44, 90 ) AS SIGNED ) AS col1
----
-70
-95

skipif mysql # not compatible
query II rowsort label-7100
SELECT ALL - NULLIF ( 70, + 80 * 12 / + 48 + - 62 + + - 86 + - 12 * + 4 ), - 99 - - + 91 / - ( + + 42 ) + + + MIN ( + 50 ) + - + 33 / - 85 - - CAST ( - + NULLIF ( 44, 90 ) AS INTEGER ) AS col1
----
-70
-95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7101
SELECT ALL - COUNT( * ) DIV 41
----
0

skipif mysql # not compatible
query I rowsort label-7101
SELECT ALL - COUNT ( * ) / 41
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7102
SELECT ( - - COUNT( ALL - + ( + 72 ) ) ) * + 12 - + - NULLIF ( 10, 11 ) + 65 AS col1, NULLIF ( + + 16, + - 33 + 24 + - + 41 - ( - ( 6 ) ) + + COUNT( * ) - 7 / COUNT( * ) + 23 + + 1 )
----
87
16

skipif mysql # not compatible
query II rowsort label-7102
SELECT ( - - COUNT ( ALL - + ( + 72 ) ) ) * + 12 - + - NULLIF ( 10, 11 ) + 65 AS col1, NULLIF ( + + 16, + - 33 + 24 + - + 41 - ( - ( 6 ) ) + + COUNT ( * ) - 7 / COUNT ( * ) + 23 + + 1 )
----
87
16

onlyif mysql # aggregate syntax: 
query II rowsort label-7103
SELECT ALL 86 - + COALESCE ( - 82, + SUM( DISTINCT + + ( + 47 ) ) * - + 13 + 93 + - 45 * + 92 ) - - - COUNT( * ), 19 + COUNT( * ) AS col0
----
167
20

skipif mysql # not compatible
query II rowsort label-7103
SELECT ALL 86 - + COALESCE ( - 82, + SUM ( DISTINCT + + ( + 47 ) ) * - + 13 + 93 + - 45 * + 92 ) - - - COUNT ( * ), 19 + COUNT ( * ) AS col0
----
167
20

query II rowsort
SELECT + 3 AS col2, 14 AS col1
----
3
14

query III rowsort
SELECT ALL - 34 col0, 21 * 11 * + + 93 col0, - - 8 + - 3
----
-34
21483
5

onlyif mysql # DIV for integer division: 
query I rowsort label-7106
SELECT - 73 DIV - 67 - 22 * - 38 + + ( 82 )
----
919

skipif mysql # not compatible
query I rowsort label-7106
SELECT - 73 / - 67 - 22 * - 38 + + ( 82 )
----
919

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7107
SELECT 14 * + 73 + - 5 + ( - + SUM( + + 29 ) ) + + - COALESCE ( - 94, - 83 DIV COUNT( ALL + 32 ) + + + 79 + + 14 DIV 13 * + + 49 + + 56 - CASE + 98 WHEN + CAST( - 63 AS SIGNED ) THEN 62 END * - 41, + 60 * 91 + - 68 ) * - + 28 * + + 31 AS col2
----
-80604

skipif mysql # not compatible
query I rowsort label-7107
SELECT 14 * + 73 + - 5 + ( - + SUM ( + + 29 ) ) + + - COALESCE ( - 94, - 83 / COUNT ( ALL + 32 ) + + + 79 + + 14 / 13 * + + 49 + + 56 - CASE + 98 WHEN + CAST ( - 63 AS INTEGER ) THEN 62 END * - 41, + 60 * 91 + - 68 ) * - + 28 * + + 31 AS col2
----
-80604

query I rowsort
SELECT 18 + + - 19
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7109
SELECT ( MAX( ALL CAST( NULL AS SIGNED ) ) ) * ( + 8 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7109
SELECT ( MAX ( ALL CAST ( NULL AS INTEGER ) ) ) * ( + 8 ) AS col1
----
NULL

query I rowsort
SELECT ALL - CASE + 37 WHEN - ( + + 55 ) + 58 THEN NULL ELSE - 84 END AS col2
----
84

query II rowsort
SELECT + 68 AS col0, 43 AS col2
----
68
43

onlyif mysql # aggregate syntax: 
query I rowsort label-7112
SELECT ALL 78 * + 24 * + COALESCE ( - 85, 3 + - COUNT( * ) - - COALESCE ( + 25, - 85 + - 66, + + 57 ) ) * 95 + - COUNT( * )
----
-15116401

skipif mysql # not compatible
query I rowsort label-7112
SELECT ALL 78 * + 24 * + COALESCE ( - 85, 3 + - COUNT ( * ) - - COALESCE ( + 25, - 85 + - 66, + + 57 ) ) * 95 + - COUNT ( * )
----
-15116401

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7113
SELECT 8 + 25 DIV - 48 * COUNT( * ) * + - 80
----
8

skipif mysql # not compatible
query I rowsort label-7113
SELECT 8 + 25 / - 48 * COUNT ( * ) * + - 80
----
8

query I rowsort
SELECT DISTINCT 13 * 62
----
806

onlyif mysql # aggregate syntax: 
query I rowsort label-7115
SELECT ALL - SUM( ALL + + 58 ) AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-7115
SELECT ALL - SUM ( ALL + + 58 ) AS col2
----
-58

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7116
SELECT ALL - CASE 14 WHEN - CAST( NULL AS DECIMAL ) + + 40 + - + 31 THEN NULL WHEN - ( + + 71 ) / + 33 + 7 + + - 1 THEN + - 66 WHEN + + 29 THEN - + ( - 39 ) - - 61 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7116
SELECT ALL - CASE 14 WHEN - CAST ( NULL AS REAL ) + + 40 + - + 31 THEN NULL WHEN - ( + + 71 ) / + 33 + 7 + + - 1 THEN + - 66 WHEN + + 29 THEN - + ( - 39 ) - - 61 END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7117
SELECT 60 AS col0, - ( - 44 ) + 21 DIV - 38 AS col2
----
60
44

skipif mysql # not compatible
query II rowsort label-7117
SELECT 60 AS col0, - ( - 44 ) + 21 / - 38 AS col2
----
60
44

onlyif mysql # aggregate syntax: 
query I rowsort label-7118
SELECT - ( MIN( DISTINCT + + 54 ) ) AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-7118
SELECT - ( MIN ( DISTINCT + + 54 ) ) AS col1
----
-54

query III rowsort
SELECT - + 3 AS col1, + 75 AS col1, - 28 AS col2
----
-3
75
-28

query II rowsort
SELECT COALESCE ( - ( - 40 ), + + 38 * - 79 ) + + 83, - 4 AS col2
----
123
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-7121
SELECT 6 DIV 97 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7121
SELECT 6 / 97 AS col2
----
0

query II rowsort
SELECT ALL - 8 AS col1, + 63
----
-8
63

query I rowsort
SELECT DISTINCT + - 90 + - 44 AS col2
----
-134

onlyif mysql # aggregate syntax: 
query II rowsort label-7124
SELECT 15 col2, - COUNT( * ) + - - 21 + - 12 + + + 40 * 41 * + + ( - 75 )
----
15
-122992

skipif mysql # not compatible
query II rowsort label-7124
SELECT 15 col2, - COUNT ( * ) + - - 21 + - 12 + + + 40 * 41 * + + ( - 75 )
----
15
-122992

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7125
SELECT ALL 90 + + 77 * - ( + 50 ) * - CAST( NULL AS SIGNED ) / 95 + + 13 + + 86 + ( - 79 ) * - + 19 + + 20 * + COUNT( * ) - - + NULLIF ( + CAST( NULL AS SIGNED ), - COUNT( * ) + 26 * 85 + + 31 ) + - 81 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7125
SELECT ALL 90 + + 77 * - ( + 50 ) * - CAST ( NULL AS INTEGER ) / 95 + + 13 + + 86 + ( - 79 ) * - + 19 + + 20 * + COUNT ( * ) - - + NULLIF ( + CAST ( NULL AS INTEGER ), - COUNT ( * ) + 26 * 85 + + 31 ) + - 81 col2
----
NULL

query I rowsort
SELECT 29 + + 89 * - + 89
----
-7892

onlyif mysql # aggregate syntax: 
query I rowsort label-7127
SELECT SUM( DISTINCT + 22 ) + + ( + - 27 ) + + - 47 AS col1
----
-52

skipif mysql # not compatible
query I rowsort label-7127
SELECT SUM ( DISTINCT + 22 ) + + ( + - 27 ) + + - 47 AS col1
----
-52

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

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

query I rowsort
SELECT - NULLIF ( - 59, + 85 - - ( 62 ) )
----
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7130
SELECT COUNT( * ) DIV - 26 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7130
SELECT COUNT ( * ) / - 26 AS col0
----
0

query I rowsort
SELECT - 96 + 73 + 69
----
46

query II rowsort
SELECT - 64 AS col2, 46
----
-64
46

query II rowsort
SELECT 98 + - + 71 + - ( - COALESCE ( - 16, + 13 * - 39 + 90, + 75 ) ) - + ( - 28 ) + - - 57, 96
----
96
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7134
SELECT 44 + - + CAST( + - 74 AS SIGNED ) + + 84, - CAST( - 73 AS SIGNED ) * - 0 AS col1
----
202
0

skipif mysql # not compatible
query II rowsort label-7134
SELECT 44 + - + CAST ( + - 74 AS INTEGER ) + + 84, - CAST ( - 73 AS INTEGER ) * - 0 AS col1
----
202
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7135
SELECT - 70, 99 + - COUNT( * ) + + 50 * - + 16 AS col0
----
-70
-702

skipif mysql # not compatible
query II rowsort label-7135
SELECT - 70, 99 + - COUNT ( * ) + + 50 * - + 16 AS col0
----
-70
-702

query I rowsort
SELECT - - 46 col2
----
46

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7137
SELECT ALL + 90, COUNT( COALESCE ( ( + CAST( NULL AS DECIMAL ) ), + 78 / 96 ) ) AS col2
----
90
1

skipif mysql # not compatible
query II rowsort label-7137
SELECT ALL + 90, COUNT ( COALESCE ( ( + CAST ( NULL AS REAL ) ), + 78 / 96 ) ) AS col2
----
90
1

query I rowsort
SELECT DISTINCT 33 - + 13
----
20

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7140
SELECT SUM( DISTINCT 58 ) * + MIN( 37 ) AS col0
----
2146

skipif mysql # not compatible
query I rowsort label-7140
SELECT SUM ( DISTINCT 58 ) * + MIN ( 37 ) AS col0
----
2146

onlyif mysql # aggregate syntax: 
query I rowsort label-7141
SELECT DISTINCT 80 * - COUNT( * ) * + - 57
----
4560

skipif mysql # not compatible
query I rowsort label-7141
SELECT DISTINCT 80 * - COUNT ( * ) * + - 57
----
4560

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7143
SELECT MAX( ALL - 7 ) * 12
----
-84

skipif mysql # not compatible
query I rowsort label-7143
SELECT MAX ( ALL - 7 ) * 12
----
-84

query II rowsort
SELECT - 81 * 41 * 65 + + + 97 + 92 AS col1, + 21
----
-215676
21

query I rowsort
SELECT DISTINCT + 64 * + 63 * + 28
----
112896

onlyif mysql # aggregate syntax: 
query I rowsort label-7146
SELECT + 81 * 55 - - ( + CASE - - 65 WHEN + + 19 THEN + 36 * 92 WHEN - 8 THEN NULL END ) + + MIN( 18 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7146
SELECT + 81 * 55 - - ( + CASE - - 65 WHEN + + 19 THEN + 36 * 92 WHEN - 8 THEN NULL END ) + + MIN ( 18 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7147
SELECT ALL CASE + 77 WHEN - 3 * 24 / 37 / - 79 * - MIN( DISTINCT 97 ) * - + 12 THEN - 11 ELSE NULL END / - 45 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7147
SELECT ALL CASE + 77 WHEN - 3 * 24 / 37 / - 79 * - MIN ( DISTINCT 97 ) * - + 12 THEN - 11 ELSE NULL END / - 45 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7148
SELECT COALESCE ( 2, 35 * + 70 ) * - 76 DIV - 61 + - COUNT( * ) AS col0, 6 AS col0
----
1
6

skipif mysql # not compatible
query II rowsort label-7148
SELECT COALESCE ( 2, 35 * + 70 ) * - 76 / - 61 + - COUNT ( * ) AS col0, 6 AS col0
----
1
6

query I rowsort
SELECT 83 * + 40 + + 87 + 76 col0
----
3483

query I rowsort
SELECT DISTINCT 34 + 82
----
116

onlyif mysql # aggregate syntax: 
query II rowsort label-7151
SELECT ALL 82 + - 40, NULLIF ( + - COUNT( - 44 ), + - 32 ) col1
----
42
-1

skipif mysql # not compatible
query II rowsort label-7151
SELECT ALL 82 + - 40, NULLIF ( + - COUNT ( - 44 ), + - 32 ) col1
----
42
-1

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

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

query I rowsort
SELECT ALL - 82 + - + 87 + - 10 - 78
----
-257

query I rowsort
SELECT 51 * - 73 - 95 AS col0
----
-3818

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

query I rowsort
SELECT 30 * - 24
----
-720

query I rowsort
SELECT - ( - ( 46 ) )
----
46

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7159
SELECT - SUM( + - 28 ) DIV - + 89 + - 11
----
-11

skipif mysql # not compatible
query I rowsort label-7159
SELECT - SUM ( + - 28 ) / - + 89 + - 11
----
-11

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

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

query I rowsort
SELECT DISTINCT 12 - - 61 AS col1
----
73

query II rowsort
SELECT ALL + - 37 * 72, + 49 AS col1
----
-2664
49

query I rowsort
SELECT ALL 92 - 98 AS col1
----
-6

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7165
SELECT + 50 - - + CAST( - - 19 AS SIGNED ) AS col0, + 35 AS col2
----
69
35

skipif mysql # not compatible
query II rowsort label-7165
SELECT + 50 - - + CAST ( - - 19 AS INTEGER ) AS col0, + 35 AS col2
----
69
35

onlyif mysql # DIV for integer division: 
query I rowsort label-7166
SELECT + 22 DIV 90 * - 48 DIV + - 56 + - 73 + - COALESCE ( 32, - + 6 + - 26 - 29, + 25 * COALESCE ( 40, + 40 - - - 93, + + ( - + 84 ) ) + + 13 ) * - 64 * - + 0 AS col2
----
-73

skipif mysql # not compatible
query I rowsort label-7166
SELECT + 22 / 90 * - 48 / + - 56 + - 73 + - COALESCE ( 32, - + 6 + - 26 - 29, + 25 * COALESCE ( 40, + 40 - - - 93, + + ( - + 84 ) ) + + 13 ) * - 64 * - + 0 AS col2
----
-73

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7168
SELECT - 38 DIV - 15
----
2

skipif mysql # not compatible
query I rowsort label-7168
SELECT - 38 / - 15
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-7169
SELECT + 65 DIV + - 47 + 14
----
13

skipif mysql # not compatible
query I rowsort label-7169
SELECT + 65 / + - 47 + 14
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-7170
SELECT DISTINCT + NULLIF ( - + 65, COUNT( * ) - - 83 ) AS col0
----
-65

skipif mysql # not compatible
query I rowsort label-7170
SELECT DISTINCT + NULLIF ( - + 65, COUNT ( * ) - - 83 ) AS col0
----
-65

query II rowsort
SELECT ALL + 43 col1, 92 * - 25 AS col1
----
43
-2300

query II rowsort
SELECT DISTINCT + COALESCE ( + + 52, + + 28 ) AS col0, 99
----
52
99

onlyif mysql # aggregate syntax: 
query II rowsort label-7173
SELECT - COUNT( ALL ( 96 ) ) * - - 70 * - - 96 + - + 30 AS col2, 12 AS col1
----
-6750
12

skipif mysql # not compatible
query II rowsort label-7173
SELECT - COUNT ( ALL ( 96 ) ) * - - 70 * - - 96 + - + 30 AS col2, 12 AS col1
----
-6750
12

query I rowsort
SELECT ALL ( + 27 ) * 54 + 58 AS col1
----
1516

query I rowsort
SELECT + 84 * 20
----
1680

onlyif mysql # aggregate syntax: 
query I rowsort label-7176
SELECT DISTINCT + 29 * + - SUM( + 0 ) + - - 68
----
68

skipif mysql # not compatible
query I rowsort label-7176
SELECT DISTINCT + 29 * + - SUM ( + 0 ) + - - 68
----
68

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

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

query I rowsort
SELECT ALL - 96 * 89 + - - 14
----
-8530

query II rowsort
SELECT - 31 * - 90 * - ( + - 9 ) AS col1, - 59
----
25110
-59

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

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

query I rowsort
SELECT + 13 + + 43
----
56

query II rowsort
SELECT ALL + 86 col1, 97
----
86
97

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

query I rowsort
SELECT ALL + 42 * + 30 + + - 26 - - 85 AS col0
----
1319

onlyif mysql # DIV for integer division: 
query I rowsort label-7185
SELECT + + 48 + - 32 DIV 82
----
48

skipif mysql # not compatible
query I rowsort label-7185
SELECT + + 48 + - 32 / 82
----
48

query II rowsort
SELECT ALL + 79 AS col0, 24
----
79
24

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7190
SELECT + + 96 + - 83 DIV COUNT( * )
----
13

skipif mysql # not compatible
query I rowsort label-7190
SELECT + + 96 + - 83 / COUNT ( * )
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-7191
SELECT - 10, + COUNT( * ) + - ( 84 ) * - ( - - MAX( + 60 ) ) col0
----
-10
5041

skipif mysql # not compatible
query II rowsort label-7191
SELECT - 10, + COUNT ( * ) + - ( 84 ) * - ( - - MAX ( + 60 ) ) col0
----
-10
5041

onlyif mysql # aggregate syntax: 
query I rowsort label-7192
SELECT - 83 + + ( COUNT( ALL + + 31 ) )
----
-82

skipif mysql # not compatible
query I rowsort label-7192
SELECT - 83 + + ( COUNT ( ALL + + 31 ) )
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-7193
SELECT DISTINCT 57 * - COUNT( * ) - - COUNT( * ) * + 73 AS col0
----
16

skipif mysql # not compatible
query I rowsort label-7193
SELECT DISTINCT 57 * - COUNT ( * ) - - COUNT ( * ) * + 73 AS col0
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7194
SELECT DISTINCT CAST( - + 24 AS SIGNED ) * - 7 + 78
----
246

skipif mysql # not compatible
query I rowsort label-7194
SELECT DISTINCT CAST ( - + 24 AS INTEGER ) * - 7 + 78
----
246

onlyif mysql # aggregate syntax: 
query I rowsort label-7195
SELECT + + COUNT( * ) * 66 + 61 + + MIN( 53 )
----
180

skipif mysql # not compatible
query I rowsort label-7195
SELECT + + COUNT ( * ) * 66 + 61 + + MIN ( 53 )
----
180

query I rowsort
SELECT + 45 + - + 74
----
-29

query I rowsort
SELECT ALL 14 - - 6
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-7198
SELECT ALL + 66 * 85 * - 77 + - MIN( DISTINCT - 28 ) AS col2
----
-431942

skipif mysql # not compatible
query I rowsort label-7198
SELECT ALL + 66 * 85 * - 77 + - MIN ( DISTINCT - 28 ) AS col2
----
-431942

onlyif mysql # aggregate syntax: 
query II rowsort label-7199
SELECT DISTINCT CASE - - 37 WHEN - 72 * 61 + + + 89 THEN MIN( ALL 83 ) * - 42 + COUNT( * ) - 57 / 59 END AS col1, + 44 AS col1
----
NULL
44

skipif mysql # not compatible
query II rowsort label-7199
SELECT DISTINCT CASE - - 37 WHEN - 72 * 61 + + + 89 THEN MIN ( ALL 83 ) * - 42 + COUNT ( * ) - 57 / 59 END AS col1, + 44 AS col1
----
NULL
44

query I rowsort
SELECT - 72 + - 87 AS col2
----
-159

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

query I rowsort
SELECT - 33 * - 52 AS col2
----
1716

onlyif mysql # aggregate syntax: 
query I rowsort label-7203
SELECT - 51 + + COUNT( * ) - 87 AS col2
----
-137

skipif mysql # not compatible
query I rowsort label-7203
SELECT - 51 + + COUNT ( * ) - 87 AS col2
----
-137

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7204
SELECT ALL CASE + - ( - 69 ) WHEN - SUM( + + ( 2 ) ) THEN CAST( + - COUNT( * ) AS SIGNED ) WHEN COALESCE ( + 88, 13 ) + + 75 THEN NULL WHEN + 91 THEN - 7 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7204
SELECT ALL CASE + - ( - 69 ) WHEN - SUM ( + + ( 2 ) ) THEN CAST ( + - COUNT ( * ) AS INTEGER ) WHEN COALESCE ( + 88, 13 ) + + 75 THEN NULL WHEN + 91 THEN - 7 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7205
SELECT - 27 + + 7 * + COUNT( * ) * + + 68 AS col1
----
449

skipif mysql # not compatible
query I rowsort label-7205
SELECT - 27 + + 7 * + COUNT ( * ) * + + 68 AS col1
----
449

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7206
SELECT ALL + CASE 20 WHEN + 74 * - - CAST( NULL AS SIGNED ) - + - ( - 65 ) + + NULLIF ( - 6, - - 38 ) * + 46 * - COUNT( * ) THEN CAST( - CASE - - 18 WHEN - + 20 / 34 + + - 73 + - ( + COUNT( * ) ) * - 30 THEN - CASE - 39 WHEN + MIN( DISTINCT - 53 ) * 63 + + MAX( - 12 ) THEN + - COALESCE ( ( - + 79 ), 80 + COUNT( * ) ) ELSE NULL END ELSE 79 END AS SIGNED ) ELSE NULL END * - 56 + 5 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7206
SELECT ALL + CASE 20 WHEN + 74 * - - CAST ( NULL AS INTEGER ) - + - ( - 65 ) + + NULLIF ( - 6, - - 38 ) * + 46 * - COUNT ( * ) THEN CAST ( - CASE - - 18 WHEN - + 20 / 34 + + - 73 + - ( + COUNT ( * ) ) * - 30 THEN - CASE - 39 WHEN + MIN ( DISTINCT - 53 ) * 63 + + MAX ( - 12 ) THEN + - COALESCE ( ( - + 79 ), 80 + COUNT ( * ) ) ELSE NULL END ELSE 79 END AS INTEGER ) ELSE NULL END * - 56 + 5 col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7207
SELECT DISTINCT 48 DIV 25 + - - 88 col2
----
89

skipif mysql # not compatible
query I rowsort label-7207
SELECT DISTINCT 48 / 25 + - - 88 col2
----
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7208
SELECT ALL - 2 DIV COUNT( * ) * 58 * 79 + - + COUNT( * ) + 42
----
-9123

skipif mysql # not compatible
query I rowsort label-7208
SELECT ALL - 2 / COUNT ( * ) * 58 * 79 + - + COUNT ( * ) + 42
----
-9123

onlyif mysql # aggregate syntax: 
query I rowsort label-7209
SELECT + NULLIF ( - COUNT( * ), + - 17 ) * + 25 * 75 - + 28
----
-1903

skipif mysql # not compatible
query I rowsort label-7209
SELECT + NULLIF ( - COUNT ( * ), + - 17 ) * + 25 * 75 - + 28
----
-1903

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7210
SELECT - 19 DIV - - 61 AS col2, COUNT( * )
----
0
1

skipif mysql # not compatible
query II rowsort label-7210
SELECT - 19 / - - 61 AS col2, COUNT ( * )
----
0
1

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

skipif mysql # not compatible
query I rowsort label-7211
SELECT - 7 * - - COUNT ( * )
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-7212
SELECT DISTINCT - 69 / - + 87 + - - CASE - - SUM( - + 92 ) WHEN + 50 THEN + 71 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7212
SELECT DISTINCT - 69 / - + 87 + - - CASE - - SUM ( - + 92 ) WHEN + 50 THEN + 71 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7213
SELECT DISTINCT - 92 DIV + 32 + 56 AS col1
----
54

skipif mysql # not compatible
query I rowsort label-7213
SELECT DISTINCT - 92 / + 32 + 56 AS col1
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-7214
SELECT - - 77 * - COUNT( * ) * + 50 * - 30
----
115500

skipif mysql # not compatible
query I rowsort label-7214
SELECT - - 77 * - COUNT ( * ) * + 50 * - 30
----
115500

query I rowsort
SELECT DISTINCT + ( + NULLIF ( 93, - 87 ) )
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7216
SELECT DISTINCT - + 83 DIV COUNT( * ) + + COALESCE ( 94, CAST( + 25 AS SIGNED ) ) + - 91 * + 30 + + 49 + - 64 * + - 40 + COUNT( * ) * + 29 * 96
----
2674

skipif mysql # not compatible
query I rowsort label-7216
SELECT DISTINCT - + 83 / COUNT ( * ) + + COALESCE ( 94, CAST ( + 25 AS INTEGER ) ) + - 91 * + 30 + + 49 + - 64 * + - 40 + COUNT ( * ) * + 29 * 96
----
2674

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7217
SELECT ALL - 59 * 13 - - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7217
SELECT ALL - 59 * 13 - - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT - + 2 * 98 + - - 0 + + + 15 AS col0
----
-181

onlyif mysql # aggregate syntax: 
query I rowsort label-7219
SELECT 73 - - NULLIF ( + 83, + + 80 + 50 ) - - + MIN( + + 74 ) AS col0
----
230

skipif mysql # not compatible
query I rowsort label-7219
SELECT 73 - - NULLIF ( + 83, + + 80 + 50 ) - - + MIN ( + + 74 ) AS col0
----
230

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

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

query I rowsort
SELECT + 6 * + - 16
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-7222
SELECT DISTINCT - ( + + COUNT( * ) ) - - 84
----
83

skipif mysql # not compatible
query I rowsort label-7222
SELECT DISTINCT - ( + + COUNT ( * ) ) - - 84
----
83

query I rowsort
SELECT + 33 + - 84
----
-51

query I rowsort
SELECT DISTINCT COALESCE ( + + 89, 98 ) AS col1
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-7225
SELECT - + MIN( 49 ) AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-7225
SELECT - + MIN ( 49 ) AS col0
----
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7226
SELECT 62 - COUNT( * ) + + 52 DIV - 97 AS col2
----
61

skipif mysql # not compatible
query I rowsort label-7226
SELECT 62 - COUNT ( * ) + + 52 / - 97 AS col2
----
61

onlyif mysql # DIV for integer division: 
query I rowsort label-7227
SELECT 21 DIV - + 39
----
0

skipif mysql # not compatible
query I rowsort label-7227
SELECT 21 / - + 39
----
0

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

skipif mysql # not compatible
query I rowsort label-7228
SELECT + 9 * + COUNT ( ALL - - 47 ) AS col1
----
9

query I rowsort
SELECT DISTINCT 57 * + + 10 AS col0
----
570

onlyif mysql # DIV for integer division: 
query I rowsort label-7230
SELECT 92 DIV - + 73
----
-1

skipif mysql # not compatible
query I rowsort label-7230
SELECT 92 / - + 73
----
-1

query I rowsort
SELECT ALL 9 + + + 77 + - + ( + + 18 )
----
68

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7233
SELECT DISTINCT - COUNT( * ) + + CAST( - - 36 AS SIGNED ) * - - 34 + - 35 * - COUNT( + 66 ) DIV - + 50 * - + 13 AS col2
----
1223

skipif mysql # not compatible
query I rowsort label-7233
SELECT DISTINCT - COUNT ( * ) + + CAST ( - - 36 AS INTEGER ) * - - 34 + - 35 * - COUNT ( + 66 ) / - + 50 * - + 13 AS col2
----
1223

query I rowsort
SELECT DISTINCT 14 + + - 93
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-7235
SELECT ALL 73 + COALESCE ( + - 88, 95 + + 17 * + COUNT( * ) + NULLIF ( + 59, - 6 ) ) AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-7235
SELECT ALL 73 + COALESCE ( + - 88, 95 + + 17 * + COUNT ( * ) + NULLIF ( + 59, - 6 ) ) AS col2
----
-15

query I rowsort
SELECT 27 * - 99 AS col2
----
-2673

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7237
SELECT ALL 49 + - + 28 + + + 6 * + 46 DIV CAST( + ( 1 ) AS SIGNED )
----
297

skipif mysql # not compatible
query I rowsort label-7237
SELECT ALL 49 + - + 28 + + + 6 * + 46 / CAST ( + ( 1 ) AS INTEGER )
----
297

query I rowsort
SELECT 98 + + + 43
----
141

query I rowsort
SELECT 43 - - ( + ( - 12 ) )
----
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7240
SELECT 24 DIV + + COUNT( * ) + + 8 - + COUNT( * ) + MIN( + + 41 ) * + NULLIF ( - ( - 81 ), 55 ), - 6 AS col2
----
3352
-6

skipif mysql # not compatible
query II rowsort label-7240
SELECT 24 / + + COUNT ( * ) + + 8 - + COUNT ( * ) + MIN ( + + 41 ) * + NULLIF ( - ( - 81 ), 55 ), - 6 AS col2
----
3352
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-7241
SELECT 52 * 97 DIV 76 AS col2
----
66

skipif mysql # not compatible
query I rowsort label-7241
SELECT 52 * 97 / 76 AS col2
----
66

query I rowsort
SELECT ( + 43 ) + + 45 + + 0 col0
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-7243
SELECT - 18 DIV - 2 + + ( 15 )
----
24

skipif mysql # not compatible
query I rowsort label-7243
SELECT - 18 / - 2 + + ( 15 )
----
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7244
SELECT 42 + + COUNT( * ) DIV + 69 * 28 AS col1
----
42

skipif mysql # not compatible
query I rowsort label-7244
SELECT 42 + + COUNT ( * ) / + 69 * 28 AS col1
----
42

query I rowsort
SELECT ALL - 16 * + 18 AS col0
----
-288

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7247
SELECT 61 DIV 15 + + 60 AS col0
----
64

skipif mysql # not compatible
query I rowsort label-7247
SELECT 61 / 15 + + 60 AS col0
----
64

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

skipif mysql # not compatible
query I rowsort label-7248
SELECT ALL - COUNT ( * ) * 85 AS col1
----
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7249
SELECT COUNT( * ) DIV COALESCE ( + CASE - 85 WHEN 89 * + MIN( DISTINCT 82 * - 58 ) - COUNT( * ) * 22 THEN + 95 ELSE NULLIF ( - ( 8 ), + 51 * + 58 - + 34 * - ( + 67 * - 59 ) ) END, COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-7249
SELECT COUNT ( * ) / COALESCE ( + CASE - 85 WHEN 89 * + MIN ( DISTINCT 82 * - 58 ) - COUNT ( * ) * 22 THEN + 95 ELSE NULLIF ( - ( 8 ), + 51 * + 58 - + 34 * - ( + 67 * - 59 ) ) END, COUNT ( * ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7250
SELECT MAX( DISTINCT - 14 ) + + 52 AS col2
----
38

skipif mysql # not compatible
query I rowsort label-7250
SELECT MAX ( DISTINCT - 14 ) + + 52 AS col2
----
38

query I rowsort
SELECT DISTINCT 59 * + 56
----
3304

onlyif mysql # DIV for integer division: 
query I rowsort label-7252
SELECT ALL + 80 DIV COALESCE ( - 65, 60 )
----
-1

skipif mysql # not compatible
query I rowsort label-7252
SELECT ALL + 80 / COALESCE ( - 65, 60 )
----
-1

query I rowsort
SELECT 81 * - 88 + + 61
----
-7067

query I rowsort
SELECT ALL - COALESCE ( 58, - 12 - + 70 )
----
-58

query I rowsort
SELECT 57 * + 0 AS col0
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7257
SELECT 66 - + MIN( + NULLIF ( + 66, + 59 ) )
----
0

skipif mysql # not compatible
query I rowsort label-7257
SELECT 66 - + MIN ( + NULLIF ( + 66, + 59 ) )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7258
SELECT 73 + - CAST( - 74 AS SIGNED )
----
147

skipif mysql # not compatible
query I rowsort label-7258
SELECT 73 + - CAST ( - 74 AS INTEGER )
----
147

query I rowsort
SELECT COALESCE ( 38, - NULLIF ( 33, + 14 ) + 96 ) - 17 * + 10
----
-132

onlyif mysql # aggregate syntax: 
query I rowsort label-7260
SELECT ALL - 91 * + MIN( DISTINCT - 23 )
----
2093

skipif mysql # not compatible
query I rowsort label-7260
SELECT ALL - 91 * + MIN ( DISTINCT - 23 )
----
2093

query I rowsort
SELECT 82 * 68
----
5576

query I rowsort
SELECT 18 * 79 col1
----
1422

query I rowsort
SELECT ( + 46 ) + + 35 AS col0
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7264
SELECT DISTINCT - 9 * - CAST( 62 AS SIGNED )
----
558

skipif mysql # not compatible
query I rowsort label-7264
SELECT DISTINCT - 9 * - CAST ( 62 AS INTEGER )
----
558

onlyif mysql # aggregate syntax: 
query I rowsort label-7265
SELECT ALL NULLIF ( 86, 99 * + 32 - MAX( + 37 ) ) + - 14 AS col2
----
72

skipif mysql # not compatible
query I rowsort label-7265
SELECT ALL NULLIF ( 86, 99 * + 32 - MAX ( + 37 ) ) + - 14 AS col2
----
72

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

skipif mysql # not compatible
query I rowsort label-7266
SELECT DISTINCT MAX ( - 21 )
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-7267
SELECT ALL - MAX( DISTINCT 91 ) * COUNT( * ) AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-7267
SELECT ALL - MAX ( DISTINCT 91 ) * COUNT ( * ) AS col1
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7268
SELECT DISTINCT + 37 + + 24 / CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7268
SELECT DISTINCT + 37 + + 24 / CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT DISTINCT - 73 + 9
----
-64

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

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

query I rowsort
SELECT 98 * - 26
----
-2548

onlyif mysql # aggregate syntax: 
query I rowsort label-7272
SELECT COUNT( * ) + + 66 * + 45 AS col1
----
2971

skipif mysql # not compatible
query I rowsort label-7272
SELECT COUNT ( * ) + + 66 * + 45 AS col1
----
2971

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7273
SELECT DISTINCT MIN( 77 ) DIV 47 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7273
SELECT DISTINCT MIN ( 77 ) / 47 AS col1
----
1

query I rowsort
SELECT 43 + 92 AS col2
----
135

query I rowsort
SELECT ALL NULLIF ( + 57, - ( + 34 ) + 30 * 95 ) * 71 AS col2
----
4047

query I rowsort
SELECT DISTINCT 61 + - 47 * 63
----
-2900

onlyif mysql # aggregate syntax: 
query I rowsort label-7277
SELECT DISTINCT - COUNT( * ) + 25 * - 91
----
-2276

skipif mysql # not compatible
query I rowsort label-7277
SELECT DISTINCT - COUNT ( * ) + 25 * - 91
----
-2276

onlyif mysql # DIV for integer division: 
query I rowsort label-7278
SELECT DISTINCT + 47 DIV + 79
----
0

skipif mysql # not compatible
query I rowsort label-7278
SELECT DISTINCT + 47 / + 79
----
0

query I rowsort
SELECT ALL 96 + + 71 AS col0
----
167

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7280
SELECT COALESCE ( 72, - COUNT( * ) + + CAST( 51 AS SIGNED ) * ( - ( 19 ) ), - 14 * 73 + + 30 ) DIV - 83
----
0

skipif mysql # not compatible
query I rowsort label-7280
SELECT COALESCE ( 72, - COUNT ( * ) + + CAST ( 51 AS INTEGER ) * ( - ( 19 ) ), - 14 * 73 + + 30 ) / - 83
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7281
SELECT CASE + 73 WHEN CAST( NULL AS SIGNED ) THEN - ( + 21 ) + 5 WHEN + 22 * 83 THEN - 1 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7281
SELECT CASE + 73 WHEN CAST ( NULL AS INTEGER ) THEN - ( + 21 ) + 5 WHEN + 22 * 83 THEN - 1 END col1
----
NULL

query I rowsort
SELECT 23 * - 74
----
-1702

onlyif mysql # aggregate syntax: 
query I rowsort label-7283
SELECT - COUNT( DISTINCT + 52 ) * + 35 - 14 * - 33 AS col1
----
427

skipif mysql # not compatible
query I rowsort label-7283
SELECT - COUNT ( DISTINCT + 52 ) * + 35 - 14 * - 33 AS col1
----
427

query I rowsort
SELECT - 22 * + 31 AS col0
----
-682

query I rowsort
SELECT + ( + 75 ) * 94 col2
----
7050

query I rowsort
SELECT ALL - - 4 * - 22 col1
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-7287
SELECT + + COUNT( * ) * 23 - - 6 * 51 col1
----
329

skipif mysql # not compatible
query I rowsort label-7287
SELECT + + COUNT ( * ) * 23 - - 6 * 51 col1
----
329

query I rowsort
SELECT ALL + COALESCE ( - 17, 60 ) AS col0
----
-17

query I rowsort
SELECT DISTINCT + - CASE - 84 WHEN 70 / 78 THEN NULL ELSE + 45 * - 42 + + 6 END AS col2
----
1884

onlyif mysql # DIV for integer division: 
query I rowsort label-7290
SELECT DISTINCT - COALESCE ( + ( - 70 ), + 42, + ( 66 ) + - 6 ) DIV + 59 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7290
SELECT DISTINCT - COALESCE ( + ( - 70 ), + 42, + ( 66 ) + - 6 ) / + 59 AS col2
----
1

query I rowsort
SELECT ALL + 78 * 49
----
3822

onlyif mysql # aggregate syntax: 
query I rowsort label-7292
SELECT 98 * 20 + + COUNT( * ) * - 14 col1
----
1946

skipif mysql # not compatible
query I rowsort label-7292
SELECT 98 * 20 + + COUNT ( * ) * - 14 col1
----
1946

query I rowsort
SELECT DISTINCT 37 * 95 + - 89
----
3426

onlyif mysql # aggregate syntax: 
query I rowsort label-7294
SELECT - 20 * + NULLIF ( - 45 - + MIN( + 56 ), + 36 * - 47 ) - 79
----
1941

skipif mysql # not compatible
query I rowsort label-7294
SELECT - 20 * + NULLIF ( - 45 - + MIN ( + 56 ), + 36 * - 47 ) - 79
----
1941

onlyif mysql # aggregate syntax: 
query I rowsort label-7295
SELECT DISTINCT + 6 * CASE 72 WHEN ( 69 ) THEN + 40 * - ( - NULLIF ( CASE 6 WHEN - ( + 18 ) THEN 45 ELSE NULL END, 68 + + 54 ) ) END + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7295
SELECT DISTINCT + 6 * CASE 72 WHEN ( 69 ) THEN + 40 * - ( - NULLIF ( CASE 6 WHEN - ( + 18 ) THEN 45 ELSE NULL END, 68 + + 54 ) ) END + COUNT ( * ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7296
SELECT DISTINCT - CAST( 97 AS SIGNED ) * 14 + COALESCE ( 96 + 56 DIV - 90, - CAST( NULL AS SIGNED ) + - 66 )
----
-1262

skipif mysql # not compatible
query I rowsort label-7296
SELECT DISTINCT - CAST ( 97 AS INTEGER ) * 14 + COALESCE ( 96 + 56 / - 90, - CAST ( NULL AS INTEGER ) + - 66 )
----
-1262

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7297
SELECT ALL + ( CAST( NULL AS SIGNED ) ) + - 7 / 30
----
NULL

skipif mysql # not compatible
query I rowsort label-7297
SELECT ALL + ( CAST ( NULL AS INTEGER ) ) + - 7 / 30
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7298
SELECT ALL + CASE WHEN NOT ( SUM( + 2 ) ) IN ( 85 + 1 ) THEN 54 WHEN 15 / ( + 19 * 92 ) NOT IN ( - 22 + + COUNT( 18 ) ) THEN NULL END + - 48
----
6

skipif mysql # not compatible
query I rowsort label-7298
SELECT ALL + CASE WHEN NOT ( SUM ( + 2 ) ) IN ( 85 + 1 ) THEN 54 WHEN 15 / ( + 19 * 92 ) NOT IN ( - 22 + + COUNT ( 18 ) ) THEN NULL END + - 48
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7299
SELECT ALL ( - + COUNT( + CAST( + 42 AS SIGNED ) ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7299
SELECT ALL ( - + COUNT ( + CAST ( + 42 AS INTEGER ) ) ) AS col2
----
-1

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7301
SELECT ALL - COUNT( 15 ) + NULLIF ( - 8, COALESCE ( 25, - CAST( NULL AS SIGNED ) ) ) * 87 AS col2
----
-697

skipif mysql # not compatible
query I rowsort label-7301
SELECT ALL - COUNT ( 15 ) + NULLIF ( - 8, COALESCE ( 25, - CAST ( NULL AS INTEGER ) ) ) * 87 AS col2
----
-697

onlyif mysql # aggregate syntax: 
query I rowsort label-7302
SELECT ( + + COUNT( * ) ) * 83 - - 81
----
164

skipif mysql # not compatible
query I rowsort label-7302
SELECT ( + + COUNT ( * ) ) * 83 - - 81
----
164

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

skipif mysql # not compatible
query I rowsort label-7303
SELECT - MAX ( DISTINCT 59 )
----
-59

query I rowsort
SELECT ALL - 60 * 15 AS col1
----
-900

query I rowsort
SELECT - 32 * 24 AS col0
----
-768

onlyif mysql # aggregate syntax: 
query I rowsort label-7306
SELECT DISTINCT + COALESCE ( + 91, + COUNT( * ) ) * 1
----
91

skipif mysql # not compatible
query I rowsort label-7306
SELECT DISTINCT + COALESCE ( + 91, + COUNT ( * ) ) * 1
----
91

query I rowsort
SELECT ALL - 88 - + 18 AS col0
----
-106

query I rowsort
SELECT DISTINCT COALESCE ( - + 79, + 38 * - 62 ) AS col1
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-7309
SELECT - 2 - + 71 * COUNT( * )
----
-73

skipif mysql # not compatible
query I rowsort label-7309
SELECT - 2 - + 71 * COUNT ( * )
----
-73

query I rowsort
SELECT ALL COALESCE ( + 82, - 75 )
----
82

query I rowsort
SELECT ALL - ( - + 52 ) - - 7 * + 6 AS col0
----
94

query I rowsort
SELECT - 66 + - - 25
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7313
SELECT + CASE + + 1 WHEN 13 - + 26 THEN + CAST( NULL AS SIGNED ) WHEN - 5 - + COUNT( * ) * CASE 25 * 97 WHEN 32 THEN NULL WHEN NULLIF ( 96, + 70 * + 95 ) THEN - 62 / - COALESCE ( - 44, - 14 ) + + SUM( 94 + 95 ) * - 13 END THEN NULL END * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7313
SELECT + CASE + + 1 WHEN 13 - + 26 THEN + CAST ( NULL AS INTEGER ) WHEN - 5 - + COUNT ( * ) * CASE 25 * 97 WHEN 32 THEN NULL WHEN NULLIF ( 96, + 70 * + 95 ) THEN - 62 / - COALESCE ( - 44, - 14 ) + + SUM ( 94 + 95 ) * - 13 END THEN NULL END * + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7314
SELECT - 42 + SUM( DISTINCT + ( 10 ) )
----
-32

skipif mysql # not compatible
query I rowsort label-7314
SELECT - 42 + SUM ( DISTINCT + ( 10 ) )
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-7315
SELECT + NULLIF ( - - NULLIF ( - 86, 68 ), 17 * 99 ) * + ( 83 * + NULLIF ( 20, 32 + COUNT( * ) ) + 23 ) AS col0
----
-144738

skipif mysql # not compatible
query I rowsort label-7315
SELECT + NULLIF ( - - NULLIF ( - 86, 68 ), 17 * 99 ) * + ( 83 * + NULLIF ( 20, 32 + COUNT ( * ) ) + 23 ) AS col0
----
-144738

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7316
SELECT ALL CAST( - 59 AS SIGNED ) DIV + COUNT( * ) AS col1
----
-59

skipif mysql # not compatible
query I rowsort label-7316
SELECT ALL CAST ( - 59 AS INTEGER ) / + COUNT ( * ) AS col1
----
-59

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-7319
SELECT - - COUNT ( * ) * 65
----
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7320
SELECT SUM( - 47 ) DIV - 79 + - 76 * + 64
----
-4864

skipif mysql # not compatible
query I rowsort label-7320
SELECT SUM ( - 47 ) / - 79 + - 76 * + 64
----
-4864

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7322
SELECT + + 37 * - CASE CASE + 71 WHEN + 43 + + 55 THEN NULL ELSE - 3 END WHEN - COUNT( * ) THEN + 24 + + CAST( NULL AS SIGNED ) * + 41 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7322
SELECT + + 37 * - CASE CASE + 71 WHEN + 43 + + 55 THEN NULL ELSE - 3 END WHEN - COUNT ( * ) THEN + 24 + + CAST ( NULL AS INTEGER ) * + 41 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7323
SELECT ALL + 74 DIV + - 37
----
-2

skipif mysql # not compatible
query I rowsort label-7323
SELECT ALL + 74 / + - 37
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7324
SELECT + - MIN( - + 66 ) + - 71 AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-7324
SELECT + - MIN ( - + 66 ) + - 71 AS col1
----
-5

query I rowsort
SELECT DISTINCT 51 * 50
----
2550

query I rowsort
SELECT ALL + 82 * + 80 AS col0
----
6560

onlyif mysql # aggregate syntax: 
query I rowsort label-7327
SELECT 13 * - + MIN( DISTINCT + 56 ) + + 29
----
-699

skipif mysql # not compatible
query I rowsort label-7327
SELECT 13 * - + MIN ( DISTINCT + 56 ) + + 29
----
-699

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7329
SELECT DISTINCT 34 * 59 / CASE 8 WHEN 41 + 16 THEN NULL WHEN 98 * CAST( 91 * + 47 AS SIGNED ) THEN AVG ( 13 ) + - 87 ELSE NULL END + 21 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7329
SELECT DISTINCT 34 * 59 / CASE 8 WHEN 41 + 16 THEN NULL WHEN 98 * CAST ( 91 * + 47 AS INTEGER ) THEN AVG ( 13 ) + - 87 ELSE NULL END + 21 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 16 * - + 0 + 46
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7331
SELECT ALL + CASE + + 62 WHEN 48 * CAST( COUNT( * ) AS SIGNED ) THEN ( + 65 ) END * 82 + - 35 * ( - 14 * ( - COUNT( * ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7331
SELECT ALL + CASE + + 62 WHEN 48 * CAST ( COUNT ( * ) AS INTEGER ) THEN ( + 65 ) END * 82 + - 35 * ( - 14 * ( - COUNT ( * ) ) )
----
NULL

query I rowsort
SELECT DISTINCT + 30 * + 50 + - 21
----
1479

query I rowsort
SELECT DISTINCT 17 * 21 + 20
----
377

onlyif mysql # aggregate syntax: 
query I rowsort label-7334
SELECT DISTINCT CASE - COUNT( 3 ) WHEN ( 15 ) - 99 THEN NULL ELSE + 7 END * - 80 + - 46 col2
----
-606

skipif mysql # not compatible
query I rowsort label-7334
SELECT DISTINCT CASE - COUNT ( 3 ) WHEN ( 15 ) - 99 THEN NULL ELSE + 7 END * - 80 + - 46 col2
----
-606

onlyif mysql # aggregate syntax: 
query I rowsort label-7335
SELECT COALESCE ( - COALESCE ( - 64, 19 ), 43 + COUNT( * ) ) col1
----
64

skipif mysql # not compatible
query I rowsort label-7335
SELECT COALESCE ( - COALESCE ( - 64, 19 ), 43 + COUNT ( * ) ) col1
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7336
SELECT DISTINCT CASE + 6 WHEN 23 * - CAST( NULL AS SIGNED ) THEN + 69 + + 70 ELSE NULL END * CAST( - 68 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7336
SELECT DISTINCT CASE + 6 WHEN 23 * - CAST ( NULL AS INTEGER ) THEN + 69 + + 70 ELSE NULL END * CAST ( - 68 AS INTEGER )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-7337
SELECT - COUNT ( * ) * - 26
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7338
SELECT + 32 + - - COUNT( - 41 ) * - CAST( - 9 * - 34 AS SIGNED ) AS col1
----
-274

skipif mysql # not compatible
query I rowsort label-7338
SELECT + 32 + - - COUNT ( - 41 ) * - CAST ( - 9 * - 34 AS INTEGER ) AS col1
----
-274

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7339
SELECT - COUNT( * ) + - COALESCE ( - 98, COUNT( * ), 17 DIV 53 ) + + 86 * 29
----
2591

skipif mysql # not compatible
query I rowsort label-7339
SELECT - COUNT ( * ) + - COALESCE ( - 98, COUNT ( * ), 17 / 53 ) + + 86 * 29
----
2591

onlyif mysql # aggregate syntax: 
query I rowsort label-7340
SELECT DISTINCT - 9 * - - 84 - - COUNT( * ) * - 46 AS col1
----
-802

skipif mysql # not compatible
query I rowsort label-7340
SELECT DISTINCT - 9 * - - 84 - - COUNT ( * ) * - 46 AS col1
----
-802

onlyif mysql # aggregate syntax: 
query I rowsort label-7341
SELECT ALL - CASE CASE + 16 WHEN + 19 * 50 THEN COUNT( * ) END WHEN 92 * 28 THEN 54 * 75 END * - ( 90 * + 99 + 16 ) - + 89 * - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7341
SELECT ALL - CASE CASE + 16 WHEN + 19 * 50 THEN COUNT ( * ) END WHEN 92 * 28 THEN 54 * 75 END * - ( 90 * + 99 + 16 ) - + 89 * - COUNT ( * ) AS col2
----
NULL

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7345
SELECT ALL + ( + + 43 ) - - COUNT( * )
----
44

skipif mysql # not compatible
query I rowsort label-7345
SELECT ALL + ( + + 43 ) - - COUNT ( * )
----
44

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

skipif mysql # not compatible
query I rowsort label-7346
SELECT ALL - COUNT ( * ) / + 54
----
0

query I rowsort
SELECT - 55 + 14
----
-41

query II rowsort
SELECT DISTINCT 67 AS col2, 59 AS col1
----
67
59

query I rowsort
SELECT ( 68 ) * + 2 col2
----
136

query II rowsort
SELECT - 69 AS col0, + 22 AS col0
----
-69
22

query II rowsort
SELECT - 70, + 69 AS col1
----
-70
69

query I rowsort
SELECT DISTINCT + 12 * + 9 col1
----
108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7353
SELECT - COALESCE ( + COUNT( * ), + + 6, CASE - 27 WHEN MIN( - CAST( - 96 AS SIGNED ) ) THEN 87 ELSE - CASE 79 WHEN 56 * 30 THEN NULL WHEN COUNT( * ) + COUNT( * ) THEN - ( - 22 ) + ( ( - 98 ) ) WHEN - 16 + + CASE WHEN COUNT( * ) IN ( 90 ) THEN - CAST( NULL AS SIGNED ) + + 81 END / 12 THEN NULL END * - 17 END - - COUNT( * ), 20 + - 72 * 86 )
----
-1

skipif mysql # not compatible
query I rowsort label-7353
SELECT - COALESCE ( + COUNT ( * ), + + 6, CASE - 27 WHEN MIN ( - CAST ( - 96 AS INTEGER ) ) THEN 87 ELSE - CASE 79 WHEN 56 * 30 THEN NULL WHEN COUNT ( * ) + COUNT ( * ) THEN - ( - 22 ) + ( ( - 98 ) ) WHEN - 16 + + CASE WHEN COUNT ( * ) IN ( 90 ) THEN - CAST ( NULL AS INTEGER ) + + 81 END / 12 THEN NULL END * - 17 END - - COUNT ( * ), 20 + - 72 * 86 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7354
SELECT DISTINCT + 61 * - 19 * 88 + - 69 DIV ( 9 DIV 1 - + 7 ) col1
----
-102026

skipif mysql # not compatible
query I rowsort label-7354
SELECT DISTINCT + 61 * - 19 * 88 + - 69 / ( 9 / 1 - + 7 ) col1
----
-102026

query I rowsort
SELECT DISTINCT + + 70 * - - ( - - 46 ) + 98 AS col1
----
3318

query II rowsort
SELECT ALL 1, + 12 AS col0
----
1
12

query I rowsort
SELECT ALL + 11 * - ( + 14 ) AS col0
----
-154

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

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

query I rowsort
SELECT ALL + ( - 85 ) + + + 86 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7360
SELECT ALL - 62 + - + ( - + ( + MIN( DISTINCT - 5 ) ) ) - 37
----
-104

skipif mysql # not compatible
query I rowsort label-7360
SELECT ALL - 62 + - + ( - + ( + MIN ( DISTINCT - 5 ) ) ) - 37
----
-104

onlyif mysql # DIV for integer division: 
query I rowsort label-7361
SELECT + 36 DIV + 60 - + + 42
----
-42

skipif mysql # not compatible
query I rowsort label-7361
SELECT + 36 / + 60 - + + 42
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-7362
SELECT SUM( ALL + 57 ) AS col2
----
57

skipif mysql # not compatible
query I rowsort label-7362
SELECT SUM ( ALL + 57 ) AS col2
----
57

query I rowsort
SELECT DISTINCT 85 + + - 93
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7364
SELECT + NULLIF ( + CAST( NULL AS SIGNED ), 28 * - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7364
SELECT + NULLIF ( + CAST ( NULL AS INTEGER ), 28 * - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7365
SELECT - - 19 * - NULLIF ( + - ( 7 ), COUNT( * ) ) + - 32
----
101

skipif mysql # not compatible
query I rowsort label-7365
SELECT - - 19 * - NULLIF ( + - ( 7 ), COUNT ( * ) ) + - 32
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-7366
SELECT ALL + 96 + MAX( DISTINCT ( 76 ) ) AS col0
----
172

skipif mysql # not compatible
query I rowsort label-7366
SELECT ALL + 96 + MAX ( DISTINCT ( 76 ) ) AS col0
----
172

query I rowsort
SELECT ALL + 26 + + 35 + - 91 + 31 * 94
----
2884

query I rowsort
SELECT DISTINCT - 68 + + 20
----
-48

query I rowsort
SELECT ALL 26 * 40 AS col0
----
1040

onlyif mysql # DIV for integer division: 
query I rowsort label-7370
SELECT 52 * + 77 DIV + 7
----
572

skipif mysql # not compatible
query I rowsort label-7370
SELECT 52 * + 77 / + 7
----
572

query I rowsort
SELECT DISTINCT + + ( 99 ) + - 15 AS col0
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7372
SELECT ALL - - 53 * - + MIN( 86 ) * 48 + + CASE + 93 WHEN 51 * + 9 + - 33 THEN NULL WHEN + 74 + COUNT( ALL 46 ) * COUNT( * ) THEN 38 * + ( + 62 * - COUNT( * ) ) ELSE - CASE WHEN NOT - 2 >= ( 3 ) THEN - 9 + - ( CAST( + CASE WHEN ( NULL ) < ( NULL ) THEN NULL ELSE 14 END AS SIGNED ) ) * - 38 ELSE NULL END END * 12 AS col2
----
-225060

skipif mysql # not compatible
query I rowsort label-7372
SELECT ALL - - 53 * - + MIN ( 86 ) * 48 + + CASE + 93 WHEN 51 * + 9 + - 33 THEN NULL WHEN + 74 + COUNT ( ALL 46 ) * COUNT ( * ) THEN 38 * + ( + 62 * - COUNT ( * ) ) ELSE - CASE WHEN NOT - 2 >= ( 3 ) THEN - 9 + - ( CAST ( + CASE WHEN ( NULL ) < ( NULL ) THEN NULL ELSE 14 END AS INTEGER ) ) * - 38 ELSE NULL END END * 12 AS col2
----
-225060

onlyif mysql # aggregate syntax: 
query I rowsort label-7373
SELECT DISTINCT - 77 * + + ( + CASE 0 WHEN 66 * - 76 - - COUNT( * ) THEN SUM( + 44 ) * COUNT( * ) - 25 WHEN NULLIF ( - COUNT( * ), ( - ( + 33 ) ) ) THEN 56 * + 3 - 41 * 96 ELSE NULL END ) * 48 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7373
SELECT DISTINCT - 77 * + + ( + CASE 0 WHEN 66 * - 76 - - COUNT ( * ) THEN SUM ( + 44 ) * COUNT ( * ) - 25 WHEN NULLIF ( - COUNT ( * ), ( - ( + 33 ) ) ) THEN 56 * + 3 - 41 * 96 ELSE NULL END ) * 48 col1
----
NULL

query I rowsort
SELECT 14 * 28 * - 6 * + 18 + - 21 * + CASE ( - 0 ) WHEN 67 * - 99 THEN - 69 + + 50 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7375
SELECT ALL CASE 67 WHEN - 22 * ( + 45 ) * MIN( ALL ( 45 ) ) + + 76 THEN NULL ELSE 79 END * + ( 13 )
----
1027

skipif mysql # not compatible
query I rowsort label-7375
SELECT ALL CASE 67 WHEN - 22 * ( + 45 ) * MIN ( ALL ( 45 ) ) + + 76 THEN NULL ELSE 79 END * + ( 13 )
----
1027

onlyif mysql # aggregate syntax: 
query I rowsort label-7376
SELECT ALL 9 - - - 12 - + COUNT( * ) * - 7 col2
----
4

skipif mysql # not compatible
query I rowsort label-7376
SELECT ALL 9 - - - 12 - + COUNT ( * ) * - 7 col2
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7377
SELECT 69 * COUNT( * ) * - - CAST( NULL AS SIGNED ) + - CASE 78 WHEN 28 * 14 + 93 THEN - COUNT( * ) END / + 40
----
NULL

skipif mysql # not compatible
query I rowsort label-7377
SELECT 69 * COUNT ( * ) * - - CAST ( NULL AS INTEGER ) + - CASE 78 WHEN 28 * 14 + 93 THEN - COUNT ( * ) END / + 40
----
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-7379
SELECT DISTINCT COUNT ( * ) - + 8 AS col1
----
-7

query I rowsort
SELECT - 3 * - 33 * 12 + + + 77 AS col0
----
1265

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

skipif mysql # not compatible
query I rowsort label-7381
SELECT DISTINCT 2 / 96
----
0

query I rowsort
SELECT - 65 * 64 - - + 86 + - 16 AS col0
----
-4090

query I rowsort
SELECT 26 * + 53 AS col1
----
1378

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

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

query II rowsort
SELECT ALL 37 * + + 20 col2, 28 AS col1
----
740
28

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7387
SELECT NULLIF ( + 71, MAX( - CAST( NULL AS DECIMAL ) ) ) + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7387
SELECT NULLIF ( + 71, MAX ( - CAST ( NULL AS REAL ) ) ) + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT 51 * - 22
----
-1122

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

query I rowsort
SELECT 58 - - 59 + + 39 AS col1
----
156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7391
SELECT CAST( 50 AS SIGNED ) * - + 46
----
-2300

skipif mysql # not compatible
query I rowsort label-7391
SELECT CAST ( 50 AS INTEGER ) * - + 46
----
-2300

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7392
SELECT DISTINCT - 74 + CAST( NULL AS SIGNED ), 19 * - 94 AS col0
----
NULL
-1786

skipif mysql # not compatible
query II rowsort label-7392
SELECT DISTINCT - 74 + CAST ( NULL AS INTEGER ), 19 * - 94 AS col0
----
NULL
-1786

onlyif mysql # aggregate syntax: 
query I rowsort label-7393
SELECT ALL - + CASE - 72 WHEN - MIN( DISTINCT + 50 ) + - MAX( 16 ) THEN 82 / + 50 WHEN 95 * CASE 81 WHEN + 85 THEN NULL WHEN + 75 THEN NULL WHEN + 92 * + 22 + + 5 * + ( 24 * 9 ) THEN 16 + + 17 END + 35 THEN NULL END + - ( + 36 + + 50 * + 26 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7393
SELECT ALL - + CASE - 72 WHEN - MIN ( DISTINCT + 50 ) + - MAX ( 16 ) THEN 82 / + 50 WHEN 95 * CASE 81 WHEN + 85 THEN NULL WHEN + 75 THEN NULL WHEN + 92 * + 22 + + 5 * + ( 24 * 9 ) THEN 16 + + 17 END + 35 THEN NULL END + - ( + 36 + + 50 * + 26 ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7394
SELECT - MIN( ALL 97 ) + - 8
----
-105

skipif mysql # not compatible
query I rowsort label-7394
SELECT - MIN ( ALL 97 ) + - 8
----
-105

query I rowsort
SELECT ALL + CASE + - 80 WHEN 30 THEN 42 WHEN 94 THEN 44 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7396
SELECT DISTINCT - 24 + 0, 46 + - + COUNT( * ) - ( 25 ) AS col0
----
-24
20

skipif mysql # not compatible
query II rowsort label-7396
SELECT DISTINCT - 24 + 0, 46 + - + COUNT ( * ) - ( 25 ) AS col0
----
-24
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7397
SELECT DISTINCT + CAST( + MAX( 58 ) AS SIGNED )
----
58

skipif mysql # not compatible
query I rowsort label-7397
SELECT DISTINCT + CAST ( + MAX ( 58 ) AS INTEGER )
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7398
SELECT ALL - + COALESCE ( + 44, 47, + 43 ) + - COUNT( * ) AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-7398
SELECT ALL - + COALESCE ( + 44, 47, + 43 ) + - COUNT ( * ) AS col1
----
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-7399
SELECT + 21 + - 58 - 46 DIV 67 AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-7399
SELECT + 21 + - 58 - 46 / 67 AS col1
----
-37

query I rowsort
SELECT + 4 - ( 75 )
----
-71

query I rowsort
SELECT ALL - + 92 * + - 49 + + - 46
----
4462

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7403
SELECT + 21 DIV + MAX( DISTINCT + - 63 ) + - 49 + 90
----
41

skipif mysql # not compatible
query I rowsort label-7403
SELECT + 21 / + MAX ( DISTINCT + - 63 ) + - 49 + 90
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-7404
SELECT DISTINCT - 66 * - COUNT( * ) * - + MIN( DISTINCT + + 60 ) AS col0
----
-3960

skipif mysql # not compatible
query I rowsort label-7404
SELECT DISTINCT - 66 * - COUNT ( * ) * - + MIN ( DISTINCT + + 60 ) AS col0
----
-3960

query I rowsort
SELECT ALL + 65 * - + 3 + + - 59 * 15 + - 85 AS col0
----
-1165

onlyif mysql # aggregate syntax: 
query I rowsort label-7406
SELECT 90 + + COUNT( 90 )
----
91

skipif mysql # not compatible
query I rowsort label-7406
SELECT 90 + + COUNT ( 90 )
----
91

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7408
SELECT - ( - COUNT( * ) ) * + + 47 + - 19 AS col2
----
28

skipif mysql # not compatible
query I rowsort label-7408
SELECT - ( - COUNT ( * ) ) * + + 47 + - 19 AS col2
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7409
SELECT ALL + 43 * CAST( - - 2 AS SIGNED ) + COALESCE ( - NULLIF ( 63, 31 * + 87 ), - 3, MIN( + ( - 49 ) ), - COUNT( * ) ) DIV 31
----
84

skipif mysql # not compatible
query I rowsort label-7409
SELECT ALL + 43 * CAST ( - - 2 AS INTEGER ) + COALESCE ( - NULLIF ( 63, 31 * + 87 ), - 3, MIN ( + ( - 49 ) ), - COUNT ( * ) ) / 31
----
84

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

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7413
SELECT DISTINCT + + ( 29 ) * - 0 * + 72 * + CASE ( 98 ) WHEN + 67 THEN NULL ELSE 82 END - + COALESCE ( 99, COUNT( 85 ), + 37 DIV + MIN( - 41 ) )
----
-99

skipif mysql # not compatible
query I rowsort label-7413
SELECT DISTINCT + + ( 29 ) * - 0 * + 72 * + CASE ( 98 ) WHEN + 67 THEN NULL ELSE 82 END - + COALESCE ( 99, COUNT ( 85 ), + 37 / + MIN ( - 41 ) )
----
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-7414
SELECT + 32, COUNT( * ) + + 43 + MIN( 64 ) col2
----
32
108

skipif mysql # not compatible
query II rowsort label-7414
SELECT + 32, COUNT ( * ) + + 43 + MIN ( 64 ) col2
----
32
108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7415
SELECT 46 + CAST( 34 AS SIGNED ) * - 14 - 4 + 99 AS col2
----
-335

skipif mysql # not compatible
query I rowsort label-7415
SELECT 46 + CAST ( 34 AS INTEGER ) * - 14 - 4 + 99 AS col2
----
-335

onlyif mysql # DIV for integer division: 
query I rowsort label-7416
SELECT ALL - 1 DIV - 19 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7416
SELECT ALL - 1 / - 19 AS col2
----
0

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

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

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

skipif mysql # not compatible
query I rowsort label-7418
SELECT DISTINCT - COUNT ( * ) / - + 82 * COUNT ( - ( - - 75 ) )
----
0

query I rowsort
SELECT ALL 56 * - - 89 AS col1
----
4984

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7421
SELECT ALL - NULLIF ( + COUNT( * ), + NULLIF ( + - 8, + - CASE 64 WHEN + COALESCE ( 52, 73 - 65 ) * 95 THEN - COUNT( * ) WHEN + 18 + + 33 THEN NULL END ) * + 98 ) * + 15
----
-15

skipif mysql # not compatible
query I rowsort label-7421
SELECT ALL - NULLIF ( + COUNT ( * ), + NULLIF ( + - 8, + - CASE 64 WHEN + COALESCE ( 52, 73 - 65 ) * 95 THEN - COUNT ( * ) WHEN + 18 + + 33 THEN NULL END ) * + 98 ) * + 15
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-7422
SELECT COUNT( * ) * + 9 + + 11 col0, + COUNT( * )
----
20
1

skipif mysql # not compatible
query II rowsort label-7422
SELECT COUNT ( * ) * + 9 + + 11 col0, + COUNT ( * )
----
20
1

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

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

query I rowsort
SELECT DISTINCT + 84 * + 30 AS col2
----
2520

query I rowsort
SELECT ALL - COALESCE ( + 42, 65 + 12, - - 82 ) * + 8
----
-336

onlyif mysql # DIV for integer division: 
query I rowsort label-7426
SELECT - 67 + + - 38 DIV + 44 AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-7426
SELECT - 67 + + - 38 / + 44 AS col0
----
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7427
SELECT + COUNT( * ) DIV MAX( DISTINCT + 97 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7427
SELECT + COUNT ( * ) / MAX ( DISTINCT + 97 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7428
SELECT - 98 * - COUNT( ALL 31 ) + + 4 + + ( COUNT( * ) ) + + 22 * 4 * CASE - 36 WHEN + 72 THEN NULL WHEN 81 * + COUNT( * ) + + 72 * - MAX( ALL + 58 ) THEN 96 * - 22 - COALESCE ( 52, - 64 * ( 73 ) + 69 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7428
SELECT - 98 * - COUNT ( ALL 31 ) + + 4 + + ( COUNT ( * ) ) + + 22 * 4 * CASE - 36 WHEN + 72 THEN NULL WHEN 81 * + COUNT ( * ) + + 72 * - MAX ( ALL + 58 ) THEN 96 * - 22 - COALESCE ( 52, - 64 * ( 73 ) + 69 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7429
SELECT + COUNT( * ) - 70 col1
----
-69

skipif mysql # not compatible
query I rowsort label-7429
SELECT + COUNT ( * ) - 70 col1
----
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7430
SELECT - 19 * - MAX( + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

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

query I rowsort
SELECT 30 * 45 + COALESCE ( + + 95, 4 + + 53 ) AS col1
----
1445

query II rowsort
SELECT 87 col2, - 19 + + 65
----
87
46

onlyif mysql # aggregate syntax: 
query I rowsort label-7433
SELECT DISTINCT 48 + MIN( - 63 ) - + 65 * - COALESCE ( MIN( DISTINCT 63 ), + COUNT( * ) )
----
4080

skipif mysql # not compatible
query I rowsort label-7433
SELECT DISTINCT 48 + MIN ( - 63 ) - + 65 * - COALESCE ( MIN ( DISTINCT 63 ), + COUNT ( * ) )
----
4080

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

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

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

query I rowsort
SELECT + - 75 + + - 6 + - 63 * ( + 8 ) col0
----
-585

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7437
SELECT DISTINCT CAST( NULL AS SIGNED ) + - + 54 + COALESCE ( + - SUM( + - 68 ), ( NULLIF ( - 45, 14 ) ) ) * - 52
----
NULL

skipif mysql # not compatible
query I rowsort label-7437
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - + 54 + COALESCE ( + - SUM ( + - 68 ), ( NULLIF ( - 45, 14 ) ) ) * - 52
----
NULL

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

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

query II rowsort
SELECT + 25 col1, - 66 AS col1
----
25
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-7440
SELECT DISTINCT + 62 + COUNT( * ) + - 26 AS col0
----
37

skipif mysql # not compatible
query I rowsort label-7440
SELECT DISTINCT + 62 + COUNT ( * ) + - 26 AS col0
----
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7441
SELECT + 19 DIV 24 * - MAX( + + 18 )
----
0

skipif mysql # not compatible
query I rowsort label-7441
SELECT + 19 / 24 * - MAX ( + + 18 )
----
0

query I rowsort
SELECT - 89 + + 98
----
9

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7443
SELECT ALL 58 + ( + - 71 ) + CASE - 5 WHEN 18 / + 44 + + CAST( NULL AS DECIMAL ) / 56 THEN 52 + 96 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7443
SELECT ALL 58 + ( + - 71 ) + CASE - 5 WHEN 18 / + 44 + + CAST ( NULL AS REAL ) / 56 THEN 52 + 96 END
----
NULL

query I rowsort
SELECT ALL + COALESCE ( - 73, 49 * + 66 ) AS col0
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-7445
SELECT ALL 2 + - COUNT( * ) * + 96 + 20
----
-74

skipif mysql # not compatible
query I rowsort label-7445
SELECT ALL 2 + - COUNT ( * ) * + 96 + 20
----
-74

query I rowsort
SELECT DISTINCT + 1 + - 82 AS col2
----
-81

query I rowsort
SELECT ALL + 79 + + - 29
----
50

query I rowsort
SELECT - + 99 * - + 24 + - NULLIF ( - 68, + + 39 ) + 80
----
2524

onlyif mysql # DIV for integer division: 
query I rowsort label-7449
SELECT ALL - - ( + 54 ) DIV - ( 75 ) - + 25
----
-25

skipif mysql # not compatible
query I rowsort label-7449
SELECT ALL - - ( + 54 ) / - ( 75 ) - + 25
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-7450
SELECT - ( - 36 ) * COALESCE ( - - 86, + 59 + - 4 * 20, + NULLIF ( + COUNT( * ), 29 - - 52 ) * 54 )
----
3096

skipif mysql # not compatible
query I rowsort label-7450
SELECT - ( - 36 ) * COALESCE ( - - 86, + 59 + - 4 * 20, + NULLIF ( + COUNT ( * ), 29 - - 52 ) * 54 )
----
3096

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7451
SELECT COUNT( * ) DIV - - 45 * - + ( + - 43 ) + + COUNT( * ) - 38
----
-37

skipif mysql # not compatible
query I rowsort label-7451
SELECT COUNT ( * ) / - - 45 * - + ( + - 43 ) + + COUNT ( * ) - 38
----
-37

query I rowsort
SELECT - 5 * + 36 + + COALESCE ( - - 35, + 27, 49 ) AS col0
----
-145

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

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

query I rowsort
SELECT DISTINCT - 24 * - NULLIF ( + 49, - 10 / 62 ) AS col1
----
1176

onlyif mysql # aggregate syntax: 
query I rowsort label-7456
SELECT ALL + CASE + - 39 WHEN - + ( 31 ) * + 5 + + COUNT( * ) + 76 THEN COUNT( * ) * - ( - 57 ) + MIN( 77 ) * + COUNT( * ) WHEN + 10 + - 67 THEN NULL ELSE 83 END
----
83

skipif mysql # not compatible
query I rowsort label-7456
SELECT ALL + CASE + - 39 WHEN - + ( 31 ) * + 5 + + COUNT ( * ) + 76 THEN COUNT ( * ) * - ( - 57 ) + MIN ( 77 ) * + COUNT ( * ) WHEN + 10 + - 67 THEN NULL ELSE 83 END
----
83

query I rowsort
SELECT DISTINCT - 15 * 76
----
-1140

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7458
SELECT 43 DIV + 95 - COUNT( - 21 ) + + 79
----
78

skipif mysql # not compatible
query I rowsort label-7458
SELECT 43 / + 95 - COUNT ( - 21 ) + + 79
----
78

query I rowsort
SELECT NULLIF ( + - COALESCE ( - 4, - 56 * + 96 + + 67 ), 24 ) AS col1
----
4

query I rowsort
SELECT - 94 * + + 46 + 66
----
-4258

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7461
SELECT ALL + NULLIF ( - COALESCE ( + 97, - ( + 80 ) ), + CAST( 65 AS SIGNED ) )
----
-97

skipif mysql # not compatible
query I rowsort label-7461
SELECT ALL + NULLIF ( - COALESCE ( + 97, - ( + 80 ) ), + CAST ( 65 AS INTEGER ) )
----
-97

query I rowsort
SELECT - 20 * 67 AS col0
----
-1340

onlyif mysql # aggregate syntax: 
query I rowsort label-7463
SELECT ( - + 10 ) * - 44 + - + MIN( DISTINCT - 34 ) - - - 33
----
441

skipif mysql # not compatible
query I rowsort label-7463
SELECT ( - + 10 ) * - 44 + - + MIN ( DISTINCT - 34 ) - - - 33
----
441

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7464
SELECT ALL MAX( ALL 92 ) * CAST( - + 86 AS SIGNED ) * + 77 * + NULLIF ( ( 6 ), 36 * 0 ) + + 74 AS col1
----
-3655270

skipif mysql # not compatible
query I rowsort label-7464
SELECT ALL MAX ( ALL 92 ) * CAST ( - + 86 AS INTEGER ) * + 77 * + NULLIF ( ( 6 ), 36 * 0 ) + + 74 AS col1
----
-3655270

query I rowsort
SELECT DISTINCT 1 * + 1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7466
SELECT DISTINCT 31 * - - COUNT( * ) + + 39
----
70

skipif mysql # not compatible
query I rowsort label-7466
SELECT DISTINCT 31 * - - COUNT ( * ) + + 39
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-7467
SELECT DISTINCT NULLIF ( + 98, - - 19 ) * 77 + - 23 DIV - 20 + ( 58 )
----
7605

skipif mysql # not compatible
query I rowsort label-7467
SELECT DISTINCT NULLIF ( + 98, - - 19 ) * 77 + - 23 / - 20 + ( 58 )
----
7605

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7469
SELECT - 76 - COUNT( - 8 )
----
-77

skipif mysql # not compatible
query I rowsort label-7469
SELECT - 76 - COUNT ( - 8 )
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7470
SELECT - MAX( DISTINCT - CASE 92 WHEN 41 - + 14 THEN + CAST( NULL AS SIGNED ) * 25 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-7470
SELECT - MAX ( DISTINCT - CASE 92 WHEN 41 - + 14 THEN + CAST ( NULL AS INTEGER ) * 25 ELSE NULL END )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7471
SELECT - 90 + - 66, + 75 DIV - 1 AS col1
----
-156
-75

skipif mysql # not compatible
query II rowsort label-7471
SELECT - 90 + - 66, + 75 / - 1 AS col1
----
-156
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7472
SELECT ALL - CAST( CASE AVG ( ALL 75 ) WHEN + + 64 * - 20 THEN 71 + - 59 WHEN 85 THEN NULL WHEN 8 * 36 THEN 71 - 67 END AS SIGNED ) * + 53 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7472
SELECT ALL - CAST ( CASE AVG ( ALL 75 ) WHEN + + 64 * - 20 THEN 71 + - 59 WHEN 85 THEN NULL WHEN 8 * 36 THEN 71 - 67 END AS INTEGER ) * + 53 AS col0
----
NULL

query I rowsort
SELECT ALL - 83 - + 38 col0
----
-121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7474
SELECT + + 78 - - + CAST( 90 AS SIGNED ) AS col2
----
168

skipif mysql # not compatible
query I rowsort label-7474
SELECT + + 78 - - + CAST ( 90 AS INTEGER ) AS col2
----
168

query I rowsort
SELECT DISTINCT CASE - + ( 50 ) WHEN - 70 THEN - - 28 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7476
SELECT + - 3 - - COALESCE ( + NULLIF ( + 77, - CAST( + - 26 AS SIGNED ) ), - 0, COUNT( * ) )
----
74

skipif mysql # not compatible
query I rowsort label-7476
SELECT + - 3 - - COALESCE ( + NULLIF ( + 77, - CAST ( + - 26 AS INTEGER ) ), - 0, COUNT ( * ) )
----
74

query II rowsort
SELECT DISTINCT + 14 AS col2, 24 AS col1
----
14
24

onlyif mysql # aggregate syntax: 
query II rowsort label-7478
SELECT DISTINCT + 1, - COUNT( * ) + 62 + COUNT( * ) + + 43 * - COUNT( * ) * 19 - 14 AS col2
----
1
-769

skipif mysql # not compatible
query II rowsort label-7478
SELECT DISTINCT + 1, - COUNT ( * ) + 62 + COUNT ( * ) + + 43 * - COUNT ( * ) * 19 - 14 AS col2
----
1
-769

query III rowsort
SELECT + 62 * 98 AS col2, 25 * 80, 86 * + - 85 AS col2
----
6076
2000
-7310

onlyif mysql # DIV for integer division: 
query I rowsort label-7480
SELECT DISTINCT NULLIF ( - ( - - 33 ), 3 ) DIV + 27 col0
----
-1

skipif mysql # not compatible
query I rowsort label-7480
SELECT DISTINCT NULLIF ( - ( - - 33 ), 3 ) / + 27 col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7481
SELECT + 6 + + - 51 + 46 DIV 61 * - 4 * + 50 AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-7481
SELECT + 6 + + - 51 + 46 / 61 * - 4 * + 50 AS col2
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-7482
SELECT + COUNT( * ) + + + 15 * + 68 * 25 * + 92 + - 34
----
2345967

skipif mysql # not compatible
query I rowsort label-7482
SELECT + COUNT ( * ) + + + 15 * + 68 * 25 * + 92 + - 34
----
2345967

onlyif mysql # aggregate syntax: 
query I rowsort label-7483
SELECT ALL 59 * - MAX( ALL + 66 )
----
-3894

skipif mysql # not compatible
query I rowsort label-7483
SELECT ALL 59 * - MAX ( ALL + 66 )
----
-3894

query I rowsort
SELECT + - 51 * + 5 + 33 * + ( - 37 ) AS col2
----
-1476

onlyif mysql # aggregate syntax: 
query I rowsort label-7485
SELECT + 33 + - COUNT( * ) * + MIN( DISTINCT + 24 ) + MAX( ALL - - 78 )
----
87

skipif mysql # not compatible
query I rowsort label-7485
SELECT + 33 + - COUNT ( * ) * + MIN ( DISTINCT + 24 ) + MAX ( ALL - - 78 )
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-7486
SELECT + COUNT( * ) + - 15 + NULLIF ( - MIN( - + 18 ), - COUNT( * ) ) AS col1
----
4

skipif mysql # not compatible
query I rowsort label-7486
SELECT + COUNT ( * ) + - 15 + NULLIF ( - MIN ( - + 18 ), - COUNT ( * ) ) AS col1
----
4

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7488
SELECT ALL CASE - 92 WHEN + + 63 + - 16 THEN + - 12 * + 35 + + 37 + CASE + ( - COUNT( * ) ) WHEN SUM( DISTINCT 53 ) + - 4 THEN + 86 * ( + MAX( + 25 ) ) + - COUNT( 90 - 35 * 54 ) WHEN 68 THEN 9 * - MAX( ALL CAST( NULL AS SIGNED ) * + 15 ) ELSE + CAST( - 26 AS SIGNED ) + + 54 * 99 END / + 93 WHEN ( 14 ) * NULLIF ( + 28 + 44, - 53 + + 77 ) + 91 THEN - 59 + 2 END * ( 22 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7488
SELECT ALL CASE - 92 WHEN + + 63 + - 16 THEN + - 12 * + 35 + + 37 + CASE + ( - COUNT ( * ) ) WHEN SUM ( DISTINCT 53 ) + - 4 THEN + 86 * ( + MAX ( + 25 ) ) + - COUNT ( 90 - 35 * 54 ) WHEN 68 THEN 9 * - MAX ( ALL CAST ( NULL AS INTEGER ) * + 15 ) ELSE + CAST ( - 26 AS INTEGER ) + + 54 * 99 END / + 93 WHEN ( 14 ) * NULLIF ( + 28 + 44, - 53 + + 77 ) + 91 THEN - 59 + 2 END * ( 22 ) col2
----
NULL

query I rowsort
SELECT + 62 + - - 89 + - 59 * + + 91
----
-5218

query I rowsort
SELECT - 85 * + 6 * 36 + - + 41 + + 38 + 98 AS col0
----
-18265

onlyif mysql # DIV for integer division: 
query I rowsort label-7491
SELECT ( - 61 ) DIV - 91 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7491
SELECT ( - 61 ) / - 91 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7492
SELECT 66 DIV - + 81 + + 90 AS col2
----
90

skipif mysql # not compatible
query I rowsort label-7492
SELECT 66 / - + 81 + + 90 AS col2
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7493
SELECT CAST( NULL AS SIGNED ) * 32 * - 42
----
NULL

skipif mysql # not compatible
query I rowsort label-7493
SELECT CAST ( NULL AS INTEGER ) * 32 * - 42
----
NULL

query I rowsort
SELECT 81 + 85 + 97 AS col1
----
263

query I rowsort
SELECT ALL + 66 + + + NULLIF ( 21, - 89 + 89 + + 91 ) * + 21
----
507

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7496
SELECT ALL - 12 + COUNT( * ) * + 42 DIV COUNT( * ) AS col0
----
30

skipif mysql # not compatible
query I rowsort label-7496
SELECT ALL - 12 + COUNT ( * ) * + 42 / COUNT ( * ) AS col0
----
30

query II rowsort
SELECT ALL 54 * + + 92 AS col0, 70
----
4968
70

onlyif mysql # aggregate syntax: 
query I rowsort label-7498
SELECT ALL - COALESCE ( MIN( DISTINCT + + ( + 50 ) ), 91, + CASE + MAX( ( CASE + 22 WHEN + 79 + + COALESCE ( 85, 7 + + 90 ) * 4 THEN NULL WHEN 0 THEN NULL ELSE + 42 / - 99 END ) ) WHEN COUNT( * ) / 94 + COUNT( * ) THEN ( - 84 ) WHEN 92 * 67 THEN + 95 END * - 35 )
----
-50

skipif mysql # not compatible
query I rowsort label-7498
SELECT ALL - COALESCE ( MIN ( DISTINCT + + ( + 50 ) ), 91, + CASE + MAX ( ( CASE + 22 WHEN + 79 + + COALESCE ( 85, 7 + + 90 ) * 4 THEN NULL WHEN 0 THEN NULL ELSE + 42 / - 99 END ) ) WHEN COUNT ( * ) / 94 + COUNT ( * ) THEN ( - 84 ) WHEN 92 * 67 THEN + 95 END * - 35 )
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-7499
SELECT 77 + + COUNT( ALL + 84 ) AS col0
----
78

skipif mysql # not compatible
query I rowsort label-7499
SELECT 77 + + COUNT ( ALL + 84 ) AS col0
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7500
SELECT + 52 * - CAST( + 16 AS SIGNED ) + - COUNT( * )
----
-833

skipif mysql # not compatible
query I rowsort label-7500
SELECT + 52 * - CAST ( + 16 AS INTEGER ) + - COUNT ( * )
----
-833

query I rowsort
SELECT + ( - + 2 ) + + 13
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-7502
SELECT 32 * - - MIN( DISTINCT - + 11 ) * - 91
----
32032

skipif mysql # not compatible
query I rowsort label-7502
SELECT 32 * - - MIN ( DISTINCT - + 11 ) * - 91
----
32032

query I rowsort
SELECT ALL + - 86 - - 95
----
9

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7505
SELECT DISTINCT ( 50 ) * - COALESCE ( + 14, 9, - - 80 DIV + ( 8 ) ) AS col0
----
-700

skipif mysql # not compatible
query I rowsort label-7505
SELECT DISTINCT ( 50 ) * - COALESCE ( + 14, 9, - - 80 / + ( 8 ) ) AS col0
----
-700

query I rowsort
SELECT ALL + 52 * + 65 col0
----
3380

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7508
SELECT DISTINCT - - 44 - - COUNT( * ) AS col2, CAST( NULL AS SIGNED ) + - 47
----
45
NULL

skipif mysql # not compatible
query II rowsort label-7508
SELECT DISTINCT - - 44 - - COUNT ( * ) AS col2, CAST ( NULL AS INTEGER ) + - 47
----
45
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7509
SELECT DISTINCT + 60 * - 76 + 23 + + + 66 DIV - + COUNT( * )
----
-4603

skipif mysql # not compatible
query I rowsort label-7509
SELECT DISTINCT + 60 * - 76 + 23 + + + 66 / - + COUNT ( * )
----
-4603

onlyif mysql # DIV for integer division: 
query I rowsort label-7510
SELECT 65 + - + 75 DIV 29
----
63

skipif mysql # not compatible
query I rowsort label-7510
SELECT 65 + - + 75 / 29
----
63

query II rowsort
SELECT + 26 * + 59 * - 64, 42 * ( - 70 ) * 45 + 84 AS col1
----
-98176
-132216

onlyif mysql # aggregate syntax: 
query I rowsort label-7512
SELECT ALL - COALESCE ( - + SUM( ALL 70 ), + 24 + 33 + + - 8, 17 )
----
70

skipif mysql # not compatible
query I rowsort label-7512
SELECT ALL - COALESCE ( - + SUM ( ALL 70 ), + 24 + 33 + + - 8, 17 )
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-7513
SELECT DISTINCT CASE + - 73 WHEN 49 * - 35 + + COUNT( + + 66 ) + 70 / 83 THEN AVG ( ALL 73 ) * 18 WHEN + COUNT( * ) * 94 THEN 21 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7513
SELECT DISTINCT CASE + - 73 WHEN 49 * - 35 + + COUNT ( + + 66 ) + 70 / 83 THEN AVG ( ALL 73 ) * 18 WHEN + COUNT ( * ) * 94 THEN 21 END
----
NULL

query I rowsort
SELECT ALL 33 + + 39 - 39
----
33

query II rowsort
SELECT ALL 30 AS col0, 88 col0
----
30
88

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7517
SELECT 79 DIV COUNT( * ) - - 80 + + COUNT( * ) + + CAST( 23 AS SIGNED ) * - 84 + + + 48 * - 45 col0
----
-3932

skipif mysql # not compatible
query I rowsort label-7517
SELECT 79 / COUNT ( * ) - - 80 + + COUNT ( * ) + + CAST ( 23 AS INTEGER ) * - 84 + + + 48 * - 45 col0
----
-3932

query I rowsort
SELECT DISTINCT 73 + 61 col0
----
134

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

skipif mysql # not compatible
query I rowsort label-7519
SELECT ( - CAST ( NULL AS INTEGER ) ) + - 28 + - + 96 col0
----
NULL

query I rowsort
SELECT DISTINCT - CASE + 86 WHEN - 59 THEN + + 14 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7521
SELECT ALL 67 + - 1 DIV COUNT( + 85 ) col1
----
66

skipif mysql # not compatible
query I rowsort label-7521
SELECT ALL 67 + - 1 / COUNT ( + 85 ) col1
----
66

onlyif mysql # DIV for integer division: 
query II rowsort label-7522
SELECT ALL - 8 DIV ( + + 85 ) col1, 13
----
0
13

skipif mysql # not compatible
query II rowsort label-7522
SELECT ALL - 8 / ( + + 85 ) col1, 13
----
0
13

query I rowsort
SELECT DISTINCT + 53 + - - NULLIF ( - 50, + 63 ) AS col0
----
3

query I rowsort
SELECT ALL 31 + + 70 + + ( - 66 )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-7525
SELECT + COUNT( - 80 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-7525
SELECT + COUNT ( - 80 ) col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7526
SELECT 60 * + ( - NULLIF ( - + 56, 62 * - 79 ) ) * + + 56 * - + COUNT( * ) * 81
----
-15240960

skipif mysql # not compatible
query I rowsort label-7526
SELECT 60 * + ( - NULLIF ( - + 56, 62 * - 79 ) ) * + + 56 * - + COUNT ( * ) * 81
----
-15240960

query I rowsort
SELECT 96 * 99 AS col0
----
9504

query I rowsort
SELECT + 48 * + 14 * 78 + - 35 col1
----
52381

onlyif mysql # aggregate syntax: 
query I rowsort label-7529
SELECT + SUM( + 81 ) AS col0
----
81

skipif mysql # not compatible
query I rowsort label-7529
SELECT + SUM ( + 81 ) AS col0
----
81

query I rowsort
SELECT ALL + 16 - 89
----
-73

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

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

query II rowsort
SELECT + 66, - 56 AS col1
----
66
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-7533
SELECT NULLIF ( - 70, - 75 * - - COUNT( - 73 ) * - ( - ( - 75 ) ) ) AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-7533
SELECT NULLIF ( - 70, - 75 * - - COUNT ( - 73 ) * - ( - ( - 75 ) ) ) AS col0
----
-70

query II rowsort
SELECT + 33 AS col2, 79
----
33
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7535
SELECT DISTINCT + COUNT( * ) * + CASE WHEN 9 NOT BETWEEN 71 * - ( - 20 ) AND - 94 + + 42 THEN + CASE 19 WHEN - 67 THEN - 37 WHEN - 36 THEN MIN( + CAST( NULL AS SIGNED ) ) + COUNT( * ) END WHEN NOT NULL IS NOT NULL THEN COALESCE ( + NULLIF ( - 29, + 99 ), + 39 + 51 ) * - 73 END * 14 + + 4 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7535
SELECT DISTINCT + COUNT ( * ) * + CASE WHEN 9 NOT BETWEEN 71 * - ( - 20 ) AND - 94 + + 42 THEN + CASE 19 WHEN - 67 THEN - 37 WHEN - 36 THEN MIN ( + CAST ( NULL AS INTEGER ) ) + COUNT ( * ) END WHEN NOT NULL IS NOT NULL THEN COALESCE ( + NULLIF ( - 29, + 99 ), + 39 + 51 ) * - 73 END * 14 + + 4 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7536
SELECT + COALESCE ( - + 27, + - 43 DIV - + 58 ) * - 9 + 25 AS col1, 3 * - COUNT( * ) AS col2
----
268
-3

skipif mysql # not compatible
query II rowsort label-7536
SELECT + COALESCE ( - + 27, + - 43 / - + 58 ) * - 9 + 25 AS col1, 3 * - COUNT ( * ) AS col2
----
268
-3

query I rowsort
SELECT - 65 * + 47 AS col2
----
-3055

query I rowsort
SELECT + 74 + - 74 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7539
SELECT MIN( DISTINCT + 59 ) * + ( 30 )
----
1770

skipif mysql # not compatible
query I rowsort label-7539
SELECT MIN ( DISTINCT + 59 ) * + ( 30 )
----
1770

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7541
SELECT + CAST( NULL AS DECIMAL ) + - 68
----
NULL

skipif mysql # not compatible
query I rowsort label-7541
SELECT + CAST ( NULL AS REAL ) + - 68
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7542
SELECT ALL - 69 col0, + COUNT( * ) + - 28 + - 32
----
-69
-59

skipif mysql # not compatible
query II rowsort label-7542
SELECT ALL - 69 col0, + COUNT ( * ) + - 28 + - 32
----
-69
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7543
SELECT - 24 - CAST( - + ( - CAST( NULL AS SIGNED ) ) AS SIGNED ) * + + 81 * + + 93 + - ( + COALESCE ( + 30, + 99 * 3 + + ( + 70 + + COUNT( * ) ), - COUNT( * ) / 95 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7543
SELECT - 24 - CAST ( - + ( - CAST ( NULL AS INTEGER ) ) AS INTEGER ) * + + 81 * + + 93 + - ( + COALESCE ( + 30, + 99 * 3 + + ( + 70 + + COUNT ( * ) ), - COUNT ( * ) / 95 ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7544
SELECT COUNT( * ) / ( ( - CASE CASE AVG ( - 45 ) WHEN 36 THEN NULL WHEN - AVG ( DISTINCT + 64 ) * ( ( 63 ) * - 17 ) + + 48 THEN - 10 * 85 END WHEN 93 * 12 THEN - 97 + 72 * - 56 WHEN - ( COUNT( * ) ) + ( - 64 ) THEN NULL END ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7544
SELECT COUNT ( * ) / ( ( - CASE CASE AVG ( - 45 ) WHEN 36 THEN NULL WHEN - AVG ( DISTINCT + 64 ) * ( ( 63 ) * - 17 ) + + 48 THEN - 10 * 85 END WHEN 93 * 12 THEN - 97 + 72 * - 56 WHEN - ( COUNT ( * ) ) + ( - 64 ) THEN NULL END ) ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT + + 37 + - 25 AS col2
----
12

query I rowsort
SELECT ALL + NULLIF ( 53, + - 1 * - 83 * 46 ) + + + 42
----
95

query I rowsort
SELECT DISTINCT - ( ( - 76 ) ) + - 35
----
41

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7550
SELECT - 15 + - + MAX( - 47 ) * - + 11 col0, - 34 * + 6
----
-532
-204

skipif mysql # not compatible
query II rowsort label-7550
SELECT - 15 + - + MAX ( - 47 ) * - + 11 col0, - 34 * + 6
----
-532
-204

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7551
SELECT ALL - COUNT( * ) * - 71 col0, + ( - + 56 ) + + 54 / - CAST( NULL AS SIGNED ) col2
----
71
NULL

skipif mysql # not compatible
query II rowsort label-7551
SELECT ALL - COUNT ( * ) * - 71 col0, + ( - + 56 ) + + 54 / - CAST ( NULL AS INTEGER ) col2
----
71
NULL

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

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

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

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

query I rowsort
SELECT ALL - 20 + - 75 + - 82 * + + 60 * 36
----
-177215

onlyif mysql # aggregate syntax: 
query I rowsort label-7555
SELECT ALL COUNT( * ) * + 44 + + 92
----
136

skipif mysql # not compatible
query I rowsort label-7555
SELECT ALL COUNT ( * ) * + 44 + + 92
----
136

query I rowsort
SELECT DISTINCT ( - NULLIF ( + 34, - 57 ) ) * - 19 + 81
----
727

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7557
SELECT ALL 50 * - CASE + 10 WHEN + - CAST( NULL AS SIGNED ) * 24 THEN - MAX( - 51 ) WHEN + 35 * + 10 * - 67 THEN NULL END + 75 * - MAX( 58 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7557
SELECT ALL 50 * - CASE + 10 WHEN + - CAST ( NULL AS INTEGER ) * 24 THEN - MAX ( - 51 ) WHEN + 35 * + 10 * - 67 THEN NULL END + 75 * - MAX ( 58 ) col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7558
SELECT DISTINCT + COALESCE ( + 1, + + COUNT( * ) DIV 33 * 13 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7558
SELECT DISTINCT + COALESCE ( + 1, + + COUNT ( * ) / 33 * 13 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7559
SELECT COALESCE ( COUNT( * ), + 43 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7559
SELECT COALESCE ( COUNT ( * ), + 43 ) AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7560
SELECT + 6 DIV + - 97 + + COALESCE ( - 69, - 93 + - - ( + - 85 ) + + 76 * - + 64 ) col0
----
-69

skipif mysql # not compatible
query I rowsort label-7560
SELECT + 6 / + - 97 + + COALESCE ( - 69, - 93 + - - ( + - 85 ) + + 76 * - + 64 ) col0
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-7561
SELECT - 89 * + COUNT( DISTINCT 60 ) * - 33
----
2937

skipif mysql # not compatible
query I rowsort label-7561
SELECT - 89 * + COUNT ( DISTINCT 60 ) * - 33
----
2937

query I rowsort
SELECT + 95 * - 17 AS col2
----
-1615

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7563
SELECT + 7 + COALESCE ( 56, + SUM( - 77 ), + NULLIF ( + + CASE - 16 WHEN 75 * 51 + CAST( NULL AS SIGNED ) THEN NULL ELSE 22 END, 37 ) )
----
63

skipif mysql # not compatible
query I rowsort label-7563
SELECT + 7 + COALESCE ( 56, + SUM ( - 77 ), + NULLIF ( + + CASE - 16 WHEN 75 * 51 + CAST ( NULL AS INTEGER ) THEN NULL ELSE 22 END, 37 ) )
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7564
SELECT + NULLIF ( COALESCE ( ( - MIN( DISTINCT CAST( + - 52 AS SIGNED ) ) ), - 59 ), - - CAST( NULL AS SIGNED ) ) AS col0
----
52

skipif mysql # not compatible
query I rowsort label-7564
SELECT + NULLIF ( COALESCE ( ( - MIN ( DISTINCT CAST ( + - 52 AS INTEGER ) ) ), - 59 ), - - CAST ( NULL AS INTEGER ) ) AS col0
----
52

onlyif mysql # DIV for integer division: 
query I rowsort label-7565
SELECT DISTINCT 18 * ( - 13 ) DIV - 16 AS col0
----
14

skipif mysql # not compatible
query I rowsort label-7565
SELECT DISTINCT 18 * ( - 13 ) / - 16 AS col0
----
14

query II rowsort
SELECT DISTINCT - 31 * + - 59, 53 + ( - 48 ) AS col0
----
1829
5

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7568
SELECT ALL + 66 * 10 - + CAST( NULL AS SIGNED ) * 93 / - COUNT( + - 7 ) - - + 55 * + + 96 - + + 84 + - 95 * - AVG ( + 51 * 25 ) * 30 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7568
SELECT ALL + 66 * 10 - + CAST ( NULL AS INTEGER ) * 93 / - COUNT ( + - 7 ) - - + 55 * + + 96 - + + 84 + - 95 * - AVG ( + 51 * 25 ) * 30 AS col1
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7570
SELECT - CAST( NULL AS SIGNED ) * - 43 + + 31 * - 96 - + 39
----
NULL

skipif mysql # not compatible
query I rowsort label-7570
SELECT - CAST ( NULL AS INTEGER ) * - 43 + + 31 * - 96 - + 39
----
NULL

query I rowsort
SELECT + - 15 + + 11
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7572
SELECT + + COUNT( * ) DIV + 84 * - - 14 + + + 99 - + COUNT( * ) AS col0
----
98

skipif mysql # not compatible
query I rowsort label-7572
SELECT + + COUNT ( * ) / + 84 * - - 14 + + + 99 - + COUNT ( * ) AS col0
----
98

query I rowsort
SELECT + + 40 + + 76 + + 21 AS col2
----
137

query I rowsort
SELECT + 86 * - 75 + - + NULLIF ( - 86, 61 )
----
-6364

onlyif mysql # aggregate syntax: 
query I rowsort label-7575
SELECT - COUNT( * ) * + 60 + + - 4
----
-64

skipif mysql # not compatible
query I rowsort label-7575
SELECT - COUNT ( * ) * + 60 + + - 4
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-7576
SELECT ALL CASE - 78 WHEN - MAX( + 68 ) THEN - 10 WHEN ( - MAX( 25 ) ) - - 50 + 55 THEN NULL END + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7576
SELECT ALL CASE - 78 WHEN - MAX ( + 68 ) THEN - 10 WHEN ( - MAX ( 25 ) ) - - 50 + 55 THEN NULL END + COUNT ( * )
----
NULL

query I rowsort
SELECT + + 89 + - 21
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-7578
SELECT ALL + COALESCE ( + + COUNT( * ), 24 - COUNT( * ), 37 ) + 68
----
69

skipif mysql # not compatible
query I rowsort label-7578
SELECT ALL + COALESCE ( + + COUNT ( * ), 24 - COUNT ( * ), 37 ) + 68
----
69

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7580
SELECT ALL - COUNT( - - 4 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-7580
SELECT ALL - COUNT ( - - 4 ) col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7581
SELECT ALL - - MIN( - 32 ) + + + 92 * - 36
----
-3344

skipif mysql # not compatible
query I rowsort label-7581
SELECT ALL - - MIN ( - 32 ) + + + 92 * - 36
----
-3344

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

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

query III rowsort
SELECT - 25 col2, + 43 - + + 23 AS col1, 27 AS col1
----
-25
20
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7584
SELECT ALL - 52 + + 84 DIV 2 * + + CAST( + MIN( ALL + 98 ) AS SIGNED ) AS col0
----
4064

skipif mysql # not compatible
query I rowsort label-7584
SELECT ALL - 52 + + 84 / 2 * + + CAST ( + MIN ( ALL + 98 ) AS INTEGER ) AS col0
----
4064

query I rowsort
SELECT - 9 + 62 - + + 8
----
45

query I rowsort
SELECT DISTINCT - 34 + - 93 * - 97
----
8987

onlyif mysql # DIV for integer division: 
query I rowsort label-7587
SELECT DISTINCT - 25 DIV - 27
----
0

skipif mysql # not compatible
query I rowsort label-7587
SELECT DISTINCT - 25 / - 27
----
0

query I rowsort
SELECT ALL - 7 * + - 48 col2
----
336

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7589
SELECT - CAST( 74 AS SIGNED ) + - 24 AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-7589
SELECT - CAST ( 74 AS INTEGER ) + - 24 AS col1
----
-98

query I rowsort
SELECT + 37 * + + 78 AS col0
----
2886

onlyif mysql # aggregate syntax: 
query I rowsort label-7591
SELECT - NULLIF ( + - 54, - NULLIF ( + 0, + + 60 * - ( 17 ) + - 39 + ( - 35 ) + 66 ) + COUNT( * ) * - ( 17 ) ) * 71
----
3834

skipif mysql # not compatible
query I rowsort label-7591
SELECT - NULLIF ( + - 54, - NULLIF ( + 0, + + 60 * - ( 17 ) + - 39 + ( - 35 ) + 66 ) + COUNT ( * ) * - ( 17 ) ) * 71
----
3834

query I rowsort
SELECT ALL + 8 * - 38 AS col1
----
-304

query II rowsort
SELECT ALL - 44 * 7 * + 78 AS col1, - 12 * 29 AS col0
----
-24024
-348

onlyif mysql # DIV for integer division: 
query I rowsort label-7594
SELECT - 95 DIV + 95 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7594
SELECT - 95 / + 95 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-7595
SELECT DISTINCT + ( + + COUNT( 34 ) ) AS col0, 93 - + 28 AS col0
----
1
65

skipif mysql # not compatible
query II rowsort label-7595
SELECT DISTINCT + ( + + COUNT ( 34 ) ) AS col0, 93 - + 28 AS col0
----
1
65

query III rowsort
SELECT ALL + 51 AS col0, 86 * 84, + + 14 AS col0
----
51
7224
14

query I rowsort
SELECT - 83 * - + 24
----
1992

query I rowsort
SELECT ALL - 45 * + 54
----
-2430

onlyif mysql # aggregate syntax: 
query I rowsort label-7599
SELECT 61 * + 74 * + 27 - + COUNT( + 6 ) AS col0
----
121877

skipif mysql # not compatible
query I rowsort label-7599
SELECT 61 * + 74 * + 27 - + COUNT ( + 6 ) AS col0
----
121877

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

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

query II rowsort
SELECT + 28 AS col2, + 12 AS col2
----
28
12

onlyif mysql # aggregate syntax: 
query I rowsort label-7602
SELECT + COUNT( * ) * - - MAX( ALL + 18 ) + - 99 AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-7602
SELECT + COUNT ( * ) * - - MAX ( ALL + 18 ) + - 99 AS col1
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7603
SELECT ALL CAST( - 67 AS SIGNED ) * + 38 AS col0, + 52 AS col1
----
-2546
52

skipif mysql # not compatible
query II rowsort label-7603
SELECT ALL CAST ( - 67 AS INTEGER ) * + 38 AS col0, + 52 AS col1
----
-2546
52

query I rowsort
SELECT - 56 * + 47
----
-2632

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7605
SELECT - 28 * - 9 - 81 * + CAST( NULL AS SIGNED ) * - 34 * COALESCE ( + + CASE - - CAST( NULL AS SIGNED ) WHEN 52 THEN NULL WHEN + COUNT( * ) * 19 + - COALESCE ( - 78, AVG ( + 34 ), - ( + 27 ) ) THEN - 20 * + COUNT( * ) + 59 * 5 END, + AVG ( 32 ) ) + COALESCE ( 99, 53 ) * + ( 68 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7605
SELECT - 28 * - 9 - 81 * + CAST ( NULL AS INTEGER ) * - 34 * COALESCE ( + + CASE - - CAST ( NULL AS INTEGER ) WHEN 52 THEN NULL WHEN + COUNT ( * ) * 19 + - COALESCE ( - 78, AVG ( + 34 ), - ( + 27 ) ) THEN - 20 * + COUNT ( * ) + 59 * 5 END, + AVG ( 32 ) ) + COALESCE ( 99, 53 ) * + ( 68 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7606
SELECT + + 73 AS col1, 10 - - MAX( 96 ) AS col0
----
73
106

skipif mysql # not compatible
query II rowsort label-7606
SELECT + + 73 AS col1, 10 - - MAX ( 96 ) AS col0
----
73
106

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7607
SELECT ALL + CASE - + 77 WHEN - - 65 / + + CAST( NULL AS SIGNED ) * + COUNT( * ) THEN - 6 WHEN + + 4 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7607
SELECT ALL + CASE - + 77 WHEN - - 65 / + + CAST ( NULL AS INTEGER ) * + COUNT ( * ) THEN - 6 WHEN + + 4 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7608
SELECT ALL ( + 12 ) * + + ( - - 48 ) * 38 + - COUNT( * ) AS col2
----
21887

skipif mysql # not compatible
query I rowsort label-7608
SELECT ALL ( + 12 ) * + + ( - - 48 ) * 38 + - COUNT ( * ) AS col2
----
21887

query I rowsort
SELECT DISTINCT - + 86 * - 91 + - 63 + - 29
----
7734

query I rowsort
SELECT ALL + 48 + - 5
----
43

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7612
SELECT ALL MAX( DISTINCT 95 ) + + 50 AS col1, + 71
----
145
71

skipif mysql # not compatible
query II rowsort label-7612
SELECT ALL MAX ( DISTINCT 95 ) + + 50 AS col1, + 71
----
145
71

query II rowsort
SELECT ALL - + 80 AS col1, 44 - + 18 AS col0
----
-80
26

onlyif mysql # aggregate syntax: 
query I rowsort label-7614
SELECT - MAX( + + 89 ) * 8 + 42
----
-670

skipif mysql # not compatible
query I rowsort label-7614
SELECT - MAX ( + + 89 ) * 8 + 42
----
-670

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7616
SELECT ALL COUNT( * ) + - 14 + + 56 + 92 * + 44 AS col1, 99 + 78 + 25 * - COUNT( * )
----
4091
152

skipif mysql # not compatible
query II rowsort label-7616
SELECT ALL COUNT ( * ) + - 14 + + 56 + 92 * + 44 AS col1, 99 + 78 + 25 * - COUNT ( * )
----
4091
152

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7617
SELECT 76 + + 37 + + 68 * - + CAST( 45 AS SIGNED )
----
-2947

skipif mysql # not compatible
query I rowsort label-7617
SELECT 76 + + 37 + + 68 * - + CAST ( 45 AS INTEGER )
----
-2947

onlyif mysql # aggregate syntax: 
query I rowsort label-7618
SELECT 77 * + COALESCE ( - COUNT( * ), + + 75 ) - 62
----
-139

skipif mysql # not compatible
query I rowsort label-7618
SELECT 77 * + COALESCE ( - COUNT ( * ), + + 75 ) - 62
----
-139

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

skipif mysql # not compatible
query I rowsort label-7619
SELECT ALL COUNT ( * ) / 81
----
0

query I rowsort
SELECT - 86 + - 48 AS col2
----
-134

onlyif mysql # aggregate syntax: 
query II rowsort label-7621
SELECT MIN( 92 ) * + COUNT( * ), - MAX( ALL + 49 ) + 57 * + - 97 AS col0
----
92
-5578

skipif mysql # not compatible
query II rowsort label-7621
SELECT MIN ( 92 ) * + COUNT ( * ), - MAX ( ALL + 49 ) + 57 * + - 97 AS col0
----
92
-5578

query I rowsort
SELECT 45 + 50 AS col1
----
95

query I rowsort
SELECT ALL 91 + + 97 AS col2
----
188

query II rowsort
SELECT - 28 AS col2, 24 * + 47
----
-28
1128

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

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

query I rowsort
SELECT ALL 56 - 32 * + + ( + 5 ) AS col1
----
-104

query I rowsort
SELECT DISTINCT 90 * 8
----
720

query II rowsort
SELECT DISTINCT 96, - 57 AS col2
----
96
-57

query I rowsort
SELECT ALL 8 * 75
----
600

query I rowsort
SELECT 96 * - 53 AS col0
----
-5088

query II rowsort
SELECT ALL 2, + 56 * + + ( 50 ) * 95 + 3 + - 24 + - ( 28 ) AS col2
----
2
265951

onlyif mysql # DIV for integer division: 
query I rowsort label-7632
SELECT 6 - + + NULLIF ( + 40, + 0 * - 10 ) DIV - 97
----
6

skipif mysql # not compatible
query I rowsort label-7632
SELECT 6 - + + NULLIF ( + 40, + 0 * - 10 ) / - 97
----
6

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7634
SELECT ALL + SUM( DISTINCT 39 ) - - 27 / - AVG ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7634
SELECT ALL + SUM ( DISTINCT 39 ) - - 27 / - AVG ( CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ( - 74 ) * + 11 AS col1
----
-814

onlyif mysql # aggregate syntax: 
query II rowsort label-7636
SELECT 5, 68 * COUNT( * ) AS col0
----
5
68

skipif mysql # not compatible
query II rowsort label-7636
SELECT 5, 68 * COUNT ( * ) AS col0
----
5
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7637
SELECT 5 + - 23 + + CASE - + 38 WHEN - - CAST( NULL AS SIGNED ) + + - 98 THEN NULL WHEN - 8 * + 4 THEN NULL ELSE + SUM( DISTINCT + + 8 ) + - 79 + + CAST( 24 AS SIGNED ) * + 62 END AS col1
----
1399

skipif mysql # not compatible
query I rowsort label-7637
SELECT 5 + - 23 + + CASE - + 38 WHEN - - CAST ( NULL AS INTEGER ) + + - 98 THEN NULL WHEN - 8 * + 4 THEN NULL ELSE + SUM ( DISTINCT + + 8 ) + - 79 + + CAST ( 24 AS INTEGER ) * + 62 END AS col1
----
1399

query I rowsort
SELECT 11 * - - 23 AS col0
----
253

onlyif mysql # aggregate syntax: 
query II rowsort label-7639
SELECT ALL - COUNT( * ) AS col1, + 55 * + - 41 + - + 16 AS col1
----
-1
-2271

skipif mysql # not compatible
query II rowsort label-7639
SELECT ALL - COUNT ( * ) AS col1, + 55 * + - 41 + - + 16 AS col1
----
-1
-2271

query I rowsort
SELECT ALL + 35 * - 4
----
-140

query I rowsort
SELECT DISTINCT - ( - 20 ) col2
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-7642
SELECT ALL - + MIN( ALL + 10 ) * - + 44 AS col2
----
440

skipif mysql # not compatible
query I rowsort label-7642
SELECT ALL - + MIN ( ALL + 10 ) * - + 44 AS col2
----
440

query I rowsort
SELECT + 54 + + 60 + 56 - - 32 AS col1
----
202

query I rowsort
SELECT ALL - 33 + - - 68 AS col0
----
35

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

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

query II rowsort
SELECT ALL + + 59 + - 97 * - 25 * + 82 AS col0, + 55 AS col1
----
198909
55

query II rowsort
SELECT + 8, 25 - 59 AS col1
----
8
-34

query II rowsort
SELECT DISTINCT - 52, - 10 AS col2
----
-52
-10

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7650
SELECT COUNT( * ), COUNT( - - 39 )
----
1
1

skipif mysql # not compatible
query II rowsort label-7650
SELECT COUNT ( * ), COUNT ( - - 39 )
----
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7651
SELECT ALL + - 80 + + - CAST( NULL AS SIGNED ) - + + 0 * - 33 / + 34 + 50 * - 31 * - + 91 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7651
SELECT ALL + - 80 + + - CAST ( NULL AS INTEGER ) - + + 0 * - 33 / + 34 + 50 * - 31 * - + 91 AS col1
----
NULL

query I rowsort
SELECT ALL - 26 + 53
----
27

query I rowsort
SELECT ALL + 67 * - 0 AS col0
----
0

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7655
SELECT ALL + + COUNT( + 9 ) + - - ( - 81 ) AS col1, COUNT( * ) AS col0
----
-80
1

skipif mysql # not compatible
query II rowsort label-7655
SELECT ALL + + COUNT ( + 9 ) + - - ( - 81 ) AS col1, COUNT ( * ) AS col0
----
-80
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7656
SELECT DISTINCT 32 * 74 + + - SUM( DISTINCT + - 14 ) - - - 24 AS col0
----
2358

skipif mysql # not compatible
query I rowsort label-7656
SELECT DISTINCT 32 * 74 + + - SUM ( DISTINCT + - 14 ) - - - 24 AS col0
----
2358

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7657
SELECT ALL 68 - + 67 - + 95 + - CAST( - + 78 AS SIGNED ) + - 62 * + COUNT( * ) * - CASE WHEN ( NULL ) <> NULL THEN + - 75 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7657
SELECT ALL 68 - + 67 - + 95 + - CAST ( - + 78 AS INTEGER ) + - 62 * + COUNT ( * ) * - CASE WHEN ( NULL ) <> NULL THEN + - 75 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7658
SELECT MAX( DISTINCT - 31 ) * NULLIF ( - + 88, - + 8 )
----
2728

skipif mysql # not compatible
query I rowsort label-7658
SELECT MAX ( DISTINCT - 31 ) * NULLIF ( - + 88, - + 8 )
----
2728

query I rowsort
SELECT DISTINCT 3 - + ( 79 ) AS col1
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-7660
SELECT 51 - + COUNT( * ) - 73
----
-23

skipif mysql # not compatible
query I rowsort label-7660
SELECT 51 - + COUNT ( * ) - 73
----
-23

query I rowsort
SELECT ( - 84 ) * - 61
----
5124

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

skipif mysql # not compatible
query I rowsort label-7662
SELECT DISTINCT COUNT ( * ) / - + 95
----
0

query I rowsort
SELECT 80 * - - 89
----
7120

onlyif mysql # DIV for integer division: 
query I rowsort label-7664
SELECT ALL - 90 DIV - + 17
----
5

skipif mysql # not compatible
query I rowsort label-7664
SELECT ALL - 90 / - + 17
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7665
SELECT - COUNT( DISTINCT - 25 ), CASE - 78 WHEN - 95 * 87 THEN - + ( - - 58 ) * + 77 - COUNT( * ) END + - - CAST( NULL AS SIGNED ) + - 2 * 48 AS col0
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-7665
SELECT - COUNT ( DISTINCT - 25 ), CASE - 78 WHEN - 95 * 87 THEN - + ( - - 58 ) * + 77 - COUNT ( * ) END + - - CAST ( NULL AS INTEGER ) + - 2 * 48 AS col0
----
-1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7666
SELECT DISTINCT + ( + - MIN( 30 ) ) * - + 48
----
1440

skipif mysql # not compatible
query I rowsort label-7666
SELECT DISTINCT + ( + - MIN ( 30 ) ) * - + 48
----
1440

onlyif mysql # aggregate syntax: 
query II rowsort label-7667
SELECT ALL 95 + + + 96, + COUNT( * ) + 61 * 32 col1
----
191
1953

skipif mysql # not compatible
query II rowsort label-7667
SELECT ALL 95 + + + 96, + COUNT ( * ) + 61 * 32 col1
----
191
1953

onlyif mysql # DIV for integer division: 
query I rowsort label-7668
SELECT 91 DIV + 6 + + - 84 AS col0
----
-69

skipif mysql # not compatible
query I rowsort label-7668
SELECT 91 / + 6 + + - 84 AS col0
----
-69

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7670
SELECT ALL - 74 * - 4 + - 17 DIV - 9 AS col0
----
297

skipif mysql # not compatible
query I rowsort label-7670
SELECT ALL - 74 * - 4 + - 17 / - 9 AS col0
----
297

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7671
SELECT ALL + 38 * 93 + - CAST( + - 95 AS SIGNED ) AS col0
----
3629

skipif mysql # not compatible
query I rowsort label-7671
SELECT ALL + 38 * 93 + - CAST ( + - 95 AS INTEGER ) AS col0
----
3629

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7672
SELECT ALL + + 87 * - 90 + + 49 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7672
SELECT ALL + + 87 * - 90 + + 49 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7673
SELECT + CAST( NULL AS SIGNED ) * + + 62 * - - 53 - - 82 + + 6 * AVG ( - - 3 ) * NULLIF ( - 55, + 27 ) + - - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7673
SELECT + CAST ( NULL AS INTEGER ) * + + 62 * - - 53 - - 82 + + 6 * AVG ( - - 3 ) * NULLIF ( - 55, + 27 ) + - - COUNT ( * ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7674
SELECT - COUNT( ALL + 2 ) * - - ( + + CAST( + - ( + ( + - 61 ) ) AS SIGNED ) ) + MIN( DISTINCT 70 ) - NULLIF ( 83, + + MAX( DISTINCT + 34 ) ) DIV 23
----
6

skipif mysql # not compatible
query I rowsort label-7674
SELECT - COUNT ( ALL + 2 ) * - - ( + + CAST ( + - ( + ( + - 61 ) ) AS INTEGER ) ) + MIN ( DISTINCT 70 ) - NULLIF ( 83, + + MAX ( DISTINCT + 34 ) ) / 23
----
6

query I rowsort
SELECT + COALESCE ( + - 89, 45 ) col2
----
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7676
SELECT DISTINCT COALESCE ( - + 23, CAST( NULL AS SIGNED ) ) * + + MIN( + 45 ) - 75 col1
----
-1110

skipif mysql # not compatible
query I rowsort label-7676
SELECT DISTINCT COALESCE ( - + 23, CAST ( NULL AS INTEGER ) ) * + + MIN ( + 45 ) - 75 col1
----
-1110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7677
SELECT ALL 38 * - CASE + - COUNT( * ) WHEN - 73 * - + 87 + 90 + + 35 + + CAST( - CAST( 52 AS DECIMAL ) AS SIGNED ) THEN NULL ELSE - 16 END * - ( + 98 ) AS col0
----
-59584

skipif mysql # not compatible
query I rowsort label-7677
SELECT ALL 38 * - CASE + - COUNT ( * ) WHEN - 73 * - + 87 + 90 + + 35 + + CAST ( - CAST ( 52 AS REAL ) AS INTEGER ) THEN NULL ELSE - 16 END * - ( + 98 ) AS col0
----
-59584

onlyif mysql # aggregate syntax: 
query I rowsort label-7678
SELECT DISTINCT - 8 * + 16 + + - 82 - + + COUNT( * ) * - + 2
----
-208

skipif mysql # not compatible
query I rowsort label-7678
SELECT DISTINCT - 8 * + 16 + + - 82 - + + COUNT ( * ) * - + 2
----
-208

query I rowsort
SELECT DISTINCT + 94 * 24 * - 13 AS col0
----
-29328

onlyif mysql # aggregate syntax: 
query II rowsort label-7680
SELECT COUNT( * ) AS col2, - 20 + ( - 82 )
----
1
-102

skipif mysql # not compatible
query II rowsort label-7680
SELECT COUNT ( * ) AS col2, - 20 + ( - 82 )
----
1
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-7681
SELECT ALL CASE 58 WHEN + COUNT( ALL - 35 ) THEN + 47 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7681
SELECT ALL CASE 58 WHEN + COUNT ( ALL - 35 ) THEN + 47 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT NULLIF ( + 92, - 17 * 11 ) col1
----
92

query II rowsort
SELECT 57 AS col0, - 97 + 91 AS col2
----
57
-6

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

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

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

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

query I rowsort
SELECT ALL NULLIF ( - 87, - + 38 ) AS col1
----
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-7687
SELECT DISTINCT + 4 DIV - - 71 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7687
SELECT DISTINCT + 4 / - - 71 AS col2
----
0

query I rowsort
SELECT ALL 55 * - - 51 AS col2
----
2805

onlyif mysql # aggregate syntax: 
query I rowsort label-7689
SELECT - 60 + + + ( - MAX( 13 ) )
----
-73

skipif mysql # not compatible
query I rowsort label-7689
SELECT - 60 + + + ( - MAX ( 13 ) )
----
-73

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

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

query II rowsort
SELECT + 37 + + COALESCE ( - 65, + 99 ), - 33 col0
----
-28
-33

query II rowsort
SELECT 57 AS col1, + 29
----
57
29

onlyif mysql # aggregate syntax: 
query I rowsort label-7693
SELECT ALL - 59 + + + COUNT( * ) * + 85 col1
----
26

skipif mysql # not compatible
query I rowsort label-7693
SELECT ALL - 59 + + + COUNT ( * ) * + 85 col1
----
26

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

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

onlyif mysql # aggregate syntax: 
query III rowsort label-7695
SELECT DISTINCT 54 + - MIN( DISTINCT + 51 ) AS col1, + 53 AS col2, - 70 - 93
----
3
53
-163

skipif mysql # not compatible
query III rowsort label-7695
SELECT DISTINCT 54 + - MIN ( DISTINCT + 51 ) AS col1, + 53 AS col2, - 70 - 93
----
3
53
-163

query II rowsort
SELECT ALL 69 AS col0, 73 + COALESCE ( - ( + 87 ), + - 11 ) AS col1
----
69
-14

query I rowsort
SELECT - 18 * - + 87
----
1566

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7699
SELECT ALL 53 DIV 33
----
1

skipif mysql # not compatible
query I rowsort label-7699
SELECT ALL 53 / 33
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7701
SELECT ALL + COUNT( * ) + + ( 69 ) + - 43
----
27

skipif mysql # not compatible
query I rowsort label-7701
SELECT ALL + COUNT ( * ) + + ( 69 ) + - 43
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-7702
SELECT ALL + 11 + 16 * + COUNT( * )
----
27

skipif mysql # not compatible
query I rowsort label-7702
SELECT ALL + 11 + 16 * + COUNT ( * )
----
27

query I rowsort
SELECT ALL 80 + + 96
----
176

onlyif mysql # aggregate syntax: 
query I rowsort label-7704
SELECT - COALESCE ( - 39, + CASE - ( - - 9 ) WHEN + + 48 THEN - 2 ELSE NULL END - + + 28 * - 85 + + 10 * - - COALESCE ( 42, - COUNT( * ) ) ) * 46 + - NULLIF ( - 25, - 55 * + 89 - + 40 ) AS col2
----
1819

skipif mysql # not compatible
query I rowsort label-7704
SELECT - COALESCE ( - 39, + CASE - ( - - 9 ) WHEN + + 48 THEN - 2 ELSE NULL END - + + 28 * - 85 + + 10 * - - COALESCE ( 42, - COUNT ( * ) ) ) * 46 + - NULLIF ( - 25, - 55 * + 89 - + 40 ) AS col2
----
1819

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7705
SELECT ALL - 90 DIV 69 * - + 25 + - - 72 AS col0, 50 * - - MIN( DISTINCT - 44 ) * + NULLIF ( + + COALESCE ( - 74, COUNT( * ) + - 78 ), + MIN( ALL 43 ) * 44 - 50 ) * 40 + NULLIF ( ( MIN( DISTINCT 30 ) ), 37 ) * - MIN( DISTINCT 84 )
----
97
6509480

skipif mysql # not compatible
query II rowsort label-7705
SELECT ALL - 90 / 69 * - + 25 + - - 72 AS col0, 50 * - - MIN ( DISTINCT - 44 ) * + NULLIF ( + + COALESCE ( - 74, COUNT ( * ) + - 78 ), + MIN ( ALL 43 ) * 44 - 50 ) * 40 + NULLIF ( ( MIN ( DISTINCT 30 ) ), 37 ) * - MIN ( DISTINCT 84 )
----
97
6509480

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7706
SELECT + 92 DIV + + 45 + 99 + + 17 * - 37 * - COUNT( * ) AS col2, + 15 * - 99 + + - COALESCE ( + 51, COUNT( * ), + 89 DIV - - 47 ) AS col1
----
730
-1536

skipif mysql # not compatible
query II rowsort label-7706
SELECT + 92 / + + 45 + 99 + + 17 * - 37 * - COUNT ( * ) AS col2, + 15 * - 99 + + - COALESCE ( + 51, COUNT ( * ), + 89 / - - 47 ) AS col1
----
730
-1536

onlyif mysql # aggregate syntax: 
query I rowsort label-7707
SELECT + + COUNT( * ) * MAX( ALL + - 40 ) * - 14
----
560

skipif mysql # not compatible
query I rowsort label-7707
SELECT + + COUNT ( * ) * MAX ( ALL + - 40 ) * - 14
----
560

onlyif mysql # aggregate syntax: 
query I rowsort label-7708
SELECT + - COUNT( * ) * ( 93 ) * 88 col2
----
-8184

skipif mysql # not compatible
query I rowsort label-7708
SELECT + - COUNT ( * ) * ( 93 ) * 88 col2
----
-8184

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

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

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

skipif mysql # not compatible
query I rowsort label-7711
SELECT - SUM ( DISTINCT 0 )
----
0

query I rowsort
SELECT - + 79 + + ( + 95 ) + - + 44 * + + 20
----
-864

onlyif mysql # DIV for integer division: 
query I rowsort label-7713
SELECT ALL 33 DIV + 64 * - - 45
----
0

skipif mysql # not compatible
query I rowsort label-7713
SELECT ALL 33 / + 64 * - - 45
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7714
SELECT DISTINCT COUNT( - + 19 ) * 99 + - + 18 / - 88 * - ( - - 93 ) * - 97 - + 7 / NULLIF ( CAST( NULL AS SIGNED ), 42 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7714
SELECT DISTINCT COUNT ( - + 19 ) * 99 + - + 18 / - 88 * - ( - - 93 ) * - 97 - + 7 / NULLIF ( CAST ( NULL AS INTEGER ), 42 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7715
SELECT + CAST( + 33 AS SIGNED ) AS col1, 71
----
33
71

skipif mysql # not compatible
query II rowsort label-7715
SELECT + CAST ( + 33 AS INTEGER ) AS col1, 71
----
33
71

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

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

query III rowsort
SELECT DISTINCT + NULLIF ( - 66, - 22 * ( - + 22 ) + + + COALESCE ( - + 65, + + 99, + 96 ) ) AS col1, 26 AS col0, + + 18 * 23 AS col1
----
-66
26
414

query I rowsort
SELECT + 91 * 33
----
3003

query I rowsort
SELECT 90 * 9 + + - 53
----
757

onlyif mysql # aggregate syntax: 
query I rowsort label-7720
SELECT ALL + 99 * + MAX( - 56 )
----
-5544

skipif mysql # not compatible
query I rowsort label-7720
SELECT ALL + 99 * + MAX ( - 56 )
----
-5544

onlyif mysql # aggregate syntax: 
query I rowsort label-7721
SELECT ALL ( + NULLIF ( + MIN( DISTINCT 45 ), + COUNT( * ) * - - 61 ) )
----
45

skipif mysql # not compatible
query I rowsort label-7721
SELECT ALL ( + NULLIF ( + MIN ( DISTINCT 45 ), + COUNT ( * ) * - - 61 ) )
----
45

query I rowsort
SELECT DISTINCT 90 * 91
----
8190

onlyif mysql # DIV for integer division: 
query I rowsort label-7723
SELECT ALL + 0 * 28 DIV + 62
----
0

skipif mysql # not compatible
query I rowsort label-7723
SELECT ALL + 0 * 28 / + 62
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7725
SELECT ALL + 27 + - - 97 + - 23 + - + 18 * + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7725
SELECT ALL + 27 + - - 97 + - 23 + - + 18 * + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7726
SELECT + COALESCE ( - 26, + + COALESCE ( - 55, + + CASE - NULLIF ( + 39, - + 68 * - 27 * + - COUNT( * ) ) WHEN - + COUNT( ALL + + 38 ) THEN + 75 + + 33 WHEN - CAST( NULL AS DECIMAL ) THEN + 75 - + COUNT( DISTINCT CAST( NULL AS SIGNED ) - 65 ) END, 54 ) * 7 ) - + 85
----
-111

skipif mysql # not compatible
query I rowsort label-7726
SELECT + COALESCE ( - 26, + + COALESCE ( - 55, + + CASE - NULLIF ( + 39, - + 68 * - 27 * + - COUNT ( * ) ) WHEN - + COUNT ( ALL + + 38 ) THEN + 75 + + 33 WHEN - CAST ( NULL AS REAL ) THEN + 75 - + COUNT ( DISTINCT CAST ( NULL AS INTEGER ) - 65 ) END, 54 ) * 7 ) - + 85
----
-111

query I rowsort
SELECT - 89 * 27 * 81 * 7
----
-1362501

onlyif mysql # aggregate syntax: 
query I rowsort label-7728
SELECT ALL - NULLIF ( + - 65, 66 ) + + 33 + - - MAX( ALL + 99 ) + + + 57 + MAX( + + 53 ) - + 24 + + 83 * 79
----
6840

skipif mysql # not compatible
query I rowsort label-7728
SELECT ALL - NULLIF ( + - 65, 66 ) + + 33 + - - MAX ( ALL + 99 ) + + + 57 + MAX ( + + 53 ) - + 24 + + 83 * 79
----
6840

onlyif mysql # aggregate syntax: 
query I rowsort label-7729
SELECT ALL - COUNT( * ) * + 79 * 26 AS col2
----
-2054

skipif mysql # not compatible
query I rowsort label-7729
SELECT ALL - COUNT ( * ) * + 79 * 26 AS col2
----
-2054

query I rowsort
SELECT ALL ( - 5 ) + + 20
----
15

query I rowsort
SELECT DISTINCT - 12 * - + 83 + 71 AS col0
----
1067

query I rowsort
SELECT DISTINCT + 54 + + 62 + - 9
----
107

query I rowsort
SELECT ALL + + 86 - - ( + 76 )
----
162

onlyif mysql # DIV for integer division: 
query I rowsort label-7734
SELECT 40 DIV + 35 + + 10
----
11

skipif mysql # not compatible
query I rowsort label-7734
SELECT 40 / + 35 + + 10
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-7735
SELECT ALL - - MAX( DISTINCT 87 )
----
87

skipif mysql # not compatible
query I rowsort label-7735
SELECT ALL - - MAX ( DISTINCT 87 )
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7736
SELECT DISTINCT - CAST( - - 41 AS SIGNED ) AS col2, 93 + + - COUNT( * ) * - ( - - ( 16 ) ) * + - 58 * - - 29 + - - COALESCE ( - 90, + 4 * - 78 ) - 50
----
-41
-26959

skipif mysql # not compatible
query II rowsort label-7736
SELECT DISTINCT - CAST ( - - 41 AS INTEGER ) AS col2, 93 + + - COUNT ( * ) * - ( - - ( 16 ) ) * + - 58 * - - 29 + - - COALESCE ( - 90, + 4 * - 78 ) - 50
----
-41
-26959

query I rowsort
SELECT 12 + 84
----
96

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7739
SELECT ALL COUNT( ALL + 95 ) - - 76 * 65 AS col2, 79 * + 67
----
4941
5293

skipif mysql # not compatible
query II rowsort label-7739
SELECT ALL COUNT ( ALL + 95 ) - - 76 * 65 AS col2, 79 * + 67
----
4941
5293

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7740
SELECT ALL 94 * - CAST( - + 92 AS SIGNED )
----
8648

skipif mysql # not compatible
query I rowsort label-7740
SELECT ALL 94 * - CAST ( - + 92 AS INTEGER )
----
8648

query I rowsort
SELECT + 64 * - 4 AS col2
----
-256

query I rowsort
SELECT ALL + 89 * + + 7 AS col0
----
623

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7743
SELECT + CASE - - 25 WHEN + 11 * - 94 THEN + 16 WHEN - + 61 * + + SUM( ALL + - CAST( ( + - 58 ) AS SIGNED ) ) * - 34 + - + 61 - + - 52 THEN + 38 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7743
SELECT + CASE - - 25 WHEN + 11 * - 94 THEN + 16 WHEN - + 61 * + + SUM ( ALL + - CAST ( ( + - 58 ) AS INTEGER ) ) * - 34 + - + 61 - + - 52 THEN + 38 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7744
SELECT + + 71 / + CASE + 47 WHEN 61 THEN + - ( - + 40 ) / - 73 + - + 52 END * + 70 + 18 + - 98 + + 61 + + 50 / + + 14 * NULLIF ( MIN( + 71 ) * - 37, - 54 * AVG ( 6 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7744
SELECT + + 71 / + CASE + 47 WHEN 61 THEN + - ( - + 40 ) / - 73 + - + 52 END * + 70 + 18 + - 98 + + 61 + + 50 / + + 14 * NULLIF ( MIN ( + 71 ) * - 37, - 54 * AVG ( 6 ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7745
SELECT 99 - + CAST( - - ( 20 ) AS SIGNED ) AS col2
----
79

skipif mysql # not compatible
query I rowsort label-7745
SELECT 99 - + CAST ( - - ( 20 ) AS INTEGER ) AS col2
----
79

onlyif mysql # DIV for integer division: 
query I rowsort label-7746
SELECT 58 * 23 DIV 31
----
43

skipif mysql # not compatible
query I rowsort label-7746
SELECT 58 * 23 / 31
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-7747
SELECT 61 - - 97 + SUM( + 43 ) * + 32
----
1534

skipif mysql # not compatible
query I rowsort label-7747
SELECT 61 - - 97 + SUM ( + 43 ) * + 32
----
1534

onlyif mysql # aggregate syntax: 
query I rowsort label-7748
SELECT 80 * - - COUNT( * ) AS col2
----
80

skipif mysql # not compatible
query I rowsort label-7748
SELECT 80 * - - COUNT ( * ) AS col2
----
80

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7750
SELECT ALL 49 + - ( - COUNT( * ) ) + 10
----
60

skipif mysql # not compatible
query I rowsort label-7750
SELECT ALL 49 + - ( - COUNT ( * ) ) + 10
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7751
SELECT CAST( + + 62 AS SIGNED ) - + + COALESCE ( - + 50, + 3 ), 74 * COALESCE ( + 60, - + 34 ) AS col2
----
112
4440

skipif mysql # not compatible
query II rowsort label-7751
SELECT CAST ( + + 62 AS INTEGER ) - + + COALESCE ( - + 50, + 3 ), 74 * COALESCE ( + 60, - + 34 ) AS col2
----
112
4440

query I rowsort
SELECT ALL - 31 + 31
----
0

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

skipif mysql # not compatible
query I rowsort label-7753
SELECT COUNT ( * ) * 77
----
77

query I rowsort
SELECT ALL 43 + 77
----
120

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

skipif mysql # not compatible
query II rowsort label-7755
SELECT 63 AS col2, - CAST ( NULL AS INTEGER )
----
63
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7756
SELECT - 44 * + - 10 - CAST( NULL AS SIGNED ) + - 15 * - - ( + 46 ) * CASE + + COUNT( * ) WHEN - - NULLIF ( MAX( - 66 ), - + COUNT( * ) ) + - NULLIF ( + COUNT( * ), - 4 + 13 ) THEN NULL WHEN ( 38 ) THEN + 84 WHEN - COUNT( * ) * CAST( 84 * - MIN( DISTINCT - 67 / ( - 30 ) ) AS DECIMAL ) THEN NULL ELSE NULL END + 24 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7756
SELECT - 44 * + - 10 - CAST ( NULL AS INTEGER ) + - 15 * - - ( + 46 ) * CASE + + COUNT ( * ) WHEN - - NULLIF ( MAX ( - 66 ), - + COUNT ( * ) ) + - NULLIF ( + COUNT ( * ), - 4 + 13 ) THEN NULL WHEN ( 38 ) THEN + 84 WHEN - COUNT ( * ) * CAST ( 84 * - MIN ( DISTINCT - 67 / ( - 30 ) ) AS REAL ) THEN NULL ELSE NULL END + 24 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7757
SELECT 40 - + 47 + - 72 DIV + + ( + 91 ) AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-7757
SELECT 40 - + 47 + - 72 / + + ( + 91 ) AS col1
----
-7

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7759
SELECT ALL + CASE - 99 WHEN COUNT( * ) THEN ( 78 ) END + + ( 60 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7759
SELECT ALL + CASE - 99 WHEN COUNT ( * ) THEN ( 78 ) END + + ( 60 ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7760
SELECT ALL MAX( DISTINCT + + 61 ) * - 33 col2
----
-2013

skipif mysql # not compatible
query I rowsort label-7760
SELECT ALL MAX ( DISTINCT + + 61 ) * - 33 col2
----
-2013

query I rowsort
SELECT ALL 36 * + 55 AS col1
----
1980

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7762
SELECT 30 + + 55 * - 96, CAST( - COUNT( * ) AS SIGNED ) AS col0
----
-5250
-1

skipif mysql # not compatible
query II rowsort label-7762
SELECT 30 + + 55 * - 96, CAST ( - COUNT ( * ) AS INTEGER ) AS col0
----
-5250
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7763
SELECT CAST( - 26 AS SIGNED ) + - 83 + + 63 - ( - 35 ) col2, ( + 24 ) + + 10 + CAST( NULL AS SIGNED ) col2
----
-11
NULL

skipif mysql # not compatible
query II rowsort label-7763
SELECT CAST ( - 26 AS INTEGER ) + - 83 + + 63 - ( - 35 ) col2, ( + 24 ) + + 10 + CAST ( NULL AS INTEGER ) col2
----
-11
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7764
SELECT - CASE - 35 WHEN - - 32 THEN NULL WHEN CASE - CAST( - COUNT( * ) AS SIGNED ) WHEN - 80 + - 83 * + ( - 31 ) * + 96 + - CAST( 67 AS DECIMAL ) THEN NULL ELSE + - 19 * - 97 + - 54 END THEN 5 - CASE CASE + 97 WHEN - 39 / + 41 THEN - 91 WHEN AVG ( + 16 ) THEN NULL END WHEN 3 + NULLIF ( COUNT( * ) + + 73, - COUNT( * ) ) THEN 74 + - 39 END END * 34
----
NULL

skipif mysql # not compatible
query I rowsort label-7764
SELECT - CASE - 35 WHEN - - 32 THEN NULL WHEN CASE - CAST ( - COUNT ( * ) AS INTEGER ) WHEN - 80 + - 83 * + ( - 31 ) * + 96 + - CAST ( 67 AS REAL ) THEN NULL ELSE + - 19 * - 97 + - 54 END THEN 5 - CASE CASE + 97 WHEN - 39 / + 41 THEN - 91 WHEN AVG ( + 16 ) THEN NULL END WHEN 3 + NULLIF ( COUNT ( * ) + + 73, - COUNT ( * ) ) THEN 74 + - 39 END END * 34
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7765
SELECT - 54 * - CAST( 16 AS SIGNED ) AS col0
----
864

skipif mysql # not compatible
query I rowsort label-7765
SELECT - 54 * - CAST ( 16 AS INTEGER ) AS col0
----
864

onlyif mysql # aggregate syntax: 
query I rowsort label-7766
SELECT - + MAX( - - 13 ) AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-7766
SELECT - + MAX ( - - 13 ) AS col1
----
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-7767
SELECT 34 * - - COUNT( * ) * - 43 AS col1, 85
----
-1462
85

skipif mysql # not compatible
query II rowsort label-7767
SELECT 34 * - - COUNT ( * ) * - 43 AS col1, 85
----
-1462
85

onlyif mysql # aggregate syntax: 
query I rowsort label-7768
SELECT DISTINCT + 7 * - 14 - MAX( ALL 19 ) AS col1
----
-117

skipif mysql # not compatible
query I rowsort label-7768
SELECT DISTINCT + 7 * - 14 - MAX ( ALL 19 ) AS col1
----
-117

onlyif mysql # DIV for integer division: 
query I rowsort label-7769
SELECT - 84 DIV + 54
----
-1

skipif mysql # not compatible
query I rowsort label-7769
SELECT - 84 / + 54
----
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7771
SELECT SUM( DISTINCT 22 ) / COALESCE ( - + 61, COUNT( * ) * 11 + - + 70 + + + 45 + - 60 ) - CASE + 5 WHEN - + 56 * + ( 69 ) * 14 / + + 30 + + 83 THEN + ( 38 ) / ( 61 * + 11 ) WHEN - COUNT( * ) THEN CASE + 41 WHEN 71 * - COUNT( * ) THEN + 75 / 10 ELSE ( 12 ) * 27 + + COUNT( * ) END * 49 + 21 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7771
SELECT SUM ( DISTINCT 22 ) / COALESCE ( - + 61, COUNT ( * ) * 11 + - + 70 + + + 45 + - 60 ) - CASE + 5 WHEN - + 56 * + ( 69 ) * 14 / + + 30 + + 83 THEN + ( 38 ) / ( 61 * + 11 ) WHEN - COUNT ( * ) THEN CASE + 41 WHEN 71 * - COUNT ( * ) THEN + 75 / 10 ELSE ( 12 ) * 27 + + COUNT ( * ) END * 49 + 21 END
----
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-7773
SELECT ALL - 99 + - + COUNT ( * ) AS col1
----
-100

query I rowsort
SELECT DISTINCT + 45 + ( - 0 ) AS col0
----
45

query II rowsort
SELECT DISTINCT 73 * - 44, 98 AS col0
----
-3212
98

query I rowsort
SELECT ALL ( 80 ) + - 11
----
69

query I rowsort
SELECT NULLIF ( 29, 21 + - 23 ) + + ( - 42 ) AS col0
----
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-7778
SELECT ALL + 27 + + + 53 AS col1, 57 * + 94 + + + 20 + - + 42 * - 7 * - COUNT( * ) + + 97 + COUNT( * ) + 30 * + MIN( DISTINCT + 17 ) AS col0
----
80
5692

skipif mysql # not compatible
query II rowsort label-7778
SELECT ALL + 27 + + + 53 AS col1, 57 * + 94 + + + 20 + - + 42 * - 7 * - COUNT ( * ) + + 97 + COUNT ( * ) + 30 * + MIN ( DISTINCT + 17 ) AS col0
----
80
5692

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

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

query II rowsort
SELECT + 44 AS col1, + 95
----
44
95

onlyif mysql # aggregate syntax: 
query II rowsort label-7781
SELECT DISTINCT 37 * + 86, 63 + + COUNT( * ) AS col0
----
3182
64

skipif mysql # not compatible
query II rowsort label-7781
SELECT DISTINCT 37 * + 86, 63 + + COUNT ( * ) AS col0
----
3182
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7782
SELECT ALL ( + 73 ) + - + 92 * - 97 + COALESCE ( + ( + NULLIF ( + 75, - MIN( ALL + + 53 ) ) ), + ( - CASE - - 73 WHEN COALESCE ( - + 51, - 26 ) DIV + 0 THEN COUNT( * ) * 14 END ), + COUNT( * ) DIV + 3, + COUNT( ALL 73 ) ) + - 86 * ( 8 ) * + 37 AS col1
----
-16384

skipif mysql # not compatible
query I rowsort label-7782
SELECT ALL ( + 73 ) + - + 92 * - 97 + COALESCE ( + ( + NULLIF ( + 75, - MIN ( ALL + + 53 ) ) ), + ( - CASE - - 73 WHEN COALESCE ( - + 51, - 26 ) / + 0 THEN COUNT ( * ) * 14 END ), + COUNT ( * ) / + 3, + COUNT ( ALL 73 ) ) + - 86 * ( 8 ) * + 37 AS col1
----
-16384

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7783
SELECT CAST( NULL AS SIGNED ) + - 95 + + + 55 + - 11 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7783
SELECT CAST ( NULL AS INTEGER ) + - 95 + + + 55 + - 11 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7784
SELECT + MAX( DISTINCT + 12 ) col2
----
12

skipif mysql # not compatible
query I rowsort label-7784
SELECT + MAX ( DISTINCT + 12 ) col2
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-7785
SELECT ALL MAX( DISTINCT 36 ) + 32 AS col0
----
68

skipif mysql # not compatible
query I rowsort label-7785
SELECT ALL MAX ( DISTINCT 36 ) + 32 AS col0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-7786
SELECT DISTINCT + 55 * - ( 32 ) * 97 - + - ( - ( - + COUNT( * ) ) ) AS col2
----
-170719

skipif mysql # not compatible
query I rowsort label-7786
SELECT DISTINCT + 55 * - ( 32 ) * 97 - + - ( - ( - + COUNT ( * ) ) ) AS col2
----
-170719

onlyif mysql # aggregate syntax: 
query I rowsort label-7787
SELECT - MAX( - - 31 )
----
-31

skipif mysql # not compatible
query I rowsort label-7787
SELECT - MAX ( - - 31 )
----
-31

query II rowsort
SELECT ALL 62 AS col2, + 43 AS col1
----
62
43

onlyif mysql # aggregate syntax: 
query I rowsort label-7789
SELECT DISTINCT 95 - + + COUNT( * ) + + COUNT( * ) * - - 45
----
139

skipif mysql # not compatible
query I rowsort label-7789
SELECT DISTINCT 95 - + + COUNT ( * ) + + COUNT ( * ) * - - 45
----
139

onlyif mysql # DIV for integer division: 
query I rowsort label-7790
SELECT ALL 59 DIV - + 74
----
0

skipif mysql # not compatible
query I rowsort label-7790
SELECT ALL 59 / - + 74
----
0

query II rowsort
SELECT ALL 30 - 54 + ( - 45 ) col1, + 34
----
-69
34

query II rowsort
SELECT DISTINCT 71 AS col0, 21
----
71
21

query I rowsort
SELECT ALL - 63 * + 95 AS col1
----
-5985

query I rowsort
SELECT + + 99 - - - 43
----
56

onlyif mysql # aggregate syntax: 
query II rowsort label-7795
SELECT 64, CASE - - NULLIF ( - 40, 97 ) WHEN - ( + 86 ) * + - 41 * - 69 THEN 54 WHEN - 0 * - 36 THEN - - 27 ELSE NULL END + - COUNT( * ) AS col0
----
64
NULL

skipif mysql # not compatible
query II rowsort label-7795
SELECT 64, CASE - - NULLIF ( - 40, 97 ) WHEN - ( + 86 ) * + - 41 * - 69 THEN 54 WHEN - 0 * - 36 THEN - - 27 ELSE NULL END + - COUNT ( * ) AS col0
----
64
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-7796
SELECT ALL - 13 * + MIN( ALL + 25 ) * - 64 AS col0, COUNT( * ) + - 97 + - 44 - - 63 * + 2, + 27 AS col1
----
20800
-14
27

skipif mysql # not compatible
query III rowsort label-7796
SELECT ALL - 13 * + MIN ( ALL + 25 ) * - 64 AS col0, COUNT ( * ) + - 97 + - 44 - - 63 * + 2, + 27 AS col1
----
20800
-14
27

onlyif mysql # aggregate syntax: 
query I rowsort label-7797
SELECT + COUNT( * ) * 85 - + - 50
----
135

skipif mysql # not compatible
query I rowsort label-7797
SELECT + COUNT ( * ) * 85 - + - 50
----
135

query I rowsort
SELECT ALL 75 * - 27 * + 22
----
-44550

query I rowsort
SELECT + 19 * + ( 80 ) AS col1
----
1520

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

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

query II rowsort
SELECT - 95, 27 * 59 AS col2
----
-95
1593

onlyif mysql # aggregate syntax: 
query I rowsort label-7802
SELECT + 85 * - + SUM( 88 )
----
-7480

skipif mysql # not compatible
query I rowsort label-7802
SELECT + 85 * - + SUM ( 88 )
----
-7480

query I rowsort
SELECT - - 66 * - 14
----
-924

query II rowsort
SELECT + 45 AS col1, 3
----
45
3

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

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

query II rowsort
SELECT ALL 90, - 12 AS col0
----
90
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-7807
SELECT + - 22 + 6 - - 57 * - + COUNT( * ) AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-7807
SELECT + - 22 + 6 - - 57 * - + COUNT ( * ) AS col1
----
-73

query I rowsort
SELECT + + 6 * 80 * 78
----
37440

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

skipif mysql # not compatible
query I rowsort label-7809
SELECT - + 48 + 93 + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT ( 85 ) AS col1, ( + + 2 ) col1
----
85
2

query I rowsort
SELECT ALL + 75 * - 70 + - 56
----
-5306

onlyif mysql # aggregate syntax: 
query I rowsort label-7812
SELECT DISTINCT COUNT( ALL + + 54 ) * - 53 + + 1 - - COUNT( * )
----
-51

skipif mysql # not compatible
query I rowsort label-7812
SELECT DISTINCT COUNT ( ALL + + 54 ) * - 53 + + 1 - - COUNT ( * )
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7813
SELECT COALESCE ( - CAST( NULL AS SIGNED ), + 19 - + - ( - - ( - MAX( + 12 ) ) ), - 93 - - + 22 ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-7813
SELECT COALESCE ( - CAST ( NULL AS INTEGER ), + 19 - + - ( - - ( - MAX ( + 12 ) ) ), - 93 - - + 22 ) AS col0
----
7

query I rowsort
SELECT NULLIF ( + + 6, - 46 ) AS col1
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7815
SELECT ALL + COUNT( DISTINCT + COALESCE ( + + CAST( NULL AS SIGNED ), 48 * - - 51 + + 19 * + ( - 90 ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-7815
SELECT ALL + COUNT ( DISTINCT + COALESCE ( + + CAST ( NULL AS INTEGER ), 48 * - - 51 + + 19 * + ( - 90 ) ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7816
SELECT - COUNT( * ) + + - 76 AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-7816
SELECT - COUNT ( * ) + + - 76 AS col0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-7817
SELECT CASE COUNT( * ) WHEN ( + ( - 75 ) ) THEN + + 11 WHEN - 84 THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7817
SELECT CASE COUNT ( * ) WHEN ( + ( - 75 ) ) THEN + + 11 WHEN - 84 THEN NULL ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7818
SELECT + MIN( DISTINCT - - 77 ) * - 57 * - + 15
----
65835

skipif mysql # not compatible
query I rowsort label-7818
SELECT + MIN ( DISTINCT - - 77 ) * - 57 * - + 15
----
65835

query I rowsort
SELECT - 31 * + 45
----
-1395

query I rowsort
SELECT ALL 42 * - - 74
----
3108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7821
SELECT - 48 - 83 + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7821
SELECT - 48 - 83 + CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7822
SELECT ALL - MIN( DISTINCT 88 ) / ( 28 ) / + + 67 + - MIN( ALL - 89 ) + CASE ( + 1 ) WHEN + - CAST( NULL AS SIGNED ) THEN + 61 + - 47 + + COUNT( * ) * - 69 + COUNT( * ) WHEN + + ( - 69 ) THEN NULL WHEN - ( 64 ) * - 17 THEN 98 + - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7822
SELECT ALL - MIN ( DISTINCT 88 ) / ( 28 ) / + + 67 + - MIN ( ALL - 89 ) + CASE ( + 1 ) WHEN + - CAST ( NULL AS INTEGER ) THEN + 61 + - 47 + + COUNT ( * ) * - 69 + COUNT ( * ) WHEN + + ( - 69 ) THEN NULL WHEN - ( 64 ) * - 17 THEN 98 + - COUNT ( * ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7823
SELECT ALL 18 * + MIN( DISTINCT + + 76 ), + NULLIF ( + + 84, + 65 - - COALESCE ( - - COALESCE ( CASE 88 WHEN 99 THEN + ( - + CAST( NULL AS SIGNED ) ) * + CASE 24 WHEN + COUNT( * ) THEN NULL ELSE 94 * - 5 + 70 END * + 81 WHEN CASE + NULLIF ( - 79, 86 * COUNT( * ) ) WHEN - COUNT( ALL - 2 ) * - 56 + - 98 THEN + 76 + 96 * 27 END THEN 76 * + 39 END, + 74 + 53, + NULLIF ( + ( - CAST( NULL AS SIGNED ) ), 99 * + AVG ( ALL 70 * + 80 ) ) + - 50 ), 8 * 70 + - AVG ( ALL 47 ) ) / - COALESCE ( + 49, + 64 * - 76, 60 + + CASE - 2 + 25 * 91 WHEN + 49 + + 29 * 87 THEN - COUNT( DISTINCT 71 ) END ) ) AS col1
----
1368
84

skipif mysql # not compatible
query II rowsort label-7823
SELECT ALL 18 * + MIN ( DISTINCT + + 76 ), + NULLIF ( + + 84, + 65 - - COALESCE ( - - COALESCE ( CASE 88 WHEN 99 THEN + ( - + CAST ( NULL AS INTEGER ) ) * + CASE 24 WHEN + COUNT ( * ) THEN NULL ELSE 94 * - 5 + 70 END * + 81 WHEN CASE + NULLIF ( - 79, 86 * COUNT ( * ) ) WHEN - COUNT ( ALL - 2 ) * - 56 + - 98 THEN + 76 + 96 * 27 END THEN 76 * + 39 END, + 74 + 53, + NULLIF ( + ( - CAST ( NULL AS INTEGER ) ), 99 * + AVG ( ALL 70 * + 80 ) ) + - 50 ), 8 * 70 + - AVG ( ALL 47 ) ) / - COALESCE ( + 49, + 64 * - 76, 60 + + CASE - 2 + 25 * 91 WHEN + 49 + + 29 * 87 THEN - COUNT ( DISTINCT 71 ) END ) ) AS col1
----
1368
84

query I rowsort
SELECT + 24 + + ( + 30 ) + + 33 * - + 52 * - 22
----
37806

query I rowsort
SELECT DISTINCT + ( + 1 ) AS col1
----
1

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

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

query I rowsort
SELECT - COALESCE ( + 1, + 22 ) AS col1
----
-1

query I rowsort
SELECT ALL - 33 * + + 61 * - 41 AS col0
----
82533

query I rowsort
SELECT + - 22 - + 21 AS col2
----
-43

query I rowsort
SELECT - + 53 + + 71 AS col2
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7831
SELECT + - ( + COUNT( * ) ) + + CAST( NULL AS SIGNED ) + - + 97 / + 7 AS col2, + COUNT( DISTINCT - + CAST( NULL AS SIGNED ) ) + - 90
----
NULL
-90

skipif mysql # not compatible
query II rowsort label-7831
SELECT + - ( + COUNT ( * ) ) + + CAST ( NULL AS INTEGER ) + - + 97 / + 7 AS col2, + COUNT ( DISTINCT - + CAST ( NULL AS INTEGER ) ) + - 90
----
NULL
-90

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7833
SELECT DISTINCT + CAST( - - 48 AS SIGNED ) AS col2, - COUNT( * ) + + - COALESCE ( 18, + 79 ) AS col0
----
48
-19

skipif mysql # not compatible
query II rowsort label-7833
SELECT DISTINCT + CAST ( - - 48 AS INTEGER ) AS col2, - COUNT ( * ) + + - COALESCE ( 18, + 79 ) AS col0
----
48
-19

query I rowsort
SELECT - 60 * 89 * + 94
----
-501960

query I rowsort
SELECT DISTINCT + 90 + + + ( 4 ) * - + 88 + - - 50
----
-212

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7836
SELECT ALL + 57 + + - 26 + 31 * - ( - 29 ) * + ( + COALESCE ( - 61, 34 ) ) * + COUNT( * ) AS col0, 47 + - - COALESCE ( - + 15, + 29 * - 64, + 97, COUNT( * ) DIV - 40 ) AS col2
----
-54808
32

skipif mysql # not compatible
query II rowsort label-7836
SELECT ALL + 57 + + - 26 + 31 * - ( - 29 ) * + ( + COALESCE ( - 61, 34 ) ) * + COUNT ( * ) AS col0, 47 + - - COALESCE ( - + 15, + 29 * - 64, + 97, COUNT ( * ) / - 40 ) AS col2
----
-54808
32

onlyif mysql # aggregate syntax: 
query II rowsort label-7837
SELECT + + ( + + 39 ) * - - COUNT( * ) AS col1, + 49 - 81 AS col0
----
39
-32

skipif mysql # not compatible
query II rowsort label-7837
SELECT + + ( + + 39 ) * - - COUNT ( * ) AS col1, + 49 - 81 AS col0
----
39
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-7838
SELECT ( - MIN( - + 6 ) ) AS col0
----
6

skipif mysql # not compatible
query I rowsort label-7838
SELECT ( - MIN ( - + 6 ) ) AS col0
----
6

onlyif mysql # DIV for integer division: 
query II rowsort label-7839
SELECT + 5 DIV + ( + 82 ) AS col1, 26
----
0
26

skipif mysql # not compatible
query II rowsort label-7839
SELECT + 5 / + ( + 82 ) AS col1, 26
----
0
26

onlyif mysql # aggregate syntax: 
query I rowsort label-7840
SELECT ALL COALESCE ( 66, + + COALESCE ( - COUNT( * ), 22, COUNT( DISTINCT 51 ) ), + MIN( + - ( - 41 ) ) ) * - - 75 * 51 + - 90 AS col0
----
252360

skipif mysql # not compatible
query I rowsort label-7840
SELECT ALL COALESCE ( 66, + + COALESCE ( - COUNT ( * ), 22, COUNT ( DISTINCT 51 ) ), + MIN ( + - ( - 41 ) ) ) * - - 75 * 51 + - 90 AS col0
----
252360

query I rowsort
SELECT ALL 93 + + 10 AS col1
----
103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7842
SELECT DISTINCT 68 + + - CASE + CAST( - 49 AS SIGNED ) WHEN + + 34 * - - 68 + - 22 * 27 * + COUNT( * ) + + ( + + COUNT( * ) ) - + COUNT( * ) / 36 * 51 THEN + + 49 WHEN + CAST( + + 81 AS DECIMAL ) * + 40 - 30 THEN NULL WHEN 1 * - MIN( 43 ) THEN + 62 ELSE - SUM( 13 ) END col2
----
81

skipif mysql # not compatible
query I rowsort label-7842
SELECT DISTINCT 68 + + - CASE + CAST ( - 49 AS INTEGER ) WHEN + + 34 * - - 68 + - 22 * 27 * + COUNT ( * ) + + ( + + COUNT ( * ) ) - + COUNT ( * ) / 36 * 51 THEN + + 49 WHEN + CAST ( + + 81 AS REAL ) * + 40 - 30 THEN NULL WHEN 1 * - MIN ( 43 ) THEN + 62 ELSE - SUM ( 13 ) END col2
----
81

query I rowsort
SELECT ALL 27 * + 35 AS col2
----
945

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7844
SELECT + 38 + + COUNT( * ) DIV + COALESCE ( ( - - 52 ), + 92 + NULLIF ( 5, + 53 + - 82 ) ) AS col1
----
38

skipif mysql # not compatible
query I rowsort label-7844
SELECT + 38 + + COUNT ( * ) / + COALESCE ( ( - - 52 ), + 92 + NULLIF ( 5, + 53 + - 82 ) ) AS col1
----
38

query I rowsort
SELECT + 9 * + 6 col2
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-7846
SELECT 63 * + 63 + + 17 * ( COUNT( * ) ) AS col0
----
3986

skipif mysql # not compatible
query I rowsort label-7846
SELECT 63 * + 63 + + 17 * ( COUNT ( * ) ) AS col0
----
3986

query II rowsort
SELECT + 83, + 64 + + 79 AS col2
----
83
143

onlyif mysql # DIV for integer division: 
query I rowsort label-7848
SELECT + 14 DIV 40 * 24 * + ( - 41 ) * + 75 + 24 + + ( - 18 )
----
6

skipif mysql # not compatible
query I rowsort label-7848
SELECT + 14 / 40 * 24 * + ( - 41 ) * + 75 + 24 + + ( - 18 )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7849
SELECT + 78 + + - COUNT( * ) AS col1
----
77

skipif mysql # not compatible
query I rowsort label-7849
SELECT + 78 + + - COUNT ( * ) AS col1
----
77

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

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

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

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

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

query I rowsort
SELECT - 69 * - 6 + 19
----
433

query I rowsort
SELECT ALL - 10 * - + 57 col0
----
570

onlyif mysql # aggregate syntax: 
query I rowsort label-7855
SELECT 40 + - NULLIF ( + 60, + COUNT( * ) / - + 63 + + - 37 ) + + SUM( 64 ) + - + 63 AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-7855
SELECT 40 + - NULLIF ( + 60, + COUNT ( * ) / - + 63 + + - 37 ) + + SUM ( 64 ) + - + 63 AS col2
----
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-7856
SELECT 11 DIV 64 * - 33 * - 39 * - 45
----
0

skipif mysql # not compatible
query I rowsort label-7856
SELECT 11 / 64 * - 33 * - 39 * - 45
----
0

query I rowsort
SELECT 23 * - + 69
----
-1587

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

skipif mysql # not compatible
query I rowsort label-7858
SELECT 59 * - - COUNT ( * ) AS col1
----
59

query II rowsort
SELECT + 17, - 65 AS col0
----
17
-65

query I rowsort
SELECT ( - + 29 ) * + - 56 + + 90 + 89
----
1803

query I rowsort
SELECT DISTINCT - 35 * - 81 * - 90 + - + 2 AS col1
----
-255152

query I rowsort
SELECT 32 * - + 90 AS col2
----
-2880

query II rowsort
SELECT + 6 col0, + 86 * - 66 AS col1
----
6
-5676

query I rowsort
SELECT 78 * - - 72
----
5616

query I rowsort
SELECT ALL - 22 + 92
----
70

query I rowsort
SELECT DISTINCT COALESCE ( - - 4, + 15, - 77 ) * - 47
----
-188

query II rowsort
SELECT - 41 AS col0, + 88 + + 7 - 84 AS col2
----
-41
11

query I rowsort
SELECT DISTINCT - - 22 + + 1
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-7869
SELECT ALL + - ( MIN( DISTINCT - + 63 ) ) + + - 51 + - + 80
----
-68

skipif mysql # not compatible
query I rowsort label-7869
SELECT ALL + - ( MIN ( DISTINCT - + 63 ) ) + + - 51 + - + 80
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-7870
SELECT 88 - - 16 * + - COUNT( * ) * + - 27 + + MIN( ALL ( + 19 ) )
----
539

skipif mysql # not compatible
query I rowsort label-7870
SELECT 88 - - 16 * + - COUNT ( * ) * + - 27 + + MIN ( ALL ( + 19 ) )
----
539

onlyif mysql # aggregate syntax: 
query I rowsort label-7871
SELECT - 81 - - COUNT( * ) + + - 87 * - 19 AS col2
----
1573

skipif mysql # not compatible
query I rowsort label-7871
SELECT - 81 - - COUNT ( * ) + + - 87 * - 19 AS col2
----
1573

onlyif mysql # aggregate syntax: 
query II rowsort label-7872
SELECT - - 78 AS col2, + COUNT( * )
----
78
1

skipif mysql # not compatible
query II rowsort label-7872
SELECT - - 78 AS col2, + COUNT ( * )
----
78
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7873
SELECT - + COUNT( ALL + 7 )
----
-1

skipif mysql # not compatible
query I rowsort label-7873
SELECT - + COUNT ( ALL + 7 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7874
SELECT DISTINCT + - COUNT( * ) + + ( + 13 ) + 15 * - - 77 AS col0
----
1167

skipif mysql # not compatible
query I rowsort label-7874
SELECT DISTINCT + - COUNT ( * ) + + ( + 13 ) + 15 * - - 77 AS col0
----
1167

onlyif mysql # aggregate syntax: 
query II rowsort label-7875
SELECT DISTINCT 19 AS col2, - 24 * + + 66 * COUNT( * ) AS col0
----
19
-1584

skipif mysql # not compatible
query II rowsort label-7875
SELECT DISTINCT 19 AS col2, - 24 * + + 66 * COUNT ( * ) AS col0
----
19
-1584

onlyif mysql # aggregate syntax: 
query I rowsort label-7876
SELECT DISTINCT - MAX( + - 74 ) + - 4 - - 57 - - - 80 + + 82 * + + 19 * + 41 * - - 52 * + 30
----
99649727

skipif mysql # not compatible
query I rowsort label-7876
SELECT DISTINCT - MAX ( + - 74 ) + - 4 - - 57 - - - 80 + + 82 * + + 19 * + 41 * - - 52 * + 30
----
99649727

query I rowsort
SELECT + 30 - - 98
----
128

onlyif mysql # aggregate syntax: 
query II rowsort label-7878
SELECT ALL 79 - - 47 col1, MAX( - 86 ) + MAX( DISTINCT - 60 )
----
126
-146

skipif mysql # not compatible
query II rowsort label-7878
SELECT ALL 79 - - 47 col1, MAX ( - 86 ) + MAX ( DISTINCT - 60 )
----
126
-146

query I rowsort
SELECT 24 * - + 56 AS col0
----
-1344

query I rowsort
SELECT 14 * - 0 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7881
SELECT 4 * + COUNT( * ) DIV - CASE + 68 WHEN - 2 THEN NULL ELSE CAST( - - 89 AS SIGNED ) END * + COUNT( DISTINCT - ( + 0 ) ) + + CAST( - 59 AS SIGNED ) DIV - + MAX( DISTINCT + ( + - 87 ) )
----
0

skipif mysql # not compatible
query I rowsort label-7881
SELECT 4 * + COUNT ( * ) / - CASE + 68 WHEN - 2 THEN NULL ELSE CAST ( - - 89 AS INTEGER ) END * + COUNT ( DISTINCT - ( + 0 ) ) + + CAST ( - 59 AS INTEGER ) / - + MAX ( DISTINCT + ( + - 87 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7882
SELECT NULLIF ( + ( 71 ), - - 41 + - + COUNT( * ) ) * + - 39
----
-2769

skipif mysql # not compatible
query I rowsort label-7882
SELECT NULLIF ( + ( 71 ), - - 41 + - + COUNT ( * ) ) * + - 39
----
-2769

query I rowsort
SELECT 14 * + - ( 84 ) col2
----
-1176

query I rowsort
SELECT 39 * - 51 AS col0
----
-1989

query I rowsort
SELECT DISTINCT - ( 50 ) + + ( ( 73 ) )
----
23

query I rowsort
SELECT ALL + + 99 + - 13 AS col0
----
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7887
SELECT 24 + - 29 DIV + 55 * 99, MIN( 34 ) + - + 32 * 54 * + + 7 col2
----
24
-12062

skipif mysql # not compatible
query II rowsort label-7887
SELECT 24 + - 29 / + 55 * 99, MIN ( 34 ) + - + 32 * 54 * + + 7 col2
----
24
-12062

query I rowsort
SELECT - 12 * - 23 AS col2
----
276

query I rowsort
SELECT ALL - 90 + 63 AS col1
----
-27

query I rowsort
SELECT NULLIF ( + 83, + + 95 ) - - NULLIF ( 1, + 21 ) AS col2
----
84

query I rowsort
SELECT - + ( - + 97 )
----
97

query I rowsort
SELECT ( - 46 ) + + 56 * 65 col0
----
3594

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7893
SELECT DISTINCT + NULLIF ( + 59, - - 45 - - - CAST( NULL AS SIGNED ) * + COUNT( * ) ) DIV ( + 27 )
----
2

skipif mysql # not compatible
query I rowsort label-7893
SELECT DISTINCT + NULLIF ( + 59, - - 45 - - - CAST ( NULL AS INTEGER ) * + COUNT ( * ) ) / ( + 27 )
----
2

query I rowsort
SELECT 65 + + - 99 AS col0
----
-34

query I rowsort
SELECT ALL + - 52 - - 53 AS col0
----
1

query I rowsort
SELECT ALL - COALESCE ( + 21, - 88 ) * 37 * - 38 AS col0
----
29526

onlyif mysql # aggregate syntax: 
query I rowsort label-7897
SELECT ALL - COUNT( * ) * + 45
----
-45

skipif mysql # not compatible
query I rowsort label-7897
SELECT ALL - COUNT ( * ) * + 45
----
-45

query II rowsort
SELECT ALL 35 AS col2, - 30 AS col1
----
35
-30

query I rowsort
SELECT - 31 * + 80 AS col0
----
-2480

query I rowsort
SELECT ALL - 10 * + - 11 AS col0
----
110

query I rowsort
SELECT + 49 + + ( - 24 )
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-7902
SELECT DISTINCT + SUM( DISTINCT - + ( 48 ) )
----
-48

skipif mysql # not compatible
query I rowsort label-7902
SELECT DISTINCT + SUM ( DISTINCT - + ( 48 ) )
----
-48

query I rowsort
SELECT - 95 * 5
----
-475

onlyif mysql # aggregate syntax: 
query I rowsort label-7904
SELECT + 1 * COUNT( - - 90 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7904
SELECT + 1 * COUNT ( - - 90 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7905
SELECT NULLIF ( 69, - COUNT( * ) / CASE + 2 WHEN - 13 THEN NULL WHEN - + 12 THEN + 70 + + 66 END )
----
69

skipif mysql # not compatible
query I rowsort label-7905
SELECT NULLIF ( 69, - COUNT ( * ) / CASE + 2 WHEN - 13 THEN NULL WHEN - + 12 THEN + 70 + + 66 END )
----
69

query I rowsort
SELECT - 89 + ( - 13 ) * + 48
----
-713

onlyif mysql # aggregate syntax: 
query I rowsort label-7907
SELECT ( ( + - 79 ) ) * - COUNT( * ) + - SUM( ALL - 62 )
----
141

skipif mysql # not compatible
query I rowsort label-7907
SELECT ( ( + - 79 ) ) * - COUNT ( * ) + - SUM ( ALL - 62 )
----
141

onlyif mysql # aggregate syntax: 
query II rowsort label-7908
SELECT ALL 60 * + COUNT( * ) * 38 AS col1, + 81 * + 78
----
2280
6318

skipif mysql # not compatible
query II rowsort label-7908
SELECT ALL 60 * + COUNT ( * ) * 38 AS col1, + 81 * + 78
----
2280
6318

query I rowsort
SELECT + 65 * 74
----
4810

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7910
SELECT ALL + ( + + 31 ) * NULLIF ( + - 84, + ( - CAST( NULL AS SIGNED ) ) ) + 36 col1
----
-2568

skipif mysql # not compatible
query I rowsort label-7910
SELECT ALL + ( + + 31 ) * NULLIF ( + - 84, + ( - CAST ( NULL AS INTEGER ) ) ) + 36 col1
----
-2568

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7911
SELECT ALL COUNT( * ) * COUNT( * ) + 63 - 16 DIV 47 AS col2
----
64

skipif mysql # not compatible
query I rowsort label-7911
SELECT ALL COUNT ( * ) * COUNT ( * ) + 63 - 16 / 47 AS col2
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7912
SELECT + 13 * CASE + 41 WHEN COUNT( * ) THEN - COUNT( * ) * 84 - + CAST( NULL AS SIGNED ) + - - 72 + - - 94 / - 75 * - ( - COUNT( * ) ) * - 55 + + - CAST( + - COALESCE ( + AVG ( DISTINCT + - 82 ), 5 ) AS DECIMAL ) - - MAX( DISTINCT 24 ) + + 49 / - 7 END * 43 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7912
SELECT + 13 * CASE + 41 WHEN COUNT ( * ) THEN - COUNT ( * ) * 84 - + CAST ( NULL AS INTEGER ) + - - 72 + - - 94 / - 75 * - ( - COUNT ( * ) ) * - 55 + + - CAST ( + - COALESCE ( + AVG ( DISTINCT + - 82 ), 5 ) AS REAL ) - - MAX ( DISTINCT 24 ) + + 49 / - 7 END * 43 AS col1
----
NULL

query I rowsort
SELECT + 83 + 92
----
175

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7914
SELECT + 96 DIV + COUNT( * ) + - COUNT( * ) + - 76
----
19

skipif mysql # not compatible
query I rowsort label-7914
SELECT + 96 / + COUNT ( * ) + - COUNT ( * ) + - 76
----
19

query I rowsort
SELECT + + 14 * - - 83 AS col1
----
1162

onlyif mysql # aggregate syntax: 
query I rowsort label-7916
SELECT + - 8 * + COUNT( * ) * - MIN( 89 ) col1
----
712

skipif mysql # not compatible
query I rowsort label-7916
SELECT + - 8 * + COUNT ( * ) * - MIN ( 89 ) col1
----
712

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7917
SELECT + - COUNT( * ) * - - ( - 55 ) * + 87 / - + NULLIF ( ( + ( - - 56 ) ), - 84 ) * + 66 * + CAST( NULL AS SIGNED ) + - 76 + - - CASE - 89 WHEN - + 35 THEN - 49 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7917
SELECT + - COUNT ( * ) * - - ( - 55 ) * + 87 / - + NULLIF ( ( + ( - - 56 ) ), - 84 ) * + 66 * + CAST ( NULL AS INTEGER ) + - 76 + - - CASE - 89 WHEN - + 35 THEN - 49 END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7918
SELECT - 76 * - 20 + NULLIF ( - CAST( - 15 AS SIGNED ), - 76 ) + - CAST( - 74 AS SIGNED )
----
1609

skipif mysql # not compatible
query I rowsort label-7918
SELECT - 76 * - 20 + NULLIF ( - CAST ( - 15 AS INTEGER ), - 76 ) + - CAST ( - 74 AS INTEGER )
----
1609

onlyif mysql # aggregate syntax: 
query I rowsort label-7919
SELECT ALL + + ( COUNT( * ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7919
SELECT ALL + + ( COUNT ( * ) ) AS col0
----
1

query I rowsort
SELECT + ( 72 )
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7921
SELECT ALL - CAST( + 36 AS SIGNED ) * - 64 - - 54 + + + COUNT( * ) DIV + 63
----
2358

skipif mysql # not compatible
query I rowsort label-7921
SELECT ALL - CAST ( + 36 AS INTEGER ) * - 64 - - 54 + + + COUNT ( * ) / + 63
----
2358

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7922
SELECT + CAST( + 30 AS SIGNED ) * - 76 + + 4 * - + 38 * 24 AS col1
----
-5928

skipif mysql # not compatible
query I rowsort label-7922
SELECT + CAST ( + 30 AS INTEGER ) * - 76 + + 4 * - + 38 * 24 AS col1
----
-5928

query II rowsort
SELECT ALL - 38 col2, - 59
----
-38
-59

query II rowsort
SELECT - 26, - CASE - ( + 39 ) WHEN + 75 THEN - 31 WHEN - 93 THEN NULL END * + 3 AS col0
----
-26
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7925
SELECT DISTINCT CASE - 61 WHEN - 79 THEN NULL WHEN - COUNT( * ) THEN + + 9 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7925
SELECT DISTINCT CASE - 61 WHEN - 79 THEN NULL WHEN - COUNT ( * ) THEN + + 9 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7926
SELECT ALL 82 - + COUNT( * )
----
81

skipif mysql # not compatible
query I rowsort label-7926
SELECT ALL 82 - + COUNT ( * )
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7927
SELECT + + COUNT( * ) * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7927
SELECT + + COUNT ( * ) * - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - - 7 * - 7
----
-49

query I rowsort
SELECT + - 37 - - + 88
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7930
SELECT ( - COUNT( DISTINCT + 49 ) ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-7930
SELECT ( - COUNT ( DISTINCT + 49 ) ) col1
----
-1

query I rowsort
SELECT ALL - ( + 21 )
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7932
SELECT + + CASE + + 27 WHEN 18 / + + 61 * + ( + 3 ) * + 79 / COALESCE ( - MAX( ALL - 37 ), - 9 - - - NULLIF ( - CAST( 93 AS SIGNED ), - ( - 71 ) ) ) THEN NULL ELSE - COALESCE ( - 94, + + 59 - - - 96 + - 1 * - 99 ) + + 71 END - 85
----
80

skipif mysql # not compatible
query I rowsort label-7932
SELECT + + CASE + + 27 WHEN 18 / + + 61 * + ( + 3 ) * + 79 / COALESCE ( - MAX ( ALL - 37 ), - 9 - - - NULLIF ( - CAST ( 93 AS INTEGER ), - ( - 71 ) ) ) THEN NULL ELSE - COALESCE ( - 94, + + 59 - - - 96 + - 1 * - 99 ) + + 71 END - 85
----
80

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7933
SELECT - - 57 DIV CAST( 40 AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-7933
SELECT - - 57 / CAST ( 40 AS INTEGER )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7934
SELECT - 79 * 5 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7934
SELECT - 79 * 5 / CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7935
SELECT DISTINCT MIN( 44 ) AS col0
----
44

skipif mysql # not compatible
query I rowsort label-7935
SELECT DISTINCT MIN ( 44 ) AS col0
----
44

onlyif mysql # aggregate syntax: 
query II rowsort label-7936
SELECT ALL COUNT( * ) AS col0, 36 + - 93
----
1
-57

skipif mysql # not compatible
query II rowsort label-7936
SELECT ALL COUNT ( * ) AS col0, 36 + - 93
----
1
-57

onlyif mysql # DIV for integer division: 
query II rowsort label-7937
SELECT - 32 DIV - 59 AS col1, + 12 * 16 + 73
----
0
265

skipif mysql # not compatible
query II rowsort label-7937
SELECT - 32 / - 59 AS col1, + 12 * 16 + 73
----
0
265

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7938
SELECT ALL SUM( - 97 ), 89 DIV - 22 + + 74 + - 51 AS col2
----
-97
19

skipif mysql # not compatible
query II rowsort label-7938
SELECT ALL SUM ( - 97 ), 89 / - 22 + + 74 + - 51 AS col2
----
-97
19

onlyif mysql # aggregate syntax: 
query I rowsort label-7939
SELECT - 8 - - MAX( - 23 ) col2
----
-31

skipif mysql # not compatible
query I rowsort label-7939
SELECT - 8 - - MAX ( - 23 ) col2
----
-31

query I rowsort
SELECT - 13 * 95
----
-1235

onlyif mysql # aggregate syntax: 
query II rowsort label-7941
SELECT - 72 + - 72, COUNT( * ) AS col2
----
-144
1

skipif mysql # not compatible
query II rowsort label-7941
SELECT - 72 + - 72, COUNT ( * ) AS col2
----
-144
1

query II rowsort
SELECT + 2, + 26 AS col1
----
2
26

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7943
SELECT DISTINCT + 81 AS col1, NULLIF ( + CAST( NULL AS SIGNED ), - ( 6 ) ) / + 5 * + 4 AS col0
----
81
NULL

skipif mysql # not compatible
query II rowsort label-7943
SELECT DISTINCT + 81 AS col1, NULLIF ( + CAST ( NULL AS INTEGER ), - ( 6 ) ) / + 5 * + 4 AS col0
----
81
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7944
SELECT ALL - 52 / - + CAST( NULL AS SIGNED ) + - 24 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7944
SELECT ALL - 52 / - + CAST ( NULL AS INTEGER ) + - 24 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7945
SELECT CAST( NULL AS SIGNED ) AS col2, - 22
----
NULL
-22

skipif mysql # not compatible
query II rowsort label-7945
SELECT CAST ( NULL AS INTEGER ) AS col2, - 22
----
NULL
-22

onlyif mysql # aggregate syntax: 
query II rowsort label-7946
SELECT + COUNT( * ) AS col0, COUNT( * ) + - CASE + 5 WHEN - - 69 THEN + 64 * 65 WHEN 87 THEN 50 ELSE NULL END AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-7946
SELECT + COUNT ( * ) AS col0, COUNT ( * ) + - CASE + 5 WHEN - - 69 THEN + 64 * 65 WHEN 87 THEN 50 ELSE NULL END AS col1
----
1
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7947
SELECT DISTINCT + ( - - 13 ) DIV 73 - - 21 + 30
----
51

skipif mysql # not compatible
query I rowsort label-7947
SELECT DISTINCT + ( - - 13 ) / 73 - - 21 + 30
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7948
SELECT + CAST( NULL AS SIGNED ) / - ( - 32 ) + - SUM( DISTINCT - ( + 14 ) ), NULLIF ( - NULLIF ( - - AVG ( 84 ), ( MIN( + ( 51 ) ) ) ), 5 * 45 * + AVG ( DISTINCT + 64 ) ) + + + CAST( NULL AS SIGNED ) * 46 * 48
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7948
SELECT + CAST ( NULL AS INTEGER ) / - ( - 32 ) + - SUM ( DISTINCT - ( + 14 ) ), NULLIF ( - NULLIF ( - - AVG ( 84 ), ( MIN ( + ( 51 ) ) ) ), 5 * 45 * + AVG ( DISTINCT + 64 ) ) + + + CAST ( NULL AS INTEGER ) * 46 * 48
----
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7949
SELECT - 20 DIV - 64 + - + 1 + - 31 - + 77
----
-109

skipif mysql # not compatible
query I rowsort label-7949
SELECT - 20 / - 64 + - + 1 + - 31 - + 77
----
-109

query II rowsort
SELECT + 25, + 35 * - 66 AS col1
----
25
-2310

query I rowsort
SELECT - - 43 + 51 + - + 62
----
32

query I rowsort
SELECT DISTINCT + - ( - + 83 ) AS col0
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7953
SELECT ALL + ( - 71 ) DIV - - ( - CASE - NULLIF ( - - COUNT( * ), CASE 87 WHEN + + 0 THEN - 34 WHEN - 44 THEN + CAST( NULL AS SIGNED ) + - 23 + + 10 * - 79 - 23 * + 49 WHEN + AVG ( ALL 60 ) THEN ( - + CAST( 95 AS SIGNED ) ) END ) WHEN + 5 + + 68 THEN ( 41 ) ELSE 79 + 83 * 82 END ) * - 4 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7953
SELECT ALL + ( - 71 ) / - - ( - CASE - NULLIF ( - - COUNT ( * ), CASE 87 WHEN + + 0 THEN - 34 WHEN - 44 THEN + CAST ( NULL AS INTEGER ) + - 23 + + 10 * - 79 - 23 * + 49 WHEN + AVG ( ALL 60 ) THEN ( - + CAST ( 95 AS INTEGER ) ) END ) WHEN + 5 + + 68 THEN ( 41 ) ELSE 79 + 83 * 82 END ) * - 4 AS col2
----
0

query I rowsort
SELECT + 44 * - 1 + + 13
----
-31

query I rowsort
SELECT + 3 * - + 31 AS col1
----
-93

query II rowsort
SELECT ALL + + 8, 43 * + 79 col2
----
8
3397

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7957
SELECT ALL + COUNT( * ) * - 45 - + CASE - - COALESCE ( + - CAST( NULL AS SIGNED ), - 28 * + 80, - 81 ) WHEN 48 THEN NULL WHEN 81 THEN 7 WHEN + 19 + - + COUNT( * ) THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7957
SELECT ALL + COUNT ( * ) * - 45 - + CASE - - COALESCE ( + - CAST ( NULL AS INTEGER ), - 28 * + 80, - 81 ) WHEN 48 THEN NULL WHEN 81 THEN 7 WHEN + 19 + - + COUNT ( * ) THEN NULL ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT DISTINCT + - ( + 58 ) AS col0
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-7959
SELECT ALL + 13 DIV + + COALESCE ( + 89, 24 ) * + 90 col1
----
0

skipif mysql # not compatible
query I rowsort label-7959
SELECT ALL + 13 / + + COALESCE ( + 89, 24 ) * + 90 col1
----
0

query I rowsort
SELECT + 69 - - 21
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-7961
SELECT DISTINCT + 80 * ( - COUNT( * ) ) + - 91 + + 9 * 32 AS col1
----
117

skipif mysql # not compatible
query I rowsort label-7961
SELECT DISTINCT + 80 * ( - COUNT ( * ) ) + - 91 + + 9 * 32 AS col1
----
117

query II rowsort
SELECT + 4 AS col1, + 14
----
4
14

query I rowsort
SELECT - 27 * + 70 AS col0
----
-1890

onlyif mysql # DIV for integer division: 
query I rowsort label-7964
SELECT - + 41 DIV - 70 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7964
SELECT - + 41 / - 70 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7965
SELECT + + NULLIF ( + - COALESCE ( + 58, + - NULLIF ( + 23, 23 / - 21 + - - ( + + MAX( + - 85 ) ) + - + 27 ), - 55 * + 57 * - NULLIF ( + + 62, + COUNT( * ) * + COALESCE ( 66, - COALESCE ( 43, + 61 * - 70 + + 82 ) ) ) + - 2, - 9 + 77 ), + CAST( NULL AS SIGNED ) )
----
-58

skipif mysql # not compatible
query I rowsort label-7965
SELECT + + NULLIF ( + - COALESCE ( + 58, + - NULLIF ( + 23, 23 / - 21 + - - ( + + MAX ( + - 85 ) ) + - + 27 ), - 55 * + 57 * - NULLIF ( + + 62, + COUNT ( * ) * + COALESCE ( 66, - COALESCE ( 43, + 61 * - 70 + + 82 ) ) ) + - 2, - 9 + 77 ), + CAST ( NULL AS INTEGER ) )
----
-58

query II rowsort
SELECT ALL - 76 AS col0, 25 col2
----
-76
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7967
SELECT ALL + COUNT( DISTINCT + 18 ), 65 DIV 17 + 31 * - 96 AS col0
----
1
-2973

skipif mysql # not compatible
query II rowsort label-7967
SELECT ALL + COUNT ( DISTINCT + 18 ), 65 / 17 + 31 * - 96 AS col0
----
1
-2973

query II rowsort
SELECT 29 AS col2, 19
----
29
19

onlyif mysql # aggregate syntax: 
query I rowsort label-7969
SELECT DISTINCT NULLIF ( 47, 13 + + + 36 * NULLIF ( 36, - 38 + COALESCE ( + COUNT( * ), + 61 + + - COUNT( * ) * + 51, - 20 / 19 - + - 79 ) * + - 7 ) / - - 95 )
----
47

skipif mysql # not compatible
query I rowsort label-7969
SELECT DISTINCT NULLIF ( 47, 13 + + + 36 * NULLIF ( 36, - 38 + COALESCE ( + COUNT ( * ), + 61 + + - COUNT ( * ) * + 51, - 20 / 19 - + - 79 ) * + - 7 ) / - - 95 )
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7970
SELECT CAST( NULL AS SIGNED ) + - COUNT( DISTINCT - + 92 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7970
SELECT CAST ( NULL AS INTEGER ) + - COUNT ( DISTINCT - + 92 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7971
SELECT NULLIF ( 32, - 22 ) * - COUNT( ALL - COALESCE ( + 84, - 93 ) ) * + 49 * 60 + COUNT( - 12 )
----
-94079

skipif mysql # not compatible
query I rowsort label-7971
SELECT NULLIF ( 32, - 22 ) * - COUNT ( ALL - COALESCE ( + 84, - 93 ) ) * + 49 * 60 + COUNT ( - 12 )
----
-94079

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7972
SELECT CAST( NULL AS SIGNED ) * + - 70 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7972
SELECT CAST ( NULL AS INTEGER ) * + - 70 AS col1
----
NULL

query I rowsort
SELECT 43 + - 67 * - 51 col0
----
3460

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7974
SELECT CAST( NULL AS SIGNED ) + + 49 + 59 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7974
SELECT CAST ( NULL AS INTEGER ) + + 49 + 59 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7975
SELECT DISTINCT ( + + 22 ) * + - SUM( 38 )
----
-836

skipif mysql # not compatible
query I rowsort label-7975
SELECT DISTINCT ( + + 22 ) * + - SUM ( 38 )
----
-836

onlyif mysql # aggregate syntax: 
query II rowsort label-7976
SELECT ALL 48 + + CASE + COUNT( * ) WHEN - - 68 THEN + 42 * + 41 ELSE - + 3 END + 23, 61 + 81 AS col2
----
68
142

skipif mysql # not compatible
query II rowsort label-7976
SELECT ALL 48 + + CASE + COUNT ( * ) WHEN - - 68 THEN + 42 * + 41 ELSE - + 3 END + 23, 61 + 81 AS col2
----
68
142

query I rowsort
SELECT DISTINCT COALESCE ( 59, 38 ) + + + ( - 92 )
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7978
SELECT DISTINCT - 2 / + CAST( NULL AS SIGNED ) * - 48
----
NULL

skipif mysql # not compatible
query I rowsort label-7978
SELECT DISTINCT - 2 / + CAST ( NULL AS INTEGER ) * - 48
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7979
SELECT DISTINCT 83 + - MAX( 59 )
----
24

skipif mysql # not compatible
query I rowsort label-7979
SELECT DISTINCT 83 + - MAX ( 59 )
----
24

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7980
SELECT DISTINCT + 75 + 23 - - 73 DIV 64 DIV - 90 AS col0, 87 DIV 10 + - + 48 + + CAST( NULL AS SIGNED )
----
98
NULL

skipif mysql # not compatible
query II rowsort label-7980
SELECT DISTINCT + 75 + 23 - - 73 / 64 / - 90 AS col0, 87 / 10 + - + 48 + + CAST ( NULL AS INTEGER )
----
98
NULL

query I rowsort
SELECT 74 + - 3 AS col1
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7982
SELECT DISTINCT - 3 DIV - COUNT( * ) AS col0, 80 DIV + 44 + - - ( + + 41 ) * + - NULLIF ( - 42, - - 38 ) AS col1
----
3
1723

skipif mysql # not compatible
query II rowsort label-7982
SELECT DISTINCT - 3 / - COUNT ( * ) AS col0, 80 / + 44 + - - ( + + 41 ) * + - NULLIF ( - 42, - - 38 ) AS col1
----
3
1723

query I rowsort
SELECT + 9 * 34 AS col2
----
306

onlyif mysql # aggregate syntax: 
query I rowsort label-7984
SELECT COUNT( * ) * - + CASE + - 52 WHEN + 4 + + 25 + 92 THEN 44 + + 67 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7984
SELECT COUNT ( * ) * - + CASE + - 52 WHEN + 4 + + 25 + 92 THEN 44 + + 67 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT + + 50 - + + 95 AS col0
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7986
SELECT ALL - - CASE - CAST( NULL AS SIGNED ) WHEN 16 + - 47 THEN + + 67 ELSE - - 77 END
----
77

skipif mysql # not compatible
query I rowsort label-7986
SELECT ALL - - CASE - CAST ( NULL AS INTEGER ) WHEN 16 + - 47 THEN + + 67 ELSE - - 77 END
----
77

query I rowsort
SELECT DISTINCT - ( 76 ) col0
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-7988
SELECT ALL + COUNT( * ) - + + COUNT( * ) + 54 * - 78 + - - COUNT( * ) col0
----
-4211

skipif mysql # not compatible
query I rowsort label-7988
SELECT ALL + COUNT ( * ) - + + COUNT ( * ) + 54 * - 78 + - - COUNT ( * ) col0
----
-4211

query I rowsort
SELECT DISTINCT + 0 * + ( - - 57 )
----
0

query I rowsort
SELECT DISTINCT + + 59 * 77
----
4543

query I rowsort
SELECT ALL + 51 - + 6 col2
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7992
SELECT + 81 + - 22 AS col0, - 72 DIV + 98 + - 3 * - SUM( ALL + 58 ) * + 47 AS col0
----
59
8178

skipif mysql # not compatible
query II rowsort label-7992
SELECT + 81 + - 22 AS col0, - 72 / + 98 + - 3 * - SUM ( ALL + 58 ) * + 47 AS col0
----
59
8178

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7993
SELECT COUNT( + - CAST( 87 AS SIGNED ) ) * + 66 * - 26 AS col2
----
-1716

skipif mysql # not compatible
query I rowsort label-7993
SELECT COUNT ( + - CAST ( 87 AS INTEGER ) ) * + 66 * - 26 AS col2
----
-1716

onlyif mysql # DIV for integer division: 
query II rowsort label-7994
SELECT 1 DIV - 53 AS col1, 70
----
0
70

skipif mysql # not compatible
query II rowsort label-7994
SELECT 1 / - 53 AS col1, 70
----
0
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7995
SELECT DISTINCT - ( + + MAX( 86 ) ) DIV 50 * + 97 AS col1, + 8
----
-97
8

skipif mysql # not compatible
query II rowsort label-7995
SELECT DISTINCT - ( + + MAX ( 86 ) ) / 50 * + 97 AS col1, + 8
----
-97
8

onlyif mysql # aggregate syntax: 
query I rowsort label-7996
SELECT DISTINCT - MAX( ALL + - 17 ) col2
----
17

skipif mysql # not compatible
query I rowsort label-7996
SELECT DISTINCT - MAX ( ALL + - 17 ) col2
----
17

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7997
SELECT ALL - 24 / 47 * + + 4 + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7997
SELECT ALL - 24 / 47 * + + 4 + - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT DISTINCT - 7 * + 88 + + 10 * + 60 - - 95 AS col1
----
79

query I rowsort
SELECT ALL 3 + - 71 AS col0
----
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8000
SELECT 34 * CAST( NULL AS SIGNED ) / - + COUNT( * ) * - - 40 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8000
SELECT 34 * CAST ( NULL AS INTEGER ) / - + COUNT ( * ) * - - 40 AS col1
----
NULL

query I rowsort
SELECT 40 + 22
----
62

onlyif mysql # aggregate syntax: 
query II rowsort label-8002
SELECT DISTINCT 28 AS col1, + MIN( DISTINCT + 47 ) * - 16 - - MAX( - 46 ) + + 22 * 85 * + - 69 AS col1
----
28
-129828

skipif mysql # not compatible
query II rowsort label-8002
SELECT DISTINCT 28 AS col1, + MIN ( DISTINCT + 47 ) * - 16 - - MAX ( - 46 ) + + 22 * 85 * + - 69 AS col1
----
28
-129828

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8003
SELECT ALL + CASE + 34 WHEN + 67 THEN NULL ELSE + CAST( - 87 AS SIGNED ) DIV 55 * - ( - COUNT( * ) ) END + - SUM( 52 ) + + 9 AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-8003
SELECT ALL + CASE + 34 WHEN + 67 THEN NULL ELSE + CAST ( - 87 AS INTEGER ) / 55 * - ( - COUNT ( * ) ) END + - SUM ( 52 ) + + 9 AS col0
----
-44

query I rowsort
SELECT ALL 37 + + 89 + - 31 * + 8 + - 35 col1
----
-157

onlyif mysql # aggregate syntax: 
query I rowsort label-8005
SELECT DISTINCT CASE 34 WHEN - 32 THEN + CASE - - MAX( + 68 ) WHEN 78 + + 19 * + + NULLIF ( + 59, + ( + + 80 ) * 34 ) THEN NULL WHEN 30 THEN NULL ELSE 49 END * + - SUM( DISTINCT + 89 ) END + + + ( - 99 ) + - 1
----
NULL

skipif mysql # not compatible
query I rowsort label-8005
SELECT DISTINCT CASE 34 WHEN - 32 THEN + CASE - - MAX ( + 68 ) WHEN 78 + + 19 * + + NULLIF ( + 59, + ( + + 80 ) * 34 ) THEN NULL WHEN 30 THEN NULL ELSE 49 END * + - SUM ( DISTINCT + 89 ) END + + + ( - 99 ) + - 1
----
NULL

query I rowsort
SELECT 65 * 91
----
5915

onlyif mysql # aggregate syntax: 
query II rowsort label-8007
SELECT 58 AS col1, - COUNT( * ) + - COALESCE ( + + 13, - - 26 )
----
58
-14

skipif mysql # not compatible
query II rowsort label-8007
SELECT 58 AS col1, - COUNT ( * ) + - COALESCE ( + + 13, - - 26 )
----
58
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8008
SELECT - SUM( + + ( + 25 ) ) AS col1, + 11 * 16 DIV - 94
----
-25
-1

skipif mysql # not compatible
query II rowsort label-8008
SELECT - SUM ( + + ( + 25 ) ) AS col1, + 11 * 16 / - 94
----
-25
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8009
SELECT 78 - CAST( NULL AS DECIMAL ) * + 60
----
NULL

skipif mysql # not compatible
query I rowsort label-8009
SELECT 78 - CAST ( NULL AS REAL ) * + 60
----
NULL

query I rowsort
SELECT 49 * + 25
----
1225

query I rowsort
SELECT ALL 94 * 3 AS col0
----
282

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8012
SELECT 55 DIV - MAX( + 68 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8012
SELECT 55 / - MAX ( + 68 ) AS col2
----
0

query II rowsort
SELECT ALL 76 * + - 86 * - + 39, 96 AS col1
----
254904
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8014
SELECT ALL - COALESCE ( - - COUNT( ALL - + 44 ), + 74 * - 87 * - COUNT( * ) * - 25 * + 31, - + 0 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8014
SELECT ALL - COALESCE ( - - COUNT ( ALL - + 44 ), + 74 * - 87 * - COUNT ( * ) * - 25 * + 31, - + 0 ) AS col1
----
-1

query II rowsort
SELECT - COALESCE ( 6, + 50 ) AS col0, + 38 col2
----
-6
38

query I rowsort
SELECT ALL - + 99 col2
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8017
SELECT COUNT( * ) * CASE COUNT( * ) WHEN + + 98 THEN ( - - CASE + - 67 WHEN - 16 + + - CASE 62 WHEN - 58 THEN ( - + 61 ) END + - + 30 THEN - COUNT( - 82 ) WHEN + - NULLIF ( - + MIN( - 11 ), + 49 ) + - - 33 THEN NULL END ) * + 67 + + 70 + + 54 * - 28 ELSE - 97 END
----
-97

skipif mysql # not compatible
query I rowsort label-8017
SELECT COUNT ( * ) * CASE COUNT ( * ) WHEN + + 98 THEN ( - - CASE + - 67 WHEN - 16 + + - CASE 62 WHEN - 58 THEN ( - + 61 ) END + - + 30 THEN - COUNT ( - 82 ) WHEN + - NULLIF ( - + MIN ( - 11 ), + 49 ) + - - 33 THEN NULL END ) * + 67 + + 70 + + 54 * - 28 ELSE - 97 END
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8018
SELECT ALL - - CAST( 48 AS SIGNED ) DIV COUNT( * ) AS col2
----
48

skipif mysql # not compatible
query I rowsort label-8018
SELECT ALL - - CAST ( 48 AS INTEGER ) / COUNT ( * ) AS col2
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-8019
SELECT - COALESCE ( 50, SUM( + 18 ) ) + + 85 AS col2
----
35

skipif mysql # not compatible
query I rowsort label-8019
SELECT - COALESCE ( 50, SUM ( + 18 ) ) + + 85 AS col2
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8020
SELECT ALL - COUNT( * ) * + - 58 * + CAST( - - 22 AS SIGNED ) * 10
----
12760

skipif mysql # not compatible
query I rowsort label-8020
SELECT ALL - COUNT ( * ) * + - 58 * + CAST ( - - 22 AS INTEGER ) * 10
----
12760

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8021
SELECT + 18 + - 67 + 84 col1, + CASE 24 WHEN CAST( - 24 AS DECIMAL ) * 47 THEN NULL WHEN + 61 + + + 78 + - - 74 THEN - + 31 WHEN - + 33 + 45 * 41 + 28 THEN NULL END + - 9 AS col0
----
35
NULL

skipif mysql # not compatible
query II rowsort label-8021
SELECT + 18 + - 67 + 84 col1, + CASE 24 WHEN CAST ( - 24 AS REAL ) * 47 THEN NULL WHEN + 61 + + + 78 + - - 74 THEN - + 31 WHEN - + 33 + 45 * 41 + 28 THEN NULL END + - 9 AS col0
----
35
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8022
SELECT - SUM( + 17 ) * - 41
----
697

skipif mysql # not compatible
query I rowsort label-8022
SELECT - SUM ( + 17 ) * - 41
----
697

onlyif mysql # aggregate syntax: 
query I rowsort label-8023
SELECT + - NULLIF ( - + 16, - ( SUM( 72 ) ) * MIN( + + 42 ) + + 82 + - 34 + 57 / - 41 - 30 * + 63 / 80 ) * 47 + - 60 AS col2
----
692

skipif mysql # not compatible
query I rowsort label-8023
SELECT + - NULLIF ( - + 16, - ( SUM ( 72 ) ) * MIN ( + + 42 ) + + 82 + - 34 + 57 / - 41 - 30 * + 63 / 80 ) * 47 + - 60 AS col2
----
692

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8024
SELECT ALL - + 81 * CAST( - COUNT( * ) AS SIGNED ) col0
----
81

skipif mysql # not compatible
query I rowsort label-8024
SELECT ALL - + 81 * CAST ( - COUNT ( * ) AS INTEGER ) col0
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8025
SELECT - COUNT( * ) * ( + - 35 ) + - CAST( NULL AS SIGNED ) + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8025
SELECT - COUNT ( * ) * ( + - 35 ) + - CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT + + COALESCE ( + ( - 18 ), + 24 )
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-8027
SELECT - + COUNT( * ) * - NULLIF ( + 25, - 31 ) * - 9
----
-225

skipif mysql # not compatible
query I rowsort label-8027
SELECT - + COUNT ( * ) * - NULLIF ( + 25, - 31 ) * - 9
----
-225

query II rowsort
SELECT ALL - 78 * + ( - 84 ) AS col2, - 87
----
6552
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-8029
SELECT - 81 + COALESCE ( 62, - - MAX( DISTINCT - 94 ), COUNT( * ) * - 81 * ( - 97 ) + + 15 ) AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-8029
SELECT - 81 + COALESCE ( 62, - - MAX ( DISTINCT - 94 ), COUNT ( * ) * - 81 * ( - 97 ) + + 15 ) AS col1
----
-19

query I rowsort
SELECT - 79 * 28
----
-2212

onlyif mysql # aggregate syntax: 
query I rowsort label-8031
SELECT - 97 + MAX( 23 )
----
-74

skipif mysql # not compatible
query I rowsort label-8031
SELECT - 97 + MAX ( 23 )
----
-74

query I rowsort
SELECT DISTINCT - 46 + + - 57
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-8033
SELECT - MIN( ALL + ( - 78 ) ) col0
----
78

skipif mysql # not compatible
query I rowsort label-8033
SELECT - MIN ( ALL + ( - 78 ) ) col0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-8034
SELECT - 49 + + 27 * COUNT( * )
----
-22

skipif mysql # not compatible
query I rowsort label-8034
SELECT - 49 + + 27 * COUNT ( * )
----
-22

query II rowsort
SELECT ALL - 20 * - + 34 col0, 68
----
680
68

query I rowsort
SELECT ALL + 93 + - - 51 * - - 97
----
5040

query I rowsort
SELECT DISTINCT 96 * 11 AS col1
----
1056

query I rowsort
SELECT ALL - 29 + - 76 AS col1
----
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-8039
SELECT DISTINCT + ( + + COUNT( * ) ) + 35 * + 49 * 6 AS col2
----
10291

skipif mysql # not compatible
query I rowsort label-8039
SELECT DISTINCT + ( + + COUNT ( * ) ) + 35 * + 49 * 6 AS col2
----
10291

onlyif mysql # aggregate syntax: 
query I rowsort label-8040
SELECT ALL - 20 * COUNT( * )
----
-20

skipif mysql # not compatible
query I rowsort label-8040
SELECT ALL - 20 * COUNT ( * )
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8041
SELECT - MAX( DISTINCT + 73 ) * + + COUNT( * ) * + + 36 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8041
SELECT - MAX ( DISTINCT + 73 ) * + + COUNT ( * ) * + + 36 / CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8042
SELECT + ( + ( COUNT( * ) ) ) + + 31 AS col1
----
32

skipif mysql # not compatible
query I rowsort label-8042
SELECT + ( + ( COUNT ( * ) ) ) + + 31 AS col1
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8043
SELECT DISTINCT - 2 * - 25 * + + MIN( - + CAST( 57 AS SIGNED ) )
----
-2850

skipif mysql # not compatible
query I rowsort label-8043
SELECT DISTINCT - 2 * - 25 * + + MIN ( - + CAST ( 57 AS INTEGER ) )
----
-2850

query I rowsort
SELECT DISTINCT - 48 * + - 94
----
4512

onlyif mysql # aggregate syntax: 
query I rowsort label-8045
SELECT - 83 * - MAX( - - 63 ) AS col0
----
5229

skipif mysql # not compatible
query I rowsort label-8045
SELECT - 83 * - MAX ( - - 63 ) AS col0
----
5229

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8046
SELECT + CASE 38 WHEN - COUNT( * ) THEN 27 ELSE NULL END * - ( - COALESCE ( + COALESCE ( + - COALESCE ( 35, + 54 ), - - ( 33 ) + + COUNT( * ) + - 77 * + 0 / - MIN( DISTINCT 79 ) - - 32 * + + 8 ), - - 30, - CAST( + - 8 AS SIGNED ) - - SUM( ALL - 94 ) * + NULLIF ( 21, + 92 * CAST( - 60 AS SIGNED ) + 66 ) ) ) / 10
----
NULL

skipif mysql # not compatible
query I rowsort label-8046
SELECT + CASE 38 WHEN - COUNT ( * ) THEN 27 ELSE NULL END * - ( - COALESCE ( + COALESCE ( + - COALESCE ( 35, + 54 ), - - ( 33 ) + + COUNT ( * ) + - 77 * + 0 / - MIN ( DISTINCT 79 ) - - 32 * + + 8 ), - - 30, - CAST ( + - 8 AS INTEGER ) - - SUM ( ALL - 94 ) * + NULLIF ( 21, + 92 * CAST ( - 60 AS INTEGER ) + 66 ) ) ) / 10
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8047
SELECT - COUNT( * ) + - 62 * 67
----
-4155

skipif mysql # not compatible
query I rowsort label-8047
SELECT - COUNT ( * ) + - 62 * 67
----
-4155

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8048
SELECT - 59 * - 98 * - 25 * - CASE - 69 WHEN CAST( NULL AS SIGNED ) THEN + 30 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8048
SELECT - 59 * - 98 * - 25 * - CASE - 69 WHEN CAST ( NULL AS INTEGER ) THEN + 30 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8049
SELECT - COALESCE ( + 73, CAST( - 63 AS SIGNED ) ) col0, + NULLIF ( 12, + 48 * + + 40 * + 82 + - 0 ) * - + 85 + NULLIF ( - SUM( + 60 ), - 85 ) - 71
----
-73
-1151

skipif mysql # not compatible
query II rowsort label-8049
SELECT - COALESCE ( + 73, CAST ( - 63 AS INTEGER ) ) col0, + NULLIF ( 12, + 48 * + + 40 * + 82 + - 0 ) * - + 85 + NULLIF ( - SUM ( + 60 ), - 85 ) - 71
----
-73
-1151

query I rowsort
SELECT - 77 + + 22 * + 90
----
1903

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8051
SELECT - SUM( + - 70 ), 11 DIV 94 AS col2
----
70
0

skipif mysql # not compatible
query II rowsort label-8051
SELECT - SUM ( + - 70 ), 11 / 94 AS col2
----
70
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8052
SELECT ALL 47 DIV + 39 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8052
SELECT ALL 47 / + 39 AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8053
SELECT + + 6 * + - 72, - 90 + - 95 + 2 DIV - 80 + - 83 - + - ( + COUNT( * ) ) AS col2
----
-432
-267

skipif mysql # not compatible
query II rowsort label-8053
SELECT + + 6 * + - 72, - 90 + - 95 + 2 / - 80 + - 83 - + - ( + COUNT ( * ) ) AS col2
----
-432
-267

query II rowsort
SELECT DISTINCT 92 - + 12 AS col0, 94 AS col2
----
80
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8055
SELECT + 36 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8055
SELECT + 36 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8056
SELECT + 49 + COUNT( 30 )
----
50

skipif mysql # not compatible
query I rowsort label-8056
SELECT + 49 + COUNT ( 30 )
----
50

query I rowsort
SELECT - 76 * + - 37 - 71 AS col1
----
2741

onlyif mysql # aggregate syntax: 
query I rowsort label-8058
SELECT + - 79 * + - 80 + + - COUNT( 1 ) AS col1
----
6319

skipif mysql # not compatible
query I rowsort label-8058
SELECT + - 79 * + - 80 + + - COUNT ( 1 ) AS col1
----
6319

query I rowsort
SELECT DISTINCT - 40 * + 8
----
-320

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8060
SELECT - SUM( DISTINCT - 74 ) DIV 96 * + + 23 * - 57
----
0

skipif mysql # not compatible
query I rowsort label-8060
SELECT - SUM ( DISTINCT - 74 ) / 96 * + + 23 * - 57
----
0

query I rowsort
SELECT + + 52 * + + 83 AS col0
----
4316

onlyif mysql # aggregate syntax: 
query I rowsort label-8062
SELECT - COUNT( ALL - 41 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8062
SELECT - COUNT ( ALL - 41 ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8063
SELECT DISTINCT + 75 * - + CAST( NULL AS SIGNED ) + + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8063
SELECT DISTINCT + 75 * - + CAST ( NULL AS INTEGER ) + + + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8064
SELECT ALL + 88 * - + 34 / 66 * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8064
SELECT ALL + 88 * - + 34 / 66 * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT COALESCE ( + 12, + 64, + - 59 )
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8066
SELECT DISTINCT ( + 83 ) * + 27 + 54 * - + 5 * - + 57, + CAST( - NULLIF ( - 80, + + 83 ) AS SIGNED ) AS col2
----
17631
80

skipif mysql # not compatible
query II rowsort label-8066
SELECT DISTINCT ( + 83 ) * + 27 + 54 * - + 5 * - + 57, + CAST ( - NULLIF ( - 80, + + 83 ) AS INTEGER ) AS col2
----
17631
80

query I rowsort
SELECT ALL - NULLIF ( + 38, 24 ) * - - 2 + 86 + - - 70
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8068
SELECT DISTINCT - CAST( NULL AS SIGNED ) * 94
----
NULL

skipif mysql # not compatible
query I rowsort label-8068
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * 94
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8069
SELECT ALL NULLIF ( - + 24, + 42 ) * COUNT( * ) - + 58 AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-8069
SELECT ALL NULLIF ( - + 24, + 42 ) * COUNT ( * ) - + 58 AS col2
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8070
SELECT ALL CAST( - 46 AS SIGNED ) AS col0
----
-46

skipif mysql # not compatible
query I rowsort label-8070
SELECT ALL CAST ( - 46 AS INTEGER ) AS col0
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8071
SELECT - SUM( DISTINCT + + CAST( NULL AS SIGNED ) ) - 61
----
NULL

skipif mysql # not compatible
query I rowsort label-8071
SELECT - SUM ( DISTINCT + + CAST ( NULL AS INTEGER ) ) - 61
----
NULL

query I rowsort
SELECT DISTINCT + 71 * + + 6 AS col0
----
426

onlyif mysql # aggregate syntax: 
query I rowsort label-8073
SELECT ALL COUNT( * ) * - - 36
----
36

skipif mysql # not compatible
query I rowsort label-8073
SELECT ALL COUNT ( * ) * - - 36
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-8074
SELECT DISTINCT + + 77 DIV 3 DIV + 29 + 65
----
65

skipif mysql # not compatible
query I rowsort label-8074
SELECT DISTINCT + + 77 / 3 / + 29 + 65
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-8075
SELECT - MIN( ALL - - 88 ) AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-8075
SELECT - MIN ( ALL - - 88 ) AS col2
----
-88

query I rowsort
SELECT + 25 - + ( - ( 90 ) ) + - 28 + + 84 + 27 * - 31 * + 99 AS col0
----
-82692

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8077
SELECT - - CASE + CASE 19 WHEN 64 * + CAST( NULL AS SIGNED ) THEN NULLIF ( - 70, + 19 ) + - - 52 ELSE + 94 - - + NULLIF ( + 30, + + 16 ) * + 16 END WHEN - 97 * - 60 THEN NULL ELSE + ( + - CASE 10 WHEN + 2 THEN NULL WHEN - 61 * + + 75 - + 30 + - 91 * CAST( 39 AS SIGNED ) * - 76 THEN NULL WHEN + 4 - - 96 THEN - CAST( - COALESCE ( + 27, 41 ) AS SIGNED ) - 91 END ) + - 12 END / + CASE WHEN ( + 92 + + 32 ) = NULL THEN 64 * AVG ( ( 25 ) ) + 83 WHEN NOT ( + 70 + COUNT( * ) ) IS NOT NULL THEN NULL ELSE 84 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8077
SELECT - - CASE + CASE 19 WHEN 64 * + CAST ( NULL AS INTEGER ) THEN NULLIF ( - 70, + 19 ) + - - 52 ELSE + 94 - - + NULLIF ( + 30, + + 16 ) * + 16 END WHEN - 97 * - 60 THEN NULL ELSE + ( + - CASE 10 WHEN + 2 THEN NULL WHEN - 61 * + + 75 - + 30 + - 91 * CAST ( 39 AS INTEGER ) * - 76 THEN NULL WHEN + 4 - - 96 THEN - CAST ( - COALESCE ( + 27, 41 ) AS INTEGER ) - 91 END ) + - 12 END / + CASE WHEN ( + 92 + + 32 ) = NULL THEN 64 * AVG ( ( 25 ) ) + 83 WHEN NOT ( + 70 + COUNT ( * ) ) IS NOT NULL THEN NULL ELSE 84 END AS col2
----
NULL

query I rowsort
SELECT + + 69 * - 59 * - 7
----
28497

query II rowsort
SELECT ALL + + 2 * - 24 + + 67 AS col1, + 83 AS col0
----
19
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8080
SELECT ALL - + 39 * - - NULLIF ( - 63, + + COUNT( * ) ) + - - COUNT( DISTINCT ( 91 ) ) AS col1
----
2458

skipif mysql # not compatible
query I rowsort label-8080
SELECT ALL - + 39 * - - NULLIF ( - 63, + + COUNT ( * ) ) + - - COUNT ( DISTINCT ( 91 ) ) AS col1
----
2458

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8081
SELECT - + COALESCE ( + 10, COUNT( ALL 46 ) + - 34 DIV + 7 )
----
-10

skipif mysql # not compatible
query I rowsort label-8081
SELECT - + COALESCE ( + 10, COUNT ( ALL 46 ) + - 34 / + 7 )
----
-10

query I rowsort
SELECT 76 * 45 col0
----
3420

query I rowsort
SELECT + COALESCE ( 79, - 43 )
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-8084
SELECT COUNT( 73 ) + + COUNT( * ) - - 44 AS col2
----
46

skipif mysql # not compatible
query I rowsort label-8084
SELECT COUNT ( 73 ) + + COUNT ( * ) - - 44 AS col2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-8085
SELECT DISTINCT - - COUNT( - 32 ) + - + ( 13 )
----
-12

skipif mysql # not compatible
query I rowsort label-8085
SELECT DISTINCT - - COUNT ( - 32 ) + - + ( 13 )
----
-12

query I rowsort
SELECT ALL + + 10 + 41 * + 85 AS col1
----
3495

onlyif mysql # aggregate syntax: 
query I rowsort label-8087
SELECT 56 * COUNT( * )
----
56

skipif mysql # not compatible
query I rowsort label-8087
SELECT 56 * COUNT ( * )
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8088
SELECT ALL - CAST( NULL AS SIGNED ) + + 25 + + COUNT( * ) * - 68
----
NULL

skipif mysql # not compatible
query I rowsort label-8088
SELECT ALL - CAST ( NULL AS INTEGER ) + + 25 + + COUNT ( * ) * - 68
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8089
SELECT ALL 66 + + 97 - - COUNT( * ) * NULLIF ( + COUNT( * ), ( + + 24 ) ) * - + 2 * - - COALESCE ( - 25, + - COALESCE ( 76, + 25 ) * - 52, + + 6 * + + 36 ) * - COUNT( 57 ) col1
----
113

skipif mysql # not compatible
query I rowsort label-8089
SELECT ALL 66 + + 97 - - COUNT ( * ) * NULLIF ( + COUNT ( * ), ( + + 24 ) ) * - + 2 * - - COALESCE ( - 25, + - COALESCE ( 76, + 25 ) * - 52, + + 6 * + + 36 ) * - COUNT ( 57 ) col1
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-8090
SELECT DISTINCT 71 + + 59 * 68 * + COUNT( * ) AS col1
----
4083

skipif mysql # not compatible
query I rowsort label-8090
SELECT DISTINCT 71 + + 59 * 68 * + COUNT ( * ) AS col1
----
4083

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8091
SELECT + ( + 21 ) DIV + - MAX( - - 62 ) * 34 * ( - 76 ) * - 17 + - 56 * - - 40 * + - 83
----
185920

skipif mysql # not compatible
query I rowsort label-8091
SELECT + ( + 21 ) / + - MAX ( - - 62 ) * 34 * ( - 76 ) * - 17 + - 56 * - - 40 * + - 83
----
185920

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8092
SELECT CASE + + 87 WHEN - NULLIF ( 71, - - COUNT( + 13 ) ) * - 63 - + 78 * + 9 / COALESCE ( + + COUNT( * ), - COALESCE ( + - 53, COUNT( * ) ) + 25 + - 26 + - 15 ) + - + 66 + - 15 THEN NULL WHEN 73 + + 85 - - MAX( DISTINCT + 57 ) * - CAST( NULL AS SIGNED ) - + CASE COUNT( * ) WHEN 14 + 49 THEN - CAST( + 88 AS SIGNED ) WHEN - 31 - CASE - 0 + 37 WHEN - ( + 90 ) * 49 THEN + 56 + 48 WHEN - 42 * 71 THEN NULL END THEN + 71 + + 96 * 25 END THEN 88 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8092
SELECT CASE + + 87 WHEN - NULLIF ( 71, - - COUNT ( + 13 ) ) * - 63 - + 78 * + 9 / COALESCE ( + + COUNT ( * ), - COALESCE ( + - 53, COUNT ( * ) ) + 25 + - 26 + - 15 ) + - + 66 + - 15 THEN NULL WHEN 73 + + 85 - - MAX ( DISTINCT + 57 ) * - CAST ( NULL AS INTEGER ) - + CASE COUNT ( * ) WHEN 14 + 49 THEN - CAST ( + 88 AS INTEGER ) WHEN - 31 - CASE - 0 + 37 WHEN - ( + 90 ) * 49 THEN + 56 + 48 WHEN - 42 * 71 THEN NULL END THEN + 71 + + 96 * 25 END THEN 88 END AS col1
----
NULL

query I rowsort
SELECT ALL - 87 + - 39 AS col0
----
-126

query I rowsort
SELECT - 86 - - 86 AS col2
----
0

query I rowsort
SELECT ALL 55 * - - 2 AS col0
----
110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8096
SELECT ALL 56 + + 67 + + + CASE + 5 WHEN + COUNT( * ) + - + 97 + - 64 + 98 + 6 / + - 87 * CAST( NULL AS SIGNED ) * - 97 / - 73 THEN - ( + CAST( NULL AS SIGNED ) ) * - 27 END + - + 32 * - SUM( ALL 56 ) AS col0, - 76 * 52 col2
----
NULL
-3952

skipif mysql # not compatible
query II rowsort label-8096
SELECT ALL 56 + + 67 + + + CASE + 5 WHEN + COUNT ( * ) + - + 97 + - 64 + 98 + 6 / + - 87 * CAST ( NULL AS INTEGER ) * - 97 / - 73 THEN - ( + CAST ( NULL AS INTEGER ) ) * - 27 END + - + 32 * - SUM ( ALL 56 ) AS col0, - 76 * 52 col2
----
NULL
-3952

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8097
SELECT NULLIF ( + + 5, + NULLIF ( - - 14, 66 ) * + - COUNT( * ) ) + - 2 - 72 DIV 8 + 56 - - - 48 - - 82 + + + 69 * + 57 * COUNT( 10 ), - 43 - + ( - + 42 ) AS col1
----
4017
-1

skipif mysql # not compatible
query II rowsort label-8097
SELECT NULLIF ( + + 5, + NULLIF ( - - 14, 66 ) * + - COUNT ( * ) ) + - 2 - 72 / 8 + 56 - - - 48 - - 82 + + + 69 * + 57 * COUNT ( 10 ), - 43 - + ( - + 42 ) AS col1
----
4017
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8098
SELECT ALL ( - 27 ) + + - COUNT( ALL + 34 )
----
-28

skipif mysql # not compatible
query I rowsort label-8098
SELECT ALL ( - 27 ) + + - COUNT ( ALL + 34 )
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-8099
SELECT DISTINCT 90 - 28 - 4 * - 58 * - - COUNT( * ) * + COUNT( * ) AS col0
----
294

skipif mysql # not compatible
query I rowsort label-8099
SELECT DISTINCT 90 - 28 - 4 * - 58 * - - COUNT ( * ) * + COUNT ( * ) AS col0
----
294

onlyif mysql # aggregate syntax: 
query I rowsort label-8100
SELECT ALL ( - 1 ) * - MIN( ALL 56 ) AS col1
----
56

skipif mysql # not compatible
query I rowsort label-8100
SELECT ALL ( - 1 ) * - MIN ( ALL 56 ) AS col1
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8101
SELECT CAST( + + 2 AS SIGNED ) + - COUNT( * ) * 75 AS col2, + 3
----
-73
3

skipif mysql # not compatible
query II rowsort label-8101
SELECT CAST ( + + 2 AS INTEGER ) + - COUNT ( * ) * 75 AS col2, + 3
----
-73
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8102
SELECT NULLIF ( - - 11, - + COUNT( DISTINCT 75 ) ) * + COUNT( * ) AS col2
----
11

skipif mysql # not compatible
query I rowsort label-8102
SELECT NULLIF ( - - 11, - + COUNT ( DISTINCT 75 ) ) * + COUNT ( * ) AS col2
----
11

query I rowsort
SELECT 75 * + 81
----
6075

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8104
SELECT ALL - 13 AS col2, - MIN( + - 92 ) DIV + MAX( ALL + 21 ) AS col0
----
-13
4

skipif mysql # not compatible
query II rowsort label-8104
SELECT ALL - 13 AS col2, - MIN ( + - 92 ) / + MAX ( ALL + 21 ) AS col0
----
-13
4

query I rowsort
SELECT 87 + - - 3
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8106
SELECT CAST( - 65 AS SIGNED ) + ( 49 ) + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8106
SELECT CAST ( - 65 AS INTEGER ) + ( 49 ) + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8107
SELECT 94 DIV + 83
----
1

skipif mysql # not compatible
query I rowsort label-8107
SELECT 94 / + 83
----
1

query I rowsort
SELECT ALL + 57 * + ( - 48 )
----
-2736

onlyif mysql # DIV for integer division: 
query I rowsort label-8109
SELECT DISTINCT 83 DIV - 27
----
-3

skipif mysql # not compatible
query I rowsort label-8109
SELECT DISTINCT 83 / - 27
----
-3

query I rowsort
SELECT ALL 18 * - + 6
----
-108

query II rowsort
SELECT - 7 AS col1, 20 + + 75 AS col1
----
-7
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8112
SELECT DISTINCT + 85 * + NULLIF ( - 72, - + MAX( DISTINCT + + 27 ) ) * - - ( - 67 ) * - SUM( ALL - 28 ) + + 46 - + CAST( - COALESCE ( - + 6, - 78 * - 67 * - + 16 * - 27 + + - 56, - 44 ) AS SIGNED ) * + COALESCE ( - 73, COUNT( * ) + - CAST( + 16 AS SIGNED ) ) + + 32
----
11481636

skipif mysql # not compatible
query I rowsort label-8112
SELECT DISTINCT + 85 * + NULLIF ( - 72, - + MAX ( DISTINCT + + 27 ) ) * - - ( - 67 ) * - SUM ( ALL - 28 ) + + 46 - + CAST ( - COALESCE ( - + 6, - 78 * - 67 * - + 16 * - 27 + + - 56, - 44 ) AS INTEGER ) * + COALESCE ( - 73, COUNT ( * ) + - CAST ( + 16 AS INTEGER ) ) + + 32
----
11481636

onlyif mysql # aggregate syntax: 
query I rowsort label-8113
SELECT ALL - SUM( + + 16 ) + + + 56 + ( - 64 ) * + 25
----
-1560

skipif mysql # not compatible
query I rowsort label-8113
SELECT ALL - SUM ( + + 16 ) + + + 56 + ( - 64 ) * + 25
----
-1560

onlyif mysql # aggregate syntax: 
query I rowsort label-8114
SELECT ALL + COUNT( + - 47 )
----
1

skipif mysql # not compatible
query I rowsort label-8114
SELECT ALL + COUNT ( + - 47 )
----
1

query II rowsort
SELECT DISTINCT 57 col1, - 42
----
57
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-8116
SELECT - 84 + - MAX( - 39 ) AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-8116
SELECT - 84 + - MAX ( - 39 ) AS col2
----
-45

query I rowsort
SELECT ALL 58 + - 3 - - 81
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-8118
SELECT - MAX( DISTINCT + 68 )
----
-68

skipif mysql # not compatible
query I rowsort label-8118
SELECT - MAX ( DISTINCT + 68 )
----
-68

query I rowsort
SELECT ALL + 51 + + - 36
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-8120
SELECT DISTINCT + 99 AS col0, COUNT( * )
----
99
1

skipif mysql # not compatible
query II rowsort label-8120
SELECT DISTINCT + 99 AS col0, COUNT ( * )
----
99
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8121
SELECT ALL NULLIF ( + - 4, + MIN( 50 ) + 66 )
----
-4

skipif mysql # not compatible
query I rowsort label-8121
SELECT ALL NULLIF ( + - 4, + MIN ( 50 ) + 66 )
----
-4

query I rowsort
SELECT ALL + + 7 * - - 68 + + ( + 20 ) * - 33 AS col2
----
-184

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8123
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + 56
----
NULL

skipif mysql # not compatible
query I rowsort label-8123
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + 56
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8124
SELECT ALL + 91 + - - ( + COUNT( * ) ) col0
----
92

skipif mysql # not compatible
query I rowsort label-8124
SELECT ALL + 91 + - - ( + COUNT ( * ) ) col0
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8125
SELECT - - 62 * - CAST( NULL AS SIGNED ) + - + 91
----
NULL

skipif mysql # not compatible
query I rowsort label-8125
SELECT - - 62 * - CAST ( NULL AS INTEGER ) + - + 91
----
NULL

query I rowsort
SELECT ALL + - 94 + 73
----
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-8127
SELECT + - 81 AS col1, 78 * + MIN( + - 43 )
----
-81
-3354

skipif mysql # not compatible
query II rowsort label-8127
SELECT + - 81 AS col1, 78 * + MIN ( + - 43 )
----
-81
-3354

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8128
SELECT + 91 * - - ( - COALESCE ( + - CASE + - 62 WHEN - COUNT( * ) * + 82 DIV + + 19 THEN NULL ELSE - + COALESCE ( + CASE - 9 WHEN MIN( + 94 ) THEN 12 + + 99 - - 88 * - 30 END, + + 37 ) END, + 7, - + 69 DIV 29 ) ) AS col2, 30 AS col2
----
-3367
30

skipif mysql # not compatible
query II rowsort label-8128
SELECT + 91 * - - ( - COALESCE ( + - CASE + - 62 WHEN - COUNT ( * ) * + 82 / + + 19 THEN NULL ELSE - + COALESCE ( + CASE - 9 WHEN MIN ( + 94 ) THEN 12 + + 99 - - 88 * - 30 END, + + 37 ) END, + 7, - + 69 / 29 ) ) AS col2, 30 AS col2
----
-3367
30

query II rowsort
SELECT + - 40 AS col1, + 82 + + + 76 * 27 AS col2
----
-40
2134

onlyif mysql # DIV for integer division: 
query I rowsort label-8130
SELECT - 0 DIV - 36 + + + 28
----
28

skipif mysql # not compatible
query I rowsort label-8130
SELECT - 0 / - 36 + + + 28
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8131
SELECT + 90 * + - 55 * - + 46 + + CAST( NULL AS SIGNED ) * - + COUNT( - 22 ) / - + 91 - + 38 * + COUNT( * ), 93 AS col2
----
NULL
93

skipif mysql # not compatible
query II rowsort label-8131
SELECT + 90 * + - 55 * - + 46 + + CAST ( NULL AS INTEGER ) * - + COUNT ( - 22 ) / - + 91 - + 38 * + COUNT ( * ), 93 AS col2
----
NULL
93

query I rowsort
SELECT DISTINCT + 8 + - COALESCE ( 42, - - 26 - + + 21 )
----
-34

query II rowsort
SELECT DISTINCT - 32 AS col1, 6
----
-32
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8134
SELECT ALL 38 - + + 50 * + MIN( 23 ) * + 94 + - + 46 * - - COUNT( * ) DIV + 85 AS col2
----
-108062

skipif mysql # not compatible
query I rowsort label-8134
SELECT ALL 38 - + + 50 * + MIN ( 23 ) * + 94 + - + 46 * - - COUNT ( * ) / + 85 AS col2
----
-108062

query I rowsort
SELECT ALL 78 * - 65 col1
----
-5070

onlyif mysql # aggregate syntax: 
query II rowsort label-8136
SELECT - NULLIF ( + ( COUNT( * ) ), 74 * 67 + + - COUNT( * ) - COUNT( * ) ) * + 87 + - 26 - - - 2 AS col2, 12 + + - 34 * - NULLIF ( + + 60, + 35 + - - 43 ) col2
----
-115
2052

skipif mysql # not compatible
query II rowsort label-8136
SELECT - NULLIF ( + ( COUNT ( * ) ), 74 * 67 + + - COUNT ( * ) - COUNT ( * ) ) * + 87 + - 26 - - - 2 AS col2, 12 + + - 34 * - NULLIF ( + + 60, + 35 + - - 43 ) col2
----
-115
2052

query I rowsort
SELECT ( 55 ) * 35 + + + 60 * + 7
----
2345

onlyif mysql # aggregate syntax: 
query II rowsort label-8138
SELECT DISTINCT 96 * - 67 AS col0, - COUNT( * ) col1
----
-6432
-1

skipif mysql # not compatible
query II rowsort label-8138
SELECT DISTINCT 96 * - 67 AS col0, - COUNT ( * ) col1
----
-6432
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-8139
SELECT DISTINCT - NULLIF ( 93, ( 27 ) + COUNT( * ) ) col2, + 73 + + - 24 * 75 AS col2
----
-93
-1727

skipif mysql # not compatible
query II rowsort label-8139
SELECT DISTINCT - NULLIF ( 93, ( 27 ) + COUNT ( * ) ) col2, + 73 + + - 24 * 75 AS col2
----
-93
-1727

query I rowsort
SELECT DISTINCT 77 * - - 91 AS col1
----
7007

onlyif mysql # DIV for integer division: 
query I rowsort label-8141
SELECT 64 DIV 2 AS col2
----
32

skipif mysql # not compatible
query I rowsort label-8141
SELECT 64 / 2 AS col2
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-8142
SELECT SUM( DISTINCT - 57 ) + + + 91 + 71 * + - 27 col1
----
-1883

skipif mysql # not compatible
query I rowsort label-8142
SELECT SUM ( DISTINCT - 57 ) + + + 91 + 71 * + - 27 col1
----
-1883

query I rowsort
SELECT + 59 * + - COALESCE ( - + 80, - 42 )
----
4720

onlyif mysql # aggregate syntax: 
query I rowsort label-8144
SELECT ALL 64 + - COUNT( * ) + 46
----
109

skipif mysql # not compatible
query I rowsort label-8144
SELECT ALL 64 + - COUNT ( * ) + 46
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-8145
SELECT + 59 + + + COUNT( * ) * + + 72 AS col2
----
131

skipif mysql # not compatible
query I rowsort label-8145
SELECT + 59 + + + COUNT ( * ) * + + 72 AS col2
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-8146
SELECT ALL - MAX( ALL - 28 ) + + + 32
----
60

skipif mysql # not compatible
query I rowsort label-8146
SELECT ALL - MAX ( ALL - 28 ) + + + 32
----
60

query I rowsort
SELECT DISTINCT + 55 + 3 AS col0
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-8148
SELECT ALL COALESCE ( - + 40, + MIN( + + 71 ), 3 + - + 21 * + 64 ) AS col0, - 4 AS col1
----
-40
-4

skipif mysql # not compatible
query II rowsort label-8148
SELECT ALL COALESCE ( - + 40, + MIN ( + + 71 ), 3 + - + 21 * + 64 ) AS col0, - 4 AS col1
----
-40
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8149
SELECT + 71 - + CASE + ( + + ( 21 ) ) WHEN - 16 THEN - + CAST( + CAST( 98 AS SIGNED ) AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8149
SELECT + 71 - + CASE + ( + + ( 21 ) ) WHEN - 16 THEN - + CAST ( + CAST ( 98 AS INTEGER ) AS INTEGER ) END
----
NULL

query I rowsort
SELECT + NULLIF ( + 43, + ( 8 ) )
----
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8151
SELECT - 59 DIV + 93 DIV - COUNT( * ) + - 8 - + COUNT( * ) + + - 8
----
-17

skipif mysql # not compatible
query I rowsort label-8151
SELECT - 59 / + 93 / - COUNT ( * ) + - 8 - + COUNT ( * ) + + - 8
----
-17

query I rowsort
SELECT DISTINCT + - 90 AS col1
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-8153
SELECT DISTINCT + SUM( 72 ) AS col2
----
72

skipif mysql # not compatible
query I rowsort label-8153
SELECT DISTINCT + SUM ( 72 ) AS col2
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-8154
SELECT - 98 DIV 66 * - 38 + - 17 * - - 96
----
-1594

skipif mysql # not compatible
query I rowsort label-8154
SELECT - 98 / 66 * - 38 + - 17 * - - 96
----
-1594

onlyif mysql # aggregate syntax: 
query I rowsort label-8155
SELECT ALL + NULLIF ( - SUM( - 99 ), 81 )
----
99

skipif mysql # not compatible
query I rowsort label-8155
SELECT ALL + NULLIF ( - SUM ( - 99 ), 81 )
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8156
SELECT ALL - 75 * + + COUNT( 76 ) AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-8156
SELECT ALL - 75 * + + COUNT ( 76 ) AS col2
----
-75

query I rowsort
SELECT - 67 * - 8
----
536

query I rowsort
SELECT - 84 + - 57
----
-141

query I rowsort
SELECT DISTINCT - 57 * - 61 AS col0
----
3477

query I rowsort
SELECT ALL + ( - 37 ) AS col0
----
-37

query I rowsort
SELECT ALL - 66 * - - 63
----
-4158

query II rowsort
SELECT ALL + 48, 16 AS col2
----
48
16

onlyif mysql # aggregate syntax: 
query I rowsort label-8163
SELECT + COUNT( 73 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8163
SELECT + COUNT ( 73 ) AS col2
----
1

query I rowsort
SELECT - 77 * - 64 AS col2
----
4928

onlyif mysql # aggregate syntax: 
query I rowsort label-8165
SELECT DISTINCT 24 * COUNT( * )
----
24

skipif mysql # not compatible
query I rowsort label-8165
SELECT DISTINCT 24 * COUNT ( * )
----
24

query II rowsort
SELECT ALL - 2 * 27 + 45 * + 2 AS col2, - 86
----
36
-86

query I rowsort
SELECT - 47 * ( - + 62 ) * + 59 AS col2
----
171926

onlyif mysql # aggregate syntax: 
query I rowsort label-8168
SELECT DISTINCT - - COUNT( * ) * 53 * + 86 + - - ( 38 )
----
4596

skipif mysql # not compatible
query I rowsort label-8168
SELECT DISTINCT - - COUNT ( * ) * 53 * + 86 + - - ( 38 )
----
4596

onlyif mysql # aggregate syntax: 
query I rowsort label-8169
SELECT DISTINCT + + COUNT( * ) * 41 * + 41 + - + COUNT( * ) * - - 35
----
1646

skipif mysql # not compatible
query I rowsort label-8169
SELECT DISTINCT + + COUNT ( * ) * 41 * + 41 + - + COUNT ( * ) * - - 35
----
1646

onlyif mysql # aggregate syntax: 
query I rowsort label-8170
SELECT ALL CASE + - 27 WHEN + + COUNT( * ) * - MAX( DISTINCT + ( - 81 ) ) THEN NULL WHEN SUM( DISTINCT 39 ) * + 59 * + - 96 THEN - + 1 + 58 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8170
SELECT ALL CASE + - 27 WHEN + + COUNT ( * ) * - MAX ( DISTINCT + ( - 81 ) ) THEN NULL WHEN SUM ( DISTINCT 39 ) * + 59 * + - 96 THEN - + 1 + 58 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8171
SELECT - SUM( ALL - + 15 ) AS col1
----
15

skipif mysql # not compatible
query I rowsort label-8171
SELECT - SUM ( ALL - + 15 ) AS col1
----
15

query I rowsort
SELECT ALL - 51 + - - 51 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8173
SELECT DISTINCT + 79, CAST( 85 AS SIGNED ) AS col1
----
79
85

skipif mysql # not compatible
query II rowsort label-8173
SELECT DISTINCT + 79, CAST ( 85 AS INTEGER ) AS col1
----
79
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8174
SELECT DISTINCT + MIN( - - CAST( NULL AS SIGNED ) ) + + 39 col1, - 23 * - 92 * + + 29 + 48 AS col2
----
NULL
61412

skipif mysql # not compatible
query II rowsort label-8174
SELECT DISTINCT + MIN ( - - CAST ( NULL AS INTEGER ) ) + + 39 col1, - 23 * - 92 * + + 29 + 48 AS col2
----
NULL
61412

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8175
SELECT DISTINCT CAST( 92 AS SIGNED ) + + - 66 col0
----
26

skipif mysql # not compatible
query I rowsort label-8175
SELECT DISTINCT CAST ( 92 AS INTEGER ) + + - 66 col0
----
26

query I rowsort
SELECT DISTINCT - 49 + 56
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8177
SELECT ALL 77 + - - 26 + + CASE + - 31 WHEN - + 65 THEN + 25 + - 64 END * + COUNT( * ) * + + 51 * + - ( - - 79 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8177
SELECT ALL 77 + - - 26 + + CASE + - 31 WHEN - + 65 THEN + 25 + - 64 END * + COUNT ( * ) * + + 51 * + - ( - - 79 )
----
NULL

query I rowsort
SELECT + ( + 50 ) * - 78 AS col0
----
-3900

onlyif mysql # DIV for integer division: 
query I rowsort label-8179
SELECT DISTINCT - 58 DIV - + 91 + + 45 * - 27 + + 87 AS col2
----
-1128

skipif mysql # not compatible
query I rowsort label-8179
SELECT DISTINCT - 58 / - + 91 + + 45 * - 27 + + 87 AS col2
----
-1128

onlyif mysql # aggregate syntax: 
query I rowsort label-8180
SELECT DISTINCT 22 - COUNT( * ) + + 16 * + - 16 * + - 40 + 64 AS col2
----
10325

skipif mysql # not compatible
query I rowsort label-8180
SELECT DISTINCT 22 - COUNT ( * ) + + 16 * + - 16 * + - 40 + 64 AS col2
----
10325

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8181
SELECT DISTINCT COUNT( DISTINCT + 58 ) DIV - 33, 93 col0
----
0
93

skipif mysql # not compatible
query II rowsort label-8181
SELECT DISTINCT COUNT ( DISTINCT + 58 ) / - 33, 93 col0
----
0
93

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-8182
SELECT ALL 79 * - + CASE - + ( - CAST( + 62 AS DECIMAL ) ) WHEN + - 37 DIV - 28 + - - 61 THEN + 96 + - 54 + - + 95 + 3 WHEN 96 * + 80 + - 24 DIV + - 22 + SUM( DISTINCT + 10 ) - + 21 * + + 32 THEN NULL ELSE - 74 END
----
3950

skipif mysql # not compatible
query I rowsort label-8182
SELECT ALL 79 * - + CASE - + ( - CAST ( + 62 AS REAL ) ) WHEN + - 37 / - 28 + - - 61 THEN + 96 + - 54 + - + 95 + 3 WHEN 96 * + 80 + - 24 / + - 22 + SUM ( DISTINCT + 10 ) - + 21 * + + 32 THEN NULL ELSE - 74 END
----
3950

query I rowsort
SELECT + 18 + 95 + 38 AS col1
----
151

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8184
SELECT DISTINCT MIN( - + COALESCE ( - CASE - 15 WHEN + - 75 + + + 53 THEN 62 WHEN 28 THEN NULL END, 86 ) ) - - ( - CAST( NULL AS SIGNED ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8184
SELECT DISTINCT MIN ( - + COALESCE ( - CASE - 15 WHEN + - 75 + + + 53 THEN 62 WHEN 28 THEN NULL END, 86 ) ) - - ( - CAST ( NULL AS INTEGER ) ) col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8185
SELECT - + 36 AS col2, ( + 16 ) DIV + - 25
----
-36
0

skipif mysql # not compatible
query II rowsort label-8185
SELECT - + 36 AS col2, ( + 16 ) / + - 25
----
-36
0

query I rowsort
SELECT - 97 + + + 91 AS col2
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8187
SELECT ALL 3 * + COALESCE ( + 88, + - 97, + - COUNT( * ) DIV + 39 ) AS col2
----
264

skipif mysql # not compatible
query I rowsort label-8187
SELECT ALL 3 * + COALESCE ( + 88, + - 97, + - COUNT ( * ) / + 39 ) AS col2
----
264

query I rowsort
SELECT DISTINCT 20 * + 21 AS col2
----
420

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8189
SELECT + CAST( + CASE - + 99 WHEN - 56 THEN NULL ELSE 47 END AS SIGNED )
----
47

skipif mysql # not compatible
query I rowsort label-8189
SELECT + CAST ( + CASE - + 99 WHEN - 56 THEN NULL ELSE 47 END AS INTEGER )
----
47

query I rowsort
SELECT DISTINCT + NULLIF ( + + 10, - 88 )
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8191
SELECT ALL + NULLIF ( COUNT( * ), + + 46 - - + 74 ) AS col2, 6 DIV + 23
----
1
0

skipif mysql # not compatible
query II rowsort label-8191
SELECT ALL + NULLIF ( COUNT ( * ), + + 46 - - + 74 ) AS col2, 6 / + 23
----
1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8192
SELECT ALL - 44 DIV - 50 * - 38 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8192
SELECT ALL - 44 / - 50 * - 38 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8193
SELECT - 13 * + NULLIF ( - + COUNT( * ), 2 + - 37 )
----
13

skipif mysql # not compatible
query I rowsort label-8193
SELECT - 13 * + NULLIF ( - + COUNT ( * ), 2 + - 37 )
----
13

query I rowsort
SELECT DISTINCT - 26 * 38 AS col2
----
-988

query I rowsort
SELECT ALL + NULLIF ( + - 3, - 92 ) AS col1
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8196
SELECT CAST( - COUNT( 6 ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-8196
SELECT CAST ( - COUNT ( 6 ) AS INTEGER )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-8197
SELECT ALL - COUNT( * ) + COUNT( * ), 12 col1
----
0
12

skipif mysql # not compatible
query II rowsort label-8197
SELECT ALL - COUNT ( * ) + COUNT ( * ), 12 col1
----
0
12

query I rowsort
SELECT DISTINCT - ( + 95 ) AS col0
----
-95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8199
SELECT DISTINCT + 26 + - MIN( - 15 ) + - - 55 DIV + 57 AS col0
----
41

skipif mysql # not compatible
query I rowsort label-8199
SELECT DISTINCT + 26 + - MIN ( - 15 ) + - - 55 / + 57 AS col0
----
41

query I rowsort
SELECT ALL + 8 + 95 * - + 40 + 79 * 60 + 5
----
953

onlyif mysql # DIV for integer division: 
query II rowsort label-8201
SELECT 93 * + 38 * - 9 * 4, - 21 DIV + 39 AS col0
----
-127224
0

skipif mysql # not compatible
query II rowsort label-8201
SELECT 93 * + 38 * - 9 * 4, - 21 / + 39 AS col0
----
-127224
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8202
SELECT ALL 53 + + - COUNT( * ) + COALESCE ( - ( 92 ), - + 87 ) AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-8202
SELECT ALL 53 + + - COUNT ( * ) + COALESCE ( - ( 92 ), - + 87 ) AS col1
----
-40

query II rowsort
SELECT 2 * ( + + COALESCE ( 68, + 44 * - 16, - + 65 ) ) AS col2, + 44 col1
----
136
44

onlyif mysql # aggregate syntax: 
query I rowsort label-8204
SELECT DISTINCT + 3 * COUNT( * ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-8204
SELECT DISTINCT + 3 * COUNT ( * ) AS col1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8205
SELECT DISTINCT + - CAST( NULL AS SIGNED ) / + 53 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8205
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) / + 53 AS col0
----
NULL

query I rowsort
SELECT ALL + + 1 + + 70
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8207
SELECT ALL 3 DIV + - COUNT( * ) + - 84
----
-87

skipif mysql # not compatible
query I rowsort label-8207
SELECT ALL 3 / + - COUNT ( * ) + - 84
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-8208
SELECT DISTINCT + 53 - COUNT( * ) AS col0
----
52

skipif mysql # not compatible
query I rowsort label-8208
SELECT DISTINCT + 53 - COUNT ( * ) AS col0
----
52

query I rowsort
SELECT ALL + 20 - - 40 + 45 AS col1
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-8210
SELECT ( + COUNT( * ) ) * + + ( - 45 ) + - - COALESCE ( - 12, COUNT( * ), + 99 )
----
-57

skipif mysql # not compatible
query I rowsort label-8210
SELECT ( + COUNT ( * ) ) * + + ( - 45 ) + - - COALESCE ( - 12, COUNT ( * ), + 99 )
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8211
SELECT ALL + CAST( NULL AS SIGNED ) * + ( + COALESCE ( 15, - COALESCE ( - NULLIF ( - + 68, + - 55 * 76 ), + 52 * + 49 * 57, + 24 ) + + - ( + + NULLIF ( 89, + 7 ) ) + + - COUNT( * ) / - 4, + - 79, - 53 ) ) + - 71 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8211
SELECT ALL + CAST ( NULL AS INTEGER ) * + ( + COALESCE ( 15, - COALESCE ( - NULLIF ( - + 68, + - 55 * 76 ), + 52 * + 49 * 57, + 24 ) + + - ( + + NULLIF ( 89, + 7 ) ) + + - COUNT ( * ) / - 4, + - 79, - 53 ) ) + - 71 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8212
SELECT - COUNT( * ) * - 69 + - + 33 * + - CAST( + 91 AS SIGNED )
----
3072

skipif mysql # not compatible
query I rowsort label-8212
SELECT - COUNT ( * ) * - 69 + - + 33 * + - CAST ( + 91 AS INTEGER )
----
3072

onlyif mysql # aggregate syntax: 
query I rowsort label-8213
SELECT ( - + COUNT( * ) ) + 97
----
96

skipif mysql # not compatible
query I rowsort label-8213
SELECT ( - + COUNT ( * ) ) + 97
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8214
SELECT ALL CAST( NULL AS SIGNED ) * - COUNT( * ) AS col0, 95 AS col1
----
NULL
95

skipif mysql # not compatible
query II rowsort label-8214
SELECT ALL CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col0, 95 AS col1
----
NULL
95

query I rowsort
SELECT 25 * + - 6 AS col1
----
-150

onlyif mysql # aggregate syntax: 
query I rowsort label-8216
SELECT ALL - COUNT( - - 53 ) * - - 76
----
-76

skipif mysql # not compatible
query I rowsort label-8216
SELECT ALL - COUNT ( - - 53 ) * - - 76
----
-76

onlyif mysql # aggregate syntax: 
query II rowsort label-8217
SELECT ALL - MIN( + 58 ) AS col1, - ( - - 16 ) AS col0
----
-58
-16

skipif mysql # not compatible
query II rowsort label-8217
SELECT ALL - MIN ( + 58 ) AS col1, - ( - - 16 ) AS col0
----
-58
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8218
SELECT DISTINCT + NULLIF ( 3, 13 - - 59 * CAST( NULL AS SIGNED ) ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-8218
SELECT DISTINCT + NULLIF ( 3, 13 - - 59 * CAST ( NULL AS INTEGER ) ) AS col2
----
3

query I rowsort
SELECT DISTINCT + - 46 * + - 42 - + 62
----
1870

onlyif mysql # aggregate syntax: 
query I rowsort label-8220
SELECT 17 + MAX( DISTINCT - 56 ) AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-8220
SELECT 17 + MAX ( DISTINCT - 56 ) AS col2
----
-39

query II rowsort
SELECT 4 * - 2, 14 AS col1
----
-8
14

onlyif mysql # aggregate syntax: 
query I rowsort label-8222
SELECT CASE + - MAX( ALL + COALESCE ( - 15, - + 33, + - 90 ) ) WHEN + 99 THEN + 70 WHEN - 10 * COUNT( * ) THEN NULL ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8222
SELECT CASE + - MAX ( ALL + COALESCE ( - 15, - + 33, + - 90 ) ) WHEN + 99 THEN + 70 WHEN - 10 * COUNT ( * ) THEN NULL ELSE NULL END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8223
SELECT 49 - + + COUNT( * ) * 68 + + 63 AS col0
----
44

skipif mysql # not compatible
query I rowsort label-8223
SELECT 49 - + + COUNT ( * ) * 68 + + 63 AS col0
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8224
SELECT ( 14 ) DIV COUNT( * ) + - + 94 AS col1
----
-80

skipif mysql # not compatible
query I rowsort label-8224
SELECT ( 14 ) / COUNT ( * ) + - + 94 AS col1
----
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-8225
SELECT ALL 55 DIV - 4
----
-13

skipif mysql # not compatible
query I rowsort label-8225
SELECT ALL 55 / - 4
----
-13

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8226
SELECT SUM( 27 ) * + COUNT( * ) + - 51 - - 3 DIV - 9 AS col0, 61 AS col0
----
-24
61

skipif mysql # not compatible
query II rowsort label-8226
SELECT SUM ( 27 ) * + COUNT ( * ) + - 51 - - 3 / - 9 AS col0, 61 AS col0
----
-24
61

query II rowsort
SELECT ALL 70 AS col0, - 45 AS col1
----
70
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-8228
SELECT ( + 75 ) DIV 61 - + 75
----
-74

skipif mysql # not compatible
query I rowsort label-8228
SELECT ( + 75 ) / 61 - + 75
----
-74

query I rowsort
SELECT ALL 19 + + - 10 - 22
----
-13

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8230
SELECT DISTINCT 78 + - + 37 DIV + CAST( - - 67 AS SIGNED )
----
78

skipif mysql # not compatible
query I rowsort label-8230
SELECT DISTINCT 78 + - + 37 / + CAST ( - - 67 AS INTEGER )
----
78

query II rowsort
SELECT 83, 83
----
83
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8232
SELECT NULLIF ( + 83, - + 61 ) * + - CASE + - 76 WHEN + - ( + CAST( + 3 AS SIGNED ) ) THEN 59 WHEN CAST( + 18 AS SIGNED ) / - + CAST( + 76 AS SIGNED ) THEN 36 END + - 25 + 37 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8232
SELECT NULLIF ( + 83, - + 61 ) * + - CASE + - 76 WHEN + - ( + CAST ( + 3 AS INTEGER ) ) THEN 59 WHEN CAST ( + 18 AS INTEGER ) / - + CAST ( + 76 AS INTEGER ) THEN 36 END + - 25 + 37 AS col0
----
NULL

query I rowsort
SELECT DISTINCT 12 * + - 54 AS col1
----
-648

query II rowsort
SELECT DISTINCT - 35 AS col2, + 14 - - 73
----
-35
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8235
SELECT ALL + 4 + + + 4 + + NULLIF ( + + COALESCE ( CAST( - - ( - 55 ) AS SIGNED ), + CAST( NULL AS SIGNED ) ), 11 )
----
-47

skipif mysql # not compatible
query I rowsort label-8235
SELECT ALL + 4 + + + 4 + + NULLIF ( + + COALESCE ( CAST ( - - ( - 55 ) AS INTEGER ), + CAST ( NULL AS INTEGER ) ), 11 )
----
-47

query I rowsort
SELECT 12 + - 99
----
-87

query I rowsort
SELECT DISTINCT - ( + + ( - 28 ) )
----
28

query I rowsort
SELECT 91 + - - 86 AS col0
----
177

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8239
SELECT + 1 * MIN( ALL - + NULLIF ( - 17, + 89 ) ) DIV 16
----
1

skipif mysql # not compatible
query I rowsort label-8239
SELECT + 1 * MIN ( ALL - + NULLIF ( - 17, + 89 ) ) / 16
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8240
SELECT DISTINCT + + CASE - 22 WHEN ( NULLIF ( 65, + 71 ) ) - - 9 THEN ( - - ( - + 45 ) ) * ( 41 ) * - 14 ELSE + - CASE - NULLIF ( + 95, MAX( ALL - 59 ) ) WHEN - 97 THEN NULL WHEN ( - 86 ) THEN - NULLIF ( COUNT( * ), 45 ) + + 49 * + 12 DIV + 67 + - MIN( DISTINCT - - 5 ) + + + CAST( AVG ( + 56 ) AS SIGNED ) ELSE 18 END + ( MAX( 23 ) ) END * - NULLIF ( + 14 * - 37, 82 ) AS col1
----
2590

skipif mysql # not compatible
query I rowsort label-8240
SELECT DISTINCT + + CASE - 22 WHEN ( NULLIF ( 65, + 71 ) ) - - 9 THEN ( - - ( - + 45 ) ) * ( 41 ) * - 14 ELSE + - CASE - NULLIF ( + 95, MAX ( ALL - 59 ) ) WHEN - 97 THEN NULL WHEN ( - 86 ) THEN - NULLIF ( COUNT ( * ), 45 ) + + 49 * + 12 / + 67 + - MIN ( DISTINCT - - 5 ) + + + CAST ( AVG ( + 56 ) AS INTEGER ) ELSE 18 END + ( MAX ( 23 ) ) END * - NULLIF ( + 14 * - 37, 82 ) AS col1
----
2590

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8241
SELECT - + ( + 0 ) * - CAST( - 83 AS SIGNED ) + 89
----
89

skipif mysql # not compatible
query I rowsort label-8241
SELECT - + ( + 0 ) * - CAST ( - 83 AS INTEGER ) + 89
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8242
SELECT ALL + 74 * + + 81 / 87 / - 85 * + CASE - - 5 WHEN + 95 THEN NULL WHEN - 94 THEN - COALESCE ( - + NULLIF ( COUNT( * ), - - 72 ), + CASE + + 50 WHEN + 28 THEN NULL WHEN + + 14 THEN NULL WHEN CAST( + ( - 82 ) AS DECIMAL ) THEN NULL ELSE 14 / CAST( - + 50 AS SIGNED ) END, + - 39 ) * + 39 * - MAX( ALL - - 51 ) + - - 18 * - 5 + - - SUM( + 8 ) WHEN 52 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8242
SELECT ALL + 74 * + + 81 / 87 / - 85 * + CASE - - 5 WHEN + 95 THEN NULL WHEN - 94 THEN - COALESCE ( - + NULLIF ( COUNT ( * ), - - 72 ), + CASE + + 50 WHEN + 28 THEN NULL WHEN + + 14 THEN NULL WHEN CAST ( + ( - 82 ) AS REAL ) THEN NULL ELSE 14 / CAST ( - + 50 AS INTEGER ) END, + - 39 ) * + 39 * - MAX ( ALL - - 51 ) + - - 18 * - 5 + - - SUM ( + 8 ) WHEN 52 THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8243
SELECT 14 * + 42 * - COUNT( * ) AS col2
----
-588

skipif mysql # not compatible
query I rowsort label-8243
SELECT 14 * + 42 * - COUNT ( * ) AS col2
----
-588

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8244
SELECT + CAST( + + 77 AS SIGNED )
----
77

skipif mysql # not compatible
query I rowsort label-8244
SELECT + CAST ( + + 77 AS INTEGER )
----
77

query II rowsort
SELECT - 33 AS col2, + 59 AS col1
----
-33
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8246
SELECT SUM( CAST( NULL AS SIGNED ) ) / - COUNT( * ) + 78 - 38 + - 97 * - 76 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8246
SELECT SUM ( CAST ( NULL AS INTEGER ) ) / - COUNT ( * ) + 78 - 38 + - 97 * - 76 col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8247
SELECT ALL + + 48 DIV - 12
----
-4

skipif mysql # not compatible
query I rowsort label-8247
SELECT ALL + + 48 / - 12
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-8248
SELECT 40 * - + COUNT( * )
----
-40

skipif mysql # not compatible
query I rowsort label-8248
SELECT 40 * - + COUNT ( * )
----
-40

query I rowsort
SELECT ALL NULLIF ( - 92, - - 12 )
----
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8250
SELECT + 52 * 29 + + CAST( + + 60 AS SIGNED ) + 42 + 28 * + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8250
SELECT + 52 * 29 + + CAST ( + + 60 AS INTEGER ) + 42 + 28 * + CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8251
SELECT ALL - - MAX( - 55 ) DIV 95 * + 37 col2
----
0

skipif mysql # not compatible
query I rowsort label-8251
SELECT ALL - - MAX ( - 55 ) / 95 * + 37 col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8252
SELECT - - CAST( ( - + COUNT( * ) ) AS SIGNED ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-8252
SELECT - - CAST ( ( - + COUNT ( * ) ) AS INTEGER ) col2
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-8253
SELECT + ( COALESCE ( + + COUNT( + 90 ), + 9 ) ) AS col1, COUNT( * ) * + 17 * + ( - 48 ) AS col2
----
1
-816

skipif mysql # not compatible
query II rowsort label-8253
SELECT + ( COALESCE ( + + COUNT ( + 90 ), + 9 ) ) AS col1, COUNT ( * ) * + 17 * + ( - 48 ) AS col2
----
1
-816

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8254
SELECT ALL + - CASE - 68 WHEN + 61 THEN - 96 + - 7 * - ( - MAX( + 34 ) ) WHEN - + 85 * + 74 + + - CAST( NULL AS DECIMAL ) * - - ( NULLIF ( - 50, + ( - - 34 ) + + ( + - 5 ) + - + 59 / + COUNT( * ) + - NULLIF ( - 52, - + 74 ) * + - CAST( + - CAST( - 31 AS SIGNED ) AS SIGNED ) ) ) THEN NULL ELSE + CASE + 54 WHEN + COUNT( * ) THEN - ( + 17 ) * + 15 + - CASE - ( MIN( ( - 20 ) ) ) WHEN - 53 THEN + COUNT( * ) + ( + 75 ) / 74 END END / - 98 END + - 99 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8254
SELECT ALL + - CASE - 68 WHEN + 61 THEN - 96 + - 7 * - ( - MAX ( + 34 ) ) WHEN - + 85 * + 74 + + - CAST ( NULL AS REAL ) * - - ( NULLIF ( - 50, + ( - - 34 ) + + ( + - 5 ) + - + 59 / + COUNT ( * ) + - NULLIF ( - 52, - + 74 ) * + - CAST ( + - CAST ( - 31 AS INTEGER ) AS INTEGER ) ) ) THEN NULL ELSE + CASE + 54 WHEN + COUNT ( * ) THEN - ( + 17 ) * + 15 + - CASE - ( MIN ( ( - 20 ) ) ) WHEN - 53 THEN + COUNT ( * ) + ( + 75 ) / 74 END END / - 98 END + - 99 AS col2
----
NULL

query I rowsort
SELECT 50 + - ( - 26 ) AS col2
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8256
SELECT - CAST( - 26 AS SIGNED ) AS col0
----
26

skipif mysql # not compatible
query I rowsort label-8256
SELECT - CAST ( - 26 AS INTEGER ) AS col0
----
26

query II rowsort
SELECT - - 9, 27 AS col2
----
9
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8258
SELECT DISTINCT NULLIF ( - 2, + CAST( + 59 AS SIGNED ) + - 48 )
----
-2

skipif mysql # not compatible
query I rowsort label-8258
SELECT DISTINCT NULLIF ( - 2, + CAST ( + 59 AS INTEGER ) + - 48 )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8259
SELECT ALL 32 * COUNT( * ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-8259
SELECT ALL 32 * COUNT ( * ) AS col0
----
32

query I rowsort
SELECT 68 + + 42 AS col1
----
110

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8261
SELECT ALL + 71 + + - 38 * + 77 * + ( + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8261
SELECT ALL + 71 + + - 38 * + 77 * + ( + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8262
SELECT DISTINCT MAX( ALL + 88 ) + + 24 + + CASE 21 WHEN 73 * - 11 THEN - - 89 WHEN + - COUNT( DISTINCT - 88 ) / - 82 THEN + 57 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8262
SELECT DISTINCT MAX ( ALL + 88 ) + + 24 + + CASE 21 WHEN 73 * - 11 THEN - - 89 WHEN + - COUNT ( DISTINCT - 88 ) / - 82 THEN + 57 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8263
SELECT 84 + + NULLIF ( + 56, 30 * - - COUNT( * ) + + - 72 - 69 * - 56 / + - 94 * - - 57 ) AS col2
----
140

skipif mysql # not compatible
query I rowsort label-8263
SELECT 84 + + NULLIF ( + 56, 30 * - - COUNT ( * ) + + - 72 - 69 * - 56 / + - 94 * - - 57 ) AS col2
----
140

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8264
SELECT DISTINCT COUNT( * ), ( CAST( NULL AS SIGNED ) ) * - 52 - 64 - ( + 92 ) + 44 * - - 80 * + 79 * - MIN( DISTINCT + 57 ) + 13 + 20 * COUNT( DISTINCT - 52 ) * 29 AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-8264
SELECT DISTINCT COUNT ( * ), ( CAST ( NULL AS INTEGER ) ) * - 52 - 64 - ( + 92 ) + 44 * - - 80 * + 79 * - MIN ( DISTINCT + 57 ) + 13 + 20 * COUNT ( DISTINCT - 52 ) * 29 AS col0
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8265
SELECT 58 * COUNT( DISTINCT - 57 )
----
58

skipif mysql # not compatible
query I rowsort label-8265
SELECT 58 * COUNT ( DISTINCT - 57 )
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8266
SELECT CASE - - COUNT( * ) WHEN 21 * - + 4 * - 77 THEN NULL WHEN + - NULLIF ( + ( - COUNT( * ) ), + - COUNT( * ) / + 68 + + - 45 + + + COUNT( * ) ) + - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) THEN NULL WHEN + 64 + + - 86 THEN + + NULLIF ( 86, - 39 ) END + + - 89
----
NULL

skipif mysql # not compatible
query I rowsort label-8266
SELECT CASE - - COUNT ( * ) WHEN 21 * - + 4 * - 77 THEN NULL WHEN + - NULLIF ( + ( - COUNT ( * ) ), + - COUNT ( * ) / + 68 + + - 45 + + + COUNT ( * ) ) + - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) THEN NULL WHEN + 64 + + - 86 THEN + + NULLIF ( 86, - 39 ) END + + - 89
----
NULL

query I rowsort
SELECT ALL NULLIF ( + 17, - 45 )
----
17

query II rowsort
SELECT - 33 AS col2, - 24
----
-33
-24

query I rowsort
SELECT + 84 + - + 70 AS col2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-8270
SELECT + 60 + + COUNT( * ) * 10 AS col0
----
70

skipif mysql # not compatible
query I rowsort label-8270
SELECT + 60 + + COUNT ( * ) * 10 AS col0
----
70

query I rowsort
SELECT ALL 9 * 4 + - 38
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8272
SELECT - CAST( + + CASE - 18 WHEN 3 THEN - 10 WHEN - + 24 / + + ( + + 61 ) THEN - + 84 END AS SIGNED ) * + COALESCE ( COUNT( * ), - COALESCE ( 86, NULLIF ( + NULLIF ( - - 69, - 39 / 20 + - 7 + + + 89 * + CAST( - 18 AS SIGNED ) + - 3 ), + 29 * - COUNT( * ) ) - + 9 ) * - COALESCE ( + 95, 30 + - 76 ), + 21 + 22 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8272
SELECT - CAST ( + + CASE - 18 WHEN 3 THEN - 10 WHEN - + 24 / + + ( + + 61 ) THEN - + 84 END AS INTEGER ) * + COALESCE ( COUNT ( * ), - COALESCE ( 86, NULLIF ( + NULLIF ( - - 69, - 39 / 20 + - 7 + + + 89 * + CAST ( - 18 AS INTEGER ) + - 3 ), + 29 * - COUNT ( * ) ) - + 9 ) * - COALESCE ( + 95, 30 + - 76 ), + 21 + 22 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8273
SELECT + 77 * COUNT( - 24 ) * 26
----
2002

skipif mysql # not compatible
query I rowsort label-8273
SELECT + 77 * COUNT ( - 24 ) * 26
----
2002

query I rowsort
SELECT + NULLIF ( - - 7, + - 95 ) AS col2
----
7

query II rowsort
SELECT CASE + 35 WHEN + - 10 THEN 87 ELSE NULL END, - 91 AS col0
----
NULL
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-8276
SELECT ALL + 64 AS col0, + 34 * + + COUNT( ALL + 29 ) AS col1
----
64
34

skipif mysql # not compatible
query II rowsort label-8276
SELECT ALL + 64 AS col0, + 34 * + + COUNT ( ALL + 29 ) AS col1
----
64
34

query I rowsort
SELECT CASE 16 WHEN - 42 THEN NULL WHEN 57 THEN 27 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL 46 * + 89 - 77 + + 45 AS col0
----
4062

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8279
SELECT + 41 * CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8279
SELECT + 41 * CAST ( NULL AS INTEGER ) col2
----
NULL

query I rowsort
SELECT ALL - 4 * + + 3 - NULLIF ( ( - - 16 ), ( + 95 ) ) * + 17
----
-284

query I rowsort
SELECT + 18 * + 20 AS col0
----
360

query I rowsort
SELECT NULLIF ( 95, - - 68 )
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-8283
SELECT + 94 DIV - 24 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-8283
SELECT + 94 / - 24 AS col2
----
-3

query I rowsort
SELECT ALL 0 * + 91 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8285
SELECT + MIN( - 7 ) * + 64 * 51
----
-22848

skipif mysql # not compatible
query I rowsort label-8285
SELECT + MIN ( - 7 ) * + 64 * 51
----
-22848

query II rowsort
SELECT + + 62 AS col0, 28 AS col1
----
62
28

onlyif mysql # aggregate syntax: 
query I rowsort label-8287
SELECT + SUM( 91 ) * - COUNT( * )
----
-91

skipif mysql # not compatible
query I rowsort label-8287
SELECT + SUM ( 91 ) * - COUNT ( * )
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8288
SELECT + 69 * - CASE - + 41 WHEN + ( 24 ) + COUNT( * ) THEN - CAST( NULL AS SIGNED ) * NULLIF ( 41, + 81 * - - SUM( ALL + 45 ) ) + + 72 WHEN + 70 THEN NULL END - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8288
SELECT + 69 * - CASE - + 41 WHEN + ( 24 ) + COUNT ( * ) THEN - CAST ( NULL AS INTEGER ) * NULLIF ( 41, + 81 * - - SUM ( ALL + 45 ) ) + + 72 WHEN + 70 THEN NULL END - COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT - 25 * 4 - + 79
----
-179

onlyif mysql # aggregate syntax: 
query I rowsort label-8290
SELECT + COUNT( * ) - - 39
----
40

skipif mysql # not compatible
query I rowsort label-8290
SELECT + COUNT ( * ) - - 39
----
40

query I rowsort
SELECT DISTINCT + 1 * - 1 AS col2
----
-1

query I rowsort
SELECT ALL + + ( + + 52 ) * - - 12
----
624

query I rowsort
SELECT ALL + + COALESCE ( + - 19, 35 )
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-8294
SELECT ALL - MIN( ALL + + 75 ) AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-8294
SELECT ALL - MIN ( ALL + + 75 ) AS col2
----
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-8295
SELECT DISTINCT + 18 DIV - - 59 * - ( + 50 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-8295
SELECT DISTINCT + 18 / - - 59 * - ( + 50 ) col0
----
0

query I rowsort
SELECT DISTINCT 54 + 30 AS col1
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-8297
SELECT - 98 DIV - + 81 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8297
SELECT - 98 / - + 81 AS col1
----
1

query I rowsort
SELECT ALL + ( 71 ) + 95 AS col2
----
166

query II rowsort
SELECT + 57 AS col1, + 1 AS col2
----
57
1

query II rowsort
SELECT ALL 18 AS col1, + 73 + + 8
----
18
81

onlyif mysql # DIV for integer division: 
query I rowsort label-8301
SELECT - - 30 DIV - NULLIF ( - 41, + + ( + 12 ) DIV 64 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-8301
SELECT - - 30 / - NULLIF ( - 41, + + ( + 12 ) / 64 ) col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8302
SELECT ALL 2 + ( - COUNT( * ) ) + + CAST( NULL AS SIGNED ) * + ( + 77 ) * 32, + ( - 92 ) * + 63 - - + ( + 72 ) AS col1
----
NULL
-5724

skipif mysql # not compatible
query II rowsort label-8302
SELECT ALL 2 + ( - COUNT ( * ) ) + + CAST ( NULL AS INTEGER ) * + ( + 77 ) * 32, + ( - 92 ) * + 63 - - + ( + 72 ) AS col1
----
NULL
-5724

query I rowsort
SELECT DISTINCT ( - + ( 3 ) ) AS col2
----
-3

query I rowsort
SELECT ALL + 39 + NULLIF ( + 74, - 10 )
----
113

onlyif mysql # DIV for integer division: 
query I rowsort label-8305
SELECT + 2 DIV - - 63 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8305
SELECT + 2 / - - 63 AS col2
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-8306
SELECT - 8 DIV - 42 AS col1, 3 DIV 98 * + 45 + - - 53
----
0
53

skipif mysql # not compatible
query II rowsort label-8306
SELECT - 8 / - 42 AS col1, 3 / 98 * + 45 + - - 53
----
0
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8307
SELECT - CAST( - 18 AS SIGNED ) + + 99 AS col1
----
117

skipif mysql # not compatible
query I rowsort label-8307
SELECT - CAST ( - 18 AS INTEGER ) + + 99 AS col1
----
117

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8308
SELECT DISTINCT - 94 DIV - 14 AS col1, COUNT( * ) AS col0
----
6
1

skipif mysql # not compatible
query II rowsort label-8308
SELECT DISTINCT - 94 / - 14 AS col1, COUNT ( * ) AS col0
----
6
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8309
SELECT ALL ( + - CAST( + + 76 AS SIGNED ) ) AS col1
----
-76

skipif mysql # not compatible
query I rowsort label-8309
SELECT ALL ( + - CAST ( + + 76 AS INTEGER ) ) AS col1
----
-76

query I rowsort
SELECT DISTINCT ( 84 ) AS col0
----
84

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8311
SELECT DISTINCT NULLIF ( - ( 13 ), - COALESCE ( - - 9, - - CAST( NULL AS DECIMAL ) ) ) AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-8311
SELECT DISTINCT NULLIF ( - ( 13 ), - COALESCE ( - - 9, - - CAST ( NULL AS REAL ) ) ) AS col0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-8312
SELECT DISTINCT + COUNT( * ) * + + 40
----
40

skipif mysql # not compatible
query I rowsort label-8312
SELECT DISTINCT + COUNT ( * ) * + + 40
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8313
SELECT ALL + CASE - + 86 WHEN + 42 + 4 + + 64 + + + NULLIF ( MIN( DISTINCT + - 5 ), - 90 ) THEN NULL WHEN - 12 * MIN( 18 ) * + 71 THEN - 72 - 87 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8313
SELECT ALL + CASE - + 86 WHEN + 42 + 4 + + 64 + + + NULLIF ( MIN ( DISTINCT + - 5 ), - 90 ) THEN NULL WHEN - 12 * MIN ( 18 ) * + 71 THEN - 72 - 87 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8314
SELECT + 98 / 50 / - ( + COUNT( * ) ) * - - CASE 41 WHEN - 20 THEN NULL ELSE 42 * + - 23 + - + COUNT( * ) + - - 66 END + - CAST( NULL AS SIGNED ) + + + 33 - - + 73
----
NULL

skipif mysql # not compatible
query I rowsort label-8314
SELECT + 98 / 50 / - ( + COUNT ( * ) ) * - - CASE 41 WHEN - 20 THEN NULL ELSE 42 * + - 23 + - + COUNT ( * ) + - - 66 END + - CAST ( NULL AS INTEGER ) + + + 33 - - + 73
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8315
SELECT - CAST( NULL AS SIGNED ) * NULLIF ( + 7, - + 7 ) - - CASE + 36 WHEN + 24 / + + 9 - - 50 + COALESCE ( 63, - 92 + + 77, ( 96 ) ) THEN NULL ELSE CAST( NULL AS SIGNED ) + + - 64 END + + + 48 * + ( COUNT( * ) ) + - + MAX( 81 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8315
SELECT - CAST ( NULL AS INTEGER ) * NULLIF ( + 7, - + 7 ) - - CASE + 36 WHEN + 24 / + + 9 - - 50 + COALESCE ( 63, - 92 + + 77, ( 96 ) ) THEN NULL ELSE CAST ( NULL AS INTEGER ) + + - 64 END + + + 48 * + ( COUNT ( * ) ) + - + MAX ( 81 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8316
SELECT ALL - COUNT( + ( + + 8 ) ) * - 57 - - NULLIF ( MIN( + 44 ), + - 29 * + NULLIF ( + 74, - 0 * + 1 - + 27 ) + + COUNT( * ) ) col1
----
101

skipif mysql # not compatible
query I rowsort label-8316
SELECT ALL - COUNT ( + ( + + 8 ) ) * - 57 - - NULLIF ( MIN ( + 44 ), + - 29 * + NULLIF ( + 74, - 0 * + 1 - + 27 ) + + COUNT ( * ) ) col1
----
101

query I rowsort
SELECT - 64 * - + 10 AS col1
----
640

query I rowsort
SELECT + NULLIF ( 86, - 56 + - + 38 + + - 2 )
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-8319
SELECT 41 DIV + 1 + + ( 51 ) AS col1
----
92

skipif mysql # not compatible
query I rowsort label-8319
SELECT 41 / + 1 + + ( 51 ) AS col1
----
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8320
SELECT - 97 + - + COUNT( * ) + 80 + + COALESCE ( + ( - 78 ), 4 DIV 69 + 57 * 67, - 42 ) AS col0
----
-96

skipif mysql # not compatible
query I rowsort label-8320
SELECT - 97 + - + COUNT ( * ) + 80 + + COALESCE ( + ( - 78 ), 4 / 69 + 57 * 67, - 42 ) AS col0
----
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8321
SELECT ALL - 41 DIV + - COUNT( * ) AS col0, - 17 AS col1
----
41
-17

skipif mysql # not compatible
query II rowsort label-8321
SELECT ALL - 41 / + - COUNT ( * ) AS col0, - 17 AS col1
----
41
-17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8322
SELECT + - 36 DIV - 49 * - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-8322
SELECT + - 36 / - 49 * - COUNT ( * )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8323
SELECT - 10 DIV - 57 + 42
----
42

skipif mysql # not compatible
query I rowsort label-8323
SELECT - 10 / - 57 + 42
----
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8324
SELECT DISTINCT - + 39 DIV + + ( 32 ) * + COUNT( * ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-8324
SELECT DISTINCT - + 39 / + + ( 32 ) * + COUNT ( * ) col0
----
-1

query I rowsort
SELECT + + 3 + - 91
----
-88

query I rowsort
SELECT ALL - 92 * - 95
----
8740

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8327
SELECT ALL 16 / + + NULLIF ( + CAST( NULL AS SIGNED ), - 97 ) + + 31
----
NULL

skipif mysql # not compatible
query I rowsort label-8327
SELECT ALL 16 / + + NULLIF ( + CAST ( NULL AS INTEGER ), - 97 ) + + 31
----
NULL

query I rowsort
SELECT + 60 + - 77 AS col2
----
-17

query I rowsort
SELECT DISTINCT - 47 * - 27 col0
----
1269

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8330
SELECT - 4 DIV + COALESCE ( + COUNT( DISTINCT - 14 ), - CASE + COUNT( * ) WHEN - 26 THEN NULL WHEN 17 THEN 26 ELSE - + 98 END - + 69 ) AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-8330
SELECT - 4 / + COALESCE ( + COUNT ( DISTINCT - 14 ), - CASE + COUNT ( * ) WHEN - 26 THEN NULL WHEN 17 THEN 26 ELSE - + 98 END - + 69 ) AS col0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-8331
SELECT ALL 14 * - 45 + + COUNT( * ) AS col0
----
-629

skipif mysql # not compatible
query I rowsort label-8331
SELECT ALL 14 * - 45 + + COUNT ( * ) AS col0
----
-629

query I rowsort
SELECT DISTINCT + - 61 col0
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-8333
SELECT - SUM( + 84 )
----
-84

skipif mysql # not compatible
query I rowsort label-8333
SELECT - SUM ( + 84 )
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-8334
SELECT + - NULLIF ( - + COUNT( * ), - 0 ) * + + 62 AS col2
----
62

skipif mysql # not compatible
query I rowsort label-8334
SELECT + - NULLIF ( - + COUNT ( * ), - 0 ) * + + 62 AS col2
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-8335
SELECT ALL 34 * + SUM( DISTINCT - 64 ) + - 32 + - 60 AS col1
----
-2268

skipif mysql # not compatible
query I rowsort label-8335
SELECT ALL 34 * + SUM ( DISTINCT - 64 ) + - 32 + - 60 AS col1
----
-2268

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8336
SELECT ALL 1 * - 20 + + - 59 + + CAST( NULL AS SIGNED ) + 60 + 91 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8336
SELECT ALL 1 * - 20 + + - 59 + + CAST ( NULL AS INTEGER ) + 60 + 91 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8337
SELECT SUM( DISTINCT + 67 ) AS col2
----
67

skipif mysql # not compatible
query I rowsort label-8337
SELECT SUM ( DISTINCT + 67 ) AS col2
----
67

query I rowsort
SELECT + 39 * - 83 + + 94
----
-3143

onlyif mysql # aggregate syntax: 
query II rowsort label-8339
SELECT 3 + 36 * + 42 * - COUNT( * ) AS col1, 94 + - ( 47 ) col1
----
-1509
47

skipif mysql # not compatible
query II rowsort label-8339
SELECT 3 + 36 * + 42 * - COUNT ( * ) AS col1, 94 + - ( 47 ) col1
----
-1509
47

query II rowsort
SELECT - 75, - 88 AS col0
----
-75
-88

query II rowsort
SELECT 87 * - 10 * 86, 58 + 14 + + 55 + + 92 col1
----
-74820
219

onlyif mysql # aggregate syntax: 
query I rowsort label-8342
SELECT 22 * MAX( - - 88 ) AS col0
----
1936

skipif mysql # not compatible
query I rowsort label-8342
SELECT 22 * MAX ( - - 88 ) AS col0
----
1936

query II rowsort
SELECT DISTINCT 81, 35 AS col2
----
81
35

query I rowsort
SELECT ALL 54 - + 43
----
11

onlyif mysql # aggregate syntax: 
query II rowsort label-8345
SELECT 99 AS col2, + COUNT( * ) AS col2
----
99
1

skipif mysql # not compatible
query II rowsort label-8345
SELECT 99 AS col2, + COUNT ( * ) AS col2
----
99
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8346
SELECT ALL + 9 - - CASE + 83 WHEN + 24 + - 0 * - - 33 + + COUNT( * ) THEN ( - 2 ) * + - MIN( ALL + 65 ) + 50 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8346
SELECT ALL + 9 - - CASE + 83 WHEN + 24 + - 0 * - - 33 + + COUNT ( * ) THEN ( - 2 ) * + - MIN ( ALL + 65 ) + 50 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8347
SELECT DISTINCT COUNT( * ) * - 41
----
-41

skipif mysql # not compatible
query I rowsort label-8347
SELECT DISTINCT COUNT ( * ) * - 41
----
-41

onlyif mysql # aggregate syntax: 
query II rowsort label-8348
SELECT DISTINCT 45 AS col1, - COUNT( * )
----
45
-1

skipif mysql # not compatible
query II rowsort label-8348
SELECT DISTINCT 45 AS col1, - COUNT ( * )
----
45
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8349
SELECT COALESCE ( COALESCE ( + CASE + COUNT( * ) WHEN - 83 THEN 8 ELSE NULL END, - 67 ), - 72, + + MIN( 99 ) * - + CAST( NULL AS SIGNED ) * - + 13 * - 75, - - 59 ) * + 88
----
-5896

skipif mysql # not compatible
query I rowsort label-8349
SELECT COALESCE ( COALESCE ( + CASE + COUNT ( * ) WHEN - 83 THEN 8 ELSE NULL END, - 67 ), - 72, + + MIN ( 99 ) * - + CAST ( NULL AS INTEGER ) * - + 13 * - 75, - - 59 ) * + 88
----
-5896

onlyif mysql # DIV for integer division: 
query I rowsort label-8350
SELECT ALL + COALESCE ( + - COALESCE ( - 82, 85 * - - 98 DIV - 28, - - 24 ), 81 ) DIV - 7 - - 47
----
36

skipif mysql # not compatible
query I rowsort label-8350
SELECT ALL + COALESCE ( + - COALESCE ( - 82, 85 * - - 98 / - 28, - - 24 ), 81 ) / - 7 - - 47
----
36

query I rowsort
SELECT 11 * + 89
----
979

query I rowsort
SELECT DISTINCT - CASE + - 69 WHEN 49 * + 12 * - - 56 / NULLIF ( + AVG ( 38 ), - 11 - - 38 ) THEN + - 5 ELSE + 9 END AS col2
----
-9

query I rowsort
SELECT ALL - - 79 * + + 62
----
4898

query I rowsort
SELECT 68 * 95 AS col2
----
6460

query I rowsort
SELECT ALL - 96 * - 6 AS col1
----
576

onlyif mysql # aggregate syntax: 
query I rowsort label-8356
SELECT DISTINCT - MAX( ALL 5 ) * - 16 + 76 AS col2
----
156

skipif mysql # not compatible
query I rowsort label-8356
SELECT DISTINCT - MAX ( ALL 5 ) * - 16 + 76 AS col2
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-8357
SELECT ALL 61 + - - 15 + - SUM( DISTINCT 65 )
----
11

skipif mysql # not compatible
query I rowsort label-8357
SELECT ALL 61 + - - 15 + - SUM ( DISTINCT 65 )
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8358
SELECT ALL - 51 + COUNT( * ) * + CAST( NULL AS SIGNED ) AS col2, + NULLIF ( + 45, SUM( ALL - 77 ) * - 16 * + + 51 + + 48 + 94 + 67 )
----
NULL
45

skipif mysql # not compatible
query II rowsort label-8358
SELECT ALL - 51 + COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col2, + NULLIF ( + 45, SUM ( ALL - 77 ) * - 16 * + + 51 + + 48 + 94 + 67 )
----
NULL
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8359
SELECT 48 * - + NULLIF ( - + 95, + 41 + CAST( NULL AS SIGNED ) ) - - 97, CASE 37 WHEN - + SUM( ALL + 90 ) * - - 94 + - ( 66 ) THEN ( + 49 ) ELSE NULL END / - 97 AS col2
----
4657
NULL

skipif mysql # not compatible
query II rowsort label-8359
SELECT 48 * - + NULLIF ( - + 95, + 41 + CAST ( NULL AS INTEGER ) ) - - 97, CASE 37 WHEN - + SUM ( ALL + 90 ) * - - 94 + - ( 66 ) THEN ( + 49 ) ELSE NULL END / - 97 AS col2
----
4657
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8360
SELECT - COUNT( * ) * 85 AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-8360
SELECT - COUNT ( * ) * 85 AS col0
----
-85

query I rowsort
SELECT + + 94 col2
----
94

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8362
SELECT + 85, + 28 DIV CASE + 89 WHEN + 71 THEN + 88 * - + CAST( - 48 AS SIGNED ) + 95 ELSE + 26 END * + 16 + 3 + 65 DIV + 28 AS col0
----
85
21

skipif mysql # not compatible
query II rowsort label-8362
SELECT + 85, + 28 / CASE + 89 WHEN + 71 THEN + 88 * - + CAST ( - 48 AS INTEGER ) + 95 ELSE + 26 END * + 16 + 3 + 65 / + 28 AS col0
----
85
21

query II rowsort
SELECT + 19 AS col1, + 20 + + 66
----
19
86

query I rowsort
SELECT + 78 * + 48 - - 21
----
3765

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8365
SELECT ALL - CAST( 43 AS SIGNED )
----
-43

skipif mysql # not compatible
query I rowsort label-8365
SELECT ALL - CAST ( 43 AS INTEGER )
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-8366
SELECT ALL + COUNT( * ) + + 53 * - 93
----
-4928

skipif mysql # not compatible
query I rowsort label-8366
SELECT ALL + COUNT ( * ) + + 53 * - 93
----
-4928

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8367
SELECT 17 - + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8367
SELECT 17 - + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + ( + 37 ) + + 6 * + + 42 + 70
----
359

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8369
SELECT DISTINCT - 36 DIV COUNT( * )
----
-36

skipif mysql # not compatible
query I rowsort label-8369
SELECT DISTINCT - 36 / COUNT ( * )
----
-36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8370
SELECT + COUNT( * ) DIV 73 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8370
SELECT + COUNT ( * ) / 73 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8371
SELECT ALL MIN( DISTINCT + - 80 ) + CAST( MIN( DISTINCT + 91 ) AS SIGNED )
----
11

skipif mysql # not compatible
query I rowsort label-8371
SELECT ALL MIN ( DISTINCT + - 80 ) + CAST ( MIN ( DISTINCT + 91 ) AS INTEGER )
----
11

query II rowsort
SELECT + + 40 AS col0, 90 * - 62
----
40
-5580

onlyif mysql # aggregate syntax: 
query II rowsort label-8373
SELECT - COUNT( * ) + + ( + - SUM( - 6 ) ) AS col2, 28 * + - 70 * 47 AS col0
----
5
-92120

skipif mysql # not compatible
query II rowsort label-8373
SELECT - COUNT ( * ) + + ( + - SUM ( - 6 ) ) AS col2, 28 * + - 70 * 47 AS col0
----
5
-92120

onlyif mysql # aggregate syntax: 
query I rowsort label-8374
SELECT + 35 * + - 79 - COUNT( * ) * 89 * - 94 col1
----
5601

skipif mysql # not compatible
query I rowsort label-8374
SELECT + 35 * + - 79 - COUNT ( * ) * 89 * - 94 col1
----
5601

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8375
SELECT 68 * - + NULLIF ( CAST( NULL AS SIGNED ), + 99 + 30 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8375
SELECT 68 * - + NULLIF ( CAST ( NULL AS INTEGER ), + 99 + 30 ) AS col2
----
NULL

query I rowsort
SELECT ALL 90 * + + 90
----
8100

onlyif mysql # aggregate syntax: 
query II rowsort label-8377
SELECT ALL 49 - + + 81 + - - ( + + 98 ) + 16 col1, - 26 + - 56 + + NULLIF ( - COUNT( * ), 14 ) * - + 57 * - - 70
----
82
3908

skipif mysql # not compatible
query II rowsort label-8377
SELECT ALL 49 - + + 81 + - - ( + + 98 ) + 16 col1, - 26 + - 56 + + NULLIF ( - COUNT ( * ), 14 ) * - + 57 * - - 70
----
82
3908

query I rowsort
SELECT ALL - 22 * + 15 AS col2
----
-330

onlyif mysql # aggregate syntax: 
query I rowsort label-8379
SELECT COUNT( * ) * - - 57
----
57

skipif mysql # not compatible
query I rowsort label-8379
SELECT COUNT ( * ) * - - 57
----
57

query I rowsort
SELECT 92 + 4 * - + 48
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-8381
SELECT - MAX( DISTINCT - 40 )
----
40

skipif mysql # not compatible
query I rowsort label-8381
SELECT - MAX ( DISTINCT - 40 )
----
40

query I rowsort
SELECT ( + + 70 ) - 33 * + 93 AS col2
----
-2999

query I rowsort
SELECT 47 * 93
----
4371

onlyif mysql # aggregate syntax: 
query I rowsort label-8384
SELECT COUNT( * ) + ( - 69 )
----
-68

skipif mysql # not compatible
query I rowsort label-8384
SELECT COUNT ( * ) + ( - 69 )
----
-68

query I rowsort
SELECT 27 + ( 9 )
----
36

onlyif mysql # aggregate syntax: 
query II rowsort label-8386
SELECT ALL COUNT( * ) * + 74 AS col0, + 51
----
74
51

skipif mysql # not compatible
query II rowsort label-8386
SELECT ALL COUNT ( * ) * + 74 AS col0, + 51
----
74
51

query I rowsort
SELECT - 92 * 49
----
-4508

onlyif mysql # aggregate syntax: 
query I rowsort label-8388
SELECT - SUM( 94 ) AS col0
----
-94

skipif mysql # not compatible
query I rowsort label-8388
SELECT - SUM ( 94 ) AS col0
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-8389
SELECT DISTINCT - 14 * - SUM( ALL - 49 ) AS col0
----
-686

skipif mysql # not compatible
query I rowsort label-8389
SELECT DISTINCT - 14 * - SUM ( ALL - 49 ) AS col0
----
-686

onlyif mysql # DIV for integer division: 
query I rowsort label-8390
SELECT ALL 76 + + 64 + + + 55 * 78 DIV + - 81
----
88

skipif mysql # not compatible
query I rowsort label-8390
SELECT ALL 76 + + 64 + + + 55 * 78 / + - 81
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8391
SELECT - NULLIF ( - 42, - 27 * - - 87 * + + 16 DIV 99 ) DIV + + 51 + - COUNT( * ) + - 63
----
-64

skipif mysql # not compatible
query I rowsort label-8391
SELECT - NULLIF ( - 42, - 27 * - - 87 * + + 16 / 99 ) / + + 51 + - COUNT ( * ) + - 63
----
-64

query I rowsort
SELECT + - 78 * - 6 * + 19 - 66 * + - 73 AS col0
----
13710

onlyif mysql # aggregate syntax: 
query I rowsort label-8393
SELECT 63 * - ( ( COUNT( * ) ) ) * 44 * + 44 + + - 68 * - + 28
----
-120064

skipif mysql # not compatible
query I rowsort label-8393
SELECT 63 * - ( ( COUNT ( * ) ) ) * 44 * + 44 + + - 68 * - + 28
----
-120064

onlyif mysql # aggregate syntax: 
query I rowsort label-8394
SELECT ALL - COUNT( * ) * 15 + - 58 AS col2
----
-73

skipif mysql # not compatible
query I rowsort label-8394
SELECT ALL - COUNT ( * ) * 15 + - 58 AS col2
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-8395
SELECT ( - 57 ) + + + 36 + + 17 + + 92 * + - 73 + - 80 * - CASE + 54 WHEN + - 82 * - + 48 + + COUNT( * ) / 50 + - ( + + COUNT( * ) ) THEN 23 WHEN - 93 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8395
SELECT ( - 57 ) + + + 36 + + 17 + + 92 * + - 73 + - 80 * - CASE + 54 WHEN + - 82 * - + 48 + + COUNT ( * ) / 50 + - ( + + COUNT ( * ) ) THEN 23 WHEN - 93 THEN NULL END AS col2
----
NULL

query I rowsort
SELECT - 95 + - 83 AS col0
----
-178

onlyif mysql # aggregate syntax: 
query I rowsort label-8397
SELECT ALL - NULLIF ( + - COUNT( ALL ( - ( - + 67 ) ) ), - - 4 + - COUNT( * ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8397
SELECT ALL - NULLIF ( + - COUNT ( ALL ( - ( - + 67 ) ) ), - - 4 + - COUNT ( * ) ) AS col0
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8398
SELECT + 51 * 87 + + 13 * + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8398
SELECT + 51 * 87 + + 13 * + CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8399
SELECT ALL - - COUNT( * ) * - SUM( 18 ) + COUNT( * ) * - 80 + - 35 + 68 AS col0
----
-65

skipif mysql # not compatible
query I rowsort label-8399
SELECT ALL - - COUNT ( * ) * - SUM ( 18 ) + COUNT ( * ) * - 80 + - 35 + 68 AS col0
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-8400
SELECT DISTINCT - + SUM( ALL + + ( + + 28 ) ) AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-8400
SELECT DISTINCT - + SUM ( ALL + + ( + + 28 ) ) AS col1
----
-28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8401
SELECT + 63 DIV + COUNT( * ) * COUNT( * ) + 74 col1
----
137

skipif mysql # not compatible
query I rowsort label-8401
SELECT + 63 / + COUNT ( * ) * COUNT ( * ) + 74 col1
----
137

onlyif mysql # aggregate syntax: 
query I rowsort label-8402
SELECT ALL COUNT( * ) * 26 + 32 AS col1
----
58

skipif mysql # not compatible
query I rowsort label-8402
SELECT ALL COUNT ( * ) * 26 + 32 AS col1
----
58

query I rowsort
SELECT DISTINCT - - ( - 63 ) * + 87
----
-5481

query I rowsort
SELECT ALL - - 67 * - - 0 * - - 23 col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8405
SELECT - + 68 + COALESCE ( + 33, + 42 ) + - + SUM( DISTINCT - + 52 ) / - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8405
SELECT - + 68 + COALESCE ( + 33, + 42 ) + - + SUM ( DISTINCT - + 52 ) / - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8406
SELECT - - CAST( + + 48 AS SIGNED ) + + 30
----
78

skipif mysql # not compatible
query I rowsort label-8406
SELECT - - CAST ( + + 48 AS INTEGER ) + + 30
----
78

query I rowsort
SELECT + - 11 col0
----
-11

query I rowsort
SELECT ALL + + ( 17 )
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-8409
SELECT + - ( - MIN( + 44 ) ) col0
----
44

skipif mysql # not compatible
query I rowsort label-8409
SELECT + - ( - MIN ( + 44 ) ) col0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-8410
SELECT - 75 * + COUNT( * ) * 72 * - 4 + + + 15
----
21615

skipif mysql # not compatible
query I rowsort label-8410
SELECT - 75 * + COUNT ( * ) * 72 * - 4 + + + 15
----
21615

onlyif mysql # aggregate syntax: 
query I rowsort label-8411
SELECT ALL + 90 - + ( COUNT( * ) )
----
89

skipif mysql # not compatible
query I rowsort label-8411
SELECT ALL + 90 - + ( COUNT ( * ) )
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8412
SELECT ALL + COALESCE ( - + COALESCE ( + CAST( NULL AS SIGNED ), + - 41 ), + 90 * + - 30 * + 17 + 12, + 16 )
----
41

skipif mysql # not compatible
query I rowsort label-8412
SELECT ALL + COALESCE ( - + COALESCE ( + CAST ( NULL AS INTEGER ), + - 41 ), + 90 * + - 30 * + 17 + 12, + 16 )
----
41

query I rowsort
SELECT - 49 + 81
----
32

query I rowsort
SELECT ALL + 90 - + 49 AS col2
----
41

query I rowsort
SELECT - 25 * 52
----
-1300

onlyif mysql # aggregate syntax: 
query I rowsort label-8416
SELECT DISTINCT NULLIF ( ( - - 18 ), 74 * - SUM( - 1 ) ) * + 20 * - 50 * + - 98 AS col1
----
1764000

skipif mysql # not compatible
query I rowsort label-8416
SELECT DISTINCT NULLIF ( ( - - 18 ), 74 * - SUM ( - 1 ) ) * + 20 * - 50 * + - 98 AS col1
----
1764000

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8417
SELECT DISTINCT ( - 48 ) * 43 * + CAST( + 14 AS SIGNED ) AS col2, + 16 AS col0
----
-28896
16

skipif mysql # not compatible
query II rowsort label-8417
SELECT DISTINCT ( - 48 ) * 43 * + CAST ( + 14 AS INTEGER ) AS col2, + 16 AS col0
----
-28896
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8418
SELECT - CAST( + MAX( DISTINCT - 40 ) AS SIGNED ) * - 8 + + ( + 0 )
----
-320

skipif mysql # not compatible
query I rowsort label-8418
SELECT - CAST ( + MAX ( DISTINCT - 40 ) AS INTEGER ) * - 8 + + ( + 0 )
----
-320

query I rowsort
SELECT - 65 * + - 82 AS col1
----
5330

query II rowsort
SELECT 40 AS col2, 16 * - - 60 AS col2
----
40
960

query I rowsort
SELECT - 59 + 57
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-8422
SELECT DISTINCT + COUNT( + 9 ) * 57 + - 78 + - - 2 AS col1, 19 AS col1
----
-19
19

skipif mysql # not compatible
query II rowsort label-8422
SELECT DISTINCT + COUNT ( + 9 ) * 57 + - 78 + - - 2 AS col1, 19 AS col1
----
-19
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8423
SELECT - CASE - + 11 WHEN 68 THEN CASE + 3 WHEN 12 + + + 34 - + + 17 * - ( - COUNT( * ) ) * - NULLIF ( + 11, - 5 ) THEN + CAST( NULL AS SIGNED ) END / 8 WHEN - NULLIF ( + 57, - - CAST( - 4 AS SIGNED ) * - SUM( ALL 12 ) ) + - 75 + COUNT( * ) THEN - NULLIF ( - + 18, + + 40 / + - 85 + + 99 + 55 + CASE - 98 WHEN + 99 THEN + + 70 ELSE 45 END ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8423
SELECT - CASE - + 11 WHEN 68 THEN CASE + 3 WHEN 12 + + + 34 - + + 17 * - ( - COUNT ( * ) ) * - NULLIF ( + 11, - 5 ) THEN + CAST ( NULL AS INTEGER ) END / 8 WHEN - NULLIF ( + 57, - - CAST ( - 4 AS INTEGER ) * - SUM ( ALL 12 ) ) + - 75 + COUNT ( * ) THEN - NULLIF ( - + 18, + + 40 / + - 85 + + 99 + 55 + CASE - 98 WHEN + 99 THEN + + 70 ELSE 45 END ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8424
SELECT ALL + ( 91 ) + + ( + - COUNT( * ) ) + - 76 DIV + - 50 + - 98 * + COUNT( * ) + 72 * - 13 - - - 47
----
-990

skipif mysql # not compatible
query I rowsort label-8424
SELECT ALL + ( 91 ) + + ( + - COUNT ( * ) ) + - 76 / + - 50 + - 98 * + COUNT ( * ) + 72 * - 13 - - - 47
----
-990

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8425
SELECT - + CAST( NULL AS SIGNED ), 98 + + 46 AS col1
----
NULL
144

skipif mysql # not compatible
query II rowsort label-8425
SELECT - + CAST ( NULL AS INTEGER ), 98 + + 46 AS col1
----
NULL
144

onlyif mysql # aggregate syntax: 
query I rowsort label-8426
SELECT + 66 * COUNT( * ) AS col2
----
66

skipif mysql # not compatible
query I rowsort label-8426
SELECT + 66 * COUNT ( * ) AS col2
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-8427
SELECT ALL COUNT( * ) + + - COUNT( - 66 ) + COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8427
SELECT ALL COUNT ( * ) + + - COUNT ( - 66 ) + COUNT ( * ) AS col1
----
1

query I rowsort
SELECT ALL 23 * - 16 * 39 col0
----
-14352

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8429
SELECT + 93 DIV - COUNT( * ) + + 34 + + - 70 - - - 61 * + + 35
----
-2264

skipif mysql # not compatible
query I rowsort label-8429
SELECT + 93 / - COUNT ( * ) + + 34 + + - 70 - - - 61 * + + 35
----
-2264

onlyif mysql # aggregate syntax: 
query II rowsort label-8430
SELECT ALL - 52 * + - 88 * - 7, COUNT( * ) AS col1
----
-32032
1

skipif mysql # not compatible
query II rowsort label-8430
SELECT ALL - 52 * + - 88 * - 7, COUNT ( * ) AS col1
----
-32032
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8431
SELECT + + 47 * - + COUNT( ALL - 23 ) DIV 74
----
0

skipif mysql # not compatible
query I rowsort label-8431
SELECT + + 47 * - + COUNT ( ALL - 23 ) / 74
----
0

query I rowsort
SELECT DISTINCT + 41 * + 94
----
3854

onlyif mysql # aggregate syntax: 
query I rowsort label-8433
SELECT ALL - 66 / 75 + 99 - + + 22 + - 22 + 79 + + CASE - + 80 WHEN - + 88 THEN - 15 WHEN - COUNT( * ) THEN NULL END * 55 * - + 19 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8433
SELECT ALL - 66 / 75 + 99 - + + 22 + - 22 + 79 + + CASE - + 80 WHEN - + 88 THEN - 15 WHEN - COUNT ( * ) THEN NULL END * 55 * - + 19 AS col0
----
NULL

query I rowsort
SELECT + NULLIF ( + 57, - 77 ) AS col0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-8435
SELECT MIN( DISTINCT + 47 )
----
47

skipif mysql # not compatible
query I rowsort label-8435
SELECT MIN ( DISTINCT + 47 )
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8436
SELECT + CASE 37 WHEN + 86 THEN - COUNT( * ) WHEN + 61 * + + 54 THEN NULL END / + 62 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8436
SELECT + CASE 37 WHEN + 86 THEN - COUNT ( * ) WHEN + 61 * + + 54 THEN NULL END / + 62 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8437
SELECT ALL - - 2 DIV + 27
----
0

skipif mysql # not compatible
query I rowsort label-8437
SELECT ALL - - 2 / + 27
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8438
SELECT + 31 * - 47 * + - 58 - - 59 + + CAST( + 60 AS SIGNED ) - COALESCE ( - - MAX( DISTINCT + 10 ), - - 0 - + ( + COUNT( * ) ) )
----
84615

skipif mysql # not compatible
query I rowsort label-8438
SELECT + 31 * - 47 * + - 58 - - 59 + + CAST ( + 60 AS INTEGER ) - COALESCE ( - - MAX ( DISTINCT + 10 ), - - 0 - + ( + COUNT ( * ) ) )
----
84615

query I rowsort
SELECT - 8 - - 2 AS col0
----
-6

query I rowsort
SELECT NULLIF ( - 34, + - 60 - - 93 + + - 72 + + 62 * 26 )
----
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8441
SELECT ALL + CAST( - 45 AS SIGNED ) * 25 AS col0
----
-1125

skipif mysql # not compatible
query I rowsort label-8441
SELECT ALL + CAST ( - 45 AS INTEGER ) * 25 AS col0
----
-1125

onlyif mysql # aggregate syntax: 
query I rowsort label-8442
SELECT - 2 * - ( + SUM( - 41 ) ) AS col1
----
-82

skipif mysql # not compatible
query I rowsort label-8442
SELECT - 2 * - ( + SUM ( - 41 ) ) AS col1
----
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-8443
SELECT + 72 + - - 27 DIV + 50 AS col0
----
72

skipif mysql # not compatible
query I rowsort label-8443
SELECT + 72 + - - 27 / + 50 AS col0
----
72

query I rowsort
SELECT - 66 * 56 AS col2
----
-3696

onlyif mysql # aggregate syntax: 
query I rowsort label-8445
SELECT - COUNT( - 80 ) * - + 26 * - - 76 AS col0
----
1976

skipif mysql # not compatible
query I rowsort label-8445
SELECT - COUNT ( - 80 ) * - + 26 * - - 76 AS col0
----
1976

query I rowsort
SELECT - 30 - 32 + 7 AS col2
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-8447
SELECT ALL + MAX( ALL 56 ) * - + MIN( DISTINCT + 49 ) + + 26 AS col2
----
-2718

skipif mysql # not compatible
query I rowsort label-8447
SELECT ALL + MAX ( ALL 56 ) * - + MIN ( DISTINCT + 49 ) + + 26 AS col2
----
-2718

onlyif mysql # aggregate syntax: 
query I rowsort label-8448
SELECT - 26 * + + COUNT( * ) + + 66 AS col0
----
40

skipif mysql # not compatible
query I rowsort label-8448
SELECT - 26 * + + COUNT ( * ) + + 66 AS col0
----
40

query I rowsort
SELECT ALL + 60 * + 73 col1
----
4380

query I rowsort
SELECT - 36 * + 62
----
-2232

query II rowsort
SELECT ALL 82 * + - 73 AS col0, - 25 col0
----
-5986
-25

query II rowsort
SELECT 39, - 3 AS col1
----
39
-3

query I rowsort
SELECT ALL 0 + 63 col2
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8454
SELECT - 5 * - CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8454
SELECT - 5 * - CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 15 + + 5
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-8456
SELECT - NULLIF ( 86, - 54 * NULLIF ( + + 73, 1 / + 66 ) / - 82 ) + + SUM( + 36 )
----
-50

skipif mysql # not compatible
query I rowsort label-8456
SELECT - NULLIF ( 86, - 54 * NULLIF ( + + 73, 1 / + 66 ) / - 82 ) + + SUM ( + 36 )
----
-50

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8457
SELECT + 97 * CASE + 29 WHEN CAST( - NULLIF ( + - 80, - 71 ) AS DECIMAL ) + - 33 / + 90 THEN + + 73 ELSE NULL END + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8457
SELECT + 97 * CASE + 29 WHEN CAST ( - NULLIF ( + - 80, - 71 ) AS REAL ) + - 33 / + 90 THEN + + 73 ELSE NULL END + + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8458
SELECT ALL - COUNT( ALL + 77 ) * + - 69 col0
----
69

skipif mysql # not compatible
query I rowsort label-8458
SELECT ALL - COUNT ( ALL + 77 ) * + - 69 col0
----
69

query I rowsort
SELECT - + 42 - - 26
----
-16

query II rowsort
SELECT - 92, 2 col0
----
-92
2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8461
SELECT - 3 AS col2, 53 * + CAST( NULL AS SIGNED )
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-8461
SELECT - 3 AS col2, 53 * + CAST ( NULL AS INTEGER )
----
-3
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8462
SELECT + - ( - COUNT( * ) ) + + - 67 + - - 46 * + ( 99 ) * COUNT( * ) * - + 63
----
-286968

skipif mysql # not compatible
query I rowsort label-8462
SELECT + - ( - COUNT ( * ) ) + + - 67 + - - 46 * + ( 99 ) * COUNT ( * ) * - + 63
----
-286968

query I rowsort
SELECT - 0 * - 8
----
0

query I rowsort
SELECT + - NULLIF ( + 3, + 37 ) * + + 35 + - 0
----
-105

onlyif mysql # aggregate syntax: 
query II rowsort label-8465
SELECT - ( - - 4 ) * - MIN( + 37 ) AS col0, 75 AS col2
----
148
75

skipif mysql # not compatible
query II rowsort label-8465
SELECT - ( - - 4 ) * - MIN ( + 37 ) AS col0, 75 AS col2
----
148
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8466
SELECT - 80 + + ( - CAST( NULL AS SIGNED ) ) - 96 * + ( - COUNT( * ) ) * + + CASE 98 WHEN + + 97 THEN + NULLIF ( - 73, + 14 ) * 73 + CAST( NULL AS SIGNED ) * - ( - 58 ) + - 13 * 65 WHEN + 15 THEN NULL END - + + 38 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8466
SELECT - 80 + + ( - CAST ( NULL AS INTEGER ) ) - 96 * + ( - COUNT ( * ) ) * + + CASE 98 WHEN + + 97 THEN + NULLIF ( - 73, + 14 ) * 73 + CAST ( NULL AS INTEGER ) * - ( - 58 ) + - 13 * 65 WHEN + 15 THEN NULL END - + + 38 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8467
SELECT + CAST( + 58 AS SIGNED ) * + COUNT( * ) + - 21 * + + COUNT( * )
----
37

skipif mysql # not compatible
query I rowsort label-8467
SELECT + CAST ( + 58 AS INTEGER ) * + COUNT ( * ) + - 21 * + + COUNT ( * )
----
37

query II rowsort
SELECT DISTINCT - 30 AS col0, - 11 AS col1
----
-30
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8469
SELECT + 4 * MIN( DISTINCT 23 ) + COUNT( * ) + + COALESCE ( COUNT( DISTINCT - 44 ), - AVG ( ALL - - 15 ) DIV + - 93 * 84 - + + ( + - COUNT( * ) ), + - COUNT( * ) * 76 * 40 ) AS col1
----
94

skipif mysql # not compatible
query I rowsort label-8469
SELECT + 4 * MIN ( DISTINCT 23 ) + COUNT ( * ) + + COALESCE ( COUNT ( DISTINCT - 44 ), - AVG ( ALL - - 15 ) / + - 93 * 84 - + + ( + - COUNT ( * ) ), + - COUNT ( * ) * 76 * 40 ) AS col1
----
94

query I rowsort
SELECT DISTINCT 79 * 42
----
3318

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8471
SELECT 6 + - - NULLIF ( - - 76, 0 * - + CASE + + 22 WHEN - 43 THEN ( 12 ) * - 98 - MAX( DISTINCT - 99 ) WHEN + AVG ( ALL 41 ) * + 44 * + 62 + - 13 THEN NULL ELSE NULL END * - - 31 - CAST( NULL AS SIGNED ) + + MAX( DISTINCT - 2 ) - + CAST( + 76 AS SIGNED ) * - 15 * - 96 * + 2 + - + 47 DIV 98 ) DIV + - 22
----
3

skipif mysql # not compatible
query I rowsort label-8471
SELECT 6 + - - NULLIF ( - - 76, 0 * - + CASE + + 22 WHEN - 43 THEN ( 12 ) * - 98 - MAX ( DISTINCT - 99 ) WHEN + AVG ( ALL 41 ) * + 44 * + 62 + - 13 THEN NULL ELSE NULL END * - - 31 - CAST ( NULL AS INTEGER ) + + MAX ( DISTINCT - 2 ) - + CAST ( + 76 AS INTEGER ) * - 15 * - 96 * + 2 + - + 47 / 98 ) / + - 22
----
3

query I rowsort
SELECT ALL 90 * + 53 AS col1
----
4770

onlyif mysql # aggregate syntax: 
query I rowsort label-8473
SELECT DISTINCT - MIN( DISTINCT 30 )
----
-30

skipif mysql # not compatible
query I rowsort label-8473
SELECT DISTINCT - MIN ( DISTINCT 30 )
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8474
SELECT DISTINCT 25 * CASE - ( - 66 ) WHEN + 87 / + CAST( NULL AS SIGNED ) + + COUNT( * ) * 14 * ( - 95 ) + - 8 - - - 50 * COUNT( * ) * + 0 THEN + COUNT( DISTINCT + 28 ) WHEN + - 62 * 77 + 60 THEN + 37 ELSE NULL END, 61 - - + 60 AS col1
----
NULL
121

skipif mysql # not compatible
query II rowsort label-8474
SELECT DISTINCT 25 * CASE - ( - 66 ) WHEN + 87 / + CAST ( NULL AS INTEGER ) + + COUNT ( * ) * 14 * ( - 95 ) + - 8 - - - 50 * COUNT ( * ) * + 0 THEN + COUNT ( DISTINCT + 28 ) WHEN + - 62 * 77 + 60 THEN + 37 ELSE NULL END, 61 - - + 60 AS col1
----
NULL
121

onlyif mysql # aggregate syntax: 
query II rowsort label-8475
SELECT 96 * + 12, 11 + + + COUNT( * ) AS col2
----
1152
12

skipif mysql # not compatible
query II rowsort label-8475
SELECT 96 * + 12, 11 + + + COUNT ( * ) AS col2
----
1152
12

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8476
SELECT 64 * 64 * - 11 + NULLIF ( + 35, - - COALESCE ( - 67, + CAST( NULL AS DECIMAL ), 49 ) / 25 * COALESCE ( 85, + - 57 * + CASE - + 36 WHEN + - ( - + AVG ( + - 12 ) ) + 83 THEN - 94 END + - 22 * 89 ) * ( - MIN( ALL - - ( - - 77 ) ) ) + COUNT( * ) - 84 + COUNT( * ) / - COUNT( * ) + + + MIN( DISTINCT + 92 ) ) AS col1, NULLIF ( - 16, 86 + - COALESCE ( - 91, + 38 ) ) * - CASE - COUNT( * ) + 32 WHEN + 46 THEN NULL WHEN 8 THEN + 70 + 32 ELSE NULL END + + 84
----
-45021
NULL

skipif mysql # not compatible
query II rowsort label-8476
SELECT 64 * 64 * - 11 + NULLIF ( + 35, - - COALESCE ( - 67, + CAST ( NULL AS REAL ), 49 ) / 25 * COALESCE ( 85, + - 57 * + CASE - + 36 WHEN + - ( - + AVG ( + - 12 ) ) + 83 THEN - 94 END + - 22 * 89 ) * ( - MIN ( ALL - - ( - - 77 ) ) ) + COUNT ( * ) - 84 + COUNT ( * ) / - COUNT ( * ) + + + MIN ( DISTINCT + 92 ) ) AS col1, NULLIF ( - 16, 86 + - COALESCE ( - 91, + 38 ) ) * - CASE - COUNT ( * ) + 32 WHEN + 46 THEN NULL WHEN 8 THEN + 70 + 32 ELSE NULL END + + 84
----
-45021
NULL

query I rowsort
SELECT ALL 78 + + + 66
----
144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8478
SELECT ALL ( - 78 ) + + ( + + SUM( ALL - CAST( - 65 AS SIGNED ) ) ) + + + 39
----
26

skipif mysql # not compatible
query I rowsort label-8478
SELECT ALL ( - 78 ) + + ( + + SUM ( ALL - CAST ( - 65 AS INTEGER ) ) ) + + + 39
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-8479
SELECT - 84 * 1 * + 6 + - 23 DIV COALESCE ( + ( + 33 ), 46 DIV - ( 83 ) )
----
-504

skipif mysql # not compatible
query I rowsort label-8479
SELECT - 84 * 1 * + 6 + - 23 / COALESCE ( + ( + 33 ), 46 / - ( 83 ) )
----
-504

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8480
SELECT COUNT( * ) * 81 AS col2, ( + CAST( - CASE - - 82 WHEN - - 58 THEN NULL WHEN - - CAST( NULL AS SIGNED ) THEN NULL ELSE + 68 * + AVG ( + 96 ) + + + 12 + 72 DIV - 26 * + + COUNT( * ) + + - 97 END AS SIGNED ) ) - + 33 DIV + COUNT( * ) AS col2
----
81
-6474

skipif mysql # not compatible
query II rowsort label-8480
SELECT COUNT ( * ) * 81 AS col2, ( + CAST ( - CASE - - 82 WHEN - - 58 THEN NULL WHEN - - CAST ( NULL AS INTEGER ) THEN NULL ELSE + 68 * + AVG ( + 96 ) + + + 12 + 72 / - 26 * + + COUNT ( * ) + + - 97 END AS INTEGER ) ) - + 33 / + COUNT ( * ) AS col2
----
81
-6474

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8481
SELECT DISTINCT - CASE COALESCE ( + ( + 7 ), + + 34 ) WHEN + + 71 THEN CAST( COALESCE ( + ( MIN( ALL - 26 ) ), + 28 + - 3 ) AS SIGNED ) ELSE + ( 63 ) END + - 40 * + MIN( - 78 )
----
3057

skipif mysql # not compatible
query I rowsort label-8481
SELECT DISTINCT - CASE COALESCE ( + ( + 7 ), + + 34 ) WHEN + + 71 THEN CAST ( COALESCE ( + ( MIN ( ALL - 26 ) ), + 28 + - 3 ) AS INTEGER ) ELSE + ( 63 ) END + - 40 * + MIN ( - 78 )
----
3057

query I rowsort
SELECT ALL + 28 * - + ( - 30 )
----
840

onlyif mysql # aggregate syntax: 
query I rowsort label-8483
SELECT ALL ( 11 ) + - COUNT( * )
----
10

skipif mysql # not compatible
query I rowsort label-8483
SELECT ALL ( 11 ) + - COUNT ( * )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8484
SELECT + 40 * 84 + - + 8 + - COUNT( * ) col0
----
3351

skipif mysql # not compatible
query I rowsort label-8484
SELECT + 40 * 84 + - + 8 + - COUNT ( * ) col0
----
3351

query I rowsort
SELECT DISTINCT COALESCE ( + + 56, 47 + + - NULLIF ( - - 33, 1 * - 83 ) ) + - 48 + - 24
----
-16

query II rowsort
SELECT 62 + + + 16 * 93, - 35 AS col2
----
1550
-35

query I rowsort
SELECT DISTINCT - 11 * - + 33
----
363

query I rowsort
SELECT 99 + 6 - - 80
----
185

query I rowsort
SELECT - 39 * 11 AS col2
----
-429

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8490
SELECT + COUNT( * ) + - - CAST( - 41 AS SIGNED ) AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-8490
SELECT + COUNT ( * ) + - - CAST ( - 41 AS INTEGER ) AS col2
----
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8491
SELECT CASE - 82 WHEN + + COUNT( * ) THEN NULL ELSE + 3 END - - 12 * + 85 - - NULLIF ( - 65, + 30 DIV - 14 + 62 ) * + 0 * - - 32 * - - 25 * - 41 AS col2, + COUNT( 60 ) DIV + + 86 * - 10
----
1023
0

skipif mysql # not compatible
query II rowsort label-8491
SELECT CASE - 82 WHEN + + COUNT ( * ) THEN NULL ELSE + 3 END - - 12 * + 85 - - NULLIF ( - 65, + 30 / - 14 + 62 ) * + 0 * - - 32 * - - 25 * - 41 AS col2, + COUNT ( 60 ) / + + 86 * - 10
----
1023
0

query I rowsort
SELECT ALL NULLIF ( - 8, + 57 - - 14 ) AS col0
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8493
SELECT ALL + + 15 - - - 11 + 12 + - 22 + + - 56 - CAST( NULL AS DECIMAL ) + + 79 * + - COUNT( * ) * + + CAST( NULL AS SIGNED ) * + MIN( + 21 ) * + 22 * + 91 + + - 94 + + NULLIF ( - + ( + 19 ), AVG ( DISTINCT + - 46 ) + 13 + - + 86 / - 53 ) / - 13
----
NULL

skipif mysql # not compatible
query I rowsort label-8493
SELECT ALL + + 15 - - - 11 + 12 + - 22 + + - 56 - CAST ( NULL AS REAL ) + + 79 * + - COUNT ( * ) * + + CAST ( NULL AS INTEGER ) * + MIN ( + 21 ) * + 22 * + 91 + + - 94 + + NULLIF ( - + ( + 19 ), AVG ( DISTINCT + - 46 ) + 13 + - + 86 / - 53 ) / - 13
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8494
SELECT ALL - + 52 DIV COALESCE ( - 89, - CAST( NULL AS SIGNED ) * + - 61 - 26 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8494
SELECT ALL - + 52 / COALESCE ( - 89, - CAST ( NULL AS INTEGER ) * + - 61 - 26 ) AS col1
----
0

query I rowsort
SELECT DISTINCT - 19 * ( - 83 ) + 79
----
1656

onlyif mysql # aggregate syntax: 
query I rowsort label-8496
SELECT ALL - SUM( ALL 83 )
----
-83

skipif mysql # not compatible
query I rowsort label-8496
SELECT ALL - SUM ( ALL 83 )
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-8497
SELECT - 11 + ( - 33 ) * - ( + + ( COUNT( * ) ) ) AS col2
----
22

skipif mysql # not compatible
query I rowsort label-8497
SELECT - 11 + ( - 33 ) * - ( + + ( COUNT ( * ) ) ) AS col2
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-8498
SELECT ALL + CASE 11 WHEN 76 * - + COUNT( * ) / + AVG ( ALL + 78 ) + + 3 * - 75 * - + 63 THEN + 73 ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8498
SELECT ALL + CASE 11 WHEN 76 * - + COUNT ( * ) / + AVG ( ALL + 78 ) + + 3 * - 75 * - + 63 THEN + 73 ELSE NULL END col1
----
NULL

query I rowsort
SELECT 37 * 91
----
3367

onlyif mysql # aggregate syntax: 
query II rowsort label-8500
SELECT 17 * - 99, COUNT( * ) AS col1
----
-1683
1

skipif mysql # not compatible
query II rowsort label-8500
SELECT 17 * - 99, COUNT ( * ) AS col1
----
-1683
1

query I rowsort
SELECT DISTINCT - + 6 * 92 AS col2
----
-552

query II rowsort
SELECT DISTINCT - 83, 63 AS col0
----
-83
63

query I rowsort
SELECT 86 + - 77
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-8504
SELECT ALL - 57 AS col1, COUNT( * ) AS col2
----
-57
1

skipif mysql # not compatible
query II rowsort label-8504
SELECT ALL - 57 AS col1, COUNT ( * ) AS col2
----
-57
1

query I rowsort
SELECT 93 * - 68 * 94 * 36
----
-21400416

onlyif mysql # aggregate syntax: 
query II rowsort label-8506
SELECT + COUNT( * ) * - 66 + + 17 col1, + 6 AS col1
----
-49
6

skipif mysql # not compatible
query II rowsort label-8506
SELECT + COUNT ( * ) * - 66 + + 17 col1, + 6 AS col1
----
-49
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8507
SELECT SUM( + ( + + 94 ) ) col0
----
94

skipif mysql # not compatible
query I rowsort label-8507
SELECT SUM ( + ( + + 94 ) ) col0
----
94

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8508
SELECT COUNT( * ) AS col1, - 76 + + 59 + + 38 + + - ( - CAST( NULL AS DECIMAL ) ) + + 25 * 13 / - 38 * - 25 AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-8508
SELECT COUNT ( * ) AS col1, - 76 + + 59 + + 38 + + - ( - CAST ( NULL AS REAL ) ) + + 25 * 13 / - 38 * - 25 AS col1
----
1
NULL

query I rowsort
SELECT ALL 37 + - 20
----
17

query I rowsort
SELECT 96 * - 38 - - 64
----
-3584

onlyif mysql # aggregate syntax: 
query I rowsort label-8511
SELECT MAX( - - 27 ) AS col2
----
27

skipif mysql # not compatible
query I rowsort label-8511
SELECT MAX ( - - 27 ) AS col2
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-8512
SELECT - 80 DIV - 73 - - - ( + + ( 73 ) )
----
-72

skipif mysql # not compatible
query I rowsort label-8512
SELECT - 80 / - 73 - - - ( + + ( 73 ) )
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-8513
SELECT DISTINCT - COUNT( 37 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8513
SELECT DISTINCT - COUNT ( 37 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8514
SELECT DISTINCT + 87 + + COUNT( * )
----
88

skipif mysql # not compatible
query I rowsort label-8514
SELECT DISTINCT + 87 + + COUNT ( * )
----
88

onlyif mysql # aggregate syntax: 
query II rowsort label-8515
SELECT DISTINCT - COUNT( * ) AS col2, 11 * - MIN( ALL + 70 ) AS col1
----
-1
-770

skipif mysql # not compatible
query II rowsort label-8515
SELECT DISTINCT - COUNT ( * ) AS col2, 11 * - MIN ( ALL + 70 ) AS col1
----
-1
-770

onlyif mysql # aggregate syntax: 
query I rowsort label-8516
SELECT DISTINCT COUNT( * ) * 29 AS col1
----
29

skipif mysql # not compatible
query I rowsort label-8516
SELECT DISTINCT COUNT ( * ) * 29 AS col1
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-8517
SELECT COUNT( * ) * - 69 - + NULLIF ( 4, - 24 * + + 12 - - - 62 * - - 80 ) + - - 35 AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-8517
SELECT COUNT ( * ) * - 69 - + NULLIF ( 4, - 24 * + + 12 - - - 62 * - - 80 ) + - - 35 AS col2
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-8518
SELECT ALL CASE + 18 WHEN - 8 - 13 THEN + + 55 END * COUNT( ALL 37 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8518
SELECT ALL CASE + 18 WHEN - 8 - 13 THEN + + 55 END * COUNT ( ALL 37 ) AS col2
----
NULL

query I rowsort
SELECT 66 - 34 AS col1
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-8520
SELECT - COALESCE ( - 33, 64 + - COUNT( * ) )
----
33

skipif mysql # not compatible
query I rowsort label-8520
SELECT - COALESCE ( - 33, 64 + - COUNT ( * ) )
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-8521
SELECT ALL 23 - - - MIN( DISTINCT 7 ) * + + 63 * + ( 36 ) AS col1
----
-15853

skipif mysql # not compatible
query I rowsort label-8521
SELECT ALL 23 - - - MIN ( DISTINCT 7 ) * + + 63 * + ( 36 ) AS col1
----
-15853

onlyif mysql # aggregate syntax: 
query I rowsort label-8522
SELECT COUNT( * ) * 4 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-8522
SELECT COUNT ( * ) * 4 AS col1
----
4

query I rowsort
SELECT 81 * - NULLIF ( 49, 31 )
----
-3969

query I rowsort
SELECT - 17 * + + 50 + + 45 * 24 + + 75
----
305

query II rowsort
SELECT ALL 76, 50 * - 30 col1
----
76
-1500

onlyif mysql # aggregate syntax: 
query I rowsort label-8526
SELECT + - 90 + - COUNT( * )
----
-91

skipif mysql # not compatible
query I rowsort label-8526
SELECT + - 90 + - COUNT ( * )
----
-91

onlyif mysql # DIV for integer division: 
query II rowsort label-8527
SELECT + 22 col2, - 46 * 48 DIV 98
----
22
-22

skipif mysql # not compatible
query II rowsort label-8527
SELECT + 22 col2, - 46 * 48 / 98
----
22
-22

query I rowsort
SELECT + + 15 + 24
----
39

query I rowsort
SELECT + - 40 * 99
----
-3960

query I rowsort
SELECT - - 35 * 17 AS col0
----
595

query I rowsort
SELECT + 48 + + 62
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-8532
SELECT - CASE + + 13 WHEN 68 THEN + 15 * 38 + - 88 WHEN SUM( + - 70 ) + 77 THEN NULL WHEN + - 54 THEN - COUNT( 7 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8532
SELECT - CASE + + 13 WHEN 68 THEN + 15 * 38 + - 88 WHEN SUM ( + - 70 ) + 77 THEN NULL WHEN + - 54 THEN - COUNT ( 7 ) ELSE NULL END
----
NULL

query I rowsort
SELECT - 62 + - 45
----
-107

query I rowsort
SELECT - 75 + + - 30
----
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-8535
SELECT ALL COALESCE ( 59, + - ( - COUNT( * ) ) * + 37 * COUNT( * ) + - 25 + + 50, + 24 * - NULLIF ( - 63, - 90 * 49 + + 72 * + - COUNT( * ) ) + 38 ) * - ( - 39 ) * + + 22
----
50622

skipif mysql # not compatible
query I rowsort label-8535
SELECT ALL COALESCE ( 59, + - ( - COUNT ( * ) ) * + 37 * COUNT ( * ) + - 25 + + 50, + 24 * - NULLIF ( - 63, - 90 * 49 + + 72 * + - COUNT ( * ) ) + 38 ) * - ( - 39 ) * + + 22
----
50622

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8536
SELECT - 89 + 37 * MAX( DISTINCT + + COALESCE ( + 90, + ( - 71 ) DIV - + 50 + 18, - 86 - - 53 * - 92 + - - 76 ) ) DIV - 45
----
-163

skipif mysql # not compatible
query I rowsort label-8536
SELECT - 89 + 37 * MAX ( DISTINCT + + COALESCE ( + 90, + ( - 71 ) / - + 50 + 18, - 86 - - 53 * - 92 + - - 76 ) ) / - 45
----
-163

onlyif mysql # aggregate syntax: 
query I rowsort label-8537
SELECT ALL - 88 + + + 89 + COUNT( DISTINCT + 84 ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-8537
SELECT ALL - 88 + + + 89 + COUNT ( DISTINCT + 84 ) AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8538
SELECT ALL ( - ( COUNT( * ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-8538
SELECT ALL ( - ( COUNT ( * ) ) )
----
-1

query I rowsort
SELECT + + 14 + + 57
----
71

query I rowsort
SELECT ( - + CASE + 48 WHEN + 50 THEN NULL ELSE 38 END ) AS col2
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-8541
SELECT 0 * - 83 + 79 * + + CASE - AVG ( - 32 ) WHEN - 43 THEN NULL WHEN - 5 THEN - 22 END * 17 - + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8541
SELECT 0 * - 83 + 79 * + + CASE - AVG ( - 32 ) WHEN - 43 THEN NULL WHEN - 5 THEN - 22 END * 17 - + + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8542
SELECT ( + + COUNT( * ) ) col1
----
1

skipif mysql # not compatible
query I rowsort label-8542
SELECT ( + + COUNT ( * ) ) col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8543
SELECT ALL - 91 * 23 + + MIN( - 83 ) col0
----
-2176

skipif mysql # not compatible
query I rowsort label-8543
SELECT ALL - 91 * 23 + + MIN ( - 83 ) col0
----
-2176

query I rowsort
SELECT - 43 + - 45 + - 26
----
-114

onlyif mysql # aggregate syntax: 
query I rowsort label-8545
SELECT + MIN( - 58 ) col0
----
-58

skipif mysql # not compatible
query I rowsort label-8545
SELECT + MIN ( - 58 ) col0
----
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-8546
SELECT ALL - COUNT( * ) * 30 AS col1, 78 * - + 22 AS col1
----
-30
-1716

skipif mysql # not compatible
query II rowsort label-8546
SELECT ALL - COUNT ( * ) * 30 AS col1, 78 * - + 22 AS col1
----
-30
-1716

query I rowsort
SELECT NULLIF ( + 3, - 54 ) AS col1
----
3

query I rowsort
SELECT ALL - 14 * + - 89 + + 59 AS col2
----
1305

onlyif mysql # aggregate syntax: 
query I rowsort label-8549
SELECT NULLIF ( - ( + + 10 ), + NULLIF ( + + COUNT( ALL + + 5 ), - SUM( 70 ) ) ) AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-8549
SELECT NULLIF ( - ( + + 10 ), + NULLIF ( + + COUNT ( ALL + + 5 ), - SUM ( 70 ) ) ) AS col2
----
-10

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8550
SELECT ALL - CAST( NULL AS DECIMAL ) * + - 22 AS col2, 38
----
NULL
38

skipif mysql # not compatible
query II rowsort label-8550
SELECT ALL - CAST ( NULL AS REAL ) * + - 22 AS col2, 38
----
NULL
38

onlyif mysql # aggregate syntax: 
query I rowsort label-8551
SELECT 38 * + COUNT( * ) * + 17 + + + MAX( ALL ( - 65 ) )
----
581

skipif mysql # not compatible
query I rowsort label-8551
SELECT 38 * + COUNT ( * ) * + 17 + + + MAX ( ALL ( - 65 ) )
----
581

onlyif mysql # aggregate syntax: 
query I rowsort label-8552
SELECT - 53 * + - 23 * - COUNT( * ) * - COUNT( DISTINCT - + 73 ) * + 90
----
109710

skipif mysql # not compatible
query I rowsort label-8552
SELECT - 53 * + - 23 * - COUNT ( * ) * - COUNT ( DISTINCT - + 73 ) * + 90
----
109710

onlyif mysql # aggregate syntax: 
query II rowsort label-8553
SELECT + COALESCE ( + 51, - - 24, - 69 + 24 ) AS col1, + 95 + 24 * 69 * ( + COUNT( 49 ) ) + - 25
----
51
1726

skipif mysql # not compatible
query II rowsort label-8553
SELECT + COALESCE ( + 51, - - 24, - 69 + 24 ) AS col1, + 95 + 24 * 69 * ( + COUNT ( 49 ) ) + - 25
----
51
1726

onlyif mysql # aggregate syntax: 
query I rowsort label-8554
SELECT ALL 17 * - + MAX( + 98 ) * - + 14 AS col1
----
23324

skipif mysql # not compatible
query I rowsort label-8554
SELECT ALL 17 * - + MAX ( + 98 ) * - + 14 AS col1
----
23324

onlyif mysql # DIV for integer division: 
query I rowsort label-8555
SELECT ALL + 93 DIV + 96 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8555
SELECT ALL + 93 / + 96 AS col2
----
0

query I rowsort
SELECT ALL ( + ( + - 67 ) ) AS col1
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-8557
SELECT ALL + COUNT( * ) * + 97 - + 53 * + 16
----
-751

skipif mysql # not compatible
query I rowsort label-8557
SELECT ALL + COUNT ( * ) * + 97 - + 53 * + 16
----
-751

query I rowsort
SELECT + - 30 * + 5
----
-150

query I rowsort
SELECT - + 19 * - 63 AS col2
----
1197

onlyif mysql # DIV for integer division: 
query I rowsort label-8560
SELECT + + 85 * + ( - 82 ) + + CASE + 4 WHEN 63 THEN NULL ELSE + 67 END + - 7 + + + 41 + 19 DIV - - 39
----
-6869

skipif mysql # not compatible
query I rowsort label-8560
SELECT + + 85 * + ( - 82 ) + + CASE + 4 WHEN 63 THEN NULL ELSE + 67 END + - 7 + + + 41 + 19 / - - 39
----
-6869

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8561
SELECT + - CAST( NULL AS DECIMAL ) + 99 + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8561
SELECT + - CAST ( NULL AS REAL ) + 99 + + COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8562
SELECT + + 69 DIV - - 42 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8562
SELECT + + 69 / - - 42 AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8563
SELECT + SUM( DISTINCT - + CAST( + + ( - 74 ) AS SIGNED ) ) + ( - 58 ) AS col1
----
16

skipif mysql # not compatible
query I rowsort label-8563
SELECT + SUM ( DISTINCT - + CAST ( + + ( - 74 ) AS INTEGER ) ) + ( - 58 ) AS col1
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-8564
SELECT DISTINCT - 42 DIV COALESCE ( 71, + 51, + 67 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8564
SELECT DISTINCT - 42 / COALESCE ( 71, + 51, + 67 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8565
SELECT DISTINCT - 31 + + - MIN( - + 36 ) AS col2
----
5

skipif mysql # not compatible
query I rowsort label-8565
SELECT DISTINCT - 31 + + - MIN ( - + 36 ) AS col2
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8566
SELECT ALL CAST( - - 80 AS SIGNED ) DIV SUM( - + 8 ) AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-8566
SELECT ALL CAST ( - - 80 AS INTEGER ) / SUM ( - + 8 ) AS col1
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8567
SELECT + 59 DIV 72 + - - MAX( DISTINCT + - 41 ) * + MAX( DISTINCT CAST( + 3 AS SIGNED ) )
----
-123

skipif mysql # not compatible
query I rowsort label-8567
SELECT + 59 / 72 + - - MAX ( DISTINCT + - 41 ) * + MAX ( DISTINCT CAST ( + 3 AS INTEGER ) )
----
-123

query I rowsort
SELECT ALL - + 81 + + 43 AS col2
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8569
SELECT - CAST( - - 52 AS SIGNED )
----
-52

skipif mysql # not compatible
query I rowsort label-8569
SELECT - CAST ( - - 52 AS INTEGER )
----
-52

query I rowsort
SELECT DISTINCT ( 68 ) col1
----
68

query I rowsort
SELECT + NULLIF ( + + 14, + + 43 )
----
14

query I rowsort
SELECT + + 68 * + 71 AS col2
----
4828

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8573
SELECT - + 62 * - - COUNT( * ) * - COALESCE ( - + 79, - COALESCE ( - 8, + + 28 * - 46 + + 57 + CAST( 37 AS SIGNED ) + 19 * 86 * - COUNT( * ) ), - CAST( + 88 AS SIGNED ) ) AS col1
----
-4898

skipif mysql # not compatible
query I rowsort label-8573
SELECT - + 62 * - - COUNT ( * ) * - COALESCE ( - + 79, - COALESCE ( - 8, + + 28 * - 46 + + 57 + CAST ( 37 AS INTEGER ) + 19 * 86 * - COUNT ( * ) ), - CAST ( + 88 AS INTEGER ) ) AS col1
----
-4898

onlyif mysql # aggregate syntax: 
query I rowsort label-8574
SELECT ALL MIN( DISTINCT 68 ) + - 15 + 38 * - 32 AS col2
----
-1163

skipif mysql # not compatible
query I rowsort label-8574
SELECT ALL MIN ( DISTINCT 68 ) + - 15 + 38 * - 32 AS col2
----
-1163

onlyif mysql # aggregate syntax: 
query I rowsort label-8575
SELECT ( - MAX( ALL - + 18 ) ) AS col0
----
18

skipif mysql # not compatible
query I rowsort label-8575
SELECT ( - MAX ( ALL - + 18 ) ) AS col0
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8576
SELECT DISTINCT COALESCE ( 31, 12 - 83, - 50 ) AS col0, + COALESCE ( 55, - + NULLIF ( - 10, - COUNT( + 14 ) + - ( - 6 ) + + - 27 * - COUNT( * ) - + 72 ) + 51 * COUNT( * ), + 94, NULLIF ( 46, 58 * - ( - COUNT( * ) ) + + - 98 ) + + 80 + - - COUNT( * ) * 26 * + + 17 ) DIV SUM( - ( - 29 ) )
----
31
1

skipif mysql # not compatible
query II rowsort label-8576
SELECT DISTINCT COALESCE ( 31, 12 - 83, - 50 ) AS col0, + COALESCE ( 55, - + NULLIF ( - 10, - COUNT ( + 14 ) + - ( - 6 ) + + - 27 * - COUNT ( * ) - + 72 ) + 51 * COUNT ( * ), + 94, NULLIF ( 46, 58 * - ( - COUNT ( * ) ) + + - 98 ) + + 80 + - - COUNT ( * ) * 26 * + + 17 ) / SUM ( - ( - 29 ) )
----
31
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8577
SELECT DISTINCT 66 + 53 DIV + 58 AS col1
----
66

skipif mysql # not compatible
query I rowsort label-8577
SELECT DISTINCT 66 + 53 / + 58 AS col1
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8578
SELECT DISTINCT - CAST( - 67 AS SIGNED ) / + ( 39 ) + - 65 + - 89 + - CASE - 53 WHEN CAST( NULL AS SIGNED ) + 64 * + 47 + - 63 THEN - + 24 END + + 15 * - 85 * + MIN( CAST( NULL AS DECIMAL ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8578
SELECT DISTINCT - CAST ( - 67 AS INTEGER ) / + ( 39 ) + - 65 + - 89 + - CASE - 53 WHEN CAST ( NULL AS INTEGER ) + 64 * + 47 + - 63 THEN - + 24 END + + 15 * - 85 * + MIN ( CAST ( NULL AS REAL ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8579
SELECT DISTINCT + SUM( - 23 ) col0
----
-23

skipif mysql # not compatible
query I rowsort label-8579
SELECT DISTINCT + SUM ( - 23 ) col0
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8580
SELECT ALL ( + 39 ) / + CAST( NULL AS SIGNED ) / - ( + - 62 ) - COUNT( DISTINCT 14 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8580
SELECT ALL ( + 39 ) / + CAST ( NULL AS INTEGER ) / - ( + - 62 ) - COUNT ( DISTINCT 14 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8581
SELECT - MAX( ALL + 65 ) * COUNT( ALL - 69 ) * + - COUNT( * ) - - + 26 + - 86 DIV 26 * - COUNT( * ) + - - 48 + + COUNT( * ) * + - COUNT( * )
----
141

skipif mysql # not compatible
query I rowsort label-8581
SELECT - MAX ( ALL + 65 ) * COUNT ( ALL - 69 ) * + - COUNT ( * ) - - + 26 + - 86 / 26 * - COUNT ( * ) + - - 48 + + COUNT ( * ) * + - COUNT ( * )
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-8582
SELECT ALL + COUNT( DISTINCT - + 22 )
----
1

skipif mysql # not compatible
query I rowsort label-8582
SELECT ALL + COUNT ( DISTINCT - + 22 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8583
SELECT CAST( 10 AS SIGNED ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-8583
SELECT CAST ( 10 AS INTEGER ) AS col2
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8584
SELECT ALL COUNT( * ) / - MAX( 77 ) - + ( + CASE 99 WHEN + 34 THEN + ( - 83 ) WHEN - - AVG ( DISTINCT + 22 ) THEN NULL ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-8584
SELECT ALL COUNT ( * ) / - MAX ( 77 ) - + ( + CASE 99 WHEN + 34 THEN + ( - 83 ) WHEN - - AVG ( DISTINCT + 22 ) THEN NULL ELSE NULL END )
----
NULL

query II rowsort
SELECT - ( - COALESCE ( 58, - 54 - - - 92, - + 68 * - + 14 + - ( 81 ) * + - 52 ) ) * - 10 AS col2, 16 * 6 + - 10 * + 39 * + + NULLIF ( - 9, ( + ( + 2 ) ) * + 45 )
----
-580
3606

query I rowsort
SELECT ALL - 97 * - + 45 AS col0
----
4365

query II rowsort
SELECT DISTINCT + 88 AS col1, - ( - 99 ) + 14
----
88
113

query I rowsort
SELECT - 23 * + 36 AS col0
----
-828

query I rowsort
SELECT 65 + 49 * CASE + + 97 WHEN - 69 + 44 THEN + ( 21 ) + 13 WHEN 91 THEN NULL ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL + 7 * - 81 AS col1
----
-567

onlyif mysql # DIV for integer division: 
query I rowsort label-8591
SELECT DISTINCT - 52 * 0 DIV - 60 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8591
SELECT DISTINCT - 52 * 0 / - 60 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8592
SELECT COUNT( DISTINCT + + 99 ) + + 97 col0
----
98

skipif mysql # not compatible
query I rowsort label-8592
SELECT COUNT ( DISTINCT + + 99 ) + + 97 col0
----
98

query II rowsort
SELECT 82 - + 1 + 93 AS col1, - 43
----
174
-43

query I rowsort
SELECT DISTINCT + ( - + 9 ) AS col1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8595
SELECT ALL + 13 + NULLIF ( - 27, + NULLIF ( + - 69, - 35 * 59 + ( - 92 ) - + - COUNT( * ) - 42 ) )
----
-14

skipif mysql # not compatible
query I rowsort label-8595
SELECT ALL + 13 + NULLIF ( - 27, + NULLIF ( + - 69, - 35 * 59 + ( - 92 ) - + - COUNT ( * ) - 42 ) )
----
-14

query II rowsort
SELECT + 30 * ( + 54 ) AS col2, 46
----
1620
46

query I rowsort
SELECT ALL + ( - - 4 ) + - ( + + 23 ) - + + 4 + 99
----
76

query I rowsort
SELECT ALL 97 + - 50
----
47

query I rowsort
SELECT - 24 + + 44 * ( + 89 ) - - 28 col1
----
3920

onlyif mysql # aggregate syntax: 
query I rowsort label-8600
SELECT ALL 63 + + COUNT( DISTINCT 58 ) * - + 10
----
53

skipif mysql # not compatible
query I rowsort label-8600
SELECT ALL 63 + + COUNT ( DISTINCT 58 ) * - + 10
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8601
SELECT 32 AS col0, + CAST( NULL AS SIGNED ) AS col0
----
32
NULL

skipif mysql # not compatible
query II rowsort label-8601
SELECT 32 AS col0, + CAST ( NULL AS INTEGER ) AS col0
----
32
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8602
SELECT 94 + + 10 + - NULLIF ( - - 99, - COUNT( 88 ) ) + + + 73 AS col1
----
78

skipif mysql # not compatible
query I rowsort label-8602
SELECT 94 + + 10 + - NULLIF ( - - 99, - COUNT ( 88 ) ) + + + 73 AS col1
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-8603
SELECT - NULLIF ( 67, + 55 + - - COUNT( * ) + 19 - + - ( 2 ) ) col2
----
-67

skipif mysql # not compatible
query I rowsort label-8603
SELECT - NULLIF ( 67, + 55 + - - COUNT ( * ) + 19 - + - ( 2 ) ) col2
----
-67

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8604
SELECT DISTINCT - COUNT( ALL - - CAST( NULL AS DECIMAL ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8604
SELECT DISTINCT - COUNT ( ALL - - CAST ( NULL AS REAL ) ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8605
SELECT ALL - 0 + 45 * - COUNT( * ) * + 12 * 91 AS col2
----
-49140

skipif mysql # not compatible
query I rowsort label-8605
SELECT ALL - 0 + 45 * - COUNT ( * ) * + 12 * 91 AS col2
----
-49140

onlyif mysql # aggregate syntax: 
query I rowsort label-8606
SELECT COALESCE ( + 66, + COUNT( * ) * 95 ) + - + ( + 53 ) + - 61
----
-48

skipif mysql # not compatible
query I rowsort label-8606
SELECT COALESCE ( + 66, + COUNT ( * ) * 95 ) + - + ( + 53 ) + - 61
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-8607
SELECT ALL 7 - NULLIF ( + SUM( 3 ), + - 5 ) AS col1
----
4

skipif mysql # not compatible
query I rowsort label-8607
SELECT ALL 7 - NULLIF ( + SUM ( 3 ), + - 5 ) AS col1
----
4

query II rowsort
SELECT DISTINCT 68 AS col0, 78
----
68
78

query I rowsort
SELECT ALL - 37 - + 18 AS col2
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-8610
SELECT 47 + SUM( ( 39 ) ) + - 43 * - ( - 70 ) * - + 96 AS col2
----
289046

skipif mysql # not compatible
query I rowsort label-8610
SELECT 47 + SUM ( ( 39 ) ) + - 43 * - ( - 70 ) * - + 96 AS col2
----
289046

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8611
SELECT CAST( - 73 AS SIGNED ) + 74
----
1

skipif mysql # not compatible
query I rowsort label-8611
SELECT CAST ( - 73 AS INTEGER ) + 74
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8612
SELECT 74 DIV + COUNT( * ) + COUNT( * )
----
75

skipif mysql # not compatible
query I rowsort label-8612
SELECT 74 / + COUNT ( * ) + COUNT ( * )
----
75

query I rowsort
SELECT DISTINCT 6 * - - 81 * - 70 AS col0
----
-34020

onlyif mysql # aggregate syntax: 
query I rowsort label-8614
SELECT ( + COUNT( * ) ) * + 35 + - 98 + 28 * 72 * + + 96
----
193473

skipif mysql # not compatible
query I rowsort label-8614
SELECT ( + COUNT ( * ) ) * + 35 + - 98 + 28 * 72 * + + 96
----
193473

query I rowsort
SELECT ALL + 65 * + 31
----
2015

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8616
SELECT DISTINCT CAST( - 61 AS SIGNED ) * + 58 col0
----
-3538

skipif mysql # not compatible
query I rowsort label-8616
SELECT DISTINCT CAST ( - 61 AS INTEGER ) * + 58 col0
----
-3538

onlyif mysql # DIV for integer division: 
query II rowsort label-8617
SELECT ALL - 91, - 88 DIV - - 34 col0
----
-91
-2

skipif mysql # not compatible
query II rowsort label-8617
SELECT ALL - 91, - 88 / - - 34 col0
----
-91
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-8618
SELECT + 96 AS col2, MIN( + ( + - 58 ) ) AS col1, + CAST( - + 9 AS SIGNED )
----
96
-58
-9

skipif mysql # not compatible
query III rowsort label-8618
SELECT + 96 AS col2, MIN ( + ( + - 58 ) ) AS col1, + CAST ( - + 9 AS INTEGER )
----
96
-58
-9

query II rowsort
SELECT + 7 AS col0, + 54
----
7
54

onlyif mysql # aggregate syntax: 
query I rowsort label-8620
SELECT - 39 + SUM( - 11 ) AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-8620
SELECT - 39 + SUM ( - 11 ) AS col2
----
-50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8621
SELECT - + 33 * - - 78 + + COUNT( 1 ) DIV - 91
----
-2574

skipif mysql # not compatible
query I rowsort label-8621
SELECT - + 33 * - - 78 + + COUNT ( 1 ) / - 91
----
-2574

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8622
SELECT ALL - - ( - - CAST( 29 AS SIGNED ) ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-8622
SELECT ALL - - ( - - CAST ( 29 AS INTEGER ) ) AS col2
----
29

query I rowsort
SELECT ALL - + ( + 76 ) AS col0
----
-76

query I rowsort
SELECT 61 + 11 AS col2
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-8625
SELECT ALL - + COUNT( + 81 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8625
SELECT ALL - + COUNT ( + 81 ) AS col0
----
-1

query I rowsort
SELECT ALL - + 9 + 97 AS col1
----
88

onlyif mysql # aggregate syntax: 
query II rowsort label-8627
SELECT NULLIF ( + 46, + - MIN( + 89 ) ), - COUNT( * ) AS col2
----
46
-1

skipif mysql # not compatible
query II rowsort label-8627
SELECT NULLIF ( + 46, + - MIN ( + 89 ) ), - COUNT ( * ) AS col2
----
46
-1

query I rowsort
SELECT - + 46 * 91 + - + 73 + + + 11 + - 78 + + 81 * 46 * - 10 AS col0
----
-41586

onlyif mysql # DIV for integer division: 
query II rowsort label-8629
SELECT DISTINCT + 4 col0, 1 DIV - 4
----
4
0

skipif mysql # not compatible
query II rowsort label-8629
SELECT DISTINCT + 4 col0, 1 / - 4
----
4
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8630
SELECT + NULLIF ( - CAST( - CAST( ( - 44 ) AS DECIMAL ) AS SIGNED ), 13 * 12 - + - NULLIF ( + - 32, + COUNT( * ) / - 67 + 77 ) + 56 * + 81 * 97 ) * + 69 col0
----
-3036

skipif mysql # not compatible
query I rowsort label-8630
SELECT + NULLIF ( - CAST ( - CAST ( ( - 44 ) AS REAL ) AS INTEGER ), 13 * 12 - + - NULLIF ( + - 32, + COUNT ( * ) / - 67 + 77 ) + 56 * + 81 * 97 ) * + 69 col0
----
-3036

query I rowsort
SELECT DISTINCT 79 - 67
----
12

query I rowsort
SELECT 37 * + 63
----
2331

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8633
SELECT DISTINCT - 96 DIV COUNT( * ) AS col1, 28 DIV + + 36 - - 12
----
-96
12

skipif mysql # not compatible
query II rowsort label-8633
SELECT DISTINCT - 96 / COUNT ( * ) AS col1, 28 / + + 36 - - 12
----
-96
12

onlyif mysql # aggregate syntax: 
query I rowsort label-8634
SELECT ALL SUM( ALL - 92 )
----
-92

skipif mysql # not compatible
query I rowsort label-8634
SELECT ALL SUM ( ALL - 92 )
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-8635
SELECT 50 * + COUNT( * ) * 43 AS col1
----
2150

skipif mysql # not compatible
query I rowsort label-8635
SELECT 50 * + COUNT ( * ) * 43 AS col1
----
2150

onlyif mysql # aggregate syntax: 
query I rowsort label-8636
SELECT DISTINCT CASE + + 66 WHEN - 35 THEN NULL ELSE - COUNT( * ) * 74 + - + 85 + - COUNT( * ) END AS col1
----
-160

skipif mysql # not compatible
query I rowsort label-8636
SELECT DISTINCT CASE + + 66 WHEN - 35 THEN NULL ELSE - COUNT ( * ) * 74 + - + 85 + - COUNT ( * ) END AS col1
----
-160

onlyif mysql # aggregate syntax: 
query I rowsort label-8637
SELECT 40 * + COUNT( ALL - + 25 ) col0
----
40

skipif mysql # not compatible
query I rowsort label-8637
SELECT 40 * + COUNT ( ALL - + 25 ) col0
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-8638
SELECT DISTINCT 59 DIV 92
----
0

skipif mysql # not compatible
query I rowsort label-8638
SELECT DISTINCT 59 / 92
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8639
SELECT DISTINCT + SUM( DISTINCT + - 66 ), - 77 AS col1
----
-66
-77

skipif mysql # not compatible
query II rowsort label-8639
SELECT DISTINCT + SUM ( DISTINCT + - 66 ), - 77 AS col1
----
-66
-77

query I rowsort
SELECT ALL 94 * + 30 AS col2
----
2820

onlyif mysql # DIV for integer division: 
query I rowsort label-8641
SELECT ALL 6 DIV - 65 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8641
SELECT ALL 6 / - 65 AS col0
----
0

onlyif mysql # aggregate syntax: 
query III rowsort label-8642
SELECT + COUNT( ALL + + 12 ) AS col1, - 70 AS col2, MIN( ALL + - 17 ) AS col0
----
1
-70
-17

skipif mysql # not compatible
query III rowsort label-8642
SELECT + COUNT ( ALL + + 12 ) AS col1, - 70 AS col2, MIN ( ALL + - 17 ) AS col0
----
1
-70
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-8643
SELECT CASE - + NULLIF ( 47, 27 / + 11 - NULLIF ( AVG ( ALL 25 ), - - 22 ) + COUNT( ALL 62 ) * - ( MIN( ALL + NULLIF ( 86, 13 ) ) ) ) WHEN 89 THEN NULL ELSE + ( - 34 ) * + + NULLIF ( 6, + 79 * - 71 * + 42 + + NULLIF ( - COUNT( * ), + NULLIF ( - + 51, - + 59 ) * - 84 * + 60 / 48 * 89 + 94 ) / - + COUNT( * ) ) END
----
-204

skipif mysql # not compatible
query I rowsort label-8643
SELECT CASE - + NULLIF ( 47, 27 / + 11 - NULLIF ( AVG ( ALL 25 ), - - 22 ) + COUNT ( ALL 62 ) * - ( MIN ( ALL + NULLIF ( 86, 13 ) ) ) ) WHEN 89 THEN NULL ELSE + ( - 34 ) * + + NULLIF ( 6, + 79 * - 71 * + 42 + + NULLIF ( - COUNT ( * ), + NULLIF ( - + 51, - + 59 ) * - 84 * + 60 / 48 * 89 + 94 ) / - + COUNT ( * ) ) END
----
-204

onlyif mysql # aggregate syntax: 
query I rowsort label-8644
SELECT MIN( ALL - 0 )
----
0

skipif mysql # not compatible
query I rowsort label-8644
SELECT MIN ( ALL - 0 )
----
0

query I rowsort
SELECT ALL 73 * + 98 - - 11
----
7165

onlyif mysql # aggregate syntax: 
query I rowsort label-8646
SELECT DISTINCT + + MIN( + - 12 ) AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-8646
SELECT DISTINCT + + MIN ( + - 12 ) AS col0
----
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8647
SELECT + + 32 + 82 + + + 45 DIV - COUNT( * )
----
69

skipif mysql # not compatible
query I rowsort label-8647
SELECT + + 32 + 82 + + + 45 / - COUNT ( * )
----
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8648
SELECT ALL 7 * + + SUM( ALL + - 99 ) + 20 DIV + 5 + - COUNT( * )
----
-690

skipif mysql # not compatible
query I rowsort label-8648
SELECT ALL 7 * + + SUM ( ALL + - 99 ) + 20 / + 5 + - COUNT ( * )
----
-690

query I rowsort
SELECT + + ( - 95 )
----
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-8650
SELECT - - 25 DIV + 94 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8650
SELECT - - 25 / + 94 AS col0
----
0

query I rowsort
SELECT DISTINCT + 35 * 73 + + 37 col0
----
2592

query I rowsort
SELECT + + 81 * - 26 AS col1
----
-2106

onlyif mysql # aggregate syntax: 
query I rowsort label-8653
SELECT ALL COUNT( ALL + + 9 )
----
1

skipif mysql # not compatible
query I rowsort label-8653
SELECT ALL COUNT ( ALL + + 9 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8654
SELECT DISTINCT - + 32 * + + MIN( ALL 62 )
----
-1984

skipif mysql # not compatible
query I rowsort label-8654
SELECT DISTINCT - + 32 * + + MIN ( ALL 62 )
----
-1984

query I rowsort
SELECT DISTINCT ( - + 54 )
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-8656
SELECT ALL COALESCE ( + COUNT( * ), - ( + 5 ) + + - 3 + 95, ( - 4 ), + 92 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8656
SELECT ALL COALESCE ( + COUNT ( * ), - ( + 5 ) + + - 3 + 95, ( - 4 ), + 92 ) AS col1
----
1

query I rowsort
SELECT - 37 + 76 AS col0
----
39

onlyif mysql # aggregate syntax: 
query II rowsort label-8658
SELECT 13 AS col2, + COUNT( DISTINCT + ( + 65 ) )
----
13
1

skipif mysql # not compatible
query II rowsort label-8658
SELECT 13 AS col2, + COUNT ( DISTINCT + ( + 65 ) )
----
13
1

query II rowsort
SELECT 48 AS col1, - 83 * + 92
----
48
-7636

query I rowsort
SELECT ALL ( + + 91 )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8661
SELECT - COUNT( * ) + - + COUNT( * ) + + 67 + - 39 AS col1
----
26

skipif mysql # not compatible
query I rowsort label-8661
SELECT - COUNT ( * ) + - + COUNT ( * ) + + 67 + - 39 AS col1
----
26

query I rowsort
SELECT ALL - 38 * 4 AS col1
----
-152

query I rowsort
SELECT ALL - 48 + - 37 AS col2
----
-85

query I rowsort
SELECT DISTINCT ( - - 28 )
----
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8665
SELECT - COUNT( * ) DIV + + 38
----
0

skipif mysql # not compatible
query I rowsort label-8665
SELECT - COUNT ( * ) / + + 38
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8666
SELECT DISTINCT 27 DIV + COALESCE ( - 73, + SUM( - 67 ) ) + - 3 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-8666
SELECT DISTINCT 27 / + COALESCE ( - 73, + SUM ( - 67 ) ) + - 3 AS col2
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8667
SELECT ALL 96 DIV - CASE 87 WHEN - + 61 THEN 59 + + - COUNT( * ) WHEN + - CASE 59 WHEN + 26 * + 49 + - ( 74 ) + + + NULLIF ( 65, NULLIF ( + - NULLIF ( 16, + 22 + - - 14 + - ( - - 16 ) ), - - 31 ) DIV + 44 ) THEN NULL WHEN - COUNT( * ) THEN 13 * - - 63 END * - 50 * + - ( - + COALESCE ( 94, - 76 + + 71 ) ) * - 43 DIV + 22 THEN - 70 ELSE - COUNT( * ) DIV + 95 + - 25 * + 1 END + - ( + + COUNT( * ) ) DIV + 58 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-8667
SELECT ALL 96 / - CASE 87 WHEN - + 61 THEN 59 + + - COUNT ( * ) WHEN + - CASE 59 WHEN + 26 * + 49 + - ( 74 ) + + + NULLIF ( 65, NULLIF ( + - NULLIF ( 16, + 22 + - - 14 + - ( - - 16 ) ), - - 31 ) / + 44 ) THEN NULL WHEN - COUNT ( * ) THEN 13 * - - 63 END * - 50 * + - ( - + COALESCE ( 94, - 76 + + 71 ) ) * - 43 / + 22 THEN - 70 ELSE - COUNT ( * ) / + 95 + - 25 * + 1 END + - ( + + COUNT ( * ) ) / + 58 AS col1
----
3

query I rowsort
SELECT DISTINCT + + 68 * + 5 + 53 * + - 81 + 58 + 10 + + 35 * + + 76 * 3 * 45
----
355215

onlyif mysql # DIV for integer division: 
query I rowsort label-8669
SELECT ALL 27 DIV - 55
----
0

skipif mysql # not compatible
query I rowsort label-8669
SELECT ALL 27 / - 55
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8670
SELECT ALL 18 DIV + + ( + 96 ) + - 37
----
-37

skipif mysql # not compatible
query I rowsort label-8670
SELECT ALL 18 / + + ( + 96 ) + - 37
----
-37

query I rowsort
SELECT + + NULLIF ( + - 92, - 0 / + - 63 + + + 1 ) AS col0
----
-92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8672
SELECT ALL + 3 DIV + - NULLIF ( 31, + 16 + - 0 ) * + 49 + 50 * - 51 + + - COUNT( * ) AS col2
----
-2551

skipif mysql # not compatible
query I rowsort label-8672
SELECT ALL + 3 / + - NULLIF ( 31, + 16 + - 0 ) * + 49 + 50 * - 51 + + - COUNT ( * ) AS col2
----
-2551

onlyif mysql # DIV for integer division: 
query I rowsort label-8673
SELECT - - 76 DIV + 69 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8673
SELECT - - 76 / + 69 AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8674
SELECT + COUNT( * ) AS col1, - 58 col0
----
1
-58

skipif mysql # not compatible
query II rowsort label-8674
SELECT + COUNT ( * ) AS col1, - 58 col0
----
1
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8675
SELECT + 32 + + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8675
SELECT + 32 + + CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8676
SELECT ALL + CAST( 78 AS SIGNED )
----
78

skipif mysql # not compatible
query I rowsort label-8676
SELECT ALL + CAST ( 78 AS INTEGER )
----
78

query II rowsort
SELECT 1, - 42 + - + 82 AS col0
----
1
-124

query I rowsort
SELECT ALL 73 * 27 * - - 88 AS col2
----
173448

query I rowsort
SELECT + 12 + + 22 + - ( - 37 )
----
71

query II rowsort
SELECT DISTINCT 61 AS col0, - 32
----
61
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-8681
SELECT + + COUNT( - 85 ) + 71 + - - 49 * 51
----
2571

skipif mysql # not compatible
query I rowsort label-8681
SELECT + + COUNT ( - 85 ) + 71 + - - 49 * 51
----
2571

onlyif mysql # aggregate syntax: 
query I rowsort label-8682
SELECT - COUNT( DISTINCT - 50 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8682
SELECT - COUNT ( DISTINCT - 50 ) AS col2
----
-1

query I rowsort
SELECT - 67 + 12
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-8684
SELECT + 37 * NULLIF ( - 38, - - 80 * - COUNT( * ) )
----
-1406

skipif mysql # not compatible
query I rowsort label-8684
SELECT + 37 * NULLIF ( - 38, - - 80 * - COUNT ( * ) )
----
-1406

query I rowsort
SELECT - 19 + - 54 AS col2
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-8686
SELECT ALL NULLIF ( - SUM( + 89 ), + COUNT( * ) ) col1
----
-89

skipif mysql # not compatible
query I rowsort label-8686
SELECT ALL NULLIF ( - SUM ( + 89 ), + COUNT ( * ) ) col1
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-8687
SELECT SUM( 8 )
----
8

skipif mysql # not compatible
query I rowsort label-8687
SELECT SUM ( 8 )
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8688
SELECT ALL ( 69 ) DIV + SUM( ALL 91 )
----
0

skipif mysql # not compatible
query I rowsort label-8688
SELECT ALL ( 69 ) / + SUM ( ALL 91 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8689
SELECT ALL + 6 * - + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8689
SELECT ALL + 6 * - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8690
SELECT ALL 89 + - COUNT( * ) + - ( 72 ) + - CAST( NULL AS SIGNED ) * + ( - + COUNT( * ) ) * + CAST( + + ( - + 25 ) AS DECIMAL ) + 20
----
NULL

skipif mysql # not compatible
query I rowsort label-8690
SELECT ALL 89 + - COUNT ( * ) + - ( 72 ) + - CAST ( NULL AS INTEGER ) * + ( - + COUNT ( * ) ) * + CAST ( + + ( - + 25 ) AS REAL ) + 20
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8691
SELECT 75 DIV + - CASE + - 37 WHEN - - 44 THEN NULL WHEN + + 33 + 46 THEN NULL ELSE 81 * - COALESCE ( + 60, - + 81 ) DIV + + SUM( - 32 ) END AS col1, COUNT( * ) AS col2
----
0
1

skipif mysql # not compatible
query II rowsort label-8691
SELECT 75 / + - CASE + - 37 WHEN - - 44 THEN NULL WHEN + + 33 + 46 THEN NULL ELSE 81 * - COALESCE ( + 60, - + 81 ) / + + SUM ( - 32 ) END AS col1, COUNT ( * ) AS col2
----
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8692
SELECT ( + 61 ) * 88 DIV ( + + 46 )
----
116

skipif mysql # not compatible
query I rowsort label-8692
SELECT ( + 61 ) * 88 / ( + + 46 )
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-8693
SELECT MIN( - 13 ) * + - COUNT( * )
----
13

skipif mysql # not compatible
query I rowsort label-8693
SELECT MIN ( - 13 ) * + - COUNT ( * )
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-8694
SELECT DISTINCT - 35 + + - 58 + COUNT( * )
----
-92

skipif mysql # not compatible
query I rowsort label-8694
SELECT DISTINCT - 35 + + - 58 + COUNT ( * )
----
-92

query I rowsort
SELECT 10 * 64 AS col2
----
640

onlyif mysql # aggregate syntax: 
query I rowsort label-8696
SELECT ALL - 17 + + 48 + - COUNT( * ) AS col1
----
30

skipif mysql # not compatible
query I rowsort label-8696
SELECT ALL - 17 + + 48 + - COUNT ( * ) AS col1
----
30

query I rowsort
SELECT ALL + 85 + 51
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-8698
SELECT MAX( - 59 )
----
-59

skipif mysql # not compatible
query I rowsort label-8698
SELECT MAX ( - 59 )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-8699
SELECT NULLIF ( - COUNT( * ), - - COUNT( * ) ) + + 91 AS col0
----
90

skipif mysql # not compatible
query I rowsort label-8699
SELECT NULLIF ( - COUNT ( * ), - - COUNT ( * ) ) + + 91 AS col0
----
90

query I rowsort
SELECT + 11 * - + 49 - + 5 AS col0
----
-544

query I rowsort
SELECT + 52 + + 1 AS col2
----
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8702
SELECT COUNT( * ) * COUNT( * ), 38 DIV 21 col2
----
1
1

skipif mysql # not compatible
query II rowsort label-8702
SELECT COUNT ( * ) * COUNT ( * ), 38 / 21 col2
----
1
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8703
SELECT 92 * - + 56 * - - CASE COUNT( * ) WHEN - + CASE - + ( - - CASE + COUNT( + ( + 94 ) ) WHEN - 10 + - 30 THEN NULL ELSE - 42 END ) WHEN - MIN( DISTINCT + + 17 ) THEN NULL WHEN + 73 THEN COUNT( * ) + - 8 * 17 END THEN + CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8703
SELECT 92 * - + 56 * - - CASE COUNT ( * ) WHEN - + CASE - + ( - - CASE + COUNT ( + ( + 94 ) ) WHEN - 10 + - 30 THEN NULL ELSE - 42 END ) WHEN - MIN ( DISTINCT + + 17 ) THEN NULL WHEN + 73 THEN COUNT ( * ) + - 8 * 17 END THEN + CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8704
SELECT DISTINCT + + 90 * 83 + - MAX( 97 ) AS col1
----
7373

skipif mysql # not compatible
query I rowsort label-8704
SELECT DISTINCT + + 90 * 83 + - MAX ( 97 ) AS col1
----
7373

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8705
SELECT - + 19 * + 8 * + - 49 * - 76 * - - 9 + + - COUNT( * ) * + 29 + + CASE - - 16 WHEN + COUNT( * ) THEN - 21 - + - 20 ELSE - CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8705
SELECT - + 19 * + 8 * + - 49 * - 76 * - - 9 + + - COUNT ( * ) * + 29 + + CASE - - 16 WHEN + COUNT ( * ) THEN - 21 - + - 20 ELSE - CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8706
SELECT ALL + - COUNT( * ) * + 32 DIV - + 1 AS col2
----
32

skipif mysql # not compatible
query I rowsort label-8706
SELECT ALL + - COUNT ( * ) * + 32 / - + 1 AS col2
----
32

query I rowsort
SELECT DISTINCT - + ( 10 ) AS col1
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8708
SELECT ALL - COALESCE ( - 16, - 47, 11 * - + 3 * + NULLIF ( - 15, - ( - + 91 ) ) + COALESCE ( 3, - 61, + COUNT( * ) * - 65 ) + CAST( NULL AS SIGNED ) - - + 88 * + MAX( 71 ) * - 77 DIV - 72 ) AS col1
----
16

skipif mysql # not compatible
query I rowsort label-8708
SELECT ALL - COALESCE ( - 16, - 47, 11 * - + 3 * + NULLIF ( - 15, - ( - + 91 ) ) + COALESCE ( 3, - 61, + COUNT ( * ) * - 65 ) + CAST ( NULL AS INTEGER ) - - + 88 * + MAX ( 71 ) * - 77 / - 72 ) AS col1
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8709
SELECT - + 19 * - AVG ( DISTINCT + 2 ) / 71 + + 74 + + 90 + - + MAX( - 70 ) * 21 * - - CAST( NULL AS SIGNED ) * + ( + 96 ), 77 col1
----
NULL
77

skipif mysql # not compatible
query II rowsort label-8709
SELECT - + 19 * - AVG ( DISTINCT + 2 ) / 71 + + 74 + + 90 + - + MAX ( - 70 ) * 21 * - - CAST ( NULL AS INTEGER ) * + ( + 96 ), 77 col1
----
NULL
77

onlyif mysql # DIV for integer division: 
query I rowsort label-8710
SELECT DISTINCT + 76 DIV - + 82 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8710
SELECT DISTINCT + 76 / - + 82 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8711
SELECT + 56 * 79 + + + 27 + - 9 + - ( + 36 ) + 73 DIV ( 31 ) - - 51 AS col1
----
4459

skipif mysql # not compatible
query I rowsort label-8711
SELECT + 56 * 79 + + + 27 + - 9 + - ( + 36 ) + 73 / ( 31 ) - - 51 AS col1
----
4459

onlyif mysql # aggregate syntax: 
query I rowsort label-8712
SELECT COUNT( * ) - + 33 col0
----
-32

skipif mysql # not compatible
query I rowsort label-8712
SELECT COUNT ( * ) - + 33 col0
----
-32

query I rowsort
SELECT DISTINCT 43 * 92 col0
----
3956

query I rowsort
SELECT ALL 13 + + 57 + - - 38
----
108

query I rowsort
SELECT 81 - 36 AS col0
----
45

query I rowsort
SELECT ALL 35 + + - 96 AS col2
----
-61

query I rowsort
SELECT ALL + 76 * + - 77 AS col0
----
-5852

onlyif mysql # DIV for integer division: 
query I rowsort label-8718
SELECT DISTINCT 41 DIV 23 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8718
SELECT DISTINCT 41 / 23 AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8719
SELECT ALL 99 + 98 + + 44 * - CAST( - 63 AS SIGNED ) AS col2
----
2969

skipif mysql # not compatible
query I rowsort label-8719
SELECT ALL 99 + 98 + + 44 * - CAST ( - 63 AS INTEGER ) AS col2
----
2969

onlyif mysql # aggregate syntax: 
query I rowsort label-8720
SELECT ALL - SUM( - 49 ) * - ( 0 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8720
SELECT ALL - SUM ( - 49 ) * - ( 0 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8721
SELECT 0 + + + ( - 5 ) + + ( + + COUNT( * ) ) AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-8721
SELECT 0 + + + ( - 5 ) + + ( + + COUNT ( * ) ) AS col2
----
-4

query I rowsort
SELECT ALL 48 * + - 34 * + + 81 AS col1
----
-132192

onlyif mysql # aggregate syntax: 
query I rowsort label-8723
SELECT 27 + - SUM( + 89 ) + 69 AS col1
----
7

skipif mysql # not compatible
query I rowsort label-8723
SELECT 27 + - SUM ( + 89 ) + 69 AS col1
----
7

query I rowsort
SELECT - ( + 59 ) + - 45
----
-104

onlyif mysql # aggregate syntax: 
query I rowsort label-8725
SELECT ALL - + 28 * - + COUNT( * ) * + 31 - + + COALESCE ( COUNT( * ), 0 )
----
867

skipif mysql # not compatible
query I rowsort label-8725
SELECT ALL - + 28 * - + COUNT ( * ) * + 31 - + + COALESCE ( COUNT ( * ), 0 )
----
867

query I rowsort
SELECT + 58 * + 1
----
58

query I rowsort
SELECT CASE + AVG ( + 50 ) WHEN - 63 - + - 45 + + 39 * + - 35 THEN NULL ELSE + NULLIF ( 13, - 81 * - ( + + 99 ) ) * + 88 + - 4 - + + 73 END * + ( - + 25 )
----
-26675

query I rowsort
SELECT ALL - - ( 3 )
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-8729
SELECT ALL - COUNT( * ), - 31 AS col1
----
-1
-31

skipif mysql # not compatible
query II rowsort label-8729
SELECT ALL - COUNT ( * ), - 31 AS col1
----
-1
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-8730
SELECT + - COUNT( 85 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8730
SELECT + - COUNT ( 85 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8731
SELECT DISTINCT + 91 * + - 78 + - - MAX( - 63 ) + 22 + + 11
----
-7128

skipif mysql # not compatible
query I rowsort label-8731
SELECT DISTINCT + 91 * + - 78 + - - MAX ( - 63 ) + 22 + + 11
----
-7128

onlyif mysql # aggregate syntax: 
query I rowsort label-8732
SELECT ALL + ( COUNT( * ) ) * - + ( - - 66 )
----
-66

skipif mysql # not compatible
query I rowsort label-8732
SELECT ALL + ( COUNT ( * ) ) * - + ( - - 66 )
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-8733
SELECT 9 * - 21 * + + 72 * SUM( + 68 ) + + + COUNT( * ) + + 35 AS col2
----
-925308

skipif mysql # not compatible
query I rowsort label-8733
SELECT 9 * - 21 * + + 72 * SUM ( + 68 ) + + + COUNT ( * ) + + 35 AS col2
----
-925308

onlyif mysql # aggregate syntax: 
query II rowsort label-8734
SELECT + 45 AS col0, 78 * - ( + - CASE - 18 WHEN + MAX( + - 30 ) THEN NULL WHEN + 78 THEN - + 81 ELSE NULL END ) AS col2
----
45
NULL

skipif mysql # not compatible
query II rowsort label-8734
SELECT + 45 AS col0, 78 * - ( + - CASE - 18 WHEN + MAX ( + - 30 ) THEN NULL WHEN + 78 THEN - + 81 ELSE NULL END ) AS col2
----
45
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8735
SELECT - 79 AS col2, + COUNT( * )
----
-79
1

skipif mysql # not compatible
query II rowsort label-8735
SELECT - 79 AS col2, + COUNT ( * )
----
-79
1

query I rowsort
SELECT ALL - 97 * - 99
----
9603

query I rowsort
SELECT - 90 - - - 35
----
-125

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8738
SELECT ALL + 52 + - COUNT( * ) DIV - COUNT( * ) AS col2
----
53

skipif mysql # not compatible
query I rowsort label-8738
SELECT ALL + 52 + - COUNT ( * ) / - COUNT ( * ) AS col2
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-8739
SELECT - COUNT( * ) + - 14
----
-15

skipif mysql # not compatible
query I rowsort label-8739
SELECT - COUNT ( * ) + - 14
----
-15

query I rowsort
SELECT ALL + 79 + 15 - 16 AS col0
----
78

onlyif mysql # DIV for integer division: 
query I rowsort label-8741
SELECT - 84 DIV - 9 col1
----
9

skipif mysql # not compatible
query I rowsort label-8741
SELECT - 84 / - 9 col1
----
9

query I rowsort
SELECT ALL 95 + - 67
----
28

query I rowsort
SELECT ALL + 52 + 19
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-8744
SELECT + ( + + 53 ) * - + 23 + - MAX( ALL + ( - 68 ) ) * - 58 + + + 89
----
-5074

skipif mysql # not compatible
query I rowsort label-8744
SELECT + ( + + 53 ) * - + 23 + - MAX ( ALL + ( - 68 ) ) * - 58 + + + 89
----
-5074

query I rowsort
SELECT + 36 * - 16 AS col2
----
-576

onlyif mysql # DIV for integer division: 
query II rowsort label-8746
SELECT ALL - 89 DIV 84 AS col2, CASE + 23 WHEN + 45 THEN NULL WHEN - 48 THEN AVG ( + 49 ) END AS col1
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-8746
SELECT ALL - 89 / 84 AS col2, CASE + 23 WHEN + 45 THEN NULL WHEN - 48 THEN AVG ( + 49 ) END AS col1
----
-1
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8747
SELECT - 48 DIV - 72 * - 16
----
0

skipif mysql # not compatible
query I rowsort label-8747
SELECT - 48 / - 72 * - 16
----
0

query I rowsort
SELECT + 54 + - + 27 + - 19 AS col1
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8749
SELECT + 30 + 99 - CAST( - 1 AS SIGNED )
----
130

skipif mysql # not compatible
query I rowsort label-8749
SELECT + 30 + 99 - CAST ( - 1 AS INTEGER )
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-8750
SELECT - ( - 52 ) * COUNT( * ) + - + COUNT( ALL 70 ) + + 14
----
65

skipif mysql # not compatible
query I rowsort label-8750
SELECT - ( - 52 ) * COUNT ( * ) + - + COUNT ( ALL 70 ) + + 14
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8751
SELECT ALL NULLIF ( - ( - + NULLIF ( + 95, - 25 + CAST( NULL AS SIGNED ) ) ), - - COUNT( * ) ) AS col0
----
95

skipif mysql # not compatible
query I rowsort label-8751
SELECT ALL NULLIF ( - ( - + NULLIF ( + 95, - 25 + CAST ( NULL AS INTEGER ) ) ), - - COUNT ( * ) ) AS col0
----
95

query II rowsort
SELECT 59 col1, + 72
----
59
72

query I rowsort
SELECT ALL + 17 - - 31 AS col1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-8754
SELECT ALL 52 * - COALESCE ( 8, + 60, + NULLIF ( + COUNT( * ), 84 ) ) AS col0
----
-416

skipif mysql # not compatible
query I rowsort label-8754
SELECT ALL 52 * - COALESCE ( 8, + 60, + NULLIF ( + COUNT ( * ), 84 ) ) AS col0
----
-416

query I rowsort
SELECT - 58 - + - 41
----
-17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8756
SELECT + 64 * NULLIF ( 11, - 33 ) DIV + + 62 * COUNT( + + 15 ) + - 3
----
8

skipif mysql # not compatible
query I rowsort label-8756
SELECT + 64 * NULLIF ( 11, - 33 ) / + + 62 * COUNT ( + + 15 ) + - 3
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-8757
SELECT - COUNT( * ) AS col1, CASE - 21 WHEN CASE - ( 85 ) WHEN - 44 THEN - - COUNT( * ) END * 62 THEN 73 + + + 61 - SUM( - - ( 78 ) ) * + + 19 + - 4 WHEN 94 * - 87 * - - COUNT( * ) + 60 * 57 THEN COUNT( * ) ELSE NULL END
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-8757
SELECT - COUNT ( * ) AS col1, CASE - 21 WHEN CASE - ( 85 ) WHEN - 44 THEN - - COUNT ( * ) END * 62 THEN 73 + + + 61 - SUM ( - - ( 78 ) ) * + + 19 + - 4 WHEN 94 * - 87 * - - COUNT ( * ) + 60 * 57 THEN COUNT ( * ) ELSE NULL END
----
-1
NULL

query II rowsort
SELECT 52, + 53 AS col1
----
52
53

onlyif mysql # aggregate syntax: 
query I rowsort label-8759
SELECT + - MIN( + 50 ) - + 43 + + + 14 * + 29 * ( - 46 ) + + 77 AS col1
----
-18692

skipif mysql # not compatible
query I rowsort label-8759
SELECT + - MIN ( + 50 ) - + 43 + + + 14 * + 29 * ( - 46 ) + + 77 AS col1
----
-18692

query I rowsort
SELECT + + 22 - - ( + 49 ) AS col2
----
71

query I rowsort
SELECT ALL - 53 * + - 89
----
4717

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8762
SELECT CAST( CASE + 28 WHEN 7 + + 21 + - 99 * + 36 * 48 * + 15 THEN 10 END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8762
SELECT CAST ( CASE + 28 WHEN 7 + + 21 + - 99 * + 36 * 48 * + 15 THEN 10 END AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8763
SELECT ALL 39 DIV + ( + 68 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8763
SELECT ALL 39 / + ( + 68 ) AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8764
SELECT DISTINCT + COUNT( * ), + 1 + - COUNT( * ) + 56 * CAST( + + 14 AS SIGNED ) + 55 + + 8 DIV 63 AS col0
----
1
839

skipif mysql # not compatible
query II rowsort label-8764
SELECT DISTINCT + COUNT ( * ), + 1 + - COUNT ( * ) + 56 * CAST ( + + 14 AS INTEGER ) + 55 + + 8 / 63 AS col0
----
1
839

query II rowsort
SELECT ALL + - 23 col0, + 9 col1
----
-23
9

query I rowsort
SELECT + 92 * + ( + + 67 )
----
6164

onlyif mysql # aggregate syntax: 
query III rowsort label-8767
SELECT ALL + + 62 AS col0, + MIN( DISTINCT - 38 ) * + 93, + - 98 AS col0
----
62
-3534
-98

skipif mysql # not compatible
query III rowsort label-8767
SELECT ALL + + 62 AS col0, + MIN ( DISTINCT - 38 ) * + 93, + - 98 AS col0
----
62
-3534
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8768
SELECT ALL 66 * + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8768
SELECT ALL 66 * + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8769
SELECT + 64 DIV 41 * - 85 - 29 + - - 31 DIV + + 97 AS col1, 8
----
-114
8

skipif mysql # not compatible
query II rowsort label-8769
SELECT + 64 / 41 * - 85 - 29 + - - 31 / + + 97 AS col1, 8
----
-114
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8770
SELECT + + MIN( + 93 ) DIV - 95
----
0

skipif mysql # not compatible
query I rowsort label-8770
SELECT + + MIN ( + 93 ) / - 95
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8771
SELECT - 39 * + 86 * 13 + + SUM( + 0 )
----
-43602

skipif mysql # not compatible
query I rowsort label-8771
SELECT - 39 * + 86 * 13 + + SUM ( + 0 )
----
-43602

onlyif mysql # aggregate syntax: 
query I rowsort label-8772
SELECT DISTINCT + + 68 * ( 47 ) * CASE + 2 WHEN + 48 THEN NULL ELSE + 62 - COUNT( * ) * - 76 END + - ( 78 ) + + 2 * + 88
----
441146

skipif mysql # not compatible
query I rowsort label-8772
SELECT DISTINCT + + 68 * ( 47 ) * CASE + 2 WHEN + 48 THEN NULL ELSE + 62 - COUNT ( * ) * - 76 END + - ( 78 ) + + 2 * + 88
----
441146

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8773
SELECT ALL 81 * COUNT( * ) * NULLIF ( - 20, + ( + ( - MIN( + 71 ) ) ) ) + 81 + - ( - 53 ) / 90 * + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8773
SELECT ALL 81 * COUNT ( * ) * NULLIF ( - 20, + ( + ( - MIN ( + 71 ) ) ) ) + 81 + - ( - 53 ) / 90 * + CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8774
SELECT ALL + CAST( NULL AS SIGNED ) AS col1, - MIN( DISTINCT + 65 ) AS col1
----
NULL
-65

skipif mysql # not compatible
query II rowsort label-8774
SELECT ALL + CAST ( NULL AS INTEGER ) AS col1, - MIN ( DISTINCT + 65 ) AS col1
----
NULL
-65

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8775
SELECT DISTINCT - + 49 * - ( + NULLIF ( + + COUNT( DISTINCT + 63 ), - ( - 55 ) * - + 45 ) ) + - - NULLIF ( + 37, 81 ) * - CASE - 14 WHEN - 35 / + 40 THEN - 92 WHEN + 37 THEN - + CAST( + 14 AS DECIMAL ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8775
SELECT DISTINCT - + 49 * - ( + NULLIF ( + + COUNT ( DISTINCT + 63 ), - ( - 55 ) * - + 45 ) ) + - - NULLIF ( + 37, 81 ) * - CASE - 14 WHEN - 35 / + 40 THEN - 92 WHEN + 37 THEN - + CAST ( + 14 AS REAL ) END AS col1
----
NULL

query I rowsort
SELECT ALL - 69 * + - 73 + - 66 + - + 0 AS col0
----
4971

query I rowsort
SELECT ALL + 85 * + 34 + - 30 AS col1
----
2860

onlyif mysql # aggregate syntax: 
query I rowsort label-8778
SELECT COALESCE ( - + COUNT( * ), + 45 * 52 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8778
SELECT COALESCE ( - + COUNT ( * ), + 45 * 52 ) AS col2
----
-1

query I rowsort
SELECT ALL - 93 * - 70 * 81 AS col1
----
527310

onlyif mysql # aggregate syntax: 
query I rowsort label-8780
SELECT NULLIF ( + 31, + COUNT( ALL - 35 ) )
----
31

skipif mysql # not compatible
query I rowsort label-8780
SELECT NULLIF ( + 31, + COUNT ( ALL - 35 ) )
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-8781
SELECT SUM( ALL - 54 ) * + - 64 + + + 10 * + - 38
----
3076

skipif mysql # not compatible
query I rowsort label-8781
SELECT SUM ( ALL - 54 ) * + - 64 + + + 10 * + - 38
----
3076

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8782
SELECT + CAST( + 27 AS SIGNED ) col1
----
27

skipif mysql # not compatible
query I rowsort label-8782
SELECT + CAST ( + 27 AS INTEGER ) col1
----
27

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8783
SELECT NULLIF ( 28, CAST( NULL AS DECIMAL ) * 18 )
----
28

skipif mysql # not compatible
query I rowsort label-8783
SELECT NULLIF ( 28, CAST ( NULL AS REAL ) * 18 )
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-8784
SELECT DISTINCT - 76 * + 7 * - COUNT( * ) * 51 AS col0
----
27132

skipif mysql # not compatible
query I rowsort label-8784
SELECT DISTINCT - 76 * + 7 * - COUNT ( * ) * 51 AS col0
----
27132

query I rowsort
SELECT DISTINCT - 3 * + + 32
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-8786
SELECT ALL 30 * - 83 - + + SUM( - - 10 )
----
-2500

skipif mysql # not compatible
query I rowsort label-8786
SELECT ALL 30 * - 83 - + + SUM ( - - 10 )
----
-2500

onlyif mysql # aggregate syntax: 
query I rowsort label-8787
SELECT DISTINCT ( - - MAX( - - 1 ) )
----
1

skipif mysql # not compatible
query I rowsort label-8787
SELECT DISTINCT ( - - MAX ( - - 1 ) )
----
1

query II rowsort
SELECT ALL ( 61 ), - 30 col2
----
61
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-8789
SELECT - MAX( ALL + 95 ) + - 9 + COUNT( * ) AS col1
----
-103

skipif mysql # not compatible
query I rowsort label-8789
SELECT - MAX ( ALL + 95 ) + - 9 + COUNT ( * ) AS col1
----
-103

query I rowsort
SELECT + 23 * - 92 * - - 25
----
-52900

query I rowsort
SELECT + 40 - - + 40 AS col2
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-8792
SELECT - COUNT( * ) + + - 30 + - + COUNT( * ) AS col0
----
-32

skipif mysql # not compatible
query I rowsort label-8792
SELECT - COUNT ( * ) + + - 30 + - + COUNT ( * ) AS col0
----
-32

query I rowsort
SELECT + 54 + + 10 col1
----
64

query I rowsort
SELECT DISTINCT - 13 * + + 60 + - 46 AS col0
----
-826

query I rowsort
SELECT + 68 + + 92 AS col2
----
160

query I rowsort
SELECT ALL + 80 * 83
----
6640

query I rowsort
SELECT - - 41 * 12
----
492

query I rowsort
SELECT + + 36 + - 82 AS col1
----
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-8799
SELECT DISTINCT - 97 DIV + + 33 + - 21 AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-8799
SELECT DISTINCT - 97 / + + 33 + - 21 AS col0
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8800
SELECT ALL 96 + + 95 - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8800
SELECT ALL 96 + + 95 - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT DISTINCT + 28 + - 30, 84 AS col2
----
-2
84

query I rowsort
SELECT ALL + 61 + - 34
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8803
SELECT ALL 66 * + ( + - NULLIF ( + NULLIF ( 82, + 83 ), - 99 - + 14 + + 64 + 72 - CAST( 25 AS SIGNED ) ) ) AS col0
----
-5412

skipif mysql # not compatible
query I rowsort label-8803
SELECT ALL 66 * + ( + - NULLIF ( + NULLIF ( 82, + 83 ), - 99 - + 14 + + 64 + 72 - CAST ( 25 AS INTEGER ) ) ) AS col0
----
-5412

onlyif mysql # aggregate syntax: 
query I rowsort label-8804
SELECT 98 * + + 76 - COALESCE ( + - ( 87 ), + 22 ) + + COUNT( DISTINCT + 31 )
----
7536

skipif mysql # not compatible
query I rowsort label-8804
SELECT 98 * + + 76 - COALESCE ( + - ( 87 ), + 22 ) + + COUNT ( DISTINCT + 31 )
----
7536

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8805
SELECT + 12 AS col2, CAST( NULL AS DECIMAL )
----
12
NULL

skipif mysql # not compatible
query II rowsort label-8805
SELECT + 12 AS col2, CAST ( NULL AS REAL )
----
12
NULL

query I rowsort
SELECT 91 + + 52 - + 95 * - 1 * 78
----
7553

query I rowsort
SELECT DISTINCT 60 - 65 AS col0
----
-5

query II rowsort
SELECT ALL - 30, - 34 * + 68 AS col0
----
-30
-2312

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8809
SELECT CASE - + COUNT( * ) WHEN + 32 * 87 + - 54 / - 15 THEN NULL WHEN - + 66 THEN + 57 + + NULLIF ( - 42, + CASE NULLIF ( 84, COALESCE ( + 49, - 15 ) * 34 ) WHEN + 50 THEN NULL WHEN - ( COALESCE ( - - CAST( NULL AS SIGNED ), + + 97 ) ) THEN + 95 * - - 55 * + 21 END ) END * + COUNT( * ) + 83 + - AVG ( ALL - ( CASE + 48 WHEN 69 THEN 96 ELSE NULL END ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8809
SELECT CASE - + COUNT ( * ) WHEN + 32 * 87 + - 54 / - 15 THEN NULL WHEN - + 66 THEN + 57 + + NULLIF ( - 42, + CASE NULLIF ( 84, COALESCE ( + 49, - 15 ) * 34 ) WHEN + 50 THEN NULL WHEN - ( COALESCE ( - - CAST ( NULL AS INTEGER ), + + 97 ) ) THEN + 95 * - - 55 * + 21 END ) END * + COUNT ( * ) + 83 + - AVG ( ALL - ( CASE + 48 WHEN 69 THEN 96 ELSE NULL END ) ) AS col2
----
NULL

query II rowsort
SELECT DISTINCT - 13 col0, ( + + 27 )
----
-13
27

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8811
SELECT DISTINCT 24 - - CAST( + - 35 AS SIGNED ) col1, 11
----
-11
11

skipif mysql # not compatible
query II rowsort label-8811
SELECT DISTINCT 24 - - CAST ( + - 35 AS INTEGER ) col1, 11
----
-11
11

onlyif mysql # aggregate syntax: 
query II rowsort label-8812
SELECT 84 AS col2, + SUM( + NULLIF ( - 22, - - 52 + - - 57 * - 38 + + ( + 47 ) ) )
----
84
-22

skipif mysql # not compatible
query II rowsort label-8812
SELECT 84 AS col2, + SUM ( + NULLIF ( - 22, - - 52 + - - 57 * - 38 + + ( + 47 ) ) )
----
84
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-8813
SELECT - COUNT( * ) * 12 + + + 32
----
20

skipif mysql # not compatible
query I rowsort label-8813
SELECT - COUNT ( * ) * 12 + + + 32
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-8814
SELECT ALL + COUNT( * ) - - - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-8814
SELECT ALL + COUNT ( * ) - - - COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8815
SELECT MAX( + 6 ) * - 5 col1, - 92 * 6 - 12
----
-30
-564

skipif mysql # not compatible
query II rowsort label-8815
SELECT MAX ( + 6 ) * - 5 col1, - 92 * 6 - 12
----
-30
-564

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8816
SELECT CASE - 93 WHEN - 74 THEN - NULLIF ( - CAST( NULL AS SIGNED ), 58 * - 68 ) + - - CASE + 38 WHEN + 26 - 65 THEN + 18 / + COUNT( - 17 ) ELSE NULL END - + + CAST( NULL AS SIGNED ) ELSE NULL END / 85
----
NULL

skipif mysql # not compatible
query I rowsort label-8816
SELECT CASE - 93 WHEN - 74 THEN - NULLIF ( - CAST ( NULL AS INTEGER ), 58 * - 68 ) + - - CASE + 38 WHEN + 26 - 65 THEN + 18 / + COUNT ( - 17 ) ELSE NULL END - + + CAST ( NULL AS INTEGER ) ELSE NULL END / 85
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8817
SELECT - 98 AS col0, MAX( - + 88 ) - + 38 + - + 48
----
-98
-174

skipif mysql # not compatible
query II rowsort label-8817
SELECT - 98 AS col0, MAX ( - + 88 ) - + 38 + - + 48
----
-98
-174

onlyif mysql # aggregate syntax: 
query I rowsort label-8818
SELECT COUNT( * ) + - 82
----
-81

skipif mysql # not compatible
query I rowsort label-8818
SELECT COUNT ( * ) + - 82
----
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-8819
SELECT 9 DIV - + 76
----
0

skipif mysql # not compatible
query I rowsort label-8819
SELECT 9 / - + 76
----
0

query I rowsort
SELECT DISTINCT - ( ( + 2 ) )
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-8821
SELECT ALL + 75 * - + COUNT( * ) + + + 13, MIN( ( + 93 ) ) col1
----
-62
93

skipif mysql # not compatible
query II rowsort label-8821
SELECT ALL + 75 * - + COUNT ( * ) + + + 13, MIN ( ( + 93 ) ) col1
----
-62
93

query I rowsort
SELECT ALL + + 89 + - 11
----
78

query II rowsort
SELECT - + 82 AS col0, - 22 AS col0
----
-82
-22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8824
SELECT 97 * + + 10 DIV COUNT( * ) AS col1
----
970

skipif mysql # not compatible
query I rowsort label-8824
SELECT 97 * + + 10 / COUNT ( * ) AS col1
----
970

query I rowsort
SELECT ALL - 51 + + 96 AS col2
----
45

query I rowsort
SELECT - + ( + + 14 ) AS col0
----
-14

query II rowsort
SELECT 24 AS col0, 24
----
24
24

onlyif mysql # aggregate syntax: 
query I rowsort label-8828
SELECT + 18 / - - 59 + ( - SUM( 97 ) ) + - 77 * + 12 + 99 * - COUNT( ALL + - 45 ) * 21 + + - CASE + - 78 WHEN - - 81 THEN NULL WHEN 33 THEN + COALESCE ( + 57, + 78 - 77 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8828
SELECT + 18 / - - 59 + ( - SUM ( 97 ) ) + - 77 * + 12 + 99 * - COUNT ( ALL + - 45 ) * 21 + + - CASE + - 78 WHEN - - 81 THEN NULL WHEN 33 THEN + COALESCE ( + 57, + 78 - 77 ) END AS col2
----
NULL

query I rowsort
SELECT ALL + 59 + - 52 * - 14 * + + 95 AS col0
----
69219

onlyif mysql # aggregate syntax: 
query II rowsort label-8830
SELECT DISTINCT - COUNT( * ) AS col0, - MAX( + - 35 )
----
-1
35

skipif mysql # not compatible
query II rowsort label-8830
SELECT DISTINCT - COUNT ( * ) AS col0, - MAX ( + - 35 )
----
-1
35

onlyif mysql # DIV for integer division: 
query I rowsort label-8831
SELECT - 41 - - 5 DIV 79
----
-41

skipif mysql # not compatible
query I rowsort label-8831
SELECT - 41 - - 5 / 79
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8832
SELECT ALL - CAST( + - COUNT( * ) AS SIGNED ) * 15 + + 77 * - COALESCE ( 73, - 37, - 86 * - 72 * 25 ) + + CAST( 52 AS SIGNED )
----
-5554

skipif mysql # not compatible
query I rowsort label-8832
SELECT ALL - CAST ( + - COUNT ( * ) AS INTEGER ) * 15 + + 77 * - COALESCE ( 73, - 37, - 86 * - 72 * 25 ) + + CAST ( 52 AS INTEGER )
----
-5554

query I rowsort
SELECT 53 - 62 AS col2
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8834
SELECT ALL - 18 * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8834
SELECT ALL - 18 * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT + NULLIF ( 20, 63 * 86 )
----
20

query I rowsort
SELECT ALL + NULLIF ( ( - - 11 ), + - 27 ) + + 43 + 21
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8837
SELECT - 13 / + 18 + + - CAST( NULL AS SIGNED ) * - + 86 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8837
SELECT - 13 / + 18 + + - CAST ( NULL AS INTEGER ) * - + 86 AS col0
----
NULL

query I rowsort
SELECT + + ( + 27 ) AS col1
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-8839
SELECT ALL + - COALESCE ( - + COUNT( * ), 80 ) * - 85 + + - 92
----
-177

skipif mysql # not compatible
query I rowsort label-8839
SELECT ALL + - COALESCE ( - + COUNT ( * ), 80 ) * - 85 + + - 92
----
-177

query I rowsort
SELECT 49 + - 5 AS col1
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-8841
SELECT + 98 DIV - 80 - - - 18 AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-8841
SELECT + 98 / - 80 - - - 18 AS col1
----
-19

query I rowsort
SELECT 2 * + + 79 * 0 * 85 + + 87
----
87

query I rowsort
SELECT 94 - 32 + - 23 + - 28 + + 57 AS col0
----
68

query II rowsort
SELECT DISTINCT - 48 - 36 AS col1, - 60
----
-84
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8845
SELECT ALL COUNT( * ) DIV + 29
----
0

skipif mysql # not compatible
query I rowsort label-8845
SELECT ALL COUNT ( * ) / + 29
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8846
SELECT 84 + + 78 * - 39 * - SUM( DISTINCT - 68 ) AS col2
----
-206772

skipif mysql # not compatible
query I rowsort label-8846
SELECT 84 + + 78 * - 39 * - SUM ( DISTINCT - 68 ) AS col2
----
-206772

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8847
SELECT ( - 36 ) * - 62 * 75 * + + CAST( NULL AS SIGNED ) - - 89
----
NULL

skipif mysql # not compatible
query I rowsort label-8847
SELECT ( - 36 ) * - 62 * 75 * + + CAST ( NULL AS INTEGER ) - - 89
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8848
SELECT ALL 77 DIV + 72 col0
----
1

skipif mysql # not compatible
query I rowsort label-8848
SELECT ALL 77 / + 72 col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8849
SELECT ALL NULLIF ( - COUNT( + 94 ), - + MAX( DISTINCT 26 ) ) * 29 col0
----
-29

skipif mysql # not compatible
query I rowsort label-8849
SELECT ALL NULLIF ( - COUNT ( + 94 ), - + MAX ( DISTINCT 26 ) ) * 29 col0
----
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8850
SELECT CASE - ( + COUNT( ALL - 44 ) ) WHEN + ( 63 ) THEN - 67 WHEN + COUNT( * ) THEN NULL WHEN + + CAST( NULL AS SIGNED ) + + COUNT( 80 ) THEN NULL END * + + 59 AS col1, + 29 AS col1
----
NULL
29

skipif mysql # not compatible
query II rowsort label-8850
SELECT CASE - ( + COUNT ( ALL - 44 ) ) WHEN + ( 63 ) THEN - 67 WHEN + COUNT ( * ) THEN NULL WHEN + + CAST ( NULL AS INTEGER ) + + COUNT ( 80 ) THEN NULL END * + + 59 AS col1, + 29 AS col1
----
NULL
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8851
SELECT ALL 5 * - + COALESCE ( - 36, + CASE CASE 97 WHEN - - 95 + + COALESCE ( + 83, - - 55, - COALESCE ( + 2, - 34 * - - AVG ( + 19 ) * - 31 + + 55 - - ( + + 39 ) / - 97 * - - 39 ) ) - + 22 THEN + - CASE + + 86 WHEN + COUNT( * ) + + 56 THEN NULL WHEN - - COUNT( * ) * COUNT( * ) THEN + 67 * + 95 * - - 45 WHEN + - MIN( - + 1 ) - + + 51 + 96 - - - 79 / COUNT( * ) * - CAST( + + 30 AS SIGNED ) * + 83 THEN NULL ELSE NULL END * - 95 + - 52 END WHEN - 58 * - CAST( NULL AS SIGNED ) + 31 * + - 98 THEN - 54 WHEN - 23 THEN NULL END * - 20 + + 87, + 21 ) AS col2
----
180

skipif mysql # not compatible
query I rowsort label-8851
SELECT ALL 5 * - + COALESCE ( - 36, + CASE CASE 97 WHEN - - 95 + + COALESCE ( + 83, - - 55, - COALESCE ( + 2, - 34 * - - AVG ( + 19 ) * - 31 + + 55 - - ( + + 39 ) / - 97 * - - 39 ) ) - + 22 THEN + - CASE + + 86 WHEN + COUNT ( * ) + + 56 THEN NULL WHEN - - COUNT ( * ) * COUNT ( * ) THEN + 67 * + 95 * - - 45 WHEN + - MIN ( - + 1 ) - + + 51 + 96 - - - 79 / COUNT ( * ) * - CAST ( + + 30 AS INTEGER ) * + 83 THEN NULL ELSE NULL END * - 95 + - 52 END WHEN - 58 * - CAST ( NULL AS INTEGER ) + 31 * + - 98 THEN - 54 WHEN - 23 THEN NULL END * - 20 + + 87, + 21 ) AS col2
----
180

onlyif mysql # aggregate syntax: 
query I rowsort label-8852
SELECT COUNT( * ) - + - COUNT( * ) - + 47
----
-45

skipif mysql # not compatible
query I rowsort label-8852
SELECT COUNT ( * ) - + - COUNT ( * ) - + 47
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-8853
SELECT DISTINCT 34 * + - COUNT( * ) * + 1
----
-34

skipif mysql # not compatible
query I rowsort label-8853
SELECT DISTINCT 34 * + - COUNT ( * ) * + 1
----
-34

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8854
SELECT ALL CAST( - AVG ( - ( + 75 ) ) AS SIGNED ) + + - 6, - 67 AS col0
----
69
-67

skipif mysql # not compatible
query II rowsort label-8854
SELECT ALL CAST ( - AVG ( - ( + 75 ) ) AS INTEGER ) + + - 6, - 67 AS col0
----
69
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8855
SELECT CAST( NULL AS SIGNED ) + 6
----
NULL

skipif mysql # not compatible
query I rowsort label-8855
SELECT CAST ( NULL AS INTEGER ) + 6
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8856
SELECT ALL 69 * + 57 * + SUM( - ( + 20 ) )
----
-78660

skipif mysql # not compatible
query I rowsort label-8856
SELECT ALL 69 * + 57 * + SUM ( - ( + 20 ) )
----
-78660

query I rowsort
SELECT ALL - 54 + 37 * + 96 * - 83 - 33
----
-294903

query I rowsort
SELECT - 89 + - 33 * 46
----
-1607

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8859
SELECT - 59 - + - 32 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8859
SELECT - 59 - + - 32 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 28 * - 85 - - 56 AS col1
----
-2324

query I rowsort
SELECT 99 + - + 98 AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8862
SELECT - COUNT( ALL + - 50 ) + - - CAST( ( + + 61 ) AS SIGNED ) + - - 8 + 69 * 59 * - - 71 * + CAST( NULL AS SIGNED ) * 28 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8862
SELECT - COUNT ( ALL + - 50 ) + - - CAST ( ( + + 61 ) AS INTEGER ) + - - 8 + 69 * 59 * - - 71 * + CAST ( NULL AS INTEGER ) * 28 AS col2
----
NULL

query I rowsort
SELECT ( + 6 ) AS col2
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8864
SELECT - 86 + - COUNT( * ) + + 12 + - MAX( + CASE - - 36 WHEN + CAST( NULL AS SIGNED ) / 86 THEN NULL ELSE 14 END ) - + NULLIF ( + 55, + - 40 ) * - - 44 * + 64
----
-154969

skipif mysql # not compatible
query I rowsort label-8864
SELECT - 86 + - COUNT ( * ) + + 12 + - MAX ( + CASE - - 36 WHEN + CAST ( NULL AS INTEGER ) / 86 THEN NULL ELSE 14 END ) - + NULLIF ( + 55, + - 40 ) * - - 44 * + 64
----
-154969

query I rowsort
SELECT + - 8 + - 43 - - 31
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-8866
SELECT ALL + 3 * 39 * 17 * 93 + - SUM( DISTINCT - 0 )
----
184977

skipif mysql # not compatible
query I rowsort label-8866
SELECT ALL + 3 * 39 * 17 * 93 + - SUM ( DISTINCT - 0 )
----
184977

onlyif mysql # aggregate syntax: 
query I rowsort label-8867
SELECT ALL - + 74 + 15 * 55 + CASE + + NULLIF ( 65, + 57 ) WHEN + 48 + 98 + 69 * 52 THEN - MAX( DISTINCT + 13 ) WHEN 66 THEN NULL ELSE + 23 END AS col1
----
774

skipif mysql # not compatible
query I rowsort label-8867
SELECT ALL - + 74 + 15 * 55 + CASE + + NULLIF ( 65, + 57 ) WHEN + 48 + 98 + 69 * 52 THEN - MAX ( DISTINCT + 13 ) WHEN 66 THEN NULL ELSE + 23 END AS col1
----
774

query I rowsort
SELECT - + 33 + - + 18
----
-51

query I rowsort
SELECT ALL - 28 + 26 * + 39 AS col2
----
986

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8870
SELECT - CAST( + + 53 AS SIGNED ) * + 44 + 31 AS col2
----
-2301

skipif mysql # not compatible
query I rowsort label-8870
SELECT - CAST ( + + 53 AS INTEGER ) * + 44 + 31 AS col2
----
-2301

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8871
SELECT - + 84 + - - CAST( - 87 AS SIGNED ) col1
----
-171

skipif mysql # not compatible
query I rowsort label-8871
SELECT - + 84 + - - CAST ( - 87 AS INTEGER ) col1
----
-171

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8872
SELECT - COUNT( * ) DIV + + 10 + - MAX( ALL - 51 ) DIV - COUNT( * ) + 32 AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-8872
SELECT - COUNT ( * ) / + + 10 + - MAX ( ALL - 51 ) / - COUNT ( * ) + 32 AS col2
----
-19

query I rowsort
SELECT - ( - 4 ) + - + 21 * 5 * - 76 * + 16 AS col0
----
127684

onlyif mysql # aggregate syntax: 
query I rowsort label-8874
SELECT + NULLIF ( + COUNT( * ), - 34 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-8874
SELECT + NULLIF ( + COUNT ( * ), - 34 ) col0
----
1

query I rowsort
SELECT - 2 + + ( + - 89 )
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-8876
SELECT ALL + NULLIF ( + 51, - + NULLIF ( - + SUM( + 83 ), + - 32 + + 52 + - 27 * - MAX( - - 78 ) + - 43 + + COUNT( * ) * + 67 + COUNT( * ) * - - 6 * - 0 * + + 66 + - SUM( 87 ) + 40 ) ) AS col1
----
51

skipif mysql # not compatible
query I rowsort label-8876
SELECT ALL + NULLIF ( + 51, - + NULLIF ( - + SUM ( + 83 ), + - 32 + + 52 + - 27 * - MAX ( - - 78 ) + - 43 + + COUNT ( * ) * + 67 + COUNT ( * ) * - - 6 * - 0 * + + 66 + - SUM ( 87 ) + 40 ) ) AS col1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8877
SELECT ALL - COUNT( * ) * + 6 * + NULLIF ( 51, - 82 + - 55 + ( 66 ) + ( + - ( + 28 ) ) * + 25 + - 22 + - 29 ) AS col1
----
-306

skipif mysql # not compatible
query I rowsort label-8877
SELECT ALL - COUNT ( * ) * + 6 * + NULLIF ( 51, - 82 + - 55 + ( 66 ) + ( + - ( + 28 ) ) * + 25 + - 22 + - 29 ) AS col1
----
-306

onlyif mysql # DIV for integer division: 
query I rowsort label-8878
SELECT - 1 DIV + + 56 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8878
SELECT - 1 / + + 56 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8879
SELECT - 19 + ( COUNT( * ) ) col0
----
-18

skipif mysql # not compatible
query I rowsort label-8879
SELECT - 19 + ( COUNT ( * ) ) col0
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-8880
SELECT DISTINCT - 55 * - 72 - - COALESCE ( 83, - 6 DIV 94 ) DIV - ( + 28 )
----
3958

skipif mysql # not compatible
query I rowsort label-8880
SELECT DISTINCT - 55 * - 72 - - COALESCE ( 83, - 6 / 94 ) / - ( + 28 )
----
3958

onlyif mysql # aggregate syntax: 
query II rowsort label-8881
SELECT + 6 * - + 25 + + + COUNT( * ) AS col2, - 49 col2
----
-149
-49

skipif mysql # not compatible
query II rowsort label-8881
SELECT + 6 * - + 25 + + + COUNT ( * ) AS col2, - 49 col2
----
-149
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-8882
SELECT ALL + NULLIF ( - 53, SUM( 39 ) )
----
-53

skipif mysql # not compatible
query I rowsort label-8882
SELECT ALL + NULLIF ( - 53, SUM ( 39 ) )
----
-53

query I rowsort
SELECT ALL + 72 * + 42
----
3024

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8884
SELECT + 6 * + - COUNT( * ) - 67 + + + 80 DIV COALESCE ( - 77, + 94 ) DIV 95 * + 61 AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-8884
SELECT + 6 * + - COUNT ( * ) - 67 + + + 80 / COALESCE ( - 77, + 94 ) / 95 * + 61 AS col1
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8885
SELECT + 47 * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8885
SELECT + 47 * - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8886
SELECT ALL + MAX( ALL 60 )
----
60

skipif mysql # not compatible
query I rowsort label-8886
SELECT ALL + MAX ( ALL 60 )
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8887
SELECT DISTINCT + CAST( + 94 AS SIGNED ) AS col2
----
94

skipif mysql # not compatible
query I rowsort label-8887
SELECT DISTINCT + CAST ( + 94 AS INTEGER ) AS col2
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-8888
SELECT - 12 * + NULLIF ( - COUNT( * ), COUNT( * ) + - 35 )
----
12

skipif mysql # not compatible
query I rowsort label-8888
SELECT - 12 * + NULLIF ( - COUNT ( * ), COUNT ( * ) + - 35 )
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8889
SELECT + 5 + + 24 + - ( + 53 ) - - 91 + + + 61 + + CAST( + COALESCE ( NULLIF ( 90, - CAST( - 44 AS DECIMAL ) ), 2 - - + 63 ) AS SIGNED ) * - 55 * - 35 * + MAX( ALL - 12 )
----
-2078872

skipif mysql # not compatible
query I rowsort label-8889
SELECT + 5 + + 24 + - ( + 53 ) - - 91 + + + 61 + + CAST ( + COALESCE ( NULLIF ( 90, - CAST ( - 44 AS REAL ) ), 2 - - + 63 ) AS INTEGER ) * - 55 * - 35 * + MAX ( ALL - 12 )
----
-2078872

onlyif mysql # aggregate syntax: 
query I rowsort label-8890
SELECT - CASE - 44 WHEN + 57 - 84 THEN - 87 WHEN 27 * - + 11 THEN + + ( 29 ) END * COUNT( * ) - - + 15 + 48 - + + 73 * 39 * - 54 / COUNT( * ) + + 63
----
NULL

skipif mysql # not compatible
query I rowsort label-8890
SELECT - CASE - 44 WHEN + 57 - 84 THEN - 87 WHEN 27 * - + 11 THEN + + ( 29 ) END * COUNT ( * ) - - + 15 + 48 - + + 73 * 39 * - 54 / COUNT ( * ) + + 63
----
NULL

query I rowsort
SELECT ALL + 52 * + 38 + 3 AS col1
----
1979

query I rowsort
SELECT + 58 * 88
----
5104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8893
SELECT ALL + 2 * CAST( NULL AS SIGNED ) + 21
----
NULL

skipif mysql # not compatible
query I rowsort label-8893
SELECT ALL + 2 * CAST ( NULL AS INTEGER ) + 21
----
NULL

query I rowsort
SELECT DISTINCT - 19 * 47 + - 20 * 9 AS col1
----
-1073

onlyif mysql # DIV for integer division: 
query I rowsort label-8895
SELECT - 45 DIV - 73
----
0

skipif mysql # not compatible
query I rowsort label-8895
SELECT - 45 / - 73
----
0

query I rowsort
SELECT 28 * + 98 + 68
----
2812

query I rowsort
SELECT ALL + ( 84 ) * + 94 + + 29 AS col0
----
7925

onlyif mysql # aggregate syntax: 
query I rowsort label-8898
SELECT ALL NULLIF ( 17, - COUNT( * ) / - 44 ) * + 49 AS col0
----
833

skipif mysql # not compatible
query I rowsort label-8898
SELECT ALL NULLIF ( 17, - COUNT ( * ) / - 44 ) * + 49 AS col0
----
833

onlyif mysql # aggregate syntax: 
query I rowsort label-8899
SELECT - MAX( 15 ) AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-8899
SELECT - MAX ( 15 ) AS col0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-8900
SELECT + COUNT( * ) + - 4 * - 37
----
149

skipif mysql # not compatible
query I rowsort label-8900
SELECT + COUNT ( * ) + - 4 * - 37
----
149

onlyif mysql # aggregate syntax: 
query I rowsort label-8901
SELECT SUM( - 82 ) AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-8901
SELECT SUM ( - 82 ) AS col0
----
-82

query I rowsort
SELECT - NULLIF ( 44, 51 * 82 - 28 ) AS col1
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-8903
SELECT ALL 9 + 29 * - COUNT( * )
----
-20

skipif mysql # not compatible
query I rowsort label-8903
SELECT ALL 9 + 29 * - COUNT ( * )
----
-20

query I rowsort
SELECT ALL 21 * - 79
----
-1659

onlyif mysql # aggregate syntax: 
query I rowsort label-8905
SELECT ALL ( + COUNT( * ) ) * - 57 AS col2
----
-57

skipif mysql # not compatible
query I rowsort label-8905
SELECT ALL ( + COUNT ( * ) ) * - 57 AS col2
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-8906
SELECT + SUM( ALL + 54 ) * 53
----
2862

skipif mysql # not compatible
query I rowsort label-8906
SELECT + SUM ( ALL + 54 ) * 53
----
2862

onlyif mysql # aggregate syntax: 
query I rowsort label-8907
SELECT DISTINCT CASE 97 WHEN MIN( 6 ) / - 81 THEN + 31 * ( MIN( DISTINCT + 38 ) ) - 24 WHEN COUNT( * ) * + 35 THEN NULL ELSE ( ( 13 ) ) END
----
13

skipif mysql # not compatible
query I rowsort label-8907
SELECT DISTINCT CASE 97 WHEN MIN ( 6 ) / - 81 THEN + 31 * ( MIN ( DISTINCT + 38 ) ) - 24 WHEN COUNT ( * ) * + 35 THEN NULL ELSE ( ( 13 ) ) END
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8908
SELECT - CAST( + 50 AS SIGNED )
----
-50

skipif mysql # not compatible
query I rowsort label-8908
SELECT - CAST ( + 50 AS INTEGER )
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8909
SELECT + SUM( 1 ) - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8909
SELECT + SUM ( 1 ) - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT + ( + 54 ) * 86 AS col2
----
4644

query I rowsort
SELECT + 32 + 27
----
59

query I rowsort
SELECT DISTINCT 2 * - 47 col2
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-8913
SELECT + ( 49 ) * COUNT( * ) AS col0
----
49

skipif mysql # not compatible
query I rowsort label-8913
SELECT + ( 49 ) * COUNT ( * ) AS col0
----
49

query I rowsort
SELECT - 31 * + 95
----
-2945

query I rowsort
SELECT DISTINCT + 57 * 65
----
3705

onlyif mysql # aggregate syntax: 
query I rowsort label-8916
SELECT + COUNT( * ) - 42 * 92
----
-3863

skipif mysql # not compatible
query I rowsort label-8916
SELECT + COUNT ( * ) - 42 * 92
----
-3863

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8917
SELECT DISTINCT 66 * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8917
SELECT DISTINCT 66 * + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL ( ( - 47 ) ) AS col0
----
-47

query I rowsort
SELECT - 95 * - 61 AS col0
----
5795

onlyif mysql # aggregate syntax: 
query I rowsort label-8920
SELECT DISTINCT 1 * - COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8920
SELECT DISTINCT 1 * - COUNT ( * ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8921
SELECT ALL MAX( ALL + 47 ) AS col0
----
47

skipif mysql # not compatible
query I rowsort label-8921
SELECT ALL MAX ( ALL + 47 ) AS col0
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8922
SELECT COUNT( * ) DIV 19 + 63 AS col0
----
63

skipif mysql # not compatible
query I rowsort label-8922
SELECT COUNT ( * ) / 19 + 63 AS col0
----
63

query I rowsort
SELECT + 59 * + ( 60 )
----
3540

onlyif mysql # DIV for integer division: 
query I rowsort label-8924
SELECT - 51 DIV + 71 - + 40
----
-40

skipif mysql # not compatible
query I rowsort label-8924
SELECT - 51 / + 71 - + 40
----
-40

query I rowsort
SELECT - ( 27 ) * - 34 AS col1
----
918

onlyif mysql # DIV for integer division: 
query I rowsort label-8926
SELECT DISTINCT - 34 DIV 37 + 56
----
56

skipif mysql # not compatible
query I rowsort label-8926
SELECT DISTINCT - 34 / 37 + 56
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8927
SELECT - 18 DIV ( + CASE - CASE + 3 WHEN 99 * CAST( 47 * 92 AS SIGNED ) THEN NULL WHEN 8 THEN NULL ELSE + 50 + 36 END WHEN + 51 + - 95 THEN NULL WHEN + COUNT( * ) THEN 97 ELSE + 48 END * 56 )
----
0

skipif mysql # not compatible
query I rowsort label-8927
SELECT - 18 / ( + CASE - CASE + 3 WHEN 99 * CAST ( 47 * 92 AS INTEGER ) THEN NULL WHEN 8 THEN NULL ELSE + 50 + 36 END WHEN + 51 + - 95 THEN NULL WHEN + COUNT ( * ) THEN 97 ELSE + 48 END * 56 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8928
SELECT DISTINCT 70 DIV COUNT( * ) + 61
----
131

skipif mysql # not compatible
query I rowsort label-8928
SELECT DISTINCT 70 / COUNT ( * ) + 61
----
131

query I rowsort
SELECT - 64 + - 89 * ( - 0 * 76 - + 73 ) AS col1
----
6433

onlyif mysql # aggregate syntax: 
query I rowsort label-8930
SELECT ALL + SUM( ALL + 63 ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-8930
SELECT ALL + SUM ( ALL + 63 ) AS col2
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8931
SELECT ALL + COALESCE ( - 67, 77 DIV 78, + 87 * - 13 + + 87 ) DIV - COUNT( * ) + - 83 * + 85 AS col2
----
-6988

skipif mysql # not compatible
query I rowsort label-8931
SELECT ALL + COALESCE ( - 67, 77 / 78, + 87 * - 13 + + 87 ) / - COUNT ( * ) + - 83 * + 85 AS col2
----
-6988

query I rowsort
SELECT DISTINCT + ( - 91 ) * - 7
----
637

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8933
SELECT ALL + MIN( DISTINCT - CAST( + 56 AS SIGNED ) ) AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-8933
SELECT ALL + MIN ( DISTINCT - CAST ( + 56 AS INTEGER ) ) AS col0
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-8934
SELECT - + 4 * 70 + - CASE - 57 WHEN + MIN( ALL 46 ) + + COUNT( DISTINCT 48 - - 98 ) * 4 THEN NULL WHEN 81 - 40 THEN NULL ELSE - 16 END AS col0
----
-264

skipif mysql # not compatible
query I rowsort label-8934
SELECT - + 4 * 70 + - CASE - 57 WHEN + MIN ( ALL 46 ) + + COUNT ( DISTINCT 48 - - 98 ) * 4 THEN NULL WHEN 81 - 40 THEN NULL ELSE - 16 END AS col0
----
-264

onlyif mysql # DIV for integer division: 
query I rowsort label-8935
SELECT - + 58 + 71 DIV 62 col0
----
-57

skipif mysql # not compatible
query I rowsort label-8935
SELECT - + 58 + 71 / 62 col0
----
-57

query I rowsort
SELECT ALL - - 70 + + 19 AS col2
----
89

query I rowsort
SELECT - 80 - 90
----
-170

onlyif mysql # aggregate syntax: 
query I rowsort label-8938
SELECT - 94 + + COUNT( * ) * + 84
----
-10

skipif mysql # not compatible
query I rowsort label-8938
SELECT - 94 + + COUNT ( * ) * + 84
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-8939
SELECT ALL - - SUM( DISTINCT 91 ) AS col2
----
91

skipif mysql # not compatible
query I rowsort label-8939
SELECT ALL - - SUM ( DISTINCT 91 ) AS col2
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8940
SELECT ALL 46 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8940
SELECT ALL 46 / + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8941
SELECT + 99 * 46 + MIN( DISTINCT ( 61 ) ) DIV 26 AS col2
----
4556

skipif mysql # not compatible
query I rowsort label-8941
SELECT + 99 * 46 + MIN ( DISTINCT ( 61 ) ) / 26 AS col2
----
4556

query I rowsort
SELECT 39 + + 91
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-8943
SELECT + COUNT( * ) - ( 70 ) AS col0
----
-69

skipif mysql # not compatible
query I rowsort label-8943
SELECT + COUNT ( * ) - ( 70 ) AS col0
----
-69

query I rowsort
SELECT + ( ( - 12 ) ) + + 44
----
32

query I rowsort
SELECT ( + 24 ) + + 46
----
70

query I rowsort
SELECT ALL - 87 * 56
----
-4872

query I rowsort
SELECT 31 * 67 AS col1
----
2077

onlyif mysql # aggregate syntax: 
query I rowsort label-8948
SELECT + SUM( + 74 ) + ( + 96 ) col1
----
170

skipif mysql # not compatible
query I rowsort label-8948
SELECT + SUM ( + 74 ) + ( + 96 ) col1
----
170

onlyif mysql # aggregate syntax: 
query I rowsort label-8949
SELECT ALL - 70 * MAX( 90 * + 30 ) AS col1
----
-189000

skipif mysql # not compatible
query I rowsort label-8949
SELECT ALL - 70 * MAX ( 90 * + 30 ) AS col1
----
-189000

query I rowsort
SELECT - 79 * + 93 AS col1
----
-7347

query I rowsort
SELECT ALL - ( - NULLIF ( 14, - 74 ) ) * - ( - 24 * - 17 )
----
-5712

query I rowsort
SELECT DISTINCT + 68 * + 57 AS col0
----
3876

query I rowsort
SELECT 94 + NULLIF ( + 89, + 27 - - 37 ) AS col1
----
183

query I rowsort
SELECT 0 * + 28
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8955
SELECT SUM( DISTINCT - + 67 ) + COUNT( * )
----
-66

skipif mysql # not compatible
query I rowsort label-8955
SELECT SUM ( DISTINCT - + 67 ) + COUNT ( * )
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-8956
SELECT 19 + - - COUNT( * ) AS col0
----
20

skipif mysql # not compatible
query I rowsort label-8956
SELECT 19 + - - COUNT ( * ) AS col0
----
20

query I rowsort
SELECT 90 * 73
----
6570

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8958
SELECT DISTINCT 48 + + - 17 + + NULLIF ( 97, COALESCE ( COUNT( * ), + CAST( - NULLIF ( + 45, - 80 ) AS DECIMAL ) * - COUNT( * ) - COUNT( * ) ) )
----
128

skipif mysql # not compatible
query I rowsort label-8958
SELECT DISTINCT 48 + + - 17 + + NULLIF ( 97, COALESCE ( COUNT ( * ), + CAST ( - NULLIF ( + 45, - 80 ) AS REAL ) * - COUNT ( * ) - COUNT ( * ) ) )
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-8959
SELECT ALL - ( - COUNT( * ) ) + 65
----
66

skipif mysql # not compatible
query I rowsort label-8959
SELECT ALL - ( - COUNT ( * ) ) + 65
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-8960
SELECT DISTINCT 12 + COUNT( * )
----
13

skipif mysql # not compatible
query I rowsort label-8960
SELECT DISTINCT 12 + COUNT ( * )
----
13

query I rowsort
SELECT - 59 * + + NULLIF ( 48, - 76 ) + - 62
----
-2894

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8962
SELECT ALL CASE - 71 WHEN - 68 - - 35 THEN - 76 - COALESCE ( ( - 39 ), + 81 * + 79, 28 ) WHEN 34 THEN 19 + + CAST( NULL AS DECIMAL ) END + + 89 / 40
----
NULL

skipif mysql # not compatible
query I rowsort label-8962
SELECT ALL CASE - 71 WHEN - 68 - - 35 THEN - 76 - COALESCE ( ( - 39 ), + 81 * + 79, 28 ) WHEN 34 THEN 19 + + CAST ( NULL AS REAL ) END + + 89 / 40
----
NULL

query I rowsort
SELECT ALL 47 + - ( + 3 )
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8964
SELECT COUNT( * ) DIV + 58
----
0

skipif mysql # not compatible
query I rowsort label-8964
SELECT COUNT ( * ) / + 58
----
0

query I rowsort
SELECT - 59 * 92 * - 19 - - 97 * + 84 AS col2
----
111280

onlyif mysql # aggregate syntax: 
query I rowsort label-8966
SELECT ALL - CASE - MAX( 35 ) WHEN COUNT( * ) * - ( 68 ) THEN NULL WHEN 93 * 16 THEN + CASE 50 WHEN + 69 THEN + 99 END ELSE + COUNT( * ) * 52 END AS col1
----
-52

skipif mysql # not compatible
query I rowsort label-8966
SELECT ALL - CASE - MAX ( 35 ) WHEN COUNT ( * ) * - ( 68 ) THEN NULL WHEN 93 * 16 THEN + CASE 50 WHEN + 69 THEN + 99 END ELSE + COUNT ( * ) * 52 END AS col1
----
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8967
SELECT DISTINCT - CAST( + SUM( DISTINCT + 91 ) AS SIGNED ) + + 69 AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-8967
SELECT DISTINCT - CAST ( + SUM ( DISTINCT + 91 ) AS INTEGER ) + + 69 AS col1
----
-22

query I rowsort
SELECT 54 * ( 42 )
----
2268

query I rowsort
SELECT 48 + + 53 + + 43 AS col1
----
144

query I rowsort
SELECT ALL - ( + 46 ) AS col2
----
-46

query I rowsort
SELECT - 78 * - - 67
----
-5226

query I rowsort
SELECT ALL + 26 * - - 89 + 93
----
2407

onlyif mysql # aggregate syntax: 
query I rowsort label-8973
SELECT ALL + NULLIF ( 29, - 59 ) - COUNT( * ) * + 99 AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-8973
SELECT ALL + NULLIF ( 29, - 59 ) - COUNT ( * ) * + 99 AS col0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-8974
SELECT ALL - - 67 * 87 * - 70 + COUNT( * ) col0
----
-408029

skipif mysql # not compatible
query I rowsort label-8974
SELECT ALL - - 67 * 87 * - 70 + COUNT ( * ) col0
----
-408029

query I rowsort
SELECT DISTINCT - - 25 * 14 * 18 AS col2
----
6300

onlyif mysql # DIV for integer division: 
query I rowsort label-8976
SELECT 66 * - 89 - - 19 DIV 84
----
-5874

skipif mysql # not compatible
query I rowsort label-8976
SELECT 66 * - 89 - - 19 / 84
----
-5874

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8977
SELECT ALL - 91 * + - COUNT( ALL 1 ) * CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8977
SELECT ALL - 91 * + - COUNT ( ALL 1 ) * CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8978
SELECT MIN( ALL + ( 42 ) ) * 81 + 50 DIV 97
----
3402

skipif mysql # not compatible
query I rowsort label-8978
SELECT MIN ( ALL + ( 42 ) ) * 81 + 50 / 97
----
3402

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8979
SELECT 46 * - CAST( 1 AS SIGNED ) AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-8979
SELECT 46 * - CAST ( 1 AS INTEGER ) AS col1
----
-46

query I rowsort
SELECT ALL - ( + + 36 ) * 59 AS col1
----
-2124

onlyif mysql # aggregate syntax: 
query I rowsort label-8981
SELECT DISTINCT COALESCE ( - 6, - COUNT( * ) )
----
-6

skipif mysql # not compatible
query I rowsort label-8981
SELECT DISTINCT COALESCE ( - 6, - COUNT ( * ) )
----
-6

query I rowsort
SELECT ALL 65 * - 42 - NULLIF ( 11 + 30, + 88 )
----
-2771

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8983
SELECT + COALESCE ( 20, + NULLIF ( ( CAST( NULL AS SIGNED ) ), - 51 ) * 75 ) * 54
----
1080

skipif mysql # not compatible
query I rowsort label-8983
SELECT + COALESCE ( 20, + NULLIF ( ( CAST ( NULL AS INTEGER ) ), - 51 ) * 75 ) * 54
----
1080

onlyif mysql # aggregate syntax: 
query I rowsort label-8984
SELECT ALL - NULLIF ( - COUNT( * ), - 43 * + 90 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8984
SELECT ALL - NULLIF ( - COUNT ( * ), - 43 * + 90 ) AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8985
SELECT DISTINCT + 30 DIV + COUNT( * )
----
30

skipif mysql # not compatible
query I rowsort label-8985
SELECT DISTINCT + 30 / + COUNT ( * )
----
30

query I rowsort
SELECT 74 + - + 56
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-8987
SELECT ALL + 13 + - 38 * 24 + - COUNT( * )
----
-900

skipif mysql # not compatible
query I rowsort label-8987
SELECT ALL + 13 + - 38 * 24 + - COUNT ( * )
----
-900

query I rowsort
SELECT 84 + + + 9 AS col2
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8989
SELECT COUNT( * ) * - MAX( ALL - 84 )
----
84

skipif mysql # not compatible
query I rowsort label-8989
SELECT COUNT ( * ) * - MAX ( ALL - 84 )
----
84

onlyif mysql # DIV for integer division: 
query II rowsort label-8990
SELECT DISTINCT 67 col2, - 43 DIV - 16 AS col1
----
67
2

skipif mysql # not compatible
query II rowsort label-8990
SELECT DISTINCT 67 col2, - 43 / - 16 AS col1
----
67
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8991
SELECT ALL + COUNT( * ) + + 89 AS col0
----
90

skipif mysql # not compatible
query I rowsort label-8991
SELECT ALL + COUNT ( * ) + + 89 AS col0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-8992
SELECT COUNT( * ) - - 76 + + ( NULLIF ( 78, - 24 * COUNT( * ) + + NULLIF ( - 25 + - COUNT( * ) * 43, - 35 - 31 ) ) ) * 87 AS col1
----
6863

skipif mysql # not compatible
query I rowsort label-8992
SELECT COUNT ( * ) - - 76 + + ( NULLIF ( 78, - 24 * COUNT ( * ) + + NULLIF ( - 25 + - COUNT ( * ) * 43, - 35 - 31 ) ) ) * 87 AS col1
----
6863

query I rowsort
SELECT DISTINCT - 50 * 37
----
-1850

query I rowsort
SELECT ALL 59 + + 60 + + - 58
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8995
SELECT 19 - + CAST( CAST( ( 94 ) AS SIGNED ) AS SIGNED ) + - 17 * ( + 62 - 62 )
----
-75

skipif mysql # not compatible
query I rowsort label-8995
SELECT 19 - + CAST ( CAST ( ( 94 ) AS INTEGER ) AS INTEGER ) + - 17 * ( + 62 - 62 )
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8996
SELECT ALL - COUNT( * ) + - - 33 * + COUNT( * ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-8996
SELECT ALL - COUNT ( * ) + - - 33 * + COUNT ( * ) AS col0
----
32

query I rowsort
SELECT NULLIF ( - 40, - - 66 ) + 47 AS col0
----
7

query I rowsort
SELECT ALL COALESCE ( 59, - ( - 82 ) ) + 13 * 83 AS col2
----
1138

onlyif mysql # DIV for integer division: 
query II rowsort label-8999
SELECT 76 AS col0, ( - + 87 ) * + COALESCE ( - 21 + - 30, - 91 * - NULLIF ( + 34 DIV 49, 99 ) ) - - 38
----
76
4475

skipif mysql # not compatible
query II rowsort label-8999
SELECT 76 AS col0, ( - + 87 ) * + COALESCE ( - 21 + - 30, - 91 * - NULLIF ( + 34 / 49, 99 ) ) - - 38
----
76
4475

query I rowsort
SELECT 9 + + - 74 AS col0
----
-65

query II rowsort
SELECT DISTINCT - 83 AS col1, ( - 60 )
----
-83
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9002
SELECT + 5 DIV + 27 - - - MIN( ALL - 60 ) * COUNT( * )
----
60

skipif mysql # not compatible
query I rowsort label-9002
SELECT + 5 / + 27 - - - MIN ( ALL - 60 ) * COUNT ( * )
----
60

query I rowsort
SELECT CASE 13 WHEN + 13 THEN NULL ELSE - 2 + - 3 END
----
NULL

query I rowsort
SELECT - AVG ( - - 23 ) - - CASE - 21 WHEN 46 THEN - ( + 70 ) END + + 83
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9005
SELECT ALL + 20 * + - 42 * - 6 - - NULLIF ( 1 + 2, - 88 ) DIV + COUNT( * ) AS col2
----
5043

skipif mysql # not compatible
query I rowsort label-9005
SELECT ALL + 20 * + - 42 * - 6 - - NULLIF ( 1 + 2, - 88 ) / + COUNT ( * ) AS col2
----
5043

query I rowsort
SELECT + 99 * 84
----
8316

query I rowsort
SELECT DISTINCT + - COALESCE ( 92, ( 66 ) * 5 ) AS col2
----
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9008
SELECT DISTINCT 41 * 36 * + 79 + 48 * CAST( + 1 AS SIGNED ) AS col1
----
116652

skipif mysql # not compatible
query I rowsort label-9008
SELECT DISTINCT 41 * 36 * + 79 + 48 * CAST ( + 1 AS INTEGER ) AS col1
----
116652

query I rowsort
SELECT DISTINCT + 97 * - 93 + - + 34 * - 12
----
-8613

onlyif mysql # aggregate syntax: 
query I rowsort label-9010
SELECT + 80 + COUNT( + 27 ) * 22 AS col0
----
102

skipif mysql # not compatible
query I rowsort label-9010
SELECT + 80 + COUNT ( + 27 ) * 22 AS col0
----
102

query I rowsort
SELECT DISTINCT 68 * + + 36 AS col2
----
2448

onlyif mysql # aggregate syntax: 
query I rowsort label-9012
SELECT - 27 * - COUNT( * ) + + + 88 + + 50 AS col2
----
165

skipif mysql # not compatible
query I rowsort label-9012
SELECT - 27 * - COUNT ( * ) + + + 88 + + 50 AS col2
----
165

onlyif mysql # aggregate syntax: 
query I rowsort label-9013
SELECT + 69 + - COUNT( DISTINCT + 70 ) + 77 col2
----
145

skipif mysql # not compatible
query I rowsort label-9013
SELECT + 69 + - COUNT ( DISTINCT + 70 ) + 77 col2
----
145

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9014
SELECT + + CAST( NULL AS SIGNED ) + 13 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9014
SELECT + + CAST ( NULL AS INTEGER ) + 13 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9015
SELECT + - 60 col1, - 68 * + COUNT( * )
----
-60
-68

skipif mysql # not compatible
query II rowsort label-9015
SELECT + - 60 col1, - 68 * + COUNT ( * )
----
-60
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-9016
SELECT ALL + + SUM( + + 80 )
----
80

skipif mysql # not compatible
query I rowsort label-9016
SELECT ALL + + SUM ( + + 80 )
----
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9017
SELECT ALL - COUNT( * ) DIV + COUNT( - - 72 )
----
-1

skipif mysql # not compatible
query I rowsort label-9017
SELECT ALL - COUNT ( * ) / + COUNT ( - - 72 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9018
SELECT - - 99 + - - MIN( DISTINCT + 93 ) * 15
----
1494

skipif mysql # not compatible
query I rowsort label-9018
SELECT - - 99 + - - MIN ( DISTINCT + 93 ) * 15
----
1494

onlyif mysql # aggregate syntax: 
query I rowsort label-9019
SELECT DISTINCT COUNT( ALL - 91 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9019
SELECT DISTINCT COUNT ( ALL - 91 ) AS col0
----
1

query II rowsort
SELECT DISTINCT + 11 AS col1, 82 * - - 81 AS col0
----
11
6642

query I rowsort
SELECT ALL - - 56 + - - 12
----
68

query I rowsort
SELECT + ( 65 ) + - 60 + 81 * + 13
----
1058

query I rowsort
SELECT - 41 + + - 21 col2
----
-62

onlyif mysql # DIV for integer division: 
query II rowsort label-9024
SELECT ALL - 81 + - + 65 AS col0, 61 DIV 8
----
-146
7

skipif mysql # not compatible
query II rowsort label-9024
SELECT ALL - 81 + - + 65 AS col0, 61 / 8
----
-146
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9025
SELECT DISTINCT + COUNT( * ) + - + NULLIF ( - CAST( NULL AS SIGNED ), + 98 / - 99 ) * + 50 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9025
SELECT DISTINCT + COUNT ( * ) + - + NULLIF ( - CAST ( NULL AS INTEGER ), + 98 / - 99 ) * + 50 AS col0
----
NULL

query I rowsort
SELECT ALL - 72 + + 64
----
-8

query I rowsort
SELECT ALL + 8 + - + 98
----
-90

query I rowsort
SELECT DISTINCT ( + NULLIF ( 4, + ( - 42 ) * + 76 + 87 ) )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9029
SELECT DISTINCT ( + CASE - - 8 WHEN + - 18 - - NULLIF ( ( COUNT( * ) ), 55 ) THEN NULL ELSE 3 + MAX( DISTINCT 71 ) END )
----
74

skipif mysql # not compatible
query I rowsort label-9029
SELECT DISTINCT ( + CASE - - 8 WHEN + - 18 - - NULLIF ( ( COUNT ( * ) ), 55 ) THEN NULL ELSE 3 + MAX ( DISTINCT 71 ) END )
----
74

query II rowsort
SELECT DISTINCT + 27 + + 44, 83 col0
----
71
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9031
SELECT DISTINCT COALESCE ( 1, - MAX( + 32 ), - 38 * + 77 + + CAST( NULL AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-9031
SELECT DISTINCT COALESCE ( 1, - MAX ( + 32 ), - 38 * + 77 + + CAST ( NULL AS INTEGER ) )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9032
SELECT - 41 + + 2 DIV + + MAX( DISTINCT 20 ) + COUNT( * ) DIV 24 AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-9032
SELECT - 41 + + 2 / + + MAX ( DISTINCT 20 ) + COUNT ( * ) / 24 AS col0
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-9033
SELECT ALL 53 + COUNT( * )
----
54

skipif mysql # not compatible
query I rowsort label-9033
SELECT ALL 53 + COUNT ( * )
----
54

onlyif mysql # DIV for integer division: 
query II rowsort label-9034
SELECT ALL + 82 DIV + 65 col2, - 38
----
1
-38

skipif mysql # not compatible
query II rowsort label-9034
SELECT ALL + 82 / + 65 col2, - 38
----
1
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-9035
SELECT - 29 DIV 37 col0
----
0

skipif mysql # not compatible
query I rowsort label-9035
SELECT - 29 / 37 col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9036
SELECT - 47 + + CAST( + - 42 AS SIGNED )
----
-89

skipif mysql # not compatible
query I rowsort label-9036
SELECT - 47 + + CAST ( + - 42 AS INTEGER )
----
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9037
SELECT DISTINCT + CASE - + CASE + - 34 WHEN 38 + - ( + 91 ) * 18 THEN - 1 * ( 70 / SUM( - NULLIF ( - CAST( NULL AS SIGNED ), 73 + - 62 ) ) ) END WHEN CAST( NULL AS SIGNED ) - SUM( + 0 ) THEN NULL ELSE 95 END - 90 * 62 AS col0
----
-5485

skipif mysql # not compatible
query I rowsort label-9037
SELECT DISTINCT + CASE - + CASE + - 34 WHEN 38 + - ( + 91 ) * 18 THEN - 1 * ( 70 / SUM ( - NULLIF ( - CAST ( NULL AS INTEGER ), 73 + - 62 ) ) ) END WHEN CAST ( NULL AS INTEGER ) - SUM ( + 0 ) THEN NULL ELSE 95 END - 90 * 62 AS col0
----
-5485

onlyif mysql # aggregate syntax: 
query I rowsort label-9038
SELECT DISTINCT + SUM( 56 ) AS col0
----
56

skipif mysql # not compatible
query I rowsort label-9038
SELECT DISTINCT + SUM ( 56 ) AS col0
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-9039
SELECT DISTINCT - 32 DIV - + 79 * + ( + 19 ) * + 23 - 34 * - 47 AS col0
----
1598

skipif mysql # not compatible
query I rowsort label-9039
SELECT DISTINCT - 32 / - + 79 * + ( + 19 ) * + 23 - 34 * - 47 AS col0
----
1598

onlyif mysql # aggregate syntax: 
query I rowsort label-9040
SELECT + 93 + + 37 + - 96 + - + COUNT( * ) * - 76
----
110

skipif mysql # not compatible
query I rowsort label-9040
SELECT + 93 + + 37 + - 96 + - + COUNT ( * ) * - 76
----
110

query I rowsort
SELECT DISTINCT + 57 * 34 * + 17
----
32946

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9042
SELECT - 17 * - ( - CAST( + CASE 14 WHEN + 47 * + 7 THEN NULL ELSE - 80 * 93 END AS SIGNED ) ) * 95
----
12015600

skipif mysql # not compatible
query I rowsort label-9042
SELECT - 17 * - ( - CAST ( + CASE 14 WHEN + 47 * + 7 THEN NULL ELSE - 80 * 93 END AS INTEGER ) ) * 95
----
12015600

onlyif mysql # aggregate syntax: 
query I rowsort label-9043
SELECT + MAX( ALL - 50 ) * + + 77 AS col0
----
-3850

skipif mysql # not compatible
query I rowsort label-9043
SELECT + MAX ( ALL - 50 ) * + + 77 AS col0
----
-3850

onlyif mysql # aggregate syntax: 
query I rowsort label-9044
SELECT DISTINCT + - COUNT( - + 46 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9044
SELECT DISTINCT + - COUNT ( - + 46 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9045
SELECT ALL + COUNT( ALL - 77 )
----
1

skipif mysql # not compatible
query I rowsort label-9045
SELECT ALL + COUNT ( ALL - 77 )
----
1

query I rowsort
SELECT + - 63 + + 44 + 51 - - 79 * + 50 * 52 AS col2
----
205432

query I rowsort
SELECT DISTINCT 2 * + 5 AS col1
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9048
SELECT + ( + CASE - COUNT( * ) WHEN 79 + + COUNT( * ) THEN NULL WHEN 25 THEN 36 ELSE - 8 END ) col1
----
-8

skipif mysql # not compatible
query I rowsort label-9048
SELECT + ( + CASE - COUNT ( * ) WHEN 79 + + COUNT ( * ) THEN NULL WHEN 25 THEN 36 ELSE - 8 END ) col1
----
-8

query I rowsort
SELECT + 89 * + 34 AS col0
----
3026

onlyif mysql # aggregate syntax: 
query I rowsort label-9050
SELECT ALL ( - 2 ) * + 59 * - 10 + 75 * NULLIF ( + NULLIF ( - ( 16 ), SUM( DISTINCT - 90 ) ), + COUNT( * ) / + 68 )
----
-20

skipif mysql # not compatible
query I rowsort label-9050
SELECT ALL ( - 2 ) * + 59 * - 10 + 75 * NULLIF ( + NULLIF ( - ( 16 ), SUM ( DISTINCT - 90 ) ), + COUNT ( * ) / + 68 )
----
-20

query I rowsort
SELECT ALL + 46 * 95 + + - ( + - 8 ) + 96 AS col1
----
4474

query I rowsort
SELECT + + 36 * - - 12 - - 8
----
440

onlyif mysql # aggregate syntax: 
query I rowsort label-9053
SELECT DISTINCT + 3 * - + 90 + + 47 * - 62 + + COUNT( - 61 )
----
-3183

skipif mysql # not compatible
query I rowsort label-9053
SELECT DISTINCT + 3 * - + 90 + + 47 * - 62 + + COUNT ( - 61 )
----
-3183

onlyif mysql # aggregate syntax: 
query I rowsort label-9054
SELECT ALL - 68 * + - 7 + + COUNT( * )
----
477

skipif mysql # not compatible
query I rowsort label-9054
SELECT ALL - 68 * + - 7 + + COUNT ( * )
----
477

onlyif mysql # aggregate syntax: 
query I rowsort label-9055
SELECT ALL + 25 * - 19 * + - 97 + + SUM( ALL - + CASE 83 WHEN - 30 THEN NULL ELSE + ( - COALESCE ( 50, 48 * + 58 ) ) * - 74 END ) + ( - 2 ) col0
----
42373

skipif mysql # not compatible
query I rowsort label-9055
SELECT ALL + 25 * - 19 * + - 97 + + SUM ( ALL - + CASE 83 WHEN - 30 THEN NULL ELSE + ( - COALESCE ( 50, 48 * + 58 ) ) * - 74 END ) + ( - 2 ) col0
----
42373

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9056
SELECT - 65 DIV MAX( DISTINCT + 53 ) AS col1, + 87 * + COUNT( * )
----
-1
87

skipif mysql # not compatible
query II rowsort label-9056
SELECT - 65 / MAX ( DISTINCT + 53 ) AS col1, + 87 * + COUNT ( * )
----
-1
87

query I rowsort
SELECT ALL - ( 49 ) * - 72 * - 19
----
-67032

query I rowsort
SELECT - 83 * 47
----
-3901

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9059
SELECT DISTINCT 89 DIV + + SUM( DISTINCT + 90 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9059
SELECT DISTINCT 89 / + + SUM ( DISTINCT + 90 ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9060
SELECT ALL + CASE + 16 WHEN + 9 + - - 88 + + 17 + - 50 THEN + COUNT( * ) WHEN + COUNT( * ) THEN NULL ELSE NULL END - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9060
SELECT ALL + CASE + 16 WHEN + 9 + - - 88 + + 17 + - 50 THEN + COUNT ( * ) WHEN + COUNT ( * ) THEN NULL ELSE NULL END - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9061
SELECT ALL COALESCE ( NULLIF ( - - 74, 37 ), - + 67 * - ( + COALESCE ( + 19, 69, SUM( ALL CAST( NULL AS SIGNED ) ) ) * COALESCE ( + 30, 21 ) ), - 97 - COALESCE ( 94, + COALESCE ( + 61, 25 * COUNT( * ), - 2 ), 46 ) * - 70 ) AS col2
----
74

skipif mysql # not compatible
query I rowsort label-9061
SELECT ALL COALESCE ( NULLIF ( - - 74, 37 ), - + 67 * - ( + COALESCE ( + 19, 69, SUM ( ALL CAST ( NULL AS INTEGER ) ) ) * COALESCE ( + 30, 21 ) ), - 97 - COALESCE ( 94, + COALESCE ( + 61, 25 * COUNT ( * ), - 2 ), 46 ) * - 70 ) AS col2
----
74

query II rowsort
SELECT + 29 + + ( - - 61 ) col1, 47 * + 30 col2
----
90
1410

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9063
SELECT CAST( NULL AS SIGNED ) + + 4 + COUNT( * ) * + 98
----
NULL

skipif mysql # not compatible
query I rowsort label-9063
SELECT CAST ( NULL AS INTEGER ) + + 4 + COUNT ( * ) * + 98
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9064
SELECT 54 * + MIN( 24 ) AS col0
----
1296

skipif mysql # not compatible
query I rowsort label-9064
SELECT 54 * + MIN ( 24 ) AS col0
----
1296

query I rowsort
SELECT ALL + 78 * + 31
----
2418

query I rowsort
SELECT 25 * 80
----
2000

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9067
SELECT 28 + + COALESCE ( 77, NULLIF ( 96, CASE 38 WHEN 40 THEN 22 END * + 34 ) ) DIV COUNT( * ) AS col0
----
105

skipif mysql # not compatible
query I rowsort label-9067
SELECT 28 + + COALESCE ( 77, NULLIF ( 96, CASE 38 WHEN 40 THEN 22 END * + 34 ) ) / COUNT ( * ) AS col0
----
105

query II rowsort
SELECT 39, + 87 AS col0
----
39
87

query II rowsort
SELECT - 35, - 62 * + 83 AS col0
----
-35
-5146

query I rowsort
SELECT 44 - + - 39 AS col1
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-9071
SELECT 53 + + COUNT( * ) col0
----
54

skipif mysql # not compatible
query I rowsort label-9071
SELECT 53 + + COUNT ( * ) col0
----
54

query II rowsort
SELECT ALL 45 AS col0, 6
----
45
6

query II rowsort
SELECT ALL 46, 77 AS col1
----
46
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9074
SELECT COUNT( * ) * 80 * 2 AS col0
----
160

skipif mysql # not compatible
query I rowsort label-9074
SELECT COUNT ( * ) * 80 * 2 AS col0
----
160

query I rowsort
SELECT - 15 + - 30 + + - 78 * 28 * + 86 + 48 AS col1
----
-187821

onlyif mysql # aggregate syntax: 
query II rowsort label-9076
SELECT + 12, - COUNT( * ) col2
----
12
-1

skipif mysql # not compatible
query II rowsort label-9076
SELECT + 12, - COUNT ( * ) col2
----
12
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-9077
SELECT DISTINCT - - 63 AS col1, + 60 - - 17 + - 97 DIV 9 AS col2
----
63
67

skipif mysql # not compatible
query II rowsort label-9077
SELECT DISTINCT - - 63 AS col1, + 60 - - 17 + - 97 / 9 AS col2
----
63
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9078
SELECT ALL - COUNT( * ) * - MAX( ALL - 9 ) + + 24 - - ( 77 ) * 20
----
1555

skipif mysql # not compatible
query I rowsort label-9078
SELECT ALL - COUNT ( * ) * - MAX ( ALL - 9 ) + + 24 - - ( 77 ) * 20
----
1555

onlyif mysql # aggregate syntax: 
query I rowsort label-9079
SELECT ( - - 49 ) * - - COUNT( * ) AS col1
----
49

skipif mysql # not compatible
query I rowsort label-9079
SELECT ( - - 49 ) * - - COUNT ( * ) AS col1
----
49

query I rowsort
SELECT DISTINCT 86 * - 55 * 74 * + 98 AS col1
----
-34301960

onlyif mysql # aggregate syntax: 
query II rowsort label-9081
SELECT ALL 91 + - COUNT( * ) + + + 24 AS col0, 12 + - + 40 * 70
----
114
-2788

skipif mysql # not compatible
query II rowsort label-9081
SELECT ALL 91 + - COUNT ( * ) + + + 24 AS col0, 12 + - + 40 * 70
----
114
-2788

query I rowsort
SELECT ALL - - 77 * + 80 AS col1
----
6160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9083
SELECT DISTINCT - 21 + 56 + 52 + - CAST( - 71 AS SIGNED )
----
158

skipif mysql # not compatible
query I rowsort label-9083
SELECT DISTINCT - 21 + 56 + 52 + - CAST ( - 71 AS INTEGER )
----
158

query II rowsort
SELECT ALL - 31, 48 AS col0
----
-31
48

query I rowsort
SELECT - 87 * + 33 * - ( - + 25 ) AS col1
----
-71775

query I rowsort
SELECT ALL + 51 + + 70
----
121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9087
SELECT 51 - + + CAST( - - 72 AS SIGNED )
----
-21

skipif mysql # not compatible
query I rowsort label-9087
SELECT 51 - + + CAST ( - - 72 AS INTEGER )
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9088
SELECT + + CAST( NULL AS SIGNED ) * 17 + 67 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9088
SELECT + + CAST ( NULL AS INTEGER ) * 17 + 67 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9089
SELECT ALL COUNT( ALL + 23 ) + - COALESCE ( - 12, + 50, - 81 ) AS col0
----
13

skipif mysql # not compatible
query I rowsort label-9089
SELECT ALL COUNT ( ALL + 23 ) + - COALESCE ( - 12, + 50, - 81 ) AS col0
----
13

query I rowsort
SELECT 0 + - 30 AS col0
----
-30

query II rowsort
SELECT + 99, 19 + - 67 col1
----
99
-48

query I rowsort
SELECT ALL 84 * - + 30
----
-2520

onlyif mysql # aggregate syntax: 
query I rowsort label-9093
SELECT 9 + + 2 * + - MIN( DISTINCT + 10 ) - + 61
----
-72

skipif mysql # not compatible
query I rowsort label-9093
SELECT 9 + + 2 * + - MIN ( DISTINCT + 10 ) - + 61
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9094
SELECT ALL - NULLIF ( + 73, + 68 ) + CAST( - + COUNT( * ) AS SIGNED ) * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9094
SELECT ALL - NULLIF ( + 73, + 68 ) + CAST ( - + COUNT ( * ) AS INTEGER ) * CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9095
SELECT DISTINCT 30 * - NULLIF ( + CAST( NULL AS SIGNED ), + + 15 ) / - 13 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9095
SELECT DISTINCT 30 * - NULLIF ( + CAST ( NULL AS INTEGER ), + + 15 ) / - 13 AS col1
----
NULL

query II rowsort
SELECT DISTINCT 60 AS col2, 94 * - 46
----
60
-4324

query I rowsort
SELECT ALL 48 * + + 12 * ( 41 ) * - 45 * + 0 - 29 * 75
----
-2175

query I rowsort
SELECT 99 * - + 46 AS col2
----
-4554

onlyif mysql # aggregate syntax: 
query II rowsort label-9099
SELECT NULLIF ( 77, + 34 ) + - 66 col0, 40 * - COUNT( * ) AS col0
----
11
-40

skipif mysql # not compatible
query II rowsort label-9099
SELECT NULLIF ( 77, + 34 ) + - 66 col0, 40 * - COUNT ( * ) AS col0
----
11
-40

onlyif mysql # DIV for integer division: 
query II rowsort label-9100
SELECT ALL 66 AS col1, - 21 DIV + + 97
----
66
0

skipif mysql # not compatible
query II rowsort label-9100
SELECT ALL 66 AS col1, - 21 / + + 97
----
66
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9101
SELECT DISTINCT 83 - + COUNT( * ) col1
----
82

skipif mysql # not compatible
query I rowsort label-9101
SELECT DISTINCT 83 - + COUNT ( * ) col1
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9102
SELECT ALL 69 AS col2, + CASE + - 54 WHEN - 99 * + + MIN( DISTINCT 89 ) - CASE MIN( DISTINCT + 77 ) WHEN 4 THEN - CAST( + 13 AS SIGNED ) WHEN 57 + 49 THEN NULL END / - 17 THEN - 50 WHEN + 46 * 1 THEN NULL WHEN COUNT( * ) THEN AVG ( + ( + 36 ) ) END - COUNT( * )
----
69
NULL

skipif mysql # not compatible
query II rowsort label-9102
SELECT ALL 69 AS col2, + CASE + - 54 WHEN - 99 * + + MIN ( DISTINCT 89 ) - CASE MIN ( DISTINCT + 77 ) WHEN 4 THEN - CAST ( + 13 AS INTEGER ) WHEN 57 + 49 THEN NULL END / - 17 THEN - 50 WHEN + 46 * 1 THEN NULL WHEN COUNT ( * ) THEN AVG ( + ( + 36 ) ) END - COUNT ( * )
----
69
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9103
SELECT 25 * - MAX( 91 ) * 27 AS col2
----
-61425

skipif mysql # not compatible
query I rowsort label-9103
SELECT 25 * - MAX ( 91 ) * 27 AS col2
----
-61425

onlyif mysql # DIV for integer division: 
query II rowsort label-9104
SELECT 73 AS col1, + 58 DIV + - 19 AS col0
----
73
-3

skipif mysql # not compatible
query II rowsort label-9104
SELECT 73 AS col1, + 58 / + - 19 AS col0
----
73
-3

query II rowsort
SELECT 63 + + 77 AS col1, - 32
----
140
-32

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9106
SELECT DISTINCT 28 AS col1, COUNT( ALL + 72 ) + + 60 - + + 26 DIV - COUNT( * ) AS col2
----
28
87

skipif mysql # not compatible
query II rowsort label-9106
SELECT DISTINCT 28 AS col1, COUNT ( ALL + 72 ) + + 60 - + + 26 / - COUNT ( * ) AS col2
----
28
87

onlyif mysql # aggregate syntax: 
query I rowsort label-9107
SELECT COUNT( DISTINCT 13 ) * - + 7 * + 93 * - 11
----
7161

skipif mysql # not compatible
query I rowsort label-9107
SELECT COUNT ( DISTINCT 13 ) * - + 7 * + 93 * - 11
----
7161

query II rowsort
SELECT ALL 90, - 96 col1
----
90
-96

query II rowsort
SELECT 60 * - - 70 AS col0, 49
----
4200
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-9110
SELECT ALL 92 col2, - 32 - COUNT( 45 ) / + + ( - 5 ) / - CAST( CAST( NULL AS SIGNED ) * - 34 AS DECIMAL ) AS col2
----
92
NULL

skipif mysql # not compatible
query II rowsort label-9110
SELECT ALL 92 col2, - 32 - COUNT ( 45 ) / + + ( - 5 ) / - CAST ( CAST ( NULL AS INTEGER ) * - 34 AS REAL ) AS col2
----
92
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9111
SELECT ALL NULLIF ( 38, NULLIF ( AVG ( + 94 ), CAST( COUNT( * ) AS SIGNED ) DIV - ( + 17 + 54 ) ) ) DIV 10 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-9111
SELECT ALL NULLIF ( 38, NULLIF ( AVG ( + 94 ), CAST ( COUNT ( * ) AS INTEGER ) / - ( + 17 + 54 ) ) ) / 10 AS col2
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-9112
SELECT - 45 AS col2, - ( + COUNT( * ) )
----
-45
-1

skipif mysql # not compatible
query II rowsort label-9112
SELECT - 45 AS col2, - ( + COUNT ( * ) )
----
-45
-1

query II rowsort
SELECT - 23 AS col1, 56 AS col0
----
-23
56

query I rowsort
SELECT 28 * 82 AS col2
----
2296

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9115
SELECT - CASE 66 WHEN + 79 - 70 THEN NULL WHEN - 19 THEN + + 90 * COUNT( * ) WHEN 18 * + 93 THEN - 26 * + 4 + 87 ELSE - ( 65 ) / 99 END * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9115
SELECT - CASE 66 WHEN + 79 - 70 THEN NULL WHEN - 19 THEN + + 90 * COUNT ( * ) WHEN 18 * + 93 THEN - 26 * + 4 + 87 ELSE - ( 65 ) / 99 END * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9116
SELECT DISTINCT - 74 * - - NULLIF ( - COALESCE ( 22, COUNT( * ) ), - 6 )
----
1628

skipif mysql # not compatible
query I rowsort label-9116
SELECT DISTINCT - 74 * - - NULLIF ( - COALESCE ( 22, COUNT ( * ) ), - 6 )
----
1628

onlyif mysql # aggregate syntax: 
query I rowsort label-9117
SELECT ALL - - COUNT( * ) + COALESCE ( 66, + 49 ) * - - ( + 32 ) AS col1
----
2113

skipif mysql # not compatible
query I rowsort label-9117
SELECT ALL - - COUNT ( * ) + COALESCE ( 66, + 49 ) * - - ( + 32 ) AS col1
----
2113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9118
SELECT + NULLIF ( 37, COALESCE ( + 34, - + CASE 77 WHEN - CASE - CAST( NULL AS SIGNED ) WHEN 35 THEN 59 + + COUNT( * ) WHEN 63 THEN + 50 + 55 ELSE COUNT( * ) * ( + COUNT( 22 ) * COUNT( * ) ) + + 36 END * 7 THEN NULL WHEN + 39 * - 94 THEN NULL WHEN - 13 THEN MAX( - CAST( NULL AS SIGNED ) ) * COALESCE ( - SUM( + 95 ) * 99, MAX( ALL 96 ) * - 4, SUM( ALL CASE - 42 WHEN 65 THEN NULL ELSE 48 / 50 END ) - 47 ) END ) + ( COUNT( * ) ) * + 81 ) + 68 AS col2
----
105

skipif mysql # not compatible
query I rowsort label-9118
SELECT + NULLIF ( 37, COALESCE ( + 34, - + CASE 77 WHEN - CASE - CAST ( NULL AS INTEGER ) WHEN 35 THEN 59 + + COUNT ( * ) WHEN 63 THEN + 50 + 55 ELSE COUNT ( * ) * ( + COUNT ( 22 ) * COUNT ( * ) ) + + 36 END * 7 THEN NULL WHEN + 39 * - 94 THEN NULL WHEN - 13 THEN MAX ( - CAST ( NULL AS INTEGER ) ) * COALESCE ( - SUM ( + 95 ) * 99, MAX ( ALL 96 ) * - 4, SUM ( ALL CASE - 42 WHEN 65 THEN NULL ELSE 48 / 50 END ) - 47 ) END ) + ( COUNT ( * ) ) * + 81 ) + 68 AS col2
----
105

query II rowsort
SELECT DISTINCT - 38 AS col0, - 29
----
-38
-29

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9120
SELECT ALL - + 41 DIV + + CAST( + - 64 AS SIGNED ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9120
SELECT ALL - + 41 / + + CAST ( + - 64 AS INTEGER ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9121
SELECT + - ( - - SUM( + 6 ) ) AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-9121
SELECT + - ( - - SUM ( + 6 ) ) AS col0
----
-6

query I rowsort
SELECT ALL - 46 * + + 61 + 56 AS col1
----
-2750

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9123
SELECT + 11 * - 38 + + - NULLIF ( 43, + - CASE 35 WHEN CASE + 78 WHEN + 43 THEN CASE SUM( CAST( ( - 57 ) AS SIGNED ) ) WHEN + MIN( DISTINCT 54 ) THEN + 42 / 69 END ELSE 10 END THEN NULL WHEN NULLIF ( 92, - 99 ) * 43 + 53 * - ( 96 ) THEN - 91 END ) * 63 col1
----
-3127

skipif mysql # not compatible
query I rowsort label-9123
SELECT + 11 * - 38 + + - NULLIF ( 43, + - CASE 35 WHEN CASE + 78 WHEN + 43 THEN CASE SUM ( CAST ( ( - 57 ) AS INTEGER ) ) WHEN + MIN ( DISTINCT 54 ) THEN + 42 / 69 END ELSE 10 END THEN NULL WHEN NULLIF ( 92, - 99 ) * 43 + 53 * - ( 96 ) THEN - 91 END ) * 63 col1
----
-3127

onlyif mysql # DIV for integer division: 
query II rowsort label-9124
SELECT - 64 AS col0, + 64 + + ( 66 ) * 96 + - 39 DIV 14 AS col1
----
-64
6398

skipif mysql # not compatible
query II rowsort label-9124
SELECT - 64 AS col0, + 64 + + ( 66 ) * 96 + - 39 / 14 AS col1
----
-64
6398

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9125
SELECT 66 + CAST( - SUM( DISTINCT - 48 ) AS SIGNED ) AS col1, - COUNT( * )
----
114
-1

skipif mysql # not compatible
query II rowsort label-9125
SELECT 66 + CAST ( - SUM ( DISTINCT - 48 ) AS INTEGER ) AS col1, - COUNT ( * )
----
114
-1

query II rowsort
SELECT + + 69 AS col2, + 12
----
69
12

onlyif mysql # aggregate syntax: 
query I rowsort label-9127
SELECT 12 + + SUM( 42 )
----
54

skipif mysql # not compatible
query I rowsort label-9127
SELECT 12 + + SUM ( 42 )
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-9128
SELECT + COUNT( ALL + + 66 )
----
1

skipif mysql # not compatible
query I rowsort label-9128
SELECT + COUNT ( ALL + + 66 )
----
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9129
SELECT 15 * + + 69 + - 11 + - CAST( + ( - - 13 ) AS SIGNED ) - 40 DIV 30
----
1010

skipif mysql # not compatible
query I rowsort label-9129
SELECT 15 * + + 69 + - 11 + - CAST ( + ( - - 13 ) AS INTEGER ) - 40 / 30
----
1010

query II rowsort
SELECT ALL - 2, NULLIF ( 57, 54 ) AS col2
----
-2
57

onlyif mysql # aggregate syntax: 
query II rowsort label-9131
SELECT COUNT( * ) AS col0, + 25 + + - COUNT( * ) * + ( + 31 )
----
1
-6

skipif mysql # not compatible
query II rowsort label-9131
SELECT COUNT ( * ) AS col0, + 25 + + - COUNT ( * ) * + ( + 31 )
----
1
-6

query I rowsort
SELECT DISTINCT - 68 * CASE + 19 WHEN 69 THEN - 66 ELSE + 99 * - - 10 END AS col2
----
-67320

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9133
SELECT ALL NULLIF ( - + 4, - - 62 ) DIV + + COUNT( * ) + + 15 AS col1, 28 AS col2
----
11
28

skipif mysql # not compatible
query II rowsort label-9133
SELECT ALL NULLIF ( - + 4, - - 62 ) / + + COUNT ( * ) + + 15 AS col1, 28 AS col2
----
11
28

onlyif mysql # aggregate syntax: 
query I rowsort label-9134
SELECT ALL - CASE - - ( - 43 ) WHEN - 85 * + + 21 * - + 96 + COUNT( DISTINCT + 13 ) * 26 THEN 99 * 80 WHEN - 39 THEN NULL ELSE 32 + - 37 END
----
5

skipif mysql # not compatible
query I rowsort label-9134
SELECT ALL - CASE - - ( - 43 ) WHEN - 85 * + + 21 * - + 96 + COUNT ( DISTINCT + 13 ) * 26 THEN 99 * 80 WHEN - 39 THEN NULL ELSE 32 + - 37 END
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9135
SELECT DISTINCT + ( + 41 ), CAST( - 13 AS SIGNED ) * - 33 * - 87 + + 7 col2
----
41
-37316

skipif mysql # not compatible
query II rowsort label-9135
SELECT DISTINCT + ( + 41 ), CAST ( - 13 AS INTEGER ) * - 33 * - 87 + + 7 col2
----
41
-37316

query I rowsort
SELECT ALL + ( + - 19 )
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-9137
SELECT DISTINCT CASE - 94 WHEN - + 13 / + 94 + 82 + - + 52 * - 28 + 30 THEN 49 WHEN + 64 * 49 - COUNT( * ) THEN NULL WHEN COUNT( * ) THEN - 98 ELSE + 63 END
----
63

skipif mysql # not compatible
query I rowsort label-9137
SELECT DISTINCT CASE - 94 WHEN - + 13 / + 94 + 82 + - + 52 * - 28 + 30 THEN 49 WHEN + 64 * 49 - COUNT ( * ) THEN NULL WHEN COUNT ( * ) THEN - 98 ELSE + 63 END
----
63

query I rowsort
SELECT ALL COALESCE ( + + 21, 74 ) AS col0
----
21

query II rowsort
SELECT + 70 * + + 88 col0, + 75 col2
----
6160
75

onlyif mysql # DIV for integer division: 
query I rowsort label-9140
SELECT + 34 DIV - + 19
----
-1

skipif mysql # not compatible
query I rowsort label-9140
SELECT + 34 / - + 19
----
-1

query I rowsort
SELECT DISTINCT + ( - 70 )
----
-70

query I rowsort
SELECT DISTINCT + 45 + 70
----
115

query I rowsort
SELECT ALL 50 + - 98
----
-48

query I rowsort
SELECT ALL - ( - 18 ) AS col1
----
18

query I rowsort
SELECT + + 90 * + 75 * - 64 AS col1
----
-432000

onlyif mysql # aggregate syntax: 
query I rowsort label-9146
SELECT DISTINCT 12 + + - 29 * - COUNT( * ) AS col1
----
41

skipif mysql # not compatible
query I rowsort label-9146
SELECT DISTINCT 12 + + - 29 * - COUNT ( * ) AS col1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-9147
SELECT ALL + ( - 9 ) * - - COUNT( * )
----
-9

skipif mysql # not compatible
query I rowsort label-9147
SELECT ALL + ( - 9 ) * - - COUNT ( * )
----
-9

query I rowsort
SELECT DISTINCT - + ( + - 54 ) * - 30
----
-1620

onlyif mysql # aggregate syntax: 
query I rowsort label-9149
SELECT ALL + 51 + 50 + ( + - COUNT( * ) ) AS col1
----
100

skipif mysql # not compatible
query I rowsort label-9149
SELECT ALL + 51 + 50 + ( + - COUNT ( * ) ) AS col1
----
100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9150
SELECT - CAST( + 31 AS SIGNED )
----
-31

skipif mysql # not compatible
query I rowsort label-9150
SELECT - CAST ( + 31 AS INTEGER )
----
-31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9151
SELECT + - 71 + COUNT( * ) + + + COALESCE ( 48, + - 64 + - - 34 * + 27 DIV 84, 12 * - 24 ) + - COUNT( ALL + 60 ) AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-9151
SELECT + - 71 + COUNT ( * ) + + + COALESCE ( 48, + - 64 + - - 34 * + 27 / 84, 12 * - 24 ) + - COUNT ( ALL + 60 ) AS col0
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9152
SELECT DISTINCT + COUNT( * ) * - CAST( + - 4 AS SIGNED ) * - 73 * + 49 AS col1
----
-14308

skipif mysql # not compatible
query I rowsort label-9152
SELECT DISTINCT + COUNT ( * ) * - CAST ( + - 4 AS INTEGER ) * - 73 * + 49 AS col1
----
-14308

onlyif mysql # aggregate syntax: 
query I rowsort label-9153
SELECT - CASE - ( - + COUNT( * ) ) WHEN - 99 THEN - COUNT( * ) ELSE NULL END + + 95 * + 96 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9153
SELECT - CASE - ( - + COUNT ( * ) ) WHEN - 99 THEN - COUNT ( * ) ELSE NULL END + + 95 * + 96 AS col1
----
NULL

query II rowsort
SELECT ALL - 69 * + ( ( 6 ) ) + - 23 col0, 0
----
-437
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9155
SELECT DISTINCT - - 91 * - - 74 + + COUNT( * ) + 27 - - - 88 DIV + - 66 - ( COALESCE ( 9, + MIN( 42 ) * + ( - 5 ) ) ) col0
----
6754

skipif mysql # not compatible
query I rowsort label-9155
SELECT DISTINCT - - 91 * - - 74 + + COUNT ( * ) + 27 - - - 88 / + - 66 - ( COALESCE ( 9, + MIN ( 42 ) * + ( - 5 ) ) ) col0
----
6754

onlyif mysql # aggregate syntax: 
query I rowsort label-9156
SELECT + - CASE - + COUNT( * ) WHEN - - 15 * + 17 + 66 + - CASE 97 WHEN 59 THEN NULL WHEN - 85 * - 48 THEN - 85 + + 91 END - 13 THEN + ( - 84 ) + + COUNT( * ) WHEN ( COUNT( * ) ) THEN - 93 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9156
SELECT + - CASE - + COUNT ( * ) WHEN - - 15 * + 17 + 66 + - CASE 97 WHEN 59 THEN NULL WHEN - 85 * - 48 THEN - 85 + + 91 END - 13 THEN + ( - 84 ) + + COUNT ( * ) WHEN ( COUNT ( * ) ) THEN - 93 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + + ( - 34 ) AS col0
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-9158
SELECT COALESCE ( 35, 37, ( + 1 ), - + SUM( + + 8 ) )
----
35

skipif mysql # not compatible
query I rowsort label-9158
SELECT COALESCE ( 35, 37, ( + 1 ), - + SUM ( + + 8 ) )
----
35

query I rowsort
SELECT + 54 + 72
----
126

query I rowsort
SELECT - 60 - - 6 + + 40 AS col2
----
-14

query II rowsort
SELECT DISTINCT + 70 AS col1, 68 AS col2
----
70
68

query I rowsort
SELECT - 23 * - 89 + 16 + 77
----
2140

query I rowsort
SELECT - 36 - + ( + 5 )
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-9164
SELECT - 7 + 49 + + SUM( 64 ) AS col0
----
106

skipif mysql # not compatible
query I rowsort label-9164
SELECT - 7 + 49 + + SUM ( 64 ) AS col0
----
106

query I rowsort
SELECT - 83 * - 14
----
1162

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9166
SELECT ALL + 46 DIV - + SUM( DISTINCT 98 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9166
SELECT ALL + 46 / - + SUM ( DISTINCT 98 ) AS col2
----
0

query I rowsort
SELECT - 76 + - - 81 AS col2
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9168
SELECT + ( 87 ) + MIN( + + 4 )
----
91

skipif mysql # not compatible
query I rowsort label-9168
SELECT + ( 87 ) + MIN ( + + 4 )
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9169
SELECT ALL CAST( - 48 AS SIGNED ) AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-9169
SELECT ALL CAST ( - 48 AS INTEGER ) AS col0
----
-48

query I rowsort
SELECT - 93 * - + ( + - 74 )
----
-6882

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9171
SELECT + MIN( - 65 ) + + - 47 + - 92 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9171
SELECT + MIN ( - 65 ) + + - 47 + - 92 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 22 + - 62
----
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-9173
SELECT ALL MIN( DISTINCT - 75 ) + - 62 * - - 84 AS col0, + ( + ( + + ( + 48 ) ) ) + - 46
----
-5283
2

skipif mysql # not compatible
query II rowsort label-9173
SELECT ALL MIN ( DISTINCT - 75 ) + - 62 * - - 84 AS col0, + ( + ( + + ( + 48 ) ) ) + - 46
----
-5283
2

query II rowsort
SELECT + 69 AS col1, - 34
----
69
-34

onlyif mysql # aggregate syntax: 
query II rowsort label-9175
SELECT ALL + - COUNT( ALL - 81 ) + + ( 31 ), 64 + + + COUNT( DISTINCT - ( + - ( 5 ) ) ) * 13 AS col0
----
30
77

skipif mysql # not compatible
query II rowsort label-9175
SELECT ALL + - COUNT ( ALL - 81 ) + + ( 31 ), 64 + + + COUNT ( DISTINCT - ( + - ( 5 ) ) ) * 13 AS col0
----
30
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9176
SELECT - - 36 * + 38 + - - CAST( + 14 AS SIGNED ) DIV - COUNT( ALL + - 35 )
----
1354

skipif mysql # not compatible
query I rowsort label-9176
SELECT - - 36 * + 38 + - - CAST ( + 14 AS INTEGER ) / - COUNT ( ALL + - 35 )
----
1354

onlyif mysql # aggregate syntax: 
query I rowsort label-9177
SELECT ALL MAX( - 44 ) * - 91
----
4004

skipif mysql # not compatible
query I rowsort label-9177
SELECT ALL MAX ( - 44 ) * - 91
----
4004

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9178
SELECT - CAST( + - SUM( DISTINCT + 33 ) AS SIGNED )
----
33

skipif mysql # not compatible
query I rowsort label-9178
SELECT - CAST ( + - SUM ( DISTINCT + 33 ) AS INTEGER )
----
33

query I rowsort
SELECT ALL - + 70 + + 89 AS col0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-9180
SELECT DISTINCT - COUNT( - CASE + 26 WHEN - 54 THEN - 85 END ) * - SUM( DISTINCT 81 ) * + 29
----
0

skipif mysql # not compatible
query I rowsort label-9180
SELECT DISTINCT - COUNT ( - CASE + 26 WHEN - 54 THEN - 85 END ) * - SUM ( DISTINCT 81 ) * + 29
----
0

query I rowsort
SELECT + 54 * + + 85
----
4590

onlyif mysql # aggregate syntax: 
query I rowsort label-9182
SELECT - + 58 + + - 70 * + COUNT( * ) + + ( + 36 )
----
-92

skipif mysql # not compatible
query I rowsort label-9182
SELECT - + 58 + + - 70 * + COUNT ( * ) + + ( + 36 )
----
-92

query II rowsort
SELECT 33, 5 AS col2
----
33
5

query II rowsort
SELECT ALL 15, 94 col1
----
15
94

onlyif mysql # aggregate syntax: 
query II rowsort label-9185
SELECT - COALESCE ( 43, MAX( DISTINCT + 6 ) ) AS col0, COUNT( * ) AS col0
----
-43
1

skipif mysql # not compatible
query II rowsort label-9185
SELECT - COALESCE ( 43, MAX ( DISTINCT + 6 ) ) AS col0, COUNT ( * ) AS col0
----
-43
1

query I rowsort
SELECT DISTINCT - 73 - + + 12
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-9187
SELECT ALL - 39 - + SUM( ALL + 71 ) AS col1
----
-110

skipif mysql # not compatible
query I rowsort label-9187
SELECT ALL - 39 - + SUM ( ALL + 71 ) AS col1
----
-110

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9188
SELECT ALL - 79 / - + 52 - + ( 83 ) + + 25 * 49 + ( + 50 ) * ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9188
SELECT ALL - 79 / - + 52 - + ( 83 ) + + 25 * 49 + ( + 50 ) * ( CAST ( NULL AS INTEGER ) )
----
NULL

query II rowsort
SELECT + 60 AS col2, 69 col2
----
60
69

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9190
SELECT - 14 DIV - CAST( + 35 AS SIGNED ) * + 12
----
0

skipif mysql # not compatible
query I rowsort label-9190
SELECT - 14 / - CAST ( + 35 AS INTEGER ) * + 12
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9191
SELECT - 83 DIV + - 45 + + 41 AS col1
----
42

skipif mysql # not compatible
query I rowsort label-9191
SELECT - 83 / + - 45 + + 41 AS col1
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9192
SELECT ALL CAST( NULL AS SIGNED ) * 77 / - 31 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9192
SELECT ALL CAST ( NULL AS INTEGER ) * 77 / - 31 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9193
SELECT ( + COALESCE ( 10, + - COUNT( * ) ) ) * + 98 + - - 15 AS col2
----
995

skipif mysql # not compatible
query I rowsort label-9193
SELECT ( + COALESCE ( 10, + - COUNT ( * ) ) ) * + 98 + - - 15 AS col2
----
995

onlyif mysql # aggregate syntax: 
query I rowsort label-9194
SELECT 48 * + + COUNT( * ) * - 27
----
-1296

skipif mysql # not compatible
query I rowsort label-9194
SELECT 48 * + + COUNT ( * ) * - 27
----
-1296

onlyif mysql # aggregate syntax: 
query I rowsort label-9195
SELECT 54 + + - COUNT( * ) AS col2
----
53

skipif mysql # not compatible
query I rowsort label-9195
SELECT 54 + + - COUNT ( * ) AS col2
----
53

query I rowsort
SELECT ALL COALESCE ( - 10, ( + + 1 ) + - - 53 + - 47 ) * + + 84
----
-840

onlyif mysql # aggregate syntax: 
query II rowsort label-9197
SELECT DISTINCT 24 + NULLIF ( - 15, - - 65 ) AS col1, COUNT( * )
----
9
1

skipif mysql # not compatible
query II rowsort label-9197
SELECT DISTINCT 24 + NULLIF ( - 15, - - 65 ) AS col1, COUNT ( * )
----
9
1

query I rowsort
SELECT DISTINCT + 6 + 74 * 29 * - 91
----
-195280

onlyif mysql # aggregate syntax: 
query II rowsort label-9199
SELECT 63 * + 24, - COUNT( * ) * + COUNT( * ) col1
----
1512
-1

skipif mysql # not compatible
query II rowsort label-9199
SELECT 63 * + 24, - COUNT ( * ) * + COUNT ( * ) col1
----
1512
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9200
SELECT - COUNT( * ) * 24 - 14
----
-38

skipif mysql # not compatible
query I rowsort label-9200
SELECT - COUNT ( * ) * 24 - 14
----
-38

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9201
SELECT ALL + 97 DIV CASE - 55 WHEN NULLIF ( + ( - AVG ( - 83 ) ), + 16 - - + 50 ) THEN 64 DIV - 82 ELSE CAST( - 4 AS SIGNED ) END * 11 AS col1
----
-264

skipif mysql # not compatible
query I rowsort label-9201
SELECT ALL + 97 / CASE - 55 WHEN NULLIF ( + ( - AVG ( - 83 ) ), + 16 - - + 50 ) THEN 64 / - 82 ELSE CAST ( - 4 AS INTEGER ) END * 11 AS col1
----
-264

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9202
SELECT CAST( - + 13 AS SIGNED ) DIV - 70 * COUNT( + - 31 ) * ( COALESCE ( - + COUNT( * ), + - 43 ) ) + MIN( 80 ) DIV + 64
----
1

skipif mysql # not compatible
query I rowsort label-9202
SELECT CAST ( - + 13 AS INTEGER ) / - 70 * COUNT ( + - 31 ) * ( COALESCE ( - + COUNT ( * ), + - 43 ) ) + MIN ( 80 ) / + 64
----
1

query I rowsort
SELECT 88 * - 25 * - 42
----
92400

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9204
SELECT ALL + 88 + + CAST( - 6 AS SIGNED ) * - 30 * + CAST( - - 12 AS SIGNED ) AS col0
----
2248

skipif mysql # not compatible
query I rowsort label-9204
SELECT ALL + 88 + + CAST ( - 6 AS INTEGER ) * - 30 * + CAST ( - - 12 AS INTEGER ) AS col0
----
2248

query I rowsort
SELECT ALL - 25 + - - 50
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-9206
SELECT ( - 51 ) * + 45 + - + COUNT( * ) - - 52
----
-2244

skipif mysql # not compatible
query I rowsort label-9206
SELECT ( - 51 ) * + 45 + - + COUNT ( * ) - - 52
----
-2244

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9207
SELECT DISTINCT - COUNT( * ) * - NULLIF ( + - 5, - + 29 * + + 74 + - - MIN( CAST( 16 AS DECIMAL ) ) + + COUNT( * ) * - 50 ) col1
----
-5

skipif mysql # not compatible
query I rowsort label-9207
SELECT DISTINCT - COUNT ( * ) * - NULLIF ( + - 5, - + 29 * + + 74 + - - MIN ( CAST ( 16 AS REAL ) ) + + COUNT ( * ) * - 50 ) col1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9208
SELECT ALL + MIN( ALL - 35 ) AS col2
----
-35

skipif mysql # not compatible
query I rowsort label-9208
SELECT ALL + MIN ( ALL - 35 ) AS col2
----
-35

query I rowsort
SELECT - 15 * - ( - 68 ) AS col1
----
-1020

query I rowsort
SELECT DISTINCT - + 68 * - 78 * + 55 AS col1
----
291720

query I rowsort
SELECT + 38 * - - 76 AS col1
----
2888

onlyif mysql # aggregate syntax: 
query I rowsort label-9212
SELECT COUNT( * ) - 35 AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-9212
SELECT COUNT ( * ) - 35 AS col0
----
-34

onlyif mysql # aggregate syntax: 
query II rowsort label-9213
SELECT CASE + 93 WHEN + 52 * - - 86 THEN + MIN( - 39 ) * - 4 END, CASE - 59 WHEN 59 * COUNT( * ) THEN + 90 WHEN 34 THEN COUNT( * ) ELSE NULL END
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9213
SELECT CASE + 93 WHEN + 52 * - - 86 THEN + MIN ( - 39 ) * - 4 END, CASE - 59 WHEN 59 * COUNT ( * ) THEN + 90 WHEN 34 THEN COUNT ( * ) ELSE NULL END
----
NULL
NULL

query I rowsort
SELECT ALL - 43 - - 26
----
-17

query I rowsort
SELECT ALL + ( 89 )
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9216
SELECT CAST( NULL AS SIGNED ) * COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9216
SELECT CAST ( NULL AS INTEGER ) * COUNT ( * ) col2
----
NULL

query I rowsort
SELECT ALL 57 * - 44 * 30 AS col2
----
-75240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9218
SELECT - 31 + COUNT( DISTINCT 44 ) * - - CAST( - 92 AS SIGNED ) + + 49 DIV - NULLIF ( - 11, + 62 + + ( + 75 ) DIV ( - COUNT( * ) * 97 + 50 DIV + CAST( 14 AS SIGNED ) ) ) + 47 DIV - 48 AS col2
----
-119

skipif mysql # not compatible
query I rowsort label-9218
SELECT - 31 + COUNT ( DISTINCT 44 ) * - - CAST ( - 92 AS INTEGER ) + + 49 / - NULLIF ( - 11, + 62 + + ( + 75 ) / ( - COUNT ( * ) * 97 + 50 / + CAST ( 14 AS INTEGER ) ) ) + 47 / - 48 AS col2
----
-119

query I rowsort
SELECT DISTINCT + COALESCE ( + - 7, - NULLIF ( - + 99, 7 - + - 8 ), - 93 * + 80 - + 72 * - 47 ) * - 69 AS col1
----
483

query I rowsort
SELECT 13 + + 37
----
50

query II rowsort
SELECT ALL + + 63 * - 24 AS col1, + 88
----
-1512
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9222
SELECT 31 + + + COALESCE ( - - COUNT( ALL - - CAST( + 18 AS SIGNED ) ), CAST( + 3 AS SIGNED ), + CAST( + COUNT( * ) AS SIGNED ) ) DIV + 24
----
31

skipif mysql # not compatible
query I rowsort label-9222
SELECT 31 + + + COALESCE ( - - COUNT ( ALL - - CAST ( + 18 AS INTEGER ) ), CAST ( + 3 AS INTEGER ), + CAST ( + COUNT ( * ) AS INTEGER ) ) / + 24
----
31

query I rowsort
SELECT ALL ( 33 ) AS col2
----
33

query I rowsort
SELECT + 20 * - 30 + 31 AS col2
----
-569

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9225
SELECT CAST( - - 76 AS SIGNED ) * + 73 * + 67
----
371716

skipif mysql # not compatible
query I rowsort label-9225
SELECT CAST ( - - 76 AS INTEGER ) * + 73 * + 67
----
371716

onlyif mysql # aggregate syntax: 
query I rowsort label-9226
SELECT COUNT( * ) - 74 AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-9226
SELECT COUNT ( * ) - 74 AS col1
----
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9227
SELECT ALL 71 + - + SUM( ALL CASE + 5 WHEN + - 98 THEN 56 + - 55 ELSE + 96 END ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9227
SELECT ALL 71 + - + SUM ( ALL CASE + 5 WHEN + - 98 THEN 56 + - 55 ELSE + 96 END ) + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9228
SELECT ALL - ( - + COUNT( * ) ) + - 64 + + 37 + - NULLIF ( 99, - - 9 )
----
-125

skipif mysql # not compatible
query I rowsort label-9228
SELECT ALL - ( - + COUNT ( * ) ) + - 64 + + 37 + - NULLIF ( 99, - - 9 )
----
-125

onlyif mysql # DIV for integer division: 
query I rowsort label-9229
SELECT DISTINCT 6 + 14 DIV 39 * + - 26
----
6

skipif mysql # not compatible
query I rowsort label-9229
SELECT DISTINCT 6 + 14 / 39 * + - 26
----
6

query I rowsort
SELECT ALL 65 + - 7
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9231
SELECT 63 DIV - ( + COUNT( * ) ) AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-9231
SELECT 63 / - ( + COUNT ( * ) ) AS col2
----
-63

onlyif mysql # aggregate syntax: 
query II rowsort label-9232
SELECT 56 * + - 60 + - + 21 * - + 8 * + + 72, + COUNT( * ) AS col2
----
8736
1

skipif mysql # not compatible
query II rowsort label-9232
SELECT 56 * + - 60 + - + 21 * - + 8 * + + 72, + COUNT ( * ) AS col2
----
8736
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9233
SELECT + SUM( 90 )
----
90

skipif mysql # not compatible
query I rowsort label-9233
SELECT + SUM ( 90 )
----
90

query I rowsort
SELECT ALL 12 + 70
----
82

query I rowsort
SELECT - 76 * - 12 + + + 98
----
1010

query I rowsort
SELECT ( 13 ) - - ( + 48 ) + + 97 * 7 AS col0
----
740

onlyif mysql # aggregate syntax: 
query I rowsort label-9237
SELECT 82 * - - MAX( ALL + 10 )
----
820

skipif mysql # not compatible
query I rowsort label-9237
SELECT 82 * - - MAX ( ALL + 10 )
----
820

query I rowsort
SELECT 53 + + - 65
----
-12

query I rowsort
SELECT ALL 5 + 45 AS col2
----
50

query I rowsort
SELECT DISTINCT 64 * - 64
----
-4096

query I rowsort
SELECT ( + 86 ) + 79
----
165

onlyif mysql # aggregate syntax: 
query I rowsort label-9242
SELECT DISTINCT 11 + 30 + - COUNT( * ) AS col1
----
40

skipif mysql # not compatible
query I rowsort label-9242
SELECT DISTINCT 11 + 30 + - COUNT ( * ) AS col1
----
40

query I rowsort
SELECT ALL 69 + NULLIF ( + - 55, - 58 / + + 86 ) + + 41
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9244
SELECT ALL + COUNT( * ) - - 17 * + 55 DIV 97 * COUNT( * ) DIV - 36
----
1

skipif mysql # not compatible
query I rowsort label-9244
SELECT ALL + COUNT ( * ) - - 17 * + 55 / 97 * COUNT ( * ) / - 36
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9245
SELECT 17 * 1 * - + COUNT( * ) AS col0
----
-17

skipif mysql # not compatible
query I rowsort label-9245
SELECT 17 * 1 * - + COUNT ( * ) AS col0
----
-17

query I rowsort
SELECT - 13 + + 36
----
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9247
SELECT 81 AS col0, + COUNT( * ) DIV + + 94 * + + MAX( 22 )
----
81
0

skipif mysql # not compatible
query II rowsort label-9247
SELECT 81 AS col0, + COUNT ( * ) / + + 94 * + + MAX ( 22 )
----
81
0

query I rowsort
SELECT DISTINCT 1 - - + 19 AS col2
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-9249
SELECT + CASE + 8 WHEN - + 38 THEN 8 * 45 WHEN + 49 THEN + + COUNT( * ) WHEN + + 62 - 48 THEN + + 92 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9249
SELECT + CASE + 8 WHEN - + 38 THEN 8 * 45 WHEN + 49 THEN + + COUNT ( * ) WHEN + + 62 - 48 THEN + + 92 END AS col2
----
NULL

query II rowsort
SELECT ( + 4 ) + 34, - 31 * + 89 AS col1
----
38
-2759

query I rowsort
SELECT ALL + + 2 - + 28 AS col2
----
-26

query I rowsort
SELECT - + 43 col1
----
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9253
SELECT - COUNT( * ) DIV - 68 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9253
SELECT - COUNT ( * ) / - 68 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9254
SELECT ALL - + MAX( 80 ) * + - 9 - 55 - + 31
----
634

skipif mysql # not compatible
query I rowsort label-9254
SELECT ALL - + MAX ( 80 ) * + - 9 - 55 - + 31
----
634

query II rowsort
SELECT ALL 77 AS col0, - 48 + + 11 AS col0
----
77
-37

query I rowsort
SELECT ALL ( ( NULLIF ( - 84, 8 ) ) )
----
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-9257
SELECT - + 26 DIV 88
----
0

skipif mysql # not compatible
query I rowsort label-9257
SELECT - + 26 / 88
----
0

query I rowsort
SELECT ALL - + 98 * - 15 AS col2
----
1470

onlyif mysql # aggregate syntax: 
query I rowsort label-9259
SELECT + - 57 - COUNT( * ) AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-9259
SELECT + - 57 - COUNT ( * ) AS col0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-9260
SELECT - - AVG ( + 85 ) * + CASE + COUNT( * ) WHEN + 89 THEN + ( - ( 90 ) ) WHEN + - 19 THEN NULL ELSE NULL END * + 38 + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9260
SELECT - - AVG ( + 85 ) * + CASE + COUNT ( * ) WHEN + 89 THEN + ( - ( 90 ) ) WHEN + - 19 THEN NULL ELSE NULL END * + 38 + COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9261
SELECT - 91 + NULLIF ( - 77, 75 ) + COUNT( * )
----
-167

skipif mysql # not compatible
query I rowsort label-9261
SELECT - 91 + NULLIF ( - 77, 75 ) + COUNT ( * )
----
-167

query I rowsort
SELECT - + ( 87 ) * + - ( - + 46 )
----
-4002

onlyif mysql # aggregate syntax: 
query I rowsort label-9263
SELECT SUM( + 95 ) AS col0
----
95

skipif mysql # not compatible
query I rowsort label-9263
SELECT SUM ( + 95 ) AS col0
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-9264
SELECT - 74 + + - MAX( ALL + 73 ) AS col1
----
-147

skipif mysql # not compatible
query I rowsort label-9264
SELECT - 74 + + - MAX ( ALL + 73 ) AS col1
----
-147

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9265
SELECT DISTINCT ( CAST( - - AVG ( ALL + 82 ) AS SIGNED ) )
----
82

skipif mysql # not compatible
query I rowsort label-9265
SELECT DISTINCT ( CAST ( - - AVG ( ALL + 82 ) AS INTEGER ) )
----
82

query I rowsort
SELECT DISTINCT CASE + 63 WHEN 74 + + 98 THEN - - 35 ELSE - + 59 END col0
----
-59

query I rowsort
SELECT ALL + 60 + + - 43 AS col1
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-9268
SELECT - 77 + MIN( DISTINCT + 8 ) col2
----
-69

skipif mysql # not compatible
query I rowsort label-9268
SELECT - 77 + MIN ( DISTINCT + 8 ) col2
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9269
SELECT DISTINCT + ( + - 75 ) * 23 + + 40 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9269
SELECT DISTINCT + ( + - 75 ) * 23 + + 40 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9270
SELECT + SUM( - - ( - - 56 ) ) AS col2
----
56

skipif mysql # not compatible
query I rowsort label-9270
SELECT + SUM ( - - ( - - 56 ) ) AS col2
----
56

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9271
SELECT COALESCE ( - - 36, - CAST( - + ( - 75 ) AS SIGNED ) DIV 5 + + 46, - - 90 )
----
36

skipif mysql # not compatible
query I rowsort label-9271
SELECT COALESCE ( - - 36, - CAST ( - + ( - 75 ) AS INTEGER ) / 5 + + 46, - - 90 )
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9272
SELECT + COUNT( * ) * - 63 + - COUNT( * )
----
-64

skipif mysql # not compatible
query I rowsort label-9272
SELECT + COUNT ( * ) * - 63 + - COUNT ( * )
----
-64

query II rowsort
SELECT - 18 * - 2 AS col2, 99 + + 28 * - 19
----
36
-433

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9274
SELECT 24 DIV 16 * - - SUM( - 46 ) + + 72 * - 39, - COUNT( * ) + 75 + + 28 + - + 54 AS col2
----
-2854
48

skipif mysql # not compatible
query II rowsort label-9274
SELECT 24 / 16 * - - SUM ( - 46 ) + + 72 * - 39, - COUNT ( * ) + 75 + + 28 + - + 54 AS col2
----
-2854
48

query I rowsort
SELECT ALL 29 * - 16 + 91
----
-373

onlyif mysql # aggregate syntax: 
query I rowsort label-9276
SELECT + ( - COUNT( DISTINCT - 57 ) ) + - 17 col1
----
-18

skipif mysql # not compatible
query I rowsort label-9276
SELECT + ( - COUNT ( DISTINCT - 57 ) ) + - 17 col1
----
-18

query II rowsort
SELECT ALL + 27 AS col2, 39
----
27
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9278
SELECT ALL - CAST( - MIN( + 7 ) AS SIGNED ) * - - 78
----
546

skipif mysql # not compatible
query I rowsort label-9278
SELECT ALL - CAST ( - MIN ( + 7 ) AS INTEGER ) * - - 78
----
546

onlyif mysql # aggregate syntax: 
query I rowsort label-9279
SELECT ALL + 59 * - 14 * + 29 * 56 * CASE COALESCE ( NULLIF ( - + 10, + MIN( ALL - 3 ) ), - 12 ) WHEN COUNT( * ) THEN + 71 + 40 END - - COUNT( 69 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9279
SELECT ALL + 59 * - 14 * + 29 * 56 * CASE COALESCE ( NULLIF ( - + 10, + MIN ( ALL - 3 ) ), - 12 ) WHEN COUNT ( * ) THEN + 71 + 40 END - - COUNT ( 69 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9280
SELECT + COUNT( + 44 ) * + 51 + 4 - - - 89
----
-34

skipif mysql # not compatible
query I rowsort label-9280
SELECT + COUNT ( + 44 ) * + 51 + 4 - - - 89
----
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-9281
SELECT DISTINCT 63 DIV - ( - + 93 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-9281
SELECT DISTINCT 63 / - ( - + 93 ) col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9282
SELECT - ( + CAST( NULL AS SIGNED ) ) - - COALESCE ( - 93, 69 ) + + - 29 col1, - CASE - + COUNT( * ) WHEN CAST( CASE 31 WHEN - MAX( + 16 ) * + 15 - + COUNT( * ) * 40 THEN NULL ELSE - 13 END AS SIGNED ) * 10 + 18 THEN NULL ELSE 74 * COUNT( * ) END col0
----
NULL
-74

skipif mysql # not compatible
query II rowsort label-9282
SELECT - ( + CAST ( NULL AS INTEGER ) ) - - COALESCE ( - 93, 69 ) + + - 29 col1, - CASE - + COUNT ( * ) WHEN CAST ( CASE 31 WHEN - MAX ( + 16 ) * + 15 - + COUNT ( * ) * 40 THEN NULL ELSE - 13 END AS INTEGER ) * 10 + 18 THEN NULL ELSE 74 * COUNT ( * ) END col0
----
NULL
-74

query I rowsort
SELECT + 34 * - 26 AS col1
----
-884

query I rowsort
SELECT + - 99 * + 52 AS col2
----
-5148

query II rowsort
SELECT - 60, + 24 AS col1
----
-60
24

onlyif mysql # aggregate syntax: 
query I rowsort label-9286
SELECT + 73 * + 62 - COUNT( * )
----
4525

skipif mysql # not compatible
query I rowsort label-9286
SELECT + 73 * + 62 - COUNT ( * )
----
4525

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9287
SELECT DISTINCT + 85 * 79 * CAST( - 76 AS SIGNED ) + - 9 AS col1
----
-510349

skipif mysql # not compatible
query I rowsort label-9287
SELECT DISTINCT + 85 * 79 * CAST ( - 76 AS INTEGER ) + - 9 AS col1
----
-510349

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9288
SELECT DISTINCT CAST( CAST( NULL AS DECIMAL ) AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9288
SELECT DISTINCT CAST ( CAST ( NULL AS REAL ) AS REAL )
----
NULL

query II rowsort
SELECT ALL 33 AS col2, 28 AS col1
----
33
28

onlyif mysql # aggregate syntax: 
query I rowsort label-9290
SELECT + - 47 - + 47 * - + 65 - - - 38 + COUNT( * )
----
2971

skipif mysql # not compatible
query I rowsort label-9290
SELECT + - 47 - + 47 * - + 65 - - - 38 + COUNT ( * )
----
2971

query II rowsort
SELECT DISTINCT 72 col0, - 27 AS col1
----
72
-27

query II rowsort
SELECT 64 AS col2, 11 + 20 AS col0
----
64
31

query I rowsort
SELECT - NULLIF ( ( + 87 ), - 40 ) AS col2
----
-87

query II rowsort
SELECT + - 97 * - 77 + + 30 + + - 83 col1, - ( + 85 )
----
7416
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-9295
SELECT ALL MIN( DISTINCT + 79 ) AS col0
----
79

skipif mysql # not compatible
query I rowsort label-9295
SELECT ALL MIN ( DISTINCT + 79 ) AS col0
----
79

query I rowsort
SELECT + 75 * + 38
----
2850

query I rowsort
SELECT - 50 - - - 14 + - + 47
----
-111

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9298
SELECT - 63 - - COUNT( * ) AS col0, 10 DIV - CAST( - COALESCE ( + 94, - 78 ) AS SIGNED ) AS col2
----
-62
0

skipif mysql # not compatible
query II rowsort label-9298
SELECT - 63 - - COUNT ( * ) AS col0, 10 / - CAST ( - COALESCE ( + 94, - 78 ) AS INTEGER ) AS col2
----
-62
0

query I rowsort
SELECT NULLIF ( - 75, + 67 )
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-9300
SELECT ALL - COUNT( * ) + + COUNT( * ) * - - 48 / - + 76 - 92 + CASE - 68 WHEN 95 + 4 THEN + 11 - 37 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9300
SELECT ALL - COUNT ( * ) + + COUNT ( * ) * - - 48 / - + 76 - 92 + CASE - 68 WHEN 95 + 4 THEN + 11 - 37 END
----
NULL

query I rowsort
SELECT DISTINCT - ( 58 ) + - 22 col2
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9302
SELECT ALL + - 83 + - - 85 + 40 + + CASE 25 WHEN - 37 - - ( + NULLIF ( + ( - 10 ), + 98 ) ) * CAST( NULL AS SIGNED ) THEN NULL ELSE + 93 + + CAST( NULL AS SIGNED ) END * NULLIF ( 65, SUM( + 84 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9302
SELECT ALL + - 83 + - - 85 + 40 + + CASE 25 WHEN - 37 - - ( + NULLIF ( + ( - 10 ), + 98 ) ) * CAST ( NULL AS INTEGER ) THEN NULL ELSE + 93 + + CAST ( NULL AS INTEGER ) END * NULLIF ( 65, SUM ( + 84 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9303
SELECT DISTINCT - 73 + - ( - COUNT( * ) ) * + 71 - + - 54
----
52

skipif mysql # not compatible
query I rowsort label-9303
SELECT DISTINCT - 73 + - ( - COUNT ( * ) ) * + 71 - + - 54
----
52

query I rowsort
SELECT - 36 + - 10
----
-46

onlyif mysql # aggregate syntax: 
query II rowsort label-9305
SELECT DISTINCT COUNT( + 13 ) AS col2, NULLIF ( + COUNT( * ), - - 15 ) - - 45
----
1
46

skipif mysql # not compatible
query II rowsort label-9305
SELECT DISTINCT COUNT ( + 13 ) AS col2, NULLIF ( + COUNT ( * ), - - 15 ) - - 45
----
1
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9306
SELECT DISTINCT + 56 + 34 + + COUNT( * )
----
91

skipif mysql # not compatible
query I rowsort label-9306
SELECT DISTINCT + 56 + 34 + + COUNT ( * )
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-9307
SELECT ALL - COUNT( * ) * - 65 AS col0, 78 AS col1
----
65
78

skipif mysql # not compatible
query II rowsort label-9307
SELECT ALL - COUNT ( * ) * - 65 AS col0, 78 AS col1
----
65
78

query I rowsort
SELECT + 42 + + 94 + + 37 * + 28 AS col1
----
1172

onlyif mysql # DIV for integer division: 
query I rowsort label-9309
SELECT + 0 * 90 DIV - 93 * + - ( 85 )
----
0

skipif mysql # not compatible
query I rowsort label-9309
SELECT + 0 * 90 / - 93 * + - ( 85 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9310
SELECT - NULLIF ( 87, 26 + - ( ( - 60 ) ) ) * - + MIN( ALL 66 ) * - 55 + + 38
----
-315772

skipif mysql # not compatible
query I rowsort label-9310
SELECT - NULLIF ( 87, 26 + - ( ( - 60 ) ) ) * - + MIN ( ALL 66 ) * - 55 + + 38
----
-315772

query I rowsort
SELECT + 18 + - + 81 AS col1
----
-63

query I rowsort
SELECT DISTINCT 24 / + + ( + + ( 88 ) ) - + + 29 / - 68 + + + CASE + 45 WHEN - + 34 * - - 80 + + - AVG ( + - 1 ) + + 25 * + AVG ( DISTINCT + 95 ) - + 61 THEN + ( ( 23 ) ) + 10 END * + 29
----
NULL

query I rowsort
SELECT - 47 * - 92
----
4324

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9314
SELECT COALESCE ( - 41, + + COUNT( * ) ) * - 57 + + 20 + - + 66 * - + CAST( + 21 AS SIGNED ) + 85 + + - 14 * + 88 col0
----
2596

skipif mysql # not compatible
query I rowsort label-9314
SELECT COALESCE ( - 41, + + COUNT ( * ) ) * - 57 + + 20 + - + 66 * - + CAST ( + 21 AS INTEGER ) + 85 + + - 14 * + 88 col0
----
2596

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9315
SELECT - CASE - 94 WHEN + CASE + - 55 WHEN + - 28 THEN - 30 + + - 59 * CAST( NULL AS SIGNED ) WHEN + + CASE WHEN ( 37 ) >= ( 81 ) THEN 55 + 40 / CAST( 73 AS SIGNED ) ELSE NULL END * - 59 THEN - 35 + CASE 89 WHEN 12 THEN + 96 END * 44 ELSE NULL END THEN NULLIF ( + 23, 72 ) WHEN 97 + - 80 * + COUNT( * ) THEN + 26 + 19 WHEN + SUM( ALL 62 ) * - CAST( ( 49 ) AS SIGNED ) THEN 56 ELSE + 20 + 81 END + - 18 * 48
----
-965

skipif mysql # not compatible
query I rowsort label-9315
SELECT - CASE - 94 WHEN + CASE + - 55 WHEN + - 28 THEN - 30 + + - 59 * CAST ( NULL AS INTEGER ) WHEN + + CASE WHEN ( 37 ) >= ( 81 ) THEN 55 + 40 / CAST ( 73 AS INTEGER ) ELSE NULL END * - 59 THEN - 35 + CASE 89 WHEN 12 THEN + 96 END * 44 ELSE NULL END THEN NULLIF ( + 23, 72 ) WHEN 97 + - 80 * + COUNT ( * ) THEN + 26 + 19 WHEN + SUM ( ALL 62 ) * - CAST ( ( 49 ) AS INTEGER ) THEN 56 ELSE + 20 + 81 END + - 18 * 48
----
-965

query II rowsort
SELECT - 11 * 55, + 61 AS col1
----
-605
61

query I rowsort
SELECT ALL - 66 * 83 * + + 7 * 54
----
-2070684

query I rowsort
SELECT 30 * 37 + + 46 * 40 AS col2
----
2950

onlyif mysql # aggregate syntax: 
query I rowsort label-9319
SELECT - 34 - + + 46 * + 21 + - COUNT( * ) + + - 90 AS col0
----
-1091

skipif mysql # not compatible
query I rowsort label-9319
SELECT - 34 - + + 46 * + 21 + - COUNT ( * ) + + - 90 AS col0
----
-1091

query I rowsort
SELECT + 30 * 42 + - 71 col2
----
1189

onlyif mysql # aggregate syntax: 
query I rowsort label-9321
SELECT - 42 * - 36 - ( - NULLIF ( - 91, - 4 * - + 98 + 50 / NULLIF ( - ( NULLIF ( + - 6, 31 ) ), - SUM( DISTINCT 53 ) ) ) ) + - NULLIF ( 1, 22 ) * 87 col2
----
1334

skipif mysql # not compatible
query I rowsort label-9321
SELECT - 42 * - 36 - ( - NULLIF ( - 91, - 4 * - + 98 + 50 / NULLIF ( - ( NULLIF ( + - 6, 31 ) ), - SUM ( DISTINCT 53 ) ) ) ) + - NULLIF ( 1, 22 ) * 87 col2
----
1334

onlyif mysql # aggregate syntax: 
query I rowsort label-9322
SELECT ALL - - COUNT( * ) * - + ( + 92 ) * - COUNT( * ) * + + 87 * COUNT( * ) - - NULLIF ( + 53, + + 44 ) + - - 30
----
8087

skipif mysql # not compatible
query I rowsort label-9322
SELECT ALL - - COUNT ( * ) * - + ( + 92 ) * - COUNT ( * ) * + + 87 * COUNT ( * ) - - NULLIF ( + 53, + + 44 ) + - - 30
----
8087

onlyif mysql # aggregate syntax: 
query I rowsort label-9323
SELECT + 31 * - 72 * - COUNT( * ) * - - 95 + - ( 85 ) * 96 + - 32 + - + 22 AS col1
----
203826

skipif mysql # not compatible
query I rowsort label-9323
SELECT + 31 * - 72 * - COUNT ( * ) * - - 95 + - ( 85 ) * 96 + - 32 + - + 22 AS col1
----
203826

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9324
SELECT - - NULLIF ( + + 81, COUNT( ALL + + 39 ) ) DIV + 50
----
1

skipif mysql # not compatible
query I rowsort label-9324
SELECT - - NULLIF ( + + 81, COUNT ( ALL + + 39 ) ) / + 50
----
1

query I rowsort
SELECT ALL + + NULLIF ( + 95, 66 ) AS col1
----
95

query I rowsort
SELECT ALL + ( + 42 ) AS col0
----
42

query I rowsort
SELECT ALL 81 + + 12 AS col1
----
93

query I rowsort
SELECT - 51 * 49 + + 99
----
-2400

query I rowsort
SELECT + CASE - + 23 WHEN - 98 THEN - 26 END + 58 + + - 47 AS col1
----
NULL

query I rowsort
SELECT DISTINCT 8 + + ( + 87 ) * + 33 * - 32
----
-91864

onlyif mysql # DIV for integer division: 
query I rowsort label-9331
SELECT 44 DIV + + 63 + + 87 - 81 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-9331
SELECT 44 / + + 63 + + 87 - 81 AS col0
----
6

query I rowsort
SELECT - 9 + ( ( + 77 ) ) AS col0
----
68

query I rowsort
SELECT DISTINCT 49 + 1 + 76
----
126

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9334
SELECT DISTINCT + 36 * - CAST( NULL AS SIGNED ) * + + 46 AS col0, 98
----
NULL
98

skipif mysql # not compatible
query II rowsort label-9334
SELECT DISTINCT + 36 * - CAST ( NULL AS INTEGER ) * + + 46 AS col0, 98
----
NULL
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9335
SELECT COUNT( * ) + + CASE - + 11 WHEN 87 THEN + 9 + - 83 WHEN - 63 THEN NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9335
SELECT COUNT ( * ) + + CASE - + 11 WHEN 87 THEN + 9 + - 83 WHEN - 63 THEN NULL END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9336
SELECT 37 - COALESCE ( + 30, - CASE - 73 WHEN - COUNT( * ) THEN NULLIF ( + 96, - + 39 ) WHEN + 44 THEN NULL ELSE + - 46 END ) + 5 * 85 AS col1
----
432

skipif mysql # not compatible
query I rowsort label-9336
SELECT 37 - COALESCE ( + 30, - CASE - 73 WHEN - COUNT ( * ) THEN NULLIF ( + 96, - + 39 ) WHEN + 44 THEN NULL ELSE + - 46 END ) + 5 * 85 AS col1
----
432

query I rowsort
SELECT 79 + - 1
----
78

query I rowsort
SELECT 82 * - + 28 col0
----
-2296

query II rowsort
SELECT 69 + + 77 * 56 AS col2, - ( - + 79 )
----
4381
79

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9340
SELECT DISTINCT 94 - - - 93 + + 24 * CAST( NULL AS DECIMAL ) - MAX( ALL + 76 ) + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9340
SELECT DISTINCT 94 - - - 93 + + 24 * CAST ( NULL AS REAL ) - MAX ( ALL + 76 ) + COUNT ( * )
----
NULL

query II rowsort
SELECT 43 * - + 31 - + 29 AS col0, CASE - ( + + 79 ) WHEN - 9 + - + 99 THEN + 70 WHEN + - 91 THEN + 35 END AS col0
----
-1362
NULL

query I rowsort
SELECT DISTINCT 88 * + 43
----
3784

onlyif mysql # aggregate syntax: 
query II rowsort label-9343
SELECT + 27 AS col1, NULLIF ( - + COUNT( ALL ( 58 ) ), 60 * + 48 + 15 ) + - - 49 + 75 + - COUNT( * ) * + 71 + - 34 AS col0
----
27
18

skipif mysql # not compatible
query II rowsort label-9343
SELECT + 27 AS col1, NULLIF ( - + COUNT ( ALL ( 58 ) ), 60 * + 48 + 15 ) + - - 49 + 75 + - COUNT ( * ) * + 71 + - 34 AS col0
----
27
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9344
SELECT ( - 86 ) * 39 * 12 * + CAST( NULL AS SIGNED ) + + 94 + COUNT( * ) * 99 * + 45 * + 65
----
NULL

skipif mysql # not compatible
query I rowsort label-9344
SELECT ( - 86 ) * 39 * 12 * + CAST ( NULL AS INTEGER ) + + 94 + COUNT ( * ) * 99 * + 45 * + 65
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9345
SELECT 13 + + MAX( ALL + ( + - 89 ) )
----
-76

skipif mysql # not compatible
query I rowsort label-9345
SELECT 13 + + MAX ( ALL + ( + - 89 ) )
----
-76

query I rowsort
SELECT ALL - CASE - 44 WHEN + + ( + - 57 ) THEN - 68 END
----
NULL

query I rowsort
SELECT + + 95 col2
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-9348
SELECT ALL - MAX( + 99 )
----
-99

skipif mysql # not compatible
query I rowsort label-9348
SELECT ALL - MAX ( + 99 )
----
-99

query I rowsort
SELECT DISTINCT - NULLIF ( - 15, + - 19 + + + 64 - + - 62 )
----
15

query I rowsort
SELECT ALL + - 21 * 73 col2
----
-1533

query I rowsort
SELECT - 82 * + 25
----
-2050

query I rowsort
SELECT ALL + 25 + 65 col2
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9353
SELECT + - 51 * + + 92 - + COUNT( * ) + 23 DIV - - 60
----
-4693

skipif mysql # not compatible
query I rowsort label-9353
SELECT + - 51 * + + 92 - + COUNT ( * ) + 23 / - - 60
----
-4693

query II rowsort
SELECT + 90 AS col0, - 22 AS col2
----
90
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9355
SELECT + 48 + 66 - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * CAST( - - ( + 99 ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9355
SELECT + 48 + 66 - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * CAST ( - - ( + 99 ) AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT 93 col1, - ( - - 38 ) + - 75 AS col2
----
93
-113

onlyif mysql # aggregate syntax: 
query I rowsort label-9357
SELECT + - COALESCE ( - + SUM( + 10 ), + 84 + - + ( + + 87 ), 58 - SUM( 80 ) )
----
10

skipif mysql # not compatible
query I rowsort label-9357
SELECT + - COALESCE ( - + SUM ( + 10 ), + 84 + - + ( + + 87 ), 58 - SUM ( 80 ) )
----
10

query I rowsort
SELECT DISTINCT + 31 + 11 AS col0
----
42

query I rowsort
SELECT ALL + 9 + - 93 AS col0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-9360
SELECT DISTINCT MIN( ALL 77 )
----
77

skipif mysql # not compatible
query I rowsort label-9360
SELECT DISTINCT MIN ( ALL 77 )
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-9361
SELECT 82 DIV - 88
----
0

skipif mysql # not compatible
query I rowsort label-9361
SELECT 82 / - 88
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9362
SELECT ALL + - COUNT( * ) + + 95 * + 89 AS col2
----
8454

skipif mysql # not compatible
query I rowsort label-9362
SELECT ALL + - COUNT ( * ) + + 95 * + 89 AS col2
----
8454

onlyif mysql # aggregate syntax: 
query I rowsort label-9363
SELECT MIN( + + 19 ) * - 24 AS col0
----
-456

skipif mysql # not compatible
query I rowsort label-9363
SELECT MIN ( + + 19 ) * - 24 AS col0
----
-456

query I rowsort
SELECT 37 + 35 AS col2
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-9365
SELECT COUNT( * ) + + COUNT( * ) + 27 col1
----
29

skipif mysql # not compatible
query I rowsort label-9365
SELECT COUNT ( * ) + + COUNT ( * ) + 27 col1
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9366
SELECT 82 - + COALESCE ( - ( 68 ), 66, + - 13 * - 24 - + 82 ) + 27 - - COALESCE ( - 26, + SUM( + 98 ), - ( + ( + 46 ) ) * 73 ) + + COUNT( * ) DIV 18 * + 60 AS col0
----
151

skipif mysql # not compatible
query I rowsort label-9366
SELECT 82 - + COALESCE ( - ( 68 ), 66, + - 13 * - 24 - + 82 ) + 27 - - COALESCE ( - 26, + SUM ( + 98 ), - ( + ( + 46 ) ) * 73 ) + + COUNT ( * ) / 18 * + 60 AS col0
----
151

query I rowsort
SELECT DISTINCT 6 * - 77
----
-462

onlyif mysql # aggregate syntax: 
query I rowsort label-9368
SELECT DISTINCT 0 * + + 63 * - 13 * - - 10 * - 69 * + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-9368
SELECT DISTINCT 0 * + + 63 * - 13 * - - 10 * - 69 * + COUNT ( * )
----
0

query I rowsort
SELECT DISTINCT + 84 * - 85 * + - 62 * + 71 AS col1
----
31430280

onlyif mysql # aggregate syntax: 
query I rowsort label-9370
SELECT ( + + 2 ) * COUNT( + + 22 )
----
2

skipif mysql # not compatible
query I rowsort label-9370
SELECT ( + + 2 ) * COUNT ( + + 22 )
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9371
SELECT - CASE - 90 WHEN + - 83 THEN + ( 0 ) * + CAST( NULL AS SIGNED ) + + 2 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9371
SELECT - CASE - 90 WHEN + - 83 THEN + ( 0 ) * + CAST ( NULL AS INTEGER ) + + 2 END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9372
SELECT 12 DIV + ( 45 ) + + COUNT( * ) + 65 AS col1
----
66

skipif mysql # not compatible
query I rowsort label-9372
SELECT 12 / + ( 45 ) + + COUNT ( * ) + 65 AS col1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9373
SELECT CASE 35 WHEN + 79 THEN 83 WHEN 6 * + + 27 THEN NULL WHEN + CASE - 39 WHEN 68 THEN NULL WHEN + + 62 THEN - - 88 WHEN - - COALESCE ( - MIN( DISTINCT - + 69 ), - 54 / - MAX( - 79 ), - 32 ) THEN NULL ELSE NULL END - - 9 THEN 47 - + 53 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9373
SELECT CASE 35 WHEN + 79 THEN 83 WHEN 6 * + + 27 THEN NULL WHEN + CASE - 39 WHEN 68 THEN NULL WHEN + + 62 THEN - - 88 WHEN - - COALESCE ( - MIN ( DISTINCT - + 69 ), - 54 / - MAX ( - 79 ), - 32 ) THEN NULL ELSE NULL END - - 9 THEN 47 - + 53 END AS col0
----
NULL

query I rowsort
SELECT 94 - 4 AS col2
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9375
SELECT ( - COALESCE ( - 13, - 45 * 83 * + - 66 + 81 - + 11, 83 * + 84 + COUNT( DISTINCT - 49 ) + - 76 * + - 59 * 71 ) ) DIV 32
----
0

skipif mysql # not compatible
query I rowsort label-9375
SELECT ( - COALESCE ( - 13, - 45 * 83 * + - 66 + 81 - + 11, 83 * + 84 + COUNT ( DISTINCT - 49 ) + - 76 * + - 59 * 71 ) ) / 32
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9376
SELECT - COALESCE ( SUM( + NULLIF ( + 42, + 26 ) ), 5, + 46 ) * 50 DIV 40 DIV - - 33 + 26 - - + ( + - SUM( ALL + + 79 ) ) + COALESCE ( 85, 65 ) * - 77
----
-6599

skipif mysql # not compatible
query I rowsort label-9376
SELECT - COALESCE ( SUM ( + NULLIF ( + 42, + 26 ) ), 5, + 46 ) * 50 / 40 / - - 33 + 26 - - + ( + - SUM ( ALL + + 79 ) ) + COALESCE ( 85, 65 ) * - 77
----
-6599

query I rowsort
SELECT DISTINCT + ( - - 90 ) * - 56 * + + 70 + + 79 * - 62 AS col0
----
-357698

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9378
SELECT ALL + - ( + 54 ) * - + 3 * + NULLIF ( - + CASE + 7 WHEN - MIN( DISTINCT - - 81 ) + + - 65 + - COUNT( * ) - + - COALESCE ( - - 28, + MIN( ALL + 19 ), 67 ) THEN NULL ELSE 32 + CAST( NULL AS SIGNED ) END, 7 ) * + 99
----
NULL

skipif mysql # not compatible
query I rowsort label-9378
SELECT ALL + - ( + 54 ) * - + 3 * + NULLIF ( - + CASE + 7 WHEN - MIN ( DISTINCT - - 81 ) + + - 65 + - COUNT ( * ) - + - COALESCE ( - - 28, + MIN ( ALL + 19 ), 67 ) THEN NULL ELSE 32 + CAST ( NULL AS INTEGER ) END, 7 ) * + 99
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9379
SELECT ALL - MAX( DISTINCT + 89 ) * - 63 + - ( - + 28 )
----
5635

skipif mysql # not compatible
query I rowsort label-9379
SELECT ALL - MAX ( DISTINCT + 89 ) * - 63 + - ( - + 28 )
----
5635

onlyif mysql # DIV for integer division: 
query I rowsort label-9380
SELECT + + 48 + - 38 + - - 3 DIV - 42 * 76 * - 53 - - - 81
----
-71

skipif mysql # not compatible
query I rowsort label-9380
SELECT + + 48 + - 38 + - - 3 / - 42 * 76 * - 53 - - - 81
----
-71

query I rowsort
SELECT - - 84 * - 74 col2
----
-6216

onlyif mysql # aggregate syntax: 
query I rowsort label-9382
SELECT - - CASE 22 WHEN - - CASE - - 60 WHEN + 3 THEN NULL ELSE MAX( ALL 54 ) + 78 END THEN NULL ELSE - - ( 74 ) + + 72 + + + 88 * - 53 END * + ( ( - COUNT( 83 ) ) ) * 34 + + 38 + 90 * 2 AS col1
----
153830

skipif mysql # not compatible
query I rowsort label-9382
SELECT - - CASE 22 WHEN - - CASE - - 60 WHEN + 3 THEN NULL ELSE MAX ( ALL 54 ) + 78 END THEN NULL ELSE - - ( 74 ) + + 72 + + + 88 * - 53 END * + ( ( - COUNT ( 83 ) ) ) * 34 + + 38 + 90 * 2 AS col1
----
153830

onlyif mysql # aggregate syntax: 
query II rowsort label-9383
SELECT CASE + - 94 WHEN + 6 * - 32 THEN + + COUNT( * ) + - + 99 * + 61 ELSE NULL END, 31 AS col1
----
NULL
31

skipif mysql # not compatible
query II rowsort label-9383
SELECT CASE + - 94 WHEN + 6 * - 32 THEN + + COUNT ( * ) + - + 99 * + 61 ELSE NULL END, 31 AS col1
----
NULL
31

onlyif mysql # aggregate syntax: 
query I rowsort label-9384
SELECT ALL + - COALESCE ( - 27, 31, 48 * + + 34 + + 85 * 16 * + + 18 ) * COUNT( * ) + 26 AS col0
----
53

skipif mysql # not compatible
query I rowsort label-9384
SELECT ALL + - COALESCE ( - 27, 31, 48 * + + 34 + + 85 * 16 * + + 18 ) * COUNT ( * ) + 26 AS col0
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9385
SELECT ( - + CAST( + 41 AS SIGNED ) )
----
-41

skipif mysql # not compatible
query I rowsort label-9385
SELECT ( - + CAST ( + 41 AS INTEGER ) )
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-9386
SELECT DISTINCT + 67 * - 1 * CASE 19 WHEN + 88 * + 78 + + 9 + + + ( 45 ) THEN 59 END * COUNT( * ) * + + 30 + + - 93 / - + NULLIF ( 6, - 24 ) + - 51
----
NULL

skipif mysql # not compatible
query I rowsort label-9386
SELECT DISTINCT + 67 * - 1 * CASE 19 WHEN + 88 * + 78 + + 9 + + + ( 45 ) THEN 59 END * COUNT ( * ) * + + 30 + + - 93 / - + NULLIF ( 6, - 24 ) + - 51
----
NULL

query I rowsort
SELECT - 96 + + 36 AS col2
----
-60

query I rowsort
SELECT + ( - 91 ) AS col0
----
-91

query I rowsort
SELECT ALL + ( 85 ) * + 13 + 32 AS col0
----
1137

onlyif mysql # aggregate syntax: 
query I rowsort label-9390
SELECT - 58 + 89 * + COUNT( * ) AS col1
----
31

skipif mysql # not compatible
query I rowsort label-9390
SELECT - 58 + 89 * + COUNT ( * ) AS col1
----
31

query I rowsort
SELECT ALL + 43 - - + 23 AS col1
----
66

query I rowsort
SELECT - 71 * 42
----
-2982

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9393
SELECT ALL - CAST( - + 94 AS SIGNED ) * - 17 AS col0
----
-1598

skipif mysql # not compatible
query I rowsort label-9393
SELECT ALL - CAST ( - + 94 AS INTEGER ) * - 17 AS col0
----
-1598

query I rowsort
SELECT DISTINCT ( - + 27 ) AS col1
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-9395
SELECT ALL CASE 51 WHEN + COALESCE ( 32, - 64 * - + 59 + + 94 + + - 40 ) / - 60 * 33 * - MAX( ALL + + 1 ) THEN + CASE + COUNT( * ) WHEN - ( 63 ) THEN NULL ELSE 60 END + - ( - 27 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9395
SELECT ALL CASE 51 WHEN + COALESCE ( 32, - 64 * - + 59 + + 94 + + - 40 ) / - 60 * 33 * - MAX ( ALL + + 1 ) THEN + CASE + COUNT ( * ) WHEN - ( 63 ) THEN NULL ELSE 60 END + - ( - 27 ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9396
SELECT ALL - COALESCE ( + MIN( 55 ), + - 28 * + MIN( - - 84 ) * + ( + 71 ) * + 87 ) DIV + 73 + - - COUNT( * ) + MIN( + 54 ) DIV 79 + 70
----
71

skipif mysql # not compatible
query I rowsort label-9396
SELECT ALL - COALESCE ( + MIN ( 55 ), + - 28 * + MIN ( - - 84 ) * + ( + 71 ) * + 87 ) / + 73 + - - COUNT ( * ) + MIN ( + 54 ) / 79 + 70
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-9397
SELECT + 11 + + COUNT( * ) + + 85 AS col1
----
97

skipif mysql # not compatible
query I rowsort label-9397
SELECT + 11 + + COUNT ( * ) + + 85 AS col1
----
97

query I rowsort
SELECT ALL 52 * - 16 AS col0
----
-832

onlyif mysql # DIV for integer division: 
query I rowsort label-9399
SELECT ALL - 8 DIV + 34 * + 74 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9399
SELECT ALL - 8 / + 34 * + 74 AS col1
----
0

query I rowsort
SELECT + 75 + + ( + ( + 55 ) )
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-9401
SELECT ALL ( + 37 ) + + COUNT( * ) * 27 AS col1
----
64

skipif mysql # not compatible
query I rowsort label-9401
SELECT ALL ( + 37 ) + + COUNT ( * ) * 27 AS col1
----
64

query I rowsort
SELECT - NULLIF ( 3, + 56 ) * - + 95 * - + ( 46 ) AS col0
----
-13110

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9403
SELECT 97 DIV COUNT( * ) + - 13 - + - ( + - 70 ) + 15 * + 75
----
1139

skipif mysql # not compatible
query I rowsort label-9403
SELECT 97 / COUNT ( * ) + - 13 - + - ( + - 70 ) + 15 * + 75
----
1139

query I rowsort
SELECT ( - - 16 )
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-9405
SELECT ALL + MIN( - - ( + 51 ) ) AS col2
----
51

skipif mysql # not compatible
query I rowsort label-9405
SELECT ALL + MIN ( - - ( + 51 ) ) AS col2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9406
SELECT + - COUNT( * ) * 26 AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-9406
SELECT + - COUNT ( * ) * 26 AS col0
----
-26

query I rowsort
SELECT + + COALESCE ( - 69, - 72, + 99 )
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-9408
SELECT ALL - SUM( ALL - + 4 ) * + 44 AS col0
----
176

skipif mysql # not compatible
query I rowsort label-9408
SELECT ALL - SUM ( ALL - + 4 ) * + 44 AS col0
----
176

onlyif mysql # aggregate syntax: 
query I rowsort label-9409
SELECT + - ( - - NULLIF ( MIN( ALL + + 23 ), 1 ) ) * - 45 + - 54 + COALESCE ( - - 51, - 65, - COUNT( * ) ) * + - 4 AS col0
----
777

skipif mysql # not compatible
query I rowsort label-9409
SELECT + - ( - - NULLIF ( MIN ( ALL + + 23 ), 1 ) ) * - 45 + - 54 + COALESCE ( - - 51, - 65, - COUNT ( * ) ) * + - 4 AS col0
----
777

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9410
SELECT + 33 + + 95 - + + CAST( 39 AS SIGNED ) + + 20
----
109

skipif mysql # not compatible
query I rowsort label-9410
SELECT + 33 + + 95 - + + CAST ( 39 AS INTEGER ) + + 20
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-9411
SELECT ALL - 29 * COUNT( * ) * - 68 + + COUNT( * )
----
1973

skipif mysql # not compatible
query I rowsort label-9411
SELECT ALL - 29 * COUNT ( * ) * - 68 + + COUNT ( * )
----
1973

onlyif mysql # aggregate syntax: 
query I rowsort label-9412
SELECT ALL 36 * - + COUNT( * ) * - 62 AS col1
----
2232

skipif mysql # not compatible
query I rowsort label-9412
SELECT ALL 36 * - + COUNT ( * ) * - 62 AS col1
----
2232

query II rowsort
SELECT ALL ( - 88 ) AS col1, 73
----
-88
73

onlyif mysql # aggregate syntax: 
query III rowsort label-9414
SELECT - 1 AS col2, + 49 AS col0, - COUNT( * )
----
-1
49
-1

skipif mysql # not compatible
query III rowsort label-9414
SELECT - 1 AS col2, + 49 AS col0, - COUNT ( * )
----
-1
49
-1

query I rowsort
SELECT + 12 + - 93
----
-81

query I rowsort
SELECT - 18 * - - 59 col0
----
-1062

onlyif mysql # aggregate syntax: 
query II rowsort label-9417
SELECT ALL NULLIF ( - + COALESCE ( 86, - COUNT( * ), - + 20 ), - 35 ), ( + 9 ) col1
----
-86
9

skipif mysql # not compatible
query II rowsort label-9417
SELECT ALL NULLIF ( - + COALESCE ( 86, - COUNT ( * ), - + 20 ), - 35 ), ( + 9 ) col1
----
-86
9

query I rowsort
SELECT + 29 * 13 AS col0
----
377

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9419
SELECT - 82 * - COALESCE ( - 68, - NULLIF ( - - 17, - 97 ) + - COUNT( * ) + - 79 + - 93 + NULLIF ( COUNT( * ), - + COUNT( * ) * - 39 + 35 ) + + MAX( - CAST( NULL AS SIGNED ) ) * 82 DIV 53 ) * + ( 32 * COUNT( DISTINCT + 75 ) ) AS col0
----
-178432

skipif mysql # not compatible
query I rowsort label-9419
SELECT - 82 * - COALESCE ( - 68, - NULLIF ( - - 17, - 97 ) + - COUNT ( * ) + - 79 + - 93 + NULLIF ( COUNT ( * ), - + COUNT ( * ) * - 39 + 35 ) + + MAX ( - CAST ( NULL AS INTEGER ) ) * 82 / 53 ) * + ( 32 * COUNT ( DISTINCT + 75 ) ) AS col0
----
-178432

query I rowsort
SELECT ALL 88 + 24 + + + 17
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-9421
SELECT ALL + COUNT( * ) + SUM( DISTINCT + - 36 )
----
-35

skipif mysql # not compatible
query I rowsort label-9421
SELECT ALL + COUNT ( * ) + SUM ( DISTINCT + - 36 )
----
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-9422
SELECT - 76 AS col1, - COUNT( DISTINCT 72 ) * + + 81 - + + 44 AS col0
----
-76
-125

skipif mysql # not compatible
query II rowsort label-9422
SELECT - 76 AS col1, - COUNT ( DISTINCT 72 ) * + + 81 - + + 44 AS col0
----
-76
-125

query I rowsort
SELECT DISTINCT - 22 + 4 AS col1
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-9424
SELECT - 34 + - COUNT( * )
----
-35

skipif mysql # not compatible
query I rowsort label-9424
SELECT - 34 + - COUNT ( * )
----
-35

query I rowsort
SELECT 13 * - + 68 AS col0
----
-884

query I rowsort
SELECT 93 + - ( + - 73 ) - 45
----
121

query II rowsort
SELECT ALL 36 AS col2, + 47
----
36
47

query I rowsort
SELECT 26 + + + 38 AS col0
----
64

query I rowsort
SELECT 70 * - 43 * - 94 col2
----
282940

query II rowsort
SELECT - + 85 AS col2, + 51
----
-85
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9431
SELECT - ( 69 ) + + COALESCE ( 35, - COUNT( - 71 ) * + CASE MAX( - 10 ) WHEN - 33 * - 26 THEN 41 END )
----
-34

skipif mysql # not compatible
query I rowsort label-9431
SELECT - ( 69 ) + + COALESCE ( 35, - COUNT ( - 71 ) * + CASE MAX ( - 10 ) WHEN - 33 * - 26 THEN 41 END )
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-9432
SELECT 19 + 3 + - COUNT( * )
----
21

skipif mysql # not compatible
query I rowsort label-9432
SELECT 19 + 3 + - COUNT ( * )
----
21

onlyif mysql # DIV for integer division: 
query II rowsort label-9433
SELECT ALL + + ( - 45 ) DIV - 85 * - - 66 * + - 44 - - 91 AS col1, 96 + ( - - 63 ) + + - 83 col1
----
91
76

skipif mysql # not compatible
query II rowsort label-9433
SELECT ALL + + ( - 45 ) / - 85 * - - 66 * + - 44 - - 91 AS col1, 96 + ( - - 63 ) + + - 83 col1
----
91
76

onlyif mysql # aggregate syntax: 
query II rowsort label-9434
SELECT + 98 AS col0, 81 * + - 32 + + + NULLIF ( - MAX( - 21 ), - - 3 ) + + 70 * + 25 * - 12 * 99 AS col2
----
98
-2081571

skipif mysql # not compatible
query II rowsort label-9434
SELECT + 98 AS col0, 81 * + - 32 + + + NULLIF ( - MAX ( - 21 ), - - 3 ) + + 70 * + 25 * - 12 * 99 AS col2
----
98
-2081571

query II rowsort
SELECT ALL - 8 AS col0, 7 + + 70 AS col2
----
-8
77

query I rowsort
SELECT + 42 * 28 AS col2
----
1176

onlyif mysql # aggregate syntax: 
query II rowsort label-9437
SELECT ALL - ( - COUNT( * ) ), COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-9437
SELECT ALL - ( - COUNT ( * ) ), COUNT ( * )
----
1
1

query I rowsort
SELECT ALL + + 5 - - - 61 AS col1
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-9439
SELECT SUM( - - 25 ) + - 85 AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-9439
SELECT SUM ( - - 25 ) + - 85 AS col1
----
-60

query II rowsort
SELECT 75 + - 62 AS col0, 34
----
13
34

query I rowsort
SELECT 18 * - + 59 AS col1
----
-1062

onlyif mysql # aggregate syntax: 
query I rowsort label-9442
SELECT - 21 * - - 86 + COUNT( - - 88 ) - + + 65 * - - 69
----
-6290

skipif mysql # not compatible
query I rowsort label-9442
SELECT - 21 * - - 86 + COUNT ( - - 88 ) - + + 65 * - - 69
----
-6290

onlyif mysql # aggregate syntax: 
query I rowsort label-9443
SELECT 65 - - COUNT( * ) * + 22 col1
----
87

skipif mysql # not compatible
query I rowsort label-9443
SELECT 65 - - COUNT ( * ) * + 22 col1
----
87

query II rowsort
SELECT ALL - + 27, - ( + - 78 ) AS col0
----
-27
78

onlyif mysql # aggregate syntax: 
query II rowsort label-9445
SELECT MIN( DISTINCT + 62 ) + - 58 AS col2, COUNT( * )
----
4
1

skipif mysql # not compatible
query II rowsort label-9445
SELECT MIN ( DISTINCT + 62 ) + - 58 AS col2, COUNT ( * )
----
4
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9446
SELECT CASE - - COUNT( * ) WHEN MIN( - - ( 81 ) ) + + 54 * + + MIN( - 6 ) THEN + ( - 44 ) DIV + - 73 DIV 98 WHEN + + CAST( NULL AS SIGNED ) * - + COUNT( * ) THEN NULL WHEN - 43 * 57 - - 50 + 80 * - AVG ( - 7 DIV 28 + 41 ) THEN NULL ELSE + 95 * 95 - 14 END + - 6 AS col2
----
9005

skipif mysql # not compatible
query I rowsort label-9446
SELECT CASE - - COUNT ( * ) WHEN MIN ( - - ( 81 ) ) + + 54 * + + MIN ( - 6 ) THEN + ( - 44 ) / + - 73 / 98 WHEN + + CAST ( NULL AS INTEGER ) * - + COUNT ( * ) THEN NULL WHEN - 43 * 57 - - 50 + 80 * - AVG ( - 7 / 28 + 41 ) THEN NULL ELSE + 95 * 95 - 14 END + - 6 AS col2
----
9005

onlyif mysql # aggregate syntax: 
query I rowsort label-9447
SELECT ALL 24 * COUNT( 23 ) * + 28 AS col1
----
672

skipif mysql # not compatible
query I rowsort label-9447
SELECT ALL 24 * COUNT ( 23 ) * + 28 AS col1
----
672

query I rowsort
SELECT ALL 83 + + - 91 + 1 * + 67 AS col1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9449
SELECT 78 + + - MIN( + 85 ) col0
----
-7

skipif mysql # not compatible
query I rowsort label-9449
SELECT 78 + + - MIN ( + 85 ) col0
----
-7

query I rowsort
SELECT 17 + + 19
----
36

query I rowsort
SELECT ALL 88 + - 3 AS col2
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9452
SELECT ALL 47 + + - 79 col0, CAST( NULL AS SIGNED ) + + + 55 * - 10 * 54 AS col2
----
-32
NULL

skipif mysql # not compatible
query II rowsort label-9452
SELECT ALL 47 + + - 79 col0, CAST ( NULL AS INTEGER ) + + + 55 * - 10 * 54 AS col2
----
-32
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9453
SELECT DISTINCT + 62 DIV + ( - - 96 )
----
0

skipif mysql # not compatible
query I rowsort label-9453
SELECT DISTINCT + 62 / + ( - - 96 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9454
SELECT ALL - NULLIF ( ( - 0 ), + 39 ) + + ( COUNT( * ) ) + + CAST( - + 85 AS SIGNED ) * - + 12 AS col0
----
1021

skipif mysql # not compatible
query I rowsort label-9454
SELECT ALL - NULLIF ( ( - 0 ), + 39 ) + + ( COUNT ( * ) ) + + CAST ( - + 85 AS INTEGER ) * - + 12 AS col0
----
1021

query I rowsort
SELECT ( + 75 ) * + 54 AS col2
----
4050

onlyif mysql # aggregate syntax: 
query I rowsort label-9456
SELECT COUNT( * ) * NULLIF ( + + 96, + COUNT( - + 70 ) + + - 8 + - ( 54 ) )
----
96

skipif mysql # not compatible
query I rowsort label-9456
SELECT COUNT ( * ) * NULLIF ( + + 96, + COUNT ( - + 70 ) + + - 8 + - ( 54 ) )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9457
SELECT ALL 16 + COUNT( * ) + + 91 AS col2
----
108

skipif mysql # not compatible
query I rowsort label-9457
SELECT ALL 16 + COUNT ( * ) + + 91 AS col2
----
108

query I rowsort
SELECT 23 + - 25 AS col1
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9459
SELECT DISTINCT - CASE COALESCE ( - CAST( - CAST( - 16 AS SIGNED ) AS SIGNED ), 84 * + 38 + + 79, + COUNT( + 96 ) + - CAST( NULL AS SIGNED ) / 39 * - + 65 ) WHEN + 8 THEN + ( - 81 ) WHEN CAST( + ( - 36 ) AS SIGNED ) THEN NULL END + 1
----
NULL

skipif mysql # not compatible
query I rowsort label-9459
SELECT DISTINCT - CASE COALESCE ( - CAST ( - CAST ( - 16 AS INTEGER ) AS INTEGER ), 84 * + 38 + + 79, + COUNT ( + 96 ) + - CAST ( NULL AS INTEGER ) / 39 * - + 65 ) WHEN + 8 THEN + ( - 81 ) WHEN CAST ( + ( - 36 ) AS INTEGER ) THEN NULL END + 1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9460
SELECT COUNT( * ) - ( 41 ) * CASE + - COALESCE ( 19, - 94, - + 91 * + 28 ) WHEN + + AVG ( DISTINCT - 59 ) THEN + 45 END, - 22 AS col0
----
NULL
-22

skipif mysql # not compatible
query II rowsort label-9460
SELECT COUNT ( * ) - ( 41 ) * CASE + - COALESCE ( 19, - 94, - + 91 * + 28 ) WHEN + + AVG ( DISTINCT - 59 ) THEN + 45 END, - 22 AS col0
----
NULL
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9461
SELECT CASE + + 46 WHEN + - 6 THEN NULL WHEN 49 * ( - ( + - SUM( ALL - 39 ) ) ) * - 33 + + 78 * + 55 * + CAST( NULL AS SIGNED ) / + SUM( DISTINCT + - 80 ) THEN + 22 * 5 END + + + 14 - + MIN( ALL 27 ) * + ( 36 / - 67 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9461
SELECT CASE + + 46 WHEN + - 6 THEN NULL WHEN 49 * ( - ( + - SUM ( ALL - 39 ) ) ) * - 33 + + 78 * + 55 * + CAST ( NULL AS INTEGER ) / + SUM ( DISTINCT + - 80 ) THEN + 22 * 5 END + + + 14 - + MIN ( ALL 27 ) * + ( 36 / - 67 ) AS col1
----
NULL

query II rowsort
SELECT DISTINCT - - 45 - - 88, - 37 * - 64 AS col2
----
133
2368

onlyif mysql # aggregate syntax: 
query I rowsort label-9463
SELECT ALL 91 - - + COUNT( * ) + ( - COUNT( * ) )
----
91

skipif mysql # not compatible
query I rowsort label-9463
SELECT ALL 91 - - + COUNT ( * ) + ( - COUNT ( * ) )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9464
SELECT DISTINCT - SUM( ALL - 82 )
----
82

skipif mysql # not compatible
query I rowsort label-9464
SELECT DISTINCT - SUM ( ALL - 82 )
----
82

query I rowsort
SELECT ALL - + 57 - + 74 AS col2
----
-131

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9466
SELECT - COALESCE ( + COUNT( * ), - 65 ) * - + MAX( ALL + 35 ) * - CAST( NULL AS SIGNED ) + + 39 + + 4 / - COUNT( ALL 10 ) AS col1, 28 AS col0
----
NULL
28

skipif mysql # not compatible
query II rowsort label-9466
SELECT - COALESCE ( + COUNT ( * ), - 65 ) * - + MAX ( ALL + 35 ) * - CAST ( NULL AS INTEGER ) + + 39 + + 4 / - COUNT ( ALL 10 ) AS col1, 28 AS col0
----
NULL
28

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9467
SELECT + 58 DIV + + CAST( - - 94 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-9467
SELECT + 58 / + + CAST ( - - 94 AS INTEGER )
----
0

query I rowsort
SELECT + 15 * + 77 - + 47 AS col0
----
1108

query I rowsort
SELECT 79 + - 44 AS col2
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9470
SELECT + 42 DIV - 42 + COUNT( ALL 98 ) - + SUM( + 13 ) AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-9470
SELECT + 42 / - 42 + COUNT ( ALL 98 ) - + SUM ( + 13 ) AS col2
----
-13

query I rowsort
SELECT ALL 81 * 56
----
4536

query I rowsort
SELECT ALL + - 85 * 92 AS col2
----
-7820

query I rowsort
SELECT 88 * + 79 AS col1
----
6952

onlyif mysql # aggregate syntax: 
query I rowsort label-9474
SELECT DISTINCT - 39 + - 12 + NULLIF ( - ( - 62 ), + - MAX( DISTINCT - - 23 ) )
----
11

skipif mysql # not compatible
query I rowsort label-9474
SELECT DISTINCT - 39 + - 12 + NULLIF ( - ( - 62 ), + - MAX ( DISTINCT - - 23 ) )
----
11

query II rowsort
SELECT + 50 * - - 58 - - - 6 AS col0, 71 AS col2
----
2894
71

query II rowsort
SELECT + 98 AS col1, NULLIF ( - 24, - 64 ) * 88 AS col0
----
98
-2112

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9477
SELECT COUNT( * ) * + - 50 DIV ( - 7 ) AS col2
----
7

skipif mysql # not compatible
query I rowsort label-9477
SELECT COUNT ( * ) * + - 50 / ( - 7 ) AS col2
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9478
SELECT ALL + COUNT( * ) + 51 AS col1
----
52

skipif mysql # not compatible
query I rowsort label-9478
SELECT ALL + COUNT ( * ) + 51 AS col1
----
52

query I rowsort
SELECT 81 + + + 4
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9480
SELECT ALL 76 + - 18 * - - MIN( CAST( NULL AS SIGNED ) ) / - COUNT( + CASE WHEN NOT 72 BETWEEN NULL AND 31 + - - 15 THEN NULL ELSE + 5 END ) + + 52 + + - 43 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9480
SELECT ALL 76 + - 18 * - - MIN ( CAST ( NULL AS INTEGER ) ) / - COUNT ( + CASE WHEN NOT 72 BETWEEN NULL AND 31 + - - 15 THEN NULL ELSE + 5 END ) + + 52 + + - 43 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9481
SELECT DISTINCT - 67 + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9481
SELECT DISTINCT - 67 + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL 29 + - + 78
----
-49

query I rowsort
SELECT ALL NULLIF ( + - 61, + 77 )
----
-61

onlyif mysql # aggregate syntax: 
query II rowsort label-9484
SELECT DISTINCT CASE + ( 0 ) WHEN + 88 THEN - MAX( 76 ) * MAX( - 78 ) ELSE 65 END, - 88 * + + 35 AS col2
----
65
-3080

skipif mysql # not compatible
query II rowsort label-9484
SELECT DISTINCT CASE + ( 0 ) WHEN + 88 THEN - MAX ( 76 ) * MAX ( - 78 ) ELSE 65 END, - 88 * + + 35 AS col2
----
65
-3080

query I rowsort
SELECT + 11 + + 22 - 55 + 56 col2
----
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9486
SELECT - ( + 70 ) * - COALESCE ( 27, + 69 + 93 * - 22 DIV - 48 * MAX( DISTINCT - 95 ) DIV + - ( 9 ) + NULLIF ( - 32, 80 + - COUNT( * ) - - COUNT( * ) ) + + 3, 52 ) * - 26 + 4 * 65
----
-48880

skipif mysql # not compatible
query I rowsort label-9486
SELECT - ( + 70 ) * - COALESCE ( 27, + 69 + 93 * - 22 / - 48 * MAX ( DISTINCT - 95 ) / + - ( 9 ) + NULLIF ( - 32, 80 + - COUNT ( * ) - - COUNT ( * ) ) + + 3, 52 ) * - 26 + 4 * 65
----
-48880

query II rowsort
SELECT 74 AS col0, 97 AS col1
----
74
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9488
SELECT ALL COALESCE ( + 88, - COUNT( * ), - 36 ) * - - 97 AS col2
----
8536

skipif mysql # not compatible
query I rowsort label-9488
SELECT ALL COALESCE ( + 88, - COUNT ( * ), - 36 ) * - - 97 AS col2
----
8536

query I rowsort
SELECT - NULLIF ( 71, - - 87 )
----
-71

query I rowsort
SELECT DISTINCT ( - 66 ) * 0 col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9491
SELECT + 75 + + COUNT( ALL + CAST( 17 AS SIGNED ) )
----
76

skipif mysql # not compatible
query I rowsort label-9491
SELECT + 75 + + COUNT ( ALL + CAST ( 17 AS INTEGER ) )
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9492
SELECT + COUNT( DISTINCT 21 ) * + 9 * 82 - - + CAST( + 88 AS SIGNED ) AS col1, + ( + 90 ) AS col0
----
826
90

skipif mysql # not compatible
query II rowsort label-9492
SELECT + COUNT ( DISTINCT 21 ) * + 9 * 82 - - + CAST ( + 88 AS INTEGER ) AS col1, + ( + 90 ) AS col0
----
826
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9493
SELECT + 57 - - COUNT( * )
----
58

skipif mysql # not compatible
query I rowsort label-9493
SELECT + 57 - - COUNT ( * )
----
58

query II rowsort
SELECT ALL 41 AS col0, - 82 AS col2
----
41
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-9495
SELECT DISTINCT + 76 * + ( MAX( DISTINCT 27 ) ) * 38 + - - 42 * + 61
----
80538

skipif mysql # not compatible
query I rowsort label-9495
SELECT DISTINCT + 76 * + ( MAX ( DISTINCT 27 ) ) * 38 + - - 42 * + 61
----
80538

query I rowsort
SELECT DISTINCT 62 * - 37 AS col0
----
-2294

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9497
SELECT ALL COUNT( * ) / - CAST( NULL AS DECIMAL ) + 54 / - - COUNT( * ) / CASE - 90 WHEN - 86 THEN 56 * - + 40 + 4 END * COUNT( * ) + - MIN( + 63 ) + - 44 + 66 * - + 13 / - 97 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9497
SELECT ALL COUNT ( * ) / - CAST ( NULL AS REAL ) + 54 / - - COUNT ( * ) / CASE - 90 WHEN - 86 THEN 56 * - + 40 + 4 END * COUNT ( * ) + - MIN ( + 63 ) + - 44 + 66 * - + 13 / - 97 AS col1
----
NULL

query I rowsort
SELECT DISTINCT ( 90 ) AS col2
----
90

query II rowsort
SELECT - 93 AS col1, 84
----
-93
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9500
SELECT DISTINCT + AVG ( DISTINCT CAST( NULL AS SIGNED ) ) - + MAX( 51 ) + 43 * + + ( + COUNT( * ) ) * + 37 * + AVG ( - 71 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9500
SELECT DISTINCT + AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) - + MAX ( 51 ) + 43 * + + ( + COUNT ( * ) ) * + 37 * + AVG ( - 71 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9501
SELECT DISTINCT + COUNT( ALL - 66 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9501
SELECT DISTINCT + COUNT ( ALL - 66 ) AS col0
----
1

query I rowsort
SELECT + + 88 + - 49 AS col2
----
39

query I rowsort
SELECT + 77 * 12
----
924

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9504
SELECT + - NULLIF ( + CASE + 56 WHEN - 55 THEN - - 40 * - 7 + 31 + - 91 - + COUNT( * ) + + CAST( NULL AS SIGNED ) ELSE + 57 * + - 15 END, 56 - + 67 - + 26 * COUNT( * ) ) + 31 AS col0
----
886

skipif mysql # not compatible
query I rowsort label-9504
SELECT + - NULLIF ( + CASE + 56 WHEN - 55 THEN - - 40 * - 7 + 31 + - 91 - + COUNT ( * ) + + CAST ( NULL AS INTEGER ) ELSE + 57 * + - 15 END, 56 - + 67 - + 26 * COUNT ( * ) ) + 31 AS col0
----
886

onlyif mysql # aggregate syntax: 
query II rowsort label-9505
SELECT - - COUNT( * ) AS col1, 59 - + + 82 - - 93 + + + 68
----
1
138

skipif mysql # not compatible
query II rowsort label-9505
SELECT - - COUNT ( * ) AS col1, 59 - + + 82 - - 93 + + + 68
----
1
138

query I rowsort
SELECT + + 39 + - - 61
----
100

query II rowsort
SELECT DISTINCT + + 87, - 19 AS col0
----
87
-19

query I rowsort
SELECT DISTINCT 91 * 3
----
273

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9509
SELECT ALL + NULLIF ( - - 29, - 63 DIV - - 47 + 28 ) * + 57 * + COUNT( + 5 ) + + - 53 + - 96 + 53 + - - COALESCE ( - NULLIF ( - + 83, 13 ), - COUNT( * ) * - + 35 * - 91 DIV COUNT( * ) ) DIV + 3
----
1584

skipif mysql # not compatible
query I rowsort label-9509
SELECT ALL + NULLIF ( - - 29, - 63 / - - 47 + 28 ) * + 57 * + COUNT ( + 5 ) + + - 53 + - 96 + 53 + - - COALESCE ( - NULLIF ( - + 83, 13 ), - COUNT ( * ) * - + 35 * - 91 / COUNT ( * ) ) / + 3
----
1584

onlyif mysql # aggregate syntax: 
query I rowsort label-9510
SELECT ALL 10 * COUNT( * ) * - 48 + - 32 + - 83 * - - 99
----
-8729

skipif mysql # not compatible
query I rowsort label-9510
SELECT ALL 10 * COUNT ( * ) * - 48 + - 32 + - 83 * - - 99
----
-8729

onlyif mysql # aggregate syntax: 
query I rowsort label-9511
SELECT DISTINCT 21 * + CASE + 79 WHEN + 31 THEN 75 + CASE WHEN NOT + 77 IS NOT NULL THEN - 21 ELSE NULL END WHEN - - 3 * + + 92 THEN - - 98 - + ( 16 ) WHEN + - 55 + - + COUNT( * ) THEN + COALESCE ( + 47, + 93 ) ELSE NULL END / - COUNT( * ) + + 25 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9511
SELECT DISTINCT 21 * + CASE + 79 WHEN + 31 THEN 75 + CASE WHEN NOT + 77 IS NOT NULL THEN - 21 ELSE NULL END WHEN - - 3 * + + 92 THEN - - 98 - + ( 16 ) WHEN + - 55 + - + COUNT ( * ) THEN + COALESCE ( + 47, + 93 ) ELSE NULL END / - COUNT ( * ) + + 25 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9512
SELECT + - COUNT( 54 )
----
-1

skipif mysql # not compatible
query I rowsort label-9512
SELECT + - COUNT ( 54 )
----
-1

query I rowsort
SELECT - - 23 + + 58
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9514
SELECT ALL - 78 * + COUNT( * ) + - 30
----
-108

skipif mysql # not compatible
query I rowsort label-9514
SELECT ALL - 78 * + COUNT ( * ) + - 30
----
-108

query I rowsort
SELECT 12 * - 73 + + ( - 73 ) * 25 + - 75 + - 46 AS col2
----
-2822

query I rowsort
SELECT - 95 + + 55 col2
----
-40

query I rowsort
SELECT NULLIF ( - + 26, + 96 ) col2
----
-26

onlyif mysql # aggregate syntax: 
query II rowsort label-9518
SELECT - COUNT( * ) * - 51 * + + 18 + - + COUNT( * ) AS col0, 79 + - - COUNT( * ) col1
----
917
80

skipif mysql # not compatible
query II rowsort label-9518
SELECT - COUNT ( * ) * - 51 * + + 18 + - + COUNT ( * ) AS col0, 79 + - - COUNT ( * ) col1
----
917
80

query I rowsort
SELECT DISTINCT - 62 * + - 59 AS col2
----
3658

query I rowsort
SELECT ALL COALESCE ( 1, + + 54, - + 25 ) * + 61 + - 46
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-9521
SELECT ALL - 47 * + MIN( ALL + 57 ) / + - 17 - + - 19 + 78 - + ( - CASE 59 WHEN + - 10 THEN NULL WHEN 80 / + + 2 THEN + + 93 END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9521
SELECT ALL - 47 * + MIN ( ALL + 57 ) / + - 17 - + - 19 + 78 - + ( - CASE 59 WHEN + - 10 THEN NULL WHEN 80 / + + 2 THEN + + 93 END ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 63 * 70 AS col0
----
-4410

query I rowsort
SELECT - ( 74 ) * + - 90
----
6660

query II rowsort
SELECT - 17 + 52, + 91 AS col2
----
35
91

query I rowsort
SELECT - 69 * + 54
----
-3726

query I rowsort
SELECT ALL ( 47 ) col1
----
47

query I rowsort
SELECT DISTINCT + ( 79 ) - - 40 * + ( + 76 )
----
3119

query II rowsort
SELECT ALL ( - 80 ), - 88 AS col0
----
-80
-88

onlyif mysql # aggregate syntax: 
query II rowsort label-9529
SELECT + + 78 + 23 + - 32 + + + SUM( ALL - 18 ), 89 col0
----
51
89

skipif mysql # not compatible
query II rowsort label-9529
SELECT + + 78 + 23 + - 32 + + + SUM ( ALL - 18 ), 89 col0
----
51
89

query I rowsort
SELECT + - 3 + - 77 + 29 AS col2
----
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-9531
SELECT ALL COUNT( DISTINCT 69 ) AS col2, 92 AS col0
----
1
92

skipif mysql # not compatible
query II rowsort label-9531
SELECT ALL COUNT ( DISTINCT 69 ) AS col2, 92 AS col0
----
1
92

query I rowsort
SELECT - 70 * 43
----
-3010

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9533
SELECT + ( - 9 ) + - 14 DIV - 75 + - COUNT( * ) + - - 50 * 37 AS col2
----
1840

skipif mysql # not compatible
query I rowsort label-9533
SELECT + ( - 9 ) + - 14 / - 75 + - COUNT ( * ) + - - 50 * 37 AS col2
----
1840

query II rowsort
SELECT + 53 + 53 + - 15 * + 86 AS col1, 17 + + 89 * 9 AS col1
----
-1184
818

query I rowsort
SELECT ALL - - 44 * - 60 AS col2
----
-2640

onlyif mysql # DIV for integer division: 
query I rowsort label-9536
SELECT + 97 DIV - + 2 + + + 87
----
39

skipif mysql # not compatible
query I rowsort label-9536
SELECT + 97 / - + 2 + + + 87
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9537
SELECT DISTINCT - CAST( - 42 AS SIGNED ) * - 18 * - 57 AS col0, NULLIF ( 22, 51 )
----
43092
22

skipif mysql # not compatible
query II rowsort label-9537
SELECT DISTINCT - CAST ( - 42 AS INTEGER ) * - 18 * - 57 AS col0, NULLIF ( 22, 51 )
----
43092
22

onlyif mysql # aggregate syntax: 
query I rowsort label-9538
SELECT - ( + - COUNT( DISTINCT 0 ) )
----
1

skipif mysql # not compatible
query I rowsort label-9538
SELECT - ( + - COUNT ( DISTINCT 0 ) )
----
1

query I rowsort
SELECT DISTINCT 98 + + - 23 * 93 + + 9 * - 54 AS col2
----
-2527

onlyif mysql # aggregate syntax: 
query I rowsort label-9540
SELECT + - 16 - COUNT( * )
----
-17

skipif mysql # not compatible
query I rowsort label-9540
SELECT + - 16 - COUNT ( * )
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-9541
SELECT + + MAX( DISTINCT - + 0 ) * + 85
----
0

skipif mysql # not compatible
query I rowsort label-9541
SELECT + + MAX ( DISTINCT - + 0 ) * + 85
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9542
SELECT ALL 31 DIV 49 + + 85 + 50 * 77 + - 71 * - + 88 + - 31 AS col1
----
10152

skipif mysql # not compatible
query I rowsort label-9542
SELECT ALL 31 / 49 + + 85 + 50 * 77 + - 71 * - + 88 + - 31 AS col1
----
10152

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9543
SELECT CAST( + + 99 AS SIGNED ) AS col2, + CASE - 8 WHEN + - 45 THEN NULL ELSE - 38 END AS col0
----
99
-38

skipif mysql # not compatible
query II rowsort label-9543
SELECT CAST ( + + 99 AS INTEGER ) AS col2, + CASE - 8 WHEN + - 45 THEN NULL ELSE - 38 END AS col0
----
99
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9544
SELECT + CAST( - MAX( ALL + ( CASE - 92 WHEN 0 THEN + 79 * - + 11 END ) ) AS SIGNED ) * - 60
----
NULL

skipif mysql # not compatible
query I rowsort label-9544
SELECT + CAST ( - MAX ( ALL + ( CASE - 92 WHEN 0 THEN + 79 * - + 11 END ) ) AS INTEGER ) * - 60
----
NULL

query I rowsort
SELECT - 71 * - 37 AS col0
----
2627

onlyif mysql # aggregate syntax: 
query I rowsort label-9546
SELECT DISTINCT + CASE - + 91 WHEN - 39 THEN 28 WHEN + - 71 * + 6 THEN - SUM( + + 19 ) WHEN - - 28 THEN + COUNT( * ) END * - - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9546
SELECT DISTINCT + CASE - + 91 WHEN - 39 THEN 28 WHEN + - 71 * + 6 THEN - SUM ( + + 19 ) WHEN - - 28 THEN + COUNT ( * ) END * - - COUNT ( * ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9547
SELECT ALL + 53 DIV 63 + 23 AS col1
----
23

skipif mysql # not compatible
query I rowsort label-9547
SELECT ALL + 53 / 63 + 23 AS col1
----
23

query I rowsort
SELECT ALL 24 * - + 61
----
-1464

query I rowsort
SELECT 7 * 66
----
462

query I rowsort
SELECT DISTINCT 59 * - 50
----
-2950

onlyif mysql # aggregate syntax: 
query I rowsort label-9551
SELECT ALL COUNT( * ) - + + 2 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9551
SELECT ALL COUNT ( * ) - + + 2 AS col1
----
-1

query I rowsort
SELECT ( - 12 ) + - - 11
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9553
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * + + 88 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9553
SELECT DISTINCT - CAST ( NULL AS REAL ) * + + 88 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9554
SELECT 32 * - MAX( DISTINCT 51 ) AS col1, + 89 * - 76 AS col1
----
-1632
-6764

skipif mysql # not compatible
query II rowsort label-9554
SELECT 32 * - MAX ( DISTINCT 51 ) AS col1, + 89 * - 76 AS col1
----
-1632
-6764

onlyif mysql # aggregate syntax: 
query I rowsort label-9555
SELECT ALL - MIN( DISTINCT - 12 ) AS col1
----
12

skipif mysql # not compatible
query I rowsort label-9555
SELECT ALL - MIN ( DISTINCT - 12 ) AS col1
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-9556
SELECT DISTINCT - 32 DIV + 23
----
-1

skipif mysql # not compatible
query I rowsort label-9556
SELECT DISTINCT - 32 / + 23
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9557
SELECT 41 + + COUNT( * ) - + 51 * - 43 AS col0
----
2235

skipif mysql # not compatible
query I rowsort label-9557
SELECT 41 + + COUNT ( * ) - + 51 * - 43 AS col0
----
2235

onlyif mysql # aggregate syntax: 
query I rowsort label-9558
SELECT 48 * - COUNT( * )
----
-48

skipif mysql # not compatible
query I rowsort label-9558
SELECT 48 * - COUNT ( * )
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-9559
SELECT ALL COALESCE ( - ( + + 81 ), 12, + MIN( DISTINCT 59 ) - 37 ) AS col2
----
-81

skipif mysql # not compatible
query I rowsort label-9559
SELECT ALL COALESCE ( - ( + + 81 ), 12, + MIN ( DISTINCT 59 ) - 37 ) AS col2
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9560
SELECT NULLIF ( COUNT( * ), + + 10 ) * + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-9560
SELECT NULLIF ( COUNT ( * ), + + 10 ) * + - COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9561
SELECT - COUNT( ALL - - 73 ) * ( - 59 ) AS col1
----
59

skipif mysql # not compatible
query I rowsort label-9561
SELECT - COUNT ( ALL - - 73 ) * ( - 59 ) AS col1
----
59

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9562
SELECT + CAST( NULL AS DECIMAL ) * + - 87
----
NULL

skipif mysql # not compatible
query I rowsort label-9562
SELECT + CAST ( NULL AS REAL ) * + - 87
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9563
SELECT DISTINCT - 75 * 47 DIV + 14 + + 5
----
-246

skipif mysql # not compatible
query I rowsort label-9563
SELECT DISTINCT - 75 * 47 / + 14 + + 5
----
-246

query I rowsort
SELECT ALL + 11 + - 50
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9565
SELECT ALL ( - CASE - + COUNT( * ) WHEN 1 * + COUNT( 34 ) - - - 27 * - COUNT( * ) THEN 3 DIV + CAST( + 81 AS SIGNED ) WHEN - - 46 THEN NULL ELSE - - 48 END ) + - 20 AS col2
----
-68

skipif mysql # not compatible
query I rowsort label-9565
SELECT ALL ( - CASE - + COUNT ( * ) WHEN 1 * + COUNT ( 34 ) - - - 27 * - COUNT ( * ) THEN 3 / + CAST ( + 81 AS INTEGER ) WHEN - - 46 THEN NULL ELSE - - 48 END ) + - 20 AS col2
----
-68

query I rowsort
SELECT + 8 + - 30
----
-22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9567
SELECT 98 + - + CASE 15 WHEN - 85 THEN NULL ELSE 73 * + 98 + - 90 DIV + 70 + + MAX( DISTINCT - 48 ) END AS col1
----
-7007

skipif mysql # not compatible
query I rowsort label-9567
SELECT 98 + - + CASE 15 WHEN - 85 THEN NULL ELSE 73 * + 98 + - 90 / + 70 + + MAX ( DISTINCT - 48 ) END AS col1
----
-7007

onlyif mysql # aggregate syntax: 
query II rowsort label-9568
SELECT - 70 + + 3 * 52 AS col2, - COALESCE ( + - 90, 27 + SUM( ALL + 87 ) )
----
86
90

skipif mysql # not compatible
query II rowsort label-9568
SELECT - 70 + + 3 * 52 AS col2, - COALESCE ( + - 90, 27 + SUM ( ALL + 87 ) )
----
86
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9569
SELECT 88 - + MAX( ALL - 78 )
----
166

skipif mysql # not compatible
query I rowsort label-9569
SELECT 88 - + MAX ( ALL - 78 )
----
166

query I rowsort
SELECT DISTINCT + 59 * + + 8 AS col1
----
472

query I rowsort
SELECT ALL 28 * 88 * + ( - 58 )
----
-142912

onlyif mysql # aggregate syntax: 
query II rowsort label-9572
SELECT ALL - COALESCE ( + - 11, SUM( - ( - + 38 ) ) * + 26, + MAX( ALL + - ( + + 14 ) ) ) + 42 AS col2, ( + 43 ) * NULLIF ( + + 74, - 65 + + - 65 + + + 37 * + + COUNT( * ) ) + 75
----
53
3257

skipif mysql # not compatible
query II rowsort label-9572
SELECT ALL - COALESCE ( + - 11, SUM ( - ( - + 38 ) ) * + 26, + MAX ( ALL + - ( + + 14 ) ) ) + 42 AS col2, ( + 43 ) * NULLIF ( + + 74, - 65 + + - 65 + + + 37 * + + COUNT ( * ) ) + 75
----
53
3257

onlyif mysql # aggregate syntax: 
query I rowsort label-9573
SELECT DISTINCT + + COUNT( * ) + 9 + + 25 * + ( + ( 85 ) )
----
2135

skipif mysql # not compatible
query I rowsort label-9573
SELECT DISTINCT + + COUNT ( * ) + 9 + + 25 * + ( + ( 85 ) )
----
2135

query I rowsort
SELECT ALL + 17 * + 56 AS col2
----
952

query I rowsort
SELECT ALL - 62 * - 52
----
3224

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9576
SELECT ALL COUNT( * ) DIV - ( + - CAST( - + ( - SUM( ALL - 81 ) ) AS SIGNED ) ) * + 76 + - 83
----
-83

skipif mysql # not compatible
query I rowsort label-9576
SELECT ALL COUNT ( * ) / - ( + - CAST ( - + ( - SUM ( ALL - 81 ) ) AS INTEGER ) ) * + 76 + - 83
----
-83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9577
SELECT 26 DIV ( - COUNT( * ) ) * - 68 * - 12 + 9 * + 70 AS col0
----
-20586

skipif mysql # not compatible
query I rowsort label-9577
SELECT 26 / ( - COUNT ( * ) ) * - 68 * - 12 + 9 * + 70 AS col0
----
-20586

query I rowsort
SELECT 87 * 97 * + + ( - 46 ) AS col2
----
-388194

query I rowsort
SELECT 90 * + 44 AS col0
----
3960

query II rowsort
SELECT + 59 AS col0, 4
----
59
4

onlyif mysql # aggregate syntax: 
query II rowsort label-9581
SELECT + 12, + COUNT( * ) - + - 89 AS col0
----
12
90

skipif mysql # not compatible
query II rowsort label-9581
SELECT + 12, + COUNT ( * ) - + - 89 AS col0
----
12
90

query I rowsort
SELECT 13 * - 80
----
-1040

query II rowsort
SELECT 71 AS col1, 50
----
71
50

query II rowsort
SELECT ALL - 51 AS col0, 20 AS col1
----
-51
20

query I rowsort
SELECT 25 * + 98 * - - 28
----
68600

onlyif mysql # aggregate syntax: 
query I rowsort label-9586
SELECT DISTINCT - COUNT( ALL 77 )
----
-1

skipif mysql # not compatible
query I rowsort label-9586
SELECT DISTINCT - COUNT ( ALL 77 )
----
-1

query I rowsort
SELECT DISTINCT 69 * ( - + 33 )
----
-2277

query I rowsort
SELECT ALL - NULLIF ( - 58, - - 91 )
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9589
SELECT + MIN( - ( - + 26 ) )
----
26

skipif mysql # not compatible
query I rowsort label-9589
SELECT + MIN ( - ( - + 26 ) )
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9590
SELECT DISTINCT - 83, CAST( NULL AS SIGNED ) AS col2
----
-83
NULL

skipif mysql # not compatible
query II rowsort label-9590
SELECT DISTINCT - 83, CAST ( NULL AS INTEGER ) AS col2
----
-83
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9591
SELECT ALL COUNT( * ) * - 90 AS col0
----
-90

skipif mysql # not compatible
query I rowsort label-9591
SELECT ALL COUNT ( * ) * - 90 AS col0
----
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-9592
SELECT ( + MIN( DISTINCT 66 ) ) + 26 col1, 75 - 17 AS col2
----
92
58

skipif mysql # not compatible
query II rowsort label-9592
SELECT ( + MIN ( DISTINCT 66 ) ) + 26 col1, 75 - 17 AS col2
----
92
58

query I rowsort
SELECT - 43 * 93 * + + 78 * 20 AS col2
----
-6238440

query I rowsort
SELECT 23 + + + 48 AS col2
----
71

onlyif mysql # DIV for integer division: 
query I rowsort label-9595
SELECT + 52 DIV + 60 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9595
SELECT + 52 / + 60 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9596
SELECT MAX( + 19 ) * + - 22
----
-418

skipif mysql # not compatible
query I rowsort label-9596
SELECT MAX ( + 19 ) * + - 22
----
-418

query II rowsort
SELECT DISTINCT 79 AS col0, + ( NULLIF ( - - 82, - 36 + - + 19 ) ) AS col1
----
79
82

query I rowsort
SELECT ALL + 82 + 98
----
180

query II rowsort
SELECT - 35, - 83 AS col0
----
-35
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-9600
SELECT ALL - 71 DIV - 70 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9600
SELECT ALL - 71 / - 70 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9601
SELECT DISTINCT + COUNT( * ) + + + 51 * + - 22 AS col2
----
-1121

skipif mysql # not compatible
query I rowsort label-9601
SELECT DISTINCT + COUNT ( * ) + + + 51 * + - 22 AS col2
----
-1121

onlyif mysql # aggregate syntax: 
query I rowsort label-9602
SELECT DISTINCT ( + 47 ) + + - 81 - - - SUM( - 32 ) * - COUNT( * ) * - - 35 AS col1
----
-1154

skipif mysql # not compatible
query I rowsort label-9602
SELECT DISTINCT ( + 47 ) + + - 81 - - - SUM ( - 32 ) * - COUNT ( * ) * - - 35 AS col1
----
-1154

query I rowsort
SELECT ALL - 80 + - - 34 AS col0
----
-46

query I rowsort
SELECT 82 * 30
----
2460

onlyif mysql # aggregate syntax: 
query I rowsort label-9605
SELECT - MAX( - 54 ) AS col1
----
54

skipif mysql # not compatible
query I rowsort label-9605
SELECT - MAX ( - 54 ) AS col1
----
54

query I rowsort
SELECT - 59 - 26 + 24 * + + 14 AS col1
----
251

onlyif mysql # aggregate syntax: 
query I rowsort label-9607
SELECT COUNT( * ) + + 38 - + 51 AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-9607
SELECT COUNT ( * ) + + 38 - + 51 AS col0
----
-12

query I rowsort
SELECT - + ( - 88 )
----
88

query I rowsort
SELECT ALL + 39 - + + 20
----
19

query II rowsort
SELECT DISTINCT - 79 AS col0, - 58
----
-79
-58

query II rowsort
SELECT 84 AS col0, 0 AS col0
----
84
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9612
SELECT ALL + 21 - + 84 + + CASE NULLIF ( + 71, 32 ) WHEN 6 THEN + 2 END + - COUNT( * ) * + 40 / CASE - + ( 62 ) WHEN - 84 THEN NULL WHEN + + 3 * - AVG ( + 34 ) THEN + COALESCE ( 6, - + 77 + - COUNT( * ) * + 35 ) + - 85 ELSE - COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9612
SELECT ALL + 21 - + 84 + + CASE NULLIF ( + 71, 32 ) WHEN 6 THEN + 2 END + - COUNT ( * ) * + 40 / CASE - + ( 62 ) WHEN - 84 THEN NULL WHEN + + 3 * - AVG ( + 34 ) THEN + COALESCE ( 6, - + 77 + - COUNT ( * ) * + 35 ) + - 85 ELSE - COUNT ( * ) END AS col2
----
NULL

query I rowsort
SELECT ALL COALESCE ( 30, 16 ) AS col2
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9614
SELECT - NULLIF ( - - CAST( NULL AS SIGNED ), - + SUM( ALL - 56 ) ) - 22
----
NULL

skipif mysql # not compatible
query I rowsort label-9614
SELECT - NULLIF ( - - CAST ( NULL AS INTEGER ), - + SUM ( ALL - 56 ) ) - 22
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9615
SELECT NULLIF ( 28, + - NULLIF ( + AVG ( + 92 ), + 77 ) / + + 38 + COUNT( * ) + + CAST( - + 9 AS SIGNED ) + 40 + COUNT( * ) * 65 + + 82 ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-9615
SELECT NULLIF ( 28, + - NULLIF ( + AVG ( + 92 ), + 77 ) / + + 38 + COUNT ( * ) + + CAST ( - + 9 AS INTEGER ) + 40 + COUNT ( * ) * 65 + + 82 ) AS col0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-9616
SELECT + 65 * - - COALESCE ( - COUNT( * ), + 79 * + 24, COUNT( * ) ) * + + COUNT( ALL - COALESCE ( + 28, + + 65 ) )
----
-65

skipif mysql # not compatible
query I rowsort label-9616
SELECT + 65 * - - COALESCE ( - COUNT ( * ), + 79 * + 24, COUNT ( * ) ) * + + COUNT ( ALL - COALESCE ( + 28, + + 65 ) )
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-9617
SELECT ALL + COALESCE ( - - 47, + MIN( - 55 ) * + 63 + 41 ) * 26
----
1222

skipif mysql # not compatible
query I rowsort label-9617
SELECT ALL + COALESCE ( - - 47, + MIN ( - 55 ) * + 63 + 41 ) * 26
----
1222

onlyif mysql # aggregate syntax: 
query I rowsort label-9618
SELECT COALESCE ( + - COUNT( * ), + 50 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9618
SELECT COALESCE ( + - COUNT ( * ), + 50 ) AS col0
----
-1

query I rowsort
SELECT DISTINCT NULLIF ( - 1, - - 52 ) * + 40
----
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-9620
SELECT DISTINCT + 41 * + COUNT( * ) col2, - 58 + - ( - ( - + 61 ) ) - - 48 * - 40 * + 23 + - 12
----
41
-44291

skipif mysql # not compatible
query II rowsort label-9620
SELECT DISTINCT + 41 * + COUNT ( * ) col2, - 58 + - ( - ( - + 61 ) ) - - 48 * - 40 * + 23 + - 12
----
41
-44291

query I rowsort
SELECT - 29 * + 91 col1
----
-2639

query I rowsort
SELECT ALL + 32 * - 18 AS col1
----
-576

query I rowsort
SELECT ALL - 68 * + 4
----
-272

query I rowsort
SELECT DISTINCT + ( - + 12 )
----
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9625
SELECT + MAX( 65 ) * - 99 + + - COUNT( + 47 ) DIV - + 40
----
-6435

skipif mysql # not compatible
query I rowsort label-9625
SELECT + MAX ( 65 ) * - 99 + + - COUNT ( + 47 ) / - + 40
----
-6435

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9626
SELECT CASE - 7 WHEN - AVG ( DISTINCT + 9 ) * - 6 + + 88 + - MIN( DISTINCT + 68 ) + - 68 + - 10 / + MAX( - CASE + 70 WHEN + + 65 * + + 73 THEN - 19 ELSE + + 91 / 55 END ) + 0 THEN 23 * - 99 * + 31 WHEN - MAX( DISTINCT - COALESCE ( - CAST( NULL AS SIGNED ), + 49 ) ) THEN NULL WHEN 97 * 25 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9626
SELECT CASE - 7 WHEN - AVG ( DISTINCT + 9 ) * - 6 + + 88 + - MIN ( DISTINCT + 68 ) + - 68 + - 10 / + MAX ( - CASE + 70 WHEN + + 65 * + + 73 THEN - 19 ELSE + + 91 / 55 END ) + 0 THEN 23 * - 99 * + 31 WHEN - MAX ( DISTINCT - COALESCE ( - CAST ( NULL AS INTEGER ), + 49 ) ) THEN NULL WHEN 97 * 25 THEN NULL END
----
NULL

query I rowsort
SELECT + 4 * + - 85
----
-340

onlyif mysql # aggregate syntax: 
query I rowsort label-9628
SELECT + + 72 + - - MIN( ALL - 78 ) - + + ( - + 56 ) + + 93 * 72 col2
----
6746

skipif mysql # not compatible
query I rowsort label-9628
SELECT + + 72 + - - MIN ( ALL - 78 ) - + + ( - + 56 ) + + 93 * 72 col2
----
6746

onlyif mysql # aggregate syntax: 
query I rowsort label-9629
SELECT MAX( DISTINCT 13 ) * + - 75 * COUNT( * ) + + - 91 + - 76 * + 23
----
-2814

skipif mysql # not compatible
query I rowsort label-9629
SELECT MAX ( DISTINCT 13 ) * + - 75 * COUNT ( * ) + + - 91 + - 76 * + 23
----
-2814

onlyif mysql # aggregate syntax: 
query I rowsort label-9630
SELECT ALL + 69 * + - 45 + + - CASE + - COUNT( * ) WHEN + ( + - 68 ) THEN + 96 END + - + COUNT( * ) + + 76 * - 81 * 99 * + 50 * + + 65
----
NULL

skipif mysql # not compatible
query I rowsort label-9630
SELECT ALL + 69 * + - 45 + + - CASE + - COUNT ( * ) WHEN + ( + - 68 ) THEN + 96 END + - + COUNT ( * ) + + 76 * - 81 * 99 * + 50 * + + 65
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9631
SELECT ALL - 19 * - MAX( - - NULLIF ( + ( 31 ), 41 ) ) + - COUNT( * ), 1 AS col0
----
588
1

skipif mysql # not compatible
query II rowsort label-9631
SELECT ALL - 19 * - MAX ( - - NULLIF ( + ( 31 ), 41 ) ) + - COUNT ( * ), 1 AS col0
----
588
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9632
SELECT DISTINCT 49 * 4 * + 20 * - - CAST( + - 87 AS SIGNED ) * - 76 + 49 DIV 31 * - NULLIF ( - 4, 1 )
----
25919044

skipif mysql # not compatible
query I rowsort label-9632
SELECT DISTINCT 49 * 4 * + 20 * - - CAST ( + - 87 AS INTEGER ) * - 76 + 49 / 31 * - NULLIF ( - 4, 1 )
----
25919044

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9633
SELECT ALL COUNT( * ) * + CASE + - AVG ( ALL - ( 61 ) ) WHEN + - ( 98 ) THEN - CAST( - 37 AS SIGNED ) ELSE + 87 END
----
87

skipif mysql # not compatible
query I rowsort label-9633
SELECT ALL COUNT ( * ) * + CASE + - AVG ( ALL - ( 61 ) ) WHEN + - ( 98 ) THEN - CAST ( - 37 AS INTEGER ) ELSE + 87 END
----
87

query I rowsort
SELECT ALL 60 + 22 AS col0
----
82

query I rowsort
SELECT DISTINCT 65 * + 96 - - + 46
----
6286

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9636
SELECT + - COUNT( * ) + 56 + + CAST( NULL AS SIGNED ) * - 29 / + - 13 * - ( + COALESCE ( 54, 17 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9636
SELECT + - COUNT ( * ) + 56 + + CAST ( NULL AS INTEGER ) * - 29 / + - 13 * - ( + COALESCE ( 54, 17 ) ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9637
SELECT - 22 DIV 48 DIV + 28 * + 26
----
0

skipif mysql # not compatible
query I rowsort label-9637
SELECT - 22 / 48 / + 28 * + 26
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9638
SELECT + ( - + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9638
SELECT + ( - + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT ALL - + 11 - 85 * - 34 AS col2
----
2879

query I rowsort
SELECT + 79 * 80 + + 36 AS col1
----
6356

query II rowsort
SELECT + 88 - + 11 AS col2, + 50
----
77
50

query I rowsort
SELECT DISTINCT + - 99 * + 81
----
-8019

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9643
SELECT DISTINCT + 65 DIV + CAST( ( - + 8 ) AS SIGNED )
----
-8

skipif mysql # not compatible
query I rowsort label-9643
SELECT DISTINCT + 65 / + CAST ( ( - + 8 ) AS INTEGER )
----
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9644
SELECT ALL CASE + 97 WHEN + 56 THEN 41 WHEN COUNT( ALL - 20 ) THEN - - 54 END AS col1, + 54 DIV + 16 AS col2
----
NULL
3

skipif mysql # not compatible
query II rowsort label-9644
SELECT ALL CASE + 97 WHEN + 56 THEN 41 WHEN COUNT ( ALL - 20 ) THEN - - 54 END AS col1, + 54 / + 16 AS col2
----
NULL
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9645
SELECT ALL 76 DIV 61
----
1

skipif mysql # not compatible
query I rowsort label-9645
SELECT ALL 76 / 61
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9646
SELECT - 12 * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9646
SELECT - 12 * + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT + NULLIF ( 98, + 93 ) + + 71 AS col2
----
169

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9648
SELECT - 6 - 90 DIV 67, 25 DIV - CAST( - AVG ( ALL + 75 ) AS SIGNED ) * + - 44 AS col2
----
-7
0

skipif mysql # not compatible
query II rowsort label-9648
SELECT - 6 - 90 / 67, 25 / - CAST ( - AVG ( ALL + 75 ) AS INTEGER ) * + - 44 AS col2
----
-7
0

query I rowsort
SELECT - 76 + + 79 * - 65 AS col2
----
-5211

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9650
SELECT - 53 + + COUNT( * ) + - ( + 12 ) + 63 DIV 93 AS col2
----
-64

skipif mysql # not compatible
query I rowsort label-9650
SELECT - 53 + + COUNT ( * ) + - ( + 12 ) + 63 / 93 AS col2
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9651
SELECT DISTINCT + ( - 91 ) * + 20 + COUNT( * ) - - - 33 * + 19 * - CASE + ( - 34 ) WHEN 39 THEN NULL WHEN + 60 THEN - CAST( NULL AS SIGNED ) + - NULLIF ( + COUNT( * ), - 63 / - ( - + 52 ) ) * + - COUNT( * ) * + 37 * - 27 WHEN + 26 THEN - 54 ELSE + CAST( NULL AS SIGNED ) END + - 26
----
NULL

skipif mysql # not compatible
query I rowsort label-9651
SELECT DISTINCT + ( - 91 ) * + 20 + COUNT ( * ) - - - 33 * + 19 * - CASE + ( - 34 ) WHEN 39 THEN NULL WHEN + 60 THEN - CAST ( NULL AS INTEGER ) + - NULLIF ( + COUNT ( * ), - 63 / - ( - + 52 ) ) * + - COUNT ( * ) * + 37 * - 27 WHEN + 26 THEN - 54 ELSE + CAST ( NULL AS INTEGER ) END + - 26
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9652
SELECT ALL 35 DIV 24 + + 67
----
68

skipif mysql # not compatible
query I rowsort label-9652
SELECT ALL 35 / 24 + + 67
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-9653
SELECT - 47 * - COUNT( * ) + + COUNT( 86 ) AS col1
----
48

skipif mysql # not compatible
query I rowsort label-9653
SELECT - 47 * - COUNT ( * ) + + COUNT ( 86 ) AS col1
----
48

query I rowsort
SELECT ALL + CASE - + 0 WHEN - + 14 THEN 47 * - 16 ELSE 36 - - 16 + - 85 END col1
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9655
SELECT CAST( - + 42 AS SIGNED )
----
-42

skipif mysql # not compatible
query I rowsort label-9655
SELECT CAST ( - + 42 AS INTEGER )
----
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9656
SELECT ALL 78 DIV - 1 + 14 * - 95 * - + SUM( DISTINCT + ( - ( + 90 ) ) ) + 50 * - 60 - 93
----
-122871

skipif mysql # not compatible
query I rowsort label-9656
SELECT ALL 78 / - 1 + 14 * - 95 * - + SUM ( DISTINCT + ( - ( + 90 ) ) ) + 50 * - 60 - 93
----
-122871

onlyif mysql # aggregate syntax: 
query II rowsort label-9657
SELECT + COUNT( * ), 38 * + ( - 14 ) AS col1
----
1
-532

skipif mysql # not compatible
query II rowsort label-9657
SELECT + COUNT ( * ), 38 * + ( - 14 ) AS col1
----
1
-532

query II rowsort
SELECT + 97 AS col2, 80 AS col1
----
97
80

onlyif mysql # aggregate syntax: 
query II rowsort label-9659
SELECT ALL + 4 * - COUNT( ALL + 17 ) + 2 AS col2, 9 + + + 41
----
-2
50

skipif mysql # not compatible
query II rowsort label-9659
SELECT ALL + 4 * - COUNT ( ALL + 17 ) + 2 AS col2, 9 + + + 41
----
-2
50

onlyif mysql # aggregate syntax: 
query I rowsort label-9660
SELECT DISTINCT + COUNT( * ) * - 91 / - 57 + + + 15 + - 29 + + SUM( ALL - 49 ) + + CASE ( - 98 ) WHEN - 63 THEN - 68 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9660
SELECT DISTINCT + COUNT ( * ) * - 91 / - 57 + + + 15 + - 29 + + SUM ( ALL - 49 ) + + CASE ( - 98 ) WHEN - 63 THEN - 68 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9661
SELECT ALL ( - - COUNT( * ) ) * + - CAST( NULL AS SIGNED ) + + 99
----
NULL

skipif mysql # not compatible
query I rowsort label-9661
SELECT ALL ( - - COUNT ( * ) ) * + - CAST ( NULL AS INTEGER ) + + 99
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9662
SELECT + CAST( 54 AS SIGNED ) DIV 43 + + 0 * - 96 + + 33 AS col1, COUNT( * ) + + 56 AS col0
----
34
57

skipif mysql # not compatible
query II rowsort label-9662
SELECT + CAST ( 54 AS INTEGER ) / 43 + + 0 * - 96 + + 33 AS col1, COUNT ( * ) + + 56 AS col0
----
34
57

onlyif mysql # aggregate syntax: 
query I rowsort label-9663
SELECT ALL 85 * + COUNT( * ) + + 29
----
114

skipif mysql # not compatible
query I rowsort label-9663
SELECT ALL 85 * + COUNT ( * ) + + 29
----
114

query I rowsort
SELECT + - 85 * 52 AS col1
----
-4420

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9665
SELECT - - 99 DIV + 79 * COUNT( * ), + 15 AS col2
----
1
15

skipif mysql # not compatible
query II rowsort label-9665
SELECT - - 99 / + 79 * COUNT ( * ), + 15 AS col2
----
1
15

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9666
SELECT - COALESCE ( - + 78, - 92 * - - CAST( 87 AS SIGNED ) + + + 81 + + - 52 * + - 91 DIV + + 99 * + + 24 ) + - - 83 AS col1
----
161

skipif mysql # not compatible
query I rowsort label-9666
SELECT - COALESCE ( - + 78, - 92 * - - CAST ( 87 AS INTEGER ) + + + 81 + + - 52 * + - 91 / + + 99 * + + 24 ) + - - 83 AS col1
----
161

query I rowsort
SELECT + + 24 * 53
----
1272

onlyif mysql # aggregate syntax: 
query I rowsort label-9668
SELECT DISTINCT SUM( + + 73 )
----
73

skipif mysql # not compatible
query I rowsort label-9668
SELECT DISTINCT SUM ( + + 73 )
----
73

query I rowsort
SELECT ALL 94 - - + 6
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-9670
SELECT DISTINCT + 11 - + + SUM( DISTINCT - 53 )
----
64

skipif mysql # not compatible
query I rowsort label-9670
SELECT DISTINCT + 11 - + + SUM ( DISTINCT - 53 )
----
64

query I rowsort
SELECT ALL - 47 * - + 44 AS col0
----
2068

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9672
SELECT + 86 + + 55 * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9672
SELECT + 86 + + 55 * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9673
SELECT DISTINCT - 36 * + 97 + - 83 AS col0, + MAX( DISTINCT + 61 ) * + COALESCE ( 24, + - NULLIF ( 62, - + COUNT( * ) ), - 31 * + 90 ) + - 30 AS col1
----
-3575
1434

skipif mysql # not compatible
query II rowsort label-9673
SELECT DISTINCT - 36 * + 97 + - 83 AS col0, + MAX ( DISTINCT + 61 ) * + COALESCE ( 24, + - NULLIF ( 62, - + COUNT ( * ) ), - 31 * + 90 ) + - 30 AS col1
----
-3575
1434

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9674
SELECT CAST( NULL AS SIGNED ) + 42 - 44 + + 82 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9674
SELECT CAST ( NULL AS INTEGER ) + 42 - 44 + + 82 AS col2
----
NULL

query I rowsort
SELECT 14 * 10
----
140

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9676
SELECT CAST( NULL AS DECIMAL ) * - 53
----
NULL

skipif mysql # not compatible
query I rowsort label-9676
SELECT CAST ( NULL AS REAL ) * - 53
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9677
SELECT 42 + - 28 DIV - 3
----
51

skipif mysql # not compatible
query I rowsort label-9677
SELECT 42 + - 28 / - 3
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9678
SELECT CAST( NULL AS SIGNED ) * 44 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9678
SELECT CAST ( NULL AS INTEGER ) * 44 AS col2
----
NULL

query II rowsort
SELECT DISTINCT 94 + 94, - 34 AS col0
----
188
-34

query I rowsort
SELECT 41 * 54 * + 82
----
181548

onlyif mysql # DIV for integer division: 
query I rowsort label-9681
SELECT ALL 29 + + - 32 DIV - 4 AS col0
----
37

skipif mysql # not compatible
query I rowsort label-9681
SELECT ALL 29 + + - 32 / - 4 AS col0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-9682
SELECT 31 - SUM( ALL + 51 ) AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-9682
SELECT 31 - SUM ( ALL + 51 ) AS col1
----
-20

query I rowsort
SELECT 67 * + 5 * - 82
----
-27470

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9684
SELECT CAST( NULL AS SIGNED ) * 0 AS col0, CAST( + 34 AS SIGNED ) + - - 48 AS col2
----
NULL
82

skipif mysql # not compatible
query II rowsort label-9684
SELECT CAST ( NULL AS INTEGER ) * 0 AS col0, CAST ( + 34 AS INTEGER ) + - - 48 AS col2
----
NULL
82

query I rowsort
SELECT ALL + 96 * 35
----
3360

query I rowsort
SELECT DISTINCT ( - - 71 ) * - + 98 AS col2
----
-6958

query I rowsort
SELECT DISTINCT - ( 9 )
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9688
SELECT + + 39 DIV MAX( DISTINCT + 22 ) + + 6 DIV + - 52
----
1

skipif mysql # not compatible
query I rowsort label-9688
SELECT + + 39 / MAX ( DISTINCT + 22 ) + + 6 / + - 52
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9689
SELECT + + 68 * + 7 + 13 * - COUNT( * ) AS col0, + COUNT( * ) AS col0
----
463
1

skipif mysql # not compatible
query II rowsort label-9689
SELECT + + 68 * + 7 + 13 * - COUNT ( * ) AS col0, + COUNT ( * ) AS col0
----
463
1

query I rowsort
SELECT - 68 * - 37 AS col2
----
2516

query I rowsort
SELECT ALL - ( + + 63 )
----
-63

query I rowsort
SELECT - 12 + + 6
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-9693
SELECT 80 + + + 58 + + + 39 - + - MAX( 60 )
----
237

skipif mysql # not compatible
query I rowsort label-9693
SELECT 80 + + + 58 + + + 39 - + - MAX ( 60 )
----
237

query II rowsort
SELECT - 95 - + 74 col1, + ( - NULLIF ( - 17, - 86 ) )
----
-169
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9695
SELECT + 34 * + COUNT( * ) + + 27 DIV - 71 AS col2
----
34

skipif mysql # not compatible
query I rowsort label-9695
SELECT + 34 * + COUNT ( * ) + + 27 / - 71 AS col2
----
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9696
SELECT ALL - + 40 DIV NULLIF ( - MIN( DISTINCT + 75 ), 52 )
----
0

skipif mysql # not compatible
query I rowsort label-9696
SELECT ALL - + 40 / NULLIF ( - MIN ( DISTINCT + 75 ), 52 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9697
SELECT DISTINCT 83 * - NULLIF ( + ( + 93 ), - 4 + - COUNT( ALL - 99 ) ) AS col2
----
-7719

skipif mysql # not compatible
query I rowsort label-9697
SELECT DISTINCT 83 * - NULLIF ( + ( + 93 ), - 4 + - COUNT ( ALL - 99 ) ) AS col2
----
-7719

query I rowsort
SELECT DISTINCT - 98 * + - ( + 52 )
----
5096

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9699
SELECT - CASE CAST( - 2 AS SIGNED ) WHEN - - 95 * + 27 + ( - COUNT( * ) ) THEN + + ( + COUNT( * ) ) WHEN 68 * 94 + 44 THEN + 44 ELSE NULL END * MIN( ALL + 46 ) * - CAST( NULL AS SIGNED ) + 73 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9699
SELECT - CASE CAST ( - 2 AS INTEGER ) WHEN - - 95 * + 27 + ( - COUNT ( * ) ) THEN + + ( + COUNT ( * ) ) WHEN 68 * 94 + 44 THEN + 44 ELSE NULL END * MIN ( ALL + 46 ) * - CAST ( NULL AS INTEGER ) + 73 AS col0
----
NULL

query I rowsort
SELECT ALL - - 65 * - 94 col2
----
-6110

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9701
SELECT - SUM( + + 83 ) * 88 DIV + 31 + - + 56 * + 0
----
-235

skipif mysql # not compatible
query I rowsort label-9701
SELECT - SUM ( + + 83 ) * 88 / + 31 + - + 56 * + 0
----
-235

onlyif mysql # aggregate syntax: 
query I rowsort label-9702
SELECT 49 + + - 43 + - + MAX( + 90 )
----
-84

skipif mysql # not compatible
query I rowsort label-9702
SELECT 49 + + - 43 + - + MAX ( + 90 )
----
-84

query I rowsort
SELECT ALL ( 53 ) AS col1
----
53

onlyif mysql # DIV for integer division: 
query I rowsort label-9704
SELECT - ( 30 ) DIV + 72
----
0

skipif mysql # not compatible
query I rowsort label-9704
SELECT - ( 30 ) / + 72
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9705
SELECT 26 DIV - 91 + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-9705
SELECT 26 / - 91 + - COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-9706
SELECT - 37 + - COUNT( * ), - 38
----
-38
-38

skipif mysql # not compatible
query II rowsort label-9706
SELECT - 37 + - COUNT ( * ), - 38
----
-38
-38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9707
SELECT DISTINCT - 99 DIV + 15 + + 33 * + COUNT( DISTINCT - 59 ) + 59 * + 48 AS col2
----
2859

skipif mysql # not compatible
query I rowsort label-9707
SELECT DISTINCT - 99 / + 15 + + 33 * + COUNT ( DISTINCT - 59 ) + 59 * + 48 AS col2
----
2859

onlyif mysql # aggregate syntax: 
query I rowsort label-9708
SELECT COUNT( * ) + + 14
----
15

skipif mysql # not compatible
query I rowsort label-9708
SELECT COUNT ( * ) + + 14
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9709
SELECT DISTINCT CAST( NULL AS SIGNED ) + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9709
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9710
SELECT DISTINCT MIN( - + COALESCE ( + 77, 0 ) ) AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-9710
SELECT DISTINCT MIN ( - + COALESCE ( + 77, 0 ) ) AS col1
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9711
SELECT ALL SUM( - 8 )
----
-8

skipif mysql # not compatible
query I rowsort label-9711
SELECT ALL SUM ( - 8 )
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-9712
SELECT DISTINCT 76 + - ( - 33 ) * - MIN( DISTINCT + 45 )
----
-1409

skipif mysql # not compatible
query I rowsort label-9712
SELECT DISTINCT 76 + - ( - 33 ) * - MIN ( DISTINCT + 45 )
----
-1409

onlyif mysql # DIV for integer division: 
query I rowsort label-9713
SELECT ALL 88 * + 0 * + 25 DIV + 17 * + 93 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9713
SELECT ALL 88 * + 0 * + 25 / + 17 * + 93 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9714
SELECT DISTINCT COALESCE ( + 74, + NULLIF ( COALESCE ( + 94, + + 31 + + 62 * NULLIF ( CAST( NULL AS SIGNED ), 54 - 59 ) + - 1 + + 79 - + 91 * - + 50 * + - COALESCE ( CAST( + - 21 AS SIGNED ), - 78 ) ), - 88 / + 92 + + 51 + - NULLIF ( - + COUNT( * ), + - 8 + 28 ) ) + 69 ) + 33
----
107

skipif mysql # not compatible
query I rowsort label-9714
SELECT DISTINCT COALESCE ( + 74, + NULLIF ( COALESCE ( + 94, + + 31 + + 62 * NULLIF ( CAST ( NULL AS INTEGER ), 54 - 59 ) + - 1 + + 79 - + 91 * - + 50 * + - COALESCE ( CAST ( + - 21 AS INTEGER ), - 78 ) ), - 88 / + 92 + + 51 + - NULLIF ( - + COUNT ( * ), + - 8 + 28 ) ) + 69 ) + 33
----
107

query I rowsort
SELECT ALL 5 + 50
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-9716
SELECT ALL ( - 92 ) + + COUNT( ALL - - 63 ) AS col0
----
-91

skipif mysql # not compatible
query I rowsort label-9716
SELECT ALL ( - 92 ) + + COUNT ( ALL - - 63 ) AS col0
----
-91

query I rowsort
SELECT 41 + 79 AS col2
----
120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9718
SELECT 76 - - 44 + + - CASE + 22 WHEN 85 * - - 50 THEN - + ( + + 66 ) WHEN - NULLIF ( + 16, + COUNT( - 82 ) ) / - COALESCE ( - AVG ( ALL - 67 ), 32 ) + - - ( - CAST( - 78 AS SIGNED ) ) + - 64 THEN NULL ELSE NULL END AS col1, - 24 * - 10 * + CAST( NULL AS SIGNED ) / - 4 * + 73 * - COUNT( * ) AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9718
SELECT 76 - - 44 + + - CASE + 22 WHEN 85 * - - 50 THEN - + ( + + 66 ) WHEN - NULLIF ( + 16, + COUNT ( - 82 ) ) / - COALESCE ( - AVG ( ALL - 67 ), 32 ) + - - ( - CAST ( - 78 AS INTEGER ) ) + - 64 THEN NULL ELSE NULL END AS col1, - 24 * - 10 * + CAST ( NULL AS INTEGER ) / - 4 * + 73 * - COUNT ( * ) AS col2
----
NULL
NULL

query I rowsort
SELECT ALL 75 + 65 + + 22 * + 97 - 89
----
2185

query I rowsort
SELECT DISTINCT 87 * + - 71
----
-6177

onlyif mysql # aggregate syntax: 
query I rowsort label-9721
SELECT DISTINCT 4 + + 47 + - 2 - + 12 * MIN( + 30 ) AS col1
----
-311

skipif mysql # not compatible
query I rowsort label-9721
SELECT DISTINCT 4 + + 47 + - 2 - + 12 * MIN ( + 30 ) AS col1
----
-311

query II rowsort
SELECT ALL 82 * 82 + 32, 72 AS col1
----
6756
72

query I rowsort
SELECT 1 * + 12 + - + 2 AS col2
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9724
SELECT + 1 DIV 97 + - + COUNT( 61 ) * - 50
----
50

skipif mysql # not compatible
query I rowsort label-9724
SELECT + 1 / 97 + - + COUNT ( 61 ) * - 50
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-9725
SELECT DISTINCT - 54 DIV 77
----
0

skipif mysql # not compatible
query I rowsort label-9725
SELECT DISTINCT - 54 / 77
----
0

query II rowsort
SELECT DISTINCT - + COALESCE ( - 69, + 48 + 12, - 37 ) col2, - 96
----
69
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-9727
SELECT 56 DIV - 38 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9727
SELECT 56 / - 38 AS col1
----
-1

query II rowsort
SELECT ALL - - 26 AS col0, - 1 * 69 col1
----
26
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9729
SELECT DISTINCT - 28 * + - MIN( DISTINCT + - 3 ) * COUNT( * ) - 80 + + + 89 AS col0, 86 DIV - 90 * + 7 + + 46
----
-75
46

skipif mysql # not compatible
query II rowsort label-9729
SELECT DISTINCT - 28 * + - MIN ( DISTINCT + - 3 ) * COUNT ( * ) - 80 + + + 89 AS col0, 86 / - 90 * + 7 + + 46
----
-75
46

query I rowsort
SELECT + - NULLIF ( + 46, + - 20 + + 64 ) AS col0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-9731
SELECT DISTINCT - 13 * - - 63 * - COUNT( * )
----
819

skipif mysql # not compatible
query I rowsort label-9731
SELECT DISTINCT - 13 * - - 63 * - COUNT ( * )
----
819

onlyif mysql # aggregate syntax: 
query I rowsort label-9732
SELECT ALL - COUNT( * ) * + 90 * - - 62 + COUNT( * ) + 93 * COUNT( * )
----
-5486

skipif mysql # not compatible
query I rowsort label-9732
SELECT ALL - COUNT ( * ) * + 90 * - - 62 + COUNT ( * ) + 93 * COUNT ( * )
----
-5486

query I rowsort
SELECT DISTINCT 11 * + - 70
----
-770

query I rowsort
SELECT - 55 + 21
----
-34

query I rowsort
SELECT + + ( + 44 ) AS col1
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9736
SELECT + 99 * + MIN( DISTINCT - + 35 ) * - 41 * - ( - COALESCE ( - 16, - 34, + + 92 * - COALESCE ( + CAST( NULL AS SIGNED ), + - 71 * - 37 + 99 ) + - 76 DIV CASE 80 WHEN - - ( 77 ) THEN - 11 + + 45 END * - - 4 * - - 97 ) )
----
-2273040

skipif mysql # not compatible
query I rowsort label-9736
SELECT + 99 * + MIN ( DISTINCT - + 35 ) * - 41 * - ( - COALESCE ( - 16, - 34, + + 92 * - COALESCE ( + CAST ( NULL AS INTEGER ), + - 71 * - 37 + 99 ) + - 76 / CASE 80 WHEN - - ( 77 ) THEN - 11 + + 45 END * - - 4 * - - 97 ) )
----
-2273040

query I rowsort
SELECT - 68 * 84 AS col0
----
-5712

query I rowsort
SELECT - + 39 + 98 - - - 22
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-9739
SELECT + 54 * + CASE 77 WHEN - 86 THEN + + 12 / + ( + - MAX( 18 ) ) * + 92 - + 21 WHEN 97 + - COUNT( * ) THEN NULL END - - + 96 - - - 74
----
NULL

skipif mysql # not compatible
query I rowsort label-9739
SELECT + 54 * + CASE 77 WHEN - 86 THEN + + 12 / + ( + - MAX ( 18 ) ) * + 92 - + 21 WHEN 97 + - COUNT ( * ) THEN NULL END - - + 96 - - - 74
----
NULL

query I rowsort
SELECT - - 59 + + 99 AS col0
----
158

onlyif mysql # aggregate syntax: 
query I rowsort label-9741
SELECT DISTINCT MIN( DISTINCT 29 )
----
29

skipif mysql # not compatible
query I rowsort label-9741
SELECT DISTINCT MIN ( DISTINCT 29 )
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-9742
SELECT - 47 + + 45 - + + COUNT( * ) * 90 AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-9742
SELECT - 47 + + 45 - + + COUNT ( * ) * 90 AS col2
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9743
SELECT DISTINCT - MAX( DISTINCT + - CAST( - 26 AS SIGNED ) ) + - - 39 - + - 61 - 48 col1
----
26

skipif mysql # not compatible
query I rowsort label-9743
SELECT DISTINCT - MAX ( DISTINCT + - CAST ( - 26 AS INTEGER ) ) + - - 39 - + - 61 - 48 col1
----
26

query I rowsort
SELECT - 82 * + 12
----
-984

onlyif mysql # DIV for integer division: 
query I rowsort label-9745
SELECT DISTINCT COALESCE ( - 3, + 75, + ( + 68 ) + + + 53 * - 77, 15 DIV 81 * 86 )
----
-3

skipif mysql # not compatible
query I rowsort label-9745
SELECT DISTINCT COALESCE ( - 3, + 75, + ( + 68 ) + + + 53 * - 77, 15 / 81 * 86 )
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9746
SELECT ALL + 68 + 89 * + ( + 25 ) * - 32 - COUNT( * ) DIV - COUNT( * ) - - - COUNT( * ) + - - MIN( + 27 ) - + + 15 DIV + 82 col2
----
-71105

skipif mysql # not compatible
query I rowsort label-9746
SELECT ALL + 68 + 89 * + ( + 25 ) * - 32 - COUNT ( * ) / - COUNT ( * ) - - - COUNT ( * ) + - - MIN ( + 27 ) - + + 15 / + 82 col2
----
-71105

onlyif mysql # aggregate syntax: 
query I rowsort label-9747
SELECT - 11 * MIN( ALL + - 68 ) AS col2
----
748

skipif mysql # not compatible
query I rowsort label-9747
SELECT - 11 * MIN ( ALL + - 68 ) AS col2
----
748

query I rowsort
SELECT - 88 * + ( + 0 ) AS col0
----
0

query I rowsort
SELECT + 93 + 86 AS col2
----
179

query I rowsort
SELECT DISTINCT ( + + 94 )
----
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9751
SELECT DISTINCT 87 - COALESCE ( 1, COUNT( ALL - 50 ) * - 86 DIV - + COALESCE ( 87, - - 7 ) * + + 75 ) * + + 92 * + + 77 AS col1
----
-6997

skipif mysql # not compatible
query I rowsort label-9751
SELECT DISTINCT 87 - COALESCE ( 1, COUNT ( ALL - 50 ) * - 86 / - + COALESCE ( 87, - - 7 ) * + + 75 ) * + + 92 * + + 77 AS col1
----
-6997

query I rowsort
SELECT - 21 * - 71 * - + 68 AS col0
----
-101388

query I rowsort
SELECT - + ( + 7 ) - 73 AS col0
----
-80

query I rowsort
SELECT + + 81 * + - 32 * + - 30 AS col2
----
77760

onlyif mysql # aggregate syntax: 
query I rowsort label-9755
SELECT ALL + SUM( 62 )
----
62

skipif mysql # not compatible
query I rowsort label-9755
SELECT ALL + SUM ( 62 )
----
62

onlyif mysql # aggregate syntax: 
query II rowsort label-9756
SELECT DISTINCT + NULLIF ( + - COUNT( * ), + 12 / + - 40 ), - MAX( ( - - 81 ) ) AS col1
----
-1
-81

skipif mysql # not compatible
query II rowsort label-9756
SELECT DISTINCT + NULLIF ( + - COUNT ( * ), + 12 / + - 40 ), - MAX ( ( - - 81 ) ) AS col1
----
-1
-81

query II rowsort
SELECT ALL + 38 AS col0, - 5 col2
----
38
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9758
SELECT + COUNT( * ) - - ( + 2 ) * - 69
----
-137

skipif mysql # not compatible
query I rowsort label-9758
SELECT + COUNT ( * ) - - ( + 2 ) * - 69
----
-137

query I rowsort
SELECT ALL + - ( + + 65 ) AS col0
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-9760
SELECT ALL + COALESCE ( + 57, 45 + - COUNT( * ) )
----
57

skipif mysql # not compatible
query I rowsort label-9760
SELECT ALL + COALESCE ( + 57, 45 + - COUNT ( * ) )
----
57

query I rowsort
SELECT + 44 - - - 78 AS col1
----
-34

onlyif mysql # aggregate syntax: 
query II rowsort label-9762
SELECT + COUNT( * ) col2, - 21
----
1
-21

skipif mysql # not compatible
query II rowsort label-9762
SELECT + COUNT ( * ) col2, - 21
----
1
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-9763
SELECT DISTINCT - COUNT( * ) * - 5 + - 99 * ( - COUNT( * ) ) + - - COUNT( * ) + + 95 + 85 AS col0
----
285

skipif mysql # not compatible
query I rowsort label-9763
SELECT DISTINCT - COUNT ( * ) * - 5 + - 99 * ( - COUNT ( * ) ) + - - COUNT ( * ) + + 95 + 85 AS col0
----
285

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9764
SELECT ALL + MAX( ALL CAST( + - 30 AS SIGNED ) ) AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-9764
SELECT ALL + MAX ( ALL CAST ( + - 30 AS INTEGER ) ) AS col0
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9765
SELECT - CAST( NULL AS SIGNED ) * + + CAST( - 54 AS SIGNED ) * + CASE + - 0 WHEN + 28 THEN NULL WHEN + NULLIF ( + + 95, + 29 * + 85 ) + - 48 THEN NULL WHEN - CAST( + - COUNT( * ) AS SIGNED ) THEN - ( + COUNT( * ) ) ELSE NULL END + + - 12 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9765
SELECT - CAST ( NULL AS INTEGER ) * + + CAST ( - 54 AS INTEGER ) * + CASE + - 0 WHEN + 28 THEN NULL WHEN + NULLIF ( + + 95, + 29 * + 85 ) + - 48 THEN NULL WHEN - CAST ( + - COUNT ( * ) AS INTEGER ) THEN - ( + COUNT ( * ) ) ELSE NULL END + + - 12 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9766
SELECT + - 10 + + - COUNT( * ) - 63 + COALESCE ( + 33, - COUNT( * ), CAST( NULL AS SIGNED ) )
----
-41

skipif mysql # not compatible
query I rowsort label-9766
SELECT + - 10 + + - COUNT ( * ) - 63 + COALESCE ( + 33, - COUNT ( * ), CAST ( NULL AS INTEGER ) )
----
-41

query I rowsort
SELECT ALL + 99 * - + 3 * + 97
----
-28809

query I rowsort
SELECT + + 35 + + 11 AS col1
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9769
SELECT ALL + 58 * - + 13 + + 52 + + ( - COUNT( * ) )
----
-703

skipif mysql # not compatible
query I rowsort label-9769
SELECT ALL + 58 * - + 13 + + 52 + + ( - COUNT ( * ) )
----
-703

query I rowsort
SELECT ALL - + 62 * - 77 + 40 * 30 AS col1
----
5974

query I rowsort
SELECT ALL 7 * + 52 + 47 col2
----
411

onlyif mysql # aggregate syntax: 
query I rowsort label-9772
SELECT ALL COUNT( * ) * - MIN( ALL - + 80 )
----
80

skipif mysql # not compatible
query I rowsort label-9772
SELECT ALL COUNT ( * ) * - MIN ( ALL - + 80 )
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9773
SELECT DISTINCT - 74 * 55 + - CAST( - 16 AS SIGNED )
----
-4054

skipif mysql # not compatible
query I rowsort label-9773
SELECT DISTINCT - 74 * 55 + - CAST ( - 16 AS INTEGER )
----
-4054

query I rowsort
SELECT ALL - 25 * + - 47 + - 50 AS col2
----
1125

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9775
SELECT - CAST( 59 AS SIGNED ) AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-9775
SELECT - CAST ( 59 AS INTEGER ) AS col0
----
-59

query I rowsort
SELECT DISTINCT + 55 * - + 54 * + 82 AS col2
----
-243540

onlyif mysql # aggregate syntax: 
query I rowsort label-9777
SELECT ALL COALESCE ( - - 86, + 21 * - NULLIF ( - + COUNT( * ), 26 ) ) - ( - COUNT( * ) ) AS col1
----
87

skipif mysql # not compatible
query I rowsort label-9777
SELECT ALL COALESCE ( - - 86, + 21 * - NULLIF ( - + COUNT ( * ), 26 ) ) - ( - COUNT ( * ) ) AS col1
----
87

query I rowsort
SELECT ALL + 37 - + NULLIF ( + 40, - 95 * - 76 + + 35 * 26 - + 56 )
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9779
SELECT DISTINCT + ( 49 ) DIV COUNT( * ) DIV + - 55 * 38 + + + 65 DIV - 88 - - - 28
----
-28

skipif mysql # not compatible
query I rowsort label-9779
SELECT DISTINCT + ( 49 ) / COUNT ( * ) / + - 55 * 38 + + + 65 / - 88 - - - 28
----
-28

query I rowsort
SELECT ALL + 47 * - 95 * + 98 AS col1
----
-437570

query I rowsort
SELECT - 98 + + 53 * + 22 col2
----
1068

onlyif mysql # aggregate syntax: 
query I rowsort label-9782
SELECT - COUNT( * ) * - 56 AS col2
----
56

skipif mysql # not compatible
query I rowsort label-9782
SELECT - COUNT ( * ) * - 56 AS col2
----
56

query I rowsort
SELECT + 80 - + 79
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9784
SELECT ALL + - 25 DIV - - COUNT( * ) AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-9784
SELECT ALL + - 25 / - - COUNT ( * ) AS col1
----
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-9785
SELECT ALL MIN( - 15 ) AS col1, + 25 AS col0
----
-15
25

skipif mysql # not compatible
query II rowsort label-9785
SELECT ALL MIN ( - 15 ) AS col1, + 25 AS col0
----
-15
25

query I rowsort
SELECT 16 * - - 32 AS col1
----
512

onlyif mysql # aggregate syntax: 
query I rowsort label-9787
SELECT DISTINCT + ( + ( - - MIN( + 24 ) ) )
----
24

skipif mysql # not compatible
query I rowsort label-9787
SELECT DISTINCT + ( + ( - - MIN ( + 24 ) ) )
----
24

query I rowsort
SELECT - 54 * + 15 + - ( - 3 ) AS col1
----
-807

onlyif mysql # aggregate syntax: 
query I rowsort label-9789
SELECT ALL 58 + - COUNT( * ) AS col2
----
57

skipif mysql # not compatible
query I rowsort label-9789
SELECT ALL 58 + - COUNT ( * ) AS col2
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9790
SELECT + 67 DIV - + 73 * - - SUM( 23 ) * + + 24 + + - 99 * - 52 - - 15 * - 45 AS col0
----
4473

skipif mysql # not compatible
query I rowsort label-9790
SELECT + 67 / - + 73 * - - SUM ( 23 ) * + + 24 + + - 99 * - 52 - - 15 * - 45 AS col0
----
4473

onlyif mysql # aggregate syntax: 
query I rowsort label-9791
SELECT ALL NULLIF ( 4, - 59 + COUNT( * ) ) * 54
----
216

skipif mysql # not compatible
query I rowsort label-9791
SELECT ALL NULLIF ( 4, - 59 + COUNT ( * ) ) * 54
----
216

query I rowsort
SELECT - 64 + 46
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-9793
SELECT DISTINCT - NULLIF ( 49, + + 52 ) + MAX( ALL + 91 ) * - + 15
----
-1414

skipif mysql # not compatible
query I rowsort label-9793
SELECT DISTINCT - NULLIF ( 49, + + 52 ) + MAX ( ALL + 91 ) * - + 15
----
-1414

query I rowsort
SELECT DISTINCT 4 + + - ( - 44 )
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-9795
SELECT COUNT( * ) * - COUNT( * ) - + COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-9795
SELECT COUNT ( * ) * - COUNT ( * ) - + COUNT ( * )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9796
SELECT DISTINCT ( 90 ) + + - CASE COUNT( * ) WHEN - 4 THEN NULL WHEN + 97 THEN 27 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9796
SELECT DISTINCT ( 90 ) + + - CASE COUNT ( * ) WHEN - 4 THEN NULL WHEN + 97 THEN 27 ELSE NULL END AS col1
----
NULL

query II rowsort
SELECT + 40 AS col2, 13 - + 74 AS col2
----
40
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9798
SELECT ALL CAST( SUM( + + 30 ) AS SIGNED ) + - - ( 89 ) AS col0
----
119

skipif mysql # not compatible
query I rowsort label-9798
SELECT ALL CAST ( SUM ( + + 30 ) AS INTEGER ) + - - ( 89 ) AS col0
----
119

query I rowsort
SELECT 51 * + 32 - + 50 AS col2
----
1582

query I rowsort
SELECT ALL 59 * - NULLIF ( - 34, 93 * ( - + 90 ) * - 41 ) * + 53
----
106318

query I rowsort
SELECT DISTINCT 17 * - ( + 89 )
----
-1513

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9802
SELECT 51 * ( ( COALESCE ( + 72, + 28 * + + 65 + 88 * - 50 + + + 56 DIV COUNT( * ) * + 71 ) ) ) AS col2
----
3672

skipif mysql # not compatible
query I rowsort label-9802
SELECT 51 * ( ( COALESCE ( + 72, + 28 * + + 65 + 88 * - 50 + + + 56 / COUNT ( * ) * + 71 ) ) ) AS col2
----
3672

onlyif mysql # aggregate syntax: 
query I rowsort label-9803
SELECT ALL + 51 - COUNT( * ) AS col1
----
50

skipif mysql # not compatible
query I rowsort label-9803
SELECT ALL + 51 - COUNT ( * ) AS col1
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-9804
SELECT CASE 86 WHEN + + 35 THEN NULL WHEN + COUNT( * ) THEN - - 43 ELSE + 36 - + + 25 - - 84 END * - + 79
----
-7505

skipif mysql # not compatible
query I rowsort label-9804
SELECT CASE 86 WHEN + + 35 THEN NULL WHEN + COUNT ( * ) THEN - - 43 ELSE + 36 - + + 25 - - 84 END * - + 79
----
-7505

query I rowsort
SELECT ( + 6 ) + - + 90 AS col2
----
-84

query I rowsort
SELECT DISTINCT 58 * - 94
----
-5452

query II rowsort
SELECT ALL 70, + 13 + - 53 * 89 AS col0
----
70
-4704

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9808
SELECT 83, 80 + + 82 DIV + COALESCE ( ( 63 ), + 31 - - - COUNT( ALL - 34 ), + ( + 0 ) * + CASE + 0 WHEN - 95 THEN + 52 + - + ( - 91 ) * - 26 WHEN - 63 THEN NULL WHEN + + 23 THEN - COUNT( * ) ELSE NULL END + 10 + + CASE ( - 98 ) WHEN + 78 * + MIN( + 45 ) * - 10 THEN - 14 WHEN 15 THEN NULL END + COUNT( * ) ) + 12 AS col0
----
83
93

skipif mysql # not compatible
query II rowsort label-9808
SELECT 83, 80 + + 82 / + COALESCE ( ( 63 ), + 31 - - - COUNT ( ALL - 34 ), + ( + 0 ) * + CASE + 0 WHEN - 95 THEN + 52 + - + ( - 91 ) * - 26 WHEN - 63 THEN NULL WHEN + + 23 THEN - COUNT ( * ) ELSE NULL END + 10 + + CASE ( - 98 ) WHEN + 78 * + MIN ( + 45 ) * - 10 THEN - 14 WHEN 15 THEN NULL END + COUNT ( * ) ) + 12 AS col0
----
83
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9809
SELECT 88, COUNT( DISTINCT + + ( + - CAST( 62 AS SIGNED ) ) ) AS col1
----
88
1

skipif mysql # not compatible
query II rowsort label-9809
SELECT 88, COUNT ( DISTINCT + + ( + - CAST ( 62 AS INTEGER ) ) ) AS col1
----
88
1

query I rowsort
SELECT 1 + + 29 AS col1
----
30

query I rowsort
SELECT 5 * 51 AS col1
----
255

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9812
SELECT ALL + COUNT( * ) * + 48 * - COUNT( * ) * + + CAST( + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9812
SELECT ALL + COUNT ( * ) * + 48 * - COUNT ( * ) * + + CAST ( + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS INTEGER )
----
NULL

query II rowsort
SELECT - 0, - 50 + + 5 + 62 AS col1
----
0
17

onlyif mysql # aggregate syntax: 
query I rowsort label-9814
SELECT ALL - COUNT( * ) + - + NULLIF ( - CASE - 43 WHEN + + 56 THEN 66 * - COUNT( * ) ELSE NULL END, ( - ( + - 13 ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9814
SELECT ALL - COUNT ( * ) + - + NULLIF ( - CASE - 43 WHEN + + 56 THEN 66 * - COUNT ( * ) ELSE NULL END, ( - ( + - 13 ) ) )
----
NULL

query I rowsort
SELECT ALL + NULLIF ( - - 17, COALESCE ( 10, 49 ) + - 84 ) + 54
----
71

query I rowsort
SELECT DISTINCT - + ( 89 ) * - ( - 48 ) * 55
----
-234960

query I rowsort
SELECT 57 - 29
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9818
SELECT ALL + 74 + CAST( + + 81 AS SIGNED )
----
155

skipif mysql # not compatible
query I rowsort label-9818
SELECT ALL + 74 + CAST ( + + 81 AS INTEGER )
----
155

query I rowsort
SELECT - 78 - 8 AS col0
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-9820
SELECT CASE ( + - SUM( + - 14 ) ) WHEN - - 33 THEN + COUNT( * ) WHEN + 95 + + ( - - 27 ) THEN NULL ELSE NULL END * - 18 + + 27
----
NULL

skipif mysql # not compatible
query I rowsort label-9820
SELECT CASE ( + - SUM ( + - 14 ) ) WHEN - - 33 THEN + COUNT ( * ) WHEN + 95 + + ( - - 27 ) THEN NULL ELSE NULL END * - 18 + + 27
----
NULL

query I rowsort
SELECT ALL - 83 + - 94
----
-177

query I rowsort
SELECT ALL + + 43 + + 30
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-9823
SELECT + MAX( + 23 ) AS col0
----
23

skipif mysql # not compatible
query I rowsort label-9823
SELECT + MAX ( + 23 ) AS col0
----
23

query II rowsort
SELECT ALL - + 54 AS col2, 45 * - 12 + + + 24
----
-54
-516

query I rowsort
SELECT DISTINCT + 80 + - 85 AS col2
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9826
SELECT ALL - ( + + COUNT( * ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9826
SELECT ALL - ( + + COUNT ( * ) ) AS col0
----
-1

query I rowsort
SELECT ALL + 47 + - 27
----
20

query II rowsort
SELECT + - 5 AS col2, 34
----
-5
34

onlyif mysql # aggregate syntax: 
query I rowsort label-9829
SELECT ALL - COUNT( - 14 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9829
SELECT ALL - COUNT ( - 14 ) AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9830
SELECT COUNT( * ) + + CAST( NULL AS SIGNED ), - 79 AS col2
----
NULL
-79

skipif mysql # not compatible
query II rowsort label-9830
SELECT COUNT ( * ) + + CAST ( NULL AS INTEGER ), - 79 AS col2
----
NULL
-79

onlyif mysql # aggregate syntax: 
query II rowsort label-9831
SELECT ( + 16 ) * - 49 + - COUNT( * ), - 86 + ( + - 89 ) AS col0
----
-785
-175

skipif mysql # not compatible
query II rowsort label-9831
SELECT ( + 16 ) * - 49 + - COUNT ( * ), - 86 + ( + - 89 ) AS col0
----
-785
-175

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9832
SELECT 55 * + CAST( NULL AS SIGNED ) + 72 / - 1 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9832
SELECT 55 * + CAST ( NULL AS INTEGER ) + 72 / - 1 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9833
SELECT DISTINCT + CAST( 26 AS SIGNED ) * + - 93 AS col1
----
-2418

skipif mysql # not compatible
query I rowsort label-9833
SELECT DISTINCT + CAST ( 26 AS INTEGER ) * + - 93 AS col1
----
-2418

query I rowsort
SELECT ALL 11 - 26 + - 98
----
-113

onlyif mysql # aggregate syntax: 
query I rowsort label-9835
SELECT + SUM( + 54 ) AS col0
----
54

skipif mysql # not compatible
query I rowsort label-9835
SELECT + SUM ( + 54 ) AS col0
----
54

query I rowsort
SELECT ALL 75 - + ( + 80 ) AS col0
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-9837
SELECT 50 DIV + + 43
----
1

skipif mysql # not compatible
query I rowsort label-9837
SELECT 50 / + + 43
----
1

query I rowsort
SELECT 86 * - 44 * ( 73 )
----
-276232

onlyif mysql # DIV for integer division: 
query I rowsort label-9839
SELECT 56 + - 41 DIV + - 35
----
57

skipif mysql # not compatible
query I rowsort label-9839
SELECT 56 + - 41 / + - 35
----
57

query I rowsort
SELECT DISTINCT 10 * 75 AS col1
----
750

onlyif mysql # aggregate syntax: 
query II rowsort label-9841
SELECT - NULLIF ( 68, 81 / + 15 ), COUNT( * ) * 1 AS col1
----
-68
1

skipif mysql # not compatible
query II rowsort label-9841
SELECT - NULLIF ( 68, 81 / + 15 ), COUNT ( * ) * 1 AS col1
----
-68
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9842
SELECT + 51 + + COUNT( * ) AS col1, - 11
----
52
-11

skipif mysql # not compatible
query II rowsort label-9842
SELECT + 51 + + COUNT ( * ) AS col1, - 11
----
52
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-9843
SELECT DISTINCT 74 * - COUNT( * ) AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-9843
SELECT DISTINCT 74 * - COUNT ( * ) AS col2
----
-74

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9844
SELECT + CAST( NULL AS DECIMAL ) - - + 76
----
NULL

skipif mysql # not compatible
query I rowsort label-9844
SELECT + CAST ( NULL AS REAL ) - - + 76
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9845
SELECT ALL - 39 + - 90 * + CASE AVG ( - - 45 ) WHEN - 40 + - COUNT( * ) - - - 49 + 95 / + 87 THEN NULL WHEN COUNT( * ) THEN 4 - - 1 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9845
SELECT ALL - 39 + - 90 * + CASE AVG ( - - 45 ) WHEN - 40 + - COUNT ( * ) - - - 49 + 95 / + 87 THEN NULL WHEN COUNT ( * ) THEN 4 - - 1 END
----
NULL

query I rowsort
SELECT + 83 + + + 75 AS col1
----
158

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9847
SELECT + CAST( + ( - COUNT( * ) ) AS SIGNED ) + 78 + - 95 - + 71 * 37 * - 59
----
154975

skipif mysql # not compatible
query I rowsort label-9847
SELECT + CAST ( + ( - COUNT ( * ) ) AS INTEGER ) + 78 + - 95 - + 71 * 37 * - 59
----
154975

query I rowsort
SELECT ( 23 ) AS col1
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-9849
SELECT DISTINCT - COALESCE ( + 77, COUNT( * ), - 7 )
----
-77

skipif mysql # not compatible
query I rowsort label-9849
SELECT DISTINCT - COALESCE ( + 77, COUNT ( * ), - 7 )
----
-77

query I rowsort
SELECT ALL 93 + 70
----
163

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9851
SELECT + 63 + 8 DIV + COUNT( * ) AS col0
----
71

skipif mysql # not compatible
query I rowsort label-9851
SELECT + 63 + 8 / + COUNT ( * ) AS col0
----
71

query I rowsort
SELECT - - 92 - ( + 58 ) + - - 1
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9853
SELECT + + 23 + - ( + - CAST( + 8 AS SIGNED ) ) AS col2
----
31

skipif mysql # not compatible
query I rowsort label-9853
SELECT + + 23 + - ( + - CAST ( + 8 AS INTEGER ) ) AS col2
----
31

query I rowsort
SELECT ALL + - 91 + - 83 + 93 AS col0
----
-81

query I rowsort
SELECT ALL - 24 * - 31 + + + 12 + + 32 - - 71 * + 56 + 55 + - 69
----
4750

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9856
SELECT - 7 * - 51 * + COALESCE ( + SUM( DISTINCT + - 3 ), + COUNT( * ) ) * + + 63 + + - CAST( NULL AS SIGNED ) + - + 17 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9856
SELECT - 7 * - 51 * + COALESCE ( + SUM ( DISTINCT + - 3 ), + COUNT ( * ) ) * + + 63 + + - CAST ( NULL AS INTEGER ) + - + 17 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9857
SELECT 82 DIV 27 + 5 + - - ( 83 ) col2
----
91

skipif mysql # not compatible
query I rowsort label-9857
SELECT 82 / 27 + 5 + - - ( 83 ) col2
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9858
SELECT ALL + + 11 * - COALESCE ( 48, + 51 * - CAST( - 59 AS SIGNED ), + 39 ) - - 1 + + COUNT( * ) + + 66 * - + MIN( DISTINCT + - 97 )
----
5876

skipif mysql # not compatible
query I rowsort label-9858
SELECT ALL + + 11 * - COALESCE ( 48, + 51 * - CAST ( - 59 AS INTEGER ), + 39 ) - - 1 + + COUNT ( * ) + + 66 * - + MIN ( DISTINCT + - 97 )
----
5876

onlyif mysql # aggregate syntax: 
query I rowsort label-9859
SELECT + CASE + + ( - - 46 ) WHEN MAX( ALL + 83 ) THEN - 87 END * - 20 + + 46 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9859
SELECT + CASE + + ( - - 46 ) WHEN MAX ( ALL + 83 ) THEN - 87 END * - 20 + + 46 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9860
SELECT - 35 * + + SUM( ALL + 20 ) - COUNT( * ) * - 9
----
-691

skipif mysql # not compatible
query I rowsort label-9860
SELECT - 35 * + + SUM ( ALL + 20 ) - COUNT ( * ) * - 9
----
-691

query I rowsort
SELECT DISTINCT - + 86 * 32 - 61 * + + 45 col2
----
-5497

onlyif mysql # DIV for integer division: 
query I rowsort label-9862
SELECT DISTINCT - 96 DIV 25 * + 86 AS col0
----
-258

skipif mysql # not compatible
query I rowsort label-9862
SELECT DISTINCT - 96 / 25 * + 86 AS col0
----
-258

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9863
SELECT - COUNT( * ) DIV + SUM( + 94 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9863
SELECT - COUNT ( * ) / + SUM ( + 94 ) AS col0
----
0

query I rowsort
SELECT ALL + NULLIF ( 33, + 65 )
----
33

query I rowsort
SELECT - 5 * - 17
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-9866
SELECT + SUM( ALL - - 10 )
----
10

skipif mysql # not compatible
query I rowsort label-9866
SELECT + SUM ( ALL - - 10 )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9867
SELECT ALL + COALESCE ( - 31, - - 22 * - 2 * SUM( - 35 ) - ( - 1 ) ) AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-9867
SELECT ALL + COALESCE ( - 31, - - 22 * - 2 * SUM ( - 35 ) - ( - 1 ) ) AS col0
----
-31

query I rowsort
SELECT COALESCE ( + 21, + + ( - 72 ) * - - 3 + - - 86 ) AS col1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-9869
SELECT + COUNT( ALL ( + 15 ) )
----
1

skipif mysql # not compatible
query I rowsort label-9869
SELECT + COUNT ( ALL ( + 15 ) )
----
1

query I rowsort
SELECT ALL + COALESCE ( - 86, 33 ) AS col2
----
-86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9871
SELECT - 58 - - - CAST( 87 AS SIGNED ) AS col1
----
-145

skipif mysql # not compatible
query I rowsort label-9871
SELECT - 58 - - - CAST ( 87 AS INTEGER ) AS col1
----
-145

query I rowsort
SELECT - 75 * + 27 col2
----
-2025

query I rowsort
SELECT + 43 * 75 - - 26 AS col2
----
3251

onlyif mysql # aggregate syntax: 
query I rowsort label-9874
SELECT SUM( - 97 )
----
-97

skipif mysql # not compatible
query I rowsort label-9874
SELECT SUM ( - 97 )
----
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-9875
SELECT - 28 DIV + 35 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9875
SELECT - 28 / + 35 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9876
SELECT ALL 99 * - 93 + + - COUNT( * ) + 62
----
-9146

skipif mysql # not compatible
query I rowsort label-9876
SELECT ALL 99 * - 93 + + - COUNT ( * ) + 62
----
-9146

onlyif mysql # aggregate syntax: 
query I rowsort label-9877
SELECT SUM( ALL + 34 )
----
34

skipif mysql # not compatible
query I rowsort label-9877
SELECT SUM ( ALL + 34 )
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-9878
SELECT ALL - 85 * + + 15 + 37 * - 18 * + NULLIF ( + 55, ( + 23 ) ) * CASE - MAX( + 81 ) WHEN + 60 + 73 THEN - AVG ( ALL + 3 ) END + + 85
----
NULL

skipif mysql # not compatible
query I rowsort label-9878
SELECT ALL - 85 * + + 15 + 37 * - 18 * + NULLIF ( + 55, ( + 23 ) ) * CASE - MAX ( + 81 ) WHEN + 60 + 73 THEN - AVG ( ALL + 3 ) END + + 85
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9879
SELECT + 21 + - COUNT( * ) + - 11 DIV + - 33
----
20

skipif mysql # not compatible
query I rowsort label-9879
SELECT + 21 + - COUNT ( * ) + - 11 / + - 33
----
20

query I rowsort
SELECT ALL + 44 + - 46 AS col0
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-9881
SELECT - + 17, + COUNT( * ) * + NULLIF ( - COUNT( 10 ), + NULLIF ( + - 84, + + 69 * 81 + + + 21 ) ) + + - 93 AS col0
----
-17
-94

skipif mysql # not compatible
query II rowsort label-9881
SELECT - + 17, + COUNT ( * ) * + NULLIF ( - COUNT ( 10 ), + NULLIF ( + - 84, + + 69 * 81 + + + 21 ) ) + + - 93 AS col0
----
-17
-94

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9882
SELECT + 81 DIV - + CAST( AVG ( DISTINCT + 65 ) AS SIGNED ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9882
SELECT + 81 / - + CAST ( AVG ( DISTINCT + 65 ) AS INTEGER ) AS col2
----
-1

query I rowsort
SELECT - + 76 * 73 * 5 * + 90 AS col2
----
-2496600

onlyif mysql # DIV for integer division: 
query I rowsort label-9884
SELECT DISTINCT + 65 DIV 45 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9884
SELECT DISTINCT + 65 / 45 AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9885
SELECT ALL - COUNT( * ) + + 78 + + 78 * - COUNT( * ) * + + 23 * - - CAST( - COUNT( * ) AS SIGNED )
----
1871

skipif mysql # not compatible
query I rowsort label-9885
SELECT ALL - COUNT ( * ) + + 78 + + 78 * - COUNT ( * ) * + + 23 * - - CAST ( - COUNT ( * ) AS INTEGER )
----
1871

onlyif mysql # aggregate syntax: 
query I rowsort label-9886
SELECT + COALESCE ( + 5, 81 * 96 * + ( + + 46 ) + + - 50, - COUNT( * ) - + + SUM( DISTINCT + + ( - 5 ) ) + - + COUNT( * ) ) col1
----
5

skipif mysql # not compatible
query I rowsort label-9886
SELECT + COALESCE ( + 5, 81 * 96 * + ( + + 46 ) + + - 50, - COUNT ( * ) - + + SUM ( DISTINCT + + ( - 5 ) ) + - + COUNT ( * ) ) col1
----
5

query I rowsort
SELECT + - 96 + + 21 + + 53 + - 3 col0
----
-25

query I rowsort
SELECT NULLIF ( + 28, NULLIF ( - 5, + + ( + - 72 ) ) ) AS col1
----
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9889
SELECT + + 27 DIV - + 92 + + - 35 DIV + - COUNT( * ) AS col0
----
35

skipif mysql # not compatible
query I rowsort label-9889
SELECT + + 27 / - + 92 + + - 35 / + - COUNT ( * ) AS col0
----
35

query I rowsort
SELECT + + 21 + + - 0 AS col0
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-9891
SELECT DISTINCT + 5 DIV - 70 * 3 * + 67 DIV - ( + - 67 ) DIV - - 23 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9891
SELECT DISTINCT + 5 / - 70 * 3 * + 67 / - ( + - 67 ) / - - 23 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9892
SELECT ALL COUNT( * ) + + + 63 AS col2
----
64

skipif mysql # not compatible
query I rowsort label-9892
SELECT ALL COUNT ( * ) + + + 63 AS col2
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9893
SELECT - CAST( + 55 AS SIGNED )
----
-55

skipif mysql # not compatible
query I rowsort label-9893
SELECT - CAST ( + 55 AS INTEGER )
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9894
SELECT ALL + SUM( - 58 ) * - CAST( NULL AS SIGNED ) AS col1, - 85
----
NULL
-85

skipif mysql # not compatible
query II rowsort label-9894
SELECT ALL + SUM ( - 58 ) * - CAST ( NULL AS INTEGER ) AS col1, - 85
----
NULL
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9895
SELECT DISTINCT + NULLIF ( COUNT( * ), + 39 ) - + 15 DIV - - 98 + + + ( + SUM( - + 46 ) )
----
-45

skipif mysql # not compatible
query I rowsort label-9895
SELECT DISTINCT + NULLIF ( COUNT ( * ), + 39 ) - + 15 / - - 98 + + + ( + SUM ( - + 46 ) )
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9896
SELECT 91, CASE + 18 WHEN + CAST( NULL AS SIGNED ) THEN - - 57 - - 13 ELSE - 57 END * 77 + 62 - - COUNT( * ) AS col2
----
91
-4326

skipif mysql # not compatible
query II rowsort label-9896
SELECT 91, CASE + 18 WHEN + CAST ( NULL AS INTEGER ) THEN - - 57 - - 13 ELSE - 57 END * 77 + 62 - - COUNT ( * ) AS col2
----
91
-4326

query I rowsort
SELECT + 97 * + - 19
----
-1843

onlyif mysql # aggregate syntax: 
query I rowsort label-9898
SELECT ALL COUNT( DISTINCT + 68 ) - 46 AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-9898
SELECT ALL COUNT ( DISTINCT + 68 ) - 46 AS col0
----
-45

query II rowsort
SELECT DISTINCT 48, + 64 col0
----
48
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9900
SELECT + + COALESCE ( + 33, - + 64 + - + ( + NULLIF ( + 53, - 60 * + MAX( 39 ) * + 92 ) ) ) - COALESCE ( - 61, COUNT( * ) ) * - 71 col2
----
-4298

skipif mysql # not compatible
query I rowsort label-9900
SELECT + + COALESCE ( + 33, - + 64 + - + ( + NULLIF ( + 53, - 60 * + MAX ( 39 ) * + 92 ) ) ) - COALESCE ( - 61, COUNT ( * ) ) * - 71 col2
----
-4298

query I rowsort
SELECT - + 20 * - + 76 * - + 19
----
-28880

onlyif mysql # DIV for integer division: 
query II rowsort label-9902
SELECT ALL + + 7 AS col1, 45 DIV - + ( + + 79 ) AS col2
----
7
0

skipif mysql # not compatible
query II rowsort label-9902
SELECT ALL + + 7 AS col1, 45 / - + ( + + 79 ) AS col2
----
7
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9903
SELECT + - 50 + MAX( ALL - 22 ) DIV ( - 68 ) + COALESCE ( + 76, 87 ) col0, 87
----
26
87

skipif mysql # not compatible
query II rowsort label-9903
SELECT + - 50 + MAX ( ALL - 22 ) / ( - 68 ) + COALESCE ( + 76, 87 ) col0, 87
----
26
87

onlyif mysql # aggregate syntax: 
query I rowsort label-9904
SELECT + - MIN( 26 )
----
-26

skipif mysql # not compatible
query I rowsort label-9904
SELECT + - MIN ( 26 )
----
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-9905
SELECT ALL 3 DIV + ( + - 71 ) * - 99 - + 61 AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-9905
SELECT ALL 3 / + ( + - 71 ) * - 99 - + 61 AS col2
----
-61

query I rowsort
SELECT DISTINCT - 10 * + ( 39 )
----
-390

onlyif mysql # aggregate syntax: 
query II rowsort label-9907
SELECT DISTINCT + 93 AS col1, 99 / + AVG ( - 11 ) * - 30 * COUNT( * ) + + CASE - 65 WHEN 59 * + 22 * - 7 * + 19 THEN 6 END - 98 + - 56 + 20
----
93
NULL

skipif mysql # not compatible
query II rowsort label-9907
SELECT DISTINCT + 93 AS col1, 99 / + AVG ( - 11 ) * - 30 * COUNT ( * ) + + CASE - 65 WHEN 59 * + 22 * - 7 * + 19 THEN 6 END - 98 + - 56 + 20
----
93
NULL

query I rowsort
SELECT + 6 * + + 11 * + + 52 * 74
----
253968

onlyif mysql # aggregate syntax: 
query II rowsort label-9909
SELECT - COUNT( * ) * + 63, - 90 AS col0
----
-63
-90

skipif mysql # not compatible
query II rowsort label-9909
SELECT - COUNT ( * ) * + 63, - 90 AS col0
----
-63
-90

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9910
SELECT CAST( NULL AS SIGNED ) col2, 99
----
NULL
99

skipif mysql # not compatible
query II rowsort label-9910
SELECT CAST ( NULL AS INTEGER ) col2, 99
----
NULL
99

query I rowsort
SELECT 69 + + 65
----
134

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9912
SELECT 57 * + + CAST( NULL AS DECIMAL ) - 79 * + COUNT( * ) AS col0, COUNT( * ) AS col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-9912
SELECT 57 * + + CAST ( NULL AS REAL ) - 79 * + COUNT ( * ) AS col0, COUNT ( * ) AS col1
----
NULL
1

query I rowsort
SELECT ALL 57 + 85
----
142

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9914
SELECT DISTINCT - 53 AS col2, CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) - - 29 + 4 AS col1
----
-53
NULL

skipif mysql # not compatible
query II rowsort label-9914
SELECT DISTINCT - 53 AS col2, CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) - - 29 + 4 AS col1
----
-53
NULL

query I rowsort
SELECT 1 * + 16 * - 78
----
-1248

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9916
SELECT ALL - COALESCE ( 8, + 61, - CAST( + + 23 AS SIGNED ) + 52 ) AS col2, 95 AS col2
----
-8
95

skipif mysql # not compatible
query II rowsort label-9916
SELECT ALL - COALESCE ( 8, + 61, - CAST ( + + 23 AS INTEGER ) + 52 ) AS col2, 95 AS col2
----
-8
95

query II rowsort
SELECT 98 col0, + 32 AS col2
----
98
32

query I rowsort
SELECT ALL - - 12 + - - 73
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-9919
SELECT ( + 70 ) + COUNT( * ) + - 33 - - 34 * - NULLIF ( 28, - + 16 ) + + - 5 AS col1
----
-919

skipif mysql # not compatible
query I rowsort label-9919
SELECT ( + 70 ) + COUNT ( * ) + - 33 - - 34 * - NULLIF ( 28, - + 16 ) + + - 5 AS col1
----
-919

query I rowsort
SELECT - 16 * + 73 + + 12
----
-1156

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9921
SELECT DISTINCT + ( - COUNT( * ) ) + - 29 DIV 45 * 79
----
-1

skipif mysql # not compatible
query I rowsort label-9921
SELECT DISTINCT + ( - COUNT ( * ) ) + - 29 / 45 * 79
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9922
SELECT 55 + + + COALESCE ( - - ( + 5 ), - 45 ) * + + 57 DIV - + COUNT( DISTINCT - - 11 )
----
-230

skipif mysql # not compatible
query I rowsort label-9922
SELECT 55 + + + COALESCE ( - - ( + 5 ), - 45 ) * + + 57 / - + COUNT ( DISTINCT - - 11 )
----
-230

query I rowsort
SELECT ALL - + 20 * + 41
----
-820

onlyif mysql # aggregate syntax: 
query I rowsort label-9924
SELECT DISTINCT + + 70 - SUM( + - 24 )
----
94

skipif mysql # not compatible
query I rowsort label-9924
SELECT DISTINCT + + 70 - SUM ( + - 24 )
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9925
SELECT - MAX( ALL - 97 ) * 13 / - - CASE 97 WHEN + 82 THEN NULL WHEN + + 73 THEN + + 77 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9925
SELECT - MAX ( ALL - 97 ) * 13 / - - CASE 97 WHEN + 82 THEN NULL WHEN + + 73 THEN + + 77 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9926
SELECT ALL + 37 AS col1, 6 * + + COUNT( 66 ) * + 11 + - CASE + 60 WHEN 46 + + + COUNT( - 68 ) * - - 31 + + + COUNT( * ) THEN - 10 WHEN 48 THEN NULL ELSE NULL END + 32 AS col2
----
37
NULL

skipif mysql # not compatible
query II rowsort label-9926
SELECT ALL + 37 AS col1, 6 * + + COUNT ( 66 ) * + 11 + - CASE + 60 WHEN 46 + + + COUNT ( - 68 ) * - - 31 + + + COUNT ( * ) THEN - 10 WHEN 48 THEN NULL ELSE NULL END + 32 AS col2
----
37
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9927
SELECT CASE + 83 WHEN 86 + - 91 THEN - 6 * + - 74 + + + 29 DIV - 72 + + - MIN( DISTINCT + CASE + 10 WHEN - 74 DIV - 92 * + 22 THEN NULL WHEN - - 53 DIV 78 * + + 33 THEN + 11 END ) ELSE - COUNT( * ) + + - 2 * + ( + 14 ) * + + COALESCE ( + 23, + MAX( ALL + + 11 ) DIV 39 ) END AS col1
----
-645

skipif mysql # not compatible
query I rowsort label-9927
SELECT CASE + 83 WHEN 86 + - 91 THEN - 6 * + - 74 + + + 29 / - 72 + + - MIN ( DISTINCT + CASE + 10 WHEN - 74 / - 92 * + 22 THEN NULL WHEN - - 53 / 78 * + + 33 THEN + 11 END ) ELSE - COUNT ( * ) + + - 2 * + ( + 14 ) * + + COALESCE ( + 23, + MAX ( ALL + + 11 ) / 39 ) END AS col1
----
-645

query I rowsort
SELECT + 34 + + 29 AS col1
----
63

onlyif mysql # aggregate syntax: 
query II rowsort label-9929
SELECT + 38 * + + COUNT( * ) AS col0, 29 AS col2
----
38
29

skipif mysql # not compatible
query II rowsort label-9929
SELECT + 38 * + + COUNT ( * ) AS col0, 29 AS col2
----
38
29

onlyif mysql # DIV for integer division: 
query I rowsort label-9930
SELECT ALL - 60 DIV 27 + 81 AS col1
----
79

skipif mysql # not compatible
query I rowsort label-9930
SELECT ALL - 60 / 27 + 81 AS col1
----
79

query I rowsort
SELECT + 47 + - 12 AS col0
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9932
SELECT - CAST( + + 65 AS SIGNED )
----
-65

skipif mysql # not compatible
query I rowsort label-9932
SELECT - CAST ( + + 65 AS INTEGER )
----
-65

query I rowsort
SELECT - 74 * + 72 AS col2
----
-5328

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9934
SELECT - CASE + 26 WHEN + + 31 - COUNT( DISTINCT + + 41 ) THEN NULL ELSE ( + 10 ) END DIV + - 30 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9934
SELECT - CASE + 26 WHEN + + 31 - COUNT ( DISTINCT + + 41 ) THEN NULL ELSE ( + 10 ) END / + - 30 AS col2
----
0

query I rowsort
SELECT DISTINCT + ( + - 9 ) col2
----
-9

query I rowsort
SELECT 60 + 36 AS col0
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9937
SELECT ALL COUNT( * ) * + 3 AS col0, + CAST( + 2 AS SIGNED ) + 59
----
3
61

skipif mysql # not compatible
query II rowsort label-9937
SELECT ALL COUNT ( * ) * + 3 AS col0, + CAST ( + 2 AS INTEGER ) + 59
----
3
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-9938
SELECT + 55 DIV + 85 + - - 55 - 82 * 26 * + 4 + - - 28 + + 69 DIV + - 65 * + COUNT( + ( 74 ) ), 87 * - 95 * + 56 AS col0, + CAST( NULL AS SIGNED ) - - - COALESCE ( - - 5, MAX( ALL + + 4 ), + 99 ) AS col0
----
-8446
-462840
NULL

skipif mysql # not compatible
query III rowsort label-9938
SELECT + 55 / + 85 + - - 55 - 82 * 26 * + 4 + - - 28 + + 69 / + - 65 * + COUNT ( + ( 74 ) ), 87 * - 95 * + 56 AS col0, + CAST ( NULL AS INTEGER ) - - - COALESCE ( - - 5, MAX ( ALL + + 4 ), + 99 ) AS col0
----
-8446
-462840
NULL

query I rowsort
SELECT DISTINCT 59 * + 8 AS col2
----
472

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9940
SELECT 44 * + - CAST( NULL AS DECIMAL ) * + NULLIF ( + 7, - 82 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9940
SELECT 44 * + - CAST ( NULL AS REAL ) * + NULLIF ( + 7, - 82 ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-9941
SELECT COUNT( DISTINCT 6 ) * CAST( 43 AS SIGNED ) + - - 45 - + 69 - + + 38 AS col0, - COUNT( * ) AS col1, + 98 * SUM( - 44 ) AS col2
----
-19
-1
-4312

skipif mysql # not compatible
query III rowsort label-9941
SELECT COUNT ( DISTINCT 6 ) * CAST ( 43 AS INTEGER ) + - - 45 - + 69 - + + 38 AS col0, - COUNT ( * ) AS col1, + 98 * SUM ( - 44 ) AS col2
----
-19
-1
-4312

query I rowsort
SELECT ALL 94 + + - 71
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-9943
SELECT MAX( DISTINCT - + 23 ) * + 30 AS col2
----
-690

skipif mysql # not compatible
query I rowsort label-9943
SELECT MAX ( DISTINCT - + 23 ) * + 30 AS col2
----
-690

query I rowsort
SELECT DISTINCT 5 + - 96
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-9945
SELECT ALL 16 + + SUM( - 36 ) + - 10
----
-30

skipif mysql # not compatible
query I rowsort label-9945
SELECT ALL 16 + + SUM ( - 36 ) + - 10
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9946
SELECT DISTINCT SUM( ALL - ( 81 ) ) * COALESCE ( - 71, CAST( - AVG ( ALL + 76 ) AS SIGNED ) * + - 47 ) + - 16
----
5735

skipif mysql # not compatible
query I rowsort label-9946
SELECT DISTINCT SUM ( ALL - ( 81 ) ) * COALESCE ( - 71, CAST ( - AVG ( ALL + 76 ) AS INTEGER ) * + - 47 ) + - 16
----
5735

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9947
SELECT ALL 10 DIV + - COUNT( * ) AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-9947
SELECT ALL 10 / + - COUNT ( * ) AS col0
----
-10

query I rowsort
SELECT ( - - 55 ) + + + 99 * 34
----
3421

onlyif mysql # aggregate syntax: 
query II rowsort label-9949
SELECT DISTINCT COUNT( * ) * - 68, - 32 AS col2
----
-68
-32

skipif mysql # not compatible
query II rowsort label-9949
SELECT DISTINCT COUNT ( * ) * - 68, - 32 AS col2
----
-68
-32

query I rowsort
SELECT ALL 4 + - 5
----
-1

query I rowsort
SELECT ( - 1 ) * + ( - 21 ) AS col1
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-9952
SELECT ( 58 ) DIV - 18 + - 81 AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-9952
SELECT ( 58 ) / - 18 + - 81 AS col2
----
-84

query I rowsort
SELECT 94 - - + 9 AS col2
----
103

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9954
SELECT COUNT( * ) + 94 DIV + - 26 + + 8
----
6

skipif mysql # not compatible
query I rowsort label-9954
SELECT COUNT ( * ) + 94 / + - 26 + + 8
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9955
SELECT DISTINCT - MIN( DISTINCT - + 92 ) - 90 * + 77
----
-6838

skipif mysql # not compatible
query I rowsort label-9955
SELECT DISTINCT - MIN ( DISTINCT - + 92 ) - 90 * + 77
----
-6838

onlyif mysql # DIV for integer division: 
query I rowsort label-9956
SELECT DISTINCT + - ( - ( + 60 ) ) DIV 16 * - + 95
----
-285

skipif mysql # not compatible
query I rowsort label-9956
SELECT DISTINCT + - ( - ( + 60 ) ) / 16 * - + 95
----
-285

query I rowsort
SELECT 0 * - + 29 * - 52 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9958
SELECT ALL - 55 DIV - 44
----
1

skipif mysql # not compatible
query I rowsort label-9958
SELECT ALL - 55 / - 44
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9959
SELECT - - ( + NULLIF ( - 84, - CAST( + 26 AS SIGNED ) ) ) AS col2, + 21 col2
----
-84
21

skipif mysql # not compatible
query II rowsort label-9959
SELECT - - ( + NULLIF ( - 84, - CAST ( + 26 AS INTEGER ) ) ) AS col2, + 21 col2
----
-84
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9960
SELECT - 6 * - MAX( ALL + 2 ) * - 64 - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9960
SELECT - 6 * - MAX ( ALL + 2 ) * - 64 - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9961
SELECT - 15 + 91 + + - 70 - + COUNT( * )
----
5

skipif mysql # not compatible
query I rowsort label-9961
SELECT - 15 + 91 + + - 70 - + COUNT ( * )
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9962
SELECT ALL + + CAST( 85 AS SIGNED ) * - ( - + 21 )
----
1785

skipif mysql # not compatible
query I rowsort label-9962
SELECT ALL + + CAST ( 85 AS INTEGER ) * - ( - + 21 )
----
1785

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9963
SELECT DISTINCT + + CAST( COUNT( * ) AS SIGNED ) * 47 AS col1
----
47

skipif mysql # not compatible
query I rowsort label-9963
SELECT DISTINCT + + CAST ( COUNT ( * ) AS INTEGER ) * 47 AS col1
----
47

query I rowsort
SELECT DISTINCT + 70 * + 33 - 80 + - 53
----
2177

query I rowsort
SELECT ALL ( - 65 ) AS col2
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-9966
SELECT - COUNT( ALL - 10 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-9966
SELECT - COUNT ( ALL - 10 ) col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9967
SELECT ALL + - 0 * CASE + 84 WHEN 9 THEN 5 WHEN + ( 78 ) / + + 73 + + 32 * + ( 42 ) + - 48 + - COUNT( * ) * + 17 / + - 53 + + 93 + COUNT( * ) THEN NULL WHEN + COUNT( * ) / - - 37 + + - COALESCE ( - CASE - - 17 WHEN 8 THEN NULL WHEN 23 + ( + - COUNT( * ) ) - COALESCE ( - - 11, + - 52, 34 ) + - + 95 THEN NULL ELSE 80 END, 55, + 25 * 88 ) + + 70 THEN - ( 64 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9967
SELECT ALL + - 0 * CASE + 84 WHEN 9 THEN 5 WHEN + ( 78 ) / + + 73 + + 32 * + ( 42 ) + - 48 + - COUNT ( * ) * + 17 / + - 53 + + 93 + COUNT ( * ) THEN NULL WHEN + COUNT ( * ) / - - 37 + + - COALESCE ( - CASE - - 17 WHEN 8 THEN NULL WHEN 23 + ( + - COUNT ( * ) ) - COALESCE ( - - 11, + - 52, 34 ) + - + 95 THEN NULL ELSE 80 END, 55, + 25 * 88 ) + + 70 THEN - ( 64 ) ELSE NULL END
----
NULL

query I rowsort
SELECT 44 + - 87 + + 9 * + 23 AS col1
----
164

query I rowsort
SELECT ALL + 92 + 2 - 47 - - 7 * - 68 col1
----
-429

query I rowsort
SELECT - 59 + 60 col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9971
SELECT - COUNT( * ) AS col0, + 43 AS col2
----
-1
43

skipif mysql # not compatible
query II rowsort label-9971
SELECT - COUNT ( * ) AS col0, + 43 AS col2
----
-1
43

onlyif mysql # aggregate syntax: 
query I rowsort label-9972
SELECT + 25 * + COUNT( * ) + COUNT( * ) col1
----
26

skipif mysql # not compatible
query I rowsort label-9972
SELECT + 25 * + COUNT ( * ) + COUNT ( * ) col1
----
26

query I rowsort
SELECT ALL 46 * + 99
----
4554

query I rowsort
SELECT NULLIF ( + - 19, + AVG ( DISTINCT + 94 ) ) AS col1
----
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9975
SELECT + 31 DIV 31 + COUNT( * ) * - 97 * - 77 * - 32
----
-239007

skipif mysql # not compatible
query I rowsort label-9975
SELECT + 31 / 31 + COUNT ( * ) * - 97 * - 77 * - 32
----
-239007

onlyif mysql # aggregate syntax: 
query I rowsort label-9976
SELECT ALL 44 * + - COUNT( * ) * 95 + COUNT( * ) AS col1
----
-4179

skipif mysql # not compatible
query I rowsort label-9976
SELECT ALL 44 * + - COUNT ( * ) * 95 + COUNT ( * ) AS col1
----
-4179

onlyif mysql # DIV for integer division: 
query I rowsort label-9977
SELECT DISTINCT - 75 DIV 51 * - NULLIF ( + ( - 25 ), + 98 )
----
-25

skipif mysql # not compatible
query I rowsort label-9977
SELECT DISTINCT - 75 / 51 * - NULLIF ( + ( - 25 ), + 98 )
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9978
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - 81 + 30 - - + MAX( + 12 ) - + 31 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9978
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - 81 + 30 - - + MAX ( + 12 ) - + 31 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9979
SELECT ALL + 19 * 53 + + 17 + 85 AS col1, - 73 + - CAST( NULL AS SIGNED )
----
1109
NULL

skipif mysql # not compatible
query II rowsort label-9979
SELECT ALL + 19 * 53 + + 17 + 85 AS col1, - 73 + - CAST ( NULL AS INTEGER )
----
1109
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9980
SELECT 93 DIV - + 54 - - 20 + + 83 - - 95 * + COUNT( * ) * - + 33
----
-3033

skipif mysql # not compatible
query I rowsort label-9980
SELECT 93 / - + 54 - - 20 + + 83 - - 95 * + COUNT ( * ) * - + 33
----
-3033

query I rowsort
SELECT ALL - 57 * - + 54 AS col0
----
3078

query I rowsort
SELECT DISTINCT + 3 * + - 5
----
-15

query I rowsort
SELECT + 81 - - + 68 AS col1
----
149

onlyif mysql # DIV for integer division: 
query I rowsort label-9984
SELECT COALESCE ( - 90, - - 16 DIV 85 ) AS col1
----
-90

skipif mysql # not compatible
query I rowsort label-9984
SELECT COALESCE ( - 90, - - 16 / 85 ) AS col1
----
-90

query I rowsort
SELECT CASE + 72 WHEN + + 5 THEN NULL WHEN - AVG ( ALL + + 16 ) THEN ( - 40 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9986
SELECT DISTINCT COUNT( * ) * - 48
----
-48

skipif mysql # not compatible
query I rowsort label-9986
SELECT DISTINCT COUNT ( * ) * - 48
----
-48

query II rowsort
SELECT ALL 99 * + 59 + - 4 AS col2, + 3
----
5837
3

onlyif mysql # aggregate syntax: 
query II rowsort label-9988
SELECT + 20 col0, COUNT( * )
----
20
1

skipif mysql # not compatible
query II rowsort label-9988
SELECT + 20 col0, COUNT ( * )
----
20
1

query I rowsort
SELECT + ( - 68 ) + + 22 AS col0
----
-46

query I rowsort
SELECT + 21 + + - 13
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-9991
SELECT ALL + 75, + 30 * 94 * + + COUNT( * ) AS col1
----
75
2820

skipif mysql # not compatible
query II rowsort label-9991
SELECT ALL + 75, + 30 * 94 * + + COUNT ( * ) AS col1
----
75
2820

onlyif mysql # aggregate syntax: 
query II rowsort label-9992
SELECT MAX( ( + 98 ) ) AS col1, MIN( ALL - ( - 41 ) ) + + 46
----
98
87

skipif mysql # not compatible
query II rowsort label-9992
SELECT MAX ( ( + 98 ) ) AS col1, MIN ( ALL - ( - 41 ) ) + + 46
----
98
87

onlyif mysql # aggregate syntax: 
query I rowsort label-9993
SELECT ALL + ( 32 ) * + + 54 + + + MAX( 72 ) - + 72 + 93 AS col1
----
1821

skipif mysql # not compatible
query I rowsort label-9993
SELECT ALL + ( 32 ) * + + 54 + + + MAX ( 72 ) - + 72 + 93 AS col1
----
1821

onlyif mysql # aggregate syntax: 
query II rowsort label-9994
SELECT DISTINCT + 66 AS col0, - 81 * 60 + + + 46 + - COALESCE ( - 83, - - COUNT( * ) ) * - COUNT( * )
----
66
-4897

skipif mysql # not compatible
query II rowsort label-9994
SELECT DISTINCT + 66 AS col0, - 81 * 60 + + + 46 + - COALESCE ( - 83, - - COUNT ( * ) ) * - COUNT ( * )
----
66
-4897

query I rowsort
SELECT ALL + 54 * 67 col1
----
3618

query I rowsort
SELECT + - ( 92 ) AS col0
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9997
SELECT DISTINCT - 26 DIV MAX( CAST( 4 AS SIGNED ) ) AS col2, - 25 * + - 45 AS col2
----
-6
1125

skipif mysql # not compatible
query II rowsort label-9997
SELECT DISTINCT - 26 / MAX ( CAST ( 4 AS INTEGER ) ) AS col2, - 25 * + - 45 AS col2
----
-6
1125

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9998
SELECT + COALESCE ( + 32, - + CAST( NULL AS SIGNED ) * + - 48 * + - 59 + + 15 * + 31 * + ( 94 ) ) + + - MAX( ALL + 88 ) AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-9998
SELECT + COALESCE ( + 32, - + CAST ( NULL AS INTEGER ) * + - 48 * + - 59 + + 15 * + 31 * + ( 94 ) ) + + - MAX ( ALL + 88 ) AS col0
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-9999
SELECT - + COUNT( * ) - - - 55 AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-9999
SELECT - + COUNT ( * ) - - - 55 AS col2
----
-56

