hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT ALL + + 61 + 17
----
78

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3
SELECT + - 40 + - CASE WHEN 36 + + 65 * + 55 IN ( 32 * SUM( 13 ) + 61 / 8 ) THEN 95 WHEN NOT + CASE 19 WHEN 90 * + ( - 27 ) + 93 * + 2 THEN NULL WHEN + 32 * - 81 THEN 64 WHEN + ( CAST( + AVG ( + 62 ) AS SIGNED ) ) * + 12 THEN NULL END NOT IN ( - 46 ) THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3
SELECT + - 40 + - CASE WHEN 36 + + 65 * + 55 IN ( 32 * SUM ( 13 ) + 61 / 8 ) THEN 95 WHEN NOT + CASE 19 WHEN 90 * + ( - 27 ) + 93 * + 2 THEN NULL WHEN + 32 * - 81 THEN 64 WHEN + ( CAST ( + AVG ( + 62 ) AS INTEGER ) ) * + 12 THEN NULL END NOT IN ( - 46 ) THEN NULL ELSE NULL END AS col0
----
NULL

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

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

query I rowsort
SELECT ALL - - 32 + 97 col2
----
129

query I rowsort
SELECT - - 32 * 16
----
512

query I rowsort
SELECT - 41 * + 17
----
-697

onlyif mysql # aggregate syntax: 
query I rowsort label-8
SELECT + COALESCE ( + COUNT( * ), COUNT( * ) + 77 ) * 96 col2
----
96

skipif mysql # not compatible
query I rowsort label-8
SELECT + COALESCE ( + COUNT ( * ), COUNT ( * ) + 77 ) * 96 col2
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9
SELECT ALL - - CASE + 41 WHEN 78 + + 36 THEN NULL WHEN 53 THEN + COUNT( * ) * - 32 + 74 ELSE CASE 84 WHEN CAST( NULL AS SIGNED ) THEN - AVG ( 12 ) + + AVG ( DISTINCT 16 ) WHEN + COUNT( * ) THEN AVG ( - 69 ) ELSE NULL END * 71 END * - 41 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9
SELECT ALL - - CASE + 41 WHEN 78 + + 36 THEN NULL WHEN 53 THEN + COUNT ( * ) * - 32 + 74 ELSE CASE 84 WHEN CAST ( NULL AS INTEGER ) THEN - AVG ( 12 ) + + AVG ( DISTINCT 16 ) WHEN + COUNT ( * ) THEN AVG ( - 69 ) ELSE NULL END * 71 END * - 41 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-10
SELECT SUM( DISTINCT 33 ) AS col2
----
33

skipif mysql # not compatible
query I rowsort label-10
SELECT SUM ( DISTINCT 33 ) AS col2
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-11
SELECT ALL - - 40 - + CASE MAX( - 93 ) WHEN 19 THEN + 65 + - 61 WHEN ( - 55 ) THEN NULL WHEN + NULLIF ( + MIN( DISTINCT ( 50 ) ), 33 ) + + 47 THEN - 85 / + 35 END
----
NULL

skipif mysql # not compatible
query I rowsort label-11
SELECT ALL - - 40 - + CASE MAX ( - 93 ) WHEN 19 THEN + 65 + - 61 WHEN ( - 55 ) THEN NULL WHEN + NULLIF ( + MIN ( DISTINCT ( 50 ) ), 33 ) + + 47 THEN - 85 / + 35 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-12
SELECT ALL - 71 - NULLIF ( - CASE - ( - 40 ) WHEN CASE + 35 WHEN + MIN( 72 ) * 98 THEN + 96 * ( 73 ) + - 71 ELSE + 10 END THEN 38 END, ( 76 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-12
SELECT ALL - 71 - NULLIF ( - CASE - ( - 40 ) WHEN CASE + 35 WHEN + MIN ( 72 ) * 98 THEN + 96 * ( 73 ) + - 71 ELSE + 10 END THEN 38 END, ( 76 ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-13
SELECT CAST( - 35 AS SIGNED ) DIV 39 - 86 * - 8 AS col2
----
688

skipif mysql # not compatible
query I rowsort label-13
SELECT CAST ( - 35 AS INTEGER ) / 39 - 86 * - 8 AS col2
----
688

query I rowsort
SELECT - - 33 * - 89
----
-2937

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-16
SELECT - - 28 * COUNT( * ) + + 27
----
55

skipif mysql # not compatible
query I rowsort label-16
SELECT - - 28 * COUNT ( * ) + + 27
----
55

query I rowsort
SELECT ALL + 14 * - 74 - 43
----
-1079

onlyif mysql # DIV for integer division: 
query I rowsort label-18
SELECT 47 DIV - 34 + 22
----
21

skipif mysql # not compatible
query I rowsort label-18
SELECT 47 / - 34 + 22
----
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-19
SELECT + MIN( DISTINCT 25 ) DIV 80 + - 80
----
-80

skipif mysql # not compatible
query I rowsort label-19
SELECT + MIN ( DISTINCT 25 ) / 80 + - 80
----
-80

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

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

query I rowsort
SELECT DISTINCT - 98 * 46
----
-4508

onlyif mysql # aggregate syntax: 
query I rowsort label-22
SELECT ALL + COALESCE ( + - COUNT( * ), 48 - 5 )
----
-1

skipif mysql # not compatible
query I rowsort label-22
SELECT ALL + COALESCE ( + - COUNT ( * ), 48 - 5 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-23
SELECT COALESCE ( MAX( CAST( NULL AS SIGNED ) ), 83 - + CASE + 60 WHEN + 43 - 67 THEN AVG ( 84 ) ELSE NULL END * COALESCE ( 9, 17 * - 72, + 99 + 88 ) ) * - 6 + + NULLIF ( + 95 + - 19 * COUNT( * ), 9 )
----
NULL

skipif mysql # not compatible
query I rowsort label-23
SELECT COALESCE ( MAX ( CAST ( NULL AS INTEGER ) ), 83 - + CASE + 60 WHEN + 43 - 67 THEN AVG ( 84 ) ELSE NULL END * COALESCE ( 9, 17 * - 72, + 99 + 88 ) ) * - 6 + + NULLIF ( + 95 + - 19 * COUNT ( * ), 9 )
----
NULL

query I rowsort
SELECT ALL 68 * + 19
----
1292

onlyif mysql # DIV for integer division: 
query I rowsort label-25
SELECT + 74 DIV + 86 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-25
SELECT + 74 / + 86 AS col1
----
0

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

skipif mysql # not compatible
query I rowsort label-26
SELECT + 77 * ( - COUNT ( * ) ) + + 68 * + COUNT ( * ) AS col1
----
-9

query I rowsort
SELECT + 15 * + + 78 * + 1 + 66
----
1236

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-28
SELECT ALL 96 * - + COUNT( * ) + + CAST( COUNT( * ) AS SIGNED ) AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-28
SELECT ALL 96 * - + COUNT ( * ) + + CAST ( COUNT ( * ) AS INTEGER ) AS col2
----
-95

query I rowsort
SELECT - 20 * + 44 * 15 AS col2
----
-13200

onlyif mysql # aggregate syntax: 
query I rowsort label-30
SELECT + 26 + NULLIF ( ( COUNT( * ) ), 5 * + 59 ) AS col2
----
27

skipif mysql # not compatible
query I rowsort label-30
SELECT + 26 + NULLIF ( ( COUNT ( * ) ), 5 * + 59 ) AS col2
----
27

query I rowsort
SELECT NULLIF ( 45, 10 ) AS col0
----
45

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

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

query I rowsort
SELECT + 2 + + 97
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-34
SELECT SUM( - 0 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-34
SELECT SUM ( - 0 ) AS col2
----
0

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

query I rowsort
SELECT ALL ( 63 ) * - 31 + 43 * 52 AS col2
----
283

query I rowsort
SELECT DISTINCT 31 * 53
----
1643

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-39
SELECT ALL COALESCE ( 28, + 63 + + ( COALESCE ( - 39, + 79 * COUNT( * ), - MAX( ALL 10 ) ) + 11 ) * 17, + 10 ) + - 14
----
14

skipif mysql # not compatible
query I rowsort label-39
SELECT ALL COALESCE ( 28, + 63 + + ( COALESCE ( - 39, + 79 * COUNT ( * ), - MAX ( ALL 10 ) ) + 11 ) * 17, + 10 ) + - 14
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-40
SELECT DISTINCT + 16 + 7 DIV 47
----
16

skipif mysql # not compatible
query I rowsort label-40
SELECT DISTINCT + 16 + 7 / 47
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-41
SELECT - 73 + + - 70 * COUNT( * )
----
-143

skipif mysql # not compatible
query I rowsort label-41
SELECT - 73 + + - 70 * COUNT ( * )
----
-143

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-44
SELECT ALL + 22 * 69 * MAX( + 4 * 34 ) AS col2
----
206448

skipif mysql # not compatible
query I rowsort label-44
SELECT ALL + 22 * 69 * MAX ( + 4 * 34 ) AS col2
----
206448

onlyif mysql # aggregate syntax: 
query I rowsort label-45
SELECT ALL - ( - COUNT( * ) ) - ( - 42 ) AS col0
----
43

skipif mysql # not compatible
query I rowsort label-45
SELECT ALL - ( - COUNT ( * ) ) - ( - 42 ) AS col0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-46
SELECT DISTINCT + SUM( 88 ) * + 22 AS col1
----
1936

skipif mysql # not compatible
query I rowsort label-46
SELECT DISTINCT + SUM ( 88 ) * + 22 AS col1
----
1936

query I rowsort
SELECT - ( - 37 ) * - 81
----
-2997

query I rowsort
SELECT - 84 + - 59
----
-143

onlyif mysql # aggregate syntax: 
query I rowsort label-49
SELECT ALL COALESCE ( - MIN( DISTINCT 53 ), + 61 + - COUNT( * ) * + 52 ) col0
----
-53

skipif mysql # not compatible
query I rowsort label-49
SELECT ALL COALESCE ( - MIN ( DISTINCT 53 ), + 61 + - COUNT ( * ) * + 52 ) col0
----
-53

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

onlyif mysql # DIV for integer division: 
query I rowsort label-51
SELECT - 42 DIV 39 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-51
SELECT - 42 / 39 AS col2
----
-1

query I rowsort
SELECT - - 96 + + 34
----
130

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-53
SELECT - CAST( - COALESCE ( 49, - AVG ( + ( - 31 ) ) * 28 + 87 * - 12 ) AS SIGNED )
----
49

skipif mysql # not compatible
query I rowsort label-53
SELECT - CAST ( - COALESCE ( 49, - AVG ( + ( - 31 ) ) * 28 + 87 * - 12 ) AS INTEGER )
----
49

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-58
SELECT ALL + COUNT( * ) * CASE - + 9 WHEN + 94 * 60 THEN 26 + 18 END
----
NULL

skipif mysql # not compatible
query I rowsort label-58
SELECT ALL + COUNT ( * ) * CASE - + 9 WHEN + 94 * 60 THEN 26 + 18 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-59
SELECT ALL - 58 * + - 67 * + COALESCE ( - COUNT( * ), + 24 ) AS col1
----
-3886

skipif mysql # not compatible
query I rowsort label-59
SELECT ALL - 58 * + - 67 * + COALESCE ( - COUNT ( * ), + 24 ) AS col1
----
-3886

query I rowsort
SELECT - 33 * + 66 col2
----
-2178

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-61
SELECT ALL COUNT( * ) DIV COUNT( + 74 ) + + 50 * + 49 col0
----
2451

skipif mysql # not compatible
query I rowsort label-61
SELECT ALL COUNT ( * ) / COUNT ( + 74 ) + + 50 * + 49 col0
----
2451

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-64
SELECT ALL + NULLIF ( - COALESCE ( - 25, + 48 * COUNT( * ) ), + SUM( 38 ) )
----
25

skipif mysql # not compatible
query I rowsort label-64
SELECT ALL + NULLIF ( - COALESCE ( - 25, + 48 * COUNT ( * ) ), + SUM ( 38 ) )
----
25

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-67
SELECT + 3 * + + COALESCE ( - - 10, + 21 + SUM( DISTINCT - 26 ) )
----
30

skipif mysql # not compatible
query I rowsort label-67
SELECT + 3 * + + COALESCE ( - - 10, + 21 + SUM ( DISTINCT - 26 ) )
----
30

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

query II rowsort
SELECT + 70 AS col1, + 38 AS col2
----
70
38

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

onlyif mysql # aggregate syntax: 
query I rowsort label-71
SELECT ALL + CASE WHEN NOT ( + COUNT( * ) ) IN ( 77 - 5 ) THEN - 38 * + COUNT( * ) END + MIN( - 78 ) * ( + 7 )
----
-584

skipif mysql # not compatible
query I rowsort label-71
SELECT ALL + CASE WHEN NOT ( + COUNT ( * ) ) IN ( 77 - 5 ) THEN - 38 * + COUNT ( * ) END + MIN ( - 78 ) * ( + 7 )
----
-584

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

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

query I rowsort
SELECT ALL - 50 + + + 78 col1
----
28

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

onlyif mysql # DIV for integer division: 
query II rowsort label-75
SELECT 50 AS col0, - 15 + - 14 DIV + 22
----
50
-15

skipif mysql # not compatible
query II rowsort label-75
SELECT 50 AS col0, - 15 + - 14 / + 22
----
50
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-76
SELECT DISTINCT COUNT( * ) * + + 62 * - 65
----
-4030

skipif mysql # not compatible
query I rowsort label-76
SELECT DISTINCT COUNT ( * ) * + + 62 * - 65
----
-4030

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-77
SELECT ALL - 23 + + CAST( - 79 AS SIGNED ) - 37
----
-139

skipif mysql # not compatible
query I rowsort label-77
SELECT ALL - 23 + + CAST ( - 79 AS INTEGER ) - 37
----
-139

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-79
SELECT COUNT( * ) DIV - NULLIF ( 20, - 52 * 72 )
----
0

skipif mysql # not compatible
query I rowsort label-79
SELECT COUNT ( * ) / - NULLIF ( 20, - 52 * 72 )
----
0

query I rowsort
SELECT + 96 * 15 AS col2
----
1440

onlyif mysql # DIV for integer division: 
query I rowsort label-81
SELECT 75 * - 31 + + + 13 + ( 12 + NULLIF ( + 45, - 55 ) ) DIV 79
----
-2312

skipif mysql # not compatible
query I rowsort label-81
SELECT 75 * - 31 + + + 13 + ( 12 + NULLIF ( + 45, - 55 ) ) / 79
----
-2312

query I rowsort
SELECT ALL 36 * + ( + + 22 )
----
792

query I rowsort
SELECT ALL - 37 - + 38 col2
----
-75

query I rowsort
SELECT + NULLIF ( + + 68, AVG ( DISTINCT 54 ) ) + 75 * 47
----
3593

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

query I rowsort
SELECT DISTINCT CASE - 25 WHEN + 44 THEN NULL WHEN 99 THEN ( 34 ) ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT 24 + 62 AS col1
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-88
SELECT ALL 93 * + + 58 + - - ( 38 ) + - CAST( + 65 AS SIGNED )
----
5367

skipif mysql # not compatible
query I rowsort label-88
SELECT ALL 93 * + + 58 + - - ( 38 ) + - CAST ( + 65 AS INTEGER )
----
5367

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-90
SELECT - COUNT( * ), - MAX( 42 ) + 96 AS col1
----
-1
54

skipif mysql # not compatible
query II rowsort label-90
SELECT - COUNT ( * ), - MAX ( 42 ) + 96 AS col1
----
-1
54

query II rowsort
SELECT - 61, + 9 AS col1
----
-61
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-92
SELECT DISTINCT MAX( - - CAST( 80 AS SIGNED ) )
----
80

skipif mysql # not compatible
query I rowsort label-92
SELECT DISTINCT MAX ( - - CAST ( 80 AS INTEGER ) )
----
80

query I rowsort
SELECT ALL NULLIF ( + 58, 17 )
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-94
SELECT + 12 * NULLIF ( + + COUNT( + COALESCE ( 55, 13, + 42 ) ), - 14 / 5 )
----
12

skipif mysql # not compatible
query I rowsort label-94
SELECT + 12 * NULLIF ( + + COUNT ( + COALESCE ( 55, 13, + 42 ) ), - 14 / 5 )
----
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-95
SELECT - 23, ( - 42 ) + - COUNT( * ) DIV ( + 38 ) AS col1
----
-23
-42

skipif mysql # not compatible
query II rowsort label-95
SELECT - 23, ( - 42 ) + - COUNT ( * ) / ( + 38 ) AS col1
----
-23
-42

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

onlyif mysql # aggregate syntax: 
query I rowsort label-97
SELECT 3 * ( + COUNT( DISTINCT 41 ) ) col2
----
3

skipif mysql # not compatible
query I rowsort label-97
SELECT 3 * ( + COUNT ( DISTINCT 41 ) ) col2
----
3

query I rowsort
SELECT DISTINCT - + 85 * + 82 * + - 83
----
578510

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-99
SELECT DISTINCT + 17 * + - 98 / CASE + 8 WHEN CASE 20 WHEN 32 THEN 29 WHEN COUNT( * ) + - 84 THEN NULL WHEN - ( 54 ) - 47 * 39 THEN NULL END THEN NULL WHEN - COUNT( * ) THEN 18 - - CAST( NULL AS SIGNED ) * 53 END
----
NULL

skipif mysql # not compatible
query I rowsort label-99
SELECT DISTINCT + 17 * + - 98 / CASE + 8 WHEN CASE 20 WHEN 32 THEN 29 WHEN COUNT ( * ) + - 84 THEN NULL WHEN - ( 54 ) - 47 * 39 THEN NULL END THEN NULL WHEN - COUNT ( * ) THEN 18 - - CAST ( NULL AS INTEGER ) * 53 END
----
NULL

query I rowsort
SELECT ALL 32 + - 80 AS col0
----
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-101
SELECT 88 DIV 44 * MIN( + 63 ) * COUNT( * ) AS col2
----
126

skipif mysql # not compatible
query I rowsort label-101
SELECT 88 / 44 * MIN ( + 63 ) * COUNT ( * ) AS col2
----
126

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

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

query I rowsort
SELECT DISTINCT 56 * + 98 * - + 51
----
-279888

query I rowsort
SELECT ALL - 81 + - 0 + 77 + - - 59 * + 92
----
5424

onlyif mysql # DIV for integer division: 
query I rowsort label-105
SELECT 13 DIV 25 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-105
SELECT 13 / 25 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-106
SELECT DISTINCT + 9 DIV + 27
----
0

skipif mysql # not compatible
query I rowsort label-106
SELECT DISTINCT + 9 / + 27
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-107
SELECT ALL - CASE - 49 WHEN + - COUNT( * ) THEN 52 ELSE NULL END + + 31 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-107
SELECT ALL - CASE - 49 WHEN + - COUNT ( * ) THEN 52 ELSE NULL END + + 31 AS col0
----
NULL

query I rowsort
SELECT 94 + 93 AS col1
----
187

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

skipif mysql # not compatible
query I rowsort label-109
SELECT ALL + ( - COUNT ( * ) ) * - + COUNT ( ALL - - 39 ) / + 38 AS col1
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-111
SELECT ALL - 55 + + + CASE COUNT( * ) WHEN + - 2 + - 87 THEN 41 / MAX( CAST( NULL AS SIGNED ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-111
SELECT ALL - 55 + + + CASE COUNT ( * ) WHEN + - 2 + - 87 THEN 41 / MAX ( CAST ( NULL AS INTEGER ) ) END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-112
SELECT - 31 DIV + 14 + + - 46 AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-112
SELECT - 31 / + 14 + + - 46 AS col2
----
-48

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

query I rowsort
SELECT 38 + + 84 AS col0
----
122

query I rowsort
SELECT ALL - 19 * + 14 AS col0
----
-266

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-116
SELECT DISTINCT - ( + 96 ) AS col1, NULLIF ( - - CAST( NULL AS SIGNED ), 50 + - 19 )
----
-96
NULL

skipif mysql # not compatible
query II rowsort label-116
SELECT DISTINCT - ( + 96 ) AS col1, NULLIF ( - - CAST ( NULL AS INTEGER ), 50 + - 19 )
----
-96
NULL

query II rowsort
SELECT - 94 * + - 74 AS col2, ( + 66 )
----
6956
66

query I rowsort
SELECT DISTINCT - + 68 col1
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-119
SELECT COALESCE ( + COUNT( * ), - 65 )
----
1

skipif mysql # not compatible
query I rowsort label-119
SELECT COALESCE ( + COUNT ( * ), - 65 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-120
SELECT ( NULLIF ( + + 2, - 70 * 33 + - COUNT( - 5 ) ) ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-120
SELECT ( NULLIF ( + + 2, - 70 * 33 + - COUNT ( - 5 ) ) ) AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-121
SELECT ALL + MAX( DISTINCT + - 81 ) * + - 16
----
1296

skipif mysql # not compatible
query I rowsort label-121
SELECT ALL + MAX ( DISTINCT + - 81 ) * + - 16
----
1296

query I rowsort
SELECT 46 + 67 AS col0
----
113

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-124
SELECT ALL + 40 * - ( + 41 ) * - SUM( DISTINCT 8 ) * 82 + - 38 * + 45
----
1074130

skipif mysql # not compatible
query I rowsort label-124
SELECT ALL + 40 * - ( + 41 ) * - SUM ( DISTINCT 8 ) * 82 + - 38 * + 45
----
1074130

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

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

query I rowsort
SELECT 26 + 65 + + 22
----
113

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

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

query I rowsort
SELECT DISTINCT - - 16 + - 37
----
-21

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-130
SELECT ALL ( + - 50 ) + 65 + + 87 * + COUNT( * )
----
102

skipif mysql # not compatible
query I rowsort label-130
SELECT ALL ( + - 50 ) + 65 + + 87 * + COUNT ( * )
----
102

query I rowsort
SELECT DISTINCT 95 + + - 15
----
80

query I rowsort
SELECT ALL - COALESCE ( + 1, - 67 + 84 ) + - 35 * 90
----
-3151

onlyif mysql # aggregate syntax: 
query I rowsort label-133
SELECT SUM( - 86 ) + - + 62 * 73 AS col0
----
-4612

skipif mysql # not compatible
query I rowsort label-133
SELECT SUM ( - 86 ) + - + 62 * 73 AS col0
----
-4612

query I rowsort
SELECT 13 + + 98
----
111

query I rowsort
SELECT ALL 9 + 28
----
37

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

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

query I rowsort
SELECT ALL + 98 * + 66 + + COALESCE ( - 26, 98 ) col0
----
6442

query I rowsort
SELECT + CASE + 86 WHEN 8 + - ( + 84 ) * - 50 THEN - 86 / 83 + + 88 WHEN 37 THEN 65 * 57 END * - 51 col1
----
NULL

query I rowsort
SELECT ALL 64 * + 64 - 77 AS col2
----
4019

query I rowsort
SELECT DISTINCT - 37 * + 28 - 62 AS col1
----
-1098

query I rowsort
SELECT ALL - 82 * - 72 - + 57 AS col2
----
5847

query I rowsort
SELECT NULLIF ( + + 62, 90 * + 41 + - + 59 ) AS col0
----
62

query I rowsort
SELECT ALL COALESCE ( + 88, - - 37, + 62 * + 48 + 53 - - 80 ) * 14 AS col1
----
1232

query I rowsort
SELECT + 25 * - - 34 AS col2
----
850

query I rowsort
SELECT CASE + 57 WHEN - 43 / + + ( - 50 ) THEN - ( 32 ) + + NULLIF ( 55, 3 ) ELSE - 37 * + 46 END AS col2
----
-1702

onlyif mysql # aggregate syntax: 
query I rowsort label-146
SELECT MAX( + 31 ) AS col1
----
31

skipif mysql # not compatible
query I rowsort label-146
SELECT MAX ( + 31 ) AS col1
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-147
SELECT - CASE - 37 WHEN - + NULLIF ( - 59, - + 85 * - 14 ) * COUNT( * ) + 29 THEN 50 WHEN - 26 THEN 91 * - CAST( 42 * 68 AS SIGNED ) ELSE NULL END * - 11 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-147
SELECT - CASE - 37 WHEN - + NULLIF ( - 59, - + 85 * - 14 ) * COUNT ( * ) + 29 THEN 50 WHEN - 26 THEN 91 * - CAST ( 42 * 68 AS INTEGER ) ELSE NULL END * - 11 col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-148
SELECT ALL + ( - - 36 ) DIV + COUNT( + 98 ) AS col2
----
36

skipif mysql # not compatible
query I rowsort label-148
SELECT ALL + ( - - 36 ) / + COUNT ( + 98 ) AS col2
----
36

query I rowsort
SELECT DISTINCT + ( ( - COALESCE ( - 23, 77 ) ) ) AS col2
----
23

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-152
SELECT + CASE - 95 WHEN CASE WHEN - 42 IN ( + CAST( + SUM( 19 ) AS SIGNED ) ) THEN 30 + - ( - 31 ) ELSE 78 * - MIN( + 44 ) END + ( - 17 ) THEN - 26 WHEN - 36 THEN - CASE AVG ( + 78 ) WHEN + 30 / + NULLIF ( + COUNT( ALL + 37 ), + SUM( DISTINCT 24 ) ) THEN NULL ELSE + CASE + 88 WHEN 42 THEN NULL WHEN + NULLIF ( + 60, 93 * - CAST( NULL AS SIGNED ) ) + 40 * + 74 THEN NULL WHEN - COUNT( * ) * COUNT( * ) THEN 20 * 61 ELSE NULL END * - 0 END * 46 - 58 ELSE NULL END * + 37 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-152
SELECT + CASE - 95 WHEN CASE WHEN - 42 IN ( + CAST ( + SUM ( 19 ) AS INTEGER ) ) THEN 30 + - ( - 31 ) ELSE 78 * - MIN ( + 44 ) END + ( - 17 ) THEN - 26 WHEN - 36 THEN - CASE AVG ( + 78 ) WHEN + 30 / + NULLIF ( + COUNT ( ALL + 37 ), + SUM ( DISTINCT 24 ) ) THEN NULL ELSE + CASE + 88 WHEN 42 THEN NULL WHEN + NULLIF ( + 60, 93 * - CAST ( NULL AS INTEGER ) ) + 40 * + 74 THEN NULL WHEN - COUNT ( * ) * COUNT ( * ) THEN 20 * 61 ELSE NULL END * - 0 END * 46 - 58 ELSE NULL END * + 37 AS col2
----
NULL

query I rowsort
SELECT 74 * + 74 - 99 * - 93 AS col2
----
14683

onlyif mysql # aggregate syntax: 
query I rowsort label-154
SELECT DISTINCT - 52 + - COUNT( * ) + COUNT( * ) + - 46 * + 66 col0
----
-3088

skipif mysql # not compatible
query I rowsort label-154
SELECT DISTINCT - 52 + - COUNT ( * ) + COUNT ( * ) + - 46 * + 66 col0
----
-3088

query I rowsort
SELECT ALL + - 43 * - + 11 * 31
----
14663

onlyif mysql # aggregate syntax: 
query I rowsort label-156
SELECT - 64 * - 30 + - MIN( ALL + 45 )
----
1875

skipif mysql # not compatible
query I rowsort label-156
SELECT - 64 * - 30 + - MIN ( ALL + 45 )
----
1875

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

query II rowsort
SELECT ALL - 53 AS col0, ( + 97 ) - + - 8
----
-53
105

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-160
SELECT + MIN( + + 21 ) AS col2
----
21

skipif mysql # not compatible
query I rowsort label-160
SELECT + MIN ( + + 21 ) AS col2
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-161
SELECT DISTINCT - + CAST( NULL AS SIGNED ) + - 98 * + COUNT( * ) - - 17 - 34
----
NULL

skipif mysql # not compatible
query I rowsort label-161
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) + - 98 * + COUNT ( * ) - - 17 - 34
----
NULL

query I rowsort
SELECT ALL - ( - 7 ) AS col1
----
7

query I rowsort
SELECT ALL + 17 + + - 90 + + 37 + + - 91
----
-127

query I rowsort
SELECT ALL 70 + - - 78
----
148

query I rowsort
SELECT ALL 83 + - 18 AS col1
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-166
SELECT - + SUM( DISTINCT 20 ) * 92 AS col1
----
-1840

skipif mysql # not compatible
query I rowsort label-166
SELECT - + SUM ( DISTINCT 20 ) * 92 AS col1
----
-1840

onlyif mysql # aggregate syntax: 
query I rowsort label-167
SELECT DISTINCT - 9 + + - COUNT( * )
----
-10

skipif mysql # not compatible
query I rowsort label-167
SELECT DISTINCT - 9 + + - COUNT ( * )
----
-10

query I rowsort
SELECT DISTINCT + + 1 * + 36 * + 48 * + 79 col0
----
136512

query II rowsort
SELECT ALL - 54 + + - 82 AS col0, COALESCE ( 20, - - 88 * 76 ) * - 66
----
-136
-1320

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

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

query I rowsort
SELECT - 74 * - + 43 AS col0
----
3182

query I rowsort
SELECT - NULLIF ( - + 49, NULLIF ( - 14, - - 76 ) )
----
49

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-175
SELECT DISTINCT - 9 * COALESCE ( - + 70, - + COUNT( * ) + 45 )
----
630

skipif mysql # not compatible
query I rowsort label-175
SELECT DISTINCT - 9 * COALESCE ( - + 70, - + COUNT ( * ) + 45 )
----
630

query I rowsort
SELECT - NULLIF ( - 87, 65 * 27 - + 65 ) AS col1
----
87

query I rowsort
SELECT ALL - 91 * + 34 AS col2
----
-3094

query I rowsort
SELECT ALL 55 - + ( - 71 )
----
126

onlyif mysql # DIV for integer division: 
query I rowsort label-179
SELECT + 61 DIV 89 col0
----
0

skipif mysql # not compatible
query I rowsort label-179
SELECT + 61 / 89 col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-180
SELECT - 23 DIV ( - 74 ) - + 50 AS col1
----
-50

skipif mysql # not compatible
query I rowsort label-180
SELECT - 23 / ( - 74 ) - + 50 AS col1
----
-50

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

skipif mysql # not compatible
query I rowsort label-181
SELECT 28 * + 34 + + - COUNT ( * ) AS col1
----
951

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-182
SELECT + CAST( - + 39 AS SIGNED ) AS col0, 51 * + COALESCE ( + 47, + COUNT( * ) ) AS col2
----
-39
2397

skipif mysql # not compatible
query II rowsort label-182
SELECT + CAST ( - + 39 AS INTEGER ) AS col0, 51 * + COALESCE ( + 47, + COUNT ( * ) ) AS col2
----
-39
2397

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-184
SELECT - 60 DIV - 88 * + 76 DIV COALESCE ( + NULLIF ( COALESCE ( 72, 15 * + 83 ), - 93 ), 73 - 65, + 45 + COALESCE ( COUNT( * ), + 2 * + 6 + - COALESCE ( 86 + - 55, - 65 ) ) ) * 99 + 16 AS col2
----
16

skipif mysql # not compatible
query I rowsort label-184
SELECT - 60 / - 88 * + 76 / COALESCE ( + NULLIF ( COALESCE ( 72, 15 * + 83 ), - 93 ), 73 - 65, + 45 + COALESCE ( COUNT ( * ), + 2 * + 6 + - COALESCE ( 86 + - 55, - 65 ) ) ) * 99 + 16 AS col2
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-185
SELECT + NULLIF ( - 5, + ( - + COUNT( * ) ) + - 0 * + 65 ) * + ( - 98 )
----
490

skipif mysql # not compatible
query I rowsort label-185
SELECT + NULLIF ( - 5, + ( - + COUNT ( * ) ) + - 0 * + 65 ) * + ( - 98 )
----
490

onlyif mysql # aggregate syntax: 
query I rowsort label-186
SELECT ALL 48 * + - MAX( DISTINCT - 55 ) AS col1
----
2640

skipif mysql # not compatible
query I rowsort label-186
SELECT ALL 48 * + - MAX ( DISTINCT - 55 ) AS col1
----
2640

onlyif mysql # aggregate syntax: 
query I rowsort label-187
SELECT - 72 * - - 54 * 46 + - COUNT( * ) - - 46
----
-178803

skipif mysql # not compatible
query I rowsort label-187
SELECT - 72 * - - 54 * 46 + - COUNT ( * ) - - 46
----
-178803

query II rowsort
SELECT ALL + 73 col2, 73 AS col1
----
73
73

onlyif mysql # aggregate syntax: 
query I rowsort label-189
SELECT + MAX( - - 75 ) * - 3 + + + 31 + - - MIN( DISTINCT - 10 ) AS col2
----
-204

skipif mysql # not compatible
query I rowsort label-189
SELECT + MAX ( - - 75 ) * - 3 + + + 31 + - - MIN ( DISTINCT - 10 ) AS col2
----
-204

query I rowsort
SELECT 65 * - + 85 + + CASE - - 83 WHEN + + ( - 52 ) * + 49 THEN 60 WHEN ( 30 ) THEN NULL END * 98
----
NULL

query I rowsort
SELECT DISTINCT + 6 * + 3 + 75
----
93

query II rowsort
SELECT ALL + 50 AS col0, 56
----
50
56

onlyif mysql # DIV for integer division: 
query II rowsort label-193
SELECT 9 AS col2, - 62 DIV + 22 col1
----
9
-2

skipif mysql # not compatible
query II rowsort label-193
SELECT 9 AS col2, - 62 / + 22 col1
----
9
-2

query II rowsort
SELECT 78 * + 85 + - 28 * - 36 AS col1, + 50 * + + 33 * 16 AS col0
----
7638
26400

query I rowsort
SELECT ALL 82 * + 30 * 50
----
123000

query II rowsort
SELECT + + 55 AS col0, 0
----
55
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-197
SELECT - ( + 29 ) + - - NULLIF ( + 32, + + CASE - 9 WHEN - SUM( DISTINCT 86 ) * - 95 THEN NULL WHEN 44 THEN - 3 ELSE CAST( NULL AS SIGNED ) + 58 END ) + COALESCE ( + 52 - + 78, 73 DIV 65, + ( COUNT( * ) ) * + ( - 1 ) ) AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-197
SELECT - ( + 29 ) + - - NULLIF ( + 32, + + CASE - 9 WHEN - SUM ( DISTINCT 86 ) * - 95 THEN NULL WHEN 44 THEN - 3 ELSE CAST ( NULL AS INTEGER ) + 58 END ) + COALESCE ( + 52 - + 78, 73 / 65, + ( COUNT ( * ) ) * + ( - 1 ) ) AS col0
----
-23

query II rowsort
SELECT - 91, 53 AS col2
----
-91
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-199
SELECT ALL - 0 * + 47 + + CASE + - COUNT( * ) WHEN + 82 THEN NULL ELSE + NULLIF ( + SUM( DISTINCT + 45 ), CAST( NULL AS SIGNED ) + - MAX( - 18 ) / + ( COALESCE ( 63, 8 + + 33, 88 + - ( 75 ), - 82 * - 28 + 69 ) ) ) * + 55 - - 93 END + - 73 + + ( 56 + + 20 ) * 6 AS col1
----
2951

skipif mysql # not compatible
query I rowsort label-199
SELECT ALL - 0 * + 47 + + CASE + - COUNT ( * ) WHEN + 82 THEN NULL ELSE + NULLIF ( + SUM ( DISTINCT + 45 ), CAST ( NULL AS INTEGER ) + - MAX ( - 18 ) / + ( COALESCE ( 63, 8 + + 33, 88 + - ( 75 ), - 82 * - 28 + 69 ) ) ) * + 55 - - 93 END + - 73 + + ( 56 + + 20 ) * 6 AS col1
----
2951

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-200
SELECT DISTINCT NULLIF ( + 97, + + 61 * CAST( NULL AS SIGNED ) ) * - + 83 + COUNT( * ) + - 27 AS col1
----
-8077

skipif mysql # not compatible
query I rowsort label-200
SELECT DISTINCT NULLIF ( + 97, + + 61 * CAST ( NULL AS INTEGER ) ) * - + 83 + COUNT ( * ) + - 27 AS col1
----
-8077

onlyif mysql # aggregate syntax: 
query I rowsort label-201
SELECT + - 68 * + MIN( + ( + + ( ( 58 ) ) ) )
----
-3944

skipif mysql # not compatible
query I rowsort label-201
SELECT + - 68 * + MIN ( + ( + + ( ( 58 ) ) ) )
----
-3944

onlyif mysql # DIV for integer division: 
query I rowsort label-202
SELECT ALL + 71 * COALESCE ( - - 12, - 12 DIV + - 20 ) + - 8
----
844

skipif mysql # not compatible
query I rowsort label-202
SELECT ALL + 71 * COALESCE ( - - 12, - 12 / + - 20 ) + - 8
----
844

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-203
SELECT + 64 AS col2, - 40 * + COALESCE ( - CAST( NULL AS SIGNED ), COUNT( * ), + - ( + 78 ) ) col1
----
64
-40

skipif mysql # not compatible
query II rowsort label-203
SELECT + 64 AS col2, - 40 * + COALESCE ( - CAST ( NULL AS INTEGER ), COUNT ( * ), + - ( + 78 ) ) col1
----
64
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-204
SELECT DISTINCT 78 * 12 * + 25 + + COUNT( * )
----
23401

skipif mysql # not compatible
query I rowsort label-204
SELECT DISTINCT 78 * 12 * + 25 + + COUNT ( * )
----
23401

onlyif mysql # aggregate syntax: 
query I rowsort label-205
SELECT ALL - + 4 * - 7 * + 40 / - NULLIF ( - 37, ( 86 ) ) * - MAX( DISTINCT - CASE 94 WHEN + 10 THEN + 52 END ) + 87 * 43
----
NULL

skipif mysql # not compatible
query I rowsort label-205
SELECT ALL - + 4 * - 7 * + 40 / - NULLIF ( - 37, ( 86 ) ) * - MAX ( DISTINCT - CASE 94 WHEN + 10 THEN + 52 END ) + 87 * 43
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-206
SELECT + + ( COUNT( * ) ) * - + 83 DIV - NULLIF ( + SUM( + 5 ), - CASE 22 WHEN + 91 THEN - 9 * - 38 END + 16 * 17 ) + 52 AS col0
----
68

skipif mysql # not compatible
query I rowsort label-206
SELECT + + ( COUNT ( * ) ) * - + 83 / - NULLIF ( + SUM ( + 5 ), - CASE 22 WHEN + 91 THEN - 9 * - 38 END + 16 * 17 ) + 52 AS col0
----
68

query I rowsort
SELECT + 72 - - - ( - 96 )
----
168

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-208
SELECT - COUNT( * ) * COALESCE ( + 53, + - COUNT( ALL 26 ), + + 99, + MAX( ALL - 39 ) ) DIV 92
----
0

skipif mysql # not compatible
query I rowsort label-208
SELECT - COUNT ( * ) * COALESCE ( + 53, + - COUNT ( ALL 26 ), + + 99, + MAX ( ALL - 39 ) ) / 92
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-209
SELECT ALL - + 11 * + COUNT( * ) * + - 22
----
242

skipif mysql # not compatible
query I rowsort label-209
SELECT ALL - + 11 * + COUNT ( * ) * + - 22
----
242

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

skipif mysql # not compatible
query I rowsort label-210
SELECT - + COUNT ( DISTINCT 72 ) + + ( - + 31 ) + COUNT ( * ) AS col1
----
-31

query I rowsort
SELECT DISTINCT 86 * 30 + - ( - 86 ) AS col0
----
2666

query I rowsort
SELECT + COALESCE ( + 9, 58 ) AS col0
----
9

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

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

query I rowsort
SELECT - - NULLIF ( 96, - 97 / + 3 + - - 72 )
----
96

query I rowsort
SELECT 97 - - 46 * + 71 * - NULLIF ( - 50, - + 86 )
----
163397

query I rowsort
SELECT ALL 1 col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-217
SELECT 3 + 17 * 6 - + + 78 * - - 69 * MAX( + 8 ) AS col0
----
-42951

skipif mysql # not compatible
query I rowsort label-217
SELECT 3 + 17 * 6 - + + 78 * - - 69 * MAX ( + 8 ) AS col0
----
-42951

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

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

query I rowsort
SELECT DISTINCT - 5 - 55 * + 76
----
-4185

onlyif mysql # aggregate syntax: 
query I rowsort label-220
SELECT 12 * - COALESCE ( - ( - 31 ), 71 + + 20, - COUNT( * ) )
----
-372

skipif mysql # not compatible
query I rowsort label-220
SELECT 12 * - COALESCE ( - ( - 31 ), 71 + + 20, - COUNT ( * ) )
----
-372

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-221
SELECT 48 + 29 / + CAST( NULL AS SIGNED ) - - 64 * - - 9
----
NULL

skipif mysql # not compatible
query I rowsort label-221
SELECT 48 + 29 / + CAST ( NULL AS INTEGER ) - - 64 * - - 9
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-222
SELECT ALL - CAST( 2 AS SIGNED ) * + COUNT( + + 62 ) + + 81
----
79

skipif mysql # not compatible
query I rowsort label-222
SELECT ALL - CAST ( 2 AS INTEGER ) * + COUNT ( + + 62 ) + + 81
----
79

query I rowsort
SELECT DISTINCT - 51 * 20 AS col2
----
-1020

query II rowsort
SELECT DISTINCT - ( + 50 ), - 63 AS col0
----
-50
-63

query I rowsort
SELECT DISTINCT 83 + - 38 col2
----
45

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-228
SELECT + 36 DIV - 50 * 57 DIV 37 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-228
SELECT + 36 / - 50 * 57 / 37 AS col1
----
0

query I rowsort
SELECT 24 * - ( + 6 ) * - 60
----
8640

query I rowsort
SELECT + COALESCE ( + 56, - ( - 76 ) * 70 + - ( + 58 ), 43 ) col0
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-231
SELECT + NULLIF ( + 55, - 29 / + - 37 ) * CAST( + 13 AS SIGNED ) * - ( 21 ) + + 5 + - ( MAX( 76 ) )
----
-15086

skipif mysql # not compatible
query I rowsort label-231
SELECT + NULLIF ( + 55, - 29 / + - 37 ) * CAST ( + 13 AS INTEGER ) * - ( 21 ) + + 5 + - ( MAX ( 76 ) )
----
-15086

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-232
SELECT ALL - 83 + + 55 / 71 * - 33 / - MIN( CASE - 52 WHEN 46 THEN NULL ELSE 40 * - CASE - CAST( + 80 AS DECIMAL ) WHEN + 63 THEN NULL WHEN 31 THEN 43 * + 18 - 53 END + 66 END ) * + 97 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-232
SELECT ALL - 83 + + 55 / 71 * - 33 / - MIN ( CASE - 52 WHEN 46 THEN NULL ELSE 40 * - CASE - CAST ( + 80 AS REAL ) WHEN + 63 THEN NULL WHEN 31 THEN 43 * + 18 - 53 END + 66 END ) * + 97 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-233
SELECT DISTINCT + COUNT( * ) + 56 AS col1, 54 DIV + 92 + - 39 AS col2
----
57
-39

skipif mysql # not compatible
query II rowsort label-233
SELECT DISTINCT + COUNT ( * ) + 56 AS col1, 54 / + 92 + - 39 AS col2
----
57
-39

query I rowsort
SELECT + + 78 AS col0
----
78

query I rowsort
SELECT DISTINCT + 44 + + - 87 AS col0
----
-43

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

query I rowsort
SELECT - 4 * 37 + + + 68 * 86 * 74
----
432604

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-238
SELECT ALL + 0 * - - 3 AS col0, - ( - ( - + 99 ) ) / - 17 * + CASE - 9 WHEN COUNT( * ) THEN NULL WHEN 94 THEN ( ( COUNT( * ) ) ) + CAST( NULL AS SIGNED ) * + 71 END AS col0
----
0
NULL

skipif mysql # not compatible
query II rowsort label-238
SELECT ALL + 0 * - - 3 AS col0, - ( - ( - + 99 ) ) / - 17 * + CASE - 9 WHEN COUNT ( * ) THEN NULL WHEN 94 THEN ( ( COUNT ( * ) ) ) + CAST ( NULL AS INTEGER ) * + 71 END AS col0
----
0
NULL

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

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

query I rowsort
SELECT - 26 - - 32 + - 59 + + 1 * - 84 - 44
----
-181

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-241
SELECT DISTINCT COUNT( * ) * - - 38 + + - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-241
SELECT DISTINCT COUNT ( * ) * - - 38 + + - CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-242
SELECT + 92 * - + 69 + - - 74 + + AVG ( DISTINCT - 43 ) - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-242
SELECT + 92 * - + 69 + - - 74 + + AVG ( DISTINCT - 43 ) - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-243
SELECT ALL + NULLIF ( 27, + 41 / + + 25 * - CAST( NULL AS SIGNED ) * - 96 ) AS col2
----
27

skipif mysql # not compatible
query I rowsort label-243
SELECT ALL + NULLIF ( 27, + 41 / + + 25 * - CAST ( NULL AS INTEGER ) * - 96 ) AS col2
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-244
SELECT + CASE - 25 WHEN - CASE 1 WHEN + 75 + + 71 * 81 THEN 79 * + 6 END THEN + 56 * 86 WHEN COUNT( * ) THEN - 88 - - NULLIF ( COUNT( 13 ), - 71 ) END * - 63 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-244
SELECT + CASE - 25 WHEN - CASE 1 WHEN + 75 + + 71 * 81 THEN 79 * + 6 END THEN + 56 * 86 WHEN COUNT ( * ) THEN - 88 - - NULLIF ( COUNT ( 13 ), - 71 ) END * - 63 AS col1
----
NULL

query I rowsort
SELECT CASE + + 33 WHEN + ( + 62 ) * + AVG ( + 81 ) THEN NULL WHEN 38 THEN 81 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT - + COALESCE ( + 9, + ( - ( 52 ) ), 20 )
----
-9

query II rowsort
SELECT ALL 46, - 67 * 75 AS col2
----
46
-5025

query I rowsort
SELECT DISTINCT - ( + 67 ) - + 93 AS col2
----
-160

query I rowsort
SELECT ALL + 37 * 51
----
1887

query I rowsort
SELECT 22 * 65 AS col0
----
1430

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-251
SELECT ALL COUNT( * ) DIV + - NULLIF ( 65, + + COUNT( * ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-251
SELECT ALL COUNT ( * ) / + - NULLIF ( 65, + + COUNT ( * ) ) AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-252
SELECT MAX( + - 9 ) + - + CAST( - - 72 AS SIGNED ) AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-252
SELECT MAX ( + - 9 ) + - + CAST ( - - 72 AS INTEGER ) AS col1
----
-81

query II rowsort
SELECT 10 AS col2, 50 * 58
----
10
2900

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-255
SELECT DISTINCT + NULLIF ( + 34, + 98 * - + 3 + + 1 - + 32 - + COUNT( * ) ) * + 73
----
2482

skipif mysql # not compatible
query I rowsort label-255
SELECT DISTINCT + NULLIF ( + 34, + 98 * - + 3 + + 1 - + 32 - + COUNT ( * ) ) * + 73
----
2482

query I rowsort
SELECT ALL - 92 * - 75 AS col1
----
6900

query II rowsort
SELECT 91 AS col0, - 31 col2
----
91
-31

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

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

query I rowsort
SELECT 22 * - - 65 col2
----
1430

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

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

query I rowsort
SELECT 28 + + 76 AS col1
----
104

query I rowsort
SELECT ALL 84 * - - 6 AS col1
----
504

onlyif mysql # DIV for integer division: 
query I rowsort label-263
SELECT 38 + - + 24 * 16 DIV 2
----
-154

skipif mysql # not compatible
query I rowsort label-263
SELECT 38 + - + 24 * 16 / 2
----
-154

query I rowsort
SELECT 47 * - 20 AS col0
----
-940

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

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

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

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

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

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

query I rowsort
SELECT - 64 * 92 + - 48 AS col2
----
-5936

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-269
SELECT COUNT( * ) * + 77 + + 37 DIV - COUNT( * ) col2
----
40

skipif mysql # not compatible
query I rowsort label-269
SELECT COUNT ( * ) * + 77 + + 37 / - COUNT ( * ) col2
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-270
SELECT ALL 95 * + + COUNT( * ) + + - 48 AS col0
----
47

skipif mysql # not compatible
query I rowsort label-270
SELECT ALL 95 * + + COUNT ( * ) + + - 48 AS col0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-271
SELECT DISTINCT - - SUM( ALL 87 )
----
87

skipif mysql # not compatible
query I rowsort label-271
SELECT DISTINCT - - SUM ( ALL 87 )
----
87

query I rowsort
SELECT - 61 + 67
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-273
SELECT ALL 32 * + - COUNT( * ) + + 31 + - 13 * + - COUNT( * ) AS col2
----
12

skipif mysql # not compatible
query I rowsort label-273
SELECT ALL 32 * + - COUNT ( * ) + + 31 + - 13 * + - COUNT ( * ) AS col2
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-274
SELECT DISTINCT + - MAX( DISTINCT - - 4 ) * + COUNT( ALL - 42 ) - CASE - 73 WHEN CASE 84 WHEN - 91 THEN NULL WHEN + 35 + + 14 THEN CASE 96 WHEN - 26 THEN - 1 / ( SUM( DISTINCT 77 ) ) WHEN - 11 THEN NULL END / - 4 + + 90 * 56 WHEN - COUNT( * ) THEN NULL ELSE 86 + - 12 * 5 END THEN NULL ELSE + 61 END - MIN( 94 ) * + 98 AS col0
----
-9277

skipif mysql # not compatible
query I rowsort label-274
SELECT DISTINCT + - MAX ( DISTINCT - - 4 ) * + COUNT ( ALL - 42 ) - CASE - 73 WHEN CASE 84 WHEN - 91 THEN NULL WHEN + 35 + + 14 THEN CASE 96 WHEN - 26 THEN - 1 / ( SUM ( DISTINCT 77 ) ) WHEN - 11 THEN NULL END / - 4 + + 90 * 56 WHEN - COUNT ( * ) THEN NULL ELSE 86 + - 12 * 5 END THEN NULL ELSE + 61 END - MIN ( 94 ) * + 98 AS col0
----
-9277

query I rowsort
SELECT 39 * - - 40
----
1560

onlyif mysql # aggregate syntax: 
query I rowsort label-276
SELECT ALL - + MAX( COALESCE ( 23, + NULLIF ( - - 95, + + 64 ), + 66 ) ) AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-276
SELECT ALL - + MAX ( COALESCE ( 23, + NULLIF ( - - 95, + + 64 ), + 66 ) ) AS col1
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-277
SELECT COUNT( * ) * + 67 * - SUM( + 58 )
----
-3886

skipif mysql # not compatible
query I rowsort label-277
SELECT COUNT ( * ) * + 67 * - SUM ( + 58 )
----
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-278
SELECT + ( MIN( + + 85 ) ) + + 9 + + + 67 + + 66 * - COUNT( * ) * ( + 21 )
----
-1225

skipif mysql # not compatible
query I rowsort label-278
SELECT + ( MIN ( + + 85 ) ) + + 9 + + + 67 + + 66 * - COUNT ( * ) * ( + 21 )
----
-1225

query II rowsort
SELECT + - 87 col2, 66 * + + 99 * - 66 * - COALESCE ( - 54, - + 80 + - COALESCE ( - ( - 52 ), - 58 ), + 97, + 16 + 45 )
----
-87
-23287176

query I rowsort
SELECT + - 85 + - 86
----
-171

query I rowsort
SELECT ALL - ( - 97 ) - ( + - 32 ) + 45
----
174

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

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

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

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

query I rowsort
SELECT ALL - 44 - 22 AS col0
----
-66

query I rowsort
SELECT ALL 43 * 33 * + 87 + - - 96 + - 64 AS col1
----
123485

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-286
SELECT + - 33 * - ( - 75 ) DIV - COUNT( * )
----
2475

skipif mysql # not compatible
query I rowsort label-286
SELECT + - 33 * - ( - 75 ) / - COUNT ( * )
----
2475

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-288
SELECT ALL CAST( NULL AS SIGNED ) - + 15 * - - 17 / + 31 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-288
SELECT ALL CAST ( NULL AS INTEGER ) - + 15 * - - 17 / + 31 AS col2
----
NULL

query I rowsort
SELECT + 9 * + 82 * 74
----
54612

onlyif mysql # aggregate syntax: 
query I rowsort label-290
SELECT ALL COUNT( * ) * - SUM( ALL + 50 )
----
-50

skipif mysql # not compatible
query I rowsort label-290
SELECT ALL COUNT ( * ) * - SUM ( ALL + 50 )
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-291
SELECT + 91 + 37 + + + CASE + 87 WHEN + + 46 THEN + 37 - - - 31 * COALESCE ( - NULLIF ( 38, AVG ( - ( ( 95 ) ) ) * 15 - + 34 * 85 ), ( - CAST( NULL AS SIGNED ) ) ) WHEN 57 / - MAX( ALL 81 ) - 29 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-291
SELECT + 91 + 37 + + + CASE + 87 WHEN + + 46 THEN + 37 - - - 31 * COALESCE ( - NULLIF ( 38, AVG ( - ( ( 95 ) ) ) * 15 - + 34 * 85 ), ( - CAST ( NULL AS INTEGER ) ) ) WHEN 57 / - MAX ( ALL 81 ) - 29 THEN NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-292
SELECT + 2 + 81, ( CAST( NULL AS DECIMAL ) ) + + MAX( - 90 ) + - 6 AS col0
----
83
NULL

skipif mysql # not compatible
query II rowsort label-292
SELECT + 2 + 81, ( CAST ( NULL AS REAL ) ) + + MAX ( - 90 ) + - 6 AS col0
----
83
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-294
SELECT ALL ( - ( + 34 ) ) + + 88 * SUM( COALESCE ( - ( + 43 ), - ( - 61 ), + 30 ) )
----
-3818

skipif mysql # not compatible
query I rowsort label-294
SELECT ALL ( - ( + 34 ) ) + + 88 * SUM ( COALESCE ( - ( + 43 ), - ( - 61 ), + 30 ) )
----
-3818

query II rowsort
SELECT + 79 + ( - 63 ) * NULLIF ( 31, + - 27 ) + + 75 AS col2, COALESCE ( + + 16, + 77 * 55 ) + 0 AS col1
----
-1799
16

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

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

query I rowsort
SELECT ALL + 6 * + 21 * 83 AS col2
----
10458

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-301
SELECT - NULLIF ( + - COUNT( * ), COALESCE ( COUNT( - 92 ), - + 91, + 86, 6 - + 2 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-301
SELECT - NULLIF ( + - COUNT ( * ), COALESCE ( COUNT ( - 92 ), - + 91, + 86, 6 - + 2 ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-302
SELECT - 25 + + 74 + SUM( DISTINCT 49 ) * 63 * - 95 AS col2
----
-293216

skipif mysql # not compatible
query I rowsort label-302
SELECT - 25 + + 74 + SUM ( DISTINCT 49 ) * 63 * - 95 AS col2
----
-293216

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-303
SELECT + SUM( ALL 48 ) DIV - 60 * COUNT( ALL - - 80 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-303
SELECT + SUM ( ALL 48 ) / - 60 * COUNT ( ALL - - 80 ) AS col0
----
0

query I rowsort
SELECT - ( + - 49 ) + - + 5 AS col2
----
44

onlyif mysql # aggregate syntax: 
query II rowsort label-305
SELECT DISTINCT - 94 * + 36 AS col0, - COUNT( * ) col0
----
-3384
-1

skipif mysql # not compatible
query II rowsort label-305
SELECT DISTINCT - 94 * + 36 AS col0, - COUNT ( * ) col0
----
-3384
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-306
SELECT ALL 97 DIV 30 + COUNT( * ) * + - NULLIF ( - NULLIF ( - NULLIF ( + 36, - COUNT( * ) DIV + 10 ), ( + 86 ) + + 92 ), - COUNT( * ) * 15 ) AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-306
SELECT ALL 97 / 30 + COUNT ( * ) * + - NULLIF ( - NULLIF ( - NULLIF ( + 36, - COUNT ( * ) / + 10 ), ( + 86 ) + + 92 ), - COUNT ( * ) * 15 ) AS col2
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-307
SELECT ALL CASE + 39 WHEN - CAST( NULL AS SIGNED ) THEN - 38 END * 92 + + 84 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-307
SELECT ALL CASE + 39 WHEN - CAST ( NULL AS INTEGER ) THEN - 38 END * 92 + + 84 AS col1
----
NULL

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

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

query I rowsort
SELECT DISTINCT 37 * 55 * + + 30 AS col1
----
61050

query I rowsort
SELECT ALL + + 42 AS col2
----
42

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

onlyif mysql # aggregate syntax: 
query I rowsort label-312
SELECT - 95 * - + 78 * + COUNT( ALL 35 ) + + 94
----
7504

skipif mysql # not compatible
query I rowsort label-312
SELECT - 95 * - + 78 * + COUNT ( ALL 35 ) + + 94
----
7504

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

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

query I rowsort
SELECT + 34 * + - 45
----
-1530

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-315
SELECT ALL 4 * + MAX( - 11 ) + - + NULLIF ( - + 95, - 95 / - + 40 + + COALESCE ( - CAST( NULL AS SIGNED ), 65 ) + CAST( NULL AS SIGNED ) ) * + 0 - SUM( - 5 ) * - COALESCE ( + MIN( 60 ), - 81, COUNT( * ) + COUNT( * ) * 17 ) AS col0
----
-344

skipif mysql # not compatible
query I rowsort label-315
SELECT ALL 4 * + MAX ( - 11 ) + - + NULLIF ( - + 95, - 95 / - + 40 + + COALESCE ( - CAST ( NULL AS INTEGER ), 65 ) + CAST ( NULL AS INTEGER ) ) * + 0 - SUM ( - 5 ) * - COALESCE ( + MIN ( 60 ), - 81, COUNT ( * ) + COUNT ( * ) * 17 ) AS col0
----
-344

onlyif mysql # aggregate syntax: 
query I rowsort label-316
SELECT DISTINCT + CASE 49 WHEN - + 18 THEN NULLIF ( + + 94, - 92 * - SUM( ALL ( - 89 ) ) / - 18 - 80 + 7 ) WHEN 5 THEN 48 END / 98
----
NULL

skipif mysql # not compatible
query I rowsort label-316
SELECT DISTINCT + CASE 49 WHEN - + 18 THEN NULLIF ( + + 94, - 92 * - SUM ( ALL ( - 89 ) ) / - 18 - 80 + 7 ) WHEN 5 THEN 48 END / 98
----
NULL

query I rowsort
SELECT DISTINCT + 90 * + + 2
----
180

query I rowsort
SELECT - + 79 - + 16 + + 6
----
-89

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

query I rowsort
SELECT ALL + ( + ( - 87 ) ) * - 39 * + 16 AS col1
----
54288

query I rowsort
SELECT - - 88 * + 31 * + + 1 AS col2
----
2728

query I rowsort
SELECT + 88 * - 83 + 78 AS col2
----
-7226

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

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

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

skipif mysql # not compatible
query I rowsort label-324
SELECT - 9 / 93
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-326
SELECT - 7 * 21 - - 30 - - COUNT( * )
----
-116

skipif mysql # not compatible
query I rowsort label-326
SELECT - 7 * 21 - - 30 - - COUNT ( * )
----
-116

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

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

query I rowsort
SELECT + 91 * 84 AS col0
----
7644

onlyif mysql # aggregate syntax: 
query II rowsort label-329
SELECT ALL + 35 * + 36 + + + 13 * COUNT( * ) * + 27 - - - 65 AS col1, + NULLIF ( + 16, - 36 )
----
1546
16

skipif mysql # not compatible
query II rowsort label-329
SELECT ALL + 35 * + 36 + + + 13 * COUNT ( * ) * + 27 - - - 65 AS col1, + NULLIF ( + 16, - 36 )
----
1546
16

query I rowsort
SELECT - 38 + + - 89 AS col0
----
-127

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-332
SELECT - NULLIF ( 46, 64 + CASE - + 81 WHEN - COUNT( * ) + + 98 THEN - MAX( - + 18 ) ELSE + 27 END ) AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-332
SELECT - NULLIF ( 46, 64 + CASE - + 81 WHEN - COUNT ( * ) + + 98 THEN - MAX ( - + 18 ) ELSE + 27 END ) AS col2
----
-46

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

skipif mysql # not compatible
query I rowsort label-333
SELECT ALL - COUNT ( * ) + + + 23 AS col0
----
22

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

skipif mysql # not compatible
query I rowsort label-334
SELECT DISTINCT + CAST ( NULL AS REAL ) + - 6
----
NULL

query II rowsort
SELECT 67 AS col2, 21 AS col0
----
67
21

query I rowsort
SELECT - 19 + + 8 - 4
----
-15

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

skipif mysql # not compatible
query I rowsort label-337
SELECT DISTINCT CAST ( NULL AS INTEGER ) + 65 AS col2
----
NULL

query II rowsort
SELECT ALL 29, + 2 AS col2
----
29
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-339
SELECT - CAST( MIN( DISTINCT 62 ) AS SIGNED ) AS col2
----
-62

skipif mysql # not compatible
query I rowsort label-339
SELECT - CAST ( MIN ( DISTINCT 62 ) AS INTEGER ) AS col2
----
-62

query I rowsort
SELECT ALL 83 + - 56
----
27

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

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

query I rowsort
SELECT + 65 + 19
----
84

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

query I rowsort
SELECT DISTINCT - 46 - + 64 AS col1
----
-110

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-345
SELECT + 79 - + 11 - + + 99 + + 60 * - + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-345
SELECT + 79 - + 11 - + + 99 + + 60 * - + CAST ( NULL AS INTEGER ) col2
----
NULL

query I rowsort
SELECT ALL ( + 19 ) * - 89 * + 33 * - - 32 AS col0
----
-1785696

query I rowsort
SELECT 9 * 77 AS col2
----
693

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-348
SELECT - + COUNT( * ) * - + CASE WHEN NOT 68 IS NULL THEN - - 51 + - 84 * 9 + + + 86 ELSE + NULLIF ( + - MAX( DISTINCT - 21 ), COUNT( * ) * 59 ) DIV - 87 END + + 74 DIV + 74
----
-618

skipif mysql # not compatible
query I rowsort label-348
SELECT - + COUNT ( * ) * - + CASE WHEN NOT 68 IS NULL THEN - - 51 + - 84 * 9 + + + 86 ELSE + NULLIF ( + - MAX ( DISTINCT - 21 ), COUNT ( * ) * 59 ) / - 87 END + + 74 / + 74
----
-618

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

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

query I rowsort
SELECT 71 * - 11 - - - 27
----
-808

query I rowsort
SELECT ALL - + 15 AS col1
----
-15

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

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

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

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

query I rowsort
SELECT 78 * + - 23 AS col0
----
-1794

query I rowsort
SELECT DISTINCT 38 * - 41 AS col0
----
-1558

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-356
SELECT ALL - 81, 92 / CAST( NULL AS SIGNED ) AS col0
----
-81
NULL

skipif mysql # not compatible
query II rowsort label-356
SELECT ALL - 81, 92 / CAST ( NULL AS INTEGER ) AS col0
----
-81
NULL

query I rowsort
SELECT DISTINCT - + NULLIF ( 24, - AVG ( DISTINCT 27 ) )
----
-24

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

query I rowsort
SELECT 58 + + + 15 AS col2
----
73

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

onlyif mysql # aggregate syntax: 
query III rowsort label-361
SELECT 53 AS col0, + COUNT( * ) - + + 83, 15 AS col2
----
53
-82
15

skipif mysql # not compatible
query III rowsort label-361
SELECT 53 AS col0, + COUNT ( * ) - + + 83, 15 AS col2
----
53
-82
15

query I rowsort
SELECT 19 * + 58 * 57 AS col2
----
62814

onlyif mysql # aggregate syntax: 
query I rowsort label-363
SELECT 41 + - - MIN( ALL - 53 ) * 93 * + + 71
----
-349918

skipif mysql # not compatible
query I rowsort label-363
SELECT 41 + - - MIN ( ALL - 53 ) * 93 * + + 71
----
-349918

onlyif mysql # aggregate syntax: 
query I rowsort label-364
SELECT DISTINCT - MAX( ALL + + 71 )
----
-71

skipif mysql # not compatible
query I rowsort label-364
SELECT DISTINCT - MAX ( ALL + + 71 )
----
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-365
SELECT ALL + CAST( NULL AS SIGNED ) + 4 + + 50 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-365
SELECT ALL + CAST ( NULL AS INTEGER ) + 4 + + 50 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-366
SELECT - 2 * CASE + ( 54 ) WHEN - 24 + CASE COUNT( * ) WHEN + ( - 82 ) THEN COUNT( * ) + 71 * + 68 ELSE - ( 36 ) END + 28 THEN + 74 + 56 END * - ( 85 ) + 28 * - 45 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-366
SELECT - 2 * CASE + ( 54 ) WHEN - 24 + CASE COUNT ( * ) WHEN + ( - 82 ) THEN COUNT ( * ) + 71 * + 68 ELSE - ( 36 ) END + 28 THEN + 74 + 56 END * - ( 85 ) + 28 * - 45 col1
----
NULL

query I rowsort
SELECT 31 * - 19
----
-589

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-368
SELECT ALL - 6 * - 75 DIV + COUNT( * )
----
450

skipif mysql # not compatible
query I rowsort label-368
SELECT ALL - 6 * - 75 / + COUNT ( * )
----
450

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-369
SELECT 38 + + COUNT( * ) - + + 10 * 74 + - 71 + - 95 + 11 DIV + - COUNT( * ) - 56 * 65
----
-4518

skipif mysql # not compatible
query I rowsort label-369
SELECT 38 + + COUNT ( * ) - + + 10 * 74 + - 71 + - 95 + 11 / + - COUNT ( * ) - 56 * 65
----
-4518

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-370
SELECT ALL - NULLIF ( - 85, - - COUNT( * ) - - + 93 ) + + CAST( NULL AS SIGNED ) * 98 * - 3 + - 18 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-370
SELECT ALL - NULLIF ( - 85, - - COUNT ( * ) - - + 93 ) + + CAST ( NULL AS INTEGER ) * 98 * - 3 + - 18 col0
----
NULL

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

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

query I rowsort
SELECT ALL + 33 + - 32
----
1

query I rowsort
SELECT 21 - 46 AS col2
----
-25

query II rowsort
SELECT - 17 AS col0, COALESCE ( - + 35, - 29 ) AS col2
----
-17
-35

query I rowsort
SELECT 63 + + 93 col0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-376
SELECT DISTINCT - SUM( ALL - - 1 ) + - 97
----
-98

skipif mysql # not compatible
query I rowsort label-376
SELECT DISTINCT - SUM ( ALL - - 1 ) + - 97
----
-98

query II rowsort
SELECT ALL 72, ( - + 37 ) AS col2
----
72
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-378
SELECT 76 DIV - - COALESCE ( + ( + + ( 56 ) ), + 76, - CASE + 60 WHEN + - 82 THEN NULL ELSE - SUM( + 79 ) + + 69 END + - 29 )
----
1

skipif mysql # not compatible
query I rowsort label-378
SELECT 76 / - - COALESCE ( + ( + + ( 56 ) ), + 76, - CASE + 60 WHEN + - 82 THEN NULL ELSE - SUM ( + 79 ) + + 69 END + - 29 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-379
SELECT 47 * - COUNT( * ) * + 4
----
-188

skipif mysql # not compatible
query I rowsort label-379
SELECT 47 * - COUNT ( * ) * + 4
----
-188

query I rowsort
SELECT 53 + - - 59
----
112

query II rowsort
SELECT 44, 66 col2
----
44
66

query II rowsort
SELECT ALL 40, 24 AS col0
----
40
24

query I rowsort
SELECT ALL 80 * 87
----
6960

query I rowsort
SELECT DISTINCT + 17 * 51
----
867

onlyif mysql # aggregate syntax: 
query I rowsort label-385
SELECT + MIN( - 47 ) + + + 21
----
-26

skipif mysql # not compatible
query I rowsort label-385
SELECT + MIN ( - 47 ) + + + 21
----
-26

query I rowsort
SELECT ALL + 42 - - 42 + 79
----
163

query I rowsort
SELECT 24 * 34 * + 80 * - 5 AS col0
----
-326400

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

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

query I rowsort
SELECT ALL - - 58 * - + 2 AS col2
----
-116

query I rowsort
SELECT 93 * - 33
----
-3069

query I rowsort
SELECT - 70 * + 64
----
-4480

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

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

query I rowsort
SELECT + - 85 AS col1
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-395
SELECT COUNT( * ) * 83 + + - 60 * 53 + - + 46
----
-3143

skipif mysql # not compatible
query I rowsort label-395
SELECT COUNT ( * ) * 83 + + - 60 * 53 + - + 46
----
-3143

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

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

query I rowsort
SELECT DISTINCT 85 + - CASE + + ( + ( + - AVG ( ALL - 97 ) ) ) WHEN - 52 THEN - COALESCE ( + ( 41 ), - 60, - 3 / 46 + + 34, - 72 ) * 63 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-398
SELECT DISTINCT COUNT( * ) + - - MAX( - 85 ) col2, + COALESCE ( 45, - - 45 ) - + - COUNT( * ) * + - ( + + 21 ) * 85 + - 58 AS col2
----
-84
-1798

skipif mysql # not compatible
query II rowsort label-398
SELECT DISTINCT COUNT ( * ) + - - MAX ( - 85 ) col2, + COALESCE ( 45, - - 45 ) - + - COUNT ( * ) * + - ( + + 21 ) * 85 + - 58 AS col2
----
-84
-1798

onlyif mysql # aggregate syntax: 
query I rowsort label-399
SELECT 46 * + COUNT( * ) - + 18 - - 11 + + 39 + + COUNT( - 63 ) * + 27 * 48 AS col2
----
1374

skipif mysql # not compatible
query I rowsort label-399
SELECT 46 * + COUNT ( * ) - + 18 - - 11 + + 39 + + COUNT ( - 63 ) * + 27 * 48 AS col2
----
1374

query II rowsort
SELECT ALL 20 + 48, + 90 AS col2
----
68
90

query I rowsort
SELECT DISTINCT - 1 + - ( - - 68 ) * - + 79 + - + 68 AS col1
----
5303

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-402
SELECT + MAX( + + 4 ) AS col1, - COALESCE ( CAST( 26 AS SIGNED ), + - CASE 89 WHEN + 64 THEN + 69 ELSE NULL END )
----
4
-26

skipif mysql # not compatible
query II rowsort label-402
SELECT + MAX ( + + 4 ) AS col1, - COALESCE ( CAST ( 26 AS INTEGER ), + - CASE 89 WHEN + 64 THEN + 69 ELSE NULL END )
----
4
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-403
SELECT 84 * + 48 + - COUNT( * ) - + - 27 * - 58 * - COUNT( * ) * + 77 * + - 87
----
-10486603

skipif mysql # not compatible
query I rowsort label-403
SELECT 84 * + 48 + - COUNT ( * ) - + - 27 * - 58 * - COUNT ( * ) * + 77 * + - 87
----
-10486603

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-404
SELECT COALESCE ( COUNT( * ), 34 / 56, 63 ) * - + 32 * CAST( NULL AS SIGNED ) - + 71 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-404
SELECT COALESCE ( COUNT ( * ), 34 / 56, 63 ) * - + 32 * CAST ( NULL AS INTEGER ) - + 71 AS col1
----
NULL

query I rowsort
SELECT ALL - 2 + - 60 + + - 19 col1
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-406
SELECT ALL - 84 - - 70 * + SUM( ALL CAST( + - 73 AS SIGNED ) ) + + 7 AS col1
----
-5187

skipif mysql # not compatible
query I rowsort label-406
SELECT ALL - 84 - - 70 * + SUM ( ALL CAST ( + - 73 AS INTEGER ) ) + + 7 AS col1
----
-5187

onlyif mysql # aggregate syntax: 
query I rowsort label-407
SELECT 56 * + COUNT( * ) * - 90 * 49 * 48 AS col0
----
-11854080

skipif mysql # not compatible
query I rowsort label-407
SELECT 56 * + COUNT ( * ) * - 90 * 49 * 48 AS col0
----
-11854080

onlyif mysql # aggregate syntax: 
query II rowsort label-408
SELECT ALL MAX( + 8 ) col1, - 44 + - 37
----
8
-81

skipif mysql # not compatible
query II rowsort label-408
SELECT ALL MAX ( + 8 ) col1, - 44 + - 37
----
8
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-409
SELECT DISTINCT - COUNT( ALL + + 79 ) * - 41
----
41

skipif mysql # not compatible
query I rowsort label-409
SELECT DISTINCT - COUNT ( ALL + + 79 ) * - 41
----
41

query I rowsort
SELECT 82 * ( 96 )
----
7872

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-411
SELECT 88 DIV COUNT( * ), 9 + + 64 col0
----
88
73

skipif mysql # not compatible
query II rowsort label-411
SELECT 88 / COUNT ( * ), 9 + + 64 col0
----
88
73

query II rowsort
SELECT DISTINCT - 67 * + - 22 col0, + COALESCE ( - 78, + 96 )
----
1474
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-413
SELECT - - COUNT( * ) DIV COUNT( * ) + - 77 + 81 * + 75 AS col2, CAST( NULL AS SIGNED ) + - 96
----
5999
NULL

skipif mysql # not compatible
query II rowsort label-413
SELECT - - COUNT ( * ) / COUNT ( * ) + - 77 + 81 * + 75 AS col2, CAST ( NULL AS INTEGER ) + - 96
----
5999
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-414
SELECT - - NULLIF ( + 30, - MAX( - 49 ) ) + + - COUNT( * ) + 78
----
107

skipif mysql # not compatible
query I rowsort label-414
SELECT - - NULLIF ( + 30, - MAX ( - 49 ) ) + + - COUNT ( * ) + 78
----
107

query I rowsort
SELECT - 14 + - - 97 - - 2 AS col0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-416
SELECT DISTINCT + COALESCE ( + + ( 2 ), + + ( - + NULLIF ( + COUNT( * ), - + 61 ) ) - 10 + - 82 * - 13, + - 41 )
----
2

skipif mysql # not compatible
query I rowsort label-416
SELECT DISTINCT + COALESCE ( + + ( 2 ), + + ( - + NULLIF ( + COUNT ( * ), - + 61 ) ) - 10 + - 82 * - 13, + - 41 )
----
2

query I rowsort
SELECT - 41 + - 77 AS col1
----
-118

query I rowsort
SELECT + - 75 - - 34
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-419
SELECT ALL - 11 + 10 + - CAST( + - COUNT( * ) AS SIGNED ) + 58 AS col1
----
58

skipif mysql # not compatible
query I rowsort label-419
SELECT ALL - 11 + 10 + - CAST ( + - COUNT ( * ) AS INTEGER ) + 58 AS col1
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-420
SELECT 6 * - 36 DIV - 12 + - + 14 + + - ( + 27 ) + COUNT( * ) * 99 DIV - 93 + + 20 + 22 * 76 * - 61
----
-101996

skipif mysql # not compatible
query I rowsort label-420
SELECT 6 * - 36 / - 12 + - + 14 + + - ( + 27 ) + COUNT ( * ) * 99 / - 93 + + 20 + 22 * 76 * - 61
----
-101996

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

skipif mysql # not compatible
query I rowsort label-421
SELECT MIN ( - CAST ( + + 31 AS INTEGER ) )
----
-31

query I rowsort
SELECT ALL + - 75 * - 9 * - 82 + + 22 + - 94 + ( - ( - + 57 ) )
----
-55365

query I rowsort
SELECT - 44 + + - 67
----
-111

query I rowsort
SELECT DISTINCT + 30 * - 95 + + 57 AS col0
----
-2793

query I rowsort
SELECT DISTINCT 44 * + 2 AS col0
----
88

query II rowsort
SELECT + COALESCE ( + + 36, + - 90 ) AS col0, + 53 AS col1
----
36
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-427
SELECT ALL + 92, CASE - 32 WHEN + AVG ( - + 60 ) + 93 * - 54 + + + MIN( ALL + CAST( NULL AS SIGNED ) ) / - 50 * + 68 THEN NULL WHEN 54 + + - 18 THEN - 63 WHEN - 6 + MIN( DISTINCT 18 ) THEN NULL ELSE 91 END + 6 AS col2
----
92
97

skipif mysql # not compatible
query II rowsort label-427
SELECT ALL + 92, CASE - 32 WHEN + AVG ( - + 60 ) + 93 * - 54 + + + MIN ( ALL + CAST ( NULL AS INTEGER ) ) / - 50 * + 68 THEN NULL WHEN 54 + + - 18 THEN - 63 WHEN - 6 + MIN ( DISTINCT 18 ) THEN NULL ELSE 91 END + 6 AS col2
----
92
97

query I rowsort
SELECT - 20 + + 59
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-429
SELECT - 79 DIV + - 39
----
2

skipif mysql # not compatible
query I rowsort label-429
SELECT - 79 / + - 39
----
2

query I rowsort
SELECT + 96 * 14
----
1344

query I rowsort
SELECT CASE + 65 WHEN 14 THEN NULL ELSE 94 END AS col0
----
94

query I rowsort
SELECT DISTINCT 8 * - 45 AS col2
----
-360

onlyif mysql # aggregate syntax: 
query I rowsort label-433
SELECT ALL 0 * - + 19 * - COUNT( * ) - - COALESCE ( + ( COUNT( * ) ), + 88 + + - NULLIF ( 76, - AVG ( + 73 ) / 94 + + - 27 * 50 ) + - 15 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-433
SELECT ALL 0 * - + 19 * - COUNT ( * ) - - COALESCE ( + ( COUNT ( * ) ), + 88 + + - NULLIF ( 76, - AVG ( + 73 ) / 94 + + - 27 * 50 ) + - 15 ) col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-434
SELECT + NULLIF ( - NULLIF ( - + COUNT( * ), + CAST( NULL AS SIGNED ) + AVG ( DISTINCT 77 ) * 27 ), + NULLIF ( - - 85, + - 43 / - CAST( 67 AS SIGNED ) - + + 99 ) / 96 - 71 )
----
1

skipif mysql # not compatible
query I rowsort label-434
SELECT + NULLIF ( - NULLIF ( - + COUNT ( * ), + CAST ( NULL AS INTEGER ) + AVG ( DISTINCT 77 ) * 27 ), + NULLIF ( - - 85, + - 43 / - CAST ( 67 AS INTEGER ) - + + 99 ) / 96 - 71 )
----
1

query I rowsort
SELECT ALL 6 * 96 * + 3 - - 49
----
1777

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

skipif mysql # not compatible
query I rowsort label-436
SELECT + COUNT ( * ) / + 17
----
0

query I rowsort
SELECT + 56 * + - 40 + + 85
----
-2155

query I rowsort
SELECT + 42 + + 70
----
112

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

query I rowsort
SELECT + 89 - + 75
----
14

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

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

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

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

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

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

query I rowsort
SELECT - 45 + + 95 col0
----
50

onlyif mysql # aggregate syntax: 
query II rowsort label-445
SELECT ALL + COUNT( * ), - 66 * - - 65 AS col1
----
1
-4290

skipif mysql # not compatible
query II rowsort label-445
SELECT ALL + COUNT ( * ), - 66 * - - 65 AS col1
----
1
-4290

onlyif mysql # aggregate syntax: 
query I rowsort label-446
SELECT + SUM( ALL - + 58 ) * - - 66
----
-3828

skipif mysql # not compatible
query I rowsort label-446
SELECT + SUM ( ALL - + 58 ) * - - 66
----
-3828

query II rowsort
SELECT DISTINCT 84 AS col2, NULLIF ( 37, - - 85 + 7 ) AS col0
----
84
37

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-449
SELECT DISTINCT - ( + - 64 ) + - 32 DIV + 70 - - 67 + + 76 AS col2
----
207

skipif mysql # not compatible
query I rowsort label-449
SELECT DISTINCT - ( + - 64 ) + - 32 / + 70 - - 67 + + 76 AS col2
----
207

query I rowsort
SELECT ALL + + 83 * - - 34
----
2822

query I rowsort
SELECT - + 95 * - + 13 AS col0
----
1235

query I rowsort
SELECT DISTINCT 4 * - - 19 - - - 69
----
7

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

skipif mysql # not compatible
query I rowsort label-453
SELECT - MAX ( ALL - 9 )
----
9

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-455
SELECT ALL + - 91 + - - COUNT( * ) - - + CAST( 96 AS SIGNED )
----
6

skipif mysql # not compatible
query I rowsort label-455
SELECT ALL + - 91 + - - COUNT ( * ) - - + CAST ( 96 AS INTEGER )
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-456
SELECT - 61 + + COALESCE ( - 45, 75 DIV + - COUNT( * ) + 66 - - 48 )
----
-106

skipif mysql # not compatible
query I rowsort label-456
SELECT - 61 + + COALESCE ( - 45, 75 / + - COUNT ( * ) + 66 - - 48 )
----
-106

query I rowsort
SELECT - 5 * + 27
----
-135

query I rowsort
SELECT ( - - 16 ) AS col1
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-459
SELECT ALL - - 78 + 19 DIV - 98
----
78

skipif mysql # not compatible
query I rowsort label-459
SELECT ALL - - 78 + 19 / - 98
----
78

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

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

query I rowsort
SELECT - 28 * + 64
----
-1792

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-462
SELECT ALL + + COUNT( DISTINCT - - CAST( 90 AS SIGNED ) ) DIV 35, - 14 + - 86 AS col0
----
0
-100

skipif mysql # not compatible
query II rowsort label-462
SELECT ALL + + COUNT ( DISTINCT - - CAST ( 90 AS INTEGER ) ) / 35, - 14 + - 86 AS col0
----
0
-100

query I rowsort
SELECT - + 94 * + - 72 * - 90 + + 86
----
-609034

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-464
SELECT ALL - CAST( NULL AS SIGNED ) / 39 + - 27 + 67 * 3 + + + 99 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-464
SELECT ALL - CAST ( NULL AS INTEGER ) / 39 + - 27 + 67 * 3 + + + 99 AS col1
----
NULL

query I rowsort
SELECT + + 79 col0
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-466
SELECT ALL 84 / + - 66 / - CAST( NULL AS DECIMAL ) + - 52 AS col2, + CAST( NULL AS SIGNED ) + - + 21 + 88 + - 69 * - 16 * - 75 + - 73 * - - COUNT( * ) * - 23 + COUNT( * ) / - 31 * + 91
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-466
SELECT ALL 84 / + - 66 / - CAST ( NULL AS REAL ) + - 52 AS col2, + CAST ( NULL AS INTEGER ) + - + 21 + 88 + - 69 * - 16 * - 75 + - 73 * - - COUNT ( * ) * - 23 + COUNT ( * ) / - 31 * + 91
----
NULL
NULL

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

query I rowsort
SELECT - 79 + + + 89
----
10

query I rowsort
SELECT + COALESCE ( + - 49, - - ( - 63 ) * + 73 ) AS col1
----
-49

query I rowsort
SELECT 75 * - 49 + 24
----
-3651

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-472
SELECT ALL NULLIF ( 22, - CAST( - 94 AS SIGNED ) ) DIV ( - 94 ) + - 21 - - - 37 AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-472
SELECT ALL NULLIF ( 22, - CAST ( - 94 AS INTEGER ) ) / ( - 94 ) + - 21 - - - 37 AS col1
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-473
SELECT + 52 * - CAST( + COUNT( * ) AS SIGNED ) - NULLIF ( 45, - - 63 )
----
-97

skipif mysql # not compatible
query I rowsort label-473
SELECT + 52 * - CAST ( + COUNT ( * ) AS INTEGER ) - NULLIF ( 45, - - 63 )
----
-97

query I rowsort
SELECT + 1 + - - 15 * + 76
----
1141

onlyif mysql # aggregate syntax: 
query II rowsort label-475
SELECT DISTINCT + ( + ( + COUNT( ALL + 43 ) ) ) AS col0, - 92 AS col2
----
1
-92

skipif mysql # not compatible
query II rowsort label-475
SELECT DISTINCT + ( + ( + COUNT ( ALL + 43 ) ) ) AS col0, - 92 AS col2
----
1
-92

query I rowsort
SELECT + 89 * - 78 + - 3
----
-6945

query I rowsort
SELECT ( - 10 ) * - 23 * - - 95 AS col1
----
21850

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-478
SELECT CAST( NULL AS SIGNED ) / - + 85 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-478
SELECT CAST ( NULL AS INTEGER ) / - + 85 AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 27 + - 73 * + - 56 * - 37 * ( + - 94 )
----
14218037

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-480
SELECT - COALESCE ( - 81, - - 55, + - 81 * MAX( + 27 ) DIV - ( 1 ) + - 26, COUNT( * ) * - 15 )
----
81

skipif mysql # not compatible
query I rowsort label-480
SELECT - COALESCE ( - 81, - - 55, + - 81 * MAX ( + 27 ) / - ( 1 ) + - 26, COUNT ( * ) * - 15 )
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-481
SELECT ALL COUNT( * ) + - - MAX( ALL 4 ) - 66
----
-61

skipif mysql # not compatible
query I rowsort label-481
SELECT ALL COUNT ( * ) + - - MAX ( ALL 4 ) - 66
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-482
SELECT ALL CASE - + COUNT( * ) WHEN - 44 THEN - 59 ELSE NULL END + CAST( + 85 AS SIGNED ) + - 91 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-482
SELECT ALL CASE - + COUNT ( * ) WHEN - 44 THEN - 59 ELSE NULL END + CAST ( + 85 AS INTEGER ) + - 91 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-483
SELECT 1 + 93 AS col2, - CAST( NULL AS SIGNED ) - + + 30
----
94
NULL

skipif mysql # not compatible
query II rowsort label-483
SELECT 1 + 93 AS col2, - CAST ( NULL AS INTEGER ) - + + 30
----
94
NULL

query I rowsort
SELECT - 76 + 43 AS col0
----
-33

query I rowsort
SELECT ALL + 53 + - 66 col2
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-486
SELECT - 89 + - SUM( + 13 ) * - - 44
----
-661

skipif mysql # not compatible
query I rowsort label-486
SELECT - 89 + - SUM ( + 13 ) * - - 44
----
-661

query I rowsort
SELECT - 59 * - + 15 * + 63 AS col1
----
55755

onlyif mysql # DIV for integer division: 
query II rowsort label-488
SELECT + 98 + - 21, 80 + + COALESCE ( 96, + + 87 + - 29, + 92 ) DIV 3 AS col1
----
77
112

skipif mysql # not compatible
query II rowsort label-488
SELECT + 98 + - 21, 80 + + COALESCE ( 96, + + 87 + - 29, + 92 ) / 3 AS col1
----
77
112

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-490
SELECT ALL + COUNT( * ) * - - 48 * - 61 DIV + COUNT( DISTINCT + 54 )
----
-2928

skipif mysql # not compatible
query I rowsort label-490
SELECT ALL + COUNT ( * ) * - - 48 * - 61 / + COUNT ( DISTINCT + 54 )
----
-2928

onlyif mysql # aggregate syntax: 
query I rowsort label-491
SELECT ALL + ( ( + CASE - + 85 WHEN - - 89 THEN NULL ELSE + COUNT( * ) END ) ) + + 68 - + AVG ( ALL - + 3 ) * - 73 + CASE - - NULLIF ( - 89, + 25 + 77 ) WHEN 21 * - 35 THEN 30 + NULLIF ( - 24, + 31 ) END * 37
----
NULL

skipif mysql # not compatible
query I rowsort label-491
SELECT ALL + ( ( + CASE - + 85 WHEN - - 89 THEN NULL ELSE + COUNT ( * ) END ) ) + + 68 - + AVG ( ALL - + 3 ) * - 73 + CASE - - NULLIF ( - 89, + 25 + 77 ) WHEN 21 * - 35 THEN 30 + NULLIF ( - 24, + 31 ) END * 37
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-492
SELECT DISTINCT SUM( + 54 ) AS col2, CASE + 59 WHEN - + COALESCE ( + CASE + 39 WHEN - 53 * + COUNT( + 13 ) THEN + NULLIF ( + 67, 64 ) WHEN + 19 THEN NULL ELSE 18 * COUNT( + 82 ) END, 63 * + COUNT( * ) + + 2 / + 99 ) THEN - MIN( + 69 ) * - 58 ELSE COUNT( 9 ) END
----
54
1

skipif mysql # not compatible
query II rowsort label-492
SELECT DISTINCT SUM ( + 54 ) AS col2, CASE + 59 WHEN - + COALESCE ( + CASE + 39 WHEN - 53 * + COUNT ( + 13 ) THEN + NULLIF ( + 67, 64 ) WHEN + 19 THEN NULL ELSE 18 * COUNT ( + 82 ) END, 63 * + COUNT ( * ) + + 2 / + 99 ) THEN - MIN ( + 69 ) * - 58 ELSE COUNT ( 9 ) END
----
54
1

onlyif mysql # aggregate syntax: 
query I rowsort label-493
SELECT + ( + COUNT( * ) ) + + MAX( + - 59 ) + - 18 AS col0
----
-76

skipif mysql # not compatible
query I rowsort label-493
SELECT + ( + COUNT ( * ) ) + + MAX ( + - 59 ) + - 18 AS col0
----
-76

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-497
SELECT - 45, - 83 / + + CAST( NULL AS SIGNED ) AS col1, + 71 AS col1
----
-45
NULL
71

skipif mysql # not compatible
query III rowsort label-497
SELECT - 45, - 83 / + + CAST ( NULL AS INTEGER ) AS col1, + 71 AS col1
----
-45
NULL
71

query I rowsort
SELECT 67 + + 80 + CASE - 57 WHEN - 29 * + 16 THEN NULL WHEN + - 19 THEN NULL ELSE 91 END * 49 + - + CASE - 74 WHEN - 7 / - + 25 * - + AVG ( DISTINCT + 11 ) THEN NULL ELSE + 19 + - 61 END + 5
----
4653

onlyif mysql # DIV for integer division: 
query I rowsort label-499
SELECT 47 DIV - + 70 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-499
SELECT 47 / - + 70 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-500
SELECT 82 * + - 70 * - + COALESCE ( 37, + COUNT( * ) * - ( 63 ) ) AS col1
----
212380

skipif mysql # not compatible
query I rowsort label-500
SELECT 82 * + - 70 * - + COALESCE ( 37, + COUNT ( * ) * - ( 63 ) ) AS col1
----
212380

query I rowsort
SELECT ALL NULLIF ( - - 54, - + 43 ) * 5
----
270

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-502
SELECT ALL - COALESCE ( 25, MIN( ALL - 14 ) * + COUNT( * ) + + - COUNT( * ), + 99, + 91 * 21 - + 35 + - + 89 * - 41 + + 78 DIV 25 ) AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-502
SELECT ALL - COALESCE ( 25, MIN ( ALL - 14 ) * + COUNT ( * ) + + - COUNT ( * ), + 99, + 91 * 21 - + 35 + - + 89 * - 41 + + 78 / 25 ) AS col0
----
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-503
SELECT ALL - 25 DIV + 98 * 75
----
0

skipif mysql # not compatible
query I rowsort label-503
SELECT ALL - 25 / + 98 * 75
----
0

query I rowsort
SELECT + 85 * + + 34 + - + 72 * 17
----
1666

query I rowsort
SELECT ALL + 53 * + 11
----
583

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-506
SELECT ALL - NULLIF ( + CAST( NULL AS SIGNED ), + 94 * - - COALESCE ( - ( 10 ), + 6 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-506
SELECT ALL - NULLIF ( + CAST ( NULL AS INTEGER ), + 94 * - - COALESCE ( - ( 10 ), + 6 ) ) AS col0
----
NULL

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

query I rowsort
SELECT 62 + + 86 AS col0
----
148

onlyif mysql # aggregate syntax: 
query I rowsort label-509
SELECT COUNT( * ) + - - 89 * - - 37
----
3294

skipif mysql # not compatible
query I rowsort label-509
SELECT COUNT ( * ) + - - 89 * - - 37
----
3294

onlyif mysql # aggregate syntax: 
query I rowsort label-510
SELECT ALL + MIN( ALL - + 74 ) * - + 64
----
4736

skipif mysql # not compatible
query I rowsort label-510
SELECT ALL + MIN ( ALL - + 74 ) * - + 64
----
4736

query I rowsort
SELECT 72 * - + 26 AS col1
----
-1872

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-513
SELECT 26 * 95 + 26 DIV - - 16
----
2471

skipif mysql # not compatible
query I rowsort label-513
SELECT 26 * 95 + 26 / - - 16
----
2471

onlyif mysql # aggregate syntax: 
query I rowsort label-514
SELECT ( MIN( ALL - 11 ) ) * 40 * COALESCE ( 18, + MAX( ALL - 15 ) ) + - 10
----
-7930

skipif mysql # not compatible
query I rowsort label-514
SELECT ( MIN ( ALL - 11 ) ) * 40 * COALESCE ( 18, + MAX ( ALL - 15 ) ) + - 10
----
-7930

onlyif mysql # aggregate syntax: 
query I rowsort label-515
SELECT DISTINCT - 8 + - - CASE + 70 WHEN - - 70 THEN NULL WHEN - - 23 / - 68 THEN NULL ELSE 35 + + - 51 * - - COUNT( * ) * + 90 END + + - 82 - - COALESCE ( - 44, + 1 * ( 4 ) ) * + 16 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-515
SELECT DISTINCT - 8 + - - CASE + 70 WHEN - - 70 THEN NULL WHEN - - 23 / - 68 THEN NULL ELSE 35 + + - 51 * - - COUNT ( * ) * + 90 END + + - 82 - - COALESCE ( - 44, + 1 * ( 4 ) ) * + 16 AS col1
----
NULL

query I rowsort
SELECT ALL NULLIF ( + - 15, - COALESCE ( + 59, - + 43 ) ) + + + 54 AS col0
----
39

query I rowsort
SELECT + + 19 * - 53 + - 71 AS col0
----
-1078

onlyif mysql # aggregate syntax: 
query I rowsort label-518
SELECT DISTINCT + + 49 * - COALESCE ( + ( COUNT( * ) ), - - COALESCE ( - - 89, - 28 ) * 60 )
----
-49

skipif mysql # not compatible
query I rowsort label-518
SELECT DISTINCT + + 49 * - COALESCE ( + ( COUNT ( * ) ), - - COALESCE ( - - 89, - 28 ) * 60 )
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-519
SELECT ALL 38 / - CASE - 26 WHEN - CASE 53 WHEN 76 THEN + - 6 * - 2 END THEN + - COALESCE ( + 66, - - 35 ) WHEN + 97 THEN + 7 WHEN 0 * + 15 * + COUNT( * ) + 65 THEN 74 + 75 END + + 84 * + NULLIF ( 57, + CASE 67 WHEN - 61 THEN NULLIF ( 84, COUNT( ALL + 22 ) ) - - 85 END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-519
SELECT ALL 38 / - CASE - 26 WHEN - CASE 53 WHEN 76 THEN + - 6 * - 2 END THEN + - COALESCE ( + 66, - - 35 ) WHEN + 97 THEN + 7 WHEN 0 * + 15 * + COUNT ( * ) + 65 THEN 74 + 75 END + + 84 * + NULLIF ( 57, + CASE 67 WHEN - 61 THEN NULLIF ( 84, COUNT ( ALL + 22 ) ) - - 85 END ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-520
SELECT + 14, CAST( NULL AS SIGNED ) * + MIN( 37 ) * - 63 + 24 + ( - 10 ) AS col0
----
14
NULL

skipif mysql # not compatible
query II rowsort label-520
SELECT + 14, CAST ( NULL AS INTEGER ) * + MIN ( 37 ) * - 63 + 24 + ( - 10 ) AS col0
----
14
NULL

query I rowsort
SELECT ALL - 82 + + 28 * + 69 + - 39
----
1811

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-522
SELECT ALL 4 DIV SUM( ALL - 55 )
----
0

skipif mysql # not compatible
query I rowsort label-522
SELECT ALL 4 / SUM ( ALL - 55 )
----
0

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

skipif mysql # not compatible
query I rowsort label-523
SELECT SUM ( DISTINCT 85 )
----
85

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

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

query I rowsort
SELECT - 96 * 52
----
-4992

query I rowsort
SELECT ALL + + 94 + - 4
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-527
SELECT ALL CASE + 19 WHEN + - 97 * - 16 / - + 41 - 15 / 48 + - ( + 12 ) THEN NULL WHEN + - 92 + - CASE - + AVG ( + 46 ) WHEN - CAST( NULL AS SIGNED ) / 74 THEN 66 * 39 + - 47 ELSE - CAST( COUNT( * ) AS SIGNED ) * - 86 END * 88 THEN NULL ELSE 20 * 54 END
----
1080

skipif mysql # not compatible
query I rowsort label-527
SELECT ALL CASE + 19 WHEN + - 97 * - 16 / - + 41 - 15 / 48 + - ( + 12 ) THEN NULL WHEN + - 92 + - CASE - + AVG ( + 46 ) WHEN - CAST ( NULL AS INTEGER ) / 74 THEN 66 * 39 + - 47 ELSE - CAST ( COUNT ( * ) AS INTEGER ) * - 86 END * 88 THEN NULL ELSE 20 * 54 END
----
1080

query I rowsort
SELECT DISTINCT - 99 - - 55
----
-44

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-529
SELECT DISTINCT + 59 AS col1, CAST( NULL AS DECIMAL ) * + + 30 * - - 52 * - ( + 64 ) AS col0
----
59
NULL

skipif mysql # not compatible
query II rowsort label-529
SELECT DISTINCT + 59 AS col1, CAST ( NULL AS REAL ) * + + 30 * - - 52 * - ( + 64 ) AS col0
----
59
NULL

query I rowsort
SELECT ALL 63 - - 74 col0
----
137

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-532
SELECT CASE + 60 WHEN - COUNT( * ) THEN - 21 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-532
SELECT CASE + 60 WHEN - COUNT ( * ) THEN - 21 END AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-533
SELECT ALL + COUNT ( * ) - + 24 AS col1
----
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-534
SELECT 69, - ( + COUNT( * ) ) + - 95 AS col2
----
69
-96

skipif mysql # not compatible
query II rowsort label-534
SELECT 69, - ( + COUNT ( * ) ) + - 95 AS col2
----
69
-96

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-536
SELECT + CASE - - COUNT( DISTINCT + 54 ) WHEN + 88 THEN + + 18 + 99 + - + 86 * + CAST( + COUNT( * ) AS DECIMAL ) * + ( + - 55 ) * - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-536
SELECT + CASE - - COUNT ( DISTINCT + 54 ) WHEN + 88 THEN + + 18 + 99 + - + 86 * + CAST ( + COUNT ( * ) AS REAL ) * + ( + - 55 ) * - COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-537
SELECT 76 * - SUM( 20 )
----
-1520

skipif mysql # not compatible
query I rowsort label-537
SELECT 76 * - SUM ( 20 )
----
-1520

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-538
SELECT ALL CAST( NULL AS SIGNED ) * - COUNT( ALL - 18 ) / 60 * + - COUNT( * ) + + 45 + - 76 + - COUNT( - - 93 ), + 56 AS col1
----
NULL
56

skipif mysql # not compatible
query II rowsort label-538
SELECT ALL CAST ( NULL AS INTEGER ) * - COUNT ( ALL - 18 ) / 60 * + - COUNT ( * ) + + 45 + - 76 + - COUNT ( - - 93 ), + 56 AS col1
----
NULL
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-539
SELECT + COALESCE ( + - 36, + COUNT( * ), 46 * CASE COUNT( * ) WHEN + + COUNT( * ) - + + 30 THEN 31 END ) DIV + 10 + - CAST( - + CAST( - 89 AS SIGNED ) AS SIGNED ) + + 5 * - COALESCE ( + CAST( NULL AS SIGNED ), COUNT( * ) DIV COUNT( * ) ) DIV 32 AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-539
SELECT + COALESCE ( + - 36, + COUNT ( * ), 46 * CASE COUNT ( * ) WHEN + + COUNT ( * ) - + + 30 THEN 31 END ) / + 10 + - CAST ( - + CAST ( - 89 AS INTEGER ) AS INTEGER ) + + 5 * - COALESCE ( + CAST ( NULL AS INTEGER ), COUNT ( * ) / COUNT ( * ) ) / 32 AS col2
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-540
SELECT + SUM( - + 97 ), - CAST( NULL AS SIGNED ) * + 12 * 85 AS col0
----
-97
NULL

skipif mysql # not compatible
query II rowsort label-540
SELECT + SUM ( - + 97 ), - CAST ( NULL AS INTEGER ) * + 12 * 85 AS col0
----
-97
NULL

query I rowsort
SELECT + 66 + 69 * 64 - - + 44 * - 76
----
1138

query II rowsort
SELECT ALL + 36 AS col1, ( + 9 ) AS col2
----
36
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-543
SELECT CASE 51 WHEN + - 72 THEN - 41 * - 19 - - CAST( + 69 AS SIGNED ) * - + 48 + + 62 END
----
NULL

skipif mysql # not compatible
query I rowsort label-543
SELECT CASE 51 WHEN + - 72 THEN - 41 * - 19 - - CAST ( + 69 AS INTEGER ) * - + 48 + + 62 END
----
NULL

query I rowsort
SELECT COALESCE ( - + 7, 11 )
----
-7

query I rowsort
SELECT ALL + 35 * + 48 + - ( + 92 )
----
1588

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-546
SELECT ALL - CAST( + 60 AS SIGNED ) * + 77 + 50 + + - 72 AS col2
----
-4642

skipif mysql # not compatible
query I rowsort label-546
SELECT ALL - CAST ( + 60 AS INTEGER ) * + 77 + 50 + + - 72 AS col2
----
-4642

onlyif mysql # aggregate syntax: 
query I rowsort label-547
SELECT COUNT( ALL - 22 ) * ( - - 13 ) + - COUNT( DISTINCT + 33 ) * 54 + + + 26 - - 96
----
81

skipif mysql # not compatible
query I rowsort label-547
SELECT COUNT ( ALL - 22 ) * ( - - 13 ) + - COUNT ( DISTINCT + 33 ) * 54 + + + 26 - - 96
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-548
SELECT - MIN( - + 88 ) DIV + 26
----
3

skipif mysql # not compatible
query I rowsort label-548
SELECT - MIN ( - + 88 ) / + 26
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-549
SELECT - 5 DIV 75 DIV + - 73 + - + COUNT( * ) * + - 23 - - 50 * 70 * + COUNT( * )
----
3523

skipif mysql # not compatible
query I rowsort label-549
SELECT - 5 / 75 / + - 73 + - + COUNT ( * ) * + - 23 - - 50 * 70 * + COUNT ( * )
----
3523

query II rowsort
SELECT 49 AS col0, 33 + + 86 col0
----
49
119

onlyif mysql # aggregate syntax: 
query I rowsort label-551
SELECT + - COUNT( * ) * MIN( ALL 64 ) + MIN( DISTINCT - 12 ) * + - MIN( ALL - ( - 10 ) )
----
56

skipif mysql # not compatible
query I rowsort label-551
SELECT + - COUNT ( * ) * MIN ( ALL 64 ) + MIN ( DISTINCT - 12 ) * + - MIN ( ALL - ( - 10 ) )
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-552
SELECT + + CASE - 22 WHEN + - COUNT( * ) THEN - MAX( DISTINCT - COALESCE ( 34, - - 84 - NULLIF ( 30, 65 ) - - 94 ) ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-552
SELECT + + CASE - 22 WHEN + - COUNT ( * ) THEN - MAX ( DISTINCT - COALESCE ( 34, - - 84 - NULLIF ( 30, 65 ) - - 94 ) ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-553
SELECT - + 17 * + - COUNT( * ) AS col1, + 15 AS col0
----
17
15

skipif mysql # not compatible
query II rowsort label-553
SELECT - + 17 * + - COUNT ( * ) AS col1, + 15 AS col0
----
17
15

query III rowsort
SELECT + - 31 AS col0, 44 col2, + 78
----
-31
44
78

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

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

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

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

query I rowsort
SELECT DISTINCT + 70 - 26
----
44

query I rowsort
SELECT ALL NULLIF ( 74, + 68 )
----
74

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

skipif mysql # not compatible
query I rowsort label-559
SELECT + MIN ( + 74 )
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-560
SELECT - - ( + COUNT( * ) ) + - + COUNT( * ) col0
----
0

skipif mysql # not compatible
query I rowsort label-560
SELECT - - ( + COUNT ( * ) ) + - + COUNT ( * ) col0
----
0

query I rowsort
SELECT - + 71 + - 50 col1
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-562
SELECT - 97 + 61 + - COUNT( * ) * - + 24
----
-12

skipif mysql # not compatible
query I rowsort label-562
SELECT - 97 + 61 + - COUNT ( * ) * - + 24
----
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-563
SELECT - 32 DIV + COUNT( * ) AS col0
----
-32

skipif mysql # not compatible
query I rowsort label-563
SELECT - 32 / + COUNT ( * ) AS col0
----
-32

query I rowsort
SELECT ALL 44 * - 64
----
-2816

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

onlyif mysql # aggregate syntax: 
query I rowsort label-566
SELECT + ( MIN( 65 ) ) + + 9 AS col0
----
74

skipif mysql # not compatible
query I rowsort label-566
SELECT + ( MIN ( 65 ) ) + + 9 AS col0
----
74

query I rowsort
SELECT ALL 38 * + + 9 * + 77
----
26334

onlyif mysql # aggregate syntax: 
query I rowsort label-568
SELECT DISTINCT - 80 * + NULLIF ( + ( 29 ), + 5 * + - CASE - 34 WHEN + 23 THEN + - 81 + COUNT( * ) END + + COALESCE ( - AVG ( + 53 ), + 22 * - - 72 + 77 ) * - 73 * COALESCE ( 47 * + 31, - 99 ) + - 99 ) * - 70
----
162400

skipif mysql # not compatible
query I rowsort label-568
SELECT DISTINCT - 80 * + NULLIF ( + ( 29 ), + 5 * + - CASE - 34 WHEN + 23 THEN + - 81 + COUNT ( * ) END + + COALESCE ( - AVG ( + 53 ), + 22 * - - 72 + 77 ) * - 73 * COALESCE ( 47 * + 31, - 99 ) + - 99 ) * - 70
----
162400

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-569
SELECT ALL CAST( - 22 AS SIGNED ) AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-569
SELECT ALL CAST ( - 22 AS INTEGER ) AS col2
----
-22

query I rowsort
SELECT DISTINCT 43 + - 37 AS col2
----
6

query II rowsort
SELECT ALL 2 * + + 37 col1, + 75 * + 70 - 69 AS col0
----
74
5181

onlyif mysql # aggregate syntax: 
query I rowsort label-572
SELECT - SUM( DISTINCT 9 ) col1
----
-9

skipif mysql # not compatible
query I rowsort label-572
SELECT - SUM ( DISTINCT 9 ) col1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-573
SELECT + 72 + - - 28 + - COUNT( * )
----
99

skipif mysql # not compatible
query I rowsort label-573
SELECT + 72 + - - 28 + - COUNT ( * )
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-574
SELECT CAST( 82 AS SIGNED ) col1, + COUNT( * ) * + 30 + - 28
----
82
2

skipif mysql # not compatible
query II rowsort label-574
SELECT CAST ( 82 AS INTEGER ) col1, + COUNT ( * ) * + 30 + - 28
----
82
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-575
SELECT DISTINCT CAST( NULL AS SIGNED ) / - 2 + MIN( + COALESCE ( - 72, 26, + + 96 ) ) + 60 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-575
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - 2 + MIN ( + COALESCE ( - 72, 26, + + 96 ) ) + 60 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-576
SELECT + COALESCE ( - CAST( NULL AS SIGNED ), 27 * 46 ) AS col2
----
1242

skipif mysql # not compatible
query I rowsort label-576
SELECT + COALESCE ( - CAST ( NULL AS INTEGER ), 27 * 46 ) AS col2
----
1242

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-577
SELECT ALL - 8 DIV + COUNT( * ) + + COALESCE ( + 26, - 50 * + COUNT( * ) )
----
18

skipif mysql # not compatible
query I rowsort label-577
SELECT ALL - 8 / + COUNT ( * ) + + COALESCE ( + 26, - 50 * + COUNT ( * ) )
----
18

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-578
SELECT DISTINCT + 25 DIV + CAST( - 15 AS SIGNED ) + - NULLIF ( 30, - 20 )
----
-31

skipif mysql # not compatible
query I rowsort label-578
SELECT DISTINCT + 25 / + CAST ( - 15 AS INTEGER ) + - NULLIF ( 30, - 20 )
----
-31

query I rowsort
SELECT + 12 * - CASE - - 19 WHEN 89 * - - 4 THEN + 75 END
----
NULL

query I rowsort
SELECT ( - 98 )
----
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-581
SELECT + 1 DIV - 53 + - - 54
----
54

skipif mysql # not compatible
query I rowsort label-581
SELECT + 1 / - 53 + - - 54
----
54

query I rowsort
SELECT - - ( - 32 ) * - 47 * - + 75 col1
----
-112800

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

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

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

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

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

skipif mysql # not compatible
query II rowsort label-585
SELECT ALL + COUNT ( ALL + + 89 ), COUNT ( * )
----
1
1

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

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

query I rowsort
SELECT - + 88 * + + 49 + - - 48
----
-4264

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

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

query I rowsort
SELECT DISTINCT + - 44 col1
----
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-590
SELECT - + ( - + 72 ) * + COALESCE ( + + 82, - 24 DIV - AVG ( + 66 ) - 74 * 42 + + 92, - 93 )
----
5904

skipif mysql # not compatible
query I rowsort label-590
SELECT - + ( - + 72 ) * + COALESCE ( + + 82, - 24 / - AVG ( + 66 ) - 74 * 42 + + 92, - 93 )
----
5904

onlyif mysql # DIV for integer division: 
query II rowsort label-591
SELECT ALL + 30 DIV 71 AS col0, - 26 * 66 AS col1
----
0
-1716

skipif mysql # not compatible
query II rowsort label-591
SELECT ALL + 30 / 71 AS col0, - 26 * 66 AS col1
----
0
-1716

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-592
SELECT ALL + COALESCE ( + - 3, - + 1, + + ( - + CAST( NULL AS SIGNED ) ) DIV - SUM( + + ( + 98 ) ) - COUNT( * ) + + 76 * + 97 * - + 31 - - - 46 * + + 83 ) AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-592
SELECT ALL + COALESCE ( + - 3, - + 1, + + ( - + CAST ( NULL AS INTEGER ) ) / - SUM ( + + ( + 98 ) ) - COUNT ( * ) + + 76 * + 97 * - + 31 - - - 46 * + + 83 ) AS col0
----
-3

query I rowsort
SELECT - - 61 * + 58 + 89
----
3627

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

skipif mysql # not compatible
query I rowsort label-594
SELECT - 14 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-595
SELECT - 42 + - 79 + + 49 * - + COUNT( * )
----
-170

skipif mysql # not compatible
query I rowsort label-595
SELECT - 42 + - 79 + + 49 * - + COUNT ( * )
----
-170

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-596
SELECT DISTINCT - 12 + + CAST( + 47 AS SIGNED )
----
35

skipif mysql # not compatible
query I rowsort label-596
SELECT DISTINCT - 12 + + CAST ( + 47 AS INTEGER )
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-597
SELECT 85 DIV + + 21
----
4

skipif mysql # not compatible
query I rowsort label-597
SELECT 85 / + + 21
----
4

query I rowsort
SELECT 92 * + + 23 col0
----
2116

query I rowsort
SELECT ALL - 67 + - - 13
----
-54

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-600
SELECT 18, COUNT( * ) DIV - + 96 AS col2
----
18
0

skipif mysql # not compatible
query II rowsort label-600
SELECT 18, COUNT ( * ) / - + 96 AS col2
----
18
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-601
SELECT 75 DIV 63 DIV - 62 AS col0, 39 * ( - 73 ) AS col0, - + COUNT( + + 61 ) AS col2
----
0
-2847
-1

skipif mysql # not compatible
query III rowsort label-601
SELECT 75 / 63 / - 62 AS col0, 39 * ( - 73 ) AS col0, - + COUNT ( + + 61 ) AS col2
----
0
-2847
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-602
SELECT 81 - + 53 * + - ( CAST( NULL AS SIGNED ) ) / - MIN( + 82 ) + + 68 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-602
SELECT 81 - + 53 * + - ( CAST ( NULL AS INTEGER ) ) / - MIN ( + 82 ) + + 68 AS col2
----
NULL

query II rowsort
SELECT - 19 AS col1, 22 * + 43
----
-19
946

query I rowsort
SELECT DISTINCT - 49 + 51 AS col1
----
2

query I rowsort
SELECT DISTINCT 83 * - ( ( - - 60 ) ) AS col0
----
-4980

query I rowsort
SELECT DISTINCT ( - 13 ) + + + 88 col2
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-607
SELECT ALL - 61 AS col2, ( - - 8 ) * - SUM( - 43 ) + 7 * - ( + 58 ) AS col1
----
-61
-62

skipif mysql # not compatible
query II rowsort label-607
SELECT ALL - 61 AS col2, ( - - 8 ) * - SUM ( - 43 ) + 7 * - ( + 58 ) AS col1
----
-61
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-608
SELECT 81 * - 31 * - COUNT( * )
----
2511

skipif mysql # not compatible
query I rowsort label-608
SELECT 81 * - 31 * - COUNT ( * )
----
2511

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-610
SELECT ALL - + NULLIF ( + COUNT( * ), 50 ) col1, + 34
----
-1
34

skipif mysql # not compatible
query II rowsort label-610
SELECT ALL - + NULLIF ( + COUNT ( * ), 50 ) col1, + 34
----
-1
34

query II rowsort
SELECT ALL - - 32, 11 + - 65 AS col0
----
32
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-612
SELECT DISTINCT - 12 * - - CAST( + 94 AS SIGNED )
----
-1128

skipif mysql # not compatible
query I rowsort label-612
SELECT DISTINCT - 12 * - - CAST ( + 94 AS INTEGER )
----
-1128

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-613
SELECT ALL - NULLIF ( + NULLIF ( - COUNT( ALL - - 33 ), CASE 30 WHEN + - COUNT( * ) THEN NULL ELSE 63 END ), 71 ) DIV 63 + + - 15
----
-15

skipif mysql # not compatible
query I rowsort label-613
SELECT ALL - NULLIF ( + NULLIF ( - COUNT ( ALL - - 33 ), CASE 30 WHEN + - COUNT ( * ) THEN NULL ELSE 63 END ), 71 ) / 63 + + - 15
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-614
SELECT NULLIF ( - 54, - - COUNT( * ) ) DIV + 24 + 75 AS col2
----
73

skipif mysql # not compatible
query I rowsort label-614
SELECT NULLIF ( - 54, - - COUNT ( * ) ) / + 24 + 75 AS col2
----
73

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-616
SELECT DISTINCT - ( CAST( - 91 AS SIGNED ) ) * - 35
----
-3185

skipif mysql # not compatible
query I rowsort label-616
SELECT DISTINCT - ( CAST ( - 91 AS INTEGER ) ) * - 35
----
-3185

onlyif mysql # aggregate syntax: 
query I rowsort label-617
SELECT + - 97 * + 73 * + COUNT( * ) * + - 23 + + - ( - 76 ) * + + 44 * - 96 + 56 - - 3 + + ( - - COUNT( * ) ) + - + 26 * ( - 35 ) * 69 + + 31 AS col2
----
-95280

skipif mysql # not compatible
query I rowsort label-617
SELECT + - 97 * + 73 * + COUNT ( * ) * + - 23 + + - ( - 76 ) * + + 44 * - 96 + 56 - - 3 + + ( - - COUNT ( * ) ) + - + 26 * ( - 35 ) * 69 + + 31 AS col2
----
-95280

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-618
SELECT + 26 * CAST( NULL AS SIGNED ) * 68, CASE - + CAST( NULL AS SIGNED ) WHEN 46 THEN + 23 END + - 71 AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-618
SELECT + 26 * CAST ( NULL AS INTEGER ) * 68, CASE - + CAST ( NULL AS INTEGER ) WHEN 46 THEN + 23 END + - 71 AS col0
----
NULL
NULL

query I rowsort
SELECT - + 11 * + + 89 + 55 * + - 1 * - 28 - + + 18 + + + 60 AS col1
----
603

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-620
SELECT ALL + 69 / COUNT( * ) * + + ( + - 62 ) + - CASE + - 28 WHEN ( - 53 ) * + - 60 + 41 THEN - - ( CAST( NULL AS SIGNED ) ) END + - CAST( + 69 AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-620
SELECT ALL + 69 / COUNT ( * ) * + + ( + - 62 ) + - CASE + - 28 WHEN ( - 53 ) * + - 60 + 41 THEN - - ( CAST ( NULL AS INTEGER ) ) END + - CAST ( + 69 AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-621
SELECT + 92 * - + COUNT( * ) + + 4
----
-88

skipif mysql # not compatible
query I rowsort label-621
SELECT + 92 * - + COUNT ( * ) + + 4
----
-88

query I rowsort
SELECT ALL 62 + + 33 AS col0
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-623
SELECT 76 * MIN( ALL - ( + 68 ) ) col2
----
-5168

skipif mysql # not compatible
query I rowsort label-623
SELECT 76 * MIN ( ALL - ( + 68 ) ) col2
----
-5168

onlyif mysql # aggregate syntax: 
query I rowsort label-624
SELECT DISTINCT 67 + - COUNT( * ) - 72 AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-624
SELECT DISTINCT 67 + - COUNT ( * ) - 72 AS col0
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-625
SELECT CAST( - + COUNT( ALL - 50 ) AS SIGNED ) + - - 82 col0, 24 + - - 52 + COUNT( DISTINCT 32 ) AS col2
----
81
77

skipif mysql # not compatible
query II rowsort label-625
SELECT CAST ( - + COUNT ( ALL - 50 ) AS INTEGER ) + - - 82 col0, 24 + - - 52 + COUNT ( DISTINCT 32 ) AS col2
----
81
77

query I rowsort
SELECT 92 - 2 AS col1
----
90

query I rowsort
SELECT ALL - 62 + + 90 * + 96
----
8578

query I rowsort
SELECT 82 + + 17 - - CASE + 86 WHEN 80 - - 75 + + + 28 + - - 53 THEN 6 ELSE NULL END AS col1
----
NULL

query II rowsort
SELECT ALL 25 * + 13, - 35 AS col2
----
325
-35

query I rowsort
SELECT 91 + - - 51 col0
----
142

onlyif mysql # aggregate syntax: 
query I rowsort label-631
SELECT 10 + - - MIN( + 2 ) AS col2
----
12

skipif mysql # not compatible
query I rowsort label-631
SELECT 10 + - - MIN ( + 2 ) AS col2
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-632
SELECT ( + 63 ) * + COUNT( * ) * - 71 AS col0
----
-4473

skipif mysql # not compatible
query I rowsort label-632
SELECT ( + 63 ) * + COUNT ( * ) * - 71 AS col0
----
-4473

query I rowsort
SELECT 26 + + 98 * + 85 + + + 63 AS col0
----
8419

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-634
SELECT COALESCE ( MAX( + 31 ), + 35 * - + NULLIF ( + 86, + 75 - - 21 - 53 * - 3 * 30 ) ) * - - ( + - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-634
SELECT COALESCE ( MAX ( + 31 ), + 35 * - + NULLIF ( + 86, + 75 - - 21 - 53 * - 3 * 30 ) ) * - - ( + - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-635
SELECT 37 * + 47 * + MIN( + - 84 ) + 71 AS col0, 14
----
-146005
14

skipif mysql # not compatible
query II rowsort label-635
SELECT 37 * + 47 * + MIN ( + - 84 ) + 71 AS col0, 14
----
-146005
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-636
SELECT + COALESCE ( + 77, - CASE - + 0 WHEN 96 + - 56 / + ( - SUM( + + 35 ) ) THEN + + COUNT( * ) - + COUNT( * ) - + CASE - + 43 WHEN - COUNT( * ) THEN + + MAX( DISTINCT - CASE + 80 WHEN + 29 THEN - 92 END ) * + 19 + - MAX( DISTINCT + 18 + 72 ) * + COALESCE ( 92, - ( 8 ) * CAST( ( + 76 ) + - 47 AS SIGNED ) + - 9 ) END * 24 ELSE NULL END )
----
77

skipif mysql # not compatible
query I rowsort label-636
SELECT + COALESCE ( + 77, - CASE - + 0 WHEN 96 + - 56 / + ( - SUM ( + + 35 ) ) THEN + + COUNT ( * ) - + COUNT ( * ) - + CASE - + 43 WHEN - COUNT ( * ) THEN + + MAX ( DISTINCT - CASE + 80 WHEN + 29 THEN - 92 END ) * + 19 + - MAX ( DISTINCT + 18 + 72 ) * + COALESCE ( 92, - ( 8 ) * CAST ( ( + 76 ) + - 47 AS INTEGER ) + - 9 ) END * 24 ELSE NULL END )
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-637
SELECT ALL - COALESCE ( - CAST( NULL AS SIGNED ), - + COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-637
SELECT ALL - COALESCE ( - CAST ( NULL AS INTEGER ), - + COUNT ( * ) ) AS col1
----
1

query II rowsort
SELECT ALL 77 * + + 99 AS col1, - 22 AS col1
----
7623
-22

query II rowsort
SELECT - 47 * + - 28 AS col1, 5 * - + 33 * 8 * - - 75
----
1316
-99000

onlyif mysql # aggregate syntax: 
query I rowsort label-640
SELECT 8 - - MIN( DISTINCT + + 71 )
----
79

skipif mysql # not compatible
query I rowsort label-640
SELECT 8 - - MIN ( DISTINCT + + 71 )
----
79

query I rowsort
SELECT ( - 47 ) * - 72 AS col2
----
3384

query I rowsort
SELECT ALL + 78 * + - 30
----
-2340

query I rowsort
SELECT DISTINCT - 20 + 58 AS col0
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-644
SELECT 54 + + COALESCE ( 86, - 80 + 52 ) DIV - - 57
----
55

skipif mysql # not compatible
query I rowsort label-644
SELECT 54 + + COALESCE ( 86, - 80 + 52 ) / - - 57
----
55

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

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

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

skipif mysql # not compatible
query I rowsort label-646
SELECT ALL - 29 + - + COUNT ( * ) AS col0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-647
SELECT + COUNT( ALL 3 ) + - + 56
----
-55

skipif mysql # not compatible
query I rowsort label-647
SELECT + COUNT ( ALL 3 ) + - + 56
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-648
SELECT ALL COUNT( DISTINCT 71 ) + - + 42 * - + ( + 4 ) AS col0
----
169

skipif mysql # not compatible
query I rowsort label-648
SELECT ALL COUNT ( DISTINCT 71 ) + - + 42 * - + ( + 4 ) AS col0
----
169

query I rowsort
SELECT ALL 25 * 49 AS col1
----
1225

query I rowsort
SELECT DISTINCT 84 + - + 25 AS col2
----
59

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-652
SELECT DISTINCT - COALESCE ( + 46, + + CAST( - - 42 AS SIGNED ), + - MAX( ALL - - 74 ) ) - + - 44 * + 39
----
1670

skipif mysql # not compatible
query I rowsort label-652
SELECT DISTINCT - COALESCE ( + 46, + + CAST ( - - 42 AS INTEGER ), + - MAX ( ALL - - 74 ) ) - + - 44 * + 39
----
1670

query II rowsort
SELECT + 1 - - 15 + + 13 AS col2, - 31 AS col2
----
29
-31

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

skipif mysql # not compatible
query I rowsort label-654
SELECT - 7 / + COUNT ( * ) col1
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-655
SELECT ALL 13 DIV + ( + + NULLIF ( + - 40, 13 ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-655
SELECT ALL 13 / + ( + + NULLIF ( + - 40, 13 ) ) AS col2
----
0

query I rowsort
SELECT - 83 * - 40
----
3320

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

skipif mysql # not compatible
query I rowsort label-657
SELECT DISTINCT SUM ( - 97 )
----
-97

query I rowsort
SELECT + 47 - + + 33 AS col1
----
14

query I rowsort
SELECT DISTINCT CASE - + 99 WHEN 31 + + 25 THEN NULL WHEN - 62 THEN 84 * - 9 + + 0 * - - NULLIF ( + + 43, + 84 ) END * 90
----
NULL

query I rowsort
SELECT ALL 5 * 42 * 0 col1
----
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-662
SELECT - + 62 DIV 47
----
-1

skipif mysql # not compatible
query I rowsort label-662
SELECT - + 62 / 47
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-663
SELECT + NULLIF ( + + 90, + - 43 + - 64 ) * - 71 + - - ( - COUNT( * ) ) AS col2
----
-6391

skipif mysql # not compatible
query I rowsort label-663
SELECT + NULLIF ( + + 90, + - 43 + - 64 ) * - 71 + - - ( - COUNT ( * ) ) AS col2
----
-6391

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-664
SELECT DISTINCT 20 * - + ( - - 81 ) + 28 - - + CAST( NULL AS SIGNED ), COUNT( * ) AS col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-664
SELECT DISTINCT 20 * - + ( - - 81 ) + 28 - - + CAST ( NULL AS INTEGER ), COUNT ( * ) AS col1
----
NULL
1

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-665
SELECT DISTINCT + + 73 AS col2, - CAST( NULL AS DECIMAL ) AS col2
----
73
NULL

skipif mysql # not compatible
query II rowsort label-665
SELECT DISTINCT + + 73 AS col2, - CAST ( NULL AS REAL ) AS col2
----
73
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-666
SELECT - ( + 91 ) * - - 87 / + 87 * + 13 * + + CASE - 78 WHEN + + 36 THEN 0 / - - MAX( ALL 56 ) END * + 0 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-666
SELECT - ( + 91 ) * - - 87 / + 87 * + 13 * + + CASE - 78 WHEN + + 36 THEN 0 / - - MAX ( ALL 56 ) END * + 0 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 38 * - + 99 + 44 + + 82 * + + 24 + + ( - - 93 )
----
-1657

query I rowsort
SELECT - 65 + - 40 * NULLIF ( - - 9, 1 * 22 )
----
-425

onlyif mysql # aggregate syntax: 
query I rowsort label-669
SELECT ALL - CASE - COALESCE ( - - 25, - + NULLIF ( + + 20, + 43 ) * - NULLIF ( - NULLIF ( 78, + 14 * - + 53 + 33 * + NULLIF ( - 58, + + 38 ) + + 53 + + 90 ), - CASE COUNT( * ) WHEN + - 78 THEN - 25 * 0 ELSE 23 * + ( + 28 ) - - 75 END + + 13 / 69 ) + + 50, + 75 / COUNT( * ) ) WHEN 73 THEN - 95 ELSE + 8 END * + 64 + 79
----
-433

skipif mysql # not compatible
query I rowsort label-669
SELECT ALL - CASE - COALESCE ( - - 25, - + NULLIF ( + + 20, + 43 ) * - NULLIF ( - NULLIF ( 78, + 14 * - + 53 + 33 * + NULLIF ( - 58, + + 38 ) + + 53 + + 90 ), - CASE COUNT ( * ) WHEN + - 78 THEN - 25 * 0 ELSE 23 * + ( + 28 ) - - 75 END + + 13 / 69 ) + + 50, + 75 / COUNT ( * ) ) WHEN 73 THEN - 95 ELSE + 8 END * + 64 + 79
----
-433

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-670
SELECT DISTINCT + + CAST( NULL AS SIGNED ) AS col0, ( + ( + 48 ) ) + - + 45
----
NULL
3

skipif mysql # not compatible
query II rowsort label-670
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) AS col0, ( + ( + 48 ) ) + - + 45
----
NULL
3

query II rowsort
SELECT - - 36 + + + ( - 31 ), 15 * + 11 AS col0
----
5
165

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-672
SELECT + COUNT( * ), 84 DIV + 88 AS col1
----
1
0

skipif mysql # not compatible
query II rowsort label-672
SELECT + COUNT ( * ), 84 / + 88 AS col1
----
1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-673
SELECT + + CASE + 21 WHEN 90 THEN NULL WHEN 79 THEN - + 69 * COALESCE ( + 96, - MIN( DISTINCT - 68 ), - 19 ) ELSE NULL END * - 11 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-673
SELECT + + CASE + 21 WHEN 90 THEN NULL WHEN 79 THEN - + 69 * COALESCE ( + 96, - MIN ( DISTINCT - 68 ), - 19 ) ELSE NULL END * - 11 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-674
SELECT ALL NULLIF ( - - 72, - 62 + + 66 * 98 + CASE COUNT( * ) WHEN - - 97 THEN - + 81 END / + ( MIN( DISTINCT 81 ) ) ) * - - 33 + 70 * - 96 + + 83 AS col2
----
-4261

skipif mysql # not compatible
query I rowsort label-674
SELECT ALL NULLIF ( - - 72, - 62 + + 66 * 98 + CASE COUNT ( * ) WHEN - - 97 THEN - + 81 END / + ( MIN ( DISTINCT 81 ) ) ) * - - 33 + 70 * - 96 + + 83 AS col2
----
-4261

query I rowsort
SELECT DISTINCT 74 * + 54 - + + 37
----
3959

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

query I rowsort
SELECT ALL 48 * - 58 - - ( - 49 ) AS col0
----
-2833

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-679
SELECT - COALESCE ( - + 92, - - 87 * - MIN( ALL + 99 ) * - 31 ) + - ( - 72 ) AS col2
----
164

skipif mysql # not compatible
query I rowsort label-679
SELECT - COALESCE ( - + 92, - - 87 * - MIN ( ALL + 99 ) * - 31 ) + - ( - 72 ) AS col2
----
164

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-680
SELECT + 7 - + ( - 1 ) + + - 18 * NULLIF ( CAST( - 44 AS SIGNED ), + NULLIF ( ( 90 ), 46 * - 95 ) )
----
800

skipif mysql # not compatible
query I rowsort label-680
SELECT + 7 - + ( - 1 ) + + - 18 * NULLIF ( CAST ( - 44 AS INTEGER ), + NULLIF ( ( 90 ), 46 * - 95 ) )
----
800

query I rowsort
SELECT + 66 * - 16
----
-1056

onlyif mysql # aggregate syntax: 
query I rowsort label-682
SELECT - 78 + - 33 + 66 * + - COUNT( * ) + - - 1
----
-176

skipif mysql # not compatible
query I rowsort label-682
SELECT - 78 + - 33 + 66 * + - COUNT ( * ) + - - 1
----
-176

query I rowsort
SELECT + 84 - - 16
----
100

onlyif mysql # aggregate syntax: 
query II rowsort label-684
SELECT + 54 + - + COUNT( * ) * + - 13 * - 82, COUNT( * ) AS col0
----
-1012
1

skipif mysql # not compatible
query II rowsort label-684
SELECT + 54 + - + COUNT ( * ) * + - 13 * - 82, COUNT ( * ) AS col0
----
-1012
1

query I rowsort
SELECT + 60 - 0 * + 5 * - 34
----
60

onlyif mysql # aggregate syntax: 
query II rowsort label-686
SELECT ALL 72 AS col0, COALESCE ( - + 75, + COUNT( * ) )
----
72
-75

skipif mysql # not compatible
query II rowsort label-686
SELECT ALL 72 AS col0, COALESCE ( - + 75, + COUNT ( * ) )
----
72
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-687
SELECT + 30 * 71 DIV 12
----
177

skipif mysql # not compatible
query I rowsort label-687
SELECT + 30 * 71 / 12
----
177

query I rowsort
SELECT ALL - 73 * 26
----
-1898

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

skipif mysql # not compatible
query I rowsort label-689
SELECT + 48 + - COUNT ( * ) AS col1
----
47

onlyif mysql # aggregate syntax: 
query II rowsort label-690
SELECT ALL COUNT( 61 ), + 49 AS col2
----
1
49

skipif mysql # not compatible
query II rowsort label-690
SELECT ALL COUNT ( 61 ), + 49 AS col2
----
1
49

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

query I rowsort
SELECT DISTINCT 88 * - 34 AS col2
----
-2992

query I rowsort
SELECT + 0 + - 27
----
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-694
SELECT + + 52 DIV + + 28 + COALESCE ( 92, 39 * + + SUM( + 81 ), + 32 * + 12 ), - 91 * 42 * - - ( 77 ) AS col1
----
93
-294294

skipif mysql # not compatible
query II rowsort label-694
SELECT + + 52 / + + 28 + COALESCE ( 92, 39 * + + SUM ( + 81 ), + 32 * + 12 ), - 91 * 42 * - - ( 77 ) AS col1
----
93
-294294

query I rowsort
SELECT + 33 + 85
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-696
SELECT MAX( 38 )
----
38

skipif mysql # not compatible
query I rowsort label-696
SELECT MAX ( 38 )
----
38

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-698
SELECT + + CAST( NULL AS SIGNED ) * - 45 AS col2, + 28 * - 6
----
NULL
-168

skipif mysql # not compatible
query II rowsort label-698
SELECT + + CAST ( NULL AS INTEGER ) * - 45 AS col2, + 28 * - 6
----
NULL
-168

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

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

query I rowsort
SELECT NULLIF ( - - 19, + - AVG ( 71 ) ) AS col2
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-701
SELECT + - 33 * COUNT( ALL 96 ) DIV - - 76 - - - COUNT( DISTINCT + 32 ) + + 87
----
86

skipif mysql # not compatible
query I rowsort label-701
SELECT + - 33 * COUNT ( ALL 96 ) / - - 76 - - - COUNT ( DISTINCT + 32 ) + + 87
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-702
SELECT ALL 18 / + 48 + + 47 * SUM( ALL - 85 ) + CASE - + 30 WHEN - COALESCE ( + - 51, - - 68 * - 29 ) THEN - 16 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-702
SELECT ALL 18 / + 48 + + 47 * SUM ( ALL - 85 ) + CASE - + 30 WHEN - COALESCE ( + - 51, - - 68 * - 29 ) THEN - 16 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT DISTINCT + + 44 AS col2
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-704
SELECT ALL - + 75 DIV + 76 + + 10
----
10

skipif mysql # not compatible
query I rowsort label-704
SELECT ALL - + 75 / + 76 + + 10
----
10

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-706
SELECT ALL 6 * - - ( - + 83 ) * - SUM( + 78 ) * - 90 AS col1, - 80 * 48
----
-3495960
-3840

skipif mysql # not compatible
query II rowsort label-706
SELECT ALL 6 * - - ( - + 83 ) * - SUM ( + 78 ) * - 90 AS col1, - 80 * 48
----
-3495960
-3840

query I rowsort
SELECT DISTINCT - - 10
----
10

query I rowsort
SELECT ALL - + COALESCE ( 24, 76 ) col1
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-709
SELECT + COUNT( * ) - - 33 AS col1
----
34

skipif mysql # not compatible
query I rowsort label-709
SELECT + COUNT ( * ) - - 33 AS col1
----
34

query I rowsort
SELECT 63 * + 29
----
1827

onlyif mysql # aggregate syntax: 
query I rowsort label-711
SELECT COALESCE ( 6, + 81 + + 64 - COUNT( 50 ), + 38 - - + ( 19 ) * + - 75, + + 13 ) * + 60 + - 68 * + 42 * + 1 col2
----
-2496

skipif mysql # not compatible
query I rowsort label-711
SELECT COALESCE ( 6, + 81 + + 64 - COUNT ( 50 ), + 38 - - + ( 19 ) * + - 75, + + 13 ) * + 60 + - 68 * + 42 * + 1 col2
----
-2496

query I rowsort
SELECT ALL + 31 - - - 86
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-713
SELECT ALL - 76 DIV - NULLIF ( - 8, 52 )
----
-9

skipif mysql # not compatible
query I rowsort label-713
SELECT ALL - 76 / - NULLIF ( - 8, 52 )
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-714
SELECT DISTINCT - COALESCE ( + 57, - COUNT( * ) ), + 55 AS col0
----
-57
55

skipif mysql # not compatible
query II rowsort label-714
SELECT DISTINCT - COALESCE ( + 57, - COUNT ( * ) ), + 55 AS col0
----
-57
55

query I rowsort
SELECT 17 + 93
----
110

onlyif mysql # DIV for integer division: 
query I rowsort label-716
SELECT 20 DIV + ( 20 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-716
SELECT 20 / + ( 20 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-717
SELECT 91 * - MAX( ALL + 54 ) AS col1
----
-4914

skipif mysql # not compatible
query I rowsort label-717
SELECT 91 * - MAX ( ALL + 54 ) AS col1
----
-4914

query I rowsort
SELECT 26 + 19 * - - 57 AS col2
----
1109

onlyif mysql # aggregate syntax: 
query I rowsort label-719
SELECT ALL + NULLIF ( - 79, - + 14 ) - - NULLIF ( - - 95, 6 + - 24 ) * - 63 * - COUNT( DISTINCT - - 3 ) - 38 AS col1
----
5868

skipif mysql # not compatible
query I rowsort label-719
SELECT ALL + NULLIF ( - 79, - + 14 ) - - NULLIF ( - - 95, 6 + - 24 ) * - 63 * - COUNT ( DISTINCT - - 3 ) - 38 AS col1
----
5868

query I rowsort
SELECT 4 * - 6 + + 27 * + 88 + - - 90
----
2442

query I rowsort
SELECT DISTINCT 18 col2
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-722
SELECT 9 * - COUNT( - 12 ) * + 36
----
-324

skipif mysql # not compatible
query I rowsort label-722
SELECT 9 * - COUNT ( - 12 ) * + 36
----
-324

query I rowsort
SELECT 45 * + ( - 41 )
----
-1845

onlyif mysql # aggregate syntax: 
query I rowsort label-724
SELECT ALL - ( MIN( + 22 ) ) + + CASE - COALESCE ( COUNT( * ), + 25 * - 31 + - 86 ) WHEN + + 6 * - COUNT( * ) + - 80 + - 28 / - 33 + + COUNT( * ) THEN + - 42 END + - ( + 75 ) + + 14 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-724
SELECT ALL - ( MIN ( + 22 ) ) + + CASE - COALESCE ( COUNT ( * ), + 25 * - 31 + - 86 ) WHEN + + 6 * - COUNT ( * ) + - 80 + - 28 / - 33 + + COUNT ( * ) THEN + - 42 END + - ( + 75 ) + + 14 AS col2
----
NULL

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

query I rowsort
SELECT 60 + - + 30 AS col0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-727
SELECT - 84 * + COUNT( * ) * - ( + 62 )
----
5208

skipif mysql # not compatible
query I rowsort label-727
SELECT - 84 * + COUNT ( * ) * - ( + 62 )
----
5208

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-728
SELECT 50 * + - COUNT( * ) * + 19 * + 57 * - 11 - + 49 + ( 83 ) DIV COUNT( * ) AS col2
----
595684

skipif mysql # not compatible
query I rowsort label-728
SELECT 50 * + - COUNT ( * ) * + 19 * + 57 * - 11 - + 49 + ( 83 ) / COUNT ( * ) AS col2
----
595684

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-729
SELECT ALL CASE - 57 WHEN - + 45 THEN - 96 DIV - + 97 + + COALESCE ( - 57, + - 5 * - 24 ) WHEN - + 4 * + CAST( NULL AS SIGNED ) + + 97 THEN NULL ELSE + - 55 + - + 37 + + + COALESCE ( - 74, - - 56 DIV COALESCE ( + 6, - + 90 ) + + 77 - 6 * - 18 ) + COUNT( + ( - 71 ) ) END col1
----
-165

skipif mysql # not compatible
query I rowsort label-729
SELECT ALL CASE - 57 WHEN - + 45 THEN - 96 / - + 97 + + COALESCE ( - 57, + - 5 * - 24 ) WHEN - + 4 * + CAST ( NULL AS INTEGER ) + + 97 THEN NULL ELSE + - 55 + - + 37 + + + COALESCE ( - 74, - - 56 / COALESCE ( + 6, - + 90 ) + + 77 - 6 * - 18 ) + COUNT ( + ( - 71 ) ) END col1
----
-165

query I rowsort
SELECT ALL 51 + 14
----
65

query II rowsort
SELECT 29 - + - 33 AS col0, - ( - - 32 ) col0
----
62
-32

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

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

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

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

onlyif mysql # aggregate syntax: 
query III rowsort label-734
SELECT ALL - 41 + + 39 AS col2, - 3 * + - 44 * - - 98 * + COUNT( * ) + + NULLIF ( + + 39, + 89 * + 39 ), - 73 * 55 AS col2
----
-2
12975
-4015

skipif mysql # not compatible
query III rowsort label-734
SELECT ALL - 41 + + 39 AS col2, - 3 * + - 44 * - - 98 * + COUNT ( * ) + + NULLIF ( + + 39, + 89 * + 39 ), - 73 * 55 AS col2
----
-2
12975
-4015

onlyif mysql # DIV for integer division: 
query II rowsort label-735
SELECT DISTINCT - 47 - - - 28, - ( - 11 ) DIV + 26 - 33 AS col2
----
-75
-33

skipif mysql # not compatible
query II rowsort label-735
SELECT DISTINCT - 47 - - - 28, - ( - 11 ) / + 26 - 33 AS col2
----
-75
-33

query I rowsort
SELECT DISTINCT 61 * - - 85 AS col2
----
5185

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

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

query I rowsort
SELECT 10 * - 97 AS col2
----
-970

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-740
SELECT CAST( CASE - COUNT( * ) WHEN CAST( - 84 AS SIGNED ) * + + 90 * 67 + + 87 THEN 90 * + 12 + + 2 END AS SIGNED ) * - 61 - - 95 + - 38 + 65 / - - SUM( + COALESCE ( + 96, 76 ) ) * + + 94
----
NULL

skipif mysql # not compatible
query I rowsort label-740
SELECT CAST ( CASE - COUNT ( * ) WHEN CAST ( - 84 AS INTEGER ) * + + 90 * 67 + + 87 THEN 90 * + 12 + + 2 END AS INTEGER ) * - 61 - - 95 + - 38 + 65 / - - SUM ( + COALESCE ( + 96, 76 ) ) * + + 94
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-741
SELECT 36 * + - COUNT( ALL - 47 ) AS col0, - ( + 26 )
----
-36
-26

skipif mysql # not compatible
query II rowsort label-741
SELECT 36 * + - COUNT ( ALL - 47 ) AS col0, - ( + 26 )
----
-36
-26

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

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

query I rowsort
SELECT 16 - + 24 + 17 + 53 AS col0
----
62

query I rowsort
SELECT 26 + - 27 AS col0
----
-1

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

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

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

skipif mysql # not compatible
query I rowsort label-746
SELECT DISTINCT + COUNT ( * ) + + - CAST ( NULL AS INTEGER ) - + 82 + - COUNT ( 68 ) AS col0
----
NULL

query I rowsort
SELECT ALL - 73 + + - 85
----
-158

onlyif mysql # DIV for integer division: 
query I rowsort label-748
SELECT 45 DIV - - 29 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-748
SELECT 45 / - - 29 AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-749
SELECT ALL + ( 45 ) + - 43 DIV - MIN( 11 )
----
48

skipif mysql # not compatible
query I rowsort label-749
SELECT ALL + ( 45 ) + - 43 / - MIN ( 11 )
----
48

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-750
SELECT CAST( NULL AS DECIMAL ) + - + ( - 19 ) AS col2, + COUNT( * ) * 42 * 99 - 54 + + + 87
----
NULL
4191

skipif mysql # not compatible
query II rowsort label-750
SELECT CAST ( NULL AS REAL ) + - + ( - 19 ) AS col2, + COUNT ( * ) * 42 * 99 - 54 + + + 87
----
NULL
4191

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

skipif mysql # not compatible
query I rowsort label-751
SELECT + COUNT ( * ) * 88 - - + COUNT ( * ) + - 54 / + 54
----
88

query I rowsort
SELECT 25 + 68
----
93

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-754
SELECT ALL - CAST( NULL AS SIGNED ) * 40 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-754
SELECT ALL - CAST ( NULL AS INTEGER ) * 40 AS col1
----
NULL

query II rowsort
SELECT 70, 39 AS col2
----
70
39

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

skipif mysql # not compatible
query I rowsort label-756
SELECT 75 + + COUNT ( * ) * NULLIF ( - CAST ( NULL AS INTEGER ), + COUNT ( * ) ) AS col0
----
NULL

query I rowsort
SELECT 19 + 33 * - + 78
----
-2555

query II rowsort
SELECT 44 AS col0, 26 * - 12 AS col1
----
44
-312

query I rowsort
SELECT ALL - 6 + + 40
----
34

query I rowsort
SELECT + 91 + CASE 52 WHEN - 85 THEN NULL WHEN - + NULLIF ( + 99, - 24 ) THEN NULL WHEN + 94 THEN + 0 END - - 71 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-761
SELECT - + 25 + + ( - 37 ) + - 89 + - + 22 * - COUNT( * ) * - 16 * - 78 * 61 * - + CASE + - COUNT( * ) WHEN + CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) THEN COUNT( * ) ELSE NULL END * + 17 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-761
SELECT - + 25 + + ( - 37 ) + - 89 + - + 22 * - COUNT ( * ) * - 16 * - 78 * 61 * - + CASE + - COUNT ( * ) WHEN + CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) THEN COUNT ( * ) ELSE NULL END * + 17 col1
----
NULL

query II rowsort
SELECT ALL 92 AS col1, - 49
----
92
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-763
SELECT ALL + CAST( NULL AS SIGNED ) + + + 3 + ( + 54 ) * + + COUNT( * ) + + 32 * 24 + - ( 15 ) AS col2, + MIN( ALL - 30 )
----
NULL
-30

skipif mysql # not compatible
query II rowsort label-763
SELECT ALL + CAST ( NULL AS INTEGER ) + + + 3 + ( + 54 ) * + + COUNT ( * ) + + 32 * 24 + - ( 15 ) AS col2, + MIN ( ALL - 30 )
----
NULL
-30

query I rowsort
SELECT + ( + - 92 ) + + 97
----
5

query II rowsort
SELECT + 93 AS col1, 31 * + 2
----
93
62

query I rowsort
SELECT - - 48 + 48 * + - 83 * - - 36 col1
----
-143376

query I rowsort
SELECT - - 23 col1
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-768
SELECT + COUNT( ALL 6 ) + COUNT( * ) - - - 27 AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-768
SELECT + COUNT ( ALL 6 ) + COUNT ( * ) - - - 27 AS col2
----
-25

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-770
SELECT + - 10 + 5 DIV + + 43 AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-770
SELECT + - 10 + 5 / + + 43 AS col1
----
-10

query I rowsort
SELECT + NULLIF ( 14, + - 90 + + 49 * 96 ) col2
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-772
SELECT ALL + CASE - 7 WHEN + 97 THEN 31 + - + NULLIF ( + + CASE + - COUNT( * ) WHEN 23 THEN 38 + + 58 + + + 15 WHEN - NULLIF ( + 46, - 15 + - - ( + ( - COUNT( * ) ) ) ) + - CAST( - + 70 AS SIGNED ) - 65 * - 19 THEN + + 86 ELSE + COUNT( * ) END, - MAX( 88 ) ) * - COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-772
SELECT ALL + CASE - 7 WHEN + 97 THEN 31 + - + NULLIF ( + + CASE + - COUNT ( * ) WHEN 23 THEN 38 + + 58 + + + 15 WHEN - NULLIF ( + 46, - 15 + - - ( + ( - COUNT ( * ) ) ) ) + - CAST ( - + 70 AS INTEGER ) - 65 * - 19 THEN + + 86 ELSE + COUNT ( * ) END, - MAX ( 88 ) ) * - COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-773
SELECT ALL + + 67 * 77 * + COUNT( - 18 )
----
5159

skipif mysql # not compatible
query I rowsort label-773
SELECT ALL + + 67 * 77 * + COUNT ( - 18 )
----
5159

onlyif mysql # aggregate syntax: 
query I rowsort label-774
SELECT ALL + - MAX( DISTINCT 67 ) AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-774
SELECT ALL + - MAX ( DISTINCT 67 ) AS col0
----
-67

query I rowsort
SELECT + 43 + - 44 AS col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-776
SELECT + 91 DIV - + 26 col0
----
-3

skipif mysql # not compatible
query I rowsort label-776
SELECT + 91 / - + 26 col0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-777
SELECT - MIN( - ( + 74 ) ) - - + COUNT( * ) + 8 + 66 AS col2
----
149

skipif mysql # not compatible
query I rowsort label-777
SELECT - MIN ( - ( + 74 ) ) - - + COUNT ( * ) + 8 + 66 AS col2
----
149

query I rowsort
SELECT + 67 * + 52
----
3484

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-779
SELECT CASE + 6 WHEN - 11 * 99 THEN 4 WHEN + ( - 15 ) * - CASE + 98 WHEN MAX( DISTINCT - + 20 ) THEN NULL ELSE - 9 END - - 15 - - 3 + 22 * - COALESCE ( 48, + COALESCE ( - ( + ( + 18 ) ), - 81 * + + COUNT( * ) * ( 12 ) * 97 + CAST( - 7 + 52 AS SIGNED ) ), - COUNT( * ) ) THEN - NULLIF ( - 33, 20 * - 60 ) / - 72 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-779
SELECT CASE + 6 WHEN - 11 * 99 THEN 4 WHEN + ( - 15 ) * - CASE + 98 WHEN MAX ( DISTINCT - + 20 ) THEN NULL ELSE - 9 END - - 15 - - 3 + 22 * - COALESCE ( 48, + COALESCE ( - ( + ( + 18 ) ), - 81 * + + COUNT ( * ) * ( 12 ) * 97 + CAST ( - 7 + 52 AS INTEGER ) ), - COUNT ( * ) ) THEN - NULLIF ( - 33, 20 * - 60 ) / - 72 END col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-780
SELECT 4 * + - 30 * + 88 + 42 * - - COALESCE ( + 46, + COALESCE ( 18, + 49 ) ) + + 70 * - CAST( - + 78 AS SIGNED ) - + + ( + SUM( DISTINCT + ( 14 ) ) ) * ( - 42 ) + - COUNT( * ) * NULLIF ( + 19, 43 - ( 42 ) - NULLIF ( 65, 21 ) ) AS col0
----
-2599

skipif mysql # not compatible
query I rowsort label-780
SELECT 4 * + - 30 * + 88 + 42 * - - COALESCE ( + 46, + COALESCE ( 18, + 49 ) ) + + 70 * - CAST ( - + 78 AS INTEGER ) - + + ( + SUM ( DISTINCT + ( 14 ) ) ) * ( - 42 ) + - COUNT ( * ) * NULLIF ( + 19, 43 - ( 42 ) - NULLIF ( 65, 21 ) ) AS col0
----
-2599

onlyif mysql # DIV for integer division: 
query I rowsort label-781
SELECT ALL 49 DIV 12
----
4

skipif mysql # not compatible
query I rowsort label-781
SELECT ALL 49 / 12
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-782
SELECT + 55 DIV + + 57 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-782
SELECT + 55 / + + 57 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-783
SELECT + 31 * - COUNT( * ) * 83
----
-2573

skipif mysql # not compatible
query I rowsort label-783
SELECT + 31 * - COUNT ( * ) * 83
----
-2573

onlyif mysql # aggregate syntax: 
query I rowsort label-784
SELECT ALL - COUNT( * ) * + 27 + - - 80
----
53

skipif mysql # not compatible
query I rowsort label-784
SELECT ALL - COUNT ( * ) * + 27 + - - 80
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-785
SELECT CASE - ( + COUNT( * ) ) WHEN + 64 THEN NULL ELSE - 96 END col2
----
-96

skipif mysql # not compatible
query I rowsort label-785
SELECT CASE - ( + COUNT ( * ) ) WHEN + 64 THEN NULL ELSE - 96 END col2
----
-96

query II rowsort
SELECT ALL + 14 * 37 AS col2, - 8
----
518
-8

query I rowsort
SELECT + 1 * - - 37 * - 98 AS col0
----
-3626

onlyif mysql # aggregate syntax: 
query I rowsort label-788
SELECT ALL - 30 * - - COUNT( * ) + + COUNT( * )
----
-29

skipif mysql # not compatible
query I rowsort label-788
SELECT ALL - 30 * - - COUNT ( * ) + + COUNT ( * )
----
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-789
SELECT DISTINCT + 47 * - + 1 DIV - - ( + 89 ) + 30 + - - 27 * - 55
----
-1455

skipif mysql # not compatible
query I rowsort label-789
SELECT DISTINCT + 47 * - + 1 / - - ( + 89 ) + 30 + - - 27 * - 55
----
-1455

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-790
SELECT + ( + - CAST( NULL AS DECIMAL ) ) AS col2, 84 AS col0
----
NULL
84

skipif mysql # not compatible
query II rowsort label-790
SELECT + ( + - CAST ( NULL AS REAL ) ) AS col2, 84 AS col0
----
NULL
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-791
SELECT + NULLIF ( NULLIF ( - + ( 87 ), + CAST( - + ( - ( - 10 ) ) AS SIGNED ) ), - CASE - 47 WHEN - 42 THEN 67 * + - 15 + ( - 67 ) * + + 36 + - + 76 END )
----
-87

skipif mysql # not compatible
query I rowsort label-791
SELECT + NULLIF ( NULLIF ( - + ( 87 ), + CAST ( - + ( - ( - 10 ) ) AS INTEGER ) ), - CASE - 47 WHEN - 42 THEN 67 * + - 15 + ( - 67 ) * + + 36 + - + 76 END )
----
-87

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

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

query I rowsort
SELECT + 65 * + - 8 * - 36 * - 37 AS col2
----
-692640

onlyif mysql # aggregate syntax: 
query II rowsort label-794
SELECT + MIN( 5 ) * - COUNT( * ) + - 85 AS col0, 21 * - 76
----
-90
-1596

skipif mysql # not compatible
query II rowsort label-794
SELECT + MIN ( 5 ) * - COUNT ( * ) + - 85 AS col0, 21 * - 76
----
-90
-1596

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-795
SELECT MAX( - CAST( NULL AS DECIMAL ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-795
SELECT MAX ( - CAST ( NULL AS REAL ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-796
SELECT - 47 + COALESCE ( - 8, + 82 ) * COUNT( * ) * - + 45 * + CAST( 54 AS SIGNED ) + COUNT( * ) AS col1, - 30 + + - 25 AS col0
----
19394
-55

skipif mysql # not compatible
query II rowsort label-796
SELECT - 47 + COALESCE ( - 8, + 82 ) * COUNT ( * ) * - + 45 * + CAST ( 54 AS INTEGER ) + COUNT ( * ) AS col1, - 30 + + - 25 AS col0
----
19394
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-797
SELECT MAX( - ( + - 38 ) ) AS col2
----
38

skipif mysql # not compatible
query I rowsort label-797
SELECT MAX ( - ( + - 38 ) ) AS col2
----
38

query I rowsort
SELECT ALL + + 11 + + + 60 + + + 40 AS col2
----
111

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

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

query I rowsort
SELECT - - 63 * - 40 * - + 29 + + CASE 89 WHEN + - 2 THEN 70 WHEN + + 56 THEN NULL END
----
NULL

query I rowsort
SELECT + - 94 - 39 AS col0
----
-133

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-803
SELECT + + ( + 76 ) + + + 37 + CAST( NULL AS SIGNED ) * + - 7 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-803
SELECT + + ( + 76 ) + + + 37 + CAST ( NULL AS INTEGER ) * + - 7 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-804
SELECT - - 14 DIV - 28 + + - ( - 84 ), + ( - 55 ) * 8 * - 47 AS col2
----
84
20680

skipif mysql # not compatible
query II rowsort label-804
SELECT - - 14 / - 28 + + - ( - 84 ), + ( - 55 ) * 8 * - 47 AS col2
----
84
20680

query I rowsort
SELECT - - 2 * - 13 AS col1
----
-26

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-806
SELECT DISTINCT CAST( 94 AS SIGNED ) - + + 80 DIV - 80 + 31 + - 73
----
53

skipif mysql # not compatible
query I rowsort label-806
SELECT DISTINCT CAST ( 94 AS INTEGER ) - + + 80 / - 80 + 31 + - 73
----
53

query I rowsort
SELECT ALL 61 * - 44 * 36
----
-96624

query I rowsort
SELECT - 5 - + 42 AS col0
----
-47

query I rowsort
SELECT DISTINCT + + ( - 55 ) * 86
----
-4730

query I rowsort
SELECT - - 62 * CASE + 87 WHEN + - 56 THEN + 15 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-811
SELECT + COUNT( DISTINCT + - NULLIF ( + 88, 2 - - - 71 ) )
----
1

skipif mysql # not compatible
query I rowsort label-811
SELECT + COUNT ( DISTINCT + - NULLIF ( + 88, 2 - - - 71 ) )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-812
SELECT SUM( 38 ), - 31 + + 52 + + + 41 * - 51 * + 82 AS col0
----
38
-171441

skipif mysql # not compatible
query II rowsort label-812
SELECT SUM ( 38 ), - 31 + + 52 + + + 41 * - 51 * + 82 AS col0
----
38
-171441

onlyif mysql # DIV for integer division: 
query I rowsort label-813
SELECT + 51 DIV + NULLIF ( - 60, 32 ) + - - 63 + - 10 * - + 33 AS col1
----
393

skipif mysql # not compatible
query I rowsort label-813
SELECT + 51 / + NULLIF ( - 60, 32 ) + - - 63 + - 10 * - + 33 AS col1
----
393

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-815
SELECT - CAST( - 60 AS SIGNED ) * - 17 AS col0
----
-1020

skipif mysql # not compatible
query I rowsort label-815
SELECT - CAST ( - 60 AS INTEGER ) * - 17 AS col0
----
-1020

onlyif mysql # aggregate syntax: 
query I rowsort label-816
SELECT + 85 * - COUNT( * ) * + 44 AS col0
----
-3740

skipif mysql # not compatible
query I rowsort label-816
SELECT + 85 * - COUNT ( * ) * + 44 AS col0
----
-3740

query I rowsort
SELECT DISTINCT + 27 * + 25 * + + 27 * 19 col2
----
346275

onlyif mysql # aggregate syntax: 
query II rowsort label-818
SELECT DISTINCT + COUNT( * ) AS col1, 38 + + 69 * 2
----
1
176

skipif mysql # not compatible
query II rowsort label-818
SELECT DISTINCT + COUNT ( * ) AS col1, 38 + + 69 * 2
----
1
176

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-819
SELECT ALL - 45 / 33 * CAST( NULL AS DECIMAL ) * + 66
----
NULL

skipif mysql # not compatible
query I rowsort label-819
SELECT ALL - 45 / 33 * CAST ( NULL AS REAL ) * + 66
----
NULL

query I rowsort
SELECT - 49 * - 75
----
3675

onlyif mysql # DIV for integer division: 
query II rowsort label-821
SELECT ALL - 86 DIV + 61 + + + 84, - 23 * + - 34 * - 80 * - 80 AS col2
----
83
5004800

skipif mysql # not compatible
query II rowsort label-821
SELECT ALL - 86 / + 61 + + + 84, - 23 * + - 34 * - 80 * - 80 AS col2
----
83
5004800

onlyif mysql # DIV for integer division: 
query I rowsort label-822
SELECT ALL + 2 DIV 90 + 62 + - 10 * 26 * + - 48 AS col2
----
12542

skipif mysql # not compatible
query I rowsort label-822
SELECT ALL + 2 / 90 + 62 + - 10 * 26 * + - 48 AS col2
----
12542

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

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

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

query I rowsort
SELECT - 89 + + 93 col0
----
4

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

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

query I rowsort
SELECT 46 * + + 45 + + 2 AS col0
----
2072

onlyif mysql # DIV for integer division: 
query I rowsort label-829
SELECT + 71 DIV 64 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-829
SELECT + 71 / 64 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-830
SELECT + CASE + - 69 WHEN - + 55 THEN 29 ELSE + COUNT( * ) * 51 + + 66 END AS col1
----
117

skipif mysql # not compatible
query I rowsort label-830
SELECT + CASE + - 69 WHEN - + 55 THEN 29 ELSE + COUNT ( * ) * 51 + + 66 END AS col1
----
117

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-832
SELECT ALL + MAX( ALL + 86 ) col2
----
86

skipif mysql # not compatible
query I rowsort label-832
SELECT ALL + MAX ( ALL + 86 ) col2
----
86

query I rowsort
SELECT 51 + + 84 AS col1
----
135

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-836
SELECT MAX( DISTINCT - + 89 ) + + COUNT( * ) + 35
----
-53

skipif mysql # not compatible
query I rowsort label-836
SELECT MAX ( DISTINCT - + 89 ) + + COUNT ( * ) + 35
----
-53

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-839
SELECT 15 + + COUNT( * ) col1
----
16

skipif mysql # not compatible
query I rowsort label-839
SELECT 15 + + COUNT ( * ) col1
----
16

query I rowsort
SELECT ALL 79 * - 87 AS col2
----
-6873

onlyif mysql # aggregate syntax: 
query I rowsort label-841
SELECT + MIN( DISTINCT - 41 ) + - COUNT( * ) * - + MIN( DISTINCT 12 ) AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-841
SELECT + MIN ( DISTINCT - 41 ) + - COUNT ( * ) * - + MIN ( DISTINCT 12 ) AS col2
----
-29

query I rowsort
SELECT ( + 62 ) - + 15 AS col2
----
47

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

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

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

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

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

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

query I rowsort
SELECT - 3 + + - 95
----
-98

query II rowsort
SELECT ALL + 20 AS col2, 41 + ( - - NULLIF ( - 22, - 48 + 47 ) ) * - 48 * 32
----
20
33833

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-849
SELECT DISTINCT 90 DIV + MIN( DISTINCT + 77 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-849
SELECT DISTINCT 90 / + MIN ( DISTINCT + 77 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-850
SELECT ALL + COUNT( - 73 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-850
SELECT ALL + COUNT ( - 73 ) AS col2
----
1

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-852
SELECT ALL - + 0 * - 55 + + NULLIF ( CAST( NULL AS DECIMAL ), - 32 * - 26 * + 53 ) + + COUNT( * ) * + ( 76 ) + - - ( + 48 ) - + 67 * + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-852
SELECT ALL - + 0 * - 55 + + NULLIF ( CAST ( NULL AS REAL ), - 32 * - 26 * + 53 ) + + COUNT ( * ) * + ( 76 ) + - - ( + 48 ) - + 67 * + + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-853
SELECT - MAX( DISTINCT + 93 ) + - 8
----
-101

skipif mysql # not compatible
query I rowsort label-853
SELECT - MAX ( DISTINCT + 93 ) + - 8
----
-101

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-854
SELECT DISTINCT - NULLIF ( 10, - - 20 * - CASE - 26 WHEN CASE 68 WHEN + ( 78 ) / 69 * - 21 THEN CAST( 42 AS SIGNED ) END THEN + + 72 ELSE - 59 END - MIN( 28 ) * + - 70 ) + - 65 AS col1, 77 AS col1
----
-75
77

skipif mysql # not compatible
query II rowsort label-854
SELECT DISTINCT - NULLIF ( 10, - - 20 * - CASE - 26 WHEN CASE 68 WHEN + ( 78 ) / 69 * - 21 THEN CAST ( 42 AS INTEGER ) END THEN + + 72 ELSE - 59 END - MIN ( 28 ) * + - 70 ) + - 65 AS col1, 77 AS col1
----
-75
77

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

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

query I rowsort
SELECT DISTINCT + NULLIF ( - 3, - - 80 ) + 81 col1
----
78

query I rowsort
SELECT ALL - 86 + - + 17
----
-103

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-860
SELECT DISTINCT - 41 + + + 9 / 53 AS col1
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-861
SELECT ALL - COUNT( DISTINCT - - 76 )
----
-1

skipif mysql # not compatible
query I rowsort label-861
SELECT ALL - COUNT ( DISTINCT - - 76 )
----
-1

query I rowsort
SELECT ALL - COALESCE ( - 48, - 82, - 30 ) + + ( 82 ) * + 27 AS col2
----
2262

onlyif mysql # aggregate syntax: 
query I rowsort label-863
SELECT DISTINCT - MAX( ALL 77 ) AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-863
SELECT DISTINCT - MAX ( ALL 77 ) AS col1
----
-77

query I rowsort
SELECT 19 - - 24
----
43

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-866
SELECT 70 + CASE - 15 WHEN + + 83 + + AVG ( + + 82 ) + - + 38 * + + SUM( + + 16 ) * - 19 - - 12 + - CASE 23 WHEN - 27 THEN + - 35 END + - SUM( - + CAST( NULL AS SIGNED ) ) THEN + 13 * + COUNT( * ) * - 6 + - + ( - 68 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-866
SELECT 70 + CASE - 15 WHEN + + 83 + + AVG ( + + 82 ) + - + 38 * + + SUM ( + + 16 ) * - 19 - - 12 + - CASE 23 WHEN - 27 THEN + - 35 END + - SUM ( - + CAST ( NULL AS INTEGER ) ) THEN + 13 * + COUNT ( * ) * - 6 + - + ( - 68 ) ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - 79 - + 32
----
-111

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-869
SELECT DISTINCT - ( 34 ) DIV + + 21 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-869
SELECT DISTINCT - ( 34 ) / + + 21 AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-870
SELECT ALL - 79 - - 98 * + 26 * CAST( 46 AS SIGNED ) + 55 AS col0
----
117184

skipif mysql # not compatible
query I rowsort label-870
SELECT ALL - 79 - - 98 * + 26 * CAST ( 46 AS INTEGER ) + 55 AS col0
----
117184

query I rowsort
SELECT - 10 * 64 AS col0
----
-640

query I rowsort
SELECT 52 * 26 + + + 59
----
1411

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-874
SELECT - 93 + - CASE + CAST( - 77 AS SIGNED ) WHEN + 85 THEN + + 22 + - 54 + + 81 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-874
SELECT - 93 + - CASE + CAST ( - 77 AS INTEGER ) WHEN + 85 THEN + + 22 + - 54 + + 81 END AS col0
----
NULL

query II rowsort
SELECT ALL - - 68 AS col1, + 12 AS col2
----
68
12

onlyif mysql # aggregate syntax: 
query I rowsort label-876
SELECT + - COUNT( * ) * COUNT( ALL - ( - 91 ) ) + - + 75
----
-76

skipif mysql # not compatible
query I rowsort label-876
SELECT + - COUNT ( * ) * COUNT ( ALL - ( - 91 ) ) + - + 75
----
-76

query II rowsort
SELECT ALL + 16 AS col2, + 70 AS col0
----
16
70

query I rowsort
SELECT - 20 + - 84 * + 27 AS col0
----
-2288

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-879
SELECT - CASE - 87 WHEN 66 * + 7 / + + 27 - 85 THEN + CAST( - - 90 AS SIGNED ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-879
SELECT - CASE - 87 WHEN 66 * + 7 / + + 27 - 85 THEN + CAST ( - - 90 AS INTEGER ) END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-880
SELECT ALL + 80 DIV 19
----
4

skipif mysql # not compatible
query I rowsort label-880
SELECT ALL + 80 / 19
----
4

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

onlyif mysql # aggregate syntax: 
query I rowsort label-882
SELECT 32 - + - ( + COUNT( + 6 ) )
----
33

skipif mysql # not compatible
query I rowsort label-882
SELECT 32 - + - ( + COUNT ( + 6 ) )
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-883
SELECT ALL - COUNT( - 22 ) + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-883
SELECT ALL - COUNT ( - 22 ) + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT - 67 + - - 63 AS col2
----
-4

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-886
SELECT ALL - 82 DIV - - COUNT( - 85 ) AS col1
----
-82

skipif mysql # not compatible
query I rowsort label-886
SELECT ALL - 82 / - - COUNT ( - 85 ) AS col1
----
-82

query I rowsort
SELECT DISTINCT 31 + - 93
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-888
SELECT COALESCE ( - ( 78 ), COUNT( DISTINCT NULLIF ( + 92, + 72 ) ) + + 22 ) AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-888
SELECT COALESCE ( - ( 78 ), COUNT ( DISTINCT NULLIF ( + 92, + 72 ) ) + + 22 ) AS col2
----
-78

query I rowsort
SELECT NULLIF ( 50, - 61 )
----
50

query I rowsort
SELECT DISTINCT + 65 * - + 1
----
-65

query I rowsort
SELECT NULLIF ( 47, - 55 ) + - 31 AS col0
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-892
SELECT + COUNT( * ) DIV - 2 - CASE CAST( NULL AS DECIMAL ) WHEN + 38 * + 91 + + - 97 THEN NULL WHEN - CAST( 75 AS SIGNED ) + - + 52 + + COUNT( * ) * 33 + + 13 THEN + - 0 ELSE + + MIN( 36 ) + - 44 * 44 END * 5
----
9500

skipif mysql # not compatible
query I rowsort label-892
SELECT + COUNT ( * ) / - 2 - CASE CAST ( NULL AS REAL ) WHEN + 38 * + 91 + + - 97 THEN NULL WHEN - CAST ( 75 AS INTEGER ) + - + 52 + + COUNT ( * ) * 33 + + 13 THEN + - 0 ELSE + + MIN ( 36 ) + - 44 * 44 END * 5
----
9500

onlyif mysql # aggregate syntax: 
query I rowsort label-893
SELECT ALL + MAX( + 0 ) * 65
----
0

skipif mysql # not compatible
query I rowsort label-893
SELECT ALL + MAX ( + 0 ) * 65
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-894
SELECT CASE + 80 WHEN + - 67 THEN + 79 / - 78 / + ( ( COUNT( * ) ) ) ELSE 25 END AS col2
----
25

skipif mysql # not compatible
query I rowsort label-894
SELECT CASE + 80 WHEN + - 67 THEN + 79 / - 78 / + ( ( COUNT ( * ) ) ) ELSE 25 END AS col2
----
25

query I rowsort
SELECT ALL 24 * 5 * - + 67 * + 48
----
-385920

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-896
SELECT DISTINCT ( + 91 ) * 16 * - - MIN( ALL - CAST( 83 AS SIGNED ) ) + + ( + - 82 )
----
-120930

skipif mysql # not compatible
query I rowsort label-896
SELECT DISTINCT ( + 91 ) * 16 * - - MIN ( ALL - CAST ( 83 AS INTEGER ) ) + + ( + - 82 )
----
-120930

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-897
SELECT DISTINCT - 55 * + + CASE CASE - - 43 WHEN + 79 THEN - 57 - + + ( ( 75 ) ) WHEN - 72 THEN NULL WHEN - + 66 THEN COALESCE ( - - COUNT( * ), - 29 ) * + 72 + 36 ELSE NULL END WHEN - 84 * - COUNT( * ) + + 94 THEN 95 * - 32 + - 62 WHEN - - 54 * - - CAST( - - COUNT( ALL 25 ) AS DECIMAL ) THEN NULL ELSE + - 6 END - + 45 AS col1
----
285

skipif mysql # not compatible
query I rowsort label-897
SELECT DISTINCT - 55 * + + CASE CASE - - 43 WHEN + 79 THEN - 57 - + + ( ( 75 ) ) WHEN - 72 THEN NULL WHEN - + 66 THEN COALESCE ( - - COUNT ( * ), - 29 ) * + 72 + 36 ELSE NULL END WHEN - 84 * - COUNT ( * ) + + 94 THEN 95 * - 32 + - 62 WHEN - - 54 * - - CAST ( - - COUNT ( ALL 25 ) AS REAL ) THEN NULL ELSE + - 6 END - + 45 AS col1
----
285

query I rowsort
SELECT ALL 77 * + 65 AS col0
----
5005

query I rowsort
SELECT + 0 + - + 29 + - + 24
----
-53

query I rowsort
SELECT + 94 col0
----
94

query I rowsort
SELECT + 8 + + - 67
----
-59

query I rowsort
SELECT - 82 * 93 AS col1
----
-7626

onlyif mysql # aggregate syntax: 
query I rowsort label-903
SELECT ALL - + ( + - SUM( ALL + - 16 ) ) * - COUNT( * )
----
16

skipif mysql # not compatible
query I rowsort label-903
SELECT ALL - + ( + - SUM ( ALL + - 16 ) ) * - COUNT ( * )
----
16

query I rowsort
SELECT - 35 + + 2 + - 28 * - 94
----
2599

onlyif mysql # aggregate syntax: 
query II rowsort label-905
SELECT - - 40 + 47 AS col2, + COALESCE ( - COUNT( * ), NULLIF ( + ( + 27 ), - COUNT( * ) ) * + COUNT( * ) * - MAX( - 85 ) )
----
87
-1

skipif mysql # not compatible
query II rowsort label-905
SELECT - - 40 + 47 AS col2, + COALESCE ( - COUNT ( * ), NULLIF ( + ( + 27 ), - COUNT ( * ) ) * + COUNT ( * ) * - MAX ( - 85 ) )
----
87
-1

query I rowsort
SELECT ALL + 35 * - 77
----
-2695

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

query I rowsort
SELECT - + CASE + - CASE 30 WHEN 42 THEN NULL ELSE - ( + - AVG ( DISTINCT - + 96 ) ) - + 1 - + - 97 END WHEN - + 75 * - 69 THEN + - 51 * 59 * 83 END + + - ( - + 82 )
----
NULL

query I rowsort
SELECT DISTINCT - - 95 + - ( 54 )
----
41

query I rowsort
SELECT - 24 + - 83 AS col0
----
-107

query I rowsort
SELECT ALL - - 45 + - 83 col1
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-912
SELECT - COUNT( * ) + ( + 76 )
----
75

skipif mysql # not compatible
query I rowsort label-912
SELECT - COUNT ( * ) + ( + 76 )
----
75

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-914
SELECT + - 25 + - NULLIF ( - 56, + + CASE WHEN - CASE - + CAST( - + 28 AS SIGNED ) WHEN - 17 * + MAX( ALL + - 68 ) * 9 * - - CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) THEN - CAST( + 54 AS SIGNED ) - + 95 ELSE NULL END BETWEEN ( - - 86 * + ( - 40 ) - 6 ) AND + 59 * + ( 29 ) THEN - 30 / + ( + AVG ( ALL 63 ) ) * + ( 45 * - 41 ) END ) + + MIN( 57 + ( 21 ) )
----
109

skipif mysql # not compatible
query I rowsort label-914
SELECT + - 25 + - NULLIF ( - 56, + + CASE WHEN - CASE - + CAST ( - + 28 AS INTEGER ) WHEN - 17 * + MAX ( ALL + - 68 ) * 9 * - - CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) THEN - CAST ( + 54 AS INTEGER ) - + 95 ELSE NULL END BETWEEN ( - - 86 * + ( - 40 ) - 6 ) AND + 59 * + ( 29 ) THEN - 30 / + ( + AVG ( ALL 63 ) ) * + ( 45 * - 41 ) END ) + + MIN ( 57 + ( 21 ) )
----
109

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-915
SELECT ALL - CAST( NULL AS SIGNED ) + + 9 AS col1, + 80 AS col0
----
NULL
80

skipif mysql # not compatible
query II rowsort label-915
SELECT ALL - CAST ( NULL AS INTEGER ) + + 9 AS col1, + 80 AS col0
----
NULL
80

query I rowsort
SELECT ALL - + 53 + - 74 AS col2
----
-127

onlyif mysql # DIV for integer division: 
query I rowsort label-917
SELECT DISTINCT 8 DIV + + 60
----
0

skipif mysql # not compatible
query I rowsort label-917
SELECT DISTINCT 8 / + + 60
----
0

query I rowsort
SELECT DISTINCT - - 3 + - 23
----
-20

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

skipif mysql # not compatible
query I rowsort label-919
SELECT ALL COUNT ( DISTINCT + 30 ) * - 32 * + + COUNT ( * ) AS col1
----
-32

query I rowsort
SELECT ALL - ( + 1 ) + + 57 + 74 AS col1
----
130

query I rowsort
SELECT DISTINCT ( 99 ) col0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-922
SELECT + COUNT( - 34 ) + 98 * - 70 + 73 + NULLIF ( 37, - 8 ) AS col0
----
-6749

skipif mysql # not compatible
query I rowsort label-922
SELECT + COUNT ( - 34 ) + 98 * - 70 + 73 + NULLIF ( 37, - 8 ) AS col0
----
-6749

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-924
SELECT - 49 * - + COALESCE ( + 30, + - 63 * - 7 DIV - 68 )
----
1470

skipif mysql # not compatible
query I rowsort label-924
SELECT - 49 * - + COALESCE ( + 30, + - 63 * - 7 / - 68 )
----
1470

query I rowsort
SELECT + 55 * 64
----
3520

query I rowsort
SELECT + 66 + - + 39 * - 87 - + 49 AS col0
----
3410

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

skipif mysql # not compatible
query I rowsort label-927
SELECT - NULLIF ( - - COUNT ( * ), + + 39 )
----
-1

query I rowsort
SELECT + 19 * + 68 AS col1
----
1292

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-929
SELECT + 19 DIV + COUNT( + - 9 ) + - 7 AS col0
----
12

skipif mysql # not compatible
query I rowsort label-929
SELECT + 19 / + COUNT ( + - 9 ) + - 7 AS col0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-930
SELECT + 12 + - COUNT( * ) AS col2
----
11

skipif mysql # not compatible
query I rowsort label-930
SELECT + 12 + - COUNT ( * ) AS col2
----
11

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

onlyif mysql # aggregate syntax: 
query I rowsort label-932
SELECT + CASE + + COALESCE ( SUM( + 15 ), + + 9 + 53 ) WHEN 21 THEN - 2 + - + CASE - 85 WHEN - 77 * 36 THEN + 50 WHEN COUNT( * ) + 54 + + MAX( DISTINCT + 29 ) * 22 THEN NULL WHEN - - 27 * + 93 THEN NULL END WHEN + - 67 + - 61 / - - ( - + 71 ) THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-932
SELECT + CASE + + COALESCE ( SUM ( + 15 ), + + 9 + 53 ) WHEN 21 THEN - 2 + - + CASE - 85 WHEN - 77 * 36 THEN + 50 WHEN COUNT ( * ) + 54 + + MAX ( DISTINCT + 29 ) * 22 THEN NULL WHEN - - 27 * + 93 THEN NULL END WHEN + - 67 + - 61 / - - ( - + 71 ) THEN NULL ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT + COALESCE ( - - 43, 50 ) AS col1
----
43

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-934
SELECT ( 64 ) * - + 30 * - ( - - 45 ) + - - CAST( NULL AS DECIMAL ) * - + 80 + 5, 36 * - 86 AS col2
----
NULL
-3096

skipif mysql # not compatible
query II rowsort label-934
SELECT ( 64 ) * - + 30 * - ( - - 45 ) + - - CAST ( NULL AS REAL ) * - + 80 + 5, 36 * - 86 AS col2
----
NULL
-3096

query I rowsort
SELECT DISTINCT + 21 col2
----
21

query II rowsort
SELECT ALL - 25 * + - 58 + 71 AS col2, 39 AS col0
----
1521
39

query I rowsort
SELECT + + 61 * + + 45
----
2745

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

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

query I rowsort
SELECT + COALESCE ( + 16, + 98 ) col1
----
16

query I rowsort
SELECT + COALESCE ( - - 80, - + 95 ) * - 69
----
-5520

query II rowsort
SELECT - 55 * + - 98 + 30 AS col2, + 56 AS col0
----
5420
56

onlyif mysql # aggregate syntax: 
query I rowsort label-942
SELECT DISTINCT 56 * - - 26 + ( + COALESCE ( - + 16, 29, 79 ) ) * + 78 * - + ( - - SUM( + 33 ) ) + + - ( 28 ) + + + 55 AS col0
----
42667

skipif mysql # not compatible
query I rowsort label-942
SELECT DISTINCT 56 * - - 26 + ( + COALESCE ( - + 16, 29, 79 ) ) * + 78 * - + ( - - SUM ( + 33 ) ) + + - ( 28 ) + + + 55 AS col0
----
42667

query I rowsort
SELECT ALL 93 * - 33 + 59 AS col1
----
-3010

query I rowsort
SELECT + + CASE - 5 WHEN - - 89 THEN + 11 + NULLIF ( + ( + ( 32 ) ), - 32 ) END AS col1
----
NULL

query I rowsort
SELECT ALL + 25 * - 68 + + 90
----
-1610

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-946
SELECT + - 34 * + 25 + + CAST( + CASE 48 WHEN + 18 THEN + + 25 * 79 ELSE 64 END AS SIGNED ) col0
----
-786

skipif mysql # not compatible
query I rowsort label-946
SELECT + - 34 * + 25 + + CAST ( + CASE 48 WHEN + 18 THEN + + 25 * 79 ELSE 64 END AS INTEGER ) col0
----
-786

query II rowsort
SELECT ALL + COALESCE ( - - 87, - ( - 49 ) ) col0, 55 * + 26 + - + 10
----
87
1420

onlyif mysql # aggregate syntax: 
query I rowsort label-948
SELECT - NULLIF ( - 92, + - 47 / - 17 + + 69 / + 95 + 2 + + CASE + COUNT( * ) WHEN - 59 + - 99 THEN - - COUNT( * ) - + + 77 + 4 END - - MAX( ALL 31 ) + - 94 / - 31 )
----
92

skipif mysql # not compatible
query I rowsort label-948
SELECT - NULLIF ( - 92, + - 47 / - 17 + + 69 / + 95 + 2 + + CASE + COUNT ( * ) WHEN - 59 + - 99 THEN - - COUNT ( * ) - + + 77 + 4 END - - MAX ( ALL 31 ) + - 94 / - 31 )
----
92

query I rowsort
SELECT ALL - 96 * - 95 + - 21
----
9099

onlyif mysql # aggregate syntax: 
query II rowsort label-950
SELECT - - ( ( - MAX( ALL + 30 ) ) ) AS col1, - NULLIF ( - COUNT( * ), - 38 + + - 68 ) col0
----
-30
1

skipif mysql # not compatible
query II rowsort label-950
SELECT - - ( ( - MAX ( ALL + 30 ) ) ) AS col1, - NULLIF ( - COUNT ( * ), - 38 + + - 68 ) col0
----
-30
1

query I rowsort
SELECT DISTINCT + 96 * - 94 + + 30 * 1
----
-8994

onlyif mysql # DIV for integer division: 
query I rowsort label-952
SELECT - 85 DIV - 13
----
6

skipif mysql # not compatible
query I rowsort label-952
SELECT - 85 / - 13
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-953
SELECT - MAX( + 68 ), - MAX( DISTINCT - + CASE - + 98 WHEN 24 THEN NULL WHEN + 96 * - 26 THEN 72 + 25 WHEN - 20 THEN - 42 END ) + 48 AS col0
----
-68
NULL

skipif mysql # not compatible
query II rowsort label-953
SELECT - MAX ( + 68 ), - MAX ( DISTINCT - + CASE - + 98 WHEN 24 THEN NULL WHEN + 96 * - 26 THEN 72 + 25 WHEN - 20 THEN - 42 END ) + 48 AS col0
----
-68
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-954
SELECT ALL - NULLIF ( 57, + AVG ( - ( + 60 ) ) * - - 15 - - ( COUNT( DISTINCT 16 ) ) / + COUNT( * ) ) - + 29 AS col1
----
-86

skipif mysql # not compatible
query I rowsort label-954
SELECT ALL - NULLIF ( 57, + AVG ( - ( + 60 ) ) * - - 15 - - ( COUNT ( DISTINCT 16 ) ) / + COUNT ( * ) ) - + 29 AS col1
----
-86

query I rowsort
SELECT - 73 - 69 * + 1
----
-142

onlyif mysql # aggregate syntax: 
query I rowsort label-956
SELECT - 49 + - - NULLIF ( + 76, + 24 * 62 / - - 35 - ( ( - + 92 ) ) - - - COUNT( * ) / + 22 + + 43 )
----
27

skipif mysql # not compatible
query I rowsort label-956
SELECT - 49 + - - NULLIF ( + 76, + 24 * 62 / - - 35 - ( ( - + 92 ) ) - - - COUNT ( * ) / + 22 + + 43 )
----
27

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

skipif mysql # not compatible
query I rowsort label-957
SELECT ALL CAST ( + + MIN ( + 31 ) AS INTEGER ) AS col1
----
31

onlyif mysql # aggregate syntax: 
query II rowsort label-958
SELECT - 66 * 65, 29 + COUNT( * ) + - 68 * 77 AS col2
----
-4290
-5206

skipif mysql # not compatible
query II rowsort label-958
SELECT - 66 * 65, 29 + COUNT ( * ) + - 68 * 77 AS col2
----
-4290
-5206

query I rowsort
SELECT - 25 + + - 97 * 12
----
-1189

onlyif mysql # aggregate syntax: 
query I rowsort label-960
SELECT + COUNT( * ) * + 8 * + + 81 AS col0
----
648

skipif mysql # not compatible
query I rowsort label-960
SELECT + COUNT ( * ) * + 8 * + + 81 AS col0
----
648

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-961
SELECT DISTINCT - 37 DIV + - 59, 69 * CASE + - COUNT( * ) WHEN - + 50 THEN - 41 WHEN - 85 * 22 * - 63 THEN NULL ELSE + ( - 72 ) END AS col2
----
0
-4968

skipif mysql # not compatible
query II rowsort label-961
SELECT DISTINCT - 37 / + - 59, 69 * CASE + - COUNT ( * ) WHEN - + 50 THEN - 41 WHEN - 85 * 22 * - 63 THEN NULL ELSE + ( - 72 ) END AS col2
----
0
-4968

query I rowsort
SELECT DISTINCT + COALESCE ( 50, - - 78 ) - + ( - 65 )
----
115

query I rowsort
SELECT DISTINCT 48 - + 64 AS col1
----
-16

query I rowsort
SELECT 63 + + 24 * + 14
----
399

query I rowsort
SELECT ALL + 66 * - 60 * 59 AS col0
----
-233640

query I rowsort
SELECT 44 + + + 24 + + + 38 AS col2
----
106

onlyif mysql # DIV for integer division: 
query I rowsort label-967
SELECT + 76 DIV 72 - - 75
----
76

skipif mysql # not compatible
query I rowsort label-967
SELECT + 76 / 72 - - 75
----
76

query I rowsort
SELECT ALL + 84 + + 12 + + 3
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-969
SELECT DISTINCT + + NULLIF ( + 43, + 4 ) * + - SUM( - + CASE WHEN NOT NULL <> NULL THEN - 28 ELSE NULL END ) * - - 40
----
NULL

skipif mysql # not compatible
query I rowsort label-969
SELECT DISTINCT + + NULLIF ( + 43, + 4 ) * + - SUM ( - + CASE WHEN NOT NULL <> NULL THEN - 28 ELSE NULL END ) * - - 40
----
NULL

query I rowsort
SELECT ALL 56 + - 59 + - 17
----
-20

query I rowsort
SELECT DISTINCT 61 + + 21 * + - 68
----
-1367

query I rowsort
SELECT DISTINCT + 76 + 58 AS col0
----
134

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

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

query II rowsort
SELECT ALL - 43 + ( 46 ) * - 45 AS col2, 29
----
-2113
29

onlyif mysql # aggregate syntax: 
query I rowsort label-975
SELECT COUNT( * ) + + + COUNT( - 7 ) + + 90 * + 30 * ( + SUM( - 43 ) ) * - - 11 + + 13 AS col2
----
-1277085

skipif mysql # not compatible
query I rowsort label-975
SELECT COUNT ( * ) + + + COUNT ( - 7 ) + + 90 * + 30 * ( + SUM ( - 43 ) ) * - - 11 + + 13 AS col2
----
-1277085

query II rowsort
SELECT + 57 * 34 * 64 + + 96 + - 92, 91 AS col1
----
124036
91

query I rowsort
SELECT 27 * + - 78 AS col1
----
-2106

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-978
SELECT DISTINCT 45 * - CAST( NULL AS SIGNED ) / 8 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-978
SELECT DISTINCT 45 * - CAST ( NULL AS INTEGER ) / 8 AS col2
----
NULL

query I rowsort
SELECT ALL + 19 * + 15 - + COALESCE ( + 66, - 72 + 61 * 43 ) AS col1
----
219

onlyif mysql # aggregate syntax: 
query II rowsort label-980
SELECT ALL - 91 * CASE COUNT( * ) WHEN 47 THEN - ( - MAX( + 80 ) ) * - ( + - 5 ) END, 28 AS col0
----
NULL
28

skipif mysql # not compatible
query II rowsort label-980
SELECT ALL - 91 * CASE COUNT ( * ) WHEN 47 THEN - ( - MAX ( + 80 ) ) * - ( + - 5 ) END, 28 AS col0
----
NULL
28

onlyif mysql # aggregate syntax: 
query I rowsort label-981
SELECT - MAX( ALL 43 ) + - 76
----
-119

skipif mysql # not compatible
query I rowsort label-981
SELECT - MAX ( ALL 43 ) + - 76
----
-119

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-982
SELECT ALL + 17 + - 92 * - - 88 + + 17 - + 29 / + NULLIF ( ( 24 ), - CAST( NULL AS SIGNED ) ) / - + 16 * - CAST( NULL AS SIGNED ) * 77 * 53 + + + ( + 83 ) + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-982
SELECT ALL + 17 + - 92 * - - 88 + + 17 - + 29 / + NULLIF ( ( 24 ), - CAST ( NULL AS INTEGER ) ) / - + 16 * - CAST ( NULL AS INTEGER ) * 77 * 53 + + + ( + 83 ) + - COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT - 0 * 79 - - 79 * 52 * + - 2 col2
----
-8216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-984
SELECT ALL + CASE - 80 WHEN - 50 THEN - 74 WHEN + 96 THEN - - 81 * + CAST( NULL AS SIGNED ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-984
SELECT ALL + CASE - 80 WHEN - 50 THEN - 74 WHEN + 96 THEN - - 81 * + CAST ( NULL AS INTEGER ) END AS col0
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-986
SELECT 45 * - 30 DIV - 5, ( - CAST( NULL AS SIGNED ) ) col1
----
270
NULL

skipif mysql # not compatible
query II rowsort label-986
SELECT 45 * - 30 / - 5, ( - CAST ( NULL AS INTEGER ) ) col1
----
270
NULL

query I rowsort
SELECT 55 + 58 * + - 76 + + 90
----
-4263

query II rowsort
SELECT ALL 90 AS col2, 96
----
90
96

query I rowsort
SELECT 64 + - 1
----
63

query I rowsort
SELECT DISTINCT + 51 * + - 42 * + 94
----
-201348

query I rowsort
SELECT 44 + + 46 AS col1
----
90

query I rowsort
SELECT ALL - 33 * 61
----
-2013

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-994
SELECT ALL - 24 * + + ( + CAST( + 84 AS SIGNED ) )
----
-2016

skipif mysql # not compatible
query I rowsort label-994
SELECT ALL - 24 * + + ( + CAST ( + 84 AS INTEGER ) )
----
-2016

query II rowsort
SELECT 60 * - 22 * 18 AS col1, + 92 col1
----
-23760
92

onlyif mysql # aggregate syntax: 
query II rowsort label-996
SELECT ALL 62, 32 + + MAX( DISTINCT + 65 ) AS col2
----
62
97

skipif mysql # not compatible
query II rowsort label-996
SELECT ALL 62, 32 + + MAX ( DISTINCT + 65 ) AS col2
----
62
97

query I rowsort
SELECT ALL - 34 * - 32
----
1088

onlyif mysql # aggregate syntax: 
query I rowsort label-998
SELECT MIN( DISTINCT + + 63 ) + + ( + + 43 ) - + 52
----
54

skipif mysql # not compatible
query I rowsort label-998
SELECT MIN ( DISTINCT + + 63 ) + + ( + + 43 ) - + 52
----
54

query I rowsort
SELECT DISTINCT - 7 + - 72 AS col2
----
-79

query I rowsort
SELECT 63 * - 74 AS col1
----
-4662

query I rowsort
SELECT 98 + - 94 + - 15 + + 14
----
3

query I rowsort
SELECT ALL - 89 + 31
----
-58

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1004
SELECT ALL - 58 * SUM( ALL - + ( - 79 ) )
----
-4582

skipif mysql # not compatible
query I rowsort label-1004
SELECT ALL - 58 * SUM ( ALL - + ( - 79 ) )
----
-4582

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1006
SELECT ALL - 24 * 64 * + 4 + + - 61 + - COUNT( * ) col1, - 20 AS col1
----
-6206
-20

skipif mysql # not compatible
query II rowsort label-1006
SELECT ALL - 24 * 64 * + 4 + + - 61 + - COUNT ( * ) col1, - 20 AS col1
----
-6206
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1007
SELECT - 77 * - CAST( - 1 AS SIGNED ) * - - 33 + + 53 + - MAX( - 11 ) * 48
----
-1960

skipif mysql # not compatible
query I rowsort label-1007
SELECT - 77 * - CAST ( - 1 AS INTEGER ) * - - 33 + + 53 + - MAX ( - 11 ) * 48
----
-1960

onlyif mysql # aggregate syntax: 
query I rowsort label-1008
SELECT DISTINCT + 56 * + ( MAX( DISTINCT + + 89 ) ) + - - 17
----
5001

skipif mysql # not compatible
query I rowsort label-1008
SELECT DISTINCT + 56 * + ( MAX ( DISTINCT + + 89 ) ) + - - 17
----
5001

onlyif mysql # DIV for integer division: 
query II rowsort label-1009
SELECT + 42 col0, + 56 * 4 DIV - 32
----
42
-7

skipif mysql # not compatible
query II rowsort label-1009
SELECT + 42 col0, + 56 * 4 / - 32
----
42
-7

query I rowsort
SELECT DISTINCT + 45 * + 54 * - NULLIF ( + 69, + 94 + - - 71 ) + - 92 AS col1
----
-167762

query I rowsort
SELECT DISTINCT - + 52 col1
----
-52

query I rowsort
SELECT ALL + 32 + + - 61 col0
----
-29

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1014
SELECT MAX( DISTINCT 2 ) * + 31 * 17 + - + 44 DIV - 72 + 67 * + CAST( COUNT( * ) AS SIGNED )
----
1121

skipif mysql # not compatible
query I rowsort label-1014
SELECT MAX ( DISTINCT 2 ) * + 31 * 17 + - + 44 / - 72 + 67 * + CAST ( COUNT ( * ) AS INTEGER )
----
1121

onlyif mysql # DIV for integer division: 
query I rowsort label-1015
SELECT 21 DIV 93 * + 81
----
0

skipif mysql # not compatible
query I rowsort label-1015
SELECT 21 / 93 * + 81
----
0

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

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

query I rowsort
SELECT CASE WHEN NOT NULL IS NULL THEN NULL ELSE + 44 END AS col1
----
44

query I rowsort
SELECT ALL + 71 - - 92 + ( 58 ) AS col0
----
221

onlyif mysql # aggregate syntax: 
query I rowsort label-1019
SELECT 70 * - MIN( - 96 ) * - + 76
----
-510720

skipif mysql # not compatible
query I rowsort label-1019
SELECT 70 * - MIN ( - 96 ) * - + 76
----
-510720

onlyif mysql # aggregate syntax: 
query I rowsort label-1020
SELECT DISTINCT + COUNT( * ) - + + 84 * + + 65
----
-5459

skipif mysql # not compatible
query I rowsort label-1020
SELECT DISTINCT + COUNT ( * ) - + + 84 * + + 65
----
-5459

onlyif mysql # DIV for integer division: 
query I rowsort label-1021
SELECT DISTINCT ( 25 ) DIV - 76
----
0

skipif mysql # not compatible
query I rowsort label-1021
SELECT DISTINCT ( 25 ) / - 76
----
0

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

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

query I rowsort
SELECT + COALESCE ( + 2, + - ( + 64 ) ) col0
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-1024
SELECT DISTINCT 87 AS col0, + 87 * COUNT( * )
----
87
87

skipif mysql # not compatible
query II rowsort label-1024
SELECT DISTINCT 87 AS col0, + 87 * COUNT ( * )
----
87
87

onlyif mysql # aggregate syntax: 
query I rowsort label-1025
SELECT - MAX( + - 10 ) AS col1
----
10

skipif mysql # not compatible
query I rowsort label-1025
SELECT - MAX ( + - 10 ) AS col1
----
10

query I rowsort
SELECT ALL 14 * + 67 * 72
----
67536

onlyif mysql # aggregate syntax: 
query I rowsort label-1027
SELECT + COUNT( * ) - 3 + - 42
----
-44

skipif mysql # not compatible
query I rowsort label-1027
SELECT + COUNT ( * ) - 3 + - 42
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-1028
SELECT ALL MAX( - 25 ) * - - 67 AS col0
----
-1675

skipif mysql # not compatible
query I rowsort label-1028
SELECT ALL MAX ( - 25 ) * - - 67 AS col0
----
-1675

query I rowsort
SELECT - COALESCE ( + 71, 16, - NULLIF ( 16, - + 15 + 56 ) * - + 35 ) AS col1
----
-71

query II rowsort
SELECT 92, - 7 AS col1
----
92
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1031
SELECT + 89 * - - CAST( NULL AS SIGNED ) / 99 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1031
SELECT + 89 * - - CAST ( NULL AS INTEGER ) / 99 AS col2
----
NULL

query II rowsort
SELECT 0 AS col1, 26 AS col1
----
0
26

query I rowsort
SELECT ALL 54 + + 26 AS col2
----
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1034
SELECT + 60 + + 40 + 77 - - COUNT( * ) DIV - 35 AS col1
----
177

skipif mysql # not compatible
query I rowsort label-1034
SELECT + 60 + + 40 + 77 - - COUNT ( * ) / - 35 AS col1
----
177

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-1035
SELECT ALL 60, ( - + 52 ) DIV - COUNT( - + 98 ) + 80 DIV - COUNT( * ) - + + 62 + 52 AS col2, - 61 + 35 * - 99 * + ( 79 ) AS col1
----
60
-38
-273796

skipif mysql # not compatible
query III rowsort label-1035
SELECT ALL 60, ( - + 52 ) / - COUNT ( - + 98 ) + 80 / - COUNT ( * ) - + + 62 + 52 AS col2, - 61 + 35 * - 99 * + ( 79 ) AS col1
----
60
-38
-273796

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

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

onlyif mysql # aggregate syntax: 
query III rowsort label-1037
SELECT - 13 AS col0, + 81, - CASE - 97 WHEN + 89 - 69 THEN NULL WHEN - MAX( DISTINCT 3 ) THEN + 46 ELSE 3 END + + 84
----
-13
81
81

skipif mysql # not compatible
query III rowsort label-1037
SELECT - 13 AS col0, + 81, - CASE - 97 WHEN + 89 - 69 THEN NULL WHEN - MAX ( DISTINCT 3 ) THEN + 46 ELSE 3 END + + 84
----
-13
81
81

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

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

query II rowsort
SELECT DISTINCT 19, 48 AS col2
----
19
48

query I rowsort
SELECT DISTINCT + 57 + - 37 * + CASE WHEN NOT ( NULL NOT IN ( - 59 ) ) THEN 87 END AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1042
SELECT DISTINCT 70 + COUNT( * )
----
71

skipif mysql # not compatible
query I rowsort label-1042
SELECT DISTINCT 70 + COUNT ( * )
----
71

query I rowsort
SELECT - ( + - 65 ) + - 11 AS col1
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-1044
SELECT - 81 AS col0, - 20 AS col0, - ( - CASE COUNT( * ) WHEN - 17 + + 93 + + COALESCE ( - 9, + COUNT( * ) + 31 * CASE WHEN NOT + COUNT( * ) NOT BETWEEN + ( + CAST( - ( + + 79 ) AS SIGNED ) ) AND NULL THEN 77 ELSE NULL END, 42 * COUNT( * ) + + + 48 ) - - 33 THEN + COUNT( * ) WHEN 69 THEN NULL WHEN 42 + - 73 THEN - - 96 END )
----
-81
-20
NULL

skipif mysql # not compatible
query III rowsort label-1044
SELECT - 81 AS col0, - 20 AS col0, - ( - CASE COUNT ( * ) WHEN - 17 + + 93 + + COALESCE ( - 9, + COUNT ( * ) + 31 * CASE WHEN NOT + COUNT ( * ) NOT BETWEEN + ( + CAST ( - ( + + 79 ) AS INTEGER ) ) AND NULL THEN 77 ELSE NULL END, 42 * COUNT ( * ) + + + 48 ) - - 33 THEN + COUNT ( * ) WHEN 69 THEN NULL WHEN 42 + - 73 THEN - - 96 END )
----
-81
-20
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1045
SELECT ALL - 18 + + + ( - + COUNT( * ) ) * + 78
----
-96

skipif mysql # not compatible
query I rowsort label-1045
SELECT ALL - 18 + + + ( - + COUNT ( * ) ) * + 78
----
-96

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

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

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

skipif mysql # not compatible
query I rowsort label-1047
SELECT + COUNT ( ALL 71 ) * + 10 AS col0
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1048
SELECT AVG ( ALL CAST( NULL AS SIGNED ) ), + COALESCE ( + + 55, COALESCE ( + 0, + CASE + - CAST( + 81 AS SIGNED ) WHEN + + 89 THEN COALESCE ( - 50, - + 56 ) * + COUNT( * ) * - + 9 * - - 66 + + CAST( NULL AS SIGNED ) + 67 WHEN - 21 * + AVG ( - 35 ) * 64 * - + 6 THEN NULL ELSE 30 DIV - - 39 * + 27 + + - NULLIF ( + - 11, + ( - + COUNT( * ) ) ) - + - ( 97 ) END * + 42 ), - 47 - - 51, ( - CAST( NULL AS SIGNED ) ) ) - + COALESCE ( - 72, 16 ) col0
----
NULL
127

skipif mysql # not compatible
query II rowsort label-1048
SELECT AVG ( ALL CAST ( NULL AS INTEGER ) ), + COALESCE ( + + 55, COALESCE ( + 0, + CASE + - CAST ( + 81 AS INTEGER ) WHEN + + 89 THEN COALESCE ( - 50, - + 56 ) * + COUNT ( * ) * - + 9 * - - 66 + + CAST ( NULL AS INTEGER ) + 67 WHEN - 21 * + AVG ( - 35 ) * 64 * - + 6 THEN NULL ELSE 30 / - - 39 * + 27 + + - NULLIF ( + - 11, + ( - + COUNT ( * ) ) ) - + - ( 97 ) END * + 42 ), - 47 - - 51, ( - CAST ( NULL AS INTEGER ) ) ) - + COALESCE ( - 72, 16 ) col0
----
NULL
127

query I rowsort
SELECT - 49 * - - 35
----
-1715

query II rowsort
SELECT ALL + - 18 col0, + COALESCE ( 33, 49 )
----
-18
33

onlyif mysql # aggregate syntax: 
query I rowsort label-1051
SELECT DISTINCT + + MAX( DISTINCT + 93 ) AS col1
----
93

skipif mysql # not compatible
query I rowsort label-1051
SELECT DISTINCT + + MAX ( DISTINCT + 93 ) AS col1
----
93

query I rowsort
SELECT - - 55 - - 9 + - 92 * + 24
----
-2144

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1053
SELECT DISTINCT + 87 AS col1, 33 * CAST( NULL AS SIGNED )
----
87
NULL

skipif mysql # not compatible
query II rowsort label-1053
SELECT DISTINCT + 87 AS col1, 33 * CAST ( NULL AS INTEGER )
----
87
NULL

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1056
SELECT - 28 DIV - 45 * - 73 + - + 72
----
-72

skipif mysql # not compatible
query I rowsort label-1056
SELECT - 28 / - 45 * - 73 + - + 72
----
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1057
SELECT DISTINCT + 58 DIV + + 15 + - + 63 + - 52 + + COUNT( * ) AS col1
----
-111

skipif mysql # not compatible
query I rowsort label-1057
SELECT DISTINCT + 58 / + + 15 + - + 63 + - 52 + + COUNT ( * ) AS col1
----
-111

query II rowsort
SELECT + + 82 AS col2, - 39 AS col1
----
82
-39

query I rowsort
SELECT - 90 * 89 - + 79 AS col2
----
-8089

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1060
SELECT + 65 * - ( + + 83 ) - - + CAST( NULL AS DECIMAL ) AS col2, - 10 AS col0
----
NULL
-10

skipif mysql # not compatible
query II rowsort label-1060
SELECT + 65 * - ( + + 83 ) - - + CAST ( NULL AS REAL ) AS col2, - 10 AS col0
----
NULL
-10

query I rowsort
SELECT ALL - 50 * + NULLIF ( + 40, - + 0 ) AS col2
----
-2000

query I rowsort
SELECT - 11 * + 60 + - ( + 32 ) + + - 64 + - + ( 72 )
----
-828

query I rowsort
SELECT + + NULLIF ( - - 78, - - 64 ) - 9 AS col1
----
69

query II rowsort
SELECT + 83 col1, 51 * 93
----
83
4743

onlyif mysql # aggregate syntax: 
query I rowsort label-1065
SELECT - - 68 * + - 47 + + - CASE - 64 WHEN + COUNT( * ) THEN + 28 - 29 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1065
SELECT - - 68 * + - 47 + + - CASE - 64 WHEN + COUNT ( * ) THEN + 28 - 29 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT - 6 * + 50 + - ( - - COALESCE ( - 79, - 24, - - 72 ) )
----
-221

query I rowsort
SELECT COALESCE ( - - 56, 69 * - 44 + - 18 + + 11 )
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1068
SELECT ALL + CAST( + 80 AS SIGNED ) AS col0
----
80

skipif mysql # not compatible
query I rowsort label-1068
SELECT ALL + CAST ( + 80 AS INTEGER ) AS col0
----
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1069
SELECT DISTINCT 59 * - - 1 DIV + 88 * + MAX( COALESCE ( + 18, - 49, ( 27 ) + - 53 ) ) + 94 + - - 4 - + - 13
----
111

skipif mysql # not compatible
query I rowsort label-1069
SELECT DISTINCT 59 * - - 1 / + 88 * + MAX ( COALESCE ( + 18, - 49, ( 27 ) + - 53 ) ) + 94 + - - 4 - + - 13
----
111

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1071
SELECT + 9 * - CAST( NULL AS SIGNED ) + + + 64 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1071
SELECT + 9 * - CAST ( NULL AS INTEGER ) + + + 64 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1072
SELECT + NULLIF ( - 98, + + 84 ) + + - CASE + 22 WHEN - - 39 THEN + 1 / + - 16 * + 7 ELSE AVG ( + - 75 ) END - + CASE + SUM( DISTINCT - 54 ) WHEN - 56 THEN ( + 9 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1072
SELECT + NULLIF ( - 98, + + 84 ) + + - CASE + 22 WHEN - - 39 THEN + 1 / + - 16 * + 7 ELSE AVG ( + - 75 ) END - + CASE + SUM ( DISTINCT - 54 ) WHEN - 56 THEN ( + 9 ) END
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1074
SELECT ALL 24 + - - NULLIF ( 95, 25 * - 96 * - 47 ) - - 71 + + - CASE - COUNT( * ) WHEN + 46 - + 51 THEN + 3 WHEN + CASE - + 72 WHEN - + 82 - + COUNT( * ) THEN SUM( DISTINCT 59 ) * + ( - SUM( ALL + CAST( NULL AS SIGNED ) ) ) ELSE + 22 + + 32 + + - 60 END + 80 THEN + - MIN( - 40 ) END * - COUNT( DISTINCT - - 20 ) + + - 47
----
NULL

skipif mysql # not compatible
query I rowsort label-1074
SELECT ALL 24 + - - NULLIF ( 95, 25 * - 96 * - 47 ) - - 71 + + - CASE - COUNT ( * ) WHEN + 46 - + 51 THEN + 3 WHEN + CASE - + 72 WHEN - + 82 - + COUNT ( * ) THEN SUM ( DISTINCT 59 ) * + ( - SUM ( ALL + CAST ( NULL AS INTEGER ) ) ) ELSE + 22 + + 32 + + - 60 END + 80 THEN + - MIN ( - 40 ) END * - COUNT ( DISTINCT - - 20 ) + + - 47
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1075
SELECT - COALESCE ( + 91, 98, + CAST( NULL AS SIGNED ) DIV - 11 )
----
-91

skipif mysql # not compatible
query I rowsort label-1075
SELECT - COALESCE ( + 91, 98, + CAST ( NULL AS INTEGER ) / - 11 )
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-1076
SELECT ALL COUNT( * ) + + COALESCE ( - - 33, + + COUNT( NULLIF ( - 9, 37 ) ) + - 58 ) * + COUNT( * )
----
34

skipif mysql # not compatible
query I rowsort label-1076
SELECT ALL COUNT ( * ) + + COALESCE ( - - 33, + + COUNT ( NULLIF ( - 9, 37 ) ) + - 58 ) * + COUNT ( * )
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-1077
SELECT + NULLIF ( - 17, COUNT( * ) / - MIN( - 74 ) ) * 36 * 35 AS col2
----
-21420

skipif mysql # not compatible
query I rowsort label-1077
SELECT + NULLIF ( - 17, COUNT ( * ) / - MIN ( - 74 ) ) * 36 * 35 AS col2
----
-21420

query I rowsort
SELECT DISTINCT 29 + 62 * + 92
----
5733

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1080
SELECT - CAST( - + NULLIF ( - 95, - COUNT( * ) + + 45 - - - 78 ) AS SIGNED )
----
-95

skipif mysql # not compatible
query I rowsort label-1080
SELECT - CAST ( - + NULLIF ( - 95, - COUNT ( * ) + + 45 - - - 78 ) AS INTEGER )
----
-95

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1081
SELECT + 50 * + CASE - 99 WHEN ( 66 ) + - ( + AVG ( - 49 ) ) / + - 55 THEN - 26 * - CAST( NULL AS DECIMAL ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1081
SELECT + 50 * + CASE - 99 WHEN ( 66 ) + - ( + AVG ( - 49 ) ) / + - 55 THEN - 26 * - CAST ( NULL AS REAL ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1082
SELECT DISTINCT 12 - COALESCE ( + COUNT( * ), + 37 + 46 DIV + COUNT( * ) - + 4, - - 72 )
----
11

skipif mysql # not compatible
query I rowsort label-1082
SELECT DISTINCT 12 - COALESCE ( + COUNT ( * ), + 37 + 46 / + COUNT ( * ) - + 4, - - 72 )
----
11

query I rowsort
SELECT ALL NULLIF ( - 89, + 59 ) AS col2
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1084
SELECT + + ( + CAST( - + 43 AS SIGNED ) ) * + ( - 76 )
----
3268

skipif mysql # not compatible
query I rowsort label-1084
SELECT + + ( + CAST ( - + 43 AS INTEGER ) ) * + ( - 76 )
----
3268

query I rowsort
SELECT ALL + + 84 - 41 * + 49
----
-1925

query II rowsort
SELECT ( - - 89 ) AS col2, - 17
----
89
-17

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1088
SELECT - + 51 * - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1088
SELECT - + 51 * - CAST ( NULL AS REAL ) AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1090
SELECT - 22 + - - 59 AS col2, 15 * + 81 + - + 10 + + COUNT( ALL + ( 31 ) ) AS col0
----
37
1206

skipif mysql # not compatible
query II rowsort label-1090
SELECT - 22 + - - 59 AS col2, 15 * + 81 + - + 10 + + COUNT ( ALL + ( 31 ) ) AS col0
----
37
1206

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1091
SELECT ALL 92 * - 4 * + - 29 * AVG ( ALL + CAST( NULL AS SIGNED ) ) + - - 61 * 25 * - + COUNT( * ) * + CASE - - 6 WHEN + 32 THEN + COUNT( * ) * COALESCE ( - ( + + 11 ), + MAX( + + 83 ) + - 79 * 61 + - COUNT( * ) ) * + 34 WHEN - ( - + 74 ) THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1091
SELECT ALL 92 * - 4 * + - 29 * AVG ( ALL + CAST ( NULL AS INTEGER ) ) + - - 61 * 25 * - + COUNT ( * ) * + CASE - - 6 WHEN + 32 THEN + COUNT ( * ) * COALESCE ( - ( + + 11 ), + MAX ( + + 83 ) + - 79 * 61 + - COUNT ( * ) ) * + 34 WHEN - ( - + 74 ) THEN NULL END AS col1
----
NULL

query I rowsort
SELECT + + 7 col0
----
7

query II rowsort
SELECT ALL + 80 * + 3 AS col2, 43 AS col0
----
240
43

onlyif mysql # aggregate syntax: 
query I rowsort label-1094
SELECT ( - 49 ) + + - 86 + MIN( ALL + - 59 )
----
-194

skipif mysql # not compatible
query I rowsort label-1094
SELECT ( - 49 ) + + - 86 + MIN ( ALL + - 59 )
----
-194

onlyif mysql # DIV for integer division: 
query I rowsort label-1095
SELECT + 15 DIV 93 * - 69
----
0

skipif mysql # not compatible
query I rowsort label-1095
SELECT + 15 / 93 * - 69
----
0

query I rowsort
SELECT ALL - 38 + + 44 AS col2
----
6

query I rowsort
SELECT ALL + 74 * - NULLIF ( 43, + 97 ) * - COALESCE ( + 75, + 88 + + 74 ) + - 23
----
238627

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1098
SELECT 64 DIV - SUM( ALL 19 ) * - MAX( DISTINCT - + 1 )
----
-3

skipif mysql # not compatible
query I rowsort label-1098
SELECT 64 / - SUM ( ALL 19 ) * - MAX ( DISTINCT - + 1 )
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1099
SELECT ALL + CAST( NULL AS SIGNED ) + + - MAX( - 68 ) AS col2, 60
----
NULL
60

skipif mysql # not compatible
query II rowsort label-1099
SELECT ALL + CAST ( NULL AS INTEGER ) + + - MAX ( - 68 ) AS col2, 60
----
NULL
60

onlyif mysql # DIV for integer division: 
query I rowsort label-1100
SELECT DISTINCT + 93 DIV + - 80
----
-1

skipif mysql # not compatible
query I rowsort label-1100
SELECT DISTINCT + 93 / + - 80
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1101
SELECT 2 * - 76 DIV - + 5 - - + 57
----
87

skipif mysql # not compatible
query I rowsort label-1101
SELECT 2 * - 76 / - + 5 - - + 57
----
87

onlyif mysql # aggregate syntax: 
query II rowsort label-1102
SELECT 44, NULLIF ( + 89, - + 60 * 67 + 26 + - 12 + + COUNT( * ) + + + 60 ) * + 27 * - ( COUNT( * ) ) * - SUM( - 36 ) AS col0
----
44
-86508

skipif mysql # not compatible
query II rowsort label-1102
SELECT 44, NULLIF ( + 89, - + 60 * 67 + 26 + - 12 + + COUNT ( * ) + + + 60 ) * + 27 * - ( COUNT ( * ) ) * - SUM ( - 36 ) AS col0
----
44
-86508

onlyif mysql # aggregate syntax: 
query II rowsort label-1103
SELECT + 97 AS col1, ( - 39 ) * - + COUNT( * ) - - - 6
----
97
33

skipif mysql # not compatible
query II rowsort label-1103
SELECT + 97 AS col1, ( - 39 ) * - + COUNT ( * ) - - - 6
----
97
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1104
SELECT ALL + 75 + - CAST( + 79 AS SIGNED )
----
-4

skipif mysql # not compatible
query I rowsort label-1104
SELECT ALL + 75 + - CAST ( + 79 AS INTEGER )
----
-4

query I rowsort
SELECT 63 * 84
----
5292

query II rowsort
SELECT DISTINCT 7, 59 AS col2
----
7
59

query I rowsort
SELECT 79 - 21 col0
----
58

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

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

query I rowsort
SELECT ALL + 3 + - + 92
----
-89

query II rowsort
SELECT - 69 AS col1, - 82 AS col1
----
-69
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-1111
SELECT ALL - 40 + + COALESCE ( - 19, COUNT( * ), + - 94 ) + + 43 * 10 AS col1
----
371

skipif mysql # not compatible
query I rowsort label-1111
SELECT ALL - 40 + + COALESCE ( - 19, COUNT ( * ), + - 94 ) + + 43 * 10 AS col1
----
371

onlyif mysql # aggregate syntax: 
query II rowsort label-1112
SELECT 78 + + + ( + COUNT( - - 91 ) ), 91 * - ( + 58 ) * 50 AS col2
----
79
-263900

skipif mysql # not compatible
query II rowsort label-1112
SELECT 78 + + + ( + COUNT ( - - 91 ) ), 91 * - ( + 58 ) * 50 AS col2
----
79
-263900

onlyif mysql # aggregate syntax: 
query I rowsort label-1113
SELECT COALESCE ( - + COUNT( * ), - - 46 + + - 39 ) * + 53 AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-1113
SELECT COALESCE ( - + COUNT ( * ), - - 46 + + - 39 ) * + 53 AS col0
----
-53

query II rowsort
SELECT ALL 79, + 51 col1
----
79
51

onlyif mysql # aggregate syntax: 
query I rowsort label-1115
SELECT + 48 + + - 66 + - SUM( ALL - 71 ) AS col2
----
53

skipif mysql # not compatible
query I rowsort label-1115
SELECT + 48 + + - 66 + - SUM ( ALL - 71 ) AS col2
----
53

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

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

query I rowsort
SELECT ALL + 36 - - 52
----
88

query I rowsort
SELECT 50 * - - 42 * - 22 AS col0
----
-46200

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

skipif mysql # not compatible
query I rowsort label-1119
SELECT ALL + COUNT ( * ) / + 66 * + 32 AS col1
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1120
SELECT 96 * + 37 * + 98 * + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1120
SELECT 96 * + 37 * + 98 * + CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1121
SELECT - 97 + - 98 * NULLIF ( 1, + NULLIF ( + COUNT( DISTINCT - + 67 ), - CASE AVG ( DISTINCT + 81 ) WHEN - COALESCE ( 32, - - ( + + 16 ), - + SUM( - 40 ) ) / - - COUNT( * ) + - 54 + + 45 + - - 92 THEN - + 99 * - - 28 * - + COUNT( * ) + + ( 2 ) + + 0 * - + COUNT( * ) - COUNT( * ) + COALESCE ( + + 52, + 27 ) * - - COUNT( * ) WHEN 57 + AVG ( DISTINCT - 39 ) THEN NULL END + 15 * 71 ) + - ( 62 ) )
----
-195

skipif mysql # not compatible
query I rowsort label-1121
SELECT - 97 + - 98 * NULLIF ( 1, + NULLIF ( + COUNT ( DISTINCT - + 67 ), - CASE AVG ( DISTINCT + 81 ) WHEN - COALESCE ( 32, - - ( + + 16 ), - + SUM ( - 40 ) ) / - - COUNT ( * ) + - 54 + + 45 + - - 92 THEN - + 99 * - - 28 * - + COUNT ( * ) + + ( 2 ) + + 0 * - + COUNT ( * ) - COUNT ( * ) + COALESCE ( + + 52, + 27 ) * - - COUNT ( * ) WHEN 57 + AVG ( DISTINCT - 39 ) THEN NULL END + 15 * 71 ) + - ( 62 ) )
----
-195

query I rowsort
SELECT ALL 67 * - + 46 AS col0
----
-3082

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1124
SELECT 89 + + + 85 + - + 75 DIV + 14 AS col0
----
169

skipif mysql # not compatible
query I rowsort label-1124
SELECT 89 + + + 85 + - + 75 / + 14 AS col0
----
169

query I rowsort
SELECT ALL 80 * 34
----
2720

onlyif mysql # aggregate syntax: 
query I rowsort label-1126
SELECT CASE - 97 WHEN - COUNT( * ) THEN - 0 WHEN - 59 THEN NULL END * - 71 * + MIN( DISTINCT 63 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1126
SELECT CASE - 97 WHEN - COUNT ( * ) THEN - 0 WHEN - 59 THEN NULL END * - 71 * + MIN ( DISTINCT 63 ) col0
----
NULL

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

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

query I rowsort
SELECT ALL - ( 17 ) * - + 89 + - + 48
----
1465

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1129
SELECT - NULLIF ( 49, + COUNT( * ) ) AS col0, 14 DIV - ( 52 )
----
-49
0

skipif mysql # not compatible
query II rowsort label-1129
SELECT - NULLIF ( 49, + COUNT ( * ) ) AS col0, 14 / - ( 52 )
----
-49
0

query I rowsort
SELECT DISTINCT - + 8 col1
----
-8

query I rowsort
SELECT 99 * - 51 AS col0
----
-5049

onlyif mysql # aggregate syntax: 
query II rowsort label-1132
SELECT ALL - + 30 AS col0, + COUNT( * ) * + 85
----
-30
85

skipif mysql # not compatible
query II rowsort label-1132
SELECT ALL - + 30 AS col0, + COUNT ( * ) * + 85
----
-30
85

query I rowsort
SELECT DISTINCT + 90 + 57 * ( + - 23 )
----
-1221

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1135
SELECT ALL + MIN( + CAST( 21 AS SIGNED ) ) + - + COUNT( * ) - - COUNT( - 99 ) * 30
----
50

skipif mysql # not compatible
query I rowsort label-1135
SELECT ALL + MIN ( + CAST ( 21 AS INTEGER ) ) + - + COUNT ( * ) - - COUNT ( - 99 ) * 30
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1136
SELECT + 22 * - COUNT( * ) + + - 47 - CAST( NULL AS SIGNED ) * - 31 * 81 + - 81 * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1136
SELECT + 22 * - COUNT ( * ) + + - 47 - CAST ( NULL AS INTEGER ) * - 31 * 81 + - 81 * + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1137
SELECT ALL + ( + 78 ) + + 94 + 24 + 46 + 55 DIV + + 67 + - COUNT( * )
----
241

skipif mysql # not compatible
query I rowsort label-1137
SELECT ALL + ( + 78 ) + + 94 + 24 + 46 + 55 / + + 67 + - COUNT ( * )
----
241

query I rowsort
SELECT ALL - - ( 2 ) AS col2
----
2

query I rowsort
SELECT ( + 40 ) + - - 48 col2
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-1140
SELECT + 1 DIV - - 91 * 51 DIV + 74 - 42 col2
----
-42

skipif mysql # not compatible
query I rowsort label-1140
SELECT + 1 / - - 91 * 51 / + 74 - 42 col2
----
-42

query I rowsort
SELECT ALL - 34 + 88
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1142
SELECT + 0 * + + MAX( - 25 ) + + - 36 DIV - 73
----
0

skipif mysql # not compatible
query I rowsort label-1142
SELECT + 0 * + + MAX ( - 25 ) + + - 36 / - 73
----
0

query II rowsort
SELECT ALL + 71 + + 11 col2, + 30
----
82
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1144
SELECT DISTINCT 54 + - 4 DIV - COALESCE ( 16, COUNT( * ), 86, + - 35 ) + + 61 AS col2
----
115

skipif mysql # not compatible
query I rowsort label-1144
SELECT DISTINCT 54 + - 4 / - COALESCE ( 16, COUNT ( * ), 86, + - 35 ) + + 61 AS col2
----
115

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1145
SELECT ALL - COUNT( * ) DIV 46 DIV - - ( 70 )
----
0

skipif mysql # not compatible
query I rowsort label-1145
SELECT ALL - COUNT ( * ) / 46 / - - ( 70 )
----
0

query I rowsort
SELECT 89 + - 55
----
34

onlyif mysql # DIV for integer division: 
query II rowsort label-1147
SELECT + 56 * + 99 + 99 DIV + 55, 97 AS col0
----
5545
97

skipif mysql # not compatible
query II rowsort label-1147
SELECT + 56 * + 99 + 99 / + 55, 97 AS col0
----
5545
97

query II rowsort
SELECT 8 + - 25 AS col0, + 71
----
-17
71

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1150
SELECT COUNT( * ) + 6 - - 78
----
85

skipif mysql # not compatible
query I rowsort label-1150
SELECT COUNT ( * ) + 6 - - 78
----
85

onlyif mysql # aggregate syntax: 
query II rowsort label-1151
SELECT DISTINCT ( 5 ), + 6 + + - COUNT( * )
----
5
5

skipif mysql # not compatible
query II rowsort label-1151
SELECT DISTINCT ( 5 ), + 6 + + - COUNT ( * )
----
5
5

query I rowsort
SELECT 65 * + - 59 * - + ( NULLIF ( 89, - 61 ) )
----
341315

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1153
SELECT ALL - CASE - 14 WHEN COUNT( * ) DIV 6 * 69 THEN NULLIF ( + - 87, + 68 ) * + ( - 93 ) * ( + - CAST( COUNT( * ) AS SIGNED ) ) DIV + 73 + - + 95 ELSE - + 18 END AS col2
----
18

skipif mysql # not compatible
query I rowsort label-1153
SELECT ALL - CASE - 14 WHEN COUNT ( * ) / 6 * 69 THEN NULLIF ( + - 87, + 68 ) * + ( - 93 ) * ( + - CAST ( COUNT ( * ) AS INTEGER ) ) / + 73 + - + 95 ELSE - + 18 END AS col2
----
18

query I rowsort
SELECT - COALESCE ( - - 33, + 14 * - - 70, + + 44 ) AS col0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-1155
SELECT + NULLIF ( - 96, COUNT( * ) + - - 67 ) * - NULLIF ( - 9, + + COUNT( DISTINCT + NULLIF ( + ( 13 ), - 15 * 80 ) ) + + 35 ) * 82
----
-70848

skipif mysql # not compatible
query I rowsort label-1155
SELECT + NULLIF ( - 96, COUNT ( * ) + - - 67 ) * - NULLIF ( - 9, + + COUNT ( DISTINCT + NULLIF ( + ( 13 ), - 15 * 80 ) ) + + 35 ) * 82
----
-70848

query II rowsort
SELECT 75 + - + 50, - 53 col0
----
25
-53

query I rowsort
SELECT - 57 + 15
----
-42

query I rowsort
SELECT + 27 + - 47 + + + 55 + - 89 * + - 42 * 71
----
265433

onlyif mysql # aggregate syntax: 
query I rowsort label-1159
SELECT - CASE - 68 WHEN - 43 THEN 76 / - 15 WHEN - + 58 / + - 67 THEN + + COUNT( * ) WHEN + + COUNT( * ) + - 16 + - 80 THEN NULL END / + + 59 / + 98 + 83
----
NULL

skipif mysql # not compatible
query I rowsort label-1159
SELECT - CASE - 68 WHEN - 43 THEN 76 / - 15 WHEN - + 58 / + - 67 THEN + + COUNT ( * ) WHEN + + COUNT ( * ) + - 16 + - 80 THEN NULL END / + + 59 / + 98 + 83
----
NULL

query I rowsort
SELECT ALL - - 95 + + 34
----
129

onlyif mysql # DIV for integer division: 
query I rowsort label-1161
SELECT DISTINCT - 30 * - - 67 + + 40 DIV 80
----
-2010

skipif mysql # not compatible
query I rowsort label-1161
SELECT DISTINCT - 30 * - - 67 + + 40 / 80
----
-2010

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1162
SELECT + + COUNT( 95 ) + CASE COUNT( * ) WHEN + 78 * + 81 THEN - COALESCE ( + 85, 50 + + + 0 + + + 96 + - 69, - ( + - 96 ), + CASE - AVG ( ALL - + 5 ) WHEN + 86 THEN - 30 - + NULLIF ( + - MAX( ALL 21 ), + 36 ) / + CAST( NULL AS SIGNED ) ELSE NULL END ) WHEN CASE WHEN NULL IS NOT NULL THEN - 27 END - - 88 / 71 * + 54 + + - 9 + + 5 + + COUNT( ALL ( COALESCE ( - 89, - 18, 2 ) ) ) * COUNT( * ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1162
SELECT + + COUNT ( 95 ) + CASE COUNT ( * ) WHEN + 78 * + 81 THEN - COALESCE ( + 85, 50 + + + 0 + + + 96 + - 69, - ( + - 96 ), + CASE - AVG ( ALL - + 5 ) WHEN + 86 THEN - 30 - + NULLIF ( + - MAX ( ALL 21 ), + 36 ) / + CAST ( NULL AS INTEGER ) ELSE NULL END ) WHEN CASE WHEN NULL IS NOT NULL THEN - 27 END - - 88 / 71 * + 54 + + - 9 + + 5 + + COUNT ( ALL ( COALESCE ( - 89, - 18, 2 ) ) ) * COUNT ( * ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1163
SELECT DISTINCT + + SUM( DISTINCT - - 16 ) + + 35 - - - 57 * - 97 * + COALESCE ( COUNT( * ), - + 77 ) - - COUNT( * ) AS col0
----
5581

skipif mysql # not compatible
query I rowsort label-1163
SELECT DISTINCT + + SUM ( DISTINCT - - 16 ) + + 35 - - - 57 * - 97 * + COALESCE ( COUNT ( * ), - + 77 ) - - COUNT ( * ) AS col0
----
5581

query I rowsort
SELECT ALL + 97 + + 87
----
184

onlyif mysql # DIV for integer division: 
query I rowsort label-1165
SELECT 91 DIV 2 + 77 AS col2
----
122

skipif mysql # not compatible
query I rowsort label-1165
SELECT 91 / 2 + 77 AS col2
----
122

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1166
SELECT DISTINCT SUM( DISTINCT + 46 ) * 45 * - 77 * COUNT( * ) * - CAST( NULL AS DECIMAL ) - + 75 + CAST( NULL AS DECIMAL ) + - - 3 + 69 + COUNT( * ) * - 42 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1166
SELECT DISTINCT SUM ( DISTINCT + 46 ) * 45 * - 77 * COUNT ( * ) * - CAST ( NULL AS REAL ) - + 75 + CAST ( NULL AS REAL ) + - - 3 + 69 + COUNT ( * ) * - 42 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1167
SELECT + MAX( ALL 58 ) AS col1
----
58

skipif mysql # not compatible
query I rowsort label-1167
SELECT + MAX ( ALL 58 ) AS col1
----
58

query I rowsort
SELECT + COALESCE ( 81, - 65 * - 2 - - - 10 * + 42 + - 76 ) AS col0
----
81

query I rowsort
SELECT + COALESCE ( + 43, + 93 - - - 67 + 62 ) * - 12 AS col2
----
-516

query I rowsort
SELECT + 34 * + - 39 + - 22 col2
----
-1348

query II rowsort
SELECT ALL 47 * + 91 + - 77, 59 + - 10 * 20 + - 70 AS col1
----
4200
-211

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1172
SELECT CASE + 90 WHEN + 85 * + 84 - - NULLIF ( + - 38, + - 56 + + + 4 + - + ( + + 68 ) + - 66 * - 49 ) * - 90 + 94 * 16 * - COALESCE ( + COUNT( * ), - CAST( NULL AS SIGNED ) * + COUNT( * ) ) THEN NULL WHEN COUNT( * ) THEN - 6 / - 61 + + 16 * 55 * + - 79 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1172
SELECT CASE + 90 WHEN + 85 * + 84 - - NULLIF ( + - 38, + - 56 + + + 4 + - + ( + + 68 ) + - 66 * - 49 ) * - 90 + 94 * 16 * - COALESCE ( + COUNT ( * ), - CAST ( NULL AS INTEGER ) * + COUNT ( * ) ) THEN NULL WHEN COUNT ( * ) THEN - 6 / - 61 + + 16 * 55 * + - 79 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1173
SELECT ALL - COUNT( * ) * - 13 + - - 31 + 69 + + 2 AS col1, 66 AS col2
----
115
66

skipif mysql # not compatible
query II rowsort label-1173
SELECT ALL - COUNT ( * ) * - 13 + - - 31 + 69 + + 2 AS col1, 66 AS col2
----
115
66

query I rowsort
SELECT ALL 59 * + 96 + - + 59 * - 99 AS col1
----
11505

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1175
SELECT + CAST( NULL AS SIGNED ) * + CASE - 51 WHEN + 83 + 39 THEN + AVG ( DISTINCT 5 ) * - 69 + - + 79 + - - 39 - - 4 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1175
SELECT + CAST ( NULL AS INTEGER ) * + CASE - 51 WHEN + 83 + 39 THEN + AVG ( DISTINCT 5 ) * - 69 + - + 79 + - - 39 - - 4 END AS col2
----
NULL

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

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

query I rowsort
SELECT + 77 * 21 * - 80 AS col0
----
-129360

query I rowsort
SELECT DISTINCT 83 * - 55 AS col1
----
-4565

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1179
SELECT + COUNT( * ) * + 56 - + CAST( NULL AS SIGNED ) - - + COALESCE ( 59, - - AVG ( + + 2 ), - 1, + 66 ) + - 75 * - 22 * + 6 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1179
SELECT + COUNT ( * ) * + 56 - + CAST ( NULL AS INTEGER ) - - + COALESCE ( 59, - - AVG ( + + 2 ), - 1, + 66 ) + - 75 * - 22 * + 6 AS col2
----
NULL

query I rowsort
SELECT + 41 * - 30 AS col2
----
-1230

query I rowsort
SELECT DISTINCT 47 * + + 74 * - 74 AS col0
----
-257372

onlyif mysql # aggregate syntax: 
query I rowsort label-1182
SELECT SUM( 87 )
----
87

skipif mysql # not compatible
query I rowsort label-1182
SELECT SUM ( 87 )
----
87

query I rowsort
SELECT - + 64 * + 80 AS col2
----
-5120

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1184
SELECT - 88 DIV + 15 + 38 * COALESCE ( + - 74, - 41 * 40, - - 26, - - COUNT( * ) ) AS col0
----
-2817

skipif mysql # not compatible
query I rowsort label-1184
SELECT - 88 / + 15 + 38 * COALESCE ( + - 74, - 41 * 40, - - 26, - - COUNT ( * ) ) AS col0
----
-2817

query II rowsort
SELECT + 32 + - 41 * 34, - 64 col0
----
-1362
-64

onlyif mysql # aggregate syntax: 
query II rowsort label-1186
SELECT COUNT( * ) AS col2, 17 * - 96 + - 57 + - 5 + 40 + - COUNT( DISTINCT + 80 ) AS col2
----
1
-1655

skipif mysql # not compatible
query II rowsort label-1186
SELECT COUNT ( * ) AS col2, 17 * - 96 + - 57 + - 5 + 40 + - COUNT ( DISTINCT + 80 ) AS col2
----
1
-1655

onlyif mysql # aggregate syntax: 
query I rowsort label-1187
SELECT - + MIN( DISTINCT + 10 ) * 28 * - 15
----
4200

skipif mysql # not compatible
query I rowsort label-1187
SELECT - + MIN ( DISTINCT + 10 ) * 28 * - 15
----
4200

query I rowsort
SELECT DISTINCT - 34 + 93 AS col0
----
59

query I rowsort
SELECT ALL - 1 + - 15 AS col0
----
-16

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1190
SELECT - - 37 + - 83 * CAST( NULL AS DECIMAL ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1190
SELECT - - 37 + - 83 * CAST ( NULL AS REAL ) col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1191
SELECT - + CAST( + 89 AS SIGNED ) + + MIN( + 43 ) AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-1191
SELECT - + CAST ( + 89 AS INTEGER ) + + MIN ( + 43 ) AS col1
----
-46

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1194
SELECT + 43 / + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1195
SELECT DISTINCT MIN( ALL + - 90 ) DIV COUNT( * ) * + 80 + + 92 + - + 1 * - 58 + 38 AS col1
----
-7012

skipif mysql # not compatible
query I rowsort label-1195
SELECT DISTINCT MIN ( ALL + - 90 ) / COUNT ( * ) * + 80 + + 92 + - + 1 * - 58 + 38 AS col1
----
-7012

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1196
SELECT ALL + CAST( NULL AS SIGNED ), 24 col1
----
NULL
24

skipif mysql # not compatible
query II rowsort label-1196
SELECT ALL + CAST ( NULL AS INTEGER ), 24 col1
----
NULL
24

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

query I rowsort
SELECT ALL 2 * 90 AS col0
----
180

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1200
SELECT + COUNT( * ) * - 41 * 70 + 19 + - COUNT( * ) * - 48 * 93 AS col1
----
1613

skipif mysql # not compatible
query I rowsort label-1200
SELECT + COUNT ( * ) * - 41 * 70 + 19 + - COUNT ( * ) * - 48 * 93 AS col1
----
1613

query I rowsort
SELECT + CASE WHEN NOT - 30 IS NULL THEN - 45 + + - 2 END AS col2
----
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1202
SELECT ALL + 44 * COALESCE ( + COUNT( * ), - - 63 + + 3 + + COUNT( * ) * 52 - + + 32 + + 44 + - AVG ( + 72 ) DIV 6 * + - 83 + - ( - 48 ) + + + 9 ) AS col0
----
44

skipif mysql # not compatible
query I rowsort label-1202
SELECT ALL + 44 * COALESCE ( + COUNT ( * ), - - 63 + + 3 + + COUNT ( * ) * 52 - + + 32 + + 44 + - AVG ( + 72 ) / 6 * + - 83 + - ( - 48 ) + + + 9 ) AS col0
----
44

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

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

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

skipif mysql # not compatible
query II rowsort label-1204
SELECT ( 67 ), CAST ( NULL AS INTEGER ) AS col2
----
67
NULL

query I rowsort
SELECT - 48 + 66 AS col0
----
18

query I rowsort
SELECT + 53 - + + 39 + - 78 AS col0
----
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-1207
SELECT + 12 DIV - 71 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1207
SELECT + 12 / - 71 AS col0
----
0

query I rowsort
SELECT + 48 * + - 93 + - 87 AS col0
----
-4551

onlyif mysql # aggregate syntax: 
query I rowsort label-1209
SELECT + CASE + MIN( ALL + 20 ) WHEN 33 + + 44 * - 31 THEN 9 + COALESCE ( - - COUNT( * ), + 66, + - 47 * 34 ) + + 71 WHEN - - 61 THEN - MAX( - 40 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1209
SELECT + CASE + MIN ( ALL + 20 ) WHEN 33 + + 44 * - 31 THEN 9 + COALESCE ( - - COUNT ( * ), + 66, + - 47 * 34 ) + + 71 WHEN - - 61 THEN - MAX ( - 40 ) ELSE NULL END
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1211
SELECT ALL - 81 * + SUM( - - 53 ) col1
----
-4293

skipif mysql # not compatible
query I rowsort label-1211
SELECT ALL - 81 * + SUM ( - - 53 ) col1
----
-4293

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

query I rowsort
SELECT + 94 + 25 * - - 97
----
2519

query I rowsort
SELECT + 70 + - + 6 + - 56 AS col1
----
8

query II rowsort
SELECT DISTINCT + 0 AS col2, - 17 col1
----
0
-17

query I rowsort
SELECT + 0 + 20
----
20

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

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

query I rowsort
SELECT ALL - 52 + 98
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-1219
SELECT ALL + - 20 + - + SUM( - 51 ) * 20 + + 45 AS col0
----
1045

skipif mysql # not compatible
query I rowsort label-1219
SELECT ALL + - 20 + - + SUM ( - 51 ) * 20 + + 45 AS col0
----
1045

query I rowsort
SELECT ALL - + ( + 6 ) + 59 - + 72
----
-19

query I rowsort
SELECT + 42 + - + 40 AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1222
SELECT + NULLIF ( + COUNT( * ), - 49 + + 49 + COUNT( ALL + - 60 ) ) * - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1222
SELECT + NULLIF ( + COUNT ( * ), - 49 + + 49 + COUNT ( ALL + - 60 ) ) * - + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1223
SELECT ALL + - 53 * MIN( ALL - 2 ) * - 18 col2
----
-1908

skipif mysql # not compatible
query I rowsort label-1223
SELECT ALL + - 53 * MIN ( ALL - 2 ) * - 18 col2
----
-1908

onlyif mysql # aggregate syntax: 
query I rowsort label-1224
SELECT + 25 + + COUNT( * )
----
26

skipif mysql # not compatible
query I rowsort label-1224
SELECT + 25 + + COUNT ( * )
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-1225
SELECT 12 * MIN( + 86 ) + + + 70 * - - 75
----
6282

skipif mysql # not compatible
query I rowsort label-1225
SELECT 12 * MIN ( + 86 ) + + + 70 * - - 75
----
6282

onlyif mysql # aggregate syntax: 
query I rowsort label-1226
SELECT ALL - COALESCE ( - COUNT( * ), NULLIF ( + COALESCE ( - - 51, - - 29 * - 39 * + 10 ), - 35 / + 74 ) * + 94 - + COUNT( * ) + 23 ) * - ( + 73 )
----
-73

skipif mysql # not compatible
query I rowsort label-1226
SELECT ALL - COALESCE ( - COUNT ( * ), NULLIF ( + COALESCE ( - - 51, - - 29 * - 39 * + 10 ), - 35 / + 74 ) * + 94 - + COUNT ( * ) + 23 ) * - ( + 73 )
----
-73

query I rowsort
SELECT ALL - 75 * 63
----
-4725

query I rowsort
SELECT 79 + 35
----
114

query I rowsort
SELECT ALL - 84 * 54 * + 58 col0
----
-263088

query I rowsort
SELECT 89 + + 26 AS col1
----
115

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1231
SELECT DISTINCT - ( - - COUNT( * ) ) - + 1 - - 97 * + 74 * - - 66 + - 15 * - 65 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1231
SELECT DISTINCT - ( - - COUNT ( * ) ) - + 1 - - 97 * + 74 * - - 66 + - 15 * - 65 / CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - ( - 47 ) AS col2
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1233
SELECT 72 * - 67 * - - MAX( 63 )
----
-303912

skipif mysql # not compatible
query I rowsort label-1233
SELECT 72 * - 67 * - - MAX ( 63 )
----
-303912

query II rowsort
SELECT 8 * 67, 70 col1
----
536
70

query I rowsort
SELECT DISTINCT - CASE - 31 WHEN 30 THEN + - 23 - 93 ELSE NULL END AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1237
SELECT ALL + ( + + ( - + ( - 26 ) ) ) DIV - SUM( - 36 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1237
SELECT ALL + ( + + ( - + ( - 26 ) ) ) / - SUM ( - 36 ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1238
SELECT 98 * + COUNT( + CAST( + 28 AS DECIMAL ) )
----
98

skipif mysql # not compatible
query I rowsort label-1238
SELECT 98 * + COUNT ( + CAST ( + 28 AS REAL ) )
----
98

query II rowsort
SELECT ALL + 13 * - 87 AS col1, ( 50 ) col2
----
-1131
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1240
SELECT DISTINCT COALESCE ( - CASE CAST( 35 AS SIGNED ) WHEN MAX( + - 46 ) THEN + 15 * - - 87 END, + 28 ) * 54
----
1512

skipif mysql # not compatible
query I rowsort label-1240
SELECT DISTINCT COALESCE ( - CASE CAST ( 35 AS INTEGER ) WHEN MAX ( + - 46 ) THEN + 15 * - - 87 END, + 28 ) * 54
----
1512

onlyif mysql # DIV for integer division: 
query I rowsort label-1241
SELECT DISTINCT - 68 + 18 + 35 + - 75 - + 15 - + 29 DIV + + 40 - - 5
----
-100

skipif mysql # not compatible
query I rowsort label-1241
SELECT DISTINCT - 68 + 18 + 35 + - 75 - + 15 - + 29 / + + 40 - - 5
----
-100

query I rowsort
SELECT 97 * - 67
----
-6499

onlyif mysql # DIV for integer division: 
query I rowsort label-1243
SELECT 9 DIV - + 1
----
-9

skipif mysql # not compatible
query I rowsort label-1243
SELECT 9 / - + 1
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1244
SELECT - - COUNT( * ) * 83 - + 48 DIV 23 * - 49 AS col0
----
181

skipif mysql # not compatible
query I rowsort label-1244
SELECT - - COUNT ( * ) * 83 - + 48 / 23 * - 49 AS col0
----
181

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1245
SELECT COALESCE ( COUNT( * ), - - ( - 54 ) * 98, - + 87 ) * - CAST( - + 74 AS SIGNED ) * - COUNT( * ) + - 81 AS col0
----
-155

skipif mysql # not compatible
query I rowsort label-1245
SELECT COALESCE ( COUNT ( * ), - - ( - 54 ) * 98, - + 87 ) * - CAST ( - + 74 AS INTEGER ) * - COUNT ( * ) + - 81 AS col0
----
-155

query II rowsort
SELECT + 14 * - 20 col2, ( 22 )
----
-280
22

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-1247
SELECT ALL ( - 84 ) + - - COUNT( * ) + - 40 - + 1 DIV - - ( - 32 ) * - + NULLIF ( - ( + 9 ), + 94 + + + 54 + - + 67 DIV + CAST( NULL AS DECIMAL ) * + + 83 ) * ( - + 5 )
----
-123

skipif mysql # not compatible
query I rowsort label-1247
SELECT ALL ( - 84 ) + - - COUNT ( * ) + - 40 - + 1 / - - ( - 32 ) * - + NULLIF ( - ( + 9 ), + 94 + + + 54 + - + 67 / + CAST ( NULL AS REAL ) * + + 83 ) * ( - + 5 )
----
-123

query I rowsort
SELECT ALL 81 + - - 19 col0
----
100

query I rowsort
SELECT - 50 - 30 col1
----
-80

query II rowsort
SELECT ALL 47 + + 36, - 22 col2
----
83
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-1251
SELECT + COUNT( * ) + 3 - + 18 * 57 * 74 col2
----
-75920

skipif mysql # not compatible
query I rowsort label-1251
SELECT + COUNT ( * ) + 3 - + 18 * 57 * 74 col2
----
-75920

query I rowsort
SELECT + 30 + + 4
----
34

query I rowsort
SELECT DISTINCT + ( - 1 ) * 36 col0
----
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-1254
SELECT 68 * + + 61 AS col2, + NULLIF ( + COUNT( * ), + + 53 * + COUNT( - 33 ) ) AS col1
----
4148
1

skipif mysql # not compatible
query II rowsort label-1254
SELECT 68 * + + 61 AS col2, + NULLIF ( + COUNT ( * ), + + 53 * + COUNT ( - 33 ) ) AS col1
----
4148
1

query I rowsort
SELECT ALL 97 - 36 * 66 col0
----
-2279

query I rowsort
SELECT ( + 93 ) + - + 74 AS col0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-1257
SELECT - COUNT( DISTINCT + COALESCE ( + - ( 29 ), - 70 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-1257
SELECT - COUNT ( DISTINCT + COALESCE ( + - ( 29 ), - 70 ) )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1258
SELECT ALL 85, - MAX( ALL + CAST( NULL AS SIGNED ) ) AS col2
----
85
NULL

skipif mysql # not compatible
query II rowsort label-1258
SELECT ALL 85, - MAX ( ALL + CAST ( NULL AS INTEGER ) ) AS col2
----
85
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1259
SELECT 66, COUNT( * ) - - + SUM( DISTINCT + + 92 ) DIV 41 + - COUNT( * ) AS col0
----
66
2

skipif mysql # not compatible
query II rowsort label-1259
SELECT 66, COUNT ( * ) - - + SUM ( DISTINCT + + 92 ) / 41 + - COUNT ( * ) AS col0
----
66
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1260
SELECT ( SUM( ALL 96 ) ) DIV - COUNT( * )
----
-96

skipif mysql # not compatible
query I rowsort label-1260
SELECT ( SUM ( ALL 96 ) ) / - COUNT ( * )
----
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-1261
SELECT 8 DIV 13
----
0

skipif mysql # not compatible
query I rowsort label-1261
SELECT 8 / 13
----
0

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

query I rowsort
SELECT COALESCE ( - 82, 17 * 88 + + - 71 + - 83 * - 51 * - 12 * 45 * + 52 )
----
-82

query I rowsort
SELECT 7 * + COALESCE ( + 85, - 55 + - 78 - - 80 )
----
595

query II rowsort
SELECT ALL - 43 AS col0, 48
----
-43
48

onlyif mysql # DIV for integer division: 
query I rowsort label-1266
SELECT 14 - + 53 DIV + 70 * + 10
----
14

skipif mysql # not compatible
query I rowsort label-1266
SELECT 14 - + 53 / + 70 * + 10
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1267
SELECT DISTINCT - CASE 22 WHEN - + CAST( - 16 AS SIGNED ) THEN 52 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1267
SELECT DISTINCT - CASE 22 WHEN - + CAST ( - 16 AS INTEGER ) THEN 52 END AS col0
----
NULL

query I rowsort
SELECT 18 * + + ( + 91 ) + - 87 AS col0
----
1551

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1269
SELECT ALL + ( + 68 ) * - + 22 * + - 62 + - - 80 - + - ( + 4 ) * - - CAST( + - COUNT( * ) AS SIGNED ) AS col1
----
92828

skipif mysql # not compatible
query I rowsort label-1269
SELECT ALL + ( + 68 ) * - + 22 * + - 62 + - - 80 - + - ( + 4 ) * - - CAST ( + - COUNT ( * ) AS INTEGER ) AS col1
----
92828

onlyif mysql # aggregate syntax: 
query II rowsort label-1270
SELECT 33 * SUM( DISTINCT - - 17 ) col0, + 1
----
561
1

skipif mysql # not compatible
query II rowsort label-1270
SELECT 33 * SUM ( DISTINCT - - 17 ) col0, + 1
----
561
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1271
SELECT ( - 24 ) + 63 * - MAX( ALL + ( - - 95 ) ) * 53 + - 65
----
-317294

skipif mysql # not compatible
query I rowsort label-1271
SELECT ( - 24 ) + 63 * - MAX ( ALL + ( - - 95 ) ) * 53 + - 65
----
-317294

onlyif mysql # aggregate syntax: 
query I rowsort label-1272
SELECT 18 * - 98 * 6 + COUNT( * ) * 67
----
-10517

skipif mysql # not compatible
query I rowsort label-1272
SELECT 18 * - 98 * 6 + COUNT ( * ) * 67
----
-10517

onlyif mysql # aggregate syntax: 
query I rowsort label-1273
SELECT - 40 - COUNT( * ) AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-1273
SELECT - 40 - COUNT ( * ) AS col2
----
-41

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

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

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

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

query I rowsort
SELECT DISTINCT + + ( - - 68 ) AS col1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-1277
SELECT DISTINCT COUNT( * ) * - - 12 + 14
----
26

skipif mysql # not compatible
query I rowsort label-1277
SELECT DISTINCT COUNT ( * ) * - - 12 + 14
----
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1278
SELECT ALL 66 * - 10 * 82 * COALESCE ( + + COUNT( * ), - + 1 DIV - + 12 ) + - 99 AS col2, + COUNT( * )
----
-54219
1

skipif mysql # not compatible
query II rowsort label-1278
SELECT ALL 66 * - 10 * 82 * COALESCE ( + + COUNT ( * ), - + 1 / - + 12 ) + - 99 AS col2, + COUNT ( * )
----
-54219
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1279
SELECT ALL + - MAX( DISTINCT - 59 ) AS col0
----
59

skipif mysql # not compatible
query I rowsort label-1279
SELECT ALL + - MAX ( DISTINCT - 59 ) AS col0
----
59

query I rowsort
SELECT ALL - 13 * + 79 AS col2
----
-1027

query II rowsort
SELECT DISTINCT + 2 * - 39 + 80 AS col1, - 70 + + 10 AS col0
----
2
-60

query I rowsort
SELECT ALL - - 74 - + 59 - + 37 AS col1
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-1283
SELECT + + ( + NULLIF ( - COUNT( * ), + + 85 + 66 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-1283
SELECT + + ( + NULLIF ( - COUNT ( * ), + + 85 + 66 ) )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1284
SELECT - - 64 DIV - - 96 * + SUM( ( - 74 ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1284
SELECT - - 64 / - - 96 * + SUM ( ( - 74 ) ) AS col1
----
0

query I rowsort
SELECT ALL - 53 * - + 26 AS col1
----
1378

query I rowsort
SELECT - + 89 * - + 39
----
3471

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-1287
SELECT + 84 + + 91 DIV + - 35 + 37, 43 + - + 31 + - - ( + 55 ) + + 14 - - - CAST( NULL AS DECIMAL ) * - 75 * + + 61 * + + 22 AS col2
----
119
NULL

skipif mysql # not compatible
query II rowsort label-1287
SELECT + 84 + + 91 / + - 35 + 37, 43 + - + 31 + - - ( + 55 ) + + 14 - - - CAST ( NULL AS REAL ) * - 75 * + + 61 * + + 22 AS col2
----
119
NULL

query I rowsort
SELECT ALL - COALESCE ( + - 2, ( + 81 ) ) - - 26
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-1289
SELECT ALL MAX( ALL + - COALESCE ( + 20, + + 34 ) ) - + 83
----
-103

skipif mysql # not compatible
query I rowsort label-1289
SELECT ALL MAX ( ALL + - COALESCE ( + 20, + + 34 ) ) - + 83
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-1290
SELECT + MAX( ALL + 91 ) AS col1
----
91

skipif mysql # not compatible
query I rowsort label-1290
SELECT + MAX ( ALL + 91 ) AS col1
----
91

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1292
SELECT + 84 + - 37 + - 83 * - 83 * 91 * - + CAST( - COUNT( * ) AS SIGNED ) * - + MAX( + ( 40 ) )
----
-25075913

skipif mysql # not compatible
query I rowsort label-1292
SELECT + 84 + - 37 + - 83 * - 83 * 91 * - + CAST ( - COUNT ( * ) AS INTEGER ) * - + MAX ( + ( 40 ) )
----
-25075913

query II rowsort
SELECT DISTINCT ( 37 ) AS col0, - 59 AS col1
----
37
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1294
SELECT + CAST( + 95 AS SIGNED ) * 25 + COUNT( * )
----
2376

skipif mysql # not compatible
query I rowsort label-1294
SELECT + CAST ( + 95 AS INTEGER ) * 25 + COUNT ( * )
----
2376

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1295
SELECT + CAST( NULL AS DECIMAL ) - 2 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1295
SELECT + CAST ( NULL AS REAL ) - 2 AS col1
----
NULL

query I rowsort
SELECT + 31 + - 20
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-1297
SELECT DISTINCT + 40 * - 29 * - COUNT( * ) * + 70 AS col0
----
81200

skipif mysql # not compatible
query I rowsort label-1297
SELECT DISTINCT + 40 * - 29 * - COUNT ( * ) * + 70 AS col0
----
81200

onlyif mysql # aggregate syntax: 
query II rowsort label-1298
SELECT ALL COUNT( * ) + 68 AS col0, 31 AS col1
----
69
31

skipif mysql # not compatible
query II rowsort label-1298
SELECT ALL COUNT ( * ) + 68 AS col0, 31 AS col1
----
69
31

query I rowsort
SELECT ALL 83 * 21
----
1743

query I rowsort
SELECT DISTINCT 42 + - ( + 35 ) + + 82
----
89

query I rowsort
SELECT ALL + ( - - ( - 34 ) ) + - 95 AS col0
----
-129

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1302
SELECT + 71 + + CAST( + 26 AS SIGNED ) DIV 46 DIV 54 * 59 DIV - 89 + + 86 DIV COUNT( * ) - - + 46 * + ( - COALESCE ( + 4, + + 11 ) ) + - 77 col0
----
-104

skipif mysql # not compatible
query I rowsort label-1302
SELECT + 71 + + CAST ( + 26 AS INTEGER ) / 46 / 54 * 59 / - 89 + + 86 / COUNT ( * ) - - + 46 * + ( - COALESCE ( + 4, + + 11 ) ) + - 77 col0
----
-104

onlyif mysql # DIV for integer division: 
query II rowsort label-1303
SELECT + 47 DIV - 59 AS col1, 56 * + 52 * - 57 col2
----
0
-165984

skipif mysql # not compatible
query II rowsort label-1303
SELECT + 47 / - 59 AS col1, 56 * + 52 * - 57 col2
----
0
-165984

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1304
SELECT + 59 * - + 87 * 23 * COALESCE ( + CAST( - + COUNT( * ) AS SIGNED ), - 20 + - ( CAST( NULL AS SIGNED ) ) DIV 24 DIV 86, 76 )
----
118059

skipif mysql # not compatible
query I rowsort label-1304
SELECT + 59 * - + 87 * 23 * COALESCE ( + CAST ( - + COUNT ( * ) AS INTEGER ), - 20 + - ( CAST ( NULL AS INTEGER ) ) / 24 / 86, 76 )
----
118059

query II rowsort
SELECT ( - - 83 ) AS col2, ( ( + 6 ) )
----
83
6

query I rowsort
SELECT - 35 * + + 23 + + 8 AS col0
----
-797

query I rowsort
SELECT ( 67 )
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-1308
SELECT + 11 DIV 85 DIV 73 * - 9 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1308
SELECT + 11 / 85 / 73 * - 9 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1309
SELECT 87 / AVG ( ( - 41 ) ) + ( - 5 ) + NULLIF ( - - CAST( NULL AS SIGNED ), + 25 + - 3 ) + - 12 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1309
SELECT 87 / AVG ( ( - 41 ) ) + ( - 5 ) + NULLIF ( - - CAST ( NULL AS INTEGER ), + 25 + - 3 ) + - 12 AS col2
----
NULL

query I rowsort
SELECT + + 3 * 37 AS col1
----
111

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

query I rowsort
SELECT DISTINCT + 17 * - 90
----
-1530

onlyif mysql # aggregate syntax: 
query I rowsort label-1313
SELECT + 72 * - 9 * - ( + + COUNT( * ) )
----
648

skipif mysql # not compatible
query I rowsort label-1313
SELECT + 72 * - 9 * - ( + + COUNT ( * ) )
----
648

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

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

query I rowsort
SELECT - 68 * - NULLIF ( - + 39, 53 * + + 67 * - 38 ) AS col1
----
-2652

query I rowsort
SELECT - + 2 * 41 AS col1
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1317
SELECT - ( - + CAST( - 32 AS SIGNED ) ) + + 4 AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-1317
SELECT - ( - + CAST ( - 32 AS INTEGER ) ) + + 4 AS col2
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-1318
SELECT ALL + 63 * - 99 - - 53 + - NULLIF ( - 48, - 54 - - + 46 ) * - CASE 55 WHEN + COUNT( * ) THEN + - 29 END * + - 20 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1318
SELECT ALL + 63 * - 99 - - 53 + - NULLIF ( - 48, - 54 - - + 46 ) * - CASE 55 WHEN + COUNT ( * ) THEN + - 29 END * + - 20 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1319
SELECT - 26 * + SUM( - CASE 89 WHEN + 62 + - - 77 THEN + 5 ELSE + 1 END ) col2
----
26

skipif mysql # not compatible
query I rowsort label-1319
SELECT - 26 * + SUM ( - CASE 89 WHEN + 62 + - - 77 THEN + 5 ELSE + 1 END ) col2
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-1320
SELECT - + 52 DIV + 60 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1320
SELECT - + 52 / + 60 AS col0
----
0

query I rowsort
SELECT ALL - - 83 * 93 AS col1
----
7719

onlyif mysql # aggregate syntax: 
query I rowsort label-1322
SELECT - + 2 - - - 76 + + - COUNT( * ) * + 43 * - + 47 AS col1
----
1943

skipif mysql # not compatible
query I rowsort label-1322
SELECT - + 2 - - - 76 + + - COUNT ( * ) * + 43 * - + 47 AS col1
----
1943

onlyif mysql # aggregate syntax: 
query I rowsort label-1323
SELECT ALL - + MAX( ALL - 40 ) * + 46
----
1840

skipif mysql # not compatible
query I rowsort label-1323
SELECT ALL - + MAX ( ALL - 40 ) * + 46
----
1840

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1324
SELECT - 1 DIV + 30 + - 11 DIV - 52, ( - 68 ) * - 76 DIV 51 - - + NULLIF ( CAST( NULL AS SIGNED ), - 90 * + - 70 + - 74 DIV - 46 ) + + COUNT( * ) + 98 * 84 AS col2
----
0
NULL

skipif mysql # not compatible
query II rowsort label-1324
SELECT - 1 / + 30 + - 11 / - 52, ( - 68 ) * - 76 / 51 - - + NULLIF ( CAST ( NULL AS INTEGER ), - 90 * + - 70 + - 74 / - 46 ) + + COUNT ( * ) + 98 * 84 AS col2
----
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1325
SELECT - ( 91 ) + + 54 * - - 15 * - 62 - + - 47 + + 37 - - 2 + 57 * + COUNT( * ) + + 64 + + - 9
----
-50113

skipif mysql # not compatible
query I rowsort label-1325
SELECT - ( 91 ) + + 54 * - - 15 * - 62 - + - 47 + + 37 - - 2 + 57 * + COUNT ( * ) + + 64 + + - 9
----
-50113

query I rowsort
SELECT - 8 + - - 65
----
57

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

skipif mysql # not compatible
query I rowsort label-1327
SELECT - COUNT ( * ) / + + 13
----
0

query I rowsort
SELECT + 31 * 42 AS col0
----
1302

query I rowsort
SELECT ALL + 54 + ( + 58 ) * 69 * - 10
----
-39966

query I rowsort
SELECT DISTINCT - 81 + 30
----
-51

query II rowsort
SELECT ALL 2 col0, - 68 + - 80 AS col2
----
2
-148

query I rowsort
SELECT ALL 29 * - - 60 col0
----
1740

query I rowsort
SELECT 13 + - - ( + 61 )
----
74

query I rowsort
SELECT 49 * 3 AS col2
----
147

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

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

query I rowsort
SELECT ALL ( 22 ) + 36
----
58

query I rowsort
SELECT ALL 82 * - 16
----
-1312

query I rowsort
SELECT ALL - ( + - 65 ) * 84 AS col0
----
5460

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1339
SELECT 39 - + + CASE - 40 WHEN + CAST( AVG ( ALL 68 ) AS SIGNED ) / 8 - + 66 THEN - 79 WHEN + MAX( - CAST( 15 AS DECIMAL ) ) * + 58 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1339
SELECT 39 - + + CASE - 40 WHEN + CAST ( AVG ( ALL 68 ) AS INTEGER ) / 8 - + 66 THEN - 79 WHEN + MAX ( - CAST ( 15 AS REAL ) ) * + 58 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1340
SELECT SUM( - 34 ) AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-1340
SELECT SUM ( - 34 ) AS col0
----
-34

query I rowsort
SELECT DISTINCT 68 * + 24
----
1632

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1342
SELECT ALL - CASE - 5 WHEN + 46 * 86 * 29 THEN + 76 * + CAST( NULL AS SIGNED ) + - + 25 - + 2 * - 84 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1342
SELECT ALL - CASE - 5 WHEN + 46 * 86 * 29 THEN + 76 * + CAST ( NULL AS INTEGER ) + - + 25 - + 2 * - 84 END
----
NULL

query I rowsort
SELECT - 3 * + 74 + 45 * + 92 + + ( - 55 ) * 33 * + 92 AS col2
----
-163062

query I rowsort
SELECT - 70 + 23
----
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1345
SELECT ALL COUNT( * ) DIV - + 56 + - 74 AS col2, - 26 AS col1
----
-74
-26

skipif mysql # not compatible
query II rowsort label-1345
SELECT ALL COUNT ( * ) / - + 56 + - 74 AS col2, - 26 AS col1
----
-74
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1346
SELECT + COUNT( * ) * - 9 + 76 + + - 97 + COALESCE ( + CASE - 70 WHEN - + 85 + + 4 THEN NULL WHEN - COUNT( * ) THEN NULL WHEN 99 * + 5 - + + COUNT( * ) + - 12 THEN - 13 * - 77 / - 63 + 78 + - 37 * - NULLIF ( 34, ( + 30 ) * + 87 ) END, - CAST( NULL AS SIGNED ) ) + + 6 * + AVG ( ALL - ( - - 42 ) ) / + 40 AS col0, - COUNT( * ) * + ( + 23 ) * 67 - + 55 + + 85 * - COUNT( * )
----
NULL
-1681

skipif mysql # not compatible
query II rowsort label-1346
SELECT + COUNT ( * ) * - 9 + 76 + + - 97 + COALESCE ( + CASE - 70 WHEN - + 85 + + 4 THEN NULL WHEN - COUNT ( * ) THEN NULL WHEN 99 * + 5 - + + COUNT ( * ) + - 12 THEN - 13 * - 77 / - 63 + 78 + - 37 * - NULLIF ( 34, ( + 30 ) * + 87 ) END, - CAST ( NULL AS INTEGER ) ) + + 6 * + AVG ( ALL - ( - - 42 ) ) / + 40 AS col0, - COUNT ( * ) * + ( + 23 ) * 67 - + 55 + + 85 * - COUNT ( * )
----
NULL
-1681

onlyif mysql # aggregate syntax: 
query I rowsort label-1347
SELECT + MIN( - 44 ) - MIN( - 12 ) * - + 27
----
-368

skipif mysql # not compatible
query I rowsort label-1347
SELECT + MIN ( - 44 ) - MIN ( - 12 ) * - + 27
----
-368

onlyif mysql # aggregate syntax: 
query I rowsort label-1348
SELECT MAX( + 56 ) * + COUNT( * ) + 37 + 85 * + - 79
----
-6622

skipif mysql # not compatible
query I rowsort label-1348
SELECT MAX ( + 56 ) * + COUNT ( * ) + 37 + 85 * + - 79
----
-6622

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1350
SELECT ( COUNT( * ) ) * - 3 + 82 + - + 68 AS col1
----
11

skipif mysql # not compatible
query I rowsort label-1350
SELECT ( COUNT ( * ) ) * - 3 + 82 + - + 68 AS col1
----
11

query I rowsort
SELECT DISTINCT - - 75 col0
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1352
SELECT ALL + 92 DIV COUNT( * ) AS col0
----
92

skipif mysql # not compatible
query I rowsort label-1352
SELECT ALL + 92 / COUNT ( * ) AS col0
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-1353
SELECT + 19 + MAX( ALL 62 ) AS col2
----
81

skipif mysql # not compatible
query I rowsort label-1353
SELECT + 19 + MAX ( ALL 62 ) AS col2
----
81

query II rowsort
SELECT DISTINCT - - 59 AS col0, 22 + 33
----
59
55

onlyif mysql # DIV for integer division: 
query I rowsort label-1355
SELECT ALL - - 31 * - 13 + + + 40 - + NULLIF ( 31, + 61 ) DIV - 66 AS col1
----
-363

skipif mysql # not compatible
query I rowsort label-1355
SELECT ALL - - 31 * - 13 + + + 40 - + NULLIF ( 31, + 61 ) / - 66 AS col1
----
-363

onlyif mysql # aggregate syntax: 
query I rowsort label-1356
SELECT ALL 2 * MAX( DISTINCT + 85 ) AS col2
----
170

skipif mysql # not compatible
query I rowsort label-1356
SELECT ALL 2 * MAX ( DISTINCT + 85 ) AS col2
----
170

query II rowsort
SELECT + 35 * - 95 + - 56, + 80 AS col2
----
-3381
80

query I rowsort
SELECT DISTINCT - 68 * - 35
----
2380

query I rowsort
SELECT DISTINCT - + NULLIF ( 36, + 9 ) AS col2
----
-36

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

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

query I rowsort
SELECT ALL + 76 + + 79 AS col1
----
155

query II rowsort
SELECT - 77 AS col1, 85
----
-77
85

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

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

query II rowsort
SELECT 95 AS col0, - 59 AS col0
----
95
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-1365
SELECT COUNT( DISTINCT - 13 ) * - 39 + + 76
----
37

skipif mysql # not compatible
query I rowsort label-1365
SELECT COUNT ( DISTINCT - 13 ) * - 39 + + 76
----
37

query I rowsort
SELECT ALL 7 + + 78
----
85

query II rowsort
SELECT 11 AS col2, 61 AS col1
----
11
61

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1369
SELECT 14 + - 78 + - 11 DIV + 45 col1
----
-64

skipif mysql # not compatible
query I rowsort label-1369
SELECT 14 + - 78 + - 11 / + 45 col1
----
-64

query I rowsort
SELECT DISTINCT + 49 + - + 76 col1
----
-27

query II rowsort
SELECT - 0 AS col1, 99 + 73 + + 9 * + 75
----
0
847

onlyif mysql # aggregate syntax: 
query II rowsort label-1372
SELECT 7 * CASE + 71 WHEN - + 63 - + 30 THEN + 21 ELSE NULL END AS col0, COUNT( * ) * + - 32 * + 84 AS col1
----
NULL
-2688

skipif mysql # not compatible
query II rowsort label-1372
SELECT 7 * CASE + 71 WHEN - + 63 - + 30 THEN + 21 ELSE NULL END AS col0, COUNT ( * ) * + - 32 * + 84 AS col1
----
NULL
-2688

onlyif mysql # aggregate syntax: 
query I rowsort label-1373
SELECT 42 * - 20 * + COUNT( * )
----
-840

skipif mysql # not compatible
query I rowsort label-1373
SELECT 42 * - 20 * + COUNT ( * )
----
-840

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1374
SELECT 11 AS col0, + CAST( - 29 AS SIGNED ) AS col0
----
11
-29

skipif mysql # not compatible
query II rowsort label-1374
SELECT 11 AS col0, + CAST ( - 29 AS INTEGER ) AS col0
----
11
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1375
SELECT 49 + 91 * - + 51 - - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1375
SELECT 49 + 91 * - + 51 - - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT 48 + - ( - - ( 37 ) )
----
11

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

skipif mysql # not compatible
query I rowsort label-1377
SELECT ( MAX ( ALL - - 82 ) )
----
82

onlyif mysql # aggregate syntax: 
query II rowsort label-1378
SELECT 89 * + 27 + - MIN( - 18 ), 71 + + 11 AS col0
----
2421
82

skipif mysql # not compatible
query II rowsort label-1378
SELECT 89 * + 27 + - MIN ( - 18 ), 71 + + 11 AS col0
----
2421
82

query I rowsort
SELECT ALL - + ( ( 81 ) ) col0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-1380
SELECT + 63 * - 70 + - ( 6 ) + - + 8 * COUNT( * ) + 5 AS col2
----
-4419

skipif mysql # not compatible
query I rowsort label-1380
SELECT + 63 * - 70 + - ( 6 ) + - + 8 * COUNT ( * ) + 5 AS col2
----
-4419

onlyif mysql # aggregate syntax: 
query I rowsort label-1381
SELECT + 42 * + ( + + MAX( + 92 ) )
----
3864

skipif mysql # not compatible
query I rowsort label-1381
SELECT + 42 * + ( + + MAX ( + 92 ) )
----
3864

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1382
SELECT + 81 * 75 + CAST( NULL AS SIGNED ) + 14 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1382
SELECT + 81 * 75 + CAST ( NULL AS INTEGER ) + 14 AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1384
SELECT DISTINCT + - COALESCE ( + + 81, 24 * + + 93 + + MAX( ALL + 36 ), + + 78 ) * 17 + - - 36 col1
----
-1341

skipif mysql # not compatible
query I rowsort label-1384
SELECT DISTINCT + - COALESCE ( + + 81, 24 * + + 93 + + MAX ( ALL + 36 ), + + 78 ) * 17 + - - 36 col1
----
-1341

onlyif mysql # aggregate syntax: 
query II rowsort label-1385
SELECT ALL - - 47, + 36 + + COUNT( * ) AS col2
----
47
37

skipif mysql # not compatible
query II rowsort label-1385
SELECT ALL - - 47, + 36 + + COUNT ( * ) AS col2
----
47
37

query I rowsort
SELECT ALL 87 * 53 * 6
----
27666

onlyif mysql # aggregate syntax: 
query I rowsort label-1387
SELECT - COUNT( - 4 )
----
-1

skipif mysql # not compatible
query I rowsort label-1387
SELECT - COUNT ( - 4 )
----
-1

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

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

query I rowsort
SELECT DISTINCT - 39 + - 71 AS col1
----
-110

query I rowsort
SELECT ALL - 80 + - 7
----
-87

onlyif mysql # aggregate syntax: 
query II rowsort label-1391
SELECT 81 AS col2, COALESCE ( - 0, CASE - ( - 28 ) WHEN 29 + - + 66 THEN NULL WHEN - 64 THEN NULL ELSE 77 - - + 18 END + + + 88 * ( + 92 ) + 1 ) * + 53 * + 12 + - COUNT( * ) AS col2
----
81
-1

skipif mysql # not compatible
query II rowsort label-1391
SELECT 81 AS col2, COALESCE ( - 0, CASE - ( - 28 ) WHEN 29 + - + 66 THEN NULL WHEN - 64 THEN NULL ELSE 77 - - + 18 END + + + 88 * ( + 92 ) + 1 ) * + 53 * + 12 + - COUNT ( * ) AS col2
----
81
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1392
SELECT + ( - NULLIF ( - 9, 55 * - 97 * + CAST( NULL AS SIGNED ) / + 59 ) ) + + 45 col2
----
54

skipif mysql # not compatible
query I rowsort label-1392
SELECT + ( - NULLIF ( - 9, 55 * - 97 * + CAST ( NULL AS INTEGER ) / + 59 ) ) + + 45 col2
----
54

query II rowsort
SELECT + 30 AS col2, 50 col1
----
30
50

query I rowsort
SELECT DISTINCT - 78 + - 98 col1
----
-176

query I rowsort
SELECT DISTINCT COALESCE ( + - 73, - 39 ) + ( - - 34 ) + 39 + + 79
----
79

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

skipif mysql # not compatible
query I rowsort label-1396
SELECT ALL + COUNT ( * ) + + 38 AS col2
----
39

query I rowsort
SELECT ALL ( + 40 ) + 98 AS col1
----
138

query I rowsort
SELECT + 18 + 80 AS col1
----
98

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1400
SELECT - CASE - 75 WHEN + - 37 * CAST( NULL AS DECIMAL ) THEN NULL ELSE + 24 + COUNT( * ) END
----
-25

skipif mysql # not compatible
query I rowsort label-1400
SELECT - CASE - 75 WHEN + - 37 * CAST ( NULL AS REAL ) THEN NULL ELSE + 24 + COUNT ( * ) END
----
-25

query I rowsort
SELECT DISTINCT 11 - - 1
----
12

query I rowsort
SELECT DISTINCT NULLIF ( + 53, + 53 ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1403
SELECT DISTINCT + 46 DIV - 37 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1403
SELECT DISTINCT + 46 / - 37 AS col2
----
-1

query I rowsort
SELECT + 28 * - 87 AS col2
----
-2436

onlyif mysql # aggregate syntax: 
query I rowsort label-1405
SELECT - - 91 * COUNT( * ) * + - 25
----
-2275

skipif mysql # not compatible
query I rowsort label-1405
SELECT - - 91 * COUNT ( * ) * + - 25
----
-2275

query I rowsort
SELECT + + 22 * + 99
----
2178

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1407
SELECT DISTINCT NULLIF ( + 21, - CAST( - 47 AS SIGNED ) + + 96 + - - 18 + + 76 * 3 / - COUNT( * ) + + - 32 * + 70 + + - MIN( DISTINCT 29 ) ) AS col1
----
21

skipif mysql # not compatible
query I rowsort label-1407
SELECT DISTINCT NULLIF ( + 21, - CAST ( - 47 AS INTEGER ) + + 96 + - - 18 + + 76 * 3 / - COUNT ( * ) + + - 32 * + 70 + + - MIN ( DISTINCT 29 ) ) AS col1
----
21

query I rowsort
SELECT ALL 35 * 96 * + 36 * - ( + 74 )
----
-8951040

query II rowsort
SELECT - 79 * + 43, - 30 + - - 91 AS col2
----
-3397
61

query I rowsort
SELECT ALL - 34 * 85 + - 74
----
-2964

query I rowsort
SELECT + 56 * - ( - ( + 62 ) ) + + 12 - + 43
----
3441

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1412
SELECT + + 15 + - COUNT( * ) + - 59 + - - CAST( NULL AS DECIMAL ) * - 92 * 33
----
NULL

skipif mysql # not compatible
query I rowsort label-1412
SELECT + + 15 + - COUNT ( * ) + - 59 + - - CAST ( NULL AS REAL ) * - 92 * 33
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1413
SELECT - - COALESCE ( - + SUM( ALL + + 54 ), + 73 ) + + 74 AS col2
----
20

skipif mysql # not compatible
query I rowsort label-1413
SELECT - - COALESCE ( - + SUM ( ALL + + 54 ), + 73 ) + + 74 AS col2
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-1414
SELECT MAX( 90 )
----
90

skipif mysql # not compatible
query I rowsort label-1414
SELECT MAX ( 90 )
----
90

query I rowsort
SELECT DISTINCT 31 * - - 32 + - + 13 AS col2
----
979

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1416
SELECT ALL MAX( - + 26 ) * - 76 + + COALESCE ( + AVG ( 94 ), + + 99, - 17, + COALESCE ( 10, - 96 * 59 * - 43 + - 73 ) ) + + 77 + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1416
SELECT ALL MAX ( - + 26 ) * - 76 + + COALESCE ( + AVG ( 94 ), + + 99, - 17, + COALESCE ( 10, - 96 * 59 * - 43 + - 73 ) ) + + 77 + - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1417
SELECT ALL + 75 * 69 * - - 98 + - - COALESCE ( 38, COUNT( * ) )
----
507188

skipif mysql # not compatible
query I rowsort label-1417
SELECT ALL + 75 * 69 * - - 98 + - - COALESCE ( 38, COUNT ( * ) )
----
507188

onlyif mysql # aggregate syntax: 
query I rowsort label-1418
SELECT + 78 + + COUNT( * ) col1
----
79

skipif mysql # not compatible
query I rowsort label-1418
SELECT + 78 + + COUNT ( * ) col1
----
79

query II rowsort
SELECT + 33 col2, - 74 + + 72 + + 71 - - 83 + + 5 * - 34 AS col0
----
33
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-1420
SELECT CASE - COUNT( * ) WHEN + MAX( DISTINCT 30 ) + - 18 THEN - 16 WHEN 99 * - + 69 * 31 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1420
SELECT CASE - COUNT ( * ) WHEN + MAX ( DISTINCT 30 ) + - 18 THEN - 16 WHEN 99 * - + 69 * 31 THEN NULL END
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1422
SELECT + COUNT( * ) * - + 21 * - COUNT( * ) * + + 35 * + 81
----
59535

skipif mysql # not compatible
query I rowsort label-1422
SELECT + COUNT ( * ) * - + 21 * - COUNT ( * ) * + + 35 * + 81
----
59535

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1423
SELECT ALL - 48 * 94 - + 47 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1423
SELECT ALL - 48 * 94 - + 47 / CAST ( NULL AS INTEGER )
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1425
SELECT + 95 DIV + 13 AS col2
----
7

skipif mysql # not compatible
query I rowsort label-1425
SELECT + 95 / + 13 AS col2
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1426
SELECT + COALESCE ( - - COALESCE ( + 99, 74 * + + 23 - - SUM( DISTINCT - 74 ) * 96, 98 ), - 18 * + 53 * CAST( - - 95 AS SIGNED ) ) + - 73 AS col1, - 38 + - + 23 * + CASE COUNT( * ) WHEN + - 19 THEN + - CAST( + 23 AS DECIMAL ) END - + 65
----
26
NULL

skipif mysql # not compatible
query II rowsort label-1426
SELECT + COALESCE ( - - COALESCE ( + 99, 74 * + + 23 - - SUM ( DISTINCT - 74 ) * 96, 98 ), - 18 * + 53 * CAST ( - - 95 AS INTEGER ) ) + - 73 AS col1, - 38 + - + 23 * + CASE COUNT ( * ) WHEN + - 19 THEN + - CAST ( + 23 AS REAL ) END - + 65
----
26
NULL

query I rowsort
SELECT + 12 * - + 46
----
-552

onlyif mysql # aggregate syntax: 
query I rowsort label-1428
SELECT - CASE - COUNT( * ) WHEN + - COUNT( * ) * - + 94 THEN - 14 - + 90 + + 1 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1428
SELECT - CASE - COUNT ( * ) WHEN + - COUNT ( * ) * - + 94 THEN - 14 - + 90 + + 1 ELSE NULL END AS col2
----
NULL

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1431
SELECT ALL 59 * - COUNT( DISTINCT - 16 )
----
-59

skipif mysql # not compatible
query I rowsort label-1431
SELECT ALL 59 * - COUNT ( DISTINCT - 16 )
----
-59

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

skipif mysql # not compatible
query I rowsort label-1432
SELECT + 65 / + - 40 * + + COUNT ( * )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1433
SELECT ALL 71 DIV + 91
----
0

skipif mysql # not compatible
query I rowsort label-1433
SELECT ALL 71 / + 91
----
0

query II rowsort
SELECT 82 AS col0, 53 * - + 21
----
82
-1113

query I rowsort
SELECT - NULLIF ( - 44, + 85 ) AS col2
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-1436
SELECT - NULLIF ( - ( 0 ), - COUNT( * ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1436
SELECT - NULLIF ( - ( 0 ), - COUNT ( * ) ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1437
SELECT DISTINCT COUNT( * ), ( - 38 ) * 65 + + - 31 AS col1
----
1
-2501

skipif mysql # not compatible
query II rowsort label-1437
SELECT DISTINCT COUNT ( * ), ( - 38 ) * 65 + + - 31 AS col1
----
1
-2501

query II rowsort
SELECT + 36 * + 15 + ( - 4 ) AS col0, - 99 col0
----
536
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1439
SELECT ALL 19 + CAST( - + 16 AS SIGNED ) * - 80 + - COUNT( * ) * - - 80 * 92
----
-6061

skipif mysql # not compatible
query I rowsort label-1439
SELECT ALL 19 + CAST ( - + 16 AS INTEGER ) * - 80 + - COUNT ( * ) * - - 80 * 92
----
-6061

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1440
SELECT + CASE ( + ( - COUNT( * ) ) ) WHEN NULLIF ( + - 19, CASE CAST( NULL AS DECIMAL ) WHEN - - 74 - 3 - CAST( NULL AS SIGNED ) + - 25 * - 1 THEN + + ( - 30 ) / - 91 + - 69 + - 0 * + 69 - + 88 WHEN 8 THEN SUM( 94 ) WHEN COUNT( * ) * + 5 + COUNT( * ) THEN + - 83 * - 41 + + 48 END ) * ( 0 ) + + COUNT( * ) * - - 39 + 74 THEN + 21 + - 92 ELSE NULL END * 53
----
NULL

skipif mysql # not compatible
query I rowsort label-1440
SELECT + CASE ( + ( - COUNT ( * ) ) ) WHEN NULLIF ( + - 19, CASE CAST ( NULL AS REAL ) WHEN - - 74 - 3 - CAST ( NULL AS INTEGER ) + - 25 * - 1 THEN + + ( - 30 ) / - 91 + - 69 + - 0 * + 69 - + 88 WHEN 8 THEN SUM ( 94 ) WHEN COUNT ( * ) * + 5 + COUNT ( * ) THEN + - 83 * - 41 + + 48 END ) * ( 0 ) + + COUNT ( * ) * - - 39 + 74 THEN + 21 + - 92 ELSE NULL END * 53
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1442
SELECT DISTINCT - 59, + 97 DIV 90 * + 33 col1
----
-59
33

skipif mysql # not compatible
query II rowsort label-1442
SELECT DISTINCT - 59, + 97 / 90 * + 33 col1
----
-59
33

onlyif mysql # DIV for integer division: 
query I rowsort label-1443
SELECT + + 24 DIV ( + 48 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1443
SELECT + + 24 / ( + 48 ) AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1444
SELECT - + 19 * + 12 + + SUM( DISTINCT - + 37 ) DIV + - 67 DIV - 88 DIV - - 49 AS col1
----
-228

skipif mysql # not compatible
query I rowsort label-1444
SELECT - + 19 * + 12 + + SUM ( DISTINCT - + 37 ) / + - 67 / - 88 / - - 49 AS col1
----
-228

query II rowsort
SELECT + 58 AS col0, 58 + + + ( - 79 )
----
58
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-1446
SELECT + 65 DIV - 96
----
0

skipif mysql # not compatible
query I rowsort label-1446
SELECT + 65 / - 96
----
0

query II rowsort
SELECT ALL + 0, + 88 AS col2
----
0
88

onlyif mysql # aggregate syntax: 
query II rowsort label-1448
SELECT + 58, + 65 * + - 82 * COUNT( * ) AS col2
----
58
-5330

skipif mysql # not compatible
query II rowsort label-1448
SELECT + 58, + 65 * + - 82 * COUNT ( * ) AS col2
----
58
-5330

onlyif mysql # DIV for integer division: 
query I rowsort label-1449
SELECT ALL - 74 DIV - - 73 + + 54 * 91
----
4913

skipif mysql # not compatible
query I rowsort label-1449
SELECT ALL - 74 / - - 73 + + 54 * 91
----
4913

query I rowsort
SELECT DISTINCT - 61 * - 2 col0
----
122

query I rowsort
SELECT - - 92 * 15 AS col2
----
1380

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1453
SELECT ALL + + 53 * + + NULLIF ( CASE + 85 WHEN 84 THEN - + 3 - - 47 WHEN + 51 THEN + - 70 ELSE NULL END, - + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1453
SELECT ALL + + 53 * + + NULLIF ( CASE + 85 WHEN 84 THEN - + 3 - - 47 WHEN + 51 THEN + - 70 ELSE NULL END, - + COUNT ( * ) )
----
NULL

query I rowsort
SELECT - + 17 * - 34
----
578

query II rowsort
SELECT ALL - 36 - + 62 AS col0, 59 AS col1
----
-98
59

onlyif mysql # aggregate syntax: 
query I rowsort label-1456
SELECT - 22 * 61 + + 36 / CASE 31 WHEN - COUNT( * ) THEN - - 38 END * + 73
----
NULL

skipif mysql # not compatible
query I rowsort label-1456
SELECT - 22 * 61 + + 36 / CASE 31 WHEN - COUNT ( * ) THEN - - 38 END * + 73
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1457
SELECT COUNT( * ) * + 16 col1
----
16

skipif mysql # not compatible
query I rowsort label-1457
SELECT COUNT ( * ) * + 16 col1
----
16

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1459
SELECT 17 + + + COUNT( * ) + - 54 + 38 DIV - SUM( + - 95 ) * 17 - + - ( - 93 ) DIV 44 + 20
----
-18

skipif mysql # not compatible
query I rowsort label-1459
SELECT 17 + + + COUNT ( * ) + - 54 + 38 / - SUM ( + - 95 ) * 17 - + - ( - 93 ) / 44 + 20
----
-18

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1460
SELECT DISTINCT + ( 75 ) * - CAST( NULL AS SIGNED ) + + + 55 AS col0, 53 + + 28 + - CAST( NULL AS DECIMAL ) col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1460
SELECT DISTINCT + ( 75 ) * - CAST ( NULL AS INTEGER ) + + + 55 AS col0, 53 + + 28 + - CAST ( NULL AS REAL ) col0
----
NULL
NULL

query I rowsort
SELECT 26 + - 32
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-1462
SELECT DISTINCT - MAX( - - 52 ) col0
----
-52

skipif mysql # not compatible
query I rowsort label-1462
SELECT DISTINCT - MAX ( - - 52 ) col0
----
-52

query II rowsort
SELECT 42 - - 7 AS col0, 89 * - 88 col1
----
49
-7832

onlyif mysql # aggregate syntax: 
query II rowsort label-1464
SELECT ALL - SUM( + 11 ) AS col0, 97
----
-11
97

skipif mysql # not compatible
query II rowsort label-1464
SELECT ALL - SUM ( + 11 ) AS col0, 97
----
-11
97

query I rowsort
SELECT 58 * + 82 * 71 AS col1
----
337676

query I rowsort
SELECT ALL - ( 91 ) * + 0 * - + 80 AS col2
----
0

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

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

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

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

query I rowsort
SELECT 83 * + 36
----
2988

onlyif mysql # aggregate syntax: 
query I rowsort label-1470
SELECT ALL + 78 + + COUNT( * ) * + + 65 AS col0
----
143

skipif mysql # not compatible
query I rowsort label-1470
SELECT ALL + 78 + + COUNT ( * ) * + + 65 AS col0
----
143

query I rowsort
SELECT ALL - 9 + - 20
----
-29

query I rowsort
SELECT 94 * + - 60
----
-5640

query I rowsort
SELECT - + COALESCE ( + + 68, - + 38 ) AS col0
----
-68

query I rowsort
SELECT DISTINCT + 76 + - 61 col1
----
15

query II rowsort
SELECT 56 + + + ( + + 56 ) * - 63 * 47 + - 98 * + 23 AS col0, - 94 AS col2
----
-168014
-94

query I rowsort
SELECT ALL 53 + - - 3
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1477
SELECT + 36 + + 43 - - - 8 - - - CAST( NULL AS SIGNED ) * + 72 * + 56 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1477
SELECT + 36 + + 43 - - - 8 - - - CAST ( NULL AS INTEGER ) * + 72 * + 56 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1478
SELECT 64 - - - 25 + + 43 + + COALESCE ( + 78, - MIN( + - 1 ) ) AS col1
----
160

skipif mysql # not compatible
query I rowsort label-1478
SELECT 64 - - - 25 + + 43 + + COALESCE ( + 78, - MIN ( + - 1 ) ) AS col1
----
160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1479
SELECT DISTINCT - 51 * + + NULLIF ( - + 86, 51 ) * + 16 + CAST( - 38 AS SIGNED ) + 0 AS col1
----
70138

skipif mysql # not compatible
query I rowsort label-1479
SELECT DISTINCT - 51 * + + NULLIF ( - + 86, 51 ) * + 16 + CAST ( - 38 AS INTEGER ) + 0 AS col1
----
70138

onlyif mysql # aggregate syntax: 
query I rowsort label-1480
SELECT MIN( DISTINCT - 97 ) + - 85
----
-182

skipif mysql # not compatible
query I rowsort label-1480
SELECT MIN ( DISTINCT - 97 ) + - 85
----
-182

onlyif mysql # aggregate syntax: 
query I rowsort label-1481
SELECT ALL 24 * COUNT( * ) AS col1
----
24

skipif mysql # not compatible
query I rowsort label-1481
SELECT ALL 24 * COUNT ( * ) AS col1
----
24

query I rowsort
SELECT 12 + + + 54 col1
----
66

query II rowsort
SELECT 43 * + + 64 AS col0, + 56
----
2752
56

query I rowsort
SELECT DISTINCT - - COALESCE ( - 7, - NULLIF ( + - 54, + + 95 ) ) AS col2
----
-7

query II rowsort
SELECT ALL - ( + 43 ) AS col0, 52 + + 6 * - + 76 * + - 7
----
-43
3244

query I rowsort
SELECT 4 * + 96 AS col2
----
384

query I rowsort
SELECT ALL - + 60 AS col2
----
-60

query I rowsort
SELECT DISTINCT - 63 col2
----
-63

query I rowsort
SELECT 22 * - 84 * 4 AS col0
----
-7392

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1490
SELECT DISTINCT 96 DIV + CAST( + 78 AS SIGNED ) AS col1, 21
----
1
21

skipif mysql # not compatible
query II rowsort label-1490
SELECT DISTINCT 96 / + CAST ( + 78 AS INTEGER ) AS col1, 21
----
1
21

query I rowsort
SELECT 52 + - - 54 AS col1
----
106

query I rowsort
SELECT DISTINCT 60 * - COALESCE ( + 7, 25 )
----
-420

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1494
SELECT DISTINCT ( + MIN( + + 57 ) ) - - + 68
----
125

skipif mysql # not compatible
query I rowsort label-1494
SELECT DISTINCT ( + MIN ( + + 57 ) ) - - + 68
----
125

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1495
SELECT 42 + CAST( + + 51 AS SIGNED ) + + CAST( + COUNT( * ) AS SIGNED )
----
94

skipif mysql # not compatible
query I rowsort label-1495
SELECT 42 + CAST ( + + 51 AS INTEGER ) + + CAST ( + COUNT ( * ) AS INTEGER )
----
94

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1497
SELECT 78 * ( + + 81 ) * + 91 * ( - 83 ) - CAST( - 87 AS SIGNED ) + + COUNT( * )
----
-47719766

skipif mysql # not compatible
query I rowsort label-1497
SELECT 78 * ( + + 81 ) * + 91 * ( - 83 ) - CAST ( - 87 AS INTEGER ) + + COUNT ( * )
----
-47719766

query I rowsort
SELECT 67 * + 90 AS col0
----
6030

query I rowsort
SELECT ALL - NULLIF ( - 53, - ( 65 ) )
----
53

query I rowsort
SELECT 48 + + + 20 col1
----
68

onlyif mysql # DIV for integer division: 
query II rowsort label-1501
SELECT ALL 16 AS col2, 83 DIV + 59
----
16
1

skipif mysql # not compatible
query II rowsort label-1501
SELECT ALL 16 AS col2, 83 / + 59
----
16
1

query I rowsort
SELECT 57 * + 70
----
3990

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

query I rowsort
SELECT ALL + 43 + 88 * 12 * - 74 * - - 20 + - - 22
----
-1562815

query I rowsort
SELECT ALL + 70 + - 6
----
64

query I rowsort
SELECT DISTINCT - + 66 + + - 76 * - 59
----
4418

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1507
SELECT CASE + COUNT( * ) WHEN - COALESCE ( ( + CAST( + + COUNT( * ) AS SIGNED ) ), 55, - 11 * - 8 ) * 30 * + COALESCE ( 99, 81 ) + - COUNT( * ) THEN MAX( DISTINCT + ( 79 ) ) + + 62 * - 86 WHEN - + 72 * - NULLIF ( + 65, - 43 ) / + 93 + - 11 * + 35 + + 61 THEN NULL ELSE NULL END / MIN( DISTINCT CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1507
SELECT CASE + COUNT ( * ) WHEN - COALESCE ( ( + CAST ( + + COUNT ( * ) AS INTEGER ) ), 55, - 11 * - 8 ) * 30 * + COALESCE ( 99, 81 ) + - COUNT ( * ) THEN MAX ( DISTINCT + ( 79 ) ) + + 62 * - 86 WHEN - + 72 * - NULLIF ( + 65, - 43 ) / + 93 + - 11 * + 35 + + 61 THEN NULL ELSE NULL END / MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT - 25 - 36 + - 46 AS col2
----
-107

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1512
SELECT ALL COALESCE ( + 80, - - 36 * - COUNT( * ), - + CASE + 33 WHEN + - COUNT( * ) THEN + - CAST( + 68 AS SIGNED ) WHEN 15 * 2 THEN + 10 + + - 39 ELSE - 97 END ) * - 81 * 67 + - 0 AS col1
----
-434160

skipif mysql # not compatible
query I rowsort label-1512
SELECT ALL COALESCE ( + 80, - - 36 * - COUNT ( * ), - + CASE + 33 WHEN + - COUNT ( * ) THEN + - CAST ( + 68 AS INTEGER ) WHEN 15 * 2 THEN + 10 + + - 39 ELSE - 97 END ) * - 81 * 67 + - 0 AS col1
----
-434160

query I rowsort
SELECT DISTINCT + 79 * + 14
----
1106

query I rowsort
SELECT + 84 * + - 67 AS col0
----
-5628

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1515
SELECT CASE - 55 WHEN - 83 THEN + - CAST( + 92 AS DECIMAL ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1515
SELECT CASE - 55 WHEN - 83 THEN + - CAST ( + 92 AS REAL ) ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - 73 * + 57 AS col1
----
-4161

query I rowsort
SELECT DISTINCT 19 * - 19
----
-361

query II rowsort
SELECT ALL + 68 AS col2, 99
----
68
99

query II rowsort
SELECT ALL + 71 AS col2, - 7 AS col0
----
71
-7

query II rowsort
SELECT DISTINCT + 74, - 1 AS col0
----
74
-1

query I rowsort
SELECT ALL + NULLIF ( 84, + - 47 * 32 )
----
84

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1524
SELECT 10 * + 77 * - + 57 * - COALESCE ( + 18, - 16 * - 44 * - 15 ) + 99 + - CAST( + COALESCE ( + 13, 4 + + 76 + - - 67, - 9 / - 28 ) AS SIGNED ) AS col1
----
790106

skipif mysql # not compatible
query I rowsort label-1524
SELECT 10 * + 77 * - + 57 * - COALESCE ( + 18, - 16 * - 44 * - 15 ) + 99 + - CAST ( + COALESCE ( + 13, 4 + + 76 + - - 67, - 9 / - 28 ) AS INTEGER ) AS col1
----
790106

onlyif mysql # aggregate syntax: 
query I rowsort label-1525
SELECT + NULLIF ( - - COUNT( * ), + + 96 * 56 + + 68 )
----
1

skipif mysql # not compatible
query I rowsort label-1525
SELECT + NULLIF ( - - COUNT ( * ), + + 96 * 56 + + 68 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1526
SELECT + MIN( ALL 48 ) + - COUNT( * )
----
47

skipif mysql # not compatible
query I rowsort label-1526
SELECT + MIN ( ALL 48 ) + - COUNT ( * )
----
47

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1527
SELECT ALL + 46 * + - 61 + - - 43 * 41 + + + ( - CAST( NULL AS DECIMAL ) ) * 75 + + COUNT( ( - 10 ) ) * + + 42 / - COUNT( * ) * - 51
----
NULL

skipif mysql # not compatible
query I rowsort label-1527
SELECT ALL + 46 * + - 61 + - - 43 * 41 + + + ( - CAST ( NULL AS REAL ) ) * 75 + + COUNT ( ( - 10 ) ) * + + 42 / - COUNT ( * ) * - 51
----
NULL

query II rowsort
SELECT ALL - 80 * + + 61 * + ( 31 ) + 29 + - 2 * CASE 40 WHEN - + 71 THEN 78 + + 22 ELSE NULL END AS col1, + 35 - 24 col1
----
NULL
11

query I rowsort
SELECT ALL 12 * 34 + + 62 + 87
----
557

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1530
SELECT ALL + 2 AS col0, + SUM( DISTINCT + ( - 2 ) ) DIV - 1
----
2
2

skipif mysql # not compatible
query II rowsort label-1530
SELECT ALL + 2 AS col0, + SUM ( DISTINCT + ( - 2 ) ) / - 1
----
2
2

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1532
SELECT DISTINCT - 76 + + ( - 23 ) * + 81 AS col0, CAST( NULL AS DECIMAL ) / + COUNT( * )
----
-1939
NULL

skipif mysql # not compatible
query II rowsort label-1532
SELECT DISTINCT - 76 + + ( - 23 ) * + 81 AS col0, CAST ( NULL AS REAL ) / + COUNT ( * )
----
-1939
NULL

query I rowsort
SELECT - COALESCE ( + 58, 71 )
----
-58

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

skipif mysql # not compatible
query I rowsort label-1534
SELECT - MAX ( ALL 85 )
----
-85

query I rowsort
SELECT - 56 + + - 50
----
-106

onlyif mysql # aggregate syntax: 
query II rowsort label-1536
SELECT - 92, SUM( DISTINCT - - NULLIF ( + 49, 33 ) ) * - CASE 8 WHEN - 92 * - 85 THEN NULL WHEN + 77 THEN 46 END + - NULLIF ( 8, COUNT( * ) + 37 ) * + - NULLIF ( + + 90, - ( - 84 ) ) AS col0
----
-92
NULL

skipif mysql # not compatible
query II rowsort label-1536
SELECT - 92, SUM ( DISTINCT - - NULLIF ( + 49, 33 ) ) * - CASE 8 WHEN - 92 * - 85 THEN NULL WHEN + 77 THEN 46 END + - NULLIF ( 8, COUNT ( * ) + 37 ) * + - NULLIF ( + + 90, - ( - 84 ) ) AS col0
----
-92
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1537
SELECT 62 * - CAST( + - COUNT( * ) AS SIGNED ) + + + 21 * 32 + - 30, 5 - - + 63 AS col0
----
704
68

skipif mysql # not compatible
query II rowsort label-1537
SELECT 62 * - CAST ( + - COUNT ( * ) AS INTEGER ) + + + 21 * 32 + - 30, 5 - - + 63 AS col0
----
704
68

onlyif mysql # aggregate syntax: 
query I rowsort label-1538
SELECT - - COALESCE ( - - 46, - + COUNT( * ) + - - 11 ) AS col0
----
46

skipif mysql # not compatible
query I rowsort label-1538
SELECT - - COALESCE ( - - 46, - + COUNT ( * ) + - - 11 ) AS col0
----
46

query I rowsort
SELECT DISTINCT - + 88 - 56 col1
----
-144

query I rowsort
SELECT DISTINCT ( - ( ( - 94 ) ) ) col2
----
94

query I rowsort
SELECT ALL - + 38 * 98 * 56 * - 15
----
3128160

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1543
SELECT DISTINCT 4 AS col1, 16 * + 85 * 48 * COUNT( * )
----
4
65280

skipif mysql # not compatible
query II rowsort label-1543
SELECT DISTINCT 4 AS col1, 16 * + 85 * 48 * COUNT ( * )
----
4
65280

query I rowsort
SELECT DISTINCT + 74 - 47 col1
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-1545
SELECT - - SUM( 63 ) AS col1
----
63

skipif mysql # not compatible
query I rowsort label-1545
SELECT - - SUM ( 63 ) AS col1
----
63

query I rowsort
SELECT ALL - ( 29 ) AS col2
----
-29

query I rowsort
SELECT ALL + - 46 * - 13 * 10
----
5980

query I rowsort
SELECT - + 35 * - 60
----
2100

query I rowsort
SELECT - NULLIF ( + - 26, - 81 )
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-1550
SELECT - MAX( 8 ) AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-1550
SELECT - MAX ( 8 ) AS col1
----
-8

query II rowsort
SELECT 79 col1, + 16 AS col2
----
79
16

query I rowsort
SELECT ALL ( 98 ) AS col2
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-1553
SELECT - COUNT( * ) + - 62 AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-1553
SELECT - COUNT ( * ) + - 62 AS col2
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-1554
SELECT ALL CASE + 18 WHEN - 50 - 53 THEN 23 * 14 END / COUNT( * ) * + 89 - + 21 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1554
SELECT ALL CASE + 18 WHEN - 50 - 53 THEN 23 * 14 END / COUNT ( * ) * + 89 - + 21 AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1557
SELECT COUNT( * ) DIV - + COUNT( * ) + + ( - 72 ) AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-1557
SELECT COUNT ( * ) / - + COUNT ( * ) + + ( - 72 ) AS col1
----
-73

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

skipif mysql # not compatible
query I rowsort label-1558
SELECT - COUNT ( * ) / - - SUM ( + 81 ) AS col2
----
0

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

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

query II rowsort
SELECT ALL 53 / ( - ( + 66 ) ) + + 13 + CASE - + 33 WHEN - 67 THEN + 64 * - + 37 * - ( + - 13 ) ELSE NULL END AS col1, 34 AS col2
----
NULL
34

query I rowsort
SELECT 78 * - + 18 + + 86 * + - 53
----
-5962

onlyif mysql # aggregate syntax: 
query II rowsort label-1562
SELECT ALL + MIN( 95 ) AS col0, + COALESCE ( 7, - + 74 + + 2, + 63 ) + + 8
----
95
15

skipif mysql # not compatible
query II rowsort label-1562
SELECT ALL + MIN ( 95 ) AS col0, + COALESCE ( 7, - + 74 + + 2, + 63 ) + + 8
----
95
15

onlyif mysql # aggregate syntax: 
query I rowsort label-1563
SELECT DISTINCT + 87 * - ( + COUNT( * ) ) * - CASE + 24 WHEN - 34 * 13 * - ( COUNT( * ) ) + COUNT( * ) * 37 * - 65 THEN - COUNT( DISTINCT + 77 ) + + - 11 * - 73 * - - MAX( DISTINCT - + 99 ) ELSE 43 * + ( + 50 ) + 92 END AS col2
----
195054

skipif mysql # not compatible
query I rowsort label-1563
SELECT DISTINCT + 87 * - ( + COUNT ( * ) ) * - CASE + 24 WHEN - 34 * 13 * - ( COUNT ( * ) ) + COUNT ( * ) * 37 * - 65 THEN - COUNT ( DISTINCT + 77 ) + + - 11 * - 73 * - - MAX ( DISTINCT - + 99 ) ELSE 43 * + ( + 50 ) + 92 END AS col2
----
195054

onlyif mysql # DIV for integer division: 
query I rowsort label-1564
SELECT - 12 DIV + - ( + 77 )
----
0

skipif mysql # not compatible
query I rowsort label-1564
SELECT - 12 / + - ( + 77 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1565
SELECT + 71 DIV - - COUNT( * ) + 64 AS col2
----
135

skipif mysql # not compatible
query I rowsort label-1565
SELECT + 71 / - - COUNT ( * ) + 64 AS col2
----
135

onlyif mysql # DIV for integer division: 
query I rowsort label-1566
SELECT ALL 90 DIV 80 * - 6 + 79 AS col0
----
73

skipif mysql # not compatible
query I rowsort label-1566
SELECT ALL 90 / 80 * - 6 + 79 AS col0
----
73

onlyif mysql # aggregate syntax: 
query II rowsort label-1567
SELECT + COUNT( * ) + + 25, NULLIF ( + 67, - - COUNT( * ) * - 18 ) col2
----
26
67

skipif mysql # not compatible
query II rowsort label-1567
SELECT + COUNT ( * ) + + 25, NULLIF ( + 67, - - COUNT ( * ) * - 18 ) col2
----
26
67

onlyif mysql # aggregate syntax: 
query II rowsort label-1568
SELECT + COALESCE ( + + 61, - COUNT( * ) * + - 16 * + 71 * + 22 + + + 63 ), 87 AS col2
----
61
87

skipif mysql # not compatible
query II rowsort label-1568
SELECT + COALESCE ( + + 61, - COUNT ( * ) * + - 16 * + 71 * + 22 + + + 63 ), 87 AS col2
----
61
87

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1570
SELECT ALL + 52 * + + 79 + + ( + CAST( + COUNT( * ) AS SIGNED ) )
----
4109

skipif mysql # not compatible
query I rowsort label-1570
SELECT ALL + 52 * + + 79 + + ( + CAST ( + COUNT ( * ) AS INTEGER ) )
----
4109

query I rowsort
SELECT ALL 33 * + 39 * - 22 * + - 25 + - 12
----
707838

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1573
SELECT + COUNT( DISTINCT + 29 ) * + - COALESCE ( + COUNT( * ), - COUNT( * ) * - 74 - + - 94 + - - CASE + 99 WHEN + + 77 * 5 * - 21 * - 83 - 25 * + CAST( 8 AS SIGNED ) + 51 THEN NULL ELSE + - 25 + 42 END - 1 + - + CASE - 10 WHEN - - 63 THEN NULL ELSE 11 * + COUNT( * ) + - + 20 END * + - 41 - + 45, + COUNT( 8 ) + - 74 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1573
SELECT + COUNT ( DISTINCT + 29 ) * + - COALESCE ( + COUNT ( * ), - COUNT ( * ) * - 74 - + - 94 + - - CASE + 99 WHEN + + 77 * 5 * - 21 * - 83 - 25 * + CAST ( 8 AS INTEGER ) + 51 THEN NULL ELSE + - 25 + 42 END - 1 + - + CASE - 10 WHEN - - 63 THEN NULL ELSE 11 * + COUNT ( * ) + - + 20 END * + - 41 - + 45, + COUNT ( 8 ) + - 74 ) AS col1
----
-1

query I rowsort
SELECT - 63 * + 83
----
-5229

query I rowsort
SELECT ALL NULLIF ( + 1, 2 ) * - - 22 * + 66 AS col2
----
1452

query II rowsort
SELECT ALL 90 * - 47 col1, 42 * 34 AS col2
----
-4230
1428

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1577
SELECT + - 25 * - - MIN( ALL + 95 ) + + 78 DIV - 55 + 48
----
-2328

skipif mysql # not compatible
query I rowsort label-1577
SELECT + - 25 * - - MIN ( ALL + 95 ) + + 78 / - 55 + 48
----
-2328

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1578
SELECT + ( - ( - 73 ) ) + + 95 + - 51 * + 29 DIV NULLIF ( + COUNT( * ), AVG ( + 8 ) * - COUNT( * ) ) AS col2
----
-1311

skipif mysql # not compatible
query I rowsort label-1578
SELECT + ( - ( - 73 ) ) + + 95 + - 51 * + 29 / NULLIF ( + COUNT ( * ), AVG ( + 8 ) * - COUNT ( * ) ) AS col2
----
-1311

onlyif mysql # aggregate syntax: 
query I rowsort label-1579
SELECT DISTINCT COUNT( * ) - - 82
----
83

skipif mysql # not compatible
query I rowsort label-1579
SELECT DISTINCT COUNT ( * ) - - 82
----
83

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1581
SELECT 41 + - - 79 col1, + COUNT( * )
----
120
1

skipif mysql # not compatible
query II rowsort label-1581
SELECT 41 + - - 79 col1, + COUNT ( * )
----
120
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1582
SELECT 87 + + MAX( 88 ) + - - 1 * 4 DIV 2 DIV 74, 64 * + 58 AS col0
----
175
3712

skipif mysql # not compatible
query II rowsort label-1582
SELECT 87 + + MAX ( 88 ) + - - 1 * 4 / 2 / 74, 64 * + 58 AS col0
----
175
3712

query I rowsort
SELECT 90 * 68 * - 38 AS col0
----
-232560

query I rowsort
SELECT - 79 * - + 79 * - 83
----
-518003

query I rowsort
SELECT - 23 - + + 28
----
-51

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

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

query I rowsort
SELECT ALL + NULLIF ( 2, - 33 ) * - + 16 AS col0
----
-32

query I rowsort
SELECT - 46 * - 88 AS col1
----
4048

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1589
SELECT DISTINCT + 0 * - 7 DIV + 52 DIV + COUNT( * ) * - 42 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1589
SELECT DISTINCT + 0 * - 7 / + 52 / + COUNT ( * ) * - 42 AS col1
----
0

query I rowsort
SELECT ALL + 19 * + 94
----
1786

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

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

query I rowsort
SELECT 52 * + 90
----
4680

query I rowsort
SELECT DISTINCT + ( - 81 ) + - ( 44 ) AS col1
----
-125

query II rowsort
SELECT 9 AS col1, + 19 AS col1
----
9
19

query I rowsort
SELECT ALL + 83 + + + 68 AS col1
----
151

query I rowsort
SELECT 42 * 69 col0
----
2898

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1597
SELECT DISTINCT + 1 + + CASE - 68 WHEN 93 THEN + 68 + - ( + MIN( + - NULLIF ( - CAST( NULL AS SIGNED ), 88 ) ) ) ELSE NULL END * + 7, - COUNT( * ) * + 41 + - ( - 57 ) AS col1
----
NULL
16

skipif mysql # not compatible
query II rowsort label-1597
SELECT DISTINCT + 1 + + CASE - 68 WHEN 93 THEN + 68 + - ( + MIN ( + - NULLIF ( - CAST ( NULL AS INTEGER ), 88 ) ) ) ELSE NULL END * + 7, - COUNT ( * ) * + 41 + - ( - 57 ) AS col1
----
NULL
16

onlyif mysql # DIV for integer division: 
query I rowsort label-1598
SELECT DISTINCT + 56 DIV - 25
----
-2

skipif mysql # not compatible
query I rowsort label-1598
SELECT DISTINCT + 56 / - 25
----
-2

query I rowsort
SELECT ALL - ( - 92 ) + - - 25 AS col0
----
117

onlyif mysql # aggregate syntax: 
query II rowsort label-1600
SELECT DISTINCT + 29 + - - 31 + + - ( - 98 ) + + 65 + + + SUM( NULLIF ( - 35, + + 96 ) ) * + - COUNT( * ) * 83 AS col1, ( - 61 ) AS col1
----
3128
-61

skipif mysql # not compatible
query II rowsort label-1600
SELECT DISTINCT + 29 + - - 31 + + - ( - 98 ) + + 65 + + + SUM ( NULLIF ( - 35, + + 96 ) ) * + - COUNT ( * ) * 83 AS col1, ( - 61 ) AS col1
----
3128
-61

query I rowsort
SELECT DISTINCT 88 * 18
----
1584

query I rowsort
SELECT ALL 47 + 50 * - 83 + 47 * + 68 * 64 * + 15
----
3064057

query I rowsort
SELECT ALL - COALESCE ( - + 5, + 75 ) AS col2
----
5

query I rowsort
SELECT 57 * + 20
----
1140

query I rowsort
SELECT ALL + 84 - 92
----
-8

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1606
SELECT + 22 * ( 32 ) * + 79 + + COALESCE ( + 10, + - 50, CASE + ( 61 ) WHEN 2 - - CAST( + 14 AS DECIMAL ) THEN ( 43 ) WHEN - 83 THEN NULL ELSE NULL END * - 49 + + - 52 ) - - COUNT( * ) * - - 87 * 16 * 67 - - - 35 * 44 AS col0
----
147350

skipif mysql # not compatible
query I rowsort label-1606
SELECT + 22 * ( 32 ) * + 79 + + COALESCE ( + 10, + - 50, CASE + ( 61 ) WHEN 2 - - CAST ( + 14 AS REAL ) THEN ( 43 ) WHEN - 83 THEN NULL ELSE NULL END * - 49 + + - 52 ) - - COUNT ( * ) * - - 87 * 16 * 67 - - - 35 * 44 AS col0
----
147350

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1608
SELECT - - COALESCE ( - 1, 54 ) * 59 * COUNT( * ) - + 95 + - MAX( - 1 ) * 15
----
-139

skipif mysql # not compatible
query I rowsort label-1608
SELECT - - COALESCE ( - 1, 54 ) * 59 * COUNT ( * ) - + 95 + - MAX ( - 1 ) * 15
----
-139

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1609
SELECT CAST( NULL AS SIGNED ) + - 23 + + - 72 + - 70 * 30 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1609
SELECT CAST ( NULL AS INTEGER ) + - 23 + + - 72 + - 70 * 30 col2
----
NULL

query II rowsort
SELECT - 22 AS col1, + 98
----
-22
98

query I rowsort
SELECT - 63 * - 80 + + - 99 + 63
----
5004

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

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

query I rowsort
SELECT ALL + ( 81 ) + - 47 + 97
----
131

query I rowsort
SELECT ALL + 58 * + 42
----
2436

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1615
SELECT + CAST( NULL AS SIGNED ) / 73 * + 28 / + 75 + COUNT( * ) + CASE + 66 WHEN - COALESCE ( - 83, + 98, + + CASE 36 WHEN - + MIN( ALL 16 ) THEN - 62 WHEN - NULLIF ( 53, + + 70 * 91 + COUNT( * ) / - - 40 ) THEN NULL ELSE NULL END ) THEN NULL WHEN - 98 + + - 91 + - 2 + 81 + - COUNT( * ) THEN - 52 * 88 * 44 WHEN 48 + + - 23 + - 17 + - - 9 - + 56 THEN ( 85 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1615
SELECT + CAST ( NULL AS INTEGER ) / 73 * + 28 / + 75 + COUNT ( * ) + CASE + 66 WHEN - COALESCE ( - 83, + 98, + + CASE 36 WHEN - + MIN ( ALL 16 ) THEN - 62 WHEN - NULLIF ( 53, + + 70 * 91 + COUNT ( * ) / - - 40 ) THEN NULL ELSE NULL END ) THEN NULL WHEN - 98 + + - 91 + - 2 + 81 + - COUNT ( * ) THEN - 52 * 88 * 44 WHEN 48 + + - 23 + - 17 + - - 9 - + 56 THEN ( 85 ) END
----
NULL

query I rowsort
SELECT ALL - 47 + 68 * - - ( + 89 ) AS col0
----
6005

query I rowsort
SELECT DISTINCT - 89 + + + 30 AS col1
----
-59

query I rowsort
SELECT ALL 31 * + + 84
----
2604

onlyif mysql # DIV for integer division: 
query I rowsort label-1619
SELECT 16 DIV + 23
----
0

skipif mysql # not compatible
query I rowsort label-1619
SELECT 16 / + 23
----
0

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

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

query I rowsort
SELECT 23 + - 19 + - + 26 col0
----
-22

query I rowsort
SELECT 61 * - 29 * + 8 AS col0
----
-14152

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1623
SELECT ALL CAST( NULL AS SIGNED ) + + 29 / + 60 * + 49 * 20 * - ( - 25 ) + + 40 / - 64 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1623
SELECT ALL CAST ( NULL AS INTEGER ) + + 29 / + 60 * + 49 * 20 * - ( - 25 ) + + 40 / - 64 AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1625
SELECT 77 - + + 31, SUM( ALL + 46 ) AS col1
----
46
46

skipif mysql # not compatible
query II rowsort label-1625
SELECT 77 - + + 31, SUM ( ALL + 46 ) AS col1
----
46
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1626
SELECT CAST( NULLIF ( - COUNT( * ), + + 59 * - ( CASE + 27 WHEN + 82 THEN 80 - - ( 8 ) ELSE NULL END ) ) AS SIGNED ) + - + 69 - - + 98 * CAST( 89 AS SIGNED ) DIV - 32
----
-342

skipif mysql # not compatible
query I rowsort label-1626
SELECT CAST ( NULLIF ( - COUNT ( * ), + + 59 * - ( CASE + 27 WHEN + 82 THEN 80 - - ( 8 ) ELSE NULL END ) ) AS INTEGER ) + - + 69 - - + 98 * CAST ( 89 AS INTEGER ) / - 32
----
-342

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1627
SELECT ALL CAST( + 41 AS SIGNED ) + + COALESCE ( + - 26, + + 39 * - 76 ) + + + 63, 81 AS col2
----
78
81

skipif mysql # not compatible
query II rowsort label-1627
SELECT ALL CAST ( + 41 AS INTEGER ) + + COALESCE ( + - 26, + + 39 * - 76 ) + + + 63, 81 AS col2
----
78
81

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

skipif mysql # not compatible
query I rowsort label-1628
SELECT - MIN ( + 77 )
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-1629
SELECT 61 + + 17 * - + 86 + + COUNT( ALL - 83 )
----
-1400

skipif mysql # not compatible
query I rowsort label-1629
SELECT 61 + + 17 * - + 86 + + COUNT ( ALL - 83 )
----
-1400

query I rowsort
SELECT ALL 59 * - - NULLIF ( + ( + 84 ), 35 / + 42 ) * + - 88 * - 83 AS col2
----
36198624

query I rowsort
SELECT + 19 * + + 49 + + 76
----
1007

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

skipif mysql # not compatible
query I rowsort label-1632
SELECT + MIN ( + 61 )
----
61

query II rowsort
SELECT 67 * 92, - 26 AS col2
----
6164
-26

query I rowsort
SELECT 2 * - 81 * - 47
----
7614

onlyif mysql # aggregate syntax: 
query I rowsort label-1635
SELECT 5 + + COUNT( ALL 11 ) - 6 * 75 + + - 52
----
-496

skipif mysql # not compatible
query I rowsort label-1635
SELECT 5 + + COUNT ( ALL 11 ) - 6 * 75 + + - 52
----
-496

query I rowsort
SELECT DISTINCT 12 * 51 * - 18 * - 78 * - 49 - - 69
----
-42103083

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1637
SELECT ALL - NULLIF ( - MAX( DISTINCT 87 ), 55 * CAST( + 60 AS SIGNED ) ) AS col0
----
87

skipif mysql # not compatible
query I rowsort label-1637
SELECT ALL - NULLIF ( - MAX ( DISTINCT 87 ), 55 * CAST ( + 60 AS INTEGER ) ) AS col0
----
87

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

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1641
SELECT - 51 DIV - SUM( 63 ) - 9, + 41 * + + 24 AS col1
----
-9
984

skipif mysql # not compatible
query II rowsort label-1641
SELECT - 51 / - SUM ( 63 ) - 9, + 41 * + + 24 AS col1
----
-9
984

query I rowsort
SELECT - 21 * + 83 AS col0
----
-1743

query I rowsort
SELECT + + 17 * + 63
----
1071

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1645
SELECT ALL - 54 * 45 DIV + 63 AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-1645
SELECT ALL - 54 * 45 / + 63 AS col2
----
-38

query I rowsort
SELECT DISTINCT + 95 * + ( - 73 ) + 20
----
-6915

onlyif mysql # DIV for integer division: 
query I rowsort label-1647
SELECT CASE 54 WHEN + + 61 THEN NULL ELSE - 46 + - 80 DIV - 43 END AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-1647
SELECT CASE 54 WHEN + + 61 THEN NULL ELSE - 46 + - 80 / - 43 END AS col1
----
-45

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

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

query I rowsort
SELECT ALL 53 + - + 88
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-1650
SELECT ALL - COUNT( * ) * COUNT( * ) * - 74 * - 83 AS col1
----
-6142

skipif mysql # not compatible
query I rowsort label-1650
SELECT ALL - COUNT ( * ) * COUNT ( * ) * - 74 * - 83 AS col1
----
-6142

query I rowsort
SELECT - 31 * 14
----
-434

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1652
SELECT DISTINCT 43 / - CASE - 97 WHEN - COUNT( * ) THEN NULL WHEN + 40 * 29 * - 78 THEN - + CAST( + - 78 AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1652
SELECT DISTINCT 43 / - CASE - 97 WHEN - COUNT ( * ) THEN NULL WHEN + 40 * 29 * - 78 THEN - + CAST ( + - 78 AS INTEGER ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1653
SELECT + ( + - MIN( ALL + 42 ) ) + 31
----
-11

skipif mysql # not compatible
query I rowsort label-1653
SELECT + ( + - MIN ( ALL + 42 ) ) + 31
----
-11

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1654
SELECT + 72 * + CAST( - + CAST( NULL AS SIGNED ) AS DECIMAL ) / 95 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1654
SELECT + 72 * + CAST ( - + CAST ( NULL AS INTEGER ) AS REAL ) / 95 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1655
SELECT ALL - CAST( + ( - 9 ) AS SIGNED ) + + - 97 + - + 62 col1, - 32 * + - 73 AS col2
----
-150
2336

skipif mysql # not compatible
query II rowsort label-1655
SELECT ALL - CAST ( + ( - 9 ) AS INTEGER ) + + - 97 + - + 62 col1, - 32 * + - 73 AS col2
----
-150
2336

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

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

query I rowsort
SELECT ALL 42 * - + 51 AS col1
----
-2142

query I rowsort
SELECT ALL 18 * - + 36
----
-648

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1659
SELECT - MIN( - NULLIF ( - 91, + CAST( - 43 AS SIGNED ) ) ) AS col2
----
-91

skipif mysql # not compatible
query I rowsort label-1659
SELECT - MIN ( - NULLIF ( - 91, + CAST ( - 43 AS INTEGER ) ) ) AS col2
----
-91

query I rowsort
SELECT + 41 * 66 AS col1
----
2706

onlyif mysql # aggregate syntax: 
query III rowsort label-1661
SELECT + COUNT( * ) - - 30 * + 57 AS col0, + 55 + + COALESCE ( + COUNT( + 33 ), 44 ) AS col2, - 82 - COUNT( * ) AS col0
----
1711
56
-83

skipif mysql # not compatible
query III rowsort label-1661
SELECT + COUNT ( * ) - - 30 * + 57 AS col0, + 55 + + COALESCE ( + COUNT ( + 33 ), 44 ) AS col2, - 82 - COUNT ( * ) AS col0
----
1711
56
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-1662
SELECT DISTINCT 29 DIV 2 * - ( - 22 )
----
308

skipif mysql # not compatible
query I rowsort label-1662
SELECT DISTINCT 29 / 2 * - ( - 22 )
----
308

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1663
SELECT + 93 - - CASE + + 76 WHEN CASE COALESCE ( - ( 29 ), + 12 + COUNT( * ) ) WHEN + 48 THEN + 31 ELSE + 53 END * ( + COALESCE ( + 25, 18 ) ) THEN + + 89 + 14 WHEN + COALESCE ( + 69, - + 88 / - - NULLIF ( + CAST( + - 31 AS SIGNED ), - 15 ) ) THEN NULL END + + 3
----
NULL

skipif mysql # not compatible
query I rowsort label-1663
SELECT + 93 - - CASE + + 76 WHEN CASE COALESCE ( - ( 29 ), + 12 + COUNT ( * ) ) WHEN + 48 THEN + 31 ELSE + 53 END * ( + COALESCE ( + 25, 18 ) ) THEN + + 89 + 14 WHEN + COALESCE ( + 69, - + 88 / - - NULLIF ( + CAST ( + - 31 AS INTEGER ), - 15 ) ) THEN NULL END + + 3
----
NULL

query I rowsort
SELECT - 99 * + + 57 AS col2
----
-5643

onlyif mysql # aggregate syntax: 
query I rowsort label-1665
SELECT ALL + SUM( DISTINCT + 24 ) AS col0
----
24

skipif mysql # not compatible
query I rowsort label-1665
SELECT ALL + SUM ( DISTINCT + 24 ) AS col0
----
24

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1666
SELECT ( - ( CASE 61 WHEN + + ( ( 9 ) ) THEN - 13 + - COALESCE ( + CAST( + 6 AS DECIMAL ), + 68 * 65 ) END ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1666
SELECT ( - ( CASE 61 WHEN + + ( ( 9 ) ) THEN - 13 + - COALESCE ( + CAST ( + 6 AS REAL ), + 68 * 65 ) END ) )
----
NULL

query I rowsort
SELECT + ( - + NULLIF ( + - 60, - 70 - + + 2 + - 94 ) ) AS col2
----
60

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1669
SELECT - 39 DIV - MAX( 31 * + 59 ) - 0
----
0

skipif mysql # not compatible
query I rowsort label-1669
SELECT - 39 / - MAX ( 31 * + 59 ) - 0
----
0

query I rowsort
SELECT DISTINCT 4 * 75 AS col1
----
300

query I rowsort
SELECT 94 * 40 + + 62
----
3822

query I rowsort
SELECT ALL - 22 * - 58 AS col1
----
1276

onlyif mysql # aggregate syntax: 
query I rowsort label-1673
SELECT COALESCE ( 83, - COUNT( * ) ) AS col2
----
83

skipif mysql # not compatible
query I rowsort label-1673
SELECT COALESCE ( 83, - COUNT ( * ) ) AS col2
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1674
SELECT ALL + ( - CASE WHEN NOT - NULLIF ( + 4, + COUNT( * ) ) NOT BETWEEN + 5 / + 9 AND + ( 81 ) - 45 THEN NULL WHEN + 90 < + CAST( NULL AS SIGNED ) THEN ( + 30 ) WHEN ( - NULLIF ( COUNT( * ), SUM( ALL + 6 ) + COALESCE ( + 56 + + 65, 8 / + 46 ) * - 78 ) / 40 ) IS NULL THEN COUNT( ALL + 34 ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-1674
SELECT ALL + ( - CASE WHEN NOT - NULLIF ( + 4, + COUNT ( * ) ) NOT BETWEEN + 5 / + 9 AND + ( 81 ) - 45 THEN NULL WHEN + 90 < + CAST ( NULL AS INTEGER ) THEN ( + 30 ) WHEN ( - NULLIF ( COUNT ( * ), SUM ( ALL + 6 ) + COALESCE ( + 56 + + 65, 8 / + 46 ) * - 78 ) / 40 ) IS NULL THEN COUNT ( ALL + 34 ) END )
----
NULL

query I rowsort
SELECT - 80 + - 20 * ( COALESCE ( 92, 23, + 47 ) * + 60 ) AS col2
----
-110480

onlyif mysql # aggregate syntax: 
query I rowsort label-1676
SELECT NULLIF ( 91, + 12 + + COUNT( * ) ) AS col2
----
91

skipif mysql # not compatible
query I rowsort label-1676
SELECT NULLIF ( 91, + 12 + + COUNT ( * ) ) AS col2
----
91

query I rowsort
SELECT ALL + 30 * 75 + - 53
----
2197

query I rowsort
SELECT ALL 19 * 42 + 75
----
873

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1680
SELECT 59 * 25 + NULLIF ( ( 45 ), CAST( - COUNT( * ) AS SIGNED ) + CASE - 5 WHEN ( - 18 ) THEN - 6 / 61 END / COUNT( * ) )
----
1520

skipif mysql # not compatible
query I rowsort label-1680
SELECT 59 * 25 + NULLIF ( ( 45 ), CAST ( - COUNT ( * ) AS INTEGER ) + CASE - 5 WHEN ( - 18 ) THEN - 6 / 61 END / COUNT ( * ) )
----
1520

query I rowsort
SELECT NULLIF ( + CASE WHEN NOT NULL IS NOT NULL THEN 55 END, 78 ) AS col1
----
55

query I rowsort
SELECT - 43 * + 34
----
-1462

onlyif mysql # aggregate syntax: 
query I rowsort label-1683
SELECT ALL - 53 * - MIN( NULLIF ( - 33, + 39 + 10 ) ) + 43 col0
----
-1706

skipif mysql # not compatible
query I rowsort label-1683
SELECT ALL - 53 * - MIN ( NULLIF ( - 33, + 39 + 10 ) ) + 43 col0
----
-1706

onlyif mysql # aggregate syntax: 
query I rowsort label-1684
SELECT ALL - AVG ( + 46 ) * 82 + CASE 39 - + 39 WHEN COALESCE ( 47, + 30 * MIN( + 90 * 55 ) - + COUNT( ALL - 70 + 89 ) * NULLIF ( - 56 + 8 * - 15, + 87 / + 69 ), - ( COUNT( * ) ) ) * - COUNT( * ) THEN 86 / 17 WHEN + 31 THEN NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1684
SELECT ALL - AVG ( + 46 ) * 82 + CASE 39 - + 39 WHEN COALESCE ( 47, + 30 * MIN ( + 90 * 55 ) - + COUNT ( ALL - 70 + 89 ) * NULLIF ( - 56 + 8 * - 15, + 87 / + 69 ), - ( COUNT ( * ) ) ) * - COUNT ( * ) THEN 86 / 17 WHEN + 31 THEN NULL END col0
----
NULL

query I rowsort
SELECT - 31 + ( + 19 )
----
-12

query I rowsort
SELECT DISTINCT + 42 * 27
----
1134

query I rowsort
SELECT ALL - 87 * + 90
----
-7830

query I rowsort
SELECT - 7 + - 99
----
-106

query I rowsort
SELECT + 13 * 65 col1
----
845

query I rowsort
SELECT DISTINCT - 69 * - 57 AS col1
----
3933

onlyif mysql # aggregate syntax: 
query I rowsort label-1691
SELECT ALL 95 - COUNT( ALL NULLIF ( + NULLIF ( + 38, + 22 + 2 ), 42 ) )
----
94

skipif mysql # not compatible
query I rowsort label-1691
SELECT ALL 95 - COUNT ( ALL NULLIF ( + NULLIF ( + 38, + 22 + 2 ), 42 ) )
----
94

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

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

query I rowsort
SELECT - 77 - - 99
----
22

query I rowsort
SELECT DISTINCT - 79 * - 13 col2
----
1027

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1695
SELECT ALL CAST( 28 AS SIGNED ) AS col2
----
28

skipif mysql # not compatible
query I rowsort label-1695
SELECT ALL CAST ( 28 AS INTEGER ) AS col2
----
28

query I rowsort
SELECT DISTINCT - 70 * 16 col1
----
-1120

onlyif mysql # aggregate syntax: 
query I rowsort label-1697
SELECT + COUNT( * ) + + 10 * SUM( ALL + 60 )
----
601

skipif mysql # not compatible
query I rowsort label-1697
SELECT + COUNT ( * ) + + 10 * SUM ( ALL + 60 )
----
601

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

query I rowsort
SELECT - 18 + + 19 AS col0
----
1

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

skipif mysql # not compatible
query I rowsort label-1700
SELECT - COUNT ( DISTINCT 52 ) * + 7 AS col0
----
-7

query I rowsort
SELECT + 82 * + 91
----
7462

onlyif mysql # DIV for integer division: 
query I rowsort label-1702
SELECT ALL 88 DIV 72 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1702
SELECT ALL 88 / 72 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1703
SELECT - COUNT( + 54 ) + - 64
----
-65

skipif mysql # not compatible
query I rowsort label-1703
SELECT - COUNT ( + 54 ) + - 64
----
-65

query I rowsort
SELECT + 0 - 2
----
-2

query I rowsort
SELECT + 70 + + 44 col0
----
114

onlyif mysql # DIV for integer division: 
query I rowsort label-1706
SELECT DISTINCT + 35 DIV - 69 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1706
SELECT DISTINCT + 35 / - 69 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1707
SELECT MIN( ALL + ( 28 ) ) * - 18
----
-504

skipif mysql # not compatible
query I rowsort label-1707
SELECT MIN ( ALL + ( 28 ) ) * - 18
----
-504

onlyif mysql # aggregate syntax: 
query I rowsort label-1708
SELECT ALL CASE 48 WHEN 18 + 83 THEN + 24 WHEN - 9 + + MIN( DISTINCT 2 ) THEN + AVG ( DISTINCT + 64 ) END * 54
----
NULL

skipif mysql # not compatible
query I rowsort label-1708
SELECT ALL CASE 48 WHEN 18 + 83 THEN + 24 WHEN - 9 + + MIN ( DISTINCT 2 ) THEN + AVG ( DISTINCT + 64 ) END * 54
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1709
SELECT COALESCE ( SUM( DISTINCT 13 ), 65, 27 ) + + CAST( - 99 + - 94 * 53 AS SIGNED )
----
-5068

skipif mysql # not compatible
query I rowsort label-1709
SELECT COALESCE ( SUM ( DISTINCT 13 ), 65, 27 ) + + CAST ( - 99 + - 94 * 53 AS INTEGER )
----
-5068

query I rowsort
SELECT ALL 69 * CASE - 26 WHEN 31 * - 88 THEN - 39 ELSE NULL END
----
NULL

query I rowsort
SELECT 72 * 69
----
4968

onlyif mysql # aggregate syntax: 
query I rowsort label-1712
SELECT DISTINCT MIN( + ( + 15 ) ) + + MAX( DISTINCT 90 ) AS col2
----
105

skipif mysql # not compatible
query I rowsort label-1712
SELECT DISTINCT MIN ( + ( + 15 ) ) + + MAX ( DISTINCT 90 ) AS col2
----
105

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1713
SELECT + CASE COUNT( * ) WHEN COUNT( * ) THEN 48 DIV + 76 - COUNT( * ) * 75 END
----
-75

skipif mysql # not compatible
query I rowsort label-1713
SELECT + CASE COUNT ( * ) WHEN COUNT ( * ) THEN 48 / + 76 - COUNT ( * ) * 75 END
----
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-1714
SELECT 62 DIV 4
----
15

skipif mysql # not compatible
query I rowsort label-1714
SELECT 62 / 4
----
15

query I rowsort
SELECT + 7 + + 18
----
25

query I rowsort
SELECT DISTINCT - + 81 col2
----
-81

query I rowsort
SELECT ALL + ( 4 ) + - 51 AS col0
----
-47

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

skipif mysql # not compatible
query I rowsort label-1718
SELECT 10 * - COUNT ( * )
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-1719
SELECT ALL NULLIF ( + COALESCE ( COUNT( * ), 83 + 43 ), + 5 ) + + 82 * COUNT( * )
----
83

skipif mysql # not compatible
query I rowsort label-1719
SELECT ALL NULLIF ( + COALESCE ( COUNT ( * ), 83 + 43 ), + 5 ) + + 82 * COUNT ( * )
----
83

query I rowsort
SELECT DISTINCT 4 + - 64 * 15
----
-956

query I rowsort
SELECT - 74 * + 21 AS col2
----
-1554

query I rowsort
SELECT ALL 43 + + 13 * + 22 AS col1
----
329

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

query I rowsort
SELECT ALL + 71 + 78 col2
----
149

onlyif mysql # aggregate syntax: 
query I rowsort label-1725
SELECT CASE COUNT( * ) WHEN 36 THEN NULL WHEN 68 - 62 * 34 THEN + ( 13 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1725
SELECT CASE COUNT ( * ) WHEN 36 THEN NULL WHEN 68 - 62 * 34 THEN + ( 13 ) ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT 75 + ( + 92 + 81 ) AS col0
----
248

query I rowsort
SELECT 10 + + 15
----
25

query I rowsort
SELECT DISTINCT 88 + 45
----
133

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1729
SELECT ALL - ( SUM( - CAST( + 6 AS SIGNED ) ) ) + - ( + 98 )
----
-92

skipif mysql # not compatible
query I rowsort label-1729
SELECT ALL - ( SUM ( - CAST ( + 6 AS INTEGER ) ) ) + - ( + 98 )
----
-92

query I rowsort
SELECT 59 - - ( 3 )
----
62

query I rowsort
SELECT ALL + 19 * - 16
----
-304

onlyif mysql # aggregate syntax: 
query I rowsort label-1732
SELECT DISTINCT - NULLIF ( - COUNT( * ), - 14 * - 38 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1732
SELECT DISTINCT - NULLIF ( - COUNT ( * ), - 14 * - 38 ) AS col1
----
1

query I rowsort
SELECT DISTINCT - 83 - + 52 * - 43
----
2153

query I rowsort
SELECT 61 * + + 83
----
5063

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

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

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

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

query I rowsort
SELECT DISTINCT - 84 - 98
----
-182

onlyif mysql # aggregate syntax: 
query I rowsort label-1738
SELECT 86 + + MIN( 57 )
----
143

skipif mysql # not compatible
query I rowsort label-1738
SELECT 86 + + MIN ( 57 )
----
143

onlyif mysql # DIV for integer division: 
query I rowsort label-1739
SELECT ALL + 20 DIV + 7 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-1739
SELECT ALL + 20 / + 7 AS col1
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1740
SELECT DISTINCT + 11 DIV - + COALESCE ( + 21, 80 * MAX( DISTINCT 64 ) ) * 8 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1740
SELECT DISTINCT + 11 / - + COALESCE ( + 21, 80 * MAX ( DISTINCT 64 ) ) * 8 AS col1
----
0

query I rowsort
SELECT 2 + + 53
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-1742
SELECT ALL + MAX( ALL + 82 ) * COUNT( * ) col0
----
82

skipif mysql # not compatible
query I rowsort label-1742
SELECT ALL + MAX ( ALL + 82 ) * COUNT ( * ) col0
----
82

query I rowsort
SELECT 76 * + 13
----
988

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

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

query I rowsort
SELECT ALL + COALESCE ( 79, + 7 ) * 11 AS col1
----
869

query I rowsort
SELECT DISTINCT + 48 * + + 11
----
528

query I rowsort
SELECT 5 * - 16
----
-80

query I rowsort
SELECT ALL + 30 * - 94
----
-2820

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1750
SELECT ALL - 16 + - - COUNT( * ) + 41 AS col2
----
26

skipif mysql # not compatible
query I rowsort label-1750
SELECT ALL - 16 + - - COUNT ( * ) + 41 AS col2
----
26

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

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

query I rowsort
SELECT - + NULLIF ( - - 55, 83 * + 34 ) AS col1
----
-55

query I rowsort
SELECT 46 * - + 65 * + 4
----
-11960

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1754
SELECT - 31 - SUM( 68 ) + NULLIF ( 70, - MAX( - 29 ) ) DIV + 23
----
-96

skipif mysql # not compatible
query I rowsort label-1754
SELECT - 31 - SUM ( 68 ) + NULLIF ( 70, - MAX ( - 29 ) ) / + 23
----
-96

query I rowsort
SELECT ALL 75 + + + 43
----
118

query I rowsort
SELECT - 44 - + - 78 - 70
----
-36

query I rowsort
SELECT ALL - 55 + + 57 AS col0
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1758
SELECT + + COALESCE ( + + COUNT( 83 ), ( - 20 ) + + 13 * ( + 47 + + ( 36 ) ), 15 * ( 73 ) + + COUNT( * ) * MIN( CAST( 11 AS SIGNED ) ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1758
SELECT + + COALESCE ( + + COUNT ( 83 ), ( - 20 ) + + 13 * ( + 47 + + ( 36 ) ), 15 * ( 73 ) + + COUNT ( * ) * MIN ( CAST ( 11 AS INTEGER ) ) ) AS col1
----
1

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

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

query I rowsort
SELECT ALL - 75 + - 20 AS col2
----
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1761
SELECT - CAST( NULL AS SIGNED ) * CASE + ( + COUNT( * ) ) WHEN + ( 75 ) THEN + 26 ELSE NULL END / - 19 - - ( - 10 + NULLIF ( 87, + 68 + 67 ) / - 45 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1761
SELECT - CAST ( NULL AS INTEGER ) * CASE + ( + COUNT ( * ) ) WHEN + ( 75 ) THEN + 26 ELSE NULL END / - 19 - - ( - 10 + NULLIF ( 87, + 68 + 67 ) / - 45 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1762
SELECT DISTINCT 59 + + 85 * SUM( 28 )
----
2439

skipif mysql # not compatible
query I rowsort label-1762
SELECT DISTINCT 59 + + 85 * SUM ( 28 )
----
2439

query I rowsort
SELECT + 57 * - 18 * 87 + 86
----
-89176

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1765
SELECT ALL MAX( - 84 ) - 22 * + 71 AS col0
----
-1646

skipif mysql # not compatible
query I rowsort label-1765
SELECT ALL MAX ( - 84 ) - 22 * + 71 AS col0
----
-1646

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

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

query I rowsort
SELECT 59 * 8 + 95
----
567

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1770
SELECT SUM( DISTINCT 51 ) + COALESCE ( NULLIF ( - 15, 89 ), 93 + COUNT( * ) * + 66 ) AS col1
----
36

skipif mysql # not compatible
query I rowsort label-1770
SELECT SUM ( DISTINCT 51 ) + COALESCE ( NULLIF ( - 15, 89 ), 93 + COUNT ( * ) * + 66 ) AS col1
----
36

query I rowsort
SELECT ALL + 79 - - 80
----
159

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

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

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

query II rowsort
SELECT ALL - 96 AS col2, 47 AS col1
----
-96
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1775
SELECT ( - + CASE + COUNT( * ) WHEN 33 + + 88 THEN - 24 END ) * 10 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1775
SELECT ( - + CASE + COUNT ( * ) WHEN 33 + + 88 THEN - 24 END ) * 10 AS col1
----
NULL

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

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

query I rowsort
SELECT ALL 95 * + 41 AS col0
----
3895

query I rowsort
SELECT ( + 18 ) * 40 AS col1
----
720

onlyif mysql # aggregate syntax: 
query I rowsort label-1779
SELECT 96 * MIN( DISTINCT + + 90 ) AS col1
----
8640

skipif mysql # not compatible
query I rowsort label-1779
SELECT 96 * MIN ( DISTINCT + + 90 ) AS col1
----
8640

query I rowsort
SELECT ALL 12 * 46
----
552

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1782
SELECT COUNT( + + 32 ) + - + ( 22 ) + 37
----
16

skipif mysql # not compatible
query I rowsort label-1782
SELECT COUNT ( + + 32 ) + - + ( 22 ) + 37
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-1783
SELECT ALL 59 * ( + + COUNT( DISTINCT ( + 63 ) ) ) AS col2
----
59

skipif mysql # not compatible
query I rowsort label-1783
SELECT ALL 59 * ( + + COUNT ( DISTINCT ( + 63 ) ) ) AS col2
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1784
SELECT DISTINCT 94 * CAST( NULL AS SIGNED ) / 76
----
NULL

skipif mysql # not compatible
query I rowsort label-1784
SELECT DISTINCT 94 * CAST ( NULL AS INTEGER ) / 76
----
NULL

query I rowsort
SELECT DISTINCT 11 + - + 77 AS col0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-1786
SELECT DISTINCT SUM( ALL - 38 )
----
-38

skipif mysql # not compatible
query I rowsort label-1786
SELECT DISTINCT SUM ( ALL - 38 )
----
-38

query I rowsort
SELECT ALL - 62 + + - 91
----
-153

query I rowsort
SELECT - 40 + - 19 AS col1
----
-59

query I rowsort
SELECT ALL - 90 + - + 40 AS col1
----
-130

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1790
SELECT + COALESCE ( - + 33, 51, + 17 ) * CAST( + NULLIF ( - 5, COUNT( * ) ) + - 51 DIV - 33 AS SIGNED )
----
132

skipif mysql # not compatible
query I rowsort label-1790
SELECT + COALESCE ( - + 33, 51, + 17 ) * CAST ( + NULLIF ( - 5, COUNT ( * ) ) + - 51 / - 33 AS INTEGER )
----
132

query I rowsort
SELECT - 17 + + 71 AS col1
----
54

query I rowsort
SELECT + ( + ( + 40 ) ) + - 16
----
24

query I rowsort
SELECT ALL - ( + COALESCE ( - 48, 56 - + 86 ) ) + 35
----
83

query I rowsort
SELECT - 4 + ( + - 71 )
----
-75

query I rowsort
SELECT - + 90 + + - 35 * + 65 + 90 AS col2
----
-2275

query I rowsort
SELECT ALL + 79 * - ( - + ( + 73 ) ) col0
----
5767

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

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

query I rowsort
SELECT ALL - + 80 + + 83 AS col1
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-1799
SELECT - + 24 col1, + 79 + 31 + - COUNT( * ) AS col2
----
-24
109

skipif mysql # not compatible
query II rowsort label-1799
SELECT - + 24 col1, + 79 + 31 + - COUNT ( * ) AS col2
----
-24
109

query I rowsort
SELECT ALL + 35 * - 4 + + 6
----
-134

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1801
SELECT DISTINCT - MAX( - CAST( + + 85 AS SIGNED ) ) + 74
----
159

skipif mysql # not compatible
query I rowsort label-1801
SELECT DISTINCT - MAX ( - CAST ( + + 85 AS INTEGER ) ) + 74
----
159

onlyif mysql # aggregate syntax: 
query I rowsort label-1802
SELECT DISTINCT + 24 * 14 + - - COUNT( * )
----
337

skipif mysql # not compatible
query I rowsort label-1802
SELECT DISTINCT + 24 * 14 + - - COUNT ( * )
----
337

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1803
SELECT + + 38 / + 44 - 15 / CAST( NULL AS SIGNED ) + - COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1803
SELECT + + 38 / + 44 - 15 / CAST ( NULL AS INTEGER ) + - COUNT ( * ) col1
----
NULL

query I rowsort
SELECT - - 63 * - - 69 * 71
----
308637

onlyif mysql # aggregate syntax: 
query I rowsort label-1805
SELECT + ( - CASE ( + 33 ) WHEN - COALESCE ( 41, 35 ) THEN + 14 * 53 - COALESCE ( 84 + + 31, 84, COUNT( * ) ) ELSE 16 - + 57 END )
----
41

skipif mysql # not compatible
query I rowsort label-1805
SELECT + ( - CASE ( + 33 ) WHEN - COALESCE ( 41, 35 ) THEN + 14 * 53 - COALESCE ( 84 + + 31, 84, COUNT ( * ) ) ELSE 16 - + 57 END )
----
41

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

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

query I rowsort
SELECT - - 72 + COALESCE ( 84, + 35 ) + - 51 * 30 col2
----
-1374

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

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

query I rowsort
SELECT ALL + - 37 col2
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-1810
SELECT ALL - 87 * 46 + - COUNT( * ) - 14 AS col1
----
-4017

skipif mysql # not compatible
query I rowsort label-1810
SELECT ALL - 87 * 46 + - COUNT ( * ) - 14 AS col1
----
-4017

query I rowsort
SELECT DISTINCT - 69 * + - 9 + - 75 + - 83 * 59 AS col2
----
-4351

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

skipif mysql # not compatible
query I rowsort label-1812
SELECT ALL - + COUNT ( * ) / + 24
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1813
SELECT + 54 + + COUNT( * ) col0
----
55

skipif mysql # not compatible
query I rowsort label-1813
SELECT + 54 + + COUNT ( * ) col0
----
55

query I rowsort
SELECT DISTINCT - 20 * - + 4 AS col1
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-1815
SELECT ALL + ( + NULLIF ( + COALESCE ( + COUNT( * ), + COUNT( ALL 11 ) ), 55 ) )
----
1

skipif mysql # not compatible
query I rowsort label-1815
SELECT ALL + ( + NULLIF ( + COALESCE ( + COUNT ( * ), + COUNT ( ALL 11 ) ), 55 ) )
----
1

query I rowsort
SELECT DISTINCT 78 * 93 * - 75 col2
----
-544050

query I rowsort
SELECT + COALESCE ( + 38, + + 46 ) AS col2
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-1818
SELECT - 1 DIV - + 81 * - - 18 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1818
SELECT - 1 / - + 81 * - - 18 AS col0
----
0

query I rowsort
SELECT 57 * - NULLIF ( + 16, - + 90 ) + 61 AS col2
----
-851

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

skipif mysql # not compatible
query I rowsort label-1820
SELECT - ( - + 25 ) - - - COUNT ( * ) AS col0
----
24

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1822
SELECT COUNT( DISTINCT - - 23 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1822
SELECT COUNT ( DISTINCT - - 23 ) AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1823
SELECT ALL 65 DIV + NULLIF ( + 57, + 51 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1823
SELECT ALL 65 / + NULLIF ( + 57, + 51 ) AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1824
SELECT + MAX( ALL + - 30 ) DIV + + 67
----
0

skipif mysql # not compatible
query I rowsort label-1824
SELECT + MAX ( ALL + - 30 ) / + + 67
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1826
SELECT - CASE + COUNT( * ) WHEN - - 88 THEN + 97 * 44 WHEN COUNT( * ) / + 69 THEN NULL ELSE 49 + 1 END AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-1826
SELECT - CASE + COUNT ( * ) WHEN - - 88 THEN + 97 * 44 WHEN COUNT ( * ) / + 69 THEN NULL ELSE 49 + 1 END AS col2
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-1827
SELECT ALL 17 * SUM( + 31 ) + COUNT( 82 )
----
528

skipif mysql # not compatible
query I rowsort label-1827
SELECT ALL 17 * SUM ( + 31 ) + COUNT ( 82 )
----
528

query I rowsort
SELECT ALL + 13 * 69 + - + 73
----
824

query II rowsort
SELECT + 64 + 49 AS col0, + 83
----
113
83

onlyif mysql # aggregate syntax: 
query I rowsort label-1830
SELECT MIN( 62 )
----
62

skipif mysql # not compatible
query I rowsort label-1830
SELECT MIN ( 62 )
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-1831
SELECT ALL COUNT( * ) + - 49 + + CASE - ( 91 ) WHEN - SUM( DISTINCT 52 ) THEN ( + 52 ) / - 95 ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1831
SELECT ALL COUNT ( * ) + - 49 + + CASE - ( 91 ) WHEN - SUM ( DISTINCT 52 ) THEN ( + 52 ) / - 95 ELSE NULL END col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1832
SELECT - COUNT ( * ) * + 22 + - - 13 * 63 AS col1
----
797

query I rowsort
SELECT ALL 47 + + 98 * 40 + + 77 AS col1
----
4044

query I rowsort
SELECT - COALESCE ( + + 47, - 32 )
----
-47

query I rowsort
SELECT + 17 * - 10
----
-170

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

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

query I rowsort
SELECT - 11 + + - NULLIF ( 35, + + 8 * - COALESCE ( 7 * 92 + 98 * - 14, + 22 + + ( + 34 ) ) ) * 62 AS col1
----
-2181

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

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

query I rowsort
SELECT ALL 52 + + - 83
----
-31

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

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

query I rowsort
SELECT ALL 96 + ( + 60 )
----
156

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

skipif mysql # not compatible
query I rowsort label-1842
SELECT NULLIF ( + 46, + COUNT ( * ) ) AS col0
----
46

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1844
SELECT - COUNT( * ) * - + 52 - - 29 AS col0
----
81

skipif mysql # not compatible
query I rowsort label-1844
SELECT - COUNT ( * ) * - + 52 - - 29 AS col0
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1845
SELECT + 93 + + - 25 * - 5 * + ( CAST( + ( 97 ) AS SIGNED ) )
----
12218

skipif mysql # not compatible
query I rowsort label-1845
SELECT + 93 + + - 25 * - 5 * + ( CAST ( + ( 97 ) AS INTEGER ) )
----
12218

query II rowsort
SELECT ALL - 72 - - - 0, COALESCE ( - NULLIF ( 77, + 54 ), 77 ) AS col1
----
-72
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-1847
SELECT - MAX( ALL + + ( 32 ) ) AS col0
----
-32

skipif mysql # not compatible
query I rowsort label-1847
SELECT - MAX ( ALL + + ( 32 ) ) AS col0
----
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-1848
SELECT DISTINCT - 81 DIV - 77
----
1

skipif mysql # not compatible
query I rowsort label-1848
SELECT DISTINCT - 81 / - 77
----
1

query I rowsort
SELECT + + 17 - - ( 60 ) * + 33 AS col2
----
1997

query I rowsort
SELECT - + 12 * - - 91 + 26
----
-1066

query I rowsort
SELECT - - 43 + + 1 + - 68 * - 62
----
4260

query I rowsort
SELECT DISTINCT NULLIF ( 59, 10 / - 27 ) * 65 AS col1
----
3835

query I rowsort
SELECT ALL + - 26 col1
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-1854
SELECT DISTINCT - 29 * COUNT( - 52 ) + + + 16
----
-13

skipif mysql # not compatible
query I rowsort label-1854
SELECT DISTINCT - 29 * COUNT ( - 52 ) + + + 16
----
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-1855
SELECT + 90 DIV - 12 - + - 91 * + 96 AS col2
----
8729

skipif mysql # not compatible
query I rowsort label-1855
SELECT + 90 / - 12 - + - 91 * + 96 AS col2
----
8729

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

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

query I rowsort
SELECT - - 85 * + 95 AS col1
----
8075

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1858
SELECT - ( 23 ) + - CAST( NULL AS SIGNED ) * + SUM( DISTINCT 16 ) + - 36 * + 60
----
NULL

skipif mysql # not compatible
query I rowsort label-1858
SELECT - ( 23 ) + - CAST ( NULL AS INTEGER ) * + SUM ( DISTINCT 16 ) + - 36 * + 60
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1860
SELECT ALL 70 DIV - 63 + + 49 * + 68 AS col2
----
3331

skipif mysql # not compatible
query I rowsort label-1860
SELECT ALL 70 / - 63 + + 49 * + 68 AS col2
----
3331

query I rowsort
SELECT ( - - 64 ) AS col1
----
64

query I rowsort
SELECT - 95 * - + ( 38 ) col1
----
3610

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1863
SELECT - ( + - ( 65 ) ) + + - 47 * - + CASE + 13 WHEN CAST( MAX( + 1 ) AS DECIMAL ) THEN - 85 * CAST( 12 AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1863
SELECT - ( + - ( 65 ) ) + + - 47 * - + CASE + 13 WHEN CAST ( MAX ( + 1 ) AS REAL ) THEN - 85 * CAST ( 12 AS INTEGER ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1864
SELECT ALL - CAST( 16 AS SIGNED ) AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-1864
SELECT ALL - CAST ( 16 AS INTEGER ) AS col1
----
-16

query I rowsort
SELECT DISTINCT 24 + 8 * 66 AS col2
----
552

query II rowsort
SELECT ALL - 7 + + ( - 21 ) AS col2, + 31 AS col1
----
-28
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1867
SELECT ALL 59 + + 33 + + + CAST( - 79 AS SIGNED ) * + 35 col0
----
-2673

skipif mysql # not compatible
query I rowsort label-1867
SELECT ALL 59 + + 33 + + + CAST ( - 79 AS INTEGER ) * + 35 col0
----
-2673

query I rowsort
SELECT ALL ( 65 ) + + 87 AS col1
----
152

query I rowsort
SELECT 8 * 86 + 31 AS col1
----
719

query I rowsort
SELECT ALL - 72 * + + 76 AS col1
----
-5472

query I rowsort
SELECT 1 + - 56
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-1872
SELECT ALL CASE - 94 WHEN + - SUM( ALL + - 57 ) THEN + 36 END + 84 / + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1872
SELECT ALL CASE - 94 WHEN + - SUM ( ALL + - 57 ) THEN + 36 END + 84 / + COUNT ( * )
----
NULL

query I rowsort
SELECT 20 + 35
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-1874
SELECT DISTINCT + 45 - + CASE - 32 WHEN + ( + 13 ) THEN NULL WHEN + 6 * - 45 + 56 * 41 THEN + MAX( + 42 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1874
SELECT DISTINCT + 45 - + CASE - 32 WHEN + ( + 13 ) THEN NULL WHEN + 6 * - 45 + 56 * 41 THEN + MAX ( + 42 ) ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT 98 - + 1
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-1876
SELECT ( 27 ) + - - COUNT( * ), + ( + 85 ) AS col1
----
28
85

skipif mysql # not compatible
query II rowsort label-1876
SELECT ( 27 ) + - - COUNT ( * ), + ( + 85 ) AS col1
----
28
85

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1877
SELECT 41 * + + 97 * - CAST( NULL AS SIGNED ), - 6 DIV - 58 - - NULLIF ( 84, + 23 + 82 ) * 70 AS col0
----
NULL
5880

skipif mysql # not compatible
query II rowsort label-1877
SELECT 41 * + + 97 * - CAST ( NULL AS INTEGER ), - 6 / - 58 - - NULLIF ( 84, + 23 + 82 ) * 70 AS col0
----
NULL
5880

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

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

query I rowsort
SELECT ( 7 ) * - 11 - + 5
----
-82

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

query I rowsort
SELECT 33 + 1 AS col0
----
34

query I rowsort
SELECT - 83 - + 47 AS col1
----
-130

query I rowsort
SELECT ALL 53 * + 38
----
2014

query I rowsort
SELECT DISTINCT + 24 * + + 2
----
48

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

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

query I rowsort
SELECT - - NULLIF ( - 3, + AVG ( DISTINCT - + 29 ) ) AS col1
----
-3

query I rowsort
SELECT ALL 10 * - - 80
----
800

query II rowsort
SELECT - 61 AS col1, 70 AS col2
----
-61
70

onlyif mysql # DIV for integer division: 
query II rowsort label-1889
SELECT DISTINCT - 31, 52 DIV + + 9 - + 2 AS col1
----
-31
3

skipif mysql # not compatible
query II rowsort label-1889
SELECT DISTINCT - 31, 52 / + + 9 - + 2 AS col1
----
-31
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1890
SELECT + 50 * CAST( NULL AS SIGNED ) + + 95 / + MAX( DISTINCT - 4 ) * ( 7 ) + SUM( 87 + - 66 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1890
SELECT + 50 * CAST ( NULL AS INTEGER ) + + 95 / + MAX ( DISTINCT - 4 ) * ( 7 ) + SUM ( 87 + - 66 )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1892
SELECT DISTINCT 55 + - COUNT( * ) + - 11 - NULLIF ( - + 12, + 70 * - 34 ) * - 77
----
-881

skipif mysql # not compatible
query I rowsort label-1892
SELECT DISTINCT 55 + - COUNT ( * ) + - 11 - NULLIF ( - + 12, + 70 * - 34 ) * - 77
----
-881

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

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

query I rowsort
SELECT ALL + 75 + + - 90 * + - 1
----
165

onlyif mysql # aggregate syntax: 
query I rowsort label-1895
SELECT ( COUNT( DISTINCT + 31 ) ) * - ( + ( - 96 ) )
----
96

skipif mysql # not compatible
query I rowsort label-1895
SELECT ( COUNT ( DISTINCT + 31 ) ) * - ( + ( - 96 ) )
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1896
SELECT ( + + NULLIF ( - - COUNT( * ), + COUNT( * ) ) ) + ( + - MIN( ALL - CAST( NULL AS SIGNED ) ) ) - - 27 * COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1896
SELECT ( + + NULLIF ( - - COUNT ( * ), + COUNT ( * ) ) ) + ( + - MIN ( ALL - CAST ( NULL AS INTEGER ) ) ) - - 27 * COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1897
SELECT DISTINCT 1 + ( - 96 ) * 35 + - COUNT( * ) AS col1
----
-3360

skipif mysql # not compatible
query I rowsort label-1897
SELECT DISTINCT 1 + ( - 96 ) * 35 + - COUNT ( * ) AS col1
----
-3360

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1898
SELECT ALL - COUNT( * ) * 20 DIV + + 96
----
0

skipif mysql # not compatible
query I rowsort label-1898
SELECT ALL - COUNT ( * ) * 20 / + + 96
----
0

query I rowsort
SELECT ALL 36 + + 72 AS col0
----
108

query II rowsort
SELECT DISTINCT - 28 AS col2, + 48 + - COALESCE ( - + 88, - 80 + 90 ) AS col0
----
-28
136

onlyif mysql # aggregate syntax: 
query I rowsort label-1901
SELECT ALL + COUNT( * ) + + 37
----
38

skipif mysql # not compatible
query I rowsort label-1901
SELECT ALL + COUNT ( * ) + + 37
----
38

query I rowsort
SELECT ALL - 76 + - + 91 AS col2
----
-167

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

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

query I rowsort
SELECT 11 + 63
----
74

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1906
SELECT COUNT( * ) + - COALESCE ( - ( + + 24 ), - - 41, - ( + 1 ) )
----
25

skipif mysql # not compatible
query I rowsort label-1906
SELECT COUNT ( * ) + - COALESCE ( - ( + + 24 ), - - 41, - ( + 1 ) )
----
25

onlyif mysql # aggregate syntax: 
query II rowsort label-1907
SELECT ALL + 31 + - 8 AS col0, 37 * + + 76 * COUNT( + 90 )
----
23
2812

skipif mysql # not compatible
query II rowsort label-1907
SELECT ALL + 31 + - 8 AS col0, 37 * + + 76 * COUNT ( + 90 )
----
23
2812

onlyif mysql # aggregate syntax: 
query I rowsort label-1908
SELECT ALL - CASE WHEN NOT ( - COUNT( * ) ) > + 36 / - + 75 THEN NULL ELSE - - 15 + 4 END + 11 * - MIN( 80 + 85 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1908
SELECT ALL - CASE WHEN NOT ( - COUNT ( * ) ) > + 36 / - + 75 THEN NULL ELSE - - 15 + 4 END + 11 * - MIN ( 80 + 85 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1909
SELECT 1 * + CASE - + 97 WHEN COALESCE ( - 23, + + 6 + + 98 / 13 ) * 84 THEN + 87 - - 75 WHEN 24 * COUNT( * ) + 23 * 15 THEN COUNT( 15 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1909
SELECT 1 * + CASE - + 97 WHEN COALESCE ( - 23, + + 6 + + 98 / 13 ) * 84 THEN + 87 - - 75 WHEN 24 * COUNT ( * ) + 23 * 15 THEN COUNT ( 15 ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1910
SELECT 4 - COUNT( * ) - 25 * + 41 * ( 36 ) * - 65 AS col0
----
2398503

skipif mysql # not compatible
query I rowsort label-1910
SELECT 4 - COUNT ( * ) - 25 * + 41 * ( 36 ) * - 65 AS col0
----
2398503

query II rowsort
SELECT 47, + ( 29 ) * 86 AS col0
----
47
2494

onlyif mysql # aggregate syntax: 
query I rowsort label-1912
SELECT ALL - COUNT( * ) - + + 63 * - 37 + - 12 + + - ( - 46 ) + 77 AS col0
----
2441

skipif mysql # not compatible
query I rowsort label-1912
SELECT ALL - COUNT ( * ) - + + 63 * - 37 + - 12 + + - ( - 46 ) + 77 AS col0
----
2441

query I rowsort
SELECT ALL + ( + 47 ) - + 10 + + 22 AS col1
----
59

query II rowsort
SELECT DISTINCT 62 AS col0, 75 AS col2
----
62
75

query II rowsort
SELECT ALL 15, 62 col0
----
15
62

query I rowsort
SELECT 32 * + - 93 + 50 + - 87 AS col0
----
-3013

onlyif mysql # aggregate syntax: 
query I rowsort label-1917
SELECT ALL + COUNT( * ) * + - 28 + + 75 col2
----
47

skipif mysql # not compatible
query I rowsort label-1917
SELECT ALL + COUNT ( * ) * + - 28 + + 75 col2
----
47

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1918
SELECT - - CAST( NULL AS DECIMAL ) AS col1, NULLIF ( + - 25, - 19 + + 92 ) * - - 23
----
NULL
-575

skipif mysql # not compatible
query II rowsort label-1918
SELECT - - CAST ( NULL AS REAL ) AS col1, NULLIF ( + - 25, - 19 + + 92 ) * - - 23
----
NULL
-575

onlyif mysql # aggregate syntax: 
query I rowsort label-1919
SELECT DISTINCT + 98 - + - 87 + - - 14 * + MAX( DISTINCT 21 ) col2
----
479

skipif mysql # not compatible
query I rowsort label-1919
SELECT DISTINCT + 98 - + - 87 + - - 14 * + MAX ( DISTINCT 21 ) col2
----
479

query I rowsort
SELECT - 88 * - - CASE + 31 WHEN 62 THEN - + 55 END
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1922
SELECT DISTINCT + ( - CASE + 13 WHEN - COUNT( * ) + + CASE CAST( 97 AS SIGNED ) WHEN 29 THEN - 83 * + 25 ELSE NULL END THEN - 52 WHEN + 40 THEN 95 / - 53 WHEN COUNT( * ) * 25 THEN CASE 60 WHEN + 15 THEN 6 - 36 END + 68 * COUNT( * ) END ) * 0
----
NULL

skipif mysql # not compatible
query I rowsort label-1922
SELECT DISTINCT + ( - CASE + 13 WHEN - COUNT ( * ) + + CASE CAST ( 97 AS INTEGER ) WHEN 29 THEN - 83 * + 25 ELSE NULL END THEN - 52 WHEN + 40 THEN 95 / - 53 WHEN COUNT ( * ) * 25 THEN CASE 60 WHEN + 15 THEN 6 - 36 END + 68 * COUNT ( * ) END ) * 0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1923
SELECT ALL - CAST( - 6 AS SIGNED ) * - 3
----
-18

skipif mysql # not compatible
query I rowsort label-1923
SELECT ALL - CAST ( - 6 AS INTEGER ) * - 3
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-1924
SELECT MAX( - - 59 ) * CASE - + 97 WHEN 50 * + 21 + 98 * + 38 THEN NULL ELSE - 76 END AS col1
----
-4484

skipif mysql # not compatible
query I rowsort label-1924
SELECT MAX ( - - 59 ) * CASE - + 97 WHEN 50 * + 21 + 98 * + 38 THEN NULL ELSE - 76 END AS col1
----
-4484

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1925
SELECT ALL + COALESCE ( - 26, - 18 DIV + 5 * + - COUNT( - + ( + 12 ) ) * ( - 12 - CAST( NULL AS SIGNED ) ) ) DIV 22
----
-1

skipif mysql # not compatible
query I rowsort label-1925
SELECT ALL + COALESCE ( - 26, - 18 / + 5 * + - COUNT ( - + ( + 12 ) ) * ( - 12 - CAST ( NULL AS INTEGER ) ) ) / 22
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1926
SELECT + 38 * - 45 * + - CASE - 91 WHEN COALESCE ( 72, CAST( - 9 AS SIGNED ), 46 ) THEN ( 21 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1926
SELECT + 38 * - 45 * + - CASE - 91 WHEN COALESCE ( 72, CAST ( - 9 AS INTEGER ), 46 ) THEN ( 21 ) END AS col0
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1928
SELECT + 4 * - CAST( 43 AS SIGNED ) AS col2
----
-172

skipif mysql # not compatible
query I rowsort label-1928
SELECT + 4 * - CAST ( 43 AS INTEGER ) AS col2
----
-172

query I rowsort
SELECT ALL 44 + + 50
----
94

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

skipif mysql # not compatible
query I rowsort label-1930
SELECT - COUNT ( * ) - + 35 AS col2
----
-36

query II rowsort
SELECT - 85 col2, 95 * + 17
----
-85
1615

query II rowsort
SELECT - + 9 AS col1, + 0 * - 95
----
-9
0

query II rowsort
SELECT - + 40 AS col2, 33 col1
----
-40
33

query I rowsort
SELECT + + NULLIF ( + - 77, + ( + 23 ) / ( + 80 ) )
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-1935
SELECT 80 * 33 + - - 64 + - COUNT( * )
----
2703

skipif mysql # not compatible
query I rowsort label-1935
SELECT 80 * 33 + - - 64 + - COUNT ( * )
----
2703

query I rowsort
SELECT - 93 * 16 - - 17 AS col0
----
-1471

onlyif mysql # aggregate syntax: 
query II rowsort label-1937
SELECT + SUM( - 57 ) col0, - ( - + 86 ) * - - 93 * 63 AS col1
----
-57
503874

skipif mysql # not compatible
query II rowsort label-1937
SELECT + SUM ( - 57 ) col0, - ( - + 86 ) * - - 93 * 63 AS col1
----
-57
503874

query I rowsort
SELECT + CASE 47 WHEN - - 78 / 19 * - 60 * ( + + 3 ) THEN 53 + 17 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT - 77 + 86
----
9

query I rowsort
SELECT ALL + 20 * 34 - ( + 93 ) col2
----
587

query II rowsort
SELECT - 94 * - 49 AS col2, - 83 * + 25
----
4606
-2075

onlyif mysql # aggregate syntax: 
query I rowsort label-1942
SELECT CASE + 15 WHEN + - ( - + 21 ) + 76 THEN + COUNT( * ) * 8 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1942
SELECT CASE + 15 WHEN + - ( - + 21 ) + 76 THEN + COUNT ( * ) * 8 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1943
SELECT + NULLIF ( - CAST( + 31 AS SIGNED ), + CAST( CASE - ( + - COUNT( * ) ) WHEN + 64 + 83 * 63 THEN + 56 ELSE 31 END AS SIGNED ) ) AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-1943
SELECT + NULLIF ( - CAST ( + 31 AS INTEGER ), + CAST ( CASE - ( + - COUNT ( * ) ) WHEN + 64 + 83 * 63 THEN + 56 ELSE 31 END AS INTEGER ) ) AS col1
----
-31

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

skipif mysql # not compatible
query I rowsort label-1944
SELECT + 41 + - + 22 + ( - COUNT ( * ) ) * 41 AS col1
----
-22

query I rowsort
SELECT ALL 54 * 47 - - 4 AS col0
----
2542

query I rowsort
SELECT + 58 * + 92
----
5336

onlyif mysql # aggregate syntax: 
query I rowsort label-1947
SELECT ALL - COUNT( * ) * - + 57 * - - 51 * - - 9 - 34
----
26129

skipif mysql # not compatible
query I rowsort label-1947
SELECT ALL - COUNT ( * ) * - + 57 * - - 51 * - - 9 - 34
----
26129

onlyif mysql # aggregate syntax: 
query I rowsort label-1948
SELECT 73 * NULLIF ( + COUNT( * ), COUNT( * ) * - 40 ) + - - 48 AS col2
----
121

skipif mysql # not compatible
query I rowsort label-1948
SELECT 73 * NULLIF ( + COUNT ( * ), COUNT ( * ) * - 40 ) + - - 48 AS col2
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-1949
SELECT - COUNT( ALL - - 33 ) + 98
----
97

skipif mysql # not compatible
query I rowsort label-1949
SELECT - COUNT ( ALL - - 33 ) + 98
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1950
SELECT + + 80 + CAST( + - 66 AS SIGNED )
----
14

skipif mysql # not compatible
query I rowsort label-1950
SELECT + + 80 + CAST ( + - 66 AS INTEGER )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-1951
SELECT - - ( + NULLIF ( - 56, - - MIN( ALL - 8 ) * + 46 ) ) + NULLIF ( 97, - 43 )
----
41

skipif mysql # not compatible
query I rowsort label-1951
SELECT - - ( + NULLIF ( - 56, - - MIN ( ALL - 8 ) * + 46 ) ) + NULLIF ( 97, - 43 )
----
41

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1953
SELECT ALL COALESCE ( + 19, + COUNT( * ) * - 60 ) AS col2
----
19

skipif mysql # not compatible
query I rowsort label-1953
SELECT ALL COALESCE ( + 19, + COUNT ( * ) * - 60 ) AS col2
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-1954
SELECT - + 80 DIV + + 80
----
-1

skipif mysql # not compatible
query I rowsort label-1954
SELECT - + 80 / + + 80
----
-1

query I rowsort
SELECT ALL + + ( + 5 ) + + 64 AS col2
----
69

query I rowsort
SELECT - 31 + - 47 * 83 col1
----
-3932

query I rowsort
SELECT DISTINCT + - 25 + - ( + - 36 ) * ( 61 )
----
2171

query I rowsort
SELECT ALL - - 62 + - 99 * 38 AS col0
----
-3700

query I rowsort
SELECT - 58 + - - 91
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1960
SELECT ALL - 9 + - CAST( NULL AS SIGNED ) AS col2, + MAX( + CAST( NULL AS SIGNED ) )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1960
SELECT ALL - 9 + - CAST ( NULL AS INTEGER ) AS col2, + MAX ( + CAST ( NULL AS INTEGER ) )
----
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1961
SELECT DISTINCT - - SUM( ALL - - 93 ) * COUNT( * ) * - - ( - CAST( - ( NULLIF ( + 92, 25 ) ) AS SIGNED ) ) * ( + 98 - + 24 * 81 ) + + CAST( NULL AS SIGNED ) * CAST( - COUNT( * ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1961
SELECT DISTINCT - - SUM ( ALL - - 93 ) * COUNT ( * ) * - - ( - CAST ( - ( NULLIF ( + 92, 25 ) ) AS INTEGER ) ) * ( + 98 - + 24 * 81 ) + + CAST ( NULL AS INTEGER ) * CAST ( - COUNT ( * ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1962
SELECT - + 28 + + - 25 * + + 10 * COUNT( * ) * 62 col1
----
-15528

skipif mysql # not compatible
query I rowsort label-1962
SELECT - + 28 + + - 25 * + + 10 * COUNT ( * ) * 62 col1
----
-15528

query I rowsort
SELECT + + 23 - + 70 + ( - 73 ) AS col1
----
-120

query I rowsort
SELECT - - 54 + - 41 * - - 50 AS col1
----
-1996

onlyif mysql # aggregate syntax: 
query I rowsort label-1965
SELECT - MIN( - 5 )
----
5

skipif mysql # not compatible
query I rowsort label-1965
SELECT - MIN ( - 5 )
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1966
SELECT ALL COUNT( * ) + CAST( + 96 AS SIGNED ) + + COUNT( * ) * + - COUNT( * ) * + + 66 * 36 * + 46 * ( - 43 ) AS col1
----
4699825

skipif mysql # not compatible
query I rowsort label-1966
SELECT ALL COUNT ( * ) + CAST ( + 96 AS INTEGER ) + + COUNT ( * ) * + - COUNT ( * ) * + + 66 * 36 * + 46 * ( - 43 ) AS col1
----
4699825

onlyif mysql # aggregate syntax: 
query I rowsort label-1967
SELECT - COUNT( + - COALESCE ( + 16, - 6 + 94, 17 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-1967
SELECT - COUNT ( + - COALESCE ( + 16, - 6 + 94, 17 ) )
----
-1

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1969
SELECT DISTINCT 70 / - 29 * ( - CAST( NULL AS SIGNED ) ) + + 12 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1969
SELECT DISTINCT 70 / - 29 * ( - CAST ( NULL AS INTEGER ) ) + + 12 AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1970
SELECT ALL - COUNT ( * ) / 85 - - 5
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1971
SELECT CAST( - 86 AS SIGNED ) col2
----
-86

skipif mysql # not compatible
query I rowsort label-1971
SELECT CAST ( - 86 AS INTEGER ) col2
----
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-1972
SELECT 49 DIV - 66 * - - 98 + + - 26 col0
----
-26

skipif mysql # not compatible
query I rowsort label-1972
SELECT 49 / - 66 * - - 98 + + - 26 col0
----
-26

query I rowsort
SELECT + 65 * - 64
----
-4160

onlyif mysql # aggregate syntax: 
query I rowsort label-1974
SELECT ALL ( - + 72 ) * - SUM( + - 85 )
----
-6120

skipif mysql # not compatible
query I rowsort label-1974
SELECT ALL ( - + 72 ) * - SUM ( + - 85 )
----
-6120

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

query I rowsort
SELECT + NULLIF ( + 19, + AVG ( + + 99 ) )
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-1977
SELECT ALL - 99 DIV - 98 - 27 + - 80 AS col2
----
-106

skipif mysql # not compatible
query I rowsort label-1977
SELECT ALL - 99 / - 98 - 27 + - 80 AS col2
----
-106

query I rowsort
SELECT DISTINCT + 59 * - 32 AS col1
----
-1888

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1979
SELECT ALL - 60 DIV 96 - SUM( - 7 ), - 37 * + 26 AS col1
----
7
-962

skipif mysql # not compatible
query II rowsort label-1979
SELECT ALL - 60 / 96 - SUM ( - 7 ), - 37 * + 26 AS col1
----
7
-962

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

query I rowsort
SELECT + 99 * + 17
----
1683

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

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

query I rowsort
SELECT ( - 98 ) AS col1
----
-98

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

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

query I rowsort
SELECT ALL - 65 * + 72 + + CASE 54 WHEN 34 + + 40 THEN 52 WHEN + + 34 + - 18 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1986
SELECT + - ( - - 65 ) * + - COUNT( 26 ) * NULLIF ( + 97, + SUM( DISTINCT NULLIF ( - 54, 33 ) ) ) * + 56 - + 68
----
353012

skipif mysql # not compatible
query I rowsort label-1986
SELECT + - ( - - 65 ) * + - COUNT ( 26 ) * NULLIF ( + 97, + SUM ( DISTINCT NULLIF ( - 54, 33 ) ) ) * + 56 - + 68
----
353012

query I rowsort
SELECT ALL - + 2 * 3
----
-6

query I rowsort
SELECT DISTINCT CASE - 0 WHEN - 14 + + ( 45 ) THEN - 70 + - 88 + - 36 + 76 * COALESCE ( + 43 * + 54, - 25, 82 ) * + 18 END / 23
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1989
SELECT ALL 14 * - CAST( NULL AS SIGNED ) + 33 * 59 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1989
SELECT ALL 14 * - CAST ( NULL AS INTEGER ) + 33 * 59 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1990
SELECT DISTINCT + 57 * - + MAX( 25 )
----
-1425

skipif mysql # not compatible
query I rowsort label-1990
SELECT DISTINCT + 57 * - + MAX ( 25 )
----
-1425

query I rowsort
SELECT + 59 * + 60
----
3540

onlyif mysql # aggregate syntax: 
query I rowsort label-1992
SELECT ALL + 87 * COUNT( ALL + + 2 ) * 11 + 17 AS col1
----
974

skipif mysql # not compatible
query I rowsort label-1992
SELECT ALL + 87 * COUNT ( ALL + + 2 ) * 11 + 17 AS col1
----
974

query I rowsort
SELECT + CASE - 66 WHEN + 40 * + - 1 + 50 THEN - 76 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1994
SELECT ALL + 63 + - COUNT( * ) * + + 41 col2
----
22

skipif mysql # not compatible
query I rowsort label-1994
SELECT ALL + 63 + - COUNT ( * ) * + + 41 col2
----
22

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1996
SELECT ALL MIN( 23 ) + - + 66 AS col2, 36 + 45
----
-43
81

skipif mysql # not compatible
query II rowsort label-1996
SELECT ALL MIN ( 23 ) + - + 66 AS col2, 36 + 45
----
-43
81

query II rowsort
SELECT ALL 75, + 86 AS col1
----
75
86

onlyif mysql # aggregate syntax: 
query II rowsort label-1998
SELECT DISTINCT - 54 AS col2, - 75 - - ( - COUNT( * ) ) AS col0
----
-54
-76

skipif mysql # not compatible
query II rowsort label-1998
SELECT DISTINCT - 54 AS col2, - 75 - - ( - COUNT ( * ) ) AS col0
----
-54
-76

query I rowsort
SELECT ALL - - ( - - 81 ) + + - ( + 76 ) - + + 49
----
-44

query I rowsort
SELECT DISTINCT - - ( - 86 ) * - 63 * - + 29
----
-157122

query I rowsort
SELECT DISTINCT - 62 - 84 AS col1
----
-146

onlyif mysql # aggregate syntax: 
query I rowsort label-2002
SELECT 79 + + COUNT( ALL + + 40 )
----
80

skipif mysql # not compatible
query I rowsort label-2002
SELECT 79 + + COUNT ( ALL + + 40 )
----
80

onlyif mysql # DIV for integer division: 
query I rowsort label-2003
SELECT 15 DIV - 82 * + 74
----
0

skipif mysql # not compatible
query I rowsort label-2003
SELECT 15 / - 82 * + 74
----
0

query I rowsort
SELECT ALL - 44 - 73 * - + 41 AS col2
----
2949

query I rowsort
SELECT 86 * 35 * - 28 col2
----
-84280

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2006
SELECT 95 + - MIN( 51 ) + CAST( NULL AS SIGNED ) * - 80
----
NULL

skipif mysql # not compatible
query I rowsort label-2006
SELECT 95 + - MIN ( 51 ) + CAST ( NULL AS INTEGER ) * - 80
----
NULL

query I rowsort
SELECT 5 + - 26 * 34
----
-879

query I rowsort
SELECT 11 * + - 45
----
-495

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2009
SELECT 14 + - + NULLIF ( ( + CASE + 86 WHEN + NULLIF ( + - NULLIF ( + + 32, + + MIN( DISTINCT - 61 ) * NULLIF ( 42, 98 - - 19 ) + 77 / + 73 ), + 66 + + CAST( NULL AS SIGNED ) ) THEN - 27 END ), 98 * 88 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2009
SELECT 14 + - + NULLIF ( ( + CASE + 86 WHEN + NULLIF ( + - NULLIF ( + + 32, + + MIN ( DISTINCT - 61 ) * NULLIF ( 42, 98 - - 19 ) + 77 / + 73 ), + 66 + + CAST ( NULL AS INTEGER ) ) THEN - 27 END ), 98 * 88 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2010
SELECT ALL + MIN( ALL 4 ) * 50
----
200

skipif mysql # not compatible
query I rowsort label-2010
SELECT ALL + MIN ( ALL 4 ) * 50
----
200

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

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-2013
SELECT ALL 47 DIV + + 33, - 20 AS col1
----
1
-20

skipif mysql # not compatible
query II rowsort label-2013
SELECT ALL 47 / + + 33, - 20 AS col1
----
1
-20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2014
SELECT DISTINCT - COUNT( * ) DIV + 2 * NULLIF ( + 42, - 74 ) * - - 10 * + 89 - + COUNT( ALL 86 )
----
-1

skipif mysql # not compatible
query I rowsort label-2014
SELECT DISTINCT - COUNT ( * ) / + 2 * NULLIF ( + 42, - 74 ) * - - 10 * + 89 - + COUNT ( ALL 86 )
----
-1

query I rowsort
SELECT 10 * 78
----
780

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2016
SELECT - NULLIF ( 10, + + 79 * + - 35 + + 52 - - - 66 ) * - + 62 * - 35 * + ( 54 ) + + NULLIF ( 73, CAST( NULL AS SIGNED ) * COALESCE ( - 68 * 14, 33 * + 63, - 38 ) )
----
-1171727

skipif mysql # not compatible
query I rowsort label-2016
SELECT - NULLIF ( 10, + + 79 * + - 35 + + 52 - - - 66 ) * - + 62 * - 35 * + ( 54 ) + + NULLIF ( 73, CAST ( NULL AS INTEGER ) * COALESCE ( - 68 * 14, 33 * + 63, - 38 ) )
----
-1171727

onlyif mysql # aggregate syntax: 
query I rowsort label-2017
SELECT COUNT( * ) + - - 30 + + + ( + 41 ) - COUNT( DISTINCT 55 ) + 3
----
74

skipif mysql # not compatible
query I rowsort label-2017
SELECT COUNT ( * ) + - - 30 + + + ( + 41 ) - COUNT ( DISTINCT 55 ) + 3
----
74

onlyif mysql # aggregate syntax: 
query II rowsort label-2018
SELECT 65 * - + 66, 46 * - - ( - + SUM( DISTINCT + 78 ) ) AS col1
----
-4290
-3588

skipif mysql # not compatible
query II rowsort label-2018
SELECT 65 * - + 66, 46 * - - ( - + SUM ( DISTINCT + 78 ) ) AS col1
----
-4290
-3588

onlyif mysql # aggregate syntax: 
query I rowsort label-2019
SELECT ALL 87 * COUNT( * ) * - 82 col1
----
-7134

skipif mysql # not compatible
query I rowsort label-2019
SELECT ALL 87 * COUNT ( * ) * - 82 col1
----
-7134

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2020
SELECT 36 * + + ( CAST( 85 AS SIGNED ) )
----
3060

skipif mysql # not compatible
query I rowsort label-2020
SELECT 36 * + + ( CAST ( 85 AS INTEGER ) )
----
3060

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

query I rowsort
SELECT DISTINCT - 77 + + 56 * - + ( + - 47 )
----
2555

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2023
SELECT 0 * - COUNT( * ) - 67 * 79 AS col0, CAST( NULL AS DECIMAL )
----
-5293
NULL

skipif mysql # not compatible
query II rowsort label-2023
SELECT 0 * - COUNT ( * ) - 67 * 79 AS col0, CAST ( NULL AS REAL )
----
-5293
NULL

query I rowsort
SELECT ALL - 8 + + - 20 + + NULLIF ( 27, - 55 * - 86 * - + 14 / - 19 )
----
-1

query I rowsort
SELECT ALL 21 + + 67 + 96
----
184

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2026
SELECT ALL - 28 + - CAST( + - 59 AS SIGNED ) * + 51 AS col1
----
2981

skipif mysql # not compatible
query I rowsort label-2026
SELECT ALL - 28 + - CAST ( + - 59 AS INTEGER ) * + 51 AS col1
----
2981

query I rowsort
SELECT - COALESCE ( 47, + + 49 ) AS col0
----
-47

query I rowsort
SELECT DISTINCT - 17 + 8 + - 90
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2029
SELECT MIN( ALL + 51 ) + - 93
----
-42

skipif mysql # not compatible
query I rowsort label-2029
SELECT MIN ( ALL + 51 ) + - 93
----
-42

query I rowsort
SELECT ( 88 ) * + 64 AS col1
----
5632

query I rowsort
SELECT DISTINCT - - 92
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-2032
SELECT - 66 + + COUNT( + - 7 ) * + + 6
----
-60

skipif mysql # not compatible
query I rowsort label-2032
SELECT - 66 + + COUNT ( + - 7 ) * + + 6
----
-60

query I rowsort
SELECT - - CASE + AVG ( ALL + 32 ) WHEN - 38 + + 21 + 37 THEN + - 21 END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2034
SELECT + CAST( 53 AS SIGNED ) col0, + 46 + - 0 AS col1
----
53
46

skipif mysql # not compatible
query II rowsort label-2034
SELECT + CAST ( 53 AS INTEGER ) col0, + 46 + - 0 AS col1
----
53
46

query I rowsort
SELECT + 12 * - + 87 + - + 29 col0
----
-1073

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2036
SELECT ALL + 1 + - - CAST( - 12 AS SIGNED ) * - COALESCE ( + 42, + SUM( + + ( + + ( + - ( - 74 ) ) ) ) DIV MIN( DISTINCT 30 ) + - 78 * 55, + COUNT( * ) ) + 31
----
536

skipif mysql # not compatible
query I rowsort label-2036
SELECT ALL + 1 + - - CAST ( - 12 AS INTEGER ) * - COALESCE ( + 42, + SUM ( + + ( + + ( + - ( - 74 ) ) ) ) / MIN ( DISTINCT 30 ) + - 78 * 55, + COUNT ( * ) ) + 31
----
536

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

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

query I rowsort
SELECT + 16 + + - 64 AS col1
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2039
SELECT DISTINCT - COALESCE ( + CAST( NULL AS SIGNED ), 26, ( 45 ) * + + CASE + + CAST( NULL AS SIGNED ) WHEN + ( 32 ) THEN 38 + + 68 WHEN ( + 50 ) / 36 THEN - COALESCE ( 66, - 4 - + 92 * - CASE COUNT( * ) * - 42 WHEN 93 THEN NULL WHEN + 50 * - 14 THEN 53 END, 2 + - CAST( NULL AS SIGNED ) ) + 69 END * 50 - + 73 ) AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-2039
SELECT DISTINCT - COALESCE ( + CAST ( NULL AS INTEGER ), 26, ( 45 ) * + + CASE + + CAST ( NULL AS INTEGER ) WHEN + ( 32 ) THEN 38 + + 68 WHEN ( + 50 ) / 36 THEN - COALESCE ( 66, - 4 - + 92 * - CASE COUNT ( * ) * - 42 WHEN 93 THEN NULL WHEN + 50 * - 14 THEN 53 END, 2 + - CAST ( NULL AS INTEGER ) ) + 69 END * 50 - + 73 ) AS col1
----
-26

query I rowsort
SELECT ( + 70 ) + + 98
----
168

query I rowsort
SELECT ALL + 40 * 31
----
1240

query I rowsort
SELECT + ( + NULLIF ( 80, 16 * + ( + 94 ) ) )
----
80

query I rowsort
SELECT DISTINCT 66 * + + 97
----
6402

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2044
SELECT 24 + + ( 56 ) + + MIN( ALL 97 ) + + - CAST( 30 AS SIGNED ) DIV - + 85 AS col2, 32
----
177
32

skipif mysql # not compatible
query II rowsort label-2044
SELECT 24 + + ( 56 ) + + MIN ( ALL 97 ) + + - CAST ( 30 AS INTEGER ) / - + 85 AS col2, 32
----
177
32

query I rowsort
SELECT 95 * - 17 * + 41 AS col1
----
-66215

onlyif mysql # aggregate syntax: 
query II rowsort label-2046
SELECT 31 * + + COUNT( * ) * - - 75 AS col0, - COUNT( - 68 )
----
2325
-1

skipif mysql # not compatible
query II rowsort label-2046
SELECT 31 * + + COUNT ( * ) * - - 75 AS col0, - COUNT ( - 68 )
----
2325
-1

query I rowsort
SELECT 34 + - 43 AS col1
----
-9

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

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

query I rowsort
SELECT DISTINCT 30 * + 47 * - 34
----
-47940

onlyif mysql # aggregate syntax: 
query I rowsort label-2050
SELECT ALL - NULLIF ( + 97, + MAX( DISTINCT 86 ) * - 37 * - + 28 * + - 64 ) - - + NULLIF ( + + 34, - + 67 + + COUNT( * ) ) + COUNT( * )
----
-62

skipif mysql # not compatible
query I rowsort label-2050
SELECT ALL - NULLIF ( + 97, + MAX ( DISTINCT 86 ) * - 37 * - + 28 * + - 64 ) - - + NULLIF ( + + 34, - + 67 + + COUNT ( * ) ) + COUNT ( * )
----
-62

query I rowsort
SELECT 21 * + 48
----
1008

query II rowsort
SELECT 11 AS col0, 22 AS col1
----
11
22

query I rowsort
SELECT 40 + - 97 + 97 + + 80 AS col0
----
120

onlyif mysql # DIV for integer division: 
query I rowsort label-2054
SELECT ALL - 14 DIV - - 56 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2054
SELECT ALL - 14 / - - 56 AS col2
----
0

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

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

query I rowsort
SELECT 46 * 37 * 50
----
85100

query II rowsort
SELECT + 54 AS col0, 21
----
54
21

onlyif mysql # aggregate syntax: 
query I rowsort label-2058
SELECT ALL + 78 * 62 * - COUNT( DISTINCT 20 )
----
-4836

skipif mysql # not compatible
query I rowsort label-2058
SELECT ALL + 78 * 62 * - COUNT ( DISTINCT 20 )
----
-4836

onlyif mysql # aggregate syntax: 
query I rowsort label-2059
SELECT 36 + - + MIN( - - 10 ) * NULLIF ( 16, + 85 )
----
-124

skipif mysql # not compatible
query I rowsort label-2059
SELECT 36 + - + MIN ( - - 10 ) * NULLIF ( 16, + 85 )
----
-124

query I rowsort
SELECT DISTINCT - NULLIF ( - + 5, - 2 )
----
5

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

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

query II rowsort
SELECT + 65 AS col1, ( 24 ) AS col0
----
65
24

onlyif mysql # aggregate syntax: 
query I rowsort label-2063
SELECT ALL 47 * + 56 + COUNT( * ) + - 45 * - 18 * - + 36 * COUNT( * )
----
-26527

skipif mysql # not compatible
query I rowsort label-2063
SELECT ALL 47 * + 56 + COUNT ( * ) + - 45 * - 18 * - + 36 * COUNT ( * )
----
-26527

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2064
SELECT - NULLIF ( 50, - ( 22 ) + 8 + COUNT( * ) + 74 - + - 69 + - 14 + - 55 * + 44 / 43 ) / + COUNT( * ) + - MIN( ( 93 ) ) / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2064
SELECT - NULLIF ( 50, - ( 22 ) + 8 + COUNT ( * ) + 74 - + - 69 + - 14 + - 55 * + 44 / 43 ) / + COUNT ( * ) + - MIN ( ( 93 ) ) / CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + 87 * + - 34 + + 79
----
-2879

onlyif mysql # aggregate syntax: 
query I rowsort label-2066
SELECT - 98 + - - 75 * COUNT( * ) AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-2066
SELECT - 98 + - - 75 * COUNT ( * ) AS col1
----
-23

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2068
SELECT ALL - + CAST( + 85 AS SIGNED ) + + - 39, 53 AS col1
----
-124
53

skipif mysql # not compatible
query II rowsort label-2068
SELECT ALL - + CAST ( + 85 AS INTEGER ) + + - 39, 53 AS col1
----
-124
53

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

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

query I rowsort
SELECT ALL + - 38 AS col2
----
-38

onlyif mysql # aggregate syntax: 
query II rowsort label-2071
SELECT ALL - 30 - - 87 + - + ( + 51 ) - + 29 * + COUNT( * ) AS col1, 98 + + - 81 * + 37 + - - 95
----
-23
-2804

skipif mysql # not compatible
query II rowsort label-2071
SELECT ALL - 30 - - 87 + - + ( + 51 ) - + 29 * + COUNT ( * ) AS col1, 98 + + - 81 * + 37 + - - 95
----
-23
-2804

query I rowsort
SELECT DISTINCT - - 13 - + 48 AS col1
----
-35

query I rowsort
SELECT + + 91 * + - 64 * + 35
----
-203840

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2074
SELECT ALL + ( MIN( - + NULLIF ( 13, - ( + 80 ) + - 33 + - - 80 + - 35 ) ) ) - + MAX( DISTINCT + 80 ) + + NULLIF ( 62, + 82 ) * COALESCE ( - 13, 46 * + CAST( - 18 AS SIGNED ) ) col2
----
-899

skipif mysql # not compatible
query I rowsort label-2074
SELECT ALL + ( MIN ( - + NULLIF ( 13, - ( + 80 ) + - 33 + - - 80 + - 35 ) ) ) - + MAX ( DISTINCT + 80 ) + + NULLIF ( 62, + 82 ) * COALESCE ( - 13, 46 * + CAST ( - 18 AS INTEGER ) ) col2
----
-899

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

query I rowsort
SELECT - 71 * COALESCE ( + 38, + 48 )
----
-2698

onlyif mysql # aggregate syntax: 
query I rowsort label-2077
SELECT + ( - MIN( + 30 ) ) - + - ( 63 )
----
33

skipif mysql # not compatible
query I rowsort label-2077
SELECT + ( - MIN ( + 30 ) ) - + - ( 63 )
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-2078
SELECT - NULLIF ( + COUNT( 4 ), - ( + 2 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-2078
SELECT - NULLIF ( + COUNT ( 4 ), - ( + 2 ) )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2079
SELECT DISTINCT COALESCE ( CAST( NULL AS SIGNED ), + 18 + - 99, COUNT( * ) - - + 24 ) DIV + - 84
----
0

skipif mysql # not compatible
query I rowsort label-2079
SELECT DISTINCT COALESCE ( CAST ( NULL AS INTEGER ), + 18 + - 99, COUNT ( * ) - - + 24 ) / + - 84
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2082
SELECT ALL ( 50 ) * + MAX( - 68 ) AS col1
----
-3400

skipif mysql # not compatible
query I rowsort label-2082
SELECT ALL ( 50 ) * + MAX ( - 68 ) AS col1
----
-3400

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2083
SELECT + 59 DIV CAST( + - 96 AS SIGNED ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2083
SELECT + 59 / CAST ( + - 96 AS INTEGER ) AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2084
SELECT DISTINCT CASE - - NULLIF ( - 56, - 96 DIV + MIN( 91 ) ) WHEN + - COUNT( * ) THEN + + 52 WHEN + 30 + + 26 * + 70 THEN - 17 * 87 + + 99 ELSE 98 END DIV - 2
----
-49

skipif mysql # not compatible
query I rowsort label-2084
SELECT DISTINCT CASE - - NULLIF ( - 56, - 96 / + MIN ( 91 ) ) WHEN + - COUNT ( * ) THEN + + 52 WHEN + 30 + + 26 * + 70 THEN - 17 * 87 + + 99 ELSE 98 END / - 2
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-2085
SELECT DISTINCT - 9 * - 8 * + NULLIF ( + COUNT( * ), + 90 )
----
72

skipif mysql # not compatible
query I rowsort label-2085
SELECT DISTINCT - 9 * - 8 * + NULLIF ( + COUNT ( * ), + 90 )
----
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2086
SELECT + 23 DIV + COUNT( * ) AS col1, 34 + 2 AS col0
----
23
36

skipif mysql # not compatible
query II rowsort label-2086
SELECT + 23 / + COUNT ( * ) AS col1, 34 + 2 AS col0
----
23
36

onlyif mysql # DIV for integer division: 
query I rowsort label-2087
SELECT + 82 + - - 94 DIV + + 25
----
85

skipif mysql # not compatible
query I rowsort label-2087
SELECT + 82 + - - 94 / + + 25
----
85

query I rowsort
SELECT - 5 * 42
----
-210

query I rowsort
SELECT ALL 46 + - 90 + ( + + ( COALESCE ( - + 40, - 37 ) ) )
----
-84

query I rowsort
SELECT + 52 + + + 6
----
58

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2092
SELECT DISTINCT + 8 DIV 19 + - MIN( ALL - 11 ) + + 62 + - + ( + - 16 ), 29 AS col2
----
89
29

skipif mysql # not compatible
query II rowsort label-2092
SELECT DISTINCT + 8 / 19 + - MIN ( ALL - 11 ) + + 62 + - + ( + - 16 ), 29 AS col2
----
89
29

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2094
SELECT DISTINCT + 91 * - COUNT( * ) + 54 + + 41 + + + 84
----
88

skipif mysql # not compatible
query I rowsort label-2094
SELECT DISTINCT + 91 * - COUNT ( * ) + 54 + + 41 + + + 84
----
88

query I rowsort
SELECT ALL + ( - + 60 ) * - 33
----
1980

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-2097
SELECT 22 DIV - 60 + ( 78 ) AS col0, 88 AS col0
----
78
88

skipif mysql # not compatible
query II rowsort label-2097
SELECT 22 / - 60 + ( 78 ) AS col0, 88 AS col0
----
78
88

onlyif mysql # DIV for integer division: 
query I rowsort label-2098
SELECT DISTINCT + + 66 DIV - + 44 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2098
SELECT DISTINCT + + 66 / - + 44 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-2099
SELECT + COUNT( * ), - 27 - + - SUM( 38 ) * - 3 AS col2
----
1
-141

skipif mysql # not compatible
query II rowsort label-2099
SELECT + COUNT ( * ), - 27 - + - SUM ( 38 ) * - 3 AS col2
----
1
-141

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2101
SELECT + + 9, - 46 DIV NULLIF ( - - 17, COUNT( * ) + - 86 ) AS col1
----
9
-2

skipif mysql # not compatible
query II rowsort label-2101
SELECT + + 9, - 46 / NULLIF ( - - 17, COUNT ( * ) + - 86 ) AS col1
----
9
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-2102
SELECT + 81 AS col1, 42 + COUNT( * )
----
81
43

skipif mysql # not compatible
query II rowsort label-2102
SELECT + 81 AS col1, 42 + COUNT ( * )
----
81
43

query I rowsort
SELECT - 53 + 84 * - + 55 + + - 52
----
-4725

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2104
SELECT ALL + COUNT( * ) AS col0, 12 DIV + 64 + - 76
----
1
-76

skipif mysql # not compatible
query II rowsort label-2104
SELECT ALL + COUNT ( * ) AS col0, 12 / + 64 + - 76
----
1
-76

query I rowsort
SELECT + + CASE + 24 WHEN 59 / + 14 - 19 THEN NULL ELSE 69 END
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-2106
SELECT ALL + 65 * + NULLIF ( + COUNT( * ), - 21 + - + COUNT( * ) ) + + - MIN( - 28 )
----
93

skipif mysql # not compatible
query I rowsort label-2106
SELECT ALL + 65 * + NULLIF ( + COUNT ( * ), - 21 + - + COUNT ( * ) ) + + - MIN ( - 28 )
----
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2107
SELECT - 4, 62 DIV COUNT( * ) col2
----
-4
62

skipif mysql # not compatible
query II rowsort label-2107
SELECT - 4, 62 / COUNT ( * ) col2
----
-4
62

query II rowsort
SELECT DISTINCT + 91 AS col1, - 83 * + 44 * 23
----
91
-83996

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2110
SELECT DISTINCT - ( - MAX( - 30 ) ) DIV + 31 AS col0, 64 AS col2
----
0
64

skipif mysql # not compatible
query II rowsort label-2110
SELECT DISTINCT - ( - MAX ( - 30 ) ) / + 31 AS col0, 64 AS col2
----
0
64

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2112
SELECT - CASE + - ( + ( CAST( NULL AS SIGNED ) ) ) WHEN + ( + 5 ) THEN + 75 + + 28 / + + 0 END / + 17 + + 74 + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2112
SELECT - CASE + - ( + ( CAST ( NULL AS INTEGER ) ) ) WHEN + ( + 5 ) THEN + 75 + + 28 / + + 0 END / + 17 + + 74 + COUNT ( * )
----
NULL

query I rowsort
SELECT - - ( - 0 ) + - 16
----
-16

query I rowsort
SELECT 38 * - NULLIF ( + 73, - 99 ) - + 74 col1
----
-2848

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

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

query I rowsort
SELECT - + 68 + - ( - 90 ) + - 45 AS col1
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2117
SELECT 22 * - + CASE + - CAST( NULL AS SIGNED ) WHEN 10 + COALESCE ( - 32, - AVG ( DISTINCT 38 ), + 83 ) THEN - 79 + + 94 + + 47 * - COUNT( * ) * 72 END * + ( 71 ) + + 76 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2117
SELECT 22 * - + CASE + - CAST ( NULL AS INTEGER ) WHEN 10 + COALESCE ( - 32, - AVG ( DISTINCT 38 ), + 83 ) THEN - 79 + + 94 + + 47 * - COUNT ( * ) * 72 END * + ( 71 ) + + 76 AS col1
----
NULL

query I rowsort
SELECT - 18 * + - 54
----
972

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2119
SELECT DISTINCT CAST( NULL AS DECIMAL ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2119
SELECT DISTINCT CAST ( NULL AS REAL ) col2
----
NULL

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

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

query I rowsort
SELECT - 82 * - 13 * 20 AS col1
----
21320

onlyif mysql # aggregate syntax: 
query II rowsort label-2122
SELECT - MAX( - 80 ) col2, + 88
----
80
88

skipif mysql # not compatible
query II rowsort label-2122
SELECT - MAX ( - 80 ) col2, + 88
----
80
88

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2124
SELECT + 64 + - CASE COUNT( * ) WHEN COUNT( * ) THEN + 32 * - COUNT( ALL + 5 ) DIV 34 END + + 66
----
130

skipif mysql # not compatible
query I rowsort label-2124
SELECT + 64 + - CASE COUNT ( * ) WHEN COUNT ( * ) THEN + 32 * - COUNT ( ALL + 5 ) / 34 END + + 66
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-2125
SELECT ALL MAX( DISTINCT + 32 ) + + 52 AS col1
----
84

skipif mysql # not compatible
query I rowsort label-2125
SELECT ALL MAX ( DISTINCT + 32 ) + + 52 AS col1
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2126
SELECT ALL CAST( - 48 AS SIGNED ) col1
----
-48

skipif mysql # not compatible
query I rowsort label-2126
SELECT ALL CAST ( - 48 AS INTEGER ) col1
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-2127
SELECT + MAX( ALL - 96 ) * - - 73 + + + 0 col2
----
-7008

skipif mysql # not compatible
query I rowsort label-2127
SELECT + MAX ( ALL - 96 ) * - - 73 + + + 0 col2
----
-7008

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2128
SELECT ALL 64 DIV + + 92 * + COALESCE ( COUNT( * ), + 61 * COALESCE ( - - ( + + 96 ), 83 ), - - 86 * - 62 + + + 81 + - 64 )
----
0

skipif mysql # not compatible
query I rowsort label-2128
SELECT ALL 64 / + + 92 * + COALESCE ( COUNT ( * ), + 61 * COALESCE ( - - ( + + 96 ), 83 ), - - 86 * - 62 + + + 81 + - 64 )
----
0

query I rowsort
SELECT DISTINCT + ( + 18 ) + - 72 + 83 AS col1
----
29

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

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

query II rowsort
SELECT - ( 21 ) AS col2, + 8 AS col0
----
-21
8

query I rowsort
SELECT ALL 16 + + ( - + 67 ) AS col2
----
-51

query I rowsort
SELECT + 22 * - - 6
----
132

query I rowsort
SELECT - 93 * - + NULLIF ( + 95, + 38 / 84 + - + ( - + 60 ) ) * ( 20 ) AS col1
----
176700

query I rowsort
SELECT 8 + + 83 - - 47 * - - 74 * 36 AS col2
----
125299

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2136
SELECT + CASE + 46 WHEN + 23 THEN - CAST( NULL AS SIGNED ) / 22 * - 57 + + 20 / + + CAST( NULL AS SIGNED ) + + COUNT( * ) WHEN COUNT( - - COALESCE ( 20, + 92 * + 32 ) ) * MAX( 9 + + CAST( NULL AS SIGNED ) ) THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2136
SELECT + CASE + 46 WHEN + 23 THEN - CAST ( NULL AS INTEGER ) / 22 * - 57 + + 20 / + + CAST ( NULL AS INTEGER ) + + COUNT ( * ) WHEN COUNT ( - - COALESCE ( 20, + 92 * + 32 ) ) * MAX ( 9 + + CAST ( NULL AS INTEGER ) ) THEN NULL ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT ALL - 35 - 24 AS col1
----
-59

query I rowsort
SELECT - 60 * + ( + 55 ) AS col0
----
-3300

query I rowsort
SELECT ALL - - 26 - ( - - 72 )
----
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2140
SELECT ( - COUNT( * ) ) DIV - 90 * + - 62 + - 39 DIV + 25 + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-2140
SELECT ( - COUNT ( * ) ) / - 90 * + - 62 + - 39 / + 25 + COUNT ( * )
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2141
SELECT - CASE 79 WHEN - - 46 THEN NULL WHEN 0 * + 51 / - + 66 / - NULLIF ( 51, + 58 * - + 53 / 81 - + CAST( 38 AS DECIMAL ) * + 1 ) + COUNT( ALL NULLIF ( 3, + CASE + 53 WHEN + 66 THEN NULL ELSE - 80 - 20 * - 53 END ) ) THEN + ( 84 ) END / 90
----
NULL

skipif mysql # not compatible
query I rowsort label-2141
SELECT - CASE 79 WHEN - - 46 THEN NULL WHEN 0 * + 51 / - + 66 / - NULLIF ( 51, + 58 * - + 53 / 81 - + CAST ( 38 AS REAL ) * + 1 ) + COUNT ( ALL NULLIF ( 3, + CASE + 53 WHEN + 66 THEN NULL ELSE - 80 - 20 * - 53 END ) ) THEN + ( 84 ) END / 90
----
NULL

query I rowsort
SELECT + ( - 21 ) * - - 90 + 0
----
-1890

query I rowsort
SELECT + 96 + + + 80
----
176

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

skipif mysql # not compatible
query I rowsort label-2144
SELECT - SUM ( ALL - 17 )
----
17

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

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

query I rowsort
SELECT DISTINCT - - 27 AS col0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-2147
SELECT ALL - NULLIF ( 98, + 55 - + 16 + + + 8 * SUM( ALL + 82 ) * + 4 - 73 + 28 ) AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-2147
SELECT ALL - NULLIF ( 98, + 55 - + 16 + + + 8 * SUM ( ALL + 82 ) * + 4 - 73 + 28 ) AS col1
----
-98

query I rowsort
SELECT DISTINCT + 59 * + 89
----
5251

onlyif mysql # DIV for integer division: 
query I rowsort label-2149
SELECT 24 DIV - 50 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2149
SELECT 24 / - 50 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2150
SELECT ALL - MAX( 85 ) + 22 col0
----
-63

skipif mysql # not compatible
query I rowsort label-2150
SELECT ALL - MAX ( 85 ) + 22 col0
----
-63

query II rowsort
SELECT DISTINCT 19 AS col1, - COALESCE ( + + 20, + 96 )
----
19
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-2152
SELECT ALL + 27 + + MIN( DISTINCT ( 76 ) ), 8 AS col2
----
103
8

skipif mysql # not compatible
query II rowsort label-2152
SELECT ALL + 27 + + MIN ( DISTINCT ( 76 ) ), 8 AS col2
----
103
8

onlyif mysql # DIV for integer division: 
query I rowsort label-2153
SELECT 14 DIV - 75 * - 56 * + 57 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2153
SELECT 14 / - 75 * - 56 * + 57 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2154
SELECT 49 DIV + - 74
----
0

skipif mysql # not compatible
query I rowsort label-2154
SELECT 49 / + - 74
----
0

query I rowsort
SELECT 20 - + + 17 AS col1
----
3

query II rowsort
SELECT - 81, 60 col1
----
-81
60

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

skipif mysql # not compatible
query II rowsort label-2157
SELECT DISTINCT 86, COUNT ( * ) AS col0
----
86
1

query I rowsort
SELECT DISTINCT + 10 + + 67 + - 37 AS col1
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-2159
SELECT ALL + 64 * - + MIN( DISTINCT - + 13 ) * - + 42
----
-34944

skipif mysql # not compatible
query I rowsort label-2159
SELECT ALL + 64 * - + MIN ( DISTINCT - + 13 ) * - + 42
----
-34944

query I rowsort
SELECT 49 * 32
----
1568

query II rowsort
SELECT - 47 AS col0, 50
----
-47
50

query I rowsort
SELECT ALL 17 + + - 77 * + 54 * - 68
----
282761

onlyif mysql # aggregate syntax: 
query I rowsort label-2163
SELECT 65 - COUNT( * ) AS col0
----
64

skipif mysql # not compatible
query I rowsort label-2163
SELECT 65 - COUNT ( * ) AS col0
----
64

query II rowsort
SELECT - 7 AS col2, + 33
----
-7
33

onlyif mysql # aggregate syntax: 
query I rowsort label-2165
SELECT ALL + 92 - - SUM( DISTINCT + 56 ) AS col0
----
148

skipif mysql # not compatible
query I rowsort label-2165
SELECT ALL + 92 - - SUM ( DISTINCT + 56 ) AS col0
----
148

query II rowsort
SELECT 64 col0, 15 + + + 41
----
64
56

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

skipif mysql # not compatible
query I rowsort label-2167
SELECT - + SUM ( + 76 )
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-2168
SELECT + COUNT( * ) + + 58 + + + COUNT( * ) + 45 + - 83 + - 83
----
-61

skipif mysql # not compatible
query I rowsort label-2168
SELECT + COUNT ( * ) + + 58 + + + COUNT ( * ) + 45 + - 83 + - 83
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2169
SELECT - CAST( + 10 AS SIGNED ) * - - COUNT( * ) / - 16 * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2169
SELECT - CAST ( + 10 AS INTEGER ) * - - COUNT ( * ) / - 16 * - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2170
SELECT DISTINCT + ( + - 2 ) DIV 85 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2170
SELECT DISTINCT + ( + - 2 ) / 85 AS col0
----
0

query I rowsort
SELECT DISTINCT - + 9
----
-9

query I rowsort
SELECT ALL - 72 col2
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2173
SELECT - 57 * + CAST( NULL AS SIGNED ) * - - COUNT( * ) / - AVG ( DISTINCT - 21 ) * - + 82
----
NULL

skipif mysql # not compatible
query I rowsort label-2173
SELECT - 57 * + CAST ( NULL AS INTEGER ) * - - COUNT ( * ) / - AVG ( DISTINCT - 21 ) * - + 82
----
NULL

query II rowsort
SELECT + 89, 49 AS col2
----
89
49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2175
SELECT + CAST( NULL AS SIGNED ) AS col2, - 42 * + NULLIF ( - - 10, + 57 ) * 65
----
NULL
-27300

skipif mysql # not compatible
query II rowsort label-2175
SELECT + CAST ( NULL AS INTEGER ) AS col2, - 42 * + NULLIF ( - - 10, + 57 ) * 65
----
NULL
-27300

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2176
SELECT COALESCE ( + COUNT( * ), 12 ) DIV - 18 + 55
----
55

skipif mysql # not compatible
query I rowsort label-2176
SELECT COALESCE ( + COUNT ( * ), 12 ) / - 18 + 55
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-2177
SELECT + 10 DIV + 1
----
10

skipif mysql # not compatible
query I rowsort label-2177
SELECT + 10 / + 1
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-2178
SELECT ALL 50 * + - SUM( 49 ) - 22 * - 22 + 89 + - + 42 AS col1
----
-1919

skipif mysql # not compatible
query I rowsort label-2178
SELECT ALL 50 * + - SUM ( 49 ) - 22 * - 22 + 89 + - + 42 AS col1
----
-1919

onlyif mysql # aggregate syntax: 
query II rowsort label-2179
SELECT ALL + 24 * + SUM( + 85 ) AS col0, COUNT( ALL + 96 ) + - 80 + - + 82
----
2040
-161

skipif mysql # not compatible
query II rowsort label-2179
SELECT ALL + 24 * + SUM ( + 85 ) AS col0, COUNT ( ALL + 96 ) + - 80 + - + 82
----
2040
-161

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-2181
SELECT + 94 * 39 DIV 6 * - 66 AS col1, 60 AS col0
----
-40326
60

skipif mysql # not compatible
query II rowsort label-2181
SELECT + 94 * 39 / 6 * - 66 AS col1, 60 AS col0
----
-40326
60

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

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

query II rowsort
SELECT ALL - - 16, 98 AS col2
----
16
98

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2185
SELECT ALL - 41 + 49 * - - SUM( + - 34 ) * + COUNT( ALL - 7 ) AS col1, + 87
----
-1707
87

skipif mysql # not compatible
query II rowsort label-2185
SELECT ALL - 41 + 49 * - - SUM ( + - 34 ) * + COUNT ( ALL - 7 ) AS col1, + 87
----
-1707
87

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2187
SELECT ALL + + 81 + 47 * - CAST( NULL AS SIGNED ) * + - NULLIF ( + 83, - 0 ) / + 99 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2187
SELECT ALL + + 81 + 47 * - CAST ( NULL AS INTEGER ) * + - NULLIF ( + 83, - 0 ) / + 99 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2188
SELECT + 83 - 25 * + COUNT( DISTINCT 85 ) + + + COUNT( * )
----
59

skipif mysql # not compatible
query I rowsort label-2188
SELECT + 83 - 25 * + COUNT ( DISTINCT 85 ) + + + COUNT ( * )
----
59

query I rowsort
SELECT 40 - + 52 + ( + - 26 )
----
-38

onlyif mysql # aggregate syntax: 
query II rowsort label-2190
SELECT + MIN( DISTINCT 50 ) AS col2, 2
----
50
2

skipif mysql # not compatible
query II rowsort label-2190
SELECT + MIN ( DISTINCT 50 ) AS col2, 2
----
50
2

query I rowsort
SELECT ALL ( - 43 ) + + - 45
----
-88

query I rowsort
SELECT 30 + + 41 AS col0
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2193
SELECT 65 - - + ( + 31 ) DIV 68 * 48 - - + COUNT( * ) AS col0
----
66

skipif mysql # not compatible
query I rowsort label-2193
SELECT 65 - - + ( + 31 ) / 68 * 48 - - + COUNT ( * ) AS col0
----
66

query I rowsort
SELECT ALL ( + 12 ) + - - 53 AS col2
----
65

query I rowsort
SELECT ALL - 23 + - ( - 57 ) AS col2
----
34

query I rowsort
SELECT 55 * + 91
----
5005

onlyif mysql # aggregate syntax: 
query I rowsort label-2197
SELECT ALL + 60 - - COUNT( * ) * - 15 * - 23 + + + ( 25 ) AS col0
----
430

skipif mysql # not compatible
query I rowsort label-2197
SELECT ALL + 60 - - COUNT ( * ) * - 15 * - 23 + + + ( 25 ) AS col0
----
430

query I rowsort
SELECT 65 + + + 32
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2199
SELECT 74 + - ( + + MIN( - 7 ) ) * - - 42 + - 3
----
365

skipif mysql # not compatible
query I rowsort label-2199
SELECT 74 + - ( + + MIN ( - 7 ) ) * - - 42 + - 3
----
365

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2200
SELECT NULLIF ( - - SUM( ALL + 83 ), + 84 ) * + CAST( - - COUNT( * ) AS SIGNED ) * 51 AS col2
----
4233

skipif mysql # not compatible
query I rowsort label-2200
SELECT NULLIF ( - - SUM ( ALL + 83 ), + 84 ) * + CAST ( - - COUNT ( * ) AS INTEGER ) * 51 AS col2
----
4233

onlyif mysql # DIV for integer division: 
query I rowsort label-2201
SELECT - 75 + 78 DIV 16 * 52 * 5
----
965

skipif mysql # not compatible
query I rowsort label-2201
SELECT - 75 + 78 / 16 * 52 * 5
----
965

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2203
SELECT + 87 * + 38 * - ( - + 4 ) * 58 + - CAST( NULLIF ( + CASE - 18 WHEN 10 THEN + 13 WHEN COUNT( * ) THEN NULL ELSE NULL END, - - CASE - MAX( ALL + 73 ) WHEN 97 THEN - 3 / COALESCE ( COUNT( DISTINCT 52 ), 56, 32 ) + 74 * + MIN( ALL - 23 + + 3 ) WHEN - 36 + ( - 54 ) * - ( 76 ) THEN + 42 * 96 ELSE NULL END ) AS DECIMAL ) * + ( + 13 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2203
SELECT + 87 * + 38 * - ( - + 4 ) * 58 + - CAST ( NULLIF ( + CASE - 18 WHEN 10 THEN + 13 WHEN COUNT ( * ) THEN NULL ELSE NULL END, - - CASE - MAX ( ALL + 73 ) WHEN 97 THEN - 3 / COALESCE ( COUNT ( DISTINCT 52 ), 56, 32 ) + 74 * + MIN ( ALL - 23 + + 3 ) WHEN - 36 + ( - 54 ) * - ( 76 ) THEN + 42 * 96 ELSE NULL END ) AS REAL ) * + ( + 13 ) AS col1
----
NULL

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

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

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

query II rowsort
SELECT ALL 75 - + - 44 AS col0, ( - 71 ) AS col0
----
119
-71

onlyif mysql # aggregate syntax: 
query II rowsort label-2207
SELECT DISTINCT - COALESCE ( + 51, - COUNT( * ) ) * + + 46 AS col1, + 55 col0
----
-2346
55

skipif mysql # not compatible
query II rowsort label-2207
SELECT DISTINCT - COALESCE ( + 51, - COUNT ( * ) ) * + + 46 AS col1, + 55 col0
----
-2346
55

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2209
SELECT ALL - COUNT( * ) * 94 AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-2209
SELECT ALL - COUNT ( * ) * 94 AS col1
----
-94

query I rowsort
SELECT - - ( 87 ) * 92
----
8004

onlyif mysql # aggregate syntax: 
query I rowsort label-2211
SELECT - - COUNT( 93 )
----
1

skipif mysql # not compatible
query I rowsort label-2211
SELECT - - COUNT ( 93 )
----
1

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

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

query I rowsort
SELECT ALL + + 38 col1
----
38

query I rowsort
SELECT + 78 * 55
----
4290

query I rowsort
SELECT - - 56 + - + 72 AS col2
----
-16

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2217
SELECT DISTINCT + + 73 * - + 23 * + - NULLIF ( + - SUM( ALL - - 71 ), + ( + 34 ) ) + - + 88 + 51 + 13 * + 4
----
-119194

skipif mysql # not compatible
query I rowsort label-2217
SELECT DISTINCT + + 73 * - + 23 * + - NULLIF ( + - SUM ( ALL - - 71 ), + ( + 34 ) ) + - + 88 + 51 + 13 * + 4
----
-119194

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2219
SELECT ALL - 89 * + COUNT( * ) + + 22 + + + 43 * - 89 * 56 AS col0
----
-214379

skipif mysql # not compatible
query I rowsort label-2219
SELECT ALL - 89 * + COUNT ( * ) + + 22 + + + 43 * - 89 * 56 AS col0
----
-214379

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2220
SELECT - - 20 / - 46 * 21 + + CAST( NULL AS SIGNED ) + CAST( + 37 AS SIGNED ) * + 61 + + 51 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2220
SELECT - - 20 / - 46 * 21 + + CAST ( NULL AS INTEGER ) + CAST ( + 37 AS INTEGER ) * + 61 + + 51 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2221
SELECT ALL - - 53 * - 46 + - + CAST( CASE + 70 WHEN - 50 THEN - NULLIF ( - COUNT( * ), 94 * + 53 ) ELSE NULL END AS SIGNED ) + + ( + 85 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2221
SELECT ALL - - 53 * - 46 + - + CAST ( CASE + 70 WHEN - 50 THEN - NULLIF ( - COUNT ( * ), 94 * + 53 ) ELSE NULL END AS INTEGER ) + + ( + 85 )
----
NULL

query I rowsort
SELECT + 89 + + - ( 40 ) + 97 col1
----
146

query I rowsort
SELECT - 59 * + 67
----
-3953

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2224
SELECT + CASE + + 58 WHEN - 0 THEN - 97 * - + AVG ( NULLIF ( - 33, + 74 ) ) WHEN - CASE 77 WHEN + 7 * + 25 THEN NULL ELSE 31 END + 24 + - 5 / CAST( 10 * - 31 AS SIGNED ) THEN COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2224
SELECT + CASE + + 58 WHEN - 0 THEN - 97 * - + AVG ( NULLIF ( - 33, + 74 ) ) WHEN - CASE 77 WHEN + 7 * + 25 THEN NULL ELSE 31 END + 24 + - 5 / CAST ( 10 * - 31 AS INTEGER ) THEN COUNT ( * ) ELSE NULL END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2225
SELECT + 77 / - - COUNT ( * ) col1
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2226
SELECT CASE + 72 WHEN + COUNT( * ) * - 73 THEN - - 50 + - 64 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2226
SELECT CASE + 72 WHEN + COUNT ( * ) * - 73 THEN - - 50 + - 64 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT ALL + ( - + 55 ) * 41 + + 79 col2
----
-2176

onlyif mysql # aggregate syntax: 
query I rowsort label-2228
SELECT ALL MIN( ALL + - 9 ) * + + 84 - + 78 AS col2
----
-834

skipif mysql # not compatible
query I rowsort label-2228
SELECT ALL MIN ( ALL + - 9 ) * + + 84 - + 78 AS col2
----
-834

query I rowsort
SELECT + 23 * - - 77
----
1771

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2232
SELECT ALL 21 * - + 58 * - 53 * 31 - + 47 DIV + 60 AS col0
----
2001174

skipif mysql # not compatible
query I rowsort label-2232
SELECT ALL 21 * - + 58 * - 53 * 31 - + 47 / + 60 AS col0
----
2001174

onlyif mysql # aggregate syntax: 
query I rowsort label-2233
SELECT COUNT( 89 )
----
1

skipif mysql # not compatible
query I rowsort label-2233
SELECT COUNT ( 89 )
----
1

query I rowsort
SELECT + 87 - + 7 * + 33
----
-144

query I rowsort
SELECT DISTINCT 99 * 74 AS col2
----
7326

query I rowsort
SELECT ALL 34 * 9 AS col1
----
306

query I rowsort
SELECT ALL 45 * 8 * 46
----
16560

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2238
SELECT - CAST( NULL AS SIGNED ), + 6 DIV CAST( + - 8 AS SIGNED ) col0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-2238
SELECT - CAST ( NULL AS INTEGER ), + 6 / CAST ( + - 8 AS INTEGER ) col0
----
NULL
0

query II rowsort
SELECT ALL 17 AS col2, - 2
----
17
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2240
SELECT ALL + ( + CAST( - 84 AS SIGNED ) ) * + 97 + ( + 58 ) - - 18 + + CASE 46 WHEN + 92 + 23 THEN + 52 * + 31 WHEN - 87 THEN + - CASE 77 WHEN + 31 THEN ( - COUNT( * ) ) * + 92 WHEN - 48 THEN NULL ELSE NULL END ELSE NULL END / - 82 * CASE - CAST( - COUNT( ALL - 59 ) AS SIGNED ) WHEN 4 THEN NULL ELSE + 91 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2240
SELECT ALL + ( + CAST ( - 84 AS INTEGER ) ) * + 97 + ( + 58 ) - - 18 + + CASE 46 WHEN + 92 + 23 THEN + 52 * + 31 WHEN - 87 THEN + - CASE 77 WHEN + 31 THEN ( - COUNT ( * ) ) * + 92 WHEN - 48 THEN NULL ELSE NULL END ELSE NULL END / - 82 * CASE - CAST ( - COUNT ( ALL - 59 ) AS INTEGER ) WHEN 4 THEN NULL ELSE + 91 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2241
SELECT - COUNT( * ) - ( CAST( NULL AS SIGNED ) ) * 47 / + 86 AS col0, - 22
----
NULL
-22

skipif mysql # not compatible
query II rowsort label-2241
SELECT - COUNT ( * ) - ( CAST ( NULL AS INTEGER ) ) * 47 / + 86 AS col0, - 22
----
NULL
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-2242
SELECT - COUNT( * ) - 54 AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-2242
SELECT - COUNT ( * ) - 54 AS col0
----
-55

query I rowsort
SELECT - 49 * 53 AS col2
----
-2597

onlyif mysql # aggregate syntax: 
query II rowsort label-2244
SELECT ALL + 65 + + 52 * 75, + COUNT( * ) AS col0
----
3965
1

skipif mysql # not compatible
query II rowsort label-2244
SELECT ALL + 65 + + 52 * 75, + COUNT ( * ) AS col0
----
3965
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2245
SELECT - + 85 * - - CASE + 62 WHEN - 55 THEN - - 67 / - 8 + - + ( + SUM( DISTINCT + - 15 ) ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2245
SELECT - + 85 * - - CASE + 62 WHEN - 55 THEN - - 67 / - 8 + - + ( + SUM ( DISTINCT + - 15 ) ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2246
SELECT ALL - ( + - ( 7 ) ) + + CASE 96 WHEN + 53 / 97 THEN CASE COUNT( * ) WHEN 36 THEN - COUNT( * ) END ELSE - 83 + + - 46 + + NULLIF ( 26, + 71 ) END
----
-96

skipif mysql # not compatible
query I rowsort label-2246
SELECT ALL - ( + - ( 7 ) ) + + CASE 96 WHEN + 53 / 97 THEN CASE COUNT ( * ) WHEN 36 THEN - COUNT ( * ) END ELSE - 83 + + - 46 + + NULLIF ( 26, + 71 ) END
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2247
SELECT MAX( ALL 85 ) AS col1
----
85

skipif mysql # not compatible
query I rowsort label-2247
SELECT MAX ( ALL 85 ) AS col1
----
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2248
SELECT ALL - - 29 DIV SUM( 64 ) + - + 35 col0
----
-35

skipif mysql # not compatible
query I rowsort label-2248
SELECT ALL - - 29 / SUM ( 64 ) + - + 35 col0
----
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-2249
SELECT + 25, 72 * - COUNT( - COALESCE ( + + 28, - 99 ) ) DIV + ( + 98 ) AS col1, - - ( + 44 ) * 95 AS col2
----
25
0
4180

skipif mysql # not compatible
query III rowsort label-2249
SELECT + 25, 72 * - COUNT ( - COALESCE ( + + 28, - 99 ) ) / + ( + 98 ) AS col1, - - ( + 44 ) * 95 AS col2
----
25
0
4180

onlyif mysql # aggregate syntax: 
query I rowsort label-2250
SELECT ALL + - COUNT( * ) * 11 col1
----
-11

skipif mysql # not compatible
query I rowsort label-2250
SELECT ALL + - COUNT ( * ) * 11 col1
----
-11

query I rowsort
SELECT 59 * + + 79 + - + 3
----
4658

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

skipif mysql # not compatible
query I rowsort label-2252
SELECT DISTINCT + 3 / - COUNT ( * ) + CAST ( NULL AS INTEGER ) + - 20
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2253
SELECT ALL + MIN( - 19 ) * CASE - 66 WHEN - CAST( NULL AS SIGNED ) THEN + - COUNT( * ) * + 27 + 41 * + COUNT( * ) WHEN + 60 THEN 17 END * - 58 * + CAST( 52 AS SIGNED ) + - 84 * COUNT( * ) - + 86
----
NULL

skipif mysql # not compatible
query I rowsort label-2253
SELECT ALL + MIN ( - 19 ) * CASE - 66 WHEN - CAST ( NULL AS INTEGER ) THEN + - COUNT ( * ) * + 27 + 41 * + COUNT ( * ) WHEN + 60 THEN 17 END * - 58 * + CAST ( 52 AS INTEGER ) + - 84 * COUNT ( * ) - + 86
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2254
SELECT DISTINCT 5 DIV + ( ( + - 60 ) ) - - 96 - + + CAST( - 80 AS SIGNED ) DIV + 54
----
97

skipif mysql # not compatible
query I rowsort label-2254
SELECT DISTINCT 5 / + ( ( + - 60 ) ) - - 96 - + + CAST ( - 80 AS INTEGER ) / + 54
----
97

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2256
SELECT DISTINCT + 97 col2, ( 70 ) + + - 3 - 41 + - + COUNT( * ) col1
----
97
25

skipif mysql # not compatible
query II rowsort label-2256
SELECT DISTINCT + 97 col2, ( 70 ) + + - 3 - 41 + - + COUNT ( * ) col1
----
97
25

query II rowsort
SELECT ALL + 6 * + 78, - 84 col2
----
468
-84

query I rowsort
SELECT 48 * + + 2
----
96

onlyif mysql # DIV for integer division: 
query II rowsort label-2259
SELECT ( 43 ) * + 29 * + 63, 13 DIV 6 * - 43 AS col0
----
78561
-86

skipif mysql # not compatible
query II rowsort label-2259
SELECT ( 43 ) * + 29 * + 63, 13 / 6 * - 43 AS col0
----
78561
-86

onlyif mysql # aggregate syntax: 
query II rowsort label-2260
SELECT COUNT( DISTINCT - + 43 ) + 43 + - 6 AS col2, + 99 AS col2
----
38
99

skipif mysql # not compatible
query II rowsort label-2260
SELECT COUNT ( DISTINCT - + 43 ) + 43 + - 6 AS col2, + 99 AS col2
----
38
99

query I rowsort
SELECT DISTINCT 99 * + - 49 * - 13
----
63063

query II rowsort
SELECT ALL 58 * 30, 57 AS col1
----
1740
57

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

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

query I rowsort
SELECT ALL + 6 * + - 48 AS col1
----
-288

query II rowsort
SELECT - 58 AS col0, 18 AS col1
----
-58
18

query II rowsort
SELECT 69, - 39 AS col0
----
69
-39

query II rowsort
SELECT ALL 10, + NULLIF ( 19, - 10 ) * - 86 AS col2
----
10
-1634

query II rowsort
SELECT DISTINCT - 49 AS col1, + ( - 83 )
----
-49
-83

query I rowsort
SELECT - 54 * + 15 * - - 64 col0
----
-51840

onlyif mysql # aggregate syntax: 
query I rowsort label-2270
SELECT MAX( DISTINCT - 94 ) + + ( + MAX( ALL + 46 ) ) AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-2270
SELECT MAX ( DISTINCT - 94 ) + + ( + MAX ( ALL + 46 ) ) AS col0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-2271
SELECT ALL + COALESCE ( + 49, + COUNT( * ), + 67 * - 59 * - 2 )
----
49

skipif mysql # not compatible
query I rowsort label-2271
SELECT ALL + COALESCE ( + 49, + COUNT ( * ), + 67 * - 59 * - 2 )
----
49

query II rowsort
SELECT - + 54 AS col1, + 47 AS col0
----
-54
47

query I rowsort
SELECT 98 * 12 + - 84 AS col1
----
1092

onlyif mysql # DIV for integer division: 
query II rowsort label-2274
SELECT - 37 + + 83 AS col2, 22 DIV + 21 AS col1
----
46
1

skipif mysql # not compatible
query II rowsort label-2274
SELECT - 37 + + 83 AS col2, 22 / + 21 AS col1
----
46
1

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2276
SELECT - + NULLIF ( + 96, NULLIF ( - 34, MAX( 31 ) ) * - - COALESCE ( - - 64, + + NULLIF ( + 72, - 2 ), + MAX( ALL - + 70 ) * COUNT( DISTINCT - 32 ) + - 32 / 55 ) + CAST( NULL AS SIGNED ) / 72 ) AS col0
----
-96

skipif mysql # not compatible
query I rowsort label-2276
SELECT - + NULLIF ( + 96, NULLIF ( - 34, MAX ( 31 ) ) * - - COALESCE ( - - 64, + + NULLIF ( + 72, - 2 ), + MAX ( ALL - + 70 ) * COUNT ( DISTINCT - 32 ) + - 32 / 55 ) + CAST ( NULL AS INTEGER ) / 72 ) AS col0
----
-96

query I rowsort
SELECT ALL + 94 + - 80
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-2278
SELECT 47 * - - COUNT( * ) * - + 75
----
-3525

skipif mysql # not compatible
query I rowsort label-2278
SELECT 47 * - - COUNT ( * ) * - + 75
----
-3525

onlyif mysql # aggregate syntax: 
query I rowsort label-2279
SELECT DISTINCT + MAX( + CASE - 37 WHEN + + 92 THEN + 52 WHEN 41 THEN NULL END ) * - 41 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2279
SELECT DISTINCT + MAX ( + CASE - 37 WHEN + + 92 THEN + 52 WHEN 41 THEN NULL END ) * - 41 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2280
SELECT - ( COUNT( * ) ) - - 4 * 82
----
327

skipif mysql # not compatible
query I rowsort label-2280
SELECT - ( COUNT ( * ) ) - - 4 * 82
----
327

onlyif mysql # aggregate syntax: 
query II rowsort label-2281
SELECT COUNT( * ) AS col2, - ( 88 ) * - 18 + - - 67 + + ( NULLIF ( ( 11 ), + 87 ) ) - + COALESCE ( - 61, + ( + 86 ) * 16, CASE 12 WHEN 46 / COUNT( * ) THEN COUNT( * ) - COALESCE ( + 74, 52 ) WHEN + 25 - 63 THEN COUNT( * ) + + SUM( ALL ( 51 ) ) * - 18 WHEN - 8 / CASE WHEN MIN( DISTINCT 1 ) / + ( 57 + - 89 * 90 ) BETWEEN ( 44 * 61 + + 67 ) AND ( NULL ) THEN - 15 WHEN NOT ( COALESCE ( 54, 76, 49 + NULLIF ( 31 + + 5, CASE - COUNT( * ) WHEN + 62 THEN NULL ELSE - 15 END ) ) + - COUNT( * ) ) BETWEEN 36 + 47 AND NULLIF ( + COUNT( * ), 56 ) * + 17 + + 84 THEN NULL ELSE NULL END THEN NULL END + - MIN( DISTINCT + 63 ) ) * 13
----
1
2455

skipif mysql # not compatible
query II rowsort label-2281
SELECT COUNT ( * ) AS col2, - ( 88 ) * - 18 + - - 67 + + ( NULLIF ( ( 11 ), + 87 ) ) - + COALESCE ( - 61, + ( + 86 ) * 16, CASE 12 WHEN 46 / COUNT ( * ) THEN COUNT ( * ) - COALESCE ( + 74, 52 ) WHEN + 25 - 63 THEN COUNT ( * ) + + SUM ( ALL ( 51 ) ) * - 18 WHEN - 8 / CASE WHEN MIN ( DISTINCT 1 ) / + ( 57 + - 89 * 90 ) BETWEEN ( 44 * 61 + + 67 ) AND ( NULL ) THEN - 15 WHEN NOT ( COALESCE ( 54, 76, 49 + NULLIF ( 31 + + 5, CASE - COUNT ( * ) WHEN + 62 THEN NULL ELSE - 15 END ) ) + - COUNT ( * ) ) BETWEEN 36 + 47 AND NULLIF ( + COUNT ( * ), 56 ) * + 17 + + 84 THEN NULL ELSE NULL END THEN NULL END + - MIN ( DISTINCT + 63 ) ) * 13
----
1
2455

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2282
SELECT 46 + + 11 - + 33 * CAST( NULL AS SIGNED ) + 74 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2282
SELECT 46 + + 11 - + 33 * CAST ( NULL AS INTEGER ) + 74 AS col2
----
NULL

query I rowsort
SELECT - 53 * 73 * + 17
----
-65773

onlyif mysql # aggregate syntax: 
query I rowsort label-2284
SELECT + ( + + SUM( + + 36 ) ) + + 59 * + COUNT( * ) + - - COUNT( * ) + - - 36 AS col1
----
132

skipif mysql # not compatible
query I rowsort label-2284
SELECT + ( + + SUM ( + + 36 ) ) + + 59 * + COUNT ( * ) + - - COUNT ( * ) + - - 36 AS col1
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-2285
SELECT COUNT( * ) * - 54 * + 13 * - 73 * + + 32 AS col2
----
1639872

skipif mysql # not compatible
query I rowsort label-2285
SELECT COUNT ( * ) * - 54 * + 13 * - 73 * + + 32 AS col2
----
1639872

onlyif mysql # DIV for integer division: 
query I rowsort label-2286
SELECT - 74 DIV 99 + 13 AS col1
----
13

skipif mysql # not compatible
query I rowsort label-2286
SELECT - 74 / 99 + 13 AS col1
----
13

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2287
SELECT ALL - ( 41 ) AS col2, 77 / - + CAST( + 6 AS DECIMAL ) / COUNT( 69 ) / ( + COUNT( * ) ) - - MAX( DISTINCT - - 71 ) - + 50 * + - ( 53 ) * + + 27 - + + 6 + - CASE + 82 WHEN - COUNT( * ) THEN + 83 / 54 END AS col1
----
-41
NULL

skipif mysql # not compatible
query II rowsort label-2287
SELECT ALL - ( 41 ) AS col2, 77 / - + CAST ( + 6 AS REAL ) / COUNT ( 69 ) / ( + COUNT ( * ) ) - - MAX ( DISTINCT - - 71 ) - + 50 * + - ( 53 ) * + + 27 - + + 6 + - CASE + 82 WHEN - COUNT ( * ) THEN + 83 / 54 END AS col1
----
-41
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-2288
SELECT - 77 DIV - COUNT( - 30 ) - 52 + SUM( + 58 ) + - 9 AS col1, COUNT( * ) + 82 + - 33 + - 0 + 21 * 77 AS col0, - 37 + - - 71 AS col2
----
74
1667
34

skipif mysql # not compatible
query III rowsort label-2288
SELECT - 77 / - COUNT ( - 30 ) - 52 + SUM ( + 58 ) + - 9 AS col1, COUNT ( * ) + 82 + - 33 + - 0 + 21 * 77 AS col0, - 37 + - - 71 AS col2
----
74
1667
34

query I rowsort
SELECT DISTINCT + 19 * - 33 AS col2
----
-627

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

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

query II rowsort
SELECT 68 * + 94, + 33 * + 5 * + 18 AS col2
----
6392
2970

query I rowsort
SELECT 74 + + 43 AS col0
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-2293
SELECT NULLIF ( + 42, + 48 ) * + 56 * - COUNT( * ) * + + COUNT( 94 ) - + 67 + - ( + 39 ) + 63
----
-2395

skipif mysql # not compatible
query I rowsort label-2293
SELECT NULLIF ( + 42, + 48 ) * + 56 * - COUNT ( * ) * + + COUNT ( 94 ) - + 67 + - ( + 39 ) + 63
----
-2395

query I rowsort
SELECT DISTINCT + 19 * 95 * - 47
----
-84835

onlyif mysql # aggregate syntax: 
query I rowsort label-2295
SELECT ALL 70 * COALESCE ( - 57, - 75, - NULLIF ( - 16, + - 0 / + 83 + ( COUNT( * ) ) + + AVG ( DISTINCT + ( - 2 ) ) * 50 / + 53 * 82 * - - ( 30 ) ) )
----
-3990

skipif mysql # not compatible
query I rowsort label-2295
SELECT ALL 70 * COALESCE ( - 57, - 75, - NULLIF ( - 16, + - 0 / + 83 + ( COUNT ( * ) ) + + AVG ( DISTINCT + ( - 2 ) ) * 50 / + 53 * 82 * - - ( 30 ) ) )
----
-3990

onlyif mysql # aggregate syntax: 
query I rowsort label-2296
SELECT DISTINCT + 20 * + + NULLIF ( - 27, - 55 + COUNT( * ) ) col0
----
-540

skipif mysql # not compatible
query I rowsort label-2296
SELECT DISTINCT + 20 * + + NULLIF ( - 27, - 55 + COUNT ( * ) ) col0
----
-540

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2297
SELECT ALL - COALESCE ( - + 66, - 60, + CASE + 56 WHEN + 42 - + 1 * - COUNT( * ) THEN - - 30 DIV - 54 DIV + CASE 38 WHEN - MIN( - 5 ) + + + COUNT( * ) THEN 35 * - 96 WHEN + 28 THEN NULL ELSE + 96 END + - 3 ELSE - 9 END DIV 92 ) AS col2
----
66

skipif mysql # not compatible
query I rowsort label-2297
SELECT ALL - COALESCE ( - + 66, - 60, + CASE + 56 WHEN + 42 - + 1 * - COUNT ( * ) THEN - - 30 / - 54 / + CASE 38 WHEN - MIN ( - 5 ) + + + COUNT ( * ) THEN 35 * - 96 WHEN + 28 THEN NULL ELSE + 96 END + - 3 ELSE - 9 END / 92 ) AS col2
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-2298
SELECT ALL + 75 DIV 27
----
2

skipif mysql # not compatible
query I rowsort label-2298
SELECT ALL + 75 / 27
----
2

query II rowsort
SELECT ALL - 2 + - + 26 AS col1, ( + 55 ) AS col2
----
-28
55

query I rowsort
SELECT + 53 col0
----
53

query II rowsort
SELECT ALL - NULLIF ( - - 85, - - 92 ), 7 * 48 * + 9 AS col1
----
-85
3024

query I rowsort
SELECT 73 * - - 11 * + 1 col2
----
803

query I rowsort
SELECT + 61 - + 88
----
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-2304
SELECT + 35 DIV + 53 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2304
SELECT + 35 / + 53 AS col0
----
0

query I rowsort
SELECT ALL + 65 + 86 AS col1
----
151

query I rowsort
SELECT - COALESCE ( + 18, - 83, 26 * + + 21 + - - 45 + - - 99 ) * - + 59 - 53 + 41 + 91 col0
----
1141

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2307
SELECT ALL - + 31 + CASE 23 WHEN - - CAST( NULL AS SIGNED ) THEN NULL WHEN COUNT( * ) * - SUM( ALL 46 ) * 87 THEN - 25 ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2307
SELECT ALL - + 31 + CASE 23 WHEN - - CAST ( NULL AS INTEGER ) THEN NULL WHEN COUNT ( * ) * - SUM ( ALL 46 ) * 87 THEN - 25 ELSE NULL END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2308
SELECT DISTINCT - NULLIF ( + + COUNT( * ), + 12 * - + COUNT( * ) ) + - - ( + - 85 ) - - 12
----
-74

skipif mysql # not compatible
query I rowsort label-2308
SELECT DISTINCT - NULLIF ( + + COUNT ( * ), + 12 * - + COUNT ( * ) ) + - - ( + - 85 ) - - 12
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-2309
SELECT DISTINCT - CASE + COUNT( * ) WHEN - ( COUNT( * ) ) * + 60 * 62 THEN - 34 WHEN + 78 THEN NULL ELSE + 94 END
----
-94

skipif mysql # not compatible
query I rowsort label-2309
SELECT DISTINCT - CASE + COUNT ( * ) WHEN - ( COUNT ( * ) ) * + 60 * 62 THEN - 34 WHEN + 78 THEN NULL ELSE + 94 END
----
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-2310
SELECT ALL - + 56 + 23 DIV - 52 AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-2310
SELECT ALL - + 56 + 23 / - 52 AS col1
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-2311
SELECT 41 + - + COUNT( * ) - + 62
----
-22

skipif mysql # not compatible
query I rowsort label-2311
SELECT 41 + - + COUNT ( * ) - + 62
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2312
SELECT 84 - + + CAST( NULL AS SIGNED ) + + SUM( DISTINCT 16 ) * - - COALESCE ( + 67, - 88 * + + 15, - 60 * CAST( NULL AS SIGNED ) / + ( - 73 ) ) + - 53 * - 52 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2312
SELECT 84 - + + CAST ( NULL AS INTEGER ) + + SUM ( DISTINCT 16 ) * - - COALESCE ( + 67, - 88 * + + 15, - 60 * CAST ( NULL AS INTEGER ) / + ( - 73 ) ) + - 53 * - 52 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2313
SELECT ALL CASE COUNT( * ) WHEN + + COALESCE ( - + 8, - + 89 * - - 45, + - COUNT( * ), + 45, 26 ) THEN - 13 / - + 83 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2313
SELECT ALL CASE COUNT ( * ) WHEN + + COALESCE ( - + 8, - + 89 * - - 45, + - COUNT ( * ), + 45, 26 ) THEN - 13 / - + 83 END
----
NULL

query I rowsort
SELECT ( + + 99 ) - - - NULLIF ( 81, + 47 ) col1
----
18

query I rowsort
SELECT ( 10 )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-2316
SELECT - - MIN( 10 )
----
10

skipif mysql # not compatible
query I rowsort label-2316
SELECT - - MIN ( 10 )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-2317
SELECT ( + 24 ) * COUNT( + ( + - 83 ) ) * - 34 * 45 - + - 32 + - 49 + + 27 AS col1
----
-36710

skipif mysql # not compatible
query I rowsort label-2317
SELECT ( + 24 ) * COUNT ( + ( + - 83 ) ) * - 34 * 45 - + - 32 + - 49 + + 27 AS col1
----
-36710

query I rowsort
SELECT - 60 * + + 32 AS col2
----
-1920

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2320
SELECT DISTINCT + COUNT( ALL - 10 )
----
1

skipif mysql # not compatible
query I rowsort label-2320
SELECT DISTINCT + COUNT ( ALL - 10 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2321
SELECT ALL COUNT( ALL + - 78 ) * + 44 * + - MIN( DISTINCT - 41 ) + - COUNT( * ) + + 73 * - COUNT( * ) + - 95 * 41 AS col2
----
-2165

skipif mysql # not compatible
query I rowsort label-2321
SELECT ALL COUNT ( ALL + - 78 ) * + 44 * + - MIN ( DISTINCT - 41 ) + - COUNT ( * ) + + 73 * - COUNT ( * ) + - 95 * 41 AS col2
----
-2165

onlyif mysql # aggregate syntax: 
query I rowsort label-2322
SELECT 49 * CASE - 1 WHEN - + 18 + - COUNT( * ) THEN 33 * - 97 + - 75 + + + 76 + 9 * - ( 50 ) / - 9 * - 67 / 22 WHEN - - COUNT( * ) THEN 3 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2322
SELECT 49 * CASE - 1 WHEN - + 18 + - COUNT ( * ) THEN 33 * - 97 + - 75 + + + 76 + 9 * - ( 50 ) / - 9 * - 67 / 22 WHEN - - COUNT ( * ) THEN 3 END
----
NULL

query I rowsort
SELECT ALL 36 * + 80
----
2880

onlyif mysql # DIV for integer division: 
query I rowsort label-2324
SELECT - 72 DIV - + 23 + + 68 AS col2
----
71

skipif mysql # not compatible
query I rowsort label-2324
SELECT - 72 / - + 23 + + 68 AS col2
----
71

query I rowsort
SELECT ALL 89 * ( - 2 ) AS col1
----
-178

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2326
SELECT - ( + 58 ) + + 81 * + CASE WHEN + COUNT( * ) <> + 52 THEN - COUNT( DISTINCT - 54 ) ELSE 32 END * - - CAST( + ( + - 48 ) AS SIGNED )
----
3830

skipif mysql # not compatible
query I rowsort label-2326
SELECT - ( + 58 ) + + 81 * + CASE WHEN + COUNT ( * ) <> + 52 THEN - COUNT ( DISTINCT - 54 ) ELSE 32 END * - - CAST ( + ( + - 48 ) AS INTEGER )
----
3830

onlyif mysql # aggregate syntax: 
query II rowsort label-2327
SELECT + 77 col2, 80 + + - MAX( - 23 ) + - - 26 + + 23 * 38 * + 8
----
77
7121

skipif mysql # not compatible
query II rowsort label-2327
SELECT + 77 col2, 80 + + - MAX ( - 23 ) + - - 26 + + 23 * 38 * + 8
----
77
7121

onlyif mysql # aggregate syntax: 
query II rowsort label-2328
SELECT ALL + COUNT( * ) AS col0, - 55 * - 85 AS col2
----
1
4675

skipif mysql # not compatible
query II rowsort label-2328
SELECT ALL + COUNT ( * ) AS col0, - 55 * - 85 AS col2
----
1
4675

onlyif mysql # DIV for integer division: 
query I rowsort label-2329
SELECT + 47 DIV + 63 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2329
SELECT + 47 / + 63 AS col2
----
0

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

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

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

skipif mysql # not compatible
query I rowsort label-2331
SELECT DISTINCT 21 * - - COUNT ( * ) + + COUNT ( * ) AS col0
----
22

onlyif mysql # aggregate syntax: 
query II rowsort label-2332
SELECT - 10 - - 93 + - 56 + 5 * - 71 + + COUNT( * ), 20 col1
----
-327
20

skipif mysql # not compatible
query II rowsort label-2332
SELECT - 10 - - 93 + - 56 + 5 * - 71 + + COUNT ( * ), 20 col1
----
-327
20

query I rowsort
SELECT ALL 16 * + + 40 AS col1
----
640

onlyif mysql # aggregate syntax: 
query I rowsort label-2334
SELECT MIN( DISTINCT - 0 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-2334
SELECT MIN ( DISTINCT - 0 ) col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2335
SELECT ALL + 58 * + - COUNT( * ) + + 16 + - COUNT( * ) AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-2335
SELECT ALL + 58 * + - COUNT ( * ) + + 16 + - COUNT ( * ) AS col0
----
-43

query II rowsort
SELECT + 45 + 35 * + 92 col2, + 97
----
3265
97

query II rowsort
SELECT + + 81, + ( 20 ) * + - 65 + - + 48 + 92 * - ( + 14 ) * 51 AS col2
----
81
-67036

query I rowsort
SELECT ALL - + 3 + - + 96
----
-99

query I rowsort
SELECT ALL + 34 + - 11
----
23

query I rowsort
SELECT DISTINCT - 76 + - 47 AS col1
----
-123

onlyif mysql # DIV for integer division: 
query I rowsort label-2341
SELECT - + 53 DIV - 75 - 52 - ( 38 ) - - ( + 29 ) * + 67 * - - 28 AS col1
----
54314

skipif mysql # not compatible
query I rowsort label-2341
SELECT - + 53 / - 75 - 52 - ( 38 ) - - ( + 29 ) * + 67 * - - 28 AS col1
----
54314

query I rowsort
SELECT - - 48 + - 7 + + 68 AS col1
----
109

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2343
SELECT ALL - CAST( NULL AS SIGNED ) / - + CASE - MAX( 82 ) WHEN ( - - 93 ) THEN - - 79 + 55 END * + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2343
SELECT ALL - CAST ( NULL AS INTEGER ) / - + CASE - MAX ( 82 ) WHEN ( - - 93 ) THEN - - 79 + 55 END * + COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2344
SELECT MIN( DISTINCT 17 ) col0
----
17

skipif mysql # not compatible
query I rowsort label-2344
SELECT MIN ( DISTINCT 17 ) col0
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2345
SELECT - + 73 + - NULLIF ( 52, NULLIF ( - + COUNT( * ), + 47 - + 0 ) DIV + 61 ) AS col0, 4 DIV COALESCE ( + 21, - NULLIF ( + - 53, - + COUNT( * ) * - 67 + + 36 ) - + - 24 DIV CAST( 36 AS SIGNED ), + 74 * 2 ) + + 48 DIV 42 AS col0
----
-125
1

skipif mysql # not compatible
query II rowsort label-2345
SELECT - + 73 + - NULLIF ( 52, NULLIF ( - + COUNT ( * ), + 47 - + 0 ) / + 61 ) AS col0, 4 / COALESCE ( + 21, - NULLIF ( + - 53, - + COUNT ( * ) * - 67 + + 36 ) - + - 24 / CAST ( 36 AS INTEGER ), + 74 * 2 ) + + 48 / 42 AS col0
----
-125
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2346
SELECT - - 86 AS col0, 15 - COUNT( * ) AS col1
----
86
14

skipif mysql # not compatible
query II rowsort label-2346
SELECT - - 86 AS col0, 15 - COUNT ( * ) AS col1
----
86
14

onlyif mysql # aggregate syntax: 
query I rowsort label-2347
SELECT ALL - 93 - - - 64 + COUNT( * )
----
-156

skipif mysql # not compatible
query I rowsort label-2347
SELECT ALL - 93 - - - 64 + COUNT ( * )
----
-156

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

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

query II rowsort
SELECT - 77 AS col0, - 82
----
-77
-82

onlyif mysql # aggregate syntax: 
query II rowsort label-2350
SELECT ALL + 2 * - MAX( DISTINCT - + 15 ) + - COUNT( * ) col0, - ( ( + - 15 ) ) * COUNT( * ) * 53 * - NULLIF ( COALESCE ( 38, + 22 + - 40, + 57 ), + 36 - + + ( - 66 ) + + 5 ) AS col2
----
29
-30210

skipif mysql # not compatible
query II rowsort label-2350
SELECT ALL + 2 * - MAX ( DISTINCT - + 15 ) + - COUNT ( * ) col0, - ( ( + - 15 ) ) * COUNT ( * ) * 53 * - NULLIF ( COALESCE ( 38, + 22 + - 40, + 57 ), + 36 - + + ( - 66 ) + + 5 ) AS col2
----
29
-30210

query I rowsort
SELECT - - 96 + + 57 - 19 + - + 56
----
78

query I rowsort
SELECT ALL + NULLIF ( + 26, + - 30 ) * + ( - - 27 ) col1
----
702

query I rowsort
SELECT - + 21 * 64 * - 59
----
79296

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

skipif mysql # not compatible
query I rowsort label-2354
SELECT + SUM ( - + 46 )
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-2355
SELECT ALL - - NULLIF ( - 33, + 59 ) * + ( COALESCE ( COUNT( * ), + 70 ) ) + - 44
----
-77

skipif mysql # not compatible
query I rowsort label-2355
SELECT ALL - - NULLIF ( - 33, + 59 ) * + ( COALESCE ( COUNT ( * ), + 70 ) ) + - 44
----
-77

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2357
SELECT + NULLIF ( - 91, + SUM( 66 ) ) + + + CAST( - 47 AS SIGNED ) + 28 AS col2, 41 * 96 + 74 - + - 6 AS col0
----
-110
4016

skipif mysql # not compatible
query II rowsort label-2357
SELECT + NULLIF ( - 91, + SUM ( 66 ) ) + + + CAST ( - 47 AS INTEGER ) + 28 AS col2, 41 * 96 + 74 - + - 6 AS col0
----
-110
4016

onlyif mysql # DIV for integer division: 
query I rowsort label-2358
SELECT - COALESCE ( + 16, + - COALESCE ( + 82, - COALESCE ( - + 63, + + 64 DIV - 60 + + 79 * + - 41 ), + + 10 ) + 10, 97 + - CASE + ( + + 24 ) WHEN - + 92 * - - 66 * 28 THEN NULL ELSE - 36 DIV 53 END )
----
-16

skipif mysql # not compatible
query I rowsort label-2358
SELECT - COALESCE ( + 16, + - COALESCE ( + 82, - COALESCE ( - + 63, + + 64 / - 60 + + 79 * + - 41 ), + + 10 ) + 10, 97 + - CASE + ( + + 24 ) WHEN - + 92 * - - 66 * 28 THEN NULL ELSE - 36 / 53 END )
----
-16

query II rowsort
SELECT + 77 + 9 col1, 71 AS col2
----
86
71

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

query I rowsort
SELECT ALL 35 * - 80
----
-2800

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2362
SELECT ALL 74 DIV - - COUNT( * ) + - 98 * + 45, - ( ( 14 ) ) AS col2
----
-4336
-14

skipif mysql # not compatible
query II rowsort label-2362
SELECT ALL 74 / - - COUNT ( * ) + - 98 * + 45, - ( ( 14 ) ) AS col2
----
-4336
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2363
SELECT ALL - 40 DIV + 64 + - COUNT( * ) * - 29 AS col1, - 56
----
29
-56

skipif mysql # not compatible
query II rowsort label-2363
SELECT ALL - 40 / + 64 + - COUNT ( * ) * - 29 AS col1, - 56
----
29
-56

query II rowsort
SELECT + ( + + 17 ) AS col2, 34 + - 83 * + 12
----
17
-962

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2365
SELECT ALL CAST( - 53 AS SIGNED ) DIV 83 + - + 69
----
-69

skipif mysql # not compatible
query I rowsort label-2365
SELECT ALL CAST ( - 53 AS INTEGER ) / 83 + - + 69
----
-69

query I rowsort
SELECT ( - + COALESCE ( + 49, - 14 ) ) AS col1
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2367
SELECT + 87 + + - 49 + 77 + + - CAST( NULL AS SIGNED ) AS col1, 29 AS col2
----
NULL
29

skipif mysql # not compatible
query II rowsort label-2367
SELECT + 87 + + - 49 + 77 + + - CAST ( NULL AS INTEGER ) AS col1, 29 AS col2
----
NULL
29

onlyif mysql # aggregate syntax: 
query I rowsort label-2368
SELECT ( + SUM( - + 92 ) ) AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-2368
SELECT ( + SUM ( - + 92 ) ) AS col0
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2369
SELECT DISTINCT ( - 74 ) * + - CASE WHEN NOT ( NOT + CAST( NULL AS SIGNED ) IS NULL ) THEN NULL ELSE ( 24 ) / + + CAST( 50 AS SIGNED ) + - + AVG ( + 15 ) END + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2369
SELECT DISTINCT ( - 74 ) * + - CASE WHEN NOT ( NOT + CAST ( NULL AS INTEGER ) IS NULL ) THEN NULL ELSE ( 24 ) / + + CAST ( 50 AS INTEGER ) + - + AVG ( + 15 ) END + - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2370
SELECT ALL 64 * - 75 * 24 * - COUNT( * ) + - 67
----
115133

skipif mysql # not compatible
query I rowsort label-2370
SELECT ALL 64 * - 75 * 24 * - COUNT ( * ) + - 67
----
115133

query I rowsort
SELECT + - 83 + 59
----
-24

onlyif mysql # aggregate syntax: 
query II rowsort label-2372
SELECT ALL + NULLIF ( - 72, - 6 ) * + 73, + 50 * + - CASE + 69 WHEN + 36 THEN - 50 WHEN COALESCE ( + COUNT( * ), + + 33, ( + - COUNT( * ) ) * + - 66 * + 0 + + - 14 ) * - ( + 37 ) THEN - NULLIF ( 83, 45 + 64 ) * - 27 WHEN 5 THEN COUNT( * ) END * - 4 AS col0
----
-5256
NULL

skipif mysql # not compatible
query II rowsort label-2372
SELECT ALL + NULLIF ( - 72, - 6 ) * + 73, + 50 * + - CASE + 69 WHEN + 36 THEN - 50 WHEN COALESCE ( + COUNT ( * ), + + 33, ( + - COUNT ( * ) ) * + - 66 * + 0 + + - 14 ) * - ( + 37 ) THEN - NULLIF ( 83, 45 + 64 ) * - 27 WHEN 5 THEN COUNT ( * ) END * - 4 AS col0
----
-5256
NULL

query I rowsort
SELECT + 36 + + 42
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-2374
SELECT - - COUNT( * ) - + MIN( - + 76 )
----
77

skipif mysql # not compatible
query I rowsort label-2374
SELECT - - COUNT ( * ) - + MIN ( - + 76 )
----
77

onlyif mysql # DIV for integer division: 
query II rowsort label-2375
SELECT DISTINCT 51 * - 10 AS col2, + ( + + 83 ) * 86 * + + 58 + 71 - - + 7 * - 71 DIV 70 * - ( + 31 ) + - + 29
----
-510
414263

skipif mysql # not compatible
query II rowsort label-2375
SELECT DISTINCT 51 * - 10 AS col2, + ( + + 83 ) * 86 * + + 58 + 71 - - + 7 * - 71 / 70 * - ( + 31 ) + - + 29
----
-510
414263

onlyif mysql # aggregate syntax: 
query I rowsort label-2376
SELECT - - 92 * - 12 * MAX( DISTINCT - - 46 )
----
-50784

skipif mysql # not compatible
query I rowsort label-2376
SELECT - - 92 * - 12 * MAX ( DISTINCT - - 46 )
----
-50784

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2377
SELECT - COALESCE ( + 69, + 98 ) DIV 36 * + CAST( + AVG ( ALL 25 ) AS SIGNED ) AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-2377
SELECT - COALESCE ( + 69, + 98 ) / 36 * + CAST ( + AVG ( ALL 25 ) AS INTEGER ) AS col1
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-2378
SELECT + COALESCE ( + 94, + 33 ) * - COUNT( DISTINCT 96 ) + ( - + 94 ) AS col0
----
-188

skipif mysql # not compatible
query I rowsort label-2378
SELECT + COALESCE ( + 94, + 33 ) * - COUNT ( DISTINCT 96 ) + ( - + 94 ) AS col0
----
-188

query I rowsort
SELECT 73 + - NULLIF ( 21, - 38 ) - ( + 24 )
----
28

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

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

query I rowsort
SELECT 42 + ( + 35 ) AS col1
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2382
SELECT 78 - + 77 + - CAST( - CASE - - COALESCE ( - CAST( - 56 AS SIGNED ), + + 59 * - 83, 17 * - + 86 + - + 28 ) WHEN - AVG ( + 54 ) THEN + 4 * + 35 + - 47 - + 29 + - CAST( + + 68 AS SIGNED ) WHEN - 41 + - SUM( 10 - + ( 51 ) * 51 ) THEN - 5 + ( - 93 + - CAST( NULL AS SIGNED ) ) ELSE 6 END AS SIGNED )
----
7

skipif mysql # not compatible
query I rowsort label-2382
SELECT 78 - + 77 + - CAST ( - CASE - - COALESCE ( - CAST ( - 56 AS INTEGER ), + + 59 * - 83, 17 * - + 86 + - + 28 ) WHEN - AVG ( + 54 ) THEN + 4 * + 35 + - 47 - + 29 + - CAST ( + + 68 AS INTEGER ) WHEN - 41 + - SUM ( 10 - + ( 51 ) * 51 ) THEN - 5 + ( - 93 + - CAST ( NULL AS INTEGER ) ) ELSE 6 END AS INTEGER )
----
7

query I rowsort
SELECT 87 + 85 AS col1
----
172

query I rowsort
SELECT DISTINCT + 88 + + + 93 AS col0
----
181

onlyif mysql # DIV for integer division: 
query I rowsort label-2385
SELECT DISTINCT - 33 + 30 + + 37 DIV + 89
----
-3

skipif mysql # not compatible
query I rowsort label-2385
SELECT DISTINCT - 33 + 30 + + 37 / + 89
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-2386
SELECT 74 DIV 30
----
2

skipif mysql # not compatible
query I rowsort label-2386
SELECT 74 / 30
----
2

query I rowsort
SELECT DISTINCT + 61 * - ( + ( - + 3 ) )
----
183

onlyif mysql # aggregate syntax: 
query I rowsort label-2388
SELECT ALL 29 + - - 97 + - COUNT( ALL + 81 )
----
125

skipif mysql # not compatible
query I rowsort label-2388
SELECT ALL 29 + - - 97 + - COUNT ( ALL + 81 )
----
125

query I rowsort
SELECT 73 + + - 44 * + + 26 AS col0
----
-1071

query I rowsort
SELECT 9 * - 82
----
-738

onlyif mysql # aggregate syntax: 
query I rowsort label-2391
SELECT ALL - MIN( - - 24 ) + - CASE + 72 WHEN + 33 THEN + 73 ELSE NULL END / + ( 35 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2391
SELECT ALL - MIN ( - - 24 ) + - CASE + 72 WHEN + 33 THEN + 73 ELSE NULL END / + ( 35 )
----
NULL

query II rowsort
SELECT + 49 AS col1, 42 + - - 63 AS col2
----
49
105

query I rowsort
SELECT ALL - 8 - + 44
----
-52

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

query I rowsort
SELECT + 54 + + - 40 * NULLIF ( 70, + 96 ) AS col1
----
-2746

onlyif mysql # aggregate syntax: 
query I rowsort label-2396
SELECT ALL 94 - - COUNT( * )
----
95

skipif mysql # not compatible
query I rowsort label-2396
SELECT ALL 94 - - COUNT ( * )
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-2397
SELECT - COUNT( - 79 ) - 66 col2
----
-67

skipif mysql # not compatible
query I rowsort label-2397
SELECT - COUNT ( - 79 ) - 66 col2
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-2398
SELECT DISTINCT ( + COUNT( * ) ) * 13 + + 18 * 14 col2
----
265

skipif mysql # not compatible
query I rowsort label-2398
SELECT DISTINCT ( + COUNT ( * ) ) * 13 + + 18 * 14 col2
----
265

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2399
SELECT 12 * + COALESCE ( - + 7, AVG ( - 16 ) * ( - + ( COALESCE ( + + 51, + - COALESCE ( 46, - CASE + - 2 WHEN + 63 * + ( + + 90 ) THEN - COUNT( * ) / + 19 * + 79 - + CAST( NULL AS SIGNED ) + - 49 * + 20 ELSE NULL END + 6 ) ) ) ) / SUM( 48 ) ) + ( 58 + - 60 * - CASE - 88 WHEN 16 - 84 THEN + MAX( + 15 ) END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2399
SELECT 12 * + COALESCE ( - + 7, AVG ( - 16 ) * ( - + ( COALESCE ( + + 51, + - COALESCE ( 46, - CASE + - 2 WHEN + 63 * + ( + + 90 ) THEN - COUNT ( * ) / + 19 * + 79 - + CAST ( NULL AS INTEGER ) + - 49 * + 20 ELSE NULL END + 6 ) ) ) ) / SUM ( 48 ) ) + ( 58 + - 60 * - CASE - 88 WHEN 16 - 84 THEN + MAX ( + 15 ) END ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2400
SELECT 90 + - CAST( - 49 AS SIGNED )
----
139

skipif mysql # not compatible
query I rowsort label-2400
SELECT 90 + - CAST ( - 49 AS INTEGER )
----
139

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2402
SELECT + 30 DIV - 3 AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-2402
SELECT + 30 / - 3 AS col2
----
-10

query I rowsort
SELECT - 4 + - 44
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2404
SELECT MIN( + CAST( NULL AS SIGNED ) ) + - 20 + - + 40 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2404
SELECT MIN ( + CAST ( NULL AS INTEGER ) ) + - 20 + - + 40 AS col0
----
NULL

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

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

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

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

query II rowsort
SELECT ALL + 10 * - + 59 - - + 90 AS col1, CASE + 1 WHEN + - 81 THEN + 57 ELSE + + 54 END + - 31
----
-500
23

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2409
SELECT 87 + + 16 + COUNT( * ) AS col1
----
104

skipif mysql # not compatible
query I rowsort label-2409
SELECT 87 + + 16 + COUNT ( * ) AS col1
----
104

query I rowsort
SELECT ALL + 74 + - 60 AS col0
----
14

query I rowsort
SELECT DISTINCT 71 + 65
----
136

query I rowsort
SELECT 77 * - 16 * 59 col1
----
-72688

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2413
SELECT - 73 AS col0, - CASE 74 WHEN - ( 33 ) THEN + 10 WHEN + CAST( NULL AS SIGNED ) + - + ( + + 65 ) THEN NULL ELSE - - 39 END + 32 * - 95 * + 17
----
-73
-51719

skipif mysql # not compatible
query II rowsort label-2413
SELECT - 73 AS col0, - CASE 74 WHEN - ( 33 ) THEN + 10 WHEN + CAST ( NULL AS INTEGER ) + - + ( + + 65 ) THEN NULL ELSE - - 39 END + 32 * - 95 * + 17
----
-73
-51719

query II rowsort
SELECT 16, + 91 AS col2
----
16
91

query I rowsort
SELECT DISTINCT + 57 + + - 4
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2416
SELECT CAST( + 28 AS SIGNED ) - + 32 AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-2416
SELECT CAST ( + 28 AS INTEGER ) - + 32 AS col2
----
-4

query I rowsort
SELECT 3 * + + 16 AS col1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-2418
SELECT - SUM( ALL - 73 ) AS col1
----
73

skipif mysql # not compatible
query I rowsort label-2418
SELECT - SUM ( ALL - 73 ) AS col1
----
73

query I rowsort
SELECT 9 + 23 * 51
----
1182

onlyif mysql # aggregate syntax: 
query I rowsort label-2420
SELECT 18 + - COUNT( DISTINCT + 28 ) + - + MIN( + 82 ) * 38
----
-3099

skipif mysql # not compatible
query I rowsort label-2420
SELECT 18 + - COUNT ( DISTINCT + 28 ) + - + MIN ( + 82 ) * 38
----
-3099

query I rowsort
SELECT 92 * 25
----
2300

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2422
SELECT ALL + COUNT( * ) * + + 70 DIV + + 92 col1
----
0

skipif mysql # not compatible
query I rowsort label-2422
SELECT ALL + COUNT ( * ) * + + 70 / + + 92 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2423
SELECT DISTINCT + 67 * + 91 * + - 58 * COUNT( * ) * + 11
----
-3889886

skipif mysql # not compatible
query I rowsort label-2423
SELECT DISTINCT + 67 * + 91 * + - 58 * COUNT ( * ) * + 11
----
-3889886

query I rowsort
SELECT ALL - 13 * + 98
----
-1274

onlyif mysql # DIV for integer division: 
query I rowsort label-2425
SELECT 24 DIV 68 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2425
SELECT 24 / 68 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2426
SELECT ALL + 46 * - 31 * + + COUNT( * ) + + - 87
----
-1513

skipif mysql # not compatible
query I rowsort label-2426
SELECT ALL + 46 * - 31 * + + COUNT ( * ) + + - 87
----
-1513

onlyif mysql # aggregate syntax: 
query I rowsort label-2427
SELECT 50 * - ( 55 ) * 44 - + COUNT( * )
----
-121001

skipif mysql # not compatible
query I rowsort label-2427
SELECT 50 * - ( 55 ) * 44 - + COUNT ( * )
----
-121001

query I rowsort
SELECT + 19 * - + 81 col1
----
-1539

query II rowsort
SELECT ALL - - 11 AS col0, 3
----
11
3

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

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

query II rowsort
SELECT ALL 94 * 85, - 53 * - 59 AS col2
----
7990
3127

query I rowsort
SELECT DISTINCT + 3 * + - 15 - - 68 AS col1
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-2433
SELECT + 82 DIV + 46 col1
----
1

skipif mysql # not compatible
query I rowsort label-2433
SELECT + 82 / + 46 col1
----
1

query I rowsort
SELECT ALL - ( 89 ) * 32 AS col1
----
-2848

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

skipif mysql # not compatible
query I rowsort label-2435
SELECT MIN ( + 97 )
----
97

query I rowsort
SELECT - + 90 + + 28 * + 41 AS col0
----
1058

query II rowsort
SELECT CASE + ( 79 ) WHEN - 63 - - 27 * + 50 THEN NULL ELSE - 56 * + 35 + + + 63 + 83 * - + 35 END AS col0, 65 AS col2
----
-4802
65

onlyif mysql # DIV for integer division: 
query I rowsort label-2438
SELECT + - 15 DIV + 10
----
-1

skipif mysql # not compatible
query I rowsort label-2438
SELECT + - 15 / + 10
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-2439
SELECT + - 9 DIV - - 1 AS col0, 96 * - 94 * 76
----
-9
-685824

skipif mysql # not compatible
query II rowsort label-2439
SELECT + - 9 / - - 1 AS col0, 96 * - 94 * 76
----
-9
-685824

onlyif mysql # aggregate syntax: 
query I rowsort label-2440
SELECT - NULLIF ( - - 62, COUNT( * ) ) * - COUNT( * ) - 59
----
3

skipif mysql # not compatible
query I rowsort label-2440
SELECT - NULLIF ( - - 62, COUNT ( * ) ) * - COUNT ( * ) - 59
----
3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2441
SELECT ALL + 15 + - COUNT( * ) AS col1, COUNT( * ) - - + CAST( NULL AS DECIMAL ) * - 96 AS col1
----
14
NULL

skipif mysql # not compatible
query II rowsort label-2441
SELECT ALL + 15 + - COUNT ( * ) AS col1, COUNT ( * ) - - + CAST ( NULL AS REAL ) * - 96 AS col1
----
14
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2442
SELECT + 0 + - 18 + + COUNT( * ) + + CAST( - + 22 AS SIGNED ) + - + 92 * - + 62 + 15 * - AVG ( 45 ) + - 16 * + CASE 22 WHEN - 22 * 74 THEN 82 END - - - 5 * - MIN( ALL - 70 ) * + 49 * + 9
----
NULL

skipif mysql # not compatible
query I rowsort label-2442
SELECT + 0 + - 18 + + COUNT ( * ) + + CAST ( - + 22 AS INTEGER ) + - + 92 * - + 62 + 15 * - AVG ( 45 ) + - 16 * + CASE 22 WHEN - 22 * 74 THEN 82 END - - - 5 * - MIN ( ALL - 70 ) * + 49 * + 9
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2443
SELECT ALL 82 + COALESCE ( - - 93, + NULLIF ( COUNT( - 21 ), - 23 ) )
----
175

skipif mysql # not compatible
query I rowsort label-2443
SELECT ALL 82 + COALESCE ( - - 93, + NULLIF ( COUNT ( - 21 ), - 23 ) )
----
175

onlyif mysql # aggregate syntax: 
query II rowsort label-2444
SELECT - SUM( 0 ), NULLIF ( + 8, 88 ) * + NULLIF ( CASE 9 WHEN + NULLIF ( 67, 71 ) + 77 THEN NULL WHEN - CASE + COUNT( * ) WHEN - + COUNT( * ) * 98 THEN + COUNT( * ) + + 36 END / + 3 THEN + 46 ELSE + 69 END, - 10 ) * 89 AS col0
----
0
49128

skipif mysql # not compatible
query II rowsort label-2444
SELECT - SUM ( 0 ), NULLIF ( + 8, 88 ) * + NULLIF ( CASE 9 WHEN + NULLIF ( 67, 71 ) + 77 THEN NULL WHEN - CASE + COUNT ( * ) WHEN - + COUNT ( * ) * 98 THEN + COUNT ( * ) + + 36 END / + 3 THEN + 46 ELSE + 69 END, - 10 ) * 89 AS col0
----
0
49128

query II rowsort
SELECT + 64 + + ( - - 65 ) + + 14 * - 43, + 42 + 0 AS col2
----
-473
42

query I rowsort
SELECT + 70 - - + 82
----
152

query I rowsort
SELECT DISTINCT 81 - + 80
----
1

query I rowsort
SELECT - COALESCE ( - - 44, 1 + - - 15 ) AS col2
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-2449
SELECT ALL COUNT( * ) * - - 13 col2
----
13

skipif mysql # not compatible
query I rowsort label-2449
SELECT ALL COUNT ( * ) * - - 13 col2
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-2450
SELECT DISTINCT SUM( 61 ) col2
----
61

skipif mysql # not compatible
query I rowsort label-2450
SELECT DISTINCT SUM ( 61 ) col2
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-2451
SELECT ALL COALESCE ( + 48, COUNT( * ), - - ( - + 3 ) )
----
48

skipif mysql # not compatible
query I rowsort label-2451
SELECT ALL COALESCE ( + 48, COUNT ( * ), - - ( - + 3 ) )
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-2452
SELECT + 75 DIV - 89 * - 3 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2452
SELECT + 75 / - 89 * - 3 AS col1
----
0

query II rowsort
SELECT - 80 * + + 43 AS col2, 99 + - 49 AS col0
----
-3440
50

onlyif mysql # aggregate syntax: 
query I rowsort label-2454
SELECT + + 95 + - 23 * COUNT( * ) col0
----
72

skipif mysql # not compatible
query I rowsort label-2454
SELECT + + 95 + - 23 * COUNT ( * ) col0
----
72

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

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

query I rowsort
SELECT - 72 * - 15 - + - ( + 83 ) col0
----
1163

query I rowsort
SELECT - - 70 * + 2 + - + 6 AS col1
----
134

onlyif mysql # DIV for integer division: 
query I rowsort label-2458
SELECT + 86 DIV + - 9 + 45 AS col0
----
36

skipif mysql # not compatible
query I rowsort label-2458
SELECT + 86 / + - 9 + 45 AS col0
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2459
SELECT DISTINCT - + 52 * CAST( NULL AS SIGNED ), 58 AS col2
----
NULL
58

skipif mysql # not compatible
query II rowsort label-2459
SELECT DISTINCT - + 52 * CAST ( NULL AS INTEGER ), 58 AS col2
----
NULL
58

onlyif mysql # DIV for integer division: 
query I rowsort label-2460
SELECT - + 94 DIV - 40 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-2460
SELECT - + 94 / - 40 AS col0
----
2

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2461
SELECT - + 88 + - CAST( NULL AS DECIMAL ) - - 39 * - 56 / 44 * - 98 * + 63 * ( - - 49 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2461
SELECT - + 88 + - CAST ( NULL AS REAL ) - - 39 * - 56 / 44 * - 98 * + 63 * ( - - 49 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2462
SELECT ALL - ( - CAST( COALESCE ( 54, COUNT( * ) + - ( - ( + 25 ) ) ) AS SIGNED ) ) * - - COUNT( * ) + 50
----
104

skipif mysql # not compatible
query I rowsort label-2462
SELECT ALL - ( - CAST ( COALESCE ( 54, COUNT ( * ) + - ( - ( + 25 ) ) ) AS INTEGER ) ) * - - COUNT ( * ) + 50
----
104

query I rowsort
SELECT - - 19 * - 20 AS col1
----
-380

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2464
SELECT DISTINCT + COALESCE ( + ( 4 ), + CAST( 67 AS SIGNED ) DIV + 31 )
----
4

skipif mysql # not compatible
query I rowsort label-2464
SELECT DISTINCT + COALESCE ( + ( 4 ), + CAST ( 67 AS INTEGER ) / + 31 )
----
4

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2466
SELECT ALL + 4 * - NULLIF ( + - 90, - 50 * - - 96 ) - - - COUNT( * ) + + - 93 * + + 5 - + - 8 - - 71
----
-27

skipif mysql # not compatible
query I rowsort label-2466
SELECT ALL + 4 * - NULLIF ( + - 90, - 50 * - - 96 ) - - - COUNT ( * ) + + - 93 * + + 5 - + - 8 - - 71
----
-27

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2468
SELECT - COUNT( * ) * 68 + + + 8 col2
----
-60

skipif mysql # not compatible
query I rowsort label-2468
SELECT - COUNT ( * ) * 68 + + + 8 col2
----
-60

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

query I rowsort
SELECT - 89 * - 2
----
178

query I rowsort
SELECT DISTINCT - 39 - + 9 + + 77
----
29

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2473
SELECT DISTINCT 35 * - COUNT( DISTINCT 93 ) * MIN( ALL - 33 )
----
1155

skipif mysql # not compatible
query I rowsort label-2473
SELECT DISTINCT 35 * - COUNT ( DISTINCT 93 ) * MIN ( ALL - 33 )
----
1155

onlyif mysql # aggregate syntax: 
query I rowsort label-2474
SELECT + 47 + - 28 * + 8 * - NULLIF ( - NULLIF ( - - 79, + 85 ), 2 - + + ( + + 14 ) + 72 ) + - + CASE - + 46 WHEN - 91 + - 42 * 17 THEN + 59 WHEN - COUNT( ALL + + 51 ) + - 5 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2474
SELECT + 47 + - 28 * + 8 * - NULLIF ( - NULLIF ( - - 79, + 85 ), 2 - + + ( + + 14 ) + 72 ) + - + CASE - + 46 WHEN - 91 + - 42 * 17 THEN + 59 WHEN - COUNT ( ALL + + 51 ) + - 5 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT - 58 * - 12
----
696

query I rowsort
SELECT + 64 * 51 AS col0
----
3264

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2477
SELECT + CAST( - 74 AS SIGNED ) + 29
----
-45

skipif mysql # not compatible
query I rowsort label-2477
SELECT + CAST ( - 74 AS INTEGER ) + 29
----
-45

query I rowsort
SELECT ALL - 21 - + - NULLIF ( + - 68, - 43 )
----
-89

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2481
SELECT - MIN( ALL - 75 ) - ( ( 35 ) ) AS col1
----
40

skipif mysql # not compatible
query I rowsort label-2481
SELECT - MIN ( ALL - 75 ) - ( ( 35 ) ) AS col1
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-2482
SELECT + 81 DIV 34
----
2

skipif mysql # not compatible
query I rowsort label-2482
SELECT + 81 / 34
----
2

query I rowsort
SELECT + 98 + + 94
----
192

onlyif mysql # DIV for integer division: 
query II rowsort label-2484
SELECT DISTINCT 51 AS col0, + ( + 36 ) DIV - 46 * + 36 AS col2
----
51
0

skipif mysql # not compatible
query II rowsort label-2484
SELECT DISTINCT 51 AS col0, + ( + 36 ) / - 46 * + 36 AS col2
----
51
0

query I rowsort
SELECT + 69 * - 68 AS col2
----
-4692

query I rowsort
SELECT + 74 + 9
----
83

query II rowsort
SELECT 19 AS col1, + 67 + - 57 * - 4 AS col1
----
19
295

query II rowsort
SELECT - - 75 AS col0, + 33 * + 95 col2
----
75
3135

onlyif mysql # aggregate syntax: 
query I rowsort label-2489
SELECT ALL 70 * + 33 * COUNT( * )
----
2310

skipif mysql # not compatible
query I rowsort label-2489
SELECT ALL 70 * + 33 * COUNT ( * )
----
2310

query I rowsort
SELECT + + 58 * + NULLIF ( + - ( + 65 ), + ( - 22 ) + - + ( 36 ) + + 76 - + - 69 ) AS col0
----
-3770

query I rowsort
SELECT - 71 * - + 72 - - + COALESCE ( + 22, - 58 * 80 )
----
5134

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

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

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

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

skipif mysql # not compatible
query I rowsort label-2494
SELECT COUNT ( * ) / - 11
----
0

query I rowsort
SELECT ALL + 3 + + 6
----
9

query I rowsort
SELECT + 76 * - + 63 + + ( + 46 ) AS col0
----
-4742

query I rowsort
SELECT + COALESCE ( + + 53, - + 90 ) AS col1
----
53

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2499
SELECT ALL 29 + - + CAST( 71 AS SIGNED ) AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-2499
SELECT ALL 29 + - + CAST ( 71 AS INTEGER ) AS col1
----
-42

query I rowsort
SELECT DISTINCT + 95 + 46 col0
----
141

query I rowsort
SELECT DISTINCT - 20 * 28 * + 30 col1
----
-16800

onlyif mysql # DIV for integer division: 
query I rowsort label-2502
SELECT ALL 0 DIV + + 2 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2502
SELECT ALL 0 / + + 2 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2503
SELECT ALL - 71 * 94 * - COUNT( * )
----
6674

skipif mysql # not compatible
query I rowsort label-2503
SELECT ALL - 71 * 94 * - COUNT ( * )
----
6674

query II rowsort
SELECT DISTINCT COALESCE ( - - 28, 73 * - 56 ) * 80 * + 54 AS col1, 50 AS col0
----
120960
50

query I rowsort
SELECT ALL + 27 * - 50 AS col0
----
-1350

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2506
SELECT 67 + 29 + + CAST( - COALESCE ( 53, + - MAX( 43 ), + - 48 / + COUNT( * ) + + + COUNT( DISTINCT + - 55 ) ) AS SIGNED ) AS col2
----
43

skipif mysql # not compatible
query I rowsort label-2506
SELECT 67 + 29 + + CAST ( - COALESCE ( 53, + - MAX ( 43 ), + - 48 / + COUNT ( * ) + + + COUNT ( DISTINCT + - 55 ) ) AS INTEGER ) AS col2
----
43

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

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

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

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

query I rowsort
SELECT 12 + + 30 * - 74
----
-2208

query I rowsort
SELECT 92 + + 94 AS col1
----
186

query I rowsort
SELECT 2 + 44 AS col2
----
46

query I rowsort
SELECT ALL - CASE 32 WHEN - - 90 THEN NULL WHEN + + 12 THEN 3 * + + 56 END * + 27
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2513
SELECT 8 * + 70 * + 65 * - ( - - NULLIF ( + 89, - CAST( + ( + - ( + MAX( 91 ) ) ) AS SIGNED ) ) ) AS col2
----
-3239600

skipif mysql # not compatible
query I rowsort label-2513
SELECT 8 * + 70 * + 65 * - ( - - NULLIF ( + 89, - CAST ( + ( + - ( + MAX ( 91 ) ) ) AS INTEGER ) ) ) AS col2
----
-3239600

query I rowsort
SELECT DISTINCT - ( 5 ) * - 15
----
75

query I rowsort
SELECT ALL 57 + - 2 col0
----
55

query I rowsort
SELECT 27 + + - 76 + - 76 AS col0
----
-125

query II rowsort
SELECT ALL + 91 * + - 54 AS col1, 88
----
-4914
88

query I rowsort
SELECT + 98 + 16 AS col2
----
114

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2519
SELECT ALL CAST( + 20 AS SIGNED ) AS col1, + 96 + - ( + 91 )
----
20
5

skipif mysql # not compatible
query II rowsort label-2519
SELECT ALL CAST ( + 20 AS INTEGER ) AS col1, + 96 + - ( + 91 )
----
20
5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2520
SELECT + 7 * 9 AS col2, - 56 * - CAST( NULL AS SIGNED )
----
63
NULL

skipif mysql # not compatible
query II rowsort label-2520
SELECT + 7 * 9 AS col2, - 56 * - CAST ( NULL AS INTEGER )
----
63
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2521
SELECT ALL - + 98 + 54 DIV + 88 + + - CASE - + 27 WHEN + 93 THEN NULL ELSE + 7 END * + 22 + - 55 * + - 54 AS col0
----
2718

skipif mysql # not compatible
query I rowsort label-2521
SELECT ALL - + 98 + 54 / + 88 + + - CASE - + 27 WHEN + 93 THEN NULL ELSE + 7 END * + 22 + - 55 * + - 54 AS col0
----
2718

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

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

query I rowsort
SELECT 70 + + 42 col0
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-2524
SELECT - 30 - + + COUNT( * ) + - 60
----
-91

skipif mysql # not compatible
query I rowsort label-2524
SELECT - 30 - + + COUNT ( * ) + - 60
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2525
SELECT ALL - - COALESCE ( - COUNT( * ), NULLIF ( - CAST( NULL AS SIGNED ), + 33 ), + 7 * CASE + - MIN( - 40 ) WHEN - 29 + 23 + - + 81 + NULLIF ( - 90, - - COALESCE ( + COUNT( * ), - COUNT( * ) + - COUNT( * ), + CAST( + 9 AS SIGNED ) + COALESCE ( + 39, - 4 / - 30 ) + - 90 * + ( 8 ) ) / 57 ) * CASE - 27 * 28 WHEN COUNT( * ) THEN + 40 * 91 END THEN + COUNT( * ) WHEN 87 + 72 THEN NULL END * - 30 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2525
SELECT ALL - - COALESCE ( - COUNT ( * ), NULLIF ( - CAST ( NULL AS INTEGER ), + 33 ), + 7 * CASE + - MIN ( - 40 ) WHEN - 29 + 23 + - + 81 + NULLIF ( - 90, - - COALESCE ( + COUNT ( * ), - COUNT ( * ) + - COUNT ( * ), + CAST ( + 9 AS INTEGER ) + COALESCE ( + 39, - 4 / - 30 ) + - 90 * + ( 8 ) ) / 57 ) * CASE - 27 * 28 WHEN COUNT ( * ) THEN + 40 * 91 END THEN + COUNT ( * ) WHEN 87 + 72 THEN NULL END * - 30 ) AS col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2526
SELECT - COUNT( * ) DIV + 56 + - - 31 AS col1
----
31

skipif mysql # not compatible
query I rowsort label-2526
SELECT - COUNT ( * ) / + 56 + - - 31 AS col1
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-2527
SELECT CASE MIN( DISTINCT - 47 ) WHEN + 79 + + - 27 THEN + 57 ELSE NULL END * + - 7 + 95 + 5 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2527
SELECT CASE MIN ( DISTINCT - 47 ) WHEN + 79 + + - 27 THEN + 57 ELSE NULL END * + - 7 + 95 + 5 col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2528
SELECT + - COUNT( * ) / ( + - 99 ) + CAST( NULL AS SIGNED ) + - + COALESCE ( 52, COUNT( * ), + 91 ) / - - 41 * + COUNT( * ) * - - 51 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2528
SELECT + - COUNT ( * ) / ( + - 99 ) + CAST ( NULL AS INTEGER ) + - + COALESCE ( 52, COUNT ( * ), + 91 ) / - - 41 * + COUNT ( * ) * - - 51 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2529
SELECT ALL 18 * - + 45 * - + 85 * - 32 - + + MIN( DISTINCT + 92 ) * - 69 + - + 69 AS col0
----
-2196921

skipif mysql # not compatible
query I rowsort label-2529
SELECT ALL 18 * - + 45 * - + 85 * - 32 - + + MIN ( DISTINCT + 92 ) * - 69 + - + 69 AS col0
----
-2196921

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2530
SELECT NULLIF ( - - 39, + + CASE + + 19 WHEN + COUNT( * ) / - 11 + + - ( ( - ( - 61 ) ) ) / ( 86 ) / 19 * - 24 * - AVG ( ALL - - 5 ) + ( - COALESCE ( - + 95, - ( + 77 ) ) ) * - COUNT( * ) / + 76 + COUNT( * ) + + ( - ( - 76 ) + 88 ) THEN NULL WHEN 65 + 68 / 14 THEN 30 * - COUNT( * ) WHEN 28 THEN NULL END * 69 - - CAST( NULL AS SIGNED ) ) col0
----
39

skipif mysql # not compatible
query I rowsort label-2530
SELECT NULLIF ( - - 39, + + CASE + + 19 WHEN + COUNT ( * ) / - 11 + + - ( ( - ( - 61 ) ) ) / ( 86 ) / 19 * - 24 * - AVG ( ALL - - 5 ) + ( - COALESCE ( - + 95, - ( + 77 ) ) ) * - COUNT ( * ) / + 76 + COUNT ( * ) + + ( - ( - 76 ) + 88 ) THEN NULL WHEN 65 + 68 / 14 THEN 30 * - COUNT ( * ) WHEN 28 THEN NULL END * 69 - - CAST ( NULL AS INTEGER ) ) col0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-2531
SELECT ALL - MAX( DISTINCT - - 56 ) + - 86 + - 68
----
-210

skipif mysql # not compatible
query I rowsort label-2531
SELECT ALL - MAX ( DISTINCT - - 56 ) + - 86 + - 68
----
-210

onlyif mysql # aggregate syntax: 
query I rowsort label-2532
SELECT 86 * ( + 28 ) + - COUNT( * ) * + 64 + - 33 AS col1
----
2311

skipif mysql # not compatible
query I rowsort label-2532
SELECT 86 * ( + 28 ) + - COUNT ( * ) * + 64 + - 33 AS col1
----
2311

query I rowsort
SELECT DISTINCT 49 * + 32
----
1568

query I rowsort
SELECT DISTINCT 89 * + 68 AS col2
----
6052

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2535
SELECT + 37 + NULLIF ( ( + 20 ), + CAST( - - 21 AS SIGNED ) + 39 + NULLIF ( 47, - CASE - 65 WHEN 49 THEN + 2 END ) / 38 - - 46 )
----
57

skipif mysql # not compatible
query I rowsort label-2535
SELECT + 37 + NULLIF ( ( + 20 ), + CAST ( - - 21 AS INTEGER ) + 39 + NULLIF ( 47, - CASE - 65 WHEN 49 THEN + 2 END ) / 38 - - 46 )
----
57

query I rowsort
SELECT ALL 7 * 61 * 0 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2537
SELECT DISTINCT + 98 - + - MIN( ALL - 18 )
----
80

skipif mysql # not compatible
query I rowsort label-2537
SELECT DISTINCT + 98 - + - MIN ( ALL - 18 )
----
80

query I rowsort
SELECT - 64 * + 25 AS col2
----
-1600

query I rowsort
SELECT ALL + 94 * + - 38 AS col2
----
-3572

query II rowsort
SELECT 87 AS col1, + 52 col0
----
87
52

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

skipif mysql # not compatible
query I rowsort label-2541
SELECT ALL - 21 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2542
SELECT ALL + ( + 28 ) * 68 * CAST( NULL AS SIGNED ) + + 40 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2542
SELECT ALL + ( + 28 ) * 68 * CAST ( NULL AS INTEGER ) + + 40 AS col0
----
NULL

query I rowsort
SELECT 12 * - + 80
----
-960

onlyif mysql # DIV for integer division: 
query I rowsort label-2544
SELECT 18 DIV - 78 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2544
SELECT 18 / - 78 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2545
SELECT COUNT( DISTINCT + 70 ) * + COALESCE ( - + 23, COUNT( * ) + 42, + 19 ) AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-2545
SELECT COUNT ( DISTINCT + 70 ) * + COALESCE ( - + 23, COUNT ( * ) + 42, + 19 ) AS col2
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2546
SELECT - 88, - 65 / - - 68 * - 51 * - - 69 * CASE 23 WHEN + 90 + + 30 * - + ( + AVG ( ALL + 83 ) ) THEN NULL WHEN 79 THEN - + 7 + + ( + - CAST( NULL AS SIGNED ) ) END * - 30 AS col0
----
-88
NULL

skipif mysql # not compatible
query II rowsort label-2546
SELECT - 88, - 65 / - - 68 * - 51 * - - 69 * CASE 23 WHEN + 90 + + 30 * - + ( + AVG ( ALL + 83 ) ) THEN NULL WHEN 79 THEN - + 7 + + ( + - CAST ( NULL AS INTEGER ) ) END * - 30 AS col0
----
-88
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2547
SELECT 43 DIV + - 92 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2547
SELECT 43 / + - 92 AS col1
----
0

query I rowsort
SELECT DISTINCT + ( - + 24 ) + 43 AS col2
----
19

query I rowsort
SELECT 53 * - 49 AS col2
----
-2597

onlyif mysql # aggregate syntax: 
query I rowsort label-2550
SELECT ALL + 31 + + - 98 + + - COUNT( * ) + - + 13 AS col0
----
-81

skipif mysql # not compatible
query I rowsort label-2550
SELECT ALL + 31 + + - 98 + + - COUNT ( * ) + - + 13 AS col0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-2551
SELECT DISTINCT COUNT( DISTINCT 77 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2551
SELECT DISTINCT COUNT ( DISTINCT 77 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2552
SELECT DISTINCT - MAX( ALL 62 ) + - NULLIF ( - + 89, + 4 ) + - 50
----
-23

skipif mysql # not compatible
query I rowsort label-2552
SELECT DISTINCT - MAX ( ALL 62 ) + - NULLIF ( - + 89, + 4 ) + - 50
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2553
SELECT DISTINCT - 89 + + + MAX( ALL + CAST( NULL AS SIGNED ) ) + + - 87 + - 4 * + - 59 - 49 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2553
SELECT DISTINCT - 89 + + + MAX ( ALL + CAST ( NULL AS INTEGER ) ) + + - 87 + - 4 * + - 59 - 49 AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2555
SELECT DISTINCT - NULLIF ( + 40, COUNT( * ) ) + + 42 * - 20, 5 AS col0
----
-880
5

skipif mysql # not compatible
query II rowsort label-2555
SELECT DISTINCT - NULLIF ( + 40, COUNT ( * ) ) + + 42 * - 20, 5 AS col0
----
-880
5

query II rowsort
SELECT - + ( + ( 32 ) ), - 55 AS col0
----
-32
-55

query I rowsort
SELECT ALL + 37 + 71 AS col0
----
108

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

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

query I rowsort
SELECT ALL + - 91 * - + 8 AS col1
----
728

onlyif mysql # DIV for integer division: 
query I rowsort label-2560
SELECT - 94 DIV - 11 + + 97 AS col2
----
105

skipif mysql # not compatible
query I rowsort label-2560
SELECT - 94 / - 11 + + 97 AS col2
----
105

onlyif mysql # DIV for integer division: 
query II rowsort label-2561
SELECT - 92, + 39 DIV - 93 * - 65 AS col0
----
-92
0

skipif mysql # not compatible
query II rowsort label-2561
SELECT - 92, + 39 / - 93 * - 65 AS col0
----
-92
0

query II rowsort
SELECT DISTINCT + ( + 80 ) * 57 AS col2, + 4 AS col2
----
4560
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2563
SELECT ALL + 20 * + CASE + + COALESCE ( - COUNT( * ), - NULLIF ( COUNT( + 86 ), 14 ) * - - 0 - + 20 - - 43, + COUNT( * ), COUNT( ALL + 94 ) / - 42 ) WHEN - 51 + 37 * + 85 + + 85 THEN - ( 7 ) - - - 42 * + + 65 END - AVG ( - 9 ) + - 93 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2563
SELECT ALL + 20 * + CASE + + COALESCE ( - COUNT ( * ), - NULLIF ( COUNT ( + 86 ), 14 ) * - - 0 - + 20 - - 43, + COUNT ( * ), COUNT ( ALL + 94 ) / - 42 ) WHEN - 51 + 37 * + 85 + + 85 THEN - ( 7 ) - - - 42 * + + 65 END - AVG ( - 9 ) + - 93 AS col1
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2565
SELECT DISTINCT + 77 * 21 + - - NULLIF ( - ( - 75 ), - 9 * - 52 ) - - CAST( NULL AS SIGNED ) + ( + 56 ) - - 58 * + 71 * - 88 * 79 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2565
SELECT DISTINCT + 77 * 21 + - - NULLIF ( - ( - 75 ), - 9 * - 52 ) - - CAST ( NULL AS INTEGER ) + ( + 56 ) - - 58 * + 71 * - 88 * 79 col0
----
NULL

query II rowsort
SELECT DISTINCT + + 14 AS col1, + ( - - 62 ) AS col0
----
14
62

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2569
SELECT + COALESCE ( - 39, + ( - - 4 ) - - COUNT( * ) ) * - + COUNT( * ) * 66 - 48 - 57 + - - 26 * + 59 + NULLIF ( - 49, + - 96 * - - 10 + - + ( - 95 ) ) col2
----
3954

skipif mysql # not compatible
query I rowsort label-2569
SELECT + COALESCE ( - 39, + ( - - 4 ) - - COUNT ( * ) ) * - + COUNT ( * ) * 66 - 48 - 57 + - - 26 * + 59 + NULLIF ( - 49, + - 96 * - - 10 + - + ( - 95 ) ) col2
----
3954

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2571
SELECT ALL COALESCE ( - COUNT( * ), - 62 ) * COUNT( DISTINCT - + 77 )
----
-1

skipif mysql # not compatible
query I rowsort label-2571
SELECT ALL COALESCE ( - COUNT ( * ), - 62 ) * COUNT ( DISTINCT - + 77 )
----
-1

query I rowsort
SELECT ALL 18 * - 22 AS col2
----
-396

onlyif mysql # aggregate syntax: 
query I rowsort label-2573
SELECT + NULLIF ( + 30, 94 / + + 55 * - 4 + SUM( + - 22 ) )
----
30

skipif mysql # not compatible
query I rowsort label-2573
SELECT + NULLIF ( + 30, 94 / + + 55 * - 4 + SUM ( + - 22 ) )
----
30

query I rowsort
SELECT - 63 * - 1 - CASE - 64 WHEN - 13 THEN - 0 END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2575
SELECT + CAST( - 51 AS SIGNED ) * 14
----
-714

skipif mysql # not compatible
query I rowsort label-2575
SELECT + CAST ( - 51 AS INTEGER ) * 14
----
-714

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2577
SELECT MAX( - + 97 ) AS col0
----
-97

skipif mysql # not compatible
query I rowsort label-2577
SELECT MAX ( - + 97 ) AS col0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2578
SELECT DISTINCT + 12 * + 33 + 85 + - + COUNT( * )
----
480

skipif mysql # not compatible
query I rowsort label-2578
SELECT DISTINCT + 12 * + 33 + 85 + - + COUNT ( * )
----
480

query II rowsort
SELECT ALL - NULLIF ( - 7, - ( - 16 ) ) * 97 + + + 88 AS col2, + 85 * + 86 * + + 23
----
767
168130

onlyif mysql # aggregate syntax: 
query I rowsort label-2580
SELECT - CASE 32 WHEN + 30 THEN COUNT( * ) * - + COALESCE ( ( - 40 ), + 32 ) * + - 61 WHEN 63 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2580
SELECT - CASE 32 WHEN + 30 THEN COUNT ( * ) * - + COALESCE ( ( - 40 ), + 32 ) * + - 61 WHEN 63 THEN NULL END
----
NULL

query I rowsort
SELECT DISTINCT 95 col2
----
95

query I rowsort
SELECT ALL + 36 + + 62 + - 73 + - 54 * 86
----
-4619

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2583
SELECT ALL CAST( NULL AS SIGNED ) + + 32 + - - 53 * 19 * - 34 * + - 56 / + NULLIF ( - MIN( 25 ), - MIN( DISTINCT + + ( - 79 ) ) / - 89 * + 38 + 60 * - + 56 ) * - CASE - ( - + 97 ) WHEN 46 - - + 3 * - 16 * - 14 THEN NULL ELSE - 66 * NULLIF ( - - COALESCE ( + CASE 56 WHEN - 38 + - 78 / AVG ( 28 ) THEN NULL ELSE + 75 - MAX( 58 ) END, - COUNT( * ) ), 2 * + 67 ) + 10 END + COUNT( * ) * + 28 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2583
SELECT ALL CAST ( NULL AS INTEGER ) + + 32 + - - 53 * 19 * - 34 * + - 56 / + NULLIF ( - MIN ( 25 ), - MIN ( DISTINCT + + ( - 79 ) ) / - 89 * + 38 + 60 * - + 56 ) * - CASE - ( - + 97 ) WHEN 46 - - + 3 * - 16 * - 14 THEN NULL ELSE - 66 * NULLIF ( - - COALESCE ( + CASE 56 WHEN - 38 + - 78 / AVG ( 28 ) THEN NULL ELSE + 75 - MAX ( 58 ) END, - COUNT ( * ) ), 2 * + 67 ) + 10 END + COUNT ( * ) * + 28 AS col1
----
NULL

query I rowsort
SELECT + 74 + + - ( + 34 ) col2
----
40

query I rowsort
SELECT ALL + 64 + - + 60
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-2586
SELECT ALL + 63 AS col2, COUNT( * ) * - - 99
----
63
99

skipif mysql # not compatible
query II rowsort label-2586
SELECT ALL + 63 AS col2, COUNT ( * ) * - - 99
----
63
99

query I rowsort
SELECT + - 85 * - 25
----
2125

query II rowsort
SELECT + + 27 * + - 80 + + + 77 * - 89 AS col0, 92
----
-9013
92

query I rowsort
SELECT - + 21 * - - 56 col2
----
-1176

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2590
SELECT ALL + 16 * - COUNT( * ) DIV + + NULLIF ( 53, - - ( + 31 ) ) DIV + 4
----
0

skipif mysql # not compatible
query I rowsort label-2590
SELECT ALL + 16 * - COUNT ( * ) / + + NULLIF ( 53, - - ( + 31 ) ) / + 4
----
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2592
SELECT - 12 DIV - 56
----
0

skipif mysql # not compatible
query I rowsort label-2592
SELECT - 12 / - 56
----
0

query I rowsort
SELECT - + 72 + - - 62 AS col0
----
-10

query I rowsort
SELECT ALL - - 68 - + 70 AS col1
----
-2

query I rowsort
SELECT - ( 66 ) col2
----
-66

query I rowsort
SELECT DISTINCT - 97 * - - COALESCE ( + 44, + 27 - 78 )
----
-4268

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2598
SELECT ALL SUM( DISTINCT + 33 ) AS col2
----
33

skipif mysql # not compatible
query I rowsort label-2598
SELECT ALL SUM ( DISTINCT + 33 ) AS col2
----
33

query II rowsort
SELECT DISTINCT + 42 * - 79 AS col2, + 6 AS col0
----
-3318
6

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

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

query I rowsort
SELECT - - 3 - + + 89
----
-86

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

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

query I rowsort
SELECT - 55 * + + 43
----
-2365

query I rowsort
SELECT - 95 + - 85 AS col0
----
-180

query I rowsort
SELECT DISTINCT - + 21 * - 12 - - 82 * - 51
----
-3930

onlyif mysql # DIV for integer division: 
query I rowsort label-2607
SELECT ALL - 94 * + ( + 50 ) * + 44 + - - 51 DIV 39
----
-206799

skipif mysql # not compatible
query I rowsort label-2607
SELECT ALL - 94 * + ( + 50 ) * + 44 + - - 51 / 39
----
-206799

query II rowsort
SELECT - 88 + + - 21 AS col0, 89 * + + 53
----
-109
4717

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2609
SELECT + 82 + - - 45 DIV MIN( ALL + + 54 ) + ( 72 ) * + + COUNT( * ) AS col2
----
154

skipif mysql # not compatible
query I rowsort label-2609
SELECT + 82 + - - 45 / MIN ( ALL + + 54 ) + ( 72 ) * + + COUNT ( * ) AS col2
----
154

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2610
SELECT ALL + 35 * 5 * 60 + CAST( - 87 AS SIGNED ) + + 24 + - - 34 + - 44
----
10427

skipif mysql # not compatible
query I rowsort label-2610
SELECT ALL + 35 * 5 * 60 + CAST ( - 87 AS INTEGER ) + + 24 + - - 34 + - 44
----
10427

onlyif mysql # DIV for integer division: 
query I rowsort label-2611
SELECT - 28 DIV - 83
----
0

skipif mysql # not compatible
query I rowsort label-2611
SELECT - 28 / - 83
----
0

query I rowsort
SELECT ALL - 85 * + 88 + + 98
----
-7382

query II rowsort
SELECT - 46 * - + 26, 73 AS col0
----
1196
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2614
SELECT ALL - 24 * + + 1 + COALESCE ( + + COUNT( * ), - ( - COUNT( * ) ) * - 22 DIV - ( 18 ), - 99 * + COALESCE ( + ( + COUNT( * ) ), + + COUNT( * ) * - 17 + + 53 * - 1 + 3, 26 ) * + - COALESCE ( + CASE + + ( + + 61 ) WHEN COUNT( * ) + 30 THEN + 80 ELSE + 72 END, 62 ) * ( COALESCE ( + 42, 90 - + 62 ) ) ) * 9
----
-15

skipif mysql # not compatible
query I rowsort label-2614
SELECT ALL - 24 * + + 1 + COALESCE ( + + COUNT ( * ), - ( - COUNT ( * ) ) * - 22 / - ( 18 ), - 99 * + COALESCE ( + ( + COUNT ( * ) ), + + COUNT ( * ) * - 17 + + 53 * - 1 + 3, 26 ) * + - COALESCE ( + CASE + + ( + + 61 ) WHEN COUNT ( * ) + 30 THEN + 80 ELSE + 72 END, 62 ) * ( COALESCE ( + 42, 90 - + 62 ) ) ) * 9
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-2615
SELECT DISTINCT + COUNT( * ) * - - 87 + - ( + 73 )
----
14

skipif mysql # not compatible
query I rowsort label-2615
SELECT DISTINCT + COUNT ( * ) * - - 87 + - ( + 73 )
----
14

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

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

query I rowsort
SELECT ALL - 8 * - - 34 + + - 56 AS col2
----
-328

onlyif mysql # aggregate syntax: 
query I rowsort label-2618
SELECT DISTINCT + CASE 83 WHEN 66 THEN NULL ELSE - - 16 END * - 54 * - - COUNT( * )
----
-864

skipif mysql # not compatible
query I rowsort label-2618
SELECT DISTINCT + CASE 83 WHEN 66 THEN NULL ELSE - - 16 END * - 54 * - - COUNT ( * )
----
-864

query I rowsort
SELECT ALL 86 + - - AVG ( CASE + 90 WHEN + + 11 THEN - + NULLIF ( 9, + - 0 ) + - 26 WHEN ( - - 27 ) THEN NULL ELSE NULL END ) AS col1
----
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2622
SELECT ALL COUNT( + 49 ) - + 3 * 42
----
-125

skipif mysql # not compatible
query I rowsort label-2622
SELECT ALL COUNT ( + 49 ) - + 3 * 42
----
-125

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2623
SELECT DISTINCT + CAST( NULL AS SIGNED ) / ( - - 17 ) + + 69 + - 11 + + - 70 * + 19 * - - 84 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2623
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / ( - - 17 ) + + 69 + - 11 + + - 70 * + 19 * - - 84 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2624
SELECT DISTINCT + COUNT( - + 57 ) - ( 10 ) AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-2624
SELECT DISTINCT + COUNT ( - + 57 ) - ( 10 ) AS col1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2625
SELECT + COUNT( - 58 ) + + 81
----
82

skipif mysql # not compatible
query I rowsort label-2625
SELECT + COUNT ( - 58 ) + + 81
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2626
SELECT DISTINCT - + 90 - - 31 - + COUNT( * ) + 28 AS col1
----
-32

skipif mysql # not compatible
query I rowsort label-2626
SELECT DISTINCT - + 90 - - 31 - + COUNT ( * ) + 28 AS col1
----
-32

query I rowsort
SELECT + 17 * - ( ( + 73 ) )
----
-1241

query I rowsort
SELECT DISTINCT COALESCE ( + 48, 66 ) AS col2
----
48

query I rowsort
SELECT ALL 96 * - 91 AS col0
----
-8736

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2630
SELECT 62 / + + CAST( NULL AS SIGNED ), - NULLIF ( - 94, - + 81 ) + - 30 AS col0
----
NULL
64

skipif mysql # not compatible
query II rowsort label-2630
SELECT 62 / + + CAST ( NULL AS INTEGER ), - NULLIF ( - 94, - + 81 ) + - 30 AS col0
----
NULL
64

query I rowsort
SELECT - 83 * - 19 AS col2
----
1577

query I rowsort
SELECT ALL COALESCE ( - 84, 14 ) AS col1
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-2633
SELECT ALL - NULLIF ( + CASE - - 22 WHEN - - 54 THEN + 72 + + 7 * - - COUNT( * ) ELSE + + ( - 13 ) END, COUNT( * ) + + + 76 + + + 51 * 34 ) AS col1
----
13

skipif mysql # not compatible
query I rowsort label-2633
SELECT ALL - NULLIF ( + CASE - - 22 WHEN - - 54 THEN + 72 + + 7 * - - COUNT ( * ) ELSE + + ( - 13 ) END, COUNT ( * ) + + + 76 + + + 51 * 34 ) AS col1
----
13

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

skipif mysql # not compatible
query I rowsort label-2634
SELECT ALL - MAX ( 93 )
----
-93

query I rowsort
SELECT 12 * - 79
----
-948

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

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

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

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

query I rowsort
SELECT DISTINCT - 81 + 56
----
-25

query I rowsort
SELECT 2 * - + 58
----
-116

query I rowsort
SELECT 37 * + + 25 AS col1
----
925

query I rowsort
SELECT ALL - CASE + 67 WHEN 0 THEN NULL ELSE - - 62 END + 34 AS col0
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-2642
SELECT - MIN( ALL 68 ) * + COUNT( * ) + - 91 - + 10
----
-169

skipif mysql # not compatible
query I rowsort label-2642
SELECT - MIN ( ALL 68 ) * + COUNT ( * ) + - 91 - + 10
----
-169

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

query I rowsort
SELECT 27 - - 2 AS col1
----
29

query I rowsort
SELECT ALL - 63 + + 49
----
-14

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2646
SELECT ALL - CAST( NULL AS DECIMAL ) AS col1, 21 AS col2
----
NULL
21

skipif mysql # not compatible
query II rowsort label-2646
SELECT ALL - CAST ( NULL AS REAL ) AS col1, 21 AS col2
----
NULL
21

query II rowsort
SELECT 27 AS col1, - 44 * + 70 + + 63 - - NULLIF ( + 86, - 89 ) AS col2
----
27
-2931

query I rowsort
SELECT ALL 87 + - 71 AS col0
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2649
SELECT ALL - COUNT( + - CAST( NULL AS SIGNED ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2649
SELECT ALL - COUNT ( + - CAST ( NULL AS INTEGER ) ) AS col1
----
0

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

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

query I rowsort
SELECT 27 + 24 + 14 AS col0
----
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-2652
SELECT + 17 * - COUNT( * ) - 8 * 10 * + - 92 + - 81 * + 66 + - + 61, - 74 col1, + 97 DIV + 1 - - - 30 * SUM( - 42 ) AS col1
----
1936
-74
1357

skipif mysql # not compatible
query III rowsort label-2652
SELECT + 17 * - COUNT ( * ) - 8 * 10 * + - 92 + - 81 * + 66 + - + 61, - 74 col1, + 97 / + 1 - - - 30 * SUM ( - 42 ) AS col1
----
1936
-74
1357

query I rowsort
SELECT 36 + + 3 AS col0
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2654
SELECT MIN( - - 9 ) DIV + 37
----
0

skipif mysql # not compatible
query I rowsort label-2654
SELECT MIN ( - - 9 ) / + 37
----
0

query I rowsort
SELECT 43 * + + 20 col2
----
860

onlyif mysql # DIV for integer division: 
query I rowsort label-2656
SELECT 82 * 64 DIV - 53 AS col1
----
-99

skipif mysql # not compatible
query I rowsort label-2656
SELECT 82 * 64 / - 53 AS col1
----
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2657
SELECT ALL - COALESCE ( + 90, 92 - + COALESCE ( 28, - ( - 52 ) DIV - + COUNT( * ) ) * + + 96 + - ( 18 ) + + 28 ) * + - 80
----
7200

skipif mysql # not compatible
query I rowsort label-2657
SELECT ALL - COALESCE ( + 90, 92 - + COALESCE ( 28, - ( - 52 ) / - + COUNT ( * ) ) * + + 96 + - ( 18 ) + + 28 ) * + - 80
----
7200

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

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

query I rowsort
SELECT + 65 + + 27 AS col0
----
92

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

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

query I rowsort
SELECT - 74 * + 84 AS col0
----
-6216

query I rowsort
SELECT ALL - - 72 * - 67 AS col1
----
-4824

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

skipif mysql # not compatible
query II rowsort label-2663
SELECT - - CAST ( NULL AS INTEGER ), ( + NULLIF ( + COUNT ( * ), + 50 ) ) col0
----
NULL
1

query I rowsort
SELECT - - 51 col0
----
51

query I rowsort
SELECT - ( + 20 ) * + + 35 * 50 + 27 AS col1
----
-34973

onlyif mysql # aggregate syntax: 
query I rowsort label-2666
SELECT COUNT( * ) * 3 - 64
----
-61

skipif mysql # not compatible
query I rowsort label-2666
SELECT COUNT ( * ) * 3 - 64
----
-61

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

query I rowsort
SELECT 8 + + 64
----
72

query I rowsort
SELECT DISTINCT + 98 + 63
----
161

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

skipif mysql # not compatible
query I rowsort label-2670
SELECT DISTINCT COUNT ( * ) + 69 * COUNT ( * ) AS col0
----
70

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

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

query II rowsort
SELECT ALL 71 + + 88 - - 78 + - 43, - 84 col0
----
194
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-2673
SELECT 92 + 12 + - - 68 * - COUNT( * ) + - COUNT( * ) * - 1 * + 18 AS col1
----
54

skipif mysql # not compatible
query I rowsort label-2673
SELECT 92 + 12 + - - 68 * - COUNT ( * ) + - COUNT ( * ) * - 1 * + 18 AS col1
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2674
SELECT ALL + 47 * - + 21 + - CASE + 79 WHEN + 88 + - ( COUNT( * ) ) - + 24 - 59 * - 22 * - - 9 / + 32 + - - CAST( NULL AS SIGNED ) + - + ( COUNT( * ) ) THEN NULL WHEN CAST( NULL AS DECIMAL ) - - + 29 + - 97 - 88 * + 54 THEN 37 + - CAST( 72 AS SIGNED ) ELSE + 58 END AS col0
----
-1045

skipif mysql # not compatible
query I rowsort label-2674
SELECT ALL + 47 * - + 21 + - CASE + 79 WHEN + 88 + - ( COUNT ( * ) ) - + 24 - 59 * - 22 * - - 9 / + 32 + - - CAST ( NULL AS INTEGER ) + - + ( COUNT ( * ) ) THEN NULL WHEN CAST ( NULL AS REAL ) - - + 29 + - 97 - 88 * + 54 THEN 37 + - CAST ( 72 AS INTEGER ) ELSE + 58 END AS col0
----
-1045

onlyif mysql # aggregate syntax: 
query I rowsort label-2675
SELECT CASE - 32 WHEN 90 - + + 72 * + + 21 THEN + 59 * + + CASE - 32 WHEN + - 65 THEN NULL WHEN + 21 * - + 61 / + 68 + - 54 + - ( + 12 ) THEN - 49 / - 54 + - ( MAX( 5 ) ) WHEN + COUNT( * ) / + - 49 THEN NULL END WHEN + 81 + + 44 THEN ( 87 ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2675
SELECT CASE - 32 WHEN 90 - + + 72 * + + 21 THEN + 59 * + + CASE - 32 WHEN + - 65 THEN NULL WHEN + 21 * - + 61 / + 68 + - 54 + - ( + 12 ) THEN - 49 / - 54 + - ( MAX ( 5 ) ) WHEN + COUNT ( * ) / + - 49 THEN NULL END WHEN + 81 + + 44 THEN ( 87 ) ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2676
SELECT 47 * ( + + COUNT( * ) ) * - 48
----
-2256

skipif mysql # not compatible
query I rowsort label-2676
SELECT 47 * ( + + COUNT ( * ) ) * - 48
----
-2256

query I rowsort
SELECT 18 + - 77 + + 42 + - 50 + + - 15
----
-82

query I rowsort
SELECT ( + 68 ) * - 38 AS col2
----
-2584

query I rowsort
SELECT - 89 * - - ( + 27 ) + + 21 AS col0
----
-2382

query I rowsort
SELECT ALL - 70 * 69 + + 89
----
-4741

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2681
SELECT COUNT( * ) DIV - + COUNT( * ) + + + SUM( 52 )
----
51

skipif mysql # not compatible
query I rowsort label-2681
SELECT COUNT ( * ) / - + COUNT ( * ) + + + SUM ( 52 )
----
51

query I rowsort
SELECT ALL 20 * 37 + - - 92 AS col0
----
832

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2685
SELECT - 69 + - 18 + + 61 + + - CAST( + - 94 AS SIGNED ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-2685
SELECT - 69 + - 18 + + 61 + + - CAST ( + - 94 AS INTEGER ) AS col2
----
68

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

skipif mysql # not compatible
query I rowsort label-2686
SELECT ALL - CAST ( NULL AS INTEGER ) * 28
----
NULL

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

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

query I rowsort
SELECT + 50 * - 80 + - 91
----
-4091

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2689
SELECT + CASE + 12 WHEN - CAST( NULL AS SIGNED ) THEN + 7 + + 76 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2689
SELECT + CASE + 12 WHEN - CAST ( NULL AS INTEGER ) THEN + 7 + + 76 END AS col2
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2691
SELECT DISTINCT + 60 * + - CAST( NULL AS DECIMAL ) - - SUM( ALL 74 ) + + - 26
----
NULL

skipif mysql # not compatible
query I rowsort label-2691
SELECT DISTINCT + 60 * + - CAST ( NULL AS REAL ) - - SUM ( ALL 74 ) + + - 26
----
NULL

query I rowsort
SELECT ALL + 96 * 37
----
3552

onlyif mysql # aggregate syntax: 
query II rowsort label-2693
SELECT DISTINCT + 9 * - + 92 AS col2, 9 * MIN( ALL - - 21 ) + 90 AS col0
----
-828
279

skipif mysql # not compatible
query II rowsort label-2693
SELECT DISTINCT + 9 * - + 92 AS col2, 9 * MIN ( ALL - - 21 ) + 90 AS col0
----
-828
279

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2696
SELECT + COUNT( * ) - - 35 + COALESCE ( 14, + + 33 - - CASE 77 WHEN + 78 * + 90 - + 51 - - ( + - 58 ) + - 31 * + 94 THEN NULL ELSE - - 40 - 78 + - - 76 END * + COALESCE ( + 84, 79 ) ) + 15 * - 89 + - 11 AS col2
----
-1296

skipif mysql # not compatible
query I rowsort label-2696
SELECT + COUNT ( * ) - - 35 + COALESCE ( 14, + + 33 - - CASE 77 WHEN + 78 * + 90 - + 51 - - ( + - 58 ) + - 31 * + 94 THEN NULL ELSE - - 40 - 78 + - - 76 END * + COALESCE ( + 84, 79 ) ) + 15 * - 89 + - 11 AS col2
----
-1296

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2698
SELECT - - 21 DIV 53 * - 83
----
0

skipif mysql # not compatible
query I rowsort label-2698
SELECT - - 21 / 53 * - 83
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2699
SELECT - + 46 * - + 33 * - + CAST( + COUNT( * ) AS SIGNED ) AS col2
----
-1518

skipif mysql # not compatible
query I rowsort label-2699
SELECT - + 46 * - + 33 * - + CAST ( + COUNT ( * ) AS INTEGER ) AS col2
----
-1518

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2700
SELECT ALL + MIN( ALL 41 ) + + ( CASE + NULLIF ( - - 11, - 63 ) WHEN - ( + 94 ) THEN - CAST( NULL AS SIGNED ) ELSE NULL END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2700
SELECT ALL + MIN ( ALL 41 ) + + ( CASE + NULLIF ( - - 11, - 63 ) WHEN - ( + 94 ) THEN - CAST ( NULL AS INTEGER ) ELSE NULL END ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2701
SELECT DISTINCT + 33 + - 10 AS col2, 43 + - 3 DIV + NULLIF ( + COUNT( 15 ), - 35 * + 64 * 81 ) + 57 * - - 37 * ( - 33 )
----
23
-69557

skipif mysql # not compatible
query II rowsort label-2701
SELECT DISTINCT + 33 + - 10 AS col2, 43 + - 3 / + NULLIF ( + COUNT ( 15 ), - 35 * + 64 * 81 ) + 57 * - - 37 * ( - 33 )
----
23
-69557

onlyif mysql # aggregate syntax: 
query I rowsort label-2702
SELECT DISTINCT 14 + + NULLIF ( 64, + + COUNT( * ) )
----
78

skipif mysql # not compatible
query I rowsort label-2702
SELECT DISTINCT 14 + + NULLIF ( 64, + + COUNT ( * ) )
----
78

query I rowsort
SELECT DISTINCT + 53 + - ( - 35 )
----
88

query I rowsort
SELECT ALL - - 2 + 88 AS col2
----
90

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-2705
SELECT - ( + 98 ) + - 96 DIV 87 * 46 AS col2, + ( COUNT( * ) ) * + CAST( NULL AS DECIMAL ) col0
----
-144
NULL

skipif mysql # not compatible
query II rowsort label-2705
SELECT - ( + 98 ) + - 96 / 87 * 46 AS col2, + ( COUNT ( * ) ) * + CAST ( NULL AS REAL ) col0
----
-144
NULL

query I rowsort
SELECT - - 20 * - 55 AS col2
----
-1100

query I rowsort
SELECT + - 14 + + ( 93 )
----
79

onlyif mysql # DIV for integer division: 
query I rowsort label-2708
SELECT DISTINCT + + 52 + - 42 DIV + + 93
----
52

skipif mysql # not compatible
query I rowsort label-2708
SELECT DISTINCT + + 52 + - 42 / + + 93
----
52

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2710
SELECT ALL NULLIF ( + - 26, - COALESCE ( - CAST( NULL AS SIGNED ), 19, - 59, - - 62 ) ) + - 9 * - 0
----
-26

skipif mysql # not compatible
query I rowsort label-2710
SELECT ALL NULLIF ( + - 26, - COALESCE ( - CAST ( NULL AS INTEGER ), 19, - 59, - - 62 ) ) + - 9 * - 0
----
-26

query I rowsort
SELECT + 47 * - - 41 * - + 93 AS col1
----
-179211

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2713
SELECT DISTINCT ( - 85 ) - - 25 + + 31 + 64 * + - 28 - 75 DIV + 35
----
-1823

skipif mysql # not compatible
query I rowsort label-2713
SELECT DISTINCT ( - 85 ) - - 25 + + 31 + 64 * + - 28 - 75 / + 35
----
-1823

onlyif mysql # DIV for integer division: 
query I rowsort label-2714
SELECT + 82 + - - 49 DIV - 28
----
81

skipif mysql # not compatible
query I rowsort label-2714
SELECT + 82 + - - 49 / - 28
----
81

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2716
SELECT DISTINCT + 69, COALESCE ( - + COALESCE ( - 7, + COUNT( * ), + - CAST( + - NULLIF ( - 10, - 39 ) AS SIGNED ) * - + COUNT( * ) * + 96 ), - 3 * - 97 DIV + + ( + 52 ) + 27, - 39 - + - ( - + 45 ) ) + + COALESCE ( - - CAST( + + 77 AS SIGNED ), - 89 * - 33 ) * ( + - 39 ) AS col1
----
69
-2996

skipif mysql # not compatible
query II rowsort label-2716
SELECT DISTINCT + 69, COALESCE ( - + COALESCE ( - 7, + COUNT ( * ), + - CAST ( + - NULLIF ( - 10, - 39 ) AS INTEGER ) * - + COUNT ( * ) * + 96 ), - 3 * - 97 / + + ( + 52 ) + 27, - 39 - + - ( - + 45 ) ) + + COALESCE ( - - CAST ( + + 77 AS INTEGER ), - 89 * - 33 ) * ( + - 39 ) AS col1
----
69
-2996

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2719
SELECT + 63 + - - COUNT( * ) * - + 64 + - 84
----
-85

skipif mysql # not compatible
query I rowsort label-2719
SELECT + 63 + - - COUNT ( * ) * - + 64 + - 84
----
-85

query I rowsort
SELECT ALL 34 * - 7 col2
----
-238

onlyif mysql # aggregate syntax: 
query I rowsort label-2721
SELECT + NULLIF ( + + 88, - CASE - NULLIF ( + ( + 20 ), - 8 ) WHEN - 73 / - + 76 + 51 * + 17 + 44 * 0 THEN - 6 WHEN - 69 THEN NULL END * - 27 * - 44 * + 67 + + 43 + - - 39 + + COUNT( * ) + - - ( 7 ) )
----
88

skipif mysql # not compatible
query I rowsort label-2721
SELECT + NULLIF ( + + 88, - CASE - NULLIF ( + ( + 20 ), - 8 ) WHEN - 73 / - + 76 + 51 * + 17 + 44 * 0 THEN - 6 WHEN - 69 THEN NULL END * - 27 * - 44 * + 67 + + 43 + - - 39 + + COUNT ( * ) + - - ( 7 ) )
----
88

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2723
SELECT + COUNT( * ) * + NULLIF ( - 48, + - 23 ) DIV + 14 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-2723
SELECT + COUNT ( * ) * + NULLIF ( - 48, + - 23 ) / + 14 AS col0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-2724
SELECT + COUNT( * ) - + SUM( - - 24 ), + CASE WHEN NULL IS NOT NULL THEN 85 ELSE + SUM( 98 ) END + 10 + 61 AS col2
----
-23
169

skipif mysql # not compatible
query II rowsort label-2724
SELECT + COUNT ( * ) - + SUM ( - - 24 ), + CASE WHEN NULL IS NOT NULL THEN 85 ELSE + SUM ( 98 ) END + 10 + 61 AS col2
----
-23
169

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2726
SELECT + COUNT( * ) * 56 DIV + 53 + - 35 - - + CAST( + 88 AS SIGNED ) * + 78
----
6830

skipif mysql # not compatible
query I rowsort label-2726
SELECT + COUNT ( * ) * 56 / + 53 + - 35 - - + CAST ( + 88 AS INTEGER ) * + 78
----
6830

query II rowsort
SELECT + - 89 AS col2, + ( 69 ) - 50
----
-89
19

query I rowsort
SELECT + - 67 + 33 AS col0
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-2729
SELECT - COALESCE ( - 18, 24 ) * COALESCE ( - ( + - 15 ), + - 31 ) - SUM( ALL - + 66 )
----
336

skipif mysql # not compatible
query I rowsort label-2729
SELECT - COALESCE ( - 18, 24 ) * COALESCE ( - ( + - 15 ), + - 31 ) - SUM ( ALL - + 66 )
----
336

query I rowsort
SELECT + + 92 + + 69
----
161

onlyif mysql # aggregate syntax: 
query I rowsort label-2731
SELECT - - ( - 11 ) - - 15 + 90 * + COUNT( - 43 )
----
94

skipif mysql # not compatible
query I rowsort label-2731
SELECT - - ( - 11 ) - - 15 + 90 * + COUNT ( - 43 )
----
94

query I rowsort
SELECT - 92 * - 48
----
4416

query I rowsort
SELECT - 33 * + 53 + + 78 AS col1
----
-1671

query II rowsort
SELECT ALL 90 AS col0, - 50 AS col2
----
90
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-2735
SELECT ALL + - 90 * + - 70 * + 24 + + - COUNT( * ) AS col2
----
151199

skipif mysql # not compatible
query I rowsort label-2735
SELECT ALL + - 90 * + - 70 * + 24 + + - COUNT ( * ) AS col2
----
151199

query I rowsort
SELECT - 50 + - 34 + + 14 AS col2
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-2737
SELECT DISTINCT - NULLIF ( - 2, - MAX( + 76 ) )
----
2

skipif mysql # not compatible
query I rowsort label-2737
SELECT DISTINCT - NULLIF ( - 2, - MAX ( + 76 ) )
----
2

query I rowsort
SELECT + + 65 * - + 65 * + + 10 + - 25 AS col2
----
-42275

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

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

query I rowsort
SELECT + + 49 + 26 AS col0
----
75

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

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

query I rowsort
SELECT - + 10 + 6 * + - 74 col0
----
-454

query I rowsort
SELECT - 47 - 4 + - 80 AS col2
----
-131

onlyif mysql # aggregate syntax: 
query I rowsort label-2744
SELECT ALL CASE COUNT( * ) WHEN - 29 / - COUNT( * ) + - 57 THEN - + ( + - 52 ) + - 13 WHEN - 5 THEN - NULLIF ( 75, + - 58 + + 45 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2744
SELECT ALL CASE COUNT ( * ) WHEN - 29 / - COUNT ( * ) + - 57 THEN - + ( + - 52 ) + - 13 WHEN - 5 THEN - NULLIF ( 75, + - 58 + + 45 ) END AS col0
----
NULL

query I rowsort
SELECT 27 + COALESCE ( 57, - ( + - 93 ) )
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-2746
SELECT 31 DIV - 68 * + 46 * - 71
----
0

skipif mysql # not compatible
query I rowsort label-2746
SELECT 31 / - 68 * + 46 * - 71
----
0

query II rowsort
SELECT ALL 70 * + 43, 28 AS col1
----
3010
28

onlyif mysql # aggregate syntax: 
query II rowsort label-2748
SELECT 17 + + COUNT( * ) AS col1, - 83 + - 5 col2
----
18
-88

skipif mysql # not compatible
query II rowsort label-2748
SELECT 17 + + COUNT ( * ) AS col1, - 83 + - 5 col2
----
18
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-2749
SELECT COUNT( DISTINCT + + 24 ) - - ( - 71 )
----
-70

skipif mysql # not compatible
query I rowsort label-2749
SELECT COUNT ( DISTINCT + + 24 ) - - ( - 71 )
----
-70

query I rowsort
SELECT 27 + - + 9 + - 43 AS col1
----
-25

query I rowsort
SELECT 62 - + + 33 AS col0
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2752
SELECT ALL - CAST( 73 AS SIGNED ) - + COUNT( * ) AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-2752
SELECT ALL - CAST ( 73 AS INTEGER ) - + COUNT ( * ) AS col2
----
-74

onlyif mysql # aggregate syntax: 
query II rowsort label-2753
SELECT 30 AS col2, - 80 * - - ( - 60 ) - - 62 + - + ( + - ( - NULLIF ( + + 19, - - 28 * - COUNT( * ) ) ) )
----
30
4843

skipif mysql # not compatible
query II rowsort label-2753
SELECT 30 AS col2, - 80 * - - ( - 60 ) - - 62 + - + ( + - ( - NULLIF ( + + 19, - - 28 * - COUNT ( * ) ) ) )
----
30
4843

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

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

query I rowsort
SELECT DISTINCT - 14 col1
----
-14

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2759
SELECT ALL - COALESCE ( + COUNT( * ), - 98 - + + ( + 28 ), - 93 * + - 66 + + 7 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2759
SELECT ALL - COALESCE ( + COUNT ( * ), - 98 - + + ( + 28 ), - 93 * + - 66 + + 7 ) AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2760
SELECT ALL 56 * - - CAST( NULL AS SIGNED ) * 51 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2760
SELECT ALL 56 * - - CAST ( NULL AS INTEGER ) * 51 AS col0
----
NULL

query I rowsort
SELECT + + 60 col2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-2762
SELECT 3 + COUNT( - 6 ) + + 45 + + 51 * - 18 * + - 59 + - + 81 + - + CASE 1 WHEN + ( + 95 ) THEN COUNT( * ) + + 92 WHEN - 68 + - COALESCE ( + - COALESCE ( 28, - - 34 * - ( + 87 ) + 98, + - 84 * ( 41 ) ), - 24 ) / 91 THEN NULL END * - 57
----
NULL

skipif mysql # not compatible
query I rowsort label-2762
SELECT 3 + COUNT ( - 6 ) + + 45 + + 51 * - 18 * + - 59 + - + 81 + - + CASE 1 WHEN + ( + 95 ) THEN COUNT ( * ) + + 92 WHEN - 68 + - COALESCE ( + - COALESCE ( 28, - - 34 * - ( + 87 ) + 98, + - 84 * ( 41 ) ), - 24 ) / 91 THEN NULL END * - 57
----
NULL

query I rowsort
SELECT ALL - 27 * 87 AS col1
----
-2349

query I rowsort
SELECT + 98 * 12 + - - 0
----
1176

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2766
SELECT ALL 51 + - 65 + - - CASE - COUNT( * ) WHEN - 53 DIV + CAST( - 52 AS SIGNED ) THEN NULL WHEN + MAX( DISTINCT - 27 ) THEN 76 + - + COUNT( * ) + 33 DIV - 55 ELSE 94 END + 48 AS col2
----
128

skipif mysql # not compatible
query I rowsort label-2766
SELECT ALL 51 + - 65 + - - CASE - COUNT ( * ) WHEN - 53 / + CAST ( - 52 AS INTEGER ) THEN NULL WHEN + MAX ( DISTINCT - 27 ) THEN 76 + - + COUNT ( * ) + 33 / - 55 ELSE 94 END + 48 AS col2
----
128

query I rowsort
SELECT ALL 95 + + ( - - 70 )
----
165

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2768
SELECT ALL - 44 DIV + + 77 + - COUNT( * ) + 78 AS col2, - 80 * - 82
----
77
6560

skipif mysql # not compatible
query II rowsort label-2768
SELECT ALL - 44 / + + 77 + - COUNT ( * ) + 78 AS col2, - 80 * - 82
----
77
6560

onlyif mysql # aggregate syntax: 
query II rowsort label-2769
SELECT + 43 + - 26 AS col1, - COUNT( * ) + - 10 - 17 + + - 96 + + + CASE + - 72 WHEN + - 76 THEN NULL ELSE ( + 32 ) END * + COUNT( * ) * 85 AS col0
----
17
2596

skipif mysql # not compatible
query II rowsort label-2769
SELECT + 43 + - 26 AS col1, - COUNT ( * ) + - 10 - 17 + + - 96 + + + CASE + - 72 WHEN + - 76 THEN NULL ELSE ( + 32 ) END * + COUNT ( * ) * 85 AS col0
----
17
2596

query I rowsort
SELECT DISTINCT - 33 + 93 * - 75 + + - 16 - 45
----
-7069

query I rowsort
SELECT ALL - 75 + + 50 AS col0
----
-25

query II rowsort
SELECT + - ( - + 72 ) AS col0, 48 AS col0
----
72
48

query I rowsort
SELECT + 0 - + 6
----
-6

query II rowsort
SELECT ALL - 96, + 27 AS col0
----
-96
27

query I rowsort
SELECT + - 58 * + 20 - - 26 AS col2
----
-1134

onlyif mysql # aggregate syntax: 
query I rowsort label-2776
SELECT + ( CASE - 32 WHEN - MAX( + 28 ) + ( - - 18 ) THEN + 57 * - 25 WHEN 57 + 65 THEN + - 27 + - COUNT( * ) - - COUNT( * ) * - 97 END ) * - 32 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2776
SELECT + ( CASE - 32 WHEN - MAX ( + 28 ) + ( - - 18 ) THEN + 57 * - 25 WHEN 57 + 65 THEN + - 27 + - COUNT ( * ) - - COUNT ( * ) * - 97 END ) * - 32 AS col2
----
NULL

query I rowsort
SELECT DISTINCT ( 83 ) AS col0
----
83

query I rowsort
SELECT ALL - - NULLIF ( 57, + + 36 + + 97 ) - - 32 + - 28
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2779
SELECT - CAST( + 36 AS SIGNED ) * + + 35 - - 44 AS col0, ( - 4 )
----
-1216
-4

skipif mysql # not compatible
query II rowsort label-2779
SELECT - CAST ( + 36 AS INTEGER ) * + + 35 - - 44 AS col0, ( - 4 )
----
-1216
-4

query I rowsort
SELECT ALL 12 * 42
----
504

onlyif mysql # aggregate syntax: 
query I rowsort label-2781
SELECT COALESCE ( - 11, - 14, + ( + 56 ) * - 40 - COUNT( * ) ) - 91 + - 41
----
-143

skipif mysql # not compatible
query I rowsort label-2781
SELECT COALESCE ( - 11, - 14, + ( + 56 ) * - 40 - COUNT ( * ) ) - 91 + - 41
----
-143

onlyif mysql # DIV for integer division: 
query II rowsort label-2782
SELECT ALL 64 - 74 AS col0, 78 + 22 DIV + ( 39 ) col0
----
-10
78

skipif mysql # not compatible
query II rowsort label-2782
SELECT ALL 64 - 74 AS col0, 78 + 22 / + ( 39 ) col0
----
-10
78

query II rowsort
SELECT 46 * - - 89, 97 AS col1
----
4094
97

query I rowsort
SELECT ( 34 ) + 94
----
128

onlyif mysql # DIV for integer division: 
query I rowsort label-2785
SELECT 65 DIV 71
----
0

skipif mysql # not compatible
query I rowsort label-2785
SELECT 65 / 71
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2786
SELECT 36 * 32 * + - 46 AS col2, CASE + - 3 WHEN - + COUNT( * ) THEN + COUNT( * ) ELSE NULL END AS col1
----
-52992
NULL

skipif mysql # not compatible
query II rowsort label-2786
SELECT 36 * 32 * + - 46 AS col2, CASE + - 3 WHEN - + COUNT ( * ) THEN + COUNT ( * ) ELSE NULL END AS col1
----
-52992
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2787
SELECT ALL - 73 DIV MAX( DISTINCT + 16 )
----
-4

skipif mysql # not compatible
query I rowsort label-2787
SELECT ALL - 73 / MAX ( DISTINCT + 16 )
----
-4

query II rowsort
SELECT DISTINCT - 55 * + 5 AS col2, + 29 * - ( 55 ) + 81
----
-275
-1514

query I rowsort
SELECT 62 * + 72
----
4464

query I rowsort
SELECT 52 - 84 AS col2
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-2791
SELECT ALL COUNT( * ) * + 53 + ( - - 51 ) AS col1
----
104

skipif mysql # not compatible
query I rowsort label-2791
SELECT ALL COUNT ( * ) * + 53 + ( - - 51 ) AS col1
----
104

query I rowsort
SELECT 61 + - COALESCE ( + 90, + 2 + - 13 )
----
-29

query I rowsort
SELECT DISTINCT 12 * 16 * 84 + + 98 AS col2
----
16226

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2794
SELECT + 54 DIV - COUNT( * ) - + 16 AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-2794
SELECT + 54 / - COUNT ( * ) - + 16 AS col0
----
-70

onlyif mysql # aggregate syntax: 
query II rowsort label-2795
SELECT DISTINCT - 37 + + COUNT( * ), + 97 * 84 AS col0
----
-36
8148

skipif mysql # not compatible
query II rowsort label-2795
SELECT DISTINCT - 37 + + COUNT ( * ), + 97 * 84 AS col0
----
-36
8148

query I rowsort
SELECT ALL + 15 * + - 4 AS col1
----
-60

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

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

query I rowsort
SELECT ALL - - NULLIF ( ( + 57 ), 46 + + - 97 ) AS col0
----
57

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

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

query I rowsort
SELECT - 7 * - 79 * - 52
----
-28756

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2801
SELECT + - SUM( - + 64 ) AS col1, - CAST( + 99 AS SIGNED ) AS col2
----
64
-99

skipif mysql # not compatible
query II rowsort label-2801
SELECT + - SUM ( - + 64 ) AS col1, - CAST ( + 99 AS INTEGER ) AS col2
----
64
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2802
SELECT DISTINCT + 21 * - COUNT( * ) * 90 col1
----
-1890

skipif mysql # not compatible
query I rowsort label-2802
SELECT DISTINCT + 21 * - COUNT ( * ) * 90 col1
----
-1890

query I rowsort
SELECT ALL - - 65 col2
----
65

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

query II rowsort
SELECT ALL 55 col2, + 43 AS col1
----
55
43

query II rowsort
SELECT DISTINCT 7 AS col1, - 70 AS col0
----
7
-70

query I rowsort
SELECT + 88 + 84 col0
----
172

query I rowsort
SELECT + 53 * - 37 * 64 * + 34
----
-4267136

query I rowsort
SELECT + 64 + - 38 AS col1
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-2810
SELECT + COALESCE ( - 80, + 67 DIV 68, + 11 ) + + + ( - 90 ) col1
----
-170

skipif mysql # not compatible
query I rowsort label-2810
SELECT + COALESCE ( - 80, + 67 / 68, + 11 ) + + + ( - 90 ) col1
----
-170

onlyif mysql # aggregate syntax: 
query I rowsort label-2811
SELECT - 5 + MIN( DISTINCT + 30 )
----
25

skipif mysql # not compatible
query I rowsort label-2811
SELECT - 5 + MIN ( DISTINCT + 30 )
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2812
SELECT + 17 * + 43 * - COALESCE ( - - ( 97 ), - + CAST( NULL AS SIGNED ) * 80, - + 33 * 32 ) AS col0
----
-70907

skipif mysql # not compatible
query I rowsort label-2812
SELECT + 17 * + 43 * - COALESCE ( - - ( 97 ), - + CAST ( NULL AS INTEGER ) * 80, - + 33 * 32 ) AS col0
----
-70907

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

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

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

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

query I rowsort
SELECT + 87 + - - 33
----
120

query I rowsort
SELECT DISTINCT 10 * + + 77 * - ( 62 ) AS col1
----
-47740

query I rowsort
SELECT - CASE - 23 WHEN + 49 THEN NULL WHEN + 28 * + 75 THEN 55 END + 15 col0
----
NULL

query I rowsort
SELECT + 27 * - + 78 * + 40
----
-84240

onlyif mysql # DIV for integer division: 
query I rowsort label-2819
SELECT 15 DIV + 47 + + 67 AS col2
----
67

skipif mysql # not compatible
query I rowsort label-2819
SELECT 15 / + 47 + + 67 AS col2
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2820
SELECT ALL 10 * + 91 + 39 + COUNT( * )
----
950

skipif mysql # not compatible
query I rowsort label-2820
SELECT ALL 10 * + 91 + 39 + COUNT ( * )
----
950

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

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

query I rowsort
SELECT ALL 18 * + 26 + + 18 AS col1
----
486

query I rowsort
SELECT - 16 + - - 94 + 64
----
142

query I rowsort
SELECT - 69 * - 88
----
6072

query I rowsort
SELECT - 38 + 62 AS col1
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2826
SELECT DISTINCT + 71 * + COUNT( * ) * + 6 * + 73 * - CAST( NULL AS SIGNED ) - - 87 / 24
----
NULL

skipif mysql # not compatible
query I rowsort label-2826
SELECT DISTINCT + 71 * + COUNT ( * ) * + 6 * + 73 * - CAST ( NULL AS INTEGER ) - - 87 / 24
----
NULL

query II rowsort
SELECT 45, 53 AS col2
----
45
53

query I rowsort
SELECT - + 86 * 97 - 33 + 19 AS col0
----
-8356

query I rowsort
SELECT ALL - - ( - 85 ) * - 35 * - ( - 41 ) AS col1
----
121975

query I rowsort
SELECT DISTINCT + - 53 col1
----
-53

query II rowsort
SELECT ALL + 2 AS col1, 92 col0
----
2
92

onlyif mysql # aggregate syntax: 
query I rowsort label-2832
SELECT DISTINCT + - CASE 79 WHEN - 69 / + 1 + - 28 THEN NULL WHEN 70 THEN + 39 - - + COUNT( - 51 ) * + + 39 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2832
SELECT DISTINCT + - CASE 79 WHEN - 69 / + 1 + - 28 THEN NULL WHEN 70 THEN + 39 - - + COUNT ( - 51 ) * + + 39 END col1
----
NULL

query I rowsort
SELECT ALL + 99 * - + 84 - + ( - - 66 ) * - - 17
----
-9438

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2834
SELECT - CAST( NULL AS SIGNED ) + 47 * 29 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2834
SELECT - CAST ( NULL AS INTEGER ) + 47 * 29 AS col0
----
NULL

query I rowsort
SELECT NULLIF ( 45, + 78 )
----
45

onlyif mysql # DIV for integer division: 
query II rowsort label-2836
SELECT ALL + 94 AS col1, - 51 DIV 92 AS col2
----
94
0

skipif mysql # not compatible
query II rowsort label-2836
SELECT ALL + 94 AS col1, - 51 / 92 AS col2
----
94
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2837
SELECT - 47 - - - 74 - - 49 * + COUNT( * ) col0
----
-72

skipif mysql # not compatible
query I rowsort label-2837
SELECT - 47 - - - 74 - - 49 * + COUNT ( * ) col0
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2838
SELECT + AVG ( + CAST( ( + 57 ) AS SIGNED ) ) / - 28 + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2838
SELECT + AVG ( + CAST ( ( + 57 ) AS INTEGER ) ) / - 28 + + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 65 * - 85 AS col2
----
5525

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2840
SELECT 91 * - ( + 36 ) - - - 87 DIV - COUNT( * )
----
-3189

skipif mysql # not compatible
query I rowsort label-2840
SELECT 91 * - ( + 36 ) - - - 87 / - COUNT ( * )
----
-3189

onlyif mysql # aggregate syntax: 
query I rowsort label-2841
SELECT - COALESCE ( + + ( 71 ), - + 95, - + COUNT( * ) )
----
-71

skipif mysql # not compatible
query I rowsort label-2841
SELECT - COALESCE ( + + ( 71 ), - + 95, - + COUNT ( * ) )
----
-71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2842
SELECT + 47 + + + 20 + + 4 * 17 * - - COALESCE ( + 64, - 20 + ( COUNT( * ) ) + + - 31 DIV + 29 * + - 6 DIV 60, MAX( DISTINCT + 43 ) + + 6 )
----
4419

skipif mysql # not compatible
query I rowsort label-2842
SELECT + 47 + + + 20 + + 4 * 17 * - - COALESCE ( + 64, - 20 + ( COUNT ( * ) ) + + - 31 / + 29 * + - 6 / 60, MAX ( DISTINCT + 43 ) + + 6 )
----
4419

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

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

query I rowsort
SELECT ALL 11 * + + 0
----
0

query I rowsort
SELECT DISTINCT 70 * - ( + 45 ) AS col0
----
-3150

query I rowsort
SELECT DISTINCT - ( + 40 ) + - + 54
----
-94

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2848
SELECT + CASE WHEN NULL IS NOT NULL THEN NULL WHEN NOT - 41 IN ( 59 * 93 * COALESCE ( + - 13, - + 83 / + CAST( NULL AS SIGNED ) ) + + + 36 + + 0 + 15 + 61 + - CAST( NULL AS SIGNED ) * - + 15 * + + 93 - + - 30, + 76 + MIN( 6 ) - + 11 + 41 ) THEN NULL WHEN 99 NOT IN ( - CAST( NULL AS SIGNED ) / + ( 47 ) + - 11 * - - NULLIF ( - 90, 95 ) + - 22 ) THEN NULL ELSE 31 END - - 22 AS col0
----
53

skipif mysql # not compatible
query I rowsort label-2848
SELECT + CASE WHEN NULL IS NOT NULL THEN NULL WHEN NOT - 41 IN ( 59 * 93 * COALESCE ( + - 13, - + 83 / + CAST ( NULL AS INTEGER ) ) + + + 36 + + 0 + 15 + 61 + - CAST ( NULL AS INTEGER ) * - + 15 * + + 93 - + - 30, + 76 + MIN ( 6 ) - + 11 + 41 ) THEN NULL WHEN 99 NOT IN ( - CAST ( NULL AS INTEGER ) / + ( 47 ) + - 11 * - - NULLIF ( - 90, 95 ) + - 22 ) THEN NULL ELSE 31 END - - 22 AS col0
----
53

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2850
SELECT + CASE - - 73 WHEN - 25 THEN 16 END / - + COUNT( ALL + + 64 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2850
SELECT + CASE - - 73 WHEN - 25 THEN 16 END / - + COUNT ( ALL + + 64 ) AS col1
----
NULL

query I rowsort
SELECT - ( - 5 ) col1
----
5

query I rowsort
SELECT ALL 69 + + 67 + - + 79 - - - 98 * + + 13 * + 20 + + + 34
----
-25389

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

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

query I rowsort
SELECT DISTINCT 4 + - ( + 1 ) AS col1
----
3

query I rowsort
SELECT + 33 * + + 37
----
1221

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

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

query I rowsort
SELECT DISTINCT 56 * - 86 AS col1
----
-4816

query I rowsort
SELECT DISTINCT 68 + 69 * - 76
----
-5176

onlyif mysql # aggregate syntax: 
query II rowsort label-2859
SELECT + COUNT( * ) * - 56 + ( + ( - 16 ) ) + + 29 * - 22 AS col2, 57 * + ( + 44 ) AS col1
----
-710
2508

skipif mysql # not compatible
query II rowsort label-2859
SELECT + COUNT ( * ) * - 56 + ( + ( - 16 ) ) + + 29 * - 22 AS col2, 57 * + ( + 44 ) AS col1
----
-710
2508

query I rowsort
SELECT + + 82 + - 16
----
66

query I rowsort
SELECT - + 76 * - 53 AS col2
----
4028

onlyif mysql # aggregate syntax: 
query I rowsort label-2862
SELECT COUNT( * ) * 94 + COUNT( * ) + - - 12 * - 33
----
-301

skipif mysql # not compatible
query I rowsort label-2862
SELECT COUNT ( * ) * 94 + COUNT ( * ) + - - 12 * - 33
----
-301

onlyif mysql # aggregate syntax: 
query I rowsort label-2863
SELECT MAX( - ( + 14 ) ) AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-2863
SELECT MAX ( - ( + 14 ) ) AS col0
----
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-2864
SELECT + 89 DIV - ( + 18 ) AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-2864
SELECT + 89 / - ( + 18 ) AS col1
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-2865
SELECT + 7 DIV 6 * ( - 40 ) - - 34
----
-6

skipif mysql # not compatible
query I rowsort label-2865
SELECT + 7 / 6 * ( - 40 ) - - 34
----
-6

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2867
SELECT ALL + MAX( ALL - - 41 ) * + - 61
----
-2501

skipif mysql # not compatible
query I rowsort label-2867
SELECT ALL + MAX ( ALL - - 41 ) * + - 61
----
-2501

query I rowsort
SELECT 29 + 4
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-2869
SELECT 60 DIV 59 + - 40
----
-39

skipif mysql # not compatible
query I rowsort label-2869
SELECT 60 / 59 + - 40
----
-39

query II rowsort
SELECT + 32 * - + 19 + 25 * - 42, 28 AS col2
----
-1658
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2871
SELECT ALL - + COALESCE ( COUNT( * ), COALESCE ( - NULLIF ( 57, - + CAST( NULL AS SIGNED ) ), + 18, + 4 ) ) * - + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-2871
SELECT ALL - + COALESCE ( COUNT ( * ), COALESCE ( - NULLIF ( 57, - + CAST ( NULL AS INTEGER ) ), + 18, + 4 ) ) * - + COUNT ( * )
----
1

query I rowsort
SELECT + 39 * - + 1
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-2873
SELECT 9 + ( + COUNT( * ) )
----
10

skipif mysql # not compatible
query I rowsort label-2873
SELECT 9 + ( + COUNT ( * ) )
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-2874
SELECT + + MIN( 11 ), 84 AS col1
----
11
84

skipif mysql # not compatible
query II rowsort label-2874
SELECT + + MIN ( 11 ), 84 AS col1
----
11
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2875
SELECT 66 - + CAST( NULL AS SIGNED ) + + CASE - - COUNT( * ) WHEN + + NULLIF ( - - 14, + 25 ) * + ( + SUM( DISTINCT - 29 ) ) THEN + SUM( DISTINCT - 41 ) WHEN - 48 * + 67 THEN - 47 * ( - - 84 ) * 58 WHEN - COUNT( * ) * 86 * CASE SUM( ALL + 63 ) WHEN + - 56 * - NULLIF ( - COUNT( * ), - 81 / - COUNT( * ) * + 28 ) THEN 23 WHEN - 46 * - 73 + + - MIN( - 52 ) THEN + 9 * - COUNT( * ) + + 7 * CAST( NULL AS SIGNED ) ELSE NULL END / + 41 THEN + 19 + - 53 END + 40 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2875
SELECT 66 - + CAST ( NULL AS INTEGER ) + + CASE - - COUNT ( * ) WHEN + + NULLIF ( - - 14, + 25 ) * + ( + SUM ( DISTINCT - 29 ) ) THEN + SUM ( DISTINCT - 41 ) WHEN - 48 * + 67 THEN - 47 * ( - - 84 ) * 58 WHEN - COUNT ( * ) * 86 * CASE SUM ( ALL + 63 ) WHEN + - 56 * - NULLIF ( - COUNT ( * ), - 81 / - COUNT ( * ) * + 28 ) THEN 23 WHEN - 46 * - 73 + + - MIN ( - 52 ) THEN + 9 * - COUNT ( * ) + + 7 * CAST ( NULL AS INTEGER ) ELSE NULL END / + 41 THEN + 19 + - 53 END + 40 AS col0
----
NULL

query I rowsort
SELECT ALL + 87 * - + 96 AS col2
----
-8352

query I rowsort
SELECT 37 * 94 AS col2
----
3478

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2879
SELECT DISTINCT - COUNT( * ) + 51 col0
----
50

skipif mysql # not compatible
query I rowsort label-2879
SELECT DISTINCT - COUNT ( * ) + 51 col0
----
50

query I rowsort
SELECT ALL + 51 + + 25 AS col0
----
76

query I rowsort
SELECT 62 * 8
----
496

onlyif mysql # DIV for integer division: 
query II rowsort label-2882
SELECT 65 + + ( + 33 ) + - 37 * + 78 * - - 22, 42 + - + 49 DIV + 59 AS col1
----
-63394
42

skipif mysql # not compatible
query II rowsort label-2882
SELECT 65 + + ( + 33 ) + - 37 * + 78 * - - 22, 42 + - + 49 / + 59 AS col1
----
-63394
42

query I rowsort
SELECT DISTINCT 99 + + COALESCE ( + 81, 3, + 23 - + + 29 * + + ( + 55 ) ) * + 84 AS col2
----
6903

query I rowsort
SELECT 52 + + - 9 AS col2
----
43

query I rowsort
SELECT 61 + - - 62
----
123

query I rowsort
SELECT ALL + 24 * + 67
----
1608

query I rowsort
SELECT DISTINCT + 34 + + 57 * + 71 * + 97
----
392593

query I rowsort
SELECT DISTINCT - 79 - 39 * - 7
----
194

query II rowsort
SELECT ALL 98 col1, 50
----
98
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2890
SELECT CASE WHEN NULL IS NOT NULL THEN 44 ELSE + ( COALESCE ( - 5, - 23, + 61 * + 64 + - + 39 * - MAX( - NULLIF ( 69, + CAST( NULL AS SIGNED ) ) ) + - + ( COUNT( * ) ), COUNT( * ) ) ) END + - 13 + + 56 + - - 83 + + 26 + 59 * SUM( + - 52 ) * - 31 + - CASE 43 WHEN - - CAST( 4 AS SIGNED ) + - - SUM( DISTINCT - 44 ) THEN NULL ELSE - - CASE + + 98 WHEN - - 2 / + 4 THEN NULLIF ( + 50, - CAST( + COUNT( * ) AS SIGNED ) * + COUNT( * ) - 38 ) * - 73 + 67 ELSE NULL END / 63 END * 71 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2890
SELECT CASE WHEN NULL IS NOT NULL THEN 44 ELSE + ( COALESCE ( - 5, - 23, + 61 * + 64 + - + 39 * - MAX ( - NULLIF ( 69, + CAST ( NULL AS INTEGER ) ) ) + - + ( COUNT ( * ) ), COUNT ( * ) ) ) END + - 13 + + 56 + - - 83 + + 26 + 59 * SUM ( + - 52 ) * - 31 + - CASE 43 WHEN - - CAST ( 4 AS INTEGER ) + - - SUM ( DISTINCT - 44 ) THEN NULL ELSE - - CASE + + 98 WHEN - - 2 / + 4 THEN NULLIF ( + 50, - CAST ( + COUNT ( * ) AS INTEGER ) * + COUNT ( * ) - 38 ) * - 73 + 67 ELSE NULL END / 63 END * 71 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2891
SELECT + COUNT( DISTINCT + 83 ) + + 79 * - 77 AS col2
----
-6082

skipif mysql # not compatible
query I rowsort label-2891
SELECT + COUNT ( DISTINCT + 83 ) + + 79 * - 77 AS col2
----
-6082

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2892
SELECT ALL + 86 - + - MIN( - - 28 ) col0, + 17 DIV + 27
----
114
0

skipif mysql # not compatible
query II rowsort label-2892
SELECT ALL + 86 - + - MIN ( - - 28 ) col0, + 17 / + 27
----
114
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2893
SELECT + NULLIF ( + 56, - 59 + + - CASE - - COUNT( * ) WHEN NULLIF ( + 12, - + MIN( - + 21 ) + - + 54 * - - CAST( 86 AS SIGNED ) + + COALESCE ( + 51, - CASE - + 74 WHEN - + 59 + - - 10 THEN NULL ELSE + + 11 * - 7 END, - 28 ) ) THEN - 98 * - 28 WHEN - - 77 THEN COUNT( + - 36 ) ELSE + ( + 67 ) / + 79 + 92 END * - 28 - + 18 ) * + ( + 22 ) col2
----
1232

skipif mysql # not compatible
query I rowsort label-2893
SELECT + NULLIF ( + 56, - 59 + + - CASE - - COUNT ( * ) WHEN NULLIF ( + 12, - + MIN ( - + 21 ) + - + 54 * - - CAST ( 86 AS INTEGER ) + + COALESCE ( + 51, - CASE - + 74 WHEN - + 59 + - - 10 THEN NULL ELSE + + 11 * - 7 END, - 28 ) ) THEN - 98 * - 28 WHEN - - 77 THEN COUNT ( + - 36 ) ELSE + ( + 67 ) / + 79 + 92 END * - 28 - + 18 ) * + ( + 22 ) col2
----
1232

onlyif mysql # aggregate syntax: 
query I rowsort label-2894
SELECT 96 * - + 77 + 28 + + + 46 + COUNT( * ) + + 90
----
-7227

skipif mysql # not compatible
query I rowsort label-2894
SELECT 96 * - + 77 + 28 + + + 46 + COUNT ( * ) + + 90
----
-7227

query I rowsort
SELECT + 37 + - 56 + + 59
----
40

query II rowsort
SELECT 26 + + 8 + + 37 col2, ( - 0 ) AS col2
----
71
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2897
SELECT ALL 90 - COUNT( DISTINCT CAST( + 49 AS DECIMAL ) ) col1
----
89

skipif mysql # not compatible
query I rowsort label-2897
SELECT ALL 90 - COUNT ( DISTINCT CAST ( + 49 AS REAL ) ) col1
----
89

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2898
SELECT ALL NULLIF ( - 22, + 75 - + 26 + - CAST( + - SUM( - 66 ) AS DECIMAL ) * 3 + + CAST( + + 45 AS DECIMAL ) ) AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-2898
SELECT ALL NULLIF ( - 22, + 75 - + 26 + - CAST ( + - SUM ( - 66 ) AS REAL ) * 3 + + CAST ( + + 45 AS REAL ) ) AS col1
----
-22

query I rowsort
SELECT ALL 17 * + + 15 AS col2
----
255

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

query I rowsort
SELECT 44 * 64
----
2816

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2903
SELECT ALL + COUNT( * ) + 83 + - 56 DIV 12
----
80

skipif mysql # not compatible
query I rowsort label-2903
SELECT ALL + COUNT ( * ) + 83 + - 56 / 12
----
80

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2905
SELECT + 37 + - MAX( + 82 ) AS col2, 40 * - CAST( + + 22 AS SIGNED )
----
-45
-880

skipif mysql # not compatible
query II rowsort label-2905
SELECT + 37 + - MAX ( + 82 ) AS col2, 40 * - CAST ( + + 22 AS INTEGER )
----
-45
-880

query II rowsort
SELECT 79 AS col1, 9
----
79
9

query I rowsort
SELECT + 10 * 51 + 20 * + 10 + - ( 60 ) AS col1
----
650

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2908
SELECT ALL + 82 + - - ( + CAST( - 76 AS SIGNED ) ) + 80 AS col1
----
86

skipif mysql # not compatible
query I rowsort label-2908
SELECT ALL + 82 + - - ( + CAST ( - 76 AS INTEGER ) ) + 80 AS col1
----
86

query I rowsort
SELECT 56 * + - 53 AS col2
----
-2968

query I rowsort
SELECT 62 + - + NULLIF ( 48, + 1 * 78 * + 10 ) AS col1
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2911
SELECT DISTINCT - 10 + + CAST( NULL AS SIGNED ) + + 16 + - - 61 + + 10 / + 83 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2911
SELECT DISTINCT - 10 + + CAST ( NULL AS INTEGER ) + + 16 + - - 61 + + 10 / + 83 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2912
SELECT ALL - COALESCE ( MIN( 90 ), - 99 )
----
-90

skipif mysql # not compatible
query I rowsort label-2912
SELECT ALL - COALESCE ( MIN ( 90 ), - 99 )
----
-90

query I rowsort
SELECT 46 * + 76 AS col1
----
3496

query I rowsort
SELECT 97 + 65 * - 53 - - 31
----
-3317

query II rowsort
SELECT 8 AS col2, COALESCE ( - 48, + + ( 42 ) * COALESCE ( 21, + 92, - - 35, 54 ) * 49 )
----
8
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2916
SELECT ALL - MAX( - 30 ) - + + ( - CAST( NULL AS SIGNED ) ) + - 16 * - 69 / - 50 * + 60
----
NULL

skipif mysql # not compatible
query I rowsort label-2916
SELECT ALL - MAX ( - 30 ) - + + ( - CAST ( NULL AS INTEGER ) ) + - 16 * - 69 / - 50 * + 60
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2917
SELECT ALL 41, MAX( DISTINCT - - ( + 16 ) ) AS col2
----
41
16

skipif mysql # not compatible
query II rowsort label-2917
SELECT ALL 41, MAX ( DISTINCT - - ( + 16 ) ) AS col2
----
41
16

query II rowsort
SELECT - 97, 34 col1
----
-97
34

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

query II rowsort
SELECT + 88 AS col0, ( + 69 ) AS col1
----
88
69

query I rowsort
SELECT 10 * + 12
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-2922
SELECT - COUNT( * ) * - + ( + COUNT( ALL - - 98 ) ) * - 98 - 21 + NULLIF ( - 99, - ( - 21 ) ) + - NULLIF ( 57, - NULLIF ( + - 39, + 46 / - 53 ) ) * - 18
----
808

skipif mysql # not compatible
query I rowsort label-2922
SELECT - COUNT ( * ) * - + ( + COUNT ( ALL - - 98 ) ) * - 98 - 21 + NULLIF ( - 99, - ( - 21 ) ) + - NULLIF ( 57, - NULLIF ( + - 39, + 46 / - 53 ) ) * - 18
----
808

onlyif mysql # aggregate syntax: 
query I rowsort label-2923
SELECT ALL SUM( + 24 ) AS col2
----
24

skipif mysql # not compatible
query I rowsort label-2923
SELECT ALL SUM ( + 24 ) AS col2
----
24

query II rowsort
SELECT DISTINCT - 92, 27 AS col2
----
-92
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2925
SELECT ALL - CASE + 87 WHEN - 90 / + + 66 + + 89 / 20 * - 98 + COUNT( * ) THEN + 67 - - MIN( + - NULLIF ( 42, 34 * 11 ) ) * + 73 + + + COUNT( DISTINCT - 64 ) + - + COALESCE ( + 33, - 46 ) * 97 WHEN - COALESCE ( - + COUNT( * ), 99 ) * 86 * + - 80 * - 88 / CAST( NULL AS SIGNED ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2925
SELECT ALL - CASE + 87 WHEN - 90 / + + 66 + + 89 / 20 * - 98 + COUNT ( * ) THEN + 67 - - MIN ( + - NULLIF ( 42, 34 * 11 ) ) * + 73 + + + COUNT ( DISTINCT - 64 ) + - + COALESCE ( + 33, - 46 ) * 97 WHEN - COALESCE ( - + COUNT ( * ), 99 ) * 86 * + - 80 * - 88 / CAST ( NULL AS INTEGER ) THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2926
SELECT + + 49 * + CASE - + ( - COUNT( * ) ) WHEN + CAST( NULL AS SIGNED ) * + 72 * 37 + - 38 + COUNT( * ) - + + 1 DIV - - ( 59 ) * - NULLIF ( + 19, + 34 * + 28 DIV - 97 ) THEN NULL ELSE + COALESCE ( - - 28, 46 * + 46, - CAST( NULL AS SIGNED ) DIV - CAST( NULL AS SIGNED ) * COUNT( * ) DIV 68 ) END + - COUNT( * )
----
1371

skipif mysql # not compatible
query I rowsort label-2926
SELECT + + 49 * + CASE - + ( - COUNT ( * ) ) WHEN + CAST ( NULL AS INTEGER ) * + 72 * 37 + - 38 + COUNT ( * ) - + + 1 / - - ( 59 ) * - NULLIF ( + 19, + 34 * + 28 / - 97 ) THEN NULL ELSE + COALESCE ( - - 28, 46 * + 46, - CAST ( NULL AS INTEGER ) / - CAST ( NULL AS INTEGER ) * COUNT ( * ) / 68 ) END + - COUNT ( * )
----
1371

query I rowsort
SELECT + - 75 * + 94 + - 36 AS col2
----
-7086

onlyif mysql # aggregate syntax: 
query I rowsort label-2928
SELECT + ( - 37 ) * - 75 * + - 31 + NULLIF ( 60, + COUNT( * ) * 89 ) * - - MAX( DISTINCT + - 78 ) * - 5 + - 3
----
-62628

skipif mysql # not compatible
query I rowsort label-2928
SELECT + ( - 37 ) * - 75 * + - 31 + NULLIF ( 60, + COUNT ( * ) * 89 ) * - - MAX ( DISTINCT + - 78 ) * - 5 + - 3
----
-62628

onlyif mysql # aggregate syntax: 
query I rowsort label-2929
SELECT MAX( 86 ) AS col0
----
86

skipif mysql # not compatible
query I rowsort label-2929
SELECT MAX ( 86 ) AS col0
----
86

query I rowsort
SELECT + NULLIF ( - - 25, - + 22 * - 14 ) * 94
----
2350

query I rowsort
SELECT DISTINCT + + 73 * - 90 + - + 17 AS col2
----
-6587

onlyif mysql # aggregate syntax: 
query I rowsort label-2932
SELECT + 70 + - COALESCE ( - - ( 35 ), + COUNT( * ) - + - 38 - - 1 * MAX( - + 23 ) ) + - - COALESCE ( - 88, NULLIF ( + SUM( DISTINCT + - CASE - + 39 WHEN + 67 + - + 25 THEN NULL WHEN + ( - 27 ) THEN + 47 END ), - 11 * 57 * NULLIF ( - 52, ( + ( + + 19 ) ) ) * + - CASE 45 WHEN + 77 THEN 78 END - + ( - COUNT( * ) ) + 61 ) ) / - - CASE - + COALESCE ( 12, ( 23 ) * - 80 ) WHEN - 79 THEN NULL WHEN 88 / - 72 THEN + 17 ELSE NULL END * MIN( ALL + 48 + - 23 ) + - MAX( 69 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2932
SELECT + 70 + - COALESCE ( - - ( 35 ), + COUNT ( * ) - + - 38 - - 1 * MAX ( - + 23 ) ) + - - COALESCE ( - 88, NULLIF ( + SUM ( DISTINCT + - CASE - + 39 WHEN + 67 + - + 25 THEN NULL WHEN + ( - 27 ) THEN + 47 END ), - 11 * 57 * NULLIF ( - 52, ( + ( + + 19 ) ) ) * + - CASE 45 WHEN + 77 THEN 78 END - + ( - COUNT ( * ) ) + 61 ) ) / - - CASE - + COALESCE ( 12, ( 23 ) * - 80 ) WHEN - 79 THEN NULL WHEN 88 / - 72 THEN + 17 ELSE NULL END * MIN ( ALL + 48 + - 23 ) + - MAX ( 69 )
----
NULL

query II rowsort
SELECT ALL 82 * 98 AS col0, 7
----
8036
7

query I rowsort
SELECT DISTINCT 94 * - 6 AS col2
----
-564

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2935
SELECT - COUNT( * ) * + + 1 + - + CAST( 51 AS SIGNED )
----
-52

skipif mysql # not compatible
query I rowsort label-2935
SELECT - COUNT ( * ) * + + 1 + - + CAST ( 51 AS INTEGER )
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-2936
SELECT MAX( DISTINCT + + 51 ) AS col0
----
51

skipif mysql # not compatible
query I rowsort label-2936
SELECT MAX ( DISTINCT + + 51 ) AS col0
----
51

query II rowsort
SELECT + 16 - - - 11, 8 AS col2
----
5
8

onlyif mysql # aggregate syntax: 
query II rowsort label-2938
SELECT DISTINCT COUNT( * ) * 98 - + 16 AS col2, + ( + 98 ) + + 98
----
82
196

skipif mysql # not compatible
query II rowsort label-2938
SELECT DISTINCT COUNT ( * ) * 98 - + 16 AS col2, + ( + 98 ) + + 98
----
82
196

onlyif mysql # aggregate syntax: 
query I rowsort label-2939
SELECT ALL + SUM( 37 ) AS col2
----
37

skipif mysql # not compatible
query I rowsort label-2939
SELECT ALL + SUM ( 37 ) AS col2
----
37

onlyif mysql # aggregate syntax: 
query II rowsort label-2940
SELECT - ( - COUNT( * ) ) AS col2, + 79
----
1
79

skipif mysql # not compatible
query II rowsort label-2940
SELECT - ( - COUNT ( * ) ) AS col2, + 79
----
1
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2941
SELECT + 57 + ( - CAST( + 39 AS SIGNED ) ) col2
----
18

skipif mysql # not compatible
query I rowsort label-2941
SELECT + 57 + ( - CAST ( + 39 AS INTEGER ) ) col2
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2942
SELECT + 74 * - 79 * CASE COALESCE ( - + COUNT( * ), + CASE - 75 WHEN - + COUNT( * ) THEN + + 54 END ) WHEN - - 69 THEN + 17 WHEN - 21 - - 16 / + - 83 THEN NULL WHEN - 85 THEN NULL ELSE + CASE + 73 WHEN 89 * - COUNT( * ) + 41 * - 34 + + MIN( - 23 ) THEN + + 92 * + COUNT( * ) WHEN - - 57 + - 9 THEN NULL ELSE NULL END + + COUNT( * ) * + 53 END * - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2942
SELECT + 74 * - 79 * CASE COALESCE ( - + COUNT ( * ), + CASE - 75 WHEN - + COUNT ( * ) THEN + + 54 END ) WHEN - - 69 THEN + 17 WHEN - 21 - - 16 / + - 83 THEN NULL WHEN - 85 THEN NULL ELSE + CASE + 73 WHEN 89 * - COUNT ( * ) + 41 * - 34 + + MIN ( - 23 ) THEN + + 92 * + COUNT ( * ) WHEN - - 57 + - 9 THEN NULL ELSE NULL END + + COUNT ( * ) * + 53 END * - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2943
SELECT ALL 80 DIV - - 54 AS col0, 12 * 73 col0
----
1
876

skipif mysql # not compatible
query II rowsort label-2943
SELECT ALL 80 / - - 54 AS col0, 12 * 73 col0
----
1
876

onlyif mysql # aggregate syntax: 
query I rowsort label-2944
SELECT + MIN( + 34 ) + 96
----
130

skipif mysql # not compatible
query I rowsort label-2944
SELECT + MIN ( + 34 ) + 96
----
130

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2945
SELECT + CAST( NULL AS SIGNED ) * 79, MAX( DISTINCT - 39 ) AS col0
----
NULL
-39

skipif mysql # not compatible
query II rowsort label-2945
SELECT + CAST ( NULL AS INTEGER ) * 79, MAX ( DISTINCT - 39 ) AS col0
----
NULL
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2946
SELECT + CAST( + 12 AS SIGNED ) + + + 69
----
81

skipif mysql # not compatible
query I rowsort label-2946
SELECT + CAST ( + 12 AS INTEGER ) + + + 69
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2947
SELECT DISTINCT ( - 7 ) - - COUNT( DISTINCT - 61 )
----
-6

skipif mysql # not compatible
query I rowsort label-2947
SELECT DISTINCT ( - 7 ) - - COUNT ( DISTINCT - 61 )
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-2948
SELECT + ( + 96 ) + + 61 + + - COALESCE ( - - 15, + 88 * - 92 + COUNT( * ), + - ( - 77 ) ) AS col1
----
142

skipif mysql # not compatible
query I rowsort label-2948
SELECT + ( + 96 ) + + 61 + + - COALESCE ( - - 15, + 88 * - 92 + COUNT ( * ), + - ( - 77 ) ) AS col1
----
142

query I rowsort
SELECT - NULLIF ( 83, - 87 )
----
-83

query I rowsort
SELECT - 94 + - 12
----
-106

query I rowsort
SELECT + - 20 * ( - 80 ) AS col0
----
1600

onlyif mysql # DIV for integer division: 
query I rowsort label-2952
SELECT ALL - + 84 * 46 - - 62 DIV + + 13
----
-3860

skipif mysql # not compatible
query I rowsort label-2952
SELECT ALL - + 84 * 46 - - 62 / + + 13
----
-3860

onlyif mysql # aggregate syntax: 
query I rowsort label-2953
SELECT + + 3 + 8 * - - 19 * COUNT( * ) AS col0
----
155

skipif mysql # not compatible
query I rowsort label-2953
SELECT + + 3 + 8 * - - 19 * COUNT ( * ) AS col0
----
155

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2954
SELECT DISTINCT CAST( NULL AS DECIMAL ) * + + 60
----
NULL

skipif mysql # not compatible
query I rowsort label-2954
SELECT DISTINCT CAST ( NULL AS REAL ) * + + 60
----
NULL

query I rowsort
SELECT ALL + 64 * 60
----
3840

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2956
SELECT DISTINCT NULLIF ( + 22, CAST( 90 AS SIGNED ) ) + - CAST( - ( + 56 ) AS SIGNED ) AS col1
----
78

skipif mysql # not compatible
query I rowsort label-2956
SELECT DISTINCT NULLIF ( + 22, CAST ( 90 AS INTEGER ) ) + - CAST ( - ( + 56 ) AS INTEGER ) AS col1
----
78

query I rowsort
SELECT ( - 46 ) AS col1
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2958
SELECT - 35 * - + COUNT( * ), - 80 * COALESCE ( + 92, + 33 + + CASE + 85 WHEN + 9 + NULLIF ( + - CAST( NULL AS SIGNED ), 95 ) * - + COUNT( * ) THEN 8 + - ( - ( - + SUM( - 71 ) ) ) WHEN 44 * - 33 THEN - MIN( 75 ) ELSE 69 END ) + + CAST( NULL AS SIGNED ) AS col2
----
35
NULL

skipif mysql # not compatible
query II rowsort label-2958
SELECT - 35 * - + COUNT ( * ), - 80 * COALESCE ( + 92, + 33 + + CASE + 85 WHEN + 9 + NULLIF ( + - CAST ( NULL AS INTEGER ), 95 ) * - + COUNT ( * ) THEN 8 + - ( - ( - + SUM ( - 71 ) ) ) WHEN 44 * - 33 THEN - MIN ( 75 ) ELSE 69 END ) + + CAST ( NULL AS INTEGER ) AS col2
----
35
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2959
SELECT - - 87 + + 0 AS col1, - COUNT( * ) + - 57 + - + 71 * 59 + MAX( ALL + + 65 ) DIV 75 + + NULLIF ( + MAX( ALL - ( + - 73 ) ), + ( + - 57 ) + + 3 ) AS col1
----
87
-4174

skipif mysql # not compatible
query II rowsort label-2959
SELECT - - 87 + + 0 AS col1, - COUNT ( * ) + - 57 + - + 71 * 59 + MAX ( ALL + + 65 ) / 75 + + NULLIF ( + MAX ( ALL - ( + - 73 ) ), + ( + - 57 ) + + 3 ) AS col1
----
87
-4174

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2960
SELECT ALL - 82 DIV + 56 * - - COUNT( * ) DIV + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-2960
SELECT ALL - 82 / + 56 * - - COUNT ( * ) / + COUNT ( * )
----
-1

query I rowsort
SELECT - + 12 + + - 67 AS col2
----
-79

query I rowsort
SELECT - - 27 * - 75 AS col0
----
-2025

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2963
SELECT ALL - COUNT( * ) DIV + 4, - COUNT( * ) DIV + - ( + 86 )
----
0
0

skipif mysql # not compatible
query II rowsort label-2963
SELECT ALL - COUNT ( * ) / + 4, - COUNT ( * ) / + - ( + 86 )
----
0
0

query I rowsort
SELECT + + 17 * - 33 + - 53 + 22 * + 25 * 16 AS col2
----
8186

onlyif mysql # aggregate syntax: 
query I rowsort label-2965
SELECT ALL - 88 * - COUNT( * ) + 51 + - + 68 + 96 AS col2
----
167

skipif mysql # not compatible
query I rowsort label-2965
SELECT ALL - 88 * - COUNT ( * ) + 51 + - + 68 + 96 AS col2
----
167

onlyif mysql # aggregate syntax: 
query I rowsort label-2966
SELECT + SUM( DISTINCT + 23 ) AS col1
----
23

skipif mysql # not compatible
query I rowsort label-2966
SELECT + SUM ( DISTINCT + 23 ) AS col1
----
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2967
SELECT ALL COUNT( * ) DIV - ( - - 57 ) + + + COUNT( * ) * 60 AS col1
----
60

skipif mysql # not compatible
query I rowsort label-2967
SELECT ALL COUNT ( * ) / - ( - - 57 ) + + + COUNT ( * ) * 60 AS col1
----
60

query I rowsort
SELECT DISTINCT + NULLIF ( + 11, + NULLIF ( + 58, 4 ) )
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2969
SELECT CAST( - 68 AS SIGNED )
----
-68

skipif mysql # not compatible
query I rowsort label-2969
SELECT CAST ( - 68 AS INTEGER )
----
-68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2970
SELECT - COUNT( * ) DIV - 57 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2970
SELECT - COUNT ( * ) / - 57 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2971
SELECT ALL + 92 / + - CASE + COALESCE ( 40, + 34 + - 88 * - - 0, + - 42 ) WHEN + COUNT( * ) + + 77 + CAST( + 86 AS SIGNED ) + - 75 * + COUNT( * ) THEN - + 44 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2971
SELECT ALL + 92 / + - CASE + COALESCE ( 40, + 34 + - 88 * - - 0, + - 42 ) WHEN + COUNT ( * ) + + 77 + CAST ( + 86 AS INTEGER ) + - 75 * + COUNT ( * ) THEN - + 44 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2972
SELECT - MIN( DISTINCT + 37 ) * - - 51 AS col1
----
-1887

skipif mysql # not compatible
query I rowsort label-2972
SELECT - MIN ( DISTINCT + 37 ) * - - 51 AS col1
----
-1887

onlyif mysql # aggregate syntax: 
query I rowsort label-2973
SELECT 65 * - 8 + 49 + COUNT( * ) * - 14 AS col1
----
-485

skipif mysql # not compatible
query I rowsort label-2973
SELECT 65 * - 8 + 49 + COUNT ( * ) * - 14 AS col1
----
-485

onlyif mysql # aggregate syntax: 
query II rowsort label-2974
SELECT + COUNT( * ) AS col2, + 97 * 70 * - + 54
----
1
-366660

skipif mysql # not compatible
query II rowsort label-2974
SELECT + COUNT ( * ) AS col2, + 97 * 70 * - + 54
----
1
-366660

query I rowsort
SELECT + ( - - 58 ) AS col2
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2976
SELECT ALL ( - CAST( - ( COUNT( * ) ) AS SIGNED ) ) * - - ( COUNT( * ) ) - - 28
----
29

skipif mysql # not compatible
query I rowsort label-2976
SELECT ALL ( - CAST ( - ( COUNT ( * ) ) AS INTEGER ) ) * - - ( COUNT ( * ) ) - - 28
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-2977
SELECT ( + + SUM( - 86 ) ) col2
----
-86

skipif mysql # not compatible
query I rowsort label-2977
SELECT ( + + SUM ( - 86 ) ) col2
----
-86

query I rowsort
SELECT ALL + ( + ( + 7 ) ) AS col0
----
7

query I rowsort
SELECT + 81 * + + ( + NULLIF ( 4, + 40 ) )
----
324

onlyif mysql # aggregate syntax: 
query I rowsort label-2980
SELECT ALL 92 * - - MAX( 33 ) * - 62
----
-188232

skipif mysql # not compatible
query I rowsort label-2980
SELECT ALL 92 * - - MAX ( 33 ) * - 62
----
-188232

onlyif mysql # aggregate syntax: 
query I rowsort label-2981
SELECT + MIN( 71 ) + 30 AS col0
----
101

skipif mysql # not compatible
query I rowsort label-2981
SELECT + MIN ( 71 ) + 30 AS col0
----
101

query I rowsort
SELECT + ( - + 20 )
----
-20

query I rowsort
SELECT ALL 39 * 85
----
3315

onlyif mysql # aggregate syntax: 
query I rowsort label-2984
SELECT - COUNT( * ) - + - 17
----
16

skipif mysql # not compatible
query I rowsort label-2984
SELECT - COUNT ( * ) - + - 17
----
16

query I rowsort
SELECT + 51 * 63 AS col2
----
3213

query I rowsort
SELECT + 38 * + 87 - + 13 - - 0
----
3293

query II rowsort
SELECT ALL 94 AS col1, 52
----
94
52

onlyif mysql # aggregate syntax: 
query I rowsort label-2988
SELECT - CASE ( - 59 ) WHEN - 61 - + COUNT( * ) THEN 64 * - 17 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2988
SELECT - CASE ( - 59 ) WHEN - 61 - + COUNT ( * ) THEN 64 * - 17 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2989
SELECT + COUNT( * ) + - + 44 * - - 26
----
-1143

skipif mysql # not compatible
query I rowsort label-2989
SELECT + COUNT ( * ) + - + 44 * - - 26
----
-1143

onlyif mysql # DIV for integer division: 
query I rowsort label-2990
SELECT 81 DIV 49
----
1

skipif mysql # not compatible
query I rowsort label-2990
SELECT 81 / 49
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2991
SELECT ALL - SUM( DISTINCT + - 37 )
----
37

skipif mysql # not compatible
query I rowsort label-2991
SELECT ALL - SUM ( DISTINCT + - 37 )
----
37

query II rowsort
SELECT ALL - 71, + 5 + - + ( + 72 ) AS col1
----
-71
-67

query II rowsort
SELECT 25 AS col1, 44
----
25
44

onlyif mysql # aggregate syntax: 
query II rowsort label-2994
SELECT ALL 84 * + 53 * - 14 * - COUNT( * ) AS col0, NULLIF ( 63, 79 ) AS col2
----
62328
63

skipif mysql # not compatible
query II rowsort label-2994
SELECT ALL 84 * + 53 * - 14 * - COUNT ( * ) AS col0, NULLIF ( 63, 79 ) AS col2
----
62328
63

query I rowsort
SELECT - 53 * + 27 AS col0
----
-1431

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2996
SELECT ALL 23 + 7 * 54 AS col0, 56 - + + CAST( + MIN( + 55 ) AS SIGNED ) + + + 49
----
401
50

skipif mysql # not compatible
query II rowsort label-2996
SELECT ALL 23 + 7 * 54 AS col0, 56 - + + CAST ( + MIN ( + 55 ) AS INTEGER ) + + + 49
----
401
50

onlyif mysql # aggregate syntax: 
query I rowsort label-2997
SELECT SUM( COALESCE ( - 42, + - 84 * + 86 + - 7 ) ) * - 85
----
3570

skipif mysql # not compatible
query I rowsort label-2997
SELECT SUM ( COALESCE ( - 42, + - 84 * + 86 + - 7 ) ) * - 85
----
3570

query II rowsort
SELECT - + 37, 91 AS col2
----
-37
91

query I rowsort
SELECT + 89 * 47 + + 80 + - + 98 + 69
----
4234

query II rowsort
SELECT - 85, 40 AS col1
----
-85
40

query I rowsort
SELECT ALL + CASE - ( + 75 ) WHEN + 98 THEN + + ( + + 89 ) WHEN + 28 THEN - + 49 END * - - 33 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3002
SELECT ALL + + CASE + CAST( + 1 AS SIGNED ) WHEN + 24 * 54 * 16 THEN + + ( 26 ) * 63 + + + 77 * CAST( NULL AS SIGNED ) / - 81 / - COUNT( * ) * 3 END + + ( - COUNT( * ) ) * + 26
----
NULL

skipif mysql # not compatible
query I rowsort label-3002
SELECT ALL + + CASE + CAST ( + 1 AS INTEGER ) WHEN + 24 * 54 * 16 THEN + + ( 26 ) * 63 + + + 77 * CAST ( NULL AS INTEGER ) / - 81 / - COUNT ( * ) * 3 END + + ( - COUNT ( * ) ) * + 26
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3003
SELECT - 69 * + - COUNT( + 79 ) + - 16 DIV ( + 10 ) AS col0
----
68

skipif mysql # not compatible
query I rowsort label-3003
SELECT - 69 * + - COUNT ( + 79 ) + - 16 / ( + 10 ) AS col0
----
68

query I rowsort
SELECT DISTINCT + 59 * 16 * - - 85 * - + COALESCE ( + 63, + 9 )
----
-5055120

onlyif mysql # aggregate syntax: 
query I rowsort label-3005
SELECT ALL 53 + + - 85 + - COUNT( * )
----
-33

skipif mysql # not compatible
query I rowsort label-3005
SELECT ALL 53 + + - 85 + - COUNT ( * )
----
-33

query I rowsort
SELECT 81 * + ( - 79 ) AS col2
----
-6399

onlyif mysql # aggregate syntax: 
query I rowsort label-3007
SELECT 55 + - ( + 49 ) + + SUM( ALL - - 48 ) * + 18
----
870

skipif mysql # not compatible
query I rowsort label-3007
SELECT 55 + - ( + 49 ) + + SUM ( ALL - - 48 ) * + 18
----
870

onlyif mysql # DIV for integer division: 
query I rowsort label-3008
SELECT ALL + 6 DIV + + 24
----
0

skipif mysql # not compatible
query I rowsort label-3008
SELECT ALL + 6 / + + 24
----
0

query I rowsort
SELECT + 73 * - 24 + - 0 AS col0
----
-1752

onlyif mysql # aggregate syntax: 
query I rowsort label-3010
SELECT 71 * - 59 * NULLIF ( - COUNT( * ), + 23 ) AS col0
----
4189

skipif mysql # not compatible
query I rowsort label-3010
SELECT 71 * - 59 * NULLIF ( - COUNT ( * ), + 23 ) AS col0
----
4189

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3011
SELECT 97 * 79 / + 47 + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3011
SELECT 97 * 79 / + 47 + CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT 90 + 31 + 21 - + + 2 * + 48 AS col0
----
46

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3013
SELECT - 34 * 0 + + + ( MIN( DISTINCT - + CAST( NULL AS DECIMAL ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3013
SELECT - 34 * 0 + + + ( MIN ( DISTINCT - + CAST ( NULL AS REAL ) ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3014
SELECT COUNT( * ) DIV + 86 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3014
SELECT COUNT ( * ) / + 86 AS col1
----
0

query I rowsort
SELECT ALL - ( - 2 )
----
2

query I rowsort
SELECT 86 * - ( + - 24 ) * 15 - 26
----
30934

query I rowsort
SELECT 96 * + 65 AS col1
----
6240

onlyif mysql # aggregate syntax: 
query I rowsort label-3018
SELECT ( + + COUNT( * ) ) + + 48 AS col0
----
49

skipif mysql # not compatible
query I rowsort label-3018
SELECT ( + + COUNT ( * ) ) + + 48 AS col0
----
49

onlyif mysql # aggregate syntax: 
query II rowsort label-3019
SELECT ALL - ( + + COUNT( * ) ) AS col1, 32 AS col2
----
-1
32

skipif mysql # not compatible
query II rowsort label-3019
SELECT ALL - ( + + COUNT ( * ) ) AS col1, 32 AS col2
----
-1
32

query I rowsort
SELECT DISTINCT - COALESCE ( 37, 9 + + NULLIF ( + + 91, + 70 + + ( - - 76 ) ) + 61, - + 92 ) + 47 AS col0
----
10

query I rowsort
SELECT - 29 + - 18
----
-47

query I rowsort
SELECT ALL + 48 + + 77
----
125

query I rowsort
SELECT ( 41 ) col0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-3024
SELECT - MAX( DISTINCT - 0 )
----
0

skipif mysql # not compatible
query I rowsort label-3024
SELECT - MAX ( DISTINCT - 0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3025
SELECT + 4 + COUNT( * )
----
5

skipif mysql # not compatible
query I rowsort label-3025
SELECT + 4 + COUNT ( * )
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3026
SELECT - NULLIF ( 4, + ( - + 72 ) + CAST( NULL AS SIGNED ) - SUM( + 22 ) ) AS col1, COUNT( * ) * 44 AS col1
----
-4
44

skipif mysql # not compatible
query II rowsort label-3026
SELECT - NULLIF ( 4, + ( - + 72 ) + CAST ( NULL AS INTEGER ) - SUM ( + 22 ) ) AS col1, COUNT ( * ) * 44 AS col1
----
-4
44

onlyif mysql # aggregate syntax: 
query II rowsort label-3027
SELECT 98 + 42 AS col0, + COUNT( * )
----
140
1

skipif mysql # not compatible
query II rowsort label-3027
SELECT 98 + 42 AS col0, + COUNT ( * )
----
140
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3028
SELECT - SUM( - 23 ) * + + CAST( ( + - 62 ) AS SIGNED ) AS col2, COUNT( * ) * 37 AS col0
----
-1426
37

skipif mysql # not compatible
query II rowsort label-3028
SELECT - SUM ( - 23 ) * + + CAST ( ( + - 62 ) AS INTEGER ) AS col2, COUNT ( * ) * 37 AS col0
----
-1426
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3029
SELECT ALL CAST( - - 20 AS SIGNED ) + 11
----
31

skipif mysql # not compatible
query I rowsort label-3029
SELECT ALL CAST ( - - 20 AS INTEGER ) + 11
----
31

query I rowsort
SELECT 67 + - 8 + 79 AS col0
----
138

query I rowsort
SELECT ALL + 30 - - + 14 + + 57
----
101

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3032
SELECT DISTINCT 41 DIV + MIN( + - 46 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3032
SELECT DISTINCT 41 / + MIN ( + - 46 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3033
SELECT + ( ( + 70 ) ) * + - ( - - 33 ) - - ( COUNT( * ) ) col0, 7 * - - 48
----
-2309
336

skipif mysql # not compatible
query II rowsort label-3033
SELECT + ( ( + 70 ) ) * + - ( - - 33 ) - - ( COUNT ( * ) ) col0, 7 * - - 48
----
-2309
336

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3034
SELECT ( + CAST( NULL AS DECIMAL ) ) + + 29 * + ( + 30 ) + 93 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3034
SELECT ( + CAST ( NULL AS REAL ) ) + + 29 * + ( + 30 ) + 93 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3035
SELECT + 20 / + COUNT( * ) + + 82 + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3035
SELECT + 20 / + COUNT ( * ) + + 82 + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3036
SELECT DISTINCT MAX( 8 ) DIV + 18 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3036
SELECT DISTINCT MAX ( 8 ) / + 18 AS col1
----
0

query I rowsort
SELECT 65 * 65 AS col0
----
4225

onlyif mysql # aggregate syntax: 
query I rowsort label-3038
SELECT ALL 23 - - 45 - + - MIN( DISTINCT 41 ) * 58 * - + 63
----
-149746

skipif mysql # not compatible
query I rowsort label-3038
SELECT ALL 23 - - 45 - + - MIN ( DISTINCT 41 ) * 58 * - + 63
----
-149746

query I rowsort
SELECT ALL 63 * + 98
----
6174

query I rowsort
SELECT 6 * - 7
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-3041
SELECT MAX( ALL + 50 ) AS col1
----
50

skipif mysql # not compatible
query I rowsort label-3041
SELECT MAX ( ALL + 50 ) AS col1
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3042
SELECT ALL - 51 AS col0, COUNT( * ) + - CAST( NULL AS SIGNED ) + - + 87 * - 0 * - 53 * 95
----
-51
NULL

skipif mysql # not compatible
query II rowsort label-3042
SELECT ALL - 51 AS col0, COUNT ( * ) + - CAST ( NULL AS INTEGER ) + - + 87 * - 0 * - 53 * 95
----
-51
NULL

query I rowsort
SELECT ALL - ( + 65 ) * 73 * - 7 + - 46 + - NULLIF ( + 91, - 74 ) AS col0
----
33078

onlyif mysql # aggregate syntax: 
query I rowsort label-3044
SELECT + CASE + - 66 WHEN 32 + - - 82 THEN - + NULLIF ( COUNT( * ), - - 63 ) ELSE - 48 END AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-3044
SELECT + CASE + - 66 WHEN 32 + - - 82 THEN - + NULLIF ( COUNT ( * ), - - 63 ) ELSE - 48 END AS col1
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3045
SELECT + CAST( NULL AS SIGNED ) * + 91 * + + 99 * 37
----
NULL

skipif mysql # not compatible
query I rowsort label-3045
SELECT + CAST ( NULL AS INTEGER ) * + 91 * + + 99 * 37
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3046
SELECT ALL ( - 56 ) * ( 82 ) + - - SUM( - 94 )
----
-4686

skipif mysql # not compatible
query I rowsort label-3046
SELECT ALL ( - 56 ) * ( 82 ) + - - SUM ( - 94 )
----
-4686

onlyif mysql # aggregate syntax: 
query I rowsort label-3047
SELECT DISTINCT + MIN( DISTINCT - + 20 )
----
-20

skipif mysql # not compatible
query I rowsort label-3047
SELECT DISTINCT + MIN ( DISTINCT - + 20 )
----
-20

query I rowsort
SELECT ALL - 85 * - 72 + + + 53 * - 52
----
3364

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3049
SELECT DISTINCT - NULLIF ( - 82, + COUNT( * ) ) * + 32 * - CAST( 18 AS SIGNED ) + + 27 + CAST( NULL AS SIGNED ) - + - 19 * + COUNT( * ) + - + 72 + - 15 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3049
SELECT DISTINCT - NULLIF ( - 82, + COUNT ( * ) ) * + 32 * - CAST ( 18 AS INTEGER ) + + 27 + CAST ( NULL AS INTEGER ) - + - 19 * + COUNT ( * ) + - + 72 + - 15 col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3050
SELECT - - 41 + + 24 * - + COUNT( * ) + + 18 + 20 - - 57, 72 AS col2
----
112
72

skipif mysql # not compatible
query II rowsort label-3050
SELECT - - 41 + + 24 * - + COUNT ( * ) + + 18 + 20 - - 57, 72 AS col2
----
112
72

onlyif mysql # aggregate syntax: 
query I rowsort label-3051
SELECT - + 83 * 36 + - COUNT( * )
----
-2989

skipif mysql # not compatible
query I rowsort label-3051
SELECT - + 83 * 36 + - COUNT ( * )
----
-2989

query I rowsort
SELECT ALL + + 81 * + 31 + + 28 AS col0
----
2539

query I rowsort
SELECT DISTINCT + - 48 * + 94 * - + 92 AS col2
----
415104

onlyif mysql # DIV for integer division: 
query I rowsort label-3054
SELECT - 75 DIV + 8
----
-9

skipif mysql # not compatible
query I rowsort label-3054
SELECT - 75 / + 8
----
-9

query I rowsort
SELECT ALL + - COALESCE ( - - 71, 74 )
----
-71

query I rowsort
SELECT - 88 * + + 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3057
SELECT + + ( 36 ) * 30 + - COUNT( DISTINCT 41 ) + - 0
----
1079

skipif mysql # not compatible
query I rowsort label-3057
SELECT + + ( 36 ) * 30 + - COUNT ( DISTINCT 41 ) + - 0
----
1079

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3058
SELECT - CAST( 22 AS SIGNED ) * - - 78 + + 77
----
-1639

skipif mysql # not compatible
query I rowsort label-3058
SELECT - CAST ( 22 AS INTEGER ) * - - 78 + + 77
----
-1639

query I rowsort
SELECT + 71 + - + 9
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-3060
SELECT ALL MIN( ALL + 49 ) AS col1
----
49

skipif mysql # not compatible
query I rowsort label-3060
SELECT ALL MIN ( ALL + 49 ) AS col1
----
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3061
SELECT ALL - - 93 - COUNT( * ) + - 54 * 7 DIV + + 53 AS col0, 42 + - 80 AS col1
----
85
-38

skipif mysql # not compatible
query II rowsort label-3061
SELECT ALL - - 93 - COUNT ( * ) + - 54 * 7 / + + 53 AS col0, 42 + - 80 AS col1
----
85
-38

query I rowsort
SELECT DISTINCT + 42 * - 70 * - - 27 * 18 * + + 7 AS col2
----
-10001880

onlyif mysql # aggregate syntax: 
query I rowsort label-3063
SELECT - COALESCE ( + 69, - - 17 * + 98 ) - - COUNT( * ) + COUNT( * ) + - COUNT( * )
----
-68

skipif mysql # not compatible
query I rowsort label-3063
SELECT - COALESCE ( + 69, - - 17 * + 98 ) - - COUNT ( * ) + COUNT ( * ) + - COUNT ( * )
----
-68

query I rowsort
SELECT - + 13 AS col2
----
-13

query I rowsort
SELECT + - 15 * - 71 col2
----
1065

onlyif mysql # aggregate syntax: 
query I rowsort label-3066
SELECT ALL + COUNT( * ) * + COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3066
SELECT ALL + COUNT ( * ) * + COUNT ( * ) AS col2
----
1

query II rowsort
SELECT ALL 99, 19 + - + 32 AS col0
----
99
-13

onlyif mysql # DIV for integer division: 
query II rowsort label-3068
SELECT - 88 * - 0, - 35 DIV - + 54
----
0
0

skipif mysql # not compatible
query II rowsort label-3068
SELECT - 88 * - 0, - 35 / - + 54
----
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3069
SELECT ALL - 6 * SUM( ALL + - 63 )
----
378

skipif mysql # not compatible
query I rowsort label-3069
SELECT ALL - 6 * SUM ( ALL + - 63 )
----
378

query I rowsort
SELECT + 5 - - - 63 col2
----
-58

query I rowsort
SELECT DISTINCT ( 45 ) AS col2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-3072
SELECT ALL ( + COUNT( * ) ) col2
----
1

skipif mysql # not compatible
query I rowsort label-3072
SELECT ALL ( + COUNT ( * ) ) col2
----
1

query I rowsort
SELECT + 58 * - 10 AS col0
----
-580

query II rowsort
SELECT ALL 69 * - 44 AS col1, 82 col2
----
-3036
82

onlyif mysql # DIV for integer division: 
query I rowsort label-3075
SELECT + 75 DIV - 91 * + 31
----
0

skipif mysql # not compatible
query I rowsort label-3075
SELECT + 75 / - 91 * + 31
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3076
SELECT + 10 DIV + - 66 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3076
SELECT + 10 / + - 66 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3077
SELECT ALL - 73 DIV + + 52 + 91
----
90

skipif mysql # not compatible
query I rowsort label-3077
SELECT ALL - 73 / + + 52 + 91
----
90

query II rowsort
SELECT + 22 + - 95 AS col1, - 93 AS col2
----
-73
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-3079
SELECT 71 DIV 19 - + + 49 + - 48 * CASE 8 WHEN - 4 + - COUNT( * ) + + + 32 + - - 46 * - + 81 + - 34 * + COUNT( * ) THEN - 69 * - CASE + - 94 WHEN 52 DIV - CAST( NULL AS SIGNED ) THEN NULL ELSE - 94 END WHEN - ( + CAST( CAST( 43 AS DECIMAL ) AS SIGNED ) ) + + ( + 93 ) * + - 7 * 62 THEN COUNT( * ) ELSE + 36 * - + NULLIF ( 47, SUM( + 73 ) - + COUNT( - - 11 ) + + 56 ) + - 2 * - 53 END + - COUNT( * ), + 58 + 77 * CAST( 55 * COUNT( * ) AS SIGNED ) AS col0
----
76081
4293

skipif mysql # not compatible
query II rowsort label-3079
SELECT 71 / 19 - + + 49 + - 48 * CASE 8 WHEN - 4 + - COUNT ( * ) + + + 32 + - - 46 * - + 81 + - 34 * + COUNT ( * ) THEN - 69 * - CASE + - 94 WHEN 52 / - CAST ( NULL AS INTEGER ) THEN NULL ELSE - 94 END WHEN - ( + CAST ( CAST ( 43 AS REAL ) AS INTEGER ) ) + + ( + 93 ) * + - 7 * 62 THEN COUNT ( * ) ELSE + 36 * - + NULLIF ( 47, SUM ( + 73 ) - + COUNT ( - - 11 ) + + 56 ) + - 2 * - 53 END + - COUNT ( * ), + 58 + 77 * CAST ( 55 * COUNT ( * ) AS INTEGER ) AS col0
----
76081
4293

query I rowsort
SELECT ( - 16 ) AS col0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-3081
SELECT ALL COUNT( * ) * - 1 + 32 AS col0
----
31

skipif mysql # not compatible
query I rowsort label-3081
SELECT ALL COUNT ( * ) * - 1 + 32 AS col0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-3082
SELECT DISTINCT COUNT( * ) * + 52 + - + 47 + - COUNT( ALL 3 ) AS col0
----
4

skipif mysql # not compatible
query I rowsort label-3082
SELECT DISTINCT COUNT ( * ) * + 52 + - + 47 + - COUNT ( ALL 3 ) AS col0
----
4

query I rowsort
SELECT + NULLIF ( - 38, + 39 ) AS col2
----
-38

query I rowsort
SELECT ALL + - ( 16 ) AS col2
----
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-3085
SELECT + 25 AS col1, + ( COALESCE ( COUNT( * ), 13 * 58 * - - COUNT( * ) ) ) AS col0
----
25
1

skipif mysql # not compatible
query II rowsort label-3085
SELECT + 25 AS col1, + ( COALESCE ( COUNT ( * ), 13 * 58 * - - COUNT ( * ) ) ) AS col0
----
25
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3086
SELECT DISTINCT + MIN( - 22 ) * - + 5 + 40 + + - 81 AS col0
----
69

skipif mysql # not compatible
query I rowsort label-3086
SELECT DISTINCT + MIN ( - 22 ) * - + 5 + 40 + + - 81 AS col0
----
69

query II rowsort
SELECT 56 AS col1, CASE - ( - 14 ) WHEN - 73 THEN 78 ELSE + 85 END AS col2
----
56
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3088
SELECT - 60 + - - 30 + + + 45 * + ( + - 94 ) DIV - COUNT( + 46 )
----
4200

skipif mysql # not compatible
query I rowsort label-3088
SELECT - 60 + - - 30 + + + 45 * + ( + - 94 ) / - COUNT ( + 46 )
----
4200

query I rowsort
SELECT ALL - 65 * - - 43 + + 13
----
-2782

onlyif mysql # aggregate syntax: 
query II rowsort label-3090
SELECT + - 60 * + + COUNT( + + 29 ) * - 7 AS col0, 86
----
420
86

skipif mysql # not compatible
query II rowsort label-3090
SELECT + - 60 * + + COUNT ( + + 29 ) * - 7 AS col0, 86
----
420
86

onlyif mysql # aggregate syntax: 
query II rowsort label-3091
SELECT DISTINCT + - 74 AS col2, + 43 * + - COUNT( * )
----
-74
-43

skipif mysql # not compatible
query II rowsort label-3091
SELECT DISTINCT + - 74 AS col2, + 43 * + - COUNT ( * )
----
-74
-43

query II rowsort
SELECT + - 58, 82 AS col0
----
-58
82

onlyif mysql # aggregate syntax: 
query II rowsort label-3093
SELECT ALL - 5 * - - ( - - 69 ) + - + 23 + + COUNT( * ) * ( MIN( DISTINCT - 68 ) ) * - + 58 + - 25 + - 47, 7 * - 60 AS col1
----
3504
-420

skipif mysql # not compatible
query II rowsort label-3093
SELECT ALL - 5 * - - ( - - 69 ) + - + 23 + + COUNT ( * ) * ( MIN ( DISTINCT - 68 ) ) * - + 58 + - 25 + - 47, 7 * - 60 AS col1
----
3504
-420

query I rowsort
SELECT ALL + 13 * - + 32
----
-416

onlyif mysql # DIV for integer division: 
query I rowsort label-3095
SELECT + 93 DIV + 53
----
1

skipif mysql # not compatible
query I rowsort label-3095
SELECT + 93 / + 53
----
1

query I rowsort
SELECT - ( + 24 ) * - 15 * + + ( + 88 ) + - + 46
----
31634

query I rowsort
SELECT ALL + ( + 73 )
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-3098
SELECT - COUNT( * ) + + 87
----
86

skipif mysql # not compatible
query I rowsort label-3098
SELECT - COUNT ( * ) + + 87
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-3099
SELECT - 82 + + 5 + + ( COUNT( DISTINCT 66 ) ) AS col1
----
-76

skipif mysql # not compatible
query I rowsort label-3099
SELECT - 82 + + 5 + + ( COUNT ( DISTINCT 66 ) ) AS col1
----
-76

query I rowsort
SELECT ALL ( - 91 ) AS col2
----
-91

query I rowsort
SELECT DISTINCT - 93 + 42
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3102
SELECT DISTINCT CAST( - - 63 AS SIGNED )
----
63

skipif mysql # not compatible
query I rowsort label-3102
SELECT DISTINCT CAST ( - - 63 AS INTEGER )
----
63

query I rowsort
SELECT ALL - 75 + - - 49 AS col1
----
-26

query I rowsort
SELECT + 52 + + 98 - + 17 AS col1
----
133

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3105
SELECT DISTINCT - CASE - 5 WHEN NULLIF ( - 19, + 51 + - - COUNT( * ) ) THEN - + CAST( NULL AS DECIMAL ) WHEN - 13 * 44 + - 7 THEN + 96 * - 14 * CAST( NULL AS SIGNED ) * + ( CASE + NULLIF ( + - 69, + 15 + 90 ) WHEN - COUNT( * ) + - + 51 THEN - ( 75 ) + COUNT( * ) END ) WHEN - - 7 + + 90 THEN - 41 * + 95 - - 54 + + ( 52 ) ELSE NULL END + - 16 - MIN( - 2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3105
SELECT DISTINCT - CASE - 5 WHEN NULLIF ( - 19, + 51 + - - COUNT ( * ) ) THEN - + CAST ( NULL AS REAL ) WHEN - 13 * 44 + - 7 THEN + 96 * - 14 * CAST ( NULL AS INTEGER ) * + ( CASE + NULLIF ( + - 69, + 15 + 90 ) WHEN - COUNT ( * ) + - + 51 THEN - ( 75 ) + COUNT ( * ) END ) WHEN - - 7 + + 90 THEN - 41 * + 95 - - 54 + + ( 52 ) ELSE NULL END + - 16 - MIN ( - 2 )
----
NULL

query I rowsort
SELECT 99 * - - 34
----
3366

query II rowsort
SELECT 35 + - + 51 AS col1, + 0 * ( - 83 ) * + 96 + - 32
----
-16
-32

query I rowsort
SELECT DISTINCT 28 + + 16 + + ( 25 ) * + - 15
----
-331

query I rowsort
SELECT DISTINCT - 58 + - 48 AS col2
----
-106

query I rowsort
SELECT ALL - ( 6 )
----
-6

query I rowsort
SELECT 25 * + 62 * + 19 AS col0
----
29450

onlyif mysql # DIV for integer division: 
query I rowsort label-3112
SELECT ALL - NULLIF ( - 8, - - 14 ) + - 10 DIV + 27 AS col1
----
8

skipif mysql # not compatible
query I rowsort label-3112
SELECT ALL - NULLIF ( - 8, - - 14 ) + - 10 / + 27 AS col1
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3113
SELECT DISTINCT - CAST( + - 42 AS SIGNED )
----
42

skipif mysql # not compatible
query I rowsort label-3113
SELECT DISTINCT - CAST ( + - 42 AS INTEGER )
----
42

query I rowsort
SELECT DISTINCT - ( + + ( - 19 ) ) + + COALESCE ( + + 11, + 28 ) AS col2
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3115
SELECT ALL COUNT( * ) + MAX( DISTINCT 36 ) + + - 89 * + CASE - + SUM( ALL + + ( - 98 ) ) WHEN + 40 THEN 94 DIV - + 81 * - 19 WHEN + 9 * 15 DIV 56 * + 84 DIV + 82 THEN ( + 34 ) + 77 ELSE - 39 * + - 29 + + - 55 * - 27 END AS col0
----
-232787

skipif mysql # not compatible
query I rowsort label-3115
SELECT ALL COUNT ( * ) + MAX ( DISTINCT 36 ) + + - 89 * + CASE - + SUM ( ALL + + ( - 98 ) ) WHEN + 40 THEN 94 / - + 81 * - 19 WHEN + 9 * 15 / 56 * + 84 / + 82 THEN ( + 34 ) + 77 ELSE - 39 * + - 29 + + - 55 * - 27 END AS col0
----
-232787

onlyif mysql # aggregate syntax: 
query I rowsort label-3116
SELECT 77 * 87 - + + MAX( + 39 ) * - + 36 AS col0
----
8103

skipif mysql # not compatible
query I rowsort label-3116
SELECT 77 * 87 - + + MAX ( + 39 ) * - + 36 AS col0
----
8103

onlyif mysql # aggregate syntax: 
query I rowsort label-3117
SELECT MAX( + 25 ) * + 24 AS col1
----
600

skipif mysql # not compatible
query I rowsort label-3117
SELECT MAX ( + 25 ) * + 24 AS col1
----
600

onlyif mysql # aggregate syntax: 
query I rowsort label-3118
SELECT COUNT( DISTINCT + 7 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3118
SELECT COUNT ( DISTINCT + 7 ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3119
SELECT CAST( + 78 AS SIGNED ) * + - CAST( NULL AS SIGNED ) * + - 74 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3119
SELECT CAST ( + 78 AS INTEGER ) * + - CAST ( NULL AS INTEGER ) * + - 74 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3120
SELECT DISTINCT 63 - - - 2 + + CAST( NULL AS DECIMAL ), + COUNT( * ) AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-3120
SELECT DISTINCT 63 - - - 2 + + CAST ( NULL AS REAL ), + COUNT ( * ) AS col2
----
NULL
1

query I rowsort
SELECT ALL 67 * - 47 * + 69 AS col0
----
-217281

onlyif mysql # aggregate syntax: 
query I rowsort label-3122
SELECT - 6 + NULLIF ( MAX( 57 ), 99 / + 15 ) AS col2
----
51

skipif mysql # not compatible
query I rowsort label-3122
SELECT - 6 + NULLIF ( MAX ( 57 ), 99 / + 15 ) AS col2
----
51

query I rowsort
SELECT DISTINCT - 75 * - + 57
----
4275

onlyif mysql # aggregate syntax: 
query I rowsort label-3124
SELECT COUNT( * ) * 62
----
62

skipif mysql # not compatible
query I rowsort label-3124
SELECT COUNT ( * ) * 62
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-3125
SELECT COUNT( - 80 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3125
SELECT COUNT ( - 80 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3126
SELECT 22 + - + MIN( ALL - 85 ) + - 5 + - 17 * + MIN( + 19 )
----
-221

skipif mysql # not compatible
query I rowsort label-3126
SELECT 22 + - + MIN ( ALL - 85 ) + - 5 + - 17 * + MIN ( + 19 )
----
-221

onlyif mysql # aggregate syntax: 
query I rowsort label-3127
SELECT COUNT( * ) - - - 37 * + COUNT( * ) AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-3127
SELECT COUNT ( * ) - - - 37 * + COUNT ( * ) AS col0
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3128
SELECT ALL - + COALESCE ( COUNT( * ), + 82 * 93 + + 28 * + CAST( + MAX( ALL - 50 ) AS SIGNED ) * - 99 + - 26 + 39 * 60 ) AS col0, + 34 AS col2
----
-1
34

skipif mysql # not compatible
query II rowsort label-3128
SELECT ALL - + COALESCE ( COUNT ( * ), + 82 * 93 + + 28 * + CAST ( + MAX ( ALL - 50 ) AS INTEGER ) * - 99 + - 26 + 39 * 60 ) AS col0, + 34 AS col2
----
-1
34

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3129
SELECT CAST( - - 12 AS SIGNED ) * - - 60 AS col0, + 28
----
720
28

skipif mysql # not compatible
query II rowsort label-3129
SELECT CAST ( - - 12 AS INTEGER ) * - - 60 AS col0, + 28
----
720
28

query I rowsort
SELECT 42 + - 1 * - 4 + - - 79
----
125

onlyif mysql # aggregate syntax: 
query II rowsort label-3131
SELECT + ( - 0 ) AS col0, ( 24 ) * + COUNT( * ) + - COUNT( * )
----
0
23

skipif mysql # not compatible
query II rowsort label-3131
SELECT + ( - 0 ) AS col0, ( 24 ) * + COUNT ( * ) + - COUNT ( * )
----
0
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3132
SELECT DISTINCT + COALESCE ( - 56, + + COUNT( * ) )
----
-56

skipif mysql # not compatible
query I rowsort label-3132
SELECT DISTINCT + COALESCE ( - 56, + + COUNT ( * ) )
----
-56

query I rowsort
SELECT 22 * + 63
----
1386

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3134
SELECT DISTINCT 6 + 8 * - CASE - 39 WHEN NULLIF ( 48, + 44 ) THEN NULL ELSE - 26 * + 44 END * 55 * + + CAST( 32 AS SIGNED ) + - - 32 / CASE + + 58 WHEN + + 82 THEN COALESCE ( - 1, - - 71 + + 8 ) WHEN + 77 * - 46 + + - 99 + - - ( + - NULLIF ( - - 94, + 40 ) ) / - COUNT( * ) THEN - 9 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3134
SELECT DISTINCT 6 + 8 * - CASE - 39 WHEN NULLIF ( 48, + 44 ) THEN NULL ELSE - 26 * + 44 END * 55 * + + CAST ( 32 AS INTEGER ) + - - 32 / CASE + + 58 WHEN + + 82 THEN COALESCE ( - 1, - - 71 + + 8 ) WHEN + 77 * - 46 + + - 99 + - - ( + - NULLIF ( - - 94, + 40 ) ) / - COUNT ( * ) THEN - 9 END AS col2
----
NULL

query I rowsort
SELECT ALL 64 + - - 0
----
64

onlyif mysql # DIV for integer division: 
query I rowsort label-3136
SELECT 9 DIV + 9 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3136
SELECT 9 / + 9 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3137
SELECT ALL + 43 + - 24 + - NULLIF ( NULLIF ( - - 20, COUNT( * ) ), COALESCE ( - + 23, - SUM( - 46 ) ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3137
SELECT ALL + 43 + - 24 + - NULLIF ( NULLIF ( - - 20, COUNT ( * ) ), COALESCE ( - + 23, - SUM ( - 46 ) ) ) AS col2
----
-1

query I rowsort
SELECT 16 * + + 73 AS col1
----
1168

onlyif mysql # DIV for integer division: 
query I rowsort label-3139
SELECT 35 DIV - 79 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3139
SELECT 35 / - 79 AS col1
----
0

query I rowsort
SELECT DISTINCT 63 + - 62 * - + 94 AS col1
----
5891

onlyif mysql # DIV for integer division: 
query I rowsort label-3141
SELECT DISTINCT + 98 DIV 57 * + 65 * - + 53
----
-3445

skipif mysql # not compatible
query I rowsort label-3141
SELECT DISTINCT + 98 / 57 * + 65 * - + 53
----
-3445

query I rowsort
SELECT 15 - + 68
----
-53

query I rowsort
SELECT 25 - + 53 AS col0
----
-28

onlyif mysql # aggregate syntax: 
query II rowsort label-3144
SELECT ALL COUNT( DISTINCT + ( + 31 ) ), - 50 * + 73 AS col2
----
1
-3650

skipif mysql # not compatible
query II rowsort label-3144
SELECT ALL COUNT ( DISTINCT + ( + 31 ) ), - 50 * + 73 AS col2
----
1
-3650

onlyif mysql # aggregate syntax: 
query I rowsort label-3145
SELECT ALL - COUNT( * ) + ( 18 )
----
17

skipif mysql # not compatible
query I rowsort label-3145
SELECT ALL - COUNT ( * ) + ( 18 )
----
17

query II rowsort
SELECT ALL 87 AS col1, 58 * + 84
----
87
4872

onlyif mysql # aggregate syntax: 
query I rowsort label-3147
SELECT 60 - + - COUNT( * )
----
61

skipif mysql # not compatible
query I rowsort label-3147
SELECT 60 - + - COUNT ( * )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-3148
SELECT - + 43 * CASE WHEN NOT + 39 IS NULL THEN - 5 END + COALESCE ( 67, - COUNT( * ) + COUNT( * ), + 30 + + + 24 ) * - - COUNT( * ) * + COUNT( * ) + 10 + + 38
----
330

skipif mysql # not compatible
query I rowsort label-3148
SELECT - + 43 * CASE WHEN NOT + 39 IS NULL THEN - 5 END + COALESCE ( 67, - COUNT ( * ) + COUNT ( * ), + 30 + + + 24 ) * - - COUNT ( * ) * + COUNT ( * ) + 10 + + 38
----
330

onlyif mysql # aggregate syntax: 
query I rowsort label-3149
SELECT DISTINCT - 71 * COUNT( * ) col1
----
-71

skipif mysql # not compatible
query I rowsort label-3149
SELECT DISTINCT - 71 * COUNT ( * ) col1
----
-71

query I rowsort
SELECT ALL + - 99 * - 63 * - 8 + - ( - ( + - 95 ) ) AS col1
----
-49991

query I rowsort
SELECT DISTINCT - - 56 AS col1
----
56

query I rowsort
SELECT - 95 + - 80 col0
----
-175

query I rowsort
SELECT DISTINCT - ( + - 11 ) AS col0
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-3154
SELECT 44 DIV 64
----
0

skipif mysql # not compatible
query I rowsort label-3154
SELECT 44 / 64
----
0

query I rowsort
SELECT 88 * 50 * - - 33 col2
----
145200

query II rowsort
SELECT + 6 AS col2, 95 - 69
----
6
26

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3157
SELECT + 45 + + CASE - 26 WHEN + CAST( NULL AS DECIMAL ) THEN + 0 END + COALESCE ( + + 82, - - COUNT( * ) / - - 75 * - ( COUNT( DISTINCT 83 ) ) ) + + 63 - + - 50 / 85 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3157
SELECT + 45 + + CASE - 26 WHEN + CAST ( NULL AS REAL ) THEN + 0 END + COALESCE ( + + 82, - - COUNT ( * ) / - - 75 * - ( COUNT ( DISTINCT 83 ) ) ) + + 63 - + - 50 / 85 AS col1
----
NULL

query I rowsort
SELECT ALL - 22 * 68 * + ( 95 )
----
-142120

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3159
SELECT 67 DIV - COUNT( * ) AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-3159
SELECT 67 / - COUNT ( * ) AS col2
----
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3160
SELECT - 54 * + 38 * CAST( - 59 AS SIGNED ) col0
----
121068

skipif mysql # not compatible
query I rowsort label-3160
SELECT - 54 * + 38 * CAST ( - 59 AS INTEGER ) col0
----
121068

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3161
SELECT ALL - ( - - CASE 15 WHEN + CASE CAST( + - 36 AS SIGNED ) WHEN - + ( + 70 ) THEN NULL WHEN + - 66 + - + 95 * + 25 * + - 52 THEN + 34 * - 31 WHEN + + 34 THEN NULL ELSE + 12 END THEN + + 99 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-3161
SELECT ALL - ( - - CASE 15 WHEN + CASE CAST ( + - 36 AS INTEGER ) WHEN - + ( + 70 ) THEN NULL WHEN + - 66 + - + 95 * + 25 * + - 52 THEN + 34 * - 31 WHEN + + 34 THEN NULL ELSE + 12 END THEN + + 99 ELSE NULL END )
----
NULL

query I rowsort
SELECT ALL 37 + - 5 col0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3163
SELECT DISTINCT 85 + + COUNT( * ) AS col2
----
86

skipif mysql # not compatible
query I rowsort label-3163
SELECT DISTINCT 85 + + COUNT ( * ) AS col2
----
86

query I rowsort
SELECT DISTINCT 99 + - 13 AS col1
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-3165
SELECT ALL - 70 + COUNT( * )
----
-69

skipif mysql # not compatible
query I rowsort label-3165
SELECT ALL - 70 + COUNT ( * )
----
-69

query I rowsort
SELECT COALESCE ( - ( + 65 ), - + 5 + + 15 + + + 27 ) + - 32 AS col0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3167
SELECT - CASE + 20 WHEN - COUNT( + + 80 ) THEN - 8 * - 72 + - 10 + - + CASE COUNT( * ) WHEN - 93 + COUNT( * ) THEN + COALESCE ( - - CASE - 44 WHEN 9 THEN + 79 WHEN + ( - - 7 ) THEN + ( 89 ) END, 27 * + 12 + MAX( ALL - 51 ) + - 23 ) WHEN - COUNT( * ) THEN NULL WHEN - MAX( + - 5 ) THEN + - 69 * COUNT( ALL + + 25 ) END - - 81 + - - 51 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3167
SELECT - CASE + 20 WHEN - COUNT ( + + 80 ) THEN - 8 * - 72 + - 10 + - + CASE COUNT ( * ) WHEN - 93 + COUNT ( * ) THEN + COALESCE ( - - CASE - 44 WHEN 9 THEN + 79 WHEN + ( - - 7 ) THEN + ( 89 ) END, 27 * + 12 + MAX ( ALL - 51 ) + - 23 ) WHEN - COUNT ( * ) THEN NULL WHEN - MAX ( + - 5 ) THEN + - 69 * COUNT ( ALL + + 25 ) END - - 81 + - - 51 END col2
----
NULL

query I rowsort
SELECT ALL + ( - 57 ) + + NULLIF ( + 80, - + 93 ) AS col0
----
23

query I rowsort
SELECT + 93 + + 42 * + 10 AS col0
----
513

query II rowsort
SELECT - NULLIF ( + ( + 32 ), - ( 59 ) ) AS col2, 5 AS col2
----
-32
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3171
SELECT DISTINCT COUNT( * ) DIV 37 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3171
SELECT DISTINCT COUNT ( * ) / 37 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3172
SELECT + 57 * + 40 AS col0, 54 DIV + COUNT( * )
----
2280
54

skipif mysql # not compatible
query II rowsort label-3172
SELECT + 57 * + 40 AS col0, 54 / + COUNT ( * )
----
2280
54

query I rowsort
SELECT - 39 + - - 12 AS col0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-3174
SELECT - CASE 1 WHEN 37 + 76 THEN COUNT( * ) ELSE NULL END * + - 68
----
NULL

skipif mysql # not compatible
query I rowsort label-3174
SELECT - CASE 1 WHEN 37 + 76 THEN COUNT ( * ) ELSE NULL END * + - 68
----
NULL

query I rowsort
SELECT + 27 * 31 AS col0
----
837

query I rowsort
SELECT ALL + + COALESCE ( 62, 26 ) AS col2
----
62

query I rowsort
SELECT ALL + 86 * + - 21 * - 9
----
16254

onlyif mysql # aggregate syntax: 
query I rowsort label-3178
SELECT - NULLIF ( + + 98, - COUNT( * ) / - 73 + 93 + + 81 ) AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-3178
SELECT - NULLIF ( + + 98, - COUNT ( * ) / - 73 + 93 + + 81 ) AS col2
----
-98

query I rowsort
SELECT DISTINCT + - ( + 62 ) AS col0
----
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3180
SELECT ALL + COUNT( * ) * + + 11 + + COALESCE ( - MAX( DISTINCT - + ( - + CAST( NULL AS SIGNED ) ) ), + - 8 * 21 + + - NULLIF ( CAST( 87 AS SIGNED ), - + CASE - 51 WHEN - - 85 - - + 71 THEN NULL WHEN - + 13 THEN + - 69 * 27 * - COUNT( * ) + COUNT( * ) - - - 74 * COALESCE ( - 83, 12 DIV + - 39 ) END * - - 12 * + 21 - - 46 * - 29 + - + 33 * - 31 * 86 + + 45 ) + + 64, - 66 ) + + + COALESCE ( - - 50, + - 69, - MAX( - 2 ) DIV NULLIF ( 90, ( 11 ) + + COALESCE ( 5, 87 ) ) * + 45 )
----
-130

skipif mysql # not compatible
query I rowsort label-3180
SELECT ALL + COUNT ( * ) * + + 11 + + COALESCE ( - MAX ( DISTINCT - + ( - + CAST ( NULL AS INTEGER ) ) ), + - 8 * 21 + + - NULLIF ( CAST ( 87 AS INTEGER ), - + CASE - 51 WHEN - - 85 - - + 71 THEN NULL WHEN - + 13 THEN + - 69 * 27 * - COUNT ( * ) + COUNT ( * ) - - - 74 * COALESCE ( - 83, 12 / + - 39 ) END * - - 12 * + 21 - - 46 * - 29 + - + 33 * - 31 * 86 + + 45 ) + + 64, - 66 ) + + + COALESCE ( - - 50, + - 69, - MAX ( - 2 ) / NULLIF ( 90, ( 11 ) + + COALESCE ( 5, 87 ) ) * + 45 )
----
-130

query I rowsort
SELECT + + ( 33 )
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-3182
SELECT DISTINCT + 93 * COUNT( * ) * + - ( - - 69 ) AS col2
----
-6417

skipif mysql # not compatible
query I rowsort label-3182
SELECT DISTINCT + 93 * COUNT ( * ) * + - ( - - 69 ) AS col2
----
-6417

query II rowsort
SELECT DISTINCT 59 * + 23 * + NULLIF ( + 44, + 57 + - 41 ) + + 56 col2, 99 - 75
----
59764
24

onlyif mysql # aggregate syntax: 
query I rowsort label-3184
SELECT ALL + - MAX( DISTINCT + 84 ) * + 78
----
-6552

skipif mysql # not compatible
query I rowsort label-3184
SELECT ALL + - MAX ( DISTINCT + 84 ) * + 78
----
-6552

onlyif mysql # aggregate syntax: 
query I rowsort label-3185
SELECT ALL - 37 * + + 25 * 30 * COUNT( * ) + 35 AS col1
----
-27715

skipif mysql # not compatible
query I rowsort label-3185
SELECT ALL - 37 * + + 25 * 30 * COUNT ( * ) + 35 AS col1
----
-27715

query I rowsort
SELECT - 95 - + 53
----
-148

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3187
SELECT ALL + COUNT( * ) DIV + + 84 + + + 59 col0
----
59

skipif mysql # not compatible
query I rowsort label-3187
SELECT ALL + COUNT ( * ) / + + 84 + + + 59 col0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3188
SELECT - NULLIF ( - + COUNT( * ), 89 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3188
SELECT - NULLIF ( - + COUNT ( * ), 89 ) AS col1
----
1

query II rowsort
SELECT + + 44 * + 58 + - 9 - + + 5 * + 17, 63 AS col1
----
2458
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3190
SELECT COUNT( 15 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3190
SELECT COUNT ( 15 ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3191
SELECT ALL + 16 DIV 99 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3191
SELECT ALL + 16 / 99 AS col2
----
0

query I rowsort
SELECT + 88 - + 58 AS col1
----
30

query II rowsort
SELECT ALL - 81 * 16 * 40 * - 95 + + - 23, + 85 col2
----
4924777
85

onlyif mysql # aggregate syntax: 
query I rowsort label-3194
SELECT DISTINCT ( SUM( DISTINCT + - 38 ) )
----
-38

skipif mysql # not compatible
query I rowsort label-3194
SELECT DISTINCT ( SUM ( DISTINCT + - 38 ) )
----
-38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3195
SELECT ALL - COUNT( * ) DIV - 88
----
0

skipif mysql # not compatible
query I rowsort label-3195
SELECT ALL - COUNT ( * ) / - 88
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3196
SELECT + 93 DIV + 76
----
1

skipif mysql # not compatible
query I rowsort label-3196
SELECT + 93 / + 76
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3197
SELECT ALL + COALESCE ( 80, + CASE 6 WHEN 74 THEN NULL WHEN + 94 THEN NULL ELSE - + CAST( + ( 89 ) AS SIGNED ) END ) - + 52 * + ( + - ( + 66 ) ) * - 54
----
-185248

skipif mysql # not compatible
query I rowsort label-3197
SELECT ALL + COALESCE ( 80, + CASE 6 WHEN 74 THEN NULL WHEN + 94 THEN NULL ELSE - + CAST ( + ( 89 ) AS INTEGER ) END ) - + 52 * + ( + - ( + 66 ) ) * - 54
----
-185248

query I rowsort
SELECT - ( - 19 )
----
19

query I rowsort
SELECT - 57 - + - 40 AS col2
----
-17

query I rowsort
SELECT - ( - 71 ) AS col0
----
71

query I rowsort
SELECT + 33 - 64 AS col2
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3202
SELECT + COUNT( * ) * + CAST( 24 AS SIGNED ) * + ( - ( MIN( 82 ) ) ) - - - CASE + - 84 WHEN + COALESCE ( - + 32, + 51 + - - 60 ) THEN NULL ELSE - + 44 END + - 37 + + 83 * 56 - + + COUNT( DISTINCT + COALESCE ( - + 54, 57 ) ) col0
----
2686

skipif mysql # not compatible
query I rowsort label-3202
SELECT + COUNT ( * ) * + CAST ( 24 AS INTEGER ) * + ( - ( MIN ( 82 ) ) ) - - - CASE + - 84 WHEN + COALESCE ( - + 32, + 51 + - - 60 ) THEN NULL ELSE - + 44 END + - 37 + + 83 * 56 - + + COUNT ( DISTINCT + COALESCE ( - + 54, 57 ) ) col0
----
2686

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3203
SELECT 88, CAST( NULL AS SIGNED ) + 49 * - + 25 * + 79 AS col2
----
88
NULL

skipif mysql # not compatible
query II rowsort label-3203
SELECT 88, CAST ( NULL AS INTEGER ) + 49 * - + 25 * + 79 AS col2
----
88
NULL

query I rowsort
SELECT - ( 35 ) AS col1
----
-35

query II rowsort
SELECT ALL 88 AS col2, + 28
----
88
28

query I rowsort
SELECT + 79 - - 81 * + 80 AS col0
----
6559

onlyif mysql # aggregate syntax: 
query I rowsort label-3207
SELECT ALL NULLIF ( + - 29, + 75 * + COUNT( - + COALESCE ( + 60, + 99 * - - 59 ) ) )
----
-29

skipif mysql # not compatible
query I rowsort label-3207
SELECT ALL NULLIF ( + - 29, + 75 * + COUNT ( - + COALESCE ( + 60, + 99 * - - 59 ) ) )
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-3208
SELECT + + COUNT( * ) - - - 78 - 18
----
-95

skipif mysql # not compatible
query I rowsort label-3208
SELECT + + COUNT ( * ) - - - 78 - 18
----
-95

query I rowsort
SELECT - COALESCE ( + 18, - - 29 - + 50 ) AS col1
----
-18

query I rowsort
SELECT + 17 + + 3 AS col1
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3211
SELECT + 30 + - CAST( - COUNT( * ) AS SIGNED ) AS col0
----
31

skipif mysql # not compatible
query I rowsort label-3211
SELECT + 30 + - CAST ( - COUNT ( * ) AS INTEGER ) AS col0
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-3212
SELECT + 40 DIV - 70 - - 28 AS col0
----
28

skipif mysql # not compatible
query I rowsort label-3212
SELECT + 40 / - 70 - - 28 AS col0
----
28

query I rowsort
SELECT ALL 69 * - + 56 AS col1
----
-3864

onlyif mysql # DIV for integer division: 
query I rowsort label-3214
SELECT + - 49 DIV - 85
----
0

skipif mysql # not compatible
query I rowsort label-3214
SELECT + - 49 / - 85
----
0

query I rowsort
SELECT - 13 - - 16 * 62 * + CASE + 50 WHEN + 41 THEN NULL ELSE - - 40 * + 19 END - - - 85 AS col1
----
753822

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3216
SELECT ALL 77 DIV - COUNT( * ) + - ( - 93 ) * + 28 AS col1
----
2527

skipif mysql # not compatible
query I rowsort label-3216
SELECT ALL 77 / - COUNT ( * ) + - ( - 93 ) * + 28 AS col1
----
2527

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3217
SELECT DISTINCT + 97 DIV + COUNT( * ) + + + 74 + 90
----
261

skipif mysql # not compatible
query I rowsort label-3217
SELECT DISTINCT + 97 / + COUNT ( * ) + + + 74 + 90
----
261

query II rowsort
SELECT + 80 AS col2, 97 AS col1
----
80
97

query I rowsort
SELECT - 43 + + 74 col2
----
31

query I rowsort
SELECT ALL + 12 - - + 52 + 92 AS col2
----
156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3221
SELECT ALL - CASE + - 75 WHEN - + ( + - 34 ) * - 6 THEN NULL ELSE + + 88 + - 67 + 17 * + CAST( NULL AS SIGNED ) + 96 END - + 93 + - + NULLIF ( + COUNT( * ), - 53 ) + + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3221
SELECT ALL - CASE + - 75 WHEN - + ( + - 34 ) * - 6 THEN NULL ELSE + + 88 + - 67 + 17 * + CAST ( NULL AS INTEGER ) + 96 END - + 93 + - + NULLIF ( + COUNT ( * ), - 53 ) + + COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3222
SELECT ALL - COUNT( * ) col2, 1
----
-1
1

skipif mysql # not compatible
query II rowsort label-3222
SELECT ALL - COUNT ( * ) col2, 1
----
-1
1

query I rowsort
SELECT DISTINCT - 30 * + 74 AS col0
----
-2220

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3224
SELECT ALL - 89 AS col1, - 97 DIV + COUNT( * )
----
-89
-97

skipif mysql # not compatible
query II rowsort label-3224
SELECT ALL - 89 AS col1, - 97 / + COUNT ( * )
----
-89
-97

query I rowsort
SELECT 49 * - 24 + + 20 AS col2
----
-1156

query I rowsort
SELECT 5 + - 69
----
-64

query I rowsort
SELECT 8 * + 40 AS col2
----
320

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3228
SELECT 44 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3228
SELECT 44 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT ALL 17 AS col1, 32 + + + 47 + - 82 - + 99 AS col2
----
17
-102

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3230
SELECT 15 + + 55 col0, + CAST( - 85 AS SIGNED )
----
70
-85

skipif mysql # not compatible
query II rowsort label-3230
SELECT 15 + + 55 col0, + CAST ( - 85 AS INTEGER )
----
70
-85

query I rowsort
SELECT 50 - + ( + 50 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3232
SELECT - 71 col0, - COUNT( - + 90 ) AS col0
----
-71
-1

skipif mysql # not compatible
query II rowsort label-3232
SELECT - 71 col0, - COUNT ( - + 90 ) AS col0
----
-71
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3233
SELECT 24 + - 53 + - 75 - - + 29 + + CASE CAST( + ( CASE 11 WHEN + 45 / + 69 + - ( - - 43 ) THEN NULL WHEN + 64 * + + 63 THEN + 19 + 64 ELSE NULL END ) AS SIGNED ) WHEN - + 93 * - - 57 THEN NULL ELSE - 64 + - + 61 - + 71 * - - 5 END + - + COALESCE ( 40, - - ( COUNT( + 75 ) ), + + 97 ) * + ( + 40 ) * - + 39 * 92 AS col0
----
5740245

skipif mysql # not compatible
query I rowsort label-3233
SELECT 24 + - 53 + - 75 - - + 29 + + CASE CAST ( + ( CASE 11 WHEN + 45 / + 69 + - ( - - 43 ) THEN NULL WHEN + 64 * + + 63 THEN + 19 + 64 ELSE NULL END ) AS INTEGER ) WHEN - + 93 * - - 57 THEN NULL ELSE - 64 + - + 61 - + 71 * - - 5 END + - + COALESCE ( 40, - - ( COUNT ( + 75 ) ), + + 97 ) * + ( + 40 ) * - + 39 * 92 AS col0
----
5740245

query I rowsort
SELECT 34 * - 10
----
-340

onlyif mysql # aggregate syntax: 
query I rowsort label-3235
SELECT ALL 98 * + + COUNT( + 89 ) AS col1
----
98

skipif mysql # not compatible
query I rowsort label-3235
SELECT ALL 98 * + + COUNT ( + 89 ) AS col1
----
98

query I rowsort
SELECT 40 + - 15 AS col1
----
25

query II rowsort
SELECT ALL 83 AS col2, 90 AS col1
----
83
90

query I rowsort
SELECT DISTINCT - 68 * 81
----
-5508

onlyif mysql # aggregate syntax: 
query I rowsort label-3239
SELECT DISTINCT 91 * - + MAX( - + 30 )
----
2730

skipif mysql # not compatible
query I rowsort label-3239
SELECT DISTINCT 91 * - + MAX ( - + 30 )
----
2730

query I rowsort
SELECT ALL - ( + - 99 ) * - 71 * + - 27 + - + 96
----
189687

query I rowsort
SELECT DISTINCT + 96 * - 11
----
-1056

onlyif mysql # aggregate syntax: 
query I rowsort label-3242
SELECT COUNT( * ) * + 92 AS col2
----
92

skipif mysql # not compatible
query I rowsort label-3242
SELECT COUNT ( * ) * + 92 AS col2
----
92

query III rowsort
SELECT 42 AS col2, 97 AS col1, + ( + 25 ) AS col1
----
42
97
25

onlyif mysql # aggregate syntax: 
query II rowsort label-3244
SELECT - COUNT( * ) AS col0, - 17
----
-1
-17

skipif mysql # not compatible
query II rowsort label-3244
SELECT - COUNT ( * ) AS col0, - 17
----
-1
-17

query I rowsort
SELECT + 84 + + 5 AS col0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-3246
SELECT ALL ( + 26 ) + + 9 + - 51 + - 30 * - COUNT( * ) * + - 43 * - 30
----
38684

skipif mysql # not compatible
query I rowsort label-3246
SELECT ALL ( + 26 ) + + 9 + - 51 + - 30 * - COUNT ( * ) * + - 43 * - 30
----
38684

query I rowsort
SELECT NULLIF ( - 81, - + 74 * - 0 + 98 ) * 8
----
-648

onlyif mysql # aggregate syntax: 
query II rowsort label-3248
SELECT - 13 AS col2, + 53 * + + COUNT( * ) + + 30 + 10 + - + 17
----
-13
76

skipif mysql # not compatible
query II rowsort label-3248
SELECT - 13 AS col2, + 53 * + + COUNT ( * ) + + 30 + 10 + - + 17
----
-13
76

query I rowsort
SELECT ALL + ( 38 ) + 31
----
69

query I rowsort
SELECT DISTINCT 29 + + + 88 + - 65
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-3251
SELECT ALL 3 * MIN( DISTINCT - 8 )
----
-24

skipif mysql # not compatible
query I rowsort label-3251
SELECT ALL 3 * MIN ( DISTINCT - 8 )
----
-24

query I rowsort
SELECT ALL + 85 + + 43
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-3253
SELECT ALL COUNT( * ) + - 91 AS col2
----
-90

skipif mysql # not compatible
query I rowsort label-3253
SELECT ALL COUNT ( * ) + - 91 AS col2
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-3254
SELECT DISTINCT + COUNT( * ) * + 93 * - - 85
----
7905

skipif mysql # not compatible
query I rowsort label-3254
SELECT DISTINCT + COUNT ( * ) * + 93 * - - 85
----
7905

query I rowsort
SELECT 94 * - 37 - 45 + 44
----
-3479

query I rowsort
SELECT ALL + 83 * - 95
----
-7885

query I rowsort
SELECT + - 35 * 41 - - 63 AS col1
----
-1372

query II rowsort
SELECT 59 AS col0, 84
----
59
84

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3259
SELECT DISTINCT - - 88, ( + CAST( NULL AS SIGNED ) ) / 85 AS col2
----
88
NULL

skipif mysql # not compatible
query II rowsort label-3259
SELECT DISTINCT - - 88, ( + CAST ( NULL AS INTEGER ) ) / 85 AS col2
----
88
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3260
SELECT 44 DIV - + 98 * ( 4 ) - 93 AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-3260
SELECT 44 / - + 98 * ( 4 ) - 93 AS col0
----
-93

query I rowsort
SELECT + CASE 97 WHEN 98 - + 29 + + - 79 * - - 15 - - 87 - + 13 * - + 47 THEN + + 3 + 64 END * 61
----
NULL

query II rowsort
SELECT ALL 36 * 14 * + + ( - + 94 ), 45 AS col1
----
-47376
45

onlyif mysql # aggregate syntax: 
query I rowsort label-3263
SELECT ALL + 58 - + - COUNT( * ) AS col0
----
59

skipif mysql # not compatible
query I rowsort label-3263
SELECT ALL + 58 - + - COUNT ( * ) AS col0
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-3264
SELECT DISTINCT - 71 DIV - - 68
----
-1

skipif mysql # not compatible
query I rowsort label-3264
SELECT DISTINCT - 71 / - - 68
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3265
SELECT DISTINCT CASE - CAST( NULL AS SIGNED ) WHEN 73 + - COUNT( * ) * - + 31 THEN NULL ELSE 19 END - + 94 + - COUNT( * ) * + COUNT( * ) + + - ( - 56 ) - - 62 AS col1
----
42

skipif mysql # not compatible
query I rowsort label-3265
SELECT DISTINCT CASE - CAST ( NULL AS INTEGER ) WHEN 73 + - COUNT ( * ) * - + 31 THEN NULL ELSE 19 END - + 94 + - COUNT ( * ) * + COUNT ( * ) + + - ( - 56 ) - - 62 AS col1
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-3266
SELECT ALL + ( - - 4 ) DIV 38
----
0

skipif mysql # not compatible
query I rowsort label-3266
SELECT ALL + ( - - 4 ) / 38
----
0

query I rowsort
SELECT 99 * 73 * - - 92
----
664884

onlyif mysql # aggregate syntax: 
query I rowsort label-3268
SELECT ALL - MAX( DISTINCT - 50 ) AS col2
----
50

skipif mysql # not compatible
query I rowsort label-3268
SELECT ALL - MAX ( DISTINCT - 50 ) AS col2
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-3269
SELECT 53 * - MIN( ALL 12 )
----
-636

skipif mysql # not compatible
query I rowsort label-3269
SELECT 53 * - MIN ( ALL 12 )
----
-636

onlyif mysql # aggregate syntax: 
query II rowsort label-3270
SELECT DISTINCT - CASE + SUM( + 30 ) WHEN - 14 + + - 31 + - - 35 * - COUNT( - 48 ) + + 73 * - 30 + + 13 THEN + ( - COUNT( * ) ) WHEN + + COUNT( * ) + - 61 / 6 THEN NULL ELSE COUNT( * ) END col2, 38 AS col1
----
-1
38

skipif mysql # not compatible
query II rowsort label-3270
SELECT DISTINCT - CASE + SUM ( + 30 ) WHEN - 14 + + - 31 + - - 35 * - COUNT ( - 48 ) + + 73 * - 30 + + 13 THEN + ( - COUNT ( * ) ) WHEN + + COUNT ( * ) + - 61 / 6 THEN NULL ELSE COUNT ( * ) END col2, 38 AS col1
----
-1
38

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3271
SELECT ALL - 81 * 18 AS col1, 27 * CAST( 78 AS SIGNED ) AS col2
----
-1458
2106

skipif mysql # not compatible
query II rowsort label-3271
SELECT ALL - 81 * 18 AS col1, 27 * CAST ( 78 AS INTEGER ) AS col2
----
-1458
2106

query I rowsort
SELECT 43 * - + 90
----
-3870

query I rowsort
SELECT ALL 68 * - 36 * + ( - 13 ) AS col0
----
31824

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3274
SELECT ALL - CAST( 72 AS SIGNED ) * - COALESCE ( + 10, + 38, 35 )
----
720

skipif mysql # not compatible
query I rowsort label-3274
SELECT ALL - CAST ( 72 AS INTEGER ) * - COALESCE ( + 10, + 38, 35 )
----
720

onlyif mysql # aggregate syntax: 
query I rowsort label-3275
SELECT ALL MAX( DISTINCT + - 35 ) AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-3275
SELECT ALL MAX ( DISTINCT + - 35 ) AS col1
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-3276
SELECT DISTINCT - 37 + 19 * CASE WHEN NOT NULL IS NOT NULL THEN - COUNT( 78 ) END * - 33
----
590

skipif mysql # not compatible
query I rowsort label-3276
SELECT DISTINCT - 37 + 19 * CASE WHEN NOT NULL IS NOT NULL THEN - COUNT ( 78 ) END * - 33
----
590

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3277
SELECT 33 / - CAST( NULL AS SIGNED ), + 53 AS col2
----
NULL
53

skipif mysql # not compatible
query II rowsort label-3277
SELECT 33 / - CAST ( NULL AS INTEGER ), + 53 AS col2
----
NULL
53

query I rowsort
SELECT 69 * 33
----
2277

onlyif mysql # aggregate syntax: 
query I rowsort label-3279
SELECT 40 - - COUNT( * )
----
41

skipif mysql # not compatible
query I rowsort label-3279
SELECT 40 - - COUNT ( * )
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3280
SELECT ALL + 92 + 52 + - + 9 * - 50 * CAST( NULL AS SIGNED ) - + - COALESCE ( - 38, + 67 ) + - COUNT( + + COALESCE ( - 87, 11 ) ) - 10 * - - CASE - 10 WHEN + 32 THEN - 48 END * - 1 * + COALESCE ( - ( + + 37 ), + 56 ) * + + 44 + + 83 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3280
SELECT ALL + 92 + 52 + - + 9 * - 50 * CAST ( NULL AS INTEGER ) - + - COALESCE ( - 38, + 67 ) + - COUNT ( + + COALESCE ( - 87, 11 ) ) - 10 * - - CASE - 10 WHEN + 32 THEN - 48 END * - 1 * + COALESCE ( - ( + + 37 ), + 56 ) * + + 44 + + 83 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3281
SELECT + 12 + 17 + - 75 * + 70 * + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3281
SELECT + 12 + 17 + - 75 * + 70 * + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3282
SELECT ALL + COALESCE ( COUNT( * ), - 66 - + COUNT( - 86 ) + - 73 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3282
SELECT ALL + COALESCE ( COUNT ( * ), - 66 - + COUNT ( - 86 ) + - 73 ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3283
SELECT - - CAST( 51 AS SIGNED )
----
51

skipif mysql # not compatible
query I rowsort label-3283
SELECT - - CAST ( 51 AS INTEGER )
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3284
SELECT ALL - - ( 73 ) + 99 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3284
SELECT ALL - - ( 73 ) + 99 + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 88 - - 29 AS col1
----
117

query I rowsort
SELECT DISTINCT - + 35 + 50
----
15

query II rowsort
SELECT - 62 + - 41, + COALESCE ( + 24, + + 11 * - 17 + + 76 ) AS col2
----
-103
24

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3288
SELECT + - 68 - 32 + - CASE WHEN NOT 84 >= 89 THEN COALESCE ( + 32, + 9 ) * 93 ELSE NULL END, ( + 93 ) * - CAST( NULL AS DECIMAL ) * NULLIF ( + + 43, - 85 ) AS col1
----
-3076
NULL

skipif mysql # not compatible
query II rowsort label-3288
SELECT + - 68 - 32 + - CASE WHEN NOT 84 >= 89 THEN COALESCE ( + 32, + 9 ) * 93 ELSE NULL END, ( + 93 ) * - CAST ( NULL AS REAL ) * NULLIF ( + + 43, - 85 ) AS col1
----
-3076
NULL

query I rowsort
SELECT ALL + - 81 col0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-3290
SELECT ALL ( - COUNT( DISTINCT - + 32 ) ) * - 23 AS col2
----
23

skipif mysql # not compatible
query I rowsort label-3290
SELECT ALL ( - COUNT ( DISTINCT - + 32 ) ) * - 23 AS col2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3291
SELECT + 78 + - - MAX( DISTINCT 65 )
----
143

skipif mysql # not compatible
query I rowsort label-3291
SELECT + 78 + - - MAX ( DISTINCT 65 )
----
143

onlyif mysql # aggregate syntax: 
query I rowsort label-3292
SELECT + MAX( DISTINCT - 25 )
----
-25

skipif mysql # not compatible
query I rowsort label-3292
SELECT + MAX ( DISTINCT - 25 )
----
-25

query I rowsort
SELECT + 29 + + 26
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-3294
SELECT - COALESCE ( COUNT( * ), ( 72 ) ) * 26
----
-26

skipif mysql # not compatible
query I rowsort label-3294
SELECT - COALESCE ( COUNT ( * ), ( 72 ) ) * 26
----
-26

query I rowsort
SELECT + 46 * 74
----
3404

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3296
SELECT + NULLIF ( ( + 28 ), + CAST( + + COUNT( * ) AS SIGNED ) ) col2
----
28

skipif mysql # not compatible
query I rowsort label-3296
SELECT + NULLIF ( ( + 28 ), + CAST ( + + COUNT ( * ) AS INTEGER ) ) col2
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-3297
SELECT 86 * + COUNT( * ) + - 99 + ( - COUNT( * ) ) AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-3297
SELECT 86 * + COUNT ( * ) + - 99 + ( - COUNT ( * ) ) AS col0
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3298
SELECT + COUNT( ALL - NULLIF ( + + 69, + - 29 ) ) / - + 24 * + CAST( NULL AS SIGNED ) * - 85 + + - 90
----
NULL

skipif mysql # not compatible
query I rowsort label-3298
SELECT + COUNT ( ALL - NULLIF ( + + 69, + - 29 ) ) / - + 24 * + CAST ( NULL AS INTEGER ) * - 85 + + - 90
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3299
SELECT + 10 + - 62 + + MIN( DISTINCT - + 49 )
----
-101

skipif mysql # not compatible
query I rowsort label-3299
SELECT + 10 + - 62 + + MIN ( DISTINCT - + 49 )
----
-101

onlyif mysql # aggregate syntax: 
query I rowsort label-3300
SELECT - COUNT( * ) * - 29 AS col2
----
29

skipif mysql # not compatible
query I rowsort label-3300
SELECT - COUNT ( * ) * - 29 AS col2
----
29

onlyif mysql # aggregate syntax: 
query II rowsort label-3301
SELECT DISTINCT COALESCE ( + 40, - COUNT( * ) + + 27 * COUNT( * ) ) * + 30 AS col2, 62 + + - 79 + - - 58 AS col2
----
1200
41

skipif mysql # not compatible
query II rowsort label-3301
SELECT DISTINCT COALESCE ( + 40, - COUNT ( * ) + + 27 * COUNT ( * ) ) * + 30 AS col2, 62 + + - 79 + - - 58 AS col2
----
1200
41

onlyif mysql # aggregate syntax: 
query II rowsort label-3302
SELECT ALL + 69 AS col2, - COUNT( * )
----
69
-1

skipif mysql # not compatible
query II rowsort label-3302
SELECT ALL + 69 AS col2, - COUNT ( * )
----
69
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3303
SELECT + CASE - 30 WHEN CAST( NULL AS SIGNED ) + - 34 THEN - 66 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3303
SELECT + CASE - 30 WHEN CAST ( NULL AS INTEGER ) + - 34 THEN - 66 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3304
SELECT + ( 85 ) * + ( ( + + 7 ) ) + - + COUNT( * ) AS col0
----
594

skipif mysql # not compatible
query I rowsort label-3304
SELECT + ( 85 ) * + ( ( + + 7 ) ) + - + COUNT ( * ) AS col0
----
594

query II rowsort
SELECT DISTINCT + 85 AS col2, ( 41 ) AS col0
----
85
41

query II rowsort
SELECT ALL + 88, 92 AS col2
----
88
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3307
SELECT COUNT( * ) * - - CASE - + 4 WHEN + 97 + + CAST( + + AVG ( 62 ) AS SIGNED ) THEN + 22 * + 73 * ( + 3 ) END + + 33 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3307
SELECT COUNT ( * ) * - - CASE - + 4 WHEN + 97 + + CAST ( + + AVG ( 62 ) AS INTEGER ) THEN + 22 * + 73 * ( + 3 ) END + + 33 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3308
SELECT ALL CAST( NULL AS SIGNED ) / - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3308
SELECT ALL CAST ( NULL AS INTEGER ) / - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3309
SELECT ALL 38 + - COUNT( * )
----
37

skipif mysql # not compatible
query I rowsort label-3309
SELECT ALL 38 + - COUNT ( * )
----
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3310
SELECT + COUNT( * ) + - COUNT( * ) DIV + 6 col0
----
1

skipif mysql # not compatible
query I rowsort label-3310
SELECT + COUNT ( * ) + - COUNT ( * ) / + 6 col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3311
SELECT - NULLIF ( + CAST( NULL AS SIGNED ), - 63 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3311
SELECT - NULLIF ( + CAST ( NULL AS INTEGER ), - 63 ) col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3312
SELECT 23 * 99 * + - 37 * COUNT( - 75 ) + + NULLIF ( MIN( + 71 ), + 69 - + - 32 - + COUNT( * ) ) DIV - + 19 AS col1
----
-84252

skipif mysql # not compatible
query I rowsort label-3312
SELECT 23 * 99 * + - 37 * COUNT ( - 75 ) + + NULLIF ( MIN ( + 71 ), + 69 - + - 32 - + COUNT ( * ) ) / - + 19 AS col1
----
-84252

onlyif mysql # aggregate syntax: 
query I rowsort label-3313
SELECT - COUNT( * ) - + + 19
----
-20

skipif mysql # not compatible
query I rowsort label-3313
SELECT - COUNT ( * ) - + + 19
----
-20

query II rowsort
SELECT - 90 AS col2, 95 + + 33
----
-90
128

onlyif mysql # aggregate syntax: 
query I rowsort label-3315
SELECT ALL + 68 + + - COUNT( * )
----
67

skipif mysql # not compatible
query I rowsort label-3315
SELECT ALL + 68 + + - COUNT ( * )
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3316
SELECT ALL - COUNT( * ) * - 4 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-3316
SELECT ALL - COUNT ( * ) * - 4 AS col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-3317
SELECT ALL - COUNT( * ) + + + 78 col1
----
77

skipif mysql # not compatible
query I rowsort label-3317
SELECT ALL - COUNT ( * ) + + + 78 col1
----
77

query I rowsort
SELECT - - 12 + - - ( + 44 )
----
56

query I rowsort
SELECT ALL + + 70 * + 6 AS col0
----
420

onlyif mysql # aggregate syntax: 
query II rowsort label-3320
SELECT + + COUNT( * ) * COUNT( * ) * + 6 AS col0, - 99 + + COUNT( ALL - 34 )
----
6
-98

skipif mysql # not compatible
query II rowsort label-3320
SELECT + + COUNT ( * ) * COUNT ( * ) * + 6 AS col0, - 99 + + COUNT ( ALL - 34 )
----
6
-98

query I rowsort
SELECT ALL - 57 - NULLIF ( + 11, - 29 ) + 25 - - - 77 * - 86 * + - 51 AS col2
----
-337765

query I rowsort
SELECT - - ( - 82 )
----
-82

query II rowsort
SELECT ALL 21, 58 AS col0
----
21
58

query I rowsort
SELECT - 21 * - 67 * + + 2
----
2814

query I rowsort
SELECT + 96 + + NULLIF ( - 80, 74 ) + - 36 * - + ( + 5 )
----
196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3326
SELECT ALL - + ( - CASE - 54 WHEN - 81 THEN - 72 WHEN + - 49 - 92 THEN NULL WHEN + 60 THEN NULL ELSE 6 END ) - CAST( 66 AS SIGNED ) + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3326
SELECT ALL - + ( - CASE - 54 WHEN - 81 THEN - 72 WHEN + - 49 - 92 THEN NULL WHEN + 60 THEN NULL ELSE 6 END ) - CAST ( 66 AS INTEGER ) + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3327
SELECT ALL MIN( + 62 ) AS col2
----
62

skipif mysql # not compatible
query I rowsort label-3327
SELECT ALL MIN ( + 62 ) AS col2
----
62

query I rowsort
SELECT ALL + - 45 * - 2 AS col1
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3329
SELECT - + CASE - - CAST( + 48 AS SIGNED ) WHEN + CAST( NULL AS SIGNED ) THEN NULL WHEN 78 THEN + 45 * - 59 * + COUNT( * ) * + COUNT( * ) * - 74 + + 76 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3329
SELECT - + CASE - - CAST ( + 48 AS INTEGER ) WHEN + CAST ( NULL AS INTEGER ) THEN NULL WHEN 78 THEN + 45 * - 59 * + COUNT ( * ) * + COUNT ( * ) * - 74 + + 76 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3330
SELECT ALL + ( NULLIF ( + 8, + + 53 * - - 90 * + NULLIF ( - 74, - - 33 ) + 38 - + + CAST( ( - 22 ) AS SIGNED ) ) ) AS col0
----
8

skipif mysql # not compatible
query I rowsort label-3330
SELECT ALL + ( NULLIF ( + 8, + + 53 * - - 90 * + NULLIF ( - 74, - - 33 ) + 38 - + + CAST ( ( - 22 ) AS INTEGER ) ) ) AS col0
----
8

query I rowsort
SELECT DISTINCT + 72 * 3 AS col0
----
216

onlyif mysql # DIV for integer division: 
query I rowsort label-3332
SELECT - + 50 DIV - 68 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3332
SELECT - + 50 / - 68 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3333
SELECT - COUNT( * ) DIV - + 73 * + + 14 * - 8 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3333
SELECT - COUNT ( * ) / - + 73 * + + 14 * - 8 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3334
SELECT ALL + AVG ( ALL - 69 ) * CASE CAST( - MAX( 24 ) AS SIGNED ) WHEN - 22 THEN + + 73 ELSE NULL END + + CAST( + COUNT( * ) AS SIGNED ) + + 16 - + + 4 / - 57
----
NULL

skipif mysql # not compatible
query I rowsort label-3334
SELECT ALL + AVG ( ALL - 69 ) * CASE CAST ( - MAX ( 24 ) AS INTEGER ) WHEN - 22 THEN + + 73 ELSE NULL END + + CAST ( + COUNT ( * ) AS INTEGER ) + + 16 - + + 4 / - 57
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3335
SELECT + 23 * + COALESCE ( + 79, - + CAST( ( + 64 ) AS SIGNED ) + - 50 ), 39 - - - COUNT( * ) AS col2
----
1817
38

skipif mysql # not compatible
query II rowsort label-3335
SELECT + 23 * + COALESCE ( + 79, - + CAST ( ( + 64 ) AS INTEGER ) + - 50 ), 39 - - - COUNT ( * ) AS col2
----
1817
38

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3336
SELECT CAST( + - 22 AS SIGNED ) AS col1, + 73 AS col0
----
-22
73

skipif mysql # not compatible
query II rowsort label-3336
SELECT CAST ( + - 22 AS INTEGER ) AS col1, + 73 AS col0
----
-22
73

query I rowsort
SELECT + 16 + + 37
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3338
SELECT DISTINCT + CASE + COUNT( * ) WHEN ( CAST( - 71 AS SIGNED ) ) THEN + + CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3338
SELECT DISTINCT + CASE + COUNT ( * ) WHEN ( CAST ( - 71 AS INTEGER ) ) THEN + + CAST ( NULL AS INTEGER ) END
----
NULL

query I rowsort
SELECT ( - 72 )
----
-72

query I rowsort
SELECT DISTINCT + 35 * 37 * ( + 67 ) + - 6 + + 90 * - - ( 60 )
----
92159

query I rowsort
SELECT DISTINCT + 21 AS col1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-3342
SELECT DISTINCT - 68 * + COUNT( * ) + - 17
----
-85

skipif mysql # not compatible
query I rowsort label-3342
SELECT DISTINCT - 68 * + COUNT ( * ) + - 17
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-3343
SELECT 37 * + + COUNT( * ) - 79
----
-42

skipif mysql # not compatible
query I rowsort label-3343
SELECT 37 * + + COUNT ( * ) - 79
----
-42

query I rowsort
SELECT ( - + 48 ) AS col2
----
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-3345
SELECT CASE WHEN 29 IS NOT NULL THEN - 0 + - 53 + 49 * - 7 * ( - - COUNT( * ) ) + - 70 WHEN NOT NULL IS NULL THEN NULL ELSE - 45 END, COUNT( * ) AS col1
----
-466
1

skipif mysql # not compatible
query II rowsort label-3345
SELECT CASE WHEN 29 IS NOT NULL THEN - 0 + - 53 + 49 * - 7 * ( - - COUNT ( * ) ) + - 70 WHEN NOT NULL IS NULL THEN NULL ELSE - 45 END, COUNT ( * ) AS col1
----
-466
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3346
SELECT + COUNT( * ) * - CAST( NULL AS SIGNED ) * ( + MAX( + + CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3346
SELECT + COUNT ( * ) * - CAST ( NULL AS INTEGER ) * ( + MAX ( + + CAST ( NULL AS INTEGER ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3347
SELECT + 42 * - 65 * ( - MIN( ALL - + 43 ) ) + + MAX( + 17 ) + + COUNT( 23 ) - ( 87 ) AS col0
----
-117459

skipif mysql # not compatible
query I rowsort label-3347
SELECT + 42 * - 65 * ( - MIN ( ALL - + 43 ) ) + + MAX ( + 17 ) + + COUNT ( 23 ) - ( 87 ) AS col0
----
-117459

query I rowsort
SELECT + ( - 54 ) AS col1
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3349
SELECT + COUNT( * ) + - - 94 + - 4 + - 7 + - 70 * + CAST( - MAX( - - 73 ) AS SIGNED ) * + + NULLIF ( - - 73, + 90 )
----
373114

skipif mysql # not compatible
query I rowsort label-3349
SELECT + COUNT ( * ) + - - 94 + - 4 + - 7 + - 70 * + CAST ( - MAX ( - - 73 ) AS INTEGER ) * + + NULLIF ( - - 73, + 90 )
----
373114

query II rowsort
SELECT ALL 79 * 20 AS col0, 48 * - - 9 AS col1
----
1580
432

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3351
SELECT ALL CAST( - 61 AS SIGNED ) * + COALESCE ( - 48, ( + + 30 ) * + 69, - 11 ) * + 36 + 65 * + - 45
----
102483

skipif mysql # not compatible
query I rowsort label-3351
SELECT ALL CAST ( - 61 AS INTEGER ) * + COALESCE ( - 48, ( + + 30 ) * + 69, - 11 ) * + 36 + 65 * + - 45
----
102483

query II rowsort
SELECT + - 16 * - - 46 AS col0, - 44
----
-736
-44

query I rowsort
SELECT + + 42 * - 92
----
-3864

onlyif mysql # DIV for integer division: 
query I rowsort label-3354
SELECT DISTINCT ( - + 24 ) DIV + 23 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3354
SELECT DISTINCT ( - + 24 ) / + 23 AS col1
----
-1

query I rowsort
SELECT - 53 * - + 40
----
2120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3356
SELECT 97 + CAST( NULL AS SIGNED ) + - ( + COUNT( * ) ) * SUM( + + 0 ) * - + COUNT( * ) / 19 / + - 58 * - COUNT( * ) + CASE + + 18 WHEN 32 THEN 55 ELSE NULL END * - 87 + + + 89
----
NULL

skipif mysql # not compatible
query I rowsort label-3356
SELECT 97 + CAST ( NULL AS INTEGER ) + - ( + COUNT ( * ) ) * SUM ( + + 0 ) * - + COUNT ( * ) / 19 / + - 58 * - COUNT ( * ) + CASE + + 18 WHEN 32 THEN 55 ELSE NULL END * - 87 + + + 89
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3357
SELECT ALL COUNT( - 51 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3357
SELECT ALL COUNT ( - 51 ) AS col1
----
1

query II rowsort
SELECT - 10 + + + 36 AS col1, - 12 + 91 + ( + 70 )
----
26
149

query II rowsort
SELECT + 19 * 56, - 14 * + NULLIF ( ( - - 88 ), NULLIF ( - - 28, + + 3 ) ) AS col0
----
1064
-1232

onlyif mysql # aggregate syntax: 
query I rowsort label-3360
SELECT ALL - CASE + ( - 33 ) WHEN - 34 + - 77 THEN NULL ELSE + + COUNT( * ) * + 44 + + - NULLIF ( + + SUM( - - 3 ), - 89 ) END AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-3360
SELECT ALL - CASE + ( - 33 ) WHEN - 34 + - 77 THEN NULL ELSE + + COUNT ( * ) * + 44 + + - NULLIF ( + + SUM ( - - 3 ), - 89 ) END AS col1
----
-41

query III rowsort
SELECT + 33 - + 67, + 43 * ( 58 ) + - 92 + - + 48 AS col0, 15 AS col2
----
-34
2354
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3362
SELECT ALL NULLIF ( + MIN( DISTINCT - 81 ), 44 + CASE + 82 WHEN - 99 + COUNT( * ) THEN NULL WHEN - + 37 THEN NULL ELSE - 75 / + COALESCE ( - 10, COUNT( * ) ) END )
----
-81

skipif mysql # not compatible
query I rowsort label-3362
SELECT ALL NULLIF ( + MIN ( DISTINCT - 81 ), 44 + CASE + 82 WHEN - 99 + COUNT ( * ) THEN NULL WHEN - + 37 THEN NULL ELSE - 75 / + COALESCE ( - 10, COUNT ( * ) ) END )
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3363
SELECT ALL + 60 * - 49, CAST( ( + + 11 ) AS SIGNED ) AS col2
----
-2940
11

skipif mysql # not compatible
query II rowsort label-3363
SELECT ALL + 60 * - 49, CAST ( ( + + 11 ) AS INTEGER ) AS col2
----
-2940
11

onlyif mysql # aggregate syntax: 
query I rowsort label-3364
SELECT DISTINCT COUNT( * ) * 73 AS col1
----
73

skipif mysql # not compatible
query I rowsort label-3364
SELECT DISTINCT COUNT ( * ) * 73 AS col1
----
73

query I rowsort
SELECT - 11 col0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-3366
SELECT 45 + + COUNT( * ) AS col1
----
46

skipif mysql # not compatible
query I rowsort label-3366
SELECT 45 + + COUNT ( * ) AS col1
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3367
SELECT 18 + - 25 * - COUNT( * ) * - 30
----
-732

skipif mysql # not compatible
query I rowsort label-3367
SELECT 18 + - 25 * - COUNT ( * ) * - 30
----
-732

query I rowsort
SELECT 54 - 83
----
-29

query I rowsort
SELECT DISTINCT + ( + - 71 ) + - 50 AS col0
----
-121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3370
SELECT - 33 * - 90 + + - 55 * CASE + 25 WHEN + 57 + + 25 + - - 88 * + 1 THEN NULL WHEN - 41 * NULLIF ( - SUM( DISTINCT + 2 ), CAST( NULL AS SIGNED ) ) * - - ( + 36 ) * + 58 - - CAST( SUM( + - 60 ) AS SIGNED ) - + 14 THEN + 2 ELSE NULL END + - 45 col0, 17 AS col1
----
NULL
17

skipif mysql # not compatible
query II rowsort label-3370
SELECT - 33 * - 90 + + - 55 * CASE + 25 WHEN + 57 + + 25 + - - 88 * + 1 THEN NULL WHEN - 41 * NULLIF ( - SUM ( DISTINCT + 2 ), CAST ( NULL AS INTEGER ) ) * - - ( + 36 ) * + 58 - - CAST ( SUM ( + - 60 ) AS INTEGER ) - + 14 THEN + 2 ELSE NULL END + - 45 col0, 17 AS col1
----
NULL
17

query I rowsort
SELECT ALL 76 + + 91 col0
----
167

query I rowsort
SELECT DISTINCT - NULLIF ( + 19, - ( + 29 ) )
----
-19

query I rowsort
SELECT DISTINCT - 22 + + - 86
----
-108

query I rowsort
SELECT ALL + 68 + + ( - 16 ) + 89
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-3375
SELECT ALL - SUM( DISTINCT 97 ) col0
----
-97

skipif mysql # not compatible
query I rowsort label-3375
SELECT ALL - SUM ( DISTINCT 97 ) col0
----
-97

query I rowsort
SELECT ALL - 4 + + + 20 * + - 63 AS col0
----
-1264

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3377
SELECT 53 + + COALESCE ( + COUNT( * ), + 19 DIV 78 * 80 - 18 + + - 81 DIV + 51, 97 ) + - 69
----
-15

skipif mysql # not compatible
query I rowsort label-3377
SELECT 53 + + COALESCE ( + COUNT ( * ), + 19 / 78 * 80 - 18 + + - 81 / + 51, 97 ) + - 69
----
-15

query I rowsort
SELECT ALL - ( - + 65 ) + - 42
----
23

query I rowsort
SELECT ALL + 59 + - + 45 * + 91
----
-4036

query I rowsort
SELECT - 51 * + ( - - 62 ) + - 28
----
-3190

query I rowsort
SELECT 43 * 21 col0
----
903

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3382
SELECT 60 * + AVG ( DISTINCT - - 70 ) + + + COUNT( * ) * - + AVG ( ALL + - CAST( NULL AS SIGNED ) ), - 10 * + COALESCE ( - 56, + COUNT( * ), - - 14 + + 50 ) AS col0
----
NULL
560

skipif mysql # not compatible
query II rowsort label-3382
SELECT 60 * + AVG ( DISTINCT - - 70 ) + + + COUNT ( * ) * - + AVG ( ALL + - CAST ( NULL AS INTEGER ) ), - 10 * + COALESCE ( - 56, + COUNT ( * ), - - 14 + + 50 ) AS col0
----
NULL
560

query I rowsort
SELECT 53 * - ( - 72 ) * 15
----
57240

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3384
SELECT 59 + + MIN( 76 ) DIV - ( - - 8 )
----
50

skipif mysql # not compatible
query I rowsort label-3384
SELECT 59 + + MIN ( 76 ) / - ( - - 8 )
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3385
SELECT CASE + 64 WHEN + CAST( NULL AS SIGNED ) THEN NULL ELSE - COUNT( * ) * 14 * 66 * ( 23 ) + MIN( 88 ) + 60 + + 48 END * + - 48 * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3385
SELECT CASE + 64 WHEN + CAST ( NULL AS INTEGER ) THEN NULL ELSE - COUNT ( * ) * 14 * 66 * ( 23 ) + MIN ( 88 ) + 60 + + 48 END * + - 48 * + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3386
SELECT ALL - ( + 59 ) + + MAX( DISTINCT 0 ) AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-3386
SELECT ALL - ( + 59 ) + + MAX ( DISTINCT 0 ) AS col0
----
-59

query III rowsort
SELECT 37, + 34 + - 34 AS col2, + 45 * + 18 * 78 AS col2
----
37
0
63180

onlyif mysql # aggregate syntax: 
query I rowsort label-3388
SELECT ALL 85 + 56 * - - NULLIF ( + 49, - 67 * + - 64 / + + 38 ) * - ( ( - 16 ) ) + - + ( - 69 ) + - COUNT( * ) * + + 38 - - 31 - + 50
----
44001

skipif mysql # not compatible
query I rowsort label-3388
SELECT ALL 85 + 56 * - - NULLIF ( + 49, - 67 * + - 64 / + + 38 ) * - ( ( - 16 ) ) + - + ( - 69 ) + - COUNT ( * ) * + + 38 - - 31 - + 50
----
44001

onlyif mysql # aggregate syntax: 
query I rowsort label-3389
SELECT 75 + COUNT( * ) - - + 19
----
95

skipif mysql # not compatible
query I rowsort label-3389
SELECT 75 + COUNT ( * ) - - + 19
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-3390
SELECT MIN( DISTINCT ( - 58 ) ) * 50
----
-2900

skipif mysql # not compatible
query I rowsort label-3390
SELECT MIN ( DISTINCT ( - 58 ) ) * 50
----
-2900

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3391
SELECT ALL - CAST( NULL AS SIGNED ) AS col1, 22 + + 55 AS col1
----
NULL
77

skipif mysql # not compatible
query II rowsort label-3391
SELECT ALL - CAST ( NULL AS INTEGER ) AS col1, 22 + + 55 AS col1
----
NULL
77

query I rowsort
SELECT DISTINCT CASE 84 WHEN - 3 THEN 89 - 82 WHEN 26 - 55 * + 46 THEN NULL END * 94 AS col1
----
NULL

query I rowsort
SELECT 65 + 54 AS col0
----
119

query I rowsort
SELECT 3 + 28
----
31

query I rowsort
SELECT 74 + + 10 AS col0
----
84

query I rowsort
SELECT 10 + + 5 col2
----
15

query I rowsort
SELECT DISTINCT 43 * + 7 AS col2
----
301

query I rowsort
SELECT 22 * - 24 AS col0
----
-528

onlyif mysql # aggregate syntax: 
query I rowsort label-3399
SELECT ALL 78 * - COUNT( * ) AS col0
----
-78

skipif mysql # not compatible
query I rowsort label-3399
SELECT ALL 78 * - COUNT ( * ) AS col0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-3400
SELECT 93 * - COUNT( * ) col0
----
-93

skipif mysql # not compatible
query I rowsort label-3400
SELECT 93 * - COUNT ( * ) col0
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-3401
SELECT ALL - 98 * + COUNT( DISTINCT - 15 * 90 )
----
-98

skipif mysql # not compatible
query I rowsort label-3401
SELECT ALL - 98 * + COUNT ( DISTINCT - 15 * 90 )
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-3402
SELECT DISTINCT + 43 - - 7 * - COUNT( * ) AS col2
----
36

skipif mysql # not compatible
query I rowsort label-3402
SELECT DISTINCT + 43 - - 7 * - COUNT ( * ) AS col2
----
36

query I rowsort
SELECT DISTINCT - 80 * 82
----
-6560

onlyif mysql # DIV for integer division: 
query I rowsort label-3404
SELECT ALL 65 DIV 22 col0
----
2

skipif mysql # not compatible
query I rowsort label-3404
SELECT ALL 65 / 22 col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3405
SELECT ( - 18 ) + 92 * + COUNT( * )
----
74

skipif mysql # not compatible
query I rowsort label-3405
SELECT ( - 18 ) + 92 * + COUNT ( * )
----
74

query I rowsort
SELECT ( 82 ) * 61
----
5002

onlyif mysql # aggregate syntax: 
query I rowsort label-3407
SELECT COUNT( * ) * 95
----
95

skipif mysql # not compatible
query I rowsort label-3407
SELECT COUNT ( * ) * 95
----
95

query I rowsort
SELECT ALL 12 + 39
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3409
SELECT ALL COUNT( * ) DIV COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-3409
SELECT ALL COUNT ( * ) / COUNT ( * )
----
1

query I rowsort
SELECT 54 + + 53
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-3411
SELECT DISTINCT - 90 + COUNT( 68 + 56 )
----
-89

skipif mysql # not compatible
query I rowsort label-3411
SELECT DISTINCT - 90 + COUNT ( 68 + 56 )
----
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-3412
SELECT ALL + 36 + - 37 DIV 30
----
35

skipif mysql # not compatible
query I rowsort label-3412
SELECT ALL + 36 + - 37 / 30
----
35

query I rowsort
SELECT ALL 69 * - 16 AS col0
----
-1104

query I rowsort
SELECT DISTINCT NULLIF ( 73, - 42 - ( + 62 + 63 ) / + 7 ) + CASE WHEN NOT 99 NOT BETWEEN NULL AND ( 20 ) THEN NULL ELSE 80 * - 78 END
----
-6167

onlyif mysql # aggregate syntax: 
query I rowsort label-3415
SELECT - MIN( 26 )
----
-26

skipif mysql # not compatible
query I rowsort label-3415
SELECT - MIN ( 26 )
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3416
SELECT DISTINCT 4 * CAST( + 26 AS SIGNED )
----
104

skipif mysql # not compatible
query I rowsort label-3416
SELECT DISTINCT 4 * CAST ( + 26 AS INTEGER )
----
104

query I rowsort
SELECT DISTINCT 4 * - 48 + 9 col0
----
-183

query I rowsort
SELECT 63 * 2 AS col1
----
126

query I rowsort
SELECT ALL - 13 * 31 + + 99
----
-304

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3420
SELECT ALL CAST( NULL AS SIGNED ) * + 17 + + 47 * 44
----
NULL

skipif mysql # not compatible
query I rowsort label-3420
SELECT ALL CAST ( NULL AS INTEGER ) * + 17 + + 47 * 44
----
NULL

query I rowsort
SELECT - 47 * - 35 - + 83
----
1562

onlyif mysql # aggregate syntax: 
query I rowsort label-3422
SELECT SUM( 95 ) AS col0
----
95

skipif mysql # not compatible
query I rowsort label-3422
SELECT SUM ( 95 ) AS col0
----
95

query I rowsort
SELECT 88 * - 98
----
-8624

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3424
SELECT + COALESCE ( 88, ( CAST( NULL AS SIGNED ) ), CASE 86 WHEN + ( + 43 ) * 52 THEN NULL WHEN - MAX( + 15 ) THEN NULL ELSE - 15 END ) AS col1
----
88

skipif mysql # not compatible
query I rowsort label-3424
SELECT + COALESCE ( 88, ( CAST ( NULL AS INTEGER ) ), CASE 86 WHEN + ( + 43 ) * 52 THEN NULL WHEN - MAX ( + 15 ) THEN NULL ELSE - 15 END ) AS col1
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-3425
SELECT DISTINCT 15 * + COALESCE ( + COUNT( + CASE 67 WHEN COALESCE ( 31, + 38, - 86 * 56 ) THEN ( + 71 ) ELSE NULL END ), - 79 ) - ( - COUNT( * ) + 35 )
----
-34

skipif mysql # not compatible
query I rowsort label-3425
SELECT DISTINCT 15 * + COALESCE ( + COUNT ( + CASE 67 WHEN COALESCE ( 31, + 38, - 86 * 56 ) THEN ( + 71 ) ELSE NULL END ), - 79 ) - ( - COUNT ( * ) + 35 )
----
-34

query I rowsort
SELECT ALL - ( 18 ) col2
----
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3427
SELECT ALL MIN( + 12 ) * + 32 - - 30 DIV + 13
----
386

skipif mysql # not compatible
query I rowsort label-3427
SELECT ALL MIN ( + 12 ) * + 32 - - 30 / + 13
----
386

query I rowsort
SELECT 78 * - 78 AS col2
----
-6084

onlyif mysql # DIV for integer division: 
query I rowsort label-3429
SELECT ALL - 1 DIV 46
----
0

skipif mysql # not compatible
query I rowsort label-3429
SELECT ALL - 1 / 46
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3430
SELECT DISTINCT - NULLIF ( + 33, COALESCE ( - ( + 74 ), 13 * - 71, 20 * SUM( DISTINCT + 84 ) ) ) col0
----
-33

skipif mysql # not compatible
query I rowsort label-3430
SELECT DISTINCT - NULLIF ( + 33, COALESCE ( - ( + 74 ), 13 * - 71, 20 * SUM ( DISTINCT + 84 ) ) ) col0
----
-33

query I rowsort
SELECT + 9 * 42 - 96 * + 28 AS col0
----
-2310

query I rowsort
SELECT ALL + 2 * 29
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3433
SELECT ALL CASE + ( + CASE 75 WHEN 47 - - CAST( + CAST( NULLIF ( ( + 41 ), + ( 77 ) * 18 ) AS SIGNED ) AS SIGNED ) THEN - 15 + 42 ELSE NULL END ) WHEN - 77 + + 38 THEN + ( - 22 ) * 14 + 6 WHEN + 73 THEN NULL WHEN - 19 + ( 33 ) THEN NULL END * + 32 - ( 78 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3433
SELECT ALL CASE + ( + CASE 75 WHEN 47 - - CAST ( + CAST ( NULLIF ( ( + 41 ), + ( 77 ) * 18 ) AS INTEGER ) AS INTEGER ) THEN - 15 + 42 ELSE NULL END ) WHEN - 77 + + 38 THEN + ( - 22 ) * 14 + 6 WHEN + 73 THEN NULL WHEN - 19 + ( 33 ) THEN NULL END * + 32 - ( 78 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3434
SELECT - COALESCE ( - 7, CASE - 48 WHEN 32 / - MAX( 65 ) THEN - 9 WHEN 37 + - 0 * 0 THEN NULL ELSE - CAST( 85 AS SIGNED ) END ) * 26 AS col1
----
182

skipif mysql # not compatible
query I rowsort label-3434
SELECT - COALESCE ( - 7, CASE - 48 WHEN 32 / - MAX ( 65 ) THEN - 9 WHEN 37 + - 0 * 0 THEN NULL ELSE - CAST ( 85 AS INTEGER ) END ) * 26 AS col1
----
182

query I rowsort
SELECT - 56 * + 11
----
-616

query I rowsort
SELECT ALL + + ( 29 ) * 34
----
986

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3437
SELECT - CASE 38 WHEN 40 + + CAST( NULL AS SIGNED ) THEN ( 65 ) + 49 * 3 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3437
SELECT - CASE 38 WHEN 40 + + CAST ( NULL AS INTEGER ) THEN ( 65 ) + 49 * 3 END AS col0
----
NULL

query I rowsort
SELECT + - 80 AS col1
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-3439
SELECT DISTINCT + - SUM( 71 )
----
-71

skipif mysql # not compatible
query I rowsort label-3439
SELECT DISTINCT + - SUM ( 71 )
----
-71

query I rowsort
SELECT DISTINCT ( + 34 ) AS col1
----
34

query I rowsort
SELECT ALL 59 * + 63
----
3717

query I rowsort
SELECT - - 38 + + 4
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-3443
SELECT + - 99 DIV - 32
----
3

skipif mysql # not compatible
query I rowsort label-3443
SELECT + - 99 / - 32
----
3

query I rowsort
SELECT ALL + NULLIF ( ( + 13 ), - 53 )
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3445
SELECT - + 13 + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3445
SELECT - + 13 + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 49 * 45
----
-2205

onlyif mysql # aggregate syntax: 
query I rowsort label-3447
SELECT + - 38 + + COUNT( * )
----
-37

skipif mysql # not compatible
query I rowsort label-3447
SELECT + - 38 + + COUNT ( * )
----
-37

query I rowsort
SELECT ALL 58 + 23 AS col1
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3449
SELECT + 64 - + CASE + 61 WHEN - 72 + + 2 DIV + 87 THEN 66 DIV 49 WHEN 82 THEN 46 WHEN ( ( + COALESCE ( + COUNT( * ), - 37 * + ( COUNT( * ) DIV - 36 ) + 74, 47 * - 70 ) ) ) THEN NULL WHEN CAST( NULL AS SIGNED ) * + 71 THEN NULL ELSE - 18 + 89 END
----
-7

skipif mysql # not compatible
query I rowsort label-3449
SELECT + 64 - + CASE + 61 WHEN - 72 + + 2 / + 87 THEN 66 / 49 WHEN 82 THEN 46 WHEN ( ( + COALESCE ( + COUNT ( * ), - 37 * + ( COUNT ( * ) / - 36 ) + 74, 47 * - 70 ) ) ) THEN NULL WHEN CAST ( NULL AS INTEGER ) * + 71 THEN NULL ELSE - 18 + 89 END
----
-7

query I rowsort
SELECT ALL - NULLIF ( - ( 12 ), + 21 ) * ( 73 ) col0
----
876

onlyif mysql # aggregate syntax: 
query I rowsort label-3451
SELECT ALL + 77 * SUM( + 33 )
----
2541

skipif mysql # not compatible
query I rowsort label-3451
SELECT ALL + 77 * SUM ( + 33 )
----
2541

onlyif mysql # aggregate syntax: 
query I rowsort label-3452
SELECT DISTINCT MAX( ALL 98 ) + - COUNT( ALL 5 )
----
97

skipif mysql # not compatible
query I rowsort label-3452
SELECT DISTINCT MAX ( ALL 98 ) + - COUNT ( ALL 5 )
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3453
SELECT DISTINCT 63 + + 70 * COUNT( * )
----
133

skipif mysql # not compatible
query I rowsort label-3453
SELECT DISTINCT 63 + + 70 * COUNT ( * )
----
133

query I rowsort
SELECT ALL NULLIF ( + + 9, 14 ) + 84 AS col1
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3455
SELECT - 28 * + 56 * + MAX( DISTINCT - 41 * 30 )
----
1928640

skipif mysql # not compatible
query I rowsort label-3455
SELECT - 28 * + 56 * + MAX ( DISTINCT - 41 * 30 )
----
1928640

query I rowsort
SELECT + 93 + + 92 * 25 AS col1
----
2393

query I rowsort
SELECT + 4 + 69
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-3458
SELECT ALL 75 DIV + 65
----
1

skipif mysql # not compatible
query I rowsort label-3458
SELECT ALL 75 / + 65
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3459
SELECT + MIN( DISTINCT 59 ) + COUNT( * ) AS col1
----
60

skipif mysql # not compatible
query I rowsort label-3459
SELECT + MIN ( DISTINCT 59 ) + COUNT ( * ) AS col1
----
60

query I rowsort
SELECT + ( - + 38 ) - 48 AS col0
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-3461
SELECT ( - COUNT( * ) ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-3461
SELECT ( - COUNT ( * ) ) col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3462
SELECT COUNT( - 52 ) * + ( 82 ) + + CAST( CAST( COALESCE ( - 60, 10, 47 * + 75 ) AS SIGNED ) - - 27 AS SIGNED ) col0
----
49

skipif mysql # not compatible
query I rowsort label-3462
SELECT COUNT ( - 52 ) * + ( 82 ) + + CAST ( CAST ( COALESCE ( - 60, 10, 47 * + 75 ) AS INTEGER ) - - 27 AS INTEGER ) col0
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3463
SELECT ALL 12 / + CAST( NULL AS SIGNED ) - CASE - 27 WHEN - 3 / 68 THEN NULL WHEN - 11 / 86 THEN 57 / 89 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3463
SELECT ALL 12 / + CAST ( NULL AS INTEGER ) - CASE - 27 WHEN - 3 / 68 THEN NULL WHEN - 11 / 86 THEN 57 / 89 END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3464
SELECT + COALESCE ( 62, ( CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) ) * 12, COUNT( * ) + + 82, - COALESCE ( + 47, - 27 + + 69 * 5 ) + 5 )
----
62

skipif mysql # not compatible
query I rowsort label-3464
SELECT + COALESCE ( 62, ( CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) ) * 12, COUNT ( * ) + + 82, - COALESCE ( + 47, - 27 + + 69 * 5 ) + 5 )
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-3465
SELECT ALL 18 DIV - ( + 73 ) - + NULLIF ( - 55 - + 5, + 5 )
----
60

skipif mysql # not compatible
query I rowsort label-3465
SELECT ALL 18 / - ( + 73 ) - + NULLIF ( - 55 - + 5, + 5 )
----
60

query I rowsort
SELECT + ( 15 ) AS col1
----
15

query I rowsort
SELECT DISTINCT 15 * - 12
----
-180

onlyif mysql # aggregate syntax: 
query I rowsort label-3468
SELECT + 27 + + 54 + - COALESCE ( COUNT( 20 ), - 83 ) AS col0
----
80

skipif mysql # not compatible
query I rowsort label-3468
SELECT + 27 + + 54 + - COALESCE ( COUNT ( 20 ), - 83 ) AS col0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3469
SELECT ( + MAX( ALL + 37 ) )
----
37

skipif mysql # not compatible
query I rowsort label-3469
SELECT ( + MAX ( ALL + 37 ) )
----
37

query I rowsort
SELECT ALL 50 * + + 20
----
1000

query I rowsort
SELECT ALL 55 * 15 - - NULLIF ( - 95, - 13 ) * 92 AS col0
----
-7915

onlyif mysql # aggregate syntax: 
query I rowsort label-3472
SELECT + SUM( + 0 ) col2
----
0

skipif mysql # not compatible
query I rowsort label-3472
SELECT + SUM ( + 0 ) col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3473
SELECT 94 DIV ( - 43 ) + ( 6 )
----
4

skipif mysql # not compatible
query I rowsort label-3473
SELECT 94 / ( - 43 ) + ( 6 )
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3474
SELECT ALL + 49 DIV - MAX( CAST( 46 AS SIGNED ) ) + + 11
----
10

skipif mysql # not compatible
query I rowsort label-3474
SELECT ALL + 49 / - MAX ( CAST ( 46 AS INTEGER ) ) + + 11
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-3475
SELECT - 77 DIV 27 * 3
----
-6

skipif mysql # not compatible
query I rowsort label-3475
SELECT - 77 / 27 * 3
----
-6

query I rowsort
SELECT - + 27 + + 17 col1
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-3477
SELECT ALL - 74 * SUM( - 60 ) + + 39 AS col2
----
4479

skipif mysql # not compatible
query I rowsort label-3477
SELECT ALL - 74 * SUM ( - 60 ) + + 39 AS col2
----
4479

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3478
SELECT CAST( + 25 AS SIGNED ) * + 44 + - 75 DIV 63 col2
----
1099

skipif mysql # not compatible
query I rowsort label-3478
SELECT CAST ( + 25 AS INTEGER ) * + 44 + - 75 / 63 col2
----
1099

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3479
SELECT + - MAX( ALL 21 ) DIV COUNT( * )
----
-21

skipif mysql # not compatible
query I rowsort label-3479
SELECT + - MAX ( ALL 21 ) / COUNT ( * )
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-3480
SELECT - + 78 + NULLIF ( COUNT( * ), COUNT( - NULLIF ( - ( 71 ), + 68 * + 69 + 73 ) ) + 12 )
----
-77

skipif mysql # not compatible
query I rowsort label-3480
SELECT - + 78 + NULLIF ( COUNT ( * ), COUNT ( - NULLIF ( - ( 71 ), + 68 * + 69 + 73 ) ) + 12 )
----
-77

query I rowsort
SELECT + + 67 * - 43 - 77 * - 58
----
1585

onlyif mysql # aggregate syntax: 
query I rowsort label-3482
SELECT + MAX( ALL + - 87 )
----
-87

skipif mysql # not compatible
query I rowsort label-3482
SELECT + MAX ( ALL + - 87 )
----
-87

query I rowsort
SELECT - - 3 + - 36
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-3484
SELECT - COUNT( * ) + 42 AS col1
----
41

skipif mysql # not compatible
query I rowsort label-3484
SELECT - COUNT ( * ) + 42 AS col1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-3485
SELECT DISTINCT - - 6 * + + COUNT( * ) + + 86
----
92

skipif mysql # not compatible
query I rowsort label-3485
SELECT DISTINCT - - 6 * + + COUNT ( * ) + + 86
----
92

query I rowsort
SELECT ALL + 38 * + 25 + 4 + 72
----
1026

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3487
SELECT - CAST( - + 19 AS SIGNED ) DIV 33
----
0

skipif mysql # not compatible
query I rowsort label-3487
SELECT - CAST ( - + 19 AS INTEGER ) / 33
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3488
SELECT - COUNT( * ) + - 58
----
-59

skipif mysql # not compatible
query I rowsort label-3488
SELECT - COUNT ( * ) + - 58
----
-59

query I rowsort
SELECT DISTINCT - - 14 * 90 AS col1
----
1260

onlyif mysql # aggregate syntax: 
query I rowsort label-3490
SELECT ALL + - CASE 36 WHEN - COUNT( * ) THEN + 31 WHEN + 61 THEN NULL END + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3490
SELECT ALL + - CASE 36 WHEN - COUNT ( * ) THEN + 31 WHEN + 61 THEN NULL END + COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3491
SELECT ALL 35 + - - 49 + - 41 DIV + 96
----
84

skipif mysql # not compatible
query I rowsort label-3491
SELECT ALL 35 + - - 49 + - 41 / + 96
----
84

query I rowsort
SELECT - 40 * + ( - 15 )
----
600

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3493
SELECT ALL - COUNT( * ) + - CASE + 30 WHEN COUNT( * ) + 74 THEN NULL ELSE COUNT( * ) DIV + 42 END * + CASE ( - 83 ) WHEN + 55 - SUM( - ( - 42 ) ) THEN NULL ELSE 79 + 15 END
----
-1

skipif mysql # not compatible
query I rowsort label-3493
SELECT ALL - COUNT ( * ) + - CASE + 30 WHEN COUNT ( * ) + 74 THEN NULL ELSE COUNT ( * ) / + 42 END * + CASE ( - 83 ) WHEN + 55 - SUM ( - ( - 42 ) ) THEN NULL ELSE 79 + 15 END
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3494
SELECT ALL + 73 - - + 32 + + CAST( NULL AS SIGNED ) + 51
----
NULL

skipif mysql # not compatible
query I rowsort label-3494
SELECT ALL + 73 - - + 32 + + CAST ( NULL AS INTEGER ) + 51
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3495
SELECT 53 col1, COUNT( * ) * - 70
----
53
-70

skipif mysql # not compatible
query II rowsort label-3495
SELECT 53 col1, COUNT ( * ) * - 70
----
53
-70

query I rowsort
SELECT - 5 * - + 59
----
295

query I rowsort
SELECT ALL + 0 * 43
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3498
SELECT - COUNT( * ) AS col0, + 94 + + - ( - 18 ) DIV 56
----
-1
94

skipif mysql # not compatible
query II rowsort label-3498
SELECT - COUNT ( * ) AS col0, + 94 + + - ( - 18 ) / 56
----
-1
94

query I rowsort
SELECT + 87 + - ( - - 58 )
----
29

query I rowsort
SELECT ALL 69 - 90
----
-21

query I rowsort
SELECT ALL + 1 * - 50
----
-50

query I rowsort
SELECT + 1 * + - NULLIF ( 82, 89 * 89 ) * 13 + 52 AS col1
----
-1014

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3503
SELECT 68 * - 36 DIV + - 36 * ( - COUNT( * ) )
----
-68

skipif mysql # not compatible
query I rowsort label-3503
SELECT 68 * - 36 / + - 36 * ( - COUNT ( * ) )
----
-68

query I rowsort
SELECT + 0 * - 80 * + + 98 - 44 * - 58
----
2552

onlyif mysql # DIV for integer division: 
query I rowsort label-3505
SELECT ( + 6 ) DIV + 93 - 70 * + 75 AS col2
----
-5250

skipif mysql # not compatible
query I rowsort label-3505
SELECT ( + 6 ) / + 93 - 70 * + 75 AS col2
----
-5250

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3506
SELECT ALL COUNT( * ) DIV 82
----
0

skipif mysql # not compatible
query I rowsort label-3506
SELECT ALL COUNT ( * ) / 82
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3507
SELECT CAST( NULL AS SIGNED ) + MAX( DISTINCT 55 ) * - 80
----
NULL

skipif mysql # not compatible
query I rowsort label-3507
SELECT CAST ( NULL AS INTEGER ) + MAX ( DISTINCT 55 ) * - 80
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3508
SELECT DISTINCT NULLIF ( 46, + - 75 + ( 86 + - 43 ) * - 18 ) DIV + 64
----
0

skipif mysql # not compatible
query I rowsort label-3508
SELECT DISTINCT NULLIF ( 46, + - 75 + ( 86 + - 43 ) * - 18 ) / + 64
----
0

query I rowsort
SELECT ALL - NULLIF ( 77, 84 )
----
-77

query I rowsort
SELECT ALL + 87 + - + 73 AS col1
----
14

query I rowsort
SELECT ( 90 ) * + - 23
----
-2070

query I rowsort
SELECT ALL ( + 89 ) + + + 4
----
93

query I rowsort
SELECT ALL - ( + - 51 ) AS col1
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3514
SELECT 96 * - 24 - + - CAST( NULL AS SIGNED ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3514
SELECT 96 * - 24 - + - CAST ( NULL AS INTEGER ) * COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3515
SELECT ALL CASE ( 22 ) WHEN COUNT( * ) * 98 THEN - 12 END + 73
----
NULL

skipif mysql # not compatible
query I rowsort label-3515
SELECT ALL CASE ( 22 ) WHEN COUNT ( * ) * 98 THEN - 12 END + 73
----
NULL

query I rowsort
SELECT 20 * - + 13
----
-260

query I rowsort
SELECT - ( - 79 ) * + 25
----
1975

onlyif mysql # aggregate syntax: 
query II rowsort label-3518
SELECT COUNT( * ), 96 AS col1
----
1
96

skipif mysql # not compatible
query II rowsort label-3518
SELECT COUNT ( * ), 96 AS col1
----
1
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3519
SELECT ALL + 35 + - COUNT( * ) AS col2
----
34

skipif mysql # not compatible
query I rowsort label-3519
SELECT ALL + 35 + - COUNT ( * ) AS col2
----
34

onlyif mysql # aggregate syntax: 
query II rowsort label-3520
SELECT DISTINCT - + COUNT( * ), 20 + 81 AS col0
----
-1
101

skipif mysql # not compatible
query II rowsort label-3520
SELECT DISTINCT - + COUNT ( * ), 20 + 81 AS col0
----
-1
101

query I rowsort
SELECT ALL + 60 + 61
----
121

onlyif mysql # aggregate syntax: 
query II rowsort label-3522
SELECT 49, - COUNT( * ) AS col2
----
49
-1

skipif mysql # not compatible
query II rowsort label-3522
SELECT 49, - COUNT ( * ) AS col2
----
49
-1

query I rowsort
SELECT DISTINCT 65 + + 86 AS col1
----
151

query I rowsort
SELECT + 4 * 14
----
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3525
SELECT ALL + COUNT( * ) * + 24 DIV - 78
----
0

skipif mysql # not compatible
query I rowsort label-3525
SELECT ALL + COUNT ( * ) * + 24 / - 78
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3526
SELECT 35 DIV 86 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3526
SELECT 35 / 86 AS col0
----
0

query I rowsort
SELECT ALL 83 - + 96
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3528
SELECT CAST( NULL AS SIGNED ) * - - COALESCE ( + 62, - 52, - 58 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3528
SELECT CAST ( NULL AS INTEGER ) * - - COALESCE ( + 62, - 52, - 58 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3529
SELECT ALL + 78 * NULLIF ( + ( - + CAST( COUNT( * ) AS SIGNED ) ), 73 * 59 )
----
-78

skipif mysql # not compatible
query I rowsort label-3529
SELECT ALL + 78 * NULLIF ( + ( - + CAST ( COUNT ( * ) AS INTEGER ) ), 73 * 59 )
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-3530
SELECT 79 - SUM( - + 66 )
----
145

skipif mysql # not compatible
query I rowsort label-3530
SELECT 79 - SUM ( - + 66 )
----
145

query I rowsort
SELECT 53 + + - 16 * - ( + 30 )
----
533

query I rowsort
SELECT 88 * - - 57 col1
----
5016

query I rowsort
SELECT ALL + 5 * - + 68 AS col2
----
-340

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3534
SELECT DISTINCT NULLIF ( + - 69, NULLIF ( + - 71, - 73 * - 63 + - CAST( CASE COUNT( * ) WHEN 13 + 51 THEN + COUNT( * ) + 61 * 37 END AS SIGNED ) ) + + ( ( 78 ) + 34 ) ) * - COALESCE ( + 35, + 97 * - 83 ) AS col1
----
2415

skipif mysql # not compatible
query I rowsort label-3534
SELECT DISTINCT NULLIF ( + - 69, NULLIF ( + - 71, - 73 * - 63 + - CAST ( CASE COUNT ( * ) WHEN 13 + 51 THEN + COUNT ( * ) + 61 * 37 END AS INTEGER ) ) + + ( ( 78 ) + 34 ) ) * - COALESCE ( + 35, + 97 * - 83 ) AS col1
----
2415

query I rowsort
SELECT ALL + 15 * - COALESCE ( - 16, - 60 * + 64 )
----
240

query I rowsort
SELECT 78 + - 95 AS col0
----
-17

query I rowsort
SELECT 88 + + 81
----
169

onlyif mysql # aggregate syntax: 
query I rowsort label-3538
SELECT 97 + - NULLIF ( + 23, + 3 * - 71 + + 42 * ( 26 * + 2 ) ) + + COUNT( 8 )
----
75

skipif mysql # not compatible
query I rowsort label-3538
SELECT 97 + - NULLIF ( + 23, + 3 * - 71 + + 42 * ( 26 * + 2 ) ) + + COUNT ( 8 )
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3539
SELECT DISTINCT + MAX( + 80 ) + + + 10 * + + 49 * - 5 - - CASE WHEN + 39 + + 43 <> NULL THEN 50 + 19 * + 25 WHEN NOT ( - 65 ) BETWEEN CAST( NULL AS SIGNED ) * 61 AND - 67 + + 94 * - 45 THEN NULL END * - 45
----
NULL

skipif mysql # not compatible
query I rowsort label-3539
SELECT DISTINCT + MAX ( + 80 ) + + + 10 * + + 49 * - 5 - - CASE WHEN + 39 + + 43 <> NULL THEN 50 + 19 * + 25 WHEN NOT ( - 65 ) BETWEEN CAST ( NULL AS INTEGER ) * 61 AND - 67 + + 94 * - 45 THEN NULL END * - 45
----
NULL

query I rowsort
SELECT 87 + + 96 col2
----
183

onlyif mysql # aggregate syntax: 
query I rowsort label-3541
SELECT COALESCE ( + - 71, + + COUNT( * ), 13 ) + + 57 AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-3541
SELECT COALESCE ( + - 71, + + COUNT ( * ), 13 ) + + 57 AS col0
----
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3542
SELECT ALL + 70 + - - COUNT( ALL - 47 ) DIV - 98 * 10
----
70

skipif mysql # not compatible
query I rowsort label-3542
SELECT ALL + 70 + - - COUNT ( ALL - 47 ) / - 98 * 10
----
70

query I rowsort
SELECT ALL - 68 col0
----
-68

query I rowsort
SELECT DISTINCT 80 * + 30 * + + 71
----
170400

onlyif mysql # aggregate syntax: 
query I rowsort label-3545
SELECT ALL 84 + + - COUNT( * )
----
83

skipif mysql # not compatible
query I rowsort label-3545
SELECT ALL 84 + + - COUNT ( * )
----
83

query I rowsort
SELECT DISTINCT - - 15 + 43 + 59
----
117

query I rowsort
SELECT ALL 98 + + 41
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-3548
SELECT - 68 * + COUNT( * ) * - - 2
----
-136

skipif mysql # not compatible
query I rowsort label-3548
SELECT - 68 * + COUNT ( * ) * - - 2
----
-136

onlyif mysql # aggregate syntax: 
query I rowsort label-3549
SELECT COUNT( * ) + + + 70 * COUNT( * ) AS col1
----
71

skipif mysql # not compatible
query I rowsort label-3549
SELECT COUNT ( * ) + + + 70 * COUNT ( * ) AS col1
----
71

query I rowsort
SELECT ALL 64 + 67 col1
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-3551
SELECT MIN( ALL 13 ) * + - 77 + - 71 + + CASE - 66 + - 21 WHEN 74 THEN 93 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3551
SELECT MIN ( ALL 13 ) * + - 77 + - 71 + + CASE - 66 + - 21 WHEN 74 THEN 93 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 64 + 14
----
-50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3553
SELECT ALL - COUNT( * ) DIV - - 41 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3553
SELECT ALL - COUNT ( * ) / - - 41 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3554
SELECT SUM( 53 ) + + COALESCE ( + 16, - 88 ) * ( 19 * 13 ) AS col1
----
4005

skipif mysql # not compatible
query I rowsort label-3554
SELECT SUM ( 53 ) + + COALESCE ( + 16, - 88 ) * ( 19 * 13 ) AS col1
----
4005

query I rowsort
SELECT ALL + 31 * - ( + + 42 ) col2
----
-1302

query I rowsort
SELECT ALL 14 * + 28 AS col2
----
392

query II rowsort
SELECT - 84 + - - 9 AS col2, + 10 + + 42 * - 36 AS col0
----
-75
-1502

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3558
SELECT - SUM( + 29 ) * - + COALESCE ( + - 40, MIN( 91 ) ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3558
SELECT - SUM ( + 29 ) * - + COALESCE ( + - 40, MIN ( 91 ) ) + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3559
SELECT ALL 71 * + + 7 + ( MAX( - 89 ) ) + + 96
----
504

skipif mysql # not compatible
query I rowsort label-3559
SELECT ALL 71 * + + 7 + ( MAX ( - 89 ) ) + + 96
----
504

query I rowsort
SELECT 50 + + 86
----
136

query I rowsort
SELECT DISTINCT + 38 * + 2 AS col2
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-3562
SELECT DISTINCT 58 - - MAX( ALL 99 ) + + 25 AS col1
----
182

skipif mysql # not compatible
query I rowsort label-3562
SELECT DISTINCT 58 - - MAX ( ALL 99 ) + + 25 AS col1
----
182

query I rowsort
SELECT 82 * - 20
----
-1640

onlyif mysql # aggregate syntax: 
query I rowsort label-3564
SELECT - MIN( ALL - + 64 )
----
64

skipif mysql # not compatible
query I rowsort label-3564
SELECT - MIN ( ALL - + 64 )
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3565
SELECT 88 + + COUNT( - CAST( NULL AS SIGNED ) ) + 94 col2
----
182

skipif mysql # not compatible
query I rowsort label-3565
SELECT 88 + + COUNT ( - CAST ( NULL AS INTEGER ) ) + 94 col2
----
182

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3566
SELECT ALL 93 - - 63 + - + COUNT( * ) * NULLIF ( - + 72, ( + 62 ) + MIN( - 82 ) * - COALESCE ( 52 * 99 - 62, 3 * 41 + + 7 ) ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3566
SELECT ALL 93 - - 63 + - + COUNT ( * ) * NULLIF ( - + 72, ( + 62 ) + MIN ( - 82 ) * - COALESCE ( 52 * 99 - 62, 3 * 41 + + 7 ) ) * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3567
SELECT CAST( + COALESCE ( + 20, + 20 * + 44 ) AS SIGNED ) * 70
----
1400

skipif mysql # not compatible
query I rowsort label-3567
SELECT CAST ( + COALESCE ( + 20, + 20 * + 44 ) AS INTEGER ) * 70
----
1400

onlyif mysql # DIV for integer division: 
query I rowsort label-3568
SELECT DISTINCT - 55 DIV - - 74 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3568
SELECT DISTINCT - 55 / - - 74 AS col1
----
0

query I rowsort
SELECT 72 * 28
----
2016

onlyif mysql # DIV for integer division: 
query I rowsort label-3570
SELECT ALL - 46 DIV - 56 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3570
SELECT ALL - 46 / - 56 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3571
SELECT + COUNT( * ) * - - 31
----
31

skipif mysql # not compatible
query I rowsort label-3571
SELECT + COUNT ( * ) * - - 31
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3572
SELECT + 98 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3572
SELECT + 98 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 15 - 16 AS col1
----
-1

query I rowsort
SELECT ALL 27 * + 56 AS col2
----
1512

onlyif mysql # aggregate syntax: 
query I rowsort label-3575
SELECT ALL + MIN( + - 15 ) + + 45 AS col0
----
30

skipif mysql # not compatible
query I rowsort label-3575
SELECT ALL + MIN ( + - 15 ) + + 45 AS col0
----
30

query I rowsort
SELECT + 68 * + 28 AS col1
----
1904

onlyif mysql # aggregate syntax: 
query I rowsort label-3577
SELECT - 74 * - 88 * - 1 * MIN( + 30 ) AS col2
----
-195360

skipif mysql # not compatible
query I rowsort label-3577
SELECT - 74 * - 88 * - 1 * MIN ( + 30 ) AS col2
----
-195360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3578
SELECT - CAST( NULL AS SIGNED ) * + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3578
SELECT - CAST ( NULL AS INTEGER ) * + - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3579
SELECT ALL 50 + - COUNT( * ) DIV ( + - NULLIF ( 29, - 16 ) ) AS col1
----
50

skipif mysql # not compatible
query I rowsort label-3579
SELECT ALL 50 + - COUNT ( * ) / ( + - NULLIF ( 29, - 16 ) ) AS col1
----
50

query I rowsort
SELECT ALL + NULLIF ( 59, AVG ( 23 ) ) + + 89 AS col1
----
148

query I rowsort
SELECT - 38 - 48 AS col0
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-3582
SELECT - ( + 34 ) + - 54 * - 41 + + + CASE - SUM( DISTINCT - ( + 12 ) ) WHEN 55 THEN 13 WHEN - COALESCE ( 3, - NULLIF ( CASE + COUNT( * ) WHEN - 8 THEN - 20 + COUNT( * ) END, - 12 + 3 ) ) THEN 70 ELSE NULL END * 11 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3582
SELECT - ( + 34 ) + - 54 * - 41 + + + CASE - SUM ( DISTINCT - ( + 12 ) ) WHEN 55 THEN 13 WHEN - COALESCE ( 3, - NULLIF ( CASE + COUNT ( * ) WHEN - 8 THEN - 20 + COUNT ( * ) END, - 12 + 3 ) ) THEN 70 ELSE NULL END * 11 AS col0
----
NULL

query I rowsort
SELECT ALL - 90 * - + 29 + - - 67
----
2677

query I rowsort
SELECT + 75 col0
----
75

query I rowsort
SELECT 21 * - 88 * - 30 * 41 + + 64 * - 93 AS col2
----
2267088

onlyif mysql # aggregate syntax: 
query I rowsort label-3586
SELECT MAX( + 95 )
----
95

skipif mysql # not compatible
query I rowsort label-3586
SELECT MAX ( + 95 )
----
95

query II rowsort
SELECT + + NULLIF ( + + 76, + 16 ) AS col2, - 15
----
76
-15

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3588
SELECT ALL + CAST( NULL AS SIGNED ), 90 AS col2
----
NULL
90

skipif mysql # not compatible
query II rowsort label-3588
SELECT ALL + CAST ( NULL AS INTEGER ), 90 AS col2
----
NULL
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3589
SELECT - CASE + + COUNT( * ) WHEN COUNT( * ) THEN + + CAST( - MIN( DISTINCT 72 ) AS SIGNED ) END * - 82 AS col2
----
-5904

skipif mysql # not compatible
query I rowsort label-3589
SELECT - CASE + + COUNT ( * ) WHEN COUNT ( * ) THEN + + CAST ( - MIN ( DISTINCT 72 ) AS INTEGER ) END * - 82 AS col2
----
-5904

query I rowsort
SELECT ALL + - ( + 1 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3591
SELECT - 68 DIV COUNT( * ) * - 47
----
3196

skipif mysql # not compatible
query I rowsort label-3591
SELECT - 68 / COUNT ( * ) * - 47
----
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-3592
SELECT DISTINCT + 75 * + COUNT( * ) - - MAX( DISTINCT - 76 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3592
SELECT DISTINCT + 75 * + COUNT ( * ) - - MAX ( DISTINCT - 76 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3593
SELECT - COALESCE ( - + 57, - COUNT( * ) * - + 52 + + 56 - 44 * + 55, COUNT( * ) ) * 73 AS col0
----
4161

skipif mysql # not compatible
query I rowsort label-3593
SELECT - COALESCE ( - + 57, - COUNT ( * ) * - + 52 + + 56 - 44 * + 55, COUNT ( * ) ) * 73 AS col0
----
4161

query I rowsort
SELECT ALL + + ( - 92 )
----
-92

query I rowsort
SELECT 78 * - 35 - - 6
----
-2724

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3596
SELECT DISTINCT + - 83 AS col1, - 69 * COUNT( * ) DIV - ( 6 )
----
-83
11

skipif mysql # not compatible
query II rowsort label-3596
SELECT DISTINCT + - 83 AS col1, - 69 * COUNT ( * ) / - ( 6 )
----
-83
11

onlyif mysql # aggregate syntax: 
query I rowsort label-3597
SELECT - - ( - ( COUNT( * ) ) ) * 81 AS col0
----
-81

skipif mysql # not compatible
query I rowsort label-3597
SELECT - - ( - ( COUNT ( * ) ) ) * 81 AS col0
----
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3598
SELECT ALL 93 DIV 99 col2, + 42 - + NULLIF ( COUNT( * ), + 64 * - 26 )
----
0
41

skipif mysql # not compatible
query II rowsort label-3598
SELECT ALL 93 / 99 col2, + 42 - + NULLIF ( COUNT ( * ), + 64 * - 26 )
----
0
41

onlyif mysql # aggregate syntax: 
query I rowsort label-3599
SELECT + SUM( DISTINCT + 77 ) col0
----
77

skipif mysql # not compatible
query I rowsort label-3599
SELECT + SUM ( DISTINCT + 77 ) col0
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3600
SELECT ALL + CAST( 95 AS SIGNED )
----
95

skipif mysql # not compatible
query I rowsort label-3600
SELECT ALL + CAST ( 95 AS INTEGER )
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-3601
SELECT MIN( ALL + - 57 ) AS col2
----
-57

skipif mysql # not compatible
query I rowsort label-3601
SELECT MIN ( ALL + - 57 ) AS col2
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3602
SELECT + SUM( - 20 ) - - 75 * + - CAST( NULL AS SIGNED ) * 0 * + 27 + 82 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3602
SELECT + SUM ( - 20 ) - - 75 * + - CAST ( NULL AS INTEGER ) * 0 * + 27 + 82 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3603
SELECT ALL CAST( + 52 AS SIGNED ) AS col2
----
52

skipif mysql # not compatible
query I rowsort label-3603
SELECT ALL CAST ( + 52 AS INTEGER ) AS col2
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3604
SELECT ALL CAST( NULL AS SIGNED ) AS col2, 67
----
NULL
67

skipif mysql # not compatible
query II rowsort label-3604
SELECT ALL CAST ( NULL AS INTEGER ) AS col2, 67
----
NULL
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3605
SELECT DISTINCT 51 + + - 19 DIV COUNT( * ) AS col1
----
32

skipif mysql # not compatible
query I rowsort label-3605
SELECT DISTINCT 51 + + - 19 / COUNT ( * ) AS col1
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3606
SELECT ALL 10 + + - ( - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3606
SELECT ALL 10 + + - ( - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3607
SELECT - ( - + COUNT( * ) ), + 6 + - MAX( ALL + 77 ) DIV 38 AS col1
----
1
4

skipif mysql # not compatible
query II rowsort label-3607
SELECT - ( - + COUNT ( * ) ), + 6 + - MAX ( ALL + 77 ) / 38 AS col1
----
1
4

query II rowsort
SELECT + 80 * + + ( + + ( - 20 ) ), - 87 * 74 AS col1
----
-1600
-6438

onlyif mysql # aggregate syntax: 
query I rowsort label-3609
SELECT + 92 + COUNT( * ) + 56 + SUM( ALL + + 16 ) col0
----
165

skipif mysql # not compatible
query I rowsort label-3609
SELECT + 92 + COUNT ( * ) + 56 + SUM ( ALL + + 16 ) col0
----
165

query I rowsort
SELECT + ( + + 30 ) + + 8
----
38

onlyif mysql # aggregate syntax: 
query II rowsort label-3611
SELECT ALL 72 col0, SUM( DISTINCT + 13 )
----
72
13

skipif mysql # not compatible
query II rowsort label-3611
SELECT ALL 72 col0, SUM ( DISTINCT + 13 )
----
72
13

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3612
SELECT 69 col1, + CAST( NULL AS DECIMAL ) * + 49 AS col2
----
69
NULL

skipif mysql # not compatible
query II rowsort label-3612
SELECT 69 col1, + CAST ( NULL AS REAL ) * + 49 AS col2
----
69
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3613
SELECT + 44 + ( - + 83 ) - + 53 DIV - 27
----
-38

skipif mysql # not compatible
query I rowsort label-3613
SELECT + 44 + ( - + 83 ) - + 53 / - 27
----
-38

query I rowsort
SELECT ALL 50 + + 98 + + 89
----
237

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3615
SELECT DISTINCT 9 + - + MAX( - 99 ) DIV + - 72, SUM( ALL CAST( NULL AS SIGNED ) ) col1
----
8
NULL

skipif mysql # not compatible
query II rowsort label-3615
SELECT DISTINCT 9 + - + MAX ( - 99 ) / + - 72, SUM ( ALL CAST ( NULL AS INTEGER ) ) col1
----
8
NULL

query I rowsort
SELECT DISTINCT 73 + + 46 AS col1
----
119

query I rowsort
SELECT ALL + 52 + + + 43 - + 57 AS col0
----
38

query I rowsort
SELECT + 38 + - 97
----
-59

query II rowsort
SELECT ALL 82, + 31 + 75 AS col0
----
82
106

query I rowsort
SELECT + 14 + - 50
----
-36

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3621
SELECT - COALESCE ( - + 69, + - COUNT( * ), + 65 ) AS col0, 76 DIV + 18 col0
----
69
4

skipif mysql # not compatible
query II rowsort label-3621
SELECT - COALESCE ( - + 69, + - COUNT ( * ), + 65 ) AS col0, 76 / + 18 col0
----
69
4

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3622
SELECT 82 AS col2, - COALESCE ( - 71, - CAST( NULL AS SIGNED ) * 43, - + 62 )
----
82
71

skipif mysql # not compatible
query II rowsort label-3622
SELECT 82 AS col2, - COALESCE ( - 71, - CAST ( NULL AS INTEGER ) * 43, - + 62 )
----
82
71

onlyif mysql # DIV for integer division: 
query I rowsort label-3623
SELECT DISTINCT + 89 DIV - + 64
----
-1

skipif mysql # not compatible
query I rowsort label-3623
SELECT DISTINCT + 89 / - + 64
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3624
SELECT ALL - 30 + + 30 + - MIN( DISTINCT + 7 ) * + CAST( + COUNT( DISTINCT + CAST( 33 AS SIGNED ) ) AS SIGNED ) DIV - 51 col0
----
0

skipif mysql # not compatible
query I rowsort label-3624
SELECT ALL - 30 + + 30 + - MIN ( DISTINCT + 7 ) * + CAST ( + COUNT ( DISTINCT + CAST ( 33 AS INTEGER ) ) AS INTEGER ) / - 51 col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3625
SELECT + + 50 DIV 59 * 63
----
0

skipif mysql # not compatible
query I rowsort label-3625
SELECT + + 50 / 59 * 63
----
0

query I rowsort
SELECT - + ( + 77 ) * - 51
----
3927

query I rowsort
SELECT ALL - - 85 * ( + + 60 ) AS col1
----
5100

onlyif mysql # aggregate syntax: 
query I rowsort label-3628
SELECT NULLIF ( + + 37, 31 * + + 55 * - CASE + 16 WHEN + 24 + + MAX( DISTINCT 10 ) * COUNT( * ) THEN - COUNT( DISTINCT 75 ) WHEN + 41 THEN - 74 * - 91 ELSE NULL END * COALESCE ( 51, 76 - - 96 ) + + 78 )
----
37

skipif mysql # not compatible
query I rowsort label-3628
SELECT NULLIF ( + + 37, 31 * + + 55 * - CASE + 16 WHEN + 24 + + MAX ( DISTINCT 10 ) * COUNT ( * ) THEN - COUNT ( DISTINCT 75 ) WHEN + 41 THEN - 74 * - 91 ELSE NULL END * COALESCE ( 51, 76 - - 96 ) + + 78 )
----
37

query I rowsort
SELECT + - 75 * ( - 7 )
----
525

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3630
SELECT ( + COALESCE ( + 0, + 96 + + CAST( NULL AS SIGNED ), - + 23 ) )
----
0

skipif mysql # not compatible
query I rowsort label-3630
SELECT ( + COALESCE ( + 0, + 96 + + CAST ( NULL AS INTEGER ), - + 23 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3631
SELECT ALL COUNT( * ) * - 47 * - 59
----
2773

skipif mysql # not compatible
query I rowsort label-3631
SELECT ALL COUNT ( * ) * - 47 * - 59
----
2773

query I rowsort
SELECT DISTINCT + - ( - 69 )
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-3633
SELECT - 70 + COUNT( * ) - + 7
----
-76

skipif mysql # not compatible
query I rowsort label-3633
SELECT - 70 + COUNT ( * ) - + 7
----
-76

query I rowsort
SELECT - - 49 * 26 * + - ( + - 87 ) + 66
----
110904

onlyif mysql # aggregate syntax: 
query I rowsort label-3635
SELECT + + 49 * COUNT( * )
----
49

skipif mysql # not compatible
query I rowsort label-3635
SELECT + + 49 * COUNT ( * )
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-3636
SELECT - + COUNT( * ) * + COUNT( DISTINCT + - 3 ) + - - 82 * 66 AS col0
----
5411

skipif mysql # not compatible
query I rowsort label-3636
SELECT - + COUNT ( * ) * + COUNT ( DISTINCT + - 3 ) + - - 82 * 66 AS col0
----
5411

query I rowsort
SELECT 32 * - 7 + 5
----
-219

query I rowsort
SELECT - 2 - - 22 + - 88 AS col2
----
-68

query I rowsort
SELECT DISTINCT - 21 * - + 22
----
462

onlyif mysql # aggregate syntax: 
query II rowsort label-3640
SELECT ALL + 23 AS col2, - MIN( + 22 ) + + + 83 col2
----
23
61

skipif mysql # not compatible
query II rowsort label-3640
SELECT ALL + 23 AS col2, - MIN ( + 22 ) + + + 83 col2
----
23
61

onlyif mysql # aggregate syntax: 
query I rowsort label-3641
SELECT - COUNT( * ) + ( + + 50 ) AS col2
----
49

skipif mysql # not compatible
query I rowsort label-3641
SELECT - COUNT ( * ) + ( + + 50 ) AS col2
----
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3642
SELECT ALL - 46 * COUNT( * ) DIV 45 col2
----
-1

skipif mysql # not compatible
query I rowsort label-3642
SELECT ALL - 46 * COUNT ( * ) / 45 col2
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-3643
SELECT - 76 + - 30 AS col1, - 19 * + - NULLIF ( COUNT( * ), - 29 * + 56 ) + + 62 AS col0
----
-106
81

skipif mysql # not compatible
query II rowsort label-3643
SELECT - 76 + - 30 AS col1, - 19 * + - NULLIF ( COUNT ( * ), - 29 * + 56 ) + + 62 AS col0
----
-106
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3644
SELECT + 67 * + 82 + - + 18 * + + 49 DIV - 47 + COUNT( * ) AS col2
----
5513

skipif mysql # not compatible
query I rowsort label-3644
SELECT + 67 * + 82 + - + 18 * + + 49 / - 47 + COUNT ( * ) AS col2
----
5513

query I rowsort
SELECT ALL - 56 * 4 AS col2
----
-224

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3646
SELECT DISTINCT + 1 + + + CASE - - CAST( NULL AS SIGNED ) WHEN + COUNT( * ) THEN - COALESCE ( - - 32, - 86 ) + + 47 * + NULLIF ( 94, + MIN( 15 ) ) END + - 33 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3646
SELECT DISTINCT + 1 + + + CASE - - CAST ( NULL AS INTEGER ) WHEN + COUNT ( * ) THEN - COALESCE ( - - 32, - 86 ) + + 47 * + NULLIF ( 94, + MIN ( 15 ) ) END + - 33 AS col0
----
NULL

query I rowsort
SELECT 97 + + 37 AS col1
----
134

query I rowsort
SELECT ALL - 83 + 88 AS col0
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3649
SELECT COUNT( * ) DIV + - 47, + 1 AS col0
----
0
1

skipif mysql # not compatible
query II rowsort label-3649
SELECT COUNT ( * ) / + - 47, + 1 AS col0
----
0
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3650
SELECT 78 * + - 82 AS col0, - 78 + COALESCE ( - - 44, NULLIF ( + NULLIF ( + ( 0 ), + 5 - + COUNT( * ) ), CAST( NULL AS SIGNED ) + 47 ), 93 )
----
-6396
-34

skipif mysql # not compatible
query II rowsort label-3650
SELECT 78 * + - 82 AS col0, - 78 + COALESCE ( - - 44, NULLIF ( + NULLIF ( + ( 0 ), + 5 - + COUNT ( * ) ), CAST ( NULL AS INTEGER ) + 47 ), 93 )
----
-6396
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3651
SELECT ALL + 11 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3651
SELECT ALL + 11 / CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3652
SELECT 87 * - CAST( - COUNT( + + 72 ) AS SIGNED ) * 68
----
5916

skipif mysql # not compatible
query I rowsort label-3652
SELECT 87 * - CAST ( - COUNT ( + + 72 ) AS INTEGER ) * 68
----
5916

onlyif mysql # aggregate syntax: 
query I rowsort label-3653
SELECT ALL - 84 + + MIN( - 59 ) + - + CASE 22 WHEN 4 * - + COUNT( * ) THEN NULL ELSE + CASE - 46 WHEN ( - 15 ) + 10 THEN - 10 END END
----
NULL

skipif mysql # not compatible
query I rowsort label-3653
SELECT ALL - 84 + + MIN ( - 59 ) + - + CASE 22 WHEN 4 * - + COUNT ( * ) THEN NULL ELSE + CASE - 46 WHEN ( - 15 ) + 10 THEN - 10 END END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3654
SELECT ALL COUNT( * ) DIV - + 23
----
0

skipif mysql # not compatible
query I rowsort label-3654
SELECT ALL COUNT ( * ) / - + 23
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3655
SELECT 97 / - CASE - 52 WHEN + 65 * - 35 THEN NULL WHEN + CAST( NULL AS DECIMAL ) THEN 74 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3655
SELECT 97 / - CASE - 52 WHEN + 65 * - 35 THEN NULL WHEN + CAST ( NULL AS REAL ) THEN 74 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3656
SELECT COUNT( * ) * - ( + 24 ) * - + 84 + - 72 + - - 50 * 87 AS col2
----
6294

skipif mysql # not compatible
query I rowsort label-3656
SELECT COUNT ( * ) * - ( + 24 ) * - + 84 + - 72 + - - 50 * 87 AS col2
----
6294

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3657
SELECT ALL + 11 DIV - + COALESCE ( + COUNT( * ), 84 - - 19 * - 24, COUNT( * ) - 94 DIV ( + 37 ) ) AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-3657
SELECT ALL + 11 / - + COALESCE ( + COUNT ( * ), 84 - - 19 * - 24, COUNT ( * ) - 94 / ( + 37 ) ) AS col2
----
-11

query II rowsort
SELECT ALL 32 + + 0, - 36 + + - 77 - + 4 * + ( 42 ) AS col2
----
32
-281

onlyif mysql # aggregate syntax: 
query I rowsort label-3659
SELECT 13 * 95 * COUNT( * ) * 72
----
88920

skipif mysql # not compatible
query I rowsort label-3659
SELECT 13 * 95 * COUNT ( * ) * 72
----
88920

onlyif mysql # aggregate syntax: 
query I rowsort label-3660
SELECT ALL 50 * 88 * COUNT( * )
----
4400

skipif mysql # not compatible
query I rowsort label-3660
SELECT ALL 50 * 88 * COUNT ( * )
----
4400

onlyif mysql # aggregate syntax: 
query I rowsort label-3661
SELECT DISTINCT - COUNT( * ) + + - 62 AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-3661
SELECT DISTINCT - COUNT ( * ) + + - 62 AS col1
----
-63

query I rowsort
SELECT 3 - 6 + + - 46 AS col1
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3663
SELECT ALL - + CAST( + ( + CAST( - + 28 AS SIGNED ) ) AS SIGNED ) - + 69 AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-3663
SELECT ALL - + CAST ( + ( + CAST ( - + 28 AS INTEGER ) ) AS INTEGER ) - + 69 AS col1
----
-41

query I rowsort
SELECT 86 * 2 + + 58 AS col1
----
230

onlyif mysql # aggregate syntax: 
query I rowsort label-3665
SELECT ALL CASE - 37 WHEN - 29 THEN - - 5 END - 14 + - 15 - + - ( - COUNT( ALL - 14 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3665
SELECT ALL CASE - 37 WHEN - 29 THEN - - 5 END - 14 + - 15 - + - ( - COUNT ( ALL - 14 ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3666
SELECT ALL + 44 DIV - - COUNT( * ) AS col0
----
44

skipif mysql # not compatible
query I rowsort label-3666
SELECT ALL + 44 / - - COUNT ( * ) AS col0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-3667
SELECT 79 - + - ( - COUNT( * ) )
----
78

skipif mysql # not compatible
query I rowsort label-3667
SELECT 79 - + - ( - COUNT ( * ) )
----
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3668
SELECT ALL - 83 DIV - + COUNT( * )
----
83

skipif mysql # not compatible
query I rowsort label-3668
SELECT ALL - 83 / - + COUNT ( * )
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-3669
SELECT 58 DIV 68 + - - 93 + - + 88 AS col1
----
5

skipif mysql # not compatible
query I rowsort label-3669
SELECT 58 / 68 + - - 93 + - + 88 AS col1
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-3670
SELECT 89 * 23 + + + 2 DIV - 94
----
2047

skipif mysql # not compatible
query I rowsort label-3670
SELECT 89 * 23 + + + 2 / - 94
----
2047

onlyif mysql # aggregate syntax: 
query I rowsort label-3671
SELECT 48 * + + 0 - - MIN( 16 ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-3671
SELECT 48 * + + 0 - - MIN ( 16 ) AS col0
----
16

query I rowsort
SELECT ALL 60 * + - 50 AS col1
----
-3000

query I rowsort
SELECT DISTINCT 65 * - 15
----
-975

onlyif mysql # aggregate syntax: 
query I rowsort label-3674
SELECT ALL COUNT( * ) * COUNT( * ) - + 22 * - - 65 AS col1
----
-1429

skipif mysql # not compatible
query I rowsort label-3674
SELECT ALL COUNT ( * ) * COUNT ( * ) - + 22 * - - 65 AS col1
----
-1429

onlyif mysql # aggregate syntax: 
query II rowsort label-3675
SELECT DISTINCT 22 * - 61 col1, + SUM( - NULLIF ( + 77, + - ( 57 ) * 96 ) ) AS col2
----
-1342
-77

skipif mysql # not compatible
query II rowsort label-3675
SELECT DISTINCT 22 * - 61 col1, + SUM ( - NULLIF ( + 77, + - ( 57 ) * 96 ) ) AS col2
----
-1342
-77

query I rowsort
SELECT DISTINCT - ( - 49 )
----
49

query II rowsort
SELECT + 88 AS col1, - 53
----
88
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-3678
SELECT ALL + 87 + + 89 / + CASE + - ( - 87 ) WHEN + 52 THEN + MIN( + 87 ) * 70 WHEN - 67 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3678
SELECT ALL + 87 + + 89 / + CASE + - ( - 87 ) WHEN + 52 THEN + MIN ( + 87 ) * 70 WHEN - 67 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT ALL 34 + 72
----
106

query II rowsort
SELECT 81, 54 AS col1
----
81
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3681
SELECT 97 * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3681
SELECT 97 * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3682
SELECT 15 DIV + 87 - ( 30 ) DIV COUNT( * ) - + 41, COUNT( * ) + 63 + 97 AS col0
----
-71
161

skipif mysql # not compatible
query II rowsort label-3682
SELECT 15 / + 87 - ( 30 ) / COUNT ( * ) - + 41, COUNT ( * ) + 63 + 97 AS col0
----
-71
161

onlyif mysql # aggregate syntax: 
query I rowsort label-3683
SELECT 78 - - NULLIF ( - NULLIF ( + COUNT( * ), + 85 ), 49 ) - + 28 * - COUNT( * )
----
105

skipif mysql # not compatible
query I rowsort label-3683
SELECT 78 - - NULLIF ( - NULLIF ( + COUNT ( * ), + 85 ), 49 ) - + 28 * - COUNT ( * )
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-3684
SELECT ALL + COUNT( * ) * 96
----
96

skipif mysql # not compatible
query I rowsort label-3684
SELECT ALL + COUNT ( * ) * 96
----
96

query I rowsort
SELECT 87 * + 19 col1
----
1653

query I rowsort
SELECT ALL 74 + + 97
----
171

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3687
SELECT DISTINCT + ( + - CASE 91 WHEN - NULLIF ( - 91, + 34 ) THEN - CASE + - 1 WHEN CAST( NULL AS SIGNED ) THEN NULL WHEN 39 + + COUNT( * ) THEN 40 ELSE NULL END * 25 WHEN 10 THEN + 48 + - 41 WHEN + 96 THEN NULL WHEN 38 / + 75 + + 52 THEN - 91 + SUM( ALL 68 ) END ) * - AVG ( DISTINCT 30 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3687
SELECT DISTINCT + ( + - CASE 91 WHEN - NULLIF ( - 91, + 34 ) THEN - CASE + - 1 WHEN CAST ( NULL AS INTEGER ) THEN NULL WHEN 39 + + COUNT ( * ) THEN 40 ELSE NULL END * 25 WHEN 10 THEN + 48 + - 41 WHEN + 96 THEN NULL WHEN 38 / + 75 + + 52 THEN - 91 + SUM ( ALL 68 ) END ) * - AVG ( DISTINCT 30 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3688
SELECT ALL - SUM( - 95 ) + 12
----
107

skipif mysql # not compatible
query I rowsort label-3688
SELECT ALL - SUM ( - 95 ) + 12
----
107

query I rowsort
SELECT 16 * + + 51 - NULLIF ( + 51, + 10 ) * - 74 * + 50 * + + 34
----
6416616

query II rowsort
SELECT 18 AS col1, - 48 AS col2
----
18
-48

query I rowsort
SELECT ALL + 25 * + - 2
----
-50

query I rowsort
SELECT 13 - - - 22 + 11 + - 52 * - 98
----
5098

onlyif mysql # aggregate syntax: 
query I rowsort label-3693
SELECT ALL COUNT( DISTINCT + + 81 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3693
SELECT ALL COUNT ( DISTINCT + + 81 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3694
SELECT DISTINCT + COUNT( * ) * - 39
----
-39

skipif mysql # not compatible
query I rowsort label-3694
SELECT DISTINCT + COUNT ( * ) * - 39
----
-39

query II rowsort
SELECT 5 col1, 58
----
5
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3696
SELECT - 30 * 49 + - MAX( 10 ) + + NULLIF ( 38, + COALESCE ( + + 30, + 71, 68 ) )
----
-1442

skipif mysql # not compatible
query I rowsort label-3696
SELECT - 30 * 49 + - MAX ( 10 ) + + NULLIF ( 38, + COALESCE ( + + 30, + 71, 68 ) )
----
-1442

onlyif mysql # aggregate syntax: 
query I rowsort label-3697
SELECT COUNT( * ) * 78 col0
----
78

skipif mysql # not compatible
query I rowsort label-3697
SELECT COUNT ( * ) * 78 col0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-3698
SELECT ALL SUM( + 49 )
----
49

skipif mysql # not compatible
query I rowsort label-3698
SELECT ALL SUM ( + 49 )
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-3699
SELECT 12 + + 16 DIV + 45 * - - 3 AS col2
----
12

skipif mysql # not compatible
query I rowsort label-3699
SELECT 12 + + 16 / + 45 * - - 3 AS col2
----
12

query I rowsort
SELECT 24 + 78
----
102

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3701
SELECT CASE + CAST( NULLIF ( - 50, + 17 ) AS DECIMAL ) WHEN - NULLIF ( + 29, + - NULLIF ( ( + 49 ), - 99 * - 39 ) ) THEN + 86 + + 66 END * + ( - 8 + - 49 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3701
SELECT CASE + CAST ( NULLIF ( - 50, + 17 ) AS REAL ) WHEN - NULLIF ( + 29, + - NULLIF ( ( + 49 ), - 99 * - 39 ) ) THEN + 86 + + 66 END * + ( - 8 + - 49 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3702
SELECT ALL ( + CAST( 1 AS SIGNED ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3702
SELECT ALL ( + CAST ( 1 AS INTEGER ) ) AS col1
----
1

query I rowsort
SELECT + 12 * + 15
----
180

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3704
SELECT ALL + CASE + 25 WHEN 92 + + CAST( NULL AS DECIMAL ) THEN NULL WHEN 55 + - 37 / - 1 THEN + 76 * - COALESCE ( 7 + + 50, + 95 ) END / - 42 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3704
SELECT ALL + CASE + 25 WHEN 92 + + CAST ( NULL AS REAL ) THEN NULL WHEN 55 + - 37 / - 1 THEN + 76 * - COALESCE ( 7 + + 50, + 95 ) END / - 42 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3705
SELECT + COUNT( * ) + 83
----
84

skipif mysql # not compatible
query I rowsort label-3705
SELECT + COUNT ( * ) + 83
----
84

query II rowsort
SELECT - + 50 col2, 96
----
-50
96

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3707
SELECT 93 + + 88 * - 42 + 82 + + - 33 DIV 68 DIV - 88 - - - CAST( 8 AS SIGNED ) * 44 * + ( + 97 ) AS col0
----
-37665

skipif mysql # not compatible
query I rowsort label-3707
SELECT 93 + + 88 * - 42 + 82 + + - 33 / 68 / - 88 - - - CAST ( 8 AS INTEGER ) * 44 * + ( + 97 ) AS col0
----
-37665

query I rowsort
SELECT - 52 + - 97 AS col0
----
-149

onlyif mysql # aggregate syntax: 
query I rowsort label-3709
SELECT DISTINCT + 54 * - 87 * - MIN( ALL - - ( 8 ) ) AS col1
----
37584

skipif mysql # not compatible
query I rowsort label-3709
SELECT DISTINCT + 54 * - 87 * - MIN ( ALL - - ( 8 ) ) AS col1
----
37584

query I rowsort
SELECT + 1 + + 66 - + 54 + + + 27
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3711
SELECT NULLIF ( + CASE COUNT( * ) WHEN - 31 THEN NULL WHEN 20 / - 81 THEN - - 51 + - COALESCE ( 83, 63 * CAST( NULL AS SIGNED ) ) ELSE - ( 71 ) + 18 * - 80 END, COUNT( * ) ) * - COUNT( * ) AS col1
----
1511

skipif mysql # not compatible
query I rowsort label-3711
SELECT NULLIF ( + CASE COUNT ( * ) WHEN - 31 THEN NULL WHEN 20 / - 81 THEN - - 51 + - COALESCE ( 83, 63 * CAST ( NULL AS INTEGER ) ) ELSE - ( 71 ) + 18 * - 80 END, COUNT ( * ) ) * - COUNT ( * ) AS col1
----
1511

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3712
SELECT DISTINCT + CAST( + SUM( ( + - 52 ) ) AS SIGNED ) * - 37 + + SUM( DISTINCT + 86 ) * 87 * ( 13 )
----
99190

skipif mysql # not compatible
query I rowsort label-3712
SELECT DISTINCT + CAST ( + SUM ( ( + - 52 ) ) AS INTEGER ) * - 37 + + SUM ( DISTINCT + 86 ) * 87 * ( 13 )
----
99190

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3713
SELECT ALL 25 * 8 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3713
SELECT ALL 25 * 8 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3714
SELECT + CAST( + 98 AS SIGNED )
----
98

skipif mysql # not compatible
query I rowsort label-3714
SELECT + CAST ( + 98 AS INTEGER )
----
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3715
SELECT + NULLIF ( - 59, + COUNT( * ) * + 14 ) DIV 15 + + 22, CASE - 60 WHEN + COUNT( * ) - - 57 DIV - 34 THEN + 29 * COUNT( * ) ELSE - 82 END * - ( - 52 ) + 18 AS col2
----
19
-4246

skipif mysql # not compatible
query II rowsort label-3715
SELECT + NULLIF ( - 59, + COUNT ( * ) * + 14 ) / 15 + + 22, CASE - 60 WHEN + COUNT ( * ) - - 57 / - 34 THEN + 29 * COUNT ( * ) ELSE - 82 END * - ( - 52 ) + 18 AS col2
----
19
-4246

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3716
SELECT + 58 * CAST( + 75 AS SIGNED ) * + MAX( ALL 64 ) + - NULLIF ( + 80, + 2 ) col2
----
278320

skipif mysql # not compatible
query I rowsort label-3716
SELECT + 58 * CAST ( + 75 AS INTEGER ) * + MAX ( ALL 64 ) + - NULLIF ( + 80, + 2 ) col2
----
278320

onlyif mysql # aggregate syntax: 
query I rowsort label-3717
SELECT DISTINCT COUNT( * ) * - 95 * - + 96 AS col1
----
9120

skipif mysql # not compatible
query I rowsort label-3717
SELECT DISTINCT COUNT ( * ) * - 95 * - + 96 AS col1
----
9120

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3718
SELECT CAST( NULL AS DECIMAL ) * - COUNT( * ) + - 28 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3718
SELECT CAST ( NULL AS REAL ) * - COUNT ( * ) + - 28 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3719
SELECT 83 * + 93 - - CAST( NULL AS SIGNED ) * - 71 AS col0, 82 + + 75 AS col2
----
NULL
157

skipif mysql # not compatible
query II rowsort label-3719
SELECT 83 * + 93 - - CAST ( NULL AS INTEGER ) * - 71 AS col0, 82 + + 75 AS col2
----
NULL
157

query I rowsort
SELECT DISTINCT 92 * 98
----
9016

query I rowsort
SELECT + 63 + 60 + + 67 AS col2
----
190

query I rowsort
SELECT + 21 * - 4 * - - 43 AS col1
----
-3612

onlyif mysql # aggregate syntax: 
query I rowsort label-3723
SELECT DISTINCT MIN( 14 ) * - - COUNT( * ) + - 65 + - + 78 AS col0
----
-129

skipif mysql # not compatible
query I rowsort label-3723
SELECT DISTINCT MIN ( 14 ) * - - COUNT ( * ) + - 65 + - + 78 AS col0
----
-129

onlyif mysql # aggregate syntax: 
query I rowsort label-3724
SELECT SUM( ALL + 6 ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-3724
SELECT SUM ( ALL + 6 ) AS col2
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3725
SELECT ALL - 26 * 59 - + 29 * + CAST( + + ( - COUNT( * ) ) AS SIGNED ) + + + ( - 46 ) AS col2
----
-1551

skipif mysql # not compatible
query I rowsort label-3725
SELECT ALL - 26 * 59 - + 29 * + CAST ( + + ( - COUNT ( * ) ) AS INTEGER ) + + + ( - 46 ) AS col2
----
-1551

query I rowsort
SELECT + ( + 88 ) * + - 12
----
-1056

onlyif mysql # aggregate syntax: 
query I rowsort label-3727
SELECT - 91 + - COALESCE ( - + COUNT( * ), - ( - SUM( 39 ) ) )
----
-90

skipif mysql # not compatible
query I rowsort label-3727
SELECT - 91 + - COALESCE ( - + COUNT ( * ), - ( - SUM ( 39 ) ) )
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-3728
SELECT ALL + SUM( DISTINCT 17 ) col0
----
17

skipif mysql # not compatible
query I rowsort label-3728
SELECT ALL + SUM ( DISTINCT 17 ) col0
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3729
SELECT + CASE NULLIF ( - - 94, CAST( - COUNT( ALL + 45 ) AS SIGNED ) * + 42 ) WHEN + + 65 + - - 27 * - 74 THEN NULL WHEN AVG ( + 80 ) / ( - 99 ) + 7 THEN 12 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3729
SELECT + CASE NULLIF ( - - 94, CAST ( - COUNT ( ALL + 45 ) AS INTEGER ) * + 42 ) WHEN + + 65 + - - 27 * - 74 THEN NULL WHEN AVG ( + 80 ) / ( - 99 ) + 7 THEN 12 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3730
SELECT DISTINCT + 76 * COUNT( * ) col0
----
76

skipif mysql # not compatible
query I rowsort label-3730
SELECT DISTINCT + 76 * COUNT ( * ) col0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-3731
SELECT DISTINCT - COUNT( * ) * + 10
----
-10

skipif mysql # not compatible
query I rowsort label-3731
SELECT DISTINCT - COUNT ( * ) * + 10
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-3732
SELECT ALL + - 99 * SUM( - 57 ) + 24 + 92 * + + 99 + + + 39 + + - 20 AS col0
----
14794

skipif mysql # not compatible
query I rowsort label-3732
SELECT ALL + - 99 * SUM ( - 57 ) + 24 + 92 * + + 99 + + + 39 + + - 20 AS col0
----
14794

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3733
SELECT + + COUNT( * ) DIV + + 20
----
0

skipif mysql # not compatible
query I rowsort label-3733
SELECT + + COUNT ( * ) / + + 20
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3734
SELECT - - COUNT( * ) * - - 89 * 71 AS col1
----
6319

skipif mysql # not compatible
query I rowsort label-3734
SELECT - - COUNT ( * ) * - - 89 * 71 AS col1
----
6319

onlyif mysql # aggregate syntax: 
query I rowsort label-3735
SELECT ALL - + 23 + + - MAX( ALL + ( 80 ) ) + COUNT( * ) - + 79 - 68 AS col2
----
-249

skipif mysql # not compatible
query I rowsort label-3735
SELECT ALL - + 23 + + - MAX ( ALL + ( 80 ) ) + COUNT ( * ) - + 79 - 68 AS col2
----
-249

query I rowsort
SELECT ALL + ( - 69 ) col0
----
-69

query I rowsort
SELECT ALL - 1 + - 76
----
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3738
SELECT ALL 65 + + MAX( ALL 94 ) DIV - 74
----
64

skipif mysql # not compatible
query I rowsort label-3738
SELECT ALL 65 + + MAX ( ALL 94 ) / - 74
----
64

onlyif mysql # aggregate syntax: 
query II rowsort label-3739
SELECT - ( - 78 ) + 68 + + - 14 + COUNT( * ), - 5 AS col1
----
133
-5

skipif mysql # not compatible
query II rowsort label-3739
SELECT - ( - 78 ) + 68 + + - 14 + COUNT ( * ), - 5 AS col1
----
133
-5

query I rowsort
SELECT ALL - 40 + 56
----
16

query I rowsort
SELECT - ( 92 ) * + + 31 AS col2
----
-2852

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3742
SELECT CAST( + + 44 AS SIGNED )
----
44

skipif mysql # not compatible
query I rowsort label-3742
SELECT CAST ( + + 44 AS INTEGER )
----
44

onlyif mysql # aggregate syntax: 
query II rowsort label-3743
SELECT + COUNT( * ) AS col2, 44 col1
----
1
44

skipif mysql # not compatible
query II rowsort label-3743
SELECT + COUNT ( * ) AS col2, 44 col1
----
1
44

query II rowsort
SELECT ALL + 62, + 59 * - - 4 - - - 80 col2
----
62
156

onlyif mysql # aggregate syntax: 
query I rowsort label-3745
SELECT + COUNT( - - 70 )
----
1

skipif mysql # not compatible
query I rowsort label-3745
SELECT + COUNT ( - - 70 )
----
1

query I rowsort
SELECT DISTINCT + 74 col2
----
74

query I rowsort
SELECT ( 31 ) AS col1
----
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3748
SELECT ALL 60 DIV - COUNT( * ) - + + 6 * 29 AS col1
----
-234

skipif mysql # not compatible
query I rowsort label-3748
SELECT ALL 60 / - COUNT ( * ) - + + 6 * 29 AS col1
----
-234

onlyif mysql # aggregate syntax: 
query II rowsort label-3749
SELECT + COUNT( * ) AS col1, + 37 col0
----
1
37

skipif mysql # not compatible
query II rowsort label-3749
SELECT + COUNT ( * ) AS col1, + 37 col0
----
1
37

query I rowsort
SELECT ( + 85 ) col1
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-3751
SELECT 53 * + 45 - - COALESCE ( - - CASE WHEN NOT MIN( ALL ( + + 3 ) ) NOT IN ( - CASE - 35 WHEN - 48 THEN NULL ELSE 54 * 4 END ) THEN + 81 * - 5 ELSE 79 END, 34, 19 ) * - 82 col2
----
-4093

skipif mysql # not compatible
query I rowsort label-3751
SELECT 53 * + 45 - - COALESCE ( - - CASE WHEN NOT MIN ( ALL ( + + 3 ) ) NOT IN ( - CASE - 35 WHEN - 48 THEN NULL ELSE 54 * 4 END ) THEN + 81 * - 5 ELSE 79 END, 34, 19 ) * - 82 col2
----
-4093

onlyif mysql # DIV for integer division: 
query I rowsort label-3752
SELECT DISTINCT 39 DIV - 5
----
-7

skipif mysql # not compatible
query I rowsort label-3752
SELECT DISTINCT 39 / - 5
----
-7

query I rowsort
SELECT + 68 * + - 55 AS col0
----
-3740

query I rowsort
SELECT ALL 74 * + 67 * - 8 AS col0
----
-39664

query I rowsort
SELECT + 79 + - 68
----
11

query I rowsort
SELECT + 73 * - + 1 * + + 7 AS col2
----
-511

query I rowsort
SELECT + 32 * - - 86 col0
----
2752

query I rowsort
SELECT ALL 38 * - - 16 AS col1
----
608

onlyif mysql # aggregate syntax: 
query I rowsort label-3759
SELECT 90 * SUM( DISTINCT - 39 ) - + + MAX( - + COALESCE ( + 97, - + 91 ) )
----
-3413

skipif mysql # not compatible
query I rowsort label-3759
SELECT 90 * SUM ( DISTINCT - 39 ) - + + MAX ( - + COALESCE ( + 97, - + 91 ) )
----
-3413

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3760
SELECT + COUNT( * ) * - ( COUNT( * ) ) * SUM( + 44 ) AS col0, + CAST( + COUNT( * ) AS SIGNED ) AS col1
----
-44
1

skipif mysql # not compatible
query II rowsort label-3760
SELECT + COUNT ( * ) * - ( COUNT ( * ) ) * SUM ( + 44 ) AS col0, + CAST ( + COUNT ( * ) AS INTEGER ) AS col1
----
-44
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3761
SELECT ALL + 20 * CAST( + - CAST( 35 AS SIGNED ) AS SIGNED ) + - - 4
----
-696

skipif mysql # not compatible
query I rowsort label-3761
SELECT ALL + 20 * CAST ( + - CAST ( 35 AS INTEGER ) AS INTEGER ) + - - 4
----
-696

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3762
SELECT + - 51 + + + NULLIF ( ( + 9 ), + - CAST( NULL AS SIGNED ) ) + - + 43 + - COUNT( * ) - 91 + COUNT( * ) * + 44 * 15
----
483

skipif mysql # not compatible
query I rowsort label-3762
SELECT + - 51 + + + NULLIF ( ( + 9 ), + - CAST ( NULL AS INTEGER ) ) + - + 43 + - COUNT ( * ) - 91 + COUNT ( * ) * + 44 * 15
----
483

query I rowsort
SELECT - ( 4 ) AS col1
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-3764
SELECT - CASE 16 WHEN + 15 THEN + 65 ELSE MIN( + 12 ) + + COUNT( * ) END
----
-13

skipif mysql # not compatible
query I rowsort label-3764
SELECT - CASE 16 WHEN + 15 THEN + 65 ELSE MIN ( + 12 ) + + COUNT ( * ) END
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3765
SELECT + - ( + + COUNT( * ) ) * - NULLIF ( + CAST( NULL AS SIGNED ), - 30 * - 42 - 38 / - 85 * + 77 / 75 / 41 ) - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3765
SELECT + - ( + + COUNT ( * ) ) * - NULLIF ( + CAST ( NULL AS INTEGER ), - 30 * - 42 - 38 / - 85 * + 77 / 75 / 41 ) - COUNT ( * ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3766
SELECT + - COALESCE ( - - 22, - 4 * + + 21, - 52 DIV - - 96 ) + + - 20
----
-42

skipif mysql # not compatible
query I rowsort label-3766
SELECT + - COALESCE ( - - 22, - 4 * + + 21, - 52 / - - 96 ) + + - 20
----
-42

query II rowsort
SELECT ALL - 4 + 50 + + ( + 27 ) * - 58 AS col2, - 20
----
-1520
-20

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3768
SELECT ALL MAX( ALL - + CAST( NULL AS DECIMAL ) ) + - - 77 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3768
SELECT ALL MAX ( ALL - + CAST ( NULL AS REAL ) ) + - - 77 AS col0
----
NULL

query I rowsort
SELECT ALL - 55 + - 46 * + - 33
----
1463

query I rowsort
SELECT ALL - 44 * - - 8
----
-352

query II rowsort
SELECT DISTINCT - 11 * + 72 + - 25 AS col1, - 36 AS col0
----
-817
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-3772
SELECT + COUNT( DISTINCT - 64 ) * + COUNT( ALL - 49 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3772
SELECT + COUNT ( DISTINCT - 64 ) * + COUNT ( ALL - 49 ) AS col1
----
1

query I rowsort
SELECT ( + 57 ) * - + 24
----
-1368

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3774
SELECT - CAST( 82 AS SIGNED ) + 2 + + - NULLIF ( 32, + + CASE - 16 WHEN + CAST( NULL AS SIGNED ) + + + 63 + - 5 + + COUNT( * ) THEN 72 * + 79 ELSE NULL END ) col1
----
-112

skipif mysql # not compatible
query I rowsort label-3774
SELECT - CAST ( 82 AS INTEGER ) + 2 + + - NULLIF ( 32, + + CASE - 16 WHEN + CAST ( NULL AS INTEGER ) + + + 63 + - 5 + + COUNT ( * ) THEN 72 * + 79 ELSE NULL END ) col1
----
-112

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3775
SELECT ALL - 66 DIV COUNT( * ) AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-3775
SELECT ALL - 66 / COUNT ( * ) AS col1
----
-66

query I rowsort
SELECT 57 * + 90 + - + 47 col0
----
5083

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3777
SELECT ALL + 66 DIV - ( - + ( - 65 ) ) AS col2, + SUM( ALL 12 ) AS col1
----
-1
12

skipif mysql # not compatible
query II rowsort label-3777
SELECT ALL + 66 / - ( - + ( - 65 ) ) AS col2, + SUM ( ALL 12 ) AS col1
----
-1
12

query I rowsort
SELECT 87 * + 68
----
5916

query I rowsort
SELECT 22 + - + 64
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-3780
SELECT 96 * + - COUNT( * )
----
-96

skipif mysql # not compatible
query I rowsort label-3780
SELECT 96 * + - COUNT ( * )
----
-96

query I rowsort
SELECT 57 * + 20 + - 17 AS col2
----
1123

query I rowsort
SELECT DISTINCT - ( + + 72 )
----
-72

query I rowsort
SELECT DISTINCT - CASE - - 75 WHEN - 61 THEN + 65 / - ( - 89 ) END AS col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3784
SELECT 28 * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3784
SELECT 28 * - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3785
SELECT DISTINCT - 99 AS col1, COUNT( * ) + - 43 * 61 * - - SUM( ALL + + 69 ) AS col1
----
-99
-180986

skipif mysql # not compatible
query II rowsort label-3785
SELECT DISTINCT - 99 AS col1, COUNT ( * ) + - 43 * 61 * - - SUM ( ALL + + 69 ) AS col1
----
-99
-180986

query I rowsort
SELECT 41 * + 41 AS col0
----
1681

onlyif mysql # aggregate syntax: 
query I rowsort label-3787
SELECT 95 * - - COUNT( * ) + + + 26
----
121

skipif mysql # not compatible
query I rowsort label-3787
SELECT 95 * - - COUNT ( * ) + + + 26
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-3788
SELECT ALL - MAX( DISTINCT - 23 )
----
23

skipif mysql # not compatible
query I rowsort label-3788
SELECT ALL - MAX ( DISTINCT - 23 )
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3789
SELECT ALL - CAST( + + ( 49 ) AS SIGNED )
----
-49

skipif mysql # not compatible
query I rowsort label-3789
SELECT ALL - CAST ( + + ( 49 ) AS INTEGER )
----
-49

query II rowsort
SELECT 29 AS col2, 27
----
29
27

query I rowsort
SELECT ( 20 ) + - + 95
----
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3792
SELECT 2 DIV COUNT( * ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-3792
SELECT 2 / COUNT ( * ) AS col0
----
2

query I rowsort
SELECT + 5 + - + 97
----
-92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3794
SELECT ALL - ( - + 86 ) + 61 DIV 97 * - + COUNT( * )
----
86

skipif mysql # not compatible
query I rowsort label-3794
SELECT ALL - ( - + 86 ) + 61 / 97 * - + COUNT ( * )
----
86

onlyif mysql # aggregate syntax: 
query II rowsort label-3795
SELECT + 68 AS col0, COUNT( * )
----
68
1

skipif mysql # not compatible
query II rowsort label-3795
SELECT + 68 AS col0, COUNT ( * )
----
68
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3796
SELECT + - CAST( - + 23 AS SIGNED ) AS col2
----
23

skipif mysql # not compatible
query I rowsort label-3796
SELECT + - CAST ( - + 23 AS INTEGER ) AS col2
----
23

query I rowsort
SELECT + - 79 AS col1
----
-79

query I rowsort
SELECT - 28 + + - 99 - - 74
----
-53

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3799
SELECT ALL + 66 AS col0, CAST( NULL AS DECIMAL ) + - ( COUNT( * ) ) + + - COUNT( * )
----
66
NULL

skipif mysql # not compatible
query II rowsort label-3799
SELECT ALL + 66 AS col0, CAST ( NULL AS REAL ) + - ( COUNT ( * ) ) + + - COUNT ( * )
----
66
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3800
SELECT DISTINCT - + COUNT( * ) + + + 75
----
74

skipif mysql # not compatible
query I rowsort label-3800
SELECT DISTINCT - + COUNT ( * ) + + + 75
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3801
SELECT + MIN( ALL + 49 ) AS col0
----
49

skipif mysql # not compatible
query I rowsort label-3801
SELECT + MIN ( ALL + 49 ) AS col0
----
49

query I rowsort
SELECT DISTINCT - 17 + - NULLIF ( + 27, + - 41 )
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-3803
SELECT DISTINCT 59 + - COUNT( * )
----
58

skipif mysql # not compatible
query I rowsort label-3803
SELECT DISTINCT 59 + - COUNT ( * )
----
58

query I rowsort
SELECT ALL + 84 + - + ( 53 ) * 99 AS col1
----
-5163

onlyif mysql # aggregate syntax: 
query I rowsort label-3805
SELECT ( - + 93 ) * + - 60 * + COUNT( * ) * + AVG ( - 72 ) * - CASE - 97 WHEN - 48 THEN NULL WHEN + 24 THEN + ( 0 ) + ( + 11 ) END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3805
SELECT ( - + 93 ) * + - 60 * + COUNT ( * ) * + AVG ( - 72 ) * - CASE - 97 WHEN - 48 THEN NULL WHEN + 24 THEN + ( 0 ) + ( + 11 ) END col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3806
SELECT ALL CAST( NULL AS DECIMAL ) AS col1, + 28 - 34
----
NULL
-6

skipif mysql # not compatible
query II rowsort label-3806
SELECT ALL CAST ( NULL AS REAL ) AS col1, + 28 - 34
----
NULL
-6

query I rowsort
SELECT - ( - 29 )
----
29

query I rowsort
SELECT 78 + 31 AS col0
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-3809
SELECT + COUNT( * ) * - 59 AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-3809
SELECT + COUNT ( * ) * - 59 AS col2
----
-59

query II rowsort
SELECT - 75, 53 AS col0
----
-75
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3811
SELECT ALL - 23 + + CAST( + - 23 AS SIGNED ) + - + 38 * + ( 63 )
----
-2440

skipif mysql # not compatible
query I rowsort label-3811
SELECT ALL - 23 + + CAST ( + - 23 AS INTEGER ) + - + 38 * + ( 63 )
----
-2440

query I rowsort
SELECT 27 - - 5 AS col2
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3813
SELECT - + COALESCE ( - 24, - 98 * + - 61 * + + 60 + COUNT( * ) + - + 76 * - 33 ) AS col0
----
24

skipif mysql # not compatible
query I rowsort label-3813
SELECT - + COALESCE ( - 24, - 98 * + - 61 * + + 60 + COUNT ( * ) + - + 76 * - 33 ) AS col0
----
24

query II rowsort
SELECT ALL - 48 AS col2, 61 + - + 1 + + + 76 + 59
----
-48
195

onlyif mysql # DIV for integer division: 
query I rowsort label-3815
SELECT 16 - ( - - 91 ) DIV 93 AS col1
----
16

skipif mysql # not compatible
query I rowsort label-3815
SELECT 16 - ( - - 91 ) / 93 AS col1
----
16

query I rowsort
SELECT DISTINCT 63 * + 58
----
3654

query I rowsort
SELECT 32 * + 81 AS col2
----
2592

onlyif mysql # aggregate syntax: 
query II rowsort label-3818
SELECT ALL + ( - COUNT( * ) ) * 93 * + - 20 * 33 * + + MIN( - 2 ) * - 30 AS col0, ( - + 33 ) * - 63
----
3682800
2079

skipif mysql # not compatible
query II rowsort label-3818
SELECT ALL + ( - COUNT ( * ) ) * 93 * + - 20 * 33 * + + MIN ( - 2 ) * - 30 AS col0, ( - + 33 ) * - 63
----
3682800
2079

query I rowsort
SELECT 22 * + + 38 AS col1
----
836

query I rowsort
SELECT 31 * ( 52 )
----
1612

onlyif mysql # aggregate syntax: 
query I rowsort label-3821
SELECT DISTINCT - COUNT( 29 )
----
-1

skipif mysql # not compatible
query I rowsort label-3821
SELECT DISTINCT - COUNT ( 29 )
----
-1

query I rowsort
SELECT 47 * + 31
----
1457

onlyif mysql # aggregate syntax: 
query I rowsort label-3823
SELECT 21 * - ( + COUNT( * ) )
----
-21

skipif mysql # not compatible
query I rowsort label-3823
SELECT 21 * - ( + COUNT ( * ) )
----
-21

query I rowsort
SELECT 57 * - 32 AS col1
----
-1824

onlyif mysql # aggregate syntax: 
query I rowsort label-3825
SELECT ALL + 46 * 39 * + + COUNT( * ) * - 66 * + COUNT( * ) + ( + 44 ) * - MIN( - 80 ) * - + 78
----
-392964

skipif mysql # not compatible
query I rowsort label-3825
SELECT ALL + 46 * 39 * + + COUNT ( * ) * - 66 * + COUNT ( * ) + ( + 44 ) * - MIN ( - 80 ) * - + 78
----
-392964

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3826
SELECT - 29 - - - 80 + - - COUNT( * ) + - 91 * 43 * SUM( DISTINCT + CASE CAST( + - 83 AS SIGNED ) WHEN 74 THEN - 48 ELSE + + 63 END ) col2
----
-246627

skipif mysql # not compatible
query I rowsort label-3826
SELECT - 29 - - - 80 + - - COUNT ( * ) + - 91 * 43 * SUM ( DISTINCT + CASE CAST ( + - 83 AS INTEGER ) WHEN 74 THEN - 48 ELSE + + 63 END ) col2
----
-246627

query I rowsort
SELECT 47 + + 48 AS col1
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-3828
SELECT + COUNT( + - 53 )
----
1

skipif mysql # not compatible
query I rowsort label-3828
SELECT + COUNT ( + - 53 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3829
SELECT ALL - - SUM( ALL - 59 ) * + ( - COUNT( ALL ( - - 14 ) ) ) * 76 AS col0
----
4484

skipif mysql # not compatible
query I rowsort label-3829
SELECT ALL - - SUM ( ALL - 59 ) * + ( - COUNT ( ALL ( - - 14 ) ) ) * 76 AS col0
----
4484

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3830
SELECT DISTINCT - 27 * + COALESCE ( MIN( DISTINCT + ( + 14 ) ), 57, 88 ) * + 61 + + 70 * 11 + 43 DIV 21 + - 92 DIV + MAX( DISTINCT - 14 + 31 ) AS col1
----
-22291

skipif mysql # not compatible
query I rowsort label-3830
SELECT DISTINCT - 27 * + COALESCE ( MIN ( DISTINCT + ( + 14 ) ), 57, 88 ) * + 61 + + 70 * 11 + 43 / 21 + - 92 / + MAX ( DISTINCT - 14 + 31 ) AS col1
----
-22291

query I rowsort
SELECT ALL + 68 + + 99 + 33
----
200

query I rowsort
SELECT ALL + 88 + - 54 - - 52 * + 4 AS col2
----
242

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3833
SELECT + + CAST( - NULLIF ( - + 83, + CAST( - 93 AS DECIMAL ) - 26 ) AS DECIMAL ) * - 64 - - CASE + 88 WHEN - + 20 THEN - 46 * - NULLIF ( - MIN( DISTINCT + 41 ), + 29 ) WHEN NULLIF ( 10, 32 + - COUNT( * ) ) * 56 THEN 5 * + 26 END / 7
----
NULL

skipif mysql # not compatible
query I rowsort label-3833
SELECT + + CAST ( - NULLIF ( - + 83, + CAST ( - 93 AS REAL ) - 26 ) AS REAL ) * - 64 - - CASE + 88 WHEN - + 20 THEN - 46 * - NULLIF ( - MIN ( DISTINCT + 41 ), + 29 ) WHEN NULLIF ( 10, 32 + - COUNT ( * ) ) * 56 THEN 5 * + 26 END / 7
----
NULL

query I rowsort
SELECT ALL + 77 * - 92 + 80 AS col2
----
-7004

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3835
SELECT - - 8 - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3835
SELECT - - 8 - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - ( NULLIF ( + 39, 0 ) )
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-3837
SELECT + ( + COUNT( * ) ) + + 10
----
11

skipif mysql # not compatible
query I rowsort label-3837
SELECT + ( + COUNT ( * ) ) + + 10
----
11

query I rowsort
SELECT - 45 * 24
----
-1080

onlyif mysql # aggregate syntax: 
query I rowsort label-3839
SELECT + COUNT( * ) * - NULLIF ( - 64, + + 94 * - + 40 )
----
64

skipif mysql # not compatible
query I rowsort label-3839
SELECT + COUNT ( * ) * - NULLIF ( - 64, + + 94 * - + 40 )
----
64

query I rowsort
SELECT - 72 + + ( - 7 ) AS col1
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-3841
SELECT - + ( + 60 ) * + 21 + COUNT( * ) * 70 + - 97
----
-1287

skipif mysql # not compatible
query I rowsort label-3841
SELECT - + ( + 60 ) * + 21 + COUNT ( * ) * 70 + - 97
----
-1287

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3842
SELECT DISTINCT + - 95 DIV 92 AS col1, + CAST( + AVG ( ALL + 76 ) AS SIGNED ) - - 82 col0
----
-1
158

skipif mysql # not compatible
query II rowsort label-3842
SELECT DISTINCT + - 95 / 92 AS col1, + CAST ( + AVG ( ALL + 76 ) AS INTEGER ) - - 82 col0
----
-1
158

query I rowsort
SELECT ALL 34 * + 19 * - + 69 AS col2
----
-44574

onlyif mysql # aggregate syntax: 
query I rowsort label-3844
SELECT ALL COUNT( * ) * - 31
----
-31

skipif mysql # not compatible
query I rowsort label-3844
SELECT ALL COUNT ( * ) * - 31
----
-31

query I rowsort
SELECT - CASE - 66 WHEN + + 72 THEN NULL WHEN - 83 THEN - 33 ELSE - 82 * - 10 * 68 * + 8 - 49 END
----
-446031

query I rowsort
SELECT ALL 22 * - 38 AS col2
----
-836

onlyif mysql # aggregate syntax: 
query I rowsort label-3847
SELECT - COUNT( ALL 12 )
----
-1

skipif mysql # not compatible
query I rowsort label-3847
SELECT - COUNT ( ALL 12 )
----
-1

query II rowsort
SELECT 86 AS col2, - 30
----
86
-30

query I rowsort
SELECT + 4 + - 79 * - + ( + 84 )
----
6640

query I rowsort
SELECT + 69 * - 78
----
-5382

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3851
SELECT + 80 + - + 50 + + 44 col1, + CAST( 1 AS SIGNED ) * - - COUNT( * )
----
74
1

skipif mysql # not compatible
query II rowsort label-3851
SELECT + 80 + - + 50 + + 44 col1, + CAST ( 1 AS INTEGER ) * - - COUNT ( * )
----
74
1

query I rowsort
SELECT ALL 62 + + 29 AS col0
----
91

query I rowsort
SELECT + 33 * 86
----
2838

onlyif mysql # DIV for integer division: 
query I rowsort label-3854
SELECT ALL 10 DIV - + 6 + 65 + + 50 AS col1
----
114

skipif mysql # not compatible
query I rowsort label-3854
SELECT ALL 10 / - + 6 + 65 + + 50 AS col1
----
114

query I rowsort
SELECT + ( 42 )
----
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3856
SELECT 31 DIV COUNT( * ) + 86 + 19 AS col2
----
136

skipif mysql # not compatible
query I rowsort label-3856
SELECT 31 / COUNT ( * ) + 86 + 19 AS col2
----
136

query I rowsort
SELECT ( + 28 ) AS col2
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3858
SELECT + 97 / COUNT( ALL + - ( - + 82 ) ) / + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3858
SELECT + 97 / COUNT ( ALL + - ( - + 82 ) ) / + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3859
SELECT - COUNT( * ) + - - 16 AS col2
----
15

skipif mysql # not compatible
query I rowsort label-3859
SELECT - COUNT ( * ) + - - 16 AS col2
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3860
SELECT ALL - 7 * - + COUNT( * ) * - 2 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3860
SELECT ALL - 7 * - + COUNT ( * ) * - 2 + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 14 + - + 71 * + 18 * 60 + 74
----
-76592

query I rowsort
SELECT + NULLIF ( + 87, 90 + + + 13 / NULLIF ( - 46, - 76 ) )
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-3863
SELECT COUNT( * ) * + 63 + + CASE ( - 17 ) WHEN - 86 / + 22 - + 61 THEN - CASE + COALESCE ( - NULLIF ( - 93, 21 ), + 35 - + 20 ) WHEN 44 THEN + 32 + 82 WHEN 54 - + 69 * 97 THEN NULL END ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3863
SELECT COUNT ( * ) * + 63 + + CASE ( - 17 ) WHEN - 86 / + 22 - + 61 THEN - CASE + COALESCE ( - NULLIF ( - 93, 21 ), + 35 - + 20 ) WHEN 44 THEN + 32 + 82 WHEN 54 - + 69 * 97 THEN NULL END ELSE NULL END col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3864
SELECT - 96 - - - ( ( 86 ) ) DIV + 1 + + 36
----
-146

skipif mysql # not compatible
query I rowsort label-3864
SELECT - 96 - - - ( ( 86 ) ) / + 1 + + 36
----
-146

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3865
SELECT DISTINCT COUNT( * ) * CASE - COUNT( * ) WHEN + - 19 * ( + 37 ) * + - 61 THEN 2 ELSE + - 61 END DIV + + 15 + + NULLIF ( 60, - ( SUM( DISTINCT 23 ) ) + + 12 )
----
56

skipif mysql # not compatible
query I rowsort label-3865
SELECT DISTINCT COUNT ( * ) * CASE - COUNT ( * ) WHEN + - 19 * ( + 37 ) * + - 61 THEN 2 ELSE + - 61 END / + + 15 + + NULLIF ( 60, - ( SUM ( DISTINCT 23 ) ) + + 12 )
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3866
SELECT DISTINCT - COUNT( * ) * - 23 + + 19 + + NULLIF ( - + 86, - + MAX( DISTINCT CAST( NULL AS SIGNED ) ) ) + + - 71 + + 2
----
-113

skipif mysql # not compatible
query I rowsort label-3866
SELECT DISTINCT - COUNT ( * ) * - 23 + + 19 + + NULLIF ( - + 86, - + MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) ) + + - 71 + + 2
----
-113

query I rowsort
SELECT - 63 + 87
----
24

query I rowsort
SELECT ALL + - NULLIF ( 74, + - 44 ) AS col2
----
-74

onlyif mysql # aggregate syntax: 
query II rowsort label-3869
SELECT ALL + 98, COUNT( * ) * - 21 AS col2
----
98
-21

skipif mysql # not compatible
query II rowsort label-3869
SELECT ALL + 98, COUNT ( * ) * - 21 AS col2
----
98
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-3870
SELECT + + 34 * - COUNT( * ) - + + 48 + 93 + NULLIF ( + - COUNT( * ), 12 * - 29 / - 38 * + ( - 26 ) * - 93 )
----
10

skipif mysql # not compatible
query I rowsort label-3870
SELECT + + 34 * - COUNT ( * ) - + + 48 + 93 + NULLIF ( + - COUNT ( * ), 12 * - 29 / - 38 * + ( - 26 ) * - 93 )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3871
SELECT DISTINCT + MIN( - 83 )
----
-83

skipif mysql # not compatible
query I rowsort label-3871
SELECT DISTINCT + MIN ( - 83 )
----
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3872
SELECT ALL + COUNT( ALL - CAST( NULL AS SIGNED ) ) * - - 25 * + 94 - 85 col0
----
-85

skipif mysql # not compatible
query I rowsort label-3872
SELECT ALL + COUNT ( ALL - CAST ( NULL AS INTEGER ) ) * - - 25 * + 94 - 85 col0
----
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-3873
SELECT + + 51 DIV - + 82 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3873
SELECT + + 51 / - + 82 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3874
SELECT ALL + SUM( DISTINCT - - 42 ) * - 6 * - - 95 AS col0
----
-23940

skipif mysql # not compatible
query I rowsort label-3874
SELECT ALL + SUM ( DISTINCT - - 42 ) * - 6 * - - 95 AS col0
----
-23940

query I rowsort
SELECT + - COALESCE ( - 21, NULLIF ( 61, + ( + 86 ) ) ) AS col1
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3876
SELECT ALL - CAST( NULL AS SIGNED ) * - 13 - 99 + - + COALESCE ( + 0, + 21, - 94 - - 90 ) * + + MIN( + - 33 ) * 17
----
NULL

skipif mysql # not compatible
query I rowsort label-3876
SELECT ALL - CAST ( NULL AS INTEGER ) * - 13 - 99 + - + COALESCE ( + 0, + 21, - 94 - - 90 ) * + + MIN ( + - 33 ) * 17
----
NULL

query I rowsort
SELECT DISTINCT + 32 * 44 * - 21 AS col1
----
-29568

onlyif mysql # aggregate syntax: 
query II rowsort label-3878
SELECT - COUNT( * ) AS col0, 10 col1
----
-1
10

skipif mysql # not compatible
query II rowsort label-3878
SELECT - COUNT ( * ) AS col0, 10 col1
----
-1
10

query I rowsort
SELECT ALL + 21 * - + 14 AS col2
----
-294

query I rowsort
SELECT ALL + - 68 * - + 52 * 12
----
42432

query II rowsort
SELECT ALL 99 AS col2, + 32 AS col1
----
99
32

onlyif mysql # aggregate syntax: 
query II rowsort label-3882
SELECT DISTINCT + ( + + 9 ) * 43 AS col1, SUM( ALL 7 )
----
387
7

skipif mysql # not compatible
query II rowsort label-3882
SELECT DISTINCT + ( + + 9 ) * 43 AS col1, SUM ( ALL 7 )
----
387
7

query I rowsort
SELECT - 16 + - 83 + - 57 + - CASE 86 WHEN + 81 + + 43 THEN NULL ELSE - - 21 + - 14 END * ( + - ( - 66 ) ) col0
----
-618

query I rowsort
SELECT - NULLIF ( - 88, NULLIF ( + 16, 83 ) + - 68 ) AS col2
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3885
SELECT - 63 - + CAST( + CAST( + 5 AS SIGNED ) AS SIGNED ) AS col2, - COUNT( - 93 ) + - + 2 AS col0
----
-68
-3

skipif mysql # not compatible
query II rowsort label-3885
SELECT - 63 - + CAST ( + CAST ( + 5 AS INTEGER ) AS INTEGER ) AS col2, - COUNT ( - 93 ) + - + 2 AS col0
----
-68
-3

query I rowsort
SELECT ALL ( 2 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3887
SELECT - MAX( ALL + + NULLIF ( + - 84, + ( 0 ) + 79 ) )
----
84

skipif mysql # not compatible
query I rowsort label-3887
SELECT - MAX ( ALL + + NULLIF ( + - 84, + ( 0 ) + 79 ) )
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3888
SELECT DISTINCT CAST( + 17 AS SIGNED ) AS col1
----
17

skipif mysql # not compatible
query I rowsort label-3888
SELECT DISTINCT CAST ( + 17 AS INTEGER ) AS col1
----
17

query I rowsort
SELECT ALL - 35 + + ( - - 3 ) AS col2
----
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-3890
SELECT ALL 3 + + 52 + 68 + - 59 DIV 52
----
122

skipif mysql # not compatible
query I rowsort label-3890
SELECT ALL 3 + + 52 + 68 + - 59 / 52
----
122

query I rowsort
SELECT DISTINCT - ( + + ( 82 ) ) + ( - 92 ) + - - 37 - - 70
----
-67

query I rowsort
SELECT + 85 - - 89 AS col0
----
174

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3893
SELECT ALL 9 + - COUNT( * ) DIV - + 63 AS col2
----
9

skipif mysql # not compatible
query I rowsort label-3893
SELECT ALL 9 + - COUNT ( * ) / - + 63 AS col2
----
9

query I rowsort
SELECT ALL ( - 21 ) + 76 + + 30
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3895
SELECT - CAST( + SUM( 75 ) AS SIGNED ) col0
----
-75

skipif mysql # not compatible
query I rowsort label-3895
SELECT - CAST ( + SUM ( 75 ) AS INTEGER ) col0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-3896
SELECT + 91 * + 45 * - MAX( 93 )
----
-380835

skipif mysql # not compatible
query I rowsort label-3896
SELECT + 91 * + 45 * - MAX ( 93 )
----
-380835

query I rowsort
SELECT ALL - ( + 85 ) + + 56 AS col0
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3898
SELECT ALL - CAST( - - 12 AS SIGNED ), + 59 AS col2
----
-12
59

skipif mysql # not compatible
query II rowsort label-3898
SELECT ALL - CAST ( - - 12 AS INTEGER ), + 59 AS col2
----
-12
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3899
SELECT ALL 64 + - - COUNT( ALL - 85 ) - + - COUNT( * ) AS col1
----
66

skipif mysql # not compatible
query I rowsort label-3899
SELECT ALL 64 + - - COUNT ( ALL - 85 ) - + - COUNT ( * ) AS col1
----
66

query II rowsort
SELECT DISTINCT 82 - + 40 * + 68 * + 65 * - 25 * + 99 + + NULLIF ( - + 3, + 45 ) * + 21, + 43 col1
----
437580019
43

query I rowsort
SELECT DISTINCT - + NULLIF ( 86, - 75 ) AS col2
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-3902
SELECT + COUNT( * ) * - + 17
----
-17

skipif mysql # not compatible
query I rowsort label-3902
SELECT + COUNT ( * ) * - + 17
----
-17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3903
SELECT 77 DIV - - 84 DIV + + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-3903
SELECT 77 / - - 84 / + + COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3904
SELECT DISTINCT 6 * - + CASE 28 WHEN COALESCE ( + + MAX( - 70 ), + 92 * + 35 / 66 * + + 60 * - + NULLIF ( + + 29, - 68 * + 10 ), 21 ) THEN NULL WHEN + 6 * 76 THEN 49 + 66 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3904
SELECT DISTINCT 6 * - + CASE 28 WHEN COALESCE ( + + MAX ( - 70 ), + 92 * + 35 / 66 * + + 60 * - + NULLIF ( + + 29, - 68 * + 10 ), 21 ) THEN NULL WHEN + 6 * 76 THEN 49 + 66 ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3905
SELECT DISTINCT + 67 * + + CAST( + 99 AS SIGNED ) col2
----
6633

skipif mysql # not compatible
query I rowsort label-3905
SELECT DISTINCT + 67 * + + CAST ( + 99 AS INTEGER ) col2
----
6633

onlyif mysql # aggregate syntax: 
query I rowsort label-3906
SELECT DISTINCT - 92 - + 0 * 12 + + 80 + - COUNT( * ) * COALESCE ( - 47, + - 10 + 18 )
----
35

skipif mysql # not compatible
query I rowsort label-3906
SELECT DISTINCT - 92 - + 0 * 12 + + 80 + - COUNT ( * ) * COALESCE ( - 47, + - 10 + 18 )
----
35

query I rowsort
SELECT - COALESCE ( + + 8, + 62, ( - 29 ) ) * + NULLIF ( - ( - CASE + AVG ( + - 69 ) WHEN - + 49 THEN 35 ELSE - 27 + + 21 + + 94 END ), - 96 * 35 - - 71 ) * - 21 - 71 * 54
----
10950

query I rowsort
SELECT + 90 + - 20 + + + 53 * 75
----
4045

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3909
SELECT COUNT( * ) DIV - COALESCE ( + 14, 24 * + CASE - + COUNT( * ) WHEN + CAST( NULL AS SIGNED ) * - 74 THEN - ( - 28 ) WHEN - - 24 * + - 95 * + - 4 + - + 10 * COUNT( * ) THEN - 47 ELSE - 9 END + 39 * + ( + 22 DIV 4 ), - 2 ) + - 56
----
-56

skipif mysql # not compatible
query I rowsort label-3909
SELECT COUNT ( * ) / - COALESCE ( + 14, 24 * + CASE - + COUNT ( * ) WHEN + CAST ( NULL AS INTEGER ) * - 74 THEN - ( - 28 ) WHEN - - 24 * + - 95 * + - 4 + - + 10 * COUNT ( * ) THEN - 47 ELSE - 9 END + 39 * + ( + 22 / 4 ), - 2 ) + - 56
----
-56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3910
SELECT + SUM( + + 0 ) DIV 71 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3910
SELECT + SUM ( + + 0 ) / 71 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3911
SELECT ALL + COALESCE ( - + 89, - CASE - 63 WHEN - + 94 THEN NULL WHEN + - 40 / + CAST( NULL AS SIGNED ) * 59 + - + 47 THEN 68 + - 50 + 89 END * ( CAST( - 88 AS SIGNED ) ) ) AS col0
----
-89

skipif mysql # not compatible
query I rowsort label-3911
SELECT ALL + COALESCE ( - + 89, - CASE - 63 WHEN - + 94 THEN NULL WHEN + - 40 / + CAST ( NULL AS INTEGER ) * 59 + - + 47 THEN 68 + - 50 + 89 END * ( CAST ( - 88 AS INTEGER ) ) ) AS col0
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3912
SELECT - - CAST( + 39 AS SIGNED )
----
39

skipif mysql # not compatible
query I rowsort label-3912
SELECT - - CAST ( + 39 AS INTEGER )
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3913
SELECT 32 * - - COUNT( * )
----
32

skipif mysql # not compatible
query I rowsort label-3913
SELECT 32 * - - COUNT ( * )
----
32

query I rowsort
SELECT ALL + 48 + + 18 + - 69 * - - 56
----
-3798

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3915
SELECT 16 + + + 41 + 48 * - 22 * + - 16 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3915
SELECT 16 + + + 41 + 48 * - 22 * + - 16 + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 22 * - 30 AS col1
----
-660

query I rowsort
SELECT 25 + - COALESCE ( - + 78, 91 )
----
103

query I rowsort
SELECT ALL - 76 + 87 AS col0
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3919
SELECT ALL 49 AS col1, + 32 * NULLIF ( + COUNT( - - 77 ), + 94 * + 24 ) DIV COUNT( * ) + 88
----
49
120

skipif mysql # not compatible
query II rowsort label-3919
SELECT ALL 49 AS col1, + 32 * NULLIF ( + COUNT ( - - 77 ), + 94 * + 24 ) / COUNT ( * ) + 88
----
49
120

onlyif mysql # aggregate syntax: 
query I rowsort label-3920
SELECT DISTINCT + ( COUNT( * ) ) + 22 + - 20 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-3920
SELECT DISTINCT + ( COUNT ( * ) ) + 22 + - 20 AS col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3921
SELECT 60 + - MIN( - + 99 )
----
159

skipif mysql # not compatible
query I rowsort label-3921
SELECT 60 + - MIN ( - + 99 )
----
159

onlyif mysql # aggregate syntax: 
query I rowsort label-3922
SELECT 37 + - 40 * - - COUNT( * ) AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-3922
SELECT 37 + - 40 * - - COUNT ( * ) AS col0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-3923
SELECT 22 AS col0, COUNT( * ) AS col1
----
22
1

skipif mysql # not compatible
query II rowsort label-3923
SELECT 22 AS col0, COUNT ( * ) AS col1
----
22
1

query I rowsort
SELECT 47 + - 29
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-3925
SELECT ALL + ( - COALESCE ( 99, 37 ) ) + + COUNT( * ) + 56 + + - 83 * 76 * COUNT( * ) AS col1
----
-6350

skipif mysql # not compatible
query I rowsort label-3925
SELECT ALL + ( - COALESCE ( 99, 37 ) ) + + COUNT ( * ) + 56 + + - 83 * 76 * COUNT ( * ) AS col1
----
-6350

onlyif mysql # aggregate syntax: 
query II rowsort label-3926
SELECT ALL - 14 + + COUNT( * ) + - 72, - 95 AS col0
----
-85
-95

skipif mysql # not compatible
query II rowsort label-3926
SELECT ALL - 14 + + COUNT ( * ) + - 72, - 95 AS col0
----
-85
-95

query I rowsort
SELECT DISTINCT 75 col2
----
75

query I rowsort
SELECT DISTINCT - 87 * 6
----
-522

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3929
SELECT 69, 91 * + 75 + 9 + MAX( DISTINCT + - 62 ) DIV - 55 AS col1
----
69
6835

skipif mysql # not compatible
query II rowsort label-3929
SELECT 69, 91 * + 75 + 9 + MAX ( DISTINCT + - 62 ) / - 55 AS col1
----
69
6835

onlyif mysql # aggregate syntax: 
query II rowsort label-3930
SELECT + + COUNT( * ) AS col2, + ( + 48 )
----
1
48

skipif mysql # not compatible
query II rowsort label-3930
SELECT + + COUNT ( * ) AS col2, + ( + 48 )
----
1
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3931
SELECT ( - - COUNT( DISTINCT + 62 ) ) + + 42 * - 38 * + 37 AS col0
----
-59051

skipif mysql # not compatible
query I rowsort label-3931
SELECT ( - - COUNT ( DISTINCT + 62 ) ) + + 42 * - 38 * + 37 AS col0
----
-59051

onlyif mysql # aggregate syntax: 
query I rowsort label-3932
SELECT 34 * + + 35 + 24 * - CASE 3 WHEN 44 * 36 THEN NULL WHEN + - COUNT( * ) THEN + - 89 + + 68 ELSE - - 64 - + 47 * - 0 - - 71 END * SUM( COALESCE ( - 69, 23, 53 ) ) + 98 - 46 AS col0
----
224802

skipif mysql # not compatible
query I rowsort label-3932
SELECT 34 * + + 35 + 24 * - CASE 3 WHEN 44 * 36 THEN NULL WHEN + - COUNT ( * ) THEN + - 89 + + 68 ELSE - - 64 - + 47 * - 0 - - 71 END * SUM ( COALESCE ( - 69, 23, 53 ) ) + 98 - 46 AS col0
----
224802

query I rowsort
SELECT - 81 + + 20
----
-61

query I rowsort
SELECT 60 * + 69
----
4140

onlyif mysql # aggregate syntax: 
query I rowsort label-3935
SELECT ALL - SUM( ALL - - 77 )
----
-77

skipif mysql # not compatible
query I rowsort label-3935
SELECT ALL - SUM ( ALL - - 77 )
----
-77

query I rowsort
SELECT DISTINCT - ( + 12 ) AS col0
----
-12

query I rowsort
SELECT ALL - - 21
----
21

query I rowsort
SELECT DISTINCT - 82 * + 56
----
-4592

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3939
SELECT - 22 * - - AVG ( DISTINCT + - 7 ) * 77 - + + CASE WHEN NULL IS NOT NULL THEN - 57 END / - MIN( + + 49 ) + CAST( NULL AS SIGNED ) + 61 * - 2 * 47 + - - 17
----
NULL

skipif mysql # not compatible
query I rowsort label-3939
SELECT - 22 * - - AVG ( DISTINCT + - 7 ) * 77 - + + CASE WHEN NULL IS NOT NULL THEN - 57 END / - MIN ( + + 49 ) + CAST ( NULL AS INTEGER ) + 61 * - 2 * 47 + - - 17
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3940
SELECT ALL - CAST( + 70 AS SIGNED ) AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-3940
SELECT ALL - CAST ( + 70 AS INTEGER ) AS col2
----
-70

query I rowsort
SELECT 19 * 86
----
1634

query I rowsort
SELECT + 88 * 30 AS col2
----
2640

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3943
SELECT + 45 AS col0, ( CASE - + COALESCE ( + 52, + ( - COALESCE ( - 72, - CAST( NULL AS SIGNED ), 6 + - + COALESCE ( COUNT( * ), + 22 / + ( 62 ) ) ) ) ) WHEN + 12 THEN - ( NULLIF ( + 50, - 14 ) ) WHEN + 69 THEN NULL WHEN 57 + + 78 / NULLIF ( - 64, + CASE 2 WHEN 65 THEN NULL WHEN - 28 + 55 / + CAST( NULLIF ( - COUNT( * ), - 76 ) AS SIGNED ) THEN NULL ELSE + 24 + 20 END + - MAX( 79 + + 20 ) ) THEN 25 / + NULLIF ( + 16, + 95 ) ELSE NULL END )
----
45
NULL

skipif mysql # not compatible
query II rowsort label-3943
SELECT + 45 AS col0, ( CASE - + COALESCE ( + 52, + ( - COALESCE ( - 72, - CAST ( NULL AS INTEGER ), 6 + - + COALESCE ( COUNT ( * ), + 22 / + ( 62 ) ) ) ) ) WHEN + 12 THEN - ( NULLIF ( + 50, - 14 ) ) WHEN + 69 THEN NULL WHEN 57 + + 78 / NULLIF ( - 64, + CASE 2 WHEN 65 THEN NULL WHEN - 28 + 55 / + CAST ( NULLIF ( - COUNT ( * ), - 76 ) AS INTEGER ) THEN NULL ELSE + 24 + 20 END + - MAX ( 79 + + 20 ) ) THEN 25 / + NULLIF ( + 16, + 95 ) ELSE NULL END )
----
45
NULL

query I rowsort
SELECT ( 23 )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3945
SELECT DISTINCT 67 * - COUNT( * ) * - 4 AS col0
----
268

skipif mysql # not compatible
query I rowsort label-3945
SELECT DISTINCT 67 * - COUNT ( * ) * - 4 AS col0
----
268

query I rowsort
SELECT ALL 34 + - 74 - - + 17
----
-23

query I rowsort
SELECT 16 * + 85
----
1360

onlyif mysql # aggregate syntax: 
query I rowsort label-3948
SELECT ALL 46 + + - MAX( ALL + CASE + - 80 WHEN + 30 THEN NULL ELSE + 85 + - 69 END ) AS col1
----
30

skipif mysql # not compatible
query I rowsort label-3948
SELECT ALL 46 + + - MAX ( ALL + CASE + - 80 WHEN + 30 THEN NULL ELSE + 85 + - 69 END ) AS col1
----
30

query I rowsort
SELECT DISTINCT 63 + - 38 AS col2
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-3950
SELECT ALL + 44 + - - 17 + + 46 - + - 45 * MIN( - 33 ) * - 44
----
65447

skipif mysql # not compatible
query I rowsort label-3950
SELECT ALL + 44 + - - 17 + + 46 - + - 45 * MIN ( - 33 ) * - 44
----
65447

onlyif mysql # DIV for integer division: 
query II rowsort label-3951
SELECT DISTINCT 42 col0, 11 DIV 70
----
42
0

skipif mysql # not compatible
query II rowsort label-3951
SELECT DISTINCT 42 col0, 11 / 70
----
42
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3952
SELECT ALL - 72 / - - ( CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3952
SELECT ALL - 72 / - - ( CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT 48 + 62
----
110

query II rowsort
SELECT - 4 AS col0, + 27 col1
----
-4
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3955
SELECT 60 DIV - + COUNT( - - 11 ) AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-3955
SELECT 60 / - + COUNT ( - - 11 ) AS col2
----
-60

query I rowsort
SELECT 67 * - - 69 AS col2
----
4623

query I rowsort
SELECT ALL + 72 * 50 * 14 col2
----
50400

query I rowsort
SELECT + 50 - + 20 + - - 56
----
86

query I rowsort
SELECT - NULLIF ( + 94, 14 * - + 83 * - + AVG ( 41 ) )
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-3960
SELECT + COUNT( * ) + 15 col1
----
16

skipif mysql # not compatible
query I rowsort label-3960
SELECT + COUNT ( * ) + 15 col1
----
16

query I rowsort
SELECT ALL ( - 5 ) - 43 AS col1
----
-48

query II rowsort
SELECT DISTINCT 19 AS col0, 29 * - - 89
----
19
2581

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3963
SELECT DISTINCT 76, - NULLIF ( 84, + 22 - - 93 + + 85 / - - 79 ) + - + NULLIF ( CAST( + - 22 AS SIGNED ), + 62 + + 41 + - 85 * 96 + + + 52 ) * - - 78 AS col1
----
76
1632

skipif mysql # not compatible
query II rowsort label-3963
SELECT DISTINCT 76, - NULLIF ( 84, + 22 - - 93 + + 85 / - - 79 ) + - + NULLIF ( CAST ( + - 22 AS INTEGER ), + 62 + + 41 + - 85 * 96 + + + 52 ) * - - 78 AS col1
----
76
1632

query I rowsort
SELECT DISTINCT - 0 - + - 11 AS col0
----
11

query I rowsort
SELECT - + 66 - 62
----
-128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3966
SELECT + 73 * + CAST( CASE + - 40 WHEN - CAST( NULL AS DECIMAL ) THEN NULL WHEN + CAST( 63 AS DECIMAL ) THEN + - MIN( ALL + 4 ) / + 2 + - CASE 17 WHEN + 35 THEN + + ( - 52 ) WHEN + - ( 62 ) / ( - 7 + MAX( DISTINCT 72 ) ) THEN NULL END END AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3966
SELECT + 73 * + CAST ( CASE + - 40 WHEN - CAST ( NULL AS REAL ) THEN NULL WHEN + CAST ( 63 AS REAL ) THEN + - MIN ( ALL + 4 ) / + 2 + - CASE 17 WHEN + 35 THEN + + ( - 52 ) WHEN + - ( 62 ) / ( - 7 + MAX ( DISTINCT 72 ) ) THEN NULL END END AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT - - 37, 17 AS col1
----
37
17

onlyif mysql # DIV for integer division: 
query II rowsort label-3968
SELECT + 60, + 91 + - 32 DIV + + 42 + 73 AS col2
----
60
164

skipif mysql # not compatible
query II rowsort label-3968
SELECT + 60, + 91 + - 32 / + + 42 + 73 AS col2
----
60
164

onlyif mysql # aggregate syntax: 
query II rowsort label-3969
SELECT COUNT( * ) AS col2, - 99 AS col1
----
1
-99

skipif mysql # not compatible
query II rowsort label-3969
SELECT COUNT ( * ) AS col2, - 99 AS col1
----
1
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3970
SELECT + SUM( DISTINCT + 28 )
----
28

skipif mysql # not compatible
query I rowsort label-3970
SELECT + SUM ( DISTINCT + 28 )
----
28

query I rowsort
SELECT - - 89 * - 12 + + 5 AS col0
----
-1063

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3972
SELECT DISTINCT + - CAST( + 97 AS SIGNED ), + 52 AS col1
----
-97
52

skipif mysql # not compatible
query II rowsort label-3972
SELECT DISTINCT + - CAST ( + 97 AS INTEGER ), + 52 AS col1
----
-97
52

onlyif mysql # DIV for integer division: 
query I rowsort label-3973
SELECT ALL + + 86 DIV - 85 + 33
----
32

skipif mysql # not compatible
query I rowsort label-3973
SELECT ALL + + 86 / - 85 + 33
----
32

query I rowsort
SELECT DISTINCT + - COALESCE ( - 29, + + 30 ) col0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-3975
SELECT COUNT( ALL - + 15 ) * 52 + + 83
----
135

skipif mysql # not compatible
query I rowsort label-3975
SELECT COUNT ( ALL - + 15 ) * 52 + + 83
----
135

query II rowsort
SELECT 8, - 70 AS col2
----
8
-70

query I rowsort
SELECT ALL + - 11 * - ( + 6 )
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-3978
SELECT + 72 DIV + 99 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3978
SELECT + 72 / + 99 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3979
SELECT + 77 DIV 9 + - - 87 col2
----
95

skipif mysql # not compatible
query I rowsort label-3979
SELECT + 77 / 9 + - - 87 col2
----
95

onlyif mysql # DIV for integer division: 
query II rowsort label-3980
SELECT + - 62 AS col1, + 72 DIV - 20 + + 99 AS col1
----
-62
96

skipif mysql # not compatible
query II rowsort label-3980
SELECT + - 62 AS col1, + 72 / - 20 + + 99 AS col1
----
-62
96

query II rowsort
SELECT DISTINCT + 6 AS col0, 70 + - 26 + - 99
----
6
-55

query I rowsort
SELECT ALL + + ( - 77 ) * 67 + - + 27 + - 23 AS col0
----
-5209

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3983
SELECT - COUNT( * ) + - 30 + + 48 DIV 44, 58 AS col2
----
-30
58

skipif mysql # not compatible
query II rowsort label-3983
SELECT - COUNT ( * ) + - 30 + + 48 / 44, 58 AS col2
----
-30
58

query II rowsort
SELECT ALL + 24 AS col0, 87 col0
----
24
87

query I rowsort
SELECT - 2 * + 73 + + 22 AS col0
----
-124

query II rowsort
SELECT ALL + + 78, 50 AS col0
----
78
50

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3987
SELECT DISTINCT + ( - + 54 ) AS col1, CAST( NULL AS SIGNED )
----
-54
NULL

skipif mysql # not compatible
query II rowsort label-3987
SELECT DISTINCT + ( - + 54 ) AS col1, CAST ( NULL AS INTEGER )
----
-54
NULL

query I rowsort
SELECT - 80 * + ( + - CASE + + 10 WHEN - 74 THEN + + 48 + - - 67 ELSE + - 37 END )
----
-2960

onlyif mysql # aggregate syntax: 
query I rowsort label-3989
SELECT ALL + 97 * - 49 + MIN( ( - 13 ) ) + COUNT( * ) AS col0
----
-4765

skipif mysql # not compatible
query I rowsort label-3989
SELECT ALL + 97 * - 49 + MIN ( ( - 13 ) ) + COUNT ( * ) AS col0
----
-4765

onlyif mysql # aggregate syntax: 
query I rowsort label-3990
SELECT MIN( ALL + ( ( - - 25 ) ) ) AS col0
----
25

skipif mysql # not compatible
query I rowsort label-3990
SELECT MIN ( ALL + ( ( - - 25 ) ) ) AS col0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-3991
SELECT 13 * + 84 * + CASE 75 WHEN + + COUNT( * ) + COUNT( * ) THEN 69 ELSE NULL END + - + ( - 65 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3991
SELECT 13 * + 84 * + CASE 75 WHEN + + COUNT ( * ) + COUNT ( * ) THEN 69 ELSE NULL END + - + ( - 65 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3992
SELECT - ( + MIN( + 82 ) ) AS col1
----
-82

skipif mysql # not compatible
query I rowsort label-3992
SELECT - ( + MIN ( + 82 ) ) AS col1
----
-82

query I rowsort
SELECT + 50 + + 4 AS col0
----
54

query I rowsort
SELECT + CASE 47 WHEN + 12 THEN - 72 END * + 35
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3995
SELECT MIN( + 51 ) AS col0
----
51

skipif mysql # not compatible
query I rowsort label-3995
SELECT MIN ( + 51 ) AS col0
----
51

query II rowsort
SELECT + 27 + - 38 * + ( 36 ) + + 32 + 84 * + 4, + 12 AS col0
----
-973
12

query I rowsort
SELECT ALL ( + 22 ) * - + ( - 90 )
----
1980

onlyif mysql # DIV for integer division: 
query I rowsort label-3998
SELECT ALL + 41 DIV 29
----
1

skipif mysql # not compatible
query I rowsort label-3998
SELECT ALL + 41 / 29
----
1

query I rowsort
SELECT + 71 * + 8 AS col0
----
568

query I rowsort
SELECT - 40 * ( 83 )
----
-3320

onlyif mysql # aggregate syntax: 
query I rowsort label-4001
SELECT - MIN( ALL 89 )
----
-89

skipif mysql # not compatible
query I rowsort label-4001
SELECT - MIN ( ALL 89 )
----
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4002
SELECT ALL - COUNT( * ) * - CAST( + - COUNT( * ) AS SIGNED ) - MAX( DISTINCT + 60 ) AS col0
----
-61

skipif mysql # not compatible
query I rowsort label-4002
SELECT ALL - COUNT ( * ) * - CAST ( + - COUNT ( * ) AS INTEGER ) - MAX ( DISTINCT + 60 ) AS col0
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4003
SELECT + + 43 * COUNT( * ) * + CAST( NULL AS SIGNED ) + - + 14 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4003
SELECT + + 43 * COUNT ( * ) * + CAST ( NULL AS INTEGER ) + - + 14 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4004
SELECT ALL + ( + - 39 ) + + + CAST( + - 54 AS SIGNED ) AS col2
----
-93

skipif mysql # not compatible
query I rowsort label-4004
SELECT ALL + ( + - 39 ) + + + CAST ( + - 54 AS INTEGER ) AS col2
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-4005
SELECT ALL COUNT( * ) * + + 3
----
3

skipif mysql # not compatible
query I rowsort label-4005
SELECT ALL COUNT ( * ) * + + 3
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4006
SELECT - - MIN( ALL - 14 ) DIV 34 + - CAST( + 80 AS SIGNED ) + - ( NULLIF ( + - 92, 62 ) ) AS col0
----
12

skipif mysql # not compatible
query I rowsort label-4006
SELECT - - MIN ( ALL - 14 ) / 34 + - CAST ( + 80 AS INTEGER ) + - ( NULLIF ( + - 92, 62 ) ) AS col0
----
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4007
SELECT DISTINCT - 59 DIV - MAX( DISTINCT - + 82 ) * - 66 + - 35 AS col2
----
-35

skipif mysql # not compatible
query I rowsort label-4007
SELECT DISTINCT - 59 / - MAX ( DISTINCT - + 82 ) * - 66 + - 35 AS col2
----
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-4008
SELECT + COUNT( DISTINCT 79 ) AS col1, 96 + + - COUNT( * )
----
1
95

skipif mysql # not compatible
query II rowsort label-4008
SELECT + COUNT ( DISTINCT 79 ) AS col1, 96 + + - COUNT ( * )
----
1
95

onlyif mysql # DIV for integer division: 
query I rowsort label-4009
SELECT ALL + 15 DIV 41 + - 58
----
-58

skipif mysql # not compatible
query I rowsort label-4009
SELECT ALL + 15 / 41 + - 58
----
-58

query I rowsort
SELECT - - 16 * + 64 * + 32 AS col1
----
32768

onlyif mysql # DIV for integer division: 
query I rowsort label-4011
SELECT ALL + - 9 DIV + 97 + 10 + - 86
----
-76

skipif mysql # not compatible
query I rowsort label-4011
SELECT ALL + - 9 / + 97 + 10 + - 86
----
-76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4012
SELECT ALL - MAX( ALL - 84 ) DIV 31 + 89 AS col2
----
91

skipif mysql # not compatible
query I rowsort label-4012
SELECT ALL - MAX ( ALL - 84 ) / 31 + 89 AS col2
----
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4013
SELECT DISTINCT + 51 DIV + SUM( 61 ) * + 88 + + - 73 AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-4013
SELECT DISTINCT + 51 / + SUM ( 61 ) * + 88 + + - 73 AS col0
----
-73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4014
SELECT ALL 15 DIV + COUNT( * ) + + MAX( - 52 ) + + 92 * ( - 84 ) * COUNT( * ) + 70 AS col2
----
-7695

skipif mysql # not compatible
query I rowsort label-4014
SELECT ALL 15 / + COUNT ( * ) + + MAX ( - 52 ) + + 92 * ( - 84 ) * COUNT ( * ) + 70 AS col2
----
-7695

query I rowsort
SELECT ALL + ( 18 ) * - - 86 * + 29 col1
----
44892

onlyif mysql # aggregate syntax: 
query II rowsort label-4016
SELECT - 98 * + MIN( + 62 ) AS col1, + 24
----
-6076
24

skipif mysql # not compatible
query II rowsort label-4016
SELECT - 98 * + MIN ( + 62 ) AS col1, + 24
----
-6076
24

onlyif mysql # aggregate syntax: 
query I rowsort label-4017
SELECT - NULLIF ( + SUM( 11 ), - 71 ) * + 73
----
-803

skipif mysql # not compatible
query I rowsort label-4017
SELECT - NULLIF ( + SUM ( 11 ), - 71 ) * + 73
----
-803

query I rowsort
SELECT DISTINCT + 72 * + NULLIF ( - + 31, + 13 ) AS col1
----
-2232

query I rowsort
SELECT ( - + 55 )
----
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4020
SELECT COUNT( * ) DIV - 82 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4020
SELECT COUNT ( * ) / - 82 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4021
SELECT 76 DIV + CASE 9 WHEN 56 THEN NULL WHEN - + 84 * - 94 - + + ( 99 ) THEN NULL ELSE + 89 END AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4021
SELECT 76 / + CASE 9 WHEN 56 THEN NULL WHEN - + 84 * - 94 - + + ( 99 ) THEN NULL ELSE + 89 END AS col2
----
0

query I rowsort
SELECT DISTINCT + 27 * + 35 AS col2
----
945

query II rowsort
SELECT ALL 9 AS col2, 99 + - 69 * - + 58 AS col2
----
9
4101

query I rowsort
SELECT DISTINCT + ( 67 ) - 77 + - 25 * 30
----
-760

query I rowsort
SELECT ALL 91 * - ( - 99 )
----
9009

query II rowsort
SELECT - 65 AS col0, 77 * + 17 + + 82
----
-65
1391

query II rowsort
SELECT - 20 AS col0, 18 * - 28
----
-20
-504

onlyif mysql # aggregate syntax: 
query I rowsort label-4028
SELECT ALL 55 * + MAX( - - 66 ) * + - 0 * COUNT( * ) + - 19
----
-19

skipif mysql # not compatible
query I rowsort label-4028
SELECT ALL 55 * + MAX ( - - 66 ) * + - 0 * COUNT ( * ) + - 19
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-4029
SELECT ( 73 ) * + - 70 + COUNT( * ) AS col2
----
-5109

skipif mysql # not compatible
query I rowsort label-4029
SELECT ( 73 ) * + - 70 + COUNT ( * ) AS col2
----
-5109

query I rowsort
SELECT 75 - - - 25 AS col1
----
50

onlyif mysql # aggregate syntax: 
query II rowsort label-4031
SELECT DISTINCT + + 44 * + 1 + + 36, ( + + COUNT( * ) ) AS col0
----
80
1

skipif mysql # not compatible
query II rowsort label-4031
SELECT DISTINCT + + 44 * + 1 + + 36, ( + + COUNT ( * ) ) AS col0
----
80
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4032
SELECT - 91 DIV - - COUNT( * )
----
-91

skipif mysql # not compatible
query I rowsort label-4032
SELECT - 91 / - - COUNT ( * )
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4033
SELECT ALL 61 + + COUNT( * ) - - - 6 + + + CAST( NULL AS SIGNED ) * + 1 + - 66 * - ( CAST( NULL AS SIGNED ) ) * NULLIF ( + ( - 96 ), - 5 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4033
SELECT ALL 61 + + COUNT ( * ) - - - 6 + + + CAST ( NULL AS INTEGER ) * + 1 + - 66 * - ( CAST ( NULL AS INTEGER ) ) * NULLIF ( + ( - 96 ), - 5 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4034
SELECT 56 AS col2, COUNT( * ) DIV 60 AS col1
----
56
0

skipif mysql # not compatible
query II rowsort label-4034
SELECT 56 AS col2, COUNT ( * ) / 60 AS col1
----
56
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4035
SELECT DISTINCT - 75 + - 96 DIV ( CASE + 45 WHEN + 83 THEN 30 WHEN - COUNT( * ) THEN NULL ELSE 8 END ) + ( + - 7 )
----
-94

skipif mysql # not compatible
query I rowsort label-4035
SELECT DISTINCT - 75 + - 96 / ( CASE + 45 WHEN + 83 THEN 30 WHEN - COUNT ( * ) THEN NULL ELSE 8 END ) + ( + - 7 )
----
-94

query I rowsort
SELECT 23 * 63
----
1449

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4037
SELECT DISTINCT CAST( NULL AS DECIMAL ) / 69 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4037
SELECT DISTINCT CAST ( NULL AS REAL ) / 69 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4038
SELECT ALL - 26 + - + COUNT( * )
----
-27

skipif mysql # not compatible
query I rowsort label-4038
SELECT ALL - 26 + - + COUNT ( * )
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4039
SELECT 56 - - + CAST( NULL AS SIGNED ) + - - 18 * - 69 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4039
SELECT 56 - - + CAST ( NULL AS INTEGER ) + - - 18 * - 69 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4040
SELECT ( + + ( + - COUNT( * ) ) ) DIV + 56
----
0

skipif mysql # not compatible
query I rowsort label-4040
SELECT ( + + ( + - COUNT ( * ) ) ) / + 56
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4041
SELECT + 64 AS col1, 14 - + - CASE + 19 WHEN CAST( NULL AS SIGNED ) THEN NULL WHEN 41 - + 75 THEN COUNT( * ) + - 87 WHEN - - 43 - + 77 * + 38 THEN + 93 ELSE - 43 * 49 * + + 29 + + - 50 END + + - 81 DIV 90 AS col0
----
64
-61139

skipif mysql # not compatible
query II rowsort label-4041
SELECT + 64 AS col1, 14 - + - CASE + 19 WHEN CAST ( NULL AS INTEGER ) THEN NULL WHEN 41 - + 75 THEN COUNT ( * ) + - 87 WHEN - - 43 - + 77 * + 38 THEN + 93 ELSE - 43 * 49 * + + 29 + + - 50 END + + - 81 / 90 AS col0
----
64
-61139

onlyif mysql # aggregate syntax: 
query I rowsort label-4042
SELECT ALL - - COUNT( - 96 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4042
SELECT ALL - - COUNT ( - 96 ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4043
SELECT DISTINCT + COALESCE ( ( NULLIF ( + - 5, - COALESCE ( CAST( NULL AS SIGNED ), - - 95, + 24 ) * + 81 ) ), - 44 ) + 11 + - - 17 AS col1
----
23

skipif mysql # not compatible
query I rowsort label-4043
SELECT DISTINCT + COALESCE ( ( NULLIF ( + - 5, - COALESCE ( CAST ( NULL AS INTEGER ), - - 95, + 24 ) * + 81 ) ), - 44 ) + 11 + - - 17 AS col1
----
23

query I rowsort
SELECT DISTINCT - + 99 AS col0
----
-99

query I rowsort
SELECT 71 * + 65 AS col2
----
4615

query I rowsort
SELECT ALL + 99 * - 30
----
-2970

onlyif mysql # DIV for integer division: 
query I rowsort label-4047
SELECT 22 DIV 31 + - - 47 col2
----
47

skipif mysql # not compatible
query I rowsort label-4047
SELECT 22 / 31 + - - 47 col2
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4048
SELECT CAST( NULL AS SIGNED ) + 34 * - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4048
SELECT CAST ( NULL AS INTEGER ) + 34 * - COUNT ( * ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4049
SELECT COALESCE ( - CAST( 23 AS SIGNED ), COUNT( * ) ) + + COUNT( * )
----
-22

skipif mysql # not compatible
query I rowsort label-4049
SELECT COALESCE ( - CAST ( 23 AS INTEGER ), COUNT ( * ) ) + + COUNT ( * )
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-4050
SELECT + 4 * - + COUNT( * ) * + - 84 * + NULLIF ( + + 30, - 56 ) + + 0 + - 66 - + 98
----
9916

skipif mysql # not compatible
query I rowsort label-4050
SELECT + 4 * - + COUNT ( * ) * + - 84 * + NULLIF ( + + 30, - 56 ) + + 0 + - 66 - + 98
----
9916

query I rowsort
SELECT 57 * 95 AS col1
----
5415

onlyif mysql # aggregate syntax: 
query I rowsort label-4052
SELECT + 10 * - COUNT( * ) + 33
----
23

skipif mysql # not compatible
query I rowsort label-4052
SELECT + 10 * - COUNT ( * ) + 33
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4053
SELECT ALL - COUNT( * ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4053
SELECT ALL - COUNT ( * ) * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4054
SELECT 76 + + - ( + - COUNT( * ) ) DIV - 98 AS col1, 8
----
76
8

skipif mysql # not compatible
query II rowsort label-4054
SELECT 76 + + - ( + - COUNT ( * ) ) / - 98 AS col1, 8
----
76
8

query I rowsort
SELECT 47 * 66 AS col2
----
3102

query I rowsort
SELECT DISTINCT - 41 * 25 AS col1
----
-1025

onlyif mysql # aggregate syntax: 
query I rowsort label-4057
SELECT 56 * + COUNT( ALL 1 ) col0
----
56

skipif mysql # not compatible
query I rowsort label-4057
SELECT 56 * + COUNT ( ALL 1 ) col0
----
56

query I rowsort
SELECT ALL + 78 * 29 AS col0
----
2262

query I rowsort
SELECT DISTINCT + 69 * 31
----
2139

onlyif mysql # aggregate syntax: 
query I rowsort label-4060
SELECT ALL MIN( + 89 ) AS col2
----
89

skipif mysql # not compatible
query I rowsort label-4060
SELECT ALL MIN ( + 89 ) AS col2
----
89

query I rowsort
SELECT 82 * - + 3 AS col1
----
-246

query I rowsort
SELECT ALL + 79 + - + 73
----
6

query I rowsort
SELECT ALL - 24 + - + ( - 91 )
----
67

query I rowsort
SELECT DISTINCT - ( - + 23 ) AS col0
----
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4065
SELECT + 98 * - 78 + + + COUNT( * ) + - - 47 DIV - 99, 41 AS col2
----
-7643
41

skipif mysql # not compatible
query II rowsort label-4065
SELECT + 98 * - 78 + + + COUNT ( * ) + - - 47 / - 99, 41 AS col2
----
-7643
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4066
SELECT + MIN( + - 36 ) AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-4066
SELECT + MIN ( + - 36 ) AS col2
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-4067
SELECT ALL - COUNT( * ) + + SUM( DISTINCT + 62 )
----
61

skipif mysql # not compatible
query I rowsort label-4067
SELECT ALL - COUNT ( * ) + + SUM ( DISTINCT + 62 )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4068
SELECT MIN( - 54 ) AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-4068
SELECT MIN ( - 54 ) AS col1
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-4069
SELECT DISTINCT 4 * COUNT( * ) * - + 55
----
-220

skipif mysql # not compatible
query I rowsort label-4069
SELECT DISTINCT 4 * COUNT ( * ) * - + 55
----
-220

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4070
SELECT ALL NULLIF ( + COUNT( * ), + - 14 ) * - COUNT( * ) DIV - 60 * - 99 + + COALESCE ( - - 77, 25, 7 + - COUNT( * ) )
----
77

skipif mysql # not compatible
query I rowsort label-4070
SELECT ALL NULLIF ( + COUNT ( * ), + - 14 ) * - COUNT ( * ) / - 60 * - 99 + + COALESCE ( - - 77, 25, 7 + - COUNT ( * ) )
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4071
SELECT - 91 + - COUNT( * ) + 79 + - COUNT( * ) + 94 * - 83 AS col1
----
-7816

skipif mysql # not compatible
query I rowsort label-4071
SELECT - 91 + - COUNT ( * ) + 79 + - COUNT ( * ) + 94 * - 83 AS col1
----
-7816

query I rowsort
SELECT ALL + + 12 + - 75 * 5 AS col0
----
-363

query I rowsort
SELECT ALL - 14 - - 59
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4074
SELECT + NULLIF ( 18, 25 + - - COUNT( * ) + - 19 - + 68 * - 99 - + CASE MIN( ALL - 67 ) WHEN - 84 THEN + CASE + - 47 WHEN 67 THEN - 0 WHEN 86 - + 48 + 53 + 50 * 75 THEN NULL END + - 87 WHEN 99 THEN NULL WHEN + NULLIF ( 60, ( 26 ) ) + 56 THEN MIN( DISTINCT 53 ) + 29 END ) + 17 AS col0
----
35

skipif mysql # not compatible
query I rowsort label-4074
SELECT + NULLIF ( 18, 25 + - - COUNT ( * ) + - 19 - + 68 * - 99 - + CASE MIN ( ALL - 67 ) WHEN - 84 THEN + CASE + - 47 WHEN 67 THEN - 0 WHEN 86 - + 48 + 53 + 50 * 75 THEN NULL END + - 87 WHEN 99 THEN NULL WHEN + NULLIF ( 60, ( 26 ) ) + 56 THEN MIN ( DISTINCT 53 ) + 29 END ) + 17 AS col0
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4075
SELECT + - NULLIF ( + - 13, 19 ) / + CAST( + - ( + CAST( NULL AS SIGNED ) ) AS SIGNED ) + ( + COUNT( * ) ) / + + 90 + - 78
----
NULL

skipif mysql # not compatible
query I rowsort label-4075
SELECT + - NULLIF ( + - 13, 19 ) / + CAST ( + - ( + CAST ( NULL AS INTEGER ) ) AS INTEGER ) + ( + COUNT ( * ) ) / + + 90 + - 78
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4076
SELECT ALL + CASE + 8 WHEN + + 19 THEN NULL WHEN 93 * - 40 * - 94 + - + 9 * + MIN( + 25 ) + + + 38 + 24 + - + ( 86 ) * 34 THEN + - 29 ELSE NULL END * 99 - - - 73 + + + 83
----
NULL

skipif mysql # not compatible
query I rowsort label-4076
SELECT ALL + CASE + 8 WHEN + + 19 THEN NULL WHEN 93 * - 40 * - 94 + - + 9 * + MIN ( + 25 ) + + + 38 + 24 + - + ( 86 ) * 34 THEN + - 29 ELSE NULL END * 99 - - - 73 + + + 83
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4077
SELECT CAST( - ( 46 ) AS SIGNED ) * + + 30
----
-1380

skipif mysql # not compatible
query I rowsort label-4077
SELECT CAST ( - ( 46 ) AS INTEGER ) * + + 30
----
-1380

query I rowsort
SELECT + 54 + + 17 + - 83
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4079
SELECT DISTINCT - CAST( NULL AS SIGNED ) * 75 * - + 32 * - + 26 - 42 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4079
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * 75 * - + 32 * - + 26 - 42 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4080
SELECT + MAX( 78 )
----
78

skipif mysql # not compatible
query I rowsort label-4080
SELECT + MAX ( 78 )
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4081
SELECT + MIN( DISTINCT 97 ) AS col0
----
97

skipif mysql # not compatible
query I rowsort label-4081
SELECT + MIN ( DISTINCT 97 ) AS col0
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-4082
SELECT ALL 22 * - 65 * + - 21 AS col2, 42 * - COUNT( * ) * - + COUNT( * )
----
30030
42

skipif mysql # not compatible
query II rowsort label-4082
SELECT ALL 22 * - 65 * + - 21 AS col2, 42 * - COUNT ( * ) * - + COUNT ( * )
----
30030
42

query I rowsort
SELECT + 27 * - 23 AS col0
----
-621

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4084
SELECT ALL COUNT( * ) DIV - 91
----
0

skipif mysql # not compatible
query I rowsort label-4084
SELECT ALL COUNT ( * ) / - 91
----
0

query II rowsort
SELECT DISTINCT + 89 AS col1, 25 AS col2
----
89
25

query I rowsort
SELECT ALL + 55 * - - 19
----
1045

query I rowsort
SELECT + 68 * - 70 AS col1
----
-4760

query I rowsort
SELECT - 91 * - - 14 * COALESCE ( - 12, 38 * + 0 )
----
15288

onlyif mysql # aggregate syntax: 
query II rowsort label-4089
SELECT COUNT( * ) AS col0, 5
----
1
5

skipif mysql # not compatible
query II rowsort label-4089
SELECT COUNT ( * ) AS col0, 5
----
1
5

query I rowsort
SELECT ALL COALESCE ( - - 88, - 26 ) * + 55 + 78 * + + 1 * - - 36 * + 71 * 94 + - 14
----
18745418

query I rowsort
SELECT + COALESCE ( + 33, + 98 + - + 79 + + + 57 + - - 39 * 74 * 9 ) AS col1
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-4092
SELECT + 55 DIV + 82
----
0

skipif mysql # not compatible
query I rowsort label-4092
SELECT + 55 / + 82
----
0

query I rowsort
SELECT DISTINCT 61 + 46 * 30
----
1441

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4094
SELECT ALL 20 + + COUNT( * ) * - - COALESCE ( MAX( ALL + 71 ), - 92 DIV - 47 * 47 * + 80 ) * - 47 AS col0, - COUNT( * ) * + 64 + - + 10 * + CAST( NULL AS SIGNED )
----
-3317
NULL

skipif mysql # not compatible
query II rowsort label-4094
SELECT ALL 20 + + COUNT ( * ) * - - COALESCE ( MAX ( ALL + 71 ), - 92 / - 47 * 47 * + 80 ) * - 47 AS col0, - COUNT ( * ) * + 64 + - + 10 * + CAST ( NULL AS INTEGER )
----
-3317
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4095
SELECT DISTINCT + 47 + + 57 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4095
SELECT DISTINCT + 47 + + 57 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4096
SELECT ALL + 50 DIV COALESCE ( + 4, 68 * 93 ) AS col1
----
12

skipif mysql # not compatible
query I rowsort label-4096
SELECT ALL + 50 / COALESCE ( + 4, 68 * 93 ) AS col1
----
12

query I rowsort
SELECT + - 86 + - - CASE + 74 WHEN - ( 10 ) THEN - - 78 END + 91
----
NULL

query I rowsort
SELECT ALL - - 52 + - - 20 AS col1
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-4099
SELECT DISTINCT COALESCE ( + 14, - + 34 * + 12, + + SUM( DISTINCT + - 59 ) * - CASE - 16 WHEN - + 4 + 38 THEN NULL ELSE 64 - COUNT( * ) END ) AS col1
----
14

skipif mysql # not compatible
query I rowsort label-4099
SELECT DISTINCT COALESCE ( + 14, - + 34 * + 12, + + SUM ( DISTINCT + - 59 ) * - CASE - 16 WHEN - + 4 + 38 THEN NULL ELSE 64 - COUNT ( * ) END ) AS col1
----
14

query I rowsort
SELECT DISTINCT + 98 + - 43 + + - 73
----
-18

query II rowsort
SELECT - 25 AS col1, 71
----
-25
71

query I rowsort
SELECT ALL ( - 99 )
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4103
SELECT ALL - - COUNT( + - ( 59 ) ) - SUM( + 33 ) * + 60 AS col1
----
-1979

skipif mysql # not compatible
query I rowsort label-4103
SELECT ALL - - COUNT ( + - ( 59 ) ) - SUM ( + 33 ) * + 60 AS col1
----
-1979

query I rowsort
SELECT ALL - 85 - + 50 + - 99 - - - 5 AS col1
----
-239

onlyif mysql # aggregate syntax: 
query I rowsort label-4105
SELECT ALL NULLIF ( 43, + ( + MIN( ALL - COALESCE ( - 63, 95 + - 25 ) ) ) * - 60 )
----
43

skipif mysql # not compatible
query I rowsort label-4105
SELECT ALL NULLIF ( 43, + ( + MIN ( ALL - COALESCE ( - 63, 95 + - 25 ) ) ) * - 60 )
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4106
SELECT - + 4 * + + CASE - 56 WHEN 3 + + 66 + - - 88 + + + SUM( DISTINCT + 34 ) THEN NULL WHEN - CASE - - 54 WHEN 46 THEN - - 37 ELSE - + 41 / - 65 END THEN + 2 + 18 ELSE - ( ( + 2 ) ) * - 43 - - CAST( + MIN( DISTINCT - ( 39 ) ) AS SIGNED ) END
----
-188

skipif mysql # not compatible
query I rowsort label-4106
SELECT - + 4 * + + CASE - 56 WHEN 3 + + 66 + - - 88 + + + SUM ( DISTINCT + 34 ) THEN NULL WHEN - CASE - - 54 WHEN 46 THEN - - 37 ELSE - + 41 / - 65 END THEN + 2 + 18 ELSE - ( ( + 2 ) ) * - 43 - - CAST ( + MIN ( DISTINCT - ( 39 ) ) AS INTEGER ) END
----
-188

query II rowsort
SELECT - + 11 col1, 90
----
-11
90

query I rowsort
SELECT NULLIF ( + - 35, - 76 - + ( + + 3 ) )
----
-35

query I rowsort
SELECT - - NULLIF ( 68, - 33 * + - 42 )
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4110
SELECT + 52 * + 82 + + COUNT( * ) AS col0
----
4265

skipif mysql # not compatible
query I rowsort label-4110
SELECT + 52 * + 82 + + COUNT ( * ) AS col0
----
4265

query II rowsort
SELECT ALL + 76 col1, 46
----
76
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4112
SELECT + MIN( + + 63 )
----
63

skipif mysql # not compatible
query I rowsort label-4112
SELECT + MIN ( + + 63 )
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4113
SELECT ALL + ( ( - COUNT( * ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4113
SELECT ALL + ( ( - COUNT ( * ) ) )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4114
SELECT 86 DIV + 42 - 17 AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-4114
SELECT 86 / + 42 - 17 AS col2
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4115
SELECT + CAST( + - 11 AS SIGNED ) - + COUNT( 72 ) AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-4115
SELECT + CAST ( + - 11 AS INTEGER ) - + COUNT ( 72 ) AS col1
----
-12

query II rowsort
SELECT ( - + 29 ) col2, - 22 AS col0
----
-29
-22

query I rowsort
SELECT + ( - 80 ) col2
----
-80

query I rowsort
SELECT + 62 + 58 AS col0
----
120

query II rowsort
SELECT ALL + 37 AS col1, - CASE - 7 WHEN + ( + 81 ) + + 5 + - 60 * 88 - 29 THEN - - 54 * + 60 + - 76 * 5 END AS col0
----
37
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4120
SELECT ALL COUNT( * ) * + 33 + + 61 + CAST( ( + + 23 ) AS SIGNED ) + + + 66 + - 20 * - 63 * + + 11
----
14043

skipif mysql # not compatible
query I rowsort label-4120
SELECT ALL COUNT ( * ) * + 33 + + 61 + CAST ( ( + + 23 ) AS INTEGER ) + + + 66 + - 20 * - 63 * + + 11
----
14043

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4121
SELECT ALL 64 * 26 * + CAST( NULL AS SIGNED ) * - 41 * - 64 * + - 58 + NULLIF ( - 48, - 17 * COUNT( * ) / 51 * - CASE 69 WHEN - - 97 - + 47 * 31 * + + ( - 87 ) THEN 17 WHEN 1 THEN NULL ELSE NULL END + ( 84 ) ) * + SUM( - 49 + 99 * + 34 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4121
SELECT ALL 64 * 26 * + CAST ( NULL AS INTEGER ) * - 41 * - 64 * + - 58 + NULLIF ( - 48, - 17 * COUNT ( * ) / 51 * - CASE 69 WHEN - - 97 - + 47 * 31 * + + ( - 87 ) THEN 17 WHEN 1 THEN NULL ELSE NULL END + ( 84 ) ) * + SUM ( - 49 + 99 * + 34 )
----
NULL

query I rowsort
SELECT ( - + 35 )
----
-35

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4123
SELECT 97 * - 28 + + + CAST( NULL AS DECIMAL ) * - 85
----
NULL

skipif mysql # not compatible
query I rowsort label-4123
SELECT 97 * - 28 + + + CAST ( NULL AS REAL ) * - 85
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4124
SELECT ALL 70 * - - COALESCE ( - 74, + 31 * - 97 ) + - + 0 + + - 84 * - CASE - 16 WHEN - 28 + COUNT( * ) THEN + COUNT( * ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4124
SELECT ALL 70 * - - COALESCE ( - 74, + 31 * - 97 ) + - + 0 + + - 84 * - CASE - 16 WHEN - 28 + COUNT ( * ) THEN + COUNT ( * ) ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT + ( - + 23 )
----
-23

query I rowsort
SELECT + ( - 10 ) + + - 22 + 7 * + + 22
----
122

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4127
SELECT + CAST( + - MAX( DISTINCT + 94 ) AS SIGNED ) AS col2
----
-94

skipif mysql # not compatible
query I rowsort label-4127
SELECT + CAST ( + - MAX ( DISTINCT + 94 ) AS INTEGER ) AS col2
----
-94

query I rowsort
SELECT ALL 72 * 95
----
6840

query I rowsort
SELECT + 78 * + 4 AS col0
----
312

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4130
SELECT + 84 + + + CAST( - 85 AS SIGNED ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4130
SELECT + 84 + + + CAST ( - 85 AS INTEGER ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4131
SELECT + COUNT( - 84 )
----
1

skipif mysql # not compatible
query I rowsort label-4131
SELECT + COUNT ( - 84 )
----
1

query I rowsort
SELECT DISTINCT - + 29 * + 28 + - - 80
----
-732

onlyif mysql # aggregate syntax: 
query I rowsort label-4133
SELECT DISTINCT + 71 * - COUNT( * ) + - 0 AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-4133
SELECT DISTINCT + 71 * - COUNT ( * ) + - 0 AS col0
----
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4134
SELECT + CAST( NULL AS SIGNED ) * 59
----
NULL

skipif mysql # not compatible
query I rowsort label-4134
SELECT + CAST ( NULL AS INTEGER ) * 59
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4135
SELECT ALL SUM( + CAST( - + 97 AS SIGNED ) ) AS col2
----
-97

skipif mysql # not compatible
query I rowsort label-4135
SELECT ALL SUM ( + CAST ( - + 97 AS INTEGER ) ) AS col2
----
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-4136
SELECT DISTINCT + COUNT( * ) AS col1, - 51 * - COUNT( * ) AS col0
----
1
51

skipif mysql # not compatible
query II rowsort label-4136
SELECT DISTINCT + COUNT ( * ) AS col1, - 51 * - COUNT ( * ) AS col0
----
1
51

onlyif mysql # aggregate syntax: 
query II rowsort label-4137
SELECT - 98 AS col1, MAX( - 60 )
----
-98
-60

skipif mysql # not compatible
query II rowsort label-4137
SELECT - 98 AS col1, MAX ( - 60 )
----
-98
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-4138
SELECT ALL - COUNT( * ) * - COUNT( * ) - 55
----
-54

skipif mysql # not compatible
query I rowsort label-4138
SELECT ALL - COUNT ( * ) * - COUNT ( * ) - 55
----
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-4139
SELECT ALL + 89 DIV 19 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-4139
SELECT ALL + 89 / 19 AS col2
----
4

query I rowsort
SELECT + - 83 * 38
----
-3154

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4141
SELECT ALL - - 37 - - + 78 + COUNT( * ) - - COUNT( * ) + CAST( NULL AS SIGNED ) * - ( + 84 ), + 87 AS col2
----
NULL
87

skipif mysql # not compatible
query II rowsort label-4141
SELECT ALL - - 37 - - + 78 + COUNT ( * ) - - COUNT ( * ) + CAST ( NULL AS INTEGER ) * - ( + 84 ), + 87 AS col2
----
NULL
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4142
SELECT ALL - + NULLIF ( + CASE - 89 WHEN - + 54 * 90 THEN - - 45 WHEN - 28 THEN NULL ELSE NULL END, + + ( + - 92 ) + - + 69 ) - + MIN( ALL + - 39 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4142
SELECT ALL - + NULLIF ( + CASE - 89 WHEN - + 54 * 90 THEN - - 45 WHEN - 28 THEN NULL ELSE NULL END, + + ( + - 92 ) + - + 69 ) - + MIN ( ALL + - 39 )
----
NULL

query I rowsort
SELECT + 62 + + 86 + - 98
----
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4144
SELECT - SUM( + 56 ) DIV + 10
----
-5

skipif mysql # not compatible
query I rowsort label-4144
SELECT - SUM ( + 56 ) / + 10
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-4145
SELECT + 37 DIV - 22
----
-1

skipif mysql # not compatible
query I rowsort label-4145
SELECT + 37 / - 22
----
-1

query II rowsort
SELECT ALL 77 AS col0, 65
----
77
65

query I rowsort
SELECT + 76 + + 73 + + 78 AS col2
----
227

query I rowsort
SELECT ALL - 51 * + 81 + + 14 AS col1
----
-4117

onlyif mysql # aggregate syntax: 
query I rowsort label-4149
SELECT ALL - MIN( - 75 ) * 47 - + 17
----
3508

skipif mysql # not compatible
query I rowsort label-4149
SELECT ALL - MIN ( - 75 ) * 47 - + 17
----
3508

query I rowsort
SELECT 66 + 87
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-4151
SELECT 40 * - MAX( DISTINCT + 77 ) AS col1
----
-3080

skipif mysql # not compatible
query I rowsort label-4151
SELECT 40 * - MAX ( DISTINCT + 77 ) AS col1
----
-3080

onlyif mysql # DIV for integer division: 
query I rowsort label-4152
SELECT 76 + - - ( + 33 ) DIV + 39 col0
----
76

skipif mysql # not compatible
query I rowsort label-4152
SELECT 76 + - - ( + 33 ) / + 39 col0
----
76

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4153
SELECT ALL + 91 + - - 4 AS col2, + MAX( ALL - - ( + CAST( NULL AS DECIMAL ) ) ) / + 43
----
95
NULL

skipif mysql # not compatible
query II rowsort label-4153
SELECT ALL + 91 + - - 4 AS col2, + MAX ( ALL - - ( + CAST ( NULL AS REAL ) ) ) / + 43
----
95
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4154
SELECT DISTINCT + 82 + 77 * - COUNT( * ) * + - 83
----
6473

skipif mysql # not compatible
query I rowsort label-4154
SELECT DISTINCT + 82 + 77 * - COUNT ( * ) * + - 83
----
6473

query II rowsort
SELECT DISTINCT + 19 * - - 85 AS col2, + 23
----
1615
23

onlyif mysql # aggregate syntax: 
query II rowsort label-4156
SELECT ALL - 65 + - 27 + - 96 + - + 60 + + COUNT( * ) AS col0, - COUNT( * ) * + 22 AS col0
----
-247
-22

skipif mysql # not compatible
query II rowsort label-4156
SELECT ALL - 65 + - 27 + - 96 + - + 60 + + COUNT ( * ) AS col0, - COUNT ( * ) * + 22 AS col0
----
-247
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-4157
SELECT DISTINCT + COUNT( * ) + - + COALESCE ( - - MIN( - ( - 96 ) ), - 31 )
----
-95

skipif mysql # not compatible
query I rowsort label-4157
SELECT DISTINCT + COUNT ( * ) + - + COALESCE ( - - MIN ( - ( - 96 ) ), - 31 )
----
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-4158
SELECT DISTINCT + 37 DIV + - 88 col0
----
0

skipif mysql # not compatible
query I rowsort label-4158
SELECT DISTINCT + 37 / + - 88 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4159
SELECT ALL COUNT( * ) + - ( + + 12 )
----
-11

skipif mysql # not compatible
query I rowsort label-4159
SELECT ALL COUNT ( * ) + - ( + + 12 )
----
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4160
SELECT DISTINCT + 20 * - COUNT( * ) DIV - ( + - 59 )
----
0

skipif mysql # not compatible
query I rowsort label-4160
SELECT DISTINCT + 20 * - COUNT ( * ) / - ( + - 59 )
----
0

onlyif mysql # aggregate syntax: 
query III rowsort label-4161
SELECT ALL + COUNT( * ) * - 19 AS col0, 64, + - ( 14 ) * 0 col1
----
-19
64
0

skipif mysql # not compatible
query III rowsort label-4161
SELECT ALL + COUNT ( * ) * - 19 AS col0, 64, + - ( 14 ) * 0 col1
----
-19
64
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4162
SELECT 75 DIV + COUNT( * ) AS col2
----
75

skipif mysql # not compatible
query I rowsort label-4162
SELECT 75 / + COUNT ( * ) AS col2
----
75

query I rowsort
SELECT - 77 * + - 64 - 42 + + + ( - 4 )
----
4882

query I rowsort
SELECT + ( - - 40 ) * + 41 + - 32 col1
----
1608

onlyif mysql # DIV for integer division: 
query I rowsort label-4165
SELECT ALL + 67 DIV - 8
----
-8

skipif mysql # not compatible
query I rowsort label-4165
SELECT ALL + 67 / - 8
----
-8

query II rowsort
SELECT ALL - ( - 14 ) AS col2, + 11 + 73 AS col0
----
14
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4167
SELECT + 35 * 71 * - - CAST( NULL AS SIGNED ) / 47 + + 42 + + 57 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4167
SELECT + 35 * 71 * - - CAST ( NULL AS INTEGER ) / 47 + + 42 + + 57 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4168
SELECT ALL - 98 - - 3 DIV - 95
----
-98

skipif mysql # not compatible
query I rowsort label-4168
SELECT ALL - 98 - - 3 / - 95
----
-98

onlyif mysql # DIV for integer division: 
query II rowsort label-4169
SELECT DISTINCT + 40 DIV 77 AS col2, ( + 85 ) * - + 78
----
0
-6630

skipif mysql # not compatible
query II rowsort label-4169
SELECT DISTINCT + 40 / 77 AS col2, ( + 85 ) * - + 78
----
0
-6630

query I rowsort
SELECT DISTINCT - - 83 AS col0
----
83

query I rowsort
SELECT ALL 88 * 39 col2
----
3432

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4172
SELECT - ( + COUNT( * ) ) * + 54 AS col0, - 11 DIV - - COALESCE ( + 13, - + CASE - 60 WHEN + COUNT( * ) DIV + - 2 THEN - 75 + - MIN( + + 18 ) DIV + - 8 ELSE 39 * + COUNT( * ) + 65 - 71 END ) AS col0
----
-54
0

skipif mysql # not compatible
query II rowsort label-4172
SELECT - ( + COUNT ( * ) ) * + 54 AS col0, - 11 / - - COALESCE ( + 13, - + CASE - 60 WHEN + COUNT ( * ) / + - 2 THEN - 75 + - MIN ( + + 18 ) / + - 8 ELSE 39 * + COUNT ( * ) + 65 - 71 END ) AS col0
----
-54
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4173
SELECT ALL 27 DIV 87 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4173
SELECT ALL 27 / 87 AS col0
----
0

query I rowsort
SELECT 15 * - + 98 * 53 + - 13 AS col2
----
-77923

onlyif mysql # DIV for integer division: 
query I rowsort label-4175
SELECT COALESCE ( - 90, 83 DIV 90 * - 26 ) + - - 50
----
-40

skipif mysql # not compatible
query I rowsort label-4175
SELECT COALESCE ( - 90, 83 / 90 * - 26 ) + - - 50
----
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-4176
SELECT DISTINCT + COALESCE ( - CASE 1 WHEN + 80 THEN - COUNT( * ) + + - 43 WHEN + 7 + - 60 THEN 61 ELSE 41 END, - 10 ) * + + 16, 65 * - ( - - 98 ) AS col1
----
-656
-6370

skipif mysql # not compatible
query II rowsort label-4176
SELECT DISTINCT + COALESCE ( - CASE 1 WHEN + 80 THEN - COUNT ( * ) + + - 43 WHEN + 7 + - 60 THEN 61 ELSE 41 END, - 10 ) * + + 16, 65 * - ( - - 98 ) AS col1
----
-656
-6370

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4177
SELECT ALL - COALESCE ( - 70, - 44 + - + 73 + 62 * + - COUNT( * ) DIV + - 2 * - CASE + ( + - 47 ) WHEN + 55 THEN COALESCE ( - + 82, + + 18 ) - 35 + COUNT( * ) ELSE NULL END )
----
70

skipif mysql # not compatible
query I rowsort label-4177
SELECT ALL - COALESCE ( - 70, - 44 + - + 73 + 62 * + - COUNT ( * ) / + - 2 * - CASE + ( + - 47 ) WHEN + 55 THEN COALESCE ( - + 82, + + 18 ) - 35 + COUNT ( * ) ELSE NULL END )
----
70

query II rowsort
SELECT + 7 * + - 27 AS col0, + 14
----
-189
14

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4179
SELECT ALL + CAST( - + 9 AS SIGNED ) AS col0, 9 + + 3
----
-9
12

skipif mysql # not compatible
query II rowsort label-4179
SELECT ALL + CAST ( - + 9 AS INTEGER ) AS col0, 9 + + 3
----
-9
12

query II rowsort
SELECT ALL + 22 * + 88, 87 AS col1
----
1936
87

query I rowsort
SELECT DISTINCT - NULLIF ( - + 96, - 74 + - 7 / - 44 + 22 ) AS col2
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4182
SELECT DISTINCT CAST( - - 49 AS SIGNED ) + + - 74
----
-25

skipif mysql # not compatible
query I rowsort label-4182
SELECT DISTINCT CAST ( - - 49 AS INTEGER ) + + - 74
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-4183
SELECT 76 * + ( + COUNT( * ) ) AS col2
----
76

skipif mysql # not compatible
query I rowsort label-4183
SELECT 76 * + ( + COUNT ( * ) ) AS col2
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4184
SELECT ALL 4 + COUNT( * ) - + 34 AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-4184
SELECT ALL 4 + COUNT ( * ) - + 34 AS col0
----
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-4185
SELECT ALL 36, 38 * + 26 - + COUNT( ALL + 40 ) - SUM( DISTINCT - + 18 ) AS col0
----
36
1005

skipif mysql # not compatible
query II rowsort label-4185
SELECT ALL 36, 38 * + 26 - + COUNT ( ALL + 40 ) - SUM ( DISTINCT - + 18 ) AS col0
----
36
1005

query II rowsort
SELECT - 38 col2, 75 * - 60 AS col2
----
-38
-4500

onlyif mysql # aggregate syntax: 
query I rowsort label-4187
SELECT COUNT( - 33 ) - - 93 * - - 75 AS col1
----
6976

skipif mysql # not compatible
query I rowsort label-4187
SELECT COUNT ( - 33 ) - - 93 * - - 75 AS col1
----
6976

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4188
SELECT DISTINCT 42, 66 * + 96 * - ( NULLIF ( - + NULLIF ( - + 94, + + CAST( + 4 AS DECIMAL ) * - + COUNT( * ) * + 3 * - 63 ), - 66 ) ) AS col1
----
42
-595584

skipif mysql # not compatible
query II rowsort label-4188
SELECT DISTINCT 42, 66 * + 96 * - ( NULLIF ( - + NULLIF ( - + 94, + + CAST ( + 4 AS REAL ) * - + COUNT ( * ) * + 3 * - 63 ), - 66 ) ) AS col1
----
42
-595584

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4189
SELECT ALL + 96 + - ( + 42 ) + - COUNT( * ) * 78 + + - 26 + + CASE - 32 WHEN - 90 THEN + 87 ELSE NULL END * - 8 + 46 + - - COALESCE ( - 49, + COUNT( * ) + + CAST( NULL AS SIGNED ) + 36 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4189
SELECT ALL + 96 + - ( + 42 ) + - COUNT ( * ) * 78 + + - 26 + + CASE - 32 WHEN - 90 THEN + 87 ELSE NULL END * - 8 + 46 + - - COALESCE ( - 49, + COUNT ( * ) + + CAST ( NULL AS INTEGER ) + 36 ) col1
----
NULL

query I rowsort
SELECT 1 * - + 79 col2
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-4191
SELECT DISTINCT + SUM( - + NULLIF ( 98, + - 99 ) ) + - + 44
----
-142

skipif mysql # not compatible
query I rowsort label-4191
SELECT DISTINCT + SUM ( - + NULLIF ( 98, + - 99 ) ) + - + 44
----
-142

query I rowsort
SELECT ALL 3 * 71 AS col1
----
213

onlyif mysql # aggregate syntax: 
query I rowsort label-4193
SELECT DISTINCT 62 * + COUNT( * ) * ( MIN( ALL - + 69 ) ) AS col0
----
-4278

skipif mysql # not compatible
query I rowsort label-4193
SELECT DISTINCT 62 * + COUNT ( * ) * ( MIN ( ALL - + 69 ) ) AS col0
----
-4278

onlyif mysql # aggregate syntax: 
query I rowsort label-4194
SELECT 91 * 21 * + + COUNT( * ) AS col0
----
1911

skipif mysql # not compatible
query I rowsort label-4194
SELECT 91 * 21 * + + COUNT ( * ) AS col0
----
1911

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4195
SELECT DISTINCT CASE - - 13 WHEN + 43 / - 96 THEN COALESCE ( - + MIN( ALL CAST( 43 AS SIGNED ) ), - CASE - MIN( - - ( + - 44 ) ) WHEN + + COUNT( * ) THEN NULL WHEN - ( + - SUM( ALL - 13 ) ) THEN + ( - 81 ) * + CAST( NULL AS DECIMAL ) * - 46 * + 95 * + 69 / + - 87 ELSE NULL END / 38 ) + - 45 END * 58 + - ( - 11 + 20 ) * 80
----
NULL

skipif mysql # not compatible
query I rowsort label-4195
SELECT DISTINCT CASE - - 13 WHEN + 43 / - 96 THEN COALESCE ( - + MIN ( ALL CAST ( 43 AS INTEGER ) ), - CASE - MIN ( - - ( + - 44 ) ) WHEN + + COUNT ( * ) THEN NULL WHEN - ( + - SUM ( ALL - 13 ) ) THEN + ( - 81 ) * + CAST ( NULL AS REAL ) * - 46 * + 95 * + 69 / + - 87 ELSE NULL END / 38 ) + - 45 END * 58 + - ( - 11 + 20 ) * 80
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4196
SELECT ( - - 93 ) * - + CAST( - 68 AS SIGNED ) + + + 62 + - 32 * + 23 * + - 41 * + ( - - 87 ) AS col0
----
2631698

skipif mysql # not compatible
query I rowsort label-4196
SELECT ( - - 93 ) * - + CAST ( - 68 AS INTEGER ) + + + 62 + - 32 * + 23 * + - 41 * + ( - - 87 ) AS col0
----
2631698

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4197
SELECT 10 - 98 DIV + - 77 * COUNT( * )
----
11

skipif mysql # not compatible
query I rowsort label-4197
SELECT 10 - 98 / + - 77 * COUNT ( * )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4198
SELECT DISTINCT - NULLIF ( + COUNT( * ), + - AVG ( DISTINCT 81 ) * - 65 + ( 60 ) - 37 * - ( + 68 ) * - 1 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4198
SELECT DISTINCT - NULLIF ( + COUNT ( * ), + - AVG ( DISTINCT 81 ) * - 65 + ( 60 ) - 37 * - ( + 68 ) * - 1 ) AS col1
----
-1

query II rowsort
SELECT + 27, 98 * + 16 + + - 13 AS col2
----
27
1555

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4200
SELECT ALL + 38 * + + MIN( CAST( + 99 AS SIGNED ) )
----
3762

skipif mysql # not compatible
query I rowsort label-4200
SELECT ALL + 38 * + + MIN ( CAST ( + 99 AS INTEGER ) )
----
3762

query II rowsort
SELECT ALL + - 41 - - - 25 * + - 36 AS col0, + 4
----
859
4

query I rowsort
SELECT ALL + - 33 * + - 31 * - ( 8 )
----
-8184

onlyif mysql # aggregate syntax: 
query I rowsort label-4203
SELECT MAX( - + 92 ) * 88 + - 38 + - 13
----
-8147

skipif mysql # not compatible
query I rowsort label-4203
SELECT MAX ( - + 92 ) * 88 + - 38 + - 13
----
-8147

onlyif mysql # aggregate syntax: 
query I rowsort label-4204
SELECT DISTINCT + COUNT( * ) * 58 * - 21 + - + 23 + 92 * COUNT( * ) * - 27
----
-3725

skipif mysql # not compatible
query I rowsort label-4204
SELECT DISTINCT + COUNT ( * ) * 58 * - 21 + - + 23 + 92 * COUNT ( * ) * - 27
----
-3725

onlyif mysql # aggregate syntax: 
query I rowsort label-4205
SELECT ALL MIN( 30 ) - + - 33
----
63

skipif mysql # not compatible
query I rowsort label-4205
SELECT ALL MIN ( 30 ) - + - 33
----
63

query I rowsort
SELECT ALL + + 66 * 75 + + + 91
----
5041

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4207
SELECT 71 * + ( - 84 ) AS col1, - CASE - 79 WHEN COALESCE ( + 98, + - 89 * - CAST( NULL AS SIGNED ) - - 28 * - 34 ) THEN + MIN( ALL + 21 ) ELSE NULL END AS col1
----
-5964
NULL

skipif mysql # not compatible
query II rowsort label-4207
SELECT 71 * + ( - 84 ) AS col1, - CASE - 79 WHEN COALESCE ( + 98, + - 89 * - CAST ( NULL AS INTEGER ) - - 28 * - 34 ) THEN + MIN ( ALL + 21 ) ELSE NULL END AS col1
----
-5964
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4208
SELECT DISTINCT + 45 * + 17 * - - 98 DIV - COUNT( * ) AS col1
----
-74970

skipif mysql # not compatible
query I rowsort label-4208
SELECT DISTINCT + 45 * + 17 * - - 98 / - COUNT ( * ) AS col1
----
-74970

onlyif mysql # aggregate syntax: 
query II rowsort label-4209
SELECT ALL - + COUNT( * ) AS col1, 24 + 48
----
-1
72

skipif mysql # not compatible
query II rowsort label-4209
SELECT ALL - + COUNT ( * ) AS col1, 24 + 48
----
-1
72

query I rowsort
SELECT + + ( - 9 )
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4211
SELECT + + ( 98 ) + - + 30 + 17 + + - NULLIF ( 24, - 39 ) DIV ( COUNT( * ) ) * - - 72 + 30
----
-1613

skipif mysql # not compatible
query I rowsort label-4211
SELECT + + ( 98 ) + - + 30 + 17 + + - NULLIF ( 24, - 39 ) / ( COUNT ( * ) ) * - - 72 + 30
----
-1613

query I rowsort
SELECT DISTINCT + - 57 AS col2
----
-57

query II rowsort
SELECT 97 AS col0, + 2
----
97
2

query I rowsort
SELECT - 44 + 57 AS col0
----
13

query I rowsort
SELECT ALL 88 * 8 + 71 + - ( + 46 )
----
729

onlyif mysql # aggregate syntax: 
query I rowsort label-4216
SELECT + CASE - ( 39 ) WHEN 24 + 62 THEN NULLIF ( COUNT( * ), - 0 ) END / + + ( + + COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4216
SELECT + CASE - ( 39 ) WHEN 24 + 62 THEN NULLIF ( COUNT ( * ), - 0 ) END / + + ( + + COUNT ( * ) ) AS col0
----
NULL

query II rowsort
SELECT ALL - - 49 + 56 + - 2 AS col2, + 63 - 80 col2
----
103
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-4218
SELECT ALL + SUM( 23 ) + + 43 + 53 AS col1
----
119

skipif mysql # not compatible
query I rowsort label-4218
SELECT ALL + SUM ( 23 ) + + 43 + 53 AS col1
----
119

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4219
SELECT ALL - 54 + - 7 + + 32 / - 91 * AVG ( + NULLIF ( - 84, 56 * 29 ) ) * 28 * - 92 - - - ( + 78 ) + CASE + 69 WHEN + COUNT( * ) THEN + 94 WHEN + 35 * + COALESCE ( ( - + 14 ), NULLIF ( - COUNT( * ), - ( - 42 ) * 32 ), - ( CAST( - ( 80 ) AS SIGNED ) ) * + 6 ) - - 92 + COALESCE ( + 3, COUNT( * ) ) THEN 96 END + + 32 * AVG ( DISTINCT + 11 * - 74 ) * 42 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4219
SELECT ALL - 54 + - 7 + + 32 / - 91 * AVG ( + NULLIF ( - 84, 56 * 29 ) ) * 28 * - 92 - - - ( + 78 ) + CASE + 69 WHEN + COUNT ( * ) THEN + 94 WHEN + 35 * + COALESCE ( ( - + 14 ), NULLIF ( - COUNT ( * ), - ( - 42 ) * 32 ), - ( CAST ( - ( 80 ) AS INTEGER ) ) * + 6 ) - - 92 + COALESCE ( + 3, COUNT ( * ) ) THEN 96 END + + 32 * AVG ( DISTINCT + 11 * - 74 ) * 42 AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 43 + - - 33 col1
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-4221
SELECT DISTINCT 4 + + ( SUM( ALL + + 95 ) ) + - + 16 AS col2
----
83

skipif mysql # not compatible
query I rowsort label-4221
SELECT DISTINCT 4 + + ( SUM ( ALL + + 95 ) ) + - + 16 AS col2
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4222
SELECT ALL 63 * 24 * + SUM( - 41 ) col0
----
-61992

skipif mysql # not compatible
query I rowsort label-4222
SELECT ALL 63 * 24 * + SUM ( - 41 ) col0
----
-61992

onlyif mysql # aggregate syntax: 
query I rowsort label-4223
SELECT DISTINCT 98 * - COUNT( * )
----
-98

skipif mysql # not compatible
query I rowsort label-4223
SELECT DISTINCT 98 * - COUNT ( * )
----
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4224
SELECT + 63 + - CAST( NULL AS SIGNED ) + + 74 + MAX( + 47 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4224
SELECT + 63 + - CAST ( NULL AS INTEGER ) + + 74 + MAX ( + 47 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4225
SELECT ALL + 37 * + CASE + + 19 WHEN - COUNT( * ) THEN 30 DIV + ( CASE + 89 WHEN COUNT( * ) THEN + 36 + + ( - - 44 ) - + 53 * + - 39 DIV 0 END ) + MAX( DISTINCT + 53 ) WHEN + 0 + MIN( 2 ) + + 85 * - 35 DIV MAX( DISTINCT - - 50 ) THEN NULL ELSE + 81 END
----
2997

skipif mysql # not compatible
query I rowsort label-4225
SELECT ALL + 37 * + CASE + + 19 WHEN - COUNT ( * ) THEN 30 / + ( CASE + 89 WHEN COUNT ( * ) THEN + 36 + + ( - - 44 ) - + 53 * + - 39 / 0 END ) + MAX ( DISTINCT + 53 ) WHEN + 0 + MIN ( 2 ) + + 85 * - 35 / MAX ( DISTINCT - - 50 ) THEN NULL ELSE + 81 END
----
2997

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4226
SELECT ALL - 65 - + 8 * + 73 * + COALESCE ( - ( + COUNT( * ) ), - COUNT( * ) DIV - 80 * + 46 + - - 87 + + 9 * - + 40 * COALESCE ( - 34, + 0, 47 ) DIV - 10 - 89 - - 49 ) AS col0
----
519

skipif mysql # not compatible
query I rowsort label-4226
SELECT ALL - 65 - + 8 * + 73 * + COALESCE ( - ( + COUNT ( * ) ), - COUNT ( * ) / - 80 * + 46 + - - 87 + + 9 * - + 40 * COALESCE ( - 34, + 0, 47 ) / - 10 - 89 - - 49 ) AS col0
----
519

query I rowsort
SELECT + 9 + + 49 AS col1
----
58

query I rowsort
SELECT - ( + 0 ) AS col0
----
0

query I rowsort
SELECT ALL 91 - - - 27 - + ( 13 )
----
51

query I rowsort
SELECT - 79 * - - 36 AS col1
----
-2844

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4231
SELECT DISTINCT 84 * - - CAST( 56 AS SIGNED ) AS col2
----
4704

skipif mysql # not compatible
query I rowsort label-4231
SELECT DISTINCT 84 * - - CAST ( 56 AS INTEGER ) AS col2
----
4704

query I rowsort
SELECT + ( + NULLIF ( - 58, - 15 * 69 / + 3 ) )
----
-58

query I rowsort
SELECT ALL 14 * - 59 * + 65
----
-53690

query I rowsort
SELECT DISTINCT + 40 * - - 85 * + - 38 AS col0
----
-129200

query I rowsort
SELECT ALL + 82 * 94
----
7708

query I rowsort
SELECT - + 71 * + 23 * 92 + + ( - ( + - 44 ) ) - + 76 + + - 47 * + 79
----
-153981

onlyif mysql # DIV for integer division: 
query I rowsort label-4237
SELECT ALL - 1 DIV + 32
----
0

skipif mysql # not compatible
query I rowsort label-4237
SELECT ALL - 1 / + 32
----
0

query I rowsort
SELECT ( - 61 )
----
-61

query I rowsort
SELECT ALL + ( - 80 ) col0
----
-80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4240
SELECT + COUNT( ALL - - 82 ) DIV + 84 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4240
SELECT + COUNT ( ALL - - 82 ) / + 84 AS col2
----
0

query I rowsort
SELECT + 93 * - 32
----
-2976

query I rowsort
SELECT + 97 * + + 0 + + ( + - 80 )
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-4243
SELECT - MIN( ALL + 98 ) AS col0
----
-98

skipif mysql # not compatible
query I rowsort label-4243
SELECT - MIN ( ALL + 98 ) AS col0
----
-98

query I rowsort
SELECT - + 44 * 52
----
-2288

onlyif mysql # aggregate syntax: 
query I rowsort label-4245
SELECT - COUNT( * ) * - COUNT( * ) - + 10
----
-9

skipif mysql # not compatible
query I rowsort label-4245
SELECT - COUNT ( * ) * - COUNT ( * ) - + 10
----
-9

query I rowsort
SELECT ALL + + 72 AS col1
----
72

query I rowsort
SELECT - 47 * 87 AS col2
----
-4089

onlyif mysql # aggregate syntax: 
query I rowsort label-4248
SELECT ALL + 49 * + + 10 + - COUNT( ALL + 11 ) AS col0
----
489

skipif mysql # not compatible
query I rowsort label-4248
SELECT ALL + 49 * + + 10 + - COUNT ( ALL + 11 ) AS col0
----
489

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4249
SELECT ALL + 21 * - 48 + CASE CAST( NULL AS SIGNED ) WHEN + + 73 THEN 59 ELSE 1 - - + 77 END + - 18 * 58 + + 38 AS col2
----
-1936

skipif mysql # not compatible
query I rowsort label-4249
SELECT ALL + 21 * - 48 + CASE CAST ( NULL AS INTEGER ) WHEN + + 73 THEN 59 ELSE 1 - - + 77 END + - 18 * 58 + + 38 AS col2
----
-1936

onlyif mysql # aggregate syntax: 
query I rowsort label-4250
SELECT + MAX( + 83 ) * + - 82 - - + 72 + 75 - - 74 AS col1
----
-6585

skipif mysql # not compatible
query I rowsort label-4250
SELECT + MAX ( + 83 ) * + - 82 - - + 72 + 75 - - 74 AS col1
----
-6585

query I rowsort
SELECT ALL - ( 8 )
----
-8

query I rowsort
SELECT - CASE - - 38 WHEN - - 70 THEN + + 73 END
----
NULL

query II rowsort
SELECT DISTINCT - 78 + - 64 - 44 * - 52 + + 18 AS col1, 94 AS col0
----
2164
94

onlyif mysql # DIV for integer division: 
query I rowsort label-4254
SELECT - 22 + + 48 + - 20 DIV - - 9 AS col2
----
24

skipif mysql # not compatible
query I rowsort label-4254
SELECT - 22 + + 48 + - 20 / - - 9 AS col2
----
24

query I rowsort
SELECT DISTINCT ( - 95 ) AS col0
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-4256
SELECT - COUNT( + + 57 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4256
SELECT - COUNT ( + + 57 ) AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4257
SELECT ALL CAST( - 56 AS SIGNED ) AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-4257
SELECT ALL CAST ( - 56 AS INTEGER ) AS col0
----
-56

query I rowsort
SELECT DISTINCT - 78 - 93 * + 40 AS col2
----
-3798

query I rowsort
SELECT + CASE - 79 WHEN 65 * - 70 THEN NULL ELSE + 45 END * - + 79 * - - 94
----
-334170

onlyif mysql # DIV for integer division: 
query I rowsort label-4260
SELECT + 9 DIV - 82 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4260
SELECT + 9 / - 82 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4261
SELECT DISTINCT - 61 * + NULLIF ( + + 91, COUNT( * ) + + 28 ) * - 25 AS col2
----
138775

skipif mysql # not compatible
query I rowsort label-4261
SELECT DISTINCT - 61 * + NULLIF ( + + 91, COUNT ( * ) + + 28 ) * - 25 AS col2
----
138775

query I rowsort
SELECT DISTINCT 8 * + 56 AS col2
----
448

query I rowsort
SELECT + 32 * + COALESCE ( + 62, + 43 + + 39 * + + ( 61 ) )
----
1984

onlyif mysql # aggregate syntax: 
query I rowsort label-4264
SELECT + 49 - 98 + + CASE + 57 WHEN + 1 THEN + 83 + - 38 * - 21 WHEN - 23 THEN - 9 ELSE NULL END + - - 45 - COUNT( * ) + + 67 / + 20 * + 39 + - + 48 + - 8 - + + 83 - MAX( DISTINCT - 27 ) * - - 17 / - 25 + - 86
----
NULL

skipif mysql # not compatible
query I rowsort label-4264
SELECT + 49 - 98 + + CASE + 57 WHEN + 1 THEN + 83 + - 38 * - 21 WHEN - 23 THEN - 9 ELSE NULL END + - - 45 - COUNT ( * ) + + 67 / + 20 * + 39 + - + 48 + - 8 - + + 83 - MAX ( DISTINCT - 27 ) * - - 17 / - 25 + - 86
----
NULL

query I rowsort
SELECT + 55 * + 96
----
5280

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4266
SELECT ALL + + CAST( + - 58 AS SIGNED )
----
-58

skipif mysql # not compatible
query I rowsort label-4266
SELECT ALL + + CAST ( + - 58 AS INTEGER )
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4267
SELECT + 24 - MIN( DISTINCT + 26 ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-4267
SELECT + 24 - MIN ( DISTINCT + 26 ) AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4268
SELECT ALL + COUNT( DISTINCT - 34 )
----
1

skipif mysql # not compatible
query I rowsort label-4268
SELECT ALL + COUNT ( DISTINCT - 34 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4269
SELECT 56 * + 4 + + - MAX( ALL + ( + 98 ) )
----
126

skipif mysql # not compatible
query I rowsort label-4269
SELECT 56 * + 4 + + - MAX ( ALL + ( + 98 ) )
----
126

onlyif mysql # aggregate syntax: 
query II rowsort label-4270
SELECT - COUNT( * ) - 64 * + - 97, - 7 + 35 col0
----
6207
28

skipif mysql # not compatible
query II rowsort label-4270
SELECT - COUNT ( * ) - 64 * + - 97, - 7 + 35 col0
----
6207
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4271
SELECT + + SUM( ( 93 ) )
----
93

skipif mysql # not compatible
query I rowsort label-4271
SELECT + + SUM ( ( 93 ) )
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4272
SELECT DISTINCT - 28 + - - CAST( + 97 AS SIGNED ) AS col2
----
69

skipif mysql # not compatible
query I rowsort label-4272
SELECT DISTINCT - 28 + - - CAST ( + 97 AS INTEGER ) AS col2
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-4273
SELECT - ( + + 44 ) DIV + 66 + - 54
----
-54

skipif mysql # not compatible
query I rowsort label-4273
SELECT - ( + + 44 ) / + 66 + - 54
----
-54

query I rowsort
SELECT + + 44 AS col0
----
44

query I rowsort
SELECT 59 * - - 91 AS col1
----
5369

query I rowsort
SELECT ALL 34 + 33 / - CASE - 9 WHEN + 61 THEN ( + 43 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4277
SELECT + COUNT( * ) + - + CASE + + 64 WHEN + + 46 THEN NULL WHEN - 38 - - 85 THEN - 90 / 59 * - 28 * - 62 + - + 30 + + 74 + - - 39 + 40 END / + - MAX( - 40 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4277
SELECT + COUNT ( * ) + - + CASE + + 64 WHEN + + 46 THEN NULL WHEN - 38 - - 85 THEN - 90 / 59 * - 28 * - 62 + - + 30 + + 74 + - - 39 + 40 END / + - MAX ( - 40 ) col1
----
NULL

query I rowsort
SELECT ALL - 78 * + + 43
----
-3354

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4279
SELECT DISTINCT 83 + + - 65 * + 13 * - 95 + 1 - + CAST( 56 AS DECIMAL ) + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4279
SELECT DISTINCT 83 + + - 65 * + 13 * - 95 + 1 - + CAST ( 56 AS REAL ) + - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL - CASE - 47 WHEN - 69 + - 37 THEN NULL ELSE + - 77 END
----
77

query I rowsort
SELECT DISTINCT - + ( + 20 )
----
-20

query I rowsort
SELECT ALL + 34 + + 60
----
94

query I rowsort
SELECT DISTINCT 5 * - + 36 col0
----
-180

onlyif mysql # aggregate syntax: 
query I rowsort label-4284
SELECT ALL - + NULLIF ( - + 87, + COUNT( + + 55 ) * 18 * - ( + MAX( DISTINCT + 61 ) ) * + - COALESCE ( - + AVG ( DISTINCT - 36 ), - - 64, + 2 ) + + COALESCE ( + - COALESCE ( - - 8, - 45 ), - 49 + - 58 ) + 40 + - 64 - - 13 ) + + - 56
----
31

skipif mysql # not compatible
query I rowsort label-4284
SELECT ALL - + NULLIF ( - + 87, + COUNT ( + + 55 ) * 18 * - ( + MAX ( DISTINCT + 61 ) ) * + - COALESCE ( - + AVG ( DISTINCT - 36 ), - - 64, + 2 ) + + COALESCE ( + - COALESCE ( - - 8, - 45 ), - 49 + - 58 ) + 40 + - 64 - - 13 ) + + - 56
----
31

query I rowsort
SELECT 3 + 46 * + - ( - 59 ) + 93 + + 22 AS col2
----
2832

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4286
SELECT - CASE + 48 WHEN + 79 + - COUNT( * ) + 95 - + COUNT( * ) THEN - ( 88 ) WHEN 6 THEN - + NULLIF ( + 35, - + 69 ) ELSE + 26 / - - CAST( NULL AS SIGNED ) + 19 END * + 42 / + 16
----
NULL

skipif mysql # not compatible
query I rowsort label-4286
SELECT - CASE + 48 WHEN + 79 + - COUNT ( * ) + 95 - + COUNT ( * ) THEN - ( 88 ) WHEN 6 THEN - + NULLIF ( + 35, - + 69 ) ELSE + 26 / - - CAST ( NULL AS INTEGER ) + 19 END * + 42 / + 16
----
NULL

query I rowsort
SELECT ALL + - 81 + + + 95 AS col0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4288
SELECT + COUNT( 30 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4288
SELECT + COUNT ( 30 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4289
SELECT + - COALESCE ( + + 23, - COUNT( * ), 89 + - 41 * - 57 * + ( + - COUNT( - - 96 ) ) ) AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-4289
SELECT + - COALESCE ( + + 23, - COUNT ( * ), 89 + - 41 * - 57 * + ( + - COUNT ( - - 96 ) ) ) AS col0
----
-23

query I rowsort
SELECT ALL 45 - - 48
----
93

query I rowsort
SELECT ALL - 74 * - 50
----
3700

query I rowsort
SELECT DISTINCT - 92 * - 1
----
92

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4293
SELECT ALL 91 AS col0, - ( + + 53 ) DIV - ( - COALESCE ( 43, - 76, + AVG ( DISTINCT NULLIF ( CAST( NULL AS SIGNED ), - + 28 * + 12 ) ) ) ) AS col1
----
91
-1

skipif mysql # not compatible
query II rowsort label-4293
SELECT ALL 91 AS col0, - ( + + 53 ) / - ( - COALESCE ( 43, - 76, + AVG ( DISTINCT NULLIF ( CAST ( NULL AS INTEGER ), - + 28 * + 12 ) ) ) ) AS col1
----
91
-1

query I rowsort
SELECT 1 + + CASE 68 WHEN + 43 THEN NULL ELSE + 33 * 25 * + 10 + - - ( ( - - 32 ) ) END AS col1
----
8283

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4295
SELECT DISTINCT + 29 - - CASE - - 42 WHEN + - CAST( NULL AS SIGNED ) THEN NULL WHEN + + COUNT( * ) * 52 THEN + MAX( DISTINCT + + 57 ) * - + 64 ELSE MAX( ALL 55 ) END
----
84

skipif mysql # not compatible
query I rowsort label-4295
SELECT DISTINCT + 29 - - CASE - - 42 WHEN + - CAST ( NULL AS INTEGER ) THEN NULL WHEN + + COUNT ( * ) * 52 THEN + MAX ( DISTINCT + + 57 ) * - + 64 ELSE MAX ( ALL 55 ) END
----
84

query II rowsort
SELECT 3, + 30 + + 47 AS col2
----
3
77

query I rowsort
SELECT 10 + ( + 70 )
----
80

query II rowsort
SELECT - 0 AS col1, + 35
----
0
35

query I rowsort
SELECT 20 + - + 60 AS col2
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-4300
SELECT 94 * 4 * - COUNT( * )
----
-376

skipif mysql # not compatible
query I rowsort label-4300
SELECT 94 * 4 * - COUNT ( * )
----
-376

onlyif mysql # aggregate syntax: 
query I rowsort label-4301
SELECT COUNT( * ) * 57 AS col0
----
57

skipif mysql # not compatible
query I rowsort label-4301
SELECT COUNT ( * ) * 57 AS col0
----
57

query I rowsort
SELECT 0 + + 72
----
72

query I rowsort
SELECT 19 * - 69
----
-1311

onlyif mysql # DIV for integer division: 
query I rowsort label-4304
SELECT DISTINCT + 30 DIV 84 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4304
SELECT DISTINCT + 30 / 84 AS col0
----
0

query I rowsort
SELECT ALL 90 * - 53 AS col0
----
-4770

query I rowsort
SELECT 35 + 73 + + + 73 * - 51 - - 35 AS col1
----
-3580

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4307
SELECT - 52 / + - CAST( NULL AS SIGNED ) + + + 39
----
NULL

skipif mysql # not compatible
query I rowsort label-4307
SELECT - 52 / + - CAST ( NULL AS INTEGER ) + + + 39
----
NULL

query II rowsort
SELECT 35 + 57, - 66 col1
----
92
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4309
SELECT - NULLIF ( - ( - - 7 ), 28 * + CASE - - 47 WHEN + ( + - CAST( CAST( - 50 AS SIGNED ) AS DECIMAL ) ) + - ( - - COUNT( DISTINCT + - 81 ) ) THEN + COALESCE ( 83, + + 76 ) * - COUNT( * ) - + + 29 + - - 69 END + + 63 * - ( - + ( + 38 ) ) + + + COUNT( * ) * + 62 / + - 28 * 79 ) + 70 AS col1
----
77

skipif mysql # not compatible
query I rowsort label-4309
SELECT - NULLIF ( - ( - - 7 ), 28 * + CASE - - 47 WHEN + ( + - CAST ( CAST ( - 50 AS INTEGER ) AS REAL ) ) + - ( - - COUNT ( DISTINCT + - 81 ) ) THEN + COALESCE ( 83, + + 76 ) * - COUNT ( * ) - + + 29 + - - 69 END + + 63 * - ( - + ( + 38 ) ) + + + COUNT ( * ) * + 62 / + - 28 * 79 ) + 70 AS col1
----
77

query I rowsort
SELECT + NULLIF ( + ( + 15 ), CASE - 72 WHEN + 68 * 40 + 34 / - 93 THEN + 97 + + - ( 48 ) WHEN - 77 * 89 + 32 THEN 64 ELSE NULL END + + CASE + + 55 WHEN 63 - + 46 THEN - + 99 END - + ( - 78 ) / 78 * - 69 / 21 ) * 46
----
690

onlyif mysql # aggregate syntax: 
query III rowsort label-4311
SELECT + 18 AS col1, ( 13 ) + COUNT( * ) AS col2, + 41
----
18
14
41

skipif mysql # not compatible
query III rowsort label-4311
SELECT + 18 AS col1, ( 13 ) + COUNT ( * ) AS col2, + 41
----
18
14
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4312
SELECT ALL CASE + - 34 WHEN ( - 44 ) * + 55 - + 81 + - + COUNT( * ) + - 3 + + - 63 * - 15 THEN + - ( + CAST( 10 AS SIGNED ) ) + + + 6 ELSE NULL END + 25 / + 84
----
NULL

skipif mysql # not compatible
query I rowsort label-4312
SELECT ALL CASE + - 34 WHEN ( - 44 ) * + 55 - + 81 + - + COUNT ( * ) + - 3 + + - 63 * - 15 THEN + - ( + CAST ( 10 AS INTEGER ) ) + + + 6 ELSE NULL END + 25 / + 84
----
NULL

query I rowsort
SELECT ALL - - ( - 87 )
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-4314
SELECT 84 * NULLIF ( ( + 57 ), - COUNT( * ) ) * 95 + COUNT( * )
----
454861

skipif mysql # not compatible
query I rowsort label-4314
SELECT 84 * NULLIF ( ( + 57 ), - COUNT ( * ) ) * 95 + COUNT ( * )
----
454861

query II rowsort
SELECT 28 col0, 64
----
28
64

onlyif mysql # aggregate syntax: 
query II rowsort label-4316
SELECT + + COUNT( * ) AS col0, + 14 - 73
----
1
-59

skipif mysql # not compatible
query II rowsort label-4316
SELECT + + COUNT ( * ) AS col0, + 14 - 73
----
1
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-4317
SELECT + 92, COUNT( * ) AS col1
----
92
1

skipif mysql # not compatible
query II rowsort label-4317
SELECT + 92, COUNT ( * ) AS col1
----
92
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4318
SELECT MIN( + 98 ) * - + SUM( ALL - 49 ) * - + 94 + - 2 * 41
----
-451470

skipif mysql # not compatible
query I rowsort label-4318
SELECT MIN ( + 98 ) * - + SUM ( ALL - 49 ) * - + 94 + - 2 * 41
----
-451470

onlyif mysql # aggregate syntax: 
query I rowsort label-4319
SELECT ALL - 23 - + + 83 * COUNT( * ) * 7 - + 73 AS col0
----
-677

skipif mysql # not compatible
query I rowsort label-4319
SELECT ALL - 23 - + + 83 * COUNT ( * ) * 7 - + 73 AS col0
----
-677

query I rowsort
SELECT - 83 * + - 48 - + + 45 col0
----
3939

onlyif mysql # aggregate syntax: 
query II rowsort label-4321
SELECT ALL - 97 AS col2, + MIN( ALL + - 70 ) AS col1
----
-97
-70

skipif mysql # not compatible
query II rowsort label-4321
SELECT ALL - 97 AS col2, + MIN ( ALL + - 70 ) AS col1
----
-97
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4322
SELECT DISTINCT - 73 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4322
SELECT DISTINCT - 73 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4323
SELECT MAX( DISTINCT - 59 ) - 59
----
-118

skipif mysql # not compatible
query I rowsort label-4323
SELECT MAX ( DISTINCT - 59 ) - 59
----
-118

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4324
SELECT ALL + 62 - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4324
SELECT ALL + 62 - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ( - 22 ) * + 31
----
-682

onlyif mysql # DIV for integer division: 
query I rowsort label-4326
SELECT 4 DIV + - 8 * - 61 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4326
SELECT 4 / + - 8 * - 61 AS col1
----
0

query I rowsort
SELECT 10 * + + 43
----
430

onlyif mysql # aggregate syntax: 
query I rowsort label-4328
SELECT 15 * COUNT( * ) - 16
----
-1

skipif mysql # not compatible
query I rowsort label-4328
SELECT 15 * COUNT ( * ) - 16
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4329
SELECT MIN( + - 85 ) * - 57 + + 18 col0
----
4863

skipif mysql # not compatible
query I rowsort label-4329
SELECT MIN ( + - 85 ) * - 57 + + 18 col0
----
4863

query I rowsort
SELECT DISTINCT 48 col0
----
48

query I rowsort
SELECT ALL + 43 * 68 * - 22 col2
----
-64328

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4332
SELECT 10 * - CAST( + - SUM( 54 ) AS SIGNED )
----
540

skipif mysql # not compatible
query I rowsort label-4332
SELECT 10 * - CAST ( + - SUM ( 54 ) AS INTEGER )
----
540

onlyif mysql # aggregate syntax: 
query I rowsort label-4333
SELECT DISTINCT + COALESCE ( - 30, + - SUM( 66 ), + COUNT( * ) ) * - 42 AS col2
----
1260

skipif mysql # not compatible
query I rowsort label-4333
SELECT DISTINCT + COALESCE ( - 30, + - SUM ( 66 ), + COUNT ( * ) ) * - 42 AS col2
----
1260

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4334
SELECT ALL + ( + 32 ) * CAST( NULL AS SIGNED ) / 48 - - 2 * - + 93
----
NULL

skipif mysql # not compatible
query I rowsort label-4334
SELECT ALL + ( + 32 ) * CAST ( NULL AS INTEGER ) / 48 - - 2 * - + 93
----
NULL

query I rowsort
SELECT 29 * + 93 AS col1
----
2697

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4336
SELECT ALL + NULLIF ( CASE - 70 WHEN + ( + - 43 ) DIV 38 DIV + + CAST( - 27 AS SIGNED ) THEN - + CASE - - 23 WHEN - 57 THEN NULL ELSE - 65 + + COUNT( * ) END ELSE + CASE + + 45 WHEN + 37 - 72 * - + 73 THEN + + 61 + + + 30 ELSE + + SUM( ALL - 14 ) + - + 39 END * + 4 + + 31 + CAST( - + 56 AS SIGNED ) DIV + ( + 54 * 30 ) END, + 51 * - 42 ) + + 77 AS col0
----
-104

skipif mysql # not compatible
query I rowsort label-4336
SELECT ALL + NULLIF ( CASE - 70 WHEN + ( + - 43 ) / 38 / + + CAST ( - 27 AS INTEGER ) THEN - + CASE - - 23 WHEN - 57 THEN NULL ELSE - 65 + + COUNT ( * ) END ELSE + CASE + + 45 WHEN + 37 - 72 * - + 73 THEN + + 61 + + + 30 ELSE + + SUM ( ALL - 14 ) + - + 39 END * + 4 + + 31 + CAST ( - + 56 AS INTEGER ) / + ( + 54 * 30 ) END, + 51 * - 42 ) + + 77 AS col0
----
-104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4337
SELECT ALL - ( 96 ) + + + CAST( + COUNT( * ) AS SIGNED )
----
-95

skipif mysql # not compatible
query I rowsort label-4337
SELECT ALL - ( 96 ) + + + CAST ( + COUNT ( * ) AS INTEGER )
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-4338
SELECT - - 34 * + 22 * + 39 + - + COUNT( * ) + - COUNT( * ) AS col1
----
29170

skipif mysql # not compatible
query I rowsort label-4338
SELECT - - 34 * + 22 * + 39 + - + COUNT ( * ) + - COUNT ( * ) AS col1
----
29170

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4339
SELECT ALL + CAST( NULL AS SIGNED ) + COUNT( * ) + - COUNT( ALL + 70 ) * - 51 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4339
SELECT ALL + CAST ( NULL AS INTEGER ) + COUNT ( * ) + - COUNT ( ALL + 70 ) * - 51 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4340
SELECT - 59 - - - MAX( + 66 ) AS col1
----
-125

skipif mysql # not compatible
query I rowsort label-4340
SELECT - 59 - - - MAX ( + 66 ) AS col1
----
-125

query I rowsort
SELECT - ( + + COALESCE ( - 22, - 52 ) ) AS col0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4342
SELECT DISTINCT + - 65 + - - COUNT( * ) + 78 + 17 + - + 14 * 58 AS col1
----
-781

skipif mysql # not compatible
query I rowsort label-4342
SELECT DISTINCT + - 65 + - - COUNT ( * ) + 78 + 17 + - + 14 * 58 AS col1
----
-781

onlyif mysql # aggregate syntax: 
query II rowsort label-4343
SELECT - 86 + - 26 AS col2, - COUNT( * ) AS col0
----
-112
-1

skipif mysql # not compatible
query II rowsort label-4343
SELECT - 86 + - 26 AS col2, - COUNT ( * ) AS col0
----
-112
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4344
SELECT ALL + + COUNT( * ) + 25 + 61
----
87

skipif mysql # not compatible
query I rowsort label-4344
SELECT ALL + + COUNT ( * ) + 25 + 61
----
87

query I rowsort
SELECT DISTINCT + ( - 58 ) AS col2
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4346
SELECT ALL - 30 * + CAST( + 61 AS SIGNED ) + - ( - 0 ) + + 82
----
-1748

skipif mysql # not compatible
query I rowsort label-4346
SELECT ALL - 30 * + CAST ( + 61 AS INTEGER ) + - ( - 0 ) + + 82
----
-1748

onlyif mysql # DIV for integer division: 
query I rowsort label-4347
SELECT ALL + + 40 DIV - 76 * - 68 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4347
SELECT ALL + + 40 / - 76 * - 68 AS col0
----
0

query I rowsort
SELECT - 31 * - ( - 34 ) * 72 * 21 + - 46
----
-1593694

onlyif mysql # aggregate syntax: 
query I rowsort label-4349
SELECT ALL 27 * + 88 * - + MIN( DISTINCT 62 ) - - + 6 col0
----
-147306

skipif mysql # not compatible
query I rowsort label-4349
SELECT ALL 27 * + 88 * - + MIN ( DISTINCT 62 ) - - + 6 col0
----
-147306

onlyif mysql # aggregate syntax: 
query I rowsort label-4350
SELECT - COUNT( * ) * - 12 + 88 + ( - 99 ) * 15 col0
----
-1385

skipif mysql # not compatible
query I rowsort label-4350
SELECT - COUNT ( * ) * - 12 + 88 + ( - 99 ) * 15 col0
----
-1385

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4351
SELECT - COUNT( * ) DIV + CAST( 55 AS SIGNED ) + - 3 * + + 17, 93 AS col0
----
-51
93

skipif mysql # not compatible
query II rowsort label-4351
SELECT - COUNT ( * ) / + CAST ( 55 AS INTEGER ) + - 3 * + + 17, 93 AS col0
----
-51
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4352
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + 54 - + - COUNT( * ) AS col2, COUNT( * ) + - - 96 * + - COUNT( * ) + - 21 * - 89 AS col0
----
NULL
1774

skipif mysql # not compatible
query II rowsort label-4352
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + 54 - + - COUNT ( * ) AS col2, COUNT ( * ) + - - 96 * + - COUNT ( * ) + - 21 * - 89 AS col0
----
NULL
1774

query I rowsort
SELECT + - 14 * - 95 + - 24 AS col1
----
1306

query I rowsort
SELECT ALL + - 74 * + 60 - + - 88
----
-4352

query I rowsort
SELECT + 69 + 32
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-4356
SELECT - 80 + - - 14 * - COUNT( * ) + + 89 AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-4356
SELECT - 80 + - - 14 * - COUNT ( * ) + + 89 AS col0
----
-5

query I rowsort
SELECT + NULLIF ( - 48, 3 * + + 85 - - 10 ) AS col1
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-4358
SELECT + 45 + + 34 * + CASE + 16 WHEN - 87 + + 30 + + MAX( + + 5 ) * 0 THEN + 12 * + + 27 + - 79 ELSE NULL END + + 16
----
NULL

skipif mysql # not compatible
query I rowsort label-4358
SELECT + 45 + + 34 * + CASE + 16 WHEN - 87 + + 30 + + MAX ( + + 5 ) * 0 THEN + 12 * + + 27 + - 79 ELSE NULL END + + 16
----
NULL

query I rowsort
SELECT + 62 * - 25
----
-1550

query I rowsort
SELECT 20 * - 84 * - 75 + - 47
----
125953

onlyif mysql # DIV for integer division: 
query I rowsort label-4361
SELECT DISTINCT ( - 5 ) * + 13 + - 60 DIV 24
----
-67

skipif mysql # not compatible
query I rowsort label-4361
SELECT DISTINCT ( - 5 ) * + 13 + - 60 / 24
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-4362
SELECT 38 * 64 + - 89 + NULLIF ( - - 25, MIN( DISTINCT 99 ) * 44 + - + 37 + - 17 ) - 51 AS col1
----
2317

skipif mysql # not compatible
query I rowsort label-4362
SELECT 38 * 64 + - 89 + NULLIF ( - - 25, MIN ( DISTINCT 99 ) * 44 + - + 37 + - 17 ) - 51 AS col1
----
2317

query I rowsort
SELECT DISTINCT ( - 20 ) AS col0
----
-20

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4364
SELECT ALL CAST( NULL AS SIGNED ) * 2 * + 12 AS col0, 97 DIV - 3 AS col2
----
NULL
-32

skipif mysql # not compatible
query II rowsort label-4364
SELECT ALL CAST ( NULL AS INTEGER ) * 2 * + 12 AS col0, 97 / - 3 AS col2
----
NULL
-32

query I rowsort
SELECT + 26 + 38 AS col0
----
64

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4366
SELECT DISTINCT 38 * 98 DIV + + 64 AS col1, CAST( NULL AS SIGNED ) - 84
----
58
NULL

skipif mysql # not compatible
query II rowsort label-4366
SELECT DISTINCT 38 * 98 / + + 64 AS col1, CAST ( NULL AS INTEGER ) - 84
----
58
NULL

query I rowsort
SELECT DISTINCT 50 * - ( + 58 ) AS col0
----
-2900

onlyif mysql # aggregate syntax: 
query I rowsort label-4368
SELECT DISTINCT COUNT( - 90 )
----
1

skipif mysql # not compatible
query I rowsort label-4368
SELECT DISTINCT COUNT ( - 90 )
----
1

query I rowsort
SELECT + 90 * + + 68 AS col0
----
6120

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4370
SELECT + 96 + - + ( COUNT( * ) ) * - 14 DIV - NULLIF ( - - 19, + + 20 - - - 74 ) + SUM( ALL - 44 )
----
52

skipif mysql # not compatible
query I rowsort label-4370
SELECT + 96 + - + ( COUNT ( * ) ) * - 14 / - NULLIF ( - - 19, + + 20 - - - 74 ) + SUM ( ALL - 44 )
----
52

query I rowsort
SELECT + 67 * ( 91 ) AS col1
----
6097

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4372
SELECT - SUM( ALL + 67 ) + - NULLIF ( + 12, - + 5 ) * + 73 AS col2, + SUM( - 21 ) + + - CAST( - CAST( - + 12 AS SIGNED ) AS SIGNED )
----
-943
-33

skipif mysql # not compatible
query II rowsort label-4372
SELECT - SUM ( ALL + 67 ) + - NULLIF ( + 12, - + 5 ) * + 73 AS col2, + SUM ( - 21 ) + + - CAST ( - CAST ( - + 12 AS INTEGER ) AS INTEGER )
----
-943
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-4373
SELECT - ( + - SUM( DISTINCT + 19 ) ), 77 + 6 AS col1
----
19
83

skipif mysql # not compatible
query II rowsort label-4373
SELECT - ( + - SUM ( DISTINCT + 19 ) ), 77 + 6 AS col1
----
19
83

query I rowsort
SELECT - 49 + - + ( - - 12 )
----
-61

query I rowsort
SELECT + 60 + - - 66
----
126

onlyif mysql # aggregate syntax: 
query II rowsort label-4376
SELECT ALL + COUNT( * ) + - ( + 54 ) - + COUNT( * ) + + 51 * + 53 AS col1, 68
----
2649
68

skipif mysql # not compatible
query II rowsort label-4376
SELECT ALL + COUNT ( * ) + - ( + 54 ) - + COUNT ( * ) + + 51 * + 53 AS col1, 68
----
2649
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4377
SELECT + 57 + 93 * + COUNT( * ) AS col0
----
150

skipif mysql # not compatible
query I rowsort label-4377
SELECT + 57 + 93 * + COUNT ( * ) AS col0
----
150

query II rowsort
SELECT 40 col0, 0
----
40
0

query I rowsort
SELECT ALL - 91 + + 53 * + 94 AS col0
----
4891

query I rowsort
SELECT DISTINCT ( - + 28 ) AS col0
----
-28

query II rowsort
SELECT ALL + - 79 + 17 * - - 49 AS col2, 47
----
754
47

query I rowsort
SELECT - + ( - + 73 ) + - 6 * + 76 AS col1
----
-383

query I rowsort
SELECT DISTINCT 71 - 76 + - 48 * + 7 AS col2
----
-341

query I rowsort
SELECT - + 61 + 64 AS col2
----
3

query I rowsort
SELECT + 59 * + - 93
----
-5487

query I rowsort
SELECT - 33 + - + 96 AS col0
----
-129

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4387
SELECT DISTINCT + CAST( - + 51 AS SIGNED ) AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-4387
SELECT DISTINCT + CAST ( - + 51 AS INTEGER ) AS col1
----
-51

query I rowsort
SELECT ALL + + ( NULLIF ( + 19, - 48 - - 66 ) )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-4389
SELECT - MAX( - 86 )
----
86

skipif mysql # not compatible
query I rowsort label-4389
SELECT - MAX ( - 86 )
----
86

query I rowsort
SELECT ALL - 15 * 69
----
-1035

onlyif mysql # DIV for integer division: 
query I rowsort label-4391
SELECT + 63 DIV 97 * + + 69 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4391
SELECT + 63 / 97 * + + 69 AS col2
----
0

query I rowsort
SELECT ( ( - 21 ) ) AS col2
----
-21

query I rowsort
SELECT ( - - 22 ) AS col2
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4394
SELECT DISTINCT MIN( DISTINCT - + 19 ) * + SUM( + 48 ) + + ( 46 )
----
-866

skipif mysql # not compatible
query I rowsort label-4394
SELECT DISTINCT MIN ( DISTINCT - + 19 ) * + SUM ( + 48 ) + + ( 46 )
----
-866

onlyif mysql # aggregate syntax: 
query I rowsort label-4395
SELECT DISTINCT + MIN( ALL - 16 )
----
-16

skipif mysql # not compatible
query I rowsort label-4395
SELECT DISTINCT + MIN ( ALL - 16 )
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4396
SELECT ALL + MAX( DISTINCT - + ( - - 27 ) ) * - - CAST( NULL AS SIGNED ) + - 36 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4396
SELECT ALL + MAX ( DISTINCT - + ( - - 27 ) ) * - - CAST ( NULL AS INTEGER ) + - 36 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4397
SELECT DISTINCT - COUNT( * ) + - 29 AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-4397
SELECT DISTINCT - COUNT ( * ) + - 29 AS col1
----
-30

query I rowsort
SELECT 39 - - - COALESCE ( + ( - - 79 ), - 53 )
----
-40

query II rowsort
SELECT 45 * - - 60 AS col2, 49 * - 87
----
2700
-4263

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4400
SELECT - COUNT( DISTINCT + 18 ) * + + COUNT( - 45 ) - - COALESCE ( - - CAST( 23 AS SIGNED ), - 74 * 83 DIV - - COUNT( * ) + + - 58 DIV + - 96 + + 1 + - + COUNT( * ) + 99 + + 96, - + 47, - 9 )
----
22

skipif mysql # not compatible
query I rowsort label-4400
SELECT - COUNT ( DISTINCT + 18 ) * + + COUNT ( - 45 ) - - COALESCE ( - - CAST ( 23 AS INTEGER ), - 74 * 83 / - - COUNT ( * ) + + - 58 / + - 96 + + 1 + - + COUNT ( * ) + 99 + + 96, - + 47, - 9 )
----
22

query I rowsort
SELECT DISTINCT 13 col2
----
13

query I rowsort
SELECT ALL 31 * - 35 AS col0
----
-1085

onlyif mysql # DIV for integer division: 
query I rowsort label-4403
SELECT 35 DIV 51 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4403
SELECT 35 / 51 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4404
SELECT ALL - COUNT( * ) + - - 80 AS col2
----
79

skipif mysql # not compatible
query I rowsort label-4404
SELECT ALL - COUNT ( * ) + - - 80 AS col2
----
79

query I rowsort
SELECT DISTINCT 89 * + 43 AS col0
----
3827

query I rowsort
SELECT 44 * - - 71 AS col1
----
3124

query I rowsort
SELECT 90 * + + 53
----
4770

onlyif mysql # aggregate syntax: 
query I rowsort label-4408
SELECT ALL SUM( - - 39 ) - + 42
----
-3

skipif mysql # not compatible
query I rowsort label-4408
SELECT ALL SUM ( - - 39 ) - + 42
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4409
SELECT 92 + + 67 * COUNT( * ) * + CASE + AVG ( + 44 ) WHEN - + COALESCE ( 39, - + COALESCE ( + COUNT( * ), + ( - COUNT( * ) ) ) * + ( + 99 ) ) THEN + 48 END + - 53
----
NULL

skipif mysql # not compatible
query I rowsort label-4409
SELECT 92 + + 67 * COUNT ( * ) * + CASE + AVG ( + 44 ) WHEN - + COALESCE ( 39, - + COALESCE ( + COUNT ( * ), + ( - COUNT ( * ) ) ) * + ( + 99 ) ) THEN + 48 END + - 53
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4410
SELECT COUNT( * ) DIV + 17 col1
----
0

skipif mysql # not compatible
query I rowsort label-4410
SELECT COUNT ( * ) / + 17 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4411
SELECT 69 + - + MIN( + 22 )
----
47

skipif mysql # not compatible
query I rowsort label-4411
SELECT 69 + - + MIN ( + 22 )
----
47

query I rowsort
SELECT + 71 + - 35 AS col0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4413
SELECT ALL + 24 - + 75 * + COUNT( * )
----
-51

skipif mysql # not compatible
query I rowsort label-4413
SELECT ALL + 24 - + 75 * + COUNT ( * )
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-4414
SELECT DISTINCT + MIN( DISTINCT ( - ( - 5 ) ) ) col2
----
5

skipif mysql # not compatible
query I rowsort label-4414
SELECT DISTINCT + MIN ( DISTINCT ( - ( - 5 ) ) ) col2
----
5

query I rowsort
SELECT 92 * - 70 AS col0
----
-6440

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4416
SELECT + CAST( + 8 AS SIGNED ) DIV + + 12 + - + MIN( 79 )
----
-79

skipif mysql # not compatible
query I rowsort label-4416
SELECT + CAST ( + 8 AS INTEGER ) / + + 12 + - + MIN ( 79 )
----
-79

query II rowsort
SELECT DISTINCT - 11 * 66 AS col2, + 80
----
-726
80

query I rowsort
SELECT 94 * + 45 + - 52 + - 47 + + 94 * 58 AS col1
----
9583

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4419
SELECT - COUNT( * ) - - - 50 DIV - 30
----
0

skipif mysql # not compatible
query I rowsort label-4419
SELECT - COUNT ( * ) - - - 50 / - 30
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4420
SELECT ALL 90 * + 23 - COUNT( * )
----
2069

skipif mysql # not compatible
query I rowsort label-4420
SELECT ALL 90 * + 23 - COUNT ( * )
----
2069

onlyif mysql # aggregate syntax: 
query I rowsort label-4421
SELECT 72 * + - MAX( - 24 )
----
1728

skipif mysql # not compatible
query I rowsort label-4421
SELECT 72 * + - MAX ( - 24 )
----
1728

onlyif mysql # DIV for integer division: 
query II rowsort label-4422
SELECT - 88 * 47 DIV - 11 + + 5, 14 AS col0
----
381
14

skipif mysql # not compatible
query II rowsort label-4422
SELECT - 88 * 47 / - 11 + + 5, 14 AS col0
----
381
14

query I rowsort
SELECT DISTINCT - 29 * 48
----
-1392

query I rowsort
SELECT 4 + - + 76
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4425
SELECT DISTINCT 74 * - COALESCE ( - - COUNT( + ( - 62 ) ), + 43 ) * - CAST( NULL AS SIGNED ) * - - 95 AS col2, + 27
----
NULL
27

skipif mysql # not compatible
query II rowsort label-4425
SELECT DISTINCT 74 * - COALESCE ( - - COUNT ( + ( - 62 ) ), + 43 ) * - CAST ( NULL AS INTEGER ) * - - 95 AS col2, + 27
----
NULL
27

query I rowsort
SELECT 57 * + + 28 + 26 + + 83 + - - 97 * - 52
----
-3339

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4427
SELECT ALL - CAST( + 12 AS SIGNED ) DIV + - COALESCE ( - 94, - COUNT( * ) * + 75 ) - + SUM( DISTINCT - 82 ) + + 2 + + 79 + + 67 + - 79 * + 51 * + + 86 - - 3 AS col1
----
-346261

skipif mysql # not compatible
query I rowsort label-4427
SELECT ALL - CAST ( + 12 AS INTEGER ) / + - COALESCE ( - 94, - COUNT ( * ) * + 75 ) - + SUM ( DISTINCT - 82 ) + + 2 + + 79 + + 67 + - 79 * + 51 * + + 86 - - 3 AS col1
----
-346261

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4428
SELECT DISTINCT - CAST( - + 70 AS SIGNED )
----
70

skipif mysql # not compatible
query I rowsort label-4428
SELECT DISTINCT - CAST ( - + 70 AS INTEGER )
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-4429
SELECT ALL + COUNT( + 44 ) + - 52 AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-4429
SELECT ALL + COUNT ( + 44 ) + - 52 AS col0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-4430
SELECT COALESCE ( 47, 18, - ( - 27 ), COUNT( * ), 85 ) * - 86 AS col0
----
-4042

skipif mysql # not compatible
query I rowsort label-4430
SELECT COALESCE ( 47, 18, - ( - 27 ), COUNT ( * ), 85 ) * - 86 AS col0
----
-4042

query I rowsort
SELECT 39 + ( - 94 ) AS col0
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4432
SELECT ALL + CASE - 21 WHEN - - 56 * MIN( ALL + 46 ) THEN - 4 * - ( - + 24 ) + - COUNT( * ) + + + COUNT( * ) + - + CAST( NULL AS SIGNED ) END / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4432
SELECT ALL + CASE - 21 WHEN - - 56 * MIN ( ALL + 46 ) THEN - 4 * - ( - + 24 ) + - COUNT ( * ) + + + COUNT ( * ) + - + CAST ( NULL AS INTEGER ) END / - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4433
SELECT 45 DIV - + 38 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4433
SELECT 45 / - + 38 AS col1
----
-1

query I rowsort
SELECT 48 + ( + 42 ) AS col1
----
90

query I rowsort
SELECT 29 * 68
----
1972

query I rowsort
SELECT ALL - NULLIF ( - 64, - + 26 / 46 + + 27 ) AS col1
----
64

query I rowsort
SELECT 38 * + - 82 col0
----
-3116

query I rowsort
SELECT ALL - 22 * + 20 AS col0
----
-440

query I rowsort
SELECT 44 + - - ( - 77 )
----
-33

query I rowsort
SELECT DISTINCT 25 - + 96 AS col1
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-4441
SELECT DISTINCT - - 45 - + - COUNT( * ) - - 36
----
82

skipif mysql # not compatible
query I rowsort label-4441
SELECT DISTINCT - - 45 - + - COUNT ( * ) - - 36
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-4442
SELECT 58 + + - 72 DIV 57 * 63
----
-5

skipif mysql # not compatible
query I rowsort label-4442
SELECT 58 + + - 72 / 57 * 63
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4443
SELECT ALL - - MIN( DISTINCT - 22 ) - - + CAST( NULL AS SIGNED ), 44 * - AVG ( 91 ) - + - CAST( NULL AS DECIMAL ) + + COUNT( * ) col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4443
SELECT ALL - - MIN ( DISTINCT - 22 ) - - + CAST ( NULL AS INTEGER ), 44 * - AVG ( 91 ) - + - CAST ( NULL AS REAL ) + + COUNT ( * ) col1
----
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4444
SELECT COALESCE ( - COALESCE ( CAST( + - 73 AS SIGNED ), 36 * - 88 + - + 43 + + + 87 ), - 93 ) AS col2
----
73

skipif mysql # not compatible
query I rowsort label-4444
SELECT COALESCE ( - COALESCE ( CAST ( + - 73 AS INTEGER ), 36 * - 88 + - + 43 + + + 87 ), - 93 ) AS col2
----
73

query I rowsort
SELECT + 88 + + 34 AS col1
----
122

query I rowsort
SELECT + ( + - 73 ) col2
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-4447
SELECT 7 * COUNT( * ) * - 87
----
-609

skipif mysql # not compatible
query I rowsort label-4447
SELECT 7 * COUNT ( * ) * - 87
----
-609

query I rowsort
SELECT + 2 + + - 65
----
-63

query I rowsort
SELECT ALL + ( 54 ) / - - CASE + 33 WHEN - 20 THEN - 19 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4450
SELECT + ( ( - + COUNT( * ) ) ) / + - 32 + - MIN( DISTINCT CASE + 44 WHEN 4 THEN + 73 * 75 WHEN + 78 THEN - 39 END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4450
SELECT + ( ( - + COUNT ( * ) ) ) / + - 32 + - MIN ( DISTINCT CASE + 44 WHEN 4 THEN + 73 * 75 WHEN + 78 THEN - 39 END ) AS col2
----
NULL

query I rowsort
SELECT ALL ( + 85 )
----
85

onlyif mysql # aggregate syntax: 
query II rowsort label-4452
SELECT - COALESCE ( - ( + 90 ), - 47 + 78 ) col1, - ( + + NULLIF ( + + 58, + COUNT( * ) ) ) * - 78 + 76 AS col1
----
90
4600

skipif mysql # not compatible
query II rowsort label-4452
SELECT - COALESCE ( - ( + 90 ), - 47 + 78 ) col1, - ( + + NULLIF ( + + 58, + COUNT ( * ) ) ) * - 78 + 76 AS col1
----
90
4600

onlyif mysql # DIV for integer division: 
query I rowsort label-4453
SELECT ALL - 95 DIV + - 82 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4453
SELECT ALL - 95 / + - 82 AS col0
----
1

query II rowsort
SELECT + 68 * - + 92 + - 14 AS col2, - 44 AS col2
----
-6270
-44

query I rowsort
SELECT ALL 8 * - 87 AS col1
----
-696

onlyif mysql # DIV for integer division: 
query I rowsort label-4456
SELECT - 77 DIV - 5
----
15

skipif mysql # not compatible
query I rowsort label-4456
SELECT - 77 / - 5
----
15

query I rowsort
SELECT DISTINCT - 45 * + 21
----
-945

onlyif mysql # DIV for integer division: 
query I rowsort label-4458
SELECT - 95 DIV 79 * + ( + 47 )
----
-47

skipif mysql # not compatible
query I rowsort label-4458
SELECT - 95 / 79 * + ( + 47 )
----
-47

onlyif mysql # aggregate syntax: 
query II rowsort label-4459
SELECT - 35 * - 88 * - 70 * 62 * + 27 AS col1, + COUNT( * ) AS col2
----
-360914400
1

skipif mysql # not compatible
query II rowsort label-4459
SELECT - 35 * - 88 * - 70 * 62 * + 27 AS col1, + COUNT ( * ) AS col2
----
-360914400
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4460
SELECT - 4 + - CASE - - 67 WHEN + - 63 * NULLIF ( 83, + 45 ) + + MAX( 62 ) / - NULLIF ( 70, + ( - 27 ) ) * - 37 THEN - - 77 WHEN + NULLIF ( + - 26, + 53 * 1 ) THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4460
SELECT - 4 + - CASE - - 67 WHEN + - 63 * NULLIF ( 83, + 45 ) + + MAX ( 62 ) / - NULLIF ( 70, + ( - 27 ) ) * - 37 THEN - - 77 WHEN + NULLIF ( + - 26, + 53 * 1 ) THEN NULL ELSE NULL END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4461
SELECT + 44 DIV - NULLIF ( - 35, - 41 )
----
1

skipif mysql # not compatible
query I rowsort label-4461
SELECT + 44 / - NULLIF ( - 35, - 41 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4462
SELECT 45 DIV - 88 * - 73 DIV - - 45 + 14 + - + 81
----
-67

skipif mysql # not compatible
query I rowsort label-4462
SELECT 45 / - 88 * - 73 / - - 45 + 14 + - + 81
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-4463
SELECT ALL - COUNT( * ) * + 45 + - 76 AS col0
----
-121

skipif mysql # not compatible
query I rowsort label-4463
SELECT ALL - COUNT ( * ) * + 45 + - 76 AS col0
----
-121

query I rowsort
SELECT + 71 * - 72 AS col0
----
-5112

query I rowsort
SELECT ALL - 62 * + 36 * - 92 + + 48 AS col0
----
205392

query I rowsort
SELECT ALL - CASE WHEN NOT NULL IS NULL THEN NULL ELSE 70 END
----
-70

onlyif mysql # aggregate syntax: 
query II rowsort label-4467
SELECT COUNT( * ) * + 16, + 31 AS col2
----
16
31

skipif mysql # not compatible
query II rowsort label-4467
SELECT COUNT ( * ) * + 16, + 31 AS col2
----
16
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4468
SELECT DISTINCT - NULLIF ( - 57, CASE 36 WHEN + 43 + + + 36 THEN - - COUNT( - 60 ) * + ( - + 69 ) * - COUNT( * ) END ) * - 22 * + 16 * + ( + 4 ) + + 53
----
-80203

skipif mysql # not compatible
query I rowsort label-4468
SELECT DISTINCT - NULLIF ( - 57, CASE 36 WHEN + 43 + + + 36 THEN - - COUNT ( - 60 ) * + ( - + 69 ) * - COUNT ( * ) END ) * - 22 * + 16 * + ( + 4 ) + + 53
----
-80203

onlyif mysql # aggregate syntax: 
query II rowsort label-4469
SELECT + COUNT( * ), COUNT( * ) + + + 73 col2
----
1
74

skipif mysql # not compatible
query II rowsort label-4469
SELECT + COUNT ( * ), COUNT ( * ) + + + 73 col2
----
1
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4470
SELECT ALL + SUM( DISTINCT + + 56 )
----
56

skipif mysql # not compatible
query I rowsort label-4470
SELECT ALL + SUM ( DISTINCT + + 56 )
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4471
SELECT MIN( + ( + 73 ) )
----
73

skipif mysql # not compatible
query I rowsort label-4471
SELECT MIN ( + ( + 73 ) )
----
73

query I rowsort
SELECT ALL - 70 * - ( + 16 ) * + 98 - - 47 AS col2
----
109807

onlyif mysql # aggregate syntax: 
query II rowsort label-4473
SELECT COUNT( * ), - 56 col2
----
1
-56

skipif mysql # not compatible
query II rowsort label-4473
SELECT COUNT ( * ), - 56 col2
----
1
-56

onlyif mysql # aggregate syntax: 
query II rowsort label-4474
SELECT COUNT( * ) col2, - 24
----
1
-24

skipif mysql # not compatible
query II rowsort label-4474
SELECT COUNT ( * ) col2, - 24
----
1
-24

query I rowsort
SELECT 65 * - 22 - + 11
----
-1441

onlyif mysql # aggregate syntax: 
query I rowsort label-4476
SELECT ALL COALESCE ( + 69, + + NULLIF ( + COUNT( * ), + ( - - 73 ) ), + COUNT( * ) )
----
69

skipif mysql # not compatible
query I rowsort label-4476
SELECT ALL COALESCE ( + 69, + + NULLIF ( + COUNT ( * ), + ( - - 73 ) ), + COUNT ( * ) )
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4477
SELECT - - SUM( - + 20 )
----
-20

skipif mysql # not compatible
query I rowsort label-4477
SELECT - - SUM ( - + 20 )
----
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-4478
SELECT - + 79 DIV + 61 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4478
SELECT - + 79 / + 61 AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4479
SELECT DISTINCT - NULLIF ( - 4, + SUM( + - ( - 75 ) ) ) * COUNT( - CAST( 32 AS SIGNED ) ) + - - CAST( + + 87 AS SIGNED ) + 20, CAST( NULL AS SIGNED ) col0
----
111
NULL

skipif mysql # not compatible
query II rowsort label-4479
SELECT DISTINCT - NULLIF ( - 4, + SUM ( + - ( - 75 ) ) ) * COUNT ( - CAST ( 32 AS INTEGER ) ) + - - CAST ( + + 87 AS INTEGER ) + 20, CAST ( NULL AS INTEGER ) col0
----
111
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4480
SELECT - - 4 * - COUNT( * ) AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-4480
SELECT - - 4 * - COUNT ( * ) AS col2
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-4481
SELECT DISTINCT - - ( - COUNT( * ) ) * + 67 + + 83 - + - 97 AS col0
----
113

skipif mysql # not compatible
query I rowsort label-4481
SELECT DISTINCT - - ( - COUNT ( * ) ) * + 67 + + 83 - + - 97 AS col0
----
113

onlyif mysql # aggregate syntax: 
query II rowsort label-4482
SELECT ALL + 55 AS col1, - 24 - + COUNT( DISTINCT - + 74 )
----
55
-25

skipif mysql # not compatible
query II rowsort label-4482
SELECT ALL + 55 AS col1, - 24 - + COUNT ( DISTINCT - + 74 )
----
55
-25

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4483
SELECT ALL - 1 AS col1, - COUNT( * ) * ( - 51 ) DIV - 75 + + MIN( DISTINCT + 7 ) AS col2
----
-1
7

skipif mysql # not compatible
query II rowsort label-4483
SELECT ALL - 1 AS col1, - COUNT ( * ) * ( - 51 ) / - 75 + + MIN ( DISTINCT + 7 ) AS col2
----
-1
7

query I rowsort
SELECT - - ( - 58 ) - + 58
----
-116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4485
SELECT DISTINCT + 16 * + CASE + - CASE - 77 WHEN + 29 THEN - COUNT( * ) + + + 53 WHEN NULLIF ( - - 3, 9 ) * CAST( + - 60 AS SIGNED ) * + 11 + - ( - 52 ) THEN NULL END WHEN + - CASE + CASE COALESCE ( + - 95, + + 91 + - MIN( + - 7 ) ) WHEN - 17 THEN + - 86 END WHEN - + ( + SUM( DISTINCT + 8 ) ) * + 23 THEN CASE CASE - 75 WHEN 82 THEN - NULLIF ( COALESCE ( + 71, AVG ( DISTINCT + 55 ) + - 89, COUNT( * ) * 81 ), 13 * 46 ) * 29 END WHEN + CAST( NULL AS SIGNED ) THEN NULL WHEN 31 THEN + 34 WHEN - COUNT( * ) * 89 THEN - NULLIF ( - COALESCE ( + 59, + MIN( 35 ) + 49, MAX( - 92 ) ), 33 * 54 ) ELSE NULL END * + ( 66 ) + + 16 * COUNT( * ) WHEN ( 97 ) - + CAST( CAST( NULL AS DECIMAL ) AS SIGNED ) THEN 57 * - 34 ELSE COUNT( * ) END THEN 53 ELSE NULL END * CASE + 81 WHEN + ( 12 ) THEN NULL WHEN 50 THEN NULL WHEN + 58 THEN NULL ELSE 75 END + + 48 * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4485
SELECT DISTINCT + 16 * + CASE + - CASE - 77 WHEN + 29 THEN - COUNT ( * ) + + + 53 WHEN NULLIF ( - - 3, 9 ) * CAST ( + - 60 AS INTEGER ) * + 11 + - ( - 52 ) THEN NULL END WHEN + - CASE + CASE COALESCE ( + - 95, + + 91 + - MIN ( + - 7 ) ) WHEN - 17 THEN + - 86 END WHEN - + ( + SUM ( DISTINCT + 8 ) ) * + 23 THEN CASE CASE - 75 WHEN 82 THEN - NULLIF ( COALESCE ( + 71, AVG ( DISTINCT + 55 ) + - 89, COUNT ( * ) * 81 ), 13 * 46 ) * 29 END WHEN + CAST ( NULL AS INTEGER ) THEN NULL WHEN 31 THEN + 34 WHEN - COUNT ( * ) * 89 THEN - NULLIF ( - COALESCE ( + 59, + MIN ( 35 ) + 49, MAX ( - 92 ) ), 33 * 54 ) ELSE NULL END * + ( 66 ) + + 16 * COUNT ( * ) WHEN ( 97 ) - + CAST ( CAST ( NULL AS REAL ) AS INTEGER ) THEN 57 * - 34 ELSE COUNT ( * ) END THEN 53 ELSE NULL END * CASE + 81 WHEN + ( 12 ) THEN NULL WHEN 50 THEN NULL WHEN + 58 THEN NULL ELSE 75 END + + 48 * - COUNT ( * )
----
NULL

query I rowsort
SELECT - - 52 + + - 53
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-4487
SELECT + - 72 * + COALESCE ( + 73, MAX( + 18 ) + - COUNT( * ) ) AS col1, 59 + + 94
----
-5256
153

skipif mysql # not compatible
query II rowsort label-4487
SELECT + - 72 * + COALESCE ( + 73, MAX ( + 18 ) + - COUNT ( * ) ) AS col1, 59 + + 94
----
-5256
153

onlyif mysql # DIV for integer division: 
query III rowsort label-4488
SELECT - + 55, + 69 DIV + 87 * - 57 AS col1, + 68 AS col1
----
-55
0
68

skipif mysql # not compatible
query III rowsort label-4488
SELECT - + 55, + 69 / + 87 * - 57 AS col1, + 68 AS col1
----
-55
0
68

query II rowsort
SELECT - 46 AS col0, + 57 AS col2
----
-46
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4490
SELECT - CAST( - - 35 AS SIGNED ) AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-4490
SELECT - CAST ( - - 35 AS INTEGER ) AS col1
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-4491
SELECT - 55 + - - COUNT( * ) AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-4491
SELECT - 55 + - - COUNT ( * ) AS col1
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4492
SELECT + 63 + + CAST( - CAST( + 34 AS SIGNED ) AS SIGNED ) + - + SUM( - 40 ) + 39 AS col0, + 80 * 82 + + CAST( + 56 AS SIGNED ) AS col1
----
108
6616

skipif mysql # not compatible
query II rowsort label-4492
SELECT + 63 + + CAST ( - CAST ( + 34 AS INTEGER ) AS INTEGER ) + - + SUM ( - 40 ) + 39 AS col0, + 80 * 82 + + CAST ( + 56 AS INTEGER ) AS col1
----
108
6616

query I rowsort
SELECT + 80 * 7 col2
----
560

query I rowsort
SELECT 94 * - 25 + + + 53
----
-2297

query I rowsort
SELECT + 56 + + 87 * + + 25 AS col1
----
2231

query II rowsort
SELECT ( - + 42 ) AS col1, 11 col1
----
-42
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4497
SELECT - SUM( ALL - 27 ) * - 18 + 72 - 96 * 19
----
-2238

skipif mysql # not compatible
query I rowsort label-4497
SELECT - SUM ( ALL - 27 ) * - 18 + 72 - 96 * 19
----
-2238

query I rowsort
SELECT + 44 * + 94 * - 31 col2
----
-128216

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4499
SELECT + CASE - 67 WHEN + + CAST( NULL AS SIGNED ) THEN NULL WHEN - + CAST( + 81 AS SIGNED ) THEN + 56 * + COUNT( * ) + + 60 END * - - 82 * + 33
----
NULL

skipif mysql # not compatible
query I rowsort label-4499
SELECT + CASE - 67 WHEN + + CAST ( NULL AS INTEGER ) THEN NULL WHEN - + CAST ( + 81 AS INTEGER ) THEN + 56 * + COUNT ( * ) + + 60 END * - - 82 * + 33
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4500
SELECT 30 DIV - - 46 + - 28 + 62 + + - COUNT( * ) + - 73 DIV - + ( 17 ) - - CASE COUNT( * ) WHEN COUNT( * ) THEN + - ( - 66 ) ELSE - 37 + + ( MIN( DISTINCT + - 77 ) ) END * - 97 * - 43 * + - 65 col0
----
-17893553

skipif mysql # not compatible
query I rowsort label-4500
SELECT 30 / - - 46 + - 28 + 62 + + - COUNT ( * ) + - 73 / - + ( 17 ) - - CASE COUNT ( * ) WHEN COUNT ( * ) THEN + - ( - 66 ) ELSE - 37 + + ( MIN ( DISTINCT + - 77 ) ) END * - 97 * - 43 * + - 65 col0
----
-17893553

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4501
SELECT + 20 + COUNT( * ) - - 37 * - + 85 + - ( COUNT( * ) ) + - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4501
SELECT + 20 + COUNT ( * ) - - 37 * - + 85 + - ( COUNT ( * ) ) + - CAST ( NULL AS REAL ) AS col0
----
NULL

query II rowsort
SELECT ALL - 22 * 3, - 69 AS col2
----
-66
-69

query I rowsort
SELECT DISTINCT + 67 col1
----
67

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4504
SELECT ALL + 49 * + - 55 AS col0, 26 DIV CAST( 58 AS SIGNED )
----
-2695
0

skipif mysql # not compatible
query II rowsort label-4504
SELECT ALL + 49 * + - 55 AS col0, 26 / CAST ( 58 AS INTEGER )
----
-2695
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4505
SELECT + 78 + + - 28 DIV - - 47 AS col2
----
78

skipif mysql # not compatible
query I rowsort label-4505
SELECT + 78 + + - 28 / - - 47 AS col2
----
78

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4506
SELECT + CASE + 55 WHEN - 30 * + ( + 17 ) + CAST( NULL AS DECIMAL ) - - + 25 THEN NULL ELSE + 57 - 27 * 79 - - SUM( + ( + ( + 68 ) ) ) + MIN( ALL + + 99 ) END
----
-1909

skipif mysql # not compatible
query I rowsort label-4506
SELECT + CASE + 55 WHEN - 30 * + ( + 17 ) + CAST ( NULL AS REAL ) - - + 25 THEN NULL ELSE + 57 - 27 * 79 - - SUM ( + ( + ( + 68 ) ) ) + MIN ( ALL + + 99 ) END
----
-1909

onlyif mysql # aggregate syntax: 
query I rowsort label-4507
SELECT + MAX( DISTINCT 20 ) * - + 42
----
-840

skipif mysql # not compatible
query I rowsort label-4507
SELECT + MAX ( DISTINCT 20 ) * - + 42
----
-840

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4508
SELECT COALESCE ( 60, - 61, 27 + + 63 * + 82 * 67 ) col2, CAST( - 55 AS SIGNED ) * MIN( ALL + 6 )
----
60
-330

skipif mysql # not compatible
query II rowsort label-4508
SELECT COALESCE ( 60, - 61, 27 + + 63 * + 82 * 67 ) col2, CAST ( - 55 AS INTEGER ) * MIN ( ALL + 6 )
----
60
-330

query I rowsort
SELECT ALL 66 * - 23
----
-1518

query I rowsort
SELECT + 32 * - 15 + - 3 + - 63
----
-546

query I rowsort
SELECT DISTINCT + + 49 AS col2
----
49

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-4512
SELECT - - 67 DIV - - CAST( NULL AS DECIMAL ), ( - COUNT( + + 25 ) ) + 24 DIV COUNT( * ) AS col2
----
NULL
23

skipif mysql # not compatible
query II rowsort label-4512
SELECT - - 67 / - - CAST ( NULL AS REAL ), ( - COUNT ( + + 25 ) ) + 24 / COUNT ( * ) AS col2
----
NULL
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4513
SELECT ALL + + 88 * + 5 + - MIN( - 52 ) - 67 * 89 + - ( 31 ) AS col0
----
-5502

skipif mysql # not compatible
query I rowsort label-4513
SELECT ALL + + 88 * + 5 + - MIN ( - 52 ) - 67 * 89 + - ( 31 ) AS col0
----
-5502

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4514
SELECT + + 7 DIV - ( - 51 ) DIV - COUNT( * ) - + 61 + + - COUNT( * ) * - 61 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4514
SELECT + + 7 / - ( - 51 ) / - COUNT ( * ) - + 61 + + - COUNT ( * ) * - 61 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4515
SELECT - 86 + + 26 AS col0, CASE - 90 WHEN 19 THEN + AVG ( ALL - 97 ) - - COUNT( * ) WHEN 40 * + + 91 THEN NULL END
----
-60
NULL

skipif mysql # not compatible
query II rowsort label-4515
SELECT - 86 + + 26 AS col0, CASE - 90 WHEN 19 THEN + AVG ( ALL - 97 ) - - COUNT ( * ) WHEN 40 * + + 91 THEN NULL END
----
-60
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4516
SELECT + 26 * + + COUNT( DISTINCT - + 48 ) AS col0
----
26

skipif mysql # not compatible
query I rowsort label-4516
SELECT + 26 * + + COUNT ( DISTINCT - + 48 ) AS col0
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-4517
SELECT - 0 + + + 57 col1, - 77 - - COUNT( + 37 ) + ( + 21 )
----
57
-55

skipif mysql # not compatible
query II rowsort label-4517
SELECT - 0 + + + 57 col1, - 77 - - COUNT ( + 37 ) + ( + 21 )
----
57
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4518
SELECT DISTINCT + + 48 * CAST( MIN( DISTINCT + 23 ) AS SIGNED ) * - 51 * - ( + 12 ) - - 32 + - COUNT( * ) - - 92 + 82
----
675853

skipif mysql # not compatible
query I rowsort label-4518
SELECT DISTINCT + + 48 * CAST ( MIN ( DISTINCT + 23 ) AS INTEGER ) * - 51 * - ( + 12 ) - - 32 + - COUNT ( * ) - - 92 + 82
----
675853

onlyif mysql # aggregate syntax: 
query II rowsort label-4519
SELECT DISTINCT + 93 + 18 AS col1, COUNT( * )
----
111
1

skipif mysql # not compatible
query II rowsort label-4519
SELECT DISTINCT + 93 + 18 AS col1, COUNT ( * )
----
111
1

query I rowsort
SELECT ALL + 71 * + + 44 - + - 5
----
3129

onlyif mysql # aggregate syntax: 
query I rowsort label-4521
SELECT NULLIF ( + - COUNT( - 11 ), + 55 )
----
-1

skipif mysql # not compatible
query I rowsort label-4521
SELECT NULLIF ( + - COUNT ( - 11 ), + 55 )
----
-1

query I rowsort
SELECT ALL + 60 + - 88 * 39
----
-3372

query I rowsort
SELECT ALL - ( + + 67 ) + - + 72
----
-139

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4524
SELECT ALL 78 AS col2, - CAST( - + NULLIF ( COALESCE ( + ( - 28 ), 64 + 39 + + + 22 ), - 41 * 52 + 36 ) AS SIGNED ) AS col1
----
78
-28

skipif mysql # not compatible
query II rowsort label-4524
SELECT ALL 78 AS col2, - CAST ( - + NULLIF ( COALESCE ( + ( - 28 ), 64 + 39 + + + 22 ), - 41 * 52 + 36 ) AS INTEGER ) AS col1
----
78
-28

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4525
SELECT ALL - COUNT( * ) - + ( - 21 ) AS col1, 43 DIV 94
----
20
0

skipif mysql # not compatible
query II rowsort label-4525
SELECT ALL - COUNT ( * ) - + ( - 21 ) AS col1, 43 / 94
----
20
0

query II rowsort
SELECT - 38 AS col1, + 2 + 8 AS col2
----
-38
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4527
SELECT 29 * - 76 * + 31 DIV - COUNT( * ) AS col0
----
68324

skipif mysql # not compatible
query I rowsort label-4527
SELECT 29 * - 76 * + 31 / - COUNT ( * ) AS col0
----
68324

query I rowsort
SELECT ALL + 53 * - + 51 AS col1
----
-2703

query I rowsort
SELECT DISTINCT - ( + NULLIF ( + 29, - + 75 ) ) col2
----
-29

query I rowsort
SELECT DISTINCT 67 * - 54
----
-3618

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4531
SELECT ALL - ( - + 86 ) DIV + COUNT( * )
----
86

skipif mysql # not compatible
query I rowsort label-4531
SELECT ALL - ( - + 86 ) / + COUNT ( * )
----
86

query II rowsort
SELECT 58 AS col0, 83 AS col0
----
58
83

onlyif mysql # DIV for integer division: 
query II rowsort label-4533
SELECT + 59, + 15 DIV + 40 AS col2
----
59
0

skipif mysql # not compatible
query II rowsort label-4533
SELECT + 59, + 15 / + 40 AS col2
----
59
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4534
SELECT CASE - + 38 WHEN + 63 * CAST( - 92 AS SIGNED ) / + + 9 THEN NULL WHEN 16 * - 49 * + 52 + + + ( COUNT( * ) ) / ( - - 44 ) THEN + COUNT( * ) * - 33 + + 23 * 34 + - CAST( - 61 AS SIGNED ) END * 68 + - 23 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4534
SELECT CASE - + 38 WHEN + 63 * CAST ( - 92 AS INTEGER ) / + + 9 THEN NULL WHEN 16 * - 49 * + 52 + + + ( COUNT ( * ) ) / ( - - 44 ) THEN + COUNT ( * ) * - 33 + + 23 * 34 + - CAST ( - 61 AS INTEGER ) END * 68 + - 23 AS col1
----
NULL

query I rowsort
SELECT + ( - 15 ) * - NULLIF ( 89, - 32 ) - - - 62 - + NULLIF ( 88, - 6 ) AS col1
----
1185

onlyif mysql # DIV for integer division: 
query I rowsort label-4536
SELECT ALL + 52 DIV + 82 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4536
SELECT ALL + 52 / + 82 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4537
SELECT DISTINCT - - MIN( - - 9 ) + + ( - 47 )
----
-38

skipif mysql # not compatible
query I rowsort label-4537
SELECT DISTINCT - - MIN ( - - 9 ) + + ( - 47 )
----
-38

query I rowsort
SELECT + 21 * - 43 col0
----
-903

query I rowsort
SELECT DISTINCT 60 + - + 9
----
51

query I rowsort
SELECT ALL 74 + - 11
----
63

query I rowsort
SELECT + ( - 23 )
----
-23

query I rowsort
SELECT - 88 * 97
----
-8536

onlyif mysql # aggregate syntax: 
query I rowsort label-4543
SELECT + SUM( - - 23 ) * - - 70 * MAX( ALL + 98 ) - - - 17 + 33 AS col2
----
157796

skipif mysql # not compatible
query I rowsort label-4543
SELECT + SUM ( - - 23 ) * - - 70 * MAX ( ALL + 98 ) - - - 17 + 33 AS col2
----
157796

query I rowsort
SELECT ALL 40 + - 9 + - 67
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-4545
SELECT 19 * ( COUNT( DISTINCT 11 ) ) - + - 38 - - 71 - + 96 + + 60 AS col2
----
92

skipif mysql # not compatible
query I rowsort label-4545
SELECT 19 * ( COUNT ( DISTINCT 11 ) ) - + - 38 - - 71 - + 96 + + 60 AS col2
----
92

onlyif mysql # DIV for integer division: 
query II rowsort label-4546
SELECT - - 54, - 93 DIV 30 AS col0
----
54
-3

skipif mysql # not compatible
query II rowsort label-4546
SELECT - - 54, - 93 / 30 AS col0
----
54
-3

query II rowsort
SELECT ALL 30, 55 + + + 76 * + + 37 col2
----
30
2867

query I rowsort
SELECT - ( + 96 )
----
-96

query I rowsort
SELECT - - ( - 18 ) AS col2
----
-18

query I rowsort
SELECT ALL - 84 + + + 95
----
11

query I rowsort
SELECT 61 * + - 84
----
-5124

onlyif mysql # aggregate syntax: 
query I rowsort label-4552
SELECT - COUNT( * ) + 38 + - 37 * - + 2 AS col0
----
111

skipif mysql # not compatible
query I rowsort label-4552
SELECT - COUNT ( * ) + 38 + - 37 * - + 2 AS col0
----
111

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4553
SELECT CAST( NULL AS SIGNED ) * + + 52 + CAST( - 60 AS SIGNED ) + - + COUNT( * ) * + 65
----
NULL

skipif mysql # not compatible
query I rowsort label-4553
SELECT CAST ( NULL AS INTEGER ) * + + 52 + CAST ( - 60 AS INTEGER ) + - + COUNT ( * ) * + 65
----
NULL

query II rowsort
SELECT 10 * - 31 AS col2, 58
----
-310
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4555
SELECT ( - + CAST( NULL AS SIGNED ) ) + + 52 + - ( - - CASE - + NULLIF ( COUNT( + - 16 ), + ( 39 ) + + AVG ( DISTINCT - CASE + 67 WHEN 54 + + 98 * - 74 THEN + + 70 + - 47 END ) * 57 * + - 85 * - 37 * COUNT( * ) + + 82 * - - AVG ( ALL 2 ) + + - 47 + - 53 ) WHEN 99 THEN + 26 ELSE + 96 * 74 END ) * + COUNT( * ) - - 0 + + + 90
----
NULL

skipif mysql # not compatible
query I rowsort label-4555
SELECT ( - + CAST ( NULL AS INTEGER ) ) + + 52 + - ( - - CASE - + NULLIF ( COUNT ( + - 16 ), + ( 39 ) + + AVG ( DISTINCT - CASE + 67 WHEN 54 + + 98 * - 74 THEN + + 70 + - 47 END ) * 57 * + - 85 * - 37 * COUNT ( * ) + + 82 * - - AVG ( ALL 2 ) + + - 47 + - 53 ) WHEN 99 THEN + 26 ELSE + 96 * 74 END ) * + COUNT ( * ) - - 0 + + + 90
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4556
SELECT COUNT( * ) + - - ( + 68 )
----
69

skipif mysql # not compatible
query I rowsort label-4556
SELECT COUNT ( * ) + - - ( + 68 )
----
69

query I rowsort
SELECT ALL - 21 * + 27 AS col2
----
-567

query I rowsort
SELECT 48 + 58 * + 41
----
2426

query I rowsort
SELECT 64 + 12 * 6 AS col0
----
136

query I rowsort
SELECT 73 + 64 + + 84
----
221

query I rowsort
SELECT 47 * + 17
----
799

query I rowsort
SELECT 68 * - 83 + 18 AS col0
----
-5626

onlyif mysql # aggregate syntax: 
query I rowsort label-4563
SELECT ALL - COUNT( * ) + + 6 AS col1
----
5

skipif mysql # not compatible
query I rowsort label-4563
SELECT ALL - COUNT ( * ) + + 6 AS col1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4564
SELECT ( 12 ) * COUNT( * ) + - COUNT( * ) + + + 42 AS col0
----
53

skipif mysql # not compatible
query I rowsort label-4564
SELECT ( 12 ) * COUNT ( * ) + - COUNT ( * ) + + + 42 AS col0
----
53

query I rowsort
SELECT ALL - COALESCE ( 25, 76 ) AS col1
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-4566
SELECT DISTINCT 45 + + 58 * NULLIF ( - 39, - - 0 / - MAX( DISTINCT + + 80 ) )
----
-2217

skipif mysql # not compatible
query I rowsort label-4566
SELECT DISTINCT 45 + + 58 * NULLIF ( - 39, - - 0 / - MAX ( DISTINCT + + 80 ) )
----
-2217

onlyif mysql # aggregate syntax: 
query I rowsort label-4567
SELECT ALL + + 82 + + + 6 + + - ( + 83 ) * - - SUM( 32 )
----
-2568

skipif mysql # not compatible
query I rowsort label-4567
SELECT ALL + + 82 + + + 6 + + - ( + 83 ) * - - SUM ( 32 )
----
-2568

onlyif mysql # DIV for integer division: 
query I rowsort label-4568
SELECT 28 DIV + 79 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4568
SELECT 28 / + 79 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4569
SELECT DISTINCT - 29 + - + 58 DIV - 76 AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-4569
SELECT DISTINCT - 29 + - + 58 / - 76 AS col0
----
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-4570
SELECT SUM( DISTINCT + - 2 ) AS col0, NULLIF ( - COALESCE ( - 40, - 96 - + COUNT( * ) + - 44 + + 49 ), + 96 + + + 60 ) AS col0
----
-2
40

skipif mysql # not compatible
query II rowsort label-4570
SELECT SUM ( DISTINCT + - 2 ) AS col0, NULLIF ( - COALESCE ( - 40, - 96 - + COUNT ( * ) + - 44 + + 49 ), + 96 + + + 60 ) AS col0
----
-2
40

query I rowsort
SELECT ALL 29 + - - 12 AS col2
----
41

query II rowsort
SELECT 76 * + 74, 39 AS col0
----
5624
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4573
SELECT DISTINCT + 26 + + + 77, + CASE + + 16 WHEN + CAST( 16 AS SIGNED ) + + CAST( - 75 AS DECIMAL ) THEN NULL WHEN + 82 - - NULLIF ( - 28, - 50 ) THEN + COUNT( * ) END / + + 76 * + AVG ( DISTINCT + - 14 ) - 48 * - 67 + COALESCE ( + 66, - 39 * 32 + - 54 + - + 18 - - 24 / + ( - 21 ) + - + 55 * 12 ) AS col0
----
103
NULL

skipif mysql # not compatible
query II rowsort label-4573
SELECT DISTINCT + 26 + + + 77, + CASE + + 16 WHEN + CAST ( 16 AS INTEGER ) + + CAST ( - 75 AS REAL ) THEN NULL WHEN + 82 - - NULLIF ( - 28, - 50 ) THEN + COUNT ( * ) END / + + 76 * + AVG ( DISTINCT + - 14 ) - 48 * - 67 + COALESCE ( + 66, - 39 * 32 + - 54 + - + 18 - - 24 / + ( - 21 ) + - + 55 * 12 ) AS col0
----
103
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4574
SELECT + MAX( + + 2 )
----
2

skipif mysql # not compatible
query I rowsort label-4574
SELECT + MAX ( + + 2 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4575
SELECT + COALESCE ( - 40, 64 - + - 29 * + SUM( - 69 ) + + 5 ) + - + 68
----
-108

skipif mysql # not compatible
query I rowsort label-4575
SELECT + COALESCE ( - 40, 64 - + - 29 * + SUM ( - 69 ) + + 5 ) + - + 68
----
-108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4576
SELECT + 57 + - CAST( + 98 AS SIGNED )
----
-41

skipif mysql # not compatible
query I rowsort label-4576
SELECT + 57 + - CAST ( + 98 AS INTEGER )
----
-41

query I rowsort
SELECT + + 58 + - + 3 AS col0
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-4578
SELECT ALL + 52 - + + 11 AS col1, - COUNT( + 49 ) + + 61 DIV - + ( - 9 ), - - COUNT( * ) AS col1
----
41
5
1

skipif mysql # not compatible
query III rowsort label-4578
SELECT ALL + 52 - + + 11 AS col1, - COUNT ( + 49 ) + + 61 / - + ( - 9 ), - - COUNT ( * ) AS col1
----
41
5
1

query II rowsort
SELECT + 33 + + 20 * - 75 AS col1, 30
----
-1467
30

query I rowsort
SELECT + 45 * - 67 AS col2
----
-3015

onlyif mysql # aggregate syntax: 
query I rowsort label-4581
SELECT - MAX( + 26 ) AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-4581
SELECT - MAX ( + 26 ) AS col2
----
-26

query I rowsort
SELECT ALL 3 * - 42 AS col0
----
-126

query II rowsort
SELECT ALL 43 AS col0, 33
----
43
33

query I rowsort
SELECT - ( + 15 )
----
-15

query I rowsort
SELECT + 14 * - - 43
----
602

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4586
SELECT + 25 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4586
SELECT + 25 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 5 * 34 + + + 0
----
170

onlyif mysql # aggregate syntax: 
query I rowsort label-4588
SELECT ALL 73 * COUNT( * )
----
73

skipif mysql # not compatible
query I rowsort label-4588
SELECT ALL 73 * COUNT ( * )
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4589
SELECT + MAX( DISTINCT - 94 ) DIV - ( - 67 ) + + - MAX( - ( - 77 ) ) AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-4589
SELECT + MAX ( DISTINCT - 94 ) / - ( - 67 ) + + - MAX ( - ( - 77 ) ) AS col2
----
-78

onlyif mysql # aggregate syntax: 
query II rowsort label-4590
SELECT + - 65, + MIN( DISTINCT - 13 ) AS col1
----
-65
-13

skipif mysql # not compatible
query II rowsort label-4590
SELECT + - 65, + MIN ( DISTINCT - 13 ) AS col1
----
-65
-13

query I rowsort
SELECT - + 63 + 49
----
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4592
SELECT - COALESCE ( - - COALESCE ( 25, 25 + - - MIN( + 32 ), ( + + COUNT( * ) ), + 68 ), + 76 DIV - 48 * + 93 )
----
-25

skipif mysql # not compatible
query I rowsort label-4592
SELECT - COALESCE ( - - COALESCE ( 25, 25 + - - MIN ( + 32 ), ( + + COUNT ( * ) ), + 68 ), + 76 / - 48 * + 93 )
----
-25

query I rowsort
SELECT DISTINCT + - 18 AS col0
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-4594
SELECT DISTINCT + CASE ( - 27 ) WHEN + COUNT( ALL - 60 ) + - ( - - 9 ) + + COUNT( * ) THEN + + 27 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4594
SELECT DISTINCT + CASE ( - 27 ) WHEN + COUNT ( ALL - 60 ) + - ( - - 9 ) + + COUNT ( * ) THEN + + 27 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT - + 70 + + 16
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-4596
SELECT ALL COUNT( ALL + - 66 ) * + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-4596
SELECT ALL COUNT ( ALL + - 66 ) * + + COUNT ( * )
----
1

query I rowsort
SELECT - 33 * + - ( - 55 ) AS col2
----
-1815

query I rowsort
SELECT ALL + + 75 * - 26 + + 13 + + 5
----
-1932

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4599
SELECT CAST( + - ( ( - 86 ) ) AS SIGNED ) col2
----
86

skipif mysql # not compatible
query I rowsort label-4599
SELECT CAST ( + - ( ( - 86 ) ) AS INTEGER ) col2
----
86

query I rowsort
SELECT + + 47 col0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4601
SELECT - 8 * - 97 + + + COUNT( * ) - 46 AS col1
----
731

skipif mysql # not compatible
query I rowsort label-4601
SELECT - 8 * - 97 + + + COUNT ( * ) - 46 AS col1
----
731

onlyif mysql # aggregate syntax: 
query II rowsort label-4602
SELECT + + 12 * + + SUM( - 51 ), MAX( DISTINCT - 39 ) AS col1
----
-612
-39

skipif mysql # not compatible
query II rowsort label-4602
SELECT + + 12 * + + SUM ( - 51 ), MAX ( DISTINCT - 39 ) AS col1
----
-612
-39

query I rowsort
SELECT - 66 * + 22 - - 59 AS col1
----
-1393

query I rowsort
SELECT - 21 - + - 68 AS col0
----
47

query II rowsort
SELECT ALL - 94 * + 77 AS col0, 92 * - + ( + 17 ) * - 91 AS col2
----
-7238
142324

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4606
SELECT DISTINCT CAST( - 86 AS SIGNED ) AS col1
----
-86

skipif mysql # not compatible
query I rowsort label-4606
SELECT DISTINCT CAST ( - 86 AS INTEGER ) AS col1
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-4607
SELECT - COALESCE ( + 80, + COALESCE ( - 42, - 37 ), - CASE - 48 WHEN + COUNT( * ) * + COUNT( * ) + 9 + 54 THEN NULL WHEN 77 THEN - 61 END - COUNT( * ) * COUNT( * ) + 15 * + - 54 ) AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-4607
SELECT - COALESCE ( + 80, + COALESCE ( - 42, - 37 ), - CASE - 48 WHEN + COUNT ( * ) * + COUNT ( * ) + 9 + 54 THEN NULL WHEN 77 THEN - 61 END - COUNT ( * ) * COUNT ( * ) + 15 * + - 54 ) AS col2
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4608
SELECT - 62 + 96 - - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) - - + ( 67 ) * MIN( DISTINCT + 76 ) + 36 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4608
SELECT - 62 + 96 - - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) - - + ( 67 ) * MIN ( DISTINCT + 76 ) + 36 col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4609
SELECT + ( + - COUNT( * ) ) - - 74 - CAST( - COUNT( * ) AS SIGNED ) AS col2
----
74

skipif mysql # not compatible
query I rowsort label-4609
SELECT + ( + - COUNT ( * ) ) - - 74 - CAST ( - COUNT ( * ) AS INTEGER ) AS col2
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4610
SELECT - 38 + - + SUM( DISTINCT - 74 )
----
36

skipif mysql # not compatible
query I rowsort label-4610
SELECT - 38 + - + SUM ( DISTINCT - 74 )
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4611
SELECT 74, + COALESCE ( + 92, - 56 * + 19, - 96 ) - CAST( - 98 AS SIGNED ) AS col0
----
74
190

skipif mysql # not compatible
query II rowsort label-4611
SELECT 74, + COALESCE ( + 92, - 56 * + 19, - 96 ) - CAST ( - 98 AS INTEGER ) AS col0
----
74
190

onlyif mysql # aggregate syntax: 
query II rowsort label-4612
SELECT - COUNT( * ), 39 AS col1
----
-1
39

skipif mysql # not compatible
query II rowsort label-4612
SELECT - COUNT ( * ), 39 AS col1
----
-1
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4613
SELECT - CAST( + 23 AS SIGNED ) AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-4613
SELECT - CAST ( + 23 AS INTEGER ) AS col2
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-4614
SELECT DISTINCT 43 + - COUNT( * ) AS col2
----
42

skipif mysql # not compatible
query I rowsort label-4614
SELECT DISTINCT 43 + - COUNT ( * ) AS col2
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4615
SELECT - CAST( + ( + 21 ) AS SIGNED ) AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-4615
SELECT - CAST ( + ( + 21 ) AS INTEGER ) AS col2
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4616
SELECT ALL 45 / - CAST( NULL AS SIGNED ) + - 44 * 89 * + AVG ( DISTINCT - + 50 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4616
SELECT ALL 45 / - CAST ( NULL AS INTEGER ) + - 44 * 89 * + AVG ( DISTINCT - + 50 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4617
SELECT - - 13 * + 17 + 9 + - CASE + NULLIF ( - 27, COUNT( * ) * - 57 ) WHEN + - SUM( 51 ) THEN NULL WHEN - 13 / + 10 * COUNT( * ) + - + COUNT( * ) * - NULLIF ( - 2, - ( 87 ) * - 85 ) THEN + + 56 * + + 28 + - + 96 END + + SUM( ALL + + 16 ) * - 2 * - 1 * - - AVG ( + 71 ) * 89 AS col1, - 43
----
NULL
-43

skipif mysql # not compatible
query II rowsort label-4617
SELECT - - 13 * + 17 + 9 + - CASE + NULLIF ( - 27, COUNT ( * ) * - 57 ) WHEN + - SUM ( 51 ) THEN NULL WHEN - 13 / + 10 * COUNT ( * ) + - + COUNT ( * ) * - NULLIF ( - 2, - ( 87 ) * - 85 ) THEN + + 56 * + + 28 + - + 96 END + + SUM ( ALL + + 16 ) * - 2 * - 1 * - - AVG ( + 71 ) * 89 AS col1, - 43
----
NULL
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-4618
SELECT COALESCE ( - ( - 89 ), + + 60 ) AS col2, + COUNT( * ) col2
----
89
1

skipif mysql # not compatible
query II rowsort label-4618
SELECT COALESCE ( - ( - 89 ), + + 60 ) AS col2, + COUNT ( * ) col2
----
89
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4619
SELECT ALL 51 DIV - - 55
----
0

skipif mysql # not compatible
query I rowsort label-4619
SELECT ALL 51 / - - 55
----
0

query II rowsort
SELECT 50, 2 * 25 AS col1
----
50
50

query II rowsort
SELECT + - 6 col2, 65
----
-6
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-4622
SELECT MIN( - + 41 ) AS col2, + COUNT( * ) DIV - 15, + + COUNT( * ) * - 77 + + 89 - - 86 + - + 49 * + 70 * - COUNT( + 16 ) * + + NULLIF ( + + 80, - COUNT( * ) ) AS col0
----
-41
0
274498

skipif mysql # not compatible
query III rowsort label-4622
SELECT MIN ( - + 41 ) AS col2, + COUNT ( * ) / - 15, + + COUNT ( * ) * - 77 + + 89 - - 86 + - + 49 * + 70 * - COUNT ( + 16 ) * + + NULLIF ( + + 80, - COUNT ( * ) ) AS col0
----
-41
0
274498

onlyif mysql # aggregate syntax: 
query I rowsort label-4623
SELECT + 17 * 74 + COUNT( * ) AS col2
----
1259

skipif mysql # not compatible
query I rowsort label-4623
SELECT + 17 * 74 + COUNT ( * ) AS col2
----
1259

query I rowsort
SELECT + 56 + - - 41 AS col2
----
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4625
SELECT - 49 AS col1, - COALESCE ( - CASE + + 91 WHEN 77 DIV + COUNT( * ) + - 55 THEN - + ( COALESCE ( 28, 27, - 88 DIV 78 * - 32 + - 83 ) ) WHEN - 27 DIV + CASE - - ( - + 86 ) WHEN - 50 * + 7 * + 23 THEN NULL ELSE COALESCE ( 22, + 44 + - 97 + - MIN( ALL ( 67 ) ) ) END THEN 28 * + 96 WHEN + 48 THEN - 85 + - - 60 + + SUM( 91 ) ELSE - 88 DIV 25 END, + 38, + 40 ) * 89
----
-49
-267

skipif mysql # not compatible
query II rowsort label-4625
SELECT - 49 AS col1, - COALESCE ( - CASE + + 91 WHEN 77 / + COUNT ( * ) + - 55 THEN - + ( COALESCE ( 28, 27, - 88 / 78 * - 32 + - 83 ) ) WHEN - 27 / + CASE - - ( - + 86 ) WHEN - 50 * + 7 * + 23 THEN NULL ELSE COALESCE ( 22, + 44 + - 97 + - MIN ( ALL ( 67 ) ) ) END THEN 28 * + 96 WHEN + 48 THEN - 85 + - - 60 + + SUM ( 91 ) ELSE - 88 / 25 END, + 38, + 40 ) * 89
----
-49
-267

query II rowsort
SELECT 93 AS col0, 52 + + - 32
----
93
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4627
SELECT - - 18 * 56 * + COUNT( * ) * + - ( - + COUNT( * ) ) + 35 + - 62
----
981

skipif mysql # not compatible
query I rowsort label-4627
SELECT - - 18 * 56 * + COUNT ( * ) * + - ( - + COUNT ( * ) ) + 35 + - 62
----
981

query I rowsort
SELECT + ( - 2 ) AS col1
----
-2

query I rowsort
SELECT - 39 * - 40 + + - 91 + - 33
----
1436

onlyif mysql # aggregate syntax: 
query I rowsort label-4630
SELECT 38 + - 26 + COALESCE ( + 98, + + 65 ) * COUNT( * )
----
110

skipif mysql # not compatible
query I rowsort label-4630
SELECT 38 + - 26 + COALESCE ( + 98, + + 65 ) * COUNT ( * )
----
110

query I rowsort
SELECT ALL + 8 * - 78 AS col2
----
-624

query I rowsort
SELECT 48 * + NULLIF ( - 32, - - 25 + + 96 )
----
-1536

query I rowsort
SELECT ALL + ( 88 ) + - + 66 AS col2
----
22

query I rowsort
SELECT 54 + - + 9 + 4 * - ( 49 ) AS col2
----
-151

onlyif mysql # aggregate syntax: 
query I rowsort label-4635
SELECT 38 * - SUM( 77 )
----
-2926

skipif mysql # not compatible
query I rowsort label-4635
SELECT 38 * - SUM ( 77 )
----
-2926

onlyif mysql # aggregate syntax: 
query I rowsort label-4636
SELECT + 4 * + + 28 * - 72 + + + COUNT( * ) AS col1
----
-8063

skipif mysql # not compatible
query I rowsort label-4636
SELECT + 4 * + + 28 * - 72 + + + COUNT ( * ) AS col1
----
-8063

onlyif mysql # aggregate syntax: 
query I rowsort label-4637
SELECT DISTINCT + 91 + + COUNT( * ) * + 50 * - 44 AS col2
----
-2109

skipif mysql # not compatible
query I rowsort label-4637
SELECT DISTINCT + 91 + + COUNT ( * ) * + 50 * - 44 AS col2
----
-2109

onlyif mysql # aggregate syntax: 
query II rowsort label-4638
SELECT ALL + 46 * CASE - 30 WHEN - + 43 THEN NULL WHEN + - 14 THEN 33 + SUM( DISTINCT + 67 ) * + + ( - 95 ) ELSE NULL END AS col2, COUNT( * ) AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-4638
SELECT ALL + 46 * CASE - 30 WHEN - + 43 THEN NULL WHEN + - 14 THEN 33 + SUM ( DISTINCT + 67 ) * + + ( - 95 ) ELSE NULL END AS col2, COUNT ( * ) AS col2
----
NULL
1

query I rowsort
SELECT DISTINCT - 91 + 81
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-4640
SELECT ALL 55 DIV 40 DIV + 58
----
0

skipif mysql # not compatible
query I rowsort label-4640
SELECT ALL 55 / 40 / + 58
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4641
SELECT 89 * - - ( - COUNT( * ) ) * COUNT( * ) / CASE WHEN NOT - 41 IS NOT NULL THEN COUNT( * ) / - 25 * 36 + - 27 + - 90 + 17 * + - 41 * 13 * + + MAX( - 71 ) / - - COUNT( * ) * COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4641
SELECT 89 * - - ( - COUNT ( * ) ) * COUNT ( * ) / CASE WHEN NOT - 41 IS NOT NULL THEN COUNT ( * ) / - 25 * 36 + - 27 + - 90 + 17 * + - 41 * 13 * + + MAX ( - 71 ) / - - COUNT ( * ) * COUNT ( * ) ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT - 0 * + 44 * - - 29 col1
----
0

query II rowsort
SELECT - COALESCE ( + 61, + 92 * - 43 + - 72 + - ( 6 ) * - + 15 ) AS col0, 50 col1
----
-61
50

query I rowsort
SELECT DISTINCT - ( - - 5 )
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4645
SELECT 5 * - - COALESCE ( - ( - - 11 ), - 32 DIV - COUNT( * ) + - + 77, + - 49 ) + - - 92
----
37

skipif mysql # not compatible
query I rowsort label-4645
SELECT 5 * - - COALESCE ( - ( - - 11 ), - 32 / - COUNT ( * ) + - + 77, + - 49 ) + - - 92
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4646
SELECT ALL - 6 * + - 92 * + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4646
SELECT ALL - 6 * + - 92 * + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4647
SELECT + - 93 DIV + 12 + NULLIF ( + MIN( + 43 ), - COUNT( * ) ) + 19 AS col1, CAST( NULL AS SIGNED ) AS col0
----
55
NULL

skipif mysql # not compatible
query II rowsort label-4647
SELECT + - 93 / + 12 + NULLIF ( + MIN ( + 43 ), - COUNT ( * ) ) + 19 AS col1, CAST ( NULL AS INTEGER ) AS col0
----
55
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4648
SELECT 84 * + - 55 * + + MAX( DISTINCT + 55 ) AS col2
----
-254100

skipif mysql # not compatible
query I rowsort label-4648
SELECT 84 * + - 55 * + + MAX ( DISTINCT + 55 ) AS col2
----
-254100

onlyif mysql # aggregate syntax: 
query II rowsort label-4649
SELECT - 91 * - 82 + - SUM( DISTINCT + - 20 ) + - - ( + COUNT( * ) ) + + COUNT( * ) AS col0, 94 AS col1
----
7484
94

skipif mysql # not compatible
query II rowsort label-4649
SELECT - 91 * - 82 + - SUM ( DISTINCT + - 20 ) + - - ( + COUNT ( * ) ) + + COUNT ( * ) AS col0, 94 AS col1
----
7484
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4650
SELECT - 28 DIV 74 + 26 + - - 86 * + - COALESCE ( + COUNT( * ), + 63 * 48 ) - - + COUNT( * )
----
-59

skipif mysql # not compatible
query I rowsort label-4650
SELECT - 28 / 74 + 26 + - - 86 * + - COALESCE ( + COUNT ( * ), + 63 * 48 ) - - + COUNT ( * )
----
-59

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4651
SELECT DISTINCT + 23 DIV - - 80 AS col1, + CAST( NULL AS SIGNED )
----
0
NULL

skipif mysql # not compatible
query II rowsort label-4651
SELECT DISTINCT + 23 / - - 80 AS col1, + CAST ( NULL AS INTEGER )
----
0
NULL

query I rowsort
SELECT ALL - + 7 AS col1
----
-7

query I rowsort
SELECT + 90 * + + 52 AS col2
----
4680

onlyif mysql # aggregate syntax: 
query II rowsort label-4654
SELECT - 36 * + - 1 + + + COUNT( * ) col2, 80
----
37
80

skipif mysql # not compatible
query II rowsort label-4654
SELECT - 36 * + - 1 + + + COUNT ( * ) col2, 80
----
37
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4655
SELECT ALL - CAST( NULL AS SIGNED ) + - 46
----
NULL

skipif mysql # not compatible
query I rowsort label-4655
SELECT ALL - CAST ( NULL AS INTEGER ) + - 46
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4656
SELECT ( 40 ) DIV - COUNT( * ) AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-4656
SELECT ( 40 ) / - COUNT ( * ) AS col1
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-4657
SELECT ALL + COUNT( * ) + 25
----
26

skipif mysql # not compatible
query I rowsort label-4657
SELECT ALL + COUNT ( * ) + 25
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4658
SELECT DISTINCT CAST( 79 AS SIGNED ) + - MAX( ALL - + 18 ) AS col1
----
97

skipif mysql # not compatible
query I rowsort label-4658
SELECT DISTINCT CAST ( 79 AS INTEGER ) + - MAX ( ALL - + 18 ) AS col1
----
97

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4659
SELECT DISTINCT 34, + 13 * 73 / 20 * + 27 * + CASE 18 WHEN + 62 * - 62 THEN - 6 WHEN + 95 THEN NULL WHEN + 60 * + 17 * 17 THEN NULL WHEN 21 * + + COUNT( * ) / COUNT( * ) + - CASE + + NULLIF ( - 90, + - 72 ) WHEN + CAST( - 6 AS DECIMAL ) * 15 * COUNT( * ) THEN + - AVG ( 79 ) - - + 15 * - NULLIF ( - CASE - + 2 WHEN - 64 THEN - 97 END, - 21 ) + + COALESCE ( + 11, + - COUNT( - + 16 ) * 14 + - 1, - SUM( ALL 56 ) ) + - 68 * 95 WHEN + 6 + 37 * + 31 THEN ( - 14 ) - - 33 ELSE NULL END + - ( 8 ) THEN NULLIF ( 48, 78 ) * + COUNT( * ) END AS col0
----
34
NULL

skipif mysql # not compatible
query II rowsort label-4659
SELECT DISTINCT 34, + 13 * 73 / 20 * + 27 * + CASE 18 WHEN + 62 * - 62 THEN - 6 WHEN + 95 THEN NULL WHEN + 60 * + 17 * 17 THEN NULL WHEN 21 * + + COUNT ( * ) / COUNT ( * ) + - CASE + + NULLIF ( - 90, + - 72 ) WHEN + CAST ( - 6 AS REAL ) * 15 * COUNT ( * ) THEN + - AVG ( 79 ) - - + 15 * - NULLIF ( - CASE - + 2 WHEN - 64 THEN - 97 END, - 21 ) + + COALESCE ( + 11, + - COUNT ( - + 16 ) * 14 + - 1, - SUM ( ALL 56 ) ) + - 68 * 95 WHEN + 6 + 37 * + 31 THEN ( - 14 ) - - 33 ELSE NULL END + - ( 8 ) THEN NULLIF ( 48, 78 ) * + COUNT ( * ) END AS col0
----
34
NULL

query I rowsort
SELECT ALL + 4 + - + 26 + + + 70 * + 58
----
4038

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4661
SELECT CAST( - 24 AS SIGNED ) - + COALESCE ( 10, - - COUNT( * ), + 89 ) + - 79 DIV - - COUNT( * ) AS col2
----
-113

skipif mysql # not compatible
query I rowsort label-4661
SELECT CAST ( - 24 AS INTEGER ) - + COALESCE ( 10, - - COUNT ( * ), + 89 ) + - 79 / - - COUNT ( * ) AS col2
----
-113

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4662
SELECT DISTINCT CAST( NULL AS SIGNED ) * - - 34
----
NULL

skipif mysql # not compatible
query I rowsort label-4662
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - - 34
----
NULL

query I rowsort
SELECT ALL 90 + + - 83 col1
----
7

query I rowsort
SELECT DISTINCT - 60 * 7
----
-420

query II rowsort
SELECT 23, + 71 * - 8 AS col0
----
23
-568

query I rowsort
SELECT 63 + + 6
----
69

query I rowsort
SELECT 98 - 80
----
18

query I rowsort
SELECT ALL - 69 * 47 AS col1
----
-3243

onlyif mysql # aggregate syntax: 
query I rowsort label-4669
SELECT ALL MAX( + 8 )
----
8

skipif mysql # not compatible
query I rowsort label-4669
SELECT ALL MAX ( + 8 )
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4670
SELECT 8 - - COUNT( * ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-4670
SELECT 8 - - COUNT ( * ) AS col1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4671
SELECT DISTINCT MIN( DISTINCT + 6 )
----
6

skipif mysql # not compatible
query I rowsort label-4671
SELECT DISTINCT MIN ( DISTINCT + 6 )
----
6

query I rowsort
SELECT 88 + - - 47
----
135

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4673
SELECT ( - 12 ) + - 99 + + 6 / - NULLIF ( + COUNT( + 37 ), CAST( + COUNT( * ) AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4673
SELECT ( - 12 ) + - 99 + + 6 / - NULLIF ( + COUNT ( + 37 ), CAST ( + COUNT ( * ) AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4674
SELECT DISTINCT + 10 * - 40 + - - COUNT( * ) AS col1, 44 DIV + - CAST( - 40 AS SIGNED ) + - 32
----
-399
-31

skipif mysql # not compatible
query II rowsort label-4674
SELECT DISTINCT + 10 * - 40 + - - COUNT ( * ) AS col1, 44 / + - CAST ( - 40 AS INTEGER ) + - 32
----
-399
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-4675
SELECT ALL - MAX( DISTINCT + 57 ) AS col0
----
-57

skipif mysql # not compatible
query I rowsort label-4675
SELECT ALL - MAX ( DISTINCT + 57 ) AS col0
----
-57

query III rowsort
SELECT - + ( + 1 ) + + 68 AS col0, + 75, + + 81 col2
----
67
75
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4677
SELECT - 86 * + + 96 - - - 61 DIV - + 93 + - + COUNT( ALL + 74 ) + - 95 AS col2
----
-8352

skipif mysql # not compatible
query I rowsort label-4677
SELECT - 86 * + + 96 - - - 61 / - + 93 + - + COUNT ( ALL + 74 ) + - 95 AS col2
----
-8352

query I rowsort
SELECT - 25 + + 14 + - + 54
----
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4679
SELECT COUNT( * ) AS col2, 42 DIV 71 + 0 AS col1
----
1
0

skipif mysql # not compatible
query II rowsort label-4679
SELECT COUNT ( * ) AS col2, 42 / 71 + 0 AS col1
----
1
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4680
SELECT - - COALESCE ( CAST( NULL AS SIGNED ), + CAST( NULL AS SIGNED ), + 71 ) * - 9 * 40 + - 37
----
-25597

skipif mysql # not compatible
query I rowsort label-4680
SELECT - - COALESCE ( CAST ( NULL AS INTEGER ), + CAST ( NULL AS INTEGER ), + 71 ) * - 9 * 40 + - 37
----
-25597

query I rowsort
SELECT + + 0 * - + 58 col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4682
SELECT 60 AS col0, - COUNT( DISTINCT 14 ) DIV - - 62 AS col0
----
60
0

skipif mysql # not compatible
query II rowsort label-4682
SELECT 60 AS col0, - COUNT ( DISTINCT 14 ) / - - 62 AS col0
----
60
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4683
SELECT DISTINCT + 60 * + NULLIF ( + 32, - 25 * - - 92 + + + 28 - - 16 * + - 5 ) + 68 DIV - 86
----
1920

skipif mysql # not compatible
query I rowsort label-4683
SELECT DISTINCT + 60 * + NULLIF ( + 32, - 25 * - - 92 + + + 28 - - 16 * + - 5 ) + 68 / - 86
----
1920

query I rowsort
SELECT ( - - 38 )
----
38

query II rowsort
SELECT ALL + 45 * - + ( 70 ), + 13 AS col1
----
-3150
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4686
SELECT + 88 * 24 + + + COUNT( * ) AS col1
----
2113

skipif mysql # not compatible
query I rowsort label-4686
SELECT + 88 * 24 + + + COUNT ( * ) AS col1
----
2113

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4687
SELECT - COALESCE ( + 84, 63 + + - 10 * + - 24 DIV - + 65 + - 60 - + MIN( 38 ), 4 ) - - 60 + + 91 - - 55 AS col0, MAX( DISTINCT 72 ) * + + SUM( 68 ) AS col1
----
122
4896

skipif mysql # not compatible
query II rowsort label-4687
SELECT - COALESCE ( + 84, 63 + + - 10 * + - 24 / - + 65 + - 60 - + MIN ( 38 ), 4 ) - - 60 + + 91 - - 55 AS col0, MAX ( DISTINCT 72 ) * + + SUM ( 68 ) AS col1
----
122
4896

query I rowsort
SELECT - 54 + - 77 * 26 AS col2
----
-2056

onlyif mysql # aggregate syntax: 
query I rowsort label-4689
SELECT COALESCE ( - 13, SUM( DISTINCT 80 ) ) * 97 + + 83 + - 70 * + COUNT( DISTINCT + - ( + + 48 ) ) * + 32 + + - NULLIF ( + 99, + 91 ) AS col1
----
-3517

skipif mysql # not compatible
query I rowsort label-4689
SELECT COALESCE ( - 13, SUM ( DISTINCT 80 ) ) * 97 + + 83 + - 70 * + COUNT ( DISTINCT + - ( + + 48 ) ) * + 32 + + - NULLIF ( + 99, + 91 ) AS col1
----
-3517

onlyif mysql # aggregate syntax: 
query I rowsort label-4690
SELECT CASE CASE - - COUNT( * ) WHEN + - 90 / COUNT( * ) THEN NULL ELSE + - 47 END WHEN 80 THEN + 39 * + COUNT( * ) * - 76 + + 5 * + - 95 ELSE - 86 + - NULLIF ( - COUNT( * ), - 63 - - + 88 ) END
----
-85

skipif mysql # not compatible
query I rowsort label-4690
SELECT CASE CASE - - COUNT ( * ) WHEN + - 90 / COUNT ( * ) THEN NULL ELSE + - 47 END WHEN 80 THEN + 39 * + COUNT ( * ) * - 76 + + 5 * + - 95 ELSE - 86 + - NULLIF ( - COUNT ( * ), - 63 - - + 88 ) END
----
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4691
SELECT DISTINCT CAST( NULL AS SIGNED ) * 80 * + - 6 * + COUNT( * ) * 56 / 24 + 88 * + COALESCE ( + - 10, + + 71, + 73 * + - 40 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4691
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 80 * + - 6 * + COUNT ( * ) * 56 / 24 + 88 * + COALESCE ( + - 10, + + 71, + 73 * + - 40 )
----
NULL

query I rowsort
SELECT + 3 * 53
----
159

onlyif mysql # aggregate syntax: 
query I rowsort label-4693
SELECT MAX( ALL 32 ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-4693
SELECT MAX ( ALL 32 ) AS col0
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4694
SELECT ALL 78 * 65 + + - 39 + - CAST( - 21 AS SIGNED ) * - 4
----
4947

skipif mysql # not compatible
query I rowsort label-4694
SELECT ALL 78 * 65 + + - 39 + - CAST ( - 21 AS INTEGER ) * - 4
----
4947

onlyif mysql # aggregate syntax: 
query I rowsort label-4695
SELECT DISTINCT + MAX( - - 34 ) col2
----
34

skipif mysql # not compatible
query I rowsort label-4695
SELECT DISTINCT + MAX ( - - 34 ) col2
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4696
SELECT ALL + CAST( - CAST( - 34 AS SIGNED ) AS SIGNED )
----
34

skipif mysql # not compatible
query I rowsort label-4696
SELECT ALL + CAST ( - CAST ( - 34 AS INTEGER ) AS INTEGER )
----
34

query I rowsort
SELECT + 67 - 75
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-4698
SELECT ALL 79 * 35 * COUNT( * ) AS col0
----
2765

skipif mysql # not compatible
query I rowsort label-4698
SELECT ALL 79 * 35 * COUNT ( * ) AS col0
----
2765

query II rowsort
SELECT - ( + 90 ) AS col0, 63
----
-90
63

query I rowsort
SELECT + COALESCE ( 38, - + 25 * - 82, + 35 ) * + + 48 AS col2
----
1824

query I rowsort
SELECT + CASE + + 13 WHEN + 53 THEN + 42 END + 51 - + 31 * + COALESCE ( + 62, 46 / + + 8 * - 84, - 41 * - 27 )
----
NULL

query I rowsort
SELECT ALL 19 * - ( 3 ) AS col0
----
-57

query I rowsort
SELECT + 43 * 49 col0
----
2107

onlyif mysql # aggregate syntax: 
query I rowsort label-4704
SELECT - 7 + - - 58 + - 14 + - + 43 * + 96 * - 68 - + COUNT( * ) + + + 47 AS col2
----
280787

skipif mysql # not compatible
query I rowsort label-4704
SELECT - 7 + - - 58 + - 14 + - + 43 * + 96 * - 68 - + COUNT ( * ) + + + 47 AS col2
----
280787

onlyif mysql # aggregate syntax: 
query I rowsort label-4705
SELECT ALL MIN( 38 ) col2
----
38

skipif mysql # not compatible
query I rowsort label-4705
SELECT ALL MIN ( 38 ) col2
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-4706
SELECT - ( - - SUM( ALL + 50 ) ) AS col1
----
-50

skipif mysql # not compatible
query I rowsort label-4706
SELECT - ( - - SUM ( ALL + 50 ) ) AS col1
----
-50

query I rowsort
SELECT - ( 42 )
----
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-4708
SELECT ALL COALESCE ( + 71, + + 92 * + 61, + COUNT( * ) ) AS col1, + 39 AS col0
----
71
39

skipif mysql # not compatible
query II rowsort label-4708
SELECT ALL COALESCE ( + 71, + + 92 * + 61, + COUNT ( * ) ) AS col1, + 39 AS col0
----
71
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4709
SELECT ALL + CAST( 96 AS SIGNED ) col2, 98 * - COUNT( * ) * - 55
----
96
5390

skipif mysql # not compatible
query II rowsort label-4709
SELECT ALL + CAST ( 96 AS INTEGER ) col2, 98 * - COUNT ( * ) * - 55
----
96
5390

onlyif mysql # aggregate syntax: 
query I rowsort label-4710
SELECT DISTINCT COALESCE ( + 82, + - 99 * - - 52 + - 26 + COUNT( * ) - 46 * - 89 )
----
82

skipif mysql # not compatible
query I rowsort label-4710
SELECT DISTINCT COALESCE ( + 82, + - 99 * - - 52 + - 26 + COUNT ( * ) - 46 * - 89 )
----
82

query I rowsort
SELECT - 61 * 42
----
-2562

onlyif mysql # aggregate syntax: 
query I rowsort label-4712
SELECT COALESCE ( CASE 85 WHEN + + MAX( - 67 ) THEN NULL ELSE - COUNT( * ) + + 66 END, - COUNT( * ) ) AS col0
----
65

skipif mysql # not compatible
query I rowsort label-4712
SELECT COALESCE ( CASE 85 WHEN + + MAX ( - 67 ) THEN NULL ELSE - COUNT ( * ) + + 66 END, - COUNT ( * ) ) AS col0
----
65

onlyif mysql # DIV for integer division: 
query I rowsort label-4713
SELECT ALL + 89 DIV 15 col0
----
5

skipif mysql # not compatible
query I rowsort label-4713
SELECT ALL + 89 / 15 col0
----
5

query I rowsort
SELECT + 14 - - + 80
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4715
SELECT DISTINCT - + MAX( + CAST( NULL AS SIGNED ) ) * 27 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4715
SELECT DISTINCT - + MAX ( + CAST ( NULL AS INTEGER ) ) * 27 AS col2
----
NULL

query II rowsort
SELECT + 27 * + 44 AS col2, 95 - + 79
----
1188
16

onlyif mysql # DIV for integer division: 
query I rowsort label-4717
SELECT - - 29 DIV 93 + + 5 AS col0
----
5

skipif mysql # not compatible
query I rowsort label-4717
SELECT - - 29 / 93 + + 5 AS col0
----
5

query I rowsort
SELECT + NULLIF ( 49, + 89 )
----
49

query I rowsort
SELECT DISTINCT + 96 + - 56 AS col2
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4720
SELECT - SUM( + 11 ) / + CASE - 62 WHEN - - 31 THEN 68 WHEN + 49 + CAST( NULL AS DECIMAL ) THEN CAST( NULL AS SIGNED ) + - 53 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4720
SELECT - SUM ( + 11 ) / + CASE - 62 WHEN - - 31 THEN 68 WHEN + 49 + CAST ( NULL AS REAL ) THEN CAST ( NULL AS INTEGER ) + - 53 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4721
SELECT DISTINCT - 62 DIV - 98 + + + 14 + - 99 * - - 50
----
-4936

skipif mysql # not compatible
query I rowsort label-4721
SELECT DISTINCT - 62 / - 98 + + + 14 + - 99 * - - 50
----
-4936

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4722
SELECT ALL + 27 DIV - 7 * + COUNT( * ) + 18 + + - 59 + - 20 AS col2
----
-64

skipif mysql # not compatible
query I rowsort label-4722
SELECT ALL + 27 / - 7 * + COUNT ( * ) + 18 + + - 59 + - 20 AS col2
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-4723
SELECT DISTINCT + + CASE - 45 WHEN SUM( - 54 ) THEN NULL WHEN - - 35 THEN - 30 ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4723
SELECT DISTINCT + + CASE - 45 WHEN SUM ( - 54 ) THEN NULL WHEN - - 35 THEN - 30 ELSE NULL END col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4724
SELECT ALL + 13 DIV 78 * + 21 * - 0 col2
----
0

skipif mysql # not compatible
query I rowsort label-4724
SELECT ALL + 13 / 78 * + 21 * - 0 col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4725
SELECT - + 8 DIV 63 + + 36
----
36

skipif mysql # not compatible
query I rowsort label-4725
SELECT - + 8 / 63 + + 36
----
36

query I rowsort
SELECT + ( + 46 ) AS col1
----
46

query I rowsort
SELECT + - 27 * - 44
----
1188

query I rowsort
SELECT ( + + 34 )
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-4729
SELECT DISTINCT - 53 * + - COUNT( * ) - + + 49 * 12 + - + 50 * 32 col1
----
-2135

skipif mysql # not compatible
query I rowsort label-4729
SELECT DISTINCT - 53 * + - COUNT ( * ) - + + 49 * 12 + - + 50 * 32 col1
----
-2135

onlyif mysql # aggregate syntax: 
query I rowsort label-4730
SELECT + SUM( DISTINCT + 43 )
----
43

skipif mysql # not compatible
query I rowsort label-4730
SELECT + SUM ( DISTINCT + 43 )
----
43

query I rowsort
SELECT ( + 41 ) AS col2
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4732
SELECT DISTINCT - 69 * + ( + 92 ) * 58 * - + ( + + ( - + 37 ) ) * COUNT( * )
----
-13622808

skipif mysql # not compatible
query I rowsort label-4732
SELECT DISTINCT - 69 * + ( + 92 ) * 58 * - + ( + + ( - + 37 ) ) * COUNT ( * )
----
-13622808

query I rowsort
SELECT + 14 * - 38
----
-532

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-4734
SELECT - COUNT( * ) DIV + COALESCE ( - + 79, 67 + - 1, + 47 * - NULLIF ( COUNT( * ), - ( - - 9 ) - - 21 * - + CAST( NULL AS DECIMAL ) DIV + 59 + - 33 ) ) * - 11
----
0

skipif mysql # not compatible
query I rowsort label-4734
SELECT - COUNT ( * ) / + COALESCE ( - + 79, 67 + - 1, + 47 * - NULLIF ( COUNT ( * ), - ( - - 9 ) - - 21 * - + CAST ( NULL AS REAL ) / + 59 + - 33 ) ) * - 11
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4735
SELECT NULLIF ( + + COUNT( * ), - 52 )
----
1

skipif mysql # not compatible
query I rowsort label-4735
SELECT NULLIF ( + + COUNT ( * ), - 52 )
----
1

query I rowsort
SELECT + CASE WHEN NOT 34 <= ( 63 ) THEN 71 ELSE NULL END * + 14 * 3 * - 77 * + 67 + - - 60 + 85 + - 5 * - 82 * 77
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4737
SELECT ALL 15, COUNT( * ) AS col0
----
15
1

skipif mysql # not compatible
query II rowsort label-4737
SELECT ALL 15, COUNT ( * ) AS col0
----
15
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4738
SELECT DISTINCT COUNT( * ) DIV - ( - 79 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4738
SELECT DISTINCT COUNT ( * ) / - ( - 79 ) AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4739
SELECT DISTINCT + CAST( - - 77 AS SIGNED )
----
77

skipif mysql # not compatible
query I rowsort label-4739
SELECT DISTINCT + CAST ( - - 77 AS INTEGER )
----
77

query I rowsort
SELECT + 84 + - 23
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4741
SELECT 57 - + 65 + + - COUNT( * )
----
-9

skipif mysql # not compatible
query I rowsort label-4741
SELECT 57 - + 65 + + - COUNT ( * )
----
-9

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4742
SELECT ALL + 60 * + 57 + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4742
SELECT ALL + 60 * + 57 + + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT 90 * 55 AS col1
----
4950

onlyif mysql # aggregate syntax: 
query I rowsort label-4744
SELECT + 11 + CASE - + 90 WHEN + COUNT( * ) THEN - MIN( ALL - - COALESCE ( - 34, 22 ) ) WHEN + 46 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4744
SELECT + 11 + CASE - + 90 WHEN + COUNT ( * ) THEN - MIN ( ALL - - COALESCE ( - 34, 22 ) ) WHEN + 46 THEN NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4745
SELECT ALL CAST( NULL AS SIGNED ) AS col1, 92
----
NULL
92

skipif mysql # not compatible
query II rowsort label-4745
SELECT ALL CAST ( NULL AS INTEGER ) AS col1, 92
----
NULL
92

query II rowsort
SELECT 21 col1, 52 * - 76
----
21
-3952

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4747
SELECT + CAST( + 40 AS SIGNED ) * 13 - - CAST( 30 AS DECIMAL ) * - 13 + - - 61 + + COALESCE ( + 59, + 25 ) * - 71 * + CASE - 17 WHEN + 69 THEN - CAST( + - MIN( DISTINCT + 68 ) AS SIGNED ) * + 34 + + 34 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4747
SELECT + CAST ( + 40 AS INTEGER ) * 13 - - CAST ( 30 AS REAL ) * - 13 + - - 61 + + COALESCE ( + 59, + 25 ) * - 71 * + CASE - 17 WHEN + 69 THEN - CAST ( + - MIN ( DISTINCT + 68 ) AS INTEGER ) * + 34 + + 34 END AS col1
----
NULL

query I rowsort
SELECT - 34 + 39
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4749
SELECT ALL - 25 + COUNT( * ) AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-4749
SELECT ALL - 25 + COUNT ( * ) AS col2
----
-24

query I rowsort
SELECT DISTINCT + 67 + - + 60 AS col2
----
7

query I rowsort
SELECT ALL NULLIF ( + 30, + 68 * + 60 + + + COALESCE ( + + 55, - 29 ) / 97 + 87 ) + - 9 + + 96 + + - 39 + COALESCE ( + + 97, - 92, 55 + + 96 + + 35 * - 73 ) + - + 19 * 0 * - + 25 * + 16 * - - 35
----
175

query II rowsort
SELECT 58 AS col2, 75
----
58
75

query I rowsort
SELECT - 61 + - 91
----
-152

query I rowsort
SELECT ALL 31 + - 76 AS col2
----
-45

query I rowsort
SELECT - + ( + 88 )
----
-88

query I rowsort
SELECT 39 + 51
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4757
SELECT + 27 * - - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4757
SELECT + 27 * - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4758
SELECT COUNT( ALL - 30 ) + + + 98 - ( + 18 ) * 4 AS col0
----
27

skipif mysql # not compatible
query I rowsort label-4758
SELECT COUNT ( ALL - 30 ) + + + 98 - ( + 18 ) * 4 AS col0
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-4759
SELECT ALL - ( - + 94 ) + - 89 + - 62 DIV - 5
----
17

skipif mysql # not compatible
query I rowsort label-4759
SELECT ALL - ( - + 94 ) + - 89 + - 62 / - 5
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4760
SELECT 57 * - CAST( NULLIF ( - - NULLIF ( 30, - 47 * - 55 + - + 76 + - 56 ), - 9 + + - 92 ) AS SIGNED ) * - CASE - COUNT( * ) WHEN - + 87 THEN - - 93 END * - 86 + 49 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4760
SELECT 57 * - CAST ( NULLIF ( - - NULLIF ( 30, - 47 * - 55 + - + 76 + - 56 ), - 9 + + - 92 ) AS INTEGER ) * - CASE - COUNT ( * ) WHEN - + 87 THEN - - 93 END * - 86 + 49 col1
----
NULL

query I rowsort
SELECT ALL - NULLIF ( ( - 62 ), 85 * 18 )
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4762
SELECT ALL - 2 AS col0, - CAST( NULL AS SIGNED ) * + CAST( 50 AS SIGNED ) / 86 * + + 49 + + ( + + 1 ) - ( - + COUNT( * ) ) AS col1
----
-2
NULL

skipif mysql # not compatible
query II rowsort label-4762
SELECT ALL - 2 AS col0, - CAST ( NULL AS INTEGER ) * + CAST ( 50 AS INTEGER ) / 86 * + + 49 + + ( + + 1 ) - ( - + COUNT ( * ) ) AS col1
----
-2
NULL

query I rowsort
SELECT 83 * + 47
----
3901

onlyif mysql # aggregate syntax: 
query II rowsort label-4764
SELECT ALL - COALESCE ( + 36, + 22 + - + 50 + 64, 4 ), - COUNT( * ) AS col0
----
-36
-1

skipif mysql # not compatible
query II rowsort label-4764
SELECT ALL - COALESCE ( + 36, + 22 + - + 50 + 64, 4 ), - COUNT ( * ) AS col0
----
-36
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4765
SELECT + 88 * 92 + 43 + + 27 * CAST( NULL AS SIGNED ) + + - 33 - - 16 / - + 87 * 67 * + 87
----
NULL

skipif mysql # not compatible
query I rowsort label-4765
SELECT + 88 * 92 + 43 + + 27 * CAST ( NULL AS INTEGER ) + + - 33 - - 16 / - + 87 * 67 * + 87
----
NULL

query II rowsort
SELECT ALL - 28, 61 + 8 + 9 + 49 - 11 + + 78 * - 55 AS col0
----
-28
-4174

query II rowsort
SELECT 1, 48 AS col2
----
1
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4768
SELECT NULLIF ( 83, - - 77 ) * - 11 / - + CAST( NULL AS SIGNED ) + + AVG ( - 35 ) / + COUNT( * ) + + 77 * - - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4768
SELECT NULLIF ( 83, - - 77 ) * - 11 / - + CAST ( NULL AS INTEGER ) + + AVG ( - 35 ) / + COUNT ( * ) + + 77 * - - COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 73 - 34 + - 49 AS col1
----
-156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4770
SELECT 73 * + COALESCE ( + 1, + COALESCE ( + ( 68 ), 77 ) DIV - 78, + 20 * - + CASE WHEN NOT ( NULL >= NULL ) THEN NULL WHEN 25 IS NOT NULL THEN - + ( - 58 ) * - CAST( - + COUNT( * ) AS SIGNED ) * - 16 * - 16 + + - 58 - - 14 ELSE NULL END * 47 * + - 27 * + 46 )
----
73

skipif mysql # not compatible
query I rowsort label-4770
SELECT 73 * + COALESCE ( + 1, + COALESCE ( + ( 68 ), 77 ) / - 78, + 20 * - + CASE WHEN NOT ( NULL >= NULL ) THEN NULL WHEN 25 IS NOT NULL THEN - + ( - 58 ) * - CAST ( - + COUNT ( * ) AS INTEGER ) * - 16 * - 16 + + - 58 - - 14 ELSE NULL END * 47 * + - 27 * + 46 )
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-4771
SELECT COUNT( * ) + 19 AS col2
----
20

skipif mysql # not compatible
query I rowsort label-4771
SELECT COUNT ( * ) + 19 AS col2
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4772
SELECT ALL - CAST( NULL AS SIGNED ), 94 col1
----
NULL
94

skipif mysql # not compatible
query II rowsort label-4772
SELECT ALL - CAST ( NULL AS INTEGER ), 94 col1
----
NULL
94

query I rowsort
SELECT DISTINCT - COALESCE ( - 47, - 77, - 33 ) AS col2
----
47

onlyif mysql # aggregate syntax: 
query II rowsort label-4774
SELECT ALL - COUNT( * ) AS col2, - COUNT( * )
----
-1
-1

skipif mysql # not compatible
query II rowsort label-4774
SELECT ALL - COUNT ( * ) AS col2, - COUNT ( * )
----
-1
-1

query I rowsort
SELECT 7 + + 65 * - 74
----
-4803

onlyif mysql # aggregate syntax: 
query II rowsort label-4776
SELECT DISTINCT - 46, 9 - - COALESCE ( + CASE + 17 WHEN - + 32 / - COUNT( * ) * + CASE 16 WHEN + COUNT( * ) THEN + 44 ELSE NULL END - - - 25 THEN + - 13 + + + 75 ELSE NULL END, + 56 + + ( 23 ) * - 13 ) * + 74 AS col0
----
-46
-17973

skipif mysql # not compatible
query II rowsort label-4776
SELECT DISTINCT - 46, 9 - - COALESCE ( + CASE + 17 WHEN - + 32 / - COUNT ( * ) * + CASE 16 WHEN + COUNT ( * ) THEN + 44 ELSE NULL END - - - 25 THEN + - 13 + + + 75 ELSE NULL END, + 56 + + ( 23 ) * - 13 ) * + 74 AS col0
----
-46
-17973

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4777
SELECT DISTINCT + NULLIF ( + + COUNT( * ), - 48 / + 29 + + 29 ) * - CASE + - 87 WHEN + + 10 + 43 THEN + 26 + + CAST( + + 83 AS SIGNED ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4777
SELECT DISTINCT + NULLIF ( + + COUNT ( * ), - 48 / + 29 + + 29 ) * - CASE + - 87 WHEN + + 10 + 43 THEN + 26 + + CAST ( + + 83 AS INTEGER ) ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4778
SELECT ALL - SUM( ALL CASE - 12 WHEN - - 4 THEN 15 WHEN - - 40 THEN NULL END ) + + 62 * - CAST( - COUNT( * ) AS SIGNED ) + - 0 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4778
SELECT ALL - SUM ( ALL CASE - 12 WHEN - - 4 THEN 15 WHEN - - 40 THEN NULL END ) + + 62 * - CAST ( - COUNT ( * ) AS INTEGER ) + - 0 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4779
SELECT ALL + 89 + - MIN( DISTINCT + 0 )
----
89

skipif mysql # not compatible
query I rowsort label-4779
SELECT ALL + 89 + - MIN ( DISTINCT + 0 )
----
89

query I rowsort
SELECT 72 + + 48 + 5 * - 31
----
-35

query II rowsort
SELECT 99 col0, 55
----
99
55

query I rowsort
SELECT ALL 35 + 69 * - 40
----
-2725

onlyif mysql # aggregate syntax: 
query I rowsort label-4783
SELECT 64 + - ( - COUNT( * ) ) + COUNT( * ) - + + ( - 45 ) + - - 26
----
137

skipif mysql # not compatible
query I rowsort label-4783
SELECT 64 + - ( - COUNT ( * ) ) + COUNT ( * ) - + + ( - 45 ) + - - 26
----
137

query I rowsort
SELECT DISTINCT - + ( 64 ) + 92
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-4785
SELECT DISTINCT + 7 DIV + 88
----
0

skipif mysql # not compatible
query I rowsort label-4785
SELECT DISTINCT + 7 / + 88
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4786
SELECT ALL 62 + + + 31 * + 36 * COUNT( * ), - NULLIF ( - - 88, 45 * 1 + NULLIF ( AVG ( DISTINCT 46 ), - 27 ) ) AS col2
----
1178
-88

skipif mysql # not compatible
query II rowsort label-4786
SELECT ALL 62 + + + 31 * + 36 * COUNT ( * ), - NULLIF ( - - 88, 45 * 1 + NULLIF ( AVG ( DISTINCT 46 ), - 27 ) ) AS col2
----
1178
-88

query I rowsort
SELECT ALL - 37 + 28 AS col0
----
-9

query II rowsort
SELECT DISTINCT 41 AS col0, 35 - + 74
----
41
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4789
SELECT COUNT( * ) DIV - 91 + 81 + - 89 + 94 * + COUNT( 75 ) col2
----
86

skipif mysql # not compatible
query I rowsort label-4789
SELECT COUNT ( * ) / - 91 + 81 + - 89 + 94 * + COUNT ( 75 ) col2
----
86

query I rowsort
SELECT ALL - 88 + 23 - - - 65
----
-130

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4791
SELECT + 98 - - NULLIF ( + COUNT( * ), + 34 + - 65 ) DIV 30 col2
----
98

skipif mysql # not compatible
query I rowsort label-4791
SELECT + 98 - - NULLIF ( + COUNT ( * ), + 34 + - 65 ) / 30 col2
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4792
SELECT + NULLIF ( COUNT( * ), + + 83 * + + 2 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4792
SELECT + NULLIF ( COUNT ( * ), + + 83 * + + 2 ) AS col1
----
1

query II rowsort
SELECT - + 7, 56 * 63 AS col2
----
-7
3528

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4794
SELECT - ( 29 ) DIV + SUM( 89 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4794
SELECT - ( 29 ) / + SUM ( 89 ) AS col0
----
0

query I rowsort
SELECT 13 * - 32
----
-416

query II rowsort
SELECT 35 AS col0, - 92 * + 93
----
35
-8556

onlyif mysql # aggregate syntax: 
query I rowsort label-4797
SELECT + SUM( ALL + + 19 )
----
19

skipif mysql # not compatible
query I rowsort label-4797
SELECT + SUM ( ALL + + 19 )
----
19

query I rowsort
SELECT 76 - - 32 AS col2
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-4799
SELECT MAX( DISTINCT + + 7 )
----
7

skipif mysql # not compatible
query I rowsort label-4799
SELECT MAX ( DISTINCT + + 7 )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4800
SELECT MAX( DISTINCT + ( - 37 ) ) AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-4800
SELECT MAX ( DISTINCT + ( - 37 ) ) AS col2
----
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4801
SELECT + 84 DIV + - SUM( + 38 ) + + + 53 AS col0
----
51

skipif mysql # not compatible
query I rowsort label-4801
SELECT + 84 / + - SUM ( + 38 ) + + + 53 AS col0
----
51

query II rowsort
SELECT 92 * - 71 AS col0, + 42 * 78
----
-6532
3276

onlyif mysql # aggregate syntax: 
query I rowsort label-4803
SELECT ALL + NULLIF ( + 35, - ( + ( COUNT( * ) ) ) - + 92 ) * + 83 col0
----
2905

skipif mysql # not compatible
query I rowsort label-4803
SELECT ALL + NULLIF ( + 35, - ( + ( COUNT ( * ) ) ) - + 92 ) * + 83 col0
----
2905

query I rowsort
SELECT 18 * 81
----
1458

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4805
SELECT COUNT( ALL COALESCE ( 35, - + ( + 16 ) + - 50 - + CAST( NULL AS SIGNED ) + NULLIF ( + + 37, - 4 * - - 90 * + ( 98 ) ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-4805
SELECT COUNT ( ALL COALESCE ( 35, - + ( + 16 ) + - 50 - + CAST ( NULL AS INTEGER ) + NULLIF ( + + 37, - 4 * - - 90 * + ( 98 ) ) ) )
----
1

query II rowsort
SELECT DISTINCT 26 * 8, 70 AS col1
----
208
70

onlyif mysql # aggregate syntax: 
query II rowsort label-4807
SELECT ALL + COUNT( DISTINCT + 73 ) AS col2, 19
----
1
19

skipif mysql # not compatible
query II rowsort label-4807
SELECT ALL + COUNT ( DISTINCT + 73 ) AS col2, 19
----
1
19

query I rowsort
SELECT DISTINCT + ( + CASE - 95 WHEN + NULLIF ( - 79, + 81 * + 8 ) THEN 28 ELSE NULL END )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4809
SELECT - COUNT( * ) * 45 * + - CASE - CASE - + MAX( DISTINCT + + 27 ) WHEN - 42 * - 91 * - + 20 THEN - COUNT( * ) * - + COUNT( * ) * - COALESCE ( + + 97, + NULLIF ( 79, - - 8 ) * - 76 * - 59 DIV + 95 + 24 + - + MAX( - 64 ) + - 53 + - ( - COUNT( * ) ) * - 61 * + CASE 57 WHEN 17 THEN 6 DIV + - ( CAST( NULL AS SIGNED ) ) * + 65 + + - 84 WHEN + 66 THEN NULL WHEN + - 42 THEN NULL END - + COALESCE ( - 13, 71, COALESCE ( + - 57, + 26 * 22 + ( + NULLIF ( ( ( 7 ) ), + 18 DIV 87 ) ) DIV + ( - 54 * 45 + 45 * 3 ) ) ) * 39 ) WHEN + 26 THEN + 0 END WHEN + 1 THEN 55 ELSE 70 DIV 75 END * + 66 + SUM( 27 ) * 81 col2
----
2187

skipif mysql # not compatible
query I rowsort label-4809
SELECT - COUNT ( * ) * 45 * + - CASE - CASE - + MAX ( DISTINCT + + 27 ) WHEN - 42 * - 91 * - + 20 THEN - COUNT ( * ) * - + COUNT ( * ) * - COALESCE ( + + 97, + NULLIF ( 79, - - 8 ) * - 76 * - 59 / + 95 + 24 + - + MAX ( - 64 ) + - 53 + - ( - COUNT ( * ) ) * - 61 * + CASE 57 WHEN 17 THEN 6 / + - ( CAST ( NULL AS INTEGER ) ) * + 65 + + - 84 WHEN + 66 THEN NULL WHEN + - 42 THEN NULL END - + COALESCE ( - 13, 71, COALESCE ( + - 57, + 26 * 22 + ( + NULLIF ( ( ( 7 ) ), + 18 / 87 ) ) / + ( - 54 * 45 + 45 * 3 ) ) ) * 39 ) WHEN + 26 THEN + 0 END WHEN + 1 THEN 55 ELSE 70 / 75 END * + 66 + SUM ( 27 ) * 81 col2
----
2187

onlyif mysql # aggregate syntax: 
query I rowsort label-4810
SELECT ALL 61 * - COUNT( * )
----
-61

skipif mysql # not compatible
query I rowsort label-4810
SELECT ALL 61 * - COUNT ( * )
----
-61

onlyif mysql # aggregate syntax: 
query II rowsort label-4811
SELECT DISTINCT 19 * - - 33, 52 * + MAX( DISTINCT 61 ) * 98 * - 37 - + - MIN( + NULLIF ( - + 65, 70 ) ) AS col2
----
627
-11501737

skipif mysql # not compatible
query II rowsort label-4811
SELECT DISTINCT 19 * - - 33, 52 * + MAX ( DISTINCT 61 ) * 98 * - 37 - + - MIN ( + NULLIF ( - + 65, 70 ) ) AS col2
----
627
-11501737

query I rowsort
SELECT - 48 * + 48 AS col0
----
-2304

query I rowsort
SELECT ALL + 23 * 17 + + ( 24 ) AS col2
----
415

query I rowsort
SELECT + COALESCE ( - 51, + 23 ) AS col1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-4815
SELECT MAX( DISTINCT - + ( - + 49 ) ) * - + MAX( DISTINCT + 5 ) * - - 66 * + - 61 + - - 99 AS col1
----
986469

skipif mysql # not compatible
query I rowsort label-4815
SELECT MAX ( DISTINCT - + ( - + 49 ) ) * - + MAX ( DISTINCT + 5 ) * - - 66 * + - 61 + - - 99 AS col1
----
986469

query II rowsort
SELECT - 42 * 90 AS col1, 40 + + 28 AS col2
----
-3780
68

query I rowsort
SELECT - + 44 * + - 93 - - 47 + - + 35 AS col2
----
4104

onlyif mysql # aggregate syntax: 
query I rowsort label-4818
SELECT ALL MIN( + 91 ) + + 84
----
175

skipif mysql # not compatible
query I rowsort label-4818
SELECT ALL MIN ( + 91 ) + + 84
----
175

onlyif mysql # aggregate syntax: 
query I rowsort label-4819
SELECT DISTINCT 68 + MIN( ALL 52 ) AS col1
----
120

skipif mysql # not compatible
query I rowsort label-4819
SELECT DISTINCT 68 + MIN ( ALL 52 ) AS col1
----
120

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4820
SELECT ALL + - COUNT( * ) + - MIN( ALL 41 ) DIV ( COUNT( * ) ) AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-4820
SELECT ALL + - COUNT ( * ) + - MIN ( ALL 41 ) / ( COUNT ( * ) ) AS col2
----
-42

query I rowsort
SELECT - + 72 + - - ( - ( - - 55 ) ) AS col2
----
-127

onlyif mysql # aggregate syntax: 
query I rowsort label-4822
SELECT ALL COUNT( + 77 ) + + COALESCE ( + 44, 50 ) + + 52 * 58 * 77
----
232277

skipif mysql # not compatible
query I rowsort label-4822
SELECT ALL COUNT ( + 77 ) + + COALESCE ( + 44, 50 ) + + 52 * 58 * 77
----
232277

query I rowsort
SELECT DISTINCT CASE 33 WHEN + + 56 THEN - ( + 28 ) ELSE + 86 END
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4824
SELECT ALL + - 54 * + - 78 + - + COUNT( * ) AS col0
----
4211

skipif mysql # not compatible
query I rowsort label-4824
SELECT ALL + - 54 * + - 78 + - + COUNT ( * ) AS col0
----
4211

query I rowsort
SELECT + 66 - 31 AS col0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4826
SELECT - CASE + + 21 WHEN + 10 / + COUNT( * ) THEN NULL WHEN + 90 THEN + 24 WHEN - 98 * + 90 THEN - 26 * - 83 * - 69 + + 51 / - - 22 + 34 * - 32 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4826
SELECT - CASE + + 21 WHEN + 10 / + COUNT ( * ) THEN NULL WHEN + 90 THEN + 24 WHEN - 98 * + 90 THEN - 26 * - 83 * - 69 + + 51 / - - 22 + 34 * - 32 END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4827
SELECT - COUNT( * ) + + + 98 * - 40 DIV COUNT( * ) * - ( - 26 ) AS col0
----
-101921

skipif mysql # not compatible
query I rowsort label-4827
SELECT - COUNT ( * ) + + + 98 * - 40 / COUNT ( * ) * - ( - 26 ) AS col0
----
-101921

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4828
SELECT DISTINCT - - 12 - - COUNT( * ) DIV - 90 + 42 AS col2
----
54

skipif mysql # not compatible
query I rowsort label-4828
SELECT DISTINCT - - 12 - - COUNT ( * ) / - 90 + 42 AS col2
----
54

query I rowsort
SELECT ALL - ( ( - 81 ) )
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-4830
SELECT ALL - 1 DIV + - 14
----
0

skipif mysql # not compatible
query I rowsort label-4830
SELECT ALL - 1 / + - 14
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4831
SELECT + CASE + 57 WHEN + + 78 + + 99 THEN NULL WHEN - - 19 THEN NULL WHEN - CAST( 50 AS SIGNED ) THEN - 89 END * + 7
----
NULL

skipif mysql # not compatible
query I rowsort label-4831
SELECT + CASE + 57 WHEN + + 78 + + 99 THEN NULL WHEN - - 19 THEN NULL WHEN - CAST ( 50 AS INTEGER ) THEN - 89 END * + 7
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4832
SELECT DISTINCT - - 37 DIV + - 24 AS col1, 38 AS col2
----
-1
38

skipif mysql # not compatible
query II rowsort label-4832
SELECT DISTINCT - - 37 / + - 24 AS col1, 38 AS col2
----
-1
38

query I rowsort
SELECT ALL ( + 2 ) AS col0
----
2

query I rowsort
SELECT ALL - 28 * - 67 * 41 col1
----
76916

query II rowsort
SELECT DISTINCT 72, - 4 AS col0
----
72
-4

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4836
SELECT - 50 + COUNT( * ) * - COALESCE ( - COALESCE ( - - 61, + - 23, + ( + 81 ) ), + 28 + - 66 ) * + 73 + CAST( NULL AS DECIMAL ) + - 55
----
NULL

skipif mysql # not compatible
query I rowsort label-4836
SELECT - 50 + COUNT ( * ) * - COALESCE ( - COALESCE ( - - 61, + - 23, + ( + 81 ) ), + 28 + - 66 ) * + 73 + CAST ( NULL AS REAL ) + - 55
----
NULL

query I rowsort
SELECT DISTINCT 62 * + 56 * + 14 * + 81 * + 73
----
287419104

onlyif mysql # aggregate syntax: 
query I rowsort label-4838
SELECT ALL COUNT( * ) * - - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-4838
SELECT ALL COUNT ( * ) * - - COUNT ( * )
----
1

query I rowsort
SELECT - ( 86 ) * + - CASE + + NULLIF ( + 60, 75 ) WHEN - - 1 THEN - - 98 * + 10 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4840
SELECT 28 * + CAST( + + COUNT( * ) AS SIGNED ) + MAX( + 38 ) + - CAST( - 71 AS SIGNED ) AS col2
----
137

skipif mysql # not compatible
query I rowsort label-4840
SELECT 28 * + CAST ( + + COUNT ( * ) AS INTEGER ) + MAX ( + 38 ) + - CAST ( - 71 AS INTEGER ) AS col2
----
137

onlyif mysql # DIV for integer division: 
query I rowsort label-4841
SELECT + 3 DIV + - 60 * 27
----
0

skipif mysql # not compatible
query I rowsort label-4841
SELECT + 3 / + - 60 * 27
----
0

query I rowsort
SELECT ( - + 13 )
----
-13

query I rowsort
SELECT ( + + 65 )
----
65

query II rowsort
SELECT + 72 + ( - + 69 ) - - - 36 AS col2, - 56
----
-33
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-4845
SELECT ALL + CASE - 97 WHEN 91 - 90 THEN NULL WHEN 33 THEN - + ( COUNT( * ) ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4845
SELECT ALL + CASE - 97 WHEN 91 - 90 THEN NULL WHEN 33 THEN - + ( COUNT ( * ) ) ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT + ( - 19 ) AS col0
----
-19

query I rowsort
SELECT + 60 * - + 34
----
-2040

query I rowsort
SELECT 47 * - 64 + 55 AS col0
----
-2953

query I rowsort
SELECT ( + 20 ) col2
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4850
SELECT + ( - ( - COUNT( * ) ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4850
SELECT + ( - ( - COUNT ( * ) ) ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4851
SELECT ALL - CAST( NULL AS SIGNED ) * + - 71 / + + 39 + - + 81 * - + 6
----
NULL

skipif mysql # not compatible
query I rowsort label-4851
SELECT ALL - CAST ( NULL AS INTEGER ) * + - 71 / + + 39 + - + 81 * - + 6
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4852
SELECT - + ( + 49 ) * - + COUNT( * ) + 27 DIV 14
----
50

skipif mysql # not compatible
query I rowsort label-4852
SELECT - + ( + 49 ) * - + COUNT ( * ) + 27 / 14
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4853
SELECT ALL - COUNT( * ) * MAX( + - 55 )
----
55

skipif mysql # not compatible
query I rowsort label-4853
SELECT ALL - COUNT ( * ) * MAX ( + - 55 )
----
55

query II rowsort
SELECT ALL + 22, - NULLIF ( + 73, 55 / - - ( 46 ) * - + 39 + + 21 ) AS col2
----
22
-73

query I rowsort
SELECT DISTINCT + 79 * - 9 AS col1
----
-711

query I rowsort
SELECT ALL + - 85 * + ( + 2 ) + - 24 * + 17
----
-578

onlyif mysql # DIV for integer division: 
query I rowsort label-4857
SELECT + 67 DIV - 88
----
0

skipif mysql # not compatible
query I rowsort label-4857
SELECT + 67 / - 88
----
0

query II rowsort
SELECT 83, + 80 AS col1
----
83
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4859
SELECT - + MAX( DISTINCT - 33 ) + CASE - MIN( DISTINCT ( - + 21 ) ) WHEN 17 * 29 THEN NULL WHEN 57 * CASE + 15 WHEN + + 93 + + 98 THEN NULL ELSE + + CAST( NULL AS SIGNED ) * + + 12 END THEN CAST( NULL AS SIGNED ) + 39 ELSE - 84 END
----
-51

skipif mysql # not compatible
query I rowsort label-4859
SELECT - + MAX ( DISTINCT - 33 ) + CASE - MIN ( DISTINCT ( - + 21 ) ) WHEN 17 * 29 THEN NULL WHEN 57 * CASE + 15 WHEN + + 93 + + 98 THEN NULL ELSE + + CAST ( NULL AS INTEGER ) * + + 12 END THEN CAST ( NULL AS INTEGER ) + 39 ELSE - 84 END
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4860
SELECT - + 74 DIV ( COUNT( * ) )
----
-74

skipif mysql # not compatible
query I rowsort label-4860
SELECT - + 74 / ( COUNT ( * ) )
----
-74

query I rowsort
SELECT DISTINCT - 63 * - - 39
----
-2457

onlyif mysql # aggregate syntax: 
query I rowsort label-4862
SELECT DISTINCT + COUNT( * ) - 26 + - 50 + + + 8 * + 77
----
541

skipif mysql # not compatible
query I rowsort label-4862
SELECT DISTINCT + COUNT ( * ) - 26 + - 50 + + + 8 * + 77
----
541

query I rowsort
SELECT ALL - COALESCE ( - - 51, - + 71 + 38 + + 56, + 9 )
----
-51

query I rowsort
SELECT ALL - 45 * 74
----
-3330

query I rowsort
SELECT - 52 * 50
----
-2600

onlyif mysql # aggregate syntax: 
query II rowsort label-4866
SELECT - 96 - + MIN( - 21 ) AS col0, CASE - + 11 WHEN + - 8 THEN COUNT( * ) WHEN + 5 + - COUNT( * ) THEN NULL END AS col2
----
-75
NULL

skipif mysql # not compatible
query II rowsort label-4866
SELECT - 96 - + MIN ( - 21 ) AS col0, CASE - + 11 WHEN + - 8 THEN COUNT ( * ) WHEN + 5 + - COUNT ( * ) THEN NULL END AS col2
----
-75
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4867
SELECT - COUNT( - + 70 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4867
SELECT - COUNT ( - + 70 ) AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4868
SELECT ALL CAST( - 14 AS SIGNED ) AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-4868
SELECT ALL CAST ( - 14 AS INTEGER ) AS col1
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-4869
SELECT - NULLIF ( + - 75, + COUNT( * ) )
----
75

skipif mysql # not compatible
query I rowsort label-4869
SELECT - NULLIF ( + - 75, + COUNT ( * ) )
----
75

query I rowsort
SELECT + 33 + + - 30 * - 95 - 51 + 7
----
2839

query I rowsort
SELECT ALL + 51 + + 31 + + 99 AS col2
----
181

query I rowsort
SELECT 92 - - - 38 * + + 46 + 10 * + 61 AS col1
----
-1046

onlyif mysql # aggregate syntax: 
query II rowsort label-4873
SELECT DISTINCT + 69 + 67 AS col2, + 70 * COUNT( * ) AS col0
----
136
70

skipif mysql # not compatible
query II rowsort label-4873
SELECT DISTINCT + 69 + 67 AS col2, + 70 * COUNT ( * ) AS col0
----
136
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4874
SELECT COUNT( * ) - + ( - 32 ) * - CAST( - 97 AS SIGNED ) AS col2
----
3105

skipif mysql # not compatible
query I rowsort label-4874
SELECT COUNT ( * ) - + ( - 32 ) * - CAST ( - 97 AS INTEGER ) AS col2
----
3105

onlyif mysql # aggregate syntax: 
query II rowsort label-4875
SELECT ALL + MIN( DISTINCT - + NULLIF ( + 51, + + ( - + 94 ) ) ) + 53 * - 3 AS col0, + 97 - + + 58 + COALESCE ( + + 45, 67 * + 56, - - 9 * + 40 - 34 - + + 51 ) * + COUNT( * ) col0
----
-210
84

skipif mysql # not compatible
query II rowsort label-4875
SELECT ALL + MIN ( DISTINCT - + NULLIF ( + 51, + + ( - + 94 ) ) ) + 53 * - 3 AS col0, + 97 - + + 58 + COALESCE ( + + 45, 67 * + 56, - - 9 * + 40 - 34 - + + 51 ) * + COUNT ( * ) col0
----
-210
84

query I rowsort
SELECT ALL - 97 + + 8 AS col0
----
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-4877
SELECT 88 DIV + 46
----
1

skipif mysql # not compatible
query I rowsort label-4877
SELECT 88 / + 46
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4878
SELECT + 37 DIV - SUM( DISTINCT - 88 ) * - + 69 - + ( + 4 ) + + NULLIF ( - 50, + NULLIF ( + 75, - + 28 ) * + + 41 - - 74 * - NULLIF ( + 61, - - 5 + + 10 ) + + 30 + + 35 + - COUNT( * ) ) col1
----
-54

skipif mysql # not compatible
query I rowsort label-4878
SELECT + 37 / - SUM ( DISTINCT - 88 ) * - + 69 - + ( + 4 ) + + NULLIF ( - 50, + NULLIF ( + 75, - + 28 ) * + + 41 - - 74 * - NULLIF ( + 61, - - 5 + + 10 ) + + 30 + + 35 + - COUNT ( * ) ) col1
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-4879
SELECT 98 * COUNT( * )
----
98

skipif mysql # not compatible
query I rowsort label-4879
SELECT 98 * COUNT ( * )
----
98

onlyif mysql # DIV for integer division: 
query II rowsort label-4880
SELECT - 56 DIV 35 - + 14 + + + 21 AS col2, 84
----
6
84

skipif mysql # not compatible
query II rowsort label-4880
SELECT - 56 / 35 - + 14 + + + 21 AS col2, 84
----
6
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4881
SELECT ALL COUNT( * ) * + + CASE - 50 WHEN 0 + - 20 THEN - + 74 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4881
SELECT ALL COUNT ( * ) * + + CASE - 50 WHEN 0 + - 20 THEN - + 74 END
----
NULL

query I rowsort
SELECT 23 * - 16 col1
----
-368

query I rowsort
SELECT DISTINCT - 16 + 83
----
67

query I rowsort
SELECT DISTINCT - 7 * + + 85
----
-595

onlyif mysql # aggregate syntax: 
query I rowsort label-4885
SELECT ALL - - MIN( DISTINCT - - 86 )
----
86

skipif mysql # not compatible
query I rowsort label-4885
SELECT ALL - - MIN ( DISTINCT - - 86 )
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4886
SELECT + MIN( - CAST( + - 80 AS SIGNED ) ) AS col0
----
80

skipif mysql # not compatible
query I rowsort label-4886
SELECT + MIN ( - CAST ( + - 80 AS INTEGER ) ) AS col0
----
80

query I rowsort
SELECT + 51 + + 99 + + 20 * 62
----
1390

onlyif mysql # aggregate syntax: 
query I rowsort label-4888
SELECT + NULLIF ( - 18, + + COUNT( * ) )
----
-18

skipif mysql # not compatible
query I rowsort label-4888
SELECT + NULLIF ( - 18, + + COUNT ( * ) )
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-4889
SELECT + 78 + - + COUNT( ALL + + 63 )
----
77

skipif mysql # not compatible
query I rowsort label-4889
SELECT + 78 + - + COUNT ( ALL + + 63 )
----
77

query I rowsort
SELECT - 66 * 52 - - 85
----
-3347

query I rowsort
SELECT DISTINCT - 49 col1
----
-49

query I rowsort
SELECT ALL 31 * + 2 + 50
----
112

query I rowsort
SELECT - NULLIF ( + 6, 96 + - 80 + 74 + 90 * - 28 * + - 23 * 87 * + + 48 ) + + + 68 AS col1
----
62

query I rowsort
SELECT DISTINCT + ( + 93 )
----
93

query I rowsort
SELECT ALL 97 * + 5
----
485

onlyif mysql # DIV for integer division: 
query I rowsort label-4896
SELECT + 37 DIV + 41 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4896
SELECT + 37 / + 41 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4897
SELECT COUNT( DISTINCT - + 67 ) + - + 5
----
-4

skipif mysql # not compatible
query I rowsort label-4897
SELECT COUNT ( DISTINCT - + 67 ) + - + 5
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4898
SELECT + 50 - - ( 76 ) + 4 - + - CAST( NULL AS SIGNED ) * - 7 / COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4898
SELECT + 50 - - ( 76 ) + 4 - + - CAST ( NULL AS INTEGER ) * - 7 / COUNT ( * ) AS col2
----
NULL

query II rowsort
SELECT + 94 + + 88 AS col1, - 59
----
182
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-4900
SELECT 67 + 73 + - - MAX( 21 ) + - 43 * 0 * - 9 AS col1
----
161

skipif mysql # not compatible
query I rowsort label-4900
SELECT 67 + 73 + - - MAX ( 21 ) + - 43 * 0 * - 9 AS col1
----
161

onlyif mysql # DIV for integer division: 
query I rowsort label-4901
SELECT 8 DIV - 54 * 15
----
0

skipif mysql # not compatible
query I rowsort label-4901
SELECT 8 / - 54 * 15
----
0

query I rowsort
SELECT 92 + 73 AS col2
----
165

query I rowsort
SELECT DISTINCT 44 + - 70
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-4904
SELECT DISTINCT 3 + 6 * + COUNT( * ) + + + 38 - SUM( ALL - 0 ) * + 12 AS col2
----
47

skipif mysql # not compatible
query I rowsort label-4904
SELECT DISTINCT 3 + 6 * + COUNT ( * ) + + + 38 - SUM ( ALL - 0 ) * + 12 AS col2
----
47

query I rowsort
SELECT DISTINCT + 38 + + 50 col2
----
88

query I rowsort
SELECT 11 + 81 AS col0
----
92

query I rowsort
SELECT ALL + 65 + - 72
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4908
SELECT DISTINCT - NULLIF ( - 86, + 62 ) * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4908
SELECT DISTINCT - NULLIF ( - 86, + 62 ) * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4909
SELECT 98 + COUNT( * )
----
99

skipif mysql # not compatible
query I rowsort label-4909
SELECT 98 + COUNT ( * )
----
99

query I rowsort
SELECT 33 * + 59 AS col1
----
1947

onlyif mysql # aggregate syntax: 
query II rowsort label-4911
SELECT - 83 * + + 43 + + 36 AS col0, MIN( - 28 ) AS col1
----
-3533
-28

skipif mysql # not compatible
query II rowsort label-4911
SELECT - 83 * + + 43 + + 36 AS col0, MIN ( - 28 ) AS col1
----
-3533
-28

query I rowsort
SELECT ALL - 20 + 32 AS col2
----
12

query I rowsort
SELECT 17 * - 71 * - - 81 AS col1
----
-97767

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4914
SELECT - 51 DIV - 85 + + - MIN( - 99 ) AS col0
----
99

skipif mysql # not compatible
query I rowsort label-4914
SELECT - 51 / - 85 + + - MIN ( - 99 ) AS col0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4915
SELECT DISTINCT - MAX( ALL + 42 ) col1
----
-42

skipif mysql # not compatible
query I rowsort label-4915
SELECT DISTINCT - MAX ( ALL + 42 ) col1
----
-42

query I rowsort
SELECT ALL 54 * - 72
----
-3888

query I rowsort
SELECT ALL - + ( NULLIF ( - 91, 59 ) )
----
91

query I rowsort
SELECT ALL - COALESCE ( - 92, 93 ) - - 59 AS col2
----
151

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4919
SELECT + CASE - 79 WHEN - 0 THEN + - CAST( NULL AS SIGNED ) ELSE + + 71 END
----
71

skipif mysql # not compatible
query I rowsort label-4919
SELECT + CASE - 79 WHEN - 0 THEN + - CAST ( NULL AS INTEGER ) ELSE + + 71 END
----
71

query I rowsort
SELECT + 18 * - 4 + + - 21 col2
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-4921
SELECT DISTINCT - - COUNT( + + 70 )
----
1

skipif mysql # not compatible
query I rowsort label-4921
SELECT DISTINCT - - COUNT ( + + 70 )
----
1

query I rowsort
SELECT DISTINCT - + 84 AS col2
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-4923
SELECT MAX( DISTINCT + - 10 ) * + 28
----
-280

skipif mysql # not compatible
query I rowsort label-4923
SELECT MAX ( DISTINCT + - 10 ) * + 28
----
-280

query I rowsort
SELECT DISTINCT + 96 * - 21
----
-2016

query I rowsort
SELECT ALL 2 * 88 AS col0
----
176

query II rowsort
SELECT ALL - 46, + 65 AS col2
----
-46
65

query I rowsort
SELECT ALL + 69 * + - 52 AS col2
----
-3588

onlyif mysql # aggregate syntax: 
query II rowsort label-4928
SELECT + + 20 AS col1, COUNT( * ) + 27
----
20
28

skipif mysql # not compatible
query II rowsort label-4928
SELECT + + 20 AS col1, COUNT ( * ) + 27
----
20
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4929
SELECT DISTINCT - COUNT( + + 64 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4929
SELECT DISTINCT - COUNT ( + + 64 ) AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4930
SELECT DISTINCT - - CAST( 29 AS SIGNED ) AS col1
----
29

skipif mysql # not compatible
query I rowsort label-4930
SELECT DISTINCT - - CAST ( 29 AS INTEGER ) AS col1
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4931
SELECT - 35 + + COUNT( * ) AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-4931
SELECT - 35 + + COUNT ( * ) AS col2
----
-34

query I rowsort
SELECT ALL ( + 38 ) col0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-4933
SELECT - COUNT( ALL 84 )
----
-1

skipif mysql # not compatible
query I rowsort label-4933
SELECT - COUNT ( ALL 84 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4934
SELECT - 63 * + 8 + + 8 DIV + - 29
----
-504

skipif mysql # not compatible
query I rowsort label-4934
SELECT - 63 * + 8 + + 8 / + - 29
----
-504

onlyif mysql # aggregate syntax: 
query I rowsort label-4935
SELECT + 92 * + - COUNT( * ) * - + 70 - - - ( 25 )
----
6415

skipif mysql # not compatible
query I rowsort label-4935
SELECT + 92 * + - COUNT ( * ) * - + 70 - - - ( 25 )
----
6415

query I rowsort
SELECT + 62 * + - 13 col1
----
-806

onlyif mysql # aggregate syntax: 
query I rowsort label-4937
SELECT ALL 31 + + + 16 + - ( + SUM( ALL + - 94 ) ) * - - ( - - 74 ) AS col1
----
7003

skipif mysql # not compatible
query I rowsort label-4937
SELECT ALL 31 + + + 16 + - ( + SUM ( ALL + - 94 ) ) * - - ( - - 74 ) AS col1
----
7003

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4938
SELECT DISTINCT - NULLIF ( - NULLIF ( + 55, + CASE - 46 WHEN - 25 * - + 74 THEN + CAST( NULL AS SIGNED ) ELSE NULL END * 35 ), + - 70 * 76 ) AS col1
----
55

skipif mysql # not compatible
query I rowsort label-4938
SELECT DISTINCT - NULLIF ( - NULLIF ( + 55, + CASE - 46 WHEN - 25 * - + 74 THEN + CAST ( NULL AS INTEGER ) ELSE NULL END * 35 ), + - 70 * 76 ) AS col1
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-4939
SELECT DISTINCT COUNT( * ) + + COUNT( * ) + + + 32 AS col0
----
34

skipif mysql # not compatible
query I rowsort label-4939
SELECT DISTINCT COUNT ( * ) + + COUNT ( * ) + + + 32 AS col0
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-4940
SELECT DISTINCT 44 * 10 * + - COUNT( * ) * - + COUNT( * ) * - 25
----
-11000

skipif mysql # not compatible
query I rowsort label-4940
SELECT DISTINCT 44 * 10 * + - COUNT ( * ) * - + COUNT ( * ) * - 25
----
-11000

query I rowsort
SELECT + 56 * 44 col0
----
2464

onlyif mysql # aggregate syntax: 
query I rowsort label-4942
SELECT ALL 62 + - - 11 + 71 * COUNT( * ) * + 1 * + COALESCE ( + 74, + 27 + - SUM( ALL - - 3 ) )
----
5327

skipif mysql # not compatible
query I rowsort label-4942
SELECT ALL 62 + - - 11 + 71 * COUNT ( * ) * + 1 * + COALESCE ( + 74, + 27 + - SUM ( ALL - - 3 ) )
----
5327

onlyif mysql # aggregate syntax: 
query I rowsort label-4943
SELECT - CASE + + ( - - COUNT( * ) ) WHEN MAX( DISTINCT + 42 ) THEN NULL WHEN + 15 - - ( - 37 ) * + + 79 / - + 93 THEN + 43 * - 88 + + 30 / + 59 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4943
SELECT - CASE + + ( - - COUNT ( * ) ) WHEN MAX ( DISTINCT + 42 ) THEN NULL WHEN + 15 - - ( - 37 ) * + + 79 / - + 93 THEN + 43 * - 88 + + 30 / + 59 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT + ( - - 78 ) + - 58 col1
----
20

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4945
SELECT + 44 - - - MIN( DISTINCT 45 ) - 79 * - + ( 56 ) + + - 55 / + CAST( NULL AS DECIMAL ) + - 16
----
NULL

skipif mysql # not compatible
query I rowsort label-4945
SELECT + 44 - - - MIN ( DISTINCT 45 ) - 79 * - + ( 56 ) + + - 55 / + CAST ( NULL AS REAL ) + - 16
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4946
SELECT + CAST( NULL AS SIGNED ) + - + 61 - + - 99 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4946
SELECT + CAST ( NULL AS INTEGER ) + - + 61 - + - 99 AS col1
----
NULL

query I rowsort
SELECT - 26 * - - 31 AS col1
----
-806

onlyif mysql # DIV for integer division: 
query I rowsort label-4948
SELECT + 96 + 46 DIV 46
----
97

skipif mysql # not compatible
query I rowsort label-4948
SELECT + 96 + 46 / 46
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4949
SELECT - CASE - 11 WHEN + 38 * 67 THEN + CAST( NULL AS SIGNED ) WHEN - 79 THEN 57 + 53 ELSE + - 89 * + COUNT( * ) END DIV 97 - + - 40 * - 79 AS col2
----
-3160

skipif mysql # not compatible
query I rowsort label-4949
SELECT - CASE - 11 WHEN + 38 * 67 THEN + CAST ( NULL AS INTEGER ) WHEN - 79 THEN 57 + 53 ELSE + - 89 * + COUNT ( * ) END / 97 - + - 40 * - 79 AS col2
----
-3160

onlyif mysql # DIV for integer division: 
query I rowsort label-4950
SELECT ALL + ( - - 71 ) - 32 DIV - 4
----
79

skipif mysql # not compatible
query I rowsort label-4950
SELECT ALL + ( - - 71 ) - 32 / - 4
----
79

query I rowsort
SELECT + 90 * - + 61 AS col1
----
-5490

query I rowsort
SELECT + 66 - - - 78
----
-12

query I rowsort
SELECT ALL - 20 * - + 19 - 74
----
306

onlyif mysql # aggregate syntax: 
query II rowsort label-4954
SELECT + 8, 35 + + 27 + - + 30 + + NULLIF ( - 86, COUNT( * ) + + COUNT( * ) + + 66 ) * + 68 AS col0
----
8
-5816

skipif mysql # not compatible
query II rowsort label-4954
SELECT + 8, 35 + + 27 + - + 30 + + NULLIF ( - 86, COUNT ( * ) + + COUNT ( * ) + + 66 ) * + 68 AS col0
----
8
-5816

onlyif mysql # aggregate syntax: 
query I rowsort label-4955
SELECT ALL + MAX( DISTINCT + 14 )
----
14

skipif mysql # not compatible
query I rowsort label-4955
SELECT ALL + MAX ( DISTINCT + 14 )
----
14

query I rowsort
SELECT + 30 * 76 AS col1
----
2280

onlyif mysql # aggregate syntax: 
query I rowsort label-4957
SELECT - COUNT( * ) * + ( 99 ) AS col1
----
-99

skipif mysql # not compatible
query I rowsort label-4957
SELECT - COUNT ( * ) * + ( 99 ) AS col1
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4958
SELECT + CASE - 81 WHEN - - 69 THEN - COALESCE ( - - 61, 16, + 88 + + - 57 ) * - 19 + 98 + MIN( 2 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4958
SELECT + CASE - 81 WHEN - - 69 THEN - COALESCE ( - - 61, 16, + 88 + + - 57 ) * - 19 + 98 + MIN ( 2 ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4959
SELECT 70 DIV - ( + COALESCE ( COUNT( * ), + 33 DIV - + COUNT( DISTINCT + ( + 86 ) ) ) ) + + COUNT( * ) + - 30 AS col2
----
-99

skipif mysql # not compatible
query I rowsort label-4959
SELECT 70 / - ( + COALESCE ( COUNT ( * ), + 33 / - + COUNT ( DISTINCT + ( + 86 ) ) ) ) + + COUNT ( * ) + - 30 AS col2
----
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4960
SELECT ALL + + CASE + MAX( DISTINCT 14 ) WHEN 30 + 85 * + - 34 * - 8 * 10 THEN 63 WHEN 98 THEN - 20 * - 16 WHEN - CAST( NULL AS SIGNED ) + AVG ( DISTINCT + 81 ) THEN - + 3 ELSE + COUNT( * ) * - COUNT( * ) END AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4960
SELECT ALL + + CASE + MAX ( DISTINCT 14 ) WHEN 30 + 85 * + - 34 * - 8 * 10 THEN 63 WHEN 98 THEN - 20 * - 16 WHEN - CAST ( NULL AS INTEGER ) + AVG ( DISTINCT + 81 ) THEN - + 3 ELSE + COUNT ( * ) * - COUNT ( * ) END AS col0
----
-1

query I rowsort
SELECT - 47 * - + NULLIF ( 88, - + 6 ) col2
----
4136

query I rowsort
SELECT - 16 * - - 76
----
-1216

onlyif mysql # DIV for integer division: 
query I rowsort label-4963
SELECT - - 62 - 21 + + - 20 DIV 23 + + + 22 AS col1
----
63

skipif mysql # not compatible
query I rowsort label-4963
SELECT - - 62 - 21 + + - 20 / 23 + + + 22 AS col1
----
63

query I rowsort
SELECT DISTINCT + 56 * - 63 col0
----
-3528

query I rowsort
SELECT ALL + + 30 AS col1
----
30

query II rowsort
SELECT + + 4 AS col1, + 96
----
4
96

query I rowsort
SELECT DISTINCT + - 48 AS col2
----
-48

query II rowsort
SELECT DISTINCT + 7, + COALESCE ( 82, + 37 ) AS col1
----
7
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4969
SELECT ALL + + CAST( 6 AS SIGNED ) AS col0
----
6

skipif mysql # not compatible
query I rowsort label-4969
SELECT ALL + + CAST ( 6 AS INTEGER ) AS col0
----
6

query I rowsort
SELECT DISTINCT - ( 96 ) * + 92 + - 98 AS col0
----
-8930

onlyif mysql # aggregate syntax: 
query I rowsort label-4971
SELECT - 36 + + + MAX( ALL 3 )
----
-33

skipif mysql # not compatible
query I rowsort label-4971
SELECT - 36 + + + MAX ( ALL 3 )
----
-33

query I rowsort
SELECT + ( 28 )
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-4973
SELECT - + 63 DIV 5 * + 60
----
-720

skipif mysql # not compatible
query I rowsort label-4973
SELECT - + 63 / 5 * + 60
----
-720

onlyif mysql # aggregate syntax: 
query I rowsort label-4974
SELECT ALL + 11 * + 64 + - 11 + + - ( - - COUNT( * ) ) AS col1
----
692

skipif mysql # not compatible
query I rowsort label-4974
SELECT ALL + 11 * + 64 + - 11 + + - ( - - COUNT ( * ) ) AS col1
----
692

query I rowsort
SELECT - 49 + + + 60
----
11

onlyif mysql # DIV for integer division: 
query II rowsort label-4976
SELECT - 84 AS col0, 84 DIV + 17
----
-84
4

skipif mysql # not compatible
query II rowsort label-4976
SELECT - 84 AS col0, 84 / + 17
----
-84
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4977
SELECT + + 46 * - + COUNT( * ) + + ( 79 ) AS col2
----
33

skipif mysql # not compatible
query I rowsort label-4977
SELECT + + 46 * - + COUNT ( * ) + + ( 79 ) AS col2
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-4978
SELECT ALL 15 * 4 * - 94 + + 25 + - COUNT( * )
----
-5616

skipif mysql # not compatible
query I rowsort label-4978
SELECT ALL 15 * 4 * - 94 + + 25 + - COUNT ( * )
----
-5616

query II rowsort
SELECT + ( + - 37 ), 33 AS col0
----
-37
33

query I rowsort
SELECT - 76 + 76
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4981
SELECT - - AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) + 30
----
NULL

skipif mysql # not compatible
query I rowsort label-4981
SELECT - - AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) + 30
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4982
SELECT ALL - CASE - - 81 WHEN + CAST( - 69 AS SIGNED ) THEN NULL ELSE 65 END * 73
----
-4745

skipif mysql # not compatible
query I rowsort label-4982
SELECT ALL - CASE - - 81 WHEN + CAST ( - 69 AS INTEGER ) THEN NULL ELSE 65 END * 73
----
-4745

query II rowsort
SELECT DISTINCT + + 25 AS col1, - 58
----
25
-58

query I rowsort
SELECT ALL + 96 * - - 47 + - + ( 36 ) - + 35
----
4441

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4985
SELECT ALL AVG ( DISTINCT + 78 ) * CAST( - 9 AS SIGNED ) * + 26 * + ( 89 ) + - CASE 18 WHEN - 55 THEN + CASE + NULLIF ( - + 88, + + 14 * + 15 + + 88 ) WHEN 42 THEN + 49 * - 96 ELSE - + COALESCE ( - - ( - 29 ), + - 32 * + 89 - + COUNT( * ) * - 40 ) * + 61 END END * + 5 * + 98 + - 81 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4985
SELECT ALL AVG ( DISTINCT + 78 ) * CAST ( - 9 AS INTEGER ) * + 26 * + ( 89 ) + - CASE 18 WHEN - 55 THEN + CASE + NULLIF ( - + 88, + + 14 * + 15 + + 88 ) WHEN 42 THEN + 49 * - 96 ELSE - + COALESCE ( - - ( - 29 ), + - 32 * + 89 - + COUNT ( * ) * - 40 ) * + 61 END END * + 5 * + 98 + - 81 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4986
SELECT DISTINCT + 10 * - 17 * + - MIN( 91 ) * - 81 col1, 75 * - 94 AS col2
----
-1253070
-7050

skipif mysql # not compatible
query II rowsort label-4986
SELECT DISTINCT + 10 * - 17 * + - MIN ( 91 ) * - 81 col1, 75 * - 94 AS col2
----
-1253070
-7050

onlyif mysql # DIV for integer division: 
query II rowsort label-4987
SELECT - 88 * + - 39 + - COALESCE ( 71, + + 53 ) AS col0, 9 + - - ( + + 70 ) DIV - - NULLIF ( + 52, + 90 * - 30 * - 2 ) col0
----
3361
10

skipif mysql # not compatible
query II rowsort label-4987
SELECT - 88 * + - 39 + - COALESCE ( 71, + + 53 ) AS col0, 9 + - - ( + + 70 ) / - - NULLIF ( + 52, + 90 * - 30 * - 2 ) col0
----
3361
10

query I rowsort
SELECT - ( + 80 ) * + 80
----
-6400

onlyif mysql # aggregate syntax: 
query I rowsort label-4989
SELECT - CASE 4 WHEN - 9 THEN - - ( NULLIF ( - 13, 25 ) ) * + ( - 81 ) WHEN - NULLIF ( + SUM( + 14 ), - + 42 ) + + - COUNT( * ) THEN + MAX( ALL - 40 ) + 34 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4989
SELECT - CASE 4 WHEN - 9 THEN - - ( NULLIF ( - 13, 25 ) ) * + ( - 81 ) WHEN - NULLIF ( + SUM ( + 14 ), - + 42 ) + + - COUNT ( * ) THEN + MAX ( ALL - 40 ) + 34 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4990
SELECT ALL CAST( - 83 AS SIGNED ), - COUNT( * ) DIV - + 85 AS col0
----
-83
0

skipif mysql # not compatible
query II rowsort label-4990
SELECT ALL CAST ( - 83 AS INTEGER ), - COUNT ( * ) / - + 85 AS col0
----
-83
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4991
SELECT - 20 + COUNT( + 93 )
----
-19

skipif mysql # not compatible
query I rowsort label-4991
SELECT - 20 + COUNT ( + 93 )
----
-19

query I rowsort
SELECT ALL 81 col0
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4993
SELECT ALL ( 32 ) - - 83 + - + 42 / 49 * - - CASE + + CAST( 29 AS SIGNED ) WHEN + - 4 THEN + - 70 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4993
SELECT ALL ( 32 ) - - 83 + - + 42 / 49 * - - CASE + + CAST ( 29 AS INTEGER ) WHEN + - 4 THEN + - 70 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4994
SELECT + 78 + + MAX( - + 69 ) + - - 27 + - 37 AS col1, - 31 AS col1
----
-1
-31

skipif mysql # not compatible
query II rowsort label-4994
SELECT + 78 + + MAX ( - + 69 ) + - - 27 + - 37 AS col1, - 31 AS col1
----
-1
-31

query I rowsort
SELECT DISTINCT - 21 - + 46 - - - 62 + + - ( - + 83 ) AS col2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-4996
SELECT DISTINCT ( + MAX( ALL + 70 ) ) * - ( 60 )
----
-4200

skipif mysql # not compatible
query I rowsort label-4996
SELECT DISTINCT ( + MAX ( ALL + 70 ) ) * - ( 60 )
----
-4200

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4997
SELECT + 30 DIV MIN( + + 98 ) * 22 + + - 30 + - SUM( + 88 ) AS col0
----
-118

skipif mysql # not compatible
query I rowsort label-4997
SELECT + 30 / MIN ( + + 98 ) * 22 + + - 30 + - SUM ( + 88 ) AS col0
----
-118

query I rowsort
SELECT ALL 42 * + ( - 53 ) col1
----
-2226

onlyif mysql # aggregate syntax: 
query I rowsort label-4999
SELECT + 48 + MAX( - - 17 ) * - 34 - - + ( 43 ) AS col2
----
-487

skipif mysql # not compatible
query I rowsort label-4999
SELECT + 48 + MAX ( - - 17 ) * - 34 - - + ( 43 ) AS col2
----
-487

onlyif mysql # aggregate syntax: 
query I rowsort label-5000
SELECT + COUNT( * ) * 83 * COUNT( * ) AS col1
----
83

skipif mysql # not compatible
query I rowsort label-5000
SELECT + COUNT ( * ) * 83 * COUNT ( * ) AS col1
----
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5001
SELECT + + 7 DIV - COUNT( * ) col2, + 15 * - 51 col2
----
-7
-765

skipif mysql # not compatible
query II rowsort label-5001
SELECT + + 7 / - COUNT ( * ) col2, + 15 * - 51 col2
----
-7
-765

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5002
SELECT - + 2 * + CAST( + CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5002
SELECT - + 2 * + CAST ( + CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5003
SELECT + + 36 DIV - 61 + + + 12 AS col1
----
12

skipif mysql # not compatible
query I rowsort label-5003
SELECT + + 36 / - 61 + + + 12 AS col1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-5004
SELECT + SUM( DISTINCT + - 11 ) AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-5004
SELECT + SUM ( DISTINCT + - 11 ) AS col1
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5005
SELECT ALL - + CASE + COALESCE ( + 92, - - CAST( NULL AS SIGNED ) - - CAST( 24 AS SIGNED ) * + 34 ) WHEN 6 THEN 36 * - 74 + + - 94 * + + 44 ELSE 75 END * + ( 22 ) * - 34 * + MIN( - + 92 ) AS col2
----
-5161200

skipif mysql # not compatible
query I rowsort label-5005
SELECT ALL - + CASE + COALESCE ( + 92, - - CAST ( NULL AS INTEGER ) - - CAST ( 24 AS INTEGER ) * + 34 ) WHEN 6 THEN 36 * - 74 + + - 94 * + + 44 ELSE 75 END * + ( 22 ) * - 34 * + MIN ( - + 92 ) AS col2
----
-5161200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5006
SELECT + 67 + - CAST( + - COUNT( * ) AS SIGNED ) AS col0
----
68

skipif mysql # not compatible
query I rowsort label-5006
SELECT + 67 + - CAST ( + - COUNT ( * ) AS INTEGER ) AS col0
----
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5007
SELECT ALL 63 DIV - - 25 + + 99 * - - COUNT( * ) col2
----
101

skipif mysql # not compatible
query I rowsort label-5007
SELECT ALL 63 / - - 25 + + 99 * - - COUNT ( * ) col2
----
101

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5008
SELECT + + NULLIF ( + - 24, - 1 * + 54 * - 83 / 5 / 65 * + + CASE - 42 WHEN 46 * 47 THEN + 53 / + COALESCE ( 5, 7, COUNT( * ), - 96 * - 84 * COALESCE ( - 95, + - COUNT( DISTINCT - + 81 ) ) ) * - COUNT( * ) + ( - + CAST( - ( + - AVG ( + ( 19 ) ) ) AS SIGNED ) ) + - + 69 + - 86 + 61 * - 5 - 65 + + 93 + - ( + 79 ) / - MAX( - COALESCE ( 41, - 92, - + 82 ) ) + 85 - - + COUNT( * ) + COUNT( * ) WHEN - 39 + - 4 THEN NULL WHEN - 87 * + 0 THEN 88 END ) * - 37 + 18
----
906

skipif mysql # not compatible
query I rowsort label-5008
SELECT + + NULLIF ( + - 24, - 1 * + 54 * - 83 / 5 / 65 * + + CASE - 42 WHEN 46 * 47 THEN + 53 / + COALESCE ( 5, 7, COUNT ( * ), - 96 * - 84 * COALESCE ( - 95, + - COUNT ( DISTINCT - + 81 ) ) ) * - COUNT ( * ) + ( - + CAST ( - ( + - AVG ( + ( 19 ) ) ) AS INTEGER ) ) + - + 69 + - 86 + 61 * - 5 - 65 + + 93 + - ( + 79 ) / - MAX ( - COALESCE ( 41, - 92, - + 82 ) ) + 85 - - + COUNT ( * ) + COUNT ( * ) WHEN - 39 + - 4 THEN NULL WHEN - 87 * + 0 THEN 88 END ) * - 37 + 18
----
906

onlyif mysql # aggregate syntax: 
query I rowsort label-5009
SELECT DISTINCT - 44 * + - CASE - 48 WHEN + - 76 * - - 77 * - 89 + 8 THEN + + 42 WHEN MAX( DISTINCT 33 ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5009
SELECT DISTINCT - 44 * + - CASE - 48 WHEN + - 76 * - - 77 * - 89 + 8 THEN + + 42 WHEN MAX ( DISTINCT 33 ) THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5010
SELECT + + 6 * + ( + COUNT( * ) ) AS col0
----
6

skipif mysql # not compatible
query I rowsort label-5010
SELECT + + 6 * + ( + COUNT ( * ) ) AS col0
----
6

query I rowsort
SELECT - - 35 / 78 + + CASE + 24 WHEN - + 77 - - 95 THEN + + 37 END
----
NULL

query I rowsort
SELECT ALL - 45 + 29
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-5013
SELECT 52 * - - COUNT( * )
----
52

skipif mysql # not compatible
query I rowsort label-5013
SELECT 52 * - - COUNT ( * )
----
52

query I rowsort
SELECT ALL 53 + ( - 72 ) + - 11 + + 1 + + 81 AS col1
----
52

query I rowsort
SELECT DISTINCT - + 50 + + 79
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5016
SELECT DISTINCT - + CASE - - 48 WHEN 3 THEN - + 21 + - CAST( - CASE NULLIF ( - CAST( NULL AS SIGNED ), - 93 ) WHEN + - 84 THEN NULLIF ( 17, + MIN( ALL - 87 ) ) WHEN + 31 + + 84 THEN - 32 * - 33 * - 4 + 2 * + COALESCE ( + - 36, - 36 + - + CAST( - 79 AS SIGNED ) / - 7 / + + 20, 24 * - 63 * - - 5 ) + - 26 ELSE NULL END AS SIGNED ) * COUNT( * ) + - 12 + + COUNT( * ) + + - 25 / - 97 * + 19 * + - 33 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5016
SELECT DISTINCT - + CASE - - 48 WHEN 3 THEN - + 21 + - CAST ( - CASE NULLIF ( - CAST ( NULL AS INTEGER ), - 93 ) WHEN + - 84 THEN NULLIF ( 17, + MIN ( ALL - 87 ) ) WHEN + 31 + + 84 THEN - 32 * - 33 * - 4 + 2 * + COALESCE ( + - 36, - 36 + - + CAST ( - 79 AS INTEGER ) / - 7 / + + 20, 24 * - 63 * - - 5 ) + - 26 ELSE NULL END AS INTEGER ) * COUNT ( * ) + - 12 + + COUNT ( * ) + + - 25 / - 97 * + 19 * + - 33 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5017
SELECT DISTINCT - COUNT( * ) AS col0, 36 * + 99 * + 63 AS col0
----
-1
224532

skipif mysql # not compatible
query II rowsort label-5017
SELECT DISTINCT - COUNT ( * ) AS col0, 36 * + 99 * + 63 AS col0
----
-1
224532

query I rowsort
SELECT 82 * 77 AS col1
----
6314

query I rowsort
SELECT 17 * + + 19
----
323

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5020
SELECT DISTINCT - SUM( ALL + 45 ) DIV - - 58 * + ( + 56 ) * + + 93 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5020
SELECT DISTINCT - SUM ( ALL + 45 ) / - - 58 * + ( + 56 ) * + + 93 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5021
SELECT 5 AS col2, + CAST( NULL AS SIGNED ) * ( - 76 ) * + 90 AS col0
----
5
NULL

skipif mysql # not compatible
query II rowsort label-5021
SELECT 5 AS col2, + CAST ( NULL AS INTEGER ) * ( - 76 ) * + 90 AS col0
----
5
NULL

query II rowsort
SELECT DISTINCT 76 AS col0, 79 + + 52 AS col2
----
76
131

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5023
SELECT 7 * MIN( - CAST( NULL AS SIGNED ) ) * - 78 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5023
SELECT 7 * MIN ( - CAST ( NULL AS INTEGER ) ) * - 78 AS col0
----
NULL

query I rowsort
SELECT 17 - - - 92
----
-75

query I rowsort
SELECT ALL + 61 * + 2 AS col1
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-5026
SELECT ALL - NULLIF ( + 20, + 1 ) * - SUM( 38 )
----
760

skipif mysql # not compatible
query I rowsort label-5026
SELECT ALL - NULLIF ( + 20, + 1 ) * - SUM ( 38 )
----
760

query I rowsort
SELECT 33 * + 8 AS col2
----
264

onlyif mysql # DIV for integer division: 
query I rowsort label-5028
SELECT DISTINCT 96 DIV + + 78
----
1

skipif mysql # not compatible
query I rowsort label-5028
SELECT DISTINCT 96 / + + 78
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5029
SELECT COALESCE ( - + 30, - ( - 89 ) ) * + + MAX( 46 ) AS col2, + CASE - 67 WHEN - - 91 THEN NULL WHEN - COALESCE ( 51, - + 91 + - 24 ) * + 89 + + + 36 THEN - + 70 ELSE COALESCE ( COUNT( * ), - 27 * 46 + + 91 * - 8 * + 85 ) END
----
-1380
1

skipif mysql # not compatible
query II rowsort label-5029
SELECT COALESCE ( - + 30, - ( - 89 ) ) * + + MAX ( 46 ) AS col2, + CASE - 67 WHEN - - 91 THEN NULL WHEN - COALESCE ( 51, - + 91 + - 24 ) * + 89 + + + 36 THEN - + 70 ELSE COALESCE ( COUNT ( * ), - 27 * 46 + + 91 * - 8 * + 85 ) END
----
-1380
1

query I rowsort
SELECT 16 + 11 AS col0
----
27

query I rowsort
SELECT 26 + 15
----
41

query I rowsort
SELECT 32 * 68 AS col0
----
2176

onlyif mysql # aggregate syntax: 
query I rowsort label-5033
SELECT 68 + + + 77 + 72 * COUNT( * ) AS col2
----
217

skipif mysql # not compatible
query I rowsort label-5033
SELECT 68 + + + 77 + 72 * COUNT ( * ) AS col2
----
217

query II rowsort
SELECT ALL 59, 89 AS col2
----
59
89

onlyif mysql # DIV for integer division: 
query II rowsort label-5035
SELECT - 61 AS col0, - 75 DIV + - COALESCE ( + - 39, - - 48 ) AS col1
----
-61
-1

skipif mysql # not compatible
query II rowsort label-5035
SELECT - 61 AS col0, - 75 / + - COALESCE ( + - 39, - - 48 ) AS col1
----
-61
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5036
SELECT - + CAST( - 77 AS SIGNED )
----
77

skipif mysql # not compatible
query I rowsort label-5036
SELECT - + CAST ( - 77 AS INTEGER )
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5037
SELECT - 38 * - COUNT( * ) AS col0
----
38

skipif mysql # not compatible
query I rowsort label-5037
SELECT - 38 * - COUNT ( * ) AS col0
----
38

query II rowsort
SELECT ALL + 85, + 88 AS col2
----
85
88

query I rowsort
SELECT + 4 - - 63
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-5040
SELECT - SUM( ALL + 18 )
----
-18

skipif mysql # not compatible
query I rowsort label-5040
SELECT - SUM ( ALL + 18 )
----
-18

query I rowsort
SELECT ALL + 15 + - + 30 + + 30 AS col0
----
15

query I rowsort
SELECT DISTINCT 52 + NULLIF ( 20, CASE 33 WHEN - 71 THEN + - 60 ELSE NULL END ) * + + CASE 89 WHEN + - 73 THEN - + 15 + 22 * + 9 WHEN + - 74 * + 88 * - 91 + - + 1 THEN NULL ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT 67 + - + NULLIF ( 17, + - 61 ) + 13
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5044
SELECT MAX( 92 ) DIV - + 59
----
-1

skipif mysql # not compatible
query I rowsort label-5044
SELECT MAX ( 92 ) / - + 59
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5045
SELECT + ( + NULLIF ( + - CAST( + 71 AS SIGNED ), 87 ) )
----
-71

skipif mysql # not compatible
query I rowsort label-5045
SELECT + ( + NULLIF ( + - CAST ( + 71 AS INTEGER ), 87 ) )
----
-71

query I rowsort
SELECT DISTINCT - 96 + - 35 * - + 84
----
2844

onlyif mysql # aggregate syntax: 
query II rowsort label-5047
SELECT MIN( DISTINCT 12 ) * - 20, - 85 * + + 77 AS col0
----
-240
-6545

skipif mysql # not compatible
query II rowsort label-5047
SELECT MIN ( DISTINCT 12 ) * - 20, - 85 * + + 77 AS col0
----
-240
-6545

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5048
SELECT ALL CASE - - 65 WHEN + 12 * - CAST( NULL AS SIGNED ) + + - 23 * 65 THEN 95 WHEN + 95 + + + 36 + + 38 THEN + - 82 END / 26 - ( - 66 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5048
SELECT ALL CASE - - 65 WHEN + 12 * - CAST ( NULL AS INTEGER ) + + - 23 * 65 THEN 95 WHEN + 95 + + + 36 + + 38 THEN + - 82 END / 26 - ( - 66 ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5049
SELECT 21 DIV + - 31
----
0

skipif mysql # not compatible
query I rowsort label-5049
SELECT 21 / + - 31
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5050
SELECT ALL COALESCE ( CASE - COALESCE ( + + COUNT( * ), + - 46, + - 69, 14 ) WHEN - 92 * + 84 + CAST( NULL AS SIGNED ) THEN NULL WHEN + 95 THEN NULL ELSE + + ( 32 ) + + 9 END, 48 ) + - NULLIF ( - + 3, - 78 / 16 + + + ( 9 ) * 30 )
----
44

skipif mysql # not compatible
query I rowsort label-5050
SELECT ALL COALESCE ( CASE - COALESCE ( + + COUNT ( * ), + - 46, + - 69, 14 ) WHEN - 92 * + 84 + CAST ( NULL AS INTEGER ) THEN NULL WHEN + 95 THEN NULL ELSE + + ( 32 ) + + 9 END, 48 ) + - NULLIF ( - + 3, - 78 / 16 + + + ( 9 ) * 30 )
----
44

query I rowsort
SELECT DISTINCT + 41 + - NULLIF ( + 72, 6 )
----
-31

query I rowsort
SELECT ALL - 83 + - + 68
----
-151

onlyif mysql # DIV for integer division: 
query II rowsort label-5053
SELECT DISTINCT - + 59 AS col2, - NULLIF ( + 74, - 12 ) * - + 75 * 65 - 60 + - 59 DIV - + 3 AS col1
----
-59
360709

skipif mysql # not compatible
query II rowsort label-5053
SELECT DISTINCT - + 59 AS col2, - NULLIF ( + 74, - 12 ) * - + 75 * 65 - 60 + - 59 / - + 3 AS col1
----
-59
360709

query I rowsort
SELECT 27 - + + 89
----
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-5055
SELECT ALL 33 * + - COALESCE ( + - 3, 90 DIV + 44 )
----
99

skipif mysql # not compatible
query I rowsort label-5055
SELECT ALL 33 * + - COALESCE ( + - 3, 90 / + 44 )
----
99

query I rowsort
SELECT ALL + 2 - - - 64
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-5057
SELECT 10 + - COUNT( * ) AS col2
----
9

skipif mysql # not compatible
query I rowsort label-5057
SELECT 10 + - COUNT ( * ) AS col2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5058
SELECT 26 + - COUNT( * )
----
25

skipif mysql # not compatible
query I rowsort label-5058
SELECT 26 + - COUNT ( * )
----
25

query I rowsort
SELECT 36 + + 44 + 98
----
178

onlyif mysql # aggregate syntax: 
query I rowsort label-5060
SELECT 42 * + COUNT( * ) AS col0
----
42

skipif mysql # not compatible
query I rowsort label-5060
SELECT 42 * + COUNT ( * ) AS col0
----
42

query I rowsort
SELECT 45 + 55 AS col0
----
100

onlyif mysql # DIV for integer division: 
query I rowsort label-5062
SELECT ALL - 12 DIV + 3
----
-4

skipif mysql # not compatible
query I rowsort label-5062
SELECT ALL - 12 / + 3
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-5063
SELECT 32 DIV - 13 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-5063
SELECT 32 / - 13 AS col2
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-5064
SELECT 71 + COUNT( * ) + - - AVG ( ALL + + 85 ) / - 68 + - 36 + + + CASE 64 WHEN + COUNT( * ) + - 41 * - 58 + - 57 + - COUNT( * ) * - 84 THEN NULL WHEN + ( + 78 ) * 19 THEN NULL WHEN - SUM( DISTINCT - 59 ) THEN - - 98 END * + 31 * + - 7 + + ( - - ( 61 ) ) / + 21 * + 10 AS col2, - 62 AS col0
----
NULL
-62

skipif mysql # not compatible
query II rowsort label-5064
SELECT 71 + COUNT ( * ) + - - AVG ( ALL + + 85 ) / - 68 + - 36 + + + CASE 64 WHEN + COUNT ( * ) + - 41 * - 58 + - 57 + - COUNT ( * ) * - 84 THEN NULL WHEN + ( + 78 ) * 19 THEN NULL WHEN - SUM ( DISTINCT - 59 ) THEN - - 98 END * + 31 * + - 7 + + ( - - ( 61 ) ) / + 21 * + 10 AS col2, - 62 AS col0
----
NULL
-62

query I rowsort
SELECT DISTINCT + 85 * + 74
----
6290

onlyif mysql # aggregate syntax: 
query I rowsort label-5066
SELECT ALL - 13 + + SUM( DISTINCT + 0 )
----
-13

skipif mysql # not compatible
query I rowsort label-5066
SELECT ALL - 13 + + SUM ( DISTINCT + 0 )
----
-13

query II rowsort
SELECT 56 * 95 col2, + 34 * - - 61 AS col0
----
5320
2074

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5068
SELECT ALL + COUNT( * ) DIV - 86 - - 8
----
8

skipif mysql # not compatible
query I rowsort label-5068
SELECT ALL + COUNT ( * ) / - 86 - - 8
----
8

query I rowsort
SELECT ALL + - 96 + 9 * - 63 * + - 76
----
42996

query I rowsort
SELECT ALL - - 34 + + - 97 AS col1
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-5071
SELECT DISTINCT - - 84 + + - 29 - - COUNT( * )
----
56

skipif mysql # not compatible
query I rowsort label-5071
SELECT DISTINCT - - 84 + + - 29 - - COUNT ( * )
----
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5072
SELECT + - 0 + + COUNT( * ) * ( + + 16 ) DIV + 8
----
2

skipif mysql # not compatible
query I rowsort label-5072
SELECT + - 0 + + COUNT ( * ) * ( + + 16 ) / + 8
----
2

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5073
SELECT DISTINCT + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5073
SELECT DISTINCT + + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5074
SELECT + + 98 DIV + 53 + SUM( ALL + ( + 6 ) )
----
7

skipif mysql # not compatible
query I rowsort label-5074
SELECT + + 98 / + 53 + SUM ( ALL + ( + 6 ) )
----
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5075
SELECT ALL - - 42 DIV COUNT( * ) * - 43
----
-1806

skipif mysql # not compatible
query I rowsort label-5075
SELECT ALL - - 42 / COUNT ( * ) * - 43
----
-1806

query I rowsort
SELECT ALL + + 9 AS col1
----
9

query I rowsort
SELECT + ( - + 80 ) AS col1
----
-80

query I rowsort
SELECT - 12 * ( - 9 ) + + + 6 AS col0
----
114

query II rowsort
SELECT + + 74 * + 59, 13 AS col2
----
4366
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5080
SELECT CASE 1 WHEN + - 87 - CAST( NULL AS SIGNED ) * - - 96 THEN COUNT( ALL 28 ) + + - COALESCE ( + - 62, - 90, + 49 + + - CAST( 92 AS SIGNED ) * 29 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5080
SELECT CASE 1 WHEN + - 87 - CAST ( NULL AS INTEGER ) * - - 96 THEN COUNT ( ALL 28 ) + + - COALESCE ( + - 62, - 90, + 49 + + - CAST ( 92 AS INTEGER ) * 29 ) END AS col1
----
NULL

query I rowsort
SELECT + 3 + - ( + 6 ) AS col1
----
-3

query I rowsort
SELECT + 74 * - - 33 AS col0
----
2442

onlyif mysql # aggregate syntax: 
query I rowsort label-5083
SELECT MAX( - 93 ) AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-5083
SELECT MAX ( - 93 ) AS col0
----
-93

query I rowsort
SELECT + NULLIF ( - 66, + 35 * - 41 )
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-5085
SELECT + COUNT( * ) * MAX( ALL - 65 )
----
-65

skipif mysql # not compatible
query I rowsort label-5085
SELECT + COUNT ( * ) * MAX ( ALL - 65 )
----
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5086
SELECT + MAX( + + 54 ) DIV - - 3, ( COALESCE ( - 4, - 45 + - 87 ) ) col1
----
18
-4

skipif mysql # not compatible
query II rowsort label-5086
SELECT + MAX ( + + 54 ) / - - 3, ( COALESCE ( - 4, - 45 + - 87 ) ) col1
----
18
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-5087
SELECT DISTINCT ( - 24 ) DIV 66
----
0

skipif mysql # not compatible
query I rowsort label-5087
SELECT DISTINCT ( - 24 ) / 66
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5088
SELECT 8 * - COALESCE ( 80, - + 59 DIV - 2 ) - 51 * + + 9 - ( + 89 ) AS col2
----
-1188

skipif mysql # not compatible
query I rowsort label-5088
SELECT 8 * - COALESCE ( 80, - + 59 / - 2 ) - 51 * + + 9 - ( + 89 ) AS col2
----
-1188

onlyif mysql # aggregate syntax: 
query I rowsort label-5089
SELECT COUNT( + 95 )
----
1

skipif mysql # not compatible
query I rowsort label-5089
SELECT COUNT ( + 95 )
----
1

query II rowsort
SELECT ALL 92 AS col0, - 69
----
92
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-5091
SELECT + 84 * - - COALESCE ( + 58, + - 91 DIV + 91 * + ( 35 ) + - 55 * 95 + - 34 - 0 )
----
4872

skipif mysql # not compatible
query I rowsort label-5091
SELECT + 84 * - - COALESCE ( + 58, + - 91 / + 91 * + ( 35 ) + - 55 * 95 + - 34 - 0 )
----
4872

onlyif mysql # aggregate syntax: 
query II rowsort label-5092
SELECT COUNT( * ), + 39 AS col1
----
1
39

skipif mysql # not compatible
query II rowsort label-5092
SELECT COUNT ( * ), + 39 AS col1
----
1
39

onlyif mysql # aggregate syntax: 
query I rowsort label-5093
SELECT MIN( + + 69 )
----
69

skipif mysql # not compatible
query I rowsort label-5093
SELECT MIN ( + + 69 )
----
69

query I rowsort
SELECT - ( - + 27 )
----
27

query I rowsort
SELECT ALL - 45 + - 49 AS col1
----
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5096
SELECT + 77 - - ( ( - CASE - 68 WHEN + COUNT( * ) DIV ( - - ( - 55 ) ) + + 48 THEN - 90 * CAST( - - COUNT( * ) AS SIGNED ) WHEN - - 13 THEN + + NULLIF ( - ( 41 ), - 55 ) * + NULLIF ( COALESCE ( - 93, + 34, + + 12 * + - 73, + 37 * + 16 DIV - 65 + + 75 ), + AVG ( 73 ) - - 73 + - 12 DIV 91 ) WHEN - + 73 + MAX( ALL 63 ) THEN NULL ELSE 88 END ) ) AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-5096
SELECT + 77 - - ( ( - CASE - 68 WHEN + COUNT ( * ) / ( - - ( - 55 ) ) + + 48 THEN - 90 * CAST ( - - COUNT ( * ) AS INTEGER ) WHEN - - 13 THEN + + NULLIF ( - ( 41 ), - 55 ) * + NULLIF ( COALESCE ( - 93, + 34, + + 12 * + - 73, + 37 * + 16 / - 65 + + 75 ), + AVG ( 73 ) - - 73 + - 12 / 91 ) WHEN - + 73 + MAX ( ALL 63 ) THEN NULL ELSE 88 END ) ) AS col0
----
-11

query I rowsort
SELECT ALL + 81 + 68
----
149

onlyif mysql # aggregate syntax: 
query I rowsort label-5098
SELECT + MIN( ALL 26 ) * 50 AS col1
----
1300

skipif mysql # not compatible
query I rowsort label-5098
SELECT + MIN ( ALL 26 ) * 50 AS col1
----
1300

query I rowsort
SELECT DISTINCT 77 + + + ( 63 ) AS col2
----
140

query I rowsort
SELECT ALL NULLIF ( + 18, - 20 * 94 )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-5101
SELECT + COUNT( * ) + + 19 * 55
----
1046

skipif mysql # not compatible
query I rowsort label-5101
SELECT + COUNT ( * ) + + 19 * 55
----
1046

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5102
SELECT - ( + ( - CAST( - CASE 64 WHEN 62 THEN NULL WHEN 99 + 77 THEN ( - 15 ) / 58 ELSE NULL END AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5102
SELECT - ( + ( - CAST ( - CASE 64 WHEN 62 THEN NULL WHEN 99 + 77 THEN ( - 15 ) / 58 ELSE NULL END AS INTEGER ) ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5103
SELECT + 94 + - 20 DIV 30 AS col1
----
94

skipif mysql # not compatible
query I rowsort label-5103
SELECT + 94 + - 20 / 30 AS col1
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-5104
SELECT - 0 - COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5104
SELECT - 0 - COUNT ( * ) AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5105
SELECT ALL NULLIF ( CAST( 14 AS SIGNED ), 45 )
----
14

skipif mysql # not compatible
query I rowsort label-5105
SELECT ALL NULLIF ( CAST ( 14 AS INTEGER ), 45 )
----
14

query I rowsort
SELECT DISTINCT + 55 * + 41
----
2255

query I rowsort
SELECT - 76 * - ( 65 ) AS col0
----
4940

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5108
SELECT ALL + COALESCE ( COALESCE ( 52, - 94 ), ( CAST( MAX( - 84 ) AS SIGNED ) ) ) * - 51 col0
----
-2652

skipif mysql # not compatible
query I rowsort label-5108
SELECT ALL + COALESCE ( COALESCE ( 52, - 94 ), ( CAST ( MAX ( - 84 ) AS INTEGER ) ) ) * - 51 col0
----
-2652

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5109
SELECT ALL - MAX( 33 ) - CAST( + 82 - 11 / + 79 AS SIGNED )
----
-115

skipif mysql # not compatible
query I rowsort label-5109
SELECT ALL - MAX ( 33 ) - CAST ( + 82 - 11 / + 79 AS INTEGER )
----
-115

onlyif mysql # aggregate syntax: 
query I rowsort label-5110
SELECT DISTINCT + 19 - - 78 * ( ( - COUNT( ALL 3 ) ) * 84 )
----
-6533

skipif mysql # not compatible
query I rowsort label-5110
SELECT DISTINCT + 19 - - 78 * ( ( - COUNT ( ALL 3 ) ) * 84 )
----
-6533

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5111
SELECT - CAST( NULL AS SIGNED ) + 45 / COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5111
SELECT - CAST ( NULL AS INTEGER ) + 45 / COUNT ( * )
----
NULL

query I rowsort
SELECT ALL + 38 * 19
----
722

onlyif mysql # aggregate syntax: 
query I rowsort label-5113
SELECT - COUNT( * ) - 67 AS col2
----
-68

skipif mysql # not compatible
query I rowsort label-5113
SELECT - COUNT ( * ) - 67 AS col2
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-5114
SELECT DISTINCT + MIN( ALL 27 )
----
27

skipif mysql # not compatible
query I rowsort label-5114
SELECT DISTINCT + MIN ( ALL 27 )
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-5115
SELECT DISTINCT - 76 DIV + ( 66 ) - 92 col0
----
-93

skipif mysql # not compatible
query I rowsort label-5115
SELECT DISTINCT - 76 / + ( 66 ) - 92 col0
----
-93

query I rowsort
SELECT DISTINCT + ( ( + 34 ) )
----
34

query I rowsort
SELECT - 91 - - 93
----
2

query I rowsort
SELECT - 50 * - 56 AS col1
----
2800

onlyif mysql # aggregate syntax: 
query I rowsort label-5119
SELECT DISTINCT ( COUNT( - 92 ) ) * 74
----
74

skipif mysql # not compatible
query I rowsort label-5119
SELECT DISTINCT ( COUNT ( - 92 ) ) * 74
----
74

onlyif mysql # DIV for integer division: 
query I rowsort label-5120
SELECT DISTINCT + ( ( 80 ) ) DIV 73
----
1

skipif mysql # not compatible
query I rowsort label-5120
SELECT DISTINCT + ( ( 80 ) ) / 73
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5121
SELECT - 14 DIV + 23
----
0

skipif mysql # not compatible
query I rowsort label-5121
SELECT - 14 / + 23
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5122
SELECT - 32 + - COUNT( * ) AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-5122
SELECT - 32 + - COUNT ( * ) AS col0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-5123
SELECT + 34 * + 5 - COUNT( * )
----
169

skipif mysql # not compatible
query I rowsort label-5123
SELECT + 34 * + 5 - COUNT ( * )
----
169

onlyif mysql # aggregate syntax: 
query I rowsort label-5124
SELECT DISTINCT + COUNT( * ) * 71 col2
----
71

skipif mysql # not compatible
query I rowsort label-5124
SELECT DISTINCT + COUNT ( * ) * 71 col2
----
71

query I rowsort
SELECT 12 * 45 + + 12
----
552

query I rowsort
SELECT + 14 - 10
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5127
SELECT - COUNT( * ) * - 38 + - 17 * 47 AS col1
----
-761

skipif mysql # not compatible
query I rowsort label-5127
SELECT - COUNT ( * ) * - 38 + - 17 * 47 AS col1
----
-761

query I rowsort
SELECT + ( 13 ) * - 77
----
-1001

onlyif mysql # aggregate syntax: 
query I rowsort label-5129
SELECT + CASE 59 WHEN - 12 - - 49 THEN NULL ELSE + COUNT( * ) END
----
1

skipif mysql # not compatible
query I rowsort label-5129
SELECT + CASE 59 WHEN - 12 - - 49 THEN NULL ELSE + COUNT ( * ) END
----
1

query I rowsort
SELECT + 60 * - 72 AS col2
----
-4320

query I rowsort
SELECT ALL 64 * 55 + + 13
----
3533

query I rowsort
SELECT + 78 + - 60 * + 45 col0
----
-2622

query I rowsort
SELECT ALL + CASE 28 WHEN + ( 14 ) THEN NULL ELSE - 83 + + ( 50 ) END AS col2
----
-33

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5134
SELECT + 54 + - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5134
SELECT + 54 + - CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT ALL 66 * 34
----
2244

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5136
SELECT ALL 1 * - CAST( NULL AS SIGNED ) + CAST( - 20 AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5136
SELECT ALL 1 * - CAST ( NULL AS INTEGER ) + CAST ( - 20 AS REAL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5137
SELECT - CAST( 25 AS SIGNED ) AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-5137
SELECT - CAST ( 25 AS INTEGER ) AS col0
----
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-5138
SELECT + 6 + 69 DIV + 97
----
6

skipif mysql # not compatible
query I rowsort label-5138
SELECT + 6 + 69 / + 97
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5139
SELECT COUNT( * ) + + 6
----
7

skipif mysql # not compatible
query I rowsort label-5139
SELECT COUNT ( * ) + + 6
----
7

query I rowsort
SELECT ALL + 28 * 45
----
1260

query I rowsort
SELECT DISTINCT - 11 + - 99 AS col0
----
-110

onlyif mysql # aggregate syntax: 
query I rowsort label-5142
SELECT - + COUNT( + ( 94 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-5142
SELECT - + COUNT ( + ( 94 ) )
----
-1

query I rowsort
SELECT ALL + 78 - 36 AS col2
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5144
SELECT 27 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5144
SELECT 27 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5145
SELECT - MIN( 87 ) col1
----
-87

skipif mysql # not compatible
query I rowsort label-5145
SELECT - MIN ( 87 ) col1
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-5146
SELECT ALL 8 - - COUNT( * )
----
9

skipif mysql # not compatible
query I rowsort label-5146
SELECT ALL 8 - - COUNT ( * )
----
9

query I rowsort
SELECT 75 * - 93 AS col2
----
-6975

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5148
SELECT COUNT( * ) + + 80 DIV - 49
----
0

skipif mysql # not compatible
query I rowsort label-5148
SELECT COUNT ( * ) + + 80 / - 49
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5149
SELECT ALL + 52 DIV - 98
----
0

skipif mysql # not compatible
query I rowsort label-5149
SELECT ALL + 52 / - 98
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5150
SELECT + ( - 88 ) * + COUNT( * )
----
-88

skipif mysql # not compatible
query I rowsort label-5150
SELECT + ( - 88 ) * + COUNT ( * )
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5151
SELECT COALESCE ( + 9, - 14 * - 31, 93 + ( COUNT( * ) + 55 ) * COUNT( * ), + 14 ) * CASE ( CAST( + 75 AS SIGNED ) ) + - AVG ( 67 ) * + 52 WHEN CAST( 51 AS SIGNED ) THEN + 5 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5151
SELECT COALESCE ( + 9, - 14 * - 31, 93 + ( COUNT ( * ) + 55 ) * COUNT ( * ), + 14 ) * CASE ( CAST ( + 75 AS INTEGER ) ) + - AVG ( 67 ) * + 52 WHEN CAST ( 51 AS INTEGER ) THEN + 5 END
----
NULL

query I rowsort
SELECT ALL - + 49 * 88 AS col0
----
-4312

onlyif mysql # aggregate syntax: 
query I rowsort label-5153
SELECT - - MAX( ALL - 52 ) * 55 + 34
----
-2826

skipif mysql # not compatible
query I rowsort label-5153
SELECT - - MAX ( ALL - 52 ) * 55 + 34
----
-2826

onlyif mysql # aggregate syntax: 
query I rowsort label-5154
SELECT DISTINCT + + COUNT( * ) * - 5
----
-5

skipif mysql # not compatible
query I rowsort label-5154
SELECT DISTINCT + + COUNT ( * ) * - 5
----
-5

query I rowsort
SELECT 26 + + 89 AS col0
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-5156
SELECT ALL + COUNT( * ) + 10 AS col1
----
11

skipif mysql # not compatible
query I rowsort label-5156
SELECT ALL + COUNT ( * ) + 10 AS col1
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5157
SELECT 46 DIV - COUNT( * ) AS col0
----
-46

skipif mysql # not compatible
query I rowsort label-5157
SELECT 46 / - COUNT ( * ) AS col0
----
-46

query I rowsort
SELECT 16 * 30
----
480

query I rowsort
SELECT ALL + 17 + NULLIF ( - 16, - 59 * 63 + - 73 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5160
SELECT 26 * COUNT( * )
----
26

skipif mysql # not compatible
query I rowsort label-5160
SELECT 26 * COUNT ( * )
----
26

query I rowsort
SELECT DISTINCT + 99 + + + 32 AS col1
----
131

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5162
SELECT ALL + 81 + + + 5 - 30 DIV - COUNT( * )
----
116

skipif mysql # not compatible
query I rowsort label-5162
SELECT ALL + 81 + + + 5 - 30 / - COUNT ( * )
----
116

query I rowsort
SELECT DISTINCT + 72 * - NULLIF ( + 58, 0 * - 48 - + 22 )
----
-4176

query I rowsort
SELECT DISTINCT + 99 + 24 AS col2
----
123

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5165
SELECT ALL COUNT( * ) * - CAST( 48 AS SIGNED ) AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-5165
SELECT ALL COUNT ( * ) * - CAST ( 48 AS INTEGER ) AS col1
----
-48

query I rowsort
SELECT ALL + 81 + - 48
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-5167
SELECT + 47 * + + ( + CASE 77 WHEN COUNT( * ) THEN + ( + COUNT( DISTINCT - 9 ) ) WHEN SUM( + 42 ) - 5 THEN NULL WHEN COUNT( * ) + + 86 THEN NULL END ) - + 51 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5167
SELECT + 47 * + + ( + CASE 77 WHEN COUNT ( * ) THEN + ( + COUNT ( DISTINCT - 9 ) ) WHEN SUM ( + 42 ) - 5 THEN NULL WHEN COUNT ( * ) + + 86 THEN NULL END ) - + 51 col1
----
NULL

query I rowsort
SELECT ALL - NULLIF ( 80, + AVG ( 96 ) ) AS col0
----
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-5169
SELECT 60 DIV - - ( + 47 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5169
SELECT 60 / - - ( + 47 ) AS col1
----
1

query I rowsort
SELECT 96 * 36 col1
----
3456

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5171
SELECT CASE + 42 WHEN 35 / COALESCE ( - 8 * - COALESCE ( 84, + MAX( DISTINCT 38 ) * - 48, 91 ), - CAST( 48 AS SIGNED ) * 91 + - 70, - 98 ) - 26 * 97 THEN - 46 + 36 END * 72 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5171
SELECT CASE + 42 WHEN 35 / COALESCE ( - 8 * - COALESCE ( 84, + MAX ( DISTINCT 38 ) * - 48, 91 ), - CAST ( 48 AS INTEGER ) * 91 + - 70, - 98 ) - 26 * 97 THEN - 46 + 36 END * 72 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5172
SELECT + COUNT( DISTINCT - 61 )
----
1

skipif mysql # not compatible
query I rowsort label-5172
SELECT + COUNT ( DISTINCT - 61 )
----
1

query I rowsort
SELECT ALL - NULLIF ( - 72, - 2 + - 47 ) col1
----
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5174
SELECT ALL COUNT( * ) DIV - 36 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5174
SELECT ALL COUNT ( * ) / - 36 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5175
SELECT CASE + COUNT( * ) WHEN - ( - 34 ) + 95 * - 2 THEN NULL WHEN 41 THEN 31 END / NULLIF ( 92 / - COALESCE ( - 92, - 12 * 50, MIN( 84 ) ) + 63, 0 + 90 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5175
SELECT CASE + COUNT ( * ) WHEN - ( - 34 ) + 95 * - 2 THEN NULL WHEN 41 THEN 31 END / NULLIF ( 92 / - COALESCE ( - 92, - 12 * 50, MIN ( 84 ) ) + 63, 0 + 90 ) col2
----
NULL

query I rowsort
SELECT 90 + 52 * 50 AS col1
----
2690

query I rowsort
SELECT + 45 * - + 33
----
-1485

onlyif mysql # aggregate syntax: 
query I rowsort label-5178
SELECT ALL SUM( - 22 ) AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-5178
SELECT ALL SUM ( - 22 ) AS col0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-5179
SELECT + COUNT( DISTINCT + 32 ) + + 76
----
77

skipif mysql # not compatible
query I rowsort label-5179
SELECT + COUNT ( DISTINCT + 32 ) + + 76
----
77

query I rowsort
SELECT ( + 82 ) - 6
----
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5181
SELECT 10 + - 53 * MIN( ALL - 43 DIV + 89 ) col1
----
10

skipif mysql # not compatible
query I rowsort label-5181
SELECT 10 + - 53 * MIN ( ALL - 43 / + 89 ) col1
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-5182
SELECT MIN( + 5 ) col2
----
5

skipif mysql # not compatible
query I rowsort label-5182
SELECT MIN ( + 5 ) col2
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5183
SELECT ALL + COUNT( * ) * + 45 + + 97 col2
----
142

skipif mysql # not compatible
query I rowsort label-5183
SELECT ALL + COUNT ( * ) * + 45 + + 97 col2
----
142

query I rowsort
SELECT + 11 * - 73 * 0 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5185
SELECT ALL NULLIF ( + COUNT( * ), - 88 )
----
1

skipif mysql # not compatible
query I rowsort label-5185
SELECT ALL NULLIF ( + COUNT ( * ), - 88 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5186
SELECT DISTINCT - 62 + + 85 DIV - 56 AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-5186
SELECT DISTINCT - 62 + + 85 / - 56 AS col2
----
-63

query I rowsort
SELECT ALL - 75 + 13
----
-62

query I rowsort
SELECT - 76 * + 66 + - 83 AS col1
----
-5099

onlyif mysql # aggregate syntax: 
query II rowsort label-5189
SELECT COUNT( * ) AS col2, - COUNT( * ) AS col1
----
1
-1

skipif mysql # not compatible
query II rowsort label-5189
SELECT COUNT ( * ) AS col2, - COUNT ( * ) AS col1
----
1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5190
SELECT 26 * MAX( + 75 )
----
1950

skipif mysql # not compatible
query I rowsort label-5190
SELECT 26 * MAX ( + 75 )
----
1950

query I rowsort
SELECT 61 * + 25 AS col0
----
1525

query II rowsort
SELECT + 74 AS col1, NULLIF ( + 90, - 7 + 40 ) + + 29 * 98 AS col2
----
74
2932

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5193
SELECT ALL 13 * - 72 + - + 59 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5193
SELECT ALL 13 * - 72 + - + 59 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5194
SELECT MAX( 18 ) col2
----
18

skipif mysql # not compatible
query I rowsort label-5194
SELECT MAX ( 18 ) col2
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-5195
SELECT ALL 67 DIV - + 96
----
0

skipif mysql # not compatible
query I rowsort label-5195
SELECT ALL 67 / - + 96
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5196
SELECT SUM( 45 ) - - - NULLIF ( 81, 47 ) AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-5196
SELECT SUM ( 45 ) - - - NULLIF ( 81, 47 ) AS col2
----
-36

query II rowsort
SELECT + 85 AS col0, + 71 * - 23 * 81 + - 16
----
85
-132289

query I rowsort
SELECT ALL + 86 * 77 * 83 AS col2
----
549626

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5199
SELECT 77 * CAST( NULL AS SIGNED ) * - CASE - 5 WHEN 81 * + ( 98 ) + CASE + 99 WHEN 83 THEN + SUM( + 37 ) END THEN 42 + - 52 * CASE + 59 WHEN + 59 THEN 75 END WHEN 13 * + 15 THEN 3 * 45 WHEN 29 THEN 92 * - 47 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5199
SELECT 77 * CAST ( NULL AS INTEGER ) * - CASE - 5 WHEN 81 * + ( 98 ) + CASE + 99 WHEN 83 THEN + SUM ( + 37 ) END THEN 42 + - 52 * CASE + 59 WHEN + 59 THEN 75 END WHEN 13 * + 15 THEN 3 * 45 WHEN 29 THEN 92 * - 47 END col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5200
SELECT + COALESCE ( - 67, + 12 * 49, 76 - 26 * 51, + 94 ) + + CASE 40 WHEN 96 THEN + 48 * CAST( - 6 * 47 AS SIGNED ) ELSE + COUNT( * ) + 8 END * - 12
----
-175

skipif mysql # not compatible
query I rowsort label-5200
SELECT + COALESCE ( - 67, + 12 * 49, 76 - 26 * 51, + 94 ) + + CASE 40 WHEN 96 THEN + 48 * CAST ( - 6 * 47 AS INTEGER ) ELSE + COUNT ( * ) + 8 END * - 12
----
-175

onlyif mysql # aggregate syntax: 
query II rowsort label-5201
SELECT ALL + COUNT( * ) AS col2, 64 - + + 19 * ( COUNT( * ) * - 25 ) AS col0
----
1
539

skipif mysql # not compatible
query II rowsort label-5201
SELECT ALL + COUNT ( * ) AS col2, 64 - + + 19 * ( COUNT ( * ) * - 25 ) AS col0
----
1
539

query I rowsort
SELECT - COALESCE ( + + 34, 95 ) - 35
----
-69

query I rowsort
SELECT - 71 + ( 42 ) AS col2
----
-29

query I rowsort
SELECT 87 * - + 89 - + 97 AS col1
----
-7840

onlyif mysql # aggregate syntax: 
query I rowsort label-5205
SELECT - 88 * + 90 * + - ( CASE COUNT( * ) WHEN + 73 + + 87 THEN ( 57 ) END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5205
SELECT - 88 * + 90 * + - ( CASE COUNT ( * ) WHEN + 73 + + 87 THEN ( 57 ) END ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5206
SELECT ALL + 46, + COUNT( * ) AS col2
----
46
1

skipif mysql # not compatible
query II rowsort label-5206
SELECT ALL + 46, + COUNT ( * ) AS col2
----
46
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5207
SELECT ALL - - COUNT( - 58 ) - + - 98 AS col2
----
99

skipif mysql # not compatible
query I rowsort label-5207
SELECT ALL - - COUNT ( - 58 ) - + - 98 AS col2
----
99

query I rowsort
SELECT - 4 * + 46 + 77 + 98 + - 18 AS col2
----
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5209
SELECT DISTINCT - ( - 7 ) * - 20 DIV COUNT( * )
----
-140

skipif mysql # not compatible
query I rowsort label-5209
SELECT DISTINCT - ( - 7 ) * - 20 / COUNT ( * )
----
-140

query I rowsort
SELECT - 69 + + 74 * + 99 * 40
----
292971

query I rowsort
SELECT DISTINCT - 68 * - 38 + + 35 - - 42 * 31 AS col0
----
3921

query I rowsort
SELECT - - 35 AS col1
----
35

query II rowsort
SELECT 29 AS col2, + 69
----
29
69

onlyif mysql # aggregate syntax: 
query I rowsort label-5214
SELECT ALL - 24 * + + COUNT( DISTINCT + ( + 9 ) ) AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-5214
SELECT ALL - 24 * + + COUNT ( DISTINCT + ( + 9 ) ) AS col0
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5215
SELECT DISTINCT + - NULLIF ( + - COUNT( * ), + - MIN( 43 ) + CAST( NULL AS SIGNED ) ) + 21 AS col0
----
22

skipif mysql # not compatible
query I rowsort label-5215
SELECT DISTINCT + - NULLIF ( + - COUNT ( * ), + - MIN ( 43 ) + CAST ( NULL AS INTEGER ) ) + 21 AS col0
----
22

query I rowsort
SELECT COALESCE ( 90, + 69 ) AS col0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5217
SELECT ALL - NULLIF ( + COUNT( * ), - 44 + 62 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5217
SELECT ALL - NULLIF ( + COUNT ( * ), - 44 + 62 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5218
SELECT + - 38 + + - ( COUNT( * ) ) - 76 * + 9 * - 90
----
61521

skipif mysql # not compatible
query I rowsort label-5218
SELECT + - 38 + + - ( COUNT ( * ) ) - 76 * + 9 * - 90
----
61521

onlyif mysql # DIV for integer division: 
query I rowsort label-5219
SELECT DISTINCT - 33 + 67 DIV + 12 + 93 AS col0
----
65

skipif mysql # not compatible
query I rowsort label-5219
SELECT DISTINCT - 33 + 67 / + 12 + 93 AS col0
----
65

onlyif mysql # aggregate syntax: 
query II rowsort label-5220
SELECT ALL COUNT( * ), 33 AS col2
----
1
33

skipif mysql # not compatible
query II rowsort label-5220
SELECT ALL COUNT ( * ), 33 AS col2
----
1
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5221
SELECT + + 63 DIV - 80 * - 99 + - COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5221
SELECT + + 63 / - 80 * - 99 + - COUNT ( * ) AS col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5222
SELECT DISTINCT + 41 DIV - 7 AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-5222
SELECT DISTINCT + 41 / - 7 AS col1
----
-5

query I rowsort
SELECT ALL - 83 + - + 6 + + 62 AS col0
----
-27

query I rowsort
SELECT - 33 + COALESCE ( 46, 47 * - 17 + 95 * 7 ) AS col1
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-5225
SELECT - 91 - + 52 + COUNT( * )
----
-142

skipif mysql # not compatible
query I rowsort label-5225
SELECT - 91 - + 52 + COUNT ( * )
----
-142

onlyif mysql # aggregate syntax: 
query I rowsort label-5226
SELECT DISTINCT ( 55 ) + + 62 / CASE 3 WHEN + 57 THEN - 65 WHEN - 18 + + 48 THEN 98 + 7 * ( + COUNT( + 73 ) ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5226
SELECT DISTINCT ( 55 ) + + 62 / CASE 3 WHEN + 57 THEN - 65 WHEN - 18 + + 48 THEN 98 + 7 * ( + COUNT ( + 73 ) ) ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5227
SELECT + 91 + - COALESCE ( - SUM( DISTINCT 2 ), ( 53 ) ) + - 91 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-5227
SELECT + 91 + - COALESCE ( - SUM ( DISTINCT 2 ), ( 53 ) ) + - 91 AS col1
----
2

query I rowsort
SELECT ALL 97 + - 75
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-5229
SELECT + CASE - COUNT( * ) WHEN - 65 THEN COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5229
SELECT + CASE - COUNT ( * ) WHEN - 65 THEN COUNT ( * ) END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5230
SELECT ALL + CAST( - - COUNT( * ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-5230
SELECT ALL + CAST ( - - COUNT ( * ) AS INTEGER )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5231
SELECT DISTINCT - 8 DIV + ( + - MAX( - + 63 ) ) + + 13
----
13

skipif mysql # not compatible
query I rowsort label-5231
SELECT DISTINCT - 8 / + ( + - MAX ( - + 63 ) ) + + 13
----
13

query I rowsort
SELECT ( ( - 81 ) )
----
-81

query I rowsort
SELECT + 71 * 17 + 24
----
1231

query I rowsort
SELECT + ( - 85 ) AS col0
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-5235
SELECT + COALESCE ( NULLIF ( - - CASE 79 WHEN 81 THEN 15 WHEN 93 THEN NULL END, - COUNT( * ) + - 99 ), - COUNT( * ) * - 32 ) AS col1
----
32

skipif mysql # not compatible
query I rowsort label-5235
SELECT + COALESCE ( NULLIF ( - - CASE 79 WHEN 81 THEN 15 WHEN 93 THEN NULL END, - COUNT ( * ) + - 99 ), - COUNT ( * ) * - 32 ) AS col1
----
32

query I rowsort
SELECT ( - - 38 ) AS col2
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5237
SELECT ( 46 ), 35 / CAST( NULL AS SIGNED ) AS col2
----
46
NULL

skipif mysql # not compatible
query II rowsort label-5237
SELECT ( 46 ), 35 / CAST ( NULL AS INTEGER ) AS col2
----
46
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5238
SELECT + 20 DIV 77 + - 30 + + - 52 AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-5238
SELECT + 20 / 77 + - 30 + + - 52 AS col0
----
-82

query I rowsort
SELECT ALL 33 * + + 7 - - 68 * - 67 * - 91
----
414827

query II rowsort
SELECT + ( - 91 ) AS col0, 51 AS col1
----
-91
51

query I rowsort
SELECT ALL 83 * 90 col2
----
7470

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5242
SELECT + COUNT( ALL + - 11 ) DIV + + SUM( + NULLIF ( - 33, 36 + - 75 ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5242
SELECT + COUNT ( ALL + - 11 ) / + + SUM ( + NULLIF ( - 33, 36 + - 75 ) ) AS col2
----
0

query I rowsort
SELECT + ( - 44 )
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5244
SELECT DISTINCT 12 / CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5244
SELECT DISTINCT 12 / CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5245
SELECT ALL + 91 * - 3 - - NULLIF ( 95, + 87 * CAST( 98 AS DECIMAL ) + + 50 )
----
-178

skipif mysql # not compatible
query I rowsort label-5245
SELECT ALL + 91 * - 3 - - NULLIF ( 95, + 87 * CAST ( 98 AS REAL ) + + 50 )
----
-178

onlyif mysql # aggregate syntax: 
query I rowsort label-5246
SELECT ALL - CASE + + 65 WHEN - NULLIF ( + 98, + CASE + 39 WHEN + 47 THEN 40 / 11 WHEN - 79 THEN NULL ELSE NULL END ) + 97 THEN - COUNT( * ) + + 23 END * 38 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5246
SELECT ALL - CASE + + 65 WHEN - NULLIF ( + 98, + CASE + 39 WHEN + 47 THEN 40 / 11 WHEN - 79 THEN NULL ELSE NULL END ) + 97 THEN - COUNT ( * ) + + 23 END * 38 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5247
SELECT - 0 * - + 38 * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5247
SELECT - 0 * - + 38 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL 70 * - 10 * - - 9 col0
----
-6300

onlyif mysql # aggregate syntax: 
query I rowsort label-5249
SELECT + 60 * + COUNT( * ) - + 35 * + + 13 * - 29
----
13255

skipif mysql # not compatible
query I rowsort label-5249
SELECT + 60 * + COUNT ( * ) - + 35 * + + 13 * - 29
----
13255

onlyif mysql # aggregate syntax: 
query I rowsort label-5250
SELECT + ( 93 ) + 32 + + 10 - 92 * - NULLIF ( - COUNT( * ), 37 )
----
43

skipif mysql # not compatible
query I rowsort label-5250
SELECT + ( 93 ) + 32 + + 10 - 92 * - NULLIF ( - COUNT ( * ), 37 )
----
43

query I rowsort
SELECT 28 * + 83 + - - 21
----
2345

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5252
SELECT ALL + 62 * - 85 + + + NULLIF ( + - 62, - 73 + + 69 * - 67 ) DIV - COUNT( * )
----
-5208

skipif mysql # not compatible
query I rowsort label-5252
SELECT ALL + 62 * - 85 + + + NULLIF ( + - 62, - 73 + + 69 * - 67 ) / - COUNT ( * )
----
-5208

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5253
SELECT DISTINCT + - 88 * - + 81 + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5253
SELECT DISTINCT + - 88 * - + 81 + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL - + 55 * - + ( + 62 ) * - - 71 AS col0
----
242110

onlyif mysql # DIV for integer division: 
query II rowsort label-5255
SELECT - + 67 * + 2 AS col1, 33 * 11 - - 65 DIV 28
----
-134
365

skipif mysql # not compatible
query II rowsort label-5255
SELECT - + 67 * + 2 AS col1, 33 * 11 - - 65 / 28
----
-134
365

onlyif mysql # aggregate syntax: 
query I rowsort label-5256
SELECT ALL + + 76 + + MAX( DISTINCT + 36 ) AS col2
----
112

skipif mysql # not compatible
query I rowsort label-5256
SELECT ALL + + 76 + + MAX ( DISTINCT + 36 ) AS col2
----
112

query I rowsort
SELECT - - 34 * + 76 AS col0
----
2584

query I rowsort
SELECT ALL + + 63 * 72 * - 82 - + 78 AS col0
----
-372030

query I rowsort
SELECT - - 48 + 38 + 82 + 64 - 54 AS col1
----
178

query I rowsort
SELECT DISTINCT - 12 + 32 * 8 + + 7 * + - 1 + + 12
----
249

query I rowsort
SELECT ALL + 58 * - 31 AS col1
----
-1798

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5262
SELECT ALL 19, 68 * + CAST( + 71 AS SIGNED ) AS col0
----
19
4828

skipif mysql # not compatible
query II rowsort label-5262
SELECT ALL 19, 68 * + CAST ( + 71 AS INTEGER ) AS col0
----
19
4828

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5263
SELECT DISTINCT - CAST( NULL AS DECIMAL ) - + 25 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5263
SELECT DISTINCT - CAST ( NULL AS REAL ) - + 25 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5264
SELECT ALL 49 DIV 92 * - 55 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5264
SELECT ALL 49 / 92 * - 55 AS col1
----
0

query I rowsort
SELECT - 14 + ( + 27 )
----
13

query I rowsort
SELECT - COALESCE ( - 96, NULLIF ( - + 21, + + 27 ), 24, + CASE - 24 WHEN 92 THEN 65 ELSE 72 * 3 END )
----
96

query I rowsort
SELECT - 43 - + 37
----
-80

query I rowsort
SELECT 45 * - 65
----
-2925

onlyif mysql # aggregate syntax: 
query I rowsort label-5269
SELECT CASE + SUM( ALL - 48 ) WHEN + 69 * - 69 + 83 THEN 65 + 31 WHEN 62 * ( - 21 * 45 ) + - 38 * 99 THEN NULL ELSE - 96 END * 54
----
-5184

skipif mysql # not compatible
query I rowsort label-5269
SELECT CASE + SUM ( ALL - 48 ) WHEN + 69 * - 69 + 83 THEN 65 + 31 WHEN 62 * ( - 21 * 45 ) + - 38 * 99 THEN NULL ELSE - 96 END * 54
----
-5184

onlyif mysql # DIV for integer division: 
query I rowsort label-5270
SELECT ALL + 22 DIV + 22 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5270
SELECT ALL + 22 / + 22 AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-5271
SELECT + 29 * 52 + NULLIF ( - SUM( ALL 30 ), - COUNT( * ) + 9 * ( - COALESCE ( 41, 70, ( COALESCE ( + 16, 31 ) ) * CASE - 28 * - 82 WHEN CASE - 50 WHEN 40 * + 47 THEN + COUNT( * ) WHEN + ( - 69 ) + ( 40 ) THEN ( MAX( DISTINCT 56 ) ) WHEN 35 - 16 THEN NULL ELSE NULL END + CAST( + AVG ( + 95 ) AS DECIMAL ) THEN SUM( 13 ) WHEN 13 THEN NULL END ) ) ) + - CASE 94 WHEN + 80 THEN NULL ELSE ( COUNT( * ) ) END DIV ( 5 )
----
1478

skipif mysql # not compatible
query I rowsort label-5271
SELECT + 29 * 52 + NULLIF ( - SUM ( ALL 30 ), - COUNT ( * ) + 9 * ( - COALESCE ( 41, 70, ( COALESCE ( + 16, 31 ) ) * CASE - 28 * - 82 WHEN CASE - 50 WHEN 40 * + 47 THEN + COUNT ( * ) WHEN + ( - 69 ) + ( 40 ) THEN ( MAX ( DISTINCT 56 ) ) WHEN 35 - 16 THEN NULL ELSE NULL END + CAST ( + AVG ( + 95 ) AS REAL ) THEN SUM ( 13 ) WHEN 13 THEN NULL END ) ) ) + - CASE 94 WHEN + 80 THEN NULL ELSE ( COUNT ( * ) ) END / ( 5 )
----
1478

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5272
SELECT ( - MAX( - 83 ) ) DIV 98 + - 99 * 80
----
-7920

skipif mysql # not compatible
query I rowsort label-5272
SELECT ( - MAX ( - 83 ) ) / 98 + - 99 * 80
----
-7920

query I rowsort
SELECT ALL 7 - 98
----
-91

query I rowsort
SELECT 80 * 32 * + 96 AS col0
----
245760

query I rowsort
SELECT ALL 59 * - 67 AS col1
----
-3953

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5276
SELECT SUM( DISTINCT + CAST( NULL AS SIGNED ) ) - MAX( DISTINCT + 72 ) - + NULLIF ( 66, 19 * - 13 + + 30 ) * + 53 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5276
SELECT SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) - MAX ( DISTINCT + 72 ) - + NULLIF ( 66, 19 * - 13 + + 30 ) * + 53 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5277
SELECT COUNT( * ) * + 84 + - 73 + 45 col2
----
56

skipif mysql # not compatible
query I rowsort label-5277
SELECT COUNT ( * ) * + 84 + - 73 + 45 col2
----
56

query I rowsort
SELECT DISTINCT 6 * - 7
----
-42

query I rowsort
SELECT DISTINCT - - 40 AS col1
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-5280
SELECT - 14 + + 15 + - NULLIF ( - 94, + 49 ) * COUNT( * ) AS col2
----
95

skipif mysql # not compatible
query I rowsort label-5280
SELECT - 14 + + 15 + - NULLIF ( - 94, + 49 ) * COUNT ( * ) AS col2
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5281
SELECT ALL CASE + + COALESCE ( - 7, 65 * + 63 / 3, 38 ) WHEN 92 THEN NULL WHEN ( - ( CAST( NULL AS SIGNED ) ) ) THEN 80 + - 95 * + 54 END + 5 * 24 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5281
SELECT ALL CASE + + COALESCE ( - 7, 65 * + 63 / 3, 38 ) WHEN 92 THEN NULL WHEN ( - ( CAST ( NULL AS INTEGER ) ) ) THEN 80 + - 95 * + 54 END + 5 * 24 AS col0
----
NULL

query I rowsort
SELECT 96 + 76 AS col0
----
172

query I rowsort
SELECT - 98 - + 43 AS col0
----
-141

query I rowsort
SELECT ALL - + 81 AS col1
----
-81

query I rowsort
SELECT ALL - 99 + + + 84 AS col0
----
-15

query I rowsort
SELECT DISTINCT 3 + - 48
----
-45

query I rowsort
SELECT ( + - 87 ) + - 20 AS col2
----
-107

onlyif mysql # DIV for integer division: 
query I rowsort label-5288
SELECT ALL + 7 DIV + 68 * - 7
----
0

skipif mysql # not compatible
query I rowsort label-5288
SELECT ALL + 7 / + 68 * - 7
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5289
SELECT ALL - 44 + + MIN( - + 20 ) * - 17 AS col1
----
296

skipif mysql # not compatible
query I rowsort label-5289
SELECT ALL - 44 + + MIN ( - + 20 ) * - 17 AS col1
----
296

onlyif mysql # aggregate syntax: 
query I rowsort label-5290
SELECT + 91 + + 74 + - - 1 + + 21 * - - ( + MIN( ( 91 ) ) )
----
2077

skipif mysql # not compatible
query I rowsort label-5290
SELECT + 91 + + 74 + - - 1 + + 21 * - - ( + MIN ( ( 91 ) ) )
----
2077

onlyif mysql # aggregate syntax: 
query I rowsort label-5291
SELECT DISTINCT + CASE 93 WHEN + + ( + 32 ) * - COUNT( * ) + MAX( ALL 22 + 52 ) THEN + AVG ( - 83 ) WHEN 65 * COUNT( * ) THEN - 47 + 51 * - 74 END * - 14 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5291
SELECT DISTINCT + CASE 93 WHEN + + ( + 32 ) * - COUNT ( * ) + MAX ( ALL 22 + 52 ) THEN + AVG ( - 83 ) WHEN 65 * COUNT ( * ) THEN - 47 + 51 * - 74 END * - 14 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5292
SELECT DISTINCT ( + COUNT( * ) ) + ( - 30 )
----
-29

skipif mysql # not compatible
query I rowsort label-5292
SELECT DISTINCT ( + COUNT ( * ) ) + ( - 30 )
----
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5293
SELECT ALL 88 + - + CASE 94 WHEN CAST( 38 AS SIGNED ) * 0 THEN - 51 WHEN - 75 + - COUNT( * ) THEN NULL ELSE + 88 + + NULLIF ( 88, - COUNT( * ) - - 29 * 93 ) END * MIN( ALL ( 20 ) ) AS col2
----
-3432

skipif mysql # not compatible
query I rowsort label-5293
SELECT ALL 88 + - + CASE 94 WHEN CAST ( 38 AS INTEGER ) * 0 THEN - 51 WHEN - 75 + - COUNT ( * ) THEN NULL ELSE + 88 + + NULLIF ( 88, - COUNT ( * ) - - 29 * 93 ) END * MIN ( ALL ( 20 ) ) AS col2
----
-3432

query I rowsort
SELECT DISTINCT + ( - 84 ) + 6
----
-78

query I rowsort
SELECT + 67 + - 34
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5296
SELECT - 41 + 43 - 20 * + + 67 * 95 * CAST( + 27 + 52 AS SIGNED )
----
-10056698

skipif mysql # not compatible
query I rowsort label-5296
SELECT - 41 + 43 - 20 * + + 67 * 95 * CAST ( + 27 + 52 AS INTEGER )
----
-10056698

onlyif mysql # aggregate syntax: 
query I rowsort label-5297
SELECT - + COUNT( ALL 3 )
----
-1

skipif mysql # not compatible
query I rowsort label-5297
SELECT - + COUNT ( ALL 3 )
----
-1

query I rowsort
SELECT ALL + 22 - NULLIF ( ( - 62 ), 58 / 65 )
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-5299
SELECT 64 * CASE + 49 WHEN + 71 * - 10 + - 62 THEN - 34 * - COUNT( * ) ELSE 96 * 52 END AS col0
----
319488

skipif mysql # not compatible
query I rowsort label-5299
SELECT 64 * CASE + 49 WHEN + 71 * - 10 + - 62 THEN - 34 * - COUNT ( * ) ELSE 96 * 52 END AS col0
----
319488

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5300
SELECT ALL + 27 * + CAST( COUNT( * ) AS SIGNED ) AS col0
----
27

skipif mysql # not compatible
query I rowsort label-5300
SELECT ALL + 27 * + CAST ( COUNT ( * ) AS INTEGER ) AS col0
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5301
SELECT 71 + - CASE + 32 WHEN + AVG ( DISTINCT - NULLIF ( + - 71, - 80 ) ) THEN 67 + - COUNT( * ) WHEN - 65 * 9 THEN - CAST( NULL AS SIGNED ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5301
SELECT 71 + - CASE + 32 WHEN + AVG ( DISTINCT - NULLIF ( + - 71, - 80 ) ) THEN 67 + - COUNT ( * ) WHEN - 65 * 9 THEN - CAST ( NULL AS INTEGER ) END AS col0
----
NULL

query I rowsort
SELECT ( + 64 ) + + + 21
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-5303
SELECT 86 + - COUNT( DISTINCT + 16 ) col0
----
85

skipif mysql # not compatible
query I rowsort label-5303
SELECT 86 + - COUNT ( DISTINCT + 16 ) col0
----
85

query II rowsort
SELECT DISTINCT 31, - 93 AS col2
----
31
-93

query II rowsort
SELECT 7 col2, 4 + 51
----
7
55

onlyif mysql # aggregate syntax: 
query I rowsort label-5306
SELECT AVG ( DISTINCT - 40 ) + 59 * - CASE WHEN NOT NULL >= NULL THEN 96 ELSE - CASE + 65 WHEN 52 THEN NULL WHEN 93 THEN + COUNT( * ) / + 97 ELSE NULL END END
----
NULL

skipif mysql # not compatible
query I rowsort label-5306
SELECT AVG ( DISTINCT - 40 ) + 59 * - CASE WHEN NOT NULL >= NULL THEN 96 ELSE - CASE + 65 WHEN 52 THEN NULL WHEN 93 THEN + COUNT ( * ) / + 97 ELSE NULL END END
----
NULL

query II rowsort
SELECT ALL 37, 83 AS col2
----
37
83

query II rowsort
SELECT - 38 AS col2, + 37 + - 36
----
-38
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5309
SELECT ALL 39, COUNT( * ) AS col0
----
39
1

skipif mysql # not compatible
query II rowsort label-5309
SELECT ALL 39, COUNT ( * ) AS col0
----
39
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5310
SELECT DISTINCT + 37 * - + COUNT( * )
----
-37

skipif mysql # not compatible
query I rowsort label-5310
SELECT DISTINCT + 37 * - + COUNT ( * )
----
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5311
SELECT 80 DIV MIN( - + 81 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5311
SELECT 80 / MIN ( - + 81 ) AS col2
----
0

query II rowsort
SELECT ALL + 19 * - 19 AS col1, 52 AS col1
----
-361
52

query I rowsort
SELECT 95 + - 19 * - + 23 AS col0
----
532

query II rowsort
SELECT ALL - 66 AS col1, 42
----
-66
42

query I rowsort
SELECT 5 * + ( 79 ) col0
----
395

query I rowsort
SELECT ALL - 92 + + + 59 * - 24
----
-1508

query I rowsort
SELECT - 73 * + ( + + 78 ) AS col2
----
-5694

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5318
SELECT - CASE + 83 WHEN + - 74 THEN - + COALESCE ( + + ( 57 ), COUNT( * ) DIV - AVG ( ALL + 17 ) + NULLIF ( + 14, CAST( 39 AS SIGNED ) ) ) ELSE 93 * 71 END AS col2
----
-6603

skipif mysql # not compatible
query I rowsort label-5318
SELECT - CASE + 83 WHEN + - 74 THEN - + COALESCE ( + + ( 57 ), COUNT ( * ) / - AVG ( ALL + 17 ) + NULLIF ( + 14, CAST ( 39 AS INTEGER ) ) ) ELSE 93 * 71 END AS col2
----
-6603

query I rowsort
SELECT - ( - 5 ) * + 39 - + 46 + - + 83 + - - 27 AS col2
----
93

query I rowsort
SELECT ALL - ( + 70 )
----
-70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5321
SELECT 11 DIV + COUNT( * ) AS col1
----
11

skipif mysql # not compatible
query I rowsort label-5321
SELECT 11 / + COUNT ( * ) AS col1
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-5322
SELECT + COUNT( * ) * - 72
----
-72

skipif mysql # not compatible
query I rowsort label-5322
SELECT + COUNT ( * ) * - 72
----
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5323
SELECT ALL + - 97 + 2 DIV 94 DIV - 93, 40 - - COUNT( * ) + COUNT( * ) AS col0
----
-97
42

skipif mysql # not compatible
query II rowsort label-5323
SELECT ALL + - 97 + 2 / 94 / - 93, 40 - - COUNT ( * ) + COUNT ( * ) AS col0
----
-97
42

onlyif mysql # aggregate syntax: 
query I rowsort label-5324
SELECT DISTINCT - - 34 + SUM( ALL 74 ) AS col1
----
108

skipif mysql # not compatible
query I rowsort label-5324
SELECT DISTINCT - - 34 + SUM ( ALL 74 ) AS col1
----
108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5325
SELECT ALL - CAST( NULL AS SIGNED ) + - 57 AS col2, CASE + 58 WHEN + - 28 THEN NULL ELSE + - MIN( + 34 ) * COUNT( * ) + - 96 * - COUNT( * ) END * + 5 + 20 col2
----
NULL
330

skipif mysql # not compatible
query II rowsort label-5325
SELECT ALL - CAST ( NULL AS INTEGER ) + - 57 AS col2, CASE + 58 WHEN + - 28 THEN NULL ELSE + - MIN ( + 34 ) * COUNT ( * ) + - 96 * - COUNT ( * ) END * + 5 + 20 col2
----
NULL
330

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5326
SELECT + + 34 AS col1, COUNT( * ) * + - 65 * - CAST( + - 41 AS DECIMAL ) - + 19 + - 39 * CAST( NULL AS SIGNED )
----
34
NULL

skipif mysql # not compatible
query II rowsort label-5326
SELECT + + 34 AS col1, COUNT ( * ) * + - 65 * - CAST ( + - 41 AS REAL ) - + 19 + - 39 * CAST ( NULL AS INTEGER )
----
34
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5327
SELECT ALL + + COUNT( * ) * - 9
----
-9

skipif mysql # not compatible
query I rowsort label-5327
SELECT ALL + + COUNT ( * ) * - 9
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5328
SELECT ALL COUNT( ( + 14 ) ) + + + 73
----
74

skipif mysql # not compatible
query I rowsort label-5328
SELECT ALL COUNT ( ( + 14 ) ) + + + 73
----
74

query I rowsort
SELECT - 0 * 72 * 46 - 5
----
-5

query II rowsort
SELECT 60 col2, 29
----
60
29

query I rowsort
SELECT 59 - 93 AS col2
----
-34

query I rowsort
SELECT + 12 * 26 * - - 50 col0
----
15600

query I rowsort
SELECT + 55 + ( + 37 ) AS col2
----
92

query I rowsort
SELECT - - NULLIF ( + - ( - 17 ), 9 * + - 5 + - 96 * 72 ) AS col0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-5335
SELECT ALL ( - + COUNT( * ) ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-5335
SELECT ALL ( - + COUNT ( * ) ) col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5336
SELECT 64 - COUNT( * ) + - - COALESCE ( - - 8, + - 38 - + 38 ) - - ( CASE + 66 WHEN 43 THEN NULL WHEN 20 THEN + CAST( NULL AS SIGNED ) ELSE NULL END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5336
SELECT 64 - COUNT ( * ) + - - COALESCE ( - - 8, + - 38 - + 38 ) - - ( CASE + 66 WHEN 43 THEN NULL WHEN 20 THEN + CAST ( NULL AS INTEGER ) ELSE NULL END ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5337
SELECT + 32 * + COALESCE ( - 80, + 25 * - 28 * + MIN( DISTINCT - 49 ), COUNT( DISTINCT - COALESCE ( - 39, + 31 ) ) )
----
-2560

skipif mysql # not compatible
query I rowsort label-5337
SELECT + 32 * + COALESCE ( - 80, + 25 * - 28 * + MIN ( DISTINCT - 49 ), COUNT ( DISTINCT - COALESCE ( - 39, + 31 ) ) )
----
-2560

query I rowsort
SELECT ALL 38 * + 42 * - - 64 AS col0
----
102144

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5339
SELECT + COUNT( * ) * 11 AS col0, 52 + ( COUNT( * ) ) + + 80 + + 36 + 76 * 90 * 43 DIV 35
----
11
8572

skipif mysql # not compatible
query II rowsort label-5339
SELECT + COUNT ( * ) * 11 AS col0, 52 + ( COUNT ( * ) ) + + 80 + + 36 + 76 * 90 * 43 / 35
----
11
8572

query I rowsort
SELECT + 79 + - - 35 + + 59 + - 61 * - 19
----
1332

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5341
SELECT - 84 DIV 58 * + 88 * + 25 * + 87, SUM( ALL + 47 ) AS col1
----
-191400
47

skipif mysql # not compatible
query II rowsort label-5341
SELECT - 84 / 58 * + 88 * + 25 * + 87, SUM ( ALL + 47 ) AS col1
----
-191400
47

query I rowsort
SELECT - 2 * 68
----
-136

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5343
SELECT - CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) - 83 + + - 96 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5343
SELECT - CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) - 83 + + - 96 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5344
SELECT ALL MIN( ALL ( - - 42 ) ), 22 AS col1
----
42
22

skipif mysql # not compatible
query II rowsort label-5344
SELECT ALL MIN ( ALL ( - - 42 ) ), 22 AS col1
----
42
22

onlyif mysql # aggregate syntax: 
query I rowsort label-5345
SELECT DISTINCT MIN( + 63 )
----
63

skipif mysql # not compatible
query I rowsort label-5345
SELECT DISTINCT MIN ( + 63 )
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5346
SELECT DISTINCT 89 + - + COUNT( * ) DIV + + 71 AS col0
----
89

skipif mysql # not compatible
query I rowsort label-5346
SELECT DISTINCT 89 + - + COUNT ( * ) / + + 71 AS col0
----
89

query I rowsort
SELECT ALL 24 + - 51 + + + 18 * + 7
----
99

query I rowsort
SELECT - COALESCE ( - 29, - 51, - 66 ) AS col2
----
29

query I rowsort
SELECT ( + 35 )
----
35

query I rowsort
SELECT 60 * - 95 + - 12
----
-5712

query I rowsort
SELECT DISTINCT - 88 * 72 AS col1
----
-6336

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5352
SELECT + - 93 DIV 42 + - + NULLIF ( NULLIF ( - 86, COUNT( * ) ), + 28 ) + 58 AS col2
----
142

skipif mysql # not compatible
query I rowsort label-5352
SELECT + - 93 / 42 + - + NULLIF ( NULLIF ( - 86, COUNT ( * ) ), + 28 ) + 58 AS col2
----
142

onlyif mysql # aggregate syntax: 
query I rowsort label-5353
SELECT COALESCE ( - ( - + 32 ), 45, + MIN( DISTINCT - + 11 ) * + 14 * 34 )
----
32

skipif mysql # not compatible
query I rowsort label-5353
SELECT COALESCE ( - ( - + 32 ), 45, + MIN ( DISTINCT - + 11 ) * + 14 * 34 )
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5354
SELECT DISTINCT - - 77 * - - ( + 76 ) + + COUNT( * ) DIV 11 AS col0
----
5852

skipif mysql # not compatible
query I rowsort label-5354
SELECT DISTINCT - - 77 * - - ( + 76 ) + + COUNT ( * ) / 11 AS col0
----
5852

onlyif mysql # aggregate syntax: 
query I rowsort label-5355
SELECT ALL + + COUNT( * ) * - + 30 + - 91
----
-121

skipif mysql # not compatible
query I rowsort label-5355
SELECT ALL + + COUNT ( * ) * - + 30 + - 91
----
-121

query I rowsort
SELECT - 33 - + 49 AS col0
----
-82

query I rowsort
SELECT DISTINCT 2 * - 76
----
-152

query I rowsort
SELECT DISTINCT + + 86 AS col2
----
86

query I rowsort
SELECT ( - NULLIF ( + - 29, + 90 ) ) AS col0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-5360
SELECT - - 11 + + - COUNT( * ) * COUNT( * ) + - ( - + COUNT( * ) )
----
11

skipif mysql # not compatible
query I rowsort label-5360
SELECT - - 11 + + - COUNT ( * ) * COUNT ( * ) + - ( - + COUNT ( * ) )
----
11

query I rowsort
SELECT ( + - 79 ) AS col1
----
-79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5362
SELECT - 73 * + - 60 + + + ( 24 ) DIV + - COUNT( * ) + + - 23 + - 82 DIV + 26 AS col1
----
4330

skipif mysql # not compatible
query I rowsort label-5362
SELECT - 73 * + - 60 + + + ( 24 ) / + - COUNT ( * ) + + - 23 + - 82 / + 26 AS col1
----
4330

query I rowsort
SELECT + + ( - 52 ) - + - 60 * 66 + - 47 AS col1
----
3861

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5364
SELECT ALL - - 56 DIV + COUNT( * )
----
56

skipif mysql # not compatible
query I rowsort label-5364
SELECT ALL - - 56 / + COUNT ( * )
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5365
SELECT ALL ( - 18 ) * 23 - + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5365
SELECT ALL ( - 18 ) * 23 - + CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5366
SELECT ALL + 84 * + + 19 * CASE WHEN 76 NOT IN ( - 55 ) THEN - 46 ELSE COUNT( * ) END
----
-73416

skipif mysql # not compatible
query I rowsort label-5366
SELECT ALL + 84 * + + 19 * CASE WHEN 76 NOT IN ( - 55 ) THEN - 46 ELSE COUNT ( * ) END
----
-73416

query I rowsort
SELECT + ( - 7 ) AS col0
----
-7

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5368
SELECT DISTINCT - + MIN( - CAST( NULL AS DECIMAL ) ) * + 33
----
NULL

skipif mysql # not compatible
query I rowsort label-5368
SELECT DISTINCT - + MIN ( - CAST ( NULL AS REAL ) ) * + 33
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5369
SELECT ALL - 36 * + COUNT( * ) AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-5369
SELECT ALL - 36 * + COUNT ( * ) AS col0
----
-36

query I rowsort
SELECT - 20 + - 98 col0
----
-118

onlyif mysql # aggregate syntax: 
query I rowsort label-5371
SELECT SUM( DISTINCT + 29 )
----
29

skipif mysql # not compatible
query I rowsort label-5371
SELECT SUM ( DISTINCT + 29 )
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-5372
SELECT SUM( ALL 62 ) AS col1
----
62

skipif mysql # not compatible
query I rowsort label-5372
SELECT SUM ( ALL 62 ) AS col1
----
62

query I rowsort
SELECT + 61 + 93 * + 55 AS col0
----
5176

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5374
SELECT + 72 * - ( - CAST( NULL AS SIGNED ) ) * + + 60 + + - 25 * - + 70 * + 57 - + + 90 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5374
SELECT + 72 * - ( - CAST ( NULL AS INTEGER ) ) * + + 60 + + - 25 * - + 70 * + 57 - + + 90 col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5375
SELECT DISTINCT CAST( NULL AS SIGNED ), 58 AS col1
----
NULL
58

skipif mysql # not compatible
query II rowsort label-5375
SELECT DISTINCT CAST ( NULL AS INTEGER ), 58 AS col1
----
NULL
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5376
SELECT ALL CAST( + 50 AS SIGNED ) col2
----
50

skipif mysql # not compatible
query I rowsort label-5376
SELECT ALL CAST ( + 50 AS INTEGER ) col2
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5377
SELECT + CAST( + + 52 AS SIGNED ) + - 25
----
27

skipif mysql # not compatible
query I rowsort label-5377
SELECT + CAST ( + + 52 AS INTEGER ) + - 25
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-5378
SELECT DISTINCT MIN( ALL + + 15 )
----
15

skipif mysql # not compatible
query I rowsort label-5378
SELECT DISTINCT MIN ( ALL + + 15 )
----
15

query I rowsort
SELECT ALL 37 * + 6
----
222

query I rowsort
SELECT + 19 + - 51 * - + ( + - 23 ) AS col2
----
-1154

onlyif mysql # aggregate syntax: 
query I rowsort label-5381
SELECT - CASE 0 WHEN 56 THEN NULL ELSE + SUM( + 14 ) * - + 1 + + 46 END AS col1
----
-32

skipif mysql # not compatible
query I rowsort label-5381
SELECT - CASE 0 WHEN 56 THEN NULL ELSE + SUM ( + 14 ) * - + 1 + + 46 END AS col1
----
-32

onlyif mysql # aggregate syntax: 
query II rowsort label-5382
SELECT 56, - 34 * - - COUNT( + 20 ) AS col1
----
56
-34

skipif mysql # not compatible
query II rowsort label-5382
SELECT 56, - 34 * - - COUNT ( + 20 ) AS col1
----
56
-34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5383
SELECT + COUNT( * ) DIV 53
----
0

skipif mysql # not compatible
query I rowsort label-5383
SELECT + COUNT ( * ) / 53
----
0

query I rowsort
SELECT + 12 + - 16 col2
----
-4

query I rowsort
SELECT + 83 * - - CASE + 82 WHEN + 79 THEN NULL WHEN 41 THEN 76 END * 78
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5386
SELECT - 88 + - COUNT( * ) + - + 52 * + 33 + 1
----
-1804

skipif mysql # not compatible
query I rowsort label-5386
SELECT - 88 + - COUNT ( * ) + - + 52 * + 33 + 1
----
-1804

onlyif mysql # aggregate syntax: 
query I rowsort label-5387
SELECT - 47 * + COUNT( 49 )
----
-47

skipif mysql # not compatible
query I rowsort label-5387
SELECT - 47 * + COUNT ( 49 )
----
-47

query I rowsort
SELECT DISTINCT 6 * 11 col1
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5389
SELECT ALL CAST( NULL AS SIGNED ) + - + AVG ( + ( + 23 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5389
SELECT ALL CAST ( NULL AS INTEGER ) + - + AVG ( + ( + 23 ) ) AS col1
----
NULL

query I rowsort
SELECT + - 75 + + 8 AS col0
----
-67

query I rowsort
SELECT ALL 91 * 22 * - - 76
----
152152

onlyif mysql # DIV for integer division: 
query I rowsort label-5392
SELECT + 13 DIV - ( - - 9 ) + - + 84 AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-5392
SELECT + 13 / - ( - - 9 ) + - + 84 AS col2
----
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5393
SELECT ALL - 88 DIV + SUM( ALL 92 ) - + + 6 col2
----
-6

skipif mysql # not compatible
query I rowsort label-5393
SELECT ALL - 88 / + SUM ( ALL 92 ) - + + 6 col2
----
-6

query I rowsort
SELECT + - 19 AS col2
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-5395
SELECT + MIN( + - 22 ) * - COUNT( * ) col1
----
22

skipif mysql # not compatible
query I rowsort label-5395
SELECT + MIN ( + - 22 ) * - COUNT ( * ) col1
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5396
SELECT - CAST( + + 22 AS SIGNED ) * NULLIF ( + 52, + - 73 ) * COUNT( * )
----
-1144

skipif mysql # not compatible
query I rowsort label-5396
SELECT - CAST ( + + 22 AS INTEGER ) * NULLIF ( + 52, + - 73 ) * COUNT ( * )
----
-1144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5397
SELECT - CAST( + - 35 AS SIGNED ) + - CASE WHEN NOT ( - AVG ( + 6 ) ) NOT BETWEEN 96 * + 16 + 14 AND + 84 THEN NULL WHEN - 13 NOT BETWEEN NULL AND - 44 THEN NULL ELSE 30 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5397
SELECT - CAST ( + - 35 AS INTEGER ) + - CASE WHEN NOT ( - AVG ( + 6 ) ) NOT BETWEEN 96 * + 16 + 14 AND + 84 THEN NULL WHEN - 13 NOT BETWEEN NULL AND - 44 THEN NULL ELSE 30 END
----
NULL

query I rowsort
SELECT + - 74 * - ( - 81 )
----
-5994

onlyif mysql # aggregate syntax: 
query I rowsort label-5399
SELECT ALL + + COALESCE ( + COALESCE ( 98, + 99 ), COUNT( * ) * + 44 * - - 9 )
----
98

skipif mysql # not compatible
query I rowsort label-5399
SELECT ALL + + COALESCE ( + COALESCE ( 98, + 99 ), COUNT ( * ) * + 44 * - - 9 )
----
98

query I rowsort
SELECT ALL ( - - 79 ) * 26 + + 37
----
2091

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5401
SELECT ALL - NULLIF ( - 96, - - CAST( NULL AS SIGNED ) - 32 )
----
96

skipif mysql # not compatible
query I rowsort label-5401
SELECT ALL - NULLIF ( - 96, - - CAST ( NULL AS INTEGER ) - 32 )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5402
SELECT 54 + - 21 - - MIN( 46 )
----
79

skipif mysql # not compatible
query I rowsort label-5402
SELECT 54 + - 21 - - MIN ( 46 )
----
79

query II rowsort
SELECT 61 * + - 38 AS col2, 50 AS col0
----
-2318
50

query II rowsort
SELECT 64 + + 94, - 98 - - 33 AS col0
----
158
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-5405
SELECT SUM( - - 73 ) * + 17 AS col1
----
1241

skipif mysql # not compatible
query I rowsort label-5405
SELECT SUM ( - - 73 ) * + 17 AS col1
----
1241

onlyif mysql # aggregate syntax: 
query I rowsort label-5406
SELECT ALL - 5 * + COUNT( * ) col1
----
-5

skipif mysql # not compatible
query I rowsort label-5406
SELECT ALL - 5 * + COUNT ( * ) col1
----
-5

query I rowsort
SELECT DISTINCT + 50 * 80
----
4000

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5408
SELECT DISTINCT + 78 + + 7 + ( + - COUNT( * ) ) AS col2, + 20 DIV - + ( + - NULLIF ( - 10, + COUNT( * ) * + 19 ) )
----
84
-2

skipif mysql # not compatible
query II rowsort label-5408
SELECT DISTINCT + 78 + + 7 + ( + - COUNT ( * ) ) AS col2, + 20 / - + ( + - NULLIF ( - 10, + COUNT ( * ) * + 19 ) )
----
84
-2

query I rowsort
SELECT 99 - - - 63
----
36

query I rowsort
SELECT ALL - 5 + + + 46 + + 62 + + 82
----
185

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5411
SELECT 79 + CAST( NULL AS SIGNED ) + - 66 - - 47, + COUNT( * ) + + 84 col1
----
NULL
85

skipif mysql # not compatible
query II rowsort label-5411
SELECT 79 + CAST ( NULL AS INTEGER ) + - 66 - - 47, + COUNT ( * ) + + 84 col1
----
NULL
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5412
SELECT 89 + ( 96 ) + + COALESCE ( - + COALESCE ( + COUNT( * ), COUNT( * ) ), 5 ) + + CASE NULLIF ( 29, ( 6 ) ) WHEN 46 THEN - NULLIF ( + CAST( + 69 AS SIGNED ), - CASE 28 WHEN 22 THEN NULL WHEN + NULLIF ( COUNT( * ), + 72 ) THEN 38 / 44 + + ( 3 ) * + 46 ELSE + 53 END ) * + 43 + - CAST( NULL AS DECIMAL ) END * 90 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5412
SELECT 89 + ( 96 ) + + COALESCE ( - + COALESCE ( + COUNT ( * ), COUNT ( * ) ), 5 ) + + CASE NULLIF ( 29, ( 6 ) ) WHEN 46 THEN - NULLIF ( + CAST ( + 69 AS INTEGER ), - CASE 28 WHEN 22 THEN NULL WHEN + NULLIF ( COUNT ( * ), + 72 ) THEN 38 / 44 + + ( 3 ) * + 46 ELSE + 53 END ) * + 43 + - CAST ( NULL AS REAL ) END * 90 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5413
SELECT COUNT( * ) * + + 66 AS col0
----
66

skipif mysql # not compatible
query I rowsort label-5413
SELECT COUNT ( * ) * + + 66 AS col0
----
66

query I rowsort
SELECT ALL ( 23 ) col0
----
23

query I rowsort
SELECT - ( 69 ) + - 1 col2
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-5416
SELECT - 81 + + + ( COALESCE ( + 60, + 22 * - + 57 * - MIN( - + 32 ) - 75 ) ) + 65 * 99 AS col0
----
6414

skipif mysql # not compatible
query I rowsort label-5416
SELECT - 81 + + + ( COALESCE ( + 60, + 22 * - + 57 * - MIN ( - + 32 ) - 75 ) ) + 65 * 99 AS col0
----
6414

query I rowsort
SELECT DISTINCT + 58 * + + 7 AS col0
----
406

onlyif mysql # aggregate syntax: 
query I rowsort label-5418
SELECT ALL 25 * + COUNT( * ) * + CASE + 3 WHEN + + 65 + + + CASE + 6 WHEN + + 54 THEN - 68 END * - 63 THEN + 57 * 94 WHEN MIN( DISTINCT - ( + 95 ) ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5418
SELECT ALL 25 * + COUNT ( * ) * + CASE + 3 WHEN + + 65 + + + CASE + 6 WHEN + + 54 THEN - 68 END * - 63 THEN + 57 * 94 WHEN MIN ( DISTINCT - ( + 95 ) ) THEN NULL END AS col0
----
NULL

query I rowsort
SELECT - 64 * + 4
----
-256

query I rowsort
SELECT 24 * - + 32 AS col1
----
-768

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5421
SELECT - 6 DIV - + 88 + + COUNT( 98 ) * - ( 2 )
----
-2

skipif mysql # not compatible
query I rowsort label-5421
SELECT - 6 / - + 88 + + COUNT ( 98 ) * - ( 2 )
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5422
SELECT DISTINCT + CAST( + ( + + COUNT( * ) ) AS SIGNED ) * + 51 * + 20 + 31 AS col1
----
1051

skipif mysql # not compatible
query I rowsort label-5422
SELECT DISTINCT + CAST ( + ( + + COUNT ( * ) ) AS INTEGER ) * + 51 * + 20 + 31 AS col1
----
1051

onlyif mysql # aggregate syntax: 
query II rowsort label-5423
SELECT ALL + 39 * 69 AS col1, - ( - COUNT( * ) ) + ( + + 23 )
----
2691
24

skipif mysql # not compatible
query II rowsort label-5423
SELECT ALL + 39 * 69 AS col1, - ( - COUNT ( * ) ) + ( + + 23 )
----
2691
24

onlyif mysql # aggregate syntax: 
query I rowsort label-5424
SELECT + 31 + + 69 + - + MAX( DISTINCT - - 98 ) + + SUM( DISTINCT 19 ) + + COUNT( * ) + + 0 * + - COUNT( * ) * + 43 AS col1
----
22

skipif mysql # not compatible
query I rowsort label-5424
SELECT + 31 + + 69 + - + MAX ( DISTINCT - - 98 ) + + SUM ( DISTINCT 19 ) + + COUNT ( * ) + + 0 * + - COUNT ( * ) * + 43 AS col1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-5425
SELECT 3 / + CASE + - 70 WHEN - 79 + + 0 THEN - 67 WHEN 94 THEN - NULLIF ( + 57, 36 * COUNT( * ) + 43 * 63 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5425
SELECT 3 / + CASE + - 70 WHEN - 79 + + 0 THEN - 67 WHEN 94 THEN - NULLIF ( + 57, 36 * COUNT ( * ) + 43 * 63 ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5426
SELECT - 67 * + + COUNT( * ) * + 95 + - SUM( + 40 ) * - 60 col0
----
-3965

skipif mysql # not compatible
query I rowsort label-5426
SELECT - 67 * + + COUNT ( * ) * + 95 + - SUM ( + 40 ) * - 60 col0
----
-3965

query I rowsort
SELECT 26 + ( 62 )
----
88

onlyif mysql # aggregate syntax: 
query II rowsort label-5428
SELECT 13 + 90, 55 + COUNT( DISTINCT + 2 ) * - 96 + + - ( 37 ) AS col2
----
103
-78

skipif mysql # not compatible
query II rowsort label-5428
SELECT 13 + 90, 55 + COUNT ( DISTINCT + 2 ) * - 96 + + - ( 37 ) AS col2
----
103
-78

query I rowsort
SELECT ALL - + 50 AS col1
----
-50

query I rowsort
SELECT 3 - 25 + + 65
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-5431
SELECT COUNT( * ) * 18 + - 23 + + 35 * + MAX( - - 35 ) + - 30
----
1190

skipif mysql # not compatible
query I rowsort label-5431
SELECT COUNT ( * ) * 18 + - 23 + + 35 * + MAX ( - - 35 ) + - 30
----
1190

onlyif mysql # aggregate syntax: 
query I rowsort label-5432
SELECT ( + COUNT( * ) ) * 90
----
90

skipif mysql # not compatible
query I rowsort label-5432
SELECT ( + COUNT ( * ) ) * 90
----
90

query I rowsort
SELECT ALL 38 + + + 95
----
133

onlyif mysql # aggregate syntax: 
query II rowsort label-5434
SELECT 1 AS col1, COUNT( * ) AS col1
----
1
1

skipif mysql # not compatible
query II rowsort label-5434
SELECT 1 AS col1, COUNT ( * ) AS col1
----
1
1

query I rowsort
SELECT DISTINCT 73 + 80 AS col1
----
153

query I rowsort
SELECT DISTINCT + ( 69 ) + + ( + 30 ) + - - 81 AS col0
----
180

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5437
SELECT + 96 * + - 65 + - ( + CAST( NULL AS SIGNED ) ) * NULLIF ( + 77, 48 + 45 * + 20 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5437
SELECT + 96 * + - 65 + - ( + CAST ( NULL AS INTEGER ) ) * NULLIF ( + 77, 48 + 45 * + 20 )
----
NULL

query I rowsort
SELECT ALL + 73 + + 75 + - + 28 AS col2
----
120

query II rowsort
SELECT 95, 71 AS col0
----
95
71

query II rowsort
SELECT ALL 35 AS col1, 51
----
35
51

query I rowsort
SELECT 89 * - 32 AS col1
----
-2848

onlyif mysql # aggregate syntax: 
query I rowsort label-5442
SELECT COUNT( * ) + - ( - - 63 ) * - 83 AS col1
----
5230

skipif mysql # not compatible
query I rowsort label-5442
SELECT COUNT ( * ) + - ( - - 63 ) * - 83 AS col1
----
5230

onlyif mysql # aggregate syntax: 
query I rowsort label-5443
SELECT DISTINCT + ( MIN( DISTINCT - 43 ) ) + + + 78 AS col1
----
35

skipif mysql # not compatible
query I rowsort label-5443
SELECT DISTINCT + ( MIN ( DISTINCT - 43 ) ) + + + 78 AS col1
----
35

onlyif mysql # aggregate syntax: 
query II rowsort label-5444
SELECT ALL COUNT( * ) AS col1, CASE + - 24 WHEN CASE WHEN NOT + 89 BETWEEN ( + + 51 + - + 81 - + + 48 * MIN( DISTINCT - 85 ) + + 53 / - 26 ) AND ( + 25 ) THEN 42 WHEN 56 + + 7 > + 66 THEN 67 * COUNT( * ) ELSE NULL END THEN NULL WHEN + 2 THEN - 35 + - 89 ELSE NULL END + NULLIF ( + 68, - 43 * - 23 ) AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-5444
SELECT ALL COUNT ( * ) AS col1, CASE + - 24 WHEN CASE WHEN NOT + 89 BETWEEN ( + + 51 + - + 81 - + + 48 * MIN ( DISTINCT - 85 ) + + 53 / - 26 ) AND ( + 25 ) THEN 42 WHEN 56 + + 7 > + 66 THEN 67 * COUNT ( * ) ELSE NULL END THEN NULL WHEN + 2 THEN - 35 + - 89 ELSE NULL END + NULLIF ( + 68, - 43 * - 23 ) AS col0
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5445
SELECT DISTINCT + 47 - + - 18 + - - MAX( ALL - 96 ) + + - ( + 25 )
----
-56

skipif mysql # not compatible
query I rowsort label-5445
SELECT DISTINCT + 47 - + - 18 + - - MAX ( ALL - 96 ) + + - ( + 25 )
----
-56

query I rowsort
SELECT 14 * + 2 AS col2
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-5447
SELECT ALL - COUNT( * ) * 19 col0
----
-19

skipif mysql # not compatible
query I rowsort label-5447
SELECT ALL - COUNT ( * ) * 19 col0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-5448
SELECT DISTINCT - COUNT( * ) - + - 52 AS col1
----
51

skipif mysql # not compatible
query I rowsort label-5448
SELECT DISTINCT - COUNT ( * ) - + - 52 AS col1
----
51

query I rowsort
SELECT 30 + 90 AS col2
----
120

query I rowsort
SELECT ALL - 20 - + + 77
----
-97

onlyif mysql # aggregate syntax: 
query III rowsort label-5451
SELECT - 54 AS col2, 43 + + 3 AS col2, NULLIF ( - - COUNT( ALL - + 60 ), + + 70 ) AS col1
----
-54
46
1

skipif mysql # not compatible
query III rowsort label-5451
SELECT - 54 AS col2, 43 + + 3 AS col2, NULLIF ( - - COUNT ( ALL - + 60 ), + + 70 ) AS col1
----
-54
46
1

query I rowsort
SELECT 0 + - - 93 - - ( - + 65 )
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-5453
SELECT - COUNT( DISTINCT - 81 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5453
SELECT - COUNT ( DISTINCT - 81 ) AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5454
SELECT CAST( NULL AS SIGNED ) + 22 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5454
SELECT CAST ( NULL AS INTEGER ) + 22 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5455
SELECT + 6 * + + 29 + - + 85 DIV - + 12
----
181

skipif mysql # not compatible
query I rowsort label-5455
SELECT + 6 * + + 29 + - + 85 / - + 12
----
181

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5456
SELECT 81 AS col2, 59 - ( - 27 ) + - - 48 + + + 92 * CAST( NULL AS DECIMAL ) AS col0
----
81
NULL

skipif mysql # not compatible
query II rowsort label-5456
SELECT 81 AS col2, 59 - ( - 27 ) + - - 48 + + + 92 * CAST ( NULL AS REAL ) AS col0
----
81
NULL

query I rowsort
SELECT ALL + - 98 AS col0
----
-98

query I rowsort
SELECT DISTINCT - 85 * + ( 93 ) + + - 6 AS col0
----
-7911

onlyif mysql # aggregate syntax: 
query I rowsort label-5459
SELECT - + 47 * + ( 18 ) * COUNT( - - 89 ) + - 83 col1
----
-929

skipif mysql # not compatible
query I rowsort label-5459
SELECT - + 47 * + ( 18 ) * COUNT ( - - 89 ) + - 83 col1
----
-929

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5460
SELECT COALESCE ( + 13, + 6, 0 DIV - 22 - + 79 + - COUNT( * ), + 65 - + COUNT( * ) ) * + 55 + - 39 AS col2
----
676

skipif mysql # not compatible
query I rowsort label-5460
SELECT COALESCE ( + 13, + 6, 0 / - 22 - + 79 + - COUNT ( * ), + 65 - + COUNT ( * ) ) * + 55 + - 39 AS col2
----
676

query II rowsort
SELECT DISTINCT 55 * - ( - 62 ) + 33 AS col1, 87 + - 8 + 21 * + - 59
----
3443
-1160

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5462
SELECT ALL 61 DIV + COUNT( * )
----
61

skipif mysql # not compatible
query I rowsort label-5462
SELECT ALL 61 / + COUNT ( * )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-5463
SELECT ALL - 68 * + ( - + 29 ) * - 40 * + COUNT( * ) + + 47 + + 52
----
-78781

skipif mysql # not compatible
query I rowsort label-5463
SELECT ALL - 68 * + ( - + 29 ) * - 40 * + COUNT ( * ) + + 47 + + 52
----
-78781

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5464
SELECT + CASE 91 WHEN - 69 * COUNT( * ) * COUNT( ALL 90 ) / - 86 + + + CASE + 64 WHEN - - CAST( NULL AS SIGNED ) * + CAST( + COUNT( * ) AS DECIMAL ) THEN + 47 ELSE 89 * 38 END THEN 35 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5464
SELECT + CASE 91 WHEN - 69 * COUNT ( * ) * COUNT ( ALL 90 ) / - 86 + + + CASE + 64 WHEN - - CAST ( NULL AS INTEGER ) * + CAST ( + COUNT ( * ) AS REAL ) THEN + 47 ELSE 89 * 38 END THEN 35 END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5465
SELECT MAX( - 24 )
----
-24

skipif mysql # not compatible
query I rowsort label-5465
SELECT MAX ( - 24 )
----
-24

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5466
SELECT SUM( - - CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5466
SELECT SUM ( - - CAST ( NULL AS REAL ) )
----
NULL

query I rowsort
SELECT + 66 + + 19 * - 80 + + + ( + 58 ) * 92
----
3882

query II rowsort
SELECT + 32, - 76 AS col1
----
32
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-5469
SELECT ALL + COUNT( * ) - + + 28
----
-27

skipif mysql # not compatible
query I rowsort label-5469
SELECT ALL + COUNT ( * ) - + + 28
----
-27

query I rowsort
SELECT + 60 * - 59
----
-3540

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5471
SELECT DISTINCT CASE 2 WHEN - 14 * 45 + + + 47 - - COUNT( * ) * + 80 * + 87 + NULLIF ( ( 25 ), 51 - + 73 ) - - 73 THEN NULL WHEN 17 THEN NULL ELSE + MAX( ALL + NULLIF ( ( + CAST( 41 AS SIGNED ) ), 90 + 28 ) ) + 75 * 40 END - - 8 AS col0
----
3049

skipif mysql # not compatible
query I rowsort label-5471
SELECT DISTINCT CASE 2 WHEN - 14 * 45 + + + 47 - - COUNT ( * ) * + 80 * + 87 + NULLIF ( ( 25 ), 51 - + 73 ) - - 73 THEN NULL WHEN 17 THEN NULL ELSE + MAX ( ALL + NULLIF ( ( + CAST ( 41 AS INTEGER ) ), 90 + 28 ) ) + 75 * 40 END - - 8 AS col0
----
3049

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5472
SELECT ALL COALESCE ( + CASE - 40 WHEN - + NULLIF ( + 90, 9 ) + + + 72 + - 10 THEN NULL ELSE + + 82 + - 66 - + COUNT( * ) * + COALESCE ( CAST( NULL AS SIGNED ), - 71 + 63 ) END, - 26, + COALESCE ( - 18, 17, 52 - ( - 65 - 45 * - 12 ) * 61 ), 46 )
----
24

skipif mysql # not compatible
query I rowsort label-5472
SELECT ALL COALESCE ( + CASE - 40 WHEN - + NULLIF ( + 90, 9 ) + + + 72 + - 10 THEN NULL ELSE + + 82 + - 66 - + COUNT ( * ) * + COALESCE ( CAST ( NULL AS INTEGER ), - 71 + 63 ) END, - 26, + COALESCE ( - 18, 17, 52 - ( - 65 - 45 * - 12 ) * 61 ), 46 )
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5473
SELECT - ( + 84 ), - COALESCE ( CAST( 80 AS SIGNED ), COUNT( * ), - 20 ) AS col2
----
-84
-80

skipif mysql # not compatible
query II rowsort label-5473
SELECT - ( + 84 ), - COALESCE ( CAST ( 80 AS INTEGER ), COUNT ( * ), - 20 ) AS col2
----
-84
-80

query I rowsort
SELECT - 16 * - ( + + NULLIF ( 56, 49 * 77 ) ) - + 13
----
883

query I rowsort
SELECT ALL ( - 97 ) * - 89 + + 26
----
8659

query I rowsort
SELECT - 88 + - ( + 51 ) AS col2
----
-139

onlyif mysql # aggregate syntax: 
query I rowsort label-5477
SELECT ALL SUM( 30 )
----
30

skipif mysql # not compatible
query I rowsort label-5477
SELECT ALL SUM ( 30 )
----
30

query I rowsort
SELECT - + 63 * - 37 + + 56
----
2387

query I rowsort
SELECT + + 52 * 90 + - ( - 8 ) AS col2
----
4688

onlyif mysql # aggregate syntax: 
query I rowsort label-5480
SELECT + - 94 + COUNT( * ) col1
----
-93

skipif mysql # not compatible
query I rowsort label-5480
SELECT + - 94 + COUNT ( * ) col1
----
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5481
SELECT ALL - + 47 * + CAST( + ( + 79 ) AS SIGNED ) AS col2
----
-3713

skipif mysql # not compatible
query I rowsort label-5481
SELECT ALL - + 47 * + CAST ( + ( + 79 ) AS INTEGER ) AS col2
----
-3713

query I rowsort
SELECT ALL + - 35 * 53
----
-1855

onlyif mysql # aggregate syntax: 
query I rowsort label-5483
SELECT - SUM( - - 30 )
----
-30

skipif mysql # not compatible
query I rowsort label-5483
SELECT - SUM ( - - 30 )
----
-30

query II rowsort
SELECT ALL 6, - 79 + 16 col1
----
6
-63

query I rowsort
SELECT - + 26 + + 61
----
35

query I rowsort
SELECT - + 62 * - 43 AS col2
----
2666

onlyif mysql # aggregate syntax: 
query I rowsort label-5487
SELECT ALL + - 43 + COUNT( * ) col1
----
-42

skipif mysql # not compatible
query I rowsort label-5487
SELECT ALL + - 43 + COUNT ( * ) col1
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5488
SELECT - - 1 + + ( CAST( 29 AS SIGNED ) ) + COUNT( * )
----
31

skipif mysql # not compatible
query I rowsort label-5488
SELECT - - 1 + + ( CAST ( 29 AS INTEGER ) ) + COUNT ( * )
----
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5489
SELECT DISTINCT ( + 69 ) DIV + - 92 + MIN( DISTINCT + 41 )
----
41

skipif mysql # not compatible
query I rowsort label-5489
SELECT DISTINCT ( + 69 ) / + - 92 + MIN ( DISTINCT + 41 )
----
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5490
SELECT ALL - 24 DIV - 18 * - COUNT( * ) + + + 52 + 59
----
110

skipif mysql # not compatible
query I rowsort label-5490
SELECT ALL - 24 / - 18 * - COUNT ( * ) + + + 52 + 59
----
110

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5491
SELECT 9 * - CAST( NULL AS SIGNED ) + 98
----
NULL

skipif mysql # not compatible
query I rowsort label-5491
SELECT 9 * - CAST ( NULL AS INTEGER ) + 98
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5492
SELECT ALL 57 DIV + COUNT( * ) + - + 7 * 61
----
-370

skipif mysql # not compatible
query I rowsort label-5492
SELECT ALL 57 / + COUNT ( * ) + - + 7 * 61
----
-370

onlyif mysql # aggregate syntax: 
query I rowsort label-5493
SELECT DISTINCT + COALESCE ( + + NULLIF ( - - 10, COUNT( * ) ), - 1 )
----
10

skipif mysql # not compatible
query I rowsort label-5493
SELECT DISTINCT + COALESCE ( + + NULLIF ( - - 10, COUNT ( * ) ), - 1 )
----
10

query II rowsort
SELECT ( - 72 ) AS col1, - 62
----
-72
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-5495
SELECT ALL MIN( - 54 ) * + 36 + 64 + + 89 * - 45
----
-5885

skipif mysql # not compatible
query I rowsort label-5495
SELECT ALL MIN ( - 54 ) * + 36 + 64 + + 89 * - 45
----
-5885

query I rowsort
SELECT - 90 * + 28 AS col0
----
-2520

query II rowsort
SELECT + 96 * + + 50 * - 62 col0, 66
----
-297600
66

query I rowsort
SELECT + 72 + ( ( - + ( 10 ) ) ) AS col0
----
62

query I rowsort
SELECT + COALESCE ( 38, + + 60 ) AS col0
----
38

query I rowsort
SELECT ALL 6 * + - 99 - 15 + + 15 * + - 5 AS col0
----
-684

query I rowsort
SELECT + 60 * - - 18
----
1080

query I rowsort
SELECT ALL + 83 * - 43 AS col0
----
-3569

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5503
SELECT DISTINCT 81 * - 35 - + CASE - MIN( + + 16 ) WHEN + - COUNT( * ) THEN + 52 DIV + 59 * - + 67 DIV - - 3 * + + 23 - + - SUM( DISTINCT 87 ) ELSE COUNT( * ) END
----
-2836

skipif mysql # not compatible
query I rowsort label-5503
SELECT DISTINCT 81 * - 35 - + CASE - MIN ( + + 16 ) WHEN + - COUNT ( * ) THEN + 52 / + 59 * - + 67 / - - 3 * + + 23 - + - SUM ( DISTINCT 87 ) ELSE COUNT ( * ) END
----
-2836

query I rowsort
SELECT ALL + 74 * + - 85 col2
----
-6290

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5505
SELECT + 12 + + - 22 + - + CASE COUNT( DISTINCT + + 4 ) WHEN - 21 + - 97 THEN + 37 ELSE NULL END AS col1, 7 + - CAST( NULL AS SIGNED ) * + 82
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5505
SELECT + 12 + + - 22 + - + CASE COUNT ( DISTINCT + + 4 ) WHEN - 21 + - 97 THEN + 37 ELSE NULL END AS col1, 7 + - CAST ( NULL AS INTEGER ) * + 82
----
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5506
SELECT - CAST( - - 94 AS SIGNED ) * - - 55 + + ( - 45 ) + + + 73
----
-5142

skipif mysql # not compatible
query I rowsort label-5506
SELECT - CAST ( - - 94 AS INTEGER ) * - - 55 + + ( - 45 ) + + + 73
----
-5142

query II rowsort
SELECT + 0 * + 84, 45 - - 1 AS col2
----
0
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5508
SELECT + COUNT( * ) * + MAX( DISTINCT 29 ) * SUM( ALL - 39 ) * COUNT( * )
----
-1131

skipif mysql # not compatible
query I rowsort label-5508
SELECT + COUNT ( * ) * + MAX ( DISTINCT 29 ) * SUM ( ALL - 39 ) * COUNT ( * )
----
-1131

query I rowsort
SELECT + 94 + - 72 + 59 * + - 58 AS col1
----
-3400

query I rowsort
SELECT - + ( - 20 )
----
20

query I rowsort
SELECT - + 18 + - 77
----
-95

query I rowsort
SELECT ALL ( 34 ) * NULLIF ( - 80, 68 * - 47 )
----
-2720

query I rowsort
SELECT DISTINCT + 79 * 53 AS col2
----
4187

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5514
SELECT + + CAST( NULL AS SIGNED ) + + 42 + + 49 * 5 * 92 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5514
SELECT + + CAST ( NULL AS INTEGER ) + + 42 + + 49 * 5 * 92 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5515
SELECT ALL 58 * - - 61 * COUNT( * ) AS col2
----
3538

skipif mysql # not compatible
query I rowsort label-5515
SELECT ALL 58 * - - 61 * COUNT ( * ) AS col2
----
3538

query I rowsort
SELECT 40 + - + 35 * 16 AS col1
----
-520

query I rowsort
SELECT DISTINCT 76 + - + 75 + + ( - 50 ) * 73 AS col2
----
-3649

query I rowsort
SELECT ALL + 60 + + - 85 * - 75 + 20
----
6455

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5519
SELECT COUNT( * ) DIV COUNT( * ) * 37 AS col0
----
37

skipif mysql # not compatible
query I rowsort label-5519
SELECT COUNT ( * ) / COUNT ( * ) * 37 AS col0
----
37

query I rowsort
SELECT 63 + - - 48 AS col1
----
111

query I rowsort
SELECT 9 + - ( ( - 17 ) ) col2
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5522
SELECT ALL - 36 / CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5522
SELECT ALL - 36 / CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5523
SELECT DISTINCT ( + 70 ) + - NULLIF ( 76, SUM( DISTINCT + + COALESCE ( 72, - + CAST( NULL AS SIGNED ), + - 84 + + 24 / + 88 ) ) ) AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-5523
SELECT DISTINCT ( + 70 ) + - NULLIF ( 76, SUM ( DISTINCT + + COALESCE ( 72, - + CAST ( NULL AS INTEGER ), + - 84 + + 24 / + 88 ) ) ) AS col2
----
-6

query I rowsort
SELECT ALL + 44 + ( - 94 ) AS col0
----
-50

onlyif mysql # aggregate syntax: 
query II rowsort label-5525
SELECT - 18 * - COUNT( * ), - 10 AS col1
----
18
-10

skipif mysql # not compatible
query II rowsort label-5525
SELECT - 18 * - COUNT ( * ), - 10 AS col1
----
18
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5526
SELECT + COUNT( * ) DIV - 67, - SUM( DISTINCT + 50 ) AS col1
----
0
-50

skipif mysql # not compatible
query II rowsort label-5526
SELECT + COUNT ( * ) / - 67, - SUM ( DISTINCT + 50 ) AS col1
----
0
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-5527
SELECT ALL - 78 + - - ( - + COUNT( 90 ) ) * 7 AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-5527
SELECT ALL - 78 + - - ( - + COUNT ( 90 ) ) * 7 AS col0
----
-85

query II rowsort
SELECT 98 col2, 70
----
98
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5529
SELECT ALL - COALESCE ( 51, - + NULLIF ( + 34, + 50 ) + + MIN( - 31 ) + + - 53 + + - 66 * - 40, - - 18 + + 24 + - 72 DIV - 78 ) AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-5529
SELECT ALL - COALESCE ( 51, - + NULLIF ( + 34, + 50 ) + + MIN ( - 31 ) + + - 53 + + - 66 * - 40, - - 18 + + 24 + - 72 / - 78 ) AS col1
----
-51

query II rowsort
SELECT 11, 81 + - 58 AS col0
----
11
23

query I rowsort
SELECT 24 * + 90 col2
----
2160

query I rowsort
SELECT 95 * - 68
----
-6460

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5533
SELECT DISTINCT - CAST( - - 25 AS SIGNED )
----
-25

skipif mysql # not compatible
query I rowsort label-5533
SELECT DISTINCT - CAST ( - - 25 AS INTEGER )
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-5534
SELECT ALL - MAX( + 21 )
----
-21

skipif mysql # not compatible
query I rowsort label-5534
SELECT ALL - MAX ( + 21 )
----
-21

query II rowsort
SELECT 79 * + + 88 - + + 22 AS col0, + 27 * + 16
----
6930
432

query II rowsort
SELECT ALL - 50, + 21 col2
----
-50
21

query I rowsort
SELECT ALL - ( + 12 )
----
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-5538
SELECT 41 AS col0, MAX( ALL + + 55 ) + 35 AS col2
----
41
90

skipif mysql # not compatible
query II rowsort label-5538
SELECT 41 AS col0, MAX ( ALL + + 55 ) + 35 AS col2
----
41
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5539
SELECT DISTINCT - CAST( + MAX( + + 40 ) AS SIGNED ) AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-5539
SELECT DISTINCT - CAST ( + MAX ( + + 40 ) AS INTEGER ) AS col2
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-5540
SELECT ALL - ( + CASE + 25 WHEN - COALESCE ( + NULLIF ( + COUNT( * ), - 71 ), + 47 ) * + 50 / + + 25 THEN + + 7 * + + 9 END ) / + 64 + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5540
SELECT ALL - ( + CASE + 25 WHEN - COALESCE ( + NULLIF ( + COUNT ( * ), - 71 ), + 47 ) * + 50 / + + 25 THEN + + 7 * + + 9 END ) / + 64 + COUNT ( * ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5541
SELECT 4 DIV 24 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5541
SELECT 4 / 24 AS col2
----
0

query I rowsort
SELECT 40 * + 39
----
1560

query II rowsort
SELECT + 96, 66 + 90 + + 83 * - 3 * + + 64 + - 70 AS col1
----
96
-15850

query I rowsort
SELECT ALL CASE - + CASE - NULLIF ( - ( + 63 ), - + AVG ( DISTINCT - + 55 ) ) WHEN + 72 - + + 52 THEN - 67 ELSE - 20 END WHEN - 87 * + ( 98 ) THEN + 68 + 54 * 66 END * 11 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5545
SELECT 30 DIV - 84 * 40 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5545
SELECT 30 / - 84 * 40 AS col2
----
0

query I rowsort
SELECT DISTINCT + 14 * 65
----
910

query I rowsort
SELECT ALL - 50 + - COALESCE ( - 99, - - 34 + - COALESCE ( + 87, - 9 ) ) col1
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5548
SELECT ALL - 92 + 29 * + + CAST( - SUM( ALL 6 ) AS SIGNED )
----
-266

skipif mysql # not compatible
query I rowsort label-5548
SELECT ALL - 92 + 29 * + + CAST ( - SUM ( ALL 6 ) AS INTEGER )
----
-266

query I rowsort
SELECT DISTINCT - - 1 + 47 + 42 * - - 31 - - 16
----
1366

query I rowsort
SELECT + 86 + + 91
----
177

query I rowsort
SELECT DISTINCT - NULLIF ( 51, - 42 ) + 26 AS col1
----
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-5552
SELECT 38, COUNT( * ) AS col1
----
38
1

skipif mysql # not compatible
query II rowsort label-5552
SELECT 38, COUNT ( * ) AS col1
----
38
1

query I rowsort
SELECT 34 * - + 96 AS col1
----
-3264

onlyif mysql # aggregate syntax: 
query I rowsort label-5554
SELECT MAX( - - 87 ) * + - 96 * - 65 + + + ( 51 ) - 20 AS col0
----
542911

skipif mysql # not compatible
query I rowsort label-5554
SELECT MAX ( - - 87 ) * + - 96 * - 65 + + + ( 51 ) - 20 AS col0
----
542911

query II rowsort
SELECT ALL - 37, 79 AS col1
----
-37
79

onlyif mysql # aggregate syntax: 
query I rowsort label-5556
SELECT DISTINCT 10 * COUNT( * ) AS col0
----
10

skipif mysql # not compatible
query I rowsort label-5556
SELECT DISTINCT 10 * COUNT ( * ) AS col0
----
10

query I rowsort
SELECT DISTINCT 49 + + 76
----
125

query II rowsort
SELECT - 63, - 46 AS col0
----
-63
-46

query II rowsort
SELECT ALL + 74 + + 29 * 91, 9 AS col0
----
2713
9

query I rowsort
SELECT DISTINCT 67 * + - 42 AS col0
----
-2814

query I rowsort
SELECT DISTINCT 76 * 2 AS col1
----
152

query I rowsort
SELECT ALL 94 - - 52 AS col2
----
146

query I rowsort
SELECT 36 + - 32
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5564
SELECT - + SUM( + 3 )
----
-3

skipif mysql # not compatible
query I rowsort label-5564
SELECT - + SUM ( + 3 )
----
-3

query I rowsort
SELECT 79 + + - 33 * - 17
----
640

query I rowsort
SELECT 18 * + - 53 col1
----
-954

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5567
SELECT + NULLIF ( + 66, + + 75 + + 80 * - - 89 * + + ( + + 42 ) ) / ( - - 87 ) * + + 88 + - + 7 * - + 13 + + - 77 * - ( CAST( NULL AS SIGNED ) ) + 82 * 82 + 26
----
NULL

skipif mysql # not compatible
query I rowsort label-5567
SELECT + NULLIF ( + 66, + + 75 + + 80 * - - 89 * + + ( + + 42 ) ) / ( - - 87 ) * + + 88 + - + 7 * - + 13 + + - 77 * - ( CAST ( NULL AS INTEGER ) ) + 82 * 82 + 26
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5568
SELECT 98 + 36 + + - COUNT( * ) * - 13
----
147

skipif mysql # not compatible
query I rowsort label-5568
SELECT 98 + 36 + + - COUNT ( * ) * - 13
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-5569
SELECT DISTINCT 30 * - 64 * - COUNT( * ) * - 4 * - - 98 - - + 36 AS col2
----
-752604

skipif mysql # not compatible
query I rowsort label-5569
SELECT DISTINCT 30 * - 64 * - COUNT ( * ) * - 4 * - - 98 - - + 36 AS col2
----
-752604

onlyif mysql # aggregate syntax: 
query II rowsort label-5570
SELECT ALL + 83 * - - 90 col0, - 56 + 77 + - - MAX( ALL 12 )
----
7470
33

skipif mysql # not compatible
query II rowsort label-5570
SELECT ALL + 83 * - - 90 col0, - 56 + 77 + - - MAX ( ALL 12 )
----
7470
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5571
SELECT 14 + + + CAST( - 85 AS SIGNED )
----
-71

skipif mysql # not compatible
query I rowsort label-5571
SELECT 14 + + + CAST ( - 85 AS INTEGER )
----
-71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5572
SELECT ALL COUNT( * ) DIV COALESCE ( COUNT( * ), + + 51, 2, - 20 ) DIV - - 79 col1
----
0

skipif mysql # not compatible
query I rowsort label-5572
SELECT ALL COUNT ( * ) / COALESCE ( COUNT ( * ), + + 51, 2, - 20 ) / - - 79 col1
----
0

query I rowsort
SELECT ALL - 11 * + 29
----
-319

query I rowsort
SELECT 30 * - 61
----
-1830

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5575
SELECT MIN( DISTINCT + + 46 ) + + COUNT( * ) + + + COUNT( * ) DIV ( + - 88 ) DIV - - 95 + - 83 * + 4 * - + COUNT( * )
----
379

skipif mysql # not compatible
query I rowsort label-5575
SELECT MIN ( DISTINCT + + 46 ) + + COUNT ( * ) + + + COUNT ( * ) / ( + - 88 ) / - - 95 + - 83 * + 4 * - + COUNT ( * )
----
379

onlyif mysql # aggregate syntax: 
query I rowsort label-5576
SELECT DISTINCT - MAX( ALL - 20 )
----
20

skipif mysql # not compatible
query I rowsort label-5576
SELECT DISTINCT - MAX ( ALL - 20 )
----
20

query I rowsort
SELECT 33 * 48 AS col1
----
1584

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5578
SELECT ALL COUNT( * ) + + 55 AS col0, MAX( - CAST( NULL AS SIGNED ) )
----
56
NULL

skipif mysql # not compatible
query II rowsort label-5578
SELECT ALL COUNT ( * ) + + 55 AS col0, MAX ( - CAST ( NULL AS INTEGER ) )
----
56
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5579
SELECT ALL + COUNT( * ) * + 90 AS col0
----
90

skipif mysql # not compatible
query I rowsort label-5579
SELECT ALL + COUNT ( * ) * + 90 AS col0
----
90

query I rowsort
SELECT ALL - 21 + + 14
----
-7

query I rowsort
SELECT DISTINCT + - 91 col2
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5582
SELECT DISTINCT - - MIN( + + 62 ) + - 25
----
37

skipif mysql # not compatible
query I rowsort label-5582
SELECT DISTINCT - - MIN ( + + 62 ) + - 25
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-5583
SELECT DISTINCT + ( - 11 ) DIV - 85 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5583
SELECT DISTINCT + ( - 11 ) / - 85 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5584
SELECT + 15 * + COUNT( * ) + - CAST( NULL AS SIGNED ) + + COUNT( * ) * + - 96 / - COUNT( * ) * + + 29 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5584
SELECT + 15 * + COUNT ( * ) + - CAST ( NULL AS INTEGER ) + + COUNT ( * ) * + - 96 / - COUNT ( * ) * + + 29 AS col0
----
NULL

query I rowsort
SELECT - ( + 40 ) * - 50 AS col0
----
2000

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5586
SELECT ALL + CASE + 61 WHEN + 24 THEN 7 * - 15 + 5 * 53 WHEN - ( + 64 ) * + 61 THEN - 72 ELSE NULL END * - NULLIF ( + - CAST( - - 41 AS SIGNED ), - 5 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5586
SELECT ALL + CASE + 61 WHEN + 24 THEN 7 * - 15 + 5 * 53 WHEN - ( + 64 ) * + 61 THEN - 72 ELSE NULL END * - NULLIF ( + - CAST ( - - 41 AS INTEGER ), - 5 )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5587
SELECT - - ( CAST( NULL AS DECIMAL ) ) * 31
----
NULL

skipif mysql # not compatible
query I rowsort label-5587
SELECT - - ( CAST ( NULL AS REAL ) ) * 31
----
NULL

query I rowsort
SELECT ALL + 8 * 66 - - - 34 AS col2
----
494

query I rowsort
SELECT - 82 + + - 60 AS col2
----
-142

query I rowsort
SELECT ALL - + 56 * + + 53
----
-2968

query I rowsort
SELECT DISTINCT - ( - 88 ) AS col0
----
88

onlyif mysql # aggregate syntax: 
query II rowsort label-5592
SELECT ALL - 17 - + 24 AS col1, 82 * + COUNT( * ) + 2 * - 33
----
-41
16

skipif mysql # not compatible
query II rowsort label-5592
SELECT ALL - 17 - + 24 AS col1, 82 * + COUNT ( * ) + 2 * - 33
----
-41
16

onlyif mysql # aggregate syntax: 
query I rowsort label-5593
SELECT - COUNT( * ) * + - NULLIF ( + 88, - 70 * - - CASE + + 27 WHEN + + 70 THEN + 7 / - 95 WHEN + 45 THEN NULL ELSE NULL END * + 39 + + COUNT( + - 29 ) + + 31 + 71 * - COUNT( * ) )
----
88

skipif mysql # not compatible
query I rowsort label-5593
SELECT - COUNT ( * ) * + - NULLIF ( + 88, - 70 * - - CASE + + 27 WHEN + + 70 THEN + 7 / - 95 WHEN + 45 THEN NULL ELSE NULL END * + 39 + + COUNT ( + - 29 ) + + 31 + 71 * - COUNT ( * ) )
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-5594
SELECT - + 37 DIV - 23 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5594
SELECT - + 37 / - 23 AS col2
----
1

query I rowsort
SELECT - 53 * + 75
----
-3975

query I rowsort
SELECT + 73 + - 75 + - 49 col2
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-5597
SELECT - COUNT( - 95 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5597
SELECT - COUNT ( - 95 ) AS col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5598
SELECT + 61 * - ( + + 87 ) DIV - - COUNT( * ) + 49
----
-5258

skipif mysql # not compatible
query I rowsort label-5598
SELECT + 61 * - ( + + 87 ) / - - COUNT ( * ) + 49
----
-5258

query I rowsort
SELECT DISTINCT ( - 42 ) AS col2
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5600
SELECT - NULLIF ( + CAST( NULL AS SIGNED ), - COUNT( * ) * - - 2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5600
SELECT - NULLIF ( + CAST ( NULL AS INTEGER ), - COUNT ( * ) * - - 2 )
----
NULL

query II rowsort
SELECT DISTINCT + 56 AS col1, 98 * 0
----
56
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5602
SELECT ALL NULLIF ( + 42, - CAST( - ( NULLIF ( - 18, + CAST( NULL AS SIGNED ) ) ) AS SIGNED ) ) * - + COALESCE ( 40, + 68 * 81, + 41 ) + + - SUM( DISTINCT + + ( 75 ) )
----
-1755

skipif mysql # not compatible
query I rowsort label-5602
SELECT ALL NULLIF ( + 42, - CAST ( - ( NULLIF ( - 18, + CAST ( NULL AS INTEGER ) ) ) AS INTEGER ) ) * - + COALESCE ( 40, + 68 * 81, + 41 ) + + - SUM ( DISTINCT + + ( 75 ) )
----
-1755

query I rowsort
SELECT ( - 44 ) AS col2
----
-44

query I rowsort
SELECT 16 * - 58 * 87 - + 87
----
-80823

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5605
SELECT + MAX( 74 ) * + CAST( + COUNT( * ) AS SIGNED ) AS col2
----
74

skipif mysql # not compatible
query I rowsort label-5605
SELECT + MAX ( 74 ) * + CAST ( + COUNT ( * ) AS INTEGER ) AS col2
----
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5606
SELECT + COUNT( * ) DIV 99
----
0

skipif mysql # not compatible
query I rowsort label-5606
SELECT + COUNT ( * ) / 99
----
0

query I rowsort
SELECT ALL 0 * + 58 + + CASE + 18 WHEN + + 83 THEN - - 1 WHEN + 38 THEN + 60 + 0 + - 15 * - + NULLIF ( - 57, + 99 ) ELSE NULL END
----
NULL

query I rowsort
SELECT ( - 51 ) AS col1
----
-51

query I rowsort
SELECT 53 * - 36 - - 13 AS col2
----
-1895

onlyif mysql # DIV for integer division: 
query I rowsort label-5610
SELECT DISTINCT 88 DIV + 5 col1
----
17

skipif mysql # not compatible
query I rowsort label-5610
SELECT DISTINCT 88 / + 5 col1
----
17

query I rowsort
SELECT DISTINCT - 13 * - 83 + - - 7 AS col0
----
1086

query I rowsort
SELECT ALL - ( - + 66 ) * + 8 + + 4 + - 91 + + + 78
----
519

query II rowsort
SELECT + 2, - 99 AS col2
----
2
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5614
SELECT ALL + COUNT( ALL - - 38 ) * - 28
----
-28

skipif mysql # not compatible
query I rowsort label-5614
SELECT ALL + COUNT ( ALL - - 38 ) * - 28
----
-28

query I rowsort
SELECT 9 * + 15 * + 14 + + 49 + - - 3
----
1942

onlyif mysql # aggregate syntax: 
query I rowsort label-5616
SELECT + + COUNT( - + 18 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5616
SELECT + + COUNT ( - + 18 ) AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5617
SELECT ALL + COALESCE ( COUNT( ALL - - ( + 99 ) ), + 77 DIV COALESCE ( + COALESCE ( COUNT( * ), - COUNT( * ) + NULLIF ( + - 11, - MIN( + 55 ) + - - 34 ) + - ( - 89 ) + ( - ( 71 ) ) ), ( + 82 ) ) + + 9, 8 + + COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5617
SELECT ALL + COALESCE ( COUNT ( ALL - - ( + 99 ) ), + 77 / COALESCE ( + COALESCE ( COUNT ( * ), - COUNT ( * ) + NULLIF ( + - 11, - MIN ( + 55 ) + - - 34 ) + - ( - 89 ) + ( - ( 71 ) ) ), ( + 82 ) ) + + 9, 8 + + COUNT ( * ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5618
SELECT + 17 * 70 - + - COUNT( * ) - - 30 + CASE + + 47 WHEN - 70 THEN - - 18 WHEN - ( - - 2 ) THEN NULL END - - - 67 * + 64 + + 0
----
NULL

skipif mysql # not compatible
query I rowsort label-5618
SELECT + 17 * 70 - + - COUNT ( * ) - - 30 + CASE + + 47 WHEN - 70 THEN - - 18 WHEN - ( - - 2 ) THEN NULL END - - - 67 * + 64 + + 0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5619
SELECT ALL COUNT( * ) * - - COUNT( * ) * + - COUNT( * ) - + 95
----
-96

skipif mysql # not compatible
query I rowsort label-5619
SELECT ALL COUNT ( * ) * - - COUNT ( * ) * + - COUNT ( * ) - + 95
----
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-5620
SELECT DISTINCT - 79 * MAX( - - 62 ), 62 AS col2
----
-4898
62

skipif mysql # not compatible
query II rowsort label-5620
SELECT DISTINCT - 79 * MAX ( - - 62 ), 62 AS col2
----
-4898
62

onlyif mysql # DIV for integer division: 
query I rowsort label-5621
SELECT - 70 * - 99 DIV 1 AS col0
----
6930

skipif mysql # not compatible
query I rowsort label-5621
SELECT - 70 * - 99 / 1 AS col0
----
6930

onlyif mysql # aggregate syntax: 
query II rowsort label-5622
SELECT ALL 48 AS col0, SUM( DISTINCT + 14 ) AS col1
----
48
14

skipif mysql # not compatible
query II rowsort label-5622
SELECT ALL 48 AS col0, SUM ( DISTINCT + 14 ) AS col1
----
48
14

onlyif mysql # aggregate syntax: 
query I rowsort label-5623
SELECT ALL COUNT( 85 )
----
1

skipif mysql # not compatible
query I rowsort label-5623
SELECT ALL COUNT ( 85 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5624
SELECT - - COUNT( * ) * NULLIF ( + COUNT( * ), - 81 )
----
1

skipif mysql # not compatible
query I rowsort label-5624
SELECT - - COUNT ( * ) * NULLIF ( + COUNT ( * ), - 81 )
----
1

query I rowsort
SELECT - + 2 * - 14 - + 6 * 28 AS col1
----
-140

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5626
SELECT ALL + + CAST( NULL AS SIGNED ) / + - AVG ( DISTINCT - 43 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5626
SELECT ALL + + CAST ( NULL AS INTEGER ) / + - AVG ( DISTINCT - 43 ) AS col0
----
NULL

query I rowsort
SELECT - + 91 + - + 67 AS col2
----
-158

query I rowsort
SELECT COALESCE ( - - ( + + 54 ), 51, 12 )
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5629
SELECT ALL + 22 AS col1, + 53 DIV 98 + 32 + - COUNT( * ) AS col1
----
22
31

skipif mysql # not compatible
query II rowsort label-5629
SELECT ALL + 22 AS col1, + 53 / 98 + 32 + - COUNT ( * ) AS col1
----
22
31

onlyif mysql # aggregate syntax: 
query I rowsort label-5630
SELECT - - MIN( - 69 ) AS col1
----
-69

skipif mysql # not compatible
query I rowsort label-5630
SELECT - - MIN ( - 69 ) AS col1
----
-69

query I rowsort
SELECT ( + 4 ) col0
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-5632
SELECT ALL - - 50 - - 0 DIV + + 81 * 16 * - 58
----
50

skipif mysql # not compatible
query I rowsort label-5632
SELECT ALL - - 50 - - 0 / + + 81 * 16 * - 58
----
50

query I rowsort
SELECT DISTINCT - 10 * - 9
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5634
SELECT DISTINCT - COUNT( * ) * + + 46
----
-46

skipif mysql # not compatible
query I rowsort label-5634
SELECT DISTINCT - COUNT ( * ) * + + 46
----
-46

onlyif mysql # aggregate syntax: 
query II rowsort label-5635
SELECT - COUNT( * ), + 88 * - 22 AS col2
----
-1
-1936

skipif mysql # not compatible
query II rowsort label-5635
SELECT - COUNT ( * ), + 88 * - 22 AS col2
----
-1
-1936

onlyif mysql # aggregate syntax: 
query I rowsort label-5636
SELECT DISTINCT + COUNT( * ) * - + 99 AS col1
----
-99

skipif mysql # not compatible
query I rowsort label-5636
SELECT DISTINCT + COUNT ( * ) * - + 99 AS col1
----
-99

query I rowsort
SELECT - ( - 96 ) * ( + 4 ) + 64 col1
----
448

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5638
SELECT - 2 + + - 65 DIV + COUNT( * ) AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-5638
SELECT - 2 + + - 65 / + COUNT ( * ) AS col2
----
-67

query II rowsort
SELECT - ( 25 ), + 26 col0
----
-25
26

onlyif mysql # DIV for integer division: 
query I rowsort label-5640
SELECT + 66 DIV + + 20 col0
----
3

skipif mysql # not compatible
query I rowsort label-5640
SELECT + 66 / + + 20 col0
----
3

query I rowsort
SELECT ALL 72 + 35 * 70 AS col1
----
2522

query I rowsort
SELECT - 78 + - 55 AS col0
----
-133

query I rowsort
SELECT + 84 - + 56 AS col1
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5644
SELECT - CAST( + - 41 AS SIGNED )
----
41

skipif mysql # not compatible
query I rowsort label-5644
SELECT - CAST ( + - 41 AS INTEGER )
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5645
SELECT ALL ( 10 ) + - CAST( + 95 AS SIGNED ) AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-5645
SELECT ALL ( 10 ) + - CAST ( + 95 AS INTEGER ) AS col2
----
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5646
SELECT ALL + 12 DIV - 93 + + + COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5646
SELECT ALL + 12 / - 93 + + + COUNT ( * ) AS col0
----
1

query I rowsort
SELECT DISTINCT + ( + 15 ) AS col1
----
15

query I rowsort
SELECT ALL 42 + + 61 AS col1
----
103

query I rowsort
SELECT DISTINCT 1 * + 12 * + - ( - 43 ) AS col0
----
516

onlyif mysql # aggregate syntax: 
query I rowsort label-5650
SELECT ALL + 94 + + 13 + + + MIN( + 89 ) + 15 * 71 AS col2
----
1261

skipif mysql # not compatible
query I rowsort label-5650
SELECT ALL + 94 + + 13 + + + MIN ( + 89 ) + 15 * 71 AS col2
----
1261

query I rowsort
SELECT DISTINCT - ( + 40 ) + - - 64 + + ( + + 16 ) * 10
----
184

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5652
SELECT ALL NULLIF ( + COUNT( 7 ), - 71 ) + - - COALESCE ( - 26, + - 97 ) + - 74 + + - COALESCE ( - 2, 74 + + + 60 DIV 99 * + + COUNT( * ) DIV + - CAST( 94 AS SIGNED ) ) * + 69
----
39

skipif mysql # not compatible
query I rowsort label-5652
SELECT ALL NULLIF ( + COUNT ( 7 ), - 71 ) + - - COALESCE ( - 26, + - 97 ) + - 74 + + - COALESCE ( - 2, 74 + + + 60 / 99 * + + COUNT ( * ) / + - CAST ( 94 AS INTEGER ) ) * + 69
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-5653
SELECT CASE - 54 WHEN - 60 / 82 THEN - ( COUNT( * ) ) * 71 - - 3 END / - + 97 * - 52 * 85 + - MIN( DISTINCT - 14 ) + - - 87 / - - 74 - - 38 * 26 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5653
SELECT CASE - 54 WHEN - 60 / 82 THEN - ( COUNT ( * ) ) * 71 - - 3 END / - + 97 * - 52 * 85 + - MIN ( DISTINCT - 14 ) + - - 87 / - - 74 - - 38 * 26 AS col1
----
NULL

query I rowsort
SELECT + + COALESCE ( - 79, - 48 + - 17 + - + 39 * - 16 ) AS col0
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-5655
SELECT ALL COUNT( * ) * - 19 * - 12 AS col1
----
228

skipif mysql # not compatible
query I rowsort label-5655
SELECT ALL COUNT ( * ) * - 19 * - 12 AS col1
----
228

onlyif mysql # DIV for integer division: 
query I rowsort label-5656
SELECT ALL + 44 + NULLIF ( 16, + + 38 + 20 ) + 29 + + 80 DIV ( + 79 ) DIV - + 88 AS col0
----
89

skipif mysql # not compatible
query I rowsort label-5656
SELECT ALL + 44 + NULLIF ( 16, + + 38 + 20 ) + 29 + + 80 / ( + 79 ) / - + 88 AS col0
----
89

query II rowsort
SELECT + 8 AS col1, - 43
----
8
-43

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5658
SELECT ALL ( ( 1 ) ) - - CASE + 53 WHEN - COUNT( * ) + + 38 * - ( + 57 ) * CASE - - 40 WHEN - - 63 THEN + CASE 35 WHEN - COUNT( * ) * + 14 * 74 + - ( - 70 ) THEN + AVG ( ALL + 32 ) + + 26 WHEN + 88 THEN NULL WHEN 72 / - 39 THEN NULL END * CAST( + 7 + ( + 17 + 93 ) AS DECIMAL ) - - 98 ELSE NULL END THEN - 8 * + 97 + - 66 * - 41 ELSE + 2 * - COUNT( ALL + 86 ) END * + 52 AS col2
----
-103

skipif mysql # not compatible
query I rowsort label-5658
SELECT ALL ( ( 1 ) ) - - CASE + 53 WHEN - COUNT ( * ) + + 38 * - ( + 57 ) * CASE - - 40 WHEN - - 63 THEN + CASE 35 WHEN - COUNT ( * ) * + 14 * 74 + - ( - 70 ) THEN + AVG ( ALL + 32 ) + + 26 WHEN + 88 THEN NULL WHEN 72 / - 39 THEN NULL END * CAST ( + 7 + ( + 17 + 93 ) AS REAL ) - - 98 ELSE NULL END THEN - 8 * + 97 + - 66 * - 41 ELSE + 2 * - COUNT ( ALL + 86 ) END * + 52 AS col2
----
-103

query I rowsort
SELECT DISTINCT - ( - + 51 ) AS col2
----
51

query II rowsort
SELECT ALL - - 97, - 22 * 6 AS col0
----
97
-132

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5661
SELECT ALL 71 - - CASE + SUM( ALL - CAST( NULL AS DECIMAL ) ) WHEN - ( - ( - + 46 ) ) / - 14 - - - 2 - - 4 THEN - 60 WHEN - 69 THEN NULL ELSE NULL END + 45 * - CAST( NULL AS SIGNED ) * + 78 * + 29 / - 56 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5661
SELECT ALL 71 - - CASE + SUM ( ALL - CAST ( NULL AS REAL ) ) WHEN - ( - ( - + 46 ) ) / - 14 - - - 2 - - 4 THEN - 60 WHEN - 69 THEN NULL ELSE NULL END + 45 * - CAST ( NULL AS INTEGER ) * + 78 * + 29 / - 56 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 50 - - 86
----
136

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5663
SELECT ALL - ( 95 ) * 37 * + - CAST( NULL AS SIGNED ) * + - 40 + - + 1, 58 + + + 23 * + 0 * - 21 AS col2
----
NULL
58

skipif mysql # not compatible
query II rowsort label-5663
SELECT ALL - ( 95 ) * 37 * + - CAST ( NULL AS INTEGER ) * + - 40 + - + 1, 58 + + + 23 * + 0 * - 21 AS col2
----
NULL
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5664
SELECT DISTINCT - 75 / - + 72 * 51 * - 50 + + CASE - 0 WHEN + + ( + CASE + 15 WHEN + 25 + - MIN( + + 92 ) THEN + COUNT( * ) WHEN + - 72 / + + 78 - + 82 * + 89 THEN NULL ELSE 48 + COUNT( * ) * 66 END ) + 69 THEN MAX( ALL 50 ) END * + 9 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5664
SELECT DISTINCT - 75 / - + 72 * 51 * - 50 + + CASE - 0 WHEN + + ( + CASE + 15 WHEN + 25 + - MIN ( + + 92 ) THEN + COUNT ( * ) WHEN + - 72 / + + 78 - + 82 * + 89 THEN NULL ELSE 48 + COUNT ( * ) * 66 END ) + 69 THEN MAX ( ALL 50 ) END * + 9 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5665
SELECT + 21 DIV 33, - 72 col1
----
0
-72

skipif mysql # not compatible
query II rowsort label-5665
SELECT + 21 / 33, - 72 col1
----
0
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5666
SELECT 1 DIV - + 55 + - COUNT( * ) * COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-5666
SELECT 1 / - + 55 + - COUNT ( * ) * COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5667
SELECT + 35 - - - MIN( ALL - - 50 )
----
-15

skipif mysql # not compatible
query I rowsort label-5667
SELECT + 35 - - - MIN ( ALL - - 50 )
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-5668
SELECT - COUNT( * ) * + + 9
----
-9

skipif mysql # not compatible
query I rowsort label-5668
SELECT - COUNT ( * ) * + + 9
----
-9

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5669
SELECT DISTINCT + 34 * - 83 + ( 34 ) + + 13 * - 8 + + CAST( NULL AS DECIMAL ) * + + 17 / - CASE - - COUNT( * ) WHEN + ( + - 86 ) THEN NULL WHEN - 79 THEN NULL ELSE + 42 * + 39 + CASE - 89 WHEN COALESCE ( - 65, - 94, + 17 * 41 ) THEN + 42 END END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5669
SELECT DISTINCT + 34 * - 83 + ( 34 ) + + 13 * - 8 + + CAST ( NULL AS REAL ) * + + 17 / - CASE - - COUNT ( * ) WHEN + ( + - 86 ) THEN NULL WHEN - 79 THEN NULL ELSE + 42 * + 39 + CASE - 89 WHEN COALESCE ( - 65, - 94, + 17 * 41 ) THEN + 42 END END AS col0
----
NULL

query II rowsort
SELECT ALL + 24, + ( - 95 ) AS col2
----
24
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-5671
SELECT - 71 * - - COUNT( * ) AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-5671
SELECT - 71 * - - COUNT ( * ) AS col2
----
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5672
SELECT 14 + - COALESCE ( - 94, + CAST( - 26 AS SIGNED ) ) + + 40 + + 52 * + + 96
----
5140

skipif mysql # not compatible
query I rowsort label-5672
SELECT 14 + - COALESCE ( - 94, + CAST ( - 26 AS INTEGER ) ) + + 40 + + 52 * + + 96
----
5140

query I rowsort
SELECT 24 + + 40 AS col2
----
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5674
SELECT ALL + 52 + + 95 + + COUNT( * ) DIV MAX( ALL + - 25 ) + - 50 AS col2
----
97

skipif mysql # not compatible
query I rowsort label-5674
SELECT ALL + 52 + + 95 + + COUNT ( * ) / MAX ( ALL + - 25 ) + - 50 AS col2
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-5675
SELECT 98 DIV + 74 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5675
SELECT 98 / + 74 AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5676
SELECT DISTINCT - 79 DIV + 45
----
-1

skipif mysql # not compatible
query I rowsort label-5676
SELECT DISTINCT - 79 / + 45
----
-1

query I rowsort
SELECT ALL + ( ( 23 ) ) + - 23 * + + 21
----
-460

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5678
SELECT DISTINCT - 70 + + CASE WHEN NOT ( NULLIF ( + CAST( + 14 AS SIGNED ), + 21 ) ) IS NULL THEN MAX( - 96 ) ELSE NULL END + - + 76
----
-242

skipif mysql # not compatible
query I rowsort label-5678
SELECT DISTINCT - 70 + + CASE WHEN NOT ( NULLIF ( + CAST ( + 14 AS INTEGER ), + 21 ) ) IS NULL THEN MAX ( - 96 ) ELSE NULL END + - + 76
----
-242

onlyif mysql # aggregate syntax: 
query I rowsort label-5679
SELECT 23 * - - MIN( - 27 ) AS col0
----
-621

skipif mysql # not compatible
query I rowsort label-5679
SELECT 23 * - - MIN ( - 27 ) AS col0
----
-621

query I rowsort
SELECT 59 + - + 72 * - - 3 AS col0
----
-157

query II rowsort
SELECT ALL + 25 + + 61 + - + 90, 81 col2
----
-4
81

query II rowsort
SELECT ALL - 62 * 59 AS col2, - 45 * + - 74 AS col2
----
-3658
3330

query I rowsort
SELECT ALL + 90 + 25 * + + 19 AS col0
----
565

onlyif mysql # aggregate syntax: 
query I rowsort label-5684
SELECT DISTINCT - SUM( - - 44 ) AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-5684
SELECT DISTINCT - SUM ( - - 44 ) AS col2
----
-44

query I rowsort
SELECT 74 * + 77 * + 57
----
324786

onlyif mysql # aggregate syntax: 
query I rowsort label-5686
SELECT 48 - - 12 + NULLIF ( + 9, - 74 ) * 15 * + COUNT( 75 ) AS col1
----
195

skipif mysql # not compatible
query I rowsort label-5686
SELECT 48 - - 12 + NULLIF ( + 9, - 74 ) * 15 * + COUNT ( 75 ) AS col1
----
195

query II rowsort
SELECT 84 * + - 7 col2, - 66
----
-588
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-5688
SELECT + - COALESCE ( 44, + 58, + COALESCE ( - + COUNT( * ), - - 72 + 74 ) )
----
-44

skipif mysql # not compatible
query I rowsort label-5688
SELECT + - COALESCE ( 44, + 58, + COALESCE ( - + COUNT ( * ), - - 72 + 74 ) )
----
-44

query I rowsort
SELECT ALL - - 42 AS col2
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-5690
SELECT ALL - COUNT( ALL 8 )
----
-1

skipif mysql # not compatible
query I rowsort label-5690
SELECT ALL - COUNT ( ALL 8 )
----
-1

query II rowsort
SELECT + 25 * + 84 col0, - ( - 76 ) * 95 AS col2
----
2100
7220

query I rowsort
SELECT + 46 * + + 53 + + - 63 - 55 AS col2
----
2320

query I rowsort
SELECT ALL - + NULLIF ( + 21, + + 3 )
----
-21

query I rowsort
SELECT + CASE + - 64 WHEN + CASE 94 WHEN - + 26 THEN 82 END + + 4 THEN NULL WHEN 15 / + - 84 / + - 28 + + - 40 + 36 * + 15 - - 0 + 22 - + 87 THEN - 19 * 41 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5695
SELECT ALL + 46 - - 9 - - - CASE - 71 WHEN - 94 + 75 THEN NULL WHEN - 93 + + - 26 THEN - + COUNT( * ) WHEN + COUNT( * ) / - COALESCE ( - 98, - + 63 ) * COUNT( + - 99 ) * 36 * + COUNT( 73 ) * 56 THEN CAST( + COUNT( * ) AS SIGNED ) ELSE 80 END * - 80
----
6455

skipif mysql # not compatible
query I rowsort label-5695
SELECT ALL + 46 - - 9 - - - CASE - 71 WHEN - 94 + 75 THEN NULL WHEN - 93 + + - 26 THEN - + COUNT ( * ) WHEN + COUNT ( * ) / - COALESCE ( - 98, - + 63 ) * COUNT ( + - 99 ) * 36 * + COUNT ( 73 ) * 56 THEN CAST ( + COUNT ( * ) AS INTEGER ) ELSE 80 END * - 80
----
6455

query I rowsort
SELECT - 92 * 10 * 52
----
-47840

onlyif mysql # aggregate syntax: 
query I rowsort label-5697
SELECT - 61 * + COUNT( * )
----
-61

skipif mysql # not compatible
query I rowsort label-5697
SELECT - 61 * + COUNT ( * )
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-5698
SELECT ALL 31 * + COUNT( * ) AS col0
----
31

skipif mysql # not compatible
query I rowsort label-5698
SELECT ALL 31 * + COUNT ( * ) AS col0
----
31

query I rowsort
SELECT ALL - - 45 AS col0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-5700
SELECT - 19 + - 2 - 12 * 42 * - COUNT( * ) + - - 90 - + - MIN( - + 2 )
----
571

skipif mysql # not compatible
query I rowsort label-5700
SELECT - 19 + - 2 - 12 * 42 * - COUNT ( * ) + - - 90 - + - MIN ( - + 2 )
----
571

query I rowsort
SELECT + 28 * - - 58
----
1624

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5702
SELECT COUNT( * ) + 28 DIV - + 41 * ( - + 63 ) + + SUM( ALL - NULLIF ( - 69, - - 51 ) ) - + + COALESCE ( 78, + ( 11 ) * + ( 91 ) ) * - ( - 59 ) * - 75 AS col1
----
345220

skipif mysql # not compatible
query I rowsort label-5702
SELECT COUNT ( * ) + 28 / - + 41 * ( - + 63 ) + + SUM ( ALL - NULLIF ( - 69, - - 51 ) ) - + + COALESCE ( 78, + ( 11 ) * + ( 91 ) ) * - ( - 59 ) * - 75 AS col1
----
345220

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5703
SELECT ALL + CAST( NULL AS SIGNED ) + 78 * - - 88 + 4
----
NULL

skipif mysql # not compatible
query I rowsort label-5703
SELECT ALL + CAST ( NULL AS INTEGER ) + 78 * - - 88 + 4
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5704
SELECT ALL SUM( DISTINCT + 85 ) DIV + - CASE + 79 WHEN 50 * 21 THEN NULL ELSE - + 47 END AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5704
SELECT ALL SUM ( DISTINCT + 85 ) / + - CASE + 79 WHEN 50 * 21 THEN NULL ELSE - + 47 END AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5705
SELECT DISTINCT 6 AS col1, + 86 * + CAST( NULL AS SIGNED ) * + 75 AS col1
----
6
NULL

skipif mysql # not compatible
query II rowsort label-5705
SELECT DISTINCT 6 AS col1, + 86 * + CAST ( NULL AS INTEGER ) * + 75 AS col1
----
6
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5706
SELECT ALL MIN( + 13 ) + - - 42 * - 1
----
-29

skipif mysql # not compatible
query I rowsort label-5706
SELECT ALL MIN ( + 13 ) + - - 42 * - 1
----
-29

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5707
SELECT - COUNT( * ), + 72 / - CAST( NULL AS DECIMAL ) AS col2
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-5707
SELECT - COUNT ( * ), + 72 / - CAST ( NULL AS REAL ) AS col2
----
-1
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5708
SELECT 14 + - - 6 + + + 46 * - COALESCE ( + CAST( NULL AS SIGNED ), ( 81 ), CASE COUNT( * ) WHEN - 22 * 49 THEN - 89 ELSE NULL END + + 90, - COALESCE ( + - ( 80 ), + + 48 DIV - 47 ) ) + 98 AS col1
----
-3608

skipif mysql # not compatible
query I rowsort label-5708
SELECT 14 + - - 6 + + + 46 * - COALESCE ( + CAST ( NULL AS INTEGER ), ( 81 ), CASE COUNT ( * ) WHEN - 22 * 49 THEN - 89 ELSE NULL END + + 90, - COALESCE ( + - ( 80 ), + + 48 / - 47 ) ) + 98 AS col1
----
-3608

query I rowsort
SELECT DISTINCT 90 * + 62 * 10
----
55800

onlyif mysql # DIV for integer division: 
query II rowsort label-5710
SELECT ALL + ( + 28 ) + + 53, 89 + 23 + - 27 DIV 60 AS col1
----
81
112

skipif mysql # not compatible
query II rowsort label-5710
SELECT ALL + ( + 28 ) + + 53, 89 + 23 + - 27 / 60 AS col1
----
81
112

query II rowsort
SELECT DISTINCT 72 AS col0, - 65
----
72
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5712
SELECT DISTINCT CASE 89 WHEN - 65 / - 36 * 8 + CASE + - 73 WHEN - 17 * - 3 * + 65 THEN COUNT( * ) * 47 - + CAST( 65 AS SIGNED ) END + - - SUM( - 92 ) THEN 31 WHEN 37 + + 50 THEN NULL WHEN - COUNT( * ) THEN NULL ELSE NULL END + + 51
----
NULL

skipif mysql # not compatible
query I rowsort label-5712
SELECT DISTINCT CASE 89 WHEN - 65 / - 36 * 8 + CASE + - 73 WHEN - 17 * - 3 * + 65 THEN COUNT ( * ) * 47 - + CAST ( 65 AS INTEGER ) END + - - SUM ( - 92 ) THEN 31 WHEN 37 + + 50 THEN NULL WHEN - COUNT ( * ) THEN NULL ELSE NULL END + + 51
----
NULL

query I rowsort
SELECT ALL + 94 + - 69 AS col2
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-5714
SELECT - COUNT( * ) - - 20
----
19

skipif mysql # not compatible
query I rowsort label-5714
SELECT - COUNT ( * ) - - 20
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-5715
SELECT ALL ( - 22 ) + + + ( + - SUM( DISTINCT + 21 ) ) AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-5715
SELECT ALL ( - 22 ) + + + ( + - SUM ( DISTINCT + 21 ) ) AS col1
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5716
SELECT ALL 32 col2, ( + CASE 21 WHEN - 87 + - 72 THEN - + 95 WHEN CAST( NULL AS SIGNED ) THEN NULL ELSE NULL END ) col0
----
32
NULL

skipif mysql # not compatible
query II rowsort label-5716
SELECT ALL 32 col2, ( + CASE 21 WHEN - 87 + - 72 THEN - + 95 WHEN CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END ) col0
----
32
NULL

query I rowsort
SELECT - 1 + + ( - + 27 )
----
-28

query I rowsort
SELECT + 12 * 15
----
180

onlyif mysql # aggregate syntax: 
query I rowsort label-5719
SELECT + MIN( 53 ) + + 99
----
152

skipif mysql # not compatible
query I rowsort label-5719
SELECT + MIN ( 53 ) + + 99
----
152

onlyif mysql # DIV for integer division: 
query I rowsort label-5720
SELECT ALL - 31 DIV 51 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5720
SELECT ALL - 31 / 51 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5721
SELECT + 65 + + ( + COUNT( * ) ) * + COUNT( * ) + 26
----
92

skipif mysql # not compatible
query I rowsort label-5721
SELECT + 65 + + ( + COUNT ( * ) ) * + COUNT ( * ) + 26
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5722
SELECT ALL - 22 * - + CAST( - ( - 12 ) AS SIGNED ) * SUM( 30 ) + 4 * + COUNT( * ) AS col2, 58 DIV 93 + - 80 * 73 AS col2
----
7924
-5840

skipif mysql # not compatible
query II rowsort label-5722
SELECT ALL - 22 * - + CAST ( - ( - 12 ) AS INTEGER ) * SUM ( 30 ) + 4 * + COUNT ( * ) AS col2, 58 / 93 + - 80 * 73 AS col2
----
7924
-5840

onlyif mysql # aggregate syntax: 
query II rowsort label-5723
SELECT - ( - 86 ) + - - COUNT( * ) AS col1, 96
----
87
96

skipif mysql # not compatible
query II rowsort label-5723
SELECT - ( - 86 ) + - - COUNT ( * ) AS col1, 96
----
87
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5724
SELECT - - 47 + ( - ( - MAX( DISTINCT - 86 ) ) ) AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-5724
SELECT - - 47 + ( - ( - MAX ( DISTINCT - 86 ) ) ) AS col2
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5725
SELECT - 6 * + ( - - COALESCE ( - 23, - 51 + + CAST( NULL AS SIGNED ) ) ) + + 33 * - 97 + - + 28 AS col0
----
-3091

skipif mysql # not compatible
query I rowsort label-5725
SELECT - 6 * + ( - - COALESCE ( - 23, - 51 + + CAST ( NULL AS INTEGER ) ) ) + + 33 * - 97 + - + 28 AS col0
----
-3091

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5726
SELECT DISTINCT + CAST( - 25 AS SIGNED ) * 86 + 85 + 0 * + + 82 DIV ( + 95 ) AS col2
----
-2065

skipif mysql # not compatible
query I rowsort label-5726
SELECT DISTINCT + CAST ( - 25 AS INTEGER ) * 86 + 85 + 0 * + + 82 / ( + 95 ) AS col2
----
-2065

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5727
SELECT + - 15 * - 62 * - 87 + + 43 + + + CAST( NULL AS SIGNED ) * + 16 + - MAX( ALL 84 ) AS col2, 78 * + 97 + - 56
----
NULL
7510

skipif mysql # not compatible
query II rowsort label-5727
SELECT + - 15 * - 62 * - 87 + + 43 + + + CAST ( NULL AS INTEGER ) * + 16 + - MAX ( ALL 84 ) AS col2, 78 * + 97 + - 56
----
NULL
7510

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5728
SELECT - SUM( + 29 ) DIV 8 * 59 * ( + 8 ) * + - 79
----
111864

skipif mysql # not compatible
query I rowsort label-5728
SELECT - SUM ( + 29 ) / 8 * 59 * ( + 8 ) * + - 79
----
111864

query I rowsort
SELECT - 59 * - 17
----
1003

onlyif mysql # aggregate syntax: 
query I rowsort label-5730
SELECT ALL + + MAX( - 23 )
----
-23

skipif mysql # not compatible
query I rowsort label-5730
SELECT ALL + + MAX ( - 23 )
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5731
SELECT - + 29 * 60 * - ( - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5731
SELECT - + 29 * 60 * - ( - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT ALL - - 17 * 51 * - 97 + - 9 AS col0
----
-84108

onlyif mysql # aggregate syntax: 
query I rowsort label-5733
SELECT ALL + + 51 * + MAX( DISTINCT 65 ) + - COALESCE ( + 25, - 34 * + 52 * + ( 27 ) ) * 40
----
2315

skipif mysql # not compatible
query I rowsort label-5733
SELECT ALL + + 51 * + MAX ( DISTINCT 65 ) + - COALESCE ( + 25, - 34 * + 52 * + ( 27 ) ) * 40
----
2315

onlyif mysql # aggregate syntax: 
query I rowsort label-5734
SELECT MIN( - - COALESCE ( - 54, - + 46, - + 19 / + 66 ) ) AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-5734
SELECT MIN ( - - COALESCE ( - 54, - + 46, - + 19 / + 66 ) ) AS col2
----
-54

onlyif mysql # aggregate syntax: 
query II rowsort label-5735
SELECT ALL + - COUNT( * ) AS col0, 8
----
-1
8

skipif mysql # not compatible
query II rowsort label-5735
SELECT ALL + - COUNT ( * ) AS col0, 8
----
-1
8

onlyif mysql # aggregate syntax: 
query I rowsort label-5736
SELECT DISTINCT + 0 * + COUNT( * ) * - 11 + + COUNT( * ) - 51 + + - 63 * + 81 + - - 6 - + 3 * 43 AS col1
----
-5276

skipif mysql # not compatible
query I rowsort label-5736
SELECT DISTINCT + 0 * + COUNT ( * ) * - 11 + + COUNT ( * ) - 51 + + - 63 * + 81 + - - 6 - + 3 * 43 AS col1
----
-5276

query II rowsort
SELECT + + 56 AS col2, + 50 * - 94 AS col2
----
56
-4700

onlyif mysql # aggregate syntax: 
query I rowsort label-5738
SELECT DISTINCT + 40 * + 55 + - CASE + 26 WHEN - ( ( + - 11 ) ) + 76 * + 57 THEN NULL WHEN + - 17 / + + 10 THEN + 53 ELSE - MIN( DISTINCT 77 ) * + 85 + - + 47 + 27 * + 50 END * + 91 AS col0
----
479222

skipif mysql # not compatible
query I rowsort label-5738
SELECT DISTINCT + 40 * + 55 + - CASE + 26 WHEN - ( ( + - 11 ) ) + 76 * + 57 THEN NULL WHEN + - 17 / + + 10 THEN + 53 ELSE - MIN ( DISTINCT 77 ) * + 85 + - + 47 + 27 * + 50 END * + 91 AS col0
----
479222

query I rowsort
SELECT - 79 + + 64 AS col2
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5740
SELECT + CAST( 26 AS SIGNED ) * + 65 + + 70, ( - + COUNT( DISTINCT - - 53 ) ) AS col2
----
1760
-1

skipif mysql # not compatible
query II rowsort label-5740
SELECT + CAST ( 26 AS INTEGER ) * + 65 + + 70, ( - + COUNT ( DISTINCT - - 53 ) ) AS col2
----
1760
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5741
SELECT DISTINCT + NULLIF ( - + 1, + 23 * + COUNT( * ) * - 78 - 79 * + - 91 * 13 / + 40 ) * 70 - - - 95 - - + 34 * + CASE + 28 WHEN COUNT( * ) THEN + + 77 END + 21 * - 11 + - CASE + MAX( - 33 ) WHEN + 47 THEN NULL ELSE - 90 + ( 21 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5741
SELECT DISTINCT + NULLIF ( - + 1, + 23 * + COUNT ( * ) * - 78 - 79 * + - 91 * 13 / + 40 ) * 70 - - - 95 - - + 34 * + CASE + 28 WHEN COUNT ( * ) THEN + + 77 END + 21 * - 11 + - CASE + MAX ( - 33 ) WHEN + 47 THEN NULL ELSE - 90 + ( 21 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5742
SELECT ALL - COUNT( * ) + - 41 * ( 42 ) AS col0, - COUNT( * ) * - + 7 col1
----
-1723
7

skipif mysql # not compatible
query II rowsort label-5742
SELECT ALL - COUNT ( * ) + - 41 * ( 42 ) AS col0, - COUNT ( * ) * - + 7 col1
----
-1723
7

query I rowsort
SELECT ALL 43 + + ( + 91 )
----
134

query I rowsort
SELECT + 49 + 12 AS col1
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5745
SELECT DISTINCT CAST( - MAX( DISTINCT + 32 ) AS SIGNED ) AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-5745
SELECT DISTINCT CAST ( - MAX ( DISTINCT + 32 ) AS INTEGER ) AS col2
----
-32

query I rowsort
SELECT + 25 + + - NULLIF ( 91, - 79 ) + 51 + - 0 col2
----
-15

query I rowsort
SELECT ALL 31 - 55 * + + 77 AS col0
----
-4204

query I rowsort
SELECT + COALESCE ( + 6, + + 71, - ( - 54 ) ) + + 78 AS col0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-5749
SELECT - NULLIF ( - 51, - - 60 + + 40 * - COUNT( DISTINCT + 73 ) ) col2
----
51

skipif mysql # not compatible
query I rowsort label-5749
SELECT - NULLIF ( - 51, - - 60 + + 40 * - COUNT ( DISTINCT + 73 ) ) col2
----
51

query II rowsort
SELECT - ( + + 43 ) AS col2, - 16 AS col2
----
-43
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-5751
SELECT + 89 * COUNT( * ) AS col1
----
89

skipif mysql # not compatible
query I rowsort label-5751
SELECT + 89 * COUNT ( * ) AS col1
----
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5752
SELECT + ( + 35 ) * + + 85 + + + ( NULLIF ( COUNT( * ), + + 63 ) ) * 68 + - ( + ( + 71 ) ) - - - 45 * + + 30 + + - 10 - + 72 + + 54 DIV + + 76 * 98 + + 28 + 65 DIV + ( - 27 )
----
1566

skipif mysql # not compatible
query I rowsort label-5752
SELECT + ( + 35 ) * + + 85 + + + ( NULLIF ( COUNT ( * ), + + 63 ) ) * 68 + - ( + ( + 71 ) ) - - - 45 * + + 30 + + - 10 - + 72 + + 54 / + + 76 * 98 + + 28 + 65 / + ( - 27 )
----
1566

query I rowsort
SELECT DISTINCT 18 * + 32 / - - 9 * - CASE + 35 WHEN - 5 / - - 81 THEN + - 90 ELSE NULL END
----
NULL

query II rowsort
SELECT ALL 77 * + 32 col1, + 7 * - 94 + - 7
----
2464
-665

query II rowsort
SELECT ALL 35 * + 33 AS col0, ( 33 )
----
1155
33

query I rowsort
SELECT - ( - 87 ) AS col2
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5757
SELECT ALL CASE 74 WHEN - - COUNT( * ) THEN - + 50 * + - 79 + - 80 * MAX( DISTINCT - + 36 ) ELSE 65 + - 3 * - ( + + CAST( NULL AS SIGNED ) ) / + + COUNT( * ) * - - 13 * 79 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5757
SELECT ALL CASE 74 WHEN - - COUNT ( * ) THEN - + 50 * + - 79 + - 80 * MAX ( DISTINCT - + 36 ) ELSE 65 + - 3 * - ( + + CAST ( NULL AS INTEGER ) ) / + + COUNT ( * ) * - - 13 * 79 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5758
SELECT - ( + + 45 ) AS col0, + 25 + - CAST( NULL AS SIGNED )
----
-45
NULL

skipif mysql # not compatible
query II rowsort label-5758
SELECT - ( + + 45 ) AS col0, + 25 + - CAST ( NULL AS INTEGER )
----
-45
NULL

query I rowsort
SELECT DISTINCT + + 0 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5760
SELECT + + 40 DIV + + 17 + + 49 DIV + + 69 - 99 DIV 24 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-5760
SELECT + + 40 / + + 17 + + 49 / + + 69 - 99 / 24 AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5761
SELECT + - 49 - + - 74 - 95 + - COUNT( * ) + + 2 * - 47
----
-165

skipif mysql # not compatible
query I rowsort label-5761
SELECT + - 49 - + - 74 - 95 + - COUNT ( * ) + + 2 * - 47
----
-165

onlyif mysql # aggregate syntax: 
query I rowsort label-5762
SELECT ALL + MAX( 84 ) AS col1
----
84

skipif mysql # not compatible
query I rowsort label-5762
SELECT ALL + MAX ( 84 ) AS col1
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-5763
SELECT DISTINCT - 82 DIV 55 + - 79
----
-80

skipif mysql # not compatible
query I rowsort label-5763
SELECT DISTINCT - 82 / 55 + - 79
----
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-5764
SELECT ALL - + 73 DIV - + 11 + 56 + + 40 + 89 AS col1
----
191

skipif mysql # not compatible
query I rowsort label-5764
SELECT ALL - + 73 / - + 11 + 56 + + 40 + 89 AS col1
----
191

onlyif mysql # aggregate syntax: 
query I rowsort label-5765
SELECT - - 39 / + CASE - + COUNT( * ) WHEN + 52 + + - 69 THEN + - 65 WHEN - - 26 THEN NULL ELSE NULL END - + 51 + + 76 - - 67 / + 48 + 4 - - CASE + - ( - + 6 ) WHEN - COUNT( * ) * 9 + - 44 + - 37 * - 29 THEN + 96 ELSE NULL END * + 93 * + MIN( DISTINCT + 56 + 94 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5765
SELECT - - 39 / + CASE - + COUNT ( * ) WHEN + 52 + + - 69 THEN + - 65 WHEN - - 26 THEN NULL ELSE NULL END - + 51 + + 76 - - 67 / + 48 + 4 - - CASE + - ( - + 6 ) WHEN - COUNT ( * ) * 9 + - 44 + - 37 * - 29 THEN + 96 ELSE NULL END * + 93 * + MIN ( DISTINCT + 56 + 94 ) AS col2
----
NULL

query I rowsort
SELECT ALL + 3 * + - 46
----
-138

onlyif mysql # DIV for integer division: 
query I rowsort label-5767
SELECT DISTINCT - 44 * 73 + - 66 + - 9 - + 6 DIV + 52
----
-3287

skipif mysql # not compatible
query I rowsort label-5767
SELECT DISTINCT - 44 * 73 + - 66 + - 9 - + 6 / + 52
----
-3287

onlyif mysql # aggregate syntax: 
query II rowsort label-5768
SELECT ALL + 3 * + ( + COUNT( * ) ) + - + 43 AS col0, 87 AS col2
----
-40
87

skipif mysql # not compatible
query II rowsort label-5768
SELECT ALL + 3 * + ( + COUNT ( * ) ) + - + 43 AS col0, 87 AS col2
----
-40
87

query I rowsort
SELECT ALL + 67 * - + 3 + - - 34
----
-167

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5770
SELECT - - 10 * 11 * - 39 + - 89 + COUNT( * ) DIV + 82
----
-4379

skipif mysql # not compatible
query I rowsort label-5770
SELECT - - 10 * 11 * - 39 + - 89 + COUNT ( * ) / + 82
----
-4379

query I rowsort
SELECT CASE + ( - 65 ) WHEN 51 THEN - + 40 END col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5772
SELECT - + 31 DIV - + ( ( + - 14 ) ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-5772
SELECT - + 31 / - + ( ( + - 14 ) ) AS col2
----
-2

query I rowsort
SELECT - 38 + - 17
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-5774
SELECT ALL - 39 + - + MIN( DISTINCT - 61 ) * - COALESCE ( - 55, 0 + - - 41 * + - 54 * 59 - - MAX( + - 42 ) + + - 22 + 99, + MIN( - + 45 ) * - 77 + 46 + + + COUNT( * ) + + 40 + ( + 98 ) * - 6 ) * + 91
----
305266

skipif mysql # not compatible
query I rowsort label-5774
SELECT ALL - 39 + - + MIN ( DISTINCT - 61 ) * - COALESCE ( - 55, 0 + - - 41 * + - 54 * 59 - - MAX ( + - 42 ) + + - 22 + 99, + MIN ( - + 45 ) * - 77 + 46 + + + COUNT ( * ) + + 40 + ( + 98 ) * - 6 ) * + 91
----
305266

query I rowsort
SELECT DISTINCT - ( + + 43 )
----
-43

query I rowsort
SELECT DISTINCT 78 - - + ( 59 ) + - 86 AS col0
----
51

query I rowsort
SELECT NULLIF ( 10, 62 ) * + 9 * 55 - - 5 + + 59 + 76
----
5090

query I rowsort
SELECT DISTINCT + NULLIF ( 33, - 56 ) * - 11 AS col2
----
-363

query I rowsort
SELECT 33 * - 94 AS col1
----
-3102

query I rowsort
SELECT ALL + 31 * + + 31 AS col0
----
961

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5781
SELECT 39 + + 29 DIV + 25, + CAST( NULL AS SIGNED ) AS col2
----
40
NULL

skipif mysql # not compatible
query II rowsort label-5781
SELECT 39 + + 29 / + 25, + CAST ( NULL AS INTEGER ) AS col2
----
40
NULL

query I rowsort
SELECT DISTINCT + 22 * - 78
----
-1716

query I rowsort
SELECT 49 + - - 42 + - 99 - + + 58
----
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-5784
SELECT ALL + NULLIF ( 26, - + 62 - - + 1 / + 5 + + 66 ) * - SUM( ALL 53 ), + ( 92 ) + - 15 AS col2
----
-1378
77

skipif mysql # not compatible
query II rowsort label-5784
SELECT ALL + NULLIF ( 26, - + 62 - - + 1 / + 5 + + 66 ) * - SUM ( ALL 53 ), + ( 92 ) + - 15 AS col2
----
-1378
77

query III rowsort
SELECT DISTINCT 39 AS col2, 20 * - + 70 * NULLIF ( + 34, - 60 ) AS col2, 51
----
39
-47600
51

onlyif mysql # DIV for integer division: 
query I rowsort label-5786
SELECT ( + 26 ) DIV + 29
----
0

skipif mysql # not compatible
query I rowsort label-5786
SELECT ( + 26 ) / + 29
----
0

query I rowsort
SELECT ( + + 95 ) + - - 62 + + 13 + + 95 * 59
----
5775

query I rowsort
SELECT DISTINCT 23 * + 24
----
552

onlyif mysql # DIV for integer division: 
query I rowsort label-5789
SELECT DISTINCT 70 DIV + - 30 - NULLIF ( 16, - 27 * - - 15 DIV + + 17 )
----
-18

skipif mysql # not compatible
query I rowsort label-5789
SELECT DISTINCT 70 / + - 30 - NULLIF ( 16, - 27 * - - 15 / + + 17 )
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-5790
SELECT ALL - COALESCE ( + NULLIF ( - COUNT( * ), 44 * - 60 - + + 67 * - 84 ), - - 50, - - 50 )
----
1

skipif mysql # not compatible
query I rowsort label-5790
SELECT ALL - COALESCE ( + NULLIF ( - COUNT ( * ), 44 * - 60 - + + 67 * - 84 ), - - 50, - - 50 )
----
1

query II rowsort
SELECT + ( + 88 ) + COALESCE ( 86, + 72, - 76 + 49 ) + + - 20, - 32 AS col1
----
154
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5792
SELECT ALL - CAST( CASE + CASE - 81 WHEN - + 0 + CASE + 23 WHEN + - ( + - 77 ) THEN 14 WHEN - 70 THEN - + COUNT( * ) WHEN CAST( NULL AS SIGNED ) THEN 96 ELSE - 91 END + 2 * + 47 * CAST( NULL AS SIGNED ) + + 20 * 17 THEN MAX( - 47 ) / 75 ELSE - COUNT( DISTINCT + ( - 39 ) ) / 21 + 53 * 58 END WHEN - CAST( 83 AS DECIMAL ) THEN + 34 ELSE NULL END AS SIGNED ) + - 93
----
NULL

skipif mysql # not compatible
query I rowsort label-5792
SELECT ALL - CAST ( CASE + CASE - 81 WHEN - + 0 + CASE + 23 WHEN + - ( + - 77 ) THEN 14 WHEN - 70 THEN - + COUNT ( * ) WHEN CAST ( NULL AS INTEGER ) THEN 96 ELSE - 91 END + 2 * + 47 * CAST ( NULL AS INTEGER ) + + 20 * 17 THEN MAX ( - 47 ) / 75 ELSE - COUNT ( DISTINCT + ( - 39 ) ) / 21 + 53 * 58 END WHEN - CAST ( 83 AS REAL ) THEN + 34 ELSE NULL END AS INTEGER ) + - 93
----
NULL

query I rowsort
SELECT ALL 97 * 22 * - - ( + - 10 )
----
-21340

onlyif mysql # aggregate syntax: 
query I rowsort label-5794
SELECT + ( COUNT( * ) ) + + 93
----
94

skipif mysql # not compatible
query I rowsort label-5794
SELECT + ( COUNT ( * ) ) + + 93
----
94

query I rowsort
SELECT 22 - 62 col2
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5796
SELECT ALL 11 * - + 49 + - + CAST( - ( + 63 ) AS SIGNED )
----
-476

skipif mysql # not compatible
query I rowsort label-5796
SELECT ALL 11 * - + 49 + - + CAST ( - ( + 63 ) AS INTEGER )
----
-476

query I rowsort
SELECT - + 9 AS col0
----
-9

query I rowsort
SELECT 24 + + 25 AS col0
----
49

query I rowsort
SELECT DISTINCT - CASE - 47 WHEN - 79 THEN + ( - + 76 ) WHEN + 76 THEN NULL ELSE - - 39 END col0
----
-39

query II rowsort
SELECT ALL 38 + 62 - + 24, ( + 16 ) + - 13 AS col0
----
76
3

query I rowsort
SELECT 1 + ( + 48 ) - + 68 + + ( 32 ) * - 84 AS col1
----
-2707

onlyif mysql # aggregate syntax: 
query I rowsort label-5802
SELECT ALL - COUNT( * ) * 81
----
-81

skipif mysql # not compatible
query I rowsort label-5802
SELECT ALL - COUNT ( * ) * 81
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-5803
SELECT - 59 * + + 3 * - 65 * + NULLIF ( + + 22, COUNT( * ) ) + + 93 * - - 51
----
257853

skipif mysql # not compatible
query I rowsort label-5803
SELECT - 59 * + + 3 * - 65 * + NULLIF ( + + 22, COUNT ( * ) ) + + 93 * - - 51
----
257853

onlyif mysql # aggregate syntax: 
query I rowsort label-5804
SELECT ALL - + MAX( - + 63 ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-5804
SELECT ALL - + MAX ( - + 63 ) AS col2
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5805
SELECT - - CASE + 65 WHEN 92 THEN 89 WHEN - 85 + SUM( ALL - - 64 ) THEN 48 + - CAST( - 80 AS SIGNED ) + - 46 END / 8 + MAX( DISTINCT + 24 ) / - + 77
----
NULL

skipif mysql # not compatible
query I rowsort label-5805
SELECT - - CASE + 65 WHEN 92 THEN 89 WHEN - 85 + SUM ( ALL - - 64 ) THEN 48 + - CAST ( - 80 AS INTEGER ) + - 46 END / 8 + MAX ( DISTINCT + 24 ) / - + 77
----
NULL

query I rowsort
SELECT + + NULLIF ( - 42, - 63 * - 31 ) AS col1
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5807
SELECT COUNT( * ) + + - 80 + + 49 + + 12 * CAST( NULL AS SIGNED ) / - 23 * - + CASE + + 28 WHEN 63 + - - ( 17 ) * - 68 - + 3 * 24 + + + 92 THEN - 99 WHEN - + 6 THEN NULL ELSE NULL END * - - 2 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5807
SELECT COUNT ( * ) + + - 80 + + 49 + + 12 * CAST ( NULL AS INTEGER ) / - 23 * - + CASE + + 28 WHEN 63 + - - ( 17 ) * - 68 - + 3 * 24 + + + 92 THEN - 99 WHEN - + 6 THEN NULL ELSE NULL END * - - 2 AS col1
----
NULL

query I rowsort
SELECT + - 70 AS col2
----
-70

query I rowsort
SELECT - 97 + - 86
----
-183

onlyif mysql # DIV for integer division: 
query II rowsort label-5810
SELECT - 71 + + 33 DIV + 41 AS col1, + 25 AS col2
----
-71
25

skipif mysql # not compatible
query II rowsort label-5810
SELECT - 71 + + 33 / + 41 AS col1, + 25 AS col2
----
-71
25

onlyif mysql # aggregate syntax: 
query I rowsort label-5811
SELECT ALL + + MAX( - - 99 ) * + COUNT( * ) * + + 0
----
0

skipif mysql # not compatible
query I rowsort label-5811
SELECT ALL + + MAX ( - - 99 ) * + COUNT ( * ) * + + 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5812
SELECT - 54 * - + COUNT( * ) + + + ( + CASE + 47 WHEN - 79 + - + 45 THEN NULL WHEN - 46 THEN + + 70 ELSE - 60 END ) AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-5812
SELECT - 54 * - + COUNT ( * ) + + + ( + CASE + 47 WHEN - 79 + - + 45 THEN NULL WHEN - 46 THEN + + 70 ELSE - 60 END ) AS col0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-5813
SELECT DISTINCT - ( - 21 ) - + NULLIF ( - 84, CASE COUNT( * ) WHEN - ( + COUNT( * ) ) THEN + - ( - 87 ) * AVG ( ALL 90 ) WHEN + 17 THEN 6 END + + 13 + + COUNT( * ) + AVG ( ( + + ( - + 87 ) ) ) )
----
105

skipif mysql # not compatible
query I rowsort label-5813
SELECT DISTINCT - ( - 21 ) - + NULLIF ( - 84, CASE COUNT ( * ) WHEN - ( + COUNT ( * ) ) THEN + - ( - 87 ) * AVG ( ALL 90 ) WHEN + 17 THEN 6 END + + 13 + + COUNT ( * ) + AVG ( ( + + ( - + 87 ) ) ) )
----
105

onlyif mysql # aggregate syntax: 
query II rowsort label-5814
SELECT DISTINCT - 65 AS col0, + 57 + + COUNT( * )
----
-65
58

skipif mysql # not compatible
query II rowsort label-5814
SELECT DISTINCT - 65 AS col0, + 57 + + COUNT ( * )
----
-65
58

onlyif mysql # aggregate syntax: 
query II rowsort label-5815
SELECT ALL - COUNT( * ), 76 AS col2
----
-1
76

skipif mysql # not compatible
query II rowsort label-5815
SELECT ALL - COUNT ( * ), 76 AS col2
----
-1
76

query I rowsort
SELECT ALL 14 * 26 AS col2
----
364

query I rowsort
SELECT 49 + - - 29
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5818
SELECT + 64, 35 * + 16 * + CASE - + COALESCE ( + - CAST( 17 AS SIGNED ), ( - - COUNT( * ) ), - + 2 ) WHEN - - 73 THEN NULL WHEN 20 * - 73 * - - 17 THEN NULL ELSE 72 END col2
----
64
40320

skipif mysql # not compatible
query II rowsort label-5818
SELECT + 64, 35 * + 16 * + CASE - + COALESCE ( + - CAST ( 17 AS INTEGER ), ( - - COUNT ( * ) ), - + 2 ) WHEN - - 73 THEN NULL WHEN 20 * - 73 * - - 17 THEN NULL ELSE 72 END col2
----
64
40320

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5819
SELECT 59 + + CASE + MIN( DISTINCT - 79 ) WHEN - 5 * 18 * 43 + 3 THEN - 87 WHEN - 76 + - - COUNT( * ) * - CAST( + - 31 AS SIGNED ) * - + 10 * - 61 THEN - COALESCE ( - 7, COALESCE ( - 60, 50 * + 5 - + ( ( + 38 ) ) + 59, 49 * NULLIF ( + COUNT( * ), + 16 + 61 ) ) ) WHEN AVG ( 36 ) * ( + CAST( - 51 AS SIGNED ) / 28 ) + - SUM( + 87 ) * ( ( 69 ) ) THEN + 77 * - CAST( + COUNT( * ) AS SIGNED ) END + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5819
SELECT 59 + + CASE + MIN ( DISTINCT - 79 ) WHEN - 5 * 18 * 43 + 3 THEN - 87 WHEN - 76 + - - COUNT ( * ) * - CAST ( + - 31 AS INTEGER ) * - + 10 * - 61 THEN - COALESCE ( - 7, COALESCE ( - 60, 50 * + 5 - + ( ( + 38 ) ) + 59, 49 * NULLIF ( + COUNT ( * ), + 16 + 61 ) ) ) WHEN AVG ( 36 ) * ( + CAST ( - 51 AS INTEGER ) / 28 ) + - SUM ( + 87 ) * ( ( 69 ) ) THEN + 77 * - CAST ( + COUNT ( * ) AS INTEGER ) END + - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5820
SELECT ALL + 62 * - CAST( + 61 AS SIGNED ) col0
----
-3782

skipif mysql # not compatible
query I rowsort label-5820
SELECT ALL + 62 * - CAST ( + 61 AS INTEGER ) col0
----
-3782

query I rowsort
SELECT ALL - ( + 32 ) - - 38
----
6

query I rowsort
SELECT 33 * + + 48
----
1584

query I rowsort
SELECT 68 * - + 15
----
-1020

query I rowsort
SELECT 42 * 26
----
1092

query I rowsort
SELECT 58 * 47 AS col1
----
2726

query II rowsort
SELECT DISTINCT 34, 85 * - - 73 * - + 10 AS col2
----
34
-62050

query I rowsort
SELECT 83 + + + 47 AS col1
----
130

query I rowsort
SELECT 58 * + - 4 col2
----
-232

onlyif mysql # aggregate syntax: 
query I rowsort label-5829
SELECT COUNT( + 17 ) + + MAX( ALL + - 57 ) * + 48 AS col0
----
-2735

skipif mysql # not compatible
query I rowsort label-5829
SELECT COUNT ( + 17 ) + + MAX ( ALL + - 57 ) * + 48 AS col0
----
-2735

onlyif mysql # aggregate syntax: 
query I rowsort label-5830
SELECT - + ( + + MAX( ALL - 25 ) ) AS col0
----
25

skipif mysql # not compatible
query I rowsort label-5830
SELECT - + ( + + MAX ( ALL - 25 ) ) AS col0
----
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5831
SELECT - COUNT( * ) + - - 1 DIV 61 + - MIN( + + 96 )
----
-97

skipif mysql # not compatible
query I rowsort label-5831
SELECT - COUNT ( * ) + - - 1 / 61 + - MIN ( + + 96 )
----
-97

query II rowsort
SELECT ALL - 13 + + 12 AS col2, ( - - 53 ) col2
----
-1
53

query I rowsort
SELECT 47 * - - 74
----
3478

query I rowsort
SELECT 90 + + - ( 13 )
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5835
SELECT DISTINCT + 80 + + + COUNT( * )
----
81

skipif mysql # not compatible
query I rowsort label-5835
SELECT DISTINCT + 80 + + + COUNT ( * )
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5836
SELECT ALL - 22 + + ( - + COUNT( * ) )
----
-23

skipif mysql # not compatible
query I rowsort label-5836
SELECT ALL - 22 + + ( - + COUNT ( * ) )
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5837
SELECT - NULLIF ( 47, - + 6 / - + 45 + CAST( NULL AS SIGNED ) )
----
-47

skipif mysql # not compatible
query I rowsort label-5837
SELECT - NULLIF ( 47, - + 6 / - + 45 + CAST ( NULL AS INTEGER ) )
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5838
SELECT ALL + 47 + + CAST( 46 AS SIGNED ) + - - 88 AS col2
----
181

skipif mysql # not compatible
query I rowsort label-5838
SELECT ALL + 47 + + CAST ( 46 AS INTEGER ) + - - 88 AS col2
----
181

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5839
SELECT DISTINCT + 30 DIV - 67 + COALESCE ( - ( + 38 ), - - COUNT( * ) ) AS col1
----
-38

skipif mysql # not compatible
query I rowsort label-5839
SELECT DISTINCT + 30 / - 67 + COALESCE ( - ( + 38 ), - - COUNT ( * ) ) AS col1
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5840
SELECT DISTINCT - COUNT( * ) + + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5840
SELECT DISTINCT - COUNT ( * ) + + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5841
SELECT - 41, ( - + COUNT( * ) ) * - - 56 * 84 + - - 14 AS col1
----
-41
-4690

skipif mysql # not compatible
query II rowsort label-5841
SELECT - 41, ( - + COUNT ( * ) ) * - - 56 * 84 + - - 14 AS col1
----
-41
-4690

onlyif mysql # aggregate syntax: 
query II rowsort label-5842
SELECT - - COUNT( * ), 52 + - 81 AS col2
----
1
-29

skipif mysql # not compatible
query II rowsort label-5842
SELECT - - COUNT ( * ), 52 + - 81 AS col2
----
1
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5843
SELECT ALL + 86 + + + 69 AS col0, + COUNT( ALL - + 83 ) DIV CAST( + 21 AS SIGNED ) + 16 * + COUNT( + 17 ) + - 58 + - 61
----
155
-103

skipif mysql # not compatible
query II rowsort label-5843
SELECT ALL + 86 + + + 69 AS col0, + COUNT ( ALL - + 83 ) / CAST ( + 21 AS INTEGER ) + 16 * + COUNT ( + 17 ) + - 58 + - 61
----
155
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-5844
SELECT 49 * + COUNT( * ) * + 78
----
3822

skipif mysql # not compatible
query I rowsort label-5844
SELECT 49 * + COUNT ( * ) * + 78
----
3822

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5845
SELECT - 28 * - - 37 + + + 36 + - COUNT( ALL + 73 ) DIV COALESCE ( + 26, 66 ) * - ( 31 ) AS col2
----
-1000

skipif mysql # not compatible
query I rowsort label-5845
SELECT - 28 * - - 37 + + + 36 + - COUNT ( ALL + 73 ) / COALESCE ( + 26, 66 ) * - ( 31 ) AS col2
----
-1000

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5846
SELECT ALL CAST( NULL AS SIGNED ) * - 64
----
NULL

skipif mysql # not compatible
query I rowsort label-5846
SELECT ALL CAST ( NULL AS INTEGER ) * - 64
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5847
SELECT - MAX( + - 81 ) + + 11
----
92

skipif mysql # not compatible
query I rowsort label-5847
SELECT - MAX ( + - 81 ) + + 11
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-5848
SELECT + 55 DIV 87 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5848
SELECT + 55 / 87 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5849
SELECT - + COUNT( ALL 8 ) * + - ( SUM( + - 90 ) ) * + + CASE - NULLIF ( 41, - + ( - MAX( + + 98 ) ) - 49 ) WHEN + 79 * + + 32 + 97 THEN - + 52 END + - + 41 + + 25 + + - 49 + - 69 + - - 36 + 61 * - NULLIF ( 4, 50 / + 36 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5849
SELECT - + COUNT ( ALL 8 ) * + - ( SUM ( + - 90 ) ) * + + CASE - NULLIF ( 41, - + ( - MAX ( + + 98 ) ) - 49 ) WHEN + 79 * + + 32 + 97 THEN - + 52 END + - + 41 + + 25 + + - 49 + - 69 + - - 36 + 61 * - NULLIF ( 4, 50 / + 36 ) AS col2
----
NULL

query I rowsort
SELECT ALL - 72 * - 61 + + 35 - 32 - 9 * 16 + 87
----
4338

query I rowsort
SELECT ALL 60 * 41 * 44 - - + 14
----
108254

query I rowsort
SELECT DISTINCT 73 * 82 AS col1
----
5986

onlyif mysql # aggregate syntax: 
query I rowsort label-5853
SELECT + MAX( ALL 81 )
----
81

skipif mysql # not compatible
query I rowsort label-5853
SELECT + MAX ( ALL 81 )
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5854
SELECT SUM( DISTINCT - 0 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-5854
SELECT SUM ( DISTINCT - 0 ) col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5855
SELECT SUM( + - NULLIF ( - ( - 65 ), + - 98 ) )
----
-65

skipif mysql # not compatible
query I rowsort label-5855
SELECT SUM ( + - NULLIF ( - ( - 65 ), + - 98 ) )
----
-65

query I rowsort
SELECT 76 * + 94 + - 92 * - 18
----
8800

query I rowsort
SELECT - 54 * 30 AS col0
----
-1620

query I rowsort
SELECT + 66 * + 32 AS col1
----
2112

onlyif mysql # aggregate syntax: 
query I rowsort label-5859
SELECT + COUNT( * ) + - 41
----
-40

skipif mysql # not compatible
query I rowsort label-5859
SELECT + COUNT ( * ) + - 41
----
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-5860
SELECT SUM( ALL - 1 ) AS col1, - 56 AS col2
----
-1
-56

skipif mysql # not compatible
query II rowsort label-5860
SELECT SUM ( ALL - 1 ) AS col1, - 56 AS col2
----
-1
-56

query I rowsort
SELECT ALL - 77 * - - 53 * - 37
----
150997

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5862
SELECT + 18 DIV + 40 col2, + MIN( - 88 ) AS col2
----
0
-88

skipif mysql # not compatible
query II rowsort label-5862
SELECT + 18 / + 40 col2, + MIN ( - 88 ) AS col2
----
0
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-5863
SELECT ALL 24 DIV + 7 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-5863
SELECT ALL 24 / + 7 AS col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5864
SELECT MAX( ALL ( + 69 ) ) AS col2
----
69

skipif mysql # not compatible
query I rowsort label-5864
SELECT MAX ( ALL ( + 69 ) ) AS col2
----
69

query I rowsort
SELECT + ( + 48 ) AS col1
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5866
SELECT ( 97 ) * COUNT( * ) + 20 + 26 DIV + - COUNT( * ) - + + 20 + 14 AS col1
----
85

skipif mysql # not compatible
query I rowsort label-5866
SELECT ( 97 ) * COUNT ( * ) + 20 + 26 / + - COUNT ( * ) - + + 20 + 14 AS col1
----
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5867
SELECT + 82 DIV COUNT( ALL + 65 ) AS col2
----
82

skipif mysql # not compatible
query I rowsort label-5867
SELECT + 82 / COUNT ( ALL + 65 ) AS col2
----
82

query I rowsort
SELECT ALL 94 + + 95 + 65
----
254

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5869
SELECT - 64 * + 54 DIV - COUNT( * )
----
3456

skipif mysql # not compatible
query I rowsort label-5869
SELECT - 64 * + 54 / - COUNT ( * )
----
3456

onlyif mysql # aggregate syntax: 
query I rowsort label-5870
SELECT ALL + + MAX( ALL + - 65 ) + - - 17 - 87 AS col2
----
-135

skipif mysql # not compatible
query I rowsort label-5870
SELECT ALL + + MAX ( ALL + - 65 ) + - - 17 - 87 AS col2
----
-135

query I rowsort
SELECT + + 37 + 15 * ( - 9 ) col1
----
-98

query I rowsort
SELECT - - 31 * - 56
----
-1736

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5873
SELECT ALL 14 * + + COUNT( DISTINCT + 44 ) + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5873
SELECT ALL 14 * + + COUNT ( DISTINCT + 44 ) + - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5874
SELECT - - COUNT( DISTINCT - - 92 ) + 23 AS col1, 52
----
24
52

skipif mysql # not compatible
query II rowsort label-5874
SELECT - - COUNT ( DISTINCT - - 92 ) + 23 AS col1, 52
----
24
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5875
SELECT - 76 - ( - + 56 ) * 39 * - COALESCE ( - 25, 69 DIV 67 + + - COUNT( * ) + + COUNT( * ), - - 32 * - ( - + CAST( + 67 AS SIGNED ) ) + + + 47 ) AS col0
----
54524

skipif mysql # not compatible
query I rowsort label-5875
SELECT - 76 - ( - + 56 ) * 39 * - COALESCE ( - 25, 69 / 67 + + - COUNT ( * ) + + COUNT ( * ), - - 32 * - ( - + CAST ( + 67 AS INTEGER ) ) + + + 47 ) AS col0
----
54524

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5876
SELECT - - COUNT( - CAST( NULL AS SIGNED ) ), 26 AS col0
----
0
26

skipif mysql # not compatible
query II rowsort label-5876
SELECT - - COUNT ( - CAST ( NULL AS INTEGER ) ), 26 AS col0
----
0
26

query I rowsort
SELECT ALL + CASE + + 55 WHEN + + 36 + + ( ( + 57 ) ) * - 72 THEN NULL WHEN + + 82 + + ( - 9 ) THEN - 78 - 64 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5878
SELECT ALL - - 88 * - COUNT( + + 19 ) * - 12 col2
----
1056

skipif mysql # not compatible
query I rowsort label-5878
SELECT ALL - - 88 * - COUNT ( + + 19 ) * - 12 col2
----
1056

query I rowsort
SELECT - 3 + - + 0 AS col2
----
-3

query I rowsort
SELECT - 43 + - 19
----
-62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5881
SELECT - ( 20 ) + + 1 DIV - COUNT( * ) AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-5881
SELECT - ( 20 ) + + 1 / - COUNT ( * ) AS col2
----
-21

query I rowsort
SELECT + - 29 * + 77 * + - 61 AS col1
----
136213

query I rowsort
SELECT ALL - COALESCE ( - 8, - + 47, 57 ) * + + 79
----
632

query I rowsort
SELECT DISTINCT - + NULLIF ( 25, - 83 ) * - 62 AS col0
----
1550

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5885
SELECT - + CASE + CAST( NULL AS SIGNED ) WHEN + CAST( - - MAX( ALL 78 ) AS DECIMAL ) * - 55 * 16 / + MIN( DISTINCT - ( + 68 ) ) / 54 * - 10 + + 23 - + 24 * 66 - - 58 * - 1 - + NULLIF ( - + 6, + - 94 ) + + AVG ( DISTINCT - 41 ) * + 69 THEN NULL WHEN + 40 * 36 THEN 38 WHEN + 61 THEN NULL ELSE + 5 END + - 32 * - 23 AS col2
----
731

skipif mysql # not compatible
query I rowsort label-5885
SELECT - + CASE + CAST ( NULL AS INTEGER ) WHEN + CAST ( - - MAX ( ALL 78 ) AS REAL ) * - 55 * 16 / + MIN ( DISTINCT - ( + 68 ) ) / 54 * - 10 + + 23 - + 24 * 66 - - 58 * - 1 - + NULLIF ( - + 6, + - 94 ) + + AVG ( DISTINCT - 41 ) * + 69 THEN NULL WHEN + 40 * 36 THEN 38 WHEN + 61 THEN NULL ELSE + 5 END + - 32 * - 23 AS col2
----
731

query I rowsort
SELECT ALL - 63 * - + 7 col1
----
441

onlyif mysql # aggregate syntax: 
query I rowsort label-5887
SELECT - 6 + + 76 + + - COUNT( * ) * + 74 * + + 61 * 30
----
-135350

skipif mysql # not compatible
query I rowsort label-5887
SELECT - 6 + + 76 + + - COUNT ( * ) * + 74 * + + 61 * 30
----
-135350

query I rowsort
SELECT - 96 * - - 14 AS col0
----
-1344

query I rowsort
SELECT - 73 * 62
----
-4526

onlyif mysql # aggregate syntax: 
query I rowsort label-5890
SELECT + CASE + - 1 WHEN + ( + - 52 ) THEN COALESCE ( - + CASE + + SUM( DISTINCT - 37 ) WHEN - + COALESCE ( + 52, 1 / - 65 - + - 45 ) THEN - 62 ELSE - 21 END, COUNT( * ), - 78 ) WHEN + - 69 * + CASE + ( + 39 ) WHEN + + 72 + + COUNT( * ) THEN 97 ELSE 89 END - COUNT( * ) THEN NULL END / - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5890
SELECT + CASE + - 1 WHEN + ( + - 52 ) THEN COALESCE ( - + CASE + + SUM ( DISTINCT - 37 ) WHEN - + COALESCE ( + 52, 1 / - 65 - + - 45 ) THEN - 62 ELSE - 21 END, COUNT ( * ), - 78 ) WHEN + - 69 * + CASE + ( + 39 ) WHEN + + 72 + + COUNT ( * ) THEN 97 ELSE 89 END - COUNT ( * ) THEN NULL END / - COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT ALL 60 * + 43
----
2580

query I rowsort
SELECT DISTINCT 78 * - - 35 AS col2
----
2730

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5893
SELECT DISTINCT + CAST( - 6 AS SIGNED ) DIV 32 + + 32 col0
----
32

skipif mysql # not compatible
query I rowsort label-5893
SELECT DISTINCT + CAST ( - 6 AS INTEGER ) / 32 + + 32 col0
----
32

query I rowsort
SELECT DISTINCT 54 * - - 20
----
1080

query II rowsort
SELECT + CASE - - 52 WHEN + + 99 THEN - - 21 + + - 34 + - 83 END AS col1, 15 + 55 AS col1
----
NULL
70

onlyif mysql # DIV for integer division: 
query I rowsort label-5896
SELECT ALL + 72 * ( + 61 ) DIV + - ( - 78 )
----
56

skipif mysql # not compatible
query I rowsort label-5896
SELECT ALL + 72 * ( + 61 ) / + - ( - 78 )
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5897
SELECT DISTINCT 73 * CASE 92 WHEN + 41 * 35 THEN NULL WHEN + 40 THEN + CAST( - 39 AS SIGNED ) / COUNT( * ) END + + + 93 + 96
----
NULL

skipif mysql # not compatible
query I rowsort label-5897
SELECT DISTINCT 73 * CASE 92 WHEN + 41 * 35 THEN NULL WHEN + 40 THEN + CAST ( - 39 AS INTEGER ) / COUNT ( * ) END + + + 93 + 96
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5898
SELECT ALL 23 * - CASE - 55 WHEN - 52 - + 5 THEN - - COUNT( * ) * - 61 WHEN + 45 * + CAST( NULL AS SIGNED ) + + 24 + + 37 + 95 * + 99 THEN NULL WHEN - - 28 THEN NULL ELSE NULL END + + - 50 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5898
SELECT ALL 23 * - CASE - 55 WHEN - 52 - + 5 THEN - - COUNT ( * ) * - 61 WHEN + 45 * + CAST ( NULL AS INTEGER ) + + 24 + + 37 + 95 * + 99 THEN NULL WHEN - - 28 THEN NULL ELSE NULL END + + - 50 col2
----
NULL

query I rowsort
SELECT + 12 + + 52
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-5900
SELECT + MIN( ALL 16 ) AS col1
----
16

skipif mysql # not compatible
query I rowsort label-5900
SELECT + MIN ( ALL 16 ) AS col1
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5901
SELECT + CAST( 28 AS SIGNED ) + - + 87
----
-59

skipif mysql # not compatible
query I rowsort label-5901
SELECT + CAST ( 28 AS INTEGER ) + - + 87
----
-59

query I rowsort
SELECT + ( - 24 ) - + 24
----
-48

query I rowsort
SELECT - 91 * - - 7 + - 99 - - ( 46 )
----
-690

onlyif mysql # aggregate syntax: 
query I rowsort label-5904
SELECT DISTINCT + 68 * + 68 + + - 19 * + COUNT( * ) AS col0
----
4605

skipif mysql # not compatible
query I rowsort label-5904
SELECT DISTINCT + 68 * + 68 + + - 19 * + COUNT ( * ) AS col0
----
4605

query I rowsort
SELECT + + 41 * + 36 * + 34 - - - 70
----
50114

query II rowsort
SELECT + 74 + 28 + 50, - 44 - 26 AS col2
----
152
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-5907
SELECT ALL COUNT( * ) - - + ( - - 75 ) col0
----
76

skipif mysql # not compatible
query I rowsort label-5907
SELECT ALL COUNT ( * ) - - + ( - - 75 ) col0
----
76

query II rowsort
SELECT ALL + 12, + 20 col0
----
12
20

onlyif mysql # aggregate syntax: 
query I rowsort label-5909
SELECT DISTINCT 62 * + MAX( DISTINCT - - 4 ) * - COUNT( * ) * + 60 * - 77
----
1145760

skipif mysql # not compatible
query I rowsort label-5909
SELECT DISTINCT 62 * + MAX ( DISTINCT - - 4 ) * - COUNT ( * ) * + 60 * - 77
----
1145760

onlyif mysql # aggregate syntax: 
query I rowsort label-5910
SELECT + 31 * + ( + NULLIF ( + ( 57 ), ( + 44 ) + + + 53 ) ) + + - 51 * - COUNT( * )
----
1818

skipif mysql # not compatible
query I rowsort label-5910
SELECT + 31 * + ( + NULLIF ( + ( 57 ), ( + 44 ) + + + 53 ) ) + + - 51 * - COUNT ( * )
----
1818

query II rowsort
SELECT - - 45, 0 + + ( - - 24 ) AS col1
----
45
24

onlyif mysql # DIV for integer division: 
query I rowsort label-5912
SELECT + + 64 DIV - 66
----
0

skipif mysql # not compatible
query I rowsort label-5912
SELECT + + 64 / - 66
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5913
SELECT - + 59 + - 14 + - COUNT( DISTINCT - - COALESCE ( + 46, + 21 ) ) - 34 AS col2
----
-108

skipif mysql # not compatible
query I rowsort label-5913
SELECT - + 59 + - 14 + - COUNT ( DISTINCT - - COALESCE ( + 46, + 21 ) ) - 34 AS col2
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-5914
SELECT ALL MAX( DISTINCT 94 )
----
94

skipif mysql # not compatible
query I rowsort label-5914
SELECT ALL MAX ( DISTINCT 94 )
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5915
SELECT 77, CAST( NULL AS SIGNED ) AS col0
----
77
NULL

skipif mysql # not compatible
query II rowsort label-5915
SELECT 77, CAST ( NULL AS INTEGER ) AS col0
----
77
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5916
SELECT DISTINCT 33 * - + MAX( DISTINCT - 70 ) + + - CAST( 60 AS SIGNED )
----
2250

skipif mysql # not compatible
query I rowsort label-5916
SELECT DISTINCT 33 * - + MAX ( DISTINCT - 70 ) + + - CAST ( 60 AS INTEGER )
----
2250

onlyif mysql # DIV for integer division: 
query I rowsort label-5917
SELECT 56 DIV + + 59
----
0

skipif mysql # not compatible
query I rowsort label-5917
SELECT 56 / + + 59
----
0

query II rowsort
SELECT ALL 60 AS col1, - 73 AS col0
----
60
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5919
SELECT - 48 + - 68 / - COUNT( * ) + - ( 81 ) - ( + + 13 ) - 48 + + 36 * + CAST( NULL AS SIGNED ) + COALESCE ( 58, - 96 ) * - 79 / COUNT( * ) - - 20
----
NULL

skipif mysql # not compatible
query I rowsort label-5919
SELECT - 48 + - 68 / - COUNT ( * ) + - ( 81 ) - ( + + 13 ) - 48 + + 36 * + CAST ( NULL AS INTEGER ) + COALESCE ( 58, - 96 ) * - 79 / COUNT ( * ) - - 20
----
NULL

query I rowsort
SELECT 68 * - + 51
----
-3468

query II rowsort
SELECT ALL + 3 * + + 43, + 25 AS col0
----
129
25

query II rowsort
SELECT ALL + 85 + - 89, 45 col0
----
-4
45

onlyif mysql # aggregate syntax: 
query I rowsort label-5923
SELECT 52 + + + 60 + - NULLIF ( + COUNT( * ), 51 ) + + - COUNT( ALL - 42 )
----
110

skipif mysql # not compatible
query I rowsort label-5923
SELECT 52 + + + 60 + - NULLIF ( + COUNT ( * ), 51 ) + + - COUNT ( ALL - 42 )
----
110

query I rowsort
SELECT ALL + 76 * - 20
----
-1520

query I rowsort
SELECT 58 * + ( - 41 ) col1
----
-2378

query I rowsort
SELECT DISTINCT - ( 51 )
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-5927
SELECT DISTINCT - 31 + - COALESCE ( 9, 36, 2 + 86 + - NULLIF ( + MAX( ALL ( - 40 ) ), 37 / - - 3 ) ) * + 91
----
-850

skipif mysql # not compatible
query I rowsort label-5927
SELECT DISTINCT - 31 + - COALESCE ( 9, 36, 2 + 86 + - NULLIF ( + MAX ( ALL ( - 40 ) ), 37 / - - 3 ) ) * + 91
----
-850

onlyif mysql # aggregate syntax: 
query I rowsort label-5928
SELECT ALL COUNT( * ) + NULLIF ( CASE - 66 WHEN - 72 THEN NULL WHEN 7 THEN - + 65 + - MAX( DISTINCT - + 37 ) - - - AVG ( + 55 ) / + + 93 / + - 14 + COUNT( * ) - + + 25 * + + COUNT( * ) * - 45 ELSE NULL END, 99 ) + - - MAX( DISTINCT 96 ) + + 52 + + 20 * + 55 * + + ( MAX( 77 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5928
SELECT ALL COUNT ( * ) + NULLIF ( CASE - 66 WHEN - 72 THEN NULL WHEN 7 THEN - + 65 + - MAX ( DISTINCT - + 37 ) - - - AVG ( + 55 ) / + + 93 / + - 14 + COUNT ( * ) - + + 25 * + + COUNT ( * ) * - 45 ELSE NULL END, 99 ) + - - MAX ( DISTINCT 96 ) + + 52 + + 20 * + 55 * + + ( MAX ( 77 ) )
----
NULL

query I rowsort
SELECT 87 - - 56 * + 19
----
1151

query I rowsort
SELECT DISTINCT - ( + 8 )
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-5931
SELECT CASE - ( - - 22 ) WHEN - - NULLIF ( + COALESCE ( + 75, 94 ), - - ( + COUNT( * ) ) + + 15 ) * COALESCE ( 4, 31 ) * + 45 * + 92 / - + 7 + + - 95 THEN + - SUM( - 72 ) WHEN 25 + - 36 THEN - - 50 END + - 42 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5931
SELECT CASE - ( - - 22 ) WHEN - - NULLIF ( + COALESCE ( + 75, 94 ), - - ( + COUNT ( * ) ) + + 15 ) * COALESCE ( 4, 31 ) * + 45 * + 92 / - + 7 + + - 95 THEN + - SUM ( - 72 ) WHEN 25 + - 36 THEN - - 50 END + - 42 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5932
SELECT 74 DIV - + 46
----
-1

skipif mysql # not compatible
query I rowsort label-5932
SELECT 74 / - + 46
----
-1

query I rowsort
SELECT DISTINCT NULLIF ( - 74, - + 64 ) + - 12
----
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-5934
SELECT ALL + 42 DIV + 42 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5934
SELECT ALL + 42 / + 42 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5935
SELECT ALL MIN( + 14 ) * 28
----
392

skipif mysql # not compatible
query I rowsort label-5935
SELECT ALL MIN ( + 14 ) * 28
----
392

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5936
SELECT ALL 75 * - 69 DIV + - COUNT( DISTINCT + 4 ) AS col0, ( - 56 ) col0
----
5175
-56

skipif mysql # not compatible
query II rowsort label-5936
SELECT ALL 75 * - 69 / + - COUNT ( DISTINCT + 4 ) AS col0, ( - 56 ) col0
----
5175
-56

onlyif mysql # aggregate syntax: 
query II rowsort label-5937
SELECT DISTINCT + 23 - - COUNT( * ) col0, 76
----
24
76

skipif mysql # not compatible
query II rowsort label-5937
SELECT DISTINCT + 23 - - COUNT ( * ) col0, 76
----
24
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-5938
SELECT ALL + COUNT( ALL + NULLIF ( 32, 54 ) ) AS col2, 56 * ( + 72 ) AS col0, + COALESCE ( + 97, - 63 + 41 + - 58 * - - 32 + 51 * - 77 ) DIV + + 61 + + - ( 30 )
----
1
4032
-29

skipif mysql # not compatible
query III rowsort label-5938
SELECT ALL + COUNT ( ALL + NULLIF ( 32, 54 ) ) AS col2, 56 * ( + 72 ) AS col0, + COALESCE ( + 97, - 63 + 41 + - 58 * - - 32 + 51 * - 77 ) / + + 61 + + - ( 30 )
----
1
4032
-29

query I rowsort
SELECT ALL 33 * - 49 - + 7
----
-1624

onlyif mysql # aggregate syntax: 
query II rowsort label-5940
SELECT - SUM( - 83 ), - COUNT( DISTINCT - - 65 ) AS col2
----
83
-1

skipif mysql # not compatible
query II rowsort label-5940
SELECT - SUM ( - 83 ), - COUNT ( DISTINCT - - 65 ) AS col2
----
83
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5941
SELECT ALL + CAST( - 35 AS SIGNED )
----
-35

skipif mysql # not compatible
query I rowsort label-5941
SELECT ALL + CAST ( - 35 AS INTEGER )
----
-35

query I rowsort
SELECT + 99 * 80 * + 1
----
7920

onlyif mysql # aggregate syntax: 
query I rowsort label-5943
SELECT - COUNT( * ) + - 55 AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-5943
SELECT - COUNT ( * ) + - 55 AS col0
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-5944
SELECT 93 + - COUNT( * )
----
92

skipif mysql # not compatible
query I rowsort label-5944
SELECT 93 + - COUNT ( * )
----
92

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5945
SELECT DISTINCT CASE - + 28 WHEN ( + + 91 ) THEN + - 85 ELSE NULLIF ( 60, - - NULLIF ( + - 31, + 45 ) ) * MAX( DISTINCT + - 18 ) + ( 69 ) END * + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5945
SELECT DISTINCT CASE - + 28 WHEN ( + + 91 ) THEN + - 85 ELSE NULLIF ( 60, - - NULLIF ( + - 31, + 45 ) ) * MAX ( DISTINCT + - 18 ) + ( 69 ) END * + CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT - 65 * - 18 AS col0
----
1170

query I rowsort
SELECT ALL 5 * - 54 AS col0
----
-270

onlyif mysql # aggregate syntax: 
query I rowsort label-5948
SELECT + 88 + + COUNT( + 66 )
----
89

skipif mysql # not compatible
query I rowsort label-5948
SELECT + 88 + + COUNT ( + 66 )
----
89

query I rowsort
SELECT + 32 * 35 * + + NULLIF ( + - 26, 29 - - 57 ) + - 18
----
-29138

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5950
SELECT ( 40 ) + + - 66 + - + 61 DIV - - NULLIF ( - 87, - CASE - 13 WHEN - COUNT( * ) THEN + 17 * + 25 * 33 END ) + + 76 AS col2
----
50

skipif mysql # not compatible
query I rowsort label-5950
SELECT ( 40 ) + + - 66 + - + 61 / - - NULLIF ( - 87, - CASE - 13 WHEN - COUNT ( * ) THEN + 17 * + 25 * 33 END ) + + 76 AS col2
----
50

query I rowsort
SELECT DISTINCT 80 * - 80 * 92
----
-588800

onlyif mysql # aggregate syntax: 
query I rowsort label-5952
SELECT + ( + + 0 ) + + 2 + - 22 * + + COUNT( * ) + - - 89 AS col0
----
69

skipif mysql # not compatible
query I rowsort label-5952
SELECT + ( + + 0 ) + + 2 + - 22 * + + COUNT ( * ) + - - 89 AS col0
----
69

query I rowsort
SELECT 52 + - 51 AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5954
SELECT ALL NULLIF ( - 76, 9 - - 40 * + + MIN( ALL + - 95 ) - - - ( CAST( + - 43 AS SIGNED ) ) ) + 2
----
-74

skipif mysql # not compatible
query I rowsort label-5954
SELECT ALL NULLIF ( - 76, 9 - - 40 * + + MIN ( ALL + - 95 ) - - - ( CAST ( + - 43 AS INTEGER ) ) ) + 2
----
-74

query I rowsort
SELECT DISTINCT 72 * 86 + - + 97 - - + 77 AS col0
----
6172

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5956
SELECT 77 + - - 15 + + 78 + + 93 * + 81 - - COUNT( * ) + - + CAST( NULL AS SIGNED ) + + 39 + + + AVG ( + 4 ) * + 18 / - COUNT( * ) * - - 45 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5956
SELECT 77 + - - 15 + + 78 + + 93 * + 81 - - COUNT ( * ) + - + CAST ( NULL AS INTEGER ) + + 39 + + + AVG ( + 4 ) * + 18 / - COUNT ( * ) * - - 45 AS col2
----
NULL

query I rowsort
SELECT + 59 * ( + 51 ) + + - 31 AS col0
----
2978

onlyif mysql # aggregate syntax: 
query I rowsort label-5958
SELECT + MIN( ALL 78 ) AS col2
----
78

skipif mysql # not compatible
query I rowsort label-5958
SELECT + MIN ( ALL 78 ) AS col2
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-5959
SELECT DISTINCT ( NULLIF ( + - 67, 24 ) ) * - - 91 + + + COUNT( * ) + 22
----
-6074

skipif mysql # not compatible
query I rowsort label-5959
SELECT DISTINCT ( NULLIF ( + - 67, 24 ) ) * - - 91 + + + COUNT ( * ) + 22
----
-6074

onlyif mysql # aggregate syntax: 
query I rowsort label-5960
SELECT MAX( DISTINCT 79 ) AS col0
----
79

skipif mysql # not compatible
query I rowsort label-5960
SELECT MAX ( DISTINCT 79 ) AS col0
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5961
SELECT ALL 84 * + 15 * - 54 * - 69 + CASE MAX( + 1 ) WHEN 73 * 22 + + + 80 + + 35 + 95 * COUNT( * ) THEN NULL WHEN - 47 THEN - 47 * COUNT( * ) WHEN COUNT( * ) + COUNT( * ) + - - 7 THEN NULL END + - NULLIF ( - 95, + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5961
SELECT ALL 84 * + 15 * - 54 * - 69 + CASE MAX ( + 1 ) WHEN 73 * 22 + + + 80 + + 35 + 95 * COUNT ( * ) THEN NULL WHEN - 47 THEN - 47 * COUNT ( * ) WHEN COUNT ( * ) + COUNT ( * ) + - - 7 THEN NULL END + - NULLIF ( - 95, + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT 83 + 28
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-5963
SELECT DISTINCT + 80 * COALESCE ( + ( + - 69 ), + + COUNT( * ) * 96 - + - COUNT( * ) ) + + 64
----
-5456

skipif mysql # not compatible
query I rowsort label-5963
SELECT DISTINCT + 80 * COALESCE ( + ( + - 69 ), + + COUNT ( * ) * 96 - + - COUNT ( * ) ) + + 64
----
-5456

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5964
SELECT DISTINCT - CAST( + 34 AS SIGNED ) AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-5964
SELECT DISTINCT - CAST ( + 34 AS INTEGER ) AS col2
----
-34

query I rowsort
SELECT DISTINCT + 37 - + 66
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5966
SELECT + CAST( + 55 AS SIGNED ) * - 11 * - 91 + - 90 * 45
----
51005

skipif mysql # not compatible
query I rowsort label-5966
SELECT + CAST ( + 55 AS INTEGER ) * - 11 * - 91 + - 90 * 45
----
51005

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5967
SELECT 26 AS col0, 95 - 86 + - ( + - ( - CAST( NULL AS SIGNED ) ) ) * + CASE + + 88 WHEN 42 THEN + + 28 * - CASE + - 51 WHEN 38 THEN NULL WHEN ( + 12 ) THEN 60 + - + AVG ( + 69 ) END ELSE NULL END
----
26
NULL

skipif mysql # not compatible
query II rowsort label-5967
SELECT 26 AS col0, 95 - 86 + - ( + - ( - CAST ( NULL AS INTEGER ) ) ) * + CASE + + 88 WHEN 42 THEN + + 28 * - CASE + - 51 WHEN 38 THEN NULL WHEN ( + 12 ) THEN 60 + - + AVG ( + 69 ) END ELSE NULL END
----
26
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5968
SELECT DISTINCT + CASE + ( 67 ) WHEN 98 THEN NULL WHEN - 87 * + + COUNT( * ) + CAST( NULL AS SIGNED ) THEN - 46 + + - 91 * + 33 / 50 WHEN - 54 + + - 29 * + - 89 THEN + 65 / 20 + + 45 - + 40 WHEN + ( 28 ) * + + ( AVG ( DISTINCT + 46 ) ) + + + ( - - 65 ) THEN - CAST( - 18 AS SIGNED ) * - 33 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5968
SELECT DISTINCT + CASE + ( 67 ) WHEN 98 THEN NULL WHEN - 87 * + + COUNT ( * ) + CAST ( NULL AS INTEGER ) THEN - 46 + + - 91 * + 33 / 50 WHEN - 54 + + - 29 * + - 89 THEN + 65 / 20 + + 45 - + 40 WHEN + ( 28 ) * + + ( AVG ( DISTINCT + 46 ) ) + + + ( - - 65 ) THEN - CAST ( - 18 AS INTEGER ) * - 33 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5969
SELECT - 23 * CAST( NULL AS SIGNED ) + + MIN( + - 29 ) * - 65 * 18 + - 26
----
NULL

skipif mysql # not compatible
query I rowsort label-5969
SELECT - 23 * CAST ( NULL AS INTEGER ) + + MIN ( + - 29 ) * - 65 * 18 + - 26
----
NULL

query I rowsort
SELECT ALL - 36 * + 88 AS col1
----
-3168

query II rowsort
SELECT ALL 55, 81 AS col0
----
55
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5972
SELECT - SUM( + - 46 ) col2
----
46

skipif mysql # not compatible
query I rowsort label-5972
SELECT - SUM ( + - 46 ) col2
----
46

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5973
SELECT DISTINCT - - 22 DIV - 14 + - + CAST( + 34 AS SIGNED ) AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-5973
SELECT DISTINCT - - 22 / - 14 + - + CAST ( + 34 AS INTEGER ) AS col1
----
-35

query I rowsort
SELECT ALL - + 72 * 7 AS col1
----
-504

query I rowsort
SELECT ALL + + 10 * + 72 * 62 + - + 13 AS col0
----
44627

query I rowsort
SELECT - + ( - - 34 )
----
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5977
SELECT + CAST( - - 29 AS SIGNED )
----
29

skipif mysql # not compatible
query I rowsort label-5977
SELECT + CAST ( - - 29 AS INTEGER )
----
29

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5978
SELECT ALL 69 + ( COALESCE ( - + 82, + 15 DIV - 21 - CAST( NULL AS SIGNED ) * + + 58 ) )
----
-13

skipif mysql # not compatible
query I rowsort label-5978
SELECT ALL 69 + ( COALESCE ( - + 82, + 15 / - 21 - CAST ( NULL AS INTEGER ) * + + 58 ) )
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5979
SELECT DISTINCT - 93 + 87 * + CAST( - CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5979
SELECT DISTINCT - 93 + 87 * + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

query I rowsort
SELECT + 2 * 26 * + 48
----
2496

query I rowsort
SELECT ALL - 85 + 6
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-5982
SELECT ALL 90 + + COUNT( * ) * + 19 + 91 AS col0
----
200

skipif mysql # not compatible
query I rowsort label-5982
SELECT ALL 90 + + COUNT ( * ) * + 19 + 91 AS col0
----
200

onlyif mysql # DIV for integer division: 
query I rowsort label-5983
SELECT DISTINCT 60 DIV + 26
----
2

skipif mysql # not compatible
query I rowsort label-5983
SELECT DISTINCT 60 / + 26
----
2

query I rowsort
SELECT - 66 + 57
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-5985
SELECT 55, + 5 + - ( - - 40 ) + + - 18 * 52 + + - COUNT( * ) + 12 AS col1
----
55
-960

skipif mysql # not compatible
query II rowsort label-5985
SELECT 55, + 5 + - ( - - 40 ) + + - 18 * 52 + + - COUNT ( * ) + 12 AS col1
----
55
-960

query I rowsort
SELECT DISTINCT 95 * 7 * + 48 AS col1
----
31920

query I rowsort
SELECT ALL 54 + 19 + + + 55 AS col0
----
128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5988
SELECT + CASE - 66 WHEN CAST( - ( - + 30 ) AS SIGNED ) + + 81 - ( + 15 ) THEN - COALESCE ( + - CAST( 34 AS DECIMAL ), + CAST( + 88 AS SIGNED ) ) WHEN 18 * + 53 + - MAX( ALL + - 46 ) + + - 93 * + 20 THEN NULL ELSE NULL END - - 3 + + SUM( + 96 ), 25 AS col2
----
NULL
25

skipif mysql # not compatible
query II rowsort label-5988
SELECT + CASE - 66 WHEN CAST ( - ( - + 30 ) AS INTEGER ) + + 81 - ( + 15 ) THEN - COALESCE ( + - CAST ( 34 AS REAL ), + CAST ( + 88 AS INTEGER ) ) WHEN 18 * + 53 + - MAX ( ALL + - 46 ) + + - 93 * + 20 THEN NULL ELSE NULL END - - 3 + + SUM ( + 96 ), 25 AS col2
----
NULL
25

onlyif mysql # aggregate syntax: 
query I rowsort label-5989
SELECT ( CASE 62 WHEN + 96 THEN - + 97 * - 53 WHEN + - CASE 74 WHEN + + 50 THEN NULL ELSE - 19 * - + 0 / - 77 * + 79 END THEN NULL ELSE + COUNT( * ) END )
----
1

skipif mysql # not compatible
query I rowsort label-5989
SELECT ( CASE 62 WHEN + 96 THEN - + 97 * - 53 WHEN + - CASE 74 WHEN + + 50 THEN NULL ELSE - 19 * - + 0 / - 77 * + 79 END THEN NULL ELSE + COUNT ( * ) END )
----
1

query I rowsort
SELECT ALL 11 * - - ( - 0 ) * - 65 * + - 96 + - 3 AS col2
----
-3

query I rowsort
SELECT DISTINCT 59 * 40 AS col2
----
2360

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5992
SELECT ( + 93 ) AS col0, CAST( NULL AS SIGNED ) col0
----
93
NULL

skipif mysql # not compatible
query II rowsort label-5992
SELECT ( + 93 ) AS col0, CAST ( NULL AS INTEGER ) col0
----
93
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5993
SELECT + 6 * + 14 AS col2, CAST( NULL AS SIGNED ) * + + CASE + 88 WHEN CASE - COUNT( * ) WHEN - 67 THEN NULL WHEN MIN( - 10 ) THEN NULL WHEN + - 5 THEN 65 + + + 97 END * - 71 THEN NULL WHEN + 49 * 93 THEN 82 END - - COUNT( * )
----
84
NULL

skipif mysql # not compatible
query II rowsort label-5993
SELECT + 6 * + 14 AS col2, CAST ( NULL AS INTEGER ) * + + CASE + 88 WHEN CASE - COUNT ( * ) WHEN - 67 THEN NULL WHEN MIN ( - 10 ) THEN NULL WHEN + - 5 THEN 65 + + + 97 END * - 71 THEN NULL WHEN + 49 * 93 THEN 82 END - - COUNT ( * )
----
84
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5994
SELECT ALL - 78 DIV - 38
----
2

skipif mysql # not compatible
query I rowsort label-5994
SELECT ALL - 78 / - 38
----
2

query I rowsort
SELECT ALL + ( - - 25 ) AS col0
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5996
SELECT - CAST( + 52 AS SIGNED ) DIV COUNT( * ) - + COUNT( * ) AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-5996
SELECT - CAST ( + 52 AS INTEGER ) / COUNT ( * ) - + COUNT ( * ) AS col0
----
-53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5997
SELECT DISTINCT 47 DIV + + 13 * - COUNT( * ) AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-5997
SELECT DISTINCT 47 / + + 13 * - COUNT ( * ) AS col1
----
-3

query I rowsort
SELECT - 58 + 49
----
-9

query I rowsort
SELECT NULLIF ( 31, - 41 )
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-6000
SELECT - CASE - - COUNT( * ) WHEN ( + + 29 ) THEN 46 END * - 93 + 45 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6000
SELECT - CASE - - COUNT ( * ) WHEN ( + + 29 ) THEN 46 END * - 93 + 45 AS col1
----
NULL

query II rowsort
SELECT DISTINCT + - 28 AS col1, 25
----
-28
25

onlyif mysql # aggregate syntax: 
query II rowsort label-6002
SELECT ALL + - 37 AS col0, ( - + ( - - MIN( 68 ) ) ) * + 94 AS col2
----
-37
-6392

skipif mysql # not compatible
query II rowsort label-6002
SELECT ALL + - 37 AS col0, ( - + ( - - MIN ( 68 ) ) ) * + 94 AS col2
----
-37
-6392

query I rowsort
SELECT ALL + + 76 AS col2
----
76

query I rowsort
SELECT - - 2 * - - 70 * - 58 AS col1
----
-8120

onlyif mysql # aggregate syntax: 
query I rowsort label-6005
SELECT DISTINCT + - CASE - 65 WHEN + + 39 + 81 * 9 THEN - + 58 * - 98 + - - COUNT( * ) * + 94 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6005
SELECT DISTINCT + - CASE - 65 WHEN + + 39 + 81 * 9 THEN - + 58 * - 98 + - - COUNT ( * ) * + 94 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT DISTINCT + + 78 col0
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6007
SELECT + - 23, COUNT( - - CAST( - 35 AS SIGNED ) ) AS col0
----
-23
1

skipif mysql # not compatible
query II rowsort label-6007
SELECT + - 23, COUNT ( - - CAST ( - 35 AS INTEGER ) ) AS col0
----
-23
1

query I rowsort
SELECT + 87 + + + 97 AS col2
----
184

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6009
SELECT - MAX( ALL + COALESCE ( - + 79, - 31 + CAST( NULL AS SIGNED ) + - - 7 ) ) * - - COUNT( * ) + - COUNT( + - COALESCE ( + + 1, + + 2 ) ) * + 71
----
8

skipif mysql # not compatible
query I rowsort label-6009
SELECT - MAX ( ALL + COALESCE ( - + 79, - 31 + CAST ( NULL AS INTEGER ) + - - 7 ) ) * - - COUNT ( * ) + - COUNT ( + - COALESCE ( + + 1, + + 2 ) ) * + 71
----
8

onlyif mysql # aggregate syntax: 
query III rowsort label-6010
SELECT + 6, COUNT( * ) * 56 + - 11 AS col0, - COUNT( * ) AS col2
----
6
45
-1

skipif mysql # not compatible
query III rowsort label-6010
SELECT + 6, COUNT ( * ) * 56 + - 11 AS col0, - COUNT ( * ) AS col2
----
6
45
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6011
SELECT ALL + SUM( ALL - 15 ) * - 20 * + + 91 * - COUNT( * ) + + COUNT( * ) * - 69 * - - 99 + - - 66 AS col1
----
-34065

skipif mysql # not compatible
query I rowsort label-6011
SELECT ALL + SUM ( ALL - 15 ) * - 20 * + + 91 * - COUNT ( * ) + + COUNT ( * ) * - 69 * - - 99 + - - 66 AS col1
----
-34065

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6012
SELECT - 9 + - SUM( ALL + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6012
SELECT - 9 + - SUM ( ALL + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6013
SELECT + + CAST( 64 AS SIGNED ) - + - COUNT( * ) AS col0
----
65

skipif mysql # not compatible
query I rowsort label-6013
SELECT + + CAST ( 64 AS INTEGER ) - + - COUNT ( * ) AS col0
----
65

onlyif mysql # DIV for integer division: 
query I rowsort label-6014
SELECT DISTINCT - 64 DIV 55
----
-1

skipif mysql # not compatible
query I rowsort label-6014
SELECT DISTINCT - 64 / 55
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6015
SELECT - - COUNT( * ) + COUNT( * ) DIV 1 * 69 + + COUNT( * )
----
71

skipif mysql # not compatible
query I rowsort label-6015
SELECT - - COUNT ( * ) + COUNT ( * ) / 1 * 69 + + COUNT ( * )
----
71

query I rowsort
SELECT ALL + 95 + - 28 + - 75 + 87
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-6017
SELECT - CASE 71 WHEN + CASE 91 WHEN + 36 THEN - 2 WHEN - + NULLIF ( + 93, + 67 * COALESCE ( COUNT( * ), - + 76 * 85 * 2 * - 90, - 41 ) + - + 65 + - 60 + - + MIN( ALL + - 25 ) * - - 13 * + 52 ) THEN NULL END + + 38 * - NULLIF ( + - CASE + 37 WHEN - ( 94 ) + - COALESCE ( 33, + 40 ) * - 97 THEN + 86 END, 7 ) THEN + 21 / 28 WHEN + COUNT( * ) * 11 THEN + COUNT( * ) WHEN 14 * - 89 THEN NULL WHEN + COUNT( * ) * 7 THEN + 51 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6017
SELECT - CASE 71 WHEN + CASE 91 WHEN + 36 THEN - 2 WHEN - + NULLIF ( + 93, + 67 * COALESCE ( COUNT ( * ), - + 76 * 85 * 2 * - 90, - 41 ) + - + 65 + - 60 + - + MIN ( ALL + - 25 ) * - - 13 * + 52 ) THEN NULL END + + 38 * - NULLIF ( + - CASE + 37 WHEN - ( 94 ) + - COALESCE ( 33, + 40 ) * - 97 THEN + 86 END, 7 ) THEN + 21 / 28 WHEN + COUNT ( * ) * 11 THEN + COUNT ( * ) WHEN 14 * - 89 THEN NULL WHEN + COUNT ( * ) * 7 THEN + 51 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6018
SELECT - + 25 + 33 DIV - 38
----
-25

skipif mysql # not compatible
query I rowsort label-6018
SELECT - + 25 + 33 / - 38
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-6019
SELECT ALL - 14 + - - COUNT( DISTINCT + ( + ( + 83 ) ) ) * - + 3 AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-6019
SELECT ALL - 14 + - - COUNT ( DISTINCT + ( + ( + 83 ) ) ) * - + 3 AS col1
----
-17

query I rowsort
SELECT - 59 * 66
----
-3894

query II rowsort
SELECT ALL - 45 * + 37, 27 * 37 * + - 34 AS col1
----
-1665
-33966

query I rowsort
SELECT ALL 90 + + 2 * + 85 + - - COALESCE ( + - 35, 28 ) AS col2
----
225

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6023
SELECT - 96 + - SUM( CAST( + - 68 AS SIGNED ) )
----
-28

skipif mysql # not compatible
query I rowsort label-6023
SELECT - 96 + - SUM ( CAST ( + - 68 AS INTEGER ) )
----
-28

query I rowsort
SELECT ALL + 27 * + 17
----
459

query I rowsort
SELECT DISTINCT - 72 + + 17
----
-55

query I rowsort
SELECT ALL - 54 - + ( + 51 ) + + + 39 + 21 - 29 AS col2
----
-74

query I rowsort
SELECT + 25 + - 20 AS col1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6028
SELECT - SUM( + 4 ) AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-6028
SELECT - SUM ( + 4 ) AS col0
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6029
SELECT DISTINCT CAST( + 62 AS SIGNED )
----
62

skipif mysql # not compatible
query I rowsort label-6029
SELECT DISTINCT CAST ( + 62 AS INTEGER )
----
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6030
SELECT ALL - 55 - COUNT( * ) DIV + 30
----
-55

skipif mysql # not compatible
query I rowsort label-6030
SELECT ALL - 55 - COUNT ( * ) / + 30
----
-55

query I rowsort
SELECT + 30 * + + ( - + 65 )
----
-1950

onlyif mysql # aggregate syntax: 
query I rowsort label-6032
SELECT 55 * ( - 36 ) + - + COUNT( * ) * 94
----
-2074

skipif mysql # not compatible
query I rowsort label-6032
SELECT 55 * ( - 36 ) + - + COUNT ( * ) * 94
----
-2074

query I rowsort
SELECT DISTINCT 6 * 74 * + 79 AS col1
----
35076

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6034
SELECT + CAST( - 82 AS SIGNED ) AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-6034
SELECT + CAST ( - 82 AS INTEGER ) AS col0
----
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-6035
SELECT 29 DIV NULLIF ( - - 57, 3 ) + 42 * + 27 col1
----
1134

skipif mysql # not compatible
query I rowsort label-6035
SELECT 29 / NULLIF ( - - 57, 3 ) + 42 * + 27 col1
----
1134

onlyif mysql # aggregate syntax: 
query I rowsort label-6036
SELECT ALL COUNT( * ) * - 71 AS col1
----
-71

skipif mysql # not compatible
query I rowsort label-6036
SELECT ALL COUNT ( * ) * - 71 AS col1
----
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-6037
SELECT 2 DIV 39 * + 91 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6037
SELECT 2 / 39 * + 91 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6038
SELECT NULLIF ( - 72, COUNT( * ) + - COUNT( * ) + COUNT( * ) + + 76 * 76 * + COUNT( * ) * ( + ( ( COUNT( * ) ) ) ) * 76 * + AVG ( - 3 ) ) * - + 11 - 72 + - - NULLIF ( + NULLIF ( - + 83, - + 29 + 14 ), - + 39 * - 62 * - COALESCE ( + - COUNT( * ), - 93 ) )
----
637

skipif mysql # not compatible
query I rowsort label-6038
SELECT NULLIF ( - 72, COUNT ( * ) + - COUNT ( * ) + COUNT ( * ) + + 76 * 76 * + COUNT ( * ) * ( + ( ( COUNT ( * ) ) ) ) * 76 * + AVG ( - 3 ) ) * - + 11 - 72 + - - NULLIF ( + NULLIF ( - + 83, - + 29 + 14 ), - + 39 * - 62 * - COALESCE ( + - COUNT ( * ), - 93 ) )
----
637

onlyif mysql # aggregate syntax: 
query I rowsort label-6039
SELECT ALL - SUM( 22 ) AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-6039
SELECT ALL - SUM ( 22 ) AS col0
----
-22

query I rowsort
SELECT ALL 44 + 51
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6041
SELECT CASE - - 58 WHEN - - COUNT( * ) THEN NULL WHEN 7 * + 49 THEN - - COALESCE ( + + CAST( + COUNT( * ) AS SIGNED ), + + 16, - - 54 ) / - CASE - COUNT( ALL + - 7 ) WHEN + 82 + 64 THEN NULL WHEN - + COUNT( DISTINCT - 49 ) THEN NULL ELSE - COUNT( * ) END * + + ( + - 27 ) / - COUNT( * ) + 99 WHEN + 7 THEN + + COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6041
SELECT CASE - - 58 WHEN - - COUNT ( * ) THEN NULL WHEN 7 * + 49 THEN - - COALESCE ( + + CAST ( + COUNT ( * ) AS INTEGER ), + + 16, - - 54 ) / - CASE - COUNT ( ALL + - 7 ) WHEN + 82 + 64 THEN NULL WHEN - + COUNT ( DISTINCT - 49 ) THEN NULL ELSE - COUNT ( * ) END * + + ( + - 27 ) / - COUNT ( * ) + 99 WHEN + 7 THEN + + COUNT ( * ) END AS col2
----
NULL

query I rowsort
SELECT + 1 * + + 33 * 90 + - - 97 AS col1
----
3067

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6043
SELECT ( + CAST( - ( - 2 ) AS SIGNED ) )
----
2

skipif mysql # not compatible
query I rowsort label-6043
SELECT ( + CAST ( - ( - 2 ) AS INTEGER ) )
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6044
SELECT - 41 + + - 89 col1, - 8 + - + 26 + - CAST( NULL AS SIGNED )
----
-130
NULL

skipif mysql # not compatible
query II rowsort label-6044
SELECT - 41 + + - 89 col1, - 8 + - + 26 + - CAST ( NULL AS INTEGER )
----
-130
NULL

query I rowsort
SELECT ALL - 59 + - + 3 AS col0
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-6046
SELECT MIN( ALL + 26 ) + + COUNT( * )
----
27

skipif mysql # not compatible
query I rowsort label-6046
SELECT MIN ( ALL + 26 ) + + COUNT ( * )
----
27

query I rowsort
SELECT DISTINCT - + 33 AS col1
----
-33

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6048
SELECT + CAST( NULL AS DECIMAL ) * + + 52 * 0 * - - 41 / - 52 * + 65 * - + 49 + - 31 * - 11
----
NULL

skipif mysql # not compatible
query I rowsort label-6048
SELECT + CAST ( NULL AS REAL ) * + + 52 * 0 * - - 41 / - 52 * + 65 * - + 49 + - 31 * - 11
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6049
SELECT ALL - - 42 * + ( - + 18 ) + - SUM( + 91 ) AS col2, 1 * + + COUNT( * ) + - + 64 AS col0
----
-847
-63

skipif mysql # not compatible
query II rowsort label-6049
SELECT ALL - - 42 * + ( - + 18 ) + - SUM ( + 91 ) AS col2, 1 * + + COUNT ( * ) + - + 64 AS col0
----
-847
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6050
SELECT CAST( NULL AS SIGNED ) * - COUNT( * ) AS col2, + 41 AS col1
----
NULL
41

skipif mysql # not compatible
query II rowsort label-6050
SELECT CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col2, + 41 AS col1
----
NULL
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6051
SELECT ALL + CAST( NULL AS SIGNED ) + - - AVG ( ALL - + 46 ) + CAST( - MIN( + 78 ) AS SIGNED ) * + 96 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6051
SELECT ALL + CAST ( NULL AS INTEGER ) + - - AVG ( ALL - + 46 ) + CAST ( - MIN ( + 78 ) AS INTEGER ) * + 96 AS col1
----
NULL

query I rowsort
SELECT - COALESCE ( 28, - - ( + + 83 ) * 68 * 52 * 7 )
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-6053
SELECT DISTINCT - ( - + NULLIF ( COUNT( 63 ), - 69 ) ) col2
----
1

skipif mysql # not compatible
query I rowsort label-6053
SELECT DISTINCT - ( - + NULLIF ( COUNT ( 63 ), - 69 ) ) col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6054
SELECT ALL CAST( NULL AS SIGNED ) * + 31 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6054
SELECT ALL CAST ( NULL AS INTEGER ) * + 31 col2
----
NULL

query II rowsort
SELECT - 98 AS col0, 19
----
-98
19

query I rowsort
SELECT ALL - 86 - - + ( - 5 ) + 63 * - 67 AS col2
----
-4312

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6057
SELECT ALL + 96 * - + CAST( NULL AS SIGNED ) * 42
----
NULL

skipif mysql # not compatible
query I rowsort label-6057
SELECT ALL + 96 * - + CAST ( NULL AS INTEGER ) * 42
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-6058
SELECT 17 AS col1, - 45 * - 77 + + - 93 * - COUNT( + + 66 ), - - 13 * 3 + + 99 + 13 + - 93 * - ( - - CAST( NULL AS SIGNED ) ) AS col1
----
17
3558
NULL

skipif mysql # not compatible
query III rowsort label-6058
SELECT 17 AS col1, - 45 * - 77 + + - 93 * - COUNT ( + + 66 ), - - 13 * 3 + + 99 + 13 + - 93 * - ( - - CAST ( NULL AS INTEGER ) ) AS col1
----
17
3558
NULL

query II rowsort
SELECT - 19 col2, - 0
----
-19
0

query I rowsort
SELECT ALL - 23 * + 29
----
-667

query I rowsort
SELECT 2 * + 99 AS col0
----
198

query I rowsort
SELECT DISTINCT 36 - - 33
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-6063
SELECT 83 DIV + + 10
----
8

skipif mysql # not compatible
query I rowsort label-6063
SELECT 83 / + + 10
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6064
SELECT 86 + - 2 * NULLIF ( + CASE + + CAST( NULL AS SIGNED ) WHEN + 33 * + - 75 * + + 23 / - + 40 + 39 + 45 * 49 THEN NULL ELSE 66 END, + 74 + + 89 ) AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-6064
SELECT 86 + - 2 * NULLIF ( + CASE + + CAST ( NULL AS INTEGER ) WHEN + 33 * + - 75 * + + 23 / - + 40 + 39 + 45 * 49 THEN NULL ELSE 66 END, + 74 + + 89 ) AS col1
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-6065
SELECT ALL - COUNT( * ) * - + 36
----
36

skipif mysql # not compatible
query I rowsort label-6065
SELECT ALL - COUNT ( * ) * - + 36
----
36

onlyif mysql # aggregate syntax: 
query II rowsort label-6066
SELECT 92 * + 90 * - 96 AS col1, COUNT( * )
----
-794880
1

skipif mysql # not compatible
query II rowsort label-6066
SELECT 92 * + 90 * - 96 AS col1, COUNT ( * )
----
-794880
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6067
SELECT 28 * + + MAX( + 17 ) AS col0
----
476

skipif mysql # not compatible
query I rowsort label-6067
SELECT 28 * + + MAX ( + 17 ) AS col0
----
476

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6068
SELECT - 85, - AVG ( DISTINCT + 35 ) * CAST( NULL AS SIGNED ) AS col0
----
-85
NULL

skipif mysql # not compatible
query II rowsort label-6068
SELECT - 85, - AVG ( DISTINCT + 35 ) * CAST ( NULL AS INTEGER ) AS col0
----
-85
NULL

query I rowsort
SELECT 2 + + + 89 AS col1
----
91

query I rowsort
SELECT 11 + + 34 + 97 AS col2
----
142

query I rowsort
SELECT 18 * - 49
----
-882

query II rowsort
SELECT ALL - + 50 AS col2, 78 AS col2
----
-50
78

query II rowsort
SELECT 20, + 84 AS col0
----
20
84

onlyif mysql # aggregate syntax: 
query I rowsort label-6074
SELECT ALL COUNT( * ) + - 39 + 92
----
54

skipif mysql # not compatible
query I rowsort label-6074
SELECT ALL COUNT ( * ) + - 39 + 92
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-6075
SELECT DISTINCT - NULLIF ( ( - COUNT( * ) ), + NULLIF ( 60, + 34 * + + 7 ) ) + + - 42 AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-6075
SELECT DISTINCT - NULLIF ( ( - COUNT ( * ) ), + NULLIF ( 60, + 34 * + + 7 ) ) + + - 42 AS col0
----
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-6076
SELECT 10 DIV + 45 + + NULLIF ( - 84, + 74 ) AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-6076
SELECT 10 / + 45 + + NULLIF ( - 84, + 74 ) AS col2
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6077
SELECT CAST( - + 66 AS SIGNED )
----
-66

skipif mysql # not compatible
query I rowsort label-6077
SELECT CAST ( - + 66 AS INTEGER )
----
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-6078
SELECT ALL + NULLIF ( - - NULLIF ( + ( - - 48 ), + COUNT( * ) * 57 ), - 2 ) * 89 AS col2, + 7 + - 72 DIV + + 81 AS col1, 52 AS col2
----
4272
7
52

skipif mysql # not compatible
query III rowsort label-6078
SELECT ALL + NULLIF ( - - NULLIF ( + ( - - 48 ), + COUNT ( * ) * 57 ), - 2 ) * 89 AS col2, + 7 + - 72 / + + 81 AS col1, 52 AS col2
----
4272
7
52

query I rowsort
SELECT + ( + 81 )
----
81

query II rowsort
SELECT 24 - - + 25 - - 35 AS col2, 72
----
84
72

query I rowsort
SELECT + 96 + - - 85 AS col2
----
181

onlyif mysql # aggregate syntax: 
query I rowsort label-6082
SELECT DISTINCT - COUNT( * ) + ( + - 36 )
----
-37

skipif mysql # not compatible
query I rowsort label-6082
SELECT DISTINCT - COUNT ( * ) + ( + - 36 )
----
-37

query I rowsort
SELECT ALL 44 + + 73 + - 18 * - 24 + - - 43 + + + 7 + - + ( - 54 ) * + 63 + - 85 AS col1
----
3916

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6084
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + 84
----
NULL

skipif mysql # not compatible
query I rowsort label-6084
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + 84
----
NULL

query I rowsort
SELECT - 32 * + 27 col2
----
-864

onlyif mysql # aggregate syntax: 
query I rowsort label-6086
SELECT + + MIN( + ( + + 48 ) ) AS col2
----
48

skipif mysql # not compatible
query I rowsort label-6086
SELECT + + MIN ( + ( + + 48 ) ) AS col2
----
48

query I rowsort
SELECT 42 + - 89 + + + 50 + - 64 * - 65 * - - 68 AS col2
----
282883

query II rowsort
SELECT + + 86 AS col2, + 24 * + 59 * 35 AS col0
----
86
49560

query I rowsort
SELECT ( + 88 ) * - 22
----
-1936

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6090
SELECT ( - 71 ) + + - AVG ( ALL - 42 ) + 82 + - CAST( + 68 AS SIGNED ) + 83 - + 74 * 61 / - + CAST( CASE + + ( 92 ) WHEN 75 * - 71 + + 36 + + 7 + + 47 THEN + 87 / - 80 + + 35 * - 98 - 84 END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6090
SELECT ( - 71 ) + + - AVG ( ALL - 42 ) + 82 + - CAST ( + 68 AS INTEGER ) + 83 - + 74 * 61 / - + CAST ( CASE + + ( 92 ) WHEN 75 * - 71 + + 36 + + 7 + + 47 THEN + 87 / - 80 + + 35 * - 98 - 84 END AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6091
SELECT AVG ( ( - CAST( + COALESCE ( 65, - ( 89 ) * - - NULLIF ( 36, - - 43 ) * + ( + 44 ) + ( + 41 ) * + + ( + 18 ) ) AS DECIMAL ) ) ) * - 92 * + ( - CASE - + COUNT( + - 34 ) WHEN + 75 * + + 71 + 31 + + 21 - - 88 * + NULLIF ( 57, + COUNT( * ) + CAST( NULL AS SIGNED ) ) THEN 12 WHEN 28 THEN NULL WHEN CASE - 74 WHEN CASE COUNT( * ) WHEN 13 THEN CASE + 67 WHEN 81 - 72 THEN NULL ELSE + 31 END / - 51 WHEN + 90 THEN + 8 ELSE NULL END THEN - 36 END THEN + ( - 19 ) ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-6091
SELECT AVG ( ( - CAST ( + COALESCE ( 65, - ( 89 ) * - - NULLIF ( 36, - - 43 ) * + ( + 44 ) + ( + 41 ) * + + ( + 18 ) ) AS REAL ) ) ) * - 92 * + ( - CASE - + COUNT ( + - 34 ) WHEN + 75 * + + 71 + 31 + + 21 - - 88 * + NULLIF ( 57, + COUNT ( * ) + CAST ( NULL AS INTEGER ) ) THEN 12 WHEN 28 THEN NULL WHEN CASE - 74 WHEN CASE COUNT ( * ) WHEN 13 THEN CASE + 67 WHEN 81 - 72 THEN NULL ELSE + 31 END / - 51 WHEN + 90 THEN + 8 ELSE NULL END THEN - 36 END THEN + ( - 19 ) ELSE NULL END )
----
NULL

query I rowsort
SELECT 12 - 7
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6093
SELECT 28 * COUNT( * ) + 57 * + 4 AS col2, CAST( NULL AS SIGNED )
----
256
NULL

skipif mysql # not compatible
query II rowsort label-6093
SELECT 28 * COUNT ( * ) + 57 * + 4 AS col2, CAST ( NULL AS INTEGER )
----
256
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6094
SELECT ALL - 55 - + - COUNT( - 3 ) AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-6094
SELECT ALL - 55 - + - COUNT ( - 3 ) AS col2
----
-54

query I rowsort
SELECT ( - 95 ) + ( + 97 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6096
SELECT ALL SUM( - 68 ) AS col1
----
-68

skipif mysql # not compatible
query I rowsort label-6096
SELECT ALL SUM ( - 68 ) AS col1
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-6097
SELECT DISTINCT COUNT( * ) * + COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6097
SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6098
SELECT 21 + + - 83 - + NULLIF ( + COUNT( * ), - 72 * + 31 ) * 1
----
-63

skipif mysql # not compatible
query I rowsort label-6098
SELECT 21 + + - 83 - + NULLIF ( + COUNT ( * ), - 72 * + 31 ) * 1
----
-63

query I rowsort
SELECT - 77 * 91 AS col0
----
-7007

query I rowsort
SELECT - 35 + + 43 * - 45 AS col1
----
-1970

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6101
SELECT ALL + 65 + + 34 DIV + NULLIF ( - - 6, + 56 + + 17 + + ( NULLIF ( - 22, - 45 * - COALESCE ( + 94, + 60 * + - 68 + - 69 + 15, - CAST( NULL AS SIGNED ) * 33 + + 41 + + 56 * 71 ) ) ) + COUNT( * ) DIV 11 ) AS col1
----
70

skipif mysql # not compatible
query I rowsort label-6101
SELECT ALL + 65 + + 34 / + NULLIF ( - - 6, + 56 + + 17 + + ( NULLIF ( - 22, - 45 * - COALESCE ( + 94, + 60 * + - 68 + - 69 + 15, - CAST ( NULL AS INTEGER ) * 33 + + 41 + + 56 * 71 ) ) ) + COUNT ( * ) / 11 ) AS col1
----
70

query I rowsort
SELECT - 23 * - 99 AS col1
----
2277

onlyif mysql # DIV for integer division: 
query I rowsort label-6103
SELECT - 41 DIV + 46 * - - 10 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6103
SELECT - 41 / + 46 * - - 10 AS col0
----
0

query I rowsort
SELECT ALL - 20 + - + 9
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-6105
SELECT ALL + 20 + - 38 + + COUNT( * ) col1
----
-17

skipif mysql # not compatible
query I rowsort label-6105
SELECT ALL + 20 + - 38 + + COUNT ( * ) col1
----
-17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6106
SELECT DISTINCT - + 30 * - ( + ( 89 ) ) + - 34 + + COUNT( * ) + - + COUNT( * ) + 27 DIV + 75
----
2636

skipif mysql # not compatible
query I rowsort label-6106
SELECT DISTINCT - + 30 * - ( + ( 89 ) ) + - 34 + + COUNT ( * ) + - + COUNT ( * ) + 27 / + 75
----
2636

query I rowsort
SELECT - - 23 * ( - 45 )
----
-1035

query I rowsort
SELECT - - 65 * - 93 * - 41
----
247845

onlyif mysql # aggregate syntax: 
query I rowsort label-6109
SELECT ALL + + CASE 8 WHEN - 1 * + 23 THEN - SUM( ALL + 18 ) WHEN + + 11 * - 16 * + 13 THEN + - 85 * 75 + MIN( DISTINCT + 73 ) END * - 72 + 59 * - 65 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6109
SELECT ALL + + CASE 8 WHEN - 1 * + 23 THEN - SUM ( ALL + 18 ) WHEN + + 11 * - 16 * + 13 THEN + - 85 * 75 + MIN ( DISTINCT + 73 ) END * - 72 + 59 * - 65 AS col1
----
NULL

query I rowsort
SELECT + + ( + + 27 )
----
27

query II rowsort
SELECT - 76 + - 69 AS col2, - 72 AS col2
----
-145
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-6112
SELECT DISTINCT + SUM( ALL - - COALESCE ( 82, + 82 * + - ( 7 ) * + + 51, + - 50 ) )
----
82

skipif mysql # not compatible
query I rowsort label-6112
SELECT DISTINCT + SUM ( ALL - - COALESCE ( 82, + 82 * + - ( 7 ) * + + 51, + - 50 ) )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-6113
SELECT ALL 88 * - 32 - - 28 * - + 55 * + COUNT( * ) * + 89 + ( - + ( - 27 ) )
----
-139849

skipif mysql # not compatible
query I rowsort label-6113
SELECT ALL 88 * - 32 - - 28 * - + 55 * + COUNT ( * ) * + 89 + ( - + ( - 27 ) )
----
-139849

query I rowsort
SELECT 22 / - + 85 * 97 / CASE + 2 WHEN + 47 THEN - 91 / + 77 * - 9 WHEN - + ( - 70 ) THEN + 88 END - - 60 + - 74 + 57 * + 34
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6115
SELECT DISTINCT + 88 * - - 97 - 82 - - 17 - + COUNT( * ) + + + 49 - 14 + - - COUNT( * ) * - 82 * - 95 * - COALESCE ( + 48, + 93 + 93, - 68 + CASE 13 WHEN COUNT( * ) THEN - 62 + MAX( DISTINCT 72 ) * - + 79 + + CAST( 53 AS SIGNED ) * - 7 WHEN - 92 THEN - 60 * + 98 WHEN - - CAST( + 79 AS DECIMAL ) THEN NULL END ) * + 6 AS col1
----
-2235015

skipif mysql # not compatible
query I rowsort label-6115
SELECT DISTINCT + 88 * - - 97 - 82 - - 17 - + COUNT ( * ) + + + 49 - 14 + - - COUNT ( * ) * - 82 * - 95 * - COALESCE ( + 48, + 93 + 93, - 68 + CASE 13 WHEN COUNT ( * ) THEN - 62 + MAX ( DISTINCT 72 ) * - + 79 + + CAST ( 53 AS INTEGER ) * - 7 WHEN - 92 THEN - 60 * + 98 WHEN - - CAST ( + 79 AS REAL ) THEN NULL END ) * + 6 AS col1
----
-2235015

query I rowsort
SELECT + + ( 69 )
----
69

query I rowsort
SELECT + + 47 + + + NULLIF ( - + ( - 23 ), 34 )
----
70

query I rowsort
SELECT ALL + + 13 AS col0
----
13

query I rowsort
SELECT - + 3 * 42 AS col2
----
-126

query I rowsort
SELECT + 26 * + 83
----
2158

query I rowsort
SELECT - 45 * - 52 * 1 + + 7 col0
----
2347

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6122
SELECT ALL + NULLIF ( NULLIF ( CAST( + - 98 AS SIGNED ), + COUNT( * ) ), - 53 * + CASE + - 78 WHEN + COUNT( * ) THEN ( - - 5 ) WHEN + 42 + 67 THEN + COUNT( * ) * - - 38 - 7 ELSE - + 95 + + - COALESCE ( - + COUNT( - - 55 ), - 30 * + + COUNT( * ) - - NULLIF ( - - 14, + 9 / + 65 * + - COUNT( * ) ) ) END * + COUNT( + 90 ) * - AVG ( 64 ) )
----
-98

skipif mysql # not compatible
query I rowsort label-6122
SELECT ALL + NULLIF ( NULLIF ( CAST ( + - 98 AS INTEGER ), + COUNT ( * ) ), - 53 * + CASE + - 78 WHEN + COUNT ( * ) THEN ( - - 5 ) WHEN + 42 + 67 THEN + COUNT ( * ) * - - 38 - 7 ELSE - + 95 + + - COALESCE ( - + COUNT ( - - 55 ), - 30 * + + COUNT ( * ) - - NULLIF ( - - 14, + 9 / + 65 * + - COUNT ( * ) ) ) END * + COUNT ( + 90 ) * - AVG ( 64 ) )
----
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6123
SELECT MIN( ALL + CAST( - 22 AS SIGNED ) )
----
-22

skipif mysql # not compatible
query I rowsort label-6123
SELECT MIN ( ALL + CAST ( - 22 AS INTEGER ) )
----
-22

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6124
SELECT ALL 54 AS col1, 9 + + COUNT( * ) + 68 * + - 49 - - COALESCE ( + - COUNT( * ), - - 44 DIV - 14 ) col1
----
54
-3323

skipif mysql # not compatible
query II rowsort label-6124
SELECT ALL 54 AS col1, 9 + + COUNT ( * ) + 68 * + - 49 - - COALESCE ( + - COUNT ( * ), - - 44 / - 14 ) col1
----
54
-3323

query I rowsort
SELECT + 90 * 77
----
6930

query II rowsort
SELECT - NULLIF ( 41, 66 ), + 61 AS col0
----
-41
61

query I rowsort
SELECT - ( - 89 )
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-6128
SELECT + 54 * - COUNT( 57 )
----
-54

skipif mysql # not compatible
query I rowsort label-6128
SELECT + 54 * - COUNT ( 57 )
----
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-6129
SELECT DISTINCT 83 DIV - + 31
----
-2

skipif mysql # not compatible
query I rowsort label-6129
SELECT DISTINCT 83 / - + 31
----
-2

query I rowsort
SELECT ALL 18 + + 47
----
65

query II rowsort
SELECT DISTINCT 81 AS col0, + 29
----
81
29

query I rowsort
SELECT ALL + 61 + + 58
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-6133
SELECT ALL COALESCE ( - + COUNT( * ), + ( + 82 ) ) * + + 2 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-6133
SELECT ALL COALESCE ( - + COUNT ( * ), + ( + 82 ) ) * + + 2 AS col1
----
-2

query I rowsort
SELECT ALL 82 + + 53 AS col2
----
135

query I rowsort
SELECT DISTINCT CASE + 12 WHEN - 28 THEN - - 10 WHEN - 82 THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6136
SELECT ALL NULLIF ( COUNT( * ), + - 82 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6136
SELECT ALL NULLIF ( COUNT ( * ), + - 82 ) AS col1
----
1

query I rowsort
SELECT ALL + 34 + - 7
----
27

query I rowsort
SELECT ALL + 63 * 4 col1
----
252

query II rowsort
SELECT - + 28 col0, + 25
----
-28
25

onlyif mysql # DIV for integer division: 
query I rowsort label-6140
SELECT - - 19 DIV + ( - 71 ) * 60
----
0

skipif mysql # not compatible
query I rowsort label-6140
SELECT - - 19 / + ( - 71 ) * 60
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6141
SELECT + CASE 26 WHEN - COUNT( * ) THEN - + 4 WHEN 5 + + SUM( + 9 ) THEN + 92 WHEN + + 38 - + + 32 THEN NULL WHEN - 53 + + 82 THEN 83 * + - 11 END + - 25 col1, 50
----
NULL
50

skipif mysql # not compatible
query II rowsort label-6141
SELECT + CASE 26 WHEN - COUNT ( * ) THEN - + 4 WHEN 5 + + SUM ( + 9 ) THEN + 92 WHEN + + 38 - + + 32 THEN NULL WHEN - 53 + + 82 THEN 83 * + - 11 END + - 25 col1, 50
----
NULL
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6142
SELECT ALL + 6 / + 83 * - 85 + - COALESCE ( + - AVG ( + 40 ), ( + 7 ) * - - ( - - ( + + 34 ) ) + - 21 + + + 15, + - 26 ) + - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6142
SELECT ALL + 6 / + 83 * - 85 + - COALESCE ( + - AVG ( + 40 ), ( + 7 ) * - - ( - - ( + + 34 ) ) + - 21 + + + 15, + - 26 ) + - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6143
SELECT ALL - + 36 * + ( 14 ) + 31 * - COUNT( * ) AS col0
----
-535

skipif mysql # not compatible
query I rowsort label-6143
SELECT ALL - + 36 * + ( 14 ) + 31 * - COUNT ( * ) AS col0
----
-535

onlyif mysql # aggregate syntax: 
query I rowsort label-6144
SELECT - - 42 * 69 + - 55 - - COUNT( 21 ) * + 45
----
2888

skipif mysql # not compatible
query I rowsort label-6144
SELECT - - 42 * 69 + - 55 - - COUNT ( 21 ) * + 45
----
2888

onlyif mysql # DIV for integer division: 
query I rowsort label-6145
SELECT ALL - 36 DIV 25
----
-1

skipif mysql # not compatible
query I rowsort label-6145
SELECT ALL - 36 / 25
----
-1

query I rowsort
SELECT + + NULLIF ( + - 33, - 52 * + - 48 + COALESCE ( - 20, 17 - - 94 - + 94 / + - 63 ) )
----
-33

query I rowsort
SELECT ALL + - 23 * - 22 AS col1
----
506

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6148
SELECT 92 DIV + MAX( + 19 ) + + 32 AS col0
----
36

skipif mysql # not compatible
query I rowsort label-6148
SELECT 92 / + MAX ( + 19 ) + + 32 AS col0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-6149
SELECT ALL - MIN( ALL + 37 ) * - 7 - + - 86 AS col1
----
345

skipif mysql # not compatible
query I rowsort label-6149
SELECT ALL - MIN ( ALL + 37 ) * - 7 - + - 86 AS col1
----
345

onlyif mysql # aggregate syntax: 
query I rowsort label-6150
SELECT + 53 * - COUNT( * )
----
-53

skipif mysql # not compatible
query I rowsort label-6150
SELECT + 53 * - COUNT ( * )
----
-53

query I rowsort
SELECT - + 18 + + - 99
----
-117

query I rowsort
SELECT DISTINCT - + 94 * + 30
----
-2820

onlyif mysql # aggregate syntax: 
query I rowsort label-6153
SELECT ALL + - 31 * MAX( - + 27 ) * + 4
----
3348

skipif mysql # not compatible
query I rowsort label-6153
SELECT ALL + - 31 * MAX ( - + 27 ) * + 4
----
3348

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6154
SELECT ALL + + SUM( + - CAST( NULL AS SIGNED ) ) * - 39
----
NULL

skipif mysql # not compatible
query I rowsort label-6154
SELECT ALL + + SUM ( + - CAST ( NULL AS INTEGER ) ) * - 39
----
NULL

query II rowsort
SELECT DISTINCT + 35 AS col2, 3 * ( - + 93 ) col0
----
35
-279

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6156
SELECT ALL 78 * - - CAST( NULL AS SIGNED ) * - 46 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6156
SELECT ALL 78 * - - CAST ( NULL AS INTEGER ) * - 46 AS col1
----
NULL

query I rowsort
SELECT - 84 - + 92 AS col2
----
-176

onlyif mysql # aggregate syntax: 
query I rowsort label-6158
SELECT 92 + - COUNT( * ) - - 6 + - - 73 * + 24 + + 20 * + 34 * - - 64 AS col1
----
45369

skipif mysql # not compatible
query I rowsort label-6158
SELECT 92 + - COUNT ( * ) - - 6 + - - 73 * + 24 + + 20 * + 34 * - - 64 AS col1
----
45369

onlyif mysql # DIV for integer division: 
query I rowsort label-6159
SELECT 96 DIV - 81 col2
----
-1

skipif mysql # not compatible
query I rowsort label-6159
SELECT 96 / - 81 col2
----
-1

query I rowsort
SELECT ALL - 65 + + 89 AS col2
----
24

query I rowsort
SELECT 2 + + 46 AS col0
----
48

onlyif mysql # aggregate syntax: 
query II rowsort label-6162
SELECT 71 AS col1, 78 + + MIN( COALESCE ( - - 16, - 29 + + 19 ) )
----
71
94

skipif mysql # not compatible
query II rowsort label-6162
SELECT 71 AS col1, 78 + + MIN ( COALESCE ( - - 16, - 29 + + 19 ) )
----
71
94

onlyif mysql # aggregate syntax: 
query I rowsort label-6163
SELECT DISTINCT 77 + + 29 + - - 98 + - 1 + + COUNT( * )
----
204

skipif mysql # not compatible
query I rowsort label-6163
SELECT DISTINCT 77 + + 29 + - - 98 + - 1 + + COUNT ( * )
----
204

query II rowsort
SELECT ALL 75 AS col2, + 51
----
75
51

query I rowsort
SELECT DISTINCT + 20 + + 69 AS col2
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-6166
SELECT DISTINCT COUNT( * ) + + 49 + + - 12
----
38

skipif mysql # not compatible
query I rowsort label-6166
SELECT DISTINCT COUNT ( * ) + + 49 + + - 12
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-6167
SELECT DISTINCT - COUNT( * ) + - 26 AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-6167
SELECT DISTINCT - COUNT ( * ) + - 26 AS col0
----
-27

query II rowsort
SELECT ALL 64 + - 9 col2, 2 * - - 8 + + 26
----
55
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6169
SELECT 46 + + 16 - + - 65 + 78 * - MIN( - + 89 ) + + COALESCE ( - 72, + - NULLIF ( + - CAST( - 0 AS SIGNED ), - 26 + 24 ) ) + - - 80 + - 16 DIV 43 AS col2
----
7077

skipif mysql # not compatible
query I rowsort label-6169
SELECT 46 + + 16 - + - 65 + 78 * - MIN ( - + 89 ) + + COALESCE ( - 72, + - NULLIF ( + - CAST ( - 0 AS INTEGER ), - 26 + 24 ) ) + - - 80 + - 16 / 43 AS col2
----
7077

onlyif mysql # aggregate syntax: 
query II rowsort label-6170
SELECT - + COALESCE ( + - 68, MAX( ALL + 18 ), MIN( ALL + - 5 ) ) AS col0, 72
----
68
72

skipif mysql # not compatible
query II rowsort label-6170
SELECT - + COALESCE ( + - 68, MAX ( ALL + 18 ), MIN ( ALL + - 5 ) ) AS col0, 72
----
68
72

query I rowsort
SELECT ALL 65 + 25 * + 93 - + - ( + 55 )
----
2445

onlyif mysql # DIV for integer division: 
query I rowsort label-6172
SELECT + 35 DIV 88
----
0

skipif mysql # not compatible
query I rowsort label-6172
SELECT + 35 / 88
----
0

query I rowsort
SELECT 89 * 36 * + - 9 AS col2
----
-28836

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6174
SELECT ALL + ( + 24 ) * - 90 * + - COUNT( * ) / - 68 + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6174
SELECT ALL + ( + 24 ) * - 90 * + - COUNT ( * ) / - 68 + + + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT DISTINCT 20 AS col2, 18 * - ( 96 )
----
20
-1728

query I rowsort
SELECT DISTINCT + 18 * + 51
----
918

query I rowsort
SELECT DISTINCT - 49 - - - 24 + + 89 * - + 67 * - 9
----
53594

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6178
SELECT - 94 + COUNT( * ) + - 4 * + 18 AS col2, - NULLIF ( - CAST( NULL AS SIGNED ), + 50 )
----
-165
NULL

skipif mysql # not compatible
query II rowsort label-6178
SELECT - 94 + COUNT ( * ) + - 4 * + 18 AS col2, - NULLIF ( - CAST ( NULL AS INTEGER ), + 50 )
----
-165
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6179
SELECT DISTINCT + 58 * SUM( 59 ) * 80 AS col0
----
273760

skipif mysql # not compatible
query I rowsort label-6179
SELECT DISTINCT + 58 * SUM ( 59 ) * 80 AS col0
----
273760

query I rowsort
SELECT 38 * 41
----
1558

onlyif mysql # aggregate syntax: 
query I rowsort label-6181
SELECT COUNT( * ) - + 5 * 84 * - - 64
----
-26879

skipif mysql # not compatible
query I rowsort label-6181
SELECT COUNT ( * ) - + 5 * 84 * - - 64
----
-26879

onlyif mysql # DIV for integer division: 
query I rowsort label-6182
SELECT ALL - + 16 DIV - 33 * + + 55
----
0

skipif mysql # not compatible
query I rowsort label-6182
SELECT ALL - + 16 / - 33 * + + 55
----
0

query II rowsort
SELECT DISTINCT - 50 * - 96 AS col1, + 73
----
4800
73

onlyif mysql # aggregate syntax: 
query II rowsort label-6184
SELECT ALL + 96 + - COUNT( * ), + COALESCE ( 33, + + 43 ) AS col2
----
95
33

skipif mysql # not compatible
query II rowsort label-6184
SELECT ALL + 96 + - COUNT ( * ), + COALESCE ( 33, + + 43 ) AS col2
----
95
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6185
SELECT - 37 * + + 69 + - COALESCE ( + - MAX( 40 ), 89 ) + 26 + - 30 + + + 28 DIV - - 89 AS col1
----
-2517

skipif mysql # not compatible
query I rowsort label-6185
SELECT - 37 * + + 69 + - COALESCE ( + - MAX ( 40 ), 89 ) + 26 + - 30 + + + 28 / - - 89 AS col1
----
-2517

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6186
SELECT 12 + + 43 DIV + + 5 * + COUNT( - 99 ) + 89 AS col1
----
109

skipif mysql # not compatible
query I rowsort label-6186
SELECT 12 + + 43 / + + 5 * + COUNT ( - 99 ) + 89 AS col1
----
109

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6187
SELECT 42 * 90 - 58 - + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6187
SELECT 42 * 90 - 58 - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL + 33 + - - 40
----
73

query I rowsort
SELECT 2 * - 71
----
-142

query I rowsort
SELECT 37 + - + 89 + + - 54
----
-106

onlyif mysql # aggregate syntax: 
query I rowsort label-6191
SELECT DISTINCT MIN( + 38 ) + + 52
----
90

skipif mysql # not compatible
query I rowsort label-6191
SELECT DISTINCT MIN ( + 38 ) + + 52
----
90

query II rowsort
SELECT ALL - ( - + 60 ), ( 48 ) AS col0
----
60
48

onlyif mysql # aggregate syntax: 
query I rowsort label-6193
SELECT ALL - 34 + + COUNT( + 17 )
----
-33

skipif mysql # not compatible
query I rowsort label-6193
SELECT ALL - 34 + + COUNT ( + 17 )
----
-33

query I rowsort
SELECT DISTINCT 86 col2
----
86

query II rowsort
SELECT 27 * + 22 AS col2, + ( - 93 ) AS col0
----
594
-93

query I rowsort
SELECT 62 * + 12 AS col1
----
744

query II rowsort
SELECT 36 - + 98, + 45 AS col2
----
-62
45

query I rowsort
SELECT + 33 - + 80 * + 90 AS col2
----
-7167

onlyif mysql # aggregate syntax: 
query II rowsort label-6199
SELECT ALL 72 * - + SUM( - - 8 ) AS col0, + 36 + + COALESCE ( - MIN( - 58 ), - 41 + + ( - COUNT( * ) ) )
----
-576
94

skipif mysql # not compatible
query II rowsort label-6199
SELECT ALL 72 * - + SUM ( - - 8 ) AS col0, + 36 + + COALESCE ( - MIN ( - 58 ), - 41 + + ( - COUNT ( * ) ) )
----
-576
94

onlyif mysql # aggregate syntax: 
query I rowsort label-6200
SELECT - ( + + 52 ) * + - MAX( ALL + + 90 )
----
4680

skipif mysql # not compatible
query I rowsort label-6200
SELECT - ( + + 52 ) * + - MAX ( ALL + + 90 )
----
4680

query I rowsort
SELECT DISTINCT - - 14 - + + 84 AS col0
----
-70

query I rowsort
SELECT - 83 - 13 * - 67 col2
----
788

query I rowsort
SELECT + ( - ( + 31 ) )
----
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-6204
SELECT ( - + 69 ) DIV - - 64 + - - 40
----
39

skipif mysql # not compatible
query I rowsort label-6204
SELECT ( - + 69 ) / - - 64 + - - 40
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6205
SELECT CAST( NULL AS SIGNED ) / + ( + - 30 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6205
SELECT CAST ( NULL AS INTEGER ) / + ( + - 30 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6206
SELECT CAST( - 43 AS SIGNED ) + + ( 24 )
----
-19

skipif mysql # not compatible
query I rowsort label-6206
SELECT CAST ( - 43 AS INTEGER ) + + ( 24 )
----
-19

query II rowsort
SELECT 32 * - 21 AS col0, - 7
----
-672
-7

query I rowsort
SELECT DISTINCT - 2 * 28
----
-56

query I rowsort
SELECT + 43 + - ( + NULLIF ( - 22, + - 4 ) ) AS col0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-6210
SELECT MIN( DISTINCT + 56 )
----
56

skipif mysql # not compatible
query I rowsort label-6210
SELECT MIN ( DISTINCT + 56 )
----
56

query I rowsort
SELECT + 60 * + 71 AS col0
----
4260

onlyif mysql # aggregate syntax: 
query I rowsort label-6212
SELECT DISTINCT 57 * + COUNT( * ) + - - 98 + - + COALESCE ( - 92, - + 82 ) AS col2
----
247

skipif mysql # not compatible
query I rowsort label-6212
SELECT DISTINCT 57 * + COUNT ( * ) + - - 98 + - + COALESCE ( - 92, - + 82 ) AS col2
----
247

onlyif mysql # DIV for integer division: 
query I rowsort label-6213
SELECT ALL 26 * - 7 DIV - + 1 + + 47
----
229

skipif mysql # not compatible
query I rowsort label-6213
SELECT ALL 26 * - 7 / - + 1 + + 47
----
229

onlyif mysql # aggregate syntax: 
query I rowsort label-6214
SELECT ALL - 91 * 67 * + 33 + 7 * - - 99 + + 65 + + ( + COUNT( * ) ) * - + 48 * - 19 AS col0
----
-199531

skipif mysql # not compatible
query I rowsort label-6214
SELECT ALL - 91 * 67 * + 33 + 7 * - - 99 + + 65 + + ( + COUNT ( * ) ) * - + 48 * - 19 AS col0
----
-199531

onlyif mysql # aggregate syntax: 
query I rowsort label-6215
SELECT DISTINCT + 8 * 60 + + 20 * 93 - + + COUNT( * ) * - 5
----
2345

skipif mysql # not compatible
query I rowsort label-6215
SELECT DISTINCT + 8 * 60 + + 20 * 93 - + + COUNT ( * ) * - 5
----
2345

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6216
SELECT DISTINCT NULLIF ( + 50, - COUNT( * ) + - ( + + MIN( 85 ) ) ) DIV - 82 + 19 col1
----
19

skipif mysql # not compatible
query I rowsort label-6216
SELECT DISTINCT NULLIF ( + 50, - COUNT ( * ) + - ( + + MIN ( 85 ) ) ) / - 82 + 19 col1
----
19

query I rowsort
SELECT 39 * - + 15 + + 84
----
-501

query I rowsort
SELECT - 71 - 58
----
-129

query I rowsort
SELECT + NULLIF ( - 84, + 49 + - + 45 ) AS col0
----
-84

onlyif mysql # aggregate syntax: 
query II rowsort label-6220
SELECT + 58 + - COUNT( * ) + + COUNT( * ) * 84, - 40 AS col1
----
141
-40

skipif mysql # not compatible
query II rowsort label-6220
SELECT + 58 + - COUNT ( * ) + + COUNT ( * ) * 84, - 40 AS col1
----
141
-40

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6221
SELECT - CASE 69 WHEN + - 36 * 66 * + 12 THEN + MAX( - CAST( NULL AS DECIMAL ) ) * + 14 + 49 WHEN - 91 THEN NULL WHEN + 92 / - 12 * - + ( + - 75 ) / ( - 67 ) + - COUNT( * ) + - + 86 * - 91 THEN + 50 / 18 / - - 45 ELSE NULL END * + + 87
----
NULL

skipif mysql # not compatible
query I rowsort label-6221
SELECT - CASE 69 WHEN + - 36 * 66 * + 12 THEN + MAX ( - CAST ( NULL AS REAL ) ) * + 14 + 49 WHEN - 91 THEN NULL WHEN + 92 / - 12 * - + ( + - 75 ) / ( - 67 ) + - COUNT ( * ) + - + 86 * - 91 THEN + 50 / 18 / - - 45 ELSE NULL END * + + 87
----
NULL

query II rowsort
SELECT + 35 + - ( + - 28 ) AS col0, - 94 + - 77 AS col2
----
63
-171

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6223
SELECT - 40 * - 22 DIV - COUNT( * ) AS col1
----
-880

skipif mysql # not compatible
query I rowsort label-6223
SELECT - 40 * - 22 / - COUNT ( * ) AS col1
----
-880

query II rowsort
SELECT ALL - 30 * 23 * + 31, 28 col2
----
-21390
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6225
SELECT ALL CAST( NULL AS SIGNED ) - + CAST( NULL AS SIGNED ) / 32 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6225
SELECT ALL CAST ( NULL AS INTEGER ) - + CAST ( NULL AS INTEGER ) / 32 col0
----
NULL

query I rowsort
SELECT - 31 + - - ( + 70 ) + - 84
----
-45

query I rowsort
SELECT ALL 0 * - 63
----
0

query I rowsort
SELECT DISTINCT + ( - - 64 ) AS col2
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-6229
SELECT - - 55 + + COUNT( * )
----
56

skipif mysql # not compatible
query I rowsort label-6229
SELECT - - 55 + + COUNT ( * )
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-6230
SELECT - + COUNT( ALL + + 18 )
----
-1

skipif mysql # not compatible
query I rowsort label-6230
SELECT - + COUNT ( ALL + + 18 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6231
SELECT - + 69 * - 61 - + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6231
SELECT - + 69 * - 61 - + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6232
SELECT - 76 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6232
SELECT - 76 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6233
SELECT - + 75 AS col0, 44 + 26 + 77 DIV + 24 + + 63 col2
----
-75
136

skipif mysql # not compatible
query II rowsort label-6233
SELECT - + 75 AS col0, 44 + 26 + 77 / + 24 + + 63 col2
----
-75
136

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6234
SELECT - + CAST( NULL AS SIGNED ) + - COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6234
SELECT - + CAST ( NULL AS INTEGER ) + - COUNT ( * ) col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6235
SELECT - 94 AS col1, + CAST( NULL AS SIGNED ) * 81
----
-94
NULL

skipif mysql # not compatible
query II rowsort label-6235
SELECT - 94 AS col1, + CAST ( NULL AS INTEGER ) * 81
----
-94
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6236
SELECT ALL + NULLIF ( + 3, 42 * + CAST( NULL AS SIGNED ) ) * 51
----
153

skipif mysql # not compatible
query I rowsort label-6236
SELECT ALL + NULLIF ( + 3, 42 * + CAST ( NULL AS INTEGER ) ) * 51
----
153

query I rowsort
SELECT - 42 + + - 45
----
-87

query I rowsort
SELECT DISTINCT + 97 + + 2
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-6239
SELECT ALL 56 AS col1, COUNT( + 53 ) * + 81 * - COUNT( * ) * 23 col2, + CAST( CAST( - 84 AS SIGNED ) AS SIGNED ) + + COALESCE ( + 8, - 50 + - - NULLIF ( - COUNT( * ), - ( - 79 ) + - 93 ), - + 12 + - + 68 - + + AVG ( + 96 ) DIV - 30 ) * - COUNT( * ) AS col0
----
56
-1863
-92

skipif mysql # not compatible
query III rowsort label-6239
SELECT ALL 56 AS col1, COUNT ( + 53 ) * + 81 * - COUNT ( * ) * 23 col2, + CAST ( CAST ( - 84 AS INTEGER ) AS INTEGER ) + + COALESCE ( + 8, - 50 + - - NULLIF ( - COUNT ( * ), - ( - 79 ) + - 93 ), - + 12 + - + 68 - + + AVG ( + 96 ) / - 30 ) * - COUNT ( * ) AS col0
----
56
-1863
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-6240
SELECT - MIN( ALL - + 63 ) AS col0
----
63

skipif mysql # not compatible
query I rowsort label-6240
SELECT - MIN ( ALL - + 63 ) AS col0
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6241
SELECT ALL + 64 + - 9 * - SUM( ALL - 38 ), CAST( - - ( - + NULLIF ( + 2, + 70 + CASE COALESCE ( - 84, 74 * 59 ) WHEN 15 + - 16 THEN + 60 ELSE - 66 END * + ( + ( 40 ) ) - + 54 ) ) AS SIGNED ) AS col2
----
-278
-2

skipif mysql # not compatible
query II rowsort label-6241
SELECT ALL + 64 + - 9 * - SUM ( ALL - 38 ), CAST ( - - ( - + NULLIF ( + 2, + 70 + CASE COALESCE ( - 84, 74 * 59 ) WHEN 15 + - 16 THEN + 60 ELSE - 66 END * + ( + ( 40 ) ) - + 54 ) ) AS INTEGER ) AS col2
----
-278
-2

query I rowsort
SELECT ALL 13 + + 59 * + 5
----
308

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6243
SELECT 60 AS col2, + 14 * 68 - NULLIF ( - SUM( - 36 ), 67 * - - 29 ) + - 6 DIV + 1 AS col1
----
60
910

skipif mysql # not compatible
query II rowsort label-6243
SELECT 60 AS col2, + 14 * 68 - NULLIF ( - SUM ( - 36 ), 67 * - - 29 ) + - 6 / + 1 AS col1
----
60
910

query I rowsort
SELECT ALL - ( - - 76 )
----
-76

query I rowsort
SELECT + - CASE + + 57 WHEN + 82 THEN NULL WHEN + - 28 * - - 54 THEN 37 + + 49 + + + 24 * - 5 ELSE - + 80 END col0
----
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6246
SELECT - 40 * - 79 + + 9 DIV 11 + - + 26 - - 66 + ( + - 5 ) + 34 DIV - 20 + + + COUNT( - 16 ) AS col0
----
3195

skipif mysql # not compatible
query I rowsort label-6246
SELECT - 40 * - 79 + + 9 / 11 + - + 26 - - 66 + ( + - 5 ) + 34 / - 20 + + + COUNT ( - 16 ) AS col0
----
3195

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6247
SELECT ALL + 74 DIV + 6 + - + 81 - 87 + + 46 DIV + - COUNT( * )
----
-202

skipif mysql # not compatible
query I rowsort label-6247
SELECT ALL + 74 / + 6 + - + 81 - 87 + + 46 / + - COUNT ( * )
----
-202

query I rowsort
SELECT + NULLIF ( + 31, - + 52 ) AS col1
----
31

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6249
SELECT - 49 + - 80 + + + 30 + - + 51, COUNT( * ) / - - ( - MIN( - 36 ) ) * + 69 + CAST( NULL AS DECIMAL ) AS col1
----
-150
NULL

skipif mysql # not compatible
query II rowsort label-6249
SELECT - 49 + - 80 + + + 30 + - + 51, COUNT ( * ) / - - ( - MIN ( - 36 ) ) * + 69 + CAST ( NULL AS REAL ) AS col1
----
-150
NULL

query I rowsort
SELECT 79 * - COALESCE ( - - 13, + 5 ) - - 20 AS col0
----
-1007

onlyif mysql # aggregate syntax: 
query II rowsort label-6251
SELECT + 13 * COALESCE ( + 38, - 90 ), 75 * + 86 * - COUNT( * ) AS col1
----
494
-6450

skipif mysql # not compatible
query II rowsort label-6251
SELECT + 13 * COALESCE ( + 38, - 90 ), 75 * + 86 * - COUNT ( * ) AS col1
----
494
-6450

onlyif mysql # DIV for integer division: 
query II rowsort label-6252
SELECT ALL 19 DIV 29, - 3 AS col2
----
0
-3

skipif mysql # not compatible
query II rowsort label-6252
SELECT ALL 19 / 29, - 3 AS col2
----
0
-3

query I rowsort
SELECT - 25 + - 59
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6254
SELECT ALL + CASE WHEN + 15 BETWEEN + - ( - 75 ) AND NULL THEN ( - 21 ) ELSE - CAST( NULL AS SIGNED ) + + - 4 * + COUNT( 90 ) - - COALESCE ( + - COUNT( * ), + - 36 + + 28 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6254
SELECT ALL + CASE WHEN + 15 BETWEEN + - ( - 75 ) AND NULL THEN ( - 21 ) ELSE - CAST ( NULL AS INTEGER ) + + - 4 * + COUNT ( 90 ) - - COALESCE ( + - COUNT ( * ), + - 36 + + 28 ) END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6255
SELECT + CASE + 89 WHEN + + 39 * COUNT( * ) + 86 + - 39 / - + COALESCE ( + - 36, + ( - 9 ) * + 75 ) * - COUNT( * ) * + 96 + + 44 - - 21 * 64 * MAX( + 45 ) THEN + + 73 WHEN - 35 THEN NULL WHEN + CAST( NULL AS DECIMAL ) - + 13 - + - COUNT( + 19 ) THEN COUNT( * ) ELSE NULLIF ( - 11, COUNT( ALL COALESCE ( + 40, - 63 * - 71 ) ) * - + 37 + + - 1 - + 88 * - CASE - CAST( 50 AS SIGNED ) * CAST( 22 AS SIGNED ) WHEN 56 THEN NULL WHEN - 18 THEN NULL ELSE + 45 END ) END AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-6255
SELECT + CASE + 89 WHEN + + 39 * COUNT ( * ) + 86 + - 39 / - + COALESCE ( + - 36, + ( - 9 ) * + 75 ) * - COUNT ( * ) * + 96 + + 44 - - 21 * 64 * MAX ( + 45 ) THEN + + 73 WHEN - 35 THEN NULL WHEN + CAST ( NULL AS REAL ) - + 13 - + - COUNT ( + 19 ) THEN COUNT ( * ) ELSE NULLIF ( - 11, COUNT ( ALL COALESCE ( + 40, - 63 * - 71 ) ) * - + 37 + + - 1 - + 88 * - CASE - CAST ( 50 AS INTEGER ) * CAST ( 22 AS INTEGER ) WHEN 56 THEN NULL WHEN - 18 THEN NULL ELSE + 45 END ) END AS col1
----
-11

query I rowsort
SELECT ALL - 58 * - 13 + 95 AS col1
----
849

query I rowsort
SELECT DISTINCT + ( + 35 ) AS col2
----
35

query I rowsort
SELECT + 53 * + - 58
----
-3074

query I rowsort
SELECT + NULLIF ( - 29, 60 )
----
-29

query I rowsort
SELECT + 47 + + 71 AS col2
----
118

query I rowsort
SELECT + NULLIF ( + + 28, 93 ) AS col2
----
28

query I rowsort
SELECT + 17 * + - 89
----
-1513

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6263
SELECT + CAST( - 72 AS SIGNED ) AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-6263
SELECT + CAST ( - 72 AS INTEGER ) AS col0
----
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-6264
SELECT + - 59 DIV + 60
----
0

skipif mysql # not compatible
query I rowsort label-6264
SELECT + - 59 / + 60
----
0

query I rowsort
SELECT - + ( 93 ) AS col2
----
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6266
SELECT + - 14 * + CAST( NULL AS SIGNED ) + + - 32 + + COUNT( - CAST( 57 AS SIGNED ) ) * + 87 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6266
SELECT + - 14 * + CAST ( NULL AS INTEGER ) + + - 32 + + COUNT ( - CAST ( 57 AS INTEGER ) ) * + 87 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6267
SELECT + 90 DIV + 32 AS col1, 69 * - ( - + 2 ) * CASE + 77 WHEN - 50 * - CAST( - COUNT( * ) AS SIGNED ) THEN - + 44 ELSE NULL END AS col2
----
2
NULL

skipif mysql # not compatible
query II rowsort label-6267
SELECT + 90 / + 32 AS col1, 69 * - ( - + 2 ) * CASE + 77 WHEN - 50 * - CAST ( - COUNT ( * ) AS INTEGER ) THEN - + 44 ELSE NULL END AS col2
----
2
NULL

query I rowsort
SELECT + 4 - + 28
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-6269
SELECT + 18 - COUNT( * )
----
17

skipif mysql # not compatible
query I rowsort label-6269
SELECT + 18 - COUNT ( * )
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-6270
SELECT - COUNT( ALL + 83 )
----
-1

skipif mysql # not compatible
query I rowsort label-6270
SELECT - COUNT ( ALL + 83 )
----
-1

query I rowsort
SELECT + 31 - 21 AS col2
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6272
SELECT ALL - - CAST( NULL AS SIGNED ) + 21 + + - MAX( ALL NULLIF ( - 16, + 26 ) ) + + 16 / - 52 * CASE - - COUNT( * ) WHEN - + COUNT( * ) + + + 54 THEN - + 2 + - COUNT( * ) WHEN + 49 + CASE + 18 WHEN 62 + - ( + CASE + 73 WHEN + 53 * 93 THEN NULL ELSE 35 + - 14 + 97 * - 20 END ) * + 10 + - 20 * - COUNT( * ) THEN - 20 * CAST( NULL AS SIGNED ) END + - - 23 / 78 + + 26 * 31 THEN NULL END * + 80 + 86 * CAST( 47 AS SIGNED ) * - ( 97 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6272
SELECT ALL - - CAST ( NULL AS INTEGER ) + 21 + + - MAX ( ALL NULLIF ( - 16, + 26 ) ) + + 16 / - 52 * CASE - - COUNT ( * ) WHEN - + COUNT ( * ) + + + 54 THEN - + 2 + - COUNT ( * ) WHEN + 49 + CASE + 18 WHEN 62 + - ( + CASE + 73 WHEN + 53 * 93 THEN NULL ELSE 35 + - 14 + 97 * - 20 END ) * + 10 + - 20 * - COUNT ( * ) THEN - 20 * CAST ( NULL AS INTEGER ) END + - - 23 / 78 + + 26 * 31 THEN NULL END * + 80 + 86 * CAST ( 47 AS INTEGER ) * - ( 97 ) AS col0
----
NULL

query I rowsort
SELECT + ( - 31 ) AS col0
----
-31

query I rowsort
SELECT ALL - 18 + 43 AS col1
----
25

query I rowsort
SELECT - - 7 - - + 94 AS col1
----
101

query I rowsort
SELECT DISTINCT - + 43 + - - ( - 74 )
----
-117

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6277
SELECT CAST( - 81 AS SIGNED ) - - 41 * 99 - + 98 col0
----
3880

skipif mysql # not compatible
query I rowsort label-6277
SELECT CAST ( - 81 AS INTEGER ) - - 41 * 99 - + 98 col0
----
3880

onlyif mysql # aggregate syntax: 
query II rowsort label-6278
SELECT - 94 - 30 AS col0, 69 + - + MAX( ALL 88 ) AS col1
----
-124
-19

skipif mysql # not compatible
query II rowsort label-6278
SELECT - 94 - 30 AS col0, 69 + - + MAX ( ALL 88 ) AS col1
----
-124
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6279
SELECT ALL + MAX( - 35 ) + - 78 DIV 80 * + ( + 78 ) * + - NULLIF ( COUNT( * ), + 92 + + CAST( NULL AS SIGNED ) ) + - 4 * COUNT( * )
----
-39

skipif mysql # not compatible
query I rowsort label-6279
SELECT ALL + MAX ( - 35 ) + - 78 / 80 * + ( + 78 ) * + - NULLIF ( COUNT ( * ), + 92 + + CAST ( NULL AS INTEGER ) ) + - 4 * COUNT ( * )
----
-39

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-6280
SELECT 5 + ( + - ( ( - 50 ) ) ) AS col1, 56 / + CAST( NULL AS SIGNED ) - + 42 AS col1, CAST( NULL AS DECIMAL ) * - 4
----
55
NULL
NULL

skipif mysql # not compatible
query III rowsort label-6280
SELECT 5 + ( + - ( ( - 50 ) ) ) AS col1, 56 / + CAST ( NULL AS INTEGER ) - + 42 AS col1, CAST ( NULL AS REAL ) * - 4
----
55
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6281
SELECT DISTINCT + ( - 47 ) * CAST( - + COUNT( * ) AS SIGNED )
----
47

skipif mysql # not compatible
query I rowsort label-6281
SELECT DISTINCT + ( - 47 ) * CAST ( - + COUNT ( * ) AS INTEGER )
----
47

query I rowsort
SELECT ALL - NULLIF ( 78, - - 22 + 24 ) + - 69 AS col0
----
-147

onlyif mysql # aggregate syntax: 
query I rowsort label-6283
SELECT DISTINCT - MIN( ALL + - 30 )
----
30

skipif mysql # not compatible
query I rowsort label-6283
SELECT DISTINCT - MIN ( ALL + - 30 )
----
30

query I rowsort
SELECT ALL - 2 - 15 AS col2
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6285
SELECT ALL - CASE + CAST( 61 AS SIGNED ) WHEN - 85 THEN - 77 ELSE + 17 END
----
-17

skipif mysql # not compatible
query I rowsort label-6285
SELECT ALL - CASE + CAST ( 61 AS INTEGER ) WHEN - 85 THEN - 77 ELSE + 17 END
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-6286
SELECT ALL - COUNT( DISTINCT - 37 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6286
SELECT ALL - COUNT ( DISTINCT - 37 ) AS col1
----
-1

query I rowsort
SELECT 11 + - 25 * - 6 AS col2
----
161

onlyif mysql # aggregate syntax: 
query II rowsort label-6288
SELECT + 68 AS col0, NULLIF ( - - MAX( DISTINCT + ( + + 97 ) ), - - 2 ) AS col0
----
68
97

skipif mysql # not compatible
query II rowsort label-6288
SELECT + 68 AS col0, NULLIF ( - - MAX ( DISTINCT + ( + + 97 ) ), - - 2 ) AS col0
----
68
97

query I rowsort
SELECT 27 - + ( 6 ) + - - 43 AS col2
----
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6290
SELECT 30 DIV + COUNT( * )
----
30

skipif mysql # not compatible
query I rowsort label-6290
SELECT 30 / + COUNT ( * )
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-6291
SELECT 66 * COUNT( * )
----
66

skipif mysql # not compatible
query I rowsort label-6291
SELECT 66 * COUNT ( * )
----
66

query I rowsort
SELECT 39 * - + 27 + 41 AS col0
----
-1012

onlyif mysql # aggregate syntax: 
query I rowsort label-6293
SELECT COUNT( * ) * + + 28 AS col0
----
28

skipif mysql # not compatible
query I rowsort label-6293
SELECT COUNT ( * ) * + + 28 AS col0
----
28

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6294
SELECT - 67 * + - COALESCE ( - CASE CAST( - + 14 AS DECIMAL ) WHEN + - 91 THEN - COUNT( * ) + - 4 WHEN - 58 * 5 * + ( + 33 ) - - 30 + - 27 THEN NULL WHEN + 91 THEN NULL END, + 53 ) + 47
----
3598

skipif mysql # not compatible
query I rowsort label-6294
SELECT - 67 * + - COALESCE ( - CASE CAST ( - + 14 AS REAL ) WHEN + - 91 THEN - COUNT ( * ) + - 4 WHEN - 58 * 5 * + ( + 33 ) - - 30 + - 27 THEN NULL WHEN + 91 THEN NULL END, + 53 ) + 47
----
3598

query I rowsort
SELECT ALL - ( + ( + + 27 ) )
----
-27

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6296
SELECT ALL - ( - CAST( - AVG ( - 97 ) AS SIGNED ) ) DIV - + 18
----
-5

skipif mysql # not compatible
query I rowsort label-6296
SELECT ALL - ( - CAST ( - AVG ( - 97 ) AS INTEGER ) ) / - + 18
----
-5

query I rowsort
SELECT DISTINCT - ( 82 ) col0
----
-82

query I rowsort
SELECT 62 - - 89 + - 50
----
101

onlyif mysql # DIV for integer division: 
query II rowsort label-6299
SELECT ( - 64 ) - - 27 AS col2, - 70 DIV 45 + + - 81
----
-37
-82

skipif mysql # not compatible
query II rowsort label-6299
SELECT ( - 64 ) - - 27 AS col2, - 70 / 45 + + - 81
----
-37
-82

query I rowsort
SELECT 92 + - 59 + 80
----
113

query I rowsort
SELECT - 54 * + 10 + - 95
----
-635

query I rowsort
SELECT 38 * + + ( - + 2 ) * - - 56
----
-4256

query I rowsort
SELECT DISTINCT + ( + 50 ) AS col0
----
50

query I rowsort
SELECT + 2 + - 35 * + - 57 AS col2
----
1997

query I rowsort
SELECT DISTINCT 94 + COALESCE ( + 17, 84 ) AS col2
----
111

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6306
SELECT ALL + 47 + 4 DIV + COUNT( * )
----
51

skipif mysql # not compatible
query I rowsort label-6306
SELECT ALL + 47 + 4 / + COUNT ( * )
----
51

query I rowsort
SELECT DISTINCT + 89 + + 54 AS col1
----
143

query I rowsort
SELECT DISTINCT - 14 + + ( - 3 )
----
-17

onlyif mysql # aggregate syntax: 
query II rowsort label-6309
SELECT ALL COUNT( * ) + + - 85 * - 19 AS col0, - 38
----
1616
-38

skipif mysql # not compatible
query II rowsort label-6309
SELECT ALL COUNT ( * ) + + - 85 * - 19 AS col0, - 38
----
1616
-38

query I rowsort
SELECT - ( - 94 ) + + 48 * + 31
----
1582

query I rowsort
SELECT + 18 * + 31 col0
----
558

query II rowsort
SELECT 7 * + 8 + - 6, - ( + - 18 ) AS col0
----
50
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6313
SELECT COUNT( * ) DIV + 97 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6313
SELECT COUNT ( * ) / + 97 AS col1
----
0

query I rowsort
SELECT ALL 90 - + 16 AS col2
----
74

query I rowsort
SELECT ALL 7 * ( 0 ) AS col1
----
0

query I rowsort
SELECT ALL 84 * ( 76 ) AS col0
----
6384

query I rowsort
SELECT DISTINCT 1 - 74 AS col0
----
-73

query II rowsort
SELECT - 56, + 84 * - - 93 col2
----
-56
7812

query I rowsort
SELECT 47 + + - 24 AS col2
----
23

query II rowsort
SELECT 21 * 10, + 11 AS col1
----
210
11

onlyif mysql # aggregate syntax: 
query I rowsort label-6321
SELECT 43 * - - 68 * + + 65 + 95 * + - CASE - 50 WHEN + MIN( + - 87 ) THEN 25 * 66 WHEN + 49 THEN - - 6 / + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6321
SELECT 43 * - - 68 * + + 65 + 95 * + - CASE - 50 WHEN + MIN ( + - 87 ) THEN 25 * 66 WHEN + 49 THEN - - 6 / + COUNT ( * ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6322
SELECT ALL - NULLIF ( + SUM( DISTINCT COALESCE ( - COALESCE ( ( + 68 ), + 13, + 42 ), 76, 6 * - CAST( + 91 AS SIGNED ) ) ), 22 ) AS col1
----
68

skipif mysql # not compatible
query I rowsort label-6322
SELECT ALL - NULLIF ( + SUM ( DISTINCT COALESCE ( - COALESCE ( ( + 68 ), + 13, + 42 ), 76, 6 * - CAST ( + 91 AS INTEGER ) ) ), 22 ) AS col1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-6323
SELECT 37 + - 21 + + - MIN( DISTINCT 77 ) * + - 18 * - 91
----
-126110

skipif mysql # not compatible
query I rowsort label-6323
SELECT 37 + - 21 + + - MIN ( DISTINCT 77 ) * + - 18 * - 91
----
-126110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6324
SELECT MIN( - CAST( 91 AS SIGNED ) ) * - 73 - - 27 / - CAST( NULL AS DECIMAL ) * 90 / + + 22 + + - ( - + 45 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6324
SELECT MIN ( - CAST ( 91 AS INTEGER ) ) * - 73 - - 27 / - CAST ( NULL AS REAL ) * 90 / + + 22 + + - ( - + 45 ) AS col1
----
NULL

query I rowsort
SELECT 46 * - 16
----
-736

onlyif mysql # aggregate syntax: 
query I rowsort label-6326
SELECT DISTINCT - 71 * - COUNT( * ) AS col2
----
71

skipif mysql # not compatible
query I rowsort label-6326
SELECT DISTINCT - 71 * - COUNT ( * ) AS col2
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-6327
SELECT DISTINCT - MIN( ALL + + 89 ) * 27 AS col2
----
-2403

skipif mysql # not compatible
query I rowsort label-6327
SELECT DISTINCT - MIN ( ALL + + 89 ) * 27 AS col2
----
-2403

onlyif mysql # DIV for integer division: 
query I rowsort label-6328
SELECT 65 DIV - - 16
----
4

skipif mysql # not compatible
query I rowsort label-6328
SELECT 65 / - - 16
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6329
SELECT DISTINCT - NULLIF ( + ( + 89 ), + + COUNT( * ) )
----
-89

skipif mysql # not compatible
query I rowsort label-6329
SELECT DISTINCT - NULLIF ( + ( + 89 ), + + COUNT ( * ) )
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-6330
SELECT MIN( 57 ) + + 89 AS col1
----
146

skipif mysql # not compatible
query I rowsort label-6330
SELECT MIN ( 57 ) + + 89 AS col1
----
146

query I rowsort
SELECT ALL - ( + 63 )
----
-63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6332
SELECT COUNT( * ) DIV + 55 * + 70 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6332
SELECT COUNT ( * ) / + 55 * + 70 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6333
SELECT 37 * + + SUM( ALL - + 58 ) * 71 - 3 + + + MAX( ALL - 46 ) AS col2
----
-152415

skipif mysql # not compatible
query I rowsort label-6333
SELECT 37 * + + SUM ( ALL - + 58 ) * 71 - 3 + + + MAX ( ALL - 46 ) AS col2
----
-152415

query I rowsort
SELECT + ( + ( 14 ) ) AS col0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-6335
SELECT ALL - + MIN( ALL - + 66 ) AS col0
----
66

skipif mysql # not compatible
query I rowsort label-6335
SELECT ALL - + MIN ( ALL - + 66 ) AS col0
----
66

onlyif mysql # aggregate syntax: 
query II rowsort label-6336
SELECT ALL 39 + - + 97 AS col1, + 4 * + + COUNT( * )
----
-58
4

skipif mysql # not compatible
query II rowsort label-6336
SELECT ALL 39 + - + 97 AS col1, + 4 * + + COUNT ( * )
----
-58
4

onlyif mysql # DIV for integer division: 
query I rowsort label-6337
SELECT DISTINCT + - 1 DIV - 4
----
0

skipif mysql # not compatible
query I rowsort label-6337
SELECT DISTINCT + - 1 / - 4
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6338
SELECT DISTINCT - 18 + - CAST( - CAST( + - 69 AS SIGNED ) AS SIGNED ) DIV 51
----
-19

skipif mysql # not compatible
query I rowsort label-6338
SELECT DISTINCT - 18 + - CAST ( - CAST ( + - 69 AS INTEGER ) AS INTEGER ) / 51
----
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6339
SELECT + CASE CASE + 11 WHEN 90 THEN NULL ELSE + 61 END WHEN 41 + + 58 THEN NULL WHEN - 69 * + + COUNT( * ) THEN NULL ELSE + 19 DIV + - COUNT( * ) END
----
-19

skipif mysql # not compatible
query I rowsort label-6339
SELECT + CASE CASE + 11 WHEN 90 THEN NULL ELSE + 61 END WHEN 41 + + 58 THEN NULL WHEN - 69 * + + COUNT ( * ) THEN NULL ELSE + 19 / + - COUNT ( * ) END
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-6340
SELECT ALL - 85 + + 21 + - - COUNT( * )
----
-63

skipif mysql # not compatible
query I rowsort label-6340
SELECT ALL - 85 + + 21 + - - COUNT ( * )
----
-63

query II rowsort
SELECT ALL 92, - 54 + - - 21 AS col2
----
92
-33

query I rowsort
SELECT + - 30 - + 40 * - 64 + 50 + - 21
----
2559

onlyif mysql # aggregate syntax: 
query I rowsort label-6343
SELECT ALL - 25 * + COUNT( ALL - 38 )
----
-25

skipif mysql # not compatible
query I rowsort label-6343
SELECT ALL - 25 * + COUNT ( ALL - 38 )
----
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-6344
SELECT DISTINCT + COUNT( * ) col2, - ( COUNT( * ) ) + + 74 * ( - 81 )
----
1
-5995

skipif mysql # not compatible
query II rowsort label-6344
SELECT DISTINCT + COUNT ( * ) col2, - ( COUNT ( * ) ) + + 74 * ( - 81 )
----
1
-5995

query II rowsort
SELECT ALL - 11 AS col1, 24 * - - 13 AS col2
----
-11
312

onlyif mysql # aggregate syntax: 
query II rowsort label-6346
SELECT ALL COUNT( * ) AS col1, 44 AS col0
----
1
44

skipif mysql # not compatible
query II rowsort label-6346
SELECT ALL COUNT ( * ) AS col1, 44 AS col0
----
1
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6347
SELECT + 78 * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6347
SELECT + 78 * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL 90 * + + 78 * - + 99 * - 24 * 11 AS col2
----
183474720

onlyif mysql # aggregate syntax: 
query I rowsort label-6349
SELECT + COUNT( + - 90 ) - + 61
----
-60

skipif mysql # not compatible
query I rowsort label-6349
SELECT + COUNT ( + - 90 ) - + 61
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-6350
SELECT - NULLIF ( + 66, - + MIN( ALL - 81 ) / + - 42 + - + 47 - - - MIN( ALL + 80 ) ) AS col0
----
-66

skipif mysql # not compatible
query I rowsort label-6350
SELECT - NULLIF ( + 66, - + MIN ( ALL - 81 ) / + - 42 + - + 47 - - - MIN ( ALL + 80 ) ) AS col0
----
-66

query II rowsort
SELECT + 30 - + - 5 AS col2, 26
----
35
26

onlyif mysql # aggregate syntax: 
query I rowsort label-6352
SELECT + COUNT( * ) * + ( - COUNT( * ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6352
SELECT + COUNT ( * ) * + ( - COUNT ( * ) ) AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6353
SELECT + 7 + 80 + - CAST( - 78 AS SIGNED ) AS col0
----
165

skipif mysql # not compatible
query I rowsort label-6353
SELECT + 7 + 80 + - CAST ( - 78 AS INTEGER ) AS col0
----
165

query I rowsort
SELECT + 18 * + - ( - - 94 )
----
-1692

query I rowsort
SELECT ALL 30 * 48
----
1440

query I rowsort
SELECT - NULLIF ( + 35, + 69 - 91 ) AS col2
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6357
SELECT + 95 + + + MAX( - CAST( 10 AS SIGNED ) ) AS col2
----
85

skipif mysql # not compatible
query I rowsort label-6357
SELECT + 95 + + + MAX ( - CAST ( 10 AS INTEGER ) ) AS col2
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-6358
SELECT + COUNT( * ) * COALESCE ( + 31, + MIN( DISTINCT 31 ), - 50 )
----
31

skipif mysql # not compatible
query I rowsort label-6358
SELECT + COUNT ( * ) * COALESCE ( + 31, + MIN ( DISTINCT 31 ), - 50 )
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-6359
SELECT COUNT( + 29 ) * - 23 + + MAX( DISTINCT + 0 )
----
-23

skipif mysql # not compatible
query I rowsort label-6359
SELECT COUNT ( + 29 ) * - 23 + + MAX ( DISTINCT + 0 )
----
-23

query I rowsort
SELECT DISTINCT ( + 93 ) * + 40
----
3720

query I rowsort
SELECT + 52 + - 44
----
8

onlyif mysql # DIV for integer division: 
query II rowsort label-6362
SELECT - 58 * + 1 AS col1, ( + ( + 96 ) ) DIV - 88 + - + 25
----
-58
-26

skipif mysql # not compatible
query II rowsort label-6362
SELECT - 58 * + 1 AS col1, ( + ( + 96 ) ) / - 88 + - + 25
----
-58
-26

onlyif mysql # aggregate syntax: 
query II rowsort label-6363
SELECT CASE COUNT( ALL - 7 ) WHEN + - 3 THEN NULL WHEN - + 12 THEN + 16 * - + AVG ( - 97 ) * + - COALESCE ( + - 2, + 17 * 65 + 92, 86 + 37 ) WHEN - - 26 THEN NULL ELSE + + 0 END col2, + 67 * + - 54 / - + CASE - 71 WHEN 96 + - - 35 THEN 38 END AS col0
----
0
NULL

skipif mysql # not compatible
query II rowsort label-6363
SELECT CASE COUNT ( ALL - 7 ) WHEN + - 3 THEN NULL WHEN - + 12 THEN + 16 * - + AVG ( - 97 ) * + - COALESCE ( + - 2, + 17 * 65 + 92, 86 + 37 ) WHEN - - 26 THEN NULL ELSE + + 0 END col2, + 67 * + - 54 / - + CASE - 71 WHEN 96 + - - 35 THEN 38 END AS col0
----
0
NULL

query I rowsort
SELECT COALESCE ( 97, - 59 * 91 + - 87 + + + NULLIF ( - + 32, + 48 ), + 54 ) AS col1
----
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6365
SELECT + COALESCE ( + + 33, - COALESCE ( + 36, + - 12, + + 20 ) DIV + + NULLIF ( 2, + 23 ) * - + 74 * 76 * - 10 ) + + + COUNT( * ) AS col0
----
34

skipif mysql # not compatible
query I rowsort label-6365
SELECT + COALESCE ( + + 33, - COALESCE ( + 36, + - 12, + + 20 ) / + + NULLIF ( 2, + 23 ) * - + 74 * 76 * - 10 ) + + + COUNT ( * ) AS col0
----
34

query I rowsort
SELECT + ( - 49 ) AS col0
----
-49

query I rowsort
SELECT ALL - 90 * - ( - + 58 ) * + 52 + - + 41 * - + 42 * + + 96 * 90 AS col2
----
14606640

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6368
SELECT + + ( CAST( - 46 AS SIGNED ) ) * 39 + + NULLIF ( 74, - - 8 * + + 69 / - COUNT( * ) ) + CAST( NULL AS SIGNED ) + - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6368
SELECT + + ( CAST ( - 46 AS INTEGER ) ) * 39 + + NULLIF ( 74, - - 8 * + + 69 / - COUNT ( * ) ) + CAST ( NULL AS INTEGER ) + - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6369
SELECT ALL - COUNT( * ) * + COUNT( * ) + + - 60 + + 20 DIV 21 + 25 + - 30
----
-66

skipif mysql # not compatible
query I rowsort label-6369
SELECT ALL - COUNT ( * ) * + COUNT ( * ) + + - 60 + + 20 / 21 + 25 + - 30
----
-66

query I rowsort
SELECT ALL + 92 * 96 * + + 6
----
52992

query I rowsort
SELECT - 97 + + 61 + + - 52
----
-88

query I rowsort
SELECT DISTINCT 36 * 98 + - 72
----
3456

query I rowsort
SELECT ALL + - 71 * - 22 * + + 24 + - 20 AS col2
----
37468

query I rowsort
SELECT ALL + + 90 col1
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6375
SELECT ALL + CAST( NULL AS SIGNED ) * - SUM( ALL - 55 ) + - 23 * + 48 * - + 94 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6375
SELECT ALL + CAST ( NULL AS INTEGER ) * - SUM ( ALL - 55 ) + - 23 * + 48 * - + 94 AS col0
----
NULL

query I rowsort
SELECT - - 45 + + - 47
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-6377
SELECT - 86 + MIN( + 49 ) col2
----
-37

skipif mysql # not compatible
query I rowsort label-6377
SELECT - 86 + MIN ( + 49 ) col2
----
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-6378
SELECT ALL + - 23 DIV + + 77
----
0

skipif mysql # not compatible
query I rowsort label-6378
SELECT ALL + - 23 / + + 77
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6379
SELECT ALL + + 31 DIV - 33 * + - 39 * + 30 * + 22 * + 66 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6379
SELECT ALL + + 31 / - 33 * + - 39 * + 30 * + 22 * + 66 AS col2
----
0

query I rowsort
SELECT DISTINCT - 46 - + - 95 AS col1
----
49

query II rowsort
SELECT - 40, + 26 + + 20 AS col2
----
-40
46

onlyif mysql # aggregate syntax: 
query I rowsort label-6382
SELECT + 55 + - 51 * + COUNT( * )
----
4

skipif mysql # not compatible
query I rowsort label-6382
SELECT + 55 + - 51 * + COUNT ( * )
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6383
SELECT ALL CAST( NULL AS SIGNED ), + 75 AS col2
----
NULL
75

skipif mysql # not compatible
query II rowsort label-6383
SELECT ALL CAST ( NULL AS INTEGER ), + 75 AS col2
----
NULL
75

query I rowsort
SELECT - 66 * + 52 AS col0
----
-3432

query II rowsort
SELECT 23 AS col0, + 86
----
23
86

onlyif mysql # aggregate syntax: 
query I rowsort label-6386
SELECT + COUNT( * ) * 81 * - 86 AS col2
----
-6966

skipif mysql # not compatible
query I rowsort label-6386
SELECT + COUNT ( * ) * 81 * - 86 AS col2
----
-6966

onlyif mysql # aggregate syntax: 
query I rowsort label-6387
SELECT - 36 + COUNT( * )
----
-35

skipif mysql # not compatible
query I rowsort label-6387
SELECT - 36 + COUNT ( * )
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6388
SELECT ALL CAST( NULL AS SIGNED ) AS col2, - 22 * - 75 AS col2
----
NULL
1650

skipif mysql # not compatible
query II rowsort label-6388
SELECT ALL CAST ( NULL AS INTEGER ) AS col2, - 22 * - 75 AS col2
----
NULL
1650

onlyif mysql # aggregate syntax: 
query I rowsort label-6389
SELECT ALL - 44 + - + 87 * + MAX( DISTINCT - NULLIF ( - 41, - 37 ) ) + + MIN( 68 ) AS col0
----
-3543

skipif mysql # not compatible
query I rowsort label-6389
SELECT ALL - 44 + - + 87 * + MAX ( DISTINCT - NULLIF ( - 41, - 37 ) ) + + MIN ( 68 ) AS col0
----
-3543

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6390
SELECT + 82 + - + 36 * CAST( - 17 AS SIGNED ) * + + ( + 38 ) AS col1
----
23338

skipif mysql # not compatible
query I rowsort label-6390
SELECT + 82 + - + 36 * CAST ( - 17 AS INTEGER ) * + + ( + 38 ) AS col1
----
23338

query I rowsort
SELECT DISTINCT 88 + - 96
----
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-6392
SELECT + ( - - 19 ) + - MIN( + 47 ), 3 + + 42 AS col2
----
-28
45

skipif mysql # not compatible
query II rowsort label-6392
SELECT + ( - - 19 ) + - MIN ( + 47 ), 3 + + 42 AS col2
----
-28
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6393
SELECT ALL COUNT( * ) DIV - COALESCE ( 69, - + 89, + 19 ) + 60
----
60

skipif mysql # not compatible
query I rowsort label-6393
SELECT ALL COUNT ( * ) / - COALESCE ( 69, - + 89, + 19 ) + 60
----
60

query I rowsort
SELECT + COALESCE ( 26, - - 50, - 43 * 65 )
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-6395
SELECT + ( + 74 ) DIV - NULLIF ( - 50, 10 )
----
1

skipif mysql # not compatible
query I rowsort label-6395
SELECT + ( + 74 ) / - NULLIF ( - 50, 10 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6396
SELECT ( - COALESCE ( MIN( 9 ), - + MIN( ALL - 80 ), + 42 * COALESCE ( - - 78, + 38, - ( 1 ) ) * + - 89 + + + MAX( + - ( + 79 ) ) ) ) * 83 - 54 - - 78
----
-723

skipif mysql # not compatible
query I rowsort label-6396
SELECT ( - COALESCE ( MIN ( 9 ), - + MIN ( ALL - 80 ), + 42 * COALESCE ( - - 78, + 38, - ( 1 ) ) * + - 89 + + + MAX ( + - ( + 79 ) ) ) ) * 83 - 54 - - 78
----
-723

onlyif mysql # aggregate syntax: 
query I rowsort label-6397
SELECT DISTINCT - COUNT( * ) * + 73 + - 70 + + 55
----
-88

skipif mysql # not compatible
query I rowsort label-6397
SELECT DISTINCT - COUNT ( * ) * + 73 + - 70 + + 55
----
-88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6398
SELECT ALL COUNT( * ) DIV 15 + COUNT( - + NULLIF ( - 96, 19 ) )
----
1

skipif mysql # not compatible
query I rowsort label-6398
SELECT ALL COUNT ( * ) / 15 + COUNT ( - + NULLIF ( - 96, 19 ) )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6399
SELECT ALL + - NULLIF ( + 13, - + 32 - - + ( CASE + AVG ( ALL + 35 ) WHEN - CAST( + 14 AS SIGNED ) THEN + 52 WHEN 17 + 13 THEN NULL WHEN - - 9 - + 53 * - + 15 * + 90 * + 59 - - ( - + 55 ) THEN 37 ELSE NULL END ) )
----
-13

skipif mysql # not compatible
query I rowsort label-6399
SELECT ALL + - NULLIF ( + 13, - + 32 - - + ( CASE + AVG ( ALL + 35 ) WHEN - CAST ( + 14 AS INTEGER ) THEN + 52 WHEN 17 + 13 THEN NULL WHEN - - 9 - + 53 * - + 15 * + 90 * + 59 - - ( - + 55 ) THEN 37 ELSE NULL END ) )
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-6400
SELECT ALL + COUNT( * ) * - 96
----
-96

skipif mysql # not compatible
query I rowsort label-6400
SELECT ALL + COUNT ( * ) * - 96
----
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-6401
SELECT 43 DIV + + 40 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6401
SELECT 43 / + + 40 AS col0
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-6402
SELECT - - 0 DIV - 35 + + 6, - 44 col0
----
6
-44

skipif mysql # not compatible
query II rowsort label-6402
SELECT - - 0 / - 35 + + 6, - 44 col0
----
6
-44

query I rowsort
SELECT ALL 74 - + 39 AS col0
----
35

query II rowsort
SELECT + - 23 AS col2, 85
----
-23
85

query II rowsort
SELECT ALL - 25, - 5 AS col0
----
-25
-5

query I rowsort
SELECT DISTINCT + 36 * 16 AS col0
----
576

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6407
SELECT ALL - COUNT( * ), - CAST( - + 14 AS SIGNED ) * - 79 AS col2
----
-1
-1106

skipif mysql # not compatible
query II rowsort label-6407
SELECT ALL - COUNT ( * ), - CAST ( - + 14 AS INTEGER ) * - 79 AS col2
----
-1
-1106

query I rowsort
SELECT DISTINCT - + ( + - 80 ) col0
----
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6409
SELECT ALL - COALESCE ( - 68, - + 27 * + ( + 89 ) DIV + + 48 - - ( + COUNT( * ) ) * MAX( DISTINCT + 15 ) + 8, + 24 ) AS col0
----
68

skipif mysql # not compatible
query I rowsort label-6409
SELECT ALL - COALESCE ( - 68, - + 27 * + ( + 89 ) / + + 48 - - ( + COUNT ( * ) ) * MAX ( DISTINCT + 15 ) + 8, + 24 ) AS col0
----
68

query I rowsort
SELECT 92 * - 46 * + 79 + - ( - 98 )
----
-334230

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6411
SELECT DISTINCT + MIN( ALL + 28 ) * 71 * - CAST( 89 AS SIGNED ) + 41
----
-176891

skipif mysql # not compatible
query I rowsort label-6411
SELECT DISTINCT + MIN ( ALL + 28 ) * 71 * - CAST ( 89 AS INTEGER ) + 41
----
-176891

query II rowsort
SELECT - - 84, 75 AS col0
----
84
75

query I rowsort
SELECT ALL + 42 * - 91 AS col2
----
-3822

onlyif mysql # aggregate syntax: 
query I rowsort label-6414
SELECT 71 * - + 45 + 2 * NULLIF ( - + 80, - SUM( 29 ) )
----
-3355

skipif mysql # not compatible
query I rowsort label-6414
SELECT 71 * - + 45 + 2 * NULLIF ( - + 80, - SUM ( 29 ) )
----
-3355

query I rowsort
SELECT 30 - - 41
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6416
SELECT 40 + 90 * COUNT( ALL 74 ) * + - 96 + - 13 + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6416
SELECT 40 + 90 * COUNT ( ALL 74 ) * + - 96 + - 13 + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6417
SELECT 46 * CAST( - NULLIF ( - - ( + + 65 ), + 27 * + 90 * + 94 + + 38 - + - COUNT( * ) ) AS SIGNED ) col2
----
-2990

skipif mysql # not compatible
query I rowsort label-6417
SELECT 46 * CAST ( - NULLIF ( - - ( + + 65 ), + 27 * + 90 * + 94 + + 38 - + - COUNT ( * ) ) AS INTEGER ) col2
----
-2990

query I rowsort
SELECT DISTINCT + 12 + + - 78 - - - 46 + - 93 + 12
----
-193

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6419
SELECT ALL - ( 21 ) + + CASE ( 14 ) WHEN + 61 * - + ( 86 ) THEN NULL WHEN + + 71 THEN - + NULLIF ( + 95, - 26 ) - - NULLIF ( - - CAST( NULL AS SIGNED ), + NULLIF ( + 32, - AVG ( 56 ) + + - 68 ) ) * + - ( CASE - - 58 WHEN + 82 THEN ( + - 4 ) + - 64 END ) END / 51 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6419
SELECT ALL - ( 21 ) + + CASE ( 14 ) WHEN + 61 * - + ( 86 ) THEN NULL WHEN + + 71 THEN - + NULLIF ( + 95, - 26 ) - - NULLIF ( - - CAST ( NULL AS INTEGER ), + NULLIF ( + 32, - AVG ( 56 ) + + - 68 ) ) * + - ( CASE - - 58 WHEN + 82 THEN ( + - 4 ) + - 64 END ) END / 51 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6420
SELECT DISTINCT - 12 + + + COUNT( * ) AS col2, + 45
----
-11
45

skipif mysql # not compatible
query II rowsort label-6420
SELECT DISTINCT - 12 + + + COUNT ( * ) AS col2, + 45
----
-11
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6421
SELECT DISTINCT - 39 + - 3 + + - 73 + 22 * - + 97 - CASE + 14 WHEN - 31 THEN CASE CAST( - COUNT( * ) AS SIGNED ) WHEN - + 27 + + + 33 * - 66 THEN - + 98 END - 25 WHEN - 31 * 97 + + 95 THEN - 10 * - CAST( NULL AS SIGNED ) + + - COUNT( * ) WHEN + COUNT( * ) THEN + - 5 / - 93 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6421
SELECT DISTINCT - 39 + - 3 + + - 73 + 22 * - + 97 - CASE + 14 WHEN - 31 THEN CASE CAST ( - COUNT ( * ) AS INTEGER ) WHEN - + 27 + + + 33 * - 66 THEN - + 98 END - 25 WHEN - 31 * 97 + + 95 THEN - 10 * - CAST ( NULL AS INTEGER ) + + - COUNT ( * ) WHEN + COUNT ( * ) THEN + - 5 / - 93 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6422
SELECT 39 + 66 - 77 * - ( ( - SUM( ALL - 5 ) ) ) * ( + 50 ) * - - MIN( + CAST( NULL AS SIGNED ) ) + + 54 + ( + + COUNT( DISTINCT 30 ) ) * - + 80 * - 5
----
NULL

skipif mysql # not compatible
query I rowsort label-6422
SELECT 39 + 66 - 77 * - ( ( - SUM ( ALL - 5 ) ) ) * ( + 50 ) * - - MIN ( + CAST ( NULL AS INTEGER ) ) + + 54 + ( + + COUNT ( DISTINCT 30 ) ) * - + 80 * - 5
----
NULL

query I rowsort
SELECT ALL + 49 + + 50 * - 63 AS col0
----
-3101

query I rowsort
SELECT DISTINCT + 68 * - ( - 37 ) AS col2
----
2516

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6425
SELECT COUNT( ALL - CAST( NULL AS SIGNED ) ) + + 47
----
47

skipif mysql # not compatible
query I rowsort label-6425
SELECT COUNT ( ALL - CAST ( NULL AS INTEGER ) ) + + 47
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-6426
SELECT ALL + 50 + 16 DIV - - 7
----
52

skipif mysql # not compatible
query I rowsort label-6426
SELECT ALL + 50 + 16 / - - 7
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6427
SELECT ALL - 95 + - - COALESCE ( + + 45, + MAX( DISTINCT + 80 ) * COALESCE ( - 59, - + MAX( 14 ) ) - + - ( - - 78 ) + - ( + MAX( - 73 ) ) DIV CAST( NULL AS SIGNED ), + COALESCE ( + 37, + + 81 * 89 ) + + 14 ), + 70 AS col1
----
-50
70

skipif mysql # not compatible
query II rowsort label-6427
SELECT ALL - 95 + - - COALESCE ( + + 45, + MAX ( DISTINCT + 80 ) * COALESCE ( - 59, - + MAX ( 14 ) ) - + - ( - - 78 ) + - ( + MAX ( - 73 ) ) / CAST ( NULL AS INTEGER ), + COALESCE ( + 37, + + 81 * 89 ) + + 14 ), + 70 AS col1
----
-50
70

onlyif mysql # aggregate syntax: 
query I rowsort label-6428
SELECT ALL COUNT( * ) - 16
----
-15

skipif mysql # not compatible
query I rowsort label-6428
SELECT ALL COUNT ( * ) - 16
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6429
SELECT + 79 * - 98, CAST( NULL AS SIGNED ) / SUM( 48 ) AS col1
----
-7742
NULL

skipif mysql # not compatible
query II rowsort label-6429
SELECT + 79 * - 98, CAST ( NULL AS INTEGER ) / SUM ( 48 ) AS col1
----
-7742
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6430
SELECT - 88 DIV - ( - + 23 )
----
-3

skipif mysql # not compatible
query I rowsort label-6430
SELECT - 88 / - ( - + 23 )
----
-3

query I rowsort
SELECT 61 + + 77 AS col1
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-6432
SELECT ALL - - SUM( 75 )
----
75

skipif mysql # not compatible
query I rowsort label-6432
SELECT ALL - - SUM ( 75 )
----
75

query I rowsort
SELECT - 46 * + 70 + 18 AS col1
----
-3202

onlyif mysql # aggregate syntax: 
query I rowsort label-6434
SELECT + 55 + - 16 + + COUNT( * ) - + + 24 + - 22 * ( + 16 ) * + COUNT( * ) AS col1
----
-336

skipif mysql # not compatible
query I rowsort label-6434
SELECT + 55 + - 16 + + COUNT ( * ) - + + 24 + - 22 * ( + 16 ) * + COUNT ( * ) AS col1
----
-336

query I rowsort
SELECT DISTINCT + 81 * 91
----
7371

query I rowsort
SELECT ALL - 7 * + ( - 88 ) + + 4 - 50
----
570

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6437
SELECT 43 DIV ( - 35 ) + - 58 * CAST( + ( + MIN( + 35 ) ) AS SIGNED ) AS col1
----
-2031

skipif mysql # not compatible
query I rowsort label-6437
SELECT 43 / ( - 35 ) + - 58 * CAST ( + ( + MIN ( + 35 ) ) AS INTEGER ) AS col1
----
-2031

query I rowsort
SELECT + ( - + 76 ) + + 89
----
13

query I rowsort
SELECT DISTINCT - 4 * - 9 AS col1
----
36

query I rowsort
SELECT ALL 74 * 31 AS col1
----
2294

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6441
SELECT 9 * 21 + ( + - CAST( + CASE + + 39 WHEN + 61 THEN 45 ELSE + COUNT( ALL - 26 ) END AS SIGNED ) ) AS col2
----
188

skipif mysql # not compatible
query I rowsort label-6441
SELECT 9 * 21 + ( + - CAST ( + CASE + + 39 WHEN + 61 THEN 45 ELSE + COUNT ( ALL - 26 ) END AS INTEGER ) ) AS col2
----
188

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6442
SELECT - COUNT( * ) + - - CAST( NULL AS SIGNED ) * - - 23 + 72 * + + CAST( - 17 AS SIGNED ) * 69 - + 38 - 72
----
NULL

skipif mysql # not compatible
query I rowsort label-6442
SELECT - COUNT ( * ) + - - CAST ( NULL AS INTEGER ) * - - 23 + 72 * + + CAST ( - 17 AS INTEGER ) * 69 - + 38 - 72
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6443
SELECT + - COALESCE ( - - 32, MAX( ALL + 79 ) + - + 12 )
----
-32

skipif mysql # not compatible
query I rowsort label-6443
SELECT + - COALESCE ( - - 32, MAX ( ALL + 79 ) + - + 12 )
----
-32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6444
SELECT + - 8 * + + ( + 15 ) - 92 * + + 21 + 75 * 60 + + NULLIF ( 9, + 13 * ( - 36 ) + 91 + 83 ) * 23 DIV - ( - COUNT( * ) ) col2
----
2655

skipif mysql # not compatible
query I rowsort label-6444
SELECT + - 8 * + + ( + 15 ) - 92 * + + 21 + 75 * 60 + + NULLIF ( 9, + 13 * ( - 36 ) + 91 + 83 ) * 23 / - ( - COUNT ( * ) ) col2
----
2655

onlyif mysql # aggregate syntax: 
query I rowsort label-6445
SELECT COUNT( * ) * + ( 21 )
----
21

skipif mysql # not compatible
query I rowsort label-6445
SELECT COUNT ( * ) * + ( 21 )
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-6446
SELECT - COUNT( * ) + 6 + - 40
----
-35

skipif mysql # not compatible
query I rowsort label-6446
SELECT - COUNT ( * ) + 6 + - 40
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6447
SELECT ALL CAST( NULL AS SIGNED ) + 63 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6447
SELECT ALL CAST ( NULL AS INTEGER ) + 63 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6448
SELECT COUNT( * ) + + - 40 AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-6448
SELECT COUNT ( * ) + + - 40 AS col2
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-6449
SELECT ALL MAX( ALL - ( 63 ) ) + + 33
----
-30

skipif mysql # not compatible
query I rowsort label-6449
SELECT ALL MAX ( ALL - ( 63 ) ) + + 33
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-6450
SELECT - MIN( DISTINCT - 21 ) AS col0
----
21

skipif mysql # not compatible
query I rowsort label-6450
SELECT - MIN ( DISTINCT - 21 ) AS col0
----
21

query I rowsort
SELECT 36 + + ( - + 6 )
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-6452
SELECT - MAX( 23 )
----
-23

skipif mysql # not compatible
query I rowsort label-6452
SELECT - MAX ( 23 )
----
-23

query I rowsort
SELECT 75 + + 63 AS col0
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-6454
SELECT - MIN( DISTINCT + + 1 )
----
-1

skipif mysql # not compatible
query I rowsort label-6454
SELECT - MIN ( DISTINCT + + 1 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-6455
SELECT 49 DIV 70 * - 97 DIV ( - + NULLIF ( - 3, + 6 ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6455
SELECT 49 / 70 * - 97 / ( - + NULLIF ( - 3, + 6 ) ) AS col2
----
0

query I rowsort
SELECT 94 + 68 + + CASE 45 WHEN - - 28 THEN 95 WHEN + + 58 THEN NULL END * - + 20 * + + 11 * + - 15 / 92 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6457
SELECT ALL + 63 + - + 72 + + 33 DIV - 16
----
-11

skipif mysql # not compatible
query I rowsort label-6457
SELECT ALL + 63 + - + 72 + + 33 / - 16
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-6458
SELECT 71 + + + ( - COUNT( * ) )
----
70

skipif mysql # not compatible
query I rowsort label-6458
SELECT 71 + + + ( - COUNT ( * ) )
----
70

query I rowsort
SELECT DISTINCT 29 + - 60 AS col0
----
-31

query I rowsort
SELECT 81 + + 2 * + 67
----
215

onlyif mysql # aggregate syntax: 
query I rowsort label-6461
SELECT 84 * - - SUM( DISTINCT - 92 ) AS col2
----
-7728

skipif mysql # not compatible
query I rowsort label-6461
SELECT 84 * - - SUM ( DISTINCT - 92 ) AS col2
----
-7728

onlyif mysql # aggregate syntax: 
query II rowsort label-6462
SELECT ALL + 63 - - - 13 - + + 35 * + MIN( DISTINCT + 14 ) AS col0, COUNT( * ) + - + 40 + 3
----
-440
-36

skipif mysql # not compatible
query II rowsort label-6462
SELECT ALL + 63 - - - 13 - + + 35 * + MIN ( DISTINCT + 14 ) AS col0, COUNT ( * ) + - + 40 + 3
----
-440
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6463
SELECT ALL - AVG ( - 76 ) - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6463
SELECT ALL - AVG ( - 76 ) - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6464
SELECT - 52 * + COUNT( * ) * + 1, 1 + 40 AS col0
----
-52
41

skipif mysql # not compatible
query II rowsort label-6464
SELECT - 52 * + COUNT ( * ) * + 1, 1 + 40 AS col0
----
-52
41

onlyif mysql # aggregate syntax: 
query I rowsort label-6465
SELECT DISTINCT MIN( + - 85 )
----
-85

skipif mysql # not compatible
query I rowsort label-6465
SELECT DISTINCT MIN ( + - 85 )
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-6466
SELECT - MAX( 10 ) * - - 44 * - 50 col1
----
22000

skipif mysql # not compatible
query I rowsort label-6466
SELECT - MAX ( 10 ) * - - 44 * - 50 col1
----
22000

onlyif mysql # aggregate syntax: 
query II rowsort label-6467
SELECT DISTINCT + 1 AS col1, - ( - MAX( ALL - + 94 ) ) col0
----
1
-94

skipif mysql # not compatible
query II rowsort label-6467
SELECT DISTINCT + 1 AS col1, - ( - MAX ( ALL - + 94 ) ) col0
----
1
-94

query I rowsort
SELECT ALL + 2 * - - 92 AS col1
----
184

query I rowsort
SELECT - - 63 * + 29 AS col0
----
1827

query I rowsort
SELECT + - 58 * + 58 AS col0
----
-3364

query I rowsort
SELECT ALL - 52 * - 87 AS col2
----
4524

query I rowsort
SELECT ALL - + 87 * + + 94
----
-8178

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6473
SELECT ALL + CAST( - - 56 AS SIGNED )
----
56

skipif mysql # not compatible
query I rowsort label-6473
SELECT ALL + CAST ( - - 56 AS INTEGER )
----
56

query I rowsort
SELECT DISTINCT + + ( + + 44 )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-6475
SELECT DISTINCT - 8 * - COUNT( * )
----
8

skipif mysql # not compatible
query I rowsort label-6475
SELECT DISTINCT - 8 * - COUNT ( * )
----
8

query II rowsort
SELECT ALL + - 19 AS col2, - 65
----
-19
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-6477
SELECT + - COUNT( DISTINCT 37 )
----
-1

skipif mysql # not compatible
query I rowsort label-6477
SELECT + - COUNT ( DISTINCT 37 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6478
SELECT MAX( + 15 ) AS col2
----
15

skipif mysql # not compatible
query I rowsort label-6478
SELECT MAX ( + 15 ) AS col2
----
15

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6479
SELECT - 46 * + COUNT( * ) / + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6479
SELECT - 46 * + COUNT ( * ) / + CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6480
SELECT + + 31 * 2 * + COUNT( * ) + + COUNT( * ) * 71
----
133

skipif mysql # not compatible
query I rowsort label-6480
SELECT + + 31 * 2 * + COUNT ( * ) + + COUNT ( * ) * 71
----
133

query I rowsort
SELECT ALL - - 71 * + 10 + + 76
----
786

query I rowsort
SELECT DISTINCT + - ( 68 )
----
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-6483
SELECT ALL - + 51 * - 58 * + 62 * - + COUNT( * ) - + 1 + - 0 * + 57 * CAST( + 96 AS SIGNED ) DIV - - 58 AS col2, COUNT( * ) AS col0, - COUNT( * )
----
-183397
1
-1

skipif mysql # not compatible
query III rowsort label-6483
SELECT ALL - + 51 * - 58 * + 62 * - + COUNT ( * ) - + 1 + - 0 * + 57 * CAST ( + 96 AS INTEGER ) / - - 58 AS col2, COUNT ( * ) AS col0, - COUNT ( * )
----
-183397
1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6484
SELECT + MIN( ALL 37 )
----
37

skipif mysql # not compatible
query I rowsort label-6484
SELECT + MIN ( ALL 37 )
----
37

query I rowsort
SELECT ALL + 62 * + 67 + - + 94 AS col2
----
4060

onlyif mysql # aggregate syntax: 
query I rowsort label-6486
SELECT DISTINCT - COUNT( * ) * + ( - 97 )
----
97

skipif mysql # not compatible
query I rowsort label-6486
SELECT DISTINCT - COUNT ( * ) * + ( - 97 )
----
97

query II rowsort
SELECT DISTINCT + 91 AS col2, + 41 AS col1
----
91
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6488
SELECT CASE ( - COUNT( 12 ) ) WHEN - 20 * + 30 * 91 THEN NULL WHEN + 86 * + + MIN( 70 ) - + 80 THEN - COUNT( ALL - 69 ) * + 10 - CAST( + COUNT( * ) AS SIGNED ) + - 17 * + 86 + - COUNT( + 23 ) * - CASE 42 WHEN + + 54 THEN - COUNT( * ) + CAST( - 95 AS SIGNED ) + - 98 * 16 + - 92 WHEN - 78 THEN + + COUNT( * ) * ( 64 ) * 49 - - 64 END END * + 31 / - 46 + + 80 - 64 + - + MIN( + + 65 ) + + 98 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6488
SELECT CASE ( - COUNT ( 12 ) ) WHEN - 20 * + 30 * 91 THEN NULL WHEN + 86 * + + MIN ( 70 ) - + 80 THEN - COUNT ( ALL - 69 ) * + 10 - CAST ( + COUNT ( * ) AS INTEGER ) + - 17 * + 86 + - COUNT ( + 23 ) * - CASE 42 WHEN + + 54 THEN - COUNT ( * ) + CAST ( - 95 AS INTEGER ) + - 98 * 16 + - 92 WHEN - 78 THEN + + COUNT ( * ) * ( 64 ) * 49 - - 64 END END * + 31 / - 46 + + 80 - 64 + - + MIN ( + + 65 ) + + 98 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6489
SELECT ALL 30 * - + COALESCE ( - 35, + 72 * CASE CASE + - 74 WHEN - 80 * 58 THEN - 72 END WHEN + + 0 THEN - 50 + + COUNT( * ) WHEN COUNT( * ) * - 41 THEN NULL END + - 85 DIV - 58 * 46 * - 17 * + - COALESCE ( - 32, - 90 + + CAST( NULL AS SIGNED ) ) + 22, - 81 ) * - COALESCE ( 8, - 9 ) * + - ( + 46 ) + 96 + 89 col1
----
386585

skipif mysql # not compatible
query I rowsort label-6489
SELECT ALL 30 * - + COALESCE ( - 35, + 72 * CASE CASE + - 74 WHEN - 80 * 58 THEN - 72 END WHEN + + 0 THEN - 50 + + COUNT ( * ) WHEN COUNT ( * ) * - 41 THEN NULL END + - 85 / - 58 * 46 * - 17 * + - COALESCE ( - 32, - 90 + + CAST ( NULL AS INTEGER ) ) + 22, - 81 ) * - COALESCE ( 8, - 9 ) * + - ( + 46 ) + 96 + 89 col1
----
386585

query I rowsort
SELECT + 42 * - 13 AS col0
----
-546

onlyif mysql # aggregate syntax: 
query I rowsort label-6491
SELECT + COUNT( * ) + - 7 AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-6491
SELECT + COUNT ( * ) + - 7 AS col0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-6492
SELECT MIN( ALL + 39 ) AS col1
----
39

skipif mysql # not compatible
query I rowsort label-6492
SELECT MIN ( ALL + 39 ) AS col1
----
39

query I rowsort
SELECT ALL 24 + + 90 * + 99 * + 25
----
222774

onlyif mysql # aggregate syntax: 
query I rowsort label-6494
SELECT - CASE - 76 WHEN - ( + COUNT( * ) ) THEN - - 41 ELSE COUNT( * ) END
----
-1

skipif mysql # not compatible
query I rowsort label-6494
SELECT - CASE - 76 WHEN - ( + COUNT ( * ) ) THEN - - 41 ELSE COUNT ( * ) END
----
-1

query II rowsort
SELECT 96 AS col0, 95
----
96
95

query I rowsort
SELECT - ( - 60 ) AS col1
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-6497
SELECT ALL MAX( DISTINCT + 44 ) AS col2
----
44

skipif mysql # not compatible
query I rowsort label-6497
SELECT ALL MAX ( DISTINCT + 44 ) AS col2
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-6498
SELECT ALL 88 - + - 59 - - 63 + + MIN( ALL 53 )
----
263

skipif mysql # not compatible
query I rowsort label-6498
SELECT ALL 88 - + - 59 - - 63 + + MIN ( ALL 53 )
----
263

query II rowsort
SELECT 82 AS col0, + 7 AS col1
----
82
7

query I rowsort
SELECT ALL 64 - 84 AS col1
----
-20

query I rowsort
SELECT + 76 * - 65
----
-4940

onlyif mysql # aggregate syntax: 
query I rowsort label-6502
SELECT ALL + COUNT( * ) - - 54
----
55

skipif mysql # not compatible
query I rowsort label-6502
SELECT ALL + COUNT ( * ) - - 54
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6503
SELECT - CAST( - - 27 AS SIGNED )
----
-27

skipif mysql # not compatible
query I rowsort label-6503
SELECT - CAST ( - - 27 AS INTEGER )
----
-27

query II rowsort
SELECT ALL 82, + 21 AS col1
----
82
21

onlyif mysql # aggregate syntax: 
query I rowsort label-6505
SELECT DISTINCT MIN( DISTINCT 33 )
----
33

skipif mysql # not compatible
query I rowsort label-6505
SELECT DISTINCT MIN ( DISTINCT 33 )
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-6506
SELECT + COUNT( * ) * + + 75 AS col2
----
75

skipif mysql # not compatible
query I rowsort label-6506
SELECT + COUNT ( * ) * + + 75 AS col2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6507
SELECT ALL + COUNT( * ) * - 17
----
-17

skipif mysql # not compatible
query I rowsort label-6507
SELECT ALL + COUNT ( * ) * - 17
----
-17

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6508
SELECT 91, COALESCE ( - + 95, 69, - + 74 DIV + + COUNT( * ) ) DIV - COUNT( * ) AS col2
----
91
95

skipif mysql # not compatible
query II rowsort label-6508
SELECT 91, COALESCE ( - + 95, 69, - + 74 / + + COUNT ( * ) ) / - COUNT ( * ) AS col2
----
91
95

onlyif mysql # aggregate syntax: 
query II rowsort label-6509
SELECT ALL 88 col1, COUNT( * ) / - + 53 + 80 - - 16 * + 49 * + - 9 + + CASE - 23 WHEN + 76 * + 15 + - + 66 - 79 * + - 55 + 62 + 18 * - + 87 THEN + + 46 WHEN - 74 THEN COUNT( * ) WHEN + + 86 THEN NULL END AS col2
----
88
NULL

skipif mysql # not compatible
query II rowsort label-6509
SELECT ALL 88 col1, COUNT ( * ) / - + 53 + 80 - - 16 * + 49 * + - 9 + + CASE - 23 WHEN + 76 * + 15 + - + 66 - 79 * + - 55 + 62 + 18 * - + 87 THEN + + 46 WHEN - 74 THEN COUNT ( * ) WHEN + + 86 THEN NULL END AS col2
----
88
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6510
SELECT + 37 * + - COUNT( * ) AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-6510
SELECT + 37 * + - COUNT ( * ) AS col0
----
-37

query I rowsort
SELECT - - 18 + 18 * + 99 + + 1 + + 44 AS col0
----
1845

onlyif mysql # aggregate syntax: 
query I rowsort label-6512
SELECT NULLIF ( + CASE - 80 WHEN + 66 THEN NULL WHEN + 14 + + 43 * - + COUNT( * ) * 69 THEN NULL ELSE 57 END, - COUNT( * ) )
----
57

skipif mysql # not compatible
query I rowsort label-6512
SELECT NULLIF ( + CASE - 80 WHEN + 66 THEN NULL WHEN + 14 + + 43 * - + COUNT ( * ) * 69 THEN NULL ELSE 57 END, - COUNT ( * ) )
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6513
SELECT ALL + + MIN( + 65 ) DIV - ( - 89 ) + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-6513
SELECT ALL + + MIN ( + 65 ) / - ( - 89 ) + - COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6514
SELECT - - COUNT( * ) - 98 AS col0
----
-97

skipif mysql # not compatible
query I rowsort label-6514
SELECT - - COUNT ( * ) - 98 AS col0
----
-97

query II rowsort
SELECT + 50 AS col2, 17
----
50
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6516
SELECT - 76 DIV - MAX( 88 ) * + 42 + + 51 + + COUNT( * ) + - 72 * + 31 * + 61 AS col2
----
-136100

skipif mysql # not compatible
query I rowsort label-6516
SELECT - 76 / - MAX ( 88 ) * + 42 + + 51 + + COUNT ( * ) + - 72 * + 31 * + 61 AS col2
----
-136100

onlyif mysql # aggregate syntax: 
query I rowsort label-6517
SELECT + - ( - MIN( DISTINCT - + 12 ) )
----
-12

skipif mysql # not compatible
query I rowsort label-6517
SELECT + - ( - MIN ( DISTINCT - + 12 ) )
----
-12

query I rowsort
SELECT - 39 + + - 82
----
-121

onlyif mysql # aggregate syntax: 
query II rowsort label-6519
SELECT + 73, SUM( + - 66 ) AS col2
----
73
-66

skipif mysql # not compatible
query II rowsort label-6519
SELECT + 73, SUM ( + - 66 ) AS col2
----
73
-66

query I rowsort
SELECT - + 85 * + - ( + + 39 )
----
3315

onlyif mysql # aggregate syntax: 
query II rowsort label-6521
SELECT SUM( DISTINCT - 39 ) * - + ( - + ( + 23 ) ) + + 10 + - 31, 21 AS col2
----
-918
21

skipif mysql # not compatible
query II rowsort label-6521
SELECT SUM ( DISTINCT - 39 ) * - + ( - + ( + 23 ) ) + + 10 + - 31, 21 AS col2
----
-918
21

query I rowsort
SELECT + + 85 AS col1
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-6523
SELECT ALL + 28 DIV - 70 + 26 + + NULLIF ( 70, - 35 ) AS col0
----
96

skipif mysql # not compatible
query I rowsort label-6523
SELECT ALL + 28 / - 70 + 26 + + NULLIF ( 70, - 35 ) AS col0
----
96

query I rowsort
SELECT ALL - + 18 * - 11 AS col0
----
198

query I rowsort
SELECT - 80 + + 6 - + 25 AS col2
----
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-6526
SELECT ALL 84 * - 51 + CASE - MAX( - 94 ) WHEN + 29 THEN - 1 END AS col0, - 4 + 27 + + 25 + + + 42
----
NULL
90

skipif mysql # not compatible
query II rowsort label-6526
SELECT ALL 84 * - 51 + CASE - MAX ( - 94 ) WHEN + 29 THEN - 1 END AS col0, - 4 + 27 + + 25 + + + 42
----
NULL
90

query II rowsort
SELECT - ( + 3 ) + 94, ( + - 96 ) + - - 12 AS col0
----
91
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-6528
SELECT - 36 DIV + 24
----
-1

skipif mysql # not compatible
query I rowsort label-6528
SELECT - 36 / + 24
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-6529
SELECT SUM( + + 5 ) * 54 DIV CASE 56 WHEN - - MAX( - 35 ) * + COUNT( * ) THEN NULL ELSE ( + 10 ) END * - + ( 67 ) - - 94 * + 51 + - MIN( ALL + + 44 ) DIV ( + + 88 ) AS col2, CASE WHEN NOT COUNT( ALL + CAST( - 75 AS SIGNED ) ) NOT BETWEEN NULL AND NULL THEN ( - 86 ) + COUNT( * ) DIV CAST( - 23 AS DECIMAL ) ELSE NULL END AS col2
----
2985
NULL

skipif mysql # not compatible
query II rowsort label-6529
SELECT SUM ( + + 5 ) * 54 / CASE 56 WHEN - - MAX ( - 35 ) * + COUNT ( * ) THEN NULL ELSE ( + 10 ) END * - + ( 67 ) - - 94 * + 51 + - MIN ( ALL + + 44 ) / ( + + 88 ) AS col2, CASE WHEN NOT COUNT ( ALL + CAST ( - 75 AS INTEGER ) ) NOT BETWEEN NULL AND NULL THEN ( - 86 ) + COUNT ( * ) / CAST ( - 23 AS REAL ) ELSE NULL END AS col2
----
2985
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6530
SELECT 99 * + + 10 + - - COUNT( * ) - - MIN( ALL - 6 ) * + MAX( ALL 4 ) * SUM( ( + - CASE CAST( + 55 AS DECIMAL ) WHEN - 0 * 23 - + 53 + - ( - 5 ) / - 16 * - - ( + - 46 ) THEN NULL WHEN - - CAST( NULL AS SIGNED ) * - 27 * 59 - + 24 * 14 THEN NULL ELSE + - 46 - - - 54 END ) ) AS col0
----
-1409

skipif mysql # not compatible
query I rowsort label-6530
SELECT 99 * + + 10 + - - COUNT ( * ) - - MIN ( ALL - 6 ) * + MAX ( ALL 4 ) * SUM ( ( + - CASE CAST ( + 55 AS REAL ) WHEN - 0 * 23 - + 53 + - ( - 5 ) / - 16 * - - ( + - 46 ) THEN NULL WHEN - - CAST ( NULL AS INTEGER ) * - 27 * 59 - + 24 * 14 THEN NULL ELSE + - 46 - - - 54 END ) ) AS col0
----
-1409

query I rowsort
SELECT NULLIF ( 11, 69 ) AS col0
----
11

query I rowsort
SELECT ALL 18 * - - 34 col0
----
612

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6533
SELECT DISTINCT + 9 DIV - ( ( + 71 ) ) * + COALESCE ( - 83, 56 * ( + COALESCE ( - 84, 26 * 92, - - 4 ) ) - - + COUNT( * ), + COALESCE ( - 24, - COALESCE ( + - CAST( 21 AS SIGNED ), - - 1 * AVG ( 59 ) + - COUNT( * ) * - 29 - - 66 ) + + - 44 + + - 69 * 1, COUNT( * ) * - COUNT( * ) ) DIV 23 * - 40 + + 38 )
----
0

skipif mysql # not compatible
query I rowsort label-6533
SELECT DISTINCT + 9 / - ( ( + 71 ) ) * + COALESCE ( - 83, 56 * ( + COALESCE ( - 84, 26 * 92, - - 4 ) ) - - + COUNT ( * ), + COALESCE ( - 24, - COALESCE ( + - CAST ( 21 AS INTEGER ), - - 1 * AVG ( 59 ) + - COUNT ( * ) * - 29 - - 66 ) + + - 44 + + - 69 * 1, COUNT ( * ) * - COUNT ( * ) ) / 23 * - 40 + + 38 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6534
SELECT DISTINCT 11 * + CASE 16 WHEN - - COUNT( * ) THEN + 87 + - 46 + - + 51 * 49 ELSE 57 END
----
627

skipif mysql # not compatible
query I rowsort label-6534
SELECT DISTINCT 11 * + CASE 16 WHEN - - COUNT ( * ) THEN + 87 + - 46 + - + 51 * 49 ELSE 57 END
----
627

onlyif mysql # aggregate syntax: 
query I rowsort label-6535
SELECT ALL SUM( DISTINCT 72 ) - + + 2
----
70

skipif mysql # not compatible
query I rowsort label-6535
SELECT ALL SUM ( DISTINCT 72 ) - + + 2
----
70

onlyif mysql # aggregate syntax: 
query II rowsort label-6536
SELECT SUM( - 32 ) * + + 50 * - 60 + 32, 4 AS col1
----
96032
4

skipif mysql # not compatible
query II rowsort label-6536
SELECT SUM ( - 32 ) * + + 50 * - 60 + 32, 4 AS col1
----
96032
4

onlyif mysql # aggregate syntax: 
query II rowsort label-6537
SELECT ALL + 91 * - 65 AS col0, COUNT( * ) AS col2
----
-5915
1

skipif mysql # not compatible
query II rowsort label-6537
SELECT ALL + 91 * - 65 AS col0, COUNT ( * ) AS col2
----
-5915
1

query I rowsort
SELECT 0 * + - 47
----
0

query I rowsort
SELECT DISTINCT 76 * 63
----
4788

onlyif mysql # aggregate syntax: 
query I rowsort label-6540
SELECT COUNT( * ) + - 90
----
-89

skipif mysql # not compatible
query I rowsort label-6540
SELECT COUNT ( * ) + - 90
----
-89

query II rowsort
SELECT 90 * + 87 AS col1, 76 AS col1
----
7830
76

query I rowsort
SELECT DISTINCT COALESCE ( - 15, 60 ) AS col1
----
-15

query I rowsort
SELECT DISTINCT - 19 * 49
----
-931

query II rowsort
SELECT ALL + 50 + 63 AS col2, - 68 * + 52
----
113
-3536

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6545
SELECT DISTINCT COUNT( * ) + - + 64 * - COUNT( * ) + - 51 DIV - 64 AS col2
----
65

skipif mysql # not compatible
query I rowsort label-6545
SELECT DISTINCT COUNT ( * ) + - + 64 * - COUNT ( * ) + - 51 / - 64 AS col2
----
65

query I rowsort
SELECT 15 * 52
----
780

query I rowsort
SELECT - 71 + - 16 AS col1
----
-87

query I rowsort
SELECT DISTINCT 41 + - + 53 AS col2
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6549
SELECT - ( CAST( + 19 AS SIGNED ) ) AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-6549
SELECT - ( CAST ( + 19 AS INTEGER ) ) AS col0
----
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-6550
SELECT 5 + - 2 DIV + 21
----
5

skipif mysql # not compatible
query I rowsort label-6550
SELECT 5 + - 2 / + 21
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6551
SELECT ALL CASE + COUNT( * ) WHEN - - 73 THEN + + 18 WHEN - COUNT( * ) * + + 70 * - 92 THEN NULL END + + ( - + 31 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6551
SELECT ALL CASE + COUNT ( * ) WHEN - - 73 THEN + + 18 WHEN - COUNT ( * ) * + + 70 * - 92 THEN NULL END + + ( - + 31 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6552
SELECT - 37 * COUNT( * )
----
-37

skipif mysql # not compatible
query I rowsort label-6552
SELECT - 37 * COUNT ( * )
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-6553
SELECT DISTINCT + CASE + 26 WHEN 39 + + - 74 THEN - 11 WHEN + MAX( + 92 ) THEN + - 0 END + - NULLIF ( - 60, 17 ) + - + 96 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6553
SELECT DISTINCT + CASE + 26 WHEN 39 + + - 74 THEN - 11 WHEN + MAX ( + 92 ) THEN + - 0 END + - NULLIF ( - 60, 17 ) + - + 96 AS col1
----
NULL

query I rowsort
SELECT + ( + + 37 ) * - - 68
----
2516

query I rowsort
SELECT DISTINCT 52 + + 11
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6556
SELECT 69 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6556
SELECT 69 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6557
SELECT 75 DIV - COALESCE ( - ( + 87 ), + 51 ) * + MAX( DISTINCT + - 21 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6557
SELECT 75 / - COALESCE ( - ( + 87 ), + 51 ) * + MAX ( DISTINCT + - 21 ) AS col0
----
0

query I rowsort
SELECT ALL + 94 - + - 85 + + 60 + - 68 AS col2
----
171

onlyif mysql # aggregate syntax: 
query I rowsort label-6559
SELECT 94 * - 79 - 61 + - + SUM( DISTINCT 82 ) col1
----
-7569

skipif mysql # not compatible
query I rowsort label-6559
SELECT 94 * - 79 - 61 + - + SUM ( DISTINCT 82 ) col1
----
-7569

query I rowsort
SELECT DISTINCT + 22 * + 84 * + + 71
----
131208

query I rowsort
SELECT 31 * + 64 - - + 0 + + 94 AS col0
----
2078

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6562
SELECT ALL - 0, CAST( 4 AS SIGNED ) AS col1
----
0
4

skipif mysql # not compatible
query II rowsort label-6562
SELECT ALL - 0, CAST ( 4 AS INTEGER ) AS col1
----
0
4

query II rowsort
SELECT 16 col2, 2 + - - 87 AS col1
----
16
89

query II rowsort
SELECT ALL - COALESCE ( 98, - 42, + 75 ) AS col1, + 69 * + 17 - - 91 AS col2
----
-98
1264

query I rowsort
SELECT 81 * - 27
----
-2187

onlyif mysql # aggregate syntax: 
query I rowsort label-6566
SELECT ALL - COUNT( * ) - + - 94 * COUNT( - 90 ) * + 12 * + 86 * + NULLIF ( - - 26, - 13 * - - 62 + + + COALESCE ( - 8, + ( + 87 ) / + COUNT( * ) ) + - 54 ) + + 13
----
2522220

skipif mysql # not compatible
query I rowsort label-6566
SELECT ALL - COUNT ( * ) - + - 94 * COUNT ( - 90 ) * + 12 * + 86 * + NULLIF ( - - 26, - 13 * - - 62 + + + COALESCE ( - 8, + ( + 87 ) / + COUNT ( * ) ) + - 54 ) + + 13
----
2522220

query II rowsort
SELECT 29, - 25 col1
----
29
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-6568
SELECT - 96 * 43 DIV 74 - - 59 - + 20
----
-16

skipif mysql # not compatible
query I rowsort label-6568
SELECT - 96 * 43 / 74 - - 59 - + 20
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-6569
SELECT 71 * + - COALESCE ( 6, 74 * + COUNT( * ) * + 53 ) * + 52 * - + COUNT( * )
----
22152

skipif mysql # not compatible
query I rowsort label-6569
SELECT 71 * + - COALESCE ( 6, 74 * + COUNT ( * ) * + 53 ) * + 52 * - + COUNT ( * )
----
22152

onlyif mysql # aggregate syntax: 
query I rowsort label-6570
SELECT + COUNT( DISTINCT - + NULLIF ( 73, + ( + + 57 ) ) ) * - ( COUNT( * ) ) + - 97 + + 67 + + - ( - - 16 ) AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-6570
SELECT + COUNT ( DISTINCT - + NULLIF ( 73, + ( + + 57 ) ) ) * - ( COUNT ( * ) ) + - 97 + + 67 + + - ( - - 16 ) AS col2
----
-47

query II rowsort
SELECT NULLIF ( - 42, + - 35 ) * - 17 AS col2, + 47
----
714
47

onlyif mysql # DIV for integer division: 
query I rowsort label-6572
SELECT ALL + 60 DIV + + 33
----
1

skipif mysql # not compatible
query I rowsort label-6572
SELECT ALL + 60 / + + 33
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6573
SELECT ALL COUNT( * ) AS col0, + 88 AS col2
----
1
88

skipif mysql # not compatible
query II rowsort label-6573
SELECT ALL COUNT ( * ) AS col0, + 88 AS col2
----
1
88

query I rowsort
SELECT ALL 40 + 55 AS col2
----
95

query I rowsort
SELECT 73 + 88 col2
----
161

onlyif mysql # DIV for integer division: 
query I rowsort label-6576
SELECT ALL + 70 DIV 7
----
10

skipif mysql # not compatible
query I rowsort label-6576
SELECT ALL + 70 / 7
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6577
SELECT + 19 DIV + COUNT( * ) - + 32 * 9 AS col2
----
-269

skipif mysql # not compatible
query I rowsort label-6577
SELECT + 19 / + COUNT ( * ) - + 32 * 9 AS col2
----
-269

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6578
SELECT ALL - 79 + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6578
SELECT ALL - 79 + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6579
SELECT ALL 72 + + 81 + - 53 * COUNT( * ) * + 41 * + 0
----
153

skipif mysql # not compatible
query I rowsort label-6579
SELECT ALL 72 + + 81 + - 53 * COUNT ( * ) * + 41 * + 0
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-6580
SELECT SUM( 92 ) * COUNT( * ) AS col1
----
92

skipif mysql # not compatible
query I rowsort label-6580
SELECT SUM ( 92 ) * COUNT ( * ) AS col1
----
92

query I rowsort
SELECT - ( + 96 ) col0
----
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-6582
SELECT - ( ( + + 21 ) ) DIV + - 34 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6582
SELECT - ( ( + + 21 ) ) / + - 34 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6583
SELECT DISTINCT - COUNT( * ), - 31 * + 59 + 53 AS col2
----
-1
-1776

skipif mysql # not compatible
query II rowsort label-6583
SELECT DISTINCT - COUNT ( * ), - 31 * + 59 + 53 AS col2
----
-1
-1776

onlyif mysql # aggregate syntax: 
query I rowsort label-6584
SELECT ALL - COUNT( * ) + 77 + - 9 * + - 23 * + - COUNT( * ) + + 95
----
-36

skipif mysql # not compatible
query I rowsort label-6584
SELECT ALL - COUNT ( * ) + 77 + - 9 * + - 23 * + - COUNT ( * ) + + 95
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-6585
SELECT + 22 - - + COUNT( DISTINCT - 65 ) AS col2
----
23

skipif mysql # not compatible
query I rowsort label-6585
SELECT + 22 - - + COUNT ( DISTINCT - 65 ) AS col2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-6586
SELECT DISTINCT - COALESCE ( ( + MIN( + 77 ) ), + 62 ) + 76 * + 23
----
1671

skipif mysql # not compatible
query I rowsort label-6586
SELECT DISTINCT - COALESCE ( ( + MIN ( + 77 ) ), + 62 ) + 76 * + 23
----
1671

query II rowsort
SELECT ALL + 66 AS col2, - 20
----
66
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-6588
SELECT + COUNT( * ) * - 47
----
-47

skipif mysql # not compatible
query I rowsort label-6588
SELECT + COUNT ( * ) * - 47
----
-47

query I rowsort
SELECT ALL - 77 + 36
----
-41

query I rowsort
SELECT ALL + 14 * 93 AS col1
----
1302

query I rowsort
SELECT - ( - 34 ) AS col1
----
34

query I rowsort
SELECT DISTINCT 41 * - 85 AS col2
----
-3485

query I rowsort
SELECT 78 + + 18 AS col0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6594
SELECT + MAX( ALL - + 69 )
----
-69

skipif mysql # not compatible
query I rowsort label-6594
SELECT + MAX ( ALL - + 69 )
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-6595
SELECT ALL + 12 * - + COUNT( * ) * - 71 * - 26 + - 37 + 22 * + 77 - + 74
----
-20569

skipif mysql # not compatible
query I rowsort label-6595
SELECT ALL + 12 * - + COUNT ( * ) * - 71 * - 26 + - 37 + 22 * + 77 - + 74
----
-20569

onlyif mysql # aggregate syntax: 
query I rowsort label-6596
SELECT ALL 7 * - 15 * + + COUNT( * ) * + 36
----
-3780

skipif mysql # not compatible
query I rowsort label-6596
SELECT ALL 7 * - 15 * + + COUNT ( * ) * + 36
----
-3780

query I rowsort
SELECT DISTINCT 42 * + 22
----
924

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6598
SELECT ALL 81 * - + ( SUM( + 5 ) ) - - 33 + - SUM( DISTINCT - 58 ) * + 95 + - - ( + - COUNT( * ) ) DIV + + 32 + - - 22 * - 30 + + 22 * - 9 AS col2
----
4280

skipif mysql # not compatible
query I rowsort label-6598
SELECT ALL 81 * - + ( SUM ( + 5 ) ) - - 33 + - SUM ( DISTINCT - 58 ) * + 95 + - - ( + - COUNT ( * ) ) / + + 32 + - - 22 * - 30 + + 22 * - 9 AS col2
----
4280

query II rowsort
SELECT ALL 71 * + 59 AS col1, + 91
----
4189
91

query I rowsort
SELECT ALL + 45 col1
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6601
SELECT + CASE + 27 WHEN - + CAST( - - 2 AS SIGNED ) + - - COUNT( * ) THEN NULL WHEN + 41 THEN - - COUNT( * ) * - + 78 - 95 ELSE NULL END * + 25 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6601
SELECT + CASE + 27 WHEN - + CAST ( - - 2 AS INTEGER ) + - - COUNT ( * ) THEN NULL WHEN + 41 THEN - - COUNT ( * ) * - + 78 - 95 ELSE NULL END * + 25 AS col1
----
NULL

query I rowsort
SELECT - 35 * 11 * + 59
----
-22715

onlyif mysql # aggregate syntax: 
query I rowsort label-6603
SELECT SUM( ALL + 17 )
----
17

skipif mysql # not compatible
query I rowsort label-6603
SELECT SUM ( ALL + 17 )
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-6604
SELECT + 99 DIV + ( - - 34 ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-6604
SELECT + 99 / + ( - - 34 ) AS col1
----
2

query I rowsort
SELECT 73 * - 71 + 17
----
-5166

query I rowsort
SELECT - 81 + 56 AS col0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-6607
SELECT DISTINCT + 55 + + ( + + COUNT( * ) ) AS col0
----
56

skipif mysql # not compatible
query I rowsort label-6607
SELECT DISTINCT + 55 + + ( + + COUNT ( * ) ) AS col0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-6608
SELECT DISTINCT + COUNT( * ) + CASE + 38 WHEN - 53 * - CASE - ( 61 ) WHEN + - 16 * - 50 + - 70 + 18 / + 12 * - 35 * + NULLIF ( - 92, COUNT( * ) ) THEN NULL ELSE - 89 END THEN NULL ELSE 2 END AS col0
----
3

skipif mysql # not compatible
query I rowsort label-6608
SELECT DISTINCT + COUNT ( * ) + CASE + 38 WHEN - 53 * - CASE - ( 61 ) WHEN + - 16 * - 50 + - 70 + 18 / + 12 * - 35 * + NULLIF ( - 92, COUNT ( * ) ) THEN NULL ELSE - 89 END THEN NULL ELSE 2 END AS col0
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6609
SELECT - 46 * CAST( NULL AS DECIMAL ) AS col0, + 40 AS col1
----
NULL
40

skipif mysql # not compatible
query II rowsort label-6609
SELECT - 46 * CAST ( NULL AS REAL ) AS col0, + 40 AS col1
----
NULL
40

query I rowsort
SELECT ALL + 25 + - ( - - ( 50 ) ) col0
----
-25

query I rowsort
SELECT ALL + - 45 + - 26
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6612
SELECT - + COUNT( * ) + + - COALESCE ( - 97, - - 62 * - - CAST( + 5 AS SIGNED ) - + 26 + + 93 * - 10 * - + 30 DIV - - 53 * + + 6 )
----
96

skipif mysql # not compatible
query I rowsort label-6612
SELECT - + COUNT ( * ) + + - COALESCE ( - 97, - - 62 * - - CAST ( + 5 AS INTEGER ) - + 26 + + 93 * - 10 * - + 30 / - - 53 * + + 6 )
----
96

query I rowsort
SELECT - 44 * + - 4
----
176

query I rowsort
SELECT - NULLIF ( - + 59, + 42 + + - 73 + - 67 + - + 35 * + 87 ) AS col2
----
59

query I rowsort
SELECT ALL - 42 + - - 5 * + 65 * + - 33 * - 59 * - 45
----
-28474917

query I rowsort
SELECT - + 62 + - 6 + + 63 AS col1
----
-5

query I rowsort
SELECT DISTINCT 59 + NULLIF ( 80, - 84 ) * + - 15
----
-1141

onlyif mysql # DIV for integer division: 
query I rowsort label-6618
SELECT DISTINCT - + ( 38 ) DIV - - 85
----
0

skipif mysql # not compatible
query I rowsort label-6618
SELECT DISTINCT - + ( 38 ) / - - 85
----
0

query I rowsort
SELECT DISTINCT + 59 * 69 AS col1
----
4071

query II rowsort
SELECT ALL - 48 - + 97 AS col2, 17 AS col2
----
-145
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6621
SELECT - 46 * 71 - + - CAST( - + MIN( ALL ( ( - CAST( - 2 AS SIGNED ) ) ) ) AS SIGNED ) AS col0
----
-3268

skipif mysql # not compatible
query I rowsort label-6621
SELECT - 46 * 71 - + - CAST ( - + MIN ( ALL ( ( - CAST ( - 2 AS INTEGER ) ) ) ) AS INTEGER ) AS col0
----
-3268

query I rowsort
SELECT + - ( 84 ) + + - 64
----
-148

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6623
SELECT + 73 DIV - 34 + + 35 + COUNT( * ) + - + COUNT( * ) * - 72 AS col2
----
106

skipif mysql # not compatible
query I rowsort label-6623
SELECT + 73 / - 34 + + 35 + COUNT ( * ) + - + COUNT ( * ) * - 72 AS col2
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-6624
SELECT - - 77 * - 37 * - NULLIF ( + + 25, COUNT( * ) ) AS col2
----
71225

skipif mysql # not compatible
query I rowsort label-6624
SELECT - - 77 * - 37 * - NULLIF ( + + 25, COUNT ( * ) ) AS col2
----
71225

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6625
SELECT - + 60 DIV + - CAST( + 35 AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-6625
SELECT - + 60 / + - CAST ( + 35 AS INTEGER )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6626
SELECT ( - - SUM( - 7 ) )
----
-7

skipif mysql # not compatible
query I rowsort label-6626
SELECT ( - - SUM ( - 7 ) )
----
-7

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6627
SELECT + COALESCE ( - CAST( - + 58 AS SIGNED ), + CASE + 60 WHEN + 48 THEN + 77 WHEN - 47 + + 85 THEN - ( - - 12 ) DIV 65 ELSE + - 10 END, - 54 * - + 9 * 22 - - 42 ) AS col0
----
58

skipif mysql # not compatible
query I rowsort label-6627
SELECT + COALESCE ( - CAST ( - + 58 AS INTEGER ), + CASE + 60 WHEN + 48 THEN + 77 WHEN - 47 + + 85 THEN - ( - - 12 ) / 65 ELSE + - 10 END, - 54 * - + 9 * 22 - - 42 ) AS col0
----
58

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6628
SELECT + CASE - CAST( NULL AS DECIMAL ) WHEN COUNT( * ) THEN NULL WHEN - 57 * - - 40 + + 71 - - 96 + + COALESCE ( COUNT( ALL + + 93 ), + 11, - 37 ) + + ( - 72 ) + - 75 * + 71 * 31 * MAX( DISTINCT + 43 ) THEN + + ( + ( - 41 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6628
SELECT + CASE - CAST ( NULL AS REAL ) WHEN COUNT ( * ) THEN NULL WHEN - 57 * - - 40 + + 71 - - 96 + + COALESCE ( COUNT ( ALL + + 93 ), + 11, - 37 ) + + ( - 72 ) + - 75 * + 71 * 31 * MAX ( DISTINCT + 43 ) THEN + + ( + ( - 41 ) ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6629
SELECT + 12 * - CAST( - CAST( - - ( + 34 ) AS SIGNED ) AS SIGNED ) * - 4 - + 57 - - - 39 + - - ( + 69 ) col1
----
-1659

skipif mysql # not compatible
query I rowsort label-6629
SELECT + 12 * - CAST ( - CAST ( - - ( + 34 ) AS INTEGER ) AS INTEGER ) * - 4 - + 57 - - - 39 + - - ( + 69 ) col1
----
-1659

onlyif mysql # aggregate syntax: 
query I rowsort label-6630
SELECT - 24 * - COUNT( * )
----
24

skipif mysql # not compatible
query I rowsort label-6630
SELECT - 24 * - COUNT ( * )
----
24

query I rowsort
SELECT ( + + 85 ) AS col0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-6632
SELECT + CASE 53 WHEN + AVG ( ALL + 50 ) * - ( ( + 49 ) ) * + 78 + - ( + 76 ) + - ( + - ( + 38 ) ) - + + 34 + - COUNT( * ) THEN - 60 * - 83 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6632
SELECT + CASE 53 WHEN + AVG ( ALL + 50 ) * - ( ( + 49 ) ) * + 78 + - ( + 76 ) + - ( + - ( + 38 ) ) - + + 34 + - COUNT ( * ) THEN - 60 * - 83 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6633
SELECT ( - + NULLIF ( COUNT( * ), + 83 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-6633
SELECT ( - + NULLIF ( COUNT ( * ), + 83 ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6634
SELECT ALL - 28 * + + COUNT( * ) + - 17 * - 9 * + 73 AS col0
----
11141

skipif mysql # not compatible
query I rowsort label-6634
SELECT ALL - 28 * + + COUNT ( * ) + - 17 * - 9 * + 73 AS col0
----
11141

query II rowsort
SELECT + 88 * + 38 - - 38, 27 + 6 AS col0
----
3382
33

onlyif mysql # aggregate syntax: 
query II rowsort label-6636
SELECT ALL + MAX( ALL + - ( - 73 ) ) * - - 36 + - 39 + - + 60 * 46 + 74 AS col0, - 19 AS col0
----
-97
-19

skipif mysql # not compatible
query II rowsort label-6636
SELECT ALL + MAX ( ALL + - ( - 73 ) ) * - - 36 + - 39 + - + 60 * 46 + 74 AS col0, - 19 AS col0
----
-97
-19

query I rowsort
SELECT + 93 - + - 15 col1
----
108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6638
SELECT ALL + COUNT( ALL CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-6638
SELECT ALL + COUNT ( ALL CAST ( NULL AS INTEGER ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6639
SELECT CASE - - 5 WHEN - MAX( ALL + + 79 ) * + - 1 THEN NULL WHEN - 98 THEN - 57 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6639
SELECT CASE - - 5 WHEN - MAX ( ALL + + 79 ) * + - 1 THEN NULL WHEN - 98 THEN - 57 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6640
SELECT ALL + 1 * 96 + + COUNT( * ) AS col2
----
97

skipif mysql # not compatible
query I rowsort label-6640
SELECT ALL + 1 * 96 + + COUNT ( * ) AS col2
----
97

query I rowsort
SELECT DISTINCT + ( - 54 ) * 99 + 73 * 56 + + 27 * + 77
----
821

query I rowsort
SELECT ALL + + ( - NULLIF ( - 14, - - 13 * 28 * - 8 - - 38 + + 61 ) ) AS col2
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-6643
SELECT DISTINCT 89 DIV + 79 + 78 AS col0
----
79

skipif mysql # not compatible
query I rowsort label-6643
SELECT DISTINCT 89 / + 79 + 78 AS col0
----
79

query I rowsort
SELECT + 58 + - + 27 * 87 AS col1
----
-2291

query I rowsort
SELECT - - 93 - + NULLIF ( + 42, 38 )
----
51

query I rowsort
SELECT ALL + 91 * + 98 + 51 + - 78 - - 5
----
8896

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6647
SELECT + - CASE 92 WHEN 67 THEN + CAST( COALESCE ( + 85, + COUNT( * ) / 53 + - + 92, - + CAST( - 18 AS SIGNED ) ) AS SIGNED ) WHEN - 45 THEN NULL END + - 7 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6647
SELECT + - CASE 92 WHEN 67 THEN + CAST ( COALESCE ( + 85, + COUNT ( * ) / 53 + - + 92, - + CAST ( - 18 AS INTEGER ) ) AS INTEGER ) WHEN - 45 THEN NULL END + - 7 AS col1
----
NULL

query I rowsort
SELECT + 75 * + - 94 - - 99
----
-6951

query I rowsort
SELECT - 44 * + + 43 AS col2
----
-1892

onlyif mysql # aggregate syntax: 
query I rowsort label-6650
SELECT - MIN( DISTINCT + 23 ) AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-6650
SELECT - MIN ( DISTINCT + 23 ) AS col1
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6651
SELECT - + COALESCE ( + 77, - - 15 * - ( - ( + 14 ) ) * - 25 DIV CAST( + 30 AS SIGNED ) ) + + + 7 + + COUNT( * ) * - 39 + - 53 AS col1
----
-162

skipif mysql # not compatible
query I rowsort label-6651
SELECT - + COALESCE ( + 77, - - 15 * - ( - ( + 14 ) ) * - 25 / CAST ( + 30 AS INTEGER ) ) + + + 7 + + COUNT ( * ) * - 39 + - 53 AS col1
----
-162

query II rowsort
SELECT 79, 75 AS col2
----
79
75

query I rowsort
SELECT - ( - + 29 ) AS col0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-6654
SELECT ALL + MIN( + 11 )
----
11

skipif mysql # not compatible
query I rowsort label-6654
SELECT ALL + MIN ( + 11 )
----
11

query I rowsort
SELECT - + 31 * - + 76 * ( - ( - 0 ) ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6656
SELECT - + COUNT( * ) * - + 84 * CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6656
SELECT - + COUNT ( * ) * - + 84 * CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6657
SELECT - COUNT( * ) + 49 AS col2
----
48

skipif mysql # not compatible
query I rowsort label-6657
SELECT - COUNT ( * ) + 49 AS col2
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-6658
SELECT DISTINCT - 3 * 47 DIV - 58
----
2

skipif mysql # not compatible
query I rowsort label-6658
SELECT DISTINCT - 3 * 47 / - 58
----
2

query II rowsort
SELECT DISTINCT 37, 56 AS col2
----
37
56

query II rowsort
SELECT ALL 88, - 28 AS col1
----
88
-28

query II rowsort
SELECT 84 * - + 55, 56 * - ( - - 73 ) AS col0
----
-4620
-4088

query I rowsort
SELECT ALL 71 * + 90 col0
----
6390

query I rowsort
SELECT DISTINCT - 63 * - + 82
----
5166

onlyif mysql # aggregate syntax: 
query I rowsort label-6664
SELECT - 78 * - + COUNT( * ) - + 32 + 33 + + + NULLIF ( 27, + 82 + + 29 ) col0
----
106

skipif mysql # not compatible
query I rowsort label-6664
SELECT - 78 * - + COUNT ( * ) - + 32 + 33 + + + NULLIF ( 27, + 82 + + 29 ) col0
----
106

query I rowsort
SELECT ALL + 45 * - 7 AS col1
----
-315

onlyif mysql # aggregate syntax: 
query I rowsort label-6666
SELECT 74 + - - MIN( DISTINCT + 98 ) AS col0
----
172

skipif mysql # not compatible
query I rowsort label-6666
SELECT 74 + - - MIN ( DISTINCT + 98 ) AS col0
----
172

onlyif mysql # aggregate syntax: 
query I rowsort label-6667
SELECT 84 * + 22 * + CASE + 85 WHEN 78 + + 54 THEN - 14 WHEN - + 45 THEN NULL WHEN COUNT( * ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6667
SELECT 84 * + 22 * + CASE + 85 WHEN 78 + + 54 THEN - 14 WHEN - + 45 THEN NULL WHEN COUNT ( * ) THEN NULL END AS col0
----
NULL

query I rowsort
SELECT 19 * - 99 AS col2
----
-1881

onlyif mysql # aggregate syntax: 
query I rowsort label-6669
SELECT ALL - 73 + - COUNT( * ) col0
----
-74

skipif mysql # not compatible
query I rowsort label-6669
SELECT ALL - 73 + - COUNT ( * ) col0
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-6670
SELECT ALL - MIN( + + 59 ) + + 54 + + + 49
----
44

skipif mysql # not compatible
query I rowsort label-6670
SELECT ALL - MIN ( + + 59 ) + + 54 + + + 49
----
44

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6671
SELECT COUNT( * ) + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6671
SELECT COUNT ( * ) + CAST ( NULL AS REAL )
----
NULL

query II rowsort
SELECT 61 AS col1, 18 + + + 26
----
61
44

query I rowsort
SELECT 99 * 66 AS col1
----
6534

query I rowsort
SELECT 34 + - 43 col0
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-6675
SELECT 42 AS col1, MIN( ALL - - ( + ( + 49 ) ) ) * + CASE - 28 WHEN + + 25 * + + COUNT( * ) THEN - 8 - + + CASE 55 WHEN + MIN( DISTINCT + + 69 ) THEN + - 27 / - 17 * COUNT( * ) / - 67 + + + 44 WHEN - 7 THEN - 7 - + 73 + - 50 * 86 WHEN 91 THEN + - AVG ( DISTINCT + 70 ) * - 4 + ( + 8 ) END - 43 END * + 89
----
42
NULL

skipif mysql # not compatible
query II rowsort label-6675
SELECT 42 AS col1, MIN ( ALL - - ( + ( + 49 ) ) ) * + CASE - 28 WHEN + + 25 * + + COUNT ( * ) THEN - 8 - + + CASE 55 WHEN + MIN ( DISTINCT + + 69 ) THEN + - 27 / - 17 * COUNT ( * ) / - 67 + + + 44 WHEN - 7 THEN - 7 - + 73 + - 50 * 86 WHEN 91 THEN + - AVG ( DISTINCT + 70 ) * - 4 + ( + 8 ) END - 43 END * + 89
----
42
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6676
SELECT CAST( + - COUNT( * ) AS SIGNED ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-6676
SELECT CAST ( + - COUNT ( * ) AS INTEGER ) col1
----
-1

query I rowsort
SELECT ALL 96 - + 31 + - 41
----
24

query I rowsort
SELECT 25 * 17 AS col0
----
425

onlyif mysql # aggregate syntax: 
query II rowsort label-6679
SELECT ALL - + COUNT( * ) AS col1, - 45 + + 25
----
-1
-20

skipif mysql # not compatible
query II rowsort label-6679
SELECT ALL - + COUNT ( * ) AS col1, - 45 + + 25
----
-1
-20

query I rowsort
SELECT + - 28 AS col2
----
-28

query II rowsort
SELECT ALL - 15, - ( + 70 ) AS col2
----
-15
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6682
SELECT 57, - ( - - 76 ) * + 17 * + NULLIF ( + NULLIF ( + - COUNT( * ), - - NULLIF ( + + MAX( - 12 ), - CAST( 6 AS SIGNED ) ) * - MIN( - - ( 7 ) ) + + - 81 * + - AVG ( + 79 ) + CAST( 58 AS SIGNED ) * SUM( - 86 ) ), ( - 29 ) ) AS col1
----
57
1292

skipif mysql # not compatible
query II rowsort label-6682
SELECT 57, - ( - - 76 ) * + 17 * + NULLIF ( + NULLIF ( + - COUNT ( * ), - - NULLIF ( + + MAX ( - 12 ), - CAST ( 6 AS INTEGER ) ) * - MIN ( - - ( 7 ) ) + + - 81 * + - AVG ( + 79 ) + CAST ( 58 AS INTEGER ) * SUM ( - 86 ) ), ( - 29 ) ) AS col1
----
57
1292

query I rowsort
SELECT DISTINCT NULLIF ( - 59, - 27 ) AS col2
----
-59

query I rowsort
SELECT ALL 62 - - 87 AS col1
----
149

query II rowsort
SELECT DISTINCT + 92, 27 AS col2
----
92
27

query I rowsort
SELECT ALL - 1 - + 22
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-6687
SELECT + COALESCE ( - - 70, - COUNT( * ) ) AS col0
----
70

skipif mysql # not compatible
query I rowsort label-6687
SELECT + COALESCE ( - - 70, - COUNT ( * ) ) AS col0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-6688
SELECT ALL - COUNT( ALL 27 )
----
-1

skipif mysql # not compatible
query I rowsort label-6688
SELECT ALL - COUNT ( ALL 27 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6689
SELECT CASE + 59 WHEN 80 THEN NULL WHEN - 5 * - 10 - + - COUNT( * ) THEN 59 + - - ( + + 52 ) + 36 * + - 28 ELSE - COUNT( * ) * - - CAST( NULL AS DECIMAL ) END - + 63 * ( MAX( ALL 36 ) ) + + ( 13 ) + 63 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6689
SELECT CASE + 59 WHEN 80 THEN NULL WHEN - 5 * - 10 - + - COUNT ( * ) THEN 59 + - - ( + + 52 ) + 36 * + - 28 ELSE - COUNT ( * ) * - - CAST ( NULL AS REAL ) END - + 63 * ( MAX ( ALL 36 ) ) + + ( 13 ) + 63 col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6690
SELECT ( + 86 ) / NULLIF ( 61, CAST( NULL AS DECIMAL ) ) * + ( - 12 ) * + - CASE + 64 WHEN + + 21 THEN + 47 + ( + 96 ) ELSE NULL END * + + ( + AVG ( - 69 ) ) + - + 95 * + + 49 / - COUNT( * ) + + ( - 81 ) col2, 10
----
NULL
10

skipif mysql # not compatible
query II rowsort label-6690
SELECT ( + 86 ) / NULLIF ( 61, CAST ( NULL AS REAL ) ) * + ( - 12 ) * + - CASE + 64 WHEN + + 21 THEN + 47 + ( + 96 ) ELSE NULL END * + + ( + AVG ( - 69 ) ) + - + 95 * + + 49 / - COUNT ( * ) + + ( - 81 ) col2, 10
----
NULL
10

query I rowsort
SELECT ALL ( - 7 )
----
-7

query I rowsort
SELECT 84 * - + 24 col0
----
-2016

query I rowsort
SELECT 28 + - 21 AS col0
----
7

query II rowsort
SELECT - 60, 73 AS col2
----
-60
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6695
SELECT + CAST( + CAST( - 16 AS SIGNED ) AS SIGNED )
----
-16

skipif mysql # not compatible
query I rowsort label-6695
SELECT + CAST ( + CAST ( - 16 AS INTEGER ) AS INTEGER )
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-6696
SELECT ALL COUNT( * ) * - - 24 col1
----
24

skipif mysql # not compatible
query I rowsort label-6696
SELECT ALL COUNT ( * ) * - - 24 col1
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-6697
SELECT 76 DIV + 47 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6697
SELECT 76 / + 47 AS col0
----
1

query I rowsort
SELECT 7 + 13 + 62
----
82

query I rowsort
SELECT 22 - 40 + 13 + + 67 AS col2
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-6700
SELECT ALL - - COUNT( * ) * 33 + + - 47 col1
----
-14

skipif mysql # not compatible
query I rowsort label-6700
SELECT ALL - - COUNT ( * ) * 33 + + - 47 col1
----
-14

query II rowsort
SELECT ALL - 97 AS col0, - 16
----
-97
-16

query I rowsort
SELECT ALL 42 + 76 * - 50
----
-3758

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6703
SELECT MIN( 27 ) * CASE - 85 WHEN + 26 THEN NULL WHEN + COUNT( * ) + - CAST( NULL AS SIGNED ) - + + NULLIF ( + 18, 40 * + 13 + - 70 ) THEN + 57 + + + 85 + - + 10 * - + 88 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6703
SELECT MIN ( 27 ) * CASE - 85 WHEN + 26 THEN NULL WHEN + COUNT ( * ) + - CAST ( NULL AS INTEGER ) - + + NULLIF ( + 18, 40 * + 13 + - 70 ) THEN + 57 + + + 85 + - + 10 * - + 88 END AS col0
----
NULL

query II rowsort
SELECT 0 + 40 AS col2, 71
----
40
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6705
SELECT ALL + 5 + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6705
SELECT ALL + 5 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6706
SELECT - COUNT( + ( + 63 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6706
SELECT - COUNT ( + ( + 63 ) ) AS col1
----
-1

query I rowsort
SELECT 19 + 47
----
66

query I rowsort
SELECT ALL + 41 + 43
----
84

query I rowsort
SELECT 90 * 55
----
4950

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6710
SELECT DISTINCT - MAX( CAST( 38 AS SIGNED ) ) AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-6710
SELECT DISTINCT - MAX ( CAST ( 38 AS INTEGER ) ) AS col2
----
-38

query II rowsort
SELECT DISTINCT 41 + - 40 * - 71 AS col1, - 33
----
2881
-33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6712
SELECT ALL + NULLIF ( - 31, - 29 ) * 49 DIV - - MIN( + - 79 ) + - 16
----
3

skipif mysql # not compatible
query I rowsort label-6712
SELECT ALL + NULLIF ( - 31, - 29 ) * 49 / - - MIN ( + - 79 ) + - 16
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-6713
SELECT 9 DIV + + 90 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6713
SELECT 9 / + + 90 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6714
SELECT DISTINCT + 87 * - 5 * + - ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6714
SELECT DISTINCT + 87 * - 5 * + - ( - CAST ( NULL AS INTEGER ) )
----
NULL

query II rowsort
SELECT 99 + + 4 AS col0, + 71
----
103
71

onlyif mysql # aggregate syntax: 
query I rowsort label-6716
SELECT COUNT( * ) * + 34 * - 0 * 72 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6716
SELECT COUNT ( * ) * + 34 * - 0 * 72 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6717
SELECT ALL - 51 * - + 66 * - - MAX( ALL + 96 )
----
323136

skipif mysql # not compatible
query I rowsort label-6717
SELECT ALL - 51 * - + 66 * - - MAX ( ALL + 96 )
----
323136

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6718
SELECT DISTINCT + CASE - 24 WHEN - 12 THEN NULL WHEN - 33 - + + 99 THEN NULL WHEN - CAST( 3 AS SIGNED ) THEN NULL ELSE - ( - 46 ) END * COUNT( * ) AS col2
----
46

skipif mysql # not compatible
query I rowsort label-6718
SELECT DISTINCT + CASE - 24 WHEN - 12 THEN NULL WHEN - 33 - + + 99 THEN NULL WHEN - CAST ( 3 AS INTEGER ) THEN NULL ELSE - ( - 46 ) END * COUNT ( * ) AS col2
----
46

query I rowsort
SELECT ALL - 42 - + - 39
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6720
SELECT - + COUNT( * ) * - - 93 + + 55 - 55 * 4 AS col1
----
-258

skipif mysql # not compatible
query I rowsort label-6720
SELECT - + COUNT ( * ) * - - 93 + + 55 - 55 * 4 AS col1
----
-258

query II rowsort
SELECT 94 * ( + - 58 ), 95 AS col1
----
-5452
95

query I rowsort
SELECT DISTINCT - + 89 AS col0
----
-89

query I rowsort
SELECT DISTINCT - - 11 AS col2
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-6724
SELECT + COUNT( ALL 30 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6724
SELECT + COUNT ( ALL 30 ) AS col1
----
1

query I rowsort
SELECT ALL + 30 * + + 90 AS col2
----
2700

onlyif mysql # aggregate syntax: 
query II rowsort label-6726
SELECT COUNT( * ) + + 96 AS col2, - 78
----
97
-78

skipif mysql # not compatible
query II rowsort label-6726
SELECT COUNT ( * ) + + 96 AS col2, - 78
----
97
-78

query I rowsort
SELECT DISTINCT + 86 * 64
----
5504

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6728
SELECT 12 - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6728
SELECT 12 - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 96 * + 19
----
1824

query I rowsort
SELECT 99 * + 45
----
4455

query I rowsort
SELECT - + 45 col2
----
-45

query II rowsort
SELECT DISTINCT + - 25 * 67, + 25 AS col0
----
-1675
25

query I rowsort
SELECT + 93 + - - 53
----
146

query I rowsort
SELECT + + 98 * - 12
----
-1176

query II rowsort
SELECT + + 40 + 58 AS col0, + 22 AS col0
----
98
22

onlyif mysql # aggregate syntax: 
query I rowsort label-6736
SELECT ALL 55 + + MIN( + - 8 )
----
47

skipif mysql # not compatible
query I rowsort label-6736
SELECT ALL 55 + + MIN ( + - 8 )
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6737
SELECT - CAST( - ( + + 75 ) AS SIGNED )
----
75

skipif mysql # not compatible
query I rowsort label-6737
SELECT - CAST ( - ( + + 75 ) AS INTEGER )
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6738
SELECT - NULLIF ( + 31, - ( - + ( MIN( 62 ) ) ) ) + - 99 + MIN( DISTINCT + + 77 ) col2
----
-53

skipif mysql # not compatible
query I rowsort label-6738
SELECT - NULLIF ( + 31, - ( - + ( MIN ( 62 ) ) ) ) + - 99 + MIN ( DISTINCT + + 77 ) col2
----
-53

query I rowsort
SELECT + 54 * - - 62
----
3348

onlyif mysql # aggregate syntax: 
query I rowsort label-6740
SELECT - NULLIF ( CASE + 27 WHEN 60 + + 35 THEN NULL WHEN + + 89 + 75 THEN - 83 * + 35 + 4 ELSE + COUNT( * ) * + 86 + - - 35 END, - - 67 + + 19 * - COUNT( * ) )
----
-121

skipif mysql # not compatible
query I rowsort label-6740
SELECT - NULLIF ( CASE + 27 WHEN 60 + + 35 THEN NULL WHEN + + 89 + 75 THEN - 83 * + 35 + 4 ELSE + COUNT ( * ) * + 86 + - - 35 END, - - 67 + + 19 * - COUNT ( * ) )
----
-121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6741
SELECT + COUNT( * ) * + 92 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6741
SELECT + COUNT ( * ) * + 92 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6742
SELECT - NULLIF ( + MIN( - 50 ), - MAX( ALL + 19 ) ) AS col1
----
50

skipif mysql # not compatible
query I rowsort label-6742
SELECT - NULLIF ( + MIN ( - 50 ), - MAX ( ALL + 19 ) ) AS col1
----
50

query I rowsort
SELECT ALL 36 + + 70 + - 13 * 39 AS col1
----
-401

query I rowsort
SELECT ALL CASE - 46 WHEN + 32 THEN + 28 WHEN 80 + - 44 THEN NULL WHEN - ( 10 ) THEN NULL END / + + 49 * - ( - 27 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6745
SELECT - 6 DIV - 26
----
0

skipif mysql # not compatible
query I rowsort label-6745
SELECT - 6 / - 26
----
0

query I rowsort
SELECT DISTINCT ( + 49 ) * 10 col1
----
490

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6747
SELECT ALL MIN( ALL 84 ) + - CAST( - - 67 AS SIGNED )
----
17

skipif mysql # not compatible
query I rowsort label-6747
SELECT ALL MIN ( ALL 84 ) + - CAST ( - - 67 AS INTEGER )
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-6748
SELECT ALL COUNT( * ) col2, 95
----
1
95

skipif mysql # not compatible
query II rowsort label-6748
SELECT ALL COUNT ( * ) col2, 95
----
1
95

onlyif mysql # aggregate syntax: 
query I rowsort label-6749
SELECT + 71 + + COUNT( * ) * + 53 AS col0
----
124

skipif mysql # not compatible
query I rowsort label-6749
SELECT + 71 + + COUNT ( * ) * + 53 AS col0
----
124

onlyif mysql # DIV for integer division: 
query I rowsort label-6750
SELECT ALL - ( 69 ) + + 66 DIV - NULLIF ( 42, - 55 )
----
-70

skipif mysql # not compatible
query I rowsort label-6750
SELECT ALL - ( 69 ) + + 66 / - NULLIF ( 42, - 55 )
----
-70

query I rowsort
SELECT - 64 - + + 39 AS col2
----
-103

query I rowsort
SELECT 10 * + 13 * 2 - - ( 31 ) AS col1
----
291

query I rowsort
SELECT + 11 + - 10
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6754
SELECT - 38 DIV + + 88 + + + 68 + + 98 AS col1
----
166

skipif mysql # not compatible
query I rowsort label-6754
SELECT - 38 / + + 88 + + + 68 + + 98 AS col1
----
166

query I rowsort
SELECT ALL - 3 * - 49 - + 17 * 59 * - - 29 AS col1
----
-28940

query I rowsort
SELECT + 28 * + ( - 73 ) AS col0
----
-2044

onlyif mysql # aggregate syntax: 
query II rowsort label-6757
SELECT + 30 AS col2, 36 * - + COUNT( * )
----
30
-36

skipif mysql # not compatible
query II rowsort label-6757
SELECT + 30 AS col2, 36 * - + COUNT ( * )
----
30
-36

query II rowsort
SELECT DISTINCT + 95, 30 + + 89 AS col0
----
95
119

onlyif mysql # DIV for integer division: 
query II rowsort label-6759
SELECT ALL + 7 * + - 87 - - + 19 AS col1, + 0 DIV + - 43 AS col0
----
-590
0

skipif mysql # not compatible
query II rowsort label-6759
SELECT ALL + 7 * + - 87 - - + 19 AS col1, + 0 / + - 43 AS col0
----
-590
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6760
SELECT ALL + COUNT( DISTINCT + - ( + + 45 ) )
----
1

skipif mysql # not compatible
query I rowsort label-6760
SELECT ALL + COUNT ( DISTINCT + - ( + + 45 ) )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6761
SELECT - 48 DIV + 72 + - 99 * 13
----
-1287

skipif mysql # not compatible
query I rowsort label-6761
SELECT - 48 / + 72 + - 99 * 13
----
-1287

onlyif mysql # DIV for integer division: 
query I rowsort label-6762
SELECT ALL - 42 * + ( - 7 ) + + 7 - - 45 DIV + 86 * - - 61
----
301

skipif mysql # not compatible
query I rowsort label-6762
SELECT ALL - 42 * + ( - 7 ) + + 7 - - 45 / + 86 * - - 61
----
301

onlyif mysql # aggregate syntax: 
query I rowsort label-6763
SELECT - - CASE - - 64 WHEN + 13 * + + 52 THEN NULL WHEN 84 THEN - - 68 ELSE COUNT( * ) + COUNT( * ) END + + 81 AS col0
----
83

skipif mysql # not compatible
query I rowsort label-6763
SELECT - - CASE - - 64 WHEN + 13 * + + 52 THEN NULL WHEN 84 THEN - - 68 ELSE COUNT ( * ) + COUNT ( * ) END + + 81 AS col0
----
83

query I rowsort
SELECT ALL + 59 * 25 * + + 39
----
57525

query I rowsort
SELECT DISTINCT + + 2 * 52 AS col0
----
104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6766
SELECT ALL - - CAST( COUNT( * ) AS SIGNED ) * - 23
----
-23

skipif mysql # not compatible
query I rowsort label-6766
SELECT ALL - - CAST ( COUNT ( * ) AS INTEGER ) * - 23
----
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6767
SELECT - + MIN( + 17 ) DIV 77
----
0

skipif mysql # not compatible
query I rowsort label-6767
SELECT - + MIN ( + 17 ) / 77
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6768
SELECT - + 88 DIV 86 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6768
SELECT - + 88 / 86 AS col2
----
-1

query I rowsort
SELECT - 24 + - 58 AS col1
----
-82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6770
SELECT - + COALESCE ( - SUM( 94 ), COUNT( * ) DIV + 4 ) * + COUNT( * ) col1
----
94

skipif mysql # not compatible
query I rowsort label-6770
SELECT - + COALESCE ( - SUM ( 94 ), COUNT ( * ) / + 4 ) * + COUNT ( * ) col1
----
94

onlyif mysql # aggregate syntax: 
query II rowsort label-6771
SELECT - - 37 AS col1, - MIN( ( - 64 ) ) + COUNT( * ) * - COUNT( * ) - - 98
----
37
161

skipif mysql # not compatible
query II rowsort label-6771
SELECT - - 37 AS col1, - MIN ( ( - 64 ) ) + COUNT ( * ) * - COUNT ( * ) - - 98
----
37
161

query I rowsort
SELECT ALL + 98 * + - 62 + - - 77 AS col1
----
-5999

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6773
SELECT ALL - ( + ( 7 ) ) * 33 DIV 14 DIV 71 DIV - + 99 + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-6773
SELECT ALL - ( + ( 7 ) ) * 33 / 14 / 71 / - + 99 + - COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-6774
SELECT - 6 AS col2, - COUNT( ALL - 4 ) AS col0
----
-6
-1

skipif mysql # not compatible
query II rowsort label-6774
SELECT - 6 AS col2, - COUNT ( ALL - 4 ) AS col0
----
-6
-1

query II rowsort
SELECT - 79, 3 AS col0
----
-79
3

query I rowsort
SELECT - 95 + 69
----
-26

query I rowsort
SELECT DISTINCT + 41 + + 31
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-6778
SELECT - CASE + - ( + + COUNT( * ) ) WHEN + - SUM( - - 46 ) THEN 93 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6778
SELECT - CASE + - ( + + COUNT ( * ) ) WHEN + - SUM ( - - 46 ) THEN 93 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6779
SELECT ALL - COUNT( * ) * 7 DIV + 50
----
0

skipif mysql # not compatible
query I rowsort label-6779
SELECT ALL - COUNT ( * ) * 7 / + 50
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6780
SELECT - COUNT( + 20 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6780
SELECT - COUNT ( + 20 ) AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6781
SELECT + 41 + + + CAST( NULL AS SIGNED ) + + COALESCE ( + ( + AVG ( + 72 ) ), - 10 * 45 ) * + 29 * + + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6781
SELECT + 41 + + + CAST ( NULL AS INTEGER ) + + COALESCE ( + ( + AVG ( + 72 ) ), - 10 * 45 ) * + 29 * + + COUNT ( * ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6782
SELECT DISTINCT NULLIF ( + 9, - - 32 * - + 8 ) - - 5 - - - 70 * + 7 - + NULLIF ( - 96, 29 + - COUNT( * ) + + COUNT( * ) + - ( + ( 44 ) ) + 31 / - 63 ) * - - CASE 71 WHEN + + 87 * - + 54 / - CAST( NULL AS SIGNED ) + - 89 + 99 THEN - - 10 + + ( + 6 ) WHEN + MAX( + 92 ) + - 41 / - + COUNT( * ) THEN NULL ELSE - - 63 END
----
5572

skipif mysql # not compatible
query I rowsort label-6782
SELECT DISTINCT NULLIF ( + 9, - - 32 * - + 8 ) - - 5 - - - 70 * + 7 - + NULLIF ( - 96, 29 + - COUNT ( * ) + + COUNT ( * ) + - ( + ( 44 ) ) + 31 / - 63 ) * - - CASE 71 WHEN + + 87 * - + 54 / - CAST ( NULL AS INTEGER ) + - 89 + 99 THEN - - 10 + + ( + 6 ) WHEN + MAX ( + 92 ) + - 41 / - + COUNT ( * ) THEN NULL ELSE - - 63 END
----
5572

query I rowsort
SELECT - NULLIF ( - - 58, + + 94 ) AS col0
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-6784
SELECT + 29 DIV + 95 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6784
SELECT + 29 / + 95 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6785
SELECT DISTINCT 40 DIV - - 95 * 3
----
0

skipif mysql # not compatible
query I rowsort label-6785
SELECT DISTINCT 40 / - - 95 * 3
----
0

query I rowsort
SELECT ALL 75 * + 19 * + + 88
----
125400

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6787
SELECT ALL 87 DIV - + ( COUNT( * ) )
----
-87

skipif mysql # not compatible
query I rowsort label-6787
SELECT ALL 87 / - + ( COUNT ( * ) )
----
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6788
SELECT + CAST( - 97 AS SIGNED ) AS col2
----
-97

skipif mysql # not compatible
query I rowsort label-6788
SELECT + CAST ( - 97 AS INTEGER ) AS col2
----
-97

query II rowsort
SELECT ALL + ( + - 3 ) * ( + 1 ) AS col0, 14 * + + 87 + - 63 + + 73 + 6 * - 83 AS col0
----
-3
730

query I rowsort
SELECT + 54 * + + 47 AS col0
----
2538

query I rowsort
SELECT ALL + - ( - + ( - - 33 ) ) AS col1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-6792
SELECT + 72 * + COUNT( * )
----
72

skipif mysql # not compatible
query I rowsort label-6792
SELECT + 72 * + COUNT ( * )
----
72

onlyif mysql # DIV for integer division: 
query II rowsort label-6793
SELECT ALL + 3 * 99 DIV - 57 + + + 80 col1, + 84 AS col0
----
75
84

skipif mysql # not compatible
query II rowsort label-6793
SELECT ALL + 3 * 99 / - 57 + + + 80 col1, + 84 AS col0
----
75
84

query I rowsort
SELECT + + 97 * - - 98
----
9506

query I rowsort
SELECT + + NULLIF ( - 13, 88 * - ( - 24 ) + + COALESCE ( - 66, 77 * 3 * 79 + 13 * - - 35, + + 31 ) )
----
-13

query I rowsort
SELECT + - 64 * 8 + - 62 AS col1
----
-574

onlyif mysql # aggregate syntax: 
query I rowsort label-6797
SELECT - + 58 * + COUNT( - + 42 )
----
-58

skipif mysql # not compatible
query I rowsort label-6797
SELECT - + 58 * + COUNT ( - + 42 )
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-6798
SELECT + 16 * + 63 - + - 37 - + COUNT( * ) AS col0
----
1044

skipif mysql # not compatible
query I rowsort label-6798
SELECT + 16 * + 63 - + - 37 - + COUNT ( * ) AS col0
----
1044

query I rowsort
SELECT - 61 - + 68 + - 80 AS col1
----
-209

onlyif mysql # aggregate syntax: 
query I rowsort label-6800
SELECT DISTINCT - + NULLIF ( - SUM( DISTINCT 92 ), MAX( DISTINCT 97 ) ) AS col0
----
92

skipif mysql # not compatible
query I rowsort label-6800
SELECT DISTINCT - + NULLIF ( - SUM ( DISTINCT 92 ), MAX ( DISTINCT 97 ) ) AS col0
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-6801
SELECT - ( + - 80 ) + MIN( + + 63 ) + + 35 * - 29
----
-872

skipif mysql # not compatible
query I rowsort label-6801
SELECT - ( + - 80 ) + MIN ( + + 63 ) + + 35 * - 29
----
-872

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6802
SELECT ALL - 87 * + CAST( NULL AS SIGNED ) AS col0, + 50
----
NULL
50

skipif mysql # not compatible
query II rowsort label-6802
SELECT ALL - 87 * + CAST ( NULL AS INTEGER ) AS col0, + 50
----
NULL
50

onlyif mysql # aggregate syntax: 
query I rowsort label-6803
SELECT + MAX( 83 )
----
83

skipif mysql # not compatible
query I rowsort label-6803
SELECT + MAX ( 83 )
----
83

query I rowsort
SELECT - 41 + 7 AS col2
----
-34

query I rowsort
SELECT 32 * + 36 - + - 22 AS col2
----
1174

query I rowsort
SELECT - ( - - 26 ) AS col0
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-6807
SELECT DISTINCT 25 + COALESCE ( + 11, - - COUNT( * ) ) AS col1
----
36

skipif mysql # not compatible
query I rowsort label-6807
SELECT DISTINCT 25 + COALESCE ( + 11, - - COUNT ( * ) ) AS col1
----
36

query I rowsort
SELECT ALL 38 col0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-6809
SELECT ALL + COUNT( * ) + COUNT( * ) * - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-6809
SELECT ALL + COUNT ( * ) + COUNT ( * ) * - COUNT ( * )
----
0

query I rowsort
SELECT 3 + + 50 - 28 * 38 AS col0
----
-1011

onlyif mysql # aggregate syntax: 
query I rowsort label-6811
SELECT DISTINCT + ( - - COUNT( + - 35 ) ) - 55 + - COUNT( * ) AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-6811
SELECT DISTINCT + ( - - COUNT ( + - 35 ) ) - 55 + - COUNT ( * ) AS col0
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6812
SELECT DISTINCT 99 AS col2, + 97 * - - CAST( - 68 AS SIGNED ) * 84 - + COUNT( * ) AS col0
----
99
-554065

skipif mysql # not compatible
query II rowsort label-6812
SELECT DISTINCT 99 AS col2, + 97 * - - CAST ( - 68 AS INTEGER ) * 84 - + COUNT ( * ) AS col0
----
99
-554065

query I rowsort
SELECT DISTINCT - 28 - + + 6
----
-34

query I rowsort
SELECT 93 * - 84 col2
----
-7812

query I rowsort
SELECT 28 * 64 AS col1
----
1792

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6816
SELECT 9 + + + 64 + - 40 AS col1, NULLIF ( - - COUNT( * ), 72 * + COUNT( * ) * - 43 * NULLIF ( - + 49, - - 98 * 39 * + - 97 + + 43 + - CAST( NULL AS SIGNED ) * COUNT( * ) + ( - 19 ) ) * - 35 ) + 21 AS col1
----
33
22

skipif mysql # not compatible
query II rowsort label-6816
SELECT 9 + + + 64 + - 40 AS col1, NULLIF ( - - COUNT ( * ), 72 * + COUNT ( * ) * - 43 * NULLIF ( - + 49, - - 98 * 39 * + - 97 + + 43 + - CAST ( NULL AS INTEGER ) * COUNT ( * ) + ( - 19 ) ) * - 35 ) + 21 AS col1
----
33
22

query I rowsort
SELECT 18 * + + 75
----
1350

query I rowsort
SELECT 25 + 70 + 87 - 91
----
91

onlyif mysql # DIV for integer division: 
query II rowsort label-6819
SELECT - 68, - 83 DIV + - 80 AS col2
----
-68
1

skipif mysql # not compatible
query II rowsort label-6819
SELECT - 68, - 83 / + - 80 AS col2
----
-68
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6820
SELECT DISTINCT 75 AS col2, CASE - ( 70 ) WHEN + + 20 * 80 * - MIN( - 73 ) * - + 25 + - 39 * 9 + 97 * 32 THEN NULL ELSE + 42 END * - 59 + - + 69
----
75
-2547

skipif mysql # not compatible
query II rowsort label-6820
SELECT DISTINCT 75 AS col2, CASE - ( 70 ) WHEN + + 20 * 80 * - MIN ( - 73 ) * - + 25 + - 39 * 9 + 97 * 32 THEN NULL ELSE + 42 END * - 59 + - + 69
----
75
-2547

query I rowsort
SELECT 63 / CASE + 55 WHEN 75 THEN NULL WHEN + 51 THEN - 97 - - 17 END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6822
SELECT 21 DIV - 43 + 81
----
81

skipif mysql # not compatible
query I rowsort label-6822
SELECT 21 / - 43 + 81
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6823
SELECT 85 * - COALESCE ( ( CAST( 79 AS SIGNED ) ) * + 44, 11 ) + 33 col2
----
-295427

skipif mysql # not compatible
query I rowsort label-6823
SELECT 85 * - COALESCE ( ( CAST ( 79 AS INTEGER ) ) * + 44, 11 ) + 33 col2
----
-295427

onlyif mysql # DIV for integer division: 
query I rowsort label-6824
SELECT 53 DIV + 20
----
2

skipif mysql # not compatible
query I rowsort label-6824
SELECT 53 / + 20
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6825
SELECT COUNT( DISTINCT 37 ) + - COUNT( * ) * 87
----
-86

skipif mysql # not compatible
query I rowsort label-6825
SELECT COUNT ( DISTINCT 37 ) + - COUNT ( * ) * 87
----
-86

query I rowsort
SELECT ALL 86 + 82 col2
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-6827
SELECT ALL - CASE + 27 WHEN CASE 93 WHEN + 93 * + 65 THEN NULL WHEN COUNT( * ) + + 21 THEN 7 + 90 ELSE NULL END THEN 68 WHEN 27 * - COUNT( * ) THEN 8 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6827
SELECT ALL - CASE + 27 WHEN CASE 93 WHEN + 93 * + 65 THEN NULL WHEN COUNT ( * ) + + 21 THEN 7 + 90 ELSE NULL END THEN 68 WHEN 27 * - COUNT ( * ) THEN 8 END col1
----
NULL

query I rowsort
SELECT ALL 62 + + 97 col1
----
159

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6829
SELECT NULLIF ( MIN( + 51 ), + 74 DIV + 12 ) * + 76 + + 3 DIV - ( 94 + ( + 61 + + 55 * + 43 ) * + 28 ) AS col0
----
3876

skipif mysql # not compatible
query I rowsort label-6829
SELECT NULLIF ( MIN ( + 51 ), + 74 / + 12 ) * + 76 + + 3 / - ( 94 + ( + 61 + + 55 * + 43 ) * + 28 ) AS col0
----
3876

query I rowsort
SELECT ALL 79 * 84 col0
----
6636

onlyif mysql # aggregate syntax: 
query I rowsort label-6831
SELECT ALL COUNT( DISTINCT + 34 ) + 98
----
99

skipif mysql # not compatible
query I rowsort label-6831
SELECT ALL COUNT ( DISTINCT + 34 ) + 98
----
99

query I rowsort
SELECT DISTINCT 14 * 46
----
644

query I rowsort
SELECT ALL 26 + - 5 AS col2
----
21

query I rowsort
SELECT 58 * 7 AS col2
----
406

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6835
SELECT - 84 * + ( MAX( ALL - 46 ) ) + 22 DIV 33
----
3864

skipif mysql # not compatible
query I rowsort label-6835
SELECT - 84 * + ( MAX ( ALL - 46 ) ) + 22 / 33
----
3864

query I rowsort
SELECT DISTINCT 78 * ( - 97 )
----
-7566

query I rowsort
SELECT 59 * - 86 + 52
----
-5022

query I rowsort
SELECT 22 + - 18 * ( - 64 * + 30 )
----
34582

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6839
SELECT CAST( NULL AS SIGNED ) + + ( - 74 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6839
SELECT CAST ( NULL AS INTEGER ) + + ( - 74 )
----
NULL

query I rowsort
SELECT DISTINCT + 41 - + 35 * 82 AS col1
----
-2829

onlyif mysql # aggregate syntax: 
query I rowsort label-6841
SELECT COUNT( * ) + 96 * 35 col1
----
3361

skipif mysql # not compatible
query I rowsort label-6841
SELECT COUNT ( * ) + 96 * 35 col1
----
3361

query I rowsort
SELECT DISTINCT - 69 * 32 AS col1
----
-2208

onlyif mysql # DIV for integer division: 
query I rowsort label-6843
SELECT ALL 12 DIV + 72 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6843
SELECT ALL 12 / + 72 AS col0
----
0

query I rowsort
SELECT 28 * 76
----
2128

query I rowsort
SELECT 35 + 20
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-6846
SELECT DISTINCT + CASE 69 WHEN 76 THEN ( + NULLIF ( + 31, - ( NULLIF ( - COUNT( * ), NULLIF ( + 86, 52 ) ) ) + COALESCE ( - 19, 73 ) ) ) * 42 WHEN 32 THEN NULL ELSE 76 END * 93
----
7068

skipif mysql # not compatible
query I rowsort label-6846
SELECT DISTINCT + CASE 69 WHEN 76 THEN ( + NULLIF ( + 31, - ( NULLIF ( - COUNT ( * ), NULLIF ( + 86, 52 ) ) ) + COALESCE ( - 19, 73 ) ) ) * 42 WHEN 32 THEN NULL ELSE 76 END * 93
----
7068

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6847
SELECT COALESCE ( - ( CASE - 39 WHEN + 48 THEN 90 + 96 * COUNT( * ) WHEN + 69 THEN NULL END ), - 48 ) DIV - COUNT( - 35 * + 43 ) AS col0
----
48

skipif mysql # not compatible
query I rowsort label-6847
SELECT COALESCE ( - ( CASE - 39 WHEN + 48 THEN 90 + 96 * COUNT ( * ) WHEN + 69 THEN NULL END ), - 48 ) / - COUNT ( - 35 * + 43 ) AS col0
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-6848
SELECT 54 + NULLIF ( 42, 75 ) DIV 42 AS col2
----
55

skipif mysql # not compatible
query I rowsort label-6848
SELECT 54 + NULLIF ( 42, 75 ) / 42 AS col2
----
55

query I rowsort
SELECT 25 + - 82
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-6850
SELECT DISTINCT COUNT( * ) * + SUM( DISTINCT + 18 ) AS col2
----
18

skipif mysql # not compatible
query I rowsort label-6850
SELECT DISTINCT COUNT ( * ) * + SUM ( DISTINCT + 18 ) AS col2
----
18

query I rowsort
SELECT 37 - - 66 * + 41
----
2743

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6852
SELECT ALL + 25 DIV - COUNT( * )
----
-25

skipif mysql # not compatible
query I rowsort label-6852
SELECT ALL + 25 / - COUNT ( * )
----
-25

query I rowsort
SELECT 44 * + 17
----
748

query I rowsort
SELECT 53 * 83 AS col1
----
4399

onlyif mysql # aggregate syntax: 
query I rowsort label-6855
SELECT DISTINCT COUNT( ALL + 7 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6855
SELECT DISTINCT COUNT ( ALL + 7 ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6856
SELECT CAST( NULL AS SIGNED ) + + COALESCE ( + 11, 86 + - COALESCE ( 59 - - 99, + COUNT( * ) * 39 ) / 94, 44 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6856
SELECT CAST ( NULL AS INTEGER ) + + COALESCE ( + 11, 86 + - COALESCE ( 59 - - 99, + COUNT ( * ) * 39 ) / 94, 44 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6857
SELECT MAX( ALL 57 ) + + 14 * 98
----
1429

skipif mysql # not compatible
query I rowsort label-6857
SELECT MAX ( ALL 57 ) + + 14 * 98
----
1429

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6858
SELECT DISTINCT + 44 + + 15 DIV COUNT( DISTINCT 8 * + 54 ) AS col2
----
59

skipif mysql # not compatible
query I rowsort label-6858
SELECT DISTINCT + 44 + + 15 / COUNT ( DISTINCT 8 * + 54 ) AS col2
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6859
SELECT - + NULLIF ( + 43, NULLIF ( - NULLIF ( + 75, 46 + + CAST( NULL AS SIGNED ) * + 46 ), + 74 + - 1 ) ) col2
----
-43

skipif mysql # not compatible
query I rowsort label-6859
SELECT - + NULLIF ( + 43, NULLIF ( - NULLIF ( + 75, 46 + + CAST ( NULL AS INTEGER ) * + 46 ), + 74 + - 1 ) ) col2
----
-43

query I rowsort
SELECT - - 31 * ( 90 )
----
2790

onlyif mysql # aggregate syntax: 
query I rowsort label-6861
SELECT ALL + COUNT( * ) * CASE - 62 * 24 WHEN + COUNT( * ) THEN 21 + ( 8 ) WHEN 44 + + 74 THEN 33 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6861
SELECT ALL + COUNT ( * ) * CASE - 62 * 24 WHEN + COUNT ( * ) THEN 21 + ( 8 ) WHEN 44 + + 74 THEN 33 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT DISTINCT + + 87 AS col0
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6863
SELECT + COALESCE ( 50, COUNT( * ), CAST( NULL AS SIGNED ) + + ( 27 ) DIV + 37 ) AS col0
----
50

skipif mysql # not compatible
query I rowsort label-6863
SELECT + COALESCE ( 50, COUNT ( * ), CAST ( NULL AS INTEGER ) + + ( 27 ) / + 37 ) AS col0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-6864
SELECT - + CASE - 17 WHEN 56 * COUNT( * ) THEN + 42 + 36 WHEN 73 / 74 THEN - 1 WHEN 60 THEN NULL ELSE + 55 END + - 69 AS col0
----
-124

skipif mysql # not compatible
query I rowsort label-6864
SELECT - + CASE - 17 WHEN 56 * COUNT ( * ) THEN + 42 + 36 WHEN 73 / 74 THEN - 1 WHEN 60 THEN NULL ELSE + 55 END + - 69 AS col0
----
-124

query I rowsort
SELECT + ( 33 ) * - 74
----
-2442

onlyif mysql # aggregate syntax: 
query I rowsort label-6866
SELECT + 82 * CASE 53 + + COUNT( * ) WHEN + 28 - + 43 THEN COUNT( * ) END + 93 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6866
SELECT + 82 * CASE 53 + + COUNT ( * ) WHEN + 28 - + 43 THEN COUNT ( * ) END + 93 col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6867
SELECT + ( 82 ) DIV 2 AS col1
----
41

skipif mysql # not compatible
query I rowsort label-6867
SELECT + ( 82 ) / 2 AS col1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-6868
SELECT - ( + 58 ) * COUNT( * )
----
-58

skipif mysql # not compatible
query I rowsort label-6868
SELECT - ( + 58 ) * COUNT ( * )
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-6869
SELECT + - 99 * COUNT( * ) AS col2
----
-99

skipif mysql # not compatible
query I rowsort label-6869
SELECT + - 99 * COUNT ( * ) AS col2
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-6870
SELECT ALL + - 59 * 18 - SUM( + 34 )
----
-1096

skipif mysql # not compatible
query I rowsort label-6870
SELECT ALL + - 59 * 18 - SUM ( + 34 )
----
-1096

onlyif mysql # aggregate syntax: 
query I rowsort label-6871
SELECT + + COUNT( - 14 ) - - 62 AS col1
----
63

skipif mysql # not compatible
query I rowsort label-6871
SELECT + + COUNT ( - 14 ) - - 62 AS col1
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-6872
SELECT ALL - COALESCE ( - COUNT( * ), + 73, 61 ) * + ( 79 * 8 ) AS col2
----
632

skipif mysql # not compatible
query I rowsort label-6872
SELECT ALL - COALESCE ( - COUNT ( * ), + 73, 61 ) * + ( 79 * 8 ) AS col2
----
632

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6873
SELECT + - ( 51 ) * - CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6873
SELECT + - ( 51 ) * - CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6874
SELECT DISTINCT + 32 DIV 50 col2
----
0

skipif mysql # not compatible
query I rowsort label-6874
SELECT DISTINCT + 32 / 50 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6875
SELECT MAX( + 11 )
----
11

skipif mysql # not compatible
query I rowsort label-6875
SELECT MAX ( + 11 )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-6876
SELECT DISTINCT COUNT( NULLIF ( - 61, + 79 ) ) * - 16
----
-16

skipif mysql # not compatible
query I rowsort label-6876
SELECT DISTINCT COUNT ( NULLIF ( - 61, + 79 ) ) * - 16
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6877
SELECT - CAST( NULL AS SIGNED ) + - 37 - - 94
----
NULL

skipif mysql # not compatible
query I rowsort label-6877
SELECT - CAST ( NULL AS INTEGER ) + - 37 - - 94
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6878
SELECT COUNT( ALL + - 24 )
----
1

skipif mysql # not compatible
query I rowsort label-6878
SELECT COUNT ( ALL + - 24 )
----
1

query I rowsort
SELECT + 95 + 99 * 55
----
5540

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6880
SELECT + 0 - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6880
SELECT + 0 - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 12 * - - 41
----
492

onlyif mysql # aggregate syntax: 
query I rowsort label-6882
SELECT DISTINCT COUNT( * ) * + + 4 / CASE + COUNT( * ) WHEN MIN( ALL 91 ) THEN MAX( ALL 47 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6882
SELECT DISTINCT COUNT ( * ) * + + 4 / CASE + COUNT ( * ) WHEN MIN ( ALL 91 ) THEN MAX ( ALL 47 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6883
SELECT - NULLIF ( - COUNT( * ), - 50 * + 99 - + ( COUNT( * ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-6883
SELECT - NULLIF ( - COUNT ( * ), - 50 * + 99 - + ( COUNT ( * ) ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6884
SELECT ALL COUNT( ALL - ( + 20 ) ) * - 60 AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-6884
SELECT ALL COUNT ( ALL - ( + 20 ) ) * - 60 AS col1
----
-60

query I rowsort
SELECT + 82 * 2 * 70 AS col2
----
11480

query I rowsort
SELECT + 41 + + + 97 * 47 col2
----
4600

query I rowsort
SELECT DISTINCT + 38 + - 62 * + 43
----
-2628

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6888
SELECT DISTINCT NULLIF ( - CAST( NULLIF ( 44, 75 * ( - 79 ) ) AS SIGNED ), 40 * - 10 )
----
-44

skipif mysql # not compatible
query I rowsort label-6888
SELECT DISTINCT NULLIF ( - CAST ( NULLIF ( 44, 75 * ( - 79 ) ) AS INTEGER ), 40 * - 10 )
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-6889
SELECT + 46 + - COUNT( * ) + + 46 * 66 AS col2
----
3081

skipif mysql # not compatible
query I rowsort label-6889
SELECT + 46 + - COUNT ( * ) + + 46 * 66 AS col2
----
3081

onlyif mysql # DIV for integer division: 
query I rowsort label-6890
SELECT DISTINCT ( + - 8 ) DIV 91 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6890
SELECT DISTINCT ( + - 8 ) / 91 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6891
SELECT + COUNT( 33 ) + 31 AS col2
----
32

skipif mysql # not compatible
query I rowsort label-6891
SELECT + COUNT ( 33 ) + 31 AS col2
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6892
SELECT - ( - MIN( ALL 83 ) ) DIV - ( 59 - MIN( 93 + - 11 ) DIV - 69 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6892
SELECT - ( - MIN ( ALL 83 ) ) / - ( 59 - MIN ( 93 + - 11 ) / - 69 ) AS col2
----
-1

query I rowsort
SELECT + NULLIF ( - 44, + 63 * - 46 - - ( 26 ) )
----
-44

query I rowsort
SELECT + - 35 + 61 - - 55 AS col1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6895
SELECT + 5 * - + 49 * SUM( 15 ) + - ( 3 ) AS col2
----
-3678

skipif mysql # not compatible
query I rowsort label-6895
SELECT + 5 * - + 49 * SUM ( 15 ) + - ( 3 ) AS col2
----
-3678

onlyif mysql # aggregate syntax: 
query I rowsort label-6896
SELECT ALL + MAX( 66 ) * - 26 AS col0
----
-1716

skipif mysql # not compatible
query I rowsort label-6896
SELECT ALL + MAX ( 66 ) * - 26 AS col0
----
-1716

query I rowsort
SELECT - - 85 + 34
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-6898
SELECT ALL 97 + - - MIN( DISTINCT + 78 ) + MIN( ALL 0 )
----
175

skipif mysql # not compatible
query I rowsort label-6898
SELECT ALL 97 + - - MIN ( DISTINCT + 78 ) + MIN ( ALL 0 )
----
175

query I rowsort
SELECT DISTINCT + 21 + - 68 + 43 AS col1
----
-4

query I rowsort
SELECT - + 10 + - 37
----
-47

query I rowsort
SELECT - 50 - - 72
----
22

query I rowsort
SELECT - 21 * - 54 + + 67 AS col0
----
1201

onlyif mysql # aggregate syntax: 
query I rowsort label-6903
SELECT + COALESCE ( + 50, - NULLIF ( 31, + 11 ) + + COUNT( * ) ) AS col0
----
50

skipif mysql # not compatible
query I rowsort label-6903
SELECT + COALESCE ( + 50, - NULLIF ( 31, + 11 ) + + COUNT ( * ) ) AS col0
----
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6904
SELECT COUNT( * ) DIV - 91 + 86
----
86

skipif mysql # not compatible
query I rowsort label-6904
SELECT COUNT ( * ) / - 91 + 86
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-6905
SELECT ALL - 59 DIV + - 28 - - 94 AS col2
----
96

skipif mysql # not compatible
query I rowsort label-6905
SELECT ALL - 59 / + - 28 - - 94 AS col2
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6906
SELECT + CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6906
SELECT + CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6907
SELECT + - 95 * + - COUNT( * ) + 7 AS col2
----
102

skipif mysql # not compatible
query I rowsort label-6907
SELECT + - 95 * + - COUNT ( * ) + 7 AS col2
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-6908
SELECT ALL + NULLIF ( - CASE + 56 WHEN 73 + 29 THEN COUNT( * ) * - ( - 19 ) ELSE 61 * + 73 END, 99 ) * - 60
----
267180

skipif mysql # not compatible
query I rowsort label-6908
SELECT ALL + NULLIF ( - CASE + 56 WHEN 73 + 29 THEN COUNT ( * ) * - ( - 19 ) ELSE 61 * + 73 END, 99 ) * - 60
----
267180

query I rowsort
SELECT DISTINCT + 36 * + + 30 AS col2
----
1080

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6910
SELECT - - COALESCE ( + - SUM( DISTINCT + 77 ), CAST( COUNT( * ) AS SIGNED ), + NULLIF ( + 84, + 0 ) * - 40 + 30 ) + - 56
----
-133

skipif mysql # not compatible
query I rowsort label-6910
SELECT - - COALESCE ( + - SUM ( DISTINCT + 77 ), CAST ( COUNT ( * ) AS INTEGER ), + NULLIF ( + 84, + 0 ) * - 40 + 30 ) + - 56
----
-133

query I rowsort
SELECT ALL + 3 * 43
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-6912
SELECT MIN( + 46 ) * - 46 + - 74 AS col0
----
-2190

skipif mysql # not compatible
query I rowsort label-6912
SELECT MIN ( + 46 ) * - 46 + - 74 AS col0
----
-2190

onlyif mysql # aggregate syntax: 
query I rowsort label-6913
SELECT - 12 * COUNT( * )
----
-12

skipif mysql # not compatible
query I rowsort label-6913
SELECT - 12 * COUNT ( * )
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-6914
SELECT + COUNT( * ) * + 75 AS col1
----
75

skipif mysql # not compatible
query I rowsort label-6914
SELECT + COUNT ( * ) * + 75 AS col1
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-6915
SELECT ALL + 83 col2, - 1 * + - COALESCE ( + 6, - COUNT( * ), - SUM( 48 ) * + 20 )
----
83
6

skipif mysql # not compatible
query II rowsort label-6915
SELECT ALL + 83 col2, - 1 * + - COALESCE ( + 6, - COUNT ( * ), - SUM ( 48 ) * + 20 )
----
83
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6916
SELECT NULLIF ( 77, 74 * 68 + - 44 * COUNT( * ) ) col2
----
77

skipif mysql # not compatible
query I rowsort label-6916
SELECT NULLIF ( 77, 74 * 68 + - 44 * COUNT ( * ) ) col2
----
77

query I rowsort
SELECT + ( 47 ) AS col2
----
47

query I rowsort
SELECT COALESCE ( + 94, - - 92 * + 1, 5 ) AS col0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-6919
SELECT ALL 76 * - COUNT( * ) * - 68 AS col2
----
5168

skipif mysql # not compatible
query I rowsort label-6919
SELECT ALL 76 * - COUNT ( * ) * - 68 AS col2
----
5168

query I rowsort
SELECT - 82 + - - 1 + - 46 AS col2
----
-127

query I rowsort
SELECT DISTINCT + 5 * - - 54 + + 83 AS col1
----
353

query I rowsort
SELECT - 18 * ( 44 ) * 8 + 49
----
-6287

query I rowsort
SELECT + 17 * + + 72
----
1224

onlyif mysql # aggregate syntax: 
query I rowsort label-6924
SELECT - 46 / - CASE - 54 WHEN + 89 THEN + 58 - - COUNT( * ) END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6924
SELECT - 46 / - CASE - 54 WHEN + 89 THEN + 58 - - COUNT ( * ) END col0
----
NULL

query I rowsort
SELECT - 5 - 18 AS col0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-6926
SELECT SUM( ALL 10 )
----
10

skipif mysql # not compatible
query I rowsort label-6926
SELECT SUM ( ALL 10 )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-6927
SELECT + COALESCE ( + 73, + MAX( 14 ) + + 58 ) + - 39
----
34

skipif mysql # not compatible
query I rowsort label-6927
SELECT + COALESCE ( + 73, + MAX ( 14 ) + + 58 ) + - 39
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-6928
SELECT - NULLIF ( + - 67, 25 + + COUNT( * ) ) AS col1
----
67

skipif mysql # not compatible
query I rowsort label-6928
SELECT - NULLIF ( + - 67, 25 + + COUNT ( * ) ) AS col1
----
67

query I rowsort
SELECT 79 + - + 43 AS col1
----
36

query I rowsort
SELECT ALL 69 + + - COALESCE ( 84, 57 ) AS col0
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6931
SELECT CAST( 33 AS SIGNED ) + - 29
----
4

skipif mysql # not compatible
query I rowsort label-6931
SELECT CAST ( 33 AS INTEGER ) + - 29
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6932
SELECT ALL + MAX( DISTINCT + + 46 )
----
46

skipif mysql # not compatible
query I rowsort label-6932
SELECT ALL + MAX ( DISTINCT + + 46 )
----
46

query II rowsort
SELECT + 52, 73 AS col1
----
52
73

onlyif mysql # aggregate syntax: 
query I rowsort label-6934
SELECT ALL COUNT( ALL + 2 ) + + - COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6934
SELECT ALL COUNT ( ALL + 2 ) + + - COUNT ( * ) AS col0
----
0

query I rowsort
SELECT ALL + 3 + 39 AS col1
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-6936
SELECT - CASE 73 WHEN - ( - 2 ) THEN MAX( + 96 ) ELSE 3 END AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-6936
SELECT - CASE 73 WHEN - ( - 2 ) THEN MAX ( + 96 ) ELSE 3 END AS col2
----
-3

query I rowsort
SELECT 41 * - 91
----
-3731

onlyif mysql # DIV for integer division: 
query I rowsort label-6938
SELECT ALL 9 DIV + 53
----
0

skipif mysql # not compatible
query I rowsort label-6938
SELECT ALL 9 / + 53
----
0

query I rowsort
SELECT ( + 82 ) AS col2
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6940
SELECT ALL - CAST( - 55 AS SIGNED ) col1
----
55

skipif mysql # not compatible
query I rowsort label-6940
SELECT ALL - CAST ( - 55 AS INTEGER ) col1
----
55

query I rowsort
SELECT 21 * 23 AS col2
----
483

query II rowsort
SELECT + 59 AS col2, 50
----
59
50

query I rowsort
SELECT DISTINCT - 66 * - - 65
----
-4290

query I rowsort
SELECT ALL 97 * 30 - + - 72 - + 43 * + 39 * - 24
----
43230

query I rowsort
SELECT 44 * 55 AS col2
----
2420

onlyif mysql # DIV for integer division: 
query I rowsort label-6946
SELECT ALL - - 98 DIV - 40 + 9 + - 9 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-6946
SELECT ALL - - 98 / - 40 + 9 + - 9 AS col1
----
-2

query II rowsort
SELECT DISTINCT - + 20, 33 * - - 19 * - 72 AS col1
----
-20
-45144

query I rowsort
SELECT - 94 + - 27 + + 8 AS col2
----
-113

query I rowsort
SELECT - 23 * + 25 + + + 20 AS col1
----
-555

query I rowsort
SELECT - 58 * + 78 + 28
----
-4496

query I rowsort
SELECT ALL - ( + ( - ( - + 72 ) ) )
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-6952
SELECT ALL - SUM( ALL - - 13 )
----
-13

skipif mysql # not compatible
query I rowsort label-6952
SELECT ALL - SUM ( ALL - - 13 )
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-6953
SELECT ALL + MAX( ALL - - 35 ) * + 64 * + 40 + 28
----
89628

skipif mysql # not compatible
query I rowsort label-6953
SELECT ALL + MAX ( ALL - - 35 ) * + 64 * + 40 + 28
----
89628

query I rowsort
SELECT 44 * + 14 col0
----
616

query I rowsort
SELECT - 14 * - 37 + 89
----
607

onlyif mysql # aggregate syntax: 
query I rowsort label-6956
SELECT ALL - MIN( DISTINCT - 51 )
----
51

skipif mysql # not compatible
query I rowsort label-6956
SELECT ALL - MIN ( DISTINCT - 51 )
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6957
SELECT 27 + 91 + - ( MAX( 84 ) ) AS col2
----
34

skipif mysql # not compatible
query I rowsort label-6957
SELECT 27 + 91 + - ( MAX ( 84 ) ) AS col2
----
34

query I rowsort
SELECT DISTINCT + 75 + + + 78
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-6959
SELECT 37 + - - COUNT( * ) AS col0
----
38

skipif mysql # not compatible
query I rowsort label-6959
SELECT 37 + - - COUNT ( * ) AS col0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-6960
SELECT COUNT( 61 ) - + 75
----
-74

skipif mysql # not compatible
query I rowsort label-6960
SELECT COUNT ( 61 ) - + 75
----
-74

query I rowsort
SELECT 82 + - 9 AS col1
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6962
SELECT ALL - 3 + + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6962
SELECT ALL - 3 + + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6963
SELECT DISTINCT + SUM( DISTINCT 8 ) + + - 2 - + ( - 68 ) AS col1
----
74

skipif mysql # not compatible
query I rowsort label-6963
SELECT DISTINCT + SUM ( DISTINCT 8 ) + + - 2 - + ( - 68 ) AS col1
----
74

onlyif mysql # DIV for integer division: 
query I rowsort label-6964
SELECT DISTINCT 22 + 27 + + 27 + 14 - 75 DIV - 75 AS col2
----
91

skipif mysql # not compatible
query I rowsort label-6964
SELECT DISTINCT 22 + 27 + + 27 + 14 - 75 / - 75 AS col2
----
91

query I rowsort
SELECT 72 + + NULLIF ( + 68, - 42 * + 23 )
----
140

onlyif mysql # DIV for integer division: 
query II rowsort label-6966
SELECT ALL - 3 DIV - 69, - 87 * + + 11 AS col1
----
0
-957

skipif mysql # not compatible
query II rowsort label-6966
SELECT ALL - 3 / - 69, - 87 * + + 11 AS col1
----
0
-957

query I rowsort
SELECT ALL + 32 - 4 - + 45 AS col0
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6968
SELECT ALL 40 * + - COUNT( * ) * + + NULLIF ( + 76, CAST( - COUNT( * ) AS SIGNED ) ) * + 1 + - MIN( - 64 )
----
-2976

skipif mysql # not compatible
query I rowsort label-6968
SELECT ALL 40 * + - COUNT ( * ) * + + NULLIF ( + 76, CAST ( - COUNT ( * ) AS INTEGER ) ) * + 1 + - MIN ( - 64 )
----
-2976

onlyif mysql # aggregate syntax: 
query I rowsort label-6969
SELECT + 49 + - + 8 - COUNT( * )
----
40

skipif mysql # not compatible
query I rowsort label-6969
SELECT + 49 + - + 8 - COUNT ( * )
----
40

query I rowsort
SELECT ( - 26 ) + + 97 * + 49
----
4727

query II rowsort
SELECT ALL 2 - - 10, - NULLIF ( + 55, + 43 ) AS col2
----
12
-55

onlyif mysql # aggregate syntax: 
query II rowsort label-6972
SELECT + ( - + 33 ) AS col2, + NULLIF ( + 1, COUNT( * ) ) col0
----
-33
NULL

skipif mysql # not compatible
query II rowsort label-6972
SELECT + ( - + 33 ) AS col2, + NULLIF ( + 1, COUNT ( * ) ) col0
----
-33
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6973
SELECT MIN( ALL + ( - 21 ) )
----
-21

skipif mysql # not compatible
query I rowsort label-6973
SELECT MIN ( ALL + ( - 21 ) )
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-6974
SELECT COUNT( * ) * + COUNT( * ) + + 35 * 19 + COUNT( * )
----
667

skipif mysql # not compatible
query I rowsort label-6974
SELECT COUNT ( * ) * + COUNT ( * ) + + 35 * 19 + COUNT ( * )
----
667

query I rowsort
SELECT 66 + + 92
----
158

query I rowsort
SELECT - 26 + + 50 * 82 AS col2
----
4074

onlyif mysql # aggregate syntax: 
query II rowsort label-6977
SELECT ALL ( + - COUNT( * ) ) AS col0, 31
----
-1
31

skipif mysql # not compatible
query II rowsort label-6977
SELECT ALL ( + - COUNT ( * ) ) AS col0, 31
----
-1
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6978
SELECT ( - + CAST( 78 AS SIGNED ) ) AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-6978
SELECT ( - + CAST ( 78 AS INTEGER ) ) AS col2
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-6979
SELECT ALL - - COALESCE ( SUM( + 44 ), COUNT( * ) + 80, 93 * - COUNT( * ) )
----
44

skipif mysql # not compatible
query I rowsort label-6979
SELECT ALL - - COALESCE ( SUM ( + 44 ), COUNT ( * ) + 80, 93 * - COUNT ( * ) )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-6980
SELECT DISTINCT - MIN( DISTINCT - - 5 )
----
-5

skipif mysql # not compatible
query I rowsort label-6980
SELECT DISTINCT - MIN ( DISTINCT - - 5 )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-6981
SELECT DISTINCT - 45 * + CASE + 15 WHEN + 86 + - - 45 * MIN( ALL 55 ) THEN + 49 * 74 END + - 15 / + 74
----
NULL

skipif mysql # not compatible
query I rowsort label-6981
SELECT DISTINCT - 45 * + CASE + 15 WHEN + 86 + - - 45 * MIN ( ALL 55 ) THEN + 49 * 74 END + - 15 / + 74
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6982
SELECT DISTINCT - MIN( DISTINCT + + 42 ) * - + CASE 60 WHEN ( - COALESCE ( - COUNT( * ), + 41 * - 24 ) ) * - 61 - 6 THEN NULL WHEN 73 THEN 33 END + 2 / + 20 + - 61 * 12 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6982
SELECT DISTINCT - MIN ( DISTINCT + + 42 ) * - + CASE 60 WHEN ( - COALESCE ( - COUNT ( * ), + 41 * - 24 ) ) * - 61 - 6 THEN NULL WHEN 73 THEN 33 END + 2 / + 20 + - 61 * 12 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6983
SELECT ALL - 34 * + COUNT( * ) DIV - + NULLIF ( - 77, + - 39 * - 60 + - 64 ) * + 34 + 98
----
98

skipif mysql # not compatible
query I rowsort label-6983
SELECT ALL - 34 * + COUNT ( * ) / - + NULLIF ( - 77, + - 39 * - 60 + - 64 ) * + 34 + 98
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6984
SELECT DISTINCT CAST( NULL AS SIGNED ) * - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6984
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6985
SELECT ALL 66 * + 41 + NULLIF ( - 6, - 63 + + COUNT( * ) * + 39 ) * 35
----
2496

skipif mysql # not compatible
query I rowsort label-6985
SELECT ALL 66 * + 41 + NULLIF ( - 6, - 63 + + COUNT ( * ) * + 39 ) * 35
----
2496

onlyif mysql # aggregate syntax: 
query I rowsort label-6986
SELECT ALL - 35 * - - NULLIF ( - + 71, + 7 ) * - COUNT( * ) + - 11 + - MIN( ALL - 97 + + 31 ) AS col2
----
-2430

skipif mysql # not compatible
query I rowsort label-6986
SELECT ALL - 35 * - - NULLIF ( - + 71, + 7 ) * - COUNT ( * ) + - 11 + - MIN ( ALL - 97 + + 31 ) AS col2
----
-2430

onlyif mysql # aggregate syntax: 
query I rowsort label-6987
SELECT COUNT( * ) * 20 AS col2
----
20

skipif mysql # not compatible
query I rowsort label-6987
SELECT COUNT ( * ) * 20 AS col2
----
20

query I rowsort
SELECT 37 * - 51
----
-1887

query I rowsort
SELECT ( 85 ) * - - 82 + 77 * + 98 + 77 AS col0
----
14593

onlyif mysql # aggregate syntax: 
query I rowsort label-6990
SELECT + NULLIF ( COUNT( * ), ( - 42 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6990
SELECT + NULLIF ( COUNT ( * ), ( - 42 ) ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6991
SELECT ALL + COALESCE ( 43, - 63 * - - 74 * 34 + - COALESCE ( 44, CASE CASE 52 WHEN + 71 THEN - COUNT( DISTINCT 92 ) - CAST( + 97 AS SIGNED ) WHEN 26 THEN NULL END WHEN - ( 36 ) THEN 62 + - COALESCE ( NULLIF ( - SUM( DISTINCT - 20 ), - 14 ), + 29 ) END ) )
----
43

skipif mysql # not compatible
query I rowsort label-6991
SELECT ALL + COALESCE ( 43, - 63 * - - 74 * 34 + - COALESCE ( 44, CASE CASE 52 WHEN + 71 THEN - COUNT ( DISTINCT 92 ) - CAST ( + 97 AS INTEGER ) WHEN 26 THEN NULL END WHEN - ( 36 ) THEN 62 + - COALESCE ( NULLIF ( - SUM ( DISTINCT - 20 ), - 14 ), + 29 ) END ) )
----
43

query I rowsort
SELECT DISTINCT ( + 91 ) - + + 61
----
30

query I rowsort
SELECT - 69 + - - 57 + 88 * 43
----
3772

query I rowsort
SELECT DISTINCT - 17 * - 55 AS col0
----
935

onlyif mysql # aggregate syntax: 
query I rowsort label-6995
SELECT ALL COALESCE ( + 22, + COUNT( * ) * 46 - - + 57 )
----
22

skipif mysql # not compatible
query I rowsort label-6995
SELECT ALL COALESCE ( + 22, + COUNT ( * ) * 46 - - + 57 )
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-6996
SELECT - 22 * - COUNT( * )
----
22

skipif mysql # not compatible
query I rowsort label-6996
SELECT - 22 * - COUNT ( * )
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6997
SELECT - - 28 - - CAST( NULL AS SIGNED ) + - 68, 66 AS col2
----
NULL
66

skipif mysql # not compatible
query II rowsort label-6997
SELECT - - 28 - - CAST ( NULL AS INTEGER ) + - 68, 66 AS col2
----
NULL
66

query I rowsort
SELECT - 60 * - 57 * + - 8
----
-27360

onlyif mysql # aggregate syntax: 
query I rowsort label-6999
SELECT - NULLIF ( - ( - 45 ), + SUM( - - 17 ) + 69 ) + 2
----
-43

skipif mysql # not compatible
query I rowsort label-6999
SELECT - NULLIF ( - ( - 45 ), + SUM ( - - 17 ) + 69 ) + 2
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-7000
SELECT + COUNT( ALL - 82 )
----
1

skipif mysql # not compatible
query I rowsort label-7000
SELECT + COUNT ( ALL - 82 )
----
1

query I rowsort
SELECT DISTINCT - ( + 1 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7002
SELECT ALL - 60 * - COUNT( * )
----
60

skipif mysql # not compatible
query I rowsort label-7002
SELECT ALL - 60 * - COUNT ( * )
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-7003
SELECT + - 21 DIV + 45
----
0

skipif mysql # not compatible
query I rowsort label-7003
SELECT + - 21 / + 45
----
0

query I rowsort
SELECT ALL + ( + 93 ) * - + 57 * - 4 * 33 col1
----
699732

onlyif mysql # aggregate syntax: 
query II rowsort label-7005
SELECT - 63 * ( + + 85 ) col2, - COUNT( + + 30 ) + - 73 AS col1
----
-5355
-74

skipif mysql # not compatible
query II rowsort label-7005
SELECT - 63 * ( + + 85 ) col2, - COUNT ( + + 30 ) + - 73 AS col1
----
-5355
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7006
SELECT ALL 16 * - ( - COUNT( * ) ) AS col0, 42 * CAST( + 2 AS SIGNED ) + 53 * 35
----
16
1939

skipif mysql # not compatible
query II rowsort label-7006
SELECT ALL 16 * - ( - COUNT ( * ) ) AS col0, 42 * CAST ( + 2 AS INTEGER ) + 53 * 35
----
16
1939

query II rowsort
SELECT 44, 74 AS col2
----
44
74

onlyif mysql # aggregate syntax: 
query I rowsort label-7008
SELECT - + COUNT( * ) - - CASE + 85 WHEN 3 THEN + 44 * COUNT( * ) WHEN 37 THEN 18 WHEN 79 THEN 8 END - - 55 * + 46 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7008
SELECT - + COUNT ( * ) - - CASE + 85 WHEN 3 THEN + 44 * COUNT ( * ) WHEN 37 THEN 18 WHEN 79 THEN 8 END - - 55 * + 46 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7009
SELECT 19 AS col2, - ( - - COUNT( * ) )
----
19
-1

skipif mysql # not compatible
query II rowsort label-7009
SELECT 19 AS col2, - ( - - COUNT ( * ) )
----
19
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7010
SELECT ALL 43 + - 57 * + ( - COUNT( * ) ) - MAX( 90 ) + - CAST( NULL AS SIGNED ) * + 33
----
NULL

skipif mysql # not compatible
query I rowsort label-7010
SELECT ALL 43 + - 57 * + ( - COUNT ( * ) ) - MAX ( 90 ) + - CAST ( NULL AS INTEGER ) * + 33
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7011
SELECT ( + + SUM( ALL 0 ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7011
SELECT ( + + SUM ( ALL 0 ) ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7012
SELECT + 18 * + + NULLIF ( - + 92, - COUNT( * ) )
----
-1656

skipif mysql # not compatible
query I rowsort label-7012
SELECT + 18 * + + NULLIF ( - + 92, - COUNT ( * ) )
----
-1656

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7013
SELECT ALL - ( - 49 ) * 10 * + 48 * - 73 * - + 19 DIV ( + COUNT( * ) ) + 73
----
32622313

skipif mysql # not compatible
query I rowsort label-7013
SELECT ALL - ( - 49 ) * 10 * + 48 * - 73 * - + 19 / ( + COUNT ( * ) ) + 73
----
32622313

onlyif mysql # aggregate syntax: 
query I rowsort label-7014
SELECT - 6 + - 31 + 46 * + 28 * - - COUNT( * ) * - - MIN( ALL 63 ) / - CASE MIN( 17 ) WHEN + 60 THEN - 17 ELSE NULL END + 76 * 94 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7014
SELECT - 6 + - 31 + 46 * + 28 * - - COUNT ( * ) * - - MIN ( ALL 63 ) / - CASE MIN ( 17 ) WHEN + 60 THEN - 17 ELSE NULL END + 76 * 94 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7015
SELECT + ( COUNT( * ) ) col1
----
1

skipif mysql # not compatible
query I rowsort label-7015
SELECT + ( COUNT ( * ) ) col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7016
SELECT ( SUM( ALL - 14 ) )
----
-14

skipif mysql # not compatible
query I rowsort label-7016
SELECT ( SUM ( ALL - 14 ) )
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7017
SELECT + MAX( - 1 ) * - 98 + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7017
SELECT + MAX ( - 1 ) * - 98 + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL 30 * - - 27 + + 98
----
908

onlyif mysql # aggregate syntax: 
query II rowsort label-7019
SELECT + 0 * - + 64 col1, COALESCE ( + SUM( - 66 ), - 27 ) + - 62 AS col0
----
0
-128

skipif mysql # not compatible
query II rowsort label-7019
SELECT + 0 * - + 64 col1, COALESCE ( + SUM ( - 66 ), - 27 ) + - 62 AS col0
----
0
-128

query I rowsort
SELECT ( + 94 ) AS col2
----
94

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7021
SELECT + CAST( NULL AS DECIMAL ) AS col1, 71 + 15
----
NULL
86

skipif mysql # not compatible
query II rowsort label-7021
SELECT + CAST ( NULL AS REAL ) AS col1, 71 + 15
----
NULL
86

onlyif mysql # aggregate syntax: 
query II rowsort label-7022
SELECT + COALESCE ( 63, + 89 + + - 13 ) AS col0, SUM( DISTINCT + 51 ) AS col2
----
63
51

skipif mysql # not compatible
query II rowsort label-7022
SELECT + COALESCE ( 63, + 89 + + - 13 ) AS col0, SUM ( DISTINCT + 51 ) AS col2
----
63
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7023
SELECT + MAX( DISTINCT 37 ) + + + 80 AS col1
----
117

skipif mysql # not compatible
query I rowsort label-7023
SELECT + MAX ( DISTINCT 37 ) + + + 80 AS col1
----
117

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7024
SELECT ALL ( + NULLIF ( - - ( 12 ), COALESCE ( + + CAST( + 83 AS SIGNED ), + COUNT( * ) * NULLIF ( - 72 / 40, 60 ), 90 * - 64 ) + + MIN( DISTINCT 46 ) / + 13 ) ) * - 9
----
-108

skipif mysql # not compatible
query I rowsort label-7024
SELECT ALL ( + NULLIF ( - - ( 12 ), COALESCE ( + + CAST ( + 83 AS INTEGER ), + COUNT ( * ) * NULLIF ( - 72 / 40, 60 ), 90 * - 64 ) + + MIN ( DISTINCT 46 ) / + 13 ) ) * - 9
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-7025
SELECT DISTINCT 93 * - CASE + 91 WHEN + 84 + 98 * - 26 THEN NULL ELSE 13 - - MIN( + 23 ) END
----
-3348

skipif mysql # not compatible
query I rowsort label-7025
SELECT DISTINCT 93 * - CASE + 91 WHEN + 84 + 98 * - 26 THEN NULL ELSE 13 - - MIN ( + 23 ) END
----
-3348

query I rowsort
SELECT + ( - + 45 ) * ( - CASE - 89 WHEN - 31 + 92 THEN + 65 ELSE - 36 END ) + 63 AS col2
----
-1557

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7027
SELECT + 92 + COUNT( * ) + CASE + - 76 WHEN + + 96 + + 67 THEN NULL WHEN 24 + 13 THEN NULLIF ( - 74, + 16 - - MIN( 11 ) * - CAST( NULL AS SIGNED ) ) END / + MIN( - 52 - + 85 / + CAST( 53 + 5 AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7027
SELECT + 92 + COUNT ( * ) + CASE + - 76 WHEN + + 96 + + 67 THEN NULL WHEN 24 + 13 THEN NULLIF ( - 74, + 16 - - MIN ( 11 ) * - CAST ( NULL AS INTEGER ) ) END / + MIN ( - 52 - + 85 / + CAST ( 53 + 5 AS INTEGER ) )
----
NULL

query I rowsort
SELECT - 5 + - 22 AS col1
----
-27

query I rowsort
SELECT ( - ( + 48 ) ) AS col1
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7030
SELECT DISTINCT CASE 50 WHEN + 51 THEN COUNT( * ) + CAST( + 34 AS SIGNED ) ELSE + 15 + 59 END
----
74

skipif mysql # not compatible
query I rowsort label-7030
SELECT DISTINCT CASE 50 WHEN + 51 THEN COUNT ( * ) + CAST ( + 34 AS INTEGER ) ELSE + 15 + 59 END
----
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7031
SELECT - - 57 col2, SUM( - 72 ) DIV COALESCE ( + ( - COUNT( * ) ), + 70 * - 89, + 92 ) - 37 * - 21 AS col2
----
57
849

skipif mysql # not compatible
query II rowsort label-7031
SELECT - - 57 col2, SUM ( - 72 ) / COALESCE ( + ( - COUNT ( * ) ), + 70 * - 89, + 92 ) - 37 * - 21 AS col2
----
57
849

onlyif mysql # aggregate syntax: 
query I rowsort label-7032
SELECT DISTINCT MAX( 62 )
----
62

skipif mysql # not compatible
query I rowsort label-7032
SELECT DISTINCT MAX ( 62 )
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7033
SELECT DISTINCT + 90, CAST( NULL AS SIGNED ) / + 16 AS col0
----
90
NULL

skipif mysql # not compatible
query II rowsort label-7033
SELECT DISTINCT + 90, CAST ( NULL AS INTEGER ) / + 16 AS col0
----
90
NULL

query I rowsort
SELECT ALL - 31 * 30
----
-930

onlyif mysql # aggregate syntax: 
query I rowsort label-7035
SELECT ALL MAX( ALL + + 51 ) + - 6 AS col2
----
45

skipif mysql # not compatible
query I rowsort label-7035
SELECT ALL MAX ( ALL + + 51 ) + - 6 AS col2
----
45

query I rowsort
SELECT - ( + 93 )
----
-93

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7037
SELECT - 78 AS col0, CAST( 56 AS SIGNED ) AS col0
----
-78
56

skipif mysql # not compatible
query II rowsort label-7037
SELECT - 78 AS col0, CAST ( 56 AS INTEGER ) AS col0
----
-78
56

onlyif mysql # aggregate syntax: 
query I rowsort label-7038
SELECT + 47 + + 6 * 10 + - COUNT( * ) + + + 66 * - - MAX( DISTINCT - 10 )
----
-554

skipif mysql # not compatible
query I rowsort label-7038
SELECT + 47 + + 6 * 10 + - COUNT ( * ) + + + 66 * - - MAX ( DISTINCT - 10 )
----
-554

query I rowsort
SELECT - 17 - - 15 + - 95
----
-97

query I rowsort
SELECT DISTINCT COALESCE ( + - 5, + - 13 )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7041
SELECT + 61 + CASE + 76 WHEN - COUNT( - 76 ) THEN - 79 + 7 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7041
SELECT + 61 + CASE + 76 WHEN - COUNT ( - 76 ) THEN - 79 + 7 END col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7042
SELECT - MAX( ALL - 32 ), COUNT( * ) + 61 AS col1
----
32
62

skipif mysql # not compatible
query II rowsort label-7042
SELECT - MAX ( ALL - 32 ), COUNT ( * ) + 61 AS col1
----
32
62

query I rowsort
SELECT ALL + + ( 80 ) + ( 55 ) * - 65 - 11 col0
----
-3506

onlyif mysql # aggregate syntax: 
query II rowsort label-7044
SELECT ALL NULLIF ( + ( 63 ), + COUNT( * ) ), COALESCE ( - - 92, + 20, 56 + 45 ) + + ( + 54 ) AS col2
----
63
146

skipif mysql # not compatible
query II rowsort label-7044
SELECT ALL NULLIF ( + ( 63 ), + COUNT ( * ) ), COALESCE ( - - 92, + 20, 56 + 45 ) + + ( + 54 ) AS col2
----
63
146

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7045
SELECT DISTINCT + 77 + + - 20 + NULLIF ( + 81, - - ( - ( 7 ) ) - ( SUM( + 1 ) ) ) DIV 39
----
59

skipif mysql # not compatible
query I rowsort label-7045
SELECT DISTINCT + 77 + + - 20 + NULLIF ( + 81, - - ( - ( 7 ) ) - ( SUM ( + 1 ) ) ) / 39
----
59

query I rowsort
SELECT ALL 13 * + 69
----
897

onlyif mysql # aggregate syntax: 
query III rowsort label-7047
SELECT - COUNT( * ) + 98 * - 12 col0, - ( - 64 ) AS col2, - 79 + 71 - COUNT( * ) * 7 AS col2
----
-1177
64
-15

skipif mysql # not compatible
query III rowsort label-7047
SELECT - COUNT ( * ) + 98 * - 12 col0, - ( - 64 ) AS col2, - 79 + 71 - COUNT ( * ) * 7 AS col2
----
-1177
64
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7048
SELECT ALL + 7 + + MAX( ALL 35 ) AS col1, COUNT( * ) * - 70 DIV 28 AS col0
----
42
-2

skipif mysql # not compatible
query II rowsort label-7048
SELECT ALL + 7 + + MAX ( ALL 35 ) AS col1, COUNT ( * ) * - 70 / 28 AS col0
----
42
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-7049
SELECT - 30 * - 71 AS col1, 38 * - 69 * - - 78 - CASE + 31 WHEN - AVG ( - 27 ) THEN 79 WHEN 48 * - NULLIF ( + 35, + COUNT( * ) + 66 ) + - MAX( 44 ) THEN NULL ELSE NULL END + + MIN( ALL 71 ) * + 6 AS col1
----
2130
NULL

skipif mysql # not compatible
query II rowsort label-7049
SELECT - 30 * - 71 AS col1, 38 * - 69 * - - 78 - CASE + 31 WHEN - AVG ( - 27 ) THEN 79 WHEN 48 * - NULLIF ( + 35, + COUNT ( * ) + 66 ) + - MAX ( 44 ) THEN NULL ELSE NULL END + + MIN ( ALL 71 ) * + 6 AS col1
----
2130
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7050
SELECT - NULLIF ( ( - + COUNT( * ) ), 18 ) * - COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7050
SELECT - NULLIF ( ( - + COUNT ( * ) ), 18 ) * - COUNT ( * ) AS col2
----
-1

query I rowsort
SELECT - COALESCE ( 73, 13 * + 92 )
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7052
SELECT - 6 * CAST( - - 34 AS SIGNED ) * 53 * - ( - 81 )
----
-875772

skipif mysql # not compatible
query I rowsort label-7052
SELECT - 6 * CAST ( - - 34 AS INTEGER ) * 53 * - ( - 81 )
----
-875772

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7053
SELECT + 45 DIV MIN( - 83 ) + - 3 + + 95 * - + 47 AS col0
----
-4468

skipif mysql # not compatible
query I rowsort label-7053
SELECT + 45 / MIN ( - 83 ) + - 3 + + 95 * - + 47 AS col0
----
-4468

query I rowsort
SELECT DISTINCT - 16 * + 20
----
-320

onlyif mysql # aggregate syntax: 
query I rowsort label-7055
SELECT DISTINCT 5 - + - 65 * + COUNT( DISTINCT + 69 )
----
70

skipif mysql # not compatible
query I rowsort label-7055
SELECT DISTINCT 5 - + - 65 * + COUNT ( DISTINCT + 69 )
----
70

query I rowsort
SELECT DISTINCT + 17 * + + 80 * 25 AS col2
----
34000

query I rowsort
SELECT ( 20 ) * + + 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7058
SELECT MAX( 28 )
----
28

skipif mysql # not compatible
query I rowsort label-7058
SELECT MAX ( 28 )
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-7059
SELECT ALL + - 48 DIV 28 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7059
SELECT ALL + - 48 / 28 AS col2
----
-1

query I rowsort
SELECT DISTINCT 91 * - 35 * 88 * - 96
----
26906880

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7061
SELECT DISTINCT - 82 * + NULLIF ( 61, - 95 * CAST( + ( - 34 ) AS SIGNED ) + MIN( - 28 ) ) col1
----
-5002

skipif mysql # not compatible
query I rowsort label-7061
SELECT DISTINCT - 82 * + NULLIF ( 61, - 95 * CAST ( + ( - 34 ) AS INTEGER ) + MIN ( - 28 ) ) col1
----
-5002

query II rowsort
SELECT ALL 35 + + 33 AS col0, 27 * + 39
----
68
1053

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7063
SELECT ALL 53 + 90 - + + 83 * - 34 * 21 * - - 61 DIV - + COUNT( * ) - NULLIF ( 87 + 87, ( COALESCE ( 10, 32, + COUNT( * ) - NULLIF ( COALESCE ( - 26, COALESCE ( + COUNT( * ), - 65 ), NULLIF ( COUNT( * ), - 9 ) ), ( COUNT( * ) ) - 7 ) ) ) )
----
-3615013

skipif mysql # not compatible
query I rowsort label-7063
SELECT ALL 53 + 90 - + + 83 * - 34 * 21 * - - 61 / - + COUNT ( * ) - NULLIF ( 87 + 87, ( COALESCE ( 10, 32, + COUNT ( * ) - NULLIF ( COALESCE ( - 26, COALESCE ( + COUNT ( * ), - 65 ), NULLIF ( COUNT ( * ), - 9 ) ), ( COUNT ( * ) ) - 7 ) ) ) )
----
-3615013

onlyif mysql # aggregate syntax: 
query I rowsort label-7064
SELECT - - 31 * + 3 + + COUNT( * ) AS col1
----
94

skipif mysql # not compatible
query I rowsort label-7064
SELECT - - 31 * + 3 + + COUNT ( * ) AS col1
----
94

onlyif mysql # aggregate syntax: 
query II rowsort label-7065
SELECT DISTINCT + 58 + 53 AS col2, + COUNT( * ) * - - 61 AS col2
----
111
61

skipif mysql # not compatible
query II rowsort label-7065
SELECT DISTINCT + 58 + 53 AS col2, + COUNT ( * ) * - - 61 AS col2
----
111
61

onlyif mysql # aggregate syntax: 
query I rowsort label-7066
SELECT + 45 / + + CASE - 13 WHEN - - 41 / + + COUNT( * ) THEN - 48 END + COUNT( * ) * - 66
----
NULL

skipif mysql # not compatible
query I rowsort label-7066
SELECT + 45 / + + CASE - 13 WHEN - - 41 / + + COUNT ( * ) THEN - 48 END + COUNT ( * ) * - 66
----
NULL

query I rowsort
SELECT 41 + - + 28 + + ( 65 ) + + - 18 * - 22 + + - 59 + + ( 97 ) AS col0
----
512

query I rowsort
SELECT + ( - - 77 ) + + 51 AS col0
----
128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7069
SELECT ALL + COUNT( * ) + - ( 24 ) - + CAST( NULL AS SIGNED ) * 15 * + + 88 + + 40 * + 47
----
NULL

skipif mysql # not compatible
query I rowsort label-7069
SELECT ALL + COUNT ( * ) + - ( 24 ) - + CAST ( NULL AS INTEGER ) * 15 * + + 88 + + 40 * + 47
----
NULL

query I rowsort
SELECT DISTINCT + 75 + - 15 AS col2
----
60

onlyif mysql # DIV for integer division: 
query II rowsort label-7071
SELECT + 85 - + 14 AS col2, 89 DIV 19 * - - 10 AS col1
----
71
40

skipif mysql # not compatible
query II rowsort label-7071
SELECT + 85 - + 14 AS col2, 89 / 19 * - - 10 AS col1
----
71
40

query I rowsort
SELECT ALL CASE + - 86 WHEN 47 * + + 0 THEN NULL WHEN + 36 THEN + 82 END AS col1
----
NULL

query I rowsort
SELECT ALL 64 + 23 AS col2
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-7074
SELECT DISTINCT + COUNT( * ) * MAX( 14 ) * + 66
----
924

skipif mysql # not compatible
query I rowsort label-7074
SELECT DISTINCT + COUNT ( * ) * MAX ( 14 ) * + 66
----
924

onlyif mysql # aggregate syntax: 
query I rowsort label-7075
SELECT COUNT( * ) - + - 22 AS col2
----
23

skipif mysql # not compatible
query I rowsort label-7075
SELECT COUNT ( * ) - + - 22 AS col2
----
23

query I rowsort
SELECT ( + 76 ) * 58 * + - 92
----
-405536

query I rowsort
SELECT ALL + 2 * - - 23 * + 34 AS col2
----
1564

query II rowsort
SELECT ALL 36, 25 AS col1
----
36
25

query II rowsort
SELECT 27, + 85 col2
----
27
85

query I rowsort
SELECT 53 - + 90 + - - 56 + + - 34 * 53
----
-1783

onlyif mysql # aggregate syntax: 
query II rowsort label-7081
SELECT DISTINCT - COUNT( * ) AS col1, - 58
----
-1
-58

skipif mysql # not compatible
query II rowsort label-7081
SELECT DISTINCT - COUNT ( * ) AS col1, - 58
----
-1
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-7082
SELECT DISTINCT - COUNT( * ) * - - 17
----
-17

skipif mysql # not compatible
query I rowsort label-7082
SELECT DISTINCT - COUNT ( * ) * - - 17
----
-17

query I rowsort
SELECT 52 + 9
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7084
SELECT 88 * CAST( + 31 AS SIGNED )
----
2728

skipif mysql # not compatible
query I rowsort label-7084
SELECT 88 * CAST ( + 31 AS INTEGER )
----
2728

onlyif mysql # aggregate syntax: 
query I rowsort label-7085
SELECT 62 + + 10 + + - 75 * - COUNT( * ) col0
----
147

skipif mysql # not compatible
query I rowsort label-7085
SELECT 62 + + 10 + + - 75 * - COUNT ( * ) col0
----
147

query I rowsort
SELECT ALL - 40 * + 92
----
-3680

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7087
SELECT 68 DIV + NULLIF ( + 97, - COUNT( * ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7087
SELECT 68 / + NULLIF ( + 97, - COUNT ( * ) ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7088
SELECT + MAX( ALL 46 ) * + 2 + 91 * + 82 * - 23
----
-171534

skipif mysql # not compatible
query I rowsort label-7088
SELECT + MAX ( ALL 46 ) * + 2 + 91 * + 82 * - 23
----
-171534

query I rowsort
SELECT 78 * - 38
----
-2964

query I rowsort
SELECT DISTINCT - NULLIF ( 86, + 7 ) AS col1
----
-86

query I rowsort
SELECT DISTINCT + 86 + + 95 AS col1
----
181

query I rowsort
SELECT 10 + - 70
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7093
SELECT DISTINCT - CAST( - - 87 AS SIGNED ) AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-7093
SELECT DISTINCT - CAST ( - - 87 AS INTEGER ) AS col2
----
-87

query I rowsort
SELECT ALL - 95 + + 62 - 4 AS col0
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7095
SELECT ALL + - 45 + + 84 - + COUNT( * ) + + 44 * - + CAST( NULL AS SIGNED ) * 40 * - 79 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7095
SELECT ALL + - 45 + + 84 - + COUNT ( * ) + + 44 * - + CAST ( NULL AS INTEGER ) * 40 * - 79 AS col0
----
NULL

query II rowsort
SELECT 20 * + ( + + 92 ), + 89 * - 74 AS col2
----
1840
-6586

onlyif mysql # aggregate syntax: 
query I rowsort label-7097
SELECT + 3 + - COALESCE ( - + MAX( - 8 ), + 48 )
----
-5

skipif mysql # not compatible
query I rowsort label-7097
SELECT + 3 + - COALESCE ( - + MAX ( - 8 ), + 48 )
----
-5

query I rowsort
SELECT ALL + 79 + + 93 * - 97 * - 94
----
848053

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7099
SELECT DISTINCT - - 78 + + + 6 + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7099
SELECT DISTINCT - - 78 + + + 6 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7100
SELECT - 70 + - 60 - - 24 * + NULLIF ( - 24, SUM( ALL - 5 ) ) * + COUNT( * ) + + 58 DIV - 21
----
-708

skipif mysql # not compatible
query I rowsort label-7100
SELECT - 70 + - 60 - - 24 * + NULLIF ( - 24, SUM ( ALL - 5 ) ) * + COUNT ( * ) + + 58 / - 21
----
-708

query II rowsort
SELECT ALL 35 AS col1, 85 - + 81 AS col1
----
35
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7102
SELECT ALL ( + 2 ) + CAST( + - NULLIF ( + COUNT( * ), + COUNT( * ) * + - 69 + + - 45 ) AS SIGNED ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7102
SELECT ALL ( + 2 ) + CAST ( + - NULLIF ( + COUNT ( * ), + COUNT ( * ) * + - 69 + + - 45 ) AS INTEGER ) AS col2
----
1

query II rowsort
SELECT DISTINCT + 53, - 62 col1
----
53
-62

query I rowsort
SELECT 68 + - 24 AS col2
----
44

query I rowsort
SELECT + 1 - - + 54
----
55

query I rowsort
SELECT 27 * - 83 AS col2
----
-2241

query I rowsort
SELECT + + 21 + 39
----
60

query I rowsort
SELECT + + 16 - 30 - 39
----
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-7109
SELECT + COUNT( * ) * - 38, + 45 + - - 24 * - NULLIF ( - 57, COUNT( * ) * + 2 ) + - NULLIF ( - 19, 12 ) col0
----
-38
1432

skipif mysql # not compatible
query II rowsort label-7109
SELECT + COUNT ( * ) * - 38, + 45 + - - 24 * - NULLIF ( - 57, COUNT ( * ) * + 2 ) + - NULLIF ( - 19, 12 ) col0
----
-38
1432

query I rowsort
SELECT + 77 + 21
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-7111
SELECT + COALESCE ( + 46, + + COUNT( * ) * + COUNT( - 96 ) * 46 ) * 38 AS col2
----
1748

skipif mysql # not compatible
query I rowsort label-7111
SELECT + COALESCE ( + 46, + + COUNT ( * ) * + COUNT ( - 96 ) * 46 ) * 38 AS col2
----
1748

query I rowsort
SELECT + ( + 85 ) + 13 AS col2
----
98

query I rowsort
SELECT - CASE - 55 WHEN 58 THEN + - 26 END AS col1
----
NULL

query I rowsort
SELECT - ( + 38 ) + 34 - - 15 AS col2
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7115
SELECT - CASE 86 WHEN - 12 * + 82 - - 90 + 42 - 96 / + 22 * + - COUNT( * ) * 33 THEN 85 ELSE - CASE 11 WHEN - 45 + - CASE 60 WHEN - 42 + + 37 * 45 THEN + ( CAST( NULL AS SIGNED ) ) WHEN + CASE 92 WHEN NULLIF ( + 99, + NULLIF ( CAST( NULL AS SIGNED ), - 97 * + 13 + 70 * 65 ) - 32 ) * 41 THEN NULL ELSE - 43 END * 18 THEN NULL ELSE COUNT( DISTINCT - 19 ) END THEN SUM( 39 ) * + 48 ELSE 96 * 12 + + ( 21 ) END END col2
----
1173

skipif mysql # not compatible
query I rowsort label-7115
SELECT - CASE 86 WHEN - 12 * + 82 - - 90 + 42 - 96 / + 22 * + - COUNT ( * ) * 33 THEN 85 ELSE - CASE 11 WHEN - 45 + - CASE 60 WHEN - 42 + + 37 * 45 THEN + ( CAST ( NULL AS INTEGER ) ) WHEN + CASE 92 WHEN NULLIF ( + 99, + NULLIF ( CAST ( NULL AS INTEGER ), - 97 * + 13 + 70 * 65 ) - 32 ) * 41 THEN NULL ELSE - 43 END * 18 THEN NULL ELSE COUNT ( DISTINCT - 19 ) END THEN SUM ( 39 ) * + 48 ELSE 96 * 12 + + ( 21 ) END END col2
----
1173

onlyif mysql # aggregate syntax: 
query I rowsort label-7116
SELECT ( + ( COUNT( * ) ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7116
SELECT ( + ( COUNT ( * ) ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7117
SELECT - 93 * - - COUNT( * ) col1
----
-93

skipif mysql # not compatible
query I rowsort label-7117
SELECT - 93 * - - COUNT ( * ) col1
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-7118
SELECT ALL + 50 * - COUNT( * ) * + + 90 * + 99 + 60 * - 62 + - 94 + + + COUNT( * )
----
-449313

skipif mysql # not compatible
query I rowsort label-7118
SELECT ALL + 50 * - COUNT ( * ) * + + 90 * + 99 + 60 * - 62 + - 94 + + + COUNT ( * )
----
-449313

query I rowsort
SELECT ALL 11 * + + 58 + 92 col1
----
730

query I rowsort
SELECT DISTINCT 79 * - 32 + + 75 AS col2
----
-2453

onlyif mysql # DIV for integer division: 
query I rowsort label-7121
SELECT - 57 DIV + - 58 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7121
SELECT - 57 / + - 58 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7122
SELECT DISTINCT - CASE - 30 WHEN COUNT( * ) THEN NULL WHEN + - ( MIN( - - 4 ) ) THEN - 90 END * 94 + + 72
----
NULL

skipif mysql # not compatible
query I rowsort label-7122
SELECT DISTINCT - CASE - 30 WHEN COUNT ( * ) THEN NULL WHEN + - ( MIN ( - - 4 ) ) THEN - 90 END * 94 + + 72
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7123
SELECT ALL - 16 * + 81 + - + 9 * + 46 + - COUNT( * ) AS col0
----
-1711

skipif mysql # not compatible
query I rowsort label-7123
SELECT ALL - 16 * + 81 + - + 9 * + 46 + - COUNT ( * ) AS col0
----
-1711

onlyif mysql # DIV for integer division: 
query I rowsort label-7124
SELECT - 51 DIV - + 30 + - - 51 - + 36 col1
----
16

skipif mysql # not compatible
query I rowsort label-7124
SELECT - 51 / - + 30 + - - 51 - + 36 col1
----
16

query I rowsort
SELECT COALESCE ( - + 39, - 88, + - 54 ) * 34 - - + 28 AS col1
----
-1298

onlyif mysql # DIV for integer division: 
query II rowsort label-7126
SELECT ALL - - 80 DIV 58 * - - ( - 81 ) AS col2, 76
----
-81
76

skipif mysql # not compatible
query II rowsort label-7126
SELECT ALL - - 80 / 58 * - - ( - 81 ) AS col2, 76
----
-81
76

query I rowsort
SELECT + ( + + 30 ) + - ( 53 ) + + 31
----
8

query I rowsort
SELECT DISTINCT - 99 * 27 * + COALESCE ( 82, + 93 * + 71 ) + - - 67 * + 75
----
-214161

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7129
SELECT - - CAST( + COUNT( * ) AS SIGNED ) DIV - + COALESCE ( + - AVG ( - CAST( NULL AS SIGNED ) ), - - 61, MIN( ALL - 83 ) * - 3 + + 83 )
----
0

skipif mysql # not compatible
query I rowsort label-7129
SELECT - - CAST ( + COUNT ( * ) AS INTEGER ) / - + COALESCE ( + - AVG ( - CAST ( NULL AS INTEGER ) ), - - 61, MIN ( ALL - 83 ) * - 3 + + 83 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7130
SELECT - COALESCE ( + COUNT( * ), 93 * - COUNT( * ) ) * + 21 col1
----
-21

skipif mysql # not compatible
query I rowsort label-7130
SELECT - COALESCE ( + COUNT ( * ), 93 * - COUNT ( * ) ) * + 21 col1
----
-21

query I rowsort
SELECT + - 24 col0
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7132
SELECT DISTINCT + ( + COUNT( * ) ) * + CAST( - COUNT( * ) AS SIGNED ) + + 96 / + 37 + + COUNT( * ) - - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7132
SELECT DISTINCT + ( + COUNT ( * ) ) * + CAST ( - COUNT ( * ) AS INTEGER ) + + 96 / + 37 + + COUNT ( * ) - - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7133
SELECT ALL + CASE + MAX( DISTINCT + 1 ) WHEN + 90 THEN - 48 WHEN - 38 + + CAST( NULL AS SIGNED ) THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7133
SELECT ALL + CASE + MAX ( DISTINCT + 1 ) WHEN + 90 THEN - 48 WHEN - 38 + + CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7134
SELECT - - 11 + - 60 DIV - + 22 AS col2
----
13

skipif mysql # not compatible
query I rowsort label-7134
SELECT - - 11 + - 60 / - + 22 AS col2
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-7135
SELECT + MIN( ALL + 39 ) AS col1, + 86 col2
----
39
86

skipif mysql # not compatible
query II rowsort label-7135
SELECT + MIN ( ALL + 39 ) AS col1, + 86 col2
----
39
86

query I rowsort
SELECT - + 67 + - - 24 col1
----
-43

query I rowsort
SELECT ALL NULLIF ( ( + 59 ), - 58 * - 55 )
----
59

query I rowsort
SELECT + + 87 * 87 + + - 59 + 74 * + 84
----
13726

query I rowsort
SELECT ALL ( + COALESCE ( + ( - 36 ), - ( 18 ) + + 48 * - 57, 60 ) )
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-7140
SELECT - MIN( DISTINCT 66 )
----
-66

skipif mysql # not compatible
query I rowsort label-7140
SELECT - MIN ( DISTINCT 66 )
----
-66

query I rowsort
SELECT - 36 * 67
----
-2412

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7142
SELECT DISTINCT ( CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7142
SELECT DISTINCT ( CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT - CASE - 31 WHEN 70 / 8 THEN - - 78 ELSE + 2 END AS col0
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7144
SELECT ALL CAST( 21 AS SIGNED )
----
21

skipif mysql # not compatible
query I rowsort label-7144
SELECT ALL CAST ( 21 AS INTEGER )
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-7145
SELECT + COUNT( * ) * + 31 AS col1
----
31

skipif mysql # not compatible
query I rowsort label-7145
SELECT + COUNT ( * ) * + 31 AS col1
----
31

query I rowsort
SELECT - 17 - 27 AS col1
----
-44

query II rowsort
SELECT ALL 0, 77 * 22 AS col1
----
0
1694

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7148
SELECT + COUNT( 5 ) DIV + 76 - - 16
----
16

skipif mysql # not compatible
query I rowsort label-7148
SELECT + COUNT ( 5 ) / + 76 - - 16
----
16

query I rowsort
SELECT + 75 * - 41
----
-3075

query I rowsort
SELECT ALL - 86 + 32
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-7151
SELECT DISTINCT 87 + + - 25 + - - SUM( DISTINCT 40 ) * + + COALESCE ( 65, 47 ) AS col0
----
2662

skipif mysql # not compatible
query I rowsort label-7151
SELECT DISTINCT 87 + + - 25 + - - SUM ( DISTINCT 40 ) * + + COALESCE ( 65, 47 ) AS col0
----
2662

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7152
SELECT ALL 45 + + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7152
SELECT ALL 45 + + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7153
SELECT + 16 * + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7153
SELECT + 16 * + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT + 75 + ( + 46 ) - 65 * + 28
----
-1699

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7155
SELECT ALL + 47 DIV + 28 + - 28 + NULLIF ( - + 9, + 21 + - SUM( DISTINCT - + 97 ) - + 55 * + COUNT( * ) + 70 ) * 95 * + 88 AS col0
----
-75267

skipif mysql # not compatible
query I rowsort label-7155
SELECT ALL + 47 / + 28 + - 28 + NULLIF ( - + 9, + 21 + - SUM ( DISTINCT - + 97 ) - + 55 * + COUNT ( * ) + 70 ) * 95 * + 88 AS col0
----
-75267

query I rowsort
SELECT ( - ( + + ( - 82 ) ) ) * - 70 + 90
----
-5650

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7157
SELECT - 58 - - - COUNT( * ) * - 37 AS col0, COUNT( * ) DIV + + 25 AS col2
----
-21
0

skipif mysql # not compatible
query II rowsort label-7157
SELECT - 58 - - - COUNT ( * ) * - 37 AS col0, COUNT ( * ) / + + 25 AS col2
----
-21
0

query II rowsort
SELECT + 85, + 7 * + ( - 14 ) AS col1
----
85
-98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7159
SELECT DISTINCT - 4 DIV - 13 * + - COUNT( * ) * - + COUNT( ALL - 60 ) + + 28 + + 11 * + 81 DIV + + ( - 3 ) AS col2
----
-269

skipif mysql # not compatible
query I rowsort label-7159
SELECT DISTINCT - 4 / - 13 * + - COUNT ( * ) * - + COUNT ( ALL - 60 ) + + 28 + + 11 * + 81 / + + ( - 3 ) AS col2
----
-269

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7160
SELECT ALL + + AVG ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7160
SELECT ALL + + AVG ( CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT + + 32 * - 1
----
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7162
SELECT ALL + + CAST( + CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7162
SELECT ALL + + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7163
SELECT DISTINCT + 75 DIV - 96 - 43 AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-7163
SELECT DISTINCT + 75 / - 96 - 43 AS col0
----
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7164
SELECT - + CAST( - + COUNT( * ) AS SIGNED ) * + COUNT( * ) * 70 + 49
----
119

skipif mysql # not compatible
query I rowsort label-7164
SELECT - + CAST ( - + COUNT ( * ) AS INTEGER ) * + COUNT ( * ) * 70 + 49
----
119

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7165
SELECT ALL - ( COUNT( * ) ) DIV 97 - + + 82
----
-82

skipif mysql # not compatible
query I rowsort label-7165
SELECT ALL - ( COUNT ( * ) ) / 97 - + + 82
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-7166
SELECT - 52 * ( - NULLIF ( - CASE - 95 WHEN 25 THEN ( + COALESCE ( - 15, - COUNT( * ) ) ) * 84 END, COUNT( * ) ) ) * 64 - 33 + + 81
----
NULL

skipif mysql # not compatible
query I rowsort label-7166
SELECT - 52 * ( - NULLIF ( - CASE - 95 WHEN 25 THEN ( + COALESCE ( - 15, - COUNT ( * ) ) ) * 84 END, COUNT ( * ) ) ) * 64 - 33 + + 81
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7167
SELECT CAST( - - 1 AS SIGNED ) col2
----
1

skipif mysql # not compatible
query I rowsort label-7167
SELECT CAST ( - - 1 AS INTEGER ) col2
----
1

query I rowsort
SELECT + + 65 col0
----
65

query I rowsort
SELECT - 88 + 10
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7170
SELECT + 97 * + CAST( 6 AS SIGNED ) * 45
----
26190

skipif mysql # not compatible
query I rowsort label-7170
SELECT + 97 * + CAST ( 6 AS INTEGER ) * 45
----
26190

query I rowsort
SELECT ALL - - 98 * 19 AS col1
----
1862

query I rowsort
SELECT ALL - ( + + 57 )
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7173
SELECT + MIN( - CAST( 97 AS SIGNED ) ) DIV 45 * + COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-7173
SELECT + MIN ( - CAST ( 97 AS INTEGER ) ) / 45 * + COUNT ( * )
----
-2

query I rowsort
SELECT DISTINCT - 98 * 69
----
-6762

query II rowsort
SELECT ALL 80 AS col0, 25 AS col0
----
80
25

query I rowsort
SELECT ALL - 89 * + ( 90 )
----
-8010

query I rowsort
SELECT DISTINCT - 71 * + 92
----
-6532

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7178
SELECT ALL + 17 + + + 6 - CAST( COUNT( DISTINCT + - CAST( NULL AS SIGNED ) ) AS SIGNED ) + + - COUNT( * ) + + ( + 89 ) * + - 62
----
-5496

skipif mysql # not compatible
query I rowsort label-7178
SELECT ALL + 17 + + + 6 - CAST ( COUNT ( DISTINCT + - CAST ( NULL AS INTEGER ) ) AS INTEGER ) + + - COUNT ( * ) + + ( + 89 ) * + - 62
----
-5496

query I rowsort
SELECT 53 + + 17 AS col2
----
70

query I rowsort
SELECT ALL - 54 + ( 82 )
----
28

query I rowsort
SELECT 62 + + 3
----
65

query I rowsort
SELECT 72 + + + ( + ( + 31 ) ) * 28 + NULLIF ( 44, + + 82 + + 71 ) AS col1
----
984

query I rowsort
SELECT 7 + - 18 AS col1
----
-11

query II rowsort
SELECT 30, + 78 AS col0
----
30
78

query I rowsort
SELECT ALL + 54 + - 11 AS col2
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-7186
SELECT ALL - 82 + + ( ( - COUNT( * ) ) )
----
-83

skipif mysql # not compatible
query I rowsort label-7186
SELECT ALL - 82 + + ( ( - COUNT ( * ) ) )
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-7187
SELECT DISTINCT + 27 * + COUNT( + NULLIF ( - 5, 0 ) ) * COUNT( * ) - 38 AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-7187
SELECT DISTINCT + 27 * + COUNT ( + NULLIF ( - 5, 0 ) ) * COUNT ( * ) - 38 AS col1
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-7188
SELECT COUNT( * ) + + - 41 AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-7188
SELECT COUNT ( * ) + + - 41 AS col0
----
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7189
SELECT ALL COALESCE ( 84, + 64, - 33, + COUNT( * ) + 2 DIV + 96 ) + - + 87
----
-3

skipif mysql # not compatible
query I rowsort label-7189
SELECT ALL COALESCE ( 84, + 64, - 33, + COUNT ( * ) + 2 / + 96 ) + - + 87
----
-3

query I rowsort
SELECT DISTINCT + 9 * - 26 * 84 AS col2
----
-19656

onlyif mysql # aggregate syntax: 
query II rowsort label-7191
SELECT - 22 AS col0, + SUM( ALL + 53 ) AS col1
----
-22
53

skipif mysql # not compatible
query II rowsort label-7191
SELECT - 22 AS col0, + SUM ( ALL + 53 ) AS col1
----
-22
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7192
SELECT COUNT( ALL - 51 ) DIV 17 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7192
SELECT COUNT ( ALL - 51 ) / 17 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7193
SELECT 85 + COALESCE ( + 47, - NULLIF ( - NULLIF ( - 70, + - 70 ), 97 * - 15 + 89 ) + + CAST( NULL AS SIGNED ) ) + - 34
----
98

skipif mysql # not compatible
query I rowsort label-7193
SELECT 85 + COALESCE ( + 47, - NULLIF ( - NULLIF ( - 70, + - 70 ), 97 * - 15 + 89 ) + + CAST ( NULL AS INTEGER ) ) + - 34
----
98

query I rowsort
SELECT ALL + 41 - - + 4
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7195
SELECT ALL - + 9 * + 16 * + 93 * + - COUNT( * ) * + AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) + + 62 * + ( - + 60 ) + + + 98
----
NULL

skipif mysql # not compatible
query I rowsort label-7195
SELECT ALL - + 9 * + 16 * + 93 * + - COUNT ( * ) * + AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) + + 62 * + ( - + 60 ) + + + 98
----
NULL

query II rowsort
SELECT ALL - + 70 AS col2, + 3
----
-70
3

query I rowsort
SELECT DISTINCT - ( - 97 ) - - - 72 AS col1
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-7198
SELECT + 22 * - SUM( ALL - 3 ) AS col2
----
66

skipif mysql # not compatible
query I rowsort label-7198
SELECT + 22 * - SUM ( ALL - 3 ) AS col2
----
66

query I rowsort
SELECT DISTINCT - 58 * - 94 * - 77
----
-419804

onlyif mysql # aggregate syntax: 
query I rowsort label-7200
SELECT + + SUM( + + 24 ) AS col0
----
24

skipif mysql # not compatible
query I rowsort label-7200
SELECT + + SUM ( + + 24 ) AS col0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-7201
SELECT ALL - NULLIF ( + NULLIF ( 43, + ( - MIN( ALL 63 ) ) / + 43 * + 35 + 64 + ( - - 51 ) ), 14 )
----
-43

skipif mysql # not compatible
query I rowsort label-7201
SELECT ALL - NULLIF ( + NULLIF ( 43, + ( - MIN ( ALL 63 ) ) / + 43 * + 35 + 64 + ( - - 51 ) ), 14 )
----
-43

query I rowsort
SELECT + + ( + 13 ) AS col2
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7203
SELECT CAST( NULL AS SIGNED ) + - 70 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7203
SELECT CAST ( NULL AS INTEGER ) + - 70 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7204
SELECT + NULLIF ( COUNT( * ), - 26 - + + 19 * + 17 )
----
1

skipif mysql # not compatible
query I rowsort label-7204
SELECT + NULLIF ( COUNT ( * ), - 26 - + + 19 * + 17 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7205
SELECT ALL - MIN( ALL - + 21 ) * - + COUNT( * )
----
-21

skipif mysql # not compatible
query I rowsort label-7205
SELECT ALL - MIN ( ALL - + 21 ) * - + COUNT ( * )
----
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-7206
SELECT COUNT( * ) * - 25 AS col0, 14 AS col0
----
-25
14

skipif mysql # not compatible
query II rowsort label-7206
SELECT COUNT ( * ) * - 25 AS col0, 14 AS col0
----
-25
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7207
SELECT ALL - CASE + 79 WHEN + - 31 THEN - 77 * 47 WHEN - 96 THEN NULL ELSE + 33 + 9 + + CAST( NULL AS SIGNED ) / 22 END * - 75 * + 3
----
NULL

skipif mysql # not compatible
query I rowsort label-7207
SELECT ALL - CASE + 79 WHEN + - 31 THEN - 77 * 47 WHEN - 96 THEN NULL ELSE + 33 + 9 + + CAST ( NULL AS INTEGER ) / 22 END * - 75 * + 3
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7208
SELECT DISTINCT - COUNT( DISTINCT 37 ) AS col0, - 9 AS col0
----
-1
-9

skipif mysql # not compatible
query II rowsort label-7208
SELECT DISTINCT - COUNT ( DISTINCT 37 ) AS col0, - 9 AS col0
----
-1
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7209
SELECT 90 + - 97 + + + ( - 85 ) + + COUNT( * ) + 27 col1
----
-64

skipif mysql # not compatible
query I rowsort label-7209
SELECT 90 + - 97 + + + ( - 85 ) + + COUNT ( * ) + 27 col1
----
-64

query I rowsort
SELECT + 75 * 1 - 14
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7211
SELECT CAST( + - 93 AS SIGNED ) * - MIN( ALL - 55 ) + - + 39 - - - COUNT( * ) * + 52 + ( 64 ) + - + MIN( DISTINCT - COALESCE ( + - 98, 57 ) ) * 10
----
-6122

skipif mysql # not compatible
query I rowsort label-7211
SELECT CAST ( + - 93 AS INTEGER ) * - MIN ( ALL - 55 ) + - + 39 - - - COUNT ( * ) * + 52 + ( 64 ) + - + MIN ( DISTINCT - COALESCE ( + - 98, 57 ) ) * 10
----
-6122

onlyif mysql # DIV for integer division: 
query I rowsort label-7212
SELECT DISTINCT + 12 DIV + 22
----
0

skipif mysql # not compatible
query I rowsort label-7212
SELECT DISTINCT + 12 / + 22
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7213
SELECT ALL 12 + + 2 * + 8 + - COALESCE ( - - COUNT( * ), + 3 * - 2 + + 5 - - COUNT( * ) DIV + 51 * + 59 ) * COUNT( * )
----
27

skipif mysql # not compatible
query I rowsort label-7213
SELECT ALL 12 + + 2 * + 8 + - COALESCE ( - - COUNT ( * ), + 3 * - 2 + + 5 - - COUNT ( * ) / + 51 * + 59 ) * COUNT ( * )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-7214
SELECT DISTINCT 71 + - COUNT( * )
----
70

skipif mysql # not compatible
query I rowsort label-7214
SELECT DISTINCT 71 + - COUNT ( * )
----
70

query I rowsort
SELECT ( - 82 ) + - 14 AS col0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-7216
SELECT 98 + - - 11 + + + ( + 99 ) + - 56 + + 49 - + + ( + - 92 ) - - - 6 + + 1 * - - COUNT( * ) AS col1
----
288

skipif mysql # not compatible
query I rowsort label-7216
SELECT 98 + - - 11 + + + ( + 99 ) + - 56 + + 49 - + + ( + - 92 ) - - - 6 + + 1 * - - COUNT ( * ) AS col1
----
288

onlyif mysql # aggregate syntax: 
query I rowsort label-7217
SELECT ALL + 13 + COUNT( * ) AS col1
----
14

skipif mysql # not compatible
query I rowsort label-7217
SELECT ALL + 13 + COUNT ( * ) AS col1
----
14

onlyif mysql # aggregate syntax: 
query II rowsort label-7218
SELECT 7 + + 1 * + 71 * COUNT( * ) * + + 78 col0, COUNT( + + 84 ) col1
----
5545
1

skipif mysql # not compatible
query II rowsort label-7218
SELECT 7 + + 1 * + 71 * COUNT ( * ) * + + 78 col0, COUNT ( + + 84 ) col1
----
5545
1

query I rowsort
SELECT ALL + 23 + 91
----
114

onlyif mysql # DIV for integer division: 
query II rowsort label-7220
SELECT 97 * - 39 DIV + 1 AS col0, + 99 * - - 11 + ( + 69 ) AS col1
----
-3783
1158

skipif mysql # not compatible
query II rowsort label-7220
SELECT 97 * - 39 / + 1 AS col0, + 99 * - - 11 + ( + 69 ) AS col1
----
-3783
1158

onlyif mysql # aggregate syntax: 
query II rowsort label-7221
SELECT DISTINCT + 41 * - + 93, + 87 * - 30 + - 74 * + CASE - + 19 WHEN - 82 THEN NULL ELSE + CASE + 39 WHEN + NULLIF ( ( 85 ), + 31 * CASE COUNT( * ) WHEN + 57 * - 7 THEN + 61 * + 41 END + + 72 ) THEN - 32 END / + 30 END col1
----
-3813
NULL

skipif mysql # not compatible
query II rowsort label-7221
SELECT DISTINCT + 41 * - + 93, + 87 * - 30 + - 74 * + CASE - + 19 WHEN - 82 THEN NULL ELSE + CASE + 39 WHEN + NULLIF ( ( 85 ), + 31 * CASE COUNT ( * ) WHEN + 57 * - 7 THEN + 61 * + 41 END + + 72 ) THEN - 32 END / + 30 END col1
----
-3813
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7222
SELECT ALL - 50 + ( MIN( 41 ) )
----
-9

skipif mysql # not compatible
query I rowsort label-7222
SELECT ALL - 50 + ( MIN ( 41 ) )
----
-9

query I rowsort
SELECT 87 - - - ( + 19 )
----
68

query I rowsort
SELECT 22 * 32
----
704

onlyif mysql # aggregate syntax: 
query II rowsort label-7225
SELECT ALL SUM( DISTINCT 44 ) AS col0, - 82 AS col0
----
44
-82

skipif mysql # not compatible
query II rowsort label-7225
SELECT ALL SUM ( DISTINCT 44 ) AS col0, - 82 AS col0
----
44
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-7226
SELECT MIN( - + 53 )
----
-53

skipif mysql # not compatible
query I rowsort label-7226
SELECT MIN ( - + 53 )
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-7227
SELECT ALL CASE + 45 WHEN + + 53 THEN - + COUNT( * ) WHEN + ( - 2 ) THEN NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7227
SELECT ALL CASE + 45 WHEN + + 53 THEN - + COUNT ( * ) WHEN + ( - 2 ) THEN NULL END col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7228
SELECT DISTINCT + + 44 - + MAX( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7228
SELECT DISTINCT + + 44 - + MAX ( CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL 37 * - ( + 24 ) AS col0
----
-888

query I rowsort
SELECT 79 - CASE + 75 WHEN CASE + 32 WHEN + + 77 THEN 97 END THEN + + 89 END - + 64 col1
----
NULL

query II rowsort
SELECT DISTINCT - ( 2 ), 23 AS col0
----
-2
23

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7232
SELECT ALL 98 * + 42 - ( + 94 ) - 75 + ( CASE - - ( + + 83 ) WHEN - - CAST( 57 AS DECIMAL ) * 25 THEN NULL WHEN - 34 THEN COUNT( * ) ELSE NULL END ) + - 37 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7232
SELECT ALL 98 * + 42 - ( + 94 ) - 75 + ( CASE - - ( + + 83 ) WHEN - - CAST ( 57 AS REAL ) * 25 THEN NULL WHEN - 34 THEN COUNT ( * ) ELSE NULL END ) + - 37 AS col2
----
NULL

query I rowsort
SELECT ALL + 60 * 66 AS col2
----
3960

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7234
SELECT - + CASE + 56 WHEN 33 THEN NULL WHEN CAST( NULL AS SIGNED ) + - - ( 19 ) THEN - 57 WHEN + 63 THEN NULL END + 77 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7234
SELECT - + CASE + 56 WHEN 33 THEN NULL WHEN CAST ( NULL AS INTEGER ) + - - ( 19 ) THEN - 57 WHEN + 63 THEN NULL END + 77 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7235
SELECT + + 49 DIV 2
----
24

skipif mysql # not compatible
query I rowsort label-7235
SELECT + + 49 / 2
----
24

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7236
SELECT - + CAST( NULL AS DECIMAL ) * - NULLIF ( - - 95, - - CAST( NULL AS SIGNED ) + - 29 / + 74 * - 41 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7236
SELECT - + CAST ( NULL AS REAL ) * - NULLIF ( - - 95, - - CAST ( NULL AS INTEGER ) + - 29 / + 74 * - 41 )
----
NULL

query I rowsort
SELECT - ( + + ( + - ( - 43 ) ) ) * + ( + 37 ) + - 44 col1
----
-1635

query I rowsort
SELECT + - 79 col0
----
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7239
SELECT - CAST( NULL AS SIGNED ) / - 2 + + 48
----
NULL

skipif mysql # not compatible
query I rowsort label-7239
SELECT - CAST ( NULL AS INTEGER ) / - 2 + + 48
----
NULL

query I rowsort
SELECT DISTINCT + 56 col1
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7241
SELECT + ( + - NULLIF ( + NULLIF ( 2, - + 63 + + CAST( NULL AS SIGNED ) * COUNT( * ) + - + 96 * - - 83 ), - 92 ) ) + COUNT( * ) DIV + 71 * + 41 + ( - 71 ) AS col2
----
-73

skipif mysql # not compatible
query I rowsort label-7241
SELECT + ( + - NULLIF ( + NULLIF ( 2, - + 63 + + CAST ( NULL AS INTEGER ) * COUNT ( * ) + - + 96 * - - 83 ), - 92 ) ) + COUNT ( * ) / + 71 * + 41 + ( - 71 ) AS col2
----
-73

query I rowsort
SELECT DISTINCT + + 10 AS col1
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-7243
SELECT ALL 2 * 8 + - + ( COUNT( - 5 ) ) + - - 90 * - 10 + + 59 AS col2
----
-826

skipif mysql # not compatible
query I rowsort label-7243
SELECT ALL 2 * 8 + - + ( COUNT ( - 5 ) ) + - - 90 * - 10 + + 59 AS col2
----
-826

query I rowsort
SELECT + 83 * + 82 + 43 * + + 17 AS col1
----
7537

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7245
SELECT DISTINCT 30 * CASE + + COUNT( * ) WHEN - CAST( NULL AS SIGNED ) THEN - ( + 96 ) WHEN ( + MAX( ALL + 44 ) ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7245
SELECT DISTINCT 30 * CASE + + COUNT ( * ) WHEN - CAST ( NULL AS INTEGER ) THEN - ( + 96 ) WHEN ( + MAX ( ALL + 44 ) ) THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7246
SELECT + 94 + COUNT( * ) * - ( - ( ( + 30 ) ) ) col0
----
124

skipif mysql # not compatible
query I rowsort label-7246
SELECT + 94 + COUNT ( * ) * - ( - ( ( + 30 ) ) ) col0
----
124

onlyif mysql # DIV for integer division: 
query I rowsort label-7247
SELECT DISTINCT 14 * + - 51 + - 5 * 57 DIV + 78
----
-717

skipif mysql # not compatible
query I rowsort label-7247
SELECT DISTINCT 14 * + - 51 + - 5 * 57 / + 78
----
-717

onlyif mysql # aggregate syntax: 
query II rowsort label-7248
SELECT ALL MAX( DISTINCT - + 69 ) * - 32 AS col2, - 49
----
2208
-49

skipif mysql # not compatible
query II rowsort label-7248
SELECT ALL MAX ( DISTINCT - + 69 ) * - 32 AS col2, - 49
----
2208
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-7249
SELECT COUNT( DISTINCT - - 79 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-7249
SELECT COUNT ( DISTINCT - - 79 ) col2
----
1

query I rowsort
SELECT ALL 58 + + - 0
----
58

query I rowsort
SELECT DISTINCT 70 + + 62 * + ( 69 )
----
4348

query II rowsort
SELECT 92 AS col2, 10 AS col2
----
92
10

onlyif mysql # aggregate syntax: 
query I rowsort label-7253
SELECT + 87 * - - COUNT( + 32 )
----
87

skipif mysql # not compatible
query I rowsort label-7253
SELECT + 87 * - - COUNT ( + 32 )
----
87

query II rowsort
SELECT ALL 8 col2, 17 + - + ( + + 47 ) AS col2
----
8
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-7255
SELECT + 5 + + 66 * - COUNT( DISTINCT + 34 ) * - 58
----
3833

skipif mysql # not compatible
query I rowsort label-7255
SELECT + 5 + + 66 * - COUNT ( DISTINCT + 34 ) * - 58
----
3833

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7256
SELECT DISTINCT 16 DIV - 1 * + COUNT( * ) AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-7256
SELECT DISTINCT 16 / - 1 * + COUNT ( * ) AS col2
----
-16

query I rowsort
SELECT - 87 - - 53
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-7258
SELECT ALL CASE COUNT( - + 96 ) WHEN - 21 THEN + 88 + - + 34 WHEN - + 28 * - - 17 + - 73 THEN + 42 ELSE NULL END - + 38 - + 83 * 6
----
NULL

skipif mysql # not compatible
query I rowsort label-7258
SELECT ALL CASE COUNT ( - + 96 ) WHEN - 21 THEN + 88 + - + 34 WHEN - + 28 * - - 17 + - 73 THEN + 42 ELSE NULL END - + 38 - + 83 * 6
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7259
SELECT DISTINCT SUM( - + 72 )
----
-72

skipif mysql # not compatible
query I rowsort label-7259
SELECT DISTINCT SUM ( - + 72 )
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-7260
SELECT DISTINCT COUNT( * ) - + - COUNT( * ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-7260
SELECT DISTINCT COUNT ( * ) - + - COUNT ( * ) AS col0
----
2

query I rowsort
SELECT - ( 16 ) AS col2
----
-16

query I rowsort
SELECT - 77 + 75
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7263
SELECT ALL CASE - MAX( DISTINCT - ( - - 74 ) ) WHEN - 32 THEN + 60 + - COUNT( * ) * + ( - COUNT( * ) ) END * MIN( + + NULLIF ( - 68, - CAST( 35 AS SIGNED ) - - 28 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7263
SELECT ALL CASE - MAX ( DISTINCT - ( - - 74 ) ) WHEN - 32 THEN + 60 + - COUNT ( * ) * + ( - COUNT ( * ) ) END * MIN ( + + NULLIF ( - 68, - CAST ( 35 AS INTEGER ) - - 28 ) )
----
NULL

query I rowsort
SELECT - - 69 + 26 + 86 * - 57 * + 88 * + 32
----
-13803937

onlyif mysql # aggregate syntax: 
query I rowsort label-7265
SELECT + MIN( - + 1 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7265
SELECT + MIN ( - + 1 ) AS col0
----
-1

query II rowsort
SELECT ALL - 83 col1, 63 * - - 14 AS col0
----
-83
882

query I rowsort
SELECT - + 27 col0
----
-27

query I rowsort
SELECT - - 78 + + 61
----
139

onlyif mysql # DIV for integer division: 
query II rowsort label-7269
SELECT ALL 38, 23 DIV - 21 + 37 * + + COALESCE ( + + 73, + 38 ) AS col2
----
38
2700

skipif mysql # not compatible
query II rowsort label-7269
SELECT ALL 38, 23 / - 21 + 37 * + + COALESCE ( + + 73, + 38 ) AS col2
----
38
2700

query II rowsort
SELECT 87 col0, + 16
----
87
16

query I rowsort
SELECT - + 3 + + 68
----
65

query II rowsort
SELECT ALL + 60, 33 + + - 4 + + 15 col2
----
60
44

onlyif mysql # aggregate syntax: 
query I rowsort label-7273
SELECT - 80 * + - COUNT( * ) AS col2
----
80

skipif mysql # not compatible
query I rowsort label-7273
SELECT - 80 * + - COUNT ( * ) AS col2
----
80

query I rowsort
SELECT - 50 * + + 71 AS col2
----
-3550

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7275
SELECT DISTINCT - COUNT( * ) DIV ( + 39 ) + 52 + 96 - + 44 col2
----
104

skipif mysql # not compatible
query I rowsort label-7275
SELECT DISTINCT - COUNT ( * ) / ( + 39 ) + 52 + 96 - + 44 col2
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-7276
SELECT DISTINCT + + SUM( + - 19 )
----
-19

skipif mysql # not compatible
query I rowsort label-7276
SELECT DISTINCT + + SUM ( + - 19 )
----
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7277
SELECT ALL 54 DIV ( MIN( DISTINCT + 78 ) ) + - 42
----
-42

skipif mysql # not compatible
query I rowsort label-7277
SELECT ALL 54 / ( MIN ( DISTINCT + 78 ) ) + - 42
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7278
SELECT ALL - CASE + 41 WHEN - 94 THEN NULL WHEN - 15 THEN + - 12 ELSE - - MIN( ALL 8 ) DIV - 85 END DIV ( + - 53 ) DIV - + SUM( - 17 ) * + CAST( 62 AS SIGNED ) + - 24 * 12
----
-288

skipif mysql # not compatible
query I rowsort label-7278
SELECT ALL - CASE + 41 WHEN - 94 THEN NULL WHEN - 15 THEN + - 12 ELSE - - MIN ( ALL 8 ) / - 85 END / ( + - 53 ) / - + SUM ( - 17 ) * + CAST ( 62 AS INTEGER ) + - 24 * 12
----
-288

onlyif mysql # DIV for integer division: 
query I rowsort label-7279
SELECT DISTINCT - + 80 DIV - ( + 37 ) + 80 AS col0
----
82

skipif mysql # not compatible
query I rowsort label-7279
SELECT DISTINCT - + 80 / - ( + 37 ) + 80 AS col0
----
82

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7280
SELECT DISTINCT 41 / - 88 + 87 - - 98 * - + CAST( NULL AS DECIMAL ) * - - 24, + 38 AS col1
----
NULL
38

skipif mysql # not compatible
query II rowsort label-7280
SELECT DISTINCT 41 / - 88 + 87 - - 98 * - + CAST ( NULL AS REAL ) * - - 24, + 38 AS col1
----
NULL
38

query I rowsort
SELECT ALL + + 60 col1
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-7282
SELECT + - COUNT( * ) * COUNT( * ) + + 33 AS col2
----
32

skipif mysql # not compatible
query I rowsort label-7282
SELECT + - COUNT ( * ) * COUNT ( * ) + + 33 AS col2
----
32

onlyif mysql # DIV for integer division: 
query II rowsort label-7283
SELECT 73, - 21 DIV 13 AS col0
----
73
-1

skipif mysql # not compatible
query II rowsort label-7283
SELECT 73, - 21 / 13 AS col0
----
73
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7284
SELECT + CAST( NULL AS SIGNED ) + + 26 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7284
SELECT + CAST ( NULL AS INTEGER ) + + 26 AS col1
----
NULL

query I rowsort
SELECT + 59 * 29 col1
----
1711

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7286
SELECT ALL CAST( NULL AS DECIMAL ) * + 28 / - + 78 + + - 23
----
NULL

skipif mysql # not compatible
query I rowsort label-7286
SELECT ALL CAST ( NULL AS REAL ) * + 28 / - + 78 + + - 23
----
NULL

query I rowsort
SELECT DISTINCT - 13 * - + 59 * + 95 AS col2
----
72865

onlyif mysql # aggregate syntax: 
query I rowsort label-7288
SELECT + COUNT( * ) + - + 99 AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-7288
SELECT + COUNT ( * ) + - + 99 AS col1
----
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7289
SELECT - CAST( NULL AS SIGNED ) * + + ( + + CASE 25 WHEN + - 63 THEN + + 10 + + - 57 * - CAST( + - 44 AS SIGNED ) / + 4 + + CAST( NULL AS SIGNED ) END ) / + 24 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7289
SELECT - CAST ( NULL AS INTEGER ) * + + ( + + CASE 25 WHEN + - 63 THEN + + 10 + + - 57 * - CAST ( + - 44 AS INTEGER ) / + 4 + + CAST ( NULL AS INTEGER ) END ) / + 24 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7290
SELECT COALESCE ( - 87, + MIN( - 71 ) * + MAX( ALL + + 49 ) * + + 21 + + - CASE + - ( + 96 ) WHEN - COUNT( * ) THEN + - 39 END )
----
-87

skipif mysql # not compatible
query I rowsort label-7290
SELECT COALESCE ( - 87, + MIN ( - 71 ) * + MAX ( ALL + + 49 ) * + + 21 + + - CASE + - ( + 96 ) WHEN - COUNT ( * ) THEN + - 39 END )
----
-87

query I rowsort
SELECT COALESCE ( - 70, + 42 )
----
-70

onlyif mysql # aggregate syntax: 
query II rowsort label-7292
SELECT ALL 75 * - 77, - COUNT( * ) + - 68 AS col2
----
-5775
-69

skipif mysql # not compatible
query II rowsort label-7292
SELECT ALL 75 * - 77, - COUNT ( * ) + - 68 AS col2
----
-5775
-69

query I rowsort
SELECT + 87 + + 56
----
143

query I rowsort
SELECT DISTINCT - 5 * + 46 AS col2
----
-230

query I rowsort
SELECT ALL + ( 95 ) * + 69 - - 7 - + 95 AS col2
----
6467

query I rowsort
SELECT DISTINCT 74 * - + 17 AS col1
----
-1258

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7297
SELECT ALL CAST( + 26 AS SIGNED ) col0
----
26

skipif mysql # not compatible
query I rowsort label-7297
SELECT ALL CAST ( + 26 AS INTEGER ) col0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-7298
SELECT ALL NULLIF ( 75, + COALESCE ( 17, NULLIF ( - 66, - - 25 + - COUNT( * ) / + COUNT( * ) ) - + 29 ) / + - 40 )
----
75

skipif mysql # not compatible
query I rowsort label-7298
SELECT ALL NULLIF ( 75, + COALESCE ( 17, NULLIF ( - 66, - - 25 + - COUNT ( * ) / + COUNT ( * ) ) - + 29 ) / + - 40 )
----
75

query I rowsort
SELECT - ( ( - 61 ) ) + 63 AS col1
----
124

query I rowsort
SELECT - 55 + + 78
----
23

query I rowsort
SELECT DISTINCT + 10 + - 99 + - 4 AS col0
----
-93

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7302
SELECT ALL + + 39 + 66, - NULLIF ( 72, + 7 + - + COUNT( * ) ) DIV - + 35 AS col1
----
105
2

skipif mysql # not compatible
query II rowsort label-7302
SELECT ALL + + 39 + 66, - NULLIF ( 72, + 7 + - + COUNT ( * ) ) / - + 35 AS col1
----
105
2

query I rowsort
SELECT ALL + 77 + - 72
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7304
SELECT + SUM( 19 ) - 99 + + 34 AS col0
----
-46

skipif mysql # not compatible
query I rowsort label-7304
SELECT + SUM ( 19 ) - 99 + + 34 AS col0
----
-46

query I rowsort
SELECT DISTINCT 70 + + 38 AS col2
----
108

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7306
SELECT - 51 DIV 56 + - 60 + 73 col2, - 92 * - + CASE - - 11 WHEN 67 + - - SUM( ALL - - 5 ) THEN NULL WHEN 92 THEN - 40 END * + ( - - 77 ) + 76 + 78 * - 8
----
13
NULL

skipif mysql # not compatible
query II rowsort label-7306
SELECT - 51 / 56 + - 60 + 73 col2, - 92 * - + CASE - - 11 WHEN 67 + - - SUM ( ALL - - 5 ) THEN NULL WHEN 92 THEN - 40 END * + ( - - 77 ) + 76 + 78 * - 8
----
13
NULL

query I rowsort
SELECT - 71 + 62 + + 23 AS col1
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-7308
SELECT + CASE + COALESCE ( - - AVG ( ALL - - 97 ), + + 58 ) WHEN + - COUNT( * ) THEN NULL WHEN 98 THEN - 31 END * - MAX( DISTINCT - 16 ) * + - AVG ( ALL - + 78 ) + 30 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7308
SELECT + CASE + COALESCE ( - - AVG ( ALL - - 97 ), + + 58 ) WHEN + - COUNT ( * ) THEN NULL WHEN 98 THEN - 31 END * - MAX ( DISTINCT - 16 ) * + - AVG ( ALL - + 78 ) + 30 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7309
SELECT - CAST( + - 83 AS DECIMAL ) - 24 + - - 16 * + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7309
SELECT - CAST ( + - 83 AS REAL ) - 24 + - - 16 * + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7310
SELECT DISTINCT + SUM( - 53 ) + 15
----
-38

skipif mysql # not compatible
query I rowsort label-7310
SELECT DISTINCT + SUM ( - 53 ) + 15
----
-38

query II rowsort
SELECT ALL - 99 + - 33 + - - 37 AS col0, - 7 + NULLIF ( 89, - NULLIF ( - 18, + 1 * - + 34 ) )
----
-95
82

query I rowsort
SELECT ALL + 36 - 98
----
-62

query I rowsort
SELECT 91 + - 20 AS col1
----
71

query I rowsort
SELECT DISTINCT + 54 - - 24
----
78

query I rowsort
SELECT ALL - 64 * + 65 AS col1
----
-4160

onlyif mysql # aggregate syntax: 
query I rowsort label-7316
SELECT DISTINCT - 82 * - COUNT( * ) col1
----
82

skipif mysql # not compatible
query I rowsort label-7316
SELECT DISTINCT - 82 * - COUNT ( * ) col1
----
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7317
SELECT + 37 * + - 34 + - 31 - + COUNT( * ) DIV 25 AS col0
----
-1289

skipif mysql # not compatible
query I rowsort label-7317
SELECT + 37 * + - 34 + - 31 - + COUNT ( * ) / 25 AS col0
----
-1289

onlyif mysql # DIV for integer division: 
query I rowsort label-7318
SELECT 90 DIV - + 20
----
-4

skipif mysql # not compatible
query I rowsort label-7318
SELECT 90 / - + 20
----
-4

query I rowsort
SELECT 26 * - + 88 col2
----
-2288

query I rowsort
SELECT 97 + - 26 AS col2
----
71

query II rowsort
SELECT + 52, + ( - - 29 ) * 96 + - 13 + 35 + 96 + - 99 AS col2
----
52
2803

query I rowsort
SELECT DISTINCT + 74 * 95
----
7030

query I rowsort
SELECT ALL - ( + + ( + - 68 ) )
----
68

query I rowsort
SELECT 22 + + 93 + 23 * + 66
----
1633

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7325
SELECT 25 * CAST( NULL AS SIGNED ) * + 60 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7325
SELECT 25 * CAST ( NULL AS INTEGER ) * + 60 AS col2
----
NULL

query II rowsort
SELECT ALL 15 AS col2, 45
----
15
45

query I rowsort
SELECT ALL 98 * 64 AS col0
----
6272

onlyif mysql # aggregate syntax: 
query I rowsort label-7328
SELECT COUNT( * ) + - 57 AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-7328
SELECT COUNT ( * ) + - 57 AS col1
----
-56

query I rowsort
SELECT 12 + - 17 AS col2
----
-5

query I rowsort
SELECT 77 * + 14
----
1078

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7331
SELECT 64 + + + COALESCE ( 64, CAST( 5 AS SIGNED ) - 26 )
----
128

skipif mysql # not compatible
query I rowsort label-7331
SELECT 64 + + + COALESCE ( 64, CAST ( 5 AS INTEGER ) - 26 )
----
128

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7332
SELECT - 96 - CAST( - 21 AS SIGNED ) col2
----
-75

skipif mysql # not compatible
query I rowsort label-7332
SELECT - 96 - CAST ( - 21 AS INTEGER ) col2
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7333
SELECT CASE - CASE SUM( DISTINCT + - 82 ) WHEN + COALESCE ( 54, + + 73 ) + 93 THEN 58 * + 25 - 73 END WHEN - + 3 * - COALESCE ( + + 17, - 28 * CAST( NULL AS SIGNED ), 51 / - 74 ) - ( 45 ) THEN 39 + 49 * - 88 WHEN - NULLIF ( COUNT( * ), + 92 ) + 48 THEN CAST( 74 AS SIGNED ) + - SUM( - 69 ) ELSE - 96 * - 98 + - CAST( NULL AS DECIMAL ) / + 56 END + + CASE + 24 WHEN + 17 THEN NULL WHEN CASE + 18 WHEN 24 * - 96 THEN 73 ELSE NULL END + + 24 THEN + 75 WHEN COUNT( * ) THEN + CAST( 9 AS DECIMAL ) ELSE 50 END / + 20 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7333
SELECT CASE - CASE SUM ( DISTINCT + - 82 ) WHEN + COALESCE ( 54, + + 73 ) + 93 THEN 58 * + 25 - 73 END WHEN - + 3 * - COALESCE ( + + 17, - 28 * CAST ( NULL AS INTEGER ), 51 / - 74 ) - ( 45 ) THEN 39 + 49 * - 88 WHEN - NULLIF ( COUNT ( * ), + 92 ) + 48 THEN CAST ( 74 AS INTEGER ) + - SUM ( - 69 ) ELSE - 96 * - 98 + - CAST ( NULL AS REAL ) / + 56 END + + CASE + 24 WHEN + 17 THEN NULL WHEN CASE + 18 WHEN 24 * - 96 THEN 73 ELSE NULL END + + 24 THEN + 75 WHEN COUNT ( * ) THEN + CAST ( 9 AS REAL ) ELSE 50 END / + 20 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7334
SELECT 56 * + - COUNT( * )
----
-56

skipif mysql # not compatible
query I rowsort label-7334
SELECT 56 * + - COUNT ( * )
----
-56

query I rowsort
SELECT ALL - - 83 * + 89 + 87
----
7474

onlyif mysql # aggregate syntax: 
query I rowsort label-7336
SELECT ALL + - 20 + + CASE - - 19 WHEN + - 66 THEN NULL WHEN + COUNT( * ) THEN - - COUNT( * ) / - 17 + - COUNT( - 7 ) END + CASE + 74 WHEN + 60 THEN + COUNT( * ) * + 34 + - 54 - 82 / + 57 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7336
SELECT ALL + - 20 + + CASE - - 19 WHEN + - 66 THEN NULL WHEN + COUNT ( * ) THEN - - COUNT ( * ) / - 17 + - COUNT ( - 7 ) END + CASE + 74 WHEN + 60 THEN + COUNT ( * ) * + 34 + - 54 - 82 / + 57 END
----
NULL

query I rowsort
SELECT 33 + + 86
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-7338
SELECT ALL - NULLIF ( - 16, + - NULLIF ( CASE - + ( + 81 ) WHEN - 84 THEN NULL ELSE - 28 + + - COUNT( ALL + + 23 ) END, - 84 * - 92 * + 68 / - ( + 1 ) * + 94 ) / - 55 + - 70 * + 46 ) * + 61 col1
----
976

skipif mysql # not compatible
query I rowsort label-7338
SELECT ALL - NULLIF ( - 16, + - NULLIF ( CASE - + ( + 81 ) WHEN - 84 THEN NULL ELSE - 28 + + - COUNT ( ALL + + 23 ) END, - 84 * - 92 * + 68 / - ( + 1 ) * + 94 ) / - 55 + - 70 * + 46 ) * + 61 col1
----
976

query I rowsort
SELECT ALL + 32 + - 13
----
19

query I rowsort
SELECT 25 + - 47 AS col0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-7341
SELECT NULLIF ( - COUNT( * ), + CASE + - 98 WHEN 59 THEN 79 WHEN 74 THEN - 60 + + COUNT( * ) + 64 WHEN 91 - - 46 THEN NULL END ) + + MAX( ALL + 61 )
----
60

skipif mysql # not compatible
query I rowsort label-7341
SELECT NULLIF ( - COUNT ( * ), + CASE + - 98 WHEN 59 THEN 79 WHEN 74 THEN - 60 + + COUNT ( * ) + 64 WHEN 91 - - 46 THEN NULL END ) + + MAX ( ALL + 61 )
----
60

query II rowsort
SELECT + 35, 3 + + - 56 col1
----
35
-53

query I rowsort
SELECT + 39 + - ( - - 8 )
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7344
SELECT - + CAST( ( 27 ) AS SIGNED )
----
-27

skipif mysql # not compatible
query I rowsort label-7344
SELECT - + CAST ( ( 27 ) AS INTEGER )
----
-27

query II rowsort
SELECT DISTINCT - 23, 59 col0
----
-23
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7346
SELECT 82 * + COUNT( * ) AS col2
----
82

skipif mysql # not compatible
query I rowsort label-7346
SELECT 82 * + COUNT ( * ) AS col2
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-7347
SELECT ALL - 94 DIV 1 AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-7347
SELECT ALL - 94 / 1 AS col1
----
-94

query I rowsort
SELECT 91 * 73 AS col0
----
6643

query I rowsort
SELECT ALL - 95 * 87 AS col1
----
-8265

onlyif mysql # aggregate syntax: 
query I rowsort label-7350
SELECT MAX( - 57 ) * + 62 + COALESCE ( - - 56, + - COUNT( * ), - 27 - + 83 )
----
-3478

skipif mysql # not compatible
query I rowsort label-7350
SELECT MAX ( - 57 ) * + 62 + COALESCE ( - - 56, + - COUNT ( * ), - 27 - + 83 )
----
-3478

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7351
SELECT ALL 8 * 26 - - CAST( + + 11 AS SIGNED ) * + NULLIF ( 72, + + 97 * + 19 + COALESCE ( - ( + 64 ), CAST( NULL AS DECIMAL ) ) ) + + - 37 AS col1
----
963

skipif mysql # not compatible
query I rowsort label-7351
SELECT ALL 8 * 26 - - CAST ( + + 11 AS INTEGER ) * + NULLIF ( 72, + + 97 * + 19 + COALESCE ( - ( + 64 ), CAST ( NULL AS REAL ) ) ) + + - 37 AS col1
----
963

query I rowsort
SELECT ALL 82 * + 27
----
2214

query I rowsort
SELECT 81 * + - 95
----
-7695

query I rowsort
SELECT ALL 0 * + 30
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7355
SELECT + COUNT( DISTINCT + 0 )
----
1

skipif mysql # not compatible
query I rowsort label-7355
SELECT + COUNT ( DISTINCT + 0 )
----
1

query I rowsort
SELECT - ( 4 ) * 18 + - 40 + 25 * 65 + 44 AS col1
----
1557

onlyif mysql # aggregate syntax: 
query I rowsort label-7357
SELECT ALL - SUM( ALL - 80 )
----
80

skipif mysql # not compatible
query I rowsort label-7357
SELECT ALL - SUM ( ALL - 80 )
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-7358
SELECT DISTINCT - COUNT( ALL + + 82 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-7358
SELECT DISTINCT - COUNT ( ALL + + 82 ) col0
----
-1

query II rowsort
SELECT DISTINCT - 54 col0, 14 AS col2
----
-54
14

query I rowsort
SELECT - 88 * 96 * + - 47 - + 34 col0
----
397022

onlyif mysql # aggregate syntax: 
query I rowsort label-7361
SELECT ALL + 33 * - COUNT( * )
----
-33

skipif mysql # not compatible
query I rowsort label-7361
SELECT ALL + 33 * - COUNT ( * )
----
-33

query I rowsort
SELECT 32 * 72 AS col0
----
2304

onlyif mysql # aggregate syntax: 
query I rowsort label-7363
SELECT ALL - MAX( ALL 58 )
----
-58

skipif mysql # not compatible
query I rowsort label-7363
SELECT ALL - MAX ( ALL 58 )
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7364
SELECT ALL + CAST( NULL AS SIGNED ) + - COUNT( * ) + + 97 + - 14 * + COUNT( * ) * - 75 + 67 * - + 69 + 70 * - 22 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7364
SELECT ALL + CAST ( NULL AS INTEGER ) + - COUNT ( * ) + + 97 + - 14 * + COUNT ( * ) * - 75 + 67 * - + 69 + 70 * - 22 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7365
SELECT - 92 * + - MAX( CAST( 19 AS SIGNED ) )
----
1748

skipif mysql # not compatible
query I rowsort label-7365
SELECT - 92 * + - MAX ( CAST ( 19 AS INTEGER ) )
----
1748

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7366
SELECT + ( 26 ) * + + CAST( NULL AS DECIMAL ) * - COUNT( * ) + - + 13 + + - 11 + - - 95 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7366
SELECT + ( 26 ) * + + CAST ( NULL AS REAL ) * - COUNT ( * ) + - + 13 + + - 11 + - - 95 AS col0
----
NULL

query II rowsort
SELECT + 11 AS col2, + 28
----
11
28

query II rowsort
SELECT ALL + 35 AS col2, 11 * + + 90 + - 83
----
35
907

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7369
SELECT - - 79, 40 DIV - + 24 + + 41 DIV - - MAX( DISTINCT - + 17 ) + - COUNT( * ) - + 3 AS col1
----
79
-7

skipif mysql # not compatible
query II rowsort label-7369
SELECT - - 79, 40 / - + 24 + + 41 / - - MAX ( DISTINCT - + 17 ) + - COUNT ( * ) - + 3 AS col1
----
79
-7

query I rowsort
SELECT - - 91 + - 79 - + + 8 * + 11 AS col1
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7371
SELECT - + 21 / - 75 * + 93 + + 36 + + - NULLIF ( 18, + 34 + - 37 ) * - CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7371
SELECT - + 21 / - 75 * + 93 + + 36 + + - NULLIF ( 18, + 34 + - 37 ) * - CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT ALL + 10 + - 34 AS col1
----
-24

query I rowsort
SELECT - 46 * - 27 col0
----
1242

query I rowsort
SELECT DISTINCT + 99 * 45
----
4455

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7375
SELECT ALL - 41 * + - CAST( + COUNT( + 17 ) AS SIGNED ) DIV - + ( - COUNT( * ) )
----
41

skipif mysql # not compatible
query I rowsort label-7375
SELECT ALL - 41 * + - CAST ( + COUNT ( + 17 ) AS INTEGER ) / - + ( - COUNT ( * ) )
----
41

query I rowsort
SELECT DISTINCT + - 18 + 19
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7377
SELECT ALL 4 DIV + 66 + + 50 * + 6 * - 96
----
-28800

skipif mysql # not compatible
query I rowsort label-7377
SELECT ALL 4 / + 66 + + 50 * + 6 * - 96
----
-28800

onlyif mysql # DIV for integer division: 
query I rowsort label-7378
SELECT - 73 DIV + 92 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7378
SELECT - 73 / + 92 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7379
SELECT ALL + SUM( ALL + 30 ) + - COUNT( * ) * - 17 AS col1, 13 * + ( - ( + 2 ) ) * + 99 + - 50 + 74 col1
----
47
-2550

skipif mysql # not compatible
query II rowsort label-7379
SELECT ALL + SUM ( ALL + 30 ) + - COUNT ( * ) * - 17 AS col1, 13 * + ( - ( + 2 ) ) * + 99 + - 50 + 74 col1
----
47
-2550

query I rowsort
SELECT - + 94 col1
----
-94

query I rowsort
SELECT - + 69 - 4
----
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7382
SELECT - - 95 + CAST( + MIN( ALL + COALESCE ( + 46, + + 97, - 5 ) ) AS SIGNED ) col1
----
141

skipif mysql # not compatible
query I rowsort label-7382
SELECT - - 95 + CAST ( + MIN ( ALL + COALESCE ( + 46, + + 97, - 5 ) ) AS INTEGER ) col1
----
141

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7383
SELECT - + AVG ( DISTINCT - + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7383
SELECT - + AVG ( DISTINCT - + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7384
SELECT - + COUNT( * ) + + COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7384
SELECT - + COUNT ( * ) + + COUNT ( * ) AS col2
----
0

query I rowsort
SELECT DISTINCT + 91 * + - 6 AS col0
----
-546

query I rowsort
SELECT ALL - 36 - + 43
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-7387
SELECT DISTINCT COUNT( 8 ) * - 45 * + + 21
----
-945

skipif mysql # not compatible
query I rowsort label-7387
SELECT DISTINCT COUNT ( 8 ) * - 45 * + + 21
----
-945

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7388
SELECT - ( + 23 ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7388
SELECT - ( + 23 ) + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 94 * + 41 AS col1
----
3854

onlyif mysql # aggregate syntax: 
query I rowsort label-7390
SELECT + SUM( DISTINCT + - 34 ) + - - 26 AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-7390
SELECT + SUM ( DISTINCT + - 34 ) + - - 26 AS col2
----
-8

query II rowsort
SELECT + ( 47 ) AS col2, + 67 AS col2
----
47
67

query II rowsort
SELECT ( - 7 ) AS col1, 24
----
-7
24

query II rowsort
SELECT + ( - 65 ) AS col0, 60 + - - 88 AS col0
----
-65
148

onlyif mysql # aggregate syntax: 
query I rowsort label-7394
SELECT + COUNT( * ) - - 68 * - - COUNT( * ) AS col2
----
69

skipif mysql # not compatible
query I rowsort label-7394
SELECT + COUNT ( * ) - - 68 * - - COUNT ( * ) AS col2
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-7395
SELECT + 58 DIV 92 DIV 70 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7395
SELECT + 58 / 92 / 70 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7396
SELECT DISTINCT 99 DIV - 56
----
-1

skipif mysql # not compatible
query I rowsort label-7396
SELECT DISTINCT 99 / - 56
----
-1

query I rowsort
SELECT DISTINCT + 58 col2
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-7398
SELECT ALL - 1 * 23 * + 63 * - 98 * - 56 AS col0, - 27 + MAX( ALL 58 )
----
-7952112
31

skipif mysql # not compatible
query II rowsort label-7398
SELECT ALL - 1 * 23 * + 63 * - 98 * - 56 AS col0, - 27 + MAX ( ALL 58 )
----
-7952112
31

query I rowsort
SELECT + 28 * + 93 AS col0
----
2604

onlyif mysql # aggregate syntax: 
query I rowsort label-7400
SELECT ALL - 28 * + 55 * + 55 * - COUNT( * ) + - COUNT( * ) AS col2
----
84699

skipif mysql # not compatible
query I rowsort label-7400
SELECT ALL - 28 * + 55 * + 55 * - COUNT ( * ) + - COUNT ( * ) AS col2
----
84699

query I rowsort
SELECT DISTINCT 51 * ( - 66 )
----
-3366

query I rowsort
SELECT + NULLIF ( - - 83, ( - - 12 ) ) AS col0
----
83

query I rowsort
SELECT ALL + 28 * - 20 * - 11 + 80 AS col0
----
6240

onlyif mysql # aggregate syntax: 
query I rowsort label-7404
SELECT 65 * - + COUNT( * ) + + 25
----
-40

skipif mysql # not compatible
query I rowsort label-7404
SELECT 65 * - + COUNT ( * ) + + 25
----
-40

query I rowsort
SELECT NULLIF ( - 74, + + 64 * - 18 + - + 9 ) AS col0
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-7406
SELECT - CASE 49 WHEN + ( - + ( + + COUNT( * ) ) ) THEN NULL WHEN + - 96 THEN - 41 - - 98 ELSE - + 97 * - 42 + + + 31 - - MAX( ALL + 71 ) * + - 59 * + ( + 99 ) END * + 23
----
9443938

skipif mysql # not compatible
query I rowsort label-7406
SELECT - CASE 49 WHEN + ( - + ( + + COUNT ( * ) ) ) THEN NULL WHEN + - 96 THEN - 41 - - 98 ELSE - + 97 * - 42 + + + 31 - - MAX ( ALL + 71 ) * + - 59 * + ( + 99 ) END * + 23
----
9443938

query I rowsort
SELECT ALL + - 69 * 12 + - 14 AS col1
----
-842

onlyif mysql # aggregate syntax: 
query I rowsort label-7408
SELECT + - 95 * 4 + + + SUM( - 75 )
----
-455

skipif mysql # not compatible
query I rowsort label-7408
SELECT + - 95 * 4 + + + SUM ( - 75 )
----
-455

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7409
SELECT ALL - 38 * + 43 / + - CASE - 23 WHEN + COUNT( * ) + + - 31 * - + MIN( + + CAST( NULL AS SIGNED ) ) * - + 84 + - + MAX( + 2 ) THEN + 44 * + 92 + 47 + - AVG ( - 61 ) / CAST( NULL AS SIGNED ) * COUNT( * ) - + 95 ELSE NULL END + + 67
----
NULL

skipif mysql # not compatible
query I rowsort label-7409
SELECT ALL - 38 * + 43 / + - CASE - 23 WHEN + COUNT ( * ) + + - 31 * - + MIN ( + + CAST ( NULL AS INTEGER ) ) * - + 84 + - + MAX ( + 2 ) THEN + 44 * + 92 + 47 + - AVG ( - 61 ) / CAST ( NULL AS INTEGER ) * COUNT ( * ) - + 95 ELSE NULL END + + 67
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7410
SELECT - COALESCE ( - 49, + + 78 ) * ( - 73 ) + + 33 DIV - 18 + + + 34, - 91 AS col1
----
-3544
-91

skipif mysql # not compatible
query II rowsort label-7410
SELECT - COALESCE ( - 49, + + 78 ) * ( - 73 ) + + 33 / - 18 + + + 34, - 91 AS col1
----
-3544
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-7411
SELECT ALL - 30 * COUNT( - - 48 ) + ( + 25 )
----
-5

skipif mysql # not compatible
query I rowsort label-7411
SELECT ALL - 30 * COUNT ( - - 48 ) + ( + 25 )
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7412
SELECT ALL CAST( NULL AS SIGNED ) * + COUNT( * ) + + + COUNT( * ) * - 85 * - 31 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7412
SELECT ALL CAST ( NULL AS INTEGER ) * + COUNT ( * ) + + + COUNT ( * ) * - 85 * - 31 col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7413
SELECT - - NULLIF ( + + MAX( DISTINCT - 79 ), 47 - ( CAST( NULL AS SIGNED ) ) - - 97 ) + + - ( + + CAST( + ( - - ( 34 ) ) AS SIGNED ) ) AS col2
----
-113

skipif mysql # not compatible
query I rowsort label-7413
SELECT - - NULLIF ( + + MAX ( DISTINCT - 79 ), 47 - ( CAST ( NULL AS INTEGER ) ) - - 97 ) + + - ( + + CAST ( + ( - - ( 34 ) ) AS INTEGER ) ) AS col2
----
-113

query I rowsort
SELECT + - 99 + - 62 + - 43
----
-204

onlyif mysql # aggregate syntax: 
query I rowsort label-7415
SELECT + + 24 + - ( + 89 ) + + + COALESCE ( + COUNT( * ), + 42 )
----
-64

skipif mysql # not compatible
query I rowsort label-7415
SELECT + + 24 + - ( + 89 ) + + + COALESCE ( + COUNT ( * ), + 42 )
----
-64

onlyif mysql # aggregate syntax: 
query II rowsort label-7416
SELECT ALL - - COUNT( * ) - 85, SUM( DISTINCT + 20 ) AS col0
----
-84
20

skipif mysql # not compatible
query II rowsort label-7416
SELECT ALL - - COUNT ( * ) - 85, SUM ( DISTINCT + 20 ) AS col0
----
-84
20

query I rowsort
SELECT - ( - 10 ) * + 93
----
930

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7418
SELECT - 60 + + - 49 AS col2, + NULLIF ( + ( 88 ), COUNT( * ) ) * - 27 + 41 DIV + + 9 - + 11
----
-109
-2383

skipif mysql # not compatible
query II rowsort label-7418
SELECT - 60 + + - 49 AS col2, + NULLIF ( + ( 88 ), COUNT ( * ) ) * - 27 + 41 / + + 9 - + 11
----
-109
-2383

query I rowsort
SELECT - - 8 + + + 43 + 81 * 18 * - - 71
----
103569

query I rowsort
SELECT ALL CASE ( - 79 ) WHEN ( 64 ) THEN COALESCE ( - - 70, - 11, + + 38 ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7421
SELECT - + 33 * + COUNT( DISTINCT - NULLIF ( + - 80, 80 ) ) AS col2, - 14
----
-33
-14

skipif mysql # not compatible
query II rowsort label-7421
SELECT - + 33 * + COUNT ( DISTINCT - NULLIF ( + - 80, 80 ) ) AS col2, - 14
----
-33
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-7422
SELECT - 94 DIV + + 52
----
-1

skipif mysql # not compatible
query I rowsort label-7422
SELECT - 94 / + + 52
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7423
SELECT ALL - 32 DIV 87 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7423
SELECT ALL - 32 / 87 AS col0
----
0

query I rowsort
SELECT + 71 + - - 78 AS col0
----
149

onlyif mysql # aggregate syntax: 
query I rowsort label-7425
SELECT DISTINCT + ( + 2 ) * - CASE - SUM( DISTINCT - 83 ) WHEN + - 64 + - 40 / - 46 / + COUNT( ALL - + 48 ) THEN NULL ELSE - - 30 END + + 6
----
-54

skipif mysql # not compatible
query I rowsort label-7425
SELECT DISTINCT + ( + 2 ) * - CASE - SUM ( DISTINCT - 83 ) WHEN + - 64 + - 40 / - 46 / + COUNT ( ALL - + 48 ) THEN NULL ELSE - - 30 END + + 6
----
-54

query I rowsort
SELECT DISTINCT ( - 36 ) * - - ( + - ( + 9 ) ) AS col2
----
324

query I rowsort
SELECT ALL ( - - 27 ) col2
----
27

query I rowsort
SELECT DISTINCT + 84 col2
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7429
SELECT ALL CAST( NULL AS SIGNED ) * 71 * + 11 * - 72, + 66 * - 43 * - CASE 8 WHEN - 41 + + 81 THEN - 68 ELSE NULL END * COUNT( * ) * - 26 / - 46 AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7429
SELECT ALL CAST ( NULL AS INTEGER ) * 71 * + 11 * - 72, + 66 * - 43 * - CASE 8 WHEN - 41 + + 81 THEN - 68 ELSE NULL END * COUNT ( * ) * - 26 / - 46 AS col1
----
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7430
SELECT 33 * + - 67 * - CAST( NULL AS DECIMAL ) + + - 3 + + + MAX( - 38 ) col1, ( + 53 )
----
NULL
53

skipif mysql # not compatible
query II rowsort label-7430
SELECT 33 * + - 67 * - CAST ( NULL AS REAL ) + + - 3 + + + MAX ( - 38 ) col1, ( + 53 )
----
NULL
53

query I rowsort
SELECT 35 * + 54 AS col2
----
1890

query I rowsort
SELECT ALL - ( + NULLIF ( + 20, - + 65 ) ) * - 85
----
1700

query II rowsort
SELECT ALL - 6 AS col0, - 63 AS col2
----
-6
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-7434
SELECT 41 DIV 56
----
0

skipif mysql # not compatible
query I rowsort label-7434
SELECT 41 / 56
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7435
SELECT ALL - 33 + COUNT( * ) - + ( - + 65 ) + CAST( - 10 AS SIGNED ) * CAST( + COUNT( 37 ) AS SIGNED )
----
23

skipif mysql # not compatible
query I rowsort label-7435
SELECT ALL - 33 + COUNT ( * ) - + ( - + 65 ) + CAST ( - 10 AS INTEGER ) * CAST ( + COUNT ( 37 ) AS INTEGER )
----
23

query I rowsort
SELECT DISTINCT 45 + - 83
----
-38

onlyif mysql # DIV for integer division: 
query II rowsort label-7437
SELECT 79 DIV - - 83 - - - 20 AS col2, 27 AS col1
----
-20
27

skipif mysql # not compatible
query II rowsort label-7437
SELECT 79 / - - 83 - - - 20 AS col2, 27 AS col1
----
-20
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7438
SELECT 67 + + CAST( NULL AS SIGNED ) + COUNT( * ) + + 90 - + - 43 * - 91 * + 45 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7438
SELECT 67 + + CAST ( NULL AS INTEGER ) + COUNT ( * ) + + 90 - + - 43 * - 91 * + 45 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7439
SELECT DISTINCT 98 DIV + 56
----
1

skipif mysql # not compatible
query I rowsort label-7439
SELECT DISTINCT 98 / + 56
----
1

query I rowsort
SELECT 50 * 12
----
600

onlyif mysql # DIV for integer division: 
query I rowsort label-7441
SELECT ( - + 47 ) DIV + 67 + + 49 - - 95
----
144

skipif mysql # not compatible
query I rowsort label-7441
SELECT ( - + 47 ) / + 67 + + 49 - - 95
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-7442
SELECT + COALESCE ( - 34, + 1 - + CASE - 73 WHEN + 73 + COALESCE ( 80, - + ( + - COUNT( * ) ) - 28 - ( COUNT( * ) ) ) THEN - 21 ELSE NULL END )
----
-34

skipif mysql # not compatible
query I rowsort label-7442
SELECT + COALESCE ( - 34, + 1 - + CASE - 73 WHEN + 73 + COALESCE ( 80, - + ( + - COUNT ( * ) ) - 28 - ( COUNT ( * ) ) ) THEN - 21 ELSE NULL END )
----
-34

query I rowsort
SELECT + - ( - 79 )
----
79

onlyif mysql # DIV for integer division: 
query I rowsort label-7444
SELECT 18 DIV - + ( + + 46 ) * NULLIF ( + 68, - 47 ) - + + 19
----
-19

skipif mysql # not compatible
query I rowsort label-7444
SELECT 18 / - + ( + + 46 ) * NULLIF ( + 68, - 47 ) - + + 19
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7445
SELECT 8 * - + 33 * + COALESCE ( - + COALESCE ( COUNT( * ), + 58 * - 68 ), + CAST( NULL AS SIGNED ) + - + 82 - - + MAX( ALL - - 88 ) * - 89 DIV NULLIF ( MIN( DISTINCT - - 18 ), + + 99 ) * + ( - 12 ) * 75, 31 ) + + COUNT( * )
----
265

skipif mysql # not compatible
query I rowsort label-7445
SELECT 8 * - + 33 * + COALESCE ( - + COALESCE ( COUNT ( * ), + 58 * - 68 ), + CAST ( NULL AS INTEGER ) + - + 82 - - + MAX ( ALL - - 88 ) * - 89 / NULLIF ( MIN ( DISTINCT - - 18 ), + + 99 ) * + ( - 12 ) * 75, 31 ) + + COUNT ( * )
----
265

onlyif mysql # aggregate syntax: 
query I rowsort label-7446
SELECT NULLIF ( COUNT( * ), + 18 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-7446
SELECT NULLIF ( COUNT ( * ), + 18 ) col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7447
SELECT ALL 61 - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7447
SELECT ALL 61 - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 5 * - - 49
----
245

query I rowsort
SELECT DISTINCT + 75 col0
----
75

query I rowsort
SELECT ALL - 6 - + 46
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-7451
SELECT ALL + MAX( + + 61 )
----
61

skipif mysql # not compatible
query I rowsort label-7451
SELECT ALL + MAX ( + + 61 )
----
61

query I rowsort
SELECT ALL - 26 * - ( COALESCE ( + 47, - + 89 ) )
----
1222

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7453
SELECT 11 * - - CASE + 13 WHEN 33 THEN + + CAST( - CAST( NULL AS SIGNED ) AS DECIMAL ) + - COUNT( * ) WHEN 62 + + - 27 * CAST( - 66 AS SIGNED ) THEN NULL ELSE NULL END / - ( COALESCE ( - + 26, + + 10, 87 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7453
SELECT 11 * - - CASE + 13 WHEN 33 THEN + + CAST ( - CAST ( NULL AS INTEGER ) AS REAL ) + - COUNT ( * ) WHEN 62 + + - 27 * CAST ( - 66 AS INTEGER ) THEN NULL ELSE NULL END / - ( COALESCE ( - + 26, + + 10, 87 ) ) AS col1
----
NULL

query I rowsort
SELECT - 24 + - 95
----
-119

query II rowsort
SELECT + ( - 71 ) * 97 col0, - 28
----
-6887
-28

query II rowsort
SELECT 91 + 34 col2, + 43
----
125
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7457
SELECT CAST( NULL AS SIGNED ) + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7457
SELECT CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT 10 + + 68 AS col0
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7459
SELECT ALL 23 + CAST( - + 30 AS SIGNED ) + + - 61
----
-68

skipif mysql # not compatible
query I rowsort label-7459
SELECT ALL 23 + CAST ( - + 30 AS INTEGER ) + + - 61
----
-68

query I rowsort
SELECT 25 + + + 28 AS col0
----
53

query I rowsort
SELECT 32 * - 43 AS col2
----
-1376

query I rowsort
SELECT ALL - 1 + 82
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7463
SELECT ALL + COALESCE ( + 31, + CAST( 36 AS SIGNED ) * 19 + + 31 ) + + 42 * + - 18 AS col0
----
-725

skipif mysql # not compatible
query I rowsort label-7463
SELECT ALL + COALESCE ( + 31, + CAST ( 36 AS INTEGER ) * 19 + + 31 ) + + 42 * + - 18 AS col0
----
-725

query I rowsort
SELECT 22 * - - 93 AS col2
----
2046

onlyif mysql # aggregate syntax: 
query I rowsort label-7465
SELECT 70 - + MAX( DISTINCT 98 ) AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-7465
SELECT 70 - + MAX ( DISTINCT 98 ) AS col2
----
-28

query I rowsort
SELECT ALL - 11 * - 5
----
55

query I rowsort
SELECT DISTINCT - ( - 20 ) AS col2
----
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7468
SELECT DISTINCT 92 - 11 + - + 58 * 7 * - - 72 DIV + CASE - - CASE - - 32 WHEN + 33 THEN - 63 * + + 63 WHEN + - 21 THEN 29 END WHEN COUNT( ALL + - 25 ) THEN NULL ELSE + - COUNT( * ) END + + 38 + + - COUNT( * ) + + 95 AS col0
----
29445

skipif mysql # not compatible
query I rowsort label-7468
SELECT DISTINCT 92 - 11 + - + 58 * 7 * - - 72 / + CASE - - CASE - - 32 WHEN + 33 THEN - 63 * + + 63 WHEN + - 21 THEN 29 END WHEN COUNT ( ALL + - 25 ) THEN NULL ELSE + - COUNT ( * ) END + + 38 + + - COUNT ( * ) + + 95 AS col0
----
29445

query I rowsort
SELECT 60 + 46 * 66 AS col1
----
3096

onlyif mysql # aggregate syntax: 
query I rowsort label-7470
SELECT ALL - 12 * + - 58 * + CASE - 54 WHEN - 53 THEN NULL WHEN + COUNT( * ) / - 89 - + 80 THEN NULL WHEN + + 97 + - - ( 77 ) * COALESCE ( 93, - + 83, - 59 / - COUNT( * ) ) THEN NULL ELSE + - 19 END * 94 + + 3 * + 7
----
-1243035

skipif mysql # not compatible
query I rowsort label-7470
SELECT ALL - 12 * + - 58 * + CASE - 54 WHEN - 53 THEN NULL WHEN + COUNT ( * ) / - 89 - + 80 THEN NULL WHEN + + 97 + - - ( 77 ) * COALESCE ( 93, - + 83, - 59 / - COUNT ( * ) ) THEN NULL ELSE + - 19 END * 94 + + 3 * + 7
----
-1243035

query I rowsort
SELECT DISTINCT - + ( - - 91 ) AS col2
----
-91

query I rowsort
SELECT DISTINCT 65 - + - 21 AS col0
----
86

query II rowsort
SELECT DISTINCT - 21 * 58, + ( - 89 ) + + COALESCE ( + 47, + - ( + 44 ) + 45 ) AS col2
----
-1218
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-7474
SELECT - + SUM( - - 33 ) * 19 + - MAX( - - 49 ) AS col1, 49 AS col2
----
-676
49

skipif mysql # not compatible
query II rowsort label-7474
SELECT - + SUM ( - - 33 ) * 19 + - MAX ( - - 49 ) AS col1, 49 AS col2
----
-676
49

query I rowsort
SELECT 2 * + 2
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-7476
SELECT 46 * + + 34 * - 98 DIV + + 1 + - 4 AS col1
----
-153276

skipif mysql # not compatible
query I rowsort label-7476
SELECT 46 * + + 34 * - 98 / + + 1 + - 4 AS col1
----
-153276

query I rowsort
SELECT - NULLIF ( - 99, + 26 * + 62 ) + + 90 AS col0
----
189

onlyif mysql # aggregate syntax: 
query I rowsort label-7478
SELECT + - COALESCE ( + CASE 36 WHEN - 85 + - COALESCE ( MIN( ALL + + 39 ), + 57 + + 91 + - 25 * + 28 + + + AVG ( DISTINCT NULLIF ( 81, - 25 * 33 ) ), - 10 * + 64 / - - 97 / + 50 ) + + 34 / 34 THEN COALESCE ( + 78, 54 * COUNT( * ) ) ELSE NULL END, 39, + COUNT( ALL + 60 ) ) AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-7478
SELECT + - COALESCE ( + CASE 36 WHEN - 85 + - COALESCE ( MIN ( ALL + + 39 ), + 57 + + 91 + - 25 * + 28 + + + AVG ( DISTINCT NULLIF ( 81, - 25 * 33 ) ), - 10 * + 64 / - - 97 / + 50 ) + + 34 / 34 THEN COALESCE ( + 78, 54 * COUNT ( * ) ) ELSE NULL END, 39, + COUNT ( ALL + 60 ) ) AS col0
----
-39

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-7479
SELECT ALL CAST( + + 42 AS SIGNED ) DIV - NULLIF ( - 79, CAST( 31 AS DECIMAL ) * + + ( - 12 ) + + AVG ( + - 58 ) + - + CAST( NULL AS SIGNED ) DIV - 30 + - 74 )
----
0

skipif mysql # not compatible
query I rowsort label-7479
SELECT ALL CAST ( + + 42 AS INTEGER ) / - NULLIF ( - 79, CAST ( 31 AS REAL ) * + + ( - 12 ) + + AVG ( + - 58 ) + - + CAST ( NULL AS INTEGER ) / - 30 + - 74 )
----
0

query I rowsort
SELECT 25 * + 95 AS col1
----
2375

onlyif mysql # DIV for integer division: 
query I rowsort label-7481
SELECT ALL - 21 DIV - + 41 + - 31
----
-31

skipif mysql # not compatible
query I rowsort label-7481
SELECT ALL - 21 / - + 41 + - 31
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-7482
SELECT ALL - + CASE - 60 WHEN + 36 * - ( - - 17 ) + + - 40 THEN + SUM( ALL - - 3 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7482
SELECT ALL - + CASE - 60 WHEN + 36 * - ( - - 17 ) + + - 40 THEN + SUM ( ALL - - 3 ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7483
SELECT - 77 * - + 64 + + 50 + - CAST( + - 46 AS SIGNED ) AS col2
----
5024

skipif mysql # not compatible
query I rowsort label-7483
SELECT - 77 * - + 64 + + 50 + - CAST ( + - 46 AS INTEGER ) AS col2
----
5024

query I rowsort
SELECT DISTINCT 82 * 77
----
6314

query I rowsort
SELECT DISTINCT COALESCE ( + 69, - 75 ) AS col1
----
69

query I rowsort
SELECT 95 + 60 * - 1 * 93
----
-5485

query II rowsort
SELECT ALL 39 * + 72 AS col0, 8
----
2808
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7488
SELECT DISTINCT - 28 * + COALESCE ( - 82, + 18 * CASE CASE 68 WHEN CASE WHEN NOT + 46 >= - 15 THEN NULL ELSE - + NULLIF ( - 75, 94 * ( 22 ) DIV - ( 22 ) DIV + 24 ) END + NULLIF ( ( 48 ), - COUNT( * ) ) THEN 1 END WHEN - ( - 60 ) * - 39 THEN + 90 ELSE + 78 DIV - 31 END + 31 ) + + COUNT( * ) * - MAX( - 66 ) AS col2
----
2362

skipif mysql # not compatible
query I rowsort label-7488
SELECT DISTINCT - 28 * + COALESCE ( - 82, + 18 * CASE CASE 68 WHEN CASE WHEN NOT + 46 >= - 15 THEN NULL ELSE - + NULLIF ( - 75, 94 * ( 22 ) / - ( 22 ) / + 24 ) END + NULLIF ( ( 48 ), - COUNT ( * ) ) THEN 1 END WHEN - ( - 60 ) * - 39 THEN + 90 ELSE + 78 / - 31 END + 31 ) + + COUNT ( * ) * - MAX ( - 66 ) AS col2
----
2362

onlyif mysql # DIV for integer division: 
query I rowsort label-7489
SELECT - 83 DIV 21 * + 99 AS col2
----
-297

skipif mysql # not compatible
query I rowsort label-7489
SELECT - 83 / 21 * + 99 AS col2
----
-297

query I rowsort
SELECT - 22 * + 72 AS col0
----
-1584

query I rowsort
SELECT ALL - ( 83 ) AS col2
----
-83

query I rowsort
SELECT 74 * 19
----
1406

query I rowsort
SELECT + 5 + - ( + COALESCE ( 28, + - 2 * - 88, - 14 ) )
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-7494
SELECT ALL ( - 25 ) + 14 + + + 5 DIV + 20 + - - 90
----
79

skipif mysql # not compatible
query I rowsort label-7494
SELECT ALL ( - 25 ) + 14 + + + 5 / + 20 + - - 90
----
79

onlyif mysql # DIV for integer division: 
query I rowsort label-7495
SELECT + 11 + + 9 DIV - - ( - - 98 )
----
11

skipif mysql # not compatible
query I rowsort label-7495
SELECT + 11 + + 9 / - - ( - - 98 )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-7496
SELECT - NULLIF ( - 83, - COUNT( * ) / COUNT( * ) * + 10 - + 37 + COUNT( * ) ) AS col0
----
83

skipif mysql # not compatible
query I rowsort label-7496
SELECT - NULLIF ( - 83, - COUNT ( * ) / COUNT ( * ) * + 10 - + 37 + COUNT ( * ) ) AS col0
----
83

query I rowsort
SELECT DISTINCT 35 + + + 95
----
130

query I rowsort
SELECT - 64 * - 34
----
2176

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7499
SELECT + 75 * - CAST( - 86 AS SIGNED )
----
6450

skipif mysql # not compatible
query I rowsort label-7499
SELECT + 75 * - CAST ( - 86 AS INTEGER )
----
6450

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7500
SELECT - CASE + AVG ( - CAST( - 10 AS SIGNED ) ) WHEN + 66 + - - 75 / + - 25 THEN NULL WHEN + COUNT( * ) THEN 99 * - COUNT( * ) WHEN - + 15 THEN 74 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7500
SELECT - CASE + AVG ( - CAST ( - 10 AS INTEGER ) ) WHEN + 66 + - - 75 / + - 25 THEN NULL WHEN + COUNT ( * ) THEN 99 * - COUNT ( * ) WHEN - + 15 THEN 74 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7501
SELECT - ( CAST( + - 44 AS DECIMAL ) ) + - + 65 + CASE WHEN NOT SUM( 24 ) > - 33 THEN AVG ( 82 ) END + COUNT( * ) * 79 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7501
SELECT - ( CAST ( + - 44 AS REAL ) ) + - + 65 + CASE WHEN NOT SUM ( 24 ) > - 33 THEN AVG ( 82 ) END + COUNT ( * ) * 79 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7502
SELECT - NULLIF ( - CAST( NULL AS SIGNED ), - 80 * - 57 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7502
SELECT - NULLIF ( - CAST ( NULL AS INTEGER ), - 80 * - 57 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7503
SELECT - COUNT( * ) + - - 31
----
30

skipif mysql # not compatible
query I rowsort label-7503
SELECT - COUNT ( * ) + - - 31
----
30

query I rowsort
SELECT ALL 78 * + 95 - - - 8 AS col2
----
7402

query I rowsort
SELECT - 39 + + 4 + - CASE 69 WHEN - 66 THEN NULL ELSE 36 * 4 END
----
-179

onlyif mysql # DIV for integer division: 
query I rowsort label-7506
SELECT ALL + 43 DIV 21 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-7506
SELECT ALL + 43 / 21 AS col1
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7507
SELECT + 34 * 86 + - 6 + - NULLIF ( COUNT( * ), 5 ) + - COUNT( * ) * 17 * + - ( ( - + CAST( 61 AS SIGNED ) ) )
----
1880

skipif mysql # not compatible
query I rowsort label-7507
SELECT + 34 * 86 + - 6 + - NULLIF ( COUNT ( * ), 5 ) + - COUNT ( * ) * 17 * + - ( ( - + CAST ( 61 AS INTEGER ) ) )
----
1880

onlyif mysql # aggregate syntax: 
query I rowsort label-7508
SELECT + - MAX( ALL - + 98 )
----
98

skipif mysql # not compatible
query I rowsort label-7508
SELECT + - MAX ( ALL - + 98 )
----
98

onlyif mysql # DIV for integer division: 
query II rowsort label-7509
SELECT ALL + 33 DIV - 40 * - 73 AS col2, - 58
----
0
-58

skipif mysql # not compatible
query II rowsort label-7509
SELECT ALL + 33 / - 40 * - 73 AS col2, - 58
----
0
-58

query I rowsort
SELECT + + 68 * + CASE - 59 WHEN + - CASE WHEN ( - 33 ) IS NULL THEN - + 9 ELSE NULL END / 91 + + 63 THEN NULL WHEN + 25 * - + 28 * + 22 / - 60 THEN NULL WHEN - + 22 THEN NULL ELSE + ( - 13 ) END * - 79 - - 78
----
69914

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7511
SELECT - 37 DIV + COUNT( DISTINCT - CAST( - 60 AS SIGNED ) ) AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-7511
SELECT - 37 / + COUNT ( DISTINCT - CAST ( - 60 AS INTEGER ) ) AS col2
----
-37

query I rowsort
SELECT - + 11 * 27 - + - 10 * - - ( + ( - 4 ) ) + 58 AS col1
----
-279

query I rowsort
SELECT - + 6 + + 25 AS col1
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7514
SELECT DISTINCT + 20, + 93 + + CAST( NULL AS SIGNED ) / + 91 + - COUNT( * ) + + 99 col2
----
20
NULL

skipif mysql # not compatible
query II rowsort label-7514
SELECT DISTINCT + 20, + 93 + + CAST ( NULL AS INTEGER ) / + 91 + - COUNT ( * ) + + 99 col2
----
20
NULL

query I rowsort
SELECT - ( - + 81 ) AS col0
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7516
SELECT ALL - CASE - 29 WHEN ( + 69 ) THEN - 59 END * CAST( 25 AS SIGNED ) * 46 AS col0, + 7 * 46 + - NULLIF ( - - 77, - 12 / - 34 ) AS col1
----
NULL
245

skipif mysql # not compatible
query II rowsort label-7516
SELECT ALL - CASE - 29 WHEN ( + 69 ) THEN - 59 END * CAST ( 25 AS INTEGER ) * 46 AS col0, + 7 * 46 + - NULLIF ( - - 77, - 12 / - 34 ) AS col1
----
NULL
245

query I rowsort
SELECT + - 67 * + 88 * + - 46 - 94 AS col1
----
271122

query I rowsort
SELECT ALL + - ( - 41 ) AS col1
----
41

query I rowsort
SELECT 84 * ( + - 11 ) * - + 43 + - - 75 - 45 AS col1
----
39762

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7520
SELECT ALL 54 * - 80 + CAST( - COALESCE ( + 74, + 54, + 25 * 82 + + 33 / - COUNT( * ) + + SUM( + 3 ) * - ( + 85 ) * - 71 + + 19 - + 86 ) AS SIGNED ) + - ( + - MIN( + - 46 ) ) AS col2
----
-4440

skipif mysql # not compatible
query I rowsort label-7520
SELECT ALL 54 * - 80 + CAST ( - COALESCE ( + 74, + 54, + 25 * 82 + + 33 / - COUNT ( * ) + + SUM ( + 3 ) * - ( + 85 ) * - 71 + + 19 - + 86 ) AS INTEGER ) + - ( + - MIN ( + - 46 ) ) AS col2
----
-4440

query I rowsort
SELECT DISTINCT + - 28 col2
----
-28

query I rowsort
SELECT 10 * + 39 - ( 58 )
----
332

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7523
SELECT ALL CAST( NULL AS SIGNED ) * COUNT( * ) * 73 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7523
SELECT ALL CAST ( NULL AS INTEGER ) * COUNT ( * ) * 73 AS col2
----
NULL

query I rowsort
SELECT + 88 * - + 9 AS col2
----
-792

onlyif mysql # aggregate syntax: 
query I rowsort label-7525
SELECT ALL 94 + + MIN( ALL 48 ) col1
----
142

skipif mysql # not compatible
query I rowsort label-7525
SELECT ALL 94 + + MIN ( ALL 48 ) col1
----
142

query I rowsort
SELECT - ( - 38 ) col1
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-7527
SELECT ALL ( - 11 ) + 66 + - + 28 DIV + - 6 AS col2
----
59

skipif mysql # not compatible
query I rowsort label-7527
SELECT ALL ( - 11 ) + 66 + - + 28 / + - 6 AS col2
----
59

query I rowsort
SELECT - 76 + 55
----
-21

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7529
SELECT + 58 * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7529
SELECT + 58 * + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7530
SELECT + COUNT( * ) + 25
----
26

skipif mysql # not compatible
query I rowsort label-7530
SELECT + COUNT ( * ) + 25
----
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7531
SELECT ALL + 84 - + + 78 - - CASE + - AVG ( + 48 ) WHEN + 32 THEN 40 ELSE 51 - + 83 END DIV + 11 * COUNT( * ) AS col2
----
4

skipif mysql # not compatible
query I rowsort label-7531
SELECT ALL + 84 - + + 78 - - CASE + - AVG ( + 48 ) WHEN + 32 THEN 40 ELSE 51 - + 83 END / + 11 * COUNT ( * ) AS col2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7532
SELECT DISTINCT - ( + ( - COUNT( * ) ) ) * - 35 + + - 30 + - 67 AS col0
----
-132

skipif mysql # not compatible
query I rowsort label-7532
SELECT DISTINCT - ( + ( - COUNT ( * ) ) ) * - 35 + + - 30 + - 67 AS col0
----
-132

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7533
SELECT ALL 16 - CAST( COUNT( * ) AS SIGNED ) AS col1
----
15

skipif mysql # not compatible
query I rowsort label-7533
SELECT ALL 16 - CAST ( COUNT ( * ) AS INTEGER ) AS col1
----
15

query II rowsort
SELECT + 22 + + 99 AS col1, 50 AS col1
----
121
50

query III rowsort
SELECT DISTINCT 6 AS col2, 0 AS col2, - + 99
----
6
0
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-7536
SELECT ALL NULLIF ( 88, + ( - COUNT( * ) ) ) col2
----
88

skipif mysql # not compatible
query I rowsort label-7536
SELECT ALL NULLIF ( 88, + ( - COUNT ( * ) ) ) col2
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7537
SELECT DISTINCT + 57 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7537
SELECT DISTINCT + 57 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7538
SELECT ALL 80 - - 33 * - COUNT( * ) AS col0
----
47

skipif mysql # not compatible
query I rowsort label-7538
SELECT ALL 80 - - 33 * - COUNT ( * ) AS col0
----
47

query I rowsort
SELECT + 86 * 31 * 30
----
79980

query II rowsort
SELECT + 20 AS col2, ( + 4 ) AS col2
----
20
4

query II rowsort
SELECT ALL + 21 AS col0, + 4 AS col2
----
21
4

query I rowsort
SELECT ALL + 71 * 12 AS col2
----
852

query II rowsort
SELECT + 75 * + NULLIF ( + 94, + + 91 + 39 + 95 ) AS col0, 55 AS col1
----
7050
55

query I rowsort
SELECT DISTINCT + - 81 * ( + 14 )
----
-1134

query II rowsort
SELECT DISTINCT + + ( - 19 ) AS col0, - 50 * 90 AS col1
----
-19
-4500

query II rowsort
SELECT DISTINCT + + ( + - 40 ), ( + - ( + 42 ) ) * + 84 AS col0
----
-40
-3528

query I rowsort
SELECT - 15 + 55 AS col0
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7548
SELECT DISTINCT + + COUNT( * ) DIV - ( - + COUNT( * ) ) + - ( + 45 ) AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-7548
SELECT DISTINCT + + COUNT ( * ) / - ( - + COUNT ( * ) ) + - ( + 45 ) AS col1
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7549
SELECT + + COALESCE ( CAST( NULL AS SIGNED ), 86 ) + + 27
----
113

skipif mysql # not compatible
query I rowsort label-7549
SELECT + + COALESCE ( CAST ( NULL AS INTEGER ), 86 ) + + 27
----
113

query I rowsort
SELECT - 47 - + 86 AS col2
----
-133

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7551
SELECT DISTINCT - - 89 DIV COALESCE ( + COUNT( * ), + - 14 ) AS col1
----
89

skipif mysql # not compatible
query I rowsort label-7551
SELECT DISTINCT - - 89 / COALESCE ( + COUNT ( * ), + - 14 ) AS col1
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-7552
SELECT ALL + 69 * - MIN( + 71 ) + ( - 42 ) + + 46
----
-4895

skipif mysql # not compatible
query I rowsort label-7552
SELECT ALL + 69 * - MIN ( + 71 ) + ( - 42 ) + + 46
----
-4895

onlyif mysql # aggregate syntax: 
query I rowsort label-7553
SELECT + + ( + - 15 ) + + COUNT( * ) AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-7553
SELECT + + ( + - 15 ) + + COUNT ( * ) AS col2
----
-14

query I rowsort
SELECT + + 9 AS col1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7555
SELECT - 4 + 32 + 66 * 63 - + - COUNT( * )
----
4187

skipif mysql # not compatible
query I rowsort label-7555
SELECT - 4 + 32 + 66 * 63 - + - COUNT ( * )
----
4187

onlyif mysql # aggregate syntax: 
query I rowsort label-7556
SELECT DISTINCT + COUNT( DISTINCT - - 53 )
----
1

skipif mysql # not compatible
query I rowsort label-7556
SELECT DISTINCT + COUNT ( DISTINCT - - 53 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7557
SELECT - 27 + - 65 + ( + + COUNT( * ) ) AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-7557
SELECT - 27 + - 65 + ( + + COUNT ( * ) ) AS col1
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7558
SELECT DISTINCT + CASE + CAST( NULL AS SIGNED ) WHEN 16 / 23 / - ( + 50 ) - + 20 / COUNT( DISTINCT + ( - + 2 ) ) + + 18 / + 34 + + 70 THEN + 41 WHEN - - 23 THEN + + COUNT( * ) * + MAX( 25 ) ELSE NULL END * + MAX( + - ( + 5 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7558
SELECT DISTINCT + CASE + CAST ( NULL AS INTEGER ) WHEN 16 / 23 / - ( + 50 ) - + 20 / COUNT ( DISTINCT + ( - + 2 ) ) + + 18 / + 34 + + 70 THEN + 41 WHEN - - 23 THEN + + COUNT ( * ) * + MAX ( 25 ) ELSE NULL END * + MAX ( + - ( + 5 ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7559
SELECT DISTINCT + + 84 + - CAST( NULL AS SIGNED ) / + + 73
----
NULL

skipif mysql # not compatible
query I rowsort label-7559
SELECT DISTINCT + + 84 + - CAST ( NULL AS INTEGER ) / + + 73
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7560
SELECT 51 + + + 18 * - 84 * + 14 * + COUNT( + 32 ) AS col1
----
-21117

skipif mysql # not compatible
query I rowsort label-7560
SELECT 51 + + + 18 * - 84 * + 14 * + COUNT ( + 32 ) AS col1
----
-21117

query I rowsort
SELECT 31 * - - 32
----
992

query I rowsort
SELECT ALL - 15 - + + 62
----
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-7563
SELECT ALL 16 DIV - + 61
----
0

skipif mysql # not compatible
query I rowsort label-7563
SELECT ALL 16 / - + 61
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7564
SELECT MAX( + - 25 ) DIV COUNT( * ) * 79 * - SUM( DISTINCT - 9 )
----
-17775

skipif mysql # not compatible
query I rowsort label-7564
SELECT MAX ( + - 25 ) / COUNT ( * ) * 79 * - SUM ( DISTINCT - 9 )
----
-17775

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7565
SELECT ALL 34 * + COUNT( * ) DIV + + 36 * + - 27 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7565
SELECT ALL 34 * + COUNT ( * ) / + + 36 * + - 27 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7566
SELECT ALL - 53 * + 65 * - + 53 AS col2, 38 * + COUNT( * ) AS col0
----
182585
38

skipif mysql # not compatible
query II rowsort label-7566
SELECT ALL - 53 * + 65 * - + 53 AS col2, 38 * + COUNT ( * ) AS col0
----
182585
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7567
SELECT 40 / - + CASE - 48 WHEN - ( + 9 ) + + + CAST( + 28 AS SIGNED ) THEN ( ( 40 ) ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7567
SELECT 40 / - + CASE - 48 WHEN - ( + 9 ) + + + CAST ( + 28 AS INTEGER ) THEN ( ( 40 ) ) END AS col2
----
NULL

query II rowsort
SELECT 76 * + + 50 AS col1, + 67
----
3800
67

onlyif mysql # aggregate syntax: 
query I rowsort label-7569
SELECT ALL 74 * - - COUNT( * ) * 55
----
4070

skipif mysql # not compatible
query I rowsort label-7569
SELECT ALL 74 * - - COUNT ( * ) * 55
----
4070

query I rowsort
SELECT ALL 33 * 88
----
2904

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7571
SELECT 66 / + - CAST( NULL AS SIGNED ) * - - ( 38 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7571
SELECT 66 / + - CAST ( NULL AS INTEGER ) * - - ( 38 ) AS col1
----
NULL

query I rowsort
SELECT 29 * 80 + 66 AS col0
----
2386

onlyif mysql # aggregate syntax: 
query II rowsort label-7573
SELECT DISTINCT - ( 20 ) AS col0, COUNT( * ) + 60 + + + 69 AS col2
----
-20
130

skipif mysql # not compatible
query II rowsort label-7573
SELECT DISTINCT - ( 20 ) AS col0, COUNT ( * ) + 60 + + + 69 AS col2
----
-20
130

onlyif mysql # aggregate syntax: 
query I rowsort label-7574
SELECT DISTINCT + COUNT( * ) + + 64 + + + 8 AS col0
----
73

skipif mysql # not compatible
query I rowsort label-7574
SELECT DISTINCT + COUNT ( * ) + + 64 + + + 8 AS col0
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-7575
SELECT ALL - 90 + - - 94 DIV 80
----
-89

skipif mysql # not compatible
query I rowsort label-7575
SELECT ALL - 90 + - - 94 / 80
----
-89

query I rowsort
SELECT + - ( 66 )
----
-66

query I rowsort
SELECT ALL 5 * + + 23
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-7578
SELECT 77 + - 39 - - + 64 * 26 * COUNT( * ) * + 41
----
68262

skipif mysql # not compatible
query I rowsort label-7578
SELECT 77 + - 39 - - + 64 * 26 * COUNT ( * ) * + 41
----
68262

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7579
SELECT DISTINCT + 65 + + NULLIF ( - - CASE - 82 WHEN COUNT( * ) THEN CAST( NULL AS SIGNED ) WHEN - ( + - COALESCE ( - + 93, 88 / - 79 - CAST( NULL AS SIGNED ), - 25 ) ) THEN 26 / + 51 - - 31 ELSE NULL END, + - 99 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7579
SELECT DISTINCT + 65 + + NULLIF ( - - CASE - 82 WHEN COUNT ( * ) THEN CAST ( NULL AS INTEGER ) WHEN - ( + - COALESCE ( - + 93, 88 / - 79 - CAST ( NULL AS INTEGER ), - 25 ) ) THEN 26 / + 51 - - 31 ELSE NULL END, + - 99 ) AS col2
----
NULL

query I rowsort
SELECT ALL - 7 + + + ( 18 ) AS col1
----
11

query I rowsort
SELECT ALL 32 * + 12 AS col1
----
384

query I rowsort
SELECT DISTINCT 90 * 20 AS col2
----
1800

query I rowsort
SELECT ALL - COALESCE ( 20, + 25 ) + + 39
----
19

query I rowsort
SELECT ALL - + 68 AS col2
----
-68

onlyif mysql # aggregate syntax: 
query II rowsort label-7585
SELECT + - ( + + 65 ) AS col1, - COUNT( * ) * - 44 + + + 2 * + COUNT( * ) + 51
----
-65
97

skipif mysql # not compatible
query II rowsort label-7585
SELECT + - ( + + 65 ) AS col1, - COUNT ( * ) * - 44 + + + 2 * + COUNT ( * ) + 51
----
-65
97

query I rowsort
SELECT ( + 13 ) * + 51 * - 23
----
-15249

query I rowsort
SELECT 54 * - 70 col1
----
-3780

query I rowsort
SELECT ALL + 84 - + 70 * - 96 AS col2
----
6804

query I rowsort
SELECT 41 * 49
----
2009

query II rowsort
SELECT DISTINCT 87 AS col2, 77 - - + 14
----
87
91

query I rowsort
SELECT 51 - - 81
----
132

query I rowsort
SELECT ALL + 57 * + - 56
----
-3192

onlyif mysql # aggregate syntax: 
query II rowsort label-7593
SELECT 20 col0, SUM( ALL - - 19 ) AS col2
----
20
19

skipif mysql # not compatible
query II rowsort label-7593
SELECT 20 col0, SUM ( ALL - - 19 ) AS col2
----
20
19

query I rowsort
SELECT 66 * + ( - 95 )
----
-6270

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-7595
SELECT COALESCE ( - ( COUNT( * ) ), 65 - - CASE WHEN NOT 94 = 59 * + NULLIF ( - - CAST( + 93 AS DECIMAL ), NULLIF ( + 93, - - MAX( ALL + 88 ) + 87 ) ) * + CASE - 73 WHEN 79 * - 96 - - 20 - - 34 THEN + + 56 - MIN( + 75 ) ELSE NULL END THEN NULL ELSE - 94 + 9 DIV COALESCE ( - 34 * 51 + - 19, + MIN( + ( 61 ) ) + - 15 ) END, 88 ) + - ( - 54 ) * 62 AS col1
----
3347

skipif mysql # not compatible
query I rowsort label-7595
SELECT COALESCE ( - ( COUNT ( * ) ), 65 - - CASE WHEN NOT 94 = 59 * + NULLIF ( - - CAST ( + 93 AS REAL ), NULLIF ( + 93, - - MAX ( ALL + 88 ) + 87 ) ) * + CASE - 73 WHEN 79 * - 96 - - 20 - - 34 THEN + + 56 - MIN ( + 75 ) ELSE NULL END THEN NULL ELSE - 94 + 9 / COALESCE ( - 34 * 51 + - 19, + MIN ( + ( 61 ) ) + - 15 ) END, 88 ) + - ( - 54 ) * 62 AS col1
----
3347

query II rowsort
SELECT - 53 AS col0, 97 col1
----
-53
97

query I rowsort
SELECT 56 * - - 67 AS col0
----
3752

query I rowsort
SELECT 60 + 68 AS col2
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-7599
SELECT MIN( 56 ) - - + 4
----
60

skipif mysql # not compatible
query I rowsort label-7599
SELECT MIN ( 56 ) - - + 4
----
60

query II rowsort
SELECT 20 AS col1, + 66 AS col2
----
20
66

query I rowsort
SELECT 69 + + 68 AS col0
----
137

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7602
SELECT DISTINCT MIN( DISTINCT - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7602
SELECT DISTINCT MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT ALL + + 60 + 76
----
136

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7604
SELECT ( + + CAST( NULL AS SIGNED ) ) + - - CAST( + NULLIF ( - + 94, + 54 + ( - - 13 ) ) AS DECIMAL ) + 0 + - 88 * + 89 * + 25 * + + 42
----
NULL

skipif mysql # not compatible
query I rowsort label-7604
SELECT ( + + CAST ( NULL AS INTEGER ) ) + - - CAST ( + NULLIF ( - + 94, + 54 + ( - - 13 ) ) AS REAL ) + 0 + - 88 * + 89 * + 25 * + + 42
----
NULL

query I rowsort
SELECT ALL NULLIF ( - 34, + - 46 ) AS col2
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-7606
SELECT ALL - 5 + + - 98 * SUM( + 16 ) + - + 78 * + 90 + + COUNT( * ) AS col1
----
-8592

skipif mysql # not compatible
query I rowsort label-7606
SELECT ALL - 5 + + - 98 * SUM ( + 16 ) + - + 78 * + 90 + + COUNT ( * ) AS col1
----
-8592

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7607
SELECT ALL - 94 DIV - MIN( ALL - 14 )
----
-6

skipif mysql # not compatible
query I rowsort label-7607
SELECT ALL - 94 / - MIN ( ALL - 14 )
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-7608
SELECT 23 DIV + 19 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7608
SELECT 23 / + 19 AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7609
SELECT + MAX( DISTINCT + 32 ) + + 2 * + MAX( CAST( - 4 AS SIGNED ) ) + - 97 * + 3
----
-267

skipif mysql # not compatible
query I rowsort label-7609
SELECT + MAX ( DISTINCT + 32 ) + + 2 * + MAX ( CAST ( - 4 AS INTEGER ) ) + - 97 * + 3
----
-267

query I rowsort
SELECT 56 + 71 * - 98
----
-6902

onlyif mysql # aggregate syntax: 
query I rowsort label-7611
SELECT - MAX( DISTINCT - 13 ) * + 83 AS col0
----
1079

skipif mysql # not compatible
query I rowsort label-7611
SELECT - MAX ( DISTINCT - 13 ) * + 83 AS col0
----
1079

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7612
SELECT + 59 DIV CAST( + + 72 AS SIGNED ) AS col2, 93 AS col1
----
0
93

skipif mysql # not compatible
query II rowsort label-7612
SELECT + 59 / CAST ( + + 72 AS INTEGER ) AS col2, 93 AS col1
----
0
93

onlyif mysql # DIV for integer division: 
query I rowsort label-7613
SELECT 46 DIV + NULLIF ( + 75, - + ( 27 ) )
----
0

skipif mysql # not compatible
query I rowsort label-7613
SELECT 46 / + NULLIF ( + 75, - + ( 27 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7614
SELECT MIN( - 6 )
----
-6

skipif mysql # not compatible
query I rowsort label-7614
SELECT MIN ( - 6 )
----
-6

query I rowsort
SELECT ALL + 82 * + 31 + - - 61 + 48 + + 72
----
2723

query I rowsort
SELECT DISTINCT + 96 * 31 + - 71 * 53
----
-787

query II rowsort
SELECT ALL + + 39 AS col0, CASE 12 WHEN COALESCE ( + 54, 30 ) THEN NULL WHEN + - 41 + AVG ( + - 56 ) THEN COALESCE ( + - 90, + + 46 ) / + + 32 - + 42 * - - 23 END AS col2
----
39
NULL

query I rowsort
SELECT DISTINCT + 32 * ( - 7 ) + 37 - 27 + + 23 AS col1
----
-191

onlyif mysql # DIV for integer division: 
query I rowsort label-7619
SELECT + + 23 + + - 12 DIV 23 AS col2
----
23

skipif mysql # not compatible
query I rowsort label-7619
SELECT + + 23 + + - 12 / 23 AS col2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-7620
SELECT - 66 * - 37 + + COUNT( * ) + - 77
----
2366

skipif mysql # not compatible
query I rowsort label-7620
SELECT - 66 * - 37 + + COUNT ( * ) + - 77
----
2366

query I rowsort
SELECT + 59 * + + 61 * 88 + 71 AS col2
----
316783

onlyif mysql # DIV for integer division: 
query I rowsort label-7622
SELECT + - COALESCE ( - 82, + 71 ) - + - ( + 90 ) DIV ( + - 38 )
----
80

skipif mysql # not compatible
query I rowsort label-7622
SELECT + - COALESCE ( - 82, + 71 ) - + - ( + 90 ) / ( + - 38 )
----
80

query I rowsort
SELECT + 53 + - + ( + - 79 ) + - + 35 * 47
----
-1513

query I rowsort
SELECT ALL + 70 * - 73 - 64
----
-5174

query I rowsort
SELECT + 29 + - + NULLIF ( - 23, 23 ) AS col1
----
52

query I rowsort
SELECT ALL 41 * + + 57 AS col0
----
2337

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7627
SELECT + 47 + - CAST( + - 46 AS SIGNED ) AS col1
----
93

skipif mysql # not compatible
query I rowsort label-7627
SELECT + 47 + - CAST ( + - 46 AS INTEGER ) AS col1
----
93

query I rowsort
SELECT DISTINCT + NULLIF ( + 38, - - 87 ) AS col2
----
38

query II rowsort
SELECT ( + 84 ) * + NULLIF ( + 68, ( - 4 ) ) * - - 3 - - + 39 + + 3, 44 + + ( - 52 ) + 23 * - + 95 AS col1
----
17178
-2193

onlyif mysql # aggregate syntax: 
query I rowsort label-7630
SELECT ALL COUNT( * ) * - - 87 AS col0
----
87

skipif mysql # not compatible
query I rowsort label-7630
SELECT ALL COUNT ( * ) * - - 87 AS col0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-7631
SELECT COUNT( - 31 )
----
1

skipif mysql # not compatible
query I rowsort label-7631
SELECT COUNT ( - 31 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7632
SELECT - CAST( 55 AS SIGNED ) * - ( + 58 ) * - 56 - - + 3 * - COUNT( * ) - - 20 * - 52 + - - 19 AS col1, - 81 - ( + 92 ) AS col2
----
-179664
-173

skipif mysql # not compatible
query II rowsort label-7632
SELECT - CAST ( 55 AS INTEGER ) * - ( + 58 ) * - 56 - - + 3 * - COUNT ( * ) - - 20 * - 52 + - - 19 AS col1, - 81 - ( + 92 ) AS col2
----
-179664
-173

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7633
SELECT DISTINCT + 8 DIV + COALESCE ( COUNT( * ), - 29, NULLIF ( + - NULLIF ( 93, - SUM( DISTINCT + 88 ) ), - 6 ) + - + 11 )
----
8

skipif mysql # not compatible
query I rowsort label-7633
SELECT DISTINCT + 8 / + COALESCE ( COUNT ( * ), - 29, NULLIF ( + - NULLIF ( 93, - SUM ( DISTINCT + 88 ) ), - 6 ) + - + 11 )
----
8

query I rowsort
SELECT ALL + 90 * + 18 col2
----
1620

query I rowsort
SELECT DISTINCT NULLIF ( - 46, 15 )
----
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-7636
SELECT DISTINCT + 81 + + + 26 + + COALESCE ( - 83, + + ( + 56 ), + 3 * - 8 * - 67 DIV + - 90 + 40 )
----
24

skipif mysql # not compatible
query I rowsort label-7636
SELECT DISTINCT + 81 + + + 26 + + COALESCE ( - 83, + + ( + 56 ), + 3 * - 8 * - 67 / + - 90 + 40 )
----
24

query II rowsort
SELECT DISTINCT 56 + 69 AS col2, - 81
----
125
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-7638
SELECT ALL + - COUNT( * ) + + - COUNT( * ) + + 37 - 5 AS col0, MIN( ALL - + 55 )
----
30
-55

skipif mysql # not compatible
query II rowsort label-7638
SELECT ALL + - COUNT ( * ) + + - COUNT ( * ) + + 37 - 5 AS col0, MIN ( ALL - + 55 )
----
30
-55

query II rowsort
SELECT DISTINCT - - 62 + + - 29, + 21 * + - 62 AS col2
----
33
-1302

query I rowsort
SELECT DISTINCT - 65 * 16 AS col0
----
-1040

onlyif mysql # aggregate syntax: 
query I rowsort label-7641
SELECT + COUNT( - + 78 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7641
SELECT + COUNT ( - + 78 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7642
SELECT COALESCE ( + COUNT( * ), - + 46 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7642
SELECT COALESCE ( + COUNT ( * ), - + 46 ) AS col0
----
1

query I rowsort
SELECT ALL + ( 13 ) + - + 72 + - 57 AS col2
----
-116

onlyif mysql # aggregate syntax: 
query I rowsort label-7644
SELECT - 34 - + COUNT( * ) AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-7644
SELECT - 34 - + COUNT ( * ) AS col1
----
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-7645
SELECT - - MIN( DISTINCT - 93 ), ( - COUNT( * ) ) * 83 AS col0
----
-93
-83

skipif mysql # not compatible
query II rowsort label-7645
SELECT - - MIN ( DISTINCT - 93 ), ( - COUNT ( * ) ) * 83 AS col0
----
-93
-83

query I rowsort
SELECT - + 87 * + 21 + - 46 AS col2
----
-1873

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7647
SELECT ALL ( + CAST( + 53 AS SIGNED ) ) AS col2
----
53

skipif mysql # not compatible
query I rowsort label-7647
SELECT ALL ( + CAST ( + 53 AS INTEGER ) ) AS col2
----
53

query I rowsort
SELECT - CASE 33 WHEN + - 0 THEN NULL WHEN - 8 THEN NULL ELSE + 91 END AS col0
----
-91

query II rowsort
SELECT ALL + 7 + - + 73 - - 60 * - + 43, + 54 AS col0
----
-2646
54

query I rowsort
SELECT DISTINCT - NULLIF ( 90, - - 43 ) AS col0
----
-90

query I rowsort
SELECT ALL 23 * - 11
----
-253

query I rowsort
SELECT + + 55 AS col0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-7653
SELECT - - COUNT( * ) * + 2
----
2

skipif mysql # not compatible
query I rowsort label-7653
SELECT - - COUNT ( * ) * + 2
----
2

query I rowsort
SELECT + 20 * - - 25 AS col0
----
500

query I rowsort
SELECT ALL + ( + 5 ) * + 14
----
70

query I rowsort
SELECT DISTINCT + 91 col1
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7657
SELECT - ( + CAST( NULL AS SIGNED ) ) * + + 18 + 33 * + 39 * - - COALESCE ( - - 91, - MAX( ALL - - 42 ) + - - COUNT( * ) * 26 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7657
SELECT - ( + CAST ( NULL AS INTEGER ) ) * + + 18 + 33 * + 39 * - - COALESCE ( - - 91, - MAX ( ALL - - 42 ) + - - COUNT ( * ) * 26 )
----
NULL

query II rowsort
SELECT ALL - 64 * 50, 86 * + + 27 col1
----
-3200
2322

query I rowsort
SELECT - 29 * + 69 col2
----
-2001

query II rowsort
SELECT ALL + 56 * + 50 * 24 AS col0, + 23
----
67200
23

query I rowsort
SELECT - 6 * 96 AS col1
----
-576

onlyif mysql # aggregate syntax: 
query I rowsort label-7662
SELECT ALL - 84 * COUNT( * ) AS col1
----
-84

skipif mysql # not compatible
query I rowsort label-7662
SELECT ALL - 84 * COUNT ( * ) AS col1
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-7663
SELECT ALL + SUM( ALL + 25 )
----
25

skipif mysql # not compatible
query I rowsort label-7663
SELECT ALL + SUM ( ALL + 25 )
----
25

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7664
SELECT + 76 * - - NULLIF ( 15, ( + SUM( ALL 28 ) ) * + ( - - CASE + + ( ( ( - 12 ) ) ) WHEN - + 65 + + 56 THEN + 37 END ) / + ( - CASE + COUNT( * ) WHEN + 1 THEN + 4 - - 80 + COALESCE ( - 18, 82 + 68 ) WHEN - 84 * - COUNT( * ) THEN NULL END ) + CAST( NULL AS DECIMAL ) + 26 ) col2
----
1140

skipif mysql # not compatible
query I rowsort label-7664
SELECT + 76 * - - NULLIF ( 15, ( + SUM ( ALL 28 ) ) * + ( - - CASE + + ( ( ( - 12 ) ) ) WHEN - + 65 + + 56 THEN + 37 END ) / + ( - CASE + COUNT ( * ) WHEN + 1 THEN + 4 - - 80 + COALESCE ( - 18, 82 + 68 ) WHEN - 84 * - COUNT ( * ) THEN NULL END ) + CAST ( NULL AS REAL ) + 26 ) col2
----
1140

onlyif mysql # aggregate syntax: 
query I rowsort label-7665
SELECT COUNT( * ) * + 93 - - + ( - ( + ( + 78 ) ) ) AS col1
----
15

skipif mysql # not compatible
query I rowsort label-7665
SELECT COUNT ( * ) * + 93 - - + ( - ( + ( + 78 ) ) ) AS col1
----
15

query I rowsort
SELECT + ( - 17 ) AS col1
----
-17

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7667
SELECT ALL CASE - + 47 WHEN - 65 * + ( - - 55 ) THEN - ( - COUNT( * ) ) WHEN 14 * + 78 THEN - COALESCE ( 23, + COUNT( * ) ) END * 47 + NULLIF ( + + 64, + - COALESCE ( + 27, - 82 * 62 ) * - 98 / CAST( NULL AS DECIMAL ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7667
SELECT ALL CASE - + 47 WHEN - 65 * + ( - - 55 ) THEN - ( - COUNT ( * ) ) WHEN 14 * + 78 THEN - COALESCE ( 23, + COUNT ( * ) ) END * 47 + NULLIF ( + + 64, + - COALESCE ( + 27, - 82 * 62 ) * - 98 / CAST ( NULL AS REAL ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7668
SELECT + CAST( + - MAX( 11 ) AS SIGNED )
----
-11

skipif mysql # not compatible
query I rowsort label-7668
SELECT + CAST ( + - MAX ( 11 ) AS INTEGER )
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-7669
SELECT + COUNT( * ) * + + 63
----
63

skipif mysql # not compatible
query I rowsort label-7669
SELECT + COUNT ( * ) * + + 63
----
63

query I rowsort
SELECT ALL 51 * - 60
----
-3060

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7671
SELECT CASE 49 WHEN 53 + + - NULLIF ( 82, + - 83 ) * - - 89 THEN NULL WHEN - ( + - COALESCE ( + CAST( - 52 AS SIGNED ), + 44 * COUNT( * ) / 58 * 88 / + 9 + - 22 + + - 88 * + - 32 * + - SUM( + 51 ), 73 + - - 34, + 98 * - + COUNT( * ) ) ) THEN CASE - 56 WHEN COUNT( * ) + + 91 THEN MIN( DISTINCT - ( ( 13 ) ) ) / COUNT( * ) END * CASE - COUNT( * ) WHEN COALESCE ( 22, 66 ) THEN - 48 - + 97 ELSE NULL END ELSE CASE - 92 WHEN CAST( NULLIF ( 74, 39 * 76 ) AS DECIMAL ) THEN 47 ELSE SUM( ALL 88 ) END / 29 - ( ( CASE + 15 WHEN CAST( NULL AS SIGNED ) THEN + MIN( DISTINCT 54 ) + + 39 ELSE NULL END ) + + 1 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7671
SELECT CASE 49 WHEN 53 + + - NULLIF ( 82, + - 83 ) * - - 89 THEN NULL WHEN - ( + - COALESCE ( + CAST ( - 52 AS INTEGER ), + 44 * COUNT ( * ) / 58 * 88 / + 9 + - 22 + + - 88 * + - 32 * + - SUM ( + 51 ), 73 + - - 34, + 98 * - + COUNT ( * ) ) ) THEN CASE - 56 WHEN COUNT ( * ) + + 91 THEN MIN ( DISTINCT - ( ( 13 ) ) ) / COUNT ( * ) END * CASE - COUNT ( * ) WHEN COALESCE ( 22, 66 ) THEN - 48 - + 97 ELSE NULL END ELSE CASE - 92 WHEN CAST ( NULLIF ( 74, 39 * 76 ) AS REAL ) THEN 47 ELSE SUM ( ALL 88 ) END / 29 - ( ( CASE + 15 WHEN CAST ( NULL AS INTEGER ) THEN + MIN ( DISTINCT 54 ) + + 39 ELSE NULL END ) + + 1 ) END
----
NULL

query I rowsort
SELECT DISTINCT + COALESCE ( - 72, - ( - 78 ) ) AS col2
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-7673
SELECT ALL 95 * SUM( + - 88 ) + + - 72 * 4 + + + 15
----
-8633

skipif mysql # not compatible
query I rowsort label-7673
SELECT ALL 95 * SUM ( + - 88 ) + + - 72 * 4 + + + 15
----
-8633

query I rowsort
SELECT - ( 39 ) AS col1
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-7675
SELECT MIN( DISTINCT 28 ) col2
----
28

skipif mysql # not compatible
query I rowsort label-7675
SELECT MIN ( DISTINCT 28 ) col2
----
28

query I rowsort
SELECT ALL 15 * 4
----
60

query I rowsort
SELECT DISTINCT 81 * - - 17 + + - NULLIF ( - 80, - 26 ) * + - 88 * 76
----
-533663

onlyif mysql # aggregate syntax: 
query I rowsort label-7678
SELECT + - 72 + - - COUNT( ALL + 61 ) + + + 69 + + - 59 - 15 * + COUNT( * ) + - - 14 * 81
----
1058

skipif mysql # not compatible
query I rowsort label-7678
SELECT + - 72 + - - COUNT ( ALL + 61 ) + + + 69 + + - 59 - 15 * + COUNT ( * ) + - - 14 * 81
----
1058

onlyif mysql # aggregate syntax: 
query I rowsort label-7679
SELECT ALL + COUNT( * ) + 84
----
85

skipif mysql # not compatible
query I rowsort label-7679
SELECT ALL + COUNT ( * ) + 84
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-7680
SELECT - + ( - COUNT( * ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7680
SELECT - + ( - COUNT ( * ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7681
SELECT + - 22 + NULLIF ( + 85, - 58 + + COUNT( * ) - 8 + + 75 * + - 59 + - 33 + + 99 ) * + - 81
----
-6907

skipif mysql # not compatible
query I rowsort label-7681
SELECT + - 22 + NULLIF ( + 85, - 58 + + COUNT ( * ) - 8 + + 75 * + - 59 + - 33 + + 99 ) * + - 81
----
-6907

query I rowsort
SELECT - - 17 - + 55
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-7683
SELECT + NULLIF ( COUNT( * ), - NULLIF ( + - 12, - - 76 ) ) * + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-7683
SELECT + NULLIF ( COUNT ( * ), - NULLIF ( + - 12, - - 76 ) ) * + COUNT ( * )
----
1

query I rowsort
SELECT + 46 + + 34
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-7685
SELECT - MIN( DISTINCT - 57 ) + 16 * + - 48
----
-711

skipif mysql # not compatible
query I rowsort label-7685
SELECT - MIN ( DISTINCT - 57 ) + 16 * + - 48
----
-711

onlyif mysql # aggregate syntax: 
query I rowsort label-7686
SELECT + 21 * + NULLIF ( - COUNT( * ), - 37 + 94 ) AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-7686
SELECT + 21 * + NULLIF ( - COUNT ( * ), - 37 + 94 ) AS col0
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-7687
SELECT ALL - ( - - COUNT( * ) ) * + 87 * - 60 AS col0
----
5220

skipif mysql # not compatible
query I rowsort label-7687
SELECT ALL - ( - - COUNT ( * ) ) * + 87 * - 60 AS col0
----
5220

onlyif mysql # aggregate syntax: 
query I rowsort label-7688
SELECT DISTINCT - ( + ( COUNT( * ) ) ) - 23 col2
----
-24

skipif mysql # not compatible
query I rowsort label-7688
SELECT DISTINCT - ( + ( COUNT ( * ) ) ) - 23 col2
----
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7689
SELECT 5 AS col0, MIN( DISTINCT 78 ) DIV - 13 AS col0
----
5
-6

skipif mysql # not compatible
query II rowsort label-7689
SELECT 5 AS col0, MIN ( DISTINCT 78 ) / - 13 AS col0
----
5
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-7690
SELECT + + 78, NULLIF ( - 75, COUNT( 62 ) ) AS col2
----
78
-75

skipif mysql # not compatible
query II rowsort label-7690
SELECT + + 78, NULLIF ( - 75, COUNT ( 62 ) ) AS col2
----
78
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7691
SELECT CAST( + COALESCE ( - ( - 17 ), MAX( ALL - - COALESCE ( + CAST( - 53 AS DECIMAL ), - 19 + - + 69 ) ) + + 33 + - - MIN( + 80 ), + 57 ) AS SIGNED ) + + - 28 * - MIN( DISTINCT 68 )
----
1921

skipif mysql # not compatible
query I rowsort label-7691
SELECT CAST ( + COALESCE ( - ( - 17 ), MAX ( ALL - - COALESCE ( + CAST ( - 53 AS REAL ), - 19 + - + 69 ) ) + + 33 + - - MIN ( + 80 ), + 57 ) AS INTEGER ) + + - 28 * - MIN ( DISTINCT 68 )
----
1921

query I rowsort
SELECT DISTINCT - 65 * 72 AS col2
----
-4680

query I rowsort
SELECT 44 * + 18 AS col0
----
792

query I rowsort
SELECT ALL - ( + 49 ) AS col2
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-7695
SELECT DISTINCT - MAX( DISTINCT - 50 )
----
50

skipif mysql # not compatible
query I rowsort label-7695
SELECT DISTINCT - MAX ( DISTINCT - 50 )
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-7696
SELECT 25 DIV - + 66 + 10 + - 31 AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-7696
SELECT 25 / - + 66 + 10 + - 31 AS col0
----
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-7697
SELECT 34 DIV + - 94 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7697
SELECT 34 / + - 94 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7698
SELECT SUM( DISTINCT + - 83 ) * CAST( - 42 AS SIGNED ) AS col2
----
3486

skipif mysql # not compatible
query I rowsort label-7698
SELECT SUM ( DISTINCT + - 83 ) * CAST ( - 42 AS INTEGER ) AS col2
----
3486

query I rowsort
SELECT ALL + 25 + + 20
----
45

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7700
SELECT - CAST( + 1 AS SIGNED ) * + 51 DIV ( + 10 ) + 29 + 27 * ( + 16 ) + + 18 AS col1
----
474

skipif mysql # not compatible
query I rowsort label-7700
SELECT - CAST ( + 1 AS INTEGER ) * + 51 / ( + 10 ) + 29 + 27 * ( + 16 ) + + 18 AS col1
----
474

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7701
SELECT + 35 col2, 44 * + 71 / - - CAST( NULL AS SIGNED ) * - 4 AS col0
----
35
NULL

skipif mysql # not compatible
query II rowsort label-7701
SELECT + 35 col2, 44 * + 71 / - - CAST ( NULL AS INTEGER ) * - 4 AS col0
----
35
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7702
SELECT COUNT( * ) * + 69 + 82 * + 37
----
3103

skipif mysql # not compatible
query I rowsort label-7702
SELECT COUNT ( * ) * + 69 + 82 * + 37
----
3103

onlyif mysql # aggregate syntax: 
query I rowsort label-7703
SELECT ( - - 31 ) * + - COUNT( * ) - 90
----
-121

skipif mysql # not compatible
query I rowsort label-7703
SELECT ( - - 31 ) * + - COUNT ( * ) - 90
----
-121

query II rowsort
SELECT + 89 AS col2, 25 * + 12
----
89
300

query I rowsort
SELECT 60 + 4 AS col1
----
64

query II rowsort
SELECT + 16 * + ( + + 89 ) - - + 44 AS col0, 56
----
1468
56

query I rowsort
SELECT ALL - 35 * + + 76
----
-2660

query I rowsort
SELECT 69 * 7 * - 2
----
-966

onlyif mysql # aggregate syntax: 
query I rowsort label-7709
SELECT ALL - 62 + + COUNT( * ) + + 74 AS col2
----
13

skipif mysql # not compatible
query I rowsort label-7709
SELECT ALL - 62 + + COUNT ( * ) + + 74 AS col2
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7710
SELECT DISTINCT + 8 + + CASE - 22 WHEN + 61 THEN NULL WHEN + - COUNT( * ) THEN - CAST( NULL AS SIGNED ) END + + + 78 + + 70 / + 51
----
NULL

skipif mysql # not compatible
query I rowsort label-7710
SELECT DISTINCT + 8 + + CASE - 22 WHEN + 61 THEN NULL WHEN + - COUNT ( * ) THEN - CAST ( NULL AS INTEGER ) END + + + 78 + + 70 / + 51
----
NULL

query I rowsort
SELECT ALL 4 + 84
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7712
SELECT 26 * + - 31 + + + CAST( NULL AS SIGNED ) + - 65 * - + 27
----
NULL

skipif mysql # not compatible
query I rowsort label-7712
SELECT 26 * + - 31 + + + CAST ( NULL AS INTEGER ) + - 65 * - + 27
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7713
SELECT + CASE 99 WHEN + 24 THEN + 74 ELSE - COUNT( * ) * + 26 + SUM( ALL + - ( - 92 ) ) * + ( - 55 ) + 7 + + ( - - 21 ) + - - 43 DIV + 25 END * - MIN( 86 ) + - - MAX( DISTINCT - - 24 )
----
434926

skipif mysql # not compatible
query I rowsort label-7713
SELECT + CASE 99 WHEN + 24 THEN + 74 ELSE - COUNT ( * ) * + 26 + SUM ( ALL + - ( - 92 ) ) * + ( - 55 ) + 7 + + ( - - 21 ) + - - 43 / + 25 END * - MIN ( 86 ) + - - MAX ( DISTINCT - - 24 )
----
434926

query I rowsort
SELECT DISTINCT - ( - - ( - 23 ) ) col2
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7715
SELECT ALL - 63 + 3 * + 92 * - MAX( ALL - + 75 ) * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7715
SELECT ALL - 63 + 3 * + 92 * - MAX ( ALL - + 75 ) * CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT + 3 * 87
----
261

query I rowsort
SELECT 21 + + 60 col0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7718
SELECT - ( SUM( DISTINCT + - 65 ) ) + + SUM( - 68 ) AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-7718
SELECT - ( SUM ( DISTINCT + - 65 ) ) + + SUM ( - 68 ) AS col0
----
-3

query I rowsort
SELECT DISTINCT - - 99 - 31
----
68

query II rowsort
SELECT - + 47 AS col0, 83
----
-47
83

query I rowsort
SELECT DISTINCT 27 * 51 AS col0
----
1377

onlyif mysql # aggregate syntax: 
query I rowsort label-7722
SELECT - - SUM( - 69 ) AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-7722
SELECT - - SUM ( - 69 ) AS col2
----
-69

query I rowsort
SELECT ( - + 63 ) * 81 + - - 86
----
-5017

onlyif mysql # aggregate syntax: 
query I rowsort label-7724
SELECT + 75 * - + 94 * - - COUNT( * ) AS col2
----
-7050

skipif mysql # not compatible
query I rowsort label-7724
SELECT + 75 * - + 94 * - - COUNT ( * ) AS col2
----
-7050

onlyif mysql # aggregate syntax: 
query I rowsort label-7725
SELECT ALL 45 * - + 51 + COUNT( + - ( - + 9 ) ) AS col2
----
-2294

skipif mysql # not compatible
query I rowsort label-7725
SELECT ALL 45 * - + 51 + COUNT ( + - ( - + 9 ) ) AS col2
----
-2294

onlyif mysql # aggregate syntax: 
query I rowsort label-7726
SELECT + 19 - + COUNT( * )
----
18

skipif mysql # not compatible
query I rowsort label-7726
SELECT + 19 - + COUNT ( * )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-7727
SELECT - COUNT( * ) + + ( + + 32 )
----
31

skipif mysql # not compatible
query I rowsort label-7727
SELECT - COUNT ( * ) + + ( + + 32 )
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7728
SELECT CAST( 50 AS SIGNED ) - + 17 AS col1
----
33

skipif mysql # not compatible
query I rowsort label-7728
SELECT CAST ( 50 AS INTEGER ) - + 17 AS col1
----
33

query II rowsort
SELECT ALL 4 AS col1, ( - 48 )
----
4
-48

query I rowsort
SELECT - 42 * - 75
----
3150

query I rowsort
SELECT - 11 + - + CASE + 64 WHEN + - 43 THEN + 71 ELSE + 87 END
----
-98

query I rowsort
SELECT 49 * + + 57
----
2793

onlyif mysql # aggregate syntax: 
query I rowsort label-7733
SELECT ALL MAX( ALL - COALESCE ( + 44, - + ( - 46 ) * - 56 + - 32 * 54, 38 + + - 94 ) )
----
-44

skipif mysql # not compatible
query I rowsort label-7733
SELECT ALL MAX ( ALL - COALESCE ( + 44, - + ( - 46 ) * - 56 + - 32 * 54, 38 + + - 94 ) )
----
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-7734
SELECT - 69 DIV + - 33 + + 3 + - 63
----
-58

skipif mysql # not compatible
query I rowsort label-7734
SELECT - 69 / + - 33 + + 3 + - 63
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-7735
SELECT COUNT( * ) - + - 28
----
29

skipif mysql # not compatible
query I rowsort label-7735
SELECT COUNT ( * ) - + - 28
----
29

query I rowsort
SELECT ALL - + ( 97 )
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7737
SELECT COUNT( * ) DIV - - 19 - - 38 * + 60 + + CAST( + 45 AS SIGNED )
----
2325

skipif mysql # not compatible
query I rowsort label-7737
SELECT COUNT ( * ) / - - 19 - - 38 * + 60 + + CAST ( + 45 AS INTEGER )
----
2325

onlyif mysql # aggregate syntax: 
query I rowsort label-7738
SELECT MAX( + 31 )
----
31

skipif mysql # not compatible
query I rowsort label-7738
SELECT MAX ( + 31 )
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7739
SELECT ALL CAST( NULL AS SIGNED ) * - 79 + - MIN( ALL - ( + 5 ) ) * - 26
----
NULL

skipif mysql # not compatible
query I rowsort label-7739
SELECT ALL CAST ( NULL AS INTEGER ) * - 79 + - MIN ( ALL - ( + 5 ) ) * - 26
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7740
SELECT MAX( + 4 ) AS col0
----
4

skipif mysql # not compatible
query I rowsort label-7740
SELECT MAX ( + 4 ) AS col0
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7741
SELECT ( + + 64 ) * + - CAST( + + 7 AS SIGNED ) AS col2
----
-448

skipif mysql # not compatible
query I rowsort label-7741
SELECT ( + + 64 ) * + - CAST ( + + 7 AS INTEGER ) AS col2
----
-448

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7742
SELECT 86 + - ( - 91 ) * + + CAST( + 36 AS SIGNED ) AS col0
----
3362

skipif mysql # not compatible
query I rowsort label-7742
SELECT 86 + - ( - 91 ) * + + CAST ( + 36 AS INTEGER ) AS col0
----
3362

query I rowsort
SELECT DISTINCT + 21 * - + 76
----
-1596

onlyif mysql # aggregate syntax: 
query I rowsort label-7744
SELECT 95 + + 55 * COUNT( * )
----
150

skipif mysql # not compatible
query I rowsort label-7744
SELECT 95 + + 55 * COUNT ( * )
----
150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7745
SELECT 76 * - COALESCE ( 60, COUNT( * ) ) * + MIN( ALL 43 ) / + - COUNT( + 49 ) * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7745
SELECT 76 * - COALESCE ( 60, COUNT ( * ) ) * + MIN ( ALL 43 ) / + - COUNT ( + 49 ) * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT 40 * + 56 AS col2
----
2240

onlyif mysql # aggregate syntax: 
query I rowsort label-7747
SELECT DISTINCT - MAX( + 80 ) AS col1
----
-80

skipif mysql # not compatible
query I rowsort label-7747
SELECT DISTINCT - MAX ( + 80 ) AS col1
----
-80

query I rowsort
SELECT 66 * + ( 64 )
----
4224

query I rowsort
SELECT ALL + 31 + - - 61 AS col2
----
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7750
SELECT 75 - 40 DIV + 4 + + COUNT( * ) AS col0
----
66

skipif mysql # not compatible
query I rowsort label-7750
SELECT 75 - 40 / + 4 + + COUNT ( * ) AS col0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-7751
SELECT 85 - 93 + - - COUNT( * )
----
-7

skipif mysql # not compatible
query I rowsort label-7751
SELECT 85 - 93 + - - COUNT ( * )
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-7752
SELECT 20 DIV + 51 * - 4 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7752
SELECT 20 / + 51 * - 4 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7753
SELECT ALL - MIN( - 75 ) * - 85 AS col0
----
-6375

skipif mysql # not compatible
query I rowsort label-7753
SELECT ALL - MIN ( - 75 ) * - 85 AS col0
----
-6375

query I rowsort
SELECT + 70 * - 65
----
-4550

onlyif mysql # aggregate syntax: 
query II rowsort label-7755
SELECT + MAX( - - 86 ), 97 col0
----
86
97

skipif mysql # not compatible
query II rowsort label-7755
SELECT + MAX ( - - 86 ), 97 col0
----
86
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7756
SELECT - COUNT( * ) * + 29 AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-7756
SELECT - COUNT ( * ) * + 29 AS col2
----
-29

query I rowsort
SELECT ALL - 84 * - + 45
----
3780

onlyif mysql # aggregate syntax: 
query I rowsort label-7758
SELECT - + 14 - - COALESCE ( + - ( - - COUNT( ALL + + 31 ) ), + - MAX( + 16 ) - 96 ) + - 88 AS col2
----
-103

skipif mysql # not compatible
query I rowsort label-7758
SELECT - + 14 - - COALESCE ( + - ( - - COUNT ( ALL + + 31 ) ), + - MAX ( + 16 ) - 96 ) + - 88 AS col2
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-7759
SELECT NULLIF ( + 28, - + 56 / + MAX( - 26 ) + 98 - - 59 + + 0 / + - 70 * 65 * + - 89 / + AVG ( - - 16 ) * + COUNT( * ) )
----
28

skipif mysql # not compatible
query I rowsort label-7759
SELECT NULLIF ( + 28, - + 56 / + MAX ( - 26 ) + 98 - - 59 + + 0 / + - 70 * 65 * + - 89 / + AVG ( - - 16 ) * + COUNT ( * ) )
----
28

onlyif mysql # aggregate syntax: 
query II rowsort label-7760
SELECT + MIN( 49 ) * + - COALESCE ( 35, - 61 + 95, 53 ), ( + 86 ) AS col0
----
-1715
86

skipif mysql # not compatible
query II rowsort label-7760
SELECT + MIN ( 49 ) * + - COALESCE ( 35, - 61 + 95, 53 ), ( + 86 ) AS col0
----
-1715
86

onlyif mysql # aggregate syntax: 
query I rowsort label-7761
SELECT ALL MAX( + 49 ) AS col0
----
49

skipif mysql # not compatible
query I rowsort label-7761
SELECT ALL MAX ( + 49 ) AS col0
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7762
SELECT - - 87 * + COALESCE ( - CAST( NULL AS SIGNED ), 84, 97, + COUNT( * ) )
----
7308

skipif mysql # not compatible
query I rowsort label-7762
SELECT - - 87 * + COALESCE ( - CAST ( NULL AS INTEGER ), 84, 97, + COUNT ( * ) )
----
7308

query II rowsort
SELECT DISTINCT - 76 + 68 AS col0, 19 AS col0
----
-8
19

onlyif mysql # aggregate syntax: 
query I rowsort label-7764
SELECT ALL MAX( ALL - 31 )
----
-31

skipif mysql # not compatible
query I rowsort label-7764
SELECT ALL MAX ( ALL - 31 )
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-7765
SELECT DISTINCT + + MIN( DISTINCT 62 ) + 15 + - 62 * + CASE 77 WHEN + 95 THEN + + 32 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7765
SELECT DISTINCT + + MIN ( DISTINCT 62 ) + 15 + - 62 * + CASE 77 WHEN + 95 THEN + + 32 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT NULLIF ( + 50, - 99 ) + - - 16
----
66

query I rowsort
SELECT ALL 41 + + 75
----
116

query I rowsort
SELECT + 64 + - 78 AS col2
----
-14

query I rowsort
SELECT + 70 * - 24 AS col1
----
-1680

query I rowsort
SELECT + ( 74 )
----
74

query I rowsort
SELECT + ( - 31 )
----
-31

query I rowsort
SELECT + COALESCE ( - 41, + - 13 * + + 92 * + 6 )
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-7773
SELECT + 8 * + + SUM( - - 83 ) + - COUNT( * ) AS col2
----
663

skipif mysql # not compatible
query I rowsort label-7773
SELECT + 8 * + + SUM ( - - 83 ) + - COUNT ( * ) AS col2
----
663

onlyif mysql # aggregate syntax: 
query I rowsort label-7774
SELECT ALL - NULLIF ( + CASE + 28 WHEN + - 31 * - 88 THEN 89 ELSE NULL END, + - 10 + COALESCE ( + 53, + COUNT( * ) ) ) * 12 * COUNT( + 87 ) + + 41 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7774
SELECT ALL - NULLIF ( + CASE + 28 WHEN + - 31 * - 88 THEN 89 ELSE NULL END, + - 10 + COALESCE ( + 53, + COUNT ( * ) ) ) * 12 * COUNT ( + 87 ) + + 41 col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7775
SELECT + MAX( + 9 ) + + CAST( + CAST( + + 24 AS SIGNED ) AS SIGNED ) + + + 17 + - 79 * 64 * 24
----
-121294

skipif mysql # not compatible
query I rowsort label-7775
SELECT + MAX ( + 9 ) + + CAST ( + CAST ( + + 24 AS INTEGER ) AS INTEGER ) + + + 17 + - 79 * 64 * 24
----
-121294

query I rowsort
SELECT ( - ( - - 22 ) )
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-7777
SELECT CASE - MIN( - 5 ) WHEN - 70 THEN NULL ELSE - COUNT( * ) * + 36 END * + 3 + 32
----
-76

skipif mysql # not compatible
query I rowsort label-7777
SELECT CASE - MIN ( - 5 ) WHEN - 70 THEN NULL ELSE - COUNT ( * ) * + 36 END * + 3 + 32
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-7778
SELECT DISTINCT 86 * + COUNT( * ) * + - NULLIF ( - + 17, COUNT( * ) ) AS col1
----
1462

skipif mysql # not compatible
query I rowsort label-7778
SELECT DISTINCT 86 * + COUNT ( * ) * + - NULLIF ( - + 17, COUNT ( * ) ) AS col1
----
1462

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7779
SELECT + 51 / 35 * - 36 / + - CAST( NULL AS SIGNED ) + - 69
----
NULL

skipif mysql # not compatible
query I rowsort label-7779
SELECT + 51 / 35 * - 36 / + - CAST ( NULL AS INTEGER ) + - 69
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7780
SELECT - 15 * CAST( NULL AS SIGNED ) * 96 / 22
----
NULL

skipif mysql # not compatible
query I rowsort label-7780
SELECT - 15 * CAST ( NULL AS INTEGER ) * 96 / 22
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7781
SELECT ALL - 72 * + MIN( - 79 )
----
5688

skipif mysql # not compatible
query I rowsort label-7781
SELECT ALL - 72 * + MIN ( - 79 )
----
5688

onlyif mysql # aggregate syntax: 
query I rowsort label-7782
SELECT ALL 33 * COUNT( + 62 ) AS col0
----
33

skipif mysql # not compatible
query I rowsort label-7782
SELECT ALL 33 * COUNT ( + 62 ) AS col0
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7783
SELECT + CAST( - 84 AS SIGNED ) AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-7783
SELECT + CAST ( - 84 AS INTEGER ) AS col0
----
-84

query I rowsort
SELECT + 8 + + 95 AS col0
----
103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7785
SELECT - + 60 * - 14 + - 41 + - + COUNT( * ) DIV + ( 23 ), + 28 + CAST( NULL AS SIGNED ) + - - 85 * - COALESCE ( + - 4, - 92 ) * - 83 + + 91 AS col0
----
799
NULL

skipif mysql # not compatible
query II rowsort label-7785
SELECT - + 60 * - 14 + - 41 + - + COUNT ( * ) / + ( 23 ), + 28 + CAST ( NULL AS INTEGER ) + - - 85 * - COALESCE ( + - 4, - 92 ) * - 83 + + 91 AS col0
----
799
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7786
SELECT ALL - COALESCE ( - 51, + 69 ) DIV + - 14
----
-3

skipif mysql # not compatible
query I rowsort label-7786
SELECT ALL - COALESCE ( - 51, + 69 ) / + - 14
----
-3

onlyif mysql # aggregate syntax: 
query III rowsort label-7787
SELECT ALL + 73, NULLIF ( - 83, + + 71 ) AS col1, + COUNT( * ) * + - 36 AS col0
----
73
-83
-36

skipif mysql # not compatible
query III rowsort label-7787
SELECT ALL + 73, NULLIF ( - 83, + + 71 ) AS col1, + COUNT ( * ) * + - 36 AS col0
----
73
-83
-36

query I rowsort
SELECT COALESCE ( - 5, - 13 )
----
-5

query I rowsort
SELECT - 48 + - + 98 col1
----
-146

onlyif mysql # DIV for integer division: 
query I rowsort label-7790
SELECT ALL - + 69 DIV + - 26
----
2

skipif mysql # not compatible
query I rowsort label-7790
SELECT ALL - + 69 / + - 26
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7791
SELECT - - COUNT( * ) + 80 AS col2
----
81

skipif mysql # not compatible
query I rowsort label-7791
SELECT - - COUNT ( * ) + 80 AS col2
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-7792
SELECT - - 40, NULLIF ( + 25, + NULLIF ( + 99, + 59 ) ) + SUM( + 82 ) AS col2
----
40
107

skipif mysql # not compatible
query II rowsort label-7792
SELECT - - 40, NULLIF ( + 25, + NULLIF ( + 99, + 59 ) ) + SUM ( + 82 ) AS col2
----
40
107

onlyif mysql # aggregate syntax: 
query I rowsort label-7793
SELECT - - 33 * 78 * MIN( ALL + 84 ) AS col2
----
216216

skipif mysql # not compatible
query I rowsort label-7793
SELECT - - 33 * 78 * MIN ( ALL + 84 ) AS col2
----
216216

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7794
SELECT ALL + CAST( NULL AS SIGNED ) / + COUNT( * ) * - 47 * - + ( 3 ) + - - ( + - COUNT( * ) ) + 30 * - - 35
----
NULL

skipif mysql # not compatible
query I rowsort label-7794
SELECT ALL + CAST ( NULL AS INTEGER ) / + COUNT ( * ) * - 47 * - + ( 3 ) + - - ( + - COUNT ( * ) ) + 30 * - - 35
----
NULL

query II rowsort
SELECT 93 AS col0, 95
----
93
95

query I rowsort
SELECT - - ( 61 )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-7797
SELECT ALL + ( - COUNT( * ) ) + + 53
----
52

skipif mysql # not compatible
query I rowsort label-7797
SELECT ALL + ( - COUNT ( * ) ) + + 53
----
52

query I rowsort
SELECT - ( - + 96 ) * + + 27 AS col0
----
2592

onlyif mysql # DIV for integer division: 
query I rowsort label-7799
SELECT ALL 90 DIV + - 22 + 63 DIV + - 95 AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-7799
SELECT ALL 90 / + - 22 + 63 / + - 95 AS col1
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-7800
SELECT DISTINCT + 45 + - 64 * COUNT( - 50 ) - + 32 - - 10 + - + 68 * - + 94 * - 92
----
-588105

skipif mysql # not compatible
query I rowsort label-7800
SELECT DISTINCT + 45 + - 64 * COUNT ( - 50 ) - + 32 - - 10 + - + 68 * - + 94 * - 92
----
-588105

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7801
SELECT - 17 - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7801
SELECT - 17 - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 23 - 39 * + + 85
----
-3338

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7803
SELECT - COALESCE ( 0, - 11 * 13 * + - 33, + 93 DIV + 84 DIV - CAST( NULL AS SIGNED ) DIV + - 55 DIV + 59 )
----
0

skipif mysql # not compatible
query I rowsort label-7803
SELECT - COALESCE ( 0, - 11 * 13 * + - 33, + 93 / + 84 / - CAST ( NULL AS INTEGER ) / + - 55 / + 59 )
----
0

query I rowsort
SELECT DISTINCT ( 45 )
----
45

query I rowsort
SELECT ALL ( 40 ) AS col0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-7806
SELECT ALL 87 + + - 69 * + - COALESCE ( - + ( + 9 ), - + COUNT( * ) ) AS col1
----
-534

skipif mysql # not compatible
query I rowsort label-7806
SELECT ALL 87 + + - 69 * + - COALESCE ( - + ( + 9 ), - + COUNT ( * ) ) AS col1
----
-534

query I rowsort
SELECT - 93 * - 47 AS col1
----
4371

onlyif mysql # aggregate syntax: 
query I rowsort label-7808
SELECT + COUNT( * ) + MAX( - - 72 ) + - COUNT( + NULLIF ( - 80, - 94 ) )
----
72

skipif mysql # not compatible
query I rowsort label-7808
SELECT + COUNT ( * ) + MAX ( - - 72 ) + - COUNT ( + NULLIF ( - 80, - 94 ) )
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-7809
SELECT + ( - MAX( ALL 29 ) )
----
-29

skipif mysql # not compatible
query I rowsort label-7809
SELECT + ( - MAX ( ALL 29 ) )
----
-29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7810
SELECT ALL COUNT( 59 ) DIV - 32 - - 60 AS col2
----
60

skipif mysql # not compatible
query I rowsort label-7810
SELECT ALL COUNT ( 59 ) / - 32 - - 60 AS col2
----
60

query I rowsort
SELECT ALL - 76 * 22 AS col0
----
-1672

onlyif mysql # aggregate syntax: 
query I rowsort label-7812
SELECT - MIN( 37 ) * + + 32 + + + 67 col2
----
-1117

skipif mysql # not compatible
query I rowsort label-7812
SELECT - MIN ( 37 ) * + + 32 + + + 67 col2
----
-1117

onlyif mysql # aggregate syntax: 
query I rowsort label-7813
SELECT + SUM( 87 ) AS col1
----
87

skipif mysql # not compatible
query I rowsort label-7813
SELECT + SUM ( 87 ) AS col1
----
87

query II rowsort
SELECT + 57 + + 99 AS col1, CASE - AVG ( ALL + 59 ) WHEN + + 85 THEN - ( + - 66 ) WHEN + + 82 * - ( - 65 ) * - + ( 0 ) THEN NULL ELSE NULL END * 14 + - - 89 + + 21
----
156
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7815
SELECT DISTINCT - COUNT( * ) - + 54 * + COUNT( * ) AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-7815
SELECT DISTINCT - COUNT ( * ) - + 54 * + COUNT ( * ) AS col0
----
-55

query I rowsort
SELECT DISTINCT - COALESCE ( 18, - 4 + + 48 * - 7 * - 3 )
----
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7817
SELECT COALESCE ( + - COUNT( * ), CASE 1 WHEN 19 DIV + 25 * - 81 THEN - SUM( ALL - 47 ) ELSE 37 END, MAX( DISTINCT - 64 ) ) DIV 18
----
0

skipif mysql # not compatible
query I rowsort label-7817
SELECT COALESCE ( + - COUNT ( * ), CASE 1 WHEN 19 / + 25 * - 81 THEN - SUM ( ALL - 47 ) ELSE 37 END, MAX ( DISTINCT - 64 ) ) / 18
----
0

query I rowsort
SELECT ALL 49 * 49 AS col2
----
2401

onlyif mysql # aggregate syntax: 
query II rowsort label-7819
SELECT + 46 * 93 AS col1, COUNT( + - 75 )
----
4278
1

skipif mysql # not compatible
query II rowsort label-7819
SELECT + 46 * 93 AS col1, COUNT ( + - 75 )
----
4278
1

query I rowsort
SELECT ALL - 43 + COALESCE ( - - 0, + + 0 + + - 46 ) * + 17 AS col1
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-7821
SELECT COUNT( 66 ) + + 8 * - ( 32 ) AS col2
----
-255

skipif mysql # not compatible
query I rowsort label-7821
SELECT COUNT ( 66 ) + + 8 * - ( 32 ) AS col2
----
-255

query I rowsort
SELECT - 94 * - 67
----
6298

onlyif mysql # aggregate syntax: 
query I rowsort label-7823
SELECT - ( - - 46 ) * + - 37 + COUNT( * )
----
1703

skipif mysql # not compatible
query I rowsort label-7823
SELECT - ( - - 46 ) * + - 37 + COUNT ( * )
----
1703

query I rowsort
SELECT ALL - - 38 col0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-7825
SELECT ALL 82 + - 98 * + - 99 * 9 * COUNT( + 89 ) col1
----
87400

skipif mysql # not compatible
query I rowsort label-7825
SELECT ALL 82 + - 98 * + - 99 * 9 * COUNT ( + 89 ) col1
----
87400

onlyif mysql # aggregate syntax: 
query I rowsort label-7826
SELECT - 58 * - 51 - - NULLIF ( ( + + 91 ), COUNT( * ) / - 7 * 82 * + 17 ) + + 91 + - COUNT( * ) AS col2
----
3139

skipif mysql # not compatible
query I rowsort label-7826
SELECT - 58 * - 51 - - NULLIF ( ( + + 91 ), COUNT ( * ) / - 7 * 82 * + 17 ) + + 91 + - COUNT ( * ) AS col2
----
3139

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7827
SELECT - ( + + NULLIF ( + - 64, - 96 + + 16 / ( CAST( + 83 AS SIGNED ) ) ) ) AS col0
----
64

skipif mysql # not compatible
query I rowsort label-7827
SELECT - ( + + NULLIF ( + - 64, - 96 + + 16 / ( CAST ( + 83 AS INTEGER ) ) ) ) AS col0
----
64

query I rowsort
SELECT ALL + 16 + - 88 * - 85 * 55 * - 91 col1
----
-37437384

query I rowsort
SELECT - + 80 AS col0
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-7830
SELECT COUNT( * ) + + 81 col1
----
82

skipif mysql # not compatible
query I rowsort label-7830
SELECT COUNT ( * ) + + 81 col1
----
82

query I rowsort
SELECT 73 + + 61 col0
----
134

onlyif mysql # aggregate syntax: 
query I rowsort label-7832
SELECT 16 - + COUNT( * ) * + - COUNT( * ) * 14
----
30

skipif mysql # not compatible
query I rowsort label-7832
SELECT 16 - + COUNT ( * ) * + - COUNT ( * ) * 14
----
30

query I rowsort
SELECT 63 + + + 87 col1
----
150

query I rowsort
SELECT ALL - 7 * + ( + 88 ) * 75
----
-46200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7835
SELECT ALL 82 - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7835
SELECT ALL 82 - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7836
SELECT 79 * - 86 * + 17, COUNT( * ) + CAST( NULL AS SIGNED ) - + 38 AS col2
----
-115498
NULL

skipif mysql # not compatible
query II rowsort label-7836
SELECT 79 * - 86 * + 17, COUNT ( * ) + CAST ( NULL AS INTEGER ) - + 38 AS col2
----
-115498
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-7837
SELECT ALL 77 AS col1, + COUNT( * ) - 89 DIV 46 * - COUNT( * ) * NULLIF ( - 33, 57 * - 72 + 57 ) + MAX( DISTINCT CAST( + + 19 AS SIGNED ) ) col2, COUNT( * ) AS col2
----
77
-13
1

skipif mysql # not compatible
query III rowsort label-7837
SELECT ALL 77 AS col1, + COUNT ( * ) - 89 / 46 * - COUNT ( * ) * NULLIF ( - 33, 57 * - 72 + 57 ) + MAX ( DISTINCT CAST ( + + 19 AS INTEGER ) ) col2, COUNT ( * ) AS col2
----
77
-13
1

query I rowsort
SELECT DISTINCT + 62 - + 92 * + ( + - 24 ) AS col0
----
2270

query II rowsort
SELECT 29, - 61 AS col1
----
29
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-7840
SELECT 98 + + 83 * COUNT( * ) + - - 26
----
207

skipif mysql # not compatible
query I rowsort label-7840
SELECT 98 + + 83 * COUNT ( * ) + - - 26
----
207

onlyif mysql # aggregate syntax: 
query I rowsort label-7841
SELECT ALL + 45 - - COUNT( * ) AS col0
----
46

skipif mysql # not compatible
query I rowsort label-7841
SELECT ALL + 45 - - COUNT ( * ) AS col0
----
46

query II rowsort
SELECT 37 AS col2, 66
----
37
66

query I rowsort
SELECT 78 * 68
----
5304

query I rowsort
SELECT 14 * 11
----
154

query I rowsort
SELECT 85 + + 92
----
177

query II rowsort
SELECT 53 AS col1, 15
----
53
15

onlyif mysql # aggregate syntax: 
query I rowsort label-7847
SELECT 94 + ( - 92 ) - - + COALESCE ( - COUNT( 14 ), 68 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7847
SELECT 94 + ( - 92 ) - - + COALESCE ( - COUNT ( 14 ), 68 ) AS col2
----
1

query I rowsort
SELECT ALL + ( - 4 ) * 54 * + 88 * + 2 AS col0
----
-38016

query I rowsort
SELECT 4 * + 12 AS col0
----
48

query I rowsort
SELECT - 55 * + + 95 + + 18 col1
----
-5207

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7851
SELECT DISTINCT NULLIF ( + 2, - 98 * - - 30 + ( COUNT( * ) ) * 0 * - COUNT( * ) * 89 * - CAST( + 13 AS SIGNED ) + + 14 + 41 + NULLIF ( 77, - ( + 73 ) ) + + COALESCE ( + 32, - COALESCE ( + 43, - NULLIF ( + 76, + MAX( DISTINCT 46 ) - + 72 * - 20 * 76 * - COUNT( * ) * - 69 * 99 + - 43 ), 73 ), - COUNT( * ) ) + 38 * 46 ) * COUNT( * ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-7851
SELECT DISTINCT NULLIF ( + 2, - 98 * - - 30 + ( COUNT ( * ) ) * 0 * - COUNT ( * ) * 89 * - CAST ( + 13 AS INTEGER ) + + 14 + 41 + NULLIF ( 77, - ( + 73 ) ) + + COALESCE ( + 32, - COALESCE ( + 43, - NULLIF ( + 76, + MAX ( DISTINCT 46 ) - + 72 * - 20 * 76 * - COUNT ( * ) * - 69 * 99 + - 43 ), 73 ), - COUNT ( * ) ) + 38 * 46 ) * COUNT ( * ) AS col2
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-7852
SELECT DISTINCT + 55 DIV + 73
----
0

skipif mysql # not compatible
query I rowsort label-7852
SELECT DISTINCT + 55 / + 73
----
0

query I rowsort
SELECT 94 * - 93
----
-8742

onlyif mysql # aggregate syntax: 
query II rowsort label-7854
SELECT COUNT( * ) + - - 31 * - COUNT( * ) AS col2, + 13 * - 4 * - 87
----
-30
4524

skipif mysql # not compatible
query II rowsort label-7854
SELECT COUNT ( * ) + - - 31 * - COUNT ( * ) AS col2, + 13 * - 4 * - 87
----
-30
4524

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7855
SELECT 54 + + + COALESCE ( 16, + COALESCE ( + 81, + - 64 + + CAST( + + 79 AS SIGNED ), + 5 ) + + 23 - - - 9 * CAST( + 63 AS SIGNED ) ) AS col2
----
70

skipif mysql # not compatible
query I rowsort label-7855
SELECT 54 + + + COALESCE ( 16, + COALESCE ( + 81, + - 64 + + CAST ( + + 79 AS INTEGER ), + 5 ) + + 23 - - - 9 * CAST ( + 63 AS INTEGER ) ) AS col2
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-7856
SELECT DISTINCT + COUNT( * ) * + - 70 col1
----
-70

skipif mysql # not compatible
query I rowsort label-7856
SELECT DISTINCT + COUNT ( * ) * + - 70 col1
----
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7857
SELECT - 6 * + 83 + + 26 + + 21 * CAST( NULL AS SIGNED ) * - 7 + - + 46
----
NULL

skipif mysql # not compatible
query I rowsort label-7857
SELECT - 6 * + 83 + + 26 + + 21 * CAST ( NULL AS INTEGER ) * - 7 + - + 46
----
NULL

query I rowsort
SELECT 44 - - + 63 + + 49
----
156

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7859
SELECT ( + ( - NULLIF ( + COUNT( * ), 7 + AVG ( DISTINCT - 91 ) ) ) ) DIV - + 79 + - 69
----
-69

skipif mysql # not compatible
query I rowsort label-7859
SELECT ( + ( - NULLIF ( + COUNT ( * ), 7 + AVG ( DISTINCT - 91 ) ) ) ) / - + 79 + - 69
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7860
SELECT ALL + 72 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7860
SELECT ALL + 72 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7861
SELECT + - 10 * - + 50 - - - 63 * + + COUNT( * ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7861
SELECT + - 10 * - + 50 - - - 63 * + + COUNT ( * ) * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + - 85 + 15 AS col2
----
-70

query I rowsort
SELECT ALL ( + - 49 ) + + - 14
----
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-7864
SELECT 39 DIV - 20
----
-1

skipif mysql # not compatible
query I rowsort label-7864
SELECT 39 / - 20
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7865
SELECT ALL + NULLIF ( - 96, 42 * 19 + + 12 ) + 61 DIV ( COUNT( DISTINCT - 48 ) ) AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-7865
SELECT ALL + NULLIF ( - 96, 42 * 19 + + 12 ) + 61 / ( COUNT ( DISTINCT - 48 ) ) AS col1
----
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7866
SELECT DISTINCT + 89 DIV 56 * + COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7866
SELECT DISTINCT + 89 / 56 * + COUNT ( * ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7867
SELECT - 31 * - - MAX( DISTINCT + + ( + 27 ) ) + - + 74 AS col1
----
-911

skipif mysql # not compatible
query I rowsort label-7867
SELECT - 31 * - - MAX ( DISTINCT + + ( + 27 ) ) + - + 74 AS col1
----
-911

query I rowsort
SELECT 62 + 28
----
90

query I rowsort
SELECT + 86 * - + 72
----
-6192

query III rowsort
SELECT - 97 AS col0, - 84 * + + 10, - + 58 AS col2
----
-97
-840
-58

query I rowsort
SELECT 18 * - 20 + 87 + + + ( + 27 ) + - + 66 + + 87 * + + 71 AS col2
----
5865

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7872
SELECT ALL 16, - COUNT( * ) - 42 - MAX( 89 ) DIV + 79 col2
----
16
-44

skipif mysql # not compatible
query II rowsort label-7872
SELECT ALL 16, - COUNT ( * ) - 42 - MAX ( 89 ) / + 79 col2
----
16
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-7873
SELECT DISTINCT 41 - - ( + - 47 ) DIV + 36 AS col2
----
40

skipif mysql # not compatible
query I rowsort label-7873
SELECT DISTINCT 41 - - ( + - 47 ) / + 36 AS col2
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-7874
SELECT ( - ( - COUNT( + - ( - 66 ) ) ) ) * + + 83
----
83

skipif mysql # not compatible
query I rowsort label-7874
SELECT ( - ( - COUNT ( + - ( - 66 ) ) ) ) * + + 83
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7875
SELECT CAST( - + 87 AS SIGNED ) + + - 73
----
-160

skipif mysql # not compatible
query I rowsort label-7875
SELECT CAST ( - + 87 AS INTEGER ) + + - 73
----
-160

query II rowsort
SELECT 1, - 47 + + + 11 AS col0
----
1
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-7877
SELECT 71, - COUNT( * ) AS col1
----
71
-1

skipif mysql # not compatible
query II rowsort label-7877
SELECT 71, - COUNT ( * ) AS col1
----
71
-1

query I rowsort
SELECT ( - + 3 ) - 16 AS col2
----
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7879
SELECT ALL COUNT( * ) DIV NULLIF ( - 50, - 3 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7879
SELECT ALL COUNT ( * ) / NULLIF ( - 50, - 3 ) AS col2
----
0

query II rowsort
SELECT DISTINCT 48, 78 AS col2
----
48
78

query II rowsort
SELECT 14 AS col0, - 29 AS col2
----
14
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-7882
SELECT ALL + 68 * + SUM( DISTINCT + NULLIF ( 40, + 49 * + - 86 * - 55 ) )
----
2720

skipif mysql # not compatible
query I rowsort label-7882
SELECT ALL + 68 * + SUM ( DISTINCT + NULLIF ( 40, + 49 * + - 86 * - 55 ) )
----
2720

onlyif mysql # DIV for integer division: 
query I rowsort label-7883
SELECT + 68 DIV + + 83
----
0

skipif mysql # not compatible
query I rowsort label-7883
SELECT + 68 / + + 83
----
0

query I rowsort
SELECT - 74 * + 70
----
-5180

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7885
SELECT + NULLIF ( 29, - + ( CAST( NULL AS SIGNED ) ) )
----
29

skipif mysql # not compatible
query I rowsort label-7885
SELECT + NULLIF ( 29, - + ( CAST ( NULL AS INTEGER ) ) )
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-7886
SELECT CASE NULLIF ( - 51, - 50 ) WHEN + 73 THEN NULL WHEN 0 + - CASE WHEN 56 IS NOT NULL OR NOT + COUNT( * ) + COUNT( * ) * + + 79 IN ( - + 87 + - ( - - 93 ) * 56 + - MAX( DISTINCT 48 ) * - - 90 + - 57 * - COALESCE ( + - 87, + 33, 66, 77 + - 94 ), + ( - COALESCE ( + 41, 26 * - 3 + 66 ) ) * - 58 + 46 * + ( CASE - 58 WHEN + 11 THEN 62 / 88 + - 82 * - 35 ELSE NULL END - 78 ) ) THEN 93 + AVG ( DISTINCT 83 ) ELSE 63 END THEN 18 WHEN - MAX( DISTINCT 11 ) + 59 THEN NULL ELSE - 18 * 18 END AS col2
----
-324

skipif mysql # not compatible
query I rowsort label-7886
SELECT CASE NULLIF ( - 51, - 50 ) WHEN + 73 THEN NULL WHEN 0 + - CASE WHEN 56 IS NOT NULL OR NOT + COUNT ( * ) + COUNT ( * ) * + + 79 IN ( - + 87 + - ( - - 93 ) * 56 + - MAX ( DISTINCT 48 ) * - - 90 + - 57 * - COALESCE ( + - 87, + 33, 66, 77 + - 94 ), + ( - COALESCE ( + 41, 26 * - 3 + 66 ) ) * - 58 + 46 * + ( CASE - 58 WHEN + 11 THEN 62 / 88 + - 82 * - 35 ELSE NULL END - 78 ) ) THEN 93 + AVG ( DISTINCT 83 ) ELSE 63 END THEN 18 WHEN - MAX ( DISTINCT 11 ) + 59 THEN NULL ELSE - 18 * 18 END AS col2
----
-324

query I rowsort
SELECT - 50 * - - 99 AS col1
----
-4950

onlyif mysql # aggregate syntax: 
query I rowsort label-7888
SELECT ALL + 0 * SUM( + + 19 ) * - 59 + + COUNT( * ) + + 78 AS col2
----
79

skipif mysql # not compatible
query I rowsort label-7888
SELECT ALL + 0 * SUM ( + + 19 ) * - 59 + + COUNT ( * ) + + 78 AS col2
----
79

onlyif mysql # aggregate syntax: 
query II rowsort label-7889
SELECT COALESCE ( - COUNT( * ), COUNT( * ) * + - 75 ) AS col0, + 98
----
-1
98

skipif mysql # not compatible
query II rowsort label-7889
SELECT COALESCE ( - COUNT ( * ), COUNT ( * ) * + - 75 ) AS col0, + 98
----
-1
98

onlyif mysql # DIV for integer division: 
query I rowsort label-7890
SELECT - NULLIF ( + 72, 62 + - 37 ) DIV 21 DIV - 67 + + + 85 AS col0
----
85

skipif mysql # not compatible
query I rowsort label-7890
SELECT - NULLIF ( + 72, 62 + - 37 ) / 21 / - 67 + + + 85 AS col0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-7891
SELECT ALL + + ( - 92 ) * - 71 + ( + + MIN( - 3 ) ) + - COUNT( * ) col1
----
6528

skipif mysql # not compatible
query I rowsort label-7891
SELECT ALL + + ( - 92 ) * - 71 + ( + + MIN ( - 3 ) ) + - COUNT ( * ) col1
----
6528

query II rowsort
SELECT DISTINCT + + 33 AS col1, 86 AS col0
----
33
86

query I rowsort
SELECT DISTINCT + + 49 * 12 * + + 6 col0
----
3528

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7894
SELECT ALL 99 * + - 46 * + + 74 + - 79 + COUNT( * ) DIV + - COUNT( * ) + + 3
----
-337073

skipif mysql # not compatible
query I rowsort label-7894
SELECT ALL 99 * + - 46 * + + 74 + - 79 + COUNT ( * ) / + - COUNT ( * ) + + 3
----
-337073

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7895
SELECT 69 * + - CAST( - + 21 AS SIGNED ) - - 38
----
1487

skipif mysql # not compatible
query I rowsort label-7895
SELECT 69 * + - CAST ( - + 21 AS INTEGER ) - - 38
----
1487

query II rowsort
SELECT + + 61, 42 AS col1
----
61
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7897
SELECT + 40 * + - 92, MAX( + CAST( 85 AS SIGNED ) ) AS col1
----
-3680
85

skipif mysql # not compatible
query II rowsort label-7897
SELECT + 40 * + - 92, MAX ( + CAST ( 85 AS INTEGER ) ) AS col1
----
-3680
85

query I rowsort
SELECT - 83 + - 22
----
-105

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7899
SELECT DISTINCT - COUNT( * ) DIV + 36 * - 34 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7899
SELECT DISTINCT - COUNT ( * ) / + 36 * - 34 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7900
SELECT DISTINCT + 75 * - - 76 - NULLIF ( + 34, 2 ) DIV + ( - ( - CAST( - 50 AS SIGNED ) ) ) AS col2
----
5700

skipif mysql # not compatible
query I rowsort label-7900
SELECT DISTINCT + 75 * - - 76 - NULLIF ( + 34, 2 ) / + ( - ( - CAST ( - 50 AS INTEGER ) ) ) AS col2
----
5700

query II rowsort
SELECT ALL 64 AS col0, - 10 * - - 97
----
64
-970

query II rowsort
SELECT ALL 64 * - 18, - 58 AS col2
----
-1152
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7903
SELECT + 70 - + SUM( ALL - + 38 ) DIV - 98
----
70

skipif mysql # not compatible
query I rowsort label-7903
SELECT + 70 - + SUM ( ALL - + 38 ) / - 98
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-7904
SELECT ALL - 44 / - CASE + 42 WHEN - 71 + SUM( - 77 ) THEN - 23 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7904
SELECT ALL - 44 / - CASE + 42 WHEN - 71 + SUM ( - 77 ) THEN - 23 END
----
NULL

query I rowsort
SELECT - 82 * + 0 * - + 83 * 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7906
SELECT + 88 * - - ( + + ( COUNT( * ) ) )
----
88

skipif mysql # not compatible
query I rowsort label-7906
SELECT + 88 * - - ( + + ( COUNT ( * ) ) )
----
88

query II rowsort
SELECT + 64 * - 92, - 27 col1
----
-5888
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7908
SELECT + CAST( NULL AS SIGNED ) + MAX( 74 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7908
SELECT + CAST ( NULL AS INTEGER ) + MAX ( 74 ) AS col2
----
NULL

query I rowsort
SELECT ALL NULLIF ( - ( + + 81 ), + + 94 ) * 50 col1
----
-4050

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7910
SELECT + CAST( NULL AS SIGNED ) * + 60 AS col1, 84 + - COUNT( * ) * + + 58
----
NULL
26

skipif mysql # not compatible
query II rowsort label-7910
SELECT + CAST ( NULL AS INTEGER ) * + 60 AS col1, 84 + - COUNT ( * ) * + + 58
----
NULL
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7911
SELECT ALL CAST( + NULLIF ( + 34, + 31 ) AS SIGNED )
----
34

skipif mysql # not compatible
query I rowsort label-7911
SELECT ALL CAST ( + NULLIF ( + 34, + 31 ) AS INTEGER )
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7912
SELECT - NULLIF ( 39, + 47 + CAST( NULL AS SIGNED ) )
----
-39

skipif mysql # not compatible
query I rowsort label-7912
SELECT - NULLIF ( 39, + 47 + CAST ( NULL AS INTEGER ) )
----
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7913
SELECT ALL COUNT( * ) + - 3 DIV + ( + 9 ) + + 33 * - NULLIF ( + + 36, + 71 * COUNT( * ) ) AS col1
----
-1187

skipif mysql # not compatible
query I rowsort label-7913
SELECT ALL COUNT ( * ) + - 3 / + ( + 9 ) + + 33 * - NULLIF ( + + 36, + 71 * COUNT ( * ) ) AS col1
----
-1187

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7914
SELECT ALL CASE - COUNT( * ) WHEN - 32 / + 82 THEN + CAST( + 67 AS SIGNED ) * 62 + ( + COALESCE ( 71, 4 - + COUNT( CASE 68 WHEN + 54 THEN - 71 + - 67 ELSE NULL END ) - + 48 * + + 70 ) ) + - 59 END * - + ( + 76 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7914
SELECT ALL CASE - COUNT ( * ) WHEN - 32 / + 82 THEN + CAST ( + 67 AS INTEGER ) * 62 + ( + COALESCE ( 71, 4 - + COUNT ( CASE 68 WHEN + 54 THEN - 71 + - 67 ELSE NULL END ) - + 48 * + + 70 ) ) + - 59 END * - + ( + 76 ) AS col0
----
NULL

query I rowsort
SELECT + 98 * - 66 * + 49
----
-316932

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7916
SELECT + 57 + + - 88 AS col1, + COUNT( * ) + 85 + + COALESCE ( + 98, + SUM( ALL + 1 ) + - 55 + - - 49 * 45 * + - MAX( + 77 ) * + - CAST( NULL AS SIGNED ) * 19 ) * 59 AS col0
----
-31
5868

skipif mysql # not compatible
query II rowsort label-7916
SELECT + 57 + + - 88 AS col1, + COUNT ( * ) + 85 + + COALESCE ( + 98, + SUM ( ALL + 1 ) + - 55 + - - 49 * 45 * + - MAX ( + 77 ) * + - CAST ( NULL AS INTEGER ) * 19 ) * 59 AS col0
----
-31
5868

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7917
SELECT - NULLIF ( + ( - + CAST( NULL AS SIGNED ) ), - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7917
SELECT - NULLIF ( + ( - + CAST ( NULL AS INTEGER ) ), - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT ALL 56 + + 72
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-7919
SELECT + 38 + - COUNT( * )
----
37

skipif mysql # not compatible
query I rowsort label-7919
SELECT + 38 + - COUNT ( * )
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-7920
SELECT DISTINCT ( - - COUNT( * ) ) + - + NULLIF ( - + 29, 90 )
----
30

skipif mysql # not compatible
query I rowsort label-7920
SELECT DISTINCT ( - - COUNT ( * ) ) + - + NULLIF ( - + 29, 90 )
----
30

query I rowsort
SELECT - 51 * - + 62 + - 75 AS col2
----
3087

onlyif mysql # DIV for integer division: 
query I rowsort label-7922
SELECT ALL - 94 DIV + 29 + - ( + 24 ) + - 91 AS col2
----
-118

skipif mysql # not compatible
query I rowsort label-7922
SELECT ALL - 94 / + 29 + - ( + 24 ) + - 91 AS col2
----
-118

onlyif mysql # aggregate syntax: 
query I rowsort label-7923
SELECT - COALESCE ( + COUNT( * ), - + 18 + - 76, + - 60 ) * + 56 + + 45 * 21 * + MIN( + 13 ) * 5 * 53
----
3255469

skipif mysql # not compatible
query I rowsort label-7923
SELECT - COALESCE ( + COUNT ( * ), - + 18 + - 76, + - 60 ) * + 56 + + 45 * 21 * + MIN ( + 13 ) * 5 * 53
----
3255469

onlyif mysql # DIV for integer division: 
query I rowsort label-7924
SELECT - + 0 * - - ( + 46 ) DIV 36
----
0

skipif mysql # not compatible
query I rowsort label-7924
SELECT - + 0 * - - ( + 46 ) / 36
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7925
SELECT ALL + SUM( ALL + COALESCE ( + 71, ( + + 63 ), + - 86 + + 52 - + - 23 ) ) * 37
----
2627

skipif mysql # not compatible
query I rowsort label-7925
SELECT ALL + SUM ( ALL + COALESCE ( + 71, ( + + 63 ), + - 86 + + 52 - + - 23 ) ) * 37
----
2627

onlyif mysql # aggregate syntax: 
query I rowsort label-7926
SELECT ALL - 20 * + MIN( + - 79 )
----
1580

skipif mysql # not compatible
query I rowsort label-7926
SELECT ALL - 20 * + MIN ( + - 79 )
----
1580

onlyif mysql # DIV for integer division: 
query I rowsort label-7927
SELECT ALL + - 69 DIV + 76 - - + 92 DIV 56 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7927
SELECT ALL + - 69 / + 76 - - + 92 / 56 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7928
SELECT - - COALESCE ( - 15, - 95 ) * - COALESCE ( - 98, + + 42 + + + 80 + - 88 + - 89 * 16 ) + + COUNT( * ) - 50
----
-1519

skipif mysql # not compatible
query I rowsort label-7928
SELECT - - COALESCE ( - 15, - 95 ) * - COALESCE ( - 98, + + 42 + + + 80 + - 88 + - 89 * 16 ) + + COUNT ( * ) - 50
----
-1519

query I rowsort
SELECT 23 * - 54 + - 40 * - 67 AS col1
----
1438

query I rowsort
SELECT ALL + + ( + - ( + + 55 ) ) AS col2
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-7931
SELECT - NULLIF ( + COUNT( * ), COALESCE ( + 14, - 53 + + - 65 + - 20 ) - 97 * - + 79 )
----
-1

skipif mysql # not compatible
query I rowsort label-7931
SELECT - NULLIF ( + COUNT ( * ), COALESCE ( + 14, - 53 + + - 65 + - 20 ) - 97 * - + 79 )
----
-1

query I rowsort
SELECT DISTINCT + 28 * - 78 - + 22 AS col1
----
-2206

query I rowsort
SELECT 82 * - 83 + - - 78 * + - 77 * 73 AS col1
----
-445244

query I rowsort
SELECT ALL + - 73 col0
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-7935
SELECT ALL + SUM( + 5 )
----
5

skipif mysql # not compatible
query I rowsort label-7935
SELECT ALL + SUM ( + 5 )
----
5

query I rowsort
SELECT - 47 + 28 AS col2
----
-19

query I rowsort
SELECT ALL - 49 * + 58 AS col2
----
-2842

onlyif mysql # aggregate syntax: 
query II rowsort label-7938
SELECT NULLIF ( + CASE + 68 WHEN - AVG ( - 2 ) THEN + + COUNT( * ) ELSE 59 END, 47 ), 80 AS col2
----
59
80

skipif mysql # not compatible
query II rowsort label-7938
SELECT NULLIF ( + CASE + 68 WHEN - AVG ( - 2 ) THEN + + COUNT ( * ) ELSE 59 END, 47 ), 80 AS col2
----
59
80

query I rowsort
SELECT - 64 * + + ( 33 ) AS col0
----
-2112

query I rowsort
SELECT ALL + ( - 10 ) AS col0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-7941
SELECT DISTINCT - COUNT( * ) * 41
----
-41

skipif mysql # not compatible
query I rowsort label-7941
SELECT DISTINCT - COUNT ( * ) * 41
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-7942
SELECT 85 + - 54 + + - 8 * - + NULLIF ( + 91, + + COUNT( 55 ) ) AS col1
----
759

skipif mysql # not compatible
query I rowsort label-7942
SELECT 85 + - 54 + + - 8 * - + NULLIF ( + 91, + + COUNT ( 55 ) ) AS col1
----
759

query I rowsort
SELECT 23 + - 88 AS col2
----
-65

query II rowsort
SELECT ALL 27 AS col2, - 48 - ( + 58 )
----
27
-106

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7945
SELECT 94 DIV COALESCE ( 50, - ( + 47 ) * - MIN( ALL - - 44 ) * + - CAST( NULL AS SIGNED ) + + + 84 + - - 99 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7945
SELECT 94 / COALESCE ( 50, - ( + 47 ) * - MIN ( ALL - - 44 ) * + - CAST ( NULL AS INTEGER ) + + + 84 + - - 99 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7946
SELECT DISTINCT - 32 * SUM( DISTINCT - 54 )
----
1728

skipif mysql # not compatible
query I rowsort label-7946
SELECT DISTINCT - 32 * SUM ( DISTINCT - 54 )
----
1728

query II rowsort
SELECT - 37, 19 col2
----
-37
19

onlyif mysql # DIV for integer division: 
query I rowsort label-7948
SELECT DISTINCT - 96 DIV - 29 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-7948
SELECT DISTINCT - 96 / - 29 AS col0
----
3

query I rowsort
SELECT ALL - 87 + + 87
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7950
SELECT 10 DIV - 30 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7950
SELECT 10 / - 30 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7951
SELECT 19 * - 25 * 34 * 81, CAST( + 76 AS SIGNED ) * COUNT( * ) * + CASE + - 47 WHEN - 80 THEN - - 92 END AS col2
----
-1308150
NULL

skipif mysql # not compatible
query II rowsort label-7951
SELECT 19 * - 25 * 34 * 81, CAST ( + 76 AS INTEGER ) * COUNT ( * ) * + CASE + - 47 WHEN - 80 THEN - - 92 END AS col2
----
-1308150
NULL

query I rowsort
SELECT 55 + + 67 - 37 * + 18 AS col2
----
-544

query I rowsort
SELECT DISTINCT 68 * - - 75
----
5100

onlyif mysql # aggregate syntax: 
query I rowsort label-7954
SELECT ALL - COALESCE ( COUNT( * ), - 37 + + 35 ) + - 0 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7954
SELECT ALL - COALESCE ( COUNT ( * ), - 37 + + 35 ) + - 0 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7955
SELECT DISTINCT SUM( + 41 )
----
41

skipif mysql # not compatible
query I rowsort label-7955
SELECT DISTINCT SUM ( + 41 )
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-7956
SELECT ALL COUNT( - 53 ) + + SUM( + 72 )
----
73

skipif mysql # not compatible
query I rowsort label-7956
SELECT ALL COUNT ( - 53 ) + + SUM ( + 72 )
----
73

query I rowsort
SELECT 75 * + - 56
----
-4200

query I rowsort
SELECT DISTINCT + 65 * + + 32
----
2080

onlyif mysql # aggregate syntax: 
query I rowsort label-7959
SELECT 37 - 69 + - 2 * - - ( COUNT( * ) ) * - 25 AS col1
----
18

skipif mysql # not compatible
query I rowsort label-7959
SELECT 37 - 69 + - 2 * - - ( COUNT ( * ) ) * - 25 AS col1
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-7960
SELECT COUNT( 7 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7960
SELECT COUNT ( 7 ) AS col0
----
1

query II rowsort
SELECT DISTINCT - 88 AS col2, - 78 AS col0
----
-88
-78

onlyif mysql # aggregate syntax: 
query II rowsort label-7962
SELECT ALL - 37, CASE - COUNT( * ) WHEN + - 25 + + + 14 * - 27 + 8 THEN 61 * + 67 END / + COUNT( + ( 59 ) ) / 69 * - 58 * - COUNT( * ) AS col0
----
-37
NULL

skipif mysql # not compatible
query II rowsort label-7962
SELECT ALL - 37, CASE - COUNT ( * ) WHEN + - 25 + + + 14 * - 27 + 8 THEN 61 * + 67 END / + COUNT ( + ( 59 ) ) / 69 * - 58 * - COUNT ( * ) AS col0
----
-37
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7963
SELECT DISTINCT - 39 - + - COUNT( - 2 ) * + 67 AS col0
----
28

skipif mysql # not compatible
query I rowsort label-7963
SELECT DISTINCT - 39 - + - COUNT ( - 2 ) * + 67 AS col0
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7964
SELECT ALL - - 40 * 40 + COALESCE ( - 94, - 25 + - MAX( + 20 ) + CAST( - 44 AS SIGNED ) - - - CAST( NULL AS SIGNED ) - - 66 * + 65 * - - 34 DIV + ( - 69 ) - + + 24 * CAST( 23 AS SIGNED ) + - CASE 18 WHEN 31 + - 1 THEN - + SUM( ALL - 75 ) WHEN COUNT( * ) THEN NULL END * + - 46 - COUNT( * ) + + 68 * - CASE + ( - 94 ) WHEN + 47 + - 12 THEN 47 END ) * 98 AS col2
----
-7612

skipif mysql # not compatible
query I rowsort label-7964
SELECT ALL - - 40 * 40 + COALESCE ( - 94, - 25 + - MAX ( + 20 ) + CAST ( - 44 AS INTEGER ) - - - CAST ( NULL AS INTEGER ) - - 66 * + 65 * - - 34 / + ( - 69 ) - + + 24 * CAST ( 23 AS INTEGER ) + - CASE 18 WHEN 31 + - 1 THEN - + SUM ( ALL - 75 ) WHEN COUNT ( * ) THEN NULL END * + - 46 - COUNT ( * ) + + 68 * - CASE + ( - 94 ) WHEN + 47 + - 12 THEN 47 END ) * 98 AS col2
----
-7612

onlyif mysql # aggregate syntax: 
query I rowsort label-7965
SELECT DISTINCT - COUNT( ALL 60 ) * - - 13 * + 41
----
-533

skipif mysql # not compatible
query I rowsort label-7965
SELECT DISTINCT - COUNT ( ALL 60 ) * - - 13 * + 41
----
-533

query I rowsort
SELECT 3 * + 56 AS col0
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-7967
SELECT - COUNT( * ) * + - 10 + - 71 * + - ( 46 ) + 68
----
3344

skipif mysql # not compatible
query I rowsort label-7967
SELECT - COUNT ( * ) * + - 10 + - 71 * + - ( 46 ) + 68
----
3344

query I rowsort
SELECT 79 + - + 76 + 81 AS col2
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-7969
SELECT ALL 93 + - COUNT( * )
----
92

skipif mysql # not compatible
query I rowsort label-7969
SELECT ALL 93 + - COUNT ( * )
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-7970
SELECT ALL + ( + 10 ) + COUNT( * ) + 71 * - 97 AS col0
----
-6876

skipif mysql # not compatible
query I rowsort label-7970
SELECT ALL + ( + 10 ) + COUNT ( * ) + 71 * - 97 AS col0
----
-6876

query I rowsort
SELECT 13 - + 9 AS col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7972
SELECT DISTINCT - 27 + 40 + - ( - COUNT( * ) ) AS col0
----
14

skipif mysql # not compatible
query I rowsort label-7972
SELECT DISTINCT - 27 + 40 + - ( - COUNT ( * ) ) AS col0
----
14

query I rowsort
SELECT DISTINCT + 73 + ( + - 53 ) * - - 52 AS col1
----
-2683

query I rowsort
SELECT ALL + 55 + + 51 AS col2
----
106

query I rowsort
SELECT DISTINCT - ( 60 ) * 64 AS col2
----
-3840

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7976
SELECT 13 + + 86 - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7976
SELECT 13 + + 86 - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7977
SELECT 22 + - 61 DIV 44 - - + 13 * - + 10
----
-109

skipif mysql # not compatible
query I rowsort label-7977
SELECT 22 + - 61 / 44 - - + 13 * - + 10
----
-109

query I rowsort
SELECT ALL - 56 + 12 + + 8 * ( 43 )
----
300

onlyif mysql # DIV for integer division: 
query I rowsort label-7979
SELECT DISTINCT 20 DIV 1 AS col0
----
20

skipif mysql # not compatible
query I rowsort label-7979
SELECT DISTINCT 20 / 1 AS col0
----
20

onlyif mysql # DIV for integer division: 
query II rowsort label-7980
SELECT ALL + + 76 DIV - + 78, 12 * + 29 - 32 AS col2
----
0
316

skipif mysql # not compatible
query II rowsort label-7980
SELECT ALL + + 76 / - + 78, 12 * + 29 - 32 AS col2
----
0
316

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7981
SELECT 23 + - + CASE + + ( - 34 ) WHEN + 17 / + 21 * + + 26 THEN + MIN( ALL - + ( + CAST( 61 AS SIGNED ) ) ) WHEN + 75 THEN NULL ELSE 76 END
----
-53

skipif mysql # not compatible
query I rowsort label-7981
SELECT 23 + - + CASE + + ( - 34 ) WHEN + 17 / + 21 * + + 26 THEN + MIN ( ALL - + ( + CAST ( 61 AS INTEGER ) ) ) WHEN + 75 THEN NULL ELSE 76 END
----
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-7982
SELECT DISTINCT + 45 DIV - - 32
----
1

skipif mysql # not compatible
query I rowsort label-7982
SELECT DISTINCT + 45 / - - 32
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7983
SELECT 69 + - COUNT( * )
----
68

skipif mysql # not compatible
query I rowsort label-7983
SELECT 69 + - COUNT ( * )
----
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7984
SELECT 13 - + + COUNT( * ) DIV - SUM( DISTINCT + 80 )
----
13

skipif mysql # not compatible
query I rowsort label-7984
SELECT 13 - + + COUNT ( * ) / - SUM ( DISTINCT + 80 )
----
13

query I rowsort
SELECT - 36 + 18
----
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-7986
SELECT COUNT( * ) * ( + + 0 ) + - - 53 AS col1, - 32 AS col1
----
53
-32

skipif mysql # not compatible
query II rowsort label-7986
SELECT COUNT ( * ) * ( + + 0 ) + - - 53 AS col1, - 32 AS col1
----
53
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-7987
SELECT ALL MAX( DISTINCT 40 ) * 59
----
2360

skipif mysql # not compatible
query I rowsort label-7987
SELECT ALL MAX ( DISTINCT 40 ) * 59
----
2360

onlyif mysql # aggregate syntax: 
query I rowsort label-7988
SELECT MIN( - 89 ) + - 77
----
-166

skipif mysql # not compatible
query I rowsort label-7988
SELECT MIN ( - 89 ) + - 77
----
-166

onlyif mysql # aggregate syntax: 
query I rowsort label-7989
SELECT DISTINCT - - 71 * + COUNT( * ) - - COALESCE ( + 52, 83 + - + 30 ) - + - ( - 19 )
----
104

skipif mysql # not compatible
query I rowsort label-7989
SELECT DISTINCT - - 71 * + COUNT ( * ) - - COALESCE ( + 52, 83 + - + 30 ) - + - ( - 19 )
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-7990
SELECT ALL - MAX( ALL 20 )
----
-20

skipif mysql # not compatible
query I rowsort label-7990
SELECT ALL - MAX ( ALL 20 )
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7991
SELECT + MAX( ALL - + ( + + CAST( 82 AS SIGNED ) ) ) * 46 + 39
----
-3733

skipif mysql # not compatible
query I rowsort label-7991
SELECT + MAX ( ALL - + ( + + CAST ( 82 AS INTEGER ) ) ) * 46 + 39
----
-3733

onlyif mysql # DIV for integer division: 
query II rowsort label-7992
SELECT 31 + - 44 DIV - 97 * 45 AS col2, + 37 AS col2
----
31
37

skipif mysql # not compatible
query II rowsort label-7992
SELECT 31 + - 44 / - 97 * 45 AS col2, + 37 AS col2
----
31
37

query I rowsort
SELECT ALL - + 69 AS col2
----
-69

query I rowsort
SELECT + NULLIF ( + + 1, - - 23 ) col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7995
SELECT + + 21 DIV - 93 + 81 * - - 62 * + + 17 - + - 1 + - 4 + + 18 + CASE - 66 WHEN 74 THEN NULL ELSE 40 + - 35 END + + 39 col2
----
85433

skipif mysql # not compatible
query I rowsort label-7995
SELECT + + 21 / - 93 + 81 * - - 62 * + + 17 - + - 1 + - 4 + + 18 + CASE - 66 WHEN 74 THEN NULL ELSE 40 + - 35 END + + 39 col2
----
85433

onlyif mysql # aggregate syntax: 
query I rowsort label-7996
SELECT - - 12 * - + ( - 95 ) * + 41 * - 86 * - SUM( 84 ) + 15 AS col1
----
337649775

skipif mysql # not compatible
query I rowsort label-7996
SELECT - - 12 * - + ( - 95 ) * + 41 * - 86 * - SUM ( 84 ) + 15 AS col1
----
337649775

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7997
SELECT - 4 * + CAST( + + 26 AS SIGNED ) + 91 AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-7997
SELECT - 4 * + CAST ( + + 26 AS INTEGER ) + 91 AS col0
----
-13

query I rowsort
SELECT ALL + 51 col2
----
51

query I rowsort
SELECT ALL - - 69 * 14 + + - 97
----
869

onlyif mysql # aggregate syntax: 
query I rowsort label-8000
SELECT ALL 23 * + 67 + + COUNT( * ) AS col1
----
1542

skipif mysql # not compatible
query I rowsort label-8000
SELECT ALL 23 * + 67 + + COUNT ( * ) AS col1
----
1542

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8001
SELECT + ( + 54 ) * 57 * + CAST( NULL AS SIGNED ) / - 81 * + 72
----
NULL

skipif mysql # not compatible
query I rowsort label-8001
SELECT + ( + 54 ) * 57 * + CAST ( NULL AS INTEGER ) / - 81 * + 72
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8002
SELECT ALL + COUNT( * ) * 20 + + - 47 AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-8002
SELECT ALL + COUNT ( * ) * 20 + + - 47 AS col0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-8003
SELECT SUM( - 27 ) AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-8003
SELECT SUM ( - 27 ) AS col1
----
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8004
SELECT ALL COUNT( * ) DIV 15
----
0

skipif mysql # not compatible
query I rowsort label-8004
SELECT ALL COUNT ( * ) / 15
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8005
SELECT ALL COUNT( * ) * - 72 + 29 + + 88 * CASE - 41 WHEN + 81 * - 97 THEN - 19 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8005
SELECT ALL COUNT ( * ) * - 72 + 29 + + 88 * CASE - 41 WHEN + 81 * - 97 THEN - 19 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8006
SELECT ALL COUNT( * ) * - - 25
----
25

skipif mysql # not compatible
query I rowsort label-8006
SELECT ALL COUNT ( * ) * - - 25
----
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8007
SELECT DISTINCT - 23 * MAX( 73 ) DIV + 50 + 41 + - - 27
----
35

skipif mysql # not compatible
query I rowsort label-8007
SELECT DISTINCT - 23 * MAX ( 73 ) / + 50 + 41 + - - 27
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-8008
SELECT ALL + ( NULLIF ( 28, - - COALESCE ( - - 88, + 5 + + ( 92 ) ) ) ) * 31 + - 87 - 73 + - COUNT( * ) * - + 6 AS col1
----
714

skipif mysql # not compatible
query I rowsort label-8008
SELECT ALL + ( NULLIF ( 28, - - COALESCE ( - - 88, + 5 + + ( 92 ) ) ) ) * 31 + - 87 - 73 + - COUNT ( * ) * - + 6 AS col1
----
714

onlyif mysql # aggregate syntax: 
query I rowsort label-8009
SELECT COUNT( DISTINCT - 78 )
----
1

skipif mysql # not compatible
query I rowsort label-8009
SELECT COUNT ( DISTINCT - 78 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-8010
SELECT + COUNT( * ) AS col1, CAST( - + 85 AS SIGNED ) col0, 75
----
1
-85
75

skipif mysql # not compatible
query III rowsort label-8010
SELECT + COUNT ( * ) AS col1, CAST ( - + 85 AS INTEGER ) col0, 75
----
1
-85
75

query I rowsort
SELECT - 34 * + 85 AS col0
----
-2890

query I rowsort
SELECT ALL 40 + + 79
----
119

onlyif mysql # DIV for integer division: 
query I rowsort label-8013
SELECT + 45 - - ( - + 27 ) DIV - - 2
----
32

skipif mysql # not compatible
query I rowsort label-8013
SELECT + 45 - - ( - + 27 ) / - - 2
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8014
SELECT + 22 DIV - 32 * - 3 DIV - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-8014
SELECT + 22 / - 32 * - 3 / - COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8015
SELECT + 98 * - 84 * + 51 * COUNT( * )
----
-419832

skipif mysql # not compatible
query I rowsort label-8015
SELECT + 98 * - 84 * + 51 * COUNT ( * )
----
-419832

query I rowsort
SELECT ALL - 24 - + 21 AS col0
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-8017
SELECT - 68 * + ( - COUNT( * ) ) AS col0
----
68

skipif mysql # not compatible
query I rowsort label-8017
SELECT - 68 * + ( - COUNT ( * ) ) AS col0
----
68

query I rowsort
SELECT ALL + 52 * + + 92 AS col2
----
4784

onlyif mysql # aggregate syntax: 
query I rowsort label-8019
SELECT DISTINCT COUNT( DISTINCT - 38 )
----
1

skipif mysql # not compatible
query I rowsort label-8019
SELECT DISTINCT COUNT ( DISTINCT - 38 )
----
1

query I rowsort
SELECT + + 27 * - 4 + + + 98
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-8021
SELECT - MAX( DISTINCT + + 73 ) * - 29
----
2117

skipif mysql # not compatible
query I rowsort label-8021
SELECT - MAX ( DISTINCT + + 73 ) * - 29
----
2117

query I rowsort
SELECT - 11 - + 12 * + 25
----
-311

onlyif mysql # aggregate syntax: 
query I rowsort label-8023
SELECT ALL SUM( DISTINCT - 65 ) * + 70 AS col1
----
-4550

skipif mysql # not compatible
query I rowsort label-8023
SELECT ALL SUM ( DISTINCT - 65 ) * + 70 AS col1
----
-4550

onlyif mysql # aggregate syntax: 
query I rowsort label-8024
SELECT - COUNT( * ) * + ( - + 34 ) * 60
----
2040

skipif mysql # not compatible
query I rowsort label-8024
SELECT - COUNT ( * ) * + ( - + 34 ) * 60
----
2040

onlyif mysql # DIV for integer division: 
query I rowsort label-8025
SELECT DISTINCT + 39 * 85 * 74 DIV + 87 AS col2
----
2819

skipif mysql # not compatible
query I rowsort label-8025
SELECT DISTINCT + 39 * 85 * 74 / + 87 AS col2
----
2819

onlyif mysql # aggregate syntax: 
query II rowsort label-8026
SELECT - + COALESCE ( - 14, 74 - + + NULLIF ( + COUNT( * ), + - 48 ), - 56 + - 67 ) AS col1, 91 + 43
----
14
134

skipif mysql # not compatible
query II rowsort label-8026
SELECT - + COALESCE ( - 14, 74 - + + NULLIF ( + COUNT ( * ), + - 48 ), - 56 + - 67 ) AS col1, 91 + 43
----
14
134

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8027
SELECT ALL CASE + ( - + 19 ) WHEN + CAST( NULL AS SIGNED ) THEN 2 WHEN - - ( COALESCE ( + COUNT( * ), 9 + - ( - 65 ) / + 89 ) ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8027
SELECT ALL CASE + ( - + 19 ) WHEN + CAST ( NULL AS INTEGER ) THEN 2 WHEN - - ( COALESCE ( + COUNT ( * ), 9 + - ( - 65 ) / + 89 ) ) THEN NULL END
----
NULL

query I rowsort
SELECT - 23 - + 18 AS col2
----
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8029
SELECT ALL + COUNT( * ) DIV + - 5 + - 6 col1, ( - MIN( 65 ) ) * 2 + - - 69 - - 3 * - 88
----
-6
-325

skipif mysql # not compatible
query II rowsort label-8029
SELECT ALL + COUNT ( * ) / + - 5 + - 6 col1, ( - MIN ( 65 ) ) * 2 + - - 69 - - 3 * - 88
----
-6
-325

onlyif mysql # aggregate syntax: 
query I rowsort label-8030
SELECT - 50 * + - COUNT( * ) AS col1
----
50

skipif mysql # not compatible
query I rowsort label-8030
SELECT - 50 * + - COUNT ( * ) AS col1
----
50

query I rowsort
SELECT DISTINCT + - 24 AS col0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-8032
SELECT DISTINCT + MAX( + 32 ) AS col2
----
32

skipif mysql # not compatible
query I rowsort label-8032
SELECT DISTINCT + MAX ( + 32 ) AS col2
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8033
SELECT 18 DIV + - 85 * ( COUNT( * ) ) - 87 - 64 AS col0
----
-151

skipif mysql # not compatible
query I rowsort label-8033
SELECT 18 / + - 85 * ( COUNT ( * ) ) - 87 - 64 AS col0
----
-151

query II rowsort
SELECT DISTINCT + 39, 24 AS col1
----
39
24

query I rowsort
SELECT ALL 63 * + 75 + 87 + + 34 + 26 + + 43 * + + 14 * - 6 AS col2
----
1260

query I rowsort
SELECT DISTINCT 31 * 25 + + - 28
----
747

onlyif mysql # DIV for integer division: 
query I rowsort label-8037
SELECT ALL + 74 * + 82 + 83 * - 69 DIV - 3
----
7977

skipif mysql # not compatible
query I rowsort label-8037
SELECT ALL + 74 * + 82 + 83 * - 69 / - 3
----
7977

onlyif mysql # aggregate syntax: 
query I rowsort label-8038
SELECT ( + MAX( - 13 ) )
----
-13

skipif mysql # not compatible
query I rowsort label-8038
SELECT ( + MAX ( - 13 ) )
----
-13

query I rowsort
SELECT ALL + 96 * + 91 * + COALESCE ( 59, 88 ) + - 0 AS col2
----
515424

query I rowsort
SELECT - 46 + + 82
----
36

query II rowsort
SELECT ALL + 74 AS col2, + 62
----
74
62

query I rowsort
SELECT + 22 + 6
----
28

query I rowsort
SELECT 55 * + 36 - + 86 AS col1
----
1894

onlyif mysql # DIV for integer division: 
query I rowsort label-8044
SELECT - 37 * + 87 + + - COALESCE ( 66, 22 DIV + 87, - - 44 ) AS col1
----
-3285

skipif mysql # not compatible
query I rowsort label-8044
SELECT - 37 * + 87 + + - COALESCE ( 66, 22 / + 87, - - 44 ) AS col1
----
-3285

onlyif mysql # aggregate syntax: 
query I rowsort label-8045
SELECT DISTINCT + SUM( 2 ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-8045
SELECT DISTINCT + SUM ( 2 ) AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8046
SELECT 65 * COUNT( * ) + + + 10
----
75

skipif mysql # not compatible
query I rowsort label-8046
SELECT 65 * COUNT ( * ) + + + 10
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8047
SELECT ALL CAST( - 57 AS SIGNED ) * + + 7 + + 88 - - 46
----
-265

skipif mysql # not compatible
query I rowsort label-8047
SELECT ALL CAST ( - 57 AS INTEGER ) * + + 7 + + 88 - - 46
----
-265

query I rowsort
SELECT + ( 67 )
----
67

query II rowsort
SELECT ALL + 74 AS col1, - 62 + - - 28
----
74
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8050
SELECT ALL CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) / - CASE + + 6 WHEN 47 THEN + - 80 + SUM( + 19 ) + + - 24 * + - 23 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8050
SELECT ALL CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) / - CASE + + 6 WHEN 47 THEN + - 80 + SUM ( + 19 ) + + - 24 * + - 23 END
----
NULL

query I rowsort
SELECT ALL - 20 * 51
----
-1020

onlyif mysql # aggregate syntax: 
query I rowsort label-8052
SELECT - CASE - 95 WHEN 65 + - 60 * + NULLIF ( + 71, - - 75 ) + + - COUNT( * ) THEN + 91 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8052
SELECT - CASE - 95 WHEN 65 + - 60 * + NULLIF ( + 71, - - 75 ) + + - COUNT ( * ) THEN + 91 END
----
NULL

query I rowsort
SELECT + 20 + 69 * 86 AS col1
----
5954

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8054
SELECT + 32 DIV - + 91 * + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-8054
SELECT + 32 / - + 91 * + COUNT ( * )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8055
SELECT - 38 DIV - 26
----
1

skipif mysql # not compatible
query I rowsort label-8055
SELECT - 38 / - 26
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8056
SELECT ALL 37 AS col0, - COUNT( * ) AS col1
----
37
-1

skipif mysql # not compatible
query II rowsort label-8056
SELECT ALL 37 AS col0, - COUNT ( * ) AS col1
----
37
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8057
SELECT + - 39 * - 10 * + CAST( CASE + 28 WHEN - - 0 THEN NULL ELSE + + 41 END AS SIGNED ) AS col2
----
15990

skipif mysql # not compatible
query I rowsort label-8057
SELECT + - 39 * - 10 * + CAST ( CASE + 28 WHEN - - 0 THEN NULL ELSE + + 41 END AS INTEGER ) AS col2
----
15990

query I rowsort
SELECT + 96 + + 39 + + 1 + - + 19
----
117

query I rowsort
SELECT + 9 + + - 47 + - NULLIF ( 20, + 47 ) - + 38
----
-96

query III rowsort
SELECT ALL - 12 AS col0, 39 AS col2, + 84
----
-12
39
84

query II rowsort
SELECT ALL 60, - 65 AS col1
----
60
-65

query I rowsort
SELECT DISTINCT - 51 + - ( + + 30 )
----
-81

query II rowsort
SELECT + 50 AS col1, 24 AS col0
----
50
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8064
SELECT ALL ( CASE ( 7 ) WHEN CAST( NULL AS SIGNED ) THEN - ( + 53 ) WHEN - + ( + 16 ) THEN 87 * - 1 + - MAX( ALL 90 ) + + - 42 ELSE + 93 END ) + - + 83
----
10

skipif mysql # not compatible
query I rowsort label-8064
SELECT ALL ( CASE ( 7 ) WHEN CAST ( NULL AS INTEGER ) THEN - ( + 53 ) WHEN - + ( + 16 ) THEN 87 * - 1 + - MAX ( ALL 90 ) + + - 42 ELSE + 93 END ) + - + 83
----
10

query I rowsort
SELECT - 68 * + 99
----
-6732

onlyif mysql # aggregate syntax: 
query I rowsort label-8066
SELECT + COUNT( * ) + - - COUNT( * ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-8066
SELECT + COUNT ( * ) + - - COUNT ( * ) AS col0
----
2

query I rowsort
SELECT DISTINCT + - 4 * + 69 * + 15
----
-4140

query I rowsort
SELECT 1 + 18
----
19

query I rowsort
SELECT + 90 - 90 - - 3
----
3

query I rowsort
SELECT + 34 + 39 * 85
----
3349

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8071
SELECT ALL - - ( - - CAST( NULL AS SIGNED ) ) + ( + + ( + + 41 ) ) + - - 81 + + 3 * + - 58 / ( - + 6 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8071
SELECT ALL - - ( - - CAST ( NULL AS INTEGER ) ) + ( + + ( + + 41 ) ) + - - 81 + + 3 * + - 58 / ( - + 6 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8072
SELECT ALL - CASE 73 WHEN - COUNT( * ) THEN ( - 57 ) + + 20 WHEN - + 47 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8072
SELECT ALL - CASE 73 WHEN - COUNT ( * ) THEN ( - 57 ) + + 20 WHEN - + 47 THEN NULL ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8073
SELECT ALL - 8 + + COUNT( * )
----
-7

skipif mysql # not compatible
query I rowsort label-8073
SELECT ALL - 8 + + COUNT ( * )
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-8074
SELECT - NULLIF ( 78, + 24 ) * 40 + - + 38 DIV - + 56 AS col0
----
-3120

skipif mysql # not compatible
query I rowsort label-8074
SELECT - NULLIF ( 78, + 24 ) * 40 + - + 38 / - + 56 AS col0
----
-3120

onlyif mysql # aggregate syntax: 
query I rowsort label-8075
SELECT ALL - + 62 * COALESCE ( + ( COUNT( * ) ), 26 ) AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-8075
SELECT ALL - + 62 * COALESCE ( + ( COUNT ( * ) ), 26 ) AS col1
----
-62

query I rowsort
SELECT DISTINCT + + 99 + 44 AS col0
----
143

onlyif mysql # aggregate syntax: 
query I rowsort label-8077
SELECT 23 + - 3 + - 98 * - MIN( - 32 ) + + + 16 AS col2
----
-3100

skipif mysql # not compatible
query I rowsort label-8077
SELECT 23 + - 3 + - 98 * - MIN ( - 32 ) + + + 16 AS col2
----
-3100

onlyif mysql # aggregate syntax: 
query I rowsort label-8078
SELECT ALL + COUNT( * ) + + COUNT( - 63 )
----
2

skipif mysql # not compatible
query I rowsort label-8078
SELECT ALL + COUNT ( * ) + + COUNT ( - 63 )
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8079
SELECT 4 DIV MIN( ALL + + 21 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8079
SELECT 4 / MIN ( ALL + + 21 ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8080
SELECT DISTINCT - CAST( + COUNT( - 75 ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-8080
SELECT DISTINCT - CAST ( + COUNT ( - 75 ) AS INTEGER )
----
-1

query I rowsort
SELECT ALL - 24 - 91 AS col0
----
-115

onlyif mysql # aggregate syntax: 
query II rowsort label-8082
SELECT 29 * + 72 * - 9 * 72 * - COUNT( * ), - 9 * + 37 + - 28 AS col0
----
1353024
-361

skipif mysql # not compatible
query II rowsort label-8082
SELECT 29 * + 72 * - 9 * 72 * - COUNT ( * ), - 9 * + 37 + - 28 AS col0
----
1353024
-361

query I rowsort
SELECT ALL - ( COALESCE ( + 88, + 70 ) )
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-8084
SELECT COUNT( * ) * - COALESCE ( + 23, + 65 ) AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-8084
SELECT COUNT ( * ) * - COALESCE ( + 23, + 65 ) AS col1
----
-23

query I rowsort
SELECT DISTINCT 4 * - 26
----
-104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8086
SELECT 64 * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8086
SELECT 64 * + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8087
SELECT DISTINCT - 66 * 58 DIV 23 col0
----
-166

skipif mysql # not compatible
query I rowsort label-8087
SELECT DISTINCT - 66 * 58 / 23 col0
----
-166

onlyif mysql # aggregate syntax: 
query I rowsort label-8088
SELECT ALL 55 + 77 + + - 92 + + COUNT( * ) col1
----
41

skipif mysql # not compatible
query I rowsort label-8088
SELECT ALL 55 + 77 + + - 92 + + COUNT ( * ) col1
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8089
SELECT DISTINCT - CAST( NULL AS SIGNED ) / ( - - 26 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8089
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / ( - - 26 )
----
NULL

query I rowsort
SELECT - - 47 col0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8091
SELECT + COUNT( * ) + + 75 * + COUNT( * ) AS col2
----
76

skipif mysql # not compatible
query I rowsort label-8091
SELECT + COUNT ( * ) + + 75 * + COUNT ( * ) AS col2
----
76

query I rowsort
SELECT 6 * + 25 AS col2
----
150

query I rowsort
SELECT ALL - 72 + 3
----
-69

query I rowsort
SELECT ALL + 98 + - 10 col2
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8095
SELECT + COALESCE ( + CASE - 27 WHEN 38 * - - 23 + + 33 THEN NULL WHEN COALESCE ( - 60, - 84 * + - ( - + 50 ) + + - SUM( DISTINCT 40 ) ) THEN + 26 DIV + + AVG ( - 20 ) + + - 78 END, + 5 ) * + 89
----
445

skipif mysql # not compatible
query I rowsort label-8095
SELECT + COALESCE ( + CASE - 27 WHEN 38 * - - 23 + + 33 THEN NULL WHEN COALESCE ( - 60, - 84 * + - ( - + 50 ) + + - SUM ( DISTINCT 40 ) ) THEN + 26 / + + AVG ( - 20 ) + + - 78 END, + 5 ) * + 89
----
445

onlyif mysql # DIV for integer division: 
query I rowsort label-8096
SELECT + 75 + + + 65 DIV + 13 + NULLIF ( + ( 68 ), + 38 ) AS col0
----
148

skipif mysql # not compatible
query I rowsort label-8096
SELECT + 75 + + + 65 / + 13 + NULLIF ( + ( 68 ), + 38 ) AS col0
----
148

query I rowsort
SELECT DISTINCT 84 * + 23 AS col2
----
1932

onlyif mysql # aggregate syntax: 
query I rowsort label-8098
SELECT ALL 58 + - COALESCE ( 27, + + 54 + - - COUNT( * ) )
----
31

skipif mysql # not compatible
query I rowsort label-8098
SELECT ALL 58 + - COALESCE ( 27, + + 54 + - - COUNT ( * ) )
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8099
SELECT ALL + COALESCE ( - - 97, COALESCE ( COUNT( 76 ), + 97 + + COUNT( * ) * + 22 * + + COUNT( * ) ) * - - 96, CAST( - 15 AS SIGNED ) ) AS col2
----
97

skipif mysql # not compatible
query I rowsort label-8099
SELECT ALL + COALESCE ( - - 97, COALESCE ( COUNT ( 76 ), + 97 + + COUNT ( * ) * + 22 * + + COUNT ( * ) ) * - - 96, CAST ( - 15 AS INTEGER ) ) AS col2
----
97

query II rowsort
SELECT + ( 0 ), + 44 AS col2
----
0
44

query I rowsort
SELECT ALL 2 * 51
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-8102
SELECT DISTINCT + 79 + + - COUNT( * ) AS col2
----
78

skipif mysql # not compatible
query I rowsort label-8102
SELECT DISTINCT + 79 + + - COUNT ( * ) AS col2
----
78

onlyif mysql # aggregate syntax: 
query II rowsort label-8103
SELECT DISTINCT - 4 + + 79 AS col0, + 19 * + 21 - - - 3 * + COUNT( * ) AS col0
----
75
396

skipif mysql # not compatible
query II rowsort label-8103
SELECT DISTINCT - 4 + + 79 AS col0, + 19 * + 21 - - - 3 * + COUNT ( * ) AS col0
----
75
396

onlyif mysql # aggregate syntax: 
query I rowsort label-8104
SELECT ALL - MIN( - 58 )
----
58

skipif mysql # not compatible
query I rowsort label-8104
SELECT ALL - MIN ( - 58 )
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-8105
SELECT NULLIF ( - + 87, - 44 + + 86 ) - + + ( - + 33 ) DIV 97
----
-87

skipif mysql # not compatible
query I rowsort label-8105
SELECT NULLIF ( - + 87, - 44 + + 86 ) - + + ( - + 33 ) / 97
----
-87

query I rowsort
SELECT 7 * 77
----
539

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8107
SELECT ALL - 64 * - + COALESCE ( - COUNT( * ), - 76, - NULLIF ( + COUNT( * ), - COALESCE ( - - 49, 94 * - MIN( + - 12 ) / 14 + 54 + + CASE + 41 WHEN - ( - - 41 ) * + - 35 THEN + 55 / - 31 WHEN + CAST( - ( - - 85 ) AS SIGNED ) THEN - ( - + COUNT( * ) ) * + 34 * + CAST( 28 AS SIGNED ) / - 87 / - COUNT( * ) ELSE 72 END + - 82 ) * - + 34 ) * - 24 + 24 ) col0
----
-64

skipif mysql # not compatible
query I rowsort label-8107
SELECT ALL - 64 * - + COALESCE ( - COUNT ( * ), - 76, - NULLIF ( + COUNT ( * ), - COALESCE ( - - 49, 94 * - MIN ( + - 12 ) / 14 + 54 + + CASE + 41 WHEN - ( - - 41 ) * + - 35 THEN + 55 / - 31 WHEN + CAST ( - ( - - 85 ) AS INTEGER ) THEN - ( - + COUNT ( * ) ) * + 34 * + CAST ( 28 AS INTEGER ) / - 87 / - COUNT ( * ) ELSE 72 END + - 82 ) * - + 34 ) * - 24 + 24 ) col0
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-8108
SELECT MAX( + 89 )
----
89

skipif mysql # not compatible
query I rowsort label-8108
SELECT MAX ( + 89 )
----
89

query I rowsort
SELECT 49 * 48 AS col1
----
2352

query I rowsort
SELECT DISTINCT 46 * - + 7
----
-322

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8111
SELECT ALL + 92 - + - MIN( - CAST( + 41 AS SIGNED ) ) AS col1, 56 + - + ( 97 )
----
51
-41

skipif mysql # not compatible
query II rowsort label-8111
SELECT ALL + 92 - + - MIN ( - CAST ( + 41 AS INTEGER ) ) AS col1, 56 + - + ( 97 )
----
51
-41

query I rowsort
SELECT DISTINCT - ( 96 )
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-8113
SELECT DISTINCT - MAX( + 51 ) col0
----
-51

skipif mysql # not compatible
query I rowsort label-8113
SELECT DISTINCT - MAX ( + 51 ) col0
----
-51

query I rowsort
SELECT 48 - 73
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-8115
SELECT COUNT( 70 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8115
SELECT COUNT ( 70 ) AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8116
SELECT 2 DIV + 88 + - 4 + COUNT( * ) + - COUNT( * ) * 32 * + 96 - - 25 + + 13 + - 29 * + 87 + + - SUM( 74 )
----
-5634

skipif mysql # not compatible
query I rowsort label-8116
SELECT 2 / + 88 + - 4 + COUNT ( * ) + - COUNT ( * ) * 32 * + 96 - - 25 + + 13 + - 29 * + 87 + + - SUM ( 74 )
----
-5634

query II rowsort
SELECT + 42 AS col1, 77 * + - 67 * + + 84
----
42
-433356

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8118
SELECT COUNT( * ) DIV + - 12 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8118
SELECT COUNT ( * ) / + - 12 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8119
SELECT 64 DIV + - 79
----
0

skipif mysql # not compatible
query I rowsort label-8119
SELECT 64 / + - 79
----
0

query I rowsort
SELECT ALL - ( + 58 ) AS col1
----
-58

query I rowsort
SELECT 38 + - - 6
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-8122
SELECT MAX( DISTINCT - 15 ) * - - COUNT( * ) * 63 + - - 79 col1
----
-866

skipif mysql # not compatible
query I rowsort label-8122
SELECT MAX ( DISTINCT - 15 ) * - - COUNT ( * ) * 63 + - - 79 col1
----
-866

onlyif mysql # DIV for integer division: 
query I rowsort label-8123
SELECT ALL + 2 DIV + 18 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8123
SELECT ALL + 2 / + 18 AS col0
----
0

query I rowsort
SELECT 83 - + 79 col1
----
4

query I rowsort
SELECT ALL + 93 * 54
----
5022

onlyif mysql # DIV for integer division: 
query I rowsort label-8126
SELECT 54 DIV - 96
----
0

skipif mysql # not compatible
query I rowsort label-8126
SELECT 54 / - 96
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8127
SELECT DISTINCT + COUNT( * ) + + COUNT( * ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-8127
SELECT DISTINCT + COUNT ( * ) + + COUNT ( * ) AS col1
----
2

query I rowsort
SELECT ALL - 30 * + 94
----
-2820

onlyif mysql # aggregate syntax: 
query I rowsort label-8129
SELECT DISTINCT - - 29 + 4 + - COUNT( * ) + - MAX( DISTINCT 20 ) * - COUNT( * )
----
52

skipif mysql # not compatible
query I rowsort label-8129
SELECT DISTINCT - - 29 + 4 + - COUNT ( * ) + - MAX ( DISTINCT 20 ) * - COUNT ( * )
----
52

query II rowsort
SELECT DISTINCT - 11 AS col2, - 44 AS col2
----
-11
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8131
SELECT ALL - + CAST( - - 24 AS SIGNED ) * - - 3 * + - 80
----
5760

skipif mysql # not compatible
query I rowsort label-8131
SELECT ALL - + CAST ( - - 24 AS INTEGER ) * - - 3 * + - 80
----
5760

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8132
SELECT + ( + + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8132
SELECT + ( + + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8133
SELECT + COALESCE ( + 45, - - 57 + - - MAX( ALL 38 ) + - 39 ) * + ( 76 ) + 10 + - - 17 * - SUM( DISTINCT + + 7 )
----
3311

skipif mysql # not compatible
query I rowsort label-8133
SELECT + COALESCE ( + 45, - - 57 + - - MAX ( ALL 38 ) + - 39 ) * + ( 76 ) + 10 + - - 17 * - SUM ( DISTINCT + + 7 )
----
3311

query I rowsort
SELECT + 27 + - - 10 col1
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8135
SELECT - 34 AS col1, + 53 * 33 / - CAST( NULL AS SIGNED ) - - 21 * + 71 * - 34
----
-34
NULL

skipif mysql # not compatible
query II rowsort label-8135
SELECT - 34 AS col1, + 53 * 33 / - CAST ( NULL AS INTEGER ) - - 21 * + 71 * - 34
----
-34
NULL

query I rowsort
SELECT ALL + - 49 + - 97 AS col1
----
-146

query I rowsort
SELECT ALL - + 87 + 74 AS col0
----
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-8138
SELECT - 95 AS col2, - ( - - COUNT( * ) )
----
-95
-1

skipif mysql # not compatible
query II rowsort label-8138
SELECT - 95 AS col2, - ( - - COUNT ( * ) )
----
-95
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8139
SELECT + 35 col2, COALESCE ( - - COUNT( * ), - ( 87 ) + - 48 * + + 62, + 67 + + 46 + + NULLIF ( NULLIF ( - 48, + COUNT( * ) + MIN( DISTINCT + + 28 ) + + CASE - - 3 WHEN - 57 THEN + - CAST( 41 AS SIGNED ) END / ( - 8 ) ), + 58 ) + - 80 * + - COUNT( * ) ) + 94 - + SUM( - 11 ) AS col2
----
35
106

skipif mysql # not compatible
query II rowsort label-8139
SELECT + 35 col2, COALESCE ( - - COUNT ( * ), - ( 87 ) + - 48 * + + 62, + 67 + + 46 + + NULLIF ( NULLIF ( - 48, + COUNT ( * ) + MIN ( DISTINCT + + 28 ) + + CASE - - 3 WHEN - 57 THEN + - CAST ( 41 AS INTEGER ) END / ( - 8 ) ), + 58 ) + - 80 * + - COUNT ( * ) ) + 94 - + SUM ( - 11 ) AS col2
----
35
106

query II rowsort
SELECT 95, - 94 + - 11 + - 77 * - 33 + + 35 * - 96 AS col2
----
95
-924

query II rowsort
SELECT - 68 AS col1, 79 AS col0
----
-68
79

onlyif mysql # DIV for integer division: 
query I rowsort label-8142
SELECT ALL 47 DIV + 27 col1
----
1

skipif mysql # not compatible
query I rowsort label-8142
SELECT ALL 47 / + 27 col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8143
SELECT ALL - 61 + COUNT( * )
----
-60

skipif mysql # not compatible
query I rowsort label-8143
SELECT ALL - 61 + COUNT ( * )
----
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-8144
SELECT ALL - 17 DIV + 82
----
0

skipif mysql # not compatible
query I rowsort label-8144
SELECT ALL - 17 / + 82
----
0

query II rowsort
SELECT DISTINCT 47 AS col0, - 44
----
47
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-8146
SELECT + 5 + + + COUNT( * ) AS col1
----
6

skipif mysql # not compatible
query I rowsort label-8146
SELECT + 5 + + + COUNT ( * ) AS col1
----
6

query I rowsort
SELECT + 5 * - 35 AS col2
----
-175

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8148
SELECT + 11 * + 42 * + MAX( CAST( + 63 AS SIGNED ) )
----
29106

skipif mysql # not compatible
query I rowsort label-8148
SELECT + 11 * + 42 * + MAX ( CAST ( + 63 AS INTEGER ) )
----
29106

onlyif mysql # aggregate syntax: 
query I rowsort label-8149
SELECT + 23 + - COUNT( * )
----
22

skipif mysql # not compatible
query I rowsort label-8149
SELECT + 23 + - COUNT ( * )
----
22

query I rowsort
SELECT DISTINCT + 51 * - 97
----
-4947

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8151
SELECT ALL ( - NULLIF ( + COUNT( * ), - + COUNT( * ) ) ) DIV + 50 + - ( + 15 ) + + 23 * 84 * - 74
----
-142983

skipif mysql # not compatible
query I rowsort label-8151
SELECT ALL ( - NULLIF ( + COUNT ( * ), - + COUNT ( * ) ) ) / + 50 + - ( + 15 ) + + 23 * 84 * - 74
----
-142983

query I rowsort
SELECT + 75 * - 48 * + + 81 * + 37 AS col1
----
-10789200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8153
SELECT - CASE - 54 WHEN 19 * + COUNT( 67 ) THEN - 31 + + 98 + - 82 WHEN 54 / + + 4 THEN - - 46 WHEN - + 86 * - CAST( - 70 AS SIGNED ) + - 41 + + 4 THEN NULL ELSE 32 END * + + 72 + - 73 AS col0
----
-2377

skipif mysql # not compatible
query I rowsort label-8153
SELECT - CASE - 54 WHEN 19 * + COUNT ( 67 ) THEN - 31 + + 98 + - 82 WHEN 54 / + + 4 THEN - - 46 WHEN - + 86 * - CAST ( - 70 AS INTEGER ) + - 41 + + 4 THEN NULL ELSE 32 END * + + 72 + - 73 AS col0
----
-2377

query I rowsort
SELECT + 51 * 33 * - 54 AS col1
----
-90882

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8155
SELECT SUM( ALL - - 17 ) / - - 60 + CAST( - COUNT( * ) AS SIGNED ) + + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8155
SELECT SUM ( ALL - - 17 ) / - - 60 + CAST ( - COUNT ( * ) AS INTEGER ) + + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT + 15 * - 91 AS col2
----
-1365

query I rowsort
SELECT - 21 + + - 33 * COALESCE ( + 15, + 15 * + 1 ) col0
----
-516

query I rowsort
SELECT + NULLIF ( + 68, + 84 ) AS col0
----
68

query I rowsort
SELECT + ( COALESCE ( + 87, 51 * - 57 ) ) AS col2
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-8160
SELECT + 24 * - CASE + 17 WHEN - 43 THEN MIN( DISTINCT 96 ) * + 82 / - 0 - - - 37 + + - COUNT( * ) + - 66 * + 78 * - SUM( DISTINCT - CASE + 13 WHEN 95 THEN - 58 END ) - ( + - 1 ) * + 50 * + - COUNT( * ) END + - 28 + + + 84 * + + ( 36 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8160
SELECT + 24 * - CASE + 17 WHEN - 43 THEN MIN ( DISTINCT 96 ) * + 82 / - 0 - - - 37 + + - COUNT ( * ) + - 66 * + 78 * - SUM ( DISTINCT - CASE + 13 WHEN 95 THEN - 58 END ) - ( + - 1 ) * + 50 * + - COUNT ( * ) END + - 28 + + + 84 * + + ( 36 ) AS col1
----
NULL

query I rowsort
SELECT ALL + NULLIF ( - + ( 32 ), - + 31 ) AS col2
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-8162
SELECT ALL + 94 * COUNT( * ) + + + COUNT( * ) AS col1
----
95

skipif mysql # not compatible
query I rowsort label-8162
SELECT ALL + 94 * COUNT ( * ) + + + COUNT ( * ) AS col1
----
95

query I rowsort
SELECT + ( 9 ) AS col0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8164
SELECT ALL NULLIF ( - CAST( NULL AS SIGNED ), + - 19 ) * - - 36 / - - 91 * NULLIF ( - - 30, + CAST( NULL AS SIGNED ) ) + - 27 - 98 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8164
SELECT ALL NULLIF ( - CAST ( NULL AS INTEGER ), + - 19 ) * - - 36 / - - 91 * NULLIF ( - - 30, + CAST ( NULL AS INTEGER ) ) + - 27 - 98 AS col1
----
NULL

query I rowsort
SELECT NULLIF ( + 89, - 29 ) AS col0
----
89

query I rowsort
SELECT + ( - ( 19 ) ) AS col0
----
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-8167
SELECT - 7 DIV - 10
----
0

skipif mysql # not compatible
query I rowsort label-8167
SELECT - 7 / - 10
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8168
SELECT - - 78 DIV - 77, - COUNT( ALL + 18 ) * + SUM( - 11 ) AS col1
----
-1
11

skipif mysql # not compatible
query II rowsort label-8168
SELECT - - 78 / - 77, - COUNT ( ALL + 18 ) * + SUM ( - 11 ) AS col1
----
-1
11

onlyif mysql # aggregate syntax: 
query I rowsort label-8169
SELECT + + 99 * 86 - - COUNT( * ) * - - ( + - 5 ) + + - COALESCE ( - CASE WHEN 15 IS NULL THEN ( - - 32 ) * + 66 END, - COUNT( * ) ) col1
----
8510

skipif mysql # not compatible
query I rowsort label-8169
SELECT + + 99 * 86 - - COUNT ( * ) * - - ( + - 5 ) + + - COALESCE ( - CASE WHEN 15 IS NULL THEN ( - - 32 ) * + 66 END, - COUNT ( * ) ) col1
----
8510

query I rowsort
SELECT - 74 + 36 + - - 83 AS col2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-8171
SELECT DISTINCT - COUNT( * ) * - 16 * + 76 + + + 62 * 31 + - 44
----
3094

skipif mysql # not compatible
query I rowsort label-8171
SELECT DISTINCT - COUNT ( * ) * - 16 * + 76 + + + 62 * 31 + - 44
----
3094

query I rowsort
SELECT DISTINCT + 23 * - 67 AS col0
----
-1541

onlyif mysql # DIV for integer division: 
query I rowsort label-8173
SELECT - 92 DIV + 52 + + - ( 68 ) * 90 * + 3
----
-18361

skipif mysql # not compatible
query I rowsort label-8173
SELECT - 92 / + 52 + + - ( 68 ) * 90 * + 3
----
-18361

onlyif mysql # aggregate syntax: 
query I rowsort label-8174
SELECT ALL 55 * COUNT( * ) + + - ( COUNT( * ) )
----
54

skipif mysql # not compatible
query I rowsort label-8174
SELECT ALL 55 * COUNT ( * ) + + - ( COUNT ( * ) )
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8175
SELECT ALL + + COUNT( * ) * + COALESCE ( + 91, + - NULLIF ( 46, 62 - - - NULLIF ( - 10, - 22 * 83 DIV + CAST( + COUNT( * ) AS SIGNED ) ) - 65 + 74 DIV + + CASE - - CASE + 44 WHEN 7 THEN NULL WHEN - - 82 * + COUNT( * ) + 60 THEN - 69 ELSE - + 30 DIV COALESCE ( - + 8, 84 * + + 81 - - + 75 + 29 * 67 * + 88 * + 67, - 92 * + 52 DIV - - 31 + + 43 + + 8 ) * - + CASE NULLIF ( ( + 51 ), - 76 + 92 * - 79 ) WHEN 51 THEN + ( - ( + 7 ) ) * + 35 END END WHEN + 7 * 41 THEN + 49 WHEN + 83 - + 12 THEN - 10 END + - 36 ) DIV 61, + 49 * COUNT( * ) ) + COALESCE ( + 10, NULLIF ( 28, - 19 ) * + 72, SUM( 15 ) ) AS col2
----
101

skipif mysql # not compatible
query I rowsort label-8175
SELECT ALL + + COUNT ( * ) * + COALESCE ( + 91, + - NULLIF ( 46, 62 - - - NULLIF ( - 10, - 22 * 83 / + CAST ( + COUNT ( * ) AS INTEGER ) ) - 65 + 74 / + + CASE - - CASE + 44 WHEN 7 THEN NULL WHEN - - 82 * + COUNT ( * ) + 60 THEN - 69 ELSE - + 30 / COALESCE ( - + 8, 84 * + + 81 - - + 75 + 29 * 67 * + 88 * + 67, - 92 * + 52 / - - 31 + + 43 + + 8 ) * - + CASE NULLIF ( ( + 51 ), - 76 + 92 * - 79 ) WHEN 51 THEN + ( - ( + 7 ) ) * + 35 END END WHEN + 7 * 41 THEN + 49 WHEN + 83 - + 12 THEN - 10 END + - 36 ) / 61, + 49 * COUNT ( * ) ) + COALESCE ( + 10, NULLIF ( 28, - 19 ) * + 72, SUM ( 15 ) ) AS col2
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-8176
SELECT - + 9 + - 12 + + COUNT( * )
----
-20

skipif mysql # not compatible
query I rowsort label-8176
SELECT - + 9 + - 12 + + COUNT ( * )
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-8177
SELECT ALL MAX( ALL - ( 2 ) ) col2
----
-2

skipif mysql # not compatible
query I rowsort label-8177
SELECT ALL MAX ( ALL - ( 2 ) ) col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8178
SELECT ALL + - 42 * - COUNT( ALL + 86 )
----
42

skipif mysql # not compatible
query I rowsort label-8178
SELECT ALL + - 42 * - COUNT ( ALL + 86 )
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8179
SELECT + - MAX( + 50 ) + - NULLIF ( + - CAST( AVG ( ALL - 97 ) AS SIGNED ), 59 ) * - COUNT( * ) * + CAST( - - 64 AS SIGNED ) * + 72 - 88 + + NULLIF ( - SUM( - 78 ), - - MIN( - 32 ) ) + - 99 * + COUNT( * ) AS col1
----
446817

skipif mysql # not compatible
query I rowsort label-8179
SELECT + - MAX ( + 50 ) + - NULLIF ( + - CAST ( AVG ( ALL - 97 ) AS INTEGER ), 59 ) * - COUNT ( * ) * + CAST ( - - 64 AS INTEGER ) * + 72 - 88 + + NULLIF ( - SUM ( - 78 ), - - MIN ( - 32 ) ) + - 99 * + COUNT ( * ) AS col1
----
446817

query I rowsort
SELECT - 99 * + 20 AS col1
----
-1980

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8181
SELECT ALL ( + CAST( - 74 AS SIGNED ) )
----
-74

skipif mysql # not compatible
query I rowsort label-8181
SELECT ALL ( + CAST ( - 74 AS INTEGER ) )
----
-74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8182
SELECT DISTINCT 28 DIV COUNT( * ) * 14 * + 1 * - 7
----
-2744

skipif mysql # not compatible
query I rowsort label-8182
SELECT DISTINCT 28 / COUNT ( * ) * 14 * + 1 * - 7
----
-2744

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8183
SELECT + SUM( DISTINCT - 78 ) DIV + 91
----
0

skipif mysql # not compatible
query I rowsort label-8183
SELECT + SUM ( DISTINCT - 78 ) / + 91
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8184
SELECT ALL CAST( - + 8 AS SIGNED ) AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-8184
SELECT ALL CAST ( - + 8 AS INTEGER ) AS col2
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8185
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - 19 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8185
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - 19 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8186
SELECT - 57 - - + SUM( - 9 ) AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-8186
SELECT - 57 - - + SUM ( - 9 ) AS col1
----
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-8187
SELECT - 16 DIV + - 54
----
0

skipif mysql # not compatible
query I rowsort label-8187
SELECT - 16 / + - 54
----
0

query I rowsort
SELECT + NULLIF ( + NULLIF ( 11, - - CASE - 80 WHEN + 4 * 84 + + 11 THEN - 4 ELSE - 92 / + - 59 * + 68 END * - 77 ), ( + - 80 ) + - 31 ) * + 32 * - 55
----
-19360

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8189
SELECT ALL 20 DIV 85 * 34 + + COUNT( - 23 ) * - + COALESCE ( - + 89, + 29 * - 1 ) + 53 + - 90 AS col1
----
52

skipif mysql # not compatible
query I rowsort label-8189
SELECT ALL 20 / 85 * 34 + + COUNT ( - 23 ) * - + COALESCE ( - + 89, + 29 * - 1 ) + 53 + - 90 AS col1
----
52

query I rowsort
SELECT DISTINCT 86 * 18
----
1548

onlyif mysql # DIV for integer division: 
query I rowsort label-8191
SELECT ALL ( 47 ) DIV 92 + + + ( + 73 ) * 92
----
6716

skipif mysql # not compatible
query I rowsort label-8191
SELECT ALL ( 47 ) / 92 + + + ( + 73 ) * 92
----
6716

onlyif mysql # aggregate syntax: 
query II rowsort label-8192
SELECT + CASE + COUNT( + COALESCE ( 31, 40 ) ) WHEN - - 6 THEN - - 82 END / NULLIF ( - - 32, + + COUNT( * ) / + 20 ), + ( - 92 ) + + MAX( - - 17 ) + 62 AS col0
----
NULL
-13

skipif mysql # not compatible
query II rowsort label-8192
SELECT + CASE + COUNT ( + COALESCE ( 31, 40 ) ) WHEN - - 6 THEN - - 82 END / NULLIF ( - - 32, + + COUNT ( * ) / + 20 ), + ( - 92 ) + + MAX ( - - 17 ) + 62 AS col0
----
NULL
-13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8193
SELECT ALL + 50 DIV - 56 + + 3 + - 48 + 95 * - + ( + + ( 19 ) ) + + 82 + + 50 * - + COALESCE ( - COUNT( * ), + 43 ) + - + ( 39 ) * 77 * + 89
----
-268985

skipif mysql # not compatible
query I rowsort label-8193
SELECT ALL + 50 / - 56 + + 3 + - 48 + 95 * - + ( + + ( 19 ) ) + + 82 + + 50 * - + COALESCE ( - COUNT ( * ), + 43 ) + - + ( 39 ) * 77 * + 89
----
-268985

onlyif mysql # DIV for integer division: 
query I rowsort label-8194
SELECT ALL 76 DIV 60 + - 31 * COALESCE ( + + 4, + + 78 * + 0 ) AS col0
----
-123

skipif mysql # not compatible
query I rowsort label-8194
SELECT ALL 76 / 60 + - 31 * COALESCE ( + + 4, + + 78 * + 0 ) AS col0
----
-123

onlyif mysql # aggregate syntax: 
query I rowsort label-8195
SELECT + CASE + 43 WHEN 0 THEN COUNT( * ) ELSE NULL END / - 34 - + 39 * + + 85 - 97
----
NULL

skipif mysql # not compatible
query I rowsort label-8195
SELECT + CASE + 43 WHEN 0 THEN COUNT ( * ) ELSE NULL END / - 34 - + 39 * + + 85 - 97
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8196
SELECT + 56 - + - 86 + - CASE - 89 WHEN + AVG ( 20 ) + + 65 THEN NULL ELSE + 65 END - - + COUNT( * ) * + 63 + + - 98 AS col1
----
42

skipif mysql # not compatible
query I rowsort label-8196
SELECT + 56 - + - 86 + - CASE - 89 WHEN + AVG ( 20 ) + + 65 THEN NULL ELSE + 65 END - - + COUNT ( * ) * + 63 + + - 98 AS col1
----
42

onlyif mysql # aggregate syntax: 
query II rowsort label-8197
SELECT + 8 AS col0, 65 + 98 * - COUNT( * ) + + 25
----
8
-8

skipif mysql # not compatible
query II rowsort label-8197
SELECT + 8 AS col0, 65 + 98 * - COUNT ( * ) + + 25
----
8
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-8198
SELECT + 88 DIV 30 + + + 63 + + - 87 + 89 AS col0
----
67

skipif mysql # not compatible
query I rowsort label-8198
SELECT + 88 / 30 + + + 63 + + - 87 + 89 AS col0
----
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8199
SELECT ALL 66 + + 47 + ( + 8 ) + 37 + 87 * COUNT( * ) DIV 16
----
163

skipif mysql # not compatible
query I rowsort label-8199
SELECT ALL 66 + + 47 + ( + 8 ) + 37 + 87 * COUNT ( * ) / 16
----
163

query II rowsort
SELECT ALL 79 + ( 19 ) AS col1, ( + - 14 )
----
98
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8201
SELECT COUNT( * ) + 21 * - CAST( NULL AS SIGNED ) / + + 48
----
NULL

skipif mysql # not compatible
query I rowsort label-8201
SELECT COUNT ( * ) + 21 * - CAST ( NULL AS INTEGER ) / + + 48
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8202
SELECT 91 + + NULLIF ( 99, + - 45 * - - COUNT( * ) * + 95 ) col2
----
190

skipif mysql # not compatible
query I rowsort label-8202
SELECT 91 + + NULLIF ( 99, + - 45 * - - COUNT ( * ) * + 95 ) col2
----
190

onlyif mysql # aggregate syntax: 
query I rowsort label-8203
SELECT ALL - COUNT( * ) - + 69
----
-70

skipif mysql # not compatible
query I rowsort label-8203
SELECT ALL - COUNT ( * ) - + 69
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-8204
SELECT DISTINCT 50 * + + COUNT( * ) AS col0
----
50

skipif mysql # not compatible
query I rowsort label-8204
SELECT DISTINCT 50 * + + COUNT ( * ) AS col0
----
50

query I rowsort
SELECT ( - + 6 ) * - 31 AS col1
----
186

query II rowsort
SELECT - + 47 AS col0, - 5
----
-47
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-8207
SELECT 30 AS col1, + 18 * + COUNT( * ) col0
----
30
18

skipif mysql # not compatible
query II rowsort label-8207
SELECT 30 AS col1, + 18 * + COUNT ( * ) col0
----
30
18

onlyif mysql # aggregate syntax: 
query I rowsort label-8208
SELECT + 26 + - 80 + - CASE - 48 WHEN - 35 / - COUNT( * ) THEN - + 43 + + - 75 / - - 40 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8208
SELECT + 26 + - 80 + - CASE - 48 WHEN - 35 / - COUNT ( * ) THEN - + 43 + + - 75 / - - 40 END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8209
SELECT - 35 * - COUNT( * ) * + - 93 + - CAST( - - COUNT( * ) AS SIGNED )
----
-3256

skipif mysql # not compatible
query I rowsort label-8209
SELECT - 35 * - COUNT ( * ) * + - 93 + - CAST ( - - COUNT ( * ) AS INTEGER )
----
-3256

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8210
SELECT 40 * - + COUNT( * ) DIV + COUNT( * )
----
-40

skipif mysql # not compatible
query I rowsort label-8210
SELECT 40 * - + COUNT ( * ) / + COUNT ( * )
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-8211
SELECT ALL MAX( 0 )
----
0

skipif mysql # not compatible
query I rowsort label-8211
SELECT ALL MAX ( 0 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8212
SELECT - CAST( - ( + + COUNT( * ) ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-8212
SELECT - CAST ( - ( + + COUNT ( * ) ) AS INTEGER )
----
1

query I rowsort
SELECT + 1 * 22 * - + 43 AS col0
----
-946

onlyif mysql # aggregate syntax: 
query I rowsort label-8214
SELECT ALL - - 2 * MIN( 67 )
----
134

skipif mysql # not compatible
query I rowsort label-8214
SELECT ALL - - 2 * MIN ( 67 )
----
134

onlyif mysql # DIV for integer division: 
query I rowsort label-8215
SELECT DISTINCT 23 DIV 63 DIV 54 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8215
SELECT DISTINCT 23 / 63 / 54 AS col0
----
0

query I rowsort
SELECT ALL + 33 * 37 AS col0
----
1221

onlyif mysql # DIV for integer division: 
query I rowsort label-8217
SELECT 39 - - 65 DIV - 99
----
39

skipif mysql # not compatible
query I rowsort label-8217
SELECT 39 - - 65 / - 99
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-8218
SELECT DISTINCT + 24 * - MIN( ALL - 69 )
----
1656

skipif mysql # not compatible
query I rowsort label-8218
SELECT DISTINCT + 24 * - MIN ( ALL - 69 )
----
1656

query I rowsort
SELECT DISTINCT + 51 + 53 * + 24 AS col1
----
1323

query II rowsort
SELECT 29 AS col2, ( - 98 )
----
29
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8221
SELECT CAST( NULL AS SIGNED ) * 60 / + + 22
----
NULL

skipif mysql # not compatible
query I rowsort label-8221
SELECT CAST ( NULL AS INTEGER ) * 60 / + + 22
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8222
SELECT 58 * + 17, SUM( - - ( + 37 ) ) / COALESCE ( + + 95, - - 91 * 68 + 70, CAST( NULL AS SIGNED ) ) + - 51 + - ( NULLIF ( + 74, + 62 ) ) + + - ( - 89 ) - + - 64 + - CAST( ( COUNT( * ) ) AS SIGNED ) * - CAST( NULL AS SIGNED ) AS col1
----
986
NULL

skipif mysql # not compatible
query II rowsort label-8222
SELECT 58 * + 17, SUM ( - - ( + 37 ) ) / COALESCE ( + + 95, - - 91 * 68 + 70, CAST ( NULL AS INTEGER ) ) + - 51 + - ( NULLIF ( + 74, + 62 ) ) + + - ( - 89 ) - + - 64 + - CAST ( ( COUNT ( * ) ) AS INTEGER ) * - CAST ( NULL AS INTEGER ) AS col1
----
986
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8223
SELECT ALL + NULLIF ( - - COALESCE ( - COUNT( * ), - 41 * - 83 - - 51 + NULLIF ( + 81, + + MAX( DISTINCT CAST( - 42 AS DECIMAL ) ) ) * 47 ), + 69 ) + - COUNT( * ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-8223
SELECT ALL + NULLIF ( - - COALESCE ( - COUNT ( * ), - 41 * - 83 - - 51 + NULLIF ( + 81, + + MAX ( DISTINCT CAST ( - 42 AS REAL ) ) ) * 47 ), + 69 ) + - COUNT ( * ) AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8224
SELECT 29 + + COUNT( * ) * - 6
----
23

skipif mysql # not compatible
query I rowsort label-8224
SELECT 29 + + COUNT ( * ) * - 6
----
23

query I rowsort
SELECT 38 + + NULLIF ( 97, + 47 )
----
135

query I rowsort
SELECT 74 - + 71 * + 60
----
-4186

query II rowsort
SELECT DISTINCT 31, ( ( + 65 ) ) AS col1
----
31
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8228
SELECT ALL + 6 + CAST( + - 0 AS SIGNED ) col2
----
6

skipif mysql # not compatible
query I rowsort label-8228
SELECT ALL + 6 + CAST ( + - 0 AS INTEGER ) col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8229
SELECT ALL + 34 + + COUNT( * ) * - + MAX( DISTINCT + - 65 ) * 22 + + 83 AS col1
----
1547

skipif mysql # not compatible
query I rowsort label-8229
SELECT ALL + 34 + + COUNT ( * ) * - + MAX ( DISTINCT + - 65 ) * 22 + + 83 AS col1
----
1547

query II rowsort
SELECT ALL 37, + 79 + + 42 + - + 71 AS col1
----
37
50

onlyif mysql # aggregate syntax: 
query I rowsort label-8231
SELECT 57 + + ( - + NULLIF ( - + COUNT( * ), + - 49 - - - 94 + COUNT( * ) ) ) col1
----
58

skipif mysql # not compatible
query I rowsort label-8231
SELECT 57 + + ( - + NULLIF ( - + COUNT ( * ), + - 49 - - - 94 + COUNT ( * ) ) ) col1
----
58

query I rowsort
SELECT ALL - 34 + + + 52
----
18

query III rowsort
SELECT DISTINCT 42 AS col0, 1 AS col1, + 58 - - + 15
----
42
1
73

onlyif mysql # aggregate syntax: 
query I rowsort label-8234
SELECT ALL SUM( + 54 ) + + + 83
----
137

skipif mysql # not compatible
query I rowsort label-8234
SELECT ALL SUM ( + 54 ) + + + 83
----
137

query I rowsort
SELECT + 16 * + + ( + 90 ) + - - ( + 3 )
----
1443

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8236
SELECT + COUNT( * ) DIV + 96 * COUNT( * ) + + - 19 col2, + 0 + - + CASE + 39 WHEN 56 THEN - - 28 ELSE - NULLIF ( - 14, 6 - + 88 ) * - SUM( ALL 95 ) END col1
----
-19
1330

skipif mysql # not compatible
query II rowsort label-8236
SELECT + COUNT ( * ) / + 96 * COUNT ( * ) + + - 19 col2, + 0 + - + CASE + 39 WHEN 56 THEN - - 28 ELSE - NULLIF ( - 14, 6 - + 88 ) * - SUM ( ALL 95 ) END col1
----
-19
1330

query II rowsort
SELECT + 3 AS col0, 50 + 41 AS col2
----
3
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8238
SELECT ALL - 71 + + 17 * - MIN( ALL + 31 ) + + MIN( + + 40 ) AS col0
----
-558

skipif mysql # not compatible
query I rowsort label-8238
SELECT ALL - 71 + + 17 * - MIN ( ALL + 31 ) + + MIN ( + + 40 ) AS col0
----
-558

query I rowsort
SELECT 63 * 98
----
6174

query I rowsort
SELECT 98 * + - 75
----
-7350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8241
SELECT - 34 * NULLIF ( - CAST( NULL AS SIGNED ), + - 98 + 76 * + 28 ) + + 2
----
NULL

skipif mysql # not compatible
query I rowsort label-8241
SELECT - 34 * NULLIF ( - CAST ( NULL AS INTEGER ), + - 98 + 76 * + 28 ) + + 2
----
NULL

query I rowsort
SELECT ALL + 14 * 55 AS col1
----
770

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8243
SELECT 60 DIV - 98 + - NULLIF ( - ( 73 ), 44 + + 64 + - 62 + + ( + 38 ) * + COUNT( * ) ) AS col1
----
73

skipif mysql # not compatible
query I rowsort label-8243
SELECT 60 / - 98 + - NULLIF ( - ( 73 ), 44 + + 64 + - 62 + + ( + 38 ) * + COUNT ( * ) ) AS col1
----
73

query I rowsort
SELECT ALL - 45 - 24 AS col2
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-8245
SELECT ALL + + 51 * + CASE SUM( ALL 13 ) WHEN - + 41 + - 62 THEN NULL WHEN - 59 THEN + 98 ELSE - 45 END * + - 52 AS col2
----
119340

skipif mysql # not compatible
query I rowsort label-8245
SELECT ALL + + 51 * + CASE SUM ( ALL 13 ) WHEN - + 41 + - 62 THEN NULL WHEN - 59 THEN + 98 ELSE - 45 END * + - 52 AS col2
----
119340

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8246
SELECT - COUNT( DISTINCT 59 ) DIV - 40 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8246
SELECT - COUNT ( DISTINCT 59 ) / - 40 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8247
SELECT - - COALESCE ( - CAST( NULL AS SIGNED ), 4, 82 * - 94 DIV AVG ( ALL - 47 ) ) * - - 88 + 50 * 84 AS col2
----
4552

skipif mysql # not compatible
query I rowsort label-8247
SELECT - - COALESCE ( - CAST ( NULL AS INTEGER ), 4, 82 * - 94 / AVG ( ALL - 47 ) ) * - - 88 + 50 * 84 AS col2
----
4552

onlyif mysql # aggregate syntax: 
query II rowsort label-8248
SELECT DISTINCT - + 75 AS col2, 25 + + + 28 * 49 + MAX( + 21 ) + + COUNT( * )
----
-75
1419

skipif mysql # not compatible
query II rowsort label-8248
SELECT DISTINCT - + 75 AS col2, 25 + + + 28 * 49 + MAX ( + 21 ) + + COUNT ( * )
----
-75
1419

onlyif mysql # aggregate syntax: 
query I rowsort label-8249
SELECT - SUM( + + 47 ) AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-8249
SELECT - SUM ( + + 47 ) AS col0
----
-47

query I rowsort
SELECT + 32 * + 63 * 15
----
30240

onlyif mysql # aggregate syntax: 
query I rowsort label-8251
SELECT ALL - 38 * - COUNT( * )
----
38

skipif mysql # not compatible
query I rowsort label-8251
SELECT ALL - 38 * - COUNT ( * )
----
38

query I rowsort
SELECT DISTINCT - - NULLIF ( + - 87, NULLIF ( 80, 9 ) ) col2
----
-87

query II rowsort
SELECT - 93 AS col2, 98 * - - 55 AS col2
----
-93
5390

query II rowsort
SELECT DISTINCT 16 AS col1, + 7
----
16
7

query I rowsort
SELECT ALL - 88 * + 65
----
-5720

query I rowsort
SELECT - 99 * + 98 + + - 4 AS col2
----
-9706

query I rowsort
SELECT ALL + 38 + + 43 - - 39
----
120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8258
SELECT DISTINCT CASE + CAST( NULL AS SIGNED ) WHEN + COUNT( * ) THEN + 21 + - + 31 ELSE NULL END + + + MIN( DISTINCT 37 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8258
SELECT DISTINCT CASE + CAST ( NULL AS INTEGER ) WHEN + COUNT ( * ) THEN + 21 + - + 31 ELSE NULL END + + + MIN ( DISTINCT 37 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8259
SELECT 22 DIV - 50, + ( COUNT( * ) ) AS col2
----
0
1

skipif mysql # not compatible
query II rowsort label-8259
SELECT 22 / - 50, + ( COUNT ( * ) ) AS col2
----
0
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8260
SELECT 58 * + SUM( ALL - - 38 ) * + 5 + 59 * + ( - CAST( + COUNT( * ) AS SIGNED ) )
----
10961

skipif mysql # not compatible
query I rowsort label-8260
SELECT 58 * + SUM ( ALL - - 38 ) * + 5 + 59 * + ( - CAST ( + COUNT ( * ) AS INTEGER ) )
----
10961

query II rowsort
SELECT ALL 52 + + 64, 81 col1
----
116
81

onlyif mysql # DIV for integer division: 
query I rowsort label-8262
SELECT ALL - 75 + - + 32 DIV + + 32 col2
----
-76

skipif mysql # not compatible
query I rowsort label-8262
SELECT ALL - 75 + - + 32 / + + 32 col2
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-8263
SELECT ALL 16 + COUNT( * ) + - - 32 AS col2
----
49

skipif mysql # not compatible
query I rowsort label-8263
SELECT ALL 16 + COUNT ( * ) + - - 32 AS col2
----
49

query I rowsort
SELECT ALL + 2 + + 64 - - + 49 AS col2
----
115

query II rowsort
SELECT ALL - 48 * + 51 AS col2, + 63
----
-2448
63

onlyif mysql # DIV for integer division: 
query II rowsort label-8266
SELECT ALL 68 DIV - 8, 78 col1
----
-8
78

skipif mysql # not compatible
query II rowsort label-8266
SELECT ALL 68 / - 8, 78 col1
----
-8
78

query I rowsort
SELECT 73 * - + ( - + 69 ) col2
----
5037

onlyif mysql # aggregate syntax: 
query II rowsort label-8268
SELECT ALL + 75 * 79, - COUNT( * ) + + - 95 AS col1
----
5925
-96

skipif mysql # not compatible
query II rowsort label-8268
SELECT ALL + 75 * 79, - COUNT ( * ) + + - 95 AS col1
----
5925
-96

query I rowsort
SELECT ALL + 3 + - 66 * + 82 + - + 86 AS col2
----
-5495

query I rowsort
SELECT ALL - 39 - - ( 2 ) AS col0
----
-37

onlyif mysql # aggregate syntax: 
query II rowsort label-8271
SELECT + COUNT( * ) - - + 51 AS col0, 18 + - 7
----
52
11

skipif mysql # not compatible
query II rowsort label-8271
SELECT + COUNT ( * ) - - + 51 AS col0, 18 + - 7
----
52
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8272
SELECT DISTINCT MAX( ALL - - 79 ) AS col1, - CAST( NULL AS SIGNED ) * 80 AS col1
----
79
NULL

skipif mysql # not compatible
query II rowsort label-8272
SELECT DISTINCT MAX ( ALL - - 79 ) AS col1, - CAST ( NULL AS INTEGER ) * 80 AS col1
----
79
NULL

query I rowsort
SELECT - 20 - + 23 * + 71 * - 86 col1
----
140418

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8274
SELECT - 26 * 60 AS col2, + CAST( - COUNT( * ) AS SIGNED )
----
-1560
-1

skipif mysql # not compatible
query II rowsort label-8274
SELECT - 26 * 60 AS col2, + CAST ( - COUNT ( * ) AS INTEGER )
----
-1560
-1

query I rowsort
SELECT COALESCE ( + 78, 59 )
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-8276
SELECT + 32 * ( + + CASE + - 98 WHEN - 11 THEN - - 58 ELSE NULL END ) - + COUNT( * ) + 8
----
NULL

skipif mysql # not compatible
query I rowsort label-8276
SELECT + 32 * ( + + CASE + - 98 WHEN - 11 THEN - - 58 ELSE NULL END ) - + COUNT ( * ) + 8
----
NULL

query I rowsort
SELECT ALL - 72 * + - 68 - + 96
----
4800

query I rowsort
SELECT DISTINCT - + 61 * + 76 * + + 0 + 76 AS col0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-8279
SELECT - 53 * - COUNT( * ) * + - 56 AS col2
----
-2968

skipif mysql # not compatible
query I rowsort label-8279
SELECT - 53 * - COUNT ( * ) * + - 56 AS col2
----
-2968

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8280
SELECT - CASE + CASE + 38 WHEN 40 THEN NULL WHEN 57 + - 1 - - 39 * - 95 THEN NULL ELSE + - CAST( + COALESCE ( - 30, MAX( + - 48 ) ) AS SIGNED ) END WHEN + - 5 THEN 95 END - + 24
----
NULL

skipif mysql # not compatible
query I rowsort label-8280
SELECT - CASE + CASE + 38 WHEN 40 THEN NULL WHEN 57 + - 1 - - 39 * - 95 THEN NULL ELSE + - CAST ( + COALESCE ( - 30, MAX ( + - 48 ) ) AS INTEGER ) END WHEN + - 5 THEN 95 END - + 24
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8281
SELECT - MAX( - 25 ) - - + 18 + COUNT( * ) * + + 12
----
55

skipif mysql # not compatible
query I rowsort label-8281
SELECT - MAX ( - 25 ) - - + 18 + COUNT ( * ) * + + 12
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-8282
SELECT ALL - - COUNT( * ) * - 54 - - 92 col2
----
38

skipif mysql # not compatible
query I rowsort label-8282
SELECT ALL - - COUNT ( * ) * - 54 - - 92 col2
----
38

query I rowsort
SELECT - + 22 * 88
----
-1936

query I rowsort
SELECT - ( + 8 ) * + 54 + - 21 AS col2
----
-453

onlyif mysql # aggregate syntax: 
query I rowsort label-8285
SELECT + - 89 * - + COUNT( * ) * 23
----
2047

skipif mysql # not compatible
query I rowsort label-8285
SELECT + - 89 * - + COUNT ( * ) * 23
----
2047

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8286
SELECT + MAX( + - 2 ), - 99 DIV - 84 + + 19 + - - 74 * 80 * - - 7 AS col2
----
-2
41460

skipif mysql # not compatible
query II rowsort label-8286
SELECT + MAX ( + - 2 ), - 99 / - 84 + + 19 + - - 74 * 80 * - - 7 AS col2
----
-2
41460

query I rowsort
SELECT ALL CASE + - 18 WHEN + 40 / 43 THEN + + 72 END * + 49
----
NULL

query I rowsort
SELECT - 56 * - + ( - 96 )
----
-5376

query I rowsort
SELECT - 65 * - - 98 + 70 AS col0
----
-6300

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8290
SELECT DISTINCT - COUNT( * ) * - - 94 * + 95 DIV + 5
----
-1786

skipif mysql # not compatible
query I rowsort label-8290
SELECT DISTINCT - COUNT ( * ) * - - 94 * + 95 / + 5
----
-1786

query I rowsort
SELECT + 77 * - 78 + - 87
----
-6093

onlyif mysql # aggregate syntax: 
query I rowsort label-8292
SELECT ALL + - NULLIF ( - 27, 48 - - CASE - COUNT( ALL 83 ) WHEN - 84 + - - 15 THEN NULL WHEN + 22 THEN NULL ELSE 29 END )
----
27

skipif mysql # not compatible
query I rowsort label-8292
SELECT ALL + - NULLIF ( - 27, 48 - - CASE - COUNT ( ALL 83 ) WHEN - 84 + - - 15 THEN NULL WHEN + 22 THEN NULL ELSE 29 END )
----
27

query I rowsort
SELECT + - 0 AS col0
----
0

query I rowsort
SELECT ALL - - 16 * 67 + + 59 + + + ( 60 ) + + 97
----
1288

onlyif mysql # DIV for integer division: 
query I rowsort label-8295
SELECT DISTINCT + 84 DIV 58 * + 98 AS col2
----
98

skipif mysql # not compatible
query I rowsort label-8295
SELECT DISTINCT + 84 / 58 * + 98 AS col2
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8296
SELECT ALL 48 * + CAST( NULL AS SIGNED ) + - + COUNT( * ) + + 24 / + 84 + + + ( - 36 ) + - NULLIF ( 32, + 16 ) / + - 61 * + COALESCE ( - 99, - - COUNT( * ) ) / - COUNT( * ) * - 94 + - + 15 + 28 + - 50
----
NULL

skipif mysql # not compatible
query I rowsort label-8296
SELECT ALL 48 * + CAST ( NULL AS INTEGER ) + - + COUNT ( * ) + + 24 / + 84 + + + ( - 36 ) + - NULLIF ( 32, + 16 ) / + - 61 * + COALESCE ( - 99, - - COUNT ( * ) ) / - COUNT ( * ) * - 94 + - + 15 + 28 + - 50
----
NULL

query I rowsort
SELECT ALL + + 80 AS col2
----
80

query I rowsort
SELECT + 5 + - + 33 AS col2
----
-28

query I rowsort
SELECT ALL 11 + + - 20 - - ( + + 39 ) * + 17 * - 52 AS col2
----
-34485

query I rowsort
SELECT ALL 28 + - - 77 AS col0
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-8301
SELECT SUM( - 85 )
----
-85

skipif mysql # not compatible
query I rowsort label-8301
SELECT SUM ( - 85 )
----
-85

query I rowsort
SELECT + 69 * + + 96
----
6624

query I rowsort
SELECT ALL ( + + 65 ) AS col0
----
65

query I rowsort
SELECT ALL 98 + 95 + - + 55 * - 3 * + 70 AS col0
----
11743

onlyif mysql # aggregate syntax: 
query I rowsort label-8305
SELECT ALL MAX( ALL - 84 ) AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-8305
SELECT ALL MAX ( ALL - 84 ) AS col2
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8306
SELECT - CASE + NULLIF ( 12, + 10 / + NULLIF ( - + 58, 88 ) ) WHEN - ( + 16 ) + CAST( + - 26 AS SIGNED ) THEN NULL WHEN + CAST( NULL AS SIGNED ) THEN 18 * - + 27 - - 57 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8306
SELECT - CASE + NULLIF ( 12, + 10 / + NULLIF ( - + 58, 88 ) ) WHEN - ( + 16 ) + CAST ( + - 26 AS INTEGER ) THEN NULL WHEN + CAST ( NULL AS INTEGER ) THEN 18 * - + 27 - - 57 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8307
SELECT DISTINCT 27 + + - 87 + + + NULLIF ( - 83, - CAST( NULL AS SIGNED ) )
----
-143

skipif mysql # not compatible
query I rowsort label-8307
SELECT DISTINCT 27 + + - 87 + + + NULLIF ( - 83, - CAST ( NULL AS INTEGER ) )
----
-143

onlyif mysql # aggregate syntax: 
query I rowsort label-8308
SELECT + 39 * + COUNT( * ) AS col1
----
39

skipif mysql # not compatible
query I rowsort label-8308
SELECT + 39 * + COUNT ( * ) AS col1
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8309
SELECT ALL 62 - + 36 * - 83 AS col1, 31 + - + CAST( NULL AS SIGNED ) + - - 97 col0
----
3050
NULL

skipif mysql # not compatible
query II rowsort label-8309
SELECT ALL 62 - + 36 * - 83 AS col1, 31 + - + CAST ( NULL AS INTEGER ) + - - 97 col0
----
3050
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8310
SELECT + ( + + 97 ) + - - CASE - MIN( + 82 ) WHEN + COUNT( * ) THEN - - MAX( - 30 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8310
SELECT + ( + + 97 ) + - - CASE - MIN ( + 82 ) WHEN + COUNT ( * ) THEN - - MAX ( - 30 ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8311
SELECT DISTINCT MAX( DISTINCT + 77 )
----
77

skipif mysql # not compatible
query I rowsort label-8311
SELECT DISTINCT MAX ( DISTINCT + 77 )
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8312
SELECT + COUNT( * ) + + + COUNT( ALL - 88 )
----
2

skipif mysql # not compatible
query I rowsort label-8312
SELECT + COUNT ( * ) + + + COUNT ( ALL - 88 )
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-8313
SELECT ALL COUNT( * ), 32 AS col1
----
1
32

skipif mysql # not compatible
query II rowsort label-8313
SELECT ALL COUNT ( * ), 32 AS col1
----
1
32

query I rowsort
SELECT ALL + - 88 * + 62
----
-5456

query II rowsort
SELECT - 15 AS col0, 60
----
-15
60

onlyif mysql # aggregate syntax: 
query II rowsort label-8316
SELECT DISTINCT - - SUM( - 53 ) * 78 AS col1, + 60 + 32
----
-4134
92

skipif mysql # not compatible
query II rowsort label-8316
SELECT DISTINCT - - SUM ( - 53 ) * 78 AS col1, + 60 + 32
----
-4134
92

query I rowsort
SELECT + + 73 * 46 AS col1
----
3358

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8318
SELECT - + 82 / + CAST( NULL AS SIGNED ) * + + 93 + - 68 * + 29
----
NULL

skipif mysql # not compatible
query I rowsort label-8318
SELECT - + 82 / + CAST ( NULL AS INTEGER ) * + + 93 + - 68 * + 29
----
NULL

query I rowsort
SELECT ALL - 62 * - 38 AS col1
----
2356

onlyif mysql # DIV for integer division: 
query I rowsort label-8320
SELECT + 4 DIV + + 67 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8320
SELECT + 4 / + + 67 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8321
SELECT DISTINCT - + MIN( - 59 ) * + ( + 46 )
----
2714

skipif mysql # not compatible
query I rowsort label-8321
SELECT DISTINCT - + MIN ( - 59 ) * + ( + 46 )
----
2714

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8322
SELECT ALL + - 58 DIV + - COUNT( * ) + 23
----
81

skipif mysql # not compatible
query I rowsort label-8322
SELECT ALL + - 58 / + - COUNT ( * ) + 23
----
81

query II rowsort
SELECT DISTINCT + - 2 col1, - 79 col1
----
-2
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8324
SELECT DISTINCT - 38 * - + 94 + + - 55 + - CAST( NULL AS SIGNED ) + + 76
----
NULL

skipif mysql # not compatible
query I rowsort label-8324
SELECT DISTINCT - 38 * - + 94 + + - 55 + - CAST ( NULL AS INTEGER ) + + 76
----
NULL

query I rowsort
SELECT - - 97 + - 65
----
32

query I rowsort
SELECT + ( - + 22 )
----
-22

onlyif mysql # DIV for integer division: 
query I rowsort label-8327
SELECT DISTINCT + - 66 DIV - + 14
----
4

skipif mysql # not compatible
query I rowsort label-8327
SELECT DISTINCT + - 66 / - + 14
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8328
SELECT - - 17 * COUNT( * )
----
17

skipif mysql # not compatible
query I rowsort label-8328
SELECT - - 17 * COUNT ( * )
----
17

query II rowsort
SELECT 5, 70 AS col1
----
5
70

query I rowsort
SELECT ALL 98 * + + 34 * - 94 + + 93 - - + 23 AS col0
----
-313092

onlyif mysql # aggregate syntax: 
query I rowsort label-8331
SELECT - MAX( - 51 ) - - 19 AS col2
----
70

skipif mysql # not compatible
query I rowsort label-8331
SELECT - MAX ( - 51 ) - - 19 AS col2
----
70

query I rowsort
SELECT DISTINCT 41 * ( - 15 ) - + 82 - 50 AS col1
----
-747

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8333
SELECT DISTINCT + 30 DIV - + 67 * + + COUNT( + 58 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8333
SELECT DISTINCT + 30 / - + 67 * + + COUNT ( + 58 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8334
SELECT 63 * 43 * + - COUNT( * ) AS col1
----
-2709

skipif mysql # not compatible
query I rowsort label-8334
SELECT 63 * 43 * + - COUNT ( * ) AS col1
----
-2709

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8335
SELECT CAST( NULL AS SIGNED ) + + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8335
SELECT CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8336
SELECT COUNT( * ) * + 93 * - SUM( + 96 ) AS col0
----
-8928

skipif mysql # not compatible
query I rowsort label-8336
SELECT COUNT ( * ) * + 93 * - SUM ( + 96 ) AS col0
----
-8928

query I rowsort
SELECT ALL 9 - + + 50
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-8338
SELECT ALL COUNT( * ) * + 90 AS col2
----
90

skipif mysql # not compatible
query I rowsort label-8338
SELECT ALL COUNT ( * ) * + 90 AS col2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-8339
SELECT COUNT( * ) * - 23 * + + 81
----
-1863

skipif mysql # not compatible
query I rowsort label-8339
SELECT COUNT ( * ) * - 23 * + + 81
----
-1863

query I rowsort
SELECT ALL 5 * - 50 + 32
----
-218

query II rowsort
SELECT ALL + 33 * - + 60, + 98 AS col0
----
-1980
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8342
SELECT + MAX( DISTINCT + + 90 ) * - 36
----
-3240

skipif mysql # not compatible
query I rowsort label-8342
SELECT + MAX ( DISTINCT + + 90 ) * - 36
----
-3240

onlyif mysql # aggregate syntax: 
query III rowsort label-8343
SELECT - 63 * 81 * 29 * + 84 AS col1, COUNT( * ) AS col0, - - SUM( DISTINCT - + 38 )
----
-12430908
1
-38

skipif mysql # not compatible
query III rowsort label-8343
SELECT - 63 * 81 * 29 * + 84 AS col1, COUNT ( * ) AS col0, - - SUM ( DISTINCT - + 38 )
----
-12430908
1
-38

query I rowsort
SELECT - 2 - 39
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-8345
SELECT ALL NULLIF ( - 48, + 23 ) + COUNT( * ) AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-8345
SELECT ALL NULLIF ( - 48, + 23 ) + COUNT ( * ) AS col2
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-8346
SELECT COUNT( * ) - + 20 col2
----
-19

skipif mysql # not compatible
query I rowsort label-8346
SELECT COUNT ( * ) - + 20 col2
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8347
SELECT + MIN( ALL + CAST( - 1 AS SIGNED ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8347
SELECT + MIN ( ALL + CAST ( - 1 AS INTEGER ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8348
SELECT - - CASE 52 WHEN + + 39 THEN + - 14 + - 9 * 0 + 51 WHEN - + 84 THEN NULL ELSE - - 72 END * COUNT( ALL + - 66 ) + 93 + + - COUNT( * ) AS col2
----
164

skipif mysql # not compatible
query I rowsort label-8348
SELECT - - CASE 52 WHEN + + 39 THEN + - 14 + - 9 * 0 + 51 WHEN - + 84 THEN NULL ELSE - - 72 END * COUNT ( ALL + - 66 ) + 93 + + - COUNT ( * ) AS col2
----
164

onlyif mysql # aggregate syntax: 
query I rowsort label-8349
SELECT + COUNT( - 31 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8349
SELECT + COUNT ( - 31 ) AS col0
----
1

query I rowsort
SELECT DISTINCT + 39 + + 94
----
133

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8351
SELECT DISTINCT + 17 * NULLIF ( + - 51, - 40 * - 55 ) AS col1, + 31 / + COALESCE ( + - 84, - - CAST( + 1 AS SIGNED ) ) * CAST( NULL AS DECIMAL ) + + + 70
----
-867
NULL

skipif mysql # not compatible
query II rowsort label-8351
SELECT DISTINCT + 17 * NULLIF ( + - 51, - 40 * - 55 ) AS col1, + 31 / + COALESCE ( + - 84, - - CAST ( + 1 AS INTEGER ) ) * CAST ( NULL AS REAL ) + + + 70
----
-867
NULL

query II rowsort
SELECT ALL + - 93 + - 66 AS col2, 30
----
-159
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8353
SELECT ALL 35 DIV + ( + NULLIF ( COUNT( * ), - 87 * - COUNT( * ) ) )
----
35

skipif mysql # not compatible
query I rowsort label-8353
SELECT ALL 35 / + ( + NULLIF ( COUNT ( * ), - 87 * - COUNT ( * ) ) )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-8354
SELECT 20 * + - MAX( - + 6 ) * - 31 * - + 53 - - MIN( 90 )
----
197250

skipif mysql # not compatible
query I rowsort label-8354
SELECT 20 * + - MAX ( - + 6 ) * - 31 * - + 53 - - MIN ( 90 )
----
197250

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8355
SELECT DISTINCT + 98 + + CAST( - + 43 AS SIGNED ) * + 19 + + - 97 AS col2, 49
----
-816
49

skipif mysql # not compatible
query II rowsort label-8355
SELECT DISTINCT + 98 + + CAST ( - + 43 AS INTEGER ) * + 19 + + - 97 AS col2, 49
----
-816
49

onlyif mysql # aggregate syntax: 
query I rowsort label-8356
SELECT ALL + CASE + 10 WHEN 18 + - 27 + 38 THEN NULL WHEN + 15 THEN - COUNT( * ) END + + 21
----
NULL

skipif mysql # not compatible
query I rowsort label-8356
SELECT ALL + CASE + 10 WHEN 18 + - 27 + 38 THEN NULL WHEN + 15 THEN - COUNT ( * ) END + + 21
----
NULL

query I rowsort
SELECT - 45 + - 52 + - + 66
----
-163

query II rowsort
SELECT 98 AS col1, - 54 * - - 16 + ( 94 ) AS col1
----
98
-770

query II rowsort
SELECT 6, + 14 * + 48 col0
----
6
672

query I rowsort
SELECT ALL - 89 - 36
----
-125

query I rowsort
SELECT 57 * 53 AS col2
----
3021

onlyif mysql # DIV for integer division: 
query I rowsort label-8362
SELECT ALL + 44 DIV - 43 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8362
SELECT ALL + 44 / - 43 AS col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8363
SELECT 76 DIV + - COUNT( * ) AS col2
----
-76

skipif mysql # not compatible
query I rowsort label-8363
SELECT 76 / + - COUNT ( * ) AS col2
----
-76

query I rowsort
SELECT 92 + + 66 - 0 + 88 AS col0
----
246

query II rowsort
SELECT ALL 45, 58 AS col0
----
45
58

query I rowsort
SELECT DISTINCT + 26 * - + 0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8367
SELECT COUNT( * ) DIV + 43
----
0

skipif mysql # not compatible
query I rowsort label-8367
SELECT COUNT ( * ) / + 43
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8368
SELECT 8 + 3 + + 56 AS col1, NULLIF ( + 93, - 77 + - CAST( NULL AS SIGNED ) ) + + + COUNT( * )
----
67
94

skipif mysql # not compatible
query II rowsort label-8368
SELECT 8 + 3 + + 56 AS col1, NULLIF ( + 93, - 77 + - CAST ( NULL AS INTEGER ) ) + + + COUNT ( * )
----
67
94

onlyif mysql # aggregate syntax: 
query II rowsort label-8369
SELECT 46 AS col2, NULLIF ( - COUNT( * ), 18 + - 36 + + + 41 )
----
46
-1

skipif mysql # not compatible
query II rowsort label-8369
SELECT 46 AS col2, NULLIF ( - COUNT ( * ), 18 + - 36 + + + 41 )
----
46
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8370
SELECT COUNT( * ) + COUNT( 77 ) * - - ( - + 29 )
----
-28

skipif mysql # not compatible
query I rowsort label-8370
SELECT COUNT ( * ) + COUNT ( 77 ) * - - ( - + 29 )
----
-28

query I rowsort
SELECT 49 + COALESCE ( - 23, - + ( + 40 ) + ( + + 88 ) )
----
26

query I rowsort
SELECT ALL - + 29 + 31
----
2

query I rowsort
SELECT - 60 * + - 53
----
3180

query I rowsort
SELECT ALL - 71 + - 37
----
-108

query I rowsort
SELECT + 0 + 94 - - 41
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-8376
SELECT DISTINCT + + COUNT( * ) + - 48 col2
----
-47

skipif mysql # not compatible
query I rowsort label-8376
SELECT DISTINCT + + COUNT ( * ) + - 48 col2
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-8377
SELECT ALL - 79 + - COUNT( * )
----
-80

skipif mysql # not compatible
query I rowsort label-8377
SELECT ALL - 79 + - COUNT ( * )
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8378
SELECT DISTINCT - - 87 + - + ( CASE - + 88 WHEN + 13 * + 55 THEN COUNT( * ) ELSE - NULLIF ( - 97, + CASE - - ( - + 50 ) WHEN CAST( NULL AS SIGNED ) * - 0 THEN NULL ELSE - + COUNT( * ) END ) * + MIN( ALL - 10 ) * + - 87 + 42 END )
----
-84345

skipif mysql # not compatible
query I rowsort label-8378
SELECT DISTINCT - - 87 + - + ( CASE - + 88 WHEN + 13 * + 55 THEN COUNT ( * ) ELSE - NULLIF ( - 97, + CASE - - ( - + 50 ) WHEN CAST ( NULL AS INTEGER ) * - 0 THEN NULL ELSE - + COUNT ( * ) END ) * + MIN ( ALL - 10 ) * + - 87 + 42 END )
----
-84345

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8379
SELECT - CAST( + + 76 AS SIGNED )
----
-76

skipif mysql # not compatible
query I rowsort label-8379
SELECT - CAST ( + + 76 AS INTEGER )
----
-76

query I rowsort
SELECT ALL 80 + 10
----
90

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8381
SELECT 24 * 21 * - + COUNT( * ) * 57 * - 33 * - ( 98 ) + 25 AS col2, 73 + - ( + AVG ( 31 ) ) - CAST( NULL AS DECIMAL ) + - 6
----
-92906327
NULL

skipif mysql # not compatible
query II rowsort label-8381
SELECT 24 * 21 * - + COUNT ( * ) * 57 * - 33 * - ( 98 ) + 25 AS col2, 73 + - ( + AVG ( 31 ) ) - CAST ( NULL AS REAL ) + - 6
----
-92906327
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8382
SELECT ALL 24 * + COALESCE ( + + 5, - CAST( NULL AS SIGNED ) - + - 61, + - 60 ) + - + 7 AS col2
----
113

skipif mysql # not compatible
query I rowsort label-8382
SELECT ALL 24 * + COALESCE ( + + 5, - CAST ( NULL AS INTEGER ) - + - 61, + - 60 ) + - + 7 AS col2
----
113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8383
SELECT + + COUNT( * ) DIV - CAST( SUM( DISTINCT + 59 ) AS SIGNED ) + 65 + - 56 + 50 - - 16 * + 55 AS col1
----
939

skipif mysql # not compatible
query I rowsort label-8383
SELECT + + COUNT ( * ) / - CAST ( SUM ( DISTINCT + 59 ) AS INTEGER ) + 65 + - 56 + 50 - - 16 * + 55 AS col1
----
939

onlyif mysql # aggregate syntax: 
query I rowsort label-8384
SELECT DISTINCT - COUNT( * ) * + 19 * + 12
----
-228

skipif mysql # not compatible
query I rowsort label-8384
SELECT DISTINCT - COUNT ( * ) * + 19 * + 12
----
-228

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8385
SELECT + NULLIF ( COUNT( * ), 12 ), + 68 * - + COUNT( * ) + ( - 2 ) + - + MAX( + 1 ) DIV + 53 AS col1
----
1
-70

skipif mysql # not compatible
query II rowsort label-8385
SELECT + NULLIF ( COUNT ( * ), 12 ), + 68 * - + COUNT ( * ) + ( - 2 ) + - + MAX ( + 1 ) / + 53 AS col1
----
1
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-8386
SELECT - SUM( DISTINCT ( - 13 ) ) col0
----
13

skipif mysql # not compatible
query I rowsort label-8386
SELECT - SUM ( DISTINCT ( - 13 ) ) col0
----
13

query I rowsort
SELECT + + 90 AS col0
----
90

query I rowsort
SELECT + 99 * + + 68
----
6732

onlyif mysql # aggregate syntax: 
query I rowsort label-8389
SELECT DISTINCT 40 / CASE - 11 WHEN - - COALESCE ( 39, - 83, - 98 + - 64 / 81 * + + 10, + COUNT( + 71 ) ) THEN NULL WHEN COALESCE ( + 40, - 99 ) THEN COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8389
SELECT DISTINCT 40 / CASE - 11 WHEN - - COALESCE ( 39, - 83, - 98 + - 64 / 81 * + + 10, + COUNT ( + 71 ) ) THEN NULL WHEN COALESCE ( + 40, - 99 ) THEN COUNT ( * ) END
----
NULL

query I rowsort
SELECT ALL - 96 col0
----
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-8391
SELECT + 64 * - - 42 AS col1, COUNT( * ) - + 89 + 75 * + NULLIF ( + 50, + + CASE + 6 WHEN 35 THEN 95 * - 44 * - - COUNT( + 23 ) * + + COUNT( * ) + 12 + + 25 + 98 - + + 86 - - 75 ELSE - 45 END ) + + 13
----
2688
3675

skipif mysql # not compatible
query II rowsort label-8391
SELECT + 64 * - - 42 AS col1, COUNT ( * ) - + 89 + 75 * + NULLIF ( + 50, + + CASE + 6 WHEN 35 THEN 95 * - 44 * - - COUNT ( + 23 ) * + + COUNT ( * ) + 12 + + 25 + 98 - + + 86 - - 75 ELSE - 45 END ) + + 13
----
2688
3675

onlyif mysql # aggregate syntax: 
query II rowsort label-8392
SELECT ALL - COUNT( * ) * 90, - COUNT( * ) AS col0
----
-90
-1

skipif mysql # not compatible
query II rowsort label-8392
SELECT ALL - COUNT ( * ) * 90, - COUNT ( * ) AS col0
----
-90
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8393
SELECT + NULLIF ( - 68, - - 13 ) * + - CASE WHEN 42 NOT BETWEEN + ( 25 ) AND + + 99 THEN NULL ELSE CASE - CAST( NULL AS SIGNED ) WHEN + 38 THEN - 51 ELSE NULL END / + + 52 * + 69 END + - COUNT( - - 70 ) + - 57
----
NULL

skipif mysql # not compatible
query I rowsort label-8393
SELECT + NULLIF ( - 68, - - 13 ) * + - CASE WHEN 42 NOT BETWEEN + ( 25 ) AND + + 99 THEN NULL ELSE CASE - CAST ( NULL AS INTEGER ) WHEN + 38 THEN - 51 ELSE NULL END / + + 52 * + 69 END + - COUNT ( - - 70 ) + - 57
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8394
SELECT ALL + 12, - COUNT( * ) * - + 93 AS col0
----
12
93

skipif mysql # not compatible
query II rowsort label-8394
SELECT ALL + 12, - COUNT ( * ) * - + 93 AS col0
----
12
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8395
SELECT + 58 * NULLIF ( + 15, + 31 * 97 - - CAST( NULL AS SIGNED ) ) + + 41
----
911

skipif mysql # not compatible
query I rowsort label-8395
SELECT + 58 * NULLIF ( + 15, + 31 * 97 - - CAST ( NULL AS INTEGER ) ) + + 41
----
911

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8396
SELECT COUNT( * ) * + - CAST( NULL AS SIGNED ) * + 67 * - 4 * - + 33 + + - COALESCE ( - COALESCE ( + 17, - + 89, - 47 ), + 14, ( - CASE + - 84 WHEN + 63 THEN NULL WHEN - 7 * - 85 THEN 83 END ) / - 55 / + - 78 + - NULLIF ( + COUNT( * ), + 11 ) / + 98 / + 43, - 27 * + 2 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8396
SELECT COUNT ( * ) * + - CAST ( NULL AS INTEGER ) * + 67 * - 4 * - + 33 + + - COALESCE ( - COALESCE ( + 17, - + 89, - 47 ), + 14, ( - CASE + - 84 WHEN + 63 THEN NULL WHEN - 7 * - 85 THEN 83 END ) / - 55 / + - 78 + - NULLIF ( + COUNT ( * ), + 11 ) / + 98 / + 43, - 27 * + 2 ) AS col1
----
NULL

query I rowsort
SELECT ALL 39 * + 94 * + ( 41 ) * + - 75 * 84 AS col1
----
-946927800

onlyif mysql # aggregate syntax: 
query I rowsort label-8398
SELECT + NULLIF ( + + 77, - 84 / + ( - ( - + 2 ) ) ) * - 41 * + + COALESCE ( + SUM( ALL + 25 ), - MAX( - 46 ) ) * + 61 * - 44 + - 32
----
211834668

skipif mysql # not compatible
query I rowsort label-8398
SELECT + NULLIF ( + + 77, - 84 / + ( - ( - + 2 ) ) ) * - 41 * + + COALESCE ( + SUM ( ALL + 25 ), - MAX ( - 46 ) ) * + 61 * - 44 + - 32
----
211834668

query I rowsort
SELECT - 10 * + - ( COALESCE ( ( - 3 ), + 37 * - 32 ) )
----
-30

onlyif mysql # DIV for integer division: 
query II rowsort label-8400
SELECT ALL + 47 col2, 57 DIV + + 27 + + + ( + - 49 ) - - + 34
----
47
-13

skipif mysql # not compatible
query II rowsort label-8400
SELECT ALL + 47 col2, 57 / + + 27 + + + ( + - 49 ) - - + 34
----
47
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8401
SELECT + CAST( 0 AS SIGNED ) - - 16
----
16

skipif mysql # not compatible
query I rowsort label-8401
SELECT + CAST ( 0 AS INTEGER ) - - 16
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8402
SELECT + CAST( 73 AS SIGNED ) * - ( - - COUNT( * ) ) * - + 59
----
4307

skipif mysql # not compatible
query I rowsort label-8402
SELECT + CAST ( 73 AS INTEGER ) * - ( - - COUNT ( * ) ) * - + 59
----
4307

onlyif mysql # aggregate syntax: 
query I rowsort label-8403
SELECT ALL SUM( ALL + - ( - - NULLIF ( ( + - 81 ), 22 * ( - 10 ) + - 35 ) ) ) AS col1
----
81

skipif mysql # not compatible
query I rowsort label-8403
SELECT ALL SUM ( ALL + - ( - - NULLIF ( ( + - 81 ), 22 * ( - 10 ) + - 35 ) ) ) AS col1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8404
SELECT ALL - NULLIF ( - + COUNT( * ), 0 ) + - 41
----
-40

skipif mysql # not compatible
query I rowsort label-8404
SELECT ALL - NULLIF ( - + COUNT ( * ), 0 ) + - 41
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-8405
SELECT ALL MIN( - - 25 )
----
25

skipif mysql # not compatible
query I rowsort label-8405
SELECT ALL MIN ( - - 25 )
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8406
SELECT + CAST( NULL AS SIGNED ) * - 42 / + 56 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8406
SELECT + CAST ( NULL AS INTEGER ) * - 42 / + 56 AS col2
----
NULL

query I rowsort
SELECT - 44 * + - 79 AS col1
----
3476

onlyif mysql # aggregate syntax: 
query II rowsort label-8408
SELECT - 26 * + - 53 - + COUNT( * ) * - - 80 * + + 47 + COUNT( 54 ), + 70 + 5 AS col2
----
-2381
75

skipif mysql # not compatible
query II rowsort label-8408
SELECT - 26 * + - 53 - + COUNT ( * ) * - - 80 * + + 47 + COUNT ( 54 ), + 70 + 5 AS col2
----
-2381
75

onlyif mysql # aggregate syntax: 
query II rowsort label-8409
SELECT - + COUNT( * ) AS col1, + 95 AS col0
----
-1
95

skipif mysql # not compatible
query II rowsort label-8409
SELECT - + COUNT ( * ) AS col1, + 95 AS col0
----
-1
95

onlyif mysql # aggregate syntax: 
query I rowsort label-8410
SELECT DISTINCT 63 + 56 * - + 60 * - + 87 * 47 * + - 38 + - + ( COUNT( * ) ) * - 1 * - 38
----
-522083495

skipif mysql # not compatible
query I rowsort label-8410
SELECT DISTINCT 63 + 56 * - + 60 * - + 87 * 47 * + - 38 + - + ( COUNT ( * ) ) * - 1 * - 38
----
-522083495

query I rowsort
SELECT ALL + - 97 + - 37
----
-134

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8412
SELECT ALL - 34 + - - COALESCE ( - - 63, 19 - - - CAST( MIN( - 14 ) AS SIGNED ) * 51 + + 64 DIV 49 )
----
29

skipif mysql # not compatible
query I rowsort label-8412
SELECT ALL - 34 + - - COALESCE ( - - 63, 19 - - - CAST ( MIN ( - 14 ) AS INTEGER ) * 51 + + 64 / 49 )
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8413
SELECT DISTINCT CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) + + MAX( ALL + 41 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8413
SELECT DISTINCT CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) + + MAX ( ALL + 41 ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8414
SELECT - 77 + - 54 AS col2, CAST( - 27 AS SIGNED ) AS col0
----
-131
-27

skipif mysql # not compatible
query II rowsort label-8414
SELECT - 77 + - 54 AS col2, CAST ( - 27 AS INTEGER ) AS col0
----
-131
-27

onlyif mysql # aggregate syntax: 
query II rowsort label-8415
SELECT ALL + + COUNT( * ) - + 9 AS col2, + 97
----
-8
97

skipif mysql # not compatible
query II rowsort label-8415
SELECT ALL + + COUNT ( * ) - + 9 AS col2, + 97
----
-8
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8416
SELECT - + 93 - - + COUNT( * )
----
-92

skipif mysql # not compatible
query I rowsort label-8416
SELECT - + 93 - - + COUNT ( * )
----
-92

onlyif mysql # aggregate syntax: 
query II rowsort label-8417
SELECT - 8, - 90 * - - COUNT( * ) * - MAX( - + 7 ) + - - COUNT( * ) AS col0
----
-8
-629

skipif mysql # not compatible
query II rowsort label-8417
SELECT - 8, - 90 * - - COUNT ( * ) * - MAX ( - + 7 ) + - - COUNT ( * ) AS col0
----
-8
-629

onlyif mysql # aggregate syntax: 
query II rowsort label-8418
SELECT + COUNT( * ) AS col1, 9 + + - MAX( DISTINCT 41 ) + - ( + - 81 )
----
1
49

skipif mysql # not compatible
query II rowsort label-8418
SELECT + COUNT ( * ) AS col1, 9 + + - MAX ( DISTINCT 41 ) + - ( + - 81 )
----
1
49

query I rowsort
SELECT - - 18 + - + 34 + + 93
----
77

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8420
SELECT ALL + 33 AS col1, COALESCE ( - 65, - 60 * - 62 + 64 * - 95 + CAST( NULL AS SIGNED ) + - + ( + 99 ), + + 68 ) DIV 61 AS col2
----
33
-1

skipif mysql # not compatible
query II rowsort label-8420
SELECT ALL + 33 AS col1, COALESCE ( - 65, - 60 * - 62 + 64 * - 95 + CAST ( NULL AS INTEGER ) + - + ( + 99 ), + + 68 ) / 61 AS col2
----
33
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8421
SELECT ALL + + MIN( + + ( - + 41 ) )
----
-41

skipif mysql # not compatible
query I rowsort label-8421
SELECT ALL + + MIN ( + + ( - + 41 ) )
----
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8422
SELECT + - 53 DIV - + ( - 96 ) * - COUNT( * ) + - + 89 + + SUM( + 59 ) DIV + 4
----
-75

skipif mysql # not compatible
query I rowsort label-8422
SELECT + - 53 / - + ( - 96 ) * - COUNT ( * ) + - + 89 + + SUM ( + 59 ) / + 4
----
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8423
SELECT ALL + - COUNT( ALL + 38 ) DIV + 72 - - 37 DIV - 90 + - 45 AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-8423
SELECT ALL + - COUNT ( ALL + 38 ) / + 72 - - 37 / - 90 + - 45 AS col0
----
-45

query I rowsort
SELECT - 36 * 50 AS col0
----
-1800

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8425
SELECT ALL NULLIF ( - CAST( NULL AS DECIMAL ), - 2 * - 10 ) / + COUNT( * ) - 25 + + 73
----
NULL

skipif mysql # not compatible
query I rowsort label-8425
SELECT ALL NULLIF ( - CAST ( NULL AS REAL ), - 2 * - 10 ) / + COUNT ( * ) - 25 + + 73
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8426
SELECT + + MIN( ALL 84 ) AS col2, - 40
----
84
-40

skipif mysql # not compatible
query II rowsort label-8426
SELECT + + MIN ( ALL 84 ) AS col2, - 40
----
84
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8427
SELECT ALL 34 * MIN( + + 92 ) DIV SUM( - 11 ) DIV + 87 + + 43 + 63 AS col2
----
103

skipif mysql # not compatible
query I rowsort label-8427
SELECT ALL 34 * MIN ( + + 92 ) / SUM ( - 11 ) / + 87 + + 43 + 63 AS col2
----
103

query I rowsort
SELECT - 52 * - 72 AS col0
----
3744

onlyif mysql # aggregate syntax: 
query I rowsort label-8429
SELECT + 54 * + 94 + COUNT( * )
----
5077

skipif mysql # not compatible
query I rowsort label-8429
SELECT + 54 * + 94 + COUNT ( * )
----
5077

onlyif mysql # aggregate syntax: 
query I rowsort label-8430
SELECT ( - - MIN( 46 ) ) AS col1
----
46

skipif mysql # not compatible
query I rowsort label-8430
SELECT ( - - MIN ( 46 ) ) AS col1
----
46

query I rowsort
SELECT ( + 48 )
----
48

query I rowsort
SELECT + 10 * + 47 AS col1
----
470

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8433
SELECT + MIN( + 33 ) DIV + + 23 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8433
SELECT + MIN ( + 33 ) / + + 23 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8434
SELECT ALL + NULLIF ( 66, 30 + - 69 * - 81 + 72 ) * - + 59 + 35 + + 34 + + - MIN( - 97 ) AS col1
----
-3728

skipif mysql # not compatible
query I rowsort label-8434
SELECT ALL + NULLIF ( 66, 30 + - 69 * - 81 + 72 ) * - + 59 + 35 + + 34 + + - MIN ( - 97 ) AS col1
----
-3728

onlyif mysql # aggregate syntax: 
query I rowsort label-8435
SELECT ALL + MIN( - 78 )
----
-78

skipif mysql # not compatible
query I rowsort label-8435
SELECT ALL + MIN ( - 78 )
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8436
SELECT + ( CAST( + 98 AS SIGNED ) ) col2
----
98

skipif mysql # not compatible
query I rowsort label-8436
SELECT + ( CAST ( + 98 AS INTEGER ) ) col2
----
98

query II rowsort
SELECT + ( + + 51 ) AS col2, 15 AS col0
----
51
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8438
SELECT + 27 + - + COALESCE ( COUNT( * ), + COUNT( * ) )
----
26

skipif mysql # not compatible
query I rowsort label-8438
SELECT + 27 + - + COALESCE ( COUNT ( * ), + COUNT ( * ) )
----
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8439
SELECT + 44 DIV - SUM( ALL + + 33 )
----
-1

skipif mysql # not compatible
query I rowsort label-8439
SELECT + 44 / - SUM ( ALL + + 33 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8440
SELECT ALL + CAST( NULL AS DECIMAL ) * - + 3 + + 74 + MIN( ALL + 41 ) * - COUNT( * ) * + 35 + - + 10 AS col1, COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-8440
SELECT ALL + CAST ( NULL AS REAL ) * - + 3 + + 74 + MIN ( ALL + 41 ) * - COUNT ( * ) * + 35 + - + 10 AS col1, COUNT ( * )
----
NULL
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8441
SELECT + CASE 60 WHEN - COUNT( * ) * MAX( ALL - 37 ) + + 1 THEN - 41 WHEN - 84 + + - 1 * 69 THEN NULL ELSE NULL END AS col0, 41
----
NULL
41

skipif mysql # not compatible
query II rowsort label-8441
SELECT + CASE 60 WHEN - COUNT ( * ) * MAX ( ALL - 37 ) + + 1 THEN - 41 WHEN - 84 + + - 1 * 69 THEN NULL ELSE NULL END AS col0, 41
----
NULL
41

query I rowsort
SELECT + 20 * + + 55
----
1100

query I rowsort
SELECT + 32 + + 33 + + 29 + 98 AS col2
----
192

onlyif mysql # aggregate syntax: 
query I rowsort label-8444
SELECT MIN( - 19 )
----
-19

skipif mysql # not compatible
query I rowsort label-8444
SELECT MIN ( - 19 )
----
-19

onlyif mysql # DIV for integer division: 
query IIII rowsort label-8445
SELECT - 21 * 0 + + 16 + + ( - - 49 ) DIV 67 * 33 AS col1, 18, + ( - 24 ) AS col0, + 89 + 56 AS col1
----
16
18
-24
145

skipif mysql # not compatible
query IIII rowsort label-8445
SELECT - 21 * 0 + + 16 + + ( - - 49 ) / 67 * 33 AS col1, 18, + ( - 24 ) AS col0, + 89 + 56 AS col1
----
16
18
-24
145

onlyif mysql # aggregate syntax: 
query I rowsort label-8446
SELECT ALL + - COUNT( * ) * - 63 + 61 * + 94
----
5797

skipif mysql # not compatible
query I rowsort label-8446
SELECT ALL + - COUNT ( * ) * - 63 + 61 * + 94
----
5797

query I rowsort
SELECT + + 57 + - 46 AS col0
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8448
SELECT DISTINCT - CAST( ( + 90 ) AS SIGNED ) AS col0
----
-90

skipif mysql # not compatible
query I rowsort label-8448
SELECT DISTINCT - CAST ( ( + 90 ) AS INTEGER ) AS col0
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8449
SELECT ALL NULLIF ( + 37, - + 25 ), CAST( NULL AS SIGNED ) AS col1
----
37
NULL

skipif mysql # not compatible
query II rowsort label-8449
SELECT ALL NULLIF ( + 37, - + 25 ), CAST ( NULL AS INTEGER ) AS col1
----
37
NULL

query I rowsort
SELECT - - 83 + 92 AS col0
----
175

query I rowsort
SELECT ALL + 2 - + - 94 * 38
----
3574

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8452
SELECT - - COUNT( * ) + + CASE - COUNT( * ) WHEN + 21 THEN NULL ELSE + 19 DIV 90 END
----
1

skipif mysql # not compatible
query I rowsort label-8452
SELECT - - COUNT ( * ) + + CASE - COUNT ( * ) WHEN + 21 THEN NULL ELSE + 19 / 90 END
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8453
SELECT - 54 * 70 + + - 28 + - + 24 * + CAST( NULL AS SIGNED ) * - 77 * COUNT( * ) AS col2, + ( - MAX( - 41 ) )
----
NULL
41

skipif mysql # not compatible
query II rowsort label-8453
SELECT - 54 * 70 + + - 28 + - + 24 * + CAST ( NULL AS INTEGER ) * - 77 * COUNT ( * ) AS col2, + ( - MAX ( - 41 ) )
----
NULL
41

query I rowsort
SELECT - 98 + 41 + + + ( 87 ) * - - 26 AS col2
----
2205

query I rowsort
SELECT ALL - 78 * 40 AS col0
----
-3120

query II rowsort
SELECT - + 56 * - 89, 64 * + + 60 - - 38 + 63 AS col1
----
4984
3941

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8457
SELECT - 87 / + CAST( NULL AS SIGNED ) * - 22 + + + COALESCE ( ( 82 ), + + 99 * - COUNT( * ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8457
SELECT - 87 / + CAST ( NULL AS INTEGER ) * - 22 + + + COALESCE ( ( 82 ), + + 99 * - COUNT ( * ) ) AS col2
----
NULL

query I rowsort
SELECT 86 + - 93 AS col1
----
-7

query I rowsort
SELECT 57 * 91
----
5187

query I rowsort
SELECT 92 * - 84 * - - 76
----
-587328

onlyif mysql # aggregate syntax: 
query I rowsort label-8461
SELECT COUNT( - 11 ) * + + 4
----
4

skipif mysql # not compatible
query I rowsort label-8461
SELECT COUNT ( - 11 ) * + + 4
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8462
SELECT COUNT( * ) DIV - 29
----
0

skipif mysql # not compatible
query I rowsort label-8462
SELECT COUNT ( * ) / - 29
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8463
SELECT ALL + 85 DIV + 99 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8463
SELECT ALL + 85 / + 99 AS col0
----
0

query I rowsort
SELECT 82 * + + 64
----
5248

onlyif mysql # aggregate syntax: 
query I rowsort label-8465
SELECT DISTINCT CASE + 38 WHEN - 48 THEN + 96 WHEN + COUNT( * ) - - + 99 - - NULLIF ( + 44, 46 ) THEN NULL ELSE NULL END + + - 20 - - NULLIF ( - 76, - COALESCE ( NULLIF ( + - 59, + 21 * 56 * + 51 + - - COUNT( * ) ), + + COUNT( * ) ) ) * + - 77 / 90
----
NULL

skipif mysql # not compatible
query I rowsort label-8465
SELECT DISTINCT CASE + 38 WHEN - 48 THEN + 96 WHEN + COUNT ( * ) - - + 99 - - NULLIF ( + 44, 46 ) THEN NULL ELSE NULL END + + - 20 - - NULLIF ( - 76, - COALESCE ( NULLIF ( + - 59, + 21 * 56 * + 51 + - - COUNT ( * ) ), + + COUNT ( * ) ) ) * + - 77 / 90
----
NULL

query I rowsort
SELECT ALL 45 * + 4 AS col0
----
180

query I rowsort
SELECT DISTINCT + 67 + - 84 AS col1
----
-17

query I rowsort
SELECT 76 + - 40 AS col1
----
36

query II rowsort
SELECT + 86 AS col2, 57
----
86
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8470
SELECT - COUNT( * ) * - + COUNT( + - 12 ) + 95 + - 60 DIV - + ( + COUNT( * ) )
----
156

skipif mysql # not compatible
query I rowsort label-8470
SELECT - COUNT ( * ) * - + COUNT ( + - 12 ) + 95 + - 60 / - + ( + COUNT ( * ) )
----
156

query I rowsort
SELECT DISTINCT + 50 + + ( 43 )
----
93

query I rowsort
SELECT ALL - 95 + + 41 col0
----
-54

query II rowsort
SELECT + 95, + 69 col2
----
95
69

query I rowsort
SELECT DISTINCT + 50 + 71
----
121

query I rowsort
SELECT DISTINCT 37 + - 73 AS col0
----
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-8476
SELECT DISTINCT - - 45 AS col0, - 99 * 4 * + - COUNT( * ) * - - ( - 80 ) AS col0
----
45
-31680

skipif mysql # not compatible
query II rowsort label-8476
SELECT DISTINCT - - 45 AS col0, - 99 * 4 * + - COUNT ( * ) * - - ( - 80 ) AS col0
----
45
-31680

query I rowsort
SELECT ALL - 92 + 59
----
-33

query I rowsort
SELECT + 93 * 30 AS col0
----
2790

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8479
SELECT ALL CASE - + 86 WHEN + ( + 23 ) + - 98 + 25 / - 37 / + - 36 + 0 THEN + 59 WHEN 67 THEN ( - - 77 ) - + - 29 * CASE - + 72 WHEN 80 THEN - COUNT( * ) * - 23 * + 99 / - 2 * - COUNT( * ) + - COUNT( * ) + + 20 / COUNT( * ) * 4 * - 56 WHEN + 31 THEN - CASE - 36 WHEN - - NULLIF ( - + 25, + 59 * 25 * + COUNT( * ) * + 49 * - CAST( NULL AS SIGNED ) * + + 1 * - + 54 + - 36 + - 63 * 92 * - 7 ) THEN + - ( + + ( + - 25 ) ) WHEN - CAST( NULL AS SIGNED ) + + 79 * - 11 THEN NULL END * ( + 12 ) - + 43 ELSE - 66 + COUNT( * ) END + + 23 WHEN 83 THEN - 96 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8479
SELECT ALL CASE - + 86 WHEN + ( + 23 ) + - 98 + 25 / - 37 / + - 36 + 0 THEN + 59 WHEN 67 THEN ( - - 77 ) - + - 29 * CASE - + 72 WHEN 80 THEN - COUNT ( * ) * - 23 * + 99 / - 2 * - COUNT ( * ) + - COUNT ( * ) + + 20 / COUNT ( * ) * 4 * - 56 WHEN + 31 THEN - CASE - 36 WHEN - - NULLIF ( - + 25, + 59 * 25 * + COUNT ( * ) * + 49 * - CAST ( NULL AS INTEGER ) * + + 1 * - + 54 + - 36 + - 63 * 92 * - 7 ) THEN + - ( + + ( + - 25 ) ) WHEN - CAST ( NULL AS INTEGER ) + + 79 * - 11 THEN NULL END * ( + 12 ) - + 43 ELSE - 66 + COUNT ( * ) END + + 23 WHEN 83 THEN - 96 END
----
NULL

query II rowsort
SELECT DISTINCT 80 AS col2, 26
----
80
26

onlyif mysql # aggregate syntax: 
query II rowsort label-8481
SELECT - 2 AS col1, COUNT( * ) + 79 AS col1
----
-2
80

skipif mysql # not compatible
query II rowsort label-8481
SELECT - 2 AS col1, COUNT ( * ) + 79 AS col1
----
-2
80

onlyif mysql # aggregate syntax: 
query I rowsort label-8482
SELECT - ( - NULLIF ( + ( + COUNT( * ) ), + + 3 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8482
SELECT - ( - NULLIF ( + ( + COUNT ( * ) ), + + 3 ) ) AS col0
----
1

query I rowsort
SELECT ALL 85 - 23 AS col1
----
62

query II rowsort
SELECT - - 53 col0, - 68
----
53
-68

query I rowsort
SELECT ALL 12 * + + 84 AS col2
----
1008

query II rowsort
SELECT DISTINCT - 4 AS col0, + 12 AS col1
----
-4
12

query I rowsort
SELECT + 18 - + 65
----
-47

query II rowsort
SELECT - 43 AS col1, 43
----
-43
43

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8489
SELECT - 54 * - 85 + + 10 * + - 57 * - + 93 * + 35 / 47 / - + CAST( NULL AS DECIMAL ) * - 62 + - 25 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8489
SELECT - 54 * - 85 + + 10 * + - 57 * - + 93 * + 35 / 47 / - + CAST ( NULL AS REAL ) * - 62 + - 25 AS col1
----
NULL

query II rowsort
SELECT 67 + - 29 AS col0, 10 * - 89
----
38
-890

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8491
SELECT 5 * - 54 * MIN( - - 42 ) * - CAST( NULL AS SIGNED ) * + CASE - + ( - 91 ) WHEN + 0 + COALESCE ( + CAST( NULL AS SIGNED ), + ( - + COALESCE ( + 13, - 79 * + ( 1 ) + - 4, - COUNT( * ) ) ) * 21 + ( + + 93 ) * 85 * - CASE + + 3 WHEN - + 86 THEN + + 52 - COUNT( * ) WHEN + - 67 THEN - 56 * + + MIN( DISTINCT 24 ) * + 40 END - - - 56 * - CASE - SUM( ALL 24 ) WHEN - CAST( NULL AS SIGNED ) * - 83 THEN - 96 * + + MAX( + 85 ) + - - COUNT( * ) WHEN + + 9 THEN 0 ELSE 63 * - 92 END + 11 * - 20 * 62 - + 76, COUNT( * ) * 78 + 36 * + 40 ) + + 4 THEN 63 END * COUNT( * ) + 42 / - 22
----
NULL

skipif mysql # not compatible
query I rowsort label-8491
SELECT 5 * - 54 * MIN ( - - 42 ) * - CAST ( NULL AS INTEGER ) * + CASE - + ( - 91 ) WHEN + 0 + COALESCE ( + CAST ( NULL AS INTEGER ), + ( - + COALESCE ( + 13, - 79 * + ( 1 ) + - 4, - COUNT ( * ) ) ) * 21 + ( + + 93 ) * 85 * - CASE + + 3 WHEN - + 86 THEN + + 52 - COUNT ( * ) WHEN + - 67 THEN - 56 * + + MIN ( DISTINCT 24 ) * + 40 END - - - 56 * - CASE - SUM ( ALL 24 ) WHEN - CAST ( NULL AS INTEGER ) * - 83 THEN - 96 * + + MAX ( + 85 ) + - - COUNT ( * ) WHEN + + 9 THEN 0 ELSE 63 * - 92 END + 11 * - 20 * 62 - + 76, COUNT ( * ) * 78 + 36 * + 40 ) + + 4 THEN 63 END * COUNT ( * ) + 42 / - 22
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8492
SELECT ( 8 ) / - ( + 51 ) + - 21 / - + 81 + + 37 + - ( 48 ) + 97 * + CAST( NULL AS SIGNED ) + COALESCE ( 57, - 86 * + COUNT( * ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8492
SELECT ( 8 ) / - ( + 51 ) + - 21 / - + 81 + + 37 + - ( 48 ) + 97 * + CAST ( NULL AS INTEGER ) + COALESCE ( 57, - 86 * + COUNT ( * ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8493
SELECT ALL + COUNT( + 70 ) + 93
----
94

skipif mysql # not compatible
query I rowsort label-8493
SELECT ALL + COUNT ( + 70 ) + 93
----
94

onlyif mysql # aggregate syntax: 
query II rowsort label-8494
SELECT 99 * + - 65 + - 93 + + 19 AS col1, + 0 * - + 35 + 84 - - SUM( - 86 ) AS col2
----
-6509
-2

skipif mysql # not compatible
query II rowsort label-8494
SELECT 99 * + - 65 + - 93 + + 19 AS col1, + 0 * - + 35 + 84 - - SUM ( - 86 ) AS col2
----
-6509
-2

query II rowsort
SELECT 11 + - 60 AS col2, + 65
----
-49
65

onlyif mysql # aggregate syntax: 
query I rowsort label-8496
SELECT 17 * - COUNT( * ) AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-8496
SELECT 17 * - COUNT ( * ) AS col1
----
-17

query I rowsort
SELECT - 8 * + 18 + + + 29 AS col1
----
-115

query I rowsort
SELECT 7 * ( 89 ) AS col2
----
623

onlyif mysql # aggregate syntax: 
query III rowsort label-8499
SELECT DISTINCT - 18 + + 44 + - 16 + - + 78 * 70 AS col1, COUNT( ALL + 49 ), + COUNT( * )
----
-5450
1
1

skipif mysql # not compatible
query III rowsort label-8499
SELECT DISTINCT - 18 + + 44 + - 16 + - + 78 * 70 AS col1, COUNT ( ALL + 49 ), + COUNT ( * )
----
-5450
1
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8500
SELECT 37 * - - 77 + + AVG ( ALL + + 15 ) * - CASE - 43 WHEN - 30 / - - 65 THEN + MIN( ALL + 38 ) + - + COUNT( ALL - - CAST( + 69 AS SIGNED ) ) WHEN + + 11 THEN NULL WHEN 82 * + 2 * + 91 + - ( + 82 ) THEN NULL END + - ( - CAST( - + 76 AS SIGNED ) ) + 35 * - ( - - MAX( + 55 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8500
SELECT 37 * - - 77 + + AVG ( ALL + + 15 ) * - CASE - 43 WHEN - 30 / - - 65 THEN + MIN ( ALL + 38 ) + - + COUNT ( ALL - - CAST ( + 69 AS INTEGER ) ) WHEN + + 11 THEN NULL WHEN 82 * + 2 * + 91 + - ( + 82 ) THEN NULL END + - ( - CAST ( - + 76 AS INTEGER ) ) + 35 * - ( - - MAX ( + 55 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8501
SELECT ALL - SUM( ALL + - 1 )
----
1

skipif mysql # not compatible
query I rowsort label-8501
SELECT ALL - SUM ( ALL + - 1 )
----
1

query II rowsort
SELECT ALL 31 - + - 86 col0, 74 AS col0
----
117
74

query I rowsort
SELECT + + 26 AS col1
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-8504
SELECT DISTINCT - + 78 - + COUNT( * )
----
-79

skipif mysql # not compatible
query I rowsort label-8504
SELECT DISTINCT - + 78 - + COUNT ( * )
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-8505
SELECT - SUM( - 2 ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-8505
SELECT - SUM ( - 2 ) AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8506
SELECT 88 + CASE + 59 WHEN 75 THEN - + ( + NULLIF ( + MIN( DISTINCT - 23 ), + - ( - 39 ) / + + 61 / + + 90 + + 76 - 99 + 76 * - 92 + + + COUNT( * ) ) ) + - 80 + + COUNT( * ) + + + 10 + + 68 WHEN - 43 * - 9 THEN - + 44 END - - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8506
SELECT 88 + CASE + 59 WHEN 75 THEN - + ( + NULLIF ( + MIN ( DISTINCT - 23 ), + - ( - 39 ) / + + 61 / + + 90 + + 76 - 99 + 76 * - 92 + + + COUNT ( * ) ) ) + - 80 + + COUNT ( * ) + + + 10 + + 68 WHEN - 43 * - 9 THEN - + 44 END - - COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8507
SELECT DISTINCT + COUNT( * ) * + 1 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8507
SELECT DISTINCT + COUNT ( * ) * + 1 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8508
SELECT COUNT( * ) * - - 25 * + 41
----
1025

skipif mysql # not compatible
query I rowsort label-8508
SELECT COUNT ( * ) * - - 25 * + 41
----
1025

query I rowsort
SELECT + 66 + - - 55 AS col1
----
121

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8510
SELECT ALL + COUNT( * ) * - - 92 DIV 4 * - + 76 AS col0
----
-1748

skipif mysql # not compatible
query I rowsort label-8510
SELECT ALL + COUNT ( * ) * - - 92 / 4 * - + 76 AS col0
----
-1748

onlyif mysql # aggregate syntax: 
query I rowsort label-8511
SELECT + - MAX( ALL 95 ) * + - 96 + + NULLIF ( + 84, - + 29 / - 6 * + 9 / 7 )
----
9204

skipif mysql # not compatible
query I rowsort label-8511
SELECT + - MAX ( ALL 95 ) * + - 96 + + NULLIF ( + 84, - + 29 / - 6 * + 9 / 7 )
----
9204

query II rowsort
SELECT DISTINCT - ( - 66 ), + 97 AS col0
----
66
97

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8513
SELECT - 60 * - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8513
SELECT - 60 * - CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8514
SELECT + ( + 35 ) * 83 / - + COUNT( * ) - - NULLIF ( - - ( + CAST( NULL AS SIGNED ) ), - 59 / 63 / - - 29 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8514
SELECT + ( + 35 ) * 83 / - + COUNT ( * ) - - NULLIF ( - - ( + CAST ( NULL AS INTEGER ) ), - 59 / 63 / - - 29 ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8515
SELECT + 43 + - - 7 + - COUNT( - + 8 ) - - - 95 * ( - - 33 ) col2, 32 DIV - - 13 + CAST( - 44 AS SIGNED )
----
-3086
-42

skipif mysql # not compatible
query II rowsort label-8515
SELECT + 43 + - - 7 + - COUNT ( - + 8 ) - - - 95 * ( - - 33 ) col2, 32 / - - 13 + CAST ( - 44 AS INTEGER )
----
-3086
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-8516
SELECT ALL + 35 + + 21, - COALESCE ( - 40, 2 ) * + 18 + COUNT( * ) - 86 + + ( + + 21 ) * - 32 AS col1
----
56
-37

skipif mysql # not compatible
query II rowsort label-8516
SELECT ALL + 35 + + 21, - COALESCE ( - 40, 2 ) * + 18 + COUNT ( * ) - 86 + + ( + + 21 ) * - 32 AS col1
----
56
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-8517
SELECT ALL - 94 + 96 DIV 51 + - 33 + + 8 * + 56 * - - 61 + + + 91 AS col2
----
27293

skipif mysql # not compatible
query I rowsort label-8517
SELECT ALL - 94 + 96 / 51 + - 33 + + 8 * + 56 * - - 61 + + + 91 AS col2
----
27293

query II rowsort
SELECT DISTINCT 13 AS col2, 66 col1
----
13
66

query I rowsort
SELECT ALL 40 + + 23 + 92 * - ( ( - 38 ) ) * 35 AS col2
----
122423

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8520
SELECT DISTINCT SUM( ( + + 35 ) ) AS col2, - ( CAST( + + 80 AS SIGNED ) )
----
35
-80

skipif mysql # not compatible
query II rowsort label-8520
SELECT DISTINCT SUM ( ( + + 35 ) ) AS col2, - ( CAST ( + + 80 AS INTEGER ) )
----
35
-80

query I rowsort
SELECT ( + - 70 ) AS col0
----
-70

query I rowsort
SELECT ( - NULLIF ( + 81, - + 50 + - - 23 ) )
----
-81

query I rowsort
SELECT ( - - ( + - 38 ) )
----
-38

query I rowsort
SELECT + 92 * 38 col0
----
3496

query I rowsort
SELECT ( + - 75 ) AS col0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8526
SELECT + ( MAX( DISTINCT + - 83 ) )
----
-83

skipif mysql # not compatible
query I rowsort label-8526
SELECT + ( MAX ( DISTINCT + - 83 ) )
----
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8527
SELECT ALL 85 * - NULLIF ( + 98, - + MIN( ALL + 43 ) / + 10 + COUNT( * ) - - - 21 + + + 33 ) + CAST( COUNT( * ) AS SIGNED ) col0, MIN( ALL + NULLIF ( + + 27, - 73 ) )
----
-8329
27

skipif mysql # not compatible
query II rowsort label-8527
SELECT ALL 85 * - NULLIF ( + 98, - + MIN ( ALL + 43 ) / + 10 + COUNT ( * ) - - - 21 + + + 33 ) + CAST ( COUNT ( * ) AS INTEGER ) col0, MIN ( ALL + NULLIF ( + + 27, - 73 ) )
----
-8329
27

query I rowsort
SELECT - 61 * - + 42 AS col1
----
2562

query I rowsort
SELECT NULLIF ( + - 46, - 58 )
----
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8530
SELECT - 55 + + COUNT( * ) + ( - 28 ) + 47 DIV 33, + 68 AS col0
----
-81
68

skipif mysql # not compatible
query II rowsort label-8530
SELECT - 55 + + COUNT ( * ) + ( - 28 ) + 47 / 33, + 68 AS col0
----
-81
68

query I rowsort
SELECT DISTINCT + ( - 82 ) * - 11 - - 85
----
987

query I rowsort
SELECT ALL - 33 * 45
----
-1485

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8533
SELECT COALESCE ( + COUNT( * ), + 51 * CAST( NULL AS SIGNED ), 28 + + 45 )
----
1

skipif mysql # not compatible
query I rowsort label-8533
SELECT COALESCE ( + COUNT ( * ), + 51 * CAST ( NULL AS INTEGER ), 28 + + 45 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8534
SELECT COALESCE ( - 51, - 69 DIV + COUNT( * ), - 19 ) AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-8534
SELECT COALESCE ( - 51, - 69 / + COUNT ( * ), - 19 ) AS col2
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8535
SELECT - 78 DIV + COUNT( * ) AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-8535
SELECT - 78 / + COUNT ( * ) AS col2
----
-78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8536
SELECT - 84 DIV COUNT( * )
----
-84

skipif mysql # not compatible
query I rowsort label-8536
SELECT - 84 / COUNT ( * )
----
-84

query I rowsort
SELECT - 95 * - 51
----
4845

onlyif mysql # aggregate syntax: 
query I rowsort label-8538
SELECT - 71 * - COUNT( * ) + 31
----
102

skipif mysql # not compatible
query I rowsort label-8538
SELECT - 71 * - COUNT ( * ) + 31
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-8539
SELECT ALL + SUM( DISTINCT + 46 ) AS col0
----
46

skipif mysql # not compatible
query I rowsort label-8539
SELECT ALL + SUM ( DISTINCT + 46 ) AS col0
----
46

query I rowsort
SELECT DISTINCT + 16 * + 32
----
512

onlyif mysql # aggregate syntax: 
query I rowsort label-8541
SELECT - COALESCE ( 49, COUNT( * ), 58 ) * COUNT( * )
----
-49

skipif mysql # not compatible
query I rowsort label-8541
SELECT - COALESCE ( 49, COUNT ( * ), 58 ) * COUNT ( * )
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-8542
SELECT - COUNT( * ) * - 31 AS col1
----
31

skipif mysql # not compatible
query I rowsort label-8542
SELECT - COUNT ( * ) * - 31 AS col1
----
31

query I rowsort
SELECT ALL + 25 * + 88 AS col0
----
2200

query I rowsort
SELECT 25 * - 8 - 7
----
-207

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8545
SELECT ALL + 98 + CAST( NULL AS SIGNED ) * + 14 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8545
SELECT ALL + 98 + CAST ( NULL AS INTEGER ) * + 14 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8546
SELECT DISTINCT COALESCE ( 31, + CASE WHEN ( + 56 ) BETWEEN ( COUNT( + CAST( NULL AS SIGNED ) ) * - 89 ) AND ( + 0 ) THEN 51 ELSE NULL END + 15 * 18 ) + + CASE 51 WHEN 40 THEN 25 - 24 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8546
SELECT DISTINCT COALESCE ( 31, + CASE WHEN ( + 56 ) BETWEEN ( COUNT ( + CAST ( NULL AS INTEGER ) ) * - 89 ) AND ( + 0 ) THEN 51 ELSE NULL END + 15 * 18 ) + + CASE 51 WHEN 40 THEN 25 - 24 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8547
SELECT ALL - 8 * + MAX( 49 )
----
-392

skipif mysql # not compatible
query I rowsort label-8547
SELECT ALL - 8 * + MAX ( 49 )
----
-392

query I rowsort
SELECT DISTINCT + 53 + ( 76 ) * 28 col1
----
2181

onlyif mysql # aggregate syntax: 
query I rowsort label-8549
SELECT DISTINCT 87 + COUNT( * ) * - 70
----
17

skipif mysql # not compatible
query I rowsort label-8549
SELECT DISTINCT 87 + COUNT ( * ) * - 70
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-8550
SELECT DISTINCT - COUNT( DISTINCT + ( 77 ) ) + 44 AS col2
----
43

skipif mysql # not compatible
query I rowsort label-8550
SELECT DISTINCT - COUNT ( DISTINCT + ( 77 ) ) + 44 AS col2
----
43

query I rowsort
SELECT - 22 + 23
----
1

query I rowsort
SELECT + 28 * + 30
----
840

query I rowsort
SELECT ALL - 63 + 3 col2
----
-60

query I rowsort
SELECT - ( - 92 ) + 36 * - 87
----
-3040

onlyif mysql # aggregate syntax: 
query I rowsort label-8555
SELECT + 4 * COUNT( * )
----
4

skipif mysql # not compatible
query I rowsort label-8555
SELECT + 4 * COUNT ( * )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8556
SELECT - COUNT( 59 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8556
SELECT - COUNT ( 59 ) AS col2
----
-1

query I rowsort
SELECT - ( + 99 )
----
-99

query I rowsort
SELECT ALL 86 + 62
----
148

onlyif mysql # aggregate syntax: 
query I rowsort label-8559
SELECT - 92 + ( + SUM( ALL - 59 ) )
----
-151

skipif mysql # not compatible
query I rowsort label-8559
SELECT - 92 + ( + SUM ( ALL - 59 ) )
----
-151

query I rowsort
SELECT + 98 * - 66 AS col1
----
-6468

query I rowsort
SELECT + 68 + - 32 AS col1
----
36

query I rowsort
SELECT ALL ( 70 ) * 31 AS col0
----
2170

query I rowsort
SELECT ALL ( 12 ) * - 53 AS col0
----
-636

onlyif mysql # DIV for integer division: 
query I rowsort label-8564
SELECT DISTINCT + 14 DIV - ( - 80 * 95 ) - + 3 * 66
----
-198

skipif mysql # not compatible
query I rowsort label-8564
SELECT DISTINCT + 14 / - ( - 80 * 95 ) - + 3 * 66
----
-198

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8565
SELECT + NULLIF ( - 43, + 74 + - MAX( DISTINCT CAST( NULL AS DECIMAL ) ) )
----
-43

skipif mysql # not compatible
query I rowsort label-8565
SELECT + NULLIF ( - 43, + 74 + - MAX ( DISTINCT CAST ( NULL AS REAL ) ) )
----
-43

query I rowsort
SELECT + 14 + + 44 AS col0
----
58

query I rowsort
SELECT + NULLIF ( - 10, 83 + + 46 )
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8568
SELECT CAST( 24 AS SIGNED )
----
24

skipif mysql # not compatible
query I rowsort label-8568
SELECT CAST ( 24 AS INTEGER )
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-8569
SELECT + 2 * COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-8569
SELECT + 2 * COUNT ( * )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8570
SELECT COUNT( ALL 32 )
----
1

skipif mysql # not compatible
query I rowsort label-8570
SELECT COUNT ( ALL 32 )
----
1

query I rowsort
SELECT 5 * + 19 + + ( 91 + 26 * - 76 ) * + 22
----
-41375

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8572
SELECT ALL - + CAST( NULL AS SIGNED ) * + 41 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8572
SELECT ALL - + CAST ( NULL AS INTEGER ) * + 41 AS col2
----
NULL

query I rowsort
SELECT - 48 * - ( 49 * 61 )
----
143472

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8574
SELECT ALL - CASE - 96 WHEN + COUNT( * ) / 61 THEN - 3 + - CAST( NULL AS SIGNED ) WHEN - COUNT( * ) * COALESCE ( COUNT( * ), + 66 ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8574
SELECT ALL - CASE - 96 WHEN + COUNT ( * ) / 61 THEN - 3 + - CAST ( NULL AS INTEGER ) WHEN - COUNT ( * ) * COALESCE ( COUNT ( * ), + 66 ) THEN NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8575
SELECT DISTINCT - CASE WHEN 20 <> - CAST( NULL AS DECIMAL ) THEN NULL ELSE + COUNT( * ) * - 24 END * - 45
----
-1080

skipif mysql # not compatible
query I rowsort label-8575
SELECT DISTINCT - CASE WHEN 20 <> - CAST ( NULL AS REAL ) THEN NULL ELSE + COUNT ( * ) * - 24 END * - 45
----
-1080

query I rowsort
SELECT ALL + 3 + + 74 AS col2
----
77

query I rowsort
SELECT + 15 + + 56
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-8578
SELECT 58 * - MAX( DISTINCT 69 )
----
-4002

skipif mysql # not compatible
query I rowsort label-8578
SELECT 58 * - MAX ( DISTINCT 69 )
----
-4002

query I rowsort
SELECT + 89 + 1 * 81
----
170

onlyif mysql # aggregate syntax: 
query I rowsort label-8580
SELECT MAX( DISTINCT ( 15 ) ) * + 55 AS col1
----
825

skipif mysql # not compatible
query I rowsort label-8580
SELECT MAX ( DISTINCT ( 15 ) ) * + 55 AS col1
----
825

query I rowsort
SELECT - ( + 9 ) AS col2
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-8582
SELECT 50 DIV CASE CAST( + NULLIF ( 78, 90 + 31 * - 25 ) AS SIGNED ) + + 89 WHEN MAX( ( + 37 ) ) * - 97 + CAST( NULL AS DECIMAL ) * 21 THEN - NULLIF ( 91, - 79 ) WHEN - 79 THEN + 56 * + CASE 15 WHEN - 16 THEN NULL ELSE - 41 END ELSE 85 END
----
0

skipif mysql # not compatible
query I rowsort label-8582
SELECT 50 / CASE CAST ( + NULLIF ( 78, 90 + 31 * - 25 ) AS INTEGER ) + + 89 WHEN MAX ( ( + 37 ) ) * - 97 + CAST ( NULL AS REAL ) * 21 THEN - NULLIF ( 91, - 79 ) WHEN - 79 THEN + 56 * + CASE 15 WHEN - 16 THEN NULL ELSE - 41 END ELSE 85 END
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8583
SELECT ALL - CAST( - 6 AS SIGNED ) + - NULLIF ( SUM( DISTINCT + CAST( NULL AS DECIMAL ) ), + 34 * 67 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8583
SELECT ALL - CAST ( - 6 AS INTEGER ) + - NULLIF ( SUM ( DISTINCT + CAST ( NULL AS REAL ) ), + 34 * 67 )
----
NULL

query I rowsort
SELECT 62 * 72 + - 88
----
4376

query I rowsort
SELECT ALL ( 33 ) * 1
----
33

query I rowsort
SELECT DISTINCT + 40 + - 24
----
16

query I rowsort
SELECT DISTINCT + 76 + 16 AS col2
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-8588
SELECT ALL - 18 DIV - 41 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8588
SELECT ALL - 18 / - 41 AS col1
----
0

query I rowsort
SELECT 30 + + 71 AS col2
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-8590
SELECT ALL COUNT( * ) + - 68 col0
----
-67

skipif mysql # not compatible
query I rowsort label-8590
SELECT ALL COUNT ( * ) + - 68 col0
----
-67

query I rowsort
SELECT ALL - 27 + 21
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-8592
SELECT 2 + - - COUNT( * ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-8592
SELECT 2 + - - COUNT ( * ) AS col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8593
SELECT 11 + + - SUM( + ( 62 ) )
----
-51

skipif mysql # not compatible
query I rowsort label-8593
SELECT 11 + + - SUM ( + ( 62 ) )
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8594
SELECT ALL - CASE WHEN NULL <> ( - COALESCE ( 27, CASE 84 WHEN + 44 THEN 69 * 59 WHEN ( + NULLIF ( 86, + 12 * + 77 ) ) THEN + 42 ELSE NULL END * - CAST( NULL AS SIGNED ) ) ) THEN + 77 + 46 END * 16
----
NULL

skipif mysql # not compatible
query I rowsort label-8594
SELECT ALL - CASE WHEN NULL <> ( - COALESCE ( 27, CASE 84 WHEN + 44 THEN 69 * 59 WHEN ( + NULLIF ( 86, + 12 * + 77 ) ) THEN + 42 ELSE NULL END * - CAST ( NULL AS INTEGER ) ) ) THEN + 77 + 46 END * 16
----
NULL

query I rowsort
SELECT 21 + - - 27
----
48

query I rowsort
SELECT 92 * - 77 * 7 AS col2
----
-49588

onlyif mysql # aggregate syntax: 
query I rowsort label-8597
SELECT COUNT( * ) + + - 79
----
-78

skipif mysql # not compatible
query I rowsort label-8597
SELECT COUNT ( * ) + + - 79
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-8598
SELECT DISTINCT - SUM( ALL - 29 ) - 58 AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-8598
SELECT DISTINCT - SUM ( ALL - 29 ) - 58 AS col1
----
-29

query I rowsort
SELECT ALL - 77 * 1 AS col0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-8600
SELECT 17 * + + COUNT( * )
----
17

skipif mysql # not compatible
query I rowsort label-8600
SELECT 17 * + + COUNT ( * )
----
17

query I rowsort
SELECT 30 * 15 AS col1
----
450

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8602
SELECT 36 DIV COUNT( * ) AS col1
----
36

skipif mysql # not compatible
query I rowsort label-8602
SELECT 36 / COUNT ( * ) AS col1
----
36

query I rowsort
SELECT 7 * + 68 * 28 col2
----
13328

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8604
SELECT DISTINCT - ( COUNT( * ) ) DIV 52
----
0

skipif mysql # not compatible
query I rowsort label-8604
SELECT DISTINCT - ( COUNT ( * ) ) / 52
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8605
SELECT 20 * + + COUNT( * ) * 24 AS col0
----
480

skipif mysql # not compatible
query I rowsort label-8605
SELECT 20 * + + COUNT ( * ) * 24 AS col0
----
480

onlyif mysql # DIV for integer division: 
query I rowsort label-8606
SELECT 26 DIV 88 DIV 30 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8606
SELECT 26 / 88 / 30 AS col2
----
0

query I rowsort
SELECT AVG ( + + 33 ) / CASE WHEN - 66 + + ( - 52 ) BETWEEN NULL AND NULL THEN - 2 + - 67 END col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8608
SELECT 6 DIV 92 - + ( + 70 + - ( - 75 ) * 88 ) AS col1
----
-6670

skipif mysql # not compatible
query I rowsort label-8608
SELECT 6 / 92 - + ( + 70 + - ( - 75 ) * 88 ) AS col1
----
-6670

onlyif mysql # aggregate syntax: 
query I rowsort label-8609
SELECT 73 * - MIN( ALL 5 ) AS col0
----
-365

skipif mysql # not compatible
query I rowsort label-8609
SELECT 73 * - MIN ( ALL 5 ) AS col0
----
-365

onlyif mysql # DIV for integer division: 
query I rowsort label-8610
SELECT 4 DIV + 23
----
0

skipif mysql # not compatible
query I rowsort label-8610
SELECT 4 / + 23
----
0

query I rowsort
SELECT ALL + 13 + + 77 * 23 AS col0
----
1784

query I rowsort
SELECT ALL - + 29 * - CASE ( ( 3 ) ) WHEN 74 THEN NULL ELSE - 17 * + 78 END AS col0
----
-38454

onlyif mysql # aggregate syntax: 
query I rowsort label-8613
SELECT - CASE - + 61 WHEN + 76 THEN + SUM( DISTINCT + 62 ) WHEN + COUNT( * ) / - COALESCE ( + 8, - 13 ) THEN NULL WHEN - 46 / 27 THEN + COUNT( * ) / - ( COUNT( * ) ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8613
SELECT - CASE - + 61 WHEN + 76 THEN + SUM ( DISTINCT + 62 ) WHEN + COUNT ( * ) / - COALESCE ( + 8, - 13 ) THEN NULL WHEN - 46 / 27 THEN + COUNT ( * ) / - ( COUNT ( * ) ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8614
SELECT ALL - COUNT( * ) + - 84 AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-8614
SELECT ALL - COUNT ( * ) + - 84 AS col1
----
-85

query I rowsort
SELECT - 69 + - 88
----
-157

onlyif mysql # aggregate syntax: 
query I rowsort label-8616
SELECT + MIN( DISTINCT 76 ) AS col0
----
76

skipif mysql # not compatible
query I rowsort label-8616
SELECT + MIN ( DISTINCT 76 ) AS col0
----
76

query I rowsort
SELECT DISTINCT - 30 + 81 + 80 AS col2
----
131

query I rowsort
SELECT ALL 52 + + 44 + + 24 AS col0
----
120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8619
SELECT - CASE + COUNT( * ) WHEN - 10 / 85 THEN - 32 ELSE CAST( NULL AS SIGNED ) END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8619
SELECT - CASE + COUNT ( * ) WHEN - 10 / 85 THEN - 32 ELSE CAST ( NULL AS INTEGER ) END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8620
SELECT 33 * + 10 - COUNT( * ) + 36 AS col0
----
365

skipif mysql # not compatible
query I rowsort label-8620
SELECT 33 * + 10 - COUNT ( * ) + 36 AS col0
----
365

query I rowsort
SELECT DISTINCT - + 14 col0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-8622
SELECT ALL + 11 + - COUNT( * )
----
10

skipif mysql # not compatible
query I rowsort label-8622
SELECT ALL + 11 + - COUNT ( * )
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8623
SELECT + + CASE + - 75 WHEN CAST( NULL AS SIGNED ) THEN - CAST( NULL AS SIGNED ) * 22 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8623
SELECT + + CASE + - 75 WHEN CAST ( NULL AS INTEGER ) THEN - CAST ( NULL AS INTEGER ) * 22 END
----
NULL

query I rowsort
SELECT ALL - 36 + 74
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-8625
SELECT DISTINCT 36 + 80 * - SUM( DISTINCT ( 77 ) ) AS col0
----
-6124

skipif mysql # not compatible
query I rowsort label-8625
SELECT DISTINCT 36 + 80 * - SUM ( DISTINCT ( 77 ) ) AS col0
----
-6124

query I rowsort
SELECT ALL - - 28 + - 16 AS col2
----
12

query I rowsort
SELECT DISTINCT 54 * - 54 AS col0
----
-2916

onlyif mysql # aggregate syntax: 
query I rowsort label-8628
SELECT ALL COUNT( * ) - - 82 - - + 83
----
166

skipif mysql # not compatible
query I rowsort label-8628
SELECT ALL COUNT ( * ) - - 82 - - + 83
----
166

query I rowsort
SELECT + 42 * + 31 - 5 + + 37 AS col1
----
1334

query II rowsort
SELECT 82, + 62 AS col1
----
82
62

onlyif mysql # aggregate syntax: 
query I rowsort label-8631
SELECT 1 - 83 * + + COUNT( ALL 30 ) * 51
----
-4232

skipif mysql # not compatible
query I rowsort label-8631
SELECT 1 - 83 * + + COUNT ( ALL 30 ) * 51
----
-4232

query I rowsort
SELECT 37 * - 95 col1
----
-3515

query II rowsort
SELECT DISTINCT 15 AS col2, 12 * + 6
----
15
72

query I rowsort
SELECT DISTINCT 16 * + + ( 13 ) * - 75
----
-15600

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8635
SELECT 11 AS col1, 67 - COUNT( * ) DIV 66 col1
----
11
67

skipif mysql # not compatible
query II rowsort label-8635
SELECT 11 AS col1, 67 - COUNT ( * ) / 66 col1
----
11
67

query I rowsort
SELECT 36 - + 99
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-8637
SELECT COUNT( * ) + + + 54 + + 66 AS col0
----
121

skipif mysql # not compatible
query I rowsort label-8637
SELECT COUNT ( * ) + + + 54 + + 66 AS col0
----
121

query I rowsort
SELECT 46 - + 84 col0
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-8639
SELECT ALL COUNT( DISTINCT - 73 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8639
SELECT ALL COUNT ( DISTINCT - 73 ) AS col0
----
1

query II rowsort
SELECT - 91 AS col1, - 42
----
-91
-42

query I rowsort
SELECT ALL - 1 * - 75
----
75

query I rowsort
SELECT DISTINCT - 29 + 45 * + 20 * + 47 col1
----
42271

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8643
SELECT ALL 0 AS col1, - 33 - - COUNT( 48 ) + COALESCE ( - CAST( - ( 28 ) AS SIGNED ) + 0 * + 5, 61, CASE - 23 WHEN + 36 * + 27 THEN - 62 + - 26 ELSE + 1 END * + 91 ) * + 2 AS col1
----
0
24

skipif mysql # not compatible
query II rowsort label-8643
SELECT ALL 0 AS col1, - 33 - - COUNT ( 48 ) + COALESCE ( - CAST ( - ( 28 ) AS INTEGER ) + 0 * + 5, 61, CASE - 23 WHEN + 36 * + 27 THEN - 62 + - 26 ELSE + 1 END * + 91 ) * + 2 AS col1
----
0
24

query I rowsort
SELECT NULLIF ( - + 81, - 10 / - 84 )
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8645
SELECT ALL - + CAST( NULL AS SIGNED ) * 2 + - + 14 + + 98 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8645
SELECT ALL - + CAST ( NULL AS INTEGER ) * 2 + - + 14 + + 98 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8646
SELECT ALL 94 * + CAST( - COUNT( * ) AS SIGNED ) + 2
----
-92

skipif mysql # not compatible
query I rowsort label-8646
SELECT ALL 94 * + CAST ( - COUNT ( * ) AS INTEGER ) + 2
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-8647
SELECT - - ( + 21 ) * + COUNT( * )
----
21

skipif mysql # not compatible
query I rowsort label-8647
SELECT - - ( + 21 ) * + COUNT ( * )
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8648
SELECT + 98 * - 60 * - 51 + 24 + + CAST( NULL AS SIGNED ) / 38 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8648
SELECT + 98 * - 60 * - 51 + 24 + + CAST ( NULL AS INTEGER ) / 38 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8649
SELECT 20 * + - 65 * + CASE COUNT( * ) WHEN - 41 THEN - COUNT( * ) ELSE NULL END + - 10 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8649
SELECT 20 * + - 65 * + CASE COUNT ( * ) WHEN - 41 THEN - COUNT ( * ) ELSE NULL END + - 10 AS col2
----
NULL

query I rowsort
SELECT ALL - 59 * 54 + + + 68 - COALESCE ( - 97, + 90 ) col1
----
-3021

onlyif mysql # aggregate syntax: 
query II rowsort label-8651
SELECT + COUNT( * ) AS col2, 92 + - ( 77 ) AS col2
----
1
15

skipif mysql # not compatible
query II rowsort label-8651
SELECT + COUNT ( * ) AS col2, 92 + - ( 77 ) AS col2
----
1
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8652
SELECT ALL + + 57 * - 84 * 97 + - ( + COALESCE ( 33, + SUM( - 36 ), + 41 ) ) + + MIN( 47 + 22 )
----
-464400

skipif mysql # not compatible
query I rowsort label-8652
SELECT ALL + + 57 * - 84 * 97 + - ( + COALESCE ( 33, + SUM ( - 36 ), + 41 ) ) + + MIN ( 47 + 22 )
----
-464400

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8653
SELECT DISTINCT - - 60 * ( + 11 ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8653
SELECT DISTINCT - - 60 * ( + 11 ) * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 43 * + 13 col0
----
559

onlyif mysql # aggregate syntax: 
query I rowsort label-8655
SELECT - COUNT( * ) + ( + COALESCE ( 32, + 55, 39 + + 14 * + 84 ) ) + 50 * 7 AS col0
----
381

skipif mysql # not compatible
query I rowsort label-8655
SELECT - COUNT ( * ) + ( + COALESCE ( 32, + 55, 39 + + 14 * + 84 ) ) + 50 * 7 AS col0
----
381

onlyif mysql # aggregate syntax: 
query I rowsort label-8656
SELECT COALESCE ( - - COUNT( * ), 5 * SUM( 22 + 60 ), 15 )
----
1

skipif mysql # not compatible
query I rowsort label-8656
SELECT COALESCE ( - - COUNT ( * ), 5 * SUM ( 22 + 60 ), 15 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8657
SELECT - 17 + + SUM( DISTINCT - 40 ) * 70 AS col1
----
-2817

skipif mysql # not compatible
query I rowsort label-8657
SELECT - 17 + + SUM ( DISTINCT - 40 ) * 70 AS col1
----
-2817

onlyif mysql # aggregate syntax: 
query I rowsort label-8658
SELECT + CASE + COALESCE ( + 95, 29 ) WHEN - 17 THEN NULL WHEN 90 * - AVG ( ALL 4 ) + + 30 * 41 THEN NULL ELSE ( + ( - 27 ) ) + + COUNT( * ) END * 35 AS col0
----
-910

skipif mysql # not compatible
query I rowsort label-8658
SELECT + CASE + COALESCE ( + 95, 29 ) WHEN - 17 THEN NULL WHEN 90 * - AVG ( ALL 4 ) + + 30 * 41 THEN NULL ELSE ( + ( - 27 ) ) + + COUNT ( * ) END * 35 AS col0
----
-910

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8659
SELECT - 75 * 43 + + 4 * + + COALESCE ( - COUNT( * ), + 48 * 19, 17 ) DIV - 58 + COALESCE ( 26, 9 ) AS col2
----
-3199

skipif mysql # not compatible
query I rowsort label-8659
SELECT - 75 * 43 + + 4 * + + COALESCE ( - COUNT ( * ), + 48 * 19, 17 ) / - 58 + COALESCE ( 26, 9 ) AS col2
----
-3199

onlyif mysql # aggregate syntax: 
query I rowsort label-8660
SELECT DISTINCT ( CASE - + 96 WHEN + + COUNT( * ) - + MIN( 36 ) THEN NULL WHEN - 2 THEN MAX( ALL 50 ) * COUNT( * ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-8660
SELECT DISTINCT ( CASE - + 96 WHEN + + COUNT ( * ) - + MIN ( 36 ) THEN NULL WHEN - 2 THEN MAX ( ALL 50 ) * COUNT ( * ) END )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8661
SELECT ALL ( + COUNT( * ) ) AS col1, - 69 AS col2
----
1
-69

skipif mysql # not compatible
query II rowsort label-8661
SELECT ALL ( + COUNT ( * ) ) AS col1, - 69 AS col2
----
1
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8662
SELECT + 45 + + 43 DIV COUNT( * )
----
88

skipif mysql # not compatible
query I rowsort label-8662
SELECT + 45 + + 43 / COUNT ( * )
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-8663
SELECT ALL ( ( - 83 ) ) * + CASE CASE 54 WHEN + CASE 63 WHEN 56 - COUNT( * ) THEN 11 ELSE + COUNT( * ) END THEN NULL ELSE - 7 END WHEN + 87 THEN - 17 ELSE + 77 * 11 END AS col0
----
-70301

skipif mysql # not compatible
query I rowsort label-8663
SELECT ALL ( ( - 83 ) ) * + CASE CASE 54 WHEN + CASE 63 WHEN 56 - COUNT ( * ) THEN 11 ELSE + COUNT ( * ) END THEN NULL ELSE - 7 END WHEN + 87 THEN - 17 ELSE + 77 * 11 END AS col0
----
-70301

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8664
SELECT + 39 + - - SUM( DISTINCT - - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8664
SELECT + 39 + - - SUM ( DISTINCT - - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8665
SELECT + 9 * - 39, - 33 DIV - + COUNT( DISTINCT + 33 ) AS col1
----
-351
33

skipif mysql # not compatible
query II rowsort label-8665
SELECT + 9 * - 39, - 33 / - + COUNT ( DISTINCT + 33 ) AS col1
----
-351
33

onlyif mysql # aggregate syntax: 
query II rowsort label-8666
SELECT + COUNT( * ) + 74 AS col1, + 92 AS col2
----
75
92

skipif mysql # not compatible
query II rowsort label-8666
SELECT + COUNT ( * ) + 74 AS col1, + 92 AS col2
----
75
92

onlyif mysql # aggregate syntax: 
query I rowsort label-8667
SELECT - NULLIF ( + 72, COUNT( * ) * 32 + - NULLIF ( 63, CASE - COUNT( * ) WHEN 33 * 26 THEN 46 WHEN - 48 + + MIN( + 10 ) THEN NULL ELSE NULL END + - 23 ) )
----
-72

skipif mysql # not compatible
query I rowsort label-8667
SELECT - NULLIF ( + 72, COUNT ( * ) * 32 + - NULLIF ( 63, CASE - COUNT ( * ) WHEN 33 * 26 THEN 46 WHEN - 48 + + MIN ( + 10 ) THEN NULL ELSE NULL END + - 23 ) )
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-8668
SELECT - 91 + COUNT( * ) * - - 10 AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-8668
SELECT - 91 + COUNT ( * ) * - - 10 AS col1
----
-81

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8669
SELECT - NULLIF ( - 45, - CAST( + + 49 AS DECIMAL ) ) AS col2
----
45

skipif mysql # not compatible
query I rowsort label-8669
SELECT - NULLIF ( - 45, - CAST ( + + 49 AS REAL ) ) AS col2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-8670
SELECT + MIN( DISTINCT - 55 ) * - - 65 + ( + 48 ) AS col1
----
-3527

skipif mysql # not compatible
query I rowsort label-8670
SELECT + MIN ( DISTINCT - 55 ) * - - 65 + ( + 48 ) AS col1
----
-3527

query I rowsort
SELECT ALL - 15 + - - 25 + + 94
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-8672
SELECT ALL MIN( ALL - ( 64 ) ) + 86 + 18 * - 45 AS col2
----
-788

skipif mysql # not compatible
query I rowsort label-8672
SELECT ALL MIN ( ALL - ( 64 ) ) + 86 + 18 * - 45 AS col2
----
-788

query II rowsort
SELECT ALL + 43 + + 82 AS col1, + 56 + + 23 * 80
----
125
1896

onlyif mysql # aggregate syntax: 
query I rowsort label-8674
SELECT - MAX( ALL - + 3 ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-8674
SELECT - MAX ( ALL - + 3 ) AS col2
----
3

query I rowsort
SELECT + NULLIF ( - - 24, - 80 ) AS col0
----
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8676
SELECT DISTINCT + 48 DIV + COUNT( * ) + + - 29
----
19

skipif mysql # not compatible
query I rowsort label-8676
SELECT DISTINCT + 48 / + COUNT ( * ) + + - 29
----
19

query I rowsort
SELECT DISTINCT + + 87 * - NULLIF ( 57, + 36 * 78 )
----
-4959

onlyif mysql # aggregate syntax: 
query I rowsort label-8678
SELECT - + 16 * + 85 * + COUNT( * )
----
-1360

skipif mysql # not compatible
query I rowsort label-8678
SELECT - + 16 * + 85 * + COUNT ( * )
----
-1360

onlyif mysql # DIV for integer division: 
query I rowsort label-8679
SELECT ALL 70 DIV 42 * 90 + - 45 AS col1
----
45

skipif mysql # not compatible
query I rowsort label-8679
SELECT ALL 70 / 42 * 90 + - 45 AS col1
----
45

query I rowsort
SELECT DISTINCT + ( + - 11 )
----
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8681
SELECT ALL - - COUNT( * ) DIV + 44 - + 34 AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-8681
SELECT ALL - - COUNT ( * ) / + 44 - + 34 AS col1
----
-34

query I rowsort
SELECT - 58 * + + 31
----
-1798

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8683
SELECT + CASE - SUM( DISTINCT - 51 ) WHEN - CAST( - 26 AS SIGNED ) THEN 54 * - 68 END / - CASE - COUNT( * ) WHEN 41 THEN - ( - 5 ) / 47 ELSE NULL END - - 13 * CASE + 33 WHEN 84 THEN NULL ELSE COUNT( * ) + + 35 / ( 71 + 80 * 66 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8683
SELECT + CASE - SUM ( DISTINCT - 51 ) WHEN - CAST ( - 26 AS INTEGER ) THEN 54 * - 68 END / - CASE - COUNT ( * ) WHEN 41 THEN - ( - 5 ) / 47 ELSE NULL END - - 13 * CASE + 33 WHEN 84 THEN NULL ELSE COUNT ( * ) + + 35 / ( 71 + 80 * 66 ) END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8684
SELECT ALL + + 95 * - 16 - - - ( - - 37 ) - 71 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8684
SELECT ALL + + 95 * - 16 - - - ( - - 37 ) - 71 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8685
SELECT - - 90 * - MAX( 41 ) + - 37
----
-3727

skipif mysql # not compatible
query I rowsort label-8685
SELECT - - 90 * - MAX ( 41 ) + - 37
----
-3727

query I rowsort
SELECT ( + ( + + 83 ) )
----
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8687
SELECT DISTINCT - + 53 DIV 23 * - MAX( + 82 ) AS col2
----
164

skipif mysql # not compatible
query I rowsort label-8687
SELECT DISTINCT - + 53 / 23 * - MAX ( + 82 ) AS col2
----
164

onlyif mysql # DIV for integer division: 
query I rowsort label-8688
SELECT ALL - 18 DIV - + 93 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8688
SELECT ALL - 18 / - + 93 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8689
SELECT DISTINCT - COALESCE ( 14, - 12 * + MAX( 97 ) + + NULLIF ( CAST( NULL AS SIGNED ), - 55 DIV 33 ) DIV + 88, 99 + 82 ) * 44 AS col0
----
-616

skipif mysql # not compatible
query I rowsort label-8689
SELECT DISTINCT - COALESCE ( 14, - 12 * + MAX ( 97 ) + + NULLIF ( CAST ( NULL AS INTEGER ), - 55 / 33 ) / + 88, 99 + 82 ) * 44 AS col0
----
-616

query I rowsort
SELECT ALL + 46 * + 19
----
874

onlyif mysql # aggregate syntax: 
query I rowsort label-8691
SELECT DISTINCT - ( - + COALESCE ( + COUNT( * ), - + 21 ) ) * + 27 + COUNT( * ) * 73
----
100

skipif mysql # not compatible
query I rowsort label-8691
SELECT DISTINCT - ( - + COALESCE ( + COUNT ( * ), - + 21 ) ) * + 27 + COUNT ( * ) * 73
----
100

query I rowsort
SELECT - NULLIF ( + + 11, - 34 / + - 68 / - + 19 + + 59 + 52 ) AS col0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-8693
SELECT DISTINCT + 88 * + + 81 * + - 50 + + COUNT( * ) + 71
----
-356328

skipif mysql # not compatible
query I rowsort label-8693
SELECT DISTINCT + 88 * + + 81 * + - 50 + + COUNT ( * ) + 71
----
-356328

onlyif mysql # aggregate syntax: 
query I rowsort label-8694
SELECT + MIN( ALL - 69 ) * ( - 30 ) AS col0
----
2070

skipif mysql # not compatible
query I rowsort label-8694
SELECT + MIN ( ALL - 69 ) * ( - 30 ) AS col0
----
2070

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8695
SELECT - 3 - - 85 + + 73 + + CASE CAST( - COUNT( * ) AS SIGNED ) WHEN NULLIF ( 6, - 66 + - 68 * - 81 ) + + 23 * - NULLIF ( + 96 + COUNT( * ), 20 ) THEN NULL WHEN 82 + - 51 * 88 THEN NULL ELSE - 37 END + 49 DIV COALESCE ( 87 * + COALESCE ( + COUNT( * ) * - 69, 49 * 81 ) + - 49, + 3 * COUNT( * ) ) * 72 DIV 84 AS col0
----
118

skipif mysql # not compatible
query I rowsort label-8695
SELECT - 3 - - 85 + + 73 + + CASE CAST ( - COUNT ( * ) AS INTEGER ) WHEN NULLIF ( 6, - 66 + - 68 * - 81 ) + + 23 * - NULLIF ( + 96 + COUNT ( * ), 20 ) THEN NULL WHEN 82 + - 51 * 88 THEN NULL ELSE - 37 END + 49 / COALESCE ( 87 * + COALESCE ( + COUNT ( * ) * - 69, 49 * 81 ) + - 49, + 3 * COUNT ( * ) ) * 72 / 84 AS col0
----
118

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8696
SELECT - CAST( + 62 AS SIGNED )
----
-62

skipif mysql # not compatible
query I rowsort label-8696
SELECT - CAST ( + 62 AS INTEGER )
----
-62

query II rowsort
SELECT DISTINCT 79 AS col0, 43 * 76 AS col2
----
79
3268

onlyif mysql # aggregate syntax: 
query I rowsort label-8698
SELECT COALESCE ( + 50, 36 ) * + - 61 - - MAX( DISTINCT 90 ) AS col0
----
-2960

skipif mysql # not compatible
query I rowsort label-8698
SELECT COALESCE ( + 50, 36 ) * + - 61 - - MAX ( DISTINCT 90 ) AS col0
----
-2960

onlyif mysql # aggregate syntax: 
query I rowsort label-8699
SELECT ALL + NULLIF ( + COALESCE ( - + 20, + COALESCE ( - 82, 83 ) * - 50 + - 50 ), 48 * ( 10 ) ) + + COUNT( * ) AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-8699
SELECT ALL + NULLIF ( + COALESCE ( - + 20, + COALESCE ( - 82, 83 ) * - 50 + - 50 ), 48 * ( 10 ) ) + + COUNT ( * ) AS col1
----
-19

query I rowsort
SELECT DISTINCT + ( ( 29 ) ) + - 0 * - 31 AS col1
----
29

query I rowsort
SELECT ALL 43 + ( + - 76 ) AS col0
----
-33

query I rowsort
SELECT DISTINCT 2 * - 71
----
-142

onlyif mysql # aggregate syntax: 
query II rowsort label-8703
SELECT ALL 14 + - + COUNT( * ) + + + 9 AS col1, 83 * + 71 * - 82
----
22
-483226

skipif mysql # not compatible
query II rowsort label-8703
SELECT ALL 14 + - + COUNT ( * ) + + + 9 AS col1, 83 * + 71 * - 82
----
22
-483226

onlyif mysql # DIV for integer division: 
query I rowsort label-8704
SELECT + 56 + 29 - + + 60 DIV 14 AS col0
----
81

skipif mysql # not compatible
query I rowsort label-8704
SELECT + 56 + 29 - + + 60 / 14 AS col0
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8705
SELECT COUNT( * ) - + 86 + - 31 DIV + - 48 AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-8705
SELECT COUNT ( * ) - + 86 + - 31 / + - 48 AS col0
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-8706
SELECT CASE + COUNT( ALL + ( + - 42 ) ) WHEN + 15 * + 9 THEN ( COUNT( * ) ) * 93 END + + 15 * - 74 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8706
SELECT CASE + COUNT ( ALL + ( + - 42 ) ) WHEN + 15 * + 9 THEN ( COUNT ( * ) ) * 93 END + + 15 * - 74 col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8707
SELECT + 40 DIV 55 * - COUNT( * ) * + 72 * 17
----
0

skipif mysql # not compatible
query I rowsort label-8707
SELECT + 40 / 55 * - COUNT ( * ) * + 72 * 17
----
0

query I rowsort
SELECT 81 * + + 74 * + 88 AS col1
----
527472

query I rowsort
SELECT - 49 * - - 42 AS col0
----
-2058

onlyif mysql # aggregate syntax: 
query I rowsort label-8710
SELECT ALL ( + COUNT( ALL 80 ) ) * 63 + 44
----
107

skipif mysql # not compatible
query I rowsort label-8710
SELECT ALL ( + COUNT ( ALL 80 ) ) * 63 + 44
----
107

query I rowsort
SELECT ALL 76 - - 76 + + + 75 AS col0
----
227

query I rowsort
SELECT - 15 * ( - - 29 ) col0
----
-435

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8713
SELECT + 51 DIV 23 * + 75 * MIN( + - 56 ) + + ( 16 + - 81 DIV 85 ) + - ( COUNT( * ) ) * - 65 col1
----
-8319

skipif mysql # not compatible
query I rowsort label-8713
SELECT + 51 / 23 * + 75 * MIN ( + - 56 ) + + ( 16 + - 81 / 85 ) + - ( COUNT ( * ) ) * - 65 col1
----
-8319

onlyif mysql # DIV for integer division: 
query II rowsort label-8714
SELECT DISTINCT - 2 * + - 33 DIV - 4 AS col1, + 51
----
-16
51

skipif mysql # not compatible
query II rowsort label-8714
SELECT DISTINCT - 2 * + - 33 / - 4 AS col1, + 51
----
-16
51

onlyif mysql # DIV for integer division: 
query I rowsort label-8715
SELECT ALL 3 DIV + - 64 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8715
SELECT ALL 3 / + - 64 AS col2
----
0

query I rowsort
SELECT DISTINCT 7 - 25 + + + 13 col1
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8717
SELECT + - CASE + 20 WHEN - + 51 THEN - MIN( DISTINCT - CAST( NULL AS SIGNED ) ) WHEN + 60 / 69 THEN ( COALESCE ( + CAST( 84 AS SIGNED ), + SUM( 60 ) - 89 * - ( 63 ), + 11 + + 32 * ( - COUNT( * ) ) ) ) + 15 / - 1 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8717
SELECT + - CASE + 20 WHEN - + 51 THEN - MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) WHEN + 60 / 69 THEN ( COALESCE ( + CAST ( 84 AS INTEGER ), + SUM ( 60 ) - 89 * - ( 63 ), + 11 + + 32 * ( - COUNT ( * ) ) ) ) + 15 / - 1 END
----
NULL

query I rowsort
SELECT - 51 * 3 + - - 82
----
-71

query I rowsort
SELECT 30 * + 6 AS col0
----
180

query I rowsort
SELECT + 63 * 16 * ( + 22 ) + + 42 + + 66
----
22284

onlyif mysql # aggregate syntax: 
query I rowsort label-8721
SELECT + CASE SUM( - ( - + 70 ) ) WHEN + MIN( DISTINCT + 9 ) THEN NULL WHEN 44 / COUNT( * ) THEN NULL ELSE 42 END AS col2
----
42

skipif mysql # not compatible
query I rowsort label-8721
SELECT + CASE SUM ( - ( - + 70 ) ) WHEN + MIN ( DISTINCT + 9 ) THEN NULL WHEN 44 / COUNT ( * ) THEN NULL ELSE 42 END AS col2
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-8722
SELECT 2 DIV + 28 + - + 73 + - 31 AS col0
----
-104

skipif mysql # not compatible
query I rowsort label-8722
SELECT 2 / + 28 + - + 73 + - 31 AS col0
----
-104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8723
SELECT CASE 36 WHEN + COUNT( * ) * + ( 14 ) - - CAST( NULL AS SIGNED ) THEN NULL ELSE CASE - 72 WHEN - COUNT( DISTINCT 51 ) THEN - 59 WHEN 38 - + CAST( NULL AS SIGNED ) THEN - CAST( - 78 AS SIGNED ) ELSE + 33 + + ( - 75 ) END END col1
----
-42

skipif mysql # not compatible
query I rowsort label-8723
SELECT CASE 36 WHEN + COUNT ( * ) * + ( 14 ) - - CAST ( NULL AS INTEGER ) THEN NULL ELSE CASE - 72 WHEN - COUNT ( DISTINCT 51 ) THEN - 59 WHEN 38 - + CAST ( NULL AS INTEGER ) THEN - CAST ( - 78 AS INTEGER ) ELSE + 33 + + ( - 75 ) END END col1
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-8724
SELECT ALL MAX( ALL + ( 36 ) ) * 37 * 98 col1
----
130536

skipif mysql # not compatible
query I rowsort label-8724
SELECT ALL MAX ( ALL + ( 36 ) ) * 37 * 98 col1
----
130536

onlyif mysql # aggregate syntax: 
query I rowsort label-8725
SELECT - COUNT( * ) + - 68 + + COUNT( 6 ) + 82 - 15 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8725
SELECT - COUNT ( * ) + - 68 + + COUNT ( 6 ) + 82 - 15 AS col0
----
-1

query I rowsort
SELECT DISTINCT 93 * 32
----
2976

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8727
SELECT ALL - 94, COUNT( * ) DIV 84 - - 40 DIV MAX( DISTINCT + 41 ) * + 77 AS col2
----
-94
0

skipif mysql # not compatible
query II rowsort label-8727
SELECT ALL - 94, COUNT ( * ) / 84 - - 40 / MAX ( DISTINCT + 41 ) * + 77 AS col2
----
-94
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8728
SELECT 30 DIV + ( 96 )
----
0

skipif mysql # not compatible
query I rowsort label-8728
SELECT 30 / + ( 96 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8729
SELECT 1 + + + MAX( DISTINCT 57 )
----
58

skipif mysql # not compatible
query I rowsort label-8729
SELECT 1 + + + MAX ( DISTINCT 57 )
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8730
SELECT 41 * + 70 - + 63 + CASE 35 WHEN - - COUNT( * ) THEN NULL WHEN - 97 THEN NULL WHEN 11 THEN NULLIF ( + 26, + COUNT( * ) + + COUNT( * ) * 35 ) END * - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8730
SELECT 41 * + 70 - + 63 + CASE 35 WHEN - - COUNT ( * ) THEN NULL WHEN - 97 THEN NULL WHEN 11 THEN NULLIF ( + 26, + COUNT ( * ) + + COUNT ( * ) * 35 ) END * - COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8731
SELECT 97 AS col0, 79 + 74 + COUNT( + - 64 ) * + + COUNT( * ) col0
----
97
154

skipif mysql # not compatible
query II rowsort label-8731
SELECT 97 AS col0, 79 + 74 + COUNT ( + - 64 ) * + + COUNT ( * ) col0
----
97
154

query I rowsort
SELECT 46 + + AVG ( DISTINCT - - CASE - 2 WHEN + 40 * + + 10 + 66 THEN NULL WHEN - 36 / 58 + 92 THEN + COALESCE ( - 98, 90 ) END )
----
NULL

query I rowsort
SELECT ALL + 41 + + 29 AS col0
----
70

query II rowsort
SELECT ALL - 84 col2, - 60
----
-84
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-8735
SELECT 55 * - COUNT( * ) * - 72 AS col0
----
3960

skipif mysql # not compatible
query I rowsort label-8735
SELECT 55 * - COUNT ( * ) * - 72 AS col0
----
3960

query I rowsort
SELECT 26 + 2
----
28

query II rowsort
SELECT 13 AS col2, 44 + - 99 AS col2
----
13
-55

query I rowsort
SELECT ALL + 15 + + 78 AS col2
----
93

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8739
SELECT - ( + 56 ) * - + 45 * - 8 + + 57 * - CAST( NULL AS DECIMAL ) + + ( 77 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8739
SELECT - ( + 56 ) * - + 45 * - 8 + + 57 * - CAST ( NULL AS REAL ) + + ( 77 )
----
NULL

query I rowsort
SELECT ALL + ( 45 ) + + - CASE - 95 WHEN - 68 THEN NULLIF ( - 41, - 66 + - 34 ) WHEN 97 + 90 THEN - 32 WHEN 97 + 80 * 7 THEN - 67 END + - AVG ( + 38 ) AS col2
----
NULL

query I rowsort
SELECT 45 + + 71 AS col2
----
116

query I rowsort
SELECT ALL - 42 + 64
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-8743
SELECT ALL + COUNT( * ) + + MIN( 24 ) * CASE - COUNT( DISTINCT - - 97 ) WHEN + 35 THEN NULL WHEN 96 THEN NULL ELSE + 37 END AS col0
----
889

skipif mysql # not compatible
query I rowsort label-8743
SELECT ALL + COUNT ( * ) + + MIN ( 24 ) * CASE - COUNT ( DISTINCT - - 97 ) WHEN + 35 THEN NULL WHEN 96 THEN NULL ELSE + 37 END AS col0
----
889

query II rowsort
SELECT DISTINCT 89, + 18 AS col1
----
89
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8745
SELECT 35 DIV ( - COUNT( * ) ) AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-8745
SELECT 35 / ( - COUNT ( * ) ) AS col0
----
-35

query I rowsort
SELECT 71 + + 45 - + 2
----
114

query I rowsort
SELECT ALL - 43 * + + 98 * 37
----
-155918

query II rowsort
SELECT 21 AS col1, + 9 AS col1
----
21
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8749
SELECT CASE + 66 WHEN + 11 THEN - COUNT( * ) - + + 24 ELSE 38 END + - 6 AS col1
----
32

skipif mysql # not compatible
query I rowsort label-8749
SELECT CASE + 66 WHEN + 11 THEN - COUNT ( * ) - + + 24 ELSE 38 END + - 6 AS col1
----
32

query I rowsort
SELECT ALL + 79 + + - 58
----
21

query II rowsort
SELECT - + 50 AS col2, 68 AS col2
----
-50
68

query II rowsort
SELECT ALL + 52, + 90 AS col0
----
52
90

query I rowsort
SELECT ALL - 44 - - 4
----
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-8754
SELECT + COUNT( * ) col2, 49 + + + COUNT( * )
----
1
50

skipif mysql # not compatible
query II rowsort label-8754
SELECT + COUNT ( * ) col2, 49 + + + COUNT ( * )
----
1
50

onlyif mysql # aggregate syntax: 
query II rowsort label-8755
SELECT - COUNT( * ) AS col0, MIN( DISTINCT 79 ) AS col2
----
-1
79

skipif mysql # not compatible
query II rowsort label-8755
SELECT - COUNT ( * ) AS col0, MIN ( DISTINCT 79 ) AS col2
----
-1
79

query I rowsort
SELECT + 13 * + - 31 + + 40
----
-363

query I rowsort
SELECT DISTINCT 52 * + 41 AS col0
----
2132

onlyif mysql # aggregate syntax: 
query I rowsort label-8758
SELECT ALL COUNT( * ) - COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8758
SELECT ALL COUNT ( * ) - COUNT ( * ) AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8759
SELECT - 86 / - - 38 + CAST( NULL AS SIGNED ) + - + 75 - ( 98 ) * - 14 * - 44 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8759
SELECT - 86 / - - 38 + CAST ( NULL AS INTEGER ) + - + 75 - ( 98 ) * - 14 * - 44 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8760
SELECT ( - SUM( DISTINCT - - 14 ) )
----
-14

skipif mysql # not compatible
query I rowsort label-8760
SELECT ( - SUM ( DISTINCT - - 14 ) )
----
-14

query I rowsort
SELECT - - 67 * - - 38 * + 62 + + 64
----
157916

onlyif mysql # aggregate syntax: 
query I rowsort label-8762
SELECT DISTINCT 80 * + 25 * - COUNT( * )
----
-2000

skipif mysql # not compatible
query I rowsort label-8762
SELECT DISTINCT 80 * + 25 * - COUNT ( * )
----
-2000

query I rowsort
SELECT - 20 - 93 AS col1
----
-113

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8764
SELECT COUNT( * ) DIV + 78 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8764
SELECT COUNT ( * ) / + 78 AS col2
----
0

query I rowsort
SELECT NULLIF ( + + 48, + 57 ) + + + 67 AS col2
----
115

query I rowsort
SELECT 10 * 74 * ( 51 ) AS col1
----
37740

onlyif mysql # aggregate syntax: 
query I rowsort label-8767
SELECT 46 * NULLIF ( - + 36, + ( - COUNT( * ) ) ) + - 9
----
-1665

skipif mysql # not compatible
query I rowsort label-8767
SELECT 46 * NULLIF ( - + 36, + ( - COUNT ( * ) ) ) + - 9
----
-1665

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8768
SELECT 49 - 96 + + SUM( - 25 ) DIV + 72
----
-47

skipif mysql # not compatible
query I rowsort label-8768
SELECT 49 - 96 + + SUM ( - 25 ) / + 72
----
-47

onlyif mysql # aggregate syntax: 
query II rowsort label-8769
SELECT SUM( - 45 ) col2, + 39 + - 73 AS col2
----
-45
-34

skipif mysql # not compatible
query II rowsort label-8769
SELECT SUM ( - 45 ) col2, + 39 + - 73 AS col2
----
-45
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-8770
SELECT SUM( + 18 )
----
18

skipif mysql # not compatible
query I rowsort label-8770
SELECT SUM ( + 18 )
----
18

query I rowsort
SELECT ALL - 83 + 54 + 12 AS col0
----
-17

query I rowsort
SELECT + 80 * - 84 AS col2
----
-6720

query I rowsort
SELECT ALL 86 + - 13 AS col2
----
73

query I rowsort
SELECT DISTINCT 3 * 6 AS col1
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-8775
SELECT ALL 38 + + 23 / CASE + CASE + NULLIF ( - - 63, - 81 - - ( - 74 ) * + 87 ) WHEN + COALESCE ( + 17, 71 / + COUNT( ALL 36 ), - NULLIF ( COUNT( * ), + 8 ) + 41, 93 + - 38 ) THEN NULL WHEN - 84 THEN NULL ELSE - ( COUNT( * ) ) - 68 * 38 END WHEN 68 * - 85 THEN NULL WHEN - 0 THEN 48 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8775
SELECT ALL 38 + + 23 / CASE + CASE + NULLIF ( - - 63, - 81 - - ( - 74 ) * + 87 ) WHEN + COALESCE ( + 17, 71 / + COUNT ( ALL 36 ), - NULLIF ( COUNT ( * ), + 8 ) + 41, 93 + - 38 ) THEN NULL WHEN - 84 THEN NULL ELSE - ( COUNT ( * ) ) - 68 * 38 END WHEN 68 * - 85 THEN NULL WHEN - 0 THEN 48 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8776
SELECT + COUNT( * ) + ( - 37 ) DIV 38 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8776
SELECT + COUNT ( * ) + ( - 37 ) / 38 AS col2
----
1

query II rowsort
SELECT - NULLIF ( 22, - 85 ), + 74 AS col0
----
-22
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8778
SELECT - COUNT( * ) DIV - 25 * + ( + MIN( 37 ) ) * + 53 - 24 - - 0
----
-24

skipif mysql # not compatible
query I rowsort label-8778
SELECT - COUNT ( * ) / - 25 * + ( + MIN ( 37 ) ) * + 53 - 24 - - 0
----
-24

query I rowsort
SELECT + 14 * 99
----
1386

onlyif mysql # aggregate syntax: 
query II rowsort label-8780
SELECT - COUNT( * ) * - 29 * + 53 col2, 94 + CASE 53 WHEN - NULLIF ( 87, - 78 - 61 * 96 ) THEN 99 ELSE COUNT( * ) END + COUNT( * ) * 40
----
1537
135

skipif mysql # not compatible
query II rowsort label-8780
SELECT - COUNT ( * ) * - 29 * + 53 col2, 94 + CASE 53 WHEN - NULLIF ( 87, - 78 - 61 * 96 ) THEN 99 ELSE COUNT ( * ) END + COUNT ( * ) * 40
----
1537
135

onlyif mysql # aggregate syntax: 
query I rowsort label-8781
SELECT - + MIN( - - 51 ) - COUNT( * ) * + 26
----
-77

skipif mysql # not compatible
query I rowsort label-8781
SELECT - + MIN ( - - 51 ) - COUNT ( * ) * + 26
----
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-8782
SELECT ALL + 73 - - 39, 49 * CASE 66 WHEN - 6 THEN NULL ELSE + 40 * 24 END * ( ( 11 ) * - SUM( ( 92 ) + 78 ) ) AS col2
----
112
-87964800

skipif mysql # not compatible
query II rowsort label-8782
SELECT ALL + 73 - - 39, 49 * CASE 66 WHEN - 6 THEN NULL ELSE + 40 * 24 END * ( ( 11 ) * - SUM ( ( 92 ) + 78 ) ) AS col2
----
112
-87964800

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8783
SELECT DISTINCT + 57 / + ( + - CAST( NULL AS DECIMAL ) ) + + + 24
----
NULL

skipif mysql # not compatible
query I rowsort label-8783
SELECT DISTINCT + 57 / + ( + - CAST ( NULL AS REAL ) ) + + + 24
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8784
SELECT ALL - + 42 - + 22 DIV + NULLIF ( 51, 32 * - 89 )
----
-42

skipif mysql # not compatible
query I rowsort label-8784
SELECT ALL - + 42 - + 22 / + NULLIF ( 51, 32 * - 89 )
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-8785
SELECT ALL + - 63 * - ( COUNT( + - 51 ) )
----
63

skipif mysql # not compatible
query I rowsort label-8785
SELECT ALL + - 63 * - ( COUNT ( + - 51 ) )
----
63

query I rowsort
SELECT DISTINCT - 65 - - 87 col1
----
22

query II rowsort
SELECT + ( - 75 ), - 27 + + 36 - + - 91 * - ( - 13 ) + + 32 AS col0
----
-75
1224

query I rowsort
SELECT - 11 - 72 + - 10 + + - 24 AS col2
----
-117

query I rowsort
SELECT ALL - + 51 * + 15
----
-765

query I rowsort
SELECT - 54 + - - 6 * + 80 AS col1
----
426

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8791
SELECT + 24 - + - 98 * - ( - 69 ) + + - 34 AS col1, + CASE + - CAST( NULL AS SIGNED ) WHEN CASE + COUNT( * ) WHEN - 11 THEN NULL WHEN 77 THEN + 47 * + COUNT( * ) END THEN ( 49 ) / COUNT( * ) + + 50 WHEN 96 / - COUNT( * ) THEN 80 END AS col2
----
6752
NULL

skipif mysql # not compatible
query II rowsort label-8791
SELECT + 24 - + - 98 * - ( - 69 ) + + - 34 AS col1, + CASE + - CAST ( NULL AS INTEGER ) WHEN CASE + COUNT ( * ) WHEN - 11 THEN NULL WHEN 77 THEN + 47 * + COUNT ( * ) END THEN ( 49 ) / COUNT ( * ) + + 50 WHEN 96 / - COUNT ( * ) THEN 80 END AS col2
----
6752
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8792
SELECT DISTINCT - COALESCE ( + CASE - 43 WHEN 94 THEN COUNT( * ) * - 15 * + + 50 ELSE NULL END, + 95 * 38 )
----
-3610

skipif mysql # not compatible
query I rowsort label-8792
SELECT DISTINCT - COALESCE ( + CASE - 43 WHEN 94 THEN COUNT ( * ) * - 15 * + + 50 ELSE NULL END, + 95 * 38 )
----
-3610

onlyif mysql # aggregate syntax: 
query I rowsort label-8793
SELECT DISTINCT CASE - - 54 WHEN + + 99 THEN NULL WHEN 99 THEN - + 9 + - + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8793
SELECT DISTINCT CASE - - 54 WHEN + + 99 THEN NULL WHEN 99 THEN - + 9 + - + COUNT ( * ) END
----
NULL

query I rowsort
SELECT - 77 + 98 * ( + 37 ) + 38
----
3587

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8795
SELECT - - COALESCE ( 42, + 52 - - 79 - + 84 * 35, + 91 ) + ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8795
SELECT - - COALESCE ( 42, + 52 - - 79 - + 84 * 35, + 91 ) + ( - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8796
SELECT DISTINCT + - NULLIF ( CAST( NULL AS SIGNED ), + 7 ) + + 30 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8796
SELECT DISTINCT + - NULLIF ( CAST ( NULL AS INTEGER ), + 7 ) + + 30 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8797
SELECT ALL - COUNT( * ) * + 43, 95 * + 77 AS col0
----
-43
7315

skipif mysql # not compatible
query II rowsort label-8797
SELECT ALL - COUNT ( * ) * + 43, 95 * + 77 AS col0
----
-43
7315

onlyif mysql # aggregate syntax: 
query I rowsort label-8798
SELECT + - 11 * + + COUNT( - 48 ) AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-8798
SELECT + - 11 * + + COUNT ( - 48 ) AS col0
----
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8799
SELECT ALL + - 11 DIV - 49 * - + 82 + - COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8799
SELECT ALL + - 11 / - 49 * - + 82 + - COUNT ( * ) AS col2
----
-1

query I rowsort
SELECT - 66 + - + 2
----
-68

query I rowsort
SELECT - - ( 73 ) * - - 8 AS col1
----
584

onlyif mysql # aggregate syntax: 
query I rowsort label-8802
SELECT ALL COUNT( * ) * - - 76
----
76

skipif mysql # not compatible
query I rowsort label-8802
SELECT ALL COUNT ( * ) * - - 76
----
76

query I rowsort
SELECT - 34 * - 43 * + 33 + + 15 / + 3 * - + 58 * - + 56 / + CASE 56 WHEN 89 + - 2 THEN NULL WHEN 23 THEN - 4 END
----
NULL

query I rowsort
SELECT + 16 * 91
----
1456

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8805
SELECT ALL + 23 * + 60 * + ( - 49 ) + + + CASE - - 68 WHEN 12 * CASE CAST( - 1 AS SIGNED ) WHEN 13 * - 56 + - COUNT( * ) THEN NULL WHEN SUM( + CAST( 85 AS SIGNED ) ) * - ( 79 * - SUM( 73 ) ) + 32 THEN ( - COUNT( * ) ) END THEN NULL ELSE 2 END AS col2
----
-67618

skipif mysql # not compatible
query I rowsort label-8805
SELECT ALL + 23 * + 60 * + ( - 49 ) + + + CASE - - 68 WHEN 12 * CASE CAST ( - 1 AS INTEGER ) WHEN 13 * - 56 + - COUNT ( * ) THEN NULL WHEN SUM ( + CAST ( 85 AS INTEGER ) ) * - ( 79 * - SUM ( 73 ) ) + 32 THEN ( - COUNT ( * ) ) END THEN NULL ELSE 2 END AS col2
----
-67618

query I rowsort
SELECT ( 60 ) AS col1
----
60

query I rowsort
SELECT + ( + - 44 ) AS col2
----
-44

query I rowsort
SELECT ( - 61 ) AS col2
----
-61

query I rowsort
SELECT ALL + 46 * - NULLIF ( 62, + 66 ) + + - 79
----
-2931

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8810
SELECT ALL 27 DIV 7 * MAX( DISTINCT 90 ) AS col2
----
270

skipif mysql # not compatible
query I rowsort label-8810
SELECT ALL 27 / 7 * MAX ( DISTINCT 90 ) AS col2
----
270

query I rowsort
SELECT + ( - + 15 ) AS col0
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8812
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - + NULLIF ( - 98, + + ( + 67 ) ) + + 40 - + 87 * + COUNT( * ) * 96 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8812
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - + NULLIF ( - 98, + + ( + 67 ) ) + + 40 - + 87 * + COUNT ( * ) * 96 AS col1
----
NULL

query I rowsort
SELECT + ( + 73 ) AS col2
----
73

query II rowsort
SELECT DISTINCT 52 * + 75 - + 58, 72 AS col1
----
3842
72

onlyif mysql # DIV for integer division: 
query I rowsort label-8815
SELECT ALL 91 DIV - ( 61 )
----
-1

skipif mysql # not compatible
query I rowsort label-8815
SELECT ALL 91 / - ( 61 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8816
SELECT + ( + - 45 ) + + 9 - COUNT( * ) AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-8816
SELECT + ( + - 45 ) + + 9 - COUNT ( * ) AS col2
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-8817
SELECT - COUNT( DISTINCT 10 ) + - + 29 - - COUNT( * ) * - - COUNT( * ) * - - 64 + + - 73 + - - 67 * - 69
----
-4662

skipif mysql # not compatible
query I rowsort label-8817
SELECT - COUNT ( DISTINCT 10 ) + - + 29 - - COUNT ( * ) * - - COUNT ( * ) * - - 64 + + - 73 + - - 67 * - 69
----
-4662

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8818
SELECT + COUNT( * ) + - CAST( + 91 AS SIGNED ) DIV 12 DIV 91 * - 32 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8818
SELECT + COUNT ( * ) + - CAST ( + 91 AS INTEGER ) / 12 / 91 * - 32 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8819
SELECT DISTINCT + SUM( 55 ) * 2
----
110

skipif mysql # not compatible
query I rowsort label-8819
SELECT DISTINCT + SUM ( 55 ) * 2
----
110

query I rowsort
SELECT - ( - 20 ) * + 27
----
540

query I rowsort
SELECT - 95 + + - ( + - 30 ) col0
----
-65

query II rowsort
SELECT ALL 38, + 50 AS col1
----
38
50

query II rowsort
SELECT + 65, 47 AS col1
----
65
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8824
SELECT - COUNT( * ) + + 48
----
47

skipif mysql # not compatible
query I rowsort label-8824
SELECT - COUNT ( * ) + + 48
----
47

query II rowsort
SELECT - 99, - 48 + - 8 AS col0
----
-99
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-8826
SELECT - ( + COALESCE ( - 76, + COUNT( * ) ) )
----
76

skipif mysql # not compatible
query I rowsort label-8826
SELECT - ( + COALESCE ( - 76, + COUNT ( * ) ) )
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-8827
SELECT ALL MIN( 6 ) AS col1
----
6

skipif mysql # not compatible
query I rowsort label-8827
SELECT ALL MIN ( 6 ) AS col1
----
6

query II rowsort
SELECT - + 28 AS col0, 67 - 86
----
-28
-19

query I rowsort
SELECT - 84 + - - 21 - 64 - - - ( - 2 ) AS col2
----
-125

query I rowsort
SELECT DISTINCT 54 + - - 67 AS col0
----
121

query I rowsort
SELECT ALL + 51 + + 2
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-8832
SELECT DISTINCT - + SUM( ALL 61 ) * + - 53 * + - 29 * + 84
----
-7875588

skipif mysql # not compatible
query I rowsort label-8832
SELECT DISTINCT - + SUM ( ALL 61 ) * + - 53 * + - 29 * + 84
----
-7875588

onlyif mysql # aggregate syntax: 
query I rowsort label-8833
SELECT DISTINCT + COUNT( * ) + - 30 AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-8833
SELECT DISTINCT + COUNT ( * ) + - 30 AS col1
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-8834
SELECT + + 54 * - COUNT( * ) AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-8834
SELECT + + 54 * - COUNT ( * ) AS col0
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-8835
SELECT - COUNT( DISTINCT 61 ) - - ( - 23 ) * + COUNT( + 13 ) AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-8835
SELECT - COUNT ( DISTINCT 61 ) - - ( - 23 ) * + COUNT ( + 13 ) AS col0
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8836
SELECT - CAST( NULL AS SIGNED ) * - 35 * + 64 + + 0 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8836
SELECT - CAST ( NULL AS INTEGER ) * - 35 * + 64 + + 0 AS col2
----
NULL

query II rowsort
SELECT 61, 72 AS col0
----
61
72

query I rowsort
SELECT - - 74 + 41
----
115

onlyif mysql # DIV for integer division: 
query I rowsort label-8839
SELECT DISTINCT + 68 + 41 + - 73 DIV - ( + - 50 )
----
108

skipif mysql # not compatible
query I rowsort label-8839
SELECT DISTINCT + 68 + 41 + - 73 / - ( + - 50 )
----
108

onlyif mysql # DIV for integer division: 
query I rowsort label-8840
SELECT + 80 DIV + 65 + + ( 43 ) AS col0
----
44

skipif mysql # not compatible
query I rowsort label-8840
SELECT + 80 / + 65 + + ( 43 ) AS col0
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8841
SELECT ALL - COALESCE ( - - 99, - MIN( DISTINCT + 16 ) * + 83 * - + MIN( DISTINCT + NULLIF ( + 95, + 15 DIV 79 ) ) + + 33 DIV + 13 ) + - 86 AS col0
----
-185

skipif mysql # not compatible
query I rowsort label-8841
SELECT ALL - COALESCE ( - - 99, - MIN ( DISTINCT + 16 ) * + 83 * - + MIN ( DISTINCT + NULLIF ( + 95, + 15 / 79 ) ) + + 33 / + 13 ) + - 86 AS col0
----
-185

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8842
SELECT ALL + CASE - - COUNT( * ) WHEN - COUNT( * ) THEN NULL WHEN + 88 DIV - + COUNT( * ) THEN + ( + - NULLIF ( - MAX( - 28 ), 40 ) ) * + 87 - 91 DIV 46 ELSE + 4 + 81 END + - COUNT( * ) AS col0
----
84

skipif mysql # not compatible
query I rowsort label-8842
SELECT ALL + CASE - - COUNT ( * ) WHEN - COUNT ( * ) THEN NULL WHEN + 88 / - + COUNT ( * ) THEN + ( + - NULLIF ( - MAX ( - 28 ), 40 ) ) * + 87 - 91 / 46 ELSE + 4 + 81 END + - COUNT ( * ) AS col0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-8843
SELECT ALL 85 * MAX( 16 )
----
1360

skipif mysql # not compatible
query I rowsort label-8843
SELECT ALL 85 * MAX ( 16 )
----
1360

onlyif mysql # aggregate syntax: 
query I rowsort label-8844
SELECT DISTINCT 44 - + - COUNT( * ) * - 50 * + + 19 AS col1
----
-906

skipif mysql # not compatible
query I rowsort label-8844
SELECT DISTINCT 44 - + - COUNT ( * ) * - 50 * + + 19 AS col1
----
-906

onlyif mysql # aggregate syntax: 
query I rowsort label-8845
SELECT DISTINCT + 39 * + - MIN( + 85 )
----
-3315

skipif mysql # not compatible
query I rowsort label-8845
SELECT DISTINCT + 39 * + - MIN ( + 85 )
----
-3315

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8846
SELECT DISTINCT - NULLIF ( - 6, + 74 + + 93 ) AS col2, COUNT( * ) * - 16 + + NULLIF ( + CASE - + 63 WHEN + CAST( NULL AS SIGNED ) THEN - CASE MAX( - 56 ) WHEN ( + 81 ) - - 18 THEN - COUNT( * ) * + 70 + 92 * 13 WHEN 12 + - COUNT( * ) THEN NULL ELSE COALESCE ( 76, COUNT( * ) ) END * 66 WHEN + ( + 74 ) THEN 21 ELSE NULL END, ( - 32 ) ) * 45
----
6
NULL

skipif mysql # not compatible
query II rowsort label-8846
SELECT DISTINCT - NULLIF ( - 6, + 74 + + 93 ) AS col2, COUNT ( * ) * - 16 + + NULLIF ( + CASE - + 63 WHEN + CAST ( NULL AS INTEGER ) THEN - CASE MAX ( - 56 ) WHEN ( + 81 ) - - 18 THEN - COUNT ( * ) * + 70 + 92 * 13 WHEN 12 + - COUNT ( * ) THEN NULL ELSE COALESCE ( 76, COUNT ( * ) ) END * 66 WHEN + ( + 74 ) THEN 21 ELSE NULL END, ( - 32 ) ) * 45
----
6
NULL

query I rowsort
SELECT - NULLIF ( - 85, + + 26 + + 16 )
----
85

onlyif mysql # aggregate syntax: 
query II rowsort label-8848
SELECT DISTINCT - MAX( DISTINCT + - COALESCE ( - + 8, + 67 ) ), + 31 + 45 - - 55 + + + 72 * + COUNT( * ) * 44 col2
----
-8
3299

skipif mysql # not compatible
query II rowsort label-8848
SELECT DISTINCT - MAX ( DISTINCT + - COALESCE ( - + 8, + 67 ) ), + 31 + 45 - - 55 + + + 72 * + COUNT ( * ) * 44 col2
----
-8
3299

onlyif mysql # aggregate syntax: 
query I rowsort label-8849
SELECT - 88 * - COUNT( * ) + + 63 * - 59 * - 91
----
338335

skipif mysql # not compatible
query I rowsort label-8849
SELECT - 88 * - COUNT ( * ) + + 63 * - 59 * - 91
----
338335

query I rowsort
SELECT - + ( 66 ) AS col0
----
-66

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8851
SELECT 50 - + - 62 + - + 31 + - COALESCE ( + NULLIF ( - 75, 54 * CAST( NULL AS DECIMAL ) ), + 1 ) AS col2
----
156

skipif mysql # not compatible
query I rowsort label-8851
SELECT 50 - + - 62 + - + 31 + - COALESCE ( + NULLIF ( - 75, 54 * CAST ( NULL AS REAL ) ), + 1 ) AS col2
----
156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8852
SELECT DISTINCT + 13 + - - CAST( - SUM( DISTINCT 5 ) AS SIGNED )
----
8

skipif mysql # not compatible
query I rowsort label-8852
SELECT DISTINCT + 13 + - - CAST ( - SUM ( DISTINCT 5 ) AS INTEGER )
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8853
SELECT ALL ( - CAST( + 26 AS SIGNED ) ) * + SUM( + 43 )
----
-1118

skipif mysql # not compatible
query I rowsort label-8853
SELECT ALL ( - CAST ( + 26 AS INTEGER ) ) * + SUM ( + 43 )
----
-1118

onlyif mysql # aggregate syntax: 
query I rowsort label-8854
SELECT - 73 + - - COUNT( * ) + + 60 AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-8854
SELECT - 73 + - - COUNT ( * ) + + 60 AS col1
----
-12

query I rowsort
SELECT ALL 42 + - ( 15 ) AS col0
----
27

query I rowsort
SELECT DISTINCT - 22 * + 90
----
-1980

query I rowsort
SELECT 89 * - + ( + 59 ) AS col1
----
-5251

query I rowsort
SELECT ALL + + 8 + - 39 AS col2
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-8859
SELECT ALL - COUNT( - + 43 ) * + - 48 * 62 + MAX( ALL - 46 )
----
2930

skipif mysql # not compatible
query I rowsort label-8859
SELECT ALL - COUNT ( - + 43 ) * + - 48 * 62 + MAX ( ALL - 46 )
----
2930

onlyif mysql # aggregate syntax: 
query I rowsort label-8860
SELECT + 39 + + COUNT( * )
----
40

skipif mysql # not compatible
query I rowsort label-8860
SELECT + 39 + + COUNT ( * )
----
40

query I rowsort
SELECT + 9 - + 21 AS col0
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8862
SELECT - CAST( - ( - + COALESCE ( + - CAST( NULL AS SIGNED ), 88, - 78 ) ) AS SIGNED )
----
-88

skipif mysql # not compatible
query I rowsort label-8862
SELECT - CAST ( - ( - + COALESCE ( + - CAST ( NULL AS INTEGER ), 88, - 78 ) ) AS INTEGER )
----
-88

query I rowsort
SELECT + 22 + + - 70
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8864
SELECT ALL - NULLIF ( + 95, 34 * 39 * + 79 ) + - - CASE - ( 93 ) WHEN + COALESCE ( - COUNT( * ), 17, 56 * CAST( - 87 AS SIGNED ) - 93 ) * 32 THEN NULL ELSE - ( + ( SUM( - 76 ) ) ) END * 3 AS col2
----
133

skipif mysql # not compatible
query I rowsort label-8864
SELECT ALL - NULLIF ( + 95, 34 * 39 * + 79 ) + - - CASE - ( 93 ) WHEN + COALESCE ( - COUNT ( * ), 17, 56 * CAST ( - 87 AS INTEGER ) - 93 ) * 32 THEN NULL ELSE - ( + ( SUM ( - 76 ) ) ) END * 3 AS col2
----
133

query I rowsort
SELECT - - 99 AS col1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8866
SELECT MAX( ALL - 87 ) + + 63
----
-24

skipif mysql # not compatible
query I rowsort label-8866
SELECT MAX ( ALL - 87 ) + + 63
----
-24

query I rowsort
SELECT ALL - 24 * 56
----
-1344

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8868
SELECT ALL 63 / + ( - - 12 ) * - CAST( NULL AS SIGNED ) + CASE - 37 WHEN - 81 THEN + + ( - COUNT( * ) ) + - + 32 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8868
SELECT ALL 63 / + ( - - 12 ) * - CAST ( NULL AS INTEGER ) + CASE - 37 WHEN - 81 THEN + + ( - COUNT ( * ) ) + - + 32 END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8869
SELECT DISTINCT 80 DIV ( 76 ) DIV ( 53 ) * - 30 + MAX( 91 ) AS col2
----
91

skipif mysql # not compatible
query I rowsort label-8869
SELECT DISTINCT 80 / ( 76 ) / ( 53 ) * - 30 + MAX ( 91 ) AS col2
----
91

query I rowsort
SELECT ALL + 51 * - ( 14 )
----
-714

query I rowsort
SELECT 64 * 52
----
3328

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8872
SELECT ALL - 24 * + - SUM( DISTINCT - - CAST( 2 AS SIGNED ) )
----
48

skipif mysql # not compatible
query I rowsort label-8872
SELECT ALL - 24 * + - SUM ( DISTINCT - - CAST ( 2 AS INTEGER ) )
----
48

query II rowsort
SELECT 35 + + ( + 93 ) AS col0, ( + 13 ) * 92 + - 9 * + 20
----
128
1016

onlyif mysql # aggregate syntax: 
query I rowsort label-8874
SELECT + MAX( ALL - 15 ) AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-8874
SELECT + MAX ( ALL - 15 ) AS col2
----
-15

query I rowsort
SELECT DISTINCT - 6 * + 13 AS col2
----
-78

query I rowsort
SELECT ALL + 52 * 5
----
260

query I rowsort
SELECT 64 * + + 77
----
4928

query I rowsort
SELECT 70 + - - 33 * + 71
----
2413

query I rowsort
SELECT ALL + 52 * - 7 * - - 26
----
-9464

query I rowsort
SELECT 80 + 84 AS col2
----
164

onlyif mysql # aggregate syntax: 
query I rowsort label-8881
SELECT ALL - ( - - COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-8881
SELECT ALL - ( - - COUNT ( * ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8882
SELECT MAX( ALL + 98 ) * + + 17
----
1666

skipif mysql # not compatible
query I rowsort label-8882
SELECT MAX ( ALL + 98 ) * + + 17
----
1666

onlyif mysql # DIV for integer division: 
query I rowsort label-8883
SELECT ALL COALESCE ( 10, - - ( - 24 ) * + 98 DIV + + 90 ) * 79 AS col2
----
790

skipif mysql # not compatible
query I rowsort label-8883
SELECT ALL COALESCE ( 10, - - ( - 24 ) * + 98 / + + 90 ) * 79 AS col2
----
790

query I rowsort
SELECT DISTINCT + 8 + - 1 - - 52 + - - 52 AS col2
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-8885
SELECT + COUNT( * ) * + + 30
----
30

skipif mysql # not compatible
query I rowsort label-8885
SELECT + COUNT ( * ) * + + 30
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-8886
SELECT - 16 + COUNT( * ) AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-8886
SELECT - 16 + COUNT ( * ) AS col2
----
-15

query II rowsort
SELECT + + 88, + 30 AS col0
----
88
30

onlyif mysql # aggregate syntax: 
query I rowsort label-8888
SELECT - 90 + - 72 * - - COUNT( * ) * + 1
----
-162

skipif mysql # not compatible
query I rowsort label-8888
SELECT - 90 + - 72 * - - COUNT ( * ) * + 1
----
-162

onlyif mysql # aggregate syntax: 
query I rowsort label-8889
SELECT - MAX( + - 62 ) AS col1
----
62

skipif mysql # not compatible
query I rowsort label-8889
SELECT - MAX ( + - 62 ) AS col1
----
62

query I rowsort
SELECT ALL - + 77 * + 83 AS col2
----
-6391

onlyif mysql # aggregate syntax: 
query I rowsort label-8891
SELECT ALL 74 + - MAX( DISTINCT + NULLIF ( 25, + + ( 24 ) ) ) * - + 37
----
999

skipif mysql # not compatible
query I rowsort label-8891
SELECT ALL 74 + - MAX ( DISTINCT + NULLIF ( 25, + + ( 24 ) ) ) * - + 37
----
999

query I rowsort
SELECT ALL - 84 + 39 AS col0
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8893
SELECT DISTINCT + CAST( - - CASE - COUNT( DISTINCT - 73 ) WHEN + 53 THEN NULL WHEN 15 / 81 * - + COUNT( * ) * + NULLIF ( 41, + 35 - + 63 ) * 2 THEN 68 * ( - 74 ) END AS SIGNED ) + + 31
----
NULL

skipif mysql # not compatible
query I rowsort label-8893
SELECT DISTINCT + CAST ( - - CASE - COUNT ( DISTINCT - 73 ) WHEN + 53 THEN NULL WHEN 15 / 81 * - + COUNT ( * ) * + NULLIF ( 41, + 35 - + 63 ) * 2 THEN 68 * ( - 74 ) END AS INTEGER ) + + 31
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8894
SELECT DISTINCT - + 2 * COUNT( * ) * 51 col2
----
-102

skipif mysql # not compatible
query I rowsort label-8894
SELECT DISTINCT - + 2 * COUNT ( * ) * 51 col2
----
-102

query I rowsort
SELECT ALL - 29 + 37 + + 23 * + - ( + 90 ) * - - COALESCE ( - 90, + 67 )
----
186308

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8896
SELECT + MAX( ALL - 36 ) + + SUM( ALL 48 ) DIV 26 * 36 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8896
SELECT + MAX ( ALL - 36 ) + + SUM ( ALL 48 ) / 26 * 36 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8897
SELECT + COUNT( * ) + - 63 + - 85 * + 85 + + 78 DIV - COUNT( * )
----
-7365

skipif mysql # not compatible
query I rowsort label-8897
SELECT + COUNT ( * ) + - 63 + - 85 * + 85 + + 78 / - COUNT ( * )
----
-7365

query I rowsort
SELECT ALL 76 + - 56 * 29 + NULLIF ( - 33, + 11 ) - + + 3
----
-1584

onlyif mysql # DIV for integer division: 
query II rowsort label-8899
SELECT + 20 + + - 11 DIV 25 AS col1, 16 AS col1
----
20
16

skipif mysql # not compatible
query II rowsort label-8899
SELECT + 20 + + - 11 / 25 AS col1, 16 AS col1
----
20
16

onlyif mysql # aggregate syntax: 
query II rowsort label-8900
SELECT + 59 * + 92 - - 55 AS col0, COALESCE ( 83, CASE - 32 WHEN - - 22 + - 54 THEN + 3 * - 89 + + COUNT( * ) WHEN - 86 THEN NULL ELSE NULL END, - 56 ) + - 50 * - 48 AS col2
----
5483
2483

skipif mysql # not compatible
query II rowsort label-8900
SELECT + 59 * + 92 - - 55 AS col0, COALESCE ( 83, CASE - 32 WHEN - - 22 + - 54 THEN + 3 * - 89 + + COUNT ( * ) WHEN - 86 THEN NULL ELSE NULL END, - 56 ) + - 50 * - 48 AS col2
----
5483
2483

onlyif mysql # aggregate syntax: 
query I rowsort label-8901
SELECT ALL - 77 * + + MAX( DISTINCT + 90 ) AS col0
----
-6930

skipif mysql # not compatible
query I rowsort label-8901
SELECT ALL - 77 * + + MAX ( DISTINCT + 90 ) AS col0
----
-6930

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8902
SELECT DISTINCT + CASE CASE WHEN NOT + COUNT( DISTINCT 54 ) >= ( + CAST( + 50 AS SIGNED ) / + - 32 ) THEN + 9 ELSE NULL END WHEN + COUNT( * ) - 25 THEN - 93 WHEN - 86 THEN NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8902
SELECT DISTINCT + CASE CASE WHEN NOT + COUNT ( DISTINCT 54 ) >= ( + CAST ( + 50 AS INTEGER ) / + - 32 ) THEN + 9 ELSE NULL END WHEN + COUNT ( * ) - 25 THEN - 93 WHEN - 86 THEN NULL END col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8903
SELECT ALL 43 - - COALESCE ( - + 17, + + 83 * - 26 + + - 49 DIV 68, 95 * + 99 * + 7 + 79 ) + ( + 29 ) AS col1
----
55

skipif mysql # not compatible
query I rowsort label-8903
SELECT ALL 43 - - COALESCE ( - + 17, + + 83 * - 26 + + - 49 / 68, 95 * + 99 * + 7 + 79 ) + ( + 29 ) AS col1
----
55

onlyif mysql # aggregate syntax: 
query II rowsort label-8904
SELECT DISTINCT 50, ( NULLIF ( 68, 83 ) ) * + NULLIF ( - - 4, COUNT( * ) + 23 ) * + - ( + + 74 ) col2
----
50
-20128

skipif mysql # not compatible
query II rowsort label-8904
SELECT DISTINCT 50, ( NULLIF ( 68, 83 ) ) * + NULLIF ( - - 4, COUNT ( * ) + 23 ) * + - ( + + 74 ) col2
----
50
-20128

onlyif mysql # DIV for integer division: 
query II rowsort label-8905
SELECT DISTINCT 52 AS col0, + 70 DIV + 56
----
52
1

skipif mysql # not compatible
query II rowsort label-8905
SELECT DISTINCT 52 AS col0, + 70 / + 56
----
52
1

query I rowsort
SELECT ALL 39 * + - 38
----
-1482

onlyif mysql # aggregate syntax: 
query I rowsort label-8907
SELECT + 4 - COALESCE ( - 38, + 24 + + 74, + COALESCE ( + 63, - 61 ) - + 82, - COUNT( * ) + + 86 ) * - 47 AS col0
----
-1782

skipif mysql # not compatible
query I rowsort label-8907
SELECT + 4 - COALESCE ( - 38, + 24 + + 74, + COALESCE ( + 63, - 61 ) - + 82, - COUNT ( * ) + + 86 ) * - 47 AS col0
----
-1782

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8908
SELECT - CASE + CAST( NULL AS DECIMAL ) WHEN - 30 THEN 48 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8908
SELECT - CASE + CAST ( NULL AS REAL ) WHEN - 30 THEN 48 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8909
SELECT - MAX( + 37 )
----
-37

skipif mysql # not compatible
query I rowsort label-8909
SELECT - MAX ( + 37 )
----
-37

query I rowsort
SELECT + 80 + 94 + 95 + + + 23 AS col1
----
292

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8911
SELECT + 86 DIV + COUNT( * ) AS col1
----
86

skipif mysql # not compatible
query I rowsort label-8911
SELECT + 86 / + COUNT ( * ) AS col1
----
86

query I rowsort
SELECT + 98 * - 35 * + 66
----
-226380

query I rowsort
SELECT - 3 + + 36
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-8914
SELECT ALL - 93 DIV + 69
----
-1

skipif mysql # not compatible
query I rowsort label-8914
SELECT ALL - 93 / + 69
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8915
SELECT + 68 * + + COUNT( * ) / - ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8915
SELECT + 68 * + + COUNT ( * ) / - ( CAST ( NULL AS INTEGER ) )
----
NULL

query II rowsort
SELECT DISTINCT + 6 AS col0, 58 AS col1
----
6
58

query II rowsort
SELECT ALL + 9, 94 AS col1
----
9
94

onlyif mysql # DIV for integer division: 
query II rowsort label-8918
SELECT + 89 col2, ( + - 7 ) DIV - + 92
----
89
0

skipif mysql # not compatible
query II rowsort label-8918
SELECT + 89 col2, ( + - 7 ) / - + 92
----
89
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8919
SELECT + MAX( 21 ) DIV + 12 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8919
SELECT + MAX ( 21 ) / + 12 AS col1
----
1

query I rowsort
SELECT - 75 * + 36 * + 83 AS col0
----
-224100

onlyif mysql # aggregate syntax: 
query II rowsort label-8921
SELECT + COUNT( * ) AS col0, - 90
----
1
-90

skipif mysql # not compatible
query II rowsort label-8921
SELECT + COUNT ( * ) AS col0, - 90
----
1
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-8922
SELECT DISTINCT + + COUNT( DISTINCT + + 3 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-8922
SELECT DISTINCT + + COUNT ( DISTINCT + + 3 ) col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8923
SELECT + + NULLIF ( + - 85, + + 74 * - MAX( - 89 ) )
----
-85

skipif mysql # not compatible
query I rowsort label-8923
SELECT + + NULLIF ( + - 85, + + 74 * - MAX ( - 89 ) )
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-8924
SELECT - - COUNT( * ) * 8 AS col2
----
8

skipif mysql # not compatible
query I rowsort label-8924
SELECT - - COUNT ( * ) * 8 AS col2
----
8

query I rowsort
SELECT ALL - - 24 * - - 83 * 54 + - + 71 * + + 40
----
104728

onlyif mysql # aggregate syntax: 
query II rowsort label-8926
SELECT ALL + + 38 AS col1, COUNT( * ) - + 31 * + 72 + - 36 + + + SUM( + - 15 ) * - + ( - 85 ) AS col0
----
38
-3542

skipif mysql # not compatible
query II rowsort label-8926
SELECT ALL + + 38 AS col1, COUNT ( * ) - + 31 * + 72 + - 36 + + + SUM ( + - 15 ) * - + ( - 85 ) AS col0
----
38
-3542

onlyif mysql # aggregate syntax: 
query I rowsort label-8927
SELECT 83 * 7 * + + 21 + + COUNT( * ) * + 78 + + ( 52 ) AS col2
----
12331

skipif mysql # not compatible
query I rowsort label-8927
SELECT 83 * 7 * + + 21 + + COUNT ( * ) * + 78 + + ( 52 ) AS col2
----
12331

query I rowsort
SELECT - 77 * - 28 AS col2
----
2156

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8929
SELECT - 74 AS col0, 17 * + + ( + + 51 ) * + 27 * 56 + - CAST( NULL AS SIGNED )
----
-74
NULL

skipif mysql # not compatible
query II rowsort label-8929
SELECT - 74 AS col0, 17 * + + ( + + 51 ) * + 27 * 56 + - CAST ( NULL AS INTEGER )
----
-74
NULL

query I rowsort
SELECT - 21 + + CASE WHEN NOT ( NULL ) IS NULL THEN NULL ELSE - 81 END AS col0
----
-102

query II rowsort
SELECT ALL + + 5 * 96 - + - 36 * - 47 AS col1, 86 + 96 AS col2
----
-1212
182

onlyif mysql # aggregate syntax: 
query I rowsort label-8932
SELECT ALL + ( - + 55 ) * + COUNT( * ) * 12 * + ( + COUNT( * ) ) + + 63 col0
----
-597

skipif mysql # not compatible
query I rowsort label-8932
SELECT ALL + ( - + 55 ) * + COUNT ( * ) * 12 * + ( + COUNT ( * ) ) + + 63 col0
----
-597

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8933
SELECT DISTINCT - 95 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8933
SELECT DISTINCT - 95 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT - + 82 * + 22 AS col0
----
-1804

query I rowsort
SELECT ALL + 57 - - 86 AS col1
----
143

onlyif mysql # aggregate syntax: 
query I rowsort label-8936
SELECT + 80 * - - COUNT( * ) + - - 44 AS col0
----
124

skipif mysql # not compatible
query I rowsort label-8936
SELECT + 80 * - - COUNT ( * ) + - - 44 AS col0
----
124

query I rowsort
SELECT ALL ( + 33 )
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8938
SELECT + 10 * - + CAST( NULL AS SIGNED ) / + 39 * - 2
----
NULL

skipif mysql # not compatible
query I rowsort label-8938
SELECT + 10 * - + CAST ( NULL AS INTEGER ) / + 39 * - 2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8939
SELECT ALL CAST( + 97 AS SIGNED ) AS col1, + 92 * + 60 * + CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) AS col0
----
97
NULL

skipif mysql # not compatible
query II rowsort label-8939
SELECT ALL CAST ( + 97 AS INTEGER ) AS col1, + 92 * + 60 * + CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) AS col0
----
97
NULL

query II rowsort
SELECT - 80 + + - 58 col0, - 69 AS col0
----
-138
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-8941
SELECT + MAX( 26 ) - + 72 - + - 23 AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-8941
SELECT + MAX ( 26 ) - + 72 - + - 23 AS col2
----
-23

query II rowsort
SELECT - 74 * - - 14 AS col0, + 22 AS col1
----
-1036
22

onlyif mysql # aggregate syntax: 
query II rowsort label-8943
SELECT + 80 * + + COUNT( * ) AS col1, COUNT( + NULLIF ( - 86, - 47 ) ) AS col2
----
80
1

skipif mysql # not compatible
query II rowsort label-8943
SELECT + 80 * + + COUNT ( * ) AS col1, COUNT ( + NULLIF ( - 86, - 47 ) ) AS col2
----
80
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8944
SELECT + ( - COUNT( * ) ) + CAST( COUNT( * ) AS SIGNED ) DIV + 28
----
-1

skipif mysql # not compatible
query I rowsort label-8944
SELECT + ( - COUNT ( * ) ) + CAST ( COUNT ( * ) AS INTEGER ) / + 28
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8945
SELECT + 27 + + + 98 * + 46 AS col0, CAST( NULL AS SIGNED ) * - 73 * + ( + - 14 ) AS col2
----
4535
NULL

skipif mysql # not compatible
query II rowsort label-8945
SELECT + 27 + + + 98 * + 46 AS col0, CAST ( NULL AS INTEGER ) * - 73 * + ( + - 14 ) AS col2
----
4535
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8946
SELECT + ( COUNT( * ) ) + - 2 DIV 20 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8946
SELECT + ( COUNT ( * ) ) + - 2 / 20 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8947
SELECT ALL MIN( + + 65 ) AS col2
----
65

skipif mysql # not compatible
query I rowsort label-8947
SELECT ALL MIN ( + + 65 ) AS col2
----
65

query I rowsort
SELECT DISTINCT 73 * + 78
----
5694

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8949
SELECT + 8 + CAST( NULL AS SIGNED ) AS col0, ( 4 ) AS col0
----
NULL
4

skipif mysql # not compatible
query II rowsort label-8949
SELECT + 8 + CAST ( NULL AS INTEGER ) AS col0, ( 4 ) AS col0
----
NULL
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8950
SELECT + 14 * + MAX( + 1 )
----
14

skipif mysql # not compatible
query I rowsort label-8950
SELECT + 14 * + MAX ( + 1 )
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8951
SELECT DISTINCT 60 DIV - - 91 * + MAX( - - 67 ) + + - SUM( ALL - + 21 ) col0
----
21

skipif mysql # not compatible
query I rowsort label-8951
SELECT DISTINCT 60 / - - 91 * + MAX ( - - 67 ) + + - SUM ( ALL - + 21 ) col0
----
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8952
SELECT ALL + 28 DIV - 6 + - COUNT( * )
----
-5

skipif mysql # not compatible
query I rowsort label-8952
SELECT ALL + 28 / - 6 + - COUNT ( * )
----
-5

query I rowsort
SELECT + ( + ( + - 52 ) ) AS col2
----
-52

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8954
SELECT CAST( NULL AS DECIMAL ) / + + 70 + - 81 * - 32 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8954
SELECT CAST ( NULL AS REAL ) / + + 70 + - 81 * - 32 AS col2
----
NULL

query II rowsort
SELECT + - 48 + + + 28 AS col2, 34
----
-20
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8956
SELECT ALL MIN( DISTINCT - 86 ) DIV 42 + + NULLIF ( - - ( + 7 ), - + 57 + + + 78 + + 5 - SUM( - + 77 ) )
----
5

skipif mysql # not compatible
query I rowsort label-8956
SELECT ALL MIN ( DISTINCT - 86 ) / 42 + + NULLIF ( - - ( + 7 ), - + 57 + + + 78 + + 5 - SUM ( - + 77 ) )
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8957
SELECT + + 73 + 15 DIV - - 70 * - SUM( + 47 ) * - 45 AS col0
----
73

skipif mysql # not compatible
query I rowsort label-8957
SELECT + + 73 + 15 / - - 70 * - SUM ( + 47 ) * - 45 AS col0
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8958
SELECT ALL - + ( 74 ) / - 71 * - COUNT( * ) * - CAST( NULL AS SIGNED ) * - NULLIF ( - 0, + 46 ) + + 52 + + 62 - 92 * + 56 + - 30 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8958
SELECT ALL - + ( 74 ) / - 71 * - COUNT ( * ) * - CAST ( NULL AS INTEGER ) * - NULLIF ( - 0, + 46 ) + + 52 + + 62 - 92 * + 56 + - 30 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8959
SELECT DISTINCT 4 / + - 11 * CASE + 25 WHEN - 17 * + 17 * - COUNT( * ) THEN + 86 * 46 * + 47 + 40 * - 60 * + 85 WHEN 54 + ( - 20 ) THEN 14 + + 38 / 88 WHEN - COUNT( + 97 ) * 88 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8959
SELECT DISTINCT 4 / + - 11 * CASE + 25 WHEN - 17 * + 17 * - COUNT ( * ) THEN + 86 * 46 * + 47 + 40 * - 60 * + 85 WHEN 54 + ( - 20 ) THEN 14 + + 38 / 88 WHEN - COUNT ( + 97 ) * 88 THEN NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8960
SELECT DISTINCT + COALESCE ( + 25, + NULLIF ( + - 11, + 11 ) ) * CASE + 0 WHEN - CAST( - 94 AS SIGNED ) THEN - - SUM( DISTINCT + 62 ) WHEN + 11 * 25 + MIN( DISTINCT + 61 ) / - 81 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8960
SELECT DISTINCT + COALESCE ( + 25, + NULLIF ( + - 11, + 11 ) ) * CASE + 0 WHEN - CAST ( - 94 AS INTEGER ) THEN - - SUM ( DISTINCT + 62 ) WHEN + 11 * 25 + MIN ( DISTINCT + 61 ) / - 81 THEN NULL END
----
NULL

query I rowsort
SELECT - + 13 * + 67 + - 99
----
-970

query I rowsort
SELECT ALL - 55 * 12 - 2 - - 36 AS col0
----
-626

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8963
SELECT ( + 87 ) * CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8963
SELECT ( + 87 ) * CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT - 19 * - 5
----
95

query I rowsort
SELECT DISTINCT 93 * + 50 * - 36 + + 29 AS col0
----
-167371

onlyif mysql # aggregate syntax: 
query I rowsort label-8966
SELECT DISTINCT - - ( + + COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8966
SELECT DISTINCT - - ( + + COUNT ( * ) ) AS col1
----
1

query I rowsort
SELECT DISTINCT 20 * + 85 + - + 71 + + 69 + 22 * - 76 AS col2
----
26

query I rowsort
SELECT - 65 col0
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-8969
SELECT DISTINCT SUM( COALESCE ( + 73, - 0 ) )
----
73

skipif mysql # not compatible
query I rowsort label-8969
SELECT DISTINCT SUM ( COALESCE ( + 73, - 0 ) )
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8970
SELECT - 78 + + CASE 46 WHEN + 83 + - 92 + + + 53 THEN NULL WHEN - + SUM( DISTINCT + - 34 ) / CAST( NULL AS SIGNED ) + + - CAST( NULL AS SIGNED ) THEN + COUNT( * ) ELSE NULL END + + 24 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8970
SELECT - 78 + + CASE 46 WHEN + 83 + - 92 + + + 53 THEN NULL WHEN - + SUM ( DISTINCT + - 34 ) / CAST ( NULL AS INTEGER ) + + - CAST ( NULL AS INTEGER ) THEN + COUNT ( * ) ELSE NULL END + + 24 AS col1
----
NULL

query I rowsort
SELECT + 44 * + + 83 + 31 + 77 - 63 col0
----
3697

query I rowsort
SELECT 48 * + - 7
----
-336

onlyif mysql # aggregate syntax: 
query I rowsort label-8973
SELECT 84 + - + MIN( - + 52 ) AS col0
----
136

skipif mysql # not compatible
query I rowsort label-8973
SELECT 84 + - + MIN ( - + 52 ) AS col0
----
136

query I rowsort
SELECT 90 * - 58 AS col1
----
-5220

query I rowsort
SELECT DISTINCT + 93 * 44 AS col0
----
4092

onlyif mysql # aggregate syntax: 
query II rowsort label-8976
SELECT ALL 11 AS col2, SUM( DISTINCT + 39 ) * + 9 * + + 97
----
11
34047

skipif mysql # not compatible
query II rowsort label-8976
SELECT ALL 11 AS col2, SUM ( DISTINCT + 39 ) * + 9 * + + 97
----
11
34047

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8977
SELECT ALL + 75 + - CASE + - ( - ( - + 19 ) ) WHEN - 64 THEN NULL ELSE + COUNT( * ) + + 9 + + CAST( - - 95 AS SIGNED ) END
----
-30

skipif mysql # not compatible
query I rowsort label-8977
SELECT ALL + 75 + - CASE + - ( - ( - + 19 ) ) WHEN - 64 THEN NULL ELSE + COUNT ( * ) + + 9 + + CAST ( - - 95 AS INTEGER ) END
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-8978
SELECT 74 * COUNT( * ) * + - SUM( DISTINCT + - NULLIF ( + - 37, - 33 ) )
----
-2738

skipif mysql # not compatible
query I rowsort label-8978
SELECT 74 * COUNT ( * ) * + - SUM ( DISTINCT + - NULLIF ( + - 37, - 33 ) )
----
-2738

query I rowsort
SELECT ALL + 2 * + 89 * + 62 * - NULLIF ( + + 87, + 83 )
----
-960132

query II rowsort
SELECT DISTINCT 17, + 50 AS col1
----
17
50

query I rowsort
SELECT DISTINCT + 93 + + + 91
----
184

query I rowsort
SELECT ALL + 76 + + 38
----
114

onlyif mysql # DIV for integer division: 
query I rowsort label-8983
SELECT 70 DIV 46
----
1

skipif mysql # not compatible
query I rowsort label-8983
SELECT 70 / 46
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8984
SELECT NULLIF ( 59, - 40 * - CAST( NULL AS SIGNED ) + 4 ) + 28 + + + CAST( NULL AS SIGNED ) * - 67 + + COALESCE ( - - 70, 17, 16 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8984
SELECT NULLIF ( 59, - 40 * - CAST ( NULL AS INTEGER ) + 4 ) + 28 + + + CAST ( NULL AS INTEGER ) * - 67 + + COALESCE ( - - 70, 17, 16 )
----
NULL

query I rowsort
SELECT DISTINCT + 58 + + + 84
----
142

query II rowsort
SELECT 30, 65 AS col2
----
30
65

query I rowsort
SELECT 15 + + - 60
----
-45

query I rowsort
SELECT ( 11 ) * 37
----
407

onlyif mysql # aggregate syntax: 
query II rowsort label-8989
SELECT 39 col0, + 33 * 40 + CASE + 10 WHEN + 73 THEN COUNT( * ) WHEN + 72 THEN 95 END - - 27
----
39
NULL

skipif mysql # not compatible
query II rowsort label-8989
SELECT 39 col0, + 33 * 40 + CASE + 10 WHEN + 73 THEN COUNT ( * ) WHEN + 72 THEN 95 END - - 27
----
39
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8990
SELECT ALL CASE - MIN( DISTINCT 65 ) WHEN 17 * + 80 THEN NULL ELSE + 80 END + + 61 AS col2
----
141

skipif mysql # not compatible
query I rowsort label-8990
SELECT ALL CASE - MIN ( DISTINCT 65 ) WHEN 17 * + 80 THEN NULL ELSE + 80 END + + 61 AS col2
----
141

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8991
SELECT SUM( ALL + 76 ) DIV 60 + 42 * - - NULLIF ( - SUM( DISTINCT + + ( 35 ) ), + 96 )
----
-1469

skipif mysql # not compatible
query I rowsort label-8991
SELECT SUM ( ALL + 76 ) / 60 + 42 * - - NULLIF ( - SUM ( DISTINCT + + ( 35 ) ), + 96 )
----
-1469

query I rowsort
SELECT DISTINCT + 58 + + 75 AS col1
----
133

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8993
SELECT DISTINCT ( 19 ) + - - COUNT( * ) * + 43 DIV 20 * - 19
----
-19

skipif mysql # not compatible
query I rowsort label-8993
SELECT DISTINCT ( 19 ) + - - COUNT ( * ) * + 43 / 20 * - 19
----
-19

query I rowsort
SELECT NULLIF ( 74, 74 + - 65 ) - - 9 AS col1
----
83

query I rowsort
SELECT DISTINCT - + 75 AS col1
----
-75

query II rowsort
SELECT ALL - 61 AS col2, + 78 * + - 80 AS col0
----
-61
-6240

onlyif mysql # aggregate syntax: 
query I rowsort label-8997
SELECT DISTINCT - + SUM( + - 90 ) AS col1
----
90

skipif mysql # not compatible
query I rowsort label-8997
SELECT DISTINCT - + SUM ( + - 90 ) AS col1
----
90

query I rowsort
SELECT DISTINCT 97 - - 99 * 2 * 50
----
9997

onlyif mysql # aggregate syntax: 
query I rowsort label-8999
SELECT + + SUM( - 51 )
----
-51

skipif mysql # not compatible
query I rowsort label-8999
SELECT + + SUM ( - 51 )
----
-51

query I rowsort
SELECT ALL + 31 - - 58
----
89

onlyif mysql # aggregate syntax: 
query II rowsort label-9001
SELECT 67, - COUNT( * ) AS col1
----
67
-1

skipif mysql # not compatible
query II rowsort label-9001
SELECT 67, - COUNT ( * ) AS col1
----
67
-1

query I rowsort
SELECT - 99 - - 15
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9003
SELECT + 64, - 14 + - NULLIF ( + 93, CAST( + + COUNT( * ) AS SIGNED ) ) + - 96 AS col2
----
64
-203

skipif mysql # not compatible
query II rowsort label-9003
SELECT + 64, - 14 + - NULLIF ( + 93, CAST ( + + COUNT ( * ) AS INTEGER ) ) + - 96 AS col2
----
64
-203

query I rowsort
SELECT ALL - + ( + - 12 ) AS col0
----
12

query I rowsort
SELECT DISTINCT - ( + 6 ) AS col1
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9006
SELECT + 17 * + 25 - 2 * + 96 + - 68 + + + COUNT( * ) * - 33 DIV COUNT( * ) AS col1
----
132

skipif mysql # not compatible
query I rowsort label-9006
SELECT + 17 * + 25 - 2 * + 96 + - 68 + + + COUNT ( * ) * - 33 / COUNT ( * ) AS col1
----
132

onlyif mysql # aggregate syntax: 
query II rowsort label-9007
SELECT ALL - 68 AS col2, + COUNT( * ) AS col1
----
-68
1

skipif mysql # not compatible
query II rowsort label-9007
SELECT ALL - 68 AS col2, + COUNT ( * ) AS col1
----
-68
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9008
SELECT ALL - - NULLIF ( 23, + 59 * 24 / + + MIN( - NULLIF ( - 59, + 41 / + 89 ) ) + - + 69 + + + ( - - 51 ) + 21 + + 45 * 94 )
----
23

skipif mysql # not compatible
query I rowsort label-9008
SELECT ALL - - NULLIF ( 23, + 59 * 24 / + + MIN ( - NULLIF ( - 59, + 41 / + 89 ) ) + - + 69 + + + ( - - 51 ) + 21 + + 45 * 94 )
----
23

query I rowsort
SELECT ALL + 57 * - 90 + + 33
----
-5097

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9010
SELECT 58 * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9010
SELECT 58 * + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9011
SELECT ALL 22 / - COUNT( * ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9011
SELECT ALL 22 / - COUNT ( * ) + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9012
SELECT ALL + 29 * + CASE CAST( NULL AS SIGNED ) WHEN - 1 * + - 23 + + + AVG ( + - 79 ) / + 78 * COUNT( * ) THEN 20 WHEN + + 31 THEN NULL END / - - SUM( - 84 ) + + 46 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9012
SELECT ALL + 29 * + CASE CAST ( NULL AS INTEGER ) WHEN - 1 * + - 23 + + + AVG ( + - 79 ) / + 78 * COUNT ( * ) THEN 20 WHEN + + 31 THEN NULL END / - - SUM ( - 84 ) + + 46 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9013
SELECT ALL - 78, COUNT( - 42 ) col2
----
-78
1

skipif mysql # not compatible
query II rowsort label-9013
SELECT ALL - 78, COUNT ( - 42 ) col2
----
-78
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9014
SELECT COUNT( * ) + + 60 col0
----
61

skipif mysql # not compatible
query I rowsort label-9014
SELECT COUNT ( * ) + + 60 col0
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9015
SELECT CAST( + COUNT( * ) AS SIGNED ) + - 75 + 90 - - 48 col1
----
64

skipif mysql # not compatible
query I rowsort label-9015
SELECT CAST ( + COUNT ( * ) AS INTEGER ) + - 75 + 90 - - 48 col1
----
64

onlyif mysql # aggregate syntax: 
query II rowsort label-9016
SELECT ALL + 7 + + 57 col1, COUNT( * )
----
64
1

skipif mysql # not compatible
query II rowsort label-9016
SELECT ALL + 7 + + 57 col1, COUNT ( * )
----
64
1

query I rowsort
SELECT DISTINCT 16 * + 60
----
960

query I rowsort
SELECT 74 + + 92 + + 89
----
255

query I rowsort
SELECT DISTINCT 92 * - 64 AS col1
----
-5888

onlyif mysql # aggregate syntax: 
query I rowsort label-9020
SELECT 64 + - + COUNT( * ) AS col0
----
63

skipif mysql # not compatible
query I rowsort label-9020
SELECT 64 + - + COUNT ( * ) AS col0
----
63

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9021
SELECT 99 + + 24 / COUNT( * ) + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9021
SELECT 99 + + 24 / COUNT ( * ) + + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT 9 + + + 61 AS col1
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-9023
SELECT 98 + MIN( DISTINCT + - 24 )
----
74

skipif mysql # not compatible
query I rowsort label-9023
SELECT 98 + MIN ( DISTINCT + - 24 )
----
74

onlyif mysql # DIV for integer division: 
query II rowsort label-9024
SELECT ALL + 72 DIV 19 AS col2, 29 + - - 57 + 85 * - 62
----
3
-5184

skipif mysql # not compatible
query II rowsort label-9024
SELECT ALL + 72 / 19 AS col2, 29 + - - 57 + 85 * - 62
----
3
-5184

onlyif mysql # aggregate syntax: 
query I rowsort label-9025
SELECT 8 + MAX( - 99 ) AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-9025
SELECT 8 + MAX ( - 99 ) AS col1
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-9026
SELECT ALL COALESCE ( + 81, - + 23 + + + 17 - COUNT( * ) * + COALESCE ( - 37, - 30 ) * 82 * + - 64, - COUNT( * ) )
----
81

skipif mysql # not compatible
query I rowsort label-9026
SELECT ALL COALESCE ( + 81, - + 23 + + + 17 - COUNT ( * ) * + COALESCE ( - 37, - 30 ) * 82 * + - 64, - COUNT ( * ) )
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9027
SELECT NULLIF ( + CASE 93 WHEN + ( 12 ) * 35 * - 31 THEN + 22 / 50 * 97 * + - 68 END, - - 56 ) + + + NULLIF ( + COUNT( * ), + 46 ) / 69
----
NULL

skipif mysql # not compatible
query I rowsort label-9027
SELECT NULLIF ( + CASE 93 WHEN + ( 12 ) * 35 * - 31 THEN + 22 / 50 * 97 * + - 68 END, - - 56 ) + + + NULLIF ( + COUNT ( * ), + 46 ) / 69
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9028
SELECT DISTINCT - - CASE - CASE 25 WHEN - + NULLIF ( - ( - + 59 ), + - COALESCE ( + - CAST( NULL AS SIGNED ), - - 2 + - SUM( + 96 ) ) * - 52 * + + 32 - + 23 ) THEN - 41 WHEN 95 THEN NULL ELSE - 97 END WHEN 76 THEN 55 WHEN + 46 THEN 93 + ( - 22 + + 69 * + NULLIF ( + 39, 15 + COUNT( * ) ) ) ELSE 18 END * - 33 - 3
----
-597

skipif mysql # not compatible
query I rowsort label-9028
SELECT DISTINCT - - CASE - CASE 25 WHEN - + NULLIF ( - ( - + 59 ), + - COALESCE ( + - CAST ( NULL AS INTEGER ), - - 2 + - SUM ( + 96 ) ) * - 52 * + + 32 - + 23 ) THEN - 41 WHEN 95 THEN NULL ELSE - 97 END WHEN 76 THEN 55 WHEN + 46 THEN 93 + ( - 22 + + 69 * + NULLIF ( + 39, 15 + COUNT ( * ) ) ) ELSE 18 END * - 33 - 3
----
-597

query I rowsort
SELECT ALL - + 91 AS col0
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9030
SELECT - + 96 * CAST( NULL AS SIGNED ) * - ( + 38 ) + + COUNT( * ) + + 99 * - + 80
----
NULL

skipif mysql # not compatible
query I rowsort label-9030
SELECT - + 96 * CAST ( NULL AS INTEGER ) * - ( + 38 ) + + COUNT ( * ) + + 99 * - + 80
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9031
SELECT + COUNT( * ) * - - COUNT( * ) - - + 83 * + 94 col1
----
7803

skipif mysql # not compatible
query I rowsort label-9031
SELECT + COUNT ( * ) * - - COUNT ( * ) - - + 83 * + 94 col1
----
7803

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9032
SELECT ALL - - COUNT( DISTINCT 13 ) DIV + 73 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9032
SELECT ALL - - COUNT ( DISTINCT 13 ) / + 73 AS col2
----
0

query I rowsort
SELECT ALL 54 * + 68
----
3672

onlyif mysql # DIV for integer division: 
query I rowsort label-9034
SELECT - - 61 * - + 0 DIV + + NULLIF ( - - 37, ( + + 88 ) ) + + 37
----
37

skipif mysql # not compatible
query I rowsort label-9034
SELECT - - 61 * - + 0 / + + NULLIF ( - - 37, ( + + 88 ) ) + + 37
----
37

query I rowsort
SELECT DISTINCT + - 98 col2
----
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9036
SELECT + - NULLIF ( + + 57, - CAST( + 16 AS SIGNED ) ) AS col2
----
-57

skipif mysql # not compatible
query I rowsort label-9036
SELECT + - NULLIF ( + + 57, - CAST ( + 16 AS INTEGER ) ) AS col2
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-9037
SELECT DISTINCT + 16 * + CASE - 61 WHEN COUNT( * ) + AVG ( ALL + + 46 ) THEN NULL WHEN + COUNT( * ) * - 37 + 90 - - - 52 THEN NULL WHEN COUNT( * ) * - 76 + + + SUM( 92 ) + 86 THEN NULL ELSE - 28 * 12 END - - 17 * 31 AS col2
----
-4849

skipif mysql # not compatible
query I rowsort label-9037
SELECT DISTINCT + 16 * + CASE - 61 WHEN COUNT ( * ) + AVG ( ALL + + 46 ) THEN NULL WHEN + COUNT ( * ) * - 37 + 90 - - - 52 THEN NULL WHEN COUNT ( * ) * - 76 + + + SUM ( 92 ) + 86 THEN NULL ELSE - 28 * 12 END - - 17 * 31 AS col2
----
-4849

onlyif mysql # aggregate syntax: 
query I rowsort label-9038
SELECT + - COUNT( * ) * - 13 AS col2
----
13

skipif mysql # not compatible
query I rowsort label-9038
SELECT + - COUNT ( * ) * - 13 AS col2
----
13

query I rowsort
SELECT ALL + 0 * + - 13 + + 38 AS col2
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-9040
SELECT + + 89 + 29 * + + COUNT( * ) col0
----
118

skipif mysql # not compatible
query I rowsort label-9040
SELECT + + 89 + 29 * + + COUNT ( * ) col0
----
118

query II rowsort
SELECT ( 43 ) col1, 6 + + 14 AS col0
----
43
20

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9042
SELECT ALL - 10 * 24 + + CAST( + 43 AS SIGNED ) + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9042
SELECT ALL - 10 * 24 + + CAST ( + 43 AS INTEGER ) + CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9043
SELECT ALL COUNT( * ) * - 51 + + + 38 AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-9043
SELECT ALL COUNT ( * ) * - 51 + + + 38 AS col2
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-9044
SELECT + ( + NULLIF ( + - 71, - MIN( 7 ) ) ) * + + COUNT( * )
----
-71

skipif mysql # not compatible
query I rowsort label-9044
SELECT + ( + NULLIF ( + - 71, - MIN ( 7 ) ) ) * + + COUNT ( * )
----
-71

query I rowsort
SELECT ALL + NULLIF ( + 54, + 64 + - 17 + - 40 * + - 95 + - 14 + - 74 - + 8 * - 28 ) AS col0
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9046
SELECT DISTINCT 75 + NULLIF ( 5, - 31 ) DIV - - MIN( - - 28 ) AS col2
----
75

skipif mysql # not compatible
query I rowsort label-9046
SELECT DISTINCT 75 + NULLIF ( 5, - 31 ) / - - MIN ( - - 28 ) AS col2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9047
SELECT MIN( ALL 82 )
----
82

skipif mysql # not compatible
query I rowsort label-9047
SELECT MIN ( ALL 82 )
----
82

query I rowsort
SELECT DISTINCT 51 + - - 0
----
51

query I rowsort
SELECT DISTINCT 68 + 66
----
134

query I rowsort
SELECT - ( + + 88 )
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-9051
SELECT - SUM( + 47 )
----
-47

skipif mysql # not compatible
query I rowsort label-9051
SELECT - SUM ( + 47 )
----
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-9052
SELECT + 68 DIV 98
----
0

skipif mysql # not compatible
query I rowsort label-9052
SELECT + 68 / 98
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9053
SELECT + 74 * + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9053
SELECT + 74 * + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT + 85 * 66
----
5610

query I rowsort
SELECT DISTINCT 97 * 22 * - - 16 * 96 AS col0
----
3277824

onlyif mysql # aggregate syntax: 
query I rowsort label-9056
SELECT ALL - 13 + COALESCE ( + + COUNT( * ), 54, 11 ) + + 37
----
25

skipif mysql # not compatible
query I rowsort label-9056
SELECT ALL - 13 + COALESCE ( + + COUNT ( * ), 54, 11 ) + + 37
----
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9057
SELECT + COUNT( * ) DIV - - 33 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9057
SELECT + COUNT ( * ) / - - 33 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9058
SELECT ALL COUNT( * ) AS col1, + NULLIF ( 52, COUNT( * ) )
----
1
52

skipif mysql # not compatible
query II rowsort label-9058
SELECT ALL COUNT ( * ) AS col1, + NULLIF ( 52, COUNT ( * ) )
----
1
52

query I rowsort
SELECT + 55 + - 3 * - 67 AS col1
----
256

query I rowsort
SELECT DISTINCT 61 * NULLIF ( - - 22, + - 17 ) AS col0
----
1342

query I rowsort
SELECT DISTINCT CASE - 68 WHEN - - 78 THEN - + 52 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9062
SELECT DISTINCT MIN( DISTINCT 5 )
----
5

skipif mysql # not compatible
query I rowsort label-9062
SELECT DISTINCT MIN ( DISTINCT 5 )
----
5

query I rowsort
SELECT - ( 53 ) col1
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-9064
SELECT + + 42 + + - COUNT( * ) AS col2
----
41

skipif mysql # not compatible
query I rowsort label-9064
SELECT + + 42 + + - COUNT ( * ) AS col2
----
41

query I rowsort
SELECT - 28 + - 15 AS col2
----
-43

query I rowsort
SELECT ALL - + 15 * - COALESCE ( - - 96, - - 50 ) AS col2
----
1440

query I rowsort
SELECT - 72 * - 98 AS col1
----
7056

onlyif mysql # aggregate syntax: 
query II rowsort label-9068
SELECT ALL - MIN( + ( - + 22 ) ), - MIN( - 49 ) AS col1
----
22
49

skipif mysql # not compatible
query II rowsort label-9068
SELECT ALL - MIN ( + ( - + 22 ) ), - MIN ( - 49 ) AS col1
----
22
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9069
SELECT DISTINCT 59 * 98 + CAST( - ( ( ( - + 10 ) ) ) AS SIGNED ) AS col0
----
5792

skipif mysql # not compatible
query I rowsort label-9069
SELECT DISTINCT 59 * 98 + CAST ( - ( ( ( - + 10 ) ) ) AS INTEGER ) AS col0
----
5792

query I rowsort
SELECT ALL + + 64 AS col2
----
64

query I rowsort
SELECT ALL + - 47 col2
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-9072
SELECT DISTINCT - 62 * + + 90 * - 21 * - COUNT( * ) * + COUNT( * ) AS col0
----
-117180

skipif mysql # not compatible
query I rowsort label-9072
SELECT DISTINCT - 62 * + + 90 * - 21 * - COUNT ( * ) * + COUNT ( * ) AS col0
----
-117180

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9073
SELECT + 72 col0, + 36 DIV + ( + CAST( + COUNT( * ) AS SIGNED ) ) + - COUNT( * )
----
72
35

skipif mysql # not compatible
query II rowsort label-9073
SELECT + 72 col0, + 36 / + ( + CAST ( + COUNT ( * ) AS INTEGER ) ) + - COUNT ( * )
----
72
35

query I rowsort
SELECT - 74 * 13
----
-962

onlyif mysql # aggregate syntax: 
query I rowsort label-9075
SELECT - 44 * COUNT( * )
----
-44

skipif mysql # not compatible
query I rowsort label-9075
SELECT - 44 * COUNT ( * )
----
-44

query I rowsort
SELECT ALL - 56 * 51 + + 62 + - NULLIF ( - 88, 54 ) AS col2
----
-2706

query I rowsort
SELECT ALL - + 60 * 6 + - 68
----
-428

onlyif mysql # aggregate syntax: 
query I rowsort label-9078
SELECT - + 57 * 89 + + ( + COUNT( * ) ) + 70
----
-5002

skipif mysql # not compatible
query I rowsort label-9078
SELECT - + 57 * 89 + + ( + COUNT ( * ) ) + 70
----
-5002

onlyif mysql # aggregate syntax: 
query I rowsort label-9079
SELECT ALL + COUNT( * ) * + CASE 37 WHEN 61 / + - ( + 61 ) + - + 50 + - COUNT( * ) * + + 8 + MIN( DISTINCT + ( + 56 ) ) + - 1 THEN 10 / 41 + ( COUNT( * ) ) WHEN + 26 * 51 THEN NULL END + 14
----
NULL

skipif mysql # not compatible
query I rowsort label-9079
SELECT ALL + COUNT ( * ) * + CASE 37 WHEN 61 / + - ( + 61 ) + - + 50 + - COUNT ( * ) * + + 8 + MIN ( DISTINCT + ( + 56 ) ) + - 1 THEN 10 / 41 + ( COUNT ( * ) ) WHEN + 26 * 51 THEN NULL END + 14
----
NULL

query I rowsort
SELECT ALL 82 * 77 + - - 48
----
6362

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9081
SELECT ALL - 79 * CAST( + 92 AS SIGNED ) + + - 42 + + 81 AS col2
----
-7229

skipif mysql # not compatible
query I rowsort label-9081
SELECT ALL - 79 * CAST ( + 92 AS INTEGER ) + + - 42 + + 81 AS col2
----
-7229

query I rowsort
SELECT DISTINCT + NULLIF ( - - 88, - + 68 )
----
88

query I rowsort
SELECT + 98 - - 14 AS col1
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-9084
SELECT ALL - 71 * COUNT( * )
----
-71

skipif mysql # not compatible
query I rowsort label-9084
SELECT ALL - 71 * COUNT ( * )
----
-71

query I rowsort
SELECT ALL + ( - 4 ) col0
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9086
SELECT + COALESCE ( - CAST( - 90 AS SIGNED ), 98, - + 76 DIV + MAX( + 15 ) DIV + 15 + 10 ) * + 47 * - 87 + + 38 + + 51 AS col2
----
-367921

skipif mysql # not compatible
query I rowsort label-9086
SELECT + COALESCE ( - CAST ( - 90 AS INTEGER ), 98, - + 76 / + MAX ( + 15 ) / + 15 + 10 ) * + 47 * - 87 + + 38 + + 51 AS col2
----
-367921

query I rowsort
SELECT + ( + ( - - 81 ) ) AS col1
----
81

query I rowsort
SELECT - 44 + 48
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9089
SELECT - CAST( NULL AS SIGNED ) AS col0, 0 AS col0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-9089
SELECT - CAST ( NULL AS INTEGER ) AS col0, 0 AS col0
----
NULL
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9090
SELECT ALL + 52 * + 61 - 6 + + COUNT( + + 92 ) DIV - - 62 + - 66
----
3100

skipif mysql # not compatible
query I rowsort label-9090
SELECT ALL + 52 * + 61 - 6 + + COUNT ( + + 92 ) / - - 62 + - 66
----
3100

query I rowsort
SELECT - 62 + - - 22
----
-40

query I rowsort
SELECT ALL - 72 * + ( - + 13 )
----
936

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-9093
SELECT ALL CAST( - + COALESCE ( + + 97, COUNT( * ) / - ( + 17 ) ) AS SIGNED ) AS col2, + CAST( NULL AS DECIMAL ) - 30
----
-97
NULL

skipif mysql # not compatible
query II rowsort label-9093
SELECT ALL CAST ( - + COALESCE ( + + 97, COUNT ( * ) / - ( + 17 ) ) AS INTEGER ) AS col2, + CAST ( NULL AS REAL ) - 30
----
-97
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9094
SELECT + CAST( NULL AS SIGNED ) + + 39 + + 64 + 71, + 10 - - CAST( NULL AS SIGNED ) * + - 10 * - + COUNT( * )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9094
SELECT + CAST ( NULL AS INTEGER ) + + 39 + + 64 + 71, + 10 - - CAST ( NULL AS INTEGER ) * + - 10 * - + COUNT ( * )
----
NULL
NULL

query II rowsort
SELECT ALL 26 AS col1, - 89 AS col2
----
26
-89

query I rowsort
SELECT ALL 81 * - 72 * 17 - ( + - 25 )
----
-99119

query I rowsort
SELECT + 32 * - - 54 * ( + ( + 5 ) ) AS col2
----
8640

query I rowsort
SELECT + 90 + 94 AS col2
----
184

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9099
SELECT - CAST( + ( + 16 ) AS SIGNED ) AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-9099
SELECT - CAST ( + ( + 16 ) AS INTEGER ) AS col0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-9100
SELECT ALL 90 / CASE - 41 WHEN - + 56 * - COUNT( * ) + 15 * - - 36 THEN 79 ELSE - + SUM( DISTINCT 61 ) END * + CASE + 39 WHEN + - 15 + + 8 THEN + 20 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9100
SELECT ALL 90 / CASE - 41 WHEN - + 56 * - COUNT ( * ) + 15 * - - 36 THEN 79 ELSE - + SUM ( DISTINCT 61 ) END * + CASE + 39 WHEN + - 15 + + 8 THEN + 20 END AS col1
----
NULL

query II rowsort
SELECT 4 * + 39 AS col0, + 87
----
156
87

onlyif mysql # aggregate syntax: 
query I rowsort label-9102
SELECT DISTINCT COUNT( * ) * 89 * + 33 AS col2
----
2937

skipif mysql # not compatible
query I rowsort label-9102
SELECT DISTINCT COUNT ( * ) * 89 * + 33 AS col2
----
2937

onlyif mysql # aggregate syntax: 
query II rowsort label-9103
SELECT - - COUNT( * ), 65 col1
----
1
65

skipif mysql # not compatible
query II rowsort label-9103
SELECT - - COUNT ( * ), 65 col1
----
1
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9104
SELECT ( + COALESCE ( 62, + COUNT( * ) * + - NULLIF ( 71, + - 88 ) - + COALESCE ( + - ( + COUNT( * ) ), + 38 + + COUNT( * ), - 61 DIV + 15 - - 22 ) + + 4 ) )
----
62

skipif mysql # not compatible
query I rowsort label-9104
SELECT ( + COALESCE ( 62, + COUNT ( * ) * + - NULLIF ( 71, + - 88 ) - + COALESCE ( + - ( + COUNT ( * ) ), + 38 + + COUNT ( * ), - 61 / + 15 - - 22 ) + + 4 ) )
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9105
SELECT ALL 86 * + - COUNT( * ) + - COUNT( * ) + COUNT( * ) * 48 AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-9105
SELECT ALL 86 * + - COUNT ( * ) + - COUNT ( * ) + COUNT ( * ) * 48 AS col1
----
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9106
SELECT 95 DIV + COUNT( * )
----
95

skipif mysql # not compatible
query I rowsort label-9106
SELECT 95 / + COUNT ( * )
----
95

query I rowsort
SELECT ALL - 74 * + 16
----
-1184

onlyif mysql # aggregate syntax: 
query I rowsort label-9108
SELECT DISTINCT + MAX( ALL 78 ) AS col2
----
78

skipif mysql # not compatible
query I rowsort label-9108
SELECT DISTINCT + MAX ( ALL 78 ) AS col2
----
78

query II rowsort
SELECT ALL + - 50 + 23 * - 27 * 58 AS col0, - 30 AS col0
----
-36068
-30

onlyif mysql # DIV for integer division: 
query II rowsort label-9110
SELECT ALL 16, 7 DIV + - 38 AS col2
----
16
0

skipif mysql # not compatible
query II rowsort label-9110
SELECT ALL 16, 7 / + - 38 AS col2
----
16
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9111
SELECT 22 / + - 95 + + + 38 * - + 33 + CAST( NULL AS SIGNED ) - + 32 - + 26
----
NULL

skipif mysql # not compatible
query I rowsort label-9111
SELECT 22 / + - 95 + + + 38 * - + 33 + CAST ( NULL AS INTEGER ) - + 32 - + 26
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9112
SELECT + MIN( + 42 )
----
42

skipif mysql # not compatible
query I rowsort label-9112
SELECT + MIN ( + 42 )
----
42

query I rowsort
SELECT + - 43 col0
----
-43

query I rowsort
SELECT ALL - - 71 + - + ( 97 )
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9115
SELECT + CASE - CAST( NULL AS DECIMAL ) WHEN + MAX( - - CAST( NULL AS SIGNED ) ) THEN 69 WHEN + COALESCE ( + - ( - 54 ), 56, + 39 ) THEN NULL WHEN 9 THEN NULL END * - + CASE - + 59 WHEN + - 30 THEN NULL WHEN - 94 THEN + + NULLIF ( + 63, - 75 ) WHEN 8 THEN 39 ELSE NULL END + 71
----
NULL

skipif mysql # not compatible
query I rowsort label-9115
SELECT + CASE - CAST ( NULL AS REAL ) WHEN + MAX ( - - CAST ( NULL AS INTEGER ) ) THEN 69 WHEN + COALESCE ( + - ( - 54 ), 56, + 39 ) THEN NULL WHEN 9 THEN NULL END * - + CASE - + 59 WHEN + - 30 THEN NULL WHEN - 94 THEN + + NULLIF ( + 63, - 75 ) WHEN 8 THEN 39 ELSE NULL END + 71
----
NULL

query I rowsort
SELECT ALL - ( + 40 ) AS col2
----
-40

query I rowsort
SELECT DISTINCT 60 + - 81 AS col1
----
-21

query I rowsort
SELECT ALL - - 95 * + - 3 AS col1
----
-285

onlyif mysql # aggregate syntax: 
query I rowsort label-9119
SELECT ( - + 59 ) + - COUNT( * ) col2
----
-60

skipif mysql # not compatible
query I rowsort label-9119
SELECT ( - + 59 ) + - COUNT ( * ) col2
----
-60

query II rowsort
SELECT ALL 78 + + 68 + + 85 + + - 92, 57 + + 77 AS col0
----
139
134

query I rowsort
SELECT ALL - ( + - 30 ) AS col0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-9122
SELECT + 99 * + 89 + + - COUNT( * )
----
8810

skipif mysql # not compatible
query I rowsort label-9122
SELECT + 99 * + 89 + + - COUNT ( * )
----
8810

query I rowsort
SELECT 90 + + 12 AS col2
----
102

query I rowsort
SELECT DISTINCT - NULLIF ( 81, + 83 / - - 17 ) col2
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9125
SELECT ALL - 48 * COUNT( * )
----
-48

skipif mysql # not compatible
query I rowsort label-9125
SELECT ALL - 48 * COUNT ( * )
----
-48

query I rowsort
SELECT 9 + - 83 col1
----
-74

query I rowsort
SELECT 18 + + 64 + + - 70 col0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-9128
SELECT ALL + COUNT( * ) - - 55 + - SUM( ALL - 87 ) AS col1
----
143

skipif mysql # not compatible
query I rowsort label-9128
SELECT ALL + COUNT ( * ) - - 55 + - SUM ( ALL - 87 ) AS col1
----
143

onlyif mysql # DIV for integer division: 
query I rowsort label-9129
SELECT 89 DIV + + 83
----
1

skipif mysql # not compatible
query I rowsort label-9129
SELECT 89 / + + 83
----
1

query I rowsort
SELECT ALL + 86 * - - 28 AS col2
----
2408

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9131
SELECT ALL + 13 DIV 58, - COALESCE ( ( - - 96 ), + + COUNT( * ) ) AS col0
----
0
-96

skipif mysql # not compatible
query II rowsort label-9131
SELECT ALL + 13 / 58, - COALESCE ( ( - - 96 ), + + COUNT ( * ) ) AS col0
----
0
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9132
SELECT 15 * - CAST( + 16 AS SIGNED ) * + 65 + + 25
----
-15575

skipif mysql # not compatible
query I rowsort label-9132
SELECT 15 * - CAST ( + 16 AS INTEGER ) * + 65 + + 25
----
-15575

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9133
SELECT 24 * - 83 col2, COUNT( CAST( NULL AS SIGNED ) ) AS col0
----
-1992
0

skipif mysql # not compatible
query II rowsort label-9133
SELECT 24 * - 83 col2, COUNT ( CAST ( NULL AS INTEGER ) ) AS col0
----
-1992
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9134
SELECT DISTINCT - COUNT( * ) * 69 AS col0
----
-69

skipif mysql # not compatible
query I rowsort label-9134
SELECT DISTINCT - COUNT ( * ) * 69 AS col0
----
-69

query I rowsort
SELECT 49 * - 35 * - 63
----
108045

query I rowsort
SELECT DISTINCT - 45 * + + 95 AS col1
----
-4275

onlyif mysql # aggregate syntax: 
query I rowsort label-9137
SELECT - NULLIF ( COUNT( * ), + + ( - 48 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-9137
SELECT - NULLIF ( COUNT ( * ), + + ( - 48 ) )
----
-1

query I rowsort
SELECT 40 * - + 97
----
-3880

query I rowsort
SELECT DISTINCT - 31 + 73 AS col2
----
42

onlyif mysql # aggregate syntax: 
query II rowsort label-9140
SELECT ALL SUM( DISTINCT - 26 ) col2, - 16
----
-26
-16

skipif mysql # not compatible
query II rowsort label-9140
SELECT ALL SUM ( DISTINCT - 26 ) col2, - 16
----
-26
-16

query I rowsort
SELECT NULLIF ( - + 39, 75 * 11 + + 84 ) * + CASE 0 WHEN - - 96 THEN + 20 END col0
----
NULL

query I rowsort
SELECT DISTINCT 78 + + + 83 AS col2
----
161

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9143
SELECT - + CAST( + - ( 95 ) AS SIGNED ) AS col0
----
95

skipif mysql # not compatible
query I rowsort label-9143
SELECT - + CAST ( + - ( 95 ) AS INTEGER ) AS col0
----
95

query I rowsort
SELECT ALL - 38 + 19 AS col2
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-9145
SELECT DISTINCT 5 * - COUNT( * ) + 49
----
44

skipif mysql # not compatible
query I rowsort label-9145
SELECT DISTINCT 5 * - COUNT ( * ) + 49
----
44

query I rowsort
SELECT 89 * - NULLIF ( 20, - 58 )
----
-1780

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9147
SELECT DISTINCT 27 * 45 + - - 58 + - COALESCE ( - ( - - COALESCE ( - 8, + 6 ) ), + 98, CAST( NULL AS SIGNED ) ) - + 38 * 81 + CAST( NULL AS SIGNED ) + + 61 * - 38 * - 95 + 86 + - NULLIF ( + 0, + 27 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9147
SELECT DISTINCT 27 * 45 + - - 58 + - COALESCE ( - ( - - COALESCE ( - 8, + 6 ) ), + 98, CAST ( NULL AS INTEGER ) ) - + 38 * 81 + CAST ( NULL AS INTEGER ) + + 61 * - 38 * - 95 + 86 + - NULLIF ( + 0, + 27 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9148
SELECT DISTINCT 31 * + 2 + - CASE - 15 WHEN 90 THEN NULL WHEN 79 / + COUNT( DISTINCT + - 77 ) THEN + 66 ELSE NULL END + - - ( + MAX( DISTINCT - CASE + 15 WHEN + - 21 + 6 THEN + 40 + + 18 * - 50 WHEN 27 THEN NULL ELSE 74 END ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9148
SELECT DISTINCT 31 * + 2 + - CASE - 15 WHEN 90 THEN NULL WHEN 79 / + COUNT ( DISTINCT + - 77 ) THEN + 66 ELSE NULL END + - - ( + MAX ( DISTINCT - CASE + 15 WHEN + - 21 + 6 THEN + 40 + + 18 * - 50 WHEN 27 THEN NULL ELSE 74 END ) )
----
NULL

query I rowsort
SELECT DISTINCT - COALESCE ( + 21, + - 71 )
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9150
SELECT ALL - 54 * - - 84 + 8 + 36 + COUNT( * ) * + 0 * MIN( + 17 ) * + 23 + + 28 + + 54 - + 31 * + - MIN( ALL + CASE - - 75 WHEN - CAST( NULL AS SIGNED ) THEN - 29 + - ( 27 ) END ) - + 51
----
NULL

skipif mysql # not compatible
query I rowsort label-9150
SELECT ALL - 54 * - - 84 + 8 + 36 + COUNT ( * ) * + 0 * MIN ( + 17 ) * + 23 + + 28 + + 54 - + 31 * + - MIN ( ALL + CASE - - 75 WHEN - CAST ( NULL AS INTEGER ) THEN - 29 + - ( 27 ) END ) - + 51
----
NULL

query I rowsort
SELECT + + 83 col0
----
83

query II rowsort
SELECT + 49, + 72 AS col0
----
49
72

query I rowsort
SELECT 89 - + 19
----
70

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-9154
SELECT CASE - 34 WHEN - + CAST( NULL AS DECIMAL ) * + - 9 DIV + 17 + - 13 THEN - + 42 + + 70 ELSE - - 69 DIV + SUM( DISTINCT + 36 ) END * 5 AS col2
----
5

skipif mysql # not compatible
query I rowsort label-9154
SELECT CASE - 34 WHEN - + CAST ( NULL AS REAL ) * + - 9 / + 17 + - 13 THEN - + 42 + + 70 ELSE - - 69 / + SUM ( DISTINCT + 36 ) END * 5 AS col2
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9155
SELECT ALL + 17 * - CASE WHEN NOT 93 BETWEEN - ( - 68 ) + + ( + + SUM( DISTINCT - 92 ) ) * + - COUNT( * ) AND + + ( - - 79 ) * 71 + - ( - - COUNT( * ) ) THEN NULL ELSE - + 45 * - 79 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9155
SELECT ALL + 17 * - CASE WHEN NOT 93 BETWEEN - ( - 68 ) + + ( + + SUM ( DISTINCT - 92 ) ) * + - COUNT ( * ) AND + + ( - - 79 ) * 71 + - ( - - COUNT ( * ) ) THEN NULL ELSE - + 45 * - 79 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9156
SELECT + COUNT( * ) * - 79 - - 22
----
-57

skipif mysql # not compatible
query I rowsort label-9156
SELECT + COUNT ( * ) * - 79 - - 22
----
-57

query I rowsort
SELECT ALL 44 - - 79 AS col1
----
123

query I rowsort
SELECT ALL - 45 - + 6 * - - 80 AS col2
----
-525

query II rowsort
SELECT DISTINCT - 50, - 43 AS col0
----
-50
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9160
SELECT 24 DIV CASE - ( 42 ) WHEN - 50 * - 4 - + 35 - - 68 + + + 58 + - COUNT( * ) DIV 96 THEN NULL WHEN + + 90 THEN COUNT( * ) + - - 56 ELSE - 7 END col2
----
-3

skipif mysql # not compatible
query I rowsort label-9160
SELECT 24 / CASE - ( 42 ) WHEN - 50 * - 4 - + 35 - - 68 + + + 58 + - COUNT ( * ) / 96 THEN NULL WHEN + + 90 THEN COUNT ( * ) + - - 56 ELSE - 7 END col2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9161
SELECT - 85 - + CASE + 36 WHEN - 31 THEN - + 74 ELSE NULL END + + + AVG ( DISTINCT + 43 ) * + - 49 * + 20 * + 30 * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9161
SELECT - 85 - + CASE + 36 WHEN - 31 THEN - + 74 ELSE NULL END + + + AVG ( DISTINCT + 43 ) * + - 49 * + 20 * + 30 * COUNT ( * )
----
NULL

query I rowsort
SELECT + NULLIF ( + 5, + 28 )
----
5

query I rowsort
SELECT ALL + CASE WHEN ( NULL ) IS NOT NULL THEN NULL ELSE 88 END
----
88

query II rowsort
SELECT + 82, 95 AS col0
----
82
95

query I rowsort
SELECT - 49 + 80
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-9166
SELECT ALL COALESCE ( - 74, + COUNT( * ), SUM( DISTINCT + - 61 ) ) AS col1
----
-74

skipif mysql # not compatible
query I rowsort label-9166
SELECT ALL COALESCE ( - 74, + COUNT ( * ), SUM ( DISTINCT + - 61 ) ) AS col1
----
-74

query I rowsort
SELECT ALL + 55 + 60 + 79
----
194

onlyif mysql # aggregate syntax: 
query I rowsort label-9168
SELECT ALL SUM( + - 79 ) AS col1
----
-79

skipif mysql # not compatible
query I rowsort label-9168
SELECT ALL SUM ( + - 79 ) AS col1
----
-79

query I rowsort
SELECT - 52 + - 83
----
-135

query I rowsort
SELECT ALL + + 79 + + - 9 * + + 64 AS col2
----
-497

onlyif mysql # aggregate syntax: 
query I rowsort label-9171
SELECT ALL + COUNT( * ) + - 11 AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-9171
SELECT ALL + COUNT ( * ) + - 11 AS col0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-9172
SELECT - + COUNT( * ) + - + 10
----
-11

skipif mysql # not compatible
query I rowsort label-9172
SELECT - + COUNT ( * ) + - + 10
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-9173
SELECT + 97 * - 59 + COUNT( * ) + + - 37 * + - NULLIF ( 61, 98 / 1 - + COUNT( DISTINCT - 35 ) / - + 28 * CASE - - MIN( + - 3 ) WHEN - 49 THEN NULL ELSE - 1 END * - - 9 * - 91 ) * ( COUNT( * ) * MIN( 66 ) )
----
143240

skipif mysql # not compatible
query I rowsort label-9173
SELECT + 97 * - 59 + COUNT ( * ) + + - 37 * + - NULLIF ( 61, 98 / 1 - + COUNT ( DISTINCT - 35 ) / - + 28 * CASE - - MIN ( + - 3 ) WHEN - 49 THEN NULL ELSE - 1 END * - - 9 * - 91 ) * ( COUNT ( * ) * MIN ( 66 ) )
----
143240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9174
SELECT ALL - 42 + ( + 77 ), COUNT( * ) + - COALESCE ( + 29, - 92 * 49 + 2, + CAST( - NULLIF ( + - 10, - 14 ) AS SIGNED ) DIV + - 25 * - 79 ) * + COUNT( * ) + - 16 - + + 54 AS col2
----
35
-98

skipif mysql # not compatible
query II rowsort label-9174
SELECT ALL - 42 + ( + 77 ), COUNT ( * ) + - COALESCE ( + 29, - 92 * 49 + 2, + CAST ( - NULLIF ( + - 10, - 14 ) AS INTEGER ) / + - 25 * - 79 ) * + COUNT ( * ) + - 16 - + + 54 AS col2
----
35
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9175
SELECT DISTINCT + MIN( + 97 ) * + 85 / + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9175
SELECT DISTINCT + MIN ( + 97 ) * + 85 / + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9176
SELECT - 90, - CAST( NULL AS SIGNED ) col0
----
-90
NULL

skipif mysql # not compatible
query II rowsort label-9176
SELECT - 90, - CAST ( NULL AS INTEGER ) col0
----
-90
NULL

query II rowsort
SELECT ALL 12, + 9 AS col0
----
12
9

query I rowsort
SELECT - 63 + - + 25 * 29 + 73 col1
----
-715

query I rowsort
SELECT DISTINCT + 39 + + + 44 * + 47 AS col1
----
2107

query II rowsort
SELECT - 74, 65 AS col2
----
-74
65

onlyif mysql # DIV for integer division: 
query II rowsort label-9181
SELECT DISTINCT - 78 AS col2, 56 DIV + 21
----
-78
2

skipif mysql # not compatible
query II rowsort label-9181
SELECT DISTINCT - 78 AS col2, 56 / + 21
----
-78
2

onlyif mysql # aggregate syntax: 
query II rowsort label-9182
SELECT ALL COUNT( * ) col0, - 45 col0
----
1
-45

skipif mysql # not compatible
query II rowsort label-9182
SELECT ALL COUNT ( * ) col0, - 45 col0
----
1
-45

query I rowsort
SELECT - + 26 - ( - - 49 )
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-9184
SELECT - + COUNT( * ) + - 56
----
-57

skipif mysql # not compatible
query I rowsort label-9184
SELECT - + COUNT ( * ) + - 56
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9185
SELECT + NULLIF ( - CASE COUNT( * ) WHEN 24 THEN CAST( NULL AS SIGNED ) ELSE NULL END, + + 95 * - CAST( - 91 AS SIGNED ) + + 8 + + COUNT( ALL ( - - 89 ) ) ) + ( + + 8 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9185
SELECT + NULLIF ( - CASE COUNT ( * ) WHEN 24 THEN CAST ( NULL AS INTEGER ) ELSE NULL END, + + 95 * - CAST ( - 91 AS INTEGER ) + + 8 + + COUNT ( ALL ( - - 89 ) ) ) + ( + + 8 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9186
SELECT ALL 33 * - SUM( ALL + + 54 )
----
-1782

skipif mysql # not compatible
query I rowsort label-9186
SELECT ALL 33 * - SUM ( ALL + + 54 )
----
-1782

query I rowsort
SELECT ALL - 13 * + 24 AS col1
----
-312

onlyif mysql # aggregate syntax: 
query I rowsort label-9188
SELECT DISTINCT COUNT( * ) * - 36 * - COUNT( * )
----
36

skipif mysql # not compatible
query I rowsort label-9188
SELECT DISTINCT COUNT ( * ) * - 36 * - COUNT ( * )
----
36

query I rowsort
SELECT 13 * - 55 + - + 89 AS col1
----
-804

onlyif mysql # aggregate syntax: 
query I rowsort label-9190
SELECT + 67 * + + MAX( + 75 )
----
5025

skipif mysql # not compatible
query I rowsort label-9190
SELECT + 67 * + + MAX ( + 75 )
----
5025

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9191
SELECT - 61 + - ( + - 85 ) + NULLIF ( 38, - 37 ) * 86 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9191
SELECT - 61 + - ( + - 85 ) + NULLIF ( 38, - 37 ) * 86 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9192
SELECT + 31 * + - MIN( ALL - 87 )
----
2697

skipif mysql # not compatible
query I rowsort label-9192
SELECT + 31 * + - MIN ( ALL - 87 )
----
2697

onlyif mysql # aggregate syntax: 
query I rowsort label-9193
SELECT - COUNT( * ) + - 34 + - - 35 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9193
SELECT - COUNT ( * ) + - 34 + - - 35 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9194
SELECT DISTINCT CAST( - 58 AS SIGNED ) * + - 90 AS col1
----
5220

skipif mysql # not compatible
query I rowsort label-9194
SELECT DISTINCT CAST ( - 58 AS INTEGER ) * + - 90 AS col1
----
5220

query I rowsort
SELECT ALL - 28 * 99 + - 36
----
-2808

onlyif mysql # aggregate syntax: 
query I rowsort label-9196
SELECT + COUNT( * ) * - 52 * - ( + 76 )
----
3952

skipif mysql # not compatible
query I rowsort label-9196
SELECT + COUNT ( * ) * - 52 * - ( + 76 )
----
3952

onlyif mysql # aggregate syntax: 
query II rowsort label-9197
SELECT ALL + 51 * - COUNT( * ) AS col0, SUM( DISTINCT + + 82 ) AS col1
----
-51
82

skipif mysql # not compatible
query II rowsort label-9197
SELECT ALL + 51 * - COUNT ( * ) AS col0, SUM ( DISTINCT + + 82 ) AS col1
----
-51
82

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9198
SELECT - + ( - CASE + 63 WHEN - 46 * 50 THEN NULL WHEN - 35 * - 93 + + COUNT( * ) * - - 10 THEN + + CAST( + 48 AS DECIMAL ) + 61 + - + 5 + + - 47 * + COUNT( * ) * - + COUNT( * ) ELSE NULL END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9198
SELECT - + ( - CASE + 63 WHEN - 46 * 50 THEN NULL WHEN - 35 * - 93 + + COUNT ( * ) * - - 10 THEN + + CAST ( + 48 AS REAL ) + 61 + - + 5 + + - 47 * + COUNT ( * ) * - + COUNT ( * ) ELSE NULL END ) AS col1
----
NULL

query I rowsort
SELECT - - 51 * + 70
----
3570

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9200
SELECT ALL - 46 * - 16 + + - CAST( NULL AS SIGNED ) + + + 80
----
NULL

skipif mysql # not compatible
query I rowsort label-9200
SELECT ALL - 46 * - 16 + + - CAST ( NULL AS INTEGER ) + + + 80
----
NULL

query I rowsort
SELECT ALL 99 + + 4 AS col1
----
103

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9202
SELECT ALL - + ( - COUNT( * ) ) DIV - 1 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9202
SELECT ALL - + ( - COUNT ( * ) ) / - 1 AS col2
----
-1

query I rowsort
SELECT DISTINCT + + 51 - - ( 9 ) AS col0
----
60

query I rowsort
SELECT ALL - + 89 * 13 * 87
----
-100659

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9205
SELECT ALL - + 72 DIV SUM( ( 18 ) ) col0, + 79 AS col0
----
-4
79

skipif mysql # not compatible
query II rowsort label-9205
SELECT ALL - + 72 / SUM ( ( 18 ) ) col0, + 79 AS col0
----
-4
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9206
SELECT + - 55 + + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9206
SELECT + - 55 + + CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT - + 64 AS col1
----
-64

query I rowsort
SELECT - ( + 37 ) + - 47 - - 29
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9209
SELECT - 11 + + - CAST( + ( - 13 ) AS SIGNED ) + - 7 * - COUNT( * ) + - 68 DIV + 51 AS col0
----
8

skipif mysql # not compatible
query I rowsort label-9209
SELECT - 11 + + - CAST ( + ( - 13 ) AS INTEGER ) + - 7 * - COUNT ( * ) + - 68 / + 51 AS col0
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9210
SELECT - 54 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9210
SELECT - 54 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9211
SELECT ALL + - CAST( 50 AS SIGNED ) * ( + - 20 ) AS col0, - 63 DIV - 87 * + 38
----
1000
0

skipif mysql # not compatible
query II rowsort label-9211
SELECT ALL + - CAST ( 50 AS INTEGER ) * ( + - 20 ) AS col0, - 63 / - 87 * + 38
----
1000
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9212
SELECT + CASE - + 62 WHEN 88 * + + 85 THEN NULL WHEN 0 + - + 23 THEN NULL WHEN + 14 THEN - 98 + - CAST( + 14 AS SIGNED ) + + NULLIF ( - COUNT( + 63 ), - 75 + + + 49 * - ( + CAST( NULL AS SIGNED ) ) ) / COUNT( * ) * 53 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9212
SELECT + CASE - + 62 WHEN 88 * + + 85 THEN NULL WHEN 0 + - + 23 THEN NULL WHEN + 14 THEN - 98 + - CAST ( + 14 AS INTEGER ) + + NULLIF ( - COUNT ( + 63 ), - 75 + + + 49 * - ( + CAST ( NULL AS INTEGER ) ) ) / COUNT ( * ) * 53 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL + 26 * + - 36
----
-936

onlyif mysql # aggregate syntax: 
query II rowsort label-9214
SELECT DISTINCT + COUNT( * ) AS col2, + 20 AS col2
----
1
20

skipif mysql # not compatible
query II rowsort label-9214
SELECT DISTINCT + COUNT ( * ) AS col2, + 20 AS col2
----
1
20

onlyif mysql # DIV for integer division: 
query I rowsort label-9215
SELECT 27 DIV - - 34
----
0

skipif mysql # not compatible
query I rowsort label-9215
SELECT 27 / - - 34
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9216
SELECT CAST( NULLIF ( 28, + + 53 * + 1 ) AS SIGNED ) * + 26 DIV + COUNT( * ) + - + 49 * ( + 9 ) * - + 14 + - + 34 AS col1
----
6868

skipif mysql # not compatible
query I rowsort label-9216
SELECT CAST ( NULLIF ( 28, + + 53 * + 1 ) AS INTEGER ) * + 26 / + COUNT ( * ) + - + 49 * ( + 9 ) * - + 14 + - + 34 AS col1
----
6868

query I rowsort
SELECT ALL 43 + - 49 AS col0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-9218
SELECT 24 - - + 40 + + NULLIF ( + COUNT( * ), + COUNT( * ) ) - 38 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9218
SELECT 24 - - + 40 + + NULLIF ( + COUNT ( * ), + COUNT ( * ) ) - 38 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9219
SELECT ALL CAST( NULL AS DECIMAL ) + COUNT( * ) * - 27 + - 45
----
NULL

skipif mysql # not compatible
query I rowsort label-9219
SELECT ALL CAST ( NULL AS REAL ) + COUNT ( * ) * - 27 + - 45
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9220
SELECT - 70 * - COUNT( * ) - 22 AS col1
----
48

skipif mysql # not compatible
query I rowsort label-9220
SELECT - 70 * - COUNT ( * ) - 22 AS col1
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9221
SELECT DISTINCT + COUNT( * ) + + NULLIF ( NULLIF ( 49, 95 ), - 23 * 0 / CAST( NULL AS SIGNED ) + + ( + 50 ) * 71 ) - - COUNT( * ) + + 93 + + 12 * + CASE + COUNT( * ) WHEN + 86 THEN - 5 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9221
SELECT DISTINCT + COUNT ( * ) + + NULLIF ( NULLIF ( 49, 95 ), - 23 * 0 / CAST ( NULL AS INTEGER ) + + ( + 50 ) * 71 ) - - COUNT ( * ) + + 93 + + 12 * + CASE + COUNT ( * ) WHEN + 86 THEN - 5 END AS col2
----
NULL

query I rowsort
SELECT ALL 13 + - 56
----
-43

query II rowsort
SELECT 72 AS col0, - 20 AS col0
----
72
-20

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9224
SELECT COUNT( * ) + + 75 * - + 4 AS col2, 27 DIV - NULLIF ( + + 68, - + 98 DIV - ( 51 ) * + - COALESCE ( - 74, + - 61 * - ( - - COALESCE ( - + 77, - 74 - + 28 ) ) DIV + + COUNT( * ) + + - MAX( DISTINCT 44 ) * 15 ) )
----
-299
0

skipif mysql # not compatible
query II rowsort label-9224
SELECT COUNT ( * ) + + 75 * - + 4 AS col2, 27 / - NULLIF ( + + 68, - + 98 / - ( 51 ) * + - COALESCE ( - 74, + - 61 * - ( - - COALESCE ( - + 77, - 74 - + 28 ) ) / + + COUNT ( * ) + + - MAX ( DISTINCT 44 ) * 15 ) )
----
-299
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9225
SELECT - CAST( NULL AS SIGNED ) * - 15 + - + ( + ( - CASE 39 WHEN + - 18 THEN - + 4 * - 18 ELSE + 46 END ) ) * - 21 - + COUNT( - 78 ) + CASE + 65 WHEN - 8 THEN + 44 ELSE NULL END + - - ( SUM( ALL CAST( COALESCE ( 13, 27 * + 68 ) AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9225
SELECT - CAST ( NULL AS INTEGER ) * - 15 + - + ( + ( - CASE 39 WHEN + - 18 THEN - + 4 * - 18 ELSE + 46 END ) ) * - 21 - + COUNT ( - 78 ) + CASE + 65 WHEN - 8 THEN + 44 ELSE NULL END + - - ( SUM ( ALL CAST ( COALESCE ( 13, 27 * + 68 ) AS INTEGER ) ) )
----
NULL

query I rowsort
SELECT + + 72 AS col0
----
72

query I rowsort
SELECT 87 + + 13 AS col2
----
100

query I rowsort
SELECT + 45 * - 57 - + 34 AS col2
----
-2599

query I rowsort
SELECT DISTINCT - ( + + 83 )
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-9230
SELECT ALL + 25 - + COUNT( * ) + + + 43 + - 24 + 3 + + 47 - + 57 * - 38 * + 85 AS col1
----
184203

skipif mysql # not compatible
query I rowsort label-9230
SELECT ALL + 25 - + COUNT ( * ) + + + 43 + - 24 + 3 + + 47 - + 57 * - 38 * + 85 AS col1
----
184203

onlyif mysql # aggregate syntax: 
query I rowsort label-9231
SELECT + 23 + + COUNT( * )
----
24

skipif mysql # not compatible
query I rowsort label-9231
SELECT + 23 + + COUNT ( * )
----
24

query II rowsort
SELECT + 36 + + - NULLIF ( + 52, - - 75 * + + 21 ), - 71 AS col1
----
-16
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-9233
SELECT 56 + - - 78 - 84 * COUNT( * ) * + 99 + - 50 + + + 3 AS col1
----
-8229

skipif mysql # not compatible
query I rowsort label-9233
SELECT 56 + - - 78 - 84 * COUNT ( * ) * + 99 + - 50 + + + 3 AS col1
----
-8229

onlyif mysql # aggregate syntax: 
query II rowsort label-9234
SELECT DISTINCT - COALESCE ( - 22, + 56 ) * + COUNT( * ) - + 77 * - 92 AS col0, 55 + 20 AS col0
----
7106
75

skipif mysql # not compatible
query II rowsort label-9234
SELECT DISTINCT - COALESCE ( - 22, + 56 ) * + COUNT ( * ) - + 77 * - 92 AS col0, 55 + 20 AS col0
----
7106
75

query I rowsort
SELECT ALL + 90 * - - 42 AS col1
----
3780

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9236
SELECT - ( - - 97 ) DIV + - COUNT( * ) AS col2, - 22 AS col0
----
97
-22

skipif mysql # not compatible
query II rowsort label-9236
SELECT - ( - - 97 ) / + - COUNT ( * ) AS col2, - 22 AS col0
----
97
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9237
SELECT - 12 + - CASE - - COUNT( * ) WHEN 30 - - - 98 + + COUNT( * ) * + COUNT( * ) THEN + 55 - - CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9237
SELECT - 12 + - CASE - - COUNT ( * ) WHEN 30 - - - 98 + + COUNT ( * ) * + COUNT ( * ) THEN + 55 - - CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9238
SELECT - - MAX( ALL + 98 )
----
98

skipif mysql # not compatible
query I rowsort label-9238
SELECT - - MAX ( ALL + 98 )
----
98

query I rowsort
SELECT ( - 76 ) AS col0
----
-76

query II rowsort
SELECT + 39 * - 48 + 38, + 16 AS col2
----
-1834
16

query I rowsort
SELECT 56 * - 68 AS col2
----
-3808

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9242
SELECT DISTINCT COALESCE ( + AVG ( ALL - + 75 ), + 90 ) * + 74 * - - 63 + - 94 - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9242
SELECT DISTINCT COALESCE ( + AVG ( ALL - + 75 ), + 90 ) * + 74 * - - 63 + - 94 - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9243
SELECT + CAST( + - 5 AS SIGNED ) + + 20
----
15

skipif mysql # not compatible
query I rowsort label-9243
SELECT + CAST ( + - 5 AS INTEGER ) + + 20
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9244
SELECT 8 * + NULLIF ( + + ( - + 74 ), ( + CAST( NULL AS SIGNED ) ) * - NULLIF ( - COALESCE ( 27, - + ( - - 19 ) * 49 ), - - 76 ) )
----
-592

skipif mysql # not compatible
query I rowsort label-9244
SELECT 8 * + NULLIF ( + + ( - + 74 ), ( + CAST ( NULL AS INTEGER ) ) * - NULLIF ( - COALESCE ( 27, - + ( - - 19 ) * 49 ), - - 76 ) )
----
-592

query II rowsort
SELECT ALL 98 col2, 72
----
98
72

onlyif mysql # aggregate syntax: 
query I rowsort label-9246
SELECT 89 + + COUNT( * ) AS col2
----
90

skipif mysql # not compatible
query I rowsort label-9246
SELECT 89 + + COUNT ( * ) AS col2
----
90

query I rowsort
SELECT CASE - - 48 WHEN 5 THEN + COALESCE ( + 36, ( - 72 ), 70 ) ELSE NULL END - - 39
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9248
SELECT CASE + - ( - + 57 ) WHEN - - 65 + - + COUNT( * ) * - 99 + 36 - + 59 THEN 18 * - 29 WHEN MIN( ALL 7 ) THEN NULL WHEN 55 + + 46 THEN NULL WHEN + SUM( - ( - 75 ) ) THEN NULL ELSE + 81 - + + 19 DIV + + 27 + - + 43 END + - 93 * - 40
----
3758

skipif mysql # not compatible
query I rowsort label-9248
SELECT CASE + - ( - + 57 ) WHEN - - 65 + - + COUNT ( * ) * - 99 + 36 - + 59 THEN 18 * - 29 WHEN MIN ( ALL 7 ) THEN NULL WHEN 55 + + 46 THEN NULL WHEN + SUM ( - ( - 75 ) ) THEN NULL ELSE + 81 - + + 19 / + + 27 + - + 43 END + - 93 * - 40
----
3758

onlyif mysql # DIV for integer division: 
query I rowsort label-9249
SELECT 34 + - 82 + 12 DIV 74 * - + ( + - 8 ) DIV + 40 * - 53
----
-48

skipif mysql # not compatible
query I rowsort label-9249
SELECT 34 + - 82 + 12 / 74 * - + ( + - 8 ) / + 40 * - 53
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-9250
SELECT ALL - MAX( + 97 ) * + + 21 + + 61
----
-1976

skipif mysql # not compatible
query I rowsort label-9250
SELECT ALL - MAX ( + 97 ) * + + 21 + + 61
----
-1976

query I rowsort
SELECT 43 + - + 99 col0
----
-56

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9252
SELECT + 65, + 25 * CASE 34 WHEN 6 THEN NULL ELSE + ( - 81 ) + - 81 + - 17 + - 22 END * CAST( NULL AS SIGNED ) * ( + 82 ) AS col1
----
65
NULL

skipif mysql # not compatible
query II rowsort label-9252
SELECT + 65, + 25 * CASE 34 WHEN 6 THEN NULL ELSE + ( - 81 ) + - 81 + - 17 + - 22 END * CAST ( NULL AS INTEGER ) * ( + 82 ) AS col1
----
65
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9253
SELECT ALL + COUNT( * ) + 74 DIV - 1 AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-9253
SELECT ALL + COUNT ( * ) + 74 / - 1 AS col0
----
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9254
SELECT ALL - MIN( ALL - 9 ) AS col1, - 93 / 4 + - - CASE 90 WHEN CAST( - 75 AS SIGNED ) THEN + COUNT( * ) ELSE NULL END + 68 * + - 20
----
9
NULL

skipif mysql # not compatible
query II rowsort label-9254
SELECT ALL - MIN ( ALL - 9 ) AS col1, - 93 / 4 + - - CASE 90 WHEN CAST ( - 75 AS INTEGER ) THEN + COUNT ( * ) ELSE NULL END + 68 * + - 20
----
9
NULL

query I rowsort
SELECT ALL - 96 * - 46 * + 7 AS col2
----
30912

query I rowsort
SELECT 33 + + - 58 - + 14
----
-39

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9257
SELECT ALL - CAST( NULL AS DECIMAL ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9257
SELECT ALL - CAST ( NULL AS REAL ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9258
SELECT 43 + + COUNT( * ) AS col1
----
44

skipif mysql # not compatible
query I rowsort label-9258
SELECT 43 + + COUNT ( * ) AS col1
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-9259
SELECT ALL + 23 + + - 33 + - MAX( 28 )
----
-38

skipif mysql # not compatible
query I rowsort label-9259
SELECT ALL + 23 + + - 33 + - MAX ( 28 )
----
-38

query II rowsort
SELECT + 31 col0, 85 * + 45
----
31
3825

onlyif mysql # aggregate syntax: 
query I rowsort label-9261
SELECT 23 * - 67 * ( + - COUNT( * ) ) col0
----
1541

skipif mysql # not compatible
query I rowsort label-9261
SELECT 23 * - 67 * ( + - COUNT ( * ) ) col0
----
1541

query II rowsort
SELECT + 53 * - ( - 20 ) + 70 * - 35 - 31 AS col1, + 81 AS col1
----
-1421
81

onlyif mysql # aggregate syntax: 
query II rowsort label-9263
SELECT 25 AS col1, + 10 - COUNT( * ) * NULLIF ( 84, + 84 ) * - 76 + 57 / - COUNT( * ) + 23 AS col1
----
25
NULL

skipif mysql # not compatible
query II rowsort label-9263
SELECT 25 AS col1, + 10 - COUNT ( * ) * NULLIF ( 84, + 84 ) * - 76 + 57 / - COUNT ( * ) + 23 AS col1
----
25
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9264
SELECT + CASE 68 WHEN 7 THEN - - 92 + - 54 + + 31 * - + MIN( + + 77 ) WHEN - - ( + 10 ) THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9264
SELECT + CASE 68 WHEN 7 THEN - - 92 + - 54 + + 31 * - + MIN ( + + 77 ) WHEN - - ( + 10 ) THEN NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9265
SELECT + CAST( - - 70 AS SIGNED ) + - 17 AS col1
----
53

skipif mysql # not compatible
query I rowsort label-9265
SELECT + CAST ( - - 70 AS INTEGER ) + - 17 AS col1
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9266
SELECT + 93 * - CAST( - 16 AS SIGNED ) + - + COUNT( * ) AS col0
----
1487

skipif mysql # not compatible
query I rowsort label-9266
SELECT + 93 * - CAST ( - 16 AS INTEGER ) + - + COUNT ( * ) AS col0
----
1487

query I rowsort
SELECT + 63 * 20 - 88 AS col2
----
1172

onlyif mysql # aggregate syntax: 
query II rowsort label-9268
SELECT ALL - + COUNT( * ) AS col0, + 85
----
-1
85

skipif mysql # not compatible
query II rowsort label-9268
SELECT ALL - + COUNT ( * ) AS col0, + 85
----
-1
85

onlyif mysql # DIV for integer division: 
query I rowsort label-9269
SELECT ALL + + ( - 82 ) DIV - 51 + - COALESCE ( + ( + 78 ), + 68 * - 29 - + 71, - 63 + + 22 ) AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-9269
SELECT ALL + + ( - 82 ) / - 51 + - COALESCE ( + ( + 78 ), + 68 * - 29 - + 71, - 63 + + 22 ) AS col1
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9270
SELECT DISTINCT - 21 - + - 14 + - + COUNT( * ) * + 1 * COUNT( * ) AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-9270
SELECT DISTINCT - 21 - + - 14 + - + COUNT ( * ) * + 1 * COUNT ( * ) AS col1
----
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-9271
SELECT ALL - - 60 AS col2, 67 * - 33 * - 25 * + COUNT( * ) - 52
----
60
55223

skipif mysql # not compatible
query II rowsort label-9271
SELECT ALL - - 60 AS col2, 67 * - 33 * - 25 * + COUNT ( * ) - 52
----
60
55223

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9272
SELECT DISTINCT + + CASE + CASE - 77 WHEN + 38 + COUNT( + CAST( NULL AS SIGNED ) ) THEN NULL WHEN - ( + 87 ) + - 93 + + - 89 THEN - 42 ELSE NULL END WHEN - 33 THEN - + 67 WHEN ( + + 81 ) * + - SUM( ALL 63 ) + + - 92 / + 78 THEN NULL WHEN + COUNT( * ) THEN + + 20 * CASE 88 + 65 WHEN + 50 * + CASE ( 18 ) * 42 WHEN 96 THEN + 34 + - 60 * CAST( ( - ( - 8 ) ) AS SIGNED ) ELSE 95 END + - 8 THEN 60 ELSE NULL END END * 20
----
NULL

skipif mysql # not compatible
query I rowsort label-9272
SELECT DISTINCT + + CASE + CASE - 77 WHEN + 38 + COUNT ( + CAST ( NULL AS INTEGER ) ) THEN NULL WHEN - ( + 87 ) + - 93 + + - 89 THEN - 42 ELSE NULL END WHEN - 33 THEN - + 67 WHEN ( + + 81 ) * + - SUM ( ALL 63 ) + + - 92 / + 78 THEN NULL WHEN + COUNT ( * ) THEN + + 20 * CASE 88 + 65 WHEN + 50 * + CASE ( 18 ) * 42 WHEN 96 THEN + 34 + - 60 * CAST ( ( - ( - 8 ) ) AS INTEGER ) ELSE 95 END + - 8 THEN 60 ELSE NULL END END * 20
----
NULL

query I rowsort
SELECT 71 * 68 AS col2
----
4828

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9274
SELECT + + 2 * + + CASE + 32 WHEN + ( 79 ) THEN + 40 + - + 77 * + + 39 WHEN COUNT( * ) * COUNT( * ) THEN + + CASE 88 WHEN - 56 THEN NULL WHEN + - 55 * - + 27 + - 41 / + 32 + CAST( NULL AS SIGNED ) + + + 63 / + AVG ( DISTINCT + 93 ) / - ( COUNT( * ) ) THEN + 67 END END - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9274
SELECT + + 2 * + + CASE + 32 WHEN + ( 79 ) THEN + 40 + - + 77 * + + 39 WHEN COUNT ( * ) * COUNT ( * ) THEN + + CASE 88 WHEN - 56 THEN NULL WHEN + - 55 * - + 27 + - 41 / + 32 + CAST ( NULL AS INTEGER ) + + + 63 / + AVG ( DISTINCT + 93 ) / - ( COUNT ( * ) ) THEN + 67 END END - COUNT ( * ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9275
SELECT 1 DIV - - 71
----
0

skipif mysql # not compatible
query I rowsort label-9275
SELECT 1 / - - 71
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9276
SELECT + ( - - COALESCE ( ( + + COUNT( * ) ), 13 * + 19 + - COALESCE ( + + MIN( + - 87 ), + 33 * 73 - - - 87 ) ) ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9276
SELECT + ( - - COALESCE ( ( + + COUNT ( * ) ), 13 * + 19 + - COALESCE ( + + MIN ( + - 87 ), + 33 * 73 - - - 87 ) ) ) * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 0 - + - 94
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-9278
SELECT - + COALESCE ( - 88, 3 - 34, ( 35 ) DIV + + 18 ) AS col2
----
88

skipif mysql # not compatible
query I rowsort label-9278
SELECT - + COALESCE ( - 88, 3 - 34, ( 35 ) / + + 18 ) AS col2
----
88

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9279
SELECT + 9 * COUNT( * ) * + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9279
SELECT + 9 * COUNT ( * ) * + CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9280
SELECT + 79 + - - ( - COUNT( * ) ) AS col1
----
78

skipif mysql # not compatible
query I rowsort label-9280
SELECT + 79 + - - ( - COUNT ( * ) ) AS col1
----
78

onlyif mysql # aggregate syntax: 
query II rowsort label-9281
SELECT MIN( DISTINCT - 52 ) AS col0, - 3 * - - 42 - + 57 * 39 + + 5 col2
----
-52
-2344

skipif mysql # not compatible
query II rowsort label-9281
SELECT MIN ( DISTINCT - 52 ) AS col0, - 3 * - - 42 - + 57 * 39 + + 5 col2
----
-52
-2344

onlyif mysql # aggregate syntax: 
query II rowsort label-9282
SELECT ALL 27 AS col0, CASE - 13 WHEN MIN( DISTINCT + + 10 ) + + 30 - - 23 + + ( + 87 ) THEN + 69 / COUNT( * ) / + 67 END + + MIN( DISTINCT 9 ) * + SUM( - 82 ) col1
----
27
NULL

skipif mysql # not compatible
query II rowsort label-9282
SELECT ALL 27 AS col0, CASE - 13 WHEN MIN ( DISTINCT + + 10 ) + + 30 - - 23 + + ( + 87 ) THEN + 69 / COUNT ( * ) / + 67 END + + MIN ( DISTINCT 9 ) * + SUM ( - 82 ) col1
----
27
NULL

query II rowsort
SELECT ALL 88 col0, - 84 + 94 AS col0
----
88
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9284
SELECT ALL 29 + - + 31 + + + 57 + NULLIF ( - - 47, + 78 * + 28 * - NULLIF ( - + AVG ( DISTINCT - 50 ), 58 ) + - 81 ) - - 68 + - ( - COUNT( * ) ) * - + 56
----
114

skipif mysql # not compatible
query I rowsort label-9284
SELECT ALL 29 + - + 31 + + + 57 + NULLIF ( - - 47, + 78 * + 28 * - NULLIF ( - + AVG ( DISTINCT - 50 ), 58 ) + - 81 ) - - 68 + - ( - COUNT ( * ) ) * - + 56
----
114

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9285
SELECT + 92 * 36 * - 62 * CAST( NULL AS SIGNED ) * - + 35 * + 3
----
NULL

skipif mysql # not compatible
query I rowsort label-9285
SELECT + 92 * 36 * - 62 * CAST ( NULL AS INTEGER ) * - + 35 * + 3
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9286
SELECT + COUNT( * ) * + 22 AS col0
----
22

skipif mysql # not compatible
query I rowsort label-9286
SELECT + COUNT ( * ) * + 22 AS col0
----
22

query II rowsort
SELECT - 45 - - 0 AS col0, 54
----
-45
54

query I rowsort
SELECT DISTINCT 9 + - 85 - + + 5
----
-81

query I rowsort
SELECT ALL CASE + - 2 WHEN - 61 THEN + 86 ELSE NULL END + 78 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9290
SELECT DISTINCT + 36 + 18 * CAST( + - 78 AS SIGNED ) * 78 * - - 21
----
-2299716

skipif mysql # not compatible
query I rowsort label-9290
SELECT DISTINCT + 36 + 18 * CAST ( + - 78 AS INTEGER ) * 78 * - - 21
----
-2299716

query I rowsort
SELECT + 9 * + 37
----
333

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9292
SELECT DISTINCT + 19 DIV - + ( 51 ) AS col2, - 60 + - + 93 * + 67 DIV COUNT( 39 )
----
0
-6291

skipif mysql # not compatible
query II rowsort label-9292
SELECT DISTINCT + 19 / - + ( 51 ) AS col2, - 60 + - + 93 * + 67 / COUNT ( 39 )
----
0
-6291

query I rowsort
SELECT DISTINCT + 85 * + 58 + - 26
----
4904

query I rowsort
SELECT COALESCE ( - 80, 92 )
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9295
SELECT - CAST( + + 99 AS SIGNED ) * 22 + + MIN( - 87 ) * 86 DIV - NULLIF ( + 16, - 49 )
----
-1711

skipif mysql # not compatible
query I rowsort label-9295
SELECT - CAST ( + + 99 AS INTEGER ) * 22 + + MIN ( - 87 ) * 86 / - NULLIF ( + 16, - 49 )
----
-1711

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9296
SELECT - CASE - 62 WHEN + 33 THEN 71 ELSE 29 END DIV - 50 + 12 AS col1, - CAST( CASE + + 29 WHEN + - 40 THEN - COUNT( - - 0 ) WHEN - 7 * + COUNT( * ) THEN - 39 + - - COUNT( * ) WHEN - 21 THEN NULL END AS SIGNED ) * - CAST( NULL AS SIGNED ) DIV - + 87 + + - 30
----
12
NULL

skipif mysql # not compatible
query II rowsort label-9296
SELECT - CASE - 62 WHEN + 33 THEN 71 ELSE 29 END / - 50 + 12 AS col1, - CAST ( CASE + + 29 WHEN + - 40 THEN - COUNT ( - - 0 ) WHEN - 7 * + COUNT ( * ) THEN - 39 + - - COUNT ( * ) WHEN - 21 THEN NULL END AS INTEGER ) * - CAST ( NULL AS INTEGER ) / - + 87 + + - 30
----
12
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9297
SELECT DISTINCT + 19 DIV + - 15
----
-1

skipif mysql # not compatible
query I rowsort label-9297
SELECT DISTINCT + 19 / + - 15
----
-1

query I rowsort
SELECT - 72 * + - 73 AS col2
----
5256

onlyif mysql # aggregate syntax: 
query I rowsort label-9299
SELECT - COUNT( * ) / + 77 * ( - 21 ) - COUNT( * ) + - 35 + - + 77 + + CASE - - COALESCE ( + 60, - 81, - ( 37 ) ) WHEN + MAX( - 1 ) * + 93 + - 92 THEN - - 84 / - - 13 / + 89 - + 22 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9299
SELECT - COUNT ( * ) / + 77 * ( - 21 ) - COUNT ( * ) + - 35 + - + 77 + + CASE - - COALESCE ( + 60, - 81, - ( 37 ) ) WHEN + MAX ( - 1 ) * + 93 + - 92 THEN - - 84 / - - 13 / + 89 - + 22 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9300
SELECT ALL + SUM( + ( + 36 ) ) AS col0
----
36

skipif mysql # not compatible
query I rowsort label-9300
SELECT ALL + SUM ( + ( + 36 ) ) AS col0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9301
SELECT DISTINCT - + COUNT( * ) * + - 62 * + 99
----
6138

skipif mysql # not compatible
query I rowsort label-9301
SELECT DISTINCT - + COUNT ( * ) * + - 62 * + 99
----
6138

query I rowsort
SELECT + - 69 * 80 * + 55 + + - 86
----
-303686

query I rowsort
SELECT DISTINCT + - 92 AS col1
----
-92

query I rowsort
SELECT - + 42 + + 69 * - 62 * + 88
----
-376506

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9305
SELECT - + COUNT( * ) - - + NULLIF ( - 33, - + COUNT( * ) ) DIV - + 83 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9305
SELECT - + COUNT ( * ) - - + NULLIF ( - 33, - + COUNT ( * ) ) / - + 83 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9306
SELECT + + ( 88 ) * 44 + - 27 + COUNT( * ) * - + 10 col0
----
3835

skipif mysql # not compatible
query I rowsort label-9306
SELECT + + ( 88 ) * 44 + - 27 + COUNT ( * ) * - + 10 col0
----
3835

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9307
SELECT - - 62 - + 14 - - COUNT( 52 ) * - 86 - - ( - + 68 ) * - 78 - - NULLIF ( - 60, - - 1 ) DIV - COUNT( * ) AS col0
----
5326

skipif mysql # not compatible
query I rowsort label-9307
SELECT - - 62 - + 14 - - COUNT ( 52 ) * - 86 - - ( - + 68 ) * - 78 - - NULLIF ( - 60, - - 1 ) / - COUNT ( * ) AS col0
----
5326

onlyif mysql # aggregate syntax: 
query I rowsort label-9308
SELECT + ( ( + - ( 21 ) ) ) * COUNT( * ) + 91 AS col0
----
70

skipif mysql # not compatible
query I rowsort label-9308
SELECT + ( ( + - ( 21 ) ) ) * COUNT ( * ) + 91 AS col0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-9309
SELECT ALL + - SUM( ALL - + 97 ) col2
----
97

skipif mysql # not compatible
query I rowsort label-9309
SELECT ALL + - SUM ( ALL - + 97 ) col2
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9310
SELECT ALL CAST( 85 AS SIGNED ) * - - COUNT( * ) AS col0
----
85

skipif mysql # not compatible
query I rowsort label-9310
SELECT ALL CAST ( 85 AS INTEGER ) * - - COUNT ( * ) AS col0
----
85

query I rowsort
SELECT DISTINCT + ( + 3 ) + + 27 * 87 + + ( + 79 )
----
2431

query I rowsort
SELECT ALL NULLIF ( - 72, 18 ) col2
----
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9313
SELECT - + COUNT( * ) * + 59, COUNT( * ) + ( - + 8 ) + - 89 + + 97 + 51 DIV + 80 col0
----
-59
1

skipif mysql # not compatible
query II rowsort label-9313
SELECT - + COUNT ( * ) * + 59, COUNT ( * ) + ( - + 8 ) + - 89 + + 97 + 51 / + 80 col0
----
-59
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9314
SELECT ALL + - 10 + + + COUNT( * ) + + 74 + - + 55 + - - 74 * 42
----
3118

skipif mysql # not compatible
query I rowsort label-9314
SELECT ALL + - 10 + + + COUNT ( * ) + + 74 + - + 55 + - - 74 * 42
----
3118

onlyif mysql # aggregate syntax: 
query I rowsort label-9315
SELECT DISTINCT - 88 * SUM( ALL 63 )
----
-5544

skipif mysql # not compatible
query I rowsort label-9315
SELECT DISTINCT - 88 * SUM ( ALL 63 )
----
-5544

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9316
SELECT ALL CAST( + 44 AS SIGNED ) + 37 AS col1
----
81

skipif mysql # not compatible
query I rowsort label-9316
SELECT ALL CAST ( + 44 AS INTEGER ) + 37 AS col1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9317
SELECT ALL ( + ( COUNT( * ) ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9317
SELECT ALL ( + ( COUNT ( * ) ) ) AS col2
----
1

query I rowsort
SELECT + 50 + 21 + 70
----
141

query II rowsort
SELECT ALL 8 AS col1, - 9 AS col1
----
8
-9

query I rowsort
SELECT + 26 + - 11 AS col0
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9321
SELECT ALL - 23 + + 62 - MIN( - 83 ) + CAST( + CASE - 87 WHEN - 94 + - 33 THEN 36 * - + 36 END AS SIGNED ) * - COUNT( * ) * + - COUNT( * ) - 74 + + 24 + 11 * + ( + + 83 ) + + 85 + - 56 * + - 54
----
NULL

skipif mysql # not compatible
query I rowsort label-9321
SELECT ALL - 23 + + 62 - MIN ( - 83 ) + CAST ( + CASE - 87 WHEN - 94 + - 33 THEN 36 * - + 36 END AS INTEGER ) * - COUNT ( * ) * + - COUNT ( * ) - 74 + + 24 + 11 * + ( + + 83 ) + + 85 + - 56 * + - 54
----
NULL

query I rowsort
SELECT ALL 97 * 14 AS col0
----
1358

onlyif mysql # aggregate syntax: 
query I rowsort label-9323
SELECT + 3 + - NULLIF ( COUNT( * ), - 16 ) * - 43 AS col1
----
46

skipif mysql # not compatible
query I rowsort label-9323
SELECT + 3 + - NULLIF ( COUNT ( * ), - 16 ) * - 43 AS col1
----
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9324
SELECT DISTINCT ( - 31 ) * - 42 * + 96 DIV COUNT( * ) + - + 77 * - 88
----
131768

skipif mysql # not compatible
query I rowsort label-9324
SELECT DISTINCT ( - 31 ) * - 42 * + 96 / COUNT ( * ) + - + 77 * - 88
----
131768

onlyif mysql # aggregate syntax: 
query I rowsort label-9325
SELECT + 90 + - 42 * - COUNT( * )
----
132

skipif mysql # not compatible
query I rowsort label-9325
SELECT + 90 + - 42 * - COUNT ( * )
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-9326
SELECT + 96 + - - 47 + - 47 + - SUM( 4 ) * 32
----
-32

skipif mysql # not compatible
query I rowsort label-9326
SELECT + 96 + - - 47 + - 47 + - SUM ( 4 ) * 32
----
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9327
SELECT ALL CAST( - + CAST( + + ( CASE - 83 WHEN + 58 * - + 34 - - 25 * - + 54 + 48 THEN + 7 WHEN 85 THEN + - 78 END ) AS SIGNED ) AS SIGNED ) * + 36 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9327
SELECT ALL CAST ( - + CAST ( + + ( CASE - 83 WHEN + 58 * - + 34 - - 25 * - + 54 + 48 THEN + 7 WHEN 85 THEN + - 78 END ) AS INTEGER ) AS INTEGER ) * + 36 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9328
SELECT 58 AS col2, - COUNT( * )
----
58
-1

skipif mysql # not compatible
query II rowsort label-9328
SELECT 58 AS col2, - COUNT ( * )
----
58
-1

query I rowsort
SELECT + ( + + 15 ) col2
----
15

query I rowsort
SELECT - 49 + - - 76 AS col1
----
27

query II rowsort
SELECT ALL + 13 AS col0, 47 + + + 65 + - 19 + + ( + + 12 ) + - 66
----
13
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9332
SELECT COUNT( * ) * + 98 * CASE WHEN NOT AVG ( + + 13 ) IS NULL THEN + 68 END + 69 DIV + 85 * - + 2 * + CAST( - 51 AS SIGNED ) * + MIN( DISTINCT + ( + 79 ) ) + - 55 AS col2
----
6609

skipif mysql # not compatible
query I rowsort label-9332
SELECT COUNT ( * ) * + 98 * CASE WHEN NOT AVG ( + + 13 ) IS NULL THEN + 68 END + 69 / + 85 * - + 2 * + CAST ( - 51 AS INTEGER ) * + MIN ( DISTINCT + ( + 79 ) ) + - 55 AS col2
----
6609

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9333
SELECT + COALESCE ( + 67, - + 91 * - 17 DIV - CASE - MIN( DISTINCT 81 ) WHEN + + 14 - - + 64 THEN - CASE + COUNT( + 81 ) WHEN + 75 * + + COUNT( * ) THEN + 3 WHEN + + COUNT( * ) * + MIN( + ( 45 ) ) DIV 94 * - - ( - 8 ) - + - 51 + ( - 99 + + 53 ) + + MAX( ALL 52 ) * 98 THEN CASE 53 WHEN 76 THEN NULL WHEN + 10 + - COUNT( * ) THEN + 36 * COUNT( * ) END WHEN 35 THEN + 4 END + COUNT( * ) WHEN - 24 + - 49 * 46 THEN NULL END + - 71, + 29 - + 14 ) * + 58
----
3886

skipif mysql # not compatible
query I rowsort label-9333
SELECT + COALESCE ( + 67, - + 91 * - 17 / - CASE - MIN ( DISTINCT 81 ) WHEN + + 14 - - + 64 THEN - CASE + COUNT ( + 81 ) WHEN + 75 * + + COUNT ( * ) THEN + 3 WHEN + + COUNT ( * ) * + MIN ( + ( 45 ) ) / 94 * - - ( - 8 ) - + - 51 + ( - 99 + + 53 ) + + MAX ( ALL 52 ) * 98 THEN CASE 53 WHEN 76 THEN NULL WHEN + 10 + - COUNT ( * ) THEN + 36 * COUNT ( * ) END WHEN 35 THEN + 4 END + COUNT ( * ) WHEN - 24 + - 49 * 46 THEN NULL END + - 71, + 29 - + 14 ) * + 58
----
3886

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9334
SELECT ALL CAST( NULL AS SIGNED ) * COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9334
SELECT ALL CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9335
SELECT CAST( + + 64 AS SIGNED )
----
64

skipif mysql # not compatible
query I rowsort label-9335
SELECT CAST ( + + 64 AS INTEGER )
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9336
SELECT + - 32 + + COUNT( * )
----
-31

skipif mysql # not compatible
query I rowsort label-9336
SELECT + - 32 + + COUNT ( * )
----
-31

query I rowsort
SELECT + + 57 * 80 * - 1 AS col2
----
-4560

query I rowsort
SELECT ALL + - 30 * 73 AS col1
----
-2190

onlyif mysql # DIV for integer division: 
query I rowsort label-9339
SELECT DISTINCT 81 DIV + 69
----
1

skipif mysql # not compatible
query I rowsort label-9339
SELECT DISTINCT 81 / + 69
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9340
SELECT + 34 * - 18 + - - COUNT( * )
----
-611

skipif mysql # not compatible
query I rowsort label-9340
SELECT + 34 * - 18 + - - COUNT ( * )
----
-611

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9341
SELECT + + MIN( ALL - - 42 ) * - COALESCE ( + + 86, 97 + - 94 DIV CAST( - 9 AS SIGNED ) + + 26 ) * 85 col0
----
-307020

skipif mysql # not compatible
query I rowsort label-9341
SELECT + + MIN ( ALL - - 42 ) * - COALESCE ( + + 86, 97 + - 94 / CAST ( - 9 AS INTEGER ) + + 26 ) * 85 col0
----
-307020

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9342
SELECT + 78 DIV - + COUNT( * ) AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-9342
SELECT + 78 / - + COUNT ( * ) AS col1
----
-78

query II rowsort
SELECT - 52 + ( 22 ), 43 - 41 AS col2
----
-30
2

onlyif mysql # aggregate syntax: 
query II rowsort label-9344
SELECT ALL + + 50 * - + 16 * + COUNT( * ) AS col1, 51 AS col0
----
-800
51

skipif mysql # not compatible
query II rowsort label-9344
SELECT ALL + + 50 * - + 16 * + COUNT ( * ) AS col1, 51 AS col0
----
-800
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9345
SELECT ALL + MIN( - - 90 ) AS col0
----
90

skipif mysql # not compatible
query I rowsort label-9345
SELECT ALL + MIN ( - - 90 ) AS col0
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9346
SELECT ALL + COUNT( * ) * - 27 + + - 99 DIV - 45 + + 93 AS col0
----
68

skipif mysql # not compatible
query I rowsort label-9346
SELECT ALL + COUNT ( * ) * - 27 + + - 99 / - 45 + + 93 AS col0
----
68

query I rowsort
SELECT ( - + 56 )
----
-56

onlyif mysql # aggregate syntax: 
query II rowsort label-9348
SELECT - + 33 col0, COUNT( * )
----
-33
1

skipif mysql # not compatible
query II rowsort label-9348
SELECT - + 33 col0, COUNT ( * )
----
-33
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9349
SELECT - - 21 AS col2, - COUNT( * ) + COUNT( * )
----
21
0

skipif mysql # not compatible
query II rowsort label-9349
SELECT - - 21 AS col2, - COUNT ( * ) + COUNT ( * )
----
21
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9350
SELECT + 98 + + - COALESCE ( - COUNT( * ), + 71 ) + + 57 AS col1
----
156

skipif mysql # not compatible
query I rowsort label-9350
SELECT + 98 + + - COALESCE ( - COUNT ( * ), + 71 ) + + 57 AS col1
----
156

onlyif mysql # aggregate syntax: 
query II rowsort label-9351
SELECT - 62 AS col2, - COUNT( * ) col1
----
-62
-1

skipif mysql # not compatible
query II rowsort label-9351
SELECT - 62 AS col2, - COUNT ( * ) col1
----
-62
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9352
SELECT 27 * COUNT( * ) DIV + + 79 + + + 67
----
67

skipif mysql # not compatible
query I rowsort label-9352
SELECT 27 * COUNT ( * ) / + + 79 + + + 67
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9353
SELECT NULLIF ( + SUM( - 67 ), - + 30 * - + COALESCE ( + 48, + 12 * - ( - 34 ) * - 90, + NULLIF ( - + 33, - 26 / - 67 ) ) ) * - + 99 + - 35
----
6598

skipif mysql # not compatible
query I rowsort label-9353
SELECT NULLIF ( + SUM ( - 67 ), - + 30 * - + COALESCE ( + 48, + 12 * - ( - 34 ) * - 90, + NULLIF ( - + 33, - 26 / - 67 ) ) ) * - + 99 + - 35
----
6598

query I rowsort
SELECT ALL + 36 + + 40 AS col2
----
76

query I rowsort
SELECT 17 * 77 AS col1
----
1309

onlyif mysql # aggregate syntax: 
query I rowsort label-9356
SELECT DISTINCT - NULLIF ( + MIN( - 27 ), - 43 ) + + 56 AS col0
----
83

skipif mysql # not compatible
query I rowsort label-9356
SELECT DISTINCT - NULLIF ( + MIN ( - 27 ), - 43 ) + + 56 AS col0
----
83

query II rowsort
SELECT DISTINCT 80 * 73 * + + 52 * 2 AS col1, + 55 AS col2
----
607360
55

onlyif mysql # aggregate syntax: 
query I rowsort label-9358
SELECT ALL - ( + - 20 ) * + COUNT( DISTINCT - 38 ) * 26
----
520

skipif mysql # not compatible
query I rowsort label-9358
SELECT ALL - ( + - 20 ) * + COUNT ( DISTINCT - 38 ) * 26
----
520

query I rowsort
SELECT DISTINCT 15 - - + 77 + + + 70
----
162

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9360
SELECT ALL + CAST( - + AVG ( ALL 93 ) AS SIGNED ) * 83
----
-7719

skipif mysql # not compatible
query I rowsort label-9360
SELECT ALL + CAST ( - + AVG ( ALL 93 ) AS INTEGER ) * 83
----
-7719

onlyif mysql # aggregate syntax: 
query I rowsort label-9361
SELECT 26 + - 21 * + - COUNT( * )
----
47

skipif mysql # not compatible
query I rowsort label-9361
SELECT 26 + - 21 * + - COUNT ( * )
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9362
SELECT 62 * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9362
SELECT 62 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 92 - + 79 + + 8 + 48 * + 12 AS col0
----
413

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9364
SELECT 18 + - + CAST( NULL AS SIGNED ) + - 35 * + 78 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9364
SELECT 18 + - + CAST ( NULL AS INTEGER ) + - 35 * + 78 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9365
SELECT + 31 * - NULLIF ( - MAX( ALL 87 ), - - ( + + 59 ) * - + 20 ) DIV 91 DIV - 49 + 60 AS col0
----
60

skipif mysql # not compatible
query I rowsort label-9365
SELECT + 31 * - NULLIF ( - MAX ( ALL 87 ), - - ( + + 59 ) * - + 20 ) / 91 / - 49 + 60 AS col0
----
60

query I rowsort
SELECT ALL 70 * - 27
----
-1890

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9367
SELECT + - 40 * + + 3 / 69 * - COUNT( * ) + - 60 + 3 - - + 91 - - 41 * + 12 - - MIN( DISTINCT + 93 ) * 17 * - + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9367
SELECT + - 40 * + + 3 / 69 * - COUNT ( * ) + - 60 + 3 - - + 91 - - 41 * + 12 - - MIN ( DISTINCT + 93 ) * 17 * - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT 56 * + - 11
----
-616

onlyif mysql # aggregate syntax: 
query I rowsort label-9369
SELECT 0 * 29 * NULLIF ( - - 64, + COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-9369
SELECT 0 * 29 * NULLIF ( - - 64, + COUNT ( * ) )
----
0

query I rowsort
SELECT 87 - 65 col1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-9371
SELECT ALL - 90 + 1 * + - COUNT( * ) / + CASE + 95 WHEN + 19 THEN ( + 4 ) WHEN COUNT( * ) + + 38 THEN - - ( 79 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9371
SELECT ALL - 90 + 1 * + - COUNT ( * ) / + CASE + 95 WHEN + 19 THEN ( + 4 ) WHEN COUNT ( * ) + + 38 THEN - - ( 79 ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9372
SELECT 85 * + MIN( ALL - + 24 ) + 71 AS col1
----
-1969

skipif mysql # not compatible
query I rowsort label-9372
SELECT 85 * + MIN ( ALL - + 24 ) + 71 AS col1
----
-1969

onlyif mysql # aggregate syntax: 
query I rowsort label-9373
SELECT ALL - 79 + - 63 + - - COUNT( * ) * + + 3
----
-139

skipif mysql # not compatible
query I rowsort label-9373
SELECT ALL - 79 + - 63 + - - COUNT ( * ) * + + 3
----
-139

onlyif mysql # aggregate syntax: 
query I rowsort label-9374
SELECT - 56 + - NULLIF ( COUNT( * ), + MAX( 75 ) * + 79 )
----
-57

skipif mysql # not compatible
query I rowsort label-9374
SELECT - 56 + - NULLIF ( COUNT ( * ), + MAX ( 75 ) * + 79 )
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-9375
SELECT ALL - - COUNT( + 0 )
----
1

skipif mysql # not compatible
query I rowsort label-9375
SELECT ALL - - COUNT ( + 0 )
----
1

query I rowsort
SELECT ALL 99 + - 4 col2
----
95

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9377
SELECT + 35 * ( + 99 ) * CAST( + 28 AS SIGNED ) + 4 + + 10 DIV - 87 * - + 14
----
97024

skipif mysql # not compatible
query I rowsort label-9377
SELECT + 35 * ( + 99 ) * CAST ( + 28 AS INTEGER ) + 4 + + 10 / - 87 * - + 14
----
97024

query I rowsort
SELECT - 39 - + + 71
----
-110

onlyif mysql # aggregate syntax: 
query I rowsort label-9379
SELECT - COUNT( * ) * 54 + - 70 + + - 89 AS col0
----
-213

skipif mysql # not compatible
query I rowsort label-9379
SELECT - COUNT ( * ) * 54 + - 70 + + - 89 AS col0
----
-213

query I rowsort
SELECT + - 35 AS col0
----
-35

query I rowsort
SELECT ( 88 ) AS col0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-9382
SELECT + CASE 62 WHEN 23 THEN MAX( - + 59 ) / - 13 ELSE NULL END * 12 + + 63 + 81
----
NULL

skipif mysql # not compatible
query I rowsort label-9382
SELECT + CASE 62 WHEN 23 THEN MAX ( - + 59 ) / - 13 ELSE NULL END * 12 + + 63 + 81
----
NULL

query I rowsort
SELECT DISTINCT 57 - 9 + 38
----
86

query II rowsort
SELECT ALL 47, + 67 col1
----
47
67

query I rowsort
SELECT 37 + - + 75 * + 35 + 16 AS col0
----
-2572

query I rowsort
SELECT DISTINCT 50 * + - 19
----
-950

onlyif mysql # aggregate syntax: 
query I rowsort label-9387
SELECT 17 * - CASE AVG ( - + ( - 22 ) ) WHEN - - 78 THEN COUNT( * ) + + 61 WHEN + 44 THEN + 56 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9387
SELECT 17 * - CASE AVG ( - + ( - 22 ) ) WHEN - - 78 THEN COUNT ( * ) + + 61 WHEN + 44 THEN + 56 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT 52 * + 49 AS col2
----
2548

query II rowsort
SELECT ALL 6 AS col0, - 72 AS col2
----
6
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9390
SELECT 23 + 23 DIV + MAX( - 78 )
----
23

skipif mysql # not compatible
query I rowsort label-9390
SELECT 23 + 23 / + MAX ( - 78 )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-9391
SELECT - MAX( ALL + - 10 )
----
10

skipif mysql # not compatible
query I rowsort label-9391
SELECT - MAX ( ALL + - 10 )
----
10

query I rowsort
SELECT 71 + - NULLIF ( 41, - ( + 89 ) ) AS col1
----
30

query I rowsort
SELECT 78 * + 19 AS col0
----
1482

query I rowsort
SELECT DISTINCT - 88 * 62 AS col2
----
-5456

onlyif mysql # aggregate syntax: 
query I rowsort label-9395
SELECT ALL MAX( + - ( + + 86 ) )
----
-86

skipif mysql # not compatible
query I rowsort label-9395
SELECT ALL MAX ( + - ( + + 86 ) )
----
-86

query I rowsort
SELECT 58 + - ( + 6 ) * 38 AS col0
----
-170

onlyif mysql # aggregate syntax: 
query I rowsort label-9397
SELECT DISTINCT - 61 * + 96 / + ( - CASE - COUNT( * ) WHEN - 66 * 98 * + COUNT( * ) THEN + 92 END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9397
SELECT DISTINCT - 61 * + 96 / + ( - CASE - COUNT ( * ) WHEN - 66 * 98 * + COUNT ( * ) THEN + 92 END ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 88 * + + 37
----
-3256

query I rowsort
SELECT ALL - 70 * - 61
----
4270

query I rowsort
SELECT 22 + - - ( 87 ) + - - 29
----
138

onlyif mysql # aggregate syntax: 
query II rowsort label-9401
SELECT - 6 AS col0, + 44 * 93 - - COUNT( * ) + - COUNT( + + 79 )
----
-6
4092

skipif mysql # not compatible
query II rowsort label-9401
SELECT - 6 AS col0, + 44 * 93 - - COUNT ( * ) + - COUNT ( + + 79 )
----
-6
4092

onlyif mysql # aggregate syntax: 
query I rowsort label-9402
SELECT ALL MAX( + 64 ) * ( 5 ) + - - 11 AS col0
----
331

skipif mysql # not compatible
query I rowsort label-9402
SELECT ALL MAX ( + 64 ) * ( 5 ) + - - 11 AS col0
----
331

onlyif mysql # aggregate syntax: 
query I rowsort label-9403
SELECT + COUNT( * ) * 26 * - 60 AS col1
----
-1560

skipif mysql # not compatible
query I rowsort label-9403
SELECT + COUNT ( * ) * 26 * - 60 AS col1
----
-1560

query I rowsort
SELECT - NULLIF ( 55, - 70 ) * - - 27
----
-1485

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9405
SELECT + + 73 + - - 59 DIV + - NULLIF ( 43, + ( ( - COUNT( * ) ) ) + - 21 + CASE + + ( - 60 ) WHEN + + 60 * - 93 DIV - MIN( 88 ) THEN - 53 ELSE - 22 + - 35 * + 70 END )
----
72

skipif mysql # not compatible
query I rowsort label-9405
SELECT + + 73 + - - 59 / + - NULLIF ( 43, + ( ( - COUNT ( * ) ) ) + - 21 + CASE + + ( - 60 ) WHEN + + 60 * - 93 / - MIN ( 88 ) THEN - 53 ELSE - 22 + - 35 * + 70 END )
----
72

query I rowsort
SELECT + + 62 * + + 62
----
3844

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9407
SELECT DISTINCT + - 57 * COUNT( * ) * 59 DIV + + COUNT( * ) - + + ( 93 ) + + + 94 + 86 + + + 33 * 60 * + 31
----
58104

skipif mysql # not compatible
query I rowsort label-9407
SELECT DISTINCT + - 57 * COUNT ( * ) * 59 / + + COUNT ( * ) - + + ( 93 ) + + + 94 + 86 + + + 33 * 60 * + 31
----
58104

query II rowsort
SELECT DISTINCT + - 29 AS col2, 66 AS col2
----
-29
66

onlyif mysql # DIV for integer division: 
query I rowsort label-9409
SELECT + + 12 DIV + 38 * 88 * + 40
----
0

skipif mysql # not compatible
query I rowsort label-9409
SELECT + + 12 / + 38 * 88 * + 40
----
0

query I rowsort
SELECT ALL 73 * 98 AS col2
----
7154

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query III rowsort label-9411
SELECT + 80 * 72 AS col1, 44 * CAST( NULL AS SIGNED ), + 2 DIV - 21 AS col2
----
5760
NULL
0

skipif mysql # not compatible
query III rowsort label-9411
SELECT + 80 * 72 AS col1, 44 * CAST ( NULL AS INTEGER ), + 2 / - 21 AS col2
----
5760
NULL
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9412
SELECT - MAX( DISTINCT + - 17 )
----
17

skipif mysql # not compatible
query I rowsort label-9412
SELECT - MAX ( DISTINCT + - 17 )
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-9413
SELECT + 50 - - COUNT( * ) + + ( + - 30 ) + + 97 * 78 * 31
----
234567

skipif mysql # not compatible
query I rowsort label-9413
SELECT + 50 - - COUNT ( * ) + + ( + - 30 ) + + 97 * 78 * 31
----
234567

onlyif mysql # aggregate syntax: 
query I rowsort label-9414
SELECT + 56 * + + COUNT( * ) * + 46 AS col0
----
2576

skipif mysql # not compatible
query I rowsort label-9414
SELECT + 56 * + + COUNT ( * ) * + 46 AS col0
----
2576

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9415
SELECT - 73 + + - 85 - + CAST( NULL AS SIGNED ) * + - 92 col2, + NULLIF ( + + 26, + + 7 )
----
NULL
26

skipif mysql # not compatible
query II rowsort label-9415
SELECT - 73 + + - 85 - + CAST ( NULL AS INTEGER ) * + - 92 col2, + NULLIF ( + + 26, + + 7 )
----
NULL
26

onlyif mysql # DIV for integer division: 
query II rowsort label-9416
SELECT + 44 DIV - 3 AS col1, 54 DIV 75 AS col0
----
-14
0

skipif mysql # not compatible
query II rowsort label-9416
SELECT + 44 / - 3 AS col1, 54 / 75 AS col0
----
-14
0

query II rowsort
SELECT ALL 13 AS col1, - 95 * + 0
----
13
0

query I rowsort
SELECT ALL - 1 * 42
----
-42

query I rowsort
SELECT - ( - 37 )
----
37

query I rowsort
SELECT + 72 - 46 AS col1
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-9421
SELECT ALL NULLIF ( + CASE + 37 WHEN NULLIF ( - 29, + 85 / + 54 * + 12 ) THEN NULL ELSE MAX( ALL + - 15 ) END, NULLIF ( + ( - - 32 ), - NULLIF ( + 72, - 24 ) ) * 97 + 51 )
----
-15

skipif mysql # not compatible
query I rowsort label-9421
SELECT ALL NULLIF ( + CASE + 37 WHEN NULLIF ( - 29, + 85 / + 54 * + 12 ) THEN NULL ELSE MAX ( ALL + - 15 ) END, NULLIF ( + ( - - 32 ), - NULLIF ( + 72, - 24 ) ) * 97 + 51 )
----
-15

query I rowsort
SELECT ALL 96 + - CASE - ( - 97 ) WHEN + 53 * - + 44 * - 4 - - 10 THEN + - 5 / - 9 + - 22 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9423
SELECT - CASE - 53 WHEN - 4 THEN NULL WHEN + + 27 THEN 82 * CAST( - 73 AS DECIMAL ) * 51 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9423
SELECT - CASE - 53 WHEN - 4 THEN NULL WHEN + + 27 THEN 82 * CAST ( - 73 AS REAL ) * 51 END
----
NULL

query II rowsort
SELECT 12 col2, 87
----
12
87

query I rowsort
SELECT + 54 * - 59 col1
----
-3186

query I rowsort
SELECT - + 20 - - 58
----
38

query I rowsort
SELECT - ( - ( - - 90 ) ) AS col1
----
90

query II rowsort
SELECT DISTINCT - 46 + 16 AS col0, 66 AS col2
----
-30
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9429
SELECT - ( - - COUNT( ALL - ( - - 50 ) ) ) * + 73 AS col2
----
-73

skipif mysql # not compatible
query I rowsort label-9429
SELECT - ( - - COUNT ( ALL - ( - - 50 ) ) ) * + 73 AS col2
----
-73

query I rowsort
SELECT ALL 27 + + - 6 col2
----
21

query II rowsort
SELECT - 45, - 62 + + + 76 col0
----
-45
14

onlyif mysql # aggregate syntax: 
query II rowsort label-9432
SELECT ALL + - 68 * + NULLIF ( - - 50, - - COUNT( * ) - COUNT( * ) + - - 56 ) AS col0, COUNT( * ) col2
----
-3400
1

skipif mysql # not compatible
query II rowsort label-9432
SELECT ALL + - 68 * + NULLIF ( - - 50, - - COUNT ( * ) - COUNT ( * ) + - - 56 ) AS col0, COUNT ( * ) col2
----
-3400
1

query I rowsort
SELECT ( - + 6 ) AS col2
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9434
SELECT ALL - + COALESCE ( - 21, - CAST( NULL AS SIGNED ) * + - 95 ) * + + 36 * 67
----
50652

skipif mysql # not compatible
query I rowsort label-9434
SELECT ALL - + COALESCE ( - 21, - CAST ( NULL AS INTEGER ) * + - 95 ) * + + 36 * 67
----
50652

onlyif mysql # DIV for integer division: 
query I rowsort label-9435
SELECT - 68 DIV + 42 + + + 62 * 56 * - 99 * 99
----
-34029073

skipif mysql # not compatible
query I rowsort label-9435
SELECT - 68 / + 42 + + + 62 * 56 * - 99 * 99
----
-34029073

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9436
SELECT - - 2 DIV - 10 * + NULLIF ( - COUNT( * ), + + COUNT( * ) * + - 20 ) + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-9436
SELECT - - 2 / - 10 * + NULLIF ( - COUNT ( * ), + + COUNT ( * ) * + - 20 ) + + COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9437
SELECT - COUNT( + ( 17 ) ) * - 43
----
43

skipif mysql # not compatible
query I rowsort label-9437
SELECT - COUNT ( + ( 17 ) ) * - 43
----
43

query I rowsort
SELECT ALL - - 72 * - 34 + + 22 AS col2
----
-2426

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9439
SELECT DISTINCT + 94 DIV + 88 - - - COUNT( * ) * + - 78 * + + 12 + - + COUNT( * ) + - + 85 * + ( + - 11 ) AS col2
----
1871

skipif mysql # not compatible
query I rowsort label-9439
SELECT DISTINCT + 94 / + 88 - - - COUNT ( * ) * + - 78 * + + 12 + - + COUNT ( * ) + - + 85 * + ( + - 11 ) AS col2
----
1871

onlyif mysql # aggregate syntax: 
query I rowsort label-9440
SELECT ALL - 11 * + COUNT( * ) AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-9440
SELECT ALL - 11 * + COUNT ( * ) AS col1
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9441
SELECT - + COUNT( * ) * CAST( + 49 AS SIGNED ) + + 1 AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-9441
SELECT - + COUNT ( * ) * CAST ( + 49 AS INTEGER ) + + 1 AS col1
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9442
SELECT 67 * - + COUNT( * ) * - + 2 + 94 - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9442
SELECT 67 * - + COUNT ( * ) * - + 2 + 94 - + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT ALL + 98, 41 * + - 7 AS col1
----
98
-287

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9444
SELECT - - 50 * - 50 + + 77 + + SUM( 51 ) DIV + + 85 AS col2
----
-2423

skipif mysql # not compatible
query I rowsort label-9444
SELECT - - 50 * - 50 + + 77 + + SUM ( 51 ) / + + 85 AS col2
----
-2423

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9445
SELECT ALL + CAST( + - ( COUNT( * ) ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-9445
SELECT ALL + CAST ( + - ( COUNT ( * ) ) AS INTEGER )
----
-1

query I rowsort
SELECT - 74 + - 0 + + 40
----
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9447
SELECT 15 * + - CAST( NULL AS SIGNED ) + + ( - 80 ) * + COALESCE ( - COUNT( * ), + CAST( NULL AS SIGNED ), - + 92 * + - AVG ( - 4 ) * + + 49 + + ( - 13 ) + + 77 + 89 * 97 + - 82 * 25 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9447
SELECT 15 * + - CAST ( NULL AS INTEGER ) + + ( - 80 ) * + COALESCE ( - COUNT ( * ), + CAST ( NULL AS INTEGER ), - + 92 * + - AVG ( - 4 ) * + + 49 + + ( - 13 ) + + 77 + 89 * 97 + - 82 * 25 ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT 97 * + 16
----
1552

query I rowsort
SELECT CASE + AVG ( + - 21 ) WHEN - 51 + - 60 - + 26 THEN - 97 * + 67 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9450
SELECT ALL + 6 * - COUNT( 44 ) AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-9450
SELECT ALL + 6 * - COUNT ( 44 ) AS col1
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-9451
SELECT + 96 + + NULLIF ( 10, + - COUNT( * ) )
----
106

skipif mysql # not compatible
query I rowsort label-9451
SELECT + 96 + + NULLIF ( 10, + - COUNT ( * ) )
----
106

query I rowsort
SELECT DISTINCT + 88 * 58 col0
----
5104

query I rowsort
SELECT DISTINCT 73 * - - 55 * 62 + - 5 + - 96 * 12 AS col0
----
247773

onlyif mysql # aggregate syntax: 
query I rowsort label-9454
SELECT ALL MIN( ALL + 51 )
----
51

skipif mysql # not compatible
query I rowsort label-9454
SELECT ALL MIN ( ALL + 51 )
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9455
SELECT + NULLIF ( + 12, 24 ) * + + COUNT( * )
----
12

skipif mysql # not compatible
query I rowsort label-9455
SELECT + NULLIF ( + 12, 24 ) * + + COUNT ( * )
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-9456
SELECT SUM( ALL + 84 ), 26 * 43 AS col1
----
84
1118

skipif mysql # not compatible
query II rowsort label-9456
SELECT SUM ( ALL + 84 ), 26 * 43 AS col1
----
84
1118

onlyif mysql # DIV for integer division: 
query I rowsort label-9457
SELECT ALL 48 DIV 37 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9457
SELECT ALL 48 / 37 AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9458
SELECT + 60 DIV - - 87
----
0

skipif mysql # not compatible
query I rowsort label-9458
SELECT + 60 / - - 87
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9459
SELECT + 19 + COUNT( * ) + 81 + + - 92 - - 94 * + COUNT( * ) AS col1
----
103

skipif mysql # not compatible
query I rowsort label-9459
SELECT + 19 + COUNT ( * ) + 81 + + - 92 - - 94 * + COUNT ( * ) AS col1
----
103

query I rowsort
SELECT ALL 42 + - 53
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-9461
SELECT + 33 * - SUM( + 51 )
----
-1683

skipif mysql # not compatible
query I rowsort label-9461
SELECT + 33 * - SUM ( + 51 )
----
-1683

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9462
SELECT ALL 3 DIV - COUNT( * ) AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-9462
SELECT ALL 3 / - COUNT ( * ) AS col2
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9463
SELECT DISTINCT CAST( + - NULLIF ( - MIN( DISTINCT CAST( NULL AS SIGNED ) ), 26 * - - 3 ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9463
SELECT DISTINCT CAST ( + - NULLIF ( - MIN ( DISTINCT CAST ( NULL AS INTEGER ) ), 26 * - - 3 ) AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 67 + - 47 AS col1
----
-114

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9465
SELECT COUNT( * ) + + 96 DIV - COALESCE ( CAST( - SUM( DISTINCT - 3 ) AS SIGNED ), - 16 )
----
-31

skipif mysql # not compatible
query I rowsort label-9465
SELECT COUNT ( * ) + + 96 / - COALESCE ( CAST ( - SUM ( DISTINCT - 3 ) AS INTEGER ), - 16 )
----
-31

query I rowsort
SELECT - + ( + 10 ) AS col0
----
-10

query I rowsort
SELECT 62 + + + ( - 35 ) * + 59
----
-2003

onlyif mysql # DIV for integer division: 
query I rowsort label-9468
SELECT - 92 + + + ( + + 41 ) + - 14 DIV 99 AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-9468
SELECT - 92 + + + ( + + 41 ) + - 14 / 99 AS col2
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9469
SELECT ALL CAST( - + ( + 19 ) AS SIGNED ) AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-9469
SELECT ALL CAST ( - + ( + 19 ) AS INTEGER ) AS col2
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9470
SELECT 54 + 62 + - 71 + 44 + 33 * NULLIF ( + - 72, + 66 ) + + + 24 * CASE - ( + + 23 ) WHEN + CAST( + 19 AS SIGNED ) THEN + + 74 / 48 END * - - 39 * + COUNT( * ) * - COUNT( * ) - - 64
----
NULL

skipif mysql # not compatible
query I rowsort label-9470
SELECT 54 + 62 + - 71 + 44 + 33 * NULLIF ( + - 72, + 66 ) + + + 24 * CASE - ( + + 23 ) WHEN + CAST ( + 19 AS INTEGER ) THEN + + 74 / 48 END * - - 39 * + COUNT ( * ) * - COUNT ( * ) - - 64
----
NULL

query I rowsort
SELECT DISTINCT - + 84
----
-84

query I rowsort
SELECT DISTINCT + 98 - - 22
----
120

query I rowsort
SELECT DISTINCT + 18 * + 85 + - 8
----
1522

query I rowsort
SELECT DISTINCT + ( + - 13 ) * 39
----
-507

query II rowsort
SELECT 56 * - 35 * + 38 AS col1, 6 AS col2
----
-74480
6

query II rowsort
SELECT 99 AS col1, + ( 86 )
----
99
86

onlyif mysql # aggregate syntax: 
query I rowsort label-9477
SELECT + 7 * - 83 + COUNT( * ) AS col0
----
-580

skipif mysql # not compatible
query I rowsort label-9477
SELECT + 7 * - 83 + COUNT ( * ) AS col0
----
-580

query I rowsort
SELECT ALL + ( + ( 94 ) ) * 57 * 7
----
37506

query I rowsort
SELECT 72 + + 11
----
83

query I rowsort
SELECT 43 * - 98 AS col1
----
-4214

onlyif mysql # DIV for integer division: 
query I rowsort label-9481
SELECT 46 DIV - 66 * - - COALESCE ( 75, - 97 )
----
0

skipif mysql # not compatible
query I rowsort label-9481
SELECT 46 / - 66 * - - COALESCE ( 75, - 97 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9482
SELECT DISTINCT + ( - COUNT( * ) ) * + + 16 + - 69 + SUM( - + 74 ) + + - 31
----
-190

skipif mysql # not compatible
query I rowsort label-9482
SELECT DISTINCT + ( - COUNT ( * ) ) * + + 16 + - 69 + SUM ( - + 74 ) + + - 31
----
-190

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9483
SELECT ALL + CAST( NULL AS SIGNED ) + - 76
----
NULL

skipif mysql # not compatible
query I rowsort label-9483
SELECT ALL + CAST ( NULL AS INTEGER ) + - 76
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9484
SELECT DISTINCT + 2 + - 86 + + - ( CASE - 64 WHEN - COUNT( * ) THEN 18 WHEN 19 THEN + 80 END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9484
SELECT DISTINCT + 2 + - 86 + + - ( CASE - 64 WHEN - COUNT ( * ) THEN 18 WHEN 19 THEN + 80 END ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9485
SELECT ALL - 47 + - COALESCE ( - 40, - + 94 DIV 54 + + 87 DIV + 41 DIV + + 93 * - 90 ) AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-9485
SELECT ALL - 47 + - COALESCE ( - 40, - + 94 / 54 + + 87 / + 41 / + + 93 * - 90 ) AS col2
----
-7

query I rowsort
SELECT 58 * - 48
----
-2784

query I rowsort
SELECT 3 + 84 AS col2
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9488
SELECT NULLIF ( + + CAST( NULL AS SIGNED ), + COUNT( * ) * - + ( 92 ) ) * + 15, + 70 AS col2
----
NULL
70

skipif mysql # not compatible
query II rowsort label-9488
SELECT NULLIF ( + + CAST ( NULL AS INTEGER ), + COUNT ( * ) * - + ( 92 ) ) * + 15, + 70 AS col2
----
NULL
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9489
SELECT ALL 1 + - - ( - 55 ) + - ( + - 94 ) * + 61 + + 6 * + 19 + 49 + - NULLIF ( - COALESCE ( 98, + - 67, 70 + - + NULLIF ( + 95, - 35 ) ), + ( + + COUNT( * ) ) ) * - 40 * + CAST( 65 AS SIGNED ) + - + 16 DIV COUNT( * )
----
-248973

skipif mysql # not compatible
query I rowsort label-9489
SELECT ALL 1 + - - ( - 55 ) + - ( + - 94 ) * + 61 + + 6 * + 19 + 49 + - NULLIF ( - COALESCE ( 98, + - 67, 70 + - + NULLIF ( + 95, - 35 ) ), + ( + + COUNT ( * ) ) ) * - 40 * + CAST ( 65 AS INTEGER ) + - + 16 / COUNT ( * )
----
-248973

query II rowsort
SELECT - 33 AS col1, 92
----
-33
92

query I rowsort
SELECT DISTINCT + 57 * 93
----
5301

query I rowsort
SELECT - 31 - + + 53 AS col0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-9493
SELECT DISTINCT COUNT( + 20 )
----
1

skipif mysql # not compatible
query I rowsort label-9493
SELECT DISTINCT COUNT ( + 20 )
----
1

query I rowsort
SELECT ALL + + 60 + - - 38 + + 42 col2
----
140

query I rowsort
SELECT ALL - - 97 + - 85 AS col0
----
12

query I rowsort
SELECT DISTINCT - 63 - + 23 col1
----
-86

query I rowsort
SELECT + 97 * - - 51 col1
----
4947

onlyif mysql # DIV for integer division: 
query I rowsort label-9498
SELECT ( 59 ) * 72 DIV + - 6 + - 41
----
-749

skipif mysql # not compatible
query I rowsort label-9498
SELECT ( 59 ) * 72 / + - 6 + - 41
----
-749

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9499
SELECT SUM( - 60 ) DIV + - MAX( DISTINCT ( - 56 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-9499
SELECT SUM ( - 60 ) / + - MAX ( DISTINCT ( - 56 ) )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9500
SELECT DISTINCT - 13 DIV + 83 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9500
SELECT DISTINCT - 13 / + 83 AS col2
----
0

query I rowsort
SELECT 56 - - + 3 + + 37 AS col2
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-9502
SELECT DISTINCT - 69 DIV + - 35 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9502
SELECT DISTINCT - 69 / + - 35 AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9503
SELECT DISTINCT 21 DIV - + COUNT( * ) AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-9503
SELECT DISTINCT 21 / - + COUNT ( * ) AS col2
----
-21

query I rowsort
SELECT + 13 * - 13 + 97 * - + 99 - + NULLIF ( - - 76, - 38 ) AS col2
----
-9848

query I rowsort
SELECT + ( - CASE - 8 WHEN + - 13 * + 42 THEN NULL ELSE - 46 END ) * + + 14
----
644

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9506
SELECT - - MIN( + - CAST( + - CASE - 11 WHEN ( + 94 ) * + 50 THEN 99 + 47 * + - 49 / + 28 ELSE - - 20 + + 6 END AS SIGNED ) ) * - - 55 + CASE + - COUNT( + - 23 ) WHEN + 69 THEN 21 * COUNT( * ) ELSE NULL END + + MAX( DISTINCT 50 ) - + 41 * ( 96 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9506
SELECT - - MIN ( + - CAST ( + - CASE - 11 WHEN ( + 94 ) * + 50 THEN 99 + 47 * + - 49 / + 28 ELSE - - 20 + + 6 END AS INTEGER ) ) * - - 55 + CASE + - COUNT ( + - 23 ) WHEN + 69 THEN 21 * COUNT ( * ) ELSE NULL END + + MAX ( DISTINCT 50 ) - + 41 * ( 96 )
----
NULL

query I rowsort
SELECT ( - 14 ) + 94
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9508
SELECT DISTINCT CAST( + 97 AS SIGNED ) * 67 - 74 AS col1, + 83 AS col1
----
6425
83

skipif mysql # not compatible
query II rowsort label-9508
SELECT DISTINCT CAST ( + 97 AS INTEGER ) * 67 - 74 AS col1, + 83 AS col1
----
6425
83

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9509
SELECT ALL - 42 * 81 AS col2, + 6 / - - 59 / + CAST( NULL AS SIGNED )
----
-3402
NULL

skipif mysql # not compatible
query II rowsort label-9509
SELECT ALL - 42 * 81 AS col2, + 6 / - - 59 / + CAST ( NULL AS INTEGER )
----
-3402
NULL

query I rowsort
SELECT ALL + 88 + - + 47 * - 5 AS col0
----
323

query I rowsort
SELECT ALL 79 + + 98 AS col0
----
177

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9512
SELECT DISTINCT 38 DIV + 48 * + COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9512
SELECT DISTINCT 38 / + 48 * + COUNT ( * ) AS col2
----
0

query I rowsort
SELECT ALL - 43 * - 39 * - 66 AS col0
----
-110682

onlyif mysql # DIV for integer division: 
query I rowsort label-9514
SELECT 58 DIV - 71 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9514
SELECT 58 / - 71 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9515
SELECT + 21 * - COALESCE ( MIN( DISTINCT + + 77 ), - - 73 ) + + 12 * + CAST( NULL AS DECIMAL ) + + 3 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9515
SELECT + 21 * - COALESCE ( MIN ( DISTINCT + + 77 ), - - 73 ) + + 12 * + CAST ( NULL AS REAL ) + + 3 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9516
SELECT 71 DIV - 6 AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-9516
SELECT 71 / - 6 AS col2
----
-11

query I rowsort
SELECT 52 * ( - ( - - 4 ) ) + - + 15
----
-223

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9518
SELECT 77 * MAX( ALL 21 ) DIV ( + 63 ), 44 * - 98 - + 52 AS col1
----
25
-4364

skipif mysql # not compatible
query II rowsort label-9518
SELECT 77 * MAX ( ALL 21 ) / ( + 63 ), 44 * - 98 - + 52 AS col1
----
25
-4364

onlyif mysql # aggregate syntax: 
query I rowsort label-9519
SELECT ALL 37 * - ( + - ( - COUNT( * ) ) )
----
-37

skipif mysql # not compatible
query I rowsort label-9519
SELECT ALL 37 * - ( + - ( - COUNT ( * ) ) )
----
-37

query I rowsort
SELECT ALL + 53 + - 63
----
-10

query I rowsort
SELECT ALL 13 * + ( + 26 )
----
338

query I rowsort
SELECT DISTINCT + 71 - 12 AS col1
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9523
SELECT ALL + CAST( 32 AS SIGNED ) - - - MIN( - ( + 40 ) )
----
72

skipif mysql # not compatible
query I rowsort label-9523
SELECT ALL + CAST ( 32 AS INTEGER ) - - - MIN ( - ( + 40 ) )
----
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9524
SELECT DISTINCT ( COALESCE ( - + 43, + 83 ) ), 29 DIV + 92 * + - 90 + - - COUNT( * ) + + + 42 AS col1
----
-43
43

skipif mysql # not compatible
query II rowsort label-9524
SELECT DISTINCT ( COALESCE ( - + 43, + 83 ) ), 29 / + 92 * + - 90 + - - COUNT ( * ) + + + 42 AS col1
----
-43
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9525
SELECT + + 46 * - MIN( DISTINCT - - 27 ) + CAST( NULL AS SIGNED ) + + + 0 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9525
SELECT + + 46 * - MIN ( DISTINCT - - 27 ) + CAST ( NULL AS INTEGER ) + + + 0 AS col0
----
NULL

query I rowsort
SELECT - - 70 + + 85
----
155

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9527
SELECT - CASE - 26 WHEN + 47 THEN + 66 ELSE + 87 DIV NULLIF ( + 67, + + AVG ( + CAST( NULL AS SIGNED ) ) * - - 1 + 57 * - - 17 DIV CASE + COUNT( * ) WHEN - 83 + - + 10 + + - 42 + 9 + - + 34 THEN - - 31 * - ( + ( CAST( NULL AS SIGNED ) ) ) + ( + + CAST( NULL AS SIGNED ) ) + - 88 * + 72 * - - 6 + - 38 DIV + 55 WHEN - 44 THEN NULL ELSE NULL END ) + 62 END
----
-63

skipif mysql # not compatible
query I rowsort label-9527
SELECT - CASE - 26 WHEN + 47 THEN + 66 ELSE + 87 / NULLIF ( + 67, + + AVG ( + CAST ( NULL AS INTEGER ) ) * - - 1 + 57 * - - 17 / CASE + COUNT ( * ) WHEN - 83 + - + 10 + + - 42 + 9 + - + 34 THEN - - 31 * - ( + ( CAST ( NULL AS INTEGER ) ) ) + ( + + CAST ( NULL AS INTEGER ) ) + - 88 * + 72 * - - 6 + - 38 / + 55 WHEN - 44 THEN NULL ELSE NULL END ) + 62 END
----
-63

query I rowsort
SELECT ALL - 84 * - 6 * 80 AS col0
----
40320

onlyif mysql # aggregate syntax: 
query I rowsort label-9529
SELECT - 27 + + + 66 + - 38 - - 99 * - - 94 * - COUNT( * ) AS col1
----
-9305

skipif mysql # not compatible
query I rowsort label-9529
SELECT - 27 + + + 66 + - 38 - - 99 * - - 94 * - COUNT ( * ) AS col1
----
-9305

query I rowsort
SELECT ALL - + 65 * - + 62
----
4030

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9531
SELECT - 40 + + NULLIF ( 10, + CASE - + 85 WHEN + 66 * 80 + - 60 THEN + + 28 * - CASE - 3 WHEN + + 18 + - 47 THEN NULL WHEN COUNT( * ) * + - 82 + + 37 THEN - ( + 45 ) END + + 5 - - 53 + - NULLIF ( + 56, - - 56 * + 87 + + 4 * + CAST( + 45 AS SIGNED ) * COUNT( * ) + - 57 ) + + 12 END + - 67 * + COUNT( * ) ) + + 96 AS col1
----
66

skipif mysql # not compatible
query I rowsort label-9531
SELECT - 40 + + NULLIF ( 10, + CASE - + 85 WHEN + 66 * 80 + - 60 THEN + + 28 * - CASE - 3 WHEN + + 18 + - 47 THEN NULL WHEN COUNT ( * ) * + - 82 + + 37 THEN - ( + 45 ) END + + 5 - - 53 + - NULLIF ( + 56, - - 56 * + 87 + + 4 * + CAST ( + 45 AS INTEGER ) * COUNT ( * ) + - 57 ) + + 12 END + - 67 * + COUNT ( * ) ) + + 96 AS col1
----
66

query I rowsort
SELECT ALL - 23 * 53 - 99 AS col0
----
-1318

onlyif mysql # aggregate syntax: 
query I rowsort label-9533
SELECT + 54 + - COUNT( * ) * + + CASE - ( + 68 ) WHEN + + 18 THEN + COUNT( * ) * 56 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9533
SELECT + 54 + - COUNT ( * ) * + + CASE - ( + 68 ) WHEN + + 18 THEN + COUNT ( * ) * 56 END col1
----
NULL

query I rowsort
SELECT ALL - + 90 * + 63 col0
----
-5670

onlyif mysql # DIV for integer division: 
query I rowsort label-9535
SELECT - 98 DIV + 35 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-9535
SELECT - 98 / + 35 AS col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9536
SELECT DISTINCT + NULLIF ( - - 3, - COUNT( * ) * + - 53 )
----
3

skipif mysql # not compatible
query I rowsort label-9536
SELECT DISTINCT + NULLIF ( - - 3, - COUNT ( * ) * + - 53 )
----
3

query II rowsort
SELECT - - 19 * - + 68, - 32 * + 79 AS col0
----
-1292
-2528

query I rowsort
SELECT + + 13 + + + COALESCE ( - 53, + - 85, + - 57 ) + + 78
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-9539
SELECT + + COUNT( * ) * + 22 * - 84 AS col1
----
-1848

skipif mysql # not compatible
query I rowsort label-9539
SELECT + + COUNT ( * ) * + 22 * - 84 AS col1
----
-1848

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9540
SELECT ALL - 5 * + CAST( NULL AS SIGNED ) + + 51 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9540
SELECT ALL - 5 * + CAST ( NULL AS INTEGER ) + + 51 AS col1
----
NULL

query I rowsort
SELECT DISTINCT 33 * - - 97 AS col0
----
3201

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9542
SELECT ALL AVG ( ALL + - 85 ) * 88 * - COUNT( * ) * - 4 + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9542
SELECT ALL AVG ( ALL + - 85 ) * 88 * - COUNT ( * ) * - 4 + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT + ( + 46 ) * + + 65 col1
----
2990

query I rowsort
SELECT DISTINCT 97 * + 2 * 48
----
9312

onlyif mysql # aggregate syntax: 
query I rowsort label-9545
SELECT + MIN( DISTINCT + + 24 )
----
24

skipif mysql # not compatible
query I rowsort label-9545
SELECT + MIN ( DISTINCT + + 24 )
----
24

query I rowsort
SELECT + ( 83 ) AS col2
----
83

query I rowsort
SELECT ALL 32 * - 3
----
-96

query I rowsort
SELECT + 38 * - 6 * - - 77
----
-17556

query I rowsort
SELECT + 43 * + - 68
----
-2924

query I rowsort
SELECT CASE - 88 WHEN + + 46 THEN + 9 WHEN + + 29 - 77 THEN NULL ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9551
SELECT + CASE 74 WHEN - - 32 THEN - ( - 10 ) END col1, CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9551
SELECT + CASE 74 WHEN - - 32 THEN - ( - 10 ) END col1, CAST ( NULL AS INTEGER )
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9552
SELECT COALESCE ( - COUNT( DISTINCT - 55 ), + - 37 )
----
-1

skipif mysql # not compatible
query I rowsort label-9552
SELECT COALESCE ( - COUNT ( DISTINCT - 55 ), + - 37 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9553
SELECT ALL 79 * - 60 + - SUM( DISTINCT ( ( - - 87 ) ) ) col1
----
-4827

skipif mysql # not compatible
query I rowsort label-9553
SELECT ALL 79 * - 60 + - SUM ( DISTINCT ( ( - - 87 ) ) ) col1
----
-4827

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9554
SELECT 84 * + + CAST( NULL AS SIGNED ) - 48 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9554
SELECT 84 * + + CAST ( NULL AS INTEGER ) - 48 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9555
SELECT ALL - 12 DIV + 59
----
0

skipif mysql # not compatible
query I rowsort label-9555
SELECT ALL - 12 / + 59
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9556
SELECT + CAST( - + COUNT( * ) AS SIGNED ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-9556
SELECT + CAST ( - + COUNT ( * ) AS INTEGER ) col2
----
-1

query I rowsort
SELECT + 72 * - - 58 * + - 83 AS col2
----
-346608

query I rowsort
SELECT - 77 * - 91 AS col0
----
7007

query I rowsort
SELECT + 41 * - - 33 + - 70 AS col2
----
1283

onlyif mysql # aggregate syntax: 
query I rowsort label-9560
SELECT + + MAX( + 93 ) col1
----
93

skipif mysql # not compatible
query I rowsort label-9560
SELECT + + MAX ( + 93 ) col1
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-9561
SELECT ALL + NULLIF ( + COUNT( * ), - - 63 )
----
1

skipif mysql # not compatible
query I rowsort label-9561
SELECT ALL + NULLIF ( + COUNT ( * ), - - 63 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9562
SELECT + 79 + NULLIF ( + 4, COALESCE ( - - 77, - + 67 * - 32 + - 24 + - COUNT( * ), - - 27 * - 17 * + - 9 ) ) AS col1
----
83

skipif mysql # not compatible
query I rowsort label-9562
SELECT + 79 + NULLIF ( + 4, COALESCE ( - - 77, - + 67 * - 32 + - 24 + - COUNT ( * ), - - 27 * - 17 * + - 9 ) ) AS col1
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9563
SELECT + 1 * + 68 + + 45 - - 79 - - 68 + COUNT( * ) * + + 27 * CAST( NULL AS SIGNED ) * 17 - 11 - + + 8
----
NULL

skipif mysql # not compatible
query I rowsort label-9563
SELECT + 1 * + 68 + + 45 - - 79 - - 68 + COUNT ( * ) * + + 27 * CAST ( NULL AS INTEGER ) * 17 - 11 - + + 8
----
NULL

query I rowsort
SELECT DISTINCT - 86 * + 5 AS col0
----
-430

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9565
SELECT - - 75 DIV SUM( + 90 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9565
SELECT - - 75 / SUM ( + 90 ) AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9566
SELECT ALL + + COUNT( * ) DIV - 18 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9566
SELECT ALL + + COUNT ( * ) / - 18 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9567
SELECT - COUNT( * ) * - 19 AS col1
----
19

skipif mysql # not compatible
query I rowsort label-9567
SELECT - COUNT ( * ) * - 19 AS col1
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9568
SELECT DISTINCT + COUNT( * ) DIV - 95 + + + 86
----
86

skipif mysql # not compatible
query I rowsort label-9568
SELECT DISTINCT + COUNT ( * ) / - 95 + + + 86
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-9569
SELECT DISTINCT + SUM( ALL 7 ) AS col1
----
7

skipif mysql # not compatible
query I rowsort label-9569
SELECT DISTINCT + SUM ( ALL 7 ) AS col1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9570
SELECT ALL NULLIF ( - COUNT( * ), + + 27 )
----
-1

skipif mysql # not compatible
query I rowsort label-9570
SELECT ALL NULLIF ( - COUNT ( * ), + + 27 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9571
SELECT - + 23 * 20 * + COUNT( * ) + - COUNT( * ) + - 37 AS col2
----
-498

skipif mysql # not compatible
query I rowsort label-9571
SELECT - + 23 * 20 * + COUNT ( * ) + - COUNT ( * ) + - 37 AS col2
----
-498

onlyif mysql # aggregate syntax: 
query I rowsort label-9572
SELECT - COALESCE ( + + 96, + - COUNT( * ) * + + ( - COUNT( * ) ) + - 37 + + 6 ) col0
----
-96

skipif mysql # not compatible
query I rowsort label-9572
SELECT - COALESCE ( + + 96, + - COUNT ( * ) * + + ( - COUNT ( * ) ) + - 37 + + 6 ) col0
----
-96

query I rowsort
SELECT ALL + NULLIF ( + 70, + - 76 ) + - 27 col1
----
43

onlyif mysql # DIV for integer division: 
query I rowsort label-9574
SELECT ALL - - 46 + + 46 DIV - 53
----
46

skipif mysql # not compatible
query I rowsort label-9574
SELECT ALL - - 46 + + 46 / - 53
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9575
SELECT ALL 92 + COUNT( * ) - 14
----
79

skipif mysql # not compatible
query I rowsort label-9575
SELECT ALL 92 + COUNT ( * ) - 14
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-9576
SELECT - SUM( DISTINCT + 78 )
----
-78

skipif mysql # not compatible
query I rowsort label-9576
SELECT - SUM ( DISTINCT + 78 )
----
-78

query I rowsort
SELECT ALL + 15 + - - 68
----
83

query I rowsort
SELECT ALL - 61 * + ( - 96 )
----
5856

query I rowsort
SELECT - 86 + 58
----
-28

query I rowsort
SELECT - COALESCE ( + - 43, + + 17, + 55 * - 74 ) AS col0
----
43

onlyif mysql # aggregate syntax: 
query II rowsort label-9581
SELECT DISTINCT + COUNT( * ) AS col0, 61 AS col0
----
1
61

skipif mysql # not compatible
query II rowsort label-9581
SELECT DISTINCT + COUNT ( * ) AS col0, 61 AS col0
----
1
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9582
SELECT + MIN( ( + - 59 ) ) * - CASE CAST( NULL AS SIGNED ) WHEN + + 18 * - 55 + - COUNT( * ) * - 86 THEN 79 + - 68 * 83 WHEN - 36 THEN NULL ELSE - + 18 END + - 5 AS col0
----
-1067

skipif mysql # not compatible
query I rowsort label-9582
SELECT + MIN ( ( + - 59 ) ) * - CASE CAST ( NULL AS INTEGER ) WHEN + + 18 * - 55 + - COUNT ( * ) * - 86 THEN 79 + - 68 * 83 WHEN - 36 THEN NULL ELSE - + 18 END + - 5 AS col0
----
-1067

query I rowsort
SELECT ALL + NULLIF ( + 71, + + 1 / 14 * + 36 ) AS col1
----
71

onlyif mysql # DIV for integer division: 
query II rowsort label-9584
SELECT + 88 * - 9 - - 82 DIV + - 31 AS col2, 95
----
-794
95

skipif mysql # not compatible
query II rowsort label-9584
SELECT + 88 * - 9 - - 82 / + - 31 AS col2, 95
----
-794
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9585
SELECT - 14 + - ( - 52 ) + 96 + + NULLIF ( - 13, + CAST( NULL AS SIGNED ) * - - 70 ) + - + 54
----
67

skipif mysql # not compatible
query I rowsort label-9585
SELECT - 14 + - ( - 52 ) + 96 + + NULLIF ( - 13, + CAST ( NULL AS INTEGER ) * - - 70 ) + - + 54
----
67

query I rowsort
SELECT + 20 * + + 44 AS col2
----
880

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9587
SELECT ALL 6 DIV + ( + CAST( 93 AS SIGNED ) ) - - - COUNT( * ) + - - 95
----
94

skipif mysql # not compatible
query I rowsort label-9587
SELECT ALL 6 / + ( + CAST ( 93 AS INTEGER ) ) - - - COUNT ( * ) + - - 95
----
94

query II rowsort
SELECT ALL + 13, 30 * 55 col0
----
13
1650

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9589
SELECT ALL - COALESCE ( + 73, + 49, + ( + - CAST( NULL AS SIGNED ) ) ) col2
----
-73

skipif mysql # not compatible
query I rowsort label-9589
SELECT ALL - COALESCE ( + 73, + 49, + ( + - CAST ( NULL AS INTEGER ) ) ) col2
----
-73

query I rowsort
SELECT DISTINCT - 71 - - 21
----
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9591
SELECT ALL 78 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9591
SELECT ALL 78 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9592
SELECT ALL - MIN( 30 ) - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9592
SELECT ALL - MIN ( 30 ) - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 98 * 32 AS col1
----
3136

query II rowsort
SELECT 39 col1, 22
----
39
22

onlyif mysql # aggregate syntax: 
query I rowsort label-9595
SELECT ALL 42 * - MAX( DISTINCT - - 20 ) * + - 45
----
37800

skipif mysql # not compatible
query I rowsort label-9595
SELECT ALL 42 * - MAX ( DISTINCT - - 20 ) * + - 45
----
37800

query II rowsort
SELECT 47, - 5 col2
----
47
-5

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9597
SELECT 22 * + SUM( - CAST( NULL AS DECIMAL ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9597
SELECT 22 * + SUM ( - CAST ( NULL AS REAL ) ) AS col0
----
NULL

query II rowsort
SELECT 53, - 95 col1
----
53
-95

query II rowsort
SELECT + 84 AS col2, + 63 - - - 80 + - 67 - + 77 * + ( + 48 ) - + - 13
----
84
-3767

query I rowsort
SELECT - 86 * + - 73
----
6278

query I rowsort
SELECT ALL - + ( + - 42 )
----
42

onlyif mysql # aggregate syntax: 
query II rowsort label-9602
SELECT DISTINCT - ( + COUNT( + - ( 60 ) ) ) AS col1, 49 * 0 + - + 63 + + + 26 + MAX( DISTINCT + 42 ) AS col2
----
-1
5

skipif mysql # not compatible
query II rowsort label-9602
SELECT DISTINCT - ( + COUNT ( + - ( 60 ) ) ) AS col1, 49 * 0 + - + 63 + + + 26 + MAX ( DISTINCT + 42 ) AS col2
----
-1
5

query II rowsort
SELECT ALL - 64, - 87 AS col1
----
-64
-87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9604
SELECT ALL - COUNT( * ) DIV + 23 + + 78 AS col0
----
78

skipif mysql # not compatible
query I rowsort label-9604
SELECT ALL - COUNT ( * ) / + 23 + + 78 AS col0
----
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9605
SELECT ALL + 67 AS col1, COUNT( * ) * - 91 DIV - 16 AS col1
----
67
5

skipif mysql # not compatible
query II rowsort label-9605
SELECT ALL + 67 AS col1, COUNT ( * ) * - 91 / - 16 AS col1
----
67
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9606
SELECT CASE + + COALESCE ( + 24, - - 70 / + ( - 80 ) ) WHEN + 78 THEN NULL ELSE - 77 * + COUNT( * ) END * - + 62 + - + COUNT( * ) col0
----
4773

skipif mysql # not compatible
query I rowsort label-9606
SELECT CASE + + COALESCE ( + 24, - - 70 / + ( - 80 ) ) WHEN + 78 THEN NULL ELSE - 77 * + COUNT ( * ) END * - + 62 + - + COUNT ( * ) col0
----
4773

onlyif mysql # aggregate syntax: 
query I rowsort label-9607
SELECT CASE + - 37 WHEN + 71 * + + CASE + - 61 WHEN + ( - + 61 ) THEN NULL ELSE - 13 END * 54 - + 17 THEN + 64 + 53 ELSE + SUM( + + NULLIF ( + 41, + 28 ) ) END
----
41

skipif mysql # not compatible
query I rowsort label-9607
SELECT CASE + - 37 WHEN + 71 * + + CASE + - 61 WHEN + ( - + 61 ) THEN NULL ELSE - 13 END * 54 - + 17 THEN + 64 + 53 ELSE + SUM ( + + NULLIF ( + 41, + 28 ) ) END
----
41

query II rowsort
SELECT - + 0, 3 AS col0
----
0
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9609
SELECT ALL - 32 + 37 + - + 24 * + COUNT( * ) - 21 + - - 58 + - 57 + + 12 * + - 69 AS col2
----
-867

skipif mysql # not compatible
query I rowsort label-9609
SELECT ALL - 32 + 37 + - + 24 * + COUNT ( * ) - 21 + - - 58 + - 57 + + 12 * + - 69 AS col2
----
-867

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9610
SELECT - CAST( + CAST( - 61 AS SIGNED ) AS SIGNED ) AS col1
----
61

skipif mysql # not compatible
query I rowsort label-9610
SELECT - CAST ( + CAST ( - 61 AS INTEGER ) AS INTEGER ) AS col1
----
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9611
SELECT + + COUNT( * ) * - 68 DIV 1 - 14 AS col1, 25
----
-82
25

skipif mysql # not compatible
query II rowsort label-9611
SELECT + + COUNT ( * ) * - 68 / 1 - 14 AS col1, 25
----
-82
25

query I rowsort
SELECT DISTINCT 28 + + + 91 AS col2
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-9613
SELECT - COALESCE ( COUNT( * ), - COUNT( * ) ) * - 96 AS col0
----
96

skipif mysql # not compatible
query I rowsort label-9613
SELECT - COALESCE ( COUNT ( * ), - COUNT ( * ) ) * - 96 AS col0
----
96

query I rowsort
SELECT ALL 85 * - - 31
----
2635

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9615
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + CAST( - COALESCE ( - + 89, + MIN( - 87 ) ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9615
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + CAST ( - COALESCE ( - + 89, + MIN ( - 87 ) ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9616
SELECT ALL + SUM( + 0 )
----
0

skipif mysql # not compatible
query I rowsort label-9616
SELECT ALL + SUM ( + 0 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9617
SELECT ALL - 5 + 25 + CAST( NULL AS SIGNED ) + - 96 + - - 19 / 63 * - 2 + + 44 * 61 * - 1 * - 69 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9617
SELECT ALL - 5 + 25 + CAST ( NULL AS INTEGER ) + - 96 + - - 19 / 63 * - 2 + + 44 * 61 * - 1 * - 69 AS col0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9618
SELECT CAST( NULL AS DECIMAL ) / + + 7
----
NULL

skipif mysql # not compatible
query I rowsort label-9618
SELECT CAST ( NULL AS REAL ) / + + 7
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9619
SELECT SUM( - 88 ) * + ( - 10 )
----
880

skipif mysql # not compatible
query I rowsort label-9619
SELECT SUM ( - 88 ) * + ( - 10 )
----
880

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9620
SELECT 87 + + ( + 64 ) + + 14 - - 11 + + 71 * + - 39 * 19 * CASE - 54 WHEN CASE + + 82 WHEN - NULLIF ( + 87, + COUNT( * ) + 70 ) THEN 37 END * - + CAST( NULL AS SIGNED ) * - - 6 THEN - 46 * + - CAST( 11 AS DECIMAL ) + - 16 + - 58 WHEN + 55 - - - 37 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9620
SELECT 87 + + ( + 64 ) + + 14 - - 11 + + 71 * + - 39 * 19 * CASE - 54 WHEN CASE + + 82 WHEN - NULLIF ( + 87, + COUNT ( * ) + 70 ) THEN 37 END * - + CAST ( NULL AS INTEGER ) * - - 6 THEN - 46 * + - CAST ( 11 AS REAL ) + - 16 + - 58 WHEN + 55 - - - 37 THEN NULL END
----
NULL

query I rowsort
SELECT DISTINCT - 38 - 33 + - + 24 * - 8
----
121

query I rowsort
SELECT 6 + 99
----
105

query II rowsort
SELECT 77 * 92, - 42 + + - ( 15 ) AS col0
----
7084
-57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9624
SELECT DISTINCT + 12 * + + COUNT( * ) DIV + 53
----
0

skipif mysql # not compatible
query I rowsort label-9624
SELECT DISTINCT + 12 * + + COUNT ( * ) / + 53
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9625
SELECT ALL + COUNT( * ) - + 41 * 93 AS col0
----
-3812

skipif mysql # not compatible
query I rowsort label-9625
SELECT ALL + COUNT ( * ) - + 41 * 93 AS col0
----
-3812

query I rowsort
SELECT DISTINCT + 12 * 12 AS col2
----
144

query I rowsort
SELECT COALESCE ( - - 11, + 24 * - 89 ) * - 85 - 81
----
-1016

onlyif mysql # aggregate syntax: 
query I rowsort label-9628
SELECT COUNT( * ) * + 35 * - 27
----
-945

skipif mysql # not compatible
query I rowsort label-9628
SELECT COUNT ( * ) * + 35 * - 27
----
-945

query I rowsort
SELECT ALL - ( 77 ) AS col2
----
-77

query I rowsort
SELECT 86 - + 95 AS col0
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9631
SELECT COUNT( * ) DIV - - 52
----
0

skipif mysql # not compatible
query I rowsort label-9631
SELECT COUNT ( * ) / - - 52
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9632
SELECT DISTINCT - CAST( - CASE + 17 WHEN + + 72 THEN NULL WHEN 94 - - 83 + - 97 * + 20 / + 96 + + + 22 THEN 1 WHEN - CASE - 48 WHEN + - ( - - 88 ) THEN + - 74 END / - - ( 27 ) * + + 63 - 92 THEN - + 61 / - 66 * - + NULLIF ( + 94, + 31 ) END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9632
SELECT DISTINCT - CAST ( - CASE + 17 WHEN + + 72 THEN NULL WHEN 94 - - 83 + - 97 * + 20 / + 96 + + + 22 THEN 1 WHEN - CASE - 48 WHEN + - ( - - 88 ) THEN + - 74 END / - - ( 27 ) * + + 63 - 92 THEN - + 61 / - 66 * - + NULLIF ( + 94, + 31 ) END AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9633
SELECT DISTINCT - CAST( - COUNT( * ) AS SIGNED ) AS col0, NULLIF ( - + 81, 16 )
----
1
-81

skipif mysql # not compatible
query II rowsort label-9633
SELECT DISTINCT - CAST ( - COUNT ( * ) AS INTEGER ) AS col0, NULLIF ( - + 81, 16 )
----
1
-81

query I rowsort
SELECT 5 * - 66 * - 79 * + ( + 99 )
----
2580930

query I rowsort
SELECT ALL - NULLIF ( + ( - 79 ), - 27 * - + 91 * 85 ) col1
----
79

query I rowsort
SELECT ALL - 97 * + 15 + 40 AS col2
----
-1415

onlyif mysql # aggregate syntax: 
query I rowsort label-9637
SELECT + 97 * + 58 * MIN( ALL + 82 ) + + 76 * - + COUNT( * ) + + 77
----
461333

skipif mysql # not compatible
query I rowsort label-9637
SELECT + 97 * + 58 * MIN ( ALL + 82 ) + + 76 * - + COUNT ( * ) + + 77
----
461333

onlyif mysql # DIV for integer division: 
query I rowsort label-9638
SELECT + 6 DIV 37 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9638
SELECT + 6 / 37 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9639
SELECT + + ( - COUNT( * ) ) col2, + NULLIF ( 73, - 22 ) + - COUNT( * ) col1
----
-1
72

skipif mysql # not compatible
query II rowsort label-9639
SELECT + + ( - COUNT ( * ) ) col2, + NULLIF ( 73, - 22 ) + - COUNT ( * ) col1
----
-1
72

query I rowsort
SELECT ALL 90 + - 78 + + + 42 + + 6
----
60

query I rowsort
SELECT - 59 * - 83 AS col2
----
4897

onlyif mysql # aggregate syntax: 
query I rowsort label-9642
SELECT + + 82 * + 75 + + - COUNT( * ) * - 33 AS col2
----
6183

skipif mysql # not compatible
query I rowsort label-9642
SELECT + + 82 * + 75 + + - COUNT ( * ) * - 33 AS col2
----
6183

onlyif mysql # aggregate syntax: 
query I rowsort label-9643
SELECT ALL + COUNT( * ) + - 24 - + 15 + + 88
----
50

skipif mysql # not compatible
query I rowsort label-9643
SELECT ALL + COUNT ( * ) + - 24 - + 15 + + 88
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-9644
SELECT - MAX( - ( - - 19 ) )
----
19

skipif mysql # not compatible
query I rowsort label-9644
SELECT - MAX ( - ( - - 19 ) )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-9645
SELECT + COUNT( * ) * + 59 * + + 98 * - 47 + - - ( - 41 ) AS col1
----
-271795

skipif mysql # not compatible
query I rowsort label-9645
SELECT + COUNT ( * ) * + 59 * + + 98 * - 47 + - - ( - 41 ) AS col1
----
-271795

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9646
SELECT MAX( ALL - 12 ) + - ( 13 ) + - + COUNT( + - NULLIF ( - CAST( + 7 AS SIGNED ), + 21 ) ) * + COUNT( * )
----
-26

skipif mysql # not compatible
query I rowsort label-9646
SELECT MAX ( ALL - 12 ) + - ( 13 ) + - + COUNT ( + - NULLIF ( - CAST ( + 7 AS INTEGER ), + 21 ) ) * + COUNT ( * )
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-9647
SELECT ALL + COALESCE ( - 59, + - COUNT( * ) * 82 )
----
-59

skipif mysql # not compatible
query I rowsort label-9647
SELECT ALL + COALESCE ( - 59, + - COUNT ( * ) * 82 )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-9648
SELECT ALL 6 + + MAX( ALL 42 ) * - - 91 + - 49
----
3779

skipif mysql # not compatible
query I rowsort label-9648
SELECT ALL 6 + + MAX ( ALL 42 ) * - - 91 + - 49
----
3779

query I rowsort
SELECT - 75 - + 62 - + 64 AS col0
----
-201

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9650
SELECT + 80 * + + 93 AS col0, + 86 DIV COUNT( * )
----
7440
86

skipif mysql # not compatible
query II rowsort label-9650
SELECT + 80 * + + 93 AS col0, + 86 / COUNT ( * )
----
7440
86

onlyif mysql # DIV for integer division: 
query II rowsort label-9651
SELECT ALL 19 DIV + 44 * - 27 AS col0, ( + 55 ) + + CASE - - 35 WHEN - 84 THEN - - 76 + + 4 ELSE NULL END AS col1
----
0
NULL

skipif mysql # not compatible
query II rowsort label-9651
SELECT ALL 19 / + 44 * - 27 AS col0, ( + 55 ) + + CASE - - 35 WHEN - 84 THEN - - 76 + + 4 ELSE NULL END AS col1
----
0
NULL

query I rowsort
SELECT DISTINCT 74 * + 38 col2
----
2812

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9653
SELECT ALL 50 - 69 + - 69 + - MAX( 67 ) + 15 * + 37 * - + COUNT( * ) AS col2, 18 DIV - 48 AS col1
----
-710
0

skipif mysql # not compatible
query II rowsort label-9653
SELECT ALL 50 - 69 + - 69 + - MAX ( 67 ) + 15 * + 37 * - + COUNT ( * ) AS col2, 18 / - 48 AS col1
----
-710
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9654
SELECT ALL COUNT( * ) * - 43 AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-9654
SELECT ALL COUNT ( * ) * - 43 AS col0
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-9655
SELECT DISTINCT 79 - - 58 + + - 51 + + + AVG ( - - 4 ) * - - COALESCE ( + 54, - - 47 - - - COUNT( - 24 ) + + 88 ) * + 13 - - + 85 + + AVG ( DISTINCT + - 55 ) - + - 42 - - 10 * 90 * + - ( - 69 ) + - + CASE - 80 WHEN + - 40 THEN NULL WHEN - - CASE - - 78 WHEN 97 * 75 * COALESCE ( - COUNT( * ), + 37, 88 + + + COUNT( * ), - COUNT( * ) ) * - CASE 45 * + 2 + 70 WHEN ( 92 ) / 3 THEN + 93 WHEN + 61 * - ( + 91 / 40 ) THEN NULL END + 84 THEN + 99 * 54 + + COALESCE ( ( 82 ), - 50 ) END THEN - ( - 20 ) / 88 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9655
SELECT DISTINCT 79 - - 58 + + - 51 + + + AVG ( - - 4 ) * - - COALESCE ( + 54, - - 47 - - - COUNT ( - 24 ) + + 88 ) * + 13 - - + 85 + + AVG ( DISTINCT + - 55 ) - + - 42 - - 10 * 90 * + - ( - 69 ) + - + CASE - 80 WHEN + - 40 THEN NULL WHEN - - CASE - - 78 WHEN 97 * 75 * COALESCE ( - COUNT ( * ), + 37, 88 + + + COUNT ( * ), - COUNT ( * ) ) * - CASE 45 * + 2 + 70 WHEN ( 92 ) / 3 THEN + 93 WHEN + 61 * - ( + 91 / 40 ) THEN NULL END + 84 THEN + 99 * 54 + + COALESCE ( ( 82 ), - 50 ) END THEN - ( - 20 ) / 88 END
----
NULL

query II rowsort
SELECT 86, 14 AS col0
----
86
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9657
SELECT ALL MIN( 56 ) AS col1
----
56

skipif mysql # not compatible
query I rowsort label-9657
SELECT ALL MIN ( 56 ) AS col1
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-9658
SELECT + COALESCE ( - + 32, + + 13 + + 26 DIV + 95 ) - - + 58 * - 50 AS col1
----
-2932

skipif mysql # not compatible
query I rowsort label-9658
SELECT + COALESCE ( - + 32, + + 13 + + 26 / + 95 ) - - + 58 * - 50 AS col1
----
-2932

onlyif mysql # aggregate syntax: 
query I rowsort label-9659
SELECT ALL 14 * + + NULLIF ( - - MAX( DISTINCT - 84 ), 63 ) AS col2
----
-1176

skipif mysql # not compatible
query I rowsort label-9659
SELECT ALL 14 * + + NULLIF ( - - MAX ( DISTINCT - 84 ), 63 ) AS col2
----
-1176

onlyif mysql # aggregate syntax: 
query I rowsort label-9660
SELECT ALL 73 * + COUNT( ALL 6 ) AS col2
----
73

skipif mysql # not compatible
query I rowsort label-9660
SELECT ALL 73 * + COUNT ( ALL 6 ) AS col2
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-9661
SELECT - COALESCE ( + + 53, - 28, 8 * + 66 * + 24 * 50 * 90 + + 62 + - MIN( DISTINCT + 88 ) ) AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-9661
SELECT - COALESCE ( + + 53, - 28, 8 * + 66 * + 24 * 50 * 90 + + 62 + - MIN ( DISTINCT + 88 ) ) AS col0
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9662
SELECT ALL - ( + + CAST( NULL AS SIGNED ) ) / + 74 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9662
SELECT ALL - ( + + CAST ( NULL AS INTEGER ) ) / + 74 AS col1
----
NULL

query II rowsort
SELECT - 78 * - 28 * 94 AS col1, - 18 + + 42 col2
----
205296
24

query I rowsort
SELECT - 37 * + 28
----
-1036

query I rowsort
SELECT - 55 - 85 - + 30 AS col0
----
-170

query I rowsort
SELECT - 41 * - 33 - 7 * 80 + + 25 AS col0
----
818

query I rowsort
SELECT ALL + CASE + 46 WHEN 28 THEN - 43 * + - NULLIF ( - 46, - ( 59 ) ) ELSE + - ( + 61 ) + NULLIF ( + CASE - 93 WHEN - + 24 THEN NULL WHEN + 3 THEN - 70 / + 15 * + ( - 91 ) ELSE NULL END, + 83 ) / + + 7 + - 78 END
----
NULL

query I rowsort
SELECT + 42 * + - 61
----
-2562

query I rowsort
SELECT - 1 + + ( + + 34 ) * + - 61 + + 0
----
-2075

query II rowsort
SELECT ALL 47 * 86 + - + 2 AS col0, + 11 AS col0
----
4040
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9671
SELECT ALL + SUM( DISTINCT + 33 ) * - MIN( + + CASE + 5 WHEN + 75 * - - 88 THEN NULL ELSE + CAST( NULL AS SIGNED ) END ) + - + 73 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9671
SELECT ALL + SUM ( DISTINCT + 33 ) * - MIN ( + + CASE + 5 WHEN + 75 * - - 88 THEN NULL ELSE + CAST ( NULL AS INTEGER ) END ) + - + 73 AS col1
----
NULL

query I rowsort
SELECT - 95 + 32
----
-63

query I rowsort
SELECT ALL + 90 * - 62
----
-5580

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9674
SELECT + CAST( NULL AS SIGNED ) * - 85 + 16 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9674
SELECT + CAST ( NULL AS INTEGER ) * - 85 + 16 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9675
SELECT DISTINCT + - 56 * - COUNT( * )
----
56

skipif mysql # not compatible
query I rowsort label-9675
SELECT DISTINCT + - 56 * - COUNT ( * )
----
56

onlyif mysql # aggregate syntax: 
query II rowsort label-9676
SELECT DISTINCT + + ( 65 ) * - - NULLIF ( 13, COUNT( ALL - 1 ) + + 70 ) + + COUNT( * ) col2, + COUNT( * ) AS col2
----
846
1

skipif mysql # not compatible
query II rowsort label-9676
SELECT DISTINCT + + ( 65 ) * - - NULLIF ( 13, COUNT ( ALL - 1 ) + + 70 ) + + COUNT ( * ) col2, + COUNT ( * ) AS col2
----
846
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9677
SELECT ALL + - 8 * - 80 + - - CAST( 6 AS SIGNED )
----
646

skipif mysql # not compatible
query I rowsort label-9677
SELECT ALL + - 8 * - 80 + - - CAST ( 6 AS INTEGER )
----
646

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9678
SELECT ALL - - 10 * - 67 + - 58 + COUNT( * ) + + 99 + - COUNT( * ) * CAST( NULL AS SIGNED ) * - - 65
----
NULL

skipif mysql # not compatible
query I rowsort label-9678
SELECT ALL - - 10 * - 67 + - 58 + COUNT ( * ) + + 99 + - COUNT ( * ) * CAST ( NULL AS INTEGER ) * - - 65
----
NULL

query I rowsort
SELECT + 31 + 38 - 11
----
58

query I rowsort
SELECT DISTINCT + - ( + + 8 )
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9681
SELECT ALL - COALESCE ( 96, + 14 * + 1 + 94 * - COALESCE ( + 7, COUNT( * ) + + - 39, - 59 ), CAST( - 29 AS SIGNED ) / + - 28 + + 31 ) * + 38 + + CAST( NULL AS SIGNED ) + - SUM( 11 ) + - COUNT( - 92 ) * + 19 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9681
SELECT ALL - COALESCE ( 96, + 14 * + 1 + 94 * - COALESCE ( + 7, COUNT ( * ) + + - 39, - 59 ), CAST ( - 29 AS INTEGER ) / + - 28 + + 31 ) * + 38 + + CAST ( NULL AS INTEGER ) + - SUM ( 11 ) + - COUNT ( - 92 ) * + 19 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9682
SELECT ALL - + NULLIF ( + 52, - - COUNT( - - 59 ) * CAST( NULL AS SIGNED ) + + COUNT( * ) ) DIV - 12
----
4

skipif mysql # not compatible
query I rowsort label-9682
SELECT ALL - + NULLIF ( + 52, - - COUNT ( - - 59 ) * CAST ( NULL AS INTEGER ) + + COUNT ( * ) ) / - 12
----
4

query I rowsort
SELECT DISTINCT + + ( + NULLIF ( ( 51 ), 71 ) )
----
51

query I rowsort
SELECT - - 11 * + - 57 AS col0
----
-627

onlyif mysql # aggregate syntax: 
query I rowsort label-9685
SELECT ALL 51 * + 27 * + + COUNT( * )
----
1377

skipif mysql # not compatible
query I rowsort label-9685
SELECT ALL 51 * + 27 * + + COUNT ( * )
----
1377

query II rowsort
SELECT - + 86, + 43 AS col1
----
-86
43

onlyif mysql # aggregate syntax: 
query I rowsort label-9687
SELECT - - 8 + - CASE 6 WHEN + + 23 THEN 36 * + - ( + 88 ) / + 41 * - - 25 / 50 / - + COUNT( * ) + + 74 + + COUNT( - 84 ) * + 57 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9687
SELECT - - 8 + - CASE 6 WHEN + + 23 THEN 36 * + - ( + 88 ) / + 41 * - - 25 / 50 / - + COUNT ( * ) + + 74 + + COUNT ( - 84 ) * + 57 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9688
SELECT - 78 - - + COUNT( * ) * + 38 AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-9688
SELECT - 78 - - + COUNT ( * ) * + 38 AS col0
----
-40

query I rowsort
SELECT ALL 17 * - 64
----
-1088

query I rowsort
SELECT + + 28 + - 26 col1
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-9691
SELECT DISTINCT + 39 * 21 DIV - 57
----
-14

skipif mysql # not compatible
query I rowsort label-9691
SELECT DISTINCT + 39 * 21 / - 57
----
-14

query I rowsort
SELECT DISTINCT ( + + 29 )
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9693
SELECT + CAST( NULL AS SIGNED ) + + 38, 85 * - + 57 * + 18 AS col0
----
NULL
-87210

skipif mysql # not compatible
query II rowsort label-9693
SELECT + CAST ( NULL AS INTEGER ) + + 38, 85 * - + 57 * + 18 AS col0
----
NULL
-87210

query I rowsort
SELECT ALL + 21 - - 20 + 36 + + 35 AS col1
----
112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9695
SELECT + CASE + + MIN( DISTINCT CAST( NULL AS SIGNED ) ) WHEN - COUNT( * ) * + 36 THEN - 22 ELSE NULL END + + 11 + ( - 37 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9695
SELECT + CASE + + MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) WHEN - COUNT ( * ) * + 36 THEN - 22 ELSE NULL END + + 11 + ( - 37 ) AS col0
----
NULL

query I rowsort
SELECT ALL 55 * - - 1
----
55

query I rowsort
SELECT - ( - - 66 )
----
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-9698
SELECT DISTINCT 2 DIV - 75
----
0

skipif mysql # not compatible
query I rowsort label-9698
SELECT DISTINCT 2 / - 75
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9699
SELECT + 14 DIV 1 * + 55 col1
----
770

skipif mysql # not compatible
query I rowsort label-9699
SELECT + 14 / 1 * + 55 col1
----
770

query I rowsort
SELECT ALL 19 * - + ( + - 81 )
----
1539

query II rowsort
SELECT + 25 * + 45 AS col0, 79 * - COALESCE ( + 33, - 17 - + 21 ) AS col0
----
1125
-2607

onlyif mysql # aggregate syntax: 
query I rowsort label-9702
SELECT + 31 + + COALESCE ( + 74, - + 94 + - MAX( ALL + 47 ) + + ( 16 ) - + 41 ) + + 24 * + 82
----
2073

skipif mysql # not compatible
query I rowsort label-9702
SELECT + 31 + + COALESCE ( + 74, - + 94 + - MAX ( ALL + 47 ) + + ( 16 ) - + 41 ) + + 24 * + 82
----
2073

onlyif mysql # aggregate syntax: 
query I rowsort label-9703
SELECT ALL SUM( ALL + + 66 )
----
66

skipif mysql # not compatible
query I rowsort label-9703
SELECT ALL SUM ( ALL + + 66 )
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-9704
SELECT + 78 DIV 72 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9704
SELECT + 78 / 72 AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9705
SELECT ALL + MAX( DISTINCT 42 ) DIV 50 + + 56 * - COUNT( * ) * + COUNT( * ) col0
----
-56

skipif mysql # not compatible
query I rowsort label-9705
SELECT ALL + MAX ( DISTINCT 42 ) / 50 + + 56 * - COUNT ( * ) * + COUNT ( * ) col0
----
-56

query I rowsort
SELECT ALL 1 * - + 52
----
-52

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9707
SELECT DISTINCT - 11 DIV - 38 + + CAST( - 93 AS SIGNED ), + 50 AS col2
----
-93
50

skipif mysql # not compatible
query II rowsort label-9707
SELECT DISTINCT - 11 / - 38 + + CAST ( - 93 AS INTEGER ), + 50 AS col2
----
-93
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9708
SELECT ALL + COALESCE ( + 7, - 75, - COUNT( * ) + 1 + + + CAST( NULL AS SIGNED ) + + COUNT( * ) * + - COUNT( * ), 3 ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-9708
SELECT ALL + COALESCE ( + 7, - 75, - COUNT ( * ) + 1 + + + CAST ( NULL AS INTEGER ) + + COUNT ( * ) * + - COUNT ( * ), 3 ) AS col0
----
7

onlyif mysql # DIV for integer division: 
query II rowsort label-9709
SELECT DISTINCT + COALESCE ( - 35, - - 91 ) DIV - 67 + + + 83 AS col2, - 88
----
83
-88

skipif mysql # not compatible
query II rowsort label-9709
SELECT DISTINCT + COALESCE ( - 35, - - 91 ) / - 67 + + + 83 AS col2, - 88
----
83
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-9710
SELECT + 83 * + COUNT( * ) - - 99 + 31
----
213

skipif mysql # not compatible
query I rowsort label-9710
SELECT + 83 * + COUNT ( * ) - - 99 + 31
----
213

onlyif mysql # aggregate syntax: 
query I rowsort label-9711
SELECT + 32 - - 1 * - COUNT( * ) col0
----
31

skipif mysql # not compatible
query I rowsort label-9711
SELECT + 32 - - 1 * - COUNT ( * ) col0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-9712
SELECT + ( - + CASE - 57 WHEN 71 * - + 63 * - 61 + + 27 * + 98 + 85 - - + COUNT( * ) + - + 8 THEN + - COUNT( * ) + 26 + - NULLIF ( - - 96, + ( - COUNT( * ) ) ) WHEN - + 69 * + COUNT( * ) + 5 THEN - 61 END ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9712
SELECT + ( - + CASE - 57 WHEN 71 * - + 63 * - 61 + + 27 * + 98 + 85 - - + COUNT ( * ) + - + 8 THEN + - COUNT ( * ) + 26 + - NULLIF ( - - 96, + ( - COUNT ( * ) ) ) WHEN - + 69 * + COUNT ( * ) + 5 THEN - 61 END ) col0
----
NULL

query I rowsort
SELECT ALL + + ( ( - + 61 ) ) AS col0
----
-61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9714
SELECT ALL + 81 DIV COUNT( * ) + - 76 * 73 + - - 36 - 23 + 70 * + 8
----
-4894

skipif mysql # not compatible
query I rowsort label-9714
SELECT ALL + 81 / COUNT ( * ) + - 76 * 73 + - - 36 - 23 + 70 * + 8
----
-4894

query I rowsort
SELECT ALL + - ( - 8 )
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9716
SELECT ALL 16 * - 79 * - 31 - - - AVG ( ALL + CAST( NULL AS SIGNED ) ) * COUNT( * ) * 98
----
NULL

skipif mysql # not compatible
query I rowsort label-9716
SELECT ALL 16 * - 79 * - 31 - - - AVG ( ALL + CAST ( NULL AS INTEGER ) ) * COUNT ( * ) * 98
----
NULL

query II rowsort
SELECT DISTINCT + 51 * 20 AS col1, 6 - - - 43
----
1020
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9718
SELECT DISTINCT - - 62 * 40 AS col2, + COUNT( * ) DIV + 68
----
2480
0

skipif mysql # not compatible
query II rowsort label-9718
SELECT DISTINCT - - 62 * 40 AS col2, + COUNT ( * ) / + 68
----
2480
0

query II rowsort
SELECT + - ( 0 ) AS col0, 84 * + + 64 AS col2
----
0
5376

onlyif mysql # aggregate syntax: 
query I rowsort label-9720
SELECT - 62 + + COUNT( * )
----
-61

skipif mysql # not compatible
query I rowsort label-9720
SELECT - 62 + + COUNT ( * )
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-9721
SELECT + NULLIF ( + 89, - COUNT( * ) + - - COUNT( * ) + + 28 + - + COUNT( 91 ) + 37 - - COUNT( * ) + + 52 * - 45 )
----
89

skipif mysql # not compatible
query I rowsort label-9721
SELECT + NULLIF ( + 89, - COUNT ( * ) + - - COUNT ( * ) + + 28 + - + COUNT ( 91 ) + 37 - - COUNT ( * ) + + 52 * - 45 )
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-9722
SELECT - + MAX( - ( CASE - 49 WHEN - 68 THEN - - 53 + + ( + 11 ) WHEN - 60 THEN NULL ELSE NULL END ) ) - 26 + - ( - 99 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9722
SELECT - + MAX ( - ( CASE - 49 WHEN - 68 THEN - - 53 + + ( + 11 ) WHEN - 60 THEN NULL ELSE NULL END ) ) - 26 + - ( - 99 ) col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9723
SELECT 80 DIV - 43 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9723
SELECT 80 / - 43 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-9724
SELECT ALL MAX( - + 43 ) * + 46 AS col1, + 78 * NULLIF ( + 33, + + 91 )
----
-1978
2574

skipif mysql # not compatible
query II rowsort label-9724
SELECT ALL MAX ( - + 43 ) * + 46 AS col1, + 78 * NULLIF ( + 33, + + 91 )
----
-1978
2574

query I rowsort
SELECT 6 * + 13 AS col1
----
78

query I rowsort
SELECT ALL - 62 * + - 33
----
2046

query I rowsort
SELECT 77 - + + 33 AS col0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-9728
SELECT DISTINCT + COUNT( + + 94 ) * - 52 + - 21
----
-73

skipif mysql # not compatible
query I rowsort label-9728
SELECT DISTINCT + COUNT ( + + 94 ) * - 52 + - 21
----
-73

query I rowsort
SELECT 86 + - ( + ( + 72 ) ) - - 35 AS col1
----
49

query II rowsort
SELECT ALL 58 AS col2, 60 AS col2
----
58
60

query I rowsort
SELECT DISTINCT 78 + - 89 AS col1
----
-11

query I rowsort
SELECT 5 * 71 AS col2
----
355

query I rowsort
SELECT 12 - 30
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-9734
SELECT ALL + COUNT( * ) + + + 29 AS col2
----
30

skipif mysql # not compatible
query I rowsort label-9734
SELECT ALL + COUNT ( * ) + + + 29 AS col2
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-9735
SELECT COUNT( * ) - - 58 * - - 73 AS col2
----
4235

skipif mysql # not compatible
query I rowsort label-9735
SELECT COUNT ( * ) - - 58 * - - 73 AS col2
----
4235

query I rowsort
SELECT ALL 66 + + + 83 + - + 36
----
113

onlyif mysql # aggregate syntax: 
query II rowsort label-9737
SELECT ALL - CASE - 74 WHEN + + ( + - ( - + 82 ) ) + + 45 + + + MIN( - 89 ) + 25 * - 0 + + 33 THEN NULL WHEN - + 39 * 57 + - + 49 THEN + + 1 + 84 / - ( 24 ) END + - MIN( ALL + - 28 ) AS col0, + 93
----
NULL
93

skipif mysql # not compatible
query II rowsort label-9737
SELECT ALL - CASE - 74 WHEN + + ( + - ( - + 82 ) ) + + 45 + + + MIN ( - 89 ) + 25 * - 0 + + 33 THEN NULL WHEN - + 39 * 57 + - + 49 THEN + + 1 + 84 / - ( 24 ) END + - MIN ( ALL + - 28 ) AS col0, + 93
----
NULL
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9738
SELECT ALL ( 68 ) + - 29 + - 89 + 47 - - + MIN( ALL - 80 ) + + - 50 DIV + - 40 * - CAST( + CAST( - - COUNT( * ) AS SIGNED ) AS SIGNED ) col1
----
-84

skipif mysql # not compatible
query I rowsort label-9738
SELECT ALL ( 68 ) + - 29 + - 89 + 47 - - + MIN ( ALL - 80 ) + + - 50 / + - 40 * - CAST ( + CAST ( - - COUNT ( * ) AS INTEGER ) AS INTEGER ) col1
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-9739
SELECT COUNT( * ) + MAX( + 0 ) * - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-9739
SELECT COUNT ( * ) + MAX ( + 0 ) * - COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9740
SELECT - COUNT( DISTINCT - 86 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9740
SELECT - COUNT ( DISTINCT - 86 ) AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9741
SELECT + 86 - 1 * - NULLIF ( + CAST( NULL AS SIGNED ), 28 * - + 6 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9741
SELECT + 86 - 1 * - NULLIF ( + CAST ( NULL AS INTEGER ), 28 * - + 6 ) AS col2
----
NULL

query I rowsort
SELECT ALL 56 * - 39 AS col1
----
-2184

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9743
SELECT - 68 DIV 9 * - 50 * 69 + + 79 + - - 68 * - COUNT( * ) * + ( - - 88 ) + - 83 AS col2
----
18162

skipif mysql # not compatible
query I rowsort label-9743
SELECT - 68 / 9 * - 50 * 69 + + 79 + - - 68 * - COUNT ( * ) * + ( - - 88 ) + - 83 AS col2
----
18162

onlyif mysql # aggregate syntax: 
query I rowsort label-9744
SELECT + - 91 * - 7 - + COUNT( * ) AS col2
----
636

skipif mysql # not compatible
query I rowsort label-9744
SELECT + - 91 * - 7 - + COUNT ( * ) AS col2
----
636

query I rowsort
SELECT + ( + - 72 ) + - - 69 AS col1
----
-3

query I rowsort
SELECT ALL 83 - + 77 AS col1
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-9747
SELECT - 53 * 67 + + 59 AS col2, + 88 * - + COUNT( * )
----
-3492
-88

skipif mysql # not compatible
query II rowsort label-9747
SELECT - 53 * 67 + + 59 AS col2, + 88 * - + COUNT ( * )
----
-3492
-88

query I rowsort
SELECT ALL 22 * 23
----
506

onlyif mysql # aggregate syntax: 
query I rowsort label-9749
SELECT DISTINCT 40 * + + COUNT( * ) * + + 8 * - COUNT( * ) * + + COUNT( * )
----
-320

skipif mysql # not compatible
query I rowsort label-9749
SELECT DISTINCT 40 * + + COUNT ( * ) * + + 8 * - COUNT ( * ) * + + COUNT ( * )
----
-320

onlyif mysql # DIV for integer division: 
query I rowsort label-9750
SELECT ALL - 64 - - 67 DIV + 45 AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-9750
SELECT ALL - 64 - - 67 / + 45 AS col2
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-9751
SELECT - COUNT( ALL + 58 ) + 53 AS col2
----
52

skipif mysql # not compatible
query I rowsort label-9751
SELECT - COUNT ( ALL + 58 ) + 53 AS col2
----
52

query II rowsort
SELECT ALL - 13 AS col0, + 81 AS col2
----
-13
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9753
SELECT NULLIF ( - 78, - + 57 + + COUNT( * ) ) DIV - + 60 AS col0, 38 * 10 + COALESCE ( - - 24, - 44, - 25 ) AS col1
----
1
404

skipif mysql # not compatible
query II rowsort label-9753
SELECT NULLIF ( - 78, - + 57 + + COUNT ( * ) ) / - + 60 AS col0, 38 * 10 + COALESCE ( - - 24, - 44, - 25 ) AS col1
----
1
404

query I rowsort
SELECT DISTINCT - + 34 * - 25
----
850

onlyif mysql # aggregate syntax: 
query I rowsort label-9755
SELECT + 63 * - + COUNT( * ) + 9 + + 80 * 41 * - COUNT( * )
----
-3334

skipif mysql # not compatible
query I rowsort label-9755
SELECT + 63 * - + COUNT ( * ) + 9 + + 80 * 41 * - COUNT ( * )
----
-3334

query I rowsort
SELECT 96 + + - 83
----
13

query I rowsort
SELECT ALL 91 * + 83 * - 16
----
-120848

query I rowsort
SELECT + ( - 1 ) * - - 30 + + 92 * - 42 * 78 * - - 1 AS col0
----
-301422

onlyif mysql # aggregate syntax: 
query II rowsort label-9759
SELECT 2, 41 + 0 + + COUNT( * ) * + 90 * + - 28 AS col1
----
2
-2479

skipif mysql # not compatible
query II rowsort label-9759
SELECT 2, 41 + 0 + + COUNT ( * ) * + 90 * + - 28 AS col1
----
2
-2479

query I rowsort
SELECT 31 + + 72
----
103

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9761
SELECT ALL - 94 + - 12 AS col0, + 38 - + 52 AS col0, + CASE + + 79 WHEN - ( + + CAST( NULL AS DECIMAL ) ) THEN - ( - + 18 ) * - 33 - + + 87 END * - - 49 + 58 + + 97 * - 87 * + + 37 + + 3 + - 7 + + ( - 35 ) - + 9 * - 89 AS col2
----
-106
-14
NULL

skipif mysql # not compatible
query III rowsort label-9761
SELECT ALL - 94 + - 12 AS col0, + 38 - + 52 AS col0, + CASE + + 79 WHEN - ( + + CAST ( NULL AS REAL ) ) THEN - ( - + 18 ) * - 33 - + + 87 END * - - 49 + 58 + + 97 * - 87 * + + 37 + + 3 + - 7 + + ( - 35 ) - + 9 * - 89 AS col2
----
-106
-14
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9762
SELECT ALL + 31 + - CAST( + 31 AS SIGNED ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9762
SELECT ALL + 31 + - CAST ( + 31 AS INTEGER ) AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9763
SELECT DISTINCT + 22 DIV + 78 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9763
SELECT DISTINCT + 22 / + 78 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9764
SELECT DISTINCT + 49 + COUNT( ALL + 55 ) AS col1
----
50

skipif mysql # not compatible
query I rowsort label-9764
SELECT DISTINCT + 49 + COUNT ( ALL + 55 ) AS col1
----
50

query I rowsort
SELECT 24 * + - 13 AS col0
----
-312

query I rowsort
SELECT ALL + ( - 14 ) * + + 15 + + 86 AS col0
----
-124

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9767
SELECT ALL + COALESCE ( + 26, CAST( NULL AS SIGNED ) + 79, 69 + + 93 + COUNT( * ) ) + - 52 AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-9767
SELECT ALL + COALESCE ( + 26, CAST ( NULL AS INTEGER ) + 79, 69 + + 93 + COUNT ( * ) ) + - 52 AS col2
----
-26

query I rowsort
SELECT 40 + + 73 AS col0
----
113

query I rowsort
SELECT DISTINCT + 14 + - + 66 AS col1
----
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9770
SELECT ALL + 5 * - + CAST( NULL AS SIGNED ), + COUNT( * ) * - 88 * + 47 * 81 * + 26 - + + ( + + 91 ) * + 16 AS col2
----
NULL
-8711872

skipif mysql # not compatible
query II rowsort label-9770
SELECT ALL + 5 * - + CAST ( NULL AS INTEGER ), + COUNT ( * ) * - 88 * + 47 * 81 * + 26 - + + ( + + 91 ) * + 16 AS col2
----
NULL
-8711872

onlyif mysql # DIV for integer division: 
query I rowsort label-9771
SELECT 21 DIV 2 AS col0
----
10

skipif mysql # not compatible
query I rowsort label-9771
SELECT 21 / 2 AS col0
----
10

query I rowsort
SELECT DISTINCT - ( 74 ) * - ( - 68 )
----
-5032

query I rowsort
SELECT ALL 67 - - 12
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9774
SELECT ALL ( - + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9774
SELECT ALL ( - + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9775
SELECT ALL - 84 * + ( - - NULLIF ( - COUNT( DISTINCT 78 ), + 26 + + - 47 ) ) AS col2
----
84

skipif mysql # not compatible
query I rowsort label-9775
SELECT ALL - 84 * + ( - - NULLIF ( - COUNT ( DISTINCT 78 ), + 26 + + - 47 ) ) AS col2
----
84

query II rowsort
SELECT DISTINCT - - 16, 90 col1
----
16
90

query I rowsort
SELECT ALL - + 90 AS col0
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9778
SELECT DISTINCT - 89, - ( 45 ) + + - 17 * + + CAST( + + 55 AS SIGNED ) * + 58 + - 15 AS col0
----
-89
-54290

skipif mysql # not compatible
query II rowsort label-9778
SELECT DISTINCT - 89, - ( 45 ) + + - 17 * + + CAST ( + + 55 AS INTEGER ) * + 58 + - 15 AS col0
----
-89
-54290

onlyif mysql # aggregate syntax: 
query I rowsort label-9779
SELECT DISTINCT - - MIN( ALL - 87 )
----
-87

skipif mysql # not compatible
query I rowsort label-9779
SELECT DISTINCT - - MIN ( ALL - 87 )
----
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-9780
SELECT - - 79 DIV - 95 - 49
----
-49

skipif mysql # not compatible
query I rowsort label-9780
SELECT - - 79 / - 95 - 49
----
-49

query I rowsort
SELECT 38 * - 10 AS col1
----
-380

query II rowsort
SELECT ALL - - ( - 47 ), + 44 * 47 AS col1
----
-47
2068

query I rowsort
SELECT 40 - 20
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-9784
SELECT DISTINCT - SUM( + - ( + 55 ) ) * - 84
----
-4620

skipif mysql # not compatible
query I rowsort label-9784
SELECT DISTINCT - SUM ( + - ( + 55 ) ) * - 84
----
-4620

query I rowsort
SELECT + 53 * - 29 * + 29 + + 36 * NULLIF ( 21, + 22 ) + - 57
----
-43874

onlyif mysql # DIV for integer division: 
query I rowsort label-9786
SELECT ALL + 41 DIV 20 DIV 45 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9786
SELECT ALL + 41 / 20 / 45 AS col1
----
0

query II rowsort
SELECT ALL + 20 AS col1, 34
----
20
34

query II rowsort
SELECT + + 63 AS col2, 97 * - 12
----
63
-1164

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9789
SELECT + CAST( - 73 AS SIGNED ) * + - 26 * - 0 - + 31 col0
----
-31

skipif mysql # not compatible
query I rowsort label-9789
SELECT + CAST ( - 73 AS INTEGER ) * + - 26 * - 0 - + 31 col0
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9790
SELECT ALL 50 * 42 * + CASE + 29 WHEN - + 2 THEN + + CAST( NULL AS SIGNED ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9790
SELECT ALL 50 * 42 * + CASE + 29 WHEN - + 2 THEN + + CAST ( NULL AS INTEGER ) ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9791
SELECT + COUNT( + ( 47 ) )
----
1

skipif mysql # not compatible
query I rowsort label-9791
SELECT + COUNT ( + ( 47 ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9792
SELECT COUNT( CAST( - 23 AS SIGNED ) ), COUNT( * ) DIV 23 * 85 * + 56 AS col2
----
1
0

skipif mysql # not compatible
query II rowsort label-9792
SELECT COUNT ( CAST ( - 23 AS INTEGER ) ), COUNT ( * ) / 23 * 85 * + 56 AS col2
----
1
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9793
SELECT + CAST( CAST( NULL AS DECIMAL ) AS DECIMAL ) / 75 + - 73 + + 81 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9793
SELECT + CAST ( CAST ( NULL AS REAL ) AS REAL ) / 75 + - 73 + + 81 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9794
SELECT + COUNT( * ) + - COUNT( * ) + + 74
----
74

skipif mysql # not compatible
query I rowsort label-9794
SELECT + COUNT ( * ) + - COUNT ( * ) + + 74
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-9795
SELECT + NULLIF ( + - COUNT( + - 45 ), + 47 ) * + - ( - - NULLIF ( + COUNT( * ), - 9 ) ) + - 90
----
-89

skipif mysql # not compatible
query I rowsort label-9795
SELECT + NULLIF ( + - COUNT ( + - 45 ), + 47 ) * + - ( - - NULLIF ( + COUNT ( * ), - 9 ) ) + - 90
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-9796
SELECT - 32 + 15 * - ( + SUM( ALL - 44 ) ) + + 42
----
670

skipif mysql # not compatible
query I rowsort label-9796
SELECT - 32 + 15 * - ( + SUM ( ALL - 44 ) ) + + 42
----
670

onlyif mysql # aggregate syntax: 
query I rowsort label-9797
SELECT ALL + ( - COUNT( * ) ) + - 99 - - 96 * - 42 col0
----
-4132

skipif mysql # not compatible
query I rowsort label-9797
SELECT ALL + ( - COUNT ( * ) ) + - 99 - - 96 * - 42 col0
----
-4132

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9798
SELECT - CASE + 26 WHEN - 28 + - 75 THEN NULL WHEN - CASE + ( - 7 ) WHEN - 51 THEN - + NULLIF ( + 61, ( 88 ) + + 77 - + - COUNT( * ) ) * 58 ELSE NULL END THEN + 2 ELSE - CAST( NULL AS SIGNED ) * + - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9798
SELECT - CASE + 26 WHEN - 28 + - 75 THEN NULL WHEN - CASE + ( - 7 ) WHEN - 51 THEN - + NULLIF ( + 61, ( 88 ) + + 77 - + - COUNT ( * ) ) * 58 ELSE NULL END THEN + 2 ELSE - CAST ( NULL AS INTEGER ) * + - COUNT ( * ) END
----
NULL

query I rowsort
SELECT + 96 * + + 93 col2
----
8928

onlyif mysql # aggregate syntax: 
query I rowsort label-9800
SELECT DISTINCT + 18 + - COUNT( * ) + 8 * 73 * - 9 AS col2
----
-5239

skipif mysql # not compatible
query I rowsort label-9800
SELECT DISTINCT + 18 + - COUNT ( * ) + 8 * 73 * - 9 AS col2
----
-5239

query I rowsort
SELECT + 84 - + 4 AS col1
----
80

query I rowsort
SELECT + 60 - + - 56 AS col0
----
116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9803
SELECT - SUM( + - 63 ) * NULLIF ( + CAST( - 78 AS SIGNED ), - COUNT( * ) ) AS col0
----
-4914

skipif mysql # not compatible
query I rowsort label-9803
SELECT - SUM ( + - 63 ) * NULLIF ( + CAST ( - 78 AS INTEGER ), - COUNT ( * ) ) AS col0
----
-4914

onlyif mysql # aggregate syntax: 
query I rowsort label-9804
SELECT DISTINCT ( + NULLIF ( - - COUNT( * ), + COUNT( * ) * + + 50 ) ) * + 54
----
54

skipif mysql # not compatible
query I rowsort label-9804
SELECT DISTINCT ( + NULLIF ( - - COUNT ( * ), + COUNT ( * ) * + + 50 ) ) * + 54
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-9805
SELECT + 36 + COUNT( * )
----
37

skipif mysql # not compatible
query I rowsort label-9805
SELECT + 36 + COUNT ( * )
----
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9806
SELECT - NULLIF ( + 24, + MIN( ALL + + 21 ) ) * - 60 + 76 DIV + 26, - 26 AS col2
----
1442
-26

skipif mysql # not compatible
query II rowsort label-9806
SELECT - NULLIF ( + 24, + MIN ( ALL + + 21 ) ) * - 60 + 76 / + 26, - 26 AS col2
----
1442
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-9807
SELECT + 12 + + + 47 - - ( - 18 ) + + ( ( + ( + 13 ) ) ) - + ( + 78 ) DIV - 77
----
55

skipif mysql # not compatible
query I rowsort label-9807
SELECT + 12 + + + 47 - - ( - 18 ) + + ( ( + ( + 13 ) ) ) - + ( + 78 ) / - 77
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-9808
SELECT DISTINCT ( - MAX( ALL - 85 ) ) * - 53 + + 47 * + + ( + 18 ) - 22 AS col2
----
-3681

skipif mysql # not compatible
query I rowsort label-9808
SELECT DISTINCT ( - MAX ( ALL - 85 ) ) * - 53 + + 47 * + + ( + 18 ) - 22 AS col2
----
-3681

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9809
SELECT - COUNT( * ) * - 60 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9809
SELECT - COUNT ( * ) * - 60 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9810
SELECT ALL + - 97 DIV 92 * - COUNT( * ) + CAST( 51 AS SIGNED ), - CAST( NULL AS SIGNED ) AS col1
----
52
NULL

skipif mysql # not compatible
query II rowsort label-9810
SELECT ALL + - 97 / 92 * - COUNT ( * ) + CAST ( 51 AS INTEGER ), - CAST ( NULL AS INTEGER ) AS col1
----
52
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9811
SELECT - + COUNT( * ) - + 84 * + - 65 + - - 3 AS col2
----
5462

skipif mysql # not compatible
query I rowsort label-9811
SELECT - + COUNT ( * ) - + 84 * + - 65 + - - 3 AS col2
----
5462

query I rowsort
SELECT - - 27 + + 9 AS col2
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9813
SELECT + 88 * CAST( 83 AS SIGNED ) * - 63 * + 7 + - - COUNT( * )
----
-3221063

skipif mysql # not compatible
query I rowsort label-9813
SELECT + 88 * CAST ( 83 AS INTEGER ) * - 63 * + 7 + - - COUNT ( * )
----
-3221063

query I rowsort
SELECT - 1 + + 57 * - - 45
----
2564

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9815
SELECT - 71 / + ( - - 29 ) + - + CAST( NULL AS SIGNED ) + 26 AS col0, 61 + - 21 AS col2
----
NULL
40

skipif mysql # not compatible
query II rowsort label-9815
SELECT - 71 / + ( - - 29 ) + - + CAST ( NULL AS INTEGER ) + 26 AS col0, 61 + - 21 AS col2
----
NULL
40

onlyif mysql # aggregate syntax: 
query I rowsort label-9816
SELECT ALL - 30 * - 43 * + - 76 * - - NULLIF ( + - NULLIF ( ( + SUM( + 37 ) ), - + ( - 65 ) * - 77 ), - 42 ) AS col2
----
3627480

skipif mysql # not compatible
query I rowsort label-9816
SELECT ALL - 30 * - 43 * + - 76 * - - NULLIF ( + - NULLIF ( ( + SUM ( + 37 ) ), - + ( - 65 ) * - 77 ), - 42 ) AS col2
----
3627480

query I rowsort
SELECT - + 50 * - + 88
----
4400

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9818
SELECT ALL 25 / - 83 + - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9818
SELECT ALL 25 / - 83 + - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9819
SELECT + MAX( ALL - 35 ) AS col1, COUNT( * ) AS col1
----
-35
1

skipif mysql # not compatible
query II rowsort label-9819
SELECT + MAX ( ALL - 35 ) AS col1, COUNT ( * ) AS col1
----
-35
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9820
SELECT ALL - 39 DIV 13 + - 80 + - ( + + 34 ) AS col1
----
-117

skipif mysql # not compatible
query I rowsort label-9820
SELECT ALL - 39 / 13 + - 80 + - ( + + 34 ) AS col1
----
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-9821
SELECT ALL + - 23 * + 78 - - 48 * 65 * + 73 + + - 49 + - COUNT( * )
----
225916

skipif mysql # not compatible
query I rowsort label-9821
SELECT ALL + - 23 * + 78 - - 48 * 65 * + 73 + + - 49 + - COUNT ( * )
----
225916

onlyif mysql # aggregate syntax: 
query I rowsort label-9822
SELECT - COUNT( * ) * - 18 + - 51 AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-9822
SELECT - COUNT ( * ) * - 18 + - 51 AS col2
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-9823
SELECT ALL - 60 * COUNT( * ) + + 66 AS col2
----
6

skipif mysql # not compatible
query I rowsort label-9823
SELECT ALL - 60 * COUNT ( * ) + + 66 AS col2
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9824
SELECT + NULLIF ( CAST( NULL AS SIGNED ), + 39 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9824
SELECT + NULLIF ( CAST ( NULL AS INTEGER ), + 39 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9825
SELECT ALL + MIN( + ( + + 48 ) )
----
48

skipif mysql # not compatible
query I rowsort label-9825
SELECT ALL + MIN ( + ( + + 48 ) )
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9826
SELECT - CAST( NULL AS SIGNED ) * - 84 * COALESCE ( + 94, + 68 + + + 83 * + 40 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9826
SELECT - CAST ( NULL AS INTEGER ) * - 84 * COALESCE ( + 94, + 68 + + + 83 * + 40 )
----
NULL

query I rowsort
SELECT ( 24 ) AS col0
----
24

query I rowsort
SELECT + 66 * - + 17 + 51 * + 15 AS col2
----
-357

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9829
SELECT DISTINCT - 79 * CAST( NULL AS SIGNED ) + - - 14
----
NULL

skipif mysql # not compatible
query I rowsort label-9829
SELECT DISTINCT - 79 * CAST ( NULL AS INTEGER ) + - - 14
----
NULL

query I rowsort
SELECT DISTINCT ( + 80 ) * + - 95 col1
----
-7600

onlyif mysql # aggregate syntax: 
query I rowsort label-9831
SELECT DISTINCT MAX( 29 ) * - + 67 + + 81 AS col1
----
-1862

skipif mysql # not compatible
query I rowsort label-9831
SELECT DISTINCT MAX ( 29 ) * - + 67 + + 81 AS col1
----
-1862

query I rowsort
SELECT + 79 * + 66 AS col2
----
5214

query I rowsort
SELECT CASE - - 39 WHEN 57 * + 72 + + 63 THEN 70 WHEN 49 THEN - COALESCE ( + ( - 38 ), + + 39 ) / 58 ELSE NULL END
----
NULL

query I rowsort
SELECT + 72 + 69
----
141

query I rowsort
SELECT ALL 37 * 94 * + 62 AS col0
----
215636

onlyif mysql # aggregate syntax: 
query I rowsort label-9836
SELECT - 43 * - COUNT( * )
----
43

skipif mysql # not compatible
query I rowsort label-9836
SELECT - 43 * - COUNT ( * )
----
43

query I rowsort
SELECT 68 * - 14 + 30
----
-922

onlyif mysql # aggregate syntax: 
query I rowsort label-9838
SELECT SUM( + 6 )
----
6

skipif mysql # not compatible
query I rowsort label-9838
SELECT SUM ( + 6 )
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9839
SELECT - CAST( - - 30 AS SIGNED ) AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-9839
SELECT - CAST ( - - 30 AS INTEGER ) AS col2
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9840
SELECT + 37 + + - CAST( - + 38 AS SIGNED ) + + - 78 DIV 44 * - 70 * + 76 * + NULLIF ( COUNT( * ), - 32 ) AS col1
----
5395

skipif mysql # not compatible
query I rowsort label-9840
SELECT + 37 + + - CAST ( - + 38 AS INTEGER ) + + - 78 / 44 * - 70 * + 76 * + NULLIF ( COUNT ( * ), - 32 ) AS col1
----
5395

query I rowsort
SELECT - ( - 65 ) AS col2
----
65

query I rowsort
SELECT - 19 + - 64 + - 61
----
-144

onlyif mysql # DIV for integer division: 
query I rowsort label-9843
SELECT ALL 89 * + 66 - 48 DIV - + 55 + - 68 AS col2
----
5806

skipif mysql # not compatible
query I rowsort label-9843
SELECT ALL 89 * + 66 - 48 / - + 55 + - 68 AS col2
----
5806

onlyif mysql # aggregate syntax: 
query I rowsort label-9844
SELECT + COUNT( * ) + - - 27 AS col2
----
28

skipif mysql # not compatible
query I rowsort label-9844
SELECT + COUNT ( * ) + - - 27 AS col2
----
28

onlyif mysql # aggregate syntax: 
query II rowsort label-9845
SELECT DISTINCT 18 * - + 49 * 74 AS col1, COUNT( * )
----
-65268
1

skipif mysql # not compatible
query II rowsort label-9845
SELECT DISTINCT 18 * - + 49 * 74 AS col1, COUNT ( * )
----
-65268
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9846
SELECT + 19 + COUNT( * ) AS col0
----
20

skipif mysql # not compatible
query I rowsort label-9846
SELECT + 19 + COUNT ( * ) AS col0
----
20

query II rowsort
SELECT ALL + 96 AS col1, + 93 * - 2 + ( - 25 )
----
96
-211

query II rowsort
SELECT - + 85 AS col2, + 11 + - 3 col2
----
-85
8

query I rowsort
SELECT DISTINCT - 34 * 53
----
-1802

query I rowsort
SELECT - + CASE - 26 WHEN 51 THEN NULL WHEN - 9 THEN 7 END AS col0
----
NULL

query I rowsort
SELECT ALL 29 * 36 col0
----
1044

query II rowsort
SELECT - 21 col2, + ( 87 ) * + 21 AS col1
----
-21
1827

query I rowsort
SELECT ALL ( - 38 ) col2
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-9854
SELECT - + NULLIF ( MIN( + 28 ), - 69 ) AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-9854
SELECT - + NULLIF ( MIN ( + 28 ), - 69 ) AS col1
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9855
SELECT 70 * CAST( NULL AS SIGNED ) + + 71 * + 34 + NULLIF ( + - NULLIF ( + 66, - 35 * - 3 - - CAST( NULL AS SIGNED ) ), - CASE + - 65 WHEN + 40 THEN + 48 + - 33 ELSE NULL END * - ( - COALESCE ( - + 78, - + 4 ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9855
SELECT 70 * CAST ( NULL AS INTEGER ) + + 71 * + 34 + NULLIF ( + - NULLIF ( + 66, - 35 * - 3 - - CAST ( NULL AS INTEGER ) ), - CASE + - 65 WHEN + 40 THEN + 48 + - 33 ELSE NULL END * - ( - COALESCE ( - + 78, - + 4 ) ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9856
SELECT DISTINCT - + 52 DIV - 58 col1
----
0

skipif mysql # not compatible
query I rowsort label-9856
SELECT DISTINCT - + 52 / - 58 col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9857
SELECT ALL + - CASE - + ( - 23 ) WHEN + COUNT( * ) THEN + + CAST( + - 31 AS SIGNED ) WHEN + + 78 THEN - COUNT( * ) ELSE NULL END + - 19
----
NULL

skipif mysql # not compatible
query I rowsort label-9857
SELECT ALL + - CASE - + ( - 23 ) WHEN + COUNT ( * ) THEN + + CAST ( + - 31 AS INTEGER ) WHEN + + 78 THEN - COUNT ( * ) ELSE NULL END + - 19
----
NULL

query I rowsort
SELECT DISTINCT - 2 + - - 10 col1
----
8

query I rowsort
SELECT DISTINCT - + 23 AS col1
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-9860
SELECT CASE + 67 WHEN + 71 / + 25 - CASE - 74 WHEN - COALESCE ( - 4, 17, 67 ) * + 21 THEN + 5 * 6 / + COALESCE ( - + 45, COUNT( ALL - + 55 ) - + 1 * AVG ( + 17 ), - 26 * + 35 ) + - 67 END THEN - + 67 / + 59 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9860
SELECT CASE + 67 WHEN + 71 / + 25 - CASE - 74 WHEN - COALESCE ( - 4, 17, 67 ) * + 21 THEN + 5 * 6 / + COALESCE ( - + 45, COUNT ( ALL - + 55 ) - + 1 * AVG ( + 17 ), - 26 * + 35 ) + - 67 END THEN - + 67 / + 59 END
----
NULL

query I rowsort
SELECT ( + ( - 19 ) ) * + 16 + + - 67 AS col2
----
-371

query I rowsort
SELECT ALL - 8 * - ( - 47 )
----
-376

query I rowsort
SELECT 35 * - 43 + - 69 AS col2
----
-1574

onlyif mysql # aggregate syntax: 
query I rowsort label-9864
SELECT ALL + COALESCE ( + + 26, COUNT( + 82 ) + + + COUNT( * ) + SUM( + 74 ) ) - - 1
----
27

skipif mysql # not compatible
query I rowsort label-9864
SELECT ALL + COALESCE ( + + 26, COUNT ( + 82 ) + + + COUNT ( * ) + SUM ( + 74 ) ) - - 1
----
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9865
SELECT COUNT( * ) - - 70 + - 83 DIV 65 * + 70 * - 97
----
6861

skipif mysql # not compatible
query I rowsort label-9865
SELECT COUNT ( * ) - - 70 + - 83 / 65 * + 70 * - 97
----
6861

onlyif mysql # aggregate syntax: 
query I rowsort label-9866
SELECT DISTINCT - MAX( DISTINCT - 4 ) col0
----
4

skipif mysql # not compatible
query I rowsort label-9866
SELECT DISTINCT - MAX ( DISTINCT - 4 ) col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9867
SELECT ALL - CASE - 74 WHEN - - MAX( DISTINCT - ( - 17 ) ) THEN 45 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9867
SELECT ALL - CASE - 74 WHEN - - MAX ( DISTINCT - ( - 17 ) ) THEN 45 END col1
----
NULL

query II rowsort
SELECT ALL - 18 - + 14, - 9 AS col1
----
-32
-9

query II rowsort
SELECT 14 * 11 AS col0, 89
----
154
89

onlyif mysql # aggregate syntax: 
query I rowsort label-9870
SELECT DISTINCT - ( - COUNT( - - 36 ) )
----
1

skipif mysql # not compatible
query I rowsort label-9870
SELECT DISTINCT - ( - COUNT ( - - 36 ) )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9871
SELECT 24 + - + COUNT( * ) + + - 66 * 24 DIV - - 58 + 22 + - 36 * - 63 + SUM( ALL + 93 )
----
2379

skipif mysql # not compatible
query I rowsort label-9871
SELECT 24 + - + COUNT ( * ) + + - 66 * 24 / - - 58 + 22 + - 36 * - 63 + SUM ( ALL + 93 )
----
2379

onlyif mysql # aggregate syntax: 
query I rowsort label-9872
SELECT ALL - ( + SUM( ALL - 90 ) )
----
90

skipif mysql # not compatible
query I rowsort label-9872
SELECT ALL - ( + SUM ( ALL - 90 ) )
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9873
SELECT ALL 83 * + COUNT( * )
----
83

skipif mysql # not compatible
query I rowsort label-9873
SELECT ALL 83 * + COUNT ( * )
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-9874
SELECT 40 * - 60 * 48 * + ( + COUNT( * ) )
----
-115200

skipif mysql # not compatible
query I rowsort label-9874
SELECT 40 * - 60 * 48 * + ( + COUNT ( * ) )
----
-115200

query I rowsort
SELECT ALL 1 * - 36
----
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-9876
SELECT DISTINCT - 1 DIV + ( + + 3 )
----
0

skipif mysql # not compatible
query I rowsort label-9876
SELECT DISTINCT - 1 / + ( + + 3 )
----
0

query I rowsort
SELECT 59 + 9
----
68

query I rowsort
SELECT 67 * 39 AS col2
----
2613

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9879
SELECT - SUM( ALL + CAST( 2 AS SIGNED ) ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-9879
SELECT - SUM ( ALL + CAST ( 2 AS INTEGER ) ) AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9880
SELECT + 70 + 98 + + + 2 + MAX( ALL - 26 )
----
144

skipif mysql # not compatible
query I rowsort label-9880
SELECT + 70 + 98 + + + 2 + MAX ( ALL - 26 )
----
144

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9881
SELECT + COUNT( * ) DIV - ( + 44 )
----
0

skipif mysql # not compatible
query I rowsort label-9881
SELECT + COUNT ( * ) / - ( + 44 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9882
SELECT ( + 4 ) + + + COUNT( * )
----
5

skipif mysql # not compatible
query I rowsort label-9882
SELECT ( + 4 ) + + + COUNT ( * )
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9883
SELECT + CAST( - + 68 AS SIGNED ) * - + 50 * + 79 AS col2, COUNT( * ) + - 74
----
268600
-73

skipif mysql # not compatible
query II rowsort label-9883
SELECT + CAST ( - + 68 AS INTEGER ) * - + 50 * + 79 AS col2, COUNT ( * ) + - 74
----
268600
-73

query I rowsort
SELECT 92 + + + 83 * - 92
----
-7544

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9885
SELECT ALL + 45 + - + CAST( NULL AS SIGNED ) + + NULLIF ( - - CASE 62 WHEN - + COALESCE ( 6, 70, - - 79 ) * - 0 THEN - 41 + AVG ( ALL + + 10 ) END, + + 18 + 73 + CAST( NULL AS DECIMAL ) + - COUNT( * ) * - + 10 * + 89 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9885
SELECT ALL + 45 + - + CAST ( NULL AS INTEGER ) + + NULLIF ( - - CASE 62 WHEN - + COALESCE ( 6, 70, - - 79 ) * - 0 THEN - 41 + AVG ( ALL + + 10 ) END, + + 18 + 73 + CAST ( NULL AS REAL ) + - COUNT ( * ) * - + 10 * + 89 ) col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9886
SELECT DISTINCT + SUM( ALL - - 0 ) DIV - + 75
----
0

skipif mysql # not compatible
query I rowsort label-9886
SELECT DISTINCT + SUM ( ALL - - 0 ) / - + 75
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9887
SELECT + COUNT( * ) DIV + ( + 61 ) - - COUNT( * ) + - 89 col1
----
-88

skipif mysql # not compatible
query I rowsort label-9887
SELECT + COUNT ( * ) / + ( + 61 ) - - COUNT ( * ) + - 89 col1
----
-88

query I rowsort
SELECT - 19 - 88 + 54 AS col2
----
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-9889
SELECT 15 + - 41, - COUNT( * ) AS col2
----
-26
-1

skipif mysql # not compatible
query II rowsort label-9889
SELECT 15 + - 41, - COUNT ( * ) AS col2
----
-26
-1

query I rowsort
SELECT ALL + 73 * - 99 AS col2
----
-7227

query I rowsort
SELECT DISTINCT - 62 + + 22
----
-40

query I rowsort
SELECT + NULLIF ( COALESCE ( 72, - 10 ), 83 * + 10 * + 43 )
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-9893
SELECT DISTINCT - NULLIF ( 2, + MIN( DISTINCT + 12 ) + + 30 )
----
-2

skipif mysql # not compatible
query I rowsort label-9893
SELECT DISTINCT - NULLIF ( 2, + MIN ( DISTINCT + 12 ) + + 30 )
----
-2

query I rowsort
SELECT ( 41 ) + 84
----
125

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9895
SELECT + 62 DIV - COUNT( * ) + + 72 + - 5 AS col1, + COUNT( * ) AS col2
----
5
1

skipif mysql # not compatible
query II rowsort label-9895
SELECT + 62 / - COUNT ( * ) + + 72 + - 5 AS col1, + COUNT ( * ) AS col2
----
5
1

query I rowsort
SELECT - + 22 * - ( + - 31 ) + + 24 - 11 - - 39
----
-630

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9897
SELECT + CAST( NULL AS DECIMAL ) + - 46
----
NULL

skipif mysql # not compatible
query I rowsort label-9897
SELECT + CAST ( NULL AS REAL ) + - 46
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9898
SELECT ALL ( + 26 ) * + 23 * - + 6 + - 27 + - - 32 * + - 23, ( - CAST( NULL AS SIGNED ) ) AS col2
----
-4351
NULL

skipif mysql # not compatible
query II rowsort label-9898
SELECT ALL ( + 26 ) * + 23 * - + 6 + - 27 + - - 32 * + - 23, ( - CAST ( NULL AS INTEGER ) ) AS col2
----
-4351
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9899
SELECT 6 * COUNT( * )
----
6

skipif mysql # not compatible
query I rowsort label-9899
SELECT 6 * COUNT ( * )
----
6

query I rowsort
SELECT ALL + ( + - 60 ) - + 65 + + 33 - + 93 * + ( - 64 ) AS col2
----
5860

onlyif mysql # aggregate syntax: 
query I rowsort label-9901
SELECT ALL - CASE COUNT( * ) WHEN 64 THEN - 28 END / - 30 + - 93 + - + 28 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9901
SELECT ALL - CASE COUNT ( * ) WHEN 64 THEN - 28 END / - 30 + - 93 + - + 28 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9902
SELECT 49 * + 59 + - 59 col0, COUNT( * ) AS col1
----
2832
1

skipif mysql # not compatible
query II rowsort label-9902
SELECT 49 * + 59 + - 59 col0, COUNT ( * ) AS col1
----
2832
1

query I rowsort
SELECT ALL - ( + 37 ) * + 85 AS col2
----
-3145

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9904
SELECT - 44 / + 13 / + CAST( NULL AS SIGNED ) + + AVG ( DISTINCT - 34 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9904
SELECT - 44 / + 13 / + CAST ( NULL AS INTEGER ) + + AVG ( DISTINCT - 34 ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9905
SELECT NULLIF ( - 2, 18 ) DIV + 45
----
0

skipif mysql # not compatible
query I rowsort label-9905
SELECT NULLIF ( - 2, 18 ) / + 45
----
0

query I rowsort
SELECT 50 * - 80
----
-4000

onlyif mysql # aggregate syntax: 
query I rowsort label-9907
SELECT NULLIF ( - 57, SUM( + 12 ) ) + - - 54
----
-3

skipif mysql # not compatible
query I rowsort label-9907
SELECT NULLIF ( - 57, SUM ( + 12 ) ) + - - 54
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9908
SELECT + COUNT( * ), + 81 DIV + - COUNT( * ) AS col1
----
1
-81

skipif mysql # not compatible
query II rowsort label-9908
SELECT + COUNT ( * ), + 81 / + - COUNT ( * ) AS col1
----
1
-81

query I rowsort
SELECT 60 + - + 69 AS col2
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9910
SELECT ALL - 14 * - 36 * CAST( - 55 AS SIGNED ) AS col1
----
-27720

skipif mysql # not compatible
query I rowsort label-9910
SELECT ALL - 14 * - 36 * CAST ( - 55 AS INTEGER ) AS col1
----
-27720

onlyif mysql # aggregate syntax: 
query I rowsort label-9911
SELECT ALL COUNT( + + 14 ) * 68 * - 79
----
-5372

skipif mysql # not compatible
query I rowsort label-9911
SELECT ALL COUNT ( + + 14 ) * 68 * - 79
----
-5372

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9912
SELECT DISTINCT - 96 * + MIN( + - 84 ) * - 49 * + 26 AS col1, + CAST( 54 AS SIGNED ) AS col1
----
-10273536
54

skipif mysql # not compatible
query II rowsort label-9912
SELECT DISTINCT - 96 * + MIN ( + - 84 ) * - 49 * + 26 AS col1, + CAST ( 54 AS INTEGER ) AS col1
----
-10273536
54

onlyif mysql # aggregate syntax: 
query II rowsort label-9913
SELECT ALL - COALESCE ( 32, - COUNT( * ) ) AS col1, 4 AS col1
----
-32
4

skipif mysql # not compatible
query II rowsort label-9913
SELECT ALL - COALESCE ( 32, - COUNT ( * ) ) AS col1, 4 AS col1
----
-32
4

query I rowsort
SELECT 39 * 34
----
1326

onlyif mysql # aggregate syntax: 
query I rowsort label-9915
SELECT 15 * + + ( + COUNT( DISTINCT + 84 ) ) * COUNT( DISTINCT - - 3 ) + - COUNT( 15 )
----
14

skipif mysql # not compatible
query I rowsort label-9915
SELECT 15 * + + ( + COUNT ( DISTINCT + 84 ) ) * COUNT ( DISTINCT - - 3 ) + - COUNT ( 15 )
----
14

onlyif mysql # DIV for integer division: 
query II rowsort label-9916
SELECT DISTINCT 88, + 90 + - 90 DIV - + 65 AS col1
----
88
91

skipif mysql # not compatible
query II rowsort label-9916
SELECT DISTINCT 88, + 90 + - 90 / - + 65 AS col1
----
88
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-9917
SELECT DISTINCT + 56 AS col1, + 75 / + + CAST( 50 AS DECIMAL ) * - - 61 / - 17 * 91 * - - CAST( NULL AS SIGNED ) + - COUNT( * ) AS col0
----
56
NULL

skipif mysql # not compatible
query II rowsort label-9917
SELECT DISTINCT + 56 AS col1, + 75 / + + CAST ( 50 AS REAL ) * - - 61 / - 17 * 91 * - - CAST ( NULL AS INTEGER ) + - COUNT ( * ) AS col0
----
56
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9918
SELECT + CAST( + 31 AS SIGNED ) AS col1
----
31

skipif mysql # not compatible
query I rowsort label-9918
SELECT + CAST ( + 31 AS INTEGER ) AS col1
----
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9919
SELECT ALL - - 11 DIV 88 DIV NULLIF ( 36, - + COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-9919
SELECT ALL - - 11 / 88 / NULLIF ( 36, - + COUNT ( * ) )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9920
SELECT - CASE 98 WHEN + + MIN( + 83 ) + 46 * - AVG ( ALL + - 43 ) * - + 68 THEN NULL WHEN + 21 * 92 - - CAST( - 45 AS SIGNED ) THEN NULL ELSE + 21 + - 46 END * COUNT( * ) AS col2
----
25

skipif mysql # not compatible
query I rowsort label-9920
SELECT - CASE 98 WHEN + + MIN ( + 83 ) + 46 * - AVG ( ALL + - 43 ) * - + 68 THEN NULL WHEN + 21 * 92 - - CAST ( - 45 AS INTEGER ) THEN NULL ELSE + 21 + - 46 END * COUNT ( * ) AS col2
----
25

query I rowsort
SELECT DISTINCT + 16 + 34
----
50

onlyif mysql # aggregate syntax: 
query II rowsort label-9922
SELECT DISTINCT - 52 + + 90 * + + 59 AS col2, 61 + + + ( - 7 ) + COUNT( * )
----
5258
55

skipif mysql # not compatible
query II rowsort label-9922
SELECT DISTINCT - 52 + + 90 * + + 59 AS col2, 61 + + + ( - 7 ) + COUNT ( * )
----
5258
55

onlyif mysql # aggregate syntax: 
query I rowsort label-9923
SELECT ALL - ( - + COUNT( * ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9923
SELECT ALL - ( - + COUNT ( * ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9924
SELECT ALL + + 19 * - + 50 * COUNT( * ) AS col0
----
-950

skipif mysql # not compatible
query I rowsort label-9924
SELECT ALL + + 19 * - + 50 * COUNT ( * ) AS col0
----
-950

query II rowsort
SELECT - - 13 + - 33 - 84 AS col1, - 50
----
-104
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-9926
SELECT ALL - MIN( - 73 )
----
73

skipif mysql # not compatible
query I rowsort label-9926
SELECT ALL - MIN ( - 73 )
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-9927
SELECT ALL COUNT( ALL ( - 94 ) )
----
1

skipif mysql # not compatible
query I rowsort label-9927
SELECT ALL COUNT ( ALL ( - 94 ) )
----
1

query II rowsort
SELECT - ( - ( 80 ) ), + 84 + + 66 AS col1
----
80
150

query I rowsort
SELECT ALL - 58 + - 99 AS col2
----
-157

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9930
SELECT - 84 * - COALESCE ( - - CAST( NULL AS SIGNED ), 11 - - 38 + - + ( + - 82 ) * + SUM( DISTINCT - + 19 ) * + COUNT( * ), + 4, - NULLIF ( 0, 46 * + + 59 ) ) AS col1
----
-126756

skipif mysql # not compatible
query I rowsort label-9930
SELECT - 84 * - COALESCE ( - - CAST ( NULL AS INTEGER ), 11 - - 38 + - + ( + - 82 ) * + SUM ( DISTINCT - + 19 ) * + COUNT ( * ), + 4, - NULLIF ( 0, 46 * + + 59 ) ) AS col1
----
-126756

query I rowsort
SELECT + 53 * 22 col0
----
1166

query I rowsort
SELECT - 97 * - - 32 col0
----
-3104

query I rowsort
SELECT + 67 + + - 19 AS col0
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9934
SELECT ALL 41 DIV - COUNT( ALL + 74 )
----
-41

skipif mysql # not compatible
query I rowsort label-9934
SELECT ALL 41 / - COUNT ( ALL + 74 )
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9935
SELECT ALL + + CAST( NULL AS SIGNED ) - 64
----
NULL

skipif mysql # not compatible
query I rowsort label-9935
SELECT ALL + + CAST ( NULL AS INTEGER ) - 64
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9936
SELECT DISTINCT + ( + - COUNT( * ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9936
SELECT DISTINCT + ( + - COUNT ( * ) ) AS col1
----
-1

query I rowsort
SELECT ALL 64 - - 95 AS col2
----
159

query I rowsort
SELECT + - 12 * + 80 AS col0
----
-960

query II rowsort
SELECT ALL 30 AS col2, + 68
----
30
68

onlyif mysql # aggregate syntax: 
query II rowsort label-9940
SELECT ALL 82 AS col1, ( 91 ) * COUNT( * ) AS col0
----
82
91

skipif mysql # not compatible
query II rowsort label-9940
SELECT ALL 82 AS col1, ( 91 ) * COUNT ( * ) AS col0
----
82
91

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9941
SELECT + CASE 84 WHEN - - CAST( NULL AS DECIMAL ) * - 54 THEN - - NULLIF ( + 79, + + 94 * 42 * COUNT( * ) / MIN( DISTINCT + 96 ) ) WHEN + COUNT( * ) * + - 30 / - 14 * 2 - - ( - - 54 ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9941
SELECT + CASE 84 WHEN - - CAST ( NULL AS REAL ) * - 54 THEN - - NULLIF ( + 79, + + 94 * 42 * COUNT ( * ) / MIN ( DISTINCT + 96 ) ) WHEN + COUNT ( * ) * + - 30 / - 14 * 2 - - ( - - 54 ) THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT ( - 35 ) AS col0
----
-35

query II rowsort
SELECT + 44 * + 44 AS col0, + 18 AS col2
----
1936
18

query I rowsort
SELECT + 50 * - 67 * - - 10
----
-33500

query I rowsort
SELECT + ( + 18 ) AS col0
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9946
SELECT - 3 DIV + COUNT( * ) - 61 - + 35 + 62 AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-9946
SELECT - 3 / + COUNT ( * ) - 61 - + 35 + 62 AS col1
----
-37

query I rowsort
SELECT + ( 10 )
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-9948
SELECT ALL + MAX( 70 ), + 17 AS col1
----
70
17

skipif mysql # not compatible
query II rowsort label-9948
SELECT ALL + MAX ( 70 ), + 17 AS col1
----
70
17

query II rowsort
SELECT + 50 AS col0, + 34 AS col1
----
50
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9950
SELECT ALL COALESCE ( + COALESCE ( + COUNT( * ), - - ( + + 27 ), - + 2 + 60 - + CAST( NULL AS SIGNED ) * - - CAST( NULL AS SIGNED ) + - 10 + + 85, 20 ), 51 * - - COUNT( * ), + + 45 ) * + NULLIF ( + 42, 69 * + + 51 ) * + - COUNT( * ) + - + 58 AS col0, + 77 + - 25 AS col0
----
-100
52

skipif mysql # not compatible
query II rowsort label-9950
SELECT ALL COALESCE ( + COALESCE ( + COUNT ( * ), - - ( + + 27 ), - + 2 + 60 - + CAST ( NULL AS INTEGER ) * - - CAST ( NULL AS INTEGER ) + - 10 + + 85, 20 ), 51 * - - COUNT ( * ), + + 45 ) * + NULLIF ( + 42, 69 * + + 51 ) * + - COUNT ( * ) + - + 58 AS col0, + 77 + - 25 AS col0
----
-100
52

query I rowsort
SELECT + 14 * - 54 AS col0
----
-756

query I rowsort
SELECT 91 * + 51 + + 59 AS col2
----
4700

onlyif mysql # aggregate syntax: 
query I rowsort label-9953
SELECT DISTINCT COUNT( * ) * + COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9953
SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) AS col0
----
1

query I rowsort
SELECT + ( - + 9 )
----
-9

query I rowsort
SELECT ALL 14 * - 33 + - 79
----
-541

query I rowsort
SELECT 56 * + 42 + - 2 col0
----
2350

onlyif mysql # aggregate syntax: 
query II rowsort label-9957
SELECT + 27 AS col0, COUNT( * ) * - 93
----
27
-93

skipif mysql # not compatible
query II rowsort label-9957
SELECT + 27 AS col0, COUNT ( * ) * - 93
----
27
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-9958
SELECT ALL 26 * - COUNT( * ) * + COUNT( ALL - 45 ) + + 61 * 23 AS col1
----
1377

skipif mysql # not compatible
query I rowsort label-9958
SELECT ALL 26 * - COUNT ( * ) * + COUNT ( ALL - 45 ) + + 61 * 23 AS col1
----
1377

query I rowsort
SELECT + ( + 39 )
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-9960
SELECT DISTINCT + 86 * + 34 * + 28 * - + 58 + + ( - 46 ) * + + 74 * COUNT( * ) + - - 77 + + MIN( + + 48 )
----
-4751855

skipif mysql # not compatible
query I rowsort label-9960
SELECT DISTINCT + 86 * + 34 * + 28 * - + 58 + + ( - 46 ) * + + 74 * COUNT ( * ) + - - 77 + + MIN ( + + 48 )
----
-4751855

onlyif mysql # aggregate syntax: 
query I rowsort label-9961
SELECT DISTINCT - ( 84 ) * - COUNT( * ) + - + 94 * + 33 AS col0
----
-3018

skipif mysql # not compatible
query I rowsort label-9961
SELECT DISTINCT - ( 84 ) * - COUNT ( * ) + - + 94 * + 33 AS col0
----
-3018

onlyif mysql # aggregate syntax: 
query I rowsort label-9962
SELECT ALL - SUM( DISTINCT 9 ) AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-9962
SELECT ALL - SUM ( DISTINCT 9 ) AS col0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9963
SELECT DISTINCT + 86 * + + SUM( + 59 ) + - COUNT( + - 36 )
----
5073

skipif mysql # not compatible
query I rowsort label-9963
SELECT DISTINCT + 86 * + + SUM ( + 59 ) + - COUNT ( + - 36 )
----
5073

onlyif mysql # aggregate syntax: 
query I rowsort label-9964
SELECT + - 73 + + 41 * - 86 * COUNT( * ) AS col2
----
-3599

skipif mysql # not compatible
query I rowsort label-9964
SELECT + - 73 + + 41 * - 86 * COUNT ( * ) AS col2
----
-3599

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9965
SELECT ALL + SUM( + 1 ) + + CAST( + 12 AS SIGNED )
----
13

skipif mysql # not compatible
query I rowsort label-9965
SELECT ALL + SUM ( + 1 ) + + CAST ( + 12 AS INTEGER )
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9966
SELECT + MIN( DISTINCT + 29 ) + 84 DIV + COUNT( * ) + + + 12 * MIN( DISTINCT + 76 ) * 49 AS col1
----
44801

skipif mysql # not compatible
query I rowsort label-9966
SELECT + MIN ( DISTINCT + 29 ) + 84 / + COUNT ( * ) + + + 12 * MIN ( DISTINCT + 76 ) * 49 AS col1
----
44801

onlyif mysql # aggregate syntax: 
query I rowsort label-9967
SELECT - COUNT( DISTINCT + + 45 ) + - - 78 AS col2
----
77

skipif mysql # not compatible
query I rowsort label-9967
SELECT - COUNT ( DISTINCT + + 45 ) + - - 78 AS col2
----
77

query I rowsort
SELECT DISTINCT NULLIF ( 4, 20 + 1 )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9969
SELECT - + 1 * - - MIN( + 2 )
----
-2

skipif mysql # not compatible
query I rowsort label-9969
SELECT - + 1 * - - MIN ( + 2 )
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-9970
SELECT - 95 + + 99 + - 25 + - + 33 + - 56 DIV + 7
----
-62

skipif mysql # not compatible
query I rowsort label-9970
SELECT - 95 + + 99 + - 25 + - + 33 + - 56 / + 7
----
-62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9971
SELECT ALL - 21 - - 92 * SUM( 57 ) DIV - 29 + 44 + - 26 AS col2
----
-183

skipif mysql # not compatible
query I rowsort label-9971
SELECT ALL - 21 - - 92 * SUM ( 57 ) / - 29 + 44 + - 26 AS col2
----
-183

query I rowsort
SELECT ALL + + 91 * + 30
----
2730

onlyif mysql # DIV for integer division: 
query I rowsort label-9973
SELECT - + 41 + + 47 DIV - + 66 AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-9973
SELECT - + 41 + + 47 / - + 66 AS col0
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9974
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + 15 + 37 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9974
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + 15 + 37 col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9975
SELECT - CAST( NULL AS DECIMAL ) * + - ( 73 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9975
SELECT - CAST ( NULL AS REAL ) * + - ( 73 ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9976
SELECT ALL + 86 * - 55 AS col1, + 31 * CAST( - + 95 AS SIGNED ) DIV + COUNT( * ) + + 66 + 2
----
-4730
-2877

skipif mysql # not compatible
query II rowsort label-9976
SELECT ALL + 86 * - 55 AS col1, + 31 * CAST ( - + 95 AS INTEGER ) / + COUNT ( * ) + + 66 + 2
----
-4730
-2877

query I rowsort
SELECT + 9 + + 21
----
30

query I rowsort
SELECT - 20 + - 22 AS col2
----
-42

query I rowsort
SELECT + 26 * - + 1
----
-26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9980
SELECT - COUNT( * ) DIV ( - + 22 )
----
0

skipif mysql # not compatible
query I rowsort label-9980
SELECT - COUNT ( * ) / ( - + 22 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9981
SELECT DISTINCT 26 DIV + 77 * 15 * 62 DIV COUNT( * ) * - 14 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9981
SELECT DISTINCT 26 / + 77 * 15 * 62 / COUNT ( * ) * - 14 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9982
SELECT ALL 61 DIV 87 * - + 63 * - 88 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9982
SELECT ALL 61 / 87 * - + 63 * - 88 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9983
SELECT + 66 + 73 / + NULLIF ( + 39, + - 15 ) / + COUNT( * ) + + ( - MIN( ALL 82 ) ) + + CASE + + 85 WHEN + 55 * + COUNT( * ) + 28 THEN - - ( + + 44 ) ELSE NULL END * 15 + + + 73 / + 98 + - - MIN( 44 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9983
SELECT + 66 + 73 / + NULLIF ( + 39, + - 15 ) / + COUNT ( * ) + + ( - MIN ( ALL 82 ) ) + + CASE + + 85 WHEN + 55 * + COUNT ( * ) + 28 THEN - - ( + + 44 ) ELSE NULL END * 15 + + + 73 / + 98 + - - MIN ( 44 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9984
SELECT DISTINCT - ( - 48 ) DIV - + 17 + - 80 AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-9984
SELECT DISTINCT - ( - 48 ) / - + 17 + - 80 AS col2
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-9985
SELECT + MAX( DISTINCT ( - 1 ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9985
SELECT + MAX ( DISTINCT ( - 1 ) ) AS col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9986
SELECT 60 DIV - 87 + 48 AS col2
----
48

skipif mysql # not compatible
query I rowsort label-9986
SELECT 60 / - 87 + 48 AS col2
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9987
SELECT ALL 10 / - - 83 + + - CAST( COUNT( * ) AS SIGNED ) + + CAST( + ( 4 ) AS SIGNED ) + + CASE - 71 WHEN - 29 + - COUNT( * ) THEN 51 END AS col0, + COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-9987
SELECT ALL 10 / - - 83 + + - CAST ( COUNT ( * ) AS INTEGER ) + + CAST ( + ( 4 ) AS INTEGER ) + + CASE - 71 WHEN - 29 + - COUNT ( * ) THEN 51 END AS col0, + COUNT ( * )
----
NULL
1

query I rowsort
SELECT DISTINCT + 7 col2
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-9989
SELECT 46 + + COUNT( * ) * + COUNT( * ) AS col2, - ( 57 ) * - 60 - - 81
----
47
3501

skipif mysql # not compatible
query II rowsort label-9989
SELECT 46 + + COUNT ( * ) * + COUNT ( * ) AS col2, - ( 57 ) * - 60 - - 81
----
47
3501

query II rowsort
SELECT ALL 18 * + 22 AS col2, + 35 col1
----
396
35

onlyif mysql # aggregate syntax: 
query I rowsort label-9991
SELECT MAX( 5 ) + 66 AS col2
----
71

skipif mysql # not compatible
query I rowsort label-9991
SELECT MAX ( 5 ) + 66 AS col2
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-9992
SELECT DISTINCT 53 + COUNT( * ) + + 80 AS col1
----
134

skipif mysql # not compatible
query I rowsort label-9992
SELECT DISTINCT 53 + COUNT ( * ) + + 80 AS col1
----
134

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9993
SELECT ALL 12 + - + 24 DIV ( - 46 ) DIV - - ( + CAST( - COUNT( * ) AS SIGNED ) ) * + 88 + 64 - 13 - - 10 + - 75 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-9993
SELECT ALL 12 + - + 24 / ( - 46 ) / - - ( + CAST ( - COUNT ( * ) AS INTEGER ) ) * + 88 + 64 - 13 - - 10 + - 75 AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9994
SELECT ALL + MAX( ALL + 88 ) * + 8 + + COUNT( * ) + - + 85
----
620

skipif mysql # not compatible
query I rowsort label-9994
SELECT ALL + MAX ( ALL + 88 ) * + 8 + + COUNT ( * ) + - + 85
----
620

query I rowsort
SELECT ALL - - 16 AS col1
----
16

query I rowsort
SELECT 21 + 12 * + 66 col1
----
813

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9997
SELECT ALL 55 + - CASE + + 91 WHEN + - 18 THEN + 74 * + - 78 * - 12 + - 31 ELSE + 4 END - CAST( NULL AS SIGNED ) AS col0, 85 * + CASE + 63 WHEN - MIN( DISTINCT - 42 ) * + 41 THEN + 26 * + 57 + + 55 WHEN - SUM( ALL + + 83 ) THEN + + 7 ELSE NULL END + COALESCE ( COUNT( + 51 ), 93, - - ( - + 6 ) )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9997
SELECT ALL 55 + - CASE + + 91 WHEN + - 18 THEN + 74 * + - 78 * - 12 + - 31 ELSE + 4 END - CAST ( NULL AS INTEGER ) AS col0, 85 * + CASE + 63 WHEN - MIN ( DISTINCT - 42 ) * + 41 THEN + 26 * + 57 + + 55 WHEN - SUM ( ALL + + 83 ) THEN + + 7 ELSE NULL END + COALESCE ( COUNT ( + 51 ), 93, - - ( - + 6 ) )
----
NULL
NULL

query I rowsort
SELECT + 39 * - - 53 AS col1
----
2067

onlyif mysql # aggregate syntax: 
query I rowsort label-9999
SELECT COUNT( * ) * - - 9
----
9

skipif mysql # not compatible
query I rowsort label-9999
SELECT COUNT ( * ) * - - 9
----
9

