sqllogictest
Artifact Content
Not logged in

Artifact 7968f8b21f7e3bf10a8c9c8f3f475bdc5d75b841:


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: DIV for integer division: 
query I rowsort label-0
SELECT ALL 21 DIV + 50 + MAX( ALL + 72 ) * - 78 + - NULLIF ( + 12, + 38 - + COUNT( ALL 79 ) ) AS col0
----
-5628

skipif mysql # not compatible
query I rowsort label-0
SELECT ALL 21 / + 50 + MAX ( ALL + 72 ) * - 78 + - NULLIF ( + 12, + 38 - + COUNT ( ALL 79 ) ) AS col0
----
-5628

query I rowsort
SELECT DISTINCT ( - 11 ) + ( + 31 ) + + 10 AS col1
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2
SELECT ALL CAST( 58 AS SIGNED ) + 16 + - + 56 - - - 59 + - - 55
----
14

skipif mysql # not compatible
query I rowsort label-2
SELECT ALL CAST ( 58 AS INTEGER ) + 16 + - + 56 - - - 59 + - - 55
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-3
SELECT ALL COUNT( * ) * SUM( DISTINCT - 66 ) col2
----
-66

skipif mysql # not compatible
query I rowsort label-3
SELECT ALL COUNT ( * ) * SUM ( DISTINCT - 66 ) col2
----
-66

query II rowsort
SELECT 70 + + 59 col2, - 22
----
129
-22

query I rowsort
SELECT DISTINCT - 11 * 71 AS col2
----
-781

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

skipif mysql # not compatible
query I rowsort label-6
SELECT ALL - NULLIF ( + CAST ( 51 AS INTEGER ), - 18 )
----
-51

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8
SELECT ALL + CAST( + - 90 AS SIGNED ) - 93
----
-183

skipif mysql # not compatible
query I rowsort label-8
SELECT ALL + CAST ( + - 90 AS INTEGER ) - 93
----
-183

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-11
SELECT + 19 * - - COALESCE ( + 8, - COALESCE ( + 72, + 52 ), - COALESCE ( MIN( DISTINCT + - ( - 49 ) ), - COUNT( * ) + + 28 * - - COALESCE ( - - ( - CASE COUNT( * ) WHEN ( ( 38 ) ) * - MIN( DISTINCT 24 ) THEN NULL WHEN AVG ( ALL - 9 ) THEN - 31 ELSE 49 * 74 END ), + 54 ) ) ) AS col1
----
152

skipif mysql # not compatible
query I rowsort label-11
SELECT + 19 * - - COALESCE ( + 8, - COALESCE ( + 72, + 52 ), - COALESCE ( MIN ( DISTINCT + - ( - 49 ) ), - COUNT ( * ) + + 28 * - - COALESCE ( - - ( - CASE COUNT ( * ) WHEN ( ( 38 ) ) * - MIN ( DISTINCT 24 ) THEN NULL WHEN AVG ( ALL - 9 ) THEN - 31 ELSE 49 * 74 END ), + 54 ) ) ) AS col1
----
152

onlyif mysql # aggregate syntax: 
query I rowsort label-12
SELECT DISTINCT + + SUM( ALL - 29 ) * + 11 + - + 98 AS col2
----
-417

skipif mysql # not compatible
query I rowsort label-12
SELECT DISTINCT + + SUM ( ALL - 29 ) * + 11 + - + 98 AS col2
----
-417

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-15
SELECT + 46 DIV + COALESCE ( - 63, - 6, 54 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-15
SELECT + 46 / + COALESCE ( - 63, - 6, 54 ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-16
SELECT - COUNT( - ( 74 ) ) * COUNT( * ) * 45 * ( 26 ) * + - 69 * 15 + - + CAST( + 98 AS SIGNED ) AS col1
----
1210852

skipif mysql # not compatible
query I rowsort label-16
SELECT - COUNT ( - ( 74 ) ) * COUNT ( * ) * 45 * ( 26 ) * + - 69 * 15 + - + CAST ( + 98 AS INTEGER ) AS col1
----
1210852

onlyif mysql # DIV for integer division: 
query II rowsort label-17
SELECT DISTINCT 43 DIV - 67 * - ( - - 7 ) * + 98 AS col0, 76 AS col0
----
0
76

skipif mysql # not compatible
query II rowsort label-17
SELECT DISTINCT 43 / - 67 * - ( - - 7 ) * + 98 AS col0, 76 AS col0
----
0
76

query I rowsort
SELECT DISTINCT + NULLIF ( - + 95, - 7 ) AS col2
----
-95

onlyif mysql # aggregate syntax: 
query II rowsort label-19
SELECT SUM( + 48 ) AS col2, 87 col0
----
48
87

skipif mysql # not compatible
query II rowsort label-19
SELECT SUM ( + 48 ) AS col2, 87 col0
----
48
87

query II rowsort
SELECT ALL - 59 + + 29, - 24 AS col1
----
-30
-24

query II rowsort
SELECT - 48, + 40 col2
----
-48
40

query II rowsort
SELECT ALL 49 AS col2, 4 * - 18 * - - 54
----
49
-3888

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-23
SELECT - 51, SUM( ( - - ( - CAST( NULL AS SIGNED ) ) ) ) + - 95 + ( 85 ) * - - 26 / NULLIF ( - 74, - + NULLIF ( - 89, CASE - 82 WHEN + 19 + - 47 * - ( - 39 ) - ( 42 ) THEN NULL WHEN 47 THEN - 78 ELSE NULL END * + 4 ) * 25 ) AS col2
----
-51
NULL

skipif mysql # not compatible
query II rowsort label-23
SELECT - 51, SUM ( ( - - ( - CAST ( NULL AS INTEGER ) ) ) ) + - 95 + ( 85 ) * - - 26 / NULLIF ( - 74, - + NULLIF ( - 89, CASE - 82 WHEN + 19 + - 47 * - ( - 39 ) - ( 42 ) THEN NULL WHEN 47 THEN - 78 ELSE NULL END * + 4 ) * 25 ) AS col2
----
-51
NULL

query I rowsort
SELECT DISTINCT 68 + + 43 AS col0
----
111

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-25
SELECT ALL 27 + - CAST( NULL AS SIGNED ) - + NULLIF ( + - 28, - 40 )
----
NULL

skipif mysql # not compatible
query I rowsort label-25
SELECT ALL 27 + - CAST ( NULL AS INTEGER ) - + NULLIF ( + - 28, - 40 )
----
NULL

query I rowsort
SELECT 20 + 60
----
80

query II rowsort
SELECT 47 AS col2, - 38
----
47
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-28
SELECT 33 DIV 63 + 78 AS col0
----
78

skipif mysql # not compatible
query I rowsort label-28
SELECT 33 / 63 + 78 AS col0
----
78

onlyif mysql # DIV for integer division: 
query II rowsort label-29
SELECT ALL - 0 AS col0, + 33 DIV - 72 AS col2
----
0
0

skipif mysql # not compatible
query II rowsort label-29
SELECT ALL - 0 AS col0, + 33 / - 72 AS col2
----
0
0

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

skipif mysql # not compatible
query I rowsort label-30
SELECT 88 * - COUNT ( * ) + 1 AS col1
----
-87

query I rowsort
SELECT DISTINCT 38 + - 5
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-32
SELECT ALL - 25 AS col1, ( + CAST( + COALESCE ( 3, + - 52 ) AS SIGNED ) )
----
-25
3

skipif mysql # not compatible
query II rowsort label-32
SELECT ALL - 25 AS col1, ( + CAST ( + COALESCE ( 3, + - 52 ) AS INTEGER ) )
----
-25
3

query I rowsort
SELECT DISTINCT + 52 - - 43
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-34
SELECT DISTINCT 84 DIV + + 60 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-34
SELECT DISTINCT 84 / + + 60 AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-35
SELECT + COUNT( * ) * 90 + - 8, CAST( - - 88 AS SIGNED ) AS col2
----
82
88

skipif mysql # not compatible
query II rowsort label-35
SELECT + COUNT ( * ) * 90 + - 8, CAST ( - - 88 AS INTEGER ) AS col2
----
82
88

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

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

query I rowsort
SELECT ALL - - CASE + 6 WHEN + 66 THEN NULL WHEN + + 85 + + 51 THEN + 70 ELSE 76 * - 59 END AS col0
----
-4484

onlyif mysql # DIV for integer division: 
query I rowsort label-38
SELECT + + COALESCE ( - - 17, + 13 DIV 74 * 81 )
----
17

skipif mysql # not compatible
query I rowsort label-38
SELECT + + COALESCE ( - - 17, + 13 / 74 * 81 )
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-39
SELECT + 67 DIV + - SUM( - + 47 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-39
SELECT + 67 / + - SUM ( - + 47 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-40
SELECT ALL - NULLIF ( 3, - COUNT( * ) )
----
-3

skipif mysql # not compatible
query I rowsort label-40
SELECT ALL - NULLIF ( 3, - COUNT ( * ) )
----
-3

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-42
SELECT ( - + 73 ) + + 58 col2, COUNT( + + 4 ) * + 28 AS col1
----
-15
28

skipif mysql # not compatible
query II rowsort label-42
SELECT ( - + 73 ) + + 58 col2, COUNT ( + + 4 ) * + 28 AS col1
----
-15
28

onlyif mysql # aggregate syntax: 
query I rowsort label-43
SELECT ALL + 64 * + NULLIF ( 93, - - SUM( + 96 ) ) AS col0
----
5952

skipif mysql # not compatible
query I rowsort label-43
SELECT ALL + 64 * + NULLIF ( 93, - - SUM ( + 96 ) ) AS col0
----
5952

query II rowsort
SELECT + 26, + 4 col2
----
26
4

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

query I rowsort
SELECT 74 * ( + ( + + 93 ) ) * - 74
----
-509268

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-47
SELECT 5 + - 63 + + 83 * + CAST( - COUNT( * ) AS SIGNED ) AS col2
----
-141

skipif mysql # not compatible
query I rowsort label-47
SELECT 5 + - 63 + + 83 * + CAST ( - COUNT ( * ) AS INTEGER ) AS col2
----
-141

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-48
SELECT - CASE - CAST( COUNT( * ) AS SIGNED ) WHEN COUNT( * ) - + - 27 THEN NULL WHEN 35 + 91 / 53 + - + 30 THEN - MIN( 89 ) ELSE NULL END AS col1, + 54 * - 42 - - + 6
----
NULL
-2262

skipif mysql # not compatible
query II rowsort label-48
SELECT - CASE - CAST ( COUNT ( * ) AS INTEGER ) WHEN COUNT ( * ) - + - 27 THEN NULL WHEN 35 + 91 / 53 + - + 30 THEN - MIN ( 89 ) ELSE NULL END AS col1, + 54 * - 42 - - + 6
----
NULL
-2262

onlyif mysql # aggregate syntax: 
query I rowsort label-49
SELECT - CASE 62 WHEN 39 THEN - 71 WHEN + - 3 THEN NULL WHEN 17 THEN - 43 + + + 83 + - 28 / 92 + + - CASE + CASE COUNT( * ) WHEN + 8 THEN - 4 WHEN - 24 + + AVG ( ALL + 62 ) + NULLIF ( 40 - 30, MAX( - 57 ) ) THEN ( - 92 ) + + 23 END WHEN - 55 THEN NULL WHEN + 51 THEN - 83 ELSE NULL END + 23 ELSE NULL END + + 70 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-49
SELECT - CASE 62 WHEN 39 THEN - 71 WHEN + - 3 THEN NULL WHEN 17 THEN - 43 + + + 83 + - 28 / 92 + + - CASE + CASE COUNT ( * ) WHEN + 8 THEN - 4 WHEN - 24 + + AVG ( ALL + 62 ) + NULLIF ( 40 - 30, MAX ( - 57 ) ) THEN ( - 92 ) + + 23 END WHEN - 55 THEN NULL WHEN + 51 THEN - 83 ELSE NULL END + 23 ELSE NULL END + + 70 AS col0
----
NULL

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

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

query I rowsort
SELECT 97 + + 36 * + + 51 col0
----
1933

query I rowsort
SELECT DISTINCT + 21 * 69 AS col0
----
1449

onlyif mysql # aggregate syntax: 
query I rowsort label-53
SELECT ALL - 62 + + + 0 * + ( - 0 ) + + - COUNT( * ) * + - 28
----
-34

skipif mysql # not compatible
query I rowsort label-53
SELECT ALL - 62 + + + 0 * + ( - 0 ) + + - COUNT ( * ) * + - 28
----
-34

query II rowsort
SELECT ALL + 18 AS col1, ( - ( - + 87 ) ) AS col1
----
18
87

onlyif mysql # DIV for integer division: 
query I rowsort label-55
SELECT - 19 + + - 93 DIV + 21 AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-55
SELECT - 19 + + - 93 / + 21 AS col2
----
-23

query I rowsort
SELECT ALL + 71 * + - 95
----
-6745

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

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

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

query I rowsort
SELECT 55 - - 49 AS col0
----
104

query I rowsort
SELECT 74 + - 19 AS col2
----
55

onlyif mysql # DIV for integer division: 
query II rowsort label-61
SELECT ALL 85 DIV - + 40 AS col1, + 92 - - 94
----
-2
186

skipif mysql # not compatible
query II rowsort label-61
SELECT ALL 85 / - + 40 AS col1, + 92 - - 94
----
-2
186

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-62
SELECT ALL 44 + - 51 + COUNT( * ) DIV COUNT( * ) + - - COUNT( ALL + 4 )
----
-5

skipif mysql # not compatible
query I rowsort label-62
SELECT ALL 44 + - 51 + COUNT ( * ) / COUNT ( * ) + - - COUNT ( ALL + 4 )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-63
SELECT - SUM( DISTINCT - 37 ) + 94
----
131

skipif mysql # not compatible
query I rowsort label-63
SELECT - SUM ( DISTINCT - 37 ) + 94
----
131

onlyif mysql # aggregate syntax: 
query II rowsort label-64
SELECT ALL COUNT( ALL 19 ), - COALESCE ( 70, - 36 ) col1
----
1
-70

skipif mysql # not compatible
query II rowsort label-64
SELECT ALL COUNT ( ALL 19 ), - COALESCE ( 70, - 36 ) col1
----
1
-70

query I rowsort
SELECT - 26 + - 61
----
-87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-66
SELECT + 7 * + 14 + COUNT( * ) DIV - - 25
----
98

skipif mysql # not compatible
query I rowsort label-66
SELECT + 7 * + 14 + COUNT ( * ) / - - 25
----
98

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-68
SELECT + ( - 69 ) * 64 * 41 * 99 + - 59 DIV - 24 - 81
----
-17924623

skipif mysql # not compatible
query I rowsort label-68
SELECT + ( - 69 ) * 64 * 41 * 99 + - 59 / - 24 - 81
----
-17924623

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-70
SELECT NULLIF ( - + COALESCE ( 77, + COUNT( * ) ), 33 )
----
-77

skipif mysql # not compatible
query I rowsort label-70
SELECT NULLIF ( - + COALESCE ( 77, + COUNT ( * ) ), 33 )
----
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-71
SELECT + COALESCE ( - 2, - - COUNT( * ) * + ( + 24 ) DIV - COUNT( * ) + - 51 ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-71
SELECT + COALESCE ( - 2, - - COUNT ( * ) * + ( + 24 ) / - COUNT ( * ) + - 51 ) AS col0
----
-2

query I rowsort
SELECT - ( 30 ) * 81 AS col0
----
-2430

onlyif mysql # aggregate syntax: 
query I rowsort label-73
SELECT + ( 88 ) * + 58 - + NULLIF ( 93, COUNT( * ) + + 82 * - MAX( + 86 ) + 77 ) + 15 AS col2
----
5026

skipif mysql # not compatible
query I rowsort label-73
SELECT + ( 88 ) * + 58 - + NULLIF ( 93, COUNT ( * ) + + 82 * - MAX ( + 86 ) + 77 ) + 15 AS col2
----
5026

query I rowsort
SELECT + 87 + + - 38
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-75
SELECT + CAST( NULL AS SIGNED ) DIV + - 44 AS col1, COALESCE ( - + 10, - - COUNT( * ) * 52 + + COUNT( * ) * - 1 * + CAST( NULL AS SIGNED ) + 90, + + 32 + - + 70 ) * 45 * - + 33 DIV - COUNT( * ) + - 13 AS col1
----
NULL
-14863

skipif mysql # not compatible
query II rowsort label-75
SELECT + CAST ( NULL AS INTEGER ) / + - 44 AS col1, COALESCE ( - + 10, - - COUNT ( * ) * 52 + + COUNT ( * ) * - 1 * + CAST ( NULL AS INTEGER ) + 90, + + 32 + - + 70 ) * 45 * - + 33 / - COUNT ( * ) + - 13 AS col1
----
NULL
-14863

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

skipif mysql # not compatible
query II rowsort label-76
SELECT + - COUNT ( * ) * COUNT ( * ), + 85 col2
----
-1
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-77
SELECT DISTINCT - NULLIF ( - 68, - ( - 45 ) * - MAX( - ( - - ( + 7 ) ) ) ) DIV 90 + + 3 + - 75 col0
----
-72

skipif mysql # not compatible
query I rowsort label-77
SELECT DISTINCT - NULLIF ( - 68, - ( - 45 ) * - MAX ( - ( - - ( + 7 ) ) ) ) / 90 + + 3 + - 75 col0
----
-72

query I rowsort
SELECT - - 94 * - 55 * + 45 + + - 40 + - 10 - + - COALESCE ( + 28, - 92 * + 33 ) col1
----
-232672

query I rowsort
SELECT ALL + 83 * - + 81 + - 41
----
-6764

query I rowsort
SELECT 72 * 26 + - 97 AS col2
----
1775

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

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

query I rowsort
SELECT ALL - + 32 + 13 * - 44
----
-604

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

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

query I rowsort
SELECT ALL 87 + + - 85 + 71
----
73

query I rowsort
SELECT + - 25 * 47 AS col2
----
-1175

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-88
SELECT DISTINCT CASE + CASE CAST( NULL AS SIGNED ) WHEN 70 * 12 THEN + 16 END WHEN + - 77 / - COUNT( * ) + + 62 THEN + CASE - 89 WHEN - + 31 THEN + 53 END ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-88
SELECT DISTINCT CASE + CASE CAST ( NULL AS INTEGER ) WHEN 70 * 12 THEN + 16 END WHEN + - 77 / - COUNT ( * ) + + 62 THEN + CASE - 89 WHEN - + 31 THEN + 53 END ELSE NULL END
----
NULL

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

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

query I rowsort
SELECT DISTINCT 21 + - 9 AS col1
----
12

query I rowsort
SELECT ALL - 70 * + NULLIF ( 98, 31 ) col0
----
-6860

query I rowsort
SELECT - 50 * 56
----
-2800

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

onlyif mysql # aggregate syntax: 
query II rowsort label-94
SELECT DISTINCT - COUNT( * ) * + 79 * 19 AS col0, 75
----
-1501
75

skipif mysql # not compatible
query II rowsort label-94
SELECT DISTINCT - COUNT ( * ) * + 79 * 19 AS col0, 75
----
-1501
75

query I rowsort
SELECT ALL - 70 * + 56
----
-3920

query II rowsort
SELECT + 14 + - - 33 + + + 26, 11 * - NULLIF ( - 40, - 99 ) AS col0
----
73
440

query I rowsort
SELECT - 20 * + - 16
----
320

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-98
SELECT - CAST( + + COUNT( * ) AS SIGNED ) * - 43 AS col0, + ( - 66 ) * + COUNT( * )
----
43
-66

skipif mysql # not compatible
query II rowsort label-98
SELECT - CAST ( + + COUNT ( * ) AS INTEGER ) * - 43 AS col0, + ( - 66 ) * + COUNT ( * )
----
43
-66

query I rowsort
SELECT ALL + 98 * - 58 * + 46
----
-261464

query II rowsort
SELECT - 81 AS col0, + 70 col1
----
-81
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-101
SELECT - CAST( NULL AS SIGNED ) + + + 56 + + 13 + + 2 * - 25 + 99 - - 39 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-101
SELECT - CAST ( NULL AS INTEGER ) + + + 56 + + 13 + + 2 * - 25 + 99 - - 39 col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-102
SELECT - 84 DIV - - 46
----
-1

skipif mysql # not compatible
query I rowsort label-102
SELECT - 84 / - - 46
----
-1

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-104
SELECT ALL - 8 DIV 23 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-104
SELECT ALL - 8 / 23 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-105
SELECT MAX( 19 ) * - 31 - - + COUNT( * ) + - + ( - 13 ) AS col1
----
-575

skipif mysql # not compatible
query I rowsort label-105
SELECT MAX ( 19 ) * - 31 - - + COUNT ( * ) + - + ( - 13 ) AS col1
----
-575

onlyif mysql # DIV for integer division: 
query I rowsort label-106
SELECT + + 98 DIV - 1 + + - 16 + 2 AS col0
----
-112

skipif mysql # not compatible
query I rowsort label-106
SELECT + + 98 / - 1 + + - 16 + 2 AS col0
----
-112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-107
SELECT - + 42 * - - COUNT( * ) - 18 DIV - - ( COALESCE ( + + 62, + COALESCE ( ( - + 78 ), - + 52 * + + 81 + + CAST( NULL AS SIGNED ) + - ( + - 93 ), + 4 ) ) ) + + + 67 + + 95 + 1 * 85 + - 8 AS col2
----
197

skipif mysql # not compatible
query I rowsort label-107
SELECT - + 42 * - - COUNT ( * ) - 18 / - - ( COALESCE ( + + 62, + COALESCE ( ( - + 78 ), - + 52 * + + 81 + + CAST ( NULL AS INTEGER ) + - ( + - 93 ), + 4 ) ) ) + + + 67 + + 95 + 1 * 85 + - 8 AS col2
----
197

onlyif mysql # aggregate syntax: 
query I rowsort label-108
SELECT - - 73 + - COUNT( * )
----
72

skipif mysql # not compatible
query I rowsort label-108
SELECT - - 73 + - COUNT ( * )
----
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-109
SELECT + COUNT( * ) * + 4 DIV 51 DIV + 90 + - COUNT( DISTINCT - 7 ) AS col2, + 8 DIV 5 * - 43
----
-1
-43

skipif mysql # not compatible
query II rowsort label-109
SELECT + COUNT ( * ) * + 4 / 51 / + 90 + - COUNT ( DISTINCT - 7 ) AS col2, + 8 / 5 * - 43
----
-1
-43

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

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

query I rowsort
SELECT - 26 * 43 - + 17 + + 43 AS col2
----
-1092

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-112
SELECT ALL + + ( 11 ) * - 19 + + - CAST( + + CASE 70 WHEN - - CAST( CAST( + CAST( 94 AS SIGNED ) AS SIGNED ) AS SIGNED ) - + + CAST( + - 77 AS SIGNED ) + - 44 * 76 THEN NULL ELSE - 60 + 64 END AS SIGNED ) AS col2
----
-213

skipif mysql # not compatible
query I rowsort label-112
SELECT ALL + + ( 11 ) * - 19 + + - CAST ( + + CASE 70 WHEN - - CAST ( CAST ( + CAST ( 94 AS INTEGER ) AS INTEGER ) AS INTEGER ) - + + CAST ( + - 77 AS INTEGER ) + - 44 * 76 THEN NULL ELSE - 60 + 64 END AS INTEGER ) AS col2
----
-213

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

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

query I rowsort
SELECT + 79 + + - 90 + 86 - 99
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-115
SELECT ALL + - COALESCE ( CAST( 49 AS SIGNED ), + - 39 )
----
-49

skipif mysql # not compatible
query I rowsort label-115
SELECT ALL + - COALESCE ( CAST ( 49 AS INTEGER ), + - 39 )
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-116
SELECT ALL - + 18 * + COUNT( * ) + 5 + + - 16 * + + 19 * + + COUNT( * ) * COUNT( * ) AS col1
----
-317

skipif mysql # not compatible
query I rowsort label-116
SELECT ALL - + 18 * + COUNT ( * ) + 5 + + - 16 * + + 19 * + + COUNT ( * ) * COUNT ( * ) AS col1
----
-317

onlyif mysql # aggregate syntax: 
query I rowsort label-117
SELECT + 5 * - + COUNT( * ) + - 25 col0
----
-30

skipif mysql # not compatible
query I rowsort label-117
SELECT + 5 * - + COUNT ( * ) + - 25 col0
----
-30

query I rowsort
SELECT + 10 - - 25 * 50
----
1260

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

query I rowsort
SELECT + ( + 91 ) + + 40 AS col2
----
131

onlyif mysql # DIV for integer division: 
query I rowsort label-121
SELECT + 37 DIV - 61 col2
----
0

skipif mysql # not compatible
query I rowsort label-121
SELECT + 37 / - 61 col2
----
0

query II rowsort
SELECT - 99, - 60 AS col0
----
-99
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-123
SELECT COUNT( * ) * + 55 * - COALESCE ( + 53, + + 50 DIV + - 63 + - 49 ) AS col2
----
-2915

skipif mysql # not compatible
query I rowsort label-123
SELECT COUNT ( * ) * + 55 * - COALESCE ( + 53, + + 50 / + - 63 + - 49 ) AS col2
----
-2915

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-124
SELECT DISTINCT 60 AS col2, + 73 + CAST( - + COUNT( * ) AS SIGNED ) AS col1, - + 29 AS col2
----
60
72
-29

skipif mysql # not compatible
query III rowsort label-124
SELECT DISTINCT 60 AS col2, + 73 + CAST ( - + COUNT ( * ) AS INTEGER ) AS col1, - + 29 AS col2
----
60
72
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-125
SELECT 70 * 15 DIV + 83 AS col2
----
12

skipif mysql # not compatible
query I rowsort label-125
SELECT 70 * 15 / + 83 AS col2
----
12

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-127
SELECT DISTINCT 67 - - COUNT( * ) * + 2 AS col1
----
69

skipif mysql # not compatible
query I rowsort label-127
SELECT DISTINCT 67 - - COUNT ( * ) * + 2 AS col1
----
69

onlyif mysql # aggregate syntax: 
query II rowsort label-128
SELECT 74, - SUM( - + 15 ) AS col2
----
74
15

skipif mysql # not compatible
query II rowsort label-128
SELECT 74, - SUM ( - + 15 ) AS col2
----
74
15

query I rowsort
SELECT 60 * + 28 AS col2
----
1680

query I rowsort
SELECT 99 + + 77
----
176

query II rowsort
SELECT 22 AS col0, 19 AS col2
----
22
19

onlyif mysql # aggregate syntax: 
query I rowsort label-132
SELECT SUM( - 44 ) + - - 95
----
51

skipif mysql # not compatible
query I rowsort label-132
SELECT SUM ( - 44 ) + - - 95
----
51

query I rowsort
SELECT 89 + + 7
----
96

query II rowsort
SELECT ALL 90 AS col2, - 85 AS col2
----
90
-85

query I rowsort
SELECT ALL + - 78 + 99
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-136
SELECT + 13 * NULLIF ( - CAST( - ( - - CAST( + + 62 AS SIGNED ) ) AS SIGNED ), + - 52 )
----
806

skipif mysql # not compatible
query I rowsort label-136
SELECT + 13 * NULLIF ( - CAST ( - ( - - CAST ( + + 62 AS INTEGER ) ) AS INTEGER ), + - 52 )
----
806

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-137
SELECT ALL + - 66 * COUNT( * ) * 40 / + CASE 9 WHEN 73 THEN - CAST( - - CAST( - 80 AS SIGNED ) AS SIGNED ) WHEN + 58 THEN - - 31 ELSE NULL END * - 49 + SUM( ALL + CAST( + 35 AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-137
SELECT ALL + - 66 * COUNT ( * ) * 40 / + CASE 9 WHEN 73 THEN - CAST ( - - CAST ( - 80 AS INTEGER ) AS INTEGER ) WHEN + 58 THEN - - 31 ELSE NULL END * - 49 + SUM ( ALL + CAST ( + 35 AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-138
SELECT COUNT( * ) / - 90 * - + CAST( MIN( 20 ) AS SIGNED ) + 32 - + 34 - 63 + - CAST( NULL AS SIGNED ) * + 76 + - 24 + + ( + + 83 ) * + 70 * + MAX( - 1 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-138
SELECT COUNT ( * ) / - 90 * - + CAST ( MIN ( 20 ) AS INTEGER ) + 32 - + 34 - 63 + - CAST ( NULL AS INTEGER ) * + 76 + - 24 + + ( + + 83 ) * + 70 * + MAX ( - 1 ) AS col1
----
NULL

query II rowsort
SELECT - 97 + - 50 + 14 * - 77 * 42 + - 99, ( + 30 ) AS col0
----
-45522
30

onlyif mysql # aggregate syntax: 
query I rowsort label-140
SELECT - 6 * + 95 + - COUNT( * ) + + + 93 * - - 86 AS col2
----
7427

skipif mysql # not compatible
query I rowsort label-140
SELECT - 6 * + 95 + - COUNT ( * ) + + + 93 * - - 86 AS col2
----
7427

query I rowsort
SELECT ALL - ( - + NULLIF ( + - 37, + 61 ) ) + + - 46 AS col1
----
-83

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-142
SELECT DISTINCT - 31 + - 45 + - CAST( 73 AS SIGNED ) AS col0, + 71 * - - 64
----
-149
4544

skipif mysql # not compatible
query II rowsort label-142
SELECT DISTINCT - 31 + - 45 + - CAST ( 73 AS INTEGER ) AS col0, + 71 * - - 64
----
-149
4544

onlyif mysql # aggregate syntax: 
query I rowsort label-143
SELECT + + MAX( - - 5 ) AS col0
----
5

skipif mysql # not compatible
query I rowsort label-143
SELECT + + MAX ( - - 5 ) AS col0
----
5

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

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

query I rowsort
SELECT + - 56 * + 13 + + 71
----
-657

onlyif mysql # aggregate syntax: 
query I rowsort label-146
SELECT + + SUM( 52 ) col2
----
52

skipif mysql # not compatible
query I rowsort label-146
SELECT + + SUM ( 52 ) col2
----
52

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

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

query I rowsort
SELECT 45 * - 1 AS col1
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-149
SELECT MIN( ALL + 6 ) * 18 * + 24
----
2592

skipif mysql # not compatible
query I rowsort label-149
SELECT MIN ( ALL + 6 ) * 18 * + 24
----
2592

onlyif mysql # DIV for integer division: 
query I rowsort label-150
SELECT DISTINCT 20 DIV 29 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-150
SELECT DISTINCT 20 / 29 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-151
SELECT CASE - COUNT( * ) WHEN + + 13 + - - 83 THEN + + 30 END * - - CAST( NULL AS DECIMAL ) * + + 1 / 62 * 76
----
NULL

skipif mysql # not compatible
query I rowsort label-151
SELECT CASE - COUNT ( * ) WHEN + + 13 + - - 83 THEN + + 30 END * - - CAST ( NULL AS REAL ) * + + 1 / 62 * 76
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-152
SELECT ALL 67 DIV 42 * + 36 * - CASE - SUM( DISTINCT + + 78 ) WHEN - COALESCE ( ( - 35 ), - 41 * + + NULLIF ( + + 52, - NULLIF ( 66, - - 6 * + 45 ) + + COALESCE ( MAX( 63 ), - 39 + 40 ) DIV + CASE - 98 WHEN + COUNT( ALL ( + 66 ) ) THEN COUNT( * ) * 38 - 61 WHEN + 41 + - 68 * + 72 THEN NULL END ) + + 95 ) + - 75 * 80 THEN + 24 WHEN 77 + CASE 77 WHEN 38 DIV CAST( NULL AS SIGNED ) THEN + COUNT( 66 ) + 77 WHEN + 44 THEN NULL ELSE NULL END THEN NULL WHEN + 33 * 1 THEN 93 ELSE - 27 + - 32 END
----
2124

skipif mysql # not compatible
query I rowsort label-152
SELECT ALL 67 / 42 * + 36 * - CASE - SUM ( DISTINCT + + 78 ) WHEN - COALESCE ( ( - 35 ), - 41 * + + NULLIF ( + + 52, - NULLIF ( 66, - - 6 * + 45 ) + + COALESCE ( MAX ( 63 ), - 39 + 40 ) / + CASE - 98 WHEN + COUNT ( ALL ( + 66 ) ) THEN COUNT ( * ) * 38 - 61 WHEN + 41 + - 68 * + 72 THEN NULL END ) + + 95 ) + - 75 * 80 THEN + 24 WHEN 77 + CASE 77 WHEN 38 / CAST ( NULL AS INTEGER ) THEN + COUNT ( 66 ) + 77 WHEN + 44 THEN NULL ELSE NULL END THEN NULL WHEN + 33 * 1 THEN 93 ELSE - 27 + - 32 END
----
2124

query I rowsort
SELECT ALL 49 * - 82 AS col2
----
-4018

query I rowsort
SELECT 95 * + + 50 AS col0
----
4750

query I rowsort
SELECT DISTINCT 60 + - 28 - 75 col1
----
-43

query I rowsort
SELECT DISTINCT 42 + 46 * 67 * 11 * + + 69 AS col2
----
2339280

query I rowsort
SELECT 85 * + - 75 + - 97 col1
----
-6472

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

query I rowsort
SELECT ALL + + 38 * + - 0 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-160
SELECT - 63 * 73 DIV - 14 + - 32 * - 61 + - 22 + - 19 AS col0
----
2239

skipif mysql # not compatible
query I rowsort label-160
SELECT - 63 * 73 / - 14 + - 32 * - 61 + - 22 + - 19 AS col0
----
2239

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-161
SELECT 87 * - - CAST( NULL AS SIGNED ) + + 50 + - 49 - - - 55 * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-161
SELECT 87 * - - CAST ( NULL AS INTEGER ) + + 50 + - 49 - - - 55 * COUNT ( * )
----
NULL

query I rowsort
SELECT ALL + 44 * 16 * - ( + + 78 )
----
-54912

onlyif mysql # aggregate syntax: 
query I rowsort label-163
SELECT + + NULLIF ( - + 6, - + NULLIF ( - - 61, + ( - - MAX( DISTINCT 13 ) ) / 9 ) )
----
-6

skipif mysql # not compatible
query I rowsort label-163
SELECT + + NULLIF ( - + 6, - + NULLIF ( - - 61, + ( - - MAX ( DISTINCT 13 ) ) / 9 ) )
----
-6

query I rowsort
SELECT ALL + 8 * + + 33 AS col0
----
264

onlyif mysql # DIV for integer division: 
query I rowsort label-165
SELECT ALL + 11 DIV + 81 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-165
SELECT ALL + 11 / + 81 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-166
SELECT - 41 * 57 + - CAST( NULL AS SIGNED ) + - 68 - + + 32 + - NULLIF ( + 32, + 36 * + 88 * - 50 ) * + 98
----
NULL

skipif mysql # not compatible
query I rowsort label-166
SELECT - 41 * 57 + - CAST ( NULL AS INTEGER ) + - 68 - + + 32 + - NULLIF ( + 32, + 36 * + 88 * - 50 ) * + 98
----
NULL

query I rowsort
SELECT - NULLIF ( + 27, 53 ) - - - 65 col2
----
-92

query I rowsort
SELECT - 91 + + 35 * + 36
----
1169

onlyif mysql # aggregate syntax: 
query I rowsort label-169
SELECT - AVG ( ALL + 14 ) + CASE + 37 WHEN COUNT( * ) THEN + 1 + + COUNT( ALL + 75 ) END + 13 * - + 42 / 65
----
NULL

skipif mysql # not compatible
query I rowsort label-169
SELECT - AVG ( ALL + 14 ) + CASE + 37 WHEN COUNT ( * ) THEN + 1 + + COUNT ( ALL + 75 ) END + 13 * - + 42 / 65
----
NULL

query I rowsort
SELECT ALL + 39 * + + 44 * 95 col0
----
163020

onlyif mysql # aggregate syntax: 
query II rowsort label-171
SELECT 26 col0, ( + 16 ) + - 57 * + CASE + 7 WHEN + 8 * + 74 * - 86 THEN - CASE + - COUNT( * ) WHEN + - 40 * - 68 THEN + - 7 + 96 ELSE NULL END * - - 57 END AS col0
----
26
NULL

skipif mysql # not compatible
query II rowsort label-171
SELECT 26 col0, ( + 16 ) + - 57 * + CASE + 7 WHEN + 8 * + 74 * - 86 THEN - CASE + - COUNT ( * ) WHEN + - 40 * - 68 THEN + - 7 + 96 ELSE NULL END * - - 57 END AS col0
----
26
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-172
SELECT - 61 + + - 42 + - 33 * + CASE + SUM( DISTINCT + 78 ) WHEN - 78 THEN ( - 2 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-172
SELECT - 61 + + - 42 + - 33 * + CASE + SUM ( DISTINCT + 78 ) WHEN - 78 THEN ( - 2 ) END
----
NULL

query I rowsort
SELECT DISTINCT - 94 + + - 26
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-174
SELECT ALL 8 + - COALESCE ( + 70, - + 43 * - 29 ) * + MIN( ALL - 26 )
----
1828

skipif mysql # not compatible
query I rowsort label-174
SELECT ALL 8 + - COALESCE ( + 70, - + 43 * - 29 ) * + MIN ( ALL - 26 )
----
1828

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

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

query I rowsort
SELECT + 90 + - - 83
----
173

query I rowsort
SELECT - ( + 57 ) * + 51 AS col2
----
-2907

query I rowsort
SELECT ALL 72 + + 96
----
168

onlyif mysql # aggregate syntax: 
query II rowsort label-179
SELECT 42, ( - + 45 ) - + + 43 * - - COALESCE ( - COUNT( * ), + + ( + 27 ), 66 + - 11 ) + + 16 + - COUNT( * ) col0
----
42
13

skipif mysql # not compatible
query II rowsort label-179
SELECT 42, ( - + 45 ) - + + 43 * - - COALESCE ( - COUNT ( * ), + + ( + 27 ), 66 + - 11 ) + + 16 + - COUNT ( * ) col0
----
42
13

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-181
SELECT + - 94 * - ( CAST( NULL AS SIGNED ) ) * 26 + - COUNT( * ) - - - 99
----
NULL

skipif mysql # not compatible
query I rowsort label-181
SELECT + - 94 * - ( CAST ( NULL AS INTEGER ) ) * 26 + - COUNT ( * ) - - - 99
----
NULL

query I rowsort
SELECT ALL + + 19 + + 65 AS col2
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-183
SELECT DISTINCT + MIN( - 57 ) * + 23 * + COUNT( * )
----
-1311

skipif mysql # not compatible
query I rowsort label-183
SELECT DISTINCT + MIN ( - 57 ) * + 23 * + COUNT ( * )
----
-1311

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-184
SELECT ALL COUNT( * ) DIV + COALESCE ( + - 86, - COUNT( * ) * - 62 + + CAST( - ( AVG ( + - 45 ) ) AS SIGNED ) * + + NULLIF ( + + 96, + COUNT( * ) ), + 24 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-184
SELECT ALL COUNT ( * ) / + COALESCE ( + - 86, - COUNT ( * ) * - 62 + + CAST ( - ( AVG ( + - 45 ) ) AS INTEGER ) * + + NULLIF ( + + 96, + COUNT ( * ) ), + 24 ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-185
SELECT - 63 AS col2, + CAST( NULL AS SIGNED ) + - ( COUNT( * ) )
----
-63
NULL

skipif mysql # not compatible
query II rowsort label-185
SELECT - 63 AS col2, + CAST ( NULL AS INTEGER ) + - ( COUNT ( * ) )
----
-63
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-186
SELECT + + SUM( ALL 10 ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-186
SELECT + + SUM ( ALL 10 ) AS col2
----
10

query I rowsort
SELECT + CASE + 34 WHEN + 72 THEN + 87 WHEN + + 17 + + - 32 THEN ( - + 56 ) END * - + 62 + 6
----
NULL

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

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

query I rowsort
SELECT DISTINCT - 54 * - 26
----
1404

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

skipif mysql # not compatible
query I rowsort label-190
SELECT + - COUNT ( * ) * - ( + 1 ) - + + 40 AS col0
----
-39

query II rowsort
SELECT ALL + 68 AS col2, + 94 + + 86 AS col0
----
68
180

onlyif mysql # aggregate syntax: 
query I rowsort label-192
SELECT + 10 * MAX( - 9 ) + + + ( + 25 ) * + 10 + + + 0 * - 92 * - COUNT( * )
----
160

skipif mysql # not compatible
query I rowsort label-192
SELECT + 10 * MAX ( - 9 ) + + + ( + 25 ) * + 10 + + + 0 * - 92 * - COUNT ( * )
----
160

onlyif mysql # aggregate syntax: 
query I rowsort label-193
SELECT ALL + - NULLIF ( COALESCE ( + 35, - + 68 ), - - 7 + - - MIN( + + 53 ) )
----
-35

skipif mysql # not compatible
query I rowsort label-193
SELECT ALL + - NULLIF ( COALESCE ( + 35, - + 68 ), - - 7 + - - MIN ( + + 53 ) )
----
-35

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-195
SELECT - CAST( NULL AS DECIMAL ) + + - CASE + 59 WHEN 47 * - + ( + ( - COUNT( * ) ) ) THEN 66 WHEN 72 THEN + COUNT( * ) END col2, - CASE - 13 WHEN + + 39 * - ( + 93 ) + - 85 THEN NULL WHEN 44 + - 67 THEN NULL ELSE - CAST( NULL AS SIGNED ) END AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-195
SELECT - CAST ( NULL AS REAL ) + + - CASE + 59 WHEN 47 * - + ( + ( - COUNT ( * ) ) ) THEN 66 WHEN 72 THEN + COUNT ( * ) END col2, - CASE - 13 WHEN + + 39 * - ( + 93 ) + - 85 THEN NULL WHEN 44 + - 67 THEN NULL ELSE - CAST ( NULL AS INTEGER ) END AS col1
----
NULL
NULL

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

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

query I rowsort
SELECT + 68 * + 94
----
6392

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-198
SELECT CAST( NULL AS SIGNED ) * COUNT( * ) + - 45 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-198
SELECT CAST ( NULL AS INTEGER ) * COUNT ( * ) + - 45 AS col0
----
NULL

query I rowsort
SELECT ALL - 7 * 29 AS col0
----
-203

query I rowsort
SELECT CASE + 26 WHEN NULLIF ( + + 16, + 48 ) THEN NULL ELSE 26 END
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-201
SELECT DISTINCT 68 * + COUNT( * ) * + + ( COUNT( * ) ) + 13
----
81

skipif mysql # not compatible
query I rowsort label-201
SELECT DISTINCT 68 * + COUNT ( * ) * + + ( COUNT ( * ) ) + 13
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-202
SELECT - 38 * - 4 AS col1, ( COUNT( * ) ) * + 22 + - + MIN( ALL + 36 ) AS col2
----
152
-14

skipif mysql # not compatible
query II rowsort label-202
SELECT - 38 * - 4 AS col1, ( COUNT ( * ) ) * + 22 + - + MIN ( ALL + 36 ) AS col2
----
152
-14

query I rowsort
SELECT ALL 42 * ( + 34 ) + - 2
----
1426

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-204
SELECT - CAST( NULL AS SIGNED ) * + + 24 * - - 40 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-204
SELECT - CAST ( NULL AS INTEGER ) * + + 24 * - - 40 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-205
SELECT DISTINCT CASE - - 95 WHEN - - 11 * + 34 THEN NULL WHEN - 95 THEN NULL WHEN + - 46 * + - 89 + - 41 THEN NULL ELSE COUNT( * ) END AS col1
----
1

skipif mysql # not compatible
query I rowsort label-205
SELECT DISTINCT CASE - - 95 WHEN - - 11 * + 34 THEN NULL WHEN - 95 THEN NULL WHEN + - 46 * + - 89 + - 41 THEN NULL ELSE COUNT ( * ) END AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-206
SELECT + 2 - + COUNT( * ) + + COALESCE ( 85, + + 32 + + + COUNT( * ) ) AS col2
----
86

skipif mysql # not compatible
query I rowsort label-206
SELECT + 2 - + COUNT ( * ) + + COALESCE ( 85, + + 32 + + + COUNT ( * ) ) AS col2
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-207
SELECT ALL ( + + ( MIN( + - 23 ) ) ) AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-207
SELECT ALL ( + + ( MIN ( + - 23 ) ) ) AS col2
----
-23

query I rowsort
SELECT - NULLIF ( 79, 80 )
----
-79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-209
SELECT DISTINCT + 90 * + - 70 DIV - COUNT( * )
----
6300

skipif mysql # not compatible
query I rowsort label-209
SELECT DISTINCT + 90 * + - 70 / - COUNT ( * )
----
6300

query I rowsort
SELECT ALL + - 46 * - 68 AS col0
----
3128

query I rowsort
SELECT DISTINCT - - 29 - 77
----
-48

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-213
SELECT - + SUM( ALL + 28 ) * - 16
----
448

skipif mysql # not compatible
query I rowsort label-213
SELECT - + SUM ( ALL + 28 ) * - 16
----
448

query II rowsort
SELECT ALL ( + 3 ) AS col1, - 54
----
3
-54

query I rowsort
SELECT - + 38 + - 88 AS col1
----
-126

query I rowsort
SELECT + CASE + - 71 WHEN + 25 THEN - - 53 END - + - 83 + 29
----
NULL

query I rowsort
SELECT 58 * 78
----
4524

onlyif mysql # aggregate syntax: 
query I rowsort label-218
SELECT ALL 49 - COUNT( * ) * + + 31 col1
----
18

skipif mysql # not compatible
query I rowsort label-218
SELECT ALL 49 - COUNT ( * ) * + + 31 col1
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-219
SELECT DISTINCT - MAX( ALL + 9 ) DIV - + 65
----
0

skipif mysql # not compatible
query I rowsort label-219
SELECT DISTINCT - MAX ( ALL + 9 ) / - + 65
----
0

query I rowsort
SELECT DISTINCT - + CASE + 89 WHEN + 16 THEN 20 ELSE - 40 END
----
40

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

query I rowsort
SELECT DISTINCT + 70 * - 63 * - - ( - - 73 )
----
-321930

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-223
SELECT 73 DIV - - 39 + - + ( + ( - - NULLIF ( + + ( + COUNT( * ) ), - + 84 * - 18 ) ) ) - 72 * MIN( ALL 19 )
----
-1368

skipif mysql # not compatible
query I rowsort label-223
SELECT 73 / - - 39 + - + ( + ( - - NULLIF ( + + ( + COUNT ( * ) ), - + 84 * - 18 ) ) ) - 72 * MIN ( ALL 19 )
----
-1368

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

skipif mysql # not compatible
query I rowsort label-224
SELECT + COUNT ( * ) + - - ( + 0 ) / + COUNT ( * ) * 18 col2
----
1

query II rowsort
SELECT 81 col2, NULLIF ( + 61, 64 ) AS col1
----
81
61

query I rowsort
SELECT DISTINCT 3 * 83 * + + 68 AS col1
----
16932

onlyif mysql # aggregate syntax: 
query II rowsort label-227
SELECT DISTINCT - 41 AS col0, COUNT( * ) + - + 5 + + 81 + + + 66 AS col2
----
-41
143

skipif mysql # not compatible
query II rowsort label-227
SELECT DISTINCT - 41 AS col0, COUNT ( * ) + - + 5 + + 81 + + + 66 AS col2
----
-41
143

onlyif mysql # DIV for integer division: 
query I rowsort label-228
SELECT DISTINCT 9 + 57 DIV + + 83 AS col1
----
9

skipif mysql # not compatible
query I rowsort label-228
SELECT DISTINCT 9 + 57 / + + 83 AS col1
----
9

query I rowsort
SELECT ALL 68 + - 92
----
-24

query I rowsort
SELECT 99 * - 23 col1
----
-2277

query I rowsort
SELECT ALL - 76 + + + 29 * 93 + 79 AS col0
----
2700

query I rowsort
SELECT ALL 90 + + + 29 AS col2
----
119

query I rowsort
SELECT 95 * - 71
----
-6745

onlyif mysql # aggregate syntax: 
query II rowsort label-234
SELECT - 85, SUM( DISTINCT - - 21 ) + - 48 * - 95 AS col2
----
-85
4581

skipif mysql # not compatible
query II rowsort label-234
SELECT - 85, SUM ( DISTINCT - - 21 ) + - 48 * - 95 AS col2
----
-85
4581

query I rowsort
SELECT ALL 36 * - - 17 * - 70 AS col1
----
-42840

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-237
SELECT 3 DIV - CAST( - 74 AS SIGNED ) * - 30 col0
----
0

skipif mysql # not compatible
query I rowsort label-237
SELECT 3 / - CAST ( - 74 AS INTEGER ) * - 30 col0
----
0

query I rowsort
SELECT + 23 * 18 AS col2
----
414

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-240
SELECT ALL + COALESCE ( COUNT( * ), - 50 * - 77 * + + 23, - - ( + 5 ) )
----
1

skipif mysql # not compatible
query I rowsort label-240
SELECT ALL + COALESCE ( COUNT ( * ), - 50 * - 77 * + + 23, - - ( + 5 ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-241
SELECT CASE + 11 WHEN 84 * + 80 THEN NULL ELSE - SUM( ALL - + CAST( NULL AS SIGNED ) ) * 77 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-241
SELECT CASE + 11 WHEN 84 * + 80 THEN NULL ELSE - SUM ( ALL - + CAST ( NULL AS INTEGER ) ) * 77 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-242
SELECT 93 * + SUM( ALL + + 24 ) AS col0, 1
----
2232
1

skipif mysql # not compatible
query II rowsort label-242
SELECT 93 * + SUM ( ALL + + 24 ) AS col0, 1
----
2232
1

query I rowsort
SELECT - 50 + 47
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-244
SELECT ( AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-244
SELECT ( AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-245
SELECT - - MIN( + 76 ) col0
----
76

skipif mysql # not compatible
query I rowsort label-245
SELECT - - MIN ( + 76 ) col0
----
76

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

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

query I rowsort
SELECT ALL - 65 * - 44
----
2860

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-251
SELECT DISTINCT + 23, + COUNT( * ) col0
----
23
1

skipif mysql # not compatible
query II rowsort label-251
SELECT DISTINCT + 23, + COUNT ( * ) col0
----
23
1

query I rowsort
SELECT ALL - 4 + + NULLIF ( 52, + + 25 + 83 + - + 24 * - - 84 )
----
48

query I rowsort
SELECT ALL + + 47 + + 4
----
51

query I rowsort
SELECT - 39 * + 44 + - 43
----
-1759

onlyif mysql # aggregate syntax: 
query I rowsort label-255
SELECT - COUNT( * ) * 53 + + - 60 col0
----
-113

skipif mysql # not compatible
query I rowsort label-255
SELECT - COUNT ( * ) * 53 + + - 60 col0
----
-113

onlyif mysql # aggregate syntax: 
query I rowsort label-256
SELECT DISTINCT - + 34 + + 34 + - 87 - + - 11 * + 48 * - 95 * - MAX( 83 ) * - NULLIF ( - + 9, 82 ) + ( - - 40 ) AS col0
----
37469473

skipif mysql # not compatible
query I rowsort label-256
SELECT DISTINCT - + 34 + + 34 + - 87 - + - 11 * + 48 * - 95 * - MAX ( 83 ) * - NULLIF ( - + 9, 82 ) + ( - - 40 ) AS col0
----
37469473

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-257
SELECT ALL 56 + + CAST( 78 AS SIGNED ) * + COALESCE ( 80, + - NULLIF ( - - 59, 62 ) )
----
6296

skipif mysql # not compatible
query I rowsort label-257
SELECT ALL 56 + + CAST ( 78 AS INTEGER ) * + COALESCE ( 80, + - NULLIF ( - - 59, 62 ) )
----
6296

query I rowsort
SELECT 80 + + + NULLIF ( + + 95, 12 ) + - + 30 AS col1
----
145

query I rowsort
SELECT DISTINCT + 7 + 95
----
102

query II rowsort
SELECT ALL + 80 + 0 AS col2, - 74 * + 47 AS col0
----
80
-3478

query II rowsort
SELECT + 14 col2, 57
----
14
57

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-262
SELECT ALL 96 * 60 * - - 16 * + CASE 56 WHEN + - 40 + - - COUNT( * ) + + 88 THEN - CAST( NULL AS DECIMAL ) ELSE NULL END col1, COUNT( 19 )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-262
SELECT ALL 96 * 60 * - - 16 * + CASE 56 WHEN + - 40 + - - COUNT ( * ) + + 88 THEN - CAST ( NULL AS REAL ) ELSE NULL END col1, COUNT ( 19 )
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-263
SELECT 79 * MAX( + 27 )
----
2133

skipif mysql # not compatible
query I rowsort label-263
SELECT 79 * MAX ( + 27 )
----
2133

query I rowsort
SELECT 15 + 53 + + 26
----
94

query I rowsort
SELECT ( 6 ) + 59 AS col2
----
65

query I rowsort
SELECT 18 * + 90 + + + 22 AS col2
----
1642

query I rowsort
SELECT DISTINCT + 63 - - + 61
----
124

query II rowsort
SELECT + 80, 20 + 15 AS col1
----
80
35

onlyif mysql # aggregate syntax: 
query I rowsort label-269
SELECT DISTINCT - NULLIF ( - ( - 58 ), + + 10 ) * + - 19 * + COUNT( ALL 23 ) * - 24 col0
----
-26448

skipif mysql # not compatible
query I rowsort label-269
SELECT DISTINCT - NULLIF ( - ( - 58 ), + + 10 ) * + - 19 * + COUNT ( ALL 23 ) * - 24 col0
----
-26448

onlyif mysql # aggregate syntax: 
query I rowsort label-270
SELECT ALL COUNT( * ) * MIN( DISTINCT 21 )
----
21

skipif mysql # not compatible
query I rowsort label-270
SELECT ALL COUNT ( * ) * MIN ( DISTINCT 21 )
----
21

onlyif mysql # aggregate syntax: 
query II rowsort label-271
SELECT 82 AS col1, 71 * - + MIN( - + 30 ) * - 77 AS col2
----
82
-164010

skipif mysql # not compatible
query II rowsort label-271
SELECT 82 AS col1, 71 * - + MIN ( - + 30 ) * - 77 AS col2
----
82
-164010

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-272
SELECT ALL 81 / - 30 * + CAST( NULL AS SIGNED ) * + - 95 - + - COUNT( * ) + - 91 * + 72 AS col0, + ( + 30 ) AS col1, 51 AS col0
----
NULL
30
51

skipif mysql # not compatible
query III rowsort label-272
SELECT ALL 81 / - 30 * + CAST ( NULL AS INTEGER ) * + - 95 - + - COUNT ( * ) + - 91 * + 72 AS col0, + ( + 30 ) AS col1, 51 AS col0
----
NULL
30
51

query I rowsort
SELECT 18 - + + 55 + 34 + + CASE - AVG ( - - 44 ) WHEN + - 62 THEN - 54 END + 16 * - 3
----
NULL

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

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

query II rowsort
SELECT - + 64 AS col0, + 11
----
-64
11

query II rowsort
SELECT - - 95 col1, 57
----
95
57

query I rowsort
SELECT + 78 * - CASE 58 WHEN + 19 THEN - 36 * - + 28 END * + 73 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-278
SELECT - 32 AS col0, 80 + + 62 DIV + 58 + - 58
----
-32
23

skipif mysql # not compatible
query II rowsort label-278
SELECT - 32 AS col0, 80 + + 62 / + 58 + - 58
----
-32
23

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

skipif mysql # not compatible
query I rowsort label-279
SELECT ALL MIN ( - 92 )
----
-92

query I rowsort
SELECT + - 30 - + 84 - - 7 + - - ( 2 )
----
-105

onlyif mysql # aggregate syntax: 
query II rowsort label-281
SELECT DISTINCT - MIN( - + 81 ) * - 6 * + 3 AS col1, + COALESCE ( + + 79, - - 32 * 9, 58 * + 23 )
----
-1458
79

skipif mysql # not compatible
query II rowsort label-281
SELECT DISTINCT - MIN ( - + 81 ) * - 6 * + 3 AS col1, + COALESCE ( + + 79, - - 32 * 9, 58 * + 23 )
----
-1458
79

onlyif mysql # aggregate syntax: 
query I rowsort label-282
SELECT + + 55 - COUNT( * ) - 68 - + + 15 AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-282
SELECT + + 55 - COUNT ( * ) - 68 - + + 15 AS col2
----
-29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-283
SELECT ALL + - 12 DIV MAX( + 83 ) * - + 70 + + + NULLIF ( - 80, - 4 ) + + 74 AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-283
SELECT ALL + - 12 / MAX ( + 83 ) * - + 70 + + + NULLIF ( - 80, - 4 ) + + 74 AS col1
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-284
SELECT - NULLIF ( - 56, + + 45 + - + COUNT( * ) + + - 55 + + + COUNT( * ) * 14 + - 50 * 87 ) DIV + 68
----
0

skipif mysql # not compatible
query I rowsort label-284
SELECT - NULLIF ( - 56, + + 45 + - + COUNT ( * ) + + - 55 + + + COUNT ( * ) * 14 + - 50 * 87 ) / + 68
----
0

query I rowsort
SELECT ALL 93 + - 12 AS col2
----
81

query I rowsort
SELECT ALL 97 + - 6 + - + 83 col0
----
8

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-288
SELECT + + CAST( - 38 AS SIGNED ) * - 4 * - 47
----
-7144

skipif mysql # not compatible
query I rowsort label-288
SELECT + + CAST ( - 38 AS INTEGER ) * - 4 * - 47
----
-7144

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-290
SELECT - - CASE + 6 WHEN + 30 + + ( - 51 ) THEN NULL WHEN + - AVG ( 45 ) / - MIN( DISTINCT CAST( 1 AS DECIMAL ) ) THEN NULL ELSE 69 / - 58 * 36 END + + CASE 56 WHEN - 80 THEN NULL WHEN - + 62 THEN - - 92 + SUM( DISTINCT - + 19 ) + + - 19 + - + COUNT( * ) * 29 END + + 42 + + 52 * - - 20 * - 90 * - 74 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-290
SELECT - - CASE + 6 WHEN + 30 + + ( - 51 ) THEN NULL WHEN + - AVG ( 45 ) / - MIN ( DISTINCT CAST ( 1 AS REAL ) ) THEN NULL ELSE 69 / - 58 * 36 END + + CASE 56 WHEN - 80 THEN NULL WHEN - + 62 THEN - - 92 + SUM ( DISTINCT - + 19 ) + + - 19 + - + COUNT ( * ) * 29 END + + 42 + + 52 * - - 20 * - 90 * - 74 AS col1
----
NULL

query I rowsort
SELECT - 64 - ( 17 )
----
-81

query I rowsort
SELECT - + 98 * - 8 + - 49 AS col0
----
735

onlyif mysql # aggregate syntax: 
query II rowsort label-293
SELECT ( - COUNT( + 5 ) ) AS col2, + 40
----
-1
40

skipif mysql # not compatible
query II rowsort label-293
SELECT ( - COUNT ( + 5 ) ) AS col2, + 40
----
-1
40

onlyif mysql # aggregate syntax: 
query II rowsort label-294
SELECT ALL 93 * + 96 + ( - CASE 79 WHEN + 31 + ( - 66 ) * - - COUNT( * ) THEN NULL WHEN + 2 * - 19 * - - 89 THEN - 22 END ) + SUM( 19 ) col2, - 39
----
NULL
-39

skipif mysql # not compatible
query II rowsort label-294
SELECT ALL 93 * + 96 + ( - CASE 79 WHEN + 31 + ( - 66 ) * - - COUNT ( * ) THEN NULL WHEN + 2 * - 19 * - - 89 THEN - 22 END ) + SUM ( 19 ) col2, - 39
----
NULL
-39

query II rowsort
SELECT ALL 62 * - 47 + + - 24 col2, 61 + + - 67 AS col2
----
-2938
-6

query I rowsort
SELECT 57 * + - 48 + + - 19 AS col2
----
-2755

query I rowsort
SELECT DISTINCT + 3 * - - 52
----
156

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-298
SELECT ALL 30 * - - 25 + - ( SUM( 19 ) ) AS col2, + 14 DIV 82 + + + 65 * 28 * - 96, - - ( - + 76 ) DIV - - ( + 38 ) + + 30 * 30 col1
----
731
-174720
898

skipif mysql # not compatible
query III rowsort label-298
SELECT ALL 30 * - - 25 + - ( SUM ( 19 ) ) AS col2, + 14 / 82 + + + 65 * 28 * - 96, - - ( - + 76 ) / - - ( + 38 ) + + 30 * 30 col1
----
731
-174720
898

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-299
SELECT 12 / CAST( NULL AS SIGNED ) * - - 71 - + + COUNT( * ) + - 46 + - AVG ( DISTINCT 72 ) * - + 69 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-299
SELECT 12 / CAST ( NULL AS INTEGER ) * - - 71 - + + COUNT ( * ) + - 46 + - AVG ( DISTINCT 72 ) * - + 69 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-300
SELECT - MIN( + 45 ) * + 98 AS col0
----
-4410

skipif mysql # not compatible
query I rowsort label-300
SELECT - MIN ( + 45 ) * + 98 AS col0
----
-4410

query I rowsort
SELECT NULLIF ( + + 72, - + 77 ) AS col0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-302
SELECT DISTINCT + COALESCE ( + 73, + CASE + 64 WHEN 69 + + 58 / + 46 THEN NULL WHEN + + 19 THEN NULLIF ( - 64, + - COUNT( ALL - 13 ) ) + + + 29 + 3 * + 8 END ) AS col0
----
73

skipif mysql # not compatible
query I rowsort label-302
SELECT DISTINCT + COALESCE ( + 73, + CASE + 64 WHEN 69 + + 58 / + 46 THEN NULL WHEN + + 19 THEN NULLIF ( - 64, + - COUNT ( ALL - 13 ) ) + + + 29 + 3 * + 8 END ) AS col0
----
73

query II rowsort
SELECT 50 * 96 - - + 8 AS col2, + 68 * + 34 - 83 AS col2
----
4808
2229

onlyif mysql # aggregate syntax: 
query I rowsort label-304
SELECT ALL + 14 * COUNT( * ) - + - 60
----
74

skipif mysql # not compatible
query I rowsort label-304
SELECT ALL + 14 * COUNT ( * ) - + - 60
----
74

query I rowsort
SELECT - 25 + - 1 + + 81 AS col2
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-306
SELECT ALL CAST( NULL AS SIGNED ) * + - CASE + 76 WHEN + MIN( DISTINCT 43 ) / MAX( ALL 93 ) THEN NULL WHEN + 63 * CAST( NULL AS SIGNED ) + + + 12 + + + 78 + MAX( ALL + + 56 ) * + 31 THEN + 15 END
----
NULL

skipif mysql # not compatible
query I rowsort label-306
SELECT ALL CAST ( NULL AS INTEGER ) * + - CASE + 76 WHEN + MIN ( DISTINCT 43 ) / MAX ( ALL 93 ) THEN NULL WHEN + 63 * CAST ( NULL AS INTEGER ) + + + 12 + + + 78 + MAX ( ALL + + 56 ) * + 31 THEN + 15 END
----
NULL

query I rowsort
SELECT ALL 79 * - 85 AS col1
----
-6715

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-308
SELECT - - 25 + 51 * CAST( 12 AS SIGNED ) * - CAST( - - 64 AS SIGNED ) AS col2
----
-39143

skipif mysql # not compatible
query I rowsort label-308
SELECT - - 25 + 51 * CAST ( 12 AS INTEGER ) * - CAST ( - - 64 AS INTEGER ) AS col2
----
-39143

query II rowsort
SELECT + - 20 - - 48 AS col0, 36 + + 17 AS col0
----
28
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-310
SELECT - + COUNT( * ) * + + COUNT( CAST( NULL AS SIGNED ) ) + - 82 + + COUNT( ALL - 55 ) * + 81 * 57 * + 64
----
295406

skipif mysql # not compatible
query I rowsort label-310
SELECT - + COUNT ( * ) * + + COUNT ( CAST ( NULL AS INTEGER ) ) + - 82 + + COUNT ( ALL - 55 ) * + 81 * 57 * + 64
----
295406

query I rowsort
SELECT ALL - 65 + + 18
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-312
SELECT - + CASE 50 WHEN 4 - 33 THEN NULL WHEN + + MAX( ALL - 66 ) + + + 3 THEN - 39 ELSE NULL END * 25 + + + COALESCE ( + 45, + + 57 ) * - 34 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-312
SELECT - + CASE 50 WHEN 4 - 33 THEN NULL WHEN + + MAX ( ALL - 66 ) + + + 3 THEN - 39 ELSE NULL END * 25 + + + COALESCE ( + 45, + + 57 ) * - 34 col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-313
SELECT DISTINCT CAST( - + 20 AS SIGNED ), + COUNT( ALL + - 87 ) AS col0
----
-20
1

skipif mysql # not compatible
query II rowsort label-313
SELECT DISTINCT CAST ( - + 20 AS INTEGER ), + COUNT ( ALL + - 87 ) AS col0
----
-20
1

query I rowsort
SELECT DISTINCT + 37 + ( - - 43 )
----
80

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-315
SELECT DISTINCT 42 + + 16 - - NULLIF ( - 92, 89 ) + - COUNT( DISTINCT + CAST( NULL AS DECIMAL ) ) col2, 13
----
-34
13

skipif mysql # not compatible
query II rowsort label-315
SELECT DISTINCT 42 + + 16 - - NULLIF ( - 92, 89 ) + - COUNT ( DISTINCT + CAST ( NULL AS REAL ) ) col2, 13
----
-34
13

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

skipif mysql # not compatible
query I rowsort label-316
SELECT ALL ( COUNT ( * ) ) + + + 8 AS col0
----
9

query II rowsort
SELECT DISTINCT 99 + + 85 col1, 57 + - + ( - - 70 ) AS col0
----
184
-13

query I rowsort
SELECT + + 49 * 90
----
4410

onlyif mysql # aggregate syntax: 
query II rowsort label-319
SELECT + + COUNT( * ) + 10 AS col0, 4 + - 97 * 84 * ( - 5 ) AS col0
----
11
40744

skipif mysql # not compatible
query II rowsort label-319
SELECT + + COUNT ( * ) + 10 AS col0, 4 + - 97 * 84 * ( - 5 ) AS col0
----
11
40744

query I rowsort
SELECT + COALESCE ( 85, 94 )
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-321
SELECT DISTINCT 27 + + CASE ( - - ( - 75 ) ) WHEN + CASE NULLIF ( + 70, AVG ( 21 ) ) WHEN + 36 THEN NULL WHEN - - 7 THEN - NULLIF ( + 0, + - 8 + + 58 ) * 79 END * - 59 + ( - - MAX( + - 31 ) ) THEN NULL WHEN + 82 / 48 * 7 + + - 75 THEN NULL WHEN + 26 - - - 7 * + COUNT( * ) THEN - 43 ELSE - 43 END + - 18
----
-34

skipif mysql # not compatible
query I rowsort label-321
SELECT DISTINCT 27 + + CASE ( - - ( - 75 ) ) WHEN + CASE NULLIF ( + 70, AVG ( 21 ) ) WHEN + 36 THEN NULL WHEN - - 7 THEN - NULLIF ( + 0, + - 8 + + 58 ) * 79 END * - 59 + ( - - MAX ( + - 31 ) ) THEN NULL WHEN + 82 / 48 * 7 + + - 75 THEN NULL WHEN + 26 - - - 7 * + COUNT ( * ) THEN - 43 ELSE - 43 END + - 18
----
-34

query I rowsort
SELECT DISTINCT 66 + 13 + + - ( - 18 )
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-323
SELECT ALL - 88 + + COUNT( * ), - CAST( - + 7 AS SIGNED ) AS col0
----
-87
7

skipif mysql # not compatible
query II rowsort label-323
SELECT ALL - 88 + + COUNT ( * ), - CAST ( - + 7 AS INTEGER ) AS col0
----
-87
7

query I rowsort
SELECT + 14 * - + 77
----
-1078

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-325
SELECT ALL 84 * - 30 DIV - - COUNT( * ) AS col0, 33 + + 72
----
-2520
105

skipif mysql # not compatible
query II rowsort label-325
SELECT ALL 84 * - 30 / - - COUNT ( * ) AS col0, 33 + + 72
----
-2520
105

query I rowsort
SELECT DISTINCT 86 * 46 AS col0
----
3956

query I rowsort
SELECT DISTINCT 45 + + + 83 * + 21
----
1788

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-329
SELECT DISTINCT + NULLIF ( - + 54, - 82 + NULLIF ( COUNT( * ), + 6 ) - - 24 ) DIV 94
----
0

skipif mysql # not compatible
query I rowsort label-329
SELECT DISTINCT + NULLIF ( - + 54, - 82 + NULLIF ( COUNT ( * ), + 6 ) - - 24 ) / 94
----
0

query II rowsort
SELECT ALL 80 - - CASE + + 18 WHEN 56 * + 7 / + 58 + + 56 THEN - 67 END, 47 * + 55 + ( - - 19 ) AS col0
----
NULL
2604

query I rowsort
SELECT + 85 * 3 AS col1
----
255

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-332
SELECT - 91 * + NULLIF ( + ( 66 ), + COUNT( * ) / - CASE + + NULLIF ( + + 50, - - 23 + + 92 * - + 11 * 26 * + 25 * - - COUNT( * ) * 43 * 62 ) WHEN COUNT( * ) * ( + - 44 ) THEN NULL WHEN - 88 THEN COUNT( * ) ELSE - 55 * - - 35 + + + CAST( 51 AS SIGNED ) - + 2 END )
----
-6006

skipif mysql # not compatible
query I rowsort label-332
SELECT - 91 * + NULLIF ( + ( 66 ), + COUNT ( * ) / - CASE + + NULLIF ( + + 50, - - 23 + + 92 * - + 11 * 26 * + 25 * - - COUNT ( * ) * 43 * 62 ) WHEN COUNT ( * ) * ( + - 44 ) THEN NULL WHEN - 88 THEN COUNT ( * ) ELSE - 55 * - - 35 + + + CAST ( 51 AS INTEGER ) - + 2 END )
----
-6006

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-333
SELECT 17 * + CASE + SUM( - 82 ) WHEN - 98 THEN - CASE - + AVG ( DISTINCT + 61 ) WHEN CAST( NULL AS SIGNED ) * + - 4 + + - CAST( NULL AS SIGNED ) - + + COUNT( DISTINCT - - 98 ) * + + 27 THEN 18 WHEN + - COUNT( + 10 ) + 77 THEN NULL END - + + 57 + + - 64 + + 15 WHEN - SUM( - 12 ) * + - 7 + + 64 * 68 / + 95 THEN NULL ELSE NULL END + 3 - 75 * + ( 88 )
----
NULL

skipif mysql # not compatible
query I rowsort label-333
SELECT 17 * + CASE + SUM ( - 82 ) WHEN - 98 THEN - CASE - + AVG ( DISTINCT + 61 ) WHEN CAST ( NULL AS INTEGER ) * + - 4 + + - CAST ( NULL AS INTEGER ) - + + COUNT ( DISTINCT - - 98 ) * + + 27 THEN 18 WHEN + - COUNT ( + 10 ) + 77 THEN NULL END - + + 57 + + - 64 + + 15 WHEN - SUM ( - 12 ) * + - 7 + + 64 * 68 / + 95 THEN NULL ELSE NULL END + 3 - 75 * + ( 88 )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-335
SELECT - 95 * + 12 + + - COUNT( * )
----
-1141

skipif mysql # not compatible
query I rowsort label-335
SELECT - 95 * + 12 + + - COUNT ( * )
----
-1141

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-336
SELECT CAST( NULL AS SIGNED ), + 94 + + - 22 AS col1
----
NULL
72

skipif mysql # not compatible
query II rowsort label-336
SELECT CAST ( NULL AS INTEGER ), + 94 + + - 22 AS col1
----
NULL
72

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

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

query I rowsort
SELECT + 32 * - 72
----
-2304

onlyif mysql # aggregate syntax: 
query I rowsort label-339
SELECT DISTINCT SUM( ALL - 14 ) * - 37 - - 54 - - 20 + - 51 + 71 * 37 * - 32
----
-83523

skipif mysql # not compatible
query I rowsort label-339
SELECT DISTINCT SUM ( ALL - 14 ) * - 37 - - 54 - - 20 + - 51 + 71 * 37 * - 32
----
-83523

query I rowsort
SELECT - 1 * - 82 AS col0
----
82

query I rowsort
SELECT ALL + 55 * + - 23
----
-1265

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-343
SELECT DISTINCT + 46 * - - 16 DIV COUNT( * )
----
736

skipif mysql # not compatible
query I rowsort label-343
SELECT DISTINCT + 46 * - - 16 / COUNT ( * )
----
736

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

onlyif mysql # aggregate syntax: 
query I rowsort label-345
SELECT 49 + - + SUM( + 41 ) - COUNT( * ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-345
SELECT 49 + - + SUM ( + 41 ) - COUNT ( * ) AS col0
----
7

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

query I rowsort
SELECT 23 * + - 24
----
-552

query I rowsort
SELECT + 29 * 21 + - + 75 AS col1
----
534

query I rowsort
SELECT DISTINCT + 27 + + 10
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-350
SELECT ALL - - ( - 64 ) + 86 * - 39 * + 63 * + NULLIF ( 15, - COUNT( ALL - ( ( ( 70 ) ) ) ) + + + NULLIF ( - CAST( NULL AS SIGNED ), + + 88 * ( - 61 ) ) ) * + + 77 + + + 24 * 15 col0
----
-244053514

skipif mysql # not compatible
query I rowsort label-350
SELECT ALL - - ( - 64 ) + 86 * - 39 * + 63 * + NULLIF ( 15, - COUNT ( ALL - ( ( ( 70 ) ) ) ) + + + NULLIF ( - CAST ( NULL AS INTEGER ), + + 88 * ( - 61 ) ) ) * + + 77 + + + 24 * 15 col0
----
-244053514

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

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

query I rowsort
SELECT ALL - 77 * 91 AS col2
----
-7007

onlyif mysql # aggregate syntax: 
query II rowsort label-353
SELECT DISTINCT - + COUNT( * ) + 24 * + 46 + COUNT( * ) * + 35 * + - 92, - 36 + COALESCE ( - COUNT( * ), ( - + 11 ), + + 8 * COUNT( * ) ) AS col1
----
-2117
-37

skipif mysql # not compatible
query II rowsort label-353
SELECT DISTINCT - + COUNT ( * ) + 24 * + 46 + COUNT ( * ) * + 35 * + - 92, - 36 + COALESCE ( - COUNT ( * ), ( - + 11 ), + + 8 * COUNT ( * ) ) AS col1
----
-2117
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-354
SELECT ALL + - 41 + - 97 + + 91 * + + COUNT( * ) * + 93
----
8325

skipif mysql # not compatible
query I rowsort label-354
SELECT ALL + - 41 + - 97 + + 91 * + + COUNT ( * ) * + 93
----
8325

query I rowsort
SELECT ALL 26 * + 40 + - + 75 + - 92
----
873

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

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

query I rowsort
SELECT ALL - + 28 * + + 50 col0
----
-1400

query I rowsort
SELECT + COALESCE ( - 28, - 12 + + 34 ) - - NULLIF ( 84, + + 22 ) - 18
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-359
SELECT + COALESCE ( + ( - 35 ), - - 91 + + ( - ( ( CASE - 55 WHEN + ( - 18 ) THEN + 12 WHEN + + 51 + 96 THEN + ( + + 80 ) DIV + 56 - - 27 + + 85 END ) ) ) ) col2
----
-35

skipif mysql # not compatible
query I rowsort label-359
SELECT + COALESCE ( + ( - 35 ), - - 91 + + ( - ( ( CASE - 55 WHEN + ( - 18 ) THEN + 12 WHEN + + 51 + 96 THEN + ( + + 80 ) / + 56 - - 27 + + 85 END ) ) ) ) col2
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-360
SELECT ALL + COUNT( * ) * - COUNT( * ) * + - 62 * + + 80 * + + 59 + + + 46 + - 41
----
292645

skipif mysql # not compatible
query I rowsort label-360
SELECT ALL + COUNT ( * ) * - COUNT ( * ) * + - 62 * + + 80 * + + 59 + + + 46 + - 41
----
292645

query II rowsort
SELECT - + 81 AS col0, 7 AS col2
----
-81
7

query II rowsort
SELECT - - 27 AS col0, + 86 + + 58 AS col0
----
27
144

onlyif mysql # aggregate syntax: 
query II rowsort label-363
SELECT - ( - 73 ) + 84, - 2 * - 67 + + NULLIF ( + COUNT( * ), 35 ) AS col1
----
157
135

skipif mysql # not compatible
query II rowsort label-363
SELECT - ( - 73 ) + 84, - 2 * - 67 + + NULLIF ( + COUNT ( * ), 35 ) AS col1
----
157
135

query I rowsort
SELECT DISTINCT 11 + - - COALESCE ( + - 76, + 70 + - 25, + 15 )
----
-65

onlyif mysql # aggregate syntax: 
query II rowsort label-365
SELECT ALL 15 + 69 * 61 AS col2, - COUNT( * ) AS col0
----
4224
-1

skipif mysql # not compatible
query II rowsort label-365
SELECT ALL 15 + 69 * 61 AS col2, - COUNT ( * ) AS col0
----
4224
-1

query II rowsort
SELECT - 23 col1, + 34 AS col2
----
-23
34

query I rowsort
SELECT ALL 80 - + 6 + 12
----
86

query I rowsort
SELECT ALL 74 * + - 16
----
-1184

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-369
SELECT 24 + - 23 DIV + CAST( - SUM( DISTINCT + - CAST( + + 32 AS DECIMAL ) ) AS SIGNED ) * - - 47 + - COUNT( * ) AS col0
----
23

skipif mysql # not compatible
query I rowsort label-369
SELECT 24 + - 23 / + CAST ( - SUM ( DISTINCT + - CAST ( + + 32 AS REAL ) ) AS INTEGER ) * - - 47 + - COUNT ( * ) AS col0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-370
SELECT DISTINCT 91 * SUM( 59 )
----
5369

skipif mysql # not compatible
query I rowsort label-370
SELECT DISTINCT 91 * SUM ( 59 )
----
5369

query I rowsort
SELECT ALL 26 * 8 AS col1
----
208

onlyif mysql # aggregate syntax: 
query I rowsort label-372
SELECT 8 * + NULLIF ( 39, COUNT( * ) - CASE + + 2 WHEN + 48 THEN 28 WHEN + MIN( DISTINCT - 58 ) * + + COUNT( * ) + - 56 + - - ( + 59 ) * COUNT( ALL 63 ) THEN + + 74 ELSE NULL END ) * + COUNT( * ) col2
----
312

skipif mysql # not compatible
query I rowsort label-372
SELECT 8 * + NULLIF ( 39, COUNT ( * ) - CASE + + 2 WHEN + 48 THEN 28 WHEN + MIN ( DISTINCT - 58 ) * + + COUNT ( * ) + - 56 + - - ( + 59 ) * COUNT ( ALL 63 ) THEN + + 74 ELSE NULL END ) * + COUNT ( * ) col2
----
312

query I rowsort
SELECT ALL 38 * - - 47
----
1786

query I rowsort
SELECT - 28 * + 72 + - 4 * - 38 * + 82 AS col1
----
10448

onlyif mysql # aggregate syntax: 
query I rowsort label-375
SELECT ALL - MAX( DISTINCT ( - 3 ) ) col1
----
3

skipif mysql # not compatible
query I rowsort label-375
SELECT ALL - MAX ( DISTINCT ( - 3 ) ) col1
----
3

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-377
SELECT 33 * - CAST( + SUM( ALL + 4 ) AS SIGNED )
----
-132

skipif mysql # not compatible
query I rowsort label-377
SELECT 33 * - CAST ( + SUM ( ALL + 4 ) AS INTEGER )
----
-132

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-378
SELECT 86 DIV - - COUNT( * ) + + COALESCE ( 73, 89 DIV - + 86 ) AS col1
----
159

skipif mysql # not compatible
query I rowsort label-378
SELECT 86 / - - COUNT ( * ) + + COALESCE ( 73, 89 / - + 86 ) AS col1
----
159

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-379
SELECT COALESCE ( + - ( - 37 ), 79 * - + 81 + - + CAST( NULL AS SIGNED ) - COUNT( DISTINCT - 57 ) DIV - 11, 41 ) + - 10 AS col1
----
27

skipif mysql # not compatible
query I rowsort label-379
SELECT COALESCE ( + - ( - 37 ), 79 * - + 81 + - + CAST ( NULL AS INTEGER ) - COUNT ( DISTINCT - 57 ) / - 11, 41 ) + - 10 AS col1
----
27

query I rowsort
SELECT 60 * + 8 + - 7 + - 71
----
402

onlyif mysql # aggregate syntax: 
query I rowsort label-381
SELECT 59 * - + MAX( + 40 )
----
-2360

skipif mysql # not compatible
query I rowsort label-381
SELECT 59 * - + MAX ( + 40 )
----
-2360

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-383
SELECT ALL + 24 + + 85 - - + COUNT( * ) AS col0
----
110

skipif mysql # not compatible
query I rowsort label-383
SELECT ALL + 24 + + 85 - - + COUNT ( * ) AS col0
----
110

query I rowsort
SELECT ALL 14 + - - 30 AS col1
----
44

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-385
SELECT DISTINCT 18 + - + AVG ( DISTINCT + 63 ) * + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-385
SELECT DISTINCT 18 + - + AVG ( DISTINCT + 63 ) * + CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-386
SELECT DISTINCT - + CAST( + 76 AS SIGNED )
----
-76

skipif mysql # not compatible
query I rowsort label-386
SELECT DISTINCT - + CAST ( + 76 AS INTEGER )
----
-76

query I rowsort
SELECT + 67 + - + 50 AS col2
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-388
SELECT ALL - COUNT( * ) + 98 - - - 19 * - + 0 AS col2
----
97

skipif mysql # not compatible
query I rowsort label-388
SELECT ALL - COUNT ( * ) + 98 - - - 19 * - + 0 AS col2
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-389
SELECT ALL - CASE + 90 WHEN + - 1 THEN + 90 + - CAST( 4 AS SIGNED ) ELSE NULL END + - 29 + 66 + + MAX( DISTINCT + 28 ) + - 94 - - 99 * - - CASE ( - - 68 ) WHEN - + MAX( ALL - 93 ) * - - 36 THEN 93 END + + 60 * + - 32
----
NULL

skipif mysql # not compatible
query I rowsort label-389
SELECT ALL - CASE + 90 WHEN + - 1 THEN + 90 + - CAST ( 4 AS INTEGER ) ELSE NULL END + - 29 + 66 + + MAX ( DISTINCT + 28 ) + - 94 - - 99 * - - CASE ( - - 68 ) WHEN - + MAX ( ALL - 93 ) * - - 36 THEN 93 END + + 60 * + - 32
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-390
SELECT - 33 + - 80 + COUNT( * ) AS col2
----
-112

skipif mysql # not compatible
query I rowsort label-390
SELECT - 33 + - 80 + COUNT ( * ) AS col2
----
-112

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

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

query I rowsort
SELECT ALL - + 25 - + 70 AS col0
----
-95

query I rowsort
SELECT DISTINCT - 94 - + ( + COALESCE ( - 62, + 38 ) )
----
-32

query I rowsort
SELECT ALL - + 50 * + - 16
----
800

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-395
SELECT + 96 + - CAST( - - CAST( - 99 AS SIGNED ) AS SIGNED ) + - 53
----
142

skipif mysql # not compatible
query I rowsort label-395
SELECT + 96 + - CAST ( - - CAST ( - 99 AS INTEGER ) AS INTEGER ) + - 53
----
142

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

skipif mysql # not compatible
query I rowsort label-396
SELECT - 5 * - COUNT ( * )
----
5

query I rowsort
SELECT 80 + - 80 + - 50
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-398
SELECT + COUNT( * ) * - + ( - - SUM( - - 84 ) ) AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-398
SELECT + COUNT ( * ) * - + ( - - SUM ( - - 84 ) ) AS col2
----
-84

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

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

query I rowsort
SELECT 24 * + - ( - 79 ) * + 35 AS col2
----
66360

onlyif mysql # aggregate syntax: 
query I rowsort label-401
SELECT ALL MIN( 65 ) AS col1
----
65

skipif mysql # not compatible
query I rowsort label-401
SELECT ALL MIN ( 65 ) AS col1
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-402
SELECT DISTINCT MIN( ALL 48 )
----
48

skipif mysql # not compatible
query I rowsort label-402
SELECT DISTINCT MIN ( ALL 48 )
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-403
SELECT 24 + - SUM( + 43 )
----
-19

skipif mysql # not compatible
query I rowsort label-403
SELECT 24 + - SUM ( + 43 )
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-404
SELECT DISTINCT COALESCE ( 76, + COUNT( * ), - NULLIF ( 65, CAST( - 0 AS SIGNED ) * + 57 - + + COUNT( * ) ) )
----
76

skipif mysql # not compatible
query I rowsort label-404
SELECT DISTINCT COALESCE ( 76, + COUNT ( * ), - NULLIF ( 65, CAST ( - 0 AS INTEGER ) * + 57 - + + COUNT ( * ) ) )
----
76

query I rowsort
SELECT 4 + + 29 + 52 + + 59 AS col0
----
144

query II rowsort
SELECT + 78 * - - CASE WHEN + 97 IS NOT NULL THEN 10 * 84 WHEN NOT NULL IS NOT NULL THEN - ( + 56 ) END * - 0 AS col0, 5
----
0
5

onlyif mysql # aggregate syntax: 
query I rowsort label-407
SELECT CASE - 45 WHEN 44 THEN NULL WHEN + 94 THEN + - 85 END * + - COALESCE ( + 53, + 66 * - + 38 * - ( - - MAX( - 45 ) ) * 58 + 40 * 30 + + + 3, MAX( DISTINCT 58 ) ) + + 18
----
NULL

skipif mysql # not compatible
query I rowsort label-407
SELECT CASE - 45 WHEN 44 THEN NULL WHEN + 94 THEN + - 85 END * + - COALESCE ( + 53, + 66 * - + 38 * - ( - - MAX ( - 45 ) ) * 58 + 40 * 30 + + + 3, MAX ( DISTINCT 58 ) ) + + 18
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-409
SELECT ALL - 55 * + 13 + - 13 DIV 62 * - - 16
----
-715

skipif mysql # not compatible
query I rowsort label-409
SELECT ALL - 55 * + 13 + - 13 / 62 * - - 16
----
-715

onlyif mysql # aggregate syntax: 
query II rowsort label-410
SELECT + 60 + + COUNT( * ) * - 22 AS col2, + 39 AS col1
----
38
39

skipif mysql # not compatible
query II rowsort label-410
SELECT + 60 + + COUNT ( * ) * - 22 AS col2, + 39 AS col1
----
38
39

query I rowsort
SELECT DISTINCT 71 * - 23
----
-1633

onlyif mysql # aggregate syntax: 
query II rowsort label-412
SELECT ALL - 54 * - 20 + - + 29 + - - 51 + + 22 + + COUNT( * ) AS col0, 50
----
1125
50

skipif mysql # not compatible
query II rowsort label-412
SELECT ALL - 54 * - 20 + - + 29 + - - 51 + + 22 + + COUNT ( * ) AS col0, 50
----
1125
50

onlyif mysql # aggregate syntax: 
query I rowsort label-413
SELECT ALL - COUNT( * ) * COUNT( * ) + - COUNT( * ) + + SUM( ALL + 74 ) * - 34 * - + 16 + - COUNT( * ) + + 62
----
40315

skipif mysql # not compatible
query I rowsort label-413
SELECT ALL - COUNT ( * ) * COUNT ( * ) + - COUNT ( * ) + + SUM ( ALL + 74 ) * - 34 * - + 16 + - COUNT ( * ) + + 62
----
40315

onlyif mysql # aggregate syntax: 
query I rowsort label-414
SELECT ALL - 8 * - 77 + + 24 * - + 59 - + - MAX( CASE + + ( + 11 ) WHEN + 12 / 47 THEN NULL ELSE + - 72 * 66 END )
----
-5552

skipif mysql # not compatible
query I rowsort label-414
SELECT ALL - 8 * - 77 + + 24 * - + 59 - + - MAX ( CASE + + ( + 11 ) WHEN + 12 / 47 THEN NULL ELSE + - 72 * 66 END )
----
-5552

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

query I rowsort
SELECT + 87 + 51
----
138

query I rowsort
SELECT ALL 73 * - 0 - + + 14 col0
----
-14

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

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

query II rowsort
SELECT DISTINCT + 97 AS col2, 90 AS col2
----
97
90

onlyif mysql # aggregate syntax: 
query II rowsort label-420
SELECT + + COUNT( DISTINCT - 33 ) * - 29 * COUNT( - 27 ) AS col1, 83
----
-29
83

skipif mysql # not compatible
query II rowsort label-420
SELECT + + COUNT ( DISTINCT - 33 ) * - 29 * COUNT ( - 27 ) AS col1, 83
----
-29
83

query I rowsort
SELECT ALL 81 * 80 - - 40 AS col0
----
6520

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

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-427
SELECT ALL COALESCE ( ( + 57 ), + MIN( + 27 ) )
----
57

skipif mysql # not compatible
query I rowsort label-427
SELECT ALL COALESCE ( ( + 57 ), + MIN ( + 27 ) )
----
57

query I rowsort
SELECT ALL 62 * + - 42 AS col1
----
-2604

query II rowsort
SELECT 7 AS col0, 38 AS col2
----
7
38

onlyif mysql # aggregate syntax: 
query I rowsort label-430
SELECT ALL COALESCE ( 60, - - MIN( DISTINCT + 49 ) )
----
60

skipif mysql # not compatible
query I rowsort label-430
SELECT ALL COALESCE ( 60, - - MIN ( DISTINCT + 49 ) )
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-431
SELECT ALL + 4 DIV - 53 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-431
SELECT ALL + 4 / - 53 AS col2
----
0

query I rowsort
SELECT - 9 - + + 88 * + 44
----
-3881

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

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

query I rowsort
SELECT - 26 * - + 73 AS col1
----
1898

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

query I rowsort
SELECT - 2 * - 17 AS col2
----
34

query I rowsort
SELECT - 73 + - 83 AS col2
----
-156

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

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

query II rowsort
SELECT - 49 + + 87 + + 72 * 11 col2, 11
----
830
11

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

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

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

skipif mysql # not compatible
query I rowsort label-441
SELECT DISTINCT - CAST ( NULL AS REAL ) + 9 AS col1
----
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-443
SELECT DISTINCT - 42 + COUNT ( * ) AS col2
----
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-444
SELECT ALL COUNT( * ) DIV + - 12 + + 95 AS col0
----
95

skipif mysql # not compatible
query I rowsort label-444
SELECT ALL COUNT ( * ) / + - 12 + + 95 AS col0
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-445
SELECT - 36 * - MIN( + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-445
SELECT - 36 * - MIN ( + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-446
SELECT DISTINCT - 95 / + COUNT( * ) + + CAST( NULL AS DECIMAL ) * - ( + - 73 ) + + - 30 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-446
SELECT DISTINCT - 95 / + COUNT ( * ) + + CAST ( NULL AS REAL ) * - ( + - 73 ) + + - 30 AS col2
----
NULL

query I rowsort
SELECT ( - - COALESCE ( + 37, - 15 * + 24 + - 78 ) )
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-448
SELECT 15 DIV - 33 + - 47
----
-47

skipif mysql # not compatible
query I rowsort label-448
SELECT 15 / - 33 + - 47
----
-47

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

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

query I rowsort
SELECT - + 40 + - 45
----
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-451
SELECT ALL 21 DIV 72 - 55
----
-55

skipif mysql # not compatible
query I rowsort label-451
SELECT ALL 21 / 72 - 55
----
-55

query I rowsort
SELECT + 50 * - 66 + + 48
----
-3252

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

skipif mysql # not compatible
query II rowsort label-453
SELECT + CAST ( NULL AS INTEGER ) AS col1, 54
----
NULL
54

query I rowsort
SELECT - - 49 * + 81
----
3969

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-456
SELECT + - COUNT( * ) * + CASE - - CAST( + 64 AS SIGNED ) WHEN - COUNT( * ) THEN - COUNT( * ) WHEN + 76 * + 85 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-456
SELECT + - COUNT ( * ) * + CASE - - CAST ( + 64 AS INTEGER ) WHEN - COUNT ( * ) THEN - COUNT ( * ) WHEN + 76 * + 85 THEN NULL END
----
NULL

query I rowsort
SELECT ALL - ( + 14 ) * + 57
----
-798

onlyif mysql # aggregate syntax: 
query II rowsort label-458
SELECT + 51 + COUNT( * ) * - 59 * + + 57, - 80 AS col2
----
-3312
-80

skipif mysql # not compatible
query II rowsort label-458
SELECT + 51 + COUNT ( * ) * - 59 * + + 57, - 80 AS col2
----
-3312
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-459
SELECT + ( 42 ) + - 14 + + CAST( COUNT( * ) AS SIGNED ) col0
----
29

skipif mysql # not compatible
query I rowsort label-459
SELECT + ( 42 ) + - 14 + + CAST ( COUNT ( * ) AS INTEGER ) col0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-460
SELECT ALL - 6 * + + 22 - + 58 + + - NULLIF ( - 33, 28 ) * COUNT( 24 )
----
-157

skipif mysql # not compatible
query I rowsort label-460
SELECT ALL - 6 * + + 22 - + 58 + + - NULLIF ( - 33, 28 ) * COUNT ( 24 )
----
-157

onlyif mysql # aggregate syntax: 
query I rowsort label-461
SELECT + 58 * + - 17 * COUNT( DISTINCT + + 68 ) + 1 + - + 38 * COUNT( * ) AS col0
----
-1023

skipif mysql # not compatible
query I rowsort label-461
SELECT + 58 * + - 17 * COUNT ( DISTINCT + + 68 ) + 1 + - + 38 * COUNT ( * ) AS col0
----
-1023

query I rowsort
SELECT + - 64 + 96 * + 37 + 68 AS col1
----
3556

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-464
SELECT + + 84 + - COUNT( * ) AS col0
----
83

skipif mysql # not compatible
query I rowsort label-464
SELECT + + 84 + - COUNT ( * ) AS col0
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-465
SELECT + + 73 DIV - - 7 + - + 72 AS col2
----
-62

skipif mysql # not compatible
query I rowsort label-465
SELECT + + 73 / - - 7 + - + 72 AS col2
----
-62

onlyif mysql # DIV for integer division: 
query II rowsort label-466
SELECT ALL - 71, 16 DIV ( - 1 ) col1
----
-71
-16

skipif mysql # not compatible
query II rowsort label-466
SELECT ALL - 71, 16 / ( - 1 ) col1
----
-71
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-467
SELECT DISTINCT ( + + 91 ) DIV - + 80
----
-1

skipif mysql # not compatible
query I rowsort label-467
SELECT DISTINCT ( + + 91 ) / - + 80
----
-1

query I rowsort
SELECT + 9 + - + ( + 34 ) AS col0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-469
SELECT + 85 + + 76 + + + COUNT( * )
----
162

skipif mysql # not compatible
query I rowsort label-469
SELECT + 85 + + 76 + + + COUNT ( * )
----
162

query II rowsort
SELECT - ( + 34 ) AS col0, + 48 + 28
----
-34
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-471
SELECT ALL 67 + + CAST( - 58 AS SIGNED ) + + - 43 * - 64 * 63
----
173385

skipif mysql # not compatible
query I rowsort label-471
SELECT ALL 67 + + CAST ( - 58 AS INTEGER ) + + - 43 * - 64 * 63
----
173385

onlyif mysql # aggregate syntax: 
query I rowsort label-472
SELECT 14 + + - MAX( DISTINCT - - 82 ) AS col2
----
-68

skipif mysql # not compatible
query I rowsort label-472
SELECT 14 + + - MAX ( DISTINCT - - 82 ) AS col2
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-473
SELECT NULLIF ( - 3, - NULLIF ( + - NULLIF ( + 4, - ( ( + 47 ) ) ), - 92 * - - 59 * + 32 + 10 ) ) * - 36 * - COUNT( * ) AS col0
----
-108

skipif mysql # not compatible
query I rowsort label-473
SELECT NULLIF ( - 3, - NULLIF ( + - NULLIF ( + 4, - ( ( + 47 ) ) ), - 92 * - - 59 * + 32 + 10 ) ) * - 36 * - COUNT ( * ) AS col0
----
-108

query II rowsort
SELECT 52 + + 19, 11 AS col0
----
71
11

onlyif mysql # aggregate syntax: 
query II rowsort label-475
SELECT ALL CASE COUNT( * ) WHEN 25 * + - 51 THEN NULL WHEN - 51 - - + 62 THEN + - COUNT( * ) + 16 ELSE NULL END * 77 * + 74 AS col2, 71 * 97
----
NULL
6887

skipif mysql # not compatible
query II rowsort label-475
SELECT ALL CASE COUNT ( * ) WHEN 25 * + - 51 THEN NULL WHEN - 51 - - + 62 THEN + - COUNT ( * ) + 16 ELSE NULL END * 77 * + 74 AS col2, 71 * 97
----
NULL
6887

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-477
SELECT CAST( NULL AS SIGNED ) / + + 79 * - 89 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-477
SELECT CAST ( NULL AS INTEGER ) / + + 79 * - 89 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-478
SELECT + - NULLIF ( - MIN( + ( + 98 ) ), 8 * - 76 * - 6 * 54 + + 30 ) AS col1
----
98

skipif mysql # not compatible
query I rowsort label-478
SELECT + - NULLIF ( - MIN ( + ( + 98 ) ), 8 * - 76 * - 6 * 54 + + 30 ) AS col1
----
98

query I rowsort
SELECT DISTINCT + 17 * - 69 AS col2
----
-1173

query I rowsort
SELECT ALL + - 19 * + 16
----
-304

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-481
SELECT + ( - 40 ) DIV 31 + - 75 + + + 17 - - COUNT( * ) DIV - + 82 AS col0, + 43 AS col2
----
-59
43

skipif mysql # not compatible
query II rowsort label-481
SELECT + ( - 40 ) / 31 + - 75 + + + 17 - - COUNT ( * ) / - + 82 AS col0, + 43 AS col2
----
-59
43

onlyif mysql # aggregate syntax: 
query I rowsort label-482
SELECT ALL + COUNT( * ) * 98 * + NULLIF ( + - ( + CASE + ( - AVG ( ( + 36 ) ) ) WHEN + 92 + COUNT( DISTINCT - 75 ) * + NULLIF ( - ( + COUNT( * ) ), + 89 ) THEN NULL WHEN + + 63 THEN - CASE - + 69 WHEN SUM( ALL + 24 ) / COUNT( * ) + - 44 + + 76 THEN NULL ELSE + + 54 - 18 END + ( - 7 ) END ), - + COUNT( * ) * - 77 - - 95 * NULLIF ( 11, + 26 ) * 68 ) * 8 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-482
SELECT ALL + COUNT ( * ) * 98 * + NULLIF ( + - ( + CASE + ( - AVG ( ( + 36 ) ) ) WHEN + 92 + COUNT ( DISTINCT - 75 ) * + NULLIF ( - ( + COUNT ( * ) ), + 89 ) THEN NULL WHEN + + 63 THEN - CASE - + 69 WHEN SUM ( ALL + 24 ) / COUNT ( * ) + - 44 + + 76 THEN NULL ELSE + + 54 - 18 END + ( - 7 ) END ), - + COUNT ( * ) * - 77 - - 95 * NULLIF ( 11, + 26 ) * 68 ) * 8 AS col1
----
NULL

query I rowsort
SELECT ALL + 9 * 63
----
567

query I rowsort
SELECT ALL + 65 * 34 + 12 AS col0
----
2222

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

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

query I rowsort
SELECT + 76 * - 11 col0
----
-836

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

query I rowsort
SELECT 13 * + 43 + 14
----
573

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-489
SELECT + 43 * - COUNT( * ) AS col2, + CASE + + 64 WHEN - + SUM( - 89 ) + + 9 * + - CAST( NULL AS SIGNED ) / - COUNT( * ) * 38 + - COUNT( * ) THEN - 58 WHEN - 59 THEN NULL END / 39 col2
----
-43
NULL

skipif mysql # not compatible
query II rowsort label-489
SELECT + 43 * - COUNT ( * ) AS col2, + CASE + + 64 WHEN - + SUM ( - 89 ) + + 9 * + - CAST ( NULL AS INTEGER ) / - COUNT ( * ) * 38 + - COUNT ( * ) THEN - 58 WHEN - 59 THEN NULL END / 39 col2
----
-43
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-490
SELECT ALL + 21 DIV 44 - 87 AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-490
SELECT ALL + 21 / 44 - 87 AS col2
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-491
SELECT ALL COUNT( * ) + 79 + - SUM( 95 ) AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-491
SELECT ALL COUNT ( * ) + 79 + - SUM ( 95 ) AS col0
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-492
SELECT DISTINCT CAST( + 59 AS SIGNED ) + - - 19 * - + 15 AS col0
----
-226

skipif mysql # not compatible
query I rowsort label-492
SELECT DISTINCT CAST ( + 59 AS INTEGER ) + - - 19 * - + 15 AS col0
----
-226

onlyif mysql # aggregate syntax: 
query I rowsort label-493
SELECT DISTINCT + COUNT( * ) * COUNT( * ) * + 47 * - - MAX( 50 )
----
2350

skipif mysql # not compatible
query I rowsort label-493
SELECT DISTINCT + COUNT ( * ) * COUNT ( * ) * + 47 * - - MAX ( 50 )
----
2350

onlyif mysql # aggregate syntax: 
query I rowsort label-494
SELECT DISTINCT ( + - 6 ) + + 74 + - COUNT( * ) * - 92 AS col2
----
160

skipif mysql # not compatible
query I rowsort label-494
SELECT DISTINCT ( + - 6 ) + + 74 + - COUNT ( * ) * - 92 AS col2
----
160

query I rowsort
SELECT 8 - + 94 AS col1
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-496
SELECT 14 * + 84 * + - COUNT( ALL + 66 ) AS col1
----
-1176

skipif mysql # not compatible
query I rowsort label-496
SELECT 14 * + 84 * + - COUNT ( ALL + 66 ) AS col1
----
-1176

query I rowsort
SELECT 17 + - 80
----
-63

query I rowsort
SELECT 53 * - 60 AS col1
----
-3180

onlyif mysql # DIV for integer division: 
query I rowsort label-499
SELECT 59 + - - 0 DIV 41 col2
----
59

skipif mysql # not compatible
query I rowsort label-499
SELECT 59 + - - 0 / 41 col2
----
59

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-500
SELECT DISTINCT 96 DIV + - NULLIF ( + ( 36 ), - - 89 + + CAST( NULL AS DECIMAL ) ), COUNT( * ) AS col0
----
-2
1

skipif mysql # not compatible
query II rowsort label-500
SELECT DISTINCT 96 / + - NULLIF ( + ( 36 ), - - 89 + + CAST ( NULL AS REAL ) ), COUNT ( * ) AS col0
----
-2
1

query II rowsort
SELECT ALL 65, 15 col0
----
65
15

query I rowsort
SELECT ALL 14 + + + 57 AS col2
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-503
SELECT ALL 18 AS col1, - CASE - ( + 69 ) WHEN + 51 * - 92 THEN ( + 38 ) * - 61 + + 25 ELSE NULL END * - - 98 + 43 * 29 + + ( - + CASE - - COUNT( DISTINCT - + 58 ) WHEN - MAX( - 72 ) + + 84 + - CAST( - 39 AS SIGNED ) THEN + + 41 ELSE NULL END ) AS col0
----
18
NULL

skipif mysql # not compatible
query II rowsort label-503
SELECT ALL 18 AS col1, - CASE - ( + 69 ) WHEN + 51 * - 92 THEN ( + 38 ) * - 61 + + 25 ELSE NULL END * - - 98 + 43 * 29 + + ( - + CASE - - COUNT ( DISTINCT - + 58 ) WHEN - MAX ( - 72 ) + + 84 + - CAST ( - 39 AS INTEGER ) THEN + + 41 ELSE NULL END ) AS col0
----
18
NULL

query I rowsort
SELECT ALL 90 + + ( + - 9 )
----
81

query I rowsort
SELECT ALL 7 * + + 86
----
602

query II rowsort
SELECT 83 AS col1, 75
----
83
75

onlyif mysql # aggregate syntax: 
query I rowsort label-507
SELECT 62 + 53 * - + COUNT( * )
----
9

skipif mysql # not compatible
query I rowsort label-507
SELECT 62 + 53 * - + COUNT ( * )
----
9

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

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

query I rowsort
SELECT ALL 54 - - 80 + - - 8 * + 72 AS col2
----
710

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-510
SELECT COALESCE ( - 38, + CAST( NULL AS SIGNED ), + + ( COUNT( * ) ) ) + + 18 * + 39 AS col1
----
664

skipif mysql # not compatible
query I rowsort label-510
SELECT COALESCE ( - 38, + CAST ( NULL AS INTEGER ), + + ( COUNT ( * ) ) ) + + 18 * + 39 AS col1
----
664

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-511
SELECT CAST( 24 AS SIGNED ) * 33 AS col2, 95 - 53 col0
----
792
42

skipif mysql # not compatible
query II rowsort label-511
SELECT CAST ( 24 AS INTEGER ) * 33 AS col2, 95 - 53 col0
----
792
42

onlyif mysql # aggregate syntax: 
query II rowsort label-512
SELECT 51 + + - MAX( ALL + 52 ) AS col2, 99
----
-1
99

skipif mysql # not compatible
query II rowsort label-512
SELECT 51 + + - MAX ( ALL + 52 ) AS col2, 99
----
-1
99

query II rowsort
SELECT + 30 AS col1, + 29 + 14 - - 33
----
30
76

query I rowsort
SELECT ALL - ( - 55 ) * + 20 + + - 89 - 93 AS col1
----
918

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

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

query II rowsort
SELECT ALL 92 AS col2, 95 * + - 49
----
92
-4655

onlyif mysql # DIV for integer division: 
query I rowsort label-517
SELECT DISTINCT - - 16 DIV - 99 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-517
SELECT DISTINCT - - 16 / - 99 AS col2
----
0

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-520
SELECT + - MIN( - 77 ) AS col0
----
77

skipif mysql # not compatible
query I rowsort label-520
SELECT + - MIN ( - 77 ) AS col0
----
77

query I rowsort
SELECT ALL - + ( + 53 ) col0
----
-53

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

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

query I rowsort
SELECT - 0 + - + 37
----
-37

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-525
SELECT DISTINCT - CAST( - 46 AS SIGNED ) DIV + 54, 58 col1
----
0
58

skipif mysql # not compatible
query II rowsort label-525
SELECT DISTINCT - CAST ( - 46 AS INTEGER ) / + 54, 58 col1
----
0
58

onlyif mysql # DIV for integer division: 
query I rowsort label-526
SELECT 80 DIV 47 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-526
SELECT 80 / 47 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-527
SELECT ALL - + COALESCE ( + 37, + 99 ) * 83 * COUNT( ALL - + 27 ) * + + 59 - + - 52 + + 77 * - + MAX( DISTINCT + 92 ) + + + 6 + - SUM( 80 ) + - - 17
----
-188278

skipif mysql # not compatible
query I rowsort label-527
SELECT ALL - + COALESCE ( + 37, + 99 ) * 83 * COUNT ( ALL - + 27 ) * + + 59 - + - 52 + + 77 * - + MAX ( DISTINCT + 92 ) + + + 6 + - SUM ( 80 ) + - - 17
----
-188278

onlyif mysql # aggregate syntax: 
query I rowsort label-528
SELECT ALL - + 82 * 78 * - MIN( - 3 ) AS col0
----
-19188

skipif mysql # not compatible
query I rowsort label-528
SELECT ALL - + 82 * 78 * - MIN ( - 3 ) AS col0
----
-19188

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

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

query I rowsort
SELECT - 86 + - 38 col1
----
-124

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

onlyif mysql # aggregate syntax: 
query I rowsort label-532
SELECT ALL + COALESCE ( NULLIF ( + 65, COUNT( * ) ), 28 ) + 87 AS col0
----
152

skipif mysql # not compatible
query I rowsort label-532
SELECT ALL + COALESCE ( NULLIF ( + 65, COUNT ( * ) ), 28 ) + 87 AS col0
----
152

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-533
SELECT - 74 + + CAST( - COUNT( * ) AS SIGNED )
----
-75

skipif mysql # not compatible
query I rowsort label-533
SELECT - 74 + + CAST ( - COUNT ( * ) AS INTEGER )
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-534
SELECT - 50 + + + SUM( DISTINCT 79 ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-534
SELECT - 50 + + + SUM ( DISTINCT 79 ) AS col2
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-535
SELECT + COUNT( * ) * - + 11 + - 22 DIV - 5 AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-535
SELECT + COUNT ( * ) * - + 11 + - 22 / - 5 AS col0
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-536
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + NULLIF ( CAST( - 96 AS SIGNED ), - 78 * - + SUM( 65 ) * 52 ) + - + 5
----
NULL

skipif mysql # not compatible
query I rowsort label-536
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + NULLIF ( CAST ( - 96 AS INTEGER ), - 78 * - + SUM ( 65 ) * 52 ) + - + 5
----
NULL

query I rowsort
SELECT DISTINCT 55 * + 0 * - 8
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-538
SELECT ALL 14 + 20 + - ( 72 ) AS col0, - CAST( NULL AS DECIMAL ) AS col2
----
-38
NULL

skipif mysql # not compatible
query II rowsort label-538
SELECT ALL 14 + 20 + - ( 72 ) AS col0, - CAST ( NULL AS REAL ) AS col2
----
-38
NULL

query I rowsort
SELECT - 57 * + 51 + 70 * - - 44 AS col1
----
173

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

skipif mysql # not compatible
query I rowsort label-540
SELECT ALL SUM ( - - 30 )
----
30

onlyif mysql # aggregate syntax: 
query II rowsort label-541
SELECT DISTINCT - 65 * 6 * 44 * - + 53 * 41 AS col1, + COUNT( * ) AS col2
----
37288680
1

skipif mysql # not compatible
query II rowsort label-541
SELECT DISTINCT - 65 * 6 * 44 * - + 53 * 41 AS col1, + COUNT ( * ) AS col2
----
37288680
1

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

skipif mysql # not compatible
query I rowsort label-542
SELECT ALL + CAST ( NULL AS INTEGER ) - + ( + + COUNT ( * ) ) + NULLIF ( + - COUNT ( * ), + 85 )
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-544
SELECT - 60 DIV 44
----
-1

skipif mysql # not compatible
query I rowsort label-544
SELECT - 60 / 44
----
-1

query I rowsort
SELECT + 66 * - 17 AS col0
----
-1122

onlyif mysql # aggregate syntax: 
query I rowsort label-546
SELECT - 77 + - 55 + - COUNT( - 47 ) AS col1
----
-133

skipif mysql # not compatible
query I rowsort label-546
SELECT - 77 + - 55 + - COUNT ( - 47 ) AS col1
----
-133

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

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

query I rowsort
SELECT ALL COALESCE ( 37, - 24 + - 81 ) AS col0
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-549
SELECT ALL - 67 DIV 24 * - - 62
----
-124

skipif mysql # not compatible
query I rowsort label-549
SELECT ALL - 67 / 24 * - - 62
----
-124

onlyif mysql # aggregate syntax: 
query I rowsort label-550
SELECT + + 3 * - - 73 * COUNT( - 35 ) col2
----
219

skipif mysql # not compatible
query I rowsort label-550
SELECT + + 3 * - - 73 * COUNT ( - 35 ) col2
----
219

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-551
SELECT ALL CASE - 30 WHEN CAST( - 12 AS SIGNED ) * + - 91 THEN - 44 / 28 + + ( - + 84 ) END AS col0, - CAST( - - CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-551
SELECT ALL CASE - 30 WHEN CAST ( - 12 AS INTEGER ) * + - 91 THEN - 44 / 28 + + ( - + 84 ) END AS col0, - CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-552
SELECT + - 87 + + - 49 + + - MAX( 74 ) * - COUNT( * ) col0
----
-62

skipif mysql # not compatible
query I rowsort label-552
SELECT + - 87 + + - 49 + + - MAX ( 74 ) * - COUNT ( * ) col0
----
-62

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-553
SELECT + + 12 + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-553
SELECT + + 12 + + CAST ( NULL AS REAL )
----
NULL

query II rowsort
SELECT ALL - ( + 37 ) AS col0, + 17 AS col0
----
-37
17

onlyif mysql # aggregate syntax: 
query I rowsort label-555
SELECT + 31 * - ( - + SUM( ALL - 82 ) ) * - - 37
----
-94054

skipif mysql # not compatible
query I rowsort label-555
SELECT + 31 * - ( - + SUM ( ALL - 82 ) ) * - - 37
----
-94054

query I rowsort
SELECT + - 68 - - - 50
----
-118

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

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

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

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

query I rowsort
SELECT + CASE + NULLIF ( - 21, 37 ) WHEN - + 0 THEN + 33 END
----
NULL

query I rowsort
SELECT DISTINCT + ( 95 ) * 80 * - 99 AS col0
----
-752400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-561
SELECT DISTINCT + - ( - - COALESCE ( - ( + 65 ), - 24 * - 13 * - CAST( + - AVG ( + 77 ) AS SIGNED ) DIV - - 97 + 58 + 33 * - + 41 + COUNT( - 53 ) + - - 27 ) ) * 16 + 89 + 74
----
1203

skipif mysql # not compatible
query I rowsort label-561
SELECT DISTINCT + - ( - - COALESCE ( - ( + 65 ), - 24 * - 13 * - CAST ( + - AVG ( + 77 ) AS INTEGER ) / - - 97 + 58 + 33 * - + 41 + COUNT ( - 53 ) + - - 27 ) ) * 16 + 89 + 74
----
1203

onlyif mysql # aggregate syntax: 
query II rowsort label-562
SELECT DISTINCT + + 90 * + + 60 + + + ( COUNT( * ) ) AS col1, COUNT( * ) * COUNT( * )
----
5401
1

skipif mysql # not compatible
query II rowsort label-562
SELECT DISTINCT + + 90 * + + 60 + + + ( COUNT ( * ) ) AS col1, COUNT ( * ) * COUNT ( * )
----
5401
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-563
SELECT ALL - - CAST( NULL AS SIGNED ) / - + MAX( - ( - + 88 ) ) - + CAST( + - 6 AS DECIMAL ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-563
SELECT ALL - - CAST ( NULL AS INTEGER ) / - + MAX ( - ( - + 88 ) ) - + CAST ( + - 6 AS REAL ) col0
----
NULL

query I rowsort
SELECT + 74 * + 68 AS col1
----
5032

onlyif mysql # aggregate syntax: 
query I rowsort label-565
SELECT - 80 * 5 * - COUNT( * )
----
400

skipif mysql # not compatible
query I rowsort label-565
SELECT - 80 * 5 * - COUNT ( * )
----
400

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-566
SELECT ALL SUM( ALL - - 67 ) DIV - - 40 + + 31 AS col0
----
32

skipif mysql # not compatible
query I rowsort label-566
SELECT ALL SUM ( ALL - - 67 ) / - - 40 + + 31 AS col0
----
32

query I rowsort
SELECT + 50 * - + 60
----
-3000

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-568
SELECT ALL - 13 * + 15 DIV + COUNT( * ) - - - COUNT( * ) + - - MAX( DISTINCT + ( + - 96 ) )
----
-292

skipif mysql # not compatible
query I rowsort label-568
SELECT ALL - 13 * + 15 / + COUNT ( * ) - - - COUNT ( * ) + - - MAX ( DISTINCT + ( + - 96 ) )
----
-292

onlyif mysql # aggregate syntax: 
query I rowsort label-569
SELECT ALL SUM( ALL - - 58 ) * + + 71
----
4118

skipif mysql # not compatible
query I rowsort label-569
SELECT ALL SUM ( ALL - - 58 ) * + + 71
----
4118

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-570
SELECT ALL 72 * - + CAST( - 28 AS SIGNED ) * + 80 - - + COUNT( * ) + 31 AS col0
----
161312

skipif mysql # not compatible
query I rowsort label-570
SELECT ALL 72 * - + CAST ( - 28 AS INTEGER ) * + 80 - - + COUNT ( * ) + 31 AS col0
----
161312

query I rowsort
SELECT - 20 * ( + 91 ) * + 59
----
-107380

query I rowsort
SELECT DISTINCT 43 * - + 41 AS col2
----
-1763

query I rowsort
SELECT ALL + NULLIF ( - 35, + 99 )
----
-35

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-575
SELECT - 90 * CASE - COUNT( * ) WHEN - COUNT( * ) + - 14 THEN - 33 * - 85 + - - COUNT( * ) + 65 + 17 END / + - 35 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-575
SELECT - 90 * CASE - COUNT ( * ) WHEN - COUNT ( * ) + - 14 THEN - 33 * - 85 + - - COUNT ( * ) + 65 + 17 END / + - 35 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-576
SELECT - SUM( + 69 ) + 78 AS col1
----
9

skipif mysql # not compatible
query I rowsort label-576
SELECT - SUM ( + 69 ) + 78 AS col1
----
9

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

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

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

query II rowsort
SELECT 15 * - 65 * + - 39 + - 43 - - + 2 AS col1, - 76 col1
----
37984
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-580
SELECT - 54 * - 67 * - COUNT( * ) AS col0
----
-3618

skipif mysql # not compatible
query I rowsort label-580
SELECT - 54 * - 67 * - COUNT ( * ) AS col0
----
-3618

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-582
SELECT COUNT( * ) AS col1, 19 * 53 AS col2
----
1
1007

skipif mysql # not compatible
query II rowsort label-582
SELECT COUNT ( * ) AS col1, 19 * 53 AS col2
----
1
1007

onlyif mysql # aggregate syntax: 
query I rowsort label-583
SELECT ALL - 16 * - SUM( + 55 )
----
880

skipif mysql # not compatible
query I rowsort label-583
SELECT ALL - 16 * - SUM ( + 55 )
----
880

query I rowsort
SELECT DISTINCT - - 83 * + + 30
----
2490

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-586
SELECT - 59 + + MIN( DISTINCT 19 ) * 87 + - ( + 93 ) * 35 AS col0
----
-1661

skipif mysql # not compatible
query I rowsort label-586
SELECT - 59 + + MIN ( DISTINCT 19 ) * 87 + - ( + 93 ) * 35 AS col0
----
-1661

onlyif mysql # aggregate syntax: 
query I rowsort label-587
SELECT + NULLIF ( + + 33, MAX( 87 ) ) - + 10 * + SUM( - - 85 ) AS col2
----
-817

skipif mysql # not compatible
query I rowsort label-587
SELECT + NULLIF ( + + 33, MAX ( 87 ) ) - + 10 * + SUM ( - - 85 ) AS col2
----
-817

query I rowsort
SELECT ALL - 95 + - - 5 AS col1
----
-90

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

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

query I rowsort
SELECT DISTINCT + 62 + 7 AS col2
----
69

query I rowsort
SELECT + + 56 * 62 * + 40 + - 1 col2
----
138879

query I rowsort
SELECT ALL 48 * ( - + 70 )
----
-3360

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

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

query II rowsort
SELECT ALL ( + 82 ) + + 89, 15 AS col2
----
171
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-595
SELECT 73 + 83 DIV COUNT( * ) AS col1
----
156

skipif mysql # not compatible
query I rowsort label-595
SELECT 73 + 83 / COUNT ( * ) AS col1
----
156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-596
SELECT - COUNT( * ) * - + ( - 39 ) * + + ( - 27 ) + + COUNT( * ) * - 37 - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-596
SELECT - COUNT ( * ) * - + ( - 39 ) * + + ( - 27 ) + + COUNT ( * ) * - 37 - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-597
SELECT ALL + 10 * - 72 + + 29 * + 26 * 79 * + - NULLIF ( 65, 22 * + - 97 ) + - 42 + + ( + MIN( DISTINCT - 91 ) ) AS col0
----
-3872643

skipif mysql # not compatible
query I rowsort label-597
SELECT ALL + 10 * - 72 + + 29 * + 26 * 79 * + - NULLIF ( 65, 22 * + - 97 ) + - 42 + + ( + MIN ( DISTINCT - 91 ) ) AS col0
----
-3872643

onlyif mysql # aggregate syntax: 
query I rowsort label-598
SELECT - 69 * 36 + - ( MIN( + - ( - 24 ) ) )
----
-2508

skipif mysql # not compatible
query I rowsort label-598
SELECT - 69 * 36 + - ( MIN ( + - ( - 24 ) ) )
----
-2508

onlyif mysql # aggregate syntax: 
query II rowsort label-599
SELECT DISTINCT - 69 AS col2, MAX( DISTINCT - - 92 )
----
-69
92

skipif mysql # not compatible
query II rowsort label-599
SELECT DISTINCT - 69 AS col2, MAX ( DISTINCT - - 92 )
----
-69
92

onlyif mysql # aggregate syntax: 
query I rowsort label-600
SELECT ALL COUNT( * ) * + 56 * - NULLIF ( + 62, + 57 ) AS col0
----
-3472

skipif mysql # not compatible
query I rowsort label-600
SELECT ALL COUNT ( * ) * + 56 * - NULLIF ( + 62, + 57 ) AS col0
----
-3472

query I rowsort
SELECT ALL 2 - - - 44 AS col1
----
-42

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

skipif mysql # not compatible
query I rowsort label-602
SELECT COUNT ( * ) * - 52 / + - 66
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-603
SELECT COUNT( * ) DIV - + 2, - 50 AS col0
----
0
-50

skipif mysql # not compatible
query II rowsort label-603
SELECT COUNT ( * ) / - + 2, - 50 AS col0
----
0
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-604
SELECT COUNT( * ) * - 67 + COUNT( * ) AS col0
----
-66

skipif mysql # not compatible
query I rowsort label-604
SELECT COUNT ( * ) * - 67 + COUNT ( * ) AS col0
----
-66

query II rowsort
SELECT 80 AS col2, 29 AS col2
----
80
29

onlyif mysql # DIV for integer division: 
query I rowsort label-606
SELECT ( - 12 ) DIV 89 * + 67 + ( ( - - 59 ) )
----
59

skipif mysql # not compatible
query I rowsort label-606
SELECT ( - 12 ) / 89 * + 67 + ( ( - - 59 ) )
----
59

query I rowsort
SELECT DISTINCT + 2 * 47 AS col2
----
94

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-609
SELECT - 26 AS col0, - CAST( - 76 AS SIGNED )
----
-26
76

skipif mysql # not compatible
query II rowsort label-609
SELECT - 26 AS col0, - CAST ( - 76 AS INTEGER )
----
-26
76

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

skipif mysql # not compatible
query I rowsort label-610
SELECT 83 * - COUNT ( * )
----
-83

query I rowsort
SELECT DISTINCT 30 + 93 AS col0
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-612
SELECT ALL 89 * + COUNT( 87 )
----
89

skipif mysql # not compatible
query I rowsort label-612
SELECT ALL 89 * + COUNT ( 87 )
----
89

query I rowsort
SELECT + 86 * + 70 AS col1
----
6020

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-615
SELECT ALL + 90 + + 56 + + + 86 + - + 1 - 63 * + 13 + - ( - 78 ) * - NULLIF ( CAST( + 20 AS SIGNED ), + 49 * + 97 + + 89 - - - 74 ) + + - 43 + - 69 DIV - - 79 * - COALESCE ( - 94, - 99 - + CASE - + 78 WHEN - - 9 THEN NULL WHEN 79 THEN ( - 38 ) END + - 14 DIV 50, + - 24 + - + 17 ) + + 41 DIV - + 59 + 63
----
-2128

skipif mysql # not compatible
query I rowsort label-615
SELECT ALL + 90 + + 56 + + + 86 + - + 1 - 63 * + 13 + - ( - 78 ) * - NULLIF ( CAST ( + 20 AS INTEGER ), + 49 * + 97 + + 89 - - - 74 ) + + - 43 + - 69 / - - 79 * - COALESCE ( - 94, - 99 - + CASE - + 78 WHEN - - 9 THEN NULL WHEN 79 THEN ( - 38 ) END + - 14 / 50, + - 24 + - + 17 ) + + 41 / - + 59 + 63
----
-2128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-616
SELECT - CASE - 85 WHEN - CAST( - 16 AS SIGNED ) + 26 THEN NULL WHEN - COUNT( * ) THEN - 7 / + 49 * 33 * - ( 19 ) END, + 79 AS col2
----
NULL
79

skipif mysql # not compatible
query II rowsort label-616
SELECT - CASE - 85 WHEN - CAST ( - 16 AS INTEGER ) + 26 THEN NULL WHEN - COUNT ( * ) THEN - 7 / + 49 * 33 * - ( 19 ) END, + 79 AS col2
----
NULL
79

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-618
SELECT 37 * MAX( DISTINCT + 70 ) * - COUNT( * ) * 89 + ( + - 53 ) + - - 43 * - 82 * + - 5
----
-212933

skipif mysql # not compatible
query I rowsort label-618
SELECT 37 * MAX ( DISTINCT + 70 ) * - COUNT ( * ) * 89 + ( + - 53 ) + - - 43 * - 82 * + - 5
----
-212933

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

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

query I rowsort
SELECT ALL + - 5 + 96 AS col2
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-621
SELECT DISTINCT - 96 + + SUM( ALL - - 82 ) + COUNT( * ) AS col0, + 84 + 71 * COUNT( * )
----
-13
155

skipif mysql # not compatible
query II rowsort label-621
SELECT DISTINCT - 96 + + SUM ( ALL - - 82 ) + COUNT ( * ) AS col0, + 84 + 71 * COUNT ( * )
----
-13
155

onlyif mysql # aggregate syntax: 
query I rowsort label-622
SELECT - COALESCE ( + 22, - MIN( + + NULLIF ( + 23, - 50 * - 11 ) ) * + - 12 + - 59 + - 85 * - 30 * + 6, - - 31 + 24 ) + + + 99
----
77

skipif mysql # not compatible
query I rowsort label-622
SELECT - COALESCE ( + 22, - MIN ( + + NULLIF ( + 23, - 50 * - 11 ) ) * + - 12 + - 59 + - 85 * - 30 * + 6, - - 31 + 24 ) + + + 99
----
77

query I rowsort
SELECT ALL + 5 * 20 AS col2
----
100

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

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

query I rowsort
SELECT DISTINCT + + ( 59 ) * 31
----
1829

query II rowsort
SELECT 85 + - + 12 + + - ( 21 ) AS col0, 86 * + 32 * + 40 * ( + 67 ) AS col1
----
52
7375360

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

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

query I rowsort
SELECT + - CASE - + 87 WHEN 91 THEN NULL ELSE - 64 END AS col0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-629
SELECT + 96 * + 99 + - COUNT( * ) + + 52 + - 80
----
9475

skipif mysql # not compatible
query I rowsort label-629
SELECT + 96 * + 99 + - COUNT ( * ) + + 52 + - 80
----
9475

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-630
SELECT ALL + + 88 - - - MIN( 26 ) + + COALESCE ( ( - COUNT( - ( - - 1 ) ) ), 38, - + 3 * - - 98, + 24 ) DIV - - 88 * + 66
----
62

skipif mysql # not compatible
query I rowsort label-630
SELECT ALL + + 88 - - - MIN ( 26 ) + + COALESCE ( ( - COUNT ( - ( - - 1 ) ) ), 38, - + 3 * - - 98, + 24 ) / - - 88 * + 66
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-631
SELECT DISTINCT + + 71 * - COUNT( * ) + 90 + + 84 * + 85 + CAST( NULL AS SIGNED ) * 59 * 10 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-631
SELECT DISTINCT + + 71 * - COUNT ( * ) + 90 + + 84 * + 85 + CAST ( NULL AS INTEGER ) * 59 * 10 col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-632
SELECT ALL 97 DIV - 68 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-632
SELECT ALL 97 / - 68 AS col0
----
-1

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-635
SELECT 46 * - MIN( ALL + 23 ) AS col2, - 41 * - MAX( 26 ) AS col1
----
-1058
1066

skipif mysql # not compatible
query II rowsort label-635
SELECT 46 * - MIN ( ALL + 23 ) AS col2, - 41 * - MAX ( 26 ) AS col1
----
-1058
1066

query I rowsort
SELECT DISTINCT 90 * ( + 2 ) AS col2
----
180

query I rowsort
SELECT DISTINCT 54 * COALESCE ( - 75, - + 47 )
----
-4050

onlyif mysql # aggregate syntax: 
query I rowsort label-638
SELECT ALL COUNT( 55 ) + 66 AS col0
----
67

skipif mysql # not compatible
query I rowsort label-638
SELECT ALL COUNT ( 55 ) + 66 AS col0
----
67

query I rowsort
SELECT ( + 99 ) * - 49 AS col2
----
-4851

query I rowsort
SELECT 67 + + 94 col1
----
161

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

skipif mysql # not compatible
query I rowsort label-641
SELECT ALL ( + - 42 ) + - + COUNT ( ALL - 23 ) AS col2
----
-43

query I rowsort
SELECT + 28 + - 60
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-643
SELECT + MAX( ALL - 71 ) * + COUNT( * ) + 19 AS col2
----
-52

skipif mysql # not compatible
query I rowsort label-643
SELECT + MAX ( ALL - 71 ) * + COUNT ( * ) + 19 AS col2
----
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-644
SELECT DISTINCT + 17 DIV - - 87 * + 85 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-644
SELECT DISTINCT + 17 / - - 87 * + 85 AS col2
----
0

query I rowsort
SELECT ALL - 95 + 95
----
0

query I rowsort
SELECT 54 * + 29 AS col2
----
1566

query I rowsort
SELECT ALL - - 40 * 9 AS col0
----
360

query I rowsort
SELECT DISTINCT + 67 + - 15 col2
----
52

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

query I rowsort
SELECT + + 29 * - + 18 * + 25
----
-13050

query I rowsort
SELECT DISTINCT - 51 - - 22 + - COALESCE ( + 1, + 80, - 13 ) AS col0
----
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-652
SELECT ALL MIN( DISTINCT 94 ) AS col2, 54 AS col0
----
94
54

skipif mysql # not compatible
query II rowsort label-652
SELECT ALL MIN ( DISTINCT 94 ) AS col2, 54 AS col0
----
94
54

onlyif mysql # aggregate syntax: 
query I rowsort label-653
SELECT - + MIN( DISTINCT + 9 ) - - - COUNT( * ) * - 21 + - 80 + + - 46 + - 45 * - 66 * COUNT( ALL + 97 )
----
2856

skipif mysql # not compatible
query I rowsort label-653
SELECT - + MIN ( DISTINCT + 9 ) - - - COUNT ( * ) * - 21 + - 80 + + - 46 + - 45 * - 66 * COUNT ( ALL + 97 )
----
2856

query I rowsort
SELECT DISTINCT + 60 * ( - - NULLIF ( - + 35, - - 48 ) )
----
-2100

query I rowsort
SELECT - 21 - + 63
----
-84

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-657
SELECT DISTINCT + COUNT( * ) AS col2, 81 + - ( - 43 ) * 17
----
1
812

skipif mysql # not compatible
query II rowsort label-657
SELECT DISTINCT + COUNT ( * ) AS col2, 81 + - ( - 43 ) * 17
----
1
812

query I rowsort
SELECT ALL 98 * 38 - - - 15
----
3709

onlyif mysql # aggregate syntax: 
query I rowsort label-659
SELECT 47 / - 23 + - + 81 - - + 28 / ( + MIN( + + 30 ) ) / 62 / - + 40 * + CASE 43 WHEN + AVG ( ALL + - 14 ) THEN AVG ( 42 ) WHEN + 46 THEN NULL END + + 84 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-659
SELECT 47 / - 23 + - + 81 - - + 28 / ( + MIN ( + + 30 ) ) / 62 / - + 40 * + CASE 43 WHEN + AVG ( ALL + - 14 ) THEN AVG ( 42 ) WHEN + 46 THEN NULL END + + 84 AS col0
----
NULL

query II rowsort
SELECT - ( 60 ) * + 48, 39 AS col1
----
-2880
39

query I rowsort
SELECT ALL - 19 * - + 88 * - ( + 9 )
----
-15048

query I rowsort
SELECT - 61 + 8
----
-53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-663
SELECT COALESCE ( + 34, - - 92 * - + 28 * 13 DIV + + COUNT( * ) * + 61 + + 96 ) AS col1
----
34

skipif mysql # not compatible
query I rowsort label-663
SELECT COALESCE ( + 34, - - 92 * - + 28 * 13 / + + COUNT ( * ) * + 61 + + 96 ) AS col1
----
34

query I rowsort
SELECT ALL + NULLIF ( + + 4, - 97 + 49 + - 41 )
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-665
SELECT COALESCE ( - + COUNT( * ), 48, + CASE + + COALESCE ( - 92, + - 54 ) WHEN + 48 THEN - MAX( DISTINCT - 26 ) DIV COUNT( * ) + 36 * COUNT( * ) + + 19 * 4 ELSE NULL END + - ( - CASE + 28 WHEN - + 88 THEN + COUNT( * ) * - 41 ELSE NULL END ) )
----
-1

skipif mysql # not compatible
query I rowsort label-665
SELECT COALESCE ( - + COUNT ( * ), 48, + CASE + + COALESCE ( - 92, + - 54 ) WHEN + 48 THEN - MAX ( DISTINCT - 26 ) / COUNT ( * ) + 36 * COUNT ( * ) + + 19 * 4 ELSE NULL END + - ( - CASE + 28 WHEN - + 88 THEN + COUNT ( * ) * - 41 ELSE NULL END ) )
----
-1

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

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

query I rowsort
SELECT - CASE - - 34 WHEN - 35 THEN + + ( - + 89 ) END * 79 + - 55 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-668
SELECT ALL 53 * - 80 + + ( + COUNT( - + 93 ) ) + COUNT( * )
----
-4238

skipif mysql # not compatible
query I rowsort label-668
SELECT ALL 53 * - 80 + + ( + COUNT ( - + 93 ) ) + COUNT ( * )
----
-4238

onlyif mysql # aggregate syntax: 
query I rowsort label-669
SELECT ALL + NULLIF ( + NULLIF ( MIN( DISTINCT + 96 ), - + COALESCE ( - 94, + + ( MIN( ( 86 ) ) ), - MAX( ALL + + 67 ) * + 40 + + - 69 ) ), 17 ) col1
----
96

skipif mysql # not compatible
query I rowsort label-669
SELECT ALL + NULLIF ( + NULLIF ( MIN ( DISTINCT + 96 ), - + COALESCE ( - 94, + + ( MIN ( ( 86 ) ) ), - MAX ( ALL + + 67 ) * + 40 + + - 69 ) ), 17 ) col1
----
96

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-671
SELECT - 83 + - COUNT( * ) AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-671
SELECT - 83 + - COUNT ( * ) AS col2
----
-84

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-673
SELECT 94 * + - 45 * - MAX( + - ( CAST( NULL AS SIGNED ) ) ) + - - ( - 11 )
----
NULL

skipif mysql # not compatible
query I rowsort label-673
SELECT 94 * + - 45 * - MAX ( + - ( CAST ( NULL AS INTEGER ) ) ) + - - ( - 11 )
----
NULL

query I rowsort
SELECT DISTINCT 65 * + 90 + - 5 * + - 72
----
6210

query I rowsort
SELECT - 26 * + 61 AS col1
----
-1586

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-676
SELECT ALL + - 97 * 72 + - 81 DIV - 89 - - + 26 * COUNT( * ) * - ( + 6 )
----
-7140

skipif mysql # not compatible
query I rowsort label-676
SELECT ALL + - 97 * 72 + - 81 / - 89 - - + 26 * COUNT ( * ) * - ( + 6 )
----
-7140

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-677
SELECT - NULLIF ( - 54, + 7 ) AS col2, 9 - - + 73 + - - 99 * - + CAST( NULL AS SIGNED ) + - - 6
----
54
NULL

skipif mysql # not compatible
query II rowsort label-677
SELECT - NULLIF ( - 54, + 7 ) AS col2, 9 - - + 73 + - - 99 * - + CAST ( NULL AS INTEGER ) + - - 6
----
54
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-678
SELECT ALL + - 69 * + - 41 - + NULLIF ( NULLIF ( + CAST( NULL AS SIGNED ), + + 58 * + ( - 25 ) * - 72 - + 39 - 56 * CAST( NULL AS DECIMAL ) + - - 61 + - - CAST( - COUNT( + 78 ) AS SIGNED ) + - 83 * - COUNT( * ) - ( + COUNT( * ) ) - + + 62 ), - COUNT( * ) ) + + 35 + + SUM( - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-678
SELECT ALL + - 69 * + - 41 - + NULLIF ( NULLIF ( + CAST ( NULL AS INTEGER ), + + 58 * + ( - 25 ) * - 72 - + 39 - 56 * CAST ( NULL AS REAL ) + - - 61 + - - CAST ( - COUNT ( + 78 ) AS INTEGER ) + - 83 * - COUNT ( * ) - ( + COUNT ( * ) ) - + + 62 ), - COUNT ( * ) ) + + 35 + + SUM ( - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-679
SELECT + + NULLIF ( 56, ( 1 ) + + 77 ) * + CAST( + MAX( - 47 ) AS SIGNED ) AS col2
----
-2632

skipif mysql # not compatible
query I rowsort label-679
SELECT + + NULLIF ( 56, ( 1 ) + + 77 ) * + CAST ( + MAX ( - 47 ) AS INTEGER ) AS col2
----
-2632

query I rowsort
SELECT DISTINCT 10 - CASE - + 15 WHEN + 44 * - + 23 * + 86 THEN NULL WHEN - 29 * + 23 THEN + + 4 END
----
NULL

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-683
SELECT + CAST( - 27 AS SIGNED ) * - 80 - - + ( - 2 ) * 87
----
1986

skipif mysql # not compatible
query I rowsort label-683
SELECT + CAST ( - 27 AS INTEGER ) * - 80 - - + ( - 2 ) * 87
----
1986

query I rowsort
SELECT + 37 + - - 26 AS col2
----
63

query II rowsort
SELECT 7, + NULLIF ( - COALESCE ( - + 14, 95 ), - 91 ) AS col1
----
7
14

query I rowsort
SELECT + + 86 + + 89 AS col1
----
175

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

query II rowsort
SELECT ALL 95 * - ( 71 ) AS col2, + 98
----
-6745
98

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-689
SELECT + - NULLIF ( 45, + CAST( - 78 AS SIGNED ) ) * - 31 * - - 43 * + CAST( + 14 AS SIGNED ) * + 61 AS col0, ( CAST( NULL AS SIGNED ) ) AS col2, + - 57 AS col1
----
51227190
NULL
-57

skipif mysql # not compatible
query III rowsort label-689
SELECT + - NULLIF ( 45, + CAST ( - 78 AS INTEGER ) ) * - 31 * - - 43 * + CAST ( + 14 AS INTEGER ) * + 61 AS col0, ( CAST ( NULL AS INTEGER ) ) AS col2, + - 57 AS col1
----
51227190
NULL
-57

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

skipif mysql # not compatible
query I rowsort label-690
SELECT ALL - 11 / 20
----
0

query II rowsort
SELECT DISTINCT + 30, 1 * - ( 9 ) * + - 19 + - 52 AS col0
----
30
119

query I rowsort
SELECT DISTINCT ( - 71 ) * - - 44
----
-3124

query I rowsort
SELECT ALL + - 33 * + 6 AS col0
----
-198

onlyif mysql # aggregate syntax: 
query II rowsort label-694
SELECT + + COUNT( * ) + + - COUNT( * ) + + NULLIF ( + 58, - + ( - 73 ) + NULLIF ( - + 12, - 36 ) + + + SUM( - 16 ) * - - ( - CASE MIN( - 52 ) WHEN 38 * - 61 * MAX( + 26 ) THEN - COUNT( * ) * + MAX( + + 91 ) * COUNT( * ) END ) ), 33 * + 18 AS col1
----
58
594

skipif mysql # not compatible
query II rowsort label-694
SELECT + + COUNT ( * ) + + - COUNT ( * ) + + NULLIF ( + 58, - + ( - 73 ) + NULLIF ( - + 12, - 36 ) + + + SUM ( - 16 ) * - - ( - CASE MIN ( - 52 ) WHEN 38 * - 61 * MAX ( + 26 ) THEN - COUNT ( * ) * + MAX ( + + 91 ) * COUNT ( * ) END ) ), 33 * + 18 AS col1
----
58
594

onlyif mysql # DIV for integer division: 
query I rowsort label-695
SELECT + - ( - 65 ) DIV + CASE + ( + 55 ) WHEN 15 DIV - + 11 + + 23 THEN NULL WHEN + 20 - - 60 THEN - + ( - NULLIF ( 16, 40 ) ) ELSE + ( - 95 ) END * 54 - + + 13 AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-695
SELECT + - ( - 65 ) / + CASE + ( + 55 ) WHEN 15 / - + 11 + + 23 THEN NULL WHEN + 20 - - 60 THEN - + ( - NULLIF ( 16, 40 ) ) ELSE + ( - 95 ) END * 54 - + + 13 AS col1
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-696
SELECT + 68 * COUNT( * ) * + 35 * - MAX( DISTINCT - 31 )
----
73780

skipif mysql # not compatible
query I rowsort label-696
SELECT + 68 * COUNT ( * ) * + 35 * - MAX ( DISTINCT - 31 )
----
73780

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-697
SELECT - CASE + - 29 WHEN CAST( - 85 AS SIGNED ) THEN NULL ELSE COUNT( * ) * - 25 + + + 50 END + - - ( + 45 ) AS col0, + 59 + - COUNT( * ) AS col1
----
20
58

skipif mysql # not compatible
query II rowsort label-697
SELECT - CASE + - 29 WHEN CAST ( - 85 AS INTEGER ) THEN NULL ELSE COUNT ( * ) * - 25 + + + 50 END + - - ( + 45 ) AS col0, + 59 + - COUNT ( * ) AS col1
----
20
58

onlyif mysql # aggregate syntax: 
query II rowsort label-698
SELECT - ( COUNT( * ) ), + 7 + - 92 + + 42 * - + 47 + - 55 + - 85 AS col2
----
-1
-2199

skipif mysql # not compatible
query II rowsort label-698
SELECT - ( COUNT ( * ) ), + 7 + - 92 + + 42 * - + 47 + - 55 + - 85 AS col2
----
-1
-2199

query I rowsort
SELECT DISTINCT NULLIF ( + 19, - 68 )
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-700
SELECT + COALESCE ( + 38, + - 83, + - 97 + - CASE + 93 WHEN 49 DIV + + 80 THEN + 41 DIV - 39 WHEN + 86 + - + 96 THEN NULL END * COUNT( * ) ) * 22
----
836

skipif mysql # not compatible
query I rowsort label-700
SELECT + COALESCE ( + 38, + - 83, + - 97 + - CASE + 93 WHEN 49 / + + 80 THEN + 41 / - 39 WHEN + 86 + - + 96 THEN NULL END * COUNT ( * ) ) * 22
----
836

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-701
SELECT DISTINCT 5 DIV - MAX( DISTINCT + 71 ) + 41
----
41

skipif mysql # not compatible
query I rowsort label-701
SELECT DISTINCT 5 / - MAX ( DISTINCT + 71 ) + 41
----
41

query I rowsort
SELECT - 8 * + + 44 AS col0
----
-352

onlyif mysql # DIV for integer division: 
query I rowsort label-703
SELECT ALL 5 DIV + 84 + 34 AS col2
----
34

skipif mysql # not compatible
query I rowsort label-703
SELECT ALL 5 / + 84 + 34 AS col2
----
34

onlyif mysql # DIV for integer division: 
query I rowsort label-704
SELECT - 60 DIV + 63
----
0

skipif mysql # not compatible
query I rowsort label-704
SELECT - 60 / + 63
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-705
SELECT + 72 - - + 27 - + COUNT( - CAST( 10 AS SIGNED ) )
----
98

skipif mysql # not compatible
query I rowsort label-705
SELECT + 72 - - + 27 - + COUNT ( - CAST ( 10 AS INTEGER ) )
----
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-706
SELECT DISTINCT 92 DIV + 93 + + 72 + - 8 * + 34 * ( - 62 ) + - 12 * COUNT( * ) AS col2
----
16924

skipif mysql # not compatible
query I rowsort label-706
SELECT DISTINCT 92 / + 93 + + 72 + - 8 * + 34 * ( - 62 ) + - 12 * COUNT ( * ) AS col2
----
16924

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-707
SELECT - 30 * + + 76 AS col0, + 51 DIV - - COUNT( * )
----
-2280
51

skipif mysql # not compatible
query II rowsort label-707
SELECT - 30 * + + 76 AS col0, + 51 / - - COUNT ( * )
----
-2280
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-708
SELECT ALL - COUNT( * ) DIV - 94 + 92 - + ( + COUNT( * ) ) AS col2
----
91

skipif mysql # not compatible
query I rowsort label-708
SELECT ALL - COUNT ( * ) / - 94 + 92 - + ( + COUNT ( * ) ) AS col2
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-709
SELECT ALL CASE + + 87 WHEN + 57 * - - 94 * 21 THEN + COUNT( * ) * - + 12 * - 28 + COUNT( * ) WHEN + 51 + - 43 - - 88 THEN NULL END * - CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) + 37 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-709
SELECT ALL CASE + + 87 WHEN + 57 * - - 94 * 21 THEN + COUNT ( * ) * - + 12 * - 28 + COUNT ( * ) WHEN + 51 + - 43 - - 88 THEN NULL END * - CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) + 37 AS col0
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-711
SELECT ALL - CAST( 68 AS SIGNED ) DIV - ( - - 8 ) AS col2, 3 + - + 35 AS col0
----
8
-32

skipif mysql # not compatible
query II rowsort label-711
SELECT ALL - CAST ( 68 AS INTEGER ) / - ( - - 8 ) AS col2, 3 + - + 35 AS col0
----
8
-32

query I rowsort
SELECT + 46 - 62 * + - ( 18 )
----
1162

onlyif mysql # aggregate syntax: 
query II rowsort label-713
SELECT + - ( - + 55 ), COUNT( DISTINCT + 14 ) col2
----
55
1

skipif mysql # not compatible
query II rowsort label-713
SELECT + - ( - + 55 ), COUNT ( DISTINCT + 14 ) col2
----
55
1

onlyif mysql # aggregate syntax: 
query I rowsort label-714
SELECT ALL + COUNT( * ) / 83 + + 75 + + CASE 36 WHEN + 18 THEN NULL WHEN 17 - + 13 + - 65 THEN 70 + - + 95 * + 30 END - + 21
----
NULL

skipif mysql # not compatible
query I rowsort label-714
SELECT ALL + COUNT ( * ) / 83 + + 75 + + CASE 36 WHEN + 18 THEN NULL WHEN 17 - + 13 + - 65 THEN 70 + - + 95 * + 30 END - + 21
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-715
SELECT - 12 + 89 + ( 54 ) - + MAX( + 9 ) * + - 28
----
383

skipif mysql # not compatible
query I rowsort label-715
SELECT - 12 + 89 + ( 54 ) - + MAX ( + 9 ) * + - 28
----
383

onlyif mysql # aggregate syntax: 
query II rowsort label-716
SELECT ( - - 23 ) AS col0, ( COUNT( * ) ) + - COUNT( * ) * - 88
----
23
89

skipif mysql # not compatible
query II rowsort label-716
SELECT ( - - 23 ) AS col0, ( COUNT ( * ) ) + - COUNT ( * ) * - 88
----
23
89

onlyif mysql # aggregate syntax: 
query I rowsort label-717
SELECT MAX( - - 10 ) + - + 48 + + ( 76 ) * - 65 + COUNT( * ) AS col1
----
-4977

skipif mysql # not compatible
query I rowsort label-717
SELECT MAX ( - - 10 ) + - + 48 + + ( 76 ) * - 65 + COUNT ( * ) AS col1
----
-4977

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-719
SELECT ALL - COUNT( * ) * + 19 * + 81 + - CASE + 99 WHEN + + 22 THEN NULL ELSE + 13 DIV - - 2 END AS col1
----
-1545

skipif mysql # not compatible
query I rowsort label-719
SELECT ALL - COUNT ( * ) * + 19 * + 81 + - CASE + 99 WHEN + + 22 THEN NULL ELSE + 13 / - - 2 END AS col1
----
-1545

query I rowsort
SELECT + 5 + - 91
----
-86

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-722
SELECT - CASE - + COUNT( * ) WHEN - 32 THEN 12 * 26 + COUNT( * ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-722
SELECT - CASE - + COUNT ( * ) WHEN - 32 THEN 12 * 26 + COUNT ( * ) ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL - + 27 * + 1 AS col1
----
-27

query I rowsort
SELECT + 62 * - 71 * - 1 AS col2
----
4402

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-725
SELECT ALL + CASE - 31 WHEN + - CASE - - 59 WHEN + + ( MAX( DISTINCT - 66 ) ) THEN + CAST( + 43 AS SIGNED ) ELSE NULL END THEN NULL ELSE - ( + + 36 ) END AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-725
SELECT ALL + CASE - 31 WHEN + - CASE - - 59 WHEN + + ( MAX ( DISTINCT - 66 ) ) THEN + CAST ( + 43 AS INTEGER ) ELSE NULL END THEN NULL ELSE - ( + + 36 ) END AS col2
----
-36

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

skipif mysql # not compatible
query I rowsort label-726
SELECT ( + 86 ) + ( - 48 ) - - COUNT ( * ) AS col2
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-727
SELECT DISTINCT - + 52 * CASE - CAST( + 88 AS DECIMAL ) WHEN + 97 + - COUNT( * ) + + + 72 THEN + + 69 WHEN + 56 * 0 * 28 THEN NULL WHEN + - 60 THEN - + CAST( + - COUNT( * ) AS SIGNED ) END / + + 8
----
NULL

skipif mysql # not compatible
query I rowsort label-727
SELECT DISTINCT - + 52 * CASE - CAST ( + 88 AS REAL ) WHEN + 97 + - COUNT ( * ) + + + 72 THEN + + 69 WHEN + 56 * 0 * 28 THEN NULL WHEN + - 60 THEN - + CAST ( + - COUNT ( * ) AS INTEGER ) END / + + 8
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-728
SELECT + 89 + - COUNT( * ) + - - 28
----
116

skipif mysql # not compatible
query I rowsort label-728
SELECT + 89 + - COUNT ( * ) + - - 28
----
116

query I rowsort
SELECT - 98 * 19
----
-1862

onlyif mysql # aggregate syntax: 
query I rowsort label-730
SELECT ALL COUNT( - - NULLIF ( 88, - - 2 ) ) + + 54 + - 71 AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-730
SELECT ALL COUNT ( - - NULLIF ( 88, - - 2 ) ) + + 54 + - 71 AS col2
----
-16

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-731
SELECT + CAST( NULL AS DECIMAL ) - + CASE - + 83 WHEN - 5 / 89 * + + 26 - 74 + + ( - + 43 ) + + 38 / + + COUNT( * ) * - 24 * AVG ( DISTINCT + 61 ) THEN 78 WHEN - + 12 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-731
SELECT + CAST ( NULL AS REAL ) - + CASE - + 83 WHEN - 5 / 89 * + + 26 - 74 + + ( - + 43 ) + + 38 / + + COUNT ( * ) * - 24 * AVG ( DISTINCT + 61 ) THEN 78 WHEN - + 12 THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-732
SELECT COALESCE ( - 54, 26 + - COUNT( * ), ( - + 21 ) ) + + - 95
----
-149

skipif mysql # not compatible
query I rowsort label-732
SELECT COALESCE ( - 54, 26 + - COUNT ( * ), ( - + 21 ) ) + + - 95
----
-149

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-734
SELECT 52 * CAST( NULL AS DECIMAL ) DIV + COUNT( * ), 2 DIV + COUNT( * ) AS col2
----
NULL
2

skipif mysql # not compatible
query II rowsort label-734
SELECT 52 * CAST ( NULL AS REAL ) / + COUNT ( * ), 2 / + COUNT ( * ) AS col2
----
NULL
2

onlyif mysql # aggregate syntax: 
query I rowsort label-735
SELECT MIN( - 58 ) * CASE 33 WHEN - COUNT( * ) * + 90 - COUNT( * ) THEN + ( - + 24 ) * - 35 WHEN 66 THEN NULL END * - 85 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-735
SELECT MIN ( - 58 ) * CASE 33 WHEN - COUNT ( * ) * + 90 - COUNT ( * ) THEN + ( - + 24 ) * - 35 WHEN 66 THEN NULL END * - 85 AS col0
----
NULL

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

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

skipif mysql # not compatible
query I rowsort label-737
SELECT ALL COUNT ( * ) + - + 80 AS col2
----
-79

onlyif mysql # aggregate syntax: 
query II rowsort label-738
SELECT 73 col0, - 90 + - ( + COUNT( * ) ) - - + ( - NULLIF ( - 68, - + 51 ) ) AS col0
----
73
-23

skipif mysql # not compatible
query II rowsort label-738
SELECT 73 col0, - 90 + - ( + COUNT ( * ) ) - - + ( - NULLIF ( - 68, - + 51 ) ) AS col0
----
73
-23

query I rowsort
SELECT ALL 2 + + 86 AS col1
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-740
SELECT DISTINCT 31 + + + 87 - 20 + + 94 + - 38 + 31 * + - CASE + 50 WHEN - 75 + + - 95 + + - 80 THEN COUNT( * ) + + + 34 + - CASE WHEN 13 IN ( + 13 / - 32 * - 42 * MIN( + 27 ) - + 95 + + 24 * + 92 + - 41 * 25 * 48 + + 89 / 5 * - + 32, 63 * + 93, - 55 ) AND NOT ( NULL ) IS NULL THEN + 45 + - CASE + 51 WHEN 35 THEN NULL ELSE 75 + MIN( + 8 ) * 73 END + 60 END * - 43 WHEN + 91 THEN NULL ELSE NULL END * + ( + 30 ) * + ( 77 + 15 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-740
SELECT DISTINCT 31 + + + 87 - 20 + + 94 + - 38 + 31 * + - CASE + 50 WHEN - 75 + + - 95 + + - 80 THEN COUNT ( * ) + + + 34 + - CASE WHEN 13 IN ( + 13 / - 32 * - 42 * MIN ( + 27 ) - + 95 + + 24 * + 92 + - 41 * 25 * 48 + + 89 / 5 * - + 32, 63 * + 93, - 55 ) AND NOT ( NULL ) IS NULL THEN + 45 + - CASE + 51 WHEN 35 THEN NULL ELSE 75 + MIN ( + 8 ) * 73 END + 60 END * - 43 WHEN + 91 THEN NULL ELSE NULL END * + ( + 30 ) * + ( 77 + 15 ) AS col0
----
NULL

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

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

query I rowsort
SELECT 3 * + 21
----
63

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-744
SELECT 21 DIV + 81 - 13
----
-13

skipif mysql # not compatible
query I rowsort label-744
SELECT 21 / + 81 - 13
----
-13

query I rowsort
SELECT 22 - - 66 col1
----
88

onlyif mysql # aggregate syntax: 
query II rowsort label-746
SELECT DISTINCT - CASE COUNT( * ) WHEN ( + COUNT( * ) ) THEN - 35 END AS col1, - 1
----
35
-1

skipif mysql # not compatible
query II rowsort label-746
SELECT DISTINCT - CASE COUNT ( * ) WHEN ( + COUNT ( * ) ) THEN - 35 END AS col1, - 1
----
35
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-747
SELECT ALL - 58 - + 42 + 40 + - + COUNT( * )
----
-61

skipif mysql # not compatible
query I rowsort label-747
SELECT ALL - 58 - + 42 + 40 + - + COUNT ( * )
----
-61

query I rowsort
SELECT - 30 + - ( + + 63 ) - - 97
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-749
SELECT - 44 + - + 60 - + - 25 DIV 92 * + 24
----
-104

skipif mysql # not compatible
query I rowsort label-749
SELECT - 44 + - + 60 - + - 25 / 92 * + 24
----
-104

onlyif mysql # aggregate syntax: 
query II rowsort label-750
SELECT 39 * - SUM( - - 16 ) AS col2, - MAX( 44 ) + 79 col0
----
-624
35

skipif mysql # not compatible
query II rowsort label-750
SELECT 39 * - SUM ( - - 16 ) AS col2, - MAX ( 44 ) + 79 col0
----
-624
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-751
SELECT + + CASE 7 WHEN + - 26 THEN 33 + CAST( NULL AS SIGNED ) + - 80 WHEN 37 * - 80 * + SUM( + 38 ) + - 99 THEN NULL WHEN + 47 + + AVG ( - CAST( NULL AS SIGNED ) ) THEN - CASE - COALESCE ( CAST( - 60 AS SIGNED ), - COUNT( * ) * + 56 + 66 ) WHEN 99 + + COUNT( * ) THEN 57 WHEN + 43 + - - ( - 48 ) + + + ( + CAST( NULL AS SIGNED ) ) + 99 * + 56 + 85 * 52 THEN NULL END - - 73 * + ( 64 ) * + - 86 + - 19 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-751
SELECT + + CASE 7 WHEN + - 26 THEN 33 + CAST ( NULL AS INTEGER ) + - 80 WHEN 37 * - 80 * + SUM ( + 38 ) + - 99 THEN NULL WHEN + 47 + + AVG ( - CAST ( NULL AS INTEGER ) ) THEN - CASE - COALESCE ( CAST ( - 60 AS INTEGER ), - COUNT ( * ) * + 56 + 66 ) WHEN 99 + + COUNT ( * ) THEN 57 WHEN + 43 + - - ( - 48 ) + + + ( + CAST ( NULL AS INTEGER ) ) + 99 * + 56 + 85 * 52 THEN NULL END - - 73 * + ( 64 ) * + - 86 + - 19 ELSE NULL END AS col1
----
NULL

query II rowsort
SELECT ALL + - 54 * + 88 + - + 73 + + 68 * + ( + 92 ) col2, + 31 AS col1
----
1431
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-753
SELECT + COALESCE ( + CASE AVG ( DISTINCT - 44 ) WHEN - 86 * - COUNT( * ) THEN CASE + - 40 WHEN 48 - - 98 * CASE 4 WHEN - + 6 THEN NULL WHEN + - COALESCE ( + 43, - + 4 * - - 89 ) + MIN( + 37 ) * SUM( - 39 ) THEN NULL ELSE 14 * + 65 END THEN - COUNT( * ) END + + - 28 + + 95 * - - 4 + COUNT( * ) - + + 28 / 72 + + CASE + + ( + 13 ) WHEN - COUNT( * ) THEN + COUNT( * ) END / - 56 + - - AVG ( - 54 ) ELSE NULL END, + + CAST( NULL AS SIGNED ) ) * 34 + 81
----
NULL

skipif mysql # not compatible
query I rowsort label-753
SELECT + COALESCE ( + CASE AVG ( DISTINCT - 44 ) WHEN - 86 * - COUNT ( * ) THEN CASE + - 40 WHEN 48 - - 98 * CASE 4 WHEN - + 6 THEN NULL WHEN + - COALESCE ( + 43, - + 4 * - - 89 ) + MIN ( + 37 ) * SUM ( - 39 ) THEN NULL ELSE 14 * + 65 END THEN - COUNT ( * ) END + + - 28 + + 95 * - - 4 + COUNT ( * ) - + + 28 / 72 + + CASE + + ( + 13 ) WHEN - COUNT ( * ) THEN + COUNT ( * ) END / - 56 + - - AVG ( - 54 ) ELSE NULL END, + + CAST ( NULL AS INTEGER ) ) * 34 + 81
----
NULL

query I rowsort
SELECT ALL - + 93 col2
----
-93

query II rowsort
SELECT DISTINCT - 80 AS col2, + 22 col1
----
-80
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-756
SELECT DISTINCT - - CASE + MIN( ALL + 8 ) WHEN + COUNT( * ) THEN 19 * + CAST( NULL AS SIGNED ) + - COUNT( * ) WHEN 98 THEN + 77 + - CASE 35 WHEN - 29 * + 67 * + 20 * 37 THEN 96 WHEN - - 82 THEN NULL ELSE NULL END END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-756
SELECT DISTINCT - - CASE + MIN ( ALL + 8 ) WHEN + COUNT ( * ) THEN 19 * + CAST ( NULL AS INTEGER ) + - COUNT ( * ) WHEN 98 THEN + 77 + - CASE 35 WHEN - 29 * + 67 * + 20 * 37 THEN 96 WHEN - - 82 THEN NULL ELSE NULL END END AS col0
----
NULL

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-759
SELECT DISTINCT + ( - 34 ) DIV + 41 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-759
SELECT DISTINCT + ( - 34 ) / + 41 AS col1
----
0

query I rowsort
SELECT DISTINCT - + 49 + 48 AS col0
----
-1

query I rowsort
SELECT - + NULLIF ( - 85, + 43 ) AS col2
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-762
SELECT 78 / - + 27 + ( + 20 ) + - ( - 33 ) + 88 / - CASE - 1 WHEN + - 87 * - 77 + + NULLIF ( - + 27, MIN( DISTINCT ( + 7 ) ) * 99 ) THEN + MAX( DISTINCT 69 ) + - 12 WHEN - - MAX( 54 ) + - - 0 THEN - 19 END * 14 + + 12 + ( - + 61 ) - - ( + + 96 )
----
NULL

skipif mysql # not compatible
query I rowsort label-762
SELECT 78 / - + 27 + ( + 20 ) + - ( - 33 ) + 88 / - CASE - 1 WHEN + - 87 * - 77 + + NULLIF ( - + 27, MIN ( DISTINCT ( + 7 ) ) * 99 ) THEN + MAX ( DISTINCT 69 ) + - 12 WHEN - - MAX ( 54 ) + - - 0 THEN - 19 END * 14 + + 12 + ( - + 61 ) - - ( + + 96 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-763
SELECT ALL - 70 + - MIN( 15 ) / COALESCE ( + 17, + 37 * + 39 - + 15 - + COUNT( * ) - - - 47 ) + - + AVG ( DISTINCT - - 12 ) - - CASE 66 WHEN + 97 THEN + - 72 WHEN 46 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-763
SELECT ALL - 70 + - MIN ( 15 ) / COALESCE ( + 17, + 37 * + 39 - + 15 - + COUNT ( * ) - - - 47 ) + - + AVG ( DISTINCT - - 12 ) - - CASE 66 WHEN + 97 THEN + - 72 WHEN 46 THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-764
SELECT + COUNT( * ) - + - 49 * + - 55, + 39 AS col2
----
-2694
39

skipif mysql # not compatible
query II rowsort label-764
SELECT + COUNT ( * ) - + - 49 * + - 55, + 39 AS col2
----
-2694
39

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

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

query I rowsort
SELECT CASE + ( - 95 ) WHEN 21 + - 46 * + - 24 THEN NULL WHEN 85 THEN 92 END + + 45 * 51
----
NULL

query I rowsort
SELECT ALL - 33 + - 13 * - 7 col2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-768
SELECT ALL MAX( ALL 42 ) + - 32 + 13
----
23

skipif mysql # not compatible
query I rowsort label-768
SELECT ALL MAX ( ALL 42 ) + - 32 + 13
----
23

query I rowsort
SELECT 80 - 40 - - 23 AS col0
----
63

query I rowsort
SELECT ALL + 89 + + - 23 AS col2
----
66

query I rowsort
SELECT 58 * + 53 AS col2
----
3074

query I rowsort
SELECT 3 + 96 * + ( - 66 )
----
-6333

onlyif mysql # aggregate syntax: 
query I rowsort label-773
SELECT DISTINCT ( + COUNT( - 72 ) ) * - - 70 - + - 17
----
87

skipif mysql # not compatible
query I rowsort label-773
SELECT DISTINCT ( + COUNT ( - 72 ) ) * - - 70 - + - 17
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-774
SELECT + 18 DIV - - 2 AS col2
----
9

skipif mysql # not compatible
query I rowsort label-774
SELECT + 18 / - - 2 AS col2
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-775
SELECT ALL + 53 DIV + - 55
----
0

skipif mysql # not compatible
query I rowsort label-775
SELECT ALL + 53 / + - 55
----
0

query II rowsort
SELECT ALL + 41 AS col0, 37
----
41
37

query I rowsort
SELECT ALL 6 * + - 47
----
-282

onlyif mysql # aggregate syntax: 
query II rowsort label-778
SELECT ALL + SUM( ALL - - 80 ) AS col2, COUNT( * ) * - 57
----
80
-57

skipif mysql # not compatible
query II rowsort label-778
SELECT ALL + SUM ( ALL - - 80 ) AS col2, COUNT ( * ) * - 57
----
80
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-779
SELECT + + 45 DIV - 35 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-779
SELECT + + 45 / - 35 AS col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-780
SELECT + - 40 DIV - 72 * 17 - - ( + - COUNT( * ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-780
SELECT + - 40 / - 72 * 17 - - ( + - COUNT ( * ) ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-781
SELECT ALL COUNT( * ) * - 9 - 54 + MAX( ALL + 2 ) + 62 + 63
----
64

skipif mysql # not compatible
query I rowsort label-781
SELECT ALL COUNT ( * ) * - 9 - 54 + MAX ( ALL + 2 ) + 62 + 63
----
64

query II rowsort
SELECT 2, + 21 + + 91 + + 76 + + 21 AS col2
----
2
209

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-784
SELECT COUNT( * ) AS col1, + 21 + + 62 AS col2
----
1
83

skipif mysql # not compatible
query II rowsort label-784
SELECT COUNT ( * ) AS col1, + 21 + + 62 AS col2
----
1
83

onlyif mysql # aggregate syntax: 
query I rowsort label-785
SELECT ALL + COUNT( * ) * + 90 - 12 + - COUNT( * ) + 51 + - 20 + CASE - 22 WHEN 98 + + - COUNT( * ) * COUNT( * ) THEN + - 61 END * + + 84 / 9 * + 29 + - - 67 - + 49 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-785
SELECT ALL + COUNT ( * ) * + 90 - 12 + - COUNT ( * ) + 51 + - 20 + CASE - 22 WHEN 98 + + - COUNT ( * ) * COUNT ( * ) THEN + - 61 END * + + 84 / 9 * + 29 + - - 67 - + 49 AS col2
----
NULL

query I rowsort
SELECT - - 98 * - - 83 - + - 78
----
8212

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-787
SELECT - - 38 * NULLIF ( CAST( NULL AS SIGNED ), + 4 / + ( + + 7 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-787
SELECT - - 38 * NULLIF ( CAST ( NULL AS INTEGER ), + 4 / + ( + + 7 ) )
----
NULL

query I rowsort
SELECT DISTINCT - 69 * - 82 + - - 13 - - 6 col2
----
5677

query II rowsort
SELECT 76 AS col2, - 58 * - 78 * + 56 - - 76 + - 44 AS col1
----
76
253376

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-790
SELECT - + COALESCE ( + 22, - + 19 * + 28, + 77 + - CAST( NULL AS SIGNED ) ) * - 82 AS col2
----
1804

skipif mysql # not compatible
query I rowsort label-790
SELECT - + COALESCE ( + 22, - + 19 * + 28, + 77 + - CAST ( NULL AS INTEGER ) ) * - 82 AS col2
----
1804

query I rowsort
SELECT ALL + 83 * 98
----
8134

onlyif mysql # aggregate syntax: 
query I rowsort label-792
SELECT + COUNT( * ) * - 15 * + 27
----
-405

skipif mysql # not compatible
query I rowsort label-792
SELECT + COUNT ( * ) * - 15 * + 27
----
-405

onlyif mysql # aggregate syntax: 
query II rowsort label-793
SELECT + 64 * + MIN( - - 43 ) + + - 45 + ( + 68 ) AS col1, 80
----
2775
80

skipif mysql # not compatible
query II rowsort label-793
SELECT + 64 * + MIN ( - - 43 ) + + - 45 + ( + 68 ) AS col1, 80
----
2775
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-794
SELECT ALL + 56 + 12 * + 49 DIV 25 DIV - NULLIF ( - 59, + + 87 * - COUNT( * ) * + + 10 ) * 14 AS col2
----
56

skipif mysql # not compatible
query I rowsort label-794
SELECT ALL + 56 + 12 * + 49 / 25 / - NULLIF ( - 59, + + 87 * - COUNT ( * ) * + + 10 ) * 14 AS col2
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-795
SELECT ALL - COUNT( * ) + + + COALESCE ( + 93, - 40 ) + - 83
----
9

skipif mysql # not compatible
query I rowsort label-795
SELECT ALL - COUNT ( * ) + + + COALESCE ( + 93, - 40 ) + - 83
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-796
SELECT - CAST( + COUNT( * ) AS SIGNED ) + + 20 * 77 * ( 22 ) + 93
----
33972

skipif mysql # not compatible
query I rowsort label-796
SELECT - CAST ( + COUNT ( * ) AS INTEGER ) + + 20 * 77 * ( 22 ) + 93
----
33972

query I rowsort
SELECT DISTINCT CASE - 56 WHEN + 65 THEN + 56 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-798
SELECT ALL - 30 DIV - ( - 8 )
----
-3

skipif mysql # not compatible
query I rowsort label-798
SELECT ALL - 30 / - ( - 8 )
----
-3

query I rowsort
SELECT - 49 + + - 89
----
-138

query I rowsort
SELECT - 13 * ( 20 )
----
-260

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

query I rowsort
SELECT - 19 - - 7 + + 72 * + 86 * 54 * + 64 AS col1
----
21399540

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-804
SELECT CAST( + + 91 AS SIGNED ) DIV + 71 + - ( + ( + + 45 ) ) AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-804
SELECT CAST ( + + 91 AS INTEGER ) / + 71 + - ( + ( + + 45 ) ) AS col1
----
-44

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-807
SELECT - ( + COUNT( * ) ) / + CASE ( 23 ) WHEN - + 18 THEN - 61 * - CAST( + + COALESCE ( - 91, + 60 ) AS DECIMAL ) END * - COUNT( * ) + + 68 - CASE + 64 WHEN 22 + + COUNT( * ) THEN 74 ELSE NULL END AS col0, + 23 * - 50 + + 67 + - 91
----
NULL
-1174

skipif mysql # not compatible
query II rowsort label-807
SELECT - ( + COUNT ( * ) ) / + CASE ( 23 ) WHEN - + 18 THEN - 61 * - CAST ( + + COALESCE ( - 91, + 60 ) AS REAL ) END * - COUNT ( * ) + + 68 - CASE + 64 WHEN 22 + + COUNT ( * ) THEN 74 ELSE NULL END AS col0, + 23 * - 50 + + 67 + - 91
----
NULL
-1174

onlyif mysql # DIV for integer division: 
query I rowsort label-808
SELECT - 83 DIV - 42 - 70
----
-69

skipif mysql # not compatible
query I rowsort label-808
SELECT - 83 / - 42 - 70
----
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-809
SELECT ALL 32 DIV 15
----
2

skipif mysql # not compatible
query I rowsort label-809
SELECT ALL 32 / 15
----
2

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-810
SELECT - - CASE CAST( NULL AS DECIMAL ) WHEN COUNT( * ) + + + 11 THEN + 36 * - 21 + + 34 - 30 WHEN - + COALESCE ( + 95, - 70, CASE + - 83 WHEN - 63 * - CASE + + 46 WHEN NULLIF ( COUNT( * ), + 72 ) * + + 94 THEN NULL ELSE - + COUNT( * ) * + 69 - + 65 END THEN NULLIF ( + 94, - ( 67 ) ) / 27 * - 36 END ) THEN NULL WHEN - + MIN( 18 ) THEN NULL END * - - ( + - 48 ) + + + 91 + + AVG ( DISTINCT - - ( - 11 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-810
SELECT - - CASE CAST ( NULL AS REAL ) WHEN COUNT ( * ) + + + 11 THEN + 36 * - 21 + + 34 - 30 WHEN - + COALESCE ( + 95, - 70, CASE + - 83 WHEN - 63 * - CASE + + 46 WHEN NULLIF ( COUNT ( * ), + 72 ) * + + 94 THEN NULL ELSE - + COUNT ( * ) * + 69 - + 65 END THEN NULLIF ( + 94, - ( 67 ) ) / 27 * - 36 END ) THEN NULL WHEN - + MIN ( 18 ) THEN NULL END * - - ( + - 48 ) + + + 91 + + AVG ( DISTINCT - - ( - 11 ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-811
SELECT + COALESCE ( 86, - 44 ) DIV + 82
----
1

skipif mysql # not compatible
query I rowsort label-811
SELECT + COALESCE ( 86, - 44 ) / + 82
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-812
SELECT + + COUNT( * ) + ( 88 )
----
89

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

onlyif mysql # aggregate syntax: 
query I rowsort label-813
SELECT ALL + 79 * + 65 + + MAX( ALL + 38 ) + + 22 - + 61 AS col1
----
5134

skipif mysql # not compatible
query I rowsort label-813
SELECT ALL + 79 * + 65 + + MAX ( ALL + 38 ) + + 22 - + 61 AS col1
----
5134

onlyif mysql # aggregate syntax: 
query I rowsort label-814
SELECT DISTINCT - 45 * 55 * + - CASE + 74 WHEN - 89 * + 63 * - COUNT( * ) THEN + - ( + - 8 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-814
SELECT DISTINCT - 45 * 55 * + - CASE + 74 WHEN - 89 * + 63 * - COUNT ( * ) THEN + - ( + - 8 ) END
----
NULL

query I rowsort
SELECT + 95 * 35 * - 69 col1
----
-229425

query I rowsort
SELECT - 86 * 22 + - 65 * + 59
----
-5727

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-817
SELECT ALL + 86 * + COUNT( * ) DIV + - COUNT( * ) + 3
----
-83

skipif mysql # not compatible
query I rowsort label-817
SELECT ALL + 86 * + COUNT ( * ) / + - COUNT ( * ) + 3
----
-83

query II rowsort
SELECT - ( - 15 ) AS col2, - 45 * 17 col2
----
15
-765

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

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

query I rowsort
SELECT + ( + 54 ) + + + 27 AS col2
----
81

query I rowsort
SELECT ALL COALESCE ( + - 13, - 25 )
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-822
SELECT + CAST( NULL AS SIGNED ) * COUNT( ALL - 2 ) col1, 0 + 2 AS col0
----
NULL
2

skipif mysql # not compatible
query II rowsort label-822
SELECT + CAST ( NULL AS INTEGER ) * COUNT ( ALL - 2 ) col1, 0 + 2 AS col0
----
NULL
2

query I rowsort
SELECT + ( 78 ) + + NULLIF ( + - 8, + - 98 ) AS col1
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-824
SELECT 71 * COUNT( * ) - - 42 + - - 21 col2
----
134

skipif mysql # not compatible
query I rowsort label-824
SELECT 71 * COUNT ( * ) - - 42 + - - 21 col2
----
134

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-826
SELECT - 55 + + + COUNT( * )
----
-54

skipif mysql # not compatible
query I rowsort label-826
SELECT - 55 + + + COUNT ( * )
----
-54

query I rowsort
SELECT - 14 * - 84
----
1176

query I rowsort
SELECT + 25 * + 19
----
475

onlyif mysql # aggregate syntax: 
query I rowsort label-829
SELECT ALL ( - MIN( DISTINCT + + 3 ) ) AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-829
SELECT ALL ( - MIN ( DISTINCT + + 3 ) ) AS col0
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-830
SELECT 5 DIV + - 11 * + 30 AS col2, MIN( ALL + ( + 16 ) ) col0
----
0
16

skipif mysql # not compatible
query II rowsort label-830
SELECT 5 / + - 11 * + 30 AS col2, MIN ( ALL + ( + 16 ) ) col0
----
0
16

query I rowsort
SELECT 15 - + - 64 AS col2
----
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-832
SELECT 21 + + COUNT( * ) DIV - + 56 + 7 AS col1
----
28

skipif mysql # not compatible
query I rowsort label-832
SELECT 21 + + COUNT ( * ) / - + 56 + 7 AS col1
----
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-833
SELECT 95 DIV COUNT( ALL + + 84 )
----
95

skipif mysql # not compatible
query I rowsort label-833
SELECT 95 / COUNT ( ALL + + 84 )
----
95

query I rowsort
SELECT 31 * 5 AS col0
----
155

query I rowsort
SELECT 37 + + 28
----
65

query II rowsort
SELECT ALL 81 AS col0, + 1 AS col1
----
81
1

query I rowsort
SELECT + 33 + + 77 AS col2
----
110

onlyif mysql # aggregate syntax: 
query II rowsort label-838
SELECT 50 col2, NULLIF ( 44, COUNT( * ) * + 57 )
----
50
44

skipif mysql # not compatible
query II rowsort label-838
SELECT 50 col2, NULLIF ( 44, COUNT ( * ) * + 57 )
----
50
44

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

query I rowsort
SELECT DISTINCT + + 85 * + 72 AS col2
----
6120

query I rowsort
SELECT + 90 * - 25 * + 93 * - - 9 * - 9 + - 64
----
16949186

query II rowsort
SELECT 93, - 17 * 53 AS col1
----
93
-901

query I rowsort
SELECT ALL - + 72 + 66
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-844
SELECT ALL + COUNT( * ) + ( - 84 ) + + - COUNT( - - 81 )
----
-84

skipif mysql # not compatible
query I rowsort label-844
SELECT ALL + COUNT ( * ) + ( - 84 ) + + - COUNT ( - - 81 )
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-845
SELECT + 56 * + ( + CAST( NULL AS SIGNED ) ) / + 32 + 58 - 82
----
NULL

skipif mysql # not compatible
query I rowsort label-845
SELECT + 56 * + ( + CAST ( NULL AS INTEGER ) ) / + 32 + 58 - 82
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-846
SELECT 53 * - CAST( + 90 AS SIGNED )
----
-4770

skipif mysql # not compatible
query I rowsort label-846
SELECT 53 * - CAST ( + 90 AS INTEGER )
----
-4770

query I rowsort
SELECT - 65 - - 47
----
-18

query I rowsort
SELECT - + AVG ( CASE + 19 WHEN + 21 + + 13 / - 6 THEN NULL WHEN - 21 + 66 THEN - 85 + 97 ELSE NULL END ) * + 79 + + + 31 - + 13 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-849
SELECT ALL - COUNT( - + ( - 90 ) ) + + - 43 + + - 69
----
-113

skipif mysql # not compatible
query I rowsort label-849
SELECT ALL - COUNT ( - + ( - 90 ) ) + + - 43 + + - 69
----
-113

query I rowsort
SELECT 55 - + 40 + 36 AS col0
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-851
SELECT DISTINCT - 89 - ( - CAST( 57 AS SIGNED ) ) AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-851
SELECT DISTINCT - 89 - ( - CAST ( 57 AS INTEGER ) ) AS col2
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-852
SELECT 61 * - NULLIF ( - ( - COUNT( * ) ), 79 ) * 72
----
-4392

skipif mysql # not compatible
query I rowsort label-852
SELECT 61 * - NULLIF ( - ( - COUNT ( * ) ), 79 ) * 72
----
-4392

onlyif mysql # aggregate syntax: 
query I rowsort label-853
SELECT 96 * + - COUNT( * ) * 82 AS col2
----
-7872

skipif mysql # not compatible
query I rowsort label-853
SELECT 96 * + - COUNT ( * ) * 82 AS col2
----
-7872

query I rowsort
SELECT ALL 67 * 33
----
2211

query I rowsort
SELECT 75 * 95 + + COALESCE ( - 87, + 32 + + 62 + - + 77 * NULLIF ( 4, 91 ) )
----
7038

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-857
SELECT DISTINCT + 85 * + 60 * 35 * - COUNT( * )
----
-178500

skipif mysql # not compatible
query I rowsort label-857
SELECT DISTINCT + 85 * + 60 * 35 * - COUNT ( * )
----
-178500

query I rowsort
SELECT 96 * 45
----
4320

query I rowsort
SELECT ALL 8 * + + 13 AS col1
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-860
SELECT 15 + + COUNT( * ) * + - 13 * 36 AS col0
----
-453

skipif mysql # not compatible
query I rowsort label-860
SELECT 15 + + COUNT ( * ) * + - 13 * 36 AS col0
----
-453

query I rowsort
SELECT 86 * - 6
----
-516

query I rowsort
SELECT 21 * + 95
----
1995

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-863
SELECT 40 DIV 44 AS col2, CAST( + + COUNT( * ) AS SIGNED ) col2
----
0
1

skipif mysql # not compatible
query II rowsort label-863
SELECT 40 / 44 AS col2, CAST ( + + COUNT ( * ) AS INTEGER ) col2
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-864
SELECT 11 + + SUM( ALL + 44 ) AS col0
----
55

skipif mysql # not compatible
query I rowsort label-864
SELECT 11 + + SUM ( ALL + 44 ) AS col0
----
55

onlyif mysql # DIV for integer division: 
query II rowsort label-865
SELECT 47 * NULLIF ( 79, - 75 * + COALESCE ( - ( - - 5 ), 15 ) ) * + - 39 col0, + 83 DIV - - 92 + + 97 AS col1
----
-144807
97

skipif mysql # not compatible
query II rowsort label-865
SELECT 47 * NULLIF ( 79, - 75 * + COALESCE ( - ( - - 5 ), 15 ) ) * + - 39 col0, + 83 / - - 92 + + 97 AS col1
----
-144807
97

query I rowsort
SELECT DISTINCT 59 * + 24 AS col0
----
1416

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

skipif mysql # not compatible
query I rowsort label-867
SELECT SUM ( DISTINCT CAST ( + 10 AS INTEGER ) ) AS col2
----
10

query I rowsort
SELECT ALL + 28 + - - 90 + + 62
----
180

query I rowsort
SELECT DISTINCT + 69 + + 72
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-870
SELECT CASE - ( + 4 ) WHEN 20 THEN NULL WHEN ( - ( SUM( + + 91 ) ) ) THEN 89 + COUNT( DISTINCT - - 28 ) * + 80 END
----
NULL

skipif mysql # not compatible
query I rowsort label-870
SELECT CASE - ( + 4 ) WHEN 20 THEN NULL WHEN ( - ( SUM ( + + 91 ) ) ) THEN 89 + COUNT ( DISTINCT - - 28 ) * + 80 END
----
NULL

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

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

query I rowsort
SELECT ALL 67 + - + 14 col0
----
53

query I rowsort
SELECT 21 + - 79
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-874
SELECT 56 DIV + ( + 29 ) + - 20
----
-19

skipif mysql # not compatible
query I rowsort label-874
SELECT 56 / + ( + 29 ) + - 20
----
-19

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-876
SELECT ALL CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) + + + 66 / - - ( + 83 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-876
SELECT ALL CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) + + + 66 / - - ( + 83 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-877
SELECT + COUNT( + 62 ) + - 58 AS col0
----
-57

skipif mysql # not compatible
query I rowsort label-877
SELECT + COUNT ( + 62 ) + - 58 AS col0
----
-57

query I rowsort
SELECT + 24 * - 61 * - 22 - + 48 - + 68 * - - 39
----
29508

query I rowsort
SELECT + 46 - - 33
----
79

query I rowsort
SELECT - 86 * - - ( + 63 )
----
-5418

query I rowsort
SELECT 70 + - 27 AS col0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-882
SELECT ALL ( + 86 ) * - - COUNT( 15 ) * - 0 - - - SUM( DISTINCT 37 )
----
-37

skipif mysql # not compatible
query I rowsort label-882
SELECT ALL ( + 86 ) * - - COUNT ( 15 ) * - 0 - - - SUM ( DISTINCT 37 )
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-883
SELECT 57 * + 85 + - CASE - - COUNT( * ) WHEN + ( - + 8 ) THEN - 87 WHEN 81 * - 26 + 98 + + 69 * 20 * + + ( - COUNT( * ) ) * 3 + + 33 - + - 57 * - ( + - 15 ) * - + CAST( + 57 AS SIGNED ) + 13 * - 85 * + - ( - 9 ) * 62 + 50 * - + 11 * + 70 THEN - 65 / COUNT( * ) - - + ( + ( ( 26 ) ) ) ELSE + NULLIF ( 26, + 91 ) - + 24 * - 38 * CAST( NULL AS SIGNED ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-883
SELECT 57 * + 85 + - CASE - - COUNT ( * ) WHEN + ( - + 8 ) THEN - 87 WHEN 81 * - 26 + 98 + + 69 * 20 * + + ( - COUNT ( * ) ) * 3 + + 33 - + - 57 * - ( + - 15 ) * - + CAST ( + 57 AS INTEGER ) + 13 * - 85 * + - ( - 9 ) * 62 + 50 * - + 11 * + 70 THEN - 65 / COUNT ( * ) - - + ( + ( ( 26 ) ) ) ELSE + NULLIF ( 26, + 91 ) - + 24 * - 38 * CAST ( NULL AS INTEGER ) END AS col1
----
NULL

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

skipif mysql # not compatible
query II rowsort label-884
SELECT COUNT ( * ) col1, 84 col2
----
1
84

query II rowsort
SELECT 80 * + 52 + - 2 - + 13 * + 82 AS col0, 63
----
3092
63

query I rowsort
SELECT 6 * - 43 * + 30 * 3
----
-23220

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-888
SELECT DISTINCT + CAST( NULL AS DECIMAL ) AS col0, 85 + MIN( ALL + - 31 ) AS col2
----
NULL
54

skipif mysql # not compatible
query II rowsort label-888
SELECT DISTINCT + CAST ( NULL AS REAL ) AS col0, 85 + MIN ( ALL + - 31 ) AS col2
----
NULL
54

onlyif mysql # aggregate syntax: 
query I rowsort label-889
SELECT 99 * - 49 + + + COUNT( * ) AS col1
----
-4850

skipif mysql # not compatible
query I rowsort label-889
SELECT 99 * - 49 + + + COUNT ( * ) AS col1
----
-4850

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-890
SELECT DISTINCT 7 * + 20 * - NULLIF ( + 88, ( + - CAST( - - COUNT( * ) AS SIGNED ) ) )
----
-12320

skipif mysql # not compatible
query I rowsort label-890
SELECT DISTINCT 7 * + 20 * - NULLIF ( + 88, ( + - CAST ( - - COUNT ( * ) AS INTEGER ) ) )
----
-12320

onlyif mysql # aggregate syntax: 
query I rowsort label-891
SELECT ALL 54 + + 95 + + 16 - ( 47 ) * + COUNT( * )
----
118

skipif mysql # not compatible
query I rowsort label-891
SELECT ALL 54 + + 95 + + 16 - ( 47 ) * + COUNT ( * )
----
118

query I rowsort
SELECT - 18 - - 76
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-893
SELECT - MIN( 31 )
----
-31

skipif mysql # not compatible
query I rowsort label-893
SELECT - MIN ( 31 )
----
-31

onlyif mysql # aggregate syntax: 
query II rowsort label-894
SELECT - 36 / CASE - + 2 WHEN 99 THEN + 73 * - 84 * + + MAX( + 81 ) * CASE 38 WHEN + + 27 / - 48 + COUNT( * ) THEN - 21 WHEN - - 50 THEN - COUNT( * ) / + ( + ( + - 6 ) ) + + 30 END END AS col0, + 65
----
NULL
65

skipif mysql # not compatible
query II rowsort label-894
SELECT - 36 / CASE - + 2 WHEN 99 THEN + 73 * - 84 * + + MAX ( + 81 ) * CASE 38 WHEN + + 27 / - 48 + COUNT ( * ) THEN - 21 WHEN - - 50 THEN - COUNT ( * ) / + ( + ( + - 6 ) ) + + 30 END END AS col0, + 65
----
NULL
65

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-896
SELECT DISTINCT ( - NULLIF ( - MIN( DISTINCT - CAST( NULL AS SIGNED ) ), 72 ) ) + - 37 * 0 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-896
SELECT DISTINCT ( - NULLIF ( - MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ), 72 ) ) + - 37 * 0 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-897
SELECT DISTINCT + MIN( ALL + 36 ) * - 73 col0
----
-2628

skipif mysql # not compatible
query I rowsort label-897
SELECT DISTINCT + MIN ( ALL + 36 ) * - 73 col0
----
-2628

query I rowsort
SELECT ALL - 36 + - 67 col0
----
-103

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-900
SELECT ALL 0 + + 48 + + NULLIF ( + + ( - MAX( 79 ) ), 63 ) - - + 22 / + ( + + CASE + + 66 WHEN - 48 THEN NULLIF ( - + 54, COUNT( * ) * 36 * - + 91 - - 46 * 63 ) END ) * - + 29
----
NULL

skipif mysql # not compatible
query I rowsort label-900
SELECT ALL 0 + + 48 + + NULLIF ( + + ( - MAX ( 79 ) ), 63 ) - - + 22 / + ( + + CASE + + 66 WHEN - 48 THEN NULLIF ( - + 54, COUNT ( * ) * 36 * - + 91 - - 46 * 63 ) END ) * - + 29
----
NULL

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

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

query I rowsort
SELECT + - 10 * + - 79 + - 95 + + 79 AS col2
----
774

query I rowsort
SELECT + 17 + - ( + 21 ) + ( 32 )
----
28

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-905
SELECT - 31 + - CASE WHEN NOT MIN( DISTINCT - - 25 ) < NULL THEN + + 2 + - + 41 END + - 82 + - NULLIF ( - - 99, - 16 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-905
SELECT - 31 + - CASE WHEN NOT MIN ( DISTINCT - - 25 ) < NULL THEN + + 2 + - + 41 END + - 82 + - NULLIF ( - - 99, - 16 ) AS col0
----
NULL

query I rowsort
SELECT ALL 0 - 48 AS col2
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-907
SELECT + MIN( DISTINCT - 84 ) * - 10
----
840

skipif mysql # not compatible
query I rowsort label-907
SELECT + MIN ( DISTINCT - 84 ) * - 10
----
840

onlyif mysql # aggregate syntax: 
query I rowsort label-908
SELECT DISTINCT + NULLIF ( + - 71, + - MIN( - 37 ) ) AS col1
----
-71

skipif mysql # not compatible
query I rowsort label-908
SELECT DISTINCT + NULLIF ( + - 71, + - MIN ( - 37 ) ) AS col1
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-909
SELECT DISTINCT 59 * - 96 / + 89 + + 89 - + MAX( 80 ) - + 60 * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-909
SELECT DISTINCT 59 * - 96 / + 89 + + 89 - + MAX ( 80 ) - + 60 * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT + + 84 * - 76 AS col1
----
-6384

onlyif mysql # aggregate syntax: 
query II rowsort label-911
SELECT DISTINCT + 13 col0, COUNT( * )
----
13
1

skipif mysql # not compatible
query II rowsort label-911
SELECT DISTINCT + 13 col0, COUNT ( * )
----
13
1

query I rowsort
SELECT + - NULLIF ( - ( 92 ), + 45 ) col2
----
92

query I rowsort
SELECT - + 45 * - 79 AS col2
----
3555

onlyif mysql # DIV for integer division: 
query I rowsort label-914
SELECT ALL + 40 DIV + 85 * 9 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-914
SELECT ALL + 40 / + 85 * 9 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-915
SELECT + 25 * + 21 - + - COUNT( * ) AS col2
----
526

skipif mysql # not compatible
query I rowsort label-915
SELECT + 25 * + 21 - + - COUNT ( * ) AS col2
----
526

onlyif mysql # DIV for integer division: 
query I rowsort label-916
SELECT - ( + 51 ) DIV - - 2 AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-916
SELECT - ( + 51 ) / - - 2 AS col0
----
-25

query I rowsort
SELECT + ( - + 26 ) * 27 col2
----
-702

onlyif mysql # DIV for integer division: 
query I rowsort label-918
SELECT 12 DIV - 88 + 1 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-918
SELECT 12 / - 88 + 1 AS col1
----
1

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

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

query II rowsort
SELECT DISTINCT + 28, 17 AS col0
----
28
17

onlyif mysql # aggregate syntax: 
query I rowsort label-921
SELECT ALL - NULLIF ( + 39, - COALESCE ( 65, + ( - 25 ) ) ) * COUNT( * ) AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-921
SELECT ALL - NULLIF ( + 39, - COALESCE ( 65, + ( - 25 ) ) ) * COUNT ( * ) AS col0
----
-39

query II rowsort
SELECT ALL + 41 AS col2, + 89 + + ( + 11 )
----
41
100

query I rowsort
SELECT - 96 * + 65
----
-6240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-924
SELECT + CAST( NULL AS DECIMAL ), ( - CASE 87 WHEN 5 THEN NULL WHEN - NULLIF ( 21, - ( - + NULLIF ( + 34, CASE + 19 WHEN + CAST( NULL AS SIGNED ) + + 43 * + + 62 THEN - 94 WHEN + 35 * - 33 THEN NULL ELSE - 71 * - 60 - + SUM( - - 96 ) + + - 54 END ) ) + - COUNT( * ) ) THEN + + 79 DIV - 12 DIV + 14 + + + CAST( + 10 AS SIGNED ) + NULLIF ( 90, 25 ) + - 51 + - COUNT( * ) DIV + 89 WHEN - 16 DIV + COALESCE ( - 52, CASE - COALESCE ( + + 92, + 4 ) WHEN - + 5 * 35 THEN - - ( - + 46 ) DIV ( - 13 ) END ) + + NULLIF ( 72, SUM( 31 ) ) + + COUNT( * ) THEN NULL ELSE - 52 END ) AS col1
----
NULL
52

skipif mysql # not compatible
query II rowsort label-924
SELECT + CAST ( NULL AS REAL ), ( - CASE 87 WHEN 5 THEN NULL WHEN - NULLIF ( 21, - ( - + NULLIF ( + 34, CASE + 19 WHEN + CAST ( NULL AS INTEGER ) + + 43 * + + 62 THEN - 94 WHEN + 35 * - 33 THEN NULL ELSE - 71 * - 60 - + SUM ( - - 96 ) + + - 54 END ) ) + - COUNT ( * ) ) THEN + + 79 / - 12 / + 14 + + + CAST ( + 10 AS INTEGER ) + NULLIF ( 90, 25 ) + - 51 + - COUNT ( * ) / + 89 WHEN - 16 / + COALESCE ( - 52, CASE - COALESCE ( + + 92, + 4 ) WHEN - + 5 * 35 THEN - - ( - + 46 ) / ( - 13 ) END ) + + NULLIF ( 72, SUM ( 31 ) ) + + COUNT ( * ) THEN NULL ELSE - 52 END ) AS col1
----
NULL
52

onlyif mysql # DIV for integer division: 
query I rowsort label-925
SELECT ALL + 66 * 75 + 78 DIV - + 17
----
4946

skipif mysql # not compatible
query I rowsort label-925
SELECT ALL + 66 * 75 + 78 / - + 17
----
4946

query I rowsort
SELECT - 60 * - 7 AS col2
----
420

query I rowsort
SELECT - 19 + + 79
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-928
SELECT ALL CAST( 32 AS SIGNED ) AS col2
----
32

skipif mysql # not compatible
query I rowsort label-928
SELECT ALL CAST ( 32 AS INTEGER ) AS col2
----
32

query I rowsort
SELECT DISTINCT + 33 * + 0 + - + 9 col0
----
-9

query I rowsort
SELECT DISTINCT CASE - 67 WHEN + + 22 THEN - - 45 / - - 88 + - - 82 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL 59 + + 93 + + + 20 - - 10
----
182

onlyif mysql # aggregate syntax: 
query II rowsort label-932
SELECT ALL - 20 + + ( - ( + COUNT( * ) ) ) AS col0, - COUNT( * ) * - 36
----
-21
36

skipif mysql # not compatible
query II rowsort label-932
SELECT ALL - 20 + + ( - ( + COUNT ( * ) ) ) AS col0, - COUNT ( * ) * - 36
----
-21
36

query I rowsort
SELECT - + 56 * + + 80 col1
----
-4480

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-934
SELECT - CAST( - - 89 AS SIGNED ) AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-934
SELECT - CAST ( - - 89 AS INTEGER ) AS col2
----
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-935
SELECT - CAST( NULL AS SIGNED ) + COALESCE ( - 10, - + MAX( - 6 ) ) + + 51 + 8 / - - 30 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-935
SELECT - CAST ( NULL AS INTEGER ) + COALESCE ( - 10, - + MAX ( - 6 ) ) + + 51 + 8 / - - 30 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-936
SELECT - NULLIF ( - + ( + 1 ), + + COUNT( DISTINCT 38 ) + + 59 * + - 90 )
----
1

skipif mysql # not compatible
query I rowsort label-936
SELECT - NULLIF ( - + ( + 1 ), + + COUNT ( DISTINCT 38 ) + + 59 * + - 90 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-937
SELECT - 45 + - + 20 + - - 26 + + + COUNT( * ) * - MAX( + - 46 ) col0
----
7

skipif mysql # not compatible
query I rowsort label-937
SELECT - 45 + - + 20 + - - 26 + + + COUNT ( * ) * - MAX ( + - 46 ) col0
----
7

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

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

query I rowsort
SELECT DISTINCT + 26 - - 58 AS col0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-940
SELECT ALL - COALESCE ( + 12, - 86 + + + MAX( DISTINCT - - 99 ) + 7 + + 9 * + - 96, NULLIF ( + - CASE + 9 WHEN CASE 50 WHEN + 13 THEN - 78 END * + 55 THEN - 54 * + + ( + COUNT( DISTINCT 7 ) ) END, 62 * - - COUNT( * ) / + 0 + + COUNT( * ) - - + COUNT( * ) ) * - 7 ) AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-940
SELECT ALL - COALESCE ( + 12, - 86 + + + MAX ( DISTINCT - - 99 ) + 7 + + 9 * + - 96, NULLIF ( + - CASE + 9 WHEN CASE 50 WHEN + 13 THEN - 78 END * + 55 THEN - 54 * + + ( + COUNT ( DISTINCT 7 ) ) END, 62 * - - COUNT ( * ) / + 0 + + COUNT ( * ) - - + COUNT ( * ) ) * - 7 ) AS col1
----
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-941
SELECT - + 55 * - - COUNT( * ) AS col2, 24 + - + 54 AS col0
----
-55
-30

skipif mysql # not compatible
query II rowsort label-941
SELECT - + 55 * - - COUNT ( * ) AS col2, 24 + - + 54 AS col0
----
-55
-30

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

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

query I rowsort
SELECT + 17 * 5
----
85

query II rowsort
SELECT + 20 AS col0, + 49 * + 38
----
20
1862

onlyif mysql # aggregate syntax: 
query I rowsort label-945
SELECT + SUM( DISTINCT - 84 ) + + 45 AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-945
SELECT + SUM ( DISTINCT - 84 ) + + 45 AS col1
----
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-946
SELECT - 77 DIV + 41 - + 41
----
-42

skipif mysql # not compatible
query I rowsort label-946
SELECT - 77 / + 41 - + 41
----
-42

query I rowsort
SELECT ALL ( - 69 ) + - 8 + ( + ( - + NULLIF ( - 3, + 88 ) ) ) col1
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-948
SELECT COUNT( * ) + - 5 * + MAX( 83 )
----
-414

skipif mysql # not compatible
query I rowsort label-948
SELECT COUNT ( * ) + - 5 * + MAX ( 83 )
----
-414

query II rowsort
SELECT DISTINCT 78 + 45 AS col1, 88
----
123
88

query I rowsort
SELECT ALL ( 41 ) + 29 AS col1
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-951
SELECT 15 DIV - 78 AS col1, - COUNT( * )
----
0
-1

skipif mysql # not compatible
query II rowsort label-951
SELECT 15 / - 78 AS col1, - COUNT ( * )
----
0
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-952
SELECT DISTINCT - 36 + - 62 + - + 25 + - - 32 / + 55 + NULLIF ( - CAST( NULL AS SIGNED ), - 73 ) * - - 62
----
NULL

skipif mysql # not compatible
query I rowsort label-952
SELECT DISTINCT - 36 + - 62 + - + 25 + - - 32 / + 55 + NULLIF ( - CAST ( NULL AS INTEGER ), - 73 ) * - - 62
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-953
SELECT 50 * 5 * + COUNT( * ) * + 83
----
20750

skipif mysql # not compatible
query I rowsort label-953
SELECT 50 * 5 * + COUNT ( * ) * + 83
----
20750

query I rowsort
SELECT 56 + 7 AS col0
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-955
SELECT ALL + ( 32 ) * CAST( + + 27 AS SIGNED )
----
864

skipif mysql # not compatible
query I rowsort label-955
SELECT ALL + ( 32 ) * CAST ( + + 27 AS INTEGER )
----
864

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-958
SELECT DISTINCT - COALESCE ( + 85, + CAST( + 12 AS SIGNED ) )
----
-85

skipif mysql # not compatible
query I rowsort label-958
SELECT DISTINCT - COALESCE ( + 85, + CAST ( + 12 AS INTEGER ) )
----
-85

query I rowsort
SELECT ALL 4 - + ( 64 )
----
-60

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

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

query II rowsort
SELECT DISTINCT - 17 * 85 AS col1, - 84 AS col0
----
-1445
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-962
SELECT DISTINCT - - 92 DIV + 14
----
6

skipif mysql # not compatible
query I rowsort label-962
SELECT DISTINCT - - 92 / + 14
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-963
SELECT - 23 * + + COUNT( * ) - + - 21
----
-2

skipif mysql # not compatible
query I rowsort label-963
SELECT - 23 * + + COUNT ( * ) - + - 21
----
-2

query II rowsort
SELECT + 15 + - 77 AS col2, 9 AS col0
----
-62
9

onlyif mysql # aggregate syntax: 
query I rowsort label-965
SELECT ALL + MAX( 74 ) * + MAX( DISTINCT + - NULLIF ( - 42, + 55 ) ) AS col1
----
3108

skipif mysql # not compatible
query I rowsort label-965
SELECT ALL + MAX ( 74 ) * + MAX ( DISTINCT + - NULLIF ( - 42, + 55 ) ) AS col1
----
3108

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-967
SELECT - MAX( ALL 82 ) AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-967
SELECT - MAX ( ALL 82 ) AS col2
----
-82

query I rowsort
SELECT DISTINCT - 79 * - 15 + - 17 AS col0
----
1168

onlyif mysql # aggregate syntax: 
query I rowsort label-969
SELECT ALL - 85 + + 98 * - + 11 + - SUM( ALL - ( 1 ) ) col0
----
-1162

skipif mysql # not compatible
query I rowsort label-969
SELECT ALL - 85 + + 98 * - + 11 + - SUM ( ALL - ( 1 ) ) col0
----
-1162

onlyif mysql # aggregate syntax: 
query I rowsort label-970
SELECT ALL + 21 + + - CASE + MAX( DISTINCT - 43 ) WHEN 61 * + 10 - 61 THEN COUNT( * ) + + 83 END - 88 * + 74 * - - 93 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-970
SELECT ALL + 21 + + - CASE + MAX ( DISTINCT - 43 ) WHEN 61 * + 10 - 61 THEN COUNT ( * ) + + 83 END - 88 * + 74 * - - 93 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 67 + + + 49
----
-18

query I rowsort
SELECT ALL 37 + + 95 - 5 + - - 59
----
186

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

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

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

skipif mysql # not compatible
query I rowsort label-974
SELECT CAST ( NULL AS INTEGER ) * + 85 AS col2
----
NULL

query II rowsort
SELECT 81 AS col0, ( + + 17 ) AS col1
----
81
17

query I rowsort
SELECT ALL 31 * + + 6 AS col1
----
186

query I rowsort
SELECT ALL + 50 + - 76 AS col2
----
-26

query II rowsort
SELECT DISTINCT - 53 AS col1, + 51
----
-53
51

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-980
SELECT ALL 83 + - 67 + 17 * - CAST( COUNT( * ) AS SIGNED ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-980
SELECT ALL 83 + - 67 + 17 * - CAST ( COUNT ( * ) AS INTEGER ) AS col0
----
-1

query I rowsort
SELECT 31 * - + ( - NULLIF ( + 88, ( + ( + + ( - + 78 ) ) ) ) )
----
2728

onlyif mysql # aggregate syntax: 
query I rowsort label-982
SELECT ALL 95 * - - COUNT( * ) * + + 59 * - - 3 AS col0
----
16815

skipif mysql # not compatible
query I rowsort label-982
SELECT ALL 95 * - - COUNT ( * ) * + + 59 * - - 3 AS col0
----
16815

query I rowsort
SELECT ALL ( + 77 ) - + + 10 AS col0
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-984
SELECT 87 * COUNT( * ) + + 51
----
138

skipif mysql # not compatible
query I rowsort label-984
SELECT 87 * COUNT ( * ) + + 51
----
138

onlyif mysql # aggregate syntax: 
query II rowsort label-985
SELECT + 74 * + 18 * 26, COUNT( * ) * - 46 + 88 col0
----
34632
42

skipif mysql # not compatible
query II rowsort label-985
SELECT + 74 * + 18 * 26, COUNT ( * ) * - 46 + 88 col0
----
34632
42

onlyif mysql # DIV for integer division: 
query I rowsort label-986
SELECT ALL - 29 DIV - 34
----
0

skipif mysql # not compatible
query I rowsort label-986
SELECT ALL - 29 / - 34
----
0

query I rowsort
SELECT ALL - 79 - 69 AS col0
----
-148

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-989
SELECT DISTINCT CASE + - 54 WHEN - + 69 * + + ( - NULLIF ( - 70, - NULLIF ( MAX( 57 ), + 1 * - 7 ) ) ) * 67 THEN NULL ELSE - 48 * COUNT( * ) END
----
-48

skipif mysql # not compatible
query I rowsort label-989
SELECT DISTINCT CASE + - 54 WHEN - + 69 * + + ( - NULLIF ( - 70, - NULLIF ( MAX ( 57 ), + 1 * - 7 ) ) ) * 67 THEN NULL ELSE - 48 * COUNT ( * ) END
----
-48

query I rowsort
SELECT + 54 * - + 5
----
-270

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

skipif mysql # not compatible
query II rowsort label-991
SELECT DISTINCT CAST ( NULL AS INTEGER ), - 77 AS col1
----
NULL
-77

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

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

query II rowsort
SELECT - 82 AS col0, + 31 AS col0
----
-82
31

query I rowsort
SELECT 78 + + - 35 + 89 AS col0
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-995
SELECT - 91 * 53 * - ( - COUNT( * ) ) AS col0
----
-4823

skipif mysql # not compatible
query I rowsort label-995
SELECT - 91 * 53 * - ( - COUNT ( * ) ) AS col0
----
-4823

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-996
SELECT + 30 + + 21 + + - 40 - - 9 * - CAST( + 73 AS SIGNED ) * - 7 - 82 AS col2, - 81 AS col1
----
4528
-81

skipif mysql # not compatible
query II rowsort label-996
SELECT + 30 + + 21 + + - 40 - - 9 * - CAST ( + 73 AS INTEGER ) * - 7 - 82 AS col2, - 81 AS col1
----
4528
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-997
SELECT ALL MAX( DISTINCT 51 ) col2
----
51

skipif mysql # not compatible
query I rowsort label-997
SELECT ALL MAX ( DISTINCT 51 ) col2
----
51

query I rowsort
SELECT DISTINCT - 83 * 79 * 72 * + 20 * - 31 + - 25 + + 23 * - 74 * 77 * - 77
----
302795613

onlyif mysql # aggregate syntax: 
query I rowsort label-999
SELECT - + 72 + + + 67 + - - COUNT( - + 0 ) AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-999
SELECT - + 72 + + + 67 + - - COUNT ( - + 0 ) AS col1
----
-4

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1000
SELECT ALL - - ( - - CAST( NULL AS DECIMAL ) ) + - + 30 AS col2, - ( - - 52 ) * - 87 + + 15 + COUNT( * ) + - ( - 77 ) AS col1
----
NULL
4617

skipif mysql # not compatible
query II rowsort label-1000
SELECT ALL - - ( - - CAST ( NULL AS REAL ) ) + - + 30 AS col2, - ( - - 52 ) * - 87 + + 15 + COUNT ( * ) + - ( - 77 ) AS col1
----
NULL
4617

onlyif mysql # aggregate syntax: 
query I rowsort label-1001
SELECT - MIN( - 0 ) + + 91
----
91

skipif mysql # not compatible
query I rowsort label-1001
SELECT - MIN ( - 0 ) + + 91
----
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1002
SELECT ALL + 92 + + COALESCE ( + COUNT( * ), - 17 DIV - 57 )
----
93

skipif mysql # not compatible
query I rowsort label-1002
SELECT ALL + 92 + + COALESCE ( + COUNT ( * ), - 17 / - 57 )
----
93

query II rowsort
SELECT DISTINCT - 33 + + + 55 + + - 42 AS col1, - 1 AS col1
----
-20
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1004
SELECT + 50 DIV - 34 col1
----
-1

skipif mysql # not compatible
query I rowsort label-1004
SELECT + 50 / - 34 col1
----
-1

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1008
SELECT 81 DIV - - 88 - + 85 * + 5 * - + 13 + 22 AS col0
----
5547

skipif mysql # not compatible
query I rowsort label-1008
SELECT 81 / - - 88 - + 85 * + 5 * - + 13 + 22 AS col0
----
5547

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1009
SELECT NULLIF ( - 87, CAST( + 59 AS SIGNED ) )
----
-87

skipif mysql # not compatible
query I rowsort label-1009
SELECT NULLIF ( - 87, CAST ( + 59 AS INTEGER ) )
----
-87

query I rowsort
SELECT ALL - 73 * 40 + - 48 AS col1
----
-2968

onlyif mysql # aggregate syntax: 
query II rowsort label-1011
SELECT ALL + 35 * - + ( - - 10 ) - 78 col1, COUNT( + + 15 ) * - 59
----
-428
-59

skipif mysql # not compatible
query II rowsort label-1011
SELECT ALL + 35 * - + ( - - 10 ) - 78 col1, COUNT ( + + 15 ) * - 59
----
-428
-59

query I rowsort
SELECT DISTINCT - 91 * 96 - + 27
----
-8763

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1014
SELECT ALL - 58 * + SUM( + - 21 ) * - + 32 + - 3 * - 57 - + 56 + - 77
----
-38938

skipif mysql # not compatible
query I rowsort label-1014
SELECT ALL - 58 * + SUM ( + - 21 ) * - + 32 + - 3 * - 57 - + 56 + - 77
----
-38938

query I rowsort
SELECT 10 * 3 + - + 13
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-1016
SELECT + CASE + 54 WHEN + 76 THEN NULL WHEN 26 * - 1 THEN - 97 * - + NULLIF ( ( ( - 47 ) ), + - 89 * + AVG ( DISTINCT 56 ) ) * 57 * 74 * COUNT( * ) / AVG ( DISTINCT + + ( - 22 ) ) + - 57 WHEN 75 THEN NULL WHEN 36 THEN - 82 * NULLIF ( + 17, - 4 + + - NULLIF ( + + 75, + 53 ) ) END AS col2, - 71 AS col2
----
NULL
-71

skipif mysql # not compatible
query II rowsort label-1016
SELECT + CASE + 54 WHEN + 76 THEN NULL WHEN 26 * - 1 THEN - 97 * - + NULLIF ( ( ( - 47 ) ), + - 89 * + AVG ( DISTINCT 56 ) ) * 57 * 74 * COUNT ( * ) / AVG ( DISTINCT + + ( - 22 ) ) + - 57 WHEN 75 THEN NULL WHEN 36 THEN - 82 * NULLIF ( + 17, - 4 + + - NULLIF ( + + 75, + 53 ) ) END AS col2, - 71 AS col2
----
NULL
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-1017
SELECT + COALESCE ( - + 69, MAX( ALL + 76 ) ) * - 75 - + - 17 AS col0
----
5192

skipif mysql # not compatible
query I rowsort label-1017
SELECT + COALESCE ( - + 69, MAX ( ALL + 76 ) ) * - 75 - + - 17 AS col0
----
5192

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1019
SELECT - 58 * MAX( DISTINCT 44 ) + + 0 + + + 96 col0
----
-2456

skipif mysql # not compatible
query I rowsort label-1019
SELECT - 58 * MAX ( DISTINCT 44 ) + + 0 + + + 96 col0
----
-2456

query I rowsort
SELECT ALL + 6 * + 9 * + 8 AS col2
----
432

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

skipif mysql # not compatible
query I rowsort label-1021
SELECT - SUM ( + 39 )
----
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-1022
SELECT + + 62 DIV - + 92 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1022
SELECT + + 62 / - + 92 AS col0
----
0

query I rowsort
SELECT ALL + 56 + 27 + 19 + + 56 * ( + - 36 ) * - 98 AS col2
----
197670

query I rowsort
SELECT + - 51 * - - NULLIF ( 56, - + 26 ) + - 20 AS col1
----
-2876

query I rowsort
SELECT + 84 + - 47
----
37

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1027
SELECT + 41 DIV - COUNT( * ) - SUM( DISTINCT 20 ) AS col1
----
-61

skipif mysql # not compatible
query I rowsort label-1027
SELECT + 41 / - COUNT ( * ) - SUM ( DISTINCT 20 ) AS col1
----
-61

onlyif mysql # DIV for integer division: 
query I rowsort label-1028
SELECT ALL 11 + 34 + - + 94 DIV 7 * - 74 AS col0
----
1007

skipif mysql # not compatible
query I rowsort label-1028
SELECT ALL 11 + 34 + - + 94 / 7 * - 74 AS col0
----
1007

query II rowsort
SELECT + 50 * + - 51 AS col0, 49
----
-2550
49

query I rowsort
SELECT DISTINCT + - ( + + 58 ) * + 63 col2
----
-3654

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1032
SELECT ALL - 4 + + 74 * + MIN( DISTINCT + - 38 ) + + - 3
----
-2819

skipif mysql # not compatible
query I rowsort label-1032
SELECT ALL - 4 + + 74 * + MIN ( DISTINCT + - 38 ) + + - 3
----
-2819

onlyif mysql # aggregate syntax: 
query I rowsort label-1033
SELECT ALL + 29 + 16 + - 8 * + COUNT( * ) + 96 * + 52
----
5029

skipif mysql # not compatible
query I rowsort label-1033
SELECT ALL + 29 + 16 + - 8 * + COUNT ( * ) + 96 * + 52
----
5029

query I rowsort
SELECT DISTINCT 55 * - + 1
----
-55

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1036
SELECT DISTINCT + COUNT( * ) + + 72 + + 79 col2
----
152

skipif mysql # not compatible
query I rowsort label-1036
SELECT DISTINCT + COUNT ( * ) + + 72 + + 79 col2
----
152

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1037
SELECT ALL - 49 - - 99 - - 8 AS col0, CAST( NULL AS DECIMAL ) AS col2
----
58
NULL

skipif mysql # not compatible
query II rowsort label-1037
SELECT ALL - 49 - - 99 - - 8 AS col0, CAST ( NULL AS REAL ) AS col2
----
58
NULL

query I rowsort
SELECT DISTINCT 19 * + - 32
----
-608

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1041
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col0, 73
----
NULL
73

skipif mysql # not compatible
query II rowsort label-1041
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col0, 73
----
NULL
73

onlyif mysql # DIV for integer division: 
query I rowsort label-1042
SELECT - 66 DIV + 36 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1042
SELECT - 66 / + 36 AS col1
----
-1

query I rowsort
SELECT + 36 + + 1 AS col0
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-1044
SELECT DISTINCT + 32 DIV 53 DIV - 47 * - 2
----
0

skipif mysql # not compatible
query I rowsort label-1044
SELECT DISTINCT + 32 / 53 / - 47 * - 2
----
0

query I rowsort
SELECT - 90 * - + 45 + - + ( + 98 )
----
3952

onlyif mysql # aggregate syntax: 
query I rowsort label-1046
SELECT ALL + 14 * - SUM( - 94 ) * COALESCE ( - 65, 56 ) * - + ( - + 58 ) - 81 AS col2
----
-4961401

skipif mysql # not compatible
query I rowsort label-1046
SELECT ALL + 14 * - SUM ( - 94 ) * COALESCE ( - 65, 56 ) * - + ( - + 58 ) - 81 AS col2
----
-4961401

query II rowsort
SELECT ALL + 4, 8 AS col0
----
4
8

query II rowsort
SELECT DISTINCT + 88, - 95 + 62 * + - 75 * NULLIF ( - 64, 9 + - 30 * - 1 ) AS col2
----
88
297505

onlyif mysql # aggregate syntax: 
query I rowsort label-1049
SELECT DISTINCT - 42 * - ( - ( - COUNT( 99 ) ) ) col2
----
42

skipif mysql # not compatible
query I rowsort label-1049
SELECT DISTINCT - 42 * - ( - ( - COUNT ( 99 ) ) ) col2
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-1050
SELECT 61 * + MIN( + ( + 87 ) ) + 58 AS col2
----
5365

skipif mysql # not compatible
query I rowsort label-1050
SELECT 61 * + MIN ( + ( + 87 ) ) + 58 AS col2
----
5365

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

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

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

query I rowsort
SELECT ALL 8 * 60 + 22
----
502

onlyif mysql # aggregate syntax: 
query I rowsort label-1054
SELECT CASE + COUNT( * ) WHEN ( 95 ) THEN COUNT( * ) + 20 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1054
SELECT CASE + COUNT ( * ) WHEN ( 95 ) THEN COUNT ( * ) + 20 END AS col0
----
NULL

query I rowsort
SELECT ALL 14 * - 35 + - 47
----
-537

onlyif mysql # aggregate syntax: 
query I rowsort label-1056
SELECT DISTINCT - COUNT( ALL - 34 ) + 47
----
46

skipif mysql # not compatible
query I rowsort label-1056
SELECT DISTINCT - COUNT ( ALL - 34 ) + 47
----
46

query I rowsort
SELECT ( 49 ) * 71 + - 39
----
3440

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1058
SELECT DISTINCT - 71 + CASE 19 + - 43 WHEN + CAST( 73 AS SIGNED ) - - 23 THEN NULL WHEN + 43 THEN - 76 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1058
SELECT DISTINCT - 71 + CASE 19 + - 43 WHEN + CAST ( 73 AS INTEGER ) - - 23 THEN NULL WHEN + 43 THEN - 76 END AS col0
----
NULL

query I rowsort
SELECT ALL 22 + + 95 * - 80
----
-7578

query I rowsort
SELECT DISTINCT + 98 + 80
----
178

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1061
SELECT ALL CASE CAST( 26 AS SIGNED ) WHEN - 10 THEN 35 * CASE COUNT( * ) WHEN - 93 * 59 THEN 44 * 82 ELSE 1 END ELSE + 77 END + - COUNT( * ) * - 36
----
113

skipif mysql # not compatible
query I rowsort label-1061
SELECT ALL CASE CAST ( 26 AS INTEGER ) WHEN - 10 THEN 35 * CASE COUNT ( * ) WHEN - 93 * 59 THEN 44 * 82 ELSE 1 END ELSE + 77 END + - COUNT ( * ) * - 36
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-1062
SELECT ALL + COUNT( DISTINCT 47 ) + + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-1062
SELECT ALL + COUNT ( DISTINCT 47 ) + + COUNT ( * )
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1063
SELECT 86 + - 37 * + MAX( + CAST( NULL AS SIGNED ) * - NULLIF ( - NULLIF ( + 59, - 39 * - 29 + - 94 ), ( + CASE + 95 WHEN + 78 THEN 76 + 77 END ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1063
SELECT 86 + - 37 * + MAX ( + CAST ( NULL AS INTEGER ) * - NULLIF ( - NULLIF ( + 59, - 39 * - 29 + - 94 ), ( + CASE + 95 WHEN + 78 THEN 76 + 77 END ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1064
SELECT MIN( 97 ) + + 35
----
132

skipif mysql # not compatible
query I rowsort label-1064
SELECT MIN ( 97 ) + + 35
----
132

query I rowsort
SELECT ( + 72 ) * + 18
----
1296

query I rowsort
SELECT 5 + 28
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-1067
SELECT 41 - COUNT( DISTINCT - 93 )
----
40

skipif mysql # not compatible
query I rowsort label-1067
SELECT 41 - COUNT ( DISTINCT - 93 )
----
40

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1068
SELECT CAST( NULL AS DECIMAL ) * 2
----
NULL

skipif mysql # not compatible
query I rowsort label-1068
SELECT CAST ( NULL AS REAL ) * 2
----
NULL

query I rowsort
SELECT COALESCE ( 69, 56 ) + NULLIF ( 26 + 12, 15 )
----
107

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1070
SELECT ALL CAST( NULL AS SIGNED ) - - 62 / 30 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1070
SELECT ALL CAST ( NULL AS INTEGER ) - - 62 / 30 AS col1
----
NULL

query I rowsort
SELECT ( 46 ) * 92
----
4232

query I rowsort
SELECT 24 + 55 AS col2
----
79

onlyif mysql # DIV for integer division: 
query I rowsort label-1073
SELECT DISTINCT ( 14 ) - 6 DIV - 72
----
14

skipif mysql # not compatible
query I rowsort label-1073
SELECT DISTINCT ( 14 ) - 6 / - 72
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1074
SELECT CAST( NULL AS SIGNED ) * ( MAX( DISTINCT - 10 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1074
SELECT CAST ( NULL AS INTEGER ) * ( MAX ( DISTINCT - 10 ) )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1075
SELECT ALL 61 * + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1075
SELECT ALL 61 * + CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1076
SELECT CAST( NULL AS SIGNED ) + CASE 27 WHEN ( - 15 ) * - 6 THEN 93 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1076
SELECT CAST ( NULL AS INTEGER ) + CASE 27 WHEN ( - 15 ) * - 6 THEN 93 END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1077
SELECT ALL CAST( + 82 AS SIGNED ) - 84
----
-2

skipif mysql # not compatible
query I rowsort label-1077
SELECT ALL CAST ( + 82 AS INTEGER ) - 84
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1078
SELECT COALESCE ( + 50, 59, 53 ) DIV COUNT( * ) AS col1
----
50

skipif mysql # not compatible
query I rowsort label-1078
SELECT COALESCE ( + 50, 59, 53 ) / COUNT ( * ) AS col1
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-1079
SELECT DISTINCT CASE + ( 90 ) WHEN 49 * 66 THEN 55 * - 39 WHEN - COALESCE ( + 41, + NULLIF ( 38, ( 48 ) ) ) THEN + 90 WHEN COALESCE ( + 87, - 68 * - COUNT( * ) ) THEN - 28 END * ( - MAX( 35 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1079
SELECT DISTINCT CASE + ( 90 ) WHEN 49 * 66 THEN 55 * - 39 WHEN - COALESCE ( + 41, + NULLIF ( 38, ( 48 ) ) ) THEN + 90 WHEN COALESCE ( + 87, - 68 * - COUNT ( * ) ) THEN - 28 END * ( - MAX ( 35 ) ) AS col2
----
NULL

query I rowsort
SELECT 69 + - 6 * 10 col2
----
9

query I rowsort
SELECT ALL 1 * 7 AS col1
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-1082
SELECT + 36 DIV + 83 + 44 AS col0
----
44

skipif mysql # not compatible
query I rowsort label-1082
SELECT + 36 / + 83 + 44 AS col0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-1083
SELECT DISTINCT NULLIF ( + 99, 59 * COUNT( * ) ) * - 40 AS col0
----
-3960

skipif mysql # not compatible
query I rowsort label-1083
SELECT DISTINCT NULLIF ( + 99, 59 * COUNT ( * ) ) * - 40 AS col0
----
-3960

query I rowsort
SELECT ( ( 62 ) ) * 74 AS col2
----
4588

query I rowsort
SELECT ALL ( + 11 ) * 93 AS col2
----
1023

query I rowsort
SELECT ALL - COALESCE ( + ( + 15 ), NULLIF ( + 42, - 66 ) ) AS col0
----
-15

query I rowsort
SELECT ALL - 29 + - 7 * + 81 col2
----
-596

query I rowsort
SELECT 75 + 4 * + 70 AS col2
----
355

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1089
SELECT ALL - + 20 + - CAST( NULL AS DECIMAL ) AS col0
----
NULL

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

query I rowsort
SELECT 9 * + 45 + - 87 * ( - 81 ) AS col0
----
7452

query I rowsort
SELECT 45 * + 72
----
3240

onlyif mysql # aggregate syntax: 
query I rowsort label-1092
SELECT ALL + 29 + COALESCE ( - 6 + 12, COALESCE ( 77, NULLIF ( COUNT( * ), + CASE + 44 WHEN 45 THEN ( 5 ) ELSE + 22 END ) * + 57 ), + NULLIF ( + 26, + 57 ), 64 )
----
35

skipif mysql # not compatible
query I rowsort label-1092
SELECT ALL + 29 + COALESCE ( - 6 + 12, COALESCE ( 77, NULLIF ( COUNT ( * ), + CASE + 44 WHEN 45 THEN ( 5 ) ELSE + 22 END ) * + 57 ), + NULLIF ( + 26, + 57 ), 64 )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-1093
SELECT DISTINCT + + MIN( DISTINCT - 82 ) * + 68
----
-5576

skipif mysql # not compatible
query I rowsort label-1093
SELECT DISTINCT + + MIN ( DISTINCT - 82 ) * + 68
----
-5576

onlyif mysql # aggregate syntax: 
query I rowsort label-1094
SELECT COUNT( + 38 ) * + 51 + + NULLIF ( + 90 + - COUNT( * ) * COUNT( * ), + 39 )
----
140

skipif mysql # not compatible
query I rowsort label-1094
SELECT COUNT ( + 38 ) * + 51 + + NULLIF ( + 90 + - COUNT ( * ) * COUNT ( * ), + 39 )
----
140

query I rowsort
SELECT DISTINCT - 62 + 7 * - 94
----
-720

query I rowsort
SELECT ALL + 4 * 2
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1097
SELECT - COALESCE ( COUNT( * ), - CASE 79 WHEN ( - 96 ) THEN NULL ELSE MIN( ALL + 51 ) DIV CAST( + 83 AS SIGNED ) + 6 END * 3, + 11 + 85 * + 58 ) * 92 + - 29
----
-121

skipif mysql # not compatible
query I rowsort label-1097
SELECT - COALESCE ( COUNT ( * ), - CASE 79 WHEN ( - 96 ) THEN NULL ELSE MIN ( ALL + 51 ) / CAST ( + 83 AS INTEGER ) + 6 END * 3, + 11 + 85 * + 58 ) * 92 + - 29
----
-121

query I rowsort
SELECT DISTINCT + 54 - + 69 * - 61 AS col1
----
4263

query I rowsort
SELECT 94 * 40
----
3760

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1100
SELECT + ( MAX( ALL 67 ) ) + - 38 DIV 67
----
67

skipif mysql # not compatible
query I rowsort label-1100
SELECT + ( MAX ( ALL 67 ) ) + - 38 / 67
----
67

query I rowsort
SELECT ( CASE + ( ( 78 ) ) WHEN - 98 * + 33 THEN NULL WHEN 81 * 63 THEN ( - 11 ) ELSE NULL END )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1102
SELECT ALL CAST( + 89 AS SIGNED ) * 13
----
1157

skipif mysql # not compatible
query I rowsort label-1102
SELECT ALL CAST ( + 89 AS INTEGER ) * 13
----
1157

onlyif mysql # aggregate syntax: 
query I rowsort label-1103
SELECT COUNT( * ) * + - CASE + 46 WHEN 33 THEN - 45 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1103
SELECT COUNT ( * ) * + - CASE + 46 WHEN 33 THEN - 45 END
----
NULL

query I rowsort
SELECT DISTINCT + ( - 80 ) * + 23 AS col2
----
-1840

onlyif mysql # aggregate syntax: 
query I rowsort label-1105
SELECT ALL + 32 * + + COALESCE ( COUNT( * ), 16 )
----
32

skipif mysql # not compatible
query I rowsort label-1105
SELECT ALL + 32 * + + COALESCE ( COUNT ( * ), 16 )
----
32

query I rowsort
SELECT 14 * 24 AS col0
----
336

onlyif mysql # aggregate syntax: 
query I rowsort label-1107
SELECT 30 - SUM( 52 ) + COUNT( * )
----
-21

skipif mysql # not compatible
query I rowsort label-1107
SELECT 30 - SUM ( 52 ) + COUNT ( * )
----
-21

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

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

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

skipif mysql # not compatible
query I rowsort label-1109
SELECT ALL COUNT ( DISTINCT + + 42 ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1110
SELECT DISTINCT 54 DIV + + NULLIF ( + 84, + 21 * - ( CAST( NULL AS SIGNED ) * 61 ) + 37 )
----
0

skipif mysql # not compatible
query I rowsort label-1110
SELECT DISTINCT 54 / + + NULLIF ( + 84, + 21 * - ( CAST ( NULL AS INTEGER ) * 61 ) + 37 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1111
SELECT 59 DIV - 45
----
-1

skipif mysql # not compatible
query I rowsort label-1111
SELECT 59 / - 45
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1112
SELECT ALL - ( - 11 ) + - MIN( DISTINCT 86 )
----
-75

skipif mysql # not compatible
query I rowsort label-1112
SELECT ALL - ( - 11 ) + - MIN ( DISTINCT 86 )
----
-75

query I rowsort
SELECT 65 - + 30
----
35

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

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

query I rowsort
SELECT 49 + ( - 65 ) + 44
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-1116
SELECT CASE + 54 WHEN 94 THEN - COUNT( * ) * + 32 WHEN 25 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1116
SELECT CASE + 54 WHEN 94 THEN - COUNT ( * ) * + 32 WHEN 25 THEN NULL END AS col2
----
NULL

query I rowsort
SELECT + COALESCE ( + 24, + 85 * 79 )
----
24

query I rowsort
SELECT ALL 43 * - ( 84 ) + - 58
----
-3670

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1119
SELECT + + COUNT( * ) * + 48 + COUNT( * ) + - 26 DIV 63
----
49

skipif mysql # not compatible
query I rowsort label-1119
SELECT + + COUNT ( * ) * + 48 + COUNT ( * ) + - 26 / 63
----
49

query I rowsort
SELECT + + ( + 23 ) * + 56
----
1288

onlyif mysql # aggregate syntax: 
query I rowsort label-1121
SELECT DISTINCT 46 * + CASE 54 WHEN + SUM( ALL + 29 ) THEN NULL WHEN - 79 + + 4 * + 65 THEN + 28 WHEN MIN( ALL - 25 ) THEN 84 * 94 WHEN - 65 THEN NULL ELSE 10 END AS col2
----
460

skipif mysql # not compatible
query I rowsort label-1121
SELECT DISTINCT 46 * + CASE 54 WHEN + SUM ( ALL + 29 ) THEN NULL WHEN - 79 + + 4 * + 65 THEN + 28 WHEN MIN ( ALL - 25 ) THEN 84 * 94 WHEN - 65 THEN NULL ELSE 10 END AS col2
----
460

onlyif mysql # aggregate syntax: 
query I rowsort label-1122
SELECT ALL + MIN( DISTINCT 28 ) * 73 + - COUNT( * ) AS col2
----
2043

skipif mysql # not compatible
query I rowsort label-1122
SELECT ALL + MIN ( DISTINCT 28 ) * 73 + - COUNT ( * ) AS col2
----
2043

onlyif mysql # aggregate syntax: 
query I rowsort label-1123
SELECT ALL CASE + 94 WHEN + 4 THEN + 81 WHEN + 44 + MAX( ALL 60 + + ( + 31 ) ) THEN NULL ELSE 98 END * 12 + + ( - CASE - 59 WHEN + 25 THEN + 83 END - 98 ) / 60
----
NULL

skipif mysql # not compatible
query I rowsort label-1123
SELECT ALL CASE + 94 WHEN + 4 THEN + 81 WHEN + 44 + MAX ( ALL 60 + + ( + 31 ) ) THEN NULL ELSE 98 END * 12 + + ( - CASE - 59 WHEN + 25 THEN + 83 END - 98 ) / 60
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1124
SELECT DISTINCT + MAX( + 16 ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-1124
SELECT DISTINCT + MAX ( + 16 ) AS col0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-1125
SELECT ALL + NULLIF ( + COUNT( * ), 57 + 77 * 65 ) * - 33 + - 44 * 37 AS col0
----
-1661

skipif mysql # not compatible
query I rowsort label-1125
SELECT ALL + NULLIF ( + COUNT ( * ), 57 + 77 * 65 ) * - 33 + - 44 * 37 AS col0
----
-1661

onlyif mysql # aggregate syntax: 
query I rowsort label-1126
SELECT COALESCE ( 70, - COUNT( * ) )
----
70

skipif mysql # not compatible
query I rowsort label-1126
SELECT COALESCE ( 70, - COUNT ( * ) )
----
70

query I rowsort
SELECT NULLIF ( ( 50 ), - 1 * - 59 )
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1128
SELECT - 9 * + CAST( - 69 AS SIGNED ) + - 38 AS col0
----
583

skipif mysql # not compatible
query I rowsort label-1128
SELECT - 9 * + CAST ( - 69 AS INTEGER ) + - 38 AS col0
----
583

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1130
SELECT + 87 * - 65 DIV + COUNT( * ) + - 22
----
-5677

skipif mysql # not compatible
query I rowsort label-1130
SELECT + 87 * - 65 / + COUNT ( * ) + - 22
----
-5677

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1131
SELECT ALL - CAST( NULL AS SIGNED ) - 47
----
NULL

skipif mysql # not compatible
query I rowsort label-1131
SELECT ALL - CAST ( NULL AS INTEGER ) - 47
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1132
SELECT - - 12 * - COUNT( * ) * + 76 AS col0
----
-912

skipif mysql # not compatible
query I rowsort label-1132
SELECT - - 12 * - COUNT ( * ) * + 76 AS col0
----
-912

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1134
SELECT DISTINCT - 73 DIV - 8
----
9

skipif mysql # not compatible
query I rowsort label-1134
SELECT DISTINCT - 73 / - 8
----
9

query I rowsort
SELECT - 26 + - 8 + 3
----
-31

query I rowsort
SELECT + 37 * - - 79 * - 84 AS col0
----
-245532

query I rowsort
SELECT - 43 * 85 AS col1
----
-3655

onlyif mysql # aggregate syntax: 
query I rowsort label-1138
SELECT ALL COALESCE ( 1, - + 60 * 50 + + COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-1138
SELECT ALL COALESCE ( 1, - + 60 * 50 + + COUNT ( * ) )
----
1

query I rowsort
SELECT - 14 * - ( - 22 ) AS col2
----
-308

onlyif mysql # aggregate syntax: 
query I rowsort label-1140
SELECT - COALESCE ( - 94, + 61 ) * - MAX( - 83 + 24 )
----
5546

skipif mysql # not compatible
query I rowsort label-1140
SELECT - COALESCE ( - 94, + 61 ) * - MAX ( - 83 + 24 )
----
5546

onlyif mysql # aggregate syntax: 
query I rowsort label-1141
SELECT ALL CASE - + COUNT( * ) WHEN - 87 THEN COUNT( * ) + 41 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1141
SELECT ALL CASE - + COUNT ( * ) WHEN - 87 THEN COUNT ( * ) + 41 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1142
SELECT - COUNT( * ) + COALESCE ( + 84, + 90 ) DIV 63
----
0

skipif mysql # not compatible
query I rowsort label-1142
SELECT - COUNT ( * ) + COALESCE ( + 84, + 90 ) / 63
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1143
SELECT DISTINCT CASE COUNT( * ) WHEN - - 89 THEN - NULLIF ( 67, 7 + + 58 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1143
SELECT DISTINCT CASE COUNT ( * ) WHEN - - 89 THEN - NULLIF ( 67, 7 + + 58 ) END
----
NULL

query I rowsort
SELECT - 7 + + - 11 AS col0
----
-18

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

skipif mysql # not compatible
query I rowsort label-1145
SELECT ALL - CAST ( NULL AS REAL ) + + 60
----
NULL

query II rowsort
SELECT - 56 AS col2, 70
----
-56
70

query I rowsort
SELECT ALL 71 + + 18 + 76 AS col2
----
165

onlyif mysql # DIV for integer division: 
query I rowsort label-1148
SELECT ALL CASE - 97 WHEN + + 75 * + 21 THEN NULL ELSE - 67 + 28 DIV - 91 END AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-1148
SELECT ALL CASE - 97 WHEN + + 75 * + 21 THEN NULL ELSE - 67 + 28 / - 91 END AS col1
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-1149
SELECT - 53 + + 3 + MAX( ALL 46 ) * 66 AS col1
----
2986

skipif mysql # not compatible
query I rowsort label-1149
SELECT - 53 + + 3 + MAX ( ALL 46 ) * 66 AS col1
----
2986

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

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

query I rowsort
SELECT ALL + 29 + 87 + 70 * 41 AS col1
----
2986

query II rowsort
SELECT - 70 AS col1, - 80
----
-70
-80

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

query I rowsort
SELECT - 17 * - 74
----
1258

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1156
SELECT + NULLIF ( COALESCE ( + MAX( DISTINCT - 78 ), 76 * - 98, 43 DIV + 92 ), COUNT( * ) * - MAX( - 97 * + 96 ) ) AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-1156
SELECT + NULLIF ( COALESCE ( + MAX ( DISTINCT - 78 ), 76 * - 98, 43 / + 92 ), COUNT ( * ) * - MAX ( - 97 * + 96 ) ) AS col1
----
-78

onlyif mysql # aggregate syntax: 
query II rowsort label-1157
SELECT - 84, COUNT( * ) - - 3 AS col1
----
-84
4

skipif mysql # not compatible
query II rowsort label-1157
SELECT - 84, COUNT ( * ) - - 3 AS col1
----
-84
4

onlyif mysql # DIV for integer division: 
query I rowsort label-1158
SELECT - - 34 DIV - 42
----
0

skipif mysql # not compatible
query I rowsort label-1158
SELECT - - 34 / - 42
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1159
SELECT DISTINCT 18 DIV + 19 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1159
SELECT DISTINCT 18 / + 19 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1160
SELECT ALL + 25 / - CASE + - COUNT( * ) WHEN - 31 THEN - 60 END - + CASE - 6 WHEN 62 * + 10 THEN NULL WHEN CAST( + 63 AS SIGNED ) * + 25 + + MAX( - 72 ) THEN - 8 - + 40 END / 30
----
NULL

skipif mysql # not compatible
query I rowsort label-1160
SELECT ALL + 25 / - CASE + - COUNT ( * ) WHEN - 31 THEN - 60 END - + CASE - 6 WHEN 62 * + 10 THEN NULL WHEN CAST ( + 63 AS INTEGER ) * + 25 + + MAX ( - 72 ) THEN - 8 - + 40 END / 30
----
NULL

query II rowsort
SELECT + - 5 AS col2, - 52 AS col0
----
-5
-52

query I rowsort
SELECT ALL + - CASE - 65 WHEN 58 / 49 THEN 15 ELSE NULL END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1163
SELECT DISTINCT 66 DIV + - 32 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-1163
SELECT DISTINCT 66 / + - 32 AS col0
----
-2

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1164
SELECT + 5 / + - 14 * + AVG ( CAST( NULL AS DECIMAL ) ) + + CAST( NULL AS SIGNED ) * ( 51 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1164
SELECT + 5 / + - 14 * + AVG ( CAST ( NULL AS REAL ) ) + + CAST ( NULL AS INTEGER ) * ( 51 ) AS col1
----
NULL

query I rowsort
SELECT - + 57 * + 48
----
-2736

onlyif mysql # aggregate syntax: 
query I rowsort label-1166
SELECT SUM( ALL + - 46 )
----
-46

skipif mysql # not compatible
query I rowsort label-1166
SELECT SUM ( ALL + - 46 )
----
-46

query I rowsort
SELECT + + 7 - - 69 AS col2
----
76

query II rowsort
SELECT + 69 AS col1, 59 * - + 91
----
69
-5369

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

query II rowsort
SELECT 76, - 89 col2
----
76
-89

query I rowsort
SELECT ALL 64 * - 91 + + - 96 AS col2
----
-5920

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

query I rowsort
SELECT + - 25 + 44
----
19

query I rowsort
SELECT + 21 * + - 38 AS col2
----
-798

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1175
SELECT - 52 * - - 30 + - ( - CAST( + CASE + 20 WHEN 89 * - 63 THEN - 35 * 32 - - 84 ELSE SUM( ALL - 63 ) END AS SIGNED ) ) AS col0
----
-1623

skipif mysql # not compatible
query I rowsort label-1175
SELECT - 52 * - - 30 + - ( - CAST ( + CASE + 20 WHEN 89 * - 63 THEN - 35 * 32 - - 84 ELSE SUM ( ALL - 63 ) END AS INTEGER ) ) AS col0
----
-1623

onlyif mysql # aggregate syntax: 
query I rowsort label-1176
SELECT - COUNT( * ) + 89 + - 34 * 95
----
-3142

skipif mysql # not compatible
query I rowsort label-1176
SELECT - COUNT ( * ) + 89 + - 34 * 95
----
-3142

onlyif mysql # aggregate syntax: 
query I rowsort label-1177
SELECT CASE + - 25 WHEN + - 4 * + + COALESCE ( 55, MIN( DISTINCT - 94 ), + 19 * + COALESCE ( + 30, + COALESCE ( 94, 89 ) ) ) THEN COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1177
SELECT CASE + - 25 WHEN + - 4 * + + COALESCE ( 55, MIN ( DISTINCT - 94 ), + 19 * + COALESCE ( + 30, + COALESCE ( 94, 89 ) ) ) THEN COUNT ( * ) ELSE NULL END
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1179
SELECT DISTINCT COUNT( ALL 17 )
----
1

skipif mysql # not compatible
query I rowsort label-1179
SELECT DISTINCT COUNT ( ALL 17 )
----
1

query I rowsort
SELECT ALL 93 * + 19 + + - 59
----
1708

query I rowsort
SELECT ALL - 60 * - 8 * - - 23 * - + 48 + 63 AS col1
----
-529857

query I rowsort
SELECT ALL - 69 * + 88 * - 58
----
352176

onlyif mysql # DIV for integer division: 
query I rowsort label-1183
SELECT + 84 DIV 89
----
0

skipif mysql # not compatible
query I rowsort label-1183
SELECT + 84 / 89
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1184
SELECT ALL + 10 * + 91 * 90 DIV 90 + - ( COALESCE ( 40, - 36 + 58 * - 88 ) ) col1
----
870

skipif mysql # not compatible
query I rowsort label-1184
SELECT ALL + 10 * + 91 * 90 / 90 + - ( COALESCE ( 40, - 36 + 58 * - 88 ) ) col1
----
870

onlyif mysql # aggregate syntax: 
query II rowsort label-1185
SELECT MIN( ALL 41 ), + 92 + 75 + + 39 * + 55 AS col1
----
41
2312

skipif mysql # not compatible
query II rowsort label-1185
SELECT MIN ( ALL 41 ), + 92 + 75 + + 39 * + 55 AS col1
----
41
2312

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1186
SELECT DISTINCT COALESCE ( + + 67, + 16 ) * - COUNT( * ) + + COUNT( * ) DIV 16 col1
----
-67

skipif mysql # not compatible
query I rowsort label-1186
SELECT DISTINCT COALESCE ( + + 67, + 16 ) * - COUNT ( * ) + + COUNT ( * ) / 16 col1
----
-67

query I rowsort
SELECT DISTINCT + 42 + + ( 13 ) AS col0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-1188
SELECT ALL 42 * - MAX( DISTINCT 16 )
----
-672

skipif mysql # not compatible
query I rowsort label-1188
SELECT ALL 42 * - MAX ( DISTINCT 16 )
----
-672

query II rowsort
SELECT DISTINCT 1 + 31, - 73 AS col0
----
32
-73

query II rowsort
SELECT DISTINCT + 52 + 81, + 4 - + 75 AS col1
----
133
-71

query I rowsort
SELECT + 41 - COALESCE ( + 49, + 67 ) - + 15 * 1 AS col0
----
-23

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

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

query I rowsort
SELECT ALL 0 + 42
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-1194
SELECT ALL + + COALESCE ( + 36, - - 83 + COUNT( 93 ) ) - - 53 AS col0
----
89

skipif mysql # not compatible
query I rowsort label-1194
SELECT ALL + + COALESCE ( + 36, - - 83 + COUNT ( 93 ) ) - - 53 AS col0
----
89

onlyif mysql # aggregate syntax: 
query II rowsort label-1195
SELECT + MAX( ALL + + 96 ) AS col0, 15 + 17
----
96
32

skipif mysql # not compatible
query II rowsort label-1195
SELECT + MAX ( ALL + + 96 ) AS col0, 15 + 17
----
96
32

query I rowsort
SELECT ALL - 77 - - 95 + - 93
----
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1197
SELECT - ( + 20 ) + - COALESCE ( + 81, - ( + 18 ), ( + 38 ) DIV COUNT( * ) ) * 61
----
-4961

skipif mysql # not compatible
query I rowsort label-1197
SELECT - ( + 20 ) + - COALESCE ( + 81, - ( + 18 ), ( + 38 ) / COUNT ( * ) ) * 61
----
-4961

onlyif mysql # aggregate syntax: 
query I rowsort label-1198
SELECT 28 * COUNT( * ) + 96
----
124

skipif mysql # not compatible
query I rowsort label-1198
SELECT 28 * COUNT ( * ) + 96
----
124

query I rowsort
SELECT ALL - - 21 - 6 + - + 20 col0
----
-5

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1201
SELECT - CAST( NULL AS SIGNED ) * 89 / + 80 + + - ( ( + 57 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1201
SELECT - CAST ( NULL AS INTEGER ) * 89 / + 80 + + - ( ( + 57 ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1202
SELECT NULLIF ( 32, COUNT( * ) * - 17 + 1 ) * - 44 + + SUM( 0 )
----
-1408

skipif mysql # not compatible
query I rowsort label-1202
SELECT NULLIF ( 32, COUNT ( * ) * - 17 + 1 ) * - 44 + + SUM ( 0 )
----
-1408

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1203
SELECT DISTINCT - NULLIF ( - COALESCE ( 78, + - 12, + 45 + - 33 DIV ( MAX( 9 ) ) ), + 35 )
----
78

skipif mysql # not compatible
query I rowsort label-1203
SELECT DISTINCT - NULLIF ( - COALESCE ( 78, + - 12, + 45 + - 33 / ( MAX ( 9 ) ) ), + 35 )
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1204
SELECT - COALESCE ( + COUNT( * ), + - CAST( NULL AS SIGNED ), - 28 ) / 10 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1204
SELECT - COALESCE ( + COUNT ( * ), + - CAST ( NULL AS INTEGER ), - 28 ) / 10 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1205
SELECT ALL + + 29 * + 1 * + 0 - + 36 - + COUNT( * ) AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-1205
SELECT ALL + + 29 * + 1 * + 0 - + 36 - + COUNT ( * ) AS col1
----
-37

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1207
SELECT + ( + 44 ) AS col1, 20 DIV + 29 AS col2
----
44
0

skipif mysql # not compatible
query II rowsort label-1207
SELECT + ( + 44 ) AS col1, 20 / + 29 AS col2
----
44
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1208
SELECT ALL ( 20 ) * + NULLIF ( + COALESCE ( + + 92, + CAST( NULL AS SIGNED ), 27 * 25 ), 47 * + 55 + 46 ) * + 74
----
136160

skipif mysql # not compatible
query I rowsort label-1208
SELECT ALL ( 20 ) * + NULLIF ( + COALESCE ( + + 92, + CAST ( NULL AS INTEGER ), 27 * 25 ), 47 * + 55 + 46 ) * + 74
----
136160

onlyif mysql # DIV for integer division: 
query I rowsort label-1209
SELECT ( - ( - - 32 ) ) DIV + 58
----
0

skipif mysql # not compatible
query I rowsort label-1209
SELECT ( - ( - - 32 ) ) / + 58
----
0

query II rowsort
SELECT + 32, + 92 - 90 col2
----
32
2

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

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

query I rowsort
SELECT ALL 2 + + 22 AS col2
----
24

query I rowsort
SELECT 40 * - 11 AS col1
----
-440

query I rowsort
SELECT ALL - 28 + + 99 AS col1
----
71

onlyif mysql # DIV for integer division: 
query I rowsort label-1215
SELECT DISTINCT 37 + 43 DIV - 50 * 52 AS col0
----
37

skipif mysql # not compatible
query I rowsort label-1215
SELECT DISTINCT 37 + 43 / - 50 * 52 AS col0
----
37

query I rowsort
SELECT ALL 96 + + - ( - 53 )
----
149

query II rowsort
SELECT DISTINCT 49, + 30 AS col0
----
49
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1218
SELECT CASE + 25 WHEN - NULLIF ( + 21, + 95 * - 89 - - 0 * 98 ) * 0 THEN 40 * NULLIF ( + 29, CAST( NULL AS SIGNED ) ) + 54 ELSE NULL END / - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1218
SELECT CASE + 25 WHEN - NULLIF ( + 21, + 95 * - 89 - - 0 * 98 ) * 0 THEN 40 * NULLIF ( + 29, CAST ( NULL AS INTEGER ) ) + 54 ELSE NULL END / - COUNT ( * )
----
NULL

query I rowsort
SELECT ALL 36 + + + 80
----
116

onlyif mysql # aggregate syntax: 
query II rowsort label-1220
SELECT - 10 AS col0, - 65 * + 73 + - ( - MAX( ALL 39 ) ) * 26 col0
----
-10
-3731

skipif mysql # not compatible
query II rowsort label-1220
SELECT - 10 AS col0, - 65 * + 73 + - ( - MAX ( ALL 39 ) ) * 26 col0
----
-10
-3731

query I rowsort
SELECT 65 + + 17 AS col0
----
82

query I rowsort
SELECT 0 - CASE + 69 WHEN 79 THEN - + 15 WHEN + 54 THEN NULL ELSE 40 * + 11 - + ( 0 ) END AS col2
----
-440

query I rowsort
SELECT ALL 0 - + 71 + + 98 AS col0
----
27

query I rowsort
SELECT 84 + - 87 AS col2
----
-3

query I rowsort
SELECT - 51 * - 72
----
3672

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1227
SELECT ALL - 37 * + - COUNT( * ) DIV 59 AS col2, CASE + 36 WHEN 75 DIV 37 - - 31 * + 62 THEN NULL WHEN + 67 + - COALESCE ( + 63, CASE - 88 WHEN + MIN( ALL 74 ) THEN - 73 DIV 4 + - 80 END ) THEN - 26 DIV ( ( 56 ) ) END + 96
----
0
NULL

skipif mysql # not compatible
query II rowsort label-1227
SELECT ALL - 37 * + - COUNT ( * ) / 59 AS col2, CASE + 36 WHEN 75 / 37 - - 31 * + 62 THEN NULL WHEN + 67 + - COALESCE ( + 63, CASE - 88 WHEN + MIN ( ALL 74 ) THEN - 73 / 4 + - 80 END ) THEN - 26 / ( ( 56 ) ) END + 96
----
0
NULL

query I rowsort
SELECT DISTINCT 39 * - 0
----
0

query I rowsort
SELECT ALL 44 - - 88 AS col2
----
132

onlyif mysql # DIV for integer division: 
query I rowsort label-1230
SELECT - 27 DIV + 28
----
0

skipif mysql # not compatible
query I rowsort label-1230
SELECT - 27 / + 28
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1231
SELECT 65 DIV - - 41 + + + 40 * + - ( 66 )
----
-2639

skipif mysql # not compatible
query I rowsort label-1231
SELECT 65 / - - 41 + + + 40 * + - ( 66 )
----
-2639

onlyif mysql # aggregate syntax: 
query I rowsort label-1232
SELECT - COUNT( * ) + 34 AS col0
----
33

skipif mysql # not compatible
query I rowsort label-1232
SELECT - COUNT ( * ) + 34 AS col0
----
33

query I rowsort
SELECT - 10 * + 29
----
-290

onlyif mysql # aggregate syntax: 
query I rowsort label-1234
SELECT ALL - CASE MIN( - 15 ) WHEN + 30 * + 71 + - 2 THEN NULL WHEN ( - 90 ) THEN + 45 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1234
SELECT ALL - CASE MIN ( - 15 ) WHEN + 30 * + 71 + - 2 THEN NULL WHEN ( - 90 ) THEN + 45 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1235
SELECT COALESCE ( - + 48, - 83, - SUM( DISTINCT + + 71 ) ) DIV 51 + 23 AS col0
----
23

skipif mysql # not compatible
query I rowsort label-1235
SELECT COALESCE ( - + 48, - 83, - SUM ( DISTINCT + + 71 ) ) / 51 + 23 AS col0
----
23

query II rowsort
SELECT ALL - 58, 40 + 55 * - 10 col0
----
-58
-510

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

skipif mysql # not compatible
query I rowsort label-1237
SELECT MIN ( + + 37 )
----
37

query I rowsort
SELECT ALL + - 94 * + 74 AS col1
----
-6956

query I rowsort
SELECT + 76 * + ( ( - - 92 ) )
----
6992

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

skipif mysql # not compatible
query II rowsort label-1240
SELECT ALL - 35, + CAST ( NULL AS INTEGER ) * - ( 70 ) + - COUNT ( * ) col0
----
-35
NULL

query I rowsort
SELECT + - COALESCE ( 30, + 51 * + 57 + + 48 ) col1
----
-30

query I rowsort
SELECT DISTINCT - + 7 * - 1 + - 36 - 44 AS col1
----
-73

query I rowsort
SELECT ALL + 44 * 9 + - 84 - - 30
----
342

onlyif mysql # DIV for integer division: 
query I rowsort label-1244
SELECT - 43 DIV - 32 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1244
SELECT - 43 / - 32 AS col1
----
1

query I rowsort
SELECT 14 * 31 AS col2
----
434

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

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

query I rowsort
SELECT DISTINCT + + 51 * + 20
----
1020

onlyif mysql # aggregate syntax: 
query I rowsort label-1248
SELECT COUNT( * ) * - - 45 * - - ( + - 89 ) + - + COUNT( DISTINCT 18 ) AS col2
----
-4006

skipif mysql # not compatible
query I rowsort label-1248
SELECT COUNT ( * ) * - - 45 * - - ( + - 89 ) + - + COUNT ( DISTINCT 18 ) AS col2
----
-4006

onlyif mysql # DIV for integer division: 
query I rowsort label-1249
SELECT 34 - + - 50 * - + 61 + + - 25 * + 62 + - + 98 + 72 DIV 77 col0
----
-4664

skipif mysql # not compatible
query I rowsort label-1249
SELECT 34 - + - 50 * - + 61 + + - 25 * + 62 + - + 98 + 72 / 77 col0
----
-4664

onlyif mysql # DIV for integer division: 
query I rowsort label-1250
SELECT - 61 DIV + 25 + - + 97 AS col0
----
-99

skipif mysql # not compatible
query I rowsort label-1250
SELECT - 61 / + 25 + - + 97 AS col0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-1251
SELECT ALL + 96 + + MAX( - 99 ) * - 87 AS col1
----
8709

skipif mysql # not compatible
query I rowsort label-1251
SELECT ALL + 96 + + MAX ( - 99 ) * - 87 AS col1
----
8709

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1252
SELECT DISTINCT + 60 + + 88 / + + MAX( DISTINCT + 98 ) / - CASE - 34 WHEN 73 THEN - 86 * 28 ELSE NULL END / CAST( NULL AS SIGNED ) + 2
----
NULL

skipif mysql # not compatible
query I rowsort label-1252
SELECT DISTINCT + 60 + + 88 / + + MAX ( DISTINCT + 98 ) / - CASE - 34 WHEN 73 THEN - 86 * 28 ELSE NULL END / CAST ( NULL AS INTEGER ) + 2
----
NULL

query I rowsort
SELECT DISTINCT + 87 * + 51
----
4437

onlyif mysql # aggregate syntax: 
query I rowsort label-1254
SELECT ALL 96 + + 45 - MAX( - 93 ) * ( - 18 ) + - CASE - 50 WHEN + 6 THEN 38 END / + COALESCE ( - 98, 36 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1254
SELECT ALL 96 + + 45 - MAX ( - 93 ) * ( - 18 ) + - CASE - 50 WHEN + 6 THEN 38 END / + COALESCE ( - 98, 36 ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1255
SELECT ALL 55 DIV 46 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1255
SELECT ALL 55 / 46 AS col2
----
1

query II rowsort
SELECT + 87 AS col2, 43
----
87
43

onlyif mysql # aggregate syntax: 
query I rowsort label-1257
SELECT DISTINCT - 15 + - - COUNT( - 6 ) * - + 54 * + ( - 66 ) AS col1
----
3549

skipif mysql # not compatible
query I rowsort label-1257
SELECT DISTINCT - 15 + - - COUNT ( - 6 ) * - + 54 * + ( - 66 ) AS col1
----
3549

onlyif mysql # aggregate syntax: 
query I rowsort label-1258
SELECT DISTINCT MAX( + 5 ) * 1 AS col2
----
5

skipif mysql # not compatible
query I rowsort label-1258
SELECT DISTINCT MAX ( + 5 ) * 1 AS col2
----
5

query I rowsort
SELECT DISTINCT + 51 + + 45 + + 49 * 37 * ( 33 ) col1
----
59925

query I rowsort
SELECT ALL - 97 + - 69
----
-166

onlyif mysql # DIV for integer division: 
query II rowsort label-1261
SELECT ALL + 42 DIV + 1, - 77 * + 84 AS col1
----
42
-6468

skipif mysql # not compatible
query II rowsort label-1261
SELECT ALL + 42 / + 1, - 77 * + 84 AS col1
----
42
-6468

onlyif mysql # aggregate syntax: 
query I rowsort label-1262
SELECT - COUNT( * ) * + 91 * - 76
----
6916

skipif mysql # not compatible
query I rowsort label-1262
SELECT - COUNT ( * ) * + 91 * - 76
----
6916

onlyif mysql # aggregate syntax: 
query I rowsort label-1263
SELECT + 24 + + SUM( ALL + 71 ) * - 23 * + 53 AS col2
----
-86525

skipif mysql # not compatible
query I rowsort label-1263
SELECT + 24 + + SUM ( ALL + 71 ) * - 23 * + 53 AS col2
----
-86525

query I rowsort
SELECT DISTINCT 47 * - - 57 col1
----
2679

onlyif mysql # DIV for integer division: 
query I rowsort label-1265
SELECT ALL 6 - 76 DIV + 93
----
6

skipif mysql # not compatible
query I rowsort label-1265
SELECT ALL 6 - 76 / + 93
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1266
SELECT ALL MAX( DISTINCT + + ( - 14 ) ) - + 21 * - COUNT( * ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-1266
SELECT ALL MAX ( DISTINCT + + ( - 14 ) ) - + 21 * - COUNT ( * ) AS col0
----
7

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

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

query I rowsort
SELECT DISTINCT + 61 * 87 col1
----
5307

query I rowsort
SELECT DISTINCT 11 * + + 88
----
968

query II rowsort
SELECT DISTINCT 24 AS col1, 46 AS col1
----
24
46

onlyif mysql # aggregate syntax: 
query II rowsort label-1271
SELECT - 92, + 53 * - COUNT( * ) * + 35 + - 19 * + 6 * 82 AS col0
----
-92
-11203

skipif mysql # not compatible
query II rowsort label-1271
SELECT - 92, + 53 * - COUNT ( * ) * + 35 + - 19 * + 6 * 82 AS col0
----
-92
-11203

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

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

query I rowsort
SELECT - 97 * - 77
----
7469

query II rowsort
SELECT - 42 AS col1, + 22 + 17
----
-42
39

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

query I rowsort
SELECT + ( + ( - 96 ) ) - + 44 * + 32 col1
----
-1504

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

query II rowsort
SELECT 64, + 28 * - - 67 AS col2
----
64
1876

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1279
SELECT - - CASE - + ( MIN( ALL + CAST( - - CASE - - 90 WHEN 32 * + 73 THEN 32 ELSE 8 END AS SIGNED ) ) ) WHEN - 79 + - 15 * 2 THEN + 34 * CASE COUNT( * ) WHEN 89 THEN + 75 WHEN + 54 * + 50 + - COUNT( + 74 ) / + 29 THEN ( 14 ) ELSE NULL END WHEN NULLIF ( 57, - 4 ) + 58 * 91 THEN MAX( DISTINCT + 92 ) ELSE - CASE ( 33 ) WHEN - 50 THEN NULLIF ( ( - 79 ), CAST( - 83 AS SIGNED ) * 57 ) END * 9 - CAST( + MAX( - 58 ) AS DECIMAL ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1279
SELECT - - CASE - + ( MIN ( ALL + CAST ( - - CASE - - 90 WHEN 32 * + 73 THEN 32 ELSE 8 END AS INTEGER ) ) ) WHEN - 79 + - 15 * 2 THEN + 34 * CASE COUNT ( * ) WHEN 89 THEN + 75 WHEN + 54 * + 50 + - COUNT ( + 74 ) / + 29 THEN ( 14 ) ELSE NULL END WHEN NULLIF ( 57, - 4 ) + 58 * 91 THEN MAX ( DISTINCT + 92 ) ELSE - CASE ( 33 ) WHEN - 50 THEN NULLIF ( ( - 79 ), CAST ( - 83 AS INTEGER ) * 57 ) END * 9 - CAST ( + MAX ( - 58 ) AS REAL ) END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-1280
SELECT DISTINCT 21 AS col0, ( - 95 ) DIV - ( + 15 )
----
21
6

skipif mysql # not compatible
query II rowsort label-1280
SELECT DISTINCT 21 AS col0, ( - 95 ) / - ( + 15 )
----
21
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1281
SELECT ALL 30 * SUM( 87 ) * + 58 + + 7 + 31
----
151418

skipif mysql # not compatible
query I rowsort label-1281
SELECT ALL 30 * SUM ( 87 ) * + 58 + + 7 + 31
----
151418

query I rowsort
SELECT DISTINCT - 6 * 34 + 41 AS col1
----
-163

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1284
SELECT + 18 + NULLIF ( + CAST( NULL AS SIGNED ), NULLIF ( + 32, - COALESCE ( 22, 92 ) * 99 ) ) / 97
----
NULL

skipif mysql # not compatible
query I rowsort label-1284
SELECT + 18 + NULLIF ( + CAST ( NULL AS INTEGER ), NULLIF ( + 32, - COALESCE ( 22, 92 ) * 99 ) ) / 97
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1285
SELECT + ( + 67 ) DIV - 13 - - - 80 * + 86 * SUM( DISTINCT + 88 ) * + 59 - 10
----
-35720975

skipif mysql # not compatible
query I rowsort label-1285
SELECT + ( + 67 ) / - 13 - - - 80 * + 86 * SUM ( DISTINCT + 88 ) * + 59 - 10
----
-35720975

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1287
SELECT - + CAST( 39 AS SIGNED ) DIV + 83 + 19 * - + SUM( ALL - 73 ) + - 18
----
1369

skipif mysql # not compatible
query I rowsort label-1287
SELECT - + CAST ( 39 AS INTEGER ) / + 83 + 19 * - + SUM ( ALL - 73 ) + - 18
----
1369

query II rowsort
SELECT 44, 12 + 16 + - 22 * 79 AS col0
----
44
-1710

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1289
SELECT ALL + - CAST( NULL AS SIGNED ) * 83 + - 48 * + 25 * - 12 + + + 44 * SUM( - 92 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1289
SELECT ALL + - CAST ( NULL AS INTEGER ) * 83 + - 48 * + 25 * - 12 + + + 44 * SUM ( - 92 ) AS col1
----
NULL

query I rowsort
SELECT - 78 * - 95 + - 33 AS col0
----
7377

onlyif mysql # DIV for integer division: 
query II rowsort label-1291
SELECT + 17 AS col1, + 71 DIV + + 80 AS col2
----
17
0

skipif mysql # not compatible
query II rowsort label-1291
SELECT + 17 AS col1, + 71 / + + 80 AS col2
----
17
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1292
SELECT - + COUNT( * ) DIV - - 62 * - + 30 + - ( + 77 ) AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-1292
SELECT - + COUNT ( * ) / - - 62 * - + 30 + - ( + 77 ) AS col1
----
-77

query I rowsort
SELECT ALL + 45 * 92 * ( + 88 ) + 54 AS col2
----
364374

onlyif mysql # aggregate syntax: 
query I rowsort label-1294
SELECT ALL + COALESCE ( + 47, COUNT( * ) * + 2, + - NULLIF ( 51, - COUNT( * ) ) * 49 ) AS col2
----
47

skipif mysql # not compatible
query I rowsort label-1294
SELECT ALL + COALESCE ( + 47, COUNT ( * ) * + 2, + - NULLIF ( 51, - COUNT ( * ) ) * 49 ) AS col2
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1295
SELECT ALL + 78 * - COUNT( * ) + ( + 58 ) * - ( 92 ) AS col1
----
-5414

skipif mysql # not compatible
query I rowsort label-1295
SELECT ALL + 78 * - COUNT ( * ) + ( + 58 ) * - ( 92 ) AS col1
----
-5414

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1296
SELECT ALL 88 * + 76 * - 2 + + - COALESCE ( + + 81, 81 ) * + CASE 70 WHEN + COUNT( * ) * 17 - - ( 43 ) * + 4 THEN CASE MIN( 90 ) WHEN - 65 / CASE + 53 WHEN COUNT( * ) THEN NULL WHEN 53 * + 93 THEN - COALESCE ( 71, - 17, 49 ) ELSE NULL END THEN - 74 ELSE - 84 END + 75 WHEN 0 + 31 * + 33 THEN COUNT( * ) * CAST( NULL AS DECIMAL ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1296
SELECT ALL 88 * + 76 * - 2 + + - COALESCE ( + + 81, 81 ) * + CASE 70 WHEN + COUNT ( * ) * 17 - - ( 43 ) * + 4 THEN CASE MIN ( 90 ) WHEN - 65 / CASE + 53 WHEN COUNT ( * ) THEN NULL WHEN 53 * + 93 THEN - COALESCE ( 71, - 17, 49 ) ELSE NULL END THEN - 74 ELSE - 84 END + 75 WHEN 0 + 31 * + 33 THEN COUNT ( * ) * CAST ( NULL AS REAL ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1297
SELECT NULLIF ( + COUNT( * ), + AVG ( DISTINCT + 20 ) )
----
1

skipif mysql # not compatible
query I rowsort label-1297
SELECT NULLIF ( + COUNT ( * ), + AVG ( DISTINCT + 20 ) )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1298
SELECT DISTINCT - ( + CAST( NULL AS SIGNED ) ) * + - 2 * - 31 + + - 21 + + - 81
----
NULL

skipif mysql # not compatible
query I rowsort label-1298
SELECT DISTINCT - ( + CAST ( NULL AS INTEGER ) ) * + - 2 * - 31 + + - 21 + + - 81
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1299
SELECT COALESCE ( SUM( 38 ), - 24 + + 27 - + 60 + + + ( + 7 ) DIV 86 ) AS col2
----
38

skipif mysql # not compatible
query I rowsort label-1299
SELECT COALESCE ( SUM ( 38 ), - 24 + + 27 - + 60 + + + ( + 7 ) / 86 ) AS col2
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-1300
SELECT 65 * + - COUNT( * ) * - 98 * + 85 - - 72 + + 41
----
541563

skipif mysql # not compatible
query I rowsort label-1300
SELECT 65 * + - COUNT ( * ) * - 98 * + 85 - - 72 + + 41
----
541563

query I rowsort
SELECT - NULLIF ( - - 33, - + 72 ) * + - 11
----
363

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

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

query I rowsort
SELECT ALL + 38 * - 67 col2
----
-2546

query I rowsort
SELECT - 24 * + + 4 * 51 AS col2
----
-4896

query I rowsort
SELECT ALL 11 * - - 39 - - 46
----
475

query I rowsort
SELECT - 71 * + - 68 AS col1
----
4828

query I rowsort
SELECT ALL ( + CASE - + 1 WHEN + 40 * - ( - 22 ) + - 27 THEN NULL ELSE + 53 * + 43 END )
----
2279

query I rowsort
SELECT + - 93 * + - 12 AS col1
----
1116

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

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

query I rowsort
SELECT ALL - + 14 * + + 49 col1
----
-686

query I rowsort
SELECT - + 24 + - + 97 AS col1
----
-121

query I rowsort
SELECT - - 49 + + + 84
----
133

query I rowsort
SELECT DISTINCT + - 85 * - 32
----
2720

onlyif mysql # aggregate syntax: 
query I rowsort label-1314
SELECT + - 99 * - 25 + - 55 + + ( + + NULLIF ( 97, - + 38 + 55 ) ) + 80 * + COUNT( * ) * 63
----
7557

skipif mysql # not compatible
query I rowsort label-1314
SELECT + - 99 * - 25 + - 55 + + ( + + NULLIF ( 97, - + 38 + 55 ) ) + 80 * + COUNT ( * ) * 63
----
7557

query I rowsort
SELECT ALL + 94 + - 82 AS col1
----
12

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1317
SELECT + CASE + COUNT( * ) WHEN + 27 THEN - 44 WHEN + - COUNT( * ) * - ( 56 ) / COUNT( * ) + COUNT( * ) * 50 THEN NULL ELSE NULL END + - 54 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1317
SELECT + CASE + COUNT ( * ) WHEN + 27 THEN - 44 WHEN + - COUNT ( * ) * - ( 56 ) / COUNT ( * ) + COUNT ( * ) * 50 THEN NULL ELSE NULL END + - 54 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1318
SELECT ALL + - 10 * - CASE - - 57 WHEN + 42 + + 41 + SUM( - 89 ) THEN ( - 26 ) END * 28 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1318
SELECT ALL + - 10 * - CASE - - 57 WHEN + 42 + + 41 + SUM ( - 89 ) THEN ( - 26 ) END * 28 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1319
SELECT + 72 + + CASE - 88 WHEN - 20 THEN + SUM( 38 ) ELSE - COALESCE ( + 79, 73 ) END
----
-7

skipif mysql # not compatible
query I rowsort label-1319
SELECT + 72 + + CASE - 88 WHEN - 20 THEN + SUM ( 38 ) ELSE - COALESCE ( + 79, 73 ) END
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1320
SELECT ALL - 2 + 80 col1, 6 * - CAST( 21 AS SIGNED ) AS col2
----
78
-126

skipif mysql # not compatible
query II rowsort label-1320
SELECT ALL - 2 + 80 col1, 6 * - CAST ( 21 AS INTEGER ) AS col2
----
78
-126

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1321
SELECT - CASE - + CAST( - 35 AS SIGNED ) WHEN - COUNT( * ) * - - 98 THEN - + 74 + COUNT( * ) ELSE + 4 END AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-1321
SELECT - CASE - + CAST ( - 35 AS INTEGER ) WHEN - COUNT ( * ) * - - 98 THEN - + 74 + COUNT ( * ) ELSE + 4 END AS col1
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-1322
SELECT - MIN( 73 )
----
-73

skipif mysql # not compatible
query I rowsort label-1322
SELECT - MIN ( 73 )
----
-73

onlyif mysql # aggregate syntax: 
query II rowsort label-1323
SELECT ALL ( + - 37 ) AS col0, COUNT( ALL 3 ) * - 19 + + ( + 35 ) AS col2
----
-37
16

skipif mysql # not compatible
query II rowsort label-1323
SELECT ALL ( + - 37 ) AS col0, COUNT ( ALL 3 ) * - 19 + + ( + 35 ) AS col2
----
-37
16

onlyif mysql # aggregate syntax: 
query I rowsort label-1324
SELECT ALL - MIN( - 13 ) + - + 63 + + - 25 + - - 47 * 56 + + COUNT( * ) AS col2
----
2558

skipif mysql # not compatible
query I rowsort label-1324
SELECT ALL - MIN ( - 13 ) + - + 63 + + - 25 + - - 47 * 56 + + COUNT ( * ) AS col2
----
2558

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1325
SELECT CAST( - + 29 AS SIGNED ) AS col0, 49 AS col2
----
-29
49

skipif mysql # not compatible
query II rowsort label-1325
SELECT CAST ( - + 29 AS INTEGER ) AS col0, 49 AS col2
----
-29
49

query I rowsort
SELECT + 47 + 89 AS col2
----
136

query I rowsort
SELECT + + 73 * + 83
----
6059

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1328
SELECT ALL + NULLIF ( 20, - - 50 ) DIV - + 70 + + 80 * + COUNT( * ) + - COALESCE ( 73, ( + 74 ) DIV COUNT( * ) )
----
7

skipif mysql # not compatible
query I rowsort label-1328
SELECT ALL + NULLIF ( 20, - - 50 ) / - + 70 + + 80 * + COUNT ( * ) + - COALESCE ( 73, ( + 74 ) / COUNT ( * ) )
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1329
SELECT + CAST( - MIN( DISTINCT - 57 ) AS SIGNED ) AS col1, 73 + + - 3 col1
----
57
70

skipif mysql # not compatible
query II rowsort label-1329
SELECT + CAST ( - MIN ( DISTINCT - 57 ) AS INTEGER ) AS col1, 73 + + - 3 col1
----
57
70

query I rowsort
SELECT DISTINCT 26 * - - 7 AS col0
----
182

query I rowsort
SELECT + 37 * - + 67 AS col1
----
-2479

query I rowsort
SELECT ALL 43 * 71 col0
----
3053

query I rowsort
SELECT ALL 19 * + - ( - 44 ) AS col0
----
836

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1334
SELECT CAST( + - NULLIF ( - + 6, - NULLIF ( - - 39, - - 48 + - 33 ) ) AS SIGNED ) - 27 + + 4
----
-17

skipif mysql # not compatible
query I rowsort label-1334
SELECT CAST ( + - NULLIF ( - + 6, - NULLIF ( - - 39, - - 48 + - 33 ) ) AS INTEGER ) - 27 + + 4
----
-17

query I rowsort
SELECT ALL 83 * + + 13
----
1079

query I rowsort
SELECT 93 * 69
----
6417

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1338
SELECT DISTINCT - 35 AS col2, - COUNT( * ) * - 19 + - 36
----
-35
-17

skipif mysql # not compatible
query II rowsort label-1338
SELECT DISTINCT - 35 AS col2, - COUNT ( * ) * - 19 + - 36
----
-35
-17

query I rowsort
SELECT ALL - 16 * - - 84 * + 78 AS col1
----
-104832

query I rowsort
SELECT 19 * 83
----
1577

query II rowsort
SELECT - 38 AS col2, - 6 AS col1
----
-38
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1342
SELECT - 63 + 97 - - 13 AS col1, - 97 * + 90 DIV - COUNT( * )
----
47
8730

skipif mysql # not compatible
query II rowsort label-1342
SELECT - 63 + 97 - - 13 AS col1, - 97 * + 90 / - COUNT ( * )
----
47
8730

onlyif mysql # aggregate syntax: 
query II rowsort label-1343
SELECT ALL + 7, ( ( - CASE 68 WHEN + 72 * + COUNT( * ) - - - 41 + - 15 THEN + 86 ELSE + 45 END ) ) + 84 AS col1
----
7
39

skipif mysql # not compatible
query II rowsort label-1343
SELECT ALL + 7, ( ( - CASE 68 WHEN + 72 * + COUNT ( * ) - - - 41 + - 15 THEN + 86 ELSE + 45 END ) ) + 84 AS col1
----
7
39

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1344
SELECT ALL - 22 AS col0, - CAST( NULL AS DECIMAL ) * + 10 AS col1
----
-22
NULL

skipif mysql # not compatible
query II rowsort label-1344
SELECT ALL - 22 AS col0, - CAST ( NULL AS REAL ) * + 10 AS col1
----
-22
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1345
SELECT NULLIF ( - - 98, - CASE + - 1 WHEN NULLIF ( + 49, + 5 ) + 51 THEN NULL WHEN CASE COALESCE ( ( - AVG ( + 47 ) ), + 94 ) WHEN + 35 THEN + 35 - - 79 WHEN 73 * - ( + 69 ) - + 1 THEN - COUNT( * ) * 92 END THEN COUNT( * ) END * 82 - 34 )
----
98

skipif mysql # not compatible
query I rowsort label-1345
SELECT NULLIF ( - - 98, - CASE + - 1 WHEN NULLIF ( + 49, + 5 ) + 51 THEN NULL WHEN CASE COALESCE ( ( - AVG ( + 47 ) ), + 94 ) WHEN + 35 THEN + 35 - - 79 WHEN 73 * - ( + 69 ) - + 1 THEN - COUNT ( * ) * 92 END THEN COUNT ( * ) END * 82 - 34 )
----
98

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1347
SELECT DISTINCT + + COALESCE ( + + 17, + + CASE + 31 WHEN 28 THEN NULL ELSE 78 + + 67 + ( CAST( NULL AS SIGNED ) ) END ) + + CAST( NULL AS SIGNED ) * + 47
----
NULL

skipif mysql # not compatible
query I rowsort label-1347
SELECT DISTINCT + + COALESCE ( + + 17, + + CASE + 31 WHEN 28 THEN NULL ELSE 78 + + 67 + ( CAST ( NULL AS INTEGER ) ) END ) + + CAST ( NULL AS INTEGER ) * + 47
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1348
SELECT ALL - CAST( NULL AS SIGNED ) + + 0 + 65 + - 6 * - 14
----
NULL

skipif mysql # not compatible
query I rowsort label-1348
SELECT ALL - CAST ( NULL AS INTEGER ) + + 0 + 65 + - 6 * - 14
----
NULL

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

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

query II rowsort
SELECT DISTINCT + 15 + + ( - + 67 ) AS col1, + 13 + + NULLIF ( + 99, - 70 * - - 62 )
----
-52
112

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1351
SELECT NULLIF ( COALESCE ( - 43, + 45 DIV CAST( NULL AS SIGNED ) * 77 + + - 56 ), - 96 + 30 DIV + 63 ) - - 7 AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-1351
SELECT NULLIF ( COALESCE ( - 43, + 45 / CAST ( NULL AS INTEGER ) * 77 + + - 56 ), - 96 + 30 / + 63 ) - - 7 AS col2
----
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-1352
SELECT - MIN( DISTINCT - - 16 ) * + + 52 col2, + 32 + + 49
----
-832
81

skipif mysql # not compatible
query II rowsort label-1352
SELECT - MIN ( DISTINCT - - 16 ) * + + 52 col2, + 32 + + 49
----
-832
81

onlyif mysql # aggregate syntax: 
query II rowsort label-1353
SELECT ALL - COUNT( - 38 ) * + 54 + + 64 AS col2, + 48
----
10
48

skipif mysql # not compatible
query II rowsort label-1353
SELECT ALL - COUNT ( - 38 ) * + 54 + + 64 AS col2, + 48
----
10
48

onlyif mysql # aggregate syntax: 
query I rowsort label-1354
SELECT - 36 + + COALESCE ( + - 41, - COUNT( ALL - 47 ), 40 ) AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-1354
SELECT - 36 + + COALESCE ( + - 41, - COUNT ( ALL - 47 ), 40 ) AS col0
----
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-1355
SELECT - + COUNT( * ), - SUM( - + 66 ) - 77 AS col1
----
-1
-11

skipif mysql # not compatible
query II rowsort label-1355
SELECT - + COUNT ( * ), - SUM ( - + 66 ) - 77 AS col1
----
-1
-11

query I rowsort
SELECT ALL - 21 + + 33 AS col1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-1357
SELECT DISTINCT + 63 - + MAX( ALL 93 )
----
-30

skipif mysql # not compatible
query I rowsort label-1357
SELECT DISTINCT + 63 - + MAX ( ALL 93 )
----
-30

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

skipif mysql # not compatible
query I rowsort label-1358
SELECT ALL - COUNT ( DISTINCT + 72 ) AS col2
----
-1

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

skipif mysql # not compatible
query I rowsort label-1359
SELECT ALL ( + CAST ( - 57 AS INTEGER ) ) - - ( 69 )
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1360
SELECT DISTINCT - 56 * ( - COALESCE ( 62, - + CAST( NULL AS SIGNED ) * + 17 * + 29 ) ) * 45 AS col1
----
156240

skipif mysql # not compatible
query I rowsort label-1360
SELECT DISTINCT - 56 * ( - COALESCE ( 62, - + CAST ( NULL AS INTEGER ) * + 17 * + 29 ) ) * 45 AS col1
----
156240

query I rowsort
SELECT 43 + - - 44
----
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1362
SELECT 83 DIV - 43 - SUM( - - 93 ) * - 81 AS col1, 14 * + 94 AS col2
----
7532
1316

skipif mysql # not compatible
query II rowsort label-1362
SELECT 83 / - 43 - SUM ( - - 93 ) * - 81 AS col1, 14 * + 94 AS col2
----
7532
1316

query I rowsort
SELECT 74 * + 63 * - + 25 AS col1
----
-116550

onlyif mysql # aggregate syntax: 
query I rowsort label-1364
SELECT ALL SUM( ALL 77 ) * + + 31 + + - ( + + 44 ) col2
----
2343

skipif mysql # not compatible
query I rowsort label-1364
SELECT ALL SUM ( ALL 77 ) * + + 31 + + - ( + + 44 ) col2
----
2343

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

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

query I rowsort
SELECT - 66 * + + 43 + - 27 + + - 82
----
-2947

onlyif mysql # aggregate syntax: 
query I rowsort label-1367
SELECT ALL COUNT( * ) + 87 + + MAX( + 57 )
----
145

skipif mysql # not compatible
query I rowsort label-1367
SELECT ALL COUNT ( * ) + 87 + + MAX ( + 57 )
----
145

query I rowsort
SELECT + 28 * 55 + 5 + + 11
----
1556

query II rowsort
SELECT 28 * - - 70 AS col1, - ( 37 )
----
1960
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-1370
SELECT ( + 97 ) + - 92 + - COUNT( * ) AS col2
----
4

skipif mysql # not compatible
query I rowsort label-1370
SELECT ( + 97 ) + - 92 + - COUNT ( * ) AS col2
----
4

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

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

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

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

query I rowsort
SELECT ALL + + 47 + + 56 * 21
----
1223

query I rowsort
SELECT + 27 - 85 AS col0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-1375
SELECT + 71 * + - COUNT( * ) + + 97 - + + 37 * + 20 + + 86 * - 36 * 11 * 19 * - 6
----
3881670

skipif mysql # not compatible
query I rowsort label-1375
SELECT + 71 * + - COUNT ( * ) + + 97 - + + 37 * + 20 + + 86 * - 36 * 11 * 19 * - 6
----
3881670

query I rowsort
SELECT 58 + - 66 AS col2
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-1377
SELECT - 54 + 36 + 59 + + ( COALESCE ( - ( - COUNT( * ) ), - 81, - 58 + 68 ) ) * 23 * 11 * - 35
----
-8814

skipif mysql # not compatible
query I rowsort label-1377
SELECT - 54 + 36 + 59 + + ( COALESCE ( - ( - COUNT ( * ) ), - 81, - 58 + 68 ) ) * 23 * 11 * - 35
----
-8814

query I rowsort
SELECT ALL + - 55 + + - 27 AS col0
----
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-1379
SELECT - 93 + - 26 * 55 DIV - 55 AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-1379
SELECT - 93 + - 26 * 55 / - 55 AS col1
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-1380
SELECT 37 + + 98 + + COUNT( * )
----
136

skipif mysql # not compatible
query I rowsort label-1380
SELECT 37 + + 98 + + COUNT ( * )
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-1381
SELECT ALL + - COALESCE ( ( - 97 ), - MAX( ALL + 8 ) ) * - - 4 AS col1
----
388

skipif mysql # not compatible
query I rowsort label-1381
SELECT ALL + - COALESCE ( ( - 97 ), - MAX ( ALL + 8 ) ) * - - 4 AS col1
----
388

query I rowsort
SELECT DISTINCT + 84 * 94
----
7896

query I rowsort
SELECT ALL - 25 - - ( - + 69 ) AS col1
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-1384
SELECT - MAX( - - 76 )
----
-76

skipif mysql # not compatible
query I rowsort label-1384
SELECT - MAX ( - - 76 )
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-1385
SELECT - + COUNT( ALL 10 ) + + + 44 - ( + - 28 ) / COUNT( * ) * - COUNT( * ) - SUM( ALL - + 56 ) + + SUM( 44 ) / - ( CASE - 74 WHEN AVG ( + ( - 58 ) ) THEN 95 + 93 * 1 END * 80 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1385
SELECT - + COUNT ( ALL 10 ) + + + 44 - ( + - 28 ) / COUNT ( * ) * - COUNT ( * ) - SUM ( ALL - + 56 ) + + SUM ( 44 ) / - ( CASE - 74 WHEN AVG ( + ( - 58 ) ) THEN 95 + 93 * 1 END * 80 ) col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1387
SELECT - ( + 67 ) * + + COUNT( ALL + 94 )
----
-67

skipif mysql # not compatible
query I rowsort label-1387
SELECT - ( + 67 ) * + + COUNT ( ALL + 94 )
----
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-1388
SELECT DISTINCT + 6 DIV + 99 * + + 93 col2
----
0

skipif mysql # not compatible
query I rowsort label-1388
SELECT DISTINCT + 6 / + 99 * + + 93 col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1389
SELECT - 2 * NULLIF ( CAST( NULL AS SIGNED ), - ( + 46 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1389
SELECT - 2 * NULLIF ( CAST ( NULL AS INTEGER ), - ( + 46 ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1390
SELECT ALL + MIN( + ( + - 66 ) ) * NULLIF ( CAST( NULL AS SIGNED ), 3 - - 93 ) * - ( - + 38 ) / + 61 + - 42 + - 31 * + 97 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1390
SELECT ALL + MIN ( + ( + - 66 ) ) * NULLIF ( CAST ( NULL AS INTEGER ), 3 - - 93 ) * - ( - + 38 ) / + 61 + - 42 + - 31 * + 97 col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1391
SELECT DISTINCT + 6 DIV + ( 99 )
----
0

skipif mysql # not compatible
query I rowsort label-1391
SELECT DISTINCT + 6 / + ( 99 )
----
0

query I rowsort
SELECT DISTINCT - 34 * 1 AS col2
----
-34

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1394
SELECT - 24 DIV 15 * + + 33 DIV - - 81 + + 17
----
17

skipif mysql # not compatible
query I rowsort label-1394
SELECT - 24 / 15 * + + 33 / - - 81 + + 17
----
17

query I rowsort
SELECT DISTINCT 37 * 76 * + 90 + + 12 AS col0
----
253092

onlyif mysql # aggregate syntax: 
query I rowsort label-1396
SELECT + 18 + + COUNT( ( - 21 ) )
----
19

skipif mysql # not compatible
query I rowsort label-1396
SELECT + 18 + + COUNT ( ( - 21 ) )
----
19

query I rowsort
SELECT 7 * + - 97 * + - 5 + - 90
----
3305

onlyif mysql # aggregate syntax: 
query I rowsort label-1398
SELECT DISTINCT - SUM( + 1 ) * - + 9 + - 76
----
-67

skipif mysql # not compatible
query I rowsort label-1398
SELECT DISTINCT - SUM ( + 1 ) * - + 9 + - 76
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-1399
SELECT ALL + NULLIF ( + - NULLIF ( + 83, NULLIF ( COALESCE ( + SUM( + 38 ), 59 * - - 81 ), + ( ( - COUNT( * ) ) ) ) * - SUM( ALL 76 ) ), - 66 * - ( - COUNT( * ) ) ) * 45 + + 13 AS col0
----
-3722

skipif mysql # not compatible
query I rowsort label-1399
SELECT ALL + NULLIF ( + - NULLIF ( + 83, NULLIF ( COALESCE ( + SUM ( + 38 ), 59 * - - 81 ), + ( ( - COUNT ( * ) ) ) ) * - SUM ( ALL 76 ) ), - 66 * - ( - COUNT ( * ) ) ) * 45 + + 13 AS col0
----
-3722

onlyif mysql # aggregate syntax: 
query I rowsort label-1400
SELECT + MIN( DISTINCT + + 21 ) + 18
----
39

skipif mysql # not compatible
query I rowsort label-1400
SELECT + MIN ( DISTINCT + + 21 ) + 18
----
39

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

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

query I rowsort
SELECT ALL - + 88 * + + 50 * + - 38 + ( + 48 ) AS col0
----
167248

query I rowsort
SELECT + 64 * + 86
----
5504

onlyif mysql # aggregate syntax: 
query I rowsort label-1404
SELECT ALL - 87 * + NULLIF ( + COUNT( * ), - 57 * - 80 ) * - 13 + - - 55 + - MAX( 48 )
----
1138

skipif mysql # not compatible
query I rowsort label-1404
SELECT ALL - 87 * + NULLIF ( + COUNT ( * ), - 57 * - 80 ) * - 13 + - - 55 + - MAX ( 48 )
----
1138

onlyif mysql # aggregate syntax: 
query I rowsort label-1405
SELECT DISTINCT + MAX( DISTINCT - - 25 ) * - 93 * - + 67 + - + 7 * 11 * + 40 AS col2
----
152695

skipif mysql # not compatible
query I rowsort label-1405
SELECT DISTINCT + MAX ( DISTINCT - - 25 ) * - 93 * - + 67 + - + 7 * 11 * + 40 AS col2
----
152695

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1406
SELECT + CASE + 34 WHEN - 67 THEN COALESCE ( - - CAST( 18 AS SIGNED ), - 58 * + 3 + - - 58 + - + ( + 21 ) + - COUNT( * ) * + CASE + 3 * 75 + 92 WHEN - COUNT( * ) THEN - 33 + COUNT( * ) WHEN 74 THEN NULL END + + NULLIF ( 51, + 26 ) ) + + 95 WHEN + MIN( 78 ) + 49 THEN NULL ELSE 43 END * - 43
----
-1849

skipif mysql # not compatible
query I rowsort label-1406
SELECT + CASE + 34 WHEN - 67 THEN COALESCE ( - - CAST ( 18 AS INTEGER ), - 58 * + 3 + - - 58 + - + ( + 21 ) + - COUNT ( * ) * + CASE + 3 * 75 + 92 WHEN - COUNT ( * ) THEN - 33 + COUNT ( * ) WHEN 74 THEN NULL END + + NULLIF ( 51, + 26 ) ) + + 95 WHEN + MIN ( 78 ) + 49 THEN NULL ELSE 43 END * - 43
----
-1849

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1407
SELECT + - 35 DIV COUNT( * ) * 73 * - 92 AS col0
----
235060

skipif mysql # not compatible
query I rowsort label-1407
SELECT + - 35 / COUNT ( * ) * 73 * - 92 AS col0
----
235060

onlyif mysql # DIV for integer division: 
query I rowsort label-1408
SELECT DISTINCT 40 DIV 61
----
0

skipif mysql # not compatible
query I rowsort label-1408
SELECT DISTINCT 40 / 61
----
0

query II rowsort
SELECT DISTINCT 85, - ( + 37 ) AS col2
----
85
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-1410
SELECT + - 85 * NULLIF ( + 73, 96 + + - COUNT( * ) )
----
-6205

skipif mysql # not compatible
query I rowsort label-1410
SELECT + - 85 * NULLIF ( + 73, 96 + + - COUNT ( * ) )
----
-6205

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

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

query I rowsort
SELECT ALL CASE + - 30 WHEN - 94 + - 13 THEN 37 + - - 58 WHEN + 24 + 77 + + - ( - - 23 ) THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1413
SELECT + 85 + + - 57 - 92 + 66 * - COALESCE ( + 47, - - 90 * + 71 * + CASE + 47 WHEN 78 THEN 99 WHEN 73 THEN - 15 * 47 + - COUNT( * ) ELSE NULL END + - NULLIF ( 3, + 65 ) * + 55, + 80 ) * + 12
----
-37288

skipif mysql # not compatible
query I rowsort label-1413
SELECT + 85 + + - 57 - 92 + 66 * - COALESCE ( + 47, - - 90 * + 71 * + CASE + 47 WHEN 78 THEN 99 WHEN 73 THEN - 15 * 47 + - COUNT ( * ) ELSE NULL END + - NULLIF ( 3, + 65 ) * + 55, + 80 ) * + 12
----
-37288

query I rowsort
SELECT + 98 * + - 78 + - 87 + - 61 + 61
----
-7731

query I rowsort
SELECT ALL 38 * 36
----
1368

query I rowsort
SELECT + - 33 - + 49
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1417
SELECT - - CAST( NULL AS SIGNED ) * 6 * + ( + - 90 ) - + 77 + - + 89 + NULLIF ( 70, - + ( - + CAST( NULL AS SIGNED ) ) * ( + 90 / - 14 ) ) + 47 * 81 / 89 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1417
SELECT - - CAST ( NULL AS INTEGER ) * 6 * + ( + - 90 ) - + 77 + - + 89 + NULLIF ( 70, - + ( - + CAST ( NULL AS INTEGER ) ) * ( + 90 / - 14 ) ) + 47 * 81 / 89 AS col1
----
NULL

query I rowsort
SELECT ALL + 11 * - - 5
----
55

query I rowsort
SELECT DISTINCT 26 * 87 AS col1
----
2262

onlyif mysql # aggregate syntax: 
query II rowsort label-1420
SELECT ALL NULLIF ( - 69, MAX( + 6 ) ), - 33 AS col1
----
-69
-33

skipif mysql # not compatible
query II rowsort label-1420
SELECT ALL NULLIF ( - 69, MAX ( + 6 ) ), - 33 AS col1
----
-69
-33

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1421
SELECT - CAST( NULL AS DECIMAL ), 72 col0
----
NULL
72

skipif mysql # not compatible
query II rowsort label-1421
SELECT - CAST ( NULL AS REAL ), 72 col0
----
NULL
72

query I rowsort
SELECT + ( 64 ) + - 91 + + ( - 29 ) col2
----
-56

query I rowsort
SELECT ALL 61 * + 75 AS col0
----
4575

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1424
SELECT - ( 47 ) DIV + + 59 - MIN( - NULLIF ( + + 27, + 0 ) ) + - 95 * - - COUNT( * ) * + + 98 AS col2
----
-9283

skipif mysql # not compatible
query I rowsort label-1424
SELECT - ( 47 ) / + + 59 - MIN ( - NULLIF ( + + 27, + 0 ) ) + - 95 * - - COUNT ( * ) * + + 98 AS col2
----
-9283

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1426
SELECT ALL ( + SUM( ALL + 57 ) ) AS col2
----
57

skipif mysql # not compatible
query I rowsort label-1426
SELECT ALL ( + SUM ( ALL + 57 ) ) AS col2
----
57

query I rowsort
SELECT + ( + 48 ) + + - ( 37 ) AS col0
----
11

query I rowsort
SELECT - 25 - 96 + - 75 AS col2
----
-196

onlyif mysql # DIV for integer division: 
query I rowsort label-1429
SELECT + ( + 22 ) DIV + - 65 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1429
SELECT + ( + 22 ) / + - 65 AS col0
----
0

query I rowsort
SELECT - 42 * 70
----
-2940

query I rowsort
SELECT - 18 * 75 * + ( + + 2 ) AS col0
----
-2700

onlyif mysql # DIV for integer division: 
query I rowsort label-1432
SELECT - 6 DIV + 23 * - 4
----
0

skipif mysql # not compatible
query I rowsort label-1432
SELECT - 6 / + 23 * - 4
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1433
SELECT DISTINCT 1 DIV 51 + 87
----
87

skipif mysql # not compatible
query I rowsort label-1433
SELECT DISTINCT 1 / 51 + 87
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-1434
SELECT ALL + 28 DIV - 21 + + - ( + 75 ) DIV - 2
----
36

skipif mysql # not compatible
query I rowsort label-1434
SELECT ALL + 28 / - 21 + + - ( + 75 ) / - 2
----
36

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

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

query I rowsort
SELECT ALL + 86 * - 7 AS col1
----
-602

onlyif mysql # DIV for integer division: 
query I rowsort label-1437
SELECT DISTINCT + 84 DIV + 89 * 48 + - ( + + ( + 95 ) )
----
-95

skipif mysql # not compatible
query I rowsort label-1437
SELECT DISTINCT + 84 / + 89 * 48 + - ( + + ( + 95 ) )
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-1438
SELECT 41 * + CASE - + 39 WHEN - + ( + - 92 ) + + 69 * + MIN( ALL - 53 ) * - 52 THEN - 14 ELSE - 37 END + + NULLIF ( + 43, + 16 ) + + 67 AS col2
----
-1407

skipif mysql # not compatible
query I rowsort label-1438
SELECT 41 * + CASE - + 39 WHEN - + ( + - 92 ) + + 69 * + MIN ( ALL - 53 ) * - 52 THEN - 14 ELSE - 37 END + + NULLIF ( + 43, + 16 ) + + 67 AS col2
----
-1407

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1439
SELECT ALL - - 11 * CAST( NULL AS SIGNED ) * - 18 + 86 * - 90 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1439
SELECT ALL - - 11 * CAST ( NULL AS INTEGER ) * - 18 + 86 * - 90 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1440
SELECT ALL + - SUM( - 66 ) col1
----
66

skipif mysql # not compatible
query I rowsort label-1440
SELECT ALL + - SUM ( - 66 ) col1
----
66

query II rowsort
SELECT 44 col1, 89 AS col1
----
44
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1442
SELECT + CASE 62 WHEN - COALESCE ( + 95, COUNT( CAST( NULL AS SIGNED ) ) ) * - + 50 THEN ( + 8 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1442
SELECT + CASE 62 WHEN - COALESCE ( + 95, COUNT ( CAST ( NULL AS INTEGER ) ) ) * - + 50 THEN ( + 8 ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1443
SELECT - - 39 + + + CAST( COUNT( * ) AS SIGNED ) * + 54
----
93

skipif mysql # not compatible
query I rowsort label-1443
SELECT - - 39 + + + CAST ( COUNT ( * ) AS INTEGER ) * + 54
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1444
SELECT CASE 95 WHEN 21 * - 22 THEN NULL WHEN - - ( + COUNT( * ) ) THEN - CASE + + 6 WHEN - + CASE 14 WHEN - CASE - COALESCE ( 70, + 8 ) WHEN - 71 * 96 THEN 89 * - CAST( 25 AS SIGNED ) ELSE NULL END THEN - 7 END * COUNT( * ) THEN NULL WHEN - 38 * 43 THEN + 94 * + ( MIN( - ( CASE + 13 WHEN - 18 + + 61 THEN NULL ELSE 57 END ) ) ) + - ( - 71 ) * - 23 END * 63 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1444
SELECT CASE 95 WHEN 21 * - 22 THEN NULL WHEN - - ( + COUNT ( * ) ) THEN - CASE + + 6 WHEN - + CASE 14 WHEN - CASE - COALESCE ( 70, + 8 ) WHEN - 71 * 96 THEN 89 * - CAST ( 25 AS INTEGER ) ELSE NULL END THEN - 7 END * COUNT ( * ) THEN NULL WHEN - 38 * 43 THEN + 94 * + ( MIN ( - ( CASE + 13 WHEN - 18 + + 61 THEN NULL ELSE 57 END ) ) ) + - ( - 71 ) * - 23 END * 63 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1445
SELECT ALL + COUNT( * ) * + COALESCE ( - 13, + 8, - - 90 - CAST( - 30 AS SIGNED ) ) - - 19
----
6

skipif mysql # not compatible
query I rowsort label-1445
SELECT ALL + COUNT ( * ) * + COALESCE ( - 13, + 8, - - 90 - CAST ( - 30 AS INTEGER ) ) - - 19
----
6

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

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

query I rowsort
SELECT + 16 * 76
----
1216

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1448
SELECT ALL - NULLIF ( - 87, - - COUNT( * ) ) DIV + 28 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-1448
SELECT ALL - NULLIF ( - 87, - - COUNT ( * ) ) / + 28 AS col0
----
3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1449
SELECT DISTINCT + COUNT( ALL + - 52 ), CAST( NULL AS DECIMAL ) AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-1449
SELECT DISTINCT + COUNT ( ALL + - 52 ), CAST ( NULL AS REAL ) AS col1
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1450
SELECT - SUM( - 22 ) * + + COUNT( * ) AS col1
----
22

skipif mysql # not compatible
query I rowsort label-1450
SELECT - SUM ( - 22 ) * + + COUNT ( * ) AS col1
----
22

query I rowsort
SELECT 36 + - 69 * 71 AS col1
----
-4863

onlyif mysql # aggregate syntax: 
query I rowsort label-1452
SELECT + 91 + - 42 + + SUM( DISTINCT - - 57 )
----
106

skipif mysql # not compatible
query I rowsort label-1452
SELECT + 91 + - 42 + + SUM ( DISTINCT - - 57 )
----
106

onlyif mysql # aggregate syntax: 
query II rowsort label-1453
SELECT + COUNT( DISTINCT - - 81 ), 21 AS col2
----
1
21

skipif mysql # not compatible
query II rowsort label-1453
SELECT + COUNT ( DISTINCT - - 81 ), 21 AS col2
----
1
21

query I rowsort
SELECT DISTINCT - ( - 1 ) * 65 * + - 97
----
-6305

onlyif mysql # aggregate syntax: 
query I rowsort label-1455
SELECT 78 + + NULLIF ( - 79, - ( ( 83 ) ) * - - ( + + NULLIF ( - COUNT( * ), 75 + 99 + + + 13 ) ) * - 88 - 69 )
----
-1

skipif mysql # not compatible
query I rowsort label-1455
SELECT 78 + + NULLIF ( - 79, - ( ( 83 ) ) * - - ( + + NULLIF ( - COUNT ( * ), 75 + 99 + + + 13 ) ) * - 88 - 69 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1456
SELECT ( - - 98 ) * 51 AS col1, - MAX( + ( NULLIF ( + 44, - 10 ) ) ) * - 18 + + - CAST( - 64 AS SIGNED ) AS col2
----
4998
856

skipif mysql # not compatible
query II rowsort label-1456
SELECT ( - - 98 ) * 51 AS col1, - MAX ( + ( NULLIF ( + 44, - 10 ) ) ) * - 18 + + - CAST ( - 64 AS INTEGER ) AS col2
----
4998
856

onlyif mysql # aggregate syntax: 
query I rowsort label-1457
SELECT ALL + SUM( DISTINCT 87 ) + + + 29 * 11 - + 89 AS col2
----
317

skipif mysql # not compatible
query I rowsort label-1457
SELECT ALL + SUM ( DISTINCT 87 ) + + + 29 * 11 - + 89 AS col2
----
317

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1458
SELECT ALL COALESCE ( + 34, - NULLIF ( + + 67, - 58 ), 91 * - - ( 59 ) ) + + 59 DIV - 39, CAST( NULL AS SIGNED ) * + COUNT( * ) AS col1
----
33
NULL

skipif mysql # not compatible
query II rowsort label-1458
SELECT ALL COALESCE ( + 34, - NULLIF ( + + 67, - 58 ), 91 * - - ( 59 ) ) + + 59 / - 39, CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col1
----
33
NULL

query I rowsort
SELECT DISTINCT 12 + + - 75 AS col2
----
-63

query I rowsort
SELECT ALL 71 * + NULLIF ( + 61, + 67 + ( + ( - 48 ) ) ) AS col2
----
4331

query I rowsort
SELECT 9 + 44 col0
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1462
SELECT DISTINCT - CAST( NULL AS SIGNED ) + 98 + + 48 / COALESCE ( + 69, - - 80 + - CASE 15 WHEN - + COUNT( * ) THEN NULL WHEN - 13 THEN NULL ELSE - 5 * + 72 END ) / COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1462
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + 98 + + 48 / COALESCE ( + 69, - - 80 + - CASE 15 WHEN - + COUNT ( * ) THEN NULL WHEN - 13 THEN NULL ELSE - 5 * + 72 END ) / COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1463
SELECT 28 * - 76 col1, NULLIF ( - ( 28 ), + 80 ) - - COUNT( * ) + - 67 + - + 38 + 46 * + ( + 66 )
----
-2128
2904

skipif mysql # not compatible
query II rowsort label-1463
SELECT 28 * - 76 col1, NULLIF ( - ( 28 ), + 80 ) - - COUNT ( * ) + - 67 + - + 38 + 46 * + ( + 66 )
----
-2128
2904

onlyif mysql # aggregate syntax: 
query I rowsort label-1464
SELECT 81 * - - MAX( 54 ) + + + 20 * + - MIN( + 19 ) AS col2
----
3994

skipif mysql # not compatible
query I rowsort label-1464
SELECT 81 * - - MAX ( 54 ) + + + 20 * + - MIN ( + 19 ) AS col2
----
3994

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1465
SELECT DISTINCT 58 - CAST( 2 AS SIGNED ) * - + ( COUNT( * ) ) DIV - 27 AS col0
----
58

skipif mysql # not compatible
query I rowsort label-1465
SELECT DISTINCT 58 - CAST ( 2 AS INTEGER ) * - + ( COUNT ( * ) ) / - 27 AS col0
----
58

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1467
SELECT + 37 * + ( CASE + 8 WHEN - 34 THEN 4 ELSE 91 END ) + + + 97 * + NULLIF ( COUNT( * ), - + 76 )
----
3464

skipif mysql # not compatible
query I rowsort label-1467
SELECT + 37 * + ( CASE + 8 WHEN - 34 THEN 4 ELSE 91 END ) + + + 97 * + NULLIF ( COUNT ( * ), - + 76 )
----
3464

onlyif mysql # DIV for integer division: 
query I rowsort label-1468
SELECT + 7 + - + 24 + - ( + 71 ) * - - 7 * - - 89 + - 66 DIV - - 18 AS col2
----
-44253

skipif mysql # not compatible
query I rowsort label-1468
SELECT + 7 + - + 24 + - ( + 71 ) * - - 7 * - - 89 + - 66 / - - 18 AS col2
----
-44253

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1470
SELECT DISTINCT - 40 * - 79 * + CASE - + 82 WHEN - - 28 THEN - 27 WHEN + COALESCE ( - + COUNT( - 22 ), - - 88 ) THEN - SUM( + + ( 64 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1470
SELECT DISTINCT - 40 * - 79 * + CASE - + 82 WHEN - - 28 THEN - 27 WHEN + COALESCE ( - + COUNT ( - 22 ), - - 88 ) THEN - SUM ( + + ( 64 ) ) END
----
NULL

query I rowsort
SELECT ALL - 29 / - + 63 + + 65 * 57 * - CASE - 57 WHEN + ( + 13 ) - NULLIF ( + 21, - 98 * + 24 ) + - COALESCE ( - 39, 51 ) * 25 THEN - 19 + - 81 ELSE NULL END
----
NULL

query I rowsort
SELECT - ( - 79 ) * + + 50 * 63 AS col2
----
248850

query I rowsort
SELECT ALL - + 36 * - + 39 * + 39
----
54756

onlyif mysql # aggregate syntax: 
query I rowsort label-1474
SELECT ALL + 49 * + - CASE - MIN( ALL 32 ) WHEN + COALESCE ( + - 21, 33 ) THEN - 26 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1474
SELECT ALL + 49 * + - CASE - MIN ( ALL 32 ) WHEN + COALESCE ( + - 21, 33 ) THEN - 26 END AS col0
----
NULL

query II rowsort
SELECT DISTINCT + - 6 * + 24 + - 77, 33 AS col1
----
-221
33

onlyif mysql # aggregate syntax: 
query I rowsort label-1476
SELECT + 53 * + COUNT( * ) * 77 AS col0
----
4081

skipif mysql # not compatible
query I rowsort label-1476
SELECT + 53 * + COUNT ( * ) * 77 AS col0
----
4081

query II rowsort
SELECT + - ( 89 ), ( - CASE - 26 WHEN 7 THEN 42 END ) AS col2
----
-89
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1478
SELECT DISTINCT - 89 + 96 - + + 91 DIV + 8 + 44 AS col1
----
40

skipif mysql # not compatible
query I rowsort label-1478
SELECT DISTINCT - 89 + 96 - + + 91 / + 8 + 44 AS col1
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-1479
SELECT + CASE + 72 WHEN COUNT( * ) THEN + ( COUNT( * ) ) WHEN + 50 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1479
SELECT + CASE + 72 WHEN COUNT ( * ) THEN + ( COUNT ( * ) ) WHEN + 50 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1480
SELECT DISTINCT 71, 35 + + + COUNT( * ) * - COUNT( DISTINCT - 42 ) AS col1
----
71
34

skipif mysql # not compatible
query II rowsort label-1480
SELECT DISTINCT 71, 35 + + + COUNT ( * ) * - COUNT ( DISTINCT - 42 ) AS col1
----
71
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1481
SELECT ALL - 93 + + - ( + 90 ) * NULLIF ( + 86, + 55 * + 19 + - 46 + - 16 - + 33 * 63 * + 81 ) + 16 DIV + COUNT( * ) AS col2
----
-7817

skipif mysql # not compatible
query I rowsort label-1481
SELECT ALL - 93 + + - ( + 90 ) * NULLIF ( + 86, + 55 * + 19 + - 46 + - 16 - + 33 * 63 * + 81 ) + 16 / + COUNT ( * ) AS col2
----
-7817

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1482
SELECT DISTINCT 61 + - + NULLIF ( - 54, CAST( + 89 AS SIGNED ) ) + 36 + + 96 + + 81 * - ( COUNT( * ) )
----
166

skipif mysql # not compatible
query I rowsort label-1482
SELECT DISTINCT 61 + - + NULLIF ( - 54, CAST ( + 89 AS INTEGER ) ) + 36 + + 96 + + 81 * - ( COUNT ( * ) )
----
166

onlyif mysql # aggregate syntax: 
query II rowsort label-1483
SELECT 68 + + 62 + - - 40 * CASE + 70 WHEN - COUNT( * ) + 56 THEN 45 END AS col1, + 58
----
NULL
58

skipif mysql # not compatible
query II rowsort label-1483
SELECT 68 + + 62 + - - 40 * CASE + 70 WHEN - COUNT ( * ) + 56 THEN 45 END AS col1, + 58
----
NULL
58

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1486
SELECT 13 * - CAST ( NULL AS REAL ) AS col2
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1488
SELECT COUNT( ALL - - 41 ) - - CASE WHEN NULL <= - COALESCE ( + 45, 3 ) THEN - - 25 * + 63 * - 61 + 67 + - 80 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1488
SELECT COUNT ( ALL - - 41 ) - - CASE WHEN NULL <= - COALESCE ( + 45, 3 ) THEN - - 25 * + 63 * - 61 + 67 + - 80 END
----
NULL

query I rowsort
SELECT ALL - 58 + + - 44 + 6 AS col1
----
-96

query I rowsort
SELECT DISTINCT + 3 * + + 31
----
93

query I rowsort
SELECT ( - 43 ) + - 72 * - 66
----
4709

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1492
SELECT DISTINCT NULLIF ( + 48, + 78 ) DIV COUNT( * ) AS col0
----
48

skipif mysql # not compatible
query I rowsort label-1492
SELECT DISTINCT NULLIF ( + 48, + 78 ) / COUNT ( * ) AS col0
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1493
SELECT COUNT( * ) * ( + 23 ) * + CASE + + CAST( NULL AS SIGNED ) WHEN + 87 * COUNT( * ) THEN - 26 - - NULLIF ( + - 70, + - 27 ) WHEN - - 88 + - 9 THEN MAX( DISTINCT + 13 ) WHEN 13 THEN NULL ELSE NULL END / + AVG ( NULLIF ( + 72, - 64 + + 79 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1493
SELECT COUNT ( * ) * ( + 23 ) * + CASE + + CAST ( NULL AS INTEGER ) WHEN + 87 * COUNT ( * ) THEN - 26 - - NULLIF ( + - 70, + - 27 ) WHEN - - 88 + - 9 THEN MAX ( DISTINCT + 13 ) WHEN 13 THEN NULL ELSE NULL END / + AVG ( NULLIF ( + 72, - 64 + + 79 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1494
SELECT - 58 AS col2, 22 + + 91 + - 38 * - + COUNT( * ) * + + 96 AS col1
----
-58
3761

skipif mysql # not compatible
query II rowsort label-1494
SELECT - 58 AS col2, 22 + + 91 + - 38 * - + COUNT ( * ) * + + 96 AS col1
----
-58
3761

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1495
SELECT 2 + - - 45 + + - ( + 31 ) + + CASE + 83 WHEN 94 / - 92 * - - 64 + - + CAST( NULL AS SIGNED ) * + 30 + + AVG ( ALL - + 78 ) + - 78 THEN 16 * - 68 ELSE 9 END + MAX( 73 ) * 8 AS col0
----
609

skipif mysql # not compatible
query I rowsort label-1495
SELECT 2 + - - 45 + + - ( + 31 ) + + CASE + 83 WHEN 94 / - 92 * - - 64 + - + CAST ( NULL AS INTEGER ) * + 30 + + AVG ( ALL - + 78 ) + - 78 THEN 16 * - 68 ELSE 9 END + MAX ( 73 ) * 8 AS col0
----
609

query I rowsort
SELECT 38 - - - 39 col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1497
SELECT - 74 DIV - 91 + - + 33 col0
----
-33

skipif mysql # not compatible
query I rowsort label-1497
SELECT - 74 / - 91 + - + 33 col0
----
-33

query I rowsort
SELECT - 5 * 63
----
-315

onlyif mysql # aggregate syntax: 
query I rowsort label-1499
SELECT ALL CASE + MIN( DISTINCT - + ( + - 68 ) ) WHEN - COUNT( * ) + + 48 THEN NULL WHEN 74 + - - 5 THEN NULL WHEN - - COUNT( * ) THEN + 85 / - ( - 70 ) * - COUNT( * ) + + 52 END * 14 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1499
SELECT ALL CASE + MIN ( DISTINCT - + ( + - 68 ) ) WHEN - COUNT ( * ) + + 48 THEN NULL WHEN 74 + - - 5 THEN NULL WHEN - - COUNT ( * ) THEN + 85 / - ( - 70 ) * - COUNT ( * ) + + 52 END * 14 AS col2
----
NULL

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

query II rowsort
SELECT ALL - - 18 AS col2, 57 * + 89 AS col0
----
18
5073

query II rowsort
SELECT ALL - + 97, + COALESCE ( + 20, 49 ) AS col0
----
-97
20

query I rowsort
SELECT + 71 * - + 11
----
-781

onlyif mysql # aggregate syntax: 
query I rowsort label-1504
SELECT ALL + 67 * - COUNT( * ) + + 68 + + 48 AS col1
----
49

skipif mysql # not compatible
query I rowsort label-1504
SELECT ALL + 67 * - COUNT ( * ) + + 68 + + 48 AS col1
----
49

query I rowsort
SELECT + 33 * 75 * + - 17 + 76 + + + 32
----
-41967

query I rowsort
SELECT - 7 * + 29 AS col2
----
-203

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1507
SELECT ALL 29 * - 94 + - 55 DIV - SUM( + - ( + 14 ) )
----
-2729

skipif mysql # not compatible
query I rowsort label-1507
SELECT ALL 29 * - 94 + - 55 / - SUM ( + - ( + 14 ) )
----
-2729

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1508
SELECT + CASE + 55 WHEN - 77 / + CASE NULLIF ( COUNT( * ), - 54 ) WHEN 18 + 98 + - - 76 - + 40 THEN - - 24 WHEN 56 * ( - 32 - + 3 ) + MIN( - 93 ) THEN NULL ELSE CAST( NULL AS SIGNED ) + 11 END THEN 36 WHEN + 8 THEN NULL END + + 70
----
NULL

skipif mysql # not compatible
query I rowsort label-1508
SELECT + CASE + 55 WHEN - 77 / + CASE NULLIF ( COUNT ( * ), - 54 ) WHEN 18 + 98 + - - 76 - + 40 THEN - - 24 WHEN 56 * ( - 32 - + 3 ) + MIN ( - 93 ) THEN NULL ELSE CAST ( NULL AS INTEGER ) + 11 END THEN 36 WHEN + 8 THEN NULL END + + 70
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1509
SELECT - 12 * + + 9 - - CAST( NULL AS SIGNED ) AS col1, + 27
----
NULL
27

skipif mysql # not compatible
query II rowsort label-1509
SELECT - 12 * + + 9 - - CAST ( NULL AS INTEGER ) AS col1, + 27
----
NULL
27

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

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

query I rowsort
SELECT + 74 + + 62 col0
----
136

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

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

query I rowsort
SELECT ALL - 60 + + 79 AS col2
----
19

query II rowsort
SELECT ALL + 2 * + - 47 * - 17, + 90 AS col0
----
1598
90

query I rowsort
SELECT DISTINCT - + 87 + 63
----
-24

query I rowsort
SELECT + 20 * + + ( + 45 ) AS col2
----
900

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1517
SELECT - 26 + MAX( ALL CAST( - 97 AS SIGNED ) )
----
-123

skipif mysql # not compatible
query I rowsort label-1517
SELECT - 26 + MAX ( ALL CAST ( - 97 AS INTEGER ) )
----
-123

onlyif mysql # aggregate syntax: 
query I rowsort label-1518
SELECT ALL - 89 + 71 - - + COUNT( * ) AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-1518
SELECT ALL - 89 + 71 - - + COUNT ( * ) AS col1
----
-17

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1520
SELECT ALL MAX( DISTINCT - 2 ) - - + 41
----
39

skipif mysql # not compatible
query I rowsort label-1520
SELECT ALL MAX ( DISTINCT - 2 ) - - + 41
----
39

query I rowsort
SELECT - 59 * + - 62
----
3658

onlyif mysql # aggregate syntax: 
query I rowsort label-1522
SELECT DISTINCT - NULLIF ( + 61, - 12 * - SUM( DISTINCT - 73 ) - - + 50 ) - - - 95 AS col2
----
-156

skipif mysql # not compatible
query I rowsort label-1522
SELECT DISTINCT - NULLIF ( + 61, - 12 * - SUM ( DISTINCT - 73 ) - - + 50 ) - - - 95 AS col2
----
-156

onlyif mysql # aggregate syntax: 
query II rowsort label-1523
SELECT + 12 + - 28 * - SUM( DISTINCT - 24 ), 83 + + 34 * - MAX( ALL - 32 ) col1
----
-660
1171

skipif mysql # not compatible
query II rowsort label-1523
SELECT + 12 + - 28 * - SUM ( DISTINCT - 24 ), 83 + + 34 * - MAX ( ALL - 32 ) col1
----
-660
1171

query I rowsort
SELECT ALL + 27 * + 63
----
1701

query II rowsort
SELECT - 24 * - + 93, + 25 + + + ( - - 25 ) AS col2
----
2232
50

query I rowsort
SELECT + 88 + - 94
----
-6

query I rowsort
SELECT ALL ( + 72 ) * - 29
----
-2088

onlyif mysql # DIV for integer division: 
query I rowsort label-1528
SELECT - 76 DIV - + 64
----
1

skipif mysql # not compatible
query I rowsort label-1528
SELECT - 76 / - + 64
----
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1530
SELECT ALL - + 65 * MIN( + + 87 )
----
-5655

skipif mysql # not compatible
query I rowsort label-1530
SELECT ALL - + 65 * MIN ( + + 87 )
----
-5655

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1531
SELECT ALL - 7 DIV - - 92 * 57 * 27 - - 54 + - - 97 * + 60 - + COUNT( * )
----
5873

skipif mysql # not compatible
query I rowsort label-1531
SELECT ALL - 7 / - - 92 * 57 * 27 - - 54 + - - 97 * + 60 - + COUNT ( * )
----
5873

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1532
SELECT + - COUNT( * ) DIV + 91 * - 31 + - 84 col0, 79 AS col1
----
-84
79

skipif mysql # not compatible
query II rowsort label-1532
SELECT + - COUNT ( * ) / + 91 * - 31 + - 84 col0, 79 AS col1
----
-84
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1533
SELECT COUNT( * ) DIV - - CASE 80 WHEN - 52 THEN - MIN( + 24 ) ELSE COUNT( * ) END + - NULLIF ( - COUNT( + 25 ), + + ( + 15 ) )
----
2

skipif mysql # not compatible
query I rowsort label-1533
SELECT COUNT ( * ) / - - CASE 80 WHEN - 52 THEN - MIN ( + 24 ) ELSE COUNT ( * ) END + - NULLIF ( - COUNT ( + 25 ), + + ( + 15 ) )
----
2

query I rowsort
SELECT + 5 * + 44 + - - 28
----
248

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

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

query II rowsort
SELECT ALL + - ( + 91 ), 15 AS col0
----
-91
15

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

query I rowsort
SELECT ALL - 6 * - 42 * + 86 AS col0
----
21672

query II rowsort
SELECT + - 0 * 43 col2, + 86
----
0
86

onlyif mysql # aggregate syntax: 
query I rowsort label-1540
SELECT ALL + NULLIF ( + - COUNT( - 8 ), ( + + 15 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-1540
SELECT ALL + NULLIF ( + - COUNT ( - 8 ), ( + + 15 ) )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1541
SELECT + 38 DIV 79
----
0

skipif mysql # not compatible
query I rowsort label-1541
SELECT + 38 / 79
----
0

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

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

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

skipif mysql # not compatible
query I rowsort label-1543
SELECT + 14 - - COUNT ( * ) + - + 93 AS col1
----
-78

query I rowsort
SELECT COALESCE ( - 0, + 87 + 15 )
----
0

query I rowsort
SELECT ALL + 84 * - 61 + + - NULLIF ( 69, - - 15 ) + + 91
----
-5102

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

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

query I rowsort
SELECT - 96 * + ( - - 1 ) col1
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-1548
SELECT + 66 * ( - - ( - 51 ) ) * - - SUM( ALL - 50 )
----
168300

skipif mysql # not compatible
query I rowsort label-1548
SELECT + 66 * ( - - ( - 51 ) ) * - - SUM ( ALL - 50 )
----
168300

onlyif mysql # aggregate syntax: 
query I rowsort label-1549
SELECT ALL COALESCE ( COUNT( * ), - 93, + + 41 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1549
SELECT ALL COALESCE ( COUNT ( * ), - 93, + + 41 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1550
SELECT - 60 * - MIN( + - 21 )
----
-1260

skipif mysql # not compatible
query I rowsort label-1550
SELECT - 60 * - MIN ( + - 21 )
----
-1260

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

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

query I rowsort
SELECT - 36 * - 87
----
3132

onlyif mysql # aggregate syntax: 
query I rowsort label-1553
SELECT + 83 + - + 13 - - COUNT( * ) + 99 col1
----
170

skipif mysql # not compatible
query I rowsort label-1553
SELECT + 83 + - + 13 - - COUNT ( * ) + 99 col1
----
170

query I rowsort
SELECT + 0 * + 98 * + + 60
----
0

query I rowsort
SELECT - 76 + - 51 AS col1
----
-127

query II rowsort
SELECT ALL - 28 AS col0, 11
----
-28
11

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

skipif mysql # not compatible
query I rowsort label-1557
SELECT COUNT ( * ) * - - COALESCE ( - 55, + 70 + + 65 )
----
-55

query I rowsort
SELECT - NULLIF ( - 36, - 3 ) AS col1
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1559
SELECT 21 * + ( + - CASE + - 2 WHEN 66 THEN NULL WHEN + CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) + + + 13 + - 71 THEN NULL ELSE + - 36 END ) - + + COUNT( * ) + ( + 30 )
----
785

skipif mysql # not compatible
query I rowsort label-1559
SELECT 21 * + ( + - CASE + - 2 WHEN 66 THEN NULL WHEN + CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) + + + 13 + - 71 THEN NULL ELSE + - 36 END ) - + + COUNT ( * ) + ( + 30 )
----
785

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1560
SELECT DISTINCT + 57 + CAST( + + 98 AS SIGNED ) AS col0
----
155

skipif mysql # not compatible
query I rowsort label-1560
SELECT DISTINCT + 57 + CAST ( + + 98 AS INTEGER ) AS col0
----
155

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1561
SELECT + - SUM( ALL + 71 ) DIV - + MIN( ALL + ( - 83 ) ) + - 14
----
-14

skipif mysql # not compatible
query I rowsort label-1561
SELECT + - SUM ( ALL + 71 ) / - + MIN ( ALL + ( - 83 ) ) + - 14
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1562
SELECT DISTINCT - CASE - 4 WHEN 57 THEN NULL ELSE + 74 END + + 96 + - 80 + - CAST( NULL AS SIGNED ) + - - 72 * 25 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1562
SELECT DISTINCT - CASE - 4 WHEN 57 THEN NULL ELSE + 74 END + + 96 + - 80 + - CAST ( NULL AS INTEGER ) + - - 72 * 25 AS col1
----
NULL

query I rowsort
SELECT ALL + 65 + + 26 col2
----
91

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

skipif mysql # not compatible
query I rowsort label-1564
SELECT + + 36 / 53 - COUNT ( * )
----
-1

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

skipif mysql # not compatible
query I rowsort label-1565
SELECT - CAST ( - - COUNT ( * ) AS INTEGER ) * + 64
----
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-1566
SELECT + 92 DIV + 94 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1566
SELECT + 92 / + 94 AS col0
----
0

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

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

query I rowsort
SELECT ALL + 83 + + 63 * + + 37 * + - 58 AS col0
----
-135115

onlyif mysql # aggregate syntax: 
query I rowsort label-1569
SELECT 93 + + + COUNT( * ) * - 34
----
59

skipif mysql # not compatible
query I rowsort label-1569
SELECT 93 + + + COUNT ( * ) * - 34
----
59

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1570
SELECT COALESCE ( + CASE + 62 WHEN + 53 THEN + 59 WHEN - CAST( + + 19 AS SIGNED ) THEN NULL END, 25, + 7 * 83 * - 41 DIV + ( - - 22 ) + - - 11 - - - ( 11 ) ) + CAST( 81 + + 34 AS SIGNED )
----
140

skipif mysql # not compatible
query I rowsort label-1570
SELECT COALESCE ( + CASE + 62 WHEN + 53 THEN + 59 WHEN - CAST ( + + 19 AS INTEGER ) THEN NULL END, 25, + 7 * 83 * - 41 / + ( - - 22 ) + - - 11 - - - ( 11 ) ) + CAST ( 81 + + 34 AS INTEGER )
----
140

query II rowsort
SELECT ALL - 77, 40 AS col1
----
-77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-1572
SELECT 35 * + 35 * + + 88 * + MAX( ALL 83 ) * + 40 + - 10 AS col0
----
357895990

skipif mysql # not compatible
query I rowsort label-1572
SELECT 35 * + 35 * + + 88 * + MAX ( ALL 83 ) * + 40 + - 10 AS col0
----
357895990

query I rowsort
SELECT ( 93 ) * + 36
----
3348

onlyif mysql # aggregate syntax: 
query II rowsort label-1574
SELECT ALL - MAX( ALL + + 77 ) AS col0, + 45 + 18 - - - 29
----
-77
34

skipif mysql # not compatible
query II rowsort label-1574
SELECT ALL - MAX ( ALL + + 77 ) AS col0, + 45 + 18 - - - 29
----
-77
34

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

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

query II rowsort
SELECT ALL 97 col2, 27 AS col0
----
97
27

query II rowsort
SELECT DISTINCT 56 AS col1, + 55 AS col0
----
56
55

onlyif mysql # aggregate syntax: 
query I rowsort label-1578
SELECT DISTINCT - 55 * - + NULLIF ( 51, 39 * - 14 * 54 * 17 + + + COUNT( * ) )
----
2805

skipif mysql # not compatible
query I rowsort label-1578
SELECT DISTINCT - 55 * - + NULLIF ( 51, 39 * - 14 * 54 * 17 + + + COUNT ( * ) )
----
2805

onlyif mysql # DIV for integer division: 
query I rowsort label-1579
SELECT DISTINCT 94 DIV + + ( - 7 ) col0
----
-13

skipif mysql # not compatible
query I rowsort label-1579
SELECT DISTINCT 94 / + + ( - 7 ) col0
----
-13

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1580
SELECT ALL - 37 + - MAX( + - 25 ) + + + 57 + + 23 DIV - - 56 AS col0, - MIN( ALL + 40 ) + - + 76
----
45
-116

skipif mysql # not compatible
query II rowsort label-1580
SELECT ALL - 37 + - MAX ( + - 25 ) + + + 57 + + 23 / - - 56 AS col0, - MIN ( ALL + 40 ) + - + 76
----
45
-116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1581
SELECT - 19 AS col1, - SUM( DISTINCT - CAST( + ( - CAST( NULL AS SIGNED ) ) AS SIGNED ) ) AS col2
----
-19
NULL

skipif mysql # not compatible
query II rowsort label-1581
SELECT - 19 AS col1, - SUM ( DISTINCT - CAST ( + ( - CAST ( NULL AS INTEGER ) ) AS INTEGER ) ) AS col2
----
-19
NULL

query I rowsort
SELECT ALL - 80 * 2 AS col2
----
-160

onlyif mysql # DIV for integer division: 
query I rowsort label-1583
SELECT 43 DIV + - 65 * + NULLIF ( 45, + + 77 )
----
0

skipif mysql # not compatible
query I rowsort label-1583
SELECT 43 / + - 65 * + NULLIF ( 45, + + 77 )
----
0

query I rowsort
SELECT ( - 34 ) * + 43
----
-1462

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1585
SELECT DISTINCT + + 97 + CAST( 96 AS SIGNED ) + 24 AS col1
----
217

skipif mysql # not compatible
query I rowsort label-1585
SELECT DISTINCT + + 97 + CAST ( 96 AS INTEGER ) + 24 AS col1
----
217

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1587
SELECT DISTINCT MIN( DISTINCT 81 ) col2
----
81

skipif mysql # not compatible
query I rowsort label-1587
SELECT DISTINCT MIN ( DISTINCT 81 ) col2
----
81

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1589
SELECT ALL - - COUNT( * ) + 82 AS col1, 99 + - COUNT( * ) + + 24 DIV 27 + + 88
----
83
186

skipif mysql # not compatible
query II rowsort label-1589
SELECT ALL - - COUNT ( * ) + 82 AS col1, 99 + - COUNT ( * ) + + 24 / 27 + + 88
----
83
186

onlyif mysql # aggregate syntax: 
query II rowsort label-1590
SELECT + 1, - 35 + + - CASE - ( - - NULLIF ( + SUM( + 97 ), - + 13 ) ) WHEN - - 8 THEN + 9 END AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-1590
SELECT + 1, - 35 + + - CASE - ( - - NULLIF ( + SUM ( + 97 ), - + 13 ) ) WHEN - - 8 THEN + 9 END AS col0
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1591
SELECT + COUNT( * ) * - COUNT( + 40 ) + + + 79 * - 69 + + + 74 * - - 95
----
1578

skipif mysql # not compatible
query I rowsort label-1591
SELECT + COUNT ( * ) * - COUNT ( + 40 ) + + + 79 * - 69 + + + 74 * - - 95
----
1578

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

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

skipif mysql # not compatible
query I rowsort label-1593
SELECT ALL - MAX ( 60 )
----
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1594
SELECT - + 74 DIV + 44 + + 92 + 57 * COUNT( DISTINCT + + 8 ) + - 64 col1
----
84

skipif mysql # not compatible
query I rowsort label-1594
SELECT - + 74 / + 44 + + 92 + 57 * COUNT ( DISTINCT + + 8 ) + - 64 col1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-1595
SELECT + 89 + - - MAX( - 11 )
----
78

skipif mysql # not compatible
query I rowsort label-1595
SELECT + 89 + - - MAX ( - 11 )
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-1596
SELECT ALL - COUNT( * ) * 38 * MIN( ALL + 95 ) AS col1
----
-3610

skipif mysql # not compatible
query I rowsort label-1596
SELECT ALL - COUNT ( * ) * 38 * MIN ( ALL + 95 ) AS col1
----
-3610

query I rowsort
SELECT - 29 * + 44
----
-1276

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

query II rowsort
SELECT 90 AS col1, - 20 AS col0
----
90
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-1600
SELECT + 47 * + - MAX( 94 )
----
-4418

skipif mysql # not compatible
query I rowsort label-1600
SELECT + 47 * + - MAX ( 94 )
----
-4418

query I rowsort
SELECT ALL - 30 * 2 col2
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1602
SELECT DISTINCT - 12 - 95 AS col2, - COUNT( * ) / - - CAST( NULL AS SIGNED ) AS col0
----
-107
NULL

skipif mysql # not compatible
query II rowsort label-1602
SELECT DISTINCT - 12 - 95 AS col2, - COUNT ( * ) / - - CAST ( NULL AS INTEGER ) AS col0
----
-107
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1603
SELECT ALL 31 DIV + - 89 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1603
SELECT ALL 31 / + - 89 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1604
SELECT COALESCE ( 28, - 36 ) * - NULLIF ( - + 83, - COALESCE ( + 19, + COALESCE ( + 1, - ( COALESCE ( + + COUNT( * ), - + 24 * 52, + - 37 ) ), - + 12 ), 88 ) ) * + 81 - + 62 * + 1 AS col2
----
188182

skipif mysql # not compatible
query I rowsort label-1604
SELECT COALESCE ( 28, - 36 ) * - NULLIF ( - + 83, - COALESCE ( + 19, + COALESCE ( + 1, - ( COALESCE ( + + COUNT ( * ), - + 24 * 52, + - 37 ) ), - + 12 ), 88 ) ) * + 81 - + 62 * + 1 AS col2
----
188182

onlyif mysql # aggregate syntax: 
query II rowsort label-1605
SELECT DISTINCT - SUM( ALL 45 ), 25 col1
----
-45
25

skipif mysql # not compatible
query II rowsort label-1605
SELECT DISTINCT - SUM ( ALL 45 ), 25 col1
----
-45
25

query I rowsort
SELECT 9 * 83 * + + 98
----
73206

query I rowsort
SELECT 12 * - - NULLIF ( + 29, - 5 + - - 7 ) * 58 col0
----
20184

query I rowsort
SELECT 18 - - ( + 10 ) AS col0
----
28

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1610
SELECT DISTINCT - 23 + MIN( DISTINCT - 61 ) col0, COUNT( * ) - - 86
----
-84
87

skipif mysql # not compatible
query II rowsort label-1610
SELECT DISTINCT - 23 + MIN ( DISTINCT - 61 ) col0, COUNT ( * ) - - 86
----
-84
87

onlyif mysql # aggregate syntax: 
query I rowsort label-1611
SELECT ALL CASE + 13 WHEN - + 23 + 34 + 65 THEN - 71 * + CASE + - COALESCE ( + 51, + 15, - 67 * + COUNT( * ) * + - AVG ( - + 25 ) ) WHEN - 30 THEN + 50 WHEN 4 THEN NULL END + SUM( ALL + 51 ) * - 39 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1611
SELECT ALL CASE + 13 WHEN - + 23 + 34 + 65 THEN - 71 * + CASE + - COALESCE ( + 51, + 15, - 67 * + COUNT ( * ) * + - AVG ( - + 25 ) ) WHEN - 30 THEN + 50 WHEN 4 THEN NULL END + SUM ( ALL + 51 ) * - 39 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1612
SELECT + 29 * CAST( NULL AS SIGNED ) * + 19 AS col0, 61
----
NULL
61

skipif mysql # not compatible
query II rowsort label-1612
SELECT + 29 * CAST ( NULL AS INTEGER ) * + 19 AS col0, 61
----
NULL
61

query I rowsort
SELECT ALL 53 * + 64 * + ( - 91 ) col1
----
-308672

onlyif mysql # aggregate syntax: 
query I rowsort label-1614
SELECT + COUNT( * ) - 8 * + 29
----
-231

skipif mysql # not compatible
query I rowsort label-1614
SELECT + COUNT ( * ) - 8 * + 29
----
-231

query II rowsort
SELECT - 93 + - - 21 AS col0, - 6
----
-72
-6

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1616
SELECT ALL + 59 + - + COALESCE ( 46, - 15 * - 38 ) * + CASE - 14 WHEN + 95 + 85 THEN - 61 / 74 - 83 * - 91 WHEN - + 98 THEN - 18 * + + 14 + 54 WHEN 68 * + 45 THEN - 96 * CAST( + 28 * COUNT( * ) AS DECIMAL ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1616
SELECT ALL + 59 + - + COALESCE ( 46, - 15 * - 38 ) * + CASE - 14 WHEN + 95 + 85 THEN - 61 / 74 - 83 * - 91 WHEN - + 98 THEN - 18 * + + 14 + 54 WHEN 68 * + 45 THEN - 96 * CAST ( + 28 * COUNT ( * ) AS REAL ) ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1617
SELECT + 2 + + 12 + - COUNT( * ) DIV - - 54
----
14

skipif mysql # not compatible
query I rowsort label-1617
SELECT + 2 + + 12 + - COUNT ( * ) / - - 54
----
14

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

skipif mysql # not compatible
query I rowsort label-1618
SELECT DISTINCT COUNT ( * ) + + 45 AS col1
----
46

onlyif mysql # aggregate syntax: 
query II rowsort label-1619
SELECT + ( + 49 ) + + 39, COUNT( * ) + 89 * + 2 + + NULLIF ( + 59, - + 75 ) AS col0
----
88
238

skipif mysql # not compatible
query II rowsort label-1619
SELECT + ( + 49 ) + + 39, COUNT ( * ) + 89 * + 2 + + NULLIF ( + 59, - + 75 ) AS col0
----
88
238

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1620
SELECT ALL COUNT( - + 16 ) + 27 DIV 13 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-1620
SELECT ALL COUNT ( - + 16 ) + 27 / 13 AS col1
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1621
SELECT DISTINCT + 76 + + 61 * - 10 DIV COALESCE ( - - COUNT( * ), - AVG ( ALL - + 30 ) + 89 + + - 77 + + 72, + - COUNT( * ) * 55 + 16 ) AS col0, - 55
----
-534
-55

skipif mysql # not compatible
query II rowsort label-1621
SELECT DISTINCT + 76 + + 61 * - 10 / COALESCE ( - - COUNT ( * ), - AVG ( ALL - + 30 ) + 89 + + - 77 + + 72, + - COUNT ( * ) * 55 + 16 ) AS col0, - 55
----
-534
-55

onlyif mysql # aggregate syntax: 
query II rowsort label-1622
SELECT ALL - 18 + 83 AS col1, - 20 * + + 38 + - COUNT( * ) + + ( - COUNT( * ) ) AS col0
----
65
-762

skipif mysql # not compatible
query II rowsort label-1622
SELECT ALL - 18 + 83 AS col1, - 20 * + + 38 + - COUNT ( * ) + + ( - COUNT ( * ) ) AS col0
----
65
-762

query I rowsort
SELECT + + ( + 12 ) * 35 + + 15 * - + 46 AS col0
----
-270

query I rowsort
SELECT DISTINCT 25 * - - 8 AS col2
----
200

query I rowsort
SELECT + + 52 * 51 * - 74 + - 20 AS col2
----
-196268

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1626
SELECT ALL + 20 * - 23 * + MAX( DISTINCT + 74 ) - - 50 + - CAST( NULL AS SIGNED ) / - - ( - - 31 ) + + 74 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1626
SELECT ALL + 20 * - 23 * + MAX ( DISTINCT + 74 ) - - 50 + - CAST ( NULL AS INTEGER ) / - - ( - - 31 ) + + 74 AS col2
----
NULL

query I rowsort
SELECT ALL 14 * 94 * - 15 AS col2
----
-19740

query I rowsort
SELECT ALL + CASE + 4 WHEN + 24 + - 45 THEN NULL WHEN 30 THEN NULL ELSE - 12 END
----
-12

query I rowsort
SELECT COALESCE ( + 37, - + ( - 11 ) ) AS col1
----
37

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

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

query I rowsort
SELECT 72 * + 64 + 61 AS col1
----
4669

query I rowsort
SELECT NULLIF ( 53, 62 )
----
53

onlyif mysql # DIV for integer division: 
query I rowsort label-1633
SELECT ALL - 99 DIV 94
----
-1

skipif mysql # not compatible
query I rowsort label-1633
SELECT ALL - 99 / 94
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1634
SELECT COALESCE ( COUNT( * ), - 54, 0 DIV + CAST( NULL AS SIGNED ) * - + 76 + - + 50 )
----
1

skipif mysql # not compatible
query I rowsort label-1634
SELECT COALESCE ( COUNT ( * ), - 54, 0 / + CAST ( NULL AS INTEGER ) * - + 76 + - + 50 )
----
1

query II rowsort
SELECT + 83, - 6 AS col2
----
83
-6

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

skipif mysql # not compatible
query I rowsort label-1636
SELECT - 60 / 35 * + - COUNT ( * )
----
1

query I rowsort
SELECT - 66 * - 34 AS col2
----
2244

query I rowsort
SELECT DISTINCT - COALESCE ( 57, - 1 ) * + 95 + + + 61 AS col1
----
-5354

query I rowsort
SELECT ALL 35 * - 11 + + 60 * COALESCE ( + + 56, 89 )
----
2975

onlyif mysql # aggregate syntax: 
query I rowsort label-1640
SELECT - COUNT( * ) * + + 39 + - 86 AS col1
----
-125

skipif mysql # not compatible
query I rowsort label-1640
SELECT - COUNT ( * ) * + + 39 + - 86 AS col1
----
-125

query I rowsort
SELECT ALL + 82 * - 0 + - 81 AS col1
----
-81

query I rowsort
SELECT DISTINCT - 82 * + 36 col2
----
-2952

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1643
SELECT 9 * - CAST( 63 AS SIGNED ) + - 51
----
-618

skipif mysql # not compatible
query I rowsort label-1643
SELECT 9 * - CAST ( 63 AS INTEGER ) + - 51
----
-618

onlyif mysql # aggregate syntax: 
query I rowsort label-1644
SELECT ALL 78 * 56 + - - 35 + + + COUNT( * ) + - - 95 + 17
----
4516

skipif mysql # not compatible
query I rowsort label-1644
SELECT ALL 78 * 56 + - - 35 + + + COUNT ( * ) + - - 95 + 17
----
4516

onlyif mysql # DIV for integer division: 
query II rowsort label-1645
SELECT DISTINCT + 21, - 72 DIV - ( + + 40 ) AS col2
----
21
1

skipif mysql # not compatible
query II rowsort label-1645
SELECT DISTINCT + 21, - 72 / - ( + + 40 ) AS col2
----
21
1

query I rowsort
SELECT ALL - 83 * 31 * ( + - 75 ) + 32 col0
----
193007

onlyif mysql # aggregate syntax: 
query I rowsort label-1647
SELECT - 23 + + 80 * - COUNT( * )
----
-103

skipif mysql # not compatible
query I rowsort label-1647
SELECT - 23 + + 80 * - COUNT ( * )
----
-103

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1648
SELECT - 94 DIV 26 * + + COUNT( * ) AS col1, 22 AS col0
----
-3
22

skipif mysql # not compatible
query II rowsort label-1648
SELECT - 94 / 26 * + + COUNT ( * ) AS col1, 22 AS col0
----
-3
22

query I rowsort
SELECT ALL 15 * + + ( - ( + - 60 ) ) + - - 48
----
948

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1651
SELECT DISTINCT - - COUNT( * ) + - - 78 col1
----
79

skipif mysql # not compatible
query I rowsort label-1651
SELECT DISTINCT - - COUNT ( * ) + - - 78 col1
----
79

query I rowsort
SELECT - 99 * - ( 51 )
----
5049

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1653
SELECT ALL - 28 + + 29 * + 85 + - CASE - 88 WHEN - 58 * - 64 * SUM( - CAST( NULL AS DECIMAL ) ) THEN + + CAST( NULL AS SIGNED ) * + - 80 WHEN + - 90 THEN + 9 END + + 16 + - 59
----
NULL

skipif mysql # not compatible
query I rowsort label-1653
SELECT ALL - 28 + + 29 * + 85 + - CASE - 88 WHEN - 58 * - 64 * SUM ( - CAST ( NULL AS REAL ) ) THEN + + CAST ( NULL AS INTEGER ) * + - 80 WHEN + - 90 THEN + 9 END + + 16 + - 59
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1654
SELECT ALL - COALESCE ( + + 11, COUNT( * ) * + 7, - 51 + + MIN( + 51 ), - + 0 ) - - 40 AS col1
----
29

skipif mysql # not compatible
query I rowsort label-1654
SELECT ALL - COALESCE ( + + 11, COUNT ( * ) * + 7, - 51 + + MIN ( + 51 ), - + 0 ) - - 40 AS col1
----
29

query I rowsort
SELECT DISTINCT 57 * - + 21 + + + 71 AS col0
----
-1126

query I rowsort
SELECT ALL - 78 * + 19
----
-1482

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1658
SELECT + + SUM( - 64 ) * + 60 * - - 14 col1, 71 AS col0
----
-53760
71

skipif mysql # not compatible
query II rowsort label-1658
SELECT + + SUM ( - 64 ) * + 60 * - - 14 col1, 71 AS col0
----
-53760
71

query I rowsort
SELECT - - 90 col2
----
90

onlyif mysql # aggregate syntax: 
query II rowsort label-1660
SELECT - - 21 col0, CASE - + 34 WHEN + NULLIF ( 12, 5 + + 51 * 95 ) THEN COUNT( * ) * + 49 + COUNT( * ) + - COUNT( * ) ELSE - 50 * 40 + - SUM( ALL + 49 ) + - + 80 END
----
21
-2129

skipif mysql # not compatible
query II rowsort label-1660
SELECT - - 21 col0, CASE - + 34 WHEN + NULLIF ( 12, 5 + + 51 * 95 ) THEN COUNT ( * ) * + 49 + COUNT ( * ) + - COUNT ( * ) ELSE - 50 * 40 + - SUM ( ALL + 49 ) + - + 80 END
----
21
-2129

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1661
SELECT + ( + - CASE + + 63 WHEN 75 * - 76 + + - 99 THEN - CAST( + 21 AS SIGNED ) END ) * 8 * 20 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1661
SELECT + ( + - CASE + + 63 WHEN 75 * - 76 + + - 99 THEN - CAST ( + 21 AS INTEGER ) END ) * 8 * 20 AS col2
----
NULL

query II rowsort
SELECT ALL + 57 AS col1, - 12 AS col2
----
57
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1663
SELECT + + 15 + + + ( + 84 ) + COUNT( * ) + - 92 * + - 66 * + 50 + 4 * - - 70 + - 36 * 17 - 90 + + 81 * + 53 DIV - COUNT( * ) col2
----
298985

skipif mysql # not compatible
query I rowsort label-1663
SELECT + + 15 + + + ( + 84 ) + COUNT ( * ) + - 92 * + - 66 * + 50 + 4 * - - 70 + - 36 * 17 - 90 + + 81 * + 53 / - COUNT ( * ) col2
----
298985

query I rowsort
SELECT DISTINCT + - 38 * ( - 15 ) * - - 10 AS col2
----
5700

query II rowsort
SELECT + 92, 82 col0
----
92
82

query I rowsort
SELECT 67 * - 0 + + + 63
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1667
SELECT + 8 * + COALESCE ( + NULLIF ( + 7, - 2 + - 88 + + COALESCE ( - + AVG ( DISTINCT + - NULLIF ( - 84, 53 * CAST( 93 AS SIGNED ) / - 26 + - 13 ) ), 4 + + - CASE - SUM( ALL - + ( 54 ) ) WHEN ( COUNT( * ) ) THEN NULL WHEN 27 THEN 89 / 85 END ) * + 54 ), + 44 * + 81 )
----
56

skipif mysql # not compatible
query I rowsort label-1667
SELECT + 8 * + COALESCE ( + NULLIF ( + 7, - 2 + - 88 + + COALESCE ( - + AVG ( DISTINCT + - NULLIF ( - 84, 53 * CAST ( 93 AS INTEGER ) / - 26 + - 13 ) ), 4 + + - CASE - SUM ( ALL - + ( 54 ) ) WHEN ( COUNT ( * ) ) THEN NULL WHEN 27 THEN 89 / 85 END ) * + 54 ), + 44 * + 81 )
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-1668
SELECT - 32 DIV - 56 + + 11 AS col0
----
11

skipif mysql # not compatible
query I rowsort label-1668
SELECT - 32 / - 56 + + 11 AS col0
----
11

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1670
SELECT - 90 + 32 + - + 63 * CASE - 33 WHEN - - 16 THEN - COUNT( * ) + - - 35 + - 86 DIV 1 + - - 1 * - + SUM( DISTINCT - 95 ) * NULLIF ( - ( - COUNT( + - 45 ) ), 9 ) + + 69 + + 15 * 98 ELSE NULLIF ( 26, + 12 + + 1 ) END
----
-1696

skipif mysql # not compatible
query I rowsort label-1670
SELECT - 90 + 32 + - + 63 * CASE - 33 WHEN - - 16 THEN - COUNT ( * ) + - - 35 + - 86 / 1 + - - 1 * - + SUM ( DISTINCT - 95 ) * NULLIF ( - ( - COUNT ( + - 45 ) ), 9 ) + + 69 + + 15 * 98 ELSE NULLIF ( 26, + 12 + + 1 ) END
----
-1696

query I rowsort
SELECT ALL 42 * - 16
----
-672

query I rowsort
SELECT + 54 * 18 AS col0
----
972

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1673
SELECT ALL - 68 + + 25 AS col1, - COALESCE ( COUNT( ALL + CASE + 27 WHEN - NULLIF ( - 95, + 76 ) THEN 3 ELSE NULL END ), COUNT( * ) DIV - 83 ) DIV - ( - ( + COUNT( * ) ) ) AS col0
----
-43
0

skipif mysql # not compatible
query II rowsort label-1673
SELECT ALL - 68 + + 25 AS col1, - COALESCE ( COUNT ( ALL + CASE + 27 WHEN - NULLIF ( - 95, + 76 ) THEN 3 ELSE NULL END ), COUNT ( * ) / - 83 ) / - ( - ( + COUNT ( * ) ) ) AS col0
----
-43
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1674
SELECT DISTINCT COUNT( + 20 ) * - 64 * - 55
----
3520

skipif mysql # not compatible
query I rowsort label-1674
SELECT DISTINCT COUNT ( + 20 ) * - 64 * - 55
----
3520

query I rowsort
SELECT ALL - 5 + + ( - 51 )
----
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-1676
SELECT DISTINCT + 51 DIV 34 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1676
SELECT DISTINCT + 51 / 34 AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1677
SELECT 82 DIV + 90 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1677
SELECT 82 / + 90 AS col2
----
0

query I rowsort
SELECT 88 * + 57 AS col2
----
5016

query I rowsort
SELECT DISTINCT + 33 * - - 29
----
957

query I rowsort
SELECT DISTINCT ( - 4 ) + - 24 + - ( 21 ) * 92
----
-1960

onlyif mysql # aggregate syntax: 
query I rowsort label-1681
SELECT DISTINCT - - 78 - + SUM( - 3 ) AS col0
----
81

skipif mysql # not compatible
query I rowsort label-1681
SELECT DISTINCT - - 78 - + SUM ( - 3 ) AS col0
----
81

query I rowsort
SELECT DISTINCT COALESCE ( + 73, - + COALESCE ( 48, + ( ( 75 ) ) ) ) col2
----
73

query I rowsort
SELECT DISTINCT + 40 * - - 41
----
1640

onlyif mysql # DIV for integer division: 
query I rowsort label-1684
SELECT DISTINCT + + 73 DIV + + 82 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1684
SELECT DISTINCT + + 73 / + + 82 AS col2
----
0

query I rowsort
SELECT 36 / - - CASE - 46 WHEN 82 * 16 + 31 THEN - 97 WHEN - - 39 * - 27 + - 61 THEN + ( + 36 ) ELSE NULL END col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1686
SELECT MIN ( ( 77 ) ) / COUNT ( * ) / + 65 AS col1
----
1

query I rowsort
SELECT ALL + NULLIF ( 8, - 39 + 70 )
----
8

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

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

query I rowsort
SELECT DISTINCT 48 * - 38
----
-1824

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1690
SELECT ALL CASE + - CAST( - 43 AS SIGNED ) WHEN 35 THEN - 83 + - 1 - + 98 / + 66 / 96 + 4 + + ( 4 ) / - CASE - - COUNT( * ) WHEN - COUNT( * ) THEN NULL ELSE ( 37 ) END WHEN COUNT( * ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1690
SELECT ALL CASE + - CAST ( - 43 AS INTEGER ) WHEN 35 THEN - 83 + - 1 - + 98 / + 66 / 96 + 4 + + ( 4 ) / - CASE - - COUNT ( * ) WHEN - COUNT ( * ) THEN NULL ELSE ( 37 ) END WHEN COUNT ( * ) THEN NULL END
----
NULL

query I rowsort
SELECT 5 * 66 + 31 + - 7 col1
----
354

query I rowsort
SELECT DISTINCT + + 19 * 32 AS col0
----
608

onlyif mysql # aggregate syntax: 
query I rowsort label-1693
SELECT COALESCE ( - 31, 69 + - 69, - - 7 ) + + MIN( DISTINCT + 73 )
----
42

skipif mysql # not compatible
query I rowsort label-1693
SELECT COALESCE ( - 31, 69 + - 69, - - 7 ) + + MIN ( DISTINCT + 73 )
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-1694
SELECT COUNT( * ) - + - 13
----
14

skipif mysql # not compatible
query I rowsort label-1694
SELECT COUNT ( * ) - + - 13
----
14

onlyif mysql # aggregate syntax: 
query II rowsort label-1695
SELECT ALL 72 + SUM( - - 40 ), - 59 AS col1
----
112
-59

skipif mysql # not compatible
query II rowsort label-1695
SELECT ALL 72 + SUM ( - - 40 ), - 59 AS col1
----
112
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-1696
SELECT 28 + - 92 * - MAX( ALL ( + 24 ) ) AS col2
----
2236

skipif mysql # not compatible
query I rowsort label-1696
SELECT 28 + - 92 * - MAX ( ALL ( + 24 ) ) AS col2
----
2236

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1699
SELECT 37 / 72 * + 47 - + - ( + COUNT ( * ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1700
SELECT COUNT( * ) * - 7 + 25 + + 29 * MAX( + 87 ) + - 5
----
2536

skipif mysql # not compatible
query I rowsort label-1700
SELECT COUNT ( * ) * - 7 + 25 + + 29 * MAX ( + 87 ) + - 5
----
2536

query I rowsort
SELECT ALL 65 * - 12 AS col2
----
-780

query I rowsort
SELECT DISTINCT 23 * - 14 AS col1
----
-322

query I rowsort
SELECT ALL 58 * + 19
----
1102

onlyif mysql # aggregate syntax: 
query I rowsort label-1704
SELECT ALL ( + 49 ) - COUNT( * ) + - 95 col2
----
-47

skipif mysql # not compatible
query I rowsort label-1704
SELECT ALL ( + 49 ) - COUNT ( * ) + - 95 col2
----
-47

onlyif mysql # DIV for integer division: 
query II rowsort label-1705
SELECT ALL - 92 AS col1, ( 19 ) + - COALESCE ( + 0, - + 27 + 47 * - 58, + 53 DIV - 0 ) col0
----
-92
19

skipif mysql # not compatible
query II rowsort label-1705
SELECT ALL - 92 AS col1, ( 19 ) + - COALESCE ( + 0, - + 27 + 47 * - 58, + 53 / - 0 ) col0
----
-92
19

query I rowsort
SELECT - 90 * - 73 * 79 AS col0
----
519030

onlyif mysql # aggregate syntax: 
query II rowsort label-1707
SELECT - 63 AS col0, - 12 + - MAX( ALL COALESCE ( 77, + 1 - + 88 ) )
----
-63
-89

skipif mysql # not compatible
query II rowsort label-1707
SELECT - 63 AS col0, - 12 + - MAX ( ALL COALESCE ( 77, + 1 - + 88 ) )
----
-63
-89

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1711
SELECT NULLIF ( + + 70, + 83 ) * + - COUNT( + CAST( - - 48 AS SIGNED ) ) + - COUNT( - CAST( NULL AS SIGNED ) ) + + - 4 - + 9 + + 27 DIV - 37
----
-83

skipif mysql # not compatible
query I rowsort label-1711
SELECT NULLIF ( + + 70, + 83 ) * + - COUNT ( + CAST ( - - 48 AS INTEGER ) ) + - COUNT ( - CAST ( NULL AS INTEGER ) ) + + - 4 - + 9 + + 27 / - 37
----
-83

onlyif mysql # aggregate syntax: 
query II rowsort label-1712
SELECT - + 48, 26 * - 37 * + ( + - COUNT( * ) ) AS col1
----
-48
962

skipif mysql # not compatible
query II rowsort label-1712
SELECT - + 48, 26 * - 37 * + ( + - COUNT ( * ) ) AS col1
----
-48
962

onlyif mysql # aggregate syntax: 
query I rowsort label-1713
SELECT ALL + 95 * MAX( DISTINCT - + 3 )
----
-285

skipif mysql # not compatible
query I rowsort label-1713
SELECT ALL + 95 * MAX ( DISTINCT - + 3 )
----
-285

query I rowsort
SELECT DISTINCT 63 * + 51 AS col1
----
3213

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

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

query I rowsort
SELECT 61 * - - 64 - - - 7 + - + 36
----
3861

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1718
SELECT + COALESCE ( - 34, 0 ) * - MAX( - 44 )
----
-1496

skipif mysql # not compatible
query I rowsort label-1718
SELECT + COALESCE ( - 34, 0 ) * - MAX ( - 44 )
----
-1496

query II rowsort
SELECT - - 53 AS col2, - 23 - 9
----
53
-32

query II rowsort
SELECT - 67, + 66 AS col0
----
-67
66

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1721
SELECT ALL 68 AS col2, 36 * - - CAST( 57 AS SIGNED )
----
68
2052

skipif mysql # not compatible
query II rowsort label-1721
SELECT ALL 68 AS col2, 36 * - - CAST ( 57 AS INTEGER )
----
68
2052

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1724
SELECT ALL - NULLIF ( + 35, - + AVG ( ALL 19 ) ) + 79 + NULLIF ( - COUNT( * ), + 8 * COUNT( * ) * 91 / - 45 * AVG ( ALL - + 80 ) + 47 ) * + 87
----
-43

skipif mysql # not compatible
query I rowsort label-1724
SELECT ALL - NULLIF ( + 35, - + AVG ( ALL 19 ) ) + 79 + NULLIF ( - COUNT ( * ), + 8 * COUNT ( * ) * 91 / - 45 * AVG ( ALL - + 80 ) + 47 ) * + 87
----
-43

query II rowsort
SELECT 39 AS col0, - 55 * 81 * + - 41
----
39
182655

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1726
SELECT ALL + MIN( + 8 ) + + 22 * - - CAST( + 98 AS SIGNED ) + + COUNT( * ) AS col2, 4 * + - 25
----
2165
-100

skipif mysql # not compatible
query II rowsort label-1726
SELECT ALL + MIN ( + 8 ) + + 22 * - - CAST ( + 98 AS INTEGER ) + + COUNT ( * ) AS col2, 4 * + - 25
----
2165
-100

onlyif mysql # aggregate syntax: 
query III rowsort label-1727
SELECT + 34 AS col1, + COUNT( * ) + - 86 * + 15 AS col1, - 23 - + ( + + COUNT( * ) )
----
34
-1289
-24

skipif mysql # not compatible
query III rowsort label-1727
SELECT + 34 AS col1, + COUNT ( * ) + - 86 * + 15 AS col1, - 23 - + ( + + COUNT ( * ) )
----
34
-1289
-24

query I rowsort
SELECT 41 * + 42 + - 93
----
1629

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1729
SELECT DISTINCT - 84 * ( + CAST( NULL AS SIGNED ) ) + + - ( 72 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1729
SELECT DISTINCT - 84 * ( + CAST ( NULL AS INTEGER ) ) + + - ( 72 ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1730
SELECT + 85 DIV - 80 + - 87 AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-1730
SELECT + 85 / - 80 + - 87 AS col0
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1731
SELECT CASE + 73 WHEN - + 9 THEN NULL WHEN - CASE 69 WHEN + 45 THEN COUNT( * ) WHEN + 9 * 6 THEN 23 + - 96 + + + 61 WHEN + - 57 * - 57 / - + 70 THEN - - CAST( NULL AS SIGNED ) + + ( 41 ) END + + 98 THEN - COUNT( * ) * + AVG ( DISTINCT - 98 ) + 35 * COALESCE ( + COALESCE ( + 25, 33 * - NULLIF ( + 83 * + CAST( NULL AS SIGNED ), 3 ) ), - COUNT( * ) ) END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1731
SELECT CASE + 73 WHEN - + 9 THEN NULL WHEN - CASE 69 WHEN + 45 THEN COUNT ( * ) WHEN + 9 * 6 THEN 23 + - 96 + + + 61 WHEN + - 57 * - 57 / - + 70 THEN - - CAST ( NULL AS INTEGER ) + + ( 41 ) END + + 98 THEN - COUNT ( * ) * + AVG ( DISTINCT - 98 ) + 35 * COALESCE ( + COALESCE ( + 25, 33 * - NULLIF ( + 83 * + CAST ( NULL AS INTEGER ), 3 ) ), - COUNT ( * ) ) END col2
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1733
SELECT ALL + NULLIF ( - CASE - + 46 WHEN - + 18 * + 2 * + 51 * + 84 THEN NULL WHEN + 20 * - 22 / CASE + + 82 WHEN NULLIF ( CAST( - + COUNT( * ) AS SIGNED ), - 87 + + COALESCE ( - 66, 90 + - 69 + 62 ) - + 73 - - MAX( 14 ) * 92 ) * - 3 THEN - AVG ( ALL + CAST( NULL AS SIGNED ) ) + - 22 ELSE + 80 * + 69 END THEN - 16 + + COALESCE ( + 41, 76 ) ELSE NULL END, + ( 43 ) * - COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1733
SELECT ALL + NULLIF ( - CASE - + 46 WHEN - + 18 * + 2 * + 51 * + 84 THEN NULL WHEN + 20 * - 22 / CASE + + 82 WHEN NULLIF ( CAST ( - + COUNT ( * ) AS INTEGER ), - 87 + + COALESCE ( - 66, 90 + - 69 + 62 ) - + 73 - - MAX ( 14 ) * 92 ) * - 3 THEN - AVG ( ALL + CAST ( NULL AS INTEGER ) ) + - 22 ELSE + 80 * + 69 END THEN - 16 + + COALESCE ( + 41, 76 ) ELSE NULL END, + ( 43 ) * - COUNT ( * ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1734
SELECT ALL + NULLIF ( - COUNT( * ), - 76 )
----
-1

skipif mysql # not compatible
query I rowsort label-1734
SELECT ALL + NULLIF ( - COUNT ( * ), - 76 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1735
SELECT ALL 11 DIV - 91 * + 76 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1735
SELECT ALL 11 / - 91 * + 76 AS col0
----
0

query I rowsort
SELECT + 17 * - + 29 AS col2
----
-493

query II rowsort
SELECT DISTINCT + 20 AS col2, 33
----
20
33

query II rowsort
SELECT + ( + 91 ) AS col1, 12
----
91
12

onlyif mysql # aggregate syntax: 
query II rowsort label-1739
SELECT ALL + COUNT( * ) AS col0, - COALESCE ( - 47, + 25 * COUNT( * ) ) + + 64 AS col0
----
1
111

skipif mysql # not compatible
query II rowsort label-1739
SELECT ALL + COUNT ( * ) AS col0, - COALESCE ( - 47, + 25 * COUNT ( * ) ) + + 64 AS col0
----
1
111

onlyif mysql # aggregate syntax: 
query II rowsort label-1740
SELECT + 53 AS col1, + MIN( - 20 ) * 44 AS col0
----
53
-880

skipif mysql # not compatible
query II rowsort label-1740
SELECT + 53 AS col1, + MIN ( - 20 ) * 44 AS col0
----
53
-880

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1742
SELECT + 41 DIV - COUNT( * ) + + 32 + - 59 * + - MAX( - - 69 ) + + ( - 31 ) + + 90 + + 15 AS col0
----
4136

skipif mysql # not compatible
query I rowsort label-1742
SELECT + 41 / - COUNT ( * ) + + 32 + - 59 * + - MAX ( - - 69 ) + + ( - 31 ) + + 90 + + 15 AS col0
----
4136

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1743
SELECT + 11 DIV - + 29 + - COUNT( ALL + - 11 ) - + 90 * 5 AS col0
----
-451

skipif mysql # not compatible
query I rowsort label-1743
SELECT + 11 / - + 29 + - COUNT ( ALL + - 11 ) - + 90 * 5 AS col0
----
-451

onlyif mysql # aggregate syntax: 
query I rowsort label-1744
SELECT DISTINCT 80 * - MIN( ( + 40 ) )
----
-3200

skipif mysql # not compatible
query I rowsort label-1744
SELECT DISTINCT 80 * - MIN ( ( + 40 ) )
----
-3200

query I rowsort
SELECT ALL 85 * + - 41
----
-3485

onlyif mysql # aggregate syntax: 
query I rowsort label-1746
SELECT + COUNT( ALL 5 ) - - 39 AS col2
----
40

skipif mysql # not compatible
query I rowsort label-1746
SELECT + COUNT ( ALL 5 ) - - 39 AS col2
----
40

onlyif mysql # aggregate syntax: 
query II rowsort label-1747
SELECT + 24 * + NULLIF ( + 26, + SUM( 58 ) ) + - - 57 * - NULLIF ( - + 56, - + 76 ) AS col0, 23 + + 23
----
3816
46

skipif mysql # not compatible
query II rowsort label-1747
SELECT + 24 * + NULLIF ( + 26, + SUM ( 58 ) ) + - - 57 * - NULLIF ( - + 56, - + 76 ) AS col0, 23 + + 23
----
3816
46

onlyif mysql # aggregate syntax: 
query I rowsort label-1748
SELECT 19 * - + 9 - ( + CASE - 95 WHEN + + 21 THEN 29 END ) + - + 13 * + 69 * 25 + + - 60 / 72 * 11 + + CASE + 30 WHEN + 50 THEN - 49 * + - 16 * - 8 * 3 * 61 + + 70 WHEN - 5 - MAX( 8 ) THEN + 25 / - 5 ELSE 11 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1748
SELECT 19 * - + 9 - ( + CASE - 95 WHEN + + 21 THEN 29 END ) + - + 13 * + 69 * 25 + + - 60 / 72 * 11 + + CASE + 30 WHEN + 50 THEN - 49 * + - 16 * - 8 * 3 * 61 + + 70 WHEN - 5 - MAX ( 8 ) THEN + 25 / - 5 ELSE 11 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1749
SELECT DISTINCT 42 * - + 78 + + + 84 - + ( + + CAST( NULL AS SIGNED ) ) - + 88 + + + 67 + + + 90 + 29 + MIN( DISTINCT 97 ) AS col2, - 81 AS col2
----
NULL
-81

skipif mysql # not compatible
query II rowsort label-1749
SELECT DISTINCT 42 * - + 78 + + + 84 - + ( + + CAST ( NULL AS INTEGER ) ) - + 88 + + + 67 + + + 90 + 29 + MIN ( DISTINCT 97 ) AS col2, - 81 AS col2
----
NULL
-81

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

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

query I rowsort
SELECT ALL 51 * - 77 + - - 67 AS col0
----
-3860

onlyif mysql # aggregate syntax: 
query II rowsort label-1752
SELECT 64 col0, 62 + COUNT( * )
----
64
63

skipif mysql # not compatible
query II rowsort label-1752
SELECT 64 col0, 62 + COUNT ( * )
----
64
63

onlyif mysql # aggregate syntax: 
query II rowsort label-1753
SELECT DISTINCT + 17 + - COALESCE ( + ( - - 90 ), + 29 ) + - COUNT( * ) AS col0, CASE 51 WHEN 35 / - 87 THEN 57 / - - 91 * 92 END AS col1
----
-74
NULL

skipif mysql # not compatible
query II rowsort label-1753
SELECT DISTINCT + 17 + - COALESCE ( + ( - - 90 ), + 29 ) + - COUNT ( * ) AS col0, CASE 51 WHEN 35 / - 87 THEN 57 / - - 91 * 92 END AS col1
----
-74
NULL

query II rowsort
SELECT + + 84 + + 18, + ( - - 83 ) AS col0
----
102
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1755
SELECT ALL CAST( 97 AS SIGNED ) AS col0
----
97

skipif mysql # not compatible
query I rowsort label-1755
SELECT ALL CAST ( 97 AS INTEGER ) AS col0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1756
SELECT DISTINCT - NULLIF ( + ( - + COUNT( * ) ), + COUNT( * ) * ( - + COUNT( * ) ) + + + NULLIF ( + 48, COUNT( * ) ) + 75 * + COUNT( * ) ) + 50
----
51

skipif mysql # not compatible
query I rowsort label-1756
SELECT DISTINCT - NULLIF ( + ( - + COUNT ( * ) ), + COUNT ( * ) * ( - + COUNT ( * ) ) + + + NULLIF ( + 48, COUNT ( * ) ) + 75 * + COUNT ( * ) ) + 50
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1757
SELECT + - NULLIF ( + + 80, - SUM( - 50 ) * 11 * COUNT( * ) + CAST( + COUNT( * ) AS SIGNED ) + - 43 ) + - NULLIF ( + 70, 61 * - 98 ) + + + COALESCE ( - 82, + 60 ) DIV 36 AS col1, 14 AS col0
----
-152
14

skipif mysql # not compatible
query II rowsort label-1757
SELECT + - NULLIF ( + + 80, - SUM ( - 50 ) * 11 * COUNT ( * ) + CAST ( + COUNT ( * ) AS INTEGER ) + - 43 ) + - NULLIF ( + 70, 61 * - 98 ) + + + COALESCE ( - 82, + 60 ) / 36 AS col1, 14 AS col0
----
-152
14

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

query III rowsort
SELECT - - 65, 50 AS col1, + 76 - + 81 AS col0
----
65
50
-5

query I rowsort
SELECT ALL - 23 + + COALESCE ( 12, + 78 ) AS col1
----
-11

query I rowsort
SELECT + 84 + 98
----
182

query I rowsort
SELECT DISTINCT - 54 + + 94 AS col2
----
40

onlyif mysql # aggregate syntax: 
query II rowsort label-1763
SELECT ALL 19 + 97 AS col2, NULLIF ( + SUM( ALL 68 ), - 61 )
----
116
68

skipif mysql # not compatible
query II rowsort label-1763
SELECT ALL 19 + 97 AS col2, NULLIF ( + SUM ( ALL 68 ), - 61 )
----
116
68

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

query I rowsort
SELECT DISTINCT 54 * 77 * - 2
----
-8316

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1767
SELECT - NULLIF ( + 14, NULLIF ( - 71, + 31 / + ( + 59 ) ) ) * 98 - - - COUNT( * ) * - COUNT( DISTINCT - 72 )
----
-1371

skipif mysql # not compatible
query I rowsort label-1767
SELECT - NULLIF ( + 14, NULLIF ( - 71, + 31 / + ( + 59 ) ) ) * 98 - - - COUNT ( * ) * - COUNT ( DISTINCT - 72 )
----
-1371

query I rowsort
SELECT - 83 + - 98 * - - 4
----
-475

query I rowsort
SELECT ALL NULLIF ( + ( - - 79 ), + 7 ) AS col0
----
79

query I rowsort
SELECT DISTINCT CASE - 43 WHEN + 84 * + 38 THEN 74 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1771
SELECT - COUNT( DISTINCT 34 ) col2, 90
----
-1
90

skipif mysql # not compatible
query II rowsort label-1771
SELECT - COUNT ( DISTINCT 34 ) col2, 90
----
-1
90

query II rowsort
SELECT ALL ( - 36 ), + 8 * - 35 * + + 56 AS col0
----
-36
-15680

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

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

query II rowsort
SELECT DISTINCT - 74 * - 9 col2, 42 AS col1
----
666
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1775
SELECT DISTINCT 70 * CAST( - 53 AS SIGNED ) * - COUNT( * ) * - 5 AS col1
----
-18550

skipif mysql # not compatible
query I rowsort label-1775
SELECT DISTINCT 70 * CAST ( - 53 AS INTEGER ) * - COUNT ( * ) * - 5 AS col1
----
-18550

onlyif mysql # DIV for integer division: 
query I rowsort label-1776
SELECT + 99 DIV 9 - - 73 + 57 + 93 + + + ( - 3 ) * + - 23
----
303

skipif mysql # not compatible
query I rowsort label-1776
SELECT + 99 / 9 - - 73 + 57 + 93 + + + ( - 3 ) * + - 23
----
303

query I rowsort
SELECT DISTINCT - 61 * + 58 AS col1
----
-3538

onlyif mysql # aggregate syntax: 
query I rowsort label-1778
SELECT + NULLIF ( - + 29, - + COUNT( * ) ) * 61 * - - ( - COUNT( * ) ) + 0
----
1769

skipif mysql # not compatible
query I rowsort label-1778
SELECT + NULLIF ( - + 29, - + COUNT ( * ) ) * 61 * - - ( - COUNT ( * ) ) + 0
----
1769

onlyif mysql # aggregate syntax: 
query I rowsort label-1779
SELECT - 39 + + + COUNT( * ) col2
----
-38

skipif mysql # not compatible
query I rowsort label-1779
SELECT - 39 + + + COUNT ( * ) col2
----
-38

query I rowsort
SELECT ALL + - 13 col0
----
-13

query I rowsort
SELECT DISTINCT 87 * - - 63 * 97 + - 46 * + 19 AS col2
----
530783

onlyif mysql # aggregate syntax: 
query I rowsort label-1782
SELECT 73 * 44 * SUM( DISTINCT - 47 ) - 43 * 90 + - 36 AS col2
----
-154870

skipif mysql # not compatible
query I rowsort label-1782
SELECT 73 * 44 * SUM ( DISTINCT - 47 ) - 43 * 90 + - 36 AS col2
----
-154870

query I rowsort
SELECT ALL - 20 * + 83 + 87 AS col2
----
-1573

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1785
SELECT ALL + - 82 * + CAST( NULL AS SIGNED ) + + 81 * AVG ( DISTINCT + 49 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1785
SELECT ALL + - 82 * + CAST ( NULL AS INTEGER ) + + 81 * AVG ( DISTINCT + 49 )
----
NULL

query I rowsort
SELECT - - 13 * - + 37 * + 56 + 80
----
-26856

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

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

query II rowsort
SELECT DISTINCT + ( + + 13 ), 0 col1
----
13
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1789
SELECT - + 38 * - 59 + - + COUNT( * ) AS col2
----
2241

skipif mysql # not compatible
query I rowsort label-1789
SELECT - + 38 * - 59 + - + COUNT ( * ) AS col2
----
2241

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1790
SELECT + 69 * CAST( NULL AS SIGNED ) * + 47 + 52 * 60 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1790
SELECT + 69 * CAST ( NULL AS INTEGER ) * + 47 + 52 * 60 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1791
SELECT ALL + + 45 * + 68 AS col0, + COUNT( * )
----
3060
1

skipif mysql # not compatible
query II rowsort label-1791
SELECT ALL + + 45 * + 68 AS col0, + COUNT ( * )
----
3060
1

query II rowsort
SELECT DISTINCT + 24 + - 64 AS col0, - 19 * + 88 AS col0
----
-40
-1672

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1793
SELECT COALESCE ( - 76, NULLIF ( + + CAST( NULL AS SIGNED ), - 26 ) - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) ) + 87
----
11

skipif mysql # not compatible
query I rowsort label-1793
SELECT COALESCE ( - 76, NULLIF ( + + CAST ( NULL AS INTEGER ), - 26 ) - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) ) + 87
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1794
SELECT DISTINCT + MAX( + CAST( - ( + + CAST( - - 19 AS DECIMAL ) ) AS SIGNED ) ) * + 2 * - 12 AS col2
----
456

skipif mysql # not compatible
query I rowsort label-1794
SELECT DISTINCT + MAX ( + CAST ( - ( + + CAST ( - - 19 AS REAL ) ) AS INTEGER ) ) * + 2 * - 12 AS col2
----
456

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

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

query II rowsort
SELECT DISTINCT 69, + 80 col2
----
69
80

query I rowsort
SELECT 57 * 69
----
3933

query II rowsort
SELECT 7, + ( - 88 ) AS col2
----
7
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-1799
SELECT 53 + - 61 DIV ( 38 )
----
52

skipif mysql # not compatible
query I rowsort label-1799
SELECT 53 + - 61 / ( 38 )
----
52

query I rowsort
SELECT DISTINCT 0 * 37 AS col2
----
0

query II rowsort
SELECT DISTINCT 39 AS col0, - 75
----
39
-75

query II rowsort
SELECT ALL 0 AS col0, + 86
----
0
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1803
SELECT 91 DIV - MAX( ALL + + 30 ) AS col1, - 24
----
-3
-24

skipif mysql # not compatible
query II rowsort label-1803
SELECT 91 / - MAX ( ALL + + 30 ) AS col1, - 24
----
-3
-24

query I rowsort
SELECT ALL 99 * - + 25 AS col1
----
-2475

query I rowsort
SELECT CASE - - 77 WHEN - + 26 THEN NULL ELSE - 22 END * 29
----
-638

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1806
SELECT + 32 DIV - MIN( DISTINCT 41 ) + - + NULLIF ( - ( - COUNT( * ) ), - 69 ) * + + ( SUM( ALL - 38 ) )
----
38

skipif mysql # not compatible
query I rowsort label-1806
SELECT + 32 / - MIN ( DISTINCT 41 ) + - + NULLIF ( - ( - COUNT ( * ) ), - 69 ) * + + ( SUM ( ALL - 38 ) )
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-1807
SELECT 7 + + 16 * + SUM( + - 87 )
----
-1385

skipif mysql # not compatible
query I rowsort label-1807
SELECT 7 + + 16 * + SUM ( + - 87 )
----
-1385

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1808
SELECT ( - - 46 ) DIV COALESCE ( + 10, + COUNT( * ) + - 12 - + - 15 DIV + CAST( NULL AS SIGNED ) DIV - ( 48 ) ) * + - 45 + + - 73 AS col1
----
-253

skipif mysql # not compatible
query I rowsort label-1808
SELECT ( - - 46 ) / COALESCE ( + 10, + COUNT ( * ) + - 12 - + - 15 / + CAST ( NULL AS INTEGER ) / - ( 48 ) ) * + - 45 + + - 73 AS col1
----
-253

onlyif mysql # DIV for integer division: 
query I rowsort label-1809
SELECT 16 DIV + + 43 col2
----
0

skipif mysql # not compatible
query I rowsort label-1809
SELECT 16 / + + 43 col2
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-1810
SELECT DISTINCT + + 64 DIV 61 * 50, 78 * + + 35 AS col0
----
50
2730

skipif mysql # not compatible
query II rowsort label-1810
SELECT DISTINCT + + 64 / 61 * 50, 78 * + + 35 AS col0
----
50
2730

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

skipif mysql # not compatible
query I rowsort label-1811
SELECT DISTINCT 2 + - COUNT ( * ) AS col0
----
1

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

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

query II rowsort
SELECT DISTINCT - 77, 2 AS col1
----
-77
2

query I rowsort
SELECT ALL - 17 + - + 74
----
-91

query II rowsort
SELECT 25 col0, + 82 col1
----
25
82

onlyif mysql # aggregate syntax: 
query I rowsort label-1816
SELECT ALL + - 22 + + COUNT( * ) + - 47 AS col1
----
-68

skipif mysql # not compatible
query I rowsort label-1816
SELECT ALL + - 22 + + COUNT ( * ) + - 47 AS col1
----
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1817
SELECT - CAST( NULL AS SIGNED ) + - + 57 / 73 * 59
----
NULL

skipif mysql # not compatible
query I rowsort label-1817
SELECT - CAST ( NULL AS INTEGER ) + - + 57 / 73 * 59
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1818
SELECT + + 25 AS col1, + 64 * - SUM( + - 91 )
----
25
5824

skipif mysql # not compatible
query II rowsort label-1818
SELECT + + 25 AS col1, + 64 * - SUM ( + - 91 )
----
25
5824

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1819
SELECT DISTINCT + 14 + - 30 + + 32 - + + 18 + - ( - 77 ) - + CAST( NULL AS SIGNED ) + + - CAST( - COALESCE ( - + 41, - COUNT( * ) ) AS SIGNED ) * 98 * - - COUNT( * ) AS col2, + 23 AS col1
----
NULL
23

skipif mysql # not compatible
query II rowsort label-1819
SELECT DISTINCT + 14 + - 30 + + 32 - + + 18 + - ( - 77 ) - + CAST ( NULL AS INTEGER ) + + - CAST ( - COALESCE ( - + 41, - COUNT ( * ) ) AS INTEGER ) * 98 * - - COUNT ( * ) AS col2, + 23 AS col1
----
NULL
23

onlyif mysql # aggregate syntax: 
query I rowsort label-1820
SELECT ALL - - COUNT( * ) + - 4 * 99 col0
----
-395

skipif mysql # not compatible
query I rowsort label-1820
SELECT ALL - - COUNT ( * ) + - 4 * 99 col0
----
-395

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1822
SELECT ALL - + SUM( DISTINCT + 28 ) AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-1822
SELECT ALL - + SUM ( DISTINCT + 28 ) AS col1
----
-28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1823
SELECT DISTINCT - + 80 + + COUNT( * ) - 34 DIV - - 33
----
-80

skipif mysql # not compatible
query I rowsort label-1823
SELECT DISTINCT - + 80 + + COUNT ( * ) - 34 / - - 33
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-1824
SELECT DISTINCT COALESCE ( - 25, - + 74 ) AS col0, 59 AS col0, - NULLIF ( - + CAST( - 43 AS SIGNED ), + + 2 * 24 * + 19 * COALESCE ( - + COUNT( * ), 29, + COALESCE ( 13, + 18 ), + MIN( DISTINCT 60 ) ) DIV - + 91 * + 8 * - MAX( - 39 ) + - 24 - + SUM( DISTINCT + 92 ) ) + 87 DIV - 94
----
-25
59
-43

skipif mysql # not compatible
query III rowsort label-1824
SELECT DISTINCT COALESCE ( - 25, - + 74 ) AS col0, 59 AS col0, - NULLIF ( - + CAST ( - 43 AS INTEGER ), + + 2 * 24 * + 19 * COALESCE ( - + COUNT ( * ), 29, + COALESCE ( 13, + 18 ), + MIN ( DISTINCT 60 ) ) / - + 91 * + 8 * - MAX ( - 39 ) + - 24 - + SUM ( DISTINCT + 92 ) ) + 87 / - 94
----
-25
59
-43

query I rowsort
SELECT 97 + 83 + 9
----
189

onlyif mysql # aggregate syntax: 
query I rowsort label-1826
SELECT DISTINCT - MIN( DISTINCT - 19 ) AS col2
----
19

skipif mysql # not compatible
query I rowsort label-1826
SELECT DISTINCT - MIN ( DISTINCT - 19 ) AS col2
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-1827
SELECT 66 - 87 DIV - 13 AS col1
----
72

skipif mysql # not compatible
query I rowsort label-1827
SELECT 66 - 87 / - 13 AS col1
----
72

query I rowsort
SELECT ( - + 46 ) * + 55
----
-2530

query I rowsort
SELECT 56 + + - NULLIF ( - + 25, - - 7 ) + - 24 * + 86 * 73 AS col1
----
-150591

query I rowsort
SELECT ALL 59 * - ( + 58 ) AS col0
----
-3422

query I rowsort
SELECT ALL 6 * 7 AS col0
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1832
SELECT CASE - CAST( + + SUM( - - 35 ) AS SIGNED ) WHEN - 78 / 5 THEN - CAST( - + 9 AS SIGNED ) + 22 + 41 ELSE NULL END + - 49 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1832
SELECT CASE - CAST ( + + SUM ( - - 35 ) AS INTEGER ) WHEN - 78 / 5 THEN - CAST ( - + 9 AS INTEGER ) + 22 + 41 ELSE NULL END + - 49 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1833
SELECT COUNT( DISTINCT + ( - 44 ) ) * - 45 * + 25
----
-1125

skipif mysql # not compatible
query I rowsort label-1833
SELECT COUNT ( DISTINCT + ( - 44 ) ) * - 45 * + 25
----
-1125

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1834
SELECT COALESCE ( - NULLIF ( + 62, 51 + - - COALESCE ( NULLIF ( 27, - 71 * CAST( 16 AS SIGNED ) ), + + 70, - 65, COALESCE ( + + 79, - 6 * - + 38 / - MIN( + 22 ) * - 29 * 55 * + 37 * ( - + 43 ) * + 43 + - 73 + 96 ) ) ), CASE 73 WHEN 65 THEN 77 WHEN - 56 * + COUNT( * ) + + 25 THEN NULL ELSE NULL END - - 47 ) * 22
----
-1364

skipif mysql # not compatible
query I rowsort label-1834
SELECT COALESCE ( - NULLIF ( + 62, 51 + - - COALESCE ( NULLIF ( 27, - 71 * CAST ( 16 AS INTEGER ) ), + + 70, - 65, COALESCE ( + + 79, - 6 * - + 38 / - MIN ( + 22 ) * - 29 * 55 * + 37 * ( - + 43 ) * + 43 + - 73 + 96 ) ) ), CASE 73 WHEN 65 THEN 77 WHEN - 56 * + COUNT ( * ) + + 25 THEN NULL ELSE NULL END - - 47 ) * 22
----
-1364

query I rowsort
SELECT ALL 93 + + 92 * 65
----
6073

query I rowsort
SELECT ALL + 20 * - 45 + 8 col2
----
-892

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1837
SELECT ALL - - 14 * - + 79 + + + 76 / - 95 / - + ( + - 29 ) + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1837
SELECT ALL - - 14 * - + 79 + + + 76 / - 95 / - + ( + - 29 ) + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL - - 31 col0
----
31

query I rowsort
SELECT 71 * - + 33 + 93 AS col0
----
-2250

onlyif mysql # aggregate syntax: 
query II rowsort label-1840
SELECT ALL - COUNT( * ) * - 90 + 71 + + 19 + + + 18 AS col0, - ( - + ( + COUNT( * ) ) ) * - 7
----
198
-7

skipif mysql # not compatible
query II rowsort label-1840
SELECT ALL - COUNT ( * ) * - 90 + 71 + + 19 + + + 18 AS col0, - ( - + ( + COUNT ( * ) ) ) * - 7
----
198
-7

query I rowsort
SELECT - 62 * + - ( - 35 ) + - 88 * + 83 * + - COALESCE ( 67, - 0 )
----
487198

onlyif mysql # aggregate syntax: 
query II rowsort label-1842
SELECT + + COUNT( - + 83 ) col1, + 56 AS col0
----
1
56

skipif mysql # not compatible
query II rowsort label-1842
SELECT + + COUNT ( - + 83 ) col1, + 56 AS col0
----
1
56

onlyif mysql # aggregate syntax: 
query I rowsort label-1843
SELECT DISTINCT - 33 * + 27 + - - 49 + COUNT( * ) + 5 - - CASE - + 93 WHEN - 76 * - COUNT( * ) + + + 67 THEN NULL ELSE 62 END AS col2
----
-774

skipif mysql # not compatible
query I rowsort label-1843
SELECT DISTINCT - 33 * + 27 + - - 49 + COUNT ( * ) + 5 - - CASE - + 93 WHEN - 76 * - COUNT ( * ) + + + 67 THEN NULL ELSE 62 END AS col2
----
-774

onlyif mysql # DIV for integer division: 
query I rowsort label-1844
SELECT ALL + ( 65 ) DIV - + 92 * + + 11 * 92 col2
----
0

skipif mysql # not compatible
query I rowsort label-1844
SELECT ALL + ( 65 ) / - + 92 * + + 11 * 92 col2
----
0

query I rowsort
SELECT - 51 + 52
----
1

query I rowsort
SELECT DISTINCT + + COALESCE ( + 47, - 69 )
----
47

query I rowsort
SELECT ALL + 44 - + - 97 - - 0
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-1848
SELECT - - 89 + + 39 * COUNT( * ) * + MIN( - 31 )
----
-1120

skipif mysql # not compatible
query I rowsort label-1848
SELECT - - 89 + + 39 * COUNT ( * ) * + MIN ( - 31 )
----
-1120

query I rowsort
SELECT ALL + 84 * + + 24 AS col1
----
2016

query I rowsort
SELECT - 96 * + - 59 AS col0
----
5664

onlyif mysql # aggregate syntax: 
query I rowsort label-1851
SELECT - 60 + MAX( DISTINCT - 6 ) * - 99
----
534

skipif mysql # not compatible
query I rowsort label-1851
SELECT - 60 + MAX ( DISTINCT - 6 ) * - 99
----
534

query I rowsort
SELECT DISTINCT + 5 * - 36 * 88 AS col1
----
-15840

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1853
SELECT + 69 * 69 + COUNT( * ) * 68 * - 70 + + CAST( NULL AS SIGNED ), + 11 AS col2
----
NULL
11

skipif mysql # not compatible
query II rowsort label-1853
SELECT + 69 * 69 + COUNT ( * ) * 68 * - 70 + + CAST ( NULL AS INTEGER ), + 11 AS col2
----
NULL
11

onlyif mysql # aggregate syntax: 
query II rowsort label-1854
SELECT ALL CASE + 28 WHEN + 85 / + COUNT( DISTINCT + 16 ) THEN + 63 ELSE NULL END AS col1, - 35 col1
----
NULL
-35

skipif mysql # not compatible
query II rowsort label-1854
SELECT ALL CASE + 28 WHEN + 85 / + COUNT ( DISTINCT + 16 ) THEN + 63 ELSE NULL END AS col1, - 35 col1
----
NULL
-35

query II rowsort
SELECT DISTINCT + 6 * - 7 * NULLIF ( - 29, - 73 ), + 8 AS col2
----
1218
8

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1857
SELECT ALL COUNT( * ) DIV - 19 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1857
SELECT ALL COUNT ( * ) / - 19 AS col0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-1858
SELECT - ( + 33 ) DIV 53 + + ( - 33 ) col2, 82
----
-33
82

skipif mysql # not compatible
query II rowsort label-1858
SELECT - ( + 33 ) / 53 + + ( - 33 ) col2, 82
----
-33
82

onlyif mysql # aggregate syntax: 
query I rowsort label-1859
SELECT ALL CASE + COUNT( * ) WHEN + 65 THEN - 23 + + ( + 46 ) + ( - 5 ) ELSE - - MIN( ALL - NULLIF ( 32, - - COALESCE ( + 84, + 15 ) ) ) END col0
----
-32

skipif mysql # not compatible
query I rowsort label-1859
SELECT ALL CASE + COUNT ( * ) WHEN + 65 THEN - 23 + + ( + 46 ) + ( - 5 ) ELSE - - MIN ( ALL - NULLIF ( 32, - - COALESCE ( + 84, + 15 ) ) ) END col0
----
-32

query I rowsort
SELECT - 88 - 25 * + 40
----
-1088

query I rowsort
SELECT DISTINCT + 70 + + - 4
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-1862
SELECT - ( - 28 ) - - 55 * - 95 * - COUNT( - ( - 64 ) ) AS col1
----
5253

skipif mysql # not compatible
query I rowsort label-1862
SELECT - ( - 28 ) - - 55 * - 95 * - COUNT ( - ( - 64 ) ) AS col1
----
5253

onlyif mysql # DIV for integer division: 
query I rowsort label-1863
SELECT - ( - 1 ) DIV - 22 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1863
SELECT - ( - 1 ) / - 22 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1864
SELECT + 88 + + 26 DIV ( - 16 ) * + 55 AS col2
----
33

skipif mysql # not compatible
query I rowsort label-1864
SELECT + 88 + + 26 / ( - 16 ) * + 55 AS col2
----
33

query I rowsort
SELECT DISTINCT 11 * + 66 AS col0
----
726

query I rowsort
SELECT DISTINCT + 16 + + 1 AS col1
----
17

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

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

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

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

query I rowsort
SELECT ALL - 52 + 16 AS col1
----
-36

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

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

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

query I rowsort
SELECT ALL - 50 + 3
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1873
SELECT ALL + 42 AS col1, 13 * CAST( + - 69 AS SIGNED ) AS col2
----
42
-897

skipif mysql # not compatible
query II rowsort label-1873
SELECT ALL + 42 AS col1, 13 * CAST ( + - 69 AS INTEGER ) AS col2
----
42
-897

query I rowsort
SELECT DISTINCT 6 + 99
----
105

query I rowsort
SELECT COALESCE ( + 33, - ( + - 84 ) )
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-1876
SELECT DISTINCT - + ( - COUNT( * ) ) * - + 32 + + 34 - + + 98 AS col1
----
-96

skipif mysql # not compatible
query I rowsort label-1876
SELECT DISTINCT - + ( - COUNT ( * ) ) * - + 32 + + 34 - + + 98 AS col1
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-1877
SELECT ALL - 36 * + COUNT( * ) - + 65
----
-101

skipif mysql # not compatible
query I rowsort label-1877
SELECT ALL - 36 * + COUNT ( * ) - + 65
----
-101

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1878
SELECT DISTINCT + 62 * CAST( NULL AS SIGNED ) / 36 + - 11 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1878
SELECT DISTINCT + 62 * CAST ( NULL AS INTEGER ) / 36 + - 11 col2
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1880
SELECT DISTINCT + COUNT( * ) AS col1, + ( - 82 ) DIV + 69 AS col2
----
1
-1

skipif mysql # not compatible
query II rowsort label-1880
SELECT DISTINCT + COUNT ( * ) AS col1, + ( - 82 ) / + 69 AS col2
----
1
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1881
SELECT ALL + NULLIF ( + + COUNT( * ), - + 9 * - 74 * + + ( + - ( - 25 ) ) ) AS col2, + ( - + 46 ) DIV + + 27
----
1
-1

skipif mysql # not compatible
query II rowsort label-1881
SELECT ALL + NULLIF ( + + COUNT ( * ), - + 9 * - 74 * + + ( + - ( - 25 ) ) ) AS col2, + ( - + 46 ) / + + 27
----
1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1882
SELECT DISTINCT + MAX( + - 28 ) * - - 40 + - 18
----
-1138

skipif mysql # not compatible
query I rowsort label-1882
SELECT DISTINCT + MAX ( + - 28 ) * - - 40 + - 18
----
-1138

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1883
SELECT ALL 52 * - 1 DIV + 60 + - - 58 + - SUM( ALL - 53 ) AS col1, + CAST( NULL AS SIGNED ) * - - 21 * + 58 * - - ( + + AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) ) DIV 99 AS col1
----
111
NULL

skipif mysql # not compatible
query II rowsort label-1883
SELECT ALL 52 * - 1 / + 60 + - - 58 + - SUM ( ALL - 53 ) AS col1, + CAST ( NULL AS INTEGER ) * - - 21 * + 58 * - - ( + + AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) ) / 99 AS col1
----
111
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1884
SELECT + ( - - 27 ) * + 92 + 60 DIV - 72 AS col2
----
2484

skipif mysql # not compatible
query I rowsort label-1884
SELECT + ( - - 27 ) * + 92 + 60 / - 72 AS col2
----
2484

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

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

query II rowsort
SELECT + 65 + 21, + 34 AS col0
----
86
34

onlyif mysql # aggregate syntax: 
query I rowsort label-1887
SELECT ALL NULLIF ( - - COUNT( * ), 36 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1887
SELECT ALL NULLIF ( - - COUNT ( * ), 36 ) AS col1
----
1

query I rowsort
SELECT DISTINCT + 75 + - 7 + - - 6 * - 76 * + - 31 AS col2
----
14204

onlyif mysql # aggregate syntax: 
query II rowsort label-1889
SELECT DISTINCT ( + 14 ) AS col0, 69 + + COUNT( 21 ) + + - 33 AS col1
----
14
37

skipif mysql # not compatible
query II rowsort label-1889
SELECT DISTINCT ( + 14 ) AS col0, 69 + + COUNT ( 21 ) + + - 33 AS col1
----
14
37

onlyif mysql # aggregate syntax: 
query I rowsort label-1890
SELECT ALL + MAX( - + 68 ) + + 97 - - 26 + 12
----
67

skipif mysql # not compatible
query I rowsort label-1890
SELECT ALL + MAX ( - + 68 ) + + 97 - - 26 + 12
----
67

onlyif mysql # aggregate syntax: 
query II rowsort label-1891
SELECT DISTINCT 82 + - COALESCE ( + 29, + + 91 + + - ( - - ( + - 14 ) ) + + 99 * + COUNT( * ) ) * + 46 - + 1 AS col1, + 96
----
-1253
96

skipif mysql # not compatible
query II rowsort label-1891
SELECT DISTINCT 82 + - COALESCE ( + 29, + + 91 + + - ( - - ( + - 14 ) ) + + 99 * + COUNT ( * ) ) * + 46 - + 1 AS col1, + 96
----
-1253
96

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

skipif mysql # not compatible
query I rowsort label-1892
SELECT ALL - 66 + CAST ( - 9 AS INTEGER )
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1893
SELECT ALL - 57 + + - 16 * - + COUNT( * ) DIV COALESCE ( - 50, + - 59 * + 14 DIV + ( + + 46 ) + - CAST( - 40 AS SIGNED ) + - + 94, + 11 - - 18 ) + 40
----
-17

skipif mysql # not compatible
query I rowsort label-1893
SELECT ALL - 57 + + - 16 * - + COUNT ( * ) / COALESCE ( - 50, + - 59 * + 14 / + ( + + 46 ) + - CAST ( - 40 AS INTEGER ) + - + 94, + 11 - - 18 ) + 40
----
-17

query II rowsort
SELECT 34 AS col0, 28 * + + 75
----
34
2100

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1896
SELECT - COALESCE ( - 26, - 79 ) + + - NULLIF ( - NULLIF ( + 26, - - CASE - 96 WHEN - + COUNT( * ) THEN - 55 WHEN - 7 THEN NULL ELSE NULL END * - 69 + 62 ), - + 75 ) DIV ( - - 21 ) + + - COUNT( * ) + + - 12 + - 52 * 45 AS col1
----
-2326

skipif mysql # not compatible
query I rowsort label-1896
SELECT - COALESCE ( - 26, - 79 ) + + - NULLIF ( - NULLIF ( + 26, - - CASE - 96 WHEN - + COUNT ( * ) THEN - 55 WHEN - 7 THEN NULL ELSE NULL END * - 69 + 62 ), - + 75 ) / ( - - 21 ) + + - COUNT ( * ) + + - 12 + - 52 * 45 AS col1
----
-2326

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1897
SELECT - - COUNT( * ) * 48 * - 68 * + + CAST( - - ( + 36 ) AS SIGNED ), - 39 DIV + COUNT( * ) + - + ( + 63 ) AS col0
----
-117504
-102

skipif mysql # not compatible
query II rowsort label-1897
SELECT - - COUNT ( * ) * 48 * - 68 * + + CAST ( - - ( + 36 ) AS INTEGER ), - 39 / + COUNT ( * ) + - + ( + 63 ) AS col0
----
-117504
-102

query I rowsort
SELECT - - 40 * 33 + + 83 col2
----
1403

onlyif mysql # DIV for integer division: 
query I rowsort label-1899
SELECT - 39 DIV - 88 + + + 86
----
86

skipif mysql # not compatible
query I rowsort label-1899
SELECT - 39 / - 88 + + + 86
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-1900
SELECT - 92 + - - COUNT( * ) + - COUNT( * ) * + 84 AS col1
----
-175

skipif mysql # not compatible
query I rowsort label-1900
SELECT - 92 + - - COUNT ( * ) + - COUNT ( * ) * + 84 AS col1
----
-175

query I rowsort
SELECT ALL - + 3 * - 38
----
114

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

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

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

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

query I rowsort
SELECT - - 39 * 6 + + 11 AS col0
----
245

query II rowsort
SELECT DISTINCT - - 98 AS col2, 37
----
98
37

query I rowsort
SELECT ALL - 8 * + 44 AS col0
----
-352

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1907
SELECT + NULLIF ( - + 72, - - 41 + COALESCE ( + CAST( NULL AS SIGNED ), - + 92, 3 ) + - - 70 - + 84 ) col0
----
-72

skipif mysql # not compatible
query I rowsort label-1907
SELECT + NULLIF ( - + 72, - - 41 + COALESCE ( + CAST ( NULL AS INTEGER ), - + 92, 3 ) + - - 70 - + 84 ) col0
----
-72

query I rowsort
SELECT ALL + + 23 * - - 50
----
1150

query I rowsort
SELECT - 15 * 54 + - ( + 30 ) AS col0
----
-840

query I rowsort
SELECT - ( + - 48 ) + - - 43
----
91

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

query I rowsort
SELECT - 69 + CASE - - 30 WHEN + ( - ( - ( + 79 ) ) ) THEN 88 + + 96 WHEN + - 52 + 42 THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1913
SELECT ALL - CASE CASE 59 WHEN + COUNT( * ) - + 64 + - - 52 - 36 / + 98 + - + MAX( + 65 ) * - - 46 THEN + + 19 ELSE + COUNT( * ) END WHEN + - 63 * - MIN( - 19 ) THEN NULL ELSE + COUNT( * ) END AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1913
SELECT ALL - CASE CASE 59 WHEN + COUNT ( * ) - + 64 + - - 52 - 36 / + 98 + - + MAX ( + 65 ) * - - 46 THEN + + 19 ELSE + COUNT ( * ) END WHEN + - 63 * - MIN ( - 19 ) THEN NULL ELSE + COUNT ( * ) END AS col1
----
-1

query I rowsort
SELECT - 13 * - 15
----
195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1915
SELECT + ( + CAST( - + 21 AS SIGNED ) ) * - 87 + - 53 + - 69
----
1705

skipif mysql # not compatible
query I rowsort label-1915
SELECT + ( + CAST ( - + 21 AS INTEGER ) ) * - 87 + - 53 + - 69
----
1705

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1916
SELECT + 15 DIV ( - COUNT( * ) ) + + 18, 46 AS col2
----
3
46

skipif mysql # not compatible
query II rowsort label-1916
SELECT + 15 / ( - COUNT ( * ) ) + + 18, 46 AS col2
----
3
46

onlyif mysql # DIV for integer division: 
query I rowsort label-1917
SELECT 3 * + - 47 DIV + 21
----
-6

skipif mysql # not compatible
query I rowsort label-1917
SELECT 3 * + - 47 / + 21
----
-6

query II rowsort
SELECT DISTINCT - + 61 AS col1, 0 AS col2
----
-61
0

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

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

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

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

query I rowsort
SELECT DISTINCT 48 + - 56
----
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-1922
SELECT ALL 7 + - - 17 AS col2, COUNT( * )
----
24
1

skipif mysql # not compatible
query II rowsort label-1922
SELECT ALL 7 + - - 17 AS col2, COUNT ( * )
----
24
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1923
SELECT ALL 83 + ( + + ( 78 ) ) * MIN( DISTINCT CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1923
SELECT ALL 83 + ( + + ( 78 ) ) * MIN ( DISTINCT CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1924
SELECT 56 * - - CASE 96 WHEN - + COUNT( * ) THEN 61 - COALESCE ( + + 41, - - 92, - + CASE - 84 WHEN - - 28 THEN 50 + + + 44 + - + 16 + + COUNT( * ) + + 1 / + + 18 * - 78 END + + COUNT( * ) + + 89 ) END AS col1, + 65
----
NULL
65

skipif mysql # not compatible
query II rowsort label-1924
SELECT 56 * - - CASE 96 WHEN - + COUNT ( * ) THEN 61 - COALESCE ( + + 41, - - 92, - + CASE - 84 WHEN - - 28 THEN 50 + + + 44 + - + 16 + + COUNT ( * ) + + 1 / + + 18 * - 78 END + + COUNT ( * ) + + 89 ) END AS col1, + 65
----
NULL
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1925
SELECT 91 + + COUNT( * ) DIV SUM( DISTINCT - + 46 ) * - 57 * 54
----
91

skipif mysql # not compatible
query I rowsort label-1925
SELECT 91 + + COUNT ( * ) / SUM ( DISTINCT - + 46 ) * - 57 * 54
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-1926
SELECT 62 DIV 82 * 64 * 10
----
0

skipif mysql # not compatible
query I rowsort label-1926
SELECT 62 / 82 * 64 * 10
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1927
SELECT CAST( NULL AS SIGNED ) + 68 - + + ( 97 ) + 88 * + - 52 * - 12 * + + 51 + + MAX( - 57 ) + - 45
----
NULL

skipif mysql # not compatible
query I rowsort label-1927
SELECT CAST ( NULL AS INTEGER ) + 68 - + + ( 97 ) + 88 * + - 52 * - 12 * + + 51 + + MAX ( - 57 ) + - 45
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1928
SELECT ALL COALESCE ( - - 80, - 35 * + + 50, - 74 ) + + - ( + + CAST( NULL AS SIGNED ) ) - 30
----
NULL

skipif mysql # not compatible
query I rowsort label-1928
SELECT ALL COALESCE ( - - 80, - 35 * + + 50, - 74 ) + + - ( + + CAST ( NULL AS INTEGER ) ) - 30
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1929
SELECT CAST( + - 94 AS SIGNED ) + 30 + + COUNT( * ) DIV + 3 * - 70 AS col2
----
-64

skipif mysql # not compatible
query I rowsort label-1929
SELECT CAST ( + - 94 AS INTEGER ) + 30 + + COUNT ( * ) / + 3 * - 70 AS col2
----
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-1930
SELECT ALL - 98 DIV + - 73 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1930
SELECT ALL - 98 / + - 73 AS col1
----
1

query I rowsort
SELECT - 28 * + 23
----
-644

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1933
SELECT - COUNT( * ) + - 62 * - - 60 * + + 54 + - + 79 + 88 * COUNT( * ) DIV 29
----
-200957

skipif mysql # not compatible
query I rowsort label-1933
SELECT - COUNT ( * ) + - 62 * - - 60 * + + 54 + - + 79 + 88 * COUNT ( * ) / 29
----
-200957

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

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

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

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

query I rowsort
SELECT DISTINCT - 6 - - 65 * + - 35 AS col2
----
-2281

query I rowsort
SELECT DISTINCT - COALESCE ( 10, - 10 * + + 91, + COALESCE ( + + 65, + 24 + + - ( 18 ) - 79 * + + 91 ) ) AS col0
----
-10

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

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

query I rowsort
SELECT 97 * - 80
----
-7760

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

skipif mysql # not compatible
query I rowsort label-1940
SELECT ALL - COUNT ( 36 ) / + - 76 * CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT ALL - - 96 + - ( 75 ) AS col1
----
21

query I rowsort
SELECT DISTINCT + 56 + - - CASE 99 WHEN 30 THEN 61 * 5 ELSE + 91 END
----
147

query I rowsort
SELECT ALL - 1 + + 81 AS col0
----
80

onlyif mysql # DIV for integer division: 
query I rowsort label-1944
SELECT + 19 DIV + + 17 + + + 62 AS col0
----
63

skipif mysql # not compatible
query I rowsort label-1944
SELECT + 19 / + + 17 + + + 62 AS col0
----
63

query II rowsort
SELECT + 71 col0, + 82 - + 41
----
71
41

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

query I rowsort
SELECT 65 + 62
----
127

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1948
SELECT 1 * - + 16 DIV - CAST( NULL AS SIGNED ) AS col2, + 95 DIV - + 7 + 79
----
NULL
66

skipif mysql # not compatible
query II rowsort label-1948
SELECT 1 * - + 16 / - CAST ( NULL AS INTEGER ) AS col2, + 95 / - + 7 + 79
----
NULL
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1949
SELECT + COUNT( * ), 35 DIV - - 97 AS col2
----
1
0

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

query I rowsort
SELECT DISTINCT 95 + + - 41 * - - 44
----
-1709

onlyif mysql # aggregate syntax: 
query I rowsort label-1951
SELECT ALL 30 + - 70 + - COUNT( * ) * 43 AS col1
----
-83

skipif mysql # not compatible
query I rowsort label-1951
SELECT ALL 30 + - 70 + - COUNT ( * ) * 43 AS col1
----
-83

query II rowsort
SELECT ALL 47 * 23 * + 44, + 95 AS col0
----
47564
95

query II rowsort
SELECT + 39 col0, 89 + - 24 + 48
----
39
113

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

skipif mysql # not compatible
query I rowsort label-1954
SELECT DISTINCT - 57 + COUNT ( * ) AS col0
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-1955
SELECT ALL 94 - 33 * 88 + + COUNT( * )
----
-2809

skipif mysql # not compatible
query I rowsort label-1955
SELECT ALL 94 - 33 * 88 + + COUNT ( * )
----
-2809

query I rowsort
SELECT 26 - 85
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1957
SELECT ALL 4 col1, CAST( - - 15 AS SIGNED ) col0
----
4
15

skipif mysql # not compatible
query II rowsort label-1957
SELECT ALL 4 col1, CAST ( - - 15 AS INTEGER ) col0
----
4
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1958
SELECT DISTINCT COUNT( * ) * COUNT( * ) DIV 46 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1958
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) / 46 AS col2
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1960
SELECT COUNT( * ) * + 54 * - 68 * + ( + + 82 )
----
-301104

skipif mysql # not compatible
query I rowsort label-1960
SELECT COUNT ( * ) * + 54 * - 68 * + ( + + 82 )
----
-301104

onlyif mysql # aggregate syntax: 
query I rowsort label-1961
SELECT + 34 + COUNT( DISTINCT - 57 )
----
35

skipif mysql # not compatible
query I rowsort label-1961
SELECT + 34 + COUNT ( DISTINCT - 57 )
----
35

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1964
SELECT + + 88 + - 15 + - COUNT ( * ) * - MIN ( ALL + + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1965
SELECT ALL 92 AS col1, - 59 * + 75 - + + 3 + + 66 DIV - 12 - - 5 + - - MAX( DISTINCT + ( 88 ) ) - 98 DIV 54 * + MIN( - + 62 ) + + 91 AS col1
----
92
-4187

skipif mysql # not compatible
query II rowsort label-1965
SELECT ALL 92 AS col1, - 59 * + 75 - + + 3 + + 66 / - 12 - - 5 + - - MAX ( DISTINCT + ( 88 ) ) - 98 / 54 * + MIN ( - + 62 ) + + 91 AS col1
----
92
-4187

onlyif mysql # DIV for integer division: 
query I rowsort label-1966
SELECT DISTINCT + 19 DIV - + 1
----
-19

skipif mysql # not compatible
query I rowsort label-1966
SELECT DISTINCT + 19 / - + 1
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1967
SELECT ALL - CAST( NULL AS SIGNED ) / COUNT( * ) * - CAST( + - 26 AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1967
SELECT ALL - CAST ( NULL AS INTEGER ) / COUNT ( * ) * - CAST ( + - 26 AS REAL ) AS col2
----
NULL

query II rowsort
SELECT DISTINCT 48, - 99 AS col1
----
48
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-1969
SELECT + CASE + 9 WHEN 84 THEN - 36 WHEN + + CASE + 30 WHEN - 26 THEN 29 WHEN - COUNT( * ) THEN NULL ELSE NULL END THEN + 50 ELSE NULL END + - 13 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1969
SELECT + CASE + 9 WHEN 84 THEN - 36 WHEN + + CASE + 30 WHEN - 26 THEN 29 WHEN - COUNT ( * ) THEN NULL ELSE NULL END THEN + 50 ELSE NULL END + - 13 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1970
SELECT DISTINCT + ( + CAST( NULL AS SIGNED ) ) / + 84 * 46 col0, 25 AS col0
----
NULL
25

skipif mysql # not compatible
query II rowsort label-1970
SELECT DISTINCT + ( + CAST ( NULL AS INTEGER ) ) / + 84 * 46 col0, 25 AS col0
----
NULL
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1971
SELECT + - 11 + CAST( + - 0 AS SIGNED ) * 16
----
-11

skipif mysql # not compatible
query I rowsort label-1971
SELECT + - 11 + CAST ( + - 0 AS INTEGER ) * 16
----
-11

query II rowsort
SELECT 60 col1, + ( - - 48 ) AS col1
----
60
48

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

query I rowsort
SELECT ALL + + 44 + 39 + ( + - 75 )
----
8

query I rowsort
SELECT + 4 + 65
----
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1976
SELECT + COUNT( - 77 ) DIV + COUNT( * ) + - 63 + - 70 * - + 42 col1
----
2878

skipif mysql # not compatible
query I rowsort label-1976
SELECT + COUNT ( - 77 ) / + COUNT ( * ) + - 63 + - 70 * - + 42 col1
----
2878

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1977
SELECT ALL - ( 29 ) * - CASE 92 WHEN - 50 * + 71 - + 16 * + AVG ( ALL - 56 ) + - 94 + + 93 - - 13 * 29 * + 17 THEN - COALESCE ( - CAST( + COUNT( * ) AS SIGNED ), - + COUNT( * ), CAST( - - 6 AS SIGNED ) * COALESCE ( + 71, NULLIF ( - 58, - + COUNT( * ) * 82 ) ) * + - 16 * + 81 + 42 ) / 94 WHEN + 12 * ( - 65 ) THEN NULL ELSE NULL END + COUNT( * ) * - 47 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1977
SELECT ALL - ( 29 ) * - CASE 92 WHEN - 50 * + 71 - + 16 * + AVG ( ALL - 56 ) + - 94 + + 93 - - 13 * 29 * + 17 THEN - COALESCE ( - CAST ( + COUNT ( * ) AS INTEGER ), - + COUNT ( * ), CAST ( - - 6 AS INTEGER ) * COALESCE ( + 71, NULLIF ( - 58, - + COUNT ( * ) * 82 ) ) * + - 16 * + 81 + 42 ) / 94 WHEN + 12 * ( - 65 ) THEN NULL ELSE NULL END + COUNT ( * ) * - 47 AS col0
----
NULL

query II rowsort
SELECT DISTINCT + + 9 AS col2, + 97 + + 98 AS col1
----
9
195

query I rowsort
SELECT - 95 + 37 AS col0
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-1980
SELECT + CASE - + 5 WHEN - 31 DIV + 87 - 20 + + - 25 * + - 56 * + 62 THEN NULL ELSE - + 7 END DIV - 17 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1980
SELECT + CASE - + 5 WHEN - 31 / + 87 - 20 + + - 25 * + - 56 * + 62 THEN NULL ELSE - + 7 END / - 17 AS col1
----
0

query I rowsort
SELECT - 72 + - 83 * + - 94 AS col0
----
7730

query I rowsort
SELECT NULLIF ( - NULLIF ( - - 62, 43 * + 57 * - + 23 ), - 12 + + 8 ) AS col2
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-1983
SELECT 6 * - 90 * 86 * + ( + SUM( - 3 ) ) + - 64 * - 46
----
142264

skipif mysql # not compatible
query I rowsort label-1983
SELECT 6 * - 90 * 86 * + ( + SUM ( - 3 ) ) + - 64 * - 46
----
142264

onlyif mysql # aggregate syntax: 
query I rowsort label-1984
SELECT ALL MIN( - + 81 ) * + MIN( DISTINCT - 80 ) + + - 25 col0
----
6455

skipif mysql # not compatible
query I rowsort label-1984
SELECT ALL MIN ( - + 81 ) * + MIN ( DISTINCT - 80 ) + + - 25 col0
----
6455

query I rowsort
SELECT DISTINCT + 16 * + 33
----
528

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1986
SELECT - CAST( NULL AS SIGNED ) + COALESCE ( + + 65, - 74 * - 37, + - 53 ) + - + 81 - - 9 - + - 44
----
NULL

skipif mysql # not compatible
query I rowsort label-1986
SELECT - CAST ( NULL AS INTEGER ) + COALESCE ( + + 65, - 74 * - 37, + - 53 ) + - + 81 - - 9 - + - 44
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1987
SELECT ALL + MAX( + 3 ) * - 35
----
-105

skipif mysql # not compatible
query I rowsort label-1987
SELECT ALL + MAX ( + 3 ) * - 35
----
-105

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1988
SELECT ALL - 43 * + CAST( NULL AS SIGNED ) AS col1, - CASE + CAST( + ( 8 ) AS SIGNED ) WHEN - COALESCE ( - + 10, + 35 ) THEN NULL WHEN 68 + + ( - + 6 ) THEN + 83 * - CAST( NULL AS DECIMAL ) + - ( + 52 ) + - 83 WHEN - 17 THEN NULL END
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1988
SELECT ALL - 43 * + CAST ( NULL AS INTEGER ) AS col1, - CASE + CAST ( + ( 8 ) AS INTEGER ) WHEN - COALESCE ( - + 10, + 35 ) THEN NULL WHEN 68 + + ( - + 6 ) THEN + 83 * - CAST ( NULL AS REAL ) + - ( + 52 ) + - 83 WHEN - 17 THEN NULL END
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1989
SELECT ALL 20 * - - NULLIF ( + 26, 57 + 63 + - - COUNT( * ) * - COUNT( * ) ) - - 51
----
571

skipif mysql # not compatible
query I rowsort label-1989
SELECT ALL 20 * - - NULLIF ( + 26, 57 + 63 + - - COUNT ( * ) * - COUNT ( * ) ) - - 51
----
571

onlyif mysql # aggregate syntax: 
query I rowsort label-1990
SELECT NULLIF ( + 44, + COUNT( * ) * + + 69 ) AS col1
----
44

skipif mysql # not compatible
query I rowsort label-1990
SELECT NULLIF ( + 44, + COUNT ( * ) * + + 69 ) AS col1
----
44

query I rowsort
SELECT ALL + NULLIF ( + ( - 32 ), + 57 ) * + 74 col1
----
-2368

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1992
SELECT ALL + 98 * + 80 DIV - COUNT( * ) col0
----
-7840

skipif mysql # not compatible
query I rowsort label-1992
SELECT ALL + 98 * + 80 / - COUNT ( * ) col0
----
-7840

onlyif mysql # aggregate syntax: 
query II rowsort label-1993
SELECT + 82 + - - 38 - - MAX( - ( + 23 ) ) * + 6 + 34 col0, 53 + - 50 * + 80
----
16
-3947

skipif mysql # not compatible
query II rowsort label-1993
SELECT + 82 + - - 38 - - MAX ( - ( + 23 ) ) * + 6 + 34 col0, 53 + - 50 * + 80
----
16
-3947

query II rowsort
SELECT ALL - COALESCE ( - 23, - + 26 ) * + 50 AS col1, + 34 + 69 * - 47 * + 58 col1
----
1150
-188060

query I rowsort
SELECT - 46 * + 91 * + - 34 col2
----
142324

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1996
SELECT ALL + 35 * + 60 AS col0, CAST( NULL AS SIGNED ) col2
----
2100
NULL

skipif mysql # not compatible
query II rowsort label-1996
SELECT ALL + 35 * + 60 AS col0, CAST ( NULL AS INTEGER ) col2
----
2100
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-1997
SELECT DISTINCT ( - + 17 ) AS col2, - 80 DIV - + 11
----
-17
7

skipif mysql # not compatible
query II rowsort label-1997
SELECT DISTINCT ( - + 17 ) AS col2, - 80 / - + 11
----
-17
7

query I rowsort
SELECT DISTINCT + COALESCE ( + + 12, 2 - + + 65, + 44 )
----
12

query I rowsort
SELECT + 85 * + ( 84 )
----
7140

query I rowsort
SELECT ALL + 90 * + - 8 + - 95
----
-815

query I rowsort
SELECT - 29 - 41 AS col2
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-2002
SELECT - + NULLIF ( - - MAX( DISTINCT + 23 ), - 92 ) * COUNT( * )
----
-23

skipif mysql # not compatible
query I rowsort label-2002
SELECT - + NULLIF ( - - MAX ( DISTINCT + 23 ), - 92 ) * COUNT ( * )
----
-23

query I rowsort
SELECT + + 35 + - 73 AS col1
----
-38

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2005
SELECT ALL 5 + COUNT( * ) + + ( ( + 81 ) ) * - - 77 - + 44 * CAST( - COUNT( * ) AS SIGNED ) - CAST( NULL AS SIGNED ) - + 2 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2005
SELECT ALL 5 + COUNT ( * ) + + ( ( + 81 ) ) * - - 77 - + 44 * CAST ( - COUNT ( * ) AS INTEGER ) - CAST ( NULL AS INTEGER ) - + 2 AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 27 + - 21
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-2007
SELECT DISTINCT + ( + 99 ) + COUNT( * ) AS col2
----
100

skipif mysql # not compatible
query I rowsort label-2007
SELECT DISTINCT + ( + 99 ) + COUNT ( * ) AS col2
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-2008
SELECT DISTINCT + 46 + ( + + 88 ) * + - COUNT( * ) * 91 col1
----
-7962

skipif mysql # not compatible
query I rowsort label-2008
SELECT DISTINCT + 46 + ( + + 88 ) * + - COUNT ( * ) * 91 col1
----
-7962

onlyif mysql # aggregate syntax: 
query I rowsort label-2009
SELECT ALL - NULLIF ( + - 20, + - 17 * 32 * 27 / + 66 ) + - NULLIF ( - - ( + 84 ), + 8 ) + + + 28 * - + COUNT( * ) * - 36 AS col2
----
944

skipif mysql # not compatible
query I rowsort label-2009
SELECT ALL - NULLIF ( + - 20, + - 17 * 32 * 27 / + 66 ) + - NULLIF ( - - ( + 84 ), + 8 ) + + + 28 * - + COUNT ( * ) * - 36 AS col2
----
944

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2011
SELECT DISTINCT + CAST( NULL AS SIGNED ) / 52 * + - 90 * + - 70 + - 33
----
NULL

skipif mysql # not compatible
query I rowsort label-2011
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / 52 * + - 90 * + - 70 + - 33
----
NULL

query II rowsort
SELECT + + 39 * - 56 AS col0, 56 * + 49 + - + 48
----
-2184
2696

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2013
SELECT + - MIN( + - 79 ) * - 29 + - 72 + + 8 + - - 59 + 42 * - 49 * + SUM( ALL CAST( + 65 AS SIGNED ) ) AS col2
----
-136066

skipif mysql # not compatible
query I rowsort label-2013
SELECT + - MIN ( + - 79 ) * - 29 + - 72 + + 8 + - - 59 + 42 * - 49 * + SUM ( ALL CAST ( + 65 AS INTEGER ) ) AS col2
----
-136066

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2014
SELECT ALL - 69 DIV CASE + 25 WHEN - CAST( + 19 AS SIGNED ) THEN + 67 * + 80 + - SUM( + 16 ) - - 79 - + ( - - 49 ) DIV - - 39 * + MAX( + + 77 ) + + 54 ELSE + + 36 - - 5 END
----
-1

skipif mysql # not compatible
query I rowsort label-2014
SELECT ALL - 69 / CASE + 25 WHEN - CAST ( + 19 AS INTEGER ) THEN + 67 * + 80 + - SUM ( + 16 ) - - 79 - + ( - - 49 ) / - - 39 * + MAX ( + + 77 ) + + 54 ELSE + + 36 - - 5 END
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2015
SELECT DISTINCT 36 / COUNT( * ) + CAST( NULL AS SIGNED ) * 50 + - NULLIF ( - + 20, + 96 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2015
SELECT DISTINCT 36 / COUNT ( * ) + CAST ( NULL AS INTEGER ) * 50 + - NULLIF ( - + 20, + 96 )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2016
SELECT ALL 5 DIV + 23 + + 0, - 99 * + 2 AS col0
----
0
-198

skipif mysql # not compatible
query II rowsort label-2016
SELECT ALL 5 / + 23 + + 0, - 99 * + 2 AS col0
----
0
-198

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2018
SELECT ALL 11 DIV - 75 + 53
----
53

skipif mysql # not compatible
query I rowsort label-2018
SELECT ALL 11 / - 75 + 53
----
53

query II rowsort
SELECT + 23 * 58 - ( + 58 ) * - 11 AS col0, - NULLIF ( + 58, + 45 )
----
1972
-58

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2021
SELECT ALL + CASE + - SUM( 53 ) WHEN + 3 * - - 57 THEN + - 49 * - 60 * + 10 - - - 25 / 97 + - 84 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2021
SELECT ALL + CASE + - SUM ( 53 ) WHEN + 3 * - - 57 THEN + - 49 * - 60 * + 10 - - - 25 / 97 + - 84 END
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2023
SELECT ALL 48 DIV + 81 - - COUNT( 47 ) + + + 72 + - + 18 DIV + 99 * + 63 + 18 AS col0
----
91

skipif mysql # not compatible
query I rowsort label-2023
SELECT ALL 48 / + 81 - - COUNT ( 47 ) + + + 72 + - + 18 / + 99 * + 63 + 18 AS col0
----
91

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2026
SELECT + ( + - 89 ) DIV - 45 + + COUNT( * ) + + 63 AS col2
----
65

skipif mysql # not compatible
query I rowsort label-2026
SELECT + ( + - 89 ) / - 45 + + COUNT ( * ) + + 63 AS col2
----
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2027
SELECT - 82 DIV COUNT( DISTINCT - 60 ) * 95 DIV + 12
----
-649

skipif mysql # not compatible
query I rowsort label-2027
SELECT - 82 / COUNT ( DISTINCT - 60 ) * 95 / + 12
----
-649

query I rowsort
SELECT + 52 + + + 70 col2
----
122

query I rowsort
SELECT ALL - NULLIF ( + 41, 87 * - COALESCE ( 9, + 33, - 68 * ( 74 ) + + 79 + - - 7 ) ) - + 96 AS col1
----
-137

query II rowsort
SELECT 35 AS col0, + 83 AS col0
----
35
83

onlyif mysql # aggregate syntax: 
query I rowsort label-2031
SELECT 16 + + 28 + MAX( 76 ) AS col1
----
120

skipif mysql # not compatible
query I rowsort label-2031
SELECT 16 + + 28 + MAX ( 76 ) AS col1
----
120

onlyif mysql # DIV for integer division: 
query I rowsort label-2032
SELECT DISTINCT 69 DIV + 55
----
1

skipif mysql # not compatible
query I rowsort label-2032
SELECT DISTINCT 69 / + 55
----
1

query I rowsort
SELECT ALL - 77 * - 20 AS col0
----
1540

onlyif mysql # DIV for integer division: 
query I rowsort label-2034
SELECT 77 DIV - - 55 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2034
SELECT 77 / - - 55 AS col0
----
1

query I rowsort
SELECT + COALESCE ( + + 40, - 14 ) + - 57
----
-17

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

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

query I rowsort
SELECT 86 * + 13 + + 71
----
1189

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

skipif mysql # not compatible
query I rowsort label-2038
SELECT + 97 - COUNT ( * ) / + 47
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-2039
SELECT - 6 DIV + 75
----
0

skipif mysql # not compatible
query I rowsort label-2039
SELECT - 6 / + 75
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2040
SELECT 46 * + NULLIF ( - 70, - 98 * + 80 ) + + ( CAST( NULL AS SIGNED ) ) * 47 * + - 95 - - - 15, 50 * - 9 AS col0
----
NULL
-450

skipif mysql # not compatible
query II rowsort label-2040
SELECT 46 * + NULLIF ( - 70, - 98 * + 80 ) + + ( CAST ( NULL AS INTEGER ) ) * 47 * + - 95 - - - 15, 50 * - 9 AS col0
----
NULL
-450

query I rowsort
SELECT ALL - 25 + 74 + - ( + 35 ) AS col2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-2042
SELECT + COUNT( ALL - 75 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-2042
SELECT + COUNT ( ALL - 75 ) col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2043
SELECT DISTINCT - - MIN( ALL + + 63 ) + + - MAX( ALL - ( + ( - + 96 ) ) ) * + - CASE + 35 WHEN ( - 37 ) THEN NULL ELSE 71 END * - COUNT( * ) AS col0
----
-6753

skipif mysql # not compatible
query I rowsort label-2043
SELECT DISTINCT - - MIN ( ALL + + 63 ) + + - MAX ( ALL - ( + ( - + 96 ) ) ) * + - CASE + 35 WHEN ( - 37 ) THEN NULL ELSE 71 END * - COUNT ( * ) AS col0
----
-6753

onlyif mysql # aggregate syntax: 
query I rowsort label-2044
SELECT ALL + COUNT( * ) + - + 44 + - SUM( ALL + 3 ) AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-2044
SELECT ALL + COUNT ( * ) + - + 44 + - SUM ( ALL + 3 ) AS col1
----
-46

onlyif mysql # aggregate syntax: 
query II rowsort label-2045
SELECT DISTINCT - 17 + - 11 + 18 * 82 + 40 AS col0, + 64 * + COUNT( * ) + + - 5 * + 85 * - 49
----
1488
20889

skipif mysql # not compatible
query II rowsort label-2045
SELECT DISTINCT - 17 + - 11 + 18 * 82 + 40 AS col0, + 64 * + COUNT ( * ) + + - 5 * + 85 * - 49
----
1488
20889

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

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

query I rowsort
SELECT 75 * + 41
----
3075

onlyif mysql # aggregate syntax: 
query II rowsort label-2048
SELECT ALL - CASE - + CASE - 60 WHEN - + COUNT( + 74 ) / - 92 THEN NULL WHEN - 67 THEN NULL WHEN - 84 + - 55 THEN + + 64 END WHEN COUNT( * ) * 48 / + + 4 THEN + - COUNT( * ) END * 80 AS col1, - COUNT( * ) + - 84
----
NULL
-85

skipif mysql # not compatible
query II rowsort label-2048
SELECT ALL - CASE - + CASE - 60 WHEN - + COUNT ( + 74 ) / - 92 THEN NULL WHEN - 67 THEN NULL WHEN - 84 + - 55 THEN + + 64 END WHEN COUNT ( * ) * 48 / + + 4 THEN + - COUNT ( * ) END * 80 AS col1, - COUNT ( * ) + - 84
----
NULL
-85

query I rowsort
SELECT 51 + + 74 * - 29 AS col2
----
-2095

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

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

query I rowsort
SELECT 81 + 79 * + 65
----
5216

onlyif mysql # aggregate syntax: 
query I rowsort label-2052
SELECT ALL + 70 - COALESCE ( - + 46, - MIN( ALL - 5 ) + 36 ) AS col0
----
116

skipif mysql # not compatible
query I rowsort label-2052
SELECT ALL + 70 - COALESCE ( - + 46, - MIN ( ALL - 5 ) + 36 ) AS col0
----
116

query I rowsort
SELECT 43 * + - 84 + 59 + - 98
----
-3651

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2054
SELECT - CAST( - - 70 AS SIGNED ) DIV + + CAST( - 99 AS SIGNED ) * + 67 + + 98 * ( COUNT( * ) ) + - + 98 AS col0, - COALESCE ( 60, - ( 97 ) * + - SUM( ALL + + 65 ) * - + 23 DIV - 61 + - - 66 ) * CAST( + - 37 AS SIGNED ) + 17 + - 12 * - 74 + - 98 + - 61
----
0
2966

skipif mysql # not compatible
query II rowsort label-2054
SELECT - CAST ( - - 70 AS INTEGER ) / + + CAST ( - 99 AS INTEGER ) * + 67 + + 98 * ( COUNT ( * ) ) + - + 98 AS col0, - COALESCE ( 60, - ( 97 ) * + - SUM ( ALL + + 65 ) * - + 23 / - 61 + - - 66 ) * CAST ( + - 37 AS INTEGER ) + 17 + - 12 * - 74 + - 98 + - 61
----
0
2966

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2056
SELECT - 6 DIV + - COUNT( * ) + - 71 * - + 1
----
77

skipif mysql # not compatible
query I rowsort label-2056
SELECT - 6 / + - COUNT ( * ) + - 71 * - + 1
----
77

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2057
SELECT 97 DIV - + CASE + + CAST( NULL AS SIGNED ) WHEN + ( + + 12 ) THEN 55 ELSE + 78 * 56 END AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2057
SELECT 97 / - + CASE + + CAST ( NULL AS INTEGER ) WHEN + ( + + 12 ) THEN 55 ELSE + 78 * 56 END AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2058
SELECT - 18 * + - 95 + - COUNT( * ) * - MIN( ALL + 28 )
----
1738

skipif mysql # not compatible
query I rowsort label-2058
SELECT - 18 * + - 95 + - COUNT ( * ) * - MIN ( ALL + 28 )
----
1738

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

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

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

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

query I rowsort
SELECT DISTINCT 63 * - - 6 AS col2
----
378

query I rowsort
SELECT 44 * - ( + + 4 ) * + 8 * + 75 * - 51
----
5385600

query II rowsort
SELECT + - 92 AS col1, 15 + + + 77 - - - 19 * 71 AS col0
----
-92
-1257

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

query I rowsort
SELECT 41 * + 85 * - 41
----
-142885

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2066
SELECT - 95 * 14 * - 68 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2066
SELECT - 95 * 14 * - 68 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL - 29 + + - 54 * + 98 AS col2
----
-5321

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2068
SELECT DISTINCT - CAST( + + 51 AS SIGNED ) DIV + COUNT( * ) - - + 54 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-2068
SELECT DISTINCT - CAST ( + + 51 AS INTEGER ) / + COUNT ( * ) - - + 54 AS col1
----
3

query II rowsort
SELECT ALL NULLIF ( - 25, + 3 + - 36 ) col2, + 40
----
-25
40

query I rowsort
SELECT + 28 * 39 + 27 AS col1
----
1119

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2071
SELECT + CAST( 21 AS SIGNED ) + 55 + + + COUNT( * ) + - + 23 - - COUNT( * )
----
55

skipif mysql # not compatible
query I rowsort label-2071
SELECT + CAST ( 21 AS INTEGER ) + 55 + + + COUNT ( * ) + - + 23 - - COUNT ( * )
----
55

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2073
SELECT ALL + 94 + 91 - 45 - - + 80 + - + SUM( 41 ) + - 23 * + 9
----
-28

skipif mysql # not compatible
query I rowsort label-2073
SELECT ALL + 94 + 91 - 45 - - + 80 + - + SUM ( 41 ) + - 23 * + 9
----
-28

query I rowsort
SELECT ALL + 88 * + 71
----
6248

onlyif mysql # DIV for integer division: 
query II rowsort label-2075
SELECT ALL 40 AS col1, 86 DIV + 29
----
40
2

skipif mysql # not compatible
query II rowsort label-2075
SELECT ALL 40 AS col1, 86 / + 29
----
40
2

query I rowsort
SELECT 28 * + 12
----
336

onlyif mysql # aggregate syntax: 
query II rowsort label-2077
SELECT + COUNT( * ) + - + 2 + CASE - - 98 WHEN - 83 THEN NULL ELSE 90 END AS col1, + 73 AS col1
----
89
73

skipif mysql # not compatible
query II rowsort label-2077
SELECT + COUNT ( * ) + - + 2 + CASE - - 98 WHEN - 83 THEN NULL ELSE 90 END AS col1, + 73 AS col1
----
89
73

onlyif mysql # aggregate syntax: 
query II rowsort label-2078
SELECT 87 * - COUNT( * ) col2, - ( NULLIF ( + COUNT( * ), - 79 ) )
----
-87
-1

skipif mysql # not compatible
query II rowsort label-2078
SELECT 87 * - COUNT ( * ) col2, - ( NULLIF ( + COUNT ( * ), - 79 ) )
----
-87
-1

query I rowsort
SELECT ALL - - 57 * + 53
----
3021

onlyif mysql # aggregate syntax: 
query II rowsort label-2080
SELECT DISTINCT + COUNT( * ) * - 3 col2, 39 - 87
----
-3
-48

skipif mysql # not compatible
query II rowsort label-2080
SELECT DISTINCT + COUNT ( * ) * - 3 col2, 39 - 87
----
-3
-48

query I rowsort
SELECT 89 + + + 66
----
155

query I rowsort
SELECT ALL - - 45 - 97 + - 66 * - 71
----
4634

query II rowsort
SELECT ALL 90, + 18 AS col1
----
90
18

query II rowsort
SELECT - 2 AS col2, 68 * + 88
----
-2
5984

query I rowsort
SELECT DISTINCT - 83 * 16 * 17
----
-22576

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2086
SELECT - 77 * + - ( + COALESCE ( - 71, + MIN( DISTINCT + + 97 ) * COUNT( + 79 ) * + 31 + 10 ) ) - + 33 DIV - ( - 94 ) * + + COUNT( * ) * - - 91 * - COUNT( * ) - + COALESCE ( + - 50, + 68 ) AS col0
----
-5417

skipif mysql # not compatible
query I rowsort label-2086
SELECT - 77 * + - ( + COALESCE ( - 71, + MIN ( DISTINCT + + 97 ) * COUNT ( + 79 ) * + 31 + 10 ) ) - + 33 / - ( - 94 ) * + + COUNT ( * ) * - - 91 * - COUNT ( * ) - + COALESCE ( + - 50, + 68 ) AS col0
----
-5417

query II rowsort
SELECT ALL 74 AS col2, 88 AS col1
----
74
88

query I rowsort
SELECT ALL 83 * + + 65
----
5395

onlyif mysql # aggregate syntax: 
query I rowsort label-2089
SELECT DISTINCT - 94 * + NULLIF ( 87, + - COUNT( * ) ) AS col1
----
-8178

skipif mysql # not compatible
query I rowsort label-2089
SELECT DISTINCT - 94 * + NULLIF ( 87, + - COUNT ( * ) ) AS col1
----
-8178

query I rowsort
SELECT - 53 * ( + 48 ) AS col0
----
-2544

query I rowsort
SELECT ALL 65 * + + 85
----
5525

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2092
SELECT CASE 4 WHEN 98 THEN NULL WHEN + 2 THEN + 32 * - COUNT( * ) * - 64 - - + CAST( 26 AS DECIMAL ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2092
SELECT CASE 4 WHEN 98 THEN NULL WHEN + 2 THEN + 32 * - COUNT ( * ) * - 64 - - + CAST ( 26 AS REAL ) ELSE NULL END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2093
SELECT DISTINCT 70 DIV 26 * - - 72
----
144

skipif mysql # not compatible
query I rowsort label-2093
SELECT DISTINCT 70 / 26 * - - 72
----
144

onlyif mysql # DIV for integer division: 
query II rowsort label-2094
SELECT + 75 DIV + 53 AS col0, + 16 * 12
----
1
192

skipif mysql # not compatible
query II rowsort label-2094
SELECT + 75 / + 53 AS col0, + 16 * 12
----
1
192

onlyif mysql # aggregate syntax: 
query I rowsort label-2095
SELECT - 20 * - + 1 + + COUNT( * ) + + COUNT( * ) + - 67 + COUNT( * ) * - 80 * + COUNT( * ) col2
----
-125

skipif mysql # not compatible
query I rowsort label-2095
SELECT - 20 * - + 1 + + COUNT ( * ) + + COUNT ( * ) + - 67 + COUNT ( * ) * - 80 * + COUNT ( * ) col2
----
-125

query I rowsort
SELECT ALL + 5 * - 14 + + 68
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-2097
SELECT - 63 + - 35 + 64 + - 4 * + 87 * 6 * + - 33 AS col1, + COUNT( DISTINCT + 51 ) + + 96 * - 89 - - 40
----
68870
-8503

skipif mysql # not compatible
query II rowsort label-2097
SELECT - 63 + - 35 + 64 + - 4 * + 87 * 6 * + - 33 AS col1, + COUNT ( DISTINCT + 51 ) + + 96 * - 89 - - 40
----
68870
-8503

onlyif mysql # aggregate syntax: 
query I rowsort label-2098
SELECT COUNT( * ) * ( - + 58 ) - 93 + 31 col2
----
-120

skipif mysql # not compatible
query I rowsort label-2098
SELECT COUNT ( * ) * ( - + 58 ) - 93 + 31 col2
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-2099
SELECT ALL - 27 * - - 40 + SUM( ALL + 14 ) + + 32 * COUNT( * ) col2
----
-1034

skipif mysql # not compatible
query I rowsort label-2099
SELECT ALL - 27 * - - 40 + SUM ( ALL + 14 ) + + 32 * COUNT ( * ) col2
----
-1034

query I rowsort
SELECT DISTINCT - 39 * + - 96 * - - 77 + - 39 AS col2
----
288249

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2101
SELECT + + NULLIF ( - 52, 13 ) + + 35 - CAST( NULL AS SIGNED ) + + COALESCE ( - + COALESCE ( + COALESCE ( - 74, 85 * + ( - + CAST( + + 18 AS SIGNED ) ) * + 35, + + 46 + - 5 + + 85 + ( + 58 ) + + 55 + + + 35 * - 16 ), - - 21 * - CAST( NULL AS SIGNED ), 5 ), - 41 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2101
SELECT + + NULLIF ( - 52, 13 ) + + 35 - CAST ( NULL AS INTEGER ) + + COALESCE ( - + COALESCE ( + COALESCE ( - 74, 85 * + ( - + CAST ( + + 18 AS INTEGER ) ) * + 35, + + 46 + - 5 + + 85 + ( + 58 ) + + 55 + + + 35 * - 16 ), - - 21 * - CAST ( NULL AS INTEGER ), 5 ), - 41 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2102
SELECT - 95 + - MAX( + + 20 ) AS col2
----
-115

skipif mysql # not compatible
query I rowsort label-2102
SELECT - 95 + - MAX ( + + 20 ) AS col2
----
-115

onlyif mysql # aggregate syntax: 
query I rowsort label-2103
SELECT + ( - + 17 ) - 17 * MIN( - + 87 ) + - 8
----
1454

skipif mysql # not compatible
query I rowsort label-2103
SELECT + ( - + 17 ) - 17 * MIN ( - + 87 ) + - 8
----
1454

onlyif mysql # aggregate syntax: 
query I rowsort label-2104
SELECT DISTINCT 26 - COUNT( * ) AS col0
----
25

skipif mysql # not compatible
query I rowsort label-2104
SELECT DISTINCT 26 - COUNT ( * ) AS col0
----
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2105
SELECT ALL + 91 * - 69 DIV COUNT( * )
----
-6279

skipif mysql # not compatible
query I rowsort label-2105
SELECT ALL + 91 * - 69 / COUNT ( * )
----
-6279

query I rowsort
SELECT ALL - 7 * 3 AS col2
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-2107
SELECT ALL + ( - 71 ) * + 89 * 26 * + NULLIF ( - + MIN( DISTINCT - + 54 ), + SUM( + 48 ) ) - - 83 * + COALESCE ( - 13, - 74 )
----
-8872955

skipif mysql # not compatible
query I rowsort label-2107
SELECT ALL + ( - 71 ) * + 89 * 26 * + NULLIF ( - + MIN ( DISTINCT - + 54 ), + SUM ( + 48 ) ) - - 83 * + COALESCE ( - 13, - 74 )
----
-8872955

query I rowsort
SELECT - 89 * 74 AS col2
----
-6586

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2110
SELECT + NULLIF ( 26, - 35 ) + + COUNT( * )
----
27

skipif mysql # not compatible
query I rowsort label-2110
SELECT + NULLIF ( 26, - 35 ) + + COUNT ( * )
----
27

query I rowsort
SELECT - 7 - - COALESCE ( 47, - + 61 ) AS col1
----
40

query I rowsort
SELECT - 66 * - - ( 14 ) col0
----
-924

onlyif mysql # aggregate syntax: 
query I rowsort label-2113
SELECT ALL CASE + 72 WHEN - + SUM( + + COALESCE ( + ( 40 ), - 41 / - - 81 - + 83, - + 46 ) ) THEN NULL ELSE - 47 END AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-2113
SELECT ALL CASE + 72 WHEN - + SUM ( + + COALESCE ( + ( 40 ), - 41 / - - 81 - + 83, - + 46 ) ) THEN NULL ELSE - 47 END AS col2
----
-47

query I rowsort
SELECT - 71 + - 45 + 8 AS col0
----
-108

query I rowsort
SELECT - 30 * + - 1
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2116
SELECT ALL - COUNT( - 86 ) + - + 50 + CAST( NULL AS SIGNED ) * + + 4
----
NULL

skipif mysql # not compatible
query I rowsort label-2116
SELECT ALL - COUNT ( - 86 ) + - + 50 + CAST ( NULL AS INTEGER ) * + + 4
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2117
SELECT - 47 + 19 + - CAST( 96 AS SIGNED ) AS col1
----
-124

skipif mysql # not compatible
query I rowsort label-2117
SELECT - 47 + 19 + - CAST ( 96 AS INTEGER ) AS col1
----
-124

query I rowsort
SELECT ALL 53 * - 88
----
-4664

query I rowsort
SELECT - 23 + - 55 AS col2
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2120
SELECT ALL CAST( - - 13 AS SIGNED ) AS col0
----
13

skipif mysql # not compatible
query I rowsort label-2120
SELECT ALL CAST ( - - 13 AS INTEGER ) AS col0
----
13

onlyif mysql # DIV for integer division: 
query I rowsort label-2121
SELECT DISTINCT - 44 DIV + + 62 + 43
----
43

skipif mysql # not compatible
query I rowsort label-2121
SELECT DISTINCT - 44 / + + 62 + 43
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-2122
SELECT - MIN( ( - - 45 ) ) + 54 + + 93 - - 40 + - ( + ( - SUM( + 57 ) ) ) + + COUNT( * ) - - 69
----
269

skipif mysql # not compatible
query I rowsort label-2122
SELECT - MIN ( ( - - 45 ) ) + 54 + + 93 - - 40 + - ( + ( - SUM ( + 57 ) ) ) + + COUNT ( * ) - - 69
----
269

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2123
SELECT ALL + 11 DIV + 93 * - 12 + - MAX( + - 38 ) AS col2
----
38

skipif mysql # not compatible
query I rowsort label-2123
SELECT ALL + 11 / + 93 * - 12 + - MAX ( + - 38 ) AS col2
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2124
SELECT CAST( NULL AS SIGNED ) AS col0, + 6
----
NULL
6

skipif mysql # not compatible
query II rowsort label-2124
SELECT CAST ( NULL AS INTEGER ) AS col0, + 6
----
NULL
6

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2126
SELECT + COUNT( DISTINCT - 39 ) + - CAST( - COUNT( * ) AS SIGNED ) * 92 DIV + + 67 + + - 20
----
-18

skipif mysql # not compatible
query I rowsort label-2126
SELECT + COUNT ( DISTINCT - 39 ) + - CAST ( - COUNT ( * ) AS INTEGER ) * 92 / + + 67 + + - 20
----
-18

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2127
SELECT ALL + CAST( NULL AS DECIMAL ) * - 31 * CAST( NULL AS SIGNED ) * + - 12
----
NULL

skipif mysql # not compatible
query I rowsort label-2127
SELECT ALL + CAST ( NULL AS REAL ) * - 31 * CAST ( NULL AS INTEGER ) * + - 12
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2129
SELECT ALL 82 DIV + + 9 + - - 67 + 79 AS col2
----
155

skipif mysql # not compatible
query I rowsort label-2129
SELECT ALL 82 / + + 9 + - - 67 + 79 AS col2
----
155

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

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

query II rowsort
SELECT ALL + + 60, + 41 AS col2
----
60
41

onlyif mysql # aggregate syntax: 
query I rowsort label-2132
SELECT DISTINCT + + 16 * 43 * + 80 * - + 59 + - COUNT( * ) AS col0
----
-3247361

skipif mysql # not compatible
query I rowsort label-2132
SELECT DISTINCT + + 16 * 43 * + 80 * - + 59 + - COUNT ( * ) AS col0
----
-3247361

onlyif mysql # aggregate syntax: 
query II rowsort label-2133
SELECT + + COALESCE ( + 66, - 6 ), COUNT( * ) AS col2
----
66
1

skipif mysql # not compatible
query II rowsort label-2133
SELECT + + COALESCE ( + 66, - 6 ), COUNT ( * ) AS col2
----
66
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2134
SELECT DISTINCT - 86 * CAST( + - 80 AS SIGNED ) - - + 73
----
6953

skipif mysql # not compatible
query I rowsort label-2134
SELECT DISTINCT - 86 * CAST ( + - 80 AS INTEGER ) - - + 73
----
6953

onlyif mysql # DIV for integer division: 
query I rowsort label-2135
SELECT ALL + 86 DIV + 73
----
1

skipif mysql # not compatible
query I rowsort label-2135
SELECT ALL + 86 / + 73
----
1

query I rowsort
SELECT - + 80 * + - 91 AS col2
----
7280

query I rowsort
SELECT + 88 * + 54
----
4752

query I rowsort
SELECT + - 6 * + 82 AS col2
----
-492

onlyif mysql # aggregate syntax: 
query I rowsort label-2139
SELECT + + 7 * - + 49 + 81 + - COUNT( * )
----
-263

skipif mysql # not compatible
query I rowsort label-2139
SELECT + + 7 * - + 49 + 81 + - COUNT ( * )
----
-263

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2140
SELECT DISTINCT 20 AS col1, + 81 DIV MIN( + 61 ) * - + MIN( DISTINCT - 20 ) + - - 96 * - 28 AS col1
----
20
-2668

skipif mysql # not compatible
query II rowsort label-2140
SELECT DISTINCT 20 AS col1, + 81 / MIN ( + 61 ) * - + MIN ( DISTINCT - 20 ) + - - 96 * - 28 AS col1
----
20
-2668

onlyif mysql # aggregate syntax: 
query I rowsort label-2141
SELECT ALL MIN( 77 ) * + COUNT( + 67 ) * - + 26 + - 56
----
-2058

skipif mysql # not compatible
query I rowsort label-2141
SELECT ALL MIN ( 77 ) * + COUNT ( + 67 ) * - + 26 + - 56
----
-2058

query I rowsort
SELECT ALL + 34 * - 60 AS col2
----
-2040

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2143
SELECT + CASE + CASE + CAST( NULL AS SIGNED ) WHEN - 34 + + 83 * 10 + + - CAST( + + CAST( - - 48 AS SIGNED ) AS SIGNED ) THEN - + ( + 78 ) END WHEN - 86 * 13 + 1 * - 25 THEN 46 - + 79 * - COUNT( * ) WHEN + 53 + + 35 + COUNT( * ) * + 81 THEN NULL WHEN - - 36 THEN - + 26 WHEN 64 THEN + + COUNT( * ) * - 45 - - CAST( NULL AS SIGNED ) + - 66 END + - 4 + + 61 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2143
SELECT + CASE + CASE + CAST ( NULL AS INTEGER ) WHEN - 34 + + 83 * 10 + + - CAST ( + + CAST ( - - 48 AS INTEGER ) AS INTEGER ) THEN - + ( + 78 ) END WHEN - 86 * 13 + 1 * - 25 THEN 46 - + 79 * - COUNT ( * ) WHEN + 53 + + 35 + COUNT ( * ) * + 81 THEN NULL WHEN - - 36 THEN - + 26 WHEN 64 THEN + + COUNT ( * ) * - 45 - - CAST ( NULL AS INTEGER ) + - 66 END + - 4 + + 61 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2144
SELECT + 66 * - CAST( + 78 AS SIGNED )
----
-5148

skipif mysql # not compatible
query I rowsort label-2144
SELECT + 66 * - CAST ( + 78 AS INTEGER )
----
-5148

onlyif mysql # aggregate syntax: 
query I rowsort label-2145
SELECT SUM( + 50 ) * 68 AS col0
----
3400

skipif mysql # not compatible
query I rowsort label-2145
SELECT SUM ( + 50 ) * 68 AS col0
----
3400

query II rowsort
SELECT 29 - + + 50, + 46 - 39 AS col1
----
-21
7

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2148
SELECT ( CAST( NULL AS DECIMAL ) ) * + 8 + 87 + + - COUNT( - 78 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2148
SELECT ( CAST ( NULL AS REAL ) ) * + 8 + 87 + + - COUNT ( - 78 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2149
SELECT CAST( NULL AS SIGNED ) / 10 * + 62 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2149
SELECT CAST ( NULL AS INTEGER ) / 10 * + 62 col1
----
NULL

query I rowsort
SELECT ALL ( + - 42 ) + 42
----
0

query I rowsort
SELECT ALL - 58 * - 45 * + 89 AS col1
----
232290

onlyif mysql # aggregate syntax: 
query I rowsort label-2152
SELECT COUNT( * ) - + ( - 21 ) * + COUNT( ALL - 30 ) + 47
----
69

skipif mysql # not compatible
query I rowsort label-2152
SELECT COUNT ( * ) - + ( - 21 ) * + COUNT ( ALL - 30 ) + 47
----
69

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2153
SELECT CAST( NULL AS DECIMAL ) / - 83
----
NULL

skipif mysql # not compatible
query I rowsort label-2153
SELECT CAST ( NULL AS REAL ) / - 83
----
NULL

query I rowsort
SELECT 60 * + - 16
----
-960

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2156
SELECT 70 * 20 DIV + ( - 81 ) AS col0
----
-17

skipif mysql # not compatible
query I rowsort label-2156
SELECT 70 * 20 / + ( - 81 ) AS col0
----
-17

query I rowsort
SELECT 50 * CASE 16 WHEN + 16 THEN NULL WHEN - ( - + 8 ) THEN NULL ELSE + 58 * 30 * - 97 / 30 END - 41
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2158
SELECT ALL CAST( + + 11 AS SIGNED ) * - 67 + + 99
----
-638

skipif mysql # not compatible
query I rowsort label-2158
SELECT ALL CAST ( + + 11 AS INTEGER ) * - 67 + + 99
----
-638

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2159
SELECT + - COUNT( * ) DIV + 7 - - - 85 DIV + 9 col1
----
-9

skipif mysql # not compatible
query I rowsort label-2159
SELECT + - COUNT ( * ) / + 7 - - - 85 / + 9 col1
----
-9

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

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

query I rowsort
SELECT + 55 * 34 * - - 65 + + 87
----
121637

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2163
SELECT - 59 * + CASE + ( - - 44 ) WHEN ( 5 ) * + 34 + + COUNT( * ) * - CASE - CASE + MIN( DISTINCT - 4 ) WHEN + 4 + - 38 + 9 + + 74 + - 97 THEN - - CASE 70 WHEN - 59 THEN 65 * 56 END WHEN CAST( - + 44 AS SIGNED ) THEN NULL END WHEN - 83 THEN 78 * - 37 ELSE AVG ( + 38 ) * 85 / + CASE - 31 WHEN + CASE - 51 WHEN - COUNT( DISTINCT - CAST( 57 AS SIGNED ) ) THEN ( - 60 ) ELSE 72 * COALESCE ( SUM( 50 ), MAX( 12 ) * + ( 61 ) ) END THEN - 88 WHEN 71 THEN - MIN( - 11 ) * MAX( 38 ) ELSE NULL END END THEN - NULLIF ( MIN( 90 ), - 36 ) END + 15 * 39 - + 91
----
NULL

skipif mysql # not compatible
query I rowsort label-2163
SELECT - 59 * + CASE + ( - - 44 ) WHEN ( 5 ) * + 34 + + COUNT ( * ) * - CASE - CASE + MIN ( DISTINCT - 4 ) WHEN + 4 + - 38 + 9 + + 74 + - 97 THEN - - CASE 70 WHEN - 59 THEN 65 * 56 END WHEN CAST ( - + 44 AS INTEGER ) THEN NULL END WHEN - 83 THEN 78 * - 37 ELSE AVG ( + 38 ) * 85 / + CASE - 31 WHEN + CASE - 51 WHEN - COUNT ( DISTINCT - CAST ( 57 AS INTEGER ) ) THEN ( - 60 ) ELSE 72 * COALESCE ( SUM ( 50 ), MAX ( 12 ) * + ( 61 ) ) END THEN - 88 WHEN 71 THEN - MIN ( - 11 ) * MAX ( 38 ) ELSE NULL END END THEN - NULLIF ( MIN ( 90 ), - 36 ) END + 15 * 39 - + 91
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2164
SELECT DISTINCT + COUNT( DISTINCT + - NULLIF ( 78, + - 38 ) ) * + + 61 AS col0
----
61

skipif mysql # not compatible
query I rowsort label-2164
SELECT DISTINCT + COUNT ( DISTINCT + - NULLIF ( 78, + - 38 ) ) * + + 61 AS col0
----
61

query I rowsort
SELECT - NULLIF ( - 25, + + 32 ) * 24 AS col0
----
600

onlyif mysql # aggregate syntax: 
query I rowsort label-2166
SELECT ALL + + 38 * - 81 / + CASE - 40 WHEN + ( - + ( + - 76 ) ) THEN MAX( ALL - NULLIF ( + 50, - 97 ) ) WHEN + 14 THEN + 37 WHEN + 32 THEN COUNT( * ) ELSE NULL END / 70 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2166
SELECT ALL + + 38 * - 81 / + CASE - 40 WHEN + ( - + ( + - 76 ) ) THEN MAX ( ALL - NULLIF ( + 50, - 97 ) ) WHEN + 14 THEN + 37 WHEN + 32 THEN COUNT ( * ) ELSE NULL END / 70 AS col0
----
NULL

query I rowsort
SELECT 60 * - - 91 + + 62
----
5522

onlyif mysql # aggregate syntax: 
query II rowsort label-2168
SELECT DISTINCT + 96 * - + 22 + + + COUNT( * ) + 5 AS col1, 53 + + 13 + - 26 * 48 AS col0
----
-2106
-1182

skipif mysql # not compatible
query II rowsort label-2168
SELECT DISTINCT + 96 * - + 22 + + + COUNT ( * ) + 5 AS col1, 53 + + 13 + - 26 * 48 AS col0
----
-2106
-1182

query I rowsort
SELECT ALL - + CASE - - ( + 0 ) WHEN 92 * - - 56 - 59 THEN + + 20 + 85 END AS col0
----
NULL

query I rowsort
SELECT 95 * + + 68
----
6460

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2171
SELECT ALL + 63 * - CAST( + - 99 AS SIGNED )
----
6237

skipif mysql # not compatible
query I rowsort label-2171
SELECT ALL + 63 * - CAST ( + - 99 AS INTEGER )
----
6237

query I rowsort
SELECT - 5 + - + 64 * - ( 91 )
----
5819

query II rowsort
SELECT - - ( - 57 ), 15 AS col2
----
-57
15

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

query I rowsort
SELECT 74 * - 27 AS col0
----
-1998

query I rowsort
SELECT - 88 * 51 AS col2
----
-4488

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2179
SELECT ALL 42 + 86 + - 97 DIV + 4 + + 93 * 45 - + CASE + 78 WHEN + + 55 + - - 28 * 39 THEN - 65 WHEN ( 76 ) THEN - 67 WHEN - + 96 THEN NULL ELSE - MIN( ( - 65 ) ) END col2
----
4224

skipif mysql # not compatible
query I rowsort label-2179
SELECT ALL 42 + 86 + - 97 / + 4 + + 93 * 45 - + CASE + 78 WHEN + + 55 + - - 28 * 39 THEN - 65 WHEN ( 76 ) THEN - 67 WHEN - + 96 THEN NULL ELSE - MIN ( ( - 65 ) ) END col2
----
4224

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2180
SELECT 16 - + + 20 * + - CAST( NULL AS SIGNED ), - CASE COUNT( * ) WHEN - + 84 * + 34 + - 4 * 19 * + - 82 * MIN( 48 ) THEN - 19 / + 5 * + 97 * NULLIF ( + 47, 93 * - 98 - - 96 * + 1 ) WHEN + + 54 THEN - 13 * - + 10 WHEN + 94 * - 49 + 75 THEN - 75 / MIN( ALL 15 ) END AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2180
SELECT 16 - + + 20 * + - CAST ( NULL AS INTEGER ), - CASE COUNT ( * ) WHEN - + 84 * + 34 + - 4 * 19 * + - 82 * MIN ( 48 ) THEN - 19 / + 5 * + 97 * NULLIF ( + 47, 93 * - 98 - - 96 * + 1 ) WHEN + + 54 THEN - 13 * - + 10 WHEN + 94 * - 49 + 75 THEN - 75 / MIN ( ALL 15 ) END AS col1
----
NULL
NULL

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

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

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

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

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

query I rowsort
SELECT DISTINCT 53 + + 63
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-2185
SELECT DISTINCT ( - + 0 ) + + 93 * ( + 51 ) * - + MIN( 56 )
----
-265608

skipif mysql # not compatible
query I rowsort label-2185
SELECT DISTINCT ( - + 0 ) + + 93 * ( + 51 ) * - + MIN ( 56 )
----
-265608

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2187
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 97 * + CASE - - ( + ( NULLIF ( 41, - + 52 / - COUNT( * ) * - 22 - + 16 * + NULLIF ( - 88, - NULLIF ( + - 49, + 70 * - 39 ) ) ) ) ) WHEN - + 13 + 61 THEN ( + 56 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2187
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 97 * + CASE - - ( + ( NULLIF ( 41, - + 52 / - COUNT ( * ) * - 22 - + 16 * + NULLIF ( - 88, - NULLIF ( + - 49, + 70 * - 39 ) ) ) ) ) WHEN - + 13 + 61 THEN ( + 56 ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2188
SELECT 25 + - 67 * COUNT( * ) + + 93 AS col0
----
51

skipif mysql # not compatible
query I rowsort label-2188
SELECT 25 + - 67 * COUNT ( * ) + + 93 AS col0
----
51

query II rowsort
SELECT DISTINCT 44, - 31 - + 59 AS col1
----
44
-90

query I rowsort
SELECT ALL 52 - - 73 AS col0
----
125

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2191
SELECT MAX( - - 6 ) + + + MIN( ALL - 95 ) + - 33 DIV 82 AS col1, 94 + + 77 * COUNT( * ) DIV - 69 AS col1
----
-89
93

skipif mysql # not compatible
query II rowsort label-2191
SELECT MAX ( - - 6 ) + + + MIN ( ALL - 95 ) + - 33 / 82 AS col1, 94 + + 77 * COUNT ( * ) / - 69 AS col1
----
-89
93

query I rowsort
SELECT 60 + + 73 + 47 * 21
----
1120

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-2193
SELECT ALL - 82 * + + CAST( NULL AS DECIMAL ) DIV + - 44 AS col2, + 44 - + - COALESCE ( 7, 44 * - + 34 + + 28, + + 32 DIV + ( 27 ) ) AS col2
----
NULL
51

skipif mysql # not compatible
query II rowsort label-2193
SELECT ALL - 82 * + + CAST ( NULL AS REAL ) / + - 44 AS col2, + 44 - + - COALESCE ( 7, 44 * - + 34 + + 28, + + 32 / + ( 27 ) ) AS col2
----
NULL
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2194
SELECT + - 86 DIV MIN( DISTINCT 34 ) + + + ( + + COUNT( * ) ) + - MIN( - ( + - 75 ) ) + - 74 - - + 87 * - + 33
----
-3021

skipif mysql # not compatible
query I rowsort label-2194
SELECT + - 86 / MIN ( DISTINCT 34 ) + + + ( + + COUNT ( * ) ) + - MIN ( - ( + - 75 ) ) + - 74 - - + 87 * - + 33
----
-3021

onlyif mysql # aggregate syntax: 
query I rowsort label-2195
SELECT NULLIF ( + + NULLIF ( 19, + 71 + 42 ), - + CASE 47 WHEN 45 / + 87 THEN + 23 END ) * - - COUNT( * ) AS col0
----
19

skipif mysql # not compatible
query I rowsort label-2195
SELECT NULLIF ( + + NULLIF ( 19, + 71 + 42 ), - + CASE 47 WHEN 45 / + 87 THEN + 23 END ) * - - COUNT ( * ) AS col0
----
19

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2197
SELECT ALL 4 * + CAST( - + ( + + COUNT( * ) ) AS SIGNED ) + + 89 * + COALESCE ( 42, - 16 + - 38, - - 97 DIV + 50 - + 96 * + 61 * 58 * COUNT( * ) DIV + - 43 DIV - - ( 95 ), - 83 * + 53 - + 54 ) * + 16 * 65 - + 97 + - ( - + 63 ) + 22 AS col2
----
3887504

skipif mysql # not compatible
query I rowsort label-2197
SELECT ALL 4 * + CAST ( - + ( + + COUNT ( * ) ) AS INTEGER ) + + 89 * + COALESCE ( 42, - 16 + - 38, - - 97 / + 50 - + 96 * + 61 * 58 * COUNT ( * ) / + - 43 / - - ( 95 ), - 83 * + 53 - + 54 ) * + 16 * 65 - + 97 + - ( - + 63 ) + 22 AS col2
----
3887504

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2199
SELECT 10 * + CAST( + SUM( DISTINCT + + 44 ) AS SIGNED ) col2
----
440

skipif mysql # not compatible
query I rowsort label-2199
SELECT 10 * + CAST ( + SUM ( DISTINCT + + 44 ) AS INTEGER ) col2
----
440

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2200
SELECT MAX( DISTINCT + 67 ) * - 7 + + 49 + 22 + + CAST( - 54 AS SIGNED ) AS col2
----
-452

skipif mysql # not compatible
query I rowsort label-2200
SELECT MAX ( DISTINCT + 67 ) * - 7 + + 49 + 22 + + CAST ( - 54 AS INTEGER ) AS col2
----
-452

onlyif mysql # DIV for integer division: 
query I rowsort label-2201
SELECT 41 DIV + 65 * - 24
----
0

skipif mysql # not compatible
query I rowsort label-2201
SELECT 41 / + 65 * - 24
----
0

query I rowsort
SELECT ALL - ( - 41 ) * 65 + - 33
----
2632

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

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

query I rowsort
SELECT + - CASE + 80 WHEN - - 46 / - 54 THEN - 46 END
----
NULL

query I rowsort
SELECT + - 54 - - 91 col1
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-2206
SELECT + MIN( 80 ) col2
----
80

skipif mysql # not compatible
query I rowsort label-2206
SELECT + MIN ( 80 ) col2
----
80

onlyif mysql # aggregate syntax: 
query II rowsort label-2207
SELECT DISTINCT + COUNT( * ) + - 23 * - + 48 AS col2, + 84 AS col2
----
1105
84

skipif mysql # not compatible
query II rowsort label-2207
SELECT DISTINCT + COUNT ( * ) + - 23 * - + 48 AS col2, + 84 AS col2
----
1105
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2208
SELECT ALL - + COUNT( * ) + - + 33 + + - 62 col0
----
-96

skipif mysql # not compatible
query I rowsort label-2208
SELECT ALL - + COUNT ( * ) + - + 33 + + - 62 col0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2209
SELECT ALL + 94 + + COALESCE ( - ( + 17 ), - 70 ) + + - MIN( 27 ) + + 2 AS col1
----
52

skipif mysql # not compatible
query I rowsort label-2209
SELECT ALL + 94 + + COALESCE ( - ( + 17 ), - 70 ) + + - MIN ( 27 ) + + 2 AS col1
----
52

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2211
SELECT - 7 - + 64 * - COUNT( * ) * 29 + - ( - + ( - ( - + 67 ) ) ) + 41 + - - 91
----
2048

skipif mysql # not compatible
query I rowsort label-2211
SELECT - 7 - + 64 * - COUNT ( * ) * 29 + - ( - + ( - ( - + 67 ) ) ) + 41 + - - 91
----
2048

query I rowsort
SELECT ALL COALESCE ( - 13, - 71 + + 24 - + 52 * 9 ) AS col0
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2213
SELECT ALL 12 + CAST( + 78 AS SIGNED )
----
90

skipif mysql # not compatible
query I rowsort label-2213
SELECT ALL 12 + CAST ( + 78 AS INTEGER )
----
90

query II rowsort
SELECT - 71 * + - 88 AS col1, + 76 col2
----
6248
76

query I rowsort
SELECT + 94 + + 70
----
164

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2216
SELECT DISTINCT COALESCE ( - COALESCE ( + CAST( + - MAX( - 45 ) AS SIGNED ), 44 ), ( - - ( + 29 ) ) + - 86 ) col1
----
-45

skipif mysql # not compatible
query I rowsort label-2216
SELECT DISTINCT COALESCE ( - COALESCE ( + CAST ( + - MAX ( - 45 ) AS INTEGER ), 44 ), ( - - ( + 29 ) ) + - 86 ) col1
----
-45

query I rowsort
SELECT + 29 - + + ( - 30 )
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2218
SELECT ALL 52 - + 75 * - 39 * - COUNT( ALL 10 ) * 84 * - 70 - + 12 - - - 87
----
17198953

skipif mysql # not compatible
query I rowsort label-2218
SELECT ALL 52 - + 75 * - 39 * - COUNT ( ALL 10 ) * 84 * - 70 - + 12 - - - 87
----
17198953

onlyif mysql # aggregate syntax: 
query I rowsort label-2219
SELECT DISTINCT COALESCE ( + COUNT( * ), - - 90 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-2219
SELECT DISTINCT COALESCE ( + COUNT ( * ), - - 90 ) col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2220
SELECT - COALESCE ( - + 41, COUNT( * ) * + COALESCE ( + + 95, - 61 / + - 95 + + 83 * - ( - 10 ) / + 78 * NULLIF ( + - 12, 67 ) / - 28 ) + 87, 72 ) * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2220
SELECT - COALESCE ( - + 41, COUNT ( * ) * + COALESCE ( + + 95, - 61 / + - 95 + + 83 * - ( - 10 ) / + 78 * NULLIF ( + - 12, 67 ) / - 28 ) + 87, 72 ) * CAST ( NULL AS REAL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2221
SELECT - 93 DIV 19 * + 70 AS col2
----
-280

skipif mysql # not compatible
query I rowsort label-2221
SELECT - 93 / 19 * + 70 AS col2
----
-280

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2222
SELECT ALL CASE CAST( NULL AS SIGNED ) WHEN + 61 THEN CAST( NULL AS SIGNED ) * + - 28 * 21 / 99 * - COUNT( * ) WHEN 79 THEN MAX( ALL + 11 ) * + CAST( NULL AS SIGNED ) WHEN - + COUNT( * ) * 97 + + 8 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2222
SELECT ALL CASE CAST ( NULL AS INTEGER ) WHEN + 61 THEN CAST ( NULL AS INTEGER ) * + - 28 * 21 / 99 * - COUNT ( * ) WHEN 79 THEN MAX ( ALL + 11 ) * + CAST ( NULL AS INTEGER ) WHEN - + COUNT ( * ) * 97 + + 8 THEN NULL END
----
NULL

query I rowsort
SELECT + 4 * - + 85
----
-340

query I rowsort
SELECT DISTINCT 10 * 2 AS col1
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-2225
SELECT - COUNT( * ) - - 18 * - - 68
----
1223

skipif mysql # not compatible
query I rowsort label-2225
SELECT - COUNT ( * ) - - 18 * - - 68
----
1223

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2227
SELECT ALL CAST( - + CASE 88 WHEN CAST( NULL AS SIGNED ) THEN + 60 WHEN 7 THEN - 54 + + NULLIF ( + + 26, + 77 + - CASE - 83 WHEN 37 / ( - + COUNT( * ) ) THEN + CAST( NULL AS DECIMAL ) ELSE NULL END ) + + 1 END AS SIGNED ) * + - COUNT( ALL + CAST( NULL AS SIGNED ) ) * - 52 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2227
SELECT ALL CAST ( - + CASE 88 WHEN CAST ( NULL AS INTEGER ) THEN + 60 WHEN 7 THEN - 54 + + NULLIF ( + + 26, + 77 + - CASE - 83 WHEN 37 / ( - + COUNT ( * ) ) THEN + CAST ( NULL AS REAL ) ELSE NULL END ) + + 1 END AS INTEGER ) * + - COUNT ( ALL + CAST ( NULL AS INTEGER ) ) * - 52 AS col0
----
NULL

query I rowsort
SELECT + - CASE 85 WHEN - 7 THEN - - 7 / + 96 END * - - 3
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2229
SELECT ALL + CASE + 84 WHEN - 96 + + - 21 * + - 20 - + 97 * - 12 THEN NULL WHEN - - 58 THEN MAX( ALL 21 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2229
SELECT ALL + CASE + 84 WHEN - 96 + + - 21 * + - 20 - + 97 * - 12 THEN NULL WHEN - - 58 THEN MAX ( ALL 21 ) END
----
NULL

query II rowsort
SELECT - ( 56 ) AS col2, 0 + - 55 + 42 * - ( - 26 ) + + NULLIF ( 69, 55 ) + + 8 AS col2
----
-56
1114

onlyif mysql # DIV for integer division: 
query I rowsort label-2231
SELECT COALESCE ( - 37, - 68 ) * - 71 - + 46 + - 85 DIV - ( + 33 )
----
2583

skipif mysql # not compatible
query I rowsort label-2231
SELECT COALESCE ( - 37, - 68 ) * - 71 - + 46 + - 85 / - ( + 33 )
----
2583

onlyif mysql # DIV for integer division: 
query I rowsort label-2232
SELECT ALL 38 DIV 90
----
0

skipif mysql # not compatible
query I rowsort label-2232
SELECT ALL 38 / 90
----
0

query II rowsort
SELECT ALL + 45 AS col1, - 65 * 34 col1
----
45
-2210

query I rowsort
SELECT DISTINCT - 74 * - 69
----
5106

onlyif mysql # aggregate syntax: 
query I rowsort label-2235
SELECT - COUNT( ALL + - 93 ) * COUNT( DISTINCT 20 ) + - COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-2235
SELECT - COUNT ( ALL + - 93 ) * COUNT ( DISTINCT 20 ) + - COUNT ( * )
----
-2

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2236
SELECT CAST( NULL AS DECIMAL ), + 52 + - 73 + 33 * + - CAST( NULL AS SIGNED ) AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2236
SELECT CAST ( NULL AS REAL ), + 52 + - 73 + 33 * + - CAST ( NULL AS INTEGER ) AS col0
----
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2237
SELECT ALL 4 DIV 33 * ( - - 44 ) + - + ( 19 )
----
-19

skipif mysql # not compatible
query I rowsort label-2237
SELECT ALL 4 / 33 * ( - - 44 ) + - + ( 19 )
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2238
SELECT + + 80 / - - 47 * CASE + 32 WHEN - 47 * 48 THEN - 1 WHEN COALESCE ( - + 28, - 58, - + CAST( NULL AS SIGNED ) + - - 13 * - ( + COUNT( * ) ) ) THEN NULL END + - + 35 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2238
SELECT + + 80 / - - 47 * CASE + 32 WHEN - 47 * 48 THEN - 1 WHEN COALESCE ( - + 28, - 58, - + CAST ( NULL AS INTEGER ) + - - 13 * - ( + COUNT ( * ) ) ) THEN NULL END + - + 35 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2239
SELECT - COUNT( * ) * + CASE + ( - ( 5 ) ) WHEN - 28 + 73 THEN NULL ELSE - 30 + + 45 + 12 * + - 82 END + + 76 - - COUNT( * )
----
1046

skipif mysql # not compatible
query I rowsort label-2239
SELECT - COUNT ( * ) * + CASE + ( - ( 5 ) ) WHEN - 28 + 73 THEN NULL ELSE - 30 + + 45 + 12 * + - 82 END + + 76 - - COUNT ( * )
----
1046

query I rowsort
SELECT + - 66 * - 23
----
1518

query II rowsort
SELECT + 92 + + 62, - 75 AS col1
----
154
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2242
SELECT - - 28 - + - MIN( DISTINCT 31 ) col0
----
59

skipif mysql # not compatible
query I rowsort label-2242
SELECT - - 28 - + - MIN ( DISTINCT 31 ) col0
----
59

query II rowsort
SELECT - 82 * + 65 + + - 65 AS col2, + 57 * + ( - - 88 )
----
-5395
5016

onlyif mysql # DIV for integer division: 
query II rowsort label-2244
SELECT ALL + 90 DIV 71, + COALESCE ( 65, + 4 ) AS col2
----
1
65

skipif mysql # not compatible
query II rowsort label-2244
SELECT ALL + 90 / 71, + COALESCE ( 65, + 4 ) AS col2
----
1
65

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2245
SELECT + CAST( - 49 AS SIGNED ) AS col2, - 42 * - - 68 * + - NULLIF ( + 18, + 1 )
----
-49
51408

skipif mysql # not compatible
query II rowsort label-2245
SELECT + CAST ( - 49 AS INTEGER ) AS col2, - 42 * - - 68 * + - NULLIF ( + 18, + 1 )
----
-49
51408

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2246
SELECT DISTINCT - 34 * + 52 * - 44 + + - 4 + + 78 DIV ( - 92 ) * + - COUNT( * ) AS col2
----
77788

skipif mysql # not compatible
query I rowsort label-2246
SELECT DISTINCT - 34 * + 52 * - 44 + + - 4 + + 78 / ( - 92 ) * + - COUNT ( * ) AS col2
----
77788

query I rowsort
SELECT ALL + 51 * 18 + + + 24 + + 39 + 60
----
1041

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2250
SELECT - 53 * - 49 AS col2, + 79 * + - CASE 41 WHEN + 33 THEN NULL WHEN - 58 THEN - 20 * - - CAST( + COUNT( * ) AS SIGNED ) / 12 / - + 56 WHEN + 52 + + - ( + + 54 ) / 17 THEN NULL ELSE NULL END
----
2597
NULL

skipif mysql # not compatible
query II rowsort label-2250
SELECT - 53 * - 49 AS col2, + 79 * + - CASE 41 WHEN + 33 THEN NULL WHEN - 58 THEN - 20 * - - CAST ( + COUNT ( * ) AS INTEGER ) / 12 / - + 56 WHEN + 52 + + - ( + + 54 ) / 17 THEN NULL ELSE NULL END
----
2597
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2251
SELECT DISTINCT + 18 * + 54 * 24 - 74 + + 69 * 39 * + CAST( NULL AS SIGNED ) + CAST( - - NULLIF ( - 28, SUM( - + 53 ) + - 50 ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2251
SELECT DISTINCT + 18 * + 54 * 24 - 74 + + 69 * 39 * + CAST ( NULL AS INTEGER ) + CAST ( - - NULLIF ( - 28, SUM ( - + 53 ) + - 50 ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2252
SELECT - SUM( + 18 ) AS col1, 18
----
-18
18

skipif mysql # not compatible
query II rowsort label-2252
SELECT - SUM ( + 18 ) AS col1, 18
----
-18
18

query I rowsort
SELECT ALL 62 * + 29 - + - 31
----
1829

query I rowsort
SELECT - 17 * + ( - - 26 )
----
-442

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2256
SELECT ALL CAST( - ( - + COALESCE ( + COUNT( * ), - 17 ) ) AS SIGNED ) col0
----
1

skipif mysql # not compatible
query I rowsort label-2256
SELECT ALL CAST ( - ( - + COALESCE ( + COUNT ( * ), - 17 ) ) AS INTEGER ) col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2257
SELECT - COALESCE ( - 80, 50, - 16 + 24 + 29 * - - 36 DIV + 61 ) + + 8 AS col1
----
88

skipif mysql # not compatible
query I rowsort label-2257
SELECT - COALESCE ( - 80, 50, - 16 + 24 + 29 * - - 36 / + 61 ) + + 8 AS col1
----
88

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

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

query I rowsort
SELECT - 99 + - 38 AS col0
----
-137

query I rowsort
SELECT + + 8 + 40 * - + 51
----
-2032

onlyif mysql # DIV for integer division: 
query I rowsort label-2261
SELECT - + 97 DIV 59 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2261
SELECT - + 97 / 59 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2262
SELECT - NULLIF ( + COUNT( * ), - + 78 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2262
SELECT - NULLIF ( + COUNT ( * ), - + 78 ) AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2263
SELECT + - 33 + 57 - + - MIN( - 37 ) * - COUNT( * ) * - + 47 + + 12 * - 23 + - CAST( + - 32 AS SIGNED ) DIV 91 * + - 94 DIV - - 9 * 46
----
-1991

skipif mysql # not compatible
query I rowsort label-2263
SELECT + - 33 + 57 - + - MIN ( - 37 ) * - COUNT ( * ) * - + 47 + + 12 * - 23 + - CAST ( + - 32 AS INTEGER ) / 91 * + - 94 / - - 9 * 46
----
-1991

onlyif mysql # aggregate syntax: 
query I rowsort label-2264
SELECT - MAX( 82 ) + + 62
----
-20

skipif mysql # not compatible
query I rowsort label-2264
SELECT - MAX ( 82 ) + + 62
----
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-2265
SELECT - + ( - 10 ) DIV 53 + 73 AS col0
----
73

skipif mysql # not compatible
query I rowsort label-2265
SELECT - + ( - 10 ) / 53 + 73 AS col0
----
73

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2267
SELECT ALL 26 + - + 57 * - - MAX( ALL - - 32 )
----
-1798

skipif mysql # not compatible
query I rowsort label-2267
SELECT ALL 26 + - + 57 * - - MAX ( ALL - - 32 )
----
-1798

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2268
SELECT - 96 + + 17 * - COUNT( DISTINCT + 26 ) DIV - 87 + + - 30 + - 51 * + 37 AS col2
----
-2013

skipif mysql # not compatible
query I rowsort label-2268
SELECT - 96 + + 17 * - COUNT ( DISTINCT + 26 ) / - 87 + + - 30 + - 51 * + 37 AS col2
----
-2013

onlyif mysql # DIV for integer division: 
query I rowsort label-2269
SELECT - 73 DIV 89 + 73 AS col2
----
73

skipif mysql # not compatible
query I rowsort label-2269
SELECT - 73 / 89 + 73 AS col2
----
73

query II rowsort
SELECT 62 * - 78 AS col1, + 48 AS col2
----
-4836
48

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

skipif mysql # not compatible
query I rowsort label-2271
SELECT COUNT ( * ) * - - 8
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-2272
SELECT + ( - - 52 ) + COALESCE ( - 70, + 78 ) AS col0, + 86 + + COUNT( - 24 ) - + - COUNT( * ) + 17 * COALESCE ( 31, 98, 53 ) * - 60 AS col2
----
-18
-31532

skipif mysql # not compatible
query II rowsort label-2272
SELECT + ( - - 52 ) + COALESCE ( - 70, + 78 ) AS col0, + 86 + + COUNT ( - 24 ) - + - COUNT ( * ) + 17 * COALESCE ( 31, 98, 53 ) * - 60 AS col2
----
-18
-31532

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2273
SELECT ALL - 26 + - CASE - - 54 WHEN CAST( NULL AS SIGNED ) THEN + + MIN( DISTINCT + + 64 ) ELSE - 18 * - 99 END AS col2, 92 * 88
----
-1808
8096

skipif mysql # not compatible
query II rowsort label-2273
SELECT ALL - 26 + - CASE - - 54 WHEN CAST ( NULL AS INTEGER ) THEN + + MIN ( DISTINCT + + 64 ) ELSE - 18 * - 99 END AS col2, 92 * 88
----
-1808
8096

query I rowsort
SELECT + + COALESCE ( + - 27, 23, - - 12 + 25 + 69 ) AS col0
----
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2275
SELECT DISTINCT + COUNT( * ) + + 31 + 4 + - - 41 + + 81 * 92 + + 16 AS col1, ( 59 ) DIV + SUM( DISTINCT + 1 )
----
7545
59

skipif mysql # not compatible
query II rowsort label-2275
SELECT DISTINCT + COUNT ( * ) + + 31 + 4 + - - 41 + + 81 * 92 + + 16 AS col1, ( 59 ) / + SUM ( DISTINCT + 1 )
----
7545
59

onlyif mysql # aggregate syntax: 
query II rowsort label-2276
SELECT COUNT( * ) + + COUNT( * ) AS col0, + 46 AS col0
----
2
46

skipif mysql # not compatible
query II rowsort label-2276
SELECT COUNT ( * ) + + COUNT ( * ) AS col0, + 46 AS col0
----
2
46

onlyif mysql # aggregate syntax: 
query I rowsort label-2277
SELECT ALL MAX( + - COALESCE ( + + 99, 47 ) ) + - 87 AS col2
----
-186

skipif mysql # not compatible
query I rowsort label-2277
SELECT ALL MAX ( + - COALESCE ( + + 99, 47 ) ) + - 87 AS col2
----
-186

query II rowsort
SELECT + 13, 99 AS col0
----
13
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2279
SELECT COUNT( * ) - - + 8 + - 76 * CAST( NULL AS SIGNED ) / COUNT( * ) * 75 + + COUNT( DISTINCT - CAST( NULL AS SIGNED ) ), ( - 27 ) * - 73 * CASE + 76 WHEN + 75 / - 5 THEN + - COUNT( * ) ELSE NULL END * 18 * + 49 + - - 40 * + MIN( ALL - 91 ) * CASE + ( - 97 ) WHEN 21 THEN + 30 * - 38 + 35 * - + 93 * - + 74 WHEN 75 THEN - - 26 * - 43 END
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2279
SELECT COUNT ( * ) - - + 8 + - 76 * CAST ( NULL AS INTEGER ) / COUNT ( * ) * 75 + + COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ), ( - 27 ) * - 73 * CASE + 76 WHEN + 75 / - 5 THEN + - COUNT ( * ) ELSE NULL END * 18 * + 49 + - - 40 * + MIN ( ALL - 91 ) * CASE + ( - 97 ) WHEN 21 THEN + 30 * - 38 + 35 * - + 93 * - + 74 WHEN 75 THEN - - 26 * - 43 END
----
NULL
NULL

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

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

query II rowsort
SELECT 62 AS col1, - 82
----
62
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-2282
SELECT + 2 * - - 67 * + + COUNT( ALL - + 58 ) * + - 36 * + + NULLIF ( + + 19, + 25 ) + - 99 + - - 10 + + 2 + + 59 * + 82 AS col0
----
-86905

skipif mysql # not compatible
query I rowsort label-2282
SELECT + 2 * - - 67 * + + COUNT ( ALL - + 58 ) * + - 36 * + + NULLIF ( + + 19, + 25 ) + - 99 + - - 10 + + 2 + + 59 * + 82 AS col0
----
-86905

onlyif mysql # aggregate syntax: 
query I rowsort label-2283
SELECT DISTINCT ( - 31 ) * - 48 + MAX( 46 ) * + 58
----
4156

skipif mysql # not compatible
query I rowsort label-2283
SELECT DISTINCT ( - 31 ) * - 48 + MAX ( 46 ) * + 58
----
4156

query I rowsort
SELECT 70 + + 59 col1
----
129

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2285
SELECT ( - - 1 ) DIV - 71 * 5 AS col2, + 48 + + SUM( + 12 ) + + 3 + - 92 DIV - + 39 + + COUNT( * ) * - 40 DIV + 16 + - + 98 AS col1
----
0
-35

skipif mysql # not compatible
query II rowsort label-2285
SELECT ( - - 1 ) / - 71 * 5 AS col2, + 48 + + SUM ( + 12 ) + + 3 + - 92 / - + 39 + + COUNT ( * ) * - 40 / + 16 + - + 98 AS col1
----
0
-35

query I rowsort
SELECT DISTINCT 82 * 44
----
3608

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2287
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 99 * - 37
----
NULL

skipif mysql # not compatible
query I rowsort label-2287
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 99 * - 37
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2288
SELECT DISTINCT + 41 DIV 10 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-2288
SELECT DISTINCT + 41 / 10 AS col2
----
4

query II rowsort
SELECT 0 col2, + 95
----
0
95

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

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

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

query I rowsort
SELECT 95 + + 71 * + 86
----
6201

onlyif mysql # aggregate syntax: 
query I rowsort label-2293
SELECT CASE + 52 WHEN + 13 / + + 24 + 95 + + 44 * + 35 + 13 / - 55 * - COUNT( * ) * + COUNT( * ) * - MAX( 53 ) THEN NULL WHEN COUNT( * ) - - AVG ( + 52 ) - + 27 THEN + - 88 ELSE NULL END * 50 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2293
SELECT CASE + 52 WHEN + 13 / + + 24 + 95 + + 44 * + 35 + 13 / - 55 * - COUNT ( * ) * + COUNT ( * ) * - MAX ( 53 ) THEN NULL WHEN COUNT ( * ) - - AVG ( + 52 ) - + 27 THEN + - 88 ELSE NULL END * 50 col1
----
NULL

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

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

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

skipif mysql # not compatible
query II rowsort label-2295
SELECT - 10 col1, ( + - COUNT ( * ) )
----
-10
-1

query I rowsort
SELECT ALL - CASE 35 WHEN - 19 / - - ( + 27 ) + + 98 THEN NULL ELSE + 53 + + + 46 END + - 14 * + 41 AS col2
----
-673

query I rowsort
SELECT ALL + + 29 + - - 93 AS col1
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-2298
SELECT ALL + 91 + + CASE - + 5 WHEN - 97 + + 81 THEN - COUNT( * ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2298
SELECT ALL + 91 + + CASE - + 5 WHEN - 97 + + 81 THEN - COUNT ( * ) ELSE NULL END AS col0
----
NULL

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

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

query I rowsort
SELECT - + NULLIF ( + 12, - + 30 ) col0
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2301
SELECT ALL + ( - - 6 ) + + NULLIF ( - 71, + - 80 ) - ( + - CAST( 91 AS SIGNED ) ) * 71 AS col0
----
6396

skipif mysql # not compatible
query I rowsort label-2301
SELECT ALL + ( - - 6 ) + + NULLIF ( - 71, + - 80 ) - ( + - CAST ( 91 AS INTEGER ) ) * 71 AS col0
----
6396

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2302
SELECT + 47 + - COALESCE ( + 28, + - ( - ( - + ( + + SUM( + 57 ) ) ) ) ) + - 25 DIV + 53
----
19

skipif mysql # not compatible
query I rowsort label-2302
SELECT + 47 + - COALESCE ( + 28, + - ( - ( - + ( + + SUM ( + 57 ) ) ) ) ) + - 25 / + 53
----
19

query I rowsort
SELECT + 16 * 9 AS col1
----
144

query I rowsort
SELECT ALL - + 24 + + 37
----
13

query I rowsort
SELECT ALL + 86 + 16 + + 52 col0
----
154

query I rowsort
SELECT DISTINCT + - 12 * + 40 AS col2
----
-480

query I rowsort
SELECT ALL - - 49 + - 13 - - + 42 - 18 AS col0
----
60

query II rowsort
SELECT ALL - - 66 AS col2, - 63 + 42
----
66
-21

query I rowsort
SELECT ALL + 14 * NULLIF ( + + 60, 32 ) + + 89 * + 50 AS col1
----
5290

query II rowsort
SELECT + 85 AS col0, - 17 * - + 38 AS col0
----
85
646

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query III rowsort label-2311
SELECT 36 DIV + 39 * - 21 + + 28 AS col2, + 79 * ( + - 19 ) AS col1, + ( + - ( 80 ) ) + - COALESCE ( - CASE + + 85 WHEN ( + 68 ) THEN - 91 ELSE - ( + - CAST( NULL AS SIGNED ) ) END, - + 59, - AVG ( - 64 ) DIV + 34 ) col2
----
28
-1501
-21

skipif mysql # not compatible
query III rowsort label-2311
SELECT 36 / + 39 * - 21 + + 28 AS col2, + 79 * ( + - 19 ) AS col1, + ( + - ( 80 ) ) + - COALESCE ( - CASE + + 85 WHEN ( + 68 ) THEN - 91 ELSE - ( + - CAST ( NULL AS INTEGER ) ) END, - + 59, - AVG ( - 64 ) / + 34 ) col2
----
28
-1501
-21

query I rowsort
SELECT 28 + - 13 + + 7 col0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-2313
SELECT 35 * 45 * - 12 * SUM( ALL + 18 ) AS col1
----
-340200

skipif mysql # not compatible
query I rowsort label-2313
SELECT 35 * 45 * - 12 * SUM ( ALL + 18 ) AS col1
----
-340200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2314
SELECT 63 + NULLIF ( + ( + AVG ( - + 31 ) ), 9 ) * + ( + CAST( NULL AS SIGNED ) ) * + - AVG ( DISTINCT + - CAST( NULL AS SIGNED ) ) AS col0, COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-2314
SELECT 63 + NULLIF ( + ( + AVG ( - + 31 ) ), 9 ) * + ( + CAST ( NULL AS INTEGER ) ) * + - AVG ( DISTINCT + - CAST ( NULL AS INTEGER ) ) AS col0, COUNT ( * )
----
NULL
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2315
SELECT 40 + + 24 DIV 95 DIV + ( + + 63 ) * + + 85 AS col0
----
40

skipif mysql # not compatible
query I rowsort label-2315
SELECT 40 + + 24 / 95 / + ( + + 63 ) * + + 85 AS col0
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2316
SELECT ( SUM( - 80 ) ) DIV - COUNT( * ) + - - 37 * 87 col0
----
3299

skipif mysql # not compatible
query I rowsort label-2316
SELECT ( SUM ( - 80 ) ) / - COUNT ( * ) + - - 37 * 87 col0
----
3299

query I rowsort
SELECT CASE - + ( + 91 ) WHEN - - 19 THEN NULL WHEN - 34 THEN NULL ELSE + + 81 END + + - NULLIF ( + - 1, - 23 + + 0 )
----
82

query I rowsort
SELECT DISTINCT 87 * - 33 AS col0
----
-2871

query I rowsort
SELECT + 97 * + 32 * 69 + + + 62 col1
----
214238

onlyif mysql # DIV for integer division: 
query I rowsort label-2320
SELECT ( - 48 ) DIV - 24
----
2

skipif mysql # not compatible
query I rowsort label-2320
SELECT ( - 48 ) / - 24
----
2

query I rowsort
SELECT DISTINCT 92 + 7 AS col2
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2322
SELECT + 65 + + ( + - CASE - 81 WHEN - + 6 THEN + 99 / 77 WHEN - - ( CAST( - 72 AS SIGNED ) ) * + - 53 THEN + 11 * 38 + + + 72 + - 8 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-2322
SELECT + 65 + + ( + - CASE - 81 WHEN - + 6 THEN + 99 / 77 WHEN - - ( CAST ( - 72 AS INTEGER ) ) * + - 53 THEN + 11 * 38 + + + 72 + - 8 ELSE NULL END )
----
NULL

query II rowsort
SELECT ALL - + 64 + - 86, + 99 col2
----
-150
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2324
SELECT + - COUNT( + 86 ) + - 52 AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-2324
SELECT + - COUNT ( + 86 ) + - 52 AS col0
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-2325
SELECT + MAX( DISTINCT + 69 ) - - 68 + 93 + + MAX( 70 ) * - 5 col1
----
-120

skipif mysql # not compatible
query I rowsort label-2325
SELECT + MAX ( DISTINCT + 69 ) - - 68 + 93 + + MAX ( 70 ) * - 5 col1
----
-120

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2328
SELECT DISTINCT + + ( - COALESCE ( 91, + 4 * MIN( - - 22 ) + - 19 + 3 DIV - SUM( ALL - + 94 ) + COALESCE ( CAST( - - ( - 53 ) AS SIGNED ), 32 - + CAST( NULL AS SIGNED ) ) DIV + - 44 + + 57 DIV 45 * - - 54, - 86 DIV + + 1, - COUNT( * ) * + ( 73 ) * - 42 + + 57 + - 75 ) ) * - 63 AS col2
----
5733

skipif mysql # not compatible
query I rowsort label-2328
SELECT DISTINCT + + ( - COALESCE ( 91, + 4 * MIN ( - - 22 ) + - 19 + 3 / - SUM ( ALL - + 94 ) + COALESCE ( CAST ( - - ( - 53 ) AS INTEGER ), 32 - + CAST ( NULL AS INTEGER ) ) / + - 44 + + 57 / 45 * - - 54, - 86 / + + 1, - COUNT ( * ) * + ( 73 ) * - 42 + + 57 + - 75 ) ) * - 63 AS col2
----
5733

onlyif mysql # aggregate syntax: 
query I rowsort label-2329
SELECT ALL + COALESCE ( + 66, - SUM( + 66 ) ) - - 22
----
88

skipif mysql # not compatible
query I rowsort label-2329
SELECT ALL + COALESCE ( + 66, - SUM ( + 66 ) ) - - 22
----
88

query II rowsort
SELECT - - 54 + + 25, - 16 AS col2
----
79
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-2331
SELECT ALL - MAX( 46 ) AS col2, ( + + 8 )
----
-46
8

skipif mysql # not compatible
query II rowsort label-2331
SELECT ALL - MAX ( 46 ) AS col2, ( + + 8 )
----
-46
8

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

skipif mysql # not compatible
query I rowsort label-2332
SELECT + COUNT ( * ) / - + 45 - - + 55 AS col2
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2333
SELECT - CAST( NULL AS SIGNED ) * 2 / + COALESCE ( + 23, + + 76 ) - - 50 + + 63 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2333
SELECT - CAST ( NULL AS INTEGER ) * 2 / + COALESCE ( + 23, + + 76 ) - - 50 + + 63 AS col2
----
NULL

query I rowsort
SELECT - 30 + + 32 - + 53
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-2335
SELECT ALL + SUM( 92 ) col1
----
92

skipif mysql # not compatible
query I rowsort label-2335
SELECT ALL + SUM ( 92 ) col1
----
92

query I rowsort
SELECT COALESCE ( - 85, - 11 ) AS col0
----
-85

onlyif mysql # DIV for integer division: 
query II rowsort label-2337
SELECT - 42 DIV 10 * + 0, + 83 AS col2
----
0
83

skipif mysql # not compatible
query II rowsort label-2337
SELECT - 42 / 10 * + 0, + 83 AS col2
----
0
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2338
SELECT DISTINCT - 59 / - + CAST( NULL AS SIGNED ) / - 46 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2338
SELECT DISTINCT - 59 / - + CAST ( NULL AS INTEGER ) / - 46 AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2340
SELECT ALL - 41 * - + MIN( ALL + 96 )
----
3936

skipif mysql # not compatible
query I rowsort label-2340
SELECT ALL - 41 * - + MIN ( ALL + 96 )
----
3936

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2341
SELECT NULLIF ( - CAST( NULL AS SIGNED ), + ( + SUM( ALL - 18 ) ) ) AS col1, - COUNT( * ) AS col0
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-2341
SELECT NULLIF ( - CAST ( NULL AS INTEGER ), + ( + SUM ( ALL - 18 ) ) ) AS col1, - COUNT ( * ) AS col0
----
NULL
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2342
SELECT ALL - 68 DIV - ( + 63 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2342
SELECT ALL - 68 / - ( + 63 ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2343
SELECT DISTINCT + CASE - + 22 WHEN - - 40 THEN NULL WHEN - CAST( - COUNT( * ) AS SIGNED ) THEN - + ( 47 ) END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2343
SELECT DISTINCT + CASE - + 22 WHEN - - 40 THEN NULL WHEN - CAST ( - COUNT ( * ) AS INTEGER ) THEN - + ( 47 ) END col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2344
SELECT ALL 82 * + 45 * - CAST( - + 57 AS SIGNED ) AS col0
----
210330

skipif mysql # not compatible
query I rowsort label-2344
SELECT ALL 82 * + 45 * - CAST ( - + 57 AS INTEGER ) AS col0
----
210330

query I rowsort
SELECT - 58 - - 97 AS col2
----
39

query I rowsort
SELECT NULLIF ( + - ( 54 ), - 79 / + 75 * ( + 73 ) )
----
-54

query I rowsort
SELECT - NULLIF ( + - 27, - + 11 ) - - 40
----
67

query I rowsort
SELECT ALL + 69 * 12 AS col1
----
828

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2349
SELECT - CASE - + NULLIF ( + - SUM( + 38 ), - - 70 ) WHEN 16 * - CAST( NULL AS SIGNED ) THEN 83 END * 64 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2349
SELECT - CASE - + NULLIF ( + - SUM ( + 38 ), - - 70 ) WHEN 16 * - CAST ( NULL AS INTEGER ) THEN 83 END * 64 AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2350
SELECT + SUM ( + + ( + 27 ) )
----
27

query I rowsort
SELECT - 22 * + 90
----
-1980

onlyif mysql # aggregate syntax: 
query I rowsort label-2352
SELECT COALESCE ( + + MAX( 87 ), 77 - 26 )
----
87

skipif mysql # not compatible
query I rowsort label-2352
SELECT COALESCE ( + + MAX ( 87 ), 77 - 26 )
----
87

query I rowsort
SELECT ALL - + 45 + - 21 + - CASE + 98 WHEN - + 62 THEN - + 65 * - - 51 END + + + 24 / + 28
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2354
SELECT - 2 * - 38 + + COUNT ( * ) AS col2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2355
SELECT - CASE - + ( - 70 ) WHEN + 82 * + - COUNT( * ) / + 54 - - 11 * + 51 THEN - 27 ELSE - - 12 END AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-2355
SELECT - CASE - + ( - 70 ) WHEN + 82 * + - COUNT ( * ) / + 54 - - 11 * + 51 THEN - 27 ELSE - - 12 END AS col2
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2356
SELECT + COUNT( - + 36 ) + + 85 + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2356
SELECT + COUNT ( - + 36 ) + + 85 + + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + 88 + 90 AS col0
----
178

query I rowsort
SELECT + - 8 * + 69 AS col0
----
-552

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2360
SELECT DISTINCT 0 - + + 31 + - + 57 + - - 25 DIV COUNT( * ) AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-2360
SELECT DISTINCT 0 - + + 31 + - + 57 + - - 25 / COUNT ( * ) AS col1
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-2361
SELECT ALL - COUNT( DISTINCT 39 ) * - + 45 AS col0
----
45

skipif mysql # not compatible
query I rowsort label-2361
SELECT ALL - COUNT ( DISTINCT 39 ) * - + 45 AS col0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-2362
SELECT DISTINCT ( - NULLIF ( MIN( ALL + + 29 ), - 77 - + 39 ) ) * + 39
----
-1131

skipif mysql # not compatible
query I rowsort label-2362
SELECT DISTINCT ( - NULLIF ( MIN ( ALL + + 29 ), - 77 - + 39 ) ) * + 39
----
-1131

query I rowsort
SELECT + - 14 * - 9 + - - 51 + + 51 col0
----
228

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2364
SELECT + 31 + - + 92 - + 83 + - + 38 DIV - COUNT( ALL + 48 ) + - ( - ( 45 ) ) * + 50
----
2144

skipif mysql # not compatible
query I rowsort label-2364
SELECT + 31 + - + 92 - + 83 + - + 38 / - COUNT ( ALL + 48 ) + - ( - ( 45 ) ) * + 50
----
2144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2365
SELECT CAST( NULL AS SIGNED ), - 38 + + + 6 + + 8 * - 22 * + 98 + + - CAST( - CASE WHEN ( NULL ) BETWEEN + 71 AND NULL THEN + - 6 * - + 28 + 95 WHEN 26 IN ( + + 5, - 61, - 46, 76, + COUNT( * ) * - - 91 ) THEN + 72 + + 3 END AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2365
SELECT CAST ( NULL AS INTEGER ), - 38 + + + 6 + + 8 * - 22 * + 98 + + - CAST ( - CASE WHEN ( NULL ) BETWEEN + 71 AND NULL THEN + - 6 * - + 28 + 95 WHEN 26 IN ( + + 5, - 61, - 46, 76, + COUNT ( * ) * - - 91 ) THEN + 72 + + 3 END AS INTEGER )
----
NULL
NULL

query I rowsort
SELECT + - COALESCE ( + 18, 1 * + 10 ) * 45 - - 0 AS col0
----
-810

query I rowsort
SELECT + 1 * - 3 AS col0
----
-3

query I rowsort
SELECT ALL - 72 * - 37 * + 10 AS col2
----
26640

onlyif mysql # aggregate syntax: 
query I rowsort label-2369
SELECT 36 * - SUM( + 54 ) * 50 - + + 84 AS col2
----
-97284

skipif mysql # not compatible
query I rowsort label-2369
SELECT 36 * - SUM ( + 54 ) * 50 - + + 84 AS col2
----
-97284

query I rowsort
SELECT ALL + NULLIF ( + + 17, + 32 + + ( - 74 ) ) AS col0
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-2371
SELECT DISTINCT - 15 DIV + + 32 + - + 92 + - 98 * 63 - - - 76 + + - 66
----
-6408

skipif mysql # not compatible
query I rowsort label-2371
SELECT DISTINCT - 15 / + + 32 + - + 92 + - 98 * 63 - - - 76 + + - 66
----
-6408

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2373
SELECT + 52 DIV 77 * - - 90 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2373
SELECT + 52 / 77 * - - 90 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2374
SELECT - SUM( DISTINCT - 37 ) DIV + 48 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2374
SELECT - SUM ( DISTINCT - 37 ) / + 48 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2375
SELECT ALL 2 DIV - 8 + - + 50 * - - 86 + + 95 + + 82 * - 1 + NULLIF ( + + 56, + + 8 * - 75 + - 81 * 96 )
----
-4231

skipif mysql # not compatible
query I rowsort label-2375
SELECT ALL 2 / - 8 + - + 50 * - - 86 + + 95 + + 82 * - 1 + NULLIF ( + + 56, + + 8 * - 75 + - 81 * 96 )
----
-4231

onlyif mysql # DIV for integer division: 
query I rowsort label-2376
SELECT ALL 70 DIV - + 89 + + - 75 col1
----
-75

skipif mysql # not compatible
query I rowsort label-2376
SELECT ALL 70 / - + 89 + + - 75 col1
----
-75

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2378
SELECT + 89 * COUNT( * ) + 48 + + 14 AS col1
----
151

skipif mysql # not compatible
query I rowsort label-2378
SELECT + 89 * COUNT ( * ) + 48 + + 14 AS col1
----
151

onlyif mysql # DIV for integer division: 
query I rowsort label-2379
SELECT DISTINCT - 20 DIV + 58 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2379
SELECT DISTINCT - 20 / + 58 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2380
SELECT + 86 + COALESCE ( 62, + CAST( - 29 AS SIGNED ) * - 8 ) AS col2, 60 + + + 31 * - 28 AS col0
----
148
-808

skipif mysql # not compatible
query II rowsort label-2380
SELECT + 86 + COALESCE ( 62, + CAST ( - 29 AS INTEGER ) * - 8 ) AS col2, 60 + + + 31 * - 28 AS col0
----
148
-808

query I rowsort
SELECT + ( + 21 ) * + + 83 * 11 + - 10
----
19163

query I rowsort
SELECT ALL NULLIF ( - 92, 25 )
----
-92

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2383
SELECT DISTINCT + 44 AS col2, COUNT( ALL - - 39 ) DIV - 11 * + 86 AS col0
----
44
0

skipif mysql # not compatible
query II rowsort label-2383
SELECT DISTINCT + 44 AS col2, COUNT ( ALL - - 39 ) / - 11 * + 86 AS col0
----
44
0

query I rowsort
SELECT - 36 + 41 AS col0
----
5

query II rowsort
SELECT ALL + 96 AS col1, - 8 + - - 48
----
96
40

onlyif mysql # aggregate syntax: 
query II rowsort label-2386
SELECT 18 AS col1, - 34 * - + 20 + + MIN( - 49 ) AS col0
----
18
631

skipif mysql # not compatible
query II rowsort label-2386
SELECT 18 AS col1, - 34 * - + 20 + + MIN ( - 49 ) AS col0
----
18
631

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2387
SELECT - ( + 73 ) + + CAST( NULL AS SIGNED ) / + + 20
----
NULL

skipif mysql # not compatible
query I rowsort label-2387
SELECT - ( + 73 ) + + CAST ( NULL AS INTEGER ) / + + 20
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2388
SELECT CASE + CAST( NULL AS SIGNED ) WHEN - - 87 + + + NULLIF ( + 51, + CAST( + 95 AS SIGNED ) * ( 62 ) + SUM( ALL NULLIF ( - 39, 59 ) ) + + 45 ) THEN - - 74 WHEN - COUNT( * ) * - + MIN( - + 25 ) THEN NULL WHEN 36 THEN 93 END + - 8, 14 + + - 99 AS col1
----
NULL
-85

skipif mysql # not compatible
query II rowsort label-2388
SELECT CASE + CAST ( NULL AS INTEGER ) WHEN - - 87 + + + NULLIF ( + 51, + CAST ( + 95 AS INTEGER ) * ( 62 ) + SUM ( ALL NULLIF ( - 39, 59 ) ) + + 45 ) THEN - - 74 WHEN - COUNT ( * ) * - + MIN ( - + 25 ) THEN NULL WHEN 36 THEN 93 END + - 8, 14 + + - 99 AS col1
----
NULL
-85

query I rowsort
SELECT + 85 + 70 col2
----
155

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2390
SELECT 31 * + CAST( + 79 AS SIGNED ) + + 70
----
2519

skipif mysql # not compatible
query I rowsort label-2390
SELECT 31 * + CAST ( + 79 AS INTEGER ) + + 70
----
2519

onlyif mysql # aggregate syntax: 
query I rowsort label-2391
SELECT - CASE 63 WHEN - MAX( - 2 ) * ( + + 59 ) * - 68 THEN + 18 WHEN + - COUNT( * ) + + 79 + - + 34 THEN NULL ELSE - - 58 END
----
-58

skipif mysql # not compatible
query I rowsort label-2391
SELECT - CASE 63 WHEN - MAX ( - 2 ) * ( + + 59 ) * - 68 THEN + 18 WHEN + - COUNT ( * ) + + 79 + - + 34 THEN NULL ELSE - - 58 END
----
-58

query II rowsort
SELECT 8 + + 31, 13 * - 25 * - - 32 AS col2
----
39
-10400

onlyif mysql # aggregate syntax: 
query I rowsort label-2393
SELECT 42 + + 49 + - + 36 * + 33 + ( + CASE COUNT( * ) WHEN MIN( + 3 ) + ( SUM( DISTINCT + 73 ) ) THEN - - 68 * + 35 ELSE NULL END ) * + - 95 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2393
SELECT 42 + + 49 + - + 36 * + 33 + ( + CASE COUNT ( * ) WHEN MIN ( + 3 ) + ( SUM ( DISTINCT + 73 ) ) THEN - - 68 * + 35 ELSE NULL END ) * + - 95 AS col1
----
NULL

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

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

query II rowsort
SELECT ALL 65 + + 49 AS col0, + 10 col1
----
114
10

onlyif mysql # aggregate syntax: 
query I rowsort label-2396
SELECT CASE WHEN 39 NOT IN ( 12 / 61, - 67 + - COUNT( * ), + ( 58 ) * 7, ( + 34 ) ) THEN - 91 ELSE + 4 + - + 17 + + + 31 END + - - MAX( - ( 54 ) ) AS col2
----
-145

skipif mysql # not compatible
query I rowsort label-2396
SELECT CASE WHEN 39 NOT IN ( 12 / 61, - 67 + - COUNT ( * ), + ( 58 ) * 7, ( + 34 ) ) THEN - 91 ELSE + 4 + - + 17 + + + 31 END + - - MAX ( - ( 54 ) ) AS col2
----
-145

onlyif mysql # aggregate syntax: 
query I rowsort label-2397
SELECT ALL ( - + COALESCE ( + - 10, COUNT( * ) * - 3 ) ) + + + COUNT( * )
----
11

skipif mysql # not compatible
query I rowsort label-2397
SELECT ALL ( - + COALESCE ( + - 10, COUNT ( * ) * - 3 ) ) + + + COUNT ( * )
----
11

query I rowsort
SELECT DISTINCT 12 + - + 30 - 91 AS col0
----
-109

query II rowsort
SELECT ( - 43 ) + + 28, 40 AS col0
----
-15
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2400
SELECT COUNT( ALL + - 34 ) * CASE 50 WHEN + 12 * - COUNT( * ) THEN NULL WHEN - 13 + + 37 THEN NULL WHEN 82 + + COUNT( * ) THEN NULL ELSE + CAST( NULL AS DECIMAL ) END + - COUNT( * ) + - 20 * - NULLIF ( - + CAST( NULL AS SIGNED ), - - 35 + - - 57 ) + + - MAX( - - 18 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2400
SELECT COUNT ( ALL + - 34 ) * CASE 50 WHEN + 12 * - COUNT ( * ) THEN NULL WHEN - 13 + + 37 THEN NULL WHEN 82 + + COUNT ( * ) THEN NULL ELSE + CAST ( NULL AS REAL ) END + - COUNT ( * ) + - 20 * - NULLIF ( - + CAST ( NULL AS INTEGER ), - - 35 + - - 57 ) + + - MAX ( - - 18 )
----
NULL

query I rowsort
SELECT ALL - NULLIF ( 36, + 18 ) * 74 * 83 * 89 AS col0
----
-19678968

query I rowsort
SELECT ALL 4 + 32 + + - 81 * + 32 AS col0
----
-2556

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2404
SELECT MIN( DISTINCT - 36 ) - - 53 AS col0
----
17

skipif mysql # not compatible
query I rowsort label-2404
SELECT MIN ( DISTINCT - 36 ) - - 53 AS col0
----
17

query I rowsort
SELECT 14 * - + 58 AS col2
----
-812

query I rowsort
SELECT ALL 57 * + 25
----
1425

onlyif mysql # aggregate syntax: 
query I rowsort label-2407
SELECT - 61 * - ( + + COUNT( * ) ) + - + 49 + - - 88 * - 91 + + 15 + - 36
----
-8017

skipif mysql # not compatible
query I rowsort label-2407
SELECT - 61 * - ( + + COUNT ( * ) ) + - + 49 + - - 88 * - 91 + + 15 + - 36
----
-8017

onlyif mysql # DIV for integer division: 
query I rowsort label-2408
SELECT 98 DIV - - ( - + 84 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2408
SELECT 98 / - - ( - + 84 ) AS col0
----
-1

query I rowsort
SELECT 85 * 91
----
7735

onlyif mysql # aggregate syntax: 
query I rowsort label-2410
SELECT ALL - + 15 - + COUNT( * ) + 40 AS col0
----
24

skipif mysql # not compatible
query I rowsort label-2410
SELECT ALL - + 15 - + COUNT ( * ) + 40 AS col0
----
24

query I rowsort
SELECT 77 - 92
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-2412
SELECT ALL + + COUNT( * ) * ( - - ( + - COALESCE ( + - 76, - 81 + 26 * - - 36 + + 35 ) ) ) + + + COUNT( * ) AS col1
----
77

skipif mysql # not compatible
query I rowsort label-2412
SELECT ALL + + COUNT ( * ) * ( - - ( + - COALESCE ( + - 76, - 81 + 26 * - - 36 + + 35 ) ) ) + + + COUNT ( * ) AS col1
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-2413
SELECT ALL + + 86 DIV + + 85
----
1

skipif mysql # not compatible
query I rowsort label-2413
SELECT ALL + + 86 / + + 85
----
1

query I rowsort
SELECT - 91 * - - 45 col1
----
-4095

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2415
SELECT + 74 DIV - 42 + - 69 * NULLIF ( + - NULLIF ( + + 2, ( - 43 ) ), - + 36 ) - + 70 DIV 72 * + - COUNT( * ) + 2 AS col0
----
139

skipif mysql # not compatible
query I rowsort label-2415
SELECT + 74 / - 42 + - 69 * NULLIF ( + - NULLIF ( + + 2, ( - 43 ) ), - + 36 ) - + 70 / 72 * + - COUNT ( * ) + 2 AS col0
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-2416
SELECT NULLIF ( + + COUNT( * ), 59 ) * - 29 col0
----
-29

skipif mysql # not compatible
query I rowsort label-2416
SELECT NULLIF ( + + COUNT ( * ), 59 ) * - 29 col0
----
-29

query I rowsort
SELECT ALL - - ( + - 92 ) * - 67 * - + 10
----
-61640

query I rowsort
SELECT DISTINCT - - 81 * - - 89
----
7209

query II rowsort
SELECT ALL + 26 + - 25 AS col2, - 61 AS col2
----
1
-61

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

skipif mysql # not compatible
query I rowsort label-2420
SELECT DISTINCT + COUNT ( ALL + + 34 ) AS col2
----
1

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

skipif mysql # not compatible
query I rowsort label-2421
SELECT DISTINCT - + 69 + + 64 + - ( - COUNT ( * ) ) AS col0
----
-4

query I rowsort
SELECT ALL 66 + - 52
----
14

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

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

query I rowsort
SELECT 44 + - 83
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-2425
SELECT 53 + + COUNT( * ) + - SUM( + - 34 )
----
88

skipif mysql # not compatible
query I rowsort label-2425
SELECT 53 + + COUNT ( * ) + - SUM ( + - 34 )
----
88

query I rowsort
SELECT 63 + - - 11
----
74

query I rowsort
SELECT ALL 23 + + 12
----
35

query I rowsort
SELECT 10 * 23 - + 13 + - - 29
----
246

query I rowsort
SELECT DISTINCT + 20 * NULLIF ( + 4, + 64 ) * - - 37 * - + 28 AS col1
----
-82880

onlyif mysql # aggregate syntax: 
query I rowsort label-2430
SELECT + COUNT( ALL 91 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2430
SELECT + COUNT ( ALL 91 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2431
SELECT + COUNT( + - 75 ) + + 85 + - + 77 + + - 50
----
-41

skipif mysql # not compatible
query I rowsort label-2431
SELECT + COUNT ( + - 75 ) + + 85 + - + 77 + + - 50
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-2432
SELECT NULLIF ( - + COUNT( * ), + 88 * + 72 + - 16 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2432
SELECT NULLIF ( - + COUNT ( * ), + 88 * + 72 + - 16 ) AS col0
----
-1

query I rowsort
SELECT + 51 * - 36 AS col0
----
-1836

query II rowsort
SELECT + 97 AS col0, 73 AS col1
----
97
73

query I rowsort
SELECT 48 * - 60 - - - ( + 55 ) * - 57
----
255

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2437
SELECT ALL - 44 * - 22 - + 4 AS col2, + 17 * + COUNT( * ) DIV - COUNT( * ) - + COUNT( * ) DIV 1 AS col1
----
964
-18

skipif mysql # not compatible
query II rowsort label-2437
SELECT ALL - 44 * - 22 - + 4 AS col2, + 17 * + COUNT ( * ) / - COUNT ( * ) - + COUNT ( * ) / 1 AS col1
----
964
-18

query II rowsort
SELECT 30 col1, + 60 * - 83
----
30
-4980

onlyif mysql # aggregate syntax: 
query I rowsort label-2439
SELECT + COALESCE ( - - 96, + - COUNT( * ), + 7 ) * - - 95
----
9120

skipif mysql # not compatible
query I rowsort label-2439
SELECT + COALESCE ( - - 96, + - COUNT ( * ), + 7 ) * - - 95
----
9120

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

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

query I rowsort
SELECT + + 96 * + + ( 87 ) * + 4 + + - 28 AS col1
----
33380

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2442
SELECT + 84 + - COALESCE ( - 10, + COUNT( * ) * - ( ( - 88 ) ) * + + CASE - - 74 WHEN 80 + + 99 THEN - - 60 * + + 66 DIV - MIN( - 76 ) + + + 98 WHEN + 88 - + - COALESCE ( - CAST( + + 67 AS SIGNED ), + 33 ) THEN NULL ELSE NULL END + + - COUNT( * ) + + - 50 + - 19 + 83 + - 10 * + + COUNT( * ) * - SUM( 40 ) - + - 87, - 58 ) * 36
----
444

skipif mysql # not compatible
query I rowsort label-2442
SELECT + 84 + - COALESCE ( - 10, + COUNT ( * ) * - ( ( - 88 ) ) * + + CASE - - 74 WHEN 80 + + 99 THEN - - 60 * + + 66 / - MIN ( - 76 ) + + + 98 WHEN + 88 - + - COALESCE ( - CAST ( + + 67 AS INTEGER ), + 33 ) THEN NULL ELSE NULL END + + - COUNT ( * ) + + - 50 + - 19 + 83 + - 10 * + + COUNT ( * ) * - SUM ( 40 ) - + - 87, - 58 ) * 36
----
444

query I rowsort
SELECT + 63 * + + 89 + 48 col2
----
5655

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2444
SELECT - 75 * + COALESCE ( - 39, ( - 79 ) - - CAST( NULL AS SIGNED ) * 93 + - + COUNT( * ) ) + - 14 * + - COUNT( * ) AS col2
----
2939

skipif mysql # not compatible
query I rowsort label-2444
SELECT - 75 * + COALESCE ( - 39, ( - 79 ) - - CAST ( NULL AS INTEGER ) * 93 + - + COUNT ( * ) ) + - 14 * + - COUNT ( * ) AS col2
----
2939

query I rowsort
SELECT DISTINCT - ( 49 ) * + 46 * + 76 AS col1
----
-171304

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2446
SELECT ALL ( + ( - 33 ) ) + CAST( + NULLIF ( ( + ( 24 ) ), + 23 ) AS SIGNED ) + - 51 * + + 31
----
-1590

skipif mysql # not compatible
query I rowsort label-2446
SELECT ALL ( + ( - 33 ) ) + CAST ( + NULLIF ( ( + ( 24 ) ), + 23 ) AS INTEGER ) + - 51 * + + 31
----
-1590

query I rowsort
SELECT DISTINCT 99 + - + 94 AS col0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2448
SELECT ALL + ( 6 ) + NULLIF ( 28, + MIN( + + COALESCE ( 69, 51 ) ) ) * 9 AS col1
----
258

skipif mysql # not compatible
query I rowsort label-2448
SELECT ALL + ( 6 ) + NULLIF ( 28, + MIN ( + + COALESCE ( 69, 51 ) ) ) * 9 AS col1
----
258

onlyif mysql # aggregate syntax: 
query I rowsort label-2449
SELECT - - 69 + COUNT( * ) * + 45 AS col1
----
114

skipif mysql # not compatible
query I rowsort label-2449
SELECT - - 69 + COUNT ( * ) * + 45 AS col1
----
114

query I rowsort
SELECT ALL - 64 + 35
----
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-2451
SELECT DISTINCT - 31 DIV - 78 + + 89
----
89

skipif mysql # not compatible
query I rowsort label-2451
SELECT DISTINCT - 31 / - 78 + + 89
----
89

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

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

query II rowsort
SELECT - 65 + - 9 AS col2, + 26
----
-74
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2454
SELECT ALL CASE COUNT( * ) WHEN COUNT( * ) + - ( + - COUNT( * ) ) * 7 THEN 85 * 63 + CASE - CAST( 37 AS SIGNED ) WHEN + 36 / - 35 - - 57 THEN + 1 ELSE - 44 END WHEN CASE + 72 WHEN + 45 * - COUNT( * ) THEN CASE + + 52 WHEN + - 11 THEN + 30 * - COUNT( * ) END - COUNT( * ) WHEN + 36 THEN NULL ELSE NULL END THEN NULL WHEN + 13 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2454
SELECT ALL CASE COUNT ( * ) WHEN COUNT ( * ) + - ( + - COUNT ( * ) ) * 7 THEN 85 * 63 + CASE - CAST ( 37 AS INTEGER ) WHEN + 36 / - 35 - - 57 THEN + 1 ELSE - 44 END WHEN CASE + 72 WHEN + 45 * - COUNT ( * ) THEN CASE + + 52 WHEN + - 11 THEN + 30 * - COUNT ( * ) END - COUNT ( * ) WHEN + 36 THEN NULL ELSE NULL END THEN NULL WHEN + 13 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2455
SELECT DISTINCT - 96 + 99 + + COUNT( * ) DIV - + 48 * - - MIN( + 72 ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-2455
SELECT DISTINCT - 96 + 99 + + COUNT ( * ) / - + 48 * - - MIN ( + 72 ) AS col2
----
3

query II rowsort
SELECT - 18 + - NULLIF ( - 99, - - 39 ), + 14 AS col2
----
81
14

query I rowsort
SELECT ALL - 78 + 45 * + 17
----
687

query I rowsort
SELECT ALL 94 * - 66 AS col2
----
-6204

query I rowsort
SELECT DISTINCT - 97 - + 11 AS col1
----
-108

query II rowsort
SELECT ALL ( + 20 ) AS col0, - 11 AS col1
----
20
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-2461
SELECT ALL - 79 - - 86 - - 79 + COUNT( * ) * + 27 AS col1
----
113

skipif mysql # not compatible
query I rowsort label-2461
SELECT ALL - 79 - - 86 - - 79 + COUNT ( * ) * + 27 AS col1
----
113

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2462
SELECT DISTINCT + 24 * - - 72 AS col2, - 6 - COUNT( * ) + + CAST( NULL AS DECIMAL )
----
1728
NULL

skipif mysql # not compatible
query II rowsort label-2462
SELECT DISTINCT + 24 * - - 72 AS col2, - 6 - COUNT ( * ) + + CAST ( NULL AS REAL )
----
1728
NULL

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

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

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

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

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

query II rowsort
SELECT DISTINCT 69 * - + 60 AS col2, + ( - 71 )
----
-4140
-71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2467
SELECT ALL - MAX( DISTINCT 5 ) DIV + 72 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2467
SELECT ALL - MAX ( DISTINCT 5 ) / + 72 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2468
SELECT - COUNT( * ) + - + ( - MIN( + + 22 ) ) + - 3 - 3 AS col2
----
15

skipif mysql # not compatible
query I rowsort label-2468
SELECT - COUNT ( * ) + - + ( - MIN ( + + 22 ) ) + - 3 - 3 AS col2
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2469
SELECT DISTINCT - + CASE - + COUNT( * ) WHEN COUNT( * ) THEN NULL ELSE 92 * - + 36 + + - 79 END * - COUNT( * ) AS col1
----
-3391

skipif mysql # not compatible
query I rowsort label-2469
SELECT DISTINCT - + CASE - + COUNT ( * ) WHEN COUNT ( * ) THEN NULL ELSE 92 * - + 36 + + - 79 END * - COUNT ( * ) AS col1
----
-3391

onlyif mysql # aggregate syntax: 
query I rowsort label-2470
SELECT + - 42 * - NULLIF ( 97, + 23 - SUM( ALL - 1 ) ) + + - 75 AS col2
----
3999

skipif mysql # not compatible
query I rowsort label-2470
SELECT + - 42 * - NULLIF ( 97, + 23 - SUM ( ALL - 1 ) ) + + - 75 AS col2
----
3999

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2471
SELECT DISTINCT + 78 * - - CAST( - AVG ( 1 ) AS SIGNED )
----
-78

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

query I rowsort
SELECT - 82 * - 10 AS col1
----
820

query I rowsort
SELECT + + 59 + - 87 AS col2
----
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-2474
SELECT DISTINCT + - 36 * + + 61 + + 92 DIV + 10
----
-2187

skipif mysql # not compatible
query I rowsort label-2474
SELECT DISTINCT + - 36 * + + 61 + + 92 / + 10
----
-2187

onlyif mysql # aggregate syntax: 
query I rowsort label-2475
SELECT DISTINCT - + 70 * + + COUNT( * ) + 17
----
-53

skipif mysql # not compatible
query I rowsort label-2475
SELECT DISTINCT - + 70 * + + COUNT ( * ) + 17
----
-53

query I rowsort
SELECT ALL + 81 * + + 33 + 84 AS col1
----
2757

query I rowsort
SELECT + CASE 41 WHEN ( - + 67 ) THEN NULL WHEN + 32 THEN NULL ELSE - 8 END
----
-8

query I rowsort
SELECT DISTINCT + 2 * 8 + - + 61
----
-45

onlyif mysql # aggregate syntax: 
query II rowsort label-2479
SELECT ALL 51 * + COUNT( * ) + 15 + 10 + + - 62 * + - 86 * + 50 AS col1, + 0 + + 10
----
266676
10

skipif mysql # not compatible
query II rowsort label-2479
SELECT ALL 51 * + COUNT ( * ) + 15 + 10 + + - 62 * + - 86 * + 50 AS col1, + 0 + + 10
----
266676
10

onlyif mysql # DIV for integer division: 
query I rowsort label-2480
SELECT + 36 DIV - + COALESCE ( + 22, 81 + + 25, - - 83 )
----
-1

skipif mysql # not compatible
query I rowsort label-2480
SELECT + 36 / - + COALESCE ( + 22, 81 + + 25, - - 83 )
----
-1

query I rowsort
SELECT ALL 67 * - 65 + + ( - + 35 ) * - + 87 + + + 41 AS col2
----
-1269

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

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

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

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

query I rowsort
SELECT DISTINCT 53 - + - 74
----
127

query II rowsort
SELECT 4, ( - 74 ) * + 5 AS col1
----
4
-370

onlyif mysql # aggregate syntax: 
query I rowsort label-2486
SELECT 69 + 77 * + 32 * + - COUNT( + 83 )
----
-2395

skipif mysql # not compatible
query I rowsort label-2486
SELECT 69 + 77 * + 32 * + - COUNT ( + 83 )
----
-2395

query I rowsort
SELECT 4 * - 70 * - 37
----
10360

query I rowsort
SELECT 14 - - 55
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-2489
SELECT MAX( + ( 78 ) ) + COUNT( * ) AS col2
----
79

skipif mysql # not compatible
query I rowsort label-2489
SELECT MAX ( + ( 78 ) ) + COUNT ( * ) AS col2
----
79

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

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

query I rowsort
SELECT DISTINCT NULLIF ( 93, - 54 ) * + 28
----
2604

onlyif mysql # DIV for integer division: 
query II rowsort label-2492
SELECT 21 DIV - + 41 + + 37 AS col1, + 61 + 84 AS col1
----
37
145

skipif mysql # not compatible
query II rowsort label-2492
SELECT 21 / - + 41 + + 37 AS col1, + 61 + 84 AS col1
----
37
145

onlyif mysql # aggregate syntax: 
query I rowsort label-2493
SELECT ALL - 40 * - 17 * + - ( - - 49 ) * - NULLIF ( + + 23, - + MIN( DISTINCT - + 68 ) - - COUNT( * ) ) AS col1
----
766360

skipif mysql # not compatible
query I rowsort label-2493
SELECT ALL - 40 * - 17 * + - ( - - 49 ) * - NULLIF ( + + 23, - + MIN ( DISTINCT - + 68 ) - - COUNT ( * ) ) AS col1
----
766360

query I rowsort
SELECT ALL - + 67 + + 95 + - + COALESCE ( 44, 27 ) AS col1
----
-16

query II rowsort
SELECT + + 16, 79 AS col0
----
16
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2496
SELECT COUNT( * ) AS col1, - COUNT( * ) * - NULLIF ( 30, + 90 * + 40 DIV 68 ) DIV - 27
----
1
-1

skipif mysql # not compatible
query II rowsort label-2496
SELECT COUNT ( * ) AS col1, - COUNT ( * ) * - NULLIF ( 30, + 90 * + 40 / 68 ) / - 27
----
1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2497
SELECT CASE + 95 WHEN - - COUNT( * ) + 3 THEN - 40 * + 11 WHEN 30 / + 5 + + - 89 THEN - 48 * + 80 * - 59 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2497
SELECT CASE + 95 WHEN - - COUNT ( * ) + 3 THEN - 40 * + 11 WHEN 30 / + 5 + + - 89 THEN - 48 * + 80 * - 59 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2498
SELECT + COUNT( * ) * + - NULLIF ( - 22, + 37 / - 86 - + 92 + - 61 - - COALESCE ( - - 7, - 9 - - + 19 ) ) AS col1
----
22

skipif mysql # not compatible
query I rowsort label-2498
SELECT + COUNT ( * ) * + - NULLIF ( - 22, + 37 / - 86 - + 92 + - 61 - - COALESCE ( - - 7, - 9 - - + 19 ) ) AS col1
----
22

query I rowsort
SELECT DISTINCT - + 66 + - ( 79 ) AS col1
----
-145

query II rowsort
SELECT ALL - NULLIF ( - 7, - 50 * 15 + + 22 + + - 49 ) + 39 * 99 AS col1, 80 AS col0
----
3868
80

query I rowsort
SELECT ALL - + 91 + 84 AS col1
----
-7

query I rowsort
SELECT DISTINCT + 75 + + - 34 * COALESCE ( + 36, + 14 ) + - - 2 * + + 36 AS col2
----
-1077

onlyif mysql # aggregate syntax: 
query I rowsort label-2503
SELECT ALL - - ( - 59 ) * + COALESCE ( 81, + ( - SUM( ALL 87 ) ) ) AS col1
----
-4779

skipif mysql # not compatible
query I rowsort label-2503
SELECT ALL - - ( - 59 ) * + COALESCE ( 81, + ( - SUM ( ALL 87 ) ) ) AS col1
----
-4779

query I rowsort
SELECT ALL - COALESCE ( 96, + 64 ) + + - ( - - 65 )
----
-161

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2505
SELECT + 69 + + 9 + + + 94 * - - COUNT( * ) * COUNT( + - 0 ) - - NULLIF ( + 48, - 58 ) - + COUNT( * ) DIV - ( + 12 ) * - 62 - + 2 * + 20
----
180

skipif mysql # not compatible
query I rowsort label-2505
SELECT + 69 + + 9 + + + 94 * - - COUNT ( * ) * COUNT ( + - 0 ) - - NULLIF ( + 48, - 58 ) - + COUNT ( * ) / - ( + 12 ) * - 62 - + 2 * + 20
----
180

onlyif mysql # aggregate syntax: 
query II rowsort label-2506
SELECT + 39, - NULLIF ( + 12, + 95 * + 94 + - COUNT( * ) * + 76 + 11 * AVG ( DISTINCT - 62 ) + COUNT( * ) ) AS col0
----
39
-12

skipif mysql # not compatible
query II rowsort label-2506
SELECT + 39, - NULLIF ( + 12, + 95 * + 94 + - COUNT ( * ) * + 76 + 11 * AVG ( DISTINCT - 62 ) + COUNT ( * ) ) AS col0
----
39
-12

query I rowsort
SELECT ALL + + 12 * + - 18
----
-216

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2508
SELECT + CAST( - 60 AS SIGNED ) - CAST( NULL AS SIGNED ) AS col1, - COALESCE ( 4, + - 50 * - - 13 * + 57 + + 65 ) AS col0
----
NULL
-4

skipif mysql # not compatible
query II rowsort label-2508
SELECT + CAST ( - 60 AS INTEGER ) - CAST ( NULL AS INTEGER ) AS col1, - COALESCE ( 4, + - 50 * - - 13 * + 57 + + 65 ) AS col0
----
NULL
-4

query I rowsort
SELECT 1 * - + 90 AS col0
----
-90

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

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

query I rowsort
SELECT ALL - 81 - + ( 11 ) - + 9 AS col0
----
-101

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2512
SELECT ALL 62 AS col1, 66 DIV - COUNT( * ) AS col1
----
62
-66

skipif mysql # not compatible
query II rowsort label-2512
SELECT ALL 62 AS col1, 66 / - COUNT ( * ) AS col1
----
62
-66

query I rowsort
SELECT ALL - 51 * + + 20 AS col0
----
-1020

onlyif mysql # aggregate syntax: 
query I rowsort label-2514
SELECT DISTINCT + 96 - + MAX( ALL + + 95 )
----
1

skipif mysql # not compatible
query I rowsort label-2514
SELECT DISTINCT + 96 - + MAX ( ALL + + 95 )
----
1

query I rowsort
SELECT ALL + 78 - - 30 col1
----
108

query II rowsort
SELECT ALL 69, - 79 AS col1
----
69
-79

query II rowsort
SELECT 43 AS col0, 40
----
43
40

query I rowsort
SELECT 7 * - 59 AS col2
----
-413

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

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

query I rowsort
SELECT 14 + - - 98 + 49 * + 52 AS col2
----
2660

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

skipif mysql # not compatible
query II rowsort label-2521
SELECT - 79 AS col2, CAST ( NULL AS INTEGER ) AS col2
----
-79
NULL

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

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

query I rowsort
SELECT ALL 5 * + - 16
----
-80

query II rowsort
SELECT DISTINCT 38 AS col1, - ( + - ( - 88 ) ) * + 9
----
38
-792

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2526
SELECT ALL - CAST( NULL AS SIGNED ) / 35 * - - 64 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2526
SELECT ALL - CAST ( NULL AS INTEGER ) / 35 * - - 64 col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2527
SELECT COALESCE ( - CASE + ( 49 ) WHEN - - 31 THEN + + 95 WHEN - + SUM( ALL - 91 ) + 53 + - 54 + - 17 + - 85 * + 76 THEN NULL WHEN - COUNT( * ) * + + NULLIF ( - + 10, - 70 ) THEN + 93 END, - - 52 ) DIV 58
----
0

skipif mysql # not compatible
query I rowsort label-2527
SELECT COALESCE ( - CASE + ( 49 ) WHEN - - 31 THEN + + 95 WHEN - + SUM ( ALL - 91 ) + 53 + - 54 + - 17 + - 85 * + 76 THEN NULL WHEN - COUNT ( * ) * + + NULLIF ( - + 10, - 70 ) THEN + 93 END, - - 52 ) / 58
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2528
SELECT DISTINCT MIN( ALL + + 26 ) + + + CAST( - 22 AS SIGNED ) + 46 + 78 + + 37 + - 16 * + + 32 AS col0
----
-347

skipif mysql # not compatible
query I rowsort label-2528
SELECT DISTINCT MIN ( ALL + + 26 ) + + + CAST ( - 22 AS INTEGER ) + 46 + 78 + + 37 + - 16 * + + 32 AS col0
----
-347

query I rowsort
SELECT ALL 51 + + + 16 * - 32 + - - 49 + - ( + 79 ) AS col2
----
-491

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2530
SELECT + COUNT( * ) - + CAST( NULL AS SIGNED ) - + 87 * + 40 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2530
SELECT + COUNT ( * ) - + CAST ( NULL AS INTEGER ) - + 87 * + 40 col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2531
SELECT ALL ( - - CASE + + CAST( NULL AS SIGNED ) WHEN + CAST( 13 AS SIGNED ) * - + 45 THEN NULL ELSE + 34 END ) + 29
----
63

skipif mysql # not compatible
query I rowsort label-2531
SELECT ALL ( - - CASE + + CAST ( NULL AS INTEGER ) WHEN + CAST ( 13 AS INTEGER ) * - + 45 THEN NULL ELSE + 34 END ) + 29
----
63

query II rowsort
SELECT + 38 AS col2, + 14
----
38
14

query I rowsort
SELECT ALL - + 64 * + - 41 AS col0
----
2624

query I rowsort
SELECT DISTINCT + + ( + - ( + - COALESCE ( + 0, 3, - 82 ) ) ) * + 46 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2535
SELECT + 22 AS col2, COALESCE ( + + 40, COUNT( * ) * + - COUNT( * ), - 43 + - 78 - - 84 + + - 99 + 48 * + + 51 ) + 86
----
22
126

skipif mysql # not compatible
query II rowsort label-2535
SELECT + 22 AS col2, COALESCE ( + + 40, COUNT ( * ) * + - COUNT ( * ), - 43 + - 78 - - 84 + + - 99 + 48 * + + 51 ) + 86
----
22
126

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

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

query I rowsort
SELECT - 91 - - 69 * 14
----
875

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2538
SELECT ALL SUM( ALL - 55 ) * CAST( NULL AS DECIMAL ) * + - 59 AS col1, 74 * - - 98
----
NULL
7252

skipif mysql # not compatible
query II rowsort label-2538
SELECT ALL SUM ( ALL - 55 ) * CAST ( NULL AS REAL ) * + - 59 AS col1, 74 * - - 98
----
NULL
7252

query II rowsort
SELECT DISTINCT - 59 AS col2, 97
----
-59
97

query II rowsort
SELECT + - 46, - 18 AS col0
----
-46
-18

query I rowsort
SELECT ALL - - 44 col1
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2542
SELECT + CAST( - 28 AS SIGNED ) * - 81 * 69 * - - 46 + - + 54 AS col0
----
7198578

skipif mysql # not compatible
query I rowsort label-2542
SELECT + CAST ( - 28 AS INTEGER ) * - 81 * 69 * - - 46 + - + 54 AS col0
----
7198578

onlyif mysql # aggregate syntax: 
query I rowsort label-2543
SELECT DISTINCT + 43 - + + COUNT( * )
----
42

skipif mysql # not compatible
query I rowsort label-2543
SELECT DISTINCT + 43 - + + COUNT ( * )
----
42

query I rowsort
SELECT 26 + - 19
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-2545
SELECT - ( - - 1 ) col0, ( + 90 ) + + ( - + COUNT( * ) )
----
-1
89

skipif mysql # not compatible
query II rowsort label-2545
SELECT - ( - - 1 ) col0, ( + 90 ) + + ( - + COUNT ( * ) )
----
-1
89

onlyif mysql # aggregate syntax: 
query I rowsort label-2546
SELECT + 68 * - SUM( - 90 ) - + 88 * 9 + COALESCE ( - NULLIF ( 68, + 81 ), - + 88 + + - ( - COUNT( * ) ) ) col1
----
5260

skipif mysql # not compatible
query I rowsort label-2546
SELECT + 68 * - SUM ( - 90 ) - + 88 * 9 + COALESCE ( - NULLIF ( 68, + 81 ), - + 88 + + - ( - COUNT ( * ) ) ) col1
----
5260

query I rowsort
SELECT 15 * + - 4
----
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-2548
SELECT ALL - 52 DIV - 58 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2548
SELECT ALL - 52 / - 58 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2549
SELECT + 29, + MAX( ALL 72 ) AS col2
----
29
72

skipif mysql # not compatible
query II rowsort label-2549
SELECT + 29, + MAX ( ALL 72 ) AS col2
----
29
72

query I rowsort
SELECT DISTINCT + 65 - + + 65 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2551
SELECT - CASE - - 35 WHEN + 83 THEN - + 61 WHEN 8 THEN 76 WHEN + COUNT( * ) THEN NULL END * + 44 + + - ( + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2551
SELECT - CASE - - 35 WHEN + 83 THEN - + 61 WHEN 8 THEN 76 WHEN + COUNT ( * ) THEN NULL END * + 44 + + - ( + COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2552
SELECT ALL MIN( DISTINCT + + 73 ) - - COUNT( * ) + 85 AS col0
----
159

skipif mysql # not compatible
query I rowsort label-2552
SELECT ALL MIN ( DISTINCT + + 73 ) - - COUNT ( * ) + 85 AS col0
----
159

query II rowsort
SELECT DISTINCT + 74 * + 96, + 37 col2
----
7104
37

query I rowsort
SELECT - 76 * + 47 col2
----
-3572

query I rowsort
SELECT DISTINCT NULLIF ( ( 31 ), 22 * - + 88 )
----
31

query I rowsort
SELECT - 40 * ( + - 7 ) AS col2
----
280

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2557
SELECT DISTINCT NULLIF ( - CAST( + - 26 AS SIGNED ), + 25 )
----
26

skipif mysql # not compatible
query I rowsort label-2557
SELECT DISTINCT NULLIF ( - CAST ( + - 26 AS INTEGER ), + 25 )
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2558
SELECT + 93 - + + CAST( + ( COUNT( * ) ) AS SIGNED ) + 80 AS col0
----
172

skipif mysql # not compatible
query I rowsort label-2558
SELECT + 93 - + + CAST ( + ( COUNT ( * ) ) AS INTEGER ) + 80 AS col0
----
172

onlyif mysql # aggregate syntax: 
query I rowsort label-2559
SELECT ALL NULLIF ( + COALESCE ( - 43, + MAX( ALL 8 ) ), - 0 )
----
-43

skipif mysql # not compatible
query I rowsort label-2559
SELECT ALL NULLIF ( + COALESCE ( - 43, + MAX ( ALL 8 ) ), - 0 )
----
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-2560
SELECT - MAX( ALL + 50 ) AS col1, - COUNT( * ) + + - 75 - + 51 * + 50 * 10
----
-50
-25576

skipif mysql # not compatible
query II rowsort label-2560
SELECT - MAX ( ALL + 50 ) AS col1, - COUNT ( * ) + + - 75 - + 51 * + 50 * 10
----
-50
-25576

query I rowsort
SELECT DISTINCT + ( + 19 ) + + + ( ( 82 ) )
----
101

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2563
SELECT - 33 + COUNT( * ) * + 40 + - 65
----
-58

skipif mysql # not compatible
query I rowsort label-2563
SELECT - 33 + COUNT ( * ) * + 40 + - 65
----
-58

query I rowsort
SELECT + 95 - - 17
----
112

query I rowsort
SELECT + + 68 + - 62 AS col0
----
6

query I rowsort
SELECT + 9 * - ( 57 )
----
-513

onlyif mysql # DIV for integer division: 
query I rowsort label-2567
SELECT ALL - - 45 + - 80 + + 8 DIV - + 88
----
-35

skipif mysql # not compatible
query I rowsort label-2567
SELECT ALL - - 45 + - 80 + + 8 / - + 88
----
-35

query II rowsort
SELECT DISTINCT + + 83 + + 54 AS col0, - 38 col0
----
137
-38

query I rowsort
SELECT ALL CASE + 82 WHEN - NULLIF ( + + 22, + 54 * - - 90 - - 48 + - - 2 ) + + - 20 THEN 36 / - + 4 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2570
SELECT DISTINCT - + 39 * + 11 * + - 72 + SUM( 22 ) * - 36 * + NULLIF ( - NULLIF ( + ( 15 ), - - CAST( + + 61 AS DECIMAL ) - + 71 ), - 58 * 75 ) * - 75
----
-860112

skipif mysql # not compatible
query I rowsort label-2570
SELECT DISTINCT - + 39 * + 11 * + - 72 + SUM ( 22 ) * - 36 * + NULLIF ( - NULLIF ( + ( 15 ), - - CAST ( + + 61 AS REAL ) - + 71 ), - 58 * 75 ) * - 75
----
-860112

onlyif mysql # aggregate syntax: 
query I rowsort label-2571
SELECT + + 42 * 71 * + 42 * + + COUNT( * )
----
125244

skipif mysql # not compatible
query I rowsort label-2571
SELECT + + 42 * 71 * + 42 * + + COUNT ( * )
----
125244

onlyif mysql # aggregate syntax: 
query I rowsort label-2572
SELECT + + 36 * + COUNT( * ) * + - 57 AS col2
----
-2052

skipif mysql # not compatible
query I rowsort label-2572
SELECT + + 36 * + COUNT ( * ) * + - 57 AS col2
----
-2052

query I rowsort
SELECT - + 32 * 26 + - 87 AS col1
----
-919

onlyif mysql # aggregate syntax: 
query I rowsort label-2574
SELECT + MIN( DISTINCT CASE + 6 WHEN + 18 THEN 4 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-2574
SELECT + MIN ( DISTINCT CASE + 6 WHEN + 18 THEN 4 END )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2575
SELECT + - ( ( - 15 ) ) DIV - 47 + + 94 DIV 5 * - 22 + - COUNT( * )
----
-397

skipif mysql # not compatible
query I rowsort label-2575
SELECT + - ( ( - 15 ) ) / - 47 + + 94 / 5 * - 22 + - COUNT ( * )
----
-397

query I rowsort
SELECT + 91 * + 54 AS col2
----
4914

query I rowsort
SELECT + + 84 - - 33 AS col2
----
117

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2578
SELECT DISTINCT 79 * - - CASE + - 74 WHEN - COUNT( * ) THEN + NULLIF ( - + 42, - 53 * + CAST( 26 AS SIGNED ) ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2578
SELECT DISTINCT 79 * - - CASE + - 74 WHEN - COUNT ( * ) THEN + NULLIF ( - + 42, - 53 * + CAST ( 26 AS INTEGER ) ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2579
SELECT + SUM( DISTINCT + 89 ) * - - 83 * 49, 3 AS col2
----
361963
3

skipif mysql # not compatible
query II rowsort label-2579
SELECT + SUM ( DISTINCT + 89 ) * - - 83 * 49, 3 AS col2
----
361963
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2580
SELECT + MIN( - 64 ) + - NULLIF ( 35, + COUNT( * ) ) * - - 8
----
-344

skipif mysql # not compatible
query I rowsort label-2580
SELECT + MIN ( - 64 ) + - NULLIF ( 35, + COUNT ( * ) ) * - - 8
----
-344

query I rowsort
SELECT + 47 + + 89 + + 87 * + 4 * 37
----
13012

query I rowsort
SELECT - 53 - - - 2
----
-55

query I rowsort
SELECT - 12 * + 90 * - + 11 * - 23 AS col1
----
-273240

onlyif mysql # aggregate syntax: 
query I rowsort label-2584
SELECT + 23 * - + 75 * - COUNT( * ) + COUNT( * )
----
1726

skipif mysql # not compatible
query I rowsort label-2584
SELECT + 23 * - + 75 * - COUNT ( * ) + COUNT ( * )
----
1726

onlyif mysql # DIV for integer division: 
query I rowsort label-2585
SELECT - 29 - 77 + 14 DIV + 31
----
-106

skipif mysql # not compatible
query I rowsort label-2585
SELECT - 29 - 77 + 14 / + 31
----
-106

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

skipif mysql # not compatible
query II rowsort label-2586
SELECT COUNT ( * ), + ( - 78 ) col0
----
1
-78

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2587
SELECT COUNT( * ) AS col2, + 87 DIV + 41 AS col1
----
1
2

skipif mysql # not compatible
query II rowsort label-2587
SELECT COUNT ( * ) AS col2, + 87 / + 41 AS col1
----
1
2

query I rowsort
SELECT DISTINCT + 16 * - 70 * - 30 * + 72 AS col0
----
2419200

onlyif mysql # aggregate syntax: 
query I rowsort label-2589
SELECT DISTINCT + 44 + COUNT( * ) AS col2
----
45

skipif mysql # not compatible
query I rowsort label-2589
SELECT DISTINCT + 44 + COUNT ( * ) AS col2
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2590
SELECT - COUNT( * ) + + + 15 - + + 83 * - ( + + COUNT( * ) ) - - 0 + - CAST( + + 23 AS SIGNED ) AS col2
----
74

skipif mysql # not compatible
query I rowsort label-2590
SELECT - COUNT ( * ) + + + 15 - + + 83 * - ( + + COUNT ( * ) ) - - 0 + - CAST ( + + 23 AS INTEGER ) AS col2
----
74

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

skipif mysql # not compatible
query I rowsort label-2591
SELECT - MAX ( DISTINCT - - 70 )
----
-70

query I rowsort
SELECT - 39 + 88 col2
----
49

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2594
SELECT - 10 DIV - 25
----
0

skipif mysql # not compatible
query I rowsort label-2594
SELECT - 10 / - 25
----
0

query I rowsort
SELECT + ( + - 79 ) + - - 36 AS col0
----
-43

query I rowsort
SELECT - + 81 * + - 5 AS col1
----
405

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

skipif mysql # not compatible
query I rowsort label-2597
SELECT ALL - COUNT ( * ) + + 34 * + CAST ( NULL AS INTEGER ) + - 17 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2598
SELECT ALL + 24 AS col1, SUM( DISTINCT + - 80 ) AS col2
----
24
-80

skipif mysql # not compatible
query II rowsort label-2598
SELECT ALL + 24 AS col1, SUM ( DISTINCT + - 80 ) AS col2
----
24
-80

query I rowsort
SELECT ALL + 51 - - - 17
----
34

query I rowsort
SELECT - 26 - + + 7
----
-33

query II rowsort
SELECT - 18 col0, + 92 AS col1
----
-18
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2602
SELECT - COUNT( * ) * - 99 * - - 42 + + 96 AS col2, + CAST( + - 97 AS SIGNED ) * - ( + + 26 )
----
4254
2522

skipif mysql # not compatible
query II rowsort label-2602
SELECT - COUNT ( * ) * - 99 * - - 42 + + 96 AS col2, + CAST ( + - 97 AS INTEGER ) * - ( + + 26 )
----
4254
2522

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2604
SELECT + 88 DIV + 29 + + COALESCE ( - 58, 18 - + 12 + - + 15 DIV - NULLIF ( + 14, 29 * - - 80 ) * + 3 ) + + - COUNT( * )
----
-56

skipif mysql # not compatible
query I rowsort label-2604
SELECT + 88 / + 29 + + COALESCE ( - 58, 18 - + 12 + - + 15 / - NULLIF ( + 14, 29 * - - 80 ) * + 3 ) + + - COUNT ( * )
----
-56

query I rowsort
SELECT DISTINCT + 57 * - - 84
----
4788

onlyif mysql # aggregate syntax: 
query II rowsort label-2606
SELECT ALL + NULLIF ( - - 61, + + 85 ), + MAX( DISTINCT - - 43 ) * 21 * - + 69 AS col1
----
61
-62307

skipif mysql # not compatible
query II rowsort label-2606
SELECT ALL + NULLIF ( - - 61, + + 85 ), + MAX ( DISTINCT - - 43 ) * 21 * - + 69 AS col1
----
61
-62307

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2607
SELECT ALL + 24 * - CAST( CAST( - 98 AS SIGNED ) AS SIGNED ) + + 17
----
2369

skipif mysql # not compatible
query I rowsort label-2607
SELECT ALL + 24 * - CAST ( CAST ( - 98 AS INTEGER ) AS INTEGER ) + + 17
----
2369

query II rowsort
SELECT DISTINCT - 45 AS col1, ( 83 ) AS col0
----
-45
83

query I rowsort
SELECT + 89 - - 85 + - 56 AS col1
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-2610
SELECT DISTINCT - + ( + - COALESCE ( + + 67, + 88 * - - COALESCE ( + CASE - - 9 WHEN - 46 + - 84 THEN NULL WHEN - - ( - - 33 ) THEN NULL WHEN - + 44 * + 31 THEN 35 ELSE - + COUNT( * ) + + 60 END, - MAX( ALL - 67 ), + 69 ) * + 11 ) ) AS col1
----
67

skipif mysql # not compatible
query I rowsort label-2610
SELECT DISTINCT - + ( + - COALESCE ( + + 67, + 88 * - - COALESCE ( + CASE - - 9 WHEN - 46 + - 84 THEN NULL WHEN - - ( - - 33 ) THEN NULL WHEN - + 44 * + 31 THEN 35 ELSE - + COUNT ( * ) + + 60 END, - MAX ( ALL - 67 ), + 69 ) * + 11 ) ) AS col1
----
67

onlyif mysql # aggregate syntax: 
query II rowsort label-2611
SELECT ALL - + 72 AS col1, + COUNT( * ) * - 66 + 23 * + 20
----
-72
394

skipif mysql # not compatible
query II rowsort label-2611
SELECT ALL - + 72 AS col1, + COUNT ( * ) * - 66 + 23 * + 20
----
-72
394

onlyif mysql # DIV for integer division: 
query I rowsort label-2612
SELECT 65 DIV 48
----
1

skipif mysql # not compatible
query I rowsort label-2612
SELECT 65 / 48
----
1

query I rowsort
SELECT - 12 * - - 98
----
-1176

query I rowsort
SELECT - 57 * + 42 + + 15 * 93 AS col2
----
-999

onlyif mysql # aggregate syntax: 
query II rowsort label-2615
SELECT ALL 18 * COUNT( * ) AS col0, + 39 * + 28 + CASE + + 18 WHEN + 43 THEN 39 WHEN + - 37 THEN - 19 ELSE NULL END
----
18
NULL

skipif mysql # not compatible
query II rowsort label-2615
SELECT ALL 18 * COUNT ( * ) AS col0, + 39 * + 28 + CASE + + 18 WHEN + 43 THEN 39 WHEN + - 37 THEN - 19 ELSE NULL END
----
18
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2616
SELECT 88 DIV 44 * + - ( + ( - 28 ) )
----
56

skipif mysql # not compatible
query I rowsort label-2616
SELECT 88 / 44 * + - ( + ( - 28 ) )
----
56

query I rowsort
SELECT 57 * + + 94 + + 10
----
5368

query I rowsort
SELECT ALL 35 * - 79
----
-2765

onlyif mysql # DIV for integer division: 
query I rowsort label-2619
SELECT DISTINCT 47 DIV 92 * - 31 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2619
SELECT DISTINCT 47 / 92 * - 31 AS col0
----
0

query I rowsort
SELECT ALL COALESCE ( 25, - 92 * + - ( - 58 ) + + 77 + 87 * - 40 ) + + 58 + + 95 + ( + 31 ) * + 35 + - + 78 + - + 34 AS col1
----
1151

onlyif mysql # aggregate syntax: 
query I rowsort label-2621
SELECT DISTINCT COUNT( * ) + + + COUNT( * ) * 88 col2
----
89

skipif mysql # not compatible
query I rowsort label-2621
SELECT DISTINCT COUNT ( * ) + + + COUNT ( * ) * 88 col2
----
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2622
SELECT ALL + COALESCE ( COUNT( * ), + 71 + - - COUNT( * ) + + 46 DIV 50 + - 14 * 4 ) + 39
----
40

skipif mysql # not compatible
query I rowsort label-2622
SELECT ALL + COALESCE ( COUNT ( * ), + 71 + - - COUNT ( * ) + + 46 / 50 + - 14 * 4 ) + 39
----
40

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2623
SELECT CAST( NULL AS DECIMAL ) * AVG ( DISTINCT - CAST( + + 74 AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2623
SELECT CAST ( NULL AS REAL ) * AVG ( DISTINCT - CAST ( + + 74 AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2624
SELECT ALL CASE + - COUNT( - 90 ) WHEN 52 THEN + + 41 + - - 3 ELSE 21 END + + 75
----
96

skipif mysql # not compatible
query I rowsort label-2624
SELECT ALL CASE + - COUNT ( - 90 ) WHEN 52 THEN + + 41 + - - 3 ELSE 21 END + + 75
----
96

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

skipif mysql # not compatible
query I rowsort label-2625
SELECT CAST ( NULL AS INTEGER ) - - MAX ( 17 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2626
SELECT 48 * SUM( ALL + - 32 ) * + - 91 + + 28 AS col0
----
139804

skipif mysql # not compatible
query I rowsort label-2626
SELECT 48 * SUM ( ALL + - 32 ) * + - 91 + + 28 AS col0
----
139804

query I rowsort
SELECT DISTINCT + ( - + 10 ) + 94 col2
----
84

query I rowsort
SELECT ALL - 58 + - 53
----
-111

query I rowsort
SELECT 38 - + 9 AS col0
----
29

query I rowsort
SELECT DISTINCT 9 - 36 - - 15 AS col2
----
-12

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2631
SELECT ALL - - CAST( - CAST( NULL AS SIGNED ) AS DECIMAL ) * - - 67 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2631
SELECT ALL - - CAST ( - CAST ( NULL AS INTEGER ) AS REAL ) * - - 67 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2632
SELECT ALL - 80 - - 74 - + + 90 * - SUM( CAST( - 15 AS SIGNED ) ) AS col1
----
-1356

skipif mysql # not compatible
query I rowsort label-2632
SELECT ALL - 80 - - 74 - + + 90 * - SUM ( CAST ( - 15 AS INTEGER ) ) AS col1
----
-1356

query I rowsort
SELECT - 97 * + + 32 AS col2
----
-3104

query I rowsort
SELECT 83 * + + 49 AS col1
----
4067

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2635
SELECT - NULLIF ( 37, + + 73 * ( + - CASE + - CAST( NULL AS SIGNED ) WHEN 2 - - 66 / + ( 33 ) THEN NULL WHEN - 48 + - ( - - 13 ) THEN + CAST( NULL AS SIGNED ) + - 89 * - MAX( ALL + + 56 ) + + 27 * - - 49 END ) ) + 78 + - 26 + + 2 * + 5 - + 86 + - 19 * 12 AS col0
----
-289

skipif mysql # not compatible
query I rowsort label-2635
SELECT - NULLIF ( 37, + + 73 * ( + - CASE + - CAST ( NULL AS INTEGER ) WHEN 2 - - 66 / + ( 33 ) THEN NULL WHEN - 48 + - ( - - 13 ) THEN + CAST ( NULL AS INTEGER ) + - 89 * - MAX ( ALL + + 56 ) + + 27 * - - 49 END ) ) + 78 + - 26 + + 2 * + 5 - + 86 + - 19 * 12 AS col0
----
-289

onlyif mysql # aggregate syntax: 
query I rowsort label-2636
SELECT + MAX( DISTINCT COALESCE ( 1, - 43, + + ( + 13 ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-2636
SELECT + MAX ( DISTINCT COALESCE ( 1, - 43, + + ( + 13 ) ) )
----
1

query I rowsort
SELECT ALL + + CASE WHEN 93 IS NOT NULL THEN NULL ELSE - 90 END * + 51 + - 84 + 73 * + - 37
----
NULL

query I rowsort
SELECT 31 + + 93
----
124

query I rowsort
SELECT + 93 - - 9
----
102

query I rowsort
SELECT - COALESCE ( 64, - 93 - 6 ) + + + 32
----
-32

query II rowsort
SELECT ALL ( + 76 ) AS col0, 98 AS col2
----
76
98

query I rowsort
SELECT + 46 * - 61 * - 47 AS col2
----
131882

onlyif mysql # aggregate syntax: 
query I rowsort label-2643
SELECT ALL + 28 * + MIN( ALL - 64 )
----
-1792

skipif mysql # not compatible
query I rowsort label-2643
SELECT ALL + 28 * + MIN ( ALL - 64 )
----
-1792

onlyif mysql # aggregate syntax: 
query I rowsort label-2644
SELECT ALL - 65 / + - NULLIF ( - + 69, 67 ) * 89 / - 56 / MIN( CASE 58 WHEN 37 THEN NULL WHEN 98 + + 93 + - + 65 THEN 36 * 51 END ) * 75 + 34 / 77 * + 73 + 79 + + 16 * + CASE - COUNT( * ) WHEN - 0 * + + ( - 51 ) THEN - ( 17 ) WHEN + 84 THEN NULL ELSE + 34 * 58 END * - MIN( ALL + 78 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2644
SELECT ALL - 65 / + - NULLIF ( - + 69, 67 ) * 89 / - 56 / MIN ( CASE 58 WHEN 37 THEN NULL WHEN 98 + + 93 + - + 65 THEN 36 * 51 END ) * 75 + 34 / 77 * + 73 + 79 + + 16 * + CASE - COUNT ( * ) WHEN - 0 * + + ( - 51 ) THEN - ( 17 ) WHEN + 84 THEN NULL ELSE + 34 * 58 END * - MIN ( ALL + 78 ) col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2645
SELECT DISTINCT - NULLIF ( - - CAST( NULL AS SIGNED ), + - 27 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2645
SELECT DISTINCT - NULLIF ( - - CAST ( NULL AS INTEGER ), + - 27 ) AS col1
----
NULL

query I rowsort
SELECT 31 * + - 82 * 41 AS col1
----
-104222

onlyif mysql # aggregate syntax: 
query II rowsort label-2647
SELECT DISTINCT - - SUM( DISTINCT + 56 ) AS col2, - 26 col0
----
56
-26

skipif mysql # not compatible
query II rowsort label-2647
SELECT DISTINCT - - SUM ( DISTINCT + 56 ) AS col2, - 26 col0
----
56
-26

query I rowsort
SELECT + 77 * - 17 + - + 96 AS col2
----
-1405

onlyif mysql # aggregate syntax: 
query I rowsort label-2649
SELECT DISTINCT 77 + COUNT( * )
----
78

skipif mysql # not compatible
query I rowsort label-2649
SELECT DISTINCT 77 + COUNT ( * )
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-2650
SELECT ALL - 70 + + SUM( ALL 16 )
----
-54

skipif mysql # not compatible
query I rowsort label-2650
SELECT ALL - 70 + + SUM ( ALL 16 )
----
-54

query I rowsort
SELECT ALL 94 * - 59
----
-5546

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2652
SELECT ALL - COALESCE ( - 20, + - NULLIF ( - 30, + + 41 * 11 ) + MAX( + 63 ), - + 79 * + COUNT( * ) + - ( + 72 ) DIV 17 + - 28 - 98 * 84 * 73 ) AS col0
----
20

skipif mysql # not compatible
query I rowsort label-2652
SELECT ALL - COALESCE ( - 20, + - NULLIF ( - 30, + + 41 * 11 ) + MAX ( + 63 ), - + 79 * + COUNT ( * ) + - ( + 72 ) / 17 + - 28 - 98 * 84 * 73 ) AS col0
----
20

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

skipif mysql # not compatible
query I rowsort label-2653
SELECT DISTINCT - 43 + + COUNT ( * ) AS col2
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-2654
SELECT DISTINCT + 89 + - COUNT( - 81 ) + 91
----
179

skipif mysql # not compatible
query I rowsort label-2654
SELECT DISTINCT + 89 + - COUNT ( - 81 ) + 91
----
179

query I rowsort
SELECT 62 * 36 + - + 22 AS col2
----
2210

onlyif mysql # aggregate syntax: 
query I rowsort label-2656
SELECT - ( - COUNT( * ) ) * 22 - 53
----
-31

skipif mysql # not compatible
query I rowsort label-2656
SELECT - ( - COUNT ( * ) ) * 22 - 53
----
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-2657
SELECT ALL 28 DIV + 11
----
2

skipif mysql # not compatible
query I rowsort label-2657
SELECT ALL 28 / + 11
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2658
SELECT 48 - - SUM( ALL - - 90 ) col1
----
138

skipif mysql # not compatible
query I rowsort label-2658
SELECT 48 - - SUM ( ALL - - 90 ) col1
----
138

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2659
SELECT + MIN( DISTINCT CAST( 74 AS SIGNED ) ) AS col2, - CASE + - 47 WHEN + - CASE + 96 WHEN - COUNT( * ) + - 74 THEN + SUM( 7 ) END THEN - 33 * + 74 WHEN - + 67 THEN NULL END
----
74
NULL

skipif mysql # not compatible
query II rowsort label-2659
SELECT + MIN ( DISTINCT CAST ( 74 AS INTEGER ) ) AS col2, - CASE + - 47 WHEN + - CASE + 96 WHEN - COUNT ( * ) + - 74 THEN + SUM ( 7 ) END THEN - 33 * + 74 WHEN - + 67 THEN NULL END
----
74
NULL

query I rowsort
SELECT - 77 * + + 95 + - 82 AS col0
----
-7397

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2661
SELECT CAST( + - COUNT( * ) AS SIGNED ) + + - COUNT( * ) - COUNT( * ) * + - 64 AS col0
----
62

skipif mysql # not compatible
query I rowsort label-2661
SELECT CAST ( + - COUNT ( * ) AS INTEGER ) + + - COUNT ( * ) - COUNT ( * ) * + - 64 AS col0
----
62

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

skipif mysql # not compatible
query I rowsort label-2662
SELECT ALL CAST ( NULL AS INTEGER ) - 17 col2
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2664
SELECT 77 AS col2, COUNT( DISTINCT 81 ) * + - 43 * - ( MIN( ALL 0 ) ) - 55 + 13 * - + SUM( + - CAST( NULL AS SIGNED ) )
----
77
NULL

skipif mysql # not compatible
query II rowsort label-2664
SELECT 77 AS col2, COUNT ( DISTINCT 81 ) * + - 43 * - ( MIN ( ALL 0 ) ) - 55 + 13 * - + SUM ( + - CAST ( NULL AS INTEGER ) )
----
77
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2665
SELECT ALL 95 AS col0, 27 + + + COUNT( * ) + - CAST( NULL AS SIGNED ) + + 85 * COUNT( * ) AS col1
----
95
NULL

skipif mysql # not compatible
query II rowsort label-2665
SELECT ALL 95 AS col0, 27 + + + COUNT ( * ) + - CAST ( NULL AS INTEGER ) + + 85 * COUNT ( * ) AS col1
----
95
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2666
SELECT CASE SUM( ALL - ( - 10 ) ) WHEN + 33 + + COUNT( * ) THEN NULL WHEN - COUNT( * ) THEN - 12 * 49 END + 87
----
NULL

skipif mysql # not compatible
query I rowsort label-2666
SELECT CASE SUM ( ALL - ( - 10 ) ) WHEN + 33 + + COUNT ( * ) THEN NULL WHEN - COUNT ( * ) THEN - 12 * 49 END + 87
----
NULL

query I rowsort
SELECT DISTINCT 21 * 80
----
1680

query I rowsort
SELECT 36 * ( 76 ) + 49 AS col1
----
2785

query I rowsort
SELECT 73 * - 97 AS col2
----
-7081

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2670
SELECT 92 + - CAST( 27 AS SIGNED )
----
65

skipif mysql # not compatible
query I rowsort label-2670
SELECT 92 + - CAST ( 27 AS INTEGER )
----
65

query I rowsort
SELECT 63 * 53 AS col0
----
3339

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2672
SELECT DISTINCT - 46 * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2672
SELECT DISTINCT - 46 * - CAST ( NULL AS REAL )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2673
SELECT ALL MIN ( - 83 )
----
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-2674
SELECT ALL 72 DIV - 27
----
-2

skipif mysql # not compatible
query I rowsort label-2674
SELECT ALL 72 / - 27
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2675
SELECT - COUNT( DISTINCT + 62 ) + CASE CAST( + 61 AS SIGNED ) WHEN + COUNT( * ) THEN NULL WHEN + 60 + - 27 * + ( - ( + 12 ) ) THEN NULL ELSE + 68 * COUNT( * ) + - 11 END DIV 13
----
3

skipif mysql # not compatible
query I rowsort label-2675
SELECT - COUNT ( DISTINCT + 62 ) + CASE CAST ( + 61 AS INTEGER ) WHEN + COUNT ( * ) THEN NULL WHEN + 60 + - 27 * + ( - ( + 12 ) ) THEN NULL ELSE + 68 * COUNT ( * ) + - 11 END / 13
----
3

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

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

query I rowsort
SELECT ALL - 29 * + 42
----
-1218

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2679
SELECT - CAST( NULL AS SIGNED ) - ( 5 - 3 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2679
SELECT - CAST ( NULL AS INTEGER ) - ( 5 - 3 ) AS col1
----
NULL

query I rowsort
SELECT COALESCE ( 66, + 27 - + 15, 26 ) AS col2
----
66

query I rowsort
SELECT - 30 + + 41 AS col2
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-2682
SELECT DISTINCT - 83 * NULLIF ( - 90, 22 * - COUNT( * ) ) + 35 * MAX( ALL 8 ) AS col2
----
7750

skipif mysql # not compatible
query I rowsort label-2682
SELECT DISTINCT - 83 * NULLIF ( - 90, 22 * - COUNT ( * ) ) + 35 * MAX ( ALL 8 ) AS col2
----
7750

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

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

query I rowsort
SELECT ALL 24 * 81 + + 68 * 35
----
4324

query I rowsort
SELECT NULLIF ( 75, - 0 ) AS col1
----
75

query I rowsort
SELECT DISTINCT 99 * + 4 + - 53 AS col2
----
343

onlyif mysql # aggregate syntax: 
query I rowsort label-2687
SELECT DISTINCT 67 * CASE 40 WHEN COALESCE ( - 12, + 35 ) * + COUNT( * ) THEN + 71 + - COUNT( * ) ELSE NULL END + + 62 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2687
SELECT DISTINCT 67 * CASE 40 WHEN COALESCE ( - 12, + 35 ) * + COUNT ( * ) THEN + 71 + - COUNT ( * ) ELSE NULL END + + 62 AS col2
----
NULL

query I rowsort
SELECT COALESCE ( + 39, - 0 * + 67 ) col0
----
39

query I rowsort
SELECT - 58 * + 49
----
-2842

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2693
SELECT DISTINCT - 90 * - 96 - 5 DIV 15
----
8640

skipif mysql # not compatible
query I rowsort label-2693
SELECT DISTINCT - 90 * - 96 - 5 / 15
----
8640

query I rowsort
SELECT NULLIF ( ( 54 ), 98 * + 57 + + 67 ) AS col0
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2695
SELECT ALL - 40 * 66 - CASE - 98 WHEN 82 + + 13 THEN NULL WHEN - COUNT( * ) + MAX( 29 ) THEN NULL ELSE 41 + - 29 DIV + 63 END DIV CAST( - 21 AS SIGNED ) AS col1
----
-2639

skipif mysql # not compatible
query I rowsort label-2695
SELECT ALL - 40 * 66 - CASE - 98 WHEN 82 + + 13 THEN NULL WHEN - COUNT ( * ) + MAX ( 29 ) THEN NULL ELSE 41 + - 29 / + 63 END / CAST ( - 21 AS INTEGER ) AS col1
----
-2639

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

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

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

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

query I rowsort
SELECT - 63 * 12
----
-756

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2699
SELECT ALL + CAST( + 96 AS SIGNED ) AS col0
----
96

skipif mysql # not compatible
query I rowsort label-2699
SELECT ALL + CAST ( + 96 AS INTEGER ) AS col0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2700
SELECT COUNT( DISTINCT 75 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2700
SELECT COUNT ( DISTINCT 75 ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2701
SELECT - 68 - - CAST( - 4 AS SIGNED ) DIV 10
----
-68

skipif mysql # not compatible
query I rowsort label-2701
SELECT - 68 - - CAST ( - 4 AS INTEGER ) / 10
----
-68

query I rowsort
SELECT - - ( 92 ) * 39 AS col1
----
3588

query I rowsort
SELECT + + 69 * 78
----
5382

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2704
SELECT + ( - 90 ) DIV - ( - 35 DIV - COUNT( 34 * + 22 ) )
----
2

skipif mysql # not compatible
query I rowsort label-2704
SELECT + ( - 90 ) / - ( - 35 / - COUNT ( 34 * + 22 ) )
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-2705
SELECT - - ( + 57 ) + + ( 29 + - ( + 44 ) ) DIV - 92 AS col1
----
57

skipif mysql # not compatible
query I rowsort label-2705
SELECT - - ( + 57 ) + + ( 29 + - ( + 44 ) ) / - 92 AS col1
----
57

query I rowsort
SELECT + 6 * 56
----
336

query I rowsort
SELECT ALL 45 * + 56
----
2520

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2708
SELECT DISTINCT + CAST( COALESCE ( 21, 66 ) AS SIGNED ) DIV ( ( COUNT( * ) ) )
----
21

skipif mysql # not compatible
query I rowsort label-2708
SELECT DISTINCT + CAST ( COALESCE ( 21, 66 ) AS INTEGER ) / ( ( COUNT ( * ) ) )
----
21

query I rowsort
SELECT DISTINCT - 81 * + 27
----
-2187

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2710
SELECT DISTINCT + 70 DIV + CAST( COUNT( ALL 13 ) * 61 AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-2710
SELECT DISTINCT + 70 / + CAST ( COUNT ( ALL 13 ) * 61 AS INTEGER )
----
1

query I rowsort
SELECT + - 42 - 42
----
-84

query I rowsort
SELECT ALL - 37 * 98 AS col0
----
-3626

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2713
SELECT + + CASE AVG ( ALL ( 86 ) ) WHEN COUNT( * ) THEN 29 WHEN + 23 + - COALESCE ( + 88 + 89 * 21, + 33 * + CAST( NULL AS SIGNED ), - 34 * 22 ) THEN NULL ELSE + 63 END + 83 * - ( + 11 )
----
-850

skipif mysql # not compatible
query I rowsort label-2713
SELECT + + CASE AVG ( ALL ( 86 ) ) WHEN COUNT ( * ) THEN 29 WHEN + 23 + - COALESCE ( + 88 + 89 * 21, + 33 * + CAST ( NULL AS INTEGER ), - 34 * 22 ) THEN NULL ELSE + 63 END + 83 * - ( + 11 )
----
-850

onlyif mysql # aggregate syntax: 
query I rowsort label-2714
SELECT DISTINCT 34 + MAX( NULLIF ( + ( - 77 ), NULLIF ( - 60, - 52 + 39 ) + - 19 ) ) * + COALESCE ( + COUNT( * ) * + COUNT( * ) + 20, + ( 85 ) ) col2
----
-1583

skipif mysql # not compatible
query I rowsort label-2714
SELECT DISTINCT 34 + MAX ( NULLIF ( + ( - 77 ), NULLIF ( - 60, - 52 + 39 ) + - 19 ) ) * + COALESCE ( + COUNT ( * ) * + COUNT ( * ) + 20, + ( 85 ) ) col2
----
-1583

onlyif mysql # aggregate syntax: 
query I rowsort label-2715
SELECT + - 82 + NULLIF ( + COUNT( * ), - 97 )
----
-81

skipif mysql # not compatible
query I rowsort label-2715
SELECT + - 82 + NULLIF ( + COUNT ( * ), - 97 )
----
-81

query I rowsort
SELECT ALL + 13 + 0
----
13

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

skipif mysql # not compatible
query I rowsort label-2717
SELECT + + 7 + COUNT ( * ) AS col0
----
8

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

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

query I rowsort
SELECT - 1 * - 47 AS col0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2720
SELECT ALL CASE - 68 WHEN - 64 THEN COUNT( * ) + + 44 * + 29 ELSE NULL END + + COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2720
SELECT ALL CASE - 68 WHEN - 64 THEN COUNT ( * ) + + 44 * + 29 ELSE NULL END + + COUNT ( * ) col0
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2722
SELECT DISTINCT COUNT( * ) + + 87 - 43 * 92 DIV 30
----
-43

skipif mysql # not compatible
query I rowsort label-2722
SELECT DISTINCT COUNT ( * ) + + 87 - 43 * 92 / 30
----
-43

query I rowsort
SELECT ALL + ( - 0 ) * 56
----
0

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

skipif mysql # not compatible
query I rowsort label-2724
SELECT + 94 / + AVG ( + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT DISTINCT 0 + + 10 AS col2
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2726
SELECT DISTINCT COUNT( * ) DIV - 11 * ( + 46 * - 59 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2726
SELECT DISTINCT COUNT ( * ) / - 11 * ( + 46 * - 59 ) AS col0
----
0

query I rowsort
SELECT - 29 + + 19 - 44 AS col2
----
-54

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

query I rowsort
SELECT 99 * 68 * 38 + NULLIF ( 16, 88 + + 23 ) AS col1
----
255832

onlyif mysql # DIV for integer division: 
query I rowsort label-2730
SELECT + 93 DIV 59
----
1

skipif mysql # not compatible
query I rowsort label-2730
SELECT + 93 / 59
----
1

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

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

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

query I rowsort
SELECT DISTINCT 10 * 84
----
840

onlyif mysql # DIV for integer division: 
query I rowsort label-2734
SELECT ALL + 36 DIV + 36
----
1

skipif mysql # not compatible
query I rowsort label-2734
SELECT ALL + 36 / + 36
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2735
SELECT - COUNT( ALL - 17 ) + + CAST( - 2 - - ( 52 ) / ( 24 * + 25 + + 91 ) AS SIGNED ) AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-2735
SELECT - COUNT ( ALL - 17 ) + + CAST ( - 2 - - ( 52 ) / ( 24 * + 25 + + 91 ) AS INTEGER ) AS col2
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2736
SELECT DISTINCT + 27 DIV MAX( 15 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2736
SELECT DISTINCT + 27 / MAX ( 15 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2737
SELECT DISTINCT + CASE CASE - 51 WHEN ( 61 ) THEN 52 WHEN 95 + + 27 THEN NULL WHEN - COUNT( * ) * 62 + 76 THEN NULL END WHEN - 8 * NULLIF ( 86 / 53, + COUNT( * ) ) THEN - 38 + + 84 WHEN - COUNT( DISTINCT 7 ) * 84 THEN + 13 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2737
SELECT DISTINCT + CASE CASE - 51 WHEN ( 61 ) THEN 52 WHEN 95 + + 27 THEN NULL WHEN - COUNT ( * ) * 62 + 76 THEN NULL END WHEN - 8 * NULLIF ( 86 / 53, + COUNT ( * ) ) THEN - 38 + + 84 WHEN - COUNT ( DISTINCT 7 ) * 84 THEN + 13 END
----
NULL

query I rowsort
SELECT + 69 + - + 51 AS col1
----
18

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2740
SELECT - COUNT( * ) + + 23 + 45
----
67

skipif mysql # not compatible
query I rowsort label-2740
SELECT - COUNT ( * ) + + 23 + 45
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2741
SELECT + COUNT( * ) * - COUNT( * ) * 1 - 60
----
-61

skipif mysql # not compatible
query I rowsort label-2741
SELECT + COUNT ( * ) * - COUNT ( * ) * 1 - 60
----
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2742
SELECT + CAST( NULL AS SIGNED ) - + 97 * - 29 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2742
SELECT + CAST ( NULL AS INTEGER ) - + 97 * - 29 AS col0
----
NULL

query I rowsort
SELECT ALL + 2 * - 25 AS col2
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-2744
SELECT + CASE - - 78 WHEN + COUNT( 89 ) THEN - 3 WHEN 11 THEN NULL ELSE 13 END col2
----
13

skipif mysql # not compatible
query I rowsort label-2744
SELECT + CASE - - 78 WHEN + COUNT ( 89 ) THEN - 3 WHEN 11 THEN NULL ELSE 13 END col2
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-2745
SELECT COUNT( * ) * - 28 + - COUNT( * ) * - 38 col2
----
10

skipif mysql # not compatible
query I rowsort label-2745
SELECT COUNT ( * ) * - 28 + - COUNT ( * ) * - 38 col2
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-2746
SELECT ALL - 52 + + 1 + COALESCE ( - 91, 19 ) DIV 7 AS col2
----
-64

skipif mysql # not compatible
query I rowsort label-2746
SELECT ALL - 52 + + 1 + COALESCE ( - 91, 19 ) / 7 AS col2
----
-64

query I rowsort
SELECT 60 + - 15 AS col0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-2748
SELECT ALL + COUNT( DISTINCT + + 8 ) + 97
----
98

skipif mysql # not compatible
query I rowsort label-2748
SELECT ALL + COUNT ( DISTINCT + + 8 ) + 97
----
98

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

query I rowsort
SELECT DISTINCT + + 4 * 33 + 89 * 66 AS col1
----
6006

query I rowsort
SELECT DISTINCT - 50 + NULLIF ( 63, 23 ) + - 19 AS col0
----
-6

query I rowsort
SELECT - - 40 col0
----
40

query I rowsort
SELECT DISTINCT + - 54 + - + 6 AS col0
----
-60

query I rowsort
SELECT ALL - - 91 + - + 94
----
-3

query I rowsort
SELECT DISTINCT + + 29 + - - 82
----
111

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2757
SELECT ALL 46 DIV - 20 + 14 DIV 15
----
-2

skipif mysql # not compatible
query I rowsort label-2757
SELECT ALL 46 / - 20 + 14 / 15
----
-2

query I rowsort
SELECT 78 * - 24 AS col2
----
-1872

query I rowsort
SELECT ALL - 56 + 18
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2760
SELECT DISTINCT 64 * - - 29 / CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2760
SELECT DISTINCT 64 * - - 29 / CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL + + 12 + + 50 AS col2
----
62

query I rowsort
SELECT ALL + 76 + 58 - - 70 AS col1
----
204

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2764
SELECT ALL - NULLIF ( + 48, + ( 19 ) ) + CASE + COUNT( + 0 ) WHEN + MAX( DISTINCT + 74 ) THEN NULLIF ( 78, 64 ) + CAST( NULL AS SIGNED ) * + COALESCE ( COUNT( * ), 45 - 84, + 24 - SUM( 63 ) ) END * 43
----
NULL

skipif mysql # not compatible
query I rowsort label-2764
SELECT ALL - NULLIF ( + 48, + ( 19 ) ) + CASE + COUNT ( + 0 ) WHEN + MAX ( DISTINCT + 74 ) THEN NULLIF ( 78, 64 ) + CAST ( NULL AS INTEGER ) * + COALESCE ( COUNT ( * ), 45 - 84, + 24 - SUM ( 63 ) ) END * 43
----
NULL

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

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

query II rowsort
SELECT ALL 50 AS col0, + 23 - - 23 * 11
----
50
276

onlyif mysql # aggregate syntax: 
query I rowsort label-2767
SELECT DISTINCT MAX( + 93 ) * + + 11 + + 61 col1
----
1084

skipif mysql # not compatible
query I rowsort label-2767
SELECT DISTINCT MAX ( + 93 ) * + + 11 + + 61 col1
----
1084

query II rowsort
SELECT - 4 AS col0, 26 AS col2
----
-4
26

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2770
SELECT COUNT( * ) - - 29 + - ( 95 ) DIV 3
----
-1

skipif mysql # not compatible
query I rowsort label-2770
SELECT COUNT ( * ) - - 29 + - ( 95 ) / 3
----
-1

query I rowsort
SELECT NULLIF ( + 96, + - 86 + + 15 ) * + 27 AS col0
----
2592

query II rowsort
SELECT 60 AS col2, 12 AS col1
----
60
12

onlyif mysql # aggregate syntax: 
query I rowsort label-2773
SELECT 16 - NULLIF ( + + 80, + MIN( + 87 ) + 10 ) col0
----
-64

skipif mysql # not compatible
query I rowsort label-2773
SELECT 16 - NULLIF ( + + 80, + MIN ( + 87 ) + 10 ) col0
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2774
SELECT COALESCE ( - + CAST( - - ( 96 ) AS SIGNED ), CASE + 56 WHEN 35 - 33 THEN 77 - CASE - 56 WHEN 56 THEN 97 + + 33 END WHEN 35 THEN 73 WHEN - 74 DIV 91 THEN NULL ELSE COUNT( * ) + + 28 * 19 END, 22 DIV COUNT( * ) + - 53 ) * 20 AS col0
----
-1920

skipif mysql # not compatible
query I rowsort label-2774
SELECT COALESCE ( - + CAST ( - - ( 96 ) AS INTEGER ), CASE + 56 WHEN 35 - 33 THEN 77 - CASE - 56 WHEN 56 THEN 97 + + 33 END WHEN 35 THEN 73 WHEN - 74 / 91 THEN NULL ELSE COUNT ( * ) + + 28 * 19 END, 22 / COUNT ( * ) + - 53 ) * 20 AS col0
----
-1920

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2776
SELECT DISTINCT COALESCE ( + NULLIF ( ( 78 ), - COUNT( * ) + + 49 / + COUNT( * ) ), - COUNT( * ) ) - 22 AS col1
----
56

skipif mysql # not compatible
query I rowsort label-2776
SELECT DISTINCT COALESCE ( + NULLIF ( ( 78 ), - COUNT ( * ) + + 49 / + COUNT ( * ) ), - COUNT ( * ) ) - 22 AS col1
----
56

onlyif mysql # DIV for integer division: 
query II rowsort label-2777
SELECT ALL - 77 AS col1, + 38 DIV + 16 AS col1
----
-77
2

skipif mysql # not compatible
query II rowsort label-2777
SELECT ALL - 77 AS col1, + 38 / + 16 AS col1
----
-77
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2778
SELECT + 77 * + - COUNT( * ) - - CAST( + COUNT( * ) AS SIGNED ) + 5 DIV 11 * 38 AS col1
----
-76

skipif mysql # not compatible
query I rowsort label-2778
SELECT + 77 * + - COUNT ( * ) - - CAST ( + COUNT ( * ) AS INTEGER ) + 5 / 11 * 38 AS col1
----
-76

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

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

query I rowsort
SELECT ALL + 40 * 64
----
2560

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2781
SELECT CAST( - CAST( + 9 AS SIGNED ) AS SIGNED ) * 18
----
-162

skipif mysql # not compatible
query I rowsort label-2781
SELECT CAST ( - CAST ( + 9 AS INTEGER ) AS INTEGER ) * 18
----
-162

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2782
SELECT ALL CAST( - + AVG ( 77 ) AS SIGNED ) DIV 43
----
-1

skipif mysql # not compatible
query I rowsort label-2782
SELECT ALL CAST ( - + AVG ( 77 ) AS INTEGER ) / 43
----
-1

query II rowsort
SELECT + 37 AS col0, 32
----
37
32

query I rowsort
SELECT DISTINCT 98 * - 86 * + 39
----
-328692

onlyif mysql # aggregate syntax: 
query I rowsort label-2785
SELECT + 64 * COUNT( * ) + - + 95 + - 3
----
-34

skipif mysql # not compatible
query I rowsort label-2785
SELECT + 64 * COUNT ( * ) + - + 95 + - 3
----
-34

query I rowsort
SELECT ALL + 32 * + + 90 col0
----
2880

query I rowsort
SELECT DISTINCT + - 81 + + + 91 * - NULLIF ( 74, 73 )
----
-6815

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2788
SELECT + COUNT( - ( - 30 ) ) DIV 33
----
0

skipif mysql # not compatible
query I rowsort label-2788
SELECT + COUNT ( - ( - 30 ) ) / 33
----
0

query I rowsort
SELECT DISTINCT - 48 + - 53 AS col2
----
-101

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

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

query I rowsort
SELECT ALL - + 39 + - - 67
----
28

query I rowsort
SELECT - 63 - + 20 AS col1
----
-83

query I rowsort
SELECT ALL + 46 + + 45 AS col2
----
91

query I rowsort
SELECT + + 49 * - 2 - 37 AS col1
----
-135

onlyif mysql # aggregate syntax: 
query I rowsort label-2795
SELECT COALESCE ( + 86, CASE COUNT( * ) WHEN + 84 / - 38 THEN SUM( + 40 ) END * - COUNT( * ) ) + 0 AS col1
----
86

skipif mysql # not compatible
query I rowsort label-2795
SELECT COALESCE ( + 86, CASE COUNT ( * ) WHEN + 84 / - 38 THEN SUM ( + 40 ) END * - COUNT ( * ) ) + 0 AS col1
----
86

query II rowsort
SELECT - 6, - 70 AS col2
----
-6
-70

query I rowsort
SELECT ALL COALESCE ( + 10, + 62 ) AS col0
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-2798
SELECT - COUNT( * ), + COALESCE ( - 93, - 0 ) AS col2
----
-1
-93

skipif mysql # not compatible
query II rowsort label-2798
SELECT - COUNT ( * ), + COALESCE ( - 93, - 0 ) AS col2
----
-1
-93

query I rowsort
SELECT + 4 + + 81 * - - 83 AS col2
----
6727

query I rowsort
SELECT ALL + + ( + + 4 ) + - 24 + - 11
----
-31

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

skipif mysql # not compatible
query I rowsort label-2801
SELECT DISTINCT - - 97 + CAST ( NULL AS INTEGER ) AS col0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2803
SELECT ALL - COALESCE ( + + 49, - 84, - 69 * + MAX( - 12 ) ) + 85 * 6
----
461

skipif mysql # not compatible
query I rowsort label-2803
SELECT ALL - COALESCE ( + + 49, - 84, - 69 * + MAX ( - 12 ) ) + 85 * 6
----
461

onlyif mysql # aggregate syntax: 
query I rowsort label-2804
SELECT DISTINCT COALESCE ( + - MAX( DISTINCT - - 92 ), + CASE SUM( - 73 ) WHEN - NULLIF ( ( - 47 ), - 70 + 16 / + COUNT( * ) ) * + 84 THEN NULL WHEN + MIN( + 22 ) THEN 28 WHEN 61 * - 44 THEN NULL ELSE NULL END + - 29 ) AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-2804
SELECT DISTINCT COALESCE ( + - MAX ( DISTINCT - - 92 ), + CASE SUM ( - 73 ) WHEN - NULLIF ( ( - 47 ), - 70 + 16 / + COUNT ( * ) ) * + 84 THEN NULL WHEN + MIN ( + 22 ) THEN 28 WHEN 61 * - 44 THEN NULL ELSE NULL END + - 29 ) AS col2
----
-92

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

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

query I rowsort
SELECT 70 - - 15 col1
----
85

query I rowsort
SELECT DISTINCT NULLIF ( - 50, - 79 * 43 )
----
-50

query II rowsort
SELECT - 18 AS col2, + 24
----
-18
24

query I rowsort
SELECT 7 + - 10 AS col0
----
-3

query I rowsort
SELECT 13 * 48 AS col2
----
624

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2811
SELECT 16 + - 91 - CAST( NULL AS SIGNED ) / - 38 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2811
SELECT 16 + - 91 - CAST ( NULL AS INTEGER ) / - 38 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2812
SELECT DISTINCT 64 DIV - 30 col1, + 38 + + 25 + 78
----
-2
141

skipif mysql # not compatible
query II rowsort label-2812
SELECT DISTINCT 64 / - 30 col1, + 38 + + 25 + 78
----
-2
141

onlyif mysql # aggregate syntax: 
query II rowsort label-2813
SELECT 26 + - 81 AS col2, + 74 * - MAX( DISTINCT 94 ) AS col1
----
-55
-6956

skipif mysql # not compatible
query II rowsort label-2813
SELECT 26 + - 81 AS col2, + 74 * - MAX ( DISTINCT 94 ) AS col1
----
-55
-6956

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2815
SELECT DISTINCT - 63 DIV 70 col1
----
0

skipif mysql # not compatible
query I rowsort label-2815
SELECT DISTINCT - 63 / 70 col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2816
SELECT DISTINCT 17 * 21 DIV - - 61 AS col2
----
5

skipif mysql # not compatible
query I rowsort label-2816
SELECT DISTINCT 17 * 21 / - - 61 AS col2
----
5

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

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

query I rowsort
SELECT ALL 63 * ( + - 15 ) AS col1
----
-945

query I rowsort
SELECT ( 38 ) * + 21
----
798

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2820
SELECT - 73 * 77 + + 52 + - + CAST( NULL AS SIGNED ) * - 7
----
NULL

skipif mysql # not compatible
query I rowsort label-2820
SELECT - 73 * 77 + + 52 + - + CAST ( NULL AS INTEGER ) * - 7
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2821
SELECT MIN( DISTINCT CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2821
SELECT MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT + 81 + + 56 + - 14
----
123

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2823
SELECT DISTINCT + COUNT( * ) * - 31 + CAST( 85 AS SIGNED ) * 23
----
1924

skipif mysql # not compatible
query I rowsort label-2823
SELECT DISTINCT + COUNT ( * ) * - 31 + CAST ( 85 AS INTEGER ) * 23
----
1924

query I rowsort
SELECT DISTINCT - 19 * - - 60 * ( + 65 )
----
-74100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2825
SELECT + - 17 * + NULLIF ( SUM( DISTINCT - 56 ), + ( 28 ) ) + CASE + ( - COUNT( * ) ) WHEN COUNT( * ) + - 40 THEN COUNT( * ) * + ( - 68 ) + CAST( NULL AS SIGNED ) WHEN 43 THEN - 36 * - 70 END * - 9 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2825
SELECT + - 17 * + NULLIF ( SUM ( DISTINCT - 56 ), + ( 28 ) ) + CASE + ( - COUNT ( * ) ) WHEN COUNT ( * ) + - 40 THEN COUNT ( * ) * + ( - 68 ) + CAST ( NULL AS INTEGER ) WHEN 43 THEN - 36 * - 70 END * - 9 col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2827
SELECT + COUNT( DISTINCT - - COALESCE ( + NULLIF ( - 83, - 19 + 56 ), 37 + 25 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2827
SELECT + COUNT ( DISTINCT - - COALESCE ( + NULLIF ( - 83, - 19 + 56 ), 37 + 25 ) ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-2828
SELECT + - 69 + - + 33 AS col1, + 53 DIV 81 AS col1
----
-102
0

skipif mysql # not compatible
query II rowsort label-2828
SELECT + - 69 + - + 33 AS col1, + 53 / 81 AS col1
----
-102
0

query I rowsort
SELECT DISTINCT - 58 * + + 50 * - 36 AS col0
----
104400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2830
SELECT + + 88 * - 22 * - 82 * - 76 + + COUNT( * ) DIV - CAST( - 53 AS SIGNED ) AS col2
----
-12065152

skipif mysql # not compatible
query I rowsort label-2830
SELECT + + 88 * - 22 * - 82 * - 76 + + COUNT ( * ) / - CAST ( - 53 AS INTEGER ) AS col2
----
-12065152

query I rowsort
SELECT - + 89 + + - 29
----
-118

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2833
SELECT ALL - 9 - + + 39 + + ( + COUNT( * ) ) + 67 * + 42 * - COALESCE ( 64, 40 DIV + 37 ) AS col2
----
-180143

skipif mysql # not compatible
query I rowsort label-2833
SELECT ALL - 9 - + + 39 + + ( + COUNT ( * ) ) + 67 * + 42 * - COALESCE ( 64, 40 / + 37 ) AS col2
----
-180143

query I rowsort
SELECT + 97 * 13 AS col0
----
1261

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2835
SELECT DISTINCT - + MAX( DISTINCT + - 58 ) - - + CAST( - - 4 AS SIGNED ) - 79 AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-2835
SELECT DISTINCT - + MAX ( DISTINCT + - 58 ) - - + CAST ( - - 4 AS INTEGER ) - 79 AS col2
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-2836
SELECT ALL - - 11 DIV - + ( + 40 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2836
SELECT ALL - - 11 / - + ( + 40 ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2837
SELECT - CAST( NULL AS SIGNED ) + + 70 + - 57 + + 9 + 27 * - NULLIF ( + SUM( 91 ) * 37, + 47 ) * 69 * CAST( NULL AS SIGNED ) * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2837
SELECT - CAST ( NULL AS INTEGER ) + + 70 + - 57 + + 9 + 27 * - NULLIF ( + SUM ( 91 ) * 37, + 47 ) * 69 * CAST ( NULL AS INTEGER ) * - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2838
SELECT + - CASE 57 WHEN - - COUNT( * ) + - ( + ( 2 ) ) - + 50 THEN 23 * 41 WHEN - 85 THEN NULL ELSE NULL END * + 47 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2838
SELECT + - CASE 57 WHEN - - COUNT ( * ) + - ( + ( 2 ) ) - + 50 THEN 23 * 41 WHEN - 85 THEN NULL ELSE NULL END * + 47 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2839
SELECT - - 62 * SUM( ALL - 68 ) AS col0
----
-4216

skipif mysql # not compatible
query I rowsort label-2839
SELECT - - 62 * SUM ( ALL - 68 ) AS col0
----
-4216

query I rowsort
SELECT - 0 + 16
----
16

query I rowsort
SELECT - 12 * 95 AS col0
----
-1140

query II rowsort
SELECT DISTINCT - 67 * - 36 * - 17 col1, - 74
----
-41004
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-2843
SELECT ALL SUM( ALL + 2 ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-2843
SELECT ALL SUM ( ALL + 2 ) AS col2
----
2

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2844
SELECT ALL - 49 * 33 * + CAST( NULL AS DECIMAL ) AS col0, - 0 AS col1
----
NULL
0

skipif mysql # not compatible
query II rowsort label-2844
SELECT ALL - 49 * 33 * + CAST ( NULL AS REAL ) AS col0, - 0 AS col1
----
NULL
0

query I rowsort
SELECT DISTINCT ( - 84 ) AS col0
----
-84

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

query I rowsort
SELECT - 82 + - + 46
----
-128

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2848
SELECT DISTINCT - CAST( 15 AS SIGNED ) * - - 2
----
-30

skipif mysql # not compatible
query I rowsort label-2848
SELECT DISTINCT - CAST ( 15 AS INTEGER ) * - - 2
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-2849
SELECT - MIN( ALL + - 94 ) + COUNT( * ) AS col2
----
95

skipif mysql # not compatible
query I rowsort label-2849
SELECT - MIN ( ALL + - 94 ) + COUNT ( * ) AS col2
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-2850
SELECT DISTINCT CASE WHEN NOT ( NULL ) IS NOT NULL THEN + COUNT( * ) ELSE NULL END
----
1

skipif mysql # not compatible
query I rowsort label-2850
SELECT DISTINCT CASE WHEN NOT ( NULL ) IS NOT NULL THEN + COUNT ( * ) ELSE NULL END
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2852
SELECT - COUNT( * ) - ( + 76 ) * + 34 * 17 * - 45
----
1976759

skipif mysql # not compatible
query I rowsort label-2852
SELECT - COUNT ( * ) - ( + 76 ) * + 34 * 17 * - 45
----
1976759

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2855
SELECT ALL COUNT( * ) DIV + CAST( - + 88 AS SIGNED ) * - 80 + - 72
----
-72

skipif mysql # not compatible
query I rowsort label-2855
SELECT ALL COUNT ( * ) / + CAST ( - + 88 AS INTEGER ) * - 80 + - 72
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-2856
SELECT + SUM( ALL 1 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2856
SELECT + SUM ( ALL 1 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2857
SELECT - MIN( 82 ) * + 20 AS col1
----
-1640

skipif mysql # not compatible
query I rowsort label-2857
SELECT - MIN ( 82 ) * + 20 AS col1
----
-1640

query I rowsort
SELECT ALL 62 * - - 69 AS col1
----
4278

onlyif mysql # DIV for integer division: 
query I rowsort label-2859
SELECT ALL - 13 DIV 23 + + 25 AS col1
----
25

skipif mysql # not compatible
query I rowsort label-2859
SELECT ALL - 13 / 23 + + 25 AS col1
----
25

query I rowsort
SELECT - - 73 * - 64 - + 71 + 48 AS col2
----
-4695

query I rowsort
SELECT - - 15 * - - 18 AS col1
----
270

query I rowsort
SELECT - 56 * + 58 + + + ( - 31 ) AS col2
----
-3279

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2866
SELECT + - ( - + 93 ) * + CASE + COALESCE ( + 9, + COUNT( * ) * + 84 ) WHEN - SUM( 18 ) THEN NULL WHEN - AVG ( 86 ) THEN 81 + ( ( + 13 ) ) * + 84 WHEN 39 / + CASE COUNT( ALL + 54 ) WHEN - MIN( DISTINCT + 96 ) THEN NULL WHEN 52 - + 62 THEN 38 ELSE NULL END + COALESCE ( 45 + 87, 26 * COUNT( * ) ) * 28 THEN NULL ELSE + 71 END + COUNT( * ) * CAST( + 73 AS SIGNED )
----
6676

skipif mysql # not compatible
query I rowsort label-2866
SELECT + - ( - + 93 ) * + CASE + COALESCE ( + 9, + COUNT ( * ) * + 84 ) WHEN - SUM ( 18 ) THEN NULL WHEN - AVG ( 86 ) THEN 81 + ( ( + 13 ) ) * + 84 WHEN 39 / + CASE COUNT ( ALL + 54 ) WHEN - MIN ( DISTINCT + 96 ) THEN NULL WHEN 52 - + 62 THEN 38 ELSE NULL END + COALESCE ( 45 + 87, 26 * COUNT ( * ) ) * 28 THEN NULL ELSE + 71 END + COUNT ( * ) * CAST ( + 73 AS INTEGER )
----
6676

query I rowsort
SELECT DISTINCT + 46 * - + 46 AS col0
----
-2116

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

skipif mysql # not compatible
query I rowsort label-2868
SELECT ALL + MAX ( DISTINCT + 22 ) AS col1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-2869
SELECT ALL + + ( 89 ) * - SUM( 80 ) - - 10 * 27 AS col0
----
-6850

skipif mysql # not compatible
query I rowsort label-2869
SELECT ALL + + ( 89 ) * - SUM ( 80 ) - - 10 * 27 AS col0
----
-6850

query I rowsort
SELECT + + 97 - + 87
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2871
SELECT + ( ( + - CASE - 32 WHEN + + 23 THEN + CAST( - 6 AS SIGNED ) * - 25 + 66 * COUNT( * ) WHEN 63 THEN + MIN( + 78 ) * + 16 END ) ) * - 5 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2871
SELECT + ( ( + - CASE - 32 WHEN + + 23 THEN + CAST ( - 6 AS INTEGER ) * - 25 + 66 * COUNT ( * ) WHEN 63 THEN + MIN ( + 78 ) * + 16 END ) ) * - 5 AS col2
----
NULL

query I rowsort
SELECT DISTINCT 1 * + 81 * 16
----
1296

onlyif mysql # aggregate syntax: 
query I rowsort label-2873
SELECT - + 11 * - COUNT( * ) * + + COUNT( * ) + - + 41 + + ( + 38 )
----
8

skipif mysql # not compatible
query I rowsort label-2873
SELECT - + 11 * - COUNT ( * ) * + + COUNT ( * ) + - + 41 + + ( + 38 )
----
8

query I rowsort
SELECT ALL + 53 * - ( - - 76 ) + 4 * ( + 43 )
----
-3856

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2876
SELECT + 71 + + SUM( ALL 91 )
----
162

skipif mysql # not compatible
query I rowsort label-2876
SELECT + 71 + + SUM ( ALL 91 )
----
162

onlyif mysql # DIV for integer division: 
query I rowsort label-2877
SELECT ALL + 8 DIV - + 61 * - 70 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2877
SELECT ALL + 8 / - + 61 * - 70 AS col0
----
0

query I rowsort
SELECT - 41 + 22 AS col1
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-2879
SELECT ALL COUNT( * ) AS col2, + ( + CAST( + 51 AS SIGNED ) ) AS col0, + COUNT( * ) * - 19 * NULLIF ( 61, 12 )
----
1
51
-1159

skipif mysql # not compatible
query III rowsort label-2879
SELECT ALL COUNT ( * ) AS col2, + ( + CAST ( + 51 AS INTEGER ) ) AS col0, + COUNT ( * ) * - 19 * NULLIF ( 61, 12 )
----
1
51
-1159

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

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

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

query I rowsort
SELECT ALL 40 + + 44
----
84

query I rowsort
SELECT + 5 + + 96 AS col1
----
101

query I rowsort
SELECT 48 * 10 AS col2
----
480

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2885
SELECT CAST( 47 AS SIGNED ) + COUNT( * )
----
48

skipif mysql # not compatible
query I rowsort label-2885
SELECT CAST ( 47 AS INTEGER ) + COUNT ( * )
----
48

query I rowsort
SELECT 86 - 78 AS col0
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2887
SELECT DISTINCT 28 AS col2, - 43 * - CAST( NULL AS SIGNED ) + ( + CASE + + 56 WHEN + CASE + 74 WHEN SUM( ALL + 75 ) * + 75 THEN NULL WHEN - COUNT( * ) * - CAST( CASE 5 WHEN CAST( NULL AS DECIMAL ) THEN NULL ELSE + NULLIF ( 65, CAST( NULL AS SIGNED ) + + COUNT( DISTINCT + 7 ) ) + 70 END * - 57 AS SIGNED ) + + 95 THEN + COALESCE ( + COUNT( * ), COUNT( * ) ) ELSE + 64 / - COUNT( * ) END THEN NULL WHEN 57 THEN CAST( NULL AS SIGNED ) - 4 END ) * 80
----
28
NULL

skipif mysql # not compatible
query II rowsort label-2887
SELECT DISTINCT 28 AS col2, - 43 * - CAST ( NULL AS INTEGER ) + ( + CASE + + 56 WHEN + CASE + 74 WHEN SUM ( ALL + 75 ) * + 75 THEN NULL WHEN - COUNT ( * ) * - CAST ( CASE 5 WHEN CAST ( NULL AS REAL ) THEN NULL ELSE + NULLIF ( 65, CAST ( NULL AS INTEGER ) + + COUNT ( DISTINCT + 7 ) ) + 70 END * - 57 AS INTEGER ) + + 95 THEN + COALESCE ( + COUNT ( * ), COUNT ( * ) ) ELSE + 64 / - COUNT ( * ) END THEN NULL WHEN 57 THEN CAST ( NULL AS INTEGER ) - 4 END ) * 80
----
28
NULL

query I rowsort
SELECT DISTINCT + 73 + + 31 * - + 63
----
-1880

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

query II rowsort
SELECT ALL 34, NULLIF ( + 10, 71 ) AS col1
----
34
10

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

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

query I rowsort
SELECT 76 + + + 55 col2
----
131

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

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

query I rowsort
SELECT DISTINCT + 74 + 57
----
131

query I rowsort
SELECT ALL - 19 * - ( + 76 ) AS col2
----
1444

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2896
SELECT DISTINCT - COUNT( * ) col2, 34 * + 63 / - + COUNT( ALL - 37 ) * - CASE - 45 WHEN - 52 * COUNT( * ) THEN + SUM( + 29 ) - CAST( NULL AS SIGNED ) * - AVG ( ALL 75 - 68 ) WHEN 77 * - 34 THEN NULL ELSE NULL END
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-2896
SELECT DISTINCT - COUNT ( * ) col2, 34 * + 63 / - + COUNT ( ALL - 37 ) * - CASE - 45 WHEN - 52 * COUNT ( * ) THEN + SUM ( + 29 ) - CAST ( NULL AS INTEGER ) * - AVG ( ALL 75 - 68 ) WHEN 77 * - 34 THEN NULL ELSE NULL END
----
-1
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2897
SELECT ALL - 17 AS col1, - COUNT( * ) * 74 AS col2
----
-17
-74

skipif mysql # not compatible
query II rowsort label-2897
SELECT ALL - 17 AS col1, - COUNT ( * ) * 74 AS col2
----
-17
-74

query I rowsort
SELECT 27 * - 80 + - 72
----
-2232

query I rowsort
SELECT + 34 * + 43 AS col1
----
1462

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2901
SELECT DISTINCT + + COUNT( * ) - - ( - 46 ) * NULLIF ( - 33, + CASE COALESCE ( 83, 66 * ( 49 ), 96 ) WHEN COALESCE ( COUNT( * ), ( - 14 ), - 74 - - 77, 1 ) THEN 33 * + CAST( + CASE - 50 WHEN + 25 THEN - COUNT( * ) * COUNT( * ) WHEN - CAST( NULL AS SIGNED ) THEN 30 END AS DECIMAL ) ELSE NULL END * - 52 )
----
1519

skipif mysql # not compatible
query I rowsort label-2901
SELECT DISTINCT + + COUNT ( * ) - - ( - 46 ) * NULLIF ( - 33, + CASE COALESCE ( 83, 66 * ( 49 ), 96 ) WHEN COALESCE ( COUNT ( * ), ( - 14 ), - 74 - - 77, 1 ) THEN 33 * + CAST ( + CASE - 50 WHEN + 25 THEN - COUNT ( * ) * COUNT ( * ) WHEN - CAST ( NULL AS INTEGER ) THEN 30 END AS REAL ) ELSE NULL END * - 52 )
----
1519

onlyif mysql # aggregate syntax: 
query I rowsort label-2902
SELECT CASE - 75 WHEN + 54 + + 85 + - 53 * 54 THEN 15 * 69 ELSE NULL END / - 19 + - COUNT( * ) * + 42
----
NULL

skipif mysql # not compatible
query I rowsort label-2902
SELECT CASE - 75 WHEN + 54 + + 85 + - 53 * 54 THEN 15 * 69 ELSE NULL END / - 19 + - COUNT ( * ) * + 42
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2903
SELECT ALL - 17 * - - NULLIF ( - - MAX( DISTINCT - 91 ), + - 59 ) AS col1
----
1547

skipif mysql # not compatible
query I rowsort label-2903
SELECT ALL - 17 * - - NULLIF ( - - MAX ( DISTINCT - 91 ), + - 59 ) AS col1
----
1547

onlyif mysql # aggregate syntax: 
query I rowsort label-2904
SELECT ( + - COUNT( * ) ) * - + COUNT( * ) + - 84 + + 90
----
7

skipif mysql # not compatible
query I rowsort label-2904
SELECT ( + - COUNT ( * ) ) * - + COUNT ( * ) + - 84 + + 90
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-2905
SELECT ALL - 19 AS col0, NULLIF ( + 26, - 74 / - 40 * - - 18 - + 93 / - COALESCE ( + COUNT( * ), 87 + + 38, + COUNT( * ) + + 76 / 52 ) ) * 17 + + ( + 89 ) AS col1
----
-19
531

skipif mysql # not compatible
query II rowsort label-2905
SELECT ALL - 19 AS col0, NULLIF ( + 26, - 74 / - 40 * - - 18 - + 93 / - COALESCE ( + COUNT ( * ), 87 + + 38, + COUNT ( * ) + + 76 / 52 ) ) * 17 + + ( + 89 ) AS col1
----
-19
531

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2906
SELECT - NULLIF ( - SUM( DISTINCT + 4 ), 38 ) * - COALESCE ( + 48, 80 ) / + 65 + 1 / SUM( + CAST( NULL AS SIGNED ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2906
SELECT - NULLIF ( - SUM ( DISTINCT + 4 ), 38 ) * - COALESCE ( + 48, 80 ) / + 65 + 1 / SUM ( + CAST ( NULL AS INTEGER ) ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2907
SELECT ( + MAX( - 15 ) ) * 17
----
-255

skipif mysql # not compatible
query I rowsort label-2907
SELECT ( + MAX ( - 15 ) ) * 17
----
-255

onlyif mysql # aggregate syntax: 
query I rowsort label-2908
SELECT DISTINCT - ( + - 23 ) * - COUNT( DISTINCT + ( - + 86 ) ) * - - 57 + 76
----
-1235

skipif mysql # not compatible
query I rowsort label-2908
SELECT DISTINCT - ( + - 23 ) * - COUNT ( DISTINCT + ( - + 86 ) ) * - - 57 + 76
----
-1235

query I rowsort
SELECT + 50 * + - 21 AS col2
----
-1050

query I rowsort
SELECT 68 + + + 33 - + 6 * 35 col2
----
-109

query I rowsort
SELECT 55 + + - 29
----
26

query I rowsort
SELECT + + 1 col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2913
SELECT 45 + + 91 + COUNT( * ) + - - 66 * - 34
----
-2107

skipif mysql # not compatible
query I rowsort label-2913
SELECT 45 + + 91 + COUNT ( * ) + - - 66 * - 34
----
-2107

query I rowsort
SELECT DISTINCT - 67 + + CASE + 46 WHEN 24 * - 46 THEN NULL WHEN + ( 96 ) * + 73 THEN 68 * 12 END
----
NULL

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

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

query I rowsort
SELECT ALL NULLIF ( + 46, + - 46 * + 89 ) + + 0 col1
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-2917
SELECT DISTINCT ( 92 ) DIV - 16
----
-5

skipif mysql # not compatible
query I rowsort label-2917
SELECT DISTINCT ( 92 ) / - 16
----
-5

query II rowsort
SELECT ALL 99 + - 98 col0, 58 col1
----
1
58

onlyif mysql # aggregate syntax: 
query II rowsort label-2919
SELECT COUNT( * ) * + 24 AS col1, - 48 AS col2
----
24
-48

skipif mysql # not compatible
query II rowsort label-2919
SELECT COUNT ( * ) * + 24 AS col1, - 48 AS col2
----
24
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-2920
SELECT ( - - 91 ) * + SUM( - 63 ) + - 22
----
-5755

skipif mysql # not compatible
query I rowsort label-2920
SELECT ( - - 91 ) * + SUM ( - 63 ) + - 22
----
-5755

query I rowsort
SELECT ALL 39 + - 2 + - 35 - - 95 * + 76 * + 11 col2
----
79422

onlyif mysql # aggregate syntax: 
query I rowsort label-2922
SELECT DISTINCT 98 + COUNT( * )
----
99

skipif mysql # not compatible
query I rowsort label-2922
SELECT DISTINCT 98 + COUNT ( * )
----
99

onlyif mysql # aggregate syntax: 
query III rowsort label-2923
SELECT SUM( ALL + 8 ) + - - 97 AS col0, - 39 - + - 58 col1, + 89
----
105
19
89

skipif mysql # not compatible
query III rowsort label-2923
SELECT SUM ( ALL + 8 ) + - - 97 AS col0, - 39 - + - 58 col1, + 89
----
105
19
89

query I rowsort
SELECT CASE - 3 WHEN + - 92 THEN - 98 WHEN - + 7 THEN 13 + + 18 ELSE NULL END * 41 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2925
SELECT DISTINCT SUM( ALL - 46 ) DIV + MAX( ALL 91 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2925
SELECT DISTINCT SUM ( ALL - 46 ) / + MAX ( ALL 91 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2926
SELECT - MAX( - 67 ) AS col0
----
67

skipif mysql # not compatible
query I rowsort label-2926
SELECT - MAX ( - 67 ) AS col0
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-2927
SELECT + 97 + 2 DIV 33 AS col1
----
97

skipif mysql # not compatible
query I rowsort label-2927
SELECT + 97 + 2 / 33 AS col1
----
97

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2928
SELECT ALL + - 57 * - COALESCE ( 37, - 45 ) * 74 / MIN( DISTINCT - CAST( NULL AS DECIMAL ) ) + - 33 - + 3
----
NULL

skipif mysql # not compatible
query I rowsort label-2928
SELECT ALL + - 57 * - COALESCE ( 37, - 45 ) * 74 / MIN ( DISTINCT - CAST ( NULL AS REAL ) ) + - 33 - + 3
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2929
SELECT DISTINCT + SUM( 3 ) * + 54 + - - 78 AS col2
----
240

skipif mysql # not compatible
query I rowsort label-2929
SELECT DISTINCT + SUM ( 3 ) * + 54 + - - 78 AS col2
----
240

query I rowsort
SELECT DISTINCT + 19 * - ( + + 0 ) * - 53 AS col1
----
0

query I rowsort
SELECT - 4 * - - 41 AS col0
----
-164

onlyif mysql # aggregate syntax: 
query I rowsort label-2932
SELECT DISTINCT - - MAX( ALL 48 ) col1
----
48

skipif mysql # not compatible
query I rowsort label-2932
SELECT DISTINCT - - MAX ( ALL 48 ) col1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-2933
SELECT ALL - + CASE + 49 WHEN - COUNT( * ) * - + 71 / + - 54 - - - 10 + 47 + + 64 THEN 67 * + 7 WHEN + 60 THEN + 11 * + 77 ELSE - CASE - 31 WHEN 97 THEN + 6 * + 83 + 14 WHEN + 18 * 30 THEN NULL ELSE NULL END * 90 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2933
SELECT ALL - + CASE + 49 WHEN - COUNT ( * ) * - + 71 / + - 54 - - - 10 + 47 + + 64 THEN 67 * + 7 WHEN + 60 THEN + 11 * + 77 ELSE - CASE - 31 WHEN 97 THEN + 6 * + 83 + 14 WHEN + 18 * 30 THEN NULL ELSE NULL END * 90 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2934
SELECT ALL + 36 DIV - NULLIF ( - COUNT( * ), - NULLIF ( + - 70, - 49 - - 30 DIV + 16 ) ) AS col0
----
36

skipif mysql # not compatible
query I rowsort label-2934
SELECT ALL + 36 / - NULLIF ( - COUNT ( * ), - NULLIF ( + - 70, - 49 - - 30 / + 16 ) ) AS col0
----
36

query I rowsort
SELECT + 71 * + 49 * 66 + + 64
----
229678

query I rowsort
SELECT ALL + 25 + + 27 + 45 * + 67 AS col2
----
3067

query I rowsort
SELECT - 80 - + 85
----
-165

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

skipif mysql # not compatible
query I rowsort label-2938
SELECT ALL 35 + + ( + 1 ) + COUNT ( * ) + + - ( + 37 ) / - ( + - 99 )
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-2939
SELECT MIN( ALL 8 ) * + - ( - + 75 ) AS col0
----
600

skipif mysql # not compatible
query I rowsort label-2939
SELECT MIN ( ALL 8 ) * + - ( - + 75 ) AS col0
----
600

onlyif mysql # aggregate syntax: 
query II rowsort label-2940
SELECT - 44 * - COUNT( * ) + - 79 AS col2, 0 AS col0
----
-35
0

skipif mysql # not compatible
query II rowsort label-2940
SELECT - 44 * - COUNT ( * ) + - 79 AS col2, 0 AS col0
----
-35
0

query I rowsort
SELECT DISTINCT + 45 * + - 50
----
-2250

query I rowsort
SELECT ALL - 91 + - - 32
----
-59

query I rowsort
SELECT + 11 * - 31 AS col2
----
-341

query I rowsort
SELECT DISTINCT + 46 * 38
----
1748

onlyif mysql # aggregate syntax: 
query I rowsort label-2945
SELECT ALL - ( 0 ) + MIN( - 4 ) AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-2945
SELECT ALL - ( 0 ) + MIN ( - 4 ) AS col2
----
-4

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

query II rowsort
SELECT ALL 22, + 9 col1
----
22
9

query I rowsort
SELECT + ( + 9 ) + + 20 AS col0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-2949
SELECT ALL CASE + + 85 WHEN - 29 THEN 87 - + COUNT( * ) * + + 99 - - 93 * - + 2 ELSE 30 + COUNT( * ) END AS col2
----
31

skipif mysql # not compatible
query I rowsort label-2949
SELECT ALL CASE + + 85 WHEN - 29 THEN 87 - + COUNT ( * ) * + + 99 - - 93 * - + 2 ELSE 30 + COUNT ( * ) END AS col2
----
31

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2951
SELECT + 28 + - COALESCE ( - COUNT( * ), - 25 - - 8 - 69 ) AS col1
----
29

skipif mysql # not compatible
query I rowsort label-2951
SELECT + 28 + - COALESCE ( - COUNT ( * ), - 25 - - 8 - 69 ) AS col1
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2952
SELECT + CAST( NULL AS SIGNED ) + + - 53 * + - 31 + - 47 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2952
SELECT + CAST ( NULL AS INTEGER ) + + - 53 * + - 31 + - 47 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2953
SELECT + 21 * + CAST( COUNT( DISTINCT 71 ) AS SIGNED ) AS col0
----
21

skipif mysql # not compatible
query I rowsort label-2953
SELECT + 21 * + CAST ( COUNT ( DISTINCT 71 ) AS INTEGER ) AS col0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-2954
SELECT + COUNT( - 6 ) + + 55
----
56

skipif mysql # not compatible
query I rowsort label-2954
SELECT + COUNT ( - 6 ) + + 55
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2955
SELECT - NULLIF ( - 62, - CAST( - 72 AS SIGNED ) * - 41 * ( - ( - + 19 ) ) - + 22 - 54 ) col1
----
62

skipif mysql # not compatible
query I rowsort label-2955
SELECT - NULLIF ( - 62, - CAST ( - 72 AS INTEGER ) * - 41 * ( - ( - + 19 ) ) - + 22 - 54 ) col1
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-2956
SELECT + + 53 + + - NULLIF ( + + MAX( + + 16 ), - 36 * 57 ) * - 72 + 0 AS col2
----
1205

skipif mysql # not compatible
query I rowsort label-2956
SELECT + + 53 + + - NULLIF ( + + MAX ( + + 16 ), - 36 * 57 ) * - 72 + 0 AS col2
----
1205

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2957
SELECT ALL - 42 * - NULLIF ( + CAST( NULL AS DECIMAL ), + - 58 ) + - + 64 + + 60 + - 95 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2957
SELECT ALL - 42 * - NULLIF ( + CAST ( NULL AS REAL ), + - 58 ) + - + 64 + + 60 + - 95 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2958
SELECT ALL + COUNT( * ) * - 22 DIV + MAX( - 61 ) + ( - ( 97 ) )
----
-97

skipif mysql # not compatible
query I rowsort label-2958
SELECT ALL + COUNT ( * ) * - 22 / + MAX ( - 61 ) + ( - ( 97 ) )
----
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-2959
SELECT ALL - COUNT( * ) col2, + 19 * - - 32 + - 13 AS col1
----
-1
595

skipif mysql # not compatible
query II rowsort label-2959
SELECT ALL - COUNT ( * ) col2, + 19 * - - 32 + - 13 AS col1
----
-1
595

onlyif mysql # aggregate syntax: 
query I rowsort label-2960
SELECT SUM( 92 )
----
92

skipif mysql # not compatible
query I rowsort label-2960
SELECT SUM ( 92 )
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-2961
SELECT ALL 22 * + 94 + + ( + 53 ) * + ( MAX( + - 74 ) ) AS col2
----
-1854

skipif mysql # not compatible
query I rowsort label-2961
SELECT ALL 22 * + 94 + + ( + 53 ) * + ( MAX ( + - 74 ) ) AS col2
----
-1854

onlyif mysql # aggregate syntax: 
query I rowsort label-2962
SELECT + 61 * + - SUM( ALL - 36 )
----
2196

skipif mysql # not compatible
query I rowsort label-2962
SELECT + 61 * + - SUM ( ALL - 36 )
----
2196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2963
SELECT + 66 + CASE + 9 WHEN - MIN( DISTINCT + 10 ) THEN NULL WHEN - ( - 25 ) DIV + 48 * + 69 + CAST( NULL AS SIGNED ) THEN NULL ELSE + 92 DIV 47 END
----
67

skipif mysql # not compatible
query I rowsort label-2963
SELECT + 66 + CASE + 9 WHEN - MIN ( DISTINCT + 10 ) THEN NULL WHEN - ( - 25 ) / + 48 * + 69 + CAST ( NULL AS INTEGER ) THEN NULL ELSE + 92 / 47 END
----
67

query I rowsort
SELECT + - 84 + - 81 * - 73
----
5829

onlyif mysql # DIV for integer division: 
query I rowsort label-2965
SELECT - + 20 DIV + + 29 col0
----
0

skipif mysql # not compatible
query I rowsort label-2965
SELECT - + 20 / + + 29 col0
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2967
SELECT - + COUNT( * ) - + 80 + 34 * - 17
----
-659

skipif mysql # not compatible
query I rowsort label-2967
SELECT - + COUNT ( * ) - + 80 + 34 * - 17
----
-659

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2969
SELECT ALL + CASE + 64 WHEN - + 1 THEN NULL WHEN - 62 THEN NULL ELSE 62 DIV - + 71 END * + 20 * 16 + ( + COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2969
SELECT ALL + CASE + 64 WHEN - + 1 THEN NULL WHEN - 62 THEN NULL ELSE 62 / - + 71 END * + 20 * 16 + ( + COUNT ( * ) ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2970
SELECT DISTINCT - COUNT( * ) * 89 * - 28 + - 88 + + 94 * + 33 * - - 64 + - + 12 * + 9 + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2970
SELECT DISTINCT - COUNT ( * ) * 89 * - 28 + - 88 + + 94 * + 33 * - - 64 + - + 12 * + 9 + - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT CASE - 63 WHEN + 67 THEN - 54 - + 74 END
----
NULL

query I rowsort
SELECT ALL 98 * 30 * - 39 + - 69 + + 98 * ( ( - 40 ) )
----
-118649

query I rowsort
SELECT ALL + CASE + 26 WHEN + 0 THEN 83 ELSE NULL END * - 32 - + - 44 + + 95 * - 32 + - 43 * 1 + + 65
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2975
SELECT CASE 6 WHEN CASE WHEN - 62 BETWEEN + 50 AND NULL THEN 64 + + + 23 * 38 ELSE COUNT( * ) END + + 44 THEN 47 ELSE 27 * - 65 END
----
-1755

skipif mysql # not compatible
query I rowsort label-2975
SELECT CASE 6 WHEN CASE WHEN - 62 BETWEEN + 50 AND NULL THEN 64 + + + 23 * 38 ELSE COUNT ( * ) END + + 44 THEN 47 ELSE 27 * - 65 END
----
-1755

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

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

query I rowsort
SELECT COALESCE ( - 41, + 21, - 98 - 49 ) AS col0
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2978
SELECT ALL CAST( NULL AS SIGNED ) * + 57 * - + 50 + + - ( 72 ) / - AVG ( ALL + 93 ) * - 12 - - 0
----
NULL

skipif mysql # not compatible
query I rowsort label-2978
SELECT ALL CAST ( NULL AS INTEGER ) * + 57 * - + 50 + + - ( 72 ) / - AVG ( ALL + 93 ) * - 12 - - 0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2979
SELECT ALL + SUM( ALL + 71 ) AS col2
----
71

skipif mysql # not compatible
query I rowsort label-2979
SELECT ALL + SUM ( ALL + 71 ) AS col2
----
71

query I rowsort
SELECT DISTINCT - 68 * - 65 - - 95 AS col2
----
4515

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

query I rowsort
SELECT ALL - 60 * + 9 * 63
----
-34020

onlyif mysql # DIV for integer division: 
query I rowsort label-2983
SELECT - 52 DIV - 56 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2983
SELECT - 52 / - 56 AS col2
----
0

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

skipif mysql # not compatible
query I rowsort label-2984
SELECT ALL - 87 / 64 / + COUNT ( * ) col2
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-2985
SELECT - COUNT( 0 ) AS col2, 69 + 27 * 3 AS col0
----
-1
150

skipif mysql # not compatible
query II rowsort label-2985
SELECT - COUNT ( 0 ) AS col2, 69 + 27 * 3 AS col0
----
-1
150

query II rowsort
SELECT ALL - 60 * - - 69 AS col1, 52 + - - 60
----
-4140
112

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2987
SELECT - 16 DIV COUNT( * ) AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-2987
SELECT - 16 / COUNT ( * ) AS col1
----
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-2988
SELECT - 22 DIV + 66
----
0

skipif mysql # not compatible
query I rowsort label-2988
SELECT - 22 / + 66
----
0

query I rowsort
SELECT + 98 * - 70
----
-6860

query I rowsort
SELECT ALL + 88 * 37
----
3256

query I rowsort
SELECT DISTINCT CASE 93 WHEN - 88 + - - 25 THEN - 31 WHEN + 86 THEN - 17 * - 47 END
----
NULL

query I rowsort
SELECT ALL + 97 * - 87
----
-8439

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2994
SELECT + - MAX( ( 37 ) ) + 75
----
38

skipif mysql # not compatible
query I rowsort label-2994
SELECT + - MAX ( ( 37 ) ) + 75
----
38

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

skipif mysql # not compatible
query I rowsort label-2995
SELECT - + CAST ( NULL AS INTEGER ) * + - NULLIF ( + COUNT ( * ), + COUNT ( * ) + 41 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2996
SELECT + + 24 * ( + COUNT( DISTINCT - 80 ) )
----
24

skipif mysql # not compatible
query I rowsort label-2996
SELECT + + 24 * ( + COUNT ( DISTINCT - 80 ) )
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2997
SELECT ALL - + 34 + - + 25 AS col2, 86 - - 13 * + - CAST( 66 AS SIGNED ) + 63
----
-59
-709

skipif mysql # not compatible
query II rowsort label-2997
SELECT ALL - + 34 + - + 25 AS col2, 86 - - 13 * + - CAST ( 66 AS INTEGER ) + 63
----
-59
-709

query I rowsort
SELECT - + 80 + + ( 22 ) * - 27
----
-674

query I rowsort
SELECT CASE 23 WHEN + 13 THEN 96 END AS col0
----
NULL

query I rowsort
SELECT - 26 * + + 37 + + + 93
----
-869

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3001
SELECT DISTINCT - - 87 DIV 3 + - ( - COUNT( * ) ) + + MIN( 49 ) * - - 82 + + - 9 - - NULLIF ( - 65, 99 ) + 47 * - 53 + - NULLIF ( 71 + - ( + 87 ), + 9 + + 12 )
----
1499

skipif mysql # not compatible
query I rowsort label-3001
SELECT DISTINCT - - 87 / 3 + - ( - COUNT ( * ) ) + + MIN ( 49 ) * - - 82 + + - 9 - - NULLIF ( - 65, 99 ) + 47 * - 53 + - NULLIF ( 71 + - ( + 87 ), + 9 + + 12 )
----
1499

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3002
SELECT ALL + + COUNT( * ) DIV + 69 - + - 84 + CASE - COUNT( * ) WHEN 18 THEN NULL WHEN - 31 THEN NULL ELSE + - 20 - - 16 + 86 END * + 46
----
3856

skipif mysql # not compatible
query I rowsort label-3002
SELECT ALL + + COUNT ( * ) / + 69 - + - 84 + CASE - COUNT ( * ) WHEN 18 THEN NULL WHEN - 31 THEN NULL ELSE + - 20 - - 16 + 86 END * + 46
----
3856

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3003
SELECT ALL + 58 DIV ( + 89 ) + COUNT( * ) * + 3 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-3003
SELECT ALL + 58 / ( + 89 ) + COUNT ( * ) * + 3 AS col0
----
3

query I rowsort
SELECT + - 98 * - - 14 * - 30 AS col0
----
41160

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

skipif mysql # not compatible
query I rowsort label-3005
SELECT ALL NULLIF ( - 69, + 93 ) * + COUNT ( * )
----
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3006
SELECT DISTINCT + 72 DIV - - COUNT( * ) + + CASE - - 14 WHEN - + 70 THEN NULL WHEN - + 23 THEN + 50 ELSE + 6 + + + 95 + - 39 END AS col1
----
134

skipif mysql # not compatible
query I rowsort label-3006
SELECT DISTINCT + 72 / - - COUNT ( * ) + + CASE - - 14 WHEN - + 70 THEN NULL WHEN - + 23 THEN + 50 ELSE + 6 + + + 95 + - 39 END AS col1
----
134

onlyif mysql # aggregate syntax: 
query II rowsort label-3007
SELECT + 94 col2, 52 - COUNT( * ) - 76 * + 15
----
94
-1089

skipif mysql # not compatible
query II rowsort label-3007
SELECT + 94 col2, 52 - COUNT ( * ) - 76 * + 15
----
94
-1089

query I rowsort
SELECT 80 * - + 90
----
-7200

query I rowsort
SELECT ALL - 91 - + 98
----
-189

query I rowsort
SELECT DISTINCT - 73 - - - 87 AS col0
----
-160

onlyif mysql # aggregate syntax: 
query I rowsort label-3011
SELECT ALL 17 * + 18 * - COALESCE ( + COUNT( * ), - + COUNT( * ) )
----
-306

skipif mysql # not compatible
query I rowsort label-3011
SELECT ALL 17 * + 18 * - COALESCE ( + COUNT ( * ), - + COUNT ( * ) )
----
-306

query I rowsort
SELECT 57 * 50
----
2850

query I rowsort
SELECT 92 * 92
----
8464

query II rowsort
SELECT 10 AS col1, + 0 * + 83 AS col2
----
10
0

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

skipif mysql # not compatible
query I rowsort label-3015
SELECT 5 * - - COUNT ( * )
----
5

query I rowsort
SELECT 76 + 81 AS col1
----
157

query I rowsort
SELECT 92 * 26 * - 59 * ( - 12 ) - + 48 + - + 96 AS col1
----
1693392

query I rowsort
SELECT DISTINCT 16 * + - 97
----
-1552

query I rowsort
SELECT 95 + 88
----
183

query I rowsort
SELECT 19 + + 67 AS col0
----
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3021
SELECT ALL + COALESCE ( + COALESCE ( - 11, 34 DIV - - 11 + - + 25, - COUNT( * ) * 29 * - - 26 ), 79 ) AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-3021
SELECT ALL + COALESCE ( + COALESCE ( - 11, 34 / - - 11 + - + 25, - COUNT ( * ) * 29 * - - 26 ), 79 ) AS col2
----
-11

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3023
SELECT - 43 DIV - 17 + - 54
----
-52

skipif mysql # not compatible
query I rowsort label-3023
SELECT - 43 / - 17 + - 54
----
-52

query I rowsort
SELECT ALL - 90 + + 37
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-3025
SELECT DISTINCT + + 69 * - SUM( ALL - 1 )
----
69

skipif mysql # not compatible
query I rowsort label-3025
SELECT DISTINCT + + 69 * - SUM ( ALL - 1 )
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-3026
SELECT COUNT( * ) * + CASE CASE WHEN NOT ( NULL ) BETWEEN + 47 AND NULL THEN NULLIF ( 99, 39 ) / + 10 * - COUNT( * ) - + 56 * + COUNT( * ) ELSE NULL END WHEN + 49 THEN - 50 ELSE 60 + + COUNT( * ) * 69 END * 31 + + COUNT( * ) AS col0
----
4000

skipif mysql # not compatible
query I rowsort label-3026
SELECT COUNT ( * ) * + CASE CASE WHEN NOT ( NULL ) BETWEEN + 47 AND NULL THEN NULLIF ( 99, 39 ) / + 10 * - COUNT ( * ) - + 56 * + COUNT ( * ) ELSE NULL END WHEN + 49 THEN - 50 ELSE 60 + + COUNT ( * ) * 69 END * 31 + + COUNT ( * ) AS col0
----
4000

query I rowsort
SELECT - 1 + + 17 + 26
----
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3028
SELECT - COUNT( * ) DIV - 8 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3028
SELECT - COUNT ( * ) / - 8 AS col1
----
0

query I rowsort
SELECT ALL - - 39 + + - 64 * + 74
----
-4697

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3031
SELECT ALL - 7 + - COUNT( * ) + 45 * 79 + - 26 AS col1, CAST( NULL AS SIGNED ) + 3 + - - 95 * - 3 + + - CAST( NULL AS SIGNED ) * - 42
----
3521
NULL

skipif mysql # not compatible
query II rowsort label-3031
SELECT ALL - 7 + - COUNT ( * ) + 45 * 79 + - 26 AS col1, CAST ( NULL AS INTEGER ) + 3 + - - 95 * - 3 + + - CAST ( NULL AS INTEGER ) * - 42
----
3521
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3032
SELECT ALL + 49 + - 15 * - 89 + + NULLIF ( - - 90, + COUNT( * ) )
----
1474

skipif mysql # not compatible
query I rowsort label-3032
SELECT ALL + 49 + - 15 * - 89 + + NULLIF ( - - 90, + COUNT ( * ) )
----
1474

onlyif mysql # aggregate syntax: 
query I rowsort label-3033
SELECT DISTINCT ( + - MAX( DISTINCT - 34 ) ) + + - 37
----
-3

skipif mysql # not compatible
query I rowsort label-3033
SELECT DISTINCT ( + - MAX ( DISTINCT - 34 ) ) + + - 37
----
-3

query I rowsort
SELECT - NULLIF ( + + 47, + - ( 26 ) ) AS col2
----
-47

query I rowsort
SELECT ALL - 46 + - 19
----
-65

query I rowsort
SELECT 78 + - 21
----
57

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3038
SELECT - 30 * - 91 + - + COALESCE ( - + 92, COUNT( * ) + COUNT( * ), ( CASE 88 WHEN + 64 THEN NULL WHEN - 20 + + 30 THEN NULL ELSE - 35 END ) + + 10 DIV - 88, COUNT( * ) ) + 64 AS col2
----
2886

skipif mysql # not compatible
query I rowsort label-3038
SELECT - 30 * - 91 + - + COALESCE ( - + 92, COUNT ( * ) + COUNT ( * ), ( CASE 88 WHEN + 64 THEN NULL WHEN - 20 + + 30 THEN NULL ELSE - 35 END ) + + 10 / - 88, COUNT ( * ) ) + 64 AS col2
----
2886

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

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3042
SELECT 76 + - COUNT( 79 ) - + CASE + COUNT( * ) WHEN + 34 + - 95 THEN NULL ELSE + - 46 DIV - 59 END * + 57 * + 86 col2
----
75

skipif mysql # not compatible
query I rowsort label-3042
SELECT 76 + - COUNT ( 79 ) - + CASE + COUNT ( * ) WHEN + 34 + - 95 THEN NULL ELSE + - 46 / - 59 END * + 57 * + 86 col2
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3043
SELECT 50 * + NULLIF ( - CAST( COUNT( * ) AS SIGNED ), + - COALESCE ( - ( MAX( - - 43 ) ), - COUNT( * ) + + - 66 ) * - - 67 ) DIV + COUNT( * ) col1
----
-50

skipif mysql # not compatible
query I rowsort label-3043
SELECT 50 * + NULLIF ( - CAST ( COUNT ( * ) AS INTEGER ), + - COALESCE ( - ( MAX ( - - 43 ) ), - COUNT ( * ) + + - 66 ) * - - 67 ) / + COUNT ( * ) col1
----
-50

onlyif mysql # DIV for integer division: 
query II rowsort label-3044
SELECT 57 DIV 95 col0, 91 + - + 89 + - 15 * + ( - 5 ) * 6
----
0
452

skipif mysql # not compatible
query II rowsort label-3044
SELECT 57 / 95 col0, 91 + - + 89 + - 15 * + ( - 5 ) * 6
----
0
452

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3045
SELECT 95 + - 21 AS col2, + CASE - + 30 WHEN + CAST( NULL AS SIGNED ) + + COUNT( + + 37 ) + 12 * + 74 + + 18 + - 95 * 52 THEN 28 - + COUNT( * ) ELSE 57 END
----
74
57

skipif mysql # not compatible
query II rowsort label-3045
SELECT 95 + - 21 AS col2, + CASE - + 30 WHEN + CAST ( NULL AS INTEGER ) + + COUNT ( + + 37 ) + 12 * + 74 + + 18 + - 95 * 52 THEN 28 - + COUNT ( * ) ELSE 57 END
----
74
57

onlyif mysql # aggregate syntax: 
query I rowsort label-3046
SELECT ( - 4 ) + + - 57 + - 86 - + 51 - 19 + - - COUNT( * ) - - 69 * - - 22 * 64 * + - 58
----
-5635032

skipif mysql # not compatible
query I rowsort label-3046
SELECT ( - 4 ) + + - 57 + - 86 - + 51 - 19 + - - COUNT ( * ) - - 69 * - - 22 * 64 * + - 58
----
-5635032

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

skipif mysql # not compatible
query I rowsort label-3047
SELECT DISTINCT 33 / - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3048
SELECT ALL - MIN( DISTINCT - + 38 ) AS col1
----
38

skipif mysql # not compatible
query I rowsort label-3048
SELECT ALL - MIN ( DISTINCT - + 38 ) AS col1
----
38

query II rowsort
SELECT 79 AS col1, 17 * - 73 AS col1
----
79
-1241

query II rowsort
SELECT ALL - 37 AS col1, 36
----
-37
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3051
SELECT ALL 27 + + + 63 * - 83 + - COUNT( * ) AS col0, - CAST( NULL AS SIGNED ) / 97 * ( 98 ) AS col1
----
-5203
NULL

skipif mysql # not compatible
query II rowsort label-3051
SELECT ALL 27 + + + 63 * - 83 + - COUNT ( * ) AS col0, - CAST ( NULL AS INTEGER ) / 97 * ( 98 ) AS col1
----
-5203
NULL

query II rowsort
SELECT DISTINCT 88 col1, - 9
----
88
-9

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3054
SELECT DISTINCT 62 + SUM( DISTINCT - 13 ) + - 26 AS col0
----
23

skipif mysql # not compatible
query I rowsort label-3054
SELECT DISTINCT 62 + SUM ( DISTINCT - 13 ) + - 26 AS col0
----
23

query II rowsort
SELECT - 66, 97 AS col0
----
-66
97

query I rowsort
SELECT - 72 - - 50
----
-22

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3058
SELECT ALL 68 + - - COUNT( ALL - + 31 ) + - 47 col0, - 89 DIV 2 * + 8 AS col0
----
22
-352

skipif mysql # not compatible
query II rowsort label-3058
SELECT ALL 68 + - - COUNT ( ALL - + 31 ) + - 47 col0, - 89 / 2 * + 8 AS col0
----
22
-352

onlyif mysql # aggregate syntax: 
query I rowsort label-3059
SELECT ALL + + 66 + + COUNT( * ) + - 13 * 17 AS col1
----
-154

skipif mysql # not compatible
query I rowsort label-3059
SELECT ALL + + 66 + + COUNT ( * ) + - 13 * 17 AS col1
----
-154

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3060
SELECT CASE 19 WHEN - CASE CAST( NULL AS SIGNED ) WHEN + CAST( NULL AS SIGNED ) * + 30 THEN - + 61 WHEN - 56 THEN NULL ELSE NULL END THEN NULL WHEN - - CAST( NULLIF ( - + 82, 72 + ( CASE - ( 61 ) WHEN 80 * COUNT( * ) THEN NULL WHEN + 72 + + COUNT( * ) / + 32 THEN NULL WHEN + 86 * MIN( 0 * 21 ) THEN + 9 * - 26 END + - CAST( - 94 + MIN( - 58 ) AS DECIMAL ) * - 85 ) ) AS SIGNED ) THEN NULL WHEN ( 38 ) THEN AVG ( 96 ) + COUNT( * ) * 56 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3060
SELECT CASE 19 WHEN - CASE CAST ( NULL AS INTEGER ) WHEN + CAST ( NULL AS INTEGER ) * + 30 THEN - + 61 WHEN - 56 THEN NULL ELSE NULL END THEN NULL WHEN - - CAST ( NULLIF ( - + 82, 72 + ( CASE - ( 61 ) WHEN 80 * COUNT ( * ) THEN NULL WHEN + 72 + + COUNT ( * ) / + 32 THEN NULL WHEN + 86 * MIN ( 0 * 21 ) THEN + 9 * - 26 END + - CAST ( - 94 + MIN ( - 58 ) AS REAL ) * - 85 ) ) AS INTEGER ) THEN NULL WHEN ( 38 ) THEN AVG ( 96 ) + COUNT ( * ) * 56 END AS col0
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3062
SELECT - 73 col2, 45 AS col2, CAST( NULL AS SIGNED )
----
-73
45
NULL

skipif mysql # not compatible
query III rowsort label-3062
SELECT - 73 col2, 45 AS col2, CAST ( NULL AS INTEGER )
----
-73
45
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3063
SELECT 13 + - ( + MAX( ALL 4 ) ) * - + COALESCE ( ( + 18 ), + + 61 + - + 65 + + 32 * - - COALESCE ( CAST( NULL AS SIGNED ), - 67 - 63, + CASE + CASE 69 WHEN - 87 THEN - CAST( NULL AS SIGNED ) + + 73 WHEN COUNT( * ) THEN 76 - - 40 WHEN - 50 THEN NULL ELSE NULL END WHEN CAST( NULL AS SIGNED ) * 92 THEN 21 DIV 47 + 43 WHEN 71 THEN 23 END ) * 72 ) * - 95 col2
----
-6827

skipif mysql # not compatible
query I rowsort label-3063
SELECT 13 + - ( + MAX ( ALL 4 ) ) * - + COALESCE ( ( + 18 ), + + 61 + - + 65 + + 32 * - - COALESCE ( CAST ( NULL AS INTEGER ), - 67 - 63, + CASE + CASE 69 WHEN - 87 THEN - CAST ( NULL AS INTEGER ) + + 73 WHEN COUNT ( * ) THEN 76 - - 40 WHEN - 50 THEN NULL ELSE NULL END WHEN CAST ( NULL AS INTEGER ) * 92 THEN 21 / 47 + 43 WHEN 71 THEN 23 END ) * 72 ) * - 95 col2
----
-6827

onlyif mysql # aggregate syntax: 
query I rowsort label-3064
SELECT ALL + + 74 + - SUM( ALL - 80 )
----
154

skipif mysql # not compatible
query I rowsort label-3064
SELECT ALL + + 74 + - SUM ( ALL - 80 )
----
154

query I rowsort
SELECT ALL - 17 + - 63 + + - 47
----
-127

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3066
SELECT - 34 AS col2, 52 * + 99 + - + CAST( 41 AS SIGNED ) AS col1
----
-34
5107

skipif mysql # not compatible
query II rowsort label-3066
SELECT - 34 AS col2, 52 * + 99 + - + CAST ( 41 AS INTEGER ) AS col1
----
-34
5107

query I rowsort
SELECT - 71 * 38
----
-2698

query I rowsort
SELECT ALL + - 99 * + 41 AS col2
----
-4059

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-3070
SELECT + 35 AS col0, 35 DIV - 8 AS col2
----
35
-4

skipif mysql # not compatible
query II rowsort label-3070
SELECT + 35 AS col0, 35 / - 8 AS col2
----
35
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-3071
SELECT + MAX( + 57 ) AS col0
----
57

skipif mysql # not compatible
query I rowsort label-3071
SELECT + MAX ( + 57 ) AS col0
----
57

onlyif mysql # aggregate syntax: 
query II rowsort label-3072
SELECT ALL - - 86 - - COUNT( * ), 53 * + 15 + + 11 AS col0
----
87
806

skipif mysql # not compatible
query II rowsort label-3072
SELECT ALL - - 86 - - COUNT ( * ), 53 * + 15 + + 11 AS col0
----
87
806

query I rowsort
SELECT DISTINCT - 24 * - + 64 + + - 93 AS col0
----
1443

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3074
SELECT ALL - 0 * + - CASE + + 71 WHEN 73 THEN - 70 * + 88 + - 14 DIV - COUNT( * ) * + 7 * - SUM( + + 8 ) - CAST( NULL AS SIGNED ) WHEN 70 + + 41 THEN + 74 ELSE 48 * 4 + + 54 * 77 END
----
0

skipif mysql # not compatible
query I rowsort label-3074
SELECT ALL - 0 * + - CASE + + 71 WHEN 73 THEN - 70 * + 88 + - 14 / - COUNT ( * ) * + 7 * - SUM ( + + 8 ) - CAST ( NULL AS INTEGER ) WHEN 70 + + 41 THEN + 74 ELSE 48 * 4 + + 54 * 77 END
----
0

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

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

query I rowsort
SELECT NULLIF ( 25, 51 ) AS col1
----
25

query I rowsort
SELECT - NULLIF ( - 82, - + 65 ) * 7 * + 97
----
55678

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3078
SELECT + 53 DIV SUM( + 19 ) - + 29 AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-3078
SELECT + 53 / SUM ( + 19 ) - + 29 AS col1
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-3079
SELECT NULLIF ( - 6, CASE + 37 WHEN - 21 - + COUNT( * ) + COALESCE ( + - 6, 50, 66 * - 67 + - ( - 1 ) ) - 10 THEN NULL ELSE CASE 24 WHEN 32 * - 37 THEN 9 WHEN 69 * + COUNT( * ) THEN NULL END + - 86 END )
----
-6

skipif mysql # not compatible
query I rowsort label-3079
SELECT NULLIF ( - 6, CASE + 37 WHEN - 21 - + COUNT ( * ) + COALESCE ( + - 6, 50, 66 * - 67 + - ( - 1 ) ) - 10 THEN NULL ELSE CASE 24 WHEN 32 * - 37 THEN 9 WHEN 69 * + COUNT ( * ) THEN NULL END + - 86 END )
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-3080
SELECT ALL MAX( ALL + ( + 8 ) ) * - 70
----
-560

skipif mysql # not compatible
query I rowsort label-3080
SELECT ALL MAX ( ALL + ( + 8 ) ) * - 70
----
-560

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3081
SELECT COALESCE ( + 64, - COUNT( * ), NULLIF ( - + 74, + 57 ) * 44 DIV - 72 + - 59 )
----
64

skipif mysql # not compatible
query I rowsort label-3081
SELECT COALESCE ( + 64, - COUNT ( * ), NULLIF ( - + 74, + 57 ) * 44 / - 72 + - 59 )
----
64

onlyif mysql # DIV for integer division: 
query I rowsort label-3082
SELECT DISTINCT + 56 DIV COALESCE ( + + 58, 14, 51 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3082
SELECT DISTINCT + 56 / COALESCE ( + + 58, 14, 51 ) AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3083
SELECT ALL + ( + 82 ) * + 5 + - - 40 DIV + - 57 AS col0, COUNT( * ) AS col1
----
410
1

skipif mysql # not compatible
query II rowsort label-3083
SELECT ALL + ( + 82 ) * + 5 + - - 40 / + - 57 AS col0, COUNT ( * ) AS col1
----
410
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3084
SELECT DISTINCT CAST( + 7 AS SIGNED ) * + 22 / + CAST( NULL AS SIGNED ) + 17 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3084
SELECT DISTINCT CAST ( + 7 AS INTEGER ) * + 22 / + CAST ( NULL AS INTEGER ) + 17 AS col2
----
NULL

query I rowsort
SELECT ALL - 10 * - 48 + - 13 - 46
----
421

onlyif mysql # DIV for integer division: 
query I rowsort label-3086
SELECT + 91 DIV + 59 col1
----
1

skipif mysql # not compatible
query I rowsort label-3086
SELECT + 91 / + 59 col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3087
SELECT - 51 * - COUNT( ALL - CASE + 80 WHEN - 78 * - 8 + + 22 + - 3 * + 8 * 97 + - CAST( NULL AS SIGNED ) * + 54 THEN NULL ELSE + 50 END ) + + COUNT( * )
----
52

skipif mysql # not compatible
query I rowsort label-3087
SELECT - 51 * - COUNT ( ALL - CASE + 80 WHEN - 78 * - 8 + + 22 + - 3 * + 8 * 97 + - CAST ( NULL AS INTEGER ) * + 54 THEN NULL ELSE + 50 END ) + + COUNT ( * )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-3088
SELECT + + 93 + MIN( DISTINCT + 46 ) * - 20
----
-827

skipif mysql # not compatible
query I rowsort label-3088
SELECT + + 93 + MIN ( DISTINCT + 46 ) * - 20
----
-827

query I rowsort
SELECT + 92 * - 52
----
-4784

onlyif mysql # DIV for integer division: 
query I rowsort label-3090
SELECT ALL - 71 DIV 70
----
-1

skipif mysql # not compatible
query I rowsort label-3090
SELECT ALL - 71 / 70
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-3091
SELECT DISTINCT SUM( - 75 ) AS col2, + 41 AS col2
----
-75
41

skipif mysql # not compatible
query II rowsort label-3091
SELECT DISTINCT SUM ( - 75 ) AS col2, + 41 AS col2
----
-75
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3092
SELECT - COALESCE ( + 80, + 42 * + 98 + 68 ), 72 + - COUNT( * ) DIV + 36 AS col2
----
-80
72

skipif mysql # not compatible
query II rowsort label-3092
SELECT - COALESCE ( + 80, + 42 * + 98 + 68 ), 72 + - COUNT ( * ) / + 36 AS col2
----
-80
72

query I rowsort
SELECT ALL 2 - + - 99 * - 24 + 63 * - 48 AS col2
----
-5398

query I rowsort
SELECT + ( - 59 ) * + 19 * + + 31 * + 11
----
-382261

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3095
SELECT - CAST( + + MAX( ALL 8 ) AS SIGNED ) AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-3095
SELECT - CAST ( + + MAX ( ALL 8 ) AS INTEGER ) AS col1
----
-8

query I rowsort
SELECT ALL + 86 * - + 74
----
-6364

onlyif mysql # DIV for integer division: 
query I rowsort label-3097
SELECT ALL + 32 DIV + 2 AS col1
----
16

skipif mysql # not compatible
query I rowsort label-3097
SELECT ALL + 32 / + 2 AS col1
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3098
SELECT - CAST( 98 AS SIGNED ) + + + ( 5 ) AS col1
----
-93

skipif mysql # not compatible
query I rowsort label-3098
SELECT - CAST ( 98 AS INTEGER ) + + + ( 5 ) AS col1
----
-93

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3100
SELECT + COUNT( * ) + - 51 + - SUM( + CAST( NULL AS SIGNED ) ) + 93 * 34
----
NULL

skipif mysql # not compatible
query I rowsort label-3100
SELECT + COUNT ( * ) + - 51 + - SUM ( + CAST ( NULL AS INTEGER ) ) + 93 * 34
----
NULL

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

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

query II rowsort
SELECT - 5 * + 80 * - 63 AS col2, 1 AS col1
----
25200
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3103
SELECT 60 DIV + 92 - + 95 * - + 53 - + 30
----
5005

skipif mysql # not compatible
query I rowsort label-3103
SELECT 60 / + 92 - + 95 * - + 53 - + 30
----
5005

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3104
SELECT - 82 * - CAST( NULL AS SIGNED ) * + 13 AS col2, 45
----
NULL
45

skipif mysql # not compatible
query II rowsort label-3104
SELECT - 82 * - CAST ( NULL AS INTEGER ) * + 13 AS col2, 45
----
NULL
45

onlyif mysql # DIV for integer division: 
query I rowsort label-3105
SELECT ALL 58 DIV 36 col0
----
1

skipif mysql # not compatible
query I rowsort label-3105
SELECT ALL 58 / 36 col0
----
1

query II rowsort
SELECT ALL + 56 AS col2, - 19 * - 56 + 54 AS col1
----
56
1118

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3108
SELECT 34 * + 93 + COUNT( DISTINCT - 12 ) + 51 + 72 - + 38 + + COALESCE ( + 39, + 98 ) * COUNT( * ) * + - 14 * + CAST( - 33 AS SIGNED ) * - 82 DIV COUNT( * )
----
-1474228

skipif mysql # not compatible
query I rowsort label-3108
SELECT 34 * + 93 + COUNT ( DISTINCT - 12 ) + 51 + 72 - + 38 + + COALESCE ( + 39, + 98 ) * COUNT ( * ) * + - 14 * + CAST ( - 33 AS INTEGER ) * - 82 / COUNT ( * )
----
-1474228

onlyif mysql # aggregate syntax: 
query I rowsort label-3109
SELECT + ( - COUNT( * ) ) * - 21 - + - 57 * - + 53 AS col1
----
-3000

skipif mysql # not compatible
query I rowsort label-3109
SELECT + ( - COUNT ( * ) ) * - 21 - + - 57 * - + 53 AS col1
----
-3000

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

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

skipif mysql # not compatible
query I rowsort label-3111
SELECT + MAX ( - 99 )
----
-99

query I rowsort
SELECT DISTINCT + ( 48 ) AS col1
----
48

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3114
SELECT ALL + CAST( - + NULLIF ( - + ( 87 ), - 49 ) AS SIGNED ) AS col1
----
87

skipif mysql # not compatible
query I rowsort label-3114
SELECT ALL + CAST ( - + NULLIF ( - + ( 87 ), - 49 ) AS INTEGER ) AS col1
----
87

query II rowsort
SELECT + - 97 AS col1, + 89 + - ( - ( - 41 ) )
----
-97
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3116
SELECT ALL + 21 * CASE - 43 WHEN + 33 - + 31 + - 70 + + CASE - 84 WHEN + 91 / 76 + - - 3 / - - 72 * - 55 THEN + 70 WHEN - ( 56 ) * 21 - MAX( ALL - 62 ) THEN NULL END THEN 83 WHEN MIN( ALL 61 ) THEN NULL WHEN - COUNT( * ) + CAST( NULL AS SIGNED ) THEN - COALESCE ( + CASE 84 WHEN CAST( 56 AS SIGNED ) THEN + 1 WHEN 26 THEN + 83 END, COUNT( * ) * ( + 8 * + 46 ) ) ELSE NULL END + 75
----
NULL

skipif mysql # not compatible
query I rowsort label-3116
SELECT ALL + 21 * CASE - 43 WHEN + 33 - + 31 + - 70 + + CASE - 84 WHEN + 91 / 76 + - - 3 / - - 72 * - 55 THEN + 70 WHEN - ( 56 ) * 21 - MAX ( ALL - 62 ) THEN NULL END THEN 83 WHEN MIN ( ALL 61 ) THEN NULL WHEN - COUNT ( * ) + CAST ( NULL AS INTEGER ) THEN - COALESCE ( + CASE 84 WHEN CAST ( 56 AS INTEGER ) THEN + 1 WHEN 26 THEN + 83 END, COUNT ( * ) * ( + 8 * + 46 ) ) ELSE NULL END + 75
----
NULL

query II rowsort
SELECT DISTINCT + 53 * ( 1 ) - - 74 AS col2, + 78 * - 56 * 20 * - 68
----
127
5940480

onlyif mysql # DIV for integer division: 
query I rowsort label-3118
SELECT ALL - + 33 DIV + - 73 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3118
SELECT ALL - + 33 / + - 73 AS col0
----
0

query I rowsort
SELECT - 90 * + 65 AS col2
----
-5850

query II rowsort
SELECT ALL + + 29, - 68 * - 48 col2
----
29
3264

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

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

query I rowsort
SELECT 53 * + 69 AS col0
----
3657

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3124
SELECT ALL - NULLIF ( + 33, + + COUNT( * ) ) - + + 34 AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-3124
SELECT ALL - NULLIF ( + 33, + + COUNT ( * ) ) - + + 34 AS col1
----
-67

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

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

query I rowsort
SELECT ALL 36 - + + 47 AS col2
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3127
SELECT DISTINCT - COUNT( ALL - - CAST( NULL AS SIGNED ) ) * 91 * 86 - - 73 col1
----
73

skipif mysql # not compatible
query I rowsort label-3127
SELECT DISTINCT - COUNT ( ALL - - CAST ( NULL AS INTEGER ) ) * 91 * 86 - - 73 col1
----
73

query I rowsort
SELECT + 28 + + - 81 AS col0
----
-53

query I rowsort
SELECT ALL 11 + - 83 AS col2
----
-72

query I rowsort
SELECT ( + - 11 ) + - 10
----
-21

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3132
SELECT DISTINCT MIN( DISTINCT - - 88 ) + + CASE 35 WHEN ( + 36 ) + + + 82 + - - NULLIF ( 9, + AVG ( - 34 ) ) * - 73 + + COUNT( * ) * 94 THEN ( + 60 ) * NULLIF ( MIN( ( 80 ) ), 45 ) WHEN 81 * + COUNT( * ) THEN - 14 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3132
SELECT DISTINCT MIN ( DISTINCT - - 88 ) + + CASE 35 WHEN ( + 36 ) + + + 82 + - - NULLIF ( 9, + AVG ( - 34 ) ) * - 73 + + COUNT ( * ) * 94 THEN ( + 60 ) * NULLIF ( MIN ( ( 80 ) ), 45 ) WHEN 81 * + COUNT ( * ) THEN - 14 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3133
SELECT DISTINCT 10 + COALESCE ( 9, - 43 ), - COUNT( * ) AS col1
----
19
-1

skipif mysql # not compatible
query II rowsort label-3133
SELECT DISTINCT 10 + COALESCE ( 9, - 43 ), - COUNT ( * ) AS col1
----
19
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-3134
SELECT ALL COUNT( * ) + - 61 * + 29 * 93 AS col1, 46
----
-164516
46

skipif mysql # not compatible
query II rowsort label-3134
SELECT ALL COUNT ( * ) + - 61 * + 29 * 93 AS col1, 46
----
-164516
46

onlyif mysql # DIV for integer division: 
query II rowsort label-3135
SELECT 20 DIV + 7, 50 col2
----
2
50

skipif mysql # not compatible
query II rowsort label-3135
SELECT 20 / + 7, 50 col2
----
2
50

onlyif mysql # aggregate syntax: 
query I rowsort label-3136
SELECT 66 * - COUNT( * ) - 17 col2
----
-83

skipif mysql # not compatible
query I rowsort label-3136
SELECT 66 * - COUNT ( * ) - 17 col2
----
-83

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3138
SELECT - 6 / + 5 * + CAST( NULL AS SIGNED ) - NULLIF ( + 98, + AVG ( ALL - 16 ) + 55 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3138
SELECT - 6 / + 5 * + CAST ( NULL AS INTEGER ) - NULLIF ( + 98, + AVG ( ALL - 16 ) + 55 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3139
SELECT COUNT( * ) DIV - ( + COALESCE ( + 49, + + 72 ) )
----
0

skipif mysql # not compatible
query I rowsort label-3139
SELECT COUNT ( * ) / - ( + COALESCE ( + 49, + + 72 ) )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3140
SELECT ALL - CAST( + 90 AS SIGNED ) * 16
----
-1440

skipif mysql # not compatible
query I rowsort label-3140
SELECT ALL - CAST ( + 90 AS INTEGER ) * 16
----
-1440

query I rowsort
SELECT DISTINCT 3 * + 25
----
75

query I rowsort
SELECT CASE + + 88 WHEN + 33 THEN NULL WHEN + ( - + 27 ) THEN 29 WHEN - + 43 - + - 54 / - 93 - - + 9 THEN NULL WHEN + 95 THEN - 87 END
----
NULL

query I rowsort
SELECT ALL 35 * + + 22 AS col2
----
770

query I rowsort
SELECT ALL - + 18 col2
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3145
SELECT - - 45 * - 77 + + 21 + COALESCE ( - COUNT( * ), ( 40 ) ) * - - 49 DIV 52 * COUNT( + ( - CAST( - 98 AS SIGNED ) ) ) DIV + - 40 AS col2
----
-3444

skipif mysql # not compatible
query I rowsort label-3145
SELECT - - 45 * - 77 + + 21 + COALESCE ( - COUNT ( * ), ( 40 ) ) * - - 49 / 52 * COUNT ( + ( - CAST ( - 98 AS INTEGER ) ) ) / + - 40 AS col2
----
-3444

query I rowsort
SELECT 11 * - 11 AS col0
----
-121

onlyif mysql # aggregate syntax: 
query II rowsort label-3147
SELECT - 67 + - SUM( DISTINCT - ( - 7 ) ) AS col1, - 91 * + 10 * - 33
----
-74
30030

skipif mysql # not compatible
query II rowsort label-3147
SELECT - 67 + - SUM ( DISTINCT - ( - 7 ) ) AS col1, - 91 * + 10 * - 33
----
-74
30030

query I rowsort
SELECT 60 + 42 * + 69
----
2958

onlyif mysql # aggregate syntax: 
query I rowsort label-3149
SELECT COUNT( DISTINCT + - COALESCE ( + - 86, - 74 ) ) * - 91 * - + 76
----
6916

skipif mysql # not compatible
query I rowsort label-3149
SELECT COUNT ( DISTINCT + - COALESCE ( + - 86, - 74 ) ) * - 91 * - + 76
----
6916

query I rowsort
SELECT ALL - - 13 * 18
----
234

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

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

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

skipif mysql # not compatible
query I rowsort label-3152
SELECT ALL + - 0 + CAST ( 32 AS INTEGER )
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3153
SELECT 66 + + COUNT( * ) + 89
----
156

skipif mysql # not compatible
query I rowsort label-3153
SELECT 66 + + COUNT ( * ) + 89
----
156

onlyif mysql # aggregate syntax: 
query II rowsort label-3154
SELECT DISTINCT 5 + COUNT( * ) * + NULLIF ( 8, - 9 - + - MAX( 11 ) + 45 - - ( + 46 ) + 65 * 39 / 47 ), ( 88 ) AS col0
----
13
88

skipif mysql # not compatible
query II rowsort label-3154
SELECT DISTINCT 5 + COUNT ( * ) * + NULLIF ( 8, - 9 - + - MAX ( 11 ) + 45 - - ( + 46 ) + 65 * 39 / 47 ), ( 88 ) AS col0
----
13
88

query II rowsort
SELECT ALL 99 AS col1, + 85
----
99
85

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

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

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

query I rowsort
SELECT 11 + - - ( - 92 ) AS col0
----
-81

query II rowsort
SELECT 37 AS col1, 18
----
37
18

onlyif mysql # aggregate syntax: 
query I rowsort label-3160
SELECT MAX( - 62 ) + + ( + 68 )
----
6

skipif mysql # not compatible
query I rowsort label-3160
SELECT MAX ( - 62 ) + + ( + 68 )
----
6

query I rowsort
SELECT 70 * 30 + + - 20 AS col2
----
2080

query I rowsort
SELECT 36 - + 36 + 32 * - 28
----
-896

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3163
SELECT - 39 DIV + MIN( + + 13 ) + 23 + + - 62 + - 61 * 62 * 39 * 48
----
-7079946

skipif mysql # not compatible
query I rowsort label-3163
SELECT - 39 / + MIN ( + + 13 ) + 23 + + - 62 + - 61 * 62 * 39 * 48
----
-7079946

onlyif mysql # aggregate syntax: 
query I rowsort label-3164
SELECT ALL + 12 * + + MIN( ALL - 91 ) - COUNT( * )
----
-1093

skipif mysql # not compatible
query I rowsort label-3164
SELECT ALL + 12 * + + MIN ( ALL - 91 ) - COUNT ( * )
----
-1093

onlyif mysql # aggregate syntax: 
query II rowsort label-3165
SELECT ALL - 84 AS col0, SUM( ALL - - 66 ) AS col1
----
-84
66

skipif mysql # not compatible
query II rowsort label-3165
SELECT ALL - 84 AS col0, SUM ( ALL - - 66 ) AS col1
----
-84
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3166
SELECT MAX( 24 ) AS col1
----
24

skipif mysql # not compatible
query I rowsort label-3166
SELECT MAX ( 24 ) AS col1
----
24

query I rowsort
SELECT ALL 62 * - 5
----
-310

onlyif mysql # aggregate syntax: 
query I rowsort label-3168
SELECT 26 * - - COALESCE ( + 69, COUNT( * ), + NULLIF ( + - 44, + CASE - + 62 WHEN + 28 * 97 THEN - - 38 * 42 WHEN - - 9 * + 70 * - 43 THEN NULL END ) ) AS col1
----
1794

skipif mysql # not compatible
query I rowsort label-3168
SELECT 26 * - - COALESCE ( + 69, COUNT ( * ), + NULLIF ( + - 44, + CASE - + 62 WHEN + 28 * 97 THEN - - 38 * 42 WHEN - - 9 * + 70 * - 43 THEN NULL END ) ) AS col1
----
1794

onlyif mysql # aggregate syntax: 
query I rowsort label-3169
SELECT + NULLIF ( COUNT( * ), 32 ) * + 56 + + 26 AS col2
----
82

skipif mysql # not compatible
query I rowsort label-3169
SELECT + NULLIF ( COUNT ( * ), 32 ) * + 56 + + 26 AS col2
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-3170
SELECT - 8 DIV - ( - 97 )
----
0

skipif mysql # not compatible
query I rowsort label-3170
SELECT - 8 / - ( - 97 )
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3171
SELECT DISTINCT - 31 DIV CAST( 40 AS SIGNED ) * 2 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3171
SELECT DISTINCT - 31 / CAST ( 40 AS INTEGER ) * 2 AS col2
----
0

query I rowsort
SELECT ALL - + ( - 91 ) * + 60 + - 90
----
5370

query II rowsort
SELECT + + 62 * - 66 * 28 AS col0, + 89
----
-114576
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3174
SELECT DISTINCT + CAST( + - 94 AS SIGNED ) col0
----
-94

skipif mysql # not compatible
query I rowsort label-3174
SELECT DISTINCT + CAST ( + - 94 AS INTEGER ) col0
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-3175
SELECT ALL - 98 * - + COUNT( * ) + + - 50 + + 69 AS col1
----
117

skipif mysql # not compatible
query I rowsort label-3175
SELECT ALL - 98 * - + COUNT ( * ) + + - 50 + + 69 AS col1
----
117

query I rowsort
SELECT + + 59 col0
----
59

query I rowsort
SELECT ALL CASE - 17 WHEN - 43 * - 68 THEN + 61 ELSE NULL END * ( - 77 ) * - 88 + + + 51 col1
----
NULL

query II rowsort
SELECT DISTINCT + COALESCE ( 68, - 43 ) AS col0, 73
----
68
73

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3180
SELECT ALL - COUNT( * ) * - + CAST( NULL AS SIGNED ) / - 43 * + CAST( 78 AS SIGNED ) * - 7 * + + MIN( DISTINCT + - 42 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3180
SELECT ALL - COUNT ( * ) * - + CAST ( NULL AS INTEGER ) / - 43 * + CAST ( 78 AS INTEGER ) * - 7 * + + MIN ( DISTINCT + - 42 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3181
SELECT ALL + 83 + COUNT( DISTINCT - 50 ) * + 97, 90 * - MAX( ALL CAST( + 81 AS SIGNED ) ) AS col0
----
180
-7290

skipif mysql # not compatible
query II rowsort label-3181
SELECT ALL + 83 + COUNT ( DISTINCT - 50 ) * + 97, 90 * - MAX ( ALL CAST ( + 81 AS INTEGER ) ) AS col0
----
180
-7290

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

skipif mysql # not compatible
query I rowsort label-3182
SELECT ALL - COUNT ( * ) + + 32 AS col0
----
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3183
SELECT ALL + 83 + - - 55 col1, 64 * ( COUNT( * ) ) DIV + + 4 - + - 19 - - 6 + + 3 AS col0
----
138
44

skipif mysql # not compatible
query II rowsort label-3183
SELECT ALL + 83 + - - 55 col1, 64 * ( COUNT ( * ) ) / + + 4 - + - 19 - - 6 + + 3 AS col0
----
138
44

query II rowsort
SELECT - 23 * 84 AS col2, ( 63 )
----
-1932
63

query I rowsort
SELECT ALL + 11 * + 5
----
55

query II rowsort
SELECT - 40 + - + 68 AS col2, + 37 AS col2
----
-108
37

onlyif mysql # aggregate syntax: 
query II rowsort label-3187
SELECT - MAX( ALL 19 ) AS col2, 51
----
-19
51

skipif mysql # not compatible
query II rowsort label-3187
SELECT - MAX ( ALL 19 ) AS col2, 51
----
-19
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3188
SELECT DISTINCT - COUNT( * ) - - COUNT( DISTINCT - 95 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3188
SELECT DISTINCT - COUNT ( * ) - - COUNT ( DISTINCT - 95 ) AS col0
----
0

query I rowsort
SELECT - 63 + + 58
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3190
SELECT ALL - COUNT( * ) * + - COALESCE ( - + 85, 5 + - 67, - 20 ) DIV + + 99 * + 42 * - + 88 + + + 29 AS col2
----
29

skipif mysql # not compatible
query I rowsort label-3190
SELECT ALL - COUNT ( * ) * + - COALESCE ( - + 85, 5 + - 67, - 20 ) / + + 99 * + 42 * - + 88 + + + 29 AS col2
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3191
SELECT ALL ( - 16 ) DIV + SUM( - 77 )
----
0

skipif mysql # not compatible
query I rowsort label-3191
SELECT ALL ( - 16 ) / + SUM ( - 77 )
----
0

query I rowsort
SELECT - 57 * 34
----
-1938

query I rowsort
SELECT DISTINCT - 21 - + + 52 AS col0
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3194
SELECT DISTINCT 72 / + 17 - - 52 + + - CAST( + - CASE - 14 WHEN + COALESCE ( 84, 13 ) THEN - AVG ( 77 ) * 30 END AS SIGNED ) * 40
----
NULL

skipif mysql # not compatible
query I rowsort label-3194
SELECT DISTINCT 72 / + 17 - - 52 + + - CAST ( + - CASE - 14 WHEN + COALESCE ( 84, 13 ) THEN - AVG ( 77 ) * 30 END AS INTEGER ) * 40
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3196
SELECT - 21 * 96 DIV 96
----
-21

skipif mysql # not compatible
query I rowsort label-3196
SELECT - 21 * 96 / 96
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-3197
SELECT DISTINCT + NULLIF ( + 55, + MIN( - 91 ) * + 68 + - COUNT( ( + 42 ) ) )
----
55

skipif mysql # not compatible
query I rowsort label-3197
SELECT DISTINCT + NULLIF ( + 55, + MIN ( - 91 ) * + 68 + - COUNT ( ( + 42 ) ) )
----
55

onlyif mysql # aggregate syntax: 
query II rowsort label-3198
SELECT ALL + - 39 AS col2, 1 * - 54 * - CASE - 10 WHEN + 97 THEN - + 34 * ( + 66 ) + 73 * - - COUNT( * ) WHEN + 70 THEN - 24 ELSE NULL END
----
-39
NULL

skipif mysql # not compatible
query II rowsort label-3198
SELECT ALL + - 39 AS col2, 1 * - 54 * - CASE - 10 WHEN + 97 THEN - + 34 * ( + 66 ) + 73 * - - COUNT ( * ) WHEN + 70 THEN - 24 ELSE NULL END
----
-39
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3199
SELECT 57 * CASE - + ( - 36 ) WHEN + + 89 THEN + 97 + - + 19 WHEN COUNT( * ) THEN 40 END + - 54 - + 20 - - + 68 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3199
SELECT 57 * CASE - + ( - 36 ) WHEN + + 89 THEN + 97 + - + 19 WHEN COUNT ( * ) THEN 40 END + - 54 - + 20 - - + 68 AS col0
----
NULL

query I rowsort
SELECT + - 52 * - + 49 AS col1
----
2548

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3201
SELECT - 17 / + - 99 + + MIN( ALL + 66 ) * 64 + - 62 - - 63 + - 81 * + + 20 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3201
SELECT - 17 / + - 99 + + MIN ( ALL + 66 ) * 64 + - 62 - - 63 + - 81 * + + 20 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + ( - - 68 ) AS col0
----
68

query II rowsort
SELECT DISTINCT + 79, 87 col1
----
79
87

query I rowsort
SELECT ALL + 2 * - 87 - - - 57 AS col1
----
-231

onlyif mysql # aggregate syntax: 
query I rowsort label-3205
SELECT + COUNT( * ) * - 63 * 67 + + - 84
----
-4305

skipif mysql # not compatible
query I rowsort label-3205
SELECT + COUNT ( * ) * - 63 * 67 + + - 84
----
-4305

onlyif mysql # aggregate syntax: 
query I rowsort label-3206
SELECT + COUNT( ALL 26 )
----
1

skipif mysql # not compatible
query I rowsort label-3206
SELECT + COUNT ( ALL 26 )
----
1

query I rowsort
SELECT ALL + NULLIF ( - + 20, + ( - 11 ) * - + ( - - 64 ) ) AS col2
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-3208
SELECT + - 58 * - - COUNT( * ) - + 68 * - + 50
----
3342

skipif mysql # not compatible
query I rowsort label-3208
SELECT + - 58 * - - COUNT ( * ) - + 68 * - + 50
----
3342

onlyif mysql # aggregate syntax: 
query I rowsort label-3209
SELECT ALL 38 * MAX( DISTINCT + 13 ) * + - 75 + - SUM( + + 13 ) AS col0
----
-37063

skipif mysql # not compatible
query I rowsort label-3209
SELECT ALL 38 * MAX ( DISTINCT + 13 ) * + - 75 + - SUM ( + + 13 ) AS col0
----
-37063

query I rowsort
SELECT + + 64 * + - 2 * + 54 - + 40 * 38
----
-8432

query I rowsort
SELECT - ( 63 ) + + 15
----
-48

query I rowsort
SELECT + 86 - + - 29 - + 53
----
62

query I rowsort
SELECT + 99 * + - 26 * 84 * - 22 AS col0
----
4756752

onlyif mysql # aggregate syntax: 
query II rowsort label-3214
SELECT ALL ( - - 60 ) * + + 8 + - - 69 - 33 * 30 AS col1, COUNT( * ) * + 61
----
-441
61

skipif mysql # not compatible
query II rowsort label-3214
SELECT ALL ( - - 60 ) * + + 8 + - - 69 - 33 * 30 AS col1, COUNT ( * ) * + 61
----
-441
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3215
SELECT + - COUNT( * ) * COUNT( * ) * - CAST( NULL AS SIGNED ) + + - ( COUNT( * ) ) + - - ( - 94 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3215
SELECT + - COUNT ( * ) * COUNT ( * ) * - CAST ( NULL AS INTEGER ) + + - ( COUNT ( * ) ) + - - ( - 94 ) col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3216
SELECT 6 * - 90 + 32 + - 14 + + 70 - + 50 DIV + 1 + 74 AS col1
----
-428

skipif mysql # not compatible
query I rowsort label-3216
SELECT 6 * - 90 + 32 + - 14 + + 70 - + 50 / + 1 + 74 AS col1
----
-428

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3217
SELECT DISTINCT - 62 * + - 80 + + COUNT( * ) DIV ( - - 17 ) AS col1
----
4960

skipif mysql # not compatible
query I rowsort label-3217
SELECT DISTINCT - 62 * + - 80 + + COUNT ( * ) / ( - - 17 ) AS col1
----
4960

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3218
SELECT + - CAST( CASE 40 WHEN - MAX( DISTINCT - CASE CAST( - - 17 AS SIGNED ) WHEN + 78 + + 13 THEN 19 END ) * + 81 - + - 86 + 42 * - 87 / + + 8 * - NULLIF ( ( + 67 ), 87 ) + ( - 45 ) THEN + ( + 63 ) WHEN ( 50 ) + AVG ( + 36 ) THEN NULL ELSE - 9 END AS SIGNED ) + 21 AS col2
----
30

skipif mysql # not compatible
query I rowsort label-3218
SELECT + - CAST ( CASE 40 WHEN - MAX ( DISTINCT - CASE CAST ( - - 17 AS INTEGER ) WHEN + 78 + + 13 THEN 19 END ) * + 81 - + - 86 + 42 * - 87 / + + 8 * - NULLIF ( ( + 67 ), 87 ) + ( - 45 ) THEN + ( + 63 ) WHEN ( 50 ) + AVG ( + 36 ) THEN NULL ELSE - 9 END AS INTEGER ) + 21 AS col2
----
30

query I rowsort
SELECT ALL 83 * 52 * + 29 + + 60 + 39 col0
----
125263

query I rowsort
SELECT + 23 + + 3
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3221
SELECT ALL COUNT( * ) * - - 10 * - - COUNT( * ) AS col1
----
10

skipif mysql # not compatible
query I rowsort label-3221
SELECT ALL COUNT ( * ) * - - 10 * - - COUNT ( * ) AS col1
----
10

query I rowsort
SELECT - 99 + 50 AS col0
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-3223
SELECT MIN( ALL + - 58 )
----
-58

skipif mysql # not compatible
query I rowsort label-3223
SELECT MIN ( ALL + - 58 )
----
-58

query I rowsort
SELECT ALL 81 - + 8 AS col0
----
73

query I rowsort
SELECT + 5 + + - 86 - 62 AS col2
----
-143

onlyif mysql # aggregate syntax: 
query I rowsort label-3226
SELECT - 69 * MIN( - - 4 )
----
-276

skipif mysql # not compatible
query I rowsort label-3226
SELECT - 69 * MIN ( - - 4 )
----
-276

query II rowsort
SELECT ALL ( + - 16 ), 11 + - 80 AS col0
----
-16
-69

query II rowsort
SELECT DISTINCT + 62 * + 21 col1, 32 * - 87
----
1302
-2784

onlyif mysql # aggregate syntax: 
query I rowsort label-3229
SELECT DISTINCT MIN( + - 9 )
----
-9

skipif mysql # not compatible
query I rowsort label-3229
SELECT DISTINCT MIN ( + - 9 )
----
-9

query I rowsort
SELECT DISTINCT + 35 * + 92 AS col0
----
3220

query I rowsort
SELECT DISTINCT + ( + 62 ) * - + 81
----
-5022

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3232
SELECT 20 * - - COUNT( + - 5 ) DIV + 82 * + COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3232
SELECT 20 * - - COUNT ( + - 5 ) / + 82 * + COUNT ( * ) AS col2
----
0

query II rowsort
SELECT 26 + + 62 AS col2, 3 * - 9 AS col1
----
88
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-3234
SELECT 12 * - + MIN( ALL + + 65 ) + + + 56 * - + 84 AS col1
----
-5484

skipif mysql # not compatible
query I rowsort label-3234
SELECT 12 * - + MIN ( ALL + + 65 ) + + + 56 * - + 84 AS col1
----
-5484

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3235
SELECT 17 - - CAST( + 66 AS SIGNED )
----
83

skipif mysql # not compatible
query I rowsort label-3235
SELECT 17 - - CAST ( + 66 AS INTEGER )
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-3236
SELECT + 81 DIV + 18 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-3236
SELECT + 81 / + 18 AS col1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-3237
SELECT ALL - MIN( + 24 )
----
-24

skipif mysql # not compatible
query I rowsort label-3237
SELECT ALL - MIN ( + 24 )
----
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-3238
SELECT - 90 DIV - 64 + 39 * 70
----
2731

skipif mysql # not compatible
query I rowsort label-3238
SELECT - 90 / - 64 + 39 * 70
----
2731

onlyif mysql # aggregate syntax: 
query I rowsort label-3239
SELECT ALL + + MAX( ALL - + 38 ) * + + 75
----
-2850

skipif mysql # not compatible
query I rowsort label-3239
SELECT ALL + + MAX ( ALL - + 38 ) * + + 75
----
-2850

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3240
SELECT DISTINCT - + ( CASE + + SUM( ALL + COALESCE ( 87, + 71 + - + CAST( NULL AS SIGNED ) * - - ( - 73 ) + + 77, 96 + + - 8 + - - ( CAST( - - 72 AS SIGNED ) ) ) ) WHEN - COUNT( * ) THEN - 33 * 53 WHEN 62 * + ( 83 ) THEN NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-3240
SELECT DISTINCT - + ( CASE + + SUM ( ALL + COALESCE ( 87, + 71 + - + CAST ( NULL AS INTEGER ) * - - ( - 73 ) + + 77, 96 + + - 8 + - - ( CAST ( - - 72 AS INTEGER ) ) ) ) WHEN - COUNT ( * ) THEN - 33 * 53 WHEN 62 * + ( 83 ) THEN NULL END )
----
NULL

query I rowsort
SELECT 96 + - - 76 + + 63
----
235

query I rowsort
SELECT ALL - + 6 + 34
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3243
SELECT COUNT( * ) + + - 87 - ( - - 75 ) + + + 59 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3243
SELECT COUNT ( * ) + + - 87 - ( - - 75 ) + + + 59 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3244
SELECT DISTINCT - SUM( DISTINCT - 48 ) * + 66 * - + COUNT( * ) * - 91
----
288288

skipif mysql # not compatible
query I rowsort label-3244
SELECT DISTINCT - SUM ( DISTINCT - 48 ) * + 66 * - + COUNT ( * ) * - 91
----
288288

onlyif mysql # aggregate syntax: 
query I rowsort label-3245
SELECT 45 * COUNT( * ) * 30 AS col2
----
1350

skipif mysql # not compatible
query I rowsort label-3245
SELECT 45 * COUNT ( * ) * 30 AS col2
----
1350

onlyif mysql # aggregate syntax: 
query I rowsort label-3246
SELECT + + 3 * + + SUM( + 39 ) + 83 AS col2
----
200

skipif mysql # not compatible
query I rowsort label-3246
SELECT + + 3 * + + SUM ( + 39 ) + 83 AS col2
----
200

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3247
SELECT - 14 DIV + COUNT( * ) + - NULLIF ( - 53, ( 75 ) ) + 60 + - 50 + + - 92 + - + CASE + 64 WHEN + - 72 * + - NULLIF ( + 34, + 83 ) THEN - - 29 WHEN CASE + 72 WHEN 93 THEN 72 + ( + 31 ) DIV + 7 WHEN ( - 15 ) THEN NULL WHEN + 75 THEN NULL ELSE + 17 END * 10 THEN NULL WHEN + 13 DIV - 28 + CASE + 95 WHEN COALESCE ( 78, 28 * 38 + + 16 * + 57, - 94 * + 77 + NULLIF ( 26, 19 ) ) THEN - 75 ELSE 88 END THEN NULL ELSE - 27 DIV - ( + 18 ) END * + 85
----
-128

skipif mysql # not compatible
query I rowsort label-3247
SELECT - 14 / + COUNT ( * ) + - NULLIF ( - 53, ( 75 ) ) + 60 + - 50 + + - 92 + - + CASE + 64 WHEN + - 72 * + - NULLIF ( + 34, + 83 ) THEN - - 29 WHEN CASE + 72 WHEN 93 THEN 72 + ( + 31 ) / + 7 WHEN ( - 15 ) THEN NULL WHEN + 75 THEN NULL ELSE + 17 END * 10 THEN NULL WHEN + 13 / - 28 + CASE + 95 WHEN COALESCE ( 78, 28 * 38 + + 16 * + 57, - 94 * + 77 + NULLIF ( 26, 19 ) ) THEN - 75 ELSE 88 END THEN NULL ELSE - 27 / - ( + 18 ) END * + 85
----
-128

query I rowsort
SELECT ALL CASE + 77 WHEN + 87 THEN NULL ELSE + 53 END * + 38 AS col2
----
2014

query II rowsort
SELECT - 45 + - 58 AS col0, + 30
----
-103
30

query I rowsort
SELECT DISTINCT + 13 + - 44 * - 78 AS col2
----
3445

onlyif mysql # aggregate syntax: 
query I rowsort label-3251
SELECT ALL - 55 + CASE - 74 WHEN - 48 / - 7 + + - COUNT( * ) - - + 67 * + 92 THEN + + 82 * + 45 + + + 81 * + 36 WHEN - 55 / + 44 * + + ( - 53 ) + - - NULLIF ( 28, NULLIF ( + 17, + 37 ) ) + COALESCE ( SUM( DISTINCT + 14 ) + 84, + 21 ) THEN 67 * 72 + 55 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3251
SELECT ALL - 55 + CASE - 74 WHEN - 48 / - 7 + + - COUNT ( * ) - - + 67 * + 92 THEN + + 82 * + 45 + + + 81 * + 36 WHEN - 55 / + 44 * + + ( - 53 ) + - - NULLIF ( 28, NULLIF ( + 17, + 37 ) ) + COALESCE ( SUM ( DISTINCT + 14 ) + 84, + 21 ) THEN 67 * 72 + 55 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3252
SELECT DISTINCT + 97 * + + CAST( - 81 AS SIGNED ) + + ( - 71 ), 37 AS col1
----
-7928
37

skipif mysql # not compatible
query II rowsort label-3252
SELECT DISTINCT + 97 * + + CAST ( - 81 AS INTEGER ) + + ( - 71 ), 37 AS col1
----
-7928
37

onlyif mysql # aggregate syntax: 
query I rowsort label-3253
SELECT ALL COALESCE ( + 20, + - 48 ) + - COUNT( * ) AS col2
----
19

skipif mysql # not compatible
query I rowsort label-3253
SELECT ALL COALESCE ( + 20, + - 48 ) + - COUNT ( * ) AS col2
----
19

query I rowsort
SELECT 91 * + + 79
----
7189

query I rowsort
SELECT ALL + 64 * + ( 96 )
----
6144

query III rowsort
SELECT DISTINCT - 43 AS col2, 97 * 51 + + 67, 67 AS col1
----
-43
5014
67

query II rowsort
SELECT + 93 col1, 30
----
93
30

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3258
SELECT CASE - 49 WHEN - - 34 * 55 + 81 + + 33 THEN + 30 + + - 27 END * - 67 + - 3 + 20 + + 67 / - 28 + + - 6 * - 77 * - CAST( NULL AS DECIMAL ) + - - NULLIF ( SUM( 62 ), 96 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3258
SELECT CASE - 49 WHEN - - 34 * 55 + 81 + + 33 THEN + 30 + + - 27 END * - 67 + - 3 + 20 + + 67 / - 28 + + - 6 * - 77 * - CAST ( NULL AS REAL ) + - - NULLIF ( SUM ( 62 ), 96 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3259
SELECT CAST( NULL AS SIGNED ) + - 70
----
NULL

skipif mysql # not compatible
query I rowsort label-3259
SELECT CAST ( NULL AS INTEGER ) + - 70
----
NULL

query II rowsort
SELECT - 49, - 11 AS col2
----
-49
-11

onlyif mysql # aggregate syntax: 
query III rowsort label-3261
SELECT ALL MAX( DISTINCT 56 ) - - 49 AS col2, 76 AS col2, + ( - 74 ) + - + MIN( - 31 )
----
105
76
-43

skipif mysql # not compatible
query III rowsort label-3261
SELECT ALL MAX ( DISTINCT 56 ) - - 49 AS col2, 76 AS col2, + ( - 74 ) + - + MIN ( - 31 )
----
105
76
-43

query II rowsort
SELECT 53 col2, + 63 AS col2
----
53
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3263
SELECT 4 - - + COUNT( * ) + + 83 AS col1
----
88

skipif mysql # not compatible
query I rowsort label-3263
SELECT 4 - - + COUNT ( * ) + + 83 AS col1
----
88

query I rowsort
SELECT 40 * + - 34
----
-1360

query I rowsort
SELECT ALL 75 * 89
----
6675

onlyif mysql # DIV for integer division: 
query I rowsort label-3266
SELECT ALL 87 DIV - 36 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-3266
SELECT ALL 87 / - 36 AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3267
SELECT ALL COUNT( * ) - + - 46 + + + 23 + + 87
----
157

skipif mysql # not compatible
query I rowsort label-3267
SELECT ALL COUNT ( * ) - + - 46 + + + 23 + + 87
----
157

onlyif mysql # DIV for integer division: 
query I rowsort label-3268
SELECT DISTINCT 4 DIV + - 82 col2
----
0

skipif mysql # not compatible
query I rowsort label-3268
SELECT DISTINCT 4 / + - 82 col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3269
SELECT ALL ( 37 ) * 76 col1, 34 + SUM( + 53 )
----
2812
87

skipif mysql # not compatible
query II rowsort label-3269
SELECT ALL ( 37 ) * 76 col1, 34 + SUM ( + 53 )
----
2812
87

query I rowsort
SELECT ALL 28 - 2 AS col1
----
26

query I rowsort
SELECT 30 / CASE - 0 WHEN - 91 * - + 88 * 99 THEN - - AVG ( ALL + + 80 ) + 66 + - 28 * + - 5 WHEN - - 15 THEN 63 END * + COALESCE ( - - 61, + 19, - 44 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3272
SELECT ALL ( + 74 ) * + COUNT( * ) + + 15 * 9
----
209

skipif mysql # not compatible
query I rowsort label-3272
SELECT ALL ( + 74 ) * + COUNT ( * ) + + 15 * 9
----
209

onlyif mysql # DIV for integer division: 
query I rowsort label-3273
SELECT 71 + + + 42 DIV + 90 AS col0
----
71

skipif mysql # not compatible
query I rowsort label-3273
SELECT 71 + + + 42 / + 90 AS col0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-3274
SELECT DISTINCT - COUNT( - 73 )
----
-1

skipif mysql # not compatible
query I rowsort label-3274
SELECT DISTINCT - COUNT ( - 73 )
----
-1

query I rowsort
SELECT ALL 1 + - 50 AS col1
----
-49

query I rowsort
SELECT DISTINCT 6 + - 77
----
-71

query I rowsort
SELECT - 71 * 25 + - - 90 AS col1
----
-1685

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3278
SELECT + 54 * - MIN( - 59 ) AS col0, + MAX( + 43 ) DIV 30 AS col0
----
3186
1

skipif mysql # not compatible
query II rowsort label-3278
SELECT + 54 * - MIN ( - 59 ) AS col0, + MAX ( + 43 ) / 30 AS col0
----
3186
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3279
SELECT + CAST( + SUM( DISTINCT 15 ) AS SIGNED ) AS col0, 24 AS col1
----
15
24

skipif mysql # not compatible
query II rowsort label-3279
SELECT + CAST ( + SUM ( DISTINCT 15 ) AS INTEGER ) AS col0, 24 AS col1
----
15
24

onlyif mysql # aggregate syntax: 
query I rowsort label-3280
SELECT + - 27 * + - COUNT( * ) * - 84 * + 89 - - 90 * MAX( - - 87 )
----
-194022

skipif mysql # not compatible
query I rowsort label-3280
SELECT + - 27 * + - COUNT ( * ) * - 84 * + 89 - - 90 * MAX ( - - 87 )
----
-194022

onlyif mysql # aggregate syntax: 
query II rowsort label-3281
SELECT - 21 + - 68 + - - NULLIF ( + 1, + - COUNT( * ) + - 63 ) * + - 95 * 73 * - - MIN( + 35 ) + 6, - 64 AS col2
----
-242808
-64

skipif mysql # not compatible
query II rowsort label-3281
SELECT - 21 + - 68 + - - NULLIF ( + 1, + - COUNT ( * ) + - 63 ) * + - 95 * 73 * - - MIN ( + 35 ) + 6, - 64 AS col2
----
-242808
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3282
SELECT 80 * + 2 + - + CAST( NULL AS SIGNED ) - + - 1
----
NULL

skipif mysql # not compatible
query I rowsort label-3282
SELECT 80 * + 2 + - + CAST ( NULL AS INTEGER ) - + - 1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3283
SELECT - ( + - 76 ) + - - COUNT( * ) AS col2
----
77

skipif mysql # not compatible
query I rowsort label-3283
SELECT - ( + - 76 ) + - - COUNT ( * ) AS col2
----
77

query I rowsort
SELECT DISTINCT - 26 * + 76
----
-1976

onlyif mysql # DIV for integer division: 
query I rowsort label-3285
SELECT ALL - 4 - + 23 DIV + 16
----
-5

skipif mysql # not compatible
query I rowsort label-3285
SELECT ALL - 4 - + 23 / + 16
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3286
SELECT MIN( DISTINCT + 3 ) * + CASE - ( - 36 ) WHEN 70 * - + 48 * - + 12 + + ( 74 ) - + COUNT( ALL + + 97 ) + - - 63 / COUNT( * ) * 42 + 44 / 74 + - 79 THEN ( 88 ) END + 12 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3286
SELECT MIN ( DISTINCT + 3 ) * + CASE - ( - 36 ) WHEN 70 * - + 48 * - + 12 + + ( 74 ) - + COUNT ( ALL + + 97 ) + - - 63 / COUNT ( * ) * 42 + 44 / 74 + - 79 THEN ( 88 ) END + 12 AS col0
----
NULL

query II rowsort
SELECT ALL - + 26 AS col1, + 87 AS col2
----
-26
87

onlyif mysql # aggregate syntax: 
query II rowsort label-3288
SELECT ALL - COUNT( * ), ( - + 32 ) + 42 AS col1
----
-1
10

skipif mysql # not compatible
query II rowsort label-3288
SELECT ALL - COUNT ( * ), ( - + 32 ) + 42 AS col1
----
-1
10

query I rowsort
SELECT DISTINCT - 76 - 99 + - 75 + 85 * - 64 col1
----
-5690

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3290
SELECT + MIN( ALL 55 ) + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3290
SELECT + MIN ( ALL 55 ) + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3291
SELECT ALL - 52 - COUNT( * ) + 72 * - - NULLIF ( + - 92, 78 )
----
-6677

skipif mysql # not compatible
query I rowsort label-3291
SELECT ALL - 52 - COUNT ( * ) + 72 * - - NULLIF ( + - 92, 78 )
----
-6677

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3292
SELECT + NULLIF ( 76, + 23 + + 6 ) * CAST( NULL AS SIGNED ) * + 7 + 35 + 94 + + + 89 col2, - 82
----
NULL
-82

skipif mysql # not compatible
query II rowsort label-3292
SELECT + NULLIF ( 76, + 23 + + 6 ) * CAST ( NULL AS INTEGER ) * + 7 + 35 + 94 + + + 89 col2, - 82
----
NULL
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-3293
SELECT COALESCE ( + 12, + 60 + + - 8 ) * + - COUNT( * )
----
-12

skipif mysql # not compatible
query I rowsort label-3293
SELECT COALESCE ( + 12, + 60 + + - 8 ) * + - COUNT ( * )
----
-12

query I rowsort
SELECT DISTINCT 34 * - 81
----
-2754

onlyif mysql # aggregate syntax: 
query I rowsort label-3295
SELECT 14 + COUNT( * )
----
15

skipif mysql # not compatible
query I rowsort label-3295
SELECT 14 + COUNT ( * )
----
15

query I rowsort
SELECT ALL - 89 * 16 AS col1
----
-1424

onlyif mysql # aggregate syntax: 
query I rowsort label-3297
SELECT DISTINCT MIN( + 4 )
----
4

skipif mysql # not compatible
query I rowsort label-3297
SELECT DISTINCT MIN ( + 4 )
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3298
SELECT ALL - SUM( DISTINCT CAST( 4 AS SIGNED ) ) * + ( + - COUNT( * ) ) + + 33 + + + 31 + + ( - 14 ) AS col2
----
54

skipif mysql # not compatible
query I rowsort label-3298
SELECT ALL - SUM ( DISTINCT CAST ( 4 AS INTEGER ) ) * + ( + - COUNT ( * ) ) + + 33 + + + 31 + + ( - 14 ) AS col2
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3299
SELECT DISTINCT CASE CAST( - 91 AS SIGNED ) WHEN - + 70 * - COUNT( * ) - - - AVG ( 8 ) + + - 47 * - 52 THEN + + 97 + + 15 WHEN 22 + + 83 * CASE + 14 WHEN + 55 THEN - COALESCE ( - + COUNT( * ), + - 74 + 43 * - COUNT( * ), 43 * - 56 ) * + 69 WHEN MIN( + 57 ) * 92 THEN NULL END THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3299
SELECT DISTINCT CASE CAST ( - 91 AS INTEGER ) WHEN - + 70 * - COUNT ( * ) - - - AVG ( 8 ) + + - 47 * - 52 THEN + + 97 + + 15 WHEN 22 + + 83 * CASE + 14 WHEN + 55 THEN - COALESCE ( - + COUNT ( * ), + - 74 + 43 * - COUNT ( * ), 43 * - 56 ) * + 69 WHEN MIN ( + 57 ) * 92 THEN NULL END THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3300
SELECT - 22 * + ( SUM( + CAST( - 53 AS SIGNED ) ) ) * COUNT( * ) AS col2
----
1166

skipif mysql # not compatible
query I rowsort label-3300
SELECT - 22 * + ( SUM ( + CAST ( - 53 AS INTEGER ) ) ) * COUNT ( * ) AS col2
----
1166

onlyif mysql # aggregate syntax: 
query I rowsort label-3301
SELECT + 27 * - - CASE COUNT( * ) WHEN + + 29 THEN 36 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3301
SELECT + 27 * - - CASE COUNT ( * ) WHEN + + 29 THEN 36 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3302
SELECT + MAX( ALL + 35 ) + 66
----
101

skipif mysql # not compatible
query I rowsort label-3302
SELECT + MAX ( ALL + 35 ) + 66
----
101

onlyif mysql # DIV for integer division: 
query II rowsort label-3303
SELECT + 80 DIV - 69 AS col0, 95
----
-1
95

skipif mysql # not compatible
query II rowsort label-3303
SELECT + 80 / - 69 AS col0, 95
----
-1
95

query II rowsort
SELECT + 91 + + + 52 - 35 * - - 71 AS col2, ( + - 36 ) AS col0
----
-2342
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-3305
SELECT ALL 79 + - SUM( DISTINCT + 80 )
----
-1

skipif mysql # not compatible
query I rowsort label-3305
SELECT ALL 79 + - SUM ( DISTINCT + 80 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3306
SELECT ALL - COUNT( * ) + 2 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3306
SELECT ALL - COUNT ( * ) + 2 AS col2
----
1

query I rowsort
SELECT + + 4 + + ( 42 )
----
46

onlyif mysql # aggregate syntax: 
query II rowsort label-3308
SELECT ALL COUNT( ALL + 34 ), + COUNT( * ) AS col2
----
1
1

skipif mysql # not compatible
query II rowsort label-3308
SELECT ALL COUNT ( ALL + 34 ), + COUNT ( * ) AS col2
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3309
SELECT ALL 95 + MIN( ALL 46 ) AS col2
----
141

skipif mysql # not compatible
query I rowsort label-3309
SELECT ALL 95 + MIN ( ALL 46 ) AS col2
----
141

query I rowsort
SELECT + 38 + - - 23
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3311
SELECT ALL NULLIF ( 29, - - NULLIF ( - CAST( - - COUNT( * ) AS SIGNED ), + 20 ) * - 80 + 8 + + 55 ) + - 37 + 55
----
47

skipif mysql # not compatible
query I rowsort label-3311
SELECT ALL NULLIF ( 29, - - NULLIF ( - CAST ( - - COUNT ( * ) AS INTEGER ), + 20 ) * - 80 + 8 + + 55 ) + - 37 + 55
----
47

query I rowsort
SELECT ALL + 90 * - + 74 + - 48
----
-6708

query I rowsort
SELECT + 52 + - 20
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3314
SELECT + 91 + - - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3314
SELECT + 91 + - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3315
SELECT + 31 * - + COALESCE ( + COUNT( + 48 ), + MAX( 37 ) * - - 97 ) + - - 82 + + 90 + 25
----
166

skipif mysql # not compatible
query I rowsort label-3315
SELECT + 31 * - + COALESCE ( + COUNT ( + 48 ), + MAX ( 37 ) * - - 97 ) + - - 82 + + 90 + 25
----
166

query I rowsort
SELECT ALL + - 84 * 70 - + + 96 / CASE - - 58 WHEN + 13 THEN + + 87 END
----
NULL

query I rowsort
SELECT + + 2 * + 27 + + 73
----
127

query I rowsort
SELECT + - 27 + + 33 AS col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3319
SELECT - CASE - 62 WHEN + COUNT( * ) + 97 + 69 + + + 0 + + 82 * + - 0 THEN - + 66 + + ( 58 ) END * - COUNT( DISTINCT + 58 ) + ( 99 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3319
SELECT - CASE - 62 WHEN + COUNT ( * ) + 97 + 69 + + + 0 + + 82 * + - 0 THEN - + 66 + + ( 58 ) END * - COUNT ( DISTINCT + 58 ) + ( 99 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3320
SELECT DISTINCT - COUNT( * ) * + - 48 * - 41 * - + 23 + - MIN( ALL + 18 ) * - COUNT( + 30 )
----
45282

skipif mysql # not compatible
query I rowsort label-3320
SELECT DISTINCT - COUNT ( * ) * + - 48 * - 41 * - + 23 + - MIN ( ALL + 18 ) * - COUNT ( + 30 )
----
45282

query I rowsort
SELECT + + 9 * - 25 AS col1
----
-225

query I rowsort
SELECT - CASE - - 85 WHEN - - 45 THEN + ( - 28 ) END + - 74 * + - 54
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3323
SELECT + MAX( 12 ) DIV + 30 * + - 45 * - + COUNT( * ) + 3 + + - 61 * + COUNT( * ) + COUNT( * )
----
-57

skipif mysql # not compatible
query I rowsort label-3323
SELECT + MAX ( 12 ) / + 30 * + - 45 * - + COUNT ( * ) + 3 + + - 61 * + COUNT ( * ) + COUNT ( * )
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3324
SELECT - 94 * - CAST( NULL AS SIGNED ) / 69 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3324
SELECT - 94 * - CAST ( NULL AS INTEGER ) / 69 AS col2
----
NULL

query I rowsort
SELECT ALL - 48 * - 27
----
1296

query I rowsort
SELECT ALL + ( + - 14 ) AS col0
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3327
SELECT DISTINCT + CAST( + ( - - AVG ( ALL - 30 ) ) AS SIGNED )
----
-30

skipif mysql # not compatible
query I rowsort label-3327
SELECT DISTINCT + CAST ( + ( - - AVG ( ALL - 30 ) ) AS INTEGER )
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-3328
SELECT ALL + MIN( - - 47 ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-3328
SELECT ALL + MIN ( - - 47 ) AS col1
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-3329
SELECT - 58 DIV + + 27
----
-2

skipif mysql # not compatible
query I rowsort label-3329
SELECT - 58 / + + 27
----
-2

query I rowsort
SELECT NULLIF ( + 34, - NULLIF ( + 88, 42 + + ( + 44 ) ) + 36 ) AS col0
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3331
SELECT ALL + 59, + CAST( - COUNT( * ) AS SIGNED ) * - 17 AS col0
----
59
17

skipif mysql # not compatible
query II rowsort label-3331
SELECT ALL + 59, + CAST ( - COUNT ( * ) AS INTEGER ) * - 17 AS col0
----
59
17

query I rowsort
SELECT NULLIF ( 77, + 76 )
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3333
SELECT ALL + COUNT( + - NULLIF ( - - 58, ( + 98 ) * - 69 + - 46 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3333
SELECT ALL + COUNT ( + - NULLIF ( - - 58, ( + 98 ) * - 69 + - 46 ) ) AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3334
SELECT - 22 DIV - - 58
----
0

skipif mysql # not compatible
query I rowsort label-3334
SELECT - 22 / - - 58
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3335
SELECT DISTINCT + COALESCE ( 24, + ( - 95 ) ) DIV - 38 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3335
SELECT DISTINCT + COALESCE ( 24, + ( - 95 ) ) / - 38 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3336
SELECT - SUM( ALL + 69 )
----
-69

skipif mysql # not compatible
query I rowsort label-3336
SELECT - SUM ( ALL + 69 )
----
-69

onlyif mysql # aggregate syntax: 
query II rowsort label-3337
SELECT COUNT( * ) AS col1, 65 + + 26
----
1
91

skipif mysql # not compatible
query II rowsort label-3337
SELECT COUNT ( * ) AS col1, 65 + + 26
----
1
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3338
SELECT - 51 - - COUNT( * ) * - - 20
----
-31

skipif mysql # not compatible
query I rowsort label-3338
SELECT - 51 - - COUNT ( * ) * - - 20
----
-31

query I rowsort
SELECT DISTINCT 80 + 64 AS col2
----
144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3340
SELECT DISTINCT - CAST( NULL AS SIGNED ) * 92 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3340
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * 92 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3341
SELECT ALL 39 + COUNT( * ) + - + 91 + + - 50 * + ( - 39 ) * ( MAX( DISTINCT + ( NULLIF ( - - 56, 30 ) ) ) ) + - 7 * + - NULLIF ( - - 85, + - 79 ) col1
----
109744

skipif mysql # not compatible
query I rowsort label-3341
SELECT ALL 39 + COUNT ( * ) + - + 91 + + - 50 * + ( - 39 ) * ( MAX ( DISTINCT + ( NULLIF ( - - 56, 30 ) ) ) ) + - 7 * + - NULLIF ( - - 85, + - 79 ) col1
----
109744

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3342
SELECT + COUNT( * ) * + + CASE - 0 WHEN - 38 DIV + 68 THEN - ( 41 ) ELSE - 36 + 50 + + + 38 * - + 75 + - ( - + COUNT( * ) ) * - CASE - 81 WHEN - 56 DIV - 43 + + - 19 + - MAX( ALL - 63 ) * 17 + - COUNT( * ) THEN COUNT( * ) DIV COUNT( * ) WHEN COUNT( * ) * + 71 THEN + 19 + 76 WHEN 83 THEN NULL ELSE + COUNT( * ) + - 75 DIV + 41 END - - COUNT( * ) END * - 42 col2
----
1722

skipif mysql # not compatible
query I rowsort label-3342
SELECT + COUNT ( * ) * + + CASE - 0 WHEN - 38 / + 68 THEN - ( 41 ) ELSE - 36 + 50 + + + 38 * - + 75 + - ( - + COUNT ( * ) ) * - CASE - 81 WHEN - 56 / - 43 + + - 19 + - MAX ( ALL - 63 ) * 17 + - COUNT ( * ) THEN COUNT ( * ) / COUNT ( * ) WHEN COUNT ( * ) * + 71 THEN + 19 + 76 WHEN 83 THEN NULL ELSE + COUNT ( * ) + - 75 / + 41 END - - COUNT ( * ) END * - 42 col2
----
1722

query II rowsort
SELECT - 0 AS col2, 21 col2
----
0
21

onlyif mysql # aggregate syntax: 
query I rowsort label-3344
SELECT - + 97 * - MAX( ALL - 50 )
----
-4850

skipif mysql # not compatible
query I rowsort label-3344
SELECT - + 97 * - MAX ( ALL - 50 )
----
-4850

onlyif mysql # aggregate syntax: 
query I rowsort label-3345
SELECT DISTINCT 24 - - COUNT( 50 ) + COUNT( * ) AS col0
----
26

skipif mysql # not compatible
query I rowsort label-3345
SELECT DISTINCT 24 - - COUNT ( 50 ) + COUNT ( * ) AS col0
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-3346
SELECT ALL - 37 - + 32 DIV 56 AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-3346
SELECT ALL - 37 - + 32 / 56 AS col0
----
-37

query I rowsort
SELECT - COALESCE ( 97, - 80, + + 31 + 93 ) AS col2
----
-97

query II rowsort
SELECT ALL 46, 54 * - 5 AS col2
----
46
-270

query I rowsort
SELECT + + 98 * 99 AS col2
----
9702

onlyif mysql # aggregate syntax: 
query I rowsort label-3350
SELECT - 24 * - 84 - + - COUNT( * ) + + + 9
----
2026

skipif mysql # not compatible
query I rowsort label-3350
SELECT - 24 * - 84 - + - COUNT ( * ) + + + 9
----
2026

query I rowsort
SELECT + 96 * - ( - 26 )
----
2496

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3352
SELECT + 66 * - NULLIF ( COUNT( * ), - COUNT( * ) / - CAST( + MAX( + 41 ) AS SIGNED ) )
----
-66

skipif mysql # not compatible
query I rowsort label-3352
SELECT + 66 * - NULLIF ( COUNT ( * ), - COUNT ( * ) / - CAST ( + MAX ( + 41 ) AS INTEGER ) )
----
-66

query I rowsort
SELECT + + 46 + - 7 AS col1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3354
SELECT ALL 70 * + + NULLIF ( + COUNT( * ), - COUNT( * ) + - + NULLIF ( + 56, - 31 ) ) * 83 col2
----
5810

skipif mysql # not compatible
query I rowsort label-3354
SELECT ALL 70 * + + NULLIF ( + COUNT ( * ), - COUNT ( * ) + - + NULLIF ( + 56, - 31 ) ) * 83 col2
----
5810

query I rowsort
SELECT DISTINCT 88 * - + 63 col0
----
-5544

query I rowsort
SELECT ALL - 62 + + 94
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3357
SELECT DISTINCT CASE + + 90 WHEN 96 THEN + COUNT( * ) * + 18 ELSE NULL END * 62
----
NULL

skipif mysql # not compatible
query I rowsort label-3357
SELECT DISTINCT CASE + + 90 WHEN 96 THEN + COUNT ( * ) * + 18 ELSE NULL END * 62
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3358
SELECT 49 + + ( - COALESCE ( + NULLIF ( + + 48, COUNT( * ) ), + 71 ) ) * + + 82
----
-3887

skipif mysql # not compatible
query I rowsort label-3358
SELECT 49 + + ( - COALESCE ( + NULLIF ( + + 48, COUNT ( * ) ), + 71 ) ) * + + 82
----
-3887

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3359
SELECT ALL NULLIF ( + 9, CASE CAST( NULL AS SIGNED ) WHEN + + ( - 90 ) + + 68 * 14 / + - ( - 71 ) THEN + 63 ELSE NULL END ) + + 47
----
56

skipif mysql # not compatible
query I rowsort label-3359
SELECT ALL NULLIF ( + 9, CASE CAST ( NULL AS INTEGER ) WHEN + + ( - 90 ) + + 68 * 14 / + - ( - 71 ) THEN + 63 ELSE NULL END ) + + 47
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-3360
SELECT ALL - ( + ( - COUNT( * ) ) ) + 53
----
54

skipif mysql # not compatible
query I rowsort label-3360
SELECT ALL - ( + ( - COUNT ( * ) ) ) + 53
----
54

query I rowsort
SELECT ( - - 78 ) + - 90
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-3362
SELECT ALL ( 45 ) + + - 11 DIV 5 DIV 8
----
45

skipif mysql # not compatible
query I rowsort label-3362
SELECT ALL ( 45 ) + + - 11 / 5 / 8
----
45

query II rowsort
SELECT ALL - 19, 44 AS col1
----
-19
44

query II rowsort
SELECT DISTINCT 76, - 95 col1
----
76
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3365
SELECT ALL CAST( NULL AS SIGNED ) + + 2 * + 67 * + COUNT( * ), CAST( NULL AS SIGNED ) + - + 4 + + CAST( NULL AS SIGNED ) + 46 AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3365
SELECT ALL CAST ( NULL AS INTEGER ) + + 2 * + 67 * + COUNT ( * ), CAST ( NULL AS INTEGER ) + - + 4 + + CAST ( NULL AS INTEGER ) + 46 AS col2
----
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3366
SELECT 70 DIV + SUM( DISTINCT + + 47 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3366
SELECT 70 / + SUM ( DISTINCT + + 47 ) AS col0
----
1

query I rowsort
SELECT DISTINCT + 82 + + 77 AS col0
----
159

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3368
SELECT DISTINCT + 73 DIV COUNT( * ) * - 14
----
-1022

skipif mysql # not compatible
query I rowsort label-3368
SELECT DISTINCT + 73 / COUNT ( * ) * - 14
----
-1022

query I rowsort
SELECT 79 + + + 36
----
115

query I rowsort
SELECT 66 * - - 45 AS col1
----
2970

query II rowsort
SELECT + 68 AS col2, + 37
----
68
37

onlyif mysql # aggregate syntax: 
query I rowsort label-3372
SELECT + MIN( DISTINCT + 55 ) + + 30 AS col0
----
85

skipif mysql # not compatible
query I rowsort label-3372
SELECT + MIN ( DISTINCT + 55 ) + + 30 AS col0
----
85

query I rowsort
SELECT DISTINCT + 41 - 13
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3374
SELECT ALL + 32 AS col2, CAST( NULL AS SIGNED ) + 32
----
32
NULL

skipif mysql # not compatible
query II rowsort label-3374
SELECT ALL + 32 AS col2, CAST ( NULL AS INTEGER ) + 32
----
32
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3375
SELECT ALL + + 84 * 56 * + MAX( ALL + - 22 ) + 69 col1
----
-103419

skipif mysql # not compatible
query I rowsort label-3375
SELECT ALL + + 84 * 56 * + MAX ( ALL + - 22 ) + 69 col1
----
-103419

query I rowsort
SELECT DISTINCT - ( + + 74 )
----
-74

query II rowsort
SELECT DISTINCT - 94 AS col1, 27 AS col1
----
-94
27

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3378
SELECT DISTINCT + 80 * - 59 * - COALESCE ( - - ( + + 51 ), + + 75 * - COALESCE ( CAST( + 34 AS SIGNED ), + + ( + 57 ), - 36 * - + 77 DIV - + 15 ) )
----
240720

skipif mysql # not compatible
query I rowsort label-3378
SELECT DISTINCT + 80 * - 59 * - COALESCE ( - - ( + + 51 ), + + 75 * - COALESCE ( CAST ( + 34 AS INTEGER ), + + ( + 57 ), - 36 * - + 77 / - + 15 ) )
----
240720

onlyif mysql # aggregate syntax: 
query I rowsort label-3379
SELECT ALL SUM( ALL + 19 ) col0
----
19

skipif mysql # not compatible
query I rowsort label-3379
SELECT ALL SUM ( ALL + 19 ) col0
----
19

query I rowsort
SELECT + 23 + - ( - + 41 )
----
64

query I rowsort
SELECT 27 * 59
----
1593

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3382
SELECT 14 * - + NULLIF ( - CAST( NULL AS SIGNED ), 57 / + 95 * - + COUNT( * ) / - + CASE - - 72 WHEN + 28 * 34 + + ( + 14 ) + - 93 THEN + + 44 WHEN 49 THEN NULL END * + ( 52 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3382
SELECT 14 * - + NULLIF ( - CAST ( NULL AS INTEGER ), 57 / + 95 * - + COUNT ( * ) / - + CASE - - 72 WHEN + 28 * 34 + + ( + 14 ) + - 93 THEN + + 44 WHEN 49 THEN NULL END * + ( 52 ) ) AS col0
----
NULL

query I rowsort
SELECT + 37 + - + 15
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-3384
SELECT + SUM( DISTINCT ( + 63 ) )
----
63

skipif mysql # not compatible
query I rowsort label-3384
SELECT + SUM ( DISTINCT ( + 63 ) )
----
63

query I rowsort
SELECT COALESCE ( - 14, - 72 ) + - 96 AS col2
----
-110

onlyif mysql # aggregate syntax: 
query I rowsort label-3386
SELECT ALL + ( + ( + COUNT( * ) ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3386
SELECT ALL + ( + ( + COUNT ( * ) ) ) AS col2
----
1

query II rowsort
SELECT - - 35 AS col2, + 82 AS col1
----
35
82

query I rowsort
SELECT + 64 * - 94 * + 87
----
-523392

query I rowsort
SELECT + + NULLIF ( + 62, - ( - - ( + 39 ) ) )
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-3390
SELECT ALL 42 DIV + - 33
----
-1

skipif mysql # not compatible
query I rowsort label-3390
SELECT ALL 42 / + - 33
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-3391
SELECT DISTINCT - COUNT( * ) AS col2, 81 * - 56 AS col2
----
-1
-4536

skipif mysql # not compatible
query II rowsort label-3391
SELECT DISTINCT - COUNT ( * ) AS col2, 81 * - 56 AS col2
----
-1
-4536

query II rowsort
SELECT ALL - - 86 col2, 95
----
86
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3393
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 80
----
NULL

skipif mysql # not compatible
query I rowsort label-3393
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 80
----
NULL

query II rowsort
SELECT ALL + 30 + - - 98 AS col0, 99 * + 77
----
128
7623

onlyif mysql # aggregate syntax: 
query II rowsort label-3395
SELECT DISTINCT - COUNT( DISTINCT ( - 10 ) ) AS col2, - 76
----
-1
-76

skipif mysql # not compatible
query II rowsort label-3395
SELECT DISTINCT - COUNT ( DISTINCT ( - 10 ) ) AS col2, - 76
----
-1
-76

query I rowsort
SELECT ALL + 21 * + + 83
----
1743

query I rowsort
SELECT 94 * - ( 90 ) + - 40
----
-8500

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3398
SELECT 13 / + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3398
SELECT 13 / + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3399
SELECT DISTINCT 4 + CAST( + NULLIF ( + + 2, + 74 * - 48 - - + 35 - + - 49 + - COUNT( * ) ) AS SIGNED )
----
6

skipif mysql # not compatible
query I rowsort label-3399
SELECT DISTINCT 4 + CAST ( + NULLIF ( + + 2, + 74 * - 48 - - + 35 - + - 49 + - COUNT ( * ) ) AS INTEGER )
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3400
SELECT DISTINCT NULLIF ( 0, - NULLIF ( COUNT( * ), + 95 + - 59 ) + - - 0 ) * - ( ( - - CASE - - 0 WHEN - 61 + 67 * + 47 * + SUM( + 2 ) + + AVG ( 0 ) THEN + 0 ELSE + + 92 / CAST( NULL AS SIGNED ) + ( COUNT( * ) ) END ) ) / + 69 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3400
SELECT DISTINCT NULLIF ( 0, - NULLIF ( COUNT ( * ), + 95 + - 59 ) + - - 0 ) * - ( ( - - CASE - - 0 WHEN - 61 + 67 * + 47 * + SUM ( + 2 ) + + AVG ( 0 ) THEN + 0 ELSE + + 92 / CAST ( NULL AS INTEGER ) + ( COUNT ( * ) ) END ) ) / + 69 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3401
SELECT ALL NULLIF ( 55, - + 95 * - 71 ) + - 60 AS col0, 42 * - COUNT( * ) * - CAST( NULL AS SIGNED )
----
-5
NULL

skipif mysql # not compatible
query II rowsort label-3401
SELECT ALL NULLIF ( 55, - + 95 * - 71 ) + - 60 AS col0, 42 * - COUNT ( * ) * - CAST ( NULL AS INTEGER )
----
-5
NULL

query II rowsort
SELECT ALL 9 + 95 col1, - 46 AS col0
----
104
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3403
SELECT - ( - 3 ) * + 64 + CAST( + - COUNT( 35 ) AS SIGNED ) + - 99 + 38 AS col2
----
130

skipif mysql # not compatible
query I rowsort label-3403
SELECT - ( - 3 ) * + 64 + CAST ( + - COUNT ( 35 ) AS INTEGER ) + - 99 + 38 AS col2
----
130

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3404
SELECT CAST( + MIN( - 19 ) AS SIGNED ) * - ( + + ( + 24 ) ) AS col0
----
456

skipif mysql # not compatible
query I rowsort label-3404
SELECT CAST ( + MIN ( - 19 ) AS INTEGER ) * - ( + + ( + 24 ) ) AS col0
----
456

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3405
SELECT CAST( - AVG ( + 72 ) AS SIGNED ) + + 19 * 28 DIV - 52 col0
----
-82

skipif mysql # not compatible
query I rowsort label-3405
SELECT CAST ( - AVG ( + 72 ) AS INTEGER ) + + 19 * 28 / - 52 col0
----
-82

query I rowsort
SELECT DISTINCT 21 * + + 61 AS col0
----
1281

onlyif mysql # aggregate syntax: 
query I rowsort label-3407
SELECT 80 - - SUM( - - ( - 63 ) ) - + ( - 65 ) * - 48 AS col1
----
-3103

skipif mysql # not compatible
query I rowsort label-3407
SELECT 80 - - SUM ( - - ( - 63 ) ) - + ( - 65 ) * - 48 AS col1
----
-3103

query I rowsort
SELECT + 18 * - - ( + + 33 ) AS col1
----
594

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3409
SELECT + 62 - - 6 AS col0, CAST( NULL AS SIGNED )
----
68
NULL

skipif mysql # not compatible
query II rowsort label-3409
SELECT + 62 - - 6 AS col0, CAST ( NULL AS INTEGER )
----
68
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3410
SELECT DISTINCT + SUM( ALL + - 89 ) * 57
----
-5073

skipif mysql # not compatible
query I rowsort label-3410
SELECT DISTINCT + SUM ( ALL + - 89 ) * 57
----
-5073

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3411
SELECT DISTINCT + CAST( + CAST( - COUNT( 92 ) AS SIGNED ) AS SIGNED ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3411
SELECT DISTINCT + CAST ( + CAST ( - COUNT ( 92 ) AS INTEGER ) AS INTEGER ) AS col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3412
SELECT - COALESCE ( - - 69, + 72 + - CASE 71 WHEN + 19 THEN + 48 DIV 81 END DIV 87, - COUNT( * ) ) - + - 16
----
-53

skipif mysql # not compatible
query I rowsort label-3412
SELECT - COALESCE ( - - 69, + 72 + - CASE 71 WHEN + 19 THEN + 48 / 81 END / 87, - COUNT ( * ) ) - + - 16
----
-53

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3413
SELECT + ( - CAST( NULL AS DECIMAL ) ) * - 27
----
NULL

skipif mysql # not compatible
query I rowsort label-3413
SELECT + ( - CAST ( NULL AS REAL ) ) * - 27
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3414
SELECT + 21 * - - COALESCE ( + - 0, COALESCE ( 72, 37 + CAST( NULL AS SIGNED ) + MIN( + + 40 ) - + COUNT( * ) + MAX( ALL - 77 ), ( + CAST( NULL AS SIGNED ) ) ), + 92 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3414
SELECT + 21 * - - COALESCE ( + - 0, COALESCE ( 72, 37 + CAST ( NULL AS INTEGER ) + MIN ( + + 40 ) - + COUNT ( * ) + MAX ( ALL - 77 ), ( + CAST ( NULL AS INTEGER ) ) ), + 92 ) AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3415
SELECT ALL - + NULLIF ( - + 37, - 84 * + 30 * 56 ) DIV + - 72
----
0

skipif mysql # not compatible
query I rowsort label-3415
SELECT ALL - + NULLIF ( - + 37, - 84 * + 30 * 56 ) / + - 72
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3416
SELECT - 60 - - - 63 col2, - COUNT( + 61 )
----
-123
-1

skipif mysql # not compatible
query II rowsort label-3416
SELECT - 60 - - - 63 col2, - COUNT ( + 61 )
----
-123
-1

query I rowsort
SELECT 29 * + 79 col2
----
2291

onlyif mysql # aggregate syntax: 
query I rowsort label-3418
SELECT DISTINCT - - 78 * COUNT( * ) + - - 83 + - 27 col2
----
134

skipif mysql # not compatible
query I rowsort label-3418
SELECT DISTINCT - - 78 * COUNT ( * ) + - - 83 + - 27 col2
----
134

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3419
SELECT CAST( NULL AS SIGNED ) / + - 19 * - ( - 30 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3419
SELECT CAST ( NULL AS INTEGER ) / + - 19 * - ( - 30 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3420
SELECT DISTINCT + 57 + - + 6 * + + COUNT( * )
----
51

skipif mysql # not compatible
query I rowsort label-3420
SELECT DISTINCT + 57 + - + 6 * + + COUNT ( * )
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3421
SELECT - COUNT( * ) * + COUNT( 56 ) + + - 84
----
-85

skipif mysql # not compatible
query I rowsort label-3421
SELECT - COUNT ( * ) * + COUNT ( 56 ) + + - 84
----
-85

query I rowsort
SELECT ALL + + 48 + NULLIF ( 82, + - 53 )
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-3423
SELECT CASE WHEN 54 IN ( + - MAX( ALL 40 ) + - 71 + COUNT( * ) + + 53 * + 36 * - 5 / 13 * 15, 55 / + 42 + 6, - 28 * + CASE 27 WHEN - + ( 30 ) THEN NULL ELSE - 5 / + 60 * - 73 - + ( + 5 ) END ) THEN - 13 ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3423
SELECT CASE WHEN 54 IN ( + - MAX ( ALL 40 ) + - 71 + COUNT ( * ) + + 53 * + 36 * - 5 / 13 * 15, 55 / + 42 + 6, - 28 * + CASE 27 WHEN - + ( 30 ) THEN NULL ELSE - 5 / + 60 * - 73 - + ( + 5 ) END ) THEN - 13 ELSE NULL END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3424
SELECT DISTINCT + COUNT( * ) + - + 64
----
-63

skipif mysql # not compatible
query I rowsort label-3424
SELECT DISTINCT + COUNT ( * ) + - + 64
----
-63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3425
SELECT ALL - COALESCE ( 50, - - 29 DIV 53 + 15 + - 95 DIV - SUM( + 27 ) + + 24, + 7 ) + - - 83
----
33

skipif mysql # not compatible
query I rowsort label-3425
SELECT ALL - COALESCE ( 50, - - 29 / 53 + 15 + - 95 / - SUM ( + 27 ) + + 24, + 7 ) + - - 83
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3426
SELECT ALL + 35 + + 65 * - CAST( 57 AS SIGNED )
----
-3670

skipif mysql # not compatible
query I rowsort label-3426
SELECT ALL + 35 + + 65 * - CAST ( 57 AS INTEGER )
----
-3670

query I rowsort
SELECT - 5 + + 40 * + 42 AS col0
----
1675

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3428
SELECT 35 * - 96 DIV 8 + + MAX( ALL - - 33 ) * - 78, + CAST( - COUNT( * ) AS SIGNED ) AS col2
----
-2994
-1

skipif mysql # not compatible
query II rowsort label-3428
SELECT 35 * - 96 / 8 + + MAX ( ALL - - 33 ) * - 78, + CAST ( - COUNT ( * ) AS INTEGER ) AS col2
----
-2994
-1

query I rowsort
SELECT DISTINCT + 56 * 46 + - COALESCE ( + 86, - + NULLIF ( 47, + 9 + - 45 * + 59 ) * + 34 + - - 51 - - - 81 )
----
2490

query II rowsort
SELECT ALL + 10 AS col2, + 53 AS col0
----
10
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3431
SELECT DISTINCT + CASE COUNT( * ) WHEN - 87 + + COUNT( * ) THEN NULL WHEN + + COUNT( * ) THEN NULL WHEN - - 68 / - - 6 + + COALESCE ( - + 79, + 28 / - 64 + 92 + + + COUNT( ALL 91 ) / - + 26 * + - 28 * + - CAST( NULL AS SIGNED ) * + 16, - 12 ) / - NULLIF ( + - 11, + + 90 ) THEN NULL ELSE + - CAST( NULL AS SIGNED ) + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3431
SELECT DISTINCT + CASE COUNT ( * ) WHEN - 87 + + COUNT ( * ) THEN NULL WHEN + + COUNT ( * ) THEN NULL WHEN - - 68 / - - 6 + + COALESCE ( - + 79, + 28 / - 64 + 92 + + + COUNT ( ALL 91 ) / - + 26 * + - 28 * + - CAST ( NULL AS INTEGER ) * + 16, - 12 ) / - NULLIF ( + - 11, + + 90 ) THEN NULL ELSE + - CAST ( NULL AS INTEGER ) + COUNT ( * ) END
----
NULL

query II rowsort
SELECT + 31 * + - 77 + + - 53 AS col1, + 43 AS col2
----
-2440
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3433
SELECT + 69 * - 86 * 25 DIV - MAX( - 43 ) + + + 11 AS col0
----
-3439

skipif mysql # not compatible
query I rowsort label-3433
SELECT + 69 * - 86 * 25 / - MAX ( - 43 ) + + + 11 AS col0
----
-3439

query I rowsort
SELECT ALL + ( - + 11 )
----
-11

query II rowsort
SELECT ALL - 72 * - + ( + + 92 ) AS col2, - 29
----
6624
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-3436
SELECT - 92 + COUNT( * ) AS col2
----
-91

skipif mysql # not compatible
query I rowsort label-3436
SELECT - 92 + COUNT ( * ) AS col2
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3437
SELECT CAST( NULL AS SIGNED ) / + 35 + + - 19 * + ( - 24 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3437
SELECT CAST ( NULL AS INTEGER ) / + 35 + + - 19 * + ( - 24 )
----
NULL

query I rowsort
SELECT - 9 * + 68 AS col2
----
-612

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3439
SELECT SUM( DISTINCT + CAST( NULL AS DECIMAL ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3439
SELECT SUM ( DISTINCT + CAST ( NULL AS REAL ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3440
SELECT COUNT( * ) * - 61 + - COUNT( * ) + + NULLIF ( - - 0, + 52 ) AS col2
----
-62

skipif mysql # not compatible
query I rowsort label-3440
SELECT COUNT ( * ) * - 61 + - COUNT ( * ) + + NULLIF ( - - 0, + 52 ) AS col2
----
-62

query I rowsort
SELECT DISTINCT + 10 * + 87
----
870

onlyif mysql # aggregate syntax: 
query I rowsort label-3442
SELECT ALL + - MIN( DISTINCT + 35 )
----
-35

skipif mysql # not compatible
query I rowsort label-3442
SELECT ALL + - MIN ( DISTINCT + 35 )
----
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-3443
SELECT - COUNT( * ) AS col2, + 20
----
-1
20

skipif mysql # not compatible
query II rowsort label-3443
SELECT - COUNT ( * ) AS col2, + 20
----
-1
20

query I rowsort
SELECT + + 86 * 91 AS col1
----
7826

query I rowsort
SELECT - 92 * 29 + + + ( - 23 ) + + + 59 + - 7
----
-2639

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3446
SELECT - + 20 * - 47 - + 34 + - ( - 50 ) + 97 - + 91 + - 83 + COUNT( * ) + - NULLIF ( + + ( - + COUNT( * ) ), + 75 + - ( + + 54 ) * - SUM( DISTINCT - 82 ) ) * - 89 - 97 DIV - SUM( DISTINCT 82 )
----
792

skipif mysql # not compatible
query I rowsort label-3446
SELECT - + 20 * - 47 - + 34 + - ( - 50 ) + 97 - + 91 + - 83 + COUNT ( * ) + - NULLIF ( + + ( - + COUNT ( * ) ), + 75 + - ( + + 54 ) * - SUM ( DISTINCT - 82 ) ) * - 89 - 97 / - SUM ( DISTINCT 82 )
----
792

query II rowsort
SELECT DISTINCT 31, 74 AS col0
----
31
74

query II rowsort
SELECT ALL 48, ( - 62 ) + 34 + + + 66 AS col0
----
48
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3449
SELECT + CAST( NULL AS SIGNED ) / + CAST( AVG ( DISTINCT - + 33 ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3449
SELECT + CAST ( NULL AS INTEGER ) / + CAST ( AVG ( DISTINCT - + 33 ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3450
SELECT DISTINCT - 97 * - + COUNT( * )
----
97

skipif mysql # not compatible
query I rowsort label-3450
SELECT DISTINCT - 97 * - + COUNT ( * )
----
97

query II rowsort
SELECT DISTINCT + 86 + + 38 * + + 22, + ( + ( + 95 ) ) AS col2
----
922
95

query II rowsort
SELECT ALL 99 AS col0, 41
----
99
41

query I rowsort
SELECT + - 59 + 49 + 91 * + + 67 + ( - + 62 )
----
6025

query I rowsort
SELECT ALL + + 13 + - + 45
----
-32

query II rowsort
SELECT DISTINCT 5, ( - 0 ) AS col0
----
5
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3456
SELECT + - 98 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3456
SELECT + - 98 / CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3457
SELECT ALL + CAST( NULL AS SIGNED ) + + 33 AS col1, - 92 AS col1
----
NULL
-92

skipif mysql # not compatible
query II rowsort label-3457
SELECT ALL + CAST ( NULL AS INTEGER ) + + 33 AS col1, - 92 AS col1
----
NULL
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-3458
SELECT + 76 DIV 99 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3458
SELECT + 76 / 99 AS col0
----
0

query I rowsort
SELECT DISTINCT - 58 * + + 48
----
-2784

onlyif mysql # DIV for integer division: 
query I rowsort label-3460
SELECT ALL 78 DIV - - 89 - - 74 AS col0
----
74

skipif mysql # not compatible
query I rowsort label-3460
SELECT ALL 78 / - - 89 - - 74 AS col0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3461
SELECT DISTINCT + MIN( ALL + ( + 55 ) ) AS col0
----
55

skipif mysql # not compatible
query I rowsort label-3461
SELECT DISTINCT + MIN ( ALL + ( + 55 ) ) AS col0
----
55

query I rowsort
SELECT - 22 * 36 * - 50
----
39600

query II rowsort
SELECT ALL - 95 * 75 AS col2, 32 * + 3
----
-7125
96

query I rowsort
SELECT DISTINCT + NULLIF ( - - 31, - 70 )
----
31

onlyif mysql # aggregate syntax: 
query II rowsort label-3465
SELECT - 91 * - 17 AS col1, + ( + MIN( DISTINCT + 65 ) ) AS col0
----
1547
65

skipif mysql # not compatible
query II rowsort label-3465
SELECT - 91 * - 17 AS col1, + ( + MIN ( DISTINCT + 65 ) ) AS col0
----
1547
65

query I rowsort
SELECT ( + 52 ) col0
----
52

query II rowsort
SELECT ( - 82 ) AS col1, 45
----
-82
45

query II rowsort
SELECT ALL + ( 66 ) AS col2, + ( 74 ) + - - 14
----
66
88

query I rowsort
SELECT DISTINCT + COALESCE ( + 93, 66 ) AS col2
----
93

query I rowsort
SELECT - 56 * + 60
----
-3360

onlyif mysql # aggregate syntax: 
query II rowsort label-3471
SELECT ALL + COUNT( * ) * - 33, 22 AS col2
----
-33
22

skipif mysql # not compatible
query II rowsort label-3471
SELECT ALL + COUNT ( * ) * - 33, 22 AS col2
----
-33
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3472
SELECT ALL - 9 DIV - 91 col0, 40 * - 68 * MAX( DISTINCT - - 12 ) AS col1
----
0
-32640

skipif mysql # not compatible
query II rowsort label-3472
SELECT ALL - 9 / - 91 col0, 40 * - 68 * MAX ( DISTINCT - - 12 ) AS col1
----
0
-32640

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3473
SELECT - 6 * - CAST( - - COALESCE ( + 87, + - 29 ) AS SIGNED )
----
522

skipif mysql # not compatible
query I rowsort label-3473
SELECT - 6 * - CAST ( - - COALESCE ( + 87, + - 29 ) AS INTEGER )
----
522

query I rowsort
SELECT + 76 + + 11 * + 82 AS col2
----
978

onlyif mysql # aggregate syntax: 
query I rowsort label-3475
SELECT DISTINCT - + COUNT( * ) * 78
----
-78

skipif mysql # not compatible
query I rowsort label-3475
SELECT DISTINCT - + COUNT ( * ) * 78
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-3476
SELECT + ( + 98 ) + 8 + - COUNT( * ) - + ( - COUNT( * ) ) + - - CASE WHEN + 19 BETWEEN - 36 * 25 + + 24 + COUNT( * ) - 75 * - 28 / + 87 AND - - COUNT( * ) + 29 * - - 15 + + 5 THEN + - ( + 59 ) * + 66 END AS col0
----
-3788

skipif mysql # not compatible
query I rowsort label-3476
SELECT + ( + 98 ) + 8 + - COUNT ( * ) - + ( - COUNT ( * ) ) + - - CASE WHEN + 19 BETWEEN - 36 * 25 + + 24 + COUNT ( * ) - 75 * - 28 / + 87 AND - - COUNT ( * ) + 29 * - - 15 + + 5 THEN + - ( + 59 ) * + 66 END AS col0
----
-3788

query I rowsort
SELECT ALL + 60 * - + 47
----
-2820

onlyif mysql # aggregate syntax: 
query I rowsort label-3478
SELECT DISTINCT - 1 * - COUNT( * ) * 56 AS col2
----
56

skipif mysql # not compatible
query I rowsort label-3478
SELECT DISTINCT - 1 * - COUNT ( * ) * 56 AS col2
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-3479
SELECT - 47 - 73 DIV + 65
----
-48

skipif mysql # not compatible
query I rowsort label-3479
SELECT - 47 - 73 / + 65
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-3480
SELECT COUNT( ALL - 86 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3480
SELECT COUNT ( ALL - 86 ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3481
SELECT DISTINCT - - 15 * + 90 * + 30 + + CAST( - 56 AS SIGNED ) + 53 col2
----
40497

skipif mysql # not compatible
query I rowsort label-3481
SELECT DISTINCT - - 15 * + 90 * + 30 + + CAST ( - 56 AS INTEGER ) + 53 col2
----
40497

onlyif mysql # aggregate syntax: 
query I rowsort label-3482
SELECT - 60 + - COUNT( DISTINCT 57 ) AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-3482
SELECT - 60 + - COUNT ( DISTINCT 57 ) AS col2
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3483
SELECT DISTINCT + 79 * CASE + 39 WHEN + 46 / - CAST( NULL AS SIGNED ) THEN 96 END + + + 36 + - 1 - + + 8 - - 44 / NULLIF ( - - 98, COUNT( + 58 ) + - + COUNT( * ) / + 57 * 46 - + 32 + + - 56 ) * - 84 * - COUNT( * ) + + COUNT( * ) + - - 19 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3483
SELECT DISTINCT + 79 * CASE + 39 WHEN + 46 / - CAST ( NULL AS INTEGER ) THEN 96 END + + + 36 + - 1 - + + 8 - - 44 / NULLIF ( - - 98, COUNT ( + 58 ) + - + COUNT ( * ) / + 57 * 46 - + 32 + + - 56 ) * - 84 * - COUNT ( * ) + + COUNT ( * ) + - - 19 AS col0
----
NULL

query I rowsort
SELECT ALL ( - - ( - 46 ) ) + + - 78 + + 92
----
-32

query I rowsort
SELECT - ( + 35 ) col2
----
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3486
SELECT ALL - COUNT( * ) + 70 DIV - + 9 AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-3486
SELECT ALL - COUNT ( * ) + 70 / - + 9 AS col0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-3487
SELECT - COUNT( DISTINCT + 8 ) * - 51
----
51

skipif mysql # not compatible
query I rowsort label-3487
SELECT - COUNT ( DISTINCT + 8 ) * - 51
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3488
SELECT DISTINCT + MAX( DISTINCT - + 10 ) + + 41
----
31

skipif mysql # not compatible
query I rowsort label-3488
SELECT DISTINCT + MAX ( DISTINCT - + 10 ) + + 41
----
31

query II rowsort
SELECT ALL 75 + - 58 AS col0, - 61
----
17
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-3490
SELECT + MAX( DISTINCT + + 68 ) - - 25
----
93

skipif mysql # not compatible
query I rowsort label-3490
SELECT + MAX ( DISTINCT + + 68 ) - - 25
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3491
SELECT DISTINCT COUNT( * ) * + - 55 AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-3491
SELECT DISTINCT COUNT ( * ) * + - 55 AS col0
----
-55

query I rowsort
SELECT 33 * - 55 AS col2
----
-1815

onlyif mysql # aggregate syntax: 
query I rowsort label-3493
SELECT ALL 46 * + COUNT( * )
----
46

skipif mysql # not compatible
query I rowsort label-3493
SELECT ALL 46 * + COUNT ( * )
----
46

query I rowsort
SELECT DISTINCT 5 - - - 86 AS col1
----
-81

query I rowsort
SELECT ALL 40 - 11 AS col2
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3496
SELECT ALL COALESCE ( COUNT( * ), + CAST( NULL AS SIGNED ) ) * + - 96
----
-96

skipif mysql # not compatible
query I rowsort label-3496
SELECT ALL COALESCE ( COUNT ( * ), + CAST ( NULL AS INTEGER ) ) * + - 96
----
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-3497
SELECT 38 + + NULLIF ( + + 65, + 43 ) DIV - 73
----
38

skipif mysql # not compatible
query I rowsort label-3497
SELECT 38 + + NULLIF ( + + 65, + 43 ) / - 73
----
38

query I rowsort
SELECT ALL 4 - + + 23 AS col2
----
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-3499
SELECT - 23 DIV - 14 + - 23 DIV - - 20
----
0

skipif mysql # not compatible
query I rowsort label-3499
SELECT - 23 / - 14 + - 23 / - - 20
----
0

query I rowsort
SELECT + 61 * 57 + + 10
----
3487

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3501
SELECT 90 / + + CAST( NULL AS SIGNED ) * + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3501
SELECT 90 / + + CAST ( NULL AS INTEGER ) * + + COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3502
SELECT DISTINCT 98 DIV 51 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3502
SELECT DISTINCT 98 / 51 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3503
SELECT 99 * - - COUNT( * ) col1
----
99

skipif mysql # not compatible
query I rowsort label-3503
SELECT 99 * - - COUNT ( * ) col1
----
99

query II rowsort
SELECT ( - 8 ) + + 67 col0, 97 AS col1
----
59
97

onlyif mysql # DIV for integer division: 
query II rowsort label-3505
SELECT ALL 44 DIV 58 * - 99, + 43 AS col2
----
0
43

skipif mysql # not compatible
query II rowsort label-3505
SELECT ALL 44 / 58 * - 99, + 43 AS col2
----
0
43

onlyif mysql # DIV for integer division: 
query I rowsort label-3506
SELECT 80 DIV + - 38
----
-2

skipif mysql # not compatible
query I rowsort label-3506
SELECT 80 / + - 38
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3507
SELECT 10 * + + 73 + + + 84 * - COALESCE ( COUNT( * ), 1, 99 - - 45 ) * - SUM( DISTINCT - 39 ) AS col0
----
-2546

skipif mysql # not compatible
query I rowsort label-3507
SELECT 10 * + + 73 + + + 84 * - COALESCE ( COUNT ( * ), 1, 99 - - 45 ) * - SUM ( DISTINCT - 39 ) AS col0
----
-2546

query I rowsort
SELECT 89 * 26
----
2314

onlyif mysql # aggregate syntax: 
query I rowsort label-3509
SELECT + MIN( ALL 40 ) AS col2
----
40

skipif mysql # not compatible
query I rowsort label-3509
SELECT + MIN ( ALL 40 ) AS col2
----
40

query I rowsort
SELECT - 65 + 34
----
-31

query II rowsort
SELECT ALL + + NULLIF ( + 76, - 25 ) + 91 * - + 37, - 45 AS col1
----
-3291
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3512
SELECT + - NULLIF ( + 67, 37 * - - CAST( + 60 AS SIGNED ) ) AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-3512
SELECT + - NULLIF ( + 67, 37 * - - CAST ( + 60 AS INTEGER ) ) AS col1
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-3513
SELECT + COALESCE ( - + 30, + COUNT( * ), + - COUNT( * ) - + 29 ) AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-3513
SELECT + COALESCE ( - + 30, + COUNT ( * ), + - COUNT ( * ) - + 29 ) AS col2
----
-30

query I rowsort
SELECT ALL - CASE WHEN NOT COALESCE ( + 92, 1 ) <= + 67 + + 47 / + 12 THEN - 58 END AS col1
----
58

query I rowsort
SELECT DISTINCT + + 17 + - 82 * - 28 AS col2
----
2313

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3516
SELECT ALL + + CASE NULLIF ( 64, + CAST( - - ( + ( + ( + 41 ) ) ) AS SIGNED ) * + 97 ) WHEN + 77 THEN NULL WHEN + 67 THEN AVG ( 17 ) END * - 78
----
NULL

skipif mysql # not compatible
query I rowsort label-3516
SELECT ALL + + CASE NULLIF ( 64, + CAST ( - - ( + ( + ( + 41 ) ) ) AS INTEGER ) * + 97 ) WHEN + 77 THEN NULL WHEN + 67 THEN AVG ( 17 ) END * - 78
----
NULL

query I rowsort
SELECT DISTINCT - 79 + ( + 13 ) + - 45
----
-111

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3518
SELECT 57 * COUNT( * ) + + COUNT( * ) + + 5 + ( 19 ) DIV + 55 AS col2
----
63

skipif mysql # not compatible
query I rowsort label-3518
SELECT 57 * COUNT ( * ) + + COUNT ( * ) + + 5 + ( 19 ) / + 55 AS col2
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3519
SELECT - COUNT( DISTINCT 73 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-3519
SELECT - COUNT ( DISTINCT 73 ) col0
----
-1

query I rowsort
SELECT ALL - - 29 + + + 65 AS col2
----
94

query I rowsort
SELECT 14 + 61 + + 80 AS col1
----
155

query I rowsort
SELECT 4 - - 17
----
21

query I rowsort
SELECT ALL 64 - + 6
----
58

query I rowsort
SELECT 55 + 61
----
116

onlyif mysql # aggregate syntax: 
query II rowsort label-3525
SELECT DISTINCT COUNT( * ) col2, + 89 AS col0
----
1
89

skipif mysql # not compatible
query II rowsort label-3525
SELECT DISTINCT COUNT ( * ) col2, + 89 AS col0
----
1
89

onlyif mysql # aggregate syntax: 
query I rowsort label-3526
SELECT COUNT( + 10 ) * - - 37
----
37

skipif mysql # not compatible
query I rowsort label-3526
SELECT COUNT ( + 10 ) * - - 37
----
37

query I rowsort
SELECT 83 + + - ( 44 ) col0
----
39

query I rowsort
SELECT ALL 57 * 7
----
399

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3529
SELECT 56 AS col0, + CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) * + 72 col1
----
56
NULL

skipif mysql # not compatible
query II rowsort label-3529
SELECT 56 AS col0, + CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) * + 72 col1
----
56
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3530
SELECT ( + + COUNT( * ) ) + 21 + 94 * + 75
----
7072

skipif mysql # not compatible
query I rowsort label-3530
SELECT ( + + COUNT ( * ) ) + 21 + 94 * + 75
----
7072

onlyif mysql # aggregate syntax: 
query I rowsort label-3531
SELECT DISTINCT 92 * - COUNT( * ) AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-3531
SELECT DISTINCT 92 * - COUNT ( * ) AS col0
----
-92

query II rowsort
SELECT ALL - 44 AS col0, - 39 * + - 25 AS col2
----
-44
975

query II rowsort
SELECT DISTINCT - 15 AS col0, 37
----
-15
37

onlyif mysql # aggregate syntax: 
query I rowsort label-3534
SELECT + COUNT( + 2 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3534
SELECT + COUNT ( + 2 ) AS col1
----
1

query I rowsort
SELECT ALL 38 * 55 AS col2
----
2090

query II rowsort
SELECT DISTINCT 56 * 22 AS col2, 30
----
1232
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3537
SELECT ALL - NULLIF ( + 47, - CASE + + CAST( NULL AS SIGNED ) WHEN COUNT( * ) * - 98 THEN NULL WHEN 82 * - - 61 + - 99 * + ( - 66 ) THEN NULL WHEN 85 THEN - 10 * + SUM( DISTINCT 80 ) END ) AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-3537
SELECT ALL - NULLIF ( + 47, - CASE + + CAST ( NULL AS INTEGER ) WHEN COUNT ( * ) * - 98 THEN NULL WHEN 82 * - - 61 + - 99 * + ( - 66 ) THEN NULL WHEN 85 THEN - 10 * + SUM ( DISTINCT 80 ) END ) AS col1
----
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3538
SELECT 1 DIV + 86 * - - 38 - + SUM( - 15 ) - - 76 col1
----
91

skipif mysql # not compatible
query I rowsort label-3538
SELECT 1 / + 86 * - - 38 - + SUM ( - 15 ) - - 76 col1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3539
SELECT ALL + 21 * COUNT( * ) * + 71 + + 67
----
1558

skipif mysql # not compatible
query I rowsort label-3539
SELECT ALL + 21 * COUNT ( * ) * + 71 + + 67
----
1558

onlyif mysql # aggregate syntax: 
query I rowsort label-3540
SELECT ALL - 85 * - 75 + 82 + + + 48 + 93 * - COALESCE ( - 67, + COUNT( * ) + 6 ) * + 74 - - COUNT( * ) + - 11 AS col0
----
467589

skipif mysql # not compatible
query I rowsort label-3540
SELECT ALL - 85 * - 75 + 82 + + + 48 + 93 * - COALESCE ( - 67, + COUNT ( * ) + 6 ) * + 74 - - COUNT ( * ) + - 11 AS col0
----
467589

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3541
SELECT ALL - + 60 * CAST( + 49 AS SIGNED ) + + + 8
----
-2932

skipif mysql # not compatible
query I rowsort label-3541
SELECT ALL - + 60 * CAST ( + 49 AS INTEGER ) + + + 8
----
-2932

onlyif mysql # aggregate syntax: 
query I rowsort label-3542
SELECT + COALESCE ( - 74, 64 * - ( - 64 ) * + 23, + 45 ) * - COUNT( * )
----
74

skipif mysql # not compatible
query I rowsort label-3542
SELECT + COALESCE ( - 74, 64 * - ( - 64 ) * + 23, + 45 ) * - COUNT ( * )
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3543
SELECT ALL ( - 86 ) * MIN( ALL 72 ) + - COUNT( * ) + - ( NULLIF ( - 79, + + 4 ) ) + + 64 + - + 98 * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3543
SELECT ALL ( - 86 ) * MIN ( ALL 72 ) + - COUNT ( * ) + - ( NULLIF ( - 79, + + 4 ) ) + + 64 + - + 98 * + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3544
SELECT ALL - + 29 * + 7 + + 96 * + 2 + + NULLIF ( - COUNT( * ), + - 86 ) col2
----
-12

skipif mysql # not compatible
query I rowsort label-3544
SELECT ALL - + 29 * + 7 + + 96 * + 2 + + NULLIF ( - COUNT ( * ), + - 86 ) col2
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-3545
SELECT DISTINCT + COUNT( * ) * + 57
----
57

skipif mysql # not compatible
query I rowsort label-3545
SELECT DISTINCT + COUNT ( * ) * + 57
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-3546
SELECT ALL + COUNT( DISTINCT 93 )
----
1

skipif mysql # not compatible
query I rowsort label-3546
SELECT ALL + COUNT ( DISTINCT 93 )
----
1

query I rowsort
SELECT DISTINCT + 49 + + 37 - COALESCE ( + - ( - 75 ), + 74 )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-3548
SELECT + - COUNT( * ) * - ( - 35 )
----
-35

skipif mysql # not compatible
query I rowsort label-3548
SELECT + - COUNT ( * ) * - ( - 35 )
----
-35

query I rowsort
SELECT DISTINCT - 67 - 21
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-3550
SELECT - + 61 + - NULLIF ( MAX( ALL - 13 ), + 1 ) * - 87 AS col0
----
-1192

skipif mysql # not compatible
query I rowsort label-3550
SELECT - + 61 + - NULLIF ( MAX ( ALL - 13 ), + 1 ) * - 87 AS col0
----
-1192

query II rowsort
SELECT ALL 24 col1, + 67 + + CASE - + 66 WHEN + 66 THEN NULL WHEN - 98 + 89 / + - 70 THEN - 74 END + - ( - 84 ) * - + 33 - - 23
----
24
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3552
SELECT ALL COUNT( - - 70 )
----
1

skipif mysql # not compatible
query I rowsort label-3552
SELECT ALL COUNT ( - - 70 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3553
SELECT DISTINCT + 27 * + + COUNT( * ) * + + 24 AS col2
----
648

skipif mysql # not compatible
query I rowsort label-3553
SELECT DISTINCT + 27 * + + COUNT ( * ) * + + 24 AS col2
----
648

query I rowsort
SELECT ALL ( - ( + + 78 ) )
----
-78

query II rowsort
SELECT DISTINCT - 99 - 42 + + 32, + 77 AS col1
----
-109
77

query II rowsort
SELECT ALL + 36 * + - 68 AS col0, + 97
----
-2448
97

query I rowsort
SELECT ALL NULLIF ( - 88, + 69 ) AS col0
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-3558
SELECT - MAX( + 17 ) - + 83 * - - 81
----
-6740

skipif mysql # not compatible
query I rowsort label-3558
SELECT - MAX ( + 17 ) - + 83 * - - 81
----
-6740

onlyif mysql # DIV for integer division: 
query I rowsort label-3559
SELECT - 45 DIV + + 78 * + 48 * 70 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3559
SELECT - 45 / + + 78 * + 48 * 70 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3560
SELECT + 51 * + 54 AS col2, - 28 * ( - COALESCE ( NULLIF ( - - 16, - 55 ), + 58 DIV - 90 + 62 ) ) + + MIN( ALL ( - ( - + 0 ) ) ) DIV - 62 * + + ( - 90 )
----
2754
448

skipif mysql # not compatible
query II rowsort label-3560
SELECT + 51 * + 54 AS col2, - 28 * ( - COALESCE ( NULLIF ( - - 16, - 55 ), + 58 / - 90 + 62 ) ) + + MIN ( ALL ( - ( - + 0 ) ) ) / - 62 * + + ( - 90 )
----
2754
448

query II rowsort
SELECT - 63 - - 73 AS col0, 71
----
10
71

query I rowsort
SELECT ALL - ( + 31 ) * 34 * 21 AS col2
----
-22134

query I rowsort
SELECT DISTINCT - 19 * - 33 AS col1
----
627

query I rowsort
SELECT DISTINCT + 64 * + + 28 AS col0
----
1792

onlyif mysql # aggregate syntax: 
query I rowsort label-3565
SELECT - ( 84 ) * + MAX( - + 0 ) * - MAX( 98 )
----
0

skipif mysql # not compatible
query I rowsort label-3565
SELECT - ( 84 ) * + MAX ( - + 0 ) * - MAX ( 98 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3566
SELECT ALL NULLIF ( + CAST( NULL AS SIGNED ), 18 + - ( - COUNT( * ) ) ) + - ( 92 ) * + + CAST( 24 AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3566
SELECT ALL NULLIF ( + CAST ( NULL AS INTEGER ), 18 + - ( - COUNT ( * ) ) ) + - ( 92 ) * + + CAST ( 24 AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3567
SELECT + CAST( NULL AS DECIMAL ) - - + 2 / - 2
----
NULL

skipif mysql # not compatible
query I rowsort label-3567
SELECT + CAST ( NULL AS REAL ) - - + 2 / - 2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3568
SELECT ( ( + CASE + 30 WHEN + 77 + ( - + 97 ) THEN + - 35 * + - 34 / + 5 / - - 2 * 43 WHEN 75 / COALESCE ( + ( COUNT( * ) ), + 4 * + + 22 ) THEN + ( - 39 ) * - ( - 25 ) END ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3568
SELECT ( ( + CASE + 30 WHEN + 77 + ( - + 97 ) THEN + - 35 * + - 34 / + 5 / - - 2 * 43 WHEN 75 / COALESCE ( + ( COUNT ( * ) ), + 4 * + + 22 ) THEN + ( - 39 ) * - ( - 25 ) END ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3569
SELECT + CASE + CAST( NULL AS SIGNED ) WHEN + - 73 THEN - - COUNT( * ) WHEN - + 52 / + MAX( + 18 ) THEN NULL WHEN COUNT( * ) THEN + 58 WHEN - + 71 * - 75 + + 45 - - + COALESCE ( - 12, COUNT( * ), - SUM( - - 9 ) * + 8 ) * - + 29 - - + 7 * ( - - 1 ) THEN NULL ELSE NULL END / + 39 + 4 + - + COUNT( * ) * - 87 * 41 + - 40 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3569
SELECT + CASE + CAST ( NULL AS INTEGER ) WHEN + - 73 THEN - - COUNT ( * ) WHEN - + 52 / + MAX ( + 18 ) THEN NULL WHEN COUNT ( * ) THEN + 58 WHEN - + 71 * - 75 + + 45 - - + COALESCE ( - 12, COUNT ( * ), - SUM ( - - 9 ) * + 8 ) * - + 29 - - + 7 * ( - - 1 ) THEN NULL ELSE NULL END / + 39 + 4 + - + COUNT ( * ) * - 87 * 41 + - 40 AS col0
----
NULL

query I rowsort
SELECT + 61 * + 38 * - 97 * - 96
----
21585216

onlyif mysql # aggregate syntax: 
query I rowsort label-3571
SELECT + + 81 * - 70 + - COUNT( * ) + + + COUNT( * ) - - MIN( + + ( 55 ) ) * + + COUNT( * )
----
-5615

skipif mysql # not compatible
query I rowsort label-3571
SELECT + + 81 * - 70 + - COUNT ( * ) + + + COUNT ( * ) - - MIN ( + + ( 55 ) ) * + + COUNT ( * )
----
-5615

onlyif mysql # aggregate syntax: 
query I rowsort label-3572
SELECT ALL 25 * - 8 * + ( COUNT( * ) ) AS col2
----
-200

skipif mysql # not compatible
query I rowsort label-3572
SELECT ALL 25 * - 8 * + ( COUNT ( * ) ) AS col2
----
-200

onlyif mysql # DIV for integer division: 
query I rowsort label-3573
SELECT ALL - ( - 59 ) DIV - 18 + 91
----
88

skipif mysql # not compatible
query I rowsort label-3573
SELECT ALL - ( - 59 ) / - 18 + 91
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-3574
SELECT ALL + - SUM( ALL - - 11 ) AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-3574
SELECT ALL + - SUM ( ALL - - 11 ) AS col2
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-3575
SELECT + - NULLIF ( + - COALESCE ( 26, - + ( - 82 ) ), - - 47 * - + 98 * + COUNT( * ) - - COUNT( * ) )
----
26

skipif mysql # not compatible
query I rowsort label-3575
SELECT + - NULLIF ( + - COALESCE ( 26, - + ( - 82 ) ), - - 47 * - + 98 * + COUNT ( * ) - - COUNT ( * ) )
----
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3576
SELECT + 13 + + - COUNT( * ) + - 11 DIV - 94
----
12

skipif mysql # not compatible
query I rowsort label-3576
SELECT + 13 + + - COUNT ( * ) + - 11 / - 94
----
12

query I rowsort
SELECT ALL - 37 * + - 12 * + 95 * + 13 AS col1
----
548340

onlyif mysql # aggregate syntax: 
query I rowsort label-3578
SELECT COALESCE ( - 21, 18 ) * - + 3 + + 85 + + + 0 + + COUNT( * )
----
149

skipif mysql # not compatible
query I rowsort label-3578
SELECT COALESCE ( - 21, 18 ) * - + 3 + + 85 + + + 0 + + COUNT ( * )
----
149

query I rowsort
SELECT ALL - 20 * - - 8
----
-160

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3580
SELECT + + 51 + 15 DIV + COUNT( * ) + + 52 * + MIN( DISTINCT 12 ) * + MAX( ALL + + 63 ) AS col0
----
39378

skipif mysql # not compatible
query I rowsort label-3580
SELECT + + 51 + 15 / + COUNT ( * ) + + 52 * + MIN ( DISTINCT 12 ) * + MAX ( ALL + + 63 ) AS col0
----
39378

onlyif mysql # aggregate syntax: 
query I rowsort label-3581
SELECT + COUNT( * ) * + + 84 AS col2
----
84

skipif mysql # not compatible
query I rowsort label-3581
SELECT + COUNT ( * ) * + + 84 AS col2
----
84

query I rowsort
SELECT ALL CASE 73 WHEN - 45 THEN 60 * + ( - 97 ) END / + ( + 57 ) AS col1
----
NULL

query I rowsort
SELECT + 66 * + - 56 * + - 81 + - 36 AS col0
----
299340

query I rowsort
SELECT + 29 * - 85 AS col0
----
-2465

query I rowsort
SELECT ALL - - 99 * 20 * 55 * - 52
----
-5662800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3586
SELECT ALL - 94 DIV - - 11 * + CAST( - - COUNT( * ) AS SIGNED ) - MAX( DISTINCT + + 24 )
----
-32

skipif mysql # not compatible
query I rowsort label-3586
SELECT ALL - 94 / - - 11 * + CAST ( - - COUNT ( * ) AS INTEGER ) - MAX ( DISTINCT + + 24 )
----
-32

query I rowsort
SELECT + - 24 * 61 + 45 AS col2
----
-1419

query I rowsort
SELECT DISTINCT 29 * - - NULLIF ( - 3, - + 27 ) AS col0
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-3589
SELECT MAX( + ( 51 ) )
----
51

skipif mysql # not compatible
query I rowsort label-3589
SELECT MAX ( + ( 51 ) )
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-3590
SELECT COUNT( * ) AS col2, 70 * - - 28 * - COUNT( * ) AS col2
----
1
-1960

skipif mysql # not compatible
query II rowsort label-3590
SELECT COUNT ( * ) AS col2, 70 * - - 28 * - COUNT ( * ) AS col2
----
1
-1960

onlyif mysql # aggregate syntax: 
query I rowsort label-3591
SELECT ALL 64 * + + 6 * + COUNT( * )
----
384

skipif mysql # not compatible
query I rowsort label-3591
SELECT ALL 64 * + + 6 * + COUNT ( * )
----
384

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3592
SELECT - CAST( NULL AS SIGNED ) AS col1, - 82 + 43
----
NULL
-39

skipif mysql # not compatible
query II rowsort label-3592
SELECT - CAST ( NULL AS INTEGER ) AS col1, - 82 + 43
----
NULL
-39

query I rowsort
SELECT + 22 - - + 16 col1
----
38

onlyif mysql # DIV for integer division: 
query II rowsort label-3594
SELECT DISTINCT 86 + 68 DIV 96 AS col0, - 8
----
86
-8

skipif mysql # not compatible
query II rowsort label-3594
SELECT DISTINCT 86 + 68 / 96 AS col0, - 8
----
86
-8

query I rowsort
SELECT DISTINCT 80 + - - 26
----
106

query I rowsort
SELECT ALL - 78 + 35 AS col2
----
-43

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3597
SELECT - 9 + - NULLIF ( + - 14, + + 14 + - ( - + 84 ) * + CAST( NULL AS DECIMAL ) )
----
5

skipif mysql # not compatible
query I rowsort label-3597
SELECT - 9 + - NULLIF ( + - 14, + + 14 + - ( - + 84 ) * + CAST ( NULL AS REAL ) )
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-3598
SELECT ALL - 6 DIV 49 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3598
SELECT ALL - 6 / 49 AS col2
----
0

query II rowsort
SELECT 97 col0, 44 AS col1
----
97
44

query I rowsort
SELECT DISTINCT - 88 * - + 27 * - - 35
----
83160

query I rowsort
SELECT - 62 + 30
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-3602
SELECT ALL - MAX( 88 ) + + + 64 * + ( 8 )
----
424

skipif mysql # not compatible
query I rowsort label-3602
SELECT ALL - MAX ( 88 ) + + + 64 * + ( 8 )
----
424

query I rowsort
SELECT - 73 * - 24 AS col0
----
1752

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3604
SELECT DISTINCT - 32 * - CAST( ( ( - MAX( DISTINCT + 26 ) ) ) AS SIGNED )
----
-832

skipif mysql # not compatible
query I rowsort label-3604
SELECT DISTINCT - 32 * - CAST ( ( ( - MAX ( DISTINCT + 26 ) ) ) AS INTEGER )
----
-832

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3605
SELECT DISTINCT - CASE - 39 WHEN - COUNT( * ) * + 52 - + - CAST( - - CAST( 10 AS SIGNED ) AS SIGNED ) THEN + + 61 + - 92 ELSE + 3 END
----
-3

skipif mysql # not compatible
query I rowsort label-3605
SELECT DISTINCT - CASE - 39 WHEN - COUNT ( * ) * + 52 - + - CAST ( - - CAST ( 10 AS INTEGER ) AS INTEGER ) THEN + + 61 + - 92 ELSE + 3 END
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3606
SELECT CAST( + CAST( + - 67 AS SIGNED ) AS SIGNED ) * + - COUNT( * )
----
67

skipif mysql # not compatible
query I rowsort label-3606
SELECT CAST ( + CAST ( + - 67 AS INTEGER ) AS INTEGER ) * + - COUNT ( * )
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-3607
SELECT DISTINCT 46 DIV - + 53 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3607
SELECT DISTINCT 46 / - + 53 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3608
SELECT DISTINCT - COUNT( 94 ) - 4 DIV 41 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3608
SELECT DISTINCT - COUNT ( 94 ) - 4 / 41 AS col2
----
-1

query I rowsort
SELECT DISTINCT - - ( + 84 )
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3610
SELECT + - CAST( NULL AS SIGNED ) col2, 28 AS col0
----
NULL
28

skipif mysql # not compatible
query II rowsort label-3610
SELECT + - CAST ( NULL AS INTEGER ) col2, 28 AS col0
----
NULL
28

onlyif mysql # aggregate syntax: 
query I rowsort label-3611
SELECT MAX( DISTINCT - + 40 )
----
-40

skipif mysql # not compatible
query I rowsort label-3611
SELECT MAX ( DISTINCT - + 40 )
----
-40

query I rowsort
SELECT 89 * + - NULLIF ( 94, - 62 * - 76 / + 17 + + - 73 ) * - 36 AS col1
----
301176

query II rowsort
SELECT NULLIF ( 94, + 51 ), - 11 AS col1
----
94
-11

query II rowsort
SELECT DISTINCT - 40 col2, 15 + - 62
----
-40
-47

query I rowsort
SELECT DISTINCT 71 * + 62 col2
----
4402

onlyif mysql # aggregate syntax: 
query I rowsort label-3616
SELECT ( + COALESCE ( 94, - 76, 17, - - CASE + + COUNT( 82 ) WHEN + - 83 + + 3 / + NULLIF ( - 79, + 66 - + 3 ) + + 62 THEN 24 END ) ) + + MAX( 73 ) + - 65
----
102

skipif mysql # not compatible
query I rowsort label-3616
SELECT ( + COALESCE ( 94, - 76, 17, - - CASE + + COUNT ( 82 ) WHEN + - 83 + + 3 / + NULLIF ( - 79, + 66 - + 3 ) + + 62 THEN 24 END ) ) + + MAX ( 73 ) + - 65
----
102

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3617
SELECT 48 / + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3617
SELECT 48 / + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 81 + + 77 + 62 * + 95 AS col2
----
6048

query I rowsort
SELECT 54 * + - 42
----
-2268

query I rowsort
SELECT DISTINCT 16 + 69
----
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3621
SELECT MAX( ALL + 97 ) + - 33 + + 29 * 33 DIV - COUNT( * ) * COUNT( * ), + COUNT( * ) + 4 * + MIN( ALL 45 ) + - - COALESCE ( + 31, + - 68 * + 80 * - + 85 + 84 ) col0
----
-893
212

skipif mysql # not compatible
query II rowsort label-3621
SELECT MAX ( ALL + 97 ) + - 33 + + 29 * 33 / - COUNT ( * ) * COUNT ( * ), + COUNT ( * ) + 4 * + MIN ( ALL 45 ) + - - COALESCE ( + 31, + - 68 * + 80 * - + 85 + 84 ) col0
----
-893
212

query I rowsort
SELECT ALL 34 / + - ( CASE + 1 WHEN 36 THEN 67 END ) AS col1
----
NULL

query I rowsort
SELECT ALL 45 + + - 24
----
21

query I rowsort
SELECT 83 * + ( - + 2 )
----
-166

onlyif mysql # aggregate syntax: 
query I rowsort label-3625
SELECT ALL - 10 + MIN( 65 ) AS col2
----
55

skipif mysql # not compatible
query I rowsort label-3625
SELECT ALL - 10 + MIN ( 65 ) AS col2
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-3626
SELECT ALL 15 + MAX( ALL + ( + + 53 ) ) + - + 7
----
61

skipif mysql # not compatible
query I rowsort label-3626
SELECT ALL 15 + MAX ( ALL + ( + + 53 ) ) + - + 7
----
61

query I rowsort
SELECT ALL 74 * 75 * - - 53 * - - 60 AS col0
----
17649000

query I rowsort
SELECT DISTINCT 9 * + 93 * 87
----
72819

onlyif mysql # aggregate syntax: 
query I rowsort label-3629
SELECT ALL MIN( ALL + 82 ) + COUNT( * ) AS col2
----
83

skipif mysql # not compatible
query I rowsort label-3629
SELECT ALL MIN ( ALL + 82 ) + COUNT ( * ) AS col2
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3630
SELECT ( 45 ) - 37 * 77 * + CASE + COALESCE ( - AVG ( - + 95 ), - COUNT( * ) + + 87 + - + 55 + + - 23 ) WHEN - MIN( - 42 ) / 87 THEN - + CAST( NULL AS SIGNED ) END * - + MAX( - 28 ) * + + 99, 60 + + - 63 col2
----
NULL
-3

skipif mysql # not compatible
query II rowsort label-3630
SELECT ( 45 ) - 37 * 77 * + CASE + COALESCE ( - AVG ( - + 95 ), - COUNT ( * ) + + 87 + - + 55 + + - 23 ) WHEN - MIN ( - 42 ) / 87 THEN - + CAST ( NULL AS INTEGER ) END * - + MAX ( - 28 ) * + + 99, 60 + + - 63 col2
----
NULL
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3631
SELECT 98 - + ( + 71 ) + + + 12 * - COUNT( * ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-3631
SELECT 98 - + ( + 71 ) + + + 12 * - COUNT ( * ) AS col0
----
15

query I rowsort
SELECT DISTINCT 73 * 73 col2
----
5329

onlyif mysql # aggregate syntax: 
query II rowsort label-3633
SELECT ALL COUNT( * ) - - + 61 * COUNT( + 52 ) AS col2, + 42 + - COUNT( * ) * + 14
----
62
28

skipif mysql # not compatible
query II rowsort label-3633
SELECT ALL COUNT ( * ) - - + 61 * COUNT ( + 52 ) AS col2, + 42 + - COUNT ( * ) * + 14
----
62
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3634
SELECT CASE 64 WHEN - + COUNT( - 55 ) + - MIN( DISTINCT + 3 ) THEN ( - + 48 ) WHEN + - 84 * + - COALESCE ( 45, - AVG ( + + COALESCE ( - ( + CASE + 4 WHEN - 56 THEN + - CAST( + - 22 AS SIGNED ) ELSE NULL END ), - - 94 * - 79 + - ( + 67 ) ) ) ) THEN - 63 + - CAST( NULL AS SIGNED ) * + ( - ( 82 ) ) * - 20 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3634
SELECT CASE 64 WHEN - + COUNT ( - 55 ) + - MIN ( DISTINCT + 3 ) THEN ( - + 48 ) WHEN + - 84 * + - COALESCE ( 45, - AVG ( + + COALESCE ( - ( + CASE + 4 WHEN - 56 THEN + - CAST ( + - 22 AS INTEGER ) ELSE NULL END ), - - 94 * - 79 + - ( + 67 ) ) ) ) THEN - 63 + - CAST ( NULL AS INTEGER ) * + ( - ( 82 ) ) * - 20 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3635
SELECT ALL - + 32 DIV - 6
----
5

skipif mysql # not compatible
query I rowsort label-3635
SELECT ALL - + 32 / - 6
----
5

query I rowsort
SELECT 27 + 27 col1
----
54

query I rowsort
SELECT - ( 42 ) - + 83 + - 48 + - + 81 AS col1
----
-254

query I rowsort
SELECT 58 * + 86 + + - 11
----
4977

query I rowsort
SELECT + 40 * + 31 + + - 28
----
1212

query I rowsort
SELECT + 98 + 68 + + + 88
----
254

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3641
SELECT - NULLIF ( - CAST( NULL AS SIGNED ), + 99 ) * - 69 * + COALESCE ( + 59, + NULLIF ( + - 90, + + 61 ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3641
SELECT - NULLIF ( - CAST ( NULL AS INTEGER ), + 99 ) * - 69 * + COALESCE ( + 59, + NULLIF ( + - 90, + + 61 ) ) col2
----
NULL

query I rowsort
SELECT DISTINCT + - 90 * 63 col2
----
-5670

onlyif mysql # aggregate syntax: 
query I rowsort label-3643
SELECT 27 * - COUNT( 21 )
----
-27

skipif mysql # not compatible
query I rowsort label-3643
SELECT 27 * - COUNT ( 21 )
----
-27

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3644
SELECT + 49 * 81 + - ( + + 52 ) + + + 13 * - CASE 36 WHEN + - 8 THEN - 15 + - - ( + - 60 ) + - CAST( NULL AS DECIMAL ) * - + COALESCE ( - COUNT( * ), - 8, 63 ) + 30 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3644
SELECT + 49 * 81 + - ( + + 52 ) + + + 13 * - CASE 36 WHEN + - 8 THEN - 15 + - - ( + - 60 ) + - CAST ( NULL AS REAL ) * - + COALESCE ( - COUNT ( * ), - 8, 63 ) + 30 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3645
SELECT ALL + 88 DIV ( - 11 ) AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-3645
SELECT ALL + 88 / ( - 11 ) AS col0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-3646
SELECT - + 35 * - 66 + + MAX( - + 79 )
----
2231

skipif mysql # not compatible
query I rowsort label-3646
SELECT - + 35 * - 66 + + MAX ( - + 79 )
----
2231

query II rowsort
SELECT 6 * + 26 AS col2, + 54 * - + 78 AS col0
----
156
-4212

onlyif mysql # aggregate syntax: 
query I rowsort label-3648
SELECT DISTINCT - 86 + + + COUNT( * ) - - - 65 + 59 * + + 72 AS col2
----
4098

skipif mysql # not compatible
query I rowsort label-3648
SELECT DISTINCT - 86 + + + COUNT ( * ) - - - 65 + 59 * + + 72 AS col2
----
4098

onlyif mysql # aggregate syntax: 
query I rowsort label-3649
SELECT SUM( ALL NULLIF ( - 96, + 18 ) ) AS col0
----
-96

skipif mysql # not compatible
query I rowsort label-3649
SELECT SUM ( ALL NULLIF ( - 96, + 18 ) ) AS col0
----
-96

query I rowsort
SELECT ALL - 23 + - + 21
----
-44

onlyif mysql # aggregate syntax: 
query II rowsort label-3651
SELECT 36 AS col0, 33 + - + 41 + - - MAX( DISTINCT - 72 ) + + 8
----
36
-72

skipif mysql # not compatible
query II rowsort label-3651
SELECT 36 AS col0, 33 + - + 41 + - - MAX ( DISTINCT - 72 ) + + 8
----
36
-72

query II rowsort
SELECT DISTINCT - 51 AS col2, 79
----
-51
79

query I rowsort
SELECT ALL 86 + - 39
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3654
SELECT 14 * 71 + - - NULLIF ( + CAST( - - 21 AS SIGNED ), + AVG ( ALL + 71 ) ) - + - CAST( NULL AS SIGNED ) AS col1, - 6 * + + ( - + 74 )
----
NULL
444

skipif mysql # not compatible
query II rowsort label-3654
SELECT 14 * 71 + - - NULLIF ( + CAST ( - - 21 AS INTEGER ), + AVG ( ALL + 71 ) ) - + - CAST ( NULL AS INTEGER ) AS col1, - 6 * + + ( - + 74 )
----
NULL
444

query I rowsort
SELECT ALL 74 * - + 65 AS col1
----
-4810

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3656
SELECT ALL 92 + - + NULLIF ( + + 14, 45 ) * + CASE + - 97 WHEN CASE WHEN NOT - 66 > - 47 + + + 69 THEN - 26 END THEN + 75 + SUM( DISTINCT + 63 ) WHEN 61 DIV COALESCE ( - - 53, - - MIN( ALL - 32 ) ) THEN ( + MAX( ALL - 0 ) ) * + 63 DIV - MIN( - 31 ) ELSE + + 95 * + ( ( 86 ) ) END * NULLIF ( 46 * - 10, 28 )
----
52614892

skipif mysql # not compatible
query I rowsort label-3656
SELECT ALL 92 + - + NULLIF ( + + 14, 45 ) * + CASE + - 97 WHEN CASE WHEN NOT - 66 > - 47 + + + 69 THEN - 26 END THEN + 75 + SUM ( DISTINCT + 63 ) WHEN 61 / COALESCE ( - - 53, - - MIN ( ALL - 32 ) ) THEN ( + MAX ( ALL - 0 ) ) * + 63 / - MIN ( - 31 ) ELSE + + 95 * + ( ( 86 ) ) END * NULLIF ( 46 * - 10, 28 )
----
52614892

query I rowsort
SELECT ALL 68 + - 47 AS col0
----
21

query II rowsort
SELECT 89 + - + 41 * 9, 62 AS col2
----
-280
62

onlyif mysql # aggregate syntax: 
query I rowsort label-3659
SELECT DISTINCT NULLIF ( + COUNT( * ), - 96 + + 69 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3659
SELECT DISTINCT NULLIF ( + COUNT ( * ), - 96 + + 69 ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3660
SELECT ALL CAST( NULL AS SIGNED ) * 75 * + COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3660
SELECT ALL CAST ( NULL AS INTEGER ) * 75 * + COUNT ( * ) col2
----
NULL

query I rowsort
SELECT + - 13 + + 70
----
57

query I rowsort
SELECT + + 38 + 11 AS col0
----
49

query I rowsort
SELECT - + ( - ( - - 8 ) )
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3664
SELECT + + 69 * + - COUNT( * )
----
-69

skipif mysql # not compatible
query I rowsort label-3664
SELECT + + 69 * + - COUNT ( * )
----
-69

query I rowsort
SELECT - - 64 + + 82 AS col1
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-3666
SELECT ALL - COUNT( + + 36 ) * NULLIF ( 61, - 81 ) + CASE 93 WHEN + - COALESCE ( - COUNT( DISTINCT 99 ), + 50 * 67 * SUM( DISTINCT - - 10 ) + + 19 ) THEN + 51 * + + 58 WHEN + 44 THEN NULL ELSE - 7 * - + 91 * - ( 43 ) - + 88 END
----
-27540

skipif mysql # not compatible
query I rowsort label-3666
SELECT ALL - COUNT ( + + 36 ) * NULLIF ( 61, - 81 ) + CASE 93 WHEN + - COALESCE ( - COUNT ( DISTINCT 99 ), + 50 * 67 * SUM ( DISTINCT - - 10 ) + + 19 ) THEN + 51 * + + 58 WHEN + 44 THEN NULL ELSE - 7 * - + 91 * - ( 43 ) - + 88 END
----
-27540

query I rowsort
SELECT - 38 * + 14 AS col0
----
-532

onlyif mysql # aggregate syntax: 
query II rowsort label-3668
SELECT - 75, 52 * + NULLIF ( + 43, - 27 * - 80 - + ( - - 10 ) ) * + SUM( + + 39 ) + + 21 AS col0
----
-75
87225

skipif mysql # not compatible
query II rowsort label-3668
SELECT - 75, 52 * + NULLIF ( + 43, - 27 * - 80 - + ( - - 10 ) ) * + SUM ( + + 39 ) + + 21 AS col0
----
-75
87225

query II rowsort
SELECT - 25 AS col2, 72
----
-25
72

query I rowsort
SELECT ALL 65 * + + NULLIF ( - 30, - - 68 ) AS col2
----
-1950

query I rowsort
SELECT DISTINCT + 59 * 9 * - 1
----
-531

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3672
SELECT ALL + - 84 * + 44 * - + 44 + ( 38 ) * + CAST( NULL AS SIGNED ) + - CAST( + 57 AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3672
SELECT ALL + - 84 * + 44 * - + 44 + ( 38 ) * + CAST ( NULL AS INTEGER ) + - CAST ( + 57 AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3673
SELECT + COUNT( + + 69 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3673
SELECT + COUNT ( + + 69 ) AS col2
----
1

query I rowsort
SELECT - + 20 + 5 col0
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3675
SELECT + + ( + - 7 ) - + 20 + + 8 * COUNT( * ) DIV + - 79 AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-3675
SELECT + + ( + - 7 ) - + 20 + + 8 * COUNT ( * ) / + - 79 AS col1
----
-27

query I rowsort
SELECT ALL + 65 * - 33 * - 1 * + 69
----
148005

onlyif mysql # aggregate syntax: 
query I rowsort label-3677
SELECT DISTINCT 43 * - ( + 64 ) * + 52 + - 65 * + + COUNT( * ) AS col2
----
-143169

skipif mysql # not compatible
query I rowsort label-3677
SELECT DISTINCT 43 * - ( + 64 ) * + 52 + - 65 * + + COUNT ( * ) AS col2
----
-143169

query I rowsort
SELECT NULLIF ( 38, + + 29 )
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-3679
SELECT - ( ( + 55 ) ) DIV + 40
----
-1

skipif mysql # not compatible
query I rowsort label-3679
SELECT - ( ( + 55 ) ) / + 40
----
-1

query I rowsort
SELECT DISTINCT - 37 * - + 34 * + - 76 AS col0
----
-95608

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3681
SELECT ALL - COUNT( * ) * + + 92 * - - 88 * - CASE + CASE - COUNT( * ) WHEN 23 THEN + - 33 - + 54 + 80 * + 92 END WHEN - COUNT( * ) + - - 44 + - 1 THEN + - 1 * 16 * 12 END * - 10 + 84 AS col0, - 13 + ( - CAST( 45 AS SIGNED ) ) DIV + COUNT( * ) AS col1
----
NULL
-58

skipif mysql # not compatible
query II rowsort label-3681
SELECT ALL - COUNT ( * ) * + + 92 * - - 88 * - CASE + CASE - COUNT ( * ) WHEN 23 THEN + - 33 - + 54 + 80 * + 92 END WHEN - COUNT ( * ) + - - 44 + - 1 THEN + - 1 * 16 * 12 END * - 10 + 84 AS col0, - 13 + ( - CAST ( 45 AS INTEGER ) ) / + COUNT ( * ) AS col1
----
NULL
-58

query I rowsort
SELECT NULLIF ( 43, - + 92 + - 82 )
----
43

query I rowsort
SELECT ALL - 19 * + 70
----
-1330

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3684
SELECT CASE - 5 WHEN 98 THEN NULL WHEN - ( - 86 ) / - COUNT( * ) + + + ( 15 ) + - 99 * 91 + COALESCE ( 20, 56, + MAX( ALL - - 99 ), - - CAST( + COUNT( * ) AS SIGNED ) ) / + COALESCE ( - 88, + 81 / 30 ) - - + 36 THEN - 20 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3684
SELECT CASE - 5 WHEN 98 THEN NULL WHEN - ( - 86 ) / - COUNT ( * ) + + + ( 15 ) + - 99 * 91 + COALESCE ( 20, 56, + MAX ( ALL - - 99 ), - - CAST ( + COUNT ( * ) AS INTEGER ) ) / + COALESCE ( - 88, + 81 / 30 ) - - + 36 THEN - 20 END AS col0
----
NULL

query I rowsort
SELECT 46 * - + 44 + + 28
----
-1996

query I rowsort
SELECT - 69 - + 16 * + - 28 AS col2
----
379

onlyif mysql # aggregate syntax: 
query III rowsort label-3687
SELECT + 1 AS col2, 53 * 20 * 27 AS col0, MIN( ALL - 33 )
----
1
28620
-33

skipif mysql # not compatible
query III rowsort label-3687
SELECT + 1 AS col2, 53 * 20 * 27 AS col0, MIN ( ALL - 33 )
----
1
28620
-33

query I rowsort
SELECT NULLIF ( - 97, - 83 )
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3689
SELECT ALL COALESCE ( + 44, - 1 * + 74 * 15 - + 62, - 9 ) * - 64 + + CAST( 24 AS SIGNED ) + - COUNT( * )
----
-2793

skipif mysql # not compatible
query I rowsort label-3689
SELECT ALL COALESCE ( + 44, - 1 * + 74 * 15 - + 62, - 9 ) * - 64 + + CAST ( 24 AS INTEGER ) + - COUNT ( * )
----
-2793

onlyif mysql # aggregate syntax: 
query II rowsort label-3690
SELECT COUNT( * ), 60 AS col2
----
1
60

skipif mysql # not compatible
query II rowsort label-3690
SELECT COUNT ( * ), 60 AS col2
----
1
60

onlyif mysql # aggregate syntax: 
query II rowsort label-3691
SELECT COUNT( * ), + 68 - 82 AS col0
----
1
-14

skipif mysql # not compatible
query II rowsort label-3691
SELECT COUNT ( * ), + 68 - 82 AS col0
----
1
-14

query I rowsort
SELECT ALL + 56 * 99
----
5544

onlyif mysql # aggregate syntax: 
query II rowsort label-3693
SELECT ALL - COUNT( * ) * 57 - + 76 * - + 83 AS col2, 98
----
6251
98

skipif mysql # not compatible
query II rowsort label-3693
SELECT ALL - COUNT ( * ) * 57 - + 76 * - + 83 AS col2, 98
----
6251
98

query II rowsort
SELECT ALL 24 AS col2, - 24
----
24
-24

query I rowsort
SELECT + 79 * - + 91 * 34 AS col2
----
-244426

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3696
SELECT - CAST( + 6 AS SIGNED ) + - COUNT( DISTINCT - 19 ) AS col2, 87 * - 78 * + - 96 * 41
----
-7
26709696

skipif mysql # not compatible
query II rowsort label-3696
SELECT - CAST ( + 6 AS INTEGER ) + - COUNT ( DISTINCT - 19 ) AS col2, 87 * - 78 * + - 96 * 41
----
-7
26709696

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3697
SELECT DISTINCT 36 AS col1, COALESCE ( - 98, + - 30 DIV - + MIN( ALL - 50 ) + + ( + ( - - 65 ) ) + - + ( + - 74 ) ) * - 69 * + - 8
----
36
-54096

skipif mysql # not compatible
query II rowsort label-3697
SELECT DISTINCT 36 AS col1, COALESCE ( - 98, + - 30 / - + MIN ( ALL - 50 ) + + ( + ( - - 65 ) ) + - + ( + - 74 ) ) * - 69 * + - 8
----
36
-54096

query I rowsort
SELECT - - 98 * - - COALESCE ( 90, - 53 * - - 63 + 33, - 63, + + 82 ) AS col2
----
8820

query II rowsort
SELECT DISTINCT - 28 AS col0, - 16 AS col0
----
-28
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-3700
SELECT + 80 + - 64, 91 * COUNT( * ) * - - 82 - - + 33 AS col2
----
16
7495

skipif mysql # not compatible
query II rowsort label-3700
SELECT + 80 + - 64, 91 * COUNT ( * ) * - - 82 - - + 33 AS col2
----
16
7495

onlyif mysql # DIV for integer division: 
query I rowsort label-3701
SELECT DISTINCT - 10 DIV + 71 - + ( + 81 ) AS col0
----
-81

skipif mysql # not compatible
query I rowsort label-3701
SELECT DISTINCT - 10 / + 71 - + ( + 81 ) AS col0
----
-81

query I rowsort
SELECT ALL + 46 + 2 * + - 47 - - 19 + - 33 * - + 22 * 20
----
14491

onlyif mysql # aggregate syntax: 
query II rowsort label-3703
SELECT + + 41 - - 21, 83 * - COUNT( * ) col2
----
62
-83

skipif mysql # not compatible
query II rowsort label-3703
SELECT + + 41 - - 21, 83 * - COUNT ( * ) col2
----
62
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-3704
SELECT ALL + CASE + 76 WHEN + NULLIF ( - 85, - 55 ) * - 6 + + CASE + 92 WHEN + 68 THEN NULL WHEN - 71 THEN NULL WHEN - - 80 + 78 + 69 * - 70 - + 56 * - 80 + SUM( ALL - - 23 ) * + + 27 THEN 24 ELSE 21 END THEN + 99 * + 8 * 49 - + + 77 WHEN + 98 THEN NULL ELSE NULL END + + 94
----
NULL

skipif mysql # not compatible
query I rowsort label-3704
SELECT ALL + CASE + 76 WHEN + NULLIF ( - 85, - 55 ) * - 6 + + CASE + 92 WHEN + 68 THEN NULL WHEN - 71 THEN NULL WHEN - - 80 + 78 + 69 * - 70 - + 56 * - 80 + SUM ( ALL - - 23 ) * + + 27 THEN 24 ELSE 21 END THEN + 99 * + 8 * 49 - + + 77 WHEN + 98 THEN NULL ELSE NULL END + + 94
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3705
SELECT - - 71 + + 73 + - 7 * + COALESCE ( 58, 80 * + COUNT( * ) + - 72 ) * + SUM( 69 ) - + - 88 DIV - 82, 5 AS col2
----
-27871
5

skipif mysql # not compatible
query II rowsort label-3705
SELECT - - 71 + + 73 + - 7 * + COALESCE ( 58, 80 * + COUNT ( * ) + - 72 ) * + SUM ( 69 ) - + - 88 / - 82, 5 AS col2
----
-27871
5

query I rowsort
SELECT NULLIF ( + 41, - + 20 ) AS col0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-3707
SELECT + + SUM( DISTINCT - - 94 ) + + 44
----
138

skipif mysql # not compatible
query I rowsort label-3707
SELECT + + SUM ( DISTINCT - - 94 ) + + 44
----
138

query I rowsort
SELECT + + 91 + - - 84
----
175

onlyif mysql # aggregate syntax: 
query I rowsort label-3709
SELECT ALL COUNT( DISTINCT - 86 ) + 18 * - + 5 AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-3709
SELECT ALL COUNT ( DISTINCT - 86 ) + 18 * - + 5 AS col2
----
-89

query II rowsort
SELECT + + 90 AS col0, 2
----
90
2

onlyif mysql # DIV for integer division: 
query I rowsort label-3711
SELECT ALL 85 DIV + + 3 + 50 AS col2
----
78

skipif mysql # not compatible
query I rowsort label-3711
SELECT ALL 85 / + + 3 + 50 AS col2
----
78

onlyif mysql # DIV for integer division: 
query I rowsort label-3712
SELECT ALL 69 DIV 87 + - 57 AS col0
----
-57

skipif mysql # not compatible
query I rowsort label-3712
SELECT ALL 69 / 87 + - 57 AS col0
----
-57

onlyif mysql # DIV for integer division: 
query II rowsort label-3713
SELECT DISTINCT + 84, 53 DIV 47 AS col1
----
84
1

skipif mysql # not compatible
query II rowsort label-3713
SELECT DISTINCT + 84, 53 / 47 AS col1
----
84
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3714
SELECT CAST( + ( - 39 ) AS SIGNED ) * - 22 * COUNT( 50 ) + - CASE - MAX( - 4 ) WHEN 19 THEN + 48 WHEN + - 31 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3714
SELECT CAST ( + ( - 39 ) AS INTEGER ) * - 22 * COUNT ( 50 ) + - CASE - MAX ( - 4 ) WHEN 19 THEN + 48 WHEN + - 31 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3715
SELECT + 1 DIV - 47 + + + COUNT( * ) + + ( - + 65 ) * 45 + + 65 + + 4 - - COUNT( * ) + + 69 AS col0
----
-2785

skipif mysql # not compatible
query I rowsort label-3715
SELECT + 1 / - 47 + + + COUNT ( * ) + + ( - + 65 ) * 45 + + 65 + + 4 - - COUNT ( * ) + + 69 AS col0
----
-2785

onlyif mysql # DIV for integer division: 
query I rowsort label-3716
SELECT DISTINCT 26 DIV + - 88 * + 52 - 95 * 54 AS col2
----
-5130

skipif mysql # not compatible
query I rowsort label-3716
SELECT DISTINCT 26 / + - 88 * + 52 - 95 * 54 AS col2
----
-5130

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3717
SELECT ALL COUNT( * ) DIV 31 - + + 92 - + 47 * 46 AS col0, 59
----
-2254
59

skipif mysql # not compatible
query II rowsort label-3717
SELECT ALL COUNT ( * ) / 31 - + + 92 - + 47 * 46 AS col0, 59
----
-2254
59

onlyif mysql # aggregate syntax: 
query II rowsort label-3718
SELECT ALL - MIN( ALL + - 91 ) AS col0, - 77 AS col1
----
91
-77

skipif mysql # not compatible
query II rowsort label-3718
SELECT ALL - MIN ( ALL + - 91 ) AS col0, - 77 AS col1
----
91
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3719
SELECT 2 / 43 * - MIN( CASE ( + 90 ) WHEN + + 45 THEN 63 END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3719
SELECT 2 / 43 * - MIN ( CASE ( + 90 ) WHEN + + 45 THEN 63 END ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3720
SELECT ALL 15 * - 57 * - COUNT( * ) AS col0, + MAX( DISTINCT - NULLIF ( + - 72, + - 20 + - 75 ) )
----
855
72

skipif mysql # not compatible
query II rowsort label-3720
SELECT ALL 15 * - 57 * - COUNT ( * ) AS col0, + MAX ( DISTINCT - NULLIF ( + - 72, + - 20 + - 75 ) )
----
855
72

query II rowsort
SELECT 8 + + + 58, 20 + - 36 * + NULLIF ( + 97, + 97 * + 41 ) * 3 AS col0
----
66
-10456

query I rowsort
SELECT 24 + + 63 + - 18
----
69

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3723
SELECT 27 DIV + - CAST( 33 AS SIGNED ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3723
SELECT 27 / + - CAST ( 33 AS INTEGER ) AS col0
----
0

query I rowsort
SELECT 14 + 19 + + 56 AS col1
----
89

onlyif mysql # aggregate syntax: 
query II rowsort label-3725
SELECT - 37 + - 34 AS col2, COALESCE ( MIN( 61 ), + 77 * 57 + - 48, 6 ) AS col1
----
-71
61

skipif mysql # not compatible
query II rowsort label-3725
SELECT - 37 + - 34 AS col2, COALESCE ( MIN ( 61 ), + 77 * 57 + - 48, 6 ) AS col1
----
-71
61

onlyif mysql # aggregate syntax: 
query I rowsort label-3726
SELECT + COUNT( - 22 ) * - - 29
----
29

skipif mysql # not compatible
query I rowsort label-3726
SELECT + COUNT ( - 22 ) * - - 29
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-3727
SELECT ALL + + COUNT( * ) + + 20
----
21

skipif mysql # not compatible
query I rowsort label-3727
SELECT ALL + + COUNT ( * ) + + 20
----
21

onlyif mysql # aggregate syntax: 
query II rowsort label-3728
SELECT DISTINCT - + MIN( DISTINCT + 36 ) + 39 + + - 42 * 96 AS col2, 93
----
-4029
93

skipif mysql # not compatible
query II rowsort label-3728
SELECT DISTINCT - + MIN ( DISTINCT + 36 ) + 39 + + - 42 * 96 AS col2, 93
----
-4029
93

query I rowsort
SELECT ALL + + ( + 53 ) + - 2
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-3730
SELECT - 44 DIV 86
----
0

skipif mysql # not compatible
query I rowsort label-3730
SELECT - 44 / 86
----
0

query I rowsort
SELECT 71 + 24
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-3732
SELECT DISTINCT MAX( DISTINCT - + 33 ) AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-3732
SELECT DISTINCT MAX ( DISTINCT - + 33 ) AS col0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-3733
SELECT DISTINCT + COALESCE ( - COUNT( * ), 71 )
----
-1

skipif mysql # not compatible
query I rowsort label-3733
SELECT DISTINCT + COALESCE ( - COUNT ( * ), 71 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3734
SELECT - CASE + + 78 WHEN + 90 THEN NULL ELSE + COUNT( * ) END AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3734
SELECT - CASE + + 78 WHEN + 90 THEN NULL ELSE + COUNT ( * ) END AS col1
----
-1

query II rowsort
SELECT ALL 10 + + 53, 94 + - 80 AS col1
----
63
14

query I rowsort
SELECT 51 * + 49 * 55 AS col1
----
137445

query I rowsort
SELECT + NULLIF ( - NULLIF ( + + 15, - - 23 ), + 69 * 57 ) col2
----
-15

onlyif mysql # DIV for integer division: 
query II rowsort label-3738
SELECT ALL - + 54 DIV + 88 col1, 93 col1
----
0
93

skipif mysql # not compatible
query II rowsort label-3738
SELECT ALL - + 54 / + 88 col1, 93 col1
----
0
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3739
SELECT 93 * + - MAX( + + 71 )
----
-6603

skipif mysql # not compatible
query I rowsort label-3739
SELECT 93 * + - MAX ( + + 71 )
----
-6603

query I rowsort
SELECT ( + 41 ) * 24 * + 71 AS col1
----
69864

onlyif mysql # aggregate syntax: 
query II rowsort label-3741
SELECT ALL - 38 AS col1, - 42 + - MIN( - 10 ) - - 46 AS col2
----
-38
14

skipif mysql # not compatible
query II rowsort label-3741
SELECT ALL - 38 AS col1, - 42 + - MIN ( - 10 ) - - 46 AS col2
----
-38
14

query I rowsort
SELECT ( - + 5 ) + + 41 * + 27 + - 77 * - - 31 - + 94 AS col2
----
-1379

query II rowsort
SELECT 51, 14 AS col1
----
51
14

query II rowsort
SELECT ( + 12 ) - + 16, - 96 AS col2
----
-4
-96

query I rowsort
SELECT ALL ( + 49 ) * + 40
----
1960

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3746
SELECT - 53 * 87 * - 0 - - CASE WHEN NULL BETWEEN 67 AND NULL THEN + 71 + + - 8 + CAST( NULL AS SIGNED ) END / 99 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3746
SELECT - 53 * 87 * - 0 - - CASE WHEN NULL BETWEEN 67 AND NULL THEN + 71 + + - 8 + CAST ( NULL AS INTEGER ) END / 99 AS col0
----
NULL

query I rowsort
SELECT DISTINCT 74 * - - ( - 80 ) col0
----
-5920

query I rowsort
SELECT 8 * + 90 AS col0
----
720

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3749
SELECT ALL ( - + 70 ) + + COALESCE ( - COUNT( * ), - 56 + + 71 + + 13 DIV + + 38, 34 - + 28 * + 69 + + + 92 + 38 + COALESCE ( - 79, + ( - 0 ) ) * + 48 )
----
-71

skipif mysql # not compatible
query I rowsort label-3749
SELECT ALL ( - + 70 ) + + COALESCE ( - COUNT ( * ), - 56 + + 71 + + 13 / + + 38, 34 - + 28 * + 69 + + + 92 + 38 + COALESCE ( - 79, + ( - 0 ) ) * + 48 )
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-3750
SELECT DISTINCT - - COUNT( * ) * - 22
----
-22

skipif mysql # not compatible
query I rowsort label-3750
SELECT DISTINCT - - COUNT ( * ) * - 22
----
-22

onlyif mysql # aggregate syntax: 
query II rowsort label-3751
SELECT - - COUNT( * ) AS col0, 13 - + - 89 - COALESCE ( + 36, 80 * + - 44 ) + 31 * - - 81
----
1
2577

skipif mysql # not compatible
query II rowsort label-3751
SELECT - - COUNT ( * ) AS col0, 13 - + - 89 - COALESCE ( + 36, 80 * + - 44 ) + 31 * - - 81
----
1
2577

onlyif mysql # aggregate syntax: 
query I rowsort label-3752
SELECT ALL COUNT( * ) + + 2 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-3752
SELECT ALL COUNT ( * ) + + 2 AS col1
----
3

query I rowsort
SELECT DISTINCT + 52 + + 68 - + 83 col0
----
37

query I rowsort
SELECT - 15 + - + 39
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-3755
SELECT ALL + 19 + + COUNT( * ) * + 20 AS col0
----
39

skipif mysql # not compatible
query I rowsort label-3755
SELECT ALL + 19 + + COUNT ( * ) * + 20 AS col0
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3756
SELECT 27 - - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3756
SELECT 27 - - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3757
SELECT - 17, 52 DIV 92 AS col2
----
-17
0

skipif mysql # not compatible
query II rowsort label-3757
SELECT - 17, 52 / 92 AS col2
----
-17
0

query I rowsort
SELECT ALL - 69 + - 74 + 62 * - 98 * - 19
----
115301

onlyif mysql # DIV for integer division: 
query I rowsort label-3759
SELECT + 64 + - 27 DIV + 3
----
55

skipif mysql # not compatible
query I rowsort label-3759
SELECT + 64 + - 27 / + 3
----
55

query I rowsort
SELECT ALL - + 93 - + 29 + 87 + + 41 * + 41 * + ( - - ( - 33 ) ) * + 35 * + + 54
----
-104844005

query II rowsort
SELECT 96 * + + 11 * - 76, - 82 AS col0
----
-80256
-82

query I rowsort
SELECT - CASE + - AVG ( 92 ) WHEN 27 THEN NULL ELSE - 35 END
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-3763
SELECT 2 - - + 90 DIV + 31 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-3763
SELECT 2 - - + 90 / + 31 AS col2
----
4

query I rowsort
SELECT 73 * - + NULLIF ( CASE 35 WHEN - + 91 THEN NULL WHEN 74 / + - 28 * + 6 * 45 THEN NULL ELSE - 80 END, - 81 / + - 45 + + - 13 ) * + 96
----
560640

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3765
SELECT ALL + CAST( 23 AS SIGNED ) col0
----
23

skipif mysql # not compatible
query I rowsort label-3765
SELECT ALL + CAST ( 23 AS INTEGER ) col0
----
23

onlyif mysql # aggregate syntax: 
query II rowsort label-3766
SELECT ALL + MAX( 42 ) AS col2, ( - 84 ) + - - 69 AS col1
----
42
-15

skipif mysql # not compatible
query II rowsort label-3766
SELECT ALL + MAX ( 42 ) AS col2, ( - 84 ) + - - 69 AS col1
----
42
-15

query I rowsort
SELECT - 10 + - - 50
----
40

query I rowsort
SELECT COALESCE ( 64, ( - - ( + 14 ) ), 33, + - 15 + + + 99 + 82 )
----
64

query I rowsort
SELECT - ( 25 ) * - 1 * + + 50 + 4 - 82 + + 59 col0
----
1231

onlyif mysql # DIV for integer division: 
query I rowsort label-3770
SELECT + 4 DIV - 6 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3770
SELECT + 4 / - 6 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3771
SELECT NULLIF ( + COUNT( * ), 87 * ( - 47 ) + - COUNT( * ) * + - 49 / + + 44 + + 62 + + 2 ) col0, - 33 AS col2
----
1
-33

skipif mysql # not compatible
query II rowsort label-3771
SELECT NULLIF ( + COUNT ( * ), 87 * ( - 47 ) + - COUNT ( * ) * + - 49 / + + 44 + + 62 + + 2 ) col0, - 33 AS col2
----
1
-33

query I rowsort
SELECT - 50 * - 21 * - - 75
----
78750

onlyif mysql # DIV for integer division: 
query I rowsort label-3773
SELECT + 74 DIV - 16
----
-4

skipif mysql # not compatible
query I rowsort label-3773
SELECT + 74 / - 16
----
-4

query I rowsort
SELECT + 32 + - 31 + - 65 + - ( + 4 ) * 13 + + - 69
----
-185

onlyif mysql # aggregate syntax: 
query I rowsort label-3775
SELECT + 50 * + 76 * NULLIF ( - COUNT( * ), ( + - NULLIF ( 10, 88 + + 73 * + COALESCE ( + + 5, - - COUNT( * ), + 93 ) ) ) )
----
-3800

skipif mysql # not compatible
query I rowsort label-3775
SELECT + 50 * + 76 * NULLIF ( - COUNT ( * ), ( + - NULLIF ( 10, 88 + + 73 * + COALESCE ( + + 5, - - COUNT ( * ), + 93 ) ) ) )
----
-3800

onlyif mysql # aggregate syntax: 
query I rowsort label-3776
SELECT ALL + 37 * + CASE 59 WHEN + 25 + + 59 THEN COUNT( * ) + - ( + 17 ) WHEN - 15 THEN NULL ELSE NULL END + - ( - + 53 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3776
SELECT ALL + 37 * + CASE 59 WHEN + 25 + + 59 THEN COUNT ( * ) + - ( + 17 ) WHEN - 15 THEN NULL ELSE NULL END + - ( - + 53 )
----
NULL

query I rowsort
SELECT DISTINCT + 60 * + 97 + + + COALESCE ( + 58, - + 51 )
----
5878

query I rowsort
SELECT ALL + ( 28 ) AS col1
----
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3779
SELECT - 10 * + + 11 + + 16 + COUNT( * ) DIV - 59 AS col2
----
-94

skipif mysql # not compatible
query I rowsort label-3779
SELECT - 10 * + + 11 + + 16 + COUNT ( * ) / - 59 AS col2
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-3780
SELECT MAX( + 0 )
----
0

skipif mysql # not compatible
query I rowsort label-3780
SELECT MAX ( + 0 )
----
0

query I rowsort
SELECT DISTINCT + + 81 col0
----
81

query I rowsort
SELECT + - 28 + + 24 AS col1
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-3783
SELECT CASE + ( + + CASE - 17 WHEN + 39 * + + 16 THEN NULL WHEN - ( 42 ) THEN CAST( + MAX( + 80 ) AS SIGNED ) * 57 / + - 91 + - 65 ELSE NULL END ) WHEN - 57 * - 42 + + + 86 - - 14 THEN 61 + - CAST( - 62 AS SIGNED ) + - 55 WHEN AVG ( CAST( NULL AS SIGNED ) ) THEN NULL END, + 93 AS col2, 8 AS col0
----
NULL
93
8

skipif mysql # not compatible
query III rowsort label-3783
SELECT CASE + ( + + CASE - 17 WHEN + 39 * + + 16 THEN NULL WHEN - ( 42 ) THEN CAST ( + MAX ( + 80 ) AS INTEGER ) * 57 / + - 91 + - 65 ELSE NULL END ) WHEN - 57 * - 42 + + + 86 - - 14 THEN 61 + - CAST ( - 62 AS INTEGER ) + - 55 WHEN AVG ( CAST ( NULL AS INTEGER ) ) THEN NULL END, + 93 AS col2, 8 AS col0
----
NULL
93
8

query I rowsort
SELECT + ( - 68 ) * 29 * - 41 + + 22 AS col0
----
80874

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3785
SELECT - + COALESCE ( + + 7, + + 11 ) + - - 57 + - SUM( DISTINCT - 12 ) * + COALESCE ( - ( + + 70 ), 1, COUNT( * ) * + 92 DIV - CAST( NULL AS SIGNED ) + - COALESCE ( 78, + 83 ) )
----
-790

skipif mysql # not compatible
query I rowsort label-3785
SELECT - + COALESCE ( + + 7, + + 11 ) + - - 57 + - SUM ( DISTINCT - 12 ) * + COALESCE ( - ( + + 70 ), 1, COUNT ( * ) * + 92 / - CAST ( NULL AS INTEGER ) + - COALESCE ( 78, + 83 ) )
----
-790

query I rowsort
SELECT ALL + ( 58 ) * - 39 AS col2
----
-2262

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3787
SELECT + 35 + MIN( + 47 ) + - COUNT( * ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3787
SELECT + 35 + MIN ( + 47 ) + - COUNT ( * ) * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 5 + - - 66 - - + 39 AS col2
----
110

onlyif mysql # aggregate syntax: 
query II rowsort label-3789
SELECT ALL + + CASE + - 81 WHEN ( 13 ) - - 50 THEN + 35 + 76 END * AVG ( + 17 ) AS col2, SUM( DISTINCT - + 15 ) - - - COUNT( * ) * - COUNT( * )
----
NULL
-14

skipif mysql # not compatible
query II rowsort label-3789
SELECT ALL + + CASE + - 81 WHEN ( 13 ) - - 50 THEN + 35 + 76 END * AVG ( + 17 ) AS col2, SUM ( DISTINCT - + 15 ) - - - COUNT ( * ) * - COUNT ( * )
----
NULL
-14

query I rowsort
SELECT - + 52 + - 47 AS col0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3791
SELECT ALL - COUNT( * ) * 14 - COUNT( * ) AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-3791
SELECT ALL - COUNT ( * ) * 14 - COUNT ( * ) AS col0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-3792
SELECT - + 2 + SUM( + + 52 )
----
50

skipif mysql # not compatible
query I rowsort label-3792
SELECT - + 2 + SUM ( + + 52 )
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-3793
SELECT DISTINCT COALESCE ( + + NULLIF ( + 9, - COUNT( * ) ), 94, NULLIF ( + ( - ( - 80 ) ), - 73 ) ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-3793
SELECT DISTINCT COALESCE ( + + NULLIF ( + 9, - COUNT ( * ) ), 94, NULLIF ( + ( - ( - 80 ) ), - 73 ) ) AS col1
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-3794
SELECT DISTINCT - NULLIF ( 92, - 28 + - 25 ) * + 20 + + - MIN( DISTINCT 97 ) + + - 16, - 9 AS col1
----
-1953
-9

skipif mysql # not compatible
query II rowsort label-3794
SELECT DISTINCT - NULLIF ( 92, - 28 + - 25 ) * + 20 + + - MIN ( DISTINCT 97 ) + + - 16, - 9 AS col1
----
-1953
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3795
SELECT ALL + COALESCE ( - - 27, - - 11 * - CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) + + 91 ) * - 16 AS col2
----
-432

skipif mysql # not compatible
query I rowsort label-3795
SELECT ALL + COALESCE ( - - 27, - - 11 * - CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) + + 91 ) * - 16 AS col2
----
-432

onlyif mysql # DIV for integer division: 
query I rowsort label-3796
SELECT 39 DIV + + 24 + + 45 AS col0
----
46

skipif mysql # not compatible
query I rowsort label-3796
SELECT 39 / + + 24 + + 45 AS col0
----
46

query I rowsort
SELECT DISTINCT + 11 * 61 col1
----
671

onlyif mysql # DIV for integer division: 
query II rowsort label-3798
SELECT DISTINCT + 43 DIV - 49 * - 33 + ( - 51 ) AS col2, 63 AS col1
----
-51
63

skipif mysql # not compatible
query II rowsort label-3798
SELECT DISTINCT + 43 / - 49 * - 33 + ( - 51 ) AS col2, 63 AS col1
----
-51
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3799
SELECT + MIN( ALL - + 70 ) AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-3799
SELECT + MIN ( ALL - + 70 ) AS col0
----
-70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3800
SELECT ALL - COUNT( * ) DIV - + 73 + + 62 * + COUNT( * ) AS col0
----
62

skipif mysql # not compatible
query I rowsort label-3800
SELECT ALL - COUNT ( * ) / - + 73 + + 62 * + COUNT ( * ) AS col0
----
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3801
SELECT DISTINCT + 49 DIV + - 30 * + COUNT( * ) + - 12 AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-3801
SELECT DISTINCT + 49 / + - 30 * + COUNT ( * ) + - 12 AS col2
----
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-3802
SELECT ALL 8 DIV - 73
----
0

skipif mysql # not compatible
query I rowsort label-3802
SELECT ALL 8 / - 73
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3803
SELECT + MIN( + 14 ) AS col0
----
14

skipif mysql # not compatible
query I rowsort label-3803
SELECT + MIN ( + 14 ) AS col0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-3804
SELECT ALL + 33 * + COUNT( * ) + - - 98 + - + 12 * - 39 AS col1
----
599

skipif mysql # not compatible
query I rowsort label-3804
SELECT ALL + 33 * + COUNT ( * ) + - - 98 + - + 12 * - 39 AS col1
----
599

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3805
SELECT + CASE 16 WHEN CAST( NULL AS SIGNED ) THEN + + 3 * - COUNT( * ) + - COUNT( * ) WHEN + 98 THEN - + 16 ELSE + + 60 * - 56 + 98 END AS col1
----
-3262

skipif mysql # not compatible
query I rowsort label-3805
SELECT + CASE 16 WHEN CAST ( NULL AS INTEGER ) THEN + + 3 * - COUNT ( * ) + - COUNT ( * ) WHEN + 98 THEN - + 16 ELSE + + 60 * - 56 + 98 END AS col1
----
-3262

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3806
SELECT ALL + 93 DIV + CAST( - - COUNT( 42 ) AS SIGNED )
----
93

skipif mysql # not compatible
query I rowsort label-3806
SELECT ALL + 93 / + CAST ( - - COUNT ( 42 ) AS INTEGER )
----
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3807
SELECT + - 82 DIV - 64 + - + 49 - COUNT( * ) AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-3807
SELECT + - 82 / - 64 + - + 49 - COUNT ( * ) AS col1
----
-49

query I rowsort
SELECT - 35 * - 53 - - 31
----
1886

query I rowsort
SELECT + + ( + + 81 ) AS col2
----
81

query II rowsort
SELECT DISTINCT - 81 * + 96 - - 66, 34 AS col2
----
-7710
34

onlyif mysql # aggregate syntax: 
query I rowsort label-3811
SELECT - + SUM( ALL - + 65 ) AS col1
----
65

skipif mysql # not compatible
query I rowsort label-3811
SELECT - + SUM ( ALL - + 65 ) AS col1
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3812
SELECT ALL - NULLIF ( + SUM( - CAST( - 87 AS SIGNED ) ), 64 ) col2
----
-87

skipif mysql # not compatible
query I rowsort label-3812
SELECT ALL - NULLIF ( + SUM ( - CAST ( - 87 AS INTEGER ) ), 64 ) col2
----
-87

query I rowsort
SELECT - + 12 + - 31 AS col0
----
-43

query I rowsort
SELECT + - 37 + 44
----
7

query I rowsort
SELECT 5 + 22 AS col1
----
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3816
SELECT ALL 30 AS col1, 29 DIV - - 34 * - COUNT( * ) AS col2
----
30
0

skipif mysql # not compatible
query II rowsort label-3816
SELECT ALL 30 AS col1, 29 / - - 34 * - COUNT ( * ) AS col2
----
30
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3817
SELECT ( + + COALESCE ( MIN( 72 ), - COUNT( * ) ) ) DIV - 18
----
-4

skipif mysql # not compatible
query I rowsort label-3817
SELECT ( + + COALESCE ( MIN ( 72 ), - COUNT ( * ) ) ) / - 18
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-3818
SELECT DISTINCT + COUNT( + + 84 ) + - + ( 15 ) * - + ( + 12 )
----
181

skipif mysql # not compatible
query I rowsort label-3818
SELECT DISTINCT + COUNT ( + + 84 ) + - + ( 15 ) * - + ( + 12 )
----
181

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3819
SELECT CAST( NULL AS SIGNED ) / - 64 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3819
SELECT CAST ( NULL AS INTEGER ) / - 64 AS col2
----
NULL

query I rowsort
SELECT ( + 49 ) + - 2
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3821
SELECT ( - 32 ) DIV + COUNT( * ) AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-3821
SELECT ( - 32 ) / + COUNT ( * ) AS col2
----
-32

query I rowsort
SELECT 37 + + 84 * - + 97 + 97
----
-8014

query I rowsort
SELECT 46 + - + 80 AS col1
----
-34

query I rowsort
SELECT ALL 39 + + 80
----
119

onlyif mysql # DIV for integer division: 
query I rowsort label-3825
SELECT - 27 DIV - - 55 + - + 34
----
-34

skipif mysql # not compatible
query I rowsort label-3825
SELECT - 27 / - - 55 + - + 34
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-3826
SELECT ALL - MAX( DISTINCT - 73 ) AS col1
----
73

skipif mysql # not compatible
query I rowsort label-3826
SELECT ALL - MAX ( DISTINCT - 73 ) AS col1
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-3827
SELECT ( 35 ) * + 78 * - MAX( ALL - + 37 )
----
101010

skipif mysql # not compatible
query I rowsort label-3827
SELECT ( 35 ) * + 78 * - MAX ( ALL - + 37 )
----
101010

onlyif mysql # aggregate syntax: 
query II rowsort label-3828
SELECT DISTINCT NULLIF ( CASE COUNT( * ) WHEN + 26 * COUNT( * ) THEN - 95 END, 48 - 35 ) + - 54 AS col1, + 62 - - COUNT( * ) AS col0
----
NULL
63

skipif mysql # not compatible
query II rowsort label-3828
SELECT DISTINCT NULLIF ( CASE COUNT ( * ) WHEN + 26 * COUNT ( * ) THEN - 95 END, 48 - 35 ) + - 54 AS col1, + 62 - - COUNT ( * ) AS col0
----
NULL
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3829
SELECT DISTINCT - 26 + - - COUNT( * ) DIV + 15
----
-26

skipif mysql # not compatible
query I rowsort label-3829
SELECT DISTINCT - 26 + - - COUNT ( * ) / + 15
----
-26

query II rowsort
SELECT + 26 AS col2, ( 47 ) col1
----
26
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3831
SELECT - CASE + COUNT( * ) WHEN - + 79 * - 38 * + - MIN( - 8 ) / - 8 + - - 71 + + ( - 65 ) * - - 86 THEN 52 END + - 30
----
NULL

skipif mysql # not compatible
query I rowsort label-3831
SELECT - CASE + COUNT ( * ) WHEN - + 79 * - 38 * + - MIN ( - 8 ) / - 8 + - - 71 + + ( - 65 ) * - - 86 THEN 52 END + - 30
----
NULL

query I rowsort
SELECT 15 + - ( 0 )
----
15

query II rowsort
SELECT + 84, 55 * + + 48 AS col2
----
84
2640

query I rowsort
SELECT 94 * - 37 AS col1
----
-3478

onlyif mysql # aggregate syntax: 
query I rowsort label-3835
SELECT ALL - MIN( DISTINCT + 23 )
----
-23

skipif mysql # not compatible
query I rowsort label-3835
SELECT ALL - MIN ( DISTINCT + 23 )
----
-23

query I rowsort
SELECT + 78 * 32 + - + 88 + - - ( 12 ) AS col0
----
2420

query I rowsort
SELECT ALL + + ( + - 90 ) * + 22 AS col0
----
-1980

onlyif mysql # DIV for integer division: 
query I rowsort label-3838
SELECT 71 + - ( + 22 ) + + - 22 DIV - - 81
----
49

skipif mysql # not compatible
query I rowsort label-3838
SELECT 71 + - ( + 22 ) + + - 22 / - - 81
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3839
SELECT - 53 + + 5 + CAST( 63 AS SIGNED )
----
15

skipif mysql # not compatible
query I rowsort label-3839
SELECT - 53 + + 5 + CAST ( 63 AS INTEGER )
----
15

query II rowsort
SELECT + - 63 AS col0, - 48 * + - 29
----
-63
1392

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3841
SELECT + 41 AS col2, ( + + NULLIF ( - 85, - COUNT( * ) + + 91 / + 26 * - - COUNT( * ) - - 80 + + ( + + 23 ) * - - 8 + - ( + - COUNT( * ) ) + + 93 + + MAX( + 79 ) + - 88 * + + CAST( NULL AS SIGNED ) * 27 ) ) AS col2
----
41
-85

skipif mysql # not compatible
query II rowsort label-3841
SELECT + 41 AS col2, ( + + NULLIF ( - 85, - COUNT ( * ) + + 91 / + 26 * - - COUNT ( * ) - - 80 + + ( + + 23 ) * - - 8 + - ( + - COUNT ( * ) ) + + 93 + + MAX ( + 79 ) + - 88 * + + CAST ( NULL AS INTEGER ) * 27 ) ) AS col2
----
41
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-3842
SELECT ALL - COUNT( ALL + - NULLIF ( - 25, 57 ) ) * - 15 * - - 54
----
810

skipif mysql # not compatible
query I rowsort label-3842
SELECT ALL - COUNT ( ALL + - NULLIF ( - 25, 57 ) ) * - 15 * - - 54
----
810

query II rowsort
SELECT DISTINCT 31 col0, 49
----
31
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3844
SELECT 43 * CASE + 65 WHEN - + 12 * + 70 + - CASE 83 WHEN - + COUNT( * ) + 64 THEN - - 53 ELSE NULL END + - + 67 + - 53 THEN CASE + 33 WHEN - CAST( + - 25 AS SIGNED ) THEN + 7 ELSE + - 54 + + - 22 END * + - 34 * + 36 ELSE NULL END * - 55
----
NULL

skipif mysql # not compatible
query I rowsort label-3844
SELECT 43 * CASE + 65 WHEN - + 12 * + 70 + - CASE 83 WHEN - + COUNT ( * ) + 64 THEN - - 53 ELSE NULL END + - + 67 + - 53 THEN CASE + 33 WHEN - CAST ( + - 25 AS INTEGER ) THEN + 7 ELSE + - 54 + + - 22 END * + - 34 * + 36 ELSE NULL END * - 55
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3845
SELECT - CASE 97 WHEN - ( + 8 ) THEN NULL WHEN - 90 * - 99 * - - 17 THEN + 34 END + - ( - 85 ) + - + 25 * + + 82 * + 70 + - SUM( + + 9 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3845
SELECT - CASE 97 WHEN - ( + 8 ) THEN NULL WHEN - 90 * - 99 * - - 17 THEN + 34 END + - ( - 85 ) + - + 25 * + + 82 * + 70 + - SUM ( + + 9 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3846
SELECT DISTINCT + 53 + + 56 * - + 70 * - - 79 + 9 * 0 * + 54 + - 96 + - ( + + COALESCE ( - 64, 28 + + + 19 + + - 60 + + - 33 * + 79 ) ) AS col2, - SUM( 56 ) * - 38 AS col2
----
-309659
2128

skipif mysql # not compatible
query II rowsort label-3846
SELECT DISTINCT + 53 + + 56 * - + 70 * - - 79 + 9 * 0 * + 54 + - 96 + - ( + + COALESCE ( - 64, 28 + + + 19 + + - 60 + + - 33 * + 79 ) ) AS col2, - SUM ( 56 ) * - 38 AS col2
----
-309659
2128

onlyif mysql # aggregate syntax: 
query I rowsort label-3847
SELECT COALESCE ( - 18, + 51, COUNT( * ) ) * - COUNT( * ) col2
----
18

skipif mysql # not compatible
query I rowsort label-3847
SELECT COALESCE ( - 18, + 51, COUNT ( * ) ) * - COUNT ( * ) col2
----
18

query I rowsort
SELECT ALL ( + - 1 ) + - 77
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-3849
SELECT ALL COUNT( * ) + + ( + - 21 ) + - + 19 AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-3849
SELECT ALL COUNT ( * ) + + ( + - 21 ) + - + 19 AS col1
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-3850
SELECT - MIN( DISTINCT - ( + - 89 ) ) col1
----
-89

skipif mysql # not compatible
query I rowsort label-3850
SELECT - MIN ( DISTINCT - ( + - 89 ) ) col1
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3851
SELECT 33 + + + 86 - - 24 / + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3851
SELECT 33 + + + 86 - - 24 / + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3852
SELECT DISTINCT 26 + - COUNT( ALL - 59 )
----
25

skipif mysql # not compatible
query I rowsort label-3852
SELECT DISTINCT 26 + - COUNT ( ALL - 59 )
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-3853
SELECT ALL 85 + COUNT( + 13 ) * + 95 AS col1
----
180

skipif mysql # not compatible
query I rowsort label-3853
SELECT ALL 85 + COUNT ( + 13 ) * + 95 AS col1
----
180

onlyif mysql # aggregate syntax: 
query I rowsort label-3854
SELECT SUM( DISTINCT - - 19 )
----
19

skipif mysql # not compatible
query I rowsort label-3854
SELECT SUM ( DISTINCT - - 19 )
----
19

query I rowsort
SELECT 36 + - 62
----
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-3856
SELECT 71 DIV + 92 * 59 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3856
SELECT 71 / + 92 * 59 AS col2
----
0

query I rowsort
SELECT ALL - 9 * 91 - 7 + - 20
----
-846

query I rowsort
SELECT DISTINCT - - CASE + 80 WHEN + + 36 THEN NULL WHEN - 17 * + 68 + - + 21 THEN NULL WHEN - + 18 THEN + + 92 + 36 + - 70 + + 58 + + + 64 + - 37 / + 89 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT + 64 * + 59 - - 34 AS col2
----
3810

query I rowsort
SELECT + 76 * 99 + - + 52
----
7472

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3861
SELECT ALL + - 34 * + - COUNT( * ) DIV - COALESCE ( NULLIF ( + COUNT( * ), - 33 ), + 92 ) + - ( + - 82 ) AS col1
----
48

skipif mysql # not compatible
query I rowsort label-3861
SELECT ALL + - 34 * + - COUNT ( * ) / - COALESCE ( NULLIF ( + COUNT ( * ), - 33 ), + 92 ) + - ( + - 82 ) AS col1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3862
SELECT + ( - COUNT( * ) ) * 67 + MIN( - - 7 ) AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-3862
SELECT + ( - COUNT ( * ) ) * 67 + MIN ( - - 7 ) AS col2
----
-60

query I rowsort
SELECT - 42 * + 62 * + + 81
----
-210924

query I rowsort
SELECT ALL - 59 * 1 AS col0
----
-59

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3865
SELECT - 8 DIV - 29 AS col2, 46 + - CAST( + 10 AS SIGNED )
----
0
36

skipif mysql # not compatible
query II rowsort label-3865
SELECT - 8 / - 29 AS col2, 46 + - CAST ( + 10 AS INTEGER )
----
0
36

onlyif mysql # aggregate syntax: 
query I rowsort label-3866
SELECT ALL - COALESCE ( + COUNT( * ), 61 + - MAX( 54 ) - - + 22 * COUNT( + + 98 ) ) * - 83 + - 37 * - - 97 AS col1
----
-3506

skipif mysql # not compatible
query I rowsort label-3866
SELECT ALL - COALESCE ( + COUNT ( * ), 61 + - MAX ( 54 ) - - + 22 * COUNT ( + + 98 ) ) * - 83 + - 37 * - - 97 AS col1
----
-3506

query I rowsort
SELECT DISTINCT 82 + 89
----
171

query I rowsort
SELECT DISTINCT - + COALESCE ( + 20, - 12 ) + + 83
----
63

onlyif mysql # DIV for integer division: 
query I rowsort label-3869
SELECT - - 54 DIV - - 17 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-3869
SELECT - - 54 / - - 17 AS col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3870
SELECT ALL + COUNT( * ) + ( + + MIN( + 15 ) ) AS col1
----
16

skipif mysql # not compatible
query I rowsort label-3870
SELECT ALL + COUNT ( * ) + ( + + MIN ( + 15 ) ) AS col1
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3871
SELECT - CAST( + + 53 AS SIGNED ) + 46 / CAST( NULL AS SIGNED ) * + - ( - + 52 ) * - 36 * + ( + + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3871
SELECT - CAST ( + + 53 AS INTEGER ) + 46 / CAST ( NULL AS INTEGER ) * + - ( - + 52 ) * - 36 * + ( + + COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3872
SELECT - 82, COUNT( * ) * MIN( ALL 61 ) * COUNT( * ) * 8 - - COUNT( * ) * + - ( - 15 ) AS col0
----
-82
503

skipif mysql # not compatible
query II rowsort label-3872
SELECT - 82, COUNT ( * ) * MIN ( ALL 61 ) * COUNT ( * ) * 8 - - COUNT ( * ) * + - ( - 15 ) AS col0
----
-82
503

onlyif mysql # aggregate syntax: 
query I rowsort label-3873
SELECT - 57 * - 33 * + COUNT( * ) AS col0
----
1881

skipif mysql # not compatible
query I rowsort label-3873
SELECT - 57 * - 33 * + COUNT ( * ) AS col0
----
1881

query II rowsort
SELECT 57 AS col1, + 30 - + 40 * + 86 AS col1
----
57
-3410

onlyif mysql # aggregate syntax: 
query I rowsort label-3875
SELECT DISTINCT + COUNT( * ) + - + 17 + + 38 AS col1
----
22

skipif mysql # not compatible
query I rowsort label-3875
SELECT DISTINCT + COUNT ( * ) + - + 17 + + 38 AS col1
----
22

query I rowsort
SELECT ALL 92 * + 91 * - + 44 * 66 AS col1
----
-24312288

onlyif mysql # aggregate syntax: 
query I rowsort label-3877
SELECT - 98 + + COALESCE ( - - 22, - CASE + + 16 WHEN - - COALESCE ( 52, MAX( 83 ) ) THEN + 8 - 79 WHEN + - 78 THEN NULL END, 42 * + 92 ) * - - 19 * + + 11 + - ( - 46 ) + 77
----
4623

skipif mysql # not compatible
query I rowsort label-3877
SELECT - 98 + + COALESCE ( - - 22, - CASE + + 16 WHEN - - COALESCE ( 52, MAX ( 83 ) ) THEN + 8 - 79 WHEN + - 78 THEN NULL END, 42 * + 92 ) * - - 19 * + + 11 + - ( - 46 ) + 77
----
4623

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3878
SELECT ALL - 7 + - ( + 15 ) AS col1, - 6 * + 45 * COALESCE ( - 20, COUNT( - + CAST( NULL AS DECIMAL ) ) + SUM( + - 18 ) + SUM( + 41 ) )
----
-22
5400

skipif mysql # not compatible
query II rowsort label-3878
SELECT ALL - 7 + - ( + 15 ) AS col1, - 6 * + 45 * COALESCE ( - 20, COUNT ( - + CAST ( NULL AS REAL ) ) + SUM ( + - 18 ) + SUM ( + 41 ) )
----
-22
5400

query I rowsort
SELECT ALL 85 - + 45 AS col0
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3880
SELECT ALL - CASE - 82 WHEN - COUNT( * ) * CAST( NULL AS SIGNED ) + - CAST( NULL AS SIGNED ) - 60 - - MIN( 26 ) * - - CASE COUNT( * ) WHEN - 17 + - ( + + CASE COUNT( DISTINCT - 71 ) WHEN - - 98 + + ( + 99 ) THEN NULL WHEN - 28 + - CASE + AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) WHEN - - 21 THEN NULL ELSE - + ( - 95 ) END THEN + - ( - 53 ) ELSE - 3 * - 43 END ) - - 66 * - NULLIF ( 10, + + 25 ) * + + COUNT( * ) - - + 66 + + 57 + - 96 THEN NULL WHEN + COUNT( * ) THEN - 65 WHEN - 14 THEN NULL END * COALESCE ( + 32 + + CAST( NULL AS SIGNED ), + 35 - + ( CAST( NULL AS SIGNED ) ) ) THEN NULL ELSE + 24 * 36 END * SUM( ALL - 43 )
----
37152

skipif mysql # not compatible
query I rowsort label-3880
SELECT ALL - CASE - 82 WHEN - COUNT ( * ) * CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER ) - 60 - - MIN ( 26 ) * - - CASE COUNT ( * ) WHEN - 17 + - ( + + CASE COUNT ( DISTINCT - 71 ) WHEN - - 98 + + ( + 99 ) THEN NULL WHEN - 28 + - CASE + AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) WHEN - - 21 THEN NULL ELSE - + ( - 95 ) END THEN + - ( - 53 ) ELSE - 3 * - 43 END ) - - 66 * - NULLIF ( 10, + + 25 ) * + + COUNT ( * ) - - + 66 + + 57 + - 96 THEN NULL WHEN + COUNT ( * ) THEN - 65 WHEN - 14 THEN NULL END * COALESCE ( + 32 + + CAST ( NULL AS INTEGER ), + 35 - + ( CAST ( NULL AS INTEGER ) ) ) THEN NULL ELSE + 24 * 36 END * SUM ( ALL - 43 )
----
37152

query I rowsort
SELECT - 62 + + - ( ( 87 ) )
----
-149

onlyif mysql # aggregate syntax: 
query I rowsort label-3882
SELECT + 67 + - + 72 - + ( COUNT( * ) ) AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-3882
SELECT + 67 + - + 72 - + ( COUNT ( * ) ) AS col2
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-3883
SELECT ALL 49 - - 8 - MIN( 36 )
----
21

skipif mysql # not compatible
query I rowsort label-3883
SELECT ALL 49 - - 8 - MIN ( 36 )
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3884
SELECT + 20 + + 43 * - CAST( NULL AS SIGNED ) AS col0, 84 col1
----
NULL
84

skipif mysql # not compatible
query II rowsort label-3884
SELECT + 20 + + 43 * - CAST ( NULL AS INTEGER ) AS col0, 84 col1
----
NULL
84

query I rowsort
SELECT - 31 * + 5 * + 63
----
-9765

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3886
SELECT ALL 43 / CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3886
SELECT ALL 43 / CAST ( NULL AS REAL )
----
NULL

query II rowsort
SELECT DISTINCT + - 42, 51 AS col2
----
-42
51

onlyif mysql # DIV for integer division: 
query I rowsort label-3888
SELECT ALL - 71 DIV 57
----
-1

skipif mysql # not compatible
query I rowsort label-3888
SELECT ALL - 71 / 57
----
-1

query II rowsort
SELECT DISTINCT + + 64, - 92 AS col1
----
64
-92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3890
SELECT + COUNT( * ) DIV - 49 * + ( + 50 ) + + + 34 col0
----
34

skipif mysql # not compatible
query I rowsort label-3890
SELECT + COUNT ( * ) / - 49 * + ( + 50 ) + + + 34 col0
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3891
SELECT + + ( + 57 ) + - COUNT( * ) + - 20 * - 6 + + + SUM( + + 61 ) - + 60 - + 19 + - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) / 79 * - 88 AS col1, - 77 AS col2
----
NULL
-77

skipif mysql # not compatible
query II rowsort label-3891
SELECT + + ( + 57 ) + - COUNT ( * ) + - 20 * - 6 + + + SUM ( + + 61 ) - + 60 - + 19 + - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) / 79 * - 88 AS col1, - 77 AS col2
----
NULL
-77

query I rowsort
SELECT + + 93 * 13
----
1209

query I rowsort
SELECT ALL + ( - 48 ) AS col1
----
-48

query I rowsort
SELECT + - 24 * - 77
----
1848

onlyif mysql # aggregate syntax: 
query I rowsort label-3895
SELECT + COUNT( ALL 84 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3895
SELECT + COUNT ( ALL 84 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3896
SELECT ALL - 54 * - - 27 + - COUNT( * ) * + 25 * ( + 60 ) col2
----
-2958

skipif mysql # not compatible
query I rowsort label-3896
SELECT ALL - 54 * - - 27 + - COUNT ( * ) * + 25 * ( + 60 ) col2
----
-2958

query I rowsort
SELECT ALL + 39 * + + 7 * - 77 + 79
----
-20942

query II rowsort
SELECT ALL + 70 AS col0, 94 * - + 65
----
70
-6110

query I rowsort
SELECT ALL - - 56 * 8 * - 95 + + - 87 AS col0
----
-42647

onlyif mysql # aggregate syntax: 
query II rowsort label-3900
SELECT + - 67 + - 63 + + - COUNT( * ) * - 44 * - - 14 * + NULLIF ( + 39, + + 93 ), 75 AS col0
----
23894
75

skipif mysql # not compatible
query II rowsort label-3900
SELECT + - 67 + - 63 + + - COUNT ( * ) * - 44 * - - 14 * + NULLIF ( + 39, + + 93 ), 75 AS col0
----
23894
75

onlyif mysql # DIV for integer division: 
query I rowsort label-3901
SELECT ALL + 17 * + 43 + - ( + + ( 8 ) ) DIV - 48 + + + NULLIF ( + 86, - 44 ) AS col2
----
817

skipif mysql # not compatible
query I rowsort label-3901
SELECT ALL + 17 * + 43 + - ( + + ( 8 ) ) / - 48 + + + NULLIF ( + 86, - 44 ) AS col2
----
817

onlyif mysql # aggregate syntax: 
query I rowsort label-3902
SELECT + + MIN( DISTINCT - + 67 ) * 29 AS col2
----
-1943

skipif mysql # not compatible
query I rowsort label-3902
SELECT + + MIN ( DISTINCT - + 67 ) * 29 AS col2
----
-1943

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3903
SELECT - + MAX( 63 ) + - 33 * 14 DIV - COUNT( * ) AS col1
----
399

skipif mysql # not compatible
query I rowsort label-3903
SELECT - + MAX ( 63 ) + - 33 * 14 / - COUNT ( * ) AS col1
----
399

onlyif mysql # aggregate syntax: 
query I rowsort label-3904
SELECT ALL - 84 * + - 71 * + MAX( ALL 28 )
----
166992

skipif mysql # not compatible
query I rowsort label-3904
SELECT ALL - 84 * + - 71 * + MAX ( ALL 28 )
----
166992

onlyif mysql # aggregate syntax: 
query I rowsort label-3905
SELECT MAX( ( + 57 ) ) AS col2
----
57

skipif mysql # not compatible
query I rowsort label-3905
SELECT MAX ( ( + 57 ) ) AS col2
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3906
SELECT - 34 + + + 82 + CASE + 40 WHEN - - 84 / + 58 + CAST( NULL AS SIGNED ) THEN + 64 ELSE NULL END + + 83 + 56 / - 54 + + - 49 + + + COUNT( * ) + + 39 + 72 / + - 21 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3906
SELECT - 34 + + + 82 + CASE + 40 WHEN - - 84 / + 58 + CAST ( NULL AS INTEGER ) THEN + 64 ELSE NULL END + + 83 + 56 / - 54 + + - 49 + + + COUNT ( * ) + + 39 + 72 / + - 21 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3907
SELECT + 45 * COUNT( * ), 82 AS col2
----
45
82

skipif mysql # not compatible
query II rowsort label-3907
SELECT + 45 * COUNT ( * ), 82 AS col2
----
45
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3908
SELECT - CAST( - 63 AS SIGNED ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-3908
SELECT - CAST ( - 63 AS INTEGER ) AS col2
----
63

query I rowsort
SELECT ALL CASE + 82 WHEN - 64 * + - NULLIF ( + - 83, + - 75 * 42 ) THEN 90 / + 87 * - 38 END AS col1
----
NULL

query I rowsort
SELECT ALL - 56 * 43 + - 88 AS col0
----
-2496

onlyif mysql # aggregate syntax: 
query I rowsort label-3911
SELECT ALL COUNT( DISTINCT - 33 ) * + SUM( + 94 ) * + - 74
----
-6956

skipif mysql # not compatible
query I rowsort label-3911
SELECT ALL COUNT ( DISTINCT - 33 ) * + SUM ( + 94 ) * + - 74
----
-6956

onlyif mysql # aggregate syntax: 
query I rowsort label-3912
SELECT DISTINCT + 94 - + MIN( ALL + 20 ) AS col1
----
74

skipif mysql # not compatible
query I rowsort label-3912
SELECT DISTINCT + 94 - + MIN ( ALL + 20 ) AS col1
----
74

query I rowsort
SELECT - 15 * + 96 * 90 AS col1
----
-129600

onlyif mysql # aggregate syntax: 
query I rowsort label-3914
SELECT - COUNT( - 56 ) * + NULLIF ( ( 33 ), + ( 65 ) ) + 65 AS col1
----
32

skipif mysql # not compatible
query I rowsort label-3914
SELECT - COUNT ( - 56 ) * + NULLIF ( ( 33 ), + ( 65 ) ) + 65 AS col1
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3915
SELECT - SUM( ALL + 31 ) DIV + 8 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-3915
SELECT - SUM ( ALL + 31 ) / + 8 AS col0
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3916
SELECT DISTINCT + 22 DIV - - COUNT( * ) AS col0
----
22

skipif mysql # not compatible
query I rowsort label-3916
SELECT DISTINCT + 22 / - - COUNT ( * ) AS col0
----
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3917
SELECT - COUNT( * ) - + - 24 AS col1, 23 + - - 12 + + + 71 DIV 24 AS col0
----
23
37

skipif mysql # not compatible
query II rowsort label-3917
SELECT - COUNT ( * ) - + - 24 AS col1, 23 + - - 12 + + + 71 / 24 AS col0
----
23
37

query I rowsort
SELECT ALL + 4 * - 46 * - 34 * + - 49
----
-306544

onlyif mysql # aggregate syntax: 
query I rowsort label-3919
SELECT ALL COALESCE ( - COUNT( * ), NULLIF ( + NULLIF ( + 57, - - 47 + + 33 ), + + 93 ), - + COALESCE ( - 51, - COUNT( * ) ) * - 90 )
----
-1

skipif mysql # not compatible
query I rowsort label-3919
SELECT ALL COALESCE ( - COUNT ( * ), NULLIF ( + NULLIF ( + 57, - - 47 + + 33 ), + + 93 ), - + COALESCE ( - 51, - COUNT ( * ) ) * - 90 )
----
-1

query I rowsort
SELECT DISTINCT + 22 * - 28
----
-616

query I rowsort
SELECT DISTINCT - - 26 * 4
----
104

query I rowsort
SELECT + NULLIF ( 48, + 39 ) AS col0
----
48

query I rowsort
SELECT - + 3 * - + 19 AS col2
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3924
SELECT + 5 DIV - NULLIF ( + MIN( - 81 ), + - 59 - + 10 ) + - + ( + + ( 58 ) ) + - ( - - COALESCE ( ( + 91 ), + + ( - 54 ), COUNT( * ) ) )
----
-149

skipif mysql # not compatible
query I rowsort label-3924
SELECT + 5 / - NULLIF ( + MIN ( - 81 ), + - 59 - + 10 ) + - + ( + + ( 58 ) ) + - ( - - COALESCE ( ( + 91 ), + + ( - 54 ), COUNT ( * ) ) )
----
-149

onlyif mysql # aggregate syntax: 
query I rowsort label-3925
SELECT ALL - COUNT( ALL 73 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3925
SELECT ALL - COUNT ( ALL 73 ) AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3926
SELECT + CAST( - ( + 18 ) AS SIGNED )
----
-18

skipif mysql # not compatible
query I rowsort label-3926
SELECT + CAST ( - ( + 18 ) AS INTEGER )
----
-18

query I rowsort
SELECT 46 * + 97 + - - 32 + - 2 * - 74 AS col2
----
4642

query I rowsort
SELECT DISTINCT - 76 + - + CASE 48 WHEN - 99 THEN - 50 END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3929
SELECT DISTINCT + 65 DIV - 86 * - COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3929
SELECT DISTINCT + 65 / - 86 * - COUNT ( * ) AS col0
----
0

query I rowsort
SELECT - ( - 14 ) * - - 30 AS col1
----
420

onlyif mysql # aggregate syntax: 
query I rowsort label-3931
SELECT DISTINCT COUNT( * ) + + + 99 col1
----
100

skipif mysql # not compatible
query I rowsort label-3931
SELECT DISTINCT COUNT ( * ) + + + 99 col1
----
100

query I rowsort
SELECT 95 * - 17
----
-1615

onlyif mysql # aggregate syntax: 
query I rowsort label-3933
SELECT - 31 * - - NULLIF ( - 43, + COUNT( * ) ) - + - 47 + - 13 * COUNT( * ) AS col0
----
1367

skipif mysql # not compatible
query I rowsort label-3933
SELECT - 31 * - - NULLIF ( - 43, + COUNT ( * ) ) - + - 47 + - 13 * COUNT ( * ) AS col0
----
1367

query I rowsort
SELECT DISTINCT + 71 * ( + 38 ) * + 82 * 34 + - - 75
----
7522099

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3935
SELECT DISTINCT CAST( + 41 AS SIGNED ) - + - 5 * + + 70 + - + 43 AS col2
----
348

skipif mysql # not compatible
query I rowsort label-3935
SELECT DISTINCT CAST ( + 41 AS INTEGER ) - + - 5 * + + 70 + - + 43 AS col2
----
348

query II rowsort
SELECT DISTINCT - 69, - COALESCE ( + 92, - - 56, 48 ) + 56 AS col1
----
-69
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3937
SELECT DISTINCT 93 AS col2, SUM( 62 ) - - + COUNT( + + 81 ) + + CAST( - - COALESCE ( - 14, + - ( + 98 ) * - COUNT( * ), + 89 DIV + 75 + 62 ) AS SIGNED ) - NULLIF ( + 25, - 54 ) DIV - 72 AS col1
----
93
49

skipif mysql # not compatible
query II rowsort label-3937
SELECT DISTINCT 93 AS col2, SUM ( 62 ) - - + COUNT ( + + 81 ) + + CAST ( - - COALESCE ( - 14, + - ( + 98 ) * - COUNT ( * ), + 89 / + 75 + 62 ) AS INTEGER ) - NULLIF ( + 25, - 54 ) / - 72 AS col1
----
93
49

onlyif mysql # aggregate syntax: 
query I rowsort label-3938
SELECT COUNT( * ) * + 78 - 26
----
52

skipif mysql # not compatible
query I rowsort label-3938
SELECT COUNT ( * ) * + 78 - 26
----
52

query II rowsort
SELECT ALL 2 AS col0, 63 AS col0
----
2
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3940
SELECT COUNT( * ) + - - 56
----
57

skipif mysql # not compatible
query I rowsort label-3940
SELECT COUNT ( * ) + - - 56
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-3941
SELECT 78 * + - COUNT( * ) AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-3941
SELECT 78 * + - COUNT ( * ) AS col2
----
-78

query I rowsort
SELECT 52 + 83
----
135

query I rowsort
SELECT ALL + 18 * - 63 AS col2
----
-1134

onlyif mysql # aggregate syntax: 
query I rowsort label-3944
SELECT ALL ( - 92 ) * NULLIF ( + 35, - + 31 ) * + - COUNT( ALL 15 ) + 76 + + NULLIF ( - 4, + - 82 / SUM( ALL 71 ) ) AS col1
----
3292

skipif mysql # not compatible
query I rowsort label-3944
SELECT ALL ( - 92 ) * NULLIF ( + 35, - + 31 ) * + - COUNT ( ALL 15 ) + 76 + + NULLIF ( - 4, + - 82 / SUM ( ALL 71 ) ) AS col1
----
3292

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3945
SELECT DISTINCT 74, 50 * + CAST( - 38 AS SIGNED ) col0
----
74
-1900

skipif mysql # not compatible
query II rowsort label-3945
SELECT DISTINCT 74, 50 * + CAST ( - 38 AS INTEGER ) col0
----
74
-1900

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3946
SELECT - - CAST( + ( + - ( + CASE + 70 WHEN + 42 THEN - + COUNT( * ) ELSE NULL END ) ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3946
SELECT - - CAST ( + ( + - ( + CASE + 70 WHEN + 42 THEN - + COUNT ( * ) ELSE NULL END ) ) AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT - 20 * 9 col2
----
-180

onlyif mysql # aggregate syntax: 
query I rowsort label-3948
SELECT + COUNT( * ) * + + 17 * + MIN( DISTINCT + - 97 ) + 38 * - + 74
----
-4461

skipif mysql # not compatible
query I rowsort label-3948
SELECT + COUNT ( * ) * + + 17 * + MIN ( DISTINCT + - 97 ) + 38 * - + 74
----
-4461

query II rowsort
SELECT DISTINCT - 43 AS col2, + 25 * 66 - + + 28
----
-43
1622

query I rowsort
SELECT DISTINCT + 60 + 60
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-3951
SELECT ALL - - 44 + MAX( + 53 ) + NULLIF ( + - 3, 68 )
----
94

skipif mysql # not compatible
query I rowsort label-3951
SELECT ALL - - 44 + MAX ( + 53 ) + NULLIF ( + - 3, 68 )
----
94

query I rowsort
SELECT ALL + + 73 * 59
----
4307

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3953
SELECT ALL - CAST( - - 28 AS SIGNED ) + + - 99
----
-127

skipif mysql # not compatible
query I rowsort label-3953
SELECT ALL - CAST ( - - 28 AS INTEGER ) + + - 99
----
-127

onlyif mysql # aggregate syntax: 
query I rowsort label-3954
SELECT DISTINCT - + COUNT( * ) + + 82 AS col2
----
81

skipif mysql # not compatible
query I rowsort label-3954
SELECT DISTINCT - + COUNT ( * ) + + 82 AS col2
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3955
SELECT + COUNT( * ) + - 23 + + COUNT( * )
----
-21

skipif mysql # not compatible
query I rowsort label-3955
SELECT + COUNT ( * ) + - 23 + + COUNT ( * )
----
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3956
SELECT 33 AS col0, COUNT( * ) - + - 61 DIV 86
----
33
1

skipif mysql # not compatible
query II rowsort label-3956
SELECT 33 AS col0, COUNT ( * ) - + - 61 / 86
----
33
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3957
SELECT + 86 + - 10 + - ( + COUNT( * ) ) + 84 + - 24 + - - 43 * + + COUNT( * ) * + 35 * - 71 + + - 14
----
-106734

skipif mysql # not compatible
query I rowsort label-3957
SELECT + 86 + - 10 + - ( + COUNT ( * ) ) + 84 + - 24 + - - 43 * + + COUNT ( * ) * + 35 * - 71 + + - 14
----
-106734

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3958
SELECT DISTINCT - 84 - + + 23 + - - CAST( + 11 AS SIGNED ) AS col0
----
-96

skipif mysql # not compatible
query I rowsort label-3958
SELECT DISTINCT - 84 - + + 23 + - - CAST ( + 11 AS INTEGER ) AS col0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3959
SELECT - 64 * - COUNT( * ) * + - 75 * 36 + - 23 AS col1
----
-172823

skipif mysql # not compatible
query I rowsort label-3959
SELECT - 64 * - COUNT ( * ) * + - 75 * 36 + - 23 AS col1
----
-172823

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3960
SELECT COALESCE ( + - 16, - + COALESCE ( - + 50, + 89 + + COUNT( * ), + 42 ) * + + COUNT( * ) + - 29 - - ( - ( 18 ) ) + - 81 * - - 12 * - - 72 + COUNT( * ), - 91 ) * - COALESCE ( + + 30, + - CAST( - 31 AS SIGNED ), - 64 * - 21 + 33 - + - 1 )
----
480

skipif mysql # not compatible
query I rowsort label-3960
SELECT COALESCE ( + - 16, - + COALESCE ( - + 50, + 89 + + COUNT ( * ), + 42 ) * + + COUNT ( * ) + - 29 - - ( - ( 18 ) ) + - 81 * - - 12 * - - 72 + COUNT ( * ), - 91 ) * - COALESCE ( + + 30, + - CAST ( - 31 AS INTEGER ), - 64 * - 21 + 33 - + - 1 )
----
480

onlyif mysql # aggregate syntax: 
query I rowsort label-3961
SELECT DISTINCT - MAX( DISTINCT + + 15 ) AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-3961
SELECT DISTINCT - MAX ( DISTINCT + + 15 ) AS col0
----
-15

query II rowsort
SELECT + 43, - 72 + - 68 AS col1
----
43
-140

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3963
SELECT SUM( + + CASE 18 WHEN - 68 THEN - - CAST( - 5 AS SIGNED ) END ) + - 46 + - 27 * 0 + + 16 / - + ( 70 ) + - 32 / + SUM( + 48 ) + + - ( - CAST( + 82 AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3963
SELECT SUM ( + + CASE 18 WHEN - 68 THEN - - CAST ( - 5 AS INTEGER ) END ) + - 46 + - 27 * 0 + + 16 / - + ( 70 ) + - 32 / + SUM ( + 48 ) + + - ( - CAST ( + 82 AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL 33 * 68 col0
----
2244

onlyif mysql # aggregate syntax: 
query I rowsort label-3965
SELECT + 26 * + + COUNT( * ) * + + 36 + 62
----
998

skipif mysql # not compatible
query I rowsort label-3965
SELECT + 26 * + + COUNT ( * ) * + + 36 + 62
----
998

onlyif mysql # DIV for integer division: 
query I rowsort label-3966
SELECT 42 DIV + + 58
----
0

skipif mysql # not compatible
query I rowsort label-3966
SELECT 42 / + + 58
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3967
SELECT CASE 30 WHEN - - 61 * - - 38 + COALESCE ( 57, - SUM( + 72 ) + + + 10 ) THEN 23 ELSE NULL END + + + 11 + 39 + - - 89 * + 25 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3967
SELECT CASE 30 WHEN - - 61 * - - 38 + COALESCE ( 57, - SUM ( + 72 ) + + + 10 ) THEN 23 ELSE NULL END + + + 11 + 39 + - - 89 * + 25 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3968
SELECT ALL + SUM( ALL - 35 ) * - 8 AS col0
----
280

skipif mysql # not compatible
query I rowsort label-3968
SELECT ALL + SUM ( ALL - 35 ) * - 8 AS col0
----
280

onlyif mysql # DIV for integer division: 
query I rowsort label-3969
SELECT ALL 20 DIV + - 44 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3969
SELECT ALL 20 / + - 44 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3970
SELECT - SUM( DISTINCT 31 ) AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-3970
SELECT - SUM ( DISTINCT 31 ) AS col0
----
-31

onlyif mysql # aggregate syntax: 
query II rowsort label-3971
SELECT ALL 65, - COUNT( * ) AS col2
----
65
-1

skipif mysql # not compatible
query II rowsort label-3971
SELECT ALL 65, - COUNT ( * ) AS col2
----
65
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-3972
SELECT 78, SUM( 28 ) * + CASE - 51 WHEN - MAX( ALL + + 98 ) THEN + 15 END col1
----
78
NULL

skipif mysql # not compatible
query II rowsort label-3972
SELECT 78, SUM ( 28 ) * + CASE - 51 WHEN - MAX ( ALL + + 98 ) THEN + 15 END col1
----
78
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3973
SELECT ALL 67 + ( + 69 ) / + ( - CAST( NULL AS SIGNED ) ) + - - NULLIF ( 56, ( 63 ) + 59 + + 98 + COUNT( * ) * ( COUNT( * ) ) + - + 23 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3973
SELECT ALL 67 + ( + 69 ) / + ( - CAST ( NULL AS INTEGER ) ) + - - NULLIF ( 56, ( 63 ) + 59 + + 98 + COUNT ( * ) * ( COUNT ( * ) ) + - + 23 )
----
NULL

query I rowsort
SELECT 51 - ( 88 ) - 98 + + + 14 * + + NULLIF ( + + ( - 29 ), + 3 * + 68 * - - 75 ) * + 2
----
-947

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3975
SELECT 83, + AVG ( ALL CASE WHEN NOT ( + CAST( NULL AS SIGNED ) ) < + 67 THEN + + 15 + + 63 + + + 44 WHEN ( NULL ) IS NOT NULL THEN NULL END ) * - + 87 - COUNT( * ) col0
----
83
NULL

skipif mysql # not compatible
query II rowsort label-3975
SELECT 83, + AVG ( ALL CASE WHEN NOT ( + CAST ( NULL AS INTEGER ) ) < + 67 THEN + + 15 + + 63 + + + 44 WHEN ( NULL ) IS NOT NULL THEN NULL END ) * - + 87 - COUNT ( * ) col0
----
83
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3976
SELECT DISTINCT - COUNT( * ) + + 15 AS col2
----
14

skipif mysql # not compatible
query I rowsort label-3976
SELECT DISTINCT - COUNT ( * ) + + 15 AS col2
----
14

query II rowsort
SELECT - 49 AS col0, + 45
----
-49
45

query I rowsort
SELECT - CASE - 21 WHEN + + 22 THEN + + 73 END AS col2
----
NULL

query I rowsort
SELECT ALL 76 + + 53 AS col0
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-3980
SELECT + - COUNT( * ) - - - 90 AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-3980
SELECT + - COUNT ( * ) - - - 90 AS col1
----
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3981
SELECT ALL - 31 * + 6 DIV + 74 DIV - + MAX( + - 82 ) DIV + + 69 + - 93
----
-93

skipif mysql # not compatible
query I rowsort label-3981
SELECT ALL - 31 * + 6 / + 74 / - + MAX ( + - 82 ) / + + 69 + - 93
----
-93

query I rowsort
SELECT ALL - 82 + + 19 AS col1
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3983
SELECT + COUNT( * ), - 91 * - 5 * - CAST( 65 AS SIGNED ) AS col2
----
1
-29575

skipif mysql # not compatible
query II rowsort label-3983
SELECT + COUNT ( * ), - 91 * - 5 * - CAST ( 65 AS INTEGER ) AS col2
----
1
-29575

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3984
SELECT 27 DIV + 89 + + + 32 + + - CAST( - - 12 AS SIGNED ) + - + 40 + + 98 AS col1
----
78

skipif mysql # not compatible
query I rowsort label-3984
SELECT 27 / + 89 + + + 32 + + - CAST ( - - 12 AS INTEGER ) + - + 40 + + 98 AS col1
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-3985
SELECT + - MIN( + 2 )
----
-2

skipif mysql # not compatible
query I rowsort label-3985
SELECT + - MIN ( + 2 )
----
-2

query I rowsort
SELECT - + 4 + 87 + + 3 AS col0
----
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3987
SELECT ALL + 55 DIV - MIN( + COALESCE ( - 93, + 91 ) )
----
0

skipif mysql # not compatible
query I rowsort label-3987
SELECT ALL + 55 / - MIN ( + COALESCE ( - 93, + 91 ) )
----
0

query I rowsort
SELECT DISTINCT + - 49 col1
----
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3989
SELECT - CAST( - ( - + 93 ) AS SIGNED ) * 56 + - 87 * - COUNT( * ) AS col2, 24 - - 60 col1
----
-5121
84

skipif mysql # not compatible
query II rowsort label-3989
SELECT - CAST ( - ( - + 93 ) AS INTEGER ) * 56 + - 87 * - COUNT ( * ) AS col2, 24 - - 60 col1
----
-5121
84

query I rowsort
SELECT ALL + 53 * + 51 * + 37
----
100011

query I rowsort
SELECT ALL + 91 * 55 - 13 * + - 46 col1
----
5603

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-3992
SELECT + 87 - 9 + + + COALESCE ( + 49, 79 DIV - + 20 - + 92 ) DIV 9 * - + CASE 96 WHEN - CAST( 74 AS SIGNED ) + - + AVG ( ALL + + CAST( NULL AS DECIMAL ) ) THEN NULL WHEN 19 * + 30 * - + CAST( + ( + + 41 ) AS SIGNED ) + COUNT( * ) THEN NULL ELSE + + 92 END
----
-382

skipif mysql # not compatible
query I rowsort label-3992
SELECT + 87 - 9 + + + COALESCE ( + 49, 79 / - + 20 - + 92 ) / 9 * - + CASE 96 WHEN - CAST ( 74 AS INTEGER ) + - + AVG ( ALL + + CAST ( NULL AS REAL ) ) THEN NULL WHEN 19 * + 30 * - + CAST ( + ( + + 41 ) AS INTEGER ) + COUNT ( * ) THEN NULL ELSE + + 92 END
----
-382

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3993
SELECT COALESCE ( - 83, - + COALESCE ( - 12, + 66 DIV - 48 ) * + 74, CASE - + 86 WHEN + ( + 83 ) THEN + + COUNT( * ) END )
----
-83

skipif mysql # not compatible
query I rowsort label-3993
SELECT COALESCE ( - 83, - + COALESCE ( - 12, + 66 / - 48 ) * + 74, CASE - + 86 WHEN + ( + 83 ) THEN + + COUNT ( * ) END )
----
-83

query I rowsort
SELECT COALESCE ( - + 55, + + 29 * 48 )
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-3995
SELECT NULLIF ( - + 41, + - COUNT( * ) )
----
-41

skipif mysql # not compatible
query I rowsort label-3995
SELECT NULLIF ( - + 41, + - COUNT ( * ) )
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-3996
SELECT NULLIF ( - 19, NULLIF ( - 40, - COUNT( * ) / + 74 ) + + 30 - - - 14 + - 38 * + 91 )
----
-19

skipif mysql # not compatible
query I rowsort label-3996
SELECT NULLIF ( - 19, NULLIF ( - 40, - COUNT ( * ) / + 74 ) + + 30 - - - 14 + - 38 * + 91 )
----
-19

query I rowsort
SELECT 44 * + - 64 - 82
----
-2898

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3998
SELECT + CAST( NULL AS SIGNED ) * + 74 / - + COUNT( * ) AS col0, 71 * 2 - - 50 * - COUNT( * ) + 21 + - - 67 col2
----
NULL
180

skipif mysql # not compatible
query II rowsort label-3998
SELECT + CAST ( NULL AS INTEGER ) * + 74 / - + COUNT ( * ) AS col0, 71 * 2 - - 50 * - COUNT ( * ) + 21 + - - 67 col2
----
NULL
180

onlyif mysql # aggregate syntax: 
query II rowsort label-3999
SELECT + 84 * - COUNT( * ) - + - 10 col1, - 35
----
-74
-35

skipif mysql # not compatible
query II rowsort label-3999
SELECT + 84 * - COUNT ( * ) - + - 10 col1, - 35
----
-74
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4000
SELECT ALL + COUNT( DISTINCT + 64 ) AS col0, - CAST( - - ( - 41 ) AS SIGNED ) * + - 73 + + - COUNT( * ) AS col2
----
1
-2994

skipif mysql # not compatible
query II rowsort label-4000
SELECT ALL + COUNT ( DISTINCT + 64 ) AS col0, - CAST ( - - ( - 41 ) AS INTEGER ) * + - 73 + + - COUNT ( * ) AS col2
----
1
-2994

query I rowsort
SELECT ALL 79 * + + 3 * 95
----
22515

query I rowsort
SELECT ALL 9 * 25 * + 87 + - 8
----
19567

query I rowsort
SELECT DISTINCT CASE + 8 WHEN + - 72 - ( ( - 91 ) ) THEN 95 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4004
SELECT - COUNT( DISTINCT + 36 )
----
-1

skipif mysql # not compatible
query I rowsort label-4004
SELECT - COUNT ( DISTINCT + 36 )
----
-1

query II rowsort
SELECT + ( - 76 ) - + + 95, - 34 AS col1
----
-171
-34

query I rowsort
SELECT ALL ( 65 ) AS col0
----
65

query I rowsort
SELECT - 49 + 90
----
41

query I rowsort
SELECT + 55 - + 28 AS col0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-4009
SELECT SUM( + ( + 19 ) ) AS col0
----
19

skipif mysql # not compatible
query I rowsort label-4009
SELECT SUM ( + ( + 19 ) ) AS col0
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-4010
SELECT + + ( - ( + 77 ) ) DIV - 3 AS col0
----
25

skipif mysql # not compatible
query I rowsort label-4010
SELECT + + ( - ( + 77 ) ) / - 3 AS col0
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4011
SELECT ALL + 71 + + CAST( NULL AS SIGNED ) AS col2, 92 AS col1
----
NULL
92

skipif mysql # not compatible
query II rowsort label-4011
SELECT ALL + 71 + + CAST ( NULL AS INTEGER ) AS col2, 92 AS col1
----
NULL
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4012
SELECT - + 66 + - + 99 * - + ( - 18 ) DIV + - COUNT( * )
----
1716

skipif mysql # not compatible
query I rowsort label-4012
SELECT - + 66 + - + 99 * - + ( - 18 ) / + - COUNT ( * )
----
1716

query I rowsort
SELECT ALL + 2 * 85 * + - 2
----
-340

query I rowsort
SELECT DISTINCT - 44 + + - 49 AS col0
----
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-4015
SELECT ALL + 22 DIV 53 * 8
----
0

skipif mysql # not compatible
query I rowsort label-4015
SELECT ALL + 22 / 53 * 8
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4016
SELECT - COUNT( * ) * 22 * - + CAST( NULL AS SIGNED ) / - + MIN( 2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4016
SELECT - COUNT ( * ) * 22 * - + CAST ( NULL AS INTEGER ) / - + MIN ( 2 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4017
SELECT ALL + MIN( - 19 ) col1
----
-19

skipif mysql # not compatible
query I rowsort label-4017
SELECT ALL + MIN ( - 19 ) col1
----
-19

query II rowsort
SELECT - - NULLIF ( + 79, - 37 ) AS col2, 98
----
79
98

query II rowsort
SELECT + 93 + + 58 col1, - 56 + 39
----
151
-17

query I rowsort
SELECT CASE - - 43 WHEN + 70 THEN NULL ELSE 45 + - - 87 - 40 END AS col2
----
92

query I rowsort
SELECT DISTINCT - COALESCE ( 21, - NULLIF ( 92, - 71 * 30 ) )
----
-21

query I rowsort
SELECT + + 64 * 87 AS col2
----
5568

query I rowsort
SELECT DISTINCT + 26 * ( - 11 )
----
-286

onlyif mysql # aggregate syntax: 
query I rowsort label-4024
SELECT + 82 * - 31 * + COUNT( * )
----
-2542

skipif mysql # not compatible
query I rowsort label-4024
SELECT + 82 * - 31 * + COUNT ( * )
----
-2542

query I rowsort
SELECT ALL 51 * + 25
----
1275

onlyif mysql # aggregate syntax: 
query I rowsort label-4026
SELECT ALL + - MAX( + 6 ) AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-4026
SELECT ALL + - MAX ( + 6 ) AS col0
----
-6

query I rowsort
SELECT DISTINCT + 76 * - 35 AS col2
----
-2660

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4028
SELECT - COUNT( ALL + 57 ) * - 15 + - CAST( NULL AS SIGNED ) / + 36 * 36 * - 13 + + - 64
----
NULL

skipif mysql # not compatible
query I rowsort label-4028
SELECT - COUNT ( ALL + 57 ) * - 15 + - CAST ( NULL AS INTEGER ) / + 36 * 36 * - 13 + + - 64
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4029
SELECT ALL + 91 AS col0, + 54 * - 78 * + COUNT( * )
----
91
-4212

skipif mysql # not compatible
query II rowsort label-4029
SELECT ALL + 91 AS col0, + 54 * - 78 * + COUNT ( * )
----
91
-4212

onlyif mysql # DIV for integer division: 
query I rowsort label-4030
SELECT 85 DIV - 19 + - 13
----
-17

skipif mysql # not compatible
query I rowsort label-4030
SELECT 85 / - 19 + - 13
----
-17

onlyif mysql # aggregate syntax: 
query II rowsort label-4031
SELECT + 83 AS col1, ( - + COUNT( * ) )
----
83
-1

skipif mysql # not compatible
query II rowsort label-4031
SELECT + 83 AS col1, ( - + COUNT ( * ) )
----
83
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4032
SELECT CAST( + 65 AS SIGNED ) AS col0
----
65

skipif mysql # not compatible
query I rowsort label-4032
SELECT CAST ( + 65 AS INTEGER ) AS col0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4033
SELECT ALL + COALESCE ( - - 76, + 48 * - 28, - COUNT( * ) ) AS col2
----
76

skipif mysql # not compatible
query I rowsort label-4033
SELECT ALL + COALESCE ( - - 76, + 48 * - 28, - COUNT ( * ) ) AS col2
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4034
SELECT + 33 + - - ( MAX( 25 ) ) + + 83
----
141

skipif mysql # not compatible
query I rowsort label-4034
SELECT + 33 + - - ( MAX ( 25 ) ) + + 83
----
141

query I rowsort
SELECT DISTINCT - 77 * - 39
----
3003

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4036
SELECT DISTINCT + 21 / 79 / - AVG ( ALL - 77 ) + + CAST( NULL AS SIGNED ) * - 71 + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4036
SELECT DISTINCT + 21 / 79 / - AVG ( ALL - 77 ) + + CAST ( NULL AS INTEGER ) * - 71 + + COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4037
SELECT ALL - 37 DIV + ( + - 78 ) + - - 19 * ( + 77 )
----
1463

skipif mysql # not compatible
query I rowsort label-4037
SELECT ALL - 37 / + ( + - 78 ) + - - 19 * ( + 77 )
----
1463

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4038
SELECT ALL CAST( NULL AS DECIMAL ) * - - 37 * + ( COUNT( ALL 31 ) ) + - MIN( DISTINCT + - 14 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4038
SELECT ALL CAST ( NULL AS REAL ) * - - 37 * + ( COUNT ( ALL 31 ) ) + - MIN ( DISTINCT + - 14 ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT 5 * + ( 89 ) * 32 + + 83 + 15 AS col2
----
14338

query I rowsort
SELECT DISTINCT 9 * + 96 AS col2
----
864

query I rowsort
SELECT DISTINCT - 14 * + - 79
----
1106

onlyif mysql # aggregate syntax: 
query I rowsort label-4042
SELECT DISTINCT - 5 + - COUNT( * )
----
-6

skipif mysql # not compatible
query I rowsort label-4042
SELECT DISTINCT - 5 + - COUNT ( * )
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4043
SELECT DISTINCT + COUNT( * ) + - 4 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-4043
SELECT DISTINCT + COUNT ( * ) + - 4 AS col0
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4044
SELECT ALL - 87 + - + 4 DIV COUNT( DISTINCT 30 )
----
-91

skipif mysql # not compatible
query I rowsort label-4044
SELECT ALL - 87 + - + 4 / COUNT ( DISTINCT 30 )
----
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4045
SELECT DISTINCT - COALESCE ( - + SUM( ALL 45 ), + + 59 DIV + + 83 ) + - COUNT( * ) - - ( 9 ) * - 61
----
-505

skipif mysql # not compatible
query I rowsort label-4045
SELECT DISTINCT - COALESCE ( - + SUM ( ALL 45 ), + + 59 / + + 83 ) + - COUNT ( * ) - - ( 9 ) * - 61
----
-505

onlyif mysql # aggregate syntax: 
query I rowsort label-4046
SELECT DISTINCT + + ( COUNT( * ) ) + + - 98
----
-97

skipif mysql # not compatible
query I rowsort label-4046
SELECT DISTINCT + + ( COUNT ( * ) ) + + - 98
----
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4047
SELECT ALL - - 50 + + - 49 + - - 50 * - - 24 * + 80 - 70 + + 41 DIV + - COUNT( * ), + 63 AS col0
----
95890
63

skipif mysql # not compatible
query II rowsort label-4047
SELECT ALL - - 50 + + - 49 + - - 50 * - - 24 * + 80 - 70 + + 41 / + - COUNT ( * ), + 63 AS col0
----
95890
63

query I rowsort
SELECT ALL + 40 - 58 AS col0
----
-18

query II rowsort
SELECT DISTINCT 62 AS col0, + 72
----
62
72

query I rowsort
SELECT ALL - ( + + 49 ) AS col0
----
-49

query I rowsort
SELECT 49 - + 51 * + ( + CASE - 8 WHEN 95 THEN NULL ELSE + 37 END ) * - 4
----
7597

onlyif mysql # aggregate syntax: 
query II rowsort label-4052
SELECT + 40 AS col1, 17 + + COUNT( * )
----
40
18

skipif mysql # not compatible
query II rowsort label-4052
SELECT + 40 AS col1, 17 + + COUNT ( * )
----
40
18

onlyif mysql # aggregate syntax: 
query II rowsort label-4053
SELECT 69 + + - COUNT( * ) * + 72 col0, + 6
----
-3
6

skipif mysql # not compatible
query II rowsort label-4053
SELECT 69 + + - COUNT ( * ) * + 72 col0, + 6
----
-3
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4054
SELECT DISTINCT + 13 AS col2, ( 83 ) + - CASE COUNT( * ) WHEN ( 83 ) + + COUNT( * ) THEN + CAST( + COUNT( * ) AS SIGNED ) END / 68 / - - ( COUNT( * ) ) * AVG ( 54 ) * + 68 / + + 41 + CASE - 82 WHEN + + 47 * 62 + + - 64 * - + 97 THEN + AVG ( - ( - 98 ) ) - + CASE 76 WHEN 23 THEN + 63 + - 21 * + + 80 * 82 + + 92 - 19 + - COUNT( 28 ) + - NULLIF ( 68, 25 + - ( - CAST( NULL AS SIGNED ) ) + + 0 * - 2 ) * + 50 WHEN + 86 THEN NULL WHEN 88 THEN 76 END ELSE + 49 END
----
13
NULL

skipif mysql # not compatible
query II rowsort label-4054
SELECT DISTINCT + 13 AS col2, ( 83 ) + - CASE COUNT ( * ) WHEN ( 83 ) + + COUNT ( * ) THEN + CAST ( + COUNT ( * ) AS INTEGER ) END / 68 / - - ( COUNT ( * ) ) * AVG ( 54 ) * + 68 / + + 41 + CASE - 82 WHEN + + 47 * 62 + + - 64 * - + 97 THEN + AVG ( - ( - 98 ) ) - + CASE 76 WHEN 23 THEN + 63 + - 21 * + + 80 * 82 + + 92 - 19 + - COUNT ( 28 ) + - NULLIF ( 68, 25 + - ( - CAST ( NULL AS INTEGER ) ) + + 0 * - 2 ) * + 50 WHEN + 86 THEN NULL WHEN 88 THEN 76 END ELSE + 49 END
----
13
NULL

query I rowsort
SELECT ALL + 99 - + - COALESCE ( + 47, - - 37 ) AS col2
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-4056
SELECT - COUNT( * ) * + - COUNT( * ) + + ( + 11 )
----
12

skipif mysql # not compatible
query I rowsort label-4056
SELECT - COUNT ( * ) * + - COUNT ( * ) + + ( + 11 )
----
12

query I rowsort
SELECT - 0 * + 36 AS col0
----
0

query I rowsort
SELECT 18 - + - 29
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4059
SELECT DISTINCT + 55 * - 34 - + COUNT( * ) + + 0 + 2 + 61 * 59 - + - COUNT( * ) - - COUNT( * ) * 31 * + + ( 80 )
----
4211

skipif mysql # not compatible
query I rowsort label-4059
SELECT DISTINCT + 55 * - 34 - + COUNT ( * ) + + 0 + 2 + 61 * 59 - + - COUNT ( * ) - - COUNT ( * ) * 31 * + + ( 80 )
----
4211

onlyif mysql # aggregate syntax: 
query I rowsort label-4060
SELECT DISTINCT - 97 * - SUM( ALL + - 86 ) AS col0
----
-8342

skipif mysql # not compatible
query I rowsort label-4060
SELECT DISTINCT - 97 * - SUM ( ALL + - 86 ) AS col0
----
-8342

query I rowsort
SELECT ALL + - 82 - NULLIF ( - 37, 66 * - 26 ) AS col1
----
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-4062
SELECT DISTINCT + 16 DIV 74 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4062
SELECT DISTINCT + 16 / 74 AS col1
----
0

query I rowsort
SELECT + 80 * + 49 + 34 AS col0
----
3954

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4064
SELECT + 23 + - COUNT( DISTINCT - 75 ) DIV 59 * + 1
----
23

skipif mysql # not compatible
query I rowsort label-4064
SELECT + 23 + - COUNT ( DISTINCT - 75 ) / 59 * + 1
----
23

onlyif mysql # aggregate syntax: 
query II rowsort label-4065
SELECT + 75 col2, - COUNT( + + COALESCE ( - + 8, 76 * + ( 76 ) ) ) AS col2
----
75
-1

skipif mysql # not compatible
query II rowsort label-4065
SELECT + 75 col2, - COUNT ( + + COALESCE ( - + 8, 76 * + ( 76 ) ) ) AS col2
----
75
-1

query I rowsort
SELECT ALL + ( 17 ) col0
----
17

query I rowsort
SELECT ( 16 ) + - + 51 * + 72 AS col2
----
-3656

query II rowsort
SELECT 62 * - - 67 - 1 * 72, 81 AS col1
----
4082
81

query I rowsort
SELECT ALL 4 + - 74 AS col0
----
-70

query I rowsort
SELECT DISTINCT 39 + - 77
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4071
SELECT ALL 68 + + + 24 * - CAST( COUNT( * ) AS SIGNED )
----
44

skipif mysql # not compatible
query I rowsort label-4071
SELECT ALL 68 + + + 24 * - CAST ( COUNT ( * ) AS INTEGER )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-4072
SELECT CASE + NULLIF ( + - 62, - + 51 ) WHEN + + 97 * - 71 * 3 THEN NULL WHEN - 43 THEN + 57 * - SUM( ALL + 71 ) ELSE + 48 END * + - 21 AS col1
----
-1008

skipif mysql # not compatible
query I rowsort label-4072
SELECT CASE + NULLIF ( + - 62, - + 51 ) WHEN + + 97 * - 71 * 3 THEN NULL WHEN - 43 THEN + 57 * - SUM ( ALL + 71 ) ELSE + 48 END * + - 21 AS col1
----
-1008

onlyif mysql # aggregate syntax: 
query II rowsort label-4073
SELECT ALL 61 + + + 84 AS col2, MAX( ALL + 33 ) * - 3 col1
----
145
-99

skipif mysql # not compatible
query II rowsort label-4073
SELECT ALL 61 + + + 84 AS col2, MAX ( ALL + 33 ) * - 3 col1
----
145
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-4074
SELECT 6 DIV 65 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4074
SELECT 6 / 65 AS col2
----
0

query I rowsort
SELECT ALL 38 + COALESCE ( + 60, ( + 53 ) + - 51, 52 * 42 ) AS col0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4076
SELECT DISTINCT 67 + + + COUNT( * ) * - 93 AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-4076
SELECT DISTINCT 67 + + + COUNT ( * ) * - 93 AS col0
----
-26

query I rowsort
SELECT ( 92 ) + - ( ( 30 ) ) * + 6
----
-88

query I rowsort
SELECT ALL 2 - + 4 + 63 col0
----
61

query II rowsort
SELECT ALL + 94 * + 76 AS col2, 21
----
7144
21

query II rowsort
SELECT + 78 + 5 AS col2, - 74
----
83
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-4081
SELECT - - 50 * MIN( - + ( - 85 ) ) * - + 68 + - 44 - + 18 - - + 91 * + + MIN( - + 24 ) col2
----
-291246

skipif mysql # not compatible
query I rowsort label-4081
SELECT - - 50 * MIN ( - + ( - 85 ) ) * - + 68 + - 44 - + 18 - - + 91 * + + MIN ( - + 24 ) col2
----
-291246

query I rowsort
SELECT 63 + - 85
----
-22

query I rowsort
SELECT + 61 - - 29
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4084
SELECT ALL - 3 * - 6 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4084
SELECT ALL - 3 * - 6 * + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT 94 * 97 AS col2, + 89 AS col1
----
9118
89

query I rowsort
SELECT + 5 + - + 98
----
-93

onlyif mysql # aggregate syntax: 
query II rowsort label-4087
SELECT - COUNT( * ) + 34 AS col1, - 56 AS col0
----
33
-56

skipif mysql # not compatible
query II rowsort label-4087
SELECT - COUNT ( * ) + 34 AS col1, - 56 AS col0
----
33
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4088
SELECT DISTINCT SUM( - 10 ), CASE - 85 WHEN - + 76 + ( + 75 ) THEN NULL WHEN - 61 + + NULLIF ( CAST( NULL AS SIGNED ), 72 ) * + 93 THEN NULL WHEN - - 78 + - 64 * - + 61 THEN - + 77 END AS col2
----
-10
NULL

skipif mysql # not compatible
query II rowsort label-4088
SELECT DISTINCT SUM ( - 10 ), CASE - 85 WHEN - + 76 + ( + 75 ) THEN NULL WHEN - 61 + + NULLIF ( CAST ( NULL AS INTEGER ), 72 ) * + 93 THEN NULL WHEN - - 78 + - 64 * - + 61 THEN - + 77 END AS col2
----
-10
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4089
SELECT ALL + + CAST( NULL AS DECIMAL ) * - + 53, - 89 + + 12 / + + MAX( + 13 ) + - CASE - 96 WHEN + 38 THEN COALESCE ( + AVG ( DISTINCT + 24 ), - 51 ) ELSE NULL END AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4089
SELECT ALL + + CAST ( NULL AS REAL ) * - + 53, - 89 + + 12 / + + MAX ( + 13 ) + - CASE - 96 WHEN + 38 THEN COALESCE ( + AVG ( DISTINCT + 24 ), - 51 ) ELSE NULL END AS col1
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4090
SELECT - + SUM( + 79 )
----
-79

skipif mysql # not compatible
query I rowsort label-4090
SELECT - + SUM ( + 79 )
----
-79

query I rowsort
SELECT 43 + 70
----
113

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4092
SELECT CAST( NULL AS SIGNED ) + - 72
----
NULL

skipif mysql # not compatible
query I rowsort label-4092
SELECT CAST ( NULL AS INTEGER ) + - 72
----
NULL

query I rowsort
SELECT ALL + - 55 * + - 64 * + ( + 59 )
----
207680

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4094
SELECT MIN( - ( + 82 ) ) * - COUNT( * ) * - + ( - 77 ) - + 45 + - + NULLIF ( 0, - 46 ) * + ( + - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4094
SELECT MIN ( - ( + 82 ) ) * - COUNT ( * ) * - + ( - 77 ) - + 45 + - + NULLIF ( 0, - 46 ) * + ( + - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 76 * + 35 AS col1
----
2660

onlyif mysql # aggregate syntax: 
query I rowsort label-4096
SELECT DISTINCT + ( + + 4 ) + - - COUNT( * ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-4096
SELECT DISTINCT + ( + + 4 ) + - - COUNT ( * ) AS col1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4097
SELECT DISTINCT - ( - COALESCE ( 65, + 71 * COUNT( * ) + - ( - - 1 ) ) )
----
65

skipif mysql # not compatible
query I rowsort label-4097
SELECT DISTINCT - ( - COALESCE ( 65, + 71 * COUNT ( * ) + - ( - - 1 ) ) )
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4098
SELECT ALL MAX( ALL - 26 ) DIV + + 85 * + + CAST( - 30 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-4098
SELECT ALL MAX ( ALL - 26 ) / + + 85 * + + CAST ( - 30 AS INTEGER )
----
0

query I rowsort
SELECT ALL NULLIF ( + - 13, - - 25 ) * - 80 + - 79 AS col1
----
961

onlyif mysql # aggregate syntax: 
query II rowsort label-4100
SELECT NULLIF ( + COUNT( * ), + - 87 ) col2, 65 + - 84 + + COUNT( * ) * - COALESCE ( - + 11, 8 ) AS col2
----
1
-8

skipif mysql # not compatible
query II rowsort label-4100
SELECT NULLIF ( + COUNT ( * ), + - 87 ) col2, 65 + - 84 + + COUNT ( * ) * - COALESCE ( - + 11, 8 ) AS col2
----
1
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-4101
SELECT ALL + NULLIF ( + 39, - COUNT( 89 ) * + - 3 ) AS col1
----
39

skipif mysql # not compatible
query I rowsort label-4101
SELECT ALL + NULLIF ( + 39, - COUNT ( 89 ) * + - 3 ) AS col1
----
39

query I rowsort
SELECT ALL 77 * - - 19 - + 7 AS col1
----
1456

onlyif mysql # aggregate syntax: 
query I rowsort label-4103
SELECT ALL 83 * SUM( ALL + 32 ) * + 33 - + 4 + - MIN( DISTINCT + ( - 58 ) ) col2
----
87702

skipif mysql # not compatible
query I rowsort label-4103
SELECT ALL 83 * SUM ( ALL + 32 ) * + 33 - + 4 + - MIN ( DISTINCT + ( - 58 ) ) col2
----
87702

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4104
SELECT ALL 61 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4104
SELECT ALL 61 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4105
SELECT ALL + 68 * - 77 * COUNT( * ) * + 18 - - 48 AS col2
----
-94200

skipif mysql # not compatible
query I rowsort label-4105
SELECT ALL + 68 * - 77 * COUNT ( * ) * + 18 - - 48 AS col2
----
-94200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4106
SELECT + ( - ( MIN( ALL + 23 ) ) ) * 51 * + 29 + 11 + - CAST( NULL AS SIGNED ) * - 94 + 82 / MAX( DISTINCT 44 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4106
SELECT + ( - ( MIN ( ALL + 23 ) ) ) * 51 * + 29 + 11 + - CAST ( NULL AS INTEGER ) * - 94 + 82 / MAX ( DISTINCT 44 ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT 88 * + + 74 AS col0
----
6512

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4108
SELECT DISTINCT - CASE + 72 WHEN - 26 + - COALESCE ( 82, - + COUNT( * ) - + - 97, - 94 ) + + ( + + 94 ) * + 70 THEN - 18 + + COALESCE ( + 45, - ( + + ( 26 ) ), + CAST( NULL AS SIGNED ) ) ELSE - 14 END * + 51 AS col0
----
714

skipif mysql # not compatible
query I rowsort label-4108
SELECT DISTINCT - CASE + 72 WHEN - 26 + - COALESCE ( 82, - + COUNT ( * ) - + - 97, - 94 ) + + ( + + 94 ) * + 70 THEN - 18 + + COALESCE ( + 45, - ( + + ( 26 ) ), + CAST ( NULL AS INTEGER ) ) ELSE - 14 END * + 51 AS col0
----
714

onlyif mysql # DIV for integer division: 
query II rowsort label-4109
SELECT + - 54 * 9 + + 20 AS col0, - 79 + + 62 + + 18 + + 62 DIV 27
----
-466
3

skipif mysql # not compatible
query II rowsort label-4109
SELECT + - 54 * 9 + + 20 AS col0, - 79 + + 62 + + 18 + + 62 / 27
----
-466
3

query I rowsort
SELECT ALL - 31 * 49 - - + 3
----
-1516

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4111
SELECT + - COALESCE ( - + AVG ( DISTINCT 7 ), - - CAST( + + 54 AS SIGNED ) * + COUNT( * ), - COUNT( * ) * - 71 ) * - CASE - ( - 53 ) WHEN + 23 + + 35 THEN 60 WHEN - 69 + + 81 - - COALESCE ( + - COUNT( * ), - 70 ) THEN + - MAX( - + 47 ) + + - CASE + 36 WHEN + + 62 - 82 THEN - 40 + 89 * - NULLIF ( - + 78, + - 8 ) WHEN - 77 THEN + - 29 * - 46 * - 87 + - 33 + + 43 + NULLIF ( - 30, COUNT( * ) * 55 + + ( + - COALESCE ( + 54, - 58 - - 87 * COUNT( * ) ) ) + COUNT( * ) * - 1 ) * ( 81 ) END - - 90 * + CAST( 99 AS SIGNED ) * - 72 END + 13 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4111
SELECT + - COALESCE ( - + AVG ( DISTINCT 7 ), - - CAST ( + + 54 AS INTEGER ) * + COUNT ( * ), - COUNT ( * ) * - 71 ) * - CASE - ( - 53 ) WHEN + 23 + + 35 THEN 60 WHEN - 69 + + 81 - - COALESCE ( + - COUNT ( * ), - 70 ) THEN + - MAX ( - + 47 ) + + - CASE + 36 WHEN + + 62 - 82 THEN - 40 + 89 * - NULLIF ( - + 78, + - 8 ) WHEN - 77 THEN + - 29 * - 46 * - 87 + - 33 + + 43 + NULLIF ( - 30, COUNT ( * ) * 55 + + ( + - COALESCE ( + 54, - 58 - - 87 * COUNT ( * ) ) ) + COUNT ( * ) * - 1 ) * ( 81 ) END - - 90 * + CAST ( 99 AS INTEGER ) * - 72 END + 13 AS col0
----
NULL

query II rowsort
SELECT 20, 25 AS col1
----
20
25

query II rowsort
SELECT 57 AS col1, 15 * 25 * - - 6 AS col1
----
57
2250

onlyif mysql # aggregate syntax: 
query I rowsort label-4114
SELECT DISTINCT + + SUM( ALL - + 5 ) * + 39 col0
----
-195

skipif mysql # not compatible
query I rowsort label-4114
SELECT DISTINCT + + SUM ( ALL - + 5 ) * + 39 col0
----
-195

onlyif mysql # DIV for integer division: 
query I rowsort label-4115
SELECT DISTINCT + 38 DIV 94 * 12 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4115
SELECT DISTINCT + 38 / 94 * 12 AS col1
----
0

query I rowsort
SELECT + - 27 * + 86 AS col0
----
-2322

query I rowsort
SELECT ALL - 16 * + 44
----
-704

query I rowsort
SELECT ALL 18 * 2 * 85
----
3060

query I rowsort
SELECT ALL + 47 + - 61 + + 54
----
40

query I rowsort
SELECT + ( 43 ) - - 11 + - 30
----
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4121
SELECT + 1 * 12 + - NULLIF ( + COALESCE ( 69, MAX( - ( + + 45 ) ) + 14 DIV + 82 DIV + 1 + + 74, - - 96 + - 18, - 94 - 1 ), - COUNT( * ) + 22 * - 50 ) - - 84
----
27

skipif mysql # not compatible
query I rowsort label-4121
SELECT + 1 * 12 + - NULLIF ( + COALESCE ( 69, MAX ( - ( + + 45 ) ) + 14 / + 82 / + 1 + + 74, - - 96 + - 18, - 94 - 1 ), - COUNT ( * ) + 22 * - 50 ) - - 84
----
27

query I rowsort
SELECT + 5 + 5
----
10

query II rowsort
SELECT - 38 AS col0, 21 + - + 8
----
-38
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4124
SELECT DISTINCT + - CASE + - 32 WHEN + 44 THEN 43 * 98 + - 97 + - COUNT( * ) + + + 58 END * + + AVG ( DISTINCT - + 7 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4124
SELECT DISTINCT + - CASE + - 32 WHEN + 44 THEN 43 * 98 + - 97 + - COUNT ( * ) + + + 58 END * + + AVG ( DISTINCT - + 7 ) AS col1
----
NULL

query I rowsort
SELECT - 89 * - 67 + + 63 col2
----
6026

query I rowsort
SELECT ALL + ( 50 ) + 65
----
115

query I rowsort
SELECT DISTINCT ( 31 ) + + + 74 + + + 84 + - - 21 * 5 * - - 31 AS col2
----
3444

query II rowsort
SELECT ALL 26 col2, + 66 AS col0
----
26
66

query I rowsort
SELECT DISTINCT + 72 + + - 76
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-4130
SELECT ALL 75 + 97 / CASE - 25 WHEN - 55 THEN + + 60 * COUNT( * ) * + + 61 WHEN + - 69 THEN + + 83 END / - 1 * + - 76 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4130
SELECT ALL 75 + 97 / CASE - 25 WHEN - 55 THEN + + 60 * COUNT ( * ) * + + 61 WHEN + - 69 THEN + + 83 END / - 1 * + - 76 AS col0
----
NULL

query I rowsort
SELECT ALL + 90 + - 80 AS col1
----
10

query I rowsort
SELECT ALL ( - + ( - - 48 ) ) AS col2
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4133
SELECT - 37 AS col0, CAST( NULL AS SIGNED )
----
-37
NULL

skipif mysql # not compatible
query II rowsort label-4133
SELECT - 37 AS col0, CAST ( NULL AS INTEGER )
----
-37
NULL

query II rowsort
SELECT 95, 0 AS col2
----
95
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4135
SELECT - CAST( NULL AS SIGNED ) * MAX( DISTINCT + NULLIF ( + 67, + CAST( + ( 29 ) AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4135
SELECT - CAST ( NULL AS INTEGER ) * MAX ( DISTINCT + NULLIF ( + 67, + CAST ( + ( 29 ) AS INTEGER ) ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4136
SELECT DISTINCT + COUNT( * ) * - 2, + CASE + 46 WHEN CASE - - 12 WHEN - 80 THEN + MIN( + + 19 ) WHEN + COUNT( * ) / 52 THEN NULL ELSE NULL END / - CAST( 57 AS SIGNED ) THEN 19 WHEN + - 88 THEN NULL ELSE NULL END AS col0
----
-2
NULL

skipif mysql # not compatible
query II rowsort label-4136
SELECT DISTINCT + COUNT ( * ) * - 2, + CASE + 46 WHEN CASE - - 12 WHEN - 80 THEN + MIN ( + + 19 ) WHEN + COUNT ( * ) / 52 THEN NULL ELSE NULL END / - CAST ( 57 AS INTEGER ) THEN 19 WHEN + - 88 THEN NULL ELSE NULL END AS col0
----
-2
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4137
SELECT ALL - 28 * + - COUNT( * ) AS col1
----
28

skipif mysql # not compatible
query I rowsort label-4137
SELECT ALL - 28 * + - COUNT ( * ) AS col1
----
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4138
SELECT DISTINCT 5 DIV + COUNT( * ) - + - 59 * + 60 AS col1, 96 * - + 0 + 47
----
3545
47

skipif mysql # not compatible
query II rowsort label-4138
SELECT DISTINCT 5 / + COUNT ( * ) - + - 59 * + 60 AS col1, 96 * - + 0 + 47
----
3545
47

onlyif mysql # aggregate syntax: 
query II rowsort label-4139
SELECT ALL + COUNT( * ) AS col0, + 10
----
1
10

skipif mysql # not compatible
query II rowsort label-4139
SELECT ALL + COUNT ( * ) AS col0, + 10
----
1
10

onlyif mysql # DIV for integer division: 
query I rowsort label-4140
SELECT DISTINCT - 74 DIV - + 44 - - 19 AS col0
----
20

skipif mysql # not compatible
query I rowsort label-4140
SELECT DISTINCT - 74 / - + 44 - - 19 AS col0
----
20

query I rowsort
SELECT DISTINCT + 83 * 0 * - 73
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4142
SELECT ALL + 41 AS col0, + CASE - - 14 WHEN - - 31 THEN + 91 WHEN + 94 * - ( - ( COALESCE ( CAST( NULL AS SIGNED ), + - 80 * - 39 + + 76, 36 - 47 * + 80, + 27 / + 1 * CAST( NULL AS SIGNED ) + - + CASE + 73 WHEN - 25 * 97 + ( - + NULLIF ( + - 37, - 21 / 99 ) ) THEN CAST( MIN( DISTINCT + 68 ) AS SIGNED ) * + - MIN( - - 96 ) * - 76 - 44 / 58 WHEN - 43 THEN NULL ELSE NULL END * 75 / + NULLIF ( + ( 92 ), - 50 ) ) ) ) * + ( + AVG ( ALL ( + + 53 ) ) ) THEN NULL ELSE NULL END + 8
----
41
NULL

skipif mysql # not compatible
query II rowsort label-4142
SELECT ALL + 41 AS col0, + CASE - - 14 WHEN - - 31 THEN + 91 WHEN + 94 * - ( - ( COALESCE ( CAST ( NULL AS INTEGER ), + - 80 * - 39 + + 76, 36 - 47 * + 80, + 27 / + 1 * CAST ( NULL AS INTEGER ) + - + CASE + 73 WHEN - 25 * 97 + ( - + NULLIF ( + - 37, - 21 / 99 ) ) THEN CAST ( MIN ( DISTINCT + 68 ) AS INTEGER ) * + - MIN ( - - 96 ) * - 76 - 44 / 58 WHEN - 43 THEN NULL ELSE NULL END * 75 / + NULLIF ( + ( 92 ), - 50 ) ) ) ) * + ( + AVG ( ALL ( + + 53 ) ) ) THEN NULL ELSE NULL END + 8
----
41
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4143
SELECT - NULLIF ( + + 76, - 47 + - 76 ) * + + ( 21 ) * + COUNT( * )
----
-1596

skipif mysql # not compatible
query I rowsort label-4143
SELECT - NULLIF ( + + 76, - 47 + - 76 ) * + + ( 21 ) * + COUNT ( * )
----
-1596

onlyif mysql # aggregate syntax: 
query I rowsort label-4144
SELECT DISTINCT + + MAX( - 25 ) AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-4144
SELECT DISTINCT + + MAX ( - 25 ) AS col1
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-4145
SELECT ALL + + SUM( + 0 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4145
SELECT ALL + + SUM ( + 0 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4146
SELECT - COUNT( DISTINCT + - 7 ) * + 58 * - + COUNT( * ), 48 AS col2
----
58
48

skipif mysql # not compatible
query II rowsort label-4146
SELECT - COUNT ( DISTINCT + - 7 ) * + 58 * - + COUNT ( * ), 48 AS col2
----
58
48

onlyif mysql # aggregate syntax: 
query I rowsort label-4147
SELECT - + COUNT( * ) * 97 + + - 26 + + CASE + ( 36 ) WHEN 50 * 89 THEN - - 2 - 7 ELSE 33 * - 10 END * + COUNT( * ) * + - COALESCE ( + CASE - - 12 WHEN - 62 THEN NULL ELSE 4 END, - + 8 ) - - 70 AS col2
----
1267

skipif mysql # not compatible
query I rowsort label-4147
SELECT - + COUNT ( * ) * 97 + + - 26 + + CASE + ( 36 ) WHEN 50 * 89 THEN - - 2 - 7 ELSE 33 * - 10 END * + COUNT ( * ) * + - COALESCE ( + CASE - - 12 WHEN - 62 THEN NULL ELSE 4 END, - + 8 ) - - 70 AS col2
----
1267

onlyif mysql # aggregate syntax: 
query I rowsort label-4148
SELECT MAX( DISTINCT + + 6 ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-4148
SELECT MAX ( DISTINCT + + 6 ) AS col2
----
6

query I rowsort
SELECT - + 6 - 84 + 49 AS col1
----
-41

query I rowsort
SELECT ALL + - CASE 56 WHEN - 78 + + 12 + 15 * 99 THEN NULL WHEN - - 43 THEN - 94 END AS col1
----
NULL

query I rowsort
SELECT ALL + ( - 37 ) col1
----
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-4152
SELECT + - 31 + - + 86 + + 76 * 50 DIV + 39
----
-20

skipif mysql # not compatible
query I rowsort label-4152
SELECT + - 31 + - + 86 + + 76 * 50 / + 39
----
-20

query I rowsort
SELECT ALL 49 * - 87 + - - 99 * - 58
----
-10005

query I rowsort
SELECT + 19 * - 30 AS col2
----
-570

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4155
SELECT DISTINCT - - 1 * + 50 DIV 23 + - + 8 - + ( - 18 ) * + COUNT( * ) col1
----
12

skipif mysql # not compatible
query I rowsort label-4155
SELECT DISTINCT - - 1 * + 50 / 23 + - + 8 - + ( - 18 ) * + COUNT ( * ) col1
----
12

query I rowsort
SELECT ALL + + 35 * - 69 + - + 11 + - 14 * - 85 * 55 AS col0
----
63024

onlyif mysql # aggregate syntax: 
query I rowsort label-4157
SELECT ALL - ( - + 66 ) * + 39 + SUM( - - 45 ) + 57
----
2676

skipif mysql # not compatible
query I rowsort label-4157
SELECT ALL - ( - + 66 ) * + 39 + SUM ( - - 45 ) + 57
----
2676

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4158
SELECT CASE + + 30 WHEN + 55 * - - 32 THEN NULL ELSE + + 20 * - 59 * - COUNT( * ) END * + + 36 + 24 + - - 71 - - CASE WHEN 97 IN ( MAX( ALL - + 74 ) ) THEN + 13 + COALESCE ( + 21, + + NULLIF ( + ( 20 ), + ( + COUNT( * ) ) ), - 21 - - MAX( - 35 ) ) END * + CAST( + 33 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4158
SELECT CASE + + 30 WHEN + 55 * - - 32 THEN NULL ELSE + + 20 * - 59 * - COUNT ( * ) END * + + 36 + 24 + - - 71 - - CASE WHEN 97 IN ( MAX ( ALL - + 74 ) ) THEN + 13 + COALESCE ( + 21, + + NULLIF ( + ( 20 ), + ( + COUNT ( * ) ) ), - 21 - - MAX ( - 35 ) ) END * + CAST ( + 33 AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4159
SELECT ALL + COUNT( * ), - 91 AS col2
----
1
-91

skipif mysql # not compatible
query II rowsort label-4159
SELECT ALL + COUNT ( * ), - 91 AS col2
----
1
-91

query I rowsort
SELECT + + 90 - 20
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4161
SELECT ALL - ( + 72 ) * - 86 + + 64 * + + 71 DIV - NULLIF ( COUNT( * ), - 27 )
----
1648

skipif mysql # not compatible
query I rowsort label-4161
SELECT ALL - ( + 72 ) * - 86 + + 64 * + + 71 / - NULLIF ( COUNT ( * ), - 27 )
----
1648

query I rowsort
SELECT - COALESCE ( + 82, 78 )
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4163
SELECT DISTINCT + + 50 * + - CAST( 87 AS DECIMAL ) / + CAST( + COUNT( * ) AS SIGNED ) + CAST( NULL AS SIGNED ) + + 12 * + 87 + - - 30
----
NULL

skipif mysql # not compatible
query I rowsort label-4163
SELECT DISTINCT + + 50 * + - CAST ( 87 AS REAL ) / + CAST ( + COUNT ( * ) AS INTEGER ) + CAST ( NULL AS INTEGER ) + + 12 * + 87 + - - 30
----
NULL

query I rowsort
SELECT DISTINCT 91 + + 93 * - 23 AS col2
----
-2048

query I rowsort
SELECT DISTINCT 61 + - + 46
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-4166
SELECT + 69 + + - 0 AS col1, 48 - - COUNT( * ) + + 13 col2
----
69
62

skipif mysql # not compatible
query II rowsort label-4166
SELECT + 69 + + - 0 AS col1, 48 - - COUNT ( * ) + + 13 col2
----
69
62

onlyif mysql # aggregate syntax: 
query I rowsort label-4167
SELECT ALL - COUNT( * ) * + COUNT( * ) * - 37
----
37

skipif mysql # not compatible
query I rowsort label-4167
SELECT ALL - COUNT ( * ) * + COUNT ( * ) * - 37
----
37

onlyif mysql # DIV for integer division: 
query II rowsort label-4168
SELECT ALL 92 DIV - - 41, + 12 * 42 AS col2
----
2
504

skipif mysql # not compatible
query II rowsort label-4168
SELECT ALL 92 / - - 41, + 12 * 42 AS col2
----
2
504

query I rowsort
SELECT ALL 51 + 37 AS col1
----
88

onlyif mysql # aggregate syntax: 
query II rowsort label-4170
SELECT CASE + - 46 WHEN - 70 THEN + + 52 WHEN + - 48 * + 87 THEN - NULLIF ( 5, - + 89 * MAX( - 26 ) + - 63 * + 17 - - 48 + + 89 ) + 30 ELSE + 24 END + - MAX( DISTINCT - ( 89 ) ) + + 53 + - - 38 col0, - 51
----
204
-51

skipif mysql # not compatible
query II rowsort label-4170
SELECT CASE + - 46 WHEN - 70 THEN + + 52 WHEN + - 48 * + 87 THEN - NULLIF ( 5, - + 89 * MAX ( - 26 ) + - 63 * + 17 - - 48 + + 89 ) + 30 ELSE + 24 END + - MAX ( DISTINCT - ( 89 ) ) + + 53 + - - 38 col0, - 51
----
204
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4171
SELECT 55 DIV MIN( - 44 ) * + - COUNT( * ) * - 54 * + 9
----
-486

skipif mysql # not compatible
query I rowsort label-4171
SELECT 55 / MIN ( - 44 ) * + - COUNT ( * ) * - 54 * + 9
----
-486

query II rowsort
SELECT 90 * + 66, + 27 + + 4 * + 18 * 46 AS col1
----
5940
3339

query II rowsort
SELECT ALL 45 * + 15, NULLIF ( - 78, - 4 ) AS col2
----
675
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-4174
SELECT 61 + - 18 - - 1 * - 59 DIV 79 + + - 42 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4174
SELECT 61 + - 18 - - 1 * - 59 / 79 + + - 42 AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4175
SELECT ALL COUNT( * ) * + 19 col1, + SUM( + - 87 ) AS col2
----
19
-87

skipif mysql # not compatible
query II rowsort label-4175
SELECT ALL COUNT ( * ) * + 19 col1, + SUM ( + - 87 ) AS col2
----
19
-87

query I rowsort
SELECT DISTINCT 50 * - - 48 AS col2
----
2400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4177
SELECT CASE + + COUNT( * ) WHEN - 43 THEN - 35 * + 60 - - 56 + 48 WHEN - 91 THEN + + CAST( + COUNT( - 59 ) AS SIGNED ) * ( + 78 ) * 93 + + 96 ELSE 15 - 81 + - 21 END + + - NULLIF ( + - 90, + 12 + + 72 ), + COUNT( * ) DIV + 41 AS col0
----
3
0

skipif mysql # not compatible
query II rowsort label-4177
SELECT CASE + + COUNT ( * ) WHEN - 43 THEN - 35 * + 60 - - 56 + 48 WHEN - 91 THEN + + CAST ( + COUNT ( - 59 ) AS INTEGER ) * ( + 78 ) * 93 + + 96 ELSE 15 - 81 + - 21 END + + - NULLIF ( + - 90, + 12 + + 72 ), + COUNT ( * ) / + 41 AS col0
----
3
0

query I rowsort
SELECT DISTINCT 26 - - 49
----
75

query I rowsort
SELECT DISTINCT - 24 - - 82
----
58

query I rowsort
SELECT 6 + 54 + 59 AS col2
----
119

onlyif mysql # DIV for integer division: 
query I rowsort label-4181
SELECT 80 * 36 DIV - 8 col1
----
-360

skipif mysql # not compatible
query I rowsort label-4181
SELECT 80 * 36 / - 8 col1
----
-360

query I rowsort
SELECT 15 * + 17
----
255

onlyif mysql # aggregate syntax: 
query II rowsort label-4183
SELECT CASE - CASE + MIN( 64 ) WHEN - + COUNT( * ) THEN - + 80 * + 7 + 56 * - + 82 ELSE + 76 END WHEN + 6 * + - 16 THEN + 53 / 1 * + COUNT( * ) / + + 9 END / - + 44 - + 52 + 44 / 12, 92 * + 72 * 9 * 39 AS col1
----
NULL
2325024

skipif mysql # not compatible
query II rowsort label-4183
SELECT CASE - CASE + MIN ( 64 ) WHEN - + COUNT ( * ) THEN - + 80 * + 7 + 56 * - + 82 ELSE + 76 END WHEN + 6 * + - 16 THEN + 53 / 1 * + COUNT ( * ) / + + 9 END / - + 44 - + 52 + 44 / 12, 92 * + 72 * 9 * 39 AS col1
----
NULL
2325024

onlyif mysql # aggregate syntax: 
query I rowsort label-4184
SELECT ALL - ( - COUNT( * ) ) * ( + 44 )
----
44

skipif mysql # not compatible
query I rowsort label-4184
SELECT ALL - ( - COUNT ( * ) ) * ( + 44 )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-4185
SELECT + 58 * - COUNT( * ) * - 92 AS col1
----
5336

skipif mysql # not compatible
query I rowsort label-4185
SELECT + 58 * - COUNT ( * ) * - 92 AS col1
----
5336

onlyif mysql # aggregate syntax: 
query I rowsort label-4186
SELECT MAX( 3 ) + + 56 * - + COALESCE ( 30, COALESCE ( COUNT( * ), + COUNT( * ) + + 9 ) ) + + 47 + - 18 + + - 76 AS col2
----
-1724

skipif mysql # not compatible
query I rowsort label-4186
SELECT MAX ( 3 ) + + 56 * - + COALESCE ( 30, COALESCE ( COUNT ( * ), + COUNT ( * ) + + 9 ) ) + + 47 + - 18 + + - 76 AS col2
----
-1724

query I rowsort
SELECT ALL - - 15 * 15 + + 1 AS col2
----
226

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4188
SELECT ALL + 41 + + ( + + NULLIF ( - CAST( NULL AS SIGNED ), - 2 / + - 79 + 79 + + 29 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4188
SELECT ALL + 41 + + ( + + NULLIF ( - CAST ( NULL AS INTEGER ), - 2 / + - 79 + 79 + + 29 ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4189
SELECT ALL - 71 * + 71 + - - 46 + 82 * - - COUNT( * ) * - - 50
----
-895

skipif mysql # not compatible
query I rowsort label-4189
SELECT ALL - 71 * + 71 + - - 46 + 82 * - - COUNT ( * ) * - - 50
----
-895

onlyif mysql # aggregate syntax: 
query I rowsort label-4190
SELECT DISTINCT + + 86 + 18 + - + 26 * - 42 + + 25 + - COUNT( * ) AS col0
----
1220

skipif mysql # not compatible
query I rowsort label-4190
SELECT DISTINCT + + 86 + 18 + - + 26 * - 42 + + 25 + - COUNT ( * ) AS col0
----
1220

onlyif mysql # DIV for integer division: 
query II rowsort label-4191
SELECT DISTINCT - 38 + 92, 22 DIV 58 + 6 * - 96 + + 8 AS col1
----
54
-568

skipif mysql # not compatible
query II rowsort label-4191
SELECT DISTINCT - 38 + 92, 22 / 58 + 6 * - 96 + + 8 AS col1
----
54
-568

query I rowsort
SELECT COALESCE ( - - 24, + + 71, 24 ) * + 75
----
1800

query I rowsort
SELECT + ( - CASE - 85 WHEN - 6 / + 59 THEN + 34 WHEN 34 THEN NULL ELSE 43 END ) + + + 74 * + 73 * - - 28 AS col2
----
151213

onlyif mysql # DIV for integer division: 
query I rowsort label-4194
SELECT DISTINCT + + 73 DIV + + 68 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4194
SELECT DISTINCT + + 73 / + + 68 AS col2
----
1

query I rowsort
SELECT DISTINCT - + 10 + - 16
----
-26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4196
SELECT ALL + 39 + 78 * 92 * - + 27 DIV + COUNT( * ) AS col2
----
-193713

skipif mysql # not compatible
query I rowsort label-4196
SELECT ALL + 39 + 78 * 92 * - + 27 / + COUNT ( * ) AS col2
----
-193713

onlyif mysql # aggregate syntax: 
query I rowsort label-4197
SELECT ALL - - MAX( - - 98 ) AS col2
----
98

skipif mysql # not compatible
query I rowsort label-4197
SELECT ALL - - MAX ( - - 98 ) AS col2
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4198
SELECT ALL 40 + COUNT( * ) - - 4 * + 22
----
129

skipif mysql # not compatible
query I rowsort label-4198
SELECT ALL 40 + COUNT ( * ) - - 4 * + 22
----
129

query I rowsort
SELECT 87 * 89 AS col2
----
7743

query I rowsort
SELECT ALL ( ( - + ( - 74 ) ) ) * + 6 col2
----
444

query II rowsort
SELECT DISTINCT ( + + 30 ), - 89 AS col2
----
30
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-4202
SELECT - + MAX( ALL + 25 )
----
-25

skipif mysql # not compatible
query I rowsort label-4202
SELECT - + MAX ( ALL + 25 )
----
-25

query I rowsort
SELECT DISTINCT - NULLIF ( 94, - 30 )
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-4204
SELECT 81 * - + COUNT( * ) AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-4204
SELECT 81 * - + COUNT ( * ) AS col1
----
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-4205
SELECT - 81 AS col2, COUNT( * ) * - 40 col1
----
-81
-40

skipif mysql # not compatible
query II rowsort label-4205
SELECT - 81 AS col2, COUNT ( * ) * - 40 col1
----
-81
-40

query I rowsort
SELECT 64 + + - 96
----
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-4207
SELECT 0 DIV - 90
----
0

skipif mysql # not compatible
query I rowsort label-4207
SELECT 0 / - 90
----
0

query I rowsort
SELECT 71 * 6 AS col2
----
426

onlyif mysql # aggregate syntax: 
query I rowsort label-4209
SELECT COUNT( * ) + - 48 AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-4209
SELECT COUNT ( * ) + - 48 AS col1
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-4210
SELECT ALL SUM( DISTINCT - + 41 ) - + - 10 * - SUM( DISTINCT - 25 ) + - 47 AS col0
----
162

skipif mysql # not compatible
query I rowsort label-4210
SELECT ALL SUM ( DISTINCT - + 41 ) - + - 10 * - SUM ( DISTINCT - 25 ) + - 47 AS col0
----
162

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4211
SELECT ALL 74 DIV + COUNT( * ) AS col0
----
74

skipif mysql # not compatible
query I rowsort label-4211
SELECT ALL 74 / + COUNT ( * ) AS col0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4212
SELECT COUNT( ALL + ( + 29 ) ) - + MAX( + 48 )
----
-47

skipif mysql # not compatible
query I rowsort label-4212
SELECT COUNT ( ALL + ( + 29 ) ) - + MAX ( + 48 )
----
-47

query II rowsort
SELECT ALL 91 * - 3 * + - 46 AS col2, + 56
----
12558
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4214
SELECT CAST( - + 78 AS SIGNED ) - + 47
----
-125

skipif mysql # not compatible
query I rowsort label-4214
SELECT CAST ( - + 78 AS INTEGER ) - + 47
----
-125

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4215
SELECT DISTINCT COUNT( * ) * - - 29 * 94 DIV + 69 AS col2
----
39

skipif mysql # not compatible
query I rowsort label-4215
SELECT DISTINCT COUNT ( * ) * - - 29 * 94 / + 69 AS col2
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-4216
SELECT ALL 38 DIV 62
----
0

skipif mysql # not compatible
query I rowsort label-4216
SELECT ALL 38 / 62
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4217
SELECT SUM( DISTINCT - + 23 ) * - + 40 col2
----
920

skipif mysql # not compatible
query I rowsort label-4217
SELECT SUM ( DISTINCT - + 23 ) * - + 40 col2
----
920

onlyif mysql # aggregate syntax: 
query I rowsort label-4218
SELECT - MAX( ALL - - ( 90 ) ) AS col1
----
-90

skipif mysql # not compatible
query I rowsort label-4218
SELECT - MAX ( ALL - - ( 90 ) ) AS col1
----
-90

query I rowsort
SELECT ALL 31 * 64 * - - COALESCE ( - 93, + - 71 * - 15 ) col0
----
-184512

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4220
SELECT - 77 * + 14 - + - 64, 97 * - ( + CAST( NULL AS SIGNED ) ) * - 76 AS col2
----
-1014
NULL

skipif mysql # not compatible
query II rowsort label-4220
SELECT - 77 * + 14 - + - 64, 97 * - ( + CAST ( NULL AS INTEGER ) ) * - 76 AS col2
----
-1014
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4221
SELECT NULLIF ( + NULLIF ( - 40, - 57 ), - + 39 DIV + ( + 90 ) + - 45 * - 90 + SUM( ALL + 2 ) DIV ( - CAST( + 45 AS SIGNED ) ) ) DIV - 54 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4221
SELECT NULLIF ( + NULLIF ( - 40, - 57 ), - + 39 / + ( + 90 ) + - 45 * - 90 + SUM ( ALL + 2 ) / ( - CAST ( + 45 AS INTEGER ) ) ) / - 54 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4222
SELECT 41 DIV COUNT( * )
----
41

skipif mysql # not compatible
query I rowsort label-4222
SELECT 41 / COUNT ( * )
----
41

query II rowsort
SELECT DISTINCT - 47, + 88 AS col0
----
-47
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4224
SELECT ALL + ( - COUNT( + - 7 ) ) * - + CAST( - + 6 AS SIGNED ) * - - 39 + COUNT( * )
----
-233

skipif mysql # not compatible
query I rowsort label-4224
SELECT ALL + ( - COUNT ( + - 7 ) ) * - + CAST ( - + 6 AS INTEGER ) * - - 39 + COUNT ( * )
----
-233

onlyif mysql # aggregate syntax: 
query I rowsort label-4225
SELECT COUNT( + 28 ) * + 35
----
35

skipif mysql # not compatible
query I rowsort label-4225
SELECT COUNT ( + 28 ) * + 35
----
35

query I rowsort
SELECT ALL + - 80 * 53 * + 6 + ( + + 71 ) + 67 + - 36
----
-25338

onlyif mysql # aggregate syntax: 
query II rowsort label-4227
SELECT + - 84, COUNT( * ) AS col1
----
-84
1

skipif mysql # not compatible
query II rowsort label-4227
SELECT + - 84, COUNT ( * ) AS col1
----
-84
1

query I rowsort
SELECT - COALESCE ( 32, - 10 * + 34 )
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-4229
SELECT MIN( 61 ) + + - 18 + + - COUNT( * ) + + 81 * ( + 89 ) + - 70 * - 12
----
8091

skipif mysql # not compatible
query I rowsort label-4229
SELECT MIN ( 61 ) + + - 18 + + - COUNT ( * ) + + 81 * ( + 89 ) + - 70 * - 12
----
8091

query I rowsort
SELECT 76 * + 8 * - 14 * - 88
----
749056

onlyif mysql # aggregate syntax: 
query II rowsort label-4231
SELECT 32, + COUNT( * ) * ( - 6 ) AS col1
----
32
-6

skipif mysql # not compatible
query II rowsort label-4231
SELECT 32, + COUNT ( * ) * ( - 6 ) AS col1
----
32
-6

query I rowsort
SELECT ALL - + 8 + 73
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4233
SELECT - COALESCE ( + + 49, + COUNT( * ) ) * + 1 * 63 * - 20 * + + NULLIF ( + 96, + COUNT( * ) + ( CAST( NULL AS SIGNED ) ) ) - - MIN( - + 67 ) AS col1
----
5926973

skipif mysql # not compatible
query I rowsort label-4233
SELECT - COALESCE ( + + 49, + COUNT ( * ) ) * + 1 * 63 * - 20 * + + NULLIF ( + 96, + COUNT ( * ) + ( CAST ( NULL AS INTEGER ) ) ) - - MIN ( - + 67 ) AS col1
----
5926973

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4234
SELECT 55 + 26 / CASE - 6 WHEN + 55 - AVG ( - 92 ) THEN 73 WHEN - CAST( - 46 AS SIGNED ) THEN 88 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4234
SELECT 55 + 26 / CASE - 6 WHEN + 55 - AVG ( - 92 ) THEN 73 WHEN - CAST ( - 46 AS INTEGER ) THEN 88 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4235
SELECT ALL - COUNT( * ), + 12 DIV 48 col1
----
-1
0

skipif mysql # not compatible
query II rowsort label-4235
SELECT ALL - COUNT ( * ), + 12 / 48 col1
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4236
SELECT + 37 * - + MAX( 7 ) - + + 21 + - + 31 * + ( + - CASE 28 WHEN + + 51 * 74 * 21 THEN + + 99 + + 17 WHEN - 39 THEN NULL ELSE - 97 END ) col1
----
-3287

skipif mysql # not compatible
query I rowsort label-4236
SELECT + 37 * - + MAX ( 7 ) - + + 21 + - + 31 * + ( + - CASE 28 WHEN + + 51 * 74 * 21 THEN + + 99 + + 17 WHEN - 39 THEN NULL ELSE - 97 END ) col1
----
-3287

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4237
SELECT - 20 * COUNT( CAST( + 60 AS SIGNED ) ) * + - 54 * - 73 + 78 + - 32 DIV + - 92 * + 49 AS col0
----
-78762

skipif mysql # not compatible
query I rowsort label-4237
SELECT - 20 * COUNT ( CAST ( + 60 AS INTEGER ) ) * + - 54 * - 73 + 78 + - 32 / + - 92 * + 49 AS col0
----
-78762

query I rowsort
SELECT - + 22 * + 75
----
-1650

onlyif mysql # aggregate syntax: 
query I rowsort label-4239
SELECT - 34 + + NULLIF ( - 69, + MAX( ALL - + 57 ) ) * + COUNT( * ) col2
----
-103

skipif mysql # not compatible
query I rowsort label-4239
SELECT - 34 + + NULLIF ( - 69, + MAX ( ALL - + 57 ) ) * + COUNT ( * ) col2
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-4240
SELECT COUNT( * ) * 5 - + + 98
----
-93

skipif mysql # not compatible
query I rowsort label-4240
SELECT COUNT ( * ) * 5 - + + 98
----
-93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4241
SELECT ALL + 14 DIV - + 78 * + - COUNT( 28 ) * 34 + 7 - 84
----
-77

skipif mysql # not compatible
query I rowsort label-4241
SELECT ALL + 14 / - + 78 * + - COUNT ( 28 ) * 34 + 7 - 84
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4242
SELECT - 16 + + COUNT( * ) + 47 AS col1
----
32

skipif mysql # not compatible
query I rowsort label-4242
SELECT - 16 + + COUNT ( * ) + 47 AS col1
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4243
SELECT + 33 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4243
SELECT + 33 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4244
SELECT DISTINCT + 96 / - CASE - 49 WHEN + 76 + + - 32 THEN 76 * + + COUNT( DISTINCT + 69 ) WHEN - CASE 91 WHEN - + 22 THEN - + CAST( MIN( - 91 ) AS SIGNED ) / + + 15 * 34 WHEN - 68 THEN NULL END THEN + MIN( 89 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4244
SELECT DISTINCT + 96 / - CASE - 49 WHEN + 76 + + - 32 THEN 76 * + + COUNT ( DISTINCT + 69 ) WHEN - CASE 91 WHEN - + 22 THEN - + CAST ( MIN ( - 91 ) AS INTEGER ) / + + 15 * 34 WHEN - 68 THEN NULL END THEN + MIN ( 89 ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4245
SELECT ALL NULLIF ( + COUNT( * ), COUNT( * ) + - 32 ) AS col2, 18
----
1
18

skipif mysql # not compatible
query II rowsort label-4245
SELECT ALL NULLIF ( + COUNT ( * ), COUNT ( * ) + - 32 ) AS col2, 18
----
1
18

onlyif mysql # aggregate syntax: 
query II rowsort label-4246
SELECT - 4 * - COUNT( * ) AS col1, 39 * - 6 * - 50 * - - COUNT( * ) AS col1
----
4
11700

skipif mysql # not compatible
query II rowsort label-4246
SELECT - 4 * - COUNT ( * ) AS col1, 39 * - 6 * - 50 * - - COUNT ( * ) AS col1
----
4
11700

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4247
SELECT - CAST( - 27 AS SIGNED ) + - - MAX( DISTINCT 25 ) + + ( - 44 ) * - 33
----
1504

skipif mysql # not compatible
query I rowsort label-4247
SELECT - CAST ( - 27 AS INTEGER ) + - - MAX ( DISTINCT 25 ) + + ( - 44 ) * - 33
----
1504

onlyif mysql # aggregate syntax: 
query I rowsort label-4248
SELECT - SUM( + 29 ) + 28 * + + COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4248
SELECT - SUM ( + 29 ) + 28 * + + COUNT ( * ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4249
SELECT - MAX( + - 84 ) AS col1
----
84

skipif mysql # not compatible
query I rowsort label-4249
SELECT - MAX ( + - 84 ) AS col1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4250
SELECT ALL COUNT( * ) * - COALESCE ( 3, - 92 )
----
-3

skipif mysql # not compatible
query I rowsort label-4250
SELECT ALL COUNT ( * ) * - COALESCE ( 3, - 92 )
----
-3

query I rowsort
SELECT + 43 * - 66 * - - ( - + 32 ) col0
----
90816

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4252
SELECT DISTINCT COUNT( * ) + - COUNT( * ) * - CAST( NULL AS SIGNED ) * + - 29 AS col2, + 28
----
NULL
28

skipif mysql # not compatible
query II rowsort label-4252
SELECT DISTINCT COUNT ( * ) + - COUNT ( * ) * - CAST ( NULL AS INTEGER ) * + - 29 AS col2, + 28
----
NULL
28

onlyif mysql # DIV for integer division: 
query I rowsort label-4253
SELECT ALL 25 + - 6 + + + 74 DIV + 10
----
26

skipif mysql # not compatible
query I rowsort label-4253
SELECT ALL 25 + - 6 + + + 74 / + 10
----
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4254
SELECT DISTINCT ( + ( - COUNT( * ) ) ) DIV + 60, + 79 AS col0
----
0
79

skipif mysql # not compatible
query II rowsort label-4254
SELECT DISTINCT ( + ( - COUNT ( * ) ) ) / + 60, + 79 AS col0
----
0
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4255
SELECT ALL - COALESCE ( COUNT( * ), + MAX( - 82 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4255
SELECT ALL - COALESCE ( COUNT ( * ), + MAX ( - 82 ) )
----
-1

query I rowsort
SELECT ALL + 13 + - 78 * + 67 AS col1
----
-5213

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4257
SELECT ALL - NULLIF ( + CAST( NULL AS SIGNED ), - 78 ) * 79 / + COUNT( 79 ) + - COUNT( * ) + - - 14
----
NULL

skipif mysql # not compatible
query I rowsort label-4257
SELECT ALL - NULLIF ( + CAST ( NULL AS INTEGER ), - 78 ) * 79 / + COUNT ( 79 ) + - COUNT ( * ) + - - 14
----
NULL

query I rowsort
SELECT + - 44 + 5 AS col0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-4259
SELECT DISTINCT ( - - ( + + 80 ) ) / - - CASE 71 WHEN + 78 THEN + COUNT( * ) WHEN + - 81 THEN + + 22 * + - 80 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4259
SELECT DISTINCT ( - - ( + + 80 ) ) / - - CASE 71 WHEN + 78 THEN + COUNT ( * ) WHEN + - 81 THEN + + 22 * + - 80 END col1
----
NULL

query I rowsort
SELECT + 29 * + ( ( + - 34 ) ) * - ( - 16 ) AS col1
----
-15776

query II rowsort
SELECT ALL 73 * + - 41 AS col2, + 77
----
-2993
77

onlyif mysql # aggregate syntax: 
query II rowsort label-4262
SELECT DISTINCT + NULLIF ( + COUNT( * ), 34 / 99 ) * 78 + MAX( DISTINCT - - 94 ) AS col0, + COUNT( * )
----
172
1

skipif mysql # not compatible
query II rowsort label-4262
SELECT DISTINCT + NULLIF ( + COUNT ( * ), 34 / 99 ) * 78 + MAX ( DISTINCT - - 94 ) AS col0, + COUNT ( * )
----
172
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4263
SELECT DISTINCT - 86 * + 67 AS col2, - CASE NULLIF ( 96, - - 72 * + 31 + - 85 + + 45 - + - 16 ) WHEN 80 * 40 * - ( + 43 ) + - + COUNT( * ) + - 23 THEN NULL WHEN COUNT( DISTINCT + 78 ) - + 66 THEN NULL WHEN + 57 THEN - 83 ELSE NULL END col1
----
-5762
NULL

skipif mysql # not compatible
query II rowsort label-4263
SELECT DISTINCT - 86 * + 67 AS col2, - CASE NULLIF ( 96, - - 72 * + 31 + - 85 + + 45 - + - 16 ) WHEN 80 * 40 * - ( + 43 ) + - + COUNT ( * ) + - 23 THEN NULL WHEN COUNT ( DISTINCT + 78 ) - + 66 THEN NULL WHEN + 57 THEN - 83 ELSE NULL END col1
----
-5762
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4264
SELECT DISTINCT COUNT( * ) * - 63 AS col2, 54 + - + ( 65 ) AS col0
----
-63
-11

skipif mysql # not compatible
query II rowsort label-4264
SELECT DISTINCT COUNT ( * ) * - 63 AS col2, 54 + - + ( 65 ) AS col0
----
-63
-11

query I rowsort
SELECT ALL 77 * + 28 - 46
----
2110

query I rowsort
SELECT + 1 * - 9 AS col1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4267
SELECT - - 93 * - 90 + - ( 39 ) * + + NULLIF ( - CAST( + 90 AS SIGNED ), + + 33 ) AS col1
----
-4860

skipif mysql # not compatible
query I rowsort label-4267
SELECT - - 93 * - 90 + - ( 39 ) * + + NULLIF ( - CAST ( + 90 AS INTEGER ), + + 33 ) AS col1
----
-4860

onlyif mysql # aggregate syntax: 
query I rowsort label-4268
SELECT - ( + COUNT( * ) ) + - + 11 AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-4268
SELECT - ( + COUNT ( * ) ) + - + 11 AS col0
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4269
SELECT ALL + COALESCE ( COUNT( * ), - 61, 16 + - 42 + + - 61 * + 90 DIV - 17 + - 10 + 23 ) * - CAST( + - 48 AS SIGNED )
----
48

skipif mysql # not compatible
query I rowsort label-4269
SELECT ALL + COALESCE ( COUNT ( * ), - 61, 16 + - 42 + + - 61 * + 90 / - 17 + - 10 + 23 ) * - CAST ( + - 48 AS INTEGER )
----
48

query I rowsort
SELECT ALL + 0 * - + 57
----
0

query I rowsort
SELECT DISTINCT 27 * + 58 * 98
----
153468

onlyif mysql # DIV for integer division: 
query I rowsort label-4272
SELECT - 74 DIV 84
----
0

skipif mysql # not compatible
query I rowsort label-4272
SELECT - 74 / 84
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4273
SELECT + COUNT( * ) - + 22 + - - 33 * - 72
----
-2397

skipif mysql # not compatible
query I rowsort label-4273
SELECT + COUNT ( * ) - + 22 + - - 33 * - 72
----
-2397

query I rowsort
SELECT ALL COALESCE ( 61, - - 41, ( - 69 ) * - 91 * + + 42 * - 33 + - + 78 + + + 85 )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4275
SELECT MIN( DISTINCT + 14 ) col0
----
14

skipif mysql # not compatible
query I rowsort label-4275
SELECT MIN ( DISTINCT + 14 ) col0
----
14

query I rowsort
SELECT ALL ( + - 10 ) col1
----
-10

onlyif mysql # aggregate syntax: 
query II rowsort label-4277
SELECT ALL - ( ( + - 16 ) ) + - 37 + COUNT( * ) + 38, 80 * + - 68 * + COUNT( * ) AS col0
----
18
-5440

skipif mysql # not compatible
query II rowsort label-4277
SELECT ALL - ( ( + - 16 ) ) + - 37 + COUNT ( * ) + 38, 80 * + - 68 * + COUNT ( * ) AS col0
----
18
-5440

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4278
SELECT DISTINCT CAST( 24 AS SIGNED ) AS col2
----
24

skipif mysql # not compatible
query I rowsort label-4278
SELECT DISTINCT CAST ( 24 AS INTEGER ) AS col2
----
24

query II rowsort
SELECT ALL - 38 + COALESCE ( - - 36, + - ( + + 61 ) ) * + - 57 AS col2, 35 + 34 AS col2
----
-2090
69

query I rowsort
SELECT - 84 * 35 AS col0
----
-2940

query I rowsort
SELECT DISTINCT 96 + - 29
----
67

query I rowsort
SELECT DISTINCT + 93 * + + 30
----
2790

query I rowsort
SELECT - 31 + 4
----
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4284
SELECT ALL + MAX( 33 ) * CASE 72 WHEN + 69 THEN - 80 ELSE + COUNT( * ) DIV 56 END
----
0

skipif mysql # not compatible
query I rowsort label-4284
SELECT ALL + MAX ( 33 ) * CASE 72 WHEN + 69 THEN - 80 ELSE + COUNT ( * ) / 56 END
----
0

query I rowsort
SELECT - 7 + - 58
----
-65

query I rowsort
SELECT ALL - 3 - + 31 col2
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-4287
SELECT + MIN( 18 )
----
18

skipif mysql # not compatible
query I rowsort label-4287
SELECT + MIN ( 18 )
----
18

query I rowsort
SELECT ALL + 76 * + 32
----
2432

onlyif mysql # DIV for integer division: 
query I rowsort label-4289
SELECT DISTINCT ( + 77 ) DIV - 94 - 90 * 4 col1
----
-360

skipif mysql # not compatible
query I rowsort label-4289
SELECT DISTINCT ( + 77 ) / - 94 - 90 * 4 col1
----
-360

onlyif mysql # DIV for integer division: 
query I rowsort label-4290
SELECT ALL - 51 DIV 24 - 41 AS col2
----
-43

skipif mysql # not compatible
query I rowsort label-4290
SELECT ALL - 51 / 24 - 41 AS col2
----
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-4291
SELECT DISTINCT - 31 DIV - 49
----
0

skipif mysql # not compatible
query I rowsort label-4291
SELECT DISTINCT - 31 / - 49
----
0

query I rowsort
SELECT 45 + COALESCE ( + 29, 11 )
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4293
SELECT + 48 * - CAST( NULL AS SIGNED ) - 16 * + 74 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4293
SELECT + 48 * - CAST ( NULL AS INTEGER ) - 16 * + 74 AS col2
----
NULL

query I rowsort
SELECT 84 * 91
----
7644

query I rowsort
SELECT ALL 29 * 75 AS col2
----
2175

query I rowsort
SELECT 55 + 43
----
98

query I rowsort
SELECT + 48 * + 66 + + 18 col1
----
3186

query I rowsort
SELECT ALL 22 * ( 5 )
----
110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4299
SELECT MAX( 0 ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4299
SELECT MAX ( 0 ) * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4300
SELECT ( + 2 ) DIV + ( 73 + COALESCE ( - 90, 37 * 66 ) * + NULLIF ( + 27 + 55, 53 * COUNT( DISTINCT + 61 ) ) ) + 50
----
50

skipif mysql # not compatible
query I rowsort label-4300
SELECT ( + 2 ) / + ( 73 + COALESCE ( - 90, 37 * 66 ) * + NULLIF ( + 27 + 55, 53 * COUNT ( DISTINCT + 61 ) ) ) + 50
----
50

query I rowsort
SELECT ALL - 14 * - 56 AS col2
----
784

onlyif mysql # aggregate syntax: 
query I rowsort label-4302
SELECT 41 * - COUNT( * ) + 58 AS col1
----
17

skipif mysql # not compatible
query I rowsort label-4302
SELECT 41 * - COUNT ( * ) + 58 AS col1
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-4303
SELECT ALL - SUM( + 29 )
----
-29

skipif mysql # not compatible
query I rowsort label-4303
SELECT ALL - SUM ( + 29 )
----
-29

query I rowsort
SELECT ALL 86 * 31 AS col2
----
2666

query I rowsort
SELECT 99 + 6 AS col1
----
105

query I rowsort
SELECT - 10 * + 90 + 81
----
-819

query I rowsort
SELECT ALL 15 + + 94 AS col1
----
109

query I rowsort
SELECT 89 + 72
----
161

query I rowsort
SELECT 79 * + 29 - 70
----
2221

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4310
SELECT CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * + 68 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4310
SELECT CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * + 68 AS col0
----
NULL

query I rowsort
SELECT 34 + - 54 AS col0
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-4312
SELECT ALL ( COUNT( ALL + ( 67 ) ) ) + + COUNT( * ) * + 79 AS col2
----
80

skipif mysql # not compatible
query I rowsort label-4312
SELECT ALL ( COUNT ( ALL + ( 67 ) ) ) + + COUNT ( * ) * + 79 AS col2
----
80

query I rowsort
SELECT COALESCE ( + 64, 82 * + 28 ) + 80 * 8
----
704

query I rowsort
SELECT 24 + + 93 col2
----
117

query I rowsort
SELECT ALL 73 * - 92 AS col2
----
-6716

query I rowsort
SELECT 34 + 36
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-4317
SELECT DISTINCT 8 * + COUNT( * ) AS col0
----
8

skipif mysql # not compatible
query I rowsort label-4317
SELECT DISTINCT 8 * + COUNT ( * ) AS col0
----
8

query I rowsort
SELECT 14 * 78 AS col0
----
1092

query I rowsort
SELECT 92 + + 42
----
134

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4320
SELECT + 67 DIV COUNT( * ) AS col2
----
67

skipif mysql # not compatible
query I rowsort label-4320
SELECT + 67 / COUNT ( * ) AS col2
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4321
SELECT ALL + - 77 - + COUNT( * ) AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-4321
SELECT ALL + - 77 - + COUNT ( * ) AS col2
----
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-4322
SELECT ALL - 72 DIV 53 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4322
SELECT ALL - 72 / 53 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4323
SELECT + 25 * - COUNT( * )
----
-25

skipif mysql # not compatible
query I rowsort label-4323
SELECT + 25 * - COUNT ( * )
----
-25

query I rowsort
SELECT - 34 + 70 * 49
----
3396

onlyif mysql # aggregate syntax: 
query I rowsort label-4325
SELECT NULLIF ( + 79, + COUNT( * ) + 0 * - MAX( 74 * 20 ) ) * - 33
----
-2607

skipif mysql # not compatible
query I rowsort label-4325
SELECT NULLIF ( + 79, + COUNT ( * ) + 0 * - MAX ( 74 * 20 ) ) * - 33
----
-2607

onlyif mysql # aggregate syntax: 
query I rowsort label-4326
SELECT 61 + 96 * COUNT( * )
----
157

skipif mysql # not compatible
query I rowsort label-4326
SELECT 61 + 96 * COUNT ( * )
----
157

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4327
SELECT + COALESCE ( COUNT( * ), 1 DIV + 56 + + 80 * 70, + 81, - 68 + 45 * + 88 )
----
1

skipif mysql # not compatible
query I rowsort label-4327
SELECT + COALESCE ( COUNT ( * ), 1 / + 56 + + 80 * 70, + 81, - 68 + 45 * + 88 )
----
1

query I rowsort
SELECT 7 + 30 AS col1
----
37

query I rowsort
SELECT ALL - + ( - 96 ) AS col1
----
96

query I rowsort
SELECT ALL 5 * 22 AS col0
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-4331
SELECT - CASE - ( 73 ) WHEN 50 / + ( + 58 ) THEN - 21 + 18 WHEN + COUNT( * ) THEN NULL END * + ( 69 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4331
SELECT - CASE - ( 73 ) WHEN 50 / + ( + 58 ) THEN - 21 + 18 WHEN + COUNT ( * ) THEN NULL END * + ( 69 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4332
SELECT + 83 + COUNT( * )
----
84

skipif mysql # not compatible
query I rowsort label-4332
SELECT + 83 + COUNT ( * )
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4333
SELECT + COUNT( * ) * COUNT( * ) + 34
----
35

skipif mysql # not compatible
query I rowsort label-4333
SELECT + COUNT ( * ) * COUNT ( * ) + 34
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4334
SELECT + 41 * - CASE - 33 WHEN - COUNT( * ) * - 83 + 20 THEN 87 * 4 - 70 WHEN 85 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4334
SELECT + 41 * - CASE - 33 WHEN - COUNT ( * ) * - 83 + 20 THEN 87 * 4 - 70 WHEN 85 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4335
SELECT 60 DIV 44 + 10
----
11

skipif mysql # not compatible
query I rowsort label-4335
SELECT 60 / 44 + 10
----
11

query I rowsort
SELECT + - ( + NULLIF ( 45, 75 ) ) AS col2
----
-45

query I rowsort
SELECT DISTINCT - - 67 * - 11 AS col2
----
-737

query I rowsort
SELECT ALL 7 + 20
----
27

query I rowsort
SELECT 56 * + 61 AS col2
----
3416

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4340
SELECT ALL - ( + COALESCE ( - 18, 1, - 29 + 77, - NULLIF ( + 71, 53 ) DIV COUNT( * ) ) )
----
18

skipif mysql # not compatible
query I rowsort label-4340
SELECT ALL - ( + COALESCE ( - 18, 1, - 29 + 77, - NULLIF ( + 71, 53 ) / COUNT ( * ) ) )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-4341
SELECT DISTINCT 10 + 11 + 94 * - 98 * - ( + COUNT( * ) * 14 )
----
128989

skipif mysql # not compatible
query I rowsort label-4341
SELECT DISTINCT 10 + 11 + 94 * - 98 * - ( + COUNT ( * ) * 14 )
----
128989

query I rowsort
SELECT ALL - 83 + + + 13
----
-70

query I rowsort
SELECT 80 * 46
----
3680

query I rowsort
SELECT ALL NULLIF ( + + 85, + 70 ) + 34
----
119

onlyif mysql # DIV for integer division: 
query I rowsort label-4345
SELECT 99 DIV - + 36 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-4345
SELECT 99 / - + 36 AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4346
SELECT 83 * + 77 * - 59 + COUNT( * ) col0
----
-377068

skipif mysql # not compatible
query I rowsort label-4346
SELECT 83 * + 77 * - 59 + COUNT ( * ) col0
----
-377068

onlyif mysql # aggregate syntax: 
query I rowsort label-4347
SELECT ALL COUNT( * ) + - 6 * 16
----
-95

skipif mysql # not compatible
query I rowsort label-4347
SELECT ALL COUNT ( * ) + - 6 * 16
----
-95

query I rowsort
SELECT 5 * + 11
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4349
SELECT ALL + COUNT( * ) + - 20 + + CASE - 41 WHEN 38 THEN NULL ELSE - 38 * - 39 END * + ( + 80 DIV - COUNT( * ) ) AS col2
----
-118579

skipif mysql # not compatible
query I rowsort label-4349
SELECT ALL + COUNT ( * ) + - 20 + + CASE - 41 WHEN 38 THEN NULL ELSE - 38 * - 39 END * + ( + 80 / - COUNT ( * ) ) AS col2
----
-118579

query I rowsort
SELECT DISTINCT - 65 + - 14 * 64 AS col0
----
-961

query I rowsort
SELECT ALL CASE - 88 WHEN 73 THEN 95 ELSE NULL END + - 62 / ( - 53 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4352
SELECT DISTINCT 20 + + ( - SUM( DISTINCT - 65 ) ) * ( 59 + 31 )
----
5870

skipif mysql # not compatible
query I rowsort label-4352
SELECT DISTINCT 20 + + ( - SUM ( DISTINCT - 65 ) ) * ( 59 + 31 )
----
5870

onlyif mysql # aggregate syntax: 
query I rowsort label-4353
SELECT DISTINCT 32 * - 83 * COUNT( DISTINCT + 74 ) AS col1
----
-2656

skipif mysql # not compatible
query I rowsort label-4353
SELECT DISTINCT 32 * - 83 * COUNT ( DISTINCT + 74 ) AS col1
----
-2656

query I rowsort
SELECT 34 * - 97 * - 38 col2
----
125324

onlyif mysql # aggregate syntax: 
query I rowsort label-4355
SELECT ALL NULLIF ( + + COALESCE ( - COUNT( * ), + 44 ), 97 * CASE + NULLIF ( 87, CASE + 44 WHEN + 60 * 51 THEN 20 END ) WHEN - 2 THEN 38 * + COUNT( * ) + - COUNT( * ) WHEN - 69 THEN - 90 * + COUNT( * ) ELSE NULL END ) - 51 * - COUNT( * ) AS col2
----
50

skipif mysql # not compatible
query I rowsort label-4355
SELECT ALL NULLIF ( + + COALESCE ( - COUNT ( * ), + 44 ), 97 * CASE + NULLIF ( 87, CASE + 44 WHEN + 60 * 51 THEN 20 END ) WHEN - 2 THEN 38 * + COUNT ( * ) + - COUNT ( * ) WHEN - 69 THEN - 90 * + COUNT ( * ) ELSE NULL END ) - 51 * - COUNT ( * ) AS col2
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4356
SELECT 24 + + - CAST( + 97 AS SIGNED ) + - 98 AS col2
----
-171

skipif mysql # not compatible
query I rowsort label-4356
SELECT 24 + + - CAST ( + 97 AS INTEGER ) + - 98 AS col2
----
-171

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4357
SELECT 59 * + SUM( DISTINCT + CAST( 55 AS SIGNED ) )
----
3245

skipif mysql # not compatible
query I rowsort label-4357
SELECT 59 * + SUM ( DISTINCT + CAST ( 55 AS INTEGER ) )
----
3245

query I rowsort
SELECT - 65 + + + 47
----
-18

query I rowsort
SELECT ALL + 1 - - - 64 - 53 * - 34 * + 77
----
138691

query I rowsort
SELECT DISTINCT + 43 * + 89 AS col0
----
3827

query I rowsort
SELECT DISTINCT - 74 - 69
----
-143

onlyif mysql # aggregate syntax: 
query I rowsort label-4362
SELECT + MAX( + + 59 ) AS col1
----
59

skipif mysql # not compatible
query I rowsort label-4362
SELECT + MAX ( + + 59 ) AS col1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4363
SELECT + COUNT( * ) - - SUM( + 80 ) + 45 * SUM( - 88 ) AS col1
----
-3879

skipif mysql # not compatible
query I rowsort label-4363
SELECT + COUNT ( * ) - - SUM ( + 80 ) + 45 * SUM ( - 88 ) AS col1
----
-3879

onlyif mysql # DIV for integer division: 
query I rowsort label-4364
SELECT + - ( 71 ) DIV 25 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-4364
SELECT + - ( 71 ) / 25 AS col0
----
-2

query I rowsort
SELECT - + 55 * - + 32 AS col2
----
1760

query I rowsort
SELECT ALL + 49 * + CASE + ( - 82 ) WHEN NULLIF ( 78, + 27 + 8 ) / 99 + 82 THEN NULL WHEN - 28 THEN - 5 + + 41 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4367
SELECT CASE - 96 WHEN + 79 / + 89 THEN 23 WHEN - COUNT( * ) THEN 17 WHEN - 22 * NULLIF ( + 9 * COUNT( * ), + 75 / + 90 ) THEN NULL ELSE + COUNT( * ) + + 84 END AS col2
----
85

skipif mysql # not compatible
query I rowsort label-4367
SELECT CASE - 96 WHEN + 79 / + 89 THEN 23 WHEN - COUNT ( * ) THEN 17 WHEN - 22 * NULLIF ( + 9 * COUNT ( * ), + 75 / + 90 ) THEN NULL ELSE + COUNT ( * ) + + 84 END AS col2
----
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4368
SELECT + + 86 + COUNT( * ) + - 30 * ( 19 * 30 ) DIV + 49
----
-261

skipif mysql # not compatible
query I rowsort label-4368
SELECT + + 86 + COUNT ( * ) + - 30 * ( 19 * 30 ) / + 49
----
-261

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4369
SELECT ALL CAST( 82 AS SIGNED )
----
82

skipif mysql # not compatible
query I rowsort label-4369
SELECT ALL CAST ( 82 AS INTEGER )
----
82

query I rowsort
SELECT + 25 * + 67 * 10
----
16750

onlyif mysql # aggregate syntax: 
query I rowsort label-4371
SELECT - COUNT( DISTINCT - 88 ) * - 61
----
61

skipif mysql # not compatible
query I rowsort label-4371
SELECT - COUNT ( DISTINCT - 88 ) * - 61
----
61

query I rowsort
SELECT + 38 * + 13 AS col1
----
494

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4373
SELECT ALL + - CAST( 68 AS SIGNED ) * + 33 + 10 AS col0
----
-2234

skipif mysql # not compatible
query I rowsort label-4373
SELECT ALL + - CAST ( 68 AS INTEGER ) * + 33 + 10 AS col0
----
-2234

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4374
SELECT - - 28 * - - CAST( + CAST( + 35 AS SIGNED ) AS SIGNED ) + 33 AS col2
----
1013

skipif mysql # not compatible
query I rowsort label-4374
SELECT - - 28 * - - CAST ( + CAST ( + 35 AS INTEGER ) AS INTEGER ) + 33 AS col2
----
1013

query I rowsort
SELECT DISTINCT - 92 * 27 + - 7 AS col0
----
-2491

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4376
SELECT ALL + SUM( - + 40 ) * 4 + - 63 DIV - 86 AS col1
----
-160

skipif mysql # not compatible
query I rowsort label-4376
SELECT ALL + SUM ( - + 40 ) * 4 + - 63 / - 86 AS col1
----
-160

onlyif mysql # aggregate syntax: 
query I rowsort label-4377
SELECT ALL 77 * COUNT( * ) + - CASE + COUNT( ALL + 63 ) WHEN + ( 38 ) THEN 68 WHEN - CASE 46 WHEN - 49 THEN - 73 WHEN 33 * MIN( DISTINCT 5 * - 49 ) THEN COUNT( * ) / 96 + 59 END THEN - 50 + 74 * 98 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4377
SELECT ALL 77 * COUNT ( * ) + - CASE + COUNT ( ALL + 63 ) WHEN + ( 38 ) THEN 68 WHEN - CASE 46 WHEN - 49 THEN - 73 WHEN 33 * MIN ( DISTINCT 5 * - 49 ) THEN COUNT ( * ) / 96 + 59 END THEN - 50 + 74 * 98 END
----
NULL

query I rowsort
SELECT + ( 31 ) + 5 * - 74
----
-339

onlyif mysql # aggregate syntax: 
query I rowsort label-4379
SELECT - COUNT( * ) * - 19 * + 48 - 70 AS col0
----
842

skipif mysql # not compatible
query I rowsort label-4379
SELECT - COUNT ( * ) * - 19 * + 48 - 70 AS col0
----
842

query I rowsort
SELECT NULLIF ( - + ( 39 ), 54 ) AS col0
----
-39

query I rowsort
SELECT 51 * + + 75 + + 41
----
3866

query I rowsort
SELECT - 27 * + 79 col2
----
-2133

onlyif mysql # aggregate syntax: 
query I rowsort label-4383
SELECT NULLIF ( + MAX( ALL - 8 ), 68 ) AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-4383
SELECT NULLIF ( + MAX ( ALL - 8 ), 68 ) AS col0
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4384
SELECT NULLIF ( - 54, + CASE 46 WHEN 66 THEN NULL WHEN CAST( NULL AS SIGNED ) + + NULLIF ( - 14 + COALESCE ( 43, 33 ) / 49, + COUNT( * ) ) THEN NULL ELSE + CAST( - COUNT( * ) AS SIGNED ) END - ( 48 ) ) AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-4384
SELECT NULLIF ( - 54, + CASE 46 WHEN 66 THEN NULL WHEN CAST ( NULL AS INTEGER ) + + NULLIF ( - 14 + COALESCE ( 43, 33 ) / 49, + COUNT ( * ) ) THEN NULL ELSE + CAST ( - COUNT ( * ) AS INTEGER ) END - ( 48 ) ) AS col0
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-4385
SELECT 15 * COUNT( * ) + COUNT( * )
----
16

skipif mysql # not compatible
query I rowsort label-4385
SELECT 15 * COUNT ( * ) + COUNT ( * )
----
16

query I rowsort
SELECT ALL - CASE + 71 WHEN - 79 THEN - 69 END * 53 col0
----
NULL

query I rowsort
SELECT - 67 + - 8 + + 75 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4388
SELECT DISTINCT + MAX( ALL + ( 83 ) ) col0
----
83

skipif mysql # not compatible
query I rowsort label-4388
SELECT DISTINCT + MAX ( ALL + ( 83 ) ) col0
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4389
SELECT - 44 + CAST( + SUM( ALL - 82 ) AS SIGNED ) * 87 AS col0
----
-7178

skipif mysql # not compatible
query I rowsort label-4389
SELECT - 44 + CAST ( + SUM ( ALL - 82 ) AS INTEGER ) * 87 AS col0
----
-7178

query I rowsort
SELECT - 55 * - 64
----
3520

query I rowsort
SELECT + 61 * + 31 col1
----
1891

onlyif mysql # aggregate syntax: 
query I rowsort label-4392
SELECT ALL + CASE + ( - + 2 ) WHEN + CASE - COUNT( * ) WHEN 90 * - 27 - - 14 THEN - 45 * 82 END + 34 * 20 THEN COUNT( * ) WHEN + COUNT( * ) + + 18 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4392
SELECT ALL + CASE + ( - + 2 ) WHEN + CASE - COUNT ( * ) WHEN 90 * - 27 - - 14 THEN - 45 * 82 END + 34 * 20 THEN COUNT ( * ) WHEN + COUNT ( * ) + + 18 THEN NULL END AS col2
----
NULL

query II rowsort
SELECT ALL + 79, 52 - + - 79 AS col0
----
79
131

onlyif mysql # aggregate syntax: 
query I rowsort label-4394
SELECT DISTINCT + 96 * + - 32 * - CASE - 68 WHEN + 33 THEN - COALESCE ( 43, 41, - COUNT( * ) ) WHEN + 17 - 7 THEN 15 END - + 67 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4394
SELECT DISTINCT + 96 * + - 32 * - CASE - 68 WHEN + 33 THEN - COALESCE ( 43, 41, - COUNT ( * ) ) WHEN + 17 - 7 THEN 15 END - + 67 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4395
SELECT COUNT( * ) AS col2, - NULLIF ( + - 27, + SUM( - 43 ) * 78 ) AS col2
----
1
27

skipif mysql # not compatible
query II rowsort label-4395
SELECT COUNT ( * ) AS col2, - NULLIF ( + - 27, + SUM ( - 43 ) * 78 ) AS col2
----
1
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4396
SELECT ALL ( CAST( 20 AS SIGNED ) ) * 75 col2
----
1500

skipif mysql # not compatible
query I rowsort label-4396
SELECT ALL ( CAST ( 20 AS INTEGER ) ) * 75 col2
----
1500

query I rowsort
SELECT - 25 * - ( - - 23 ) AS col2
----
575

query I rowsort
SELECT + 90 + - 46 AS col1
----
44

query I rowsort
SELECT DISTINCT 54 * + + 58 AS col2
----
3132

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4400
SELECT ALL - 14 * ( + SUM( 30 ) ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4400
SELECT ALL - 14 * ( + SUM ( 30 ) ) + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4401
SELECT - - 68 * + NULLIF ( - 54, + 6 ) + ( COUNT( * ) )
----
-3671

skipif mysql # not compatible
query I rowsort label-4401
SELECT - - 68 * + NULLIF ( - 54, + 6 ) + ( COUNT ( * ) )
----
-3671

onlyif mysql # aggregate syntax: 
query I rowsort label-4402
SELECT ALL + - COUNT( * ) * - COUNT( * ) + + - SUM( DISTINCT + ( + 81 ) )
----
-80

skipif mysql # not compatible
query I rowsort label-4402
SELECT ALL + - COUNT ( * ) * - COUNT ( * ) + + - SUM ( DISTINCT + ( + 81 ) )
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4403
SELECT + - 34 * CAST( NULL AS SIGNED ) + - COUNT( + 75 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4403
SELECT + - 34 * CAST ( NULL AS INTEGER ) + - COUNT ( + 75 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4404
SELECT + - 75 + + SUM( DISTINCT + 77 ) + - 50 AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-4404
SELECT + - 75 + + SUM ( DISTINCT + 77 ) + - 50 AS col2
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-4405
SELECT DISTINCT SUM( ALL 76 ) AS col1
----
76

skipif mysql # not compatible
query I rowsort label-4405
SELECT DISTINCT SUM ( ALL 76 ) AS col1
----
76

query II rowsort
SELECT - 8 AS col1, 6
----
-8
6

query I rowsort
SELECT - 82 + - + 35
----
-117

query II rowsort
SELECT 87, - 96 col0
----
87
-96

query I rowsort
SELECT - CASE 93 WHEN - 83 THEN - 44 END
----
NULL

query I rowsort
SELECT + 70 + + 32
----
102

onlyif mysql # DIV for integer division: 
query I rowsort label-4411
SELECT DISTINCT - 71 + 50 DIV - 22 AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-4411
SELECT DISTINCT - 71 + 50 / - 22 AS col0
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-4412
SELECT DISTINCT COUNT( DISTINCT 6 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4412
SELECT DISTINCT COUNT ( DISTINCT 6 ) AS col0
----
1

query I rowsort
SELECT ALL - 38 + 55 AS col2
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-4414
SELECT + - 32 + COUNT( * )
----
-31

skipif mysql # not compatible
query I rowsort label-4414
SELECT + - 32 + COUNT ( * )
----
-31

query II rowsort
SELECT - + 62, 67 col0
----
-62
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4416
SELECT + + MIN( ALL - 93 ) + + + CAST( + 9 AS SIGNED ) AS col1
----
-84

skipif mysql # not compatible
query I rowsort label-4416
SELECT + + MIN ( ALL - 93 ) + + + CAST ( + 9 AS INTEGER ) AS col1
----
-84

query II rowsort
SELECT DISTINCT - 80 AS col1, - 72 AS col2
----
-80
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4418
SELECT ALL - 77 + - + 16 + COUNT( * ) - + 42 DIV 50 AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-4418
SELECT ALL - 77 + - + 16 + COUNT ( * ) - + 42 / 50 AS col2
----
-92

query II rowsort
SELECT 92 col0, ( + + 89 )
----
92
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4420
SELECT + ( - COALESCE ( COUNT( * ), + 47 ) ) DIV - ( + 79 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4420
SELECT + ( - COALESCE ( COUNT ( * ), + 47 ) ) / - ( + 79 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4421
SELECT - 35 * + + 84 * + 16 + + MIN( 74 ) * + 16
----
-45856

skipif mysql # not compatible
query I rowsort label-4421
SELECT - 35 * + + 84 * + 16 + + MIN ( 74 ) * + 16
----
-45856

onlyif mysql # DIV for integer division: 
query I rowsort label-4422
SELECT ALL - 61 DIV - 91 + - - 6 - - + 88 + 77 * - 80
----
-6066

skipif mysql # not compatible
query I rowsort label-4422
SELECT ALL - 61 / - 91 + - - 6 - - + 88 + 77 * - 80
----
-6066

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4423
SELECT CAST( + + 43 AS SIGNED ) AS col1, + 69 * - - 31 - COUNT( * ) AS col0
----
43
2138

skipif mysql # not compatible
query II rowsort label-4423
SELECT CAST ( + + 43 AS INTEGER ) AS col1, + 69 * - - 31 - COUNT ( * ) AS col0
----
43
2138

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4424
SELECT DISTINCT COUNT( * ) DIV 57 + ( + COUNT( * ) ) DIV 70 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4424
SELECT DISTINCT COUNT ( * ) / 57 + ( + COUNT ( * ) ) / 70 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4425
SELECT + CAST( + 18 AS SIGNED ) AS col1
----
18

skipif mysql # not compatible
query I rowsort label-4425
SELECT + CAST ( + 18 AS INTEGER ) AS col1
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-4426
SELECT - 68 * 92 * MIN( ALL + 21 ) AS col0
----
-131376

skipif mysql # not compatible
query I rowsort label-4426
SELECT - 68 * 92 * MIN ( ALL + 21 ) AS col0
----
-131376

onlyif mysql # aggregate syntax: 
query II rowsort label-4427
SELECT ALL + SUM( - - 13 ) col2, COUNT( * ) AS col0
----
13
1

skipif mysql # not compatible
query II rowsort label-4427
SELECT ALL + SUM ( - - 13 ) col2, COUNT ( * ) AS col0
----
13
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4428
SELECT ALL + CAST( CASE + 4 WHEN - + 91 + - SUM( ALL + 46 - 38 ) / 42 THEN 97 END AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4428
SELECT ALL + CAST ( CASE + 4 WHEN - + 91 + - SUM ( ALL + 46 - 38 ) / 42 THEN 97 END AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT + 56 - - 91 col2, 1 AS col0
----
147
1

query I rowsort
SELECT - 38 * - + 53
----
2014

onlyif mysql # aggregate syntax: 
query I rowsort label-4431
SELECT ( COUNT( - - 27 ) )
----
1

skipif mysql # not compatible
query I rowsort label-4431
SELECT ( COUNT ( - - 27 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4432
SELECT DISTINCT - 74 * - 47 - + - 16 * + CASE COUNT( * ) WHEN - 18 THEN NULLIF ( - 32, + 83 / SUM( + 68 ) + 10 ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4432
SELECT DISTINCT - 74 * - 47 - + - 16 * + CASE COUNT ( * ) WHEN - 18 THEN NULLIF ( - 32, + 83 / SUM ( + 68 ) + 10 ) ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT DISTINCT + NULLIF ( 76, 69 * + 25 * 2 + - 16 )
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4434
SELECT DISTINCT + COUNT( * ) * + 94 AS col0
----
94

skipif mysql # not compatible
query I rowsort label-4434
SELECT DISTINCT + COUNT ( * ) * + 94 AS col0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4435
SELECT - + ( SUM( - 92 ) ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-4435
SELECT - + ( SUM ( - 92 ) ) AS col2
----
92

query I rowsort
SELECT 13 * - 55 - + 66 AS col1
----
-781

query I rowsort
SELECT ALL COALESCE ( + 16, + NULLIF ( - 62, 94 * - 1 ), 20 * + 16 )
----
16

query I rowsort
SELECT - 71 + + NULLIF ( + 18, - 83 )
----
-53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4439
SELECT ALL + 33 DIV + COUNT( * ) + 44 + - - 68
----
145

skipif mysql # not compatible
query I rowsort label-4439
SELECT ALL + 33 / + COUNT ( * ) + 44 + - - 68
----
145

onlyif mysql # aggregate syntax: 
query I rowsort label-4440
SELECT + MAX( ALL - 17 ) * - 80 * - NULLIF ( + 18, + 57 ) * 89 + - 24
----
-2178744

skipif mysql # not compatible
query I rowsort label-4440
SELECT + MAX ( ALL - 17 ) * - 80 * - NULLIF ( + 18, + 57 ) * 89 + - 24
----
-2178744

onlyif mysql # aggregate syntax: 
query I rowsort label-4441
SELECT COUNT( * ) + - 32 + + 77 AS col1
----
46

skipif mysql # not compatible
query I rowsort label-4441
SELECT COUNT ( * ) + - 32 + + 77 AS col1
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4442
SELECT + MIN( - ( 20 ) ) * - 24 * 8 AS col2
----
3840

skipif mysql # not compatible
query I rowsort label-4442
SELECT + MIN ( - ( 20 ) ) * - 24 * 8 AS col2
----
3840

onlyif mysql # aggregate syntax: 
query I rowsort label-4443
SELECT 16 * - 23 + - - 77 * - COUNT( * )
----
-445

skipif mysql # not compatible
query I rowsort label-4443
SELECT 16 * - 23 + - - 77 * - COUNT ( * )
----
-445

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4444
SELECT ALL - CAST( + NULLIF ( - - 91, - - COUNT( * ) ) AS SIGNED )
----
-91

skipif mysql # not compatible
query I rowsort label-4444
SELECT ALL - CAST ( + NULLIF ( - - 91, - - COUNT ( * ) ) AS INTEGER )
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4445
SELECT COUNT( + - 51 ) - - + NULLIF ( + + 30, 12 * 49 + + COUNT( 16 ) / 24 ) * 30 col0
----
901

skipif mysql # not compatible
query I rowsort label-4445
SELECT COUNT ( + - 51 ) - - + NULLIF ( + + 30, 12 * 49 + + COUNT ( 16 ) / 24 ) * 30 col0
----
901

onlyif mysql # aggregate syntax: 
query I rowsort label-4446
SELECT SUM( - 83 ) * + 72 AS col1
----
-5976

skipif mysql # not compatible
query I rowsort label-4446
SELECT SUM ( - 83 ) * + 72 AS col1
----
-5976

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4447
SELECT DISTINCT + NULLIF ( + 81, COALESCE ( 74, + 86 / CAST( 74 AS SIGNED ) ) + 85 * - 53 ) AS col2
----
81

skipif mysql # not compatible
query I rowsort label-4447
SELECT DISTINCT + NULLIF ( + 81, COALESCE ( 74, + 86 / CAST ( 74 AS INTEGER ) ) + 85 * - 53 ) AS col2
----
81

query I rowsort
SELECT ALL COALESCE ( 15, - 71 ) - + 4
----
11

query I rowsort
SELECT NULLIF ( - 34, + 36 ) - + 57 col1
----
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-4450
SELECT ALL - 80 col0, 11 + + COUNT( 89 ) AS col0
----
-80
12

skipif mysql # not compatible
query II rowsort label-4450
SELECT ALL - 80 col0, 11 + + COUNT ( 89 ) AS col0
----
-80
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4451
SELECT COALESCE ( - 43, + MAX( ALL + 47 ) ) * - + COUNT( * )
----
43

skipif mysql # not compatible
query I rowsort label-4451
SELECT COALESCE ( - 43, + MAX ( ALL + 47 ) ) * - + COUNT ( * )
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4452
SELECT ALL CAST( - COALESCE ( 67, + + 9 + + 49, 7 ) AS SIGNED ) * 99 AS col0
----
-6633

skipif mysql # not compatible
query I rowsort label-4452
SELECT ALL CAST ( - COALESCE ( 67, + + 9 + + 49, 7 ) AS INTEGER ) * 99 AS col0
----
-6633

onlyif mysql # aggregate syntax: 
query II rowsort label-4453
SELECT ALL - 99, - MIN( DISTINCT + + 43 ) AS col2
----
-99
-43

skipif mysql # not compatible
query II rowsort label-4453
SELECT ALL - 99, - MIN ( DISTINCT + + 43 ) AS col2
----
-99
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-4454
SELECT DISTINCT - COALESCE ( + 90, - 90 DIV + 19, 24 )
----
-90

skipif mysql # not compatible
query I rowsort label-4454
SELECT DISTINCT - COALESCE ( + 90, - 90 / + 19, 24 )
----
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4455
SELECT 52 DIV COUNT( * ) + ( + COUNT( * ) ) AS col2
----
53

skipif mysql # not compatible
query I rowsort label-4455
SELECT 52 / COUNT ( * ) + ( + COUNT ( * ) ) AS col2
----
53

query I rowsort
SELECT NULLIF ( + 45, 14 ) * + 54
----
2430

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4457
SELECT CAST( NULL AS SIGNED ) * + 88 * + 24 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4457
SELECT CAST ( NULL AS INTEGER ) * + 88 * + 24 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4458
SELECT NULLIF ( 92, COUNT( * ) ) + SUM( - - 38 ) * 36 AS col1
----
1460

skipif mysql # not compatible
query I rowsort label-4458
SELECT NULLIF ( 92, COUNT ( * ) ) + SUM ( - - 38 ) * 36 AS col1
----
1460

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4459
SELECT + 55 * + COUNT( * ) - - 48 - - 52 DIV + COUNT( * ) AS col1
----
155

skipif mysql # not compatible
query I rowsort label-4459
SELECT + 55 * + COUNT ( * ) - - 48 - - 52 / + COUNT ( * ) AS col1
----
155

onlyif mysql # aggregate syntax: 
query II rowsort label-4460
SELECT ALL - 98 AS col2, + SUM( ALL - 57 ) * - 2 - + 35 - + 61
----
-98
18

skipif mysql # not compatible
query II rowsort label-4460
SELECT ALL - 98 AS col2, + SUM ( ALL - 57 ) * - 2 - + 35 - + 61
----
-98
18

onlyif mysql # aggregate syntax: 
query I rowsort label-4461
SELECT MIN( - - 49 ) * + 87 * - - 11 + + ( 58 ) col1
----
46951

skipif mysql # not compatible
query I rowsort label-4461
SELECT MIN ( - - 49 ) * + 87 * - - 11 + + ( 58 ) col1
----
46951

onlyif mysql # DIV for integer division: 
query I rowsort label-4462
SELECT - ( + 79 ) DIV - 50 + 36 * - + 87
----
-3131

skipif mysql # not compatible
query I rowsort label-4462
SELECT - ( + 79 ) / - 50 + 36 * - + 87
----
-3131

query I rowsort
SELECT 59 + + 45 AS col2
----
104

query I rowsort
SELECT ALL - 53 * - 5 AS col0
----
265

query I rowsort
SELECT + - NULLIF ( - - ( 14 ), + + 86 * + 9 ) * + 68 + - 89
----
-1041

onlyif mysql # aggregate syntax: 
query I rowsort label-4466
SELECT DISTINCT + - 1 + - COUNT( * ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-4466
SELECT DISTINCT + - 1 + - COUNT ( * ) AS col2
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-4467
SELECT - 69 * + COUNT( * ) * 17 col1, 42 AS col0
----
-1173
42

skipif mysql # not compatible
query II rowsort label-4467
SELECT - 69 * + COUNT ( * ) * 17 col1, 42 AS col0
----
-1173
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4468
SELECT 20 + - 35 + + NULLIF ( - - 91, 4 + CAST( NULL AS SIGNED ) ) * 57 AS col2
----
5172

skipif mysql # not compatible
query I rowsort label-4468
SELECT 20 + - 35 + + NULLIF ( - - 91, 4 + CAST ( NULL AS INTEGER ) ) * 57 AS col2
----
5172

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4469
SELECT CASE + 80 WHEN + CAST( NULL AS SIGNED ) * + ( - 76 ) THEN - 29 * ( 16 ) WHEN 51 + 86 * 57 THEN + 48 * - AVG ( + 76 * 36 ) END * - 82
----
NULL

skipif mysql # not compatible
query I rowsort label-4469
SELECT CASE + 80 WHEN + CAST ( NULL AS INTEGER ) * + ( - 76 ) THEN - 29 * ( 16 ) WHEN 51 + 86 * 57 THEN + 48 * - AVG ( + 76 * 36 ) END * - 82
----
NULL

query I rowsort
SELECT DISTINCT + + 50 + - 66
----
-16

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4471
SELECT ALL - - 88 + - - CAST( NULL AS DECIMAL ) + - 62 / + CASE + 63 WHEN 44 * 26 THEN 54 ELSE NULL END / 25 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4471
SELECT ALL - - 88 + - - CAST ( NULL AS REAL ) + - 62 / + CASE + 63 WHEN 44 * 26 THEN 54 ELSE NULL END / 25 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4472
SELECT ALL + 38 + - + COUNT( * ) AS col0
----
37

skipif mysql # not compatible
query I rowsort label-4472
SELECT ALL + 38 + - + COUNT ( * ) AS col0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-4473
SELECT - - NULLIF ( 23, - 16 * - MIN( + - 39 ) + - 5 * - 98 )
----
23

skipif mysql # not compatible
query I rowsort label-4473
SELECT - - NULLIF ( 23, - 16 * - MIN ( + - 39 ) + - 5 * - 98 )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4474
SELECT DISTINCT MIN( DISTINCT - 12 ) AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-4474
SELECT DISTINCT MIN ( DISTINCT - 12 ) AS col1
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-4475
SELECT 79 * + - MAX( DISTINCT 74 )
----
-5846

skipif mysql # not compatible
query I rowsort label-4475
SELECT 79 * + - MAX ( DISTINCT 74 )
----
-5846

query II rowsort
SELECT 10 + - 26 * 56 AS col1, 55 AS col0
----
-1446
55

onlyif mysql # aggregate syntax: 
query II rowsort label-4477
SELECT - 17, COUNT( * ) AS col0
----
-17
1

skipif mysql # not compatible
query II rowsort label-4477
SELECT - 17, COUNT ( * ) AS col0
----
-17
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4478
SELECT + COUNT( ALL 94 ) + + 47 AS col2, 89 * - 8 * + 15 + 22 * + 69 col0
----
48
-9162

skipif mysql # not compatible
query II rowsort label-4478
SELECT + COUNT ( ALL 94 ) + + 47 AS col2, 89 * - 8 * + 15 + 22 * + 69 col0
----
48
-9162

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4479
SELECT COALESCE ( + + COUNT( * ), + - COUNT( * ) DIV - + 33 + + 54 + 19, 36 ) + 2 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-4479
SELECT COALESCE ( + + COUNT ( * ), + - COUNT ( * ) / - + 33 + + 54 + 19, 36 ) + 2 AS col1
----
3

query I rowsort
SELECT + 68 * - 73
----
-4964

query I rowsort
SELECT - NULLIF ( 96, 4 + ( - 69 ) )
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4482
SELECT ALL + 36 - CAST( MIN( + 36 ) AS SIGNED ) + + + ( 24 ) DIV - 23
----
-1

skipif mysql # not compatible
query I rowsort label-4482
SELECT ALL + 36 - CAST ( MIN ( + 36 ) AS INTEGER ) + + + ( 24 ) / - 23
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4483
SELECT 18 DIV + - 58 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4483
SELECT 18 / + - 58 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4484
SELECT DISTINCT MIN( + + 58 ) AS col2
----
58

skipif mysql # not compatible
query I rowsort label-4484
SELECT DISTINCT MIN ( + + 58 ) AS col2
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4485
SELECT COUNT( * ) + + + CAST( NULL AS SIGNED ) * - - 81 * + 37 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4485
SELECT COUNT ( * ) + + + CAST ( NULL AS INTEGER ) * - - 81 * + 37 AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 2 - 47
----
-49

query I rowsort
SELECT DISTINCT + COALESCE ( + 36, + 91 ) * ( + - 70 )
----
-2520

onlyif mysql # aggregate syntax: 
query II rowsort label-4488
SELECT ( + - 61 ) * + - 9 * - - COUNT( * ) AS col2, 0 AS col1
----
549
0

skipif mysql # not compatible
query II rowsort label-4488
SELECT ( + - 61 ) * + - 9 * - - COUNT ( * ) AS col2, 0 AS col1
----
549
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4489
SELECT COALESCE ( - 48, MAX( DISTINCT - + 15 ) * 36 - 62, - CAST( 44 AS SIGNED ) - COUNT( * ) )
----
-48

skipif mysql # not compatible
query I rowsort label-4489
SELECT COALESCE ( - 48, MAX ( DISTINCT - + 15 ) * 36 - 62, - CAST ( 44 AS INTEGER ) - COUNT ( * ) )
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-4490
SELECT COUNT( * ) * - 79 * - 52
----
4108

skipif mysql # not compatible
query I rowsort label-4490
SELECT COUNT ( * ) * - 79 * - 52
----
4108

onlyif mysql # aggregate syntax: 
query I rowsort label-4491
SELECT NULLIF ( - COUNT( * ), - - 63 )
----
-1

skipif mysql # not compatible
query I rowsort label-4491
SELECT NULLIF ( - COUNT ( * ), - - 63 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4492
SELECT ALL - 4 AS col2, 84 + - COUNT( * ) DIV - 69 * 90 * + 72
----
-4
84

skipif mysql # not compatible
query II rowsort label-4492
SELECT ALL - 4 AS col2, 84 + - COUNT ( * ) / - 69 * 90 * + 72
----
-4
84

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4493
SELECT DISTINCT - 8 AS col2, COUNT( * ) + - CASE + + 39 WHEN - - 49 * 64 + + CAST( NULL AS DECIMAL ) THEN 3 ELSE NULL END
----
-8
NULL

skipif mysql # not compatible
query II rowsort label-4493
SELECT DISTINCT - 8 AS col2, COUNT ( * ) + - CASE + + 39 WHEN - - 49 * 64 + + CAST ( NULL AS REAL ) THEN 3 ELSE NULL END
----
-8
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-4494
SELECT ALL + 94 AS col0, - 3 * + ( 17 ) col1, COUNT( * ) AS col2
----
94
-51
1

skipif mysql # not compatible
query III rowsort label-4494
SELECT ALL + 94 AS col0, - 3 * + ( 17 ) col1, COUNT ( * ) AS col2
----
94
-51
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4495
SELECT + SUM( DISTINCT - 38 ) AS col2, + 58
----
-38
58

skipif mysql # not compatible
query II rowsort label-4495
SELECT + SUM ( DISTINCT - 38 ) AS col2, + 58
----
-38
58

query I rowsort
SELECT + 31 * + 14 * + NULLIF ( - - 87, + 2 ) col1
----
37758

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4497
SELECT - 43 - + 71 * + CAST( + 96 AS SIGNED ) - - 15
----
-6844

skipif mysql # not compatible
query I rowsort label-4497
SELECT - 43 - + 71 * + CAST ( + 96 AS INTEGER ) - - 15
----
-6844

onlyif mysql # aggregate syntax: 
query I rowsort label-4498
SELECT ALL 54 * + COUNT( * ) * - 1 * + COUNT( ALL 96 ) AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-4498
SELECT ALL 54 * + COUNT ( * ) * - 1 * + COUNT ( ALL 96 ) AS col2
----
-54

query I rowsort
SELECT - NULLIF ( COALESCE ( - ( + - 56 ), 89 * + 84 ), 28 ) col2
----
-56

query I rowsort
SELECT + + 22 * 18 AS col1
----
396

onlyif mysql # aggregate syntax: 
query I rowsort label-4501
SELECT + COALESCE ( - COUNT( * ), 54 )
----
-1

skipif mysql # not compatible
query I rowsort label-4501
SELECT + COALESCE ( - COUNT ( * ), 54 )
----
-1

query II rowsort
SELECT + 49, - 90 AS col0
----
49
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4503
SELECT ALL + SUM( ALL - 38 ) + COUNT( CAST( NULL AS SIGNED ) ), + 92 - + 36 + + 97 AS col0
----
-38
153

skipif mysql # not compatible
query II rowsort label-4503
SELECT ALL + SUM ( ALL - 38 ) + COUNT ( CAST ( NULL AS INTEGER ) ), + 92 - + 36 + + 97 AS col0
----
-38
153

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4504
SELECT + 89 - - - CAST( CAST( NULL AS SIGNED ) AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4504
SELECT + 89 - - - CAST ( CAST ( NULL AS INTEGER ) AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4505
SELECT ALL - 50 DIV COUNT( * ) + 3 * - 41 DIV 35 AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-4505
SELECT ALL - 50 / COUNT ( * ) + 3 * - 41 / 35 AS col2
----
-53

query I rowsort
SELECT - - ( + + 61 )
----
61

onlyif mysql # DIV for integer division: 
query I rowsort label-4507
SELECT - 16 DIV - COALESCE ( 63, - + AVG ( DISTINCT 35 ) - - - 85 ) + - 85 col1
----
-85

skipif mysql # not compatible
query I rowsort label-4507
SELECT - 16 / - COALESCE ( 63, - + AVG ( DISTINCT 35 ) - - - 85 ) + - 85 col1
----
-85

query I rowsort
SELECT + - 0 * - 18
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4509
SELECT + + ( + 57 ) + + NULLIF ( - 81, + - CAST( 85 AS SIGNED ) - - 16 )
----
-24

skipif mysql # not compatible
query I rowsort label-4509
SELECT + + ( + 57 ) + + NULLIF ( - 81, + - CAST ( 85 AS INTEGER ) - - 16 )
----
-24

query I rowsort
SELECT - + 20 * + 53 - - - 78 AS col2
----
-1138

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4511
SELECT - - COALESCE ( - 93, COUNT( * ) * - + 37 + + 21 - 39 DIV - NULLIF ( - 23 + + COUNT( * ) * + 3, 69 + + COUNT( * ) ), - 60 + + ( + 47 ) ) - 91
----
-184

skipif mysql # not compatible
query I rowsort label-4511
SELECT - - COALESCE ( - 93, COUNT ( * ) * - + 37 + + 21 - 39 / - NULLIF ( - 23 + + COUNT ( * ) * + 3, 69 + + COUNT ( * ) ), - 60 + + ( + 47 ) ) - 91
----
-184

onlyif mysql # aggregate syntax: 
query I rowsort label-4512
SELECT ALL - + 81 - + 99 + - SUM( DISTINCT 53 )
----
-233

skipif mysql # not compatible
query I rowsort label-4512
SELECT ALL - + 81 - + 99 + - SUM ( DISTINCT 53 )
----
-233

query I rowsort
SELECT - 5 * + - 46
----
230

query II rowsort
SELECT DISTINCT 35 col0, - ( - 49 ) AS col1
----
35
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4515
SELECT - COUNT( * ) + 86 DIV 84
----
0

skipif mysql # not compatible
query I rowsort label-4515
SELECT - COUNT ( * ) + 86 / 84
----
0

query I rowsort
SELECT - 27 + 59 AS col2
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-4517
SELECT - 45 * + 99 * - COUNT( * ) AS col0
----
4455

skipif mysql # not compatible
query I rowsort label-4517
SELECT - 45 * + 99 * - COUNT ( * ) AS col0
----
4455

onlyif mysql # DIV for integer division: 
query I rowsort label-4518
SELECT + 57 - + 48 DIV + - 70
----
57

skipif mysql # not compatible
query I rowsort label-4518
SELECT + 57 - + 48 / + - 70
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4519
SELECT DISTINCT COALESCE ( 85, - NULLIF ( - 8, - - 16 / + CAST( NULL AS SIGNED ) * - + 54 ) + 37 )
----
85

skipif mysql # not compatible
query I rowsort label-4519
SELECT DISTINCT COALESCE ( 85, - NULLIF ( - 8, - - 16 / + CAST ( NULL AS INTEGER ) * - + 54 ) + 37 )
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4520
SELECT - 33 + + 7 - + + COUNT( * ) AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-4520
SELECT - 33 + + 7 - + + COUNT ( * ) AS col0
----
-27

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4521
SELECT - 97 DIV COALESCE ( + - 36, - 95 DIV ( - + CAST( - COALESCE ( 33, - 68 * 10 ) AS SIGNED ) ) + + ( - 33 - 48 ) * 64 )
----
2

skipif mysql # not compatible
query I rowsort label-4521
SELECT - 97 / COALESCE ( + - 36, - 95 / ( - + CAST ( - COALESCE ( 33, - 68 * 10 ) AS INTEGER ) ) + + ( - 33 - 48 ) * 64 )
----
2

query I rowsort
SELECT - 9 * - - 79
----
-711

onlyif mysql # DIV for integer division: 
query I rowsort label-4523
SELECT ALL - 89 DIV - 40
----
2

skipif mysql # not compatible
query I rowsort label-4523
SELECT ALL - 89 / - 40
----
2

query I rowsort
SELECT ALL ( 25 ) AS col1
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-4525
SELECT - 61 DIV - 93 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4525
SELECT - 61 / - 93 AS col2
----
0

query I rowsort
SELECT ALL NULLIF ( - 24, - ( - 60 ) * + AVG ( - - 2 ) + - 18 - 47 ) / 74 + - 55 * CASE - 53 WHEN - 54 - 17 THEN + 1 / + 94 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4527
SELECT DISTINCT 15 DIV + COUNT( * ) + + 0 * - - 71 col1
----
15

skipif mysql # not compatible
query I rowsort label-4527
SELECT DISTINCT 15 / + COUNT ( * ) + + 0 * - - 71 col1
----
15

query II rowsort
SELECT DISTINCT + 72 * 68 AS col0, 7 AS col1
----
4896
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4529
SELECT + SUM( 53 ) AS col1
----
53

skipif mysql # not compatible
query I rowsort label-4529
SELECT + SUM ( 53 ) AS col1
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-4530
SELECT DISTINCT + COALESCE ( + COUNT( * ), - + 76 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-4530
SELECT DISTINCT + COALESCE ( + COUNT ( * ), - + 76 ) col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4531
SELECT ALL 83 DIV - + 28 + 90 AS col1
----
88

skipif mysql # not compatible
query I rowsort label-4531
SELECT ALL 83 / - + 28 + 90 AS col1
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4532
SELECT 27 DIV + 86 - + CAST( ( SUM( ALL + 76 ) ) AS SIGNED ) + + 2 - 39 * + 16 * 49
----
-30650

skipif mysql # not compatible
query I rowsort label-4532
SELECT 27 / + 86 - + CAST ( ( SUM ( ALL + 76 ) ) AS INTEGER ) + + 2 - 39 * + 16 * 49
----
-30650

onlyif mysql # aggregate syntax: 
query II rowsort label-4533
SELECT + 2 * 41 + - 82 AS col1, 18 + - - COUNT( * )
----
0
19

skipif mysql # not compatible
query II rowsort label-4533
SELECT + 2 * 41 + - 82 AS col1, 18 + - - COUNT ( * )
----
0
19

onlyif mysql # aggregate syntax: 
query I rowsort label-4534
SELECT + COUNT( * ) * 22 + + 95
----
117

skipif mysql # not compatible
query I rowsort label-4534
SELECT + COUNT ( * ) * 22 + + 95
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-4535
SELECT DISTINCT - COUNT( * ) * - - 46 * - 64 + + + 22 + + + 17
----
2983

skipif mysql # not compatible
query I rowsort label-4535
SELECT DISTINCT - COUNT ( * ) * - - 46 * - 64 + + + 22 + + + 17
----
2983

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4536
SELECT + - CAST( NULL AS SIGNED ) + + - NULLIF ( 8, + - CASE - NULLIF ( COUNT( * ), + + 31 ) WHEN - 20 THEN 1 * + 59 WHEN - COUNT( * ) / 13 + - ( 25 + 92 ) THEN NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-4536
SELECT + - CAST ( NULL AS INTEGER ) + + - NULLIF ( 8, + - CASE - NULLIF ( COUNT ( * ), + + 31 ) WHEN - 20 THEN 1 * + 59 WHEN - COUNT ( * ) / 13 + - ( 25 + 92 ) THEN NULL END )
----
NULL

query I rowsort
SELECT - 37 * 51 + - 40 + + 29 - + 41 * + 53 * + 55 AS col1
----
-121413

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4538
SELECT - - MAX( ALL - 9 ) DIV 4 + - 91 * + 6 AS col0, - NULLIF ( + 56, 72 DIV 67 ) * - 70 AS col2
----
-548
3920

skipif mysql # not compatible
query II rowsort label-4538
SELECT - - MAX ( ALL - 9 ) / 4 + - 91 * + 6 AS col0, - NULLIF ( + 56, 72 / 67 ) * - 70 AS col2
----
-548
3920

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4539
SELECT ALL COALESCE ( - - COALESCE ( 34, - - 40, - CASE CAST( CAST( NULL AS DECIMAL ) AS SIGNED ) WHEN + 32 + COUNT( DISTINCT + 96 + ( 12 ) ) THEN 59 END * 82 ), + 67 - - ( + 45 ) ) AS col2
----
34

skipif mysql # not compatible
query I rowsort label-4539
SELECT ALL COALESCE ( - - COALESCE ( 34, - - 40, - CASE CAST ( CAST ( NULL AS REAL ) AS INTEGER ) WHEN + 32 + COUNT ( DISTINCT + 96 + ( 12 ) ) THEN 59 END * 82 ), + 67 - - ( + 45 ) ) AS col2
----
34

onlyif mysql # DIV for integer division: 
query II rowsort label-4540
SELECT + + 72 + 1 col1, - 29 DIV + 22 AS col0
----
73
-1

skipif mysql # not compatible
query II rowsort label-4540
SELECT + + 72 + 1 col1, - 29 / + 22 AS col0
----
73
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4541
SELECT + - 14 * 29 - + + NULLIF ( + COUNT( * ), - 93 ) AS col2
----
-407

skipif mysql # not compatible
query I rowsort label-4541
SELECT + - 14 * 29 - + + NULLIF ( + COUNT ( * ), - 93 ) AS col2
----
-407

onlyif mysql # DIV for integer division: 
query I rowsort label-4542
SELECT ALL + 34 DIV 97 DIV - + 71 * + 76
----
0

skipif mysql # not compatible
query I rowsort label-4542
SELECT ALL + 34 / 97 / - + 71 * + 76
----
0

query II rowsort
SELECT DISTINCT 16 AS col1, - 96 * 28 - + - 96
----
16
-2592

onlyif mysql # aggregate syntax: 
query I rowsort label-4544
SELECT + 57 + + 5 + + MIN( - 52 ) AS col1
----
10

skipif mysql # not compatible
query I rowsort label-4544
SELECT + 57 + + 5 + + MIN ( - 52 ) AS col1
----
10

query I rowsort
SELECT + 21 * - 25
----
-525

onlyif mysql # aggregate syntax: 
query II rowsort label-4546
SELECT ALL COUNT( * ) AS col0, MAX( ALL - - 30 ) * - + 40 AS col0
----
1
-1200

skipif mysql # not compatible
query II rowsort label-4546
SELECT ALL COUNT ( * ) AS col0, MAX ( ALL - - 30 ) * - + 40 AS col0
----
1
-1200

query I rowsort
SELECT - 39 - + 56 AS col1
----
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4548
SELECT ALL - CAST( NULL AS SIGNED ) * - 89 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4548
SELECT ALL - CAST ( NULL AS INTEGER ) * - 89 AS col0
----
NULL

query I rowsort
SELECT + 85 * - + 55 AS col1
----
-4675

query I rowsort
SELECT DISTINCT - 85 * - + 63 AS col0
----
5355

query I rowsort
SELECT ALL + 30 + + 46 AS col1
----
76

onlyif mysql # aggregate syntax: 
query II rowsort label-4552
SELECT ALL 90 AS col2, - 7 * - + SUM( - - 86 )
----
90
602

skipif mysql # not compatible
query II rowsort label-4552
SELECT ALL 90 AS col2, - 7 * - + SUM ( - - 86 )
----
90
602

query I rowsort
SELECT 59 + - - 67 col1
----
126

query I rowsort
SELECT ALL - 58 + - NULLIF ( - 12, - ( - 88 ) ) col0
----
-46

query II rowsort
SELECT 20, 84 AS col0
----
20
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4556
SELECT ALL + 67 + - + 24 + 49 + + 92 * - + COUNT( * ) + - - 82 * 99 AS col2
----
8118

skipif mysql # not compatible
query I rowsort label-4556
SELECT ALL + 67 + - + 24 + 49 + + 92 * - + COUNT ( * ) + - - 82 * 99 AS col2
----
8118

onlyif mysql # aggregate syntax: 
query II rowsort label-4557
SELECT NULLIF ( + + MIN( - 16 ), + 90 ) * 82 * - + 77 AS col1, + 18
----
101024
18

skipif mysql # not compatible
query II rowsort label-4557
SELECT NULLIF ( + + MIN ( - 16 ), + 90 ) * 82 * - + 77 AS col1, + 18
----
101024
18

query I rowsort
SELECT + 36 * ( - 2 ) + - ( 54 ) + - 70 * 12 * 76 - 61 * - COALESCE ( 20, 52 + - 54, 97 )
----
-62746

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4559
SELECT ALL - 95 + + 98 + - CASE 44 WHEN - 49 DIV - 34 * SUM( ALL - 93 ) + CAST( NULL AS SIGNED ) THEN 66 * 7 WHEN - 40 * - 10 + + COUNT( * ) THEN - ( - 3 ) WHEN + COALESCE ( - 44, - 20 ) * 78 THEN 5 DIV + 20 ELSE - 56 + 21 * - 79 END DIV + 13 AS col1
----
134

skipif mysql # not compatible
query I rowsort label-4559
SELECT ALL - 95 + + 98 + - CASE 44 WHEN - 49 / - 34 * SUM ( ALL - 93 ) + CAST ( NULL AS INTEGER ) THEN 66 * 7 WHEN - 40 * - 10 + + COUNT ( * ) THEN - ( - 3 ) WHEN + COALESCE ( - 44, - 20 ) * 78 THEN 5 / + 20 ELSE - 56 + 21 * - 79 END / + 13 AS col1
----
134

query I rowsort
SELECT ALL + 41 * - ( - 66 ) col2
----
2706

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4561
SELECT + COUNT( * ) * + 15 DIV + + 70 + + + 15 DIV + 49 + COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4561
SELECT + COUNT ( * ) * + 15 / + + 70 + + + 15 / + 49 + COUNT ( * ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4562
SELECT ALL - COALESCE ( + + 31, + 89, - - MIN( - 16 ) ) + + - 78 AS col2
----
-109

skipif mysql # not compatible
query I rowsort label-4562
SELECT ALL - COALESCE ( + + 31, + 89, - - MIN ( - 16 ) ) + + - 78 AS col2
----
-109

onlyif mysql # DIV for integer division: 
query II rowsort label-4563
SELECT DISTINCT - - 31 - - 0 DIV 41 + + - 47, - ( - 84 ) * CASE WHEN NOT ( 15 ) NOT IN ( 24 ) THEN NULL ELSE - 77 END AS col0
----
-16
-6468

skipif mysql # not compatible
query II rowsort label-4563
SELECT DISTINCT - - 31 - - 0 / 41 + + - 47, - ( - 84 ) * CASE WHEN NOT ( 15 ) NOT IN ( 24 ) THEN NULL ELSE - 77 END AS col0
----
-16
-6468

onlyif mysql # aggregate syntax: 
query I rowsort label-4564
SELECT DISTINCT - - COUNT( * ) * + - COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4564
SELECT DISTINCT - - COUNT ( * ) * + - COUNT ( * ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-4565
SELECT 59 * - COALESCE ( + COUNT( ALL 56 ), + 63 ) - + 17 AS col0, MIN( 12 ) AS col1
----
-76
12

skipif mysql # not compatible
query II rowsort label-4565
SELECT 59 * - COALESCE ( + COUNT ( ALL 56 ), + 63 ) - + 17 AS col0, MIN ( 12 ) AS col1
----
-76
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4566
SELECT + MAX( + 15 ) * 54 - - 84 * NULLIF ( - 61, + 89 + + 72 )
----
-4314

skipif mysql # not compatible
query I rowsort label-4566
SELECT + MAX ( + 15 ) * 54 - - 84 * NULLIF ( - 61, + 89 + + 72 )
----
-4314

query II rowsort
SELECT 34 AS col2, 21 + - 98 AS col1
----
34
-77

query II rowsort
SELECT 71, 81 * ( - 0 ) AS col2
----
71
0

query I rowsort
SELECT ALL + 49 * + 81 col0
----
3969

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4570
SELECT ALL - CAST( NULL AS SIGNED ) col1, + MIN( + ( - 27 ) ) * - 19 + COUNT( * )
----
NULL
514

skipif mysql # not compatible
query II rowsort label-4570
SELECT ALL - CAST ( NULL AS INTEGER ) col1, + MIN ( + ( - 27 ) ) * - 19 + COUNT ( * )
----
NULL
514

query II rowsort
SELECT - 96 * + 19 + + - 32 AS col2, - 20
----
-1856
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-4572
SELECT DISTINCT + 4 DIV + 54 * + 43 * + 85
----
0

skipif mysql # not compatible
query I rowsort label-4572
SELECT DISTINCT + 4 / + 54 * + 43 * + 85
----
0

query II rowsort
SELECT ALL + 21 AS col0, + 46
----
21
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4574
SELECT 23 / - ( + + 49 ) * + 70 * - CAST( NULL AS SIGNED ) * - 92 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4574
SELECT 23 / - ( + + 49 ) * + 70 * - CAST ( NULL AS INTEGER ) * - 92 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4575
SELECT 15 * + MAX( DISTINCT + + 39 )
----
585

skipif mysql # not compatible
query I rowsort label-4575
SELECT 15 * + MAX ( DISTINCT + + 39 )
----
585

query I rowsort
SELECT 18 + 40 AS col0
----
58

query I rowsort
SELECT 60 + + - 11
----
49

query I rowsort
SELECT ALL + ( + NULLIF ( - + ( - ( 14 ) ), - 72 + + + 40 ) ) + - + 4 AS col1
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4579
SELECT DISTINCT - COUNT( * ) + + 66 AS col0
----
65

skipif mysql # not compatible
query I rowsort label-4579
SELECT DISTINCT - COUNT ( * ) + + 66 AS col0
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4580
SELECT DISTINCT 32 + + CAST( 68 AS SIGNED ) AS col1
----
100

skipif mysql # not compatible
query I rowsort label-4580
SELECT DISTINCT 32 + + CAST ( 68 AS INTEGER ) AS col1
----
100

onlyif mysql # DIV for integer division: 
query I rowsort label-4581
SELECT ( 70 ) DIV 78
----
0

skipif mysql # not compatible
query I rowsort label-4581
SELECT ( 70 ) / 78
----
0

query I rowsort
SELECT ALL 38 + - 23 AS col1
----
15

query I rowsort
SELECT 39 - 95 AS col1
----
-56

query I rowsort
SELECT NULLIF ( 31, 42 ) * - 51 * 10
----
-15810

onlyif mysql # aggregate syntax: 
query I rowsort label-4585
SELECT 94 * MIN( + 34 ) * - + COUNT( * )
----
-3196

skipif mysql # not compatible
query I rowsort label-4585
SELECT 94 * MIN ( + 34 ) * - + COUNT ( * )
----
-3196

query I rowsort
SELECT DISTINCT 25 * - - 96 * + 80 * 6
----
1152000

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4587
SELECT DISTINCT 37 - + 28 - + 72 + + 69 + + NULLIF ( - 81, + 21 DIV - + 29 ) + - 17 + + 52 * 78 DIV COUNT( * ) * + ( - 90 ) * 23 AS col0
----
-8396012

skipif mysql # not compatible
query I rowsort label-4587
SELECT DISTINCT 37 - + 28 - + 72 + + 69 + + NULLIF ( - 81, + 21 / - + 29 ) + - 17 + + 52 * 78 / COUNT ( * ) * + ( - 90 ) * 23 AS col0
----
-8396012

onlyif mysql # aggregate syntax: 
query I rowsort label-4588
SELECT ( - COUNT( * ) ) - + 45
----
-46

skipif mysql # not compatible
query I rowsort label-4588
SELECT ( - COUNT ( * ) ) - + 45
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-4589
SELECT 23 * - COUNT( * ) + - NULLIF ( - NULLIF ( ( - 33 ), - - 51 ), + + 30 )
----
-56

skipif mysql # not compatible
query I rowsort label-4589
SELECT 23 * - COUNT ( * ) + - NULLIF ( - NULLIF ( ( - 33 ), - - 51 ), + + 30 )
----
-56

query II rowsort
SELECT + 78 * - 32, + 94 AS col1
----
-2496
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4591
SELECT - 45 / 1 - - 2 + - + 22 - - + 27 + CAST( + 25 AS SIGNED ) * + CAST( NULL AS SIGNED ) * - 42 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4591
SELECT - 45 / 1 - - 2 + - + 22 - - + 27 + CAST ( + 25 AS INTEGER ) * + CAST ( NULL AS INTEGER ) * - 42 AS col2
----
NULL

query I rowsort
SELECT 89 - - ( + 9 )
----
98

query I rowsort
SELECT ALL + 78 * - 72
----
-5616

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4594
SELECT DISTINCT - NULLIF ( - COALESCE ( - - COUNT( * ), - CAST( COALESCE ( + ( - + 8 ), + COUNT( * ) * - - COUNT( * ) ) AS SIGNED ) ), 50 )
----
1

skipif mysql # not compatible
query I rowsort label-4594
SELECT DISTINCT - NULLIF ( - COALESCE ( - - COUNT ( * ), - CAST ( COALESCE ( + ( - + 8 ), + COUNT ( * ) * - - COUNT ( * ) ) AS INTEGER ) ), 50 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4595
SELECT - 85 + - + CAST( - MAX( ALL 62 ) AS SIGNED ) DIV + + 80
----
-85

skipif mysql # not compatible
query I rowsort label-4595
SELECT - 85 + - + CAST ( - MAX ( ALL 62 ) AS INTEGER ) / + + 80
----
-85

query I rowsort
SELECT - 94 * + 35 AS col0
----
-3290

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4597
SELECT ALL - 17 * - + CAST( + 60 AS SIGNED ) col2
----
1020

skipif mysql # not compatible
query I rowsort label-4597
SELECT ALL - 17 * - + CAST ( + 60 AS INTEGER ) col2
----
1020

onlyif mysql # aggregate syntax: 
query I rowsort label-4598
SELECT + 78 * + 77 - + COUNT( * ) + + - 47 col0
----
5958

skipif mysql # not compatible
query I rowsort label-4598
SELECT + 78 * + 77 - + COUNT ( * ) + + - 47 col0
----
5958

query I rowsort
SELECT AVG ( - + 57 ) * - 37 + - + 93 + - 48 * - CASE - + 12 WHEN + 46 THEN 76 / - + 11 ELSE NULL END - + NULLIF ( + 99, + 75 ) * 75 AS col2
----
NULL

query I rowsort
SELECT ALL - 30 + - + 49 AS col0
----
-79

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-4601
SELECT - MAX( - 93 ) + 77 DIV - ( - 18 ), 21 * + + ( - CAST( NULL AS DECIMAL ) ) * + - COALESCE ( + + 45, + 46 ) AS col1
----
97
NULL

skipif mysql # not compatible
query II rowsort label-4601
SELECT - MAX ( - 93 ) + 77 / - ( - 18 ), 21 * + + ( - CAST ( NULL AS REAL ) ) * + - COALESCE ( + + 45, + 46 ) AS col1
----
97
NULL

query I rowsort
SELECT DISTINCT 91 * + 66 AS col2
----
6006

onlyif mysql # aggregate syntax: 
query I rowsort label-4603
SELECT DISTINCT COUNT( 31 )
----
1

skipif mysql # not compatible
query I rowsort label-4603
SELECT DISTINCT COUNT ( 31 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4604
SELECT ALL + 67 + + COUNT( * ) * 62 AS col0
----
129

skipif mysql # not compatible
query I rowsort label-4604
SELECT ALL + 67 + + COUNT ( * ) * 62 AS col0
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-4605
SELECT - COUNT( * ) + - 2 + + 19
----
16

skipif mysql # not compatible
query I rowsort label-4605
SELECT - COUNT ( * ) + - 2 + + 19
----
16

query I rowsort
SELECT DISTINCT 32 + + 80
----
112

query I rowsort
SELECT ALL 90 * 40
----
3600

query II rowsort
SELECT 40 col0, 23 + 49
----
40
72

onlyif mysql # aggregate syntax: 
query I rowsort label-4609
SELECT - SUM( ALL - 96 ) AS col2
----
96

skipif mysql # not compatible
query I rowsort label-4609
SELECT - SUM ( ALL - 96 ) AS col2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4610
SELECT + MAX( + + 94 ) + + 4 * + + 79 AS col2
----
410

skipif mysql # not compatible
query I rowsort label-4610
SELECT + MAX ( + + 94 ) + + 4 * + + 79 AS col2
----
410

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4611
SELECT DISTINCT CASE ( + - 80 ) WHEN - 17 THEN 92 * 90 WHEN + - 96 THEN NULL WHEN 35 THEN + 14 * + 38 * 10 ELSE 54 DIV - COUNT( * ) - - COUNT( * ) END AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-4611
SELECT DISTINCT CASE ( + - 80 ) WHEN - 17 THEN 92 * 90 WHEN + - 96 THEN NULL WHEN 35 THEN + 14 * + 38 * 10 ELSE 54 / - COUNT ( * ) - - COUNT ( * ) END AS col2
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-4612
SELECT - + ( 58 ) * + + COUNT( * ) AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-4612
SELECT - + ( 58 ) * + + COUNT ( * ) AS col2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4613
SELECT - 83 * COUNT( * ) col1
----
-83

skipif mysql # not compatible
query I rowsort label-4613
SELECT - 83 * COUNT ( * ) col1
----
-83

query I rowsort
SELECT + 53 * 35
----
1855

onlyif mysql # DIV for integer division: 
query I rowsort label-4615
SELECT ALL - 23 DIV + 46 * 33 - 66 AS col0
----
-66

skipif mysql # not compatible
query I rowsort label-4615
SELECT ALL - 23 / + 46 * 33 - 66 AS col0
----
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-4616
SELECT - NULLIF ( COUNT( * ), - - COUNT( * ) ), COUNT( * ) + - - 51 AS col2
----
NULL
52

skipif mysql # not compatible
query II rowsort label-4616
SELECT - NULLIF ( COUNT ( * ), - - COUNT ( * ) ), COUNT ( * ) + - - 51 AS col2
----
NULL
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4617
SELECT + + COUNT( * ) DIV + 12
----
0

skipif mysql # not compatible
query I rowsort label-4617
SELECT + + COUNT ( * ) / + 12
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4618
SELECT + + SUM( ALL 78 )
----
78

skipif mysql # not compatible
query I rowsort label-4618
SELECT + + SUM ( ALL 78 )
----
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4619
SELECT + COALESCE ( MAX( 3 ), 75 DIV - 83 + + + 7 ) DIV - 64 + 24 AS col1
----
24

skipif mysql # not compatible
query I rowsort label-4619
SELECT + COALESCE ( MAX ( 3 ), 75 / - 83 + + + 7 ) / - 64 + 24 AS col1
----
24

query I rowsort
SELECT ALL 72 * - 67 + 15
----
-4809

onlyif mysql # aggregate syntax: 
query I rowsort label-4621
SELECT NULLIF ( 52, - COUNT( * ) )
----
52

skipif mysql # not compatible
query I rowsort label-4621
SELECT NULLIF ( 52, - COUNT ( * ) )
----
52

query I rowsort
SELECT ALL 12 * - 65
----
-780

query I rowsort
SELECT DISTINCT 30 * - 75
----
-2250

query I rowsort
SELECT - CASE - - 92 WHEN + 77 + - 22 THEN + 4 WHEN + 89 + 50 THEN NULL ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4625
SELECT + + 10 * SUM( ALL + 32 )
----
320

skipif mysql # not compatible
query I rowsort label-4625
SELECT + + 10 * SUM ( ALL + 32 )
----
320

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4626
SELECT ALL - - 42 * ( - CAST( - 52 AS SIGNED ) ) + MIN( CASE + 75 WHEN + CASE + + ( + 43 ) WHEN 87 THEN NULL WHEN - 69 - 76 / - CAST( 55 + + 63 AS SIGNED ) THEN + CAST( NULL AS DECIMAL ) * 61 END THEN 89 ELSE NULL END ) + + 92 * - 4
----
NULL

skipif mysql # not compatible
query I rowsort label-4626
SELECT ALL - - 42 * ( - CAST ( - 52 AS INTEGER ) ) + MIN ( CASE + 75 WHEN + CASE + + ( + 43 ) WHEN 87 THEN NULL WHEN - 69 - 76 / - CAST ( 55 + + 63 AS INTEGER ) THEN + CAST ( NULL AS REAL ) * 61 END THEN 89 ELSE NULL END ) + + 92 * - 4
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4627
SELECT - 34 * 50 * COUNT( * ) * - CASE COUNT( * ) WHEN CAST( + 40 AS SIGNED ) THEN + 40 WHEN + 26 THEN - + COUNT( DISTINCT 76 ) ELSE NULL END - + 17
----
NULL

skipif mysql # not compatible
query I rowsort label-4627
SELECT - 34 * 50 * COUNT ( * ) * - CASE COUNT ( * ) WHEN CAST ( + 40 AS INTEGER ) THEN + 40 WHEN + 26 THEN - + COUNT ( DISTINCT 76 ) ELSE NULL END - + 17
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4628
SELECT ALL + - MIN( - 38 )
----
38

skipif mysql # not compatible
query I rowsort label-4628
SELECT ALL + - MIN ( - 38 )
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-4629
SELECT CASE + 82 WHEN - COUNT( * ) + + - NULLIF ( + 14, - 77 - + COUNT( * ) ) * 42 THEN - 6 ELSE + 66 + + 50 END AS col2
----
116

skipif mysql # not compatible
query I rowsort label-4629
SELECT CASE + 82 WHEN - COUNT ( * ) + + - NULLIF ( + 14, - 77 - + COUNT ( * ) ) * 42 THEN - 6 ELSE + 66 + + 50 END AS col2
----
116

onlyif mysql # DIV for integer division: 
query I rowsort label-4630
SELECT ALL 12 * - - NULLIF ( + 88, - + 75 ) * - + 31 * + 31 + - ( 57 ) DIV 78 + 60 AS col1
----
-1014756

skipif mysql # not compatible
query I rowsort label-4630
SELECT ALL 12 * - - NULLIF ( + 88, - + 75 ) * - + 31 * + 31 + - ( 57 ) / 78 + 60 AS col1
----
-1014756

onlyif mysql # DIV for integer division: 
query II rowsort label-4631
SELECT ALL 68 DIV - + 77 * + 60 * - 27 * 91 * - - 74, - 19 AS col0
----
0
-19

skipif mysql # not compatible
query II rowsort label-4631
SELECT ALL 68 / - + 77 * + 60 * - 27 * 91 * - - 74, - 19 AS col0
----
0
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-4632
SELECT + 31 * - 74 - - 4 DIV 62 * - 16
----
-2294

skipif mysql # not compatible
query I rowsort label-4632
SELECT + 31 * - 74 - - 4 / 62 * - 16
----
-2294

query I rowsort
SELECT ALL + 71 * + + 75
----
5325

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4634
SELECT ALL + CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) * COUNT( * ) + + 84 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4634
SELECT ALL + CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) * COUNT ( * ) + + 84 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4635
SELECT + 27 * MIN( - 76 ) col0
----
-2052

skipif mysql # not compatible
query I rowsort label-4635
SELECT + 27 * MIN ( - 76 ) col0
----
-2052

onlyif mysql # DIV for integer division: 
query I rowsort label-4636
SELECT + 44 DIV + 52
----
0

skipif mysql # not compatible
query I rowsort label-4636
SELECT + 44 / + 52
----
0

query I rowsort
SELECT ALL ( ( - 54 ) )
----
-54

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4638
SELECT - 40 col0, NULLIF ( + 79, - 81 ) + 22 DIV + COUNT( * ) col0
----
-40
101

skipif mysql # not compatible
query II rowsort label-4638
SELECT - 40 col0, NULLIF ( + 79, - 81 ) + 22 / + COUNT ( * ) col0
----
-40
101

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4639
SELECT - CAST( - + 75 AS SIGNED ) * + COUNT( * )
----
75

skipif mysql # not compatible
query I rowsort label-4639
SELECT - CAST ( - + 75 AS INTEGER ) * + COUNT ( * )
----
75

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4640
SELECT ALL CASE 24 WHEN + + 31 * + CAST( NULL AS SIGNED ) THEN + 50 + - 87 - + CAST( NULL AS DECIMAL ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4640
SELECT ALL CASE 24 WHEN + + 31 * + CAST ( NULL AS INTEGER ) THEN + 50 + - 87 - + CAST ( NULL AS REAL ) END
----
NULL

query II rowsort
SELECT 31 col1, + 73 AS col1
----
31
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4642
SELECT DISTINCT ( + COUNT( * ) ) AS col2, + CAST( NULL AS SIGNED ) AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-4642
SELECT DISTINCT ( + COUNT ( * ) ) AS col2, + CAST ( NULL AS INTEGER ) AS col2
----
1
NULL

query II rowsort
SELECT - 54 - - 95, 41 + - 93 + - - 94 AS col2
----
41
42

query II rowsort
SELECT 12 AS col1, 20 + - + ( 35 ) - - 74
----
12
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4645
SELECT - NULLIF ( + COUNT( DISTINCT 60 ), + CAST( 3 AS SIGNED ) + - CASE - 81 WHEN + 58 THEN + 26 + - - 92 WHEN - 25 THEN NULL ELSE CASE - 69 WHEN CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) THEN NULL ELSE - CAST( - 49 AS SIGNED ) END END ) + + COUNT( * ) * + 88
----
87

skipif mysql # not compatible
query I rowsort label-4645
SELECT - NULLIF ( + COUNT ( DISTINCT 60 ), + CAST ( 3 AS INTEGER ) + - CASE - 81 WHEN + 58 THEN + 26 + - - 92 WHEN - 25 THEN NULL ELSE CASE - 69 WHEN CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) THEN NULL ELSE - CAST ( - 49 AS INTEGER ) END END ) + + COUNT ( * ) * + 88
----
87

query I rowsort
SELECT + - 82 * + + 97 AS col1
----
-7954

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4647
SELECT - 4 + COUNT( * ) + 96 - - 55 - - 76 DIV + 78
----
148

skipif mysql # not compatible
query I rowsort label-4647
SELECT - 4 + COUNT ( * ) + 96 - - 55 - - 76 / + 78
----
148

onlyif mysql # aggregate syntax: 
query II rowsort label-4648
SELECT ALL + COUNT( * ) AS col1, 8 + + 57
----
1
65

skipif mysql # not compatible
query II rowsort label-4648
SELECT ALL + COUNT ( * ) AS col1, 8 + + 57
----
1
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4649
SELECT - + 5 - CASE AVG ( DISTINCT - - COALESCE ( CAST( NULL AS SIGNED ), + 5 * - 6 + + + 29, - 57 - - 42 + - 48 / 44 ) ) WHEN - COUNT( * ) + 93 THEN NULL WHEN 2 / 55 + - 40 THEN - 31 ELSE - CASE 29 WHEN + COUNT( * ) THEN 38 * - ( 85 * + 92 ) END + 34 END * + 6 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4649
SELECT - + 5 - CASE AVG ( DISTINCT - - COALESCE ( CAST ( NULL AS INTEGER ), + 5 * - 6 + + + 29, - 57 - - 42 + - 48 / 44 ) ) WHEN - COUNT ( * ) + 93 THEN NULL WHEN 2 / 55 + - 40 THEN - 31 ELSE - CASE 29 WHEN + COUNT ( * ) THEN 38 * - ( 85 * + 92 ) END + 34 END * + 6 AS col2
----
NULL

query I rowsort
SELECT ALL - - 65 * - 66 + + 41 AS col1
----
-4249

query II rowsort
SELECT + - 30 + + 4 * + 94 + 26 AS col0, - 63 AS col1
----
372
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4652
SELECT ALL + CASE - + 34 WHEN - 88 + + 93 + + MIN( DISTINCT + 15 ) THEN - 62 * + 85 WHEN + 74 THEN 86 - - + COALESCE ( 64, 90 * + COUNT( * ) ) / CASE 73 WHEN - 40 THEN AVG ( ALL CAST( NULL AS SIGNED ) ) ELSE NULL END WHEN CAST( NULL AS SIGNED ) + ( + 70 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4652
SELECT ALL + CASE - + 34 WHEN - 88 + + 93 + + MIN ( DISTINCT + 15 ) THEN - 62 * + 85 WHEN + 74 THEN 86 - - + COALESCE ( 64, 90 * + COUNT ( * ) ) / CASE 73 WHEN - 40 THEN AVG ( ALL CAST ( NULL AS INTEGER ) ) ELSE NULL END WHEN CAST ( NULL AS INTEGER ) + ( + 70 ) THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4653
SELECT ALL - + 85 DIV + 23 + + - 94 AS col0
----
-97

skipif mysql # not compatible
query I rowsort label-4653
SELECT ALL - + 85 / + 23 + + - 94 AS col0
----
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4654
SELECT + SUM( ALL + 4 ) * + 40 + 9 + + 80 * - 53 + 65 * 95 DIV - 26 AS col2
----
-4308

skipif mysql # not compatible
query I rowsort label-4654
SELECT + SUM ( ALL + 4 ) * + 40 + 9 + + 80 * - 53 + 65 * 95 / - 26 AS col2
----
-4308

query II rowsort
SELECT 3, + 35 + + - 57 + + 91 + - + 48 + - 73 - 85 + - + 10 AS col2
----
3
-147

onlyif mysql # aggregate syntax: 
query II rowsort label-4656
SELECT + - ( + 32 ) * + ( - 68 ), + COUNT( * ) + + + 84 * + 89 AS col1
----
2176
7477

skipif mysql # not compatible
query II rowsort label-4656
SELECT + - ( + 32 ) * + ( - 68 ), + COUNT ( * ) + + + 84 * + 89 AS col1
----
2176
7477

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4657
SELECT - + 70 + + COUNT( * ) * 0 - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4657
SELECT - + 70 + + COUNT ( * ) * 0 - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4658
SELECT 95 * COUNT( * ) + + - 70 / + - NULLIF ( + CAST( NULL AS SIGNED ), - 11 * - COUNT( * ) ) * + 12 / - 69 + 26 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4658
SELECT 95 * COUNT ( * ) + + - 70 / + - NULLIF ( + CAST ( NULL AS INTEGER ), - 11 * - COUNT ( * ) ) * + 12 / - 69 + 26 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4659
SELECT + 90 - - COUNT( * ) DIV - - 72 AS col2
----
90

skipif mysql # not compatible
query I rowsort label-4659
SELECT + 90 - - COUNT ( * ) / - - 72 AS col2
----
90

query I rowsort
SELECT ALL - - 11 + + - 21 * - 95 AS col0
----
2006

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4661
SELECT DISTINCT - + COUNT( * ) AS col2, 12 DIV + - 10 + + CASE + - 66 WHEN - 54 THEN NULL WHEN + NULLIF ( + 54, 41 ) THEN NULL ELSE 60 END AS col2
----
-1
59

skipif mysql # not compatible
query II rowsort label-4661
SELECT DISTINCT - + COUNT ( * ) AS col2, 12 / + - 10 + + CASE + - 66 WHEN - 54 THEN NULL WHEN + NULLIF ( + 54, 41 ) THEN NULL ELSE 60 END AS col2
----
-1
59

onlyif mysql # aggregate syntax: 
query II rowsort label-4662
SELECT ALL - 52, - 10 * + - COUNT( * ) AS col2
----
-52
10

skipif mysql # not compatible
query II rowsort label-4662
SELECT ALL - 52, - 10 * + - COUNT ( * ) AS col2
----
-52
10

query I rowsort
SELECT - + 53 * + 75 + 95
----
-3880

onlyif mysql # aggregate syntax: 
query I rowsort label-4664
SELECT ALL - MAX( - 54 )
----
54

skipif mysql # not compatible
query I rowsort label-4664
SELECT ALL - MAX ( - 54 )
----
54

query I rowsort
SELECT 53 + + 87 AS col1
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-4666
SELECT DISTINCT 62 * - - COALESCE ( - COUNT( * ), + 69 * + ( + 69 ) )
----
-62

skipif mysql # not compatible
query I rowsort label-4666
SELECT DISTINCT 62 * - - COALESCE ( - COUNT ( * ), + 69 * + ( + 69 ) )
----
-62

query I rowsort
SELECT ALL ( + 20 ) + - 39
----
-19

query I rowsort
SELECT 43 * 16
----
688

query II rowsort
SELECT 78 * 59 AS col2, 68
----
4602
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4670
SELECT ALL MIN( 21 ) - + 25 + 77 * ( - + 84 )
----
-6472

skipif mysql # not compatible
query I rowsort label-4670
SELECT ALL MIN ( 21 ) - + 25 + 77 * ( - + 84 )
----
-6472

query I rowsort
SELECT DISTINCT - 95 * - 29 AS col1
----
2755

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4672
SELECT DISTINCT 14 DIV + COUNT( * ) col2, ( - ( 81 ) ) * 49 + 44 - 84
----
14
-4009

skipif mysql # not compatible
query II rowsort label-4672
SELECT DISTINCT 14 / + COUNT ( * ) col2, ( - ( 81 ) ) * 49 + 44 - 84
----
14
-4009

query I rowsort
SELECT 94 + + 39 col2
----
133

query I rowsort
SELECT ALL 49 * - 97 * - 46 col2
----
218638

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4675
SELECT 74 + CAST( + + 96 AS SIGNED ) + - 90 + - - 65 AS col2
----
145

skipif mysql # not compatible
query I rowsort label-4675
SELECT 74 + CAST ( + + 96 AS INTEGER ) + - 90 + - - 65 AS col2
----
145

query I rowsort
SELECT DISTINCT - 32 * + 45 AS col1
----
-1440

query I rowsort
SELECT 19 + 61
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4678
SELECT MIN( + + 40 ) + + COUNT( * ) AS col0
----
41

skipif mysql # not compatible
query I rowsort label-4678
SELECT MIN ( + + 40 ) + + COUNT ( * ) AS col0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4679
SELECT ALL - NULLIF ( + 21, - MIN( ALL 9 ) ) AS col1
----
-21

skipif mysql # not compatible
query I rowsort label-4679
SELECT ALL - NULLIF ( + 21, - MIN ( ALL 9 ) ) AS col1
----
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4680
SELECT ALL - COUNT( * ) + COUNT( + 7 ) + + + 4 * 78 DIV + COUNT( * ) col0
----
312

skipif mysql # not compatible
query I rowsort label-4680
SELECT ALL - COUNT ( * ) + COUNT ( + 7 ) + + + 4 * 78 / + COUNT ( * ) col0
----
312

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4681
SELECT COUNT( * ) + COALESCE ( + + 40, 90 DIV - 24 * - ( - 32 ), 5 + CAST( MAX( + 28 ) AS SIGNED ) * - - 90 + + 58 ) AS col0
----
41

skipif mysql # not compatible
query I rowsort label-4681
SELECT COUNT ( * ) + COALESCE ( + + 40, 90 / - 24 * - ( - 32 ), 5 + CAST ( MAX ( + 28 ) AS INTEGER ) * - - 90 + + 58 ) AS col0
----
41

query I rowsort
SELECT DISTINCT + - 1 + + 17
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4683
SELECT ALL + CASE - 15 WHEN + - 15 * + - 63 * - - COUNT( * ) + - 86 + - 89 * - COUNT( * ) * 78 * - - 89 THEN + 55 + - COALESCE ( + 23, COALESCE ( + 45, ( + 98 ), 41 * + ( - 14 ) ), + 83 + - CAST( NULL AS SIGNED ) ) END + 51 / + CAST( + 69 + 18 AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4683
SELECT ALL + CASE - 15 WHEN + - 15 * + - 63 * - - COUNT ( * ) + - 86 + - 89 * - COUNT ( * ) * 78 * - - 89 THEN + 55 + - COALESCE ( + 23, COALESCE ( + 45, ( + 98 ), 41 * + ( - 14 ) ), + 83 + - CAST ( NULL AS INTEGER ) ) END + 51 / + CAST ( + 69 + 18 AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL + + 50 + + ( - 85 ) * + - 33
----
2855

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4685
SELECT - CASE + - 82 WHEN + 84 * - COALESCE ( 59, + COUNT( - 58 ), - - NULLIF ( - - 49, 23 ) ) THEN NULL WHEN COUNT( ALL + - 94 ) THEN - CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4685
SELECT - CASE + - 82 WHEN + 84 * - COALESCE ( 59, + COUNT ( - 58 ), - - NULLIF ( - - 49, 23 ) ) THEN NULL WHEN COUNT ( ALL + - 94 ) THEN - CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4686
SELECT 54 * + CAST( - 90 AS SIGNED ) + + + COUNT( + 13 ) * - 70 AS col0
----
-4930

skipif mysql # not compatible
query I rowsort label-4686
SELECT 54 * + CAST ( - 90 AS INTEGER ) + + + COUNT ( + 13 ) * - 70 AS col0
----
-4930

onlyif mysql # aggregate syntax: 
query I rowsort label-4687
SELECT ALL - 38 + + - COUNT( + 89 ) * + 15 AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-4687
SELECT ALL - 38 + + - COUNT ( + 89 ) * + 15 AS col0
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-4688
SELECT ALL - NULLIF ( + COUNT( * ), + + SUM( 11 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4688
SELECT ALL - NULLIF ( + COUNT ( * ), + + SUM ( 11 ) )
----
-1

query I rowsort
SELECT ALL + 94 * - - 56
----
5264

query I rowsort
SELECT ALL - + ( 65 )
----
-65

onlyif mysql # aggregate syntax: 
query II rowsort label-4691
SELECT ALL - 80 - - SUM( ALL + 64 ), 90 col2
----
-16
90

skipif mysql # not compatible
query II rowsort label-4691
SELECT ALL - 80 - - SUM ( ALL + 64 ), 90 col2
----
-16
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4692
SELECT CASE - + COALESCE ( - 87, - + ( - + CAST( - COUNT( * ) AS SIGNED ) ) / AVG ( ALL - - ( + 43 ) ) + 21 ) WHEN + 38 THEN NULL ELSE + COALESCE ( - 56, + SUM( + 43 ) * 84, 31 ) END * + 87
----
-4872

skipif mysql # not compatible
query I rowsort label-4692
SELECT CASE - + COALESCE ( - 87, - + ( - + CAST ( - COUNT ( * ) AS INTEGER ) ) / AVG ( ALL - - ( + 43 ) ) + 21 ) WHEN + 38 THEN NULL ELSE + COALESCE ( - 56, + SUM ( + 43 ) * 84, 31 ) END * + 87
----
-4872

query II rowsort
SELECT ALL - 17 AS col0, 42 col0
----
-17
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4694
SELECT 94 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4694
SELECT 94 + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 67 - + COALESCE ( + 46, - 87 + + 88, - 67 + + - 33 ) * - 88
----
4115

query I rowsort
SELECT 78 * + ( 27 ) AS col2
----
2106

onlyif mysql # aggregate syntax: 
query I rowsort label-4697
SELECT + COUNT( + + 18 )
----
1

skipif mysql # not compatible
query I rowsort label-4697
SELECT + COUNT ( + + 18 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4698
SELECT 68 * COUNT( DISTINCT 46 ) DIV SUM( DISTINCT 99 )
----
0

skipif mysql # not compatible
query I rowsort label-4698
SELECT 68 * COUNT ( DISTINCT 46 ) / SUM ( DISTINCT 99 )
----
0

query I rowsort
SELECT 77 + 70 AS col1
----
147

onlyif mysql # aggregate syntax: 
query II rowsort label-4700
SELECT DISTINCT COUNT( + - 15 ) + - + 97 AS col2, - 70 col2
----
-96
-70

skipif mysql # not compatible
query II rowsort label-4700
SELECT DISTINCT COUNT ( + - 15 ) + - + 97 AS col2, - 70 col2
----
-96
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-4701
SELECT + COUNT( * ) * + + COUNT( * ) + 46 + + ( + - ( + 42 ) )
----
5

skipif mysql # not compatible
query I rowsort label-4701
SELECT + COUNT ( * ) * + + COUNT ( * ) + 46 + + ( + - ( + 42 ) )
----
5

query I rowsort
SELECT 22 - COALESCE ( - + 35, + + 10 ) AS col2
----
57

query I rowsort
SELECT ALL + 74 + - 6 AS col0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4704
SELECT DISTINCT + 16 + - 17 + + 62 - + - 41 - - - 15 * - CASE 21 WHEN - SUM( ALL 20 ) + - COALESCE ( - + COUNT( * ), - 62 * + - 59 + 95 ) + - 76 * + 68 THEN NULL ELSE 86 END AS col1
----
1392

skipif mysql # not compatible
query I rowsort label-4704
SELECT DISTINCT + 16 + - 17 + + 62 - + - 41 - - - 15 * - CASE 21 WHEN - SUM ( ALL 20 ) + - COALESCE ( - + COUNT ( * ), - 62 * + - 59 + 95 ) + - 76 * + 68 THEN NULL ELSE 86 END AS col1
----
1392

query I rowsort
SELECT ALL + 94 + 55 col1
----
149

query I rowsort
SELECT 43 * - 70
----
-3010

onlyif mysql # aggregate syntax: 
query I rowsort label-4707
SELECT - 61 + COUNT( * ) AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-4707
SELECT - 61 + COUNT ( * ) AS col0
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-4708
SELECT COUNT( * ) + 75 + + 80 * 4
----
396

skipif mysql # not compatible
query I rowsort label-4708
SELECT COUNT ( * ) + 75 + + 80 * 4
----
396

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4709
SELECT + NULLIF ( + CAST( NULL AS SIGNED ), - COUNT( * ) ) * CASE 46 WHEN - + 98 * - - 45 THEN - COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4709
SELECT + NULLIF ( + CAST ( NULL AS INTEGER ), - COUNT ( * ) ) * CASE 46 WHEN - + 98 * - - 45 THEN - COUNT ( * ) END AS col2
----
NULL

query II rowsort
SELECT 32, 88 * 91 AS col2
----
32
8008

query I rowsort
SELECT ALL - 59 * + 3 * + + 42 * - 54 AS col0
----
401436

onlyif mysql # aggregate syntax: 
query I rowsort label-4712
SELECT 69 + - SUM( DISTINCT - 55 ) * - - 94
----
5239

skipif mysql # not compatible
query I rowsort label-4712
SELECT 69 + - SUM ( DISTINCT - 55 ) * - - 94
----
5239

query I rowsort
SELECT + + 78 + + 66 AS col0
----
144

onlyif mysql # aggregate syntax: 
query II rowsort label-4714
SELECT - 11 * - 96 + + - 76 AS col0, - COUNT( * ) + - COUNT( * ) AS col1
----
980
-2

skipif mysql # not compatible
query II rowsort label-4714
SELECT - 11 * - 96 + + - 76 AS col0, - COUNT ( * ) + - COUNT ( * ) AS col1
----
980
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4715
SELECT ALL - 98 * NULLIF ( - 77, - 58 ) + + 55 * - COALESCE ( + - COUNT( * ), - - NULLIF ( + 46, - - COUNT( DISTINCT - + 46 ) + - - 95 ) ) + + 14 * COUNT( * ) AS col1
----
7615

skipif mysql # not compatible
query I rowsort label-4715
SELECT ALL - 98 * NULLIF ( - 77, - 58 ) + + 55 * - COALESCE ( + - COUNT ( * ), - - NULLIF ( + 46, - - COUNT ( DISTINCT - + 46 ) + - - 95 ) ) + + 14 * COUNT ( * ) AS col1
----
7615

query I rowsort
SELECT DISTINCT + 40 - 36 AS col0
----
4

query II rowsort
SELECT DISTINCT - 79 AS col0, - 83 * - 82
----
-79
6806

query I rowsort
SELECT - 38 + + 61 AS col2
----
23

query II rowsort
SELECT ALL - 80 * - 10 - + - ( + ( 61 ) ) - + 69 AS col1, 57 + + 0 * + 31 + + 8
----
792
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4720
SELECT + + 30 * + + 47 + + - ( + - 46 ) + - COUNT( * )
----
1455

skipif mysql # not compatible
query I rowsort label-4720
SELECT + + 30 * + + 47 + + - ( + - 46 ) + - COUNT ( * )
----
1455

onlyif mysql # aggregate syntax: 
query I rowsort label-4721
SELECT - + 21 * COUNT( * ) AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-4721
SELECT - + 21 * COUNT ( * ) AS col2
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-4722
SELECT - 4 + CASE - - 16 WHEN 99 + + 35 * + + COUNT( * ) * + CASE - - ( + - 45 ) WHEN COUNT( + 67 ) + - 27 + - - AVG ( DISTINCT + 16 ) + - 70 * + 83 THEN NULL WHEN - 84 THEN + COUNT( * ) END - 89 THEN NULL WHEN - ( 97 ) / 63 + - MIN( + ( 3 ) ) THEN 50 + - SUM( ( 30 ) ) * 8 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4722
SELECT - 4 + CASE - - 16 WHEN 99 + + 35 * + + COUNT ( * ) * + CASE - - ( + - 45 ) WHEN COUNT ( + 67 ) + - 27 + - - AVG ( DISTINCT + 16 ) + - 70 * + 83 THEN NULL WHEN - 84 THEN + COUNT ( * ) END - 89 THEN NULL WHEN - ( 97 ) / 63 + - MIN ( + ( 3 ) ) THEN 50 + - SUM ( ( 30 ) ) * 8 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + 22 * - 66 * + 58
----
-84216

onlyif mysql # aggregate syntax: 
query I rowsort label-4724
SELECT - ( + COUNT( * ) ) - - 55 + - + 52 * + MIN( DISTINCT + - 68 ) * + 72 * + 93 + - 99
----
23677011

skipif mysql # not compatible
query I rowsort label-4724
SELECT - ( + COUNT ( * ) ) - - 55 + - + 52 * + MIN ( DISTINCT + - 68 ) * + 72 * + 93 + - 99
----
23677011

onlyif mysql # aggregate syntax: 
query I rowsort label-4725
SELECT - SUM( ALL - 54 ) * + 7 AS col2
----
378

skipif mysql # not compatible
query I rowsort label-4725
SELECT - SUM ( ALL - 54 ) * + 7 AS col2
----
378

onlyif mysql # DIV for integer division: 
query I rowsort label-4726
SELECT DISTINCT + 40 DIV 43 * + + 98 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4726
SELECT DISTINCT + 40 / 43 * + + 98 AS col2
----
0

query I rowsort
SELECT DISTINCT + 95 * + 24
----
2280

onlyif mysql # DIV for integer division: 
query I rowsort label-4728
SELECT + 5 DIV 45 + - 68 + - 53 col1
----
-121

skipif mysql # not compatible
query I rowsort label-4728
SELECT + 5 / 45 + - 68 + - 53 col1
----
-121

query I rowsort
SELECT + 18 * 8 * + 73 + + - ( + ( + 50 ) ) + 26
----
10488

onlyif mysql # DIV for integer division: 
query I rowsort label-4730
SELECT + 20 DIV 92
----
0

skipif mysql # not compatible
query I rowsort label-4730
SELECT + 20 / 92
----
0

query I rowsort
SELECT + NULLIF ( 48, - + 96 + 45 + + + 69 )
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4732
SELECT ALL ( - COUNT( * ) ) * NULLIF ( + 35, 77 * 92 - - - 73 + - 40 + - COUNT( * ) + + - 78 + 40 DIV - - CAST( + ( 21 ) AS SIGNED ) ) + - 76 DIV + 44
----
-36

skipif mysql # not compatible
query I rowsort label-4732
SELECT ALL ( - COUNT ( * ) ) * NULLIF ( + 35, 77 * 92 - - - 73 + - 40 + - COUNT ( * ) + + - 78 + 40 / - - CAST ( + ( 21 ) AS INTEGER ) ) + - 76 / + 44
----
-36

query I rowsort
SELECT ALL + 15 + - 97
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-4734
SELECT DISTINCT - 60 + ( + CASE + + 38 WHEN - - 77 THEN NULL WHEN + 46 THEN NULL ELSE + COUNT( * ) END ) * - 88 * 93
----
-8244

skipif mysql # not compatible
query I rowsort label-4734
SELECT DISTINCT - 60 + ( + CASE + + 38 WHEN - - 77 THEN NULL WHEN + 46 THEN NULL ELSE + COUNT ( * ) END ) * - 88 * 93
----
-8244

onlyif mysql # aggregate syntax: 
query I rowsort label-4735
SELECT DISTINCT + COUNT( * ) + 92 + - 1
----
92

skipif mysql # not compatible
query I rowsort label-4735
SELECT DISTINCT + COUNT ( * ) + 92 + - 1
----
92

query I rowsort
SELECT ALL ( + 15 ) + + - 47 AS col0
----
-32

query I rowsort
SELECT 18 * - + NULLIF ( + ( 69 ), - 91 ) * - 87 + - 51 * - 82 AS col1
----
112236

query II rowsort
SELECT ALL 67 * + 98 AS col2, 17
----
6566
17

onlyif mysql # aggregate syntax: 
query I rowsort label-4739
SELECT + COUNT( * ) + + COUNT( * ) * - ( - + 88 ) col2
----
89

skipif mysql # not compatible
query I rowsort label-4739
SELECT + COUNT ( * ) + + COUNT ( * ) * - ( - + 88 ) col2
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4740
SELECT + - 52 + NULLIF ( + 65, + 10 ) + - + CAST( 22 AS SIGNED ) AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-4740
SELECT + - 52 + NULLIF ( + 65, + 10 ) + - + CAST ( 22 AS INTEGER ) AS col0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4741
SELECT - + MAX( ALL + 68 ) AS col1
----
-68

skipif mysql # not compatible
query I rowsort label-4741
SELECT - + MAX ( ALL + 68 ) AS col1
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-4742
SELECT ALL 12 + - 17 * + - COUNT( * ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-4742
SELECT ALL 12 + - 17 * + - COUNT ( * ) AS col2
----
29

query I rowsort
SELECT DISTINCT + NULLIF ( - 11, 12 ) AS col1
----
-11

query I rowsort
SELECT DISTINCT - ( ( + 91 ) ) - - 29 + - 9 * + 75
----
-737

onlyif mysql # aggregate syntax: 
query I rowsort label-4745
SELECT + 22 + + COUNT( DISTINCT + 53 ) col0
----
23

skipif mysql # not compatible
query I rowsort label-4745
SELECT + 22 + + COUNT ( DISTINCT + 53 ) col0
----
23

query I rowsort
SELECT + 66 * - 3
----
-198

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4747
SELECT - - COUNT( + 3 ) * - ( - 63 ) DIV + - 51 + + 44 + - COUNT( * )
----
42

skipif mysql # not compatible
query I rowsort label-4747
SELECT - - COUNT ( + 3 ) * - ( - 63 ) / + - 51 + + 44 + - COUNT ( * )
----
42

query I rowsort
SELECT DISTINCT + 45 * - 85 * - + 95 * - 56 + - + 41
----
-20349041

onlyif mysql # aggregate syntax: 
query I rowsort label-4749
SELECT ALL + NULLIF ( + COUNT( + 33 ), + 87 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4749
SELECT ALL + NULLIF ( + COUNT ( + 33 ), + 87 ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4750
SELECT - + 75 + + 15 - - - 65 DIV - 37 - 91 col0
----
-150

skipif mysql # not compatible
query I rowsort label-4750
SELECT - + 75 + + 15 - - - 65 / - 37 - 91 col0
----
-150

onlyif mysql # aggregate syntax: 
query I rowsort label-4751
SELECT - - COUNT( * ) * + 3 + - 7 AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-4751
SELECT - - COUNT ( * ) * + 3 + - 7 AS col1
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-4752
SELECT + NULLIF ( + - 29, - COALESCE ( - 46, - 25 + - 2 * COUNT( * ), - 81 ) * 12 * - MIN( - 61 ) + + + COUNT( + 28 ) / - 10 )
----
-29

skipif mysql # not compatible
query I rowsort label-4752
SELECT + NULLIF ( + - 29, - COALESCE ( - 46, - 25 + - 2 * COUNT ( * ), - 81 ) * 12 * - MIN ( - 61 ) + + + COUNT ( + 28 ) / - 10 )
----
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4753
SELECT CAST( NULL AS SIGNED ) * + COUNT( * ) * + 46 + MIN( - 29 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4753
SELECT CAST ( NULL AS INTEGER ) * + COUNT ( * ) * + 46 + MIN ( - 29 ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT 4 * + 41 AS col1
----
164

query I rowsort
SELECT ALL ( - + 23 ) * + ( - 78 ) * - 5 + - 80
----
-9050

onlyif mysql # aggregate syntax: 
query I rowsort label-4756
SELECT DISTINCT + COALESCE ( ( + COUNT( DISTINCT - + 61 ) ), - - 53 )
----
1

skipif mysql # not compatible
query I rowsort label-4756
SELECT DISTINCT + COALESCE ( ( + COUNT ( DISTINCT - + 61 ) ), - - 53 )
----
1

query I rowsort
SELECT DISTINCT 97 * + 47 AS col2
----
4559

query I rowsort
SELECT ALL + ( + 36 ) AS col0
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4759
SELECT - CAST( NULL AS SIGNED ) * - 5 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4759
SELECT - CAST ( NULL AS INTEGER ) * - 5 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4760
SELECT DISTINCT 89 / + 6 + - ( - 14 ) + + - 81 + + - NULLIF ( + ( + - 62 ), - 1 * 27 + + 12 + + MAX( ALL - 47 ) ) * - 47 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4760
SELECT DISTINCT 89 / + 6 + - ( - 14 ) + + - 81 + + - NULLIF ( + ( + - 62 ), - 1 * 27 + + 12 + + MAX ( ALL - 47 ) ) * - 47 AS col0
----
NULL

query I rowsort
SELECT ( + 66 ) col1
----
66

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4762
SELECT ALL CAST( - 67 AS SIGNED ) DIV 72 + - 67 AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-4762
SELECT ALL CAST ( - 67 AS INTEGER ) / 72 + - 67 AS col1
----
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4763
SELECT - CAST( NULL AS SIGNED ) * - - 51
----
NULL

skipif mysql # not compatible
query I rowsort label-4763
SELECT - CAST ( NULL AS INTEGER ) * - - 51
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4764
SELECT - COUNT( DISTINCT 35 ) + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4764
SELECT - COUNT ( DISTINCT 35 ) + + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4765
SELECT DISTINCT + CASE + 46 WHEN - 25 THEN NULL ELSE + CASE - - COALESCE ( + COUNT( * ), + 1 + + 95 ) WHEN - 32 THEN NULL ELSE NULLIF ( + NULLIF ( - - COUNT( * ), - + NULLIF ( - - 47, - 58 ) ), 30 ) * + MIN( 99 ) + + 53 END + - 26 END
----
126

skipif mysql # not compatible
query I rowsort label-4765
SELECT DISTINCT + CASE + 46 WHEN - 25 THEN NULL ELSE + CASE - - COALESCE ( + COUNT ( * ), + 1 + + 95 ) WHEN - 32 THEN NULL ELSE NULLIF ( + NULLIF ( - - COUNT ( * ), - + NULLIF ( - - 47, - 58 ) ), 30 ) * + MIN ( 99 ) + + 53 END + - 26 END
----
126

onlyif mysql # DIV for integer division: 
query I rowsort label-4766
SELECT COALESCE ( + ( + - 29 ), - ( - ( - COALESCE ( 16, - 86 ) ) ) DIV 55 ) AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-4766
SELECT COALESCE ( + ( + - 29 ), - ( - ( - COALESCE ( 16, - 86 ) ) ) / 55 ) AS col0
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-4767
SELECT ALL - 56 * + 10 * - COUNT( * )
----
560

skipif mysql # not compatible
query I rowsort label-4767
SELECT ALL - 56 * + 10 * - COUNT ( * )
----
560

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4768
SELECT ALL CAST( - - COUNT( * ) AS SIGNED ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4768
SELECT ALL CAST ( - - COUNT ( * ) AS INTEGER ) AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4769
SELECT - - COUNT( * ) + + 48 DIV + 22 + + 23
----
26

skipif mysql # not compatible
query I rowsort label-4769
SELECT - - COUNT ( * ) + + 48 / + 22 + + 23
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-4770
SELECT 50 DIV - 38 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4770
SELECT 50 / - 38 AS col2
----
-1

query I rowsort
SELECT DISTINCT - + 31 - 42
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-4772
SELECT ALL + MIN( - - 85 )
----
85

skipif mysql # not compatible
query I rowsort label-4772
SELECT ALL + MIN ( - - 85 )
----
85

query I rowsort
SELECT DISTINCT - 73 - + + 85 AS col2
----
-158

onlyif mysql # aggregate syntax: 
query II rowsort label-4774
SELECT - SUM( ALL 78 ) * - 8, - 6 - 93 * 92 AS col1
----
624
-8562

skipif mysql # not compatible
query II rowsort label-4774
SELECT - SUM ( ALL 78 ) * - 8, - 6 - 93 * 92 AS col1
----
624
-8562

onlyif mysql # aggregate syntax: 
query I rowsort label-4775
SELECT SUM( + - 26 ) AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-4775
SELECT SUM ( + - 26 ) AS col2
----
-26

query I rowsort
SELECT DISTINCT - + 39 - + - 12 + + - 5 AS col2
----
-32

query I rowsort
SELECT - ( CASE - 47 WHEN - + 35 + 66 + - - 17 THEN - 17 + 60 WHEN 28 - 65 THEN ( + 93 ) ELSE 33 * + 81 + - - 38 * 92 END )
----
-6169

query II rowsort
SELECT 61 AS col0, 68 col2
----
61
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4779
SELECT - 73 + + COUNT( * ) + + COUNT( * ) AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-4779
SELECT - 73 + + COUNT ( * ) + + COUNT ( * ) AS col2
----
-71

query I rowsort
SELECT 1 + + + 90 + + 2 + + - 10 - - 26
----
109

query II rowsort
SELECT - 12 AS col1, 44 * - - 16
----
-12
704

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4782
SELECT DISTINCT 86 DIV + + COUNT( * )
----
86

skipif mysql # not compatible
query I rowsort label-4782
SELECT DISTINCT 86 / + + COUNT ( * )
----
86

onlyif mysql # aggregate syntax: 
query II rowsort label-4783
SELECT ALL 68, COUNT( * ) + + 20 - - 34 col1
----
68
55

skipif mysql # not compatible
query II rowsort label-4783
SELECT ALL 68, COUNT ( * ) + + 20 - - 34 col1
----
68
55

onlyif mysql # aggregate syntax: 
query II rowsort label-4784
SELECT + 23 AS col2, + ( 33 ) + - 24 + - COUNT( ALL 23 ) * + + 63 * + CASE COUNT( * ) WHEN ( - + 52 ) THEN - - 7 - 95 END
----
23
NULL

skipif mysql # not compatible
query II rowsort label-4784
SELECT + 23 AS col2, + ( 33 ) + - 24 + - COUNT ( ALL 23 ) * + + 63 * + CASE COUNT ( * ) WHEN ( - + 52 ) THEN - - 7 - 95 END
----
23
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4785
SELECT + 72 * + ( + COUNT( * ) ) + + + NULLIF ( + ( + - 47 ), 11 * + NULLIF ( - COUNT( * ), COALESCE ( - + 22, 21 + - - ( + 17 ) / 5 + - - 59 ) ) ) AS col0
----
25

skipif mysql # not compatible
query I rowsort label-4785
SELECT + 72 * + ( + COUNT ( * ) ) + + + NULLIF ( + ( + - 47 ), 11 * + NULLIF ( - COUNT ( * ), COALESCE ( - + 22, 21 + - - ( + 17 ) / 5 + - - 59 ) ) ) AS col0
----
25

query I rowsort
SELECT ALL 9 + 26 AS col1
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-4787
SELECT + 97 DIV - 60 + - 55 AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-4787
SELECT + 97 / - 60 + - 55 AS col2
----
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4788
SELECT 96 / + + ( CAST( NULL AS SIGNED ) ) + + COALESCE ( + 75, 30 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4788
SELECT 96 / + + ( CAST ( NULL AS INTEGER ) ) + + COALESCE ( + 75, 30 ) AS col2
----
NULL

query I rowsort
SELECT ALL 85 + 71 * - + 48
----
-3323

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4790
SELECT 77 + 12 + - 80 + CAST( + + 22 AS SIGNED ) AS col1
----
31

skipif mysql # not compatible
query I rowsort label-4790
SELECT 77 + 12 + - 80 + CAST ( + + 22 AS INTEGER ) AS col1
----
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4791
SELECT 87 DIV - 71 - + COUNT( * ) + + 20
----
18

skipif mysql # not compatible
query I rowsort label-4791
SELECT 87 / - 71 - + COUNT ( * ) + + 20
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-4792
SELECT + COUNT( * ) * + 65 + 62 AS col2
----
127

skipif mysql # not compatible
query I rowsort label-4792
SELECT + COUNT ( * ) * + 65 + 62 AS col2
----
127

query I rowsort
SELECT 22 + 77 AS col0
----
99

query I rowsort
SELECT ALL 49 + - 61 - 83
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-4795
SELECT DISTINCT COUNT( * ) + + MAX( + 58 )
----
59

skipif mysql # not compatible
query I rowsort label-4795
SELECT DISTINCT COUNT ( * ) + + MAX ( + 58 )
----
59

onlyif mysql # aggregate syntax: 
query II rowsort label-4796
SELECT + 55 AS col2, ( - ( COUNT( * ) ) ) * - 40 AS col2
----
55
40

skipif mysql # not compatible
query II rowsort label-4796
SELECT + 55 AS col2, ( - ( COUNT ( * ) ) ) * - 40 AS col2
----
55
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4797
SELECT ALL 95 + + COUNT( * ) * 77 AS col2
----
172

skipif mysql # not compatible
query I rowsort label-4797
SELECT ALL 95 + + COUNT ( * ) * 77 AS col2
----
172

query I rowsort
SELECT 2 * 47
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4799
SELECT COALESCE ( - 92, - COUNT( ALL ( + 88 ) ) * + 66 * - 26 + - - 59, + - NULLIF ( - + CASE + - 91 WHEN ( - 75 ) THEN NULL WHEN + 39 * COUNT( * ) THEN - - COALESCE ( - 48, - 52 ) END, MAX( DISTINCT ( - 73 ) ) ) + + 25 )
----
-92

skipif mysql # not compatible
query I rowsort label-4799
SELECT COALESCE ( - 92, - COUNT ( ALL ( + 88 ) ) * + 66 * - 26 + - - 59, + - NULLIF ( - + CASE + - 91 WHEN ( - 75 ) THEN NULL WHEN + 39 * COUNT ( * ) THEN - - COALESCE ( - 48, - 52 ) END, MAX ( DISTINCT ( - 73 ) ) ) + + 25 )
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4800
SELECT - ( + SUM( + - 50 ) ) + + 58 + + 14 + - - CAST( - 20 AS SIGNED ) * 54
----
-958

skipif mysql # not compatible
query I rowsort label-4800
SELECT - ( + SUM ( + - 50 ) ) + + 58 + + 14 + - - CAST ( - 20 AS INTEGER ) * 54
----
-958

onlyif mysql # aggregate syntax: 
query I rowsort label-4801
SELECT - 15 + + - CASE - 92 WHEN 50 * - 59 * - 35 THEN NULL WHEN - + COALESCE ( + 60, - - 11 ) + AVG ( ALL + ( ( - 4 ) ) ) THEN - + 95 + 60 WHEN - COALESCE ( 2, - COUNT( * ) ) * 48 THEN NULL ELSE + COUNT( * ) END AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-4801
SELECT - 15 + + - CASE - 92 WHEN 50 * - 59 * - 35 THEN NULL WHEN - + COALESCE ( + 60, - - 11 ) + AVG ( ALL + ( ( - 4 ) ) ) THEN - + 95 + 60 WHEN - COALESCE ( 2, - COUNT ( * ) ) * 48 THEN NULL ELSE + COUNT ( * ) END AS col0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-4802
SELECT ALL - ( + 31 ) * - COUNT( * ) AS col0
----
31

skipif mysql # not compatible
query I rowsort label-4802
SELECT ALL - ( + 31 ) * - COUNT ( * ) AS col0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4803
SELECT ALL - - NULLIF ( + 7, - - COUNT( * ) ) AS col1
----
7

skipif mysql # not compatible
query I rowsort label-4803
SELECT ALL - - NULLIF ( + 7, - - COUNT ( * ) ) AS col1
----
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4804
SELECT DISTINCT + 69 - 61 + - 40 + 51 * - 29 * 54 + - + 65 DIV + COALESCE ( 29, COUNT( * ), + 49 + - - 76, + - 21 * - 15 * + - 18 + 62 )
----
-79900

skipif mysql # not compatible
query I rowsort label-4804
SELECT DISTINCT + 69 - 61 + - 40 + 51 * - 29 * 54 + - + 65 / + COALESCE ( 29, COUNT ( * ), + 49 + - - 76, + - 21 * - 15 * + - 18 + 62 )
----
-79900

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4805
SELECT ALL - + 37 * + 1 * NULLIF ( - CASE - 75 WHEN - - 59 THEN - + 84 + CASE 69 WHEN - 95 THEN - + 52 * + 62 + + + 69 + - 59 WHEN - COUNT( * ) THEN 81 - + AVG ( CAST( NULL AS SIGNED ) + + 90 * CAST( NULL AS SIGNED ) ) ELSE CAST( 95 AS SIGNED ) END END, + 18 + + 8 * - 7 ) / - 68 + + AVG ( 75 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4805
SELECT ALL - + 37 * + 1 * NULLIF ( - CASE - 75 WHEN - - 59 THEN - + 84 + CASE 69 WHEN - 95 THEN - + 52 * + 62 + + + 69 + - 59 WHEN - COUNT ( * ) THEN 81 - + AVG ( CAST ( NULL AS INTEGER ) + + 90 * CAST ( NULL AS INTEGER ) ) ELSE CAST ( 95 AS INTEGER ) END END, + 18 + + 8 * - 7 ) / - 68 + + AVG ( 75 ) AS col0
----
NULL

query II rowsort
SELECT DISTINCT + 72 AS col1, ( + 44 ) AS col0
----
72
44

onlyif mysql # aggregate syntax: 
query I rowsort label-4807
SELECT DISTINCT - - 3 - COUNT( * ) - + MAX( ALL - + 31 ) col2
----
33

skipif mysql # not compatible
query I rowsort label-4807
SELECT DISTINCT - - 3 - COUNT ( * ) - + MAX ( ALL - + 31 ) col2
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-4808
SELECT + ( 9 ) DIV 79 * + 69
----
0

skipif mysql # not compatible
query I rowsort label-4808
SELECT + ( 9 ) / 79 * + 69
----
0

query I rowsort
SELECT 36 * - 44 AS col1
----
-1584

onlyif mysql # aggregate syntax: 
query II rowsort label-4810
SELECT DISTINCT - 95 col2, - SUM( 76 ) + + 44 col2
----
-95
-32

skipif mysql # not compatible
query II rowsort label-4810
SELECT DISTINCT - 95 col2, - SUM ( 76 ) + + 44 col2
----
-95
-32

query I rowsort
SELECT DISTINCT NULLIF ( - ( - + 3 ), 26 ) AS col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4812
SELECT + 40 + - + 93 - - CASE + 77 WHEN - 28 + - + 70 + - 70 / - + 77 * AVG ( 49 ) THEN + 33 + 31 + + SUM( 73 ) * + + 38 ELSE NULL END + + - 84
----
NULL

skipif mysql # not compatible
query I rowsort label-4812
SELECT + 40 + - + 93 - - CASE + 77 WHEN - 28 + - + 70 + - 70 / - + 77 * AVG ( 49 ) THEN + 33 + 31 + + SUM ( 73 ) * + + 38 ELSE NULL END + + - 84
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4813
SELECT ALL + + 61 DIV - - 35 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4813
SELECT ALL + + 61 / - - 35 AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4814
SELECT COALESCE ( ( - ( - 40 ) ), 72 * + - COALESCE ( COUNT( * ), - 40 ) ) DIV - 7 AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-4814
SELECT COALESCE ( ( - ( - 40 ) ), 72 * + - COALESCE ( COUNT ( * ), - 40 ) ) / - 7 AS col0
----
-5

query II rowsort
SELECT + 31, + 22 AS col0
----
31
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4816
SELECT ALL + 4 + - 12 + - CAST( + - 87 AS SIGNED )
----
79

skipif mysql # not compatible
query I rowsort label-4816
SELECT ALL + 4 + - 12 + - CAST ( + - 87 AS INTEGER )
----
79

query II rowsort
SELECT DISTINCT 4 * ( - 58 ) AS col2, - 49 * - 91 AS col0
----
-232
4459

query I rowsort
SELECT 62 * + + 78 AS col1
----
4836

query II rowsort
SELECT ALL - 91 + - 60 AS col1, + ( 83 )
----
-151
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4820
SELECT DISTINCT MAX( ALL - + 82 ) AS col0, - ( + CAST( NULL AS SIGNED ) ) AS col0
----
-82
NULL

skipif mysql # not compatible
query II rowsort label-4820
SELECT DISTINCT MAX ( ALL - + 82 ) AS col0, - ( + CAST ( NULL AS INTEGER ) ) AS col0
----
-82
NULL

query II rowsort
SELECT 87 * - + 88, 3 AS col2
----
-7656
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4822
SELECT 22 * + + MIN( ALL - 24 )
----
-528

skipif mysql # not compatible
query I rowsort label-4822
SELECT 22 * + + MIN ( ALL - 24 )
----
-528

onlyif mysql # aggregate syntax: 
query I rowsort label-4823
SELECT COUNT( ALL 94 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-4823
SELECT COUNT ( ALL 94 ) col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4824
SELECT ALL 55 * + 19 * - + 72 / + + 44 * - - 70 + CASE + ( - CAST( NULL AS SIGNED ) ) WHEN + - SUM( - + 19 ) THEN NULL WHEN - NULLIF ( - 59, - AVG ( ALL 7 ) * + 63 ) THEN + - CAST( NULL AS SIGNED ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4824
SELECT ALL 55 * + 19 * - + 72 / + + 44 * - - 70 + CASE + ( - CAST ( NULL AS INTEGER ) ) WHEN + - SUM ( - + 19 ) THEN NULL WHEN - NULLIF ( - 59, - AVG ( ALL 7 ) * + 63 ) THEN + - CAST ( NULL AS INTEGER ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4825
SELECT DISTINCT + 84 * - - 60 / - - SUM( DISTINCT - CAST( NULL AS SIGNED ) ) + - - 93 * 28 * - - 82
----
NULL

skipif mysql # not compatible
query I rowsort label-4825
SELECT DISTINCT + 84 * - - 60 / - - SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) + - - 93 * 28 * - - 82
----
NULL

query I rowsort
SELECT ALL + 51 * + 73 * 86 * - 86 - 9 AS col0
----
-27535317

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4827
SELECT - 23 * + ( + 95 ) / - + 79 + CAST( NULL AS DECIMAL ) + 61 - + 26 AS col0, 70
----
NULL
70

skipif mysql # not compatible
query II rowsort label-4827
SELECT - 23 * + ( + 95 ) / - + 79 + CAST ( NULL AS REAL ) + 61 - + 26 AS col0, 70
----
NULL
70

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4828
SELECT 29 * + 93 + + SUM( DISTINCT CAST( NULL AS DECIMAL ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4828
SELECT 29 * + 93 + + SUM ( DISTINCT CAST ( NULL AS REAL ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4829
SELECT ALL + 21 * - CASE - 17 WHEN + - 74 * 0 * - + 22 + + + 30 + - + AVG ( ALL - + 23 ) + + + 60 THEN COUNT( * ) END / - MIN( + 9 ) + - COUNT( * ) + + 36 + CAST( - 63 AS SIGNED ) * + COUNT( ALL - 47 / 57 ) - 14 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4829
SELECT ALL + 21 * - CASE - 17 WHEN + - 74 * 0 * - + 22 + + + 30 + - + AVG ( ALL - + 23 ) + + + 60 THEN COUNT ( * ) END / - MIN ( + 9 ) + - COUNT ( * ) + + 36 + CAST ( - 63 AS INTEGER ) * + COUNT ( ALL - 47 / 57 ) - 14 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4830
SELECT DISTINCT 18 * - 0 * 11 + + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4830
SELECT DISTINCT 18 * - 0 * 11 + + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4831
SELECT ALL + 15 * - 67 * - COUNT( * ) AS col2
----
1005

skipif mysql # not compatible
query I rowsort label-4831
SELECT ALL + 15 * - 67 * - COUNT ( * ) AS col2
----
1005

query I rowsort
SELECT 71 * + 23 - 0 + 62
----
1695

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4833
SELECT + 19 * - 99 + 31 + 42 - + 47 DIV + 29 + + - MIN( ALL - - ( - - 83 ) ) + + COUNT( * ) * 77 + + - 12
----
-1827

skipif mysql # not compatible
query I rowsort label-4833
SELECT + 19 * - 99 + 31 + 42 - + 47 / + 29 + + - MIN ( ALL - - ( - - 83 ) ) + + COUNT ( * ) * 77 + + - 12
----
-1827

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4834
SELECT + - 43 - - - 94 DIV - COUNT( * )
----
51

skipif mysql # not compatible
query I rowsort label-4834
SELECT + - 43 - - - 94 / - COUNT ( * )
----
51

query II rowsort
SELECT - ( + 22 ) AS col1, 10 col1
----
-22
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4836
SELECT DISTINCT SUM( DISTINCT 57 ) col1
----
57

skipif mysql # not compatible
query I rowsort label-4836
SELECT DISTINCT SUM ( DISTINCT 57 ) col1
----
57

query I rowsort
SELECT + - 93 * - 37 * + 65 + + + 33
----
223698

onlyif mysql # aggregate syntax: 
query II rowsort label-4838
SELECT - + SUM( 1 ) AS col1, 34 * COUNT( * ) AS col0
----
-1
34

skipif mysql # not compatible
query II rowsort label-4838
SELECT - + SUM ( 1 ) AS col1, 34 * COUNT ( * ) AS col0
----
-1
34

query II rowsort
SELECT ALL + + 97 + ( + 2 ) AS col2, 93 AS col2
----
99
93

query I rowsort
SELECT - 78 - 27 col2
----
-105

query I rowsort
SELECT - 91 * 4
----
-364

onlyif mysql # aggregate syntax: 
query I rowsort label-4842
SELECT ALL MAX( DISTINCT + 89 ) AS col1
----
89

skipif mysql # not compatible
query I rowsort label-4842
SELECT ALL MAX ( DISTINCT + 89 ) AS col1
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-4843
SELECT ALL - + COUNT( * ) + - 37 AS col1
----
-38

skipif mysql # not compatible
query I rowsort label-4843
SELECT ALL - + COUNT ( * ) + - 37 AS col1
----
-38

query I rowsort
SELECT ALL + 59 + + - 48
----
11

query II rowsort
SELECT + NULLIF ( + 26, + 54 * 93 ) + + ( + ( + 56 ) ) * - 10 AS col1, + 29
----
-534
29

query II rowsort
SELECT 0, 16 + + 57 + - 46 * - 10 AS col2
----
0
533

onlyif mysql # aggregate syntax: 
query I rowsort label-4847
SELECT - 91 + + 32 * COUNT( * )
----
-59

skipif mysql # not compatible
query I rowsort label-4847
SELECT - 91 + + 32 * COUNT ( * )
----
-59

query I rowsort
SELECT - 97 - 52
----
-149

query I rowsort
SELECT ALL NULLIF ( + 81, + 3 ) AS col2
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4850
SELECT ALL + COUNT( * ) DIV + 77 col2
----
0

skipif mysql # not compatible
query I rowsort label-4850
SELECT ALL + COUNT ( * ) / + 77 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4851
SELECT - ( - 92 ) + - MIN( + 55 )
----
37

skipif mysql # not compatible
query I rowsort label-4851
SELECT - ( - 92 ) + - MIN ( + 55 )
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4852
SELECT - 73 / + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4852
SELECT - 73 / + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT - 44 + + 52 - - 69 * - 94 AS col0
----
-6478

onlyif mysql # aggregate syntax: 
query I rowsort label-4854
SELECT ALL - COUNT( - 64 ) + + - 79
----
-80

skipif mysql # not compatible
query I rowsort label-4854
SELECT ALL - COUNT ( - 64 ) + + - 79
----
-80

query III rowsort
SELECT - 61 + + ( - + 97 ) AS col2, - 92 col1, 74 - + 68
----
-158
-92
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4856
SELECT ALL NULLIF ( - 50, + + 46 + - AVG ( + + CAST( 27 AS SIGNED ) ) )
----
-50

skipif mysql # not compatible
query I rowsort label-4856
SELECT ALL NULLIF ( - 50, + + 46 + - AVG ( + + CAST ( 27 AS INTEGER ) ) )
----
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-4857
SELECT ALL + 33 DIV + + 76
----
0

skipif mysql # not compatible
query I rowsort label-4857
SELECT ALL + 33 / + + 76
----
0

query I rowsort
SELECT - 37 + + + CASE + - ( + 93 ) WHEN + 49 - 55 THEN - 80 ELSE - 23 END col0
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4859
SELECT ALL CAST( NULL AS SIGNED ) * - 78 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4859
SELECT ALL CAST ( NULL AS INTEGER ) * - 78 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4860
SELECT ALL - 56 DIV - 1 - 28 col1
----
28

skipif mysql # not compatible
query I rowsort label-4860
SELECT ALL - 56 / - 1 - 28 col1
----
28

query II rowsort
SELECT + 42 AS col1, 94
----
42
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4862
SELECT - COUNT( * ) DIV - + COUNT( * ) + - 48
----
-47

skipif mysql # not compatible
query I rowsort label-4862
SELECT - COUNT ( * ) / - + COUNT ( * ) + - 48
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4863
SELECT ALL + CASE 41 WHEN 79 * - + 5 + - CAST( ( - 56 ) AS SIGNED ) THEN + COUNT( * ) WHEN + 90 + 31 THEN NULL ELSE + 20 / - 40 * CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4863
SELECT ALL + CASE 41 WHEN 79 * - + 5 + - CAST ( ( - 56 ) AS INTEGER ) THEN + COUNT ( * ) WHEN + 90 + 31 THEN NULL ELSE + 20 / - 40 * CAST ( NULL AS INTEGER ) END
----
NULL

query I rowsort
SELECT ( - - 38 ) col0
----
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4865
SELECT DISTINCT + 43 * + COUNT( * ) DIV - - 65 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4865
SELECT DISTINCT + 43 * + COUNT ( * ) / - - 65 AS col1
----
0

query I rowsort
SELECT + 37 * 7
----
259

query I rowsort
SELECT + 50 + CASE + 64 WHEN 52 THEN - NULLIF ( 16, - - 14 + + NULLIF ( + + 51, + 67 ) ) END * + + 57
----
NULL

query II rowsort
SELECT ALL + 37 AS col0, + 85 AS col0
----
37
85

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4869
SELECT + CASE - 98 WHEN + 16 THEN - ( + - 87 ) + - NULLIF ( + 61, - 18 * 28 + + MAX( + 96 ) * 45 ) WHEN - - CAST( NULL AS DECIMAL ) * + 94 THEN NULL WHEN + 75 + + 32 + - 51 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4869
SELECT + CASE - 98 WHEN + 16 THEN - ( + - 87 ) + - NULLIF ( + 61, - 18 * 28 + + MAX ( + 96 ) * 45 ) WHEN - - CAST ( NULL AS REAL ) * + 94 THEN NULL WHEN + 75 + + 32 + - 51 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT + + 29 AS col2
----
29

query I rowsort
SELECT DISTINCT 52 * - - 47 AS col0
----
2444

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4872
SELECT ALL - COALESCE ( - + ( + COUNT( * ) ), CAST( NULL AS SIGNED ) + 64 + 40, + 19 ) * 92 * + + 95 AS col2
----
8740

skipif mysql # not compatible
query I rowsort label-4872
SELECT ALL - COALESCE ( - + ( + COUNT ( * ) ), CAST ( NULL AS INTEGER ) + 64 + 40, + 19 ) * 92 * + + 95 AS col2
----
8740

query I rowsort
SELECT + + 22 + + 55 col2
----
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4874
SELECT + COUNT( * ) * + 78 * - COUNT( DISTINCT 1 ) + - 98 DIV 74 AS col2
----
-79

skipif mysql # not compatible
query I rowsort label-4874
SELECT + COUNT ( * ) * + 78 * - COUNT ( DISTINCT 1 ) + - 98 / 74 AS col2
----
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4875
SELECT DISTINCT + 16 * 86 * - 10 + - CAST( - 59 AS SIGNED ) col1
----
-13701

skipif mysql # not compatible
query I rowsort label-4875
SELECT DISTINCT + 16 * 86 * - 10 + - CAST ( - 59 AS INTEGER ) col1
----
-13701

query I rowsort
SELECT DISTINCT + 0 * + 66 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4877
SELECT ALL 78 * + 52 * - 60 * + COUNT( * ) + + NULLIF ( + 92, - 10 + - - 92 + + + COUNT( * ) ) col0, COUNT( * ) + + 88 AS col2
----
-243268
89

skipif mysql # not compatible
query II rowsort label-4877
SELECT ALL 78 * + 52 * - 60 * + COUNT ( * ) + + NULLIF ( + 92, - 10 + - - 92 + + + COUNT ( * ) ) col0, COUNT ( * ) + + 88 AS col2
----
-243268
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4878
SELECT DISTINCT - 23 * + 80 * 86 * - - MAX( DISTINCT + 60 ) + ( - 76 ) * - CASE + - 91 WHEN - SUM( + 46 ) THEN + 75 * + ( 50 ) ELSE - 81 END * + CAST( NULL AS SIGNED ) + - 17 * - - 36
----
NULL

skipif mysql # not compatible
query I rowsort label-4878
SELECT DISTINCT - 23 * + 80 * 86 * - - MAX ( DISTINCT + 60 ) + ( - 76 ) * - CASE + - 91 WHEN - SUM ( + 46 ) THEN + 75 * + ( 50 ) ELSE - 81 END * + CAST ( NULL AS INTEGER ) + - 17 * - - 36
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4879
SELECT DISTINCT 28 * 66 + - 48 + - 85 DIV - ( + ( - COUNT( * ) ) ) + + 85
----
1800

skipif mysql # not compatible
query I rowsort label-4879
SELECT DISTINCT 28 * 66 + - 48 + - 85 / - ( + ( - COUNT ( * ) ) ) + + 85
----
1800

query II rowsort
SELECT ALL - 35 AS col1, - 31 AS col1
----
-35
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-4881
SELECT - - MAX( + - 41 ) AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-4881
SELECT - - MAX ( + - 41 ) AS col0
----
-41

query I rowsort
SELECT + + 7 + - 51
----
-44

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4883
SELECT DISTINCT + 36 * + - 87 DIV + 1 + ( - 35 ) + - - 45 AS col1, - 36 + COUNT( * ) + + + 96 + - 32 * - + 23
----
-3122
797

skipif mysql # not compatible
query II rowsort label-4883
SELECT DISTINCT + 36 * + - 87 / + 1 + ( - 35 ) + - - 45 AS col1, - 36 + COUNT ( * ) + + + 96 + - 32 * - + 23
----
-3122
797

onlyif mysql # aggregate syntax: 
query I rowsort label-4884
SELECT ALL MIN( DISTINCT + + 8 )
----
8

skipif mysql # not compatible
query I rowsort label-4884
SELECT ALL MIN ( DISTINCT + + 8 )
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-4885
SELECT - 97 + 84 DIV - 88 col2
----
-97

skipif mysql # not compatible
query I rowsort label-4885
SELECT - 97 + 84 / - 88 col2
----
-97

query I rowsort
SELECT DISTINCT + 46 + - 41 + + + NULLIF ( 65, + 87 ) AS col1
----
70

onlyif mysql # aggregate syntax: 
query II rowsort label-4887
SELECT ALL + COUNT( * ) - + 94 AS col0, 69 + + 88
----
-93
157

skipif mysql # not compatible
query II rowsort label-4887
SELECT ALL + COUNT ( * ) - + 94 AS col0, 69 + + 88
----
-93
157

query I rowsort
SELECT + 61 * - + 55 * + + ( 58 ) AS col1
----
-194590

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4889
SELECT ALL CAST( 32 AS SIGNED ), COUNT( * ) - + 85 AS col0
----
32
-84

skipif mysql # not compatible
query II rowsort label-4889
SELECT ALL CAST ( 32 AS INTEGER ), COUNT ( * ) - + 85 AS col0
----
32
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-4890
SELECT ALL NULLIF ( - - 64, - + COUNT( * ) ) - ( 21 ) AS col0
----
43

skipif mysql # not compatible
query I rowsort label-4890
SELECT ALL NULLIF ( - - 64, - + COUNT ( * ) ) - ( 21 ) AS col0
----
43

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4891
SELECT + CAST( NULL AS DECIMAL ) * - 52 / + 90 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4891
SELECT + CAST ( NULL AS REAL ) * - 52 / + 90 col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4892
SELECT - 31 * + - COUNT( * ), 45 AS col2
----
31
45

skipif mysql # not compatible
query II rowsort label-4892
SELECT - 31 * + - COUNT ( * ), 45 AS col2
----
31
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4893
SELECT 41 * - - CAST( - + MAX( ( + 47 ) ) AS SIGNED ) AS col0
----
-1927

skipif mysql # not compatible
query I rowsort label-4893
SELECT 41 * - - CAST ( - + MAX ( ( + 47 ) ) AS INTEGER ) AS col0
----
-1927

onlyif mysql # DIV for integer division: 
query II rowsort label-4894
SELECT DISTINCT - 84 DIV + 24, CASE + 11 WHEN - + 56 THEN 16 + + + COALESCE ( CASE - 37 WHEN + - 80 THEN 96 WHEN + - CASE - ( + - ( 87 ) ) WHEN + + 15 DIV - 81 - + + 40 THEN + 94 * - 18 WHEN - 69 * 67 THEN 95 END THEN NULL END, 8, ( + 35 ) * + 40 ) END AS col0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-4894
SELECT DISTINCT - 84 / + 24, CASE + 11 WHEN - + 56 THEN 16 + + + COALESCE ( CASE - 37 WHEN + - 80 THEN 96 WHEN + - CASE - ( + - ( 87 ) ) WHEN + + 15 / - 81 - + + 40 THEN + 94 * - 18 WHEN - 69 * 67 THEN 95 END THEN NULL END, 8, ( + 35 ) * + 40 ) END AS col0
----
-3
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4895
SELECT 31 * SUM( + - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4895
SELECT 31 * SUM ( + - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4896
SELECT DISTINCT - 56 DIV + ( COUNT( * ) ) - - ( + 99 ) AS col2
----
43

skipif mysql # not compatible
query I rowsort label-4896
SELECT DISTINCT - 56 / + ( COUNT ( * ) ) - - ( + 99 ) AS col2
----
43

query I rowsort
SELECT ALL + 93 * + 99 * - 4 * + ( 82 ) AS col2
----
-3019896

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4898
SELECT DISTINCT - CASE - 96 WHEN - CAST( NULL AS SIGNED ) THEN + 12 * + 48 + + 88 * - 94 / - 8 + + 92 + + + 48 + + 95 * + - 62 WHEN + - SUM( ALL - COALESCE ( + - 64, + 15 ) ) + COUNT( * ) * - + CASE COUNT( * ) WHEN - COUNT( * ) + + CASE 38 WHEN COUNT( * ) * 67 THEN 88 + - 0 / + 67 WHEN NULLIF ( + 3, 0 - - 31 / COUNT( * ) ) THEN NULL WHEN COUNT( * ) THEN + 60 * 84 + - 91 * + CAST( 59 * NULLIF ( - 90, 95 ) AS SIGNED ) ELSE - 80 END THEN + 62 + 76 WHEN + ( 71 ) - - CAST( NULL AS SIGNED ) * - 33 THEN 93 END THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4898
SELECT DISTINCT - CASE - 96 WHEN - CAST ( NULL AS INTEGER ) THEN + 12 * + 48 + + 88 * - 94 / - 8 + + 92 + + + 48 + + 95 * + - 62 WHEN + - SUM ( ALL - COALESCE ( + - 64, + 15 ) ) + COUNT ( * ) * - + CASE COUNT ( * ) WHEN - COUNT ( * ) + + CASE 38 WHEN COUNT ( * ) * 67 THEN 88 + - 0 / + 67 WHEN NULLIF ( + 3, 0 - - 31 / COUNT ( * ) ) THEN NULL WHEN COUNT ( * ) THEN + 60 * 84 + - 91 * + CAST ( 59 * NULLIF ( - 90, 95 ) AS INTEGER ) ELSE - 80 END THEN + 62 + 76 WHEN + ( 71 ) - - CAST ( NULL AS INTEGER ) * - 33 THEN 93 END THEN NULL END
----
NULL

query I rowsort
SELECT ALL - - 30 * 65 AS col0
----
1950

query I rowsort
SELECT ALL + + 17 * - 1 - 35 AS col1
----
-52

query I rowsort
SELECT - 10 * ( 31 ) * COALESCE ( 28, 6 + 14 ) - 77
----
-8757

query I rowsort
SELECT - 47 * 55 + - + 4 AS col0
----
-2589

query I rowsort
SELECT + ( - - 75 ) AS col2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4904
SELECT DISTINCT + 99 + - - 46 + - + COALESCE ( + COUNT( * ), + + CASE - 27 WHEN - + SUM( - 51 ) THEN NULL WHEN - - COALESCE ( + + COUNT( * ), + 10 + COUNT( * ), - 11 ) * - ( + 26 ) + 15 * + 57 * + 58 * - 81 / + COALESCE ( + 24, COUNT( * ) ) + - 18 THEN NULL WHEN + 39 THEN + NULLIF ( CASE 93 WHEN 85 THEN 79 ELSE NULL END, 85 - - 52 ) END * 17, - 78 * 53 ) * - 24
----
169

skipif mysql # not compatible
query I rowsort label-4904
SELECT DISTINCT + 99 + - - 46 + - + COALESCE ( + COUNT ( * ), + + CASE - 27 WHEN - + SUM ( - 51 ) THEN NULL WHEN - - COALESCE ( + + COUNT ( * ), + 10 + COUNT ( * ), - 11 ) * - ( + 26 ) + 15 * + 57 * + 58 * - 81 / + COALESCE ( + 24, COUNT ( * ) ) + - 18 THEN NULL WHEN + 39 THEN + NULLIF ( CASE 93 WHEN 85 THEN 79 ELSE NULL END, 85 - - 52 ) END * 17, - 78 * 53 ) * - 24
----
169

onlyif mysql # aggregate syntax: 
query I rowsort label-4905
SELECT MAX( DISTINCT ( + 87 ) ) + - - 24 col1
----
111

skipif mysql # not compatible
query I rowsort label-4905
SELECT MAX ( DISTINCT ( + 87 ) ) + - - 24 col1
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-4906
SELECT ALL + MIN( ALL - 52 ) + - CASE - 66 WHEN 15 + - - 73 THEN NULL WHEN - - ( - - COUNT( * ) ) THEN + - 4 * - + 61 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4906
SELECT ALL + MIN ( ALL - 52 ) + - CASE - 66 WHEN 15 + - - 73 THEN NULL WHEN - - ( - - COUNT ( * ) ) THEN + - 4 * - + 61 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4907
SELECT ALL + + 26 + + SUM( + 62 ) col0
----
88

skipif mysql # not compatible
query I rowsort label-4907
SELECT ALL + + 26 + + SUM ( + 62 ) col0
----
88

query I rowsort
SELECT ALL 81 + - 70
----
11

query I rowsort
SELECT DISTINCT - - 13 + 30
----
43

query I rowsort
SELECT + NULLIF ( 28, 80 )
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4911
SELECT ( - 35 ) * - COUNT( * ) AS col1
----
35

skipif mysql # not compatible
query I rowsort label-4911
SELECT ( - 35 ) * - COUNT ( * ) AS col1
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4912
SELECT ALL 70 * + COUNT( * ) * + 27 AS col1
----
1890

skipif mysql # not compatible
query I rowsort label-4912
SELECT ALL 70 * + COUNT ( * ) * + 27 AS col1
----
1890

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4913
SELECT - 40 DIV - COUNT( 62 )
----
40

skipif mysql # not compatible
query I rowsort label-4913
SELECT - 40 / - COUNT ( 62 )
----
40

query II rowsort
SELECT - 9 * 72 AS col1, - 80 AS col1
----
-648
-80

query II rowsort
SELECT - 61 AS col0, + 63 AS col1
----
-61
63

onlyif mysql # aggregate syntax: 
query II rowsort label-4916
SELECT ALL SUM( + 81 ) - - 59 col2, 87 col1
----
140
87

skipif mysql # not compatible
query II rowsort label-4916
SELECT ALL SUM ( + 81 ) - - 59 col2, 87 col1
----
140
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4917
SELECT ALL COUNT( * ) * - + COUNT( DISTINCT - 79 )
----
-1

skipif mysql # not compatible
query I rowsort label-4917
SELECT ALL COUNT ( * ) * - + COUNT ( DISTINCT - 79 )
----
-1

query I rowsort
SELECT DISTINCT 85 * - 99 AS col1
----
-8415

onlyif mysql # DIV for integer division: 
query I rowsort label-4919
SELECT ALL 8 DIV + - 4
----
-2

skipif mysql # not compatible
query I rowsort label-4919
SELECT ALL 8 / + - 4
----
-2

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4920
SELECT ALL 29 AS col2, CAST( NULL AS DECIMAL ) + + - SUM( 40 )
----
29
NULL

skipif mysql # not compatible
query II rowsort label-4920
SELECT ALL 29 AS col2, CAST ( NULL AS REAL ) + + - SUM ( 40 )
----
29
NULL

query I rowsort
SELECT 93 + + ( + - 23 ) col2
----
70

query II rowsort
SELECT 54 col0, - 52 * + 5 + + 45
----
54
-215

query I rowsort
SELECT ( + + 89 ) + 10 - + 42 * - 27
----
1233

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4924
SELECT ALL 48 AS col1, COUNT( * ) + + 47 DIV - CAST( + + 31 AS SIGNED ) AS col0
----
48
0

skipif mysql # not compatible
query II rowsort label-4924
SELECT ALL 48 AS col1, COUNT ( * ) + + 47 / - CAST ( + + 31 AS INTEGER ) AS col0
----
48
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4925
SELECT NULLIF ( COUNT( * ), + COUNT( * ) + - NULLIF ( - - 74, - + CAST( + 92 AS SIGNED ) + + + CASE - 85 WHEN + 20 + 65 THEN - 21 WHEN - + 52 + - 0 * + CAST( NULL AS SIGNED ) * 43 THEN - 10 + - + 4 ELSE NULL END * COUNT( * ) / + + 58 / 71 + + NULLIF ( 36, 24 * + 46 ) ) + 49 ) + + 89
----
90

skipif mysql # not compatible
query I rowsort label-4925
SELECT NULLIF ( COUNT ( * ), + COUNT ( * ) + - NULLIF ( - - 74, - + CAST ( + 92 AS INTEGER ) + + + CASE - 85 WHEN + 20 + 65 THEN - 21 WHEN - + 52 + - 0 * + CAST ( NULL AS INTEGER ) * 43 THEN - 10 + - + 4 ELSE NULL END * COUNT ( * ) / + + 58 / 71 + + NULLIF ( 36, 24 * + 46 ) ) + 49 ) + + 89
----
90

query I rowsort
SELECT ALL 13 * 84 AS col0
----
1092

query I rowsort
SELECT 47 + + ( 2 ) AS col0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-4928
SELECT ALL 30 * + + COUNT( * )
----
30

skipif mysql # not compatible
query I rowsort label-4928
SELECT ALL 30 * + + COUNT ( * )
----
30

query I rowsort
SELECT DISTINCT 11 + - 75 AS col1
----
-64

query I rowsort
SELECT ALL + 3 + + + ( - 20 ) + 34 AS col2
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-4931
SELECT NULLIF ( 70, - 38 * + + COUNT( * ) - + 13 )
----
70

skipif mysql # not compatible
query I rowsort label-4931
SELECT NULLIF ( 70, - 38 * + + COUNT ( * ) - + 13 )
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-4932
SELECT + MIN( 22 )
----
22

skipif mysql # not compatible
query I rowsort label-4932
SELECT + MIN ( 22 )
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4933
SELECT 59 * NULLIF ( - ( - + CAST( + 80 AS SIGNED ) ), - - 31 ) * + 56
----
264320

skipif mysql # not compatible
query I rowsort label-4933
SELECT 59 * NULLIF ( - ( - + CAST ( + 80 AS INTEGER ) ), - - 31 ) * + 56
----
264320

query II rowsort
SELECT DISTINCT - - 56 AS col1, 13 * + 56
----
56
728

onlyif mysql # aggregate syntax: 
query I rowsort label-4935
SELECT DISTINCT + 9 + - 39 + + COALESCE ( + - 65, 90 + - COUNT( * ) ) * - SUM( ALL - + 60 ) AS col1
----
-3930

skipif mysql # not compatible
query I rowsort label-4935
SELECT DISTINCT + 9 + - 39 + + COALESCE ( + - 65, 90 + - COUNT ( * ) ) * - SUM ( ALL - + 60 ) AS col1
----
-3930

query I rowsort
SELECT ALL + + 23 + 92 + - 37 + + 75 AS col1
----
153

onlyif mysql # DIV for integer division: 
query I rowsort label-4937
SELECT + 90 * - 52 * - + ( CASE - - 68 WHEN + 92 THEN + - CASE + 30 WHEN - 9 THEN - + 42 END * 29 WHEN - 71 THEN + - 71 * 27 + + + 85 ELSE - - 21 END ) + 96 DIV - 28 + - + 64 + 25
----
98238

skipif mysql # not compatible
query I rowsort label-4937
SELECT + 90 * - 52 * - + ( CASE - - 68 WHEN + 92 THEN + - CASE + 30 WHEN - 9 THEN - + 42 END * 29 WHEN - 71 THEN + - 71 * 27 + + + 85 ELSE - - 21 END ) + 96 / - 28 + - + 64 + 25
----
98238

onlyif mysql # aggregate syntax: 
query III rowsort label-4938
SELECT + 45 AS col0, - COALESCE ( + COUNT( * ), - + ( + ( COUNT( * ) ) ), + 21 + - 97 ) AS col0, - 96 AS col0
----
45
-1
-96

skipif mysql # not compatible
query III rowsort label-4938
SELECT + 45 AS col0, - COALESCE ( + COUNT ( * ), - + ( + ( COUNT ( * ) ) ), + 21 + - 97 ) AS col0, - 96 AS col0
----
45
-1
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-4939
SELECT + - 5 AS col0, - COUNT( ALL 13 ) AS col2
----
-5
-1

skipif mysql # not compatible
query II rowsort label-4939
SELECT + - 5 AS col0, - COUNT ( ALL 13 ) AS col2
----
-5
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4940
SELECT - ( 15 ) * + MAX( - 39 ) * - - 15 - COUNT( * ) AS col2
----
8774

skipif mysql # not compatible
query I rowsort label-4940
SELECT - ( 15 ) * + MAX ( - 39 ) * - - 15 - COUNT ( * ) AS col2
----
8774

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4941
SELECT ALL - - CAST( - ( - 41 ) AS SIGNED ) - + 20
----
21

skipif mysql # not compatible
query I rowsort label-4941
SELECT ALL - - CAST ( - ( - 41 ) AS INTEGER ) - + 20
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-4942
SELECT ALL - CASE 58 WHEN - 25 * + + 13 + + NULLIF ( - 36, - COALESCE ( - 61, ( - 23 ) * - 50, - 53 ) + ( - ( 98 ) ) ) + - + 98 * - AVG ( - + 8 ) + - 83 + 3 THEN + 55 ELSE COUNT( * ) END
----
-1

skipif mysql # not compatible
query I rowsort label-4942
SELECT ALL - CASE 58 WH