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 WHEN - 25 * + + 13 + + NULLIF ( - 36, - COALESCE ( - 61, ( - 23 ) * - 50, - 53 ) + ( - ( 98 ) ) ) + - + 98 * - AVG ( - + 8 ) + - 83 + 3 THEN + 55 ELSE COUNT ( * ) END
----
-1

query II rowsort
SELECT + 59 AS col1, - 76
----
59
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-4944
SELECT DISTINCT MIN( DISTINCT + 45 )
----
45

skipif mysql # not compatible
query I rowsort label-4944
SELECT DISTINCT MIN ( DISTINCT + 45 )
----
45

query I rowsort
SELECT - 85 * + 52 AS col1
----
-4420

onlyif mysql # DIV for integer division: 
query I rowsort label-4946
SELECT ALL - ( - + 99 ) DIV + 52
----
1

skipif mysql # not compatible
query I rowsort label-4946
SELECT ALL - ( - + 99 ) / + 52
----
1

query I rowsort
SELECT + 8 + + 93 AS col1
----
101

query I rowsort
SELECT DISTINCT 31 * + + 33 * 64 AS col2
----
65472

onlyif mysql # DIV for integer division: 
query II rowsort label-4949
SELECT ALL 84 AS col1, 67 DIV + - 77
----
84
0

skipif mysql # not compatible
query II rowsort label-4949
SELECT ALL 84 AS col1, 67 / + - 77
----
84
0

query I rowsort
SELECT DISTINCT - CASE - - 81 WHEN + 7 + - - 12 - - 38 THEN NULL WHEN - - 97 THEN + + ( + 28 ) END * 73
----
NULL

query I rowsort
SELECT ALL CASE + 81 WHEN - 94 + + 57 * - 67 - + 36 * + + 80 THEN NULL ELSE ( - 62 ) + - 5 END
----
-67

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4952
SELECT DISTINCT - ( + 8 ) * + 57 * - 91 AS col0, 79 + + CAST( 23 AS SIGNED ) AS col0
----
41496
102

skipif mysql # not compatible
query II rowsort label-4952
SELECT DISTINCT - ( + 8 ) * + 57 * - 91 AS col0, 79 + + CAST ( 23 AS INTEGER ) AS col0
----
41496
102

onlyif mysql # DIV for integer division: 
query I rowsort label-4953
SELECT + 7 DIV + 69
----
0

skipif mysql # not compatible
query I rowsort label-4953
SELECT + 7 / + 69
----
0

query I rowsort
SELECT ALL 19 + 71
----
90

query I rowsort
SELECT + 25 * - ( 98 )
----
-2450

onlyif mysql # aggregate syntax: 
query I rowsort label-4956
SELECT - 95 * + - COUNT( * ) * + CASE + 46 WHEN + ( - 79 ) THEN 97 WHEN - + 71 * + AVG ( DISTINCT + 94 ) * - 11 * - 36 + + 79 * - 30 * + 91 THEN NULL ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4956
SELECT - 95 * + - COUNT ( * ) * + CASE + 46 WHEN + ( - 79 ) THEN 97 WHEN - + 71 * + AVG ( DISTINCT + 94 ) * - 11 * - 36 + + 79 * - 30 * + 91 THEN NULL ELSE NULL END col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4957
SELECT DISTINCT 55 AS col2, 41 - COUNT( * ) - + 39 + - 95 DIV - 25 - + + 37 * - MAX( + 88 ) * + ( - MAX( 5 ) ) * 10 - 93 + + SUM( DISTINCT + - 75 ) AS col0
----
55
-162964

skipif mysql # not compatible
query II rowsort label-4957
SELECT DISTINCT 55 AS col2, 41 - COUNT ( * ) - + 39 + - 95 / - 25 - + + 37 * - MAX ( + 88 ) * + ( - MAX ( 5 ) ) * 10 - 93 + + SUM ( DISTINCT + - 75 ) AS col0
----
55
-162964

onlyif mysql # aggregate syntax: 
query I rowsort label-4958
SELECT DISTINCT 24 + + 98 * - COUNT( * ) * + ( 37 )
----
-3602

skipif mysql # not compatible
query I rowsort label-4958
SELECT DISTINCT 24 + + 98 * - COUNT ( * ) * + ( 37 )
----
-3602

query I rowsort
SELECT + 69 - - 22 AS col1
----
91

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4961
SELECT ALL COUNT( * ) + + 16 + 24 AS col2
----
41

skipif mysql # not compatible
query I rowsort label-4961
SELECT ALL COUNT ( * ) + + 16 + 24 AS col2
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4962
SELECT + CAST( 24 AS SIGNED ) * - - 71 AS col0
----
1704

skipif mysql # not compatible
query I rowsort label-4962
SELECT + CAST ( 24 AS INTEGER ) * - - 71 AS col0
----
1704

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

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

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

skipif mysql # not compatible
query I rowsort label-4964
SELECT DISTINCT - COUNT ( * ) + + 15 AS col0
----
14

query I rowsort
SELECT ALL 63 * + 58 + + + ( + 3 )
----
3657

query I rowsort
SELECT DISTINCT 21 * + 56 * + + 29 - 75 + + 86
----
34115

onlyif mysql # aggregate syntax: 
query I rowsort label-4967
SELECT ALL - + MAX( + 34 ) * - 53 col0
----
1802

skipif mysql # not compatible
query I rowsort label-4967
SELECT ALL - + MAX ( + 34 ) * - 53 col0
----
1802

query II rowsort
SELECT ALL + 94, + 64 - 9 AS col2
----
94
55

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4969
SELECT DISTINCT - 22 * - 88, 36 + 93 * + - CASE + 71 WHEN 25 + - - ( + ( - CAST( NULL AS SIGNED ) ) ) THEN 56 END AS col1
----
1936
NULL

skipif mysql # not compatible
query II rowsort label-4969
SELECT DISTINCT - 22 * - 88, 36 + 93 * + - CASE + 71 WHEN 25 + - - ( + ( - CAST ( NULL AS INTEGER ) ) ) THEN 56 END AS col1
----
1936
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4970
SELECT + CASE - 15 WHEN - - ( + CAST( NULL AS SIGNED ) ) THEN - + 20 WHEN - 41 - + + MIN( ALL 1 ) THEN NULL ELSE NULL END * + - 40 / 77 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4970
SELECT + CASE - 15 WHEN - - ( + CAST ( NULL AS INTEGER ) ) THEN - + 20 WHEN - 41 - + + MIN ( ALL 1 ) THEN NULL ELSE NULL END * + - 40 / 77 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4971
SELECT ALL COALESCE ( + 26, + 6 ) * 58 * + COUNT( * ) + + 55 col2
----
1563

skipif mysql # not compatible
query I rowsort label-4971
SELECT ALL COALESCE ( + 26, + 6 ) * 58 * + COUNT ( * ) + + 55 col2
----
1563

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4972
SELECT + 87 * CAST( + - NULLIF ( - - CAST( NULL AS DECIMAL ), + + AVG ( + 48 ) + 58 ) AS DECIMAL ) + - 71
----
NULL

skipif mysql # not compatible
query I rowsort label-4972
SELECT + 87 * CAST ( + - NULLIF ( - - CAST ( NULL AS REAL ), + + AVG ( + 48 ) + 58 ) AS REAL ) + - 71
----
NULL

query II rowsort
SELECT + 34 AS col1, + 59 AS col1
----
34
59

onlyif mysql # DIV for integer division: 
query II rowsort label-4974
SELECT + 0 DIV + 87 * - 22 + 71 AS col0, - 47 + + 60 AS col0
----
71
13

skipif mysql # not compatible
query II rowsort label-4974
SELECT + 0 / + 87 * - 22 + 71 AS col0, - 47 + + 60 AS col0
----
71
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4975
SELECT ALL + CAST( NULLIF ( 14, - 19 ) AS SIGNED ) col2, MAX( ALL + 28 ) + + 0 + - MAX( ALL + 83 ) * - 69
----
14
5755

skipif mysql # not compatible
query II rowsort label-4975
SELECT ALL + CAST ( NULLIF ( 14, - 19 ) AS INTEGER ) col2, MAX ( ALL + 28 ) + + 0 + - MAX ( ALL + 83 ) * - 69
----
14
5755

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4976
SELECT ALL + + COALESCE ( 78, - CAST( 55 AS SIGNED ) ) AS col0
----
78

skipif mysql # not compatible
query I rowsort label-4976
SELECT ALL + + COALESCE ( 78, - CAST ( 55 AS INTEGER ) ) AS col0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4977
SELECT DISTINCT 54 * ( - + 74 ) - + 35 + + + COUNT( * ) * + - 85 * + 34
----
-6921

skipif mysql # not compatible
query I rowsort label-4977
SELECT DISTINCT 54 * ( - + 74 ) - + 35 + + + COUNT ( * ) * + - 85 * + 34
----
-6921

query I rowsort
SELECT COALESCE ( + 21, - 60 )
----
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4979
SELECT DISTINCT COUNT( * ) DIV - + 60 AS col1, ( 89 )
----
0
89

skipif mysql # not compatible
query II rowsort label-4979
SELECT DISTINCT COUNT ( * ) / - + 60 AS col1, ( 89 )
----
0
89

onlyif mysql # DIV for integer division: 
query I rowsort label-4980
SELECT + ( ( + 86 ) ) DIV + 41 - + 1 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4980
SELECT + ( ( + 86 ) ) / + 41 - + 1 AS col0
----
1

query I rowsort
SELECT + 3 - 60 col1
----
-57

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4983
SELECT DISTINCT - CAST( - + AVG ( + + 18 ) AS SIGNED ) * 93
----
1674

skipif mysql # not compatible
query I rowsort label-4983
SELECT DISTINCT - CAST ( - + AVG ( + + 18 ) AS INTEGER ) * 93
----
1674

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-4985
SELECT ALL MIN( DISTINCT + 10 ) col1, AVG ( ALL + - CAST( NULL AS SIGNED ) ) + + ( 55 ) * CAST( - 8 AS SIGNED ) + - 89 - + ( + 54 ) + 74 * - 87 * - ( - + 77 ) AS col2, - 8 * + - COUNT( * ) + - CASE - - 66 WHEN - 5 THEN 52 ELSE COUNT( * ) END AS col1
----
10
NULL
7

skipif mysql # not compatible
query III rowsort label-4985
SELECT ALL MIN ( DISTINCT + 10 ) col1, AVG ( ALL + - CAST ( NULL AS INTEGER ) ) + + ( 55 ) * CAST ( - 8 AS INTEGER ) + - 89 - + ( + 54 ) + 74 * - 87 * - ( - + 77 ) AS col2, - 8 * + - COUNT ( * ) + - CASE - - 66 WHEN - 5 THEN 52 ELSE COUNT ( * ) END AS col1
----
10
NULL
7

query I rowsort
SELECT ALL ( - + CASE + - AVG ( ALL - + 75 ) WHEN + 68 THEN NULL ELSE - 36 END )
----
36

query I rowsort
SELECT - 31 * - 44
----
1364

query II rowsort
SELECT ALL - 7 + - 76 AS col2, 80 AS col0
----
-83
80

query I rowsort
SELECT ALL - 70 + ( - - 36 ) col0
----
-34

query I rowsort
SELECT 34 * 54 * - - 13 - 87
----
23781

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4991
SELECT - COALESCE ( CAST( NULL AS SIGNED ), - COUNT( * ) ) - 23 * + 61
----
-1402

skipif mysql # not compatible
query I rowsort label-4991
SELECT - COALESCE ( CAST ( NULL AS INTEGER ), - COUNT ( * ) ) - 23 * + 61
----
-1402

query II rowsort
SELECT - 95 * 20 AS col2, - 53
----
-1900
-53

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

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

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

query II rowsort
SELECT - 89 + - 66 * - 21 AS col0, 99 AS col2
----
1297
99

onlyif mysql # DIV for integer division: 
query I rowsort label-4996
SELECT - COALESCE ( + 91, AVG ( + NULLIF ( - 2, + CASE 63 WHEN + ( + 81 ) * + + 60 THEN + 85 ELSE NULL END * + 46 ) ) DIV + 66 + - 6 )
----
-91

skipif mysql # not compatible
query I rowsort label-4996
SELECT - COALESCE ( + 91, AVG ( + NULLIF ( - 2, + CASE 63 WHEN + ( + 81 ) * + + 60 THEN + 85 ELSE NULL END * + 46 ) ) / + 66 + - 6 )
----
-91

query I rowsort
SELECT ALL + 45 * + 35 + 41 AS col1
----
1616

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4998
SELECT - - CAST( 5 AS SIGNED ) + 64 col1
----
69

skipif mysql # not compatible
query I rowsort label-4998
SELECT - - CAST ( 5 AS INTEGER ) + 64 col1
----
69

query II rowsort
SELECT ALL - 75 + + 84, - 89 AS col1
----
9
-89

query I rowsort
SELECT DISTINCT - 11 * - + 16 * + ( + 71 ) AS col0
----
12496

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5001
SELECT - ( + CAST( NULL AS SIGNED ) ) AS col0, + 30 * + 24
----
NULL
720

skipif mysql # not compatible
query II rowsort label-5001
SELECT - ( + CAST ( NULL AS INTEGER ) ) AS col0, + 30 * + 24
----
NULL
720

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5003
SELECT ALL 34 + COUNT( * ) * + 99 col0
----
133

skipif mysql # not compatible
query I rowsort label-5003
SELECT ALL 34 + COUNT ( * ) * + 99 col0
----
133

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5004
SELECT + ( NULLIF ( - 96, + 93 - - 85 ) ) + + COUNT( * ) - + CASE - + CAST( NULL AS DECIMAL ) WHEN - COUNT( * ) THEN 16 END * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5004
SELECT + ( NULLIF ( - 96, + 93 - - 85 ) ) + + COUNT ( * ) - + CASE - + CAST ( NULL AS REAL ) WHEN - COUNT ( * ) THEN 16 END * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL + - ( - + 71 ) * - 33 + - 79 AS col2
----
-2422

query I rowsort
SELECT + 17 + + - 11
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5007
SELECT ALL - NULLIF ( - 46, - - 28 ) * - ( + COALESCE ( 53, - - CAST( - + 85 AS SIGNED ) * CAST( NULL AS SIGNED ) + - NULLIF ( + 72, - - 6 ), - 43 ) ) / + 66 + - 23 + + ( 79 ) / + 75 * - 33 + + CAST( NULL AS SIGNED ) + + - 10 * 85 / + COUNT( * ) + - 73 * 13
----
NULL

skipif mysql # not compatible
query I rowsort label-5007
SELECT ALL - NULLIF ( - 46, - - 28 ) * - ( + COALESCE ( 53, - - CAST ( - + 85 AS INTEGER ) * CAST ( NULL AS INTEGER ) + - NULLIF ( + 72, - - 6 ), - 43 ) ) / + 66 + - 23 + + ( 79 ) / + 75 * - 33 + + CAST ( NULL AS INTEGER ) + + - 10 * 85 / + COUNT ( * ) + - 73 * 13
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5008
SELECT 65 DIV + + 8 + 1
----
9

skipif mysql # not compatible
query I rowsort label-5008
SELECT 65 / + + 8 + 1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5009
SELECT - + CAST( - 43 AS SIGNED ) * - 7 * - COALESCE ( - + 52, 29 ) AS col2
----
-15652

skipif mysql # not compatible
query I rowsort label-5009
SELECT - + CAST ( - 43 AS INTEGER ) * - 7 * - COALESCE ( - + 52, 29 ) AS col2
----
-15652

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5010
SELECT + + 37 + - 95 + - 44 + + CAST( NULL AS SIGNED ) + - 21 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5010
SELECT + + 37 + - 95 + - 44 + + CAST ( NULL AS INTEGER ) + - 21 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5011
SELECT DISTINCT 6 DIV + - 23 - + - 54 + - - 59 + + 39 * - 62 * CASE 27 WHEN - - 28 THEN NULL ELSE + + 66 * 22 + + 4 - - - 8 + + 94 DIV - - CASE ( + SUM( - + 9 ) ) WHEN - - 83 + - 98 DIV + 8 * + + 61 THEN 58 * + 71 ELSE COALESCE ( 94, - 60 * + ( - COUNT( - COALESCE ( - 78, + 31 ) ) ) + 26 ) * 39 END * 89 END
----
-3501151

skipif mysql # not compatible
query I rowsort label-5011
SELECT DISTINCT 6 / + - 23 - + - 54 + - - 59 + + 39 * - 62 * CASE 27 WHEN - - 28 THEN NULL ELSE + + 66 * 22 + + 4 - - - 8 + + 94 / - - CASE ( + SUM ( - + 9 ) ) WHEN - - 83 + - 98 / + 8 * + + 61 THEN 58 * + 71 ELSE COALESCE ( 94, - 60 * + ( - COUNT ( - COALESCE ( - 78, + 31 ) ) ) + 26 ) * 39 END * 89 END
----
-3501151

query I rowsort
SELECT ALL + COALESCE ( - 39, 5, 96 )
----
-39

query I rowsort
SELECT + 19 * - 38
----
-722

query II rowsort
SELECT ALL 59 * - + ( 28 ) + - 63 + + - 10, 32 AS col0
----
-1725
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5015
SELECT COALESCE ( - COALESCE ( - - 3, ( 27 ) ), + ( - ( + ( + - CASE ( - COUNT( * ) ) WHEN + 95 - + + COUNT( * ) THEN 54 + + - 74 WHEN - AVG ( ALL 69 ) THEN NULL END ) ) ), NULLIF ( 88, + 63 * 57 - + AVG ( DISTINCT - 30 ) * 67 ) + 3 DIV - 86 ) col0
----
-3

skipif mysql # not compatible
query I rowsort label-5015
SELECT COALESCE ( - COALESCE ( - - 3, ( 27 ) ), + ( - ( + ( + - CASE ( - COUNT ( * ) ) WHEN + 95 - + + COUNT ( * ) THEN 54 + + - 74 WHEN - AVG ( ALL 69 ) THEN NULL END ) ) ), NULLIF ( 88, + 63 * 57 - + AVG ( DISTINCT - 30 ) * 67 ) + 3 / - 86 ) col0
----
-3

query I rowsort
SELECT ALL 16 * 85
----
1360

query I rowsort
SELECT NULLIF ( 34, - 34 ) * 13 * ( 62 ) * - + 4
----
-109616

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5019
SELECT 1 * + + 98 + - 65, COUNT( * ) AS col0
----
33
1

skipif mysql # not compatible
query II rowsort label-5019
SELECT 1 * + + 98 + - 65, COUNT ( * ) AS col0
----
33
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5020
SELECT DISTINCT - 99 col1, - 23 * MIN( DISTINCT 81 ) DIV - + 11 AS col2
----
-99
169

skipif mysql # not compatible
query II rowsort label-5020
SELECT DISTINCT - 99 col1, - 23 * MIN ( DISTINCT 81 ) / - + 11 AS col2
----
-99
169

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5022
SELECT 39 * + 82 + + CAST( + 55 AS SIGNED )
----
3253

skipif mysql # not compatible
query I rowsort label-5022
SELECT 39 * + 82 + + CAST ( + 55 AS INTEGER )
----
3253

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

skipif mysql # not compatible
query I rowsort label-5023
SELECT DISTINCT COUNT ( * ) + + 53 / COUNT ( * ) + + 88 + - + COUNT ( * ) AS col1
----
141

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5024
SELECT ALL CAST( NULL AS SIGNED ) + - - 25 / + 30 + - - 40 * - 34 * + COALESCE ( 89, + - 79 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5024
SELECT ALL CAST ( NULL AS INTEGER ) + - - 25 / + 30 + - - 40 * - 34 * + COALESCE ( 89, + - 79 )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-5025
SELECT CAST ( NULL AS INTEGER ) * - 27 AS col2
----
NULL

query I rowsort
SELECT 72 + + - 16 AS col2
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-5027
SELECT DISTINCT - 67 * - 29 * - + COUNT( * ) AS col1
----
-1943

skipif mysql # not compatible
query I rowsort label-5027
SELECT DISTINCT - 67 * - 29 * - + COUNT ( * ) AS col1
----
-1943

query I rowsort
SELECT ALL + 49 * - - 20 AS col2
----
980

query II rowsort
SELECT 8 AS col0, + 44
----
8
44

onlyif mysql # aggregate syntax: 
query I rowsort label-5030
SELECT ALL COALESCE ( + COUNT( * ), - ( ( + SUM( 91 ) ) ) ) + - + 75 AS col0
----
-74

skipif mysql # not compatible
query I rowsort label-5030
SELECT ALL COALESCE ( + COUNT ( * ), - ( ( + SUM ( 91 ) ) ) ) + - + 75 AS col0
----
-74

query I rowsort
SELECT DISTINCT + 46 + + 54
----
100

query I rowsort
SELECT ALL - 24 - - 82 AS col2
----
58

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5033
SELECT ALL + - COUNT( * ) * - - 61 + + + 59 + - + COUNT( * ) / NULLIF ( 98, NULLIF ( - + COUNT( * ), - - 94 * + 87 ) ) * + + 23 - + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5033
SELECT ALL + - COUNT ( * ) * - - 61 + + + 59 + - + COUNT ( * ) / NULLIF ( 98, NULLIF ( - + COUNT ( * ), - - 94 * + 87 ) ) * + + 23 - + - CAST ( NULL AS REAL )
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5035
SELECT + 29 AS col0, CAST( NULL AS SIGNED )
----
29
NULL

skipif mysql # not compatible
query II rowsort label-5035
SELECT + 29 AS col0, CAST ( NULL AS INTEGER )
----
29
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5036
SELECT ALL - 24 AS col1, 89 - + ( - COUNT( * ) )
----
-24
90

skipif mysql # not compatible
query II rowsort label-5036
SELECT ALL - 24 AS col1, 89 - + ( - COUNT ( * ) )
----
-24
90

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

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

query I rowsort
SELECT 11 * - 30 col0
----
-330

onlyif mysql # DIV for integer division: 
query I rowsort label-5039
SELECT ALL + 72 DIV + + 84 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5039
SELECT ALL + 72 / + + 84 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5040
SELECT - COALESCE ( 85, 1 DIV + ( - ( + MAX( DISTINCT + 41 ) ) ) * + + 44 DIV + CAST( 38 AS SIGNED ) - - 23, + + 41 * - + 5 * 71 + + + 43 * - 37, + 51 )
----
-85

skipif mysql # not compatible
query I rowsort label-5040
SELECT - COALESCE ( 85, 1 / + ( - ( + MAX ( DISTINCT + 41 ) ) ) * + + 44 / + CAST ( 38 AS INTEGER ) - - 23, + + 41 * - + 5 * 71 + + + 43 * - 37, + 51 )
----
-85

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5042
SELECT 90 DIV 91 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5042
SELECT 90 / 91 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5043
SELECT ALL + COUNT( * ) * - 70 * - NULLIF ( 11, - + 96 * ( + COUNT( * ) ) ) * + 86
----
66220

skipif mysql # not compatible
query I rowsort label-5043
SELECT ALL + COUNT ( * ) * - 70 * - NULLIF ( 11, - + 96 * ( + COUNT ( * ) ) ) * + 86
----
66220

onlyif mysql # DIV for integer division: 
query I rowsort label-5044
SELECT - - 8 DIV 99 - + - 50
----
50

skipif mysql # not compatible
query I rowsort label-5044
SELECT - - 8 / 99 - + - 50
----
50

query I rowsort
SELECT ALL - + NULLIF ( CASE ( 34 ) WHEN + 26 THEN 26 + + 68 / - - 80 + + 32 ELSE NULL END, - 74 )
----
NULL

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5048
SELECT ALL 74 DIV - ( + - 50 )
----
1

skipif mysql # not compatible
query I rowsort label-5048
SELECT ALL 74 / - ( + - 50 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5049
SELECT ALL ( - - ( 85 ) ) + - COUNT( * ) AS col0, + COUNT( - 34 ) AS col0
----
84
1

skipif mysql # not compatible
query II rowsort label-5049
SELECT ALL ( - - ( 85 ) ) + - COUNT ( * ) AS col0, + COUNT ( - 34 ) AS col0
----
84
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5050
SELECT ALL 43 + MAX( ALL 20 ) + - - 97 DIV - 77 + - 28 AS col1
----
34

skipif mysql # not compatible
query I rowsort label-5050
SELECT ALL 43 + MAX ( ALL 20 ) + - - 97 / - 77 + - 28 AS col1
----
34

query I rowsort
SELECT ALL 2 + 56 - + 81
----
-23

query II rowsort
SELECT DISTINCT 73 + + 62 AS col1, + 9
----
135
9

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5054
SELECT COALESCE ( - ( - - 17 ), - MAX( + + 93 ) * - + COUNT( * ) + - 25 + 97 + - 25 ) + - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5054
SELECT COALESCE ( - ( - - 17 ), - MAX ( + + 93 ) * - + COUNT ( * ) + - 25 + 97 + - 25 ) + - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 1 * - 84 AS col0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-5056
SELECT - MIN( - 59 ) col2
----
59

skipif mysql # not compatible
query I rowsort label-5056
SELECT - MIN ( - 59 ) col2
----
59

onlyif mysql # aggregate syntax: 
query II rowsort label-5057
SELECT ALL 54 - - COUNT( * ), 50 AS col2
----
55
50

skipif mysql # not compatible
query II rowsort label-5057
SELECT ALL 54 - - COUNT ( * ), 50 AS col2
----
55
50

query I rowsort
SELECT - 76 * + 24 AS col1
----
-1824

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

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

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

skipif mysql # not compatible
query I rowsort label-5060
SELECT DISTINCT 64 / - + COUNT ( * ) + CAST ( NULL AS INTEGER ) AS col0
----
NULL

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

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

query I rowsort
SELECT 80 - + + 87 + 11 AS col0
----
4

query I rowsort
SELECT ALL - - 51 * 17
----
867

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5064
SELECT DISTINCT CAST( + 99 AS SIGNED ) * - ( + 11 ) AS col1
----
-1089

skipif mysql # not compatible
query I rowsort label-5064
SELECT DISTINCT CAST ( + 99 AS INTEGER ) * - ( + 11 ) AS col1
----
-1089

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5066
SELECT ALL + SUM( + 12 ) * + - ( MIN( ALL - + COALESCE ( - 69, + 5 + - ( 91 ) ) ) ) + + COALESCE ( + 53, 31 )
----
-775

skipif mysql # not compatible
query I rowsort label-5066
SELECT ALL + SUM ( + 12 ) * + - ( MIN ( ALL - + COALESCE ( - 69, + 5 + - ( 91 ) ) ) ) + + COALESCE ( + 53, 31 )
----
-775

query II rowsort
SELECT ALL ( + 22 ), 11 * - + 82 AS col1
----
22
-902

query I rowsort
SELECT - - 96 + - 22 * - 67
----
1570

onlyif mysql # aggregate syntax: 
query I rowsort label-5069
SELECT DISTINCT + CASE - 65 WHEN COUNT( * ) THEN NULL WHEN + 69 THEN + 58 * 7 / - ( - COUNT( * ) ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5069
SELECT DISTINCT + CASE - 65 WHEN COUNT ( * ) THEN NULL WHEN + 69 THEN + 58 * 7 / - ( - COUNT ( * ) ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5070
SELECT - 80 + - - 25 + + 83 + - - 97 * - COUNT( * ), 91 col0
----
-69
91

skipif mysql # not compatible
query II rowsort label-5070
SELECT - 80 + - - 25 + + 83 + - - 97 * - COUNT ( * ), 91 col0
----
-69
91

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

skipif mysql # not compatible
query I rowsort label-5071
SELECT - 38 * COUNT ( * ) / ( 68 ) * + 13
----
0

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5073
SELECT ALL - COUNT( * ) * 61 + - + 26, + 68 * + 85 AS col2
----
-87
5780

skipif mysql # not compatible
query II rowsort label-5073
SELECT ALL - COUNT ( * ) * 61 + - + 26, + 68 * + 85 AS col2
----
-87
5780

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5074
SELECT ALL 54 * + 13 + + - 28 + - - CAST( - ( - - ( 12 ) ) AS SIGNED ) col1
----
662

skipif mysql # not compatible
query I rowsort label-5074
SELECT ALL 54 * + 13 + + - 28 + - - CAST ( - ( - - ( 12 ) ) AS INTEGER ) col1
----
662

query I rowsort
SELECT - 8 * + 83 AS col2
----
-664

query I rowsort
SELECT ALL - 48 * - + 14
----
672

onlyif mysql # aggregate syntax: 
query I rowsort label-5077
SELECT DISTINCT + COALESCE ( + 98, + - 88 * 87 - - + 2 ) * + ( + 1 ) + - 34 + 32 * - COUNT( - 95 )
----
32

skipif mysql # not compatible
query I rowsort label-5077
SELECT DISTINCT + COALESCE ( + 98, + - 88 * 87 - - + 2 ) * + ( + 1 ) + - 34 + 32 * - COUNT ( - 95 )
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5078
SELECT DISTINCT - 55 * - + 95 + CAST( + + 59 AS SIGNED )
----
5284

skipif mysql # not compatible
query I rowsort label-5078
SELECT DISTINCT - 55 * - + 95 + CAST ( + + 59 AS INTEGER )
----
5284

query I rowsort
SELECT - 72 * - - 52 * + 86 AS col1
----
-321984

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5080
SELECT MIN( ALL 18 ) * 1 - CASE CAST( NULL AS SIGNED ) WHEN + - ( + - COUNT( * ) ) + + 78 + - - 61 * + 54 / - 92 / - ( MAX( + - 55 ) ) * + AVG ( DISTINCT 64 ) + - 78 THEN - COUNT( * ) WHEN + 2 THEN + + 29 ELSE 21 END + 14 + - 54 + - 1 AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-5080
SELECT MIN ( ALL 18 ) * 1 - CASE CAST ( NULL AS INTEGER ) WHEN + - ( + - COUNT ( * ) ) + + 78 + - - 61 * + 54 / - 92 / - ( MAX ( + - 55 ) ) * + AVG ( DISTINCT 64 ) + - 78 THEN - COUNT ( * ) WHEN + 2 THEN + + 29 ELSE 21 END + 14 + - 54 + - 1 AS col0
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-5081
SELECT - COUNT( * ) - - - ( - 40 ) col0
----
39

skipif mysql # not compatible
query I rowsort label-5081
SELECT - COUNT ( * ) - - - ( - 40 ) col0
----
39

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

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

query II rowsort
SELECT DISTINCT + 24 AS col2, - 48 AS col0
----
24
-48

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

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

query I rowsort
SELECT + 2 * 24 + - 56 AS col0
----
-8

query I rowsort
SELECT ALL 39 - - - 71
----
-32

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5088
SELECT + - 36 + + + 12 + - 21 * - - ( - COUNT( * ) )
----
-3

skipif mysql # not compatible
query I rowsort label-5088
SELECT + - 36 + + + 12 + - 21 * - - ( - COUNT ( * ) )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5089
SELECT ALL - SUM( + 25 )
----
-25

skipif mysql # not compatible
query I rowsort label-5089
SELECT ALL - SUM ( + 25 )
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-5090
SELECT ALL - + 33 * COUNT( * ) + - 91
----
-124

skipif mysql # not compatible
query I rowsort label-5090
SELECT ALL - + 33 * COUNT ( * ) + - 91
----
-124

onlyif mysql # aggregate syntax: 
query I rowsort label-5091
SELECT - COALESCE ( - 79, + - ( + COUNT( * ) ), 7 * - MAX( ALL + - 23 ) )
----
79

skipif mysql # not compatible
query I rowsort label-5091
SELECT - COALESCE ( - 79, + - ( + COUNT ( * ) ), 7 * - MAX ( ALL + - 23 ) )
----
79

query II rowsort
SELECT ALL 47 AS col1, - ( - 0 )
----
47
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5094
SELECT ALL - 89 DIV 57 + - ( 45 )
----
-46

skipif mysql # not compatible
query I rowsort label-5094
SELECT ALL - 89 / 57 + - ( 45 )
----
-46

query I rowsort
SELECT + NULLIF ( + 1, - + 75 ) * + 72 AS col1
----
72

query I rowsort
SELECT - 13 * + + 44 - 3 + - + 60 + 3 AS col1
----
-632

query II rowsort
SELECT ALL 82 + + 73 + - 21 AS col0, + 7 AS col1
----
134
7

query I rowsort
SELECT + 52 - + 22 AS col1
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5099
SELECT + CAST( - CASE + 70 WHEN MIN( - 99 ) / - 38 * + 63 * - 17 THEN NULL WHEN - - 26 THEN + + MIN( + 64 ) END AS SIGNED ) - CAST( + 22 AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5099
SELECT + CAST ( - CASE + 70 WHEN MIN ( - 99 ) / - 38 * + 63 * - 17 THEN NULL WHEN - - 26 THEN + + MIN ( + 64 ) END AS INTEGER ) - CAST ( + 22 AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5100
SELECT + - 48 * - SUM( 58 ) AS col2
----
2784

skipif mysql # not compatible
query I rowsort label-5100
SELECT + - 48 * - SUM ( 58 ) AS col2
----
2784

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

skipif mysql # not compatible
query I rowsort label-5101
SELECT ALL - COUNT ( * ) / - - 71 + + 57 / 39 AS col2
----
1

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

skipif mysql # not compatible
query I rowsort label-5102
SELECT DISTINCT + COUNT ( ALL 91 ) AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5103
SELECT ALL + 44 DIV + 63 * - COUNT( * ) + + ( - 74 ) * + - 64, - 63 DIV + 76 AS col0
----
4736
0

skipif mysql # not compatible
query II rowsort label-5103
SELECT ALL + 44 / + 63 * - COUNT ( * ) + + ( - 74 ) * + - 64, - 63 / + 76 AS col0
----
4736
0

query II rowsort
SELECT - 94 * + - 99 * 76 - - 14 + 49 * + 84, 42 AS col0
----
711386
42

query I rowsort
SELECT ALL + NULLIF ( 4, + 50 + - 38 ) AS col0
----
4

query II rowsort
SELECT ALL + 86 AS col0, + 17 AS col2
----
86
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5107
SELECT ALL + 78 DIV 22 + + COUNT( * ) AS col1
----
4

skipif mysql # not compatible
query I rowsort label-5107
SELECT ALL + 78 / 22 + + COUNT ( * ) AS col1
----
4

query II rowsort
SELECT DISTINCT + 99, - COALESCE ( - 82, + - 31 ) col0
----
99
82

query I rowsort
SELECT ALL + COALESCE ( + 37, + 57 * + 44 ) AS col2
----
37

query II rowsort
SELECT ( - + 24 ) col0, + 27 * - 6 * + 79 + + - 14 AS col2
----
-24
-12812

onlyif mysql # DIV for integer division: 
query I rowsort label-5111
SELECT 89 * 75 DIV + 99 + 16
----
83

skipif mysql # not compatible
query I rowsort label-5111
SELECT 89 * 75 / + 99 + 16
----
83

query I rowsort
SELECT - 55 * - 76 * - 82 AS col1
----
-342760

onlyif mysql # DIV for integer division: 
query I rowsort label-5113
SELECT DISTINCT 99 DIV - - 95 - + 22 + - 0
----
-21

skipif mysql # not compatible
query I rowsort label-5113
SELECT DISTINCT 99 / - - 95 - + 22 + - 0
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5114
SELECT ALL + CAST( NULL AS SIGNED ), 66 AS col2
----
NULL
66

skipif mysql # not compatible
query II rowsort label-5114
SELECT ALL + CAST ( NULL AS INTEGER ), 66 AS col2
----
NULL
66

query I rowsort
SELECT - 19 * + + 39 AS col0
----
-741

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5116
SELECT ALL - 17 DIV + + ( - SUM( - - 95 ) )
----
0

skipif mysql # not compatible
query I rowsort label-5116
SELECT ALL - 17 / + + ( - SUM ( - - 95 ) )
----
0

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5119
SELECT - MIN( - 82 ) * - - 0 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5119
SELECT - MIN ( - 82 ) * - - 0 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5120
SELECT - CASE + - 55 WHEN COUNT( * ) THEN NULL ELSE - + 57 END * + 66 AS col1
----
3762

skipif mysql # not compatible
query I rowsort label-5120
SELECT - CASE + - 55 WHEN COUNT ( * ) THEN NULL ELSE - + 57 END * + 66 AS col1
----
3762

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5121
SELECT - 11 * - CASE CAST( + 1 AS SIGNED ) WHEN - + 35 + CAST( NULL AS SIGNED ) - 41 / - 93 * - ( - + 47 ) + - 83 THEN + 10 WHEN - + 42 * - + 60 THEN - 54 ELSE NULL END * + + MIN( DISTINCT + + 35 ) * + MIN( - 78 ) / + NULLIF ( COUNT( * ), + - NULLIF ( - 58, 12 * + 28 / - 83 ) + - 28 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5121
SELECT - 11 * - CASE CAST ( + 1 AS INTEGER ) WHEN - + 35 + CAST ( NULL AS INTEGER ) - 41 / - 93 * - ( - + 47 ) + - 83 THEN + 10 WHEN - + 42 * - + 60 THEN - 54 ELSE NULL END * + + MIN ( DISTINCT + + 35 ) * + MIN ( - 78 ) / + NULLIF ( COUNT ( * ), + - NULLIF ( - 58, 12 * + 28 / - 83 ) + - 28 ) AS col0
----
NULL

query I rowsort
SELECT - + 70 + 32 * + 50
----
1530

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5123
SELECT + - CAST( NULL AS DECIMAL ) AS col1, - 82 + - 70
----
NULL
-152

skipif mysql # not compatible
query II rowsort label-5123
SELECT + - CAST ( NULL AS REAL ) AS col1, - 82 + - 70
----
NULL
-152

onlyif mysql # DIV for integer division: 
query I rowsort label-5124
SELECT + 95 DIV + 88 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5124
SELECT + 95 / + 88 AS col0
----
1

query I rowsort
SELECT - - 96 + 2 AS col1
----
98

onlyif mysql # DIV for integer division: 
query II rowsort label-5126
SELECT DISTINCT + 94, 52 DIV + 89 * + COALESCE ( + 44, + NULLIF ( + 71, 68 ) - - 50, 79 ) * 35 AS col1
----
94
0

skipif mysql # not compatible
query II rowsort label-5126
SELECT DISTINCT + 94, 52 / + 89 * + COALESCE ( + 44, + NULLIF ( + 71, 68 ) - - 50, 79 ) * 35 AS col1
----
94
0

query I rowsort
SELECT ALL - 67 * - 51 + + + 96 AS col0
----
3513

query I rowsort
SELECT - 14 + + 20
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5129
SELECT 88 + - 94 + + 96 * - 62 * + 72 * + CAST( + - 29 AS SIGNED ) * + - COUNT( * )
----
-12427782

skipif mysql # not compatible
query I rowsort label-5129
SELECT 88 + - 94 + + 96 * - 62 * + 72 * + CAST ( + - 29 AS INTEGER ) * + - COUNT ( * )
----
-12427782

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5130
SELECT ALL - 49 + + CAST( NULL AS SIGNED ) AS col0, 16 AS col2
----
NULL
16

skipif mysql # not compatible
query II rowsort label-5130
SELECT ALL - 49 + + CAST ( NULL AS INTEGER ) AS col0, 16 AS col2
----
NULL
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-5131
SELECT - 37 AS col2, ( + SUM( ALL - 7 ) ) col1, COUNT( * ) DIV - + COUNT( * ) + 70 AS col1
----
-37
-7
69

skipif mysql # not compatible
query III rowsort label-5131
SELECT - 37 AS col2, ( + SUM ( ALL - 7 ) ) col1, COUNT ( * ) / - + COUNT ( * ) + 70 AS col1
----
-37
-7
69

query I rowsort
SELECT - 97 + 31 col1
----
-66

query I rowsort
SELECT + 36 + 89 AS col1
----
125

onlyif mysql # aggregate syntax: 
query II rowsort label-5134
SELECT DISTINCT - 9 col0, 9 * MIN( DISTINCT ( - 19 ) )
----
-9
-171

skipif mysql # not compatible
query II rowsort label-5134
SELECT DISTINCT - 9 col0, 9 * MIN ( DISTINCT ( - 19 ) )
----
-9
-171

query I rowsort
SELECT ALL - 0 + + - 74 + 33 AS col0
----
-41

query I rowsort
SELECT + 20 - + - 97 + - 47
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-5137
SELECT ALL COUNT( * ) + + 75
----
76

skipif mysql # not compatible
query I rowsort label-5137
SELECT ALL COUNT ( * ) + + 75
----
76

query I rowsort
SELECT - ( 82 ) * - - 11 AS col0
----
-902

onlyif mysql # aggregate syntax: 
query I rowsort label-5139
SELECT DISTINCT MAX( ALL - 10 ) + + 79 AS col0
----
69

skipif mysql # not compatible
query I rowsort label-5139
SELECT DISTINCT MAX ( ALL - 10 ) + + 79 AS col0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-5140
SELECT COUNT( * ) * + 98 * - COUNT( * ) * + 5 AS col2
----
-490

skipif mysql # not compatible
query I rowsort label-5140
SELECT COUNT ( * ) * + 98 * - COUNT ( * ) * + 5 AS col2
----
-490

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5141
SELECT 60 + - 57 * CAST( NULL AS SIGNED ) * + 76 + - CAST( + - 75 AS SIGNED ) * - SUM( DISTINCT - CAST( + 44 AS SIGNED ) ) * - 40 col2, 55 + - 16 * + 54 AS col0
----
NULL
-809

skipif mysql # not compatible
query II rowsort label-5141
SELECT 60 + - 57 * CAST ( NULL AS INTEGER ) * + 76 + - CAST ( + - 75 AS INTEGER ) * - SUM ( DISTINCT - CAST ( + 44 AS INTEGER ) ) * - 40 col2, 55 + - 16 * + 54 AS col0
----
NULL
-809

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5142
SELECT DISTINCT ( COUNT( * ) ) DIV COALESCE ( 30, + + COALESCE ( + 71, + 80 + + 0 - - 4 * - + 77 * - 90 + - + COUNT( ALL 85 ), - - COUNT( * ) + + 66 * 94 ) ) + 84, - 43 * - - 78 AS col0
----
84
-3354

skipif mysql # not compatible
query II rowsort label-5142
SELECT DISTINCT ( COUNT ( * ) ) / COALESCE ( 30, + + COALESCE ( + 71, + 80 + + 0 - - 4 * - + 77 * - 90 + - + COUNT ( ALL 85 ), - - COUNT ( * ) + + 66 * 94 ) ) + 84, - 43 * - - 78 AS col0
----
84
-3354

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5143
SELECT COUNT( * ) DIV + 74 + + + SUM( DISTINCT - + 17 ) AS col0
----
-17

skipif mysql # not compatible
query I rowsort label-5143
SELECT COUNT ( * ) / + 74 + + + SUM ( DISTINCT - + 17 ) AS col0
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-5144
SELECT 76 DIV - 25 col0
----
-3

skipif mysql # not compatible
query I rowsort label-5144
SELECT 76 / - 25 col0
----
-3

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

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

query I rowsort
SELECT DISTINCT 78 - + - 59 AS col2
----
137

query I rowsort
SELECT ALL - 21 * + - 32 AS col1
----
672

query I rowsort
SELECT ALL + 58 - 84
----
-26

query I rowsort
SELECT ALL - NULLIF ( + 70, + + 31 )
----
-70

query I rowsort
SELECT + 51 * - + 69 + - 87 AS col1
----
-3606

query I rowsort
SELECT 75 * + + 0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5152
SELECT 49 DIV - 5 + + - 11 AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-5152
SELECT 49 / - 5 + + - 11 AS col0
----
-20

query I rowsort
SELECT 1 * - 76 * + 46 AS col0
----
-3496

onlyif mysql # aggregate syntax: 
query I rowsort label-5154
SELECT + MAX( - 58 ) * ( - 15 ) + - 28 col2
----
842

skipif mysql # not compatible
query I rowsort label-5154
SELECT + MAX ( - 58 ) * ( - 15 ) + - 28 col2
----
842

onlyif mysql # aggregate syntax: 
query I rowsort label-5155
SELECT 7 + 46 + - 24 + 87 * - 38 * - MAX( - - 87 )
----
287651

skipif mysql # not compatible
query I rowsort label-5155
SELECT 7 + 46 + - 24 + 87 * - 38 * - MAX ( - - 87 )
----
287651

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5156
SELECT ALL + CASE 5 WHEN 40 * + + 38 * + 32 + + - 23 / - AVG ( CAST( NULL AS SIGNED ) ) * - + COUNT( * ) THEN - NULLIF ( + 56, + 49 + + 89 ) WHEN + 90 * + - COUNT( * ) - + 4 THEN + COUNT( * ) END * + + 40 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5156
SELECT ALL + CASE 5 WHEN 40 * + + 38 * + 32 + + - 23 / - AVG ( CAST ( NULL AS INTEGER ) ) * - + COUNT ( * ) THEN - NULLIF ( + 56, + 49 + + 89 ) WHEN + 90 * + - COUNT ( * ) - + 4 THEN + COUNT ( * ) END * + + 40 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5157
SELECT 34 * + 94 + ( - + CAST( - 2 AS SIGNED ) )
----
3198

skipif mysql # not compatible
query I rowsort label-5157
SELECT 34 * + 94 + ( - + CAST ( - 2 AS INTEGER ) )
----
3198

onlyif mysql # aggregate syntax: 
query I rowsort label-5158
SELECT ALL COUNT( * ) + NULLIF ( ( + 43 ), + + 45 )
----
44

skipif mysql # not compatible
query I rowsort label-5158
SELECT ALL COUNT ( * ) + NULLIF ( ( + 43 ), + + 45 )
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5159
SELECT DISTINCT + + 32 * - 73 + - CASE - - COUNT( * ) WHEN - 70 THEN NULL WHEN 77 THEN NULLIF ( 12, + CAST( NULL AS DECIMAL ) / 92 * + - 86 + + CASE 39 WHEN - 68 * 49 + 38 THEN + - 80 ELSE NULL END ) + - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) + NULLIF ( 18, + NULLIF ( 37, - 50 ) ) + - + 79 WHEN COUNT( * ) THEN NULL WHEN 29 THEN 90 / + 44 + ( 67 ) ELSE NULL END * 37
----
NULL

skipif mysql # not compatible
query I rowsort label-5159
SELECT DISTINCT + + 32 * - 73 + - CASE - - COUNT ( * ) WHEN - 70 THEN NULL WHEN 77 THEN NULLIF ( 12, + CAST ( NULL AS REAL ) / 92 * + - 86 + + CASE 39 WHEN - 68 * 49 + 38 THEN + - 80 ELSE NULL END ) + - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) + NULLIF ( 18, + NULLIF ( 37, - 50 ) ) + - + 79 WHEN COUNT ( * ) THEN NULL WHEN 29 THEN 90 / + 44 + ( 67 ) ELSE NULL END * 37
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5160
SELECT ALL - ( - - 66 ) + - - CASE - 54 WHEN 88 / - + COUNT( - 60 ) THEN NULL WHEN + + 33 THEN + 37 - COUNT( * ) END + 27 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5160
SELECT ALL - ( - - 66 ) + - - CASE - 54 WHEN 88 / - + COUNT ( - 60 ) THEN NULL WHEN + + 33 THEN + 37 - COUNT ( * ) END + 27 AS col0
----
NULL

query I rowsort
SELECT + 54 + + + 67 * - 57
----
-3765

onlyif mysql # DIV for integer division: 
query I rowsort label-5162
SELECT 13 DIV + 13 + 71 AS col2
----
72

skipif mysql # not compatible
query I rowsort label-5162
SELECT 13 / + 13 + 71 AS col2
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-5163
SELECT DISTINCT + 62 + - - ( + - 69 ) + - ( - SUM( ALL 92 ) )
----
85

skipif mysql # not compatible
query I rowsort label-5163
SELECT DISTINCT + 62 + - - ( + - 69 ) + - ( - SUM ( ALL 92 ) )
----
85

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

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

query I rowsort
SELECT - CASE - ( + 16 ) WHEN + - 57 THEN + - 67 + - - 51 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5166
SELECT + COUNT( * ) DIV + 21 * CAST( + 60 AS SIGNED ) + - ( + NULLIF ( - COUNT( * ), + - ( 13 ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-5166
SELECT + COUNT ( * ) / + 21 * CAST ( + 60 AS INTEGER ) + - ( + NULLIF ( - COUNT ( * ), + - ( 13 ) ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5167
SELECT ALL - + MIN( ALL + 14 ) + - 93
----
-107

skipif mysql # not compatible
query I rowsort label-5167
SELECT ALL - + MIN ( ALL + 14 ) + - 93
----
-107

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5168
SELECT DISTINCT CASE + 28 WHEN - 92 + + + 68 + + MIN( - 1 ) * + - 33 THEN 17 WHEN + + CAST( NULL AS SIGNED ) / + 33 * - 66 * + - 34 THEN + - ( - - 25 ) ELSE + 64 END
----
64

skipif mysql # not compatible
query I rowsort label-5168
SELECT DISTINCT CASE + 28 WHEN - 92 + + + 68 + + MIN ( - 1 ) * + - 33 THEN 17 WHEN + + CAST ( NULL AS INTEGER ) / + 33 * - 66 * + - 34 THEN + - ( - - 25 ) ELSE + 64 END
----
64

onlyif mysql # aggregate syntax: 
query II rowsort label-5169
SELECT ALL MIN( DISTINCT + 92 ) AS col1, 99 * + + 90 * + 23 * + 65 AS col0
----
92
13320450

skipif mysql # not compatible
query II rowsort label-5169
SELECT ALL MIN ( DISTINCT + 92 ) AS col1, 99 * + + 90 * + 23 * + 65 AS col0
----
92
13320450

query II rowsort
SELECT 62 AS col1, 26 * - NULLIF ( - + 15, + 20 ) AS col2
----
62
390

query I rowsort
SELECT 31 - + + 40 * - 95
----
3831

onlyif mysql # aggregate syntax: 
query I rowsort label-5172
SELECT CASE + COALESCE ( ( - - 82 ), ( - - 62 ) - ( - + 90 ) ) WHEN - + ( + 38 ) THEN + + 60 + - - 55 + + 72 END * + CASE 83 WHEN - 82 THEN NULL WHEN COUNT( * ) THEN - COUNT( * ) / - 23 WHEN 25 + + + 61 + 72 + - MAX( - - 57 ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5172
SELECT CASE + COALESCE ( ( - - 82 ), ( - - 62 ) - ( - + 90 ) ) WHEN - + ( + 38 ) THEN + + 60 + - - 55 + + 72 END * + CASE 83 WHEN - 82 THEN NULL WHEN COUNT ( * ) THEN - COUNT ( * ) / - 23 WHEN 25 + + + 61 + 72 + - MAX ( - - 57 ) THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5173
SELECT ALL 85 * COUNT( * ) * 72 DIV - + 50 AS col1
----
-122

skipif mysql # not compatible
query I rowsort label-5173
SELECT ALL 85 * COUNT ( * ) * 72 / - + 50 AS col1
----
-122

onlyif mysql # aggregate syntax: 
query I rowsort label-5174
SELECT 40 - + COUNT( + + 80 )
----
39

skipif mysql # not compatible
query I rowsort label-5174
SELECT 40 - + COUNT ( + + 80 )
----
39

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5175
SELECT 76, SUM( + - CAST( NULL AS DECIMAL ) ) + + 77 / + COUNT( * ) * + ( - ( + CASE - + 71 WHEN 75 THEN NULL WHEN - COUNT( * ) * - 65 + 78 + + COUNT( * ) / 15 + + 24 * - 29 THEN NULL ELSE + - 64 + - + 80 END ) ) * 26 AS col1
----
76
NULL

skipif mysql # not compatible
query II rowsort label-5175
SELECT 76, SUM ( + - CAST ( NULL AS REAL ) ) + + 77 / + COUNT ( * ) * + ( - ( + CASE - + 71 WHEN 75 THEN NULL WHEN - COUNT ( * ) * - 65 + 78 + + COUNT ( * ) / 15 + + 24 * - 29 THEN NULL ELSE + - 64 + - + 80 END ) ) * 26 AS col1
----
76
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5176
SELECT MIN( ALL - NULLIF ( - 12, + 64 ) ) * + 45
----
540

skipif mysql # not compatible
query I rowsort label-5176
SELECT MIN ( ALL - NULLIF ( - 12, + 64 ) ) * + 45
----
540

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5178
SELECT MAX( ALL - - ( 61 ) ) AS col2, + 84 + + 85 + - 82 * + - 87 AS col2
----
61
7303

skipif mysql # not compatible
query II rowsort label-5178
SELECT MAX ( ALL - - ( 61 ) ) AS col2, + 84 + + 85 + - 82 * + - 87 AS col2
----
61
7303

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5179
SELECT ALL SUM( - 14 ) / + + NULLIF ( + + CAST( NULL AS SIGNED ), ( 82 ) / - CAST( - 39 AS SIGNED ) / + 44 * + 76 * + 5 + + COALESCE ( 74, - - 0 + 38 ) * MAX( + - ( + 36 ) ) ) + - + 88 * + + 94 / CAST( - COUNT( + 92 ) AS DECIMAL ) * - 21 * + COUNT( * ) + - - ( - 65 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5179
SELECT ALL SUM ( - 14 ) / + + NULLIF ( + + CAST ( NULL AS INTEGER ), ( 82 ) / - CAST ( - 39 AS INTEGER ) / + 44 * + 76 * + 5 + + COALESCE ( 74, - - 0 + 38 ) * MAX ( + - ( + 36 ) ) ) + - + 88 * + + 94 / CAST ( - COUNT ( + 92 ) AS REAL ) * - 21 * + COUNT ( * ) + - - ( - 65 )
----
NULL

query II rowsort
SELECT ALL - 11, 41 col1
----
-11
41

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5182
SELECT ( + COUNT( * ) ) * - 80, 40 AS col1
----
-80
40

skipif mysql # not compatible
query II rowsort label-5182
SELECT ( + COUNT ( * ) ) * - 80, 40 AS col1
----
-80
40

onlyif mysql # DIV for integer division: 
query I rowsort label-5183
SELECT ( + 30 ) DIV + 78 - 24 AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-5183
SELECT ( + 30 ) / + 78 - 24 AS col1
----
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-5184
SELECT DISTINCT 36 DIV - - 16
----
2

skipif mysql # not compatible
query I rowsort label-5184
SELECT DISTINCT 36 / - - 16
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5185
SELECT 63 * - 69 * - - 90 * - COUNT( * ) + - + 86 AS col2
----
391144

skipif mysql # not compatible
query I rowsort label-5185
SELECT 63 * - 69 * - - 90 * - COUNT ( * ) + - + 86 AS col2
----
391144

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5187
SELECT - 16 DIV - - 85 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5187
SELECT - 16 / - - 85 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5188
SELECT ALL ( + SUM( DISTINCT 2 ) ) * 75 * 62 - + + 89 + - 73 + + 92 + + 88 DIV 97 + + - 21 + + 53
----
9262

skipif mysql # not compatible
query I rowsort label-5188
SELECT ALL ( + SUM ( DISTINCT 2 ) ) * 75 * 62 - + + 89 + - 73 + + 92 + + 88 / 97 + + - 21 + + 53
----
9262

query I rowsort
SELECT DISTINCT + 30 * 67 + - 11 AS col1
----
1999

onlyif mysql # aggregate syntax: 
query I rowsort label-5190
SELECT DISTINCT + COALESCE ( COUNT( * ), + 27 * - - COUNT( * ) - - 82 )
----
1

skipif mysql # not compatible
query I rowsort label-5190
SELECT DISTINCT + COALESCE ( COUNT ( * ), + 27 * - - COUNT ( * ) - - 82 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5191
SELECT DISTINCT + - CASE COUNT( * ) WHEN + - 87 THEN - 27 END * + CASE - 76 WHEN - 33 THEN - - 1 * 65 END + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5191
SELECT DISTINCT + - CASE COUNT ( * ) WHEN + - 87 THEN - 27 END * + CASE - 76 WHEN - 33 THEN - - 1 * 65 END + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 2 * + 91 + + 75
----
257

query I rowsort
SELECT ALL 35 + - + 4 AS col1
----
31

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

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

query I rowsort
SELECT ALL + - ( 81 ) col2
----
-81

query I rowsort
SELECT DISTINCT - ( + + CASE + + 38 WHEN - 36 THEN NULL ELSE - + 61 + - 98 END ) AS col1
----
159

onlyif mysql # aggregate syntax: 
query II rowsort label-5197
SELECT ALL + 67 + - ( - 68 ) AS col0, - 54 * COUNT( * ) + - 25 + 29 AS col0
----
135
-50

skipif mysql # not compatible
query II rowsort label-5197
SELECT ALL + 67 + - ( - 68 ) AS col0, - 54 * COUNT ( * ) + - 25 + 29 AS col0
----
135
-50

onlyif mysql # aggregate syntax: 
query II rowsort label-5198
SELECT + - MAX( - 91 ) * 25 AS col2, 46
----
2275
46

skipif mysql # not compatible
query II rowsort label-5198
SELECT + - MAX ( - 91 ) * 25 AS col2, 46
----
2275
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5199
SELECT DISTINCT NULLIF ( + CAST( NULL AS SIGNED ), + + 49 ) - + - NULLIF ( 45, + 84 * - 1 ) - + 40 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5199
SELECT DISTINCT NULLIF ( + CAST ( NULL AS INTEGER ), + + 49 ) - + - NULLIF ( 45, + 84 * - 1 ) - + 40 AS col2
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5201
SELECT - - COALESCE ( - MIN( DISTINCT - - 29 ), + + 97 - + ( - - 49 ) - - COALESCE ( + 35, - CAST( + + COUNT( * ) AS SIGNED ) DIV + 89 * + SUM( DISTINCT 86 ) + - 0 - 14 ) ) + 12 DIV - + 84 AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-5201
SELECT - - COALESCE ( - MIN ( DISTINCT - - 29 ), + + 97 - + ( - - 49 ) - - COALESCE ( + 35, - CAST ( + + COUNT ( * ) AS INTEGER ) / + 89 * + SUM ( DISTINCT 86 ) + - 0 - 14 ) ) + 12 / - + 84 AS col0
----
-29

query I rowsort
SELECT - + 37 + + ( - - ( + 35 ) )
----
-2

query I rowsort
SELECT + - 67 * + 13 AS col2
----
-871

query I rowsort
SELECT - 74 + + - 7 AS col1
----
-81

query I rowsort
SELECT - 79 * 69
----
-5451

query I rowsort
SELECT - 50 + + 84 AS col2
----
34

onlyif mysql # aggregate syntax: 
query II rowsort label-5207
SELECT ALL CASE + - 39 WHEN + + 31 THEN NULL ELSE COUNT( * ) END, - 9 col0
----
1
-9

skipif mysql # not compatible
query II rowsort label-5207
SELECT ALL CASE + - 39 WHEN + + 31 THEN NULL ELSE COUNT ( * ) END, - 9 col0
----
1
-9

query I rowsort
SELECT DISTINCT + ( - - 97 ) * - + 32 * + 0 + 45
----
45

query I rowsort
SELECT ALL NULLIF ( - 35, + - 59 ) AS col1
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5210
SELECT DISTINCT CASE - - 32 WHEN 73 + + 55 THEN + COUNT( * ) + 30 / - 30 + - - 90 WHEN + - SUM( DISTINCT - CAST( NULL AS SIGNED ) ) + 6 THEN 35 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5210
SELECT DISTINCT CASE - - 32 WHEN 73 + + 55 THEN + COUNT ( * ) + 30 / - 30 + - - 90 WHEN + - SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) + 6 THEN 35 END AS col0
----
NULL

query I rowsort
SELECT - ( + ( - 85 ) ) + 47 AS col1
----
132

query I rowsort
SELECT ALL + 86 + + 6 AS col1
----
92

onlyif mysql # DIV for integer division: 
query II rowsort label-5213
SELECT ALL ( 96 ), + 97 DIV - - 92 + + - 59 + + 43 AS col0
----
96
-15

skipif mysql # not compatible
query II rowsort label-5213
SELECT ALL ( 96 ), + 97 / - - 92 + + - 59 + + 43 AS col0
----
96
-15

query I rowsort
SELECT + NULLIF ( + 3, + - ( + + 93 ) * - + 64 + - - 81 * - - 30 ) AS col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5215
SELECT ALL CASE - COUNT( * ) WHEN - 48 THEN NULL WHEN - - 91 + + COUNT( * ) THEN - 77 END / + 35 + + + 12 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5215
SELECT ALL CASE - COUNT ( * ) WHEN - 48 THEN NULL WHEN - - 91 + + COUNT ( * ) THEN - 77 END / + 35 + + + 12 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5216
SELECT DISTINCT + 54 * - 8 * + 48 * ( 21 ) + + 22 / + CAST( NULL AS SIGNED ) * 55 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5216
SELECT DISTINCT + 54 * - 8 * + 48 * ( 21 ) + + 22 / + CAST ( NULL AS INTEGER ) * 55 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5217
SELECT ALL - CAST( - 5 AS SIGNED ) * - 99 * COUNT( ALL - 62 ) DIV - 83 + + 47 * - 87 * - + 74 + - + 5 col0
----
302586

skipif mysql # not compatible
query I rowsort label-5217
SELECT ALL - CAST ( - 5 AS INTEGER ) * - 99 * COUNT ( ALL - 62 ) / - 83 + + 47 * - 87 * - + 74 + - + 5 col0
----
302586

onlyif mysql # DIV for integer division: 
query I rowsort label-5218
SELECT DISTINCT 62 DIV + 98 + 98 + - 64 AS col0
----
34

skipif mysql # not compatible
query I rowsort label-5218
SELECT DISTINCT 62 / + 98 + 98 + - 64 AS col0
----
34

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5220
SELECT + CAST( NULL AS SIGNED ) + - + 73 * + ( + 89 ) + 10 + + 49
----
NULL

skipif mysql # not compatible
query I rowsort label-5220
SELECT + CAST ( NULL AS INTEGER ) + - + 73 * + ( + 89 ) + 10 + + 49
----
NULL

query I rowsort
SELECT + 50 + + 93 AS col1
----
143

onlyif mysql # aggregate syntax: 
query I rowsort label-5222
SELECT - 89 * + - COUNT( DISTINCT + 12 ) * 40 + - + 57 AS col2
----
3503

skipif mysql # not compatible
query I rowsort label-5222
SELECT - 89 * + - COUNT ( DISTINCT + 12 ) * 40 + - + 57 AS col2
----
3503

onlyif mysql # aggregate syntax: 
query I rowsort label-5223
SELECT ALL COUNT( * ) * ( + 46 ) * 52 AS col1
----
2392

skipif mysql # not compatible
query I rowsort label-5223
SELECT ALL COUNT ( * ) * ( + 46 ) * 52 AS col1
----
2392

onlyif mysql # aggregate syntax: 
query I rowsort label-5224
SELECT ALL - - 42 * 65 - + - 52 + - COUNT( DISTINCT - 50 ) - + 46 * MIN( DISTINCT - 50 )
----
5081

skipif mysql # not compatible
query I rowsort label-5224
SELECT ALL - - 42 * 65 - + - 52 + - COUNT ( DISTINCT - 50 ) - + 46 * MIN ( DISTINCT - 50 )
----
5081

onlyif mysql # aggregate syntax: 
query I rowsort label-5225
SELECT ALL 60 * - COALESCE ( - 86, + COUNT( * ), 11 * + MAX( - - 66 ) ) + - 77
----
5083

skipif mysql # not compatible
query I rowsort label-5225
SELECT ALL 60 * - COALESCE ( - 86, + COUNT ( * ), 11 * + MAX ( - - 66 ) ) + - 77
----
5083

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5226
SELECT + ( NULLIF ( + - 12, CAST( - 27 AS DECIMAL ) ) )
----
-12

skipif mysql # not compatible
query I rowsort label-5226
SELECT + ( NULLIF ( + - 12, CAST ( - 27 AS REAL ) ) )
----
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-5227
SELECT + - COUNT( * ) * - 92 col0, 86 AS col1
----
92
86

skipif mysql # not compatible
query II rowsort label-5227
SELECT + - COUNT ( * ) * - 92 col0, 86 AS col1
----
92
86

query I rowsort
SELECT ALL - 77 * + ( + 40 )
----
-3080

onlyif mysql # aggregate syntax: 
query I rowsort label-5229
SELECT + COALESCE ( + 33, - 36 * - - 13 + - COALESCE ( - 36, + 51 * + 69 - 63 + + 51 * - 32 + 41 + + 43 ) + 20 + - SUM( 58 ) * 2, - 97 ) * 62 AS col1
----
2046

skipif mysql # not compatible
query I rowsort label-5229
SELECT + COALESCE ( + 33, - 36 * - - 13 + - COALESCE ( - 36, + 51 * + 69 - 63 + + 51 * - 32 + 41 + + 43 ) + 20 + - SUM ( 58 ) * 2, - 97 ) * 62 AS col1
----
2046

onlyif mysql # aggregate syntax: 
query I rowsort label-5230
SELECT DISTINCT - - COUNT( * ) * - - 87 - + NULLIF ( - 65, 25 / 86 - - 34 + + 18 - + CASE COUNT( * ) WHEN 23 * - MIN( ALL + - 0 ) THEN - ( + 35 ) * + NULLIF ( 90, - + 54 ) + + + 97 + + 56 + 8 * - - 5 WHEN - 33 THEN NULL WHEN + 68 THEN NULL ELSE 57 + 8 END + + - 27 + - 17 + - 54 * - 70 + 67 )
----
152

skipif mysql # not compatible
query I rowsort label-5230
SELECT DISTINCT - - COUNT ( * ) * - - 87 - + NULLIF ( - 65, 25 / 86 - - 34 + + 18 - + CASE COUNT ( * ) WHEN 23 * - MIN ( ALL + - 0 ) THEN - ( + 35 ) * + NULLIF ( 90, - + 54 ) + + + 97 + + 56 + 8 * - - 5 WHEN - 33 THEN NULL WHEN + 68 THEN NULL ELSE 57 + 8 END + + - 27 + - 17 + - 54 * - 70 + 67 )
----
152

query I rowsort
SELECT - 56 + - + ( - 98 )
----
42

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5232
SELECT ALL CASE - MAX( DISTINCT - 56 ) WHEN CAST( + - 16 AS DECIMAL ) THEN NULL WHEN - ( - 70 ) * - 38 * 91 + + + 23 * + 17 THEN - 72 ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5232
SELECT ALL CASE - MAX ( DISTINCT - 56 ) WHEN CAST ( + - 16 AS REAL ) THEN NULL WHEN - ( - 70 ) * - 38 * 91 + + + 23 * + 17 THEN - 72 ELSE NULL END col1
----
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-5234
SELECT SUM ( ALL 48 )
----
48

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

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

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

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

query I rowsort
SELECT + 67 + + 52 + - 73 + ( - - 78 ) * 31 * - - 40 * + - 11 + 17 AS col1
----
-1063857

onlyif mysql # aggregate syntax: 
query II rowsort label-5238
SELECT - 72 * - - ( 86 ) / + + CASE - + 10 WHEN - 82 THEN NULL WHEN - 24 - - + 20 + 95 THEN 90 END col0, - COALESCE ( + - 96, + + 22, - - COUNT( * ) * - 59 * COUNT( * ) ) col2
----
NULL
96

skipif mysql # not compatible
query II rowsort label-5238
SELECT - 72 * - - ( 86 ) / + + CASE - + 10 WHEN - 82 THEN NULL WHEN - 24 - - + 20 + 95 THEN 90 END col0, - COALESCE ( + - 96, + + 22, - - COUNT ( * ) * - 59 * COUNT ( * ) ) col2
----
NULL
96

onlyif mysql # DIV for integer division: 
query I rowsort label-5239
SELECT - 90 DIV - 42 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-5239
SELECT - 90 / - 42 AS col0
----
2

query I rowsort
SELECT - 36 + - 96 + - 22 AS col2
----
-154

query I rowsort
SELECT ALL 60 + - 94 * - + 46
----
4384

query I rowsort
SELECT ALL 18 + + 58
----
76

onlyif mysql # DIV for integer division: 
query I rowsort label-5243
SELECT DISTINCT - NULLIF ( + 68, 65 ) DIV 3 + + 29 AS col1
----
7

skipif mysql # not compatible
query I rowsort label-5243
SELECT DISTINCT - NULLIF ( + 68, 65 ) / 3 + + 29 AS col1
----
7

query I rowsort
SELECT ALL + 55 + 60 col0
----
115

query I rowsort
SELECT ALL - 0 + + CASE ( - + 26 ) WHEN 74 - + + 55 THEN + - AVG ( DISTINCT + - 32 ) ELSE NULL END * 16 * 21 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5246
SELECT ALL - 28 DIV COALESCE ( 31, - - 83 DIV - + COUNT( DISTINCT 49 ), - ( + + 93 ) * + ( - COUNT( * ) ) ) * 40
----
0

skipif mysql # not compatible
query I rowsort label-5246
SELECT ALL - 28 / COALESCE ( 31, - - 83 / - + COUNT ( DISTINCT 49 ), - ( + + 93 ) * + ( - COUNT ( * ) ) ) * 40
----
0

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

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

query I rowsort
SELECT 0 * - 48 - + 72
----
-72

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

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

query I rowsort
SELECT ALL - 33 + 67 + - + 91 + 93 * - 4 * - 95 + 70
----
35353

onlyif mysql # aggregate syntax: 
query I rowsort label-5251
SELECT 12 * - - 76 * + - CASE + 64 WHEN 7 THEN NULL WHEN 5 THEN NULL ELSE 14 + - - COUNT( * ) END + - 65 + + 26 * + 16
----
-13329

skipif mysql # not compatible
query I rowsort label-5251
SELECT 12 * - - 76 * + - CASE + 64 WHEN 7 THEN NULL WHEN 5 THEN NULL ELSE 14 + - - COUNT ( * ) END + - 65 + + 26 * + 16
----
-13329

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

skipif mysql # not compatible
query I rowsort label-5252
SELECT MAX ( ALL - 66 )
----
-66

query II rowsort
SELECT + 12 AS col2, 87
----
12
87

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5254
SELECT 87 AS col1, COALESCE ( - 23, - 24 * + - CAST( NULL AS SIGNED ) * - - 71 + - 76 ) AS col1
----
87
-23

skipif mysql # not compatible
query II rowsort label-5254
SELECT 87 AS col1, COALESCE ( - 23, - 24 * + - CAST ( NULL AS INTEGER ) * - - 71 + - 76 ) AS col1
----
87
-23

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5256
SELECT - 95 * + ( 47 ) + - + 75 + COUNT( 47 ) * 38 * ( 1 ) * 30, 86 * - + 50 AS col1
----
-3400
-4300

skipif mysql # not compatible
query II rowsort label-5256
SELECT - 95 * + ( 47 ) + - + 75 + COUNT ( 47 ) * 38 * ( 1 ) * 30, 86 * - + 50 AS col1
----
-3400
-4300

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5258
SELECT SUM( ALL - 67 ) * + 1 + + 69 + - NULLIF ( - 80, + - 65 + + + 45 + + + 38 * - ( + 2 ) ) AS col1
----
82

skipif mysql # not compatible
query I rowsort label-5258
SELECT SUM ( ALL - 67 ) * + 1 + + 69 + - NULLIF ( - 80, + - 65 + + + 45 + + + 38 * - ( + 2 ) ) AS col1
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-5259
SELECT + ( - - COUNT( * ) ) + - + CASE + - 71 WHEN + - 11 THEN NULL ELSE ( + 22 ) END * 42 AS col2
----
-923

skipif mysql # not compatible
query I rowsort label-5259
SELECT + ( - - COUNT ( * ) ) + - + CASE + - 71 WHEN + - 11 THEN NULL ELSE ( + 22 ) END * 42 AS col2
----
-923

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5260
SELECT DISTINCT - CAST( - ( MAX( + 18 ) ) AS SIGNED ) AS col2
----
18

skipif mysql # not compatible
query I rowsort label-5260
SELECT DISTINCT - CAST ( - ( MAX ( + 18 ) ) AS INTEGER ) AS col2
----
18

query I rowsort
SELECT 37 + + 63
----
100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5262
SELECT + 7 * - CASE + 56 WHEN 69 THEN NULL WHEN 30 + + MIN( ALL - CAST( NULL AS SIGNED ) ) - - 49 - + + 8 THEN NULL ELSE + 70 END * + COUNT( * ) * 6 * 12 * - - 87 + + 59 DIV 82 * + 31
----
-3069360

skipif mysql # not compatible
query I rowsort label-5262
SELECT + 7 * - CASE + 56 WHEN 69 THEN NULL WHEN 30 + + MIN ( ALL - CAST ( NULL AS INTEGER ) ) - - 49 - + + 8 THEN NULL ELSE + 70 END * + COUNT ( * ) * 6 * 12 * - - 87 + + 59 / 82 * + 31
----
-3069360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5263
SELECT DISTINCT + CAST( - COUNT( ALL 23 ) AS SIGNED ) DIV + 49 * 12
----
0

skipif mysql # not compatible
query I rowsort label-5263
SELECT DISTINCT + CAST ( - COUNT ( ALL 23 ) AS INTEGER ) / + 49 * 12
----
0

query I rowsort
SELECT ALL 26 * - - ( - 84 )
----
-2184

query I rowsort
SELECT ALL 85 * 19 AS col2
----
1615

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5267
SELECT DISTINCT 20 + + 8 + + - 6 * + 78 DIV - 73
----
34

skipif mysql # not compatible
query I rowsort label-5267
SELECT DISTINCT 20 + + 8 + + - 6 * + 78 / - 73
----
34

query I rowsort
SELECT ALL 79 + + + 51
----
130

query II rowsort
SELECT - 70 col1, 30 * + 59
----
-70
1770

query I rowsort
SELECT 95 + 21
----
116

onlyif mysql # aggregate syntax: 
query II rowsort label-5271
SELECT ALL 26, + 43 + + 89 * - 10 * - 83 * - COUNT( * ) * - - ( - 56 ) AS col1
----
26
4136763

skipif mysql # not compatible
query II rowsort label-5271
SELECT ALL 26, + 43 + + 89 * - 10 * - 83 * - COUNT ( * ) * - - ( - 56 ) AS col1
----
26
4136763

query I rowsort
SELECT ( + 60 ) + - 87 col2
----
-27

query I rowsort
SELECT 84 * + 80 AS col1
----
6720

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5274
SELECT ALL 19 + 96 * 29 * + CASE + 86 WHEN - 76 + + 14 * - - COUNT( * ) THEN + CAST( + 29 AS SIGNED ) WHEN + 25 + - + CASE + MIN( DISTINCT + + 91 ) WHEN 40 / - 58 THEN NULL WHEN + - 97 THEN NULL WHEN 80 + - 77 THEN - 69 ELSE NULL END + + CASE 20 WHEN - 88 + CAST( NULL AS SIGNED ) THEN 2 * 76 ELSE - - 11 * + COUNT( * ) + - 95 END THEN NULL WHEN + 96 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5274
SELECT ALL 19 + 96 * 29 * + CASE + 86 WHEN - 76 + + 14 * - - COUNT ( * ) THEN + CAST ( + 29 AS INTEGER ) WHEN + 25 + - + CASE + MIN ( DISTINCT + + 91 ) WHEN 40 / - 58 THEN NULL WHEN + - 97 THEN NULL WHEN 80 + - 77 THEN - 69 ELSE NULL END + + CASE 20 WHEN - 88 + CAST ( NULL AS INTEGER ) THEN 2 * 76 ELSE - - 11 * + COUNT ( * ) + - 95 END THEN NULL WHEN + 96 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + 68 + - 31
----
37

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5277
SELECT DISTINCT 71 DIV MAX( DISTINCT + 47 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5277
SELECT DISTINCT 71 / MAX ( DISTINCT + 47 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5278
SELECT 10 + + 67 * COUNT( * )
----
77

skipif mysql # not compatible
query I rowsort label-5278
SELECT 10 + + 67 * COUNT ( * )
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5279
SELECT DISTINCT 6 + COUNT( * ) + - 84
----
-77

skipif mysql # not compatible
query I rowsort label-5279
SELECT DISTINCT 6 + COUNT ( * ) + - 84
----
-77

query I rowsort
SELECT + ( 99 ) * 93 AS col0
----
9207

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5281
SELECT CAST( NULL AS SIGNED ) * COUNT( * ) / - - 44
----
NULL

skipif mysql # not compatible
query I rowsort label-5281
SELECT CAST ( NULL AS INTEGER ) * COUNT ( * ) / - - 44
----
NULL

query I rowsort
SELECT 26 * + - 10
----
-260

onlyif mysql # aggregate syntax: 
query I rowsort label-5283
SELECT ALL + 1 - 84 + - 9 - - 42 * + 15 * COUNT( ALL - 95 ) * - - 33 col1
----
20698

skipif mysql # not compatible
query I rowsort label-5283
SELECT ALL + 1 - 84 + - 9 - - 42 * + 15 * COUNT ( ALL - 95 ) * - - 33 col1
----
20698

query I rowsort
SELECT DISTINCT - 43 * 39 * ( ( 93 ) ) AS col1
----
-155961

query II rowsort
SELECT ALL - - 68 - + 79 AS col1, 88 AS col2
----
-11
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5286
SELECT DISTINCT + - COUNT( * ) DIV 68 DIV - CASE 53 WHEN 38 THEN + - COALESCE ( + COUNT( * ), - - CAST( NULL AS SIGNED ) ) WHEN 82 THEN CASE + ( + CAST( + 57 AS SIGNED ) ) WHEN + 69 THEN + 30 ELSE + 94 END WHEN - 37 + - COUNT( * ) * - COUNT( * ) - + COUNT( * ) THEN - 37 + - 58 ELSE + 47 * - 40 - - 33 * - 5 - 7 * 10 + + + 37 * - NULLIF ( - + 13, - 39 + + CASE WHEN NOT + ( - 58 ) = ( 70 + CAST( 61 AS SIGNED ) ) THEN - ( 36 ) END ) END * + 89
----
0

skipif mysql # not compatible
query I rowsort label-5286
SELECT DISTINCT + - COUNT ( * ) / 68 / - CASE 53 WHEN 38 THEN + - COALESCE ( + COUNT ( * ), - - CAST ( NULL AS INTEGER ) ) WHEN 82 THEN CASE + ( + CAST ( + 57 AS INTEGER ) ) WHEN + 69 THEN + 30 ELSE + 94 END WHEN - 37 + - COUNT ( * ) * - COUNT ( * ) - + COUNT ( * ) THEN - 37 + - 58 ELSE + 47 * - 40 - - 33 * - 5 - 7 * 10 + + + 37 * - NULLIF ( - + 13, - 39 + + CASE WHEN NOT + ( - 58 ) = ( 70 + CAST ( 61 AS INTEGER ) ) THEN - ( 36 ) END ) END * + 89
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5287
SELECT + 34 + COUNT( * ), CASE - 78 WHEN + + COUNT( * ) - - 43 THEN NULL WHEN COUNT( * ) THEN NULL ELSE + - 0 END AS col1
----
35
0

skipif mysql # not compatible
query II rowsort label-5287
SELECT + 34 + COUNT ( * ), CASE - 78 WHEN + + COUNT ( * ) - - 43 THEN NULL WHEN COUNT ( * ) THEN NULL ELSE + - 0 END AS col1
----
35
0

query I rowsort
SELECT ALL - + NULLIF ( + 92, + 97 )
----
-92

query I rowsort
SELECT 72 + - - 84 col1
----
156

onlyif mysql # aggregate syntax: 
query III rowsort label-5290
SELECT + + 59 AS col0, + 94 * + + 38 - + - 56, + - MAX( DISTINCT 94 ) AS col1
----
59
3628
-94

skipif mysql # not compatible
query III rowsort label-5290
SELECT + + 59 AS col0, + 94 * + + 38 - + - 56, + - MAX ( DISTINCT 94 ) AS col1
----
59
3628
-94

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

skipif mysql # not compatible
query I rowsort label-5291
SELECT 3 + NULLIF ( - + COUNT ( * ), + 20 )
----
2

query I rowsort
SELECT DISTINCT - 27 * 23
----
-621

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5293
SELECT ALL - - CASE + 29 WHEN + - 52 + - ( COUNT( * ) ) * - 29 THEN NULL WHEN - 55 THEN + + 61 WHEN - 42 + - - 74 + 61 - - CASE 28 WHEN 44 + + + 29 THEN - 21 ELSE NULL END - 22 * + 52 + + 57 * - - 86 THEN + COUNT( * ) * + 98 + + 90 + - - 61 WHEN 82 * 69 - 16 + + CASE - - CAST( - - 67 AS SIGNED ) WHEN + 36 * + COALESCE ( CAST( - 93 AS SIGNED ) + 43, 19 ) THEN - AVG ( 27 ) WHEN 8 + - 17 THEN 42 + 47 * 26 ELSE NULL END THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5293
SELECT ALL - - CASE + 29 WHEN + - 52 + - ( COUNT ( * ) ) * - 29 THEN NULL WHEN - 55 THEN + + 61 WHEN - 42 + - - 74 + 61 - - CASE 28 WHEN 44 + + + 29 THEN - 21 ELSE NULL END - 22 * + 52 + + 57 * - - 86 THEN + COUNT ( * ) * + 98 + + 90 + - - 61 WHEN 82 * 69 - 16 + + CASE - - CAST ( - - 67 AS INTEGER ) WHEN + 36 * + COALESCE ( CAST ( - 93 AS INTEGER ) + 43, 19 ) THEN - AVG ( 27 ) WHEN 8 + - 17 THEN 42 + 47 * 26 ELSE NULL END THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5294
SELECT 52 * CASE + 93 WHEN + 44 * - 6 THEN + + 2 + - + COUNT( * ) END + - 56 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5294
SELECT 52 * CASE + 93 WHEN + 44 * - 6 THEN + + 2 + - + COUNT ( * ) END + - 56 col0
----
NULL

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

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

query II rowsort
SELECT DISTINCT - - ( - 24 ) * - - ( - 57 ) AS col1, - 35
----
1368
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-5297
SELECT ALL 15 + - ( + + 26 ) + + COUNT( * ) + - + 2 * + 53 * - - 98 * + - 93 col2
----
966074

skipif mysql # not compatible
query I rowsort label-5297
SELECT ALL 15 + - ( + + 26 ) + + COUNT ( * ) + - + 2 * + 53 * - - 98 * + - 93 col2
----
966074

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

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

query I rowsort
SELECT DISTINCT - 17 + + 48
----
31

query II rowsort
SELECT ALL - 99 + - + 68 AS col1, + ( - - 42 ) AS col1
----
-167
42

query I rowsort
SELECT 65 * + + 35 AS col1
----
2275

onlyif mysql # DIV for integer division: 
query I rowsort label-5302
SELECT ALL 73 DIV + ( + 95 )
----
0

skipif mysql # not compatible
query I rowsort label-5302
SELECT ALL 73 / + ( + 95 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5303
SELECT ALL 31 + + + 73 + - - 99 * - - 84 + - - COUNT( * ) * - 24
----
8396

skipif mysql # not compatible
query I rowsort label-5303
SELECT ALL 31 + + + 73 + - - 99 * - - 84 + - - COUNT ( * ) * - 24
----
8396

query I rowsort
SELECT ALL - 0 + - 85
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-5305
SELECT ALL NULLIF ( + 21, + + 37 ) + 3 + MIN( + 57 ) AS col1
----
81

skipif mysql # not compatible
query I rowsort label-5305
SELECT ALL NULLIF ( + 21, + + 37 ) + 3 + MIN ( + 57 ) AS col1
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5306
SELECT + CAST( NULL AS SIGNED ) * MIN( DISTINCT 74 ) / 80 + + 16 * COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5306
SELECT + CAST ( NULL AS INTEGER ) * MIN ( DISTINCT 74 ) / 80 + + 16 * COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT ALL 1 + + + 95 AS col2
----
96

query I rowsort
SELECT + 7 - - - 56
----
-49

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5310
SELECT - NULLIF ( - 98, CAST( + 56 AS SIGNED ) - + 59 * + 57 )
----
98

skipif mysql # not compatible
query I rowsort label-5310
SELECT - NULLIF ( - 98, CAST ( + 56 AS INTEGER ) - + 59 * + 57 )
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5311
SELECT + 47 + + 33 * - - COUNT( ALL - 67 ) AS col2
----
80

skipif mysql # not compatible
query I rowsort label-5311
SELECT + 47 + + 33 * - - COUNT ( ALL - 67 ) AS col2
----
80

query I rowsort
SELECT - - 79 col2
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-5313
SELECT + + ( COUNT( * ) ) + + + COUNT( * ) + + + 24 + + + 3
----
29

skipif mysql # not compatible
query I rowsort label-5313
SELECT + + ( COUNT ( * ) ) + + + COUNT ( * ) + + + 24 + + + 3
----
29

query I rowsort
SELECT + 74 + + 61
----
135

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

skipif mysql # not compatible
query I rowsort label-5315
SELECT DISTINCT - ( + - MIN ( - CAST ( NULL AS INTEGER ) ) ) AS col1
----
NULL

query I rowsort
SELECT + 96 * 86 col0
----
8256

query II rowsort
SELECT ALL + 33 * 97, 33 + 33 AS col1
----
3201
66

onlyif mysql # DIV for integer division: 
query I rowsort label-5318
SELECT + - ( - 24 ) DIV 63 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5318
SELECT + - ( - 24 ) / 63 AS col1
----
0

query II rowsort
SELECT + ( - 17 ) col1, - 6 * - + 73 AS col0
----
-17
438

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5320
SELECT DISTINCT 61 * - 70 - + ( - 24 ) + 6 DIV + + COUNT( * ) col0
----
-4240

skipif mysql # not compatible
query I rowsort label-5320
SELECT DISTINCT 61 * - 70 - + ( - 24 ) + 6 / + + COUNT ( * ) col0
----
-4240

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5321
SELECT + 99 DIV COUNT( * ) * - - NULLIF ( 87, + CASE - MAX( - - 44 ) WHEN 97 DIV + COUNT( * ) THEN + 73 * - 98 ELSE NULL END ) col1
----
8613

skipif mysql # not compatible
query I rowsort label-5321
SELECT + 99 / COUNT ( * ) * - - NULLIF ( 87, + CASE - MAX ( - - 44 ) WHEN 97 / + COUNT ( * ) THEN + 73 * - 98 ELSE NULL END ) col1
----
8613

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

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

query I rowsort
SELECT - 12 * - 37 * + 14 AS col2
----
6216

onlyif mysql # aggregate syntax: 
query I rowsort label-5324
SELECT ALL - - MAX( - 48 ) * MAX( + 43 ) + - COUNT( * ) + 14 AS col1
----
-2051

skipif mysql # not compatible
query I rowsort label-5324
SELECT ALL - - MAX ( - 48 ) * MAX ( + 43 ) + - COUNT ( * ) + 14 AS col1
----
-2051

onlyif mysql # DIV for integer division: 
query I rowsort label-5325
SELECT + 15 DIV - + 66 + - 25 - - 70
----
45

skipif mysql # not compatible
query I rowsort label-5325
SELECT + 15 / - + 66 + - 25 - - 70
----
45

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

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

query I rowsort
SELECT - - 52 * 75 * 20 AS col0
----
78000

query I rowsort
SELECT ALL 96 * 87 + - 29
----
8323

onlyif mysql # aggregate syntax: 
query I rowsort label-5329
SELECT + 15 * + 8 + + COALESCE ( 55, + COUNT( * ) * ( - 95 ) ) AS col1
----
175

skipif mysql # not compatible
query I rowsort label-5329
SELECT + 15 * + 8 + + COALESCE ( 55, + COUNT ( * ) * ( - 95 ) ) AS col1
----
175

query I rowsort
SELECT - 61 + 88 AS col0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-5331
SELECT 31 * 61 * - 16 - + COUNT( 80 ) + + 39 col0
----
-30218

skipif mysql # not compatible
query I rowsort label-5331
SELECT 31 * 61 * - 16 - + COUNT ( 80 ) + + 39 col0
----
-30218

query I rowsort
SELECT ALL + 40 * + 43
----
1720

onlyif mysql # aggregate syntax: 
query I rowsort label-5333
SELECT - NULLIF ( ( 37 ), 17 ) + + 46 + + COALESCE ( - COUNT( ALL 72 ), + - 75, MAX( - 31 ) + 45 + 27 ) * - COUNT( * ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-5333
SELECT - NULLIF ( ( 37 ), 17 ) + + 46 + + COALESCE ( - COUNT ( ALL 72 ), + - 75, MAX ( - 31 ) + 45 + 27 ) * - COUNT ( * ) AS col2
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-5334
SELECT ALL COUNT( * ) * - 14 + - 13 - 90 * + 44
----
-3987

skipif mysql # not compatible
query I rowsort label-5334
SELECT ALL COUNT ( * ) * - 14 + - 13 - 90 * + 44
----
-3987

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5336
SELECT - 76 * 34 + - 70, COUNT( * ) * 10 + + - 97 AS col2
----
-2654
-87

skipif mysql # not compatible
query II rowsort label-5336
SELECT - 76 * 34 + - 70, COUNT ( * ) * 10 + + - 97 AS col2
----
-2654
-87

query II rowsort
SELECT DISTINCT 80 AS col0, 80 * - + 17 * - - 37 * - 60
----
80
3019200

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5338
SELECT - 31 AS col2, + 56 * + 68 * + 55 * - + COUNT( * ) * + 91 + + - 12 - + - COALESCE ( + 13, + COALESCE ( 74, - 57 ), - 25 * 88 ) DIV + 91
----
-31
-19059052

skipif mysql # not compatible
query II rowsort label-5338
SELECT - 31 AS col2, + 56 * + 68 * + 55 * - + COUNT ( * ) * + 91 + + - 12 - + - COALESCE ( + 13, + COALESCE ( 74, - 57 ), - 25 * 88 ) / + 91
----
-31
-19059052

onlyif mysql # aggregate syntax: 
query I rowsort label-5339
SELECT - 83 + - ( + 91 ) + - + COUNT( * ) AS col1
----
-175

skipif mysql # not compatible
query I rowsort label-5339
SELECT - 83 + - ( + 91 ) + - + COUNT ( * ) AS col1
----
-175

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5340
SELECT ALL - COUNT( DISTINCT - CAST( 35 AS SIGNED ) ) - + + CAST( NULL AS SIGNED ) + 61 + + - ( COUNT( + 85 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5340
SELECT ALL - COUNT ( DISTINCT - CAST ( 35 AS INTEGER ) ) - + + CAST ( NULL AS INTEGER ) + 61 + + - ( COUNT ( + 85 ) ) AS col0
----
NULL

query I rowsort
SELECT - 60 + - 82 * + NULLIF ( - 44, + 7 ) * 99 + + - 32
----
357100

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

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

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

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

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

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

query I rowsort
SELECT - NULLIF ( ( 67 ), - + 64 ) AS col0
----
-67

query I rowsort
SELECT ALL + 6 - - 1 AS col2
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5347
SELECT - 96, + CAST( NULL AS SIGNED ) + - - COUNT( * ) + - 21 + + 10 + + 47 AS col0
----
-96
NULL

skipif mysql # not compatible
query II rowsort label-5347
SELECT - 96, + CAST ( NULL AS INTEGER ) + - - COUNT ( * ) + - 21 + + 10 + + 47 AS col0
----
-96
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5348
SELECT - - 48 * - + NULLIF ( ( - 18 ), + 58 ) DIV - COUNT( * ) + + 45 + + 25 AS col2
----
-794

skipif mysql # not compatible
query I rowsort label-5348
SELECT - - 48 * - + NULLIF ( ( - 18 ), + 58 ) / - COUNT ( * ) + + 45 + + 25 AS col2
----
-794

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5349
SELECT ALL - + MAX( DISTINCT + 18 ) DIV - - 79 AS col1, 13 * ( 17 ) AS col2
----
0
221

skipif mysql # not compatible
query II rowsort label-5349
SELECT ALL - + MAX ( DISTINCT + 18 ) / - - 79 AS col1, 13 * ( 17 ) AS col2
----
0
221

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5350
SELECT - - ( COALESCE ( - ( - 88 ), - 1 DIV - + CASE + 15 WHEN + 79 THEN - 62 WHEN - - 78 + 79 + - CASE - 86 WHEN - 87 THEN - - COUNT( * ) - - 64 * + 33 * 39 ELSE + 0 + 48 END * 53 + 76 THEN NULL END + - 61, 42 ) ) AS col2
----
88

skipif mysql # not compatible
query I rowsort label-5350
SELECT - - ( COALESCE ( - ( - 88 ), - 1 / - + CASE + 15 WHEN + 79 THEN - 62 WHEN - - 78 + 79 + - CASE - 86 WHEN - 87 THEN - - COUNT ( * ) - - 64 * + 33 * 39 ELSE + 0 + 48 END * 53 + 76 THEN NULL END + - 61, 42 ) ) AS col2
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-5351
SELECT DISTINCT - MIN( ALL + 84 ) * + - 1 + - 72 + 16 AS col2
----
28

skipif mysql # not compatible
query I rowsort label-5351
SELECT DISTINCT - MIN ( ALL + 84 ) * + - 1 + - 72 + 16 AS col2
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5352
SELECT ALL - CASE 42 WHEN + COUNT( * ) THEN 46 - + CAST( 92 AS SIGNED ) * + + 80 + - 82 ELSE NULL END * 9
----
NULL

skipif mysql # not compatible
query I rowsort label-5352
SELECT ALL - CASE 42 WHEN + COUNT ( * ) THEN 46 - + CAST ( 92 AS INTEGER ) * + + 80 + - 82 ELSE NULL END * 9
----
NULL

query I rowsort
SELECT - 33 * + + 89 AS col2
----
-2937

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5354
SELECT + COUNT( * ) * + - 35 DIV + 16 * - COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-5354
SELECT + COUNT ( * ) * + - 35 / + 16 * - COUNT ( * )
----
2

query I rowsort
SELECT + + 24 + ( + - 37 ) + 70 AS col1
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-5356
SELECT ALL 86 + - COUNT( * ) + - - 88 + COUNT( * )
----
174

skipif mysql # not compatible
query I rowsort label-5356
SELECT ALL 86 + - COUNT ( * ) + - - 88 + COUNT ( * )
----
174

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5357
SELECT - COUNT( ALL - 55 ) + COUNT( * ) AS col1, 5 * 91 * + 52 + + CAST( + + 94 AS SIGNED ) AS col0
----
0
23754

skipif mysql # not compatible
query II rowsort label-5357
SELECT - COUNT ( ALL - 55 ) + COUNT ( * ) AS col1, 5 * 91 * + 52 + + CAST ( + + 94 AS INTEGER ) AS col0
----
0
23754

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

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

query II rowsort
SELECT 24, 35 * - - 99 AS col0
----
24
3465

onlyif mysql # DIV for integer division: 
query I rowsort label-5360
SELECT DISTINCT + 0 * 47 + + + CASE + 3 WHEN ( + + 20 ) THEN NULL ELSE 18 END DIV - + 13 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5360
SELECT DISTINCT + 0 * 47 + + + CASE + 3 WHEN ( + + 20 ) THEN NULL ELSE 18 END / - + 13 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-5361
SELECT + 88, + NULLIF ( + SUM( - + 44 ), 4 ) + - 45 AS col0
----
88
-89

skipif mysql # not compatible
query II rowsort label-5361
SELECT + 88, + NULLIF ( + SUM ( - + 44 ), 4 ) + - 45 AS col0
----
88
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5362
SELECT ALL + ( - 89 ) DIV - 43 + + NULLIF ( - + 24, + ( + - NULLIF ( + MIN( - + 58 ), + 16 * + 48 + - 61 + + + 30 ) ) ) + 22
----
0

skipif mysql # not compatible
query I rowsort label-5362
SELECT ALL + ( - 89 ) / - 43 + + NULLIF ( - + 24, + ( + - NULLIF ( + MIN ( - + 58 ), + 16 * + 48 + - 61 + + + 30 ) ) ) + 22
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5363
SELECT ALL + ( - NULLIF ( - CASE SUM( - COALESCE ( + - 80, 79 + 85 + - 66, - 12 ) ) WHEN + CAST( NULL AS SIGNED ) + - - 66 THEN 79 END, + ( CAST( NULL AS SIGNED ) ) * - 52 * - ( 11 ) + + + 1 ) ) / 71
----
NULL

skipif mysql # not compatible
query I rowsort label-5363
SELECT ALL + ( - NULLIF ( - CASE SUM ( - COALESCE ( + - 80, 79 + 85 + - 66, - 12 ) ) WHEN + CAST ( NULL AS INTEGER ) + - - 66 THEN 79 END, + ( CAST ( NULL AS INTEGER ) ) * - 52 * - ( 11 ) + + + 1 ) ) / 71
----
NULL

query II rowsort
SELECT + - 14 AS col1, 38
----
-14
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5365
SELECT + 85 * - CAST( NULL AS SIGNED ) / - - 98 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5365
SELECT + 85 * - CAST ( NULL AS INTEGER ) / - - 98 AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-5366
SELECT ALL COUNT ( * ) / - - COUNT ( * ) + + 80
----
81

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

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

query I rowsort
SELECT - 67 + - 92 * - 53 AS col1
----
4809

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5370
SELECT ALL MAX( 23 ) - + + MAX( DISTINCT - - 13 ) AS col1
----
10

skipif mysql # not compatible
query I rowsort label-5370
SELECT ALL MAX ( 23 ) - + + MAX ( DISTINCT - - 13 ) AS col1
----
10

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

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

query I rowsort
SELECT 84 * - 30
----
-2520

onlyif mysql # aggregate syntax: 
query I rowsort label-5373
SELECT SUM( NULLIF ( + 92, - 0 ) ) - + - 73 AS col2
----
165

skipif mysql # not compatible
query I rowsort label-5373
SELECT SUM ( NULLIF ( + 92, - 0 ) ) - + - 73 AS col2
----
165

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5375
SELECT DISTINCT + ( + 12 ) * + COUNT( + 84 ) DIV 51 + 2 * + 37
----
74

skipif mysql # not compatible
query I rowsort label-5375
SELECT DISTINCT + ( + 12 ) * + COUNT ( + 84 ) / 51 + 2 * + 37
----
74

query I rowsort
SELECT DISTINCT - 55 * - 77
----
4235

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5377
SELECT CAST( + 46 AS SIGNED ) + - - CAST( NULL AS SIGNED ) + + 16 + - 3 * + 14 + - ( + - 26 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5377
SELECT CAST ( + 46 AS INTEGER ) + - - CAST ( NULL AS INTEGER ) + + 16 + - 3 * + 14 + - ( + - 26 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5378
SELECT 88 DIV COUNT( * ), - 92 AS col2
----
88
-92

skipif mysql # not compatible
query II rowsort label-5378
SELECT 88 / COUNT ( * ), - 92 AS col2
----
88
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-5379
SELECT COALESCE ( - 19, - 29 * - COUNT( ALL + 43 ) * - COUNT( * ) ) AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-5379
SELECT COALESCE ( - 19, - 29 * - COUNT ( ALL + 43 ) * - COUNT ( * ) ) AS col2
----
-19

query I rowsort
SELECT 81 + - - 87
----
168

query I rowsort
SELECT - NULLIF ( - + CASE + 13 WHEN + + 33 THEN + 33 ELSE NULL END, - 79 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5382
SELECT COUNT( * ) + - - 93 + - 27 * + + COALESCE ( + 12, - COUNT( DISTINCT + - 74 ) ) AS col0
----
-230

skipif mysql # not compatible
query I rowsort label-5382
SELECT COUNT ( * ) + - - 93 + - 27 * + + COALESCE ( + 12, - COUNT ( DISTINCT + - 74 ) ) AS col0
----
-230

onlyif mysql # aggregate syntax: 
query II rowsort label-5383
SELECT DISTINCT + MAX( - 24 ) AS col0, 41 + 12
----
-24
53

skipif mysql # not compatible
query II rowsort label-5383
SELECT DISTINCT + MAX ( - 24 ) AS col0, 41 + 12
----
-24
53

query I rowsort
SELECT ALL ( - 59 ) + 96 AS col2
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5385
SELECT DISTINCT - + NULLIF ( - 86, CAST( NULL AS SIGNED ) + 51 ) + - + 12, - CAST( + 17 AS SIGNED ) AS col1
----
74
-17

skipif mysql # not compatible
query II rowsort label-5385
SELECT DISTINCT - + NULLIF ( - 86, CAST ( NULL AS INTEGER ) + 51 ) + - + 12, - CAST ( + 17 AS INTEGER ) AS col1
----
74
-17

onlyif mysql # aggregate syntax: 
query II rowsort label-5386
SELECT 80 * + MIN( DISTINCT + + 30 ) * - 63, 26 AS col2
----
-151200
26

skipif mysql # not compatible
query II rowsort label-5386
SELECT 80 * + MIN ( DISTINCT + + 30 ) * - 63, 26 AS col2
----
-151200
26

onlyif mysql # aggregate syntax: 
query I rowsort label-5387
SELECT ALL - - SUM( - 37 ) * 35 AS col0
----
-1295

skipif mysql # not compatible
query I rowsort label-5387
SELECT ALL - - SUM ( - 37 ) * 35 AS col0
----
-1295

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

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

query I rowsort
SELECT ALL - 55 * + - 96 AS col0
----
5280

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5390
SELECT SUM( - 19 ) - - 33 - - - 25 * 68 DIV + - COALESCE ( - 34, - 13 ) + NULLIF ( + - 73, + + COUNT( * ) ) + + + COALESCE ( + 87, + + 78 + + MIN( + 82 ) + - 5 * - 12, - 40 ) * - + ( + - COUNT( * ) )
----
-22

skipif mysql # not compatible
query I rowsort label-5390
SELECT SUM ( - 19 ) - - 33 - - - 25 * 68 / + - COALESCE ( - 34, - 13 ) + NULLIF ( + - 73, + + COUNT ( * ) ) + + + COALESCE ( + 87, + + 78 + + MIN ( + 82 ) + - 5 * - 12, - 40 ) * - + ( + - COUNT ( * ) )
----
-22

query I rowsort
SELECT DISTINCT - 59 * 40 col0
----
-2360

query I rowsort
SELECT ALL 50 - 14
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5393
SELECT DISTINCT - COALESCE ( - COALESCE ( 66, - CAST( + + 35 AS SIGNED ) ), + COUNT( * ) * + + 64, NULLIF ( - COUNT( * ), 31 * 51 ), + 94 * - COALESCE ( - 72, + 94 * + + 48 * 83 * + + 69, 0, CAST( - - 7 AS SIGNED ) ) + + MIN( + 75 ) + 63 - ( - + 7 ) ) AS col1
----
66

skipif mysql # not compatible
query I rowsort label-5393
SELECT DISTINCT - COALESCE ( - COALESCE ( 66, - CAST ( + + 35 AS INTEGER ) ), + COUNT ( * ) * + + 64, NULLIF ( - COUNT ( * ), 31 * 51 ), + 94 * - COALESCE ( - 72, + 94 * + + 48 * 83 * + + 69, 0, CAST ( - - 7 AS INTEGER ) ) + + MIN ( + 75 ) + 63 - ( - + 7 ) ) AS col1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5394
SELECT MAX( DISTINCT - 43 ) * 65 - 98 AS col2
----
-2893

skipif mysql # not compatible
query I rowsort label-5394
SELECT MAX ( DISTINCT - 43 ) * 65 - 98 AS col2
----
-2893

query I rowsort
SELECT NULLIF ( 78, - + 89 ) - 84 * - ( - + 99 )
----
-8238

query I rowsort
SELECT 4 * + - 85
----
-340

query I rowsort
SELECT ( + 31 ) * + COALESCE ( - 22, + - 36 ) * - 30 + 53 * + 57
----
23481

query I rowsort
SELECT 81 * + 60 * - 8
----
-38880

query I rowsort
SELECT DISTINCT 7 * + 58
----
406

query I rowsort
SELECT + 68 * - 32 + - - 58
----
-2118

onlyif mysql # DIV for integer division: 
query II rowsort label-5401
SELECT 29 * 95 * + 70 AS col1, 8 DIV COALESCE ( - 15, + 30 ) + - - ( ( 88 ) )
----
192850
88

skipif mysql # not compatible
query II rowsort label-5401
SELECT 29 * 95 * + 70 AS col1, 8 / COALESCE ( - 15, + 30 ) + - - ( ( 88 ) )
----
192850
88

query I rowsort
SELECT ALL 42 * + + 0 AS col0
----
0

query I rowsort
SELECT 15 * - - 90 + 89 + - 84
----
1355

query I rowsort
SELECT ALL 6 * + 5
----
30

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

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

query II rowsort
SELECT ALL 96 col0, 35
----
96
35

query I rowsort
SELECT DISTINCT + 35 + + 52 * + 77 + - + 96 col2
----
3943

query I rowsort
SELECT - 90 + + 52
----
-38

query I rowsort
SELECT ALL + - 30 + 3 AS col2
----
-27

query I rowsort
SELECT DISTINCT - - 67 + ( + 6 )
----
73

query I rowsort
SELECT DISTINCT + NULLIF ( - 75, 16 * + 33 / - 78 + + + 26 )
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5412
SELECT ALL - ( + ( 4 ) ) * - COUNT( DISTINCT + - 31 ) + + 78 AS col1, CAST( NULL AS DECIMAL ) + - - CAST( NULL AS SIGNED )
----
82
NULL

skipif mysql # not compatible
query II rowsort label-5412
SELECT ALL - ( + ( 4 ) ) * - COUNT ( DISTINCT + - 31 ) + + 78 AS col1, CAST ( NULL AS REAL ) + - - CAST ( NULL AS INTEGER )
----
82
NULL

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

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

query I rowsort
SELECT ALL + 41 + - - 48 * + - 49
----
-2311

query I rowsort
SELECT ALL - 61 + - 93
----
-154

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

query I rowsort
SELECT - 54 + + + 47 AS col0
----
-7

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5419
SELECT - NULLIF ( + 29, + 41 ) * + COUNT( * )
----
-29

skipif mysql # not compatible
query I rowsort label-5419
SELECT - NULLIF ( + 29, + 41 ) * + COUNT ( * )
----
-29

query II rowsort
SELECT + 6 col0, 9 * + 51 AS col2
----
6
459

query I rowsort
SELECT ALL 2 * 73 AS col1
----
146

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

skipif mysql # not compatible
query I rowsort label-5422
SELECT 73 * + + 29 + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 71 * 35 - - 21 AS col1
----
2506

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5424
SELECT ALL + MAX( - 30 ) * ( - 2 ) + - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5424
SELECT ALL + MAX ( - 30 ) * ( - 2 ) + - - CAST ( NULL AS INTEGER )
----
NULL

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

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

query I rowsort
SELECT + 61 + + + 60 AS col2
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-5427
SELECT ALL - COUNT( * ) * - 21 * + 73 col0
----
1533

skipif mysql # not compatible
query I rowsort label-5427
SELECT ALL - COUNT ( * ) * - 21 * + 73 col0
----
1533

query II rowsort
SELECT NULLIF ( + 82, - 38 * + - ( + - ( + - 33 ) ) ) AS col0, 17
----
82
17

onlyif mysql # aggregate syntax: 
query III rowsort label-5429
SELECT + 71 AS col1, ( MAX( + 61 ) ), + 9 * - + 60 - + + 25 AS col2
----
71
61
-565

skipif mysql # not compatible
query III rowsort label-5429
SELECT + 71 AS col1, ( MAX ( + 61 ) ), + 9 * - + 60 - + + 25 AS col2
----
71
61
-565

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

skipif mysql # not compatible
query I rowsort label-5430
SELECT + MAX ( + 45 )
----
45

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

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

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

query I rowsort
SELECT ALL - 10 * + 36
----
-360

query III rowsort
SELECT DISTINCT + 87 AS col2, 45 + + + 94 * + 36 AS col1, 51 AS col1
----
87
3429
51

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

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

query I rowsort
SELECT + 77 * + 20 AS col1
----
1540

query II rowsort
SELECT ALL + 70, - 2 * - 68 col2
----
70
136

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

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

query I rowsort
SELECT - 41 * - 51 * - + 11
----
-23001

query I rowsort
SELECT + - COALESCE ( + 8, - ( + 48 ) ) * + - 47
----
376

onlyif mysql # aggregate syntax: 
query I rowsort label-5441
SELECT ALL + 6 + + SUM( - 54 ) + 91 * + 66 col1
----
5958

skipif mysql # not compatible
query I rowsort label-5441
SELECT ALL + 6 + + SUM ( - 54 ) + 91 * + 66 col1
----
5958

onlyif mysql # DIV for integer division: 
query I rowsort label-5442
SELECT + + 0 - + + 52 + 66 DIV + 26 + + 81 AS col0
----
31

skipif mysql # not compatible
query I rowsort label-5442
SELECT + + 0 - + + 52 + 66 / + 26 + + 81 AS col0
----
31

query II rowsort
SELECT - 99, + 88 AS col2
----
-99
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5444
SELECT - 32 AS col2, - 34 * - 24 * - + COUNT( * ) * - - COUNT( * ) * - - 17 * + + CAST( - + 15 AS SIGNED ) col0
----
-32
208080

skipif mysql # not compatible
query II rowsort label-5444
SELECT - 32 AS col2, - 34 * - 24 * - + COUNT ( * ) * - - COUNT ( * ) * - - 17 * + + CAST ( - + 15 AS INTEGER ) col0
----
-32
208080

onlyif mysql # DIV for integer division: 
query I rowsort label-5445
SELECT DISTINCT + ( ( + 24 ) ) DIV NULLIF ( + 55, - - 79 * AVG ( DISTINCT + 76 ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5445
SELECT DISTINCT + ( ( + 24 ) ) / NULLIF ( + 55, - - 79 * AVG ( DISTINCT + 76 ) ) AS col0
----
0

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

skipif mysql # not compatible
query I rowsort label-5446
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + 30 AS col0
----
NULL

query I rowsort
SELECT + 40 * - - 7 * + 79 AS col2
----
22120

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

skipif mysql # not compatible
query I rowsort label-5448
SELECT ALL 10 + - 79 / - - 53 * + COUNT ( * ) AS col1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5449
SELECT DISTINCT + 12 * + 99 * - COUNT( ALL + 42 )
----
-1188

skipif mysql # not compatible
query I rowsort label-5449
SELECT DISTINCT + 12 * + 99 * - COUNT ( ALL + 42 )
----
-1188

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5450
SELECT ALL + - CAST( NULL AS DECIMAL ) + + 54 + - + 79
----
NULL

skipif mysql # not compatible
query I rowsort label-5450
SELECT ALL + - CAST ( NULL AS REAL ) + + 54 + - + 79
----
NULL

query II rowsort
SELECT - + 74, 31 col1
----
-74
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5452
SELECT + - 68 + - SUM( + 90 ) + - 9 * - CAST( + 25 AS SIGNED )
----
67

skipif mysql # not compatible
query I rowsort label-5452
SELECT + - 68 + - SUM ( + 90 ) + - 9 * - CAST ( + 25 AS INTEGER )
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-5453
SELECT + + 10 - + - SUM( ALL + + 94 ) AS col0
----
104

skipif mysql # not compatible
query I rowsort label-5453
SELECT + + 10 - + - SUM ( ALL + + 94 ) AS col0
----
104

query I rowsort
SELECT ALL - 29 - + - 65
----
36

query I rowsort
SELECT + 56 + - - 24
----
80

onlyif mysql # aggregate syntax: 
query II rowsort label-5456
SELECT ALL 26 - - COUNT( * ) AS col2, 40 AS col2
----
27
40

skipif mysql # not compatible
query II rowsort label-5456
SELECT ALL 26 - - COUNT ( * ) AS col2, 40 AS col2
----
27
40

query II rowsort
SELECT ALL 85 AS col2, + 96
----
85
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5458
SELECT - 60 DIV - COUNT( * ) + - 48 + - + NULLIF ( + 68, + + 79 + + 12 )
----
-56

skipif mysql # not compatible
query I rowsort label-5458
SELECT - 60 / - COUNT ( * ) + - 48 + - + NULLIF ( + 68, + + 79 + + 12 )
----
-56

query I rowsort
SELECT - 61 * 87
----
-5307

query I rowsort
SELECT + ( - 62 ) - + 1 + + 85
----
22

query I rowsort
SELECT - 49 + - 22 + - + 21
----
-92

onlyif mysql # aggregate syntax: 
query II rowsort label-5462
SELECT - 25 * - ( + COUNT( * ) ) AS col2, MIN( - 18 )
----
25
-18

skipif mysql # not compatible
query II rowsort label-5462
SELECT - 25 * - ( + COUNT ( * ) ) AS col2, MIN ( - 18 )
----
25
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-5463
SELECT ALL + SUM( ALL 9 ) * + 93 * - ( 2 ) + + + MAX( DISTINCT + + 98 ) + ( - - 8 ) col0
----
-1568

skipif mysql # not compatible
query I rowsort label-5463
SELECT ALL + SUM ( ALL 9 ) * + 93 * - ( 2 ) + + + MAX ( DISTINCT + + 98 ) + ( - - 8 ) col0
----
-1568

onlyif mysql # DIV for integer division: 
query I rowsort label-5464
SELECT 52 * - 12 + 83 + + 66 - COALESCE ( - - 34, - 31 ) DIV + 96 + - 86 AS col1
----
-561

skipif mysql # not compatible
query I rowsort label-5464
SELECT 52 * - 12 + 83 + + 66 - COALESCE ( - - 34, - 31 ) / + 96 + - 86 AS col1
----
-561

onlyif mysql # aggregate syntax: 
query II rowsort label-5465
SELECT ALL + 16 * - + 19 + - 69, + COUNT( * ) AS col2
----
-373
1

skipif mysql # not compatible
query II rowsort label-5465
SELECT ALL + 16 * - + 19 + - 69, + COUNT ( * ) AS col2
----
-373
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5466
SELECT + CASE MAX( DISTINCT + 84 ) WHEN + 83 THEN + ( + 89 ) + 28 WHEN 55 THEN COUNT( * ) ELSE - 75 END
----
-75

skipif mysql # not compatible
query I rowsort label-5466
SELECT + CASE MAX ( DISTINCT + 84 ) WHEN + 83 THEN + ( + 89 ) + 28 WHEN 55 THEN COUNT ( * ) ELSE - 75 END
----
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-5467
SELECT - ( - 23 ) + 84 * COALESCE ( - - SUM( - - 81 ), - 53, - 11 ), + 56 AS col0
----
6827
56

skipif mysql # not compatible
query II rowsort label-5467
SELECT - ( - 23 ) + 84 * COALESCE ( - - SUM ( - - 81 ), - 53, - 11 ), + 56 AS col0
----
6827
56

query I rowsort
SELECT DISTINCT + - 75 * - 56 + + 38 + + ( - + 90 ) AS col2
----
4148

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5469
SELECT ALL - + NULLIF ( - 88, + 55 * 94 ) * + CAST( NULL AS SIGNED ) / 50 + 47 + 9 * + COALESCE ( ( + 96 ), AVG ( - 57 ), + 28 * + + 58 ) - + 39
----
NULL

skipif mysql # not compatible
query I rowsort label-5469
SELECT ALL - + NULLIF ( - 88, + 55 * 94 ) * + CAST ( NULL AS INTEGER ) / 50 + 47 + 9 * + COALESCE ( ( + 96 ), AVG ( - 57 ), + 28 * + + 58 ) - + 39
----
NULL

query I rowsort
SELECT DISTINCT + + 84 * - - 27 AS col0
----
2268

onlyif mysql # aggregate syntax: 
query I rowsort label-5471
SELECT + - 48 * CASE + + MAX( DISTINCT - 24 ) WHEN + 71 * + ( + 89 ) + - 64 THEN NULL WHEN - 9 * + + 55 THEN - 46 WHEN - 34 + 75 THEN 70 / 95 END + - ( + 35 ) + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5471
SELECT + - 48 * CASE + + MAX ( DISTINCT - 24 ) WHEN + 71 * + ( + 89 ) + - 64 THEN NULL WHEN - 9 * + + 55 THEN - 46 WHEN - 34 + 75 THEN 70 / 95 END + - ( + 35 ) + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5472
SELECT + - 89 * - 12 - - 70 + COUNT( * ) AS col1
----
1139

skipif mysql # not compatible
query I rowsort label-5472
SELECT + - 89 * - 12 - - 70 + COUNT ( * ) AS col1
----
1139

onlyif mysql # aggregate syntax: 
query II rowsort label-5473
SELECT - COUNT( * ) * - COALESCE ( - COALESCE ( + ( + 90 ), - 26 ), - 2 ), - 85 * - + 13 AS col1
----
-90
1105

skipif mysql # not compatible
query II rowsort label-5473
SELECT - COUNT ( * ) * - COALESCE ( - COALESCE ( + ( + 90 ), - 26 ), - 2 ), - 85 * - + 13 AS col1
----
-90
1105

onlyif mysql # aggregate syntax: 
query I rowsort label-5474
SELECT ALL - COUNT( 5 ) * + + COUNT( * ) - - 71 + 75 + 6 AS col1
----
151

skipif mysql # not compatible
query I rowsort label-5474
SELECT ALL - COUNT ( 5 ) * + + COUNT ( * ) - - 71 + 75 + 6 AS col1
----
151

query I rowsort
SELECT DISTINCT + 0 * ( - 47 ) AS col2
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5477
SELECT DISTINCT + + 41 * + SUM( 76 ) AS col1
----
3116

skipif mysql # not compatible
query I rowsort label-5477
SELECT DISTINCT + + 41 * + SUM ( 76 ) AS col1
----
3116

onlyif mysql # aggregate syntax: 
query I rowsort label-5478
SELECT DISTINCT + 40 * - 50 * + 19 * 80 * + COALESCE ( + 50, - 95 ) * - CASE - 16 WHEN + + ( + 33 ) * + SUM( - + 6 ) + 46 - 2 + 9 / 85 THEN 39 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5478
SELECT DISTINCT + 40 * - 50 * + 19 * 80 * + COALESCE ( + 50, - 95 ) * - CASE - 16 WHEN + + ( + 33 ) * + SUM ( - + 6 ) + 46 - 2 + 9 / 85 THEN 39 END AS col2
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5480
SELECT COALESCE ( - COUNT( * ), 0 + + CAST( - + 29 AS SIGNED ) ) / + 10 + + + CAST( 42 AS DECIMAL ) + + COALESCE ( + - 90, + MIN( DISTINCT + 24 ), + - CAST( - 47 AS SIGNED ) ) * - 12 + MIN( DISTINCT - CASE + ( + - 81 ) WHEN - - 12 THEN - ( - + 32 ) - - 59 + CAST( NULL AS SIGNED ) ELSE + 29 END ) / - + CAST( NULL AS DECIMAL ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5480
SELECT COALESCE ( - COUNT ( * ), 0 + + CAST ( - + 29 AS INTEGER ) ) / + 10 + + + CAST ( 42 AS REAL ) + + COALESCE ( + - 90, + MIN ( DISTINCT + 24 ), + - CAST ( - 47 AS INTEGER ) ) * - 12 + MIN ( DISTINCT - CASE + ( + - 81 ) WHEN - - 12 THEN - ( - + 32 ) - - 59 + CAST ( NULL AS INTEGER ) ELSE + 29 END ) / - + CAST ( NULL AS REAL ) * COUNT ( * )
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5482
SELECT 84 DIV - + 60
----
-1

skipif mysql # not compatible
query I rowsort label-5482
SELECT 84 / - + 60
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5483
SELECT 20 * + NULLIF ( - 33, - 45 * - NULLIF ( - 60, + 6 * - COUNT( * ) ) ) AS col1
----
-660

skipif mysql # not compatible
query I rowsort label-5483
SELECT 20 * + NULLIF ( - 33, - 45 * - NULLIF ( - 60, + 6 * - COUNT ( * ) ) ) AS col1
----
-660

onlyif mysql # DIV for integer division: 
query I rowsort label-5484
SELECT DISTINCT 84 DIV 66 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5484
SELECT DISTINCT 84 / 66 AS col0
----
1

query I rowsort
SELECT 10 + - ( + 77 ) col0
----
-67

query I rowsort
SELECT ALL 31 + 44 + + 47 * 20 * + 90 AS col0
----
84675

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5487
SELECT ( + + COUNT( * ) ) * + 84 AS col0, - CAST( 75 AS SIGNED )
----
84
-75

skipif mysql # not compatible
query II rowsort label-5487
SELECT ( + + COUNT ( * ) ) * + 84 AS col0, - CAST ( 75 AS INTEGER )
----
84
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-5488
SELECT ALL + 47 + NULLIF ( 80, - 56 ) DIV - 33
----
45

skipif mysql # not compatible
query I rowsort label-5488
SELECT ALL + 47 + NULLIF ( 80, - 56 ) / - 33
----
45

query I rowsort
SELECT - 6 * + 73 * - 37 * 50 + - 54
----
810246

onlyif mysql # aggregate syntax: 
query I rowsort label-5490
SELECT ALL 83 + + SUM( ALL + - 91 ) AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-5490
SELECT ALL 83 + + SUM ( ALL + - 91 ) AS col0
----
-8

query II rowsort
SELECT 6 AS col2, - 19 AS col1
----
6
-19

query I rowsort
SELECT ( - 4 ) * - ( + 7 ) * - 69 AS col1
----
-1932

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5493
SELECT - ( - + 93 ) DIV 95 * 81 + + - 32 + - CASE - 17 WHEN + 6 THEN 76 + - COUNT( * ) ELSE - + 17 END
----
-15

skipif mysql # not compatible
query I rowsort label-5493
SELECT - ( - + 93 ) / 95 * 81 + + - 32 + - CASE - 17 WHEN + 6 THEN 76 + - COUNT ( * ) ELSE - + 17 END
----
-15

query I rowsort
SELECT 54 + 87
----
141

query I rowsort
SELECT DISTINCT + 29 + - - 64 col1
----
93

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

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

query II rowsort
SELECT DISTINCT - 60 AS col0, 47 AS col1
----
-60
47

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

query I rowsort
SELECT 78 * 68 AS col1
----
5304

onlyif mysql # DIV for integer division: 
query I rowsort label-5500
SELECT ALL - - 94 DIV - + 3 AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-5500
SELECT ALL - - 94 / - + 3 AS col0
----
-31

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5502
SELECT ALL - - 19 - NULLIF ( + 53, + 30 + - COUNT( * ) + + COUNT( - 7 ) ) AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-5502
SELECT ALL - - 19 - NULLIF ( + 53, + 30 + - COUNT ( * ) + + COUNT ( - 7 ) ) AS col2
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-5503
SELECT COUNT( ALL - 53 ) * - 90 * + - 46 AS col0
----
4140

skipif mysql # not compatible
query I rowsort label-5503
SELECT COUNT ( ALL - 53 ) * - 90 * + - 46 AS col0
----
4140

onlyif mysql # aggregate syntax: 
query II rowsort label-5504
SELECT 1 * + COUNT( * ) * - + 68 col1, 82 col2
----
-68
82

skipif mysql # not compatible
query II rowsort label-5504
SELECT 1 * + COUNT ( * ) * - + 68 col1, 82 col2
----
-68
82

onlyif mysql # aggregate syntax: 
query I rowsort label-5505
SELECT - 98 - + + 82 + + + 44 + + + COUNT( * )
----
-135

skipif mysql # not compatible
query I rowsort label-5505
SELECT - 98 - + + 82 + + + 44 + + + COUNT ( * )
----
-135

onlyif mysql # aggregate syntax: 
query I rowsort label-5506
SELECT COUNT( * ) * + - CASE - 48 WHEN + 23 THEN + - 35 + + 65 * - 31 / - 31 + - 77 ELSE NULL END * + 94 * - - 90 + - 80 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5506
SELECT COUNT ( * ) * + - CASE - 48 WHEN + 23 THEN + - 35 + + 65 * - 31 / - 31 + - 77 ELSE NULL END * + 94 * - - 90 + - 80 col0
----
NULL

query I rowsort
SELECT ALL + + 6 * + 36 AS col1
----
216

query I rowsort
SELECT + 35 * + 49 - - 76
----
1791

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

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

query I rowsort
SELECT ALL + - 39 * 49 + + 82 AS col2
----
-1829

query I rowsort
SELECT ALL + + 14 * 31 AS col2
----
434

query II rowsort
SELECT + 25 AS col1, + 48
----
25
48

onlyif mysql # DIV for integer division: 
query I rowsort label-5513
SELECT + CASE 75 WHEN - 16 THEN NULL ELSE 64 - - 96 DIV - 14 END + + 68 * + 63 + - 76 col0
----
4266

skipif mysql # not compatible
query I rowsort label-5513
SELECT + CASE 75 WHEN - 16 THEN NULL ELSE 64 - - 96 / - 14 END + + 68 * + 63 + - 76 col0
----
4266

query I rowsort
SELECT 19 - + + 88 + + 41 * + 21 * 73 * - 52
----
-3268425

query I rowsort
SELECT - 0 * - - 22
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5516
SELECT ALL - 9, - MIN( - - 79 ) + + - 59 - + 18 AS col0
----
-9
-156

skipif mysql # not compatible
query II rowsort label-5516
SELECT ALL - 9, - MIN ( - - 79 ) + + - 59 - + 18 AS col0
----
-9
-156

query I rowsort
SELECT ALL 44 + + + 56 * + 27 AS col2
----
1556

query II rowsort
SELECT 0 * 85, - ( - 44 ) AS col0
----
0
44

query II rowsort
SELECT ALL - 51 + - 58 AS col2, + 81
----
-109
81

query I rowsort
SELECT DISTINCT 42 + - 5
----
37

query I rowsort
SELECT ALL + 77 * + 90 + - 13 * - + 63
----
7749

query I rowsort
SELECT 28 * - 64 * 64
----
-114688

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

skipif mysql # not compatible
query II rowsort label-5523
SELECT ALL COUNT ( * ) / + - 24, - 65 AS col1
----
0
-65

query I rowsort
SELECT - 88 * 39 + - + 35 * + + 59 * + 95 AS col0
----
-199607

onlyif mysql # aggregate syntax: 
query II rowsort label-5525
SELECT MIN( DISTINCT + 26 ) AS col1, 54
----
26
54

skipif mysql # not compatible
query II rowsort label-5525
SELECT MIN ( DISTINCT + 26 ) AS col1, 54
----
26
54

onlyif mysql # aggregate syntax: 
query I rowsort label-5526
SELECT + MIN( - 15 ) * - + 68 + COUNT( * ) * + 69
----
1089

skipif mysql # not compatible
query I rowsort label-5526
SELECT + MIN ( - 15 ) * - + 68 + COUNT ( * ) * + 69
----
1089

query I rowsort
SELECT + ( - 52 ) + 71 AS col0
----
19

query I rowsort
SELECT 16 * - + ( 20 ) * + + 66 - + + ( - 34 ) + - - 48 AS col1
----
-21038

query II rowsort
SELECT DISTINCT 61 * - - 62, 87 col1
----
3782
87

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5530
SELECT DISTINCT + CASE ( + COUNT( * ) ) WHEN - COUNT( * ) THEN 44 / COUNT( * ) * ( + ( + + 48 ) ) - - 21 + + 74 * + - 83 * + 90 * + + 17 * - CAST( 94 AS DECIMAL ) - + 7 * + COUNT( * ) END * COALESCE ( + 80, - 86, 99 ) - 92 * - 59
----
NULL

skipif mysql # not compatible
query I rowsort label-5530
SELECT DISTINCT + CASE ( + COUNT ( * ) ) WHEN - COUNT ( * ) THEN 44 / COUNT ( * ) * ( + ( + + 48 ) ) - - 21 + + 74 * + - 83 * + 90 * + + 17 * - CAST ( 94 AS REAL ) - + 7 * + COUNT ( * ) END * COALESCE ( + 80, - 86, 99 ) - 92 * - 59
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5532
SELECT - COUNT( * ) DIV + 51 DIV + 8 + 47 + - 0 DIV + 22 * + - 29 * + 15 AS col1
----
47

skipif mysql # not compatible
query I rowsort label-5532
SELECT - COUNT ( * ) / + 51 / + 8 + 47 + - 0 / + 22 * + - 29 * + 15 AS col1
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5533
SELECT - - 87 + - 9 + - + MIN( DISTINCT 4 ) + + + 36 DIV - COUNT( * ) DIV + - COUNT( * ) - CAST( + 74 AS SIGNED ) * - COUNT( * ) AS col2
----
184

skipif mysql # not compatible
query I rowsort label-5533
SELECT - - 87 + - 9 + - + MIN ( DISTINCT 4 ) + + + 36 / - COUNT ( * ) / + - COUNT ( * ) - CAST ( + 74 AS INTEGER ) * - COUNT ( * ) AS col2
----
184

query I rowsort
SELECT DISTINCT - - 41 * - + 82 AS col1
----
-3362

query I rowsort
SELECT ALL NULLIF ( 18, - - 77 )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-5536
SELECT - 45 + NULLIF ( COUNT( * ), 58 + + + 74 ) - - 97 - - + 85 * - 77 * - - 19
----
-124302

skipif mysql # not compatible
query I rowsort label-5536
SELECT - 45 + NULLIF ( COUNT ( * ), 58 + + + 74 ) - - 97 - - + 85 * - 77 * - - 19
----
-124302

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5537
SELECT ALL - 90 DIV + + NULLIF ( - 85, - 28 ) + + MIN( DISTINCT - 95 ) + 50 DIV - 87 AS col0
----
-94

skipif mysql # not compatible
query I rowsort label-5537
SELECT ALL - 90 / + + NULLIF ( - 85, - 28 ) + + MIN ( DISTINCT - 95 ) + 50 / - 87 AS col0
----
-94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5538
SELECT + + ( 41 ) DIV + 96 + + 50 * + + 74 + - COUNT( + 1 ) + COUNT( * ) * 74 AS col0
----
3773

skipif mysql # not compatible
query I rowsort label-5538
SELECT + + ( 41 ) / + 96 + + 50 * + + 74 + - COUNT ( + 1 ) + COUNT ( * ) * 74 AS col0
----
3773

onlyif mysql # aggregate syntax: 
query I rowsort label-5539
SELECT - + 79 * + 81 + + COUNT( * )
----
-6398

skipif mysql # not compatible
query I rowsort label-5539
SELECT - + 79 * + 81 + + COUNT ( * )
----
-6398

query I rowsort
SELECT - 59 + 17 - 60 AS col2
----
-102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5541
SELECT ALL + CASE + 43 WHEN + CASE 60 WHEN + 14 THEN - 97 + 62 + + ( - 26 ) / - - 4 + COALESCE ( - 43, 79 * - + 83 + 23 + + CAST( NULL AS SIGNED ) ) END / + 17 / COUNT( * ) + - + 10 + - + 52 THEN NULL WHEN + 89 THEN NULL WHEN + + ( - ( 54 ) ) THEN NULL ELSE COUNT( * ) END AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5541
SELECT ALL + CASE + 43 WHEN + CASE 60 WHEN + 14 THEN - 97 + 62 + + ( - 26 ) / - - 4 + COALESCE ( - 43, 79 * - + 83 + 23 + + CAST ( NULL AS INTEGER ) ) END / + 17 / COUNT ( * ) + - + 10 + - + 52 THEN NULL WHEN + 89 THEN NULL WHEN + + ( - ( 54 ) ) THEN NULL ELSE COUNT ( * ) END AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5542
SELECT - 72 + 23 - - + 38 DIV + 31 * SUM( + 53 ) DIV 52 AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-5542
SELECT - 72 + 23 - - + 38 / + 31 * SUM ( + 53 ) / 52 AS col0
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5543
SELECT - CASE 23 WHEN - ( 93 ) THEN 67 * 57 + + 43 WHEN 61 + + CAST( - + ( + 96 ) AS SIGNED ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5543
SELECT - CASE 23 WHEN - ( 93 ) THEN 67 * 57 + + 43 WHEN 61 + + CAST ( - + ( + 96 ) AS INTEGER ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5544
SELECT ALL - COUNT( * ) + + 92 - 4 DIV 46 + + 67 - 27 AS col1
----
131

skipif mysql # not compatible
query I rowsort label-5544
SELECT ALL - COUNT ( * ) + + 92 - 4 / 46 + + 67 - 27 AS col1
----
131

query I rowsort
SELECT - 50 + + 99
----
49

query I rowsort
SELECT DISTINCT 55 + - 99 AS col2
----
-44

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

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

query II rowsort
SELECT - 55, 78 * 32 * - 76 col2
----
-55
-189696

query II rowsort
SELECT - 12, 38 AS col1
----
-12
38

onlyif mysql # aggregate syntax: 
query II rowsort label-5550
SELECT ALL 90 + - ( - COUNT( * ) ) AS col1, 49
----
91
49

skipif mysql # not compatible
query II rowsort label-5550
SELECT ALL 90 + - ( - COUNT ( * ) ) AS col1, 49
----
91
49

onlyif mysql # aggregate syntax: 
query I rowsort label-5551
SELECT - 96 + + 48 * 60 - - - 34 * 27 * - 28 + - COUNT( * ) * - - 44 * - 8 + - + 37 AS col1
----
28803

skipif mysql # not compatible
query I rowsort label-5551
SELECT - 96 + + 48 * 60 - - - 34 * 27 * - 28 + - COUNT ( * ) * - - 44 * - 8 + - + 37 AS col1
----
28803

onlyif mysql # aggregate syntax: 
query I rowsort label-5552
SELECT DISTINCT - 47 + + - 55 - - + 77 + 98 * + ( + 56 ) * COUNT( * )
----
5463

skipif mysql # not compatible
query I rowsort label-5552
SELECT DISTINCT - 47 + + - 55 - - + 77 + 98 * + ( + 56 ) * COUNT ( * )
----
5463

onlyif mysql # aggregate syntax: 
query I rowsort label-5553
SELECT ALL CASE - AVG ( DISTINCT 51 ) WHEN + + 67 THEN COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5553
SELECT ALL CASE - AVG ( DISTINCT 51 ) WHEN + + 67 THEN COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5554
SELECT + MAX( ALL ( + + 65 ) ) + - 3 AS col0
----
62

skipif mysql # not compatible
query I rowsort label-5554
SELECT + MAX ( ALL ( + + 65 ) ) + - 3 AS col0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-5555
SELECT + 31 * - 62 * + 41 * - MIN( - 28 ) * 4 AS col0
----
-8825824

skipif mysql # not compatible
query I rowsort label-5555
SELECT + 31 * - 62 * + 41 * - MIN ( - 28 ) * 4 AS col0
----
-8825824

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

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

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

query I rowsort
SELECT ALL COALESCE ( + 88, 37 * 45 ) AS col1
----
88

query I rowsort
SELECT DISTINCT + ( - + 74 ) AS col1
----
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-5560
SELECT ALL 40 DIV + 70 - + - 13 * 6 * + 92
----
7176

skipif mysql # not compatible
query I rowsort label-5560
SELECT ALL 40 / + 70 - + - 13 * 6 * + 92
----
7176

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5562
SELECT DISTINCT + 73 * NULLIF ( + COALESCE ( + 30, + AVG ( ALL 20 ) ), - - 6 ) DIV 38 - - SUM( + 31 ) - 41 AS col0
----
47

skipif mysql # not compatible
query I rowsort label-5562
SELECT DISTINCT + 73 * NULLIF ( + COALESCE ( + 30, + AVG ( ALL 20 ) ), - - 6 ) / 38 - - SUM ( + 31 ) - 41 AS col0
----
47

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5564
SELECT 1 * 1 / - 31 * + ( CAST( NULL AS DECIMAL ) ) + + 73 + 34 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5564
SELECT 1 * 1 / - 31 * + ( CAST ( NULL AS REAL ) ) + + 73 + 34 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5565
SELECT ALL ( - + 76 ) * - + 21 + - + 42 - + 17 AS col2, + COUNT( + - 67 )
----
1537
1

skipif mysql # not compatible
query II rowsort label-5565
SELECT ALL ( - + 76 ) * - + 21 + - + 42 - + 17 AS col2, + COUNT ( + - 67 )
----
1537
1

query II rowsort
SELECT ALL + 20 AS col0, 23 AS col0
----
20
23

query I rowsort
SELECT + + 26 + - + 75
----
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5568
SELECT - - NULLIF ( - + 28, - COUNT( * ) ) * - COUNT( * ) + - SUM( + 6 ) DIV - 23 col0
----
28

skipif mysql # not compatible
query I rowsort label-5568
SELECT - - NULLIF ( - + 28, - COUNT ( * ) ) * - COUNT ( * ) + - SUM ( + 6 ) / - 23 col0
----
28

query I rowsort
SELECT - - 57 * - - 82 AS col1
----
4674

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5570
SELECT + NULLIF ( - COUNT( * ), 24 ) DIV + 86 * - - 77 * 3 col0
----
0

skipif mysql # not compatible
query I rowsort label-5570
SELECT + NULLIF ( - COUNT ( * ), 24 ) / + 86 * - - 77 * 3 col0
----
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5572
SELECT DISTINCT + 2 DIV + + 32
----
0

skipif mysql # not compatible
query I rowsort label-5572
SELECT DISTINCT + 2 / + + 32
----
0

query I rowsort
SELECT + + 30 + + 88
----
118

query I rowsort
SELECT + - 50 * + + 5 AS col0
----
-250

query I rowsort
SELECT DISTINCT + 41 * - 79 + + - 2 AS col1
----
-3241

onlyif mysql # aggregate syntax: 
query I rowsort label-5576
SELECT + 96 - + + COUNT( ALL + 33 ) * + ( + + 80 ) * + 69 + 53 AS col1
----
-5371

skipif mysql # not compatible
query I rowsort label-5576
SELECT + 96 - + + COUNT ( ALL + 33 ) * + ( + + 80 ) * + 69 + 53 AS col1
----
-5371

query I rowsort
SELECT ALL ( - 66 ) * 45 + - 26 AS col0
----
-2996

onlyif mysql # aggregate syntax: 
query I rowsort label-5578
SELECT DISTINCT 57 * + 37 * 85 + + 89 + - COUNT( DISTINCT - 16 ) AS col0
----
179353

skipif mysql # not compatible
query I rowsort label-5578
SELECT DISTINCT 57 * + 37 * 85 + + 89 + - COUNT ( DISTINCT - 16 ) AS col0
----
179353

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

skipif mysql # not compatible
query I rowsort label-5579
SELECT ALL COALESCE ( - 48, COUNT ( * ) )
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-5580
SELECT DISTINCT 26 + - COALESCE ( + - 17, - 4 * NULLIF ( 13, + - COUNT( * ) ) - - MIN( ALL + - NULLIF ( 56, + 66 + 58 * - 59 * - 42 / - 3 ) ), - - 9 * + + 47 ) AS col0
----
43

skipif mysql # not compatible
query I rowsort label-5580
SELECT DISTINCT 26 + - COALESCE ( + - 17, - 4 * NULLIF ( 13, + - COUNT ( * ) ) - - MIN ( ALL + - NULLIF ( 56, + 66 + 58 * - 59 * - 42 / - 3 ) ), - - 9 * + + 47 ) AS col0
----
43

query I rowsort
SELECT - 55 - - 93 * + - 74 AS col2
----
-6937

query I rowsort
SELECT ALL COALESCE ( - 17, 42 ) AS col0
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-5583
SELECT - COUNT( * ) - + + 48 + - 98 AS col0
----
-147

skipif mysql # not compatible
query I rowsort label-5583
SELECT - COUNT ( * ) - + + 48 + - 98 AS col0
----
-147

query I rowsort
SELECT + 43 * + - 59 AS col2
----
-2537

query I rowsort
SELECT DISTINCT ( + 70 ) AS col1
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-5586
SELECT - MAX( 74 ) + - + 75
----
-149

skipif mysql # not compatible
query I rowsort label-5586
SELECT - MAX ( 74 ) + - + 75
----
-149

query I rowsort
SELECT DISTINCT 60 * 66
----
3960

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5588
SELECT ALL CAST( NULL AS SIGNED ) AS col0, 13
----
NULL
13

skipif mysql # not compatible
query II rowsort label-5588
SELECT ALL CAST ( NULL AS INTEGER ) AS col0, 13
----
NULL
13

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

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

query I rowsort
SELECT DISTINCT - 16 * - 25
----
400

onlyif mysql # aggregate syntax: 
query III rowsort label-5591
SELECT 35 col2, - 9 * - 44 * COALESCE ( + 79, - 19, + COUNT( * ) - - COUNT( * ) + + COUNT( * ) ) AS col0, - 3
----
35
31284
-3

skipif mysql # not compatible
query III rowsort label-5591
SELECT 35 col2, - 9 * - 44 * COALESCE ( + 79, - 19, + COUNT ( * ) - - COUNT ( * ) + + COUNT ( * ) ) AS col0, - 3
----
35
31284
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5592
SELECT ALL CAST( NULL AS SIGNED ) AS col2, + 49
----
NULL
49

skipif mysql # not compatible
query II rowsort label-5592
SELECT ALL CAST ( NULL AS INTEGER ) AS col2, + 49
----
NULL
49

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5594
SELECT + 91 DIV COUNT( * ) - - 44 DIV - 17
----
89

skipif mysql # not compatible
query I rowsort label-5594
SELECT + 91 / COUNT ( * ) - - 44 / - 17
----
89

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

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

query I rowsort
SELECT - 50 + 28 AS col2
----
-22

onlyif mysql # DIV for integer division: 
query I rowsort label-5597
SELECT DISTINCT + 73 DIV + 25 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-5597
SELECT DISTINCT + 73 / + 25 AS col0
----
2

query I rowsort
SELECT ALL + + 32 + + + NULLIF ( - 81, + - 80 + - 11 - 40 ) + + 94 AS col0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-5599
SELECT COUNT( * ) + + 37 col0
----
38

skipif mysql # not compatible
query I rowsort label-5599
SELECT COUNT ( * ) + + 37 col0
----
38

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

skipif mysql # not compatible
query I rowsort label-5600
SELECT ALL - - MIN ( 58 )
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-5601
SELECT ( ( - 3 ) ) DIV + + 2 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5601
SELECT ( ( - 3 ) ) / + + 2 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5602
SELECT - - COUNT( * ) * 40 + - COUNT( * ) * + 54
----
-14

skipif mysql # not compatible
query I rowsort label-5602
SELECT - - COUNT ( * ) * 40 + - COUNT ( * ) * + 54
----
-14

onlyif mysql # aggregate syntax: 
query II rowsort label-5603
SELECT - COUNT( * ) AS col1, 46 * 89 AS col1
----
-1
4094

skipif mysql # not compatible
query II rowsort label-5603
SELECT - COUNT ( * ) AS col1, 46 * 89 AS col1
----
-1
4094

onlyif mysql # DIV for integer division: 
query I rowsort label-5604
SELECT 4 * - ( - + 1 ) + - - 10 DIV + 82 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-5604
SELECT 4 * - ( - + 1 ) + - - 10 / + 82 AS col0
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-5605
SELECT ALL COUNT( * ) + - 60 * - COUNT( * ) + 4 col1, + 30 + + 2 AS col2
----
65
32

skipif mysql # not compatible
query II rowsort label-5605
SELECT ALL COUNT ( * ) + - 60 * - COUNT ( * ) + 4 col1, + 30 + + 2 AS col2
----
65
32

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5607
SELECT ALL - 7 DIV COUNT( * ) - + 94 AS col1
----
-101

skipif mysql # not compatible
query I rowsort label-5607
SELECT ALL - 7 / COUNT ( * ) - + 94 AS col1
----
-101

query I rowsort
SELECT DISTINCT NULLIF ( 69, - + 87 ) * 39 * - - 33
----
88803

onlyif mysql # DIV for integer division: 
query I rowsort label-5609
SELECT 3 * + 74 DIV - 34
----
-6

skipif mysql # not compatible
query I rowsort label-5609
SELECT 3 * + 74 / - 34
----
-6

query I rowsort
SELECT COALESCE ( + 97, - + 89, - 69 ) + - 90 + - + 55 AS col1
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-5611
SELECT ALL MAX( + 63 ) * - + 82 AS col1
----
-5166

skipif mysql # not compatible
query I rowsort label-5611
SELECT ALL MAX ( + 63 ) * - + 82 AS col1
----
-5166

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5612
SELECT DISTINCT CASE - ( + 84 ) WHEN - 99 + + - ( - 46 ) THEN - COUNT( * ) + - - 94 * - + ( + - 32 ) WHEN + 79 + - NULLIF ( 65, + 18 ) / 65 THEN NULL WHEN - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) * 62 * COALESCE ( 33, - 82 ) * + + 44 * + COALESCE ( - - 88, - + 95, 81 * 38 - - ( - 0 ) - + ( 39 ) + + - 43 ) THEN 81 END * 23 * - + 47
----
NULL

skipif mysql # not compatible
query I rowsort label-5612
SELECT DISTINCT CASE - ( + 84 ) WHEN - 99 + + - ( - 46 ) THEN - COUNT ( * ) + - - 94 * - + ( + - 32 ) WHEN + 79 + - NULLIF ( 65, + 18 ) / 65 THEN NULL WHEN - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) * 62 * COALESCE ( 33, - 82 ) * + + 44 * + COALESCE ( - - 88, - + 95, 81 * 38 - - ( - 0 ) - + ( 39 ) + + - 43 ) THEN 81 END * 23 * - + 47
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5613
SELECT ALL ( - 95 ) - + 85 + 54 + + 24 + + SUM( ALL - + 72 ) + - 30 * + + 0 * + CASE + 33 WHEN + ( MIN( 69 ) ) / - + 75 THEN + 37 END * - + 22 / 96 * - 22 + - 16 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5613
SELECT ALL ( - 95 ) - + 85 + 54 + + 24 + + SUM ( ALL - + 72 ) + - 30 * + + 0 * + CASE + 33 WHEN + ( MIN ( 69 ) ) / - + 75 THEN + 37 END * - + 22 / 96 * - 22 + - 16 AS col0
----
NULL

query I rowsort
SELECT NULLIF ( 19, + - 88 ) * - 21 * + 71
----
-28329

onlyif mysql # DIV for integer division: 
query I rowsort label-5615
SELECT DISTINCT 48 - + - 90 DIV 88
----
49

skipif mysql # not compatible
query I rowsort label-5615
SELECT DISTINCT 48 - + - 90 / 88
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-5616
SELECT ALL + 57 DIV COALESCE ( + 5, - 57 ) * + + 57 + - 51 + 13 * - 56 AS col1
----
-152

skipif mysql # not compatible
query I rowsort label-5616
SELECT ALL + 57 / COALESCE ( + 5, - 57 ) * + + 57 + - 51 + 13 * - 56 AS col1
----
-152

onlyif mysql # aggregate syntax: 
query I rowsort label-5617
SELECT ( 34 ) * + 80 * MIN( 25 ) * - 93 * - + 28
----
177072000

skipif mysql # not compatible
query I rowsort label-5617
SELECT ( 34 ) * + 80 * MIN ( 25 ) * - 93 * - + 28
----
177072000

onlyif mysql # aggregate syntax: 
query I rowsort label-5618
SELECT ALL 65 * - - COUNT( * ) * ( - 19 ) AS col0
----
-1235

skipif mysql # not compatible
query I rowsort label-5618
SELECT ALL 65 * - - COUNT ( * ) * ( - 19 ) AS col0
----
-1235

onlyif mysql # aggregate syntax: 
query I rowsort label-5619
SELECT MAX( ALL - 52 ) * - 29
----
1508

skipif mysql # not compatible
query I rowsort label-5619
SELECT MAX ( ALL - 52 ) * - 29
----
1508

query I rowsort
SELECT 89 + 87 + 80 AS col1
----
256

onlyif mysql # aggregate syntax: 
query I rowsort label-5621
SELECT MIN( DISTINCT + 7 ) + + 54 + + + 40 + NULLIF ( - COUNT( * ), 75 - + 74 - + 45 )
----
100

skipif mysql # not compatible
query I rowsort label-5621
SELECT MIN ( DISTINCT + 7 ) + + 54 + + + 40 + NULLIF ( - COUNT ( * ), 75 - + 74 - + 45 )
----
100

query I rowsort
SELECT DISTINCT - + ( + 93 ) * + 90 AS col0
----
-8370

onlyif mysql # aggregate syntax: 
query II rowsort label-5623
SELECT DISTINCT 13 + 36, MAX( + + 33 ) AS col1
----
49
33

skipif mysql # not compatible
query II rowsort label-5623
SELECT DISTINCT 13 + 36, MAX ( + + 33 ) AS col1
----
49
33

onlyif mysql # DIV for integer division: 
query I rowsort label-5624
SELECT DISTINCT + 85 * 85 DIV - 4
----
-1806

skipif mysql # not compatible
query I rowsort label-5624
SELECT DISTINCT + 85 * 85 / - 4
----
-1806

query I rowsort
SELECT DISTINCT + 22 + - 14
----
8

query I rowsort
SELECT ALL - 63 + - 50
----
-113

query I rowsort
SELECT ALL + - COALESCE ( - - COALESCE ( + 88, + 0 ), - - COALESCE ( - 16, - + 71 ), - 43 ) + + 62 + + - 70 AS col2
----
-96

query I rowsort
SELECT 50 * + 0 - + + COALESCE ( - 74, + 97 )
----
74

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5629
SELECT - + CAST( 47 AS SIGNED ) DIV + + 77 + 35 + 53 * 29
----
1572

skipif mysql # not compatible
query I rowsort label-5629
SELECT - + CAST ( 47 AS INTEGER ) / + + 77 + 35 + 53 * 29
----
1572

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5630
SELECT DISTINCT + CASE 81 WHEN - 86 + + COALESCE ( CAST( NULL AS DECIMAL ), + + 22 ) + 59 THEN NULLIF ( + 64, - 80 ) * NULLIF ( COUNT( DISTINCT 58 ), 73 ) + + COALESCE ( + ( - 59 ), - ( - MIN( COALESCE ( - + 76, + 42 + - 90, - 51 + + 20 ) ) ) ) * COUNT( * ) + + + 29 + + + 94 * 3 + 22 + - 8 * - AVG ( 64 ) * - 9 * + - 91 WHEN - - CASE + CAST( NULL AS SIGNED ) WHEN + MAX( 43 ) * - 65 - MIN( 75 ) THEN - 98 WHEN 93 * 53 THEN 38 END * AVG ( ALL + 92 ) THEN CAST( NULL AS SIGNED ) WHEN COUNT( * ) + + 74 THEN NULL END + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5630
SELECT DISTINCT + CASE 81 WHEN - 86 + + COALESCE ( CAST ( NULL AS REAL ), + + 22 ) + 59 THEN NULLIF ( + 64, - 80 ) * NULLIF ( COUNT ( DISTINCT 58 ), 73 ) + + COALESCE ( + ( - 59 ), - ( - MIN ( COALESCE ( - + 76, + 42 + - 90, - 51 + + 20 ) ) ) ) * COUNT ( * ) + + + 29 + + + 94 * 3 + 22 + - 8 * - AVG ( 64 ) * - 9 * + - 91 WHEN - - CASE + CAST ( NULL AS INTEGER ) WHEN + MAX ( 43 ) * - 65 - MIN ( 75 ) THEN - 98 WHEN 93 * 53 THEN 38 END * AVG ( ALL + 92 ) THEN CAST ( NULL AS INTEGER ) WHEN COUNT ( * ) + + 74 THEN NULL END + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5631
SELECT + MAX( DISTINCT - 12 ) AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-5631
SELECT + MAX ( DISTINCT - 12 ) AS col1
----
-12

query I rowsort
SELECT ALL + 28 + - 83 AS col2
----
-55

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5634
SELECT DISTINCT + 11 * - COUNT( * ) AS col1, 17
----
-11
17

skipif mysql # not compatible
query II rowsort label-5634
SELECT DISTINCT + 11 * - COUNT ( * ) AS col1, 17
----
-11
17

onlyif mysql # aggregate syntax: 
query I rowsort label-5635
SELECT DISTINCT + - 63 + CASE - COUNT( * ) WHEN + 94 THEN + 59 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5635
SELECT DISTINCT + - 63 + CASE - COUNT ( * ) WHEN + 94 THEN + 59 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5636
SELECT ALL + 78 * + 96 + - 60 + 92 + + MIN( DISTINCT + - 33 ) DIV + - COUNT( * ) AS col1
----
7553

skipif mysql # not compatible
query I rowsort label-5636
SELECT ALL + 78 * + 96 + - 60 + 92 + + MIN ( DISTINCT + - 33 ) / + - COUNT ( * ) AS col1
----
7553

query II rowsort
SELECT ALL + 67 + 78, - 26 * + - 94 AS col0
----
145
2444

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5638
SELECT - COALESCE ( 70, - CAST( NULL AS SIGNED ), - 96 ) * 22 * 26 AS col0
----
-40040

skipif mysql # not compatible
query I rowsort label-5638
SELECT - COALESCE ( 70, - CAST ( NULL AS INTEGER ), - 96 ) * 22 * 26 AS col0
----
-40040

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5639
SELECT + - NULLIF ( + MAX( ALL - + 12 ), + CAST( NULL AS DECIMAL ) )
----
12

skipif mysql # not compatible
query I rowsort label-5639
SELECT + - NULLIF ( + MAX ( ALL - + 12 ), + CAST ( NULL AS REAL ) )
----
12

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

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

query I rowsort
SELECT 3 + 17 * + 35 AS col2
----
598

onlyif mysql # DIV for integer division: 
query I rowsort label-5642
SELECT COALESCE ( - 28, - 83 + - 80 DIV - 6 - - 84 ) DIV - 5 AS col2
----
5

skipif mysql # not compatible
query I rowsort label-5642
SELECT COALESCE ( - 28, - 83 + - 80 / - 6 - - 84 ) / - 5 AS col2
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5643
SELECT COUNT( * ) * + + 81 / - 99 / - 61 * 27 * + CAST( + 66 AS SIGNED ) * + CAST( NULL AS SIGNED ) * + + 9 * 1 + + 75 + - 24 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5643
SELECT COUNT ( * ) * + + 81 / - 99 / - 61 * 27 * + CAST ( + 66 AS INTEGER ) * + CAST ( NULL AS INTEGER ) * + + 9 * 1 + + 75 + - 24 AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-5644
SELECT ALL + COUNT ( * ) - - 36 AS col2
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5645
SELECT 34 * + 25 - - 61 + CAST( - SUM( - 52 ) AS SIGNED ), + MAX( ALL - + CAST( NULL AS DECIMAL ) ) / - + AVG ( ALL + 91 ) AS col0
----
963
NULL

skipif mysql # not compatible
query II rowsort label-5645
SELECT 34 * + 25 - - 61 + CAST ( - SUM ( - 52 ) AS INTEGER ), + MAX ( ALL - + CAST ( NULL AS REAL ) ) / - + AVG ( ALL + 91 ) AS col0
----
963
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5646
SELECT ALL 31 DIV + ( - - 51 ), - 84 * 8 AS col1
----
0
-672

skipif mysql # not compatible
query II rowsort label-5646
SELECT ALL 31 / + ( - - 51 ), - 84 * 8 AS col1
----
0
-672

query I rowsort
SELECT 35 * 38 AS col0
----
1330

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

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

query I rowsort
SELECT 47 + + + 29
----
76

onlyif mysql # DIV for integer division: 
query I rowsort label-5650
SELECT ALL - ( - 12 ) DIV + - 59 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5650
SELECT ALL - ( - 12 ) / + - 59 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5651
SELECT ALL 60 * + CASE - + 99 WHEN - COALESCE ( - + 50, - + 24 - + 9 ) THEN NULL ELSE - COUNT( * ) END
----
-60

skipif mysql # not compatible
query I rowsort label-5651
SELECT ALL 60 * + CASE - + 99 WHEN - COALESCE ( - + 50, - + 24 - + 9 ) THEN NULL ELSE - COUNT ( * ) END
----
-60

query I rowsort
SELECT CASE + 5 WHEN + ( + 32 ) + + 5 THEN - 44 WHEN + 7 THEN NULL WHEN + + 50 * + 96 THEN NULL END * + 10 col1
----
NULL

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

skipif mysql # not compatible
query II rowsort label-5653
SELECT ALL 76 col0, 34 * + 50 * CAST ( NULL AS INTEGER ) AS col2
----
76
NULL

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

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

query I rowsort
SELECT 73 - - 57
----
130

query I rowsort
SELECT DISTINCT 6 * + - 82 AS col1
----
-492

query I rowsort
SELECT ALL 24 * - - 72 col0
----
1728

onlyif mysql # aggregate syntax: 
query II rowsort label-5658
SELECT 55 AS col1, - COUNT( * ) * + - 17
----
55
17

skipif mysql # not compatible
query II rowsort label-5658
SELECT 55 AS col1, - COUNT ( * ) * + - 17
----
55
17

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5659
SELECT + CAST( NULL AS DECIMAL ) * + 90
----
NULL

skipif mysql # not compatible
query I rowsort label-5659
SELECT + CAST ( NULL AS REAL ) * + 90
----
NULL

query I rowsort
SELECT DISTINCT 70 + - - 76 AS col2
----
146

query I rowsort
SELECT ALL 29 + - - 67 AS col0
----
96

query I rowsort
SELECT + - 78 * + 64 * + 22
----
-109824

query I rowsort
SELECT ALL 16 + - 40 + + - 78 * 26
----
-2052

query I rowsort
SELECT ALL - 15 + - 69 + 77 + + 84 * 4 AS col0
----
329

onlyif mysql # aggregate syntax: 
query I rowsort label-5665
SELECT + 12 + + + MAX( 55 )
----
67

skipif mysql # not compatible
query I rowsort label-5665
SELECT + 12 + + + MAX ( 55 )
----
67

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

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

query I rowsort
SELECT DISTINCT - 40 * 11 AS col1
----
-440

query I rowsort
SELECT ALL 61 * - 16 * - + 98 + + 65 AS col2
----
95713

onlyif mysql # DIV for integer division: 
query I rowsort label-5669
SELECT - 81 DIV + - 87 + - + 77
----
-77

skipif mysql # not compatible
query I rowsort label-5669
SELECT - 81 / + - 87 + - + 77
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5670
SELECT - 98 + - CASE + MAX( CAST( NULL AS SIGNED ) ) WHEN - 50 * 93 - 94 THEN 30 + - 51 + CASE + - MIN( ALL + - 62 ) WHEN - ( + - 28 ) THEN CAST( NULL AS SIGNED ) ELSE NULL END + + COALESCE ( - COALESCE ( + + AVG ( + - 75 ), COALESCE ( + + ( + 80 ), + 29 ) * - COUNT( * ) * + COALESCE ( 54, + - 91 + - 90 * + 28, 20 + - 69 + + CASE + 33 WHEN + + 51 + - 8 THEN - 64 WHEN + - NULLIF ( + - 76, - 96 - - + SUM( - - 11 ) ) * + 51 * + - MIN( ALL CAST( NULL AS SIGNED ) ) + - 95 * COUNT( * ) THEN + 39 END + 14 ) + 83, - 60 ), + 3 * 8 ) * 33 DIV - COUNT( * ) ELSE 67 + - 50 * - 8 END
----
-565

skipif mysql # not compatible
query I rowsort label-5670
SELECT - 98 + - CASE + MAX ( CAST ( NULL AS INTEGER ) ) WHEN - 50 * 93 - 94 THEN 30 + - 51 + CASE + - MIN ( ALL + - 62 ) WHEN - ( + - 28 ) THEN CAST ( NULL AS INTEGER ) ELSE NULL END + + COALESCE ( - COALESCE ( + + AVG ( + - 75 ), COALESCE ( + + ( + 80 ), + 29 ) * - COUNT ( * ) * + COALESCE ( 54, + - 91 + - 90 * + 28, 20 + - 69 + + CASE + 33 WHEN + + 51 + - 8 THEN - 64 WHEN + - NULLIF ( + - 76, - 96 - - + SUM ( - - 11 ) ) * + 51 * + - MIN ( ALL CAST ( NULL AS INTEGER ) ) + - 95 * COUNT ( * ) THEN + 39 END + 14 ) + 83, - 60 ), + 3 * 8 ) * 33 / - COUNT ( * ) ELSE 67 + - 50 * - 8 END
----
-565

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5671
SELECT ALL + - ( CAST( + CASE - NULLIF ( + ( - + 65 ), - 15 * - 62 + - 11 + - - COALESCE ( + 24, + 21 * ( + 7 ) ) ) WHEN + 16 THEN NULL WHEN - 19 THEN + 77 ELSE + 33 END AS SIGNED ) ) AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-5671
SELECT ALL + - ( CAST ( + CASE - NULLIF ( + ( - + 65 ), - 15 * - 62 + - 11 + - - COALESCE ( + 24, + 21 * ( + 7 ) ) ) WHEN + 16 THEN NULL WHEN - 19 THEN + 77 ELSE + 33 END AS INTEGER ) ) AS col0
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5672
SELECT + - 13, 85 + + CAST( + - 13 AS SIGNED ) AS col2
----
-13
72

skipif mysql # not compatible
query II rowsort label-5672
SELECT + - 13, 85 + + CAST ( + - 13 AS INTEGER ) AS col2
----
-13
72

onlyif mysql # aggregate syntax: 
query I rowsort label-5673
SELECT - 12 + - MAX( + 76 ) + 96 + + 56 - 39 AS col2
----
25

skipif mysql # not compatible
query I rowsort label-5673
SELECT - 12 + - MAX ( + 76 ) + 96 + + 56 - 39 AS col2
----
25

query I rowsort
SELECT - 44 * + + 30 AS col2
----
-1320

onlyif mysql # aggregate syntax: 
query I rowsort label-5675
SELECT + 57 * - COUNT( * ) + - 15 AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-5675
SELECT + 57 * - COUNT ( * ) + - 15 AS col1
----
-72

query I rowsort
SELECT - 20 + - 27
----
-47

query I rowsort
SELECT ALL + CASE - + 54 WHEN - 40 / - + 1 - - 90 THEN + 47 WHEN - - 91 + - 55 THEN NULL END
----
NULL

query I rowsort
SELECT ALL - 75 * + 71 AS col0
----
-5325

query I rowsort
SELECT - 96 + - 94 * 91 AS col2
----
-8650

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5681
SELECT DISTINCT - SUM( DISTINCT - + 52 ) * + 93 - - + 3
----
4839

skipif mysql # not compatible
query I rowsort label-5681
SELECT DISTINCT - SUM ( DISTINCT - + 52 ) * + 93 - - + 3
----
4839

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5682
SELECT ALL - CAST( - 25 AS SIGNED ) * - 22 - - MAX( ALL - 62 ) AS col2
----
-612

skipif mysql # not compatible
query I rowsort label-5682
SELECT ALL - CAST ( - 25 AS INTEGER ) * - 22 - - MAX ( ALL - 62 ) AS col2
----
-612

query I rowsort
SELECT DISTINCT ( - NULLIF ( - 27, + 38 ) ) AS col1
----
27

query I rowsort
SELECT DISTINCT - 49 + + 40
----
-9

query I rowsort
SELECT - 82 * + 58 col2
----
-4756

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

skipif mysql # not compatible
query I rowsort label-5686
SELECT - COUNT ( * ) + - MIN ( + 8 ) col0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5687
SELECT DISTINCT 11 + + 98 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5687
SELECT DISTINCT 11 + + 98 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5688
SELECT DISTINCT - 85 DIV - - CASE + - 76 WHEN + - 45 * - ( - 68 ) THEN NULL ELSE - - 92 END
----
0

skipif mysql # not compatible
query I rowsort label-5688
SELECT DISTINCT - 85 / - - CASE + - 76 WHEN + - 45 * - ( - 68 ) THEN NULL ELSE - - 92 END
----
0

query I rowsort
SELECT ALL - NULLIF ( - + 77, + 26 )
----
77

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

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

query I rowsort
SELECT + - 41 + 63 AS col0
----
22

query I rowsort
SELECT DISTINCT - 36 + - 39 AS col0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5693
SELECT + + ( + MIN( - 50 ) ) + 9 col2
----
-41

skipif mysql # not compatible
query I rowsort label-5693
SELECT + + ( + MIN ( - 50 ) ) + 9 col2
----
-41

query II rowsort
SELECT ALL + 61 + - 45 col2, 69 AS col0
----
16
69

query I rowsort
SELECT DISTINCT 59 * ( + + 66 ) AS col2
----
3894

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5697
SELECT DISTINCT + CASE COUNT( * ) WHEN + 45 + CASE 96 WHEN + CAST( NULL AS SIGNED ) THEN NULL WHEN - - 45 THEN + - 36 * + - COUNT( * ) - SUM( - - 4 ) + - 40 ELSE - + 94 + - 96 END THEN + 54 / + + 92 + 58 + - MAX( + - 60 ) / - ( - MIN( + 37 ) ) END, - MIN( DISTINCT - + 21 ) * 38 + + + 90 col0
----
NULL
888

skipif mysql # not compatible
query II rowsort label-5697
SELECT DISTINCT + CASE COUNT ( * ) WHEN + 45 + CASE 96 WHEN + CAST ( NULL AS INTEGER ) THEN NULL WHEN - - 45 THEN + - 36 * + - COUNT ( * ) - SUM ( - - 4 ) + - 40 ELSE - + 94 + - 96 END THEN + 54 / + + 92 + 58 + - MAX ( + - 60 ) / - ( - MIN ( + 37 ) ) END, - MIN ( DISTINCT - + 21 ) * 38 + + + 90 col0
----
NULL
888

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5698
SELECT DISTINCT + 53 - - CAST( + - 32 AS SIGNED ) * 14 AS col0
----
-395

skipif mysql # not compatible
query I rowsort label-5698
SELECT DISTINCT + 53 - - CAST ( + - 32 AS INTEGER ) * 14 AS col0
----
-395

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5701
SELECT ALL + + 42 DIV - + 62 - ( 75 ) + + 21 AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-5701
SELECT ALL + + 42 / - + 62 - ( 75 ) + + 21 AS col2
----
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-5702
SELECT + 49 DIV - - 78
----
0

skipif mysql # not compatible
query I rowsort label-5702
SELECT + 49 / - - 78
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5703
SELECT - 19 DIV - + 7
----
2

skipif mysql # not compatible
query I rowsort label-5703
SELECT - 19 / - + 7
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-5704
SELECT DISTINCT SUM( 11 ) * 96 + + 69 AS col2, 39 + + + 96 AS col0
----
1125
135

skipif mysql # not compatible
query II rowsort label-5704
SELECT DISTINCT SUM ( 11 ) * 96 + + 69 AS col2, 39 + + + 96 AS col0
----
1125
135

onlyif mysql # aggregate syntax: 
query I rowsort label-5705
SELECT ALL + CASE 28 WHEN + 10 * - + 75 + + 18 + 19 / + + 17 * - - COUNT( * ) THEN - 23 * 35 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5705
SELECT ALL + CASE 28 WHEN + 10 * - + 75 + + 18 + 19 / + + 17 * - - COUNT ( * ) THEN - 23 * 35 END AS col2
----
NULL

query I rowsort
SELECT ALL - 43 * + 61 AS col1
----
-2623

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5708
SELECT + 14 DIV + 79 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5708
SELECT + 14 / + 79 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5709
SELECT ( + MAX( - + 69 ) ) AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-5709
SELECT ( + MAX ( - + 69 ) ) AS col2
----
-69

onlyif mysql # aggregate syntax: 
query II rowsort label-5710
SELECT DISTINCT COALESCE ( - 42, + 11 - + + 35 ) * + 42 AS col2, COUNT( * )
----
-1764
1

skipif mysql # not compatible
query II rowsort label-5710
SELECT DISTINCT COALESCE ( - 42, + 11 - + + 35 ) * + 42 AS col2, COUNT ( * )
----
-1764
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5711
SELECT ALL 96 * + CASE - 19 WHEN - + 61 THEN NULL WHEN + CAST( NULL AS SIGNED ) THEN + COUNT( * ) * + 69 WHEN - 48 THEN NULL ELSE NULL END, 33 col2
----
NULL
33

skipif mysql # not compatible
query II rowsort label-5711
SELECT ALL 96 * + CASE - 19 WHEN - + 61 THEN NULL WHEN + CAST ( NULL AS INTEGER ) THEN + COUNT ( * ) * + 69 WHEN - 48 THEN NULL ELSE NULL END, 33 col2
----
NULL
33

query II rowsort
SELECT ALL + 93 AS col1, + 8 * + 81
----
93
648

query II rowsort
SELECT + 62 AS col1, + 93 AS col2
----
62
93

query II rowsort
SELECT + 36 + 19 + + 51 * - + 73 * - 35 + 26, 96 AS col0
----
130386
96

query I rowsort
SELECT 79 * + - 93
----
-7347

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5716
SELECT 23 AS col1, - CASE - COUNT( * ) WHEN 95 THEN + - ( COALESCE ( 44, - 18 * + - NULLIF ( + + MAX( DISTINCT - + 22 ), - ( - - 4 ) + 80 + + + COALESCE ( + 76, 44 ) * 34 * CAST( + 43 AS SIGNED ) + + 75 + + 18 ) ) ) ELSE + - 53 - - 6 END AS col0
----
23
47

skipif mysql # not compatible
query II rowsort label-5716
SELECT 23 AS col1, - CASE - COUNT ( * ) WHEN 95 THEN + - ( COALESCE ( 44, - 18 * + - NULLIF ( + + MAX ( DISTINCT - + 22 ), - ( - - 4 ) + 80 + + + COALESCE ( + 76, 44 ) * 34 * CAST ( + 43 AS INTEGER ) + + 75 + + 18 ) ) ) ELSE + - 53 - - 6 END AS col0
----
23
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5717
SELECT ALL + 8 + + 76 DIV + + CAST( + ( + 19 ) AS SIGNED ) - - COUNT( * ) DIV 35 * 40 * + - 0 * + + 36 * - - 90 AS col1
----
12

skipif mysql # not compatible
query I rowsort label-5717
SELECT ALL + 8 + + 76 / + + CAST ( + ( + 19 ) AS INTEGER ) - - COUNT ( * ) / 35 * 40 * + - 0 * + + 36 * - - 90 AS col1
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-5718
SELECT ALL + 99 + + SUM( 27 ) AS col2, 74 AS col2
----
126
74

skipif mysql # not compatible
query II rowsort label-5718
SELECT ALL + 99 + + SUM ( 27 ) AS col2, 74 AS col2
----
126
74

query I rowsort
SELECT 69 * 0 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5720
SELECT DISTINCT 30 + - + ( + + 42 ) * MAX( - 21 ) - + 50 AS col1
----
862

skipif mysql # not compatible
query I rowsort label-5720
SELECT DISTINCT 30 + - + ( + + 42 ) * MAX ( - 21 ) - + 50 AS col1
----
862

query I rowsort
SELECT DISTINCT - 26 + 50 col0
----
24

onlyif mysql # aggregate syntax: 
query II rowsort label-5722
SELECT DISTINCT + 63 + COUNT( * ) + CASE + - 56 WHEN - 40 THEN NULL WHEN 56 + + 83 THEN NULL WHEN 60 + - 47 + + COUNT( * ) * - 8 * - + CASE 58 WHEN - 52 THEN + 84 + 52 WHEN - - 29 * - AVG ( ALL - 33 ) * 6 * 77 * - 97 * - - 12 + - 37 THEN NULL ELSE NULL END THEN + - 65 WHEN - 18 / 31 * ( - - 99 ) + - 55 THEN NULL END * + 39 + + 10 + + 11 - - 50 / 69, COUNT( * ) AS col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-5722
SELECT DISTINCT + 63 + COUNT ( * ) + CASE + - 56 WHEN - 40 THEN NULL WHEN 56 + + 83 THEN NULL WHEN 60 + - 47 + + COUNT ( * ) * - 8 * - + CASE 58 WHEN - 52 THEN + 84 + 52 WHEN - - 29 * - AVG ( ALL - 33 ) * 6 * 77 * - 97 * - - 12 + - 37 THEN NULL ELSE NULL END THEN + - 65 WHEN - 18 / 31 * ( - - 99 ) + - 55 THEN NULL END * + 39 + + 10 + + 11 - - 50 / 69, COUNT ( * ) AS col1
----
NULL
1

query II rowsort
SELECT 23, + 29 col2
----
23
29

query I rowsort
SELECT DISTINCT + 81 + - 35 AS col2
----
46

query I rowsort
SELECT DISTINCT + - 61 + - ( - 76 ) col2
----
15

query I rowsort
SELECT ALL - + 98 * - 11
----
1078

onlyif mysql # aggregate syntax: 
query II rowsort label-5727
SELECT - 17, ( - + COUNT( * ) ) * 37 col0
----
-17
-37

skipif mysql # not compatible
query II rowsort label-5727
SELECT - 17, ( - + COUNT ( * ) ) * 37 col0
----
-17
-37

query I rowsort
SELECT ALL - 32 - + 15
----
-47

query II rowsort
SELECT 13 col0, + 57 AS col2
----
13
57

query I rowsort
SELECT DISTINCT - 4 - + + 82 AS col2
----
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5731
SELECT ALL + COALESCE ( + COUNT( * ), - COUNT( * ) ) DIV - 87 + - - 27 * MIN( + ( + + 94 ) ) * COUNT( * ) + - 90 + - COUNT( * ) + SUM( DISTINCT + COALESCE ( CAST( + ( + + 40 ) AS SIGNED ), + ( - 93 ) * 2 * 36 ) ) DIV + 58 * + - 21 + + 10 + + MIN( 89 ) * - CASE + - 60 WHEN + 60 THEN COUNT( * ) * - ( + 2 ) WHEN 49 THEN MAX( + 7 ) + + ( - 85 ) * 17 * - 99 + - - 98 + 23 DIV 96 + - 34 DIV + + 22 ELSE COUNT( * ) DIV 70 DIV + 15 + 13 END * 60 + - 46
----
-67009

skipif mysql # not compatible
query I rowsort label-5731
SELECT ALL + COALESCE ( + COUNT ( * ), - COUNT ( * ) ) / - 87 + - - 27 * MIN ( + ( + + 94 ) ) * COUNT ( * ) + - 90 + - COUNT ( * ) + SUM ( DISTINCT + COALESCE ( CAST ( + ( + + 40 ) AS INTEGER ), + ( - 93 ) * 2 * 36 ) ) / + 58 * + - 21 + + 10 + + MIN ( 89 ) * - CASE + - 60 WHEN + 60 THEN COUNT ( * ) * - ( + 2 ) WHEN 49 THEN MAX ( + 7 ) + + ( - 85 ) * 17 * - 99 + - - 98 + 23 / 96 + - 34 / + + 22 ELSE COUNT ( * ) / 70 / + 15 + 13 END * 60 + - 46
----
-67009

query I rowsort
SELECT ALL 88 * - + 34 AS col2
----
-2992

query I rowsort
SELECT 17 * + + 83 col1
----
1411

query II rowsort
SELECT 93 AS col2, 42 + - ( + 45 )
----
93
-3

query II rowsort
SELECT + 11 + 83 + - 24 AS col0, + 47 AS col0
----
70
47

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

skipif mysql # not compatible
query I rowsort label-5736
SELECT ALL MIN ( ALL - 21 )
----
-21

query I rowsort
SELECT 42 * 80 AS col2
----
3360

query I rowsort
SELECT 86 * 85 * + 36
----
263160

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5741
SELECT ALL - 76 AS col2, ( 71 ) + + 60 + COUNT( * )
----
-76
132

skipif mysql # not compatible
query II rowsort label-5741
SELECT ALL - 76 AS col2, ( 71 ) + + 60 + COUNT ( * )
----
-76
132

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5742
SELECT - CAST( NULL AS SIGNED ) * + + 4 + - - 21 - + - 18 * + 78 * - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5742
SELECT - CAST ( NULL AS INTEGER ) * + + 4 + - - 21 - + - 18 * + 78 * - - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5743
SELECT DISTINCT - CASE - + SUM( + - 67 ) WHEN - 8 THEN + 10 END * MAX( + + 68 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5743
SELECT DISTINCT - CASE - + SUM ( + - 67 ) WHEN - 8 THEN + 10 END * MAX ( + + 68 ) AS col2
----
NULL

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

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

query II rowsort
SELECT 71, 63 col0
----
71
63

query I rowsort
SELECT ALL 55 + - 91
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5747
SELECT DISTINCT COALESCE ( - 14, + + 55 * + 82 * + CAST( - COUNT( * ) AS SIGNED ) / 85 / + 72, COUNT( * ) ) + CAST( + 82 AS SIGNED ) * ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5747
SELECT DISTINCT COALESCE ( - 14, + + 55 * + 82 * + CAST ( - COUNT ( * ) AS INTEGER ) / 85 / + 72, COUNT ( * ) ) + CAST ( + 82 AS INTEGER ) * ( - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT DISTINCT 90 + + + 97 * + - 16 + + 61 * - 68 AS col1
----
-5610

query I rowsort
SELECT ALL 48 + - 45
----
3

query I rowsort
SELECT 12 * 73 + + 40 AS col1
----
916

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5751
SELECT DISTINCT 83 * 38 DIV SUM( - 80 )
----
-39

skipif mysql # not compatible
query I rowsort label-5751
SELECT DISTINCT 83 * 38 / SUM ( - 80 )
----
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-5752
SELECT DISTINCT 54 + + 69 DIV - 74 AS col1
----
54

skipif mysql # not compatible
query I rowsort label-5752
SELECT DISTINCT 54 + + 69 / - 74 AS col1
----
54

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

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

query II rowsort
SELECT 76 AS col2, + 65 * 49
----
76
3185

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5755
SELECT ( + CAST( + - 20 AS SIGNED ) ) * + + 6 + CASE + 96 WHEN + 24 THEN COUNT( * ) - - - 4 + 54 WHEN + + 41 THEN + 78 DIV + 68 + + NULLIF ( + 38, + - 43 + - ( 7 ) ) + + 2 * + 73 ELSE MAX( DISTINCT + + 18 ) END + - MIN( DISTINCT + 10 ) col0
----
-112

skipif mysql # not compatible
query I rowsort label-5755
SELECT ( + CAST ( + - 20 AS INTEGER ) ) * + + 6 + CASE + 96 WHEN + 24 THEN COUNT ( * ) - - - 4 + 54 WHEN + + 41 THEN + 78 / + 68 + + NULLIF ( + 38, + - 43 + - ( 7 ) ) + + 2 * + 73 ELSE MAX ( DISTINCT + + 18 ) END + - MIN ( DISTINCT + 10 ) col0
----
-112

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5756
SELECT ALL 95 * - CAST( 60 AS SIGNED ) AS col0
----
-5700

skipif mysql # not compatible
query I rowsort label-5756
SELECT ALL 95 * - CAST ( 60 AS INTEGER ) AS col0
----
-5700

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

skipif mysql # not compatible
query I rowsort label-5757
SELECT ALL + SUM ( + 16 ) + COUNT ( * ) * - 12 * - + COUNT ( * )
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5758
SELECT CAST( 47 AS SIGNED ) * ( - 29 ) DIV + - COUNT( * ) - + - 56 + - 36 * + ( 41 ), 98 * + - NULLIF ( + - 18, - COUNT( * ) * COUNT( * ) ) AS col0
----
-57
1764

skipif mysql # not compatible
query II rowsort label-5758
SELECT CAST ( 47 AS INTEGER ) * ( - 29 ) / + - COUNT ( * ) - + - 56 + - 36 * + ( 41 ), 98 * + - NULLIF ( + - 18, - COUNT ( * ) * COUNT ( * ) ) AS col0
----
-57
1764

query II rowsort
SELECT 71, 60 AS col1
----
71
60

query I rowsort
SELECT DISTINCT 76 - - 12 col0
----
88

query II rowsort
SELECT ALL 93, + 63 AS col0
----
93
63

query I rowsort
SELECT DISTINCT - NULLIF ( ( - + 98 ), - ( - 73 ) ) AS col0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5763
SELECT - 53 + + MIN( 77 ) * 98 + + 59 AS col1
----
7552

skipif mysql # not compatible
query I rowsort label-5763
SELECT - 53 + + MIN ( 77 ) * 98 + + 59 AS col1
----
7552

onlyif mysql # aggregate syntax: 
query I rowsort label-5764
SELECT - 92 * + - 6 + + + COUNT( * )
----
553

skipif mysql # not compatible
query I rowsort label-5764
SELECT - 92 * + - 6 + + + COUNT ( * )
----
553

query I rowsort
SELECT + 1 + - 69 AS col0
----
-68

query I rowsort
SELECT DISTINCT + ( - - 24 ) - 73 AS col1
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5767
SELECT ALL + CASE - 18 WHEN + 35 THEN NULL ELSE + + 57 END * CAST( + 85 AS SIGNED ) AS col2
----
4845

skipif mysql # not compatible
query I rowsort label-5767
SELECT ALL + CASE - 18 WHEN + 35 THEN NULL ELSE + + 57 END * CAST ( + 85 AS INTEGER ) AS col2
----
4845

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5768
SELECT COUNT( * ) * 34 / + 27 * COALESCE ( - 71, - - 21 ) + + CAST( NULL AS SIGNED ) + + 29 * MAX( DISTINCT + ( 74 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5768
SELECT COUNT ( * ) * 34 / + 27 * COALESCE ( - 71, - - 21 ) + + CAST ( NULL AS INTEGER ) + + 29 * MAX ( DISTINCT + ( 74 ) ) AS col2
----
NULL

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

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

query I rowsort
SELECT DISTINCT + 51 * 60 AS col0
----
3060

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5771
SELECT + MIN( DISTINCT 49 ) - CAST( NULL AS SIGNED ) AS col2
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5772
SELECT 62 + - - MIN( DISTINCT 30 ) - - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5772
SELECT 62 + - - MIN ( DISTINCT 30 ) - - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 1 * 94 + + 67 AS col0
----
161

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5774
SELECT - COUNT( - CAST( + 31 AS DECIMAL ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5774
SELECT - COUNT ( - CAST ( + 31 AS REAL ) ) AS col0
----
-1

query II rowsort
SELECT ALL 92 AS col2, 54 AS col1
----
92
54

query I rowsort
SELECT 42 * 53 + - - 76 * - - 10
----
2986

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5777
SELECT ALL + 57 * - + CASE - 1 WHEN - 30 THEN - + 45 END - NULLIF ( - - ( - - 52 ), - - 39 ) - ( + - CAST( NULL AS SIGNED ) ) * - 78 * + - 10 * - COUNT( * ) * 1
----
NULL

skipif mysql # not compatible
query I rowsort label-5777
SELECT ALL + 57 * - + CASE - 1 WHEN - 30 THEN - + 45 END - NULLIF ( - - ( - - 52 ), - - 39 ) - ( + - CAST ( NULL AS INTEGER ) ) * - 78 * + - 10 * - COUNT ( * ) * 1
----
NULL

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5780
SELECT + 58 DIV - 55 - - 7
----
6

skipif mysql # not compatible
query I rowsort label-5780
SELECT + 58 / - 55 - - 7
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5781
SELECT ALL + 7 + - MAX( - 97 ) + + + 71 + 15 * 25 AS col0
----
550

skipif mysql # not compatible
query I rowsort label-5781
SELECT ALL + 7 + - MAX ( - 97 ) + + + 71 + 15 * 25 AS col0
----
550

query I rowsort
SELECT COALESCE ( + 59, 72 * 1 ) AS col2
----
59

query I rowsort
SELECT 57 * ( 66 ) * + + 30
----
112860

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5784
SELECT ALL + CAST( - 77 AS SIGNED ) * - 74 + CASE - 48 WHEN + + 12 + 46 * 42 / CAST( NULL AS SIGNED ) THEN + COUNT( * ) WHEN - 71 THEN 99 ELSE NULL END + - - 26 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5784
SELECT ALL + CAST ( - 77 AS INTEGER ) * - 74 + CASE - 48 WHEN + + 12 + 46 * 42 / CAST ( NULL AS INTEGER ) THEN + COUNT ( * ) WHEN - 71 THEN 99 ELSE NULL END + - - 26 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5785
SELECT NULLIF ( - - ( + COUNT( * ) ), - NULLIF ( - ( - CASE - 21 WHEN + 28 THEN NULL WHEN - + 27 + - 75 THEN - ( 67 ) ELSE NULL END ), + 23 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5785
SELECT NULLIF ( - - ( + COUNT ( * ) ), - NULLIF ( - ( - CASE - 21 WHEN + 28 THEN NULL WHEN - + 27 + - 75 THEN - ( 67 ) ELSE NULL END ), + 23 ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5786
SELECT NULLIF ( + COUNT( * ), + COUNT( * ) * - SUM( 18 ) ), 59 * + - ( - 34 ) col2
----
1
2006

skipif mysql # not compatible
query II rowsort label-5786
SELECT NULLIF ( + COUNT ( * ), + COUNT ( * ) * - SUM ( 18 ) ), 59 * + - ( - 34 ) col2
----
1
2006

query I rowsort
SELECT ALL 38 * 69 * ( - - 90 ) + - 26
----
235954

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5788
SELECT DISTINCT ( + - 15 ) * 37 + - ( 36 ) + - CAST( + ( + CAST( NULL AS SIGNED ) ) AS DECIMAL ) + 47 - + 35 * - 60 * COUNT( * ) + 38 * - 63 / - 62 / - 12 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5788
SELECT DISTINCT ( + - 15 ) * 37 + - ( 36 ) + - CAST ( + ( + CAST ( NULL AS INTEGER ) ) AS REAL ) + 47 - + 35 * - 60 * COUNT ( * ) + 38 * - 63 / - 62 / - 12 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5789
SELECT + 56 * + 29 * + + COUNT( * ) - + 74
----
1550

skipif mysql # not compatible
query I rowsort label-5789
SELECT + 56 * + 29 * + + COUNT ( * ) - + 74
----
1550

query I rowsort
SELECT ALL 50 * 19 + - 55 col1
----
895

query I rowsort
SELECT DISTINCT + 35 * + 97 * 84
----
285180

query I rowsort
SELECT - COALESCE ( 23, 7, + + 23 * - 9 * - 18 ) + 17 + ( - 83 )
----
-89

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5794
SELECT - 23 + - + CAST( NULL AS SIGNED ) + COALESCE ( COUNT( * ), + 76 ) * - + 61 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5794
SELECT - 23 + - + CAST ( NULL AS INTEGER ) + COALESCE ( COUNT ( * ), + 76 ) * - + 61 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5795
SELECT + NULLIF ( CASE - + 5 WHEN - - 83 THEN NULL ELSE + ( - + 53 ) DIV + 94 END, - COUNT( * ) ) AS col0, - 99
----
0
-99

skipif mysql # not compatible
query II rowsort label-5795
SELECT + NULLIF ( CASE - + 5 WHEN - - 83 THEN NULL ELSE + ( - + 53 ) / + 94 END, - COUNT ( * ) ) AS col0, - 99
----
0
-99

query II rowsort
SELECT ALL 36 * ( - 75 ) - 62 * - 80 AS col2, - 8 col0
----
2260
-8

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5799
SELECT DISTINCT MIN( ALL + 47 ) DIV 48 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5799
SELECT DISTINCT MIN ( ALL + 47 ) / 48 AS col2
----
0

query I rowsort
SELECT + + 35 + + 53 col0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-5801
SELECT ALL + 24 * - COUNT( DISTINCT + + 24 ) * - 28 AS col2
----
672

skipif mysql # not compatible
query I rowsort label-5801
SELECT ALL + 24 * - COUNT ( DISTINCT + + 24 ) * - 28 AS col2
----
672

query I rowsort
SELECT + 13 * - 62 AS col0
----
-806

query I rowsort
SELECT ALL 82 * 28 col2
----
2296

query I rowsort
SELECT DISTINCT + 80 * + ( + 48 ) AS col2
----
3840

query I rowsort
SELECT + - 52 * 82
----
-4264

query I rowsort
SELECT - 53 + - 61 * + 26 * - 5 + 20 * 68 AS col0
----
9237

onlyif mysql # aggregate syntax: 
query I rowsort label-5807
SELECT ALL COUNT( + 58 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-5807
SELECT ALL COUNT ( + 58 ) col2
----
1

query I rowsort
SELECT + 93 * - - 65 AS col1
----
6045

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5809
SELECT ALL CASE + + COUNT( * ) WHEN - 69 - 49 THEN - - CAST( NULL AS SIGNED ) WHEN - 91 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5809
SELECT ALL CASE + + COUNT ( * ) WHEN - 69 - 49 THEN - - CAST ( NULL AS INTEGER ) WHEN - 91 THEN NULL ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5810
SELECT ALL - MAX( ALL - - 75 ) + + 85
----
10

skipif mysql # not compatible
query I rowsort label-5810
SELECT ALL - MAX ( ALL - - 75 ) + + 85
----
10

query II rowsort
SELECT + + 33 + - 70 AS col0, - 22 col0
----
-37
-22

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5813
SELECT DISTINCT 94 + + COUNT( * ) DIV - 19 * - + 62 AS col0
----
94

skipif mysql # not compatible
query I rowsort label-5813
SELECT DISTINCT 94 + + COUNT ( * ) / - 19 * - + 62 AS col0
----
94

onlyif mysql # aggregate syntax: 
query II rowsort label-5814
SELECT ALL + COUNT( * ) * + 71 col1, + 45 AS col0
----
71
45

skipif mysql # not compatible
query II rowsort label-5814
SELECT ALL + COUNT ( * ) * + 71 col1, + 45 AS col0
----
71
45

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5815
SELECT DISTINCT + 78 + 34 + - + 73 * - 9 * - ( + NULLIF ( - 67, - 90 ) ) * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5815
SELECT DISTINCT + 78 + 34 + - + 73 * - 9 * - ( + NULLIF ( - 67, - 90 ) ) * CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT DISTINCT NULLIF ( + 4, 89 + - 29 )
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5817
SELECT ALL + CAST( NULL AS SIGNED ) * + CASE + 93 WHEN - 28 THEN NULL WHEN - 60 * 21 + 15 / - ( 6 ) - - 88 THEN + - 81 WHEN + 44 + - - 93 * + 84 THEN + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5817
SELECT ALL + CAST ( NULL AS INTEGER ) * + CASE + 93 WHEN - 28 THEN NULL WHEN - 60 * 21 + 15 / - ( 6 ) - - 88 THEN + - 81 WHEN + 44 + - - 93 * + 84 THEN + COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5818
SELECT + 37 + + + COUNT( * ) AS col0
----
38

skipif mysql # not compatible
query I rowsort label-5818
SELECT + 37 + + + COUNT ( * ) AS col0
----
38

query I rowsort
SELECT - 37 * - 32 AS col0
----
1184

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

skipif mysql # not compatible
query I rowsort label-5820
SELECT ALL 77 / + 56 + - + ( - + COUNT ( * ) )
----
2

query I rowsort
SELECT ALL + NULLIF ( + ( + 52 ), ( - 96 ) + 84 - + + 89 ) col1
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5822
SELECT ALL CAST( NULL AS SIGNED ) / - - 89 + + 69 / - CASE - 10 WHEN + 86 THEN 0 / - + 78 * - 85 ELSE NULL END + - + 74
----
NULL

skipif mysql # not compatible
query I rowsort label-5822
SELECT ALL CAST ( NULL AS INTEGER ) / - - 89 + + 69 / - CASE - 10 WHEN + 86 THEN 0 / - + 78 * - 85 ELSE NULL END + - + 74
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5823
SELECT + NULLIF ( + 71, - CAST( - 48 AS SIGNED ) ) DIV + 75 + + + NULLIF ( - - 64, + 54 * + - 66 ) + - + 78 AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-5823
SELECT + NULLIF ( + 71, - CAST ( - 48 AS INTEGER ) ) / + 75 + + + NULLIF ( - - 64, + 54 * + - 66 ) + - + 78 AS col2
----
-14

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

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

query I rowsort
SELECT DISTINCT 89 * - - 18 - 97
----
1505

onlyif mysql # aggregate syntax: 
query II rowsort label-5826
SELECT ALL - 77 / - - 24 * - 74 * + - CASE - 6 WHEN + 95 THEN NULL WHEN + 99 - 76 + + COUNT( * ) THEN 66 * - - 66 ELSE NULL END AS col1, - 53 AS col1
----
NULL
-53

skipif mysql # not compatible
query II rowsort label-5826
SELECT ALL - 77 / - - 24 * - 74 * + - CASE - 6 WHEN + 95 THEN NULL WHEN + 99 - 76 + + COUNT ( * ) THEN 66 * - - 66 ELSE NULL END AS col1, - 53 AS col1
----
NULL
-53

query I rowsort
SELECT - 65 * + 17
----
-1105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5828
SELECT - ( 45 ) * SUM( DISTINCT NULLIF ( - - 89, - CAST( + 73 AS SIGNED ) ) ) AS col2
----
-4005

skipif mysql # not compatible
query I rowsort label-5828
SELECT - ( 45 ) * SUM ( DISTINCT NULLIF ( - - 89, - CAST ( + 73 AS INTEGER ) ) ) AS col2
----
-4005

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

skipif mysql # not compatible
query I rowsort label-5829
SELECT ( + CAST ( - - SUM ( DISTINCT + + 94 ) AS INTEGER ) ) AS col1
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5830
SELECT DISTINCT + CASE + COUNT( * ) WHEN - 51 * - + 60 + + + COALESCE ( CAST( - 65 AS SIGNED ), - - 31 ) / - - 63 THEN NULL WHEN - 55 * - - 99 THEN - - 33 * + + ( - CAST( NULL AS SIGNED ) ) + + - 38 * + SUM( DISTINCT - 67 ) WHEN + 9 * - ( - 20 ) + - NULLIF ( 48, + 75 * + + 84 / 87 * + CAST( - 56 AS DECIMAL ) * 83 + + + ( - + 14 ) ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5830
SELECT DISTINCT + CASE + COUNT ( * ) WHEN - 51 * - + 60 + + + COALESCE ( CAST ( - 65 AS INTEGER ), - - 31 ) / - - 63 THEN NULL WHEN - 55 * - - 99 THEN - - 33 * + + ( - CAST ( NULL AS INTEGER ) ) + + - 38 * + SUM ( DISTINCT - 67 ) WHEN + 9 * - ( - 20 ) + - NULLIF ( 48, + 75 * + + 84 / 87 * + CAST ( - 56 AS REAL ) * 83 + + + ( - + 14 ) ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5831
SELECT - - 12 DIV - 86 DIV + - 3 + + - COUNT( ALL - 21 )
----
-1

skipif mysql # not compatible
query I rowsort label-5831
SELECT - - 12 / - 86 / + - 3 + + - COUNT ( ALL - 21 )
----
-1

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5833
SELECT ALL + NULLIF ( 83, + 56 ) AS col1, - ( + 70 ) - COUNT( * )
----
83
-71

skipif mysql # not compatible
query II rowsort label-5833
SELECT ALL + NULLIF ( 83, + 56 ) AS col1, - ( + 70 ) - COUNT ( * )
----
83
-71

query II rowsort
SELECT ALL 92 AS col0, + 17 * 1
----
92
17

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5836
SELECT ALL - + MAX( + 62 ) + + 71 * 42
----
2920

skipif mysql # not compatible
query I rowsort label-5836
SELECT ALL - + MAX ( + 62 ) + + 71 * 42
----
2920

query I rowsort
SELECT ALL 57 * - 61 AS col2
----
-3477

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5839
SELECT ALL - COUNT( ALL 78 ) + - - 64
----
63

skipif mysql # not compatible
query I rowsort label-5839
SELECT ALL - COUNT ( ALL 78 ) + - - 64
----
63

query II rowsort
SELECT DISTINCT + NULLIF ( - - 48, + + 84 ) AS col1, + 54 AS col0
----
48
54

onlyif mysql # DIV for integer division: 
query I rowsort label-5841
SELECT - + 85 DIV 99
----
0

skipif mysql # not compatible
query I rowsort label-5841
SELECT - + 85 / 99
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5842
SELECT DISTINCT - 74 + + COUNT( * )
----
-73

skipif mysql # not compatible
query I rowsort label-5842
SELECT DISTINCT - 74 + + COUNT ( * )
----
-73

query II rowsort
SELECT 67, + 4 AS col1
----
67
4

query II rowsort
SELECT 83 + - + 5, + 33 + - 96 AS col1
----
78
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-5845
SELECT ALL 26 + - 20 DIV 12
----
25

skipif mysql # not compatible
query I rowsort label-5845
SELECT ALL 26 + - 20 / 12
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-5846
SELECT DISTINCT 84 + - COUNT( * ) + 50
----
133

skipif mysql # not compatible
query I rowsort label-5846
SELECT DISTINCT 84 + - COUNT ( * ) + 50
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-5847
SELECT ALL 96 * + - MIN( DISTINCT - + ( + 53 ) ) * 42 AS col0
----
213696

skipif mysql # not compatible
query I rowsort label-5847
SELECT ALL 96 * + - MIN ( DISTINCT - + ( + 53 ) ) * 42 AS col0
----
213696

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

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

query I rowsort
SELECT ALL 90 - + 12
----
78

query I rowsort
SELECT ALL 18 * + + 1 AS col1
----
18

query I rowsort
SELECT + 9 * - 24 - 34
----
-250

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5853
SELECT DISTINCT - ( - 88 ), + NULLIF ( + - NULLIF ( + 58, COUNT( * ) / + + AVG ( ALL + CAST( NULL AS SIGNED ) ) - - 78 ), COUNT( * ) ) * - MIN( ALL + 85 ) * + - 14 * 92 AS col0
----
88
-6349840

skipif mysql # not compatible
query II rowsort label-5853
SELECT DISTINCT - ( - 88 ), + NULLIF ( + - NULLIF ( + 58, COUNT ( * ) / + + AVG ( ALL + CAST ( NULL AS INTEGER ) ) - - 78 ), COUNT ( * ) ) * - MIN ( ALL + 85 ) * + - 14 * 92 AS col0
----
88
-6349840

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5854
SELECT DISTINCT 17 * + CAST( - + 52 AS SIGNED )
----
-884

skipif mysql # not compatible
query I rowsort label-5854
SELECT DISTINCT 17 * + CAST ( - + 52 AS INTEGER )
----
-884

onlyif mysql # DIV for integer division: 
query II rowsort label-5855
SELECT DISTINCT - 24 DIV + 12 AS col1, 25 * - - 25
----
-2
625

skipif mysql # not compatible
query II rowsort label-5855
SELECT DISTINCT - 24 / + 12 AS col1, 25 * - - 25
----
-2
625

query I rowsort
SELECT - 86 * + 52
----
-4472

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

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

query I rowsort
SELECT + 39 + - ( 86 ) col1
----
-47

query I rowsort
SELECT 27 * - - 5 - + 69 AS col0
----
66

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

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

query I rowsort
SELECT DISTINCT - - 34 + + 60
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-5862
SELECT ALL + 30 + 1 - - - MAX( + - 33 ) * + 86 + COUNT( * )
----
2870

skipif mysql # not compatible
query I rowsort label-5862
SELECT ALL + 30 + 1 - - - MAX ( + - 33 ) * + 86 + COUNT ( * )
----
2870

query I rowsort
SELECT ALL - 72 + + 94 * - 17 AS col2
----
-1670

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

skipif mysql # not compatible
query I rowsort label-5864
SELECT - 2 + + NULLIF ( + COUNT ( * ), + CAST ( NULL AS INTEGER ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5865
SELECT ALL - COUNT( * ) + - - 58 + + COUNT( DISTINCT - 36 ) AS col2
----
58

skipif mysql # not compatible
query I rowsort label-5865
SELECT ALL - COUNT ( * ) + - - 58 + + COUNT ( DISTINCT - 36 ) AS col2
----
58

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

query I rowsort
SELECT ALL + 89 + - 30
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5868
SELECT - - SUM( 36 ) AS col0
----
36

skipif mysql # not compatible
query I rowsort label-5868
SELECT - - SUM ( 36 ) AS col0
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5869
SELECT + CASE + - CAST( + COUNT( * ) AS SIGNED ) WHEN + 61 + COUNT( * ) THEN - 72 ELSE NULL END * - 47 * - + CAST( NULL AS SIGNED ) - - 25, - 50 * 15 AS col2
----
NULL
-750

skipif mysql # not compatible
query II rowsort label-5869
SELECT + CASE + - CAST ( + COUNT ( * ) AS INTEGER ) WHEN + 61 + COUNT ( * ) THEN - 72 ELSE NULL END * - 47 * - + CAST ( NULL AS INTEGER ) - - 25, - 50 * 15 AS col2
----
NULL
-750

onlyif mysql # aggregate syntax: 
query I rowsort label-5870
SELECT + 38 + - 90 + - COUNT( * ) AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-5870
SELECT + 38 + - 90 + - COUNT ( * ) AS col2
----
-53

query I rowsort
SELECT 57 * + - 23
----
-1311

query I rowsort
SELECT 63 + - 20 AS col0
----
43

onlyif mysql # aggregate syntax: 
query II rowsort label-5873
SELECT ALL + 94 - COUNT( 38 ) AS col2, 74
----
93
74

skipif mysql # not compatible
query II rowsort label-5873
SELECT ALL + 94 - COUNT ( 38 ) AS col2, 74
----
93
74

query I rowsort
SELECT DISTINCT 84 * - + 11 col2
----
-924

query I rowsort
SELECT 98 - - 66
----
164

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5876
SELECT MAX( + NULLIF ( - + 36, + 53 * ( 45 ) ) ) + - - 55 * - 56 * - CAST( 40 AS SIGNED ) + - - MIN( 22 ) AS col1
----
123186

skipif mysql # not compatible
query I rowsort label-5876
SELECT MAX ( + NULLIF ( - + 36, + 53 * ( 45 ) ) ) + - - 55 * - 56 * - CAST ( 40 AS INTEGER ) + - - MIN ( 22 ) AS col1
----
123186

query I rowsort
SELECT DISTINCT 41 * + 52
----
2132

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5878
SELECT 23 DIV SUM( + COALESCE ( - 69, - 98 * + + 24 * + 9 DIV - 27 - - 75 ) ) + + COUNT( * ) col0
----
1

skipif mysql # not compatible
query I rowsort label-5878
SELECT 23 / SUM ( + COALESCE ( - 69, - 98 * + + 24 * + 9 / - 27 - - 75 ) ) + + COUNT ( * ) col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5879
SELECT CAST( NULL AS SIGNED ) + + CASE + - 86 WHEN - - 74 THEN + COUNT( * ) WHEN - COUNT( - ( - 80 ) ) THEN NULL ELSE NULL END * + 31 * 71 / + 49 + + 42 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5879
SELECT CAST ( NULL AS INTEGER ) + + CASE + - 86 WHEN - - 74 THEN + COUNT ( * ) WHEN - COUNT ( - ( - 80 ) ) THEN NULL ELSE NULL END * + 31 * 71 / + 49 + + 42 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5880
SELECT + MAX( DISTINCT + 20 ) AS col1
----
20

skipif mysql # not compatible
query I rowsort label-5880
SELECT + MAX ( DISTINCT + 20 ) AS col1
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-5881
SELECT ALL - NULLIF ( + 48, 6 ) * - 39 + COUNT( * )
----
1873

skipif mysql # not compatible
query I rowsort label-5881
SELECT ALL - NULLIF ( + 48, 6 ) * - 39 + COUNT ( * )
----
1873

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5882
SELECT MAX( 31 ) * - COALESCE ( 16 + 6, - 70 * + ( 48 DIV + 95 ), 59 )
----
-682

skipif mysql # not compatible
query I rowsort label-5882
SELECT MAX ( 31 ) * - COALESCE ( 16 + 6, - 70 * + ( 48 / + 95 ), 59 )
----
-682

query I rowsort
SELECT 32 + COALESCE ( - 40, - 58 + 88 ) * 91 AS col2
----
-3608

query I rowsort
SELECT - 4 * 81 + 92
----
-232

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

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

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

skipif mysql # not compatible
query I rowsort label-5886
SELECT DISTINCT COUNT ( * ) + 20 * - COUNT ( * ) AS col0
----
-19

query I rowsort
SELECT DISTINCT + 97 + 69 AS col2
----
166

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5888
SELECT 41 * + CASE - CAST( - 78 AS SIGNED ) WHEN - COUNT( * ) THEN 96 * + COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5888
SELECT 41 * + CASE - CAST ( - 78 AS INTEGER ) WHEN - COUNT ( * ) THEN 96 * + COUNT ( * ) END AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 79 + - 48 col1
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-5890
SELECT ALL - 25 + + 88 * - COUNT( * )
----
-113

skipif mysql # not compatible
query I rowsort label-5890
SELECT ALL - 25 + + 88 * - COUNT ( * )
----
-113

onlyif mysql # DIV for integer division: 
query I rowsort label-5891
SELECT DISTINCT + 98 DIV - 91 col0
----
-1

skipif mysql # not compatible
query I rowsort label-5891
SELECT DISTINCT + 98 / - 91 col0
----
-1

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

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

query I rowsort
SELECT DISTINCT + 80 + - 29 * 76 AS col2
----
-2124

query I rowsort
SELECT ALL - 25 + - 83 AS col0
----
-108

query I rowsort
SELECT ALL + 62 - 77 AS col2
----
-15

query I rowsort
SELECT DISTINCT - 7 * + 66
----
-462

query I rowsort
SELECT + 71 * - 44 + 34
----
-3090

onlyif mysql # aggregate syntax: 
query I rowsort label-5898
SELECT ALL - SUM( 17 ) * 86
----
-1462

skipif mysql # not compatible
query I rowsort label-5898
SELECT ALL - SUM ( 17 ) * 86
----
-1462

onlyif mysql # aggregate syntax: 
query I rowsort label-5899
SELECT - MIN( ALL 17 ) + 67
----
50

skipif mysql # not compatible
query I rowsort label-5899
SELECT - MIN ( ALL 17 ) + 67
----
50

query I rowsort
SELECT DISTINCT - 8 * 90
----
-720

query I rowsort
SELECT - 78 + 37
----
-41

query I rowsort
SELECT - NULLIF ( - 66, + 27 ) * - 60 AS col0
----
-3960

onlyif mysql # DIV for integer division: 
query I rowsort label-5903
SELECT ALL + 90 * COALESCE ( 84 DIV 40, 48 + + 69 ) AS col2
----
180

skipif mysql # not compatible
query I rowsort label-5903
SELECT ALL + 90 * COALESCE ( 84 / 40, 48 + + 69 ) AS col2
----
180

query I rowsort
SELECT - NULLIF ( + 97, 41 ) * + 49 AS col1
----
-4753

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5905
SELECT DISTINCT COUNT( * ) DIV 47 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5905
SELECT DISTINCT COUNT ( * ) / 47 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5906
SELECT ALL NULLIF ( - MAX( - 72 ), 75 + + COALESCE ( 98 + - COUNT( * ) / 28, - 28 * - 76 + 56 / 84, COUNT( * ) ) ) col2
----
72

skipif mysql # not compatible
query I rowsort label-5906
SELECT ALL NULLIF ( - MAX ( - 72 ), 75 + + COALESCE ( 98 + - COUNT ( * ) / 28, - 28 * - 76 + 56 / 84, COUNT ( * ) ) ) col2
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5907
SELECT - 71 * + COALESCE ( - 91 * - 68, NULLIF ( 38, + 87 / - 90 + + COALESCE ( + 10, CAST( 43 AS SIGNED ) * - 23 ) ) + + COUNT( * ) )
----
-439348

skipif mysql # not compatible
query I rowsort label-5907
SELECT - 71 * + COALESCE ( - 91 * - 68, NULLIF ( 38, + 87 / - 90 + + COALESCE ( + 10, CAST ( 43 AS INTEGER ) * - 23 ) ) + + COUNT ( * ) )
----
-439348

query I rowsort
SELECT ALL ( - ( 25 ) ) * 41 AS col2
----
-1025

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5909
SELECT DISTINCT + NULLIF ( - COUNT( * ), 79 * + COUNT( - 39 ) ) DIV + 91 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5909
SELECT DISTINCT + NULLIF ( - COUNT ( * ), 79 * + COUNT ( - 39 ) ) / + 91 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5910
SELECT ALL 59 + + ( + 11 + 9 DIV MIN( - 49 + 30 * 10 ) )
----
70

skipif mysql # not compatible
query I rowsort label-5910
SELECT ALL 59 + + ( + 11 + 9 / MIN ( - 49 + 30 * 10 ) )
----
70

query I rowsort
SELECT ALL - 4 * - 38 + - 14
----
138

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

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

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

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

query I rowsort
SELECT - NULLIF ( - 43, - 39 ) * - 18 AS col1
----
-774

onlyif mysql # DIV for integer division: 
query I rowsort label-5915
SELECT + 4 DIV 47 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5915
SELECT + 4 / 47 AS col1
----
0

query I rowsort
SELECT - - 94 * 48 - - 70 AS col0
----
4582

query I rowsort
SELECT ALL + + 37 * - 59 + 30
----
-2153

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5918
SELECT - COUNT( * ) / - 1 - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5918
SELECT - COUNT ( * ) / - 1 - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL + 30 * ( + 73 ) + - 20 * - 71
----
3610

onlyif mysql # aggregate syntax: 
query I rowsort label-5920
SELECT DISTINCT + NULLIF ( 54, - 3 - - COUNT( * ) * COUNT( * ) ) AS col0
----
54

skipif mysql # not compatible
query I rowsort label-5920
SELECT DISTINCT + NULLIF ( 54, - 3 - - COUNT ( * ) * COUNT ( * ) ) AS col0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-5921
SELECT + COALESCE ( 86, - NULLIF ( - 24, - ( 49 ) + CASE 18 + - ( - 46 + + 85 ) WHEN 94 - + CASE - 50 WHEN 29 THEN NULL WHEN ( 82 ) THEN NULL ELSE - COUNT( - 34 ) END THEN 37 ELSE - 76 END ) ) AS col1
----
86

skipif mysql # not compatible
query I rowsort label-5921
SELECT + COALESCE ( 86, - NULLIF ( - 24, - ( 49 ) + CASE 18 + - ( - 46 + + 85 ) WHEN 94 - + CASE - 50 WHEN 29 THEN NULL WHEN ( 82 ) THEN NULL ELSE - COUNT ( - 34 ) END THEN 37 ELSE - 76 END ) ) AS col1
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5922
SELECT - - 58 * NULLIF ( COUNT( * ), - COALESCE ( 29, - 48 + - ( - 88 ) ) * + COUNT( * ) + CAST( - 19 + COUNT( * ) / - 58 AS SIGNED ) ) + ( - COUNT( * ) ) AS col1
----
57

skipif mysql # not compatible
query I rowsort label-5922
SELECT - - 58 * NULLIF ( COUNT ( * ), - COALESCE ( 29, - 48 + - ( - 88 ) ) * + COUNT ( * ) + CAST ( - 19 + COUNT ( * ) / - 58 AS INTEGER ) ) + ( - COUNT ( * ) ) AS col1
----
57

query I rowsort
SELECT + 93 * - 34 AS col2
----
-3162

onlyif mysql # aggregate syntax: 
query I rowsort label-5924
SELECT ALL + + CASE 62 WHEN + COUNT( * ) * + 48 THEN + 92 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5924
SELECT ALL + + CASE 62 WHEN + COUNT ( * ) * + 48 THEN + 92 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5925
SELECT + 37 + - COUNT( + COALESCE ( 3, - 24 ) ) AS col0
----
36

skipif mysql # not compatible
query I rowsort label-5925
SELECT + 37 + - COUNT ( + COALESCE ( 3, - 24 ) ) AS col0
----
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5926
SELECT - 20 DIV MIN( ALL 24 )
----
0

skipif mysql # not compatible
query I rowsort label-5926
SELECT - 20 / MIN ( ALL 24 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5927
SELECT ALL + 29 * - 79 - COUNT( * )
----
-2292

skipif mysql # not compatible
query I rowsort label-5927
SELECT ALL + 29 * - 79 - COUNT ( * )
----
-2292

onlyif mysql # aggregate syntax: 
query I rowsort label-5928
SELECT + + SUM( DISTINCT 63 ) * + 87 + + 77 AS col2
----
5558

skipif mysql # not compatible
query I rowsort label-5928
SELECT + + SUM ( DISTINCT 63 ) * + 87 + + 77 AS col2
----
5558

query I rowsort
SELECT ALL + 68 * 51
----
3468

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5931
SELECT ALL NULLIF ( SUM( 82 ), - SUM( 83 ) ) AS col2
----
82

skipif mysql # not compatible
query I rowsort label-5931
SELECT ALL NULLIF ( SUM ( 82 ), - SUM ( 83 ) ) AS col2
----
82

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

query I rowsort
SELECT + ( + 6 ) * - 35 AS col0
----
-210

onlyif mysql # DIV for integer division: 
query I rowsort label-5934
SELECT DISTINCT - 49 DIV - 77
----
0

skipif mysql # not compatible
query I rowsort label-5934
SELECT DISTINCT - 49 / - 77
----
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5936
SELECT ALL - NULLIF ( - 84, + 1 * + 6 ) DIV - 60
----
-1

skipif mysql # not compatible
query I rowsort label-5936
SELECT ALL - NULLIF ( - 84, + 1 * + 6 ) / - 60
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5937
SELECT - 7 DIV + 4
----
-1

skipif mysql # not compatible
query I rowsort label-5937
SELECT - 7 / + 4
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5938
SELECT - 19 - - - CAST( - SUM( 98 ) AS SIGNED ) DIV - 52
----
-20

skipif mysql # not compatible
query I rowsort label-5938
SELECT - 19 - - - CAST ( - SUM ( 98 ) AS INTEGER ) / - 52
----
-20

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5939
SELECT - ( COALESCE ( 83, CAST( NULL AS DECIMAL ) - 28 ) ) + CASE + AVG ( DISTINCT + 16 ) WHEN CAST( 54 AS SIGNED ) + 12 THEN 36 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5939
SELECT - ( COALESCE ( 83, CAST ( NULL AS REAL ) - 28 ) ) + CASE + AVG ( DISTINCT + 16 ) WHEN CAST ( 54 AS INTEGER ) + 12 THEN 36 ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5940
SELECT ALL MAX( - - CAST( - 42 AS SIGNED ) ) AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-5940
SELECT ALL MAX ( - - CAST ( - 42 AS INTEGER ) ) AS col2
----
-42

query I rowsort
SELECT ALL NULLIF ( + - 25, - 46 / + 64 )
----
-25

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

skipif mysql # not compatible
query I rowsort label-5942
SELECT ALL - ( - COUNT ( ALL + 89 ) ) + + 8 AS col1
----
9

query I rowsort
SELECT DISTINCT NULLIF ( 67, 11 )
----
67

query I rowsort
SELECT ALL + 60 + - ( - 36 ) AS col2
----
96

query I rowsort
SELECT + ( + + 81 ) + 83
----
164

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5946
SELECT - 65 - - CAST( 18 AS SIGNED ) * - 78 AS col0
----
-1469

skipif mysql # not compatible
query I rowsort label-5946
SELECT - 65 - - CAST ( 18 AS INTEGER ) * - 78 AS col0
----
-1469

query I rowsort
SELECT - 41 - - + 55
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-5948
SELECT ALL - SUM( DISTINCT 66 ) + + NULLIF ( 11, AVG ( ALL + 29 ) ) col0
----
-55

skipif mysql # not compatible
query I rowsort label-5948
SELECT ALL - SUM ( DISTINCT 66 ) + + NULLIF ( 11, AVG ( ALL + 29 ) ) col0
----
-55

query I rowsort
SELECT - 11 + + ( + ( 8 ) ) * - 34 AS col0
----
-283

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5950
SELECT DISTINCT CAST( + 74 AS SIGNED ) AS col0
----
74

skipif mysql # not compatible
query I rowsort label-5950
SELECT DISTINCT CAST ( + 74 AS INTEGER ) AS col0
----
74

query I rowsort
SELECT DISTINCT + + 11 + + 42 AS col1
----
53

onlyif mysql # DIV for integer division: 
query I rowsort label-5952
SELECT ALL - 85 DIV + 54
----
-1

skipif mysql # not compatible
query I rowsort label-5952
SELECT ALL - 85 / + 54
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5953
SELECT - 82 / - COUNT( * ) + 48 * ( NULLIF ( CASE + 14 WHEN + NULLIF ( ( COALESCE ( 9, NULLIF ( 98, - COUNT( * ) ), + 18 ) ), 78 ) * CAST( + 95 AS SIGNED ) THEN + 69 + - 64 END, - SUM( 4 ) * - 57 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5953
SELECT - 82 / - COUNT ( * ) + 48 * ( NULLIF ( CASE + 14 WHEN + NULLIF ( ( COALESCE ( 9, NULLIF ( 98, - COUNT ( * ) ), + 18 ) ), 78 ) * CAST ( + 95 AS INTEGER ) THEN + 69 + - 64 END, - SUM ( 4 ) * - 57 ) ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 35 * 8 + 30 * + 58 AS col2
----
1460

query I rowsort
SELECT ALL - - 86 * - - ( - 94 ) AS col0
----
-8084

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

skipif mysql # not compatible
query I rowsort label-5956
SELECT - COUNT ( * ) / - 67
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5957
SELECT SUM( 61 ) * + 10 AS col1
----
610

skipif mysql # not compatible
query I rowsort label-5957
SELECT SUM ( 61 ) * + 10 AS col1
----
610

onlyif mysql # aggregate syntax: 
query I rowsort label-5958
SELECT DISTINCT - MAX( 9 ) - + 99 AS col1
----
-108

skipif mysql # not compatible
query I rowsort label-5958
SELECT DISTINCT - MAX ( 9 ) - + 99 AS col1
----
-108

query I rowsort
SELECT ALL + + 73 * - 77 * 66
----
-370986

onlyif mysql # aggregate syntax: 
query I rowsort label-5960
SELECT - CASE + - 91 WHEN + ( + 17 ) + ( MAX( + 74 ) + 34 ) * 33 THEN COUNT( + 40 ) * 61 + 6 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5960
SELECT - CASE + - 91 WHEN + ( + 17 ) + ( MAX ( + 74 ) + 34 ) * 33 THEN COUNT ( + 40 ) * 61 + 6 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5961
SELECT + 94 * + NULLIF ( 2, + 38 / + COUNT( * ) - 73 ) + 19
----
207

skipif mysql # not compatible
query I rowsort label-5961
SELECT + 94 * + NULLIF ( 2, + 38 / + COUNT ( * ) - 73 ) + 19
----
207

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5962
SELECT 71 DIV 87 + - 35 * - COUNT( * )
----
35

skipif mysql # not compatible
query I rowsort label-5962
SELECT 71 / 87 + - 35 * - COUNT ( * )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-5963
SELECT + 13 * - 69 + - MIN( ( + COALESCE ( 92, 75 + - 13 ) ) ) AS col1
----
-989

skipif mysql # not compatible
query I rowsort label-5963
SELECT + 13 * - 69 + - MIN ( ( + COALESCE ( 92, 75 + - 13 ) ) ) AS col1
----
-989

onlyif mysql # DIV for integer division: 
query I rowsort label-5964
SELECT + 6 DIV - 96 + + 73
----
73

skipif mysql # not compatible
query I rowsort label-5964
SELECT + 6 / - 96 + + 73
----
73

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

skipif mysql # not compatible
query I rowsort label-5965
SELECT DISTINCT - - 44 * + COUNT ( * ) AS col2
----
44

query I rowsort
SELECT ALL - 97 - 54 * + 86
----
-4741

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5967
SELECT COUNT( * ) * - CASE 52 WHEN CAST( + CAST( - 93 AS SIGNED ) AS SIGNED ) THEN 85 ELSE - 20 + 5 DIV 29 END * - 12
----
-240

skipif mysql # not compatible
query I rowsort label-5967
SELECT COUNT ( * ) * - CASE 52 WHEN CAST ( + CAST ( - 93 AS INTEGER ) AS INTEGER ) THEN 85 ELSE - 20 + 5 / 29 END * - 12
----
-240

query I rowsort
SELECT - 37 - + + 92
----
-129

query II rowsort
SELECT 80, + 84 + + 48 AS col0
----
80
132

query II rowsort
SELECT DISTINCT - 34 AS col2, 45 AS col2
----
-34
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5971
SELECT ALL COUNT( * ) * + - NULLIF ( + - NULLIF ( 76, 59 - - 67 / - 84 ), + ( 73 ) * - 26 + 41 * CAST( 70 AS SIGNED ) ) * 88 AS col0
----
6688

skipif mysql # not compatible
query I rowsort label-5971
SELECT ALL COUNT ( * ) * + - NULLIF ( + - NULLIF ( 76, 59 - - 67 / - 84 ), + ( 73 ) * - 26 + 41 * CAST ( 70 AS INTEGER ) ) * 88 AS col0
----
6688

query II rowsort
SELECT 2 AS col0, - 8 AS col0
----
2
-8

query I rowsort
SELECT ALL 13 + + 35 AS col1
----
48

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

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

query I rowsort
SELECT ALL 89 + - 88 col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5976
SELECT 98 + + 10 - - 87 DIV - 24
----
105

skipif mysql # not compatible
query I rowsort label-5976
SELECT 98 + + 10 - - 87 / - 24
----
105

query I rowsort
SELECT COALESCE ( 4, 16 ) - - 85 AS col0
----
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5978
SELECT ALL + ( + 30 ) + 68 DIV - COALESCE ( 7 + COUNT( * ), + COALESCE ( 33, 4 ) * - 42 )
----
22

skipif mysql # not compatible
query I rowsort label-5978
SELECT ALL + ( + 30 ) + 68 / - COALESCE ( 7 + COUNT ( * ), + COALESCE ( 33, 4 ) * - 42 )
----
22

query II rowsort
SELECT ALL 16 AS col0, + 57 AS col0
----
16
57

query I rowsort
SELECT 88 * + 0 col2
----
0

query I rowsort
SELECT CASE 94 WHEN + 10 THEN - 69 / + COALESCE ( - 27, - 96, 58 ) END * - ( 14 / 51 ) AS col0
----
NULL

query I rowsort
SELECT 33 + - COALESCE ( - 45, 94, + 77 ) * + 57 AS col0
----
2598

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5983
SELECT ALL COALESCE ( CAST( NULL AS SIGNED ), - - 46 ) + COUNT( 66 )
----
47

skipif mysql # not compatible
query I rowsort label-5983
SELECT ALL COALESCE ( CAST ( NULL AS INTEGER ), - - 46 ) + COUNT ( 66 )
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-5984
SELECT ALL 6 DIV - 3
----
-2

skipif mysql # not compatible
query I rowsort label-5984
SELECT ALL 6 / - 3
----
-2

query I rowsort
SELECT 42 + + 94 + - 48 col1
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5986
SELECT CAST( NULL AS SIGNED ) * ( ( - COUNT( ALL 62 ) ) ) AS col0
----
NULL

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

query I rowsort
SELECT DISTINCT + 55 + - 55 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5988
SELECT DISTINCT 39 AS col1, + CASE - 48 WHEN 64 * ( 96 * 41 ) THEN NULL WHEN + 41 THEN MIN( + 17 ) END AS col0
----
39
NULL

skipif mysql # not compatible
query II rowsort label-5988
SELECT DISTINCT 39 AS col1, + CASE - 48 WHEN 64 * ( 96 * 41 ) THEN NULL WHEN + 41 THEN MIN ( + 17 ) END AS col0
----
39
NULL

query I rowsort
SELECT ALL + + 25 - 41 + + 26 AS col0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-5990
SELECT + + SUM( + 83 ) AS col0
----
83

skipif mysql # not compatible
query I rowsort label-5990
SELECT + + SUM ( + 83 ) AS col0
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5991
SELECT + COALESCE ( - ( - 27 ), - 21 * - SUM( ALL - COALESCE ( - 75, 65 DIV - 84, 47 DIV - 57 + + 58 * CAST( NULL AS SIGNED ) ) ) ) + - MAX( + 73 )
----
-46

skipif mysql # not compatible
query I rowsort label-5991
SELECT + COALESCE ( - ( - 27 ), - 21 * - SUM ( ALL - COALESCE ( - 75, 65 / - 84, 47 / - 57 + + 58 * CAST ( NULL AS INTEGER ) ) ) ) + - MAX ( + 73 )
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5992
SELECT CAST( NULL AS DECIMAL ) * CASE - 13 WHEN + 4 THEN + 36 WHEN - SUM( DISTINCT + 6 ) THEN 60 * CAST( 53 * CAST( NULL AS SIGNED ) AS SIGNED ) + + ( - 33 ) END * - 96 + + NULLIF ( + ( - 91 ), 92 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5992
SELECT CAST ( NULL AS REAL ) * CASE - 13 WHEN + 4 THEN + 36 WHEN - SUM ( DISTINCT + 6 ) THEN 60 * CAST ( 53 * CAST ( NULL AS INTEGER ) AS INTEGER ) + + ( - 33 ) END * - 96 + + NULLIF ( + ( - 91 ), 92 )
----
NULL

query I rowsort
SELECT ALL - 62 - 4 + 52
----
-14

query I rowsort
SELECT - 14 * - + 61
----
854

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

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

query I rowsort
SELECT - COALESCE ( - - ( + + 28 ), 46 )
----
-28

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

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

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

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

query I rowsort
SELECT ALL - 46 * - 41
----
1886

onlyif mysql # DIV for integer division: 
query I rowsort label-6000
SELECT + 77 DIV 77 * + + 71 + 52 AS col0
----
123

skipif mysql # not compatible
query I rowsort label-6000
SELECT + 77 / 77 * + + 71 + 52 AS col0
----
123

query II rowsort
SELECT + 3 col1, - ( + + 44 )
----
3
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6002
SELECT ALL - 31 * + CASE + 43 WHEN - COUNT( - 65 ) * - COALESCE ( - 5 * + 53, + 28 + + 89 * + 38 ) THEN - COALESCE ( - 41, 41 * CAST( NULL AS SIGNED ) - - 74, 48, - 56 + + CAST( ( COUNT( * ) ) AS SIGNED ) ) / - 44 ELSE NULL END * + 4
----
NULL

skipif mysql # not compatible
query I rowsort label-6002
SELECT ALL - 31 * + CASE + 43 WHEN - COUNT ( - 65 ) * - COALESCE ( - 5 * + 53, + 28 + + 89 * + 38 ) THEN - COALESCE ( - 41, 41 * CAST ( NULL AS INTEGER ) - - 74, 48, - 56 + + CAST ( ( COUNT ( * ) ) AS INTEGER ) ) / - 44 ELSE NULL END * + 4
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6003
SELECT 8 DIV SUM( ALL + 35 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6003
SELECT 8 / SUM ( ALL + 35 ) AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6004
SELECT ( + 97 ) - - + 3 + 50 * - CASE 27 + 21 WHEN 53 + - COUNT( 97 ) THEN - 89 + 58 DIV - 44 ELSE 8 END * - 22
----
8900

skipif mysql # not compatible
query I rowsort label-6004
SELECT ( + 97 ) - - + 3 + 50 * - CASE 27 + 21 WHEN 53 + - COUNT ( 97 ) THEN - 89 + 58 / - 44 ELSE 8 END * - 22
----
8900

onlyif mysql # aggregate syntax: 
query I rowsort label-6005
SELECT ( - + MAX( ALL + - 29 ) ) * + 33 + - 52 * - 33
----
2673

skipif mysql # not compatible
query I rowsort label-6005
SELECT ( - + MAX ( ALL + - 29 ) ) * + 33 + - 52 * - 33
----
2673

onlyif mysql # aggregate syntax: 
query I rowsort label-6006
SELECT ALL COALESCE ( - COUNT( * ), - 55, + 83 ) + + ( - 60 ) AS col1
----
-61

skipif mysql # not compatible
query I rowsort label-6006
SELECT ALL COALESCE ( - COUNT ( * ), - 55, + 83 ) + + ( - 60 ) AS col1
----
-61

query I rowsort
SELECT ALL 72 + - - 33 AS col1
----
105

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

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

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

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

query I rowsort
SELECT DISTINCT 48 + + 42
----
90

query II rowsort
SELECT 1 + - 38, 1 AS col2
----
-37
1

query I rowsort
SELECT DISTINCT - NULLIF ( - - 53, + 54 * - 26 ) AS col2
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-6013
SELECT ALL - SUM( ALL + 68 ) + 42 * 57 + - 40
----
2286

skipif mysql # not compatible
query I rowsort label-6013
SELECT ALL - SUM ( ALL + 68 ) + 42 * 57 + - 40
----
2286

query I rowsort
SELECT ( - 74 ) + - + 32
----
-106

query I rowsort
SELECT DISTINCT 65 * - 83
----
-5395

query I rowsort
SELECT ALL 0 * - + 90 col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6017
SELECT 23 + - COALESCE ( 14, + 41, 65 * CAST( NULL AS SIGNED ) + - 33 ) AS col2
----
9

skipif mysql # not compatible
query I rowsort label-6017
SELECT 23 + - COALESCE ( 14, + 41, 65 * CAST ( NULL AS INTEGER ) + - 33 ) AS col2
----
9

query I rowsort
SELECT ALL 11 + + 57
----
68

query I rowsort
SELECT ( + 28 ) + + + 79 col2
----
107

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6021
SELECT + - COUNT( * ) + - 44
----
-45

skipif mysql # not compatible
query I rowsort label-6021
SELECT + - COUNT ( * ) + - 44
----
-45

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

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

query II rowsort
SELECT ( 94 ), 4 AS col0
----
94
4

query I rowsort
SELECT - 73 + ( - 58 ) + + - 74
----
-205

query I rowsort
SELECT + 12 + 32 AS col1
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-6026
SELECT - - COALESCE ( - 60, - COUNT( * ) ) * - 71 * 8 - - 16
----
34096

skipif mysql # not compatible
query I rowsort label-6026
SELECT - - COALESCE ( - 60, - COUNT ( * ) ) * - 71 * 8 - - 16
----
34096

query I rowsort
SELECT ALL - ( + 55 ) * - 66
----
3630

query I rowsort
SELECT DISTINCT + + NULLIF ( + 70, - ( - 23 ) + 0 ) AS col1
----
70

query II rowsort
SELECT - + 95 + 40, 95 AS col2
----
-55
95

query I rowsort
SELECT + 15 + + 14 + - 91 * + 7
----
-608

query I rowsort
SELECT - 89 + + 22
----
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6032
SELECT COALESCE ( + MIN( - 89 ), - 61 * ( + COALESCE ( + COUNT( * ), AVG ( + 55 ) * 2 ) ) DIV + ( 35 ) ) AS col0
----
-89

skipif mysql # not compatible
query I rowsort label-6032
SELECT COALESCE ( + MIN ( - 89 ), - 61 * ( + COALESCE ( + COUNT ( * ), AVG ( + 55 ) * 2 ) ) / + ( 35 ) ) AS col0
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-6033
SELECT ALL + COALESCE ( - - MIN( + 21 ), - 64, - 56 )
----
21

skipif mysql # not compatible
query I rowsort label-6033
SELECT ALL + COALESCE ( - - MIN ( + 21 ), - 64, - 56 )
----
21

query II rowsort
SELECT - 54 * - + 32 * - 48, - ( + 60 ) AS col0
----
-82944
-60

query I rowsort
SELECT ALL - COALESCE ( + - 71, - 85 ) * - - ( + COALESCE ( - 92, - 95 + + 82 ) ) * 4 - 64
----
-26192

query I rowsort
SELECT ALL 98 * 49 + - 67 - - 60 * + ( + 52 ) AS col1
----
7855

onlyif mysql # aggregate syntax: 
query I rowsort label-6037
SELECT ALL 67 * COALESCE ( 61, + 21, - 99 + - 66 ) + + COUNT( * )
----
4088

skipif mysql # not compatible
query I rowsort label-6037
SELECT ALL 67 * COALESCE ( 61, + 21, - 99 + - 66 ) + + COUNT ( * )
----
4088

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6039
SELECT ALL - 11 * ( + COUNT( * ) ) + - 54
----
-65

skipif mysql # not compatible
query I rowsort label-6039
SELECT ALL - 11 * ( + COUNT ( * ) ) + - 54
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-6040
SELECT - 72 * - 60 + + COALESCE ( 76, + COUNT( * ) ) AS col1
----
4396

skipif mysql # not compatible
query I rowsort label-6040
SELECT - 72 * - 60 + + COALESCE ( 76, + COUNT ( * ) ) AS col1
----
4396

onlyif mysql # aggregate syntax: 
query I rowsort label-6041
SELECT DISTINCT 94 - + COUNT( * )
----
93

skipif mysql # not compatible
query I rowsort label-6041
SELECT DISTINCT 94 - + COUNT ( * )
----
93

query II rowsort
SELECT 51 AS col0, - 51 * 53 + + 37
----
51
-2666

query I rowsort
SELECT DISTINCT - 11 - + 19 col0
----
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6044
SELECT - COALESCE ( 41, + 75 + + - 68 * - COUNT( * ), - 59 + ( COUNT( * ) ) DIV 87, + 90 + 45 )
----
-41

skipif mysql # not compatible
query I rowsort label-6044
SELECT - COALESCE ( 41, + 75 + + - 68 * - COUNT ( * ), - 59 + ( COUNT ( * ) ) / 87, + 90 + 45 )
----
-41

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6046
SELECT + 43 + + + COUNT( * )
----
44

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6047
SELECT ALL + + 99 * + NULLIF ( CAST( - 86 AS SIGNED ), - NULLIF ( - SUM( ALL + 75 ), CAST( NULL AS SIGNED ) ) ) + - 56 * - 82 AS col0
----
-3922

skipif mysql # not compatible
query I rowsort label-6047
SELECT ALL + + 99 * + NULLIF ( CAST ( - 86 AS INTEGER ), - NULLIF ( - SUM ( ALL + 75 ), CAST ( NULL AS INTEGER ) ) ) + - 56 * - 82 AS col0
----
-3922

query I rowsort
SELECT DISTINCT + 51 * + CASE - - 41 WHEN + 93 * - 21 + 80 * - 46 THEN 8 ELSE NULL END + + 19 AS col2
----
NULL

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6051
SELECT + - CAST( NULL AS SIGNED ) / - 94 + - 66 + 98 / + CASE 3 WHEN 56 THEN - 0 * - 55 WHEN 16 + 64 / + 55 THEN + 95 - 58 ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6051
SELECT + - CAST ( NULL AS INTEGER ) / - 94 + - 66 + 98 / + CASE 3 WHEN 56 THEN - 0 * - 55 WHEN 16 + 64 / + 55 THEN + 95 - 58 ELSE NULL END col1
----
NULL

query I rowsort
SELECT - + ( + 50 ) * - + 10 * ( + 3 ) * - 14 AS col1
----
-21000

query I rowsort
SELECT - COALESCE ( - - 21, - 93, - - 96 ) AS col0
----
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6054
SELECT - COUNT( * ) DIV 32 - - 63 + NULLIF ( + 37, - 25 DIV 30 ) DIV 71 AS col1
----
63

skipif mysql # not compatible
query I rowsort label-6054
SELECT - COUNT ( * ) / 32 - - 63 + NULLIF ( + 37, - 25 / 30 ) / 71 AS col1
----
63

onlyif mysql # DIV for integer division: 
query I rowsort label-6055
SELECT DISTINCT 43 DIV 43
----
1

skipif mysql # not compatible
query I rowsort label-6055
SELECT DISTINCT 43 / 43
----
1

query I rowsort
SELECT DISTINCT - 14 * + - ( - - 45 ) AS col2
----
630

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6057
SELECT + 31 + - 37 * - COALESCE ( + 34, - - 25 * + 62, NULLIF ( + 25, 17 + - 36 ) + + CAST( 70 AS SIGNED ) * 83 ) + - ( 50 )
----
1239

skipif mysql # not compatible
query I rowsort label-6057
SELECT + 31 + - 37 * - COALESCE ( + 34, - - 25 * + 62, NULLIF ( + 25, 17 + - 36 ) + + CAST ( 70 AS INTEGER ) * 83 ) + - ( 50 )
----
1239

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

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

onlyif mysql # aggregate syntax: 
query III rowsort label-6059
SELECT DISTINCT + COUNT( * ) col0, - COUNT( * ) AS col2, - + 99 + + - 93 * - 19 * - 26 + 1
----
1
-1
-46040

skipif mysql # not compatible
query III rowsort label-6059
SELECT DISTINCT + COUNT ( * ) col0, - COUNT ( * ) AS col2, - + 99 + + - 93 * - 19 * - 26 + 1
----
1
-1
-46040

query I rowsort
SELECT + ( ( COALESCE ( + 47, 55, - 71 ) ) ) AS col0
----
47

query II rowsort
SELECT ALL + 62, - 88 col2
----
62
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-6062
SELECT ( - + CASE 65 WHEN 10 + - - 21 THEN NULL ELSE + - MIN( DISTINCT 66 ) END ) AS col2
----
66

skipif mysql # not compatible
query I rowsort label-6062
SELECT ( - + CASE 65 WHEN 10 + - - 21 THEN NULL ELSE + - MIN ( DISTINCT 66 ) END ) AS col2
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-6063
SELECT - 31 * ( COUNT( * ) ) - + - 65 AS col2
----
34

skipif mysql # not compatible
query I rowsort label-6063
SELECT - 31 * ( COUNT ( * ) ) - + - 65 AS col2
----
34

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

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

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

query I rowsort
SELECT ALL + CASE WHEN NULL IS NULL THEN - 21 END
----
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-6067
SELECT + 25, NULLIF ( - - CASE - + COUNT( * ) WHEN 14 * NULLIF ( 10, 85 - 36 * + 42 ) * + COUNT( 12 * - 6 ) + + 42 * 62 THEN + 1 END, ( - 27 ) * - 12 ) - 12 AS col0
----
25
NULL

skipif mysql # not compatible
query II rowsort label-6067
SELECT + 25, NULLIF ( - - CASE - + COUNT ( * ) WHEN 14 * NULLIF ( 10, 85 - 36 * + 42 ) * + COUNT ( 12 * - 6 ) + + 42 * 62 THEN + 1 END, ( - 27 ) * - 12 ) - 12 AS col0
----
25
NULL

query II rowsort
SELECT ALL 27, - 69 AS col2
----
27
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-6069
SELECT + COUNT( - 86 ) * + 37 + 75 + - + 26 - - CASE - 83 WHEN 22 * 10 THEN - ( - 46 ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6069
SELECT + COUNT ( - 86 ) * + 37 + 75 + - + 26 - - CASE - 83 WHEN 22 * 10 THEN - ( - 46 ) ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT ALL + 74 * 92 AS col2
----
6808

onlyif mysql # aggregate syntax: 
query I rowsort label-6071
SELECT ALL - COALESCE ( COUNT( * ), - ( COUNT( * ) ) + + + SUM( + 27 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-6071
SELECT ALL - COALESCE ( COUNT ( * ), - ( COUNT ( * ) ) + + + SUM ( + 27 ) )
----
-1

query II rowsort
SELECT DISTINCT 9 AS col0, + 20 * 59 + 61 - 94 AS col2
----
9
1147

onlyif mysql # aggregate syntax: 
query II rowsort label-6073
SELECT ALL - 82 AS col0, ( COUNT( * ) ) * - 41 + - - 67 * 23 AS col1
----
-82
1500

skipif mysql # not compatible
query II rowsort label-6073
SELECT ALL - 82 AS col0, ( COUNT ( * ) ) * - 41 + - - 67 * 23 AS col1
----
-82
1500

query I rowsort
SELECT 84 + + + 39 - + 34 AS col0
----
89

query I rowsort
SELECT ALL 61 + + + 23 col1
----
84

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

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

query I rowsort
SELECT ALL + - 72 + - - 21 - - 63
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-6078
SELECT CASE + 54 WHEN - 94 - + 15 + 67 THEN NULL ELSE + - 10 + + COALESCE ( - 47, 35 ) END + - COUNT( * ) AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-6078
SELECT CASE + 54 WHEN - 94 - + 15 + 67 THEN NULL ELSE + - 10 + + COALESCE ( - 47, 35 ) END + - COUNT ( * ) AS col1
----
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6079
SELECT ALL + MIN( + + 70 ) + - 78 DIV + 53
----
69

skipif mysql # not compatible
query I rowsort label-6079
SELECT ALL + MIN ( + + 70 ) + - 78 / + 53
----
69

query II rowsort
SELECT ALL - 99 AS col2, - 11
----
-99
-11

query I rowsort
SELECT - 76 * - 11 + + 97 AS col0
----
933

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6082
SELECT ALL - 37 + CAST( NULL AS SIGNED ) / + - MAX( + - 95 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6082
SELECT ALL - 37 + CAST ( NULL AS INTEGER ) / + - MAX ( + - 95 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6083
SELECT - 9 DIV 34 * - SUM( 27 ) + 59 AS col0, 67 DIV 51 AS col2
----
59
1

skipif mysql # not compatible
query II rowsort label-6083
SELECT - 9 / 34 * - SUM ( 27 ) + 59 AS col0, 67 / 51 AS col2
----
59
1

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

skipif mysql # not compatible
query I rowsort label-6084
SELECT ( COUNT ( * ) ) * 40 - + 56 AS col1
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-6085
SELECT COUNT( * ) + - MAX( DISTINCT + 40 ) + 32 col0
----
-7

skipif mysql # not compatible
query I rowsort label-6085
SELECT COUNT ( * ) + - MAX ( DISTINCT + 40 ) + 32 col0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-6086
SELECT DISTINCT COUNT( * ) - - - NULLIF ( + + 32, 39 / + 91 * - 13 * - 82 + 43 * - 50 )
----
-31

skipif mysql # not compatible
query I rowsort label-6086
SELECT DISTINCT COUNT ( * ) - - - NULLIF ( + + 32, 39 / + 91 * - 13 * - 82 + 43 * - 50 )
----
-31

query I rowsort
SELECT 7 * ( - 27 )
----
-189

onlyif mysql # aggregate syntax: 
query I rowsort label-6088
SELECT - MAX( - 87 ) * ( + - 73 ) + - 91 + - - 88
----
-6354

skipif mysql # not compatible
query I rowsort label-6088
SELECT - MAX ( - 87 ) * ( + - 73 ) + - 91 + - - 88
----
-6354

query II rowsort
SELECT ALL 77 * 46 * 46 AS col1, 41
----
162932
41

query I rowsort
SELECT 32 + + ( - 79 ) AS col0
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6091
SELECT ALL NULLIF ( + 62, - CAST( NULL AS SIGNED ) ) - 22
----
40

skipif mysql # not compatible
query I rowsort label-6091
SELECT ALL NULLIF ( + 62, - CAST ( NULL AS INTEGER ) ) - 22
----
40

query I rowsort
SELECT 61 * 6 * + 29
----
10614

onlyif mysql # aggregate syntax: 
query I rowsort label-6093
SELECT ( SUM( ALL - 17 ) ) * + 15 AS col1
----
-255

skipif mysql # not compatible
query I rowsort label-6093
SELECT ( SUM ( ALL - 17 ) ) * + 15 AS col1
----
-255

query I rowsort
SELECT 67 + - - 77
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-6095
SELECT ALL 35 * - COUNT( + + 22 ) * + 29 * 38 + - + 29 AS col1
----
-38599

skipif mysql # not compatible
query I rowsort label-6095
SELECT ALL 35 * - COUNT ( + + 22 ) * + 29 * 38 + - + 29 AS col1
----
-38599

query I rowsort
SELECT 77 + + - 30
----
47

query I rowsort
SELECT ALL 39 * + 87
----
3393

onlyif mysql # aggregate syntax: 
query I rowsort label-6098
SELECT DISTINCT - MIN( - 37 ) + - 20 + COUNT( * ) + - 78 + - COUNT( * ) - COUNT( * ) * + 43 AS col1
----
-104

skipif mysql # not compatible
query I rowsort label-6098
SELECT DISTINCT - MIN ( - 37 ) + - 20 + COUNT ( * ) + - 78 + - COUNT ( * ) - COUNT ( * ) * + 43 AS col1
----
-104

query I rowsort
SELECT DISTINCT + + 49 + - 32 AS col2
----
17

query I rowsort
SELECT - 5 * - - ( - 76 )
----
380

query I rowsort
SELECT ALL - - 99 + + + 44 + + ( - 2 ) + + - 4 AS col0
----
137

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6103
SELECT ALL + MAX( ALL + 15 ) + + COUNT( ALL - 33 )
----
16

skipif mysql # not compatible
query I rowsort label-6103
SELECT ALL + MAX ( ALL + 15 ) + + COUNT ( ALL - 33 )
----
16

query I rowsort
SELECT 30 + 45 + - CASE 43 WHEN + AVG ( ALL - 2 ) * - 71 THEN 65 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6105
SELECT + 72 DIV + 90 AS col1, 55 * + COUNT( * )
----
0
55

skipif mysql # not compatible
query II rowsort label-6105
SELECT + 72 / + 90 AS col1, 55 * + COUNT ( * )
----
0
55

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6107
SELECT ALL - - 7 + - + SUM( + 22 ) * - + 37 + - 98, 33 + 72 AS col1
----
723
105

skipif mysql # not compatible
query II rowsort label-6107
SELECT ALL - - 7 + - + SUM ( + 22 ) * - + 37 + - 98, 33 + 72 AS col1
----
723
105

query I rowsort
SELECT + 55 * - ( + 19 ) * - - NULLIF ( 86, + 4 ) + + 84 + 57
----
-89729

onlyif mysql # DIV for integer division: 
query I rowsort label-6109
SELECT DISTINCT - + 57 * 26 DIV + 38 AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-6109
SELECT DISTINCT - + 57 * 26 / + 38 AS col1
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6110
SELECT + CASE 30 WHEN + COUNT( * ) THEN + CAST( NULL AS SIGNED ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6110
SELECT + CASE 30 WHEN + COUNT ( * ) THEN + CAST ( NULL AS INTEGER ) END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6111
SELECT DISTINCT + + CAST( - 55 AS SIGNED ) + + 70 * - COUNT( * ) AS col1
----
-125

skipif mysql # not compatible
query I rowsort label-6111
SELECT DISTINCT + + CAST ( - 55 AS INTEGER ) + + 70 * - COUNT ( * ) AS col1
----
-125

query I rowsort
SELECT ALL + - ( + 91 ) + + 50 + + + 12 * - + 8
----
-137

onlyif mysql # aggregate syntax: 
query I rowsort label-6113
SELECT 35 - 98 * - + 72 + + - COUNT( + + 30 ) + - 20 * + 21
----
6670

skipif mysql # not compatible
query I rowsort label-6113
SELECT 35 - 98 * - + 72 + + - COUNT ( + + 30 ) + - 20 * + 21
----
6670

onlyif mysql # aggregate syntax: 
query I rowsort label-6114
SELECT ALL MIN( 37 ) col0
----
37

skipif mysql # not compatible
query I rowsort label-6114
SELECT ALL MIN ( 37 ) col0
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6115
SELECT 91 + + - CASE + 12 WHEN + + 64 * - + 48 * + 49 THEN CAST( NULL AS SIGNED ) END - - 53 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6115
SELECT 91 + + - CASE + 12 WHEN + + 64 * - + 48 * + 49 THEN CAST ( NULL AS INTEGER ) END - - 53 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6116
SELECT NULLIF ( + NULLIF ( - - 12, - COALESCE ( CAST( - - 98 AS SIGNED ), - 48 ) + + 77 * + 60 ), - 19 ) * - 59 col2
----
-708

skipif mysql # not compatible
query I rowsort label-6116
SELECT NULLIF ( + NULLIF ( - - 12, - COALESCE ( CAST ( - - 98 AS INTEGER ), - 48 ) + + 77 * + 60 ), - 19 ) * - 59 col2
----
-708

query II rowsort
SELECT + 97, - 81 * + 29 AS col0
----
97
-2349

onlyif mysql # aggregate syntax: 
query I rowsort label-6118
SELECT 16 * - COUNT( * ) col0
----
-16

skipif mysql # not compatible
query I rowsort label-6118
SELECT 16 * - COUNT ( * ) col0
----
-16

query II rowsort
SELECT ALL 1 * - ( - + 28 ) AS col1, + 15
----
28
15

query II rowsort
SELECT DISTINCT - 58, - 70 col1
----
-58
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-6121
SELECT ALL - MIN( + 40 ) * + 13 * 68 + + + 92 + 12
----
-35256

skipif mysql # not compatible
query I rowsort label-6121
SELECT ALL - MIN ( + 40 ) * + 13 * 68 + + + 92 + 12
----
-35256

onlyif mysql # DIV for integer division: 
query I rowsort label-6122
SELECT DISTINCT + CASE + 46 WHEN 99 THEN + 81 ELSE - 83 DIV 68 END
----
-1

skipif mysql # not compatible
query I rowsort label-6122
SELECT DISTINCT + CASE + 46 WHEN 99 THEN + 81 ELSE - 83 / 68 END
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6123
SELECT - 60 * - - 71 + COUNT( + - 39 ) DIV 65 DIV COALESCE ( - 24, - 56 )
----
-4260

skipif mysql # not compatible
query I rowsort label-6123
SELECT - 60 * - - 71 + COUNT ( + - 39 ) / 65 / COALESCE ( - 24, - 56 )
----
-4260

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

skipif mysql # not compatible
query I rowsort label-6124
SELECT SUM ( ALL 7 )
----
7

query I rowsort
SELECT - 6 + 92 AS col2
----
86

query I rowsort
SELECT 79 * - + 78 - + 40 + + 27 AS col0
----
-6175

query I rowsort
SELECT + 29 * - 87
----
-2523

onlyif mysql # aggregate syntax: 
query I rowsort label-6128
SELECT SUM( 3 ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-6128
SELECT SUM ( 3 ) AS col1
----
3

onlyif mysql # aggregate syntax: 
query III rowsort label-6129
SELECT + COUNT( * ) col0, 94 * + + ( + + MIN( ALL + 72 ) ) + + COUNT( * ) col1, + 11
----
1
6769
11

skipif mysql # not compatible
query III rowsort label-6129
SELECT + COUNT ( * ) col0, 94 * + + ( + + MIN ( ALL + 72 ) ) + + COUNT ( * ) col1, + 11
----
1
6769
11

onlyif mysql # aggregate syntax: 
query I rowsort label-6130
SELECT ALL 40 * + 86 + CASE - COUNT( * ) WHEN + + 17 + - 30 * - 83 * + 39 THEN NULL ELSE - CASE SUM( DISTINCT + 87 ) WHEN - 53 THEN + 92 ELSE NULL END + 23 * - 20 END + + 23 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6130
SELECT ALL 40 * + 86 + CASE - COUNT ( * ) WHEN + + 17 + - 30 * - 83 * + 39 THEN NULL ELSE - CASE SUM ( DISTINCT + 87 ) WHEN - 53 THEN + 92 ELSE NULL END + 23 * - 20 END + + 23 col1
----
NULL

query I rowsort
SELECT + 93 * + + 43 AS col1
----
3999

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6132
SELECT DISTINCT + 28 * 26 - + AVG ( ALL 92 ) + + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6132
SELECT DISTINCT + 28 * 26 - + AVG ( ALL 92 ) + + - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT + - ( + 16 ) * + 31
----
-496

onlyif mysql # DIV for integer division: 
query I rowsort label-6134
SELECT DISTINCT + 66 + 21 + - ( + 97 ) + 74 DIV + - 30 AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-6134
SELECT DISTINCT + 66 + 21 + - ( + 97 ) + 74 / + - 30 AS col2
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6135
SELECT DISTINCT + - CASE + 26 WHEN SUM( ALL - + 67 ) THEN + 48 WHEN + - 7 THEN NULL ELSE - + 32 - + + CAST( COUNT( * ) AS SIGNED ) DIV + 37 END
----
32

skipif mysql # not compatible
query I rowsort label-6135
SELECT DISTINCT + - CASE + 26 WHEN SUM ( ALL - + 67 ) THEN + 48 WHEN + - 7 THEN NULL ELSE - + 32 - + + CAST ( COUNT ( * ) AS INTEGER ) / + 37 END
----
32

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

query I rowsort
SELECT ALL + 22 * - 49
----
-1078

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6138
SELECT + 84 * COALESCE ( + ( - - NULLIF ( + 78, CASE 87 WHEN - + 95 THEN NULL WHEN + MIN( - 56 ) + + ( + NULLIF ( 21, 45 ) ) THEN CAST( 42 AS DECIMAL ) - 73 END * 62 ) ), 49 * 29 ) * + COUNT( * ) + + 77
----
6629

skipif mysql # not compatible
query I rowsort label-6138
SELECT + 84 * COALESCE ( + ( - - NULLIF ( + 78, CASE 87 WHEN - + 95 THEN NULL WHEN + MIN ( - 56 ) + + ( + NULLIF ( 21, 45 ) ) THEN CAST ( 42 AS REAL ) - 73 END * 62 ) ), 49 * 29 ) * + COUNT ( * ) + + 77
----
6629

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

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

query II rowsort
SELECT ALL - 80, - 31 AS col0
----
-80
-31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6141
SELECT ALL + SUM( DISTINCT - 41 ) + 47 DIV - + 34 + - 89 * 59 * + 97 + 67 + 95
----
-509227

skipif mysql # not compatible
query I rowsort label-6141
SELECT ALL + SUM ( DISTINCT - 41 ) + 47 / - + 34 + - 89 * 59 * + 97 + 67 + 95
----
-509227

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6142
SELECT + - 1 + + + COUNT( * ) + - 6 * 17 + + + COUNT( * ) * - 21 * - ( - 45 ) + 95 DIV - 17
----
-1052

skipif mysql # not compatible
query I rowsort label-6142
SELECT + - 1 + + + COUNT ( * ) + - 6 * 17 + + + COUNT ( * ) * - 21 * - ( - 45 ) + 95 / - 17
----
-1052

query I rowsort
SELECT ALL - 90 - - - 84
----
-174

query I rowsort
SELECT - + 26 + + COALESCE ( - + 98, + COALESCE ( + 72, + + ( + + 8 ) ) ) AS col1
----
-124

query I rowsort
SELECT + + 15 + - 15 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6146
SELECT - - 51 * - ( - COUNT( * ) ) AS col1, - 12 + - 78 col1
----
51
-90

skipif mysql # not compatible
query II rowsort label-6146
SELECT - - 51 * - ( - COUNT ( * ) ) AS col1, - 12 + - 78 col1
----
51
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-6147
SELECT + - COUNT( * ) + - 21 AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-6147
SELECT + - COUNT ( * ) + - 21 AS col2
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-6148
SELECT - COUNT( * ) + 78 * + + 20 * + 51 AS col2
----
79559

skipif mysql # not compatible
query I rowsort label-6148
SELECT - COUNT ( * ) + 78 * + + 20 * + 51 AS col2
----
79559

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6150
SELECT - COUNT( * ) + - 3 + + - ( - CAST( 72 AS SIGNED ) ) AS col1
----
68

skipif mysql # not compatible
query I rowsort label-6150
SELECT - COUNT ( * ) + - 3 + + - ( - CAST ( 72 AS INTEGER ) ) AS col1
----
68

query I rowsort
SELECT ALL + 10 - - + 28
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6152
SELECT DISTINCT - CASE + - CAST( NULL AS SIGNED ) WHEN 46 THEN + ( 78 ) WHEN 14 * + - 52 THEN - ( + - 59 ) DIV 87 WHEN + 60 THEN ( 63 ) ELSE 38 * ( - COUNT( * ) ) + - 6 END * + COALESCE ( + ( + 60 ), - ( 55 ) + + 58 )
----
2640

skipif mysql # not compatible
query I rowsort label-6152
SELECT DISTINCT - CASE + - CAST ( NULL AS INTEGER ) WHEN 46 THEN + ( 78 ) WHEN 14 * + - 52 THEN - ( + - 59 ) / 87 WHEN + 60 THEN ( 63 ) ELSE 38 * ( - COUNT ( * ) ) + - 6 END * + COALESCE ( + ( + 60 ), - ( 55 ) + + 58 )
----
2640

query I rowsort
SELECT - 78 + 68 + + + 59 + 52 * 29 * + ( - 74 )
----
-111543

query I rowsort
SELECT DISTINCT 13 * + - 34 * - 67
----
29614

onlyif mysql # aggregate syntax: 
query I rowsort label-6155
SELECT ALL SUM( ALL 45 ) AS col1
----
45

skipif mysql # not compatible
query I rowsort label-6155
SELECT ALL SUM ( ALL 45 ) AS col1
----
45

onlyif mysql # DIV for integer division: 
query II rowsort label-6156
SELECT ALL + 10 DIV + 12 AS col1, + 18 - + 36
----
0
-18

skipif mysql # not compatible
query II rowsort label-6156
SELECT ALL + 10 / + 12 AS col1, + 18 - + 36
----
0
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-6157
SELECT - 59 DIV + 55
----
-1

skipif mysql # not compatible
query I rowsort label-6157
SELECT - 59 / + 55
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6158
SELECT - COUNT( * ) + + ( + 6 ) + ( + COUNT( * ) ) * + 70
----
75

skipif mysql # not compatible
query I rowsort label-6158
SELECT - COUNT ( * ) + + ( + 6 ) + ( + COUNT ( * ) ) * + 70
----
75

query I rowsort
SELECT ( 98 ) col2
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-6160
SELECT ( - COUNT( * ) ) * - 31 + 60 * CASE + 83 WHEN + 10 THEN - + 67 ELSE NULL END * + + 60 / - 74
----
NULL

skipif mysql # not compatible
query I rowsort label-6160
SELECT ( - COUNT ( * ) ) * - 31 + 60 * CASE + 83 WHEN + 10 THEN - + 67 ELSE NULL END * + + 60 / - 74
----
NULL

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

query I rowsort
SELECT + 18 * + ( - + 45 ) + + + 62
----
-748

query II rowsort
SELECT ( 5 ), + ( + 77 ) + - 4 AS col0
----
5
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6164
SELECT ALL ( + COUNT( * ) ) * + 94 / + + 60 * + 46 + + + 74 * - - COUNT( * ) * + 70 * - CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6164
SELECT ALL ( + COUNT ( * ) ) * + 94 / + + 60 * + 46 + + + 74 * - - COUNT ( * ) * + 70 * - CAST ( NULL AS INTEGER ) col1
----
NULL

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

query I rowsort
SELECT DISTINCT - 85 * + 66
----
-5610

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6167
SELECT - + 62 - - + CAST( NULL AS SIGNED ) * CASE + MAX( ALL + - NULLIF ( - ( 91 ), - ( - 45 ) ) ) WHEN - 56 THEN - COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6167
SELECT - + 62 - - + CAST ( NULL AS INTEGER ) * CASE + MAX ( ALL + - NULLIF ( - ( 91 ), - ( - 45 ) ) ) WHEN - 56 THEN - COUNT ( * ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6168
SELECT DISTINCT 15 * - 38 * + ( 86 ) + - - COUNT( * ) - + ( - SUM( ALL - 14 ) ) * - - 65 * - 20 + + 56 AS col0
----
-30763

skipif mysql # not compatible
query I rowsort label-6168
SELECT DISTINCT 15 * - 38 * + ( 86 ) + - - COUNT ( * ) - + ( - SUM ( ALL - 14 ) ) * - - 65 * - 20 + + 56 AS col0
----
-30763

onlyif mysql # aggregate syntax: 
query I rowsort label-6169
SELECT + 15 * + ( + + 32 ) - + MIN( + - 78 ) + + 86 AS col1
----
644

skipif mysql # not compatible
query I rowsort label-6169
SELECT + 15 * + ( + + 32 ) - + MIN ( + - 78 ) + + 86 AS col1
----
644

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

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

query I rowsort
SELECT DISTINCT - 87 * - + 66 - + 25 AS col0
----
5717

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6172
SELECT + SUM( ALL + CASE - 84 WHEN + 33 + CAST( NULL AS DECIMAL ) / 69 THEN - - 31 / + 23 * + + 60 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-6172
SELECT + SUM ( ALL + CASE - 84 WHEN + 33 + CAST ( NULL AS REAL ) / 69 THEN - - 31 / + 23 * + + 60 ELSE NULL END )
----
NULL

query I rowsort
SELECT DISTINCT - COALESCE ( + - 18, + 21 ) * + 18 + - + 37 + + - 90 * + 58 + - 37 - - - 7 AS col2
----
-4977

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6174
SELECT ALL + 80 * - - 75 * + 31 - - 24 + + 18 DIV NULLIF ( + 81, - - COUNT( * ) * - 60 ) * ( 70 ) AS col2
----
186024

skipif mysql # not compatible
query I rowsort label-6174
SELECT ALL + 80 * - - 75 * + 31 - - 24 + + 18 / NULLIF ( + 81, - - COUNT ( * ) * - 60 ) * ( 70 ) AS col2
----
186024

query I rowsort
SELECT ALL - 61 * - - 14 AS col2
----
-854

onlyif mysql # aggregate syntax: 
query I rowsort label-6176
SELECT + 13 * COUNT( * ) * - - 67 * - COUNT( * )
----
-871

skipif mysql # not compatible
query I rowsort label-6176
SELECT + 13 * COUNT ( * ) * - - 67 * - COUNT ( * )
----
-871

onlyif mysql # aggregate syntax: 
query I rowsort label-6177
SELECT + + 81 * + COUNT( * ) * - + 39 AS col0
----
-3159

skipif mysql # not compatible
query I rowsort label-6177
SELECT + + 81 * + COUNT ( * ) * - + 39 AS col0
----
-3159

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6179
SELECT NULLIF ( - 62, - 36 * 64 + + + 18 - + - 1 + + 47 * - - MAX( - CASE 10 WHEN CAST( NULL AS DECIMAL ) / 75 THEN NULL WHEN - 77 THEN NULL ELSE 35 END ) * + 91 * 46 ) AS col2
----
-62

skipif mysql # not compatible
query I rowsort label-6179
SELECT NULLIF ( - 62, - 36 * 64 + + + 18 - + - 1 + + 47 * - - MAX ( - CASE 10 WHEN CAST ( NULL AS REAL ) / 75 THEN NULL WHEN - 77 THEN NULL ELSE 35 END ) * + 91 * 46 ) AS col2
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6180
SELECT + + CAST( - AVG ( DISTINCT - 27 ) AS SIGNED ) * + + 9
----
243

skipif mysql # not compatible
query I rowsort label-6180
SELECT + + CAST ( - AVG ( DISTINCT - 27 ) AS INTEGER ) * + + 9
----
243

query I rowsort
SELECT DISTINCT + 67 * 30
----
2010

query I rowsort
SELECT DISTINCT 37 * - 90
----
-3330

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6183
SELECT - CAST( NULL AS SIGNED ), 58 * MIN( + 73 ) * + + COALESCE ( 51, 14 * 81 DIV + 42 ) col2
----
NULL
215934

skipif mysql # not compatible
query II rowsort label-6183
SELECT - CAST ( NULL AS INTEGER ), 58 * MIN ( + 73 ) * + + COALESCE ( 51, 14 * 81 / + 42 ) col2
----
NULL
215934

onlyif mysql # aggregate syntax: 
query I rowsort label-6184
SELECT 45 * COUNT( * ) * - 98
----
-4410

skipif mysql # not compatible
query I rowsort label-6184
SELECT 45 * COUNT ( * ) * - 98
----
-4410

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

skipif mysql # not compatible
query I rowsort label-6185
SELECT ALL COUNT ( * ) + - - 38 AS col0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-6186
SELECT 26 + - COUNT( DISTINCT + 50 ) col0
----
25

skipif mysql # not compatible
query I rowsort label-6186
SELECT 26 + - COUNT ( DISTINCT + 50 ) col0
----
25

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6187
SELECT - CAST( NULL AS DECIMAL ) * + 18 + + + 29 AS col1, 49 AS col2
----
NULL
49

skipif mysql # not compatible
query II rowsort label-6187
SELECT - CAST ( NULL AS REAL ) * + 18 + + + 29 AS col1, 49 AS col2
----
NULL
49

query I rowsort
SELECT DISTINCT + 7 + + 80 + 38 * 80 * 69 * 3 + - 99
----
629268

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6190
SELECT ALL + 89 + - 26 + + 37 AS col1, COALESCE ( + - COUNT( * ), + CASE 44 WHEN + - 22 THEN - + 90 END, - 88 ) AS col1
----
100
-1

skipif mysql # not compatible
query II rowsort label-6190
SELECT ALL + 89 + - 26 + + 37 AS col1, COALESCE ( + - COUNT ( * ), + CASE 44 WHEN + - 22 THEN - + 90 END, - 88 ) AS col1
----
100
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6191
SELECT + 76 DIV 19 + + 97 * + COUNT( * ) * - ( - 27 ) AS col1
----
2623

skipif mysql # not compatible
query I rowsort label-6191
SELECT + 76 / 19 + + 97 * + COUNT ( * ) * - ( - 27 ) AS col1
----
2623

query I rowsort
SELECT DISTINCT 76 + + + 24
----
100

query I rowsort
SELECT ALL + 89 + 48 AS col1
----
137

onlyif mysql # DIV for integer division: 
query I rowsort label-6194
SELECT 5 * + 2 DIV + + 83 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6194
SELECT 5 * + 2 / + + 83 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6195
SELECT ALL - 94 AS col2, 85 + 62 - + COUNT( * )
----
-94
146

skipif mysql # not compatible
query II rowsort label-6195
SELECT ALL - 94 AS col2, 85 + 62 - + COUNT ( * )
----
-94
146

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6197
SELECT DISTINCT - - CASE + 86 WHEN + 14 THEN - COUNT( * ) / - COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6197
SELECT DISTINCT - - CASE + 86 WHEN + 14 THEN - COUNT ( * ) / - COUNT ( * ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6198
SELECT DISTINCT - 3 - 55 / - COUNT( * ) * 38 + + CASE 35 WHEN - 7 + - 92 * + - COUNT( * ) THEN NULL WHEN - 47 * 88 THEN COUNT( * ) END + - ( + COALESCE ( 25, 47 * 61, + 44 + 82 * 23 ) ) * 92
----
NULL

skipif mysql # not compatible
query I rowsort label-6198
SELECT DISTINCT - 3 - 55 / - COUNT ( * ) * 38 + + CASE 35 WHEN - 7 + - 92 * + - COUNT ( * ) THEN NULL WHEN - 47 * 88 THEN COUNT ( * ) END + - ( + COALESCE ( 25, 47 * 61, + 44 + 82 * 23 ) ) * 92
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6199
SELECT + NULLIF ( - + 82, - COUNT( * ) + 81 ) * + 99 + ( - + 99 ) AS col2
----
-8217

skipif mysql # not compatible
query I rowsort label-6199
SELECT + NULLIF ( - + 82, - COUNT ( * ) + 81 ) * + 99 + ( - + 99 ) AS col2
----
-8217

query I rowsort
SELECT DISTINCT + 12 * - - 9 AS col0
----
108

query I rowsort
SELECT 53 * + - 68 AS col0
----
-3604

query I rowsort
SELECT ALL + + COALESCE ( + - 50, - 35 ) * + - 1 AS col1
----
50

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

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

query I rowsort
SELECT - COALESCE ( - + 96, + 49 ) AS col0
----
96

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

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

query I rowsort
SELECT ALL + CASE + 11 WHEN + 54 THEN NULL WHEN - + 15 THEN NULL ELSE - - 71 + 70 END
----
141

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6208
SELECT + 81 DIV + 34
----
2

skipif mysql # not compatible
query I rowsort label-6208
SELECT + 81 / + 34
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6209
SELECT COALESCE ( - CAST( - 85 AS SIGNED ), + 55, + + 31 * + 16 DIV - 13 ) + + COUNT( * ) DIV + + 63 col0, COALESCE ( + - 58, 66 * ( 69 ), + 63 * 58 + - CAST( NULL AS SIGNED ) )
----
85
-58

skipif mysql # not compatible
query II rowsort label-6209
SELECT COALESCE ( - CAST ( - 85 AS INTEGER ), + 55, + + 31 * + 16 / - 13 ) + + COUNT ( * ) / + + 63 col0, COALESCE ( + - 58, 66 * ( 69 ), + 63 * 58 + - CAST ( NULL AS INTEGER ) )
----
85
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-6210
SELECT ALL 13 * - + CASE - COALESCE ( - - AVG ( DISTINCT 75 ), COUNT( * ) ) WHEN + 47 THEN 7 * + - COUNT( * ) / - - 96 * + + 58 * 33 + 53 - + 92 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6210
SELECT ALL 13 * - + CASE - COALESCE ( - - AVG ( DISTINCT 75 ), COUNT ( * ) ) WHEN + 47 THEN 7 * + - COUNT ( * ) / - - 96 * + + 58 * 33 + 53 - + 92 END AS col0
----
NULL

query I rowsort
SELECT ( - 41 ) + + - 94 + 39
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6212
SELECT ALL CAST( NULL AS SIGNED ) + - - 78 + - + 80 * 45 * - CAST( - + 16 AS SIGNED ) * + + 13 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6212
SELECT ALL CAST ( NULL AS INTEGER ) + - - 78 + - + 80 * 45 * - CAST ( - + 16 AS INTEGER ) * + + 13 AS col2
----
NULL

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6215
SELECT COUNT( ALL + - 99 ) * + - ( + ( + 42 ) ) + + NULLIF ( + + 87, - - 36 ) + ( - 36 ) AS col0
----
9

skipif mysql # not compatible
query I rowsort label-6215
SELECT COUNT ( ALL + - 99 ) * + - ( + ( + 42 ) ) + + NULLIF ( + + 87, - - 36 ) + ( - 36 ) AS col0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6216
SELECT CASE + COUNT( * ) WHEN - 70 / - 3 + - - 68 + - 5 THEN NULL WHEN - 57 * - COUNT( * ) + - + MAX( 30 ) THEN + 49 WHEN 35 - 51 * 96 THEN NULL END + 62 * SUM( - 53 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6216
SELECT CASE + COUNT ( * ) WHEN - 70 / - 3 + - - 68 + - 5 THEN NULL WHEN - 57 * - COUNT ( * ) + - + MAX ( 30 ) THEN + 49 WHEN 35 - 51 * 96 THEN NULL END + 62 * SUM ( - 53 ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6217
SELECT ALL NULLIF ( + 75, - AVG ( ALL + - 93 ) ) * 13 DIV - - 55 AS col1
----
17

skipif mysql # not compatible
query I rowsort label-6217
SELECT ALL NULLIF ( + 75, - AVG ( ALL + - 93 ) ) * 13 / - - 55 AS col1
----
17

query II rowsort
SELECT ALL 4, - 51 * - 9 col1
----
4
459

query II rowsort
SELECT - 5, - 76 * + 64 AS col0
----
-5
-4864

onlyif mysql # aggregate syntax: 
query II rowsort label-6220
SELECT 64 AS col2, + 78 + COUNT( * ) AS col0
----
64
79

skipif mysql # not compatible
query II rowsort label-6220
SELECT 64 AS col2, + 78 + COUNT ( * ) AS col0
----
64
79

query II rowsort
SELECT 69 AS col2, + 65 * 41 AS col2
----
69
2665

query II rowsort
SELECT ALL 15 AS col2, 20
----
15
20

query I rowsort
SELECT 60 + 46 + - - 18
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-6224
SELECT DISTINCT ( ( + 77 ) ) * - COUNT( * ) + - + COUNT( * ) AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-6224
SELECT DISTINCT ( ( + 77 ) ) * - COUNT ( * ) + - + COUNT ( * ) AS col2
----
-78

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query III rowsort label-6225
SELECT DISTINCT - 44 AS col2, - 78 AS col2, 70 * 43 + 4 DIV CAST( + ( + - 8 ) AS SIGNED ) + 56 + - + 51 + + - 73 * - 81
----
-44
-78
8928

skipif mysql # not compatible
query III rowsort label-6225
SELECT DISTINCT - 44 AS col2, - 78 AS col2, 70 * 43 + 4 / CAST ( + ( + - 8 ) AS INTEGER ) + 56 + - + 51 + + - 73 * - 81
----
-44
-78
8928

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6227
SELECT ( - 89 ) DIV + 91 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6227
SELECT ( - 89 ) / + 91 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6228
SELECT 97, - SUM( ALL + 49 ) * 67 AS col1
----
97
-3283

skipif mysql # not compatible
query II rowsort label-6228
SELECT 97, - SUM ( ALL + 49 ) * 67 AS col1
----
97
-3283

query II rowsort
SELECT ALL - 40 AS col1, - 56 + + ( + + 25 )
----
-40
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6230
SELECT ALL + + ( + 14 ) - + + CAST( 23 AS SIGNED ) + 37 + + NULLIF ( - 55, 93 ) + COALESCE ( + 40, + 54 * + 81 ) - + 61 * 37
----
-2244

skipif mysql # not compatible
query I rowsort label-6230
SELECT ALL + + ( + 14 ) - + + CAST ( 23 AS INTEGER ) + 37 + + NULLIF ( - 55, 93 ) + COALESCE ( + 40, + 54 * + 81 ) - + 61 * 37
----
-2244

query I rowsort
SELECT ALL 6 * + 97
----
582

query II rowsort
SELECT 30 + + 80, - 12 col1
----
110
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-6233
SELECT DISTINCT + 41 * - COALESCE ( 72, - - ( - 82 ) ) DIV + 9
----
-328

skipif mysql # not compatible
query I rowsort label-6233
SELECT DISTINCT + 41 * - COALESCE ( 72, - - ( - 82 ) ) / + 9
----
-328

query I rowsort
SELECT ALL 33 - + + 45 - - 82 AS col1
----
70

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6236
SELECT DISTINCT + + 51 + + MIN( DISTINCT - + 45 ) col1
----
6

skipif mysql # not compatible
query I rowsort label-6236
SELECT DISTINCT + + 51 + + MIN ( DISTINCT - + 45 ) col1
----
6

query II rowsort
SELECT DISTINCT + 11, + ( + 26 ) AS col1
----
11
26

query I rowsort
SELECT ALL + 18 * + ( + 62 )
----
1116

query I rowsort
SELECT - 88 * 5
----
-440

onlyif mysql # aggregate syntax: 
query I rowsort label-6240
SELECT ALL + MIN( + 78 ) + 64 + 60 AS col2
----
202

skipif mysql # not compatible
query I rowsort label-6240
SELECT ALL + MIN ( + 78 ) + 64 + 60 AS col2
----
202

onlyif mysql # aggregate syntax: 
query I rowsort label-6241
SELECT DISTINCT + ( + + 92 ) + + MAX( DISTINCT - 66 ) AS col0
----
26

skipif mysql # not compatible
query I rowsort label-6241
SELECT DISTINCT + ( + + 92 ) + + MAX ( DISTINCT - 66 ) AS col0
----
26

query I rowsort
SELECT DISTINCT COALESCE ( - 62, + 98, - 15 )
----
-62

query I rowsort
SELECT - 7 * + 31 AS col2
----
-217

onlyif mysql # aggregate syntax: 
query II rowsort label-6244
SELECT DISTINCT - 6 + - - 96 AS col0, - 92 - - MIN( ALL + 57 ) * 8 AS col2
----
90
364

skipif mysql # not compatible
query II rowsort label-6244
SELECT DISTINCT - 6 + - - 96 AS col0, - 92 - - MIN ( ALL + 57 ) * 8 AS col2
----
90
364

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6245
SELECT ALL 71 + - + CAST( - - 53 AS SIGNED )
----
18

skipif mysql # not compatible
query I rowsort label-6245
SELECT ALL 71 + - + CAST ( - - 53 AS INTEGER )
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6246
SELECT DISTINCT - 7 + CAST( + - 41 AS SIGNED ) + - + 74 DIV - 98 + + COUNT( * ) + 41 AS col1, - 7 AS col1
----
-6
-7

skipif mysql # not compatible
query II rowsort label-6246
SELECT DISTINCT - 7 + CAST ( + - 41 AS INTEGER ) + - + 74 / - 98 + + COUNT ( * ) + 41 AS col1, - 7 AS col1
----
-6
-7

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

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

query I rowsort
SELECT ALL - 89 + - 43
----
-132

onlyif mysql # aggregate syntax: 
query I rowsort label-6249
SELECT DISTINCT CASE + - COUNT( * ) WHEN - 83 / - - 2 THEN 59 * + - 11 WHEN + 53 THEN + 21 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6249
SELECT DISTINCT CASE + - COUNT ( * ) WHEN - 83 / - - 2 THEN 59 * + - 11 WHEN + 53 THEN + 21 END AS col1
----
NULL

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

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

query I rowsort
SELECT - 93 + - 55 + + - 68 + 17 - - + 36
----
-163

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6252
SELECT + 99 DIV + 8 * COUNT( ALL - - 26 )
----
12

skipif mysql # not compatible
query I rowsort label-6252
SELECT + 99 / + 8 * COUNT ( ALL - - 26 )
----
12

query II rowsort
SELECT DISTINCT 64 * + - 71 col1, - ( - 72 ) AS col2
----
-4544
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6254
SELECT + CASE WHEN NOT NULL > NULL THEN + 28 ELSE + 12 + + + 96 END * 70 + - 94 + + - 28 - + COALESCE ( - - COUNT( * ), + COUNT( * ) ) + + - 21 + + 76 * - 64 * 6 * - ( CAST( NULL AS SIGNED ) ) / + 62 + COUNT( 65 - 23 ) * + CASE - 63 / 68 WHEN - ( + 2 ) / 69 THEN COUNT( * ) * + COUNT( * ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6254
SELECT + CASE WHEN NOT NULL > NULL THEN + 28 ELSE + 12 + + + 96 END * 70 + - 94 + + - 28 - + COALESCE ( - - COUNT ( * ), + COUNT ( * ) ) + + - 21 + + 76 * - 64 * 6 * - ( CAST ( NULL AS INTEGER ) ) / + 62 + COUNT ( 65 - 23 ) * + CASE - 63 / 68 WHEN - ( + 2 ) / 69 THEN COUNT ( * ) * + COUNT ( * ) ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT 9 * - - 84 + - 30 * + 62
----
-1104

query I rowsort
SELECT DISTINCT 94 * 59 AS col1
----
5546

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6258
SELECT + - 18 * - MAX( + + 82 )
----
1476

skipif mysql # not compatible
query I rowsort label-6258
SELECT + - 18 * - MAX ( + + 82 )
----
1476

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

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

query I rowsort
SELECT + - 68 * - - 87
----
-5916

onlyif mysql # aggregate syntax: 
query I rowsort label-6261
SELECT + 9 * - - SUM( - - COALESCE ( 50, + + 26 ) ) * - 66 * - ( + 88 ) * COUNT( * ) * - 11 AS col0
----
-28749600

skipif mysql # not compatible
query I rowsort label-6261
SELECT + 9 * - - SUM ( - - COALESCE ( 50, + + 26 ) ) * - 66 * - ( + 88 ) * COUNT ( * ) * - 11 AS col0
----
-28749600

onlyif mysql # aggregate syntax: 
query I rowsort label-6262
SELECT + + 99 + - + 64 * - MIN( + COALESCE ( - 26, + + 28 * 26, + 88 ) ) AS col0
----
-1565

skipif mysql # not compatible
query I rowsort label-6262
SELECT + + 99 + - + 64 * - MIN ( + COALESCE ( - 26, + + 28 * 26, + 88 ) ) AS col0
----
-1565

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6263
SELECT - + ( + ( - - 89 ) ) * - CAST( - CASE 75 WHEN - - ( COUNT( * ) ) THEN - 64 * - + NULLIF ( 79, + - 29 ) * 11 ELSE NULL END AS SIGNED ) - 2
----
NULL

skipif mysql # not compatible
query I rowsort label-6263
SELECT - + ( + ( - - 89 ) ) * - CAST ( - CASE 75 WHEN - - ( COUNT ( * ) ) THEN - 64 * - + NULLIF ( 79, + - 29 ) * 11 ELSE NULL END AS INTEGER ) - 2
----
NULL

query I rowsort
SELECT NULLIF ( + 65, + 16 )
----
65

query I rowsort
SELECT - - 18 + - + 33 - + ( - 27 )
----
12

query I rowsort
SELECT + + 91 - 77
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-6267
SELECT DISTINCT - MAX( - - 38 ) * - 98 / CASE 58 WHEN 40 + + + 30 THEN NULL WHEN COUNT( * ) * + + COALESCE ( SUM( 78 ), + - 52, 37 ) - 59 - COUNT( * ) THEN - 12 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6267
SELECT DISTINCT - MAX ( - - 38 ) * - 98 / CASE 58 WHEN 40 + + + 30 THEN NULL WHEN COUNT ( * ) * + + COALESCE ( SUM ( 78 ), + - 52, 37 ) - 59 - COUNT ( * ) THEN - 12 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6268
SELECT ALL + 52 * 45 + + - COUNT( * ) AS col0
----
2339

skipif mysql # not compatible
query I rowsort label-6268
SELECT ALL + 52 * 45 + + - COUNT ( * ) AS col0
----
2339

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6270
SELECT ALL - CAST( NULL AS SIGNED ) * 40 * - 13 / - 51 + + 36, - 71 + - - 93 * 51 * 55 AS col2
----
NULL
260794

skipif mysql # not compatible
query II rowsort label-6270
SELECT ALL - CAST ( NULL AS INTEGER ) * 40 * - 13 / - 51 + + 36, - 71 + - - 93 * 51 * 55 AS col2
----
NULL
260794

onlyif mysql # aggregate syntax: 
query I rowsort label-6271
SELECT DISTINCT COUNT( 20 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-6271
SELECT DISTINCT COUNT ( 20 ) col2
----
1

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

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

query I rowsort
SELECT 56 * + 44 + + 45 * - 48
----
304

onlyif mysql # DIV for integer division: 
query I rowsort label-6274
SELECT - 13 DIV + 77 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6274
SELECT - 13 / + 77 AS col1
----
0

query I rowsort
SELECT - ( + 16 ) * 32
----
-512

query I rowsort
SELECT ALL + 20 + + 54 - + 31
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6277
SELECT - 46 * + 64 * + - 50 * 25 + + CAST( - 13 AS SIGNED ) col2, 65 AS col1
----
3679987
65

skipif mysql # not compatible
query II rowsort label-6277
SELECT - 46 * + 64 * + - 50 * 25 + + CAST ( - 13 AS INTEGER ) col2, 65 AS col1
----
3679987
65

query I rowsort
SELECT - 77 + + 99 AS col1
----
22

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6280
SELECT DISTINCT COUNT( - 28 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6280
SELECT DISTINCT COUNT ( - 28 ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6281
SELECT ALL CAST( - - 20 AS SIGNED ) AS col2
----
20

skipif mysql # not compatible
query I rowsort label-6281
SELECT ALL CAST ( - - 20 AS INTEGER ) AS col2
----
20

query I rowsort
SELECT ALL + 57 - + 37 * NULLIF ( + 43, 79 )
----
-1534

query I rowsort
SELECT DISTINCT - 3 * 96
----
-288

query I rowsort
SELECT - 17 * + + 42 * - 47
----
33558

query I rowsort
SELECT - 23 + + 58
----
35

query I rowsort
SELECT DISTINCT - 76 * + - 60
----
4560

query II rowsort
SELECT 18, 73 col2
----
18
73

query I rowsort
SELECT + 76 + + 63 AS col1
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-6289
SELECT ALL - MAX( 51 ) - - 85 AS col1
----
34

skipif mysql # not compatible
query I rowsort label-6289
SELECT ALL - MAX ( 51 ) - - 85 AS col1
----
34

query I rowsort
SELECT ALL - 85 * + 12 AS col2
----
-1020

onlyif mysql # aggregate syntax: 
query II rowsort label-6291
SELECT DISTINCT 30 col1, - CASE - 44 WHEN 94 THEN + 36 * + COUNT( * ) * + 92 * + + 1 + + + COUNT( + + 90 ) * - - 58 WHEN - 19 / + + COALESCE ( + 51, 22 + + COUNT( * ) ) THEN 8 * - ( ( 87 ) * - 77 ) END AS col2
----
30
NULL

skipif mysql # not compatible
query II rowsort label-6291
SELECT DISTINCT 30 col1, - CASE - 44 WHEN 94 THEN + 36 * + COUNT ( * ) * + 92 * + + 1 + + + COUNT ( + + 90 ) * - - 58 WHEN - 19 / + + COALESCE ( + 51, 22 + + COUNT ( * ) ) THEN 8 * - ( ( 87 ) * - 77 ) END AS col2
----
30
NULL

query II rowsort
SELECT DISTINCT - 10 AS col0, - 48
----
-10
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-6293
SELECT - + 47 * + COUNT( * ) col1
----
-47

skipif mysql # not compatible
query I rowsort label-6293
SELECT - + 47 * + COUNT ( * ) col1
----
-47

query I rowsort
SELECT DISTINCT 66 * 1 + + 11
----
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6295
SELECT DISTINCT - 75 * - - 55 * COUNT( * ) + - 40 DIV - 28 AS col0
----
-4124

skipif mysql # not compatible
query I rowsort label-6295
SELECT DISTINCT - 75 * - - 55 * COUNT ( * ) + - 40 / - 28 AS col0
----
-4124

onlyif mysql # DIV for integer division: 
query I rowsort label-6296
SELECT DISTINCT - 27 DIV + - 93 + - + 47 AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-6296
SELECT DISTINCT - 27 / + - 93 + - + 47 AS col1
----
-47

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

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

query I rowsort
SELECT ALL + 51 + + + 67
----
118

query I rowsort
SELECT ALL - 40 + - 40 AS col2
----
-80

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

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

query I rowsort
SELECT - 10 * - 30 * + ( - 70 )
----
-21000

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6302
SELECT DISTINCT + COUNT( + - 64 ) + + ( + CASE - MIN( NULLIF ( 6, + - 72 ) ) WHEN + 60 + - 22 THEN NULL ELSE - + CAST( NULL AS SIGNED ) END ) * 97 / + 51 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6302
SELECT DISTINCT + COUNT ( + - 64 ) + + ( + CASE - MIN ( NULLIF ( 6, + - 72 ) ) WHEN + 60 + - 22 THEN NULL ELSE - + CAST ( NULL AS INTEGER ) END ) * 97 / + 51 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6303
SELECT ALL CAST( NULL AS SIGNED ) + + 49 * - COALESCE ( + 53, 38 ) * 83 + + + 67 + ( - 11 ) + - 15
----
NULL

skipif mysql # not compatible
query I rowsort label-6303
SELECT ALL CAST ( NULL AS INTEGER ) + + 49 * - COALESCE ( + 53, 38 ) * 83 + + + 67 + ( - 11 ) + - 15
----
NULL

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

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

query I rowsort
SELECT 42 * 40
----
1680

onlyif mysql # aggregate syntax: 
query II rowsort label-6306
SELECT MAX( + + 61 ) * + MIN( ALL + 57 ) AS col0, + ( - 64 ) * 49 * + - 44 * - COUNT( * ) + + 93
----
3477
-137891

skipif mysql # not compatible
query II rowsort label-6306
SELECT MAX ( + + 61 ) * + MIN ( ALL + 57 ) AS col0, + ( - 64 ) * 49 * + - 44 * - COUNT ( * ) + + 93
----
3477
-137891

query I rowsort
SELECT ALL - 61 * - 74 * 4 col1
----
18056

query I rowsort
SELECT ALL - 90 - + + 19 AS col1
----
-109

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6309
SELECT ( + CASE + + 75 WHEN - 15 - - 22 THEN NULL WHEN - 41 THEN NULL ELSE NULLIF ( + 18, - 98 * + 6 + 43 * - - CAST( NULL AS SIGNED ) + 99 * + + 69 * 21 + + CAST( NULL AS SIGNED ) * + COUNT( * ) ) + SUM( 83 ) END ) * 78 AS col0
----
7878

skipif mysql # not compatible
query I rowsort label-6309
SELECT ( + CASE + + 75 WHEN - 15 - - 22 THEN NULL WHEN - 41 THEN NULL ELSE NULLIF ( + 18, - 98 * + 6 + 43 * - - CAST ( NULL AS INTEGER ) + 99 * + + 69 * 21 + + CAST ( NULL AS INTEGER ) * + COUNT ( * ) ) + SUM ( 83 ) END ) * 78 AS col0
----
7878

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6310
SELECT 79 * + CAST( - 95 AS SIGNED ) AS col1
----
-7505

skipif mysql # not compatible
query I rowsort label-6310
SELECT 79 * + CAST ( - 95 AS INTEGER ) AS col1
----
-7505

onlyif mysql # aggregate syntax: 
query I rowsort label-6311
SELECT 86 - + MAX( - 68 ) AS col0
----
154

skipif mysql # not compatible
query I rowsort label-6311
SELECT 86 - + MAX ( - 68 ) AS col0
----
154

onlyif mysql # aggregate syntax: 
query II rowsort label-6312
SELECT DISTINCT + MIN( ALL - 78 ), 17 * + - 66 - - - COALESCE ( + 52, - CASE 61 WHEN - COALESCE ( 46, + ( + + 30 ) * + 27 ) * + 2 + 16 THEN 37 WHEN 40 * 81 THEN NULL ELSE NULL END, + 67 * 48 ) + 25 col1
----
-78
-1149

skipif mysql # not compatible
query II rowsort label-6312
SELECT DISTINCT + MIN ( ALL - 78 ), 17 * + - 66 - - - COALESCE ( + 52, - CASE 61 WHEN - COALESCE ( 46, + ( + + 30 ) * + 27 ) * + 2 + 16 THEN 37 WHEN 40 * 81 THEN NULL ELSE NULL END, + 67 * 48 ) + 25 col1
----
-78
-1149

query I rowsort
SELECT 84 + + - ( 87 )
----
-3

query I rowsort
SELECT - 25 * 57 AS col0
----
-1425

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

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

query I rowsort
SELECT - 69 + - + CASE - 90 WHEN 84 THEN - 47 + + + 33 ELSE NULL END
----
NULL

query I rowsort
SELECT 76 + - 63 * + 88 AS col1
----
-5468

query I rowsort
SELECT - 52 - + - 64 * - 15 AS col2
----
-1012

query I rowsort
SELECT ALL - 46 * - - 25 col1
----
-1150

query I rowsort
SELECT ALL - - 99 + + 82
----
181

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

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

query I rowsort
SELECT DISTINCT + - 20 + + 61 col2
----
41

query II rowsort
SELECT DISTINCT - 44 + + 80 + + 24 - - 73 AS col2, 35 + + - 88 AS col0
----
133
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-6324
SELECT - 27 DIV + 12 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-6324
SELECT - 27 / + 12 AS col0
----
-2

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6326
SELECT DISTINCT 80 + + 5 + - CASE - + 56 WHEN - COUNT( * ) / + 42 * + 23 THEN NULL WHEN + 99 THEN - COUNT( * ) WHEN - - COUNT( * ) * + - 43 THEN - 55 END * 14 / 96 * + 53 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6326
SELECT DISTINCT 80 + + 5 + - CASE - + 56 WHEN - COUNT ( * ) / + 42 * + 23 THEN NULL WHEN + 99 THEN - COUNT ( * ) WHEN - - COUNT ( * ) * + - 43 THEN - 55 END * 14 / 96 * + 53 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6327
SELECT - MAX( + 75 ) * - ( COUNT( DISTINCT + ( 78 ) ) ) AS col2
----
75

skipif mysql # not compatible
query I rowsort label-6327
SELECT - MAX ( + 75 ) * - ( COUNT ( DISTINCT + ( 78 ) ) ) AS col2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6328
SELECT - 86 * + - 44 + + 51 * - MAX( - 23 ) AS col2
----
4957

skipif mysql # not compatible
query I rowsort label-6328
SELECT - 86 * + - 44 + + 51 * - MAX ( - 23 ) AS col2
----
4957

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

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

query I rowsort
SELECT ALL 54 - 66
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6331
SELECT ALL - 2 * - + COALESCE ( + COUNT( * ), - CAST( + ( + 65 ) AS SIGNED ) * ( + 53 ) * - 84 - 43 * + COUNT( * ) * 25 * COALESCE ( - - 67, NULLIF ( + SUM( 11 ), + 3 ) ), + 50 ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-6331
SELECT ALL - 2 * - + COALESCE ( + COUNT ( * ), - CAST ( + ( + 65 ) AS INTEGER ) * ( + 53 ) * - 84 - 43 * + COUNT ( * ) * 25 * COALESCE ( - - 67, NULLIF ( + SUM ( 11 ), + 3 ) ), + 50 ) AS col1
----
2

query I rowsort
SELECT 51 + - 2 AS col0
----
49

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

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

query II rowsort
SELECT DISTINCT 5 * 58 * + 58 AS col0, + 30 AS col1
----
16820
30

onlyif mysql # aggregate syntax: 
query I rowsort label-6335
SELECT ALL SUM( DISTINCT 86 ) + - 47 * - 22
----
1120

skipif mysql # not compatible
query I rowsort label-6335
SELECT ALL SUM ( DISTINCT 86 ) + - 47 * - 22
----
1120

onlyif mysql # aggregate syntax: 
query I rowsort label-6336
SELECT + COUNT( * ) + + + 37 + + + NULLIF ( + 68, 73 ) * - COUNT( * ) AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-6336
SELECT + COUNT ( * ) + + + 37 + + + NULLIF ( + 68, 73 ) * - COUNT ( * ) AS col1
----
-30

query I rowsort
SELECT 30 * - + 41
----
-1230

query I rowsort
SELECT + 67 * + 90 * - + 67 AS col2
----
-404010

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6339
SELECT MAX( DISTINCT - 29 ) + - - COUNT( * ) AS col0, 2 * - 54 DIV - COALESCE ( + - ( - - 46 ), MAX( - COALESCE ( - + 66, - - 13, - - 57 ) ) DIV + CAST( NULL AS SIGNED ) + 28 )
----
-28
-2

skipif mysql # not compatible
query II rowsort label-6339
SELECT MAX ( DISTINCT - 29 ) + - - COUNT ( * ) AS col0, 2 * - 54 / - COALESCE ( + - ( - - 46 ), MAX ( - COALESCE ( - + 66, - - 13, - - 57 ) ) / + CAST ( NULL AS INTEGER ) + 28 )
----
-28
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6340
SELECT ALL + NULLIF ( + 92, - 84 * + 38 / 23 * - - COALESCE ( + - 85, - 10 ) * CASE 77 WHEN - - 6 THEN NULL ELSE - 83 + - 96 END + - CASE CAST( + 56 AS SIGNED ) WHEN - 28 THEN NULL WHEN 45 THEN COUNT( * ) ELSE NULL END ) col1
----
92

skipif mysql # not compatible
query I rowsort label-6340
SELECT ALL + NULLIF ( + 92, - 84 * + 38 / 23 * - - COALESCE ( + - 85, - 10 ) * CASE 77 WHEN - - 6 THEN NULL ELSE - 83 + - 96 END + - CASE CAST ( + 56 AS INTEGER ) WHEN - 28 THEN NULL WHEN 45 THEN COUNT ( * ) ELSE NULL END ) col1
----
92

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6342
SELECT 19 DIV + 7
----
2

skipif mysql # not compatible
query I rowsort label-6342
SELECT 19 / + 7
----
2

query II rowsort
SELECT ALL - 84 + - ( - 10 ), 13 + 73 AS col0
----
-74
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6344
SELECT DISTINCT ( - 49 ) + COUNT( * ) AS col1, CAST( + ( - 2 ) AS SIGNED )
----
-48
-2

skipif mysql # not compatible
query II rowsort label-6344
SELECT DISTINCT ( - 49 ) + COUNT ( * ) AS col1, CAST ( + ( - 2 ) AS INTEGER )
----
-48
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-6345
SELECT - 12 + SUM( ALL + 24 ) AS col0
----
12

skipif mysql # not compatible
query I rowsort label-6345
SELECT - 12 + SUM ( ALL + 24 ) AS col0
----
12

query I rowsort
SELECT - 16 * + 71 col2
----
-1136

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

skipif mysql # not compatible
query I rowsort label-6347
SELECT ALL 86 + - + CAST ( NULL AS REAL )
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6349
SELECT 41 AS col1, 23 DIV - 95 AS col0
----
41
0

skipif mysql # not compatible
query II rowsort label-6349
SELECT 41 AS col1, 23 / - 95 AS col0
----
41
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6350
SELECT + COALESCE ( 64, - - 77 * - - COUNT( * ) * - + 42, 5 ) AS col2
----
64

skipif mysql # not compatible
query I rowsort label-6350
SELECT + COALESCE ( 64, - - 77 * - - COUNT ( * ) * - + 42, 5 ) AS col2
----
64

query I rowsort
SELECT + - ( - 98 ) + - 54 AS col0
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6352
SELECT DISTINCT - 4 * + ( - 87 ) * + 83 / 89 + + 92 + - - CASE 99 WHEN + CASE - 3 WHEN - COUNT( * ) THEN - - 76 * - 40 WHEN ( + 99 ) THEN NULL END THEN NULL WHEN 38 / MIN( + 95 ) THEN - NULLIF ( - 63, CASE - NULLIF ( - COUNT( * ), - MIN( ALL 68 ) * - NULLIF ( 35, + 57 * - 88 ) ) WHEN + 25 THEN 99 / 72 - - 17 WHEN - 77 + 57 THEN + 84 ELSE COUNT( * ) * ( COUNT( * ) ) END + - ( COUNT( * ) + COUNT( * ) * - 16 ) ) + - 21 ELSE NULL END * + 99 + - ( 16 + CAST( NULL AS SIGNED ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6352
SELECT DISTINCT - 4 * + ( - 87 ) * + 83 / 89 + + 92 + - - CASE 99 WHEN + CASE - 3 WHEN - COUNT ( * ) THEN - - 76 * - 40 WHEN ( + 99 ) THEN NULL END THEN NULL WHEN 38 / MIN ( + 95 ) THEN - NULLIF ( - 63, CASE - NULLIF ( - COUNT ( * ), - MIN ( ALL 68 ) * - NULLIF ( 35, + 57 * - 88 ) ) WHEN + 25 THEN 99 / 72 - - 17 WHEN - 77 + 57 THEN + 84 ELSE COUNT ( * ) * ( COUNT ( * ) ) END + - ( COUNT ( * ) + COUNT ( * ) * - 16 ) ) + - 21 ELSE NULL END * + 99 + - ( 16 + CAST ( NULL AS INTEGER ) ) col0
----
NULL

query I rowsort
SELECT DISTINCT - 96 * + + 28 * + ( + 41 ) - - 39 + 44 AS col2
----
-110125

onlyif mysql # aggregate syntax: 
query II rowsort label-6354
SELECT ALL + 27, COUNT( * ) * - + 11 + MAX( ALL 8 ) col0
----
27
-3

skipif mysql # not compatible
query II rowsort label-6354
SELECT ALL + 27, COUNT ( * ) * - + 11 + MAX ( ALL 8 ) col0
----
27
-3

query II rowsort
SELECT ALL + - 58, 11 AS col0
----
-58
11

onlyif mysql # DIV for integer division: 
query I rowsort label-6356
SELECT + 58 DIV + 4 + + - 97 + - 76
----
-159

skipif mysql # not compatible
query I rowsort label-6356
SELECT + 58 / + 4 + + - 97 + - 76
----
-159

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6358
SELECT - 54 + + + MIN( + 63 ) AS col0
----
9

skipif mysql # not compatible
query I rowsort label-6358
SELECT - 54 + + + MIN ( + 63 ) AS col0
----
9

query I rowsort
SELECT NULLIF ( + 50, + - 82 ) AS col1
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-6360
SELECT DISTINCT + 44 DIV 35 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6360
SELECT DISTINCT + 44 / 35 AS col2
----
1

query I rowsort
SELECT - 95 * + + 77
----
-7315

onlyif mysql # aggregate syntax: 
query I rowsort label-6362
SELECT ALL - 26 * 20 * - 23 * + MIN( - 98 ) * ( + + 36 )
----
-42194880

skipif mysql # not compatible
query I rowsort label-6362
SELECT ALL - 26 * 20 * - 23 * + MIN ( - 98 ) * ( + + 36 )
----
-42194880

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6363
SELECT ALL + COALESCE ( 21, 41 * COUNT( * ) * - 19 DIV + 27 )
----
21

skipif mysql # not compatible
query I rowsort label-6363
SELECT ALL + COALESCE ( 21, 41 * COUNT ( * ) * - 19 / + 27 )
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6364
SELECT + 55 AS col2, + COUNT( ALL - CASE CASE + - 87 WHEN - CAST( + CASE + 6 WHEN - 50 THEN + + 57 WHEN - 81 * 6 THEN NULL ELSE - 95 + 14 END AS SIGNED ) THEN - 40 WHEN - 69 THEN NULL END WHEN 24 THEN 68 * + 12 WHEN - 0 - 57 THEN NULL ELSE NULL END )
----
55
0

skipif mysql # not compatible
query II rowsort label-6364
SELECT + 55 AS col2, + COUNT ( ALL - CASE CASE + - 87 WHEN - CAST ( + CASE + 6 WHEN - 50 THEN + + 57 WHEN - 81 * 6 THEN NULL ELSE - 95 + 14 END AS INTEGER ) THEN - 40 WHEN - 69 THEN NULL END WHEN 24 THEN 68 * + 12 WHEN - 0 - 57 THEN NULL ELSE NULL END )
----
55
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6365
SELECT + 77 + - CAST( + 81 AS SIGNED )
----
-4

skipif mysql # not compatible
query I rowsort label-6365
SELECT + 77 + - CAST ( + 81 AS INTEGER )
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-6366
SELECT DISTINCT - 44 DIV - + ( - + 10 )
----
-4

skipif mysql # not compatible
query I rowsort label-6366
SELECT DISTINCT - 44 / - + ( - + 10 )
----
-4

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

skipif mysql # not compatible
query I rowsort label-6367
SELECT - 47 / + 12
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-6368
SELECT ALL + 50 AS col1, NULLIF ( - - ( + + ( - - 68 ) ), + - 83 / - MIN( 13 ) )
----
50
68

skipif mysql # not compatible
query II rowsort label-6368
SELECT ALL + 50 AS col1, NULLIF ( - - ( + + ( - - 68 ) ), + - 83 / - MIN ( 13 ) )
----
50
68

query II rowsort
SELECT + 13 AS col1, 50 - - 91 + NULLIF ( 55, + + 50 )
----
13
196

onlyif mysql # aggregate syntax: 
query I rowsort label-6370
SELECT ALL NULLIF ( + 3, + COUNT( * ) * - 80 + - 30 + + - 59 * - 59 * - 48 * - - 70 )
----
3

skipif mysql # not compatible
query I rowsort label-6370
SELECT ALL NULLIF ( + 3, + COUNT ( * ) * - 80 + - 30 + + - 59 * - 59 * - 48 * - - 70 )
----
3

query II rowsort
SELECT ALL + 72 * 84 col2, + 12 * 5 AS col1
----
6048
60

onlyif mysql # DIV for integer division: 
query II rowsort label-6372
SELECT ALL 69 AS col1, + 70 DIV - - 59 + + 26
----
69
27

skipif mysql # not compatible
query II rowsort label-6372
SELECT ALL 69 AS col1, + 70 / - - 59 + + 26
----
69
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6373
SELECT DISTINCT + 54 + - COUNT( * ) + + 41 + + - 25 + + + 46 * - 10 * - COUNT( * ) * - 67 / + CAST( NULL AS SIGNED ) + - 1
----
NULL

skipif mysql # not compatible
query I rowsort label-6373
SELECT DISTINCT + 54 + - COUNT ( * ) + + 41 + + - 25 + + + 46 * - 10 * - COUNT ( * ) * - 67 / + CAST ( NULL AS INTEGER ) + - 1
----
NULL

query II rowsort
SELECT + 93 * + 26 col1, 11 AS col2
----
2418
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6375
SELECT ALL + COALESCE ( CAST( NULL AS SIGNED ), 18 ) + - - 94 AS col1
----
112

skipif mysql # not compatible
query I rowsort label-6375
SELECT ALL + COALESCE ( CAST ( NULL AS INTEGER ), 18 ) + - - 94 AS col1
----
112

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6376
SELECT - ( + CAST( NULL AS SIGNED ) ) - 8 + + 10 * + 25
----
NULL

skipif mysql # not compatible
query I rowsort label-6376
SELECT - ( + CAST ( NULL AS INTEGER ) ) - 8 + + 10 * + 25
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6377
SELECT ALL 80 AS col0, COUNT( * ) + + - 38 AS col0
----
80
-37

skipif mysql # not compatible
query II rowsort label-6377
SELECT ALL 80 AS col0, COUNT ( * ) + + - 38 AS col0
----
80
-37

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

skipif mysql # not compatible
query II rowsort label-6378
SELECT + - COUNT ( * ) / 8 + - ( - - 1 ) AS col1, - 43
----
-1
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-6379
SELECT ALL + - 28 + + - 96 * - 13 * - 73 + 93 * - - MIN( - 24 ) + - 20
----
-93384

skipif mysql # not compatible
query I rowsort label-6379
SELECT ALL + - 28 + + - 96 * - 13 * - 73 + 93 * - - MIN ( - 24 ) + - 20
----
-93384

onlyif mysql # aggregate syntax: 
query I rowsort label-6380
SELECT DISTINCT - - MIN( + 61 ) + - 97 AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-6380
SELECT DISTINCT - - MIN ( + 61 ) + - 97 AS col2
----
-36

query I rowsort
SELECT ALL 17 + 49 AS col1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-6382
SELECT + 87 - + - COUNT( * )
----
88

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6383
SELECT + ( + - 11 ) DIV + 44
----
0

skipif mysql # not compatible
query I rowsort label-6383
SELECT + ( + - 11 ) / + 44
----
0

query I rowsort
SELECT ALL - 63 * + 17 AS col2
----
-1071

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

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

query I rowsort
SELECT + + 88 + 81
----
169

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

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

query I rowsort
SELECT + + 39 + COALESCE ( 0, + - 31 ) AS col0
----
39

query I rowsort
SELECT - + 33 - - 11
----
-22

onlyif mysql # DIV for integer division: 
query I rowsort label-6390
SELECT ALL - + 27 DIV + 22 + + 88
----
87

skipif mysql # not compatible
query I rowsort label-6390
SELECT ALL - + 27 / + 22 + + 88
----
87

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

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

skipif mysql # not compatible
query I rowsort label-6392
SELECT + 56 / 38 * + - 86 + + COUNT ( * )
----
-85

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6394
SELECT + 30 + + 80 DIV - 13 + + MAX( - - 35 )
----
59

skipif mysql # not compatible
query I rowsort label-6394
SELECT + 30 + + 80 / - 13 + + MAX ( - - 35 )
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-6395
SELECT + 42 + + - 79 DIV - 15
----
47

skipif mysql # not compatible
query I rowsort label-6395
SELECT + 42 + + - 79 / - 15
----
47

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6397
SELECT - ( - NULLIF ( - 6, CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) / 57 ) ) * 58
----
-348

skipif mysql # not compatible
query I rowsort label-6397
SELECT - ( - NULLIF ( - 6, CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) / 57 ) ) * 58
----
-348

onlyif mysql # aggregate syntax: 
query II rowsort label-6398
SELECT ( COUNT( * ) ), - 26 col0
----
1
-26

skipif mysql # not compatible
query II rowsort label-6398
SELECT ( COUNT ( * ) ), - 26 col0
----
1
-26

query I rowsort
SELECT DISTINCT + 57 * 15
----
855

query I rowsort
SELECT ALL + 40 * + 23 col0
----
920

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6401
SELECT + ( + COUNT( * ) ) * NULLIF ( 41, - CAST( NULL AS SIGNED ) ) * + SUM( DISTINCT - 10 )
----
-410

skipif mysql # not compatible
query I rowsort label-6401
SELECT + ( + COUNT ( * ) ) * NULLIF ( 41, - CAST ( NULL AS INTEGER ) ) * + SUM ( DISTINCT - 10 )
----
-410

query I rowsort
SELECT - 89 - - 77 * + + 32
----
2375

query I rowsort
SELECT DISTINCT 94 * + 57 col0
----
5358

onlyif mysql # aggregate syntax: 
query I rowsort label-6404
SELECT ALL + COUNT( * ) * + 46 * 79 * - + COUNT( DISTINCT + 77 ) * ( ( - + COUNT( * ) ) ) + - 39 * COUNT( * ) AS col1
----
3595

skipif mysql # not compatible
query I rowsort label-6404
SELECT ALL + COUNT ( * ) * + 46 * 79 * - + COUNT ( DISTINCT + 77 ) * ( ( - + COUNT ( * ) ) ) + - 39 * COUNT ( * ) AS col1
----
3595

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6405
SELECT - CASE 41 WHEN + 0 * + CAST( NULL AS SIGNED ) * + - 20 THEN 52 WHEN + 9 * + 51 THEN + 99 ELSE + - 83 END + - SUM( DISTINCT - + 57 ) col0, 19 * - 26 col1
----
140
-494

skipif mysql # not compatible
query II rowsort label-6405
SELECT - CASE 41 WHEN + 0 * + CAST ( NULL AS INTEGER ) * + - 20 THEN 52 WHEN + 9 * + 51 THEN + 99 ELSE + - 83 END + - SUM ( DISTINCT - + 57 ) col0, 19 * - 26 col1
----
140
-494

onlyif mysql # aggregate syntax: 
query I rowsort label-6406
SELECT DISTINCT + CASE 1 WHEN - 45 THEN - + COUNT( * ) END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6406
SELECT DISTINCT + CASE 1 WHEN - 45 THEN - + COUNT ( * ) END col2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6407
SELECT DISTINCT CAST( NULL AS DECIMAL ) * - 34 + + 95 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6407
SELECT DISTINCT CAST ( NULL AS REAL ) * - 34 + + 95 AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-6408
SELECT ALL - COUNT ( ALL + 97 ) / - - 77 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6409
SELECT + NULLIF ( - - MIN( DISTINCT + 3 ), + 67 * - CAST( NULL AS SIGNED ) / 3 * + - COALESCE ( - 26, - CASE - - 67 WHEN COUNT( ALL + 46 ) THEN COUNT( - 73 ) END, + ( 48 ) + 51 - + COUNT( * ) * - 64 * + 22 ) * - COUNT( * ) ) + + 24 * 47 AS col2
----
1131

skipif mysql # not compatible
query I rowsort label-6409
SELECT + NULLIF ( - - MIN ( DISTINCT + 3 ), + 67 * - CAST ( NULL AS INTEGER ) / 3 * + - COALESCE ( - 26, - CASE - - 67 WHEN COUNT ( ALL + 46 ) THEN COUNT ( - 73 ) END, + ( 48 ) + 51 - + COUNT ( * ) * - 64 * + 22 ) * - COUNT ( * ) ) + + 24 * 47 AS col2
----
1131

onlyif mysql # aggregate syntax: 
query I rowsort label-6410
SELECT NULLIF ( 86, - COUNT( * ) )
----
86

skipif mysql # not compatible
query I rowsort label-6410
SELECT NULLIF ( 86, - COUNT ( * ) )
----
86

query II rowsort
SELECT - 5 + - 87, 85 + 47 - - 93 * + - 83 * + 98 * + 77 AS col2
----
-92
-58247442

onlyif mysql # aggregate syntax: 
query I rowsort label-6412
SELECT - 11 - ( 87 ) - - 19 + - MIN( - 70 ) - + - SUM( + 0 )
----
-9

skipif mysql # not compatible
query I rowsort label-6412
SELECT - 11 - ( 87 ) - - 19 + - MIN ( - 70 ) - + - SUM ( + 0 )
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-6413
SELECT ALL - 95 DIV + ( - 21 ) AS col0
----
4

skipif mysql # not compatible
query I rowsort label-6413
SELECT ALL - 95 / + ( - 21 ) AS col0
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6414
SELECT + 9 * 23 * - 8 * + COALESCE ( - 83, + ( COUNT( * ) ) ) * 5 + CASE - + COUNT( * ) WHEN + CAST( NULL AS SIGNED ) THEN NULL WHEN - 76 THEN - + 71 + - - 36 + 88 DIV - 37 * + - 33 ELSE 49 END + + 74 * + 90
----
693949

skipif mysql # not compatible
query I rowsort label-6414
SELECT + 9 * 23 * - 8 * + COALESCE ( - 83, + ( COUNT ( * ) ) ) * 5 + CASE - + COUNT ( * ) WHEN + CAST ( NULL AS INTEGER ) THEN NULL WHEN - 76 THEN - + 71 + - - 36 + 88 / - 37 * + - 33 ELSE 49 END + + 74 * + 90
----
693949

query I rowsort
SELECT - 87 - - - 84 AS col1
----
-171

onlyif mysql # aggregate syntax: 
query I rowsort label-6416
SELECT 59 + - + MAX( DISTINCT + 81 ) + 82 AS col1
----
60

skipif mysql # not compatible
query I rowsort label-6416
SELECT 59 + - + MAX ( DISTINCT + 81 ) + 82 AS col1
----
60

query I rowsort
SELECT + 71 + + + 84 * + 99 AS col1
----
8387

query II rowsort
SELECT ALL - ( - + 65 ) AS col2, 9
----
65
9

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

skipif mysql # not compatible
query I rowsort label-6419
SELECT ALL MAX ( 60 )
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6420
SELECT ALL + CASE - 43 WHEN - - 79 THEN + MAX( DISTINCT + CAST( 37 AS SIGNED ) ) / CASE - AVG ( + 95 ) WHEN + - 2 * 40 THEN NULL WHEN MAX( DISTINCT + 50 ) + + + 96 THEN 72 / + NULLIF ( + 38, 40 ) + - 1 ELSE + 7 + - 49 / - 68 END WHEN - ( 11 ) THEN CASE WHEN NULL BETWEEN ( 59 ) AND + 59 + 60 THEN NULL WHEN ( + AVG ( + 32 ) ) NOT IN ( COUNT( * ) ) THEN NULL ELSE - 13 END * 92 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6420
SELECT ALL + CASE - 43 WHEN - - 79 THEN + MAX ( DISTINCT + CAST ( 37 AS INTEGER ) ) / CASE - AVG ( + 95 ) WHEN + - 2 * 40 THEN NULL WHEN MAX ( DISTINCT + 50 ) + + + 96 THEN 72 / + NULLIF ( + 38, 40 ) + - 1 ELSE + 7 + - 49 / - 68 END WHEN - ( 11 ) THEN CASE WHEN NULL BETWEEN ( 59 ) AND + 59 + 60 THEN NULL WHEN ( + AVG ( + 32 ) ) NOT IN ( COUNT ( * ) ) THEN NULL ELSE - 13 END * 92 ELSE NULL END
----
NULL

query I rowsort
SELECT ( + 62 ) + + - 11 AS col2
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6422
SELECT ( CAST( + 87 AS SIGNED ) ) AS col2
----
87

skipif mysql # not compatible
query I rowsort label-6422
SELECT ( CAST ( + 87 AS INTEGER ) ) AS col2
----
87

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

skipif mysql # not compatible
query I rowsort label-6423
SELECT DISTINCT - - CAST ( + 66 AS INTEGER ) - + 57
----
9

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6425
SELECT 8 * + - 45 * - - 64 - COUNT( * ) * + 3 AS col0
----
-23043

skipif mysql # not compatible
query I rowsort label-6425
SELECT 8 * + - 45 * - - 64 - COUNT ( * ) * + 3 AS col0
----
-23043

query I rowsort
SELECT DISTINCT - + 58 - - + 31 + + 48 - - - CASE + 24 WHEN - - 97 THEN NULL ELSE - 72 END * - 14 * 46
----
-46347

onlyif mysql # aggregate syntax: 
query I rowsort label-6427
SELECT DISTINCT COUNT( * ) - 51 + - 41
----
-91

skipif mysql # not compatible
query I rowsort label-6427
SELECT DISTINCT COUNT ( * ) - 51 + - 41
----
-91

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6429
SELECT 80 DIV 94 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6429
SELECT 80 / 94 AS col2
----
0

query I rowsort
SELECT 51 * - 78 col1
----
-3978

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6431
SELECT CAST( - - 93 AS SIGNED ) + + COUNT( ALL ( + + 28 ) )
----
94

skipif mysql # not compatible
query I rowsort label-6431
SELECT CAST ( - - 93 AS INTEGER ) + + COUNT ( ALL ( + + 28 ) )
----
94

query II rowsort
SELECT DISTINCT - 12 AS col1, + 81 AS col0
----
-12
81

query II rowsort
SELECT ALL - 15 AS col1, 58 AS col0
----
-15
58

query I rowsort
SELECT ALL 47 + 34 AS col2
----
81

query I rowsort
SELECT ALL - 8 * + 59
----
-472

query I rowsort
SELECT ALL 23 + - 37 AS col0
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6437
SELECT DISTINCT 82 + + 16 + - + 74 * - - COUNT( * ) + 47 * COALESCE ( + - 88, - ( + - 16 ) * COUNT( * ) * 83 - - CASE - 24 WHEN - 82 * 94 * + CAST( NULL AS SIGNED ) * - 5 * + - 21 * 47 - - 12 + 5 THEN 92 DIV ( 73 ) ELSE NULL END - + COUNT( * ) ) AS col2
----
-4112

skipif mysql # not compatible
query I rowsort label-6437
SELECT DISTINCT 82 + + 16 + - + 74 * - - COUNT ( * ) + 47 * COALESCE ( + - 88, - ( + - 16 ) * COUNT ( * ) * 83 - - CASE - 24 WHEN - 82 * 94 * + CAST ( NULL AS INTEGER ) * - 5 * + - 21 * 47 - - 12 + 5 THEN 92 / ( 73 ) ELSE NULL END - + COUNT ( * ) ) AS col2
----
-4112

query I rowsort
SELECT ALL 76 * + 54 AS col1
----
4104

query I rowsort
SELECT 30 + 89 AS col0
----
119

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6441
SELECT ALL 40 * COALESCE ( COUNT( * ), 16 )
----
40

skipif mysql # not compatible
query I rowsort label-6441
SELECT ALL 40 * COALESCE ( COUNT ( * ), 16 )
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-6442
SELECT MIN( ( + ( - 29 ) ) ) * - + COUNT( * ) * + 22 AS col2
----
638

skipif mysql # not compatible
query I rowsort label-6442
SELECT MIN ( ( + ( - 29 ) ) ) * - + COUNT ( * ) * + 22 AS col2
----
638

query II rowsort
SELECT DISTINCT + 61 AS col1, + 53 AS col1
----
61
53

onlyif mysql # aggregate syntax: 
query II rowsort label-6444
SELECT ALL 39 - + + ( + + MAX( + + 38 ) ) AS col1, + 42 col1
----
1
42

skipif mysql # not compatible
query II rowsort label-6444
SELECT ALL 39 - + + ( + + MAX ( + + 38 ) ) AS col1, + 42 col1
----
1
42

onlyif mysql # DIV for integer division: 
query I rowsort label-6445
SELECT ALL - 63 DIV + 93 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6445
SELECT ALL - 63 / + 93 AS col1
----
0

query II rowsort
SELECT 53 - - + 73 + + 37 col1, + 79
----
163
79

query II rowsort
SELECT - 35 - + - 95 * + 10, 99 col2
----
915
99

query I rowsort
SELECT 43 * 83 + + + ( - 44 ) AS col0
----
3525

onlyif mysql # DIV for integer division: 
query I rowsort label-6449
SELECT ( + 94 ) DIV - - 89 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6449
SELECT ( + 94 ) / - - 89 AS col0
----
1

query I rowsort
SELECT DISTINCT + ( - 18 ) * 19 col1
----
-342

onlyif mysql # aggregate syntax: 
query II rowsort label-6451
SELECT ALL - 11 * + CASE - 43 WHEN - 74 - + 1 THEN NULL WHEN - 42 * - - 38 * - 45 + + 1 THEN + + 21 * + 35 ELSE - 26 * 6 END col0, 34 + + 88 * + + 44 + + + 13 * + 79 * - COUNT( * )
----
1716
2879

skipif mysql # not compatible
query II rowsort label-6451
SELECT ALL - 11 * + CASE - 43 WHEN - 74 - + 1 THEN NULL WHEN - 42 * - - 38 * - 45 + + 1 THEN + + 21 * + 35 ELSE - 26 * 6 END col0, 34 + + 88 * + + 44 + + + 13 * + 79 * - COUNT ( * )
----
1716
2879

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

skipif mysql # not compatible
query I rowsort label-6452
SELECT COUNT ( * ) - - - 59 + - 69 / - 45
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6453
SELECT ALL - CASE COUNT( - + 28 ) WHEN - COUNT( * ) THEN + 54 * + - MAX( 88 ) * - CAST( NULL AS SIGNED ) END AS col1, 53 AS col2
----
NULL
53

skipif mysql # not compatible
query II rowsort label-6453
SELECT ALL - CASE COUNT ( - + 28 ) WHEN - COUNT ( * ) THEN + 54 * + - MAX ( 88 ) * - CAST ( NULL AS INTEGER ) END AS col1, 53 AS col2
----
NULL
53

query II rowsort
SELECT + ( - - 61 ) - 12 AS col1, - ( 53 ) + + + 78 AS col0
----
49
25

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6456
SELECT COALESCE ( - 25, - - 57 * - 81 * - - 26 + + + CAST( NULL AS SIGNED ) ) - + 65 * + 36 * 60 AS col1
----
-140425

skipif mysql # not compatible
query I rowsort label-6456
SELECT COALESCE ( - 25, - - 57 * - 81 * - - 26 + + + CAST ( NULL AS INTEGER ) ) - + 65 * + 36 * 60 AS col1
----
-140425

onlyif mysql # aggregate syntax: 
query I rowsort label-6457
SELECT ALL - + SUM( + + 79 ) * 10 + + + 95 - - MIN( DISTINCT + ( + - 92 ) ) * + - 63 * COUNT( ( - 64 ) ) * - 98 * - ( 95 )
----
53960065

skipif mysql # not compatible
query I rowsort label-6457
SELECT ALL - + SUM ( + + 79 ) * 10 + + + 95 - - MIN ( DISTINCT + ( + - 92 ) ) * + - 63 * COUNT ( ( - 64 ) ) * - 98 * - ( 95 )
----
53960065

query I rowsort
SELECT 45 * - 91
----
-4095

query I rowsort
SELECT - 51 + - 68 + - 25 * - 29 AS col2
----
606

query II rowsort
SELECT ALL 42, + 42
----
42
42

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

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

query I rowsort
SELECT 60 * - + 40
----
-2400

query I rowsort
SELECT DISTINCT - 30 + + 21
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6464
SELECT ALL 65 * + CAST( NULL AS SIGNED ) + + COALESCE ( - ( + CAST( NULL AS SIGNED ) ), + 99, - 71 * 88 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6464
SELECT ALL 65 * + CAST ( NULL AS INTEGER ) + + COALESCE ( - ( + CAST ( NULL AS INTEGER ) ), + 99, - 71 * 88 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6465
SELECT + 84 DIV + 85 + - ( - 99 ) AS col2
----
99

skipif mysql # not compatible
query I rowsort label-6465
SELECT + 84 / + 85 + - ( - 99 ) AS col2
----
99

query I rowsort
SELECT DISTINCT 65 * - 36 + - 68 + - 27 * 43 * - 21
----
21973

query I rowsort
SELECT ALL 2 * 20 + 24 AS col1
----
64

query I rowsort
SELECT DISTINCT 41 * + + 0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6469
SELECT + SUM( - 11 ) DIV + - 80 * + 77 + - 84
----
-84

skipif mysql # not compatible
query I rowsort label-6469
SELECT + SUM ( - 11 ) / + - 80 * + 77 + - 84
----
-84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6470
SELECT + 88 DIV COUNT( * ) * 45 AS col1
----
3960

skipif mysql # not compatible
query I rowsort label-6470
SELECT + 88 / COUNT ( * ) * 45 AS col1
----
3960

onlyif mysql # aggregate syntax: 
query II rowsort label-6471
SELECT DISTINCT - COUNT( * ) * + 16, + 7 + + + 10 + + - NULLIF ( - - 93, - 91 * - + 48 - + + 75 * - + 68 - - MIN( - 84 ) * 62 ) AS col0
----
-16
-76

skipif mysql # not compatible
query II rowsort label-6471
SELECT DISTINCT - COUNT ( * ) * + 16, + 7 + + + 10 + + - NULLIF ( - - 93, - 91 * - + 48 - + + 75 * - + 68 - - MIN ( - 84 ) * 62 ) AS col0
----
-16
-76

query I rowsort
SELECT + 52 + - 52 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6473
SELECT DISTINCT ( - 83 ) DIV COUNT( * ) AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-6473
SELECT DISTINCT ( - 83 ) / COUNT ( * ) AS col0
----
-83

query I rowsort
SELECT + - 76 + 86
----
10

query I rowsort
SELECT - + 16 * - 2 - - 68
----
100

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-6476
SELECT + 25 * - + 6 * - COUNT( * ) * - - 33 + + - CASE + 49 WHEN - 49 THEN + - 30 * - - 10 END * + 25 * + 48 + - - COUNT( - ( - - 49 ) ) + + - 62 AS col2, + 15 DIV + 41, 98 + + + 51 + - 43 AS col2
----
NULL
0
106

skipif mysql # not compatible
query III rowsort label-6476
SELECT + 25 * - + 6 * - COUNT ( * ) * - - 33 + + - CASE + 49 WHEN - 49 THEN + - 30 * - - 10 END * + 25 * + 48 + - - COUNT ( - ( - - 49 ) ) + + - 62 AS col2, + 15 / + 41, 98 + + + 51 + - 43 AS col2
----
NULL
0
106

query I rowsort
SELECT - + 95 - - COALESCE ( 6, 93 )
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-6478
SELECT - 37 * - COUNT( DISTINCT 83 ) + - 83 + - 20 + + - 57 + + 74 * + 95 AS col2
----
6907

skipif mysql # not compatible
query I rowsort label-6478
SELECT - 37 * - COUNT ( DISTINCT 83 ) + - 83 + - 20 + + - 57 + + 74 * + 95 AS col2
----
6907

query I rowsort
SELECT - - 21 + - + 82 col1
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-6480
SELECT + + MIN( ALL - 7 ) * + + 49
----
-343

skipif mysql # not compatible
query I rowsort label-6480
SELECT + + MIN ( ALL - 7 ) * + + 49
----
-343

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

skipif mysql # not compatible
query I rowsort label-6481
SELECT ALL + - COUNT ( * ) * + 77 - - COUNT ( * ) AS col2
----
-76

query I rowsort
SELECT + 56 + + - 35 AS col0
----
21

query I rowsort
SELECT DISTINCT - 13 * + NULLIF ( - ( + - ( + + 81 ) ), 15 ) AS col2
----
-1053

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6485
SELECT - - 69 DIV 10 + - 56 AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-6485
SELECT - - 69 / 10 + - 56 AS col0
----
-50

query II rowsort
SELECT - 96 + + 37 AS col0, + 31 AS col0
----
-59
31

query I rowsort
SELECT ALL + 30 + - 80 * + - 61
----
4910

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6489
SELECT - - 19 + - - COUNT( * ) * - + 40
----
-21

skipif mysql # not compatible
query I rowsort label-6489
SELECT - - 19 + - - COUNT ( * ) * - + 40
----
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-6490
SELECT + + NULLIF ( - - 61, NULLIF ( - 61, 47 ) ) DIV 96 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6490
SELECT + + NULLIF ( - - 61, NULLIF ( - 61, 47 ) ) / 96 AS col1
----
0

query I rowsort
SELECT - + 44 + + - 79 * - 78 AS col1
----
6118

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6492
SELECT ALL 78 + + CAST( NULL AS SIGNED ) + - 49 AS col2, - 90 * 71 AS col0
----
NULL
-6390

skipif mysql # not compatible
query II rowsort label-6492
SELECT ALL 78 + + CAST ( NULL AS INTEGER ) + - 49 AS col2, - 90 * 71 AS col0
----
NULL
-6390

onlyif mysql # aggregate syntax: 
query I rowsort label-6493
SELECT ALL + 81 + + 83 * - + NULLIF ( + SUM( ALL 94 ), 28 ) * + 42
----
-327603

skipif mysql # not compatible
query I rowsort label-6493
SELECT ALL + 81 + + 83 * - + NULLIF ( + SUM ( ALL 94 ), 28 ) * + 42
----
-327603

query I rowsort
SELECT - ( + 37 ) * + 35 col0
----
-1295

onlyif mysql # DIV for integer division: 
query I rowsort label-6495
SELECT ALL 54 DIV - 94
----
0

skipif mysql # not compatible
query I rowsort label-6495
SELECT ALL 54 / - 94
----
0

query I rowsort
SELECT DISTINCT + 99 + + - 34 AS col2
----
65

query I rowsort
SELECT ALL - 8 * - 55 AS col0
----
440

query I rowsort
SELECT DISTINCT - 27 * + 5 AS col0
----
-135

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

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

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

query I rowsort
SELECT ( - ( - - 79 ) )
----
-79

query I rowsort
SELECT ALL + 62 * + + 16 - 80 * + 36
----
-1888

query I rowsort
SELECT ( - NULLIF ( - NULLIF ( 15, + 24 + + 76 ), - 72 ) )
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-6504
SELECT ALL + 73 DIV - + 76 * COALESCE ( 33, - 2 DIV + 13 + - + 20 )
----
0

skipif mysql # not compatible
query I rowsort label-6504
SELECT ALL + 73 / - + 76 * COALESCE ( 33, - 2 / + 13 + - + 20 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6505
SELECT ALL 72 * 43 * COUNT( * ) - + + 20 + - ( - + 25 ) + COUNT( * ) * - - 33 - SUM( DISTINCT - 44 ) AS col1, 13
----
3178
13

skipif mysql # not compatible
query II rowsort label-6505
SELECT ALL 72 * 43 * COUNT ( * ) - + + 20 + - ( - + 25 ) + COUNT ( * ) * - - 33 - SUM ( DISTINCT - 44 ) AS col1, 13
----
3178
13

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6507
SELECT + + 54 * MIN( 30 ) + - 21
----
1599

skipif mysql # not compatible
query I rowsort label-6507
SELECT + + 54 * MIN ( 30 ) + - 21
----
1599

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6509
SELECT + 87 + - 63 + + - 55 - + + 45 * + - 91 * - - SUM( + - 94 ) + 6 AS col1, 40 AS col2
----
-384955
40

skipif mysql # not compatible
query II rowsort label-6509
SELECT + 87 + - 63 + + - 55 - + + 45 * + - 91 * - - SUM ( + - 94 ) + 6 AS col1, 40 AS col2
----
-384955
40

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6511
SELECT - 26 * COUNT( * ) * 96 AS col0
----
-2496

skipif mysql # not compatible
query I rowsort label-6511
SELECT - 26 * COUNT ( * ) * 96 AS col0
----
-2496

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6512
SELECT DISTINCT - COALESCE ( COUNT( * ), 25 + - COUNT( * ) - - 4 - + 70 DIV + COUNT( * ) + SUM( ALL + 34 ) ) * - 10 AS col2
----
10

skipif mysql # not compatible
query I rowsort label-6512
SELECT DISTINCT - COALESCE ( COUNT ( * ), 25 + - COUNT ( * ) - - 4 - + 70 / + COUNT ( * ) + SUM ( ALL + 34 ) ) * - 10 AS col2
----
10

query I rowsort
SELECT ALL + 75 * 10
----
750

onlyif mysql # DIV for integer division: 
query I rowsort label-6514
SELECT ALL 97 DIV - 93
----
-1

skipif mysql # not compatible
query I rowsort label-6514
SELECT ALL 97 / - 93
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-6515
SELECT - + 3 - - ( + 70 ) - - 56 DIV 60
----
67

skipif mysql # not compatible
query I rowsort label-6515
SELECT - + 3 - - ( + 70 ) - - 56 / 60
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-6516
SELECT - COUNT( DISTINCT 73 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6516
SELECT - COUNT ( DISTINCT 73 ) AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6517
SELECT + - CAST( NULL AS SIGNED ) * + 26 / + COUNT( * ) + - CAST( + 54 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6517
SELECT + - CAST ( NULL AS INTEGER ) * + 26 / + COUNT ( * ) + - CAST ( + 54 AS INTEGER )
----
NULL

query I rowsort
SELECT - - 89 * + 45 + - - 7 * - NULLIF ( - 5, + + 94 + - 43 * - - NULLIF ( + 33, + 65 ) ) - - 87
----
4127

query I rowsort
SELECT + + 54 + + 9 AS col2
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6520
SELECT + - MAX( DISTINCT + - 49 ) + - CAST( + - 53 AS SIGNED ) + - ( - 58 ) * - COUNT( * ) * - NULLIF ( - 12, 43 ) AS col2
----
-594

skipif mysql # not compatible
query I rowsort label-6520
SELECT + - MAX ( DISTINCT + - 49 ) + - CAST ( + - 53 AS INTEGER ) + - ( - 58 ) * - COUNT ( * ) * - NULLIF ( - 12, 43 ) AS col2
----
-594

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6521
SELECT - 17 * - - CAST( - 36 AS SIGNED ) * + 38
----
23256

skipif mysql # not compatible
query I rowsort label-6521
SELECT - 17 * - - CAST ( - 36 AS INTEGER ) * + 38
----
23256

onlyif mysql # aggregate syntax: 
query I rowsort label-6522
SELECT DISTINCT CASE WHEN NOT 91 IS NOT NULL THEN NULL WHEN NULL <= + COUNT( * ) + + 14 * COUNT( * ) THEN 84 * + + 22 + CASE 39 WHEN 63 / + SUM( DISTINCT + 19 ) + + NULLIF ( + 1, - COUNT( * ) ) - + 46 + - 30 + ( 34 ) + - 87 THEN 36 * 49 WHEN MIN( - 89 ) / 32 THEN NULL END + 87 ELSE - 25 * + 73 END AS col1
----
-1825

skipif mysql # not compatible
query I rowsort label-6522
SELECT DISTINCT CASE WHEN NOT 91 IS NOT NULL THEN NULL WHEN NULL <= + COUNT ( * ) + + 14 * COUNT ( * ) THEN 84 * + + 22 + CASE 39 WHEN 63 / + SUM ( DISTINCT + 19 ) + + NULLIF ( + 1, - COUNT ( * ) ) - + 46 + - 30 + ( 34 ) + - 87 THEN 36 * 49 WHEN MIN ( - 89 ) / 32 THEN NULL END + 87 ELSE - 25 * + 73 END AS col1
----
-1825

query I rowsort
SELECT ALL ( - + NULLIF ( - 65, 67 ) ) + + ( 80 )
----
145

query I rowsort
SELECT + 70 - - - 92 AS col2
----
-22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6525
SELECT ALL COALESCE ( 97, COUNT( * ) DIV - 68 ) AS col2
----
97

skipif mysql # not compatible
query I rowsort label-6525
SELECT ALL COALESCE ( 97, COUNT ( * ) / - 68 ) AS col2
----
97

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

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

query I rowsort
SELECT ALL 30 * 39 AS col0
----
1170

onlyif mysql # aggregate syntax: 
query II rowsort label-6528
SELECT + COUNT( * ) + - 80 + CASE - 76 WHEN - 90 - 81 + - 59 / - 33 + + 15 THEN NULL ELSE - + 95 * - + 75 + COUNT( DISTINCT + 91 ) END * + - 8 AS col2, - 55 AS col2
----
-57087
-55

skipif mysql # not compatible
query II rowsort label-6528
SELECT + COUNT ( * ) + - 80 + CASE - 76 WHEN - 90 - 81 + - 59 / - 33 + + 15 THEN NULL ELSE - + 95 * - + 75 + COUNT ( DISTINCT + 91 ) END * + - 8 AS col2, - 55 AS col2
----
-57087
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-6529
SELECT DISTINCT MAX( DISTINCT + - 23 ) AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-6529
SELECT DISTINCT MAX ( DISTINCT + - 23 ) AS col2
----
-23

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

query I rowsort
SELECT 24 - - 56 * 25
----
1424

query II rowsort
SELECT - 52, 21 AS col2
----
-52
21

query I rowsort
SELECT 4 * - - 61 AS col0
----
244

onlyif mysql # aggregate syntax: 
query I rowsort label-6534
SELECT ALL + MIN( ALL - 54 ) * 77
----
-4158

skipif mysql # not compatible
query I rowsort label-6534
SELECT ALL + MIN ( ALL - 54 ) * 77
----
-4158

query I rowsort
SELECT DISTINCT - 23 * - 17
----
391

onlyif mysql # DIV for integer division: 
query I rowsort label-6536
SELECT 87 DIV + 47 + 19 AS col0
----
20

skipif mysql # not compatible
query I rowsort label-6536
SELECT 87 / + 47 + 19 AS col0
----
20

query I rowsort
SELECT 30 * 87 AS col0
----
2610

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

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

query I rowsort
SELECT ALL + 78 * - 52 AS col1
----
-4056

query I rowsort
SELECT - 5 * - 64 + + 76 col2
----
396

query II rowsort
SELECT 78 * - 55 * + ( 1 ) + - ( + 15 ) AS col0, - 3 * 57
----
-4305
-171

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

query I rowsort
SELECT 51 + + 15
----
66

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

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

query II rowsort
SELECT 23 AS col0, 32
----
23
32

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6547
SELECT ALL + - 66 + + COUNT( * ) col2, - 34 * 47
----
-65
-1598

skipif mysql # not compatible
query II rowsort label-6547
SELECT ALL + - 66 + + COUNT ( * ) col2, - 34 * 47
----
-65
-1598

onlyif mysql # aggregate syntax: 
query II rowsort label-6548
SELECT ALL - - COUNT( * ) col1, 96 * + 26 AS col1
----
1
2496

skipif mysql # not compatible
query II rowsort label-6548
SELECT ALL - - COUNT ( * ) col1, 96 * + 26 AS col1
----
1
2496

onlyif mysql # aggregate syntax: 
query I rowsort label-6549
SELECT 44 * + COUNT( * ) + - 26
----
18

skipif mysql # not compatible
query I rowsort label-6549
SELECT 44 * + COUNT ( * ) + - 26
----
18

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6551
SELECT - COALESCE ( - 25, + 44 ) + - - 19 DIV - 58 AS col0
----
25

skipif mysql # not compatible
query I rowsort label-6551
SELECT - COALESCE ( - 25, + 44 ) + - - 19 / - 58 AS col0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-6552
SELECT ALL + 88 + - + CASE + AVG ( ALL - + 71 ) WHEN COUNT( * ) THEN + MIN( ALL - 74 ) * - 41 - - 78 + - 28 / 63 / + + 38 ELSE NULL END / 36 * - 88 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6552
SELECT ALL + 88 + - + CASE + AVG ( ALL - + 71 ) WHEN COUNT ( * ) THEN + MIN ( ALL - 74 ) * - 41 - - 78 + - 28 / 63 / + + 38 ELSE NULL END / 36 * - 88 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6553
SELECT + 78 * 62 + - 54 + - 99 + + 11 * + MAX( DISTINCT + - 8 ) col1
----
4595

skipif mysql # not compatible
query I rowsort label-6553
SELECT + 78 * 62 + - 54 + - 99 + + 11 * + MAX ( DISTINCT + - 8 ) col1
----
4595

onlyif mysql # aggregate syntax: 
query II rowsort label-6554
SELECT - - COUNT( * ), NULLIF ( + - 76, - + 57 ) AS col0
----
1
-76

skipif mysql # not compatible
query II rowsort label-6554
SELECT - - COUNT ( * ), NULLIF ( + - 76, - + 57 ) AS col0
----
1
-76

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

skipif mysql # not compatible
query I rowsort label-6555
SELECT - COUNT ( * ) / CAST ( NULL AS INTEGER )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-6556
SELECT 77 * + CAST ( NULL AS INTEGER ) + + - 93
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6557
SELECT DISTINCT + COUNT( ALL - 54 )
----
1

skipif mysql # not compatible
query I rowsort label-6557
SELECT DISTINCT + COUNT ( ALL - 54 )
----
1

query I rowsort
SELECT DISTINCT - + 32 + - 47 AS col2
----
-79

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6559
SELECT ALL - 47 + + 55 + - 94 + + 33 / + + COUNT( * ) / - - CAST( - CASE - 89 WHEN - 59 THEN 1 WHEN + + SUM( - - 57 ) THEN NULL END AS DECIMAL ) * + 0 / - + NULLIF ( + - 76, - - NULLIF ( + - CASE 50 WHEN 40 THEN + 8 * - COUNT( * ) WHEN + 1 * 53 THEN - 45 + 50 * 16 ELSE NULL END, 46 ) ) * + 80 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6559
SELECT ALL - 47 + + 55 + - 94 + + 33 / + + COUNT ( * ) / - - CAST ( - CASE - 89 WHEN - 59 THEN 1 WHEN + + SUM ( - - 57 ) THEN NULL END AS REAL ) * + 0 / - + NULLIF ( + - 76, - - NULLIF ( + - CASE 50 WHEN 40 THEN + 8 * - COUNT ( * ) WHEN + 1 * 53 THEN - 45 + 50 * 16 ELSE NULL END, 46 ) ) * + 80 AS col2
----
NULL

query I rowsort
SELECT 69 + - ( 54 ) + + 59
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-6561
SELECT ALL - 36 + + 22 - + MIN( 2 ) + 3 * + NULLIF ( - SUM( DISTINCT - 66 ), + + AVG ( + + 49 ) * - 30 * 21 ) + - 26 AS col1
----
156

skipif mysql # not compatible
query I rowsort label-6561
SELECT ALL - 36 + + 22 - + MIN ( 2 ) + 3 * + NULLIF ( - SUM ( DISTINCT - 66 ), + + AVG ( + + 49 ) * - 30 * 21 ) + - 26 AS col1
----
156

query I rowsort
SELECT ALL 83 - + + 29 * - - 3
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-6563
SELECT 85 + COUNT( * ) + - 16 * 70
----
-1034

skipif mysql # not compatible
query I rowsort label-6563
SELECT 85 + COUNT ( * ) + - 16 * 70
----
-1034

query I rowsort
SELECT DISTINCT 18 - + 3 + + 23 AS col2
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6565
SELECT ALL CASE - + 80 WHEN + 52 THEN + CAST( NULL AS SIGNED ) + - 16 WHEN 25 * COUNT( * ) * + ( - - 69 ) THEN - 85 * + ( - 40 ) WHEN ( + MIN( DISTINCT + - 31 ) ) + 55 * + 91 THEN NULL ELSE 63 END * - + 0 * - + MAX( ALL 23 ) / 1 + ( 47 - CAST( NULL AS SIGNED ) ) + - 64 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6565
SELECT ALL CASE - + 80 WHEN + 52 THEN + CAST ( NULL AS INTEGER ) + - 16 WHEN 25 * COUNT ( * ) * + ( - - 69 ) THEN - 85 * + ( - 40 ) WHEN ( + MIN ( DISTINCT + - 31 ) ) + 55 * + 91 THEN NULL ELSE 63 END * - + 0 * - + MAX ( ALL 23 ) / 1 + ( 47 - CAST ( NULL AS INTEGER ) ) + - 64 AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6567
SELECT DISTINCT - ( ( - 84 ) ) - - - 58 * + 91 * COUNT( * ) * + - 25 + + - 40 AS col1
----
131994

skipif mysql # not compatible
query I rowsort label-6567
SELECT DISTINCT - ( ( - 84 ) ) - - - 58 * + 91 * COUNT ( * ) * + - 25 + + - 40 AS col1
----
131994

query II rowsort
SELECT DISTINCT 76 * - - 62 AS col2, - 36 col0
----
4712
-36

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6569
SELECT 4 DIV - - CAST( + 88 AS SIGNED ) * 35
----
0

skipif mysql # not compatible
query I rowsort label-6569
SELECT 4 / - - CAST ( + 88 AS INTEGER ) * 35
----
0

query I rowsort
SELECT 39 * 25 AS col1
----
975

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6572
SELECT SUM( + - 88 ), 81 + + 30 * + 52 AS col0
----
-88
1641

skipif mysql # not compatible
query II rowsort label-6572
SELECT SUM ( + - 88 ), 81 + + 30 * + 52 AS col0
----
-88
1641

onlyif mysql # DIV for integer division: 
query I rowsort label-6573
SELECT ALL 63 DIV 85
----
0

skipif mysql # not compatible
query I rowsort label-6573
SELECT ALL 63 / 85
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6574
SELECT 65 + + + COUNT( * ) * - - NULLIF ( + 80, + + 0 + + 39 + + - MAX( - 14 ) ) * - MAX( - - 67 ) AS col0
----
-5295

skipif mysql # not compatible
query I rowsort label-6574
SELECT 65 + + + COUNT ( * ) * - - NULLIF ( + 80, + + 0 + + 39 + + - MAX ( - 14 ) ) * - MAX ( - - 67 ) AS col0
----
-5295

query II rowsort
SELECT ALL + + 14 + CASE ( - 96 ) WHEN - ( + 68 ) * + 33 * - 36 + + 31 THEN - 11 END * COALESCE ( - + 41, + - 99 ) AS col0, 63 + 82 AS col2
----
NULL
145

onlyif mysql # aggregate syntax: 
query II rowsort label-6576
SELECT + - ( 95 ), - CASE - COALESCE ( 84, + - 46 + - 76, 94 - - - 28 ) WHEN - 21 THEN NULL WHEN + + COUNT( * ) THEN NULL ELSE NULLIF ( + 80, - 75 ) END + + + 19 AS col2
----
-95
-61

skipif mysql # not compatible
query II rowsort label-6576
SELECT + - ( 95 ), - CASE - COALESCE ( 84, + - 46 + - 76, 94 - - - 28 ) WHEN - 21 THEN NULL WHEN + + COUNT ( * ) THEN NULL ELSE NULLIF ( + 80, - 75 ) END + + + 19 AS col2
----
-95
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-6577
SELECT ALL - CASE + COALESCE ( + COUNT( * ), COUNT( * ), + 46, - MIN( - 59 ) + 88, - - 78 ) WHEN - 65 THEN NULL WHEN - 73 + + - 16 THEN + - 47 / - - 57 * + 58 END + 34 + - 37 + - - 68 - + + 93 * + 1 * + - 3 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6577
SELECT ALL - CASE + COALESCE ( + COUNT ( * ), COUNT ( * ), + 46, - MIN ( - 59 ) + 88, - - 78 ) WHEN - 65 THEN NULL WHEN - 73 + + - 16 THEN + - 47 / - - 57 * + 58 END + 34 + - 37 + - - 68 - + + 93 * + 1 * + - 3 AS col1
----
NULL

query I rowsort
SELECT 43 * 26 AS col2
----
1118

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

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

query II rowsort
SELECT DISTINCT + 34 + + 49 AS col0, + 31 AS col2
----
83
31

onlyif mysql # aggregate syntax: 
query I rowsort label-6581
SELECT - ( - + 80 ) * + MIN( DISTINCT + + 84 ) AS col1
----
6720

skipif mysql # not compatible
query I rowsort label-6581
SELECT - ( - + 80 ) * + MIN ( DISTINCT + + 84 ) AS col1
----
6720

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6583
SELECT + MAX( 36 ) + + COUNT( + 78 ) + 48
----
85

skipif mysql # not compatible
query I rowsort label-6583
SELECT + MAX ( 36 ) + + COUNT ( + 78 ) + 48
----
85

onlyif mysql # aggregate syntax: 
query II rowsort label-6584
SELECT + SUM( - + 80 ), 20 AS col1
----
-80
20

skipif mysql # not compatible
query II rowsort label-6584
SELECT + SUM ( - + 80 ), 20 AS col1
----
-80
20

onlyif mysql # aggregate syntax: 
query I rowsort label-6585
SELECT ALL - MIN( + - 0 ) + + 69 * + 34 * - 42 * - - 17 AS col2
----
-1675044

skipif mysql # not compatible
query I rowsort label-6585
SELECT ALL - MIN ( + - 0 ) + + 69 * + 34 * - 42 * - - 17 AS col2
----
-1675044

onlyif mysql # DIV for integer division: 
query I rowsort label-6586
SELECT 91 * 94 DIV 55 AS col1
----
155

skipif mysql # not compatible
query I rowsort label-6586
SELECT 91 * 94 / 55 AS col1
----
155

query I rowsort
SELECT ALL - CASE WHEN NOT 66 IS NOT NULL THEN NULL ELSE 51 + + 24 END
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6588
SELECT - CAST( + + ( + 73 ) AS SIGNED ) AS col1, + 24 + - 74 col2
----
-73
-50

skipif mysql # not compatible
query II rowsort label-6588
SELECT - CAST ( + + ( + 73 ) AS INTEGER ) AS col1, + 24 + - 74 col2
----
-73
-50

query I rowsort
SELECT 71 - + 88 + + + 60
----
43

query I rowsort
SELECT 14 * + 50 * 90 * - + 96
----
-6048000

query I rowsort
SELECT DISTINCT - 77 * 39 AS col0
----
-3003

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6592
SELECT + CAST( NULL AS SIGNED ) * 78 * COUNT( * ) + 51 + + + 38 * + 71 / - 69 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6592
SELECT + CAST ( NULL AS INTEGER ) * 78 * COUNT ( * ) + 51 + + + 38 * + 71 / - 69 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6593
SELECT - MAX( ( - CASE - 12 WHEN - - 22 THEN - + 22 END ) ) + - COUNT( * ) * - - 86 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6593
SELECT - MAX ( ( - CASE - 12 WHEN - - 22 THEN - + 22 END ) ) + - COUNT ( * ) * - - 86 col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6594
SELECT + 71 DIV - + COALESCE ( - 60, + + SUM( DISTINCT - 97 ), - + 87 )
----
1

skipif mysql # not compatible
query I rowsort label-6594
SELECT + 71 / - + COALESCE ( - 60, + + SUM ( DISTINCT - 97 ), - + 87 )
----
1

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

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

query II rowsort
SELECT ALL - 50 * + + 16 * + 73 col1, - 76 + 54 AS col0
----
-58400
-22

query I rowsort
SELECT + 12 - - 14
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6598
SELECT DISTINCT CASE + NULLIF ( 16, + ( SUM( + + 46 ) ) ) WHEN + - CASE + - COALESCE ( - 70, + COUNT( - - 45 ) * - - CAST( - 17 AS SIGNED ), - 92 + 19 ) WHEN ( - - 74 ) THEN NULL WHEN - 17 THEN - - 43 END - - 74 + 8 THEN - - 71 + + + SUM( DISTINCT 3 ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6598
SELECT DISTINCT CASE + NULLIF ( 16, + ( SUM ( + + 46 ) ) ) WHEN + - CASE + - COALESCE ( - 70, + COUNT ( - - 45 ) * - - CAST ( - 17 AS INTEGER ), - 92 + 19 ) WHEN ( - - 74 ) THEN NULL WHEN - 17 THEN - - 43 END - - 74 + 8 THEN - - 71 + + + SUM ( DISTINCT 3 ) ELSE NULL END AS col0
----
NULL

query II rowsort
SELECT - 58, 73 AS col2
----
-58
73

onlyif mysql # DIV for integer division: 
query I rowsort label-6600
SELECT + 5 DIV - + 3 col0
----
-1

skipif mysql # not compatible
query I rowsort label-6600
SELECT + 5 / - + 3 col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6601
SELECT ALL NULLIF ( - 7, COUNT( * ) ) DIV + CASE COUNT( * ) WHEN + COUNT( * ) * - + 34 * + 4 * - 99 THEN NULL ELSE - 81 * - 55 + + 34 + + 86 END AS col2, - 61 + + + 0 DIV + 69 AS col1
----
0
-61

skipif mysql # not compatible
query II rowsort label-6601
SELECT ALL NULLIF ( - 7, COUNT ( * ) ) / + CASE COUNT ( * ) WHEN + COUNT ( * ) * - + 34 * + 4 * - 99 THEN NULL ELSE - 81 * - 55 + + 34 + + 86 END AS col2, - 61 + + + 0 / + 69 AS col1
----
0
-61

query II rowsort
SELECT DISTINCT 63 AS col2, 82 col2
----
63
82

onlyif mysql # aggregate syntax: 
query I rowsort label-6603
SELECT + MAX( - 22 ) - - - 35 + + - 57 + + - 62 * 12 * 18
----
-13506

skipif mysql # not compatible
query I rowsort label-6603
SELECT + MAX ( - 22 ) - - - 35 + + - 57 + + - 62 * 12 * 18
----
-13506

query I rowsort
SELECT DISTINCT 22 * - 8 AS col0
----
-176

query I rowsort
SELECT ALL - 60 + - 48 * 23 AS col0
----
-1164

query II rowsort
SELECT DISTINCT 75, - 77 col1
----
75
-77

query I rowsort
SELECT ALL 57 + 79
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-6608
SELECT + 63 * - + 15 * - + COUNT( * ) * + 42
----
39690

skipif mysql # not compatible
query I rowsort label-6608
SELECT + 63 * - + 15 * - + COUNT ( * ) * + 42
----
39690

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

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

query I rowsort
SELECT ALL + + 67 col2
----
67

query I rowsort
SELECT - + 27 * - 53 * + 26 + + 58 col2
----
37264

onlyif mysql # aggregate syntax: 
query I rowsort label-6612
SELECT COUNT( * ) * - 45 + - 20 AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-6612
SELECT COUNT ( * ) * - 45 + - 20 AS col2
----
-65

onlyif mysql # aggregate syntax: 
query II rowsort label-6613
SELECT ALL 82 * - 1 + 72 col0, + MIN( + 86 ) col2
----
-10
86

skipif mysql # not compatible
query II rowsort label-6613
SELECT ALL 82 * - 1 + 72 col0, + MIN ( + 86 ) col2
----
-10
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6614
SELECT ALL + NULLIF ( + 88, + + ( + 58 ) ) AS col2, ( - 15 ) + - COUNT( DISTINCT - 75 ) DIV - 90 * ( + 11 ) AS col2
----
88
-15

skipif mysql # not compatible
query II rowsort label-6614
SELECT ALL + NULLIF ( + 88, + + ( + 58 ) ) AS col2, ( - 15 ) + - COUNT ( DISTINCT - 75 ) / - 90 * ( + 11 ) AS col2
----
88
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-6615
SELECT ALL 92 DIV + 44
----
2

skipif mysql # not compatible
query I rowsort label-6615
SELECT ALL 92 / + 44
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6616
SELECT 0 * - 74 + 50 + ( - COUNT( * ) ) - - 36 AS col2
----
85

skipif mysql # not compatible
query I rowsort label-6616
SELECT 0 * - 74 + 50 + ( - COUNT ( * ) ) - - 36 AS col2
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6617
SELECT ALL - + ( 67 ) * + - CAST( + 40 AS SIGNED )
----
2680

skipif mysql # not compatible
query I rowsort label-6617
SELECT ALL - + ( 67 ) * + - CAST ( + 40 AS INTEGER )
----
2680

onlyif mysql # aggregate syntax: 
query I rowsort label-6618
SELECT DISTINCT + CASE - COUNT( * ) WHEN 41 THEN - MIN( DISTINCT - 56 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6618
SELECT DISTINCT + CASE - COUNT ( * ) WHEN 41 THEN - MIN ( DISTINCT - 56 ) END
----
NULL

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

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

query I rowsort
SELECT - - COALESCE ( + - 12, 80 * - 40 + - ( + + 91 ) + 42 ) * - 25 * + 77
----
23100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6621
SELECT - MIN( - 72 ) + NULLIF ( + + MAX( DISTINCT + 41 ), - CAST( NULL AS SIGNED ) * + 36 ) AS col0
----
113

skipif mysql # not compatible
query I rowsort label-6621
SELECT - MIN ( - 72 ) + NULLIF ( + + MAX ( DISTINCT + 41 ), - CAST ( NULL AS INTEGER ) * + 36 ) AS col0
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-6622
SELECT ALL 33 * - SUM( DISTINCT - 60 )
----
1980

skipif mysql # not compatible
query I rowsort label-6622
SELECT ALL 33 * - SUM ( DISTINCT - 60 )
----
1980

query I rowsort
SELECT + + 40 + + ( 30 ) col0
----
70

query I rowsort
SELECT - + 34 + + 85
----
51

query I rowsort
SELECT ALL - + 2 * + 39
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-6626
SELECT + ( - ( - NULLIF ( - 29, - SUM( 87 ) + + 46 + - 42 * 71 * + 89 + - 83 ) ) ) AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-6626
SELECT + ( - ( - NULLIF ( - 29, - SUM ( 87 ) + + 46 + - 42 * 71 * + 89 + - 83 ) ) ) AS col0
----
-29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6627
SELECT ALL COALESCE ( + 92, + 96 - - + ( COUNT( * ) ) DIV - 54, COUNT( * ) )
----
92

skipif mysql # not compatible
query I rowsort label-6627
SELECT ALL COALESCE ( + 92, + 96 - - + ( COUNT ( * ) ) / - 54, COUNT ( * ) )
----
92

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

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

query I rowsort
SELECT DISTINCT 51 * - + 20 * - - 28 - 36 * + + 7 * + - 53 + - 34
----
-15238

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

query I rowsort
SELECT - 36 + 33 AS col0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6632
SELECT ALL MIN( - + 50 ) AS col1
----
-50

skipif mysql # not compatible
query I rowsort label-6632
SELECT ALL MIN ( - + 50 ) AS col1
----
-50

query I rowsort
SELECT - 12 + - - 93
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6634
SELECT ALL - 19 * COUNT( * ) AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-6634
SELECT ALL - 19 * COUNT ( * ) AS col1
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6635
SELECT DISTINCT CAST( - NULLIF ( - - 36, + - 83 * 72 + + + MIN( ALL 40 ) * 48 ) AS SIGNED ) AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-6635
SELECT DISTINCT CAST ( - NULLIF ( - - 36, + - 83 * 72 + + + MIN ( ALL 40 ) * 48 ) AS INTEGER ) AS col2
----
-36

query I rowsort
SELECT ALL COALESCE ( - 93, + 30 - + ( - 83 ), - 8 + + 71 + + 99 - - 20, + + 1 )
----
-93

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6638
SELECT ALL + CAST( NULL AS SIGNED ) * + - 27, + 13 * - 26 AS col0
----
NULL
-338

skipif mysql # not compatible
query II rowsort label-6638
SELECT ALL + CAST ( NULL AS INTEGER ) * + - 27, + 13 * - 26 AS col0
----
NULL
-338

onlyif mysql # DIV for integer division: 
query I rowsort label-6639
SELECT - 93 + 47 DIV + 88
----
-93

skipif mysql # not compatible
query I rowsort label-6639
SELECT - 93 + 47 / + 88
----
-93

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6640
SELECT + 58 + + ( + + 0 ) + - - COUNT( * ) / CASE - 85 WHEN - ( - MIN( DISTINCT 88 ) ) * 3 THEN 30 + - CAST( NULL AS DECIMAL ) END * - 7 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6640
SELECT + 58 + + ( + + 0 ) + - - COUNT ( * ) / CASE - 85 WHEN - ( - MIN ( DISTINCT 88 ) ) * 3 THEN 30 + - CAST ( NULL AS REAL ) END * - 7 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 1 + + 52 AS col2
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-6642
SELECT DISTINCT - 47 + + 69 + - 89 * + + MAX( + 87 )
----
-7721

skipif mysql # not compatible
query I rowsort label-6642
SELECT DISTINCT - 47 + + 69 + - 89 * + + MAX ( + 87 )
----
-7721

query I rowsort
SELECT ALL + 83 + - + 20 AS col1
----
63

query I rowsort
SELECT ALL 16 + - ( 57 )
----
-41

onlyif mysql # DIV for integer division: 
query II rowsort label-6645
SELECT ALL - 56 * - 25 AS col0, + 7 DIV 27
----
1400
0

skipif mysql # not compatible
query II rowsort label-6645
SELECT ALL - 56 * - 25 AS col0, + 7 / 27
----
1400
0

query I rowsort
SELECT + + 31 + - 41 * 56 AS col1
----
-2265

query I rowsort
SELECT ALL + + 43 + - 99
----
-56

query I rowsort
SELECT ALL - ( + 21 ) + - 13 AS col0
----
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6649
SELECT - + CAST( NULL AS SIGNED ) * + 83 * - - 11 * COUNT( * ) - COUNT( * ) * NULLIF ( - - 36, - 90 + - - 13 ) + - 86
----
NULL

skipif mysql # not compatible
query I rowsort label-6649
SELECT - + CAST ( NULL AS INTEGER ) * + 83 * - - 11 * COUNT ( * ) - COUNT ( * ) * NULLIF ( - - 36, - 90 + - - 13 ) + - 86
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6651
SELECT + 51 / - AVG ( - 2 ) * - 8 + + CAST( NULL AS SIGNED ) + - 12 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6651
SELECT + 51 / - AVG ( - 2 ) * - 8 + + CAST ( NULL AS INTEGER ) + - 12 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6652
SELECT DISTINCT 5 / 52 * + + 18 * NULLIF ( 86, + + COUNT( * ) * - + 23 ) + - - 68 + - NULLIF ( + + CASE + ( 4 ) WHEN + 78 THEN + MAX( ALL 93 ) ELSE NULL END, - + 45 ) - - ( 40 ) - 46 * + 3
----
NULL

skipif mysql # not compatible
query I rowsort label-6652
SELECT DISTINCT 5 / 52 * + + 18 * NULLIF ( 86, + + COUNT ( * ) * - + 23 ) + - - 68 + - NULLIF ( + + CASE + ( 4 ) WHEN + 78 THEN + MAX ( ALL 93 ) ELSE NULL END, - + 45 ) - - ( 40 ) - 46 * + 3
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6653
SELECT + 11 * 78 + + COUNT( * ) col2
----
859

skipif mysql # not compatible
query I rowsort label-6653
SELECT + 11 * 78 + + COUNT ( * ) col2
----
859

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6655
SELECT + CASE + + COUNT( * ) WHEN - 6 - + 72 + ( 97 ) THEN + 76 + - 89 + - 64 * 89 WHEN - 24 / - - 10 * 19 THEN + 82 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6655
SELECT + CASE + + COUNT ( * ) WHEN - 6 - + 72 + ( 97 ) THEN + 76 + - 89 + - 64 * 89 WHEN - 24 / - - 10 * 19 THEN + 82 ELSE NULL END AS col1
----
NULL

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

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

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

query I rowsort
SELECT ALL NULLIF ( 88, + 88 ) / + 13
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6659
SELECT ALL + 87 * + 79 * + CAST( NULL AS DECIMAL ) * CASE - COUNT( * ) WHEN + + ( + 61 ) - + + 15 THEN NULL WHEN + 36 * + COUNT( * ) THEN + 24 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6659
SELECT ALL + 87 * + 79 * + CAST ( NULL AS REAL ) * CASE - COUNT ( * ) WHEN + + ( + 61 ) - + + 15 THEN NULL WHEN + 36 * + COUNT ( * ) THEN + 24 END AS col1
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6661
SELECT CAST( NULL AS SIGNED ) + - 26 * - AVG ( + 40 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6661
SELECT CAST ( NULL AS INTEGER ) + - 26 * - AVG ( + 40 ) AS col1
----
NULL

query I rowsort
SELECT 49 - + + 60 - + 16 col0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-6663
SELECT ALL NULLIF ( - ( - ( ( - - 16 ) ) ), + + 56 ) + 73 - - COALESCE ( 53, + 82 * - COUNT( * ) + 78 + + COUNT( * ) + 71 * - 9, + - 52, - - 73 ) * - + COALESCE ( 16, 74, + 39 ) + - - 19 - - 82 * - 2 * - 14 AS col0
----
1556

skipif mysql # not compatible
query I rowsort label-6663
SELECT ALL NULLIF ( - ( - ( ( - - 16 ) ) ), + + 56 ) + 73 - - COALESCE ( 53, + 82 * - COUNT ( * ) + 78 + + COUNT ( * ) + 71 * - 9, + - 52, - - 73 ) * - + COALESCE ( 16, 74, + 39 ) + - - 19 - - 82 * - 2 * - 14 AS col0
----
1556

query II rowsort
SELECT DISTINCT 7 AS col2, 44 * + 40 AS col1
----
7
1760

query I rowsort
SELECT 33 + + + 31 col2
----
64

query I rowsort
SELECT ALL - 60 + + 98
----
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6667
SELECT ALL + 97 + + + ( - - COUNT( * ) ), COALESCE ( - + 37, - - 2 ) DIV + 56 AS col1
----
98
0

skipif mysql # not compatible
query II rowsort label-6667
SELECT ALL + 97 + + + ( - - COUNT ( * ) ), COALESCE ( - + 37, - - 2 ) / + 56 AS col1
----
98
0

query I rowsort
SELECT 48 - 39 AS col2
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-6669
SELECT DISTINCT 18 col0, SUM( ALL - + 46 )
----
18
-46

skipif mysql # not compatible
query II rowsort label-6669
SELECT DISTINCT 18 col0, SUM ( ALL - + 46 )
----
18
-46

query I rowsort
SELECT DISTINCT ( 78 ) + + 53
----
131

query I rowsort
SELECT 68 + + 56 AS col2
----
124

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

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

query I rowsort
SELECT + 46 + - 46
----
0

query II rowsort
SELECT - + 74 AS col0, 25 + - 34 AS col2
----
-74
-9

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6676
SELECT ALL + 14 * + 36 * - COUNT( 60 ) * + 77 * + + 91 * - + COUNT( * ) * + - 5 * + COUNT( 36 ) + + 17
----
-17657623

skipif mysql # not compatible
query I rowsort label-6676
SELECT ALL + 14 * + 36 * - COUNT ( 60 ) * + 77 * + + 91 * - + COUNT ( * ) * + - 5 * + COUNT ( 36 ) + + 17
----
-17657623

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6678
SELECT + COUNT( ALL + - ( + CAST( - + 0 AS SIGNED ) ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6678
SELECT + COUNT ( ALL + - ( + CAST ( - + 0 AS INTEGER ) ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6679
SELECT ALL - + CASE 44 WHEN COUNT( DISTINCT - 92 ) + - 37 THEN 97 WHEN - - 49 THEN - + 68 * 1 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6679
SELECT ALL - + CASE 44 WHEN COUNT ( DISTINCT - 92 ) + - 37 THEN 97 WHEN - - 49 THEN - + 68 * 1 ELSE NULL END
----
NULL

query I rowsort
SELECT + 31 * 63
----
1953

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6681
SELECT - ( CAST( - - 2 AS SIGNED ) ) * 31 + 64 * + NULLIF ( - 75, - CAST( NULL AS SIGNED ) ) + + COUNT( * ) + 21 * - COALESCE ( 80, 81 DIV + 56 * + ( + - COUNT( * ) ), - + 80 ) + + 18 AS col1, 77
----
-6523
77

skipif mysql # not compatible
query II rowsort label-6681
SELECT - ( CAST ( - - 2 AS INTEGER ) ) * 31 + 64 * + NULLIF ( - 75, - CAST ( NULL AS INTEGER ) ) + + COUNT ( * ) + 21 * - COALESCE ( 80, 81 / + 56 * + ( + - COUNT ( * ) ), - + 80 ) + + 18 AS col1, 77
----
-6523
77

onlyif mysql # DIV for integer division: 
query I rowsort label-6682
SELECT + + 81 DIV + 3 + 71
----
98

skipif mysql # not compatible
query I rowsort label-6682
SELECT + + 81 / + 3 + 71
----
98

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

query I rowsort
SELECT - 98 + - 4
----
-102

query I rowsort
SELECT + 7 + - 59 col0
----
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6686
SELECT 61 * + 17 + + CASE - 56 WHEN + 66 + + ( - 20 ) / 14 THEN 21 WHEN - AVG ( DISTINCT + 20 ) / - 48 + 72 THEN - - 98 ELSE - - 8 + - + COUNT( * ) * CAST( NULL AS SIGNED ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6686
SELECT 61 * + 17 + + CASE - 56 WHEN + 66 + + ( - 20 ) / 14 THEN 21 WHEN - AVG ( DISTINCT + 20 ) / - 48 + 72 THEN - - 98 ELSE - - 8 + - + COUNT ( * ) * CAST ( NULL AS INTEGER ) END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6687
SELECT COUNT( * ) + - - SUM( + 4 ) * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6687
SELECT COUNT ( * ) + - - SUM ( + 4 ) * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT ( - + 10 ) * - - 84 col1
----
-840

query I rowsort
SELECT ALL 7 + + - 37 * - + 39 AS col0
----
1450

query I rowsort
SELECT - ( + + 7 ) * 5 * + - 46 + 50
----
1660

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6691
SELECT ALL CAST( NULL AS SIGNED ) + - 55 + - 4 - - 19 + 93 + - CAST( NULL AS SIGNED ) * + - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6691
SELECT ALL CAST ( NULL AS INTEGER ) + - 55 + - 4 - - 19 + 93 + - CAST ( NULL AS INTEGER ) * + - COUNT ( * ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6692
SELECT COALESCE ( CASE - 62 WHEN - + 72 THEN NULL WHEN 8 THEN - 50 + - SUM( ALL - + ( - CAST( NULL AS SIGNED ) ) ) * 10 - + 34 ELSE - + 16 END, + COUNT( - - 59 ) ) * - + COUNT( * ) + ( + + 54 ) AS col1
----
70

skipif mysql # not compatible
query I rowsort label-6692
SELECT COALESCE ( CASE - 62 WHEN - + 72 THEN NULL WHEN 8 THEN - 50 + - SUM ( ALL - + ( - CAST ( NULL AS INTEGER ) ) ) * 10 - + 34 ELSE - + 16 END, + COUNT ( - - 59 ) ) * - + COUNT ( * ) + ( + + 54 ) AS col1
----
70

query I rowsort
SELECT DISTINCT 82 + - + NULLIF ( + 51, + - 43 ) * + 15 AS col1
----
-683

onlyif mysql # aggregate syntax: 
query I rowsort label-6694
SELECT ALL 41 + 62 + + 33 * - CASE COUNT( * ) WHEN - 91 THEN + ( 45 ) ELSE NULL END - + ( + + 42 ) * 85
----
NULL

skipif mysql # not compatible
query I rowsort label-6694
SELECT ALL 41 + 62 + + 33 * - CASE COUNT ( * ) WHEN - 91 THEN + ( 45 ) ELSE NULL END - + ( + + 42 ) * 85
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6695
SELECT ALL 56 AS col2, - CAST( - 47 AS SIGNED ) * 7 col1
----
56
329

skipif mysql # not compatible
query II rowsort label-6695
SELECT ALL 56 AS col2, - CAST ( - 47 AS INTEGER ) * 7 col1
----
56
329

query I rowsort
SELECT ALL 11 + + + 76 AS col2
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6697
SELECT 49 * + CASE - 85 WHEN 78 THEN NULL WHEN - + 82 THEN - COUNT( * ) WHEN + - CAST( - 87 AS SIGNED ) + + 23 THEN + - ( + 35 ) * + + 83 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6697
SELECT 49 * + CASE - 85 WHEN 78 THEN NULL WHEN - + 82 THEN - COUNT ( * ) WHEN + - CAST ( - 87 AS INTEGER ) + + 23 THEN + - ( + 35 ) * + + 83 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6698
SELECT ALL 34 * + 89 * COUNT( * )
----
3026

skipif mysql # not compatible
query I rowsort label-6698
SELECT ALL 34 * + 89 * COUNT ( * )
----
3026

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

skipif mysql # not compatible
query I rowsort label-6699
SELECT ALL 93 + - 82 - + CAST ( NULL AS INTEGER )
----
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6702
SELECT 38 - - COUNT( * ) AS col1, SUM( DISTINCT 93 ) * 71
----
39
6603

skipif mysql # not compatible
query II rowsort label-6702
SELECT 38 - - COUNT ( * ) AS col1, SUM ( DISTINCT 93 ) * 71
----
39
6603

query I rowsort
SELECT 74 * + ( 73 ) AS col0
----
5402

query I rowsort
SELECT ALL 98 * - - 66 col2
----
6468

query II rowsort
SELECT + 95 AS col2, 85 * - 71 AS col2
----
95
-6035

onlyif mysql # aggregate syntax: 
query II rowsort label-6706
SELECT DISTINCT 23, ( - 34 ) * - + 26 + 15 * + - COUNT( + 18 ) AS col2
----
23
869

skipif mysql # not compatible
query II rowsort label-6706
SELECT DISTINCT 23, ( - 34 ) * - + 26 + 15 * + - COUNT ( + 18 ) AS col2
----
23
869

query I rowsort
SELECT DISTINCT - 18 - - 28 AS col2
----
10

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

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

query I rowsort
SELECT DISTINCT - ( - NULLIF ( + 48, + - 26 * - 35 ) ) col1
----
48

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

skipif mysql # not compatible
query I rowsort label-6710
SELECT ALL - COUNT ( ALL - 71 ) * - + 2 AS col2
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-6711
SELECT - 89 + - 20 DIV - 57
----
-89

skipif mysql # not compatible
query I rowsort label-6711
SELECT - 89 + - 20 / - 57
----
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6712
SELECT - COUNT( * ) * NULLIF ( + - 40, + COUNT( * ) * + COUNT( ALL 56 ) * - - 56 * - + COALESCE ( 85, + - 89 * 18, + + 57 ) * + 14 DIV + 18 + COUNT( * ) * + 82 ) DIV COUNT( * ) * + 72 * - + 63 AS col0, + SUM( DISTINCT + 29 ) + + NULLIF ( + 24, + + 73 * + + ( + - 6 ) - + COUNT( * ) )
----
-181440
53

skipif mysql # not compatible
query II rowsort label-6712
SELECT - COUNT ( * ) * NULLIF ( + - 40, + COUNT ( * ) * + COUNT ( ALL 56 ) * - - 56 * - + COALESCE ( 85, + - 89 * 18, + + 57 ) * + 14 / + 18 + COUNT ( * ) * + 82 ) / COUNT ( * ) * + 72 * - + 63 AS col0, + SUM ( DISTINCT + 29 ) + + NULLIF ( + 24, + + 73 * + + ( + - 6 ) - + COUNT ( * ) )
----
-181440
53

onlyif mysql # aggregate syntax: 
query II rowsort label-6713
SELECT DISTINCT MAX( DISTINCT + 24 ), COUNT( * ) + + + ( 56 ) AS col0
----
24
57

skipif mysql # not compatible
query II rowsort label-6713
SELECT DISTINCT MAX ( DISTINCT + 24 ), COUNT ( * ) + + + ( 56 ) AS col0
----
24
57

query II rowsort
SELECT ALL + 48 AS col2, + 43
----
48
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6715
SELECT - 91 DIV + + 94 - - MAX( ALL + - ( - 75 ) ) * 13 + - 81 AS col0
----
894

skipif mysql # not compatible
query I rowsort label-6715
SELECT - 91 / + + 94 - - MAX ( ALL + - ( - 75 ) ) * 13 + - 81 AS col0
----
894

query I rowsort
SELECT + 69 * - + 47 AS col1
----
-3243

query I rowsort
SELECT ALL - - 95 * 5
----
475

onlyif mysql # DIV for integer division: 
query I rowsort label-6718
SELECT DISTINCT - 30 DIV + + ( 64 ) * 27 * 20 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6718
SELECT DISTINCT - 30 / + + ( 64 ) * 27 * 20 AS col0
----
0

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6721
SELECT ALL - + ( + ( - COUNT( * ) ) ) * - 44, CAST( NULL AS SIGNED ) / 46 / - CAST( NULL AS SIGNED ) / - 86 * - + 17 AS col0
----
-44
NULL

skipif mysql # not compatible
query II rowsort label-6721
SELECT ALL - + ( + ( - COUNT ( * ) ) ) * - 44, CAST ( NULL AS INTEGER ) / 46 / - CAST ( NULL AS INTEGER ) / - 86 * - + 17 AS col0
----
-44
NULL

query II rowsort
SELECT DISTINCT + - 44 AS col0, 87 AS col2
----
-44
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6723
SELECT COALESCE ( COUNT( * ), - 74 + - 49, - CAST( - - 81 AS SIGNED ) * 18 ), + 81 AS col1
----
1
81

skipif mysql # not compatible
query II rowsort label-6723
SELECT COALESCE ( COUNT ( * ), - 74 + - 49, - CAST ( - - 81 AS INTEGER ) * 18 ), + 81 AS col1
----
1
81

query I rowsort
SELECT ALL - 70 * + 45 + 12 + - 31 + 17 - - 58
----
-3094

onlyif mysql # DIV for integer division: 
query II rowsort label-6725
SELECT - 89 DIV 40, 74 DIV + + 55 + - + ( - 35 ) + 62 AS col0
----
-2
98

skipif mysql # not compatible
query II rowsort label-6725
SELECT - 89 / 40, 74 / + + 55 + - + ( - 35 ) + 62 AS col0
----
-2
98

query I rowsort
SELECT 60 * 78 - + + 2 AS col0
----
4678

onlyif mysql # aggregate syntax: 
query I rowsort label-6727
SELECT NULLIF ( - NULLIF ( - - 0, - 7 ), - + COUNT( * ) * + COUNT( DISTINCT + - 5 ) ) col1
----
0

skipif mysql # not compatible
query I rowsort label-6727
SELECT NULLIF ( - NULLIF ( - - 0, - 7 ), - + COUNT ( * ) * + COUNT ( DISTINCT + - 5 ) ) col1
----
0

query I rowsort
SELECT ALL + 71 * 31 + + 43
----
2244

onlyif mysql # aggregate syntax: 
query I rowsort label-6729
SELECT COALESCE ( + - 51, - + 49 + + CASE - 41 WHEN + 90 + COUNT( * ) / 28 THEN NULL WHEN ( + 8 ) THEN 49 * + + COUNT( * ) ELSE - + 45 * - 68 END, - 43 + - 22 - + - 46 )
----
-51

skipif mysql # not compatible
query I rowsort label-6729
SELECT COALESCE ( + - 51, - + 49 + + CASE - 41 WHEN + 90 + COUNT ( * ) / 28 THEN NULL WHEN ( + 8 ) THEN 49 * + + COUNT ( * ) ELSE - + 45 * - 68 END, - 43 + - 22 - + - 46 )
----
-51

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6731
SELECT - AVG ( + 72 ) * CAST( CAST( NULL AS SIGNED ) AS SIGNED ) * - 93 - 19
----
NULL

skipif mysql # not compatible
query I rowsort label-6731
SELECT - AVG ( + 72 ) * CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * - 93 - 19
----
NULL

query I rowsort
SELECT DISTINCT 58 * - - 9 * - - 93 * - + NULLIF ( + + 84, + 46 )
----
-4077864

onlyif mysql # aggregate syntax: 
query I rowsort label-6733
SELECT DISTINCT + 61 * + 81 * + ( + COUNT( * ) ) + - + COUNT( ALL 72 ) AS col2
----
4940

skipif mysql # not compatible
query I rowsort label-6733
SELECT DISTINCT + 61 * + 81 * + ( + COUNT ( * ) ) + - + COUNT ( ALL 72 ) AS col2
----
4940

query I rowsort
SELECT + 99 * 91
----
9009

query I rowsort
SELECT - 11 * - ( - 66 ) AS col0
----
-726

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6736
SELECT + 69 - + COUNT( ALL - + ( + 31 ) ) * - + 25 - - 58 DIV - + 63
----
94

skipif mysql # not compatible
query I rowsort label-6736
SELECT + 69 - + COUNT ( ALL - + ( + 31 ) ) * - + 25 - - 58 / - + 63
----
94

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

skipif mysql # not compatible
query I rowsort label-6737
SELECT - COUNT ( * ) + - - 81 AS col2
----
80

query I rowsort
SELECT + + 8 * + 71
----
568

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6739
SELECT + - COUNT( * ) + - 52 * - - COUNT( * ) + CAST( MIN( 73 ) AS SIGNED ) - 91
----
-71

skipif mysql # not compatible
query I rowsort label-6739
SELECT + - COUNT ( * ) + - 52 * - - COUNT ( * ) + CAST ( MIN ( 73 ) AS INTEGER ) - 91
----
-71

query I rowsort
SELECT DISTINCT + 64 * - 17 + 84
----
-1004

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6741
SELECT + + CAST( + - 10 AS SIGNED ) + COALESCE ( + 30, - - 12 * + 53, 33 * - 29 + 6 * 49 ) AS col0, - 23 * 92 col0
----
20
-2116

skipif mysql # not compatible
query II rowsort label-6741
SELECT + + CAST ( + - 10 AS INTEGER ) + COALESCE ( + 30, - - 12 * + 53, 33 * - 29 + 6 * 49 ) AS col0, - 23 * 92 col0
----
20
-2116

onlyif mysql # aggregate syntax: 
query II rowsort label-6742
SELECT + 86 * NULLIF ( + - 72, - MAX( + 48 ) + + - NULLIF ( 28, - + AVG ( 90 ) * 22 ) * - 58 - + 43 ) AS col2, 37
----
-6192
37

skipif mysql # not compatible
query II rowsort label-6742
SELECT + 86 * NULLIF ( + - 72, - MAX ( + 48 ) + + - NULLIF ( 28, - + AVG ( 90 ) * 22 ) * - 58 - + 43 ) AS col2, 37
----
-6192
37

onlyif mysql # aggregate syntax: 
query II rowsort label-6743
SELECT - - CASE 39 WHEN + - 66 + - - MIN( + - 38 ) THEN + 52 ELSE + - 77 * - COUNT( * ) + 69 * - + 76 END AS col2, + 20
----
-5167
20

skipif mysql # not compatible
query II rowsort label-6743
SELECT - - CASE 39 WHEN + - 66 + - - MIN ( + - 38 ) THEN + 52 ELSE + - 77 * - COUNT ( * ) + 69 * - + 76 END AS col2, + 20
----
-5167
20

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6744
SELECT + CAST( NULL AS DECIMAL ) + + 99
----
NULL

skipif mysql # not compatible
query I rowsort label-6744
SELECT + CAST ( NULL AS REAL ) + + 99
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6745
SELECT + - 81 DIV + 38 AS col0, - COUNT( * ) + + + 28
----
-2
27

skipif mysql # not compatible
query II rowsort label-6745
SELECT + - 81 / + 38 AS col0, - COUNT ( * ) + + + 28
----
-2
27

onlyif mysql # aggregate syntax: 
query I rowsort label-6746
SELECT + + COUNT( * ) * + COALESCE ( 50, 13 * - - 86, - 59 ) AS col1
----
50

skipif mysql # not compatible
query I rowsort label-6746
SELECT + + COUNT ( * ) * + COALESCE ( 50, 13 * - - 86, - 59 ) AS col1
----
50

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

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

query I rowsort
SELECT + 89 - + - 56
----
145

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6749
SELECT DISTINCT - - 50 DIV - 30 + 82 * + 32 * + 3 + MAX( - 0 )
----
7871

skipif mysql # not compatible
query I rowsort label-6749
SELECT DISTINCT - - 50 / - 30 + 82 * + 32 * + 3 + MAX ( - 0 )
----
7871

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6750
SELECT + 3 * 67 - 64 + - 83 * CAST( - 47 AS SIGNED ) AS col2
----
4038

skipif mysql # not compatible
query I rowsort label-6750
SELECT + 3 * 67 - 64 + - 83 * CAST ( - 47 AS INTEGER ) AS col2
----
4038

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

query I rowsort
SELECT + ( NULLIF ( - 44, 77 ) )
----
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-6753
SELECT ALL + 27 DIV + 58 + - - 9 AS col2
----
9

skipif mysql # not compatible
query I rowsort label-6753
SELECT ALL + 27 / + 58 + - - 9 AS col2
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-6754
SELECT + 86 AS col2, + 98 - 43 * - MAX( ALL + 83 ) * + ( - - 57 )
----
86
203531

skipif mysql # not compatible
query II rowsort label-6754
SELECT + 86 AS col2, + 98 - 43 * - MAX ( ALL + 83 ) * + ( - - 57 )
----
86
203531

query I rowsort
SELECT ALL - 74 * - + 39
----
2886

onlyif mysql # aggregate syntax: 
query I rowsort label-6756
SELECT ALL 35 / - 41 * + 56 * - ( + CASE + ( - 10 ) WHEN - 61 THEN NULL WHEN 90 - MIN( ALL + 91 ) THEN NULL WHEN + - 91 THEN NULL WHEN - 52 + 17 THEN + 93 END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6756
SELECT ALL 35 / - 41 * + 56 * - ( + CASE + ( - 10 ) WHEN - 61 THEN NULL WHEN 90 - MIN ( ALL + 91 ) THEN NULL WHEN + - 91 THEN NULL WHEN - 52 + 17 THEN + 93 END ) AS col1
----
NULL

query I rowsort
SELECT - 47 + + COALESCE ( + + 52, 5 * 16 ) col1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6758
SELECT ALL + COALESCE ( - SUM( + 54 ), + + 95, 79 + 63 )
----
-54

skipif mysql # not compatible
query I rowsort label-6758
SELECT ALL + COALESCE ( - SUM ( + 54 ), + + 95, 79 + 63 )
----
-54

onlyif mysql # aggregate syntax: 
query II rowsort label-6759
SELECT + 27 * + COUNT( * ) + 55 AS col2, 96 AS col0
----
82
96

skipif mysql # not compatible
query II rowsort label-6759
SELECT + 27 * + COUNT ( * ) + 55 AS col2, 96 AS col0
----
82
96

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

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

query I rowsort
SELECT - 76 + 27 col2
----
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-6762
SELECT ALL + 39 DIV + - 52
----
0

skipif mysql # not compatible
query I rowsort label-6762
SELECT ALL + 39 / + - 52
----
0

query II rowsort
SELECT + 17 AS col2, - 87 AS col1
----
17
-87

query I rowsort
SELECT + 46 + - + 6 AS col0
----
40

query I rowsort
SELECT - 57 * 63
----
-3591

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

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

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

skipif mysql # not compatible
query I rowsort label-6767
SELECT ALL MIN ( ALL - 20 )
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6768
SELECT ALL CASE COUNT( * ) WHEN 30 THEN 25 + - 84 + - 71 + - COUNT( * ) WHEN + 80 * 43 + + COALESCE ( - + 54, 25 * COUNT( * ) * - 16 + + COALESCE ( - CASE + 4 WHEN 80 THEN + CAST( NULL AS SIGNED ) WHEN ( + 34 ) * 68 THEN - 58 + 40 END, - 54 + - - CAST( 0 AS SIGNED ), + CASE WHEN - 56 BETWEEN NULL AND ( - CASE CASE 32 WHEN 37 THEN NULL ELSE - 61 END WHEN - COUNT( * ) THEN NULL WHEN 3 THEN 39 WHEN + 60 + - 48 THEN + 92 ELSE NULL END * + ( - 9 * 68 + 92 ) + 16 ) THEN + ( 69 ) - - 6 * 0 WHEN 27 NOT BETWEEN ( - 44 * - CASE - 96 WHEN + 81 THEN 83 / - 16 WHEN 73 THEN NULL ELSE 19 END ) AND ( 96 - + NULLIF ( + 20, 20 ) ) THEN - COUNT( + 23 ) ELSE NULL END / - 13 ) * + 88 ) THEN NULL WHEN CAST( NULL AS DECIMAL ) THEN + NULLIF ( - 28, CASE 71 WHEN - NULLIF ( + COUNT( * ), - 82 ) * - 13 THEN - COUNT( ALL 76 ) + COALESCE ( COUNT( * ), 88 ) / 97 ELSE 72 + 5 * COUNT( DISTINCT - 12 ) END + MAX( 11 ) ) / MIN( 58 * + 82 ) END * + 85 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6768
SELECT ALL CASE COUNT ( * ) WHEN 30 THEN 25 + - 84 + - 71 + - COUNT ( * ) WHEN + 80 * 43 + + COALESCE ( - + 54, 25 * COUNT ( * ) * - 16 + + COALESCE ( - CASE + 4 WHEN 80 THEN + CAST ( NULL AS INTEGER ) WHEN ( + 34 ) * 68 THEN - 58 + 40 END, - 54 + - - CAST ( 0 AS INTEGER ), + CASE WHEN - 56 BETWEEN NULL AND ( - CASE CASE 32 WHEN 37 THEN NULL ELSE - 61 END WHEN - COUNT ( * ) THEN NULL WHEN 3 THEN 39 WHEN + 60 + - 48 THEN + 92 ELSE NULL END * + ( - 9 * 68 + 92 ) + 16 ) THEN + ( 69 ) - - 6 * 0 WHEN 27 NOT BETWEEN ( - 44 * - CASE - 96 WHEN + 81 THEN 83 / - 16 WHEN 73 THEN NULL ELSE 19 END ) AND ( 96 - + NULLIF ( + 20, 20 ) ) THEN - COUNT ( + 23 ) ELSE NULL END / - 13 ) * + 88 ) THEN NULL WHEN CAST ( NULL AS REAL ) THEN + NULLIF ( - 28, CASE 71 WHEN - NULLIF ( + COUNT ( * ), - 82 ) * - 13 THEN - COUNT ( ALL 76 ) + COALESCE ( COUNT ( * ), 88 ) / 97 ELSE 72 + 5 * COUNT ( DISTINCT - 12 ) END + MAX ( 11 ) ) / MIN ( 58 * + 82 ) END * + 85 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6769
SELECT ALL 91 AS col0, - SUM( + ( + + 84 ) ) col1
----
91
-84

skipif mysql # not compatible
query II rowsort label-6769
SELECT ALL 91 AS col0, - SUM ( + ( + + 84 ) ) col1
----
91
-84

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

skipif mysql # not compatible
query I rowsort label-6770
SELECT - - COUNT ( * ) * 62
----
62

query I rowsort
SELECT DISTINCT - - 79 * 46
----
3634

query I rowsort
SELECT - 75 * - 72
----
5400

query I rowsort
SELECT 98 - 90 + + - 96
----
-88

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6774
SELECT + 84 * - 75 * - 46 AS col1, - 25 * + 87 + CAST( + ( 62 ) AS SIGNED ) * + 39
----
289800
243

skipif mysql # not compatible
query II rowsort label-6774
SELECT + 84 * - 75 * - 46 AS col1, - 25 * + 87 + CAST ( + ( 62 ) AS INTEGER ) * + 39
----
289800
243

query I rowsort
SELECT ALL + 30 + 95 AS col1
----
125

query I rowsort
SELECT ALL - + 74 + - 7 AS col1
----
-81

query I rowsort
SELECT ALL 4 + + 63
----
67

query I rowsort
SELECT DISTINCT - 39 + + - 57
----
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-6779
SELECT ALL - 89 + + + 59 - 99 AS col2, + 46 + + 49 - - COUNT( * ) AS col2
----
-129
96

skipif mysql # not compatible
query II rowsort label-6779
SELECT ALL - 89 + + + 59 - 99 AS col2, + 46 + + 49 - - COUNT ( * ) AS col2
----
-129
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6780
SELECT - - NULLIF ( 9, + 9 ) AS col1, + NULLIF ( 21, + 86 / - ( + + CAST( NULL AS SIGNED ) ) * - 18 + + 44 )
----
NULL
21

skipif mysql # not compatible
query II rowsort label-6780
SELECT - - NULLIF ( 9, + 9 ) AS col1, + NULLIF ( 21, + 86 / - ( + + CAST ( NULL AS INTEGER ) ) * - 18 + + 44 )
----
NULL
21

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

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

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

skipif mysql # not compatible
query I rowsort label-6782
SELECT ALL - MAX ( - + 46 ) AS col0
----
46

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

skipif mysql # not compatible
query I rowsort label-6783
SELECT COUNT ( * ) * - 47 / + 35
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6784
SELECT ALL COUNT( * ) - + + 70 * + COALESCE ( - 0, + + MAX( DISTINCT - 82 ) ) + + - ( - + COUNT( * ) ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-6784
SELECT ALL COUNT ( * ) - + + 70 * + COALESCE ( - 0, + + MAX ( DISTINCT - 82 ) ) + + - ( - + COUNT ( * ) ) AS col0
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6785
SELECT - 79 * - + 71 * CASE MAX( + 30 ) WHEN 40 * - 61 / 87 + + CASE + 29 WHEN - 5 THEN ( COUNT( * ) ) ELSE 9 END - - 97 + COALESCE ( - + 59, 57 + + CAST( NULL AS SIGNED ) - - 8 / - - CASE - CAST( + COALESCE ( - COUNT( * ), 51 + + 9, - + 57 + - COUNT( * ) + 89 / + 3 ) AS SIGNED ) WHEN + COALESCE ( 92, ( + 72 ), 26 * - COUNT( * ), + SUM( DISTINCT + 52 ) + 46 ) THEN NULL ELSE 76 * 18 END, + MIN( ALL + 37 ) ) - AVG ( 12 ) * 62 THEN 36 + 41 WHEN - 90 THEN NULL END - CASE 68 WHEN + 74 THEN + 71 WHEN 61 / - 22 THEN NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6785
SELECT - 79 * - + 71 * CASE MAX ( + 30 ) WHEN 40 * - 61 / 87 + + CASE + 29 WHEN - 5 THEN ( COUNT ( * ) ) ELSE 9 END - - 97 + COALESCE ( - + 59, 57 + + CAST ( NULL AS INTEGER ) - - 8 / - - CASE - CAST ( + COALESCE ( - COUNT ( * ), 51 + + 9, - + 57 + - COUNT ( * ) + 89 / + 3 ) AS INTEGER ) WHEN + COALESCE ( 92, ( + 72 ), 26 * - COUNT ( * ), + SUM ( DISTINCT + 52 ) + 46 ) THEN NULL ELSE 76 * 18 END, + MIN ( ALL + 37 ) ) - AVG ( 12 ) * 62 THEN 36 + 41 WHEN - 90 THEN NULL END - CASE 68 WHEN + 74 THEN + 71 WHEN 61 / - 22 THEN NULL END col0
----
NULL

query I rowsort
SELECT 74 * + 5 AS col0
----
370

query I rowsort
SELECT ( - 92 ) * + - 88
----
8096

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6789
SELECT DISTINCT 81 * + 75 AS col2, 41 DIV - COUNT( * ) AS col1
----
6075
-41

skipif mysql # not compatible
query II rowsort label-6789
SELECT DISTINCT 81 * + 75 AS col2, 41 / - COUNT ( * ) AS col1
----
6075
-41

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6790
SELECT ALL - NULLIF ( - ( CAST( NULL AS SIGNED ) ), - 53 ), - 5 AS col2
----
NULL
-5

skipif mysql # not compatible
query II rowsort label-6790
SELECT ALL - NULLIF ( - ( CAST ( NULL AS INTEGER ) ), - 53 ), - 5 AS col2
----
NULL
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6791
SELECT + 47 * 41 DIV 84 * + ( + + 67 ) - + + 40 - - ( - SUM( 9 ) )
----
1425

skipif mysql # not compatible
query I rowsort label-6791
SELECT + 47 * 41 / 84 * + ( + + 67 ) - + + 40 - - ( - SUM ( 9 ) )
----
1425

query I rowsort
SELECT ALL 16 * + 80
----
1280

query I rowsort
SELECT 79 * - - 3 AS col1
----
237

query I rowsort
SELECT ALL + 36 + + 6 AS col1
----
42

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6795
SELECT + + 44 * + 63 + - - 55 + + 99 / - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6795
SELECT + + 44 * + 63 + - - 55 + + 99 / - CAST ( NULL AS REAL )
----
NULL

query II rowsort
SELECT 13 + + 34, - 76 AS col0
----
47
-76

query I rowsort
SELECT - 82 - + - ( - 30 )
----
-112

onlyif mysql # aggregate syntax: 
query II rowsort label-6798
SELECT - 21 * - 62 + + COUNT( * ) + + 13 AS col2, 73 * - 92
----
1316
-6716

skipif mysql # not compatible
query II rowsort label-6798
SELECT - 21 * - 62 + + COUNT ( * ) + + 13 AS col2, 73 * - 92
----
1316
-6716

query I rowsort
SELECT ( + 76 ) + + - 75
----
1

query I rowsort
SELECT DISTINCT + 43 + - 75 AS col2
----
-32

query I rowsort
SELECT ALL - - 39 + 3
----
42

onlyif mysql # aggregate syntax: 
query II rowsort label-6802
SELECT 28 + + 43 AS col0, + ( CASE COUNT( * ) WHEN - 53 THEN - 67 ELSE NULL END ) / 2 AS col2
----
71
NULL

skipif mysql # not compatible
query II rowsort label-6802
SELECT 28 + + 43 AS col0, + ( CASE COUNT ( * ) WHEN - 53 THEN - 67 ELSE NULL END ) / 2 AS col2
----
71
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6803
SELECT - + NULLIF ( NULLIF ( - - 78, AVG ( - 57 ) ), MIN( ALL + 39 ) * + 20 * + 15 ) AS col1, + 50
----
-78
50

skipif mysql # not compatible
query II rowsort label-6803
SELECT - + NULLIF ( NULLIF ( - - 78, AVG ( - 57 ) ), MIN ( ALL + 39 ) * + 20 * + 15 ) AS col1, + 50
----
-78
50

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

skipif mysql # not compatible
query I rowsort label-6804
SELECT SUM ( DISTINCT 49 )
----
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6805
SELECT CASE - 36 WHEN 2 THEN NULL WHEN - 84 * - - ( + NULLIF ( - + COUNT( * ), - COUNT( * ) ) ) - + - 48 THEN NULL ELSE + COUNT( * ) + - 14 DIV 18 * + 12 + + COUNT( * ) * - 76 END AS col2, 39 DIV - + ( - 51 ) * 20
----
-75
0

skipif mysql # not compatible
query II rowsort label-6805
SELECT CASE - 36 WHEN 2 THEN NULL WHEN - 84 * - - ( + NULLIF ( - + COUNT ( * ), - COUNT ( * ) ) ) - + - 48 THEN NULL ELSE + COUNT ( * ) + - 14 / 18 * + 12 + + COUNT ( * ) * - 76 END AS col2, 39 / - + ( - 51 ) * 20
----
-75
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6806
SELECT COALESCE ( + + 60, + - 30 DIV + 82 + 93 + - COUNT( * ) * CAST( - CASE 12 WHEN + 98 THEN + + 9 END AS SIGNED ), + COUNT( * ) )
----
60

skipif mysql # not compatible
query I rowsort label-6806
SELECT COALESCE ( + + 60, + - 30 / + 82 + 93 + - COUNT ( * ) * CAST ( - CASE 12 WHEN + 98 THEN + + 9 END AS INTEGER ), + COUNT ( * ) )
----
60

query I rowsort
SELECT DISTINCT - + 96 + + CASE 39 WHEN - 49 THEN - + 81 - - - 55 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6808
SELECT ALL + 58 * + 8 DIV - - COUNT( * ) + - 88
----
376

skipif mysql # not compatible
query I rowsort label-6808
SELECT ALL + 58 * + 8 / - - COUNT ( * ) + - 88
----
376

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6809
SELECT DISTINCT + ( + 91 ) - + CAST( NULL AS SIGNED ) * - + 71 - - - 58 * + 50 * 18 + 18 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6809
SELECT DISTINCT + ( + 91 ) - + CAST ( NULL AS INTEGER ) * - + 71 - - - 58 * + 50 * 18 + 18 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6810
SELECT DISTINCT COUNT( * ) AS col2, 46 * 23 * COUNT( * ) * + + 74
----
1
78292

skipif mysql # not compatible
query II rowsort label-6810
SELECT DISTINCT COUNT ( * ) AS col2, 46 * 23 * COUNT ( * ) * + + 74
----
1
78292

query I rowsort
SELECT DISTINCT 36 * - 66 AS col0
----
-2376

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

skipif mysql # not compatible
query I rowsort label-6812
SELECT DISTINCT - CAST ( + - CAST ( + + 7 AS REAL ) AS INTEGER ) AS col2
----
7

query I rowsort
SELECT 29 + 70 AS col2
----
99

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6815
SELECT ( - 2 ) * - + 81 + 57 + - - 60 DIV 96
----
219

skipif mysql # not compatible
query I rowsort label-6815
SELECT ( - 2 ) * - + 81 + 57 + - - 60 / 96
----
219

onlyif mysql # aggregate syntax: 
query I rowsort label-6816
SELECT MIN( DISTINCT + + 39 ) col0
----
39

skipif mysql # not compatible
query I rowsort label-6816
SELECT MIN ( DISTINCT + + 39 ) col0
----
39

query I rowsort
SELECT ALL 76 * - 13
----
-988

onlyif mysql # aggregate syntax: 
query I rowsort label-6818
SELECT ALL - NULLIF ( ( + + 11 ), - COUNT( * ) ) * ( 46 ) + - - 91 AS col2
----
-415

skipif mysql # not compatible
query I rowsort label-6818
SELECT ALL - NULLIF ( ( + + 11 ), - COUNT ( * ) ) * ( 46 ) + - - 91 AS col2
----
-415

onlyif mysql # aggregate syntax: 
query I rowsort label-6819
SELECT AVG ( + 58 ) * + + CASE COUNT( * ) WHEN - ( + - 64 ) THEN COUNT( * ) + + - 8 + 62 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6819
SELECT AVG ( + 58 ) * + + CASE COUNT ( * ) WHEN - ( + - 64 ) THEN COUNT ( * ) + + - 8 + 62 END
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6821
SELECT SUM( DISTINCT 67 ) col2
----
67

skipif mysql # not compatible
query I rowsort label-6821
SELECT SUM ( DISTINCT 67 ) col2
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-6822
SELECT + CASE + ( - 51 ) WHEN + SUM( DISTINCT + - 11 ) * 92 THEN NULL WHEN - + 5 * 55 THEN - 72 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6822
SELECT + CASE + ( - 51 ) WHEN + SUM ( DISTINCT + - 11 ) * 92 THEN NULL WHEN - + 5 * 55 THEN - 72 ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6823
SELECT ALL - 66 + - - ( + + 69 ) * - CAST( - 94 AS SIGNED ) + + 73 DIV + + 77 - 56
----
6364

skipif mysql # not compatible
query I rowsort label-6823
SELECT ALL - 66 + - - ( + + 69 ) * - CAST ( - 94 AS INTEGER ) + + 73 / + + 77 - 56
----
6364

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6824
SELECT - 66 + NULLIF ( COUNT( * ), 93 ) + CAST( 98 AS SIGNED ) * + 76 - - 71 * + 23 * - ( - + 49 ) + - COUNT( + 58 )
----
87399

skipif mysql # not compatible
query I rowsort label-6824
SELECT - 66 + NULLIF ( COUNT ( * ), 93 ) + CAST ( 98 AS INTEGER ) * + 76 - - 71 * + 23 * - ( - + 49 ) + - COUNT ( + 58 )
----
87399

onlyif mysql # aggregate syntax: 
query II rowsort label-6825
SELECT ALL ( + - 19 ) * 20 + - + 72 + - 47 col2, - 62 + 80 + - - COUNT( * )
----
-499
19

skipif mysql # not compatible
query II rowsort label-6825
SELECT ALL ( + - 19 ) * 20 + - + 72 + - 47 col2, - 62 + 80 + - - COUNT ( * )
----
-499
19

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

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

query I rowsort
SELECT ALL 80 + + 10 col2
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6828
SELECT DISTINCT - - COALESCE ( - - 68, - COUNT( * ) + 10 * + CAST( NULL AS SIGNED ) ) + - 74 + + 71
----
65

skipif mysql # not compatible
query I rowsort label-6828
SELECT DISTINCT - - COALESCE ( - - 68, - COUNT ( * ) + 10 * + CAST ( NULL AS INTEGER ) ) + - 74 + + 71
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-6829
SELECT ALL + + 86 + - MAX( 65 ) * - COUNT( * )
----
151

skipif mysql # not compatible
query I rowsort label-6829
SELECT ALL + + 86 + - MAX ( 65 ) * - COUNT ( * )
----
151

onlyif mysql # aggregate syntax: 
query I rowsort label-6830
SELECT + + 19 * + + CASE + 81 WHEN 72 / 24 + + + COUNT( * ) THEN 12 END * + + MAX( DISTINCT + 87 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6830
SELECT + + 19 * + + CASE + 81 WHEN 72 / 24 + + + COUNT ( * ) THEN 12 END * + + MAX ( DISTINCT + 87 ) AS col2
----
NULL

query I rowsort
SELECT ALL - 14 * - 2
----
28

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

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

query I rowsort
SELECT DISTINCT 25 + - 86
----
-61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6834
SELECT ALL + + COUNT( * ) + CASE + + 26 WHEN - 2 + + + MAX( 59 ) THEN NULL ELSE ( + - 54 ) DIV + 19 END
----
-1

skipif mysql # not compatible
query I rowsort label-6834
SELECT ALL + + COUNT ( * ) + CASE + + 26 WHEN - 2 + + + MAX ( 59 ) THEN NULL ELSE ( + - 54 ) / + 19 END
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-6835
SELECT + 13 - + + 12 DIV + 22 AS col0
----
13

skipif mysql # not compatible
query I rowsort label-6835
SELECT + 13 - + + 12 / + 22 AS col0
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6836
SELECT + 22 + + - CAST( 21 AS SIGNED ) * + - MAX( - 44 ) col2
----
-902

skipif mysql # not compatible
query I rowsort label-6836
SELECT + 22 + + - CAST ( 21 AS INTEGER ) * + - MAX ( - 44 ) col2
----
-902

onlyif mysql # DIV for integer division: 
query I rowsort label-6837
SELECT + 26 DIV 54 * - 67 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6837
SELECT + 26 / 54 * - 67 AS col2
----
0

query I rowsort
SELECT - 96 * ( + 84 ) col1
----
-8064

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6839
SELECT ALL NULLIF ( COUNT( * ), - ( + COUNT( * ) ) ) - + - 26 - - 64 + - 22 + - + 21 * - + 0 * 33 col2, 82 DIV + 80 AS col0
----
69
1

skipif mysql # not compatible
query II rowsort label-6839
SELECT ALL NULLIF ( COUNT ( * ), - ( + COUNT ( * ) ) ) - + - 26 - - 64 + - 22 + - + 21 * - + 0 * 33 col2, 82 / + 80 AS col0
----
69
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6840
SELECT ALL ( + - ( - 49 ) ) AS col1, 55 * - COUNT( * )
----
49
-55

skipif mysql # not compatible
query II rowsort label-6840
SELECT ALL ( + - ( - 49 ) ) AS col1, 55 * - COUNT ( * )
----
49
-55

query I rowsort
SELECT ALL - 15 - + 73
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6842
SELECT ALL COUNT( * ) AS col2, - CAST( + COALESCE ( - 58, + 20 / + 71 * - 68 * + + CAST( - 4 AS SIGNED ) * - 68 + + 79 * + - COALESCE ( - 23, CASE - 88 WHEN - 8 THEN - 5 WHEN + COALESCE ( - 93, + + 27 ) + - 25 / - + 20 THEN + 62 * + COUNT( * ) END / 67 / + COUNT( - + 66 ) ) + - ( 49 ) ) AS SIGNED ) AS col2
----
1
58

skipif mysql # not compatible
query II rowsort label-6842
SELECT ALL COUNT ( * ) AS col2, - CAST ( + COALESCE ( - 58, + 20 / + 71 * - 68 * + + CAST ( - 4 AS INTEGER ) * - 68 + + 79 * + - COALESCE ( - 23, CASE - 88 WHEN - 8 THEN - 5 WHEN + COALESCE ( - 93, + + 27 ) + - 25 / - + 20 THEN + 62 * + COUNT ( * ) END / 67 / + COUNT ( - + 66 ) ) + - ( 49 ) ) AS INTEGER ) AS col2
----
1
58

query I rowsort
SELECT - 24 + - - 17
----
-7

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

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

query I rowsort
SELECT DISTINCT NULLIF ( + 52, + - 64 ) AS col2
----
52

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6847
SELECT ( COALESCE ( - - 18, + - 56 + + CASE - 32 WHEN - - 85 + - MAX( + - 99 ) THEN 98 WHEN 84 / 57 * + - 25 - 37 + ( COALESCE ( + ( NULLIF ( + + ( 98 ), NULLIF ( 58, + CASE 3 WHEN - + COUNT( * ) THEN NULL ELSE - 96 * + 77 * + + 45 END / + + 27 ) ) ), - 22 * + CASE ( - CASE - 94 WHEN - 44 * - 37 THEN - 70 ELSE + 46 / - 96 END ) WHEN 0 / + 26 THEN 72 WHEN + 26 * + 64 THEN NULL ELSE NULL END + - 26 - 9, - COUNT( DISTINCT + 67 ) ) ) * 88 THEN NULL ELSE NULL END * + 35 ) ) AS col1
----
18

skipif mysql # not compatible
query I rowsort label-6847
SELECT ( COALESCE ( - - 18, + - 56 + + CASE - 32 WHEN - - 85 + - MAX ( + - 99 ) THEN 98 WHEN 84 / 57 * + - 25 - 37 + ( COALESCE ( + ( NULLIF ( + + ( 98 ), NULLIF ( 58, + CASE 3 WHEN - + COUNT ( * ) THEN NULL ELSE - 96 * + 77 * + + 45 END / + + 27 ) ) ), - 22 * + CASE ( - CASE - 94 WHEN - 44 * - 37 THEN - 70 ELSE + 46 / - 96 END ) WHEN 0 / + 26 THEN 72 WHEN + 26 * + 64 THEN NULL ELSE NULL END + - 26 - 9, - COUNT ( DISTINCT + 67 ) ) ) * 88 THEN NULL ELSE NULL END * + 35 ) ) AS col1
----
18

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6849
SELECT ALL + MIN( CASE CAST( NULL AS SIGNED ) WHEN 57 THEN - 0 * - 34 * - + 0 + 15 ELSE NULL END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6849
SELECT ALL + MIN ( CASE CAST ( NULL AS INTEGER ) WHEN 57 THEN - 0 * - 34 * - + 0 + 15 ELSE NULL END ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6850
SELECT DISTINCT - 52 * COALESCE ( - + COUNT( * ), - 5, - 20 )
----
52

skipif mysql # not compatible
query I rowsort label-6850
SELECT DISTINCT - 52 * COALESCE ( - + COUNT ( * ), - 5, - 20 )
----
52

onlyif mysql # aggregate syntax: 
query II rowsort label-6851
SELECT + 5 AS col2, ( MAX( - 41 ) ) AS col0
----
5
-41

skipif mysql # not compatible
query II rowsort label-6851
SELECT + 5 AS col2, ( MAX ( - 41 ) ) AS col0
----
5
-41

query II rowsort
SELECT + 87 * - 74 AS col2, ( - 49 ) * - 52
----
-6438
2548

query I rowsort
SELECT + CASE - 65 WHEN + - 52 THEN NULL WHEN 33 + - 70 THEN - 45 / - 32 + + - 56 * - - 32 END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6854
SELECT + NULLIF ( - CAST( + 11 AS SIGNED ), - 40 ) AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-6854
SELECT + NULLIF ( - CAST ( + 11 AS INTEGER ), - 40 ) AS col0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-6855
SELECT - 81 - COUNT( * ) AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-6855
SELECT - 81 - COUNT ( * ) AS col2
----
-82

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6857
SELECT ALL - 99 * + - 95 + - SUM( + 13 ) + 11 * - + 44 * + - 29 AS col1
----
23428

skipif mysql # not compatible
query I rowsort label-6857
SELECT ALL - 99 * + - 95 + - SUM ( + 13 ) + 11 * - + 44 * + - 29 AS col1
----
23428

onlyif mysql # aggregate syntax: 
query I rowsort label-6858
SELECT + 38 * ( - COUNT( DISTINCT + 64 ) ) * + + 88 - + 36
----
-3380

skipif mysql # not compatible
query I rowsort label-6858
SELECT + 38 * ( - COUNT ( DISTINCT + 64 ) ) * + + 88 - + 36
----
-3380

onlyif mysql # aggregate syntax: 
query I rowsort label-6859
SELECT ALL + SUM( + 86 ) * + 2
----
172

skipif mysql # not compatible
query I rowsort label-6859
SELECT ALL + SUM ( + 86 ) * + 2
----
172

query I rowsort
SELECT + 31 - - 90 * - 38
----
-3389

query II rowsort
SELECT + 39 AS col0, 15
----
39
15

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

query I rowsort
SELECT + - 7 * - + 1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-6864
SELECT - - NULLIF ( - - 85, + MIN( 62 ) ) AS col2
----
85

skipif mysql # not compatible
query I rowsort label-6864
SELECT - - NULLIF ( - - 85, + MIN ( 62 ) ) AS col2
----
85

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6866
SELECT + - 63 + + + 1 + + 94 * - COUNT( * ) * + 21 * 35 * + CAST( NULL AS SIGNED ) / + - 23 * - CAST( 81 AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6866
SELECT + - 63 + + + 1 + + 94 * - COUNT ( * ) * + 21 * 35 * + CAST ( NULL AS INTEGER ) / + - 23 * - CAST ( 81 AS REAL )
----
NULL

query I rowsort
SELECT ALL NULLIF ( + 62, - 3 ) AS col0
----
62

onlyif mysql # aggregate syntax: 
query II rowsort label-6868
SELECT - COALESCE ( - - COUNT( * ), - + 90, 65 ) AS col2, + 66
----
-1
66

skipif mysql # not compatible
query II rowsort label-6868
SELECT - COALESCE ( - - COUNT ( * ), - + 90, 65 ) AS col2, + 66
----
-1
66

query I rowsort
SELECT DISTINCT - 8 * + 16
----
-128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6870
SELECT + 83 + + SUM( ALL 41 ) DIV + CAST( + - COALESCE ( - + 72, 2 * + + ( COALESCE ( - + 60, - 65 + + 87, + + 28 ) ), + 30 ) AS SIGNED ) * + - MAX( DISTINCT - 64 ) - CASE 98 WHEN 21 * 69 THEN NULL WHEN 9 THEN NULL ELSE 96 + 6 + + + 49 + + - MAX( ALL - 87 ) * + 39 + - 71 END + + + 6 AS col0
----
-3384

skipif mysql # not compatible
query I rowsort label-6870
SELECT + 83 + + SUM ( ALL 41 ) / + CAST ( + - COALESCE ( - + 72, 2 * + + ( COALESCE ( - + 60, - 65 + + 87, + + 28 ) ), + 30 ) AS INTEGER ) * + - MAX ( DISTINCT - 64 ) - CASE 98 WHEN 21 * 69 THEN NULL WHEN 9 THEN NULL ELSE 96 + 6 + + + 49 + + - MAX ( ALL - 87 ) * + 39 + - 71 END + + + 6 AS col0
----
-3384

query II rowsort
SELECT ALL ( - 58 ) AS col0, 93
----
-58
93

onlyif mysql # aggregate syntax: 
query II rowsort label-6872
SELECT - ( - 10 ) col0, 67 - + SUM( DISTINCT - ( + 93 ) ) AS col0
----
10
160

skipif mysql # not compatible
query II rowsort label-6872
SELECT - ( - 10 ) col0, 67 - + SUM ( DISTINCT - ( + 93 ) ) AS col0
----
10
160

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6873
SELECT + MAX( DISTINCT - 43 ) + COALESCE ( + 93, + 79 DIV - 86 ) col2
----
50

skipif mysql # not compatible
query I rowsort label-6873
SELECT + MAX ( DISTINCT - 43 ) + COALESCE ( + 93, + 79 / - 86 ) col2
----
50

query I rowsort
SELECT DISTINCT CASE - 83 WHEN - 3 - - 39 THEN + 55 ELSE NULL END col0
----
NULL

query I rowsort
SELECT + 65 + 26 * - 47 * + 28 * + 96
----
-3284671

onlyif mysql # DIV for integer division: 
query I rowsort label-6876
SELECT DISTINCT - 93 DIV ( NULLIF ( + 79, - 68 ) ) DIV - 64
----
0

skipif mysql # not compatible
query I rowsort label-6876
SELECT DISTINCT - 93 / ( NULLIF ( + 79, - 68 ) ) / - 64
----
0

query II rowsort
SELECT ALL 23 + 34 AS col0, 47 col2
----
57
47

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6879
SELECT DISTINCT + 66 * 80 col1, - 39 + - CASE + 31 WHEN + - COUNT( * ) THEN 26 * + NULLIF ( + 49, 19 ) WHEN + ( - 49 ) * - - 16 THEN NULL END + - COUNT( * ) - + COUNT( 42 ) * COUNT( * ) * - CAST( NULL AS SIGNED ) * - - COUNT( * ) - + ( + 22 ) col2
----
5280
NULL

skipif mysql # not compatible
query II rowsort label-6879
SELECT DISTINCT + 66 * 80 col1, - 39 + - CASE + 31 WHEN + - COUNT ( * ) THEN 26 * + NULLIF ( + 49, 19 ) WHEN + ( - 49 ) * - - 16 THEN NULL END + - COUNT ( * ) - + COUNT ( 42 ) * COUNT ( * ) * - CAST ( NULL AS INTEGER ) * - - COUNT ( * ) - + ( + 22 ) col2
----
5280
NULL

query I rowsort
SELECT ALL + 76 + + + 18 - + COALESCE ( - 79, 13 ) + - ( - - 86 ) + + 80
----
167

query II rowsort
SELECT 2 * - 58 AS col2, 18
----
-116
18

query I rowsort
SELECT CASE 30 WHEN + 35 THEN - + 26 + 64 * - 70 WHEN + 49 THEN NULL ELSE NULL END * - 33 * + NULLIF ( + - 39, + 26 ) * + 96 + - 95 + 90 + - COALESCE ( - 0, + 32 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6883
SELECT DISTINCT - COUNT( * ) * - - 31, 22 * - MIN( + 52 ) + + ( - 50 ) AS col1
----
-31
-1194

skipif mysql # not compatible
query II rowsort label-6883
SELECT DISTINCT - COUNT ( * ) * - - 31, 22 * - MIN ( + 52 ) + + ( - 50 ) AS col1
----
-31
-1194

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6884
SELECT ALL - NULLIF ( + 96, - ( + CAST( NULL AS SIGNED ) ) ) AS col1
----
-96

skipif mysql # not compatible
query I rowsort label-6884
SELECT ALL - NULLIF ( + 96, - ( + CAST ( NULL AS INTEGER ) ) ) AS col1
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6885
SELECT 65 + + 71 - - COUNT( * ) * + + 41 * - - 88 * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6885
SELECT 65 + + 71 - - COUNT ( * ) * + + 41 * - - 88 * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT 95 * + 75 - - 0 + 19
----
7144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6887
SELECT DISTINCT - - 78 * 38 * + CAST( NULL AS SIGNED ) + COUNT( * ) + + 8, + 6 col1
----
NULL
6

skipif mysql # not compatible
query II rowsort label-6887
SELECT DISTINCT - - 78 * 38 * + CAST ( NULL AS INTEGER ) + COUNT ( * ) + + 8, + 6 col1
----
NULL
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6888
SELECT ALL - + CASE - 19 WHEN + + 58 * + - SUM( 26 ) / + 23 THEN + - NULLIF ( + 73, - 22 ) + 62 + - ( + 69 ) WHEN + 12 THEN + - 55 * + NULLIF ( 8, + + CASE - + 2 WHEN 81 - 48 THEN + 51 WHEN + MIN( - 45 ) THEN + 58 * - + AVG ( + 34 ) ELSE + 70 END - + 83 ) ELSE 6 END AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-6888
SELECT ALL - + CASE - 19 WHEN + + 58 * + - SUM ( 26 ) / + 23 THEN + - NULLIF ( + 73, - 22 ) + 62 + - ( + 69 ) WHEN + 12 THEN + - 55 * + NULLIF ( 8, + + CASE - + 2 WHEN 81 - 48 THEN + 51 WHEN + MIN ( - 45 ) THEN + 58 * - + AVG ( + 34 ) ELSE + 70 END - + 83 ) ELSE 6 END AS col1
----
-6

query I rowsort
SELECT + NULLIF ( CASE + + 33 WHEN 12 * + 54 * - 6 / - 86 THEN + 97 + 37 WHEN + 32 * + 42 / + - 38 + - NULLIF ( - 18, - 93 ) + + - 78 THEN NULL END, - + 96 + + - 39 + 44 - - 50 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6890
SELECT + - MAX( - 89 ) col1
----
89

skipif mysql # not compatible
query I rowsort label-6890
SELECT + - MAX ( - 89 ) col1
----
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6891
SELECT - COALESCE ( + 8, 39 * - + 30 * 82 * 30 * + + 38 ) + 91 DIV + 94 * - - 4 - + COUNT( * )
----
-9

skipif mysql # not compatible
query I rowsort label-6891
SELECT - COALESCE ( + 8, 39 * - + 30 * 82 * 30 * + + 38 ) + 91 / + 94 * - - 4 - + COUNT ( * )
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-6892
SELECT ALL - 31 * CASE - ( + + 17 ) WHEN + 56 THEN - 76 + - 23 WHEN - + NULLIF ( + 78, ( 58 ) + + 70 / 36 + - - 53 ) / + + 97 + 31 + + + 24 * + SUM( - + 5 ) THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6892
SELECT ALL - 31 * CASE - ( + + 17 ) WHEN + 56 THEN - 76 + - 23 WHEN - + NULLIF ( + 78, ( 58 ) + + 70 / 36 + - - 53 ) / + + 97 + 31 + + + 24 * + SUM ( - + 5 ) THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6893
SELECT DISTINCT 43 * 81 + + - 66 + - - CASE 81 WHEN 85 THEN - - 67 + - 97 * - 0 * - - COALESCE ( + - 44, 56 - - 27 + - + 16 + - 40 * - 95, COALESCE ( - 49, 81 ) ) END * + - 73 * + MAX( + ( NULLIF ( - 12, - - 98 * 83 ) ) ) * - SUM( + 19 ) / COUNT( * ) + CASE COUNT( * ) WHEN - 51 + 1 / COUNT( * ) THEN + 58 END + COUNT( * ) * + COUNT( ALL + 51 ) + 75 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6893
SELECT DISTINCT 43 * 81 + + - 66 + - - CASE 81 WHEN 85 THEN - - 67 + - 97 * - 0 * - - COALESCE ( + - 44, 56 - - 27 + - + 16 + - 40 * - 95, COALESCE ( - 49, 81 ) ) END * + - 73 * + MAX ( + ( NULLIF ( - 12, - - 98 * 83 ) ) ) * - SUM ( + 19 ) / COUNT ( * ) + CASE COUNT ( * ) WHEN - 51 + 1 / COUNT ( * ) THEN + 58 END + COUNT ( * ) * + COUNT ( ALL + 51 ) + 75 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6894
SELECT - 17 DIV - COALESCE ( - CAST( NULL AS SIGNED ), 96, + + 58 * + + MIN( ALL + 96 ) * - 9 * + - 65 * 25 + - 52 ) * + + 78 - + - CAST( + + 34 AS SIGNED ) + 54 - - 19 * - 97 DIV COUNT( * )
----
-1755

skipif mysql # not compatible
query I rowsort label-6894
SELECT - 17 / - COALESCE ( - CAST ( NULL AS INTEGER ), 96, + + 58 * + + MIN ( ALL + 96 ) * - 9 * + - 65 * 25 + - 52 ) * + + 78 - + - CAST ( + + 34 AS INTEGER ) + 54 - - 19 * - 97 / COUNT ( * )
----
-1755

onlyif mysql # aggregate syntax: 
query I rowsort label-6895
SELECT ALL + COALESCE ( - + COALESCE ( - 35, + 5 * + 25 + ( + 3 ) ), 7 + + NULLIF ( 39, - + 61 ) * - COUNT( * ) ) col0
----
35

skipif mysql # not compatible
query I rowsort label-6895
SELECT ALL + COALESCE ( - + COALESCE ( - 35, + 5 * + 25 + ( + 3 ) ), 7 + + NULLIF ( 39, - + 61 ) * - COUNT ( * ) ) col0
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6896
SELECT 36 * COALESCE ( + + 99, - 81 * + - 40, 35 * + 28 + - - CAST( NULL AS SIGNED ) ) * + + 81 col1
----
288684

skipif mysql # not compatible
query I rowsort label-6896
SELECT 36 * COALESCE ( + + 99, - 81 * + - 40, 35 * + 28 + - - CAST ( NULL AS INTEGER ) ) * + + 81 col1
----
288684

query I rowsort
SELECT DISTINCT - 79 * - ( + + 22 )
----
1738

onlyif mysql # aggregate syntax: 
query II rowsort label-6898
SELECT COUNT( * ) + - 52 AS col2, 28 AS col0
----
-51
28

skipif mysql # not compatible
query II rowsort label-6898
SELECT COUNT ( * ) + - 52 AS col2, 28 AS col0
----
-51
28

onlyif mysql # aggregate syntax: 
query I rowsort label-6899
SELECT 68 * + - ( + - 23 ) * + + 81 + - - ( COUNT( * ) ) * COALESCE ( 15, + 68 * - + 98 + - 47 ) AS col1
----
126699

skipif mysql # not compatible
query I rowsort label-6899
SELECT 68 * + - ( + - 23 ) * + + 81 + - - ( COUNT ( * ) ) * COALESCE ( 15, + 68 * - + 98 + - 47 ) AS col1
----
126699

query I rowsort
SELECT 39 + - - 15
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-6901
SELECT COUNT( * ) - - 34 AS col0
----
35

skipif mysql # not compatible
query I rowsort label-6901
SELECT COUNT ( * ) - - 34 AS col0
----
35

query II rowsort
SELECT 85 AS col0, + NULLIF ( 68, 57 ) AS col0
----
85
68

query II rowsort
SELECT ALL 79, 94 AS col1
----
79
94

query I rowsort
SELECT DISTINCT 18 + + - 69 + - 56 - - 98 AS col1
----
-9

query I rowsort
SELECT 51 - + 19
----
32

query I rowsort
SELECT ALL 53 + CASE - 78 WHEN + 84 THEN NULL WHEN 9 THEN - 35 WHEN + + 74 THEN NULL ELSE NULL END
----
NULL

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

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

query I rowsort
SELECT ALL 23 + - + 99
----
-76

query I rowsort
SELECT ( - ( + - ( - 68 ) ) ) + + 44
----
-24

onlyif mysql # aggregate syntax: 
query II rowsort label-6910
SELECT ALL 5 + - 7 * + 55 AS col1, COUNT( * ) AS col0
----
-380
1

skipif mysql # not compatible
query II rowsort label-6910
SELECT ALL 5 + - 7 * + 55 AS col1, COUNT ( * ) AS col0
----
-380
1

query I rowsort
SELECT ALL 17 + - + 57 AS col0
----
-40

query II rowsort
SELECT - 0 AS col1, 51 * - 19
----
0
-969

query II rowsort
SELECT 93, - 55 col1
----
93
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-6914
SELECT SUM( 63 ) * 94 * + + 6 AS col0
----
35532

skipif mysql # not compatible
query I rowsort label-6914
SELECT SUM ( 63 ) * 94 * + + 6 AS col0
----
35532

query I rowsort
SELECT 18 + + 16 AS col1
----
34

query I rowsort
SELECT ALL + 45 + 39
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-6917
SELECT ALL + 37 * + + MIN( 77 )
----
2849

skipif mysql # not compatible
query I rowsort label-6917
SELECT ALL + 37 * + + MIN ( 77 )
----
2849

onlyif mysql # aggregate syntax: 
query I rowsort label-6918
SELECT ALL - 26 - - 2 * - - COUNT( - 54 ) AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-6918
SELECT ALL - 26 - - 2 * - - COUNT ( - 54 ) AS col1
----
-24

onlyif mysql # aggregate syntax: 
query II rowsort label-6919
SELECT + - 79, + COUNT( * ) - - + 18 AS col0
----
-79
19

skipif mysql # not compatible
query II rowsort label-6919
SELECT + - 79, + COUNT ( * ) - - + 18 AS col0
----
-79
19

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

query I rowsort
SELECT ALL - - 0 * 98 AS col2
----
0

query I rowsort
SELECT 12 * + 15 AS col0
----
180

query I rowsort
SELECT ALL - COALESCE ( + + 82, + 86 )
----
-82

query I rowsort
SELECT ALL + 41 * 15
----
615

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6925
SELECT - 92 * + 19 + COUNT( * ) - + 17 + + 5 * COUNT( * ) - + COALESCE ( ( - CAST( NULL AS SIGNED ) ), - + CAST( + - ( + CAST( NULL AS SIGNED ) ) AS SIGNED ) * 8 ) * - CAST( - - CASE CAST( + - 1 AS DECIMAL ) WHEN + 76 * 2 THEN 69 * - 87 END AS SIGNED ) * 38 * - COUNT( * ) - + + NULLIF ( + 37, - + 1 ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6925
SELECT - 92 * + 19 + COUNT ( * ) - + 17 + + 5 * COUNT ( * ) - + COALESCE ( ( - CAST ( NULL AS INTEGER ) ), - + CAST ( + - ( + CAST ( NULL AS INTEGER ) ) AS INTEGER ) * 8 ) * - CAST ( - - CASE CAST ( + - 1 AS REAL ) WHEN + 76 * 2 THEN 69 * - 87 END AS INTEGER ) * 38 * - COUNT ( * ) - + + NULLIF ( + 37, - + 1 ) + + CAST ( NULL AS INTEGER )
----
NULL

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6929
SELECT CASE + 22 WHEN - 61 + + - CAST( 34 AS SIGNED ) THEN - + NULLIF ( 28, + + 85 * - 82 * NULLIF ( 44, - 9 ) + + 6 + - 24 + + 18 ) WHEN + 47 + - + 80 + 97 + 47 THEN NULL ELSE NULL END AS col0, 15
----
NULL
15

skipif mysql # not compatible
query II rowsort label-6929
SELECT CASE + 22 WHEN - 61 + + - CAST ( 34 AS INTEGER ) THEN - + NULLIF ( 28, + + 85 * - 82 * NULLIF ( 44, - 9 ) + + 6 + - 24 + + 18 ) WHEN + 47 + - + 80 + 97 + 47 THEN NULL ELSE NULL END AS col0, 15
----
NULL
15

query I rowsort
SELECT + 42 + + 93 + + 9 + + + 14 + 89 col1
----
247

query II rowsort
SELECT DISTINCT + 93 + - 84 AS col0, - 25 col1
----
9
-25

query I rowsort
SELECT 52 + - + 21
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6933
SELECT + 9 * - + 6 - + SUM( DISTINCT - CAST( - 52 AS SIGNED ) ) AS col2
----
-106

skipif mysql # not compatible
query I rowsort label-6933
SELECT + 9 * - + 6 - + SUM ( DISTINCT - CAST ( - 52 AS INTEGER ) ) AS col2
----
-106

onlyif mysql # DIV for integer division: 
query I rowsort label-6934
SELECT 58 DIV 88
----
0

skipif mysql # not compatible
query I rowsort label-6934
SELECT 58 / 88
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6935
SELECT ALL + NULLIF ( - ( + - 74 ), CAST( 19 AS SIGNED ) ) + - 86 AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-6935
SELECT ALL + NULLIF ( - ( + - 74 ), CAST ( 19 AS INTEGER ) ) + - 86 AS col2
----
-12

query II rowsort
SELECT ALL 12 + 55 AS col1, ( - + 4 ) + + + ( + - 90 )
----
67
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-6937
SELECT ALL - 48 + - - CASE 2 WHEN COUNT( * ) / 50 THEN - 46 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6937
SELECT ALL - 48 + - - CASE 2 WHEN COUNT ( * ) / 50 THEN - 46 END col2
----
NULL

query I rowsort
SELECT DISTINCT + 93 + + 55 AS col1
----
148

query I rowsort
SELECT DISTINCT + 76 + - + 14
----
62

query I rowsort
SELECT ALL - 21 * - 86 AS col1
----
1806

onlyif mysql # aggregate syntax: 
query I rowsort label-6941
SELECT - 75 + + NULLIF ( - + COUNT( * ), - 0 * + 41 )
----
-76

skipif mysql # not compatible
query I rowsort label-6941
SELECT - 75 + + NULLIF ( - + COUNT ( * ), - 0 * + 41 )
----
-76

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6943
SELECT DISTINCT SUM( ALL + 55 ) + - + 99 + - - 92 + 53 * + 44 * - 78 AS col1
----
-181848

skipif mysql # not compatible
query I rowsort label-6943
SELECT DISTINCT SUM ( ALL + 55 ) + - + 99 + - - 92 + 53 * + 44 * - 78 AS col1
----
-181848

query I rowsort
SELECT DISTINCT CASE + - 7 WHEN - - 42 THEN 69 / - 2 END
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6946
SELECT ALL MIN( - 63 ) * - CASE CASE - AVG ( + - 39 ) WHEN COUNT( * ) THEN NULL ELSE + 4 + - 45 END WHEN 87 + - 38 THEN NULL WHEN - + ( - + 85 ) * 11 * + 9 + - + 71 THEN - - COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6946
SELECT ALL MIN ( - 63 ) * - CASE CASE - AVG ( + - 39 ) WHEN COUNT ( * ) THEN NULL ELSE + 4 + - 45 END WHEN 87 + - 38 THEN NULL WHEN - + ( - + 85 ) * 11 * + 9 + - + 71 THEN - - COUNT ( * ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6947
SELECT + 22 + - COUNT( * ) + + + 28 * + MIN( ALL 26 ) + - 52 * 86 col0
----
-3723

skipif mysql # not compatible
query I rowsort label-6947
SELECT + 22 + - COUNT ( * ) + + + 28 * + MIN ( ALL 26 ) + - 52 * 86 col0
----
-3723

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6948
SELECT DISTINCT COUNT( * ) DIV + 29 col1
----
0

skipif mysql # not compatible
query I rowsort label-6948
SELECT DISTINCT COUNT ( * ) / + 29 col1
----
0

query I rowsort
SELECT + + 61 + + - 69
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-6950
SELECT ALL + MAX( + 93 ) - + 74 AS col0
----
19

skipif mysql # not compatible
query I rowsort label-6950
SELECT ALL + MAX ( + 93 ) - + 74 AS col0
----
19

onlyif mysql # aggregate syntax: 
query II rowsort label-6951
SELECT ALL - CASE - NULLIF ( COUNT( + 88 ), 3 ) WHEN - 87 * + 85 THEN + + 53 WHEN SUM( DISTINCT 59 ) * + COALESCE ( + 96, - NULLIF ( + + 61, + 22 ), + 67 ) - - - 4 THEN NULL ELSE + 60 - + 72 END * 29 AS col1, + COUNT( * )
----
348
1

skipif mysql # not compatible
query II rowsort label-6951
SELECT ALL - CASE - NULLIF ( COUNT ( + 88 ), 3 ) WHEN - 87 * + 85 THEN + + 53 WHEN SUM ( DISTINCT 59 ) * + COALESCE ( + 96, - NULLIF ( + + 61, + 22 ), + 67 ) - - - 4 THEN NULL ELSE + 60 - + 72 END * 29 AS col1, + COUNT ( * )
----
348
1

query I rowsort
SELECT + 36 + - + 52 AS col2
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-6953
SELECT ALL + - CASE SUM( + + 93 ) WHEN + 45 THEN - COUNT( + 70 ) * - 50 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6953
SELECT ALL + - CASE SUM ( + + 93 ) WHEN + 45 THEN - COUNT ( + 70 ) * - 50 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6954
SELECT + 19 - - - 49 + + 17 + + 2 - + MIN( ALL 46 ) * - COUNT( * ) * - + 26 + ( + - 56 ) * + COALESCE ( - 31, - - ( ( - MIN( + 47 ) ) ), COUNT( * ) + 39 ) AS col2
----
529

skipif mysql # not compatible
query I rowsort label-6954
SELECT + 19 - - - 49 + + 17 + + 2 - + MIN ( ALL 46 ) * - COUNT ( * ) * - + 26 + ( + - 56 ) * + COALESCE ( - 31, - - ( ( - MIN ( + 47 ) ) ), COUNT ( * ) + 39 ) AS col2
----
529

query I rowsort
SELECT - 24 * 61 + 7 AS col2
----
-1457

onlyif mysql # DIV for integer division: 
query II rowsort label-6956
SELECT - + 36 DIV + 65 + - 19 + - 86 AS col1, 7 AS col1
----
-105
7

skipif mysql # not compatible
query II rowsort label-6956
SELECT - + 36 / + 65 + - 19 + - 86 AS col1, 7 AS col1
----
-105
7

onlyif mysql # aggregate syntax: 
query I rowsort label-6957
SELECT + - 79 * 55 + - 33 - + ( + - 4 ) + - NULLIF ( COUNT( * ), COUNT( * ) ) + 30 * 62 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6957
SELECT + - 79 * 55 + - 33 - + ( + - 4 ) + - NULLIF ( COUNT ( * ), COUNT ( * ) ) + 30 * 62 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6958
SELECT DISTINCT + 81 DIV + 51 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6958
SELECT DISTINCT + 81 / + 51 AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6959
SELECT + + CAST( 23 AS SIGNED ) + CASE WHEN NOT + 95 BETWEEN - 88 / 73 * - COUNT( * ) + + COUNT( - - 38 ) AND - 25 THEN 43 ELSE - + 92 * + - 61 END + - - 16
----
82

skipif mysql # not compatible
query I rowsort label-6959
SELECT + + CAST ( 23 AS INTEGER ) + CASE WHEN NOT + 95 BETWEEN - 88 / 73 * - COUNT ( * ) + + COUNT ( - - 38 ) AND - 25 THEN 43 ELSE - + 92 * + - 61 END + - - 16
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-6960
SELECT ALL + 54 DIV 10 - ( 35 ) AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-6960
SELECT ALL + 54 / 10 - ( 35 ) AS col0
----
-30

query I rowsort
SELECT + 64 * - 32 * + - 63 * + 20 + - 31 AS col0
----
2580449

onlyif mysql # aggregate syntax: 
query I rowsort label-6962
SELECT SUM( - - 59 )
----
59

skipif mysql # not compatible
query I rowsort label-6962
SELECT SUM ( - - 59 )
----
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6963
SELECT + 77 * 28 + 91 - + + ( + NULLIF ( - + 17, 76 - - COUNT( * ) ) ) * 44 DIV 18 AS col2
----
2288

skipif mysql # not compatible
query I rowsort label-6963
SELECT + 77 * 28 + 91 - + + ( + NULLIF ( - + 17, 76 - - COUNT ( * ) ) ) * 44 / 18 AS col2
----
2288

query I rowsort
SELECT - - 35 * - 68 * 27 AS col2
----
-64260

query I rowsort
SELECT ALL - 70 * - - 94 + - 57 + 65 + - + 80 + + 6 col2
----
-6646

onlyif mysql # aggregate syntax: 
query I rowsort label-6966
SELECT + + 7 + + CASE - - 79 WHEN - 79 THEN - - 7 * + - 69 * - 31 WHEN - 59 THEN NULL ELSE + + COUNT( * ) END
----
8

skipif mysql # not compatible
query I rowsort label-6966
SELECT + + 7 + + CASE - - 79 WHEN - 79 THEN - - 7 * + - 69 * - 31 WHEN - 59 THEN NULL ELSE + + COUNT ( * ) END
----
8

query I rowsort
SELECT DISTINCT 30 * - CASE + + 47 WHEN - 24 THEN + 44 / - 47 * + 85 * + NULLIF ( + COALESCE ( + 78, 48, + ( + 59 ) ), + - 60 ) + - 70 WHEN + 81 THEN NULL ELSE NULL END * - 18 + 71
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6968
SELECT COUNT( * ) AS col1, 63 * - 92 + + 98 AS col0
----
1
-5698

skipif mysql # not compatible
query II rowsort label-6968
SELECT COUNT ( * ) AS col1, 63 * - 92 + + 98 AS col0
----
1
-5698

onlyif mysql # DIV for integer division: 
query I rowsort label-6969
SELECT ALL 92 * 35 + - 56 DIV + 98 AS col1
----
3220

skipif mysql # not compatible
query I rowsort label-6969
SELECT ALL 92 * 35 + - 56 / + 98 AS col1
----
3220

query I rowsort
SELECT DISTINCT NULLIF ( + 45, - + 35 + + NULLIF ( + 23, - 60 ) )
----
45

query II rowsort
SELECT 9, 38 - + 30 AS col0
----
9
8

query I rowsort
SELECT - 40 * - 90 * + 90 AS col2
----
324000

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6973
SELECT + 58 + - 11 + NULLIF ( + 7, + 42 ) * + COUNT( * ) + + - 74 + + 53, COUNT( * ) DIV + 17 * - - 36 AS col2
----
33
0

skipif mysql # not compatible
query II rowsort label-6973
SELECT + 58 + - 11 + NULLIF ( + 7, + 42 ) * + COUNT ( * ) + + - 74 + + 53, COUNT ( * ) / + 17 * - - 36 AS col2
----
33
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6974
SELECT DISTINCT - COUNT( * ) - - 88 + + + 87 * - 76
----
-6525

skipif mysql # not compatible
query I rowsort label-6974
SELECT DISTINCT - COUNT ( * ) - - 88 + + + 87 * - 76
----
-6525

query I rowsort
SELECT - 4 * + 96 * 96 * - 6
----
221184

query I rowsort
SELECT DISTINCT ( + 47 ) AS col1
----
47

query I rowsort
SELECT - 98 + 75 + - 66 AS col0
----
-89

query II rowsort
SELECT DISTINCT 57, + 99 AS col2
----
57
99

query I rowsort
SELECT + - 49 + 81 + 80 + - 56 - 76 col1
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-6980
SELECT + + MAX( DISTINCT + 89 ) * + + MIN( - + 93 ) AS col0
----
-8277

skipif mysql # not compatible
query I rowsort label-6980
SELECT + + MAX ( DISTINCT + 89 ) * + + MIN ( - + 93 ) AS col0
----
-8277

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6982
SELECT + - 11 AS col2, CASE + + CASE - CAST( NULL AS SIGNED ) WHEN + 44 * - 35 * - - 61 + - + 6 THEN + - ( - CASE - + COUNT( * ) WHEN + + 87 THEN NULL WHEN 40 THEN - 32 END ) + - COALESCE ( + 15, + 27 ) END WHEN + + ( + + CAST( - - 71 AS SIGNED ) ) THEN NULL ELSE - 63 + COUNT( * ) + + + 5 DIV - + 41 END + 8
----
-11
-54

skipif mysql # not compatible
query II rowsort label-6982
SELECT + - 11 AS col2, CASE + + CASE - CAST ( NULL AS INTEGER ) WHEN + 44 * - 35 * - - 61 + - + 6 THEN + - ( - CASE - + COUNT ( * ) WHEN + + 87 THEN NULL WHEN 40 THEN - 32 END ) + - COALESCE ( + 15, + 27 ) END WHEN + + ( + + CAST ( - - 71 AS INTEGER ) ) THEN NULL ELSE - 63 + COUNT ( * ) + + + 5 / - + 41 END + 8
----
-11
-54

query II rowsort
SELECT + 36, + 60 AS col2
----
36
60

onlyif mysql # aggregate syntax: 
query I rowsort label-6984
SELECT ALL + 25 * - SUM( ALL + 15 ) AS col2
----
-375

skipif mysql # not compatible
query I rowsort label-6984
SELECT ALL + 25 * - SUM ( ALL + 15 ) AS col2
----
-375

query I rowsort
SELECT - 20 * - 95 - - - 38 + - 28 col2
----
1834

onlyif mysql # DIV for integer division: 
query I rowsort label-6986
SELECT + ( - 32 ) DIV + 30 col0
----
-1

skipif mysql # not compatible
query I rowsort label-6986
SELECT + ( - 32 ) / + 30 col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-6987
SELECT + + 78 + 36 + + COUNT( * ) * COUNT( * ) + + 78 AS col1, - ( 78 )
----
193
-78

skipif mysql # not compatible
query II rowsort label-6987
SELECT + + 78 + 36 + + COUNT ( * ) * COUNT ( * ) + + 78 AS col1, - ( 78 )
----
193
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6988
SELECT - CAST( + 93 AS SIGNED ) AS col2
----
-93

skipif mysql # not compatible
query I rowsort label-6988
SELECT - CAST ( + 93 AS INTEGER ) AS col2
----
-93

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6989
SELECT + - COALESCE ( 5, - + 68, - - 4 ) DIV + SUM( + + 34 ) * 34 + + - COUNT( * ) + - - 6 + 44 AS col1, + 34 + + 6
----
49
40

skipif mysql # not compatible
query II rowsort label-6989
SELECT + - COALESCE ( 5, - + 68, - - 4 ) / + SUM ( + + 34 ) * 34 + + - COUNT ( * ) + - - 6 + 44 AS col1, + 34 + + 6
----
49
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6990
SELECT DISTINCT 30 DIV - MAX( DISTINCT - + 71 )
----
0

skipif mysql # not compatible
query I rowsort label-6990
SELECT DISTINCT 30 / - MAX ( DISTINCT - + 71 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6991
SELECT ALL + COUNT( DISTINCT - + 9 ) + - ( ( - - 10 ) ) col0
----
-9

skipif mysql # not compatible
query I rowsort label-6991
SELECT ALL + COUNT ( DISTINCT - + 9 ) + - ( ( - - 10 ) ) col0
----
-9

query I rowsort
SELECT 57 * - ( - 32 ) * + 43 + - 54 AS col0
----
78378

query I rowsort
SELECT 96 + + NULLIF ( 77, + 76 ) AS col2
----
173

query II rowsort
SELECT ALL 53 + + 39, 15 AS col0
----
92
15

query II rowsort
SELECT - 44, 87 col1
----
-44
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6996
SELECT ALL + 58 * - 46 * - SUM( ALL - + CAST( - - 37 AS SIGNED ) )
----
-98716

skipif mysql # not compatible
query I rowsort label-6996
SELECT ALL + 58 * - 46 * - SUM ( ALL - + CAST ( - - 37 AS INTEGER ) )
----
-98716

query II rowsort
SELECT 95 AS col0, 21 + 23
----
95
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6998
SELECT ALL 34 * - ( COUNT( * ) ) DIV 85
----
0

skipif mysql # not compatible
query I rowsort label-6998
SELECT ALL 34 * - ( COUNT ( * ) ) / 85
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6999
SELECT ALL 5 AS col2, + 89 * + + 84 - - - 55 - + COUNT( * ) * + + 57
----
5
7364

skipif mysql # not compatible
query II rowsort label-6999
SELECT ALL 5 AS col2, + 89 * + + 84 - - - 55 - + COUNT ( * ) * + + 57
----
5
7364

query I rowsort
SELECT ALL 87 * - + 43 AS col0
----
-3741

query II rowsort
SELECT DISTINCT 59 AS col2, 37 * - ( 53 ) AS col1
----
59
-1961

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7003
SELECT 1 DIV ( + 94 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7003
SELECT 1 / ( + 94 ) AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7004
SELECT DISTINCT - 47 DIV - 79 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7004
SELECT DISTINCT - 47 / - 79 AS col0
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7006
SELECT ALL - + 93 * + + ( - - 12 ) * + COUNT( + - 77 ) AS col0
----
-1116

skipif mysql # not compatible
query I rowsort label-7006
SELECT ALL - + 93 * + + ( - - 12 ) * + COUNT ( + - 77 ) AS col0
----
-1116

onlyif mysql # aggregate syntax: 
query I rowsort label-7007
SELECT - 54 + + - 32 * - 55 + + - 97 * - COUNT( * ) + ( - + ( - - MIN( - - 84 ) ) )
----
1719

skipif mysql # not compatible
query I rowsort label-7007
SELECT - 54 + + - 32 * - 55 + + - 97 * - COUNT ( * ) + ( - + ( - - MIN ( - - 84 ) ) )
----
1719

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-7008
SELECT - 68 + COALESCE ( 48, - + CASE + 91 WHEN - - 53 * - 5 * - + 90 + 73 THEN - 71 ELSE + + ( + 11 ) + + 74 * + ( + COUNT( * ) ) + - - 35 - - + CAST( - ( - - 26 ) AS SIGNED ) DIV - CASE ( + - 79 ) WHEN - CAST( NULL AS DECIMAL ) * - + 80 + - 9 + NULLIF ( 22, + 3 ) + - 45 + - + 87 * + COUNT( * ) - - 35 DIV - 50 + - 9 + - COUNT( * ) THEN NULL WHEN + 42 THEN CAST( NULL AS SIGNED ) WHEN + 1 THEN NULL END * 64 END ) + - CAST( 9 + + COUNT( * ) AS SIGNED ) * 57
----
-590

skipif mysql # not compatible
query I rowsort label-7008
SELECT - 68 + COALESCE ( 48, - + CASE + 91 WHEN - - 53 * - 5 * - + 90 + 73 THEN - 71 ELSE + + ( + 11 ) + + 74 * + ( + COUNT ( * ) ) + - - 35 - - + CAST ( - ( - - 26 ) AS INTEGER ) / - CASE ( + - 79 ) WHEN - CAST ( NULL AS REAL ) * - + 80 + - 9 + NULLIF ( 22, + 3 ) + - 45 + - + 87 * + COUNT ( * ) - - 35 / - 50 + - 9 + - COUNT ( * ) THEN NULL WHEN + 42 THEN CAST ( NULL AS INTEGER ) WHEN + 1 THEN NULL END * 64 END ) + - CAST ( 9 + + COUNT ( * ) AS INTEGER ) * 57
----
-590

query II rowsort
SELECT ALL 3 AS col1, + 88 AS col1
----
3
88

onlyif mysql # aggregate syntax: 
query II rowsort label-7010
SELECT DISTINCT + MAX( 56 ) + MIN( ALL + - 95 ), 4 AS col1
----
-39
4

skipif mysql # not compatible
query II rowsort label-7010
SELECT DISTINCT + MAX ( 56 ) + MIN ( ALL + - 95 ), 4 AS col1
----
-39
4

query I rowsort
SELECT + 34 + 44 * - - 12 AS col1
----
562

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7012
SELECT - NULLIF ( - - 87, - 90 + - CAST( NULL AS SIGNED ) * - 76 )
----
-87

skipif mysql # not compatible
query I rowsort label-7012
SELECT - NULLIF ( - - 87, - 90 + - CAST ( NULL AS INTEGER ) * - 76 )
----
-87

query I rowsort
SELECT + ( - + 62 ) - - 55
----
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-7014
SELECT + 49, COALESCE ( + + 50, - - 19 * + 46 - + MIN( ALL - 36 ) * + 7, - 67 ) AS col2
----
49
50

skipif mysql # not compatible
query II rowsort label-7014
SELECT + 49, COALESCE ( + + 50, - - 19 * + 46 - + MIN ( ALL - 36 ) * + 7, - 67 ) AS col2
----
49
50

query I rowsort
SELECT DISTINCT 10 + - - 94 * - 94 AS col0
----
-8826

query I rowsort
SELECT ALL 28 + - - 83 AS col0
----
111

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

skipif mysql # not compatible
query I rowsort label-7017
SELECT ALL - - MAX ( DISTINCT - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT DISTINCT - ( + ( - NULLIF ( - 60, + 71 ) ) ) AS col0
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-7019
SELECT 96 + - 17 * - COUNT( * ) + 7
----
120

skipif mysql # not compatible
query I rowsort label-7019
SELECT 96 + - 17 * - COUNT ( * ) + 7
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-7020
SELECT ALL 53 - + COUNT( * ) * 36 + + - COUNT( * ) col2
----
16

skipif mysql # not compatible
query I rowsort label-7020
SELECT ALL 53 - + COUNT ( * ) * 36 + + - COUNT ( * ) col2
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7021
SELECT 67 * - + ( + 50 ) * + CASE - + 74 WHEN 12 THEN + - 0 ELSE - - COUNT( DISTINCT + 4 ) - + - 54 + + 22 + + 3 + + 41 END + 85 + - 68 - - 77 DIV + + NULLIF ( + COUNT( * ), - - CAST( + 70 AS SIGNED ) )
----
-405256

skipif mysql # not compatible
query I rowsort label-7021
SELECT 67 * - + ( + 50 ) * + CASE - + 74 WHEN 12 THEN + - 0 ELSE - - COUNT ( DISTINCT + 4 ) - + - 54 + + 22 + + 3 + + 41 END + 85 + - 68 - - 77 / + + NULLIF ( + COUNT ( * ), - - CAST ( + 70 AS INTEGER ) )
----
-405256

query I rowsort
SELECT 2 * + - 48
----
-96

query I rowsort
SELECT DISTINCT 88 - - 45
----
133

onlyif mysql # DIV for integer division: 
query I rowsort label-7024
SELECT ALL - 63 - - 15 DIV - 80 AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-7024
SELECT ALL - 63 - - 15 / - 80 AS col1
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7025
SELECT ALL COUNT( - CAST( + - 97 AS SIGNED ) ) DIV - - 39
----
0

skipif mysql # not compatible
query I rowsort label-7025
SELECT ALL COUNT ( - CAST ( + - 97 AS INTEGER ) ) / - - 39
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7026
SELECT COALESCE ( + 71, - - 2 ) + - COALESCE ( + COUNT( * ), - + 38 * 34 + 26 + - + COUNT( 30 ) DIV + 61 - + 45, - 50 + + 29 )
----
70

skipif mysql # not compatible
query I rowsort label-7026
SELECT COALESCE ( + 71, - - 2 ) + - COALESCE ( + COUNT ( * ), - + 38 * 34 + 26 + - + COUNT ( 30 ) / + 61 - + 45, - 50 + + 29 )
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7027
SELECT DISTINCT COUNT( * ) DIV 11 AS col1, - 61 + ( + 73 ) col1
----
0
12

skipif mysql # not compatible
query II rowsort label-7027
SELECT DISTINCT COUNT ( * ) / 11 AS col1, - 61 + ( + 73 ) col1
----
0
12

query I rowsort
SELECT 92 * - - 37
----
3404

onlyif mysql # DIV for integer division: 
query I rowsort label-7029
SELECT 27 + + 77 DIV + 87 + + 10 + + 14
----
51

skipif mysql # not compatible
query I rowsort label-7029
SELECT 27 + + 77 / + 87 + + 10 + + 14
----
51

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

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

query I rowsort
SELECT ALL 33 * 14 AS col2
----
462

query I rowsort
SELECT 17 * 73
----
1241

query I rowsort
SELECT ALL 45 + 39
----
84

query I rowsort
SELECT DISTINCT - + CASE + 30 WHEN + 73 THEN 51 WHEN + - 23 + - 69 THEN NULL ELSE NULL END * - 73
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7035
SELECT ALL + + 29 + - - 12 + ( + COUNT( - 62 ) ) + - 33 * CAST( 28 AS SIGNED ) * + 30 AS col1
----
-27678

skipif mysql # not compatible
query I rowsort label-7035
SELECT ALL + + 29 + - - 12 + ( + COUNT ( - 62 ) ) + - 33 * CAST ( 28 AS INTEGER ) * + 30 AS col1
----
-27678

query I rowsort
SELECT ALL 13 * - 38 AS col0
----
-494

onlyif mysql # aggregate syntax: 
query I rowsort label-7037
SELECT + MIN( + 13 ) * - - 76 + - 34 AS col2
----
954

skipif mysql # not compatible
query I rowsort label-7037
SELECT + MIN ( + 13 ) * - - 76 + - 34 AS col2
----
954

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

query I rowsort
SELECT ALL - 66 + - - 38 + 30 col2
----
2

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7041
SELECT ALL CAST( NULL AS SIGNED ) + + 44 + - + 81 * + 75 * + ( - 71 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7041
SELECT ALL CAST ( NULL AS INTEGER ) + + 44 + - + 81 * + 75 * + ( - 71 )
----
NULL

query I rowsort
SELECT DISTINCT + ( + 30 ) * - - 27 + + - 11
----
799

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7043
SELECT ALL + COUNT( * ) * + 18 DIV SUM( ALL + 67 ) + - COUNT( + 8 ) - 73 AS col0
----
-74

skipif mysql # not compatible
query I rowsort label-7043
SELECT ALL + COUNT ( * ) * + 18 / SUM ( ALL + 67 ) + - COUNT ( + 8 ) - 73 AS col0
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-7044
SELECT ALL + MAX( - 27 ) AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-7044
SELECT ALL + MAX ( - 27 ) AS col0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-7045
SELECT ALL + + SUM( - 68 ) * 57 * + 25 AS col0
----
-96900

skipif mysql # not compatible
query I rowsort label-7045
SELECT ALL + + SUM ( - 68 ) * 57 * + 25 AS col0
----
-96900

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7046
SELECT - - ( + ( COUNT( * ) ) ) DIV 33 - + MIN( DISTINCT 45 )
----
-45

skipif mysql # not compatible
query I rowsort label-7046
SELECT - - ( + ( COUNT ( * ) ) ) / 33 - + MIN ( DISTINCT 45 )
----
-45

query I rowsort
SELECT ALL + ( - - 5 ) * + + 72 - + 64
----
296

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7049
SELECT ALL + COALESCE ( 91, COUNT( * ) DIV + 59 DIV + COUNT( * ) + 15 + 99, - 53 + - 4 * - 87 )
----
91

skipif mysql # not compatible
query I rowsort label-7049
SELECT ALL + COALESCE ( 91, COUNT ( * ) / + 59 / + COUNT ( * ) + 15 + 99, - 53 + - 4 * - 87 )
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7050
SELECT - 35 + + SUM( ALL + ( - - CAST( - 68 AS SIGNED ) ) ) col0
----
-103

skipif mysql # not compatible
query I rowsort label-7050
SELECT - 35 + + SUM ( ALL + ( - - CAST ( - 68 AS INTEGER ) ) ) col0
----
-103

query I rowsort
SELECT DISTINCT - 85 * + 68
----
-5780

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7052
SELECT ALL + NULLIF ( + - 78, COALESCE ( + - 19, + 46, - 58 ) + - CAST( 87 AS SIGNED ) * + 75 * - 88 ) col0
----
-78

skipif mysql # not compatible
query I rowsort label-7052
SELECT ALL + NULLIF ( + - 78, COALESCE ( + - 19, + 46, - 58 ) + - CAST ( 87 AS INTEGER ) * + 75 * - 88 ) col0
----
-78

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

skipif mysql # not compatible
query I rowsort label-7053
SELECT CAST ( NULL AS INTEGER ) * + - 96 + 84
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7055
SELECT DISTINCT - 40 DIV 46
----
0

skipif mysql # not compatible
query I rowsort label-7055
SELECT DISTINCT - 40 / 46
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7056
SELECT NULLIF ( + - COUNT( * ), + 90 ) * 46 + - 67 - + + ( - - 67 )
----
-180

skipif mysql # not compatible
query I rowsort label-7056
SELECT NULLIF ( + - COUNT ( * ), + 90 ) * 46 + - 67 - + + ( - - 67 )
----
-180

onlyif mysql # aggregate syntax: 
query I rowsort label-7057
SELECT + 58 + + 89 * ( - + CASE + 42 WHEN + + 15 * 45 THEN - + 46 + + MAX( - + 3 ) ELSE MIN( - ( - + 67 ) ) END ) + + 24 + - + 2 * - ( + 39 ) + + - 24 * + - 98 AS col1
----
-3451

skipif mysql # not compatible
query I rowsort label-7057
SELECT + 58 + + 89 * ( - + CASE + 42 WHEN + + 15 * 45 THEN - + 46 + + MAX ( - + 3 ) ELSE MIN ( - ( - + 67 ) ) END ) + + 24 + - + 2 * - ( + 39 ) + + - 24 * + - 98 AS col1
----
-3451

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

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

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

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

query II rowsort
SELECT ALL 61 AS col0, - 68 AS col1
----
61
-68

query I rowsort
SELECT - 39 * - - 0
----
0

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

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

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

query I rowsort
SELECT + - 17 + 93
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7065
SELECT CAST( - + NULLIF ( - - 94, - 88 ) AS SIGNED ) AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-7065
SELECT CAST ( - + NULLIF ( - - 94, - 88 ) AS INTEGER ) AS col1
----
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-7066
SELECT ALL 20 + 23 + - 33 DIV + 55 AS col0
----
43

skipif mysql # not compatible
query I rowsort label-7066
SELECT ALL 20 + 23 + - 33 / + 55 AS col0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-7067
SELECT DISTINCT 42 * 9 - + ( SUM( COALESCE ( 88, 78, + 85 ) ) )
----
290

skipif mysql # not compatible
query I rowsort label-7067
SELECT DISTINCT 42 * 9 - + ( SUM ( COALESCE ( 88, 78, + 85 ) ) )
----
290

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7068
SELECT - 86 * AVG ( DISTINCT - + CASE - NULLIF ( 39, - CAST( - 23 AS SIGNED ) ) WHEN 80 THEN + 16 * + 90 DIV 27 ELSE NULL END ) col0, - 0 + + - COUNT( * ) DIV + 11 + - 29 col1
----
NULL
-29

skipif mysql # not compatible
query II rowsort label-7068
SELECT - 86 * AVG ( DISTINCT - + CASE - NULLIF ( 39, - CAST ( - 23 AS INTEGER ) ) WHEN 80 THEN + 16 * + 90 / 27 ELSE NULL END ) col0, - 0 + + - COUNT ( * ) / + 11 + - 29 col1
----
NULL
-29

query II rowsort
SELECT - 5, 54 AS col0
----
-5
54

query II rowsort
SELECT ALL 16 AS col1, - 91 * + 5 AS col0
----
16
-455

onlyif mysql # aggregate syntax: 
query I rowsort label-7071
SELECT ALL 0 + - COUNT( * ) + + 47 - - + 79 AS col0
----
125

skipif mysql # not compatible
query I rowsort label-7071
SELECT ALL 0 + - COUNT ( * ) + + 47 - - + 79 AS col0
----
125

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7072
SELECT DISTINCT - 69 * - 60 * + 89 DIV - + COUNT( * )
----
-368460

skipif mysql # not compatible
query I rowsort label-7072
SELECT DISTINCT - 69 * - 60 * + 89 / - + COUNT ( * )
----
-368460

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7073
SELECT DISTINCT COUNT( * ) * + CAST( NULL AS SIGNED ) * 98 * - - MAX( DISTINCT - 35 ) * - COUNT( * ) * - - MAX( ALL + 59 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7073
SELECT DISTINCT COUNT ( * ) * + CAST ( NULL AS INTEGER ) * 98 * - - MAX ( DISTINCT - 35 ) * - COUNT ( * ) * - - MAX ( ALL + 59 ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7074
SELECT ALL 49 - CAST( 15 AS SIGNED )
----
34

skipif mysql # not compatible
query I rowsort label-7074
SELECT ALL 49 - CAST ( 15 AS INTEGER )
----
34

query I rowsort
SELECT + 19 * + 11 AS col0
----
209

query I rowsort
SELECT - 1 * 19 * - 69 + 93 AS col1
----
1404

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7077
SELECT + CAST( - 41 AS SIGNED ) AS col2, - 34 AS col0
----
-41
-34

skipif mysql # not compatible
query II rowsort label-7077
SELECT + CAST ( - 41 AS INTEGER ) AS col2, - 34 AS col0
----
-41
-34

query I rowsort
SELECT - 42 + 68
----
26

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7080
SELECT - CAST( 53 AS SIGNED ) * + - 93
----
4929

skipif mysql # not compatible
query I rowsort label-7080
SELECT - CAST ( 53 AS INTEGER ) * + - 93
----
4929

query I rowsort
SELECT ALL + 99 * + 69
----
6831

onlyif mysql # aggregate syntax: 
query I rowsort label-7082
SELECT ( + + COALESCE ( + + COUNT( * ), COALESCE ( - ( + + 77 ), + 53 - 79 ) ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7082
SELECT ( + + COALESCE ( + + COUNT ( * ), COALESCE ( - ( + + 77 ), + 53 - 79 ) ) ) AS col0
----
1

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7084
SELECT + CAST( + 42 AS SIGNED ) * + 49 * + 97 AS col0
----
199626

skipif mysql # not compatible
query I rowsort label-7084
SELECT + CAST ( + 42 AS INTEGER ) * + 49 * + 97 AS col0
----
199626

onlyif mysql # aggregate syntax: 
query I rowsort label-7085
SELECT - 88 * + - 61 * + 45 + + - SUM( ALL 4 )
----
241556

skipif mysql # not compatible
query I rowsort label-7085
SELECT - 88 * + - 61 * + 45 + + - SUM ( ALL 4 )
----
241556

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7086
SELECT ( - - COUNT( + - CAST( 45 AS SIGNED ) ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7086
SELECT ( - - COUNT ( + - CAST ( 45 AS INTEGER ) ) ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-7087
SELECT ( - CAST( NULL AS SIGNED ) ) AS col1, - 56 * AVG ( ALL - 90 ) + COUNT( * ) - + MIN( + + 98 ) - - CASE + NULLIF ( + 47, 4 ) WHEN 9 THEN + CAST( + + AVG ( ALL - 55 ) AS DECIMAL ) WHEN - 32 THEN NULL ELSE NULL END + + 49 * + COUNT( * ) AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7087
SELECT ( - CAST ( NULL AS INTEGER ) ) AS col1, - 56 * AVG ( ALL - 90 ) + COUNT ( * ) - + MIN ( + + 98 ) - - CASE + NULLIF ( + 47, 4 ) WHEN 9 THEN + CAST ( + + AVG ( ALL - 55 ) AS REAL ) WHEN - 32 THEN NULL ELSE NULL END + + 49 * + COUNT ( * ) AS col2
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7088
SELECT ALL + MIN( - 66 ), + 77 AS col0
----
-66
77

skipif mysql # not compatible
query II rowsort label-7088
SELECT ALL + MIN ( - 66 ), + 77 AS col0
----
-66
77

query I rowsort
SELECT - 28 + + 19 AS col0
----
-9

query I rowsort
SELECT - 98 * - - 85 col1
----
-8330

onlyif mysql # aggregate syntax: 
query I rowsort label-7091
SELECT ALL - 87 * + - 73 + + COUNT( * ) AS col0
----
6352

skipif mysql # not compatible
query I rowsort label-7091
SELECT ALL - 87 * + - 73 + + COUNT ( * ) AS col0
----
6352

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7092
SELECT NULLIF ( - 24, - NULLIF ( - 57, - CAST( - + COUNT( * ) AS SIGNED ) ) ) AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-7092
SELECT NULLIF ( - 24, - NULLIF ( - 57, - CAST ( - + COUNT ( * ) AS INTEGER ) ) ) AS col0
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7093
SELECT - 34 + - 83, + COALESCE ( NULLIF ( - - 9, - ( + 35 ) * 87 ), 3 ) / CAST( NULL AS SIGNED ) + - ( + + 54 ) AS col0
----
-117
NULL

skipif mysql # not compatible
query II rowsort label-7093
SELECT - 34 + - 83, + COALESCE ( NULLIF ( - - 9, - ( + 35 ) * 87 ), 3 ) / CAST ( NULL AS INTEGER ) + - ( + + 54 ) AS col0
----
-117
NULL

query I rowsort
SELECT ALL + ( 28 ) * - + 22 + 32
----
-584

onlyif mysql # aggregate syntax: 
query I rowsort label-7095
SELECT DISTINCT + - 32 * - 97 - 8 - - + COUNT( * )
----
3097

skipif mysql # not compatible
query I rowsort label-7095
SELECT DISTINCT + - 32 * - 97 - 8 - - + COUNT ( * )
----
3097

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7096
SELECT - 92 * + 63 * - - CAST( - 68 AS SIGNED ) * + 13 + + - COUNT( * )
----
5123663

skipif mysql # not compatible
query I rowsort label-7096
SELECT - 92 * + 63 * - - CAST ( - 68 AS INTEGER ) * + 13 + + - COUNT ( * )
----
5123663

query I rowsort
SELECT DISTINCT 20 * - - NULLIF ( 40, + - 99 ) + + 46
----
846

onlyif mysql # aggregate syntax: 
query I rowsort label-7098
SELECT - COUNT( - 42 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-7098
SELECT - COUNT ( - 42 ) col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7099
SELECT - NULLIF ( + CASE 2 WHEN + 99 + - MAX( DISTINCT - 98 ) THEN NULL WHEN + 25 THEN + + 2 END, - - COUNT( * ) ) / - - 94 * - 31 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7099
SELECT - NULLIF ( + CASE 2 WHEN + 99 + - MAX ( DISTINCT - 98 ) THEN NULL WHEN + 25 THEN + + 2 END, - - COUNT ( * ) ) / - - 94 * - 31 AS col1
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7101
SELECT ALL + 23 - - 37 DIV + 70 AS col2
----
23

skipif mysql # not compatible
query I rowsort label-7101
SELECT ALL + 23 - - 37 / + 70 AS col2
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7102
SELECT 14 * + + CAST( + - 13 AS SIGNED )
----
-182

skipif mysql # not compatible
query I rowsort label-7102
SELECT 14 * + + CAST ( + - 13 AS INTEGER )
----
-182

onlyif mysql # DIV for integer division: 
query I rowsort label-7103
SELECT ALL 33 DIV - 89 - 81 AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-7103
SELECT ALL 33 / - 89 - 81 AS col1
----
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7104
SELECT DISTINCT - 32 DIV - - COUNT( * ) AS col1, 76 - - + 7 + 80
----
-32
163

skipif mysql # not compatible
query II rowsort label-7104
SELECT DISTINCT - 32 / - - COUNT ( * ) AS col1, 76 - - + 7 + 80
----
-32
163

query I rowsort
SELECT + 86 * + - 27 * - 1 * - + 92
----
-213624

onlyif mysql # aggregate syntax: 
query I rowsort label-7106
SELECT DISTINCT + CASE + - 53 WHEN - 70 + + 88 * - 41 + + - COUNT( * ) + - COUNT( * ) THEN 98 WHEN - MIN( 79 ) * CASE + + 88 WHEN - SUM( + 93 ) + - 82 + MIN( DISTINCT + 35 ) * + SUM( ALL 2 ) THEN NULL WHEN - + COUNT( * ) THEN SUM( 24 ) * - - COUNT( * ) - - 3 ELSE NULL END + + 30 / + + 64 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7106
SELECT DISTINCT + CASE + - 53 WHEN - 70 + + 88 * - 41 + + - COUNT ( * ) + - COUNT ( * ) THEN 98 WHEN - MIN ( 79 ) * CASE + + 88 WHEN - SUM ( + 93 ) + - 82 + MIN ( DISTINCT + 35 ) * + SUM ( ALL 2 ) THEN NULL WHEN - + COUNT ( * ) THEN SUM ( 24 ) * - - COUNT ( * ) - - 3 ELSE NULL END + + 30 / + + 64 THEN NULL END AS col1
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7108
SELECT 31 DIV 30 - - 64
----
65

skipif mysql # not compatible
query I rowsort label-7108
SELECT 31 / 30 - - 64
----
65

query I rowsort
SELECT ( + COALESCE ( 66, 36, - - 70 ) ) * 58 AS col1
----
3828

onlyif mysql # aggregate syntax: 
query II rowsort label-7110
SELECT ALL MIN( DISTINCT + 53 ) * - 42 AS col2, - 8 AS col0
----
-2226
-8

skipif mysql # not compatible
query II rowsort label-7110
SELECT ALL MIN ( DISTINCT + 53 ) * - 42 AS col2, - 8 AS col0
----
-2226
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-7111
SELECT ALL MAX( - - 24 ) * COUNT( * ) + + COUNT( * ) AS col0
----
25

skipif mysql # not compatible
query I rowsort label-7111
SELECT ALL MAX ( - - 24 ) * COUNT ( * ) + + COUNT ( * ) AS col0
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7112
SELECT NULLIF ( - + 16, - 78 * + 84 + - 52 - + CAST( - 65 AS SIGNED ) * - 99 + - 17 + + 39 * + 99 * 50 / - CASE + CASE + COUNT( * ) WHEN 46 THEN NULL ELSE 52 + + CASE + 68 WHEN + + 23 * - ( - 65 ) THEN - - 52 ELSE 89 * 0 * 17 END + - + 77 + 42 * 59 END WHEN + 37 THEN - 55 * - 79 WHEN + 49 / 1 + - 12 THEN NULL WHEN 42 - - 33 THEN NULL WHEN - ( + 83 ) + 63 THEN NULL ELSE + 46 END ) * + 88 + 6 * 59 col1
----
-1054

skipif mysql # not compatible
query I rowsort label-7112
SELECT NULLIF ( - + 16, - 78 * + 84 + - 52 - + CAST ( - 65 AS INTEGER ) * - 99 + - 17 + + 39 * + 99 * 50 / - CASE + CASE + COUNT ( * ) WHEN 46 THEN NULL ELSE 52 + + CASE + 68 WHEN + + 23 * - ( - 65 ) THEN - - 52 ELSE 89 * 0 * 17 END + - + 77 + 42 * 59 END WHEN + 37 THEN - 55 * - 79 WHEN + 49 / 1 + - 12 THEN NULL WHEN 42 - - 33 THEN NULL WHEN - ( + 83 ) + 63 THEN NULL ELSE + 46 END ) * + 88 + 6 * 59 col1
----
-1054

query II rowsort
SELECT ALL - 57 AS col1, 10 AS col2
----
-57
10

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

skipif mysql # not compatible
query I rowsort label-7114
SELECT DISTINCT - MAX ( - 83 )
----
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7115
SELECT - COUNT( * ) DIV + 69 + - 56 - + 34 AS col0
----
-90

skipif mysql # not compatible
query I rowsort label-7115
SELECT - COUNT ( * ) / + 69 + - 56 - + 34 AS col0
----
-90

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

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

query I rowsort
SELECT DISTINCT + ( + + 44 ) + 25
----
69

query I rowsort
SELECT ALL - 69 + - 53 AS col0
----
-122

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

skipif mysql # not compatible
query I rowsort label-7119
SELECT DISTINCT - SUM ( - 12 )
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-7120
SELECT ALL MIN( DISTINCT + + 62 ) + + + 72 * NULLIF ( + 95, + + 2 ) AS col2
----
6902

skipif mysql # not compatible
query I rowsort label-7120
SELECT ALL MIN ( DISTINCT + + 62 ) + + + 72 * NULLIF ( + 95, + + 2 ) AS col2
----
6902

query I rowsort
SELECT ALL + 96 * NULLIF ( + + 81, + 69 * 40 + 21 * - 16 ) AS col2
----
7776

onlyif mysql # aggregate syntax: 
query I rowsort label-7122
SELECT DISTINCT NULLIF ( 86, - COUNT( DISTINCT 6 ) ) + - - COUNT( * ) AS col2
----
87

skipif mysql # not compatible
query I rowsort label-7122
SELECT DISTINCT NULLIF ( 86, - COUNT ( DISTINCT 6 ) ) + - - COUNT ( * ) AS col2
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-7123
SELECT 56 + + 37 + + - 67 DIV - 30
----
95

skipif mysql # not compatible
query I rowsort label-7123
SELECT 56 + + 37 + + - 67 / - 30
----
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7124
SELECT DISTINCT - 37 * + + 33 DIV - - 11 + + COALESCE ( MAX( ALL + + 61 ), + + 53 * + + COUNT( * ) + - + 62 ) - - - 89, MIN( ALL + + 72 ) * - 21 + 83 + 63 * - 25 - + - 29 + SUM( DISTINCT - 51 ) * 35 * + + 14 + + + MAX( 53 ) AS col1
----
-139
-27912

skipif mysql # not compatible
query II rowsort label-7124
SELECT DISTINCT - 37 * + + 33 / - - 11 + + COALESCE ( MAX ( ALL + + 61 ), + + 53 * + + COUNT ( * ) + - + 62 ) - - - 89, MIN ( ALL + + 72 ) * - 21 + 83 + 63 * - 25 - + - 29 + SUM ( DISTINCT - 51 ) * 35 * + + 14 + + + MAX ( 53 ) AS col1
----
-139
-27912

onlyif mysql # aggregate syntax: 
query I rowsort label-7125
SELECT ALL + 79 * ( + ( MAX( + - 79 ) ) ) AS col2
----
-6241

skipif mysql # not compatible
query I rowsort label-7125
SELECT ALL + 79 * ( + ( MAX ( + - 79 ) ) ) AS col2
----
-6241

onlyif mysql # aggregate syntax: 
query I rowsort label-7126
SELECT + 59 * + + 17 + - COUNT( - 74 )
----
1002

skipif mysql # not compatible
query I rowsort label-7126
SELECT + 59 * + + 17 + - COUNT ( - 74 )
----
1002

query I rowsort
SELECT + 46 * + 15 col1
----
690

query I rowsort
SELECT 26 + - - 43 * 42 * + - 6 AS col1
----
-10810

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7129
SELECT 69 * - - CASE - 93 WHEN 42 THEN NULL ELSE - + CAST( - 80 AS SIGNED ) + 14 END * - + 84 + 0 AS col0
----
-544824

skipif mysql # not compatible
query I rowsort label-7129
SELECT 69 * - - CASE - 93 WHEN 42 THEN NULL ELSE - + CAST ( - 80 AS INTEGER ) + 14 END * - + 84 + 0 AS col0
----
-544824

query I rowsort
SELECT DISTINCT + - 30 - - - 62
----
-92

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

query I rowsort
SELECT 49 * 99 + - ( - 42 ) AS col0
----
4893

query I rowsort
SELECT DISTINCT + - 38 - + 75 AS col0
----
-113

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7134
SELECT ALL - 39, + 61 DIV + - COUNT( - 16 ) AS col1
----
-39
-61

skipif mysql # not compatible
query II rowsort label-7134
SELECT ALL - 39, + 61 / + - COUNT ( - 16 ) AS col1
----
-39
-61

query I rowsort
SELECT ALL - + 88 * - + 76
----
6688

query I rowsort
SELECT 28 * - 16
----
-448

query I rowsort
SELECT ALL - - 63 * 33
----
2079

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7138
SELECT ALL COALESCE ( 54, - - COUNT( * ) * + 52 * 99 + - + 43 + + COALESCE ( - - 83, + 96, 32 + - ( - 77 ) ) * 98 DIV - ( ( - 51 ) ) + - + 82 )
----
54

skipif mysql # not compatible
query I rowsort label-7138
SELECT ALL COALESCE ( 54, - - COUNT ( * ) * + 52 * 99 + - + 43 + + COALESCE ( - - 83, + 96, 32 + - ( - 77 ) ) * 98 / - ( ( - 51 ) ) + - + 82 )
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-7139
SELECT COUNT( * ) + + COUNT( * ) - + 78
----
-76

skipif mysql # not compatible
query I rowsort label-7139
SELECT COUNT ( * ) + + COUNT ( * ) - + 78
----
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7140
SELECT + NULLIF ( - 79, 7 * CAST( NULL AS SIGNED ) / + - 93 + + 41 / 59 + 71 ) + + + COUNT( 67 ) + - 50 + 27
----
-101

skipif mysql # not compatible
query I rowsort label-7140
SELECT + NULLIF ( - 79, 7 * CAST ( NULL AS INTEGER ) / + - 93 + + 41 / 59 + 71 ) + + + COUNT ( 67 ) + - 50 + 27
----
-101

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

skipif mysql # not compatible
query I rowsort label-7141
SELECT ALL - SUM ( ALL - 21 )
----
21

query II rowsort
SELECT DISTINCT 17 AS col1, + 12 AS col2
----
17
12

query I rowsort
SELECT DISTINCT - 17 * + + 63 AS col0
----
-1071

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-7144
SELECT 5 DIV - - COUNT( * ) col0, COUNT( * ) DIV + 93 AS col2, - COUNT( - + 20 ) AS col2
----
5
0
-1

skipif mysql # not compatible
query III rowsort label-7144
SELECT 5 / - - COUNT ( * ) col0, COUNT ( * ) / + 93 AS col2, - COUNT ( - + 20 ) AS col2
----
5
0
-1

query I rowsort
SELECT ALL 77 + 35 AS col0
----
112

query II rowsort
SELECT 12 + + 65 AS col1, - 74 AS col2
----
77
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7147
SELECT COALESCE ( - COUNT( * ), - COUNT( * ), + 2 * CAST( - 92 AS SIGNED ) ) + + - 32
----
-33

skipif mysql # not compatible
query I rowsort label-7147
SELECT COALESCE ( - COUNT ( * ), - COUNT ( * ), + 2 * CAST ( - 92 AS INTEGER ) ) + + - 32
----
-33

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7149
SELECT COUNT( 98 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7149
SELECT COUNT ( 98 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7150
SELECT NULLIF ( - 24, - COUNT( DISTINCT + 19 ) ) * + + 94
----
-2256

skipif mysql # not compatible
query I rowsort label-7150
SELECT NULLIF ( - 24, - COUNT ( DISTINCT + 19 ) ) * + + 94
----
-2256

query II rowsort
SELECT - 92 * 81 * - - 70 + 85, 22 * - + 43 AS col0
----
-521555
-946

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

skipif mysql # not compatible
query I rowsort label-7152
SELECT ALL CAST ( NULL AS INTEGER ) * 41
----
NULL

query II rowsort
SELECT + 93, + NULLIF ( - ( - + 77 ), - ( + 71 ) ) col2
----
93
77

query I rowsort
SELECT DISTINCT - 49 * - 64 + - - 1 AS col2
----
3137

query I rowsort
SELECT ALL - 77 * 78 + 84 AS col0
----
-5922

query II rowsort
SELECT ALL - 7, - 74 col2
----
-7
-74

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

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

query I rowsort
SELECT DISTINCT 33 * - 41 AS col2
----
-1353

query I rowsort
SELECT 56 * 28 AS col1
----
1568

query I rowsort
SELECT 26 * - 77
----
-2002

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7162
SELECT ALL - 97 col2, CAST( NULL AS SIGNED ) + - 10 + 32 + + CAST( NULL AS SIGNED ) * + 76
----
-97
NULL

skipif mysql # not compatible
query II rowsort label-7162
SELECT ALL - 97 col2, CAST ( NULL AS INTEGER ) + - 10 + 32 + + CAST ( NULL AS INTEGER ) * + 76
----
-97
NULL

query I rowsort
SELECT ALL 27 - + 89
----
-62

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7164
SELECT - COUNT( * ) AS col0, ( - MAX( ALL - - 39 ) ) + 31 - CAST( NULL AS DECIMAL )
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-7164
SELECT - COUNT ( * ) AS col0, ( - MAX ( ALL - - 39 ) ) + 31 - CAST ( NULL AS REAL )
----
-1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7165
SELECT - MAX( ALL 72 ) + + 5 * MIN( - - 36 ) * 60 AS col1
----
10728

skipif mysql # not compatible
query I rowsort label-7165
SELECT - MAX ( ALL 72 ) + + 5 * MIN ( - - 36 ) * 60 AS col1
----
10728

query I rowsort
SELECT ALL + 64 - + 14 AS col2
----
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7167
SELECT ALL ( - + ( - - ( - COUNT( 99 ) ) ) ) DIV + 6 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7167
SELECT ALL ( - + ( - - ( - COUNT ( 99 ) ) ) ) / + 6 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7168
SELECT ALL + - 52, - NULLIF ( 71, + CAST( NULL AS SIGNED ) ) AS col0
----
-52
-71

skipif mysql # not compatible
query II rowsort label-7168
SELECT ALL + - 52, - NULLIF ( 71, + CAST ( NULL AS INTEGER ) ) AS col0
----
-52
-71

query II rowsort
SELECT ALL + - 27 AS col1, + 40 AS col2
----
-27
40

query I rowsort
SELECT DISTINCT - - 65 * - 35 + - + 58
----
-2333

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7172
SELECT DISTINCT - CAST( - - 33 AS SIGNED ) * - 25
----
825

skipif mysql # not compatible
query I rowsort label-7172
SELECT DISTINCT - CAST ( - - 33 AS INTEGER ) * - 25
----
825

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7173
SELECT + - CAST( NULL AS SIGNED ) / + AVG ( CAST( NULL AS SIGNED ) ) * + 75 * + 90 / - 28
----
NULL

skipif mysql # not compatible
query I rowsort label-7173
SELECT + - CAST ( NULL AS INTEGER ) / + AVG ( CAST ( NULL AS INTEGER ) ) * + 75 * + 90 / - 28
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7174
SELECT - + 28 AS col0, - COUNT( * ) * 87 AS col0
----
-28
-87

skipif mysql # not compatible
query II rowsort label-7174
SELECT - + 28 AS col0, - COUNT ( * ) * 87 AS col0
----
-28
-87

query II rowsort
SELECT - 69, 47 AS col0
----
-69
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7176
SELECT ALL + MIN( ALL + 52 ) DIV - 24 + 90 + + 38 + - + 17 AS col2
----
109

skipif mysql # not compatible
query I rowsort label-7176
SELECT ALL + MIN ( ALL + 52 ) / - 24 + 90 + + 38 + - + 17 AS col2
----
109

query I rowsort
SELECT ALL 96 + - 52 * + NULLIF ( - 73, 93 * + + 55 + + 34 * + + 26 )
----
3892

onlyif mysql # aggregate syntax: 
query II rowsort label-7178
SELECT 26 AS col0, + 77 + COUNT( * ) col0
----
26
78

skipif mysql # not compatible
query II rowsort label-7178
SELECT 26 AS col0, + 77 + COUNT ( * ) col0
----
26
78

onlyif mysql # aggregate syntax: 
query I rowsort label-7179
SELECT DISTINCT - MAX( ALL - 10 ) + - - 16
----
26

skipif mysql # not compatible
query I rowsort label-7179
SELECT DISTINCT - MAX ( ALL - 10 ) + - - 16
----
26

query I rowsort
SELECT - 53 * + - 52 * - 8 AS col1
----
-22048

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7181
SELECT - 59 * ( + 10 ) * 78 * - 50 * - - 16 - + - 97 + 34 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7181
SELECT - 59 * ( + 10 ) * 78 * - 50 * - - 16 - + - 97 + 34 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 71 - 35 * + + 24 * + 14 AS col2
----
-11831

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7183
SELECT ALL + 41 + + - 53 DIV - - CAST( 72 AS SIGNED )
----
41

skipif mysql # not compatible
query I rowsort label-7183
SELECT ALL + 41 + + - 53 / - - CAST ( 72 AS INTEGER )
----
41

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7185
SELECT ALL - MAX( DISTINCT - 49 ) * 82 AS col2
----
4018

skipif mysql # not compatible
query I rowsort label-7185
SELECT ALL - MAX ( DISTINCT - 49 ) * 82 AS col2
----
4018

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7190
SELECT - 56 DIV - ( - 21 ) + 19 * + 66 AS col0
----
1252

skipif mysql # not compatible
query I rowsort label-7190
SELECT - 56 / - ( - 21 ) + 19 * + 66 AS col0
----
1252

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7193
SELECT + SUM( ( 97 ) ) * - + 38
----
-3686

skipif mysql # not compatible
query I rowsort label-7193
SELECT + SUM ( ( 97 ) ) * - + 38
----
-3686

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7194
SELECT DISTINCT + ( 99 ) DIV COUNT( * ) + + 95
----
194

skipif mysql # not compatible
query I rowsort label-7194
SELECT DISTINCT + ( 99 ) / COUNT ( * ) + + 95
----
194

onlyif mysql # aggregate syntax: 
query I rowsort label-7195
SELECT + COALESCE ( + 34, - - 4, - + CASE - 5 WHEN + 52 * 20 + - - 55 + + ( - - SUM( ALL + 62 ) ) THEN + + 15 WHEN - COALESCE ( - 3, - + 90 ) - - + 90 * + 14 THEN NULL WHEN + + COUNT( * ) * 31 + + 45 + - 85 THEN NULL ELSE + 56 END, + - 80 ) AS col2
----
34

skipif mysql # not compatible
query I rowsort label-7195
SELECT + COALESCE ( + 34, - - 4, - + CASE - 5 WHEN + 52 * 20 + - - 55 + + ( - - SUM ( ALL + 62 ) ) THEN + + 15 WHEN - COALESCE ( - 3, - + 90 ) - - + 90 * + 14 THEN NULL WHEN + + COUNT ( * ) * 31 + + 45 + - 85 THEN NULL ELSE + 56 END, + - 80 ) AS col2
----
34

query I rowsort
SELECT ALL 97 * + 77
----
7469

query I rowsort
SELECT - 4 * 71 + + - 32 * - + 25 AS col1
----
516

query II rowsort
SELECT DISTINCT - 96 * + 16 AS col2, 47 * - 41 AS col1
----
-1536
-1927

query II rowsort
SELECT DISTINCT - 85 * 51 AS col1, 57 AS col2
----
-4335
57

query II rowsort
SELECT + - 58 + - 82 AS col1, 11
----
-140
11

query II rowsort
SELECT ALL - ( 90 ) * 91, 62 * 41 * 6 col2
----
-8190
15252

query I rowsort
SELECT ALL 86 * - 16
----
-1376

onlyif mysql # aggregate syntax: 
query I rowsort label-7203
SELECT ALL + - COALESCE ( + 25, - + MIN( 49 ) * - - 94 )
----
-25

skipif mysql # not compatible
query I rowsort label-7203
SELECT ALL + - COALESCE ( + 25, - + MIN ( 49 ) * - - 94 )
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7204
SELECT + 69 + - COALESCE ( 20, + - COUNT( * ) DIV + 4, - - CAST( - 26 AS SIGNED ) ) * 6, 32 * + 88 * - - 26 col2
----
-51
73216

skipif mysql # not compatible
query II rowsort label-7204
SELECT + 69 + - COALESCE ( 20, + - COUNT ( * ) / + 4, - - CAST ( - 26 AS INTEGER ) ) * 6, 32 * + 88 * - - 26 col2
----
-51
73216

onlyif mysql # DIV for integer division: 
query II rowsort label-7205
SELECT + 44 DIV - 63 AS col2, 61
----
0
61

skipif mysql # not compatible
query II rowsort label-7205
SELECT + 44 / - 63 AS col2, 61
----
0
61

query I rowsort
SELECT + 83 * + ( 78 )
----
6474

onlyif mysql # aggregate syntax: 
query I rowsort label-7207
SELECT + + 14 - - + COUNT( * ) * 34 * 12
----
422

skipif mysql # not compatible
query I rowsort label-7207
SELECT + + 14 - - + COUNT ( * ) * 34 * 12
----
422

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

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

query II rowsort
SELECT + + 81 + 75, + 61 + - 43 AS col2
----
156
18

query I rowsort
SELECT ALL + 76 * 48 AS col1
----
3648

onlyif mysql # aggregate syntax: 
query I rowsort label-7211
SELECT ALL SUM( + 15 ) + + + 76 AS col2
----
91

skipif mysql # not compatible
query I rowsort label-7211
SELECT ALL SUM ( + 15 ) + + + 76 AS col2
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7212
SELECT + ( + - 21 ) + + - 78 + - + CAST( NULL AS SIGNED ) + + 37 + - + 3 + + + 48 + - + COUNT( * ) AS col2, - 72
----
NULL
-72

skipif mysql # not compatible
query II rowsort label-7212
SELECT + ( + - 21 ) + + - 78 + - + CAST ( NULL AS INTEGER ) + + 37 + - + 3 + + + 48 + - + COUNT ( * ) AS col2, - 72
----
NULL
-72

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7214
SELECT - 53 - - 10 + + + 3 - + COUNT( * ) + 62 + - CAST( + CAST( NULL AS SIGNED ) AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7214
SELECT - 53 - - 10 + + + 3 - + COUNT ( * ) + 62 + - CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7215
SELECT DISTINCT COALESCE ( MAX( + 47 ), - COUNT( * ), - COUNT( * ) ) AS col0
----
47

skipif mysql # not compatible
query I rowsort label-7215
SELECT DISTINCT COALESCE ( MAX ( + 47 ), - COUNT ( * ), - COUNT ( * ) ) AS col0
----
47

query I rowsort
SELECT + 23 + 61
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-7217
SELECT ALL + COUNT( * ) + 95 + - 28
----
68

skipif mysql # not compatible
query I rowsort label-7217
SELECT ALL + COUNT ( * ) + 95 + - 28
----
68

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7219
SELECT ALL + 10 - - 87 + COALESCE ( 75, + 5, + COUNT( DISTINCT ( 13 ) ) ) + - 3
----
169

skipif mysql # not compatible
query I rowsort label-7219
SELECT ALL + 10 - - 87 + COALESCE ( 75, + 5, + COUNT ( DISTINCT ( 13 ) ) ) + - 3
----
169

onlyif mysql # aggregate syntax: 
query I rowsort label-7220
SELECT - SUM( DISTINCT 86 ) + 38 * + 21 * 9
----
7096

skipif mysql # not compatible
query I rowsort label-7220
SELECT - SUM ( DISTINCT 86 ) + 38 * + 21 * 9
----
7096

onlyif mysql # aggregate syntax: 
query I rowsort label-7221
SELECT ALL COALESCE ( - MIN( - ( + 38 ) ), - + 57 * + 92, 35 * 80 ) AS col2
----
38

skipif mysql # not compatible
query I rowsort label-7221
SELECT ALL COALESCE ( - MIN ( - ( + 38 ) ), - + 57 * + 92, 35 * 80 ) AS col2
----
38

query I rowsort
SELECT - 69 + 7 col2
----
-62

query I rowsort
SELECT + 81 * - 64 col1
----
-5184

onlyif mysql # aggregate syntax: 
query II rowsort label-7224
SELECT 93 AS col2, 66 * + 6 * - - 6 + - COALESCE ( 43, - + COUNT( DISTINCT + 90 ) * + - 66 + + 38 )
----
93
2333

skipif mysql # not compatible
query II rowsort label-7224
SELECT 93 AS col2, 66 * + 6 * - - 6 + - COALESCE ( 43, - + COUNT ( DISTINCT + 90 ) * + - 66 + + 38 )
----
93
2333

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

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

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

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

query I rowsort
SELECT ALL + 47 * 4
----
188

query I rowsort
SELECT ALL + 38 * - - 97
----
3686

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

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

query I rowsort
SELECT + 22 * + 56 AS col0
----
1232

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7231
SELECT + - COALESCE ( - - 4, + COUNT( * ) DIV - 26 + - 4, 3 * - - 75 * - 29 ) AS col1, 79 * + + 31
----
-4
2449

skipif mysql # not compatible
query II rowsort label-7231
SELECT + - COALESCE ( - - 4, + COUNT ( * ) / - 26 + - 4, 3 * - - 75 * - 29 ) AS col1, 79 * + + 31
----
-4
2449

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

skipif mysql # not compatible
query I rowsort label-7232
SELECT - ( COUNT ( * ) ) / 35
----
0

query I rowsort
SELECT 32 * + 54
----
1728

query II rowsort
SELECT ALL - 91 AS col0, + 73
----
-91
73

onlyif mysql # aggregate syntax: 
query I rowsort label-7235
SELECT - COUNT( * ) * + 27 * - 46 * + + COUNT( * ) * - - 98
----
121716

skipif mysql # not compatible
query I rowsort label-7235
SELECT - COUNT ( * ) * + 27 * - 46 * + + COUNT ( * ) * - - 98
----
121716

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7236
SELECT ALL + - MAX( DISTINCT 52 ) + COUNT( * ) * - 67 * - + SUM( + + 90 ) - + + 66 * 38 DIV - 5 + - 56 + + 54 * - - 55
----
9393

skipif mysql # not compatible
query I rowsort label-7236
SELECT ALL + - MAX ( DISTINCT 52 ) + COUNT ( * ) * - 67 * - + SUM ( + + 90 ) - + + 66 * 38 / - 5 + - 56 + + 54 * - - 55
----
9393

query II rowsort
SELECT 11 + 80 + + + COALESCE ( 68, 87, 96 ) AS col1, - 8
----
159
-8

query I rowsort
SELECT DISTINCT + 4 + 65 AS col2
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-7239
SELECT + MAX( DISTINCT - 57 ) * - ( + - 99 ) * + - 23 AS col0
----
129789

skipif mysql # not compatible
query I rowsort label-7239
SELECT + MAX ( DISTINCT - 57 ) * - ( + - 99 ) * + - 23 AS col0
----
129789

query I rowsort
SELECT DISTINCT + 24 + 33
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-7241
SELECT ALL COUNT( * ) + - - 40
----
41

skipif mysql # not compatible
query I rowsort label-7241
SELECT ALL COUNT ( * ) + - - 40
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-7242
SELECT SUM( + 84 ) AS col0
----
84

skipif mysql # not compatible
query I rowsort label-7242
SELECT SUM ( + 84 ) AS col0
----
84

onlyif mysql # aggregate syntax: 
query II rowsort label-7243
SELECT ALL + + ( - + COUNT( * ) ) * - MAX( - 49 ) * + + 13 * - 84 + 25 + ( - - 94 ), + 72 AS col0
----
53627
72

skipif mysql # not compatible
query II rowsort label-7243
SELECT ALL + + ( - + COUNT ( * ) ) * - MAX ( - 49 ) * + + 13 * - 84 + 25 + ( - - 94 ), + 72 AS col0
----
53627
72

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

query I rowsort
SELECT ALL ( - + 36 ) - + + 90 * + - 17 + - 23 * - 67 + + 64 + - + 28
----
3071

query II rowsort
SELECT DISTINCT 46 - 78 AS col1, 4
----
-32
4

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7247
SELECT CAST( NULL AS SIGNED ) * - 8 AS col1, - 10 + - + 93 AS col1
----
NULL
-103

skipif mysql # not compatible
query II rowsort label-7247
SELECT CAST ( NULL AS INTEGER ) * - 8 AS col1, - 10 + - + 93 AS col1
----
NULL
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-7248
SELECT COUNT( * ) - + 43
----
-42

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7251
SELECT 72 DIV + 58 DIV + COALESCE ( + + COUNT( * ), + 28 * 2 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7251
SELECT 72 / + 58 / + COALESCE ( + + COUNT ( * ), + 28 * 2 ) AS col0
----
1

query I rowsort
SELECT DISTINCT 57 * 2
----
114

query II rowsort
SELECT 55 * + - 58 AS col1, 60 AS col2
----
-3190
60

query I rowsort
SELECT ALL - COALESCE ( - - 92, 39, - + 38 ) AS col2
----
-92

query I rowsort
SELECT 21 * 87 + - + ( + 57 )
----
1770

query I rowsort
SELECT 69 - 5
----
64

query I rowsort
SELECT - 90 * 98 AS col1
----
-8820

onlyif mysql # aggregate syntax: 
query I rowsort label-7258
SELECT + COALESCE ( - - 17, - 24 + - - COUNT( * ), - - 74 ) AS col1
----
17

skipif mysql # not compatible
query I rowsort label-7258
SELECT + COALESCE ( - - 17, - 24 + - - COUNT ( * ), - - 74 ) AS col1
----
17

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7260
SELECT ALL + + CAST( - ( + COUNT( * ) ) AS SIGNED ) + 15 AS col1
----
14

skipif mysql # not compatible
query I rowsort label-7260
SELECT ALL + + CAST ( - ( + COUNT ( * ) ) AS INTEGER ) + 15 AS col1
----
14

query II rowsort
SELECT ALL + 75 + + 40, 21 AS col2
----
115
21

onlyif mysql # DIV for integer division: 
query I rowsort label-7262
SELECT ALL - - 41 + - 65 DIV + ( 44 )
----
40

skipif mysql # not compatible
query I rowsort label-7262
SELECT ALL - - 41 + - 65 / + ( 44 )
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7263
SELECT ALL + 20 + 22 + - - CAST( + COUNT( * ) AS SIGNED ) + + 54 * - - COUNT( * )
----
97

skipif mysql # not compatible
query I rowsort label-7263
SELECT ALL + 20 + 22 + - - CAST ( + COUNT ( * ) AS INTEGER ) + + 54 * - - COUNT ( * )
----
97

query I rowsort
SELECT - 45 * 49 + 16 * + 13
----
-1997

onlyif mysql # aggregate syntax: 
query I rowsort label-7265
SELECT ALL + COUNT( * ) * - COUNT( * ) + 31
----
30

skipif mysql # not compatible
query I rowsort label-7265
SELECT ALL + COUNT ( * ) * - COUNT ( * ) + 31
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-7266
SELECT ALL + COUNT( * ) + 30 + + 15 + - 0 col0
----
46

skipif mysql # not compatible
query I rowsort label-7266
SELECT ALL + COUNT ( * ) + 30 + + 15 + - 0 col0
----
46

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7268
SELECT ( SUM( + 64 ) ) + + - 35, CASE - + 19 WHEN + 34 - - 65 + + 34 + + 49 THEN - CASE - + 68 WHEN 29 / - 35 + + - 4 + + 77 THEN - 33 ELSE - 18 END ELSE 61 END col0
----
29
61

skipif mysql # not compatible
query II rowsort label-7268
SELECT ( SUM ( + 64 ) ) + + - 35, CASE - + 19 WHEN + 34 - - 65 + + 34 + + 49 THEN - CASE - + 68 WHEN 29 / - 35 + + - 4 + + 77 THEN - 33 ELSE - 18 END ELSE 61 END col0
----
29
61

query I rowsort
SELECT DISTINCT - 10 * - 1 AS col1
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-7270
SELECT ALL - CASE + COUNT( - 89 ) WHEN - - 0 + + + COALESCE ( 1, + NULLIF ( - + 21, - 25 + + ( + 24 ) / + 14 * - - 52 ) * - + 66 ) THEN NULL ELSE - 33 + - - NULLIF ( 56, - ( + - 21 ) ) END - - 73 + + - 89 * 10 * 0 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7270
SELECT ALL - CASE + COUNT ( - 89 ) WHEN - - 0 + + + COALESCE ( 1, + NULLIF ( - + 21, - 25 + + ( + 24 ) / + 14 * - - 52 ) * - + 66 ) THEN NULL ELSE - 33 + - - NULLIF ( 56, - ( + - 21 ) ) END - - 73 + + - 89 * 10 * 0 AS col0
----
NULL

query I rowsort
SELECT 21 * + 19 AS col1
----
399

query I rowsort
SELECT ALL 12 - + 90 AS col2
----
-78

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7274
SELECT 11 + - COALESCE ( 45, - MIN( DISTINCT - 87 ), - 59 * 12 ) * + - ( - COUNT( * ) ) + 73 AS col1, - 67 + - 47 AS col0
----
39
-114

skipif mysql # not compatible
query II rowsort label-7274
SELECT 11 + - COALESCE ( 45, - MIN ( DISTINCT - 87 ), - 59 * 12 ) * + - ( - COUNT ( * ) ) + 73 AS col1, - 67 + - 47 AS col0
----
39
-114

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7275
SELECT 46 + - CAST( - 59 AS SIGNED )
----
105

skipif mysql # not compatible
query I rowsort label-7275
SELECT 46 + - CAST ( - 59 AS INTEGER )
----
105

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7277
SELECT 20 * + NULLIF ( 44, COUNT( * ) * - 8 ), - ( + 81 ) AS col0
----
880
-81

skipif mysql # not compatible
query II rowsort label-7277
SELECT 20 * + NULLIF ( 44, COUNT ( * ) * - 8 ), - ( + 81 ) AS col0
----
880
-81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7278
SELECT ALL CAST( 99 AS SIGNED ) * NULLIF ( + 29, - 28 ), - 90 AS col2
----
2871
-90

skipif mysql # not compatible
query II rowsort label-7278
SELECT ALL CAST ( 99 AS INTEGER ) * NULLIF ( + 29, - 28 ), - 90 AS col2
----
2871
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-7279
SELECT COUNT( * ) + + 78 + 31 - - 24 + - 51
----
83

skipif mysql # not compatible
query I rowsort label-7279
SELECT COUNT ( * ) + + 78 + 31 - - 24 + - 51
----
83

query I rowsort
SELECT 36 + - + 1 AS col2
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-7281
SELECT MIN( - 13 ) - - + COUNT( * ) AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-7281
SELECT MIN ( - 13 ) - - + COUNT ( * ) AS col2
----
-12

query I rowsort
SELECT DISTINCT COALESCE ( - 54, ( 39 ) + - - 8 )
----
-54

query II rowsort
SELECT DISTINCT 54 AS col1, 0 AS col0
----
54
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7284
SELECT + 80 + MAX( ALL + 35 ) + + COUNT( * ) AS col0
----
116

skipif mysql # not compatible
query I rowsort label-7284
SELECT + 80 + MAX ( ALL + 35 ) + + COUNT ( * ) AS col0
----
116

query I rowsort
SELECT DISTINCT 92 * + + 25 col2
----
2300

query I rowsort
SELECT DISTINCT 3 + + - NULLIF ( + 64, + - 31 )
----
-61

onlyif mysql # DIV for integer division: 
query I rowsort label-7287
SELECT + 4 DIV - - 44 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7287
SELECT + 4 / - - 44 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7288
SELECT + 74 + - - NULLIF ( + + 49, + 88 ) DIV + 40 AS col2
----
75

skipif mysql # not compatible
query I rowsort label-7288
SELECT + 74 + - - NULLIF ( + + 49, + 88 ) / + 40 AS col2
----
75

query I rowsort
SELECT ALL - 65 + - 48 AS col2
----
-113

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

query II rowsort
SELECT 93, ( - 2 ) AS col0
----
93
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-7292
SELECT + - 10 DIV 78 * + ( 27 )
----
0

skipif mysql # not compatible
query I rowsort label-7292
SELECT + - 10 / 78 * + ( 27 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7293
SELECT ALL 97 * - NULLIF ( + COUNT( * ), - 69 ) + 34 + + 64 + - 22 - + 33 * 55 + 26
----
-1810

skipif mysql # not compatible
query I rowsort label-7293
SELECT ALL 97 * - NULLIF ( + COUNT ( * ), - 69 ) + 34 + + 64 + - 22 - + 33 * 55 + 26
----
-1810

query I rowsort
SELECT DISTINCT + 46 * 90 * 27
----
111780

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7295
SELECT + + 35 * - NULLIF ( - - 7, - 33 ) * + 14 AS col1, + 27 + + 80 / + ( - ( - CAST( NULL AS SIGNED ) ) )
----
-3430
NULL

skipif mysql # not compatible
query II rowsort label-7295
SELECT + + 35 * - NULLIF ( - - 7, - 33 ) * + 14 AS col1, + 27 + + 80 / + ( - ( - CAST ( NULL AS INTEGER ) ) )
----
-3430
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7296
SELECT ALL + - 1 * 38 + + - NULLIF ( - + 44, + CAST( 78 AS DECIMAL ) * + MIN( DISTINCT + 49 ) * - + 46 * + + 90 )
----
6

skipif mysql # not compatible
query I rowsort label-7296
SELECT ALL + - 1 * 38 + + - NULLIF ( - + 44, + CAST ( 78 AS REAL ) * + MIN ( DISTINCT + 49 ) * - + 46 * + + 90 )
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7297
SELECT DISTINCT + + COALESCE ( CAST( NULL AS SIGNED ), - + 91 * - SUM( + 58 ) ) AS col2
----
5278

skipif mysql # not compatible
query I rowsort label-7297
SELECT DISTINCT + + COALESCE ( CAST ( NULL AS INTEGER ), - + 91 * - SUM ( + 58 ) ) AS col2
----
5278

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

query I rowsort
SELECT + 20 * - 4 AS col0
----
-80

query I rowsort
SELECT - 90 * - - 8 + - + 88 AS col0
----
-808

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7302
SELECT + SUM( DISTINCT + 82 ) + + 58
----
140

skipif mysql # not compatible
query I rowsort label-7302
SELECT + SUM ( DISTINCT + 82 ) + + 58
----
140

query I rowsort
SELECT - + 2 * - 92 + 82 AS col1
----
266

query I rowsort
SELECT DISTINCT - 69 * - - 11
----
-759

onlyif mysql # aggregate syntax: 
query I rowsort label-7305
SELECT ALL + CASE - 66 WHEN - COUNT( * ) THEN + ( - - 96 ) ELSE + + 9 END
----
9

skipif mysql # not compatible
query I rowsort label-7305
SELECT ALL + CASE - 66 WHEN - COUNT ( * ) THEN + ( - - 96 ) ELSE + + 9 END
----
9

query I rowsort
SELECT ALL + 73 * - + 15 - + 47 AS col2
----
-1142

query I rowsort
SELECT - 77 * - 44 * - 32 AS col1
----
-108416

onlyif mysql # aggregate syntax: 
query I rowsort label-7308
SELECT DISTINCT + MIN( ALL + + 11 ) col1
----
11

skipif mysql # not compatible
query I rowsort label-7308
SELECT DISTINCT + MIN ( ALL + + 11 ) col1
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7309
SELECT ALL COALESCE ( + CASE - + 73 WHEN - 87 + 16 THEN NULL WHEN + 74 THEN NULL WHEN - - 75 * + + 94 + - 24 DIV - - 88 - 74 THEN ( COUNT( * ) ) WHEN + - CAST( 16 AS SIGNED ) THEN NULL ELSE NULL END, 5 * - COUNT( * ) DIV + COALESCE ( + 46, - 65 ) )
----
0

skipif mysql # not compatible
query I rowsort label-7309
SELECT ALL COALESCE ( + CASE - + 73 WHEN - 87 + 16 THEN NULL WHEN + 74 THEN NULL WHEN - - 75 * + + 94 + - 24 / - - 88 - 74 THEN ( COUNT ( * ) ) WHEN + - CAST ( 16 AS INTEGER ) THEN NULL ELSE NULL END, 5 * - COUNT ( * ) / + COALESCE ( + 46, - 65 ) )
----
0

query I rowsort
SELECT - 41 * + 50 * - 51 AS col2
----
104550

query I rowsort
SELECT - 47 * + 69 AS col0
----
-3243

query II rowsort
SELECT - 31, 24 AS col0
----
-31
24

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7314
SELECT - SUM( 92 )
----
-92

skipif mysql # not compatible
query I rowsort label-7314
SELECT - SUM ( 92 )
----
-92

query I rowsort
SELECT + ( + 65 ) + + 66 AS col2
----
131

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7316
SELECT + MAX( ALL - 15 ) DIV - - 63
----
0

skipif mysql # not compatible
query I rowsort label-7316
SELECT + MAX ( ALL - 15 ) / - - 63
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7317
SELECT ALL - 88 DIV 43 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-7317
SELECT ALL - 88 / 43 AS col2
----
-2

query I rowsort
SELECT - 11 * - 11 col0
----
121

query I rowsort
SELECT ALL - 79 * 46 AS col1
----
-3634

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

skipif mysql # not compatible
query I rowsort label-7320
SELECT DISTINCT - COUNT ( * ) / + - 59
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7321
SELECT ALL 57 * - 61 * + - 39 * - 88 * + - 75 * CAST( NULL AS SIGNED ) * - 22 * + 85 * + COUNT( * ) * - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7321
SELECT ALL 57 * - 61 * + - 39 * - 88 * + - 75 * CAST ( NULL AS INTEGER ) * - 22 * + 85 * + COUNT ( * ) * - CAST ( NULL AS INTEGER ) col2
----
NULL

query I rowsort
SELECT ALL - 88 + + + 45
----
-43

query I rowsort
SELECT DISTINCT - 34 + + + 31 AS col1
----
-3

query I rowsort
SELECT - 51 * + + 36 * + 35 AS col1
----
-64260

query II rowsort
SELECT 52, - 97 * + + 21 AS col0
----
52
-2037

onlyif mysql # aggregate syntax: 
query II rowsort label-7326
SELECT ALL - 16 + - + 78 AS col2, 17 - - CASE - 27 WHEN + 85 * + 8 + NULLIF ( - 24, - - 32 + - CASE + - COUNT( * ) WHEN + + 40 + - 21 * - + 90 THEN - MIN( ALL + + 17 ) + + ( - + 63 ) END + 21 ) / 80 / + - COALESCE ( 12, - 87 / - 37 + - 30 + 70 ) THEN - 0 * + 2 ELSE NULL END
----
-94
NULL

skipif mysql # not compatible
query II rowsort label-7326
SELECT ALL - 16 + - + 78 AS col2, 17 - - CASE - 27 WHEN + 85 * + 8 + NULLIF ( - 24, - - 32 + - CASE + - COUNT ( * ) WHEN + + 40 + - 21 * - + 90 THEN - MIN ( ALL + + 17 ) + + ( - + 63 ) END + 21 ) / 80 / + - COALESCE ( 12, - 87 / - 37 + - 30 + 70 ) THEN - 0 * + 2 ELSE NULL END
----
-94
NULL

query II rowsort
SELECT 22, 17 + + 31 AS col2
----
22
48

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7330
SELECT ALL - 19 + - ( + 61 ) * + COUNT( * ) * - + 22 * + COUNT( * )
----
1323

skipif mysql # not compatible
query I rowsort label-7330
SELECT ALL - 19 + - ( + 61 ) * + COUNT ( * ) * - + 22 * + COUNT ( * )
----
1323

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

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

query I rowsort
SELECT DISTINCT - 86 + - - 19 AS col0
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7333
SELECT DISTINCT + 91 col0, COUNT( * ) - - CAST( + 14 AS SIGNED )
----
91
15

skipif mysql # not compatible
query II rowsort label-7333
SELECT DISTINCT + 91 col0, COUNT ( * ) - - CAST ( + 14 AS INTEGER )
----
91
15

query II rowsort
SELECT - - 78, 96 AS col0
----
78
96

query I rowsort
SELECT + + 47 * - 51 AS col0
----
-2397

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7336
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - 43 col0, + 89 AS col1
----
NULL
89

skipif mysql # not compatible
query II rowsort label-7336
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - 43 col0, + 89 AS col1
----
NULL
89

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7337
SELECT + CAST( - 50 AS SIGNED ), 81 * CAST( + 6 AS SIGNED ) col0
----
-50
486

skipif mysql # not compatible
query II rowsort label-7337
SELECT + CAST ( - 50 AS INTEGER ), 81 * CAST ( + 6 AS INTEGER ) col0
----
-50
486

query I rowsort
SELECT + + 98 - 16
----
82

query I rowsort
SELECT - - 87 * + + ( - 14 )
----
-1218

query I rowsort
SELECT NULLIF ( + 13, 61 )
----
13

query I rowsort
SELECT ALL + 43 * - + 66
----
-2838

query I rowsort
SELECT + 41 + + 51 AS col0
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-7343
SELECT + 10 * - NULLIF ( + ( + 97 ), + AVG ( + + 73 ) ) DIV - + 95 + 61 DIV 76 + + 72
----
82

skipif mysql # not compatible
query I rowsort label-7343
SELECT + 10 * - NULLIF ( + ( + 97 ), + AVG ( + + 73 ) ) / - + 95 + 61 / 76 + + 72
----
82

query I rowsort
SELECT + 50 * 77
----
3850

onlyif mysql # DIV for integer division: 
query I rowsort label-7345
SELECT + 54 + 75 * 54 DIV 66 AS col2
----
115

skipif mysql # not compatible
query I rowsort label-7345
SELECT + 54 + 75 * 54 / 66 AS col2
----
115

query II rowsort
SELECT ALL + - 94 AS col2, - ( + - 4 )
----
-94
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7347
SELECT 50 AS col1, + SUM( ALL + CAST( NULL AS SIGNED ) ) AS col0
----
50
NULL

skipif mysql # not compatible
query II rowsort label-7347
SELECT 50 AS col1, + SUM ( ALL + CAST ( NULL AS INTEGER ) ) AS col0
----
50
NULL

query I rowsort
SELECT ALL - 40 * - 3 * + 44
----
5280

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7349
SELECT ALL + CAST( NULL AS DECIMAL ) / - MAX( - 78 ) / - 91 + - + 26 - 53
----
NULL

skipif mysql # not compatible
query I rowsort label-7349
SELECT ALL + CAST ( NULL AS REAL ) / - MAX ( - 78 ) / - 91 + - + 26 - 53
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7350
SELECT ALL + + 69 DIV - 55 + + - 19
----
-20

skipif mysql # not compatible
query I rowsort label-7350
SELECT ALL + + 69 / - 55 + + - 19
----
-20

query II rowsort
SELECT ( + - 53 ), + 45 * - - ( + 24 ) * + ( - 94 ) AS col1
----
-53
-101520

onlyif mysql # aggregate syntax: 
query II rowsort label-7352
SELECT ( - 54 ) col2, COUNT( * )
----
-54
1

skipif mysql # not compatible
query II rowsort label-7352
SELECT ( - 54 ) col2, COUNT ( * )
----
-54
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7353
SELECT DISTINCT + SUM( DISTINCT + + 64 ) AS col1
----
64

skipif mysql # not compatible
query I rowsort label-7353
SELECT DISTINCT + SUM ( DISTINCT + + 64 ) AS col1
----
64

query I rowsort
SELECT 83 * + 0 + - + 70
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-7355
SELECT DISTINCT - NULLIF ( NULLIF ( - - ( + - CASE 6 WHEN - + COUNT( * ) THEN - ( - + COUNT( * ) ) + - + ( + COUNT( * ) ) + - 68 * 99 ELSE NULL END ), + 95 - + + COUNT( * ) ), + 78 / + COUNT( * ) + 79 * + - ( - 30 ) + - 10 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7355
SELECT DISTINCT - NULLIF ( NULLIF ( - - ( + - CASE 6 WHEN - + COUNT ( * ) THEN - ( - + COUNT ( * ) ) + - + ( + COUNT ( * ) ) + - 68 * 99 ELSE NULL END ), + 95 - + + COUNT ( * ) ), + 78 / + COUNT ( * ) + 79 * + - ( - 30 ) + - 10 ) AS col2
----
NULL

query I rowsort
SELECT ALL - 92 * 26
----
-2392

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7357
SELECT ALL + 20 + - 25, 93 * CAST( NULL AS SIGNED ) AS col0
----
-5
NULL

skipif mysql # not compatible
query II rowsort label-7357
SELECT ALL + 20 + - 25, 93 * CAST ( NULL AS INTEGER ) AS col0
----
-5
NULL

query I rowsort
SELECT 81 + + + 19 AS col2
----
100

query I rowsort
SELECT ALL + 57 + + 71 col2
----
128

onlyif mysql # aggregate syntax: 
query II rowsort label-7360
SELECT 71 + COUNT( * ) AS col2, - 25 * + ( - + 86 )
----
72
2150

skipif mysql # not compatible
query II rowsort label-7360
SELECT 71 + COUNT ( * ) AS col2, - 25 * + ( - + 86 )
----
72
2150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7361
SELECT 6 - COALESCE ( - COALESCE ( + + 23, NULLIF ( - - COUNT( * ), - 14 + + + 45 * 92 * + - 94 DIV - CAST( + - 3 AS SIGNED ) ) + + 2 ), + - 79 * COALESCE ( - - 69, 27 * - + CAST( NULL AS SIGNED ) DIV + ( + - CAST( NULL AS SIGNED ) ) * 29 + 20 * + 11, - 65 * 27 DIV 44 ) * COUNT( * ), + + CASE + 32 WHEN + 52 + - 4 * 6 THEN 26 WHEN - + 69 THEN - + CAST( 9 AS SIGNED ) ELSE - ( 20 ) END ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-7361
SELECT 6 - COALESCE ( - COALESCE ( + + 23, NULLIF ( - - COUNT ( * ), - 14 + + + 45 * 92 * + - 94 / - CAST ( + - 3 AS INTEGER ) ) + + 2 ), + - 79 * COALESCE ( - - 69, 27 * - + CAST ( NULL AS INTEGER ) / + ( + - CAST ( NULL AS INTEGER ) ) * 29 + 20 * + 11, - 65 * 27 / 44 ) * COUNT ( * ), + + CASE + 32 WHEN + 52 + - 4 * 6 THEN 26 WHEN - + 69 THEN - + CAST ( 9 AS INTEGER ) ELSE - ( 20 ) END ) AS col2
----
29

query II rowsort
SELECT ALL - + 9 + - 7 col2, + 33 AS col1
----
-16
33

onlyif mysql # aggregate syntax: 
query I rowsort label-7363
SELECT - MAX( - 72 ) AS col1
----
72

skipif mysql # not compatible
query I rowsort label-7363
SELECT - MAX ( - 72 ) AS col1
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-7364
SELECT - - MAX( + + 67 ) col0
----
67

skipif mysql # not compatible
query I rowsort label-7364
SELECT - - MAX ( + + 67 ) col0
----
67

query I rowsort
SELECT ALL + ( + - 79 ) + + + ( 70 )
----
-9

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7367
SELECT + 58 + - SUM( - - ( 57 ) ) + - 63
----
-62

skipif mysql # not compatible
query I rowsort label-7367
SELECT + 58 + - SUM ( - - ( 57 ) ) + - 63
----
-62

onlyif mysql # aggregate syntax: 
query II rowsort label-7368
SELECT - SUM( - 35 ) col2, ( 9 )
----
35
9

skipif mysql # not compatible
query II rowsort label-7368
SELECT - SUM ( - 35 ) col2, ( 9 )
----
35
9

query I rowsort
SELECT - 81 * + 21 AS col2
----
-1701

onlyif mysql # aggregate syntax: 
query I rowsort label-7370
SELECT DISTINCT - - 92 - 70 - + + COUNT( * ) * - + SUM( DISTINCT + - 76 ) AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-7370
SELECT DISTINCT - - 92 - 70 - + + COUNT ( * ) * - + SUM ( DISTINCT + - 76 ) AS col2
----
-54

query I rowsort
SELECT + 47 * - - ( - + 12 ) * + ( - - 84 ) * 20 * 45 * - 30 + - 48 AS col2
----
1279151952

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7373
SELECT DISTINCT 96 DIV 36 + - COUNT( * ), 65 AS col2
----
1
65

skipif mysql # not compatible
query II rowsort label-7373
SELECT DISTINCT 96 / 36 + - COUNT ( * ), 65 AS col2
----
1
65

query I rowsort
SELECT ALL - 31 * + ( - + ( + 99 ) )
----
3069

query I rowsort
SELECT - 14 * 10 * - 55
----
7700

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7377
SELECT MAX( + + 30 ) * - ( 76 ) - - + 18 - - 16 DIV - ( 72 )
----
-2262

skipif mysql # not compatible
query I rowsort label-7377
SELECT MAX ( + + 30 ) * - ( 76 ) - - + 18 - - 16 / - ( 72 )
----
-2262

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7378
SELECT ALL CAST( + 27 AS SIGNED ) + COUNT( * ) - 19 * + 67
----
-1245

skipif mysql # not compatible
query I rowsort label-7378
SELECT ALL CAST ( + 27 AS INTEGER ) + COUNT ( * ) - 19 * + 67
----
-1245

onlyif mysql # aggregate syntax: 
query II rowsort label-7379
SELECT 77, SUM( + 66 ) + 51 AS col0
----
77
117

skipif mysql # not compatible
query II rowsort label-7379
SELECT 77, SUM ( + 66 ) + 51 AS col0
----
77
117

query I rowsort
SELECT ALL 75 + + 69 AS col1
----
144

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7381
SELECT ( COUNT( * ) ) * + 48 DIV 99 - - 3 + - + NULLIF ( 6, + 35 + + 0 * + 9 * 90 ) + - - 17 AS col1
----
14

skipif mysql # not compatible
query I rowsort label-7381
SELECT ( COUNT ( * ) ) * + 48 / 99 - - 3 + - + NULLIF ( 6, + 35 + + 0 * + 9 * 90 ) + - - 17 AS col1
----
14

query II rowsort
SELECT DISTINCT 87 + - - NULLIF ( + 26, + 71 ) AS col0, + 32 + CASE + 62 WHEN 69 THEN + 22 + - - 62 ELSE - 16 END + + + NULLIF ( + 74, + 41 ) AS col1
----
113
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7383
SELECT CAST( - 69 AS SIGNED ) + - 79 * + + 7 AS col1
----
-622

skipif mysql # not compatible
query I rowsort label-7383
SELECT CAST ( - 69 AS INTEGER ) + - 79 * + + 7 AS col1
----
-622

query II rowsort
SELECT - 47 AS col0, - 19 * 55 - + 32
----
-47
-1077

onlyif mysql # DIV for integer division: 
query I rowsort label-7385
SELECT ALL 39 + + + 33 + 7 * - 47 - + 32 DIV - - 60 * + 70 AS col0
----
-257

skipif mysql # not compatible
query I rowsort label-7385
SELECT ALL 39 + + + 33 + 7 * - 47 - + 32 / - - 60 * + 70 AS col0
----
-257

query I rowsort
SELECT DISTINCT 74 + + 78
----
152

onlyif mysql # aggregate syntax: 
query II rowsort label-7387
SELECT ALL 56, + COUNT( * ) + 71 AS col2
----
56
72

skipif mysql # not compatible
query II rowsort label-7387
SELECT ALL 56, + COUNT ( * ) + 71 AS col2
----
56
72

query I rowsort
SELECT ALL + 53 + - + 24 + + NULLIF ( 2, + 31 )
----
31

query II rowsort
SELECT ALL 12 col1, - 76
----
12
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7390
SELECT - + NULLIF ( 4, ( + 8 ) - + + MIN( ALL + 25 ) + + CAST( NULL AS SIGNED ) + 1 )
----
-4

skipif mysql # not compatible
query I rowsort label-7390
SELECT - + NULLIF ( 4, ( + 8 ) - + + MIN ( ALL + 25 ) + + CAST ( NULL AS INTEGER ) + 1 )
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7391
SELECT DISTINCT + ( + 76 ) - + CAST( - 53 AS SIGNED ), ( - 52 ) AS col0
----
129
-52

skipif mysql # not compatible
query II rowsort label-7391
SELECT DISTINCT + ( + 76 ) - + CAST ( - 53 AS INTEGER ), ( - 52 ) AS col0
----
129
-52

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

skipif mysql # not compatible
query II rowsort label-7392
SELECT DISTINCT COUNT ( * ), ( 4 ) AS col0
----
1
4

query II rowsort
SELECT ALL - 49 AS col1, 44 AS col2
----
-49
44

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

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

query I rowsort
SELECT ALL 99 - - 89 AS col2
----
188

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7396
SELECT - 84 AS col0, - NULLIF ( CAST( NULL AS SIGNED ), + - 70 )
----
-84
NULL

skipif mysql # not compatible
query II rowsort label-7396
SELECT - 84 AS col0, - NULLIF ( CAST ( NULL AS INTEGER ), + - 70 )
----
-84
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7397
SELECT - 45 AS col0, + COUNT( * ) * - COUNT( * ) + - COUNT( * )
----
-45
-2

skipif mysql # not compatible
query II rowsort label-7397
SELECT - 45 AS col0, + COUNT ( * ) * - COUNT ( * ) + - COUNT ( * )
----
-45
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7398
SELECT + 65 * + - CASE - 55 WHEN - + 79 * + + 92 / COALESCE ( - 87, - CAST( NULL AS SIGNED ) ) THEN + ( + - 38 ) / 72 - + 8 * - - 4 + - + 56 WHEN - - 60 + + CASE 73 WHEN + + SUM( DISTINCT - 74 ) * + - COUNT( * ) * - 89 / + COUNT( * ) * + CAST( NULL AS SIGNED ) THEN - 58 * - COUNT( ALL 2 ) ELSE 51 END * - - 78 THEN 72 - MIN( + ( + 28 ) ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7398
SELECT + 65 * + - CASE - 55 WHEN - + 79 * + + 92 / COALESCE ( - 87, - CAST ( NULL AS INTEGER ) ) THEN + ( + - 38 ) / 72 - + 8 * - - 4 + - + 56 WHEN - - 60 + + CASE 73 WHEN + + SUM ( DISTINCT - 74 ) * + - COUNT ( * ) * - 89 / + COUNT ( * ) * + CAST ( NULL AS INTEGER ) THEN - 58 * - COUNT ( ALL 2 ) ELSE 51 END * - - 78 THEN 72 - MIN ( + ( + 28 ) ) ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT 18 - 16
----
2

query II rowsort
SELECT DISTINCT 63 col2, - 37 + 1 AS col0
----
63
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-7401
SELECT ALL + + 2 - + CASE COUNT( * ) WHEN - + 79 THEN 21 / + 62 * + 34 * - 91 END + + 73
----
NULL

skipif mysql # not compatible
query I rowsort label-7401
SELECT ALL + + 2 - + CASE COUNT ( * ) WHEN - + 79 THEN 21 / + 62 * + 34 * - 91 END + + 73
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7402
SELECT - 32 DIV 82 - + 72 + + ( 6 ) * COUNT( * ) * 43 - - 73 AS col1
----
259

skipif mysql # not compatible
query I rowsort label-7402
SELECT - 32 / 82 - + 72 + + ( 6 ) * COUNT ( * ) * 43 - - 73 AS col1
----
259

query I rowsort
SELECT DISTINCT + - 90 * + + 35
----
-3150

onlyif mysql # aggregate syntax: 
query I rowsort label-7404
SELECT ALL - - NULLIF ( + ( + 37 ), + 26 ) * - COUNT( * )
----
-37

skipif mysql # not compatible
query I rowsort label-7404
SELECT ALL - - NULLIF ( + ( + 37 ), + 26 ) * - COUNT ( * )
----
-37

query I rowsort
SELECT ALL - 49 * - 85 * + 86 AS col0
----
358190

onlyif mysql # DIV for integer division: 
query I rowsort label-7406
SELECT - 98 DIV 21 AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-7406
SELECT - 98 / 21 AS col1
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-7407
SELECT - - COUNT( * ) * - NULLIF ( - 29, - 5 ) * 56 * 43 + + ( 32 ) + - 44 AS col1
----
69820

skipif mysql # not compatible
query I rowsort label-7407
SELECT - - COUNT ( * ) * - NULLIF ( - 29, - 5 ) * 56 * 43 + + ( 32 ) + - 44 AS col1
----
69820

query I rowsort
SELECT - 72 - - 7
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-7409
SELECT + CASE 73 WHEN CASE 73 WHEN + 3 THEN + COUNT( * ) END THEN NULL ELSE + 86 * + + 79 END * - 31
----
-210614

skipif mysql # not compatible
query I rowsort label-7409
SELECT + CASE 73 WHEN CASE 73 WHEN + 3 THEN + COUNT ( * ) END THEN NULL ELSE + 86 * + + 79 END * - 31
----
-210614

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7410
SELECT DISTINCT + + SUM( DISTINCT + + 56 ) * + CAST( NULL AS SIGNED ) * - 30 + + - 23
----
NULL

skipif mysql # not compatible
query I rowsort label-7410
SELECT DISTINCT + + SUM ( DISTINCT + + 56 ) * + CAST ( NULL AS INTEGER ) * - 30 + + - 23
----
NULL

query II rowsort
SELECT ALL - - 56 AS col0, + 16 col1
----
56
16

onlyif mysql # aggregate syntax: 
query I rowsort label-7412
SELECT CASE + 65 WHEN - 63 THEN - COUNT( * ) WHEN 86 * 75 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7412
SELECT CASE + 65 WHEN - 63 THEN - COUNT ( * ) WHEN 86 * 75 THEN NULL ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL 47 * + 76 * - + 65 + 88 + + + 78
----
-232014

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7414
SELECT ALL NULLIF ( COUNT( * ), + 56 ) * - CAST( NULL AS SIGNED ) + + 78 + - ( - 57 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7414
SELECT ALL NULLIF ( COUNT ( * ), + 56 ) * - CAST ( NULL AS INTEGER ) + + 78 + - ( - 57 ) AS col1
----
NULL

query I rowsort
SELECT ALL 71 * - 78 + + 1 + 49 + + + 7 + - 90
----
-5571

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

skipif mysql # not compatible
query I rowsort label-7416
SELECT - ( + + COUNT ( ALL - + 33 ) ) + - 59 AS col0
----
-60

query I rowsort
SELECT 57 * - 42 + + 94
----
-2300

query I rowsort
SELECT ALL 92 * NULLIF ( 39, - 9 * + 10 ) col0
----
3588

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7419
SELECT + 98 + - MIN( ALL CAST( 67 AS SIGNED ) ) DIV + 76, - 72 * ( + 94 ) col0
----
98
-6768

skipif mysql # not compatible
query II rowsort label-7419
SELECT + 98 + - MIN ( ALL CAST ( 67 AS INTEGER ) ) / + 76, - 72 * ( + 94 ) col0
----
98
-6768

onlyif mysql # aggregate syntax: 
query II rowsort label-7420
SELECT ALL - 57 * 74 col2, COUNT( * )
----
-4218
1

skipif mysql # not compatible
query II rowsort label-7420
SELECT ALL - 57 * 74 col2, COUNT ( * )
----
-4218
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7421
SELECT DISTINCT 39 - COUNT( * ) AS col2
----
38

skipif mysql # not compatible
query I rowsort label-7421
SELECT DISTINCT 39 - COUNT ( * ) AS col2
----
38

query I rowsort
SELECT + 50 * - - 98 col0
----
4900

onlyif mysql # DIV for integer division: 
query I rowsort label-7423
SELECT ALL 44 DIV + - 77 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7423
SELECT ALL 44 / + - 77 AS col2
----
0

query I rowsort
SELECT + 13 + + 39
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7425
SELECT + 18 * - 90 col0, - CAST( NULL AS SIGNED )
----
-1620
NULL

skipif mysql # not compatible
query II rowsort label-7425
SELECT + 18 * - 90 col0, - CAST ( NULL AS INTEGER )
----
-1620
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7426
SELECT + + ( NULLIF ( - 78, + + COUNT( * ) + - 14 ) ) + + 9 + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7426
SELECT + + ( NULLIF ( - 78, + + COUNT ( * ) + - 14 ) ) + + 9 + CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT + - 10 + - 99 + - 66 * + + 16 + + 60 col1
----
-1105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7428
SELECT + - MIN( 18 ) + + - NULLIF ( + + 79, + - 71 * - - 75 * - 53 - + - 83 + + 86 ) * 77 - - CAST( - CAST( + 36 AS SIGNED ) AS SIGNED ) DIV - 44 * 71 * ( - 3 ) AS col1
----
-6101

skipif mysql # not compatible
query I rowsort label-7428
SELECT + - MIN ( 18 ) + + - NULLIF ( + + 79, + - 71 * - - 75 * - 53 - + - 83 + + 86 ) * 77 - - CAST ( - CAST ( + 36 AS INTEGER ) AS INTEGER ) / - 44 * 71 * ( - 3 ) AS col1
----
-6101

onlyif mysql # aggregate syntax: 
query I rowsort label-7429
SELECT - + COALESCE ( - 27, 14 ) * COUNT( * ) * 73
----
1971

skipif mysql # not compatible
query I rowsort label-7429
SELECT - + COALESCE ( - 27, 14 ) * COUNT ( * ) * 73
----
1971

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7430
SELECT ALL CAST( NULL AS SIGNED ) * - - COUNT( * ) + 81 + - 70 * - - CAST( NULL AS SIGNED )
----
NULL

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

query I rowsort
SELECT + 30 + + + 50 * 58 * + 17
----
49330

onlyif mysql # aggregate syntax: 
query I rowsort label-7432
SELECT ALL - CASE + 51 WHEN + + 95 THEN NULL WHEN - - 18 THEN CASE WHEN NULL IS NULL THEN NULLIF ( 78, - + ( 46 ) ) ELSE + 81 + - 95 + + ( - 78 ) * - 46 END WHEN + 50 THEN NULL END * - COUNT( * ) * - - 53
----
NULL

skipif mysql # not compatible
query I rowsort label-7432
SELECT ALL - CASE + 51 WHEN + + 95 THEN NULL WHEN - - 18 THEN CASE WHEN NULL IS NULL THEN NULLIF ( 78, - + ( 46 ) ) ELSE + 81 + - 95 + + ( - 78 ) * - 46 END WHEN + 50 THEN NULL END * - COUNT ( * ) * - - 53
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7433
SELECT - COUNT( * ) + + COUNT( * ) DIV 72 * - 3 + 93 + 11 AS col2
----
103

skipif mysql # not compatible
query I rowsort label-7433
SELECT - COUNT ( * ) + + COUNT ( * ) / 72 * - 3 + 93 + 11 AS col2
----
103

onlyif mysql # DIV for integer division: 
query I rowsort label-7434
SELECT - - COALESCE ( - 97, - 62 DIV + 74 ) col1
----
-97

skipif mysql # not compatible
query I rowsort label-7434
SELECT - - COALESCE ( - 97, - 62 / + 74 ) col1
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7435
SELECT + ( COALESCE ( - COUNT( * ), - CAST( - 14 AS SIGNED ) ) ) * - + ( 52 ) AS col0, NULLIF ( + 20, 87 ) DIV - - 80 * + CASE 93 WHEN - - CAST( 43 AS SIGNED ) DIV + 42 + - 72 THEN - 47 ELSE - 43 END * + 74 - - + COALESCE ( 17, - ( + - 17 ), - 49 + + COUNT( * ) ) AS col2
----
52
17

skipif mysql # not compatible
query II rowsort label-7435
SELECT + ( COALESCE ( - COUNT ( * ), - CAST ( - 14 AS INTEGER ) ) ) * - + ( 52 ) AS col0, NULLIF ( + 20, 87 ) / - - 80 * + CASE 93 WHEN - - CAST ( 43 AS INTEGER ) / + 42 + - 72 THEN - 47 ELSE - 43 END * + 74 - - + COALESCE ( 17, - ( + - 17 ), - 49 + + COUNT ( * ) ) AS col2
----
52
17

onlyif mysql # aggregate syntax: 
query II rowsort label-7436
SELECT - - 9 + - 69 AS col1, + 78 * + COUNT( * )
----
-60
78

skipif mysql # not compatible
query II rowsort label-7436
SELECT - - 9 + - 69 AS col1, + 78 * + COUNT ( * )
----
-60
78

onlyif mysql # DIV for integer division: 
query I rowsort label-7437
SELECT - - 92 DIV - + 97
----
0

skipif mysql # not compatible
query I rowsort label-7437
SELECT - - 92 / - + 97
----
0

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

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

query I rowsort
SELECT ALL + + 95 + + 87
----
182

query I rowsort
SELECT + - 48 * + 95 * + 9 * 77 * 87 AS col0
----
-274926960

onlyif mysql # DIV for integer division: 
query I rowsort label-7441
SELECT ALL + 93 DIV - + 43 + + 84 + - + 25 * ( + 0 ) + - - 46
----
128

skipif mysql # not compatible
query I rowsort label-7441
SELECT ALL + 93 / - + 43 + + 84 + - + 25 * ( + 0 ) + - - 46
----
128

query I rowsort
SELECT DISTINCT - 42 * - 6 AS col2
----
252

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7443
SELECT DISTINCT 55 DIV + 22 + - MAX( ALL ( 40 ) ) + + 36 DIV 24 + + 58 DIV 67 * - + 51
----
-37

skipif mysql # not compatible
query I rowsort label-7443
SELECT DISTINCT 55 / + 22 + - MAX ( ALL ( 40 ) ) + + 36 / 24 + + 58 / 67 * - + 51
----
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-7444
SELECT ALL 24 DIV + + ( + 52 ) + + 11
----
11

skipif mysql # not compatible
query I rowsort label-7444
SELECT ALL 24 / + + ( + 52 ) + + 11
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-7445
SELECT - 64 * - - 95 * + - 24 * + - COUNT( * )
----
-145920

skipif mysql # not compatible
query I rowsort label-7445
SELECT - 64 * - - 95 * + - 24 * + - COUNT ( * )
----
-145920

onlyif mysql # DIV for integer division: 
query I rowsort label-7446
SELECT ALL - 61 DIV - 57 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7446
SELECT ALL - 61 / - 57 AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7447
SELECT - 30 DIV ( + 3 ) - 19 AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-7447
SELECT - 30 / ( + 3 ) - 19 AS col2
----
-29

query I rowsort
SELECT DISTINCT - 43 * 5
----
-215

query I rowsort
SELECT ( + + CASE + 70 WHEN 33 THEN - + ( - + 93 ) ELSE NULL END ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7450
SELECT - ( - 80 ) * - MIN( - CASE + 3 WHEN + 61 / - 14 + + 34 * 54 + - + 28 + + - 24 * - 28 THEN 29 * + - 55 + - 80 END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7450
SELECT - ( - 80 ) * - MIN ( - CASE + 3 WHEN + 61 / - 14 + + 34 * 54 + - + 28 + + - 24 * - 28 THEN 29 * + - 55 + - 80 END ) AS col0
----
NULL

query I rowsort
SELECT ( - - 62 ) * - - 49 - + + ( - + ( - 32 ) ) - + 62
----
2944

onlyif mysql # aggregate syntax: 
query I rowsort label-7452
SELECT ALL - 12 * - CASE + - 85 WHEN COALESCE ( - 30, ( - COUNT( * ) ) * 53 ) * - 82 THEN 23 END - - - COUNT( ALL + + 81 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7452
SELECT ALL - 12 * - CASE + - 85 WHEN COALESCE ( - 30, ( - COUNT ( * ) ) * 53 ) * - 82 THEN 23 END - - - COUNT ( ALL + + 81 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7453
SELECT - 68 + - + 94 - 42 + - - COUNT( * ) DIV - ( 24 ) AS col2
----
-204

skipif mysql # not compatible
query I rowsort label-7453
SELECT - 68 + - + 94 - 42 + - - COUNT ( * ) / - ( 24 ) AS col2
----
-204

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

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

query I rowsort
SELECT - 38 * + 31
----
-1178

query I rowsort
SELECT COALESCE ( + 38, 34 ) AS col0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-7457
SELECT DISTINCT - COALESCE ( - NULLIF ( 51, 41 - - COUNT( DISTINCT - 2 ) ), + 9 ) * - 31
----
-1581

skipif mysql # not compatible
query I rowsort label-7457
SELECT DISTINCT - COALESCE ( - NULLIF ( 51, 41 - - COUNT ( DISTINCT - 2 ) ), + 9 ) * - 31
----
-1581

onlyif mysql # DIV for integer division: 
query I rowsort label-7458
SELECT - 91 DIV + 69 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7458
SELECT - 91 / + 69 AS col0
----
-1

query I rowsort
SELECT + 97 * 68
----
6596

onlyif mysql # aggregate syntax: 
query I rowsort label-7460
SELECT - CASE - COALESCE ( - 0, 89 ) WHEN + 78 THEN 99 + + COUNT( DISTINCT - 40 ) ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7460
SELECT - CASE - COALESCE ( - 0, 89 ) WHEN + 78 THEN 99 + + COUNT ( DISTINCT - 40 ) ELSE NULL END col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7461
SELECT ALL CAST( COALESCE ( 60, 32 ) AS SIGNED )
----
60

skipif mysql # not compatible
query I rowsort label-7461
SELECT ALL CAST ( COALESCE ( 60, 32 ) AS INTEGER )
----
60

query I rowsort
SELECT DISTINCT - 9 * 65
----
-585

onlyif mysql # DIV for integer division: 
query I rowsort label-7463
SELECT + 61 DIV 47
----
1

skipif mysql # not compatible
query I rowsort label-7463
SELECT + 61 / 47
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7464
SELECT - 49 + NULLIF ( + 23 + + ( 14 ), MIN( - 11 ) ) AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-7464
SELECT - 49 + NULLIF ( + 23 + + ( 14 ), MIN ( - 11 ) ) AS col1
----
-12

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7466
SELECT - NULLIF ( - 37, COUNT( * ) * + 61 + 12 * + 89 ) AS col0
----
37

skipif mysql # not compatible
query I rowsort label-7466
SELECT - NULLIF ( - 37, COUNT ( * ) * + 61 + 12 * + 89 ) AS col0
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7467
SELECT CAST( + SUM( - 63 ) AS SIGNED ) * 8 AS col2
----
-504

skipif mysql # not compatible
query I rowsort label-7467
SELECT CAST ( + SUM ( - 63 ) AS INTEGER ) * 8 AS col2
----
-504

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

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

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

query I rowsort
SELECT ALL 65 * - 51
----
-3315

query I rowsort
SELECT DISTINCT 0 + + 85 * 6 AS col0
----
510

query I rowsort
SELECT ALL + 2 + 68
----
70

query I rowsort
SELECT DISTINCT - 47 * 78 AS col1
----
-3666

query I rowsort
SELECT ALL 29 * - 18
----
-522

query I rowsort
SELECT 39 + + ( - 31 - + 52 * 20 ) AS col0
----
-1032

query I rowsort
SELECT 75 - + 36 AS col0
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-7477
SELECT - 63 DIV 67 + + 30 DIV 73 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7477
SELECT - 63 / 67 + + 30 / 73 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7478
SELECT + 76 * CASE 98 WHEN - 9 THEN - 55 DIV 91 ELSE 48 * - ( COALESCE ( + 20, 40 ) ) + + 54 END + CAST( + 26 AS SIGNED ) * COUNT( * )
----
-68830

skipif mysql # not compatible
query I rowsort label-7478
SELECT + 76 * CASE 98 WHEN - 9 THEN - 55 / 91 ELSE 48 * - ( COALESCE ( + 20, 40 ) ) + + 54 END + CAST ( + 26 AS INTEGER ) * COUNT ( * )
----
-68830

query I rowsort
SELECT ALL 23 - 56 AS col2
----
-33

query I rowsort
SELECT 0 * 6
----
0

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7482
SELECT DISTINCT - 12 DIV MAX( - 31 )
----
0

skipif mysql # not compatible
query I rowsort label-7482
SELECT DISTINCT - 12 / MAX ( - 31 )
----
0

query I rowsort
SELECT ALL 63 - 21 AS col0
----
42

query I rowsort
SELECT 90 * + 21 AS col0
----
1890

onlyif mysql # aggregate syntax: 
query I rowsort label-7485
SELECT ALL - CASE 43 WHEN + 98 * + 20 + ( 80 + COUNT( * ) ) THEN NULL WHEN - 72 THEN 7 / - 25 WHEN - COALESCE ( - 76, COUNT( * ) ) * - COUNT( * ) THEN 2 END * 76 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7485
SELECT ALL - CASE 43 WHEN + 98 * + 20 + ( 80 + COUNT ( * ) ) THEN NULL WHEN - 72 THEN 7 / - 25 WHEN - COALESCE ( - 76, COUNT ( * ) ) * - COUNT ( * ) THEN 2 END * 76 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7486
SELECT ALL + COUNT( * ) - 71 * COALESCE ( CAST( NULL AS SIGNED ) * 10 + SUM( DISTINCT 24 ), MIN( 88 ) )
----
-6247

skipif mysql # not compatible
query I rowsort label-7486
SELECT ALL + COUNT ( * ) - 71 * COALESCE ( CAST ( NULL AS INTEGER ) * 10 + SUM ( DISTINCT 24 ), MIN ( 88 ) )
----
-6247

query I rowsort
SELECT 9 + - 60
----
-51

query I rowsort
SELECT 15 * 63
----
945

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

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

query I rowsort
SELECT ALL - 40 * + 80
----
-3200

query I rowsort
SELECT 89 * 2
----
178

query I rowsort
SELECT 25 * 13 AS col2
----
325

query I rowsort
SELECT - 48 + 64 * 44
----
2768

onlyif mysql # aggregate syntax: 
query I rowsort label-7494
SELECT DISTINCT - + COUNT( DISTINCT - 39 ) * + 99 AS col2
----
-99

skipif mysql # not compatible
query I rowsort label-7494
SELECT DISTINCT - + COUNT ( DISTINCT - 39 ) * + 99 AS col2
----
-99

query I rowsort
SELECT - CASE 41 WHEN + 35 + + 23 / 18 THEN - ( 83 ) + 69 WHEN + 36 THEN NULL ELSE NULL END * 2 + NULLIF ( 74, 88 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7496
SELECT ALL - + ( - NULLIF ( ( + MAX( 23 ) ), 1 ) ) AS col1
----
23

skipif mysql # not compatible
query I rowsort label-7496
SELECT ALL - + ( - NULLIF ( ( + MAX ( 23 ) ), 1 ) ) AS col1
----
23

query I rowsort
SELECT - 75 + - 7
----
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-7498
SELECT ALL + 22 + 61 DIV 67 AS col2
----
22

skipif mysql # not compatible
query I rowsort label-7498
SELECT ALL + 22 + 61 / 67 AS col2
----
22

query I rowsort
SELECT + 98 + 45 col0
----
143

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

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

query I rowsort
SELECT ( - 45 ) + 58 AS col0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-7502
SELECT - MIN( DISTINCT 57 )
----
-57

skipif mysql # not compatible
query I rowsort label-7502
SELECT - MIN ( DISTINCT 57 )
----
-57

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

skipif mysql # not compatible
query I rowsort label-7503
SELECT 85 + - 94 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - 70 * + 21
----
-1470

query I rowsort
SELECT ALL + 12 + - 29
----
-17

query I rowsort
SELECT ALL - 21 + 26 AS col1
----
5

query I rowsort
SELECT + 14 * 30 AS col1
----
420

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

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

query I rowsort
SELECT ( 79 ) + NULLIF ( 78 + 26, + ( - 32 ) )
----
183

query I rowsort
SELECT DISTINCT - 88 - + 66 col0
----
-154

query I rowsort
SELECT 46 * + - 33 * 3
----
-4554

query I rowsort
SELECT 84 + 97 col2
----
181

query I rowsort
SELECT ALL 23 - + 85
----
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-7514
SELECT DISTINCT 82 DIV ( - 53 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7514
SELECT DISTINCT 82 / ( - 53 ) AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7515
SELECT ALL ( - CAST( 57 AS SIGNED ) ) * 85 - ( + ( 62 ) - + 59 ) * 78 AS col0
----
-5079

skipif mysql # not compatible
query I rowsort label-7515
SELECT ALL ( - CAST ( 57 AS INTEGER ) ) * 85 - ( + ( 62 ) - + 59 ) * 78 AS col0
----
-5079

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7518
SELECT ALL 45 * CAST( NULL AS SIGNED ) / NULLIF ( - 91, - SUM( DISTINCT - 74 ) + - 14 * + 4 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7518
SELECT ALL 45 * CAST ( NULL AS INTEGER ) / NULLIF ( - 91, - SUM ( DISTINCT - 74 ) + - 14 * + 4 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7519
SELECT MIN( DISTINCT + 89 ) * + 23 AS col1
----
2047

skipif mysql # not compatible
query I rowsort label-7519
SELECT MIN ( DISTINCT + 89 ) * + 23 AS col1
----
2047

query I rowsort
SELECT 70 * + - 84
----
-5880

onlyif mysql # aggregate syntax: 
query I rowsort label-7521
SELECT COUNT( * ) + + + COALESCE ( ( + 39 ), - 94 ) * - 68
----
-2651

skipif mysql # not compatible
query I rowsort label-7521
SELECT COUNT ( * ) + + + COALESCE ( ( + 39 ), - 94 ) * - 68
----
-2651

query I rowsort
SELECT DISTINCT 74 * 40
----
2960

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7523
SELECT - NULLIF ( + 48, MIN( + 85 ) + 47 ) * + 49 + - ( 69 ) DIV ( + 64 ) AS col1
----
-2353

skipif mysql # not compatible
query I rowsort label-7523
SELECT - NULLIF ( + 48, MIN ( + 85 ) + 47 ) * + 49 + - ( 69 ) / ( + 64 ) AS col1
----
-2353

onlyif mysql # aggregate syntax: 
query I rowsort label-7524
SELECT ALL 9 * + 3 * + ( + MIN( 78 ) ) AS col0
----
2106

skipif mysql # not compatible
query I rowsort label-7524
SELECT ALL 9 * + 3 * + ( + MIN ( 78 ) ) AS col0
----
2106

onlyif mysql # aggregate syntax: 
query I rowsort label-7525
SELECT 25 * + COUNT( * ) * 21
----
525

skipif mysql # not compatible
query I rowsort label-7525
SELECT 25 * + COUNT ( * ) * 21
----
525

onlyif mysql # aggregate syntax: 
query I rowsort label-7526
SELECT MIN( ALL - 57 ) col0
----
-57

skipif mysql # not compatible
query I rowsort label-7526
SELECT MIN ( ALL - 57 ) col0
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-7527
SELECT DISTINCT MIN( DISTINCT + 25 ) + 9
----
34

skipif mysql # not compatible
query I rowsort label-7527
SELECT DISTINCT MIN ( DISTINCT + 25 ) + 9
----
34

query I rowsort
SELECT - 85 * - 33 * + 31 + 24 - 38 AS col0
----
86941

onlyif mysql # aggregate syntax: 
query I rowsort label-7529
SELECT ALL - MAX( + 46 ) col2
----
-46

skipif mysql # not compatible
query I rowsort label-7529
SELECT ALL - MAX ( + 46 ) col2
----
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-7530
SELECT ( 45 ) DIV + 43
----
1

skipif mysql # not compatible
query I rowsort label-7530
SELECT ( 45 ) / + 43
----
1

query I rowsort
SELECT ALL + 26 + + 95
----
121

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7533
SELECT ALL + 57 + + MIN( 91 ) * CASE WHEN NOT 5 IN ( 43 + - 11 ) THEN - 86 ELSE 25 * 45 + + 2 END col2
----
-7769

skipif mysql # not compatible
query I rowsort label-7533
SELECT ALL + 57 + + MIN ( 91 ) * CASE WHEN NOT 5 IN ( 43 + - 11 ) THEN - 86 ELSE 25 * 45 + + 2 END col2
----
-7769

query I rowsort
SELECT ALL + + 93 + 54 * - 45 AS col2
----
-2337

onlyif mysql # DIV for integer division: 
query I rowsort label-7535
SELECT 18 DIV - ( 77 ) * + 90 + + 83
----
83

skipif mysql # not compatible
query I rowsort label-7535
SELECT 18 / - ( 77 ) * + 90 + + 83
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-7536
SELECT 62 * + 8 + COUNT( * ) * 26
----
522

skipif mysql # not compatible
query I rowsort label-7536
SELECT 62 * + 8 + COUNT ( * ) * 26
----
522

query I rowsort
SELECT ALL 65 + + 92 * 0 AS col1
----
65

query I rowsort
SELECT - 9 * + + 89
----
-801

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7539
SELECT + COUNT( + CAST( - 36 AS SIGNED ) ) col1
----
1

skipif mysql # not compatible
query I rowsort label-7539
SELECT + COUNT ( + CAST ( - 36 AS INTEGER ) ) col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7540
SELECT DISTINCT - CAST( - - 55 AS SIGNED ) * + NULLIF ( + 76 + + 60, - MAX( 44 ) + 5 * + 45 ) AS col0
----
-7480

skipif mysql # not compatible
query I rowsort label-7540
SELECT DISTINCT - CAST ( - - 55 AS INTEGER ) * + NULLIF ( + 76 + + 60, - MAX ( 44 ) + 5 * + 45 ) AS col0
----
-7480

query I rowsort
SELECT - CASE - - 72 WHEN 68 THEN 58 + 76 ELSE 52 END AS col2
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7542
SELECT - + ( CAST( 4 AS SIGNED ) ) * + 66
----
-264

skipif mysql # not compatible
query I rowsort label-7542
SELECT - + ( CAST ( 4 AS INTEGER ) ) * + 66
----
-264

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

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

query I rowsort
SELECT ALL + 80 * - + 33 AS col1
----
-2640

onlyif mysql # DIV for integer division: 
query I rowsort label-7545
SELECT - 12 * + 3 DIV + ( 95 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7545
SELECT - 12 * + 3 / + ( 95 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7546
SELECT - MAX( - 87 ) col1
----
87

skipif mysql # not compatible
query I rowsort label-7546
SELECT - MAX ( - 87 ) col1
----
87

query I rowsort
SELECT + 56 + + - 31
----
25

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7549
SELECT - COUNT( * ) + MAX( DISTINCT - 42 ) + + 71
----
28

skipif mysql # not compatible
query I rowsort label-7549
SELECT - COUNT ( * ) + MAX ( DISTINCT - 42 ) + + 71
----
28

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

skipif mysql # not compatible
query I rowsort label-7550
SELECT - COUNT ( * ) * 28 / + 5 AS col0
----
-5

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

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

query I rowsort
SELECT - 5 + 31 + - 7
----
19

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7554
SELECT ALL + 39 DIV + 29 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7554
SELECT ALL + 39 / + 29 AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7555
SELECT DISTINCT COUNT( * ), - 24 * + 93 AS col0
----
1
-2232

skipif mysql # not compatible
query II rowsort label-7555
SELECT DISTINCT COUNT ( * ), - 24 * + 93 AS col0
----
1
-2232

query I rowsort
SELECT - 58 + - 46 col0
----
-104

query II rowsort
SELECT 40, 24 AS col1
----
40
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7558
SELECT ALL NULLIF ( + 71, - + CAST( NULL AS SIGNED ) )
----
71

skipif mysql # not compatible
query I rowsort label-7558
SELECT ALL NULLIF ( + 71, - + CAST ( NULL AS INTEGER ) )
----
71

query I rowsort
SELECT ALL + 12 * + 99 AS col2
----
1188

query I rowsort
SELECT - 51 - - - 32 + 30
----
-53

query I rowsort
SELECT - ( + 55 ) * - + 13
----
715

query I rowsort
SELECT + 28 - - 52
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-7563
SELECT - COUNT( * ) * + 53 * 50 AS col2
----
-2650

skipif mysql # not compatible
query I rowsort label-7563
SELECT - COUNT ( * ) * + 53 * 50 AS col2
----
-2650

onlyif mysql # DIV for integer division: 
query I rowsort label-7564
SELECT + 21 DIV 75
----
0

skipif mysql # not compatible
query I rowsort label-7564
SELECT + 21 / 75
----
0

query I rowsort
SELECT ALL - COALESCE ( + 30, - 19 + 46 * - 71 ) * + 48 + + 97 AS col2
----
-1343

onlyif mysql # DIV for integer division: 
query I rowsort label-7566
SELECT + ( + 84 ) DIV NULLIF ( - 1, 94 ) + 33 * - 96 AS col1
----
-3252

skipif mysql # not compatible
query I rowsort label-7566
SELECT + ( + 84 ) / NULLIF ( - 1, 94 ) + 33 * - 96 AS col1
----
-3252

query I rowsort
SELECT - 9 * + CASE - 90 WHEN ( - 96 ) THEN - 99 * - 96 END AS col2
----
NULL

query I rowsort
SELECT ALL + 97 * + 3 col0
----
291

query I rowsort
SELECT ALL + 25 * - 10 + 81 - - 87 + 96
----
14

query I rowsort
SELECT DISTINCT - 89 * + + 70 + + - ( 44 ) * - 64
----
-3414

query II rowsort
SELECT + 48 AS col1, 86 col0
----
48
86

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

query I rowsort
SELECT ALL 54 * 72
----
3888

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

skipif mysql # not compatible
query I rowsort label-7574
SELECT + - CAST ( NULL AS INTEGER ) / + 21 - 78
----
NULL

query I rowsort
SELECT ALL - - 17 * - + ( + + COALESCE ( + 78, - 0 ) ) + ( 44 )
----
-1282

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7576
SELECT 39 * 74 + CASE 13 WHEN 61 + + AVG ( - 40 ) / + COUNT( * ) THEN NULL WHEN 40 * COUNT( * ) THEN + CASE ( - 96 ) WHEN NULLIF ( CAST( NULL AS SIGNED ), 77 * - AVG ( + 83 ) ) THEN - 43 END ELSE 91 END AS col1
----
2977

skipif mysql # not compatible
query I rowsort label-7576
SELECT 39 * 74 + CASE 13 WHEN 61 + + AVG ( - 40 ) / + COUNT ( * ) THEN NULL WHEN 40 * COUNT ( * ) THEN + CASE ( - 96 ) WHEN NULLIF ( CAST ( NULL AS INTEGER ), 77 * - AVG ( + 83 ) ) THEN - 43 END ELSE 91 END AS col1
----
2977

query I rowsort
SELECT + - 81 * - 12 AS col1
----
972

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7578
SELECT - + 67 * + 33 + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7578
SELECT - + 67 * + 33 + CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7579
SELECT DISTINCT COALESCE ( 98, - 12 ) * - ( - 16 ) + - 31 * ( CASE - 66 WHEN MIN( DISTINCT 21 ) THEN 33 + - 10 WHEN 29 THEN 9 * + NULLIF ( + COUNT( * ), - 22 + - CASE + 40 WHEN - ( - MIN( DISTINCT + 43 ) ) + - 95 THEN NULL ELSE 36 END ) END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7579
SELECT DISTINCT COALESCE ( 98, - 12 ) * - ( - 16 ) + - 31 * ( CASE - 66 WHEN MIN ( DISTINCT 21 ) THEN 33 + - 10 WHEN 29 THEN 9 * + NULLIF ( + COUNT ( * ), - 22 + - CASE + 40 WHEN - ( - MIN ( DISTINCT + 43 ) ) + - 95 THEN NULL ELSE 36 END ) END ) AS col0
----
NULL

query I rowsort
SELECT + 74 + 39 * + - 55 * 93 AS col1
----
-199411

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7581
SELECT + 87 * COALESCE ( COUNT( ALL CAST( 89 AS SIGNED ) ), COUNT( * ) ) DIV - 58 + NULLIF ( 38, + CASE + CAST( ( COALESCE ( 57, + COALESCE ( 27, 7 + 50 ) ) ) AS SIGNED ) WHEN - 75 THEN COUNT( DISTINCT - 68 ) + - COUNT( * ) ELSE - 14 END )
----
37

skipif mysql # not compatible
query I rowsort label-7581
SELECT + 87 * COALESCE ( COUNT ( ALL CAST ( 89 AS INTEGER ) ), COUNT ( * ) ) / - 58 + NULLIF ( 38, + CASE + CAST ( ( COALESCE ( 57, + COALESCE ( 27, 7 + 50 ) ) ) AS INTEGER ) WHEN - 75 THEN COUNT ( DISTINCT - 68 ) + - COUNT ( * ) ELSE - 14 END )
----
37

query I rowsort
SELECT DISTINCT - + NULLIF ( + + 38, - 83 * 38 ) * 96 - + 65 AS col2
----
-3713

onlyif mysql # aggregate syntax: 
query I rowsort label-7583
SELECT ALL + 16 * - ( + + COUNT( * ) ) * COUNT( * ) - 65 * - 55
----
3559

skipif mysql # not compatible
query I rowsort label-7583
SELECT ALL + 16 * - ( + + COUNT ( * ) ) * COUNT ( * ) - 65 * - 55
----
3559

onlyif mysql # aggregate syntax: 
query I rowsort label-7584
SELECT - - NULLIF ( + MAX( DISTINCT - 99 ), - 7 + + MAX( ALL 43 + + 35 ) )
----
-99

skipif mysql # not compatible
query I rowsort label-7584
SELECT - - NULLIF ( + MAX ( DISTINCT - 99 ), - 7 + + MAX ( ALL 43 + + 35 ) )
----
-99

query I rowsort
SELECT + 54 * + - 79
----
-4266

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7586
SELECT + - COUNT( * ) DIV - SUM( + CAST( - 51 AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-7586
SELECT + - COUNT ( * ) / - SUM ( + CAST ( - 51 AS INTEGER ) )
----
0

query I rowsort
SELECT DISTINCT - 98 * 24 AS col0
----
-2352

onlyif mysql # aggregate syntax: 
query I rowsort label-7588
SELECT ALL + 43 * + COUNT( * ) * - COALESCE ( - 76, + 62 ) * - CASE - 64 + 24 WHEN - 11 THEN NULL WHEN + COUNT( * ) THEN - 40 / + 62 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7588
SELECT ALL + 43 * + COUNT ( * ) * - COALESCE ( - 76, + 62 ) * - CASE - 64 + 24 WHEN - 11 THEN NULL WHEN + COUNT ( * ) THEN - 40 / + 62 END AS col0
----
NULL

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

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

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

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

query I rowsort
SELECT DISTINCT + 25 * - - 46
----
1150

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

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

query I rowsort
SELECT - 28 + - 55 AS col1
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-7594
SELECT ALL CASE + 63 WHEN ( - 40 ) THEN + CASE 39 WHEN MIN( DISTINCT 20 ) + + 73 THEN NULL WHEN 88 THEN - 13 * 86 END WHEN + 1 * 54 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7594
SELECT ALL CASE + 63 WHEN ( - 40 ) THEN + CASE 39 WHEN MIN ( DISTINCT 20 ) + + 73 THEN NULL WHEN 88 THEN - 13 * 86 END WHEN + 1 * 54 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7595
SELECT + ( - + CAST( + 72 AS SIGNED ) ) DIV 81 * ( MAX( DISTINCT + 34 ) )
----
0

skipif mysql # not compatible
query I rowsort label-7595
SELECT + ( - + CAST ( + 72 AS INTEGER ) ) / 81 * ( MAX ( DISTINCT + 34 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7596
SELECT - 45 * CASE - - 70 WHEN 34 THEN + 38 WHEN COUNT( * ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7596
SELECT - 45 * CASE - - 70 WHEN 34 THEN + 38 WHEN COUNT ( * ) THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7597
SELECT - 4 + + + 25 + - COUNT( * ) + + 31 + 22 * + 88
----
1987

skipif mysql # not compatible
query I rowsort label-7597
SELECT - 4 + + + 25 + - COUNT ( * ) + + 31 + 22 * + 88
----
1987

query I rowsort
SELECT DISTINCT + 63 + + + 20 * - 83 + 40 + 6 AS col1
----
-1551

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7599
SELECT DISTINCT + ( + 35 ) / + - 66 * + + CAST( NULL AS SIGNED ) + - 66 + 10
----
NULL

skipif mysql # not compatible
query I rowsort label-7599
SELECT DISTINCT + ( + 35 ) / + - 66 * + + CAST ( NULL AS INTEGER ) + - 66 + 10
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7601
SELECT ALL - MAX( ALL - 36 ), - 2 + - ( - 53 ) col1
----
36
51

skipif mysql # not compatible
query II rowsort label-7601
SELECT ALL - MAX ( ALL - 36 ), - 2 + - ( - 53 ) col1
----
36
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7602
SELECT DISTINCT - - ( - CASE + ( + 51 ) WHEN MAX( - ( 22 ) ) THEN 93 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-7602
SELECT DISTINCT - - ( - CASE + ( + 51 ) WHEN MAX ( - ( 22 ) ) THEN 93 END )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7603
SELECT DISTINCT - MAX( DISTINCT - 56 ) AS col0, + 49 AS col1
----
56
49

skipif mysql # not compatible
query II rowsort label-7603
SELECT DISTINCT - MAX ( DISTINCT - 56 ) AS col0, + 49 AS col1
----
56
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7604
SELECT DISTINCT 73 * - CAST( NULL AS SIGNED ) * - 31 - + - 13 - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7604
SELECT DISTINCT 73 * - CAST ( NULL AS INTEGER ) * - 31 - + - 13 - COUNT ( * )
----
NULL

query I rowsort
SELECT ALL - 87 * 10 AS col2
----
-870

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7606
SELECT ALL + NULLIF ( - COALESCE ( - + 62, + 92 ), + 68 * 18 + + COALESCE ( 26 + 89, CAST( NULL AS SIGNED ) * 67 ) )
----
62

skipif mysql # not compatible
query I rowsort label-7606
SELECT ALL + NULLIF ( - COALESCE ( - + 62, + 92 ), + 68 * 18 + + COALESCE ( 26 + 89, CAST ( NULL AS INTEGER ) * 67 ) )
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-7607
SELECT DISTINCT 87 DIV + 16
----
5

skipif mysql # not compatible
query I rowsort label-7607
SELECT DISTINCT 87 / + 16
----
5

query II rowsort
SELECT ALL 72 AS col1, 97 AS col0
----
72
97

query I rowsort
SELECT 74 + - 96 AS col1
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-7610
SELECT 9 * CASE + - 47 WHEN + 48 THEN NULL ELSE + + 29 + + 68 END * + COUNT( * ) AS col2
----
873

skipif mysql # not compatible
query I rowsort label-7610
SELECT 9 * CASE + - 47 WHEN + 48 THEN NULL ELSE + + 29 + + 68 END * + COUNT ( * ) AS col2
----
873

query I rowsort
SELECT ( 12 ) + + - 11
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7612
SELECT ALL 98 DIV - 99 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7612
SELECT ALL 98 / - 99 AS col2
----
0

query II rowsort
SELECT ALL + ( 59 ) * - 42 AS col2, 35
----
-2478
35

onlyif mysql # aggregate syntax: 
query I rowsort label-7614
SELECT ALL - MIN( + 40 ) + + 63 - - + 69 * - 96
----
-6601

skipif mysql # not compatible
query I rowsort label-7614
SELECT ALL - MIN ( + 40 ) + + 63 - - + 69 * - 96
----
-6601

query I rowsort
SELECT 34 + + - 24
----
10

query II rowsort
SELECT ALL 5 AS col2, 27 AS col1
----
5
27

onlyif mysql # aggregate syntax: 
query I rowsort label-7617
SELECT + 53 + - + 18 + - COUNT( * ) * 28 AS col0
----
7

skipif mysql # not compatible
query I rowsort label-7617
SELECT + 53 + - + 18 + - COUNT ( * ) * 28 AS col0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-7618
SELECT - 90 * - + 81 + + COUNT( * ) + - 47 AS col0
----
7244

skipif mysql # not compatible
query I rowsort label-7618
SELECT - 90 * - + 81 + + COUNT ( * ) + - 47 AS col0
----
7244

query I rowsort
SELECT 16 * - 72 AS col0
----
-1152

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

skipif mysql # not compatible
query I rowsort label-7620
SELECT ALL + 45 - + 37 / + COUNT ( * ) AS col0
----
8

query I rowsort
SELECT - 20 + - 36 + - 28 * - NULLIF ( - - 12, - 11 + 78 )
----
280

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

skipif mysql # not compatible
query I rowsort label-7622
SELECT + - MAX ( - 73 )
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-7623
SELECT ALL - COALESCE ( COALESCE ( + 81, - 42 ), COUNT( * ) * 71 - 45, 56 )
----
-81

skipif mysql # not compatible
query I rowsort label-7623
SELECT ALL - COALESCE ( COALESCE ( + 81, - 42 ), COUNT ( * ) * 71 - 45, 56 )
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-7624
SELECT ALL - ( - + 17 ) * 78 * COUNT( * ) AS col2
----
1326

skipif mysql # not compatible
query I rowsort label-7624
SELECT ALL - ( - + 17 ) * 78 * COUNT ( * ) AS col2
----
1326

onlyif mysql # aggregate syntax: 
query I rowsort label-7625
SELECT + 42 * NULLIF ( - 97, - + ( - COUNT( * ) ) ) * - 77 + COALESCE ( + 49 + 8 * - 81, 61 + 52 * + 65, ( - 40 ) ) * + 24 AS col0
----
299322

skipif mysql # not compatible
query I rowsort label-7625
SELECT + 42 * NULLIF ( - 97, - + ( - COUNT ( * ) ) ) * - 77 + COALESCE ( + 49 + 8 * - 81, 61 + 52 * + 65, ( - 40 ) ) * + 24 AS col0
----
299322

onlyif mysql # DIV for integer division: 
query I rowsort label-7626
SELECT ALL - 43 DIV + + 56 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7626
SELECT ALL - 43 / + + 56 AS col1
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7628
SELECT + SUM( 64 ) * + NULLIF ( + 15, + 73 ) - + 52
----
908

skipif mysql # not compatible
query I rowsort label-7628
SELECT + SUM ( 64 ) * + NULLIF ( + 15, + 73 ) - + 52
----
908

query I rowsort
SELECT DISTINCT + 51 - + 0 - + 68 * + 8
----
-493

onlyif mysql # aggregate syntax: 
query II rowsort label-7630
SELECT ALL - COUNT( ALL + - 38 ) * - 57, - 70 + - COALESCE ( + 20, + 27, 81 ) AS col2
----
57
-90

skipif mysql # not compatible
query II rowsort label-7630
SELECT ALL - COUNT ( ALL + - 38 ) * - 57, - 70 + - COALESCE ( + 20, + 27, 81 ) AS col2
----
57
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7631
SELECT + 9 + 34 / + 8 + - SUM( CAST( NULL AS SIGNED ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7631
SELECT + 9 + 34 / + 8 + - SUM ( CAST ( NULL AS INTEGER ) ) col1
----
NULL

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

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

query I rowsort
SELECT 95 + - 49
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-7634
SELECT - 36 DIV - 67
----
0

skipif mysql # not compatible
query I rowsort label-7634
SELECT - 36 / - 67
----
0

query I rowsort
SELECT 54 * 1 col1
----
54

query I rowsort
SELECT + 81 * 18 * 91 + + 16
----
132694

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

query II rowsort
SELECT 84 + + 55 AS col2, 62
----
139
62

onlyif mysql # aggregate syntax: 
query I rowsort label-7639
SELECT ALL + 80 + + - 88 + + 22 + + - 54 * - COUNT( * )
----
68

skipif mysql # not compatible
query I rowsort label-7639
SELECT ALL + 80 + + - 88 + + 22 + + - 54 * - COUNT ( * )
----
68

query I rowsort
SELECT 93 * + 7 AS col1
----
651

onlyif mysql # DIV for integer division: 
query I rowsort label-7641
SELECT ALL 47 + - 55 DIV 93 * 1 AS col2
----
47

skipif mysql # not compatible
query I rowsort label-7641
SELECT ALL 47 + - 55 / 93 * 1 AS col2
----
47

query I rowsort
SELECT 0 + + NULLIF ( - 4, - 10 * - ( - - ( + NULLIF ( - 74, - 72 * - 22 + - 7 ) ) ) )
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7643
SELECT ALL MAX( + CAST( + + CAST( + 48 AS SIGNED ) AS SIGNED ) ) col1, NULLIF ( - 76, CASE 71 WHEN MIN( - 45 ) THEN AVG ( - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) ) END * 28 ) DIV 36 AS col1
----
48
-2

skipif mysql # not compatible
query II rowsort label-7643
SELECT ALL MAX ( + CAST ( + + CAST ( + 48 AS INTEGER ) AS INTEGER ) ) col1, NULLIF ( - 76, CASE 71 WHEN MIN ( - 45 ) THEN AVG ( - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) ) END * 28 ) / 36 AS col1
----
48
-2

onlyif mysql # DIV for integer division: 
query II rowsort label-7644
SELECT 29 AS col0, - 9 DIV + 91 AS col2
----
29
0

skipif mysql # not compatible
query II rowsort label-7644
SELECT 29 AS col0, - 9 / + 91 AS col2
----
29
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7645
SELECT NULLIF ( 39, + 17 ) + - COUNT( * ) + + 3
----
41

skipif mysql # not compatible
query I rowsort label-7645
SELECT NULLIF ( 39, + 17 ) + - COUNT ( * ) + + 3
----
41

query I rowsort
SELECT 83 * + 87
----
7221

query I rowsort
SELECT ALL 11 + - - 39
----
50

query I rowsort
SELECT ( + ( 25 ) ) + - 70 + 13 + + 21
----
-11

query I rowsort
SELECT DISTINCT 46 + 17 + 83 * 51 + - 22 * 84 col1
----
2448

query I rowsort
SELECT DISTINCT - 90 * + 27 * - CASE - 3 WHEN ( + 57 ) - 78 THEN 19 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7651
SELECT DISTINCT + 36 + 74 + - + 89 * + 3 DIV 27 DIV + NULLIF ( 97, + 61 ) * + COALESCE ( + 95, - 8 * + 75 ) AS col1
----
110

skipif mysql # not compatible
query I rowsort label-7651
SELECT DISTINCT + 36 + 74 + - + 89 * + 3 / 27 / + NULLIF ( 97, + 61 ) * + COALESCE ( + 95, - 8 * + 75 ) AS col1
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-7652
SELECT ALL - SUM( ALL + - 79 ) + - 31 * + - 26 + ( 52 ) AS col1
----
937

skipif mysql # not compatible
query I rowsort label-7652
SELECT ALL - SUM ( ALL + - 79 ) + - 31 * + - 26 + ( 52 ) AS col1
----
937

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7654
SELECT 99 DIV - 37 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-7654
SELECT 99 / - 37 AS col0
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-7655
SELECT DISTINCT 1 AS col2, COUNT( * ) * - COALESCE ( + + 2, 62 + 59, 40 * 31 ) * - 44 AS col1
----
1
88

skipif mysql # not compatible
query II rowsort label-7655
SELECT DISTINCT 1 AS col2, COUNT ( * ) * - COALESCE ( + + 2, 62 + 59, 40 * 31 ) * - 44 AS col1
----
1
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7656
SELECT - NULLIF ( ( - 94 ), + CAST( NULL AS SIGNED ) * + AVG ( - 96 ) - ( 52 ) )
----
94

skipif mysql # not compatible
query I rowsort label-7656
SELECT - NULLIF ( ( - 94 ), + CAST ( NULL AS INTEGER ) * + AVG ( - 96 ) - ( 52 ) )
----
94

query I rowsort
SELECT - COALESCE ( COALESCE ( - NULLIF ( + 3, + + 26 * + + 47 ), - 78 ), - 18 * - 35, + ( ( 0 ) ) * 87 + - 43 )
----
3

query I rowsort
SELECT - 60 * - 30
----
1800

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7659
SELECT + 4 * - - CAST( + + 10 AS SIGNED ) AS col2
----
40

skipif mysql # not compatible
query I rowsort label-7659
SELECT + 4 * - - CAST ( + + 10 AS INTEGER ) AS col2
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7660
SELECT ALL - 58 * MIN( 97 ) * - + 64 + + 63 + + 22 * CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7660
SELECT ALL - 58 * MIN ( 97 ) * - + 64 + + 63 + + 22 * CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT + - 52 + + 41 - - 81
----
70

onlyif mysql # aggregate syntax: 
query II rowsort label-7662
SELECT DISTINCT ( + 9 ) AS col2, 16 + + COUNT( * ) * COUNT( * )
----
9
17

skipif mysql # not compatible
query II rowsort label-7662
SELECT DISTINCT ( + 9 ) AS col2, 16 + + COUNT ( * ) * COUNT ( * )
----
9
17

query I rowsort
SELECT ALL + 88 - - + 38
----
126

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7665
SELECT + - 2 * COALESCE ( - + SUM( DISTINCT 50 ), - ( + ( 66 ) ) ) * 10 - - NULLIF ( 18, 6 ) * - 55 AS col0
----
10

skipif mysql # not compatible
query I rowsort label-7665
SELECT + - 2 * COALESCE ( - + SUM ( DISTINCT 50 ), - ( + ( 66 ) ) ) * 10 - - NULLIF ( 18, 6 ) * - 55 AS col0
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7666
SELECT - + 40 / - + CAST( NULL AS SIGNED ) + 96
----
NULL

skipif mysql # not compatible
query I rowsort label-7666
SELECT - + 40 / - + CAST ( NULL AS INTEGER ) + 96
----
NULL

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

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

query I rowsort
SELECT - 62 + - 53 + - - 25
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7669
SELECT + 24, + COUNT( * ) - + 3 / + + CASE - - COUNT( * ) WHEN + 23 - - MAX( 73 ) * - CAST( NULL AS SIGNED ) THEN - 17 * 27 WHEN - 39 THEN NULL END - 23 / 81 AS col1
----
24
NULL

skipif mysql # not compatible
query II rowsort label-7669
SELECT + 24, + COUNT ( * ) - + 3 / + + CASE - - COUNT ( * ) WHEN + 23 - - MAX ( 73 ) * - CAST ( NULL AS INTEGER ) THEN - 17 * 27 WHEN - 39 THEN NULL END - 23 / 81 AS col1
----
24
NULL

query I rowsort
SELECT + 6 * 53 + 37
----
355

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7671
SELECT + 46 * 71 DIV 23 + + CAST( + + COUNT( * ) AS SIGNED ) + 66 + 81 * - 35 AS col1
----
-2626

skipif mysql # not compatible
query I rowsort label-7671
SELECT + 46 * 71 / 23 + + CAST ( + + COUNT ( * ) AS INTEGER ) + 66 + 81 * - 35 AS col1
----
-2626

onlyif mysql # aggregate syntax: 
query I rowsort label-7672
SELECT ALL + - SUM( ALL + + 14 )
----
-14

skipif mysql # not compatible
query I rowsort label-7672
SELECT ALL + - SUM ( ALL + + 14 )
----
-14

query II rowsort
SELECT + 97 AS col2, 18
----
97
18

query II rowsort
SELECT + + 23 AS col2, - 79
----
23
-79

query I rowsort
SELECT 92 * - + 90 - - 44
----
-8236

query I rowsort
SELECT ALL - - ( - 48 ) * - + 54
----
2592

query I rowsort
SELECT - + 76 * + - 45 AS col1
----
3420

onlyif mysql # aggregate syntax: 
query I rowsort label-7678
SELECT ALL 46 * COUNT( * ) + + 25 + - + 90 AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-7678
SELECT ALL 46 * COUNT ( * ) + + 25 + - + 90 AS col0
----
-19

query II rowsort
SELECT + + 33 AS col2, 2 * + + 16
----
33
32

query I rowsort
SELECT - 53 * + 11 * - 78
----
45474

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7681
SELECT + ( + ( + - CASE + 53 WHEN - - 92 * 49 + - 26 THEN COUNT( * ) * SUM( 74 ) WHEN COUNT( DISTINCT 76 ) - 87 THEN NULL ELSE 21 DIV 45 END ) )
----
0

skipif mysql # not compatible
query I rowsort label-7681
SELECT + ( + ( + - CASE + 53 WHEN - - 92 * 49 + - 26 THEN COUNT ( * ) * SUM ( 74 ) WHEN COUNT ( DISTINCT 76 ) - 87 THEN NULL ELSE 21 / 45 END ) )
----
0

query I rowsort
SELECT ALL - 26 * - 3 + 94 AS col0
----
172

onlyif mysql # DIV for integer division: 
query I rowsort label-7683
SELECT + 63 * + COALESCE ( + 99, + + 70 ) - - NULLIF ( + + 80, - 7 - 88 ) DIV 77 AS col0
----
6238

skipif mysql # not compatible
query I rowsort label-7683
SELECT + 63 * + COALESCE ( + 99, + + 70 ) - - NULLIF ( + + 80, - 7 - 88 ) / 77 AS col0
----
6238

onlyif mysql # aggregate syntax: 
query I rowsort label-7684
SELECT DISTINCT 13 * - COUNT( * ) + 34 + + + 29 + - COUNT( * ) * + COUNT( * ) * + 37 * - COUNT( ALL 90 )
----
87

skipif mysql # not compatible
query I rowsort label-7684
SELECT DISTINCT 13 * - COUNT ( * ) + 34 + + + 29 + - COUNT ( * ) * + COUNT ( * ) * + 37 * - COUNT ( ALL 90 )
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-7685
SELECT ALL + COALESCE ( - 81, ( 27 ), - 25 * + + 7 ) DIV - 97 * 7
----
0

skipif mysql # not compatible
query I rowsort label-7685
SELECT ALL + COALESCE ( - 81, ( 27 ), - 25 * + + 7 ) / - 97 * 7
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7686
SELECT ALL + COUNT( * ) + + - COUNT( * ) + - + 6 * - - 23
----
-138

skipif mysql # not compatible
query I rowsort label-7686
SELECT ALL + COUNT ( * ) + + - COUNT ( * ) + - + 6 * - - 23
----
-138

onlyif mysql # aggregate syntax: 
query I rowsort label-7687
SELECT ALL MIN( 68 ) + + + 4 + + 58 AS col1
----
130

skipif mysql # not compatible
query I rowsort label-7687
SELECT ALL MIN ( 68 ) + + + 4 + + 58 AS col1
----
130

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7690
SELECT - 9 + MIN( - + 65 ) + 50
----
-24

skipif mysql # not compatible
query I rowsort label-7690
SELECT - 9 + MIN ( - + 65 ) + 50
----
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7691
SELECT + 15 * - + 68 AS col0, + 10 + MAX( + 69 ) DIV - - 3 AS col0
----
-1020
33

skipif mysql # not compatible
query II rowsort label-7691
SELECT + 15 * - + 68 AS col0, + 10 + MAX ( + 69 ) / - - 3 AS col0
----
-1020
33

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7693
SELECT - 86 + - 14 + - 2 + + 35 + - COUNT( * ) * - 65 + - ( 1 ) AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-7693
SELECT - 86 + - 14 + - 2 + + 35 + - COUNT ( * ) * - 65 + - ( 1 ) AS col2
----
-3

query I rowsort
SELECT - 3 + + 87 + - 78 + - ( 45 ) * + 80 * + 87 * 69
----
-21610794

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

query II rowsort
SELECT ALL - ( + 13 ) AS col0, 75
----
-13
75

query I rowsort
SELECT - 97 * + + ( - NULLIF ( - 26, + 94 ) ) * - 19 + + 93 AS col2
----
48011

query II rowsort
SELECT DISTINCT + 59 * - 80 AS col1, 13 col0
----
-4720
13

query I rowsort
SELECT + - 48 + 43 + + + 28
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-7700
SELECT DISTINCT + CASE WHEN - 23 IS NOT NULL THEN - 85 + - 47 * 4 + + - 11 WHEN + 90 BETWEEN NULL AND ( + COUNT( * ) ) THEN NULL ELSE + 66 END AS col2
----
-284

skipif mysql # not compatible
query I rowsort label-7700
SELECT DISTINCT + CASE WHEN - 23 IS NOT NULL THEN - 85 + - 47 * 4 + + - 11 WHEN + 90 BETWEEN NULL AND ( + COUNT ( * ) ) THEN NULL ELSE + 66 END AS col2
----
-284

query I rowsort
SELECT + 38 + - 7 AS col0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-7702
SELECT DISTINCT MIN( - 35 ) AS col2
----
-35

skipif mysql # not compatible
query I rowsort label-7702
SELECT DISTINCT MIN ( - 35 ) AS col2
----
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-7703
SELECT + - 71 DIV 46
----
-1

skipif mysql # not compatible
query I rowsort label-7703
SELECT + - 71 / 46
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7704
SELECT COUNT( * ) * - 67 + - COUNT( * ) AS col2
----
-68

skipif mysql # not compatible
query I rowsort label-7704
SELECT COUNT ( * ) * - 67 + - COUNT ( * ) AS col2
----
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-7705
SELECT DISTINCT + - 4 DIV - 84 * + + 28 + + 3 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-7705
SELECT DISTINCT + - 4 / - 84 * + + 28 + + 3 AS col0
----
3

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7707
SELECT + 27 DIV - 66 col1
----
0

skipif mysql # not compatible
query I rowsort label-7707
SELECT + 27 / - 66 col1
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7709
SELECT ALL + - 29 / 66 + - 17 + + - CAST( NULL AS SIGNED ) + + ( + 75 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7709
SELECT ALL + - 29 / 66 + - 17 + + - CAST ( NULL AS INTEGER ) + + ( + 75 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7710
SELECT ALL - + MIN( ALL 49 ) DIV - 35 + - ( NULLIF ( - 98, + 2 ) )
----
99

skipif mysql # not compatible
query I rowsort label-7710
SELECT ALL - + MIN ( ALL 49 ) / - 35 + - ( NULLIF ( - 98, + 2 ) )
----
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7711
SELECT ALL - 49 DIV - 37 + - ( 82 ) + + SUM( DISTINCT - ( - 20 ) ) + 47
----
-14

skipif mysql # not compatible
query I rowsort label-7711
SELECT ALL - 49 / - 37 + - ( 82 ) + + SUM ( DISTINCT - ( - 20 ) ) + 47
----
-14

query I rowsort
SELECT + 7 + - + 93 + 83
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7713
SELECT - 29 * 97 DIV - - COALESCE ( - 40, 34 DIV - COALESCE ( + - 83, 64 * 78 ), 40 + 88, MIN( ALL + 33 ) * + 68 ) AS col1
----
70

skipif mysql # not compatible
query I rowsort label-7713
SELECT - 29 * 97 / - - COALESCE ( - 40, 34 / - COALESCE ( + - 83, 64 * 78 ), 40 + 88, MIN ( ALL + 33 ) * + 68 ) AS col1
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7714
SELECT ALL MAX( - + 77 ) DIV - 32 * - + COUNT( * ) + + 93 - + 60 - + + 38 + + + 64 col0
----
57

skipif mysql # not compatible
query I rowsort label-7714
SELECT ALL MAX ( - + 77 ) / - 32 * - + COUNT ( * ) + + 93 - + 60 - + + 38 + + + 64 col0
----
57

query I rowsort
SELECT ( - 67 ) col1
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7716
SELECT DISTINCT 41 * 71 * + 60 + + COUNT( * ) * + - COUNT( * ) * - 72 + - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7716
SELECT DISTINCT 41 * 71 * + 60 + + COUNT ( * ) * + - COUNT ( * ) * - 72 + - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT ALL + 73 col2, 34 AS col0
----
73
34

query I rowsort
SELECT + 69 + - 25 AS col0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-7719
SELECT ALL 15 * COUNT( * ) + - 25 + + SUM( 3 ) AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-7719
SELECT ALL 15 * COUNT ( * ) + - 25 + + SUM ( 3 ) AS col0
----
-7

query II rowsort
SELECT DISTINCT + 51 AS col1, - 44 + + ( - 77 )
----
51
-121

query I rowsort
SELECT - 63 + - + 90 * - + 31 * + 69 * - - 3 AS col2
----
577467

query I rowsort
SELECT DISTINCT + ( ( + - 61 ) ) - - 80 AS col2
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-7723
SELECT DISTINCT - CASE - COALESCE ( + COUNT( * ), 23 ) WHEN 49 / ( 27 ) THEN NULL ELSE - 99 END * COUNT( * )
----
99

skipif mysql # not compatible
query I rowsort label-7723
SELECT DISTINCT - CASE - COALESCE ( + COUNT ( * ), 23 ) WHEN 49 / ( 27 ) THEN NULL ELSE - 99 END * COUNT ( * )
----
99

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7725
SELECT 24 * - MAX( - 6 ) AS col2, 47
----
144
47

skipif mysql # not compatible
query II rowsort label-7725
SELECT 24 * - MAX ( - 6 ) AS col2, 47
----
144
47

onlyif mysql # aggregate syntax: 
query II rowsort label-7726
SELECT - 47 AS col0, ( 99 ) * - COUNT( - 87 ) AS col0
----
-47
-99

skipif mysql # not compatible
query II rowsort label-7726
SELECT - 47 AS col0, ( 99 ) * - COUNT ( - 87 ) AS col0
----
-47
-99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7727
SELECT DISTINCT 79 col0, CASE - 15 WHEN + 76 THEN + 88 END - - CAST( NULL AS SIGNED ) * - 33 col1
----
79
NULL

skipif mysql # not compatible
query II rowsort label-7727
SELECT DISTINCT 79 col0, CASE - 15 WHEN + 76 THEN + 88 END - - CAST ( NULL AS INTEGER ) * - 33 col1
----
79
NULL

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7730
SELECT - MAX( - 4 )
----
4

skipif mysql # not compatible
query I rowsort label-7730
SELECT - MAX ( - 4 )
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-7731
SELECT 68 * - 84 + - 64 DIV - ( + 66 ) AS col2
----
-5712

skipif mysql # not compatible
query I rowsort label-7731
SELECT 68 * - 84 + - 64 / - ( + 66 ) AS col2
----
-5712

onlyif mysql # aggregate syntax: 
query I rowsort label-7732
SELECT DISTINCT + 64 * - 51 + - + MIN( DISTINCT 62 ) + 81 + - 65 AS col2
----
-3310

skipif mysql # not compatible
query I rowsort label-7732
SELECT DISTINCT + 64 * - 51 + - + MIN ( DISTINCT 62 ) + 81 + - 65 AS col2
----
-3310

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7736
SELECT ALL + CASE - NULLIF ( AVG ( ALL 61 ), + - 91 ) WHEN - 22 * - 26 * - + MIN( 57 ) THEN 70 - 91 ELSE 90 - 28 END + 61 col1
----
123

skipif mysql # not compatible
query I rowsort label-7736
SELECT ALL + CASE - NULLIF ( AVG ( ALL 61 ), + - 91 ) WHEN - 22 * - 26 * - + MIN ( 57 ) THEN 70 - 91 ELSE 90 - 28 END + 61 col1
----
123

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7738
SELECT - 93 AS col2, NULLIF ( + + 63, + - CAST( NULL AS DECIMAL ) ) * 38
----
-93
2394

skipif mysql # not compatible
query II rowsort label-7738
SELECT - 93 AS col2, NULLIF ( + + 63, + - CAST ( NULL AS REAL ) ) * 38
----
-93
2394

query II rowsort
SELECT ALL - 29, ( - + ( + 44 ) ) AS col0
----
-29
-44

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

query I rowsort
SELECT 16 + + 11 + + 4 * + 23 - - 52
----
171

query I rowsort
SELECT DISTINCT - 62 + - 68 AS col1
----
-130

query II rowsort
SELECT + 66, + 60 * 51 * - - NULLIF ( 78, + + AVG ( ALL - 69 ) ) col2
----
66
238680

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7744
SELECT ALL 30 + - + 19 + 90 - - MIN( ALL 50 ) DIV - + MAX( DISTINCT + - 91 )
----
101

skipif mysql # not compatible
query I rowsort label-7744
SELECT ALL 30 + - + 19 + 90 - - MIN ( ALL 50 ) / - + MAX ( DISTINCT + - 91 )
----
101

query I rowsort
SELECT - COALESCE ( + 47, - ( - 31 ) )
----
-47

query I rowsort
SELECT ALL 88 * 88 * - + 71 AS col0
----
-549824

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7748
SELECT ALL CASE + 6 WHEN + 41 + - - 7 THEN - + CAST( 3 AS SIGNED ) END - + - 45 + + 62
----
NULL

skipif mysql # not compatible
query I rowsort label-7748
SELECT ALL CASE + 6 WHEN + 41 + - - 7 THEN - + CAST ( 3 AS INTEGER ) END - + - 45 + + 62
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7750
SELECT ALL 52 * - 20, - CAST( - 72 AS SIGNED ) AS col2
----
-1040
72

skipif mysql # not compatible
query II rowsort label-7750
SELECT ALL 52 * - 20, - CAST ( - 72 AS INTEGER ) AS col2
----
-1040
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7751
SELECT ALL COALESCE ( + 89, - 36 * + - ( + + 55 ) - + COUNT( + - 78 ) ) - CAST( NULL AS SIGNED ) + + 65 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7751
SELECT ALL COALESCE ( + 89, - 36 * + - ( + + 55 ) - + COUNT ( + - 78 ) ) - CAST ( NULL AS INTEGER ) + + 65 AS col2
----
NULL

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

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

query I rowsort
SELECT - 17 * 94 - 51 AS col2
----
-1649

query I rowsort
SELECT 60 * 64 AS col1
----
3840

onlyif mysql # aggregate syntax: 
query II rowsort label-7755
SELECT COUNT( * ) - 5 AS col1, 38 AS col2
----
-4
38

skipif mysql # not compatible
query II rowsort label-7755
SELECT COUNT ( * ) - 5 AS col1, 38 AS col2
----
-4
38

query I rowsort
SELECT ALL - 87 * - + 47
----
4089

query I rowsort
SELECT 50 * + - 11 AS col2
----
-550

onlyif mysql # aggregate syntax: 
query I rowsort label-7758
SELECT DISTINCT - - 73 * 30 + + NULLIF ( - CASE - 75 WHEN - COUNT( * ) / + 41 + - + 14 THEN + 0 / - 31 END, 99 - + 41 ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7758
SELECT DISTINCT - - 73 * 30 + + NULLIF ( - CASE - 75 WHEN - COUNT ( * ) / + 41 + - + 14 THEN + 0 / - 31 END, 99 - + 41 ) * COUNT ( * )
----
NULL

query I rowsort
SELECT ALL - 26 * - - 91 + - - 33 * - 27
----
-3257

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7761
SELECT COUNT( * ) - - 88 AS col1
----
89

skipif mysql # not compatible
query I rowsort label-7761
SELECT COUNT ( * ) - - 88 AS col1
----
89

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

skipif mysql # not compatible
query I rowsort label-7762
SELECT - ( + COUNT ( * ) ) / 35 col2
----
0

query I rowsort
SELECT + 50 + + 86 + + 17 AS col2
----
153

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7764
SELECT + COUNT( * ) * + + 49, - 78 DIV - 97 AS col1
----
49
0

skipif mysql # not compatible
query II rowsort label-7764
SELECT + COUNT ( * ) * + + 49, - 78 / - 97 AS col1
----
49
0

query I rowsort
SELECT 85 + 98 + 92 - + 60 * + 0 * + 51
----
275

onlyif mysql # aggregate syntax: 
query I rowsort label-7766
SELECT + SUM( - 49 ) * - + 43 AS col2
----
2107

skipif mysql # not compatible
query I rowsort label-7766
SELECT + SUM ( - 49 ) * - + 43 AS col2
----
2107

onlyif mysql # aggregate syntax: 
query I rowsort label-7767
SELECT - NULLIF ( - + MAX( ALL + 85 ), 82 + 87 ) + 42 AS col0
----
127

skipif mysql # not compatible
query I rowsort label-7767
SELECT - NULLIF ( - + MAX ( ALL + 85 ), 82 + 87 ) + 42 AS col0
----
127

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7768
SELECT ALL - + SUM( - - CAST( NULL AS SIGNED ) ) / + NULLIF ( + 8, COUNT( * ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7768
SELECT ALL - + SUM ( - - CAST ( NULL AS INTEGER ) ) / + NULLIF ( + 8, COUNT ( * ) ) AS col1
----
NULL

query I rowsort
SELECT ALL + COALESCE ( + - 83, 72 ) + 18
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-7770
SELECT - CASE - + 56 WHEN + - COUNT( * ) - - - 97 THEN 50 * - 61 WHEN + 83 / - 36 + + + 75 + 45 THEN + COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7770
SELECT - CASE - + 56 WHEN + - COUNT ( * ) - - - 97 THEN 50 * - 61 WHEN + 83 / - 36 + + + 75 + 45 THEN + COUNT ( * ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7771
SELECT + 49 + + + NULLIF ( + MAX( + + 7 ), - 39 ) * - 23 - + CASE + 28 WHEN 13 + - 95 THEN NULL WHEN - 66 THEN + 19 + - 13 * 48 WHEN - 35 THEN NULL ELSE NULL END + 91 * 18
----
NULL

skipif mysql # not compatible
query I rowsort label-7771
SELECT + 49 + + + NULLIF ( + MAX ( + + 7 ), - 39 ) * - 23 - + CASE + 28 WHEN 13 + - 95 THEN NULL WHEN - 66 THEN + 19 + - 13 * 48 WHEN - 35 THEN NULL ELSE NULL END + 91 * 18
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7772
SELECT ALL + + 76 + - MAX( ALL ( - + 71 ) )
----
147

skipif mysql # not compatible
query I rowsort label-7772
SELECT ALL + + 76 + - MAX ( ALL ( - + 71 ) )
----
147

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7773
SELECT + CASE 79 WHEN - - 95 THEN NULL ELSE - CAST( + - 44 AS SIGNED ) END DIV + 32 + + COUNT( * ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-7773
SELECT + CASE 79 WHEN - - 95 THEN NULL ELSE - CAST ( + - 44 AS INTEGER ) END / + 32 + + COUNT ( * ) AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7774
SELECT DISTINCT 64 * + COUNT( DISTINCT - + 95 ) - - - ( - 16 ) + + 56 + + 83 AS col0
----
219

skipif mysql # not compatible
query I rowsort label-7774
SELECT DISTINCT 64 * + COUNT ( DISTINCT - + 95 ) - - - ( - 16 ) + + 56 + + 83 AS col0
----
219

query I rowsort
SELECT ALL - CASE - 13 WHEN + 12 - + + 67 * 85 + 28 THEN - 36 * - 18 WHEN 25 THEN + 18 / NULLIF ( - 39, + 77 ) END
----
NULL

query II rowsort
SELECT DISTINCT - 36 * ( - 51 ), - 62 - - 24 AS col0
----
1836
-38

query I rowsort
SELECT + 22 * + + 64
----
1408

query I rowsort
SELECT 54 * + 54 - - 13 + - 69 col0
----
2860

onlyif mysql # aggregate syntax: 
query I rowsort label-7779
SELECT ALL - 51 * 38 - + - COUNT( * )
----
-1937

skipif mysql # not compatible
query I rowsort label-7779
SELECT ALL - 51 * 38 - + - COUNT ( * )
----
-1937

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7780
SELECT ALL + CAST( CAST( - 21 AS SIGNED ) AS SIGNED ), + ( + 51 ) AS col1
----
-21
51

skipif mysql # not compatible
query II rowsort label-7780
SELECT ALL + CAST ( CAST ( - 21 AS INTEGER ) AS INTEGER ), + ( + 51 ) AS col1
----
-21
51

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

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

query I rowsort
SELECT - 86 * - 77 AS col2
----
6622

query I rowsort
SELECT + 92 * - 43 * - + 67 * 59
----
15638068

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7785
SELECT + 10 DIV + 47
----
0

skipif mysql # not compatible
query I rowsort label-7785
SELECT + 10 / + 47
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7786
SELECT - CAST( + 9 AS SIGNED ) * - COUNT( * ) * - 69 + - - 77 + 29 DIV - 47 AS col0
----
-544

skipif mysql # not compatible
query I rowsort label-7786
SELECT - CAST ( + 9 AS INTEGER ) * - COUNT ( * ) * - 69 + - - 77 + 29 / - 47 AS col0
----
-544

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7787
SELECT ALL - COUNT( * ) DIV 52 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7787
SELECT ALL - COUNT ( * ) / 52 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7788
SELECT DISTINCT COUNT( ( - 67 ) ) * + CASE + CAST( NULL AS SIGNED ) WHEN + 15 THEN - - 62 * 50 + + + 75 * - 40 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7788
SELECT DISTINCT COUNT ( ( - 67 ) ) * + CASE + CAST ( NULL AS INTEGER ) WHEN + 15 THEN - - 62 * 50 + + + 75 * - 40 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7789
SELECT DISTINCT 73 + - - 11 + + 80 + - 49 + 66 * - COUNT( * )
----
49

skipif mysql # not compatible
query I rowsort label-7789
SELECT DISTINCT 73 + - - 11 + + 80 + - 49 + 66 * - COUNT ( * )
----
49

onlyif mysql # aggregate syntax: 
query II rowsort label-7790
SELECT ALL - 80 * + 84 - - 47 AS col2, - CASE 97 WHEN 44 THEN + 59 ELSE + - 71 + + + COUNT( DISTINCT - - 7 ) END + + 10
----
-6673
80

skipif mysql # not compatible
query II rowsort label-7790
SELECT ALL - 80 * + 84 - - 47 AS col2, - CASE 97 WHEN 44 THEN + 59 ELSE + - 71 + + + COUNT ( DISTINCT - - 7 ) END + + 10
----
-6673
80

query I rowsort
SELECT + - 75 * 84
----
-6300

onlyif mysql # aggregate syntax: 
query I rowsort label-7792
SELECT 69 * 95 + COUNT( * ) + 20 AS col0
----
6576

skipif mysql # not compatible
query I rowsort label-7792
SELECT 69 * 95 + COUNT ( * ) + 20 AS col0
----
6576

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

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

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

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

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

query I rowsort
SELECT + 70 * 2
----
140

query I rowsort
SELECT ALL + 3 + 15 AS col2
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-7798
SELECT DISTINCT - COUNT( + 57 ) + + 22 - - 81 * 27 * - + ( + - 21 )
----
45948

skipif mysql # not compatible
query I rowsort label-7798
SELECT DISTINCT - COUNT ( + 57 ) + + 22 - - 81 * 27 * - + ( + - 21 )
----
45948

onlyif mysql # aggregate syntax: 
query I rowsort label-7799
SELECT - + CASE + 60 WHEN + 42 THEN NULL ELSE - 62 * - - ( + CASE + COALESCE ( - 59, - 94 / - 56 / ( + SUM( + 73 ) ) - 7 * 96 ) WHEN - 92 THEN + COALESCE ( ( + 53 ), 56 * + 54 ) WHEN + 3 THEN COUNT( * ) ELSE NULL END ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7799
SELECT - + CASE + 60 WHEN + 42 THEN NULL ELSE - 62 * - - ( + CASE + COALESCE ( - 59, - 94 / - 56 / ( + SUM ( + 73 ) ) - 7 * 96 ) WHEN - 92 THEN + COALESCE ( ( + 53 ), 56 * + 54 ) WHEN + 3 THEN COUNT ( * ) ELSE NULL END ) END
----
NULL

query I rowsort
SELECT ALL + 54 + ( 12 )
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-7801
SELECT DISTINCT CASE WHEN NOT - COUNT( * ) = NULL THEN NULL ELSE 58 * - 65 - COUNT( * ) END + + + 52 * 83 + 14
----
559

skipif mysql # not compatible
query I rowsort label-7801
SELECT DISTINCT CASE WHEN NOT - COUNT ( * ) = NULL THEN NULL ELSE 58 * - 65 - COUNT ( * ) END + + + 52 * 83 + 14
----
559

query II rowsort
SELECT - ( - ( + 98 ) ), 41 AS col2
----
98
41

query I rowsort
SELECT DISTINCT + 4 * - + 46
----
-184

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7804
SELECT - 34 / - CAST( NULL AS SIGNED ) * - + 43 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7804
SELECT - 34 / - CAST ( NULL AS INTEGER ) * - + 43 AS col1
----
NULL

query I rowsort
SELECT + 73 * - 25
----
-1825

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7806
SELECT ALL + CASE + + 70 WHEN + NULLIF ( COUNT( * ), - ( + 9 ) * + ( + 50 ) - CAST( + 56 AS SIGNED ) ) + 69 * + 24 THEN NULL WHEN 97 THEN NULL ELSE - 18 DIV + 51 + 76 END
----
76

skipif mysql # not compatible
query I rowsort label-7806
SELECT ALL + CASE + + 70 WHEN + NULLIF ( COUNT ( * ), - ( + 9 ) * + ( + 50 ) - CAST ( + 56 AS INTEGER ) ) + 69 * + 24 THEN NULL WHEN 97 THEN NULL ELSE - 18 / + 51 + 76 END
----
76

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7808
SELECT ALL - 27 * 36 + + COUNT( * ) AS col1
----
-971

skipif mysql # not compatible
query I rowsort label-7808
SELECT ALL - 27 * 36 + + COUNT ( * ) AS col1
----
-971

onlyif mysql # aggregate syntax: 
query I rowsort label-7809
SELECT DISTINCT SUM( ALL - + 44 ) * + 15 AS col0
----
-660

skipif mysql # not compatible
query I rowsort label-7809
SELECT DISTINCT SUM ( ALL - + 44 ) * + 15 AS col0
----
-660

onlyif mysql # DIV for integer division: 
query I rowsort label-7810
SELECT - 23 DIV + 13 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7810
SELECT - 23 / + 13 AS col2
----
-1

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

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

query I rowsort
SELECT - 40 + - 41 AS col1
----
-81

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

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

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7818
SELECT DISTINCT + CAST( NULL AS SIGNED ), - 87 * 23 AS col1
----
NULL
-2001

skipif mysql # not compatible
query II rowsort label-7818
SELECT DISTINCT + CAST ( NULL AS INTEGER ), - 87 * 23 AS col1
----
NULL
-2001

query I rowsort
SELECT DISTINCT - 87 * 97
----
-8439

query I rowsort
SELECT DISTINCT - 14 * ( 3 )
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-7821
SELECT ALL + ( + 12 ) * 39 + COUNT( * ) AS col2
----
469

skipif mysql # not compatible
query I rowsort label-7821
SELECT ALL + ( + 12 ) * 39 + COUNT ( * ) AS col2
----
469

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7822
SELECT ALL + 17, 73 + + 34 + - COALESCE ( + 34, + 16, + - 18 ) DIV + 87 DIV COUNT( * ) AS col1
----
17
107

skipif mysql # not compatible
query II rowsort label-7822
SELECT ALL + 17, 73 + + 34 + - COALESCE ( + 34, + 16, + - 18 ) / + 87 / COUNT ( * ) AS col1
----
17
107

onlyif mysql # aggregate syntax: 
query I rowsort label-7823
SELECT DISTINCT + MIN( ALL + + 77 ) AS col2
----
77

skipif mysql # not compatible
query I rowsort label-7823
SELECT DISTINCT + MIN ( ALL + + 77 ) AS col2
----
77

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7825
SELECT ALL + COALESCE ( 42, + 73 DIV - + 94, + - ( - + CAST( - - 98 AS SIGNED ) ) + - COUNT( * ) - + 50 ), - 44 AS col1
----
42
-44

skipif mysql # not compatible
query II rowsort label-7825
SELECT ALL + COALESCE ( 42, + 73 / - + 94, + - ( - + CAST ( - - 98 AS INTEGER ) ) + - COUNT ( * ) - + 50 ), - 44 AS col1
----
42
-44

query I rowsort
SELECT ALL + 40 * + + 82 * 36 + 6 AS col2
----
118086

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7827
SELECT - 68 * + CASE COUNT( * ) WHEN + 41 THEN + - 1 * + - CAST( NULL AS SIGNED ) + - 83 + + SUM( + 96 ) ELSE - 43 END - - 66 AS col1
----
2990

skipif mysql # not compatible
query I rowsort label-7827
SELECT - 68 * + CASE COUNT ( * ) WHEN + 41 THEN + - 1 * + - CAST ( NULL AS INTEGER ) + - 83 + + SUM ( + 96 ) ELSE - 43 END - - 66 AS col1
----
2990

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7828
SELECT ALL + CAST( + 59 AS SIGNED ) col0
----
59

skipif mysql # not compatible
query I rowsort label-7828
SELECT ALL + CAST ( + 59 AS INTEGER ) col0
----
59

query II rowsort
SELECT ALL + + 15, - NULLIF ( - 34, - 72 ) col1
----
15
34

onlyif mysql # aggregate syntax: 
query I rowsort label-7830
SELECT - - COUNT( * ) - + 87 * + - 14 + - MAX( DISTINCT + 99 ) + + 10 + 85 * + + 18 + + - 74 AS col1
----
2586

skipif mysql # not compatible
query I rowsort label-7830
SELECT - - COUNT ( * ) - + 87 * + - 14 + - MAX ( DISTINCT + 99 ) + + 10 + 85 * + + 18 + + - 74 AS col1
----
2586

onlyif mysql # aggregate syntax: 
query I rowsort label-7831
SELECT ALL 94 * 29 + + + 47 + + 12 + - 84 * COUNT( * ) * - + 99
----
11101

skipif mysql # not compatible
query I rowsort label-7831
SELECT ALL 94 * 29 + + + 47 + + 12 + - 84 * COUNT ( * ) * - + 99
----
11101

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7832
SELECT ALL - COALESCE ( 40, 72, CASE + 62 WHEN - ( - 35 ) * - + 80 DIV 37 * - 4 THEN NULL WHEN 16 + CAST( + 63 AS SIGNED ) THEN 54 + - 35 DIV 93 WHEN + 30 - - AVG ( 46 ) THEN NULL END ) * COUNT( * ) + - COUNT( * ) AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-7832
SELECT ALL - COALESCE ( 40, 72, CASE + 62 WHEN - ( - 35 ) * - + 80 / 37 * - 4 THEN NULL WHEN 16 + CAST ( + 63 AS INTEGER ) THEN 54 + - 35 / 93 WHEN + 30 - - AVG ( 46 ) THEN NULL END ) * COUNT ( * ) + - COUNT ( * ) AS col0
----
-41

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

query I rowsort
SELECT ALL 60 * + ( - 84 )
----
-5040

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7836
SELECT + 4 - + 59 + - + COUNT( * ) + + + 13 DIV + 91 AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-7836
SELECT + 4 - + 59 + - + COUNT ( * ) + + + 13 / + 91 AS col2
----
-56

query I rowsort
SELECT ALL 74 * + + 28 AS col1
----
2072

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7839
SELECT + - 36 + 13 - + 84 * + 74 * + + ( - 67 ) + + COUNT( * ) DIV COUNT( * ) * - - 32 AS col2
----
416481

skipif mysql # not compatible
query I rowsort label-7839
SELECT + - 36 + 13 - + 84 * + 74 * + + ( - 67 ) + + COUNT ( * ) / COUNT ( * ) * - - 32 AS col2
----
416481

query I rowsort
SELECT ALL - 31 * + 47 AS col1
----
-1457

query II rowsort
SELECT ALL + 38 AS col0, 87 + 56
----
38
143

query I rowsort
SELECT ALL + - 84 * + 94 AS col2
----
-7896

query II rowsort
SELECT 44 * 81 AS col2, + 34
----
3564
34

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

skipif mysql # not compatible
query I rowsort label-7844
SELECT ALL COALESCE ( - + COUNT ( * ), COUNT ( * ) ) * 4
----
-4

query I rowsort
SELECT 91 * + - 50 + + 72 + + + ( + + 59 ) + - + 80
----
-4499

onlyif mysql # aggregate syntax: 
query I rowsort label-7846
SELECT DISTINCT - COALESCE ( 85, 44 * + 68, + - COUNT( * ) ) AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-7846
SELECT DISTINCT - COALESCE ( 85, 44 * + 68, + - COUNT ( * ) ) AS col1
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-7847
SELECT ALL 63 + - + 80 + - COUNT( * ) + NULLIF ( - - 54, + - COUNT( * ) ) + + - COUNT( * ) col1
----
35

skipif mysql # not compatible
query I rowsort label-7847
SELECT ALL 63 + - + 80 + - COUNT ( * ) + NULLIF ( - - 54, + - COUNT ( * ) ) + + - COUNT ( * ) col1
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-7848
SELECT ALL - MAX( DISTINCT + 75 ) AS col0
----
-75

skipif mysql # not compatible
query I rowsort label-7848
SELECT ALL - MAX ( DISTINCT + 75 ) AS col0
----
-75

query I rowsort
SELECT ALL + 28 + - 81 + + - 60 - - + 48
----
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-7850
SELECT 59 - - - 29 * + + 57 DIV + 3
----
-492

skipif mysql # not compatible
query I rowsort label-7850
SELECT 59 - - - 29 * + + 57 / + 3
----
-492

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7851
SELECT DISTINCT CAST( - 18 AS SIGNED ) DIV ( 24 ) DIV + 30
----
0

skipif mysql # not compatible
query I rowsort label-7851
SELECT DISTINCT CAST ( - 18 AS INTEGER ) / ( 24 ) / + 30
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7852
SELECT COUNT( * ) + ( - - COUNT( * ) ) - + 47
----
-45

skipif mysql # not compatible
query I rowsort label-7852
SELECT COUNT ( * ) + ( - - COUNT ( * ) ) - + 47
----
-45

query I rowsort
SELECT ALL + 29 + 73 * + 6 AS col1
----
467

onlyif mysql # aggregate syntax: 
query I rowsort label-7854
SELECT ALL + 65 + MAX( + - 54 )
----
11

skipif mysql # not compatible
query I rowsort label-7854
SELECT ALL + 65 + MAX ( + - 54 )
----
11

query I rowsort
SELECT DISTINCT + 56 * 32 AS col0
----
1792

query I rowsort
SELECT DISTINCT NULLIF ( - 31, 33 ) + 47 AS col2
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-7857
SELECT ALL + SUM( ALL + 50 ) * - + COUNT( * ) * - + 83 AS col1
----
4150

skipif mysql # not compatible
query I rowsort label-7857
SELECT ALL + SUM ( ALL + 50 ) * - + COUNT ( * ) * - + 83 AS col1
----
4150

query I rowsort
SELECT DISTINCT - - 82 + - + 66
----
16

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

skipif mysql # not compatible
query I rowsort label-7859
SELECT ALL 5 - + + COUNT ( * ) AS col2
----
4

query I rowsort
SELECT 60 + 86
----
146

query II rowsort
SELECT + 89 + + ( + + 2 ), - 95 AS col1
----
91
-95

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

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

query I rowsort
SELECT ALL - ( - - 13 ) - - + 29 AS col1
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7864
SELECT CASE - - 1 WHEN - COUNT( * ) THEN NULL ELSE COUNT( * ) - 44 END + + COALESCE ( - CAST( - 24 AS SIGNED ), + 70, 70 + 95 DIV + - 88 * + 21 + 93 * 67 ) + 54 * COUNT( * )
----
35

skipif mysql # not compatible
query I rowsort label-7864
SELECT CASE - - 1 WHEN - COUNT ( * ) THEN NULL ELSE COUNT ( * ) - 44 END + + COALESCE ( - CAST ( - 24 AS INTEGER ), + 70, 70 + 95 / + - 88 * + 21 + 93 * 67 ) + 54 * COUNT ( * )
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7865
SELECT ALL + - ( + - 85 ) DIV - + COUNT( DISTINCT - + 60 ) - - 32 AS col2, + 2 AS col1
----
-53
2

skipif mysql # not compatible
query II rowsort label-7865
SELECT ALL + - ( + - 85 ) / - + COUNT ( DISTINCT - + 60 ) - - 32 AS col2, + 2 AS col1
----
-53
2

query I rowsort
SELECT ALL 94 * - - 25 * + - 28 * - 57
----
3750600

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7868
SELECT DISTINCT + NULLIF ( - - 89, COALESCE ( - 95, CAST( + 40 AS SIGNED ) ) ) AS col1
----
89

skipif mysql # not compatible
query I rowsort label-7868
SELECT DISTINCT + NULLIF ( - - 89, COALESCE ( - 95, CAST ( + 40 AS INTEGER ) ) ) AS col1
----
89

onlyif mysql # DIV for integer division: 
query I rowsort label-7869
SELECT 9 DIV + + 89 col1
----
0

skipif mysql # not compatible
query I rowsort label-7869
SELECT 9 / + + 89 col1
----
0

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

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

query I rowsort
SELECT 11 - + + 57
----
-46

query I rowsort
SELECT ALL + + 65 * 67
----
4355

query I rowsort
SELECT DISTINCT - 61 * + 61 col1
----
-3721

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7875
SELECT DISTINCT CASE + 37 WHEN + 30 * COUNT( ALL + 62 ) + 35 * ( COUNT( * ) ) THEN - + 31 * + NULLIF ( - - 71, + 69 * - + ( - 80 ) * - 90 - 16 ) * ( - MAX( - 78 ) * 68 + 21 * + 3 ) WHEN COUNT( * ) THEN 42 * + 98 END * + 64
----
NULL

skipif mysql # not compatible
query I rowsort label-7875
SELECT DISTINCT CASE + 37 WHEN + 30 * COUNT ( ALL + 62 ) + 35 * ( COUNT ( * ) ) THEN - + 31 * + NULLIF ( - - 71, + 69 * - + ( - 80 ) * - 90 - 16 ) * ( - MAX ( - 78 ) * 68 + 21 * + 3 ) WHEN COUNT ( * ) THEN 42 * + 98 END * + 64
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7876
SELECT DISTINCT 9 AS col0, - 65 + + + 61 + MIN( DISTINCT + 95 )
----
9
91

skipif mysql # not compatible
query II rowsort label-7876
SELECT DISTINCT 9 AS col0, - 65 + + + 61 + MIN ( DISTINCT + 95 )
----
9
91

query II rowsort
SELECT ALL 60 AS col2, 36 AS col2
----
60
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7878
SELECT CASE - + CAST( - + 5 AS SIGNED ) WHEN - 80 THEN + 56 END * + NULLIF ( + 43, + NULLIF ( 6, - 47 / + COUNT( * ) * + 58 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7878
SELECT CASE - + CAST ( - + 5 AS INTEGER ) WHEN - 80 THEN + 56 END * + NULLIF ( + 43, + NULLIF ( 6, - 47 / + COUNT ( * ) * + 58 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7879
SELECT 28 - - 89 - - COUNT( * ) AS col0
----
118

skipif mysql # not compatible
query I rowsort label-7879
SELECT 28 - - 89 - - COUNT ( * ) AS col0
----
118

query II rowsort
SELECT ALL 18 AS col0, ( ( - + 26 ) ) + - 94 AS col2
----
18
-120

query I rowsort
SELECT DISTINCT - ( + 29 ) + - + 22 AS col2
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-7882
SELECT ALL ( + + 11 ) + - - NULLIF ( + COUNT( * ), + 69 / + 13 + - COUNT( * ) + - COUNT( * ) * + - 58 + + 22 + - 35 + + 53 ) - - 21 * + 14 col1
----
306

skipif mysql # not compatible
query I rowsort label-7882
SELECT ALL ( + + 11 ) + - - NULLIF ( + COUNT ( * ), + 69 / + 13 + - COUNT ( * ) + - COUNT ( * ) * + - 58 + + 22 + - 35 + + 53 ) - - 21 * + 14 col1
----
306

query I rowsort
SELECT ALL 22 + - + 99 AS col0
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7884
SELECT ALL CASE + 18 WHEN - 88 THEN NULL ELSE + + NULLIF ( + COUNT( * ), - 9 / ( CASE + + COUNT( * ) WHEN 97 + - COUNT( * ) THEN 12 WHEN - - 28 THEN NULL WHEN - 11 THEN NULL ELSE CAST( - 45 AS DECIMAL ) END ) ) + 90 END * + COUNT( - 15 ) + CAST( 28 AS SIGNED ) * 33 AS col1
----
1015

skipif mysql # not compatible
query I rowsort label-7884
SELECT ALL CASE + 18 WHEN - 88 THEN NULL ELSE + + NULLIF ( + COUNT ( * ), - 9 / ( CASE + + COUNT ( * ) WHEN 97 + - COUNT ( * ) THEN 12 WHEN - - 28 THEN NULL WHEN - 11 THEN NULL ELSE CAST ( - 45 AS REAL ) END ) ) + 90 END * + COUNT ( - 15 ) + CAST ( 28 AS INTEGER ) * 33 AS col1
----
1015

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7885
SELECT COUNT( ALL + ( CAST( + 66 AS SIGNED ) ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7885
SELECT COUNT ( ALL + ( CAST ( + 66 AS INTEGER ) ) ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7886
SELECT + 39, - 82 - ( - - COALESCE ( + 1, - - 3, NULLIF ( 95, - 51 / - COUNT( * ) * MAX( ( - 27 ) ) + - 86 ) + + CASE 81 WHEN ( - 94 ) THEN NULL WHEN 19 THEN NULL ELSE 64 * 38 END ) ) + CAST( COUNT( * ) - + 66 AS SIGNED ) AS col2
----
39
-148

skipif mysql # not compatible
query II rowsort label-7886
SELECT + 39, - 82 - ( - - COALESCE ( + 1, - - 3, NULLIF ( 95, - 51 / - COUNT ( * ) * MAX ( ( - 27 ) ) + - 86 ) + + CASE 81 WHEN ( - 94 ) THEN NULL WHEN 19 THEN NULL ELSE 64 * 38 END ) ) + CAST ( COUNT ( * ) - + 66 AS INTEGER ) AS col2
----
39
-148

query I rowsort
SELECT ALL 9 + 2
----
11

query I rowsort
SELECT ALL 68 * - 5 AS col0
----
-340

onlyif mysql # aggregate syntax: 
query I rowsort label-7889
SELECT COUNT( DISTINCT - + 86 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7889
SELECT COUNT ( DISTINCT - + 86 ) AS col0
----
1

query II rowsort
SELECT + 94 col0, + 78
----
94
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7891
SELECT CAST( - COUNT( * ) AS SIGNED ) * - - 10 * - COUNT( * )
----
10

skipif mysql # not compatible
query I rowsort label-7891
SELECT CAST ( - COUNT ( * ) AS INTEGER ) * - - 10 * - COUNT ( * )
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-7892
SELECT ALL - 33 AS col0, MAX( DISTINCT 5 )
----
-33
5

skipif mysql # not compatible
query II rowsort label-7892
SELECT ALL - 33 AS col0, MAX ( DISTINCT 5 )
----
-33
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7893
SELECT SUM( 97 ) * - + 11
----
-1067

skipif mysql # not compatible
query I rowsort label-7893
SELECT SUM ( 97 ) * - + 11
----
-1067

onlyif mysql # DIV for integer division: 
query I rowsort label-7894
SELECT ALL 73 + + 99 * 32 DIV 54
----
131

skipif mysql # not compatible
query I rowsort label-7894
SELECT ALL 73 + + 99 * 32 / 54
----
131

query I rowsort
SELECT DISTINCT 11 - - 31
----
42

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7897
SELECT 87, CAST( NULL AS SIGNED ) - 33 AS col2
----
87
NULL

skipif mysql # not compatible
query II rowsort label-7897
SELECT 87, CAST ( NULL AS INTEGER ) - 33 AS col2
----
87
NULL

query II rowsort
SELECT - 45 AS col2, 55 + - 97 AS col1
----
-45
-42

query II rowsort
SELECT ALL - 65 AS col0, ( + 47 )
----
-65
47

onlyif mysql # DIV for integer division: 
query II rowsort label-7900
SELECT + 9 * + 92 - - + 2, - 52 DIV - ( - - 58 ) col1
----
830
0

skipif mysql # not compatible
query II rowsort label-7900
SELECT + 9 * + 92 - - + 2, - 52 / - ( - - 58 ) col1
----
830
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7901
SELECT 54 - - - 68 - + + 4 * COUNT( * ) + - 7 AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-7901
SELECT 54 - - - 68 - + + 4 * COUNT ( * ) + - 7 AS col2
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-7902
SELECT ALL - - COUNT( + 26 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-7902
SELECT ALL - - COUNT ( + 26 ) col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7903
SELECT ALL + + 42 * + COUNT( - 87 )
----
42

skipif mysql # not compatible
query I rowsort label-7903
SELECT ALL + + 42 * + COUNT ( - 87 )
----
42

query I rowsort
SELECT - 53 + + ( 27 ) AS col0
----
-26

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

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

query I rowsort
SELECT + 62 * - 38 AS col2
----
-2356

onlyif mysql # aggregate syntax: 
query I rowsort label-7907
SELECT - 66 + - COUNT( * ) AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-7907
SELECT - 66 + - COUNT ( * ) AS col2
----
-67

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7909
SELECT - COALESCE ( - 98, 58 * CAST( NULL AS SIGNED ) ) * + CASE 78 WHEN + - 37 + + MIN( DISTINCT ( + + NULLIF ( - 88, + ( + 14 ) ) ) ) THEN MAX( + ( - 88 ) ) * - 15 WHEN + 49 THEN 82 * + 8 ELSE CAST( + COUNT( * ) AS SIGNED ) + - 7 END - + COUNT( * ) DIV - 14 AS col0
----
-588

skipif mysql # not compatible
query I rowsort label-7909
SELECT - COALESCE ( - 98, 58 * CAST ( NULL AS INTEGER ) ) * + CASE 78 WHEN + - 37 + + MIN ( DISTINCT ( + + NULLIF ( - 88, + ( + 14 ) ) ) ) THEN MAX ( + ( - 88 ) ) * - 15 WHEN + 49 THEN 82 * + 8 ELSE CAST ( + COUNT ( * ) AS INTEGER ) + - 7 END - + COUNT ( * ) / - 14 AS col0
----
-588

onlyif mysql # aggregate syntax: 
query I rowsort label-7910
SELECT ALL - SUM( DISTINCT + 46 ) AS col0
----
-46

skipif mysql # not compatible
query I rowsort label-7910
SELECT ALL - SUM ( DISTINCT + 46 ) AS col0
----
-46

onlyif mysql # aggregate syntax: 
query II rowsort label-7911
SELECT - + 84 + + + ( + SUM( + 63 ) ) AS col1, 93 * + 96
----
-21
8928

skipif mysql # not compatible
query II rowsort label-7911
SELECT - + 84 + + + ( + SUM ( + 63 ) ) AS col1, 93 * + 96
----
-21
8928

query I rowsort
SELECT - + 79 - 60
----
-139

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-7914
SELECT - - 4 + - 31 + + NULLIF ( - - 85, - 26 ) DIV 89 + - 51 * + + 84, + 65 AS col2
----
-4311
65

skipif mysql # not compatible
query II rowsort label-7914
SELECT - - 4 + - 31 + + NULLIF ( - - 85, - 26 ) / 89 + - 51 * + + 84, + 65 AS col2
----
-4311
65

onlyif mysql # aggregate syntax: 
query I rowsort label-7915
SELECT ALL COALESCE ( + 94, + - CASE 38 WHEN - 21 THEN COUNT( * ) + - - 1 END )
----
94

skipif mysql # not compatible
query I rowsort label-7915
SELECT ALL COALESCE ( + 94, + - CASE 38 WHEN - 21 THEN COUNT ( * ) + - - 1 END )
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7916
SELECT DISTINCT CASE 80 WHEN COUNT( * ) + + 50 * - 15 THEN NULL WHEN - 84 * + 35 + - - 44 + NULLIF ( - - CAST( - + 84 AS SIGNED ), - - 85 ) + - ( 57 ) THEN - 84 / 59 ELSE + 36 * + 67 END
----
2412

skipif mysql # not compatible
query I rowsort label-7916
SELECT DISTINCT CASE 80 WHEN COUNT ( * ) + + 50 * - 15 THEN NULL WHEN - 84 * + 35 + - - 44 + NULLIF ( - - CAST ( - + 84 AS INTEGER ), - - 85 ) + - ( 57 ) THEN - 84 / 59 ELSE + 36 * + 67 END
----
2412

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

skipif mysql # not compatible
query I rowsort label-7917
SELECT - MIN ( ALL - 71 )
----
71

query I rowsort
SELECT - 64 + - 78 + + 60
----
-82

query I rowsort
SELECT ALL - 46 + - + 81 + 15 AS col0
----
-112

query I rowsort
SELECT - 40 + + 38 + + + 34
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-7921
SELECT ALL - MIN( ALL + 24 ) + + 52 AS col0
----
28

skipif mysql # not compatible
query I rowsort label-7921
SELECT ALL - MIN ( ALL + 24 ) + + 52 AS col0
----
28

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7924
SELECT DISTINCT - ( COUNT( * ) ) * - + SUM( ALL - 2 ) + - COUNT( * ) * + 92 + - 51 * + - 4 * MIN( DISTINCT + - 42 ) AS col0
----
-8662

skipif mysql # not compatible
query I rowsort label-7924
SELECT DISTINCT - ( COUNT ( * ) ) * - + SUM ( ALL - 2 ) + - COUNT ( * ) * + 92 + - 51 * + - 4 * MIN ( DISTINCT + - 42 ) AS col0
----
-8662

onlyif mysql # aggregate syntax: 
query I rowsort label-7925
SELECT ALL CASE 95 WHEN + ( + + 98 ) THEN NULL ELSE + + MIN( ALL 45 ) END AS col1
----
45

skipif mysql # not compatible
query I rowsort label-7925
SELECT ALL CASE 95 WHEN + ( + + 98 ) THEN NULL ELSE + + MIN ( ALL 45 ) END AS col1
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-7926
SELECT - 4 * - 65 * - COUNT( * ) col1
----
-260

skipif mysql # not compatible
query I rowsort label-7926
SELECT - 4 * - 65 * - COUNT ( * ) col1
----
-260

onlyif mysql # aggregate syntax: 
query II rowsort label-7927
SELECT + 10 * + - 87 AS col2, + MIN( 61 ) + - 43
----
-870
18

skipif mysql # not compatible
query II rowsort label-7927
SELECT + 10 * + - 87 AS col2, + MIN ( 61 ) + - 43
----
-870
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7928
SELECT ALL - 37 * + - 55 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7928
SELECT ALL - 37 * + - 55 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-7930
SELECT + 27 / - COUNT ( * ) AS col0
----
-27

query I rowsort
SELECT DISTINCT - 28 + + - 29 AS col2
----
-57

query I rowsort
SELECT ALL 9 + - + 78 AS col0
----
-69

query I rowsort
SELECT ALL 68 + + + ( - 50 )
----
18

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

query I rowsort
SELECT - ( - 59 ) * + - 74 AS col1
----
-4366

onlyif mysql # DIV for integer division: 
query I rowsort label-7936
SELECT + 58 DIV + COALESCE ( + 57, + 71 + - 38 ) + + 34
----
35

skipif mysql # not compatible
query I rowsort label-7936
SELECT + 58 / + COALESCE ( + 57, + 71 + - 38 ) + + 34
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-7937
SELECT ALL CASE COUNT( * ) WHEN - 67 THEN NULL WHEN - 61 THEN NULL ELSE - 1 END * + 83 * 88 * + 16 + + + 1 - + 3 - 23 AS col1
----
-116889

skipif mysql # not compatible
query I rowsort label-7937
SELECT ALL CASE COUNT ( * ) WHEN - 67 THEN NULL WHEN - 61 THEN NULL ELSE - 1 END * + 83 * 88 * + 16 + + + 1 - + 3 - 23 AS col1
----
-116889

onlyif mysql # aggregate syntax: 
query I rowsort label-7938
SELECT ALL + NULLIF ( + - COUNT( DISTINCT 3 ), - COUNT( * ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7938
SELECT ALL + NULLIF ( + - COUNT ( DISTINCT 3 ), - COUNT ( * ) ) AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7940
SELECT ALL SUM( - - 43 ) * + 23 - + NULLIF ( - 99, + 10 - COALESCE ( + 57, + 80 + + 58 ) ) * 75 AS col2
----
8414

skipif mysql # not compatible
query I rowsort label-7940
SELECT ALL SUM ( - - 43 ) * + 23 - + NULLIF ( - 99, + 10 - COALESCE ( + 57, + 80 + + 58 ) ) * 75 AS col2
----
8414

onlyif mysql # aggregate syntax: 
query I rowsort label-7941
SELECT + 20 * + + MAX( - 40 )
----
-800

skipif mysql # not compatible
query I rowsort label-7941
SELECT + 20 * + + MAX ( - 40 )
----
-800

onlyif mysql # aggregate syntax: 
query I rowsort label-7942
SELECT CASE ( - ( + 78 ) ) WHEN - 21 - - ( + + 59 ) THEN NULL WHEN 32 * - - 72 + 66 * 86 THEN + 53 + 97 ELSE - - 49 END * 63 + + COUNT( * ) AS col2
----
3088

skipif mysql # not compatible
query I rowsort label-7942
SELECT CASE ( - ( + 78 ) ) WHEN - 21 - - ( + + 59 ) THEN NULL WHEN 32 * - - 72 + 66 * 86 THEN + 53 + 97 ELSE - - 49 END * 63 + + COUNT ( * ) AS col2
----
3088

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

query II rowsort
SELECT ALL 40 * 83 + - 17 - + 42, - 59 AS col1
----
3261
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7945
SELECT DISTINCT + MIN( DISTINCT + 47 ) * - CAST( + 76 AS SIGNED ) + - 3 AS col2
----
-3575

skipif mysql # not compatible
query I rowsort label-7945
SELECT DISTINCT + MIN ( DISTINCT + 47 ) * - CAST ( + 76 AS INTEGER ) + - 3 AS col2
----
-3575

query I rowsort
SELECT DISTINCT + - NULLIF ( - 4, + 9 )
----
4

query I rowsort
SELECT ALL + 43 * - 43 - - ( + 16 )
----
-1833

onlyif mysql # aggregate syntax: 
query I rowsort label-7948
SELECT + + 88 * - 12 + COUNT( * ) * 71 * + + ( - 41 )
----
-3967

skipif mysql # not compatible
query I rowsort label-7948
SELECT + + 88 * - 12 + COUNT ( * ) * 71 * + + ( - 41 )
----
-3967

onlyif mysql # aggregate syntax: 
query I rowsort label-7949
SELECT DISTINCT - + COUNT( * ) * - NULLIF ( 46, + + 47 ) + - 23 AS col0
----
23

skipif mysql # not compatible
query I rowsort label-7949
SELECT DISTINCT - + COUNT ( * ) * - NULLIF ( 46, + + 47 ) + - 23 AS col0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-7950
SELECT ALL + - 55 * - SUM( + 21 ) * - - 56 + + 49 col0
----
64729

skipif mysql # not compatible
query I rowsort label-7950
SELECT ALL + - 55 * - SUM ( + 21 ) * - - 56 + + 49 col0
----
64729

query I rowsort
SELECT DISTINCT + 0 + - NULLIF ( + 62, - ( - 58 ) )
----
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7952
SELECT ALL - CAST( - CASE - + COUNT( * ) WHEN - 7 / - 61 * - - 29 THEN - + 29 WHEN - ( + + 99 ) THEN NULL WHEN - - 27 THEN + 17 END AS SIGNED ) * + 26 + + 30
----
NULL

skipif mysql # not compatible
query I rowsort label-7952
SELECT ALL - CAST ( - CASE - + COUNT ( * ) WHEN - 7 / - 61 * - - 29 THEN - + 29 WHEN - ( + + 99 ) THEN NULL WHEN - - 27 THEN + 17 END AS INTEGER ) * + 26 + + 30
----
NULL

query I rowsort
SELECT ALL + 14 + - - ( - 33 ) * - 6 AS col0
----
212

query I rowsort
SELECT DISTINCT - 60 + - 22 AS col1
----
-82

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

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

query I rowsort
SELECT ALL 40 * - 17 * 35 * + 36
----
-856800

query I rowsort
SELECT + 46 * + COALESCE ( + 74, - 0 * 0, ( - + 5 ) ) col1
----
3404

query I rowsort
SELECT + 81 + + 21
----
102

query I rowsort
SELECT - 86 * - 91 AS col1
----
7826

query I rowsort
SELECT - 4 + + 22 * - 7 + CASE WHEN NOT NULL <= + AVG ( ALL + 20 ) THEN NULL ELSE + - 53 END
----
-211

query I rowsort
SELECT ALL + 79 - + 3 + 90 * + - 6 AS col2
----
-464

query I rowsort
SELECT DISTINCT ( - NULLIF ( + 4, - - 67 ) ) AS col0
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7963
SELECT DISTINCT CAST( COUNT( ALL + - 71 ) AS SIGNED ) - + + 32
----
-31

skipif mysql # not compatible
query I rowsort label-7963
SELECT DISTINCT CAST ( COUNT ( ALL + - 71 ) AS INTEGER ) - + + 32
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-7964
SELECT ALL - 6 / - CASE SUM( DISTINCT + 4 ) WHEN - 58 THEN NULL WHEN + 37 THEN - 58 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7964
SELECT ALL - 6 / - CASE SUM ( DISTINCT + 4 ) WHEN - 58 THEN NULL WHEN + 37 THEN - 58 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7965
SELECT - ( + + MAX( + 55 ) ) - - 8 AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-7965
SELECT - ( + + MAX ( + 55 ) ) - - 8 AS col1
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7966
SELECT ALL CASE + - 58 WHEN - 28 THEN - COUNT( * ) WHEN - 73 + - + CAST( - + 34 AS SIGNED ) THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7966
SELECT ALL CASE + - 58 WHEN - 28 THEN - COUNT ( * ) WHEN - 73 + - + CAST ( - + 34 AS INTEGER ) THEN NULL END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7967
SELECT DISTINCT - 25 DIV - 4
----
6

skipif mysql # not compatible
query I rowsort label-7967
SELECT DISTINCT - 25 / - 4
----
6

query I rowsort
SELECT ALL 15 * + - ( + 40 ) AS col2
----
-600

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7969
SELECT + 35 DIV + 36 + 26 + + 3 + ( - - ( - + COUNT( * ) ) ) DIV + 43 * + - ( + 16 ), + 73 AS col1
----
29
73

skipif mysql # not compatible
query II rowsort label-7969
SELECT + 35 / + 36 + 26 + + 3 + ( - - ( - + COUNT ( * ) ) ) / + 43 * + - ( + 16 ), + 73 AS col1
----
29
73

onlyif mysql # aggregate syntax: 
query I rowsort label-7970
SELECT - 97 * - - COUNT( * ) col0
----
-97

skipif mysql # not compatible
query I rowsort label-7970
SELECT - 97 * - - COUNT ( * ) col0
----
-97

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7972
SELECT ALL + - COALESCE ( CAST( 70 AS SIGNED ), 82 + 18 * 50 - - 40 )
----
-70

skipif mysql # not compatible
query I rowsort label-7972
SELECT ALL + - COALESCE ( CAST ( 70 AS INTEGER ), 82 + 18 * 50 - - 40 )
----
-70

query I rowsort
SELECT - 85 * + 7 * ( 49 ) AS col1
----
-29155

query I rowsort
SELECT - 99 * + 89 * 76 col2
----
-669636

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7975
SELECT + CASE + 9 WHEN COUNT( * ) + - ( - 67 ) THEN - + NULLIF ( ( 71 ), - 2 ) * + CAST( + CAST( - 45 AS SIGNED ) AS SIGNED ) + 77 WHEN + + 72 THEN 92 * 88 ELSE 29 END
----
29

skipif mysql # not compatible
query I rowsort label-7975
SELECT + CASE + 9 WHEN COUNT ( * ) + - ( - 67 ) THEN - + NULLIF ( ( 71 ), - 2 ) * + CAST ( + CAST ( - 45 AS INTEGER ) AS INTEGER ) + 77 WHEN + + 72 THEN 92 * 88 ELSE 29 END
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-7976
SELECT ALL - - COUNT( * ) * - 27 + 2 AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-7976
SELECT ALL - - COUNT ( * ) * - 27 + 2 AS col2
----
-25

query I rowsort
SELECT ALL + ( 42 ) col2
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-7978
SELECT CASE + COUNT( DISTINCT - 11 ) WHEN + 42 + - 91 THEN NULL WHEN 69 THEN + ( COALESCE ( - + MAX( + 59 ), 8 * COUNT( * ) ) ) + - 76 * + 51 END * + ( COUNT( * ) ) + ( 68 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7978
SELECT CASE + COUNT ( DISTINCT - 11 ) WHEN + 42 + - 91 THEN NULL WHEN 69 THEN + ( COALESCE ( - + MAX ( + 59 ), 8 * COUNT ( * ) ) ) + - 76 * + 51 END * + ( COUNT ( * ) ) + ( 68 )
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7980
SELECT 17 + - COALESCE ( + 76, + 73, + 94 * - 57 * - 70 - - 71 - - - 64 * + 0 * 81 ) + - CAST( NULL AS SIGNED ) + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7980
SELECT 17 + - COALESCE ( + 76, + 73, + 94 * - 57 * - 70 - - 71 - - - 64 * + 0 * 81 ) + - CAST ( NULL AS INTEGER ) + - COUNT ( * )
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7982
SELECT ALL - 32 + 0 * 96 AS col2, + CAST( - 3 AS SIGNED )
----
-32
-3

skipif mysql # not compatible
query II rowsort label-7982
SELECT ALL - 32 + 0 * 96 AS col2, + CAST ( - 3 AS INTEGER )
----
-32
-3

query II rowsort
SELECT + + 9, - 60 AS col2
----
9
-60

query I rowsort
SELECT - 62 * 31 - + 14 AS col0
----
-1936

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7985
SELECT + COUNT( ALL + - CAST( NULL AS SIGNED ) ) AS col2
----
0

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7986
SELECT ALL - COUNT( DISTINCT - 0 ) + + - 27 DIV + 26 - + + 32, - 89 col1
----
-34
-89

skipif mysql # not compatible
query II rowsort label-7986
SELECT ALL - COUNT ( DISTINCT - 0 ) + + - 27 / + 26 - + + 32, - 89 col1
----
-34
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7987
SELECT 86 - - 37 + - 49 + - 88 + 31 / - NULLIF ( + 33, - + 73 / - - COUNT( * ) + + - 72 * + 81 + ( - - ( - 24 ) ) ) * CAST( NULL AS SIGNED ) + 85 / + ( 20 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7987
SELECT 86 - - 37 + - 49 + - 88 + 31 / - NULLIF ( + 33, - + 73 / - - COUNT ( * ) + + - 72 * + 81 + ( - - ( - 24 ) ) ) * CAST ( NULL AS INTEGER ) + 85 / + ( 20 )
----
NULL

query I rowsort
SELECT ALL - 71 * - 41 col1
----
2911

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7989
SELECT ALL + CAST( NULL AS DECIMAL ) + - - 11 / + 82 + - + 32 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7989
SELECT ALL + CAST ( NULL AS REAL ) + - - 11 / + 82 + - + 32 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7990
SELECT ALL + 96 + 77 * MAX( ALL - - 99 ) * 47 DIV 91
----
4033

skipif mysql # not compatible
query I rowsort label-7990
SELECT ALL + 96 + 77 * MAX ( ALL - - 99 ) * 47 / 91
----
4033

query I rowsort
SELECT ALL 29 + - COALESCE ( + 92, - - 27 ) AS col2
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7992
SELECT ALL 60 AS col1, - CAST( + 14 AS SIGNED ) + + MAX( 97 ) + 41 * - COUNT( * )
----
60
42

skipif mysql # not compatible
query II rowsort label-7992
SELECT ALL 60 AS col1, - CAST ( + 14 AS INTEGER ) + + MAX ( 97 ) + 41 * - COUNT ( * )
----
60
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7993
SELECT ALL 11 col0, CASE + ( 27 ) WHEN - - 63 THEN 55 + - COUNT( + + 55 ) + - AVG ( ALL + CAST( + 25 AS SIGNED ) ) * - MAX( ALL 35 ) * - 49 * + - 54 WHEN - 20 THEN NULL ELSE NULL END
----
11
NULL

skipif mysql # not compatible
query II rowsort label-7993
SELECT ALL 11 col0, CASE + ( 27 ) WHEN - - 63 THEN 55 + - COUNT ( + + 55 ) + - AVG ( ALL + CAST ( + 25 AS INTEGER ) ) * - MAX ( ALL 35 ) * - 49 * + - 54 WHEN - 20 THEN NULL ELSE NULL END
----
11
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7994
SELECT 27 + + COALESCE ( + 18, + 22 * + CAST( - - 74 AS SIGNED ) + - COUNT( * ) - + + 98 - - - 91 DIV 55 * - 17 - + - 10 * - 15 * 60 * - 17 + - ( - 26 ) )
----
45

skipif mysql # not compatible
query I rowsort label-7994
SELECT 27 + + COALESCE ( + 18, + 22 * + CAST ( - - 74 AS INTEGER ) + - COUNT ( * ) - + + 98 - - - 91 / 55 * - 17 - + - 10 * - 15 * 60 * - 17 + - ( - 26 ) )
----
45

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7996
SELECT ALL 93 DIV + 37 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-7996
SELECT ALL 93 / + 37 AS col0
----
2

query II rowsort
SELECT 5 AS col1, - 80 AS col0
----
5
-80

query I rowsort
SELECT 53 * - + 8 AS col0
----
-424

query I rowsort
SELECT ( + 32 ) + 0 + + + 50
----
82

onlyif mysql # aggregate syntax: 
query II rowsort label-8000
SELECT DISTINCT - 20 * - 39 AS col2, + COALESCE ( - + SUM( DISTINCT + 71 ), - COUNT( * ) ) + - COUNT( * )
----
780
-72

skipif mysql # not compatible
query II rowsort label-8000
SELECT DISTINCT - 20 * - 39 AS col2, + COALESCE ( - + SUM ( DISTINCT + 71 ), - COUNT ( * ) ) + - COUNT ( * )
----
780
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-8001
SELECT MAX( DISTINCT - 69 ) + + - 44 AS col2
----
-113

skipif mysql # not compatible
query I rowsort label-8001
SELECT MAX ( DISTINCT - 69 ) + + - 44 AS col2
----
-113

onlyif mysql # aggregate syntax: 
query I rowsort label-8002
SELECT ALL 33 - - + COUNT( * ) * + 90 AS col0
----
123

skipif mysql # not compatible
query I rowsort label-8002
SELECT ALL 33 - - + COUNT ( * ) * + 90 AS col0
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-8003
SELECT ALL - 11 * CASE - + MAX( + 83 ) WHEN + 47 - 74 THEN - 75 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8003
SELECT ALL - 11 * CASE - + MAX ( + 83 ) WHEN + 47 - 74 THEN - 75 END AS col1
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8005
SELECT ALL 50 * COUNT( DISTINCT + + CAST( NULL AS SIGNED ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8005
SELECT ALL 50 * COUNT ( DISTINCT + + CAST ( NULL AS INTEGER ) ) AS col0
----
0

query I rowsort
SELECT ALL + 48 - - - 44
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8007
SELECT CAST( - COUNT( * ) AS SIGNED ) + - 1 + 35 - - + 0 * + - 49 * 4 * 89 + - 87
----
-54

skipif mysql # not compatible
query I rowsort label-8007
SELECT CAST ( - COUNT ( * ) AS INTEGER ) + - 1 + 35 - - + 0 * + - 49 * 4 * 89 + - 87
----
-54

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-8010
SELECT 94, + COUNT( * ) * 6 AS col2
----
94
6

skipif mysql # not compatible
query II rowsort label-8010
SELECT 94, + COUNT ( * ) * 6 AS col2
----
94
6

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8012
SELECT + + 82 * 25 * - 7 * - CAST( NULL AS SIGNED ) + + MIN( - 79 ) + - - 62 * + + 71 - - 46 + - + 61 - COUNT( * ) + CASE - + ( - 20 ) WHEN + COUNT( * ) + - 6 THEN 66 / 99 - 13 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8012
SELECT + + 82 * 25 * - 7 * - CAST ( NULL AS INTEGER ) + + MIN ( - 79 ) + - - 62 * + + 71 - - 46 + - + 61 - COUNT ( * ) + CASE - + ( - 20 ) WHEN + COUNT ( * ) + - 6 THEN 66 / 99 - 13 END AS col2
----
NULL

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

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

query I rowsort
SELECT ALL + 38 * NULLIF ( - 94, 69 ) AS col0
----
-3572

onlyif mysql # aggregate syntax: 
query I rowsort label-8015
SELECT 52 + MAX( - 59 )
----
-7

skipif mysql # not compatible
query I rowsort label-8015
SELECT 52 + MAX ( - 59 )
----
-7

query I rowsort
SELECT 83 + 13
----
96

query II rowsort
SELECT + 64 AS col1, 6
----
64
6

query I rowsort
SELECT ALL - - 31 + - 14
----
17

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8020
SELECT + + 45, - ( - + COUNT( * ) ) - - CAST( NULL AS SIGNED ) + + MIN( DISTINCT + 98 ) AS col0
----
45
NULL

skipif mysql # not compatible
query II rowsort label-8020
SELECT + + 45, - ( - + COUNT ( * ) ) - - CAST ( NULL AS INTEGER ) + + MIN ( DISTINCT + 98 ) AS col0
----
45
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8021
SELECT 32 DIV + - 59 col0, CAST( NULL AS SIGNED )
----
0
NULL

skipif mysql # not compatible
query II rowsort label-8021
SELECT 32 / + - 59 col0, CAST ( NULL AS INTEGER )
----
0
NULL

query I rowsort
SELECT ALL + - 18 + - 26 AS col2
----
-44

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8024
SELECT CAST( NULL AS DECIMAL ) + - 39 + - 2
----
NULL

skipif mysql # not compatible
query I rowsort label-8024
SELECT CAST ( NULL AS REAL ) + - 39 + - 2
----
NULL

query I rowsort
SELECT 9 + + 65 + - NULLIF ( - - 15, - 80 )
----
59

query II rowsort
SELECT + - 52 AS col0, 15 AS col2
----
-52
15

query I rowsort
SELECT ALL + - 43 + + - 94
----
-137

onlyif mysql # DIV for integer division: 
query I rowsort label-8028
SELECT ALL + + 26 + - 39 DIV + 41
----
26

skipif mysql # not compatible
query I rowsort label-8028
SELECT ALL + + 26 + - 39 / + 41
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-8029
SELECT ALL - - SUM( + 99 ) * - - 32 * - 13 AS col2
----
-41184

skipif mysql # not compatible
query I rowsort label-8029
SELECT ALL - - SUM ( + 99 ) * - - 32 * - 13 AS col2
----
-41184

query II rowsort
SELECT ALL - 88 AS col0, 48 * 39
----
-88
1872

query II rowsort
SELECT ALL - - 79 col0, 27 AS col1
----
79
27

onlyif mysql # DIV for integer division: 
query I rowsort label-8032
SELECT ALL - + 51 + - 34 + - 28 DIV + 36 col2
----
-85

skipif mysql # not compatible
query I rowsort label-8032
SELECT ALL - + 51 + - 34 + - 28 / + 36 col2
----
-85

query I rowsort
SELECT 27 * - COALESCE ( - 6, - 52 ) * 48 * - 85 AS col2
----
-660960

query I rowsort
SELECT ALL - CASE - 61 WHEN - 53 THEN + 76 - 80 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8035
SELECT CASE - 93 WHEN - - 72 * 69 DIV - 74 + + - 61 + + COUNT( * ) * ( - 1 ) * - + 94 DIV + COUNT( * ) THEN NULL WHEN - + 46 * - 96 * + - 62 - 81 - - - COUNT( * ) DIV + 32 THEN + 18 ELSE + 58 DIV - 74 END + + 48
----
48

skipif mysql # not compatible
query I rowsort label-8035
SELECT CASE - 93 WHEN - - 72 * 69 / - 74 + + - 61 + + COUNT ( * ) * ( - 1 ) * - + 94 / + COUNT ( * ) THEN NULL WHEN - + 46 * - 96 * + - 62 - 81 - - - COUNT ( * ) / + 32 THEN + 18 ELSE + 58 / - 74 END + + 48
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-8036
SELECT SUM( DISTINCT ( - 36 ) ) * - 79 AS col2
----
2844

skipif mysql # not compatible
query I rowsort label-8036
SELECT SUM ( DISTINCT ( - 36 ) ) * - 79 AS col2
----
2844

onlyif mysql # DIV for integer division: 
query I rowsort label-8037
SELECT ALL 87 * 49 DIV - 97 col1
----
-43

skipif mysql # not compatible
query I rowsort label-8037
SELECT ALL 87 * 49 / - 97 col1
----
-43

query I rowsort
SELECT DISTINCT 4 - + 95 * + + 27 + - ( - ( - 57 ) ) AS col0
----
-2618

onlyif mysql # aggregate syntax: 
query I rowsort label-8039
SELECT DISTINCT + 24 * + - COUNT( * ) * - 25 * + - 13
----
-7800

skipif mysql # not compatible
query I rowsort label-8039
SELECT DISTINCT + 24 * + - COUNT ( * ) * - 25 * + - 13
----
-7800

onlyif mysql # aggregate syntax: 
query I rowsort label-8040
SELECT ALL 51 * COUNT( * ) col0
----
51

skipif mysql # not compatible
query I rowsort label-8040
SELECT ALL 51 * COUNT ( * ) col0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8041
SELECT CASE - 18 WHEN + - 36 + 9 + + 99 / - COUNT( * ) * + 94 THEN MAX( DISTINCT - 30 ) WHEN 83 + + AVG ( ALL + 32 ) - - 97 * ( + + 27 ) THEN NULL WHEN ( + - 20 ) THEN NULL END * - 86 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8041
SELECT CASE - 18 WHEN + - 36 + 9 + + 99 / - COUNT ( * ) * + 94 THEN MAX ( DISTINCT - 30 ) WHEN 83 + + AVG ( ALL + 32 ) - - 97 * ( + + 27 ) THEN NULL WHEN ( + - 20 ) THEN NULL END * - 86 AS col0
----
NULL

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

query I rowsort
SELECT ALL 73 + + + 95
----
168

query I rowsort
SELECT DISTINCT + 58 + - 61
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8045
SELECT DISTINCT + 25 + 75 - + 52 + + + COALESCE ( + 79, - 11 / + ( COUNT( * ) ) * - 8 * 42 ) + + 58 * - CASE - 18 WHEN 19 + + + 68 THEN 75 WHEN + 68 * - 58 + - 39 * - COALESCE ( + 43, ( - 65 ) ) THEN NULL END * - 99 * 75
----
NULL

skipif mysql # not compatible
query I rowsort label-8045
SELECT DISTINCT + 25 + 75 - + 52 + + + COALESCE ( + 79, - 11 / + ( COUNT ( * ) ) * - 8 * 42 ) + + 58 * - CASE - 18 WHEN 19 + + + 68 THEN 75 WHEN + 68 * - 58 + - 39 * - COALESCE ( + 43, ( - 65 ) ) THEN NULL END * - 99 * 75
----
NULL

query II rowsort
SELECT DISTINCT + ( + 17 ) AS col1, - 99
----
17
-99

query I rowsort
SELECT DISTINCT + + 33 + + - 4
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8048
SELECT DISTINCT CAST( + 88 AS SIGNED ) + 83 AS col0
----
171

skipif mysql # not compatible
query I rowsort label-8048
SELECT DISTINCT CAST ( + 88 AS INTEGER ) + 83 AS col0
----
171

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

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

query I rowsort
SELECT - + 70 * - 72 * - 37 AS col2
----
-186480

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8051
SELECT DISTINCT - + NULLIF ( CAST( - CASE - + CASE - 74 WHEN + 35 THEN NULL ELSE + COALESCE ( - 27, - CASE - + AVG ( - 2 ) WHEN + - COUNT( * ) THEN ( 50 ) WHEN - 63 THEN - - COUNT( * ) ELSE SUM( + 65 ) END ) + 85 END WHEN - COUNT( * ) / + 11 THEN 31 END AS DECIMAL ), 23 ) * ( 58 ) + 63
----
NULL

skipif mysql # not compatible
query I rowsort label-8051
SELECT DISTINCT - + NULLIF ( CAST ( - CASE - + CASE - 74 WHEN + 35 THEN NULL ELSE + COALESCE ( - 27, - CASE - + AVG ( - 2 ) WHEN + - COUNT ( * ) THEN ( 50 ) WHEN - 63 THEN - - COUNT ( * ) ELSE SUM ( + 65 ) END ) + 85 END WHEN - COUNT ( * ) / + 11 THEN 31 END AS REAL ), 23 ) * ( 58 ) + 63
----
NULL

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

query I rowsort
SELECT DISTINCT 62 * + 38 + + - 65 AS col0
----
2291

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8054
SELECT DISTINCT - COUNT( * ) * - + 19 + - - 54 + + NULLIF ( COUNT( * ), - - 16 * - + CASE - 1 WHEN - - 22 + + 90 THEN + NULLIF ( - 96, COUNT( * ) ) WHEN - 21 * - - 33 THEN - 3 * - CASE CAST( NULL AS SIGNED ) WHEN + 9 THEN NULL ELSE + COUNT( * ) / + 64 + 65 * 91 END WHEN + 43 * + 7 + + 34 THEN NULL ELSE NULL END )
----
74

skipif mysql # not compatible
query I rowsort label-8054
SELECT DISTINCT - COUNT ( * ) * - + 19 + - - 54 + + NULLIF ( COUNT ( * ), - - 16 * - + CASE - 1 WHEN - - 22 + + 90 THEN + NULLIF ( - 96, COUNT ( * ) ) WHEN - 21 * - - 33 THEN - 3 * - CASE CAST ( NULL AS INTEGER ) WHEN + 9 THEN NULL ELSE + COUNT ( * ) / + 64 + 65 * 91 END WHEN + 43 * + 7 + + 34 THEN NULL ELSE NULL END )
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8055
SELECT ALL + - CASE - 5 WHEN COUNT( * ) * + - CAST( + + 62 AS SIGNED ) * + CAST( NULL AS SIGNED ) + - 0 + - COUNT( * ) + + ( - - 97 ) + + + COUNT( * ) + - 77 * - + 64 THEN NULL WHEN + 18 THEN + 88 - + SUM( DISTINCT + + 75 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8055
SELECT ALL + - CASE - 5 WHEN COUNT ( * ) * + - CAST ( + + 62 AS INTEGER ) * + CAST ( NULL AS INTEGER ) + - 0 + - COUNT ( * ) + + ( - - 97 ) + + + COUNT ( * ) + - 77 * - + 64 THEN NULL WHEN + 18 THEN + 88 - + SUM ( DISTINCT + + 75 ) ELSE NULL END
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8057
SELECT ALL + CASE - 90 WHEN - - 64 / - SUM( DISTINCT 46 ) - + - 98 + - + 30 - - + COALESCE ( + 30, + 53, - 3 * + + 35 ) + + 1 * AVG ( ALL 0 ) THEN 88 * 13 * MAX( - 80 ) WHEN - 21 THEN - 3 ELSE NULL END * ( - 79 ) + COUNT( * ) * NULLIF ( + ( + 46 ) * COALESCE ( + 90 * + 57 + + COUNT( * ), 20, 43 * + 24 ), - 87 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8057
SELECT ALL + CASE - 90 WHEN - - 64 / - SUM ( DISTINCT 46 ) - + - 98 + - + 30 - - + COALESCE ( + 30, + 53, - 3 * + + 35 ) + + 1 * AVG ( ALL 0 ) THEN 88 * 13 * MAX ( - 80 ) WHEN - 21 THEN - 3 ELSE NULL END * ( - 79 ) + COUNT ( * ) * NULLIF ( + ( + 46 ) * COALESCE ( + 90 * + 57 + + COUNT ( * ), 20, 43 * + 24 ), - 87 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8058
SELECT DISTINCT + ( MIN( - + 60 ) ) * - 33 + COUNT( * ) - NULLIF ( - 44, + - 77 * 7 )
----
2025

skipif mysql # not compatible
query I rowsort label-8058
SELECT DISTINCT + ( MIN ( - + 60 ) ) * - 33 + COUNT ( * ) - NULLIF ( - 44, + - 77 * 7 )
----
2025

onlyif mysql # aggregate syntax: 
query I rowsort label-8059
SELECT DISTINCT + 91 * - 29 - + 35 - - COUNT( * ) AS col0
----
-2673

skipif mysql # not compatible
query I rowsort label-8059
SELECT DISTINCT + 91 * - 29 - + 35 - - COUNT ( * ) AS col0
----
-2673

onlyif mysql # aggregate syntax: 
query I rowsort label-8060
SELECT - + COUNT( * ) * - COALESCE ( - 49, - + 11 )
----
-49

skipif mysql # not compatible
query I rowsort label-8060
SELECT - + COUNT ( * ) * - COALESCE ( - 49, - + 11 )
----
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8061
SELECT COUNT( * ) col2, 95 DIV - 17 AS col1
----
1
-5

skipif mysql # not compatible
query II rowsort label-8061
SELECT COUNT ( * ) col2, 95 / - 17 AS col1
----
1
-5

query I rowsort
SELECT DISTINCT - 92 * + 59 AS col1
----
-5428

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8063
SELECT ALL - CAST( NULL AS SIGNED ) * - 47 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8063
SELECT ALL - CAST ( NULL AS INTEGER ) * - 47 AS col1
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8065
SELECT - COUNT( + + 29 ) + - 7 * ( + COALESCE ( NULLIF ( + 52, + COUNT( DISTINCT + 3 ) / - 41 ), 4, + COUNT( * ) + + 5 ) ) + + 6 + + 9
----
-350

skipif mysql # not compatible
query I rowsort label-8065
SELECT - COUNT ( + + 29 ) + - 7 * ( + COALESCE ( NULLIF ( + 52, + COUNT ( DISTINCT + 3 ) / - 41 ), 4, + COUNT ( * ) + + 5 ) ) + + 6 + + 9
----
-350

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

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

query I rowsort
SELECT DISTINCT NULLIF ( CASE - 98 WHEN - ( 21 ) / 65 * + 53 THEN 90 WHEN + ( + 56 ) THEN NULL END, + ( + 60 ) ) AS col2
----
NULL

query I rowsort
SELECT - COALESCE ( 53, + 21 * + 50 * 3, 36 ) * + 82 AS col1
----
-4346

query I rowsort
SELECT - 92 + - 95
----
-187

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8070
SELECT - NULLIF ( - COALESCE ( + - 34, 63 ), - - 54 - CAST( NULL AS SIGNED ) )
----
-34

skipif mysql # not compatible
query I rowsort label-8070
SELECT - NULLIF ( - COALESCE ( + - 34, 63 ), - - 54 - CAST ( NULL AS INTEGER ) )
----
-34

query I rowsort
SELECT + 74 + + 3 + ( + + 66 )
----
143

query I rowsort
SELECT + 91 * 4 AS col0
----
364

query I rowsort
SELECT ALL NULLIF ( + 36, 47 - - - 64 * - 90 + 21 * + 82 * + - 33 * + - ( - 84 ) / - COALESCE ( + 93, - 79 ) - - 64 ) AS col0
----
36

query I rowsort
SELECT ALL ( + + 64 ) + + 92
----
156

onlyif mysql # DIV for integer division: 
query II rowsort label-8075
SELECT + 55 DIV - ( + ( - - 2 ) ) AS col0, + 41
----
-27
41

skipif mysql # not compatible
query II rowsort label-8075
SELECT + 55 / - ( + ( - - 2 ) ) AS col0, + 41
----
-27
41

query II rowsort
SELECT 72, 15 + - 71 col2
----
72
-56

query I rowsort
SELECT ALL + 85 + - 86 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8078
SELECT ALL - 80 + + + MAX( + 74 )
----
-6

skipif mysql # not compatible
query I rowsort label-8078
SELECT ALL - 80 + + + MAX ( + 74 )
----
-6

query I rowsort
SELECT DISTINCT 80 + + 38 col0
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-8080
SELECT - MAX( ALL - - 14 ) + + + ( + 84 )
----
70

skipif mysql # not compatible
query I rowsort label-8080
SELECT - MAX ( ALL - - 14 ) + + + ( + 84 )
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-8081
SELECT + 24 * MAX( - 6 ) + + 37 + + + 30 * - 29 * 48 * + SUM( 29 ) AS col0
----
-1211147

skipif mysql # not compatible
query I rowsort label-8081
SELECT + 24 * MAX ( - 6 ) + + 37 + + + 30 * - 29 * 48 * + SUM ( 29 ) AS col0
----
-1211147

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8083
SELECT + - COUNT( * ) + 88
----
87

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8084
SELECT - + COUNT( * ) / + 59 - + 48 - + 96 / + 83 + ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8084
SELECT - + COUNT ( * ) / + 59 - + 48 - + 96 / + 83 + ( - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT DISTINCT - 53 * 78
----
-4134

onlyif mysql # aggregate syntax: 
query II rowsort label-8086
SELECT + - 89 + + 22 - 96 + COUNT( 83 ) * - 15 AS col2, - 19 * - 72
----
-178
1368

skipif mysql # not compatible
query II rowsort label-8086
SELECT + - 89 + + 22 - 96 + COUNT ( 83 ) * - 15 AS col2, - 19 * - 72
----
-178
1368

query I rowsort
SELECT ALL + - 88 * - + 96
----
8448

query I rowsort
SELECT ALL + 9 * + - 21
----
-189

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8089
SELECT + 26 + + 60 * - CAST( NULL AS SIGNED ) + - 12 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8089
SELECT + 26 + + 60 * - CAST ( NULL AS INTEGER ) + - 12 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8090
SELECT DISTINCT 96 * - + CASE 94 WHEN - + COUNT( * ) THEN + + 78 ELSE NULL END * - 40
----
NULL

skipif mysql # not compatible
query I rowsort label-8090
SELECT DISTINCT 96 * - + CASE 94 WHEN - + COUNT ( * ) THEN + + 78 ELSE NULL END * - 40
----
NULL

query I rowsort
SELECT ALL + 59 * + 37 AS col0
----
2183

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

skipif mysql # not compatible
query I rowsort label-8092
SELECT + 80 / + 57 + + + COUNT ( * ) AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8093
SELECT - CASE 75 WHEN - + 15 THEN + 77 * + + COUNT( * ) ELSE + 6 END + ( 96 )
----
90

skipif mysql # not compatible
query I rowsort label-8093
SELECT - CASE 75 WHEN - + 15 THEN + 77 * + + COUNT ( * ) ELSE + 6 END + ( 96 )
----
90

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8095
SELECT ALL - 79 / + - 97 * + - 32 * - - CASE - - 17 WHEN - 61 * - 38 THEN NULL WHEN - - 81 THEN + + MIN( ALL + - 8 ) * + CAST( CASE COUNT( DISTINCT + 31 ) WHEN + + 60 + + 72 THEN + 45 END AS SIGNED ) * + 99 * - - CASE - 82 WHEN 34 * + 6 THEN NULL WHEN 40 / + 2 THEN - 97 + 85 * + 42 WHEN + 86 - - 4 THEN NULL ELSE NULL END END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8095
SELECT ALL - 79 / + - 97 * + - 32 * - - CASE - - 17 WHEN - 61 * - 38 THEN NULL WHEN - - 81 THEN + + MIN ( ALL + - 8 ) * + CAST ( CASE COUNT ( DISTINCT + 31 ) WHEN + + 60 + + 72 THEN + 45 END AS INTEGER ) * + 99 * - - CASE - 82 WHEN 34 * + 6 THEN NULL WHEN 40 / + 2 THEN - 97 + 85 * + 42 WHEN + 86 - - 4 THEN NULL ELSE NULL END END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8096
SELECT - 4 * NULLIF ( + 64, + + 36 ) * + - CAST( - - 25 AS SIGNED ) AS col1
----
6400

skipif mysql # not compatible
query I rowsort label-8096
SELECT - 4 * NULLIF ( + 64, + + 36 ) * + - CAST ( - - 25 AS INTEGER ) AS col1
----
6400

query I rowsort
SELECT NULLIF ( + 56, - 36 ) col2
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-8098
SELECT ALL - 79 DIV + 46
----
-1

skipif mysql # not compatible
query I rowsort label-8098
SELECT ALL - 79 / + 46
----
-1

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8100
SELECT - CAST( COUNT( * ) AS SIGNED ) + + 54 + 89 * 22
----
2011

skipif mysql # not compatible
query I rowsort label-8100
SELECT - CAST ( COUNT ( * ) AS INTEGER ) + + 54 + 89 * 22
----
2011

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8101
SELECT 89 * + COALESCE ( + 12, + ( 14 ) ) * + CAST( - COALESCE ( - ( COUNT( * ) ), + - ( 23 ), - 81 ) AS SIGNED ) + - COUNT( 52 )
----
1067

skipif mysql # not compatible
query I rowsort label-8101
SELECT 89 * + COALESCE ( + 12, + ( 14 ) ) * + CAST ( - COALESCE ( - ( COUNT ( * ) ), + - ( 23 ), - 81 ) AS INTEGER ) + - COUNT ( 52 )
----
1067

onlyif mysql # aggregate syntax: 
query II rowsort label-8102
SELECT NULLIF ( - 27, + COUNT( + 29 ) + + 59 * 70 * + 98 * - - ( + ( + 93 ) ) / - 11 * + 85 ), ( 94 ) AS col2
----
-27
94

skipif mysql # not compatible
query II rowsort label-8102
SELECT NULLIF ( - 27, + COUNT ( + 29 ) + + 59 * 70 * + 98 * - - ( + ( + 93 ) ) / - 11 * + 85 ), ( 94 ) AS col2
----
-27
94

onlyif mysql # aggregate syntax: 
query I rowsort label-8103
SELECT COALESCE ( 4, - 60, + COALESCE ( + 33, + + MAX( ALL + 62 ), 3 - + + 29 - - 57, + 55 ) )
----
4

skipif mysql # not compatible
query I rowsort label-8103
SELECT COALESCE ( 4, - 60, + COALESCE ( + 33, + + MAX ( ALL + 62 ), 3 - + + 29 - - 57, + 55 ) )
----
4

query I rowsort
SELECT DISTINCT + ( + 22 ) + - 9 AS col1
----
13

query I rowsort
SELECT DISTINCT - 44 + - - 58 - 75 AS col0
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8106
SELECT ALL + 90 + 14 * ( + - CAST( NULL AS SIGNED ) ) / + + 70 * - + 88 + + + 49 + + 89 * + ( - 38 ) * - CASE 54 WHEN COUNT( * ) + - 37 + + 85 + AVG ( DISTINCT - 52 ) * - + 40 + - 38 + 9 * + 3 THEN NULLIF ( + MAX( ALL 1 ), 10 ) + 22 * 61 WHEN - 62 / ( 69 * + 62 ) - - 3 THEN NULL WHEN - 81 THEN NULL ELSE 59 END / + 88 + + ( 81 ) * + 99 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8106
SELECT ALL + 90 + 14 * ( + - CAST ( NULL AS INTEGER ) ) / + + 70 * - + 88 + + + 49 + + 89 * + ( - 38 ) * - CASE 54 WHEN COUNT ( * ) + - 37 + + 85 + AVG ( DISTINCT - 52 ) * - + 40 + - 38 + 9 * + 3 THEN NULLIF ( + MAX ( ALL 1 ), 10 ) + 22 * 61 WHEN - 62 / ( 69 * + 62 ) - - 3 THEN NULL WHEN - 81 THEN NULL ELSE 59 END / + 88 + + ( 81 ) * + 99 AS col1
----
NULL

query I rowsort
SELECT DISTINCT 11 + + ( + 17 ) AS col1
----
28

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

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

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

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

query I rowsort
SELECT DISTINCT - 48 + - - 58 * - 13
----
-802

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

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

query I rowsort
SELECT ALL - + 49 - + + 27
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-8113
SELECT - 65 * + 51 * - COUNT( * )
----
3315

skipif mysql # not compatible
query I rowsort label-8113
SELECT - 65 * + 51 * - COUNT ( * )
----
3315

onlyif mysql # aggregate syntax: 
query I rowsort label-8114
SELECT ALL - MIN( DISTINCT CASE + 22 WHEN + + 75 / - 96 * - + 73 + - 51 THEN 17 ELSE NULL END ) - CASE - 45 WHEN ( - COALESCE ( + COUNT( * ), - 47 / COALESCE ( - 37, 85 + + + ( - 93 ) + 39 ) ) ) * 81 + + 10 THEN 17 + + 78 * 7 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8114
SELECT ALL - MIN ( DISTINCT CASE + 22 WHEN + + 75 / - 96 * - + 73 + - 51 THEN 17 ELSE NULL END ) - CASE - 45 WHEN ( - COALESCE ( + COUNT ( * ), - 47 / COALESCE ( - 37, 85 + + + ( - 93 ) + 39 ) ) ) * 81 + + 10 THEN 17 + + 78 * 7 END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8115
SELECT 84 DIV - 17 AS col1, CASE - + 77 WHEN 33 THEN + - ( 7 ) DIV + + ( 83 ) + + - CASE - 64 WHEN + 71 THEN - 95 * + - 11 * - 22 + 85 ELSE - 69 END * - 9 END
----
-4
NULL

skipif mysql # not compatible
query II rowsort label-8115
SELECT 84 / - 17 AS col1, CASE - + 77 WHEN 33 THEN + - ( 7 ) / + + ( 83 ) + + - CASE - 64 WHEN + 71 THEN - 95 * + - 11 * - 22 + 85 ELSE - 69 END * - 9 END
----
-4
NULL

query I rowsort
SELECT DISTINCT - - 7 * 54
----
378

onlyif mysql # DIV for integer division: 
query II rowsort label-8117
SELECT 45 DIV 2 + - 56 * 2 AS col0, - 11 * 19 AS col1
----
-90
-209

skipif mysql # not compatible
query II rowsort label-8117
SELECT 45 / 2 + - 56 * 2 AS col0, - 11 * 19 AS col1
----
-90
-209

query I rowsort
SELECT - 68 * - 38 AS col1
----
2584

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8119
SELECT ( + 85 ) DIV - 26 - COUNT( * ) + + COUNT( * )
----
-3

skipif mysql # not compatible
query I rowsort label-8119
SELECT ( + 85 ) / - 26 - COUNT ( * ) + + COUNT ( * )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8120
SELECT NULLIF ( - COUNT( * ), - - 70 - 78 )
----
-1

skipif mysql # not compatible
query I rowsort label-8120
SELECT NULLIF ( - COUNT ( * ), - - 70 - 78 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8121
SELECT + CAST( NULL AS SIGNED ) / ( + NULLIF ( + 0, + COALESCE ( + + MIN( 28 ), - 39 + - - CAST( NULL AS SIGNED ) + 27 * + 95, 20 ) ) ) + - 24 - + 68 / 3
----
NULL

skipif mysql # not compatible
query I rowsort label-8121
SELECT + CAST ( NULL AS INTEGER ) / ( + NULLIF ( + 0, + COALESCE ( + + MIN ( 28 ), - 39 + - - CAST ( NULL AS INTEGER ) + 27 * + 95, 20 ) ) ) + - 24 - + 68 / 3
----
NULL

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

skipif mysql # not compatible
query I rowsort label-8122
SELECT COUNT ( * ) / - - 3
----
0

query I rowsort
SELECT ALL - CASE + + 57 WHEN - 11 + + 31 - + - 92 - + ( + 55 ) THEN 65 END AS col0
----
-65

query I rowsort
SELECT ALL 22 * + - 1 AS col0
----
-22

query II rowsort
SELECT DISTINCT - 10 AS col2, + 96 * ( 58 ) AS col0
----
-10
5568

onlyif mysql # aggregate syntax: 
query I rowsort label-8126
SELECT DISTINCT 57 + - + ( - 58 ) * + SUM( - 11 )
----
-581

skipif mysql # not compatible
query I rowsort label-8126
SELECT DISTINCT 57 + - + ( - 58 ) * + SUM ( - 11 )
----
-581

query I rowsort
SELECT ALL 86 + - 0 AS col2
----
86

query I rowsort
SELECT 62 + + 42 + 68 * + 23
----
1668

query II rowsort
SELECT 93, - 94 * + 33 AS col2
----
93
-3102

query I rowsort
SELECT + ( - 85 ) * 3 + + 60 AS col2
----
-195

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8131
SELECT COALESCE ( - AVG ( - + 46 ), + COUNT( * ) ) * 1 * - 40 + + AVG ( 92 ) + - 70 + 37 + - AVG ( DISTINCT - CAST( NULL AS DECIMAL ) ) * - SUM( ALL - 20 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8131
SELECT COALESCE ( - AVG ( - + 46 ), + COUNT ( * ) ) * 1 * - 40 + + AVG ( 92 ) + - 70 + 37 + - AVG ( DISTINCT - CAST ( NULL AS REAL ) ) * - SUM ( ALL - 20 ) AS col1
----
NULL

query III rowsort
SELECT ALL - 58 AS col0, ( + 59 ) AS col2, - 99
----
-58
59
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8133
SELECT DISTINCT 85 + - 25 - + COUNT( * ) col2
----
59

skipif mysql # not compatible
query I rowsort label-8133
SELECT DISTINCT 85 + - 25 - + COUNT ( * ) col2
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-8134
SELECT ALL - 30 DIV + + 12 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-8134
SELECT ALL - 30 / + + 12 AS col2
----
-2

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

skipif mysql # not compatible
query I rowsort label-8135
SELECT COUNT ( * ) + - + 47 + + 39 AS col0
----
-7

query I rowsort
SELECT ALL 20 + + 13 AS col1
----
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8137
SELECT ALL MAX( + - 97 ) DIV + + 14, + 37 AS col0
----
-6
37

skipif mysql # not compatible
query II rowsort label-8137
SELECT ALL MAX ( + - 97 ) / + + 14, + 37 AS col0
----
-6
37

query I rowsort
SELECT - 14 + - 66 AS col2
----
-80

query II rowsort
SELECT ( + ( - 10 ) ) AS col1, + 42
----
-10
42

onlyif mysql # aggregate syntax: 
query I rowsort label-8140
SELECT ALL + + COUNT( * ) - + - ( - 88 )
----
-87

skipif mysql # not compatible
query I rowsort label-8140
SELECT ALL + + COUNT ( * ) - + - ( - 88 )
----
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-8141
SELECT + ( ( 28 ) ) DIV - 27 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8141
SELECT + ( ( 28 ) ) / - 27 AS col0
----
-1

query I rowsort
SELECT DISTINCT 28 - + 26 AS col2
----
2

query I rowsort
SELECT DISTINCT - + 55 * + 34 * + 32 AS col0
----
-59840

query I rowsort
SELECT + 25 + - + 42 * + 9 AS col1
----
-353

onlyif mysql # DIV for integer division: 
query I rowsort label-8145
SELECT - 30 * - 4 DIV + - 1 AS col0
----
-120

skipif mysql # not compatible
query I rowsort label-8145
SELECT - 30 * - 4 / + - 1 AS col0
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-8146
SELECT ALL + COUNT( ( + - 80 ) ) col2
----
1

skipif mysql # not compatible
query I rowsort label-8146
SELECT ALL + COUNT ( ( + - 80 ) ) col2
----
1

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

skipif mysql # not compatible
query I rowsort label-8147
SELECT ALL - - COUNT ( * ) * 0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8148
SELECT + MAX( - - 3 ) * 55 DIV + + ( + - 35 ) + + - 65 DIV - 51 DIV 26 * + + 91 AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-8148
SELECT + MAX ( - - 3 ) * 55 / + + ( + - 35 ) + + - 65 / - 51 / 26 * + + 91 AS col0
----
-4

query I rowsort
SELECT ( + + 73 ) * - 61 * + 1 * - 88 * 46 * - 23 - + - 56 AS col1
----
-414592056

query I rowsort
SELECT - 75 + - 80
----
-155

onlyif mysql # aggregate syntax: 
query I rowsort label-8151
SELECT DISTINCT - 9 * + + MAX( 66 )
----
-594

skipif mysql # not compatible
query I rowsort label-8151
SELECT DISTINCT - 9 * + + MAX ( 66 )
----
-594

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8152
SELECT DISTINCT - 98 / + - 23 + - COUNT( * ) * - COUNT( * ) + + + 45 + - CAST( NULL AS SIGNED ) + + 66 + - 83 * + + 70 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8152
SELECT DISTINCT - 98 / + - 23 + - COUNT ( * ) * - COUNT ( * ) + + + 45 + - CAST ( NULL AS INTEGER ) + + 66 + - 83 * + + 70 AS col1
----
NULL

query I rowsort
SELECT ALL 23 * - 41 col2
----
-943

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8154
SELECT DISTINCT + 79 * - - ( - - 13 ) * CAST( - 13 AS SIGNED ) AS col0
----
-13351

skipif mysql # not compatible
query I rowsort label-8154
SELECT DISTINCT + 79 * - - ( - - 13 ) * CAST ( - 13 AS INTEGER ) AS col0
----
-13351

query I rowsort
SELECT ALL NULLIF ( + ( - 46 ), - 9 ) * - 24 + + 24
----
1128

query I rowsort
SELECT 62 * - - 3 * + - 47 * 82 AS col2
----
-716844

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8157
SELECT 25 DIV + 67 + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-8157
SELECT 25 / + 67 + + COUNT ( * )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8158
SELECT COUNT( * ), CAST( - + 10 AS SIGNED ) AS col0
----
1
-10

skipif mysql # not compatible
query II rowsort label-8158
SELECT COUNT ( * ), CAST ( - + 10 AS INTEGER ) AS col0
----
1
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-8159
SELECT - ( - 85 ) * - COUNT( DISTINCT - - 49 )
----
-85

skipif mysql # not compatible
query I rowsort label-8159
SELECT - ( - 85 ) * - COUNT ( DISTINCT - - 49 )
----
-85

query I rowsort
SELECT DISTINCT CASE + 71 WHEN + - 0 THEN + 76 END / - - ( 30 ) * + - 82 / - AVG ( + 44 )
----
NULL

query I rowsort
SELECT ALL - ( 96 ) * + + 56 + - + 95 - 86 * - 92 AS col2
----
2441

query I rowsort
SELECT + 39 * - ( - - 64 )
----
-2496

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8163
SELECT ALL COUNT( * ) * 28 + + - COUNT( * ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8163
SELECT ALL COUNT ( * ) * 28 + + - COUNT ( * ) * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8164
SELECT - COUNT( * ) * 28 DIV + - 32
----
0

skipif mysql # not compatible
query I rowsort label-8164
SELECT - COUNT ( * ) * 28 / + - 32
----
0

query II rowsort
SELECT + 94 col1, 74 AS col2
----
94
74

query I rowsort
SELECT + 61 * + + 84 * + 94 AS col2
----
481656

query I rowsort
SELECT + + 43 * - 92
----
-3956

query I rowsort
SELECT + 34 - + 16 * - + 87
----
1426

onlyif mysql # aggregate syntax: 
query II rowsort label-8169
SELECT + COALESCE ( - 55, - 95, + 8 * - 96 ) + 57, + CASE - 0 WHEN - COALESCE ( + + 34, - CASE 77 WHEN + 57 THEN - - 46 WHEN - 86 * + 0 + + - 24 - - + CASE - 68 WHEN - 38 * - 4 THEN NULL ELSE 41 * 46 END THEN 43 + - COUNT( * ) END + 1, 34 ) THEN 33 ELSE NULL END * - ( + 92 + 1 ) + 4 AS col1
----
2
NULL

skipif mysql # not compatible
query II rowsort label-8169
SELECT + COALESCE ( - 55, - 95, + 8 * - 96 ) + 57, + CASE - 0 WHEN - COALESCE ( + + 34, - CASE 77 WHEN + 57 THEN - - 46 WHEN - 86 * + 0 + + - 24 - - + CASE - 68 WHEN - 38 * - 4 THEN NULL ELSE 41 * 46 END THEN 43 + - COUNT ( * ) END + 1, 34 ) THEN 33 ELSE NULL END * - ( + 92 + 1 ) + 4 AS col1
----
2
NULL

query I rowsort
SELECT + 56 * - - 40 AS col0
----
2240

query I rowsort
SELECT DISTINCT - NULLIF ( + + ( - - 11 ), - 1 )
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-8172
SELECT ALL MAX( - 86 ) AS col1
----
-86

skipif mysql # not compatible
query I rowsort label-8172
SELECT ALL MAX ( - 86 ) AS col1
----
-86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8173
SELECT + CAST( NULL AS SIGNED ) + + - 66
----
NULL

skipif mysql # not compatible
query I rowsort label-8173
SELECT + CAST ( NULL AS INTEGER ) + + - 66
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8174
SELECT - - COUNT( * ) DIV + - 24 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8174
SELECT - - COUNT ( * ) / + - 24 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8175
SELECT - - ( + 33 ) + - ( - - COUNT( * ) ) AS col1, + 60 AS col2
----
32
60

skipif mysql # not compatible
query II rowsort label-8175
SELECT - - ( + 33 ) + - ( - - COUNT ( * ) ) AS col1, + 60 AS col2
----
32
60

onlyif mysql # DIV for integer division: 
query I rowsort label-8176
SELECT DISTINCT 62 DIV 17 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-8176
SELECT DISTINCT 62 / 17 AS col2
----
3

query I rowsort
SELECT - 6 + + + 97 + 47 AS col0
----
138

query I rowsort
SELECT ALL + ( + 77 ) * - - 92
----
7084

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8179
SELECT - 20 DIV + 45 + + + 49 + + - CAST( 68 AS SIGNED ) + - 82 * - 81 * 43 AS col0
----
285587

skipif mysql # not compatible
query I rowsort label-8179
SELECT - 20 / + 45 + + + 49 + + - CAST ( 68 AS INTEGER ) + - 82 * - 81 * 43 AS col0
----
285587

onlyif mysql # aggregate syntax: 
query I rowsort label-8180
SELECT DISTINCT - COALESCE ( + 28, - SUM( DISTINCT + + 53 ) ) AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-8180
SELECT DISTINCT - COALESCE ( + 28, - SUM ( DISTINCT + + 53 ) ) AS col2
----
-28

query II rowsort
SELECT + 8 col2, + 8 AS col1
----
8
8

query I rowsort
SELECT ALL - 69 * + - 82
----
5658

onlyif mysql # DIV for integer division: 
query I rowsort label-8183
SELECT - 86 DIV + 80 + 49 * + 60 + + + 26
----
2965

skipif mysql # not compatible
query I rowsort label-8183
SELECT - 86 / + 80 + 49 * + 60 + + + 26
----
2965

query I rowsort
SELECT ALL + - 64 + 86
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-8185
SELECT - COUNT( * ) * COUNT( DISTINCT + - 46 )
----
-1

skipif mysql # not compatible
query I rowsort label-8185
SELECT - COUNT ( * ) * COUNT ( DISTINCT + - 46 )
----
-1

query I rowsort
SELECT ALL + 93 + 53
----
146

query I rowsort
SELECT + 17 * + - 57 col0
----
-969

onlyif mysql # aggregate syntax: 
query II rowsort label-8188
SELECT + 75 + 77 + COUNT( + - ( + - 6 ) ) * + + 44 * + 81 * - 81 AS col1, 91 AS col1
----
-288532
91

skipif mysql # not compatible
query II rowsort label-8188
SELECT + 75 + 77 + COUNT ( + - ( + - 6 ) ) * + + 44 * + 81 * - 81 AS col1, 91 AS col1
----
-288532
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8189
SELECT DISTINCT COUNT( * ) DIV + + 91 + + - 53 AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-8189
SELECT DISTINCT COUNT ( * ) / + + 91 + + - 53 AS col0
----
-53

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8190
SELECT ALL 8 DIV 2 + - - 8 + - - 92 DIV - 73 AS col2, COUNT( * ) AS col2
----
11
1

skipif mysql # not compatible
query II rowsort label-8190
SELECT ALL 8 / 2 + - - 8 + - - 92 / - 73 AS col2, COUNT ( * ) AS col2
----
11
1

query II rowsort
SELECT - 75 * - + 58 AS col0, + 46 * 35 AS col2
----
4350
1610

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8192
SELECT ALL COALESCE ( - 20, 40 * 53 * - 97 + COUNT( * ) * - 96 + + + CASE + ( 76 ) WHEN - COALESCE ( 19, - 56 + 72 + + COUNT( - 59 ), + 43 ) + + 33 * 60 DIV - 88 THEN NULL WHEN + COUNT( * ) THEN NULL WHEN - 99 THEN 93 * 66 END ) DIV + 32 + + 72
----
72

skipif mysql # not compatible
query I rowsort label-8192
SELECT ALL COALESCE ( - 20, 40 * 53 * - 97 + COUNT ( * ) * - 96 + + + CASE + ( 76 ) WHEN - COALESCE ( 19, - 56 + 72 + + COUNT ( - 59 ), + 43 ) + + 33 * 60 / - 88 THEN NULL WHEN + COUNT ( * ) THEN NULL WHEN - 99 THEN 93 * 66 END ) / + 32 + + 72
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-8193
SELECT + 26 DIV + 60 - 97
----
-97

skipif mysql # not compatible
query I rowsort label-8193
SELECT + 26 / + 60 - 97
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8194
SELECT DISTINCT 76 / 38 + + - 90 * - CASE - CAST( NULL AS SIGNED ) WHEN COUNT( + - 54 ) * + - SUM( - 15 ) THEN NULL WHEN - 66 + - 87 THEN + 94 END AS col0, 68 - 2 AS col1
----
NULL
66

skipif mysql # not compatible
query II rowsort label-8194
SELECT DISTINCT 76 / 38 + + - 90 * - CASE - CAST ( NULL AS INTEGER ) WHEN COUNT ( + - 54 ) * + - SUM ( - 15 ) THEN NULL WHEN - 66 + - 87 THEN + 94 END AS col0, 68 - 2 AS col1
----
NULL
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8195
SELECT ALL + 30 * 76 AS col2, - 69 + - CAST( NULL AS SIGNED ) / + + 88 + + ( + COUNT( * ) ) AS col2
----
2280
NULL

skipif mysql # not compatible
query II rowsort label-8195
SELECT ALL + 30 * 76 AS col2, - 69 + - CAST ( NULL AS INTEGER ) / + + 88 + + ( + COUNT ( * ) ) AS col2
----
2280
NULL

query I rowsort
SELECT - ( ( + 63 ) ) * + - 15
----
945

onlyif mysql # aggregate syntax: 
query I rowsort label-8197
SELECT ALL 51 * - 27 * + ( COUNT( * ) ) * + COUNT( * ) + - - 5 AS col1
----
-1372

skipif mysql # not compatible
query I rowsort label-8197
SELECT ALL 51 * - 27 * + ( COUNT ( * ) ) * + COUNT ( * ) + - - 5 AS col1
----
-1372

onlyif mysql # aggregate syntax: 
query I rowsort label-8198
SELECT ALL - COUNT( * ) * + 63 + + 53 col0
----
-10

skipif mysql # not compatible
query I rowsort label-8198
SELECT ALL - COUNT ( * ) * + 63 + + 53 col0
----
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8199
SELECT - 88 * COUNT( * ) - - - COUNT( * ) + + 27 DIV 72 AS col1
----
-89

skipif mysql # not compatible
query I rowsort label-8199
SELECT - 88 * COUNT ( * ) - - - COUNT ( * ) + + 27 / 72 AS col1
----
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8200
SELECT CAST( NULL AS SIGNED ) * + 12 + + ( + COUNT( * ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8200
SELECT CAST ( NULL AS INTEGER ) * + 12 + + ( + COUNT ( * ) ) AS col1
----
NULL

query I rowsort
SELECT NULLIF ( + 95, - 79 / ( - ( 73 ) ) ) AS col0
----
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8202
SELECT - COUNT( DISTINCT + 88 ) * - 33 + - - MIN( + 5 ) + COUNT( + 88 ) * - 77 * 45 + - COUNT( * ) * + MAX( - ( - 71 ) ) DIV - 14 + - - 50 - + 16 DIV + 90 * + - 15 * ( 4 ) AS col1, - 36
----
-3372
-36

skipif mysql # not compatible
query II rowsort label-8202
SELECT - COUNT ( DISTINCT + 88 ) * - 33 + - - MIN ( + 5 ) + COUNT ( + 88 ) * - 77 * 45 + - COUNT ( * ) * + MAX ( - ( - 71 ) ) / - 14 + - - 50 - + 16 / + 90 * + - 15 * ( 4 ) AS col1, - 36
----
-3372
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-8203
SELECT ALL + 12 * - COUNT( * ) - + 74 col0
----
-86

skipif mysql # not compatible
query I rowsort label-8203
SELECT ALL + 12 * - COUNT ( * ) - + 74 col0
----
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-8204
SELECT - 73 DIV - 96 col1
----
0

skipif mysql # not compatible
query I rowsort label-8204
SELECT - 73 / - 96 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8205
SELECT ALL + COALESCE ( 58, - SUM( ALL 70 ) + COUNT( * ) )
----
58

skipif mysql # not compatible
query I rowsort label-8205
SELECT ALL + COALESCE ( 58, - SUM ( ALL 70 ) + COUNT ( * ) )
----
58

query I rowsort
SELECT ALL - 35 * + 83 - - 19 * ( - 14 ) * - 98 + - 49 * + + 27 - + 30 AS col0
----
21810

onlyif mysql # aggregate syntax: 
query II rowsort label-8207
SELECT + + 6 * - 31 AS col2, SUM( ALL 73 )
----
-186
73

skipif mysql # not compatible
query II rowsort label-8207
SELECT + + 6 * - 31 AS col2, SUM ( ALL 73 )
----
-186
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8208
SELECT ALL + 36 * - CAST( NULL AS SIGNED ) * 4 * - 26 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8208
SELECT ALL + 36 * - CAST ( NULL AS INTEGER ) * 4 * - 26 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8209
SELECT MIN( DISTINCT + - 98 ) AS col2, - 56 - - 41
----
-98
-15

skipif mysql # not compatible
query II rowsort label-8209
SELECT MIN ( DISTINCT + - 98 ) AS col2, - 56 - - 41
----
-98
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-8210
SELECT + - MIN( ALL + + 40 ) + + - 97 + + 48 + + 13 + + MIN( - 38 ) AS col0
----
-114

skipif mysql # not compatible
query I rowsort label-8210
SELECT + - MIN ( ALL + + 40 ) + + - 97 + + 48 + + 13 + + MIN ( - 38 ) AS col0
----
-114

onlyif mysql # aggregate syntax: 
query I rowsort label-8211
SELECT + SUM( - 5 ) * + 95
----
-475

skipif mysql # not compatible
query I rowsort label-8211
SELECT + SUM ( - 5 ) * + 95
----
-475

query I rowsort
SELECT ALL 74 + + + NULLIF ( + 25, - - 19 ) AS col1
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8213
SELECT - NULLIF ( - - 8, CAST( NULL AS SIGNED ) ), - 44 AS col0
----
-8
-44

skipif mysql # not compatible
query II rowsort label-8213
SELECT - NULLIF ( - - 8, CAST ( NULL AS INTEGER ) ), - 44 AS col0
----
-8
-44

query I rowsort
SELECT DISTINCT - 18 + - - 33 AS col2
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-8215
SELECT ALL + - 62 DIV + 13 col1
----
-4

skipif mysql # not compatible
query I rowsort label-8215
SELECT ALL + - 62 / + 13 col1
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8216
SELECT + COUNT( * ) + + CASE 19 WHEN + - 86 DIV - 7 THEN - 9 + - 79 DIV - 7 * - 39 + - 20 * + - 62 WHEN + COALESCE ( ( - ( - 33 ) ), 79, + 14 ) THEN - 89 * - + ( - - CAST( NULL AS SIGNED ) ) + - - 35 DIV - - 32 * + COUNT( - 28 ) ELSE 68 * - 62 END
----
-4215

skipif mysql # not compatible
query I rowsort label-8216
SELECT + COUNT ( * ) + + CASE 19 WHEN + - 86 / - 7 THEN - 9 + - 79 / - 7 * - 39 + - 20 * + - 62 WHEN + COALESCE ( ( - ( - 33 ) ), 79, + 14 ) THEN - 89 * - + ( - - CAST ( NULL AS INTEGER ) ) + - - 35 / - - 32 * + COUNT ( - 28 ) ELSE 68 * - 62 END
----
-4215

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8217
SELECT + CAST( + + 93 AS SIGNED ) - 15 + + + 23
----
101

skipif mysql # not compatible
query I rowsort label-8217
SELECT + CAST ( + + 93 AS INTEGER ) - 15 + + + 23
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-8218
SELECT + SUM( + 50 ) + + 56 AS col2
----
106

skipif mysql # not compatible
query I rowsort label-8218
SELECT + SUM ( + 50 ) + + 56 AS col2
----
106

query I rowsort
SELECT ALL 5 + + - 71 + - ( 29 )
----
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8220
SELECT 74, - 99 * - + NULLIF ( - - CASE 78 WHEN - 32 * - + 36 + - COALESCE ( + MIN( - 1 ), - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) * - - ( - + 74 ) * + - 55 + 33 - 26 ) + + - CAST( NULL AS SIGNED ) / + 53 THEN + + 68 WHEN + 27 THEN NULL END, - 63 ) * - 4 * + CASE ( - 22 ) * - 77 WHEN 41 + 42 * + 70 THEN 54 / + 54 ELSE + 50 END + - 47 AS col0
----
74
NULL

skipif mysql # not compatible
query II rowsort label-8220
SELECT 74, - 99 * - + NULLIF ( - - CASE 78 WHEN - 32 * - + 36 + - COALESCE ( + MIN ( - 1 ), - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) * - - ( - + 74 ) * + - 55 + 33 - 26 ) + + - CAST ( NULL AS INTEGER ) / + 53 THEN + + 68 WHEN + 27 THEN NULL END, - 63 ) * - 4 * + CASE ( - 22 ) * - 77 WHEN 41 + 42 * + 70 THEN 54 / + 54 ELSE + 50 END + - 47 AS col0
----
74
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8221
SELECT - 75 DIV - + COUNT( * ) col1
----
75

skipif mysql # not compatible
query I rowsort label-8221
SELECT - 75 / - + COUNT ( * ) col1
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8222
SELECT ALL + MIN( DISTINCT + + ( 74 ) ) + - 96 + - 39 AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-8222
SELECT ALL + MIN ( DISTINCT + + ( 74 ) ) + - 96 + - 39 AS col2
----
-61

query I rowsort
SELECT ALL 69 + 73 + - 85 * 38 AS col0
----
-3088

query I rowsort
SELECT ALL 4 * - + 83 * + + 65 AS col1
----
-21580

query I rowsort
SELECT DISTINCT 63 * 88 col2
----
5544

onlyif mysql # DIV for integer division: 
query I rowsort label-8226
SELECT ALL + 26 - 69 DIV - 86 AS col1
----
26

skipif mysql # not compatible
query I rowsort label-8226
SELECT ALL + 26 - 69 / - 86 AS col1
----
26

onlyif mysql # DIV for integer division: 
query II rowsort label-8227
SELECT ALL - 51 col1, 4 DIV + + 32
----
-51
0

skipif mysql # not compatible
query II rowsort label-8227
SELECT ALL - 51 col1, 4 / + + 32
----
-51
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8228
SELECT ALL + ( + SUM( + + 77 ) ) - 29
----
48

skipif mysql # not compatible
query I rowsort label-8228
SELECT ALL + ( + SUM ( + + 77 ) ) - 29
----
48

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8229
SELECT CAST( NULL AS DECIMAL ) * + 59 * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8229
SELECT CAST ( NULL AS REAL ) * + 59 * + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8230
SELECT 99 DIV + 10 + - 76 AS col1, + MAX( - + 69 ) * - COUNT( + + 60 ) + - 89 DIV - 12 AS col2
----
-67
76

skipif mysql # not compatible
query II rowsort label-8230
SELECT 99 / + 10 + - 76 AS col1, + MAX ( - + 69 ) * - COUNT ( + + 60 ) + - 89 / - 12 AS col2
----
-67
76

onlyif mysql # aggregate syntax: 
query I rowsort label-8231
SELECT ALL - MAX( - 7 ) AS col1
----
7

skipif mysql # not compatible
query I rowsort label-8231
SELECT ALL - MAX ( - 7 ) AS col1
----
7

query I rowsort
SELECT 76 * - - 7
----
532

query II rowsort
SELECT + - 20 AS col1, NULLIF ( - NULLIF ( - + 17, + 25 ), + 68 ) - - - 64 AS col1
----
-20
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8234
SELECT COUNT( * ) DIV 62 - + - 87 + + 61 AS col2
----
148

skipif mysql # not compatible
query I rowsort label-8234
SELECT COUNT ( * ) / 62 - + - 87 + + 61 AS col2
----
148

query I rowsort
SELECT ALL + - 85 + + - COALESCE ( 77, + - 92 ) AS col0
----
-162

onlyif mysql # aggregate syntax: 
query I rowsort label-8236
SELECT + 41 + SUM( + 55 )
----
96

skipif mysql # not compatible
query I rowsort label-8236
SELECT + 41 + SUM ( + 55 )
----
96

query I rowsort
SELECT DISTINCT 80 + 49 + + - 8 * + ( - 61 )
----
617

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8238
SELECT ALL - CAST( - - 82 AS SIGNED ) * + + 53
----
-4346

skipif mysql # not compatible
query I rowsort label-8238
SELECT ALL - CAST ( - - 82 AS INTEGER ) * + + 53
----
-4346

onlyif mysql # aggregate syntax: 
query I rowsort label-8239
SELECT DISTINCT + COUNT( * ) + + 40
----
41

skipif mysql # not compatible
query I rowsort label-8239
SELECT DISTINCT + COUNT ( * ) + + 40
----
41

query I rowsort
SELECT 25 + 11 AS col0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-8241
SELECT - - MAX( ALL + 9 ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-8241
SELECT - - MAX ( ALL + 9 ) AS col1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8242
SELECT + 91 + + + ( + 70 ), CASE - 28 WHEN + 70 THEN NULL WHEN - 14 + CAST( NULL AS SIGNED ) * - 49 * - + 81 THEN + 16 ELSE NULL END col2
----
161
NULL

skipif mysql # not compatible
query II rowsort label-8242
SELECT + 91 + + + ( + 70 ), CASE - 28 WHEN + 70 THEN NULL WHEN - 14 + CAST ( NULL AS INTEGER ) * - 49 * - + 81 THEN + 16 ELSE NULL END col2
----
161
NULL

query I rowsort
SELECT 14 - - 93 AS col1
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-8244
SELECT DISTINCT COUNT( * ) * 73 * COUNT( * ) AS col0
----
73

skipif mysql # not compatible
query I rowsort label-8244
SELECT DISTINCT COUNT ( * ) * 73 * COUNT ( * ) AS col0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-8245
SELECT 87 * + CASE + COUNT( * ) WHEN - 34 / + + 96 THEN + + 96 + - 31 * 14 + - 5 WHEN COUNT( * ) * + 34 THEN NULL ELSE 2 END * - 2 + + 3
----
-345

skipif mysql # not compatible
query I rowsort label-8245
SELECT 87 * + CASE + COUNT ( * ) WHEN - 34 / + + 96 THEN + + 96 + - 31 * 14 + - 5 WHEN COUNT ( * ) * + 34 THEN NULL ELSE 2 END * - 2 + + 3
----
-345

onlyif mysql # aggregate syntax: 
query I rowsort label-8246
SELECT DISTINCT - 57 - 83 * COUNT( - + 53 ) * 72 + 73 * 13
----
-5084

skipif mysql # not compatible
query I rowsort label-8246
SELECT DISTINCT - 57 - 83 * COUNT ( - + 53 ) * 72 + 73 * 13
----
-5084

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8247
SELECT AVG ( + ( - CAST( NULL AS DECIMAL ) ) ) - + - 85 col1, - 23 + - 13 - + 24 * + 26 + - 75 AS col2
----
NULL
-735

skipif mysql # not compatible
query II rowsort label-8247
SELECT AVG ( + ( - CAST ( NULL AS REAL ) ) ) - + - 85 col1, - 23 + - 13 - + 24 * + 26 + - 75 AS col2
----
NULL
-735

query I rowsort
SELECT 25 * - CASE 61 WHEN + - 18 THEN NULL WHEN 55 THEN 56 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8249
SELECT MAX( 1 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8249
SELECT MAX ( 1 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8250
SELECT 15 * + COUNT( * ) AS col2
----
15

skipif mysql # not compatible
query I rowsort label-8250
SELECT 15 * + COUNT ( * ) AS col2
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8251
SELECT ALL COUNT( * ) * + - 15
----
-15

skipif mysql # not compatible
query I rowsort label-8251
SELECT ALL COUNT ( * ) * + - 15
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8252
SELECT COUNT( * ) - + - 40 + + - MAX( DISTINCT - 6 ) + - 44 * 85 DIV - 26 - 90 DIV + 63
----
189

skipif mysql # not compatible
query I rowsort label-8252
SELECT COUNT ( * ) - + - 40 + + - MAX ( DISTINCT - 6 ) + - 44 * 85 / - 26 - 90 / + 63
----
189

onlyif mysql # aggregate syntax: 
query II rowsort label-8253
SELECT ALL 56 * + COUNT( * ) AS col1, + 1 * + 67
----
56
67

skipif mysql # not compatible
query II rowsort label-8253
SELECT ALL 56 * + COUNT ( * ) AS col1, + 1 * + 67
----
56
67

onlyif mysql # aggregate syntax: 
query II rowsort label-8254
SELECT ALL COUNT( * ) * - - COUNT( * ), - 48 + + - 11 AS col0
----
1
-59

skipif mysql # not compatible
query II rowsort label-8254
SELECT ALL COUNT ( * ) * - - COUNT ( * ), - 48 + + - 11 AS col0
----
1
-59

query I rowsort
SELECT - ( - 72 ) + - 19 * + 55 col1
----
-973

query I rowsort
SELECT ALL - + ( - 89 ) AS col2
----
89

query I rowsort
SELECT + 76 * + 10
----
760

query I rowsort
SELECT + CASE + - 76 WHEN ( - 16 ) + + + 53 * + 50 THEN NULL ELSE + 97 + + 46 END
----
143

onlyif mysql # DIV for integer division: 
query I rowsort label-8259
SELECT DISTINCT + + 33 + + 88 + - - 21 DIV - 55 AS col1
----
121

skipif mysql # not compatible
query I rowsort label-8259
SELECT DISTINCT + + 33 + + 88 + - - 21 / - 55 AS col1
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-8260
SELECT ALL + 84 + - - 64 + - + SUM( ALL 32 ) + + 53 + 62 * + - 22
----
-1195

skipif mysql # not compatible
query I rowsort label-8260
SELECT ALL + 84 + - - 64 + - + SUM ( ALL 32 ) + + 53 + 62 * + - 22
----
-1195

onlyif mysql # aggregate syntax: 
query I rowsort label-8261
SELECT ALL - COALESCE ( 66, - COUNT( * ) )
----
-66

skipif mysql # not compatible
query I rowsort label-8261
SELECT ALL - COALESCE ( 66, - COUNT ( * ) )
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8262
SELECT CAST( NULL AS SIGNED ) + - 31 - - 26 * + NULLIF ( + - CASE + + COUNT( * ) WHEN - - 94 THEN + 69 WHEN 22 * 78 THEN NULL ELSE + ( 56 ) * - 15 END, - 13 + + CASE COUNT( * ) WHEN - - 9 THEN - 75 * - 61 * 73 * + + 77 + + COUNT( * ) END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8262
SELECT CAST ( NULL AS INTEGER ) + - 31 - - 26 * + NULLIF ( + - CASE + + COUNT ( * ) WHEN - - 94 THEN + 69 WHEN 22 * 78 THEN NULL ELSE + ( 56 ) * - 15 END, - 13 + + CASE COUNT ( * ) WHEN - - 9 THEN - 75 * - 61 * 73 * + + 77 + + COUNT ( * ) END ) AS col0
----
NULL

query I rowsort
SELECT ALL - 93 * - 13
----
1209

query I rowsort
SELECT ALL + - 91 + - - 90 * + 30 col1
----
2609

onlyif mysql # aggregate syntax: 
query I rowsort label-8265
SELECT + + 61 * - ( - COUNT( * ) ) * 47 * 73 + COUNT( * ) + + 32 + + - 63 + 14 * - 22 + 22 * + COALESCE ( + COUNT( * ), - + 58 ) * 32 - - COALESCE ( - 56, - + COUNT( * ) )
----
209601

skipif mysql # not compatible
query I rowsort label-8265
SELECT + + 61 * - ( - COUNT ( * ) ) * 47 * 73 + COUNT ( * ) + + 32 + + - 63 + 14 * - 22 + 22 * + COALESCE ( + COUNT ( * ), - + 58 ) * 32 - - COALESCE ( - 56, - + COUNT ( * ) )
----
209601

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8266
SELECT ALL - COUNT( * ) * - + 36, - NULLIF ( CAST( - 46 AS SIGNED ), + - 14 ) + COUNT( + + 41 ) AS col2
----
36
47

skipif mysql # not compatible
query II rowsort label-8266
SELECT ALL - COUNT ( * ) * - + 36, - NULLIF ( CAST ( - 46 AS INTEGER ), + - 14 ) + COUNT ( + + 41 ) AS col2
----
36
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8267
SELECT + ( - ( CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8267
SELECT + ( - ( CAST ( NULL AS INTEGER ) ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8268
SELECT + MAX( DISTINCT + 38 ) DIV - 62 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8268
SELECT + MAX ( DISTINCT + 38 ) / - 62 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8269
SELECT ALL + COUNT( * ) + - - 90 + - + 77 * + + 74 + + 41 DIV - ( 67 ), + 16 DIV + 11 AS col0
----
-5607
1

skipif mysql # not compatible
query II rowsort label-8269
SELECT ALL + COUNT ( * ) + - - 90 + - + 77 * + + 74 + + 41 / - ( 67 ), + 16 / + 11 AS col0
----
-5607
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8270
SELECT - CASE + 41 WHEN 21 * + 2 - - 21 - - - CASE 95 WHEN + 18 THEN - + 32 + + 84 - - 1 - + 44 ELSE + 79 END THEN NULL ELSE + + ( - + COUNT( * ) ) DIV SUM( - COALESCE ( + 64, - + 92 ) ) DIV 26 + 30 * 11 END + + COUNT( * )
----
-329

skipif mysql # not compatible
query I rowsort label-8270
SELECT - CASE + 41 WHEN 21 * + 2 - - 21 - - - CASE 95 WHEN + 18 THEN - + 32 + + 84 - - 1 - + 44 ELSE + 79 END THEN NULL ELSE + + ( - + COUNT ( * ) ) / SUM ( - COALESCE ( + 64, - + 92 ) ) / 26 + 30 * 11 END + + COUNT ( * )
----
-329

onlyif mysql # aggregate syntax: 
query I rowsort label-8271
SELECT DISTINCT MAX( ALL 89 )
----
89

skipif mysql # not compatible
query I rowsort label-8271
SELECT DISTINCT MAX ( ALL 89 )
----
89

onlyif mysql # DIV for integer division: 
query I rowsort label-8272
SELECT - 99 DIV 10 AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-8272
SELECT - 99 / 10 AS col1
----
-9

query I rowsort
SELECT - 16 * CASE + 71 WHEN 71 + 85 + 23 THEN NULL ELSE - - 99 END
----
-1584

onlyif mysql # aggregate syntax: 
query I rowsort label-8274
SELECT ALL - COUNT( * ) - - + ( 59 ) AS col0
----
58

skipif mysql # not compatible
query I rowsort label-8274
SELECT ALL - COUNT ( * ) - - + ( 59 ) AS col0
----
58

query I rowsort
SELECT - 87 * 90
----
-7830

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8276
SELECT - 4 + CAST( NULL AS SIGNED ) * + MIN( 92 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8276
SELECT - 4 + CAST ( NULL AS INTEGER ) * + MIN ( 92 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8277
SELECT + 10 - - + 44 + - NULLIF ( 96, - 55 ) * + ( - 55 ) + + ( + NULLIF ( - 44, 62 ) ) - + MIN( ALL - 86 ) * + 62
----
10622

skipif mysql # not compatible
query I rowsort label-8277
SELECT + 10 - - + 44 + - NULLIF ( 96, - 55 ) * + ( - 55 ) + + ( + NULLIF ( - 44, 62 ) ) - + MIN ( ALL - 86 ) * + 62
----
10622

query I rowsort
SELECT - ( 3 ) + - - ( - - 93 ) AS col1
----
90

query I rowsort
SELECT + 45 * - 94
----
-4230

onlyif mysql # aggregate syntax: 
query I rowsort label-8280
SELECT - 74 + + + 20 + - + COUNT( ALL - 49 ) * + CASE 60 WHEN + 34 / - - 19 * + 86 * + + ( 85 ) + - + 80 THEN 90 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8280
SELECT - 74 + + + 20 + - + COUNT ( ALL - 49 ) * + CASE 60 WHEN + 34 / - - 19 * + 86 * + + ( 85 ) + - + 80 THEN 90 END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8281
SELECT DISTINCT - COUNT( * ) * + 81 AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-8281
SELECT DISTINCT - COUNT ( * ) * + 81 AS col1
----
-81

query I rowsort
SELECT + 50 + 36
----
86

query I rowsort
SELECT ALL - 9 * + 61 AS col1
----
-549

query II rowsort
SELECT DISTINCT + 79 AS col2, - 21
----
79
-21

query I rowsort
SELECT + 79 * - 46 col2
----
-3634

query I rowsort
SELECT - 90 * 52 * + 55 AS col1
----
-257400

query I rowsort
SELECT + 27 * - 94 + 17 + 67 AS col2
----
-2454

query I rowsort
SELECT COALESCE ( + 20, - - 61 - - ( + ( 49 ) ) ) AS col0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-8289
SELECT + - CASE - 25 WHEN + 44 * - + 1 - + 98 + 32 THEN + 28 WHEN 44 THEN 34 END / - MIN( - - 32 ) * - 57 * - 89 + - AVG ( DISTINCT - 19 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8289
SELECT + - CASE - 25 WHEN + 44 * - + 1 - + 98 + 32 THEN + 28 WHEN 44 THEN 34 END / - MIN ( - - 32 ) * - 57 * - 89 + - AVG ( DISTINCT - 19 )
----
NULL

query I rowsort
SELECT + - 94 + + 12 AS col0
----
-82

query I rowsort
SELECT ALL 31 * + + 69 + + 82 AS col1
----
2221

query II rowsort
SELECT 6, 6 AS col2
----
6
6

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8293
SELECT ALL 57 / - 85 + + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8293
SELECT ALL 57 / - 85 + + CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT ALL 40 * - 53 + + + 54 col2
----
-2066

query I rowsort
SELECT DISTINCT + + 36 * - - 80 * + 90 + + 6 + - 3 AS col2
----
259203

onlyif mysql # aggregate syntax: 
query I rowsort label-8296
SELECT ALL + MIN( NULLIF ( - 61, + NULLIF ( 91, + + 25 + + 3 * 11 ) + - 57 ) ) AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-8296
SELECT ALL + MIN ( NULLIF ( - 61, + NULLIF ( 91, + + 25 + + 3 * 11 ) + - 57 ) ) AS col2
----
-61

onlyif mysql # aggregate syntax: 
query II rowsort label-8297
SELECT + COUNT( * ) * + + 45 - + 73, 95 / + 63 * + - 90 / + COALESCE ( + 58, + - 5 * - 4 - 90 / - + 48 ) / - - CASE + 33 WHEN - ( + 45 ) THEN + + 16 + - - 75 END + + 8 + - + 94 AS col0
----
-28
NULL

skipif mysql # not compatible
query II rowsort label-8297
SELECT + COUNT ( * ) * + + 45 - + 73, 95 / + 63 * + - 90 / + COALESCE ( + 58, + - 5 * - 4 - 90 / - + 48 ) / - - CASE + 33 WHEN - ( + 45 ) THEN + + 16 + - - 75 END + + 8 + - + 94 AS col0
----
-28
NULL

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-8298
SELECT ALL + 35 * + + CAST( NULL AS DECIMAL ) * - 14 + + 62 + 11 + - - 96 AS col1, - 64 + - ( 99 ) DIV 92
----
NULL
-65

skipif mysql # not compatible
query II rowsort label-8298
SELECT ALL + 35 * + + CAST ( NULL AS REAL ) * - 14 + + 62 + 11 + - - 96 AS col1, - 64 + - ( 99 ) / 92
----
NULL
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8299
SELECT + 67 - + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8299
SELECT + 67 - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8300
SELECT - - MIN( + 21 ) * - 76
----
-1596

skipif mysql # not compatible
query I rowsort label-8300
SELECT - - MIN ( + 21 ) * - 76
----
-1596

onlyif mysql # aggregate syntax: 
query I rowsort label-8301
SELECT + - NULLIF ( + MIN( DISTINCT - 21 ), + 84 )
----
21

skipif mysql # not compatible
query I rowsort label-8301
SELECT + - NULLIF ( + MIN ( DISTINCT - 21 ), + 84 )
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-8302
SELECT + NULLIF ( - + 41, COUNT( * ) / - + 68 * 88 / - 58 ) * - 13 * + 98 + SUM( 64 ) + - 23 AS col0
----
52275

skipif mysql # not compatible
query I rowsort label-8302
SELECT + NULLIF ( - + 41, COUNT ( * ) / - + 68 * 88 / - 58 ) * - 13 * + 98 + SUM ( 64 ) + - 23 AS col0
----
52275

query II rowsort
SELECT 79 col0, + 44 col1
----
79
44

onlyif mysql # aggregate syntax: 
query I rowsort label-8304
SELECT ALL 63 * + SUM( DISTINCT + - 32 ) + + 13 - + + 82 + - 14 AS col0
----
-2099

skipif mysql # not compatible
query I rowsort label-8304
SELECT ALL 63 * + SUM ( DISTINCT + - 32 ) + + 13 - + + 82 + - 14 AS col0
----
-2099

query I rowsort
SELECT + 30 - - + 56
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-8306
SELECT - SUM( + - ( - - 55 ) ) AS col0
----
55

skipif mysql # not compatible
query I rowsort label-8306
SELECT - SUM ( + - ( - - 55 ) ) AS col0
----
55

query II rowsort
SELECT ALL ( - 29 ), 81 + + 78 * - + 64 AS col1
----
-29
-4911

query I rowsort
SELECT ALL 81 * + 30 AS col0
----
2430

query I rowsort
SELECT - 93 * - 82 * + 20 AS col0
----
152520

query II rowsort
SELECT + 63 + 75, - 9 AS col2
----
138
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8311
SELECT ALL COALESCE ( 6, + - 34, 57 + - - 38 * + MAX( 56 ) + - 51 + + - 17 + - - 88 )
----
6

skipif mysql # not compatible
query I rowsort label-8311
SELECT ALL COALESCE ( 6, + - 34, 57 + - - 38 * + MAX ( 56 ) + - 51 + + - 17 + - - 88 )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8312
SELECT - 45 - - ( + COUNT( * ) ) AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-8312
SELECT - 45 - - ( + COUNT ( * ) ) AS col2
----
-44

query I rowsort
SELECT - 63 * + 75 AS col1
----
-4725

query I rowsort
SELECT ALL ( 11 ) AS col0
----
11

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8315
SELECT ALL + 41 / + CAST( NULL AS DECIMAL ) * + - 65 * 50 AS col2, SUM( ALL - 61 ) AS col0
----
NULL
-61

skipif mysql # not compatible
query II rowsort label-8315
SELECT ALL + 41 / + CAST ( NULL AS REAL ) * + - 65 * 50 AS col2, SUM ( ALL - 61 ) AS col0
----
NULL
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-8316
SELECT ALL CASE COUNT( * ) WHEN 40 THEN - + CASE + - 30 WHEN - 32 / + 61 THEN 75 END WHEN + - ( + + COUNT( DISTINCT + 83 ) ) / + - 34 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8316
SELECT ALL CASE COUNT ( * ) WHEN 40 THEN - + CASE + - 30 WHEN - 32 / + 61 THEN 75 END WHEN + - ( + + COUNT ( DISTINCT + 83 ) ) / + - 34 THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8317
SELECT ALL 32, + COUNT( DISTINCT COALESCE ( - 12, - + 75 ) ) DIV MAX( ALL 76 ) AS col2
----
32
0

skipif mysql # not compatible
query II rowsort label-8317
SELECT ALL 32, + COUNT ( DISTINCT COALESCE ( - 12, - + 75 ) ) / MAX ( ALL 76 ) AS col2
----
32
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8318
SELECT - 3 * + COUNT( * ) AS col2, NULLIF ( 52, - 79 )
----
-3
52

skipif mysql # not compatible
query II rowsort label-8318
SELECT - 3 * + COUNT ( * ) AS col2, NULLIF ( 52, - 79 )
----
-3
52

query I rowsort
SELECT DISTINCT ( 17 ) col2
----
17

query I rowsort
SELECT - 91 + - 1
----
-92

onlyif mysql # aggregate syntax: 
query II rowsort label-8321
SELECT 51, - COUNT( DISTINCT + + 65 ) - 18 + - + 56 + - 49 AS col1
----
51
-124

skipif mysql # not compatible
query II rowsort label-8321
SELECT 51, - COUNT ( DISTINCT + + 65 ) - 18 + - + 56 + - 49 AS col1
----
51
-124

query I rowsort
SELECT - 67 * 27 * - - 35
----
-63315

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8323
SELECT + CAST( CAST( - 36 AS SIGNED ) AS SIGNED ) AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-8323
SELECT + CAST ( CAST ( - 36 AS INTEGER ) AS INTEGER ) AS col0
----
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-8324
SELECT ALL 91 DIV 48 + - 0 + + + 10 + + 13 * 3
----
50

skipif mysql # not compatible
query I rowsort label-8324
SELECT ALL 91 / 48 + - 0 + + + 10 + + 13 * 3
----
50

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8325
SELECT COUNT( * ) / + + COUNT( * ) - + 58 + COALESCE ( - NULLIF ( - 99, - 70 + + - 51 ), 4, - 58 * COUNT( * ) * - - 6 * + 93 * - 20, - 89 ) + - 80 + - MAX( DISTINCT + CAST( NULL AS DECIMAL ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8325
SELECT COUNT ( * ) / + + COUNT ( * ) - + 58 + COALESCE ( - NULLIF ( - 99, - 70 + + - 51 ), 4, - 58 * COUNT ( * ) * - - 6 * + 93 * - 20, - 89 ) + - 80 + - MAX ( DISTINCT + CAST ( NULL AS REAL ) ) AS col1
----
NULL

query I rowsort
SELECT - 85 - + - 13 * 4 AS col1
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8327
SELECT DISTINCT + - 59 DIV + SUM( ALL - + 99 ) * - + MIN( - CAST( + + 26 AS SIGNED ) ) + 76 + + COUNT( * ) + - + 13 AS col2
----
64

skipif mysql # not compatible
query I rowsort label-8327
SELECT DISTINCT + - 59 / + SUM ( ALL - + 99 ) * - + MIN ( - CAST ( + + 26 AS INTEGER ) ) + 76 + + COUNT ( * ) + - + 13 AS col2
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8328
SELECT + + 71 * + 50 + - - CAST( - SUM( ALL - - 25 ) AS SIGNED )
----
3525

skipif mysql # not compatible
query I rowsort label-8328
SELECT + + 71 * + 50 + - - CAST ( - SUM ( ALL - - 25 ) AS INTEGER )
----
3525

query II rowsort
SELECT ALL + 71 col0, 8
----
71
8

query I rowsort
SELECT - - 2 + - 0 AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8331
SELECT ALL + NULLIF ( + COUNT( + - 55 ), - 33 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-8331
SELECT ALL + NULLIF ( + COUNT ( + - 55 ), - 33 ) col0
----
1

query I rowsort
SELECT + + 9 * - 51 + 96 + - 36
----
-399

query II rowsort
SELECT + 48 - + - 63 AS col2, 35 AS col2
----
111
35

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-8334
SELECT DISTINCT + 83 * + ( + 66 ) + - 67 + + - CASE + 44 WHEN + 77 * + - 55 THEN 11 DIV 39 WHEN MAX( + 14 ) - + ( - CAST( NULL AS DECIMAL ) ) THEN 93 ELSE - 51 - + MAX( - 9 ) END + + 71 DIV + + COUNT( * ) AS col0
----
5524

skipif mysql # not compatible
query I rowsort label-8334
SELECT DISTINCT + 83 * + ( + 66 ) + - 67 + + - CASE + 44 WHEN + 77 * + - 55 THEN 11 / 39 WHEN MAX ( + 14 ) - + ( - CAST ( NULL AS REAL ) ) THEN 93 ELSE - 51 - + MAX ( - 9 ) END + + 71 / + + COUNT ( * ) AS col0
----
5524

query II rowsort
SELECT 99 + - 86, 85 AS col2
----
13
85

query I rowsort
SELECT DISTINCT 40 * 80
----
3200

onlyif mysql # aggregate syntax: 
query I rowsort label-8337
SELECT 35 * CASE 24 WHEN 58 + + + COUNT( * ) * - 84 * + 73 THEN - 37 * + 9 * - 24 + + COUNT( * ) + + COUNT( * ) * - 29 * + + 60 END / 94 + + - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8337
SELECT 35 * CASE 24 WHEN 58 + + + COUNT ( * ) * - 84 * + 73 THEN - 37 * + 9 * - 24 + + COUNT ( * ) + + COUNT ( * ) * - 29 * + + 60 END / 94 + + - COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8338
SELECT COUNT( ALL 72 ) + - + 42 + + 61 + - - 19
----
39

skipif mysql # not compatible
query I rowsort label-8338
SELECT COUNT ( ALL 72 ) + - + 42 + + 61 + - - 19
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-8339
SELECT 35 + + 90 + - 43 * - COALESCE ( + + 92, + - 98, + + 87 ) * + NULLIF ( COUNT( * ), + 5 / 43 + + 99 + - + 25 + - 29 + 18 + - ( 30 ) + + 6 + + 93 * - 7 + - COUNT( * ) * 39 * - + 26 + + 44 ) AS col2
----
4081

skipif mysql # not compatible
query I rowsort label-8339
SELECT 35 + + 90 + - 43 * - COALESCE ( + + 92, + - 98, + + 87 ) * + NULLIF ( COUNT ( * ), + 5 / 43 + + 99 + - + 25 + - 29 + 18 + - ( 30 ) + + 6 + + 93 * - 7 + - COUNT ( * ) * 39 * - + 26 + + 44 ) AS col2
----
4081

query II rowsort
SELECT DISTINCT 98 + 52 AS col1, 13
----
150
13

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8341
SELECT 31 + - CAST( NULL AS SIGNED ) AS col0, 11 AS col0
----
NULL
11

skipif mysql # not compatible
query II rowsort label-8341
SELECT 31 + - CAST ( NULL AS INTEGER ) AS col0, 11 AS col0
----
NULL
11

query I rowsort
SELECT ALL 33 + + 98 col0
----
131

query I rowsort
SELECT 41 * 99 * + + 45
----
182655

query I rowsort
SELECT ALL 85 + + 3
----
88

query I rowsort
SELECT 57 - 4 * + + 84 col1
----
-279

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8346
SELECT CAST( NULL AS SIGNED ) / + 18 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8346
SELECT CAST ( NULL AS INTEGER ) / + 18 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8347
SELECT 66 + - 44 * COUNT( * )
----
22

skipif mysql # not compatible
query I rowsort label-8347
SELECT 66 + - 44 * COUNT ( * )
----
22

query I rowsort
SELECT 76 + - 33
----
43

query I rowsort
SELECT 47 + + 93
----
140

query II rowsort
SELECT DISTINCT + ( - 9 ) AS col0, - 17
----
-9
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-8351
SELECT 96 * - SUM( DISTINCT + - 89 )
----
8544

skipif mysql # not compatible
query I rowsort label-8351
SELECT 96 * - SUM ( DISTINCT + - 89 )
----
8544

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8352
SELECT DISTINCT - - CAST( NULL AS SIGNED ) / - 97 + - 16 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8352
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) / - 97 + - 16 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8353
SELECT ALL - - 72 - + - 65 * 51 + + 49 DIV + + 84 + ( + + ( 50 ) ) DIV - 21 AS col1
----
3385

skipif mysql # not compatible
query I rowsort label-8353
SELECT ALL - - 72 - + - 65 * 51 + + 49 / + + 84 + ( + + ( 50 ) ) / - 21 AS col1
----
3385

query I rowsort
SELECT + - NULLIF ( ( + + 66 ), + - 20 * - 12 + 12 ) AS col1
----
-66

query I rowsort
SELECT DISTINCT + + 42 * 12
----
504

query I rowsort
SELECT ALL + COALESCE ( + 60, 45 * 77 ) * + 90 * - 16 + 75 AS col2
----
-86325

onlyif mysql # aggregate syntax: 
query I rowsort label-8357
SELECT - 96 * 51 * - - COUNT( * ) - ( + 22 )
----
-4918

skipif mysql # not compatible
query I rowsort label-8357
SELECT - 96 * 51 * - - COUNT ( * ) - ( + 22 )
----
-4918

onlyif mysql # aggregate syntax: 
query I rowsort label-8358
SELECT COUNT( + + NULLIF ( + 47, - 95 ) ) * - 66 AS col0
----
-66

skipif mysql # not compatible
query I rowsort label-8358
SELECT COUNT ( + + NULLIF ( + 47, - 95 ) ) * - 66 AS col0
----
-66

query I rowsort
SELECT - 64 * ( + 88 ) * - - 7 + + 55
----
-39369

onlyif mysql # aggregate syntax: 
query I rowsort label-8360
SELECT ALL 45 + + - COUNT( DISTINCT 85 ) * + 84 AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-8360
SELECT ALL 45 + + - COUNT ( DISTINCT 85 ) * + 84 AS col0
----
-39

query I rowsort
SELECT DISTINCT 80 + + 51
----
131

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8362
SELECT 35 - ( + 68 ) DIV - CAST( - - 83 AS SIGNED ) AS col2
----
35

skipif mysql # not compatible
query I rowsort label-8362
SELECT 35 - ( + 68 ) / - CAST ( - - 83 AS INTEGER ) AS col2
----
35

query II rowsort
SELECT ALL 92 + 54 * + 59 AS col1, + ( + + 74 ) AS col1
----
3278
74

query I rowsort
SELECT ALL ( 11 ) * + + 46 * + + 32 AS col2
----
16192

query I rowsort
SELECT 25 + - 64 * - 39
----
2521

query I rowsort
SELECT 60 * + - 85
----
-5100

query II rowsort
SELECT - 31, 8 AS col1
----
-31
8

query II rowsort
SELECT 68 AS col0, 21
----
68
21

query I rowsort
SELECT ALL ( - 44 ) * - ( - 67 ) AS col2
----
-2948

onlyif mysql # aggregate syntax: 
query I rowsort label-8370
SELECT DISTINCT COUNT( * ) + 19 AS col2
----
20

skipif mysql # not compatible
query I rowsort label-8370
SELECT DISTINCT COUNT ( * ) + 19 AS col2
----
20

query II rowsort
SELECT DISTINCT 92 col1, 90 AS col1
----
92
90

query II rowsort
SELECT DISTINCT + 60, - 45 * - 57 * 77 AS col2
----
60
197505

onlyif mysql # aggregate syntax: 
query I rowsort label-8373
SELECT ALL + 9 - - SUM( 73 )
----
82

skipif mysql # not compatible
query I rowsort label-8373
SELECT ALL + 9 - - SUM ( 73 )
----
82

query I rowsort
SELECT 21 + - 59
----
-38

query I rowsort
SELECT - 94 * + 28 AS col0
----
-2632

onlyif mysql # DIV for integer division: 
query I rowsort label-8376
SELECT 11 DIV 85
----
0

skipif mysql # not compatible
query I rowsort label-8376
SELECT 11 / 85
----
0

query I rowsort
SELECT + 47 + + - 89 - + 33 * 81 - - - 70
----
-2785

onlyif mysql # aggregate syntax: 
query I rowsort label-8378
SELECT CASE - 36 WHEN + 98 + COUNT( * ) THEN NULL WHEN COUNT( * ) THEN + 88 + - 97 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8378
SELECT CASE - 36 WHEN + 98 + COUNT ( * ) THEN NULL WHEN COUNT ( * ) THEN + 88 + - 97 END
----
NULL

query II rowsort
SELECT ALL ( - - 56 ) * + + 76 - 95 AS col2, - 92 + - 85
----
4161
-177

query II rowsort
SELECT + - 44 AS col0, 99
----
-44
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8381
SELECT + 60 * - 72 + - + COUNT( * ) col1
----
-4321

skipif mysql # not compatible
query I rowsort label-8381
SELECT + 60 * - 72 + - + COUNT ( * ) col1
----
-4321

query I rowsort
SELECT ALL + 5 * - 30 AS col2
----
-150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8383
SELECT ALL + 80 AS col1, 75 + 15 + COUNT( * ) * CAST( + 74 AS SIGNED ) * + 45
----
80
3420

skipif mysql # not compatible
query II rowsort label-8383
SELECT ALL + 80 AS col1, 75 + 15 + COUNT ( * ) * CAST ( + 74 AS INTEGER ) * + 45
----
80
3420

onlyif mysql # DIV for integer division: 
query I rowsort label-8384
SELECT ALL - + 44 DIV + 62 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8384
SELECT ALL - + 44 / + 62 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8385
SELECT ALL + + 93 * - 95 + - CAST( + - 8 AS SIGNED )
----
-8827

skipif mysql # not compatible
query I rowsort label-8385
SELECT ALL + + 93 * - 95 + - CAST ( + - 8 AS INTEGER )
----
-8827

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8386
SELECT - ( + 3 ) + + + CAST( NULL AS SIGNED ) + 79
----
NULL

skipif mysql # not compatible
query I rowsort label-8386
SELECT - ( + 3 ) + + + CAST ( NULL AS INTEGER ) + 79
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8387
SELECT - 33 - 93 + - CAST( NULL AS SIGNED ) * 87, - 25 DIV - 67 AS col1
----
NULL
0

skipif mysql # not compatible
query II rowsort label-8387
SELECT - 33 - 93 + - CAST ( NULL AS INTEGER ) * 87, - 25 / - 67 AS col1
----
NULL
0

query I rowsort
SELECT - 81 * + 90 * + 23 + - 42
----
-167712

onlyif mysql # aggregate syntax: 
query I rowsort label-8389
SELECT - COUNT( * ) - + - ( + - 14 )
----
-15

skipif mysql # not compatible
query I rowsort label-8389
SELECT - COUNT ( * ) - + - ( + - 14 )
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-8390
SELECT ALL + SUM( DISTINCT + 7 ) * 90 AS col1
----
630

skipif mysql # not compatible
query I rowsort label-8390
SELECT ALL + SUM ( DISTINCT + 7 ) * 90 AS col1
----
630

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8391
SELECT DISTINCT CAST( NULL AS SIGNED ) * + CAST( 70 AS SIGNED ) + + - 49 * - - 98 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8391
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + CAST ( 70 AS INTEGER ) + + - 49 * - - 98 AS col0
----
NULL

query I rowsort
SELECT ALL - 53 * - + 4 + + 11 AS col0
----
223

query I rowsort
SELECT - 27 * 20 AS col1
----
-540

query I rowsort
SELECT - 86 + + 77 + - - 21 * ( - 66 ) + - 80
----
-1475

onlyif mysql # aggregate syntax: 
query I rowsort label-8395
SELECT DISTINCT - SUM( ALL - 47 ) * + NULLIF ( 66, + 53 * 92 + - 21 )
----
3102

skipif mysql # not compatible
query I rowsort label-8395
SELECT DISTINCT - SUM ( ALL - 47 ) * + NULLIF ( 66, + 53 * 92 + - 21 )
----
3102

query I rowsort
SELECT - 74 * + 93
----
-6882

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8397
SELECT DISTINCT - 37 + - COUNT( 95 ) + - 13 + 33 DIV COUNT( * ) * + 56 AS col1
----
1797

skipif mysql # not compatible
query I rowsort label-8397
SELECT DISTINCT - 37 + - COUNT ( 95 ) + - 13 + 33 / COUNT ( * ) * + 56 AS col1
----
1797

onlyif mysql # aggregate syntax: 
query I rowsort label-8398
SELECT - 68 + - 83 - - + COALESCE ( + - SUM( DISTINCT 39 ), 44 ) * + 88 + - - 12 AS col1
----
-3571

skipif mysql # not compatible
query I rowsort label-8398
SELECT - 68 + - 83 - - + COALESCE ( + - SUM ( DISTINCT 39 ), 44 ) * + 88 + - - 12 AS col1
----
-3571

onlyif mysql # aggregate syntax: 
query I rowsort label-8399
SELECT + 32 + - 28 + COUNT( * ) + ( + 69 )
----
74

skipif mysql # not compatible
query I rowsort label-8399
SELECT + 32 + - 28 + COUNT ( * ) + ( + 69 )
----
74

onlyif mysql # DIV for integer division: 
query I rowsort label-8400
SELECT ALL 38 DIV 54 * 90 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8400
SELECT ALL 38 / 54 * 90 AS col2
----
0

query II rowsort
SELECT ALL COALESCE ( - 1, + + 0 + + - 8, + 28 ) AS col0, + 30
----
-1
30

query I rowsort
SELECT DISTINCT + 92 - - - 86 * + - 37 * 47
----
149646

query I rowsort
SELECT DISTINCT COALESCE ( + 75, 58, 3 ) AS col2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8404
SELECT + NULLIF ( + 31, 75 + + NULLIF ( - COUNT( ALL - - 47 ), 5 + + + 74 ) ) + + MAX( DISTINCT - - 31 ) AS col2
----
62

skipif mysql # not compatible
query I rowsort label-8404
SELECT + NULLIF ( + 31, 75 + + NULLIF ( - COUNT ( ALL - - 47 ), 5 + + + 74 ) ) + + MAX ( DISTINCT - - 31 ) AS col2
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-8405
SELECT ALL + MAX( + 27 ) - 27
----
0

skipif mysql # not compatible
query I rowsort label-8405
SELECT ALL + MAX ( + 27 ) - 27
----
0

query II rowsort
SELECT + 14 + + - 17 AS col0, + 81 AS col0
----
-3
81

query I rowsort
SELECT DISTINCT - 28 * + + 46
----
-1288

query I rowsort
SELECT + + 58 - 44 AS col1
----
14

query I rowsort
SELECT - + 89 + - + 32 + - 95 + + 57 * + 87 * - + 80 * + 18 - + 97 col2
----
-7141273

query I rowsort
SELECT ALL - 78 - - 17 AS col2
----
-61

query I rowsort
SELECT + 40 * + - 98 col1
----
-3920

query I rowsort
SELECT DISTINCT - 76 * - 8 * 17 * + - 63
----
-651168

onlyif mysql # aggregate syntax: 
query I rowsort label-8413
SELECT + - CASE ( + + 74 ) WHEN - - 73 THEN - + 96 - COUNT( * ) * + + 92 END * + 82 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8413
SELECT + - CASE ( + + 74 ) WHEN - - 73 THEN - + 96 - COUNT ( * ) * + + 92 END * + 82 AS col0
----
NULL

query I rowsort
SELECT + 67 + - + 93 AS col2
----
-26

query I rowsort
SELECT + 81 + - + 99
----
-18

query I rowsort
SELECT DISTINCT + ( - + 72 ) AS col0
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8417
SELECT ALL ( - - 18 ) / + + 53 * 20 * CAST( NULL AS SIGNED ) + - 12 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8417
SELECT ALL ( - - 18 ) / + + 53 * 20 * CAST ( NULL AS INTEGER ) + - 12 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8418
SELECT DISTINCT - + COUNT( * ) DIV 33 * 66 DIV 18 + 99 + + + 57 AS col2
----
156

skipif mysql # not compatible
query I rowsort label-8418
SELECT DISTINCT - + COUNT ( * ) / 33 * 66 / 18 + 99 + + + 57 AS col2
----
156

onlyif mysql # DIV for integer division: 
query I rowsort label-8419
SELECT ALL - 53 DIV + - 12 + - 36 AS col1
----
-32

skipif mysql # not compatible
query I rowsort label-8419
SELECT ALL - 53 / + - 12 + - 36 AS col1
----
-32

query I rowsort
SELECT - 56 * - 6 + - 37 AS col1
----
299

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8421
SELECT DISTINCT - 82 * + - 71 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8421
SELECT DISTINCT - 82 * + - 71 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8422
SELECT ALL + 76, + 40 - - ( + - 35 ) DIV + 80 * - 74 AS col0
----
76
40

skipif mysql # not compatible
query II rowsort label-8422
SELECT ALL + 76, + 40 - - ( + - 35 ) / + 80 * - 74 AS col0
----
76
40

query I rowsort
SELECT ALL + 49 * - 67 * - + 69 + + NULLIF ( + 70, + 56 + + - 29 )
----
226597

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8424
SELECT 23 * - + CAST( 37 AS SIGNED ) - - + 88 * + 87 + - - 43 + - + CASE 43 WHEN + 1 THEN - - 44 * - 86 * + - 85 + 50 * - ( - 40 ) END + - - 17 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8424
SELECT 23 * - + CAST ( 37 AS INTEGER ) - - + 88 * + 87 + - - 43 + - + CASE 43 WHEN + 1 THEN - - 44 * - 86 * + - 85 + 50 * - ( - 40 ) END + - - 17 AS col0
----
NULL

query I rowsort
SELECT - 74 + - 66
----
-140

onlyif mysql # DIV for integer division: 
query II rowsort label-8426
SELECT - NULLIF ( - ( - 59 ), - 42 ) DIV + 35 AS col0, + 14 AS col1
----
-1
14

skipif mysql # not compatible
query II rowsort label-8426
SELECT - NULLIF ( - ( - 59 ), - 42 ) / + 35 AS col0, + 14 AS col1
----
-1
14

onlyif mysql # aggregate syntax: 
query II rowsort label-8427
SELECT NULLIF ( - + 68, + + COUNT( * ) ) AS col0, - 81 * + - 26 + 87 AS col1
----
-68
2193

skipif mysql # not compatible
query II rowsort label-8427
SELECT NULLIF ( - + 68, + + COUNT ( * ) ) AS col0, - 81 * + - 26 + 87 AS col1
----
-68
2193

onlyif mysql # aggregate syntax: 
query I rowsort label-8428
SELECT DISTINCT - ( + COUNT( * ) ) * 73
----
-73

skipif mysql # not compatible
query I rowsort label-8428
SELECT DISTINCT - ( + COUNT ( * ) ) * 73
----
-73

query I rowsort
SELECT - 85 * - + 90 col2
----
7650

onlyif mysql # aggregate syntax: 
query I rowsort label-8430
SELECT - MIN( DISTINCT + 17 ) * + - 59 * + - 2 AS col1
----
-2006

skipif mysql # not compatible
query I rowsort label-8430
SELECT - MIN ( DISTINCT + 17 ) * + - 59 * + - 2 AS col1
----
-2006

query II rowsort
SELECT ( - - 64 ) * - 51 AS col0, 97
----
-3264
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8432
SELECT ALL CAST( + + ( + - COUNT( * ) ) AS SIGNED ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-8432
SELECT ALL CAST ( + + ( + - COUNT ( * ) ) AS INTEGER ) col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-8433
SELECT - 52 AS col2, - COUNT( ( - + 94 ) )
----
-52
-1

skipif mysql # not compatible
query II rowsort label-8433
SELECT - 52 AS col2, - COUNT ( ( - + 94 ) )
----
-52
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8434
SELECT DISTINCT - CASE + 48 WHEN + MAX( ALL + - 17 ) THEN NULL ELSE - 97 * - 71 + COUNT( * ) + - ( - 2 ) DIV + 40 * - - COUNT( * ) END AS col0
----
-6888

skipif mysql # not compatible
query I rowsort label-8434
SELECT DISTINCT - CASE + 48 WHEN + MAX ( ALL + - 17 ) THEN NULL ELSE - 97 * - 71 + COUNT ( * ) + - ( - 2 ) / + 40 * - - COUNT ( * ) END AS col0
----
-6888

query I rowsort
SELECT 74 * + NULLIF ( + + 70, - 94 ) AS col0
----
5180

onlyif mysql # DIV for integer division: 
query I rowsort label-8436
SELECT DISTINCT + - 35 DIV - 20 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8436
SELECT DISTINCT + - 35 / - 20 AS col1
----
1

query I rowsort
SELECT ALL + 22 + - 97 AS col0
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8438
SELECT - + ( NULLIF ( - + 75, - ( 89 ) * - CASE - 75 WHEN + - CASE + - 40 WHEN 57 THEN + COUNT( * ) * - - 85 + + - COUNT( - 22 ) WHEN 45 * 45 THEN NULL ELSE NULL END * + - 15 - + COALESCE ( - 35, 33 * - + 89 - COUNT( 82 ) + - 13 + 53, + CAST( NULL AS SIGNED ) + - 56 + 1 ) THEN + AVG ( DISTINCT + - 44 ) + 1 ELSE ( COUNT( * ) ) END - - 66 / - 42 ) ) AS col2
----
75

skipif mysql # not compatible
query I rowsort label-8438
SELECT - + ( NULLIF ( - + 75, - ( 89 ) * - CASE - 75 WHEN + - CASE + - 40 WHEN 57 THEN + COUNT ( * ) * - - 85 + + - COUNT ( - 22 ) WHEN 45 * 45 THEN NULL ELSE NULL END * + - 15 - + COALESCE ( - 35, 33 * - + 89 - COUNT ( 82 ) + - 13 + 53, + CAST ( NULL AS INTEGER ) + - 56 + 1 ) THEN + AVG ( DISTINCT + - 44 ) + 1 ELSE ( COUNT ( * ) ) END - - 66 / - 42 ) ) AS col2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8439
SELECT + 31 + - + COUNT( DISTINCT + 20 ) * - 61
----
92

skipif mysql # not compatible
query I rowsort label-8439
SELECT + 31 + - + COUNT ( DISTINCT + 20 ) * - 61
----
92

query II rowsort
SELECT ALL 48, 2 AS col1
----
48
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8441
SELECT + 45 + - SUM( + 77 ) col1
----
-32

skipif mysql # not compatible
query I rowsort label-8441
SELECT + 45 + - SUM ( + 77 ) col1
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8442
SELECT - ( - + 29 ) DIV - + 37 * + COALESCE ( 55, MAX( ALL - + CAST( - 74 AS SIGNED ) ) * ( + COUNT( ALL + 91 ) ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8442
SELECT - ( - + 29 ) / - + 37 * + COALESCE ( 55, MAX ( ALL - + CAST ( - 74 AS INTEGER ) ) * ( + COUNT ( ALL + 91 ) ) ) AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8443
SELECT + + MIN( DISTINCT - - CAST( - NULLIF ( - 91, 1 ) AS SIGNED ) ) AS col1
----
91

skipif mysql # not compatible
query I rowsort label-8443
SELECT + + MIN ( DISTINCT - - CAST ( - NULLIF ( - 91, 1 ) AS INTEGER ) ) AS col1
----
91

query I rowsort
SELECT - ( 51 ) + - 17
----
-68

onlyif mysql # aggregate syntax: 
query II rowsort label-8445
SELECT ALL - MAX( DISTINCT + + 65 ) AS col0, + 13
----
-65
13

skipif mysql # not compatible
query II rowsort label-8445
SELECT ALL - MAX ( DISTINCT + + 65 ) AS col0, + 13
----
-65
13

onlyif mysql # aggregate syntax: 
query I rowsort label-8446
SELECT MIN( - + NULLIF ( + + NULLIF ( + CASE + 87 WHEN 25 THEN NULL ELSE + 24 END, - 44 * - 25 ), + 63 ) ) * - 76 + + 68 * + + 23 + - 9 + NULLIF ( + 21, 54 )
----
3400

skipif mysql # not compatible
query I rowsort label-8446
SELECT MIN ( - + NULLIF ( + + NULLIF ( + CASE + 87 WHEN 25 THEN NULL ELSE + 24 END, - 44 * - 25 ), + 63 ) ) * - 76 + + 68 * + + 23 + - 9 + NULLIF ( + 21, 54 )
----
3400

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8447
SELECT ALL MIN( DISTINCT + ( + + 19 ) ) + - 77 DIV - - 88 - - 58 - + 54 + + + 18
----
41

skipif mysql # not compatible
query I rowsort label-8447
SELECT ALL MIN ( DISTINCT + ( + + 19 ) ) + - 77 / - - 88 - - 58 - + 54 + + + 18
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8448
SELECT 82 AS col2, + COUNT( * ) * + AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) / + 29
----
82
NULL

skipif mysql # not compatible
query II rowsort label-8448
SELECT 82 AS col2, + COUNT ( * ) * + AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) / + 29
----
82
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8449
SELECT 27 DIV + - 13 + - + COUNT( ALL - 8 ) + + 98 + - + 99 + + NULLIF ( 33, - 69 ), - 72 AS col0
----
29
-72

skipif mysql # not compatible
query II rowsort label-8449
SELECT 27 / + - 13 + - + COUNT ( ALL - 8 ) + + 98 + - + 99 + + NULLIF ( 33, - 69 ), - 72 AS col0
----
29
-72

query I rowsort
SELECT ALL 69 + - - 98 * + - 35 col1
----
-3361

query II rowsort
SELECT + 5 AS col2, 24
----
5
24

query I rowsort
SELECT ( - 16 ) - 87 AS col1
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-8453
SELECT ALL ( - NULLIF ( 55, - 57 ) ) * - - COUNT( * ) * + 56 * - - COUNT( - 10 )
----
-3080

skipif mysql # not compatible
query I rowsort label-8453
SELECT ALL ( - NULLIF ( 55, - 57 ) ) * - - COUNT ( * ) * + 56 * - - COUNT ( - 10 )
----
-3080

query I rowsort
SELECT 70 + NULLIF ( - 72, - 57 ) AS col2
----
-2

query I rowsort
SELECT ALL 15 - + + 26
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-8456
SELECT ( COUNT( ALL 5 ) ) * 90 AS col2
----
90

skipif mysql # not compatible
query I rowsort label-8456
SELECT ( COUNT ( ALL 5 ) ) * 90 AS col2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-8457
SELECT ALL ( + + COUNT( * ) ) * - 89
----
-89

skipif mysql # not compatible
query I rowsort label-8457
SELECT ALL ( + + COUNT ( * ) ) * - 89
----
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-8458
SELECT 60 + - - 12 DIV + 41 AS col1
----
60

skipif mysql # not compatible
query I rowsort label-8458
SELECT 60 + - - 12 / + 41 AS col1
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8459
SELECT ( + ( - COUNT( * ) ) ) / SUM( 75 ) + - CASE + + ( + 17 ) WHEN - 30 - + 99 * 44 THEN NULL WHEN + COUNT( * ) THEN 89 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8459
SELECT ( + ( - COUNT ( * ) ) ) / SUM ( 75 ) + - CASE + + ( + 17 ) WHEN - 30 - + 99 * 44 THEN NULL WHEN + COUNT ( * ) THEN 89 END AS col1
----
NULL

query I rowsort
SELECT 75 * - 18 AS col0
----
-1350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8461
SELECT - 13 * - - ( - - CAST( - 20 AS SIGNED ) ) + - 84 AS col1
----
176

skipif mysql # not compatible
query I rowsort label-8461
SELECT - 13 * - - ( - - CAST ( - 20 AS INTEGER ) ) + - 84 AS col1
----
176

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8462
SELECT 85 * + - CAST( NULL AS SIGNED ) * - 3
----
NULL

skipif mysql # not compatible
query I rowsort label-8462
SELECT 85 * + - CAST ( NULL AS INTEGER ) * - 3
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8463
SELECT 95 + + NULLIF ( + - 11, + - 55 ) + + - COUNT( DISTINCT + NULLIF ( - + 58, + + 59 ) ) * 91 AS col1, + COUNT( * ) * - 23 * + 98
----
-7
-2254

skipif mysql # not compatible
query II rowsort label-8463
SELECT 95 + + NULLIF ( + - 11, + - 55 ) + + - COUNT ( DISTINCT + NULLIF ( - + 58, + + 59 ) ) * 91 AS col1, + COUNT ( * ) * - 23 * + 98
----
-7
-2254

onlyif mysql # DIV for integer division: 
query I rowsort label-8464
SELECT ALL + 56 DIV 48
----
1

skipif mysql # not compatible
query I rowsort label-8464
SELECT ALL + 56 / 48
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8465
SELECT 78 + - 17, 90 * - CASE + + 18 WHEN + + 45 * + ( MAX( ALL - 37 ) ) THEN - + COUNT( - - 19 ) END / + - 46 AS col0
----
61
NULL

skipif mysql # not compatible
query II rowsort label-8465
SELECT 78 + - 17, 90 * - CASE + + 18 WHEN + + 45 * + ( MAX ( ALL - 37 ) ) THEN - + COUNT ( - - 19 ) END / + - 46 AS col0
----
61
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8466
SELECT ALL + 87 * 47 * - MAX( DISTINCT + - 64 ) AS col0, - 21
----
261696
-21

skipif mysql # not compatible
query II rowsort label-8466
SELECT ALL + 87 * 47 * - MAX ( DISTINCT + - 64 ) AS col0, - 21
----
261696
-21

query I rowsort
SELECT DISTINCT - COALESCE ( - 63, - - 91 )
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8468
SELECT DISTINCT ( - + COALESCE ( - COALESCE ( - + 88, + - CAST( 35 AS SIGNED ) * - 48 ), 59 - 77 + + 88 ) ) + - 19 * + COUNT( * ) AS col1
----
-107

skipif mysql # not compatible
query I rowsort label-8468
SELECT DISTINCT ( - + COALESCE ( - COALESCE ( - + 88, + - CAST ( 35 AS INTEGER ) * - 48 ), 59 - 77 + + 88 ) ) + - 19 * + COUNT ( * ) AS col1
----
-107

query II rowsort
SELECT ALL + 45 AS col0, 6
----
45
6

query I rowsort
SELECT ALL - NULLIF ( 63, + - 95 )
----
-63

query I rowsort
SELECT - + ( + ( + + 21 ) )
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-8472
SELECT + MIN( ALL + 27 ) + + COUNT( * )
----
28

skipif mysql # not compatible
query I rowsort label-8472
SELECT + MIN ( ALL + 27 ) + + COUNT ( * )
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-8473
SELECT DISTINCT + COUNT( - 97 ) + - ( + 97 ) * 41 AS col1
----
-3976

skipif mysql # not compatible
query I rowsort label-8473
SELECT DISTINCT + COUNT ( - 97 ) + - ( + 97 ) * 41 AS col1
----
-3976

onlyif mysql # aggregate syntax: 
query I rowsort label-8474
SELECT - + SUM( DISTINCT + 92 ) AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-8474
SELECT - + SUM ( DISTINCT + 92 ) AS col1
----
-92

query I rowsort
SELECT - 85 + - + 52 AS col1
----
-137

query II rowsort
SELECT ALL 4 AS col2, - 81
----
4
-81

query I rowsort
SELECT DISTINCT + NULLIF ( + 76, - - 47 * + 61 ) + - + 81 * - 6 AS col0
----
562

query I rowsort
SELECT DISTINCT + 32 + - - 40 AS col0
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8479
SELECT DISTINCT - CASE - 79 WHEN + 73 + 31 + 45 * - 33 THEN NULL WHEN - ( + - 26 ) THEN CAST( 90 AS SIGNED ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8479
SELECT DISTINCT - CASE - 79 WHEN + 73 + 31 + 45 * - 33 THEN NULL WHEN - ( + - 26 ) THEN CAST ( 90 AS INTEGER ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8480
SELECT ALL + - 58 + COUNT( * ) AS col2
----
-57

skipif mysql # not compatible
query I rowsort label-8480
SELECT ALL + - 58 + COUNT ( * ) AS col2
----
-57

query II rowsort
SELECT ALL + 50, 66 AS col1
----
50
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8482
SELECT DISTINCT + 83 + + - 73 + + CASE 57 WHEN - 72 + - 72 THEN + 2 ELSE NULL END + + + AVG ( 10 ) + 47 * - + NULLIF ( + ( CAST( NULL AS SIGNED ) ), 52 ) * 44 * + + CASE 25 WHEN 93 THEN NULL ELSE 42 END + + 29 * COUNT( * ) * 21 * 3
----
NULL

skipif mysql # not compatible
query I rowsort label-8482
SELECT DISTINCT + 83 + + - 73 + + CASE 57 WHEN - 72 + - 72 THEN + 2 ELSE NULL END + + + AVG ( 10 ) + 47 * - + NULLIF ( + ( CAST ( NULL AS INTEGER ) ), 52 ) * 44 * + + CASE 25 WHEN 93 THEN NULL ELSE 42 END + + 29 * COUNT ( * ) * 21 * 3
----
NULL

query I rowsort
SELECT ALL + 61 * + - 33
----
-2013

onlyif mysql # aggregate syntax: 
query I rowsort label-8484
SELECT ALL + 50 + + COUNT( * ) * 44
----
94

skipif mysql # not compatible
query I rowsort label-8484
SELECT ALL + 50 + + COUNT ( * ) * 44
----
94

query I rowsort
SELECT 6 * + 0
----
0

query I rowsort
SELECT NULLIF ( 22, + + 70 * + 15 / + 33 + - 96 ) * + NULLIF ( - 9, - + 66 )
----
-198

onlyif mysql # aggregate syntax: 
query II rowsort label-8487
SELECT MIN( DISTINCT + 66 ), - 91 AS col1
----
66
-91

skipif mysql # not compatible
query II rowsort label-8487
SELECT MIN ( DISTINCT + 66 ), - 91 AS col1
----
66
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8488
SELECT ALL + CAST( + - COUNT( * ) AS SIGNED ) * - 6 col2
----
6

skipif mysql # not compatible
query I rowsort label-8488
SELECT ALL + CAST ( + - COUNT ( * ) AS INTEGER ) * - 6 col2
----
6

query I rowsort
SELECT 31 * + 70 * - + 82 AS col2
----
-177940

onlyif mysql # DIV for integer division: 
query I rowsort label-8490
SELECT + 35 DIV + - 54 + - 88 + - 78 + - - 77
----
-89

skipif mysql # not compatible
query I rowsort label-8490
SELECT + 35 / + - 54 + - 88 + - 78 + - - 77
----
-89

query II rowsort
SELECT DISTINCT - ( - 3 ), 69 AS col0
----
3
69

onlyif mysql # aggregate syntax: 
query I rowsort label-8492
SELECT + SUM( DISTINCT + 99 ) AS col0
----
99

skipif mysql # not compatible
query I rowsort label-8492
SELECT + SUM ( DISTINCT + 99 ) AS col0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8493
SELECT MAX( DISTINCT - + 79 )
----
-79

skipif mysql # not compatible
query I rowsort label-8493
SELECT MAX ( DISTINCT - + 79 )
----
-79

onlyif mysql # aggregate syntax: 
query II rowsort label-8494
SELECT MAX( DISTINCT + + 66 ) AS col1, MIN( - 95 ) * 29 + ( - SUM( ALL + - 63 ) ) + - - 89 + + + COALESCE ( ( - 76 ), - ( + 83 ) + + + COUNT( * ) + - - COUNT( * ), - + 23, 56 )
----
66
-2679

skipif mysql # not compatible
query II rowsort label-8494
SELECT MAX ( DISTINCT + + 66 ) AS col1, MIN ( - 95 ) * 29 + ( - SUM ( ALL + - 63 ) ) + - - 89 + + + COALESCE ( ( - 76 ), - ( + 83 ) + + + COUNT ( * ) + - - COUNT ( * ), - + 23, 56 )
----
66
-2679

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8495
SELECT + COUNT( * ) * + COALESCE ( - 54, + COUNT( * ) DIV + 43 - 58, - - COUNT( * ) ) - - + 80
----
26

skipif mysql # not compatible
query I rowsort label-8495
SELECT + COUNT ( * ) * + COALESCE ( - 54, + COUNT ( * ) / + 43 - 58, - - COUNT ( * ) ) - - + 80
----
26

query I rowsort
SELECT + ( + 63 ) * - 16 - + 33
----
-1041

query I rowsort
SELECT ALL 73 * - - 16
----
1168

onlyif mysql # aggregate syntax: 
query I rowsort label-8498
SELECT + 38 + + + COUNT( - + 81 ) AS col0
----
39

skipif mysql # not compatible
query I rowsort label-8498
SELECT + 38 + + + COUNT ( - + 81 ) AS col0
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8499
SELECT + COALESCE ( + 23, - 70 DIV - MAX( - COALESCE ( + 51, 80 DIV 87 ) ) * - 33, + + 17 ) AS col0
----
23

skipif mysql # not compatible
query I rowsort label-8499
SELECT + COALESCE ( + 23, - 70 / - MAX ( - COALESCE ( + 51, 80 / 87 ) ) * - 33, + + 17 ) AS col0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-8500
SELECT COUNT( ALL 32 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8500
SELECT COUNT ( ALL 32 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8501
SELECT ALL 37 * + - 47, CASE + 84 WHEN - 64 THEN NULL ELSE + + ( + - COUNT( * ) ) + - + COUNT( * ) + + + 48 * + 72 * - 11 END - + - 18 * 46 * + 18 AS col0
----
-1739
-23114

skipif mysql # not compatible
query II rowsort label-8501
SELECT ALL 37 * + - 47, CASE + 84 WHEN - 64 THEN NULL ELSE + + ( + - COUNT ( * ) ) + - + COUNT ( * ) + + + 48 * + 72 * - 11 END - + - 18 * 46 * + 18 AS col0
----
-1739
-23114

query I rowsort
SELECT DISTINCT 85 + - - 75 * - + 40 col0
----
-2915

onlyif mysql # aggregate syntax: 
query I rowsort label-8503
SELECT ALL MAX( ALL - + 84 ) + - + NULLIF ( + 95, + + 56 + - + 1 * - 54 * + + MAX( + 5 ) )
----
-179

skipif mysql # not compatible
query I rowsort label-8503
SELECT ALL MAX ( ALL - + 84 ) + - + NULLIF ( + 95, + + 56 + - + 1 * - 54 * + + MAX ( + 5 ) )
----
-179

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8504
SELECT ALL 3 + - 27 * CAST( - 30 AS SIGNED )
----
813

skipif mysql # not compatible
query I rowsort label-8504
SELECT ALL 3 + - 27 * CAST ( - 30 AS INTEGER )
----
813

query I rowsort
SELECT + 73 * + - 18 * + 30 + - 83 * - 55
----
-34855

onlyif mysql # DIV for integer division: 
query I rowsort label-8506
SELECT + 0 DIV ( + - NULLIF ( + 47, + COALESCE ( + 5, + 89 ) ) ) * - 71 * 48
----
0

skipif mysql # not compatible
query I rowsort label-8506
SELECT + 0 / ( + - NULLIF ( + 47, + COALESCE ( + 5, + 89 ) ) ) * - 71 * 48
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8507
SELECT - - CASE 34 WHEN - 2 / - 88 + - 13 THEN 89 + + ( 13 ) END * - 27 + - 26 + + 20 + + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) * + 19 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8507
SELECT - - CASE 34 WHEN - 2 / - 88 + - 13 THEN 89 + + ( 13 ) END * - 27 + - 26 + + 20 + + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * + 19 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8508
SELECT ALL + + 6 + + - 93, COUNT( * ) AS col1
----
-87
1

skipif mysql # not compatible
query II rowsort label-8508
SELECT ALL + + 6 + + - 93, COUNT ( * ) AS col1
----
-87
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8509
SELECT + - 9 - - 85 DIV + 29 + - + 80
----
-87

skipif mysql # not compatible
query I rowsort label-8509
SELECT + - 9 - - 85 / + 29 + - + 80
----
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-8510
SELECT ALL - ( 91 ) DIV + + 83
----
-1

skipif mysql # not compatible
query I rowsort label-8510
SELECT ALL - ( 91 ) / + + 83
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8511
SELECT + + 34 / + CAST( NULL AS SIGNED ) * + 89
----
NULL

skipif mysql # not compatible
query I rowsort label-8511
SELECT + + 34 / + CAST ( NULL AS INTEGER ) * + 89
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8512
SELECT ALL CASE - 28 WHEN COUNT( * ) - + 87 - - 70 THEN 31 ELSE - 30 * + - 12 + + COUNT( * ) END AS col0
----
361

skipif mysql # not compatible
query I rowsort label-8512
SELECT ALL CASE - 28 WHEN COUNT ( * ) - + 87 - - 70 THEN 31 ELSE - 30 * + - 12 + + COUNT ( * ) END AS col0
----
361

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8513
SELECT DISTINCT - NULLIF ( + 16, 8 * - + CAST( - + 84 AS SIGNED ) - - 44 )
----
-16

skipif mysql # not compatible
query I rowsort label-8513
SELECT DISTINCT - NULLIF ( + 16, 8 * - + CAST ( - + 84 AS INTEGER ) - - 44 )
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-8514
SELECT + COUNT( * ) + NULLIF ( + 16, - + 62 + + 27 )
----
17

skipif mysql # not compatible
query I rowsort label-8514
SELECT + COUNT ( * ) + NULLIF ( + 16, - + 62 + + 27 )
----
17

query I rowsort
SELECT - - 93 - 91
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-8516
SELECT ALL COALESCE ( - 50, - ( + + 55 ) + - ( + + 94 ) - + ( - 73 ) * - - 17, 76 DIV - 57 ) AS col1
----
-50

skipif mysql # not compatible
query I rowsort label-8516
SELECT ALL COALESCE ( - 50, - ( + + 55 ) + - ( + + 94 ) - + ( - 73 ) * - - 17, 76 / - 57 ) AS col1
----
-50

query I rowsort
SELECT - 51 + - 72 AS col1
----
-123

query II rowsort
SELECT 36, 72 - - - 78 + + 97 * - + 52 AS col0
----
36
-5050

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8519
SELECT - COUNT( * ) + + 68 DIV - - MIN( - + 97 ) * + + 5 * + 15
----
-1

skipif mysql # not compatible
query I rowsort label-8519
SELECT - COUNT ( * ) + + 68 / - - MIN ( - + 97 ) * + + 5 * + 15
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8520
SELECT ALL + NULLIF ( + 17, ( SUM( - - 50 ) ) + + 32 + - 29 - - + 64 + + + 22 / + 83 * SUM( ALL + 72 ) ) AS col1
----
17

skipif mysql # not compatible
query I rowsort label-8520
SELECT ALL + NULLIF ( + 17, ( SUM ( - - 50 ) ) + + 32 + - 29 - - + 64 + + + 22 / + 83 * SUM ( ALL + 72 ) ) AS col1
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-8521
SELECT ( + 63 ) * + - SUM( + 28 ) * - + 26 + - - 54 col1, CASE 74 WHEN + 24 THEN - 51 ELSE NULL END
----
45918
NULL

skipif mysql # not compatible
query II rowsort label-8521
SELECT ( + 63 ) * + - SUM ( + 28 ) * - + 26 + - - 54 col1, CASE 74 WHEN + 24 THEN - 51 ELSE NULL END
----
45918
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8522
SELECT - 15 * - COUNT( * )
----
15

skipif mysql # not compatible
query I rowsort label-8522
SELECT - 15 * - COUNT ( * )
----
15

query I rowsort
SELECT ALL + COALESCE ( 12, + 92 )
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8524
SELECT - CAST( NULL AS SIGNED ) / + CAST( NULL AS SIGNED ) + - - 8
----
NULL

skipif mysql # not compatible
query I rowsort label-8524
SELECT - CAST ( NULL AS INTEGER ) / + CAST ( NULL AS INTEGER ) + - - 8
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8525
SELECT + SUM( DISTINCT - 57 )
----
-57

skipif mysql # not compatible
query I rowsort label-8525
SELECT + SUM ( DISTINCT - 57 )
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-8526
SELECT ALL + COALESCE ( - - 86, COALESCE ( + + 79, + 33 ) + MIN( ALL + - 81 ) - - + 84 ) AS col0
----
86

skipif mysql # not compatible
query I rowsort label-8526
SELECT ALL + COALESCE ( - - 86, COALESCE ( + + 79, + 33 ) + MIN ( ALL + - 81 ) - - + 84 ) AS col0
----
86

query I rowsort
SELECT - 62 + + + 60 AS col0
----
-2

query I rowsort
SELECT ALL - 56 * - + 38 AS col2
----
2128

query I rowsort
SELECT - 79 * 43 AS col1
----
-3397

onlyif mysql # aggregate syntax: 
query I rowsort label-8530
SELECT + 42 * - MIN( ALL - 60 ) * - 67 + - COUNT( * ) AS col2
----
-168841

skipif mysql # not compatible
query I rowsort label-8530
SELECT + 42 * - MIN ( ALL - 60 ) * - 67 + - COUNT ( * ) AS col2
----
-168841

query I rowsort
SELECT ( + - 92 ) AS col0
----
-92

query I rowsort
SELECT DISTINCT + 11 * 43
----
473

query I rowsort
SELECT ALL - 57 * - - 45 AS col2
----
-2565

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8534
SELECT DISTINCT 67 * COUNT( * ) DIV COUNT( * ) + + 87 AS col0
----
154

skipif mysql # not compatible
query I rowsort label-8534
SELECT DISTINCT 67 * COUNT ( * ) / COUNT ( * ) + + 87 AS col0
----
154

onlyif mysql # DIV for integer division: 
query I rowsort label-8535
SELECT + 4 * + 85 DIV - ( - 85 )
----
4

skipif mysql # not compatible
query I rowsort label-8535
SELECT + 4 * + 85 / - ( - 85 )
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8536
SELECT DISTINCT COALESCE ( + 86, + 41 * 78 - - CAST( NULL AS SIGNED ) ) * - CASE - 29 WHEN 41 THEN - 88 * - 40 * - - 52 + - 99 * - 56 WHEN - 54 * - - 53 THEN + CAST( NULL AS SIGNED ) ELSE NULL END + 74 * - + SUM( - 23 ) / 90 * + - 89 - ( - 62 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8536
SELECT DISTINCT COALESCE ( + 86, + 41 * 78 - - CAST ( NULL AS INTEGER ) ) * - CASE - 29 WHEN 41 THEN - 88 * - 40 * - - 52 + - 99 * - 56 WHEN - 54 * - - 53 THEN + CAST ( NULL AS INTEGER ) ELSE NULL END + 74 * - + SUM ( - 23 ) / 90 * + - 89 - ( - 62 ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8537
SELECT DISTINCT + - 59 * 15 + - 3 / + + CAST( NULL AS SIGNED ) / - 90 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8537
SELECT DISTINCT + - 59 * 15 + - 3 / + + CAST ( NULL AS INTEGER ) / - 90 col1
----
NULL

query I rowsort
SELECT ALL 66 * - 40 + - - 89 + + + 6
----
-2545

onlyif mysql # aggregate syntax: 
query I rowsort label-8539
SELECT COUNT( * ) * - 44 + 69 AS col1
----
25

skipif mysql # not compatible
query I rowsort label-8539
SELECT COUNT ( * ) * - 44 + 69 AS col1
----
25

query I rowsort
SELECT - + 29 + - 82 + + 11 - 77
----
-177

onlyif mysql # aggregate syntax: 
query I rowsort label-8541
SELECT MAX( DISTINCT - + 0 )
----
0

skipif mysql # not compatible
query I rowsort label-8541
SELECT MAX ( DISTINCT - + 0 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8542
SELECT - 77 AS col2, - 93 * + CAST( NULL AS SIGNED ) AS col2
----
-77
NULL

skipif mysql # not compatible
query II rowsort label-8542
SELECT - 77 AS col2, - 93 * + CAST ( NULL AS INTEGER ) AS col2
----
-77
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8543
SELECT DISTINCT + 0 * - 69 + + 61 / + - CASE 67 WHEN + ( - 53 ) * + 81 + + 67 THEN + + SUM( - + 85 ) END / - 93 / + + CASE + CAST( NULL AS SIGNED ) WHEN - 5 / - 28 - 42 THEN - + 51 ELSE NULL END + + - 47 + 85 + + 1 + + 30 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8543
SELECT DISTINCT + 0 * - 69 + + 61 / + - CASE 67 WHEN + ( - 53 ) * + 81 + + 67 THEN + + SUM ( - + 85 ) END / - 93 / + + CASE + CAST ( NULL AS INTEGER ) WHEN - 5 / - 28 - 42 THEN - + 51 ELSE NULL END + + - 47 + 85 + + 1 + + 30 AS col0
----
NULL

query II rowsort
SELECT ALL 50, - 13 + 67 col1
----
50
54

onlyif mysql # aggregate syntax: 
query I rowsort label-8545
SELECT + COALESCE ( 48, - MAX( ALL + 37 ) - + COUNT( * ) ) + - 27 AS col1
----
21

skipif mysql # not compatible
query I rowsort label-8545
SELECT + COALESCE ( 48, - MAX ( ALL + 37 ) - + COUNT ( * ) ) + - 27 AS col1
----
21

onlyif mysql # aggregate syntax: 
query II rowsort label-8546
SELECT + 47 + + SUM( + - 91 ) AS col1, 17
----
-44
17

skipif mysql # not compatible
query II rowsort label-8546
SELECT + 47 + + SUM ( + - 91 ) AS col1, 17
----
-44
17

onlyif mysql # aggregate syntax: 
query I rowsort label-8547
SELECT DISTINCT COUNT( * ) - 56
----
-55

skipif mysql # not compatible
query I rowsort label-8547
SELECT DISTINCT COUNT ( * ) - 56
----
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8548
SELECT - + CASE 59 WHEN - - 63 THEN - ( - + 61 ) WHEN 74 * - + 56 THEN + CAST( 19 AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8548
SELECT - + CASE 59 WHEN - - 63 THEN - ( - + 61 ) WHEN 74 * - + 56 THEN + CAST ( 19 AS INTEGER ) END
----
NULL

query I rowsort
SELECT + + ( 20 ) + 33 + + ( NULLIF ( + 50, - - 32 * - 44 ) ) + 34
----
137

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8550
SELECT - - COUNT( * ) + - 15 + - CAST( - + COUNT( * ) AS SIGNED ) * 80 + + - COUNT( * ) AS col1
----
65

skipif mysql # not compatible
query I rowsort label-8550
SELECT - - COUNT ( * ) + - 15 + - CAST ( - + COUNT ( * ) AS INTEGER ) * 80 + + - COUNT ( * ) AS col1
----
65

query II rowsort
SELECT ALL + COALESCE ( + 80, 57 * + 37 ) - 14 + + - 10 + ( - 18 ) AS col1, 39
----
38
39

onlyif mysql # aggregate syntax: 
query I rowsort label-8552
SELECT + 28 * - MIN( + ( - 41 ) )
----
1148

skipif mysql # not compatible
query I rowsort label-8552
SELECT + 28 * - MIN ( + ( - 41 ) )
----
1148

onlyif mysql # DIV for integer division: 
query I rowsort label-8553
SELECT + 45 DIV + 95
----
0

skipif mysql # not compatible
query I rowsort label-8553
SELECT + 45 / + 95
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8554
SELECT DISTINCT COUNT( + 47 ) DIV 82
----
0

skipif mysql # not compatible
query I rowsort label-8554
SELECT DISTINCT COUNT ( + 47 ) / 82
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8555
SELECT ALL COUNT( 10 )
----
1

skipif mysql # not compatible
query I rowsort label-8555
SELECT ALL COUNT ( 10 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8556
SELECT DISTINCT 62 * COUNT( * ) AS col0, - 67 + - 83
----
62
-150

skipif mysql # not compatible
query II rowsort label-8556
SELECT DISTINCT 62 * COUNT ( * ) AS col0, - 67 + - 83
----
62
-150

query I rowsort
SELECT ALL 97 * + - ( + 94 ) AS col0
----
-9118

onlyif mysql # aggregate syntax: 
query II rowsort label-8558
SELECT ALL - 70 + - - CASE + - 90 WHEN - + AVG ( ALL + + 18 ) * + 14 * + 64 * + 62 * - + 21 THEN + 98 * + + 56 WHEN CASE COUNT( * ) WHEN 77 THEN NULL WHEN + ( + 91 ) THEN + + MAX( DISTINCT - + 35 ) ELSE - ( - 65 ) END THEN + + 82 END * - - COUNT( * ) AS col0, - 55
----
NULL
-55

skipif mysql # not compatible
query II rowsort label-8558
SELECT ALL - 70 + - - CASE + - 90 WHEN - + AVG ( ALL + + 18 ) * + 14 * + 64 * + 62 * - + 21 THEN + 98 * + + 56 WHEN CASE COUNT ( * ) WHEN 77 THEN NULL WHEN + ( + 91 ) THEN + + MAX ( DISTINCT - + 35 ) ELSE - ( - 65 ) END THEN + + 82 END * - - COUNT ( * ) AS col0, - 55
----
NULL
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-8559
SELECT 59 * 49 DIV - 64
----
-45

skipif mysql # not compatible
query I rowsort label-8559
SELECT 59 * 49 / - 64
----
-45

query I rowsort
SELECT ALL + 97 + - 97 - + 88
----
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-8561
SELECT ALL 96 + 8 DIV + - 14 * + - 31 - - 60 + + COALESCE ( + 81, 32 )
----
237

skipif mysql # not compatible
query I rowsort label-8561
SELECT ALL 96 + 8 / + - 14 * + - 31 - - 60 + + COALESCE ( + 81, 32 )
----
237

query II rowsort
SELECT DISTINCT 55 + 18, - 0 AS col1
----
73
0

query I rowsort
SELECT ALL - 25 * 94
----
-2350

query I rowsort
SELECT DISTINCT - 52 + - 71 * 97 AS col2
----
-6939

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8565
SELECT ALL + 98 + + COUNT( * ) + - CAST( NULL AS SIGNED ) * - 51
----
NULL

skipif mysql # not compatible
query I rowsort label-8565
SELECT ALL + 98 + + COUNT ( * ) + - CAST ( NULL AS INTEGER ) * - 51
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8566
SELECT DISTINCT - 43 DIV - 57 * - ( + 29 ) AS col0, 10
----
0
10

skipif mysql # not compatible
query II rowsort label-8566
SELECT DISTINCT - 43 / - 57 * - ( + 29 ) AS col0, 10
----
0
10

onlyif mysql # aggregate syntax: 
query II rowsort label-8567
SELECT ALL - + COUNT( * ) * 6 AS col1, - 47 AS col2
----
-6
-47

skipif mysql # not compatible
query II rowsort label-8567
SELECT ALL - + COUNT ( * ) * 6 AS col1, - 47 AS col2
----
-6
-47

onlyif mysql # DIV for integer division: 
query II rowsort label-8568
SELECT + 55 DIV 49 AS col2, - 25 AS col1
----
1
-25

skipif mysql # not compatible
query II rowsort label-8568
SELECT + 55 / 49 AS col2, - 25 AS col1
----
1
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-8569
SELECT + - SUM( ALL - - 32 ) AS col1
----
-32

skipif mysql # not compatible
query I rowsort label-8569
SELECT + - SUM ( ALL - - 32 ) AS col1
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-8570
SELECT ALL - 14 - 28 * - + COUNT( * )
----
14

skipif mysql # not compatible
query I rowsort label-8570
SELECT ALL - 14 - 28 * - + COUNT ( * )
----
14

query I rowsort
SELECT DISTINCT - ( NULLIF ( 65, - - 74 * - + 61 ) ) col0
----
-65

query I rowsort
SELECT DISTINCT - - ( + 93 ) - 50 AS col1
----
43

onlyif mysql # DIV for integer division: 
query I rowsort label-8573
SELECT ALL 48 DIV 37
----
1

skipif mysql # not compatible
query I rowsort label-8573
SELECT ALL 48 / 37
----
1

query I rowsort
SELECT + ( + + 32 ) - + 97 + + 73
----
8

query I rowsort
SELECT ALL 37 * - - 2
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8576
SELECT 44 * - COALESCE ( + 18, COUNT( * ) ) * + - CASE + 6 WHEN + + 72 THEN + + COUNT( * ) WHEN - NULLIF ( + - ( + 46 ), - 47 + NULLIF ( + CAST( NULL AS SIGNED ), + 2 ) ) / - 12 THEN 17 WHEN 97 THEN + 3 * - 23 + + - 37 / 59 ELSE NULL END + 69
----
NULL

skipif mysql # not compatible
query I rowsort label-8576
SELECT 44 * - COALESCE ( + 18, COUNT ( * ) ) * + - CASE + 6 WHEN + + 72 THEN + + COUNT ( * ) WHEN - NULLIF ( + - ( + 46 ), - 47 + NULLIF ( + CAST ( NULL AS INTEGER ), + 2 ) ) / - 12 THEN 17 WHEN 97 THEN + 3 * - 23 + + - 37 / 59 ELSE NULL END + 69
----
NULL

query I rowsort
SELECT ALL - 0 * + 51 AS col0
----
0

query I rowsort
SELECT ALL - 92 * - - 85
----
-7820

onlyif mysql # aggregate syntax: 
query I rowsort label-8579
SELECT DISTINCT CASE + ( + COUNT( * ) ) WHEN + 98 THEN + 91 + - - 91 WHEN + 48 + - 28 THEN - + 0 ELSE 94 + + 93 END * + 8
----
1496

skipif mysql # not compatible
query I rowsort label-8579
SELECT DISTINCT CASE + ( + COUNT ( * ) ) WHEN + 98 THEN + 91 + - - 91 WHEN + 48 + - 28 THEN - + 0 ELSE 94 + + 93 END * + 8
----
1496

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8580
SELECT SUM( - - 45 ) * 98 - - + CAST( 95 AS SIGNED ) AS col2
----
4505

skipif mysql # not compatible
query I rowsort label-8580
SELECT SUM ( - - 45 ) * 98 - - + CAST ( 95 AS INTEGER ) AS col2
----
4505

query I rowsort
SELECT 40 + - 42 AS col1
----
-2

query I rowsort
SELECT ALL 56 + + - 8 + + 49
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8583
SELECT 50 + 43 * - - ( COUNT( * ) ) * 58 * 55
----
137220

skipif mysql # not compatible
query I rowsort label-8583
SELECT 50 + 43 * - - ( COUNT ( * ) ) * 58 * 55
----
137220

query I rowsort
SELECT 85 - - 57
----
142

onlyif mysql # aggregate syntax: 
query I rowsort label-8585
SELECT ( MAX( ALL + 74 ) ) * - 8 * + COUNT( * ) + - COUNT( * ) col1
----
-593

skipif mysql # not compatible
query I rowsort label-8585
SELECT ( MAX ( ALL + 74 ) ) * - 8 * + COUNT ( * ) + - COUNT ( * ) col1
----
-593

query I rowsort
SELECT 69 + 31 AS col0
----
100

query I rowsort
SELECT ALL 20 + 28
----
48

query I rowsort
SELECT ALL 97 + + 1 AS col1
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8589
SELECT DISTINCT 55 + + 56 + - NULLIF ( + 24, - - CAST( NULL AS SIGNED ) ) DIV COUNT( * )
----
87

skipif mysql # not compatible
query I rowsort label-8589
SELECT DISTINCT 55 + + 56 + - NULLIF ( + 24, - - CAST ( NULL AS INTEGER ) ) / COUNT ( * )
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8590
SELECT ALL - NULLIF ( - ( + COUNT( * ) ), 50 * - 20 + 37 ) + - SUM( + CAST( ( 10 ) AS SIGNED ) ) AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-8590
SELECT ALL - NULLIF ( - ( + COUNT ( * ) ), 50 * - 20 + 37 ) + - SUM ( + CAST ( ( 10 ) AS INTEGER ) ) AS col2
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8591
SELECT CAST( NULL AS SIGNED ) * - MAX( + ( + 59 ) ) + - - 79 AS col0, - ( + 98 ) col0
----
NULL
-98

skipif mysql # not compatible
query II rowsort label-8591
SELECT CAST ( NULL AS INTEGER ) * - MAX ( + ( + 59 ) ) + - - 79 AS col0, - ( + 98 ) col0
----
NULL
-98

query I rowsort
SELECT DISTINCT 8 * - + 79 AS col2
----
-632

onlyif mysql # aggregate syntax: 
query I rowsort label-8593
SELECT COUNT( DISTINCT - 30 )
----
1

skipif mysql # not compatible
query I rowsort label-8593
SELECT COUNT ( DISTINCT - 30 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8594
SELECT ALL - NULLIF ( + + ( + 19 ), 18 + + - SUM( - + 80 ) ) + + COUNT( * ) col2
----
-18

skipif mysql # not compatible
query I rowsort label-8594
SELECT ALL - NULLIF ( + + ( + 19 ), 18 + + - SUM ( - + 80 ) ) + + COUNT ( * ) col2
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-8595
SELECT NULLIF ( + SUM( DISTINCT 43 ), - 2 + + 32 ) * - 75 - + 20 AS col2
----
-3245

skipif mysql # not compatible
query I rowsort label-8595
SELECT NULLIF ( + SUM ( DISTINCT 43 ), - 2 + + 32 ) * - 75 - + 20 AS col2
----
-3245

onlyif mysql # aggregate syntax: 
query I rowsort label-8596
SELECT - COUNT( * ) * - - 49
----
-49

skipif mysql # not compatible
query I rowsort label-8596
SELECT - COUNT ( * ) * - - 49
----
-49

query I rowsort
SELECT DISTINCT - 76 - - 38 * 20
----
684

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8598
SELECT ALL COUNT( * ) - + 46 + - 49 + + + 26 + 25 + + 25 + - + MIN( ALL - 40 ) * + COUNT( * ) DIV + NULLIF ( - 97, 36 * COUNT( * ) * 66 - 84 ) AS col1, 33 + + 70
----
-18
103

skipif mysql # not compatible
query II rowsort label-8598
SELECT ALL COUNT ( * ) - + 46 + - 49 + + + 26 + 25 + + 25 + - + MIN ( ALL - 40 ) * + COUNT ( * ) / + NULLIF ( - 97, 36 * COUNT ( * ) * 66 - 84 ) AS col1, 33 + + 70
----
-18
103

onlyif mysql # aggregate syntax: 
query II rowsort label-8599
SELECT - MAX( + + 25 ) * + 2 AS col1, COUNT( * ) col0
----
-50
1

skipif mysql # not compatible
query II rowsort label-8599
SELECT - MAX ( + + 25 ) * + 2 AS col1, COUNT ( * ) col0
----
-50
1

query II rowsort
SELECT ALL - + 19, - 79 AS col2
----
-19
-79

query I rowsort
SELECT 58 * 3 AS col1
----
174

onlyif mysql # DIV for integer division: 
query I rowsort label-8602
SELECT ALL + 66 DIV + 45
----
1

skipif mysql # not compatible
query I rowsort label-8602
SELECT ALL + 66 / + 45
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8603
SELECT + ( COUNT( * ) ) * - - CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) + MAX( DISTINCT - 28 ) + + + 53 + - - ( + 38 ) - + - COUNT( * ), 62 - - + MIN( ALL - 77 ) AS col0
----
NULL
-15

skipif mysql # not compatible
query II rowsort label-8603
SELECT + ( COUNT ( * ) ) * - - CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) + MAX ( DISTINCT - 28 ) + + + 53 + - - ( + 38 ) - + - COUNT ( * ), 62 - - + MIN ( ALL - 77 ) AS col0
----
NULL
-15

query II rowsort
SELECT DISTINCT - 78, 82 AS col2
----
-78
82

onlyif mysql # aggregate syntax: 
query II rowsort label-8605
SELECT 37 + 94 + - + ( - + COUNT( * ) ) + + 34, 97 + MAX( 58 ) AS col2
----
166
155

skipif mysql # not compatible
query II rowsort label-8605
SELECT 37 + 94 + - + ( - + COUNT ( * ) ) + + 34, 97 + MAX ( 58 ) AS col2
----
166
155

onlyif mysql # aggregate syntax: 
query I rowsort label-8606
SELECT ALL + - 7 * + + CASE - 46 WHEN - - 62 * - 7 THEN + COUNT( * ) * - - 53 + - ( 73 ) WHEN AVG ( ALL + - 61 ) THEN NULL END / + SUM( + + 30 ) * MAX( - 21 ) * - - 42
----
NULL

skipif mysql # not compatible
query I rowsort label-8606
SELECT ALL + - 7 * + + CASE - 46 WHEN - - 62 * - 7 THEN + COUNT ( * ) * - - 53 + - ( 73 ) WHEN AVG ( ALL + - 61 ) THEN NULL END / + SUM ( + + 30 ) * MAX ( - 21 ) * - - 42
----
NULL

query I rowsort
SELECT ALL - - 44 * + 92
----
4048

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8608
SELECT DISTINCT + 55, - SUM( - 19 ) - + + CASE - 94 WHEN 34 + - ( - 41 ) - - 68 + + 63 + - 88 + - - AVG ( DISTINCT + 59 ) / + - 34 * 20 / - - 61 / 36 * - NULLIF ( - + 49, 68 + - NULLIF ( - ( + COUNT( * ) ), - + COUNT( * ) ) ) THEN NULL WHEN - - COUNT( * ) - - + COUNT( * ) + 51 THEN - - CAST( + - 39 AS SIGNED ) * - 13 * 79 * 9 * 99 + - - 3 ELSE NULL END / - - COALESCE ( - 80, 7 + 73 ) col1
----
55
NULL

skipif mysql # not compatible
query II rowsort label-8608
SELECT DISTINCT + 55, - SUM ( - 19 ) - + + CASE - 94 WHEN 34 + - ( - 41 ) - - 68 + + 63 + - 88 + - - AVG ( DISTINCT + 59 ) / + - 34 * 20 / - - 61 / 36 * - NULLIF ( - + 49, 68 + - NULLIF ( - ( + COUNT ( * ) ), - + COUNT ( * ) ) ) THEN NULL WHEN - - COUNT ( * ) - - + COUNT ( * ) + 51 THEN - - CAST ( + - 39 AS INTEGER ) * - 13 * 79 * 9 * 99 + - - 3 ELSE NULL END / - - COALESCE ( - 80, 7 + 73 ) col1
----
55
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8609
SELECT 29 DIV - 96 * + 66
----
0

skipif mysql # not compatible
query I rowsort label-8609
SELECT 29 / - 96 * + 66
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8610
SELECT DISTINCT - + CAST( + - COUNT( + 23 ) AS SIGNED ) * + - CAST( NULL AS SIGNED ) + 70 * - ( - + 30 ) * + - 80
----
NULL

skipif mysql # not compatible
query I rowsort label-8610
SELECT DISTINCT - + CAST ( + - COUNT ( + 23 ) AS INTEGER ) * + - CAST ( NULL AS INTEGER ) + 70 * - ( - + 30 ) * + - 80
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8611
SELECT ALL - CAST( NULL AS SIGNED ) * 52 * + 64 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8611
SELECT ALL - CAST ( NULL AS INTEGER ) * 52 * + 64 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8612
SELECT ( - 56 ) * + - ( + - COALESCE ( - 54, + 14 * NULLIF ( 35, + COALESCE ( + ( + - ( MIN( ALL - 37 ) ) ), NULLIF ( - 63, 11 ) ) ), + CAST( NULL AS SIGNED ) ) ) + - 89 * 98 AS col2, + 45
----
-5698
45

skipif mysql # not compatible
query II rowsort label-8612
SELECT ( - 56 ) * + - ( + - COALESCE ( - 54, + 14 * NULLIF ( 35, + COALESCE ( + ( + - ( MIN ( ALL - 37 ) ) ), NULLIF ( - 63, 11 ) ) ), + CAST ( NULL AS INTEGER ) ) ) + - 89 * 98 AS col2, + 45
----
-5698
45

onlyif mysql # aggregate syntax: 
query I rowsort label-8613
SELECT ALL COUNT( ALL + 86 )
----
1

skipif mysql # not compatible
query I rowsort label-8613
SELECT ALL COUNT ( ALL + 86 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8614
SELECT ALL + 33 + - - CASE + + CAST( ( + + 40 ) AS DECIMAL ) WHEN - CASE 6 WHEN 18 * 51 THEN 99 + + 69 * + 53 + + - 40 END THEN NULL WHEN + + CASE 21 WHEN 66 * - + 48 + + CAST( + 86 AS DECIMAL ) THEN + NULLIF ( 40, ( - + 95 ) + + + ( - 3 ) ) ELSE - 29 + + 51 END - COUNT( * ) THEN 69 WHEN - 29 THEN NULL END + + 5 + + 5
----
NULL

skipif mysql # not compatible
query I rowsort label-8614
SELECT ALL + 33 + - - CASE + + CAST ( ( + + 40 ) AS REAL ) WHEN - CASE 6 WHEN 18 * 51 THEN 99 + + 69 * + 53 + + - 40 END THEN NULL WHEN + + CASE 21 WHEN 66 * - + 48 + + CAST ( + 86 AS REAL ) THEN + NULLIF ( 40, ( - + 95 ) + + + ( - 3 ) ) ELSE - 29 + + 51 END - COUNT ( * ) THEN 69 WHEN - 29 THEN NULL END + + 5 + + 5
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8615
SELECT - 0, - CAST( NULL AS SIGNED ) + 15 * + + 8 AS col2
----
0
NULL

skipif mysql # not compatible
query II rowsort label-8615
SELECT - 0, - CAST ( NULL AS INTEGER ) + 15 * + + 8 AS col2
----
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8616
SELECT ALL + 69 + - MIN( - 23 )
----
92

skipif mysql # not compatible
query I rowsort label-8616
SELECT ALL + 69 + - MIN ( - 23 )
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-8617
SELECT ALL 50 + - - MAX( DISTINCT + ( - 40 ) ) * + CASE COUNT( * ) WHEN + 67 THEN NULL WHEN + 17 + COUNT( * ) - - - COUNT( + ( ( - 94 ) ) ) * - COUNT( * ) - + 84 * - 9 THEN - 18 * - - ( 23 ) - 27 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8617
SELECT ALL 50 + - - MAX ( DISTINCT + ( - 40 ) ) * + CASE COUNT ( * ) WHEN + 67 THEN NULL WHEN + 17 + COUNT ( * ) - - - COUNT ( + ( ( - 94 ) ) ) * - COUNT ( * ) - + 84 * - 9 THEN - 18 * - - ( 23 ) - 27 END AS col1
----
NULL

query II rowsort
SELECT 39, 8 AS col0
----
39
8

onlyif mysql # DIV for integer division: 
query I rowsort label-8619
SELECT DISTINCT 68 + - - 31 DIV 60 * + 28
----
68

skipif mysql # not compatible
query I rowsort label-8619
SELECT DISTINCT 68 + - - 31 / 60 * + 28
----
68

query I rowsort
SELECT DISTINCT - 15 + + 52
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8621
SELECT DISTINCT COUNT( * ) * COALESCE ( - + 34, + + ( - + MAX( 18 ) ), - + CASE - - 29 WHEN + CAST( - COUNT( * ) AS SIGNED ) THEN - 93 * 82 END ) DIV SUM( + COALESCE ( + 51, + - 79, - 34 ) )
----
0

skipif mysql # not compatible
query I rowsort label-8621
SELECT DISTINCT COUNT ( * ) * COALESCE ( - + 34, + + ( - + MAX ( 18 ) ), - + CASE - - 29 WHEN + CAST ( - COUNT ( * ) AS INTEGER ) THEN - 93 * 82 END ) / SUM ( + COALESCE ( + 51, + - 79, - 34 ) )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8622
SELECT ALL NULLIF ( + 47, CAST( NULL AS SIGNED ) ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-8622
SELECT ALL NULLIF ( + 47, CAST ( NULL AS INTEGER ) ) AS col1
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8623
SELECT ALL + 43 * + - CAST( + 16 AS SIGNED ) col2
----
-688

skipif mysql # not compatible
query I rowsort label-8623
SELECT ALL + 43 * + - CAST ( + 16 AS INTEGER ) col2
----
-688

query I rowsort
SELECT + ( + 82 ) * 23
----
1886

onlyif mysql # DIV for integer division: 
query I rowsort label-8625
SELECT ALL 67 + + 67 DIV + 41 AS col2
----
68

skipif mysql # not compatible
query I rowsort label-8625
SELECT ALL 67 + + 67 / + 41 AS col2
----
68

query I rowsort
SELECT - 73 - - + 28 AS col2
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-8627
SELECT + CASE NULLIF ( - COUNT( * ), - - MAX( + 25 ) * + + 78 ) WHEN + 92 THEN + COUNT( * ) + - + 4 + ( + - 18 ) ELSE - ( - + 1 ) END
----
1

skipif mysql # not compatible
query I rowsort label-8627
SELECT + CASE NULLIF ( - COUNT ( * ), - - MAX ( + 25 ) * + + 78 ) WHEN + 92 THEN + COUNT ( * ) + - + 4 + ( + - 18 ) ELSE - ( - + 1 ) END
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8628
SELECT - CAST( NULL AS SIGNED ) / ( + 62 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8628
SELECT - CAST ( NULL AS INTEGER ) / ( + 62 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8629
SELECT + 55 * MAX( ( + 21 ) ) AS col2
----
1155

skipif mysql # not compatible
query I rowsort label-8629
SELECT + 55 * MAX ( ( + 21 ) ) AS col2
----
1155

query I rowsort
SELECT ( - ( - COALESCE ( + 73, + - 93 ) ) )
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-8631
SELECT COUNT( DISTINCT - + 57 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8631
SELECT COUNT ( DISTINCT - + 57 ) AS col0
----
1

query II rowsort
SELECT ALL + 16, - 65 AS col2
----
16
-65

query I rowsort
SELECT ALL + 56 * - + 44 AS col1
----
-2464

onlyif mysql # DIV for integer division: 
query I rowsort label-8634
SELECT DISTINCT - 28 DIV + 62 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8634
SELECT DISTINCT - 28 / + 62 AS col1
----
0

query I rowsort
SELECT DISTINCT + + 46 * 85 AS col1
----
3910

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8636
SELECT ALL - ( 58 ) * - 5 - ( MIN( - 7 ) ) AS col0, COUNT( ALL - CAST( NULL AS SIGNED ) )
----
297
0

skipif mysql # not compatible
query II rowsort label-8636
SELECT ALL - ( 58 ) * - 5 - ( MIN ( - 7 ) ) AS col0, COUNT ( ALL - CAST ( NULL AS INTEGER ) )
----
297
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8637
SELECT ALL + COUNT( + 90 )
----
1

skipif mysql # not compatible
query I rowsort label-8637
SELECT ALL + COUNT ( + 90 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8638
SELECT - - 35 + + COUNT( * ) * 54
----
89

skipif mysql # not compatible
query I rowsort label-8638
SELECT - - 35 + + COUNT ( * ) * 54
----
89

query II rowsort
SELECT ALL + - 10 AS col0, 46 AS col2
----
-10
46

onlyif mysql # aggregate syntax: 
query I rowsort label-8640
SELECT + + COUNT( + + 20 ) * + + ( - - 11 ) * + ( - 36 ) * 23 * - CASE + 80 WHEN + + 82 THEN 65 END * - 12 + COUNT( * ) + 86 * - 89
----
NULL

skipif mysql # not compatible
query I rowsort label-8640
SELECT + + COUNT ( + + 20 ) * + + ( - - 11 ) * + ( - 36 ) * 23 * - CASE + 80 WHEN + + 82 THEN 65 END * - 12 + COUNT ( * ) + 86 * - 89
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8641
SELECT ALL + CASE + + MIN( ALL + ( + 51 ) ) WHEN - 91 / + + 65 + + 27 + - 88 + COUNT( * ) + - 87 + + COUNT( * ) / - SUM( 95 ) THEN 91 WHEN - + 48 + ( + 78 ) THEN NULL END * + 48 + 6
----
NULL

skipif mysql # not compatible
query I rowsort label-8641
SELECT ALL + CASE + + MIN ( ALL + ( + 51 ) ) WHEN - 91 / + + 65 + + 27 + - 88 + COUNT ( * ) + - 87 + + COUNT ( * ) / - SUM ( 95 ) THEN 91 WHEN - + 48 + ( + 78 ) THEN NULL END * + 48 + 6
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8642
SELECT ALL - CAST( + 16 AS SIGNED ) * + 2 + - + 16 col1
----
-48

skipif mysql # not compatible
query I rowsort label-8642
SELECT ALL - CAST ( + 16 AS INTEGER ) * + 2 + - + 16 col1
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-8643
SELECT DISTINCT 29 * - NULLIF ( + - ( 69 ), 18 + - 59 ) + COUNT( * ) + + 99
----
2101

skipif mysql # not compatible
query I rowsort label-8643
SELECT DISTINCT 29 * - NULLIF ( + - ( 69 ), 18 + - 59 ) + COUNT ( * ) + + 99
----
2101

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8644
SELECT + 21 * - - NULLIF ( 32, 39 + - - MAX( ALL + COALESCE ( 88, - - 66 ) ) + + 55 DIV 73 + - 95 ) + + 66
----
NULL

skipif mysql # not compatible
query I rowsort label-8644
SELECT + 21 * - - NULLIF ( 32, 39 + - - MAX ( ALL + COALESCE ( 88, - - 66 ) ) + + 55 / 73 + - 95 ) + + 66
----
NULL

query I rowsort
SELECT ALL + + CASE - 97 WHEN + 33 THEN NULL ELSE - COALESCE ( - 64, 58 ) + - + 76 END
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-8646
SELECT DISTINCT - + 42 * + 9 + ( - COUNT( * ) ) AS col1
----
-379

skipif mysql # not compatible
query I rowsort label-8646
SELECT DISTINCT - + 42 * + 9 + ( - COUNT ( * ) ) AS col1
----
-379

onlyif mysql # aggregate syntax: 
query I rowsort label-8647
SELECT DISTINCT + SUM( + 26 ) * + 22 * + 1
----
572

skipif mysql # not compatible
query I rowsort label-8647
SELECT DISTINCT + SUM ( + 26 ) * + 22 * + 1
----
572

query I rowsort
SELECT NULLIF ( + - 42, + 96 * - 56 + + 82 / + 57 ) AS col0
----
-42

query I rowsort
SELECT ALL 27 * + 96 + 74 * - 91 * - ( - - 28 ) AS col2
----
191144

query I rowsort
SELECT + 87 - - + 40 AS col2
----
127

query I rowsort
SELECT - ( - + 32 ) AS col0
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8652
SELECT - CAST( AVG ( - 67 ) AS SIGNED ) * - 7 AS col2
----
-469

skipif mysql # not compatible
query I rowsort label-8652
SELECT - CAST ( AVG ( - 67 ) AS INTEGER ) * - 7 AS col2
----
-469

query I rowsort
SELECT DISTINCT - 29 * - - 50
----
-1450

query I rowsort
SELECT ALL - 11 * - 3 * 51
----
1683

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8655
SELECT ALL 21 + - 71 - CAST( NULL AS SIGNED ) * - 76 + 37 * - 66 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8655
SELECT ALL 21 + - 71 - CAST ( NULL AS INTEGER ) * - 76 + 37 * - 66 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8656
SELECT - 33 - + 20 * - SUM( DISTINCT 99 ) * - + 49 + + 28 col2
----
-97025

skipif mysql # not compatible
query I rowsort label-8656
SELECT - 33 - + 20 * - SUM ( DISTINCT 99 ) * - + 49 + + 28 col2
----
-97025

onlyif mysql # DIV for integer division: 
query I rowsort label-8657
SELECT ALL + 38 + 56 DIV + 47 + - 56 AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-8657
SELECT ALL + 38 + 56 / + 47 + - 56 AS col1
----
-17

query I rowsort
SELECT ALL + 66 + - + 5
----
61

onlyif mysql # DIV for integer division: 
query I rowsort label-8659
SELECT ALL 97 DIV - 33 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-8659
SELECT ALL 97 / - 33 AS col2
----
-2

query I rowsort
SELECT ALL + 39 - - + 24 AS col2
----
63

onlyif mysql # aggregate syntax: 
query II rowsort label-8661
SELECT - CASE - 6 WHEN - + 97 - 9 * + 78 * - + ( - + COUNT( * ) ) * 21 + + 9 THEN + 25 * COALESCE ( + 50, - + 39 ) * + - 17 ELSE NULL END + - 80 + NULLIF ( - 48, - ( COUNT( * ) ) / 64 ) AS col2, ( + COUNT( * ) )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-8661
SELECT - CASE - 6 WHEN - + 97 - 9 * + 78 * - + ( - + COUNT ( * ) ) * 21 + + 9 THEN + 25 * COALESCE ( + 50, - + 39 ) * + - 17 ELSE NULL END + - 80 + NULLIF ( - 48, - ( COUNT ( * ) ) / 64 ) AS col2, ( + COUNT ( * ) )
----
NULL
1

query I rowsort
SELECT - 79 * + 4
----
-316

onlyif mysql # aggregate syntax: 
query I rowsort label-8663
SELECT - 49 + - SUM( - - ( + 93 ) )
----
-142

skipif mysql # not compatible
query I rowsort label-8663
SELECT - 49 + - SUM ( - - ( + 93 ) )
----
-142

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8664
SELECT ALL CAST( + - 44 AS SIGNED ) col0, + MIN( ALL - + 57 ) AS col2
----
-44
-57

skipif mysql # not compatible
query II rowsort label-8664
SELECT ALL CAST ( + - 44 AS INTEGER ) col0, + MIN ( ALL - + 57 ) AS col2
----
-44
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8665
SELECT - CAST( NULL AS SIGNED ) + COUNT( ALL + - 90 ) + + ( 48 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8665
SELECT - CAST ( NULL AS INTEGER ) + COUNT ( ALL + - 90 ) + + ( 48 ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8666
SELECT - 43 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8666
SELECT - 43 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 2 + - 72
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-8668
SELECT - 62 + + + COUNT( * )
----
-61

skipif mysql # not compatible
query I rowsort label-8668
SELECT - 62 + + + COUNT ( * )
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8669
SELECT ALL + + 40 * CAST( - COUNT( * ) AS SIGNED ) AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-8669
SELECT ALL + + 40 * CAST ( - COUNT ( * ) AS INTEGER ) AS col1
----
-40

query I rowsort
SELECT DISTINCT + ( - 12 ) col1
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-8671
SELECT - + COUNT( ALL - - 47 ) * + CASE - COUNT( * ) WHEN + + ( - 72 ) * COUNT( * ) THEN NULL WHEN - + ( + 75 ) THEN - 83 * + 57 * 94 * 34 + + 83 + - 89 + + 96 END - + + 58 + 85 * - 64 * - 72 * 16 - CASE + 79 WHEN - 5 * - MIN( 52 ) - - 20 THEN 58 + - 0 - - 87 WHEN + 86 - - + 22 THEN NULL END + - - 35 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8671
SELECT - + COUNT ( ALL - - 47 ) * + CASE - COUNT ( * ) WHEN + + ( - 72 ) * COUNT ( * ) THEN NULL WHEN - + ( + 75 ) THEN - 83 * + 57 * 94 * 34 + + 83 + - 89 + + 96 END - + + 58 + 85 * - 64 * - 72 * 16 - CASE + 79 WHEN - 5 * - MIN ( 52 ) - - 20 THEN 58 + - 0 - - 87 WHEN + 86 - - + 22 THEN NULL END + - - 35 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8672
SELECT ALL - + COUNT( ALL + 50 ) * + 53 * - 4 AS col2
----
212

skipif mysql # not compatible
query I rowsort label-8672
SELECT ALL - + COUNT ( ALL + 50 ) * + 53 * - 4 AS col2
----
212

onlyif mysql # aggregate syntax: 
query I rowsort label-8673
SELECT MIN( DISTINCT 4 ) col1
----
4

skipif mysql # not compatible
query I rowsort label-8673
SELECT MIN ( DISTINCT 4 ) col1
----
4

query I rowsort
SELECT + + 5 + 74 * - 96 col2
----
-7099

onlyif mysql # DIV for integer division: 
query I rowsort label-8675
SELECT ALL 40 DIV + 17 + - 56
----
-54

skipif mysql # not compatible
query I rowsort label-8675
SELECT ALL 40 / + 17 + - 56
----
-54

query I rowsort
SELECT + + 75 * - NULLIF ( + 44, 47 ) + - 49 + - COALESCE ( + 18, - 35 * + 96, + 48 + 18 ) + + - 42 + 21 + - + 22 * - 91 + - 37 + 71 * 24 * - 67 AS col0
----
-115591

query I rowsort
SELECT DISTINCT + + 26 AS col2
----
26

query II rowsort
SELECT ALL 31 * 92 AS col1, 27
----
2852
27

onlyif mysql # DIV for integer division: 
query I rowsort label-8679
SELECT + 0 DIV 46 + - 30 + + 82 * - + 82 + - 18 - - - 6 * - 32 AS col1
----
-6580

skipif mysql # not compatible
query I rowsort label-8679
SELECT + 0 / 46 + - 30 + + 82 * - + 82 + - 18 - - - 6 * - 32 AS col1
----
-6580

query I rowsort
SELECT ALL - 48 + + ( - 22 ) - 40 AS col0
----
-110

onlyif mysql # DIV for integer division: 
query II rowsort label-8681
SELECT DISTINCT 75 + + 34 DIV - - 70 + + + 52 AS col0, 12 col1
----
127
12

skipif mysql # not compatible
query II rowsort label-8681
SELECT DISTINCT 75 + + 34 / - - 70 + + + 52 AS col0, 12 col1
----
127
12

query I rowsort
SELECT ALL 34 * + 95 AS col0
----
3230

query I rowsort
SELECT ALL + 70 + - 49 AS col1
----
21

query II rowsort
SELECT ALL 6, 63 * + 23 AS col0
----
6
1449

query II rowsort
SELECT 85 + + 85 + - + 17, ( - + 27 ) AS col2
----
153
-27

query II rowsort
SELECT DISTINCT 10 AS col1, 87 AS col1
----
10
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8687
SELECT 94 + - COALESCE ( MAX( - + 72 ), - - SUM( ALL - 1 ) * 96 DIV - 53, - + 13 + + - 98 * - CAST( - - 79 AS SIGNED ) )
----
166

skipif mysql # not compatible
query I rowsort label-8687
SELECT 94 + - COALESCE ( MAX ( - + 72 ), - - SUM ( ALL - 1 ) * 96 / - 53, - + 13 + + - 98 * - CAST ( - - 79 AS INTEGER ) )
----
166

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8688
SELECT ALL 91 - - 4 + - 24 DIV 70 * + + 56 - + 63 + - COUNT( ALL + 31 ) * - 94 * - - 95
----
8962

skipif mysql # not compatible
query I rowsort label-8688
SELECT ALL 91 - - 4 + - 24 / 70 * + + 56 - + 63 + - COUNT ( ALL + 31 ) * - 94 * - - 95
----
8962

query II rowsort
SELECT 68 * + - ( - 44 ), 27 + + 23 + - + 87 AS col2
----
2992
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8690
SELECT 4 + + 34 + COUNT( * ) * - 35 DIV + 32 AS col0
----
37

skipif mysql # not compatible
query I rowsort label-8690
SELECT 4 + + 34 + COUNT ( * ) * - 35 / + 32 AS col0
----
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8691
SELECT 75 DIV + 75 * COUNT( * ) col0
----
1

skipif mysql # not compatible
query I rowsort label-8691
SELECT 75 / + 75 * COUNT ( * ) col0
----
1

query I rowsort
SELECT 10 * - + 83
----
-830

query I rowsort
SELECT 20 + + + 23 - + 36 * + - 1 AS col1
----
79

query I rowsort
SELECT ALL - 80 * + + 22
----
-1760

query II rowsort
SELECT ALL 84 AS col0, + 7
----
84
7

query I rowsort
SELECT 10 * 23
----
230

query I rowsort
SELECT ALL 84 * - 98
----
-8232

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8698
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1, COUNT( - CAST( - + 50 AS SIGNED ) ) * + 36 DIV 37
----
NULL
0

skipif mysql # not compatible
query II rowsort label-8698
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1, COUNT ( - CAST ( - + 50 AS INTEGER ) ) * + 36 / 37
----
NULL
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8699
SELECT ALL - ( - + 67 ) DIV - + 6 AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-8699
SELECT ALL - ( - + 67 ) / - + 6 AS col1
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-8700
SELECT ALL - MAX( ALL - 83 )
----
83

skipif mysql # not compatible
query I rowsort label-8700
SELECT ALL - MAX ( ALL - 83 )
----
83

query I rowsort
SELECT 66 - - 81 - - 21 + - 28 AS col2
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-8702
SELECT CASE COUNT( * ) WHEN + + 50 THEN + + 52 + - 68 - + ( 82 ) * + 35 - - 64 * + 49 * 36 / - 26 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8702
SELECT CASE COUNT ( * ) WHEN + + 50 THEN + + 52 + - 68 - + ( 82 ) * + 35 - - 64 * + 49 * 36 / - 26 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8703
SELECT ALL - CASE COUNT( * ) WHEN - COALESCE ( - 33, - COUNT( * ) * + 41 * 78 - - COUNT( * ) + 92 - 75 * - 11 + - 49 + + + ( + + MAX( DISTINCT - 26 ) ) + - 19 * ( + COUNT( ALL + 47 ) ) * - - 80 ) + + 92 + 87 THEN COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8703
SELECT ALL - CASE COUNT ( * ) WHEN - COALESCE ( - 33, - COUNT ( * ) * + 41 * 78 - - COUNT ( * ) + 92 - 75 * - 11 + - 49 + + + ( + + MAX ( DISTINCT - 26 ) ) + - 19 * ( + COUNT ( ALL + 47 ) ) * - - 80 ) + + 92 + 87 THEN COUNT ( * ) END
----
NULL

query I rowsort
SELECT 43 * - ( - 19 ) AS col1
----
817

query I rowsort
SELECT DISTINCT + + 0 + + 55 * 19 AS col0
----
1045

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8706
SELECT ALL - CAST( + MAX( + ( - 88 ) ) AS SIGNED ) + - 15 + + 59 * + - 17
----
-930

skipif mysql # not compatible
query I rowsort label-8706
SELECT ALL - CAST ( + MAX ( + ( - 88 ) ) AS INTEGER ) + - 15 + + 59 * + - 17
----
-930

onlyif mysql # aggregate syntax: 
query II rowsort label-8707
SELECT DISTINCT + MIN( + 12 ) + 94, - ( COUNT( * ) ) col0
----
106
-1

skipif mysql # not compatible
query II rowsort label-8707
SELECT DISTINCT + MIN ( + 12 ) + 94, - ( COUNT ( * ) ) col0
----
106
-1

query I rowsort
SELECT ALL - + ( 91 )
----
-91

query I rowsort
SELECT + - ( - 48 )
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-8710
SELECT + + COUNT( ALL - 22 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8710
SELECT + + COUNT ( ALL - 22 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8711
SELECT ALL + - 58 + + 69 + - + COUNT( * ), ( - - 60 ) AS col0
----
10
60

skipif mysql # not compatible
query II rowsort label-8711
SELECT ALL + - 58 + + 69 + - + COUNT ( * ), ( - - 60 ) AS col0
----
10
60

onlyif mysql # DIV for integer division: 
query I rowsort label-8712
SELECT - - 56 * 81 DIV + ( 17 ) + - - 12 - 93 * 10 + - 4 col0
----
-656

skipif mysql # not compatible
query I rowsort label-8712
SELECT - - 56 * 81 / + ( 17 ) + - - 12 - 93 * 10 + - 4 col0
----
-656

query I rowsort
SELECT ALL - ( - 25 ) AS col1
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-8714
SELECT MIN( 51 ) + 46
----
97

skipif mysql # not compatible
query I rowsort label-8714
SELECT MIN ( 51 ) + 46
----
97

query I rowsort
SELECT ALL 51 + - + 39 col2
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-8716
SELECT ALL 86 - + 12, - SUM( DISTINCT - 41 ) * - 82 * - COUNT( * ) AS col1
----
74
3362

skipif mysql # not compatible
query II rowsort label-8716
SELECT ALL 86 - + 12, - SUM ( DISTINCT - 41 ) * - 82 * - COUNT ( * ) AS col1
----
74
3362

query I rowsort
SELECT 78 * - + 49
----
-3822

onlyif mysql # aggregate syntax: 
query I rowsort label-8718
SELECT ALL 80 * + COUNT( DISTINCT - - 41 )
----
80

skipif mysql # not compatible
query I rowsort label-8718
SELECT ALL 80 * + COUNT ( DISTINCT - - 41 )
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-8719
SELECT DISTINCT COUNT( * ) * - - 85
----
85

skipif mysql # not compatible
query I rowsort label-8719
SELECT DISTINCT COUNT ( * ) * - - 85
----
85

query II rowsort
SELECT 68 * - 96 AS col1, 65
----
-6528
65

onlyif mysql # aggregate syntax: 
query II rowsort label-8721
SELECT SUM( 54 ) - + COUNT( * ) + - 50 - SUM( DISTINCT - - ( 31 ) ) AS col0, - 44 + 76 + 10 * - 5 * + 37
----
-28
-1818

skipif mysql # not compatible
query II rowsort label-8721
SELECT SUM ( 54 ) - + COUNT ( * ) + - 50 - SUM ( DISTINCT - - ( 31 ) ) AS col0, - 44 + 76 + 10 * - 5 * + 37
----
-28
-1818

query I rowsort
SELECT ALL 44 * 75
----
3300

query I rowsort
SELECT 84 + + + ( - 39 ) * 18 * - 96
----
67476

onlyif mysql # aggregate syntax: 
query I rowsort label-8724
SELECT DISTINCT 91 - + + 64 + - COUNT( * ) * - 79 + - + 10
----
96

skipif mysql # not compatible
query I rowsort label-8724
SELECT DISTINCT 91 - + + 64 + - COUNT ( * ) * - 79 + - + 10
----
96

query I rowsort
SELECT 3 * - 21 * - 33 AS col2
----
2079

query I rowsort
SELECT 10 - + 11 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8727
SELECT ALL 25 * 41 * + 17 * + COUNT( * ) AS col2
----
17425

skipif mysql # not compatible
query I rowsort label-8727
SELECT ALL 25 * 41 * + 17 * + COUNT ( * ) AS col2
----
17425

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8728
SELECT CAST( NULL AS DECIMAL ) - + 38 * MAX( ALL + - 59 ) + - + 91
----
NULL

skipif mysql # not compatible
query I rowsort label-8728
SELECT CAST ( NULL AS REAL ) - + 38 * MAX ( ALL + - 59 ) + - + 91
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8729
SELECT ALL - ( + 2 ) DIV + - 59 * + 53 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8729
SELECT ALL - ( + 2 ) / + - 59 * + 53 AS col2
----
0

onlyif mysql # aggregate syntax: 
query III rowsort label-8730
SELECT COUNT( * ) * - NULLIF ( - - 55, - + 5 ) col2, 17 AS col1, COUNT( * ) AS col0
----
-55
17
1

skipif mysql # not compatible
query III rowsort label-8730
SELECT COUNT ( * ) * - NULLIF ( - - 55, - + 5 ) col2, 17 AS col1, COUNT ( * ) AS col0
----
-55
17
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8731
SELECT - - COUNT( DISTINCT + - 96 )
----
1

skipif mysql # not compatible
query I rowsort label-8731
SELECT - - COUNT ( DISTINCT + - 96 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8732
SELECT COALESCE ( + NULLIF ( + 84, - + 72 ), 79 ) DIV - - ( - 14 ) + + 67 AS col0
----
61

skipif mysql # not compatible
query I rowsort label-8732
SELECT COALESCE ( + NULLIF ( + 84, - + 72 ), 79 ) / - - ( - 14 ) + + 67 AS col0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-8733
SELECT + 71 / - - CASE + 71 WHEN - 14 THEN NULL WHEN + 49 THEN + 7 * - 88 WHEN - 33 * + COUNT( * ) THEN - + 96 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8733
SELECT + 71 / - - CASE + 71 WHEN - 14 THEN NULL WHEN + 49 THEN + 7 * - 88 WHEN - 33 * + COUNT ( * ) THEN - + 96 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8734
SELECT ALL - 50 + + 26 - + - CAST( + 46 AS SIGNED ) DIV + 14 + - 16 AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-8734
SELECT ALL - 50 + + 26 - + - CAST ( + 46 AS INTEGER ) / + 14 + - 16 AS col1
----
-37

query II rowsort
SELECT - 24 + 94 AS col0, 39 AS col1
----
70
39

query I rowsort
SELECT ALL - 58 + + 42
----
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-8737
SELECT - 37 + - ( + - MIN( DISTINCT 50 ) ) AS col1, 4 - + - 17 AS col2
----
13
21

skipif mysql # not compatible
query II rowsort label-8737
SELECT - 37 + - ( + - MIN ( DISTINCT 50 ) ) AS col1, 4 - + - 17 AS col2
----
13
21

query I rowsort
SELECT ALL + + ( - 60 ) + + 12
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8739
SELECT ALL + 72 * + 90 AS col1, 5 * + CASE + 98 WHEN - - 46 * + CAST( CASE - - 97 WHEN + - COUNT( * ) / COUNT( * ) THEN NULL ELSE + - 69 END AS SIGNED ) - + 9 THEN 96 * 43 + 44 - + 15 END AS col0
----
6480
NULL

skipif mysql # not compatible
query II rowsort label-8739
SELECT ALL + 72 * + 90 AS col1, 5 * + CASE + 98 WHEN - - 46 * + CAST ( CASE - - 97 WHEN + - COUNT ( * ) / COUNT ( * ) THEN NULL ELSE + - 69 END AS INTEGER ) - + 9 THEN 96 * 43 + 44 - + 15 END AS col0
----
6480
NULL

query II rowsort
SELECT ALL - ( - - 47 ) col1, + 47 AS col0
----
-47
47

query I rowsort
SELECT DISTINCT - 81 * - + 73 * - - 25 + - 97 * 66
----
141423

query I rowsort
SELECT + + 24 * + 18 + + 20
----
452

query I rowsort
SELECT ALL + 67 * - + 98 * 40 * - 75 * + 1 + - + 77
----
19697923

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8744
SELECT + + 17 * - MAX( - CAST( NULL AS DECIMAL ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8744
SELECT + + 17 * - MAX ( - CAST ( NULL AS REAL ) ) AS col1
----
NULL

query I rowsort
SELECT - NULLIF ( - 5, 11 ) + - 97 AS col2
----
-92

query I rowsort
SELECT + 83 * - 53 * + 16 + + 93 AS col1
----
-70291

onlyif mysql # aggregate syntax: 
query II rowsort label-8747
SELECT ALL SUM( ALL - 49 ) * + 7, - 59 - 51 AS col2
----
-343
-110

skipif mysql # not compatible
query II rowsort label-8747
SELECT ALL SUM ( ALL - 49 ) * + 7, - 59 - 51 AS col2
----
-343
-110

query I rowsort
SELECT ALL + 7 * ( + + 0 )
----
0

query I rowsort
SELECT DISTINCT + 98 * - 31 / CASE - + 46 WHEN + ( + ( + 92 ) ) - - 67 THEN 60 + + + 21 ELSE NULL END * - 17
----
NULL

query I rowsort
SELECT + 38 * - 41 AS col1
----
-1558

onlyif mysql # aggregate syntax: 
query I rowsort label-8751
SELECT - 39 * SUM( 32 ) - - 82 AS col0
----
-1166

skipif mysql # not compatible
query I rowsort label-8751
SELECT - 39 * SUM ( 32 ) - - 82 AS col0
----
-1166

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8752
SELECT DISTINCT NULLIF ( + 39, - CASE - - COUNT( * ) WHEN 52 THEN + + 84 WHEN + ( + - 31 ) * - + CAST( NULL AS SIGNED ) + + + 14 * + COUNT( * ) + 89 + + + COUNT( * ) THEN - MIN( - 20 ) / COUNT( * ) + 40 ELSE + + ( - + 49 ) + + ( - + 57 ) * + 22 * + 93 END )
----
39

skipif mysql # not compatible
query I rowsort label-8752
SELECT DISTINCT NULLIF ( + 39, - CASE - - COUNT ( * ) WHEN 52 THEN + + 84 WHEN + ( + - 31 ) * - + CAST ( NULL AS INTEGER ) + + + 14 * + COUNT ( * ) + 89 + + + COUNT ( * ) THEN - MIN ( - 20 ) / COUNT ( * ) + 40 ELSE + + ( - + 49 ) + + ( - + 57 ) * + 22 * + 93 END )
----
39

query I rowsort
SELECT - 20 + + + 90 AS col0
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8754
SELECT + 79 * - + CAST( + 47 AS SIGNED )
----
-3713

skipif mysql # not compatible
query I rowsort label-8754
SELECT + 79 * - + CAST ( + 47 AS INTEGER )
----
-3713

query I rowsort
SELECT ALL NULLIF ( - 86, + 58 ) AS col1
----
-86

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8756
SELECT ALL CAST( ( + 38 ) AS SIGNED ) * + 69 + + 17 AS col0, 6 AS col2
----
2639
6

skipif mysql # not compatible
query II rowsort label-8756
SELECT ALL CAST ( ( + 38 ) AS INTEGER ) * + 69 + + 17 AS col0, 6 AS col2
----
2639
6

query I rowsort
SELECT ALL + NULLIF ( 15, - 87 + + 78 ) + 92 AS col2
----
107

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8758
SELECT + 49 * + CASE 87 WHEN CASE 90 WHEN ( + COUNT( * ) ) THEN + COUNT( DISTINCT CAST( + + 84 AS SIGNED ) ) * + - COUNT( * ) * + - 91 + - + COUNT( * ) ELSE NULL END THEN NULL ELSE + + 14 END col2
----
686

skipif mysql # not compatible
query I rowsort label-8758
SELECT + 49 * + CASE 87 WHEN CASE 90 WHEN ( + COUNT ( * ) ) THEN + COUNT ( DISTINCT CAST ( + + 84 AS INTEGER ) ) * + - COUNT ( * ) * + - 91 + - + COUNT ( * ) ELSE NULL END THEN NULL ELSE + + 14 END col2
----
686

onlyif mysql # aggregate syntax: 
query I rowsort label-8759
SELECT DISTINCT ( + - COALESCE ( + COUNT( * ), - - 93, + 75 ) ) * + 9 AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-8759
SELECT DISTINCT ( + - COALESCE ( + COUNT ( * ), - - 93, + 75 ) ) * + 9 AS col2
----
-9

onlyif mysql # DIV for integer division: 
query II rowsort label-8760
SELECT DISTINCT + 20 + - - 14 DIV 29 AS col0, - 32 AS col1
----
20
-32

skipif mysql # not compatible
query II rowsort label-8760
SELECT DISTINCT + 20 + - - 14 / 29 AS col0, - 32 AS col1
----
20
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8761
SELECT + COUNT( * ) * + SUM( - 52 ) * CAST( NULL AS SIGNED ) * - 48, + AVG ( 73 ) - MAX( DISTINCT COALESCE ( + 97, 70 ) ) + - CAST( NULL AS SIGNED ) + + 3 + - CASE + + AVG ( ALL - 0 ) WHEN - 63 THEN NULL WHEN + + 91 THEN - ( 22 ) ELSE - 25 * 80 END col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8761
SELECT + COUNT ( * ) * + SUM ( - 52 ) * CAST ( NULL AS INTEGER ) * - 48, + AVG ( 73 ) - MAX ( DISTINCT COALESCE ( + 97, 70 ) ) + - CAST ( NULL AS INTEGER ) + + 3 + - CASE + + AVG ( ALL - 0 ) WHEN - 63 THEN NULL WHEN + + 91 THEN - ( 22 ) ELSE - 25 * 80 END col1
----
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8762
SELECT ALL + + ( CAST( NULL AS SIGNED ) ) * - 71
----
NULL

skipif mysql # not compatible
query I rowsort label-8762
SELECT ALL + + ( CAST ( NULL AS INTEGER ) ) * - 71
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8763
SELECT ALL 91 + - MAX( 10 )
----
81

skipif mysql # not compatible
query I rowsort label-8763
SELECT ALL 91 + - MAX ( 10 )
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8764
SELECT ALL + 43 * + COUNT( * ) * 93 AS col0
----
3999

skipif mysql # not compatible
query I rowsort label-8764
SELECT ALL + 43 * + COUNT ( * ) * 93 AS col0
----
3999

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8765
SELECT ALL + COALESCE ( + 95, - COUNT( * ) ) + + CASE - 1 WHEN + COUNT( * ) * - - 70 * 46 THEN + ( - 57 ) / + MAX( DISTINCT 2 ) + - 86 * + + 51 * 20 WHEN - 10 THEN + + COUNT( * ) END + - CASE - 61 WHEN ( - CAST( NULL AS SIGNED ) ) THEN - - 6 WHEN 51 THEN 97 * - - 94 * + - 32 + - COUNT( * ) + - - 41 * - - 6 WHEN + 66 / 31 * + AVG ( ALL + - 49 ) THEN - 65 ELSE NULL END + MIN( - CAST( + 88 AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8765
SELECT ALL + COALESCE ( + 95, - COUNT ( * ) ) + + CASE - 1 WHEN + COUNT ( * ) * - - 70 * 46 THEN + ( - 57 ) / + MAX ( DISTINCT 2 ) + - 86 * + + 51 * 20 WHEN - 10 THEN + + COUNT ( * ) END + - CASE - 61 WHEN ( - CAST ( NULL AS INTEGER ) ) THEN - - 6 WHEN 51 THEN 97 * - - 94 * + - 32 + - COUNT ( * ) + - - 41 * - - 6 WHEN + 66 / 31 * + AVG ( ALL + - 49 ) THEN - 65 ELSE NULL END + MIN ( - CAST ( + 88 AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8766
SELECT ALL + 27 + - 59 + + + 24 - 38 DIV NULLIF ( + 59, + 90 )
----
-8

skipif mysql # not compatible
query I rowsort label-8766
SELECT ALL + 27 + - 59 + + + 24 - 38 / NULLIF ( + 59, + 90 )
----
-8

query I rowsort
SELECT + 53 + 17 + - - 11
----
81

query I rowsort
SELECT ALL - 52 + 86
----
34

query II rowsort
SELECT + 60 AS col1, 9 * + 92 AS col1
----
60
828

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8770
SELECT - CASE + 94 WHEN - 80 THEN 30 - - 5 + + + 56 + + 63 * COUNT( * ) * - 17 WHEN + - COUNT( * ) THEN - COUNT( * ) ELSE - COUNT( * ) + 69 * - 29 * 45 * + CAST( + + 85 AS SIGNED ) END AS col0
----
7653826

skipif mysql # not compatible
query I rowsort label-8770
SELECT - CASE + 94 WHEN - 80 THEN 30 - - 5 + + + 56 + + 63 * COUNT ( * ) * - 17 WHEN + - COUNT ( * ) THEN - COUNT ( * ) ELSE - COUNT ( * ) + 69 * - 29 * 45 * + CAST ( + + 85 AS INTEGER ) END AS col0
----
7653826

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8771
SELECT - 80 * + ( + 72 ) - - ( - + 45 ) + + CAST( NULL AS SIGNED ) + + + 33 * - 67 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8771
SELECT - 80 * + ( + 72 ) - - ( - + 45 ) + + CAST ( NULL AS INTEGER ) + + + 33 * - 67 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8772
SELECT ALL 50 DIV + - COUNT( * )
----
-50

skipif mysql # not compatible
query I rowsort label-8772
SELECT ALL 50 / + - COUNT ( * )
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-8773
SELECT + COUNT( DISTINCT 33 )
----
1

skipif mysql # not compatible
query I rowsort label-8773
SELECT + COUNT ( DISTINCT 33 )
----
1

query I rowsort
SELECT - 49 * 49 + - 84
----
-2485

onlyif mysql # aggregate syntax: 
query I rowsort label-8775
SELECT + - 5 * + ( COUNT( * ) )
----
-5

skipif mysql # not compatible
query I rowsort label-8775
SELECT + - 5 * + ( COUNT ( * ) )
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-8776
SELECT ALL - 0 DIV - - 41 + - 59 + + 58
----
-1

skipif mysql # not compatible
query I rowsort label-8776
SELECT ALL - 0 / - - 41 + - 59 + + 58
----
-1

query I rowsort
SELECT ALL + - NULLIF ( - 35, 33 / + 32 )
----
35

query I rowsort
SELECT + ( + CASE - 93 WHEN - 53 + + - 39 THEN - 26 * + - 32 END )
----
NULL

query I rowsort
SELECT ALL + ( - COALESCE ( 58, - 39 ) ) AS col2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-8780
SELECT ALL 75 * + + COUNT( * ) AS col1
----
75

skipif mysql # not compatible
query I rowsort label-8780
SELECT ALL 75 * + + COUNT ( * ) AS col1
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-8781
SELECT + COUNT( - 92 ) * - 96 + - 39, + COUNT( * ) AS col0
----
-135
1

skipif mysql # not compatible
query II rowsort label-8781
SELECT + COUNT ( - 92 ) * - 96 + - 39, + COUNT ( * ) AS col0
----
-135
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8782
SELECT - 39 DIV - + 71 col1
----
0

skipif mysql # not compatible
query I rowsort label-8782
SELECT - 39 / - + 71 col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8783
SELECT ALL - 48 DIV 78 DIV - 36
----
0

skipif mysql # not compatible
query I rowsort label-8783
SELECT ALL - 48 / 78 / - 36
----
0

query I rowsort
SELECT - 56 + + 97 + 20 * + + 28 AS col1
----
601

onlyif mysql # aggregate syntax: 
query I rowsort label-8785
SELECT - NULLIF ( - - COUNT( * ), + 62 * 1 ) * + 71 col0
----
-71

skipif mysql # not compatible
query I rowsort label-8785
SELECT - NULLIF ( - - COUNT ( * ), + 62 * 1 ) * + 71 col0
----
-71

onlyif mysql # aggregate syntax: 
query II rowsort label-8786
SELECT ALL + CASE - 6 WHEN ( + 74 ) THEN + - 3 * + 69 * - + NULLIF ( - 69, - 52 ) + + 95 * - 43 ELSE NULL END AS col0, COUNT( * ) * 9
----
NULL
9

skipif mysql # not compatible
query II rowsort label-8786
SELECT ALL + CASE - 6 WHEN ( + 74 ) THEN + - 3 * + 69 * - + NULLIF ( - 69, - 52 ) + + 95 * - 43 ELSE NULL END AS col0, COUNT ( * ) * 9
----
NULL
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8787
SELECT NULLIF ( 83, + + 73 / + - ( + COUNT( * ) ) + - 52 + 49 + + 21 + + CASE + - 40 WHEN - ( - + COUNT( * ) ) THEN + SUM( + 45 ) + + CAST( 80 AS SIGNED ) END * - 55 * - 13 ) col0
----
83

skipif mysql # not compatible
query I rowsort label-8787
SELECT NULLIF ( 83, + + 73 / + - ( + COUNT ( * ) ) + - 52 + 49 + + 21 + + CASE + - 40 WHEN - ( - + COUNT ( * ) ) THEN + SUM ( + 45 ) + + CAST ( 80 AS INTEGER ) END * - 55 * - 13 ) col0
----
83

onlyif mysql # aggregate syntax: 
query II rowsort label-8788
SELECT DISTINCT + COUNT( * ) AS col0, 8 AS col2
----
1
8

skipif mysql # not compatible
query II rowsort label-8788
SELECT DISTINCT + COUNT ( * ) AS col0, 8 AS col2
----
1
8

query I rowsort
SELECT ALL + 76 * + 8
----
608

query II rowsort
SELECT ALL + 58 AS col0, + 19
----
58
19

onlyif mysql # aggregate syntax: 
query II rowsort label-8791
SELECT + COUNT( * ), ( - - 88 ) col1
----
1
88

skipif mysql # not compatible
query II rowsort label-8791
SELECT + COUNT ( * ), ( - - 88 ) col1
----
1
88

query I rowsort
SELECT 76 * - 23 - 40 AS col2
----
-1788

onlyif mysql # DIV for integer division: 
query I rowsort label-8793
SELECT COALESCE ( - 16, + 59 DIV - 20, ( - 92 ) )
----
-16

skipif mysql # not compatible
query I rowsort label-8793
SELECT COALESCE ( - 16, + 59 / - 20, ( - 92 ) )
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-8794
SELECT ALL + 87 * - COUNT( * ) + + COUNT( * ) AS col0
----
-86

skipif mysql # not compatible
query I rowsort label-8794
SELECT ALL + 87 * - COUNT ( * ) + + COUNT ( * ) AS col0
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-8795
SELECT - 61 - + CASE 32 WHEN MIN( DISTINCT + 46 ) THEN - COUNT( * ) * + 77 / - + 17 + - + CASE 83 WHEN + 15 THEN NULL ELSE - COUNT( * ) * + COUNT( * ) END + AVG ( - 82 ) + - 13 + 32 * - 31 + - 13 WHEN - - 43 THEN + - 36 * + + 93 END + + + COALESCE ( + 10, - - 9 + + - 0 / - 22 ) - - 59 * + - 46 + - - 17 + 17 + - ( + + 90 ) - - 41 * + 56 * 55 * 85 * - 82 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8795
SELECT - 61 - + CASE 32 WHEN MIN ( DISTINCT + 46 ) THEN - COUNT ( * ) * + 77 / - + 17 + - + CASE 83 WHEN + 15 THEN NULL ELSE - COUNT ( * ) * + COUNT ( * ) END + AVG ( - 82 ) + - 13 + 32 * - 31 + - 13 WHEN - - 43 THEN + - 36 * + + 93 END + + + COALESCE ( + 10, - - 9 + + - 0 / - 22 ) - - 59 * + - 46 + - - 17 + 17 + - ( + + 90 ) - - 41 * + 56 * 55 * 85 * - 82 col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8796
SELECT ALL - COUNT( * ) * - - ( - + 34 ) * COUNT( - NULLIF ( - 18, 22 + + COALESCE ( + 73, + 38 ) + CAST( + ( + 54 ) AS SIGNED ) * 67 * - - 32 * + 54 ) ) + + - 91 + 81
----
24

skipif mysql # not compatible
query I rowsort label-8796
SELECT ALL - COUNT ( * ) * - - ( - + 34 ) * COUNT ( - NULLIF ( - 18, 22 + + COALESCE ( + 73, + 38 ) + CAST ( + ( + 54 ) AS INTEGER ) * 67 * - - 32 * + 54 ) ) + + - 91 + 81
----
24

query I rowsort
SELECT - 37 + 93 AS col2
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-8798
SELECT MAX( ALL - - 25 )
----
25

skipif mysql # not compatible
query I rowsort label-8798
SELECT MAX ( ALL - - 25 )
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-8799
SELECT - + ( - ( + 70 ) ) DIV 23
----
3

skipif mysql # not compatible
query I rowsort label-8799
SELECT - + ( - ( + 70 ) ) / 23
----
3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8800
SELECT DISTINCT NULLIF ( + - 85, - - CAST( 13 AS SIGNED ) + - - 81 * - - CAST( - 72 AS SIGNED ) * 82 ) DIV + - 81
----
1

skipif mysql # not compatible
query I rowsort label-8800
SELECT DISTINCT NULLIF ( + - 85, - - CAST ( 13 AS INTEGER ) + - - 81 * - - CAST ( - 72 AS INTEGER ) * 82 ) / + - 81
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8801
SELECT DISTINCT + + CAST( + 52 AS SIGNED ) + 3
----
55

skipif mysql # not compatible
query I rowsort label-8801
SELECT DISTINCT + + CAST ( + 52 AS INTEGER ) + 3
----
55

query I rowsort
SELECT ALL - 67 + + ( + 74 )
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-8803
SELECT - COUNT( * ) - + 53 AS col0, - 23 AS col0
----
-54
-23

skipif mysql # not compatible
query II rowsort label-8803
SELECT - COUNT ( * ) - + 53 AS col0, - 23 AS col0
----
-54
-23

query I rowsort
SELECT - 42 + - 36 AS col1
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-8805
SELECT 21 + - 50 + - + 75 * CASE - MAX( ALL 76 ) WHEN - 29 THEN NULL WHEN + + 10 THEN - - 63 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8805
SELECT 21 + - 50 + - + 75 * CASE - MAX ( ALL 76 ) WHEN - 29 THEN NULL WHEN + + 10 THEN - - 63 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8806
SELECT ALL 25 * COALESCE ( - COUNT( * ), + - 23 * 49 + 65 + - + COUNT( * ) + + + 59 - + 59 * + NULLIF ( 40, - ( - - 21 ) ), + + 92 * - - 25 + - + 76 )
----
-25

skipif mysql # not compatible
query I rowsort label-8806
SELECT ALL 25 * COALESCE ( - COUNT ( * ), + - 23 * 49 + 65 + - + COUNT ( * ) + + + 59 - + 59 * + NULLIF ( 40, - ( - - 21 ) ), + + 92 * - - 25 + - + 76 )
----
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-8807
SELECT + 8 + - 48 + 18 DIV 66
----
-40

skipif mysql # not compatible
query I rowsort label-8807
SELECT + 8 + - 48 + 18 / 66
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-8808
SELECT + 78 - - CASE - 96 WHEN + 18 + + - 66 THEN NULL WHEN - 18 + + 30 THEN - 16 / - SUM( ALL - - 99 ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8808
SELECT + 78 - - CASE - 96 WHEN + 18 + + - 66 THEN NULL WHEN - 18 + + 30 THEN - 16 / - SUM ( ALL - - 99 ) ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8809
SELECT ALL - 15 * - COUNT( * ) - - + 63 * COUNT( ( - 96 ) ) * 99
----
6252

skipif mysql # not compatible
query I rowsort label-8809
SELECT ALL - 15 * - COUNT ( * ) - - + 63 * COUNT ( ( - 96 ) ) * 99
----
6252

query II rowsort
SELECT DISTINCT 50 AS col0, 81
----
50
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8811
SELECT ALL + COUNT( * ) - - + 51
----
52

skipif mysql # not compatible
query I rowsort label-8811
SELECT ALL + COUNT ( * ) - - + 51
----
52

query II rowsort
SELECT DISTINCT 12 AS col0, 14 * + - ( - 34 )
----
12
476

onlyif mysql # DIV for integer division: 
query I rowsort label-8813
SELECT DISTINCT - 13 - + 84 DIV 43 AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-8813
SELECT DISTINCT - 13 - + 84 / 43 AS col1
----
-14

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8814
SELECT ALL - CAST( NULL AS DECIMAL ) AS col0, + MAX( + + 36 ) * + 27
----
NULL
972

skipif mysql # not compatible
query II rowsort label-8814
SELECT ALL - CAST ( NULL AS REAL ) AS col0, + MAX ( + + 36 ) * + 27
----
NULL
972

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8815
SELECT + 12 * + CAST( NULL AS SIGNED ) + - 3
----
NULL

skipif mysql # not compatible
query I rowsort label-8815
SELECT + 12 * + CAST ( NULL AS INTEGER ) + - 3
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8816
SELECT CAST( NULL AS SIGNED ) * + + 89 * + 13 * + + 62 * + MAX( DISTINCT - ( ( + 25 ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8816
SELECT CAST ( NULL AS INTEGER ) * + + 89 * + 13 * + + 62 * + MAX ( DISTINCT - ( ( + 25 ) ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8817
SELECT ALL 21 * + - MAX( ALL - 31 ) AS col0
----
651

skipif mysql # not compatible
query I rowsort label-8817
SELECT ALL 21 * + - MAX ( ALL - 31 ) AS col0
----
651

query I rowsort
SELECT 94 * + 7 * 95
----
62510

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8819
SELECT ALL - CAST( NULL AS SIGNED ) + + 13 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8819
SELECT ALL - CAST ( NULL AS INTEGER ) + + 13 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8820
SELECT DISTINCT 20 + - - COUNT( * )
----
21

skipif mysql # not compatible
query I rowsort label-8820
SELECT DISTINCT 20 + - - COUNT ( * )
----
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8821
SELECT COALESCE ( - + COUNT( * ), + + COALESCE ( + 39, + COALESCE ( + - 67, - 96 ) * - 3 DIV 38 ), + 7 * - COUNT( * ) + + 54 ) + + + 36 AS col2
----
35

skipif mysql # not compatible
query I rowsort label-8821
SELECT COALESCE ( - + COUNT ( * ), + + COALESCE ( + 39, + COALESCE ( + - 67, - 96 ) * - 3 / 38 ), + 7 * - COUNT ( * ) + + 54 ) + + + 36 AS col2
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8822
SELECT DISTINCT - COUNT( DISTINCT + CAST( + 91 AS SIGNED ) )
----
-1

skipif mysql # not compatible
query I rowsort label-8822
SELECT DISTINCT - COUNT ( DISTINCT + CAST ( + 91 AS INTEGER ) )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-8823
SELECT ALL 55 + COUNT( * ) - - 58, 61 + + 56 col0
----
114
117

skipif mysql # not compatible
query II rowsort label-8823
SELECT ALL 55 + COUNT ( * ) - - 58, 61 + + 56 col0
----
114
117

onlyif mysql # aggregate syntax: 
query I rowsort label-8824
SELECT 45 - + COUNT( * )
----
44

skipif mysql # not compatible
query I rowsort label-8824
SELECT 45 - + COUNT ( * )
----
44

onlyif mysql # aggregate syntax: 
query II rowsort label-8825
SELECT ( + + AVG ( DISTINCT - 91 ) ) + CASE + 53 WHEN - - 11 THEN + 58 WHEN CASE - 22 WHEN - 87 + MAX( - 40 ) / + + 48 THEN - NULLIF ( COUNT( - 96 ), - - 52 ) WHEN + 54 THEN + - 36 + - - 39 ELSE NULL END THEN NULL ELSE NULL END / - - 47 * + 4 AS col2, 23
----
NULL
23

skipif mysql # not compatible
query II rowsort label-8825
SELECT ( + + AVG ( DISTINCT - 91 ) ) + CASE + 53 WHEN - - 11 THEN + 58 WHEN CASE - 22 WHEN - 87 + MAX ( - 40 ) / + + 48 THEN - NULLIF ( COUNT ( - 96 ), - - 52 ) WHEN + 54 THEN + - 36 + - - 39 ELSE NULL END THEN NULL ELSE NULL END / - - 47 * + 4 AS col2, 23
----
NULL
23

onlyif mysql # aggregate syntax: 
query I rowsort label-8826
SELECT ALL + NULLIF ( - 56, - 6 ) + - COUNT( * ) AS col0
----
-57

skipif mysql # not compatible
query I rowsort label-8826
SELECT ALL + NULLIF ( - 56, - 6 ) + - COUNT ( * ) AS col0
----
-57

query II rowsort
SELECT ALL 19 + + + CASE + 78 WHEN 70 THEN NULL ELSE + 39 END AS col1, - 13 + + 58
----
58
45

query I rowsort
SELECT ALL + 71 + - 51
----
20

query I rowsort
SELECT - 99 + 8 * 21
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-8830
SELECT ALL + 27 * 1 + COUNT( DISTINCT - - 31 ) AS col2
----
28

skipif mysql # not compatible
query I rowsort label-8830
SELECT ALL + 27 * 1 + COUNT ( DISTINCT - - 31 ) AS col2
----
28

query I rowsort
SELECT - 26 + + + ( - 92 )
----
-118

onlyif mysql # aggregate syntax: 
query I rowsort label-8832
SELECT + CASE 68 WHEN + - ( - - NULLIF ( + + COUNT( * ), - 54 ) ) THEN - + 72 * + 64 WHEN COUNT( * ) THEN + ( - SUM( ALL 35 ) ) / - + 27 END * - 39 * - 6 * - + COUNT( * ) - - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8832
SELECT + CASE 68 WHEN + - ( - - NULLIF ( + + COUNT ( * ), - 54 ) ) THEN - + 72 * + 64 WHEN COUNT ( * ) THEN + ( - SUM ( ALL 35 ) ) / - + 27 END * - 39 * - 6 * - + COUNT ( * ) - - - COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT - + 62 * + 11
----
-682

query I rowsort
SELECT 94 * + - 64 AS col1
----
-6016

onlyif mysql # aggregate syntax: 
query I rowsort label-8835
SELECT ( - COUNT( * ) ) + - 78 + + - 2
----
-81

skipif mysql # not compatible
query I rowsort label-8835
SELECT ( - COUNT ( * ) ) + - 78 + + - 2
----
-81

query II rowsort
SELECT 12 * - 34 AS col0, + 8 * + - 71 + + - 88 + + 39 * + 32
----
-408
592

onlyif mysql # aggregate syntax: 
query I rowsort label-8837
SELECT DISTINCT - COUNT( * ) * - NULLIF ( - 50, 4 )
----
-50

skipif mysql # not compatible
query I rowsort label-8837
SELECT DISTINCT - COUNT ( * ) * - NULLIF ( - 50, 4 )
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-8838
SELECT ALL COALESCE ( 11, - 81, + ( MIN( ALL 60 ) ) + COUNT( * ) + - 25 ) AS col1
----
11

skipif mysql # not compatible
query I rowsort label-8838
SELECT ALL COALESCE ( 11, - 81, + ( MIN ( ALL 60 ) ) + COUNT ( * ) + - 25 ) AS col1
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-8839
SELECT CASE + 94 WHEN 22 THEN + + ( - ( 24 ) ) * 39 END * - CASE + - 3 WHEN - - COUNT( * ) * 61 THEN + - COUNT( * ) WHEN COUNT( * ) + + + 87 * 11 THEN - ( - 81 ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8839
SELECT CASE + 94 WHEN 22 THEN + + ( - ( 24 ) ) * 39 END * - CASE + - 3 WHEN - - COUNT ( * ) * 61 THEN + - COUNT ( * ) WHEN COUNT ( * ) + + + 87 * 11 THEN - ( - 81 ) ELSE NULL END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8840
SELECT ALL - + NULLIF ( - 73, - + 98 ) DIV 26 + - 31 AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-8840
SELECT ALL - + NULLIF ( - 73, - + 98 ) / 26 + - 31 AS col0
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8841
SELECT DISTINCT + 61 * + 9 AS col2, CAST( NULL AS SIGNED ) + 64
----
549
NULL

skipif mysql # not compatible
query II rowsort label-8841
SELECT DISTINCT + 61 * + 9 AS col2, CAST ( NULL AS INTEGER ) + 64
----
549
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8842
SELECT DISTINCT - - 44 DIV 67
----
0

skipif mysql # not compatible
query I rowsort label-8842
SELECT DISTINCT - - 44 / 67
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8843
SELECT + 65 / - 47 * CASE + + 48 WHEN + - 71 THEN + 1 WHEN - 27 * - - 23 + + CASE + 12 WHEN + 25 * + 78 THEN NULL ELSE - 58 END THEN NULL END * 38 * + 3 + + + ( 1 ) * - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8843
SELECT + 65 / - 47 * CASE + + 48 WHEN + - 71 THEN + 1 WHEN - 27 * - - 23 + + CASE + 12 WHEN + 25 * + 78 THEN NULL ELSE - 58 END THEN NULL END * 38 * + 3 + + + ( 1 ) * - - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8844
SELECT ALL MIN( - - COALESCE ( - 36, + 2 * - 15, - 21 ) ) AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-8844
SELECT ALL MIN ( - - COALESCE ( - 36, + 2 * - 15, - 21 ) ) AS col1
----
-36

query I rowsort
SELECT 78 - + 22 col0
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8846
SELECT 64 AS col0, - 92 * NULLIF ( - - SUM( + 16 ), + CAST( + 56 AS SIGNED ) / + 29 )
----
64
-1472

skipif mysql # not compatible
query II rowsort label-8846
SELECT 64 AS col0, - 92 * NULLIF ( - - SUM ( + 16 ), + CAST ( + 56 AS INTEGER ) / + 29 )
----
64
-1472

query I rowsort
SELECT 88 - - 7
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-8848
SELECT DISTINCT ( - + COUNT( + + 15 ) ) * + 46 AS col0
----
-46

skipif mysql # not compatible
query I rowsort label-8848
SELECT DISTINCT ( - + COUNT ( + + 15 ) ) * + 46 AS col0
----
-46

query I rowsort
SELECT ALL - COALESCE ( - 25, + 94 )
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-8850
SELECT MIN( + - 62 ) AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-8850
SELECT MIN ( + - 62 ) AS col1
----
-62

query I rowsort
SELECT 29 * + 44 * - - 47 * - 71
----
-4258012

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8852
SELECT ALL + COUNT( * ) * CAST( + 93 AS SIGNED ) + 25
----
118

skipif mysql # not compatible
query I rowsort label-8852
SELECT ALL + COUNT ( * ) * CAST ( + 93 AS INTEGER ) + 25
----
118

onlyif mysql # aggregate syntax: 
query II rowsort label-8853
SELECT COUNT( * ) AS col1, 8 * - 90 AS col0
----
1
-720

skipif mysql # not compatible
query II rowsort label-8853
SELECT COUNT ( * ) AS col1, 8 * - 90 AS col0
----
1
-720

onlyif mysql # aggregate syntax: 
query I rowsort label-8854
SELECT SUM( + 77 ) AS col1
----
77

skipif mysql # not compatible
query I rowsort label-8854
SELECT SUM ( + 77 ) AS col1
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8855
SELECT 95 * - + 63 * + 88 + SUM( 21 ) AS col2
----
-526659

skipif mysql # not compatible
query I rowsort label-8855
SELECT 95 * - + 63 * + 88 + SUM ( 21 ) AS col2
----
-526659

onlyif mysql # aggregate syntax: 
query I rowsort label-8856
SELECT MAX( 79 ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-8856
SELECT MAX ( 79 ) AS col1
----
79

query I rowsort
SELECT 54 + - 62 - 61 * 2 + + 4 AS col0
----
-126

onlyif mysql # aggregate syntax: 
query I rowsort label-8858
SELECT + MAX( - + 59 )
----
-59

skipif mysql # not compatible
query I rowsort label-8858
SELECT + MAX ( - + 59 )
----
-59

query I rowsort
SELECT DISTINCT 78 + 85
----
163

onlyif mysql # aggregate syntax: 
query I rowsort label-8860
SELECT MAX( - 56 )
----
-56

skipif mysql # not compatible
query I rowsort label-8860
SELECT MAX ( - 56 )
----
-56

query I rowsort
SELECT ALL 1 * - ( 20 ) col2
----
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-8862
SELECT 44 DIV 81 DIV 36
----
0

skipif mysql # not compatible
query I rowsort label-8862
SELECT 44 / 81 / 36
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8863
SELECT DISTINCT COUNT( * ) - + COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8863
SELECT DISTINCT COUNT ( * ) - + COUNT ( * ) AS col1
----
0

query I rowsort
SELECT + NULLIF ( - 23, - 17 * - 14 + 24 ) AS col0
----
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-8865
SELECT DISTINCT + ( - + ( + MAX( - 98 ) ) ), 12 * - 65 + + 65 * + COUNT( * ) * - 22 col1
----
98
-2210

skipif mysql # not compatible
query II rowsort label-8865
SELECT DISTINCT + ( - + ( + MAX ( - 98 ) ) ), 12 * - 65 + + 65 * + COUNT ( * ) * - 22 col1
----
98
-2210

query I rowsort
SELECT + + 50 * + 59
----
2950

onlyif mysql # aggregate syntax: 
query I rowsort label-8867
SELECT - NULLIF ( + + ( + 99 ), - - 68 * + NULLIF ( + 61, 76 + - AVG ( ALL + 79 ) + - - 90 + + + 28 + 48 * - - MIN( 42 ) ) * COUNT( * ) + 91 - - 69 * - COUNT( * ) - ( 67 ) - - - COALESCE ( - 44, - COUNT( 66 ), + 58 ) ) AS col2
----
-99

skipif mysql # not compatible
query I rowsort label-8867
SELECT - NULLIF ( + + ( + 99 ), - - 68 * + NULLIF ( + 61, 76 + - AVG ( ALL + 79 ) + - - 90 + + + 28 + 48 * - - MIN ( 42 ) ) * COUNT ( * ) + 91 - - 69 * - COUNT ( * ) - ( 67 ) - - - COALESCE ( - 44, - COUNT ( 66 ), + 58 ) ) AS col2
----
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8868
SELECT - COUNT( * ) * - + 33 DIV 22 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8868
SELECT - COUNT ( * ) * - + 33 / 22 AS col1
----
1

query II rowsort
SELECT + 77 + 82 * + 21 + + - 20 AS col0, 86
----
1779
86

query II rowsort
SELECT ALL + 73 - - 33 + - 70 + 91, + 52 + + - 60 + + - 8 col2
----
127
-16

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8871
SELECT - 68 AS col2, - CAST( NULL AS SIGNED )
----
-68
NULL

skipif mysql # not compatible
query II rowsort label-8871
SELECT - 68 AS col2, - CAST ( NULL AS INTEGER )
----
-68
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8872
SELECT + 0 * + - SUM( ALL - 27 )
----
0

skipif mysql # not compatible
query I rowsort label-8872
SELECT + 0 * + - SUM ( ALL - 27 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8873
SELECT - + 18 - - + NULLIF ( - 52, + 15 * - 91 ) * - CASE + - 37 WHEN - COUNT( DISTINCT + 63 ) * + COALESCE ( - MIN( - 71 ), 40 ) * ( - 55 ) - - 18 THEN 69 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8873
SELECT - + 18 - - + NULLIF ( - 52, + 15 * - 91 ) * - CASE + - 37 WHEN - COUNT ( DISTINCT + 63 ) * + COALESCE ( - MIN ( - 71 ), 40 ) * ( - 55 ) - - 18 THEN 69 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8874
SELECT ALL + COALESCE ( - 45, SUM( ALL 84 ) ) AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-8874
SELECT ALL + COALESCE ( - 45, SUM ( ALL 84 ) ) AS col0
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8875
SELECT - - 27 * - - 11 + + 21 - AVG ( ALL - - 82 ) + + + MIN( - CAST( NULL AS SIGNED ) ) * 31 * 21 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8875
SELECT - - 27 * - - 11 + + 21 - AVG ( ALL - - 82 ) + + + MIN ( - CAST ( NULL AS INTEGER ) ) * 31 * 21 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8876
SELECT ALL - NULLIF ( - MIN( ALL + COALESCE ( + 86, - 63 ) ), + 53 ) AS col2
----
86

skipif mysql # not compatible
query I rowsort label-8876
SELECT ALL - NULLIF ( - MIN ( ALL + COALESCE ( + 86, - 63 ) ), + 53 ) AS col2
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8877
SELECT - CAST( NULL AS SIGNED ) + - 35 * - ( - 99 ) + - + 10 * 28 + - + 46 AS col1, - ( + 63 ) AS col0
----
NULL
-63

skipif mysql # not compatible
query II rowsort label-8877
SELECT - CAST ( NULL AS INTEGER ) + - 35 * - ( - 99 ) + - + 10 * 28 + - + 46 AS col1, - ( + 63 ) AS col0
----
NULL
-63

query I rowsort
SELECT - 16 - + 38 AS col1
----
-54

query I rowsort
SELECT DISTINCT COALESCE ( - + 82, + 54, - + 89 ) AS col0
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8880
SELECT - COUNT( + 45 ) + - CAST( 33 AS SIGNED ) AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-8880
SELECT - COUNT ( + 45 ) + - CAST ( 33 AS INTEGER ) AS col0
----
-34

query II rowsort
SELECT - 80 + + 44, 20 + 61 + + - 31 + 68 * + 96 + + 36 AS col0
----
-36
6614

query I rowsort
SELECT ALL - NULLIF ( + - 13, - 21 ) * 13 + - 0 + + 29 AS col2
----
198

query I rowsort
SELECT - 20 * + 47 AS col0
----
-940

onlyif mysql # aggregate syntax: 
query I rowsort label-8884
SELECT + COUNT( * ) * + 4 * - 98 AS col0
----
-392

skipif mysql # not compatible
query I rowsort label-8884
SELECT + COUNT ( * ) * + 4 * - 98 AS col0
----
-392

onlyif mysql # aggregate syntax: 
query I rowsort label-8885
SELECT ALL + 90 * COUNT( * ) * COUNT( * ) AS col2
----
90

skipif mysql # not compatible
query I rowsort label-8885
SELECT ALL + 90 * COUNT ( * ) * COUNT ( * ) AS col2
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8886
SELECT + COUNT( * ) DIV + 17 AS col0, - 89
----
0
-89

skipif mysql # not compatible
query II rowsort label-8886
SELECT + COUNT ( * ) / + 17 AS col0, - 89
----
0
-89

query I rowsort
SELECT + 2 + + 56
----
58

query I rowsort
SELECT ALL 8 * 42 AS col2
----
336

onlyif mysql # aggregate syntax: 
query I rowsort label-8889
SELECT ALL - 88 * + - COUNT( * ) - 41 col2
----
47

skipif mysql # not compatible
query I rowsort label-8889
SELECT ALL - 88 * + - COUNT ( * ) - 41 col2
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8890
SELECT DISTINCT - 45 * - MIN( + 22 ) * + + ( + 26 ), ( - CAST( + 78 AS SIGNED ) ) * - 97 * + 14 AS col0
----
25740
105924

skipif mysql # not compatible
query II rowsort label-8890
SELECT DISTINCT - 45 * - MIN ( + 22 ) * + + ( + 26 ), ( - CAST ( + 78 AS INTEGER ) ) * - 97 * + 14 AS col0
----
25740
105924

query I rowsort
SELECT + 66 * + 62 * + 92
----
376464

onlyif mysql # aggregate syntax: 
query I rowsort label-8892
SELECT ALL - ( - - COUNT( * ) ) * + + 45 AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-8892
SELECT ALL - ( - - COUNT ( * ) ) * + + 45 AS col2
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-8893
SELECT ALL + - CASE COUNT( * ) WHEN + 60 + + MAX( ALL + + 24 ) + + + 50 * - 52 THEN + + 60 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8893
SELECT ALL + - CASE COUNT ( * ) WHEN + 60 + + MAX ( ALL + + 24 ) + + + 50 * - 52 THEN + + 60 END AS col1
----
NULL

query I rowsort
SELECT - + 5 * + 31
----
-155

onlyif mysql # aggregate syntax: 
query II rowsort label-8895
SELECT + 8 * - - 96 * + 70 * + SUM( DISTINCT - 30 ) col0, 6
----
-1612800
6

skipif mysql # not compatible
query II rowsort label-8895
SELECT + 8 * - - 96 * + 70 * + SUM ( DISTINCT - 30 ) col0, 6
----
-1612800
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8896
SELECT + - 67 * + - COALESCE ( 50, - 37, + 68 * + ( + 8 ) ) + - COUNT( * )
----
3349

skipif mysql # not compatible
query I rowsort label-8896
SELECT + - 67 * + - COALESCE ( 50, - 37, + 68 * + ( + 8 ) ) + - COUNT ( * )
----
3349

query II rowsort
SELECT + 75 * ( + ( - + 45 ) ), + 93 AS col0
----
-3375
93

query I rowsort
SELECT ALL - 27 * + 37 * + 91 AS col2
----
-90909

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8899
SELECT + + CAST( NULL AS SIGNED ) + - 63 + - 45 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8899
SELECT + + CAST ( NULL AS INTEGER ) + - 63 + - 45 AS col0
----
NULL

query I rowsort
SELECT ALL + ( + - 17 ) col1
----
-17

onlyif mysql # aggregate syntax: 
query II rowsort label-8901
SELECT + - COUNT( * ) + - - 26 AS col2, ( 64 ) AS col0
----
25
64

skipif mysql # not compatible
query II rowsort label-8901
SELECT + - COUNT ( * ) + - - 26 AS col2, ( 64 ) AS col0
----
25
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8902
SELECT ALL - 83 * - 93 - - - COUNT( * ) DIV - 83 col2, + 14 AS col1
----
7719
14

skipif mysql # not compatible
query II rowsort label-8902
SELECT ALL - 83 * - 93 - - - COUNT ( * ) / - 83 col2, + 14 AS col1
----
7719
14

onlyif mysql # aggregate syntax: 
query I rowsort label-8903
SELECT ALL 94 + + COUNT( * ) * 68 AS col2
----
162

skipif mysql # not compatible
query I rowsort label-8903
SELECT ALL 94 + + COUNT ( * ) * 68 AS col2
----
162

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8904
SELECT + CASE + ( + - COALESCE ( - 76, + 69 + + - 38 ) ) WHEN CAST( NULL AS SIGNED ) THEN NULL WHEN - - COUNT( * ) THEN + 58 - + 96 END * + 50 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8904
SELECT + CASE + ( + - COALESCE ( - 76, + 69 + + - 38 ) ) WHEN CAST ( NULL AS INTEGER ) THEN NULL WHEN - - COUNT ( * ) THEN + 58 - + 96 END * + 50 col2
----
NULL

query I rowsort
SELECT - 47 + - ( 69 )
----
-116

onlyif mysql # aggregate syntax: 
query I rowsort label-8906
SELECT ALL 21 + - COUNT( * ) AS col1
----
20

skipif mysql # not compatible
query I rowsort label-8906
SELECT ALL 21 + - COUNT ( * ) AS col1
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-8907
SELECT DISTINCT 35 DIV + + 78 col2
----
0

skipif mysql # not compatible
query I rowsort label-8907
SELECT DISTINCT 35 / + + 78 col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8908
SELECT + COALESCE ( - ( 40 ), ( 7 ) ) DIV 98 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8908
SELECT + COALESCE ( - ( 40 ), ( 7 ) ) / 98 AS col0
----
0

query I rowsort
SELECT ALL - ( + 50 ) + + + CASE WHEN NOT ( NULL ) IS NULL THEN NULL ELSE 42 END + - - 23 AS col0
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8910
SELECT ALL - CAST( NULL AS SIGNED ) * 99 * 33 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8910
SELECT ALL - CAST ( NULL AS INTEGER ) * 99 * 33 col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8911
SELECT DISTINCT 4 + + MIN( + + 74 ) AS col0, - 80 - + 65 col0
----
78
-145

skipif mysql # not compatible
query II rowsort label-8911
SELECT DISTINCT 4 + + MIN ( + + 74 ) AS col0, - 80 - + 65 col0
----
78
-145

query I rowsort
SELECT - 33 * + + 19 AS col1
----
-627

onlyif mysql # aggregate syntax: 
query I rowsort label-8913
SELECT ALL COUNT( * ) + + + 10 AS col2
----
11

skipif mysql # not compatible
query I rowsort label-8913
SELECT ALL COUNT ( * ) + + + 10 AS col2
----
11

query I rowsort
SELECT + 44 * - + 80 AS col2
----
-3520

query I rowsort
SELECT + 20 - + 6
----
14

query I rowsort
SELECT ALL ( - + 67 )
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8917
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8917
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8918
SELECT - 97 + - - COUNT( * )
----
-96

skipif mysql # not compatible
query I rowsort label-8918
SELECT - 97 + - - COUNT ( * )
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8919
SELECT - COUNT( * ) * CAST( + 49 AS SIGNED ) * - COUNT( * ) * + - 3 * - 28 AS col1
----
4116

skipif mysql # not compatible
query I rowsort label-8919
SELECT - COUNT ( * ) * CAST ( + 49 AS INTEGER ) * - COUNT ( * ) * + - 3 * - 28 AS col1
----
4116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8920
SELECT ALL + 68 - + + ( - CAST( + SUM( DISTINCT - - CAST( + 78 AS SIGNED ) ) AS SIGNED ) ) AS col0
----
146

skipif mysql # not compatible
query I rowsort label-8920
SELECT ALL + 68 - + + ( - CAST ( + SUM ( DISTINCT - - CAST ( + 78 AS INTEGER ) ) AS INTEGER ) ) AS col0
----
146

onlyif mysql # DIV for integer division: 
query I rowsort label-8921
SELECT ALL + 69 DIV 15
----
4

skipif mysql # not compatible
query I rowsort label-8921
SELECT ALL + 69 / 15
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8922
SELECT 38 DIV COUNT( * )
----
38

skipif mysql # not compatible
query I rowsort label-8922
SELECT 38 / COUNT ( * )
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-8923
SELECT - MAX( DISTINCT + COALESCE ( + COALESCE ( 5, + + 7 ), 61 ) ) * + 1 AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-8923
SELECT - MAX ( DISTINCT + COALESCE ( + COALESCE ( 5, + + 7 ), 61 ) ) * + 1 AS col2
----
-5

query II rowsort
SELECT 54 AS col0, 44 AS col1
----
54
44

query I rowsort
SELECT + 9 * + 57 + 48 AS col1
----
561

query I rowsort
SELECT 0 * + 85 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8927
SELECT ALL + - 13 DIV - 25
----
0

skipif mysql # not compatible
query I rowsort label-8927
SELECT ALL + - 13 / - 25
----
0

query II rowsort
SELECT + 13 AS col2, + 61
----
13
61

query I rowsort
SELECT 79 * + - 58 AS col0
----
-4582

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8930
SELECT ALL + 87 * + NULLIF ( - - 78, + 46 ) - + + NULLIF ( 64, - + 75 + + CAST( + - CASE + - 16 WHEN - - COUNT( ALL 65 ) THEN NULL ELSE + - ( + + 59 ) END AS SIGNED ) * - 59 * - COALESCE ( 42, - + 2, - COUNT( * ) ) * - 66 + - 9 + 67 * - + ( + 93 ) ) * - 26 + + 3 - + - 74 DIV - - CAST( + 84 AS SIGNED )
----
8453

skipif mysql # not compatible
query I rowsort label-8930
SELECT ALL + 87 * + NULLIF ( - - 78, + 46 ) - + + NULLIF ( 64, - + 75 + + CAST ( + - CASE + - 16 WHEN - - COUNT ( ALL 65 ) THEN NULL ELSE + - ( + + 59 ) END AS INTEGER ) * - 59 * - COALESCE ( 42, - + 2, - COUNT ( * ) ) * - 66 + - 9 + 67 * - + ( + 93 ) ) * - 26 + + 3 - + - 74 / - - CAST ( + 84 AS INTEGER )
----
8453

query II rowsort
SELECT + 63, 35 - - + ( - 89 ) AS col1
----
63
-54

query I rowsort
SELECT + + ( 60 ) AS col0
----
60

query II rowsort
SELECT + + 44, 85 AS col2
----
44
85

query I rowsort
SELECT 59 * 0
----
0

query I rowsort
SELECT - 9 * 46 col1
----
-414

onlyif mysql # aggregate syntax: 
query I rowsort label-8936
SELECT MIN( + 26 ) + - 0 - 7 AS col2
----
19

skipif mysql # not compatible
query I rowsort label-8936
SELECT MIN ( + 26 ) + - 0 - 7 AS col2
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-8937
SELECT + 62 + + SUM( - - 92 ) col0
----
154

skipif mysql # not compatible
query I rowsort label-8937
SELECT + 62 + + SUM ( - - 92 ) col0
----
154

onlyif mysql # aggregate syntax: 
query I rowsort label-8938
SELECT ALL COUNT( * ) + + - 71 + - - 21
----
-49

skipif mysql # not compatible
query I rowsort label-8938
SELECT ALL COUNT ( * ) + + - 71 + - - 21
----
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8939
SELECT + CAST( - 63 AS SIGNED ) + - - 12 + - - 6 + - 9 / - - ( + CASE + 90 WHEN + COUNT( * ) THEN COUNT( * ) ELSE NULL END ) * - 14 + 70 * - 98 * + + 16 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8939
SELECT + CAST ( - 63 AS INTEGER ) + - - 12 + - - 6 + - 9 / - - ( + CASE + 90 WHEN + COUNT ( * ) THEN COUNT ( * ) ELSE NULL END ) * - 14 + 70 * - 98 * + + 16 col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8940
SELECT + 45 * - 24 * + CAST( - NULLIF ( - 6, + ( - 0 ) * - 24 ) AS SIGNED ) + + 59 + + 30 + - 17 * - - MAX( - 5 ) * - 71 - + 50 AS col2
----
-12476

skipif mysql # not compatible
query I rowsort label-8940
SELECT + 45 * - 24 * + CAST ( - NULLIF ( - 6, + ( - 0 ) * - 24 ) AS INTEGER ) + + 59 + + 30 + - 17 * - - MAX ( - 5 ) * - 71 - + 50 AS col2
----
-12476

onlyif mysql # aggregate syntax: 
query I rowsort label-8941
SELECT 91 * + 81 * MIN( ALL - 24 ) + 11
----
-176893

skipif mysql # not compatible
query I rowsort label-8941
SELECT 91 * + 81 * MIN ( ALL - 24 ) + 11
----
-176893

onlyif mysql # DIV for integer division: 
query I rowsort label-8942
SELECT DISTINCT + 22 * + 30 + ( + 14 ) DIV - - 38 AS col2
----
660

skipif mysql # not compatible
query I rowsort label-8942
SELECT DISTINCT + 22 * + 30 + ( + 14 ) / - - 38 AS col2
----
660

onlyif mysql # DIV for integer division: 
query I rowsort label-8943
SELECT ALL + - 33 DIV - + 44 col1
----
0

skipif mysql # not compatible
query I rowsort label-8943
SELECT ALL + - 33 / - + 44 col1
----
0

query I rowsort
SELECT ( 50 ) + + - 11
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8945
SELECT DISTINCT NULLIF ( - 82, + - NULLIF ( - + COALESCE ( + 64, 90, + 54, - COUNT( DISTINCT - 32 ) ), - COALESCE ( + + 41, + 75, - - NULLIF ( - 40, - + 16 ), - COALESCE ( + - CAST( NULL AS SIGNED ), 58 - 49 ) ) ) + + 17 + + - CAST( NULL AS DECIMAL ) ) + + CASE - 97 WHEN + 11 THEN NULL ELSE - + 40 + 37 END, - 12 * - 68 AS col2
----
-85
816

skipif mysql # not compatible
query II rowsort label-8945
SELECT DISTINCT NULLIF ( - 82, + - NULLIF ( - + COALESCE ( + 64, 90, + 54, - COUNT ( DISTINCT - 32 ) ), - COALESCE ( + + 41, + 75, - - NULLIF ( - 40, - + 16 ), - COALESCE ( + - CAST ( NULL AS INTEGER ), 58 - 49 ) ) ) + + 17 + + - CAST ( NULL AS REAL ) ) + + CASE - 97 WHEN + 11 THEN NULL ELSE - + 40 + 37 END, - 12 * - 68 AS col2
----
-85
816

query I rowsort
SELECT ALL 63 + + 3 AS col2
----
66

query II rowsort
SELECT - 42 AS col1, - 19
----
-42
-19

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8948
SELECT CAST( NULL AS SIGNED ) + - - 28 AS col2, - 97 + + - 76 + + + 10
----
NULL
-163

skipif mysql # not compatible
query II rowsort label-8948
SELECT CAST ( NULL AS INTEGER ) + - - 28 AS col2, - 97 + + - 76 + + + 10
----
NULL
-163

query I rowsort
SELECT NULLIF ( + 1, - 76 - 46 ) + - 11 + - 93 + - 41 - 83 col0
----
-227

onlyif mysql # aggregate syntax: 
query II rowsort label-8950
SELECT ALL 98 col2, COUNT( * )
----
98
1

skipif mysql # not compatible
query II rowsort label-8950
SELECT ALL 98 col2, COUNT ( * )
----
98
1

query II rowsort
SELECT 66 AS col2, 38 * - 17 AS col2
----
66
-646

onlyif mysql # DIV for integer division: 
query I rowsort label-8952
SELECT ALL 3 - + + 84 DIV - 93 + + NULLIF ( + + 54, 73 )
----
57

skipif mysql # not compatible
query I rowsort label-8952
SELECT ALL 3 - + + 84 / - 93 + + NULLIF ( + + 54, 73 )
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-8953
SELECT DISTINCT MIN( 68 ) * + 94 * - ( 11 ) + - COUNT( * ) - - 82 * + 95 + - + 26
----
-62549

skipif mysql # not compatible
query I rowsort label-8953
SELECT DISTINCT MIN ( 68 ) * + 94 * - ( 11 ) + - COUNT ( * ) - - 82 * + 95 + - + 26
----
-62549

onlyif mysql # DIV for integer division: 
query I rowsort label-8954
SELECT DISTINCT 26 DIV - - ( - 69 ) * 22 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8954
SELECT DISTINCT 26 / - - ( - 69 ) * 22 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8955
SELECT ALL 64 AS col0, 43 * - + COUNT( * ) * CAST( + 11 AS SIGNED )
----
64
-473

skipif mysql # not compatible
query II rowsort label-8955
SELECT ALL 64 AS col0, 43 * - + COUNT ( * ) * CAST ( + 11 AS INTEGER )
----
64
-473

query I rowsort
SELECT 48 + 18
----
66

query II rowsort
SELECT 96, 21 col1
----
96
21

query I rowsort
SELECT ALL ( - 74 ) - 21
----
-95

query I rowsort
SELECT 63 * - 77 * COALESCE ( 17, 12 )
----
-82467

onlyif mysql # aggregate syntax: 
query II rowsort label-8960
SELECT DISTINCT 84 * - 94 AS col0, NULLIF ( + 28, - 61 - COUNT( * ) )
----
-7896
28

skipif mysql # not compatible
query II rowsort label-8960
SELECT DISTINCT 84 * - 94 AS col0, NULLIF ( + 28, - 61 - COUNT ( * ) )
----
-7896
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8961
SELECT 85 AS col1, 69 + + + 65 DIV MIN( - 95 ) * - 11 + + 20 AS col0
----
85
89

skipif mysql # not compatible
query II rowsort label-8961
SELECT 85 AS col1, 69 + + + 65 / MIN ( - 95 ) * - 11 + + 20 AS col0
----
85
89

query I rowsort
SELECT DISTINCT 8 * 89 col0
----
712

query I rowsort
SELECT DISTINCT - 58 + - 90
----
-148

query II rowsort
SELECT + 36 AS col2, 93 + + - 8 AS col1
----
36
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8965
SELECT ALL + + 65 + COALESCE ( + - CAST( NULL AS SIGNED ), - 95 ) AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-8965
SELECT ALL + + 65 + COALESCE ( + - CAST ( NULL AS INTEGER ), - 95 ) AS col0
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8966
SELECT COUNT( * ) + - 75 - CASE COUNT( * ) WHEN + CASE + 6 WHEN + 87 THEN - + 60 * + COUNT( * ) * + + MIN( ALL + - 53 ) WHEN - ( COALESCE ( + 80, 73, 13 + - 15 ) ) / + - 22 / 17 + 97 THEN ( - COUNT( * ) ) - 56 * SUM( + + CAST( + - 61 AS SIGNED ) ) END + + + NULLIF ( - + ( + 26 ), - 64 ) THEN + SUM( - 62 ) END - + ( - + 46 ), + 14 * + 87 + ( + 64 ) AS col0
----
NULL
1282

skipif mysql # not compatible
query II rowsort label-8966
SELECT COUNT ( * ) + - 75 - CASE COUNT ( * ) WHEN + CASE + 6 WHEN + 87 THEN - + 60 * + COUNT ( * ) * + + MIN ( ALL + - 53 ) WHEN - ( COALESCE ( + 80, 73, 13 + - 15 ) ) / + - 22 / 17 + 97 THEN ( - COUNT ( * ) ) - 56 * SUM ( + + CAST ( + - 61 AS INTEGER ) ) END + + + NULLIF ( - + ( + 26 ), - 64 ) THEN + SUM ( - 62 ) END - + ( - + 46 ), + 14 * + 87 + ( + 64 ) AS col0
----
NULL
1282

query I rowsort
SELECT ALL + + 48 + - 43 * - + 59 * + 34
----
86306

query I rowsort
SELECT + 32 * - 46
----
-1472

onlyif mysql # DIV for integer division: 
query I rowsort label-8969
SELECT DISTINCT - - 35 DIV + 73
----
0

skipif mysql # not compatible
query I rowsort label-8969
SELECT DISTINCT - - 35 / + 73
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-8970
SELECT + 93, 2 DIV - - 65 * + 63 AS col0
----
93
0

skipif mysql # not compatible
query II rowsort label-8970
SELECT + 93, 2 / - - 65 * + 63 AS col0
----
93
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8971
SELECT ALL - - CAST( CASE + NULLIF ( 83, ( - COUNT( * ) ) ) WHEN + 7 + - 7 THEN NULL WHEN + 91 THEN + 87 * + - CAST( COUNT( * ) AS SIGNED ) * + 43 + - 48 END AS SIGNED ) + + + CAST( COUNT( * ) AS SIGNED ) + - 81 + + + NULLIF ( - CASE - 68 WHEN + - 52 THEN + 57 END, + 20 + 85 ) + 22 * - 88 + + 16
----
NULL

skipif mysql # not compatible
query I rowsort label-8971
SELECT ALL - - CAST ( CASE + NULLIF ( 83, ( - COUNT ( * ) ) ) WHEN + 7 + - 7 THEN NULL WHEN + 91 THEN + 87 * + - CAST ( COUNT ( * ) AS INTEGER ) * + 43 + - 48 END AS INTEGER ) + + + CAST ( COUNT ( * ) AS INTEGER ) + - 81 + + + NULLIF ( - CASE - 68 WHEN + - 52 THEN + 57 END, + 20 + 85 ) + 22 * - 88 + + 16
----
NULL

query I rowsort
SELECT ALL + 9 + 46 * - ( - 42 ) AS col0
----
1941

onlyif mysql # aggregate syntax: 
query I rowsort label-8973
SELECT - - COALESCE ( - 27, - + 79 * MIN( DISTINCT 90 ) + - 68 )
----
-27

skipif mysql # not compatible
query I rowsort label-8973
SELECT - - COALESCE ( - 27, - + 79 * MIN ( DISTINCT 90 ) + - 68 )
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-8974
SELECT DISTINCT + - COALESCE ( - COUNT( * ), + 18 + - - ( + 89 ) + + COUNT( * ) * - + 94 + - COUNT( * ) + 13 + + - COUNT( * ) + + 25 * + 77 * - 6 * + 52 ) + - 78
----
-77

skipif mysql # not compatible
query I rowsort label-8974
SELECT DISTINCT + - COALESCE ( - COUNT ( * ), + 18 + - - ( + 89 ) + + COUNT ( * ) * - + 94 + - COUNT ( * ) + 13 + + - COUNT ( * ) + + 25 * + 77 * - 6 * + 52 ) + - 78
----
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-8975
SELECT ALL + ( 58 ), COUNT( * ) AS col2
----
58
1

skipif mysql # not compatible
query II rowsort label-8975
SELECT ALL + ( 58 ), COUNT ( * ) AS col2
----
58
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8976
SELECT - 9 + 99 * + 61 * COUNT( + ( 67 ) )
----
6030

skipif mysql # not compatible
query I rowsort label-8976
SELECT - 9 + 99 * + 61 * COUNT ( + ( 67 ) )
----
6030

query I rowsort
SELECT 94 * + ( - + 19 ) AS col2
----
-1786

onlyif mysql # aggregate syntax: 
query I rowsort label-8978
SELECT COUNT( * ) * + 46 * 77 col0
----
3542

skipif mysql # not compatible
query I rowsort label-8978
SELECT COUNT ( * ) * + 46 * 77 col0
----
3542

query I rowsort
SELECT ALL 85 * - 25 AS col1
----
-2125

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8980
SELECT + 91 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8980
SELECT + 91 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 3 * + + 66
----
198

onlyif mysql # aggregate syntax: 
query II rowsort label-8982
SELECT + MIN( DISTINCT + + NULLIF ( + 59, 93 ) ) + - - ( + 61 ) + + ( - 4 ) col2, - 66 AS col1
----
116
-66

skipif mysql # not compatible
query II rowsort label-8982
SELECT + MIN ( DISTINCT + + NULLIF ( + 59, 93 ) ) + - - ( + 61 ) + + ( - 4 ) col2, - 66 AS col1
----
116
-66

query I rowsort
SELECT ALL 49 * + 68
----
3332

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8984
SELECT - 55 DIV - COUNT( * )
----
55

skipif mysql # not compatible
query I rowsort label-8984
SELECT - 55 / - COUNT ( * )
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-8985
SELECT - 31 - + COUNT( * ) * + 56 * + 14 AS col2
----
-815

skipif mysql # not compatible
query I rowsort label-8985
SELECT - 31 - + COUNT ( * ) * + 56 * + 14 AS col2
----
-815

onlyif mysql # aggregate syntax: 
query I rowsort label-8986
SELECT + 7 - COUNT( * )
----
6

skipif mysql # not compatible
query I rowsort label-8986
SELECT + 7 - COUNT ( * )
----
6

query I rowsort
SELECT - COALESCE ( - 0, 85 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8988
SELECT + 25 DIV - COUNT( * ) AS col1, - 39
----
-25
-39

skipif mysql # not compatible
query II rowsort label-8988
SELECT + 25 / - COUNT ( * ) AS col1, - 39
----
-25
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8989
SELECT ALL - - 41 * + COUNT( * ) + + 56 + + - 85 * 97 + - 30 * + CAST( NULL AS SIGNED ) AS col0, 1 DIV + 81 DIV + COUNT( * ) * + + ( + - 6 ) AS col2
----
NULL
0

skipif mysql # not compatible
query II rowsort label-8989
SELECT ALL - - 41 * + COUNT ( * ) + + 56 + + - 85 * 97 + - 30 * + CAST ( NULL AS INTEGER ) AS col0, 1 / + 81 / + COUNT ( * ) * + + ( + - 6 ) AS col2
----
NULL
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8990
SELECT DISTINCT + + COUNT( DISTINCT 3 )
----
1

skipif mysql # not compatible
query I rowsort label-8990
SELECT DISTINCT + + COUNT ( DISTINCT 3 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8991
SELECT ALL COUNT( * ) * - NULLIF ( 66, 40 + - 3 ) + - 33 AS col1
----
-99

skipif mysql # not compatible
query I rowsort label-8991
SELECT ALL COUNT ( * ) * - NULLIF ( 66, 40 + - 3 ) + - 33 AS col1
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8992
SELECT + MIN( ALL 97 ) AS col0
----
97

skipif mysql # not compatible
query I rowsort label-8992
SELECT + MIN ( ALL 97 ) AS col0
----
97

query I rowsort
SELECT ALL + + 32 * - + 4 + - 1 + + 60 * - 31 AS col2
----
-1989

query I rowsort
SELECT + 68 - + 54 + - 84 AS col0
----
-70

query I rowsort
SELECT - CASE - + 60 WHEN 11 - - ( - 17 ) * - + 67 * - 83 THEN + + 98 + - + 37 + - 33 ELSE NULL END col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8996
SELECT + COUNT( * ) * - + COUNT( * ), + 19 AS col1
----
-1
19

skipif mysql # not compatible
query II rowsort label-8996
SELECT + COUNT ( * ) * - + COUNT ( * ), + 19 AS col1
----
-1
19

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8997
SELECT - 0 * - 90 * + + 22 - - + 99 * 1 AS col1, + 61 + + CAST( 74 AS SIGNED ) AS col2
----
99
135

skipif mysql # not compatible
query II rowsort label-8997
SELECT - 0 * - 90 * + + 22 - - + 99 * 1 AS col1, + 61 + + CAST ( 74 AS INTEGER ) AS col2
----
99
135

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8998
SELECT ALL 27 * - 71 DIV - COUNT( * ) * - COUNT( * )
----
-1917

skipif mysql # not compatible
query I rowsort label-8998
SELECT ALL 27 * - 71 / - COUNT ( * ) * - COUNT ( * )
----
-1917

onlyif mysql # aggregate syntax: 
query I rowsort label-8999
SELECT + 24 * + + 20 - - + ( + - MAX( DISTINCT + - ( + - 54 ) ) ) * - 44 + + 30
----
2886

skipif mysql # not compatible
query I rowsort label-8999
SELECT + 24 * + + 20 - - + ( + - MAX ( DISTINCT + - ( + - 54 ) ) ) * - 44 + + 30
----
2886

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9000
SELECT DISTINCT - 25 * + 42 + - 25 + - 12 + ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9000
SELECT DISTINCT - 25 * + 42 + - 25 + - 12 + ( + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9001
SELECT ALL - - 57 / + 46 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9001
SELECT ALL - - 57 / + 46 + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + - ( - 33 ) AS col1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-9003
SELECT + 46 + + + NULLIF ( - - 82, 20 + - COUNT( * ) ) + SUM( ALL 42 ) + COUNT( * ) * + 33
----
203

skipif mysql # not compatible
query I rowsort label-9003
SELECT + 46 + + + NULLIF ( - - 82, 20 + - COUNT ( * ) ) + SUM ( ALL 42 ) + COUNT ( * ) * + 33
----
203

query I rowsort
SELECT - 10 * 75
----
-750

onlyif mysql # DIV for integer division: 
query I rowsort label-9005
SELECT ALL - 72 DIV + + 14 AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-9005
SELECT ALL - 72 / + + 14 AS col0
----
-5

query I rowsort
SELECT + 21 + - 52 + - 80 AS col0
----
-111

onlyif mysql # DIV for integer division: 
query I rowsort label-9007
SELECT - 27 DIV - 29 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9007
SELECT - 27 / - 29 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9008
SELECT - 98 + - 12 + + COUNT( * ) col2
----
-109

skipif mysql # not compatible
query I rowsort label-9008
SELECT - 98 + - 12 + + COUNT ( * ) col2
----
-109

query I rowsort
SELECT ALL + 99 - 68
----
31

query I rowsort
SELECT - 15 * + 68
----
-1020

query I rowsort
SELECT - 74 + - 72 + 30
----
-116

onlyif mysql # aggregate syntax: 
query I rowsort label-9012
SELECT ALL - CASE - COUNT( * ) WHEN 40 THEN 73 * - ( - COALESCE ( + 58, - 91, - - 43 * - + SUM( 76 ) + - - 12 ) ) WHEN 13 THEN NULL END * 42 * + 18
----
NULL

skipif mysql # not compatible
query I rowsort label-9012
SELECT ALL - CASE - COUNT ( * ) WHEN 40 THEN 73 * - ( - COALESCE ( + 58, - 91, - - 43 * - + SUM ( 76 ) + - - 12 ) ) WHEN 13 THEN NULL END * 42 * + 18
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9013
SELECT ALL CAST( NULL AS SIGNED ) AS col2, MAX( DISTINCT - NULLIF ( + + 85, + 5 ) ) * + 11 + + + 94 - 59 * - 8 AS col0
----
NULL
-369

skipif mysql # not compatible
query II rowsort label-9013
SELECT ALL CAST ( NULL AS INTEGER ) AS col2, MAX ( DISTINCT - NULLIF ( + + 85, + 5 ) ) * + 11 + + + 94 - 59 * - 8 AS col0
----
NULL
-369

query I rowsort
SELECT - 67 + - ( + 86 ) AS col0
----
-153

onlyif mysql # aggregate syntax: 
query II rowsort label-9015
SELECT - COUNT( * ) + + 65 * 21 AS col1, - 22
----
1364
-22

skipif mysql # not compatible
query II rowsort label-9015
SELECT - COUNT ( * ) + + 65 * 21 AS col1, - 22
----
1364
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9016
SELECT DISTINCT - 82 * CASE WHEN 12 = - - 22 THEN - 10 - + 0 * - CAST( NULL AS SIGNED ) ELSE NULL END * + 83 - 65 * - 52 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9016
SELECT DISTINCT - 82 * CASE WHEN 12 = - - 22 THEN - 10 - + 0 * - CAST ( NULL AS INTEGER ) ELSE NULL END * + 83 - 65 * - 52 AS col0
----
NULL

query I rowsort
SELECT DISTINCT ( + - 61 ) AS col2
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-9018
SELECT - 32 + - COUNT( ALL 37 ) - - + 80 + - 3 * - - 55 * - + 8 AS col1
----
1367

skipif mysql # not compatible
query I rowsort label-9018
SELECT - 32 + - COUNT ( ALL 37 ) - - + 80 + - 3 * - - 55 * - + 8 AS col1
----
1367

onlyif mysql # aggregate syntax: 
query I rowsort label-9019
SELECT - COUNT( * ) + + - COUNT( * ) + + + COALESCE ( - 60, + 55 ) * + COALESCE ( - 29, COUNT( * ) * - 99, + COUNT( * ) )
----
1738

skipif mysql # not compatible
query I rowsort label-9019
SELECT - COUNT ( * ) + + - COUNT ( * ) + + + COALESCE ( - 60, + 55 ) * + COALESCE ( - 29, COUNT ( * ) * - 99, + COUNT ( * ) )
----
1738

query I rowsort
SELECT + ( - 58 ) - 8 col2
----
-66

query I rowsort
SELECT - 84 + - 85 AS col1
----
-169

onlyif mysql # aggregate syntax: 
query I rowsort label-9022
SELECT - SUM( ALL + 24 ) AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-9022
SELECT - SUM ( ALL + 24 ) AS col1
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-9023
SELECT + - 5 + - + 64 + - SUM( + + 37 ) - + - 28
----
-78

skipif mysql # not compatible
query I rowsort label-9023
SELECT + - 5 + - + 64 + - SUM ( + + 37 ) - + - 28
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-9024
SELECT + + 79 * - COUNT( ALL + + 82 ) + + + 12 + - + 41 * + - ( - - 7 ) * - + COUNT( DISTINCT 91 )
----
-354

skipif mysql # not compatible
query I rowsort label-9024
SELECT + + 79 * - COUNT ( ALL + + 82 ) + + + 12 + - + 41 * + - ( - - 7 ) * - + COUNT ( DISTINCT 91 )
----
-354

onlyif mysql # aggregate syntax: 
query II rowsort label-9025
SELECT + COUNT( * ) AS col2, + SUM( DISTINCT 2 ) + 63 * + - 36 + - 45 AS col2
----
1
-2311

skipif mysql # not compatible
query II rowsort label-9025
SELECT + COUNT ( * ) AS col2, + SUM ( DISTINCT 2 ) + 63 * + - 36 + - 45 AS col2
----
1
-2311

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9026
SELECT ALL - 50 DIV 88 + + - MIN( DISTINCT 22 ), ( - + 1 ) AS col2
----
-22
-1

skipif mysql # not compatible
query II rowsort label-9026
SELECT ALL - 50 / 88 + + - MIN ( DISTINCT 22 ), ( - + 1 ) AS col2
----
-22
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9027
SELECT - + 45 * - 0 * - + 90 DIV - ( - 17 ) * 64
----
0

skipif mysql # not compatible
query I rowsort label-9027
SELECT - + 45 * - 0 * - + 90 / - ( - 17 ) * 64
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9028
SELECT + COALESCE ( - + ( - CAST( - + 78 AS SIGNED ) ), + 85 * + 14 ) + - 36 AS col2
----
-114

skipif mysql # not compatible
query I rowsort label-9028
SELECT + COALESCE ( - + ( - CAST ( - + 78 AS INTEGER ) ), + 85 * + 14 ) + - 36 AS col2
----
-114

onlyif mysql # aggregate syntax: 
query I rowsort label-9029
SELECT + + MIN( + + 25 ) AS col1
----
25

skipif mysql # not compatible
query I rowsort label-9029
SELECT + + MIN ( + + 25 ) AS col1
----
25

onlyif mysql # aggregate syntax: 
query II rowsort label-9030
SELECT + ( MAX( + 45 ) ), - 54 AS col2
----
45
-54

skipif mysql # not compatible
query II rowsort label-9030
SELECT + ( MAX ( + 45 ) ), - 54 AS col2
----
45
-54

query I rowsort
SELECT + 91 + + 24 AS col1
----
115

query II rowsort
SELECT ALL + 47 AS col0, 94 AS col0
----
47
94

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9033
SELECT + 12 AS col0, + CAST( - - 21 AS SIGNED ) * + 32 * 70 + 53 col0
----
12
47093

skipif mysql # not compatible
query II rowsort label-9033
SELECT + 12 AS col0, + CAST ( - - 21 AS INTEGER ) * + 32 * 70 + 53 col0
----
12
47093

onlyif mysql # aggregate syntax: 
query I rowsort label-9034
SELECT + 0 * + ( + + MIN( 62 ) )
----
0

skipif mysql # not compatible
query I rowsort label-9034
SELECT + 0 * + ( + + MIN ( 62 ) )
----
0

query I rowsort
SELECT DISTINCT + 99 * + - 25 * + 25 * + 89
----
-5506875

onlyif mysql # aggregate syntax: 
query I rowsort label-9036
SELECT ALL + MAX( 13 ) AS col2
----
13

skipif mysql # not compatible
query I rowsort label-9036
SELECT ALL + MAX ( 13 ) AS col2
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-9037
SELECT ALL - CASE + - 57 WHEN 72 / - - 14 * 14 + 35 THEN NULL WHEN - ( - COALESCE ( + 53, ( 83 ) / - MAX( COALESCE ( - 15, - - 68 ) ) ) ) * - 93 THEN NULL ELSE + 99 END AS col0
----
-99

skipif mysql # not compatible
query I rowsort label-9037
SELECT ALL - CASE + - 57 WHEN 72 / - - 14 * 14 + 35 THEN NULL WHEN - ( - COALESCE ( + 53, ( 83 ) / - MAX ( COALESCE ( - 15, - - 68 ) ) ) ) * - 93 THEN NULL ELSE + 99 END AS col0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9038
SELECT DISTINCT COUNT( * ) * - - 22 AS col2
----
22

skipif mysql # not compatible
query I rowsort label-9038
SELECT DISTINCT COUNT ( * ) * - - 22 AS col2
----
22

onlyif mysql # DIV for integer division: 
query I rowsort label-9039
SELECT NULLIF ( + + 0, ( - - 27 ) ) DIV - + 8 - - 91 + + 0 + 8 + - - CASE - 63 WHEN - 73 + - - 41 THEN NULL ELSE - 32 - - + 14 END * + 5
----
9

skipif mysql # not compatible
query I rowsort label-9039
SELECT NULLIF ( + + 0, ( - - 27 ) ) / - + 8 - - 91 + + 0 + 8 + - - CASE - 63 WHEN - 73 + - - 41 THEN NULL ELSE - 32 - - + 14 END * + 5
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9040
SELECT 67 * - COUNT( * ) * + - 99 AS col2
----
6633

skipif mysql # not compatible
query I rowsort label-9040
SELECT 67 * - COUNT ( * ) * + - 99 AS col2
----
6633

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9041
SELECT ALL + 41 + + 61 + - + COALESCE ( + 80, COUNT( + CAST( NULL AS SIGNED ) ), + 5 ) AS col0
----
22

skipif mysql # not compatible
query I rowsort label-9041
SELECT ALL + 41 + + 61 + - + COALESCE ( + 80, COUNT ( + CAST ( NULL AS INTEGER ) ), + 5 ) AS col0
----
22

query I rowsort
SELECT 54 * + 96
----
5184

query I rowsort
SELECT DISTINCT + 97 + - 32 AS col0
----
65

query I rowsort
SELECT 82 * - 99
----
-8118

query I rowsort
SELECT DISTINCT - 52 * - + 55 * 0
----
0

query I rowsort
SELECT + 37 * + 47 AS col0
----
1739

onlyif mysql # aggregate syntax: 
query I rowsort label-9047
SELECT ALL - - 41 * + - 88 + + COUNT( * ) AS col2
----
-3607

skipif mysql # not compatible
query I rowsort label-9047
SELECT ALL - - 41 * + - 88 + + COUNT ( * ) AS col2
----
-3607

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9048
SELECT 79 - + - 10 DIV + + COALESCE ( + 93, + COALESCE ( - 94, + 3 DIV - 14 * + - 2 + - 74, MAX( DISTINCT - 4 ) ), 70 )
----
79

skipif mysql # not compatible
query I rowsort label-9048
SELECT 79 - + - 10 / + + COALESCE ( + 93, + COALESCE ( - 94, + 3 / - 14 * + - 2 + - 74, MAX ( DISTINCT - 4 ) ), 70 )
----
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9049
SELECT - 3 + + - COUNT( * ) DIV - 2 * + - MIN( DISTINCT - 97 ) col0
----
-3

skipif mysql # not compatible
query I rowsort label-9049
SELECT - 3 + + - COUNT ( * ) / - 2 * + - MIN ( DISTINCT - 97 ) col0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9050
SELECT SUM( DISTINCT + 97 ) * - + COUNT( * ) + - 58 AS col0
----
-155

skipif mysql # not compatible
query I rowsort label-9050
SELECT SUM ( DISTINCT + 97 ) * - + COUNT ( * ) + - 58 AS col0
----
-155

query I rowsort
SELECT - COALESCE ( - + 8, 59 ) AS col2
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9052
SELECT ALL - CAST( 32 AS SIGNED ) AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-9052
SELECT ALL - CAST ( 32 AS INTEGER ) AS col2
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-9053
SELECT DISTINCT + + 24 * - NULLIF ( + 65, + 22 * + + COUNT( ALL + 61 ) / - COUNT( * ) + + 58 * + COUNT( * ) + + 23 ) AS col1
----
-1560

skipif mysql # not compatible
query I rowsort label-9053
SELECT DISTINCT + + 24 * - NULLIF ( + 65, + 22 * + + COUNT ( ALL + 61 ) / - COUNT ( * ) + + 58 * + COUNT ( * ) + + 23 ) AS col1
----
-1560

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9054
SELECT 72 * + + COUNT( ALL + + CAST( NULL AS SIGNED ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9054
SELECT 72 * + + COUNT ( ALL + + CAST ( NULL AS INTEGER ) ) AS col0
----
0

query I rowsort
SELECT ALL + - 74 * - - 65
----
-4810

query I rowsort
SELECT + NULLIF ( 28, 46 )
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-9057
SELECT ALL + + 82 * COUNT( - - 5 ) - - 37 AS col1
----
119

skipif mysql # not compatible
query I rowsort label-9057
SELECT ALL + + 82 * COUNT ( - - 5 ) - - 37 AS col1
----
119

onlyif mysql # DIV for integer division: 
query I rowsort label-9058
SELECT DISTINCT 27 DIV 52 * - 46 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9058
SELECT DISTINCT 27 / 52 * - 46 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9059
SELECT DISTINCT - COUNT( + + 17 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9059
SELECT DISTINCT - COUNT ( + + 17 ) AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9060
SELECT ( + CASE COUNT( * ) WHEN + 58 * 42 - - - 9 THEN NULL ELSE 41 * 97 - 55 - + - 15 - 20 + 54 * 48 / - + 60 + - COUNT( * ) - 41 * - NULLIF ( + SUM( ALL 86 ), + 46 * 58 ) + - + 45 * 29 * - 93 + + 55 * + CAST( NULL AS SIGNED ) / + COUNT( * ) + + 11 + - 88 + + - COUNT( * ) END ) * - + COALESCE ( + 0, 66 * + 7 + + 84 + 7 + - - 43, + 55 + - - 36 - 56 + - NULLIF ( - + MAX( 19 ), AVG ( DISTINCT 6 ) * 51 * + 99 ) + - - 98 * - CASE - + 80 WHEN 2 THEN NULL ELSE CASE COALESCE ( - CAST( NULL AS SIGNED ), 40, - 63, 16 ) WHEN - COUNT( * ) THEN + 75 END * - 58 + + 95 END * + 72 + + CAST( + 4 AS SIGNED ) * 64 ) * 96
----
NULL

skipif mysql # not compatible
query I rowsort label-9060
SELECT ( + CASE COUNT ( * ) WHEN + 58 * 42 - - - 9 THEN NULL ELSE 41 * 97 - 55 - + - 15 - 20 + 54 * 48 / - + 60 + - COUNT ( * ) - 41 * - NULLIF ( + SUM ( ALL 86 ), + 46 * 58 ) + - + 45 * 29 * - 93 + + 55 * + CAST ( NULL AS INTEGER ) / + COUNT ( * ) + + 11 + - 88 + + - COUNT ( * ) END ) * - + COALESCE ( + 0, 66 * + 7 + + 84 + 7 + - - 43, + 55 + - - 36 - 56 + - NULLIF ( - + MAX ( 19 ), AVG ( DISTINCT 6 ) * 51 * + 99 ) + - - 98 * - CASE - + 80 WHEN 2 THEN NULL ELSE CASE COALESCE ( - CAST ( NULL AS INTEGER ), 40, - 63, 16 ) WHEN - COUNT ( * ) THEN + 75 END * - 58 + + 95 END * + 72 + + CAST ( + 4 AS INTEGER ) * 64 ) * 96
----
NULL

query I rowsort
SELECT DISTINCT 80 * ( - 33 ) AS col2
----
-2640

onlyif mysql # aggregate syntax: 
query I rowsort label-9062
SELECT 37 * + COUNT( * ) + + 59
----
96

skipif mysql # not compatible
query I rowsort label-9062
SELECT 37 * + COUNT ( * ) + + 59
----
96

query I rowsort
SELECT ALL 26 + 63 col2
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-9064
SELECT COUNT( * ) + + + ( 57 )
----
58

skipif mysql # not compatible
query I rowsort label-9064
SELECT COUNT ( * ) + + + ( 57 )
----
58

query II rowsort
SELECT ALL 10, 34 AS col1
----
10
34

onlyif mysql # aggregate syntax: 
query I rowsort label-9066
SELECT COALESCE ( + COUNT( * ), + 27 ) * + NULLIF ( 11, + 0 + + 32 ) + + NULLIF ( - 94, + ( - - COALESCE ( + ( - 21 ), - NULLIF ( 12, - 84 + + + 49 ) ) ) / - COUNT( * ) ) AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-9066
SELECT COALESCE ( + COUNT ( * ), + 27 ) * + NULLIF ( 11, + 0 + + 32 ) + + NULLIF ( - 94, + ( - - COALESCE ( + ( - 21 ), - NULLIF ( 12, - 84 + + + 49 ) ) ) / - COUNT ( * ) ) AS col2
----
-83

query I rowsort
SELECT ALL 72 + + 45 AS col2
----
117

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9068
SELECT ( COUNT( * ) ) + 46 col2, + COUNT( * ) DIV 27 + + - 32 + - 62 + + 9 * 29 + - 36 col0
----
47
131

skipif mysql # not compatible
query II rowsort label-9068
SELECT ( COUNT ( * ) ) + 46 col2, + COUNT ( * ) / 27 + + - 32 + - 62 + + 9 * 29 + - 36 col0
----
47
131

query I rowsort
SELECT ALL 84 * 69 * ( + 98 ) AS col1
----
568008

query I rowsort
SELECT 82 + 98 + + 7 AS col2
----
187

query I rowsort
SELECT DISTINCT 78 + - - 76 + 43 * 49 * + + 26 AS col2
----
54936

query I rowsort
SELECT 1 + 3 + - 2
----
2

query I rowsort
SELECT ALL 13 + - 39
----
-26

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9074
SELECT CAST( - 3 AS SIGNED ) DIV + 87 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9074
SELECT CAST ( - 3 AS INTEGER ) / + 87 AS col2
----
0

query I rowsort
SELECT 17 + - 23
----
-6

query I rowsort
SELECT ALL + 75 * + 17
----
1275

query I rowsort
SELECT ALL - 3 * 49
----
-147

onlyif mysql # DIV for integer division: 
query I rowsort label-9078
SELECT 7 DIV - 17
----
0

skipif mysql # not compatible
query I rowsort label-9078
SELECT 7 / - 17
----
0

query I rowsort
SELECT 17 + 37 AS col2
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-9080
SELECT - COUNT( DISTINCT 87 )
----
-1

skipif mysql # not compatible
query I rowsort label-9080
SELECT - COUNT ( DISTINCT 87 )
----
-1

query I rowsort
SELECT + COALESCE ( - 53, 25 + - 23, 71 - - 38 * - 59 ) AS col1
----
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-9082
SELECT 3 DIV - 85 + 71 AS col1
----
71

skipif mysql # not compatible
query I rowsort label-9082
SELECT 3 / - 85 + 71 AS col1
----
71

query I rowsort
SELECT 7 * 40
----
280

query I rowsort
SELECT 42 * 51 AS col1
----
2142

query I rowsort
SELECT 13 + + 10
----
23

query I rowsort
SELECT - 1 * - 30 - - 50 AS col0
----
80

onlyif mysql # DIV for integer division: 
query I rowsort label-9087
SELECT - 98 + 40 DIV 76
----
-98

skipif mysql # not compatible
query I rowsort label-9087
SELECT - 98 + 40 / 76
----
-98

query I rowsort
SELECT - 75 * 66
----
-4950

onlyif mysql # aggregate syntax: 
query I rowsort label-9089
SELECT - 38 * NULLIF ( - MIN( - 66 ), + 77 * + ( COALESCE ( + 95, + 39 / - 42 ) * ( COUNT( * ) * COUNT( * ) ) ) ) + 13 * COUNT( DISTINCT + 94 ) AS col1
----
-2495

skipif mysql # not compatible
query I rowsort label-9089
SELECT - 38 * NULLIF ( - MIN ( - 66 ), + 77 * + ( COALESCE ( + 95, + 39 / - 42 ) * ( COUNT ( * ) * COUNT ( * ) ) ) ) + 13 * COUNT ( DISTINCT + 94 ) AS col1
----
-2495

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9090
SELECT ALL + 20 * COUNT( DISTINCT - 44 ) + 63 DIV 7
----
29

skipif mysql # not compatible
query I rowsort label-9090
SELECT ALL + 20 * COUNT ( DISTINCT - 44 ) + 63 / 7
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-9091
SELECT 14 * + COUNT( * ) + - 83 AS col0
----
-69

skipif mysql # not compatible
query I rowsort label-9091
SELECT 14 * + COUNT ( * ) + - 83 AS col0
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-9092
SELECT DISTINCT 37 * + COUNT( * ) + - 9 AS col1
----
28

skipif mysql # not compatible
query I rowsort label-9092
SELECT DISTINCT 37 * + COUNT ( * ) + - 9 AS col1
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9093
SELECT DISTINCT + NULLIF ( - 88, - ( - CAST( NULL AS SIGNED ) ) / + 24 ) col1
----
-88

skipif mysql # not compatible
query I rowsort label-9093
SELECT DISTINCT + NULLIF ( - 88, - ( - CAST ( NULL AS INTEGER ) ) / + 24 ) col1
----
-88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9094
SELECT 42 * - 28 + - 42 * + MAX( 76 DIV + 4 + - 18 ) AS col1
----
-1218

skipif mysql # not compatible
query I rowsort label-9094
SELECT 42 * - 28 + - 42 * + MAX ( 76 / + 4 + - 18 ) AS col1
----
-1218

query I rowsort
SELECT DISTINCT - 10 * - 17 + - 52 col1
----
118

query I rowsort
SELECT ALL 73 + - 79 col0
----
-6

query I rowsort
SELECT + 79 * 91 AS col0
----
7189

onlyif mysql # aggregate syntax: 
query I rowsort label-9098
SELECT ALL CASE MAX( DISTINCT + COALESCE ( 8, 58 ) ) WHEN + 65 + - COUNT( * ) THEN - 2 * AVG ( DISTINCT ( + 77 ) ) + 25 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9098
SELECT ALL CASE MAX ( DISTINCT + COALESCE ( 8, 58 ) ) WHEN + 65 + - COUNT ( * ) THEN - 2 * AVG ( DISTINCT ( + 77 ) ) + 25 END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9099
SELECT + CASE COUNT( * ) WHEN 13 * + MIN( ALL - 48 ) THEN CAST( 56 AS SIGNED ) * 11 ELSE NULL END * 96
----
NULL

skipif mysql # not compatible
query I rowsort label-9099
SELECT + CASE COUNT ( * ) WHEN 13 * + MIN ( ALL - 48 ) THEN CAST ( 56 AS INTEGER ) * 11 ELSE NULL END * 96
----
NULL

query I rowsort
SELECT ALL 37 - - NULLIF ( - 85, + 37 + + 99 ) * + 52 AS col2
----
-4383

query I rowsort
SELECT - COALESCE ( + 46, - 20 ) - 60 AS col2
----
-106

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9102
SELECT + 25 * CASE - 60 * - 48 WHEN + CAST( 20 AS SIGNED ) + - COUNT( * ) THEN + 87 * - CAST( NULL AS SIGNED ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9102
SELECT + 25 * CASE - 60 * - 48 WHEN + CAST ( 20 AS INTEGER ) + - COUNT ( * ) THEN + 87 * - CAST ( NULL AS INTEGER ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9103
SELECT ALL COUNT( * ) * 4 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-9103
SELECT ALL COUNT ( * ) * 4 AS col2
----
4

query I rowsort
SELECT DISTINCT - 88 * 53 AS col0
----
-4664

query I rowsort
SELECT + NULLIF ( 6, + 94 + + 66 ) AS col0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9106
SELECT ALL + + NULLIF ( - CASE - ( - 88 ) WHEN + CAST( NULL AS SIGNED ) THEN NULL ELSE 99 END, 20 ) * - 77
----
7623

skipif mysql # not compatible
query I rowsort label-9106
SELECT ALL + + NULLIF ( - CASE - ( - 88 ) WHEN + CAST ( NULL AS INTEGER ) THEN NULL ELSE 99 END, 20 ) * - 77
----
7623

query I rowsort
SELECT DISTINCT 82 * 19 AS col0
----
1558

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9108
SELECT + + 5 * + NULLIF ( - 87 + + SUM( DISTINCT - CAST( NULL AS SIGNED ) ), - 77 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9108
SELECT + + 5 * + NULLIF ( - 87 + + SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ), - 77 ) AS col0
----
NULL

query I rowsort
SELECT + - 0 * - 67
----
0

query I rowsort
SELECT + + 56 + + 9
----
65

query I rowsort
SELECT - - AVG ( 12 ) / - CASE + 59 WHEN 57 THEN 66 + + 73 END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9112
SELECT ALL 27 DIV 56
----
0

skipif mysql # not compatible
query I rowsort label-9112
SELECT ALL 27 / 56
----
0

query I rowsort
SELECT DISTINCT - + 57 * 48
----
-2736

query I rowsort
SELECT ALL + - 50 col0
----
-50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9115
SELECT + 24 DIV - SUM( - NULLIF ( 75, 24 ) * + 6 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-9115
SELECT + 24 / - SUM ( - NULLIF ( 75, 24 ) * + 6 ) col1
----
0

query I rowsort
SELECT + + 73 * - 58
----
-4234

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9117
SELECT DISTINCT - SUM( DISTINCT 28 ) DIV + 81 + + 67 AS col1
----
67

skipif mysql # not compatible
query I rowsort label-9117
SELECT DISTINCT - SUM ( DISTINCT 28 ) / + 81 + + 67 AS col1
----
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9118
SELECT 40 DIV MAX( 25 ) + 57
----
58

skipif mysql # not compatible
query I rowsort label-9118
SELECT 40 / MAX ( 25 ) + 57
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9119
SELECT ALL + 76 DIV COUNT( * ) + + 31 col0
----
107

skipif mysql # not compatible
query I rowsort label-9119
SELECT ALL + 76 / COUNT ( * ) + + 31 col0
----
107

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9120
SELECT 73 / CAST( NULL AS SIGNED ) - 72 * + 46
----
NULL

skipif mysql # not compatible
query I rowsort label-9120
SELECT 73 / CAST ( NULL AS INTEGER ) - 72 * + 46
----
NULL

query I rowsort
SELECT ( - 84 ) AS col0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-9122
SELECT + COUNT( * ) - + 92 AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-9122
SELECT + COUNT ( * ) - + 92 AS col1
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9123
SELECT DISTINCT + ( + - CAST( 23 AS SIGNED ) ) AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-9123
SELECT DISTINCT + ( + - CAST ( 23 AS INTEGER ) ) AS col1
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9124
SELECT ALL CAST( + + 64 AS SIGNED ) * + 63
----
4032

skipif mysql # not compatible
query I rowsort label-9124
SELECT ALL CAST ( + + 64 AS INTEGER ) * + 63
----
4032

query I rowsort
SELECT DISTINCT 77 * - 47 + 58 * - 75 AS col0
----
-7969

query I rowsort
SELECT ALL 45 * + + 40 + 82 * + NULLIF ( 85 * 71, 21 )
----
496670

query I rowsort
SELECT ( - NULLIF ( 13, + 39 * + 79 ) )
----
-13

query I rowsort
SELECT DISTINCT + COALESCE ( - + 48, ( - 67 ) + 92, + 26 ) col0
----
-48

query I rowsort
SELECT DISTINCT 14 * - 55 * 32 + 92
----
-24548

query I rowsort
SELECT - 67 * + 84 AS col2
----
-5628

onlyif mysql # aggregate syntax: 
query I rowsort label-9131
SELECT - COUNT( * ) + ( 78 )
----
77

skipif mysql # not compatible
query I rowsort label-9131
SELECT - COUNT ( * ) + ( 78 )
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9132
SELECT + COUNT( + 39 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9132
SELECT + COUNT ( + 39 ) AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9133
SELECT ALL 88 * 21 - + ( COALESCE ( 57, + 98 * - COALESCE ( - 29, - 69 - 22 ), 81 DIV 24 + - 22 ) + 95 * 99 ) * - 79 AS col2
----
749346

skipif mysql # not compatible
query I rowsort label-9133
SELECT ALL 88 * 21 - + ( COALESCE ( 57, + 98 * - COALESCE ( - 29, - 69 - 22 ), 81 / 24 + - 22 ) + 95 * 99 ) * - 79 AS col2
----
749346

onlyif mysql # aggregate syntax: 
query I rowsort label-9134
SELECT + COUNT( + 94 )
----
1

skipif mysql # not compatible
query I rowsort label-9134
SELECT + COUNT ( + 94 )
----
1

query I rowsort
SELECT NULLIF ( - + 37, - 16 ) AS col1
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-9136
SELECT - 19 + + COUNT( * )
----
-18

skipif mysql # not compatible
query I rowsort label-9136
SELECT - 19 + + COUNT ( * )
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-9137
SELECT ALL - 75 * 11 * COUNT( * )
----
-825

skipif mysql # not compatible
query I rowsort label-9137
SELECT ALL - 75 * 11 * COUNT ( * )
----
-825

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9138
SELECT ALL CAST( + NULLIF ( 59, 55 ) AS SIGNED ) AS col1
----
59

skipif mysql # not compatible
query I rowsort label-9138
SELECT ALL CAST ( + NULLIF ( 59, 55 ) AS INTEGER ) AS col1
----
59

query I rowsort
SELECT - ( + ( - 87 ) ) + - 61
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-9140
SELECT ALL 25 * + + COUNT( 64 ) * 64 - 99 * - 37
----
5263

skipif mysql # not compatible
query I rowsort label-9140
SELECT ALL 25 * + + COUNT ( 64 ) * 64 - 99 * - 37
----
5263

query I rowsort
SELECT DISTINCT - 93 * + NULLIF ( 33, - 74 ) col2
----
-3069

query I rowsort
SELECT ( 6 ) * 50 + + 15
----
315

onlyif mysql # DIV for integer division: 
query I rowsort label-9143
SELECT ALL + 12 * + 64 - - 51 DIV 46 AS col0
----
769

skipif mysql # not compatible
query I rowsort label-9143
SELECT ALL + 12 * + 64 - - 51 / 46 AS col0
----
769

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9144
SELECT - - 95 DIV + + MAX( DISTINCT 78 )
----
1

skipif mysql # not compatible
query I rowsort label-9144
SELECT - - 95 / + + MAX ( DISTINCT 78 )
----
1

query I rowsort
SELECT ALL - 90 * 97 AS col2
----
-8730

query I rowsort
SELECT ALL + + 80 * - - COALESCE ( + 66, - 21 * 99 )
----
5280

query I rowsort
SELECT + - 46 + - 34 AS col1
----
-80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9148
SELECT - + COUNT( * ) DIV - + CASE - 60 WHEN 73 * 38 THEN COUNT( * ) ELSE - 52 END + 90 * 15 AS col1
----
1350

skipif mysql # not compatible
query I rowsort label-9148
SELECT - + COUNT ( * ) / - + CASE - 60 WHEN 73 * 38 THEN COUNT ( * ) ELSE - 52 END + 90 * 15 AS col1
----
1350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9149
SELECT + 15 * + CAST( 76 AS SIGNED ) + 37 * 75
----
3915

skipif mysql # not compatible
query I rowsort label-9149
SELECT + 15 * + CAST ( 76 AS INTEGER ) + 37 * 75
----
3915

query I rowsort
SELECT + + 71 + - 40
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-9151
SELECT + 28 * + + 46 * CASE + 88 WHEN + COUNT( - 75 ) * - MIN( ALL 59 ) THEN NULL WHEN + 37 THEN NULL WHEN COUNT( * ) THEN 13 + NULLIF ( - 48, + COALESCE ( 75, + 24 + 43, 68 ) ) END + 30 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9151
SELECT + 28 * + + 46 * CASE + 88 WHEN + COUNT ( - 75 ) * - MIN ( ALL 59 ) THEN NULL WHEN + 37 THEN NULL WHEN COUNT ( * ) THEN 13 + NULLIF ( - 48, + COALESCE ( 75, + 24 + 43, 68 ) ) END + 30 AS col0
----
NULL

query I rowsort
SELECT 57 * + 85 * 57
----
276165

onlyif mysql # aggregate syntax: 
query I rowsort label-9153
SELECT ALL + MAX( + 85 )
----
85

skipif mysql # not compatible
query I rowsort label-9153
SELECT ALL + MAX ( + 85 )
----
85

query I rowsort
SELECT - - NULLIF ( - - 97, - 26 + 75 )
----
97

query I rowsort
SELECT ALL + - 75 + - 19 + 74 * 52
----
3754

query I rowsort
SELECT DISTINCT 82 + + 95
----
177

query I rowsort
SELECT ALL + 33 + + 64 col0
----
97

query I rowsort
SELECT DISTINCT 0 + - 5 AS col0
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-9159
SELECT ALL - 89 + - 4 + - 27 DIV 55 AS col2
----
-93

skipif mysql # not compatible
query I rowsort label-9159
SELECT ALL - 89 + - 4 + - 27 / 55 AS col2
----
-93

query II rowsort
SELECT + 31 AS col0, 14 col1
----
31
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9161
SELECT 78 DIV 94 * COUNT( * ) + - 39 AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-9161
SELECT 78 / 94 * COUNT ( * ) + - 39 AS col0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-9162
SELECT COALESCE ( - 31, + + 49 ) - - COUNT( * )
----
-30

skipif mysql # not compatible
query I rowsort label-9162
SELECT COALESCE ( - 31, + + 49 ) - - COUNT ( * )
----
-30

query I rowsort
SELECT ( 47 ) + - - 22
----
69

query II rowsort
SELECT ALL - 86 AS col2, 51 * 78 col1
----
-86
3978

onlyif mysql # aggregate syntax: 
query II rowsort label-9165
SELECT + 97 col1, COUNT( * ) AS col2
----
97
1

skipif mysql # not compatible
query II rowsort label-9165
SELECT + 97 col1, COUNT ( * ) AS col2
----
97
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9166
SELECT DISTINCT 26 - 96 + + + 55 * COUNT( * ) AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-9166
SELECT DISTINCT 26 - 96 + + + 55 * COUNT ( * ) AS col1
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9167
SELECT + 97 DIV 96 + + CAST( COUNT( * ) AS SIGNED )
----
2

skipif mysql # not compatible
query I rowsort label-9167
SELECT + 97 / 96 + + CAST ( COUNT ( * ) AS INTEGER )
----
2

query I rowsort
SELECT ALL 61 - + 7 AS col2
----
54

query II rowsort
SELECT + 8 AS col2, + 52
----
8
52

query I rowsort
SELECT 92 + 31 col1
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-9171
SELECT 63 * ( - COUNT( * ) ) AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-9171
SELECT 63 * ( - COUNT ( * ) ) AS col2
----
-63

query I rowsort
SELECT DISTINCT 55 * - 61 * 32 * + 81 col0
----
-8696160

query I rowsort
SELECT 8 + - 45 + 88 AS col1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9174
SELECT 11 * - MAX( DISTINCT + + 60 ) col0
----
-660

skipif mysql # not compatible
query I rowsort label-9174
SELECT 11 * - MAX ( DISTINCT + + 60 ) col0
----
-660

query I rowsort
SELECT ALL 1 * 61
----
61

query I rowsort
SELECT DISTINCT 19 * + 44
----
836

onlyif mysql # aggregate syntax: 
query I rowsort label-9177
SELECT ALL - CASE 91 WHEN 36 THEN COUNT( * ) ELSE 59 END
----
-59

skipif mysql # not compatible
query I rowsort label-9177
SELECT ALL - CASE 91 WHEN 36 THEN COUNT ( * ) ELSE 59 END
----
-59

query II rowsort
SELECT 7 col2, + 37
----
7
37

query I rowsort
SELECT ALL - - 7 * - 50 AS col1
----
-350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9180
SELECT ALL CAST( - + 80 AS SIGNED ) AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-9180
SELECT ALL CAST ( - + 80 AS INTEGER ) AS col2
----
-80

query I rowsort
SELECT 72 * 79 AS col1
----
5688

query II rowsort
SELECT - 58, + 15 col2
----
-58
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9183
SELECT - COUNT( * ) DIV - - 57
----
0

skipif mysql # not compatible
query I rowsort label-9183
SELECT - COUNT ( * ) / - - 57
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9184
SELECT ALL - + ( + 1 ) * - MIN( - 62 ) col0
----
-62

skipif mysql # not compatible
query I rowsort label-9184
SELECT ALL - + ( + 1 ) * - MIN ( - 62 ) col0
----
-62

query I rowsort
SELECT - 56 - - 97 AS col0
----
41

onlyif mysql # aggregate syntax: 
query II rowsort label-9186
SELECT - COUNT( * ) col0, + 30 AS col1
----
-1
30

skipif mysql # not compatible
query II rowsort label-9186
SELECT - COUNT ( * ) col0, + 30 AS col1
----
-1
30

query I rowsort
SELECT - + ( - 72 ) AS col0
----
72

query I rowsort
SELECT ALL - 53 + + 21 AS col2
----
-32

query I rowsort
SELECT ALL - - 35 * 86
----
3010

query I rowsort
SELECT DISTINCT - - 10 + + 10
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-9191
SELECT 48 + - 56 + + 3 DIV - 81
----
-8

skipif mysql # not compatible
query I rowsort label-9191
SELECT 48 + - 56 + + 3 / - 81
----
-8

query II rowsort
SELECT - 76 AS col1, 76 AS col2
----
-76
76

onlyif mysql # aggregate syntax: 
query I rowsort label-9193
SELECT - 72 * MAX( 60 ) * 40 AS col1
----
-172800

skipif mysql # not compatible
query I rowsort label-9193
SELECT - 72 * MAX ( 60 ) * 40 AS col1
----
-172800

onlyif mysql # aggregate syntax: 
query II rowsort label-9194
SELECT + 77 AS col2, - MIN( 81 ) AS col2
----
77
-81

skipif mysql # not compatible
query II rowsort label-9194
SELECT + 77 AS col2, - MIN ( 81 ) AS col2
----
77
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9195
SELECT SUM( - + 1 ) + + 46 AS col1
----
45

skipif mysql # not compatible
query I rowsort label-9195
SELECT SUM ( - + 1 ) + + 46 AS col1
----
45

query I rowsort
SELECT ALL + ( + 62 ) + - 61 * + 89
----
-5367

onlyif mysql # aggregate syntax: 
query I rowsort label-9197
SELECT ALL COUNT( DISTINCT + 34 )
----
1

skipif mysql # not compatible
query I rowsort label-9197
SELECT ALL COUNT ( DISTINCT + 34 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9198
SELECT MIN( DISTINCT + - 85 )
----
-85

skipif mysql # not compatible
query I rowsort label-9198
SELECT MIN ( DISTINCT + - 85 )
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-9199
SELECT ALL - 19 * - - NULLIF ( - - 16, + COUNT( * ) * 9 ) * - 4 AS col0
----
1216

skipif mysql # not compatible
query I rowsort label-9199
SELECT ALL - 19 * - - NULLIF ( - - 16, + COUNT ( * ) * 9 ) * - 4 AS col0
----
1216

query I rowsort
SELECT 73 * - + 2
----
-146

onlyif mysql # aggregate syntax: 
query I rowsort label-9201
SELECT DISTINCT 31 * 31 - COUNT( * ) * - - ( - 79 )
----
1040

skipif mysql # not compatible
query I rowsort label-9201
SELECT DISTINCT 31 * 31 - COUNT ( * ) * - - ( - 79 )
----
1040

onlyif mysql # aggregate syntax: 
query I rowsort label-9202
SELECT COUNT( DISTINCT + 19 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-9202
SELECT COUNT ( DISTINCT + 19 ) col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9203
SELECT ALL 20 * - + 11 AS col1, - COUNT( * ) AS col2
----
-220
-1

skipif mysql # not compatible
query II rowsort label-9203
SELECT ALL 20 * - + 11 AS col1, - COUNT ( * ) AS col2
----
-220
-1

query I rowsort
SELECT 56 * - 25
----
-1400

onlyif mysql # aggregate syntax: 
query I rowsort label-9205
SELECT + COUNT( + NULLIF ( + + 90, + + 39 / 97 + + 85 ) )
----
1

skipif mysql # not compatible
query I rowsort label-9205
SELECT + COUNT ( + NULLIF ( + + 90, + + 39 / 97 + + 85 ) )
----
1

query I rowsort
SELECT 63 - + 74 - - - 8 + 44 col2
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-9207
SELECT ( + 1 ) * 77 + 58 - - 9 / + CASE COUNT( DISTINCT 27 ) * + 78 WHEN - 14 + + MIN( 25 ) THEN + ( 55 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9207
SELECT ( + 1 ) * 77 + 58 - - 9 / + CASE COUNT ( DISTINCT 27 ) * + 78 WHEN - 14 + + MIN ( 25 ) THEN + ( 55 ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9208
SELECT ALL COUNT( * ) DIV ( - 71 ) * 63 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9208
SELECT ALL COUNT ( * ) / ( - 71 ) * 63 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9209
SELECT DISTINCT NULLIF ( - 84, + 46 * - 91 / CAST( NULL AS SIGNED ) + COUNT( * ) ) * 66 AS col0
----
-5544

skipif mysql # not compatible
query I rowsort label-9209
SELECT DISTINCT NULLIF ( - 84, + 46 * - 91 / CAST ( NULL AS INTEGER ) + COUNT ( * ) ) * 66 AS col0
----
-5544

onlyif mysql # aggregate syntax: 
query I rowsort label-9210
SELECT ( + + CASE + 70 WHEN + + AVG ( ALL - 31 ) THEN NULL WHEN 69 + ( CASE - 17 WHEN 6 + - ( 39 ) THEN 95 WHEN 58 * - 9 + 95 THEN NULL END ) * 64 THEN NULL ELSE COUNT( - 24 ) + - 83 * - 40 END ) * + 70
----
232470

skipif mysql # not compatible
query I rowsort label-9210
SELECT ( + + CASE + 70 WHEN + + AVG ( ALL - 31 ) THEN NULL WHEN 69 + ( CASE - 17 WHEN 6 + - ( 39 ) THEN 95 WHEN 58 * - 9 + 95 THEN NULL END ) * 64 THEN NULL ELSE COUNT ( - 24 ) + - 83 * - 40 END ) * + 70
----
232470

onlyif mysql # DIV for integer division: 
query I rowsort label-9211
SELECT ALL 54 DIV + NULLIF ( 31, - + 8 DIV - 44 + + 93 )
----
1

skipif mysql # not compatible
query I rowsort label-9211
SELECT ALL 54 / + NULLIF ( 31, - + 8 / - 44 + + 93 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9212
SELECT ( + + MAX( - 24 ) ) - 82 - - ( CASE 65 WHEN 61 + + 73 THEN - 1 * COALESCE ( - 61, + COUNT( * ), + 81 ) WHEN 89 THEN NULL END + 43 ) * 54 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9212
SELECT ( + + MAX ( - 24 ) ) - 82 - - ( CASE 65 WHEN 61 + + 73 THEN - 1 * COALESCE ( - 61, + COUNT ( * ), + 81 ) WHEN 89 THEN NULL END + 43 ) * 54 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9213
SELECT ALL MIN( + - 53 ) DIV 50 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9213
SELECT ALL MIN ( + - 53 ) / 50 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9214
SELECT ALL - - COALESCE ( + 93, + - COUNT( * ) )
----
93

skipif mysql # not compatible
query I rowsort label-9214
SELECT ALL - - COALESCE ( + 93, + - COUNT ( * ) )
----
93

query I rowsort
SELECT DISTINCT ( - 85 ) * - + 50
----
4250

onlyif mysql # DIV for integer division: 
query II rowsort label-9216
SELECT + 27 + 20 AS col0, + ( + 47 ) * 71 + + 45 DIV 69
----
47
3337

skipif mysql # not compatible
query II rowsort label-9216
SELECT + 27 + 20 AS col0, + ( + 47 ) * 71 + + 45 / 69
----
47
3337

onlyif mysql # aggregate syntax: 
query II rowsort label-9217
SELECT DISTINCT - SUM( - 87 ) AS col1, 41 + 30 AS col2
----
87
71

skipif mysql # not compatible
query II rowsort label-9217
SELECT DISTINCT - SUM ( - 87 ) AS col1, 41 + 30 AS col2
----
87
71

onlyif mysql # aggregate syntax: 
query I rowsort label-9218
SELECT ALL MIN( + 82 ) + COUNT( * )
----
83

skipif mysql # not compatible
query I rowsort label-9218
SELECT ALL MIN ( + 82 ) + COUNT ( * )
----
83

query I rowsort
SELECT + + 43 + - 29
----
14

query I rowsort
SELECT + ( - 18 ) AS col0
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-9221
SELECT ALL + COUNT( ALL + 8 )
----
1

skipif mysql # not compatible
query I rowsort label-9221
SELECT ALL + COUNT ( ALL + 8 )
----
1

query I rowsort
SELECT DISTINCT + 66 + + 77 + + 4 + + 62
----
209

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9223
SELECT ALL + NULLIF ( + 2, - CAST( NULL AS SIGNED ) ) + - ( 55 ) AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-9223
SELECT ALL + NULLIF ( + 2, - CAST ( NULL AS INTEGER ) ) + - ( 55 ) AS col0
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-9224
SELECT - COUNT( * ) + - + 32 AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-9224
SELECT - COUNT ( * ) + - + 32 AS col2
----
-33

query II rowsort
SELECT - ( 77 ) AS col1, - 58 * - COALESCE ( + 29, 31 ) - + 92 AS col1
----
-77
1590

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9226
SELECT ALL + 72 + CAST( 55 AS SIGNED )
----
127

skipif mysql # not compatible
query I rowsort label-9226
SELECT ALL + 72 + CAST ( 55 AS INTEGER )
----
127

query I rowsort
SELECT - - 67 * + 52 - 97
----
3387

query I rowsort
SELECT - - 61 * - 57
----
-3477

query I rowsort
SELECT DISTINCT 58 * - 49 + - + 34 AS col1
----
-2876

onlyif mysql # aggregate syntax: 
query I rowsort label-9230
SELECT ALL + CASE - - 50 WHEN + CASE - 22 WHEN - + ( + COUNT( * ) ) * + 22 THEN 55 END THEN 75 ELSE NULL END - - 6 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9230
SELECT ALL + CASE - - 50 WHEN + CASE - 22 WHEN - + ( + COUNT ( * ) ) * + 22 THEN 55 END THEN 75 ELSE NULL END - - 6 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9231
SELECT - CASE + - ( - - 13 ) WHEN 19 - - - 66 THEN NULL WHEN + COUNT( * ) * - 40 + + 11 * 11 THEN + 20 WHEN + 39 * COUNT( * ) - + 91 * + COUNT( * ) THEN NULL ELSE NULL END * - 38 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9231
SELECT - CASE + - ( - - 13 ) WHEN 19 - - - 66 THEN NULL WHEN + COUNT ( * ) * - 40 + + 11 * 11 THEN + 20 WHEN + 39 * COUNT ( * ) - + 91 * + COUNT ( * ) THEN NULL ELSE NULL END * - 38 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9232
SELECT - ( + COUNT( * ) ) + - 51 * 27 DIV + COUNT( * ) AS col1
----
-1378

skipif mysql # not compatible
query I rowsort label-9232
SELECT - ( + COUNT ( * ) ) + - 51 * 27 / + COUNT ( * ) AS col1
----
-1378

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9233
SELECT DISTINCT + 78 - 55 - - + 38 DIV + COALESCE ( - - 89, ( + SUM( ALL 95 ) ), 62 ) AS col2
----
23

skipif mysql # not compatible
query I rowsort label-9233
SELECT DISTINCT + 78 - 55 - - + 38 / + COALESCE ( - - 89, ( + SUM ( ALL 95 ) ), 62 ) AS col2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-9234
SELECT ALL NULLIF ( - 42, 21 * - COUNT( * ) - + 86 + ( 83 ) * - 47 ) AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-9234
SELECT ALL NULLIF ( - 42, 21 * - COUNT ( * ) - + 86 + ( 83 ) * - 47 ) AS col1
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-9235
SELECT - MIN( ALL + 13 ) + - 70 + - 21 * 33
----
-776

skipif mysql # not compatible
query I rowsort label-9235
SELECT - MIN ( ALL + 13 ) + - 70 + - 21 * 33
----
-776

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9236
SELECT - CAST( NULL AS SIGNED ) / - + 77 * + 74
----
NULL

skipif mysql # not compatible
query I rowsort label-9236
SELECT - CAST ( NULL AS INTEGER ) / - + 77 * + 74
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9237
SELECT - COUNT( * ) * + 16 * 1 DIV - ( 79 )
----
0

skipif mysql # not compatible
query I rowsort label-9237
SELECT - COUNT ( * ) * + 16 * 1 / - ( 79 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9238
SELECT ALL + NULLIF ( - 33, + - 21 + + MIN( 11 ) ) AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-9238
SELECT ALL + NULLIF ( - 33, + - 21 + + MIN ( 11 ) ) AS col1
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9239
SELECT + 89 / + 18 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9239
SELECT + 89 / + 18 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9240
SELECT - 1 * - COUNT( * ) - 25 - - 89 * + CASE - ( + ( - 73 ) ) WHEN + 20 THEN + CAST( NULL AS SIGNED ) * COUNT( * ) ELSE NULL END * - 86
----
NULL

skipif mysql # not compatible
query I rowsort label-9240
SELECT - 1 * - COUNT ( * ) - 25 - - 89 * + CASE - ( + ( - 73 ) ) WHEN + 20 THEN + CAST ( NULL AS INTEGER ) * COUNT ( * ) ELSE NULL END * - 86
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9241
SELECT + COUNT( * ), + ( + 8 ) * - + 59 + + 33 * - 13 AS col0
----
1
-901

skipif mysql # not compatible
query II rowsort label-9241
SELECT + COUNT ( * ), + ( + 8 ) * - + 59 + + 33 * - 13 AS col0
----
1
-901

onlyif mysql # aggregate syntax: 
query II rowsort label-9242
SELECT ALL SUM( DISTINCT + 96 ) * + 37, - 78 - + - COUNT( * ) AS col2
----
3552
-77

skipif mysql # not compatible
query II rowsort label-9242
SELECT ALL SUM ( DISTINCT + 96 ) * + 37, - 78 - + - COUNT ( * ) AS col2
----
3552
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9243
SELECT ALL + COALESCE ( - 34, + + COUNT( * ) )
----
-34

skipif mysql # not compatible
query I rowsort label-9243
SELECT ALL + COALESCE ( - 34, + + COUNT ( * ) )
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-9244
SELECT - ( 44 ) + - 86 + + + COUNT( * ) * ( ( - 91 ) ) * 39 AS col0
----
-3679

skipif mysql # not compatible
query I rowsort label-9244
SELECT - ( 44 ) + - 86 + + + COUNT ( * ) * ( ( - 91 ) ) * 39 AS col0
----
-3679

query I rowsort
SELECT DISTINCT + 71 * - 88 * - - 27
----
-168696

query I rowsort
SELECT ALL + 62 * + 78
----
4836

onlyif mysql # aggregate syntax: 
query I rowsort label-9247
SELECT - ( - 48 ) * COUNT( * )
----
48

skipif mysql # not compatible
query I rowsort label-9247
SELECT - ( - 48 ) * COUNT ( * )
----
48

query I rowsort
SELECT + 42 + - + 32 + 24 * 57 * + 60
----
82090

onlyif mysql # DIV for integer division: 
query I rowsort label-9249
SELECT COALESCE ( + + 21, - 49 DIV - - 86 ) AS col2
----
21

skipif mysql # not compatible
query I rowsort label-9249
SELECT COALESCE ( + + 21, - 49 / - - 86 ) AS col2
----
21

query I rowsort
SELECT + CASE + + 47 WHEN + 96 THEN - 95 END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9251
SELECT + + CAST( - 79 AS SIGNED ) DIV + - 27 - - 50 AS col0
----
52

skipif mysql # not compatible
query I rowsort label-9251
SELECT + + CAST ( - 79 AS INTEGER ) / + - 27 - - 50 AS col0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-9252
SELECT ALL - + 79 * NULLIF ( + - COUNT( * ), - COUNT( * ) ) + - 78 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9252
SELECT ALL - + 79 * NULLIF ( + - COUNT ( * ), - COUNT ( * ) ) + - 78 AS col2
----
NULL

query I rowsort
SELECT - ( - 16 ) * 44 + 88 AS col1
----
792

onlyif mysql # aggregate syntax: 
query II rowsort label-9254
SELECT + + COUNT( * ) AS col1, + 35 AS col1
----
1
35

skipif mysql # not compatible
query II rowsort label-9254
SELECT + + COUNT ( * ) AS col1, + 35 AS col1
----
1
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9255
SELECT DISTINCT - 20 * 64 + COUNT( * ) * - 19 * - 85 + CAST( 38 AS SIGNED ) * + 85
----
3565

skipif mysql # not compatible
query I rowsort label-9255
SELECT DISTINCT - 20 * 64 + COUNT ( * ) * - 19 * - 85 + CAST ( 38 AS INTEGER ) * + 85
----
3565

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9256
SELECT ALL - COUNT( * ) DIV + - 48
----
0

skipif mysql # not compatible
query I rowsort label-9256
SELECT ALL - COUNT ( * ) / + - 48
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9257
SELECT + 52 DIV 52 DIV 18, - CAST( NULL AS SIGNED ) col2
----
0
NULL

skipif mysql # not compatible
query II rowsort label-9257
SELECT + 52 / 52 / 18, - CAST ( NULL AS INTEGER ) col2
----
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9258
SELECT DISTINCT - 41 * + - 0 * 52 + + - ( - 26 ) + - COUNT( * )
----
25

skipif mysql # not compatible
query I rowsort label-9258
SELECT DISTINCT - 41 * + - 0 * 52 + + - ( - 26 ) + - COUNT ( * )
----
25

query I rowsort
SELECT DISTINCT + 95 * 94 AS col1
----
8930

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9260
SELECT ALL 85 * CAST( + NULLIF ( + 5, - 49 + COALESCE ( 73, + 63 * + 90 + + COUNT( * ) ) ) AS SIGNED ) DIV ( - COUNT( * ) - + 65 ) + - 91
----
-97

skipif mysql # not compatible
query I rowsort label-9260
SELECT ALL 85 * CAST ( + NULLIF ( + 5, - 49 + COALESCE ( 73, + 63 * + 90 + + COUNT ( * ) ) ) AS INTEGER ) / ( - COUNT ( * ) - + 65 ) + - 91
----
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9261
SELECT ALL 49 DIV - MIN( DISTINCT + + 1 ) + + 96 + + 33
----
80

skipif mysql # not compatible
query I rowsort label-9261
SELECT ALL 49 / - MIN ( DISTINCT + + 1 ) + + 96 + + 33
----
80

onlyif mysql # DIV for integer division: 
query I rowsort label-9262
SELECT + 88 DIV + 22
----
4

skipif mysql # not compatible
query I rowsort label-9262
SELECT + 88 / + 22
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9263
SELECT + + 46 * - - COUNT( * ) AS col2
----
46

skipif mysql # not compatible
query I rowsort label-9263
SELECT + + 46 * - - COUNT ( * ) AS col2
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9264
SELECT DISTINCT + COALESCE ( + 44, + 60 - + ( + CAST( NULL AS SIGNED ) ) ) * - 73
----
-3212

skipif mysql # not compatible
query I rowsort label-9264
SELECT DISTINCT + COALESCE ( + 44, + 60 - + ( + CAST ( NULL AS INTEGER ) ) ) * - 73
----
-3212

query I rowsort
SELECT + - 71 - - 80
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9266
SELECT - COALESCE ( + COUNT( * ), + 74 + + 95 + - 7 + - COUNT( * ) * 87 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-9266
SELECT - COALESCE ( + COUNT ( * ), + 74 + + 95 + - 7 + - COUNT ( * ) * 87 ) col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9267
SELECT + CASE - 72 WHEN 42 + - ( + 31 ) THEN NULL ELSE CASE + 15 WHEN COUNT( * ) THEN CAST( 66 AS SIGNED ) ELSE NULL END * + 53 END * - 66 - + ( - 21 - + 0 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9267
SELECT + CASE - 72 WHEN 42 + - ( + 31 ) THEN NULL ELSE CASE + 15 WHEN COUNT ( * ) THEN CAST ( 66 AS INTEGER ) ELSE NULL END * + 53 END * - 66 - + ( - 21 - + 0 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9268
SELECT - 11, 43 DIV 11 + - COUNT( * ) AS col0
----
-11
2

skipif mysql # not compatible
query II rowsort label-9268
SELECT - 11, 43 / 11 + - COUNT ( * ) AS col0
----
-11
2

onlyif mysql # aggregate syntax: 
query II rowsort label-9269
SELECT DISTINCT COUNT( * ) AS col1, 56 + 19 - MAX( - - 79 ) * 59
----
1
-4586

skipif mysql # not compatible
query II rowsort label-9269
SELECT DISTINCT COUNT ( * ) AS col1, 56 + 19 - MAX ( - - 79 ) * 59
----
1
-4586

onlyif mysql # aggregate syntax: 
query I rowsort label-9270
SELECT DISTINCT MAX( + - 6 ) AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-9270
SELECT DISTINCT MAX ( + - 6 ) AS col1
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9271
SELECT ALL NULLIF ( + CASE + + 24 WHEN + + 72 THEN NULL WHEN 89 + - 82 DIV - 95 THEN - 34 ELSE - 33 DIV - 61 END, 25 * + MIN( 34 ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9271
SELECT ALL NULLIF ( + CASE + + 24 WHEN + + 72 THEN NULL WHEN 89 + - 82 / - 95 THEN - 34 ELSE - 33 / - 61 END, 25 * + MIN ( 34 ) ) AS col2
----
0

query II rowsort
SELECT ALL ( - COALESCE ( - 68, + - 89 ) ), 34 AS col2
----
68
34

query I rowsort
SELECT - ( + 75 ) - + 14
----
-89

onlyif mysql # aggregate syntax: 
query II rowsort label-9274
SELECT - 85 AS col2, COUNT( * ) + 86 AS col0
----
-85
87

skipif mysql # not compatible
query II rowsort label-9274
SELECT - 85 AS col2, COUNT ( * ) + 86 AS col0
----
-85
87

onlyif mysql # aggregate syntax: 
query I rowsort label-9275
SELECT - COUNT( * ) - ( + 96 ) AS col2
----
-97

skipif mysql # not compatible
query I rowsort label-9275
SELECT - COUNT ( * ) - ( + 96 ) AS col2
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9276
SELECT ALL NULLIF ( + + 81, + COUNT( * ) )
----
81

skipif mysql # not compatible
query I rowsort label-9276
SELECT ALL NULLIF ( + + 81, + COUNT ( * ) )
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9277
SELECT ALL + SUM( DISTINCT 46 ) * + - 14 AS col2
----
-644

skipif mysql # not compatible
query I rowsort label-9277
SELECT ALL + SUM ( DISTINCT 46 ) * + - 14 AS col2
----
-644

onlyif mysql # DIV for integer division: 
query I rowsort label-9278
SELECT + ( + 44 ) DIV 42 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9278
SELECT + ( + 44 ) / 42 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9279
SELECT DISTINCT ( SUM( - 46 ) )
----
-46

skipif mysql # not compatible
query I rowsort label-9279
SELECT DISTINCT ( SUM ( - 46 ) )
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-9280
SELECT + SUM( ALL - 10 ) + 47
----
37

skipif mysql # not compatible
query I rowsort label-9280
SELECT + SUM ( ALL - 10 ) + 47
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9281
SELECT DISTINCT 44 / + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9281
SELECT DISTINCT 44 / + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 73 * - 13 AS col1
----
949

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9283
SELECT DISTINCT - COUNT( * ) * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9283
SELECT DISTINCT - COUNT ( * ) * + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9284
SELECT ALL + COUNT( ALL - ( + - 68 ) ) / + 11 * - - NULLIF ( + - COUNT( * ), + 47 ) + + CASE + 83 WHEN - COALESCE ( - 14, 23, + COALESCE ( + 39, - 5, 85 * 80 ) ) + + 10 THEN NULL WHEN 66 * 24 THEN 73 / MAX( ALL + 91 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9284
SELECT ALL + COUNT ( ALL - ( + - 68 ) ) / + 11 * - - NULLIF ( + - COUNT ( * ), + 47 ) + + CASE + 83 WHEN - COALESCE ( - 14, 23, + COALESCE ( + 39, - 5, 85 * 80 ) ) + + 10 THEN NULL WHEN 66 * 24 THEN 73 / MAX ( ALL + 91 ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9285
SELECT DISTINCT + COUNT( * ) col0, 89 * - - MAX( DISTINCT 81 ) - - 66 + + - 88
----
1
7187

skipif mysql # not compatible
query II rowsort label-9285
SELECT DISTINCT + COUNT ( * ) col0, 89 * - - MAX ( DISTINCT 81 ) - - 66 + + - 88
----
1
7187

query I rowsort
SELECT - 43 * + 23
----
-989

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9287
SELECT DISTINCT + 98 DIV 28 DIV 24 + + 82 AS col1, - CAST( NULL AS SIGNED ) - 40 + - 64 * + 22 * 83
----
82
NULL

skipif mysql # not compatible
query II rowsort label-9287
SELECT DISTINCT + 98 / 28 / 24 + + 82 AS col1, - CAST ( NULL AS INTEGER ) - 40 + - 64 * + 22 * 83
----
82
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9288
SELECT ALL - COALESCE ( - - 7, 50, - 88 + - - CASE - - 76 WHEN 49 THEN COUNT( 24 ) ELSE + CASE 65 WHEN - 66 THEN 85 ELSE NULL END END + + CASE 48 WHEN 12 THEN - 86 WHEN ( 31 ) THEN NULL END ) DIV 42 + 68 AS col2
----
68

skipif mysql # not compatible
query I rowsort label-9288
SELECT ALL - COALESCE ( - - 7, 50, - 88 + - - CASE - - 76 WHEN 49 THEN COUNT ( 24 ) ELSE + CASE 65 WHEN - 66 THEN 85 ELSE NULL END END + + CASE 48 WHEN 12 THEN - 86 WHEN ( 31 ) THEN NULL END ) / 42 + 68 AS col2
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9289
SELECT - CAST( NULL AS SIGNED ) - + + 86
----
NULL

skipif mysql # not compatible
query I rowsort label-9289
SELECT - CAST ( NULL AS INTEGER ) - + + 86
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9290
SELECT + 25, - NULLIF ( - 11, - CAST( + - 75 AS SIGNED ) ) AS col2
----
25
11

skipif mysql # not compatible
query II rowsort label-9290
SELECT + 25, - NULLIF ( - 11, - CAST ( + - 75 AS INTEGER ) ) AS col2
----
25
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9291
SELECT 42 * COUNT( * ) DIV - + COUNT( * )
----
-42

skipif mysql # not compatible
query I rowsort label-9291
SELECT 42 * COUNT ( * ) / - + COUNT ( * )
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-9292
SELECT ALL + COUNT( * ) + - + 59 - - 4 AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-9292
SELECT ALL + COUNT ( * ) + - + 59 - - 4 AS col0
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-9293
SELECT + CASE - COALESCE ( 68, + 15 + - - 18 * - + 35 ) WHEN COUNT( * ) THEN + 98 + 63 WHEN 79 THEN + COALESCE ( 37, 30 ) * - 66 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9293
SELECT + CASE - COALESCE ( 68, + 15 + - - 18 * - + 35 ) WHEN COUNT ( * ) THEN + 98 + 63 WHEN 79 THEN + COALESCE ( 37, 30 ) * - 66 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9294
SELECT 27 AS col1, COUNT( * )
----
27
1

skipif mysql # not compatible
query II rowsort label-9294
SELECT 27 AS col1, COUNT ( * )
----
27
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9295
SELECT ALL - + 41 + + COUNT( * ) AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-9295
SELECT ALL - + 41 + + COUNT ( * ) AS col2
----
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-9296
SELECT DISTINCT + 88 + + - 34 DIV 42 AS col2
----
88

skipif mysql # not compatible
query I rowsort label-9296
SELECT DISTINCT + 88 + + - 34 / 42 AS col2
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9297
SELECT ALL - CAST( + 84 AS SIGNED ) + + + 24 AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-9297
SELECT ALL - CAST ( + 84 AS INTEGER ) + + + 24 AS col1
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9298
SELECT ALL + + 29 * - MAX( - 2 ) * COUNT( * ) * 2 * - CASE ( - 73 ) WHEN - 40 THEN + 0 WHEN + ( ( - 67 ) ) THEN NULL ELSE - 95 * - CAST( NULL AS SIGNED ) END - 59 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9298
SELECT ALL + + 29 * - MAX ( - 2 ) * COUNT ( * ) * 2 * - CASE ( - 73 ) WHEN - 40 THEN + 0 WHEN + ( ( - 67 ) ) THEN NULL ELSE - 95 * - CAST ( NULL AS INTEGER ) END - 59 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9299
SELECT - 58 * + - 37 + CASE 61 WHEN + 7 + 55 - - 53 DIV - 41 THEN - 78 END
----
2068

skipif mysql # not compatible
query I rowsort label-9299
SELECT - 58 * + - 37 + CASE 61 WHEN + 7 + 55 - - 53 / - 41 THEN - 78 END
----
2068

query I rowsort
SELECT CASE NULLIF ( - 96, + - 61 + 43 * ( 68 ) ) WHEN 44 * - 22 THEN - 36 * 82 END * + 18 + - 31 * 18
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9301
SELECT + 33 AS col0, SUM( DISTINCT - 45 ) * - 2 * + 50 * CAST( NULL AS SIGNED ) - + 57
----
33
NULL

skipif mysql # not compatible
query II rowsort label-9301
SELECT + 33 AS col0, SUM ( DISTINCT - 45 ) * - 2 * + 50 * CAST ( NULL AS INTEGER ) - + 57
----
33
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9302
SELECT - 44, MIN( DISTINCT + 33 ) * - 78 col2
----
-44
-2574

skipif mysql # not compatible
query II rowsort label-9302
SELECT - 44, MIN ( DISTINCT + 33 ) * - 78 col2
----
-44
-2574

onlyif mysql # aggregate syntax: 
query I rowsort label-9303
SELECT ALL - + 53 - - COUNT( * )
----
-52

skipif mysql # not compatible
query I rowsort label-9303
SELECT ALL - + 53 - - COUNT ( * )
----
-52

query I rowsort
SELECT - 25 + - 41
----
-66

query I rowsort
SELECT - 39 + - + 21
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-9306
SELECT - COUNT( * ) - 40
----
-41

skipif mysql # not compatible
query I rowsort label-9306
SELECT - COUNT ( * ) - 40
----
-41

query I rowsort
SELECT DISTINCT - - 87 * + 91 + + 97 AS col0
----
8014

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9308
SELECT ALL - - 61 - - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9308
SELECT ALL - - 61 - - CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9309
SELECT 26 * - 79 + - COUNT( * ) * + 39 + - - 54 AS col1
----
-2039

skipif mysql # not compatible
query I rowsort label-9309
SELECT 26 * - 79 + - COUNT ( * ) * + 39 + - - 54 AS col1
----
-2039

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9310
SELECT - 66 + - COUNT( * ) + + 26 + 70 * - + 22 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9310
SELECT - 66 + - COUNT ( * ) + + 26 + 70 * - + 22 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9311
SELECT ALL - 85, ( + COUNT( * ) ) * - 7 AS col1
----
-85
-7

skipif mysql # not compatible
query II rowsort label-9311
SELECT ALL - 85, ( + COUNT ( * ) ) * - 7 AS col1
----
-85
-7

query I rowsort
SELECT DISTINCT - - 11 - 11 * - 32 col0
----
363

query I rowsort
SELECT DISTINCT 62 * - - 30 * 31 AS col2
----
57660

onlyif mysql # aggregate syntax: 
query I rowsort label-9314
SELECT MAX( ALL - ( 15 ) ) * - 2 * + 99 + - - 35 AS col1
----
3005

skipif mysql # not compatible
query I rowsort label-9314
SELECT MAX ( ALL - ( 15 ) ) * - 2 * + 99 + - - 35 AS col1
----
3005

onlyif mysql # aggregate syntax: 
query I rowsort label-9315
SELECT ALL 97 * - 22 * + 39 * - + COUNT( * ) * 40 AS col1
----
3329040

skipif mysql # not compatible
query I rowsort label-9315
SELECT ALL 97 * - 22 * + 39 * - + COUNT ( * ) * 40 AS col1
----
3329040

onlyif mysql # aggregate syntax: 
query I rowsort label-9316
SELECT DISTINCT SUM( ALL + 16 ) * + + MAX( ALL + 27 ) AS col2
----
432

skipif mysql # not compatible
query I rowsort label-9316
SELECT DISTINCT SUM ( ALL + 16 ) * + + MAX ( ALL + 27 ) AS col2
----
432

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9317
SELECT 72 + + CASE + 87 WHEN + - MIN( ALL + + 96 ) - + + 78 THEN + 94 DIV 92 + - 59 * + 72 ELSE 69 + - 91 END
----
50

skipif mysql # not compatible
query I rowsort label-9317
SELECT 72 + + CASE + 87 WHEN + - MIN ( ALL + + 96 ) - + + 78 THEN + 94 / 92 + - 59 * + 72 ELSE 69 + - 91 END
----
50

query I rowsort
SELECT ( + + 35 ) + 46 AS col1
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9319
SELECT ALL 3 + - ( - CAST( NULL AS SIGNED ) ) * + - COUNT( * ) - + 69 + 17 + - - 72 + - 34
----
NULL

skipif mysql # not compatible
query I rowsort label-9319
SELECT ALL 3 + - ( - CAST ( NULL AS INTEGER ) ) * + - COUNT ( * ) - + 69 + 17 + - - 72 + - 34
----
NULL

query I rowsort
SELECT ALL + CASE WHEN NOT NULL < 94 THEN NULL ELSE 59 * + 87 END + + - 79 * + 64 col1
----
77

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9321
SELECT DISTINCT 90 + + CAST( NULL AS DECIMAL ) - + COUNT( * ), 12 * 36 * + - 31 * + + 18 AS col1
----
NULL
-241056

skipif mysql # not compatible
query II rowsort label-9321
SELECT DISTINCT 90 + + CAST ( NULL AS REAL ) - + COUNT ( * ), 12 * 36 * + - 31 * + + 18 AS col1
----
NULL
-241056

onlyif mysql # aggregate syntax: 
query I rowsort label-9322
SELECT ALL COUNT( * ) + - COUNT( * ) - + + 98 AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-9322
SELECT ALL COUNT ( * ) + - COUNT ( * ) - + + 98 AS col2
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-9323
SELECT 26 + 88 + - COUNT( * ) + - + 94 * + + 71 - + 3
----
-6564

skipif mysql # not compatible
query I rowsort label-9323
SELECT 26 + 88 + - COUNT ( * ) + - + 94 * + + 71 - + 3
----
-6564

query II rowsort
SELECT ALL 25 + - 89 col1, COALESCE ( - - 34, + 19 - - + 50 )
----
-64
34

query I rowsort
SELECT 97 + 89 + - 70 + 22
----
138

onlyif mysql # DIV for integer division: 
query I rowsort label-9326
SELECT - 42 DIV 50 + - 7 * - 83 AS col1
----
581

skipif mysql # not compatible
query I rowsort label-9326
SELECT - 42 / 50 + - 7 * - 83 AS col1
----
581

onlyif mysql # aggregate syntax: 
query I rowsort label-9327
SELECT - 55 * - 42 - - 94 - + 16 + COUNT( * ) * - 58 + 97 AS col0
----
2427

skipif mysql # not compatible
query I rowsort label-9327
SELECT - 55 * - 42 - - 94 - + 16 + COUNT ( * ) * - 58 + 97 AS col0
----
2427

query I rowsort
SELECT ALL - ( - - ( + 37 ) ) * 53 AS col0
----
-1961

query I rowsort
SELECT ALL 89 + - + 0 + + 92
----
181

onlyif mysql # aggregate syntax: 
query II rowsort label-9330
SELECT DISTINCT - - MAX( ALL 32 ), 22 AS col2
----
32
22

skipif mysql # not compatible
query II rowsort label-9330
SELECT DISTINCT - - MAX ( ALL 32 ), 22 AS col2
----
32
22

query I rowsort
SELECT - 85 * + 58 + 30
----
-4900

query I rowsort
SELECT DISTINCT - - ( 73 ) AS col0
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9333
SELECT ALL + 1 * CASE - + 64 WHEN 90 THEN NULL ELSE - COUNT( 44 ) + - 22 DIV + 15 END
----
-2

skipif mysql # not compatible
query I rowsort label-9333
SELECT ALL + 1 * CASE - + 64 WHEN 90 THEN NULL ELSE - COUNT ( 44 ) + - 22 / + 15 END
----
-2

query I rowsort
SELECT - 56 + + 57 + - 45
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-9335
SELECT ALL + + 1 - - + 76 * - - COUNT( * ) AS col0
----
77

skipif mysql # not compatible
query I rowsort label-9335
SELECT ALL + + 1 - - + 76 * - - COUNT ( * ) AS col0
----
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9336
SELECT 41 * 48 DIV + SUM( DISTINCT - 49 ) AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-9336
SELECT 41 * 48 / + SUM ( DISTINCT - 49 ) AS col0
----
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-9337
SELECT 84 + 66 AS col1, - COUNT( * ) * - + 80 AS col1
----
150
80

skipif mysql # not compatible
query II rowsort label-9337
SELECT 84 + 66 AS col1, - COUNT ( * ) * - + 80 AS col1
----
150
80

onlyif mysql # DIV for integer division: 
query I rowsort label-9338
SELECT - 79 DIV 51 + + + 2
----
1

skipif mysql # not compatible
query I rowsort label-9338
SELECT - 79 / 51 + + + 2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9339
SELECT DISTINCT + + 89 DIV - COUNT( * ) AS col1
----
-89

skipif mysql # not compatible
query I rowsort label-9339
SELECT DISTINCT + + 89 / - COUNT ( * ) AS col1
----
-89

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9340
SELECT ( 55 ) * 70 - - 21 * - 96 * + 97 * + 84 + + 39 + CAST( NULL AS DECIMAL ) * - 23
----
NULL

skipif mysql # not compatible
query I rowsort label-9340
SELECT ( 55 ) * 70 - - 21 * - 96 * + 97 * + 84 + + 39 + CAST ( NULL AS REAL ) * - 23
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9341
SELECT ALL + 85 * - COUNT( * ) + 7
----
-78

skipif mysql # not compatible
query I rowsort label-9341
SELECT ALL + 85 * - COUNT ( * ) + 7
----
-78

query I rowsort
SELECT 41 * + + 5 AS col1
----
205

query I rowsort
SELECT DISTINCT + 60 * - 2 * - - 18 * - - 81 * 28 + 11 col1
----
-4898869

query I rowsort
SELECT COALESCE ( 32, + + 6 ) AS col1
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-9345
SELECT ALL - NULLIF ( + COUNT( * ), + 12 + 33 + - 0 * - NULLIF ( + 36, 91 - - 12 ) / + 53 ) * 14 AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-9345
SELECT ALL - NULLIF ( + COUNT ( * ), + 12 + 33 + - 0 * - NULLIF ( + 36, 91 - - 12 ) / + 53 ) * 14 AS col1
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-9346
SELECT - MAX( 78 ) * COALESCE ( + 7, + 54, + - ( 3 ) * + 6 ) col1
----
-546

skipif mysql # not compatible
query I rowsort label-9346
SELECT - MAX ( 78 ) * COALESCE ( + 7, + 54, + - ( 3 ) * + 6 ) col1
----
-546

onlyif mysql # aggregate syntax: 
query I rowsort label-9347
SELECT ALL MAX( 8 )
----
8

skipif mysql # not compatible
query I rowsort label-9347
SELECT ALL MAX ( 8 )
----
8

query I rowsort
SELECT 82 * + - 66 col2
----
-5412

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9349
SELECT DISTINCT - 56 + - 20 + + ( - COUNT( * ) ) DIV - 76 + + 82 AS col2
----
6

skipif mysql # not compatible
query I rowsort label-9349
SELECT DISTINCT - 56 + - 20 + + ( - COUNT ( * ) ) / - 76 + + 82 AS col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9350
SELECT ALL + 2 + - 72 + COUNT( * )
----
-69

skipif mysql # not compatible
query I rowsort label-9350
SELECT ALL + 2 + - 72 + COUNT ( * )
----
-69

query I rowsort
SELECT ALL ( 74 ) + + - 31 AS col1
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-9352
SELECT ALL COUNT( * ) + + - 66 AS col0
----
-65

skipif mysql # not compatible
query I rowsort label-9352
SELECT ALL COUNT ( * ) + + - 66 AS col0
----
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9353
SELECT ALL NULLIF ( - + COUNT( * ), - CASE - - 60 WHEN 60 * + + 61 + + 86 - - 18 - + 72 * - NULLIF ( + COUNT( 88 ) * 1 + - CAST( COUNT( * ) AS SIGNED ), 13 + - COUNT( * ) ) THEN + COUNT( * ) END )
----
-1

skipif mysql # not compatible
query I rowsort label-9353
SELECT ALL NULLIF ( - + COUNT ( * ), - CASE - - 60 WHEN 60 * + + 61 + + 86 - - 18 - + 72 * - NULLIF ( + COUNT ( 88 ) * 1 + - CAST ( COUNT ( * ) AS INTEGER ), 13 + - COUNT ( * ) ) THEN + COUNT ( * ) END )
----
-1

query I rowsort
SELECT DISTINCT + 75 + + 37 + + ( - 54 ) + + 31 AS col1
----
89

query I rowsort
SELECT 11 - - + 37
----
48

query I rowsort
SELECT ALL 49 + + 39
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-9357
SELECT ALL COUNT( * ) * COUNT( * ) * - 65 * + 86 AS col2
----
-5590

skipif mysql # not compatible
query I rowsort label-9357
SELECT ALL COUNT ( * ) * COUNT ( * ) * - 65 * + 86 AS col2
----
-5590

onlyif mysql # DIV for integer division: 
query I rowsort label-9358
SELECT - ( - + COALESCE ( + + 47, + 46 ) ) DIV + 56
----
0

skipif mysql # not compatible
query I rowsort label-9358
SELECT - ( - + COALESCE ( + + 47, + 46 ) ) / + 56
----
0

query I rowsort
SELECT DISTINCT COALESCE ( - 43, - 44 ) * - 3 AS col2
----
129

query I rowsort
SELECT ALL 1 * + 55
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-9361
SELECT + 13 + + 38 * 24 + - COUNT( * ) - + - 49 + + 99
----
1072

skipif mysql # not compatible
query I rowsort label-9361
SELECT + 13 + + 38 * 24 + - COUNT ( * ) - + - 49 + + 99
----
1072

query I rowsort
SELECT ALL 48 + + + 82 AS col2
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-9363
SELECT ALL + - MAX( ALL - 7 )
----
7

skipif mysql # not compatible
query I rowsort label-9363
SELECT ALL + - MAX ( ALL - 7 )
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-9364
SELECT + + 60 * + + 59 * + - COUNT( * ) AS col0, + 12 * ( + 86 )
----
-3540
1032

skipif mysql # not compatible
query II rowsort label-9364
SELECT + + 60 * + + 59 * + - COUNT ( * ) AS col0, + 12 * ( + 86 )
----
-3540
1032

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9365
SELECT COALESCE ( - + 61, - 93 * - + COUNT( * ) ) DIV - 6 + 25 * + 60
----
1510

skipif mysql # not compatible
query I rowsort label-9365
SELECT COALESCE ( - + 61, - 93 * - + COUNT ( * ) ) / - 6 + 25 * + 60
----
1510

query I rowsort
SELECT ALL - 28 * - 57 * + 56 - + 0 * ( 4 ) * + 46 * + 18 * 63 AS col2
----
89376

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9367
SELECT CAST( NULL AS SIGNED ) / + 49 * + 59 - - ( NULLIF ( + - 28, ( - 6 ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9367
SELECT CAST ( NULL AS INTEGER ) / + 49 * + 59 - - ( NULLIF ( + - 28, ( - 6 ) ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9368
SELECT + + SUM( DISTINCT 71 ) + + 60 * - - 63 col2
----
3851

skipif mysql # not compatible
query I rowsort label-9368
SELECT + + SUM ( DISTINCT 71 ) + + 60 * - - 63 col2
----
3851

onlyif mysql # aggregate syntax: 
query I rowsort label-9369
SELECT ALL - 89 * - + 65 * + COUNT( + + 0 ) AS col1
----
5785

skipif mysql # not compatible
query I rowsort label-9369
SELECT ALL - 89 * - + 65 * + COUNT ( + + 0 ) AS col1
----
5785

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9370
SELECT - 90 * + 19 * - 65 * - + 64 - CAST( NULL AS SIGNED ) + - + CASE CAST( NULL AS SIGNED ) WHEN - - 51 * 29 THEN 35 WHEN 65 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9370
SELECT - 90 * + 19 * - 65 * - + 64 - CAST ( NULL AS INTEGER ) + - + CASE CAST ( NULL AS INTEGER ) WHEN - - 51 * 29 THEN 35 WHEN 65 THEN NULL END
----
NULL

query I rowsort
SELECT + - 34 * + 3 * + - 93 + - 20 AS col0
----
9466

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9372
SELECT + 78 DIV + 72 + 19 - COUNT( * ) AS col0
----
19

skipif mysql # not compatible
query I rowsort label-9372
SELECT + 78 / + 72 + 19 - COUNT ( * ) AS col0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-9373
SELECT DISTINCT - 95 * - COUNT( * ) * + NULLIF ( - COUNT( 9 ), 36 + - + 33 + - 18 )
----
-95

skipif mysql # not compatible
query I rowsort label-9373
SELECT DISTINCT - 95 * - COUNT ( * ) * + NULLIF ( - COUNT ( 9 ), 36 + - + 33 + - 18 )
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-9374
SELECT + COUNT( * ) * - - ( + COUNT( * ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9374
SELECT + COUNT ( * ) * - - ( + COUNT ( * ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9375
SELECT ALL + COUNT( * ), 54 + ( - 83 ) + - MAX( ALL + 73 ) * - COUNT( * ) AS col0
----
1
44

skipif mysql # not compatible
query II rowsort label-9375
SELECT ALL + COUNT ( * ), 54 + ( - 83 ) + - MAX ( ALL + 73 ) * - COUNT ( * ) AS col0
----
1
44

onlyif mysql # aggregate syntax: 
query I rowsort label-9376
SELECT + COALESCE ( COUNT( * ), - 33, + - 36 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9376
SELECT + COALESCE ( COUNT ( * ), - 33, + - 36 ) AS col0
----
1

query I rowsort
SELECT + + 82 + - 53 * 24 + + 65 col2
----
-1125

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9378
SELECT + CAST( 18 AS SIGNED )
----
18

skipif mysql # not compatible
query I rowsort label-9378
SELECT + CAST ( 18 AS INTEGER )
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9379
SELECT - ( COALESCE ( - COUNT( ALL 58 ), + 71, 5 ) ) DIV + - 45 * 31 - + COUNT( 10 ) + + 65
----
64

skipif mysql # not compatible
query I rowsort label-9379
SELECT - ( COALESCE ( - COUNT ( ALL 58 ), + 71, 5 ) ) / + - 45 * 31 - + COUNT ( 10 ) + + 65
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9380
SELECT COALESCE ( COUNT( * ), - 3 ) * + 27 * NULLIF ( + - 1, ( - 4 ) * - 84 ) * + 12 + CAST( NULL AS SIGNED ) + 18
----
NULL

skipif mysql # not compatible
query I rowsort label-9380
SELECT COALESCE ( COUNT ( * ), - 3 ) * + 27 * NULLIF ( + - 1, ( - 4 ) * - 84 ) * + 12 + CAST ( NULL AS INTEGER ) + 18
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9381
SELECT DISTINCT MAX( + + 25 )
----
25

skipif mysql # not compatible
query I rowsort label-9381
SELECT DISTINCT MAX ( + + 25 )
----
25

query I rowsort
SELECT ALL - 61 + - 77
----
-138

onlyif mysql # aggregate syntax: 
query I rowsort label-9383
SELECT ALL + AVG ( 50 ) + CASE + - 16 WHEN - 52 THEN - 8 + - - 60 + - 31 WHEN + - COUNT( * ) THEN - 26 * - 6 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9383
SELECT ALL + AVG ( 50 ) + CASE + - 16 WHEN - 52 THEN - 8 + - - 60 + - 31 WHEN + - COUNT ( * ) THEN - 26 * - 6 END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9384
SELECT DISTINCT - 16 * - + 32 * 42 / CAST( NULL AS SIGNED ) * ( + 11 ) * - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9384
SELECT DISTINCT - 16 * - + 32 * 42 / CAST ( NULL AS INTEGER ) * ( + 11 ) * - COUNT ( * ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9385
SELECT DISTINCT + SUM( DISTINCT + 68 ) + - ( COUNT( CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) ) ) * + 54 + + - 20 * 91
----
-1752

skipif mysql # not compatible
query I rowsort label-9385
SELECT DISTINCT + SUM ( DISTINCT + 68 ) + - ( COUNT ( CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) ) ) * + 54 + + - 20 * 91
----
-1752

query I rowsort
SELECT ALL - 71 + 14 + + ( - 57 ) AS col2
----
-114

onlyif mysql # aggregate syntax: 
query I rowsort label-9387
SELECT DISTINCT + COUNT( * ) * - 20
----
-20

skipif mysql # not compatible
query I rowsort label-9387
SELECT DISTINCT + COUNT ( * ) * - 20
----
-20

query I rowsort
SELECT - 90 * + 99
----
-8910

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9389
SELECT - CASE - 24 WHEN - 93 THEN NULL WHEN 97 THEN - 90 + + 63 * - COUNT( * ) * - NULLIF ( + MIN( + CAST( - 76 AS SIGNED ) ), 14 ) * 49 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9389
SELECT - CASE - 24 WHEN - 93 THEN NULL WHEN 97 THEN - 90 + + 63 * - COUNT ( * ) * - NULLIF ( + MIN ( + CAST ( - 76 AS INTEGER ) ), 14 ) * 49 ELSE NULL END
----
NULL

query I rowsort
SELECT - 8 + + 72 * + 35 AS col2
----
2512

onlyif mysql # aggregate syntax: 
query I rowsort label-9391
SELECT ALL NULLIF ( + ( - 66 ), COUNT( * ) + + 93 ) AS col0
----
-66

skipif mysql # not compatible
query I rowsort label-9391
SELECT ALL NULLIF ( + ( - 66 ), COUNT ( * ) + + 93 ) AS col0
----
-66

query I rowsort
SELECT - 84 + - - 93
----
9

query I rowsort
SELECT DISTINCT 95 - 76
----
19

onlyif mysql # aggregate syntax: 
query II rowsort label-9394
SELECT - MAX( ALL + 18 ) AS col2, - 19
----
-18
-19

skipif mysql # not compatible
query II rowsort label-9394
SELECT - MAX ( ALL + 18 ) AS col2, - 19
----
-18
-19

onlyif mysql # DIV for integer division: 
query II rowsort label-9395
SELECT ALL 30 - + - 81, + 0 + - 71 DIV 6 AS col1
----
111
-11

skipif mysql # not compatible
query II rowsort label-9395
SELECT ALL 30 - + - 81, + 0 + - 71 / 6 AS col1
----
111
-11

query II rowsort
SELECT DISTINCT 89 * + - 51 AS col0, 28
----
-4539
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9397
SELECT DISTINCT CAST( + - CASE + - 22 WHEN 68 + - + MIN( - ( + 79 ) ) THEN + - CAST( - COUNT( * ) AS SIGNED ) WHEN + COUNT( ALL - 5 ) THEN NULL ELSE 17 END AS SIGNED )
----
-17

skipif mysql # not compatible
query I rowsort label-9397
SELECT DISTINCT CAST ( + - CASE + - 22 WHEN 68 + - + MIN ( - ( + 79 ) ) THEN + - CAST ( - COUNT ( * ) AS INTEGER ) WHEN + COUNT ( ALL - 5 ) THEN NULL ELSE 17 END AS INTEGER )
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9398
SELECT DISTINCT - COALESCE ( - 96, - + CAST( - - 60 AS SIGNED ) * - 88 + - 83 + COUNT( * ) DIV 42 + + - 13 - + COUNT( * ) * 22 + - 73 ) - + COALESCE ( - 42, - 89 + ( 85 ) ) AS col2
----
138

skipif mysql # not compatible
query I rowsort label-9398
SELECT DISTINCT - COALESCE ( - 96, - + CAST ( - - 60 AS INTEGER ) * - 88 + - 83 + COUNT ( * ) / 42 + + - 13 - + COUNT ( * ) * 22 + - 73 ) - + COALESCE ( - 42, - 89 + ( 85 ) ) AS col2
----
138

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9399
SELECT - 55 * - - 40 + + ( + 63 ), - SUM( ALL 77 ) * - 9 + - + 45 - 20 * 16 * CAST( NULL AS SIGNED ) AS col2
----
-2137
NULL

skipif mysql # not compatible
query II rowsort label-9399
SELECT - 55 * - - 40 + + ( + 63 ), - SUM ( ALL 77 ) * - 9 + - + 45 - 20 * 16 * CAST ( NULL AS INTEGER ) AS col2
----
-2137
NULL

query I rowsort
SELECT + + 73 + - ( + 8 )
----
65

query II rowsort
SELECT - + 87 + + 17, - 80 AS col1
----
-70
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-9402
SELECT + + COUNT( * ) * - 27 AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-9402
SELECT + + COUNT ( * ) * - 27 AS col0
----
-27

query I rowsort
SELECT ALL + 18 * 44 * + ( + - 45 )
----
-35640

onlyif mysql # aggregate syntax: 
query I rowsort label-9404
SELECT + - NULLIF ( + 93, - 77 - + 0 * - 27 * - + 62 / + - 28 ) + - COUNT( * ) + + MAX( ALL - 65 ) * + 39
----
-2629

skipif mysql # not compatible
query I rowsort label-9404
SELECT + - NULLIF ( + 93, - 77 - + 0 * - 27 * - + 62 / + - 28 ) + - COUNT ( * ) + + MAX ( ALL - 65 ) * + 39
----
-2629

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9405
SELECT ALL + ( 8 ) * - COUNT( * ) * + COALESCE ( CASE 57 WHEN - 10 + - 85 + + 51 THEN NULL WHEN 93 * - CAST( COUNT( * ) AS SIGNED ) THEN NULL ELSE 0 END, 33 ) + COUNT( * ) DIV - 6
----
0

skipif mysql # not compatible
query I rowsort label-9405
SELECT ALL + ( 8 ) * - COUNT ( * ) * + COALESCE ( CASE 57 WHEN - 10 + - 85 + + 51 THEN NULL WHEN 93 * - CAST ( COUNT ( * ) AS INTEGER ) THEN NULL ELSE 0 END, 33 ) + COUNT ( * ) / - 6
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9406
SELECT DISTINCT + MIN( DISTINCT + 10 ) AS col2, + MAX( - 47 ) * - 31 AS col1
----
10
1457

skipif mysql # not compatible
query II rowsort label-9406
SELECT DISTINCT + MIN ( DISTINCT + 10 ) AS col2, + MAX ( - 47 ) * - 31 AS col1
----
10
1457

onlyif mysql # aggregate syntax: 
query I rowsort label-9407
SELECT ALL + - ( - COUNT( * ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9407
SELECT ALL + - ( - COUNT ( * ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9408
SELECT + COALESCE ( - 18, + AVG ( DISTINCT - 72 ) ) * 52 + - MAX( DISTINCT + 98 ) + CASE 53 WHEN 2 * + 95 THEN - 96 * COUNT( * ) WHEN - AVG ( DISTINCT + 82 ) + 2 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9408
SELECT + COALESCE ( - 18, + AVG ( DISTINCT - 72 ) ) * 52 + - MAX ( DISTINCT + 98 ) + CASE 53 WHEN 2 * + 95 THEN - 96 * COUNT ( * ) WHEN - AVG ( DISTINCT + 82 ) + 2 THEN NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9409
SELECT DISTINCT + CAST( NULLIF ( 41, ( + NULLIF ( 37, + + 3 ) ) * - COUNT( * ) ) AS SIGNED )
----
41

skipif mysql # not compatible
query I rowsort label-9409
SELECT DISTINCT + CAST ( NULLIF ( 41, ( + NULLIF ( 37, + + 3 ) ) * - COUNT ( * ) ) AS INTEGER )
----
41

query I rowsort
SELECT ALL + + ( - 94 ) AS col0
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-9411
SELECT + - SUM( - 24 ) + ( 64 ) + - 71 * - + 7
----
585

skipif mysql # not compatible
query I rowsort label-9411
SELECT + - SUM ( - 24 ) + ( 64 ) + - 71 * - + 7
----
585

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9412
SELECT + + CAST( NULL AS SIGNED ) * - - 51
----
NULL

skipif mysql # not compatible
query I rowsort label-9412
SELECT + + CAST ( NULL AS INTEGER ) * - - 51
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9413
SELECT + + 22 * + CAST( NULL AS SIGNED ) - - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9413
SELECT + + 22 * + CAST ( NULL AS INTEGER ) - - - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT ALL 47 * 24 AS col1, 36
----
1128
36

query I rowsort
SELECT ALL + 15 * + 45 - - 24 + - 91 + 21 * 25 AS col1
----
1133

query II rowsort
SELECT DISTINCT + ( + - 33 ), 10 AS col0
----
-33
10

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9417
SELECT + 34 * + - 17 * COALESCE ( - CAST( NULL AS SIGNED ), + 14, 66 DIV 29 ) + + 9 * 14 AS col1
----
-7966

skipif mysql # not compatible
query I rowsort label-9417
SELECT + 34 * + - 17 * COALESCE ( - CAST ( NULL AS INTEGER ), + 14, 66 / 29 ) + + 9 * 14 AS col1
----
-7966

query I rowsort
SELECT ALL + 31 * + + 43 + CASE + ( ( 79 ) ) WHEN + 52 THEN 29 WHEN - + 80 THEN NULL ELSE + 98 + + 59 END + 7
----
1497

query I rowsort
SELECT ALL 80 * 21 AS col1
----
1680

query II rowsort
SELECT ALL + 72 AS col0, + 45 * - - 34
----
72
1530

onlyif mysql # aggregate syntax: 
query I rowsort label-9421
SELECT DISTINCT MAX( 59 ) * - + 80 * + 52 * - 3 + 29 * - 65 col2
----
734435

skipif mysql # not compatible
query I rowsort label-9421
SELECT DISTINCT MAX ( 59 ) * - + 80 * + 52 * - 3 + 29 * - 65 col2
----
734435

onlyif mysql # aggregate syntax: 
query I rowsort label-9422
SELECT ALL COUNT( * ) * + 2
----
2

skipif mysql # not compatible
query I rowsort label-9422
SELECT ALL COUNT ( * ) * + 2
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9423
SELECT - 87 * - COUNT( * ) + - + 28 AS col1, COUNT( 50 ) + - + 80 + + CAST( NULL AS SIGNED ) AS col1
----
59
NULL

skipif mysql # not compatible
query II rowsort label-9423
SELECT - 87 * - COUNT ( * ) + - + 28 AS col1, COUNT ( 50 ) + - + 80 + + CAST ( NULL AS INTEGER ) AS col1
----
59
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9424
SELECT NULLIF ( + CAST( NULL AS SIGNED ), + 52 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9424
SELECT NULLIF ( + CAST ( NULL AS INTEGER ), + 52 ) AS col2
----
NULL

query I rowsort
SELECT ALL 8 + 15 AS col1
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9426
SELECT 36 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9426
SELECT 36 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9427
SELECT ALL - 67 DIV - 91 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9427
SELECT ALL - 67 / - 91 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9428
SELECT DISTINCT - 58 - - COUNT( * ) AS col0
----
-57

skipif mysql # not compatible
query I rowsort label-9428
SELECT DISTINCT - 58 - - COUNT ( * ) AS col0
----
-57

query I rowsort
SELECT 20 + + - 76 + + + 65
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9430
SELECT 26 * - + CASE WHEN NOT 72 IS NULL THEN - 95 ELSE + - 49 * 92 * CAST( + 45 AS SIGNED ) END AS col2
----
2470

skipif mysql # not compatible
query I rowsort label-9430
SELECT 26 * - + CASE WHEN NOT 72 IS NULL THEN - 95 ELSE + - 49 * 92 * CAST ( + 45 AS INTEGER ) END AS col2
----
2470

onlyif mysql # aggregate syntax: 
query II rowsort label-9431
SELECT 25 AS col0, + COUNT( * ) * 29 * ( + SUM( 71 ) ) * + 32 + MIN( - - NULLIF ( - 41, + 50 + 44 ) ) * - 90 col0
----
25
69578

skipif mysql # not compatible
query II rowsort label-9431
SELECT 25 AS col0, + COUNT ( * ) * 29 * ( + SUM ( 71 ) ) * + 32 + MIN ( - - NULLIF ( - 41, + 50 + 44 ) ) * - 90 col0
----
25
69578

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9432
SELECT 45 - SUM( DISTINCT CAST( + 21 AS SIGNED ) ) AS col2
----
24

skipif mysql # not compatible
query I rowsort label-9432
SELECT 45 - SUM ( DISTINCT CAST ( + 21 AS INTEGER ) ) AS col2
----
24

query I rowsort
SELECT 26 * 33 * 15
----
12870

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9434
SELECT CAST( - 23 AS SIGNED ) * + ( 64 ) + - 94 AS col0, 62 * - - COUNT( * )
----
-1566
62

skipif mysql # not compatible
query II rowsort label-9434
SELECT CAST ( - 23 AS INTEGER ) * + ( 64 ) + - 94 AS col0, 62 * - - COUNT ( * )
----
-1566
62

query I rowsort
SELECT ALL + - 95 * - CASE - 34 WHEN + COALESCE ( 99, + 63 / + 83 + - 48 ) THEN NULL WHEN - 43 THEN - 92 * + 58 WHEN 13 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9436
SELECT DISTINCT COUNT( 80 )
----
1

skipif mysql # not compatible
query I rowsort label-9436
SELECT DISTINCT COUNT ( 80 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9437
SELECT DISTINCT CASE 43 WHEN - + 82 THEN NULL ELSE - CAST( - - CASE 97 WHEN + COUNT( * ) THEN NULL ELSE + 12 * - 29 END AS SIGNED ) * + + ( CASE - 64 WHEN 27 + 4 * + 94 THEN NULL WHEN 87 + - 59 THEN 14 END ) * - NULLIF ( 65 + 32, 60 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9437
SELECT DISTINCT CASE 43 WHEN - + 82 THEN NULL ELSE - CAST ( - - CASE 97 WHEN + COUNT ( * ) THEN NULL ELSE + 12 * - 29 END AS INTEGER ) * + + ( CASE - 64 WHEN 27 + 4 * + 94 THEN NULL WHEN 87 + - 59 THEN 14 END ) * - NULLIF ( 65 + 32, 60 ) END
----
NULL

query I rowsort
SELECT 70 * + - 60 AS col0
----
-4200

query II rowsort
SELECT ALL - 57, 17 AS col0
----
-57
17

onlyif mysql # aggregate syntax: 
query I rowsort label-9440
SELECT ALL - SUM( ALL 59 )
----
-59

skipif mysql # not compatible
query I rowsort label-9440
SELECT ALL - SUM ( ALL 59 )
----
-59

query I rowsort
SELECT ALL - 6 + + 23 - + 27
----
-10

query I rowsort
SELECT + ( - - 4 ) AS col0
----
4

query I rowsort
SELECT ALL 22 + + ( - 85 ) AS col2
----
-63

query I rowsort
SELECT ALL 35 + + - 24 AS col2
----
11

query I rowsort
SELECT ALL 45 * - - 62 AS col2
----
2790

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9446
SELECT ALL + MAX( DISTINCT - NULLIF ( - 38, 97 ) ) + - MIN( DISTINCT 71 ) DIV - 27
----
40

skipif mysql # not compatible
query I rowsort label-9446
SELECT ALL + MAX ( DISTINCT - NULLIF ( - 38, 97 ) ) + - MIN ( DISTINCT 71 ) / - 27
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-9447
SELECT ( - 59 ) * 55 DIV - - 46
----
-70

skipif mysql # not compatible
query I rowsort label-9447
SELECT ( - 59 ) * 55 / - - 46
----
-70

query I rowsort
SELECT 43 * + + 45 + - 22 AS col2
----
1913

onlyif mysql # aggregate syntax: 
query I rowsort label-9449
SELECT 11 + + MIN( ALL + 78 ) + + NULLIF ( - 58, + 70 ) + + ( + NULLIF ( - - NULLIF ( - - 18, + + 48 * + 41 ), - NULLIF ( NULLIF ( + 7, - ( + 97 ) * - 63 ), - 46 ) ) ) AS col1
----
49

skipif mysql # not compatible
query I rowsort label-9449
SELECT 11 + + MIN ( ALL + 78 ) + + NULLIF ( - 58, + 70 ) + + ( + NULLIF ( - - NULLIF ( - - 18, + + 48 * + 41 ), - NULLIF ( NULLIF ( + 7, - ( + 97 ) * - 63 ), - 46 ) ) ) AS col1
----
49

query II rowsort
SELECT ALL - 46, 46 col1
----
-46
46

query II rowsort
SELECT 46 col2, - 85 + - 37 AS col0
----
46
-122

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9452
SELECT - 83 * 76 + - 60 + + 60 * + 53 * + CAST( - - 96 AS SIGNED )
----
298912

skipif mysql # not compatible
query I rowsort label-9452
SELECT - 83 * 76 + - 60 + + 60 * + 53 * + CAST ( - - 96 AS INTEGER )
----
298912

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9453
SELECT ALL 85 - - CAST( 88 AS SIGNED )
----
173

skipif mysql # not compatible
query I rowsort label-9453
SELECT ALL 85 - - CAST ( 88 AS INTEGER )
----
173

query I rowsort
SELECT 1 + + 21 AS col2
----
22

query II rowsort
SELECT + 44, 51 AS col2
----
44
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9456
SELECT ALL CAST( + COUNT( * ) AS SIGNED ) * ( 95 )
----
95

skipif mysql # not compatible
query I rowsort label-9456
SELECT ALL CAST ( + COUNT ( * ) AS INTEGER ) * ( 95 )
----
95

query I rowsort
SELECT ( 4 ) + - 31 AS col1
----
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9458
SELECT - COUNT( * ) * - ( - + 53 ) + + - 13 DIV 6
----
-55

skipif mysql # not compatible
query I rowsort label-9458
SELECT - COUNT ( * ) * - ( - + 53 ) + + - 13 / 6
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-9459
SELECT ALL CASE - + COUNT( * ) WHEN 29 + + MIN( + - 92 ) THEN + + ( - 95 ) + - 5 END - 38 + + - 97 - - - 94 / 37 * - CASE 16 * + 87 WHEN 97 THEN MIN( + 68 ) WHEN - 41 THEN + 69 * 46 WHEN + COALESCE ( 77, - 21 ) THEN 23 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9459
SELECT ALL CASE - + COUNT ( * ) WHEN 29 + + MIN ( + - 92 ) THEN + + ( - 95 ) + - 5 END - 38 + + - 97 - - - 94 / 37 * - CASE 16 * + 87 WHEN 97 THEN MIN ( + 68 ) WHEN - 41 THEN + 69 * 46 WHEN + COALESCE ( 77, - 21 ) THEN 23 ELSE NULL END
----
NULL

query II rowsort
SELECT DISTINCT 57 col2, 56
----
57
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9461
SELECT DISTINCT MAX( + 84 ) - - CAST( 21 AS SIGNED ) - 11 DIV + 33 * 57 + + COUNT( * )
----
106

skipif mysql # not compatible
query I rowsort label-9461
SELECT DISTINCT MAX ( + 84 ) - - CAST ( 21 AS INTEGER ) - 11 / + 33 * 57 + + COUNT ( * )
----
106

onlyif mysql # aggregate syntax: 
query II rowsort label-9462
SELECT - COUNT( * ), + 40 + + + 51 AS col0
----
-1
91

skipif mysql # not compatible
query II rowsort label-9462
SELECT - COUNT ( * ), + 40 + + + 51 AS col0
----
-1
91

query I rowsort
SELECT DISTINCT 60 * - COALESCE ( - 10, 93 ) AS col2
----
600

onlyif mysql # aggregate syntax: 
query II rowsort label-9464
SELECT DISTINCT 78 * + COUNT( * ) * - ( - 95 ) AS col2, CASE - 86 WHEN + + 28 * ( + + 67 ) + + 79 + 49 THEN + COUNT( * ) * + 79 END
----
7410
NULL

skipif mysql # not compatible
query II rowsort label-9464
SELECT DISTINCT 78 * + COUNT ( * ) * - ( - 95 ) AS col2, CASE - 86 WHEN + + 28 * ( + + 67 ) + + 79 + 49 THEN + COUNT ( * ) * + 79 END
----
7410
NULL

query I rowsort
SELECT 32 + 14 AS col0
----
46

onlyif mysql # aggregate syntax: 
query II rowsort label-9466
SELECT DISTINCT COALESCE ( - 69, - MAX( + + 45 ) ) AS col1, CASE + + 9 WHEN - 49 / COUNT( * ) + 90 THEN NULL WHEN 33 THEN - 90 ELSE NULL END - 76
----
-69
NULL

skipif mysql # not compatible
query II rowsort label-9466
SELECT DISTINCT COALESCE ( - 69, - MAX ( + + 45 ) ) AS col1, CASE + + 9 WHEN - 49 / COUNT ( * ) + 90 THEN NULL WHEN 33 THEN - 90 ELSE NULL END - 76
----
-69
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9467
SELECT ALL - + 80 DIV - COUNT( * ) + + 12 * - + ( + COUNT( * ) ) AS col0
----
68

skipif mysql # not compatible
query I rowsort label-9467
SELECT ALL - + 80 / - COUNT ( * ) + + 12 * - + ( + COUNT ( * ) ) AS col0
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9468
SELECT + 73 + - CAST( NULL AS SIGNED ) / - 81
----
NULL

skipif mysql # not compatible
query I rowsort label-9468
SELECT + 73 + - CAST ( NULL AS INTEGER ) / - 81
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9469
SELECT 84 * - - 27 * - 16 - - 21 * - COUNT( * ) AS col1
----
-36309

skipif mysql # not compatible
query I rowsort label-9469
SELECT 84 * - - 27 * - 16 - - 21 * - COUNT ( * ) AS col1
----
-36309

onlyif mysql # aggregate syntax: 
query I rowsort label-9470
SELECT ALL - 16 + + 3 - + - COUNT( * ) + + + COUNT( * )
----
-11

skipif mysql # not compatible
query I rowsort label-9470
SELECT ALL - 16 + + 3 - + - COUNT ( * ) + + + COUNT ( * )
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-9471
SELECT ALL + 10 + COUNT( 59 ) + - ( ( + 55 ) ) - + 58 * - 40 + - - 21 AS col0
----
2297

skipif mysql # not compatible
query I rowsort label-9471
SELECT ALL + 10 + COUNT ( 59 ) + - ( ( + 55 ) ) - + 58 * - 40 + - - 21 AS col0
----
2297

query I rowsort
SELECT 15 + - 16
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9473
SELECT - MAX( 14 ) AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-9473
SELECT - MAX ( 14 ) AS col2
----
-14

query II rowsort
SELECT 93 AS col1, 59 * 78 * 66 AS col1
----
93
303732

query I rowsort
SELECT 61 + - 96
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-9476
SELECT ALL - 24 + COUNT( * ) + + COUNT( * )
----
-22

skipif mysql # not compatible
query I rowsort label-9476
SELECT ALL - 24 + COUNT ( * ) + + COUNT ( * )
----
-22

query I rowsort
SELECT ALL + 66 * + 19
----
1254

onlyif mysql # aggregate syntax: 
query II rowsort label-9478
SELECT MIN( DISTINCT 71 ) * ( COUNT( * ) ), 11 AS col2
----
71
11

skipif mysql # not compatible
query II rowsort label-9478
SELECT MIN ( DISTINCT 71 ) * ( COUNT ( * ) ), 11 AS col2
----
71
11

query II rowsort
SELECT - - 10 AS col1, - 27
----
10
-27

query I rowsort
SELECT ALL + 75 + + CASE + 21 WHEN + 77 THEN - 70 WHEN 96 * 19 + + - 52 / 10 THEN + 61 / + 76 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9481
SELECT 84 + - 66 + + - COUNT( * ) AS col1
----
17

skipif mysql # not compatible
query I rowsort label-9481
SELECT 84 + - 66 + + - COUNT ( * ) AS col1
----
17

query I rowsort
SELECT - ( - - 25 ) * + 73 * - 22 col1
----
40150

onlyif mysql # aggregate syntax: 
query I rowsort label-9483
SELECT DISTINCT - MIN( ( 59 ) ) * + + 82
----
-4838

skipif mysql # not compatible
query I rowsort label-9483
SELECT DISTINCT - MIN ( ( 59 ) ) * + + 82
----
-4838

query I rowsort
SELECT ALL + 99 * - - ( - + 76 ) + - 80 AS col2
----
-7604

query II rowsort
SELECT + 54 AS col2, + 65
----
54
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9486
SELECT + SUM( + 53 ), - 31 DIV - 43 AS col1
----
53
0

skipif mysql # not compatible
query II rowsort label-9486
SELECT + SUM ( + 53 ), - 31 / - 43 AS col1
----
53
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9487
SELECT ALL - ( + ( - COUNT( * ) ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9487
SELECT ALL - ( + ( - COUNT ( * ) ) ) AS col0
----
1

query I rowsort
SELECT ALL - - 89 * - 59 + - + 33 + + 7
----
-5277

query I rowsort
SELECT 10 * + 44 * 9 AS col1
----
3960

query II rowsort
SELECT ALL - 53 AS col0, 20 AS col2
----
-53
20

onlyif mysql # DIV for integer division: 
query I rowsort label-9491
SELECT - - 70 DIV + 92 + + - 91 + - + 35 col1
----
-126

skipif mysql # not compatible
query I rowsort label-9491
SELECT - - 70 / + 92 + + - 91 + - + 35 col1
----
-126

query I rowsort
SELECT ALL 17 * + + 17 - - 81
----
370

query I rowsort
SELECT DISTINCT - 66 * + + 61 * - 52
----
209352

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9494
SELECT ALL + CAST( + COUNT( * ) AS SIGNED ) col0, 88 AS col1
----
1
88

skipif mysql # not compatible
query II rowsort label-9494
SELECT ALL + CAST ( + COUNT ( * ) AS INTEGER ) col0, 88 AS col1
----
1
88

query I rowsort
SELECT - 91 * - 34
----
3094

onlyif mysql # aggregate syntax: 
query I rowsort label-9496
SELECT + 56 * - COUNT( * )
----
-56

skipif mysql # not compatible
query I rowsort label-9496
SELECT + 56 * - COUNT ( * )
----
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9497
SELECT DISTINCT CAST( NULL AS SIGNED ) * + 94 * + 66
----
NULL

skipif mysql # not compatible
query I rowsort label-9497
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 94 * + 66
----
NULL

query I rowsort
SELECT - 85 * ( 70 ) AS col0
----
-5950

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9499
SELECT ALL + CAST( 37 AS SIGNED )
----
37

skipif mysql # not compatible
query I rowsort label-9499
SELECT ALL + CAST ( 37 AS INTEGER )
----
37

query II rowsort
SELECT + 61 * 30, - 18 col2
----
1830
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9501
SELECT ALL 31 / COUNT( * ) * + 16 * 41 * CAST( + SUM( ALL - CAST( NULL AS SIGNED ) ) AS SIGNED ), - 84 * - NULLIF ( - SUM( ALL - 21 ), - CAST( NULL AS SIGNED ) ) AS col0
----
NULL
1764

skipif mysql # not compatible
query II rowsort label-9501
SELECT ALL 31 / COUNT ( * ) * + 16 * 41 * CAST ( + SUM ( ALL - CAST ( NULL AS INTEGER ) ) AS INTEGER ), - 84 * - NULLIF ( - SUM ( ALL - 21 ), - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL
1764

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9502
SELECT + MAX( - 1 ) AS col2, + CASE - 83 WHEN - CASE + 94 WHEN + 27 - 43 THEN - 44 + - ( + COALESCE ( + 64, - 22 * COUNT( * ) ) ) + ( ( - 12 ) ) END THEN - ( - 22 ) WHEN - CAST( 45 AS SIGNED ) THEN NULL END + MAX( NULLIF ( - 0, 91 + - 81 ) ) * - 3
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-9502
SELECT + MAX ( - 1 ) AS col2, + CASE - 83 WHEN - CASE + 94 WHEN + 27 - 43 THEN - 44 + - ( + COALESCE ( + 64, - 22 * COUNT ( * ) ) ) + ( ( - 12 ) ) END THEN - ( - 22 ) WHEN - CAST ( 45 AS INTEGER ) THEN NULL END + MAX ( NULLIF ( - 0, 91 + - 81 ) ) * - 3
----
-1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9503
SELECT - 7 + + COUNT( * ) + 25 * 50 * 53 * + + 55
----
3643744

skipif mysql # not compatible
query I rowsort label-9503
SELECT - 7 + + COUNT ( * ) + 25 * 50 * 53 * + + 55
----
3643744

query I rowsort
SELECT - 25 * - 87
----
2175

onlyif mysql # aggregate syntax: 
query II rowsort label-9505
SELECT SUM( DISTINCT 44 ) AS col1, + 97 - + - 62
----
44
159

skipif mysql # not compatible
query II rowsort label-9505
SELECT SUM ( DISTINCT 44 ) AS col1, + 97 - + - 62
----
44
159

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9506
SELECT DISTINCT ( 84 ) AS col0, - 66 + - + NULLIF ( + + CASE + 68 WHEN - ( - SUM( + 69 ) ) THEN + 92 END, 25 ) + - + CAST( NULL AS SIGNED ) * + 72 * 35
----
84
NULL

skipif mysql # not compatible
query II rowsort label-9506
SELECT DISTINCT ( 84 ) AS col0, - 66 + - + NULLIF ( + + CASE + 68 WHEN - ( - SUM ( + 69 ) ) THEN + 92 END, 25 ) + - + CAST ( NULL AS INTEGER ) * + 72 * 35
----
84
NULL

query I rowsort
SELECT DISTINCT 92 + 12 * - 69 + 39 AS col1
----
-697

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9508
SELECT ALL - 61 + - 64 + CAST( NULL AS SIGNED ) + 21 * + CASE CAST( + 90 AS SIGNED ) WHEN - ( - 61 ) THEN 66 * 12 - + + ( 52 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9508
SELECT ALL - 61 + - 64 + CAST ( NULL AS INTEGER ) + 21 * + CASE CAST ( + 90 AS INTEGER ) WHEN - ( - 61 ) THEN 66 * 12 - + + ( 52 ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9509
SELECT ALL - 81 + - + 62 * - 73 * - CAST( + - 46 AS SIGNED ) AS col2, CAST( - 99 AS SIGNED )
----
208115
-99

skipif mysql # not compatible
query II rowsort label-9509
SELECT ALL - 81 + - + 62 * - 73 * - CAST ( + - 46 AS INTEGER ) AS col2, CAST ( - 99 AS INTEGER )
----
208115
-99

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9510
SELECT ALL CAST( 35 AS SIGNED ) * + 93 + - + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9510
SELECT ALL CAST ( 35 AS INTEGER ) * + 93 + - + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9511
SELECT + 7 DIV - - 68
----
0

skipif mysql # not compatible
query I rowsort label-9511
SELECT + 7 / - - 68
----
0

query I rowsort
SELECT ALL - 79 + - 80 AS col0
----
-159

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9513
SELECT ALL + ( + COUNT( * ) ) + + CASE 9 WHEN - - COUNT( * ) + + - CASE - - 13 WHEN COUNT( * ) THEN + COUNT( * ) WHEN 71 * - - MAX( - + 75 ) * - 23 + COUNT( * ) + + CAST( + 33 AS SIGNED ) THEN NULL WHEN - 22 THEN 32 + - 12 END * + 84 THEN + 31 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9513
SELECT ALL + ( + COUNT ( * ) ) + + CASE 9 WHEN - - COUNT ( * ) + + - CASE - - 13 WHEN COUNT ( * ) THEN + COUNT ( * ) WHEN 71 * - - MAX ( - + 75 ) * - 23 + COUNT ( * ) + + CAST ( + 33 AS INTEGER ) THEN NULL WHEN - 22 THEN 32 + - 12 END * + 84 THEN + 31 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9514
SELECT DISTINCT ( - - 94 ) + + COUNT( * )
----
95

skipif mysql # not compatible
query I rowsort label-9514
SELECT DISTINCT ( - - 94 ) + + COUNT ( * )
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-9515
SELECT + 65 * 0 + + COUNT( * ) + - + 31
----
-30

skipif mysql # not compatible
query I rowsort label-9515
SELECT + 65 * 0 + + COUNT ( * ) + - + 31
----
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9516
SELECT + - COUNT( * ) DIV - 87 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9516
SELECT + - COUNT ( * ) / - 87 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9517
SELECT DISTINCT + 12 + + COUNT( * ) * COUNT( ALL - 63 ) DIV 23
----
12

skipif mysql # not compatible
query I rowsort label-9517
SELECT DISTINCT + 12 + + COUNT ( * ) * COUNT ( ALL - 63 ) / 23
----
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9518
SELECT DISTINCT + + 10 DIV 35 - + SUM( 57 ) + 9 AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-9518
SELECT DISTINCT + + 10 / 35 - + SUM ( 57 ) + 9 AS col2
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-9519
SELECT DISTINCT - COUNT( + 51 ) + 37 * + - 11 AS col0
----
-408

skipif mysql # not compatible
query I rowsort label-9519
SELECT DISTINCT - COUNT ( + 51 ) + 37 * + - 11 AS col0
----
-408

onlyif mysql # aggregate syntax: 
query I rowsort label-9520
SELECT ALL + 63 - + SUM( ALL - + 3 ) + COUNT( * ) - NULLIF ( - 36, + - 41 + 6 - + + 40 + - + 9 * + 9 ) + - + 16 - - 14 * - COUNT( * ) * 62 * 16
----
-13801

skipif mysql # not compatible
query I rowsort label-9520
SELECT ALL + 63 - + SUM ( ALL - + 3 ) + COUNT ( * ) - NULLIF ( - 36, + - 41 + 6 - + + 40 + - + 9 * + 9 ) + - + 16 - - 14 * - COUNT ( * ) * 62 * 16
----
-13801

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9521
SELECT - COALESCE ( - 58, + ( - 76 ) * CASE COUNT( * ) WHEN + CASE + 26 WHEN + + ( 73 ) THEN + + 25 WHEN 91 THEN 95 + - NULLIF ( - 46, MAX( - 28 ) ) ELSE NULL END + - 50 THEN 47 + 65 ELSE NULL END, COUNT( * ) ) DIV 14
----
4

skipif mysql # not compatible
query I rowsort label-9521
SELECT - COALESCE ( - 58, + ( - 76 ) * CASE COUNT ( * ) WHEN + CASE + 26 WHEN + + ( 73 ) THEN + + 25 WHEN 91 THEN 95 + - NULLIF ( - 46, MAX ( - 28 ) ) ELSE NULL END + - 50 THEN 47 + 65 ELSE NULL END, COUNT ( * ) ) / 14
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9522
SELECT DISTINCT 79 DIV - COUNT( + 27 ) + + 93 * - 53 AS col2, 85 AS col1
----
-5008
85

skipif mysql # not compatible
query II rowsort label-9522
SELECT DISTINCT 79 / - COUNT ( + 27 ) + + 93 * - 53 AS col2, 85 AS col1
----
-5008
85

query I rowsort
SELECT + - 71 * - 74
----
5254

onlyif mysql # aggregate syntax: 
query II rowsort label-9524
SELECT + SUM( - 92 ) AS col1, - NULLIF ( + 68, - - 56 )
----
-92
-68

skipif mysql # not compatible
query II rowsort label-9524
SELECT + SUM ( - 92 ) AS col1, - NULLIF ( + 68, - - 56 )
----
-92
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-9525
SELECT + ( + 70 ) + + SUM( + 30 )
----
100

skipif mysql # not compatible
query I rowsort label-9525
SELECT + ( + 70 ) + + SUM ( + 30 )
----
100

query I rowsort
SELECT + 74 * - + 12 AS col2
----
-888

query I rowsort
SELECT ( - 42 ) col2
----
-42

query I rowsort
SELECT + 91 + + 57 AS col1
----
148

query I rowsort
SELECT - 97 * 72 AS col1
----
-6984

query I rowsort
SELECT DISTINCT 15 * - 83
----
-1245

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9531
SELECT DISTINCT + COUNT( + CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-9531
SELECT DISTINCT + COUNT ( + CAST ( NULL AS INTEGER ) )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9532
SELECT DISTINCT + CAST( - 11 AS SIGNED )
----
-11

skipif mysql # not compatible
query I rowsort label-9532
SELECT DISTINCT + CAST ( - 11 AS INTEGER )
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-9533
SELECT DISTINCT - 62 * + + 60 - + COUNT( * ) AS col1
----
-3721

skipif mysql # not compatible
query I rowsort label-9533
SELECT DISTINCT - 62 * + + 60 - + COUNT ( * ) AS col1
----
-3721

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9534
SELECT - 20 + 14 * 40 + - 90 + 40 + 80 + AVG ( DISTINCT - + CAST( NULL AS SIGNED ) ) * - 59
----
NULL

skipif mysql # not compatible
query I rowsort label-9534
SELECT - 20 + 14 * 40 + - 90 + 40 + 80 + AVG ( DISTINCT - + CAST ( NULL AS INTEGER ) ) * - 59
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9535
SELECT - COUNT( * ) + + 17 AS col1
----
16

skipif mysql # not compatible
query I rowsort label-9535
SELECT - COUNT ( * ) + + 17 AS col1
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9536
SELECT ALL + ( CAST( NULL AS SIGNED ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9536
SELECT ALL + ( CAST ( NULL AS INTEGER ) ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9537
SELECT - 8 * COUNT( * ) * - ( - - COUNT( * ) )
----
8

skipif mysql # not compatible
query I rowsort label-9537
SELECT - 8 * COUNT ( * ) * - ( - - COUNT ( * ) )
----
8

query I rowsort
SELECT - 14 + - - 72
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-9539
SELECT - 25 DIV + 65 col2
----
0

skipif mysql # not compatible
query I rowsort label-9539
SELECT - 25 / + 65 col2
----
0

query I rowsort
SELECT - 31 * + 71 * - 39 AS col0
----
85839

onlyif mysql # aggregate syntax: 
query I rowsort label-9541
SELECT NULLIF ( - + 51, + 46 / - COUNT( * ) ) AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-9541
SELECT NULLIF ( - + 51, + 46 / - COUNT ( * ) ) AS col0
----
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-9542
SELECT + COUNT( * ) AS col2, 75 AS col1
----
1
75

skipif mysql # not compatible
query II rowsort label-9542
SELECT + COUNT ( * ) AS col2, 75 AS col1
----
1
75

query I rowsort
SELECT ALL + 9 * - 24 AS col1
----
-216

onlyif mysql # DIV for integer division: 
query I rowsort label-9544
SELECT - 95 DIV - + 54 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9544
SELECT - 95 / - + 54 AS col2
----
1

query I rowsort
SELECT DISTINCT - 36 * + ( NULLIF ( 48, - 0 ) ) + + + 59 AS col2
----
-1669

query I rowsort
SELECT ALL 65 * - 11
----
-715

query I rowsort
SELECT - 71 * + 79
----
-5609

onlyif mysql # aggregate syntax: 
query I rowsort label-9548
SELECT DISTINCT COUNT( * ) * + - 90 * - ( 80 ) + 26 * + 36 * - 49
----
-38664

skipif mysql # not compatible
query I rowsort label-9548
SELECT DISTINCT COUNT ( * ) * + - 90 * - ( 80 ) + 26 * + 36 * - 49
----
-38664

onlyif mysql # aggregate syntax: 
query I rowsort label-9549
SELECT ALL ( + + 76 ) * + 79 + - NULLIF ( 18, - COUNT( ALL - - 31 ) + - COALESCE ( - MIN( ALL + + 29 ), - 14 + + + 4, 95 ) + COUNT( * ) * + AVG ( 8 ) ) col2
----
5986

skipif mysql # not compatible
query I rowsort label-9549
SELECT ALL ( + + 76 ) * + 79 + - NULLIF ( 18, - COUNT ( ALL - - 31 ) + - COALESCE ( - MIN ( ALL + + 29 ), - 14 + + + 4, 95 ) + COUNT ( * ) * + AVG ( 8 ) ) col2
----
5986

onlyif mysql # aggregate syntax: 
query I rowsort label-9550
SELECT ALL 25 * - 33 + - MIN( + 68 )
----
-893

skipif mysql # not compatible
query I rowsort label-9550
SELECT ALL 25 * - 33 + - MIN ( + 68 )
----
-893

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9551
SELECT DISTINCT + 52 DIV + MAX( + + 91 ) * - COUNT( * ) * 84 + - 71, + 7 AS col2
----
-71
7

skipif mysql # not compatible
query II rowsort label-9551
SELECT DISTINCT + 52 / + MAX ( + + 91 ) * - COUNT ( * ) * 84 + - 71, + 7 AS col2
----
-71
7

query II rowsort
SELECT DISTINCT 46 * - + 73 + + 18 AS col1, + 44 col1
----
-3340
44

query I rowsort
SELECT ALL + 27 * + + 86 + - 96 * + 88 AS col2
----
-6126

query I rowsort
SELECT ALL 66 + + 68 AS col2
----
134

query I rowsort
SELECT - + ( - 7 ) col0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9556
SELECT - - COUNT( * ) + - + 81
----
-80

skipif mysql # not compatible
query I rowsort label-9556
SELECT - - COUNT ( * ) + - + 81
----
-80

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9557
SELECT - + NULLIF ( + COUNT( * ), 78 ) AS col1, - 32 DIV + 94
----
-1
0

skipif mysql # not compatible
query II rowsort label-9557
SELECT - + NULLIF ( + COUNT ( * ), 78 ) AS col1, - 32 / + 94
----
-1
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9558
SELECT ALL + + 4 + - - 43 - CAST( NULL AS SIGNED ) * + + COALESCE ( - COUNT( * ), + COUNT( * ) ) + - + CASE + COUNT( * ) WHEN - - MIN( + CASE - 59 WHEN 69 THEN + 3 ELSE NULL END ) * - 80 THEN NULL WHEN - 89 * + CAST( NULL AS SIGNED ) THEN NULL ELSE - 80 / - COUNT( * ) + + CASE - 59 + 38 WHEN 10 THEN 87 / - 89 + - 99 END * - 79 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9558
SELECT ALL + + 4 + - - 43 - CAST ( NULL AS INTEGER ) * + + COALESCE ( - COUNT ( * ), + COUNT ( * ) ) + - + CASE + COUNT ( * ) WHEN - - MIN ( + CASE - 59 WHEN 69 THEN + 3 ELSE NULL END ) * - 80 THEN NULL WHEN - 89 * + CAST ( NULL AS INTEGER ) THEN NULL ELSE - 80 / - COUNT ( * ) + + CASE - 59 + 38 WHEN 10 THEN 87 / - 89 + - 99 END * - 79 END
----
NULL

query I rowsort
SELECT ALL - 83 * 89 * + 92
----
-679604

query I rowsort
SELECT + 71 + - 74 AS col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9561
SELECT DISTINCT - - 54 - - - COUNT( * ) * + + 57 + - - ( - - 48 )
----
45

skipif mysql # not compatible
query I rowsort label-9561
SELECT DISTINCT - - 54 - - - COUNT ( * ) * + + 57 + - - ( - - 48 )
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-9562
SELECT DISTINCT + 56 DIV - - 14
----
4

skipif mysql # not compatible
query I rowsort label-9562
SELECT DISTINCT + 56 / - - 14
----
4

query I rowsort
SELECT + 99 * + 4
----
396

query I rowsort
SELECT DISTINCT 86 * + - 23
----
-1978

onlyif mysql # aggregate syntax: 
query I rowsort label-9565
SELECT DISTINCT CASE - + ( + 54 ) WHEN - COUNT( * ) + + + 24 THEN NULL ELSE + CASE + COUNT( * ) WHEN - COUNT( * ) THEN + 91 WHEN + + 52 THEN + + 40 * 88 + COUNT( * ) ELSE 48 + - 49 * - 38 END + 26 END
----
1936

skipif mysql # not compatible
query I rowsort label-9565
SELECT DISTINCT CASE - + ( + 54 ) WHEN - COUNT ( * ) + + + 24 THEN NULL ELSE + CASE + COUNT ( * ) WHEN - COUNT ( * ) THEN + 91 WHEN + + 52 THEN + + 40 * 88 + COUNT ( * ) ELSE 48 + - 49 * - 38 END + 26 END
----
1936

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9566
SELECT ALL ( 43 ) DIV - MIN( - 46 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9566
SELECT ALL ( 43 ) / - MIN ( - 46 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9567
SELECT ( - + 7 ) * - COUNT( * ) - - - 20 AS col1, 20 AS col0
----
-13
20

skipif mysql # not compatible
query II rowsort label-9567
SELECT ( - + 7 ) * - COUNT ( * ) - - - 20 AS col1, 20 AS col0
----
-13
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9568
SELECT DISTINCT CASE + 35 WHEN CAST( - 44 AS SIGNED ) THEN + ( + 75 ) + 68 WHEN - 69 THEN - + 49 + 17 ELSE NULL END / - 56
----
NULL

skipif mysql # not compatible
query I rowsort label-9568
SELECT DISTINCT CASE + 35 WHEN CAST ( - 44 AS INTEGER ) THEN + ( + 75 ) + 68 WHEN - 69 THEN - + 49 + 17 ELSE NULL END / - 56
----
NULL

query I rowsort
SELECT DISTINCT + 94 * 70 * - - 88 * 84 AS col0
----
48639360

onlyif mysql # aggregate syntax: 
query I rowsort label-9570
SELECT ALL ( - + 8 ) / - CASE 42 WHEN 71 - 35 + - + AVG ( DISTINCT + + 51 ) THEN + + COUNT( * ) WHEN 44 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9570
SELECT ALL ( - + 8 ) / - CASE 42 WHEN 71 - 35 + - + AVG ( DISTINCT + + 51 ) THEN + + COUNT ( * ) WHEN 44 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9571
SELECT COUNT( * ) * - + COUNT( * ) / CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9571
SELECT COUNT ( * ) * - + COUNT ( * ) / CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT - 89 * - - 32 - + 35
----
-2883

query I rowsort
SELECT DISTINCT + 32 * + 19
----
608

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9574
SELECT ALL - 50 + CAST( + + 11 AS SIGNED )
----
-39

skipif mysql # not compatible
query I rowsort label-9574
SELECT ALL - 50 + CAST ( + + 11 AS INTEGER )
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9575
SELECT ALL + 87 + + COALESCE ( + - CAST( + + 0 AS SIGNED ), - - 39 * + 8 ) + - 91 AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-9575
SELECT ALL + 87 + + COALESCE ( + - CAST ( + + 0 AS INTEGER ), - - 39 * + 8 ) + - 91 AS col0
----
-4

query I rowsort
SELECT + 50 * 0 - 76 + - 81
----
-157

onlyif mysql # aggregate syntax: 
query I rowsort label-9577
SELECT COUNT( * ) + - 64 * + COUNT( * ) + - 78 + - 44 AS col1
----
-185

skipif mysql # not compatible
query I rowsort label-9577
SELECT COUNT ( * ) + - 64 * + COUNT ( * ) + - 78 + - 44 AS col1
----
-185

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9578
SELECT ALL - 37 + + 15 * + COUNT( * ) DIV 22 DIV + COUNT( * )
----
-37

skipif mysql # not compatible
query I rowsort label-9578
SELECT ALL - 37 + + 15 * + COUNT ( * ) / 22 / + COUNT ( * )
----
-37

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9579
SELECT ALL + COUNT( - 0 ) + 73 + - - CAST( NULL AS DECIMAL ) / + ( - - 17 ) * + 18
----
NULL

skipif mysql # not compatible
query I rowsort label-9579
SELECT ALL + COUNT ( - 0 ) + 73 + - - CAST ( NULL AS REAL ) / + ( - - 17 ) * + 18
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9580
SELECT + 20 * + CAST( + + 8 AS SIGNED )
----
160

skipif mysql # not compatible
query I rowsort label-9580
SELECT + 20 * + CAST ( + + 8 AS INTEGER )
----
160

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9581
SELECT 46 DIV COALESCE ( COALESCE ( + + SUM( ALL + 48 ), + 70 ), - + 31 ) + - NULLIF ( + 66, COUNT( * ) + - - 46 * - 89 * MIN( ALL - 24 ) ) DIV COUNT( * ) AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-9581
SELECT 46 / COALESCE ( COALESCE ( + + SUM ( ALL + 48 ), + 70 ), - + 31 ) + - NULLIF ( + 66, COUNT ( * ) + - - 46 * - 89 * MIN ( ALL - 24 ) ) / COUNT ( * ) AS col1
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9582
SELECT DISTINCT + NULLIF ( + 62, - ( - - ( COUNT( * ) ) ) ) * CASE + 63 WHEN + + MAX( 30 ) THEN + + 23 END * - 98 * - + 67 * - + 39 + + 85 + + ( + CAST( NULL AS SIGNED ) ) * - NULLIF ( 56 * COUNT( * ), 58 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9582
SELECT DISTINCT + NULLIF ( + 62, - ( - - ( COUNT ( * ) ) ) ) * CASE + 63 WHEN + + MAX ( 30 ) THEN + + 23 END * - 98 * - + 67 * - + 39 + + 85 + + ( + CAST ( NULL AS INTEGER ) ) * - NULLIF ( 56 * COUNT ( * ), 58 ) AS col2
----
NULL

query I rowsort
SELECT 8 + 15 AS col1
----
23

query I rowsort
SELECT ALL + + 1 - - 10 + - 98
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-9585
SELECT COUNT( * ) * - + 82 * - + ( 52 ) - - 15 * + - 60 + + 96 AS col1
----
3460

skipif mysql # not compatible
query I rowsort label-9585
SELECT COUNT ( * ) * - + 82 * - + ( 52 ) - - 15 * + - 60 + + 96 AS col1
----
3460

onlyif mysql # aggregate syntax: 
query I rowsort label-9586
SELECT DISTINCT + 85 * + + COUNT( * ) AS col2
----
85

skipif mysql # not compatible
query I rowsort label-9586
SELECT DISTINCT + 85 * + + COUNT ( * ) AS col2
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-9587
SELECT ALL + - 89 * + COUNT( * ) * - - 55 + COALESCE ( - ( + 98 ), + - 60 + - 74 + - 99 * - + 76 ) + - 58 col2
----
-5051

skipif mysql # not compatible
query I rowsort label-9587
SELECT ALL + - 89 * + COUNT ( * ) * - - 55 + COALESCE ( - ( + 98 ), + - 60 + - 74 + - 99 * - + 76 ) + - 58 col2
----
-5051

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9588
SELECT - 83 / - MAX( + - 21 ) * - COUNT( * ) - - NULLIF ( 52, - 82 ) + 62 + ( - COUNT( DISTINCT + - CAST( NULL AS SIGNED ) ) ) * - CASE + AVG ( DISTINCT 93 ) WHEN - 16 THEN 72 * - MIN( ALL 18 ) + NULLIF ( 21, COUNT( * ) ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9588
SELECT - 83 / - MAX ( + - 21 ) * - COUNT ( * ) - - NULLIF ( 52, - 82 ) + 62 + ( - COUNT ( DISTINCT + - CAST ( NULL AS INTEGER ) ) ) * - CASE + AVG ( DISTINCT 93 ) WHEN - 16 THEN 72 * - MIN ( ALL 18 ) + NULLIF ( 21, COUNT ( * ) ) END AS col1
----
NULL

query I rowsort
SELECT - ( ( + ( 97 ) ) )
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9590
SELECT ALL NULLIF ( + 89, + AVG ( - CAST( NULL AS SIGNED ) ) - - - 28 ), - 1 AS col1
----
89
-1

skipif mysql # not compatible
query II rowsort label-9590
SELECT ALL NULLIF ( + 89, + AVG ( - CAST ( NULL AS INTEGER ) ) - - - 28 ), - 1 AS col1
----
89
-1

query I rowsort
SELECT 95 - + 37 AS col1
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9592
SELECT - - SUM( 75 ) AS col1
----
75

skipif mysql # not compatible
query I rowsort label-9592
SELECT - - SUM ( 75 ) AS col1
----
75

query I rowsort
SELECT DISTINCT ( 98 ) * - 71
----
-6958

onlyif mysql # aggregate syntax: 
query I rowsort label-9594
SELECT 26 - + - COUNT( * ) + - 97 AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-9594
SELECT 26 - + - COUNT ( * ) + - 97 AS col1
----
-70

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9595
SELECT NULLIF ( - 39, - - CAST( SUM( DISTINCT + + 4 ) AS DECIMAL ) ) * - 25 + + 45 col1
----
1020

skipif mysql # not compatible
query I rowsort label-9595
SELECT NULLIF ( - 39, - - CAST ( SUM ( DISTINCT + + 4 ) AS REAL ) ) * - 25 + + 45 col1
----
1020

query I rowsort
SELECT ALL + 53 * - 68
----
-3604

query I rowsort
SELECT NULLIF ( 98, - - 5 ) - - 50
----
148

onlyif mysql # DIV for integer division: 
query I rowsort label-9598
SELECT 54 DIV + 84 + + 94 + - 51 AS col1
----
43

skipif mysql # not compatible
query I rowsort label-9598
SELECT 54 / + 84 + + 94 + - 51 AS col1
----
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9599
SELECT COALESCE ( - 40, + - COUNT( * ) ) DIV - 44 * 75 AS col0, 13 DIV - 31 AS col0
----
0
0

skipif mysql # not compatible
query II rowsort label-9599
SELECT COALESCE ( - 40, + - COUNT ( * ) ) / - 44 * 75 AS col0, 13 / - 31 AS col0
----
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9600
SELECT CAST( + 18 AS SIGNED ) * 67 AS col1
----
1206

skipif mysql # not compatible
query I rowsort label-9600
SELECT CAST ( + 18 AS INTEGER ) * 67 AS col1
----
1206

onlyif mysql # aggregate syntax: 
query II rowsort label-9601
SELECT NULLIF ( - ( + + 36 ), + 25 ) + + 69 AS col0, ( MAX( 61 ) ) AS col0
----
33
61

skipif mysql # not compatible
query II rowsort label-9601
SELECT NULLIF ( - ( + + 36 ), + 25 ) + + 69 AS col0, ( MAX ( 61 ) ) AS col0
----
33
61

query I rowsort
SELECT ALL 49 + + 33 AS col2
----
82

query I rowsort
SELECT ALL 60 + - - 6
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9604
SELECT ALL 42 + CASE + 90 WHEN 31 THEN + - CAST( NULL AS SIGNED ) * + ( + 26 ) * + CAST( - 2 AS SIGNED ) * - 72 * + + 2 - COUNT( * ) ELSE 40 DIV 29 END
----
43

skipif mysql # not compatible
query I rowsort label-9604
SELECT ALL 42 + CASE + 90 WHEN 31 THEN + - CAST ( NULL AS INTEGER ) * + ( + 26 ) * + CAST ( - 2 AS INTEGER ) * - 72 * + + 2 - COUNT ( * ) ELSE 40 / 29 END
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-9605
SELECT + SUM( 19 ) AS col1
----
19

skipif mysql # not compatible
query I rowsort label-9605
SELECT + SUM ( 19 ) AS col1
----
19

query I rowsort
SELECT ALL 13 + + - 18 + + 80 * + - 29 AS col1
----
-2325

onlyif mysql # aggregate syntax: 
query I rowsort label-9607
SELECT 70 + + + COUNT( * ) col2
----
71

skipif mysql # not compatible
query I rowsort label-9607
SELECT 70 + + + COUNT ( * ) col2
----
71

query I rowsort
SELECT COALESCE ( + + 26, - 21 - + 13 + ( - 94 ) ) * 50 AS col2
----
1300

onlyif mysql # aggregate syntax: 
query I rowsort label-9609
SELECT + 84 * ( - 37 ) * - 42 + CASE - ( + 2 ) WHEN + NULLIF ( MIN( + - 81 ), SUM( + 11 ) + MAX( + + 39 ) + 82 * + 30 ) / 24 THEN + MIN( ALL - 96 ) ELSE NULL END + + SUM( - 82 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9609
SELECT + 84 * ( - 37 ) * - 42 + CASE - ( + 2 ) WHEN + NULLIF ( MIN ( + - 81 ), SUM ( + 11 ) + MAX ( + + 39 ) + 82 * + 30 ) / 24 THEN + MIN ( ALL - 96 ) ELSE NULL END + + SUM ( - 82 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9610
SELECT + 62 * COALESCE ( - 43, CAST( + + 22 AS SIGNED ), 48, 9 ) + + 51
----
-2615

skipif mysql # not compatible
query I rowsort label-9610
SELECT + 62 * COALESCE ( - 43, CAST ( + + 22 AS INTEGER ), 48, 9 ) + + 51
----
-2615

query I rowsort
SELECT - 17 * 8 AS col2
----
-136

query I rowsort
SELECT ALL + - 41 * 32 AS col2
----
-1312

onlyif mysql # aggregate syntax: 
query I rowsort label-9613
SELECT DISTINCT + COUNT( * ) - - - 38 col1
----
-37

skipif mysql # not compatible
query I rowsort label-9613
SELECT DISTINCT + COUNT ( * ) - - - 38 col1
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-9614
SELECT DISTINCT 5 * + SUM( - - 12 )
----
60

skipif mysql # not compatible
query I rowsort label-9614
SELECT DISTINCT 5 * + SUM ( - - 12 )
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9615
SELECT ALL + - CASE + + 16 WHEN 24 * + 97 - - + MAX( - ( 56 ) ) THEN + CAST( COUNT( * ) AS SIGNED ) END - - NULLIF ( - 84, 53 - 62 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9615
SELECT ALL + - CASE + + 16 WHEN 24 * + 97 - - + MAX ( - ( 56 ) ) THEN + CAST ( COUNT ( * ) AS INTEGER ) END - - NULLIF ( - 84, 53 - 62 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9616
SELECT ( 27 ) * + ( 82 ) - COUNT( * )
----
2213

skipif mysql # not compatible
query I rowsort label-9616
SELECT ( 27 ) * + ( 82 ) - COUNT ( * )
----
2213

onlyif mysql # aggregate syntax: 
query I rowsort label-9617
SELECT ALL - 56 * 12 - + ( + + SUM( ALL - - 0 ) )
----
-672

skipif mysql # not compatible
query I rowsort label-9617
SELECT ALL - 56 * 12 - + ( + + SUM ( ALL - - 0 ) )
----
-672

query II rowsort
SELECT DISTINCT - 12, 66 + - - 74 + 75 col1
----
-12
215

query II rowsort
SELECT DISTINCT 90 AS col1, 84 + - - 79 * - - 9 AS col1
----
90
795

query II rowsort
SELECT ALL + 89 AS col1, - 2 AS col1
----
89
-2

query I rowsort
SELECT + 20 * ( 38 ) * + + 28 AS col2
----
21280

onlyif mysql # aggregate syntax: 
query I rowsort label-9622
SELECT - 90 * + - COUNT( + + NULLIF ( 39, + COALESCE ( - 69, - + 73 * 33 ) * - + 3 ) ) + - - 6
----
96

skipif mysql # not compatible
query I rowsort label-9622
SELECT - 90 * + - COUNT ( + + NULLIF ( 39, + COALESCE ( - 69, - + 73 * 33 ) * - + 3 ) ) + - - 6
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-9623
SELECT ALL + 35 AS col1, + COALESCE ( 46, COUNT( * ) * + 39 ) * + 67 * 46
----
35
141772

skipif mysql # not compatible
query II rowsort label-9623
SELECT ALL + 35 AS col1, + COALESCE ( 46, COUNT ( * ) * + 39 ) * + 67 * 46
----
35
141772

onlyif mysql # aggregate syntax: 
query I rowsort label-9624
SELECT - - 9 + - ( 77 ) + 38 + + 70 * - SUM( - + 36 ) * 16 + + 0
----
40290

skipif mysql # not compatible
query I rowsort label-9624
SELECT - - 9 + - ( 77 ) + 38 + + 70 * - SUM ( - + 36 ) * 16 + + 0
----
40290

query I rowsort
SELECT ALL - 40 * + - 53 * + 86 + + 61
----
182381

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9626
SELECT - + COUNT( * ) + + CAST( + - 98 AS SIGNED ) AS col0
----
-99

skipif mysql # not compatible
query I rowsort label-9626
SELECT - + COUNT ( * ) + + CAST ( + - 98 AS INTEGER ) AS col0
----
-99

query I rowsort
SELECT DISTINCT - - 48 * - 52 AS col2
----
-2496

query I rowsort
SELECT DISTINCT - - 32 * - + 4
----
-128

onlyif mysql # aggregate syntax: 
query I rowsort label-9629
SELECT ALL NULLIF ( + 50, + - 75 + - NULLIF ( + CASE WHEN COUNT( * ) <> - - 43 / COUNT( * ) + + - 65 + - 22 THEN + + 49 * 48 + + 56 + + 44 WHEN + SUM( 75 ) IS NULL THEN NULL END, + 38 ) )
----
50

skipif mysql # not compatible
query I rowsort label-9629
SELECT ALL NULLIF ( + 50, + - 75 + - NULLIF ( + CASE WHEN COUNT ( * ) <> - - 43 / COUNT ( * ) + + - 65 + - 22 THEN + + 49 * 48 + + 56 + + 44 WHEN + SUM ( 75 ) IS NULL THEN NULL END, + 38 ) )
----
50

query I rowsort
SELECT ALL - 22 + + 88 * - 44
----
-3894

query I rowsort
SELECT DISTINCT + ( + COALESCE ( 71, - ( + 32 ), + CASE - 61 WHEN - 95 THEN NULL WHEN - 69 THEN + 15 ELSE NULL END ) ) + - 10
----
61

query II rowsort
SELECT - 9 * + 98 AS col2, 22 + - 31 col1
----
-882
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9633
SELECT - COUNT( * ) + 4 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-9633
SELECT - COUNT ( * ) + 4 AS col0
----
3

query I rowsort
SELECT ALL + 49 + + - 47 + + 88 + - - 6
----
96

query I rowsort
SELECT ALL COALESCE ( - 27, - - 2 )
----
-27

query II rowsort
SELECT - 35, - 30 AS col2
----
-35
-30

query I rowsort
SELECT DISTINCT + NULLIF ( + 80, 24 ) + + 29 AS col0
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-9638
SELECT - SUM( DISTINCT - 79 ) AS col0
----
79

skipif mysql # not compatible
query I rowsort label-9638
SELECT - SUM ( DISTINCT - 79 ) AS col0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-9639
SELECT - COUNT( DISTINCT - 93 ) * + 17 * + ( 26 ) col1
----
-442

skipif mysql # not compatible
query I rowsort label-9639
SELECT - COUNT ( DISTINCT - 93 ) * + 17 * + ( 26 ) col1
----
-442

query I rowsort
SELECT ALL + ( + 27 ) + + 46
----
73

query II rowsort
SELECT DISTINCT 12 * 85 + - + 47 * - 74, + 73 AS col0
----
4498
73

onlyif mysql # aggregate syntax: 
query I rowsort label-9642
SELECT DISTINCT + SUM( ALL + 43 )
----
43

skipif mysql # not compatible
query I rowsort label-9642
SELECT DISTINCT + SUM ( ALL + 43 )
----
43

query I rowsort
SELECT + 48 * + - 96 col0
----
-4608

query I rowsort
SELECT DISTINCT 49 * - 93 + - 61 AS col1
----
-4618

query I rowsort
SELECT ( + + 95 ) col0
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-9646
SELECT - 12 * - + COUNT( * ) AS col0
----
12

skipif mysql # not compatible
query I rowsort label-9646
SELECT - 12 * - + COUNT ( * ) AS col0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-9647
SELECT + COALESCE ( CASE COALESCE ( + 69, - COUNT( * ) + + 42 ) WHEN + 24 THEN 90 END, MAX( + 23 ) + COUNT( * ) * 4 + + 50 ) AS col0
----
77

skipif mysql # not compatible
query I rowsort label-9647
SELECT + COALESCE ( CASE COALESCE ( + 69, - COUNT ( * ) + + 42 ) WHEN + 24 THEN 90 END, MAX ( + 23 ) + COUNT ( * ) * 4 + + 50 ) AS col0
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9648
SELECT + CAST( NULL AS SIGNED ) * - 85 * - COUNT( * ) * 60 * - 13 - COUNT( * ) * - - 40 / + 13
----
NULL

skipif mysql # not compatible
query I rowsort label-9648
SELECT + CAST ( NULL AS INTEGER ) * - 85 * - COUNT ( * ) * 60 * - 13 - COUNT ( * ) * - - 40 / + 13
----
NULL

query I rowsort
SELECT + ( - - 64 )
----
64

onlyif mysql # DIV for integer division: 
query I rowsort label-9650
SELECT + 2 DIV - + 16 + 62
----
62

skipif mysql # not compatible
query I rowsort label-9650
SELECT + 2 / - + 16 + 62
----
62

query I rowsort
SELECT + + 40 * + - 96 AS col1
----
-3840

onlyif mysql # aggregate syntax: 
query I rowsort label-9652
SELECT - MIN( + 94 ) AS col2
----
-94

skipif mysql # not compatible
query I rowsort label-9652
SELECT - MIN ( + 94 ) AS col2
----
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9653
SELECT ALL + + SUM( + CAST( - + 0 AS SIGNED ) ) col1
----
0

skipif mysql # not compatible
query I rowsort label-9653
SELECT ALL + + SUM ( + CAST ( - + 0 AS INTEGER ) ) col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9654
SELECT + COALESCE ( + CAST( NULL AS SIGNED ), 15 )
----
15

skipif mysql # not compatible
query I rowsort label-9654
SELECT + COALESCE ( + CAST ( NULL AS INTEGER ), 15 )
----
15

query I rowsort
SELECT + ( + + 29 ) AS col0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-9656
SELECT ALL - + 36 * + COUNT( * ) - - 65
----
29

skipif mysql # not compatible
query I rowsort label-9656
SELECT ALL - + 36 * + COUNT ( * ) - - 65
----
29

query I rowsort
SELECT ALL 77 * - 51 AS col1
----
-3927

onlyif mysql # aggregate syntax: 
query I rowsort label-9658
SELECT - + 71 * - 97 + + - COUNT( * ) - - 92 * + 59
----
12314

skipif mysql # not compatible
query I rowsort label-9658
SELECT - + 71 * - 97 + + - COUNT ( * ) - - 92 * + 59
----
12314

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9659
SELECT - + 0 * + + 57 / + 17 + - CASE + 59 WHEN - + 83 * - + ( + 80 ) * 87 + + + CAST( + 92 AS SIGNED ) + + COUNT( * ) THEN CAST( NULL AS SIGNED ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9659
SELECT - + 0 * + + 57 / + 17 + - CASE + 59 WHEN - + 83 * - + ( + 80 ) * 87 + + + CAST ( + 92 AS INTEGER ) + + COUNT ( * ) THEN CAST ( NULL AS INTEGER ) END AS col2
----
NULL

query II rowsort
SELECT DISTINCT + + 30 AS col2, 69 AS col2
----
30
69

onlyif mysql # DIV for integer division: 
query I rowsort label-9661
SELECT + 4 DIV - 16
----
0

skipif mysql # not compatible
query I rowsort label-9661
SELECT + 4 / - 16
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9662
SELECT - - CAST( NULL AS SIGNED ) * + 90
----
NULL

skipif mysql # not compatible
query I rowsort label-9662
SELECT - - CAST ( NULL AS INTEGER ) * + 90
----
NULL

query I rowsort
SELECT ALL - 44 * + 71 AS col2
----
-3124

onlyif mysql # aggregate syntax: 
query II rowsort label-9664
SELECT ALL MIN( DISTINCT + ( ( 73 ) ) ) AS col1, 26 AS col1
----
73
26

skipif mysql # not compatible
query II rowsort label-9664
SELECT ALL MIN ( DISTINCT + ( ( 73 ) ) ) AS col1, 26 AS col1
----
73
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9665
SELECT - - COUNT( * ) * CAST( - COUNT( * ) AS SIGNED ) + + + COUNT( ALL + + 84 ) - 18 AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-9665
SELECT - - COUNT ( * ) * CAST ( - COUNT ( * ) AS INTEGER ) + + + COUNT ( ALL + + 84 ) - 18 AS col0
----
-18

query II rowsort
SELECT + - 5 + NULLIF ( - - 23, 92 ) AS col0, + ( 46 ) AS col1
----
18
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9667
SELECT + + MAX( DISTINCT 40 ) * + 88 * + - 64
----
-225280

skipif mysql # not compatible
query I rowsort label-9667
SELECT + + MAX ( DISTINCT 40 ) * + 88 * + - 64
----
-225280

query II rowsort
SELECT DISTINCT - 89, 39 + + + NULLIF ( 23, + 84 ) * - + 67 AS col1
----
-89
-1502

query II rowsort
SELECT 34, 38 + - 8 + - 94 AS col0
----
34
-64

query I rowsort
SELECT + 9 * - 77 col1
----
-693

onlyif mysql # aggregate syntax: 
query I rowsort label-9671
SELECT - 15 * - COUNT( * ) AS col2
----
15

skipif mysql # not compatible
query I rowsort label-9671
SELECT - 15 * - COUNT ( * ) AS col2
----
15

query I rowsort
SELECT ALL 21 + 25 col1
----
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9673
SELECT DISTINCT COALESCE ( - ( 83 ), + + CASE + 78 WHEN - - COUNT( * ) THEN NULL WHEN + 55 THEN 19 - - - ( + + 67 ) ELSE + ( + 96 ) END * COUNT( DISTINCT + - 64 ) + - 19 * + CASE - 2 WHEN + 68 THEN NULL ELSE + 47 * - 37 + 4 DIV + 16 END * 94 ) AS col1
----
-83

skipif mysql # not compatible
query I rowsort label-9673
SELECT DISTINCT COALESCE ( - ( 83 ), + + CASE + 78 WHEN - - COUNT ( * ) THEN NULL WHEN + 55 THEN 19 - - - ( + + 67 ) ELSE + ( + 96 ) END * COUNT ( DISTINCT + - 64 ) + - 19 * + CASE - 2 WHEN + 68 THEN NULL ELSE + 47 * - 37 + 4 / + 16 END * 94 ) AS col1
----
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-9674
SELECT ALL - 90 + + 21 + - 68 - + 24 DIV - 11 - - + 45
----
-90

skipif mysql # not compatible
query I rowsort label-9674
SELECT ALL - 90 + + 21 + - 68 - + 24 / - 11 - - + 45
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-9675
SELECT ALL SUM( + 85 ) AS col1
----
85

skipif mysql # not compatible
query I rowsort label-9675
SELECT ALL SUM ( + 85 ) AS col1
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-9676
SELECT DISTINCT - 73 + - ( COUNT( * ) )
----
-74

skipif mysql # not compatible
query I rowsort label-9676
SELECT DISTINCT - 73 + - ( COUNT ( * ) )
----
-74

query I rowsort
SELECT ALL + 18 + 41 AS col2
----
59

onlyif mysql # aggregate syntax: 
query II rowsort label-9678
SELECT ALL - 64 * - - 91 AS col1, - COUNT( * ) + + COUNT( * )
----
-5824
0

skipif mysql # not compatible
query II rowsort label-9678
SELECT ALL - 64 * - - 91 AS col1, - COUNT ( * ) + + COUNT ( * )
----
-5824
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9679
SELECT ALL - 19 * CAST( - AVG ( 33 ) AS SIGNED ) AS col1
----
627

skipif mysql # not compatible
query I rowsort label-9679
SELECT ALL - 19 * CAST ( - AVG ( 33 ) AS INTEGER ) AS col1
----
627

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9680
SELECT - COUNT( * ) * COUNT( * ) * - CAST( NULL AS SIGNED ) * + - 82 / + - 77 col0, - 12
----
NULL
-12

skipif mysql # not compatible
query II rowsort label-9680
SELECT - COUNT ( * ) * COUNT ( * ) * - CAST ( NULL AS INTEGER ) * + - 82 / + - 77 col0, - 12
----
NULL
-12

query I rowsort
SELECT DISTINCT + NULLIF ( - 97, + 21 + - 12 * 15 * - + 81 ) AS col0
----
-97

query II rowsort
SELECT ALL + ( + 88 ) AS col2, 16
----
88
16

query I rowsort
SELECT + ( - 56 ) * + 44 * 39 + - - 33 + + - 43 + + 16 * 53 col2
----
-95258

onlyif mysql # aggregate syntax: 
query I rowsort label-9684
SELECT COUNT( * ) * - MIN( + 86 ) + - 24 * - 14 col1
----
250

skipif mysql # not compatible
query I rowsort label-9684
SELECT COUNT ( * ) * - MIN ( + 86 ) + - 24 * - 14 col1
----
250

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9685
SELECT DISTINCT + - ( + CAST( + 84 AS SIGNED ) ) AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-9685
SELECT DISTINCT + - ( + CAST ( + 84 AS INTEGER ) ) AS col0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-9686
SELECT DISTINCT - MAX( + + 38 ) * + - 94 + + 74
----
3646

skipif mysql # not compatible
query I rowsort label-9686
SELECT DISTINCT - MAX ( + + 38 ) * + - 94 + + 74
----
3646

query I rowsort
SELECT ALL - + 82 * - 65 AS col0
----
5330

onlyif mysql # aggregate syntax: 
query I rowsort label-9688
SELECT COALESCE ( + + 30, + 90 * - COUNT( * ) ) * 79 AS col0
----
2370

skipif mysql # not compatible
query I rowsort label-9688
SELECT COALESCE ( + + 30, + 90 * - COUNT ( * ) ) * 79 AS col0
----
2370

onlyif mysql # aggregate syntax: 
query I rowsort label-9689
SELECT - - 10 * + COUNT( * ) + + 84
----
94

skipif mysql # not compatible
query I rowsort label-9689
SELECT - - 10 * + COUNT ( * ) + + 84
----
94

query I rowsort
SELECT DISTINCT - 6 * + 88 AS col2
----
-528

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9691
SELECT - ( - - 72 ) * + CAST( NULL AS DECIMAL ) + - 69 + COALESCE ( - - 18, + + 30, ( 73 ) ) * + 3 + 0 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9691
SELECT - ( - - 72 ) * + CAST ( NULL AS REAL ) + - 69 + COALESCE ( - - 18, + + 30, ( 73 ) ) * + 3 + 0 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9692
SELECT DISTINCT + - COUNT( * ) * + 83 + + CAST( - COUNT( * ) AS SIGNED )
----
-84

skipif mysql # not compatible
query I rowsort label-9692
SELECT DISTINCT + - COUNT ( * ) * + 83 + + CAST ( - COUNT ( * ) AS INTEGER )
----
-84

query I rowsort
SELECT + 29 * ( + 17 )
----
493

query I rowsort
SELECT DISTINCT - 65 + 78 + + - 8
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9695
SELECT ALL - 54 + - COUNT( * ) + + - 78 AS col1
----
-133

skipif mysql # not compatible
query I rowsort label-9695
SELECT ALL - 54 + - COUNT ( * ) + + - 78 AS col1
----
-133

onlyif mysql # aggregate syntax: 
query I rowsort label-9696
SELECT DISTINCT + CASE - COUNT( * ) WHEN + + COUNT( * ) THEN - - 53 END / + + 52 * 79 + - + 41 / - 94 + - + 62 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9696
SELECT DISTINCT + CASE - COUNT ( * ) WHEN + + COUNT ( * ) THEN - - 53 END / + + 52 * 79 + - + 41 / - 94 + - + 62 AS col2
----
NULL

query I rowsort
SELECT ALL ( + + 94 ) + + + 61 + - - 23 + 33 * 54 AS col1
----
1960

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9698
SELECT - 85 * ( + 58 ) + CAST( NULL AS SIGNED ) + - - 19 * 55 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9698
SELECT - 85 * ( + 58 ) + CAST ( NULL AS INTEGER ) + - - 19 * 55 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9699
SELECT DISTINCT - 21 + COALESCE ( - - 54, 92 ) * + 7 + + 2 / - 37 - - COUNT( * ) + - + 39 * + 50 + + - COUNT( * ) * 90 + + 82 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9699
SELECT DISTINCT - 21 + COALESCE ( - - 54, 92 ) * + 7 + + 2 / - 37 - - COUNT ( * ) + - + 39 * + 50 + + - COUNT ( * ) * 90 + + 82 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9700
SELECT ALL 35 DIV - + 42 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9700
SELECT ALL 35 / - + 42 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9701
SELECT SUM( DISTINCT - 44 ) + - - 46 + - + 88 * + COUNT( * ) - - 78 + + + 42 + - MIN( - 12 ) * 48 / 25 * + 51 + - 89 + - CAST( NULL AS SIGNED ) * - 15 + - 72 + - 15 + 86 / 65 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9701
SELECT SUM ( DISTINCT - 44 ) + - - 46 + - + 88 * + COUNT ( * ) - - 78 + + + 42 + - MIN ( - 12 ) * 48 / 25 * + 51 + - 89 + - CAST ( NULL AS INTEGER ) * - 15 + - 72 + - 15 + 86 / 65 AS col0
----
NULL

query I rowsort
SELECT ALL 97 + + 37
----
134

query I rowsort
SELECT 26 + - - 37 AS col1
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9704
SELECT COALESCE ( - + 19, - COUNT( * ) DIV + - 36 + - + 71, + + 27 * - 50, 76 ) + + 53 AS col1
----
34

skipif mysql # not compatible
query I rowsort label-9704
SELECT COALESCE ( - + 19, - COUNT ( * ) / + - 36 + - + 71, + + 27 * - 50, 76 ) + + 53 AS col1
----
34

query I rowsort
SELECT 39 - + + 41 col0
----
-2

query I rowsort
SELECT ALL 67 + 58 - - 66
----
191

onlyif mysql # DIV for integer division: 
query II rowsort label-9707
SELECT DISTINCT 39, 41 DIV - - COALESCE ( + 85, - 19, + 9 ) AS col0
----
39
0

skipif mysql # not compatible
query II rowsort label-9707
SELECT DISTINCT 39, 41 / - - COALESCE ( + 85, - 19, + 9 ) AS col0
----
39
0

query II rowsort
SELECT ALL 31 - - + 91 * + 10 AS col0, 53
----
941
53

onlyif mysql # aggregate syntax: 
query I rowsort label-9709
SELECT 80 + - - COUNT( * )
----
81

skipif mysql # not compatible
query I rowsort label-9709
SELECT 80 + - - COUNT ( * )
----
81

onlyif mysql # DIV for integer division: 
query II rowsort label-9710
SELECT 89 + 54 DIV + 91, + 24 col0
----
89
24

skipif mysql # not compatible
query II rowsort label-9710
SELECT 89 + 54 / + 91, + 24 col0
----
89
24

query I rowsort
SELECT 96 * + - 89
----
-8544

query II rowsort
SELECT 92, 25 AS col2
----
92
25

onlyif mysql # aggregate syntax: 
query II rowsort label-9713
SELECT ALL 14, NULLIF ( + - MAX( + 67 ), - 69 + - 97 ) AS col0
----
14
-67

skipif mysql # not compatible
query II rowsort label-9713
SELECT ALL 14, NULLIF ( + - MAX ( + 67 ), - 69 + - 97 ) AS col0
----
14
-67

query I rowsort
SELECT ALL + 24 * 64
----
1536

query I rowsort
SELECT ALL - 70 * + 18
----
-1260

onlyif mysql # aggregate syntax: 
query I rowsort label-9716
SELECT DISTINCT + COUNT( * ) * - - 63 AS col2
----
63

skipif mysql # not compatible
query I rowsort label-9716
SELECT DISTINCT + COUNT ( * ) * - - 63 AS col2
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9717
SELECT - ( NULLIF ( + + 15, 21 ) ) / + - CAST( NULL AS SIGNED ) + + 34 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9717
SELECT - ( NULLIF ( + + 15, 21 ) ) / + - CAST ( NULL AS INTEGER ) + + 34 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9718
SELECT + SUM( + 79 ) DIV ( + ( - - COUNT( * ) ) ) * 35 * 66
----
182490

skipif mysql # not compatible
query I rowsort label-9718
SELECT + SUM ( + 79 ) / ( + ( - - COUNT ( * ) ) ) * 35 * 66
----
182490

query II rowsort
SELECT + 86, - ( 40 ) + - ( - - 72 ) AS col2
----
86
-112

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9720
SELECT - CAST( NULL AS SIGNED ) * - + 38 * + - CAST( NULL AS SIGNED ) + - 52 / + 61 + + 75 * CAST( 81 AS SIGNED ), 31 col1
----
NULL
31

skipif mysql # not compatible
query II rowsort label-9720
SELECT - CAST ( NULL AS INTEGER ) * - + 38 * + - CAST ( NULL AS INTEGER ) + - 52 / + 61 + + 75 * CAST ( 81 AS INTEGER ), 31 col1
----
NULL
31

query I rowsort
SELECT DISTINCT - 77 + - 9 AS col0
----
-86

query II rowsort
SELECT ALL + 19 + + 88 * 48 AS col1, 2
----
4243
2

query II rowsort
SELECT + + 34 * + + 86 * + - ( + 5 ) + 23 - 54 AS col2, 14 * - 31 * + ( + + 34 ) AS col0
----
-14651
-14756

onlyif mysql # DIV for integer division: 
query II rowsort label-9724
SELECT DISTINCT - 90 AS col1, 15 DIV + + ( - - 37 ) AS col1
----
-90
0

skipif mysql # not compatible
query II rowsort label-9724
SELECT DISTINCT - 90 AS col1, 15 / + + ( - - 37 ) AS col1
----
-90
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9725
SELECT DISTINCT + + COALESCE ( + + 60, - SUM( ALL + 58 ) * - 33 ) * 12
----
720

skipif mysql # not compatible
query I rowsort label-9725
SELECT DISTINCT + + COALESCE ( + + 60, - SUM ( ALL + 58 ) * - 33 ) * 12
----
720

query I rowsort
SELECT DISTINCT - 25 + + + 83 AS col1
----
58

query I rowsort
SELECT + 75 * + 99 AS col1
----
7425

query I rowsort
SELECT 57 + + 76 AS col0
----
133

query I rowsort
SELECT DISTINCT + + 12 * 27
----
324

onlyif mysql # aggregate syntax: 
query I rowsort label-9730
SELECT 46 * - - COUNT( * ) AS col0
----
46

skipif mysql # not compatible
query I rowsort label-9730
SELECT 46 * - - COUNT ( * ) AS col0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9731
SELECT ALL + - 62 * + 44 + - + ( - - 89 ) + - 50 * - MIN( DISTINCT - - 29 ) AS col1
----
-1367

skipif mysql # not compatible
query I rowsort label-9731
SELECT ALL + - 62 * + 44 + - + ( - - 89 ) + - 50 * - MIN ( DISTINCT - - 29 ) AS col1
----
-1367

query I rowsort
SELECT - 0 * - 43 + + 82
----
82

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9733
SELECT ALL + CASE - 59 WHEN + CAST( COUNT( * ) AS DECIMAL ) THEN + 65 END * 40 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9733
SELECT ALL + CASE - 59 WHEN + CAST ( COUNT ( * ) AS REAL ) THEN + 65 END * 40 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9734
SELECT COUNT( * ) + - + 51 col0
----
-50

skipif mysql # not compatible
query I rowsort label-9734
SELECT COUNT ( * ) + - + 51 col0
----
-50

onlyif mysql # DIV for integer division: 
query II rowsort label-9735
SELECT DISTINCT 49 DIV - 27 AS col0, 48 AS col2
----
-1
48

skipif mysql # not compatible
query II rowsort label-9735
SELECT DISTINCT 49 / - 27 AS col0, 48 AS col2
----
-1
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9736
SELECT CAST( - COALESCE ( + - 21, - + 95 * - 83 * + + MIN( + - 16 ) * + 8 + + + ( - 7 ) ) AS SIGNED ) * + - 40 + + 57 + 73 - + + 1 + - - ( 74 ) * + 35 * - + 61 * - SUM( DISTINCT + 36 ) / CASE 67 * CAST( 62 AS SIGNED ) + 79 WHEN 66 + COUNT( * ) THEN + 33 + 86 WHEN + COALESCE ( - MAX( ALL - CAST( ( + 78 ) AS SIGNED ) ), - 68 ) - 59 THEN - 73 WHEN 82 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9736
SELECT CAST ( - COALESCE ( + - 21, - + 95 * - 83 * + + MIN ( + - 16 ) * + 8 + + + ( - 7 ) ) AS INTEGER ) * + - 40 + + 57 + 73 - + + 1 + - - ( 74 ) * + 35 * - + 61 * - SUM ( DISTINCT + 36 ) / CASE 67 * CAST ( 62 AS INTEGER ) + 79 WHEN 66 + COUNT ( * ) THEN + 33 + 86 WHEN + COALESCE ( - MAX ( ALL - CAST ( ( + 78 ) AS INTEGER ) ), - 68 ) - 59 THEN - 73 WHEN 82 THEN NULL END
----
NULL

query I rowsort
SELECT ALL 84 * ( + - 60 ) col2
----
-5040

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9738
SELECT + ( + 32 ) - - - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9738
SELECT + ( + 32 ) - - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL 41 * + + 70 * - 22 col1
----
-63140

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9740
SELECT + 6 + + 67 * - - COUNT( DISTINCT + + 82 ) + + NULLIF ( + + 91, 57 * AVG ( + 0 ) * + 44 * 55 - - - CAST( + 16 AS SIGNED ) )
----
164

skipif mysql # not compatible
query I rowsort label-9740
SELECT + 6 + + 67 * - - COUNT ( DISTINCT + + 82 ) + + NULLIF ( + + 91, 57 * AVG ( + 0 ) * + 44 * 55 - - - CAST ( + 16 AS INTEGER ) )
----
164

query I rowsort
SELECT + + 3 - - + 88
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9742
SELECT + - COUNT( * ) + 67 + - ( + - CAST( - 78 AS SIGNED ) ) + ( - - 92 )
----
80

skipif mysql # not compatible
query I rowsort label-9742
SELECT + - COUNT ( * ) + 67 + - ( + - CAST ( - 78 AS INTEGER ) ) + ( - - 92 )
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9743
SELECT + - ( - - 62 ), CAST( - 33 AS SIGNED ) AS col2
----
-62
-33

skipif mysql # not compatible
query II rowsort label-9743
SELECT + - ( - - 62 ), CAST ( - 33 AS INTEGER ) AS col2
----
-62
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-9744
SELECT ALL + 37 * + NULLIF ( - + COUNT( * ), 14 ) * + 19 + + 59 AS col0
----
-644

skipif mysql # not compatible
query I rowsort label-9744
SELECT ALL + 37 * + NULLIF ( - + COUNT ( * ), 14 ) * + 19 + + 59 AS col0
----
-644

onlyif mysql # aggregate syntax: 
query I rowsort label-9745
SELECT SUM( - - 56 )
----
56

skipif mysql # not compatible
query I rowsort label-9745
SELECT SUM ( - - 56 )
----
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9746
SELECT ALL + COUNT( * ) * - - 7 * - 59 + 80 + + + 42 - + 92 DIV - - 36
----
-293

skipif mysql # not compatible
query I rowsort label-9746
SELECT ALL + COUNT ( * ) * - - 7 * - 59 + 80 + + + 42 - + 92 / - - 36
----
-293

query I rowsort
SELECT + ( - - 20 ) AS col0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-9748
SELECT - COUNT( * ) + + 33 AS col2
----
32

skipif mysql # not compatible
query I rowsort label-9748
SELECT - COUNT ( * ) + + 33 AS col2
----
32

query I rowsort
SELECT ALL - - 56 * + 55 + 82
----
3162

query I rowsort
SELECT - + 1 * 88 + - 24 - - 3 * + 83
----
137

onlyif mysql # aggregate syntax: 
query I rowsort label-9751
SELECT ALL + ( ( COUNT( * ) ) ) * + 34 + + + 51 * 59 AS col0
----
3043

skipif mysql # not compatible
query I rowsort label-9751
SELECT ALL + ( ( COUNT ( * ) ) ) * + 34 + + + 51 * 59 AS col0
----
3043

onlyif mysql # aggregate syntax: 
query I rowsort label-9752
SELECT + 60 + - - COALESCE ( + 86, + 80 + - 93 * 97 * + - COUNT( * ), + 20 )
----
146

skipif mysql # not compatible
query I rowsort label-9752
SELECT + 60 + - - COALESCE ( + 86, + 80 + - 93 * 97 * + - COUNT ( * ), + 20 )
----
146

query I rowsort
SELECT - - 27 + + - 78 * - - 1
----
-51

query I rowsort
SELECT DISTINCT - - 73 * + 21 * + 49 * - 10 * + - 33 AS col1
----
24788610

query II rowsort
SELECT + 87 * 82 AS col1, - 67 - 5
----
7134
-72

query I rowsort
SELECT - + 49 + - - 54 - - 9 + + + ( + 94 )
----
108

query II rowsort
SELECT + 76 AS col2, - 97 AS col1
----
76
-97

query I rowsort
SELECT ALL 65 * 22 - + 55 col0
----
1375

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9759
SELECT 59 * NULLIF ( - - 91, 17 + + - 47 + 95 + + COUNT( * ) ) + - 22 - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9759
SELECT 59 * NULLIF ( - - 91, 17 + + - 47 + 95 + + COUNT ( * ) ) + - 22 - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - ( + 55 ) * - + 28 * + 74 + + 57 * + 25 AS col2
----
115385

onlyif mysql # aggregate syntax: 
query I rowsort label-9761
SELECT - MAX( 82 ) * + - 58 AS col0
----
4756

skipif mysql # not compatible
query I rowsort label-9761
SELECT - MAX ( 82 ) * + - 58 AS col0
----
4756

query I rowsort
SELECT - ( - 28 ) + + 67 AS col1
----
95

query I rowsort
SELECT ALL + 60 * 7 AS col1
----
420

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9764
SELECT - 41 col0, + COALESCE ( - 5, 65 + + - 87 + - COALESCE ( + CAST( NULL AS SIGNED ), - + 66 + 51 * - 73 ), - - 65 * 6 * - 31 ) * - - 49 AS col0
----
-41
-245

skipif mysql # not compatible
query II rowsort label-9764
SELECT - 41 col0, + COALESCE ( - 5, 65 + + - 87 + - COALESCE ( + CAST ( NULL AS INTEGER ), - + 66 + 51 * - 73 ), - - 65 * 6 * - 31 ) * - - 49 AS col0
----
-41
-245

query I rowsort
SELECT - 90 + - ( - - 0 )
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9766
SELECT ALL + CASE - + 12 WHEN + 17 / - - CASE + - 57 WHEN - + 89 THEN COUNT( * ) END / - 20 + 0 THEN + 26 / MIN( - NULLIF ( CAST( NULL AS SIGNED ), - 77 ) ) WHEN 5 THEN NULL END * + 50 * + 80 + 20
----
NULL

skipif mysql # not compatible
query I rowsort label-9766
SELECT ALL + CASE - + 12 WHEN + 17 / - - CASE + - 57 WHEN - + 89 THEN COUNT ( * ) END / - 20 + 0 THEN + 26 / MIN ( - NULLIF ( CAST ( NULL AS INTEGER ), - 77 ) ) WHEN 5 THEN NULL END * + 50 * + 80 + 20
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9767
SELECT 39 AS col1, - 60 * MAX( ALL + + 24 ) - - - 44 + + ( 16 ) + + COALESCE ( - - 28, - - COUNT( * ) )
----
39
-1440

skipif mysql # not compatible
query II rowsort label-9767
SELECT 39 AS col1, - 60 * MAX ( ALL + + 24 ) - - - 44 + + ( 16 ) + + COALESCE ( - - 28, - - COUNT ( * ) )
----
39
-1440

onlyif mysql # aggregate syntax: 
query II rowsort label-9768
SELECT DISTINCT - 42 * SUM( + - 13 ), - 59 * + 79 AS col2
----
546
-4661

skipif mysql # not compatible
query II rowsort label-9768
SELECT DISTINCT - 42 * SUM ( + - 13 ), - 59 * + 79 AS col2
----
546
-4661

onlyif mysql # DIV for integer division: 
query I rowsort label-9769
SELECT ALL 30 DIV + - 89
----
0

skipif mysql # not compatible
query I rowsort label-9769
SELECT ALL 30 / + - 89
----
0

query I rowsort
SELECT + 36 + + 20 AS col2
----
56

onlyif mysql # aggregate syntax: 
query II rowsort label-9771
SELECT 55 col0, + CASE + 55 WHEN - - 51 + + - 94 / CASE + + 60 WHEN 18 THEN - 41 * - COUNT( * ) ELSE NULL END THEN NULL ELSE - + 51 END + + - MIN( + - 83 )
----
55
32

skipif mysql # not compatible
query II rowsort label-9771
SELECT 55 col0, + CASE + 55 WHEN - - 51 + + - 94 / CASE + + 60 WHEN 18 THEN - 41 * - COUNT ( * ) ELSE NULL END THEN NULL ELSE - + 51 END + + - MIN ( + - 83 )
----
55
32

onlyif mysql # aggregate syntax: 
query I rowsort label-9772
SELECT + 12 + - COUNT( * ) + - + 97
----
-86

skipif mysql # not compatible
query I rowsort label-9772
SELECT + 12 + - COUNT ( * ) + - + 97
----
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-9773
SELECT - 83 DIV - - 59
----
-1

skipif mysql # not compatible
query I rowsort label-9773
SELECT - 83 / - - 59
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9774
SELECT ALL 94 + - 34 + - CASE - SUM( ALL + - NULLIF ( - - 95, + 56 ) ) WHEN + + 40 + - - 82 THEN NULL ELSE - - 69 END
----
-9

skipif mysql # not compatible
query I rowsort label-9774
SELECT ALL 94 + - 34 + - CASE - SUM ( ALL + - NULLIF ( - - 95, + 56 ) ) WHEN + + 40 + - - 82 THEN NULL ELSE - - 69 END
----
-9

query I rowsort
SELECT DISTINCT - COALESCE ( + + 25, 79 ) AS col1
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-9776
SELECT DISTINCT + + 46 + + - 47 * - - 53 * - + 76 * MIN( ALL + ( 82 ) ) * 17 + + 90
----
263906640

skipif mysql # not compatible
query I rowsort label-9776
SELECT DISTINCT + + 46 + + - 47 * - - 53 * - + 76 * MIN ( ALL + ( 82 ) ) * 17 + + 90
----
263906640

query II rowsort
SELECT ALL + 55, ( 75 ) + - 12 AS col2
----
55
63

query I rowsort
SELECT ALL - 27 * 1 * - 56 AS col1
----
1512

onlyif mysql # aggregate syntax: 
query I rowsort label-9779
SELECT + - 22 * + COUNT( * ) col2
----
-22

skipif mysql # not compatible
query I rowsort label-9779
SELECT + - 22 * + COUNT ( * ) col2
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9780
SELECT ALL - 89 DIV + COUNT( * ) + - - CAST( - 15 AS SIGNED )
----
-104

skipif mysql # not compatible
query I rowsort label-9780
SELECT ALL - 89 / + COUNT ( * ) + - - CAST ( - 15 AS INTEGER )
----
-104

onlyif mysql # aggregate syntax: 
query II rowsort label-9781
SELECT ALL + MAX( + - 31 ) * + 72 AS col0, - ( + + 9 )
----
-2232
-9

skipif mysql # not compatible
query II rowsort label-9781
SELECT ALL + MAX ( + - 31 ) * + 72 AS col0, - ( + + 9 )
----
-2232
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9782
SELECT + COUNT( * ) * - 6 * + 17 * + 14
----
-1428

skipif mysql # not compatible
query I rowsort label-9782
SELECT + COUNT ( * ) * - 6 * + 17 * + 14
----
-1428

query II rowsort
SELECT + - 40 AS col2, 54
----
-40
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9784
SELECT ALL + 60 DIV - - 33 + COUNT( * ) - COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9784
SELECT ALL + 60 / - - 33 + COUNT ( * ) - COUNT ( * ) AS col2
----
1

query I rowsort
SELECT ALL + + 24 col0
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9786
SELECT + + CAST( ( + 62 ) AS SIGNED )
----
62

skipif mysql # not compatible
query I rowsort label-9786
SELECT + + CAST ( ( + 62 ) AS INTEGER )
----
62

query I rowsort
SELECT ALL - - 41 * + + 20 * - 5 - + 20 + - NULLIF ( - 51, - 14 ) + + 60 + - 11
----
-4020

query II rowsort
SELECT DISTINCT + 68 col2, 1
----
68
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9789
SELECT ALL - 27 * + COUNT( * )
----
-27

skipif mysql # not compatible
query I rowsort label-9789
SELECT ALL - 27 * + COUNT ( * )
----
-27

onlyif mysql # aggregate syntax: 
query II rowsort label-9790
SELECT ALL + NULLIF ( - - 6, + 16 * - 35 ) AS col2, ( - COUNT( * ) ) + COALESCE ( - 62, - - 20 ) + + 91 + - COUNT( * ) + - ( - 89 ) * + - 59
----
6
-5224

skipif mysql # not compatible
query II rowsort label-9790
SELECT ALL + NULLIF ( - - 6, + 16 * - 35 ) AS col2, ( - COUNT ( * ) ) + COALESCE ( - 62, - - 20 ) + + 91 + - COUNT ( * ) + - ( - 89 ) * + - 59
----
6
-5224

query I rowsort
SELECT DISTINCT 73 * + 81 AS col1
----
5913

onlyif mysql # aggregate syntax: 
query II rowsort label-9792
SELECT + 79 + 90 - COUNT( * ) * - ( + 28 ) + - - COUNT( * ), - 45 * + + 20 * 99 AS col2
----
198
-89100

skipif mysql # not compatible
query II rowsort label-9792
SELECT + 79 + 90 - COUNT ( * ) * - ( + 28 ) + - - COUNT ( * ), - 45 * + + 20 * 99 AS col2
----
198
-89100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9793
SELECT ( - 92 ) * - 73 - + - 42 + + 26 + + + 80 * + + 32 / - ( ( CASE - - COALESCE ( - + 40, + 5 * ( COUNT( * ) ) + COUNT( * ) ) WHEN 66 THEN NULL WHEN CAST( + - 0 AS SIGNED ) * + + COUNT( * ) / - 64 + + 95 THEN - SUM( DISTINCT 54 ) + + 20 * 22 END ) ) / - 46 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9793
SELECT ( - 92 ) * - 73 - + - 42 + + 26 + + + 80 * + + 32 / - ( ( CASE - - COALESCE ( - + 40, + 5 * ( COUNT ( * ) ) + COUNT ( * ) ) WHEN 66 THEN NULL WHEN CAST ( + - 0 AS INTEGER ) * + + COUNT ( * ) / - 64 + + 95 THEN - SUM ( DISTINCT 54 ) + + 20 * 22 END ) ) / - 46 col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9794
SELECT + 97 * - CAST( + 62 AS SIGNED )
----
-6014

skipif mysql # not compatible
query I rowsort label-9794
SELECT + 97 * - CAST ( + 62 AS INTEGER )
----
-6014

onlyif mysql # aggregate syntax: 
query I rowsort label-9795
SELECT - 2 * - - 34 * - - COUNT( * ) * - + 97 col1
----
6596

skipif mysql # not compatible
query I rowsort label-9795
SELECT - 2 * - - 34 * - - COUNT ( * ) * - + 97 col1
----
6596

onlyif mysql # aggregate syntax: 
query I rowsort label-9796
SELECT COALESCE ( - 8, 56 * - 93 * - COUNT( * ) + 20 + 91 - - 67 + + - 20 * - 71 * - 25 + + + ( + COUNT( * ) ) - - 10, - COUNT( * ) )
----
-8

skipif mysql # not compatible
query I rowsort label-9796
SELECT COALESCE ( - 8, 56 * - 93 * - COUNT ( * ) + 20 + 91 - - 67 + + - 20 * - 71 * - 25 + + + ( + COUNT ( * ) ) - - 10, - COUNT ( * ) )
----
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-9797
SELECT ALL - 1 DIV + + 16
----
0

skipif mysql # not compatible
query I rowsort label-9797
SELECT ALL - 1 / + + 16
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9798
SELECT - SUM( DISTINCT + 88 ) * - CASE + COUNT( * ) WHEN + + 10 * + + COUNT( * ) THEN NULL WHEN 14 THEN + 97 * - + CAST( NULL AS SIGNED ) WHEN - 66 * + COUNT( * ) * - 27 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9798
SELECT - SUM ( DISTINCT + 88 ) * - CASE + COUNT ( * ) WHEN + + 10 * + + COUNT ( * ) THEN NULL WHEN 14 THEN + 97 * - + CAST ( NULL AS INTEGER ) WHEN - 66 * + COUNT ( * ) * - 27 THEN NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9799
SELECT - CAST( NULL AS SIGNED ) * + 69 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9799
SELECT - CAST ( NULL AS INTEGER ) * + 69 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9800
SELECT ALL 99 AS col0, CASE + 97 WHEN + ( + 48 ) THEN NULL WHEN - NULLIF ( + 46, CAST( NULL AS SIGNED ) ) THEN NULL ELSE COALESCE ( + 45, - 35 ) * + 45 * - 9 + 14 END * - ( + 87 ) + - 44 + + + 19
----
99
1584332

skipif mysql # not compatible
query II rowsort label-9800
SELECT ALL 99 AS col0, CASE + 97 WHEN + ( + 48 ) THEN NULL WHEN - NULLIF ( + 46, CAST ( NULL AS INTEGER ) ) THEN NULL ELSE COALESCE ( + 45, - 35 ) * + 45 * - 9 + 14 END * - ( + 87 ) + - 44 + + + 19
----
99
1584332

onlyif mysql # aggregate syntax: 
query I rowsort label-9801
SELECT ALL + 65 + - 50 + COUNT( * ) col0
----
16

skipif mysql # not compatible
query I rowsort label-9801
SELECT ALL + 65 + - 50 + COUNT ( * ) col0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-9802
SELECT ALL - COALESCE ( - 80, 10 + + ( + + 55 ) ) * 16 * + COUNT( * ) col1
----
1280

skipif mysql # not compatible
query I rowsort label-9802
SELECT ALL - COALESCE ( - 80, 10 + + ( + + 55 ) ) * 16 * + COUNT ( * ) col1
----
1280

onlyif mysql # aggregate syntax: 
query II rowsort label-9803
SELECT - 6 col0, SUM( + 80 ) + - - 11
----
-6
91

skipif mysql # not compatible
query II rowsort label-9803
SELECT - 6 col0, SUM ( + 80 ) + - - 11
----
-6
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9804
SELECT 69 + - CASE + COUNT( + 57 ) WHEN + 54 THEN - + 29 WHEN 45 - - + 20 THEN NULL WHEN + 54 THEN + 15 * 9 + + COUNT( * ) / + + 78 * 48 END + + 2 * + CASE + + 40 WHEN - 43 THEN 51 END - 47 + - 8 * 31
----
NULL

skipif mysql # not compatible
query I rowsort label-9804
SELECT 69 + - CASE + COUNT ( + 57 ) WHEN + 54 THEN - + 29 WHEN 45 - - + 20 THEN NULL WHEN + 54 THEN + 15 * 9 + + COUNT ( * ) / + + 78 * 48 END + + 2 * + CASE + + 40 WHEN - 43 THEN 51 END - 47 + - 8 * 31
----
NULL

query I rowsort
SELECT 5 * + 40 col0
----
200

query I rowsort
SELECT 85 - + - 29
----
114

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9807
SELECT 95 - - 82 * + + 49 / - + AVG ( DISTINCT + - ( - 22 ) ) * + + CASE + 77 WHEN 21 THEN + CASE - 16 WHEN + - 9 / - + 1 * + CAST( NULL AS SIGNED ) * - - 65 * 82 / - 76 + - COUNT( * ) + + + 36 - 97 / + - 97 / CAST( 80 + 40 AS SIGNED ) + 69 / 99 THEN NULL WHEN 18 * 72 THEN 77 * + 90 + + 64 ELSE NULL END WHEN - 62 THEN 24 + - ( + 50 ) / COUNT( * ) END + - COUNT( * ) * 16 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9807
SELECT 95 - - 82 * + + 49 / - + AVG ( DISTINCT + - ( - 22 ) ) * + + CASE + 77 WHEN 21 THEN + CASE - 16 WHEN + - 9 / - + 1 * + CAST ( NULL AS INTEGER ) * - - 65 * 82 / - 76 + - COUNT ( * ) + + + 36 - 97 / + - 97 / CAST ( 80 + 40 AS INTEGER ) + 69 / 99 THEN NULL WHEN 18 * 72 THEN 77 * + 90 + + 64 ELSE NULL END WHEN - 62 THEN 24 + - ( + 50 ) / COUNT ( * ) END + - COUNT ( * ) * 16 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9808
SELECT - - 34, - 80 + - COALESCE ( - + 81, 31 ) DIV + 91 AS col0
----
34
-80

skipif mysql # not compatible
query II rowsort label-9808
SELECT - - 34, - 80 + - COALESCE ( - + 81, 31 ) / + 91 AS col0
----
34
-80

query I rowsort
SELECT DISTINCT - ( + 72 ) * 44 + 57 + + + 68 AS col2
----
-3043

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9810
SELECT ALL + CAST( NULL AS SIGNED ) + - + 30 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9810
SELECT ALL + CAST ( NULL AS INTEGER ) + - + 30 AS col1
----
NULL

query I rowsort
SELECT ALL + + 44 + - - 44 AS col2
----
88

query I rowsort
SELECT 83 + - 18 * 5 * 45
----
-3967

onlyif mysql # aggregate syntax: 
query I rowsort label-9813
SELECT ALL 5 + - CASE - 88 WHEN 45 * 80 * 19 * MAX( DISTINCT - 64 ) + - 34 * 2 * + 5 + + 78 + + ( COUNT( * ) ) THEN + 29 * + - 88 WHEN CASE - 88 WHEN - - COALESCE ( + + 7, - NULLIF ( + 88, 55 ) ) / COUNT( * ) THEN + 48 * + 28 + + COUNT( * ) * 27 END THEN - CASE + 17 WHEN 87 THEN NULL WHEN - 2 THEN - 11 / - 9 WHEN ( 77 ) + - 92 * + 9 THEN + 36 ELSE NULL END + 39 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9813
SELECT ALL 5 + - CASE - 88 WHEN 45 * 80 * 19 * MAX ( DISTINCT - 64 ) + - 34 * 2 * + 5 + + 78 + + ( COUNT ( * ) ) THEN + 29 * + - 88 WHEN CASE - 88 WHEN - - COALESCE ( + + 7, - NULLIF ( + 88, 55 ) ) / COUNT ( * ) THEN + 48 * + 28 + + COUNT ( * ) * 27 END THEN - CASE + 17 WHEN 87 THEN NULL WHEN - 2 THEN - 11 / - 9 WHEN ( 77 ) + - 92 * + 9 THEN + 36 ELSE NULL END + 39 END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9814
SELECT DISTINCT - 29 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9814
SELECT DISTINCT - 29 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 19 + - + 63 * + - 85 AS col1
----
5374

query I rowsort
SELECT 75 * - + 79 * + 41 + 81 AS col1
----
-242844

query I rowsort
SELECT 62 + - 50 AS col0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-9818
SELECT 6 - + + COUNT( * )
----
5

skipif mysql # not compatible
query I rowsort label-9818
SELECT 6 - + + COUNT ( * )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9819
SELECT MIN( ALL - 24 ) * + 41 + - 26 + + 19 * + 64 * - 31 * COALESCE ( CASE + 89 WHEN + 26 * - + COUNT( * ) + + - 25 * - 27 THEN NULL WHEN 61 * - + COUNT( ALL 45 ) THEN - 34 * + 44 * 26 ELSE NULL END, + 91 ) col1
----
-3431346

skipif mysql # not compatible
query I rowsort label-9819
SELECT MIN ( ALL - 24 ) * + 41 + - 26 + + 19 * + 64 * - 31 * COALESCE ( CASE + 89 WHEN + 26 * - + COUNT ( * ) + + - 25 * - 27 THEN NULL WHEN 61 * - + COUNT ( ALL 45 ) THEN - 34 * + 44 * 26 ELSE NULL END, + 91 ) col1
----
-3431346

query I rowsort
SELECT COALESCE ( 39, - 50 + 1, - 90 - 71, - 61 )
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9821
SELECT - - 63 DIV - 8 + - SUM( ALL 3 ) DIV + 5
----
-7

skipif mysql # not compatible
query I rowsort label-9821
SELECT - - 63 / - 8 + - SUM ( ALL 3 ) / + 5
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9822
SELECT ALL + CAST( NULL AS SIGNED ) - - + 50 - + 49
----
NULL

skipif mysql # not compatible
query I rowsort label-9822
SELECT ALL + CAST ( NULL AS INTEGER ) - - + 50 - + 49
----
NULL

query II rowsort
SELECT + + 39 col1, 0 + - 61 AS col0
----
39
-61

onlyif mysql # aggregate syntax: 
query II rowsort label-9824
SELECT + - 83, SUM( - 99 ) AS col1
----
-83
-99

skipif mysql # not compatible
query II rowsort label-9824
SELECT + - 83, SUM ( - 99 ) AS col1
----
-83
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-9825
SELECT + COUNT( * ) AS col2, 77
----
1
77

skipif mysql # not compatible
query II rowsort label-9825
SELECT + COUNT ( * ) AS col2, 77
----
1
77

query I rowsort
SELECT ALL ( + 10 ) * 19 * + 36 * - + 37
----
-253080

query I rowsort
SELECT ALL - 55 * + 49 col0
----
-2695

onlyif mysql # aggregate syntax: 
query I rowsort label-9828
SELECT 49 * - COALESCE ( + + 43, 46 * ( + ( - ( - + COUNT( - - 16 ) ) ) ) ) + - 41 + + - COUNT( * ) AS col2
----
-2149

skipif mysql # not compatible
query I rowsort label-9828
SELECT 49 * - COALESCE ( + + 43, 46 * ( + ( - ( - + COUNT ( - - 16 ) ) ) ) ) + - 41 + + - COUNT ( * ) AS col2
----
-2149

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9829
SELECT - + CAST( NULL AS DECIMAL ) / - + 56 + 73 + + ( - 77 ) + - 55 + - 42 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9829
SELECT - + CAST ( NULL AS REAL ) / - + 56 + 73 + + ( - 77 ) + - 55 + - 42 AS col2
----
NULL

query I rowsort
SELECT 54 * - 26 - + 10 + + 11 * + 59 AS col0
----
-765

onlyif mysql # aggregate syntax: 
query I rowsort label-9831
SELECT COUNT( * ) + + COUNT( * ) * + 86 AS col2
----
87

skipif mysql # not compatible
query I rowsort label-9831
SELECT COUNT ( * ) + + COUNT ( * ) * + 86 AS col2
----
87

query II rowsort
SELECT 54 * - 23, - 73 AS col0
----
-1242
-73

query I rowsort
SELECT 90 * + - 66 * - + 1
----
5940

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9834
SELECT ( - 68 ) + CAST( + 83 AS SIGNED ) AS col2
----
15

skipif mysql # not compatible
query I rowsort label-9834
SELECT ( - 68 ) + CAST ( + 83 AS INTEGER ) AS col2
----
15

query I rowsort
SELECT DISTINCT 55 + - + 99 * - 83 + - 10 AS col2
----
8262

query II rowsort
SELECT ALL 25 + - - 78 AS col0, + 41 AS col2
----
103
41

onlyif mysql # aggregate syntax: 
query I rowsort label-9837
SELECT COUNT( ALL - - 85 ) - - + 30 AS col1
----
31

skipif mysql # not compatible
query I rowsort label-9837
SELECT COUNT ( ALL - - 85 ) - - + 30 AS col1
----
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9838
SELECT - 68 * + ( - SUM( - 93 ) ) DIV 92 * 7 + - 95 + - ( + 54 ) * 78 * + - 88 * 74 col0
----
27427973

skipif mysql # not compatible
query I rowsort label-9838
SELECT - 68 * + ( - SUM ( - 93 ) ) / 92 * 7 + - 95 + - ( + 54 ) * 78 * + - 88 * 74 col0
----
27427973

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9839
SELECT DISTINCT 19 + - 71 - - COUNT( 49 ) DIV + MAX( - 25 )
----
-52

skipif mysql # not compatible
query I rowsort label-9839
SELECT DISTINCT 19 + - 71 - - COUNT ( 49 ) / + MAX ( - 25 )
----
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9840
SELECT CASE - COUNT( + 71 ) WHEN - COALESCE ( - 95, - + 70 ) + + 43 * + 71 / + - 55 + - + 6 * + 51 * + 44 THEN NULL WHEN - 18 THEN - 22 WHEN + + 67 THEN + + COALESCE ( + - NULLIF ( - + NULLIF ( - 60, 29 + + 75 / 21 * - 22 ), ( + CAST( NULL AS SIGNED ) ) ), + COUNT( * ) - COUNT( * ) ) END + 75 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9840
SELECT CASE - COUNT ( + 71 ) WHEN - COALESCE ( - 95, - + 70 ) + + 43 * + 71 / + - 55 + - + 6 * + 51 * + 44 THEN NULL WHEN - 18 THEN - 22 WHEN + + 67 THEN + + COALESCE ( + - NULLIF ( - + NULLIF ( - 60, 29 + + 75 / 21 * - 22 ), ( + CAST ( NULL AS INTEGER ) ) ), + COUNT ( * ) - COUNT ( * ) ) END + 75 AS col1
----
NULL

query I rowsort
SELECT ALL 59 + - 38 AS col2
----
21

query I rowsort
SELECT ALL + - ( - - 13 ) + + 6 AS col2
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9843
SELECT 28 + + CAST( NULL AS SIGNED ) * + + 93 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9843
SELECT 28 + + CAST ( NULL AS INTEGER ) * + + 93 AS col2
----
NULL

query I rowsort
SELECT + ( + 30 ) + - 73
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-9845
SELECT ALL + 8 - + COUNT( * ) + - + 92 + COUNT( * ) * - 83 AS col1
----
-168

skipif mysql # not compatible
query I rowsort label-9845
SELECT ALL + 8 - + COUNT ( * ) + - + 92 + COUNT ( * ) * - 83 AS col1
----
-168

onlyif mysql # aggregate syntax: 
query I rowsort label-9846
SELECT COUNT( * ) + 51 AS col0
----
52

skipif mysql # not compatible
query I rowsort label-9846
SELECT COUNT ( * ) + 51 AS col0
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9847
SELECT ALL - + CAST( COUNT( * ) AS SIGNED ) * - - 81 AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-9847
SELECT ALL - + CAST ( COUNT ( * ) AS INTEGER ) * - - 81 AS col1
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9848
SELECT 31 * + - 49 * + 83 * NULLIF ( + + MAX( ALL - + 85 ), - NULLIF ( - + 70, + CAST( + 75 AS SIGNED ) ) )
----
10716545

skipif mysql # not compatible
query I rowsort label-9848
SELECT 31 * + - 49 * + 83 * NULLIF ( + + MAX ( ALL - + 85 ), - NULLIF ( - + 70, + CAST ( + 75 AS INTEGER ) ) )
----
10716545

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9849
SELECT - ( - CASE 62 WHEN - + 8 / + - 39 * - 9 + + + 39 THEN ( 74 ) - 40 + + MIN( ALL 92 ) * + 85 WHEN - CAST( - - 54 AS SIGNED ) + + 25 / - 84 * + - 10 THEN 42 * + 62 END ) * + + 30
----
NULL

skipif mysql # not compatible
query I rowsort label-9849
SELECT - ( - CASE 62 WHEN - + 8 / + - 39 * - 9 + + + 39 THEN ( 74 ) - 40 + + MIN ( ALL 92 ) * + 85 WHEN - CAST ( - - 54 AS INTEGER ) + + 25 / - 84 * + - 10 THEN 42 * + 62 END ) * + + 30
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9850
SELECT + NULLIF ( - 6, + ( - - 29 ) * 47 + - COUNT( * ) / - 91 + 52 * 54 - ( + 47 ) ) AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-9850
SELECT + NULLIF ( - 6, + ( - - 29 ) * 47 + - COUNT ( * ) / - 91 + 52 * 54 - ( + 47 ) ) AS col2
----
-6

query I rowsort
SELECT 10 * - 76 * + + 36 AS col0
----
-27360

query I rowsort
SELECT 26 + - 69
----
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-9853
SELECT - 32 DIV - 52 + + - ( + 2 ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-9853
SELECT - 32 / - 52 + + - ( + 2 ) AS col1
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-9854
SELECT ALL + 1 DIV 46
----
0

skipif mysql # not compatible
query I rowsort label-9854
SELECT ALL + 1 / 46
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9855
SELECT DISTINCT - CASE - 53 WHEN + - COUNT( * ) THEN NULL ELSE + 75 * 27 DIV + CAST( MIN( + 77 ) AS SIGNED ) + - - 33 END AS col2, 3 AS col0
----
-59
3

skipif mysql # not compatible
query II rowsort label-9855
SELECT DISTINCT - CASE - 53 WHEN + - COUNT ( * ) THEN NULL ELSE + 75 * 27 / + CAST ( MIN ( + 77 ) AS INTEGER ) + - - 33 END AS col2, 3 AS col0
----
-59
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9856
SELECT MAX( + 98 ) - + NULLIF ( + 91, + + 34 )
----
7

skipif mysql # not compatible
query I rowsort label-9856
SELECT MAX ( + 98 ) - + NULLIF ( + 91, + + 34 )
----
7

query II rowsort
SELECT DISTINCT + 12 col1, + 85 + - 41 AS col2
----
12
44

onlyif mysql # aggregate syntax: 
query I rowsort label-9858
SELECT + COUNT( * ) + - 25 AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-9858
SELECT + COUNT ( * ) + - 25 AS col2
----
-24

query I rowsort
SELECT ALL 14 * 27 AS col0
----
378

onlyif mysql # aggregate syntax: 
query I rowsort label-9860
SELECT MAX( ALL 90 ) AS col2
----
90

skipif mysql # not compatible
query I rowsort label-9860
SELECT MAX ( ALL 90 ) AS col2
----
90

query I rowsort
SELECT ALL ( + 88 ) * + + ( - 70 ) + 45 + - - 7 AS col2
----
-6108

query I rowsort
SELECT - ( - + 40 ) + + ( 28 ) + + 9 + + 72
----
149

onlyif mysql # aggregate syntax: 
query I rowsort label-9863
SELECT + COUNT( ALL + - 35 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-9863
SELECT + COUNT ( ALL + - 35 ) col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9864
SELECT DISTINCT COUNT( * ) + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9864
SELECT DISTINCT COUNT ( * ) + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL 78 * + 0
----
0

query I rowsort
SELECT + 48 - + + 23 * + 31
----
-665

onlyif mysql # DIV for integer division: 
query II rowsort label-9867
SELECT + 4 AS col2, 65 DIV - 35
----
4
-1

skipif mysql # not compatible
query II rowsort label-9867
SELECT + 4 AS col2, 65 / - 35
----
4
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9868
SELECT AVG ( + CAST( NULL AS DECIMAL ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9868
SELECT AVG ( + CAST ( NULL AS REAL ) ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT 6 + - 90
----
-84

query I rowsort
SELECT DISTINCT 22 - 85 + - 28 + - + 82 - 96 col1
----
-269

query II rowsort
SELECT - - 12 AS col1, + 83 col0
----
12
83

query I rowsort
SELECT + - 49 + + 13
----
-36

query I rowsort
SELECT + + 74 * - 13
----
-962

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9874
SELECT + 24 - + 2 + + - 26 - + COUNT( * ) + CAST( NULL AS DECIMAL ) * - AVG ( ALL 6 ) * 69 + - 27 * + ( - CASE + 7 WHEN - 21 * + 21 THEN 85 WHEN 87 - - - 65 * + COUNT( * ) * - 79 THEN + - ( - 82 ) + - - 88 + - - 61 * + 55 WHEN - 18 THEN CASE 73 WHEN 9 THEN 13 END END ) * 12 * + 41
----
NULL

skipif mysql # not compatible
query I rowsort label-9874
SELECT + 24 - + 2 + + - 26 - + COUNT ( * ) + CAST ( NULL AS REAL ) * - AVG ( ALL 6 ) * 69 + - 27 * + ( - CASE + 7 WHEN - 21 * + 21 THEN 85 WHEN 87 - - - 65 * + COUNT ( * ) * - 79 THEN + - ( - 82 ) + - - 88 + - - 61 * + 55 WHEN - 18 THEN CASE 73 WHEN 9 THEN 13 END END ) * 12 * + 41
----
NULL

query II rowsort
SELECT DISTINCT - 64 AS col0, 22
----
-64
22

query I rowsort
SELECT DISTINCT + 35 * - 16
----
-560

onlyif mysql # aggregate syntax: 
query I rowsort label-9877
SELECT ALL COALESCE ( SUM( + 6 ), - 10 ) - 75
----
-69

skipif mysql # not compatible
query I rowsort label-9877
SELECT ALL COALESCE ( SUM ( + 6 ), - 10 ) - 75
----
-69

query I rowsort
SELECT + 51 + 61
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-9879
SELECT + - 47 + + - 53 + 52 + - 53 + - MAX( ALL - 73 )
----
-28

skipif mysql # not compatible
query I rowsort label-9879
SELECT + - 47 + + - 53 + 52 + - 53 + - MAX ( ALL - 73 )
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9880
SELECT - + CAST( NULL AS SIGNED ) - - NULLIF ( - 94, + 12 ) * + 17
----
NULL

skipif mysql # not compatible
query I rowsort label-9880
SELECT - + CAST ( NULL AS INTEGER ) - - NULLIF ( - 94, + 12 ) * + 17
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9881
SELECT + + MAX( ALL + 69 ) + + + 70
----
139

skipif mysql # not compatible
query I rowsort label-9881
SELECT + + MAX ( ALL + 69 ) + + + 70
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-9882
SELECT - - 67 + + + COUNT( * )
----
68

skipif mysql # not compatible
query I rowsort label-9882
SELECT - - 67 + + + COUNT ( * )
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9883
SELECT + COUNT( * ) * ( - 82 ) + ( - NULLIF ( - + ( - ( - 97 ) ), 76 ) ) * 76 * - COALESCE ( + - ( CAST( NULL AS SIGNED ) ), + - 78, ( + 7 ) ) AS col1
----
574934

skipif mysql # not compatible
query I rowsort label-9883
SELECT + COUNT ( * ) * ( - 82 ) + ( - NULLIF ( - + ( - ( - 97 ) ), 76 ) ) * 76 * - COALESCE ( + - ( CAST ( NULL AS INTEGER ) ), + - 78, ( + 7 ) ) AS col1
----
574934

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9884
SELECT ALL CAST( - ( + CASE - 52 WHEN - COUNT( DISTINCT 81 ) THEN + - CAST( NULL AS SIGNED ) WHEN - 52 * + 64 * + + 54 + + 47 THEN NULL END ) AS SIGNED ) / - 60
----
NULL

skipif mysql # not compatible
query I rowsort label-9884
SELECT ALL CAST ( - ( + CASE - 52 WHEN - COUNT ( DISTINCT 81 ) THEN + - CAST ( NULL AS INTEGER ) WHEN - 52 * + 64 * + + 54 + + 47 THEN NULL END ) AS INTEGER ) / - 60
----
NULL

query I rowsort
SELECT 15 * ( + 78 ) + - 47
----
1123

query I rowsort
SELECT DISTINCT 91 * + 66
----
6006

onlyif mysql # aggregate syntax: 
query I rowsort label-9887
SELECT DISTINCT MAX( - COALESCE ( + CASE + 34 WHEN - - 16 THEN 20 END, - 60 + - 95 ) ) * 62 * + 10 + + + 38 * - + 75 - + NULLIF ( 69, + 30 ) AS col1
----
93181

skipif mysql # not compatible
query I rowsort label-9887
SELECT DISTINCT MAX ( - COALESCE ( + CASE + 34 WHEN - - 16 THEN 20 END, - 60 + - 95 ) ) * 62 * + 10 + + + 38 * - + 75 - + NULLIF ( 69, + 30 ) AS col1
----
93181

onlyif mysql # aggregate syntax: 
query I rowsort label-9888
SELECT DISTINCT + SUM( - - 31 ) AS col0
----
31

skipif mysql # not compatible
query I rowsort label-9888
SELECT DISTINCT + SUM ( - - 31 ) AS col0
----
31

query I rowsort
SELECT ALL - 87 * 31 + - - 44 * - 71 + - - 99 AS col0
----
-5722

onlyif mysql # aggregate syntax: 
query I rowsort label-9890
SELECT DISTINCT COUNT( * ) * + 32 + - 13 * + - 53 AS col2
----
721

skipif mysql # not compatible
query I rowsort label-9890
SELECT DISTINCT COUNT ( * ) * + 32 + - 13 * + - 53 AS col2
----
721

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9891
SELECT - ( + 43 ) / + 26 + - CASE - 68 WHEN - - 25 THEN NULL WHEN - + 65 * + 68 THEN + + ( - - CASE + + 26 WHEN + 38 - 82 / 34 THEN NULL WHEN - 59 - - 92 / + COUNT( * ) THEN + CAST( + COALESCE ( + COALESCE ( - 54, - CAST( + 6 AS DECIMAL ), - 19 * 29 ), + 19 * 65 - - 52 ) AS SIGNED ) * 28 + COUNT( * ) ELSE 42 END ) * ( + CAST( ( - AVG ( - 28 ) ) AS SIGNED ) + - COALESCE ( 22 + - 34, - 82 * + 46, 91 ) ) ELSE NULL END - MIN( ALL - 42 ) * 77
----
NULL

skipif mysql # not compatible
query I rowsort label-9891
SELECT - ( + 43 ) / + 26 + - CASE - 68 WHEN - - 25 THEN NULL WHEN - + 65 * + 68 THEN + + ( - - CASE + + 26 WHEN + 38 - 82 / 34 THEN NULL WHEN - 59 - - 92 / + COUNT ( * ) THEN + CAST ( + COALESCE ( + COALESCE ( - 54, - CAST ( + 6 AS REAL ), - 19 * 29 ), + 19 * 65 - - 52 ) AS INTEGER ) * 28 + COUNT ( * ) ELSE 42 END ) * ( + CAST ( ( - AVG ( - 28 ) ) AS INTEGER ) + - COALESCE ( 22 + - 34, - 82 * + 46, 91 ) ) ELSE NULL END - MIN ( ALL - 42 ) * 77
----
NULL

query II rowsort
SELECT ALL + ( - + 92 ) AS col2, 56 * - 54 + - 38
----
-92
-3062

onlyif mysql # DIV for integer division: 
query I rowsort label-9893
SELECT ALL - 80 DIV - 22
----
3

skipif mysql # not compatible
query I rowsort label-9893
SELECT ALL - 80 / - 22
----
3

query I rowsort
SELECT - 12 * - + 77 AS col1
----
924

onlyif mysql # aggregate syntax: 
query I rowsort label-9895
SELECT - 30 + + + ( - COUNT( * ) ) AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-9895
SELECT - 30 + + + ( - COUNT ( * ) ) AS col1
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9896
SELECT ALL + NULLIF ( + CAST( NULL AS SIGNED ), 56 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9896
SELECT ALL + NULLIF ( + CAST ( NULL AS INTEGER ), 56 ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT ( - 91 ) * - 82 AS col1
----
7462

query I rowsort
SELECT NULLIF ( + 18, + 64 ) AS col0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-9899
SELECT 71 * 66 + - + 44 + + 95 + 89 * 8 - + NULLIF ( COALESCE ( + ( + - 29 ), COALESCE ( - 62, - 94 ) * + + SUM( DISTINCT + - ( - 7 ) ) + + 80 - + 33 + 61 * - + 53 ), - COUNT( * ) * - AVG ( + + 96 ) ) col1
----
5478

skipif mysql # not compatible
query I rowsort label-9899
SELECT 71 * 66 + - + 44 + + 95 + 89 * 8 - + NULLIF ( COALESCE ( + ( + - 29 ), COALESCE ( - 62, - 94 ) * + + SUM ( DISTINCT + - ( - 7 ) ) + + 80 - + 33 + 61 * - + 53 ), - COUNT ( * ) * - AVG ( + + 96 ) ) col1
----
5478

query I rowsort
SELECT DISTINCT - 67 * 50 - - - 39
----
-3389

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9901
SELECT + 55 + 4 + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9901
SELECT + 55 + 4 + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9902
SELECT - ( + 48 ) * - - CASE - + CAST( - 45 AS SIGNED ) WHEN - 68 THEN NULL WHEN + 59 THEN - 66 END + + - MIN( + - 13 ) * 5 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9902
SELECT - ( + 48 ) * - - CASE - + CAST ( - 45 AS INTEGER ) WHEN - 68 THEN NULL WHEN + 59 THEN - 66 END + + - MIN ( + - 13 ) * 5 AS col0
----
NULL

query I rowsort
SELECT + 82 + + 57 - + - 60 + - - 44
----
243

query I rowsort
SELECT - - 79 * 82 + - 58 AS col1
----
6420

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9905
SELECT ALL + COUNT( * ) * + 88 DIV - - CAST( - 72 AS SIGNED ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9905
SELECT ALL + COUNT ( * ) * + 88 / - - CAST ( - 72 AS INTEGER ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9906
SELECT + - SUM( ALL - - NULLIF ( + 50, + 21 + 44 ) ) * + 52 * AVG ( ALL + - CAST( NULL AS SIGNED ) ) * + MAX( 59 ) * - + 58 + - + ( ( + MAX( DISTINCT + 6 ) ) ) AS col0, + COALESCE ( + + COUNT( * ), + 75 DIV - + ( + - 1 ) + + - ( + ( 38 ) ) ) DIV - 39 AS col0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-9906
SELECT + - SUM ( ALL - - NULLIF ( + 50, + 21 + 44 ) ) * + 52 * AVG ( ALL + - CAST ( NULL AS INTEGER ) ) * + MAX ( 59 ) * - + 58 + - + ( ( + MAX ( DISTINCT + 6 ) ) ) AS col0, + COALESCE ( + + COUNT ( * ), + 75 / - + ( + - 1 ) + + - ( + ( 38 ) ) ) / - 39 AS col0
----
NULL
0

query I rowsort
SELECT - - ( 30 ) AS col0
----
30

onlyif mysql # aggregate syntax: 
query II rowsort label-9908
SELECT + COUNT( * ) * - 98 col1, 82 + - 8 * - COUNT( * ) * + ( + CASE 6 WHEN COUNT( * ) THEN - + COUNT( * ) ELSE - NULLIF ( + 15, 3 * + 12 + NULLIF ( + 94, - COUNT( * ) ) ) END ) * - 46
----
-98
5602

skipif mysql # not compatible
query II rowsort label-9908
SELECT + COUNT ( * ) * - 98 col1, 82 + - 8 * - COUNT ( * ) * + ( + CASE 6 WHEN COUNT ( * ) THEN - + COUNT ( * ) ELSE - NULLIF ( + 15, 3 * + 12 + NULLIF ( + 94, - COUNT ( * ) ) ) END ) * - 46
----
-98
5602

onlyif mysql # aggregate syntax: 
query I rowsort label-9909
SELECT + 85 + NULLIF ( + 28, - 58 + 25 + 60 * 55 ) / - + 28 * CASE + 11 WHEN SUM( DISTINCT - 94 ) THEN - - 99 * + - 59 WHEN + 62 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9909
SELECT + 85 + NULLIF ( + 28, - 58 + 25 + 60 * 55 ) / - + 28 * CASE + 11 WHEN SUM ( DISTINCT - 94 ) THEN - - 99 * + - 59 WHEN + 62 THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9910
SELECT DISTINCT - CASE - 26 WHEN + 63 THEN - ( - COUNT( * ) ) ELSE NULL END + - 16
----
NULL

skipif mysql # not compatible
query I rowsort label-9910
SELECT DISTINCT - CASE - 26 WHEN + 63 THEN - ( - COUNT ( * ) ) ELSE NULL END + - 16
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9911
SELECT + COALESCE ( - 57, + COALESCE ( + - 95, - MIN( ALL - - ( 81 ) ) ) ) AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-9911
SELECT + COALESCE ( - 57, + COALESCE ( + - 95, - MIN ( ALL - - ( 81 ) ) ) ) AS col1
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-9912
SELECT + + COALESCE ( - COUNT( * ), - - 15 ) * - 6 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-9912
SELECT + + COALESCE ( - COUNT ( * ), - - 15 ) * - 6 AS col0
----
6

query I rowsort
SELECT ALL + 30 * + 29 AS col2
----
870

query I rowsort
SELECT DISTINCT 25 * - - 22
----
550

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9915
SELECT DISTINCT 30 + 16, + ( 64 ) * 84 * + SUM( + - CAST( + 92 AS SIGNED ) ) AS col2
----
46
-494592

skipif mysql # not compatible
query II rowsort label-9915
SELECT DISTINCT 30 + 16, + ( 64 ) * 84 * + SUM ( + - CAST ( + 92 AS INTEGER ) ) AS col2
----
46
-494592

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9916
SELECT NULLIF ( - ( + - 20 ), - + 58 + - MAX( + + 93 ) * 88 ) * - 79 + + 2 + CASE + + 54 WHEN - + 74 * + - 29 * NULLIF ( 89, CAST( + 62 AS SIGNED ) + + 30 + - - 55 ) + 12 + - 84 * + SUM( + ( 14 ) ) THEN + 1 * - 24 WHEN COUNT( * ) * - 28 + 73 THEN MAX( - 95 ) END + 66
----
NULL

skipif mysql # not compatible
query I rowsort label-9916
SELECT NULLIF ( - ( + - 20 ), - + 58 + - MAX ( + + 93 ) * 88 ) * - 79 + + 2 + CASE + + 54 WHEN - + 74 * + - 29 * NULLIF ( 89, CAST ( + 62 AS INTEGER ) + + 30 + - - 55 ) + 12 + - 84 * + SUM ( + ( 14 ) ) THEN + 1 * - 24 WHEN COUNT ( * ) * - 28 + 73 THEN MAX ( - 95 ) END + 66
----
NULL

query II rowsort
SELECT DISTINCT - 50 AS col1, 29 * - 40
----
-50
-1160

query I rowsort
SELECT ALL - 20 - + 67 col1
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9919
SELECT MIN( - 78 ) DIV - + 94 + + - 63 - + CAST( - 74 AS SIGNED ) * - + 85 * 32 AS col0
----
-201343

skipif mysql # not compatible
query I rowsort label-9919
SELECT MIN ( - 78 ) / - + 94 + + - 63 - + CAST ( - 74 AS INTEGER ) * - + 85 * 32 AS col0
----
-201343

onlyif mysql # aggregate syntax: 
query I rowsort label-9920
SELECT DISTINCT COUNT( * ) * - - 81 * - 86
----
-6966

skipif mysql # not compatible
query I rowsort label-9920
SELECT DISTINCT COUNT ( * ) * - - 81 * - 86
----
-6966

query I rowsort
SELECT 8 + + 67 AS col2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9922
SELECT DISTINCT - COUNT( DISTINCT + + 33 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9922
SELECT DISTINCT - COUNT ( DISTINCT + + 33 ) AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9923
SELECT 98 + - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9923
SELECT 98 + - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9924
SELECT 33 DIV + 15
----
2

skipif mysql # not compatible
query I rowsort label-9924
SELECT 33 / + 15
----
2

query I rowsort
SELECT 4 * - 94 AS col1
----
-376

query I rowsort
SELECT 43 - 56 - - 57
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-9927
SELECT - 97 DIV - 62 - + + ( + 85 ) DIV ( + 82 ) DIV - 54 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9927
SELECT - 97 / - 62 - + + ( + 85 ) / ( + 82 ) / - 54 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9928
SELECT SUM( ALL - + 13 ) * + 71 * 48 AS col0
----
-44304

skipif mysql # not compatible
query I rowsort label-9928
SELECT SUM ( ALL - + 13 ) * + 71 * 48 AS col0
----
-44304

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9929
SELECT DISTINCT - COUNT( * ) DIV + MIN( ALL + ( - 54 ) )
----
0

skipif mysql # not compatible
query I rowsort label-9929
SELECT DISTINCT - COUNT ( * ) / + MIN ( ALL + ( - 54 ) )
----
0

query I rowsort
SELECT ALL - - ( - 31 ) * 6 AS col1
----
-186

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9931
SELECT + COALESCE ( + 43, - - 35, + + SUM( ALL - 8 ) ) DIV - - ( - COUNT( * ) )
----
-43

skipif mysql # not compatible
query I rowsort label-9931
SELECT + COALESCE ( + 43, - - 35, + + SUM ( ALL - 8 ) ) / - - ( - COUNT ( * ) )
----
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-9932
SELECT ALL - + 30 + - + MIN( ALL - - 8 ) AS col1, 60 + + COUNT( * )
----
-38
61

skipif mysql # not compatible
query II rowsort label-9932
SELECT ALL - + 30 + - + MIN ( ALL - - 8 ) AS col1, 60 + + COUNT ( * )
----
-38
61

onlyif mysql # aggregate syntax: 
query I rowsort label-9933
SELECT - MAX( ALL + + 18 )
----
-18

skipif mysql # not compatible
query I rowsort label-9933
SELECT - MAX ( ALL + + 18 )
----
-18

query I rowsort
SELECT ALL + + 17 * - 93 * + 40 AS col2
----
-63240

query I rowsort
SELECT - 99 + - - 5 AS col0
----
-94

onlyif mysql # aggregate syntax: 
query II rowsort label-9936
SELECT - COALESCE ( + COUNT( * ), COUNT( * ) ) + - 44 + 58, + 56 * - 89 * 84 + - 64 + + 96 AS col0
----
13
-418624

skipif mysql # not compatible
query II rowsort label-9936
SELECT - COALESCE ( + COUNT ( * ), COUNT ( * ) ) + - 44 + 58, + 56 * - 89 * 84 + - 64 + + 96 AS col0
----
13
-418624

query I rowsort
SELECT + 82 * + - 53 AS col2
----
-4346

query I rowsort
SELECT ALL - + 42 + + + 60 AS col1
----
18

query I rowsort
SELECT + 22 + - 55 AS col2
----
-33

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9940
SELECT ALL COALESCE ( 75, - + ( ( + 82 ) ), - ( - COALESCE ( 95, 13 ) ) * - 80 DIV + - 51 * - 46, + 32 ) AS col1, - COUNT( * ) * + 9 * + - 59 AS col2
----
75
531

skipif mysql # not compatible
query II rowsort label-9940
SELECT ALL COALESCE ( 75, - + ( ( + 82 ) ), - ( - COALESCE ( 95, 13 ) ) * - 80 / + - 51 * - 46, + 32 ) AS col1, - COUNT ( * ) * + 9 * + - 59 AS col2
----
75
531

onlyif mysql # aggregate syntax: 
query II rowsort label-9941
SELECT ALL - 42 AS col2, + COALESCE ( - 71, - COUNT( * ) * + - 70 + SUM( 78 ), 11 ) * + ( - 14 ) AS col1
----
-42
994

skipif mysql # not compatible
query II rowsort label-9941
SELECT ALL - 42 AS col2, + COALESCE ( - 71, - COUNT ( * ) * + - 70 + SUM ( 78 ), 11 ) * + ( - 14 ) AS col1
----
-42
994

onlyif mysql # aggregate syntax: 
query I rowsort label-9942
SELECT DISTINCT + - 12 + + SUM( - + 76 ) + 6 * + 43 * + 51 * + 29 + 96 * + - NULLIF ( 2, ( - AVG ( ALL - 15 ) ) + 82 * - NULLIF ( - 62, + ( - 84 ) ) * + 64 + 87 / + 14 )
----
381302

skipif mysql # not compatible
query I rowsort label-9942
SELECT DISTINCT + - 12 + + SUM ( - + 76 ) + 6 * + 43 * + 51 * + 29 + 96 * + - NULLIF ( 2, ( - AVG ( ALL - 15 ) ) + 82 * - NULLIF ( - 62, + ( - 84 ) ) * + 64 + 87 / + 14 )
----
381302

query I rowsort
SELECT ALL - 84 + - 52 AS col2
----
-136

onlyif mysql # aggregate syntax: 
query II rowsort label-9944
SELECT + 62 + - - 43 + 72 AS col2, 20 + - + COUNT( * ) + - 96 AS col2
----
177
-77

skipif mysql # not compatible
query II rowsort label-9944
SELECT + 62 + - - 43 + 72 AS col2, 20 + - + COUNT ( * ) + - 96 AS col2
----
177
-77

query I rowsort
SELECT ALL + 51 + - 50
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9946
SELECT DISTINCT - 97 + - COALESCE ( + - 46, - COALESCE ( - + 16, - - COUNT( * ) ) ) + - 76 * + + CAST( NULL AS SIGNED ) * - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9946
SELECT DISTINCT - 97 + - COALESCE ( + - 46, - COALESCE ( - + 16, - - COUNT ( * ) ) ) + - 76 * + + CAST ( NULL AS INTEGER ) * - + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9947
SELECT 66, + MAX( ALL + + 21 ) * - - 44 - 46 * 55 AS col0
----
66
-1606

skipif mysql # not compatible
query II rowsort label-9947
SELECT 66, + MAX ( ALL + + 21 ) * - - 44 - 46 * 55 AS col0
----
66
-1606

onlyif mysql # DIV for integer division: 
query I rowsort label-9948
SELECT ALL 2 DIV + - 86 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9948
SELECT ALL 2 / + - 86 AS col2
----
0

query I rowsort
SELECT ( + - 83 ) + + 63 AS col1
----
-20

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9950
SELECT - 80 col2, 58 + + COUNT( * ) DIV 13 col2
----
-80
58

skipif mysql # not compatible
query II rowsort label-9950
SELECT - 80 col2, 58 + + COUNT ( * ) / 13 col2
----
-80
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9951
SELECT COUNT( * ) + + 96 * 42 AS col0
----
4033

skipif mysql # not compatible
query I rowsort label-9951
SELECT COUNT ( * ) + + 96 * 42 AS col0
----
4033

onlyif mysql # aggregate syntax: 
query I rowsort label-9952
SELECT ALL 55 - + + COUNT( * ) * 31 + + - 81 - 37 AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-9952
SELECT ALL 55 - + + COUNT ( * ) * 31 + + - 81 - 37 AS col1
----
-94

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9953
SELECT ALL - CAST( NULL AS SIGNED ) AS col0, ( 59 )
----
NULL
59

skipif mysql # not compatible
query II rowsort label-9953
SELECT ALL - CAST ( NULL AS INTEGER ) AS col0, ( 59 )
----
NULL
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9954
SELECT ALL - MIN( ALL - NULLIF ( 23, + 45 ) )
----
23

skipif mysql # not compatible
query I rowsort label-9954
SELECT ALL - MIN ( ALL - NULLIF ( 23, + 45 ) )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-9955
SELECT COUNT( + - 89 )
----
1

skipif mysql # not compatible
query I rowsort label-9955
SELECT COUNT ( + - 89 )
----
1

query I rowsort
SELECT ALL 19 - - + 28
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9957
SELECT COUNT( * ) * + ( + - 20 )
----
-20

skipif mysql # not compatible
query I rowsort label-9957
SELECT COUNT ( * ) * + ( + - 20 )
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9958
SELECT CAST( NULL AS SIGNED ) + 71 + + 43 / COUNT( * ) + - + ( - 76 ) - - SUM( + 29 ) * + 41 * + 3
----
NULL

skipif mysql # not compatible
query I rowsort label-9958
SELECT CAST ( NULL AS INTEGER ) + 71 + + 43 / COUNT ( * ) + - + ( - 76 ) - - SUM ( + 29 ) * + 41 * + 3
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-9959
SELECT ALL - 53 AS col0, - 82 + - - COUNT( - 70 ), + 88 AS col2
----
-53
-81
88

skipif mysql # not compatible
query III rowsort label-9959
SELECT ALL - 53 AS col0, - 82 + - - COUNT ( - 70 ), + 88 AS col2
----
-53
-81
88

query I rowsort
SELECT 24 * 79
----
1896

onlyif mysql # aggregate syntax: 
query I rowsort label-9961
SELECT 95 + + - CASE - 99 WHEN - 97 THEN - SUM( + - 3 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9961
SELECT 95 + + - CASE - 99 WHEN - 97 THEN - SUM ( + - 3 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9962
SELECT + 55 col0, - COUNT( * )
----
55
-1

skipif mysql # not compatible
query II rowsort label-9962
SELECT + 55 col0, - COUNT ( * )
----
55
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9963
SELECT COALESCE ( 4, - CASE 25 WHEN - 28 - 50 THEN ( + 13 ) * - + CAST( 88 AS SIGNED ) ELSE + 2 + + 5 + + 75 + 52 + + 1 / MAX( + 35 ) * - COUNT( * ) END ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9963
SELECT COALESCE ( 4, - CASE 25 WHEN - 28 - 50 THEN ( + 13 ) * - + CAST ( 88 AS INTEGER ) ELSE + 2 + + 5 + + 75 + 52 + + 1 / MAX ( + 35 ) * - COUNT ( * ) END ) + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9964
SELECT MIN( - - 73 )
----
73

skipif mysql # not compatible
query I rowsort label-9964
SELECT MIN ( - - 73 )
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-9965
SELECT 90 * 28 + + + COUNT( * ) AS col1
----
2521

skipif mysql # not compatible
query I rowsort label-9965
SELECT 90 * 28 + + + COUNT ( * ) AS col1
----
2521

onlyif mysql # aggregate syntax: 
query I rowsort label-9966
SELECT + 51 * - COUNT( * ) + + 12
----
-39

skipif mysql # not compatible
query I rowsort label-9966
SELECT + 51 * - COUNT ( * ) + + 12
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9967
SELECT - ( - 16 ) * CAST( NULL AS SIGNED ) + COUNT( * ) + - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9967
SELECT - ( - 16 ) * CAST ( NULL AS INTEGER ) + COUNT ( * ) + - COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT - ( - 13 ) + 10 * + 74
----
753

query I rowsort
SELECT ALL + - 82 + + 16
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9970
SELECT DISTINCT - + CAST( 33 AS SIGNED )
----
-33

skipif mysql # not compatible
query I rowsort label-9970
SELECT DISTINCT - + CAST ( 33 AS INTEGER )
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9971
SELECT + 70 * + CAST( - CASE + 72 WHEN 88 * 48 + + COALESCE ( - 52, - 36 ) * - - CAST( NULL AS SIGNED ) THEN + 64 - 94 END AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9971
SELECT + 70 * + CAST ( - CASE + 72 WHEN 88 * 48 + + COALESCE ( - 52, - 36 ) * - - CAST ( NULL AS INTEGER ) THEN + 64 - 94 END AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9972
SELECT + COUNT( * ), - NULLIF ( + 91, + 14 DIV 27 ) * - + 17 + + 78 - - COUNT( * ) DIV - ( - - CASE SUM( ALL 38 ) WHEN - 2 * - - 93 - + - 18 + + 88 * - 24 DIV + + 56 + 36 + - - 99 THEN + 28 ELSE - 89 + + 42 * - 59 * + - 49 * + 14 END ) - - 39 col0
----
1
1664

skipif mysql # not compatible
query II rowsort label-9972
SELECT + COUNT ( * ), - NULLIF ( + 91, + 14 / 27 ) * - + 17 + + 78 - - COUNT ( * ) / - ( - - CASE SUM ( ALL 38 ) WHEN - 2 * - - 93 - + - 18 + + 88 * - 24 / + + 56 + 36 + - - 99 THEN + 28 ELSE - 89 + + 42 * - 59 * + - 49 * + 14 END ) - - 39 col0
----
1
1664

query I rowsort
SELECT DISTINCT - + 52 + - + 45 AS col0
----
-97

query I rowsort
SELECT DISTINCT - 10 col0
----
-10

query I rowsort
SELECT ALL + 24 * - 72 + + ( 13 ) col2
----
-1715

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9976
SELECT - COUNT( * ) DIV + ( 49 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9976
SELECT - COUNT ( * ) / + ( 49 ) AS col1
----
0

query I rowsort
SELECT ALL - 33 + + 50 AS col0
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9978
SELECT DISTINCT 44 AS col2, CAST( - 54 AS SIGNED ) * - + ( - 92 ) + + NULLIF ( - - 73, 11 ) + MAX( - 90 ) * + + COALESCE ( - 95, COALESCE ( + - 27, COUNT( * ) - + COUNT( * ), + 96 ) * + + 26 + - + 49 DIV 13 * 25 + 44 + - - CASE - 55 WHEN 36 * 31 + - COUNT( * ) THEN ( - 27 ) WHEN + CASE - 13 WHEN 49 THEN 2 DIV + COALESCE ( + 44, 9 + COUNT( * ), CAST( 31 AS SIGNED ) * - 1 ) - - 68 * + 2 ELSE NULL END THEN - ( 96 ) WHEN + NULLIF ( + 50, 66 ) THEN NULL END + ( - 41 ) * + 69 ) * - 26 AS col0
----
44
-227195

skipif mysql # not compatible
query II rowsort label-9978
SELECT DISTINCT 44 AS col2, CAST ( - 54 AS INTEGER ) * - + ( - 92 ) + + NULLIF ( - - 73, 11 ) + MAX ( - 90 ) * + + COALESCE ( - 95, COALESCE ( + - 27, COUNT ( * ) - + COUNT ( * ), + 96 ) * + + 26 + - + 49 / 13 * 25 + 44 + - - CASE - 55 WHEN 36 * 31 + - COUNT ( * ) THEN ( - 27 ) WHEN + CASE - 13 WHEN 49 THEN 2 / + COALESCE ( + 44, 9 + COUNT ( * ), CAST ( 31 AS INTEGER ) * - 1 ) - - 68 * + 2 ELSE NULL END THEN - ( 96 ) WHEN + NULLIF ( + 50, 66 ) THEN NULL END + ( - 41 ) * + 69 ) * - 26 AS col0
----
44
-227195

onlyif mysql # aggregate syntax: 
query I rowsort label-9979
SELECT ALL - 92 * 43 * + CASE CASE COUNT( ALL 42 ) WHEN + 96 * - 78 THEN + 58 WHEN + - 18 * - MAX( 29 ) THEN - + 26 - - 81 WHEN - 54 THEN NULL END WHEN + 50 + - + ( COUNT( * ) ) + + + 30 * - 24 * COUNT( * ) THEN NULL WHEN 2 THEN NULL ELSE - + ( 13 ) END col0
----
51428

skipif mysql # not compatible
query I rowsort label-9979
SELECT ALL - 92 * 43 * + CASE CASE COUNT ( ALL 42 ) WHEN + 96 * - 78 THEN + 58 WHEN + - 18 * - MAX ( 29 ) THEN - + 26 - - 81 WHEN - 54 THEN NULL END WHEN + 50 + - + ( COUNT ( * ) ) + + + 30 * - 24 * COUNT ( * ) THEN NULL WHEN 2 THEN NULL ELSE - + ( 13 ) END col0
----
51428

query I rowsort
SELECT - 85 * - 81 AS col2
----
6885

query I rowsort
SELECT ALL CASE - - 1 WHEN 98 THEN - 27 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9982
SELECT DISTINCT COALESCE ( - 11, - ( - CAST( NULL AS SIGNED ) ) ) AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-9982
SELECT DISTINCT COALESCE ( - 11, - ( - CAST ( NULL AS INTEGER ) ) ) AS col2
----
-11

query I rowsort
SELECT ALL - 93 * - 3
----
279

onlyif mysql # aggregate syntax: 
query I rowsort label-9984
SELECT DISTINCT MAX( ALL + 46 ) col2
----
46

skipif mysql # not compatible
query I rowsort label-9984
SELECT DISTINCT MAX ( ALL + 46 ) col2
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9985
SELECT DISTINCT NULLIF ( + 7, 94 * + CAST( + + ( + - 23 ) AS SIGNED ) + SUM( DISTINCT 10 ) * + 48 * 6 ), CAST( NULL AS SIGNED ) + + 36 / 61 AS col0
----
7
NULL

skipif mysql # not compatible
query II rowsort label-9985
SELECT DISTINCT NULLIF ( + 7, 94 * + CAST ( + + ( + - 23 ) AS INTEGER ) + SUM ( DISTINCT 10 ) * + 48 * 6 ), CAST ( NULL AS INTEGER ) + + 36 / 61 AS col0
----
7
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9986
SELECT DISTINCT NULLIF ( + CASE + + 12 WHEN - + CAST( NULL AS SIGNED ) THEN NULL ELSE - 27 + - + ( + 28 ) + - COUNT( + + 61 ) * + COUNT( * ) - 66 * - 35 DIV - + 35 * - CAST( NULL AS SIGNED ) END, + + 80 ) AS col1, + 17 * - + 14 DIV - + 2 AS col1
----
NULL
119

skipif mysql # not compatible
query II rowsort label-9986
SELECT DISTINCT NULLIF ( + CASE + + 12 WHEN - + CAST ( NULL AS INTEGER ) THEN NULL ELSE - 27 + - + ( + 28 ) + - COUNT ( + + 61 ) * + COUNT ( * ) - 66 * - 35 / - + 35 * - CAST ( NULL AS INTEGER ) END, + + 80 ) AS col1, + 17 * - + 14 / - + 2 AS col1
----
NULL
119

onlyif mysql # aggregate syntax: 
query I rowsort label-9987
SELECT ALL COUNT( * ) * - ( - + 29 )
----
29

skipif mysql # not compatible
query I rowsort label-9987
SELECT ALL COUNT ( * ) * - ( - + 29 )
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-9988
SELECT + MAX( ALL - + 97 )
----
-97

skipif mysql # not compatible
query I rowsort label-9988
SELECT + MAX ( ALL - + 97 )
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9989
SELECT DISTINCT COUNT( * ) * ( - - NULLIF ( - + 19, - 10 ) ) * - 46 + 24
----
898

skipif mysql # not compatible
query I rowsort label-9989
SELECT DISTINCT COUNT ( * ) * ( - - NULLIF ( - + 19, - 10 ) ) * - 46 + 24
----
898

query I rowsort
SELECT + 77 * - 9 AS col2
----
-693

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9991
SELECT DISTINCT NULLIF ( + CAST( NULL AS SIGNED ), + 87 + - COALESCE ( + 69, 60 + 59 + - - 76 + 25 * 67 + - + ( + 16 ) ) + 86 ) * + + 65 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9991
SELECT DISTINCT NULLIF ( + CAST ( NULL AS INTEGER ), + 87 + - COALESCE ( + 69, 60 + 59 + - - 76 + 25 * 67 + - + ( + 16 ) ) + 86 ) * + + 65 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9992
SELECT - 9 DIV - 68 - - CASE - 76 WHEN - 53 + - 65 * 47 THEN - - 29 WHEN + 61 THEN NULL ELSE + COUNT( * ) END
----
1

skipif mysql # not compatible
query I rowsort label-9992
SELECT - 9 / - 68 - - CASE - 76 WHEN - 53 + - 65 * 47 THEN - - 29 WHEN + 61 THEN NULL ELSE + COUNT ( * ) END
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9993
SELECT + 88 DIV ( 11 ) col2
----
8

skipif mysql # not compatible
query I rowsort label-9993
SELECT + 88 / ( 11 ) col2
----
8

query I rowsort
SELECT ALL - - 99 * + 71 * - + 71 + - + 33
----
-499092

onlyif mysql # aggregate syntax: 
query II rowsort label-9995
SELECT ALL 62 * + MIN( ALL + 16 ) AS col2, 96 + - ( - 17 )
----
992
113

skipif mysql # not compatible
query II rowsort label-9995
SELECT ALL 62 * + MIN ( ALL + 16 ) AS col2, 96 + - ( - 17 )
----
992
113

query I rowsort
SELECT + + 49 * - - 53
----
2597

onlyif mysql # aggregate syntax: 
query I rowsort label-9997
SELECT ALL - 88 * + 57 * - 50 + + SUM( ALL + 19 ) AS col2
----
250819

skipif mysql # not compatible
query I rowsort label-9997
SELECT ALL - 88 * + 57 * - 50 + + SUM ( ALL + 19 ) AS col2
----
250819

query I rowsort
SELECT ALL + + CASE 84 WHEN - 75 THEN + + 22 WHEN 7 THEN NULL END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9999
SELECT + + 64 DIV + 67 - - 42 + - - 39 + - + 69 + + 30
----
42

skipif mysql # not compatible
query I rowsort label-9999
SELECT + + 64 / + 67 - - 42 + - - 39 + - + 69 + + 30
----
42

